2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for zfs 0.6.5.11.
6 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
15 # Be more Bourne compatible
16 DUALCASE
=1; export DUALCASE
# for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
25 case `(set -o) 2>/dev/null` in #(
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
46 as_echo_n='print
-rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
53 as_echo_n='/usr
/ucb
/echo -n'
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
63 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
66 as_echo_n='sh
-c $as_echo_n_body as_echo
'
69 as_echo='sh
-c $as_echo_body as_echo
'
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
75 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
83 # We need space, tab and new line, in precisely that order. Quoting is
84 # there to prevent editors from complaining about space-tab.
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 # splitting by setting IFS to empty value.)
89 # Find who we are. Look in the path if we contain no directory separator.
92 *[\\/]* ) as_myself=$0 ;;
93 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
97 test -z "$as_dir" && as_dir=.
98 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
104 # We did not find ourselves, most probably we were run as `sh COMMAND'
105 # in which case we are not to be found in the path.
106 if test "x$as_myself" = x
; then
109 if test ! -f "$as_myself"; then
110 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
114 # Unset variables that we do not need and which cause bugs (e.g. in
115 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
116 # suppresses any "Segmentation fault" message there. '((' could
117 # trigger a bug in pdksh 5.2.14.
118 for as_var
in BASH_ENV ENV MAIL MAILPATH
119 do eval test x\
${$as_var+set} = xset \
120 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
133 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
135 # Use a proper internal environment variable to ensure we don't fall
136 # into an infinite loop, continuously re-executing ourselves.
137 if test x
"${_as_can_reexec}" != xno
&& test "x$CONFIG_SHELL" != x
; then
138 _as_can_reexec
=no
; export _as_can_reexec
;
139 # We cannot yet assume a decent shell, so we have to provide a
140 # neutralization value for shells without unset; and this also
141 # works around shells that cannot unset nonexistent variables.
142 # Preserve -v and -x to the replacement shell.
145 (unset BASH_ENV
) >/dev
/null
2>&1 && unset BASH_ENV ENV
147 *v
*x
* |
*x
*v
* ) as_opts
=-vx ;;
152 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
153 # Admittedly, this is quite paranoid, since all the known shells bail
154 # out after a failed `exec'.
155 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158 # We don't want this to propagate to other subprocesses.
159 { _as_can_reexec
=; unset _as_can_reexec
;}
160 if test "x$CONFIG_SHELL" = x
; then
161 as_bourne_compatible
="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
165 # is contrary to our usage. Disable this feature.
166 alias -g '\${1+\"\$@\"}'='\"\$@\"'
169 case \`(set -o) 2>/dev/null\` in #(
177 as_required
="as_fn_return () { (exit \$1); }
178 as_fn_success () { as_fn_return 0; }
179 as_fn_failure () { as_fn_return 1; }
180 as_fn_ret_success () { return 0; }
181 as_fn_ret_failure () { return 1; }
184 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191 exitcode=1; echo positional parameters were not saved.
193 test x\$exitcode = x0 || exit 1
195 as_suggested
=" as_lineno_1=";as_suggested
=$as_suggested$LINENO;as_suggested
=$as_suggested" as_lineno_1a=\$LINENO
196 as_lineno_2=";as_suggested
=$as_suggested$LINENO;as_suggested
=$as_suggested" as_lineno_2a=\$LINENO
197 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
198 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
200 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
201 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
202 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
203 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
204 PATH=/empty FPATH=/empty; export PATH FPATH
205 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
206 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
207 test \$(( 1 + 1 )) = 2 || exit 1"
208 if (eval "$as_required") 2>/dev
/null
; then :
213 if test x
$as_have_required = xyes
&& (eval "$as_suggested") 2>/dev
/null
; then :
216 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
218 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
221 test -z "$as_dir" && as_dir
=.
225 for as_base
in sh bash ksh sh5
; do
226 # Try only shells that exist, to save several forks.
227 as_shell
=$as_dir/$as_base
228 if { test -f "$as_shell" ||
test -f "$as_shell.exe"; } &&
229 { $as_echo "$as_bourne_compatible""$as_required" | as_run
=a
"$as_shell"; } 2>/dev
/null
; then :
230 CONFIG_SHELL
=$as_shell as_have_required
=yes
231 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run
=a
"$as_shell"; } 2>/dev
/null
; then :
239 $as_found ||
{ if { test -f "$SHELL" ||
test -f "$SHELL.exe"; } &&
240 { $as_echo "$as_bourne_compatible""$as_required" | as_run
=a
"$SHELL"; } 2>/dev
/null
; then :
241 CONFIG_SHELL
=$SHELL as_have_required
=yes
246 if test "x$CONFIG_SHELL" != x
; then :
248 # We cannot yet assume a decent shell, so we have to provide a
249 # neutralization value for shells without unset; and this also
250 # works around shells that cannot unset nonexistent variables.
251 # Preserve -v and -x to the replacement shell.
254 (unset BASH_ENV
) >/dev
/null
2>&1 && unset BASH_ENV ENV
256 *v
*x
* |
*x
*v
* ) as_opts
=-vx ;;
261 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
262 # Admittedly, this is quite paranoid, since all the known shells bail
263 # out after a failed `exec'.
264 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
268 if test x
$as_have_required = xno
; then :
269 $as_echo "$0: This script requires a shell more modern than all"
270 $as_echo "$0: the shells that I found on your system."
271 if test x
${ZSH_VERSION+set} = xset
; then
272 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
273 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
275 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
276 $0: including any error possibly output before this
277 $0: message. Then install a modern shell, or manually run
278 $0: the script under such a shell if you do have one."
284 SHELL
=${CONFIG_SHELL-/bin/sh}
286 # Unset more variables known to interfere with behavior of common tools.
287 CLICOLOR_FORCE
= GREP_OPTIONS
=
288 unset CLICOLOR_FORCE GREP_OPTIONS
290 ## --------------------- ##
291 ## M4sh Shell Functions. ##
292 ## --------------------- ##
295 # Portably unset VAR.
298 { eval $1=; unset $1;}
302 # as_fn_set_status STATUS
303 # -----------------------
304 # Set $? to STATUS, without forking.
312 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
322 # Create "$as_dir" as a directory, including parents if necessary.
327 -*) as_dir
=.
/$as_dir;;
329 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
333 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
336 as_dirs
="'$as_qdir' $as_dirs"
337 as_dir
=`$as_dirname -- "$as_dir" ||
338 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
339 X"$as_dir" : 'X\(//\)[^/]' \| \
340 X"$as_dir" : 'X\(//\)$' \| \
341 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
342 $as_echo X"$as_dir" |
343 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
360 test -d "$as_dir" && break
362 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
363 } ||
test -d "$as_dir" || as_fn_error $?
"cannot create directory $as_dir"
368 # as_fn_executable_p FILE
369 # -----------------------
370 # Test if FILE is an executable regular file.
371 as_fn_executable_p
()
373 test -f "$1" && test -x "$1"
374 } # as_fn_executable_p
375 # as_fn_append VAR VALUE
376 # ----------------------
377 # Append the text in VALUE to the end of the definition contained in VAR. Take
378 # advantage of any shell optimizations that allow amortized linear growth over
379 # repeated appends, instead of the typical quadratic growth present in naive
381 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
382 eval 'as_fn_append ()
395 # Perform arithmetic evaluation on the ARGs, and store the result in the
396 # global $as_val. Take advantage of shells that can avoid forks. The arguments
397 # must be portable across $(()) and expr.
398 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
406 as_val
=`expr "$@" || test $? -eq 1`
411 # as_fn_error STATUS ERROR [LINENO LOG_FD]
412 # ----------------------------------------
413 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
414 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
415 # script with STATUS, using 1 if that was 0.
418 as_status
=$1; test $as_status -eq 0 && as_status
=1
420 as_lineno
=${as_lineno-"$3"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
421 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
423 $as_echo "$as_me: error: $2" >&2
424 as_fn_exit
$as_status
427 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
428 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
434 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
440 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
446 as_me
=`$as_basename -- "$0" ||
447 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
448 X"$0" : 'X\(//\)$' \| \
449 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
451 sed '/^.*\/\([^/][^/]*\)\/*$/{
465 # Avoid depending upon Character Ranges.
466 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
467 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
468 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
469 as_cr_digits
='0123456789'
470 as_cr_alnum
=$as_cr_Letters$as_cr_digits
473 as_lineno_1
=$LINENO as_lineno_1a
=$LINENO
474 as_lineno_2
=$LINENO as_lineno_2a
=$LINENO
475 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
476 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' ||
{
477 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
489 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
493 chmod +x
"$as_me.lineno" ||
494 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit
1; }
496 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
497 # already done that, so ensure we don't try to do so again and fall
498 # in an infinite loop. This has already happened in practice.
499 _as_can_reexec
=no
; export _as_can_reexec
500 # Don't try to exec as it changes $[0], causing all sort of problems
501 # (the dirname of $[0] is not the place where we might find the
502 # original and so on. Autoconf is especially sensitive to this).
504 # Exit status is that of the last command.
508 ECHO_C
= ECHO_N
= ECHO_T
=
509 case `echo -n x` in #(((((
511 case `echo 'xy\c'` in
512 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
514 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
521 rm -f conf$$ conf$$.exe conf$$.
file
522 if test -d conf$$.dir
; then
523 rm -f conf$$.dir
/conf$$.
file
526 mkdir conf$$.dir
2>/dev
/null
528 if (echo >conf$$.
file) 2>/dev
/null
; then
529 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
531 # ... but there are two gotchas:
532 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
533 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
534 # In both cases, we have to default to `cp -pR'.
535 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
537 elif ln conf$$.
file conf$$
2>/dev
/null
; then
545 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
546 rmdir conf$$.dir
2>/dev
/null
548 if mkdir
-p .
2>/dev
/null
; then
549 as_mkdir_p
='mkdir -p "$as_dir"'
551 test -d .
/-p && rmdir .
/-p
556 as_executable_p
=as_fn_executable_p
558 # Sed expression to map a string onto a valid CPP name.
559 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
561 # Sed expression to map a string onto a valid variable name.
562 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
564 SHELL
=${CONFIG_SHELL-/bin/sh}
567 test -n "$DJDIR" ||
exec 7<&0 </dev
/null
571 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
572 # so uname gets run too.
573 ac_hostname
=`(hostname || uname -n) 2>/dev/null | sed 1q`
578 ac_default_prefix
=/usr
/local
580 ac_config_libobj_dir
=.
587 # Identity of this package.
589 PACKAGE_TARNAME
='zfs'
590 PACKAGE_VERSION
='0.6.5.11'
591 PACKAGE_STRING
='zfs 0.6.5.11'
595 # Factoring default headers for most tests.
596 ac_includes_default
="\
598 #ifdef HAVE_SYS_TYPES_H
599 # include <sys/types.h>
601 #ifdef HAVE_SYS_STAT_H
602 # include <sys/stat.h>
608 # ifdef HAVE_STDLIB_H
613 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
618 #ifdef HAVE_STRINGS_H
619 # include <strings.h>
621 #ifdef HAVE_INTTYPES_H
622 # include <inttypes.h>
631 ac_subst_vars
='am__EXEEXT_FALSE
669 NO_UNUSED_BUT_SET_VARIABLE
702 am__fastdepCCAS_FALSE
754 INSTALL_STRIP_PROGRAM
774 MAINTAINER_MODE_FALSE
828 program_transform_name
841 enable_option_checking
842 enable_maintainer_mode
844 enable_dependency_tracking
861 with_systemdpresetdir
862 with_systemdmodulesloaddir
874 ac_precious_vars
='build_alias
888 # Initialize some variables set by options.
890 ac_init_version
=false
891 ac_unrecognized_opts
=
893 # The variables have the same names as the options, with
894 # dashes changed to underlines.
902 program_transform_name
=s
,x
,x
,
910 # Installation directory options.
911 # These are left unexpanded so users can "make install exec_prefix=/foo"
912 # and all the variables that are supposed to be based on exec_prefix
913 # by default will actually change.
914 # Use braces instead of parens because sh, perl, etc. also accept them.
915 # (The list follows the same order as the GNU Coding Standards.)
916 bindir
='${exec_prefix}/bin'
917 sbindir
='${exec_prefix}/sbin'
918 libexecdir
='${exec_prefix}/libexec'
919 datarootdir
='${prefix}/share'
920 datadir
='${datarootdir}'
921 sysconfdir
='${prefix}/etc'
922 sharedstatedir
='${prefix}/com'
923 localstatedir
='${prefix}/var'
924 runstatedir
='${localstatedir}/run'
925 includedir
='${prefix}/include'
926 oldincludedir
='/usr/include'
927 docdir
='${datarootdir}/doc/${PACKAGE_TARNAME}'
928 infodir
='${datarootdir}/info'
933 libdir
='${exec_prefix}/lib'
934 localedir
='${datarootdir}/locale'
935 mandir
='${datarootdir}/man'
941 # If the previous option needs an argument, assign it.
942 if test -n "$ac_prev"; then
943 eval $ac_prev=\
$ac_option
949 *=?
*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
954 # Accept the important Cygnus configure options, so we can diagnose typos.
956 case $ac_dashdash$ac_option in
960 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
962 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
965 -build |
--build |
--buil |
--bui |
--bu)
966 ac_prev
=build_alias
;;
967 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
968 build_alias
=$ac_optarg ;;
970 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
971 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
972 ac_prev
=cache_file
;;
973 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
974 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
975 cache_file
=$ac_optarg ;;
978 cache_file
=config.cache
;;
980 -datadir |
--datadir |
--datadi |
--datad)
982 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
983 datadir
=$ac_optarg ;;
985 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
986 |
--dataroo |
--dataro |
--datar)
987 ac_prev
=datarootdir
;;
988 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
989 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
990 datarootdir
=$ac_optarg ;;
992 -disable-* |
--disable-*)
993 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
994 # Reject names that are not valid shell variable names.
995 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
996 as_fn_error $?
"invalid feature name: $ac_useropt"
997 ac_useropt_orig
=$ac_useropt
998 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
999 case $ac_user_opts in
1001 "enable_
$ac_useropt"
1003 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1004 ac_unrecognized_sep
=', ';;
1006 eval enable_
$ac_useropt=no
;;
1008 -docdir |
--docdir |
--docdi |
--doc |
--do)
1010 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
1011 docdir
=$ac_optarg ;;
1013 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
1015 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
1016 dvidir
=$ac_optarg ;;
1018 -enable-* |
--enable-*)
1019 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1020 # Reject names that are not valid shell variable names.
1021 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1022 as_fn_error $?
"invalid feature name: $ac_useropt"
1023 ac_useropt_orig
=$ac_useropt
1024 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1025 case $ac_user_opts in
1027 "enable_
$ac_useropt"
1029 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1030 ac_unrecognized_sep
=', ';;
1032 eval enable_
$ac_useropt=\
$ac_optarg ;;
1034 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
1035 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
1036 |
--exec |
--exe |
--ex)
1037 ac_prev
=exec_prefix
;;
1038 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
1039 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
1040 |
--exec=* |
--exe=* |
--ex=*)
1041 exec_prefix
=$ac_optarg ;;
1043 -gas |
--gas |
--ga |
--g)
1044 # Obsolete; use --with-gas.
1047 -help |
--help |
--hel |
--he |
-h)
1048 ac_init_help
=long
;;
1049 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
1050 ac_init_help
=recursive
;;
1051 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
1052 ac_init_help
=short
;;
1054 -host |
--host |
--hos |
--ho)
1055 ac_prev
=host_alias
;;
1056 -host=* |
--host=* |
--hos=* |
--ho=*)
1057 host_alias
=$ac_optarg ;;
1059 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
1061 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
1063 htmldir
=$ac_optarg ;;
1065 -includedir |
--includedir |
--includedi |
--included |
--include \
1066 |
--includ |
--inclu |
--incl |
--inc)
1067 ac_prev
=includedir
;;
1068 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
1069 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
1070 includedir
=$ac_optarg ;;
1072 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
1074 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
1075 infodir
=$ac_optarg ;;
1077 -libdir |
--libdir |
--libdi |
--libd)
1079 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
1080 libdir
=$ac_optarg ;;
1082 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
1083 |
--libexe |
--libex |
--libe)
1084 ac_prev
=libexecdir
;;
1085 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
1086 |
--libexe=* |
--libex=* |
--libe=*)
1087 libexecdir
=$ac_optarg ;;
1089 -localedir |
--localedir |
--localedi |
--localed |
--locale)
1090 ac_prev
=localedir
;;
1091 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
1092 localedir
=$ac_optarg ;;
1094 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
1095 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
1096 ac_prev
=localstatedir
;;
1097 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
1098 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
1099 localstatedir
=$ac_optarg ;;
1101 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
1103 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
1104 mandir
=$ac_optarg ;;
1106 -nfp |
--nfp |
--nf)
1107 # Obsolete; use --without-fp.
1110 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
1111 |
--no-cr |
--no-c |
-n)
1114 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1115 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1118 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1119 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1120 |
--oldin |
--oldi |
--old |
--ol |
--o)
1121 ac_prev
=oldincludedir
;;
1122 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1123 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1124 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1125 oldincludedir
=$ac_optarg ;;
1127 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1129 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1130 prefix
=$ac_optarg ;;
1132 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1133 |
--program-pre |
--program-pr |
--program-p)
1134 ac_prev
=program_prefix
;;
1135 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1136 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1137 program_prefix
=$ac_optarg ;;
1139 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1140 |
--program-suf |
--program-su |
--program-s)
1141 ac_prev
=program_suffix
;;
1142 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1143 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1144 program_suffix
=$ac_optarg ;;
1146 -program-transform-name |
--program-transform-name \
1147 |
--program-transform-nam |
--program-transform-na \
1148 |
--program-transform-n |
--program-transform- \
1149 |
--program-transform |
--program-transfor \
1150 |
--program-transfo |
--program-transf \
1151 |
--program-trans |
--program-tran \
1152 |
--progr-tra |
--program-tr |
--program-t)
1153 ac_prev
=program_transform_name
;;
1154 -program-transform-name=* |
--program-transform-name=* \
1155 |
--program-transform-nam=* |
--program-transform-na=* \
1156 |
--program-transform-n=* |
--program-transform-=* \
1157 |
--program-transform=* |
--program-transfor=* \
1158 |
--program-transfo=* |
--program-transf=* \
1159 |
--program-trans=* |
--program-tran=* \
1160 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1161 program_transform_name
=$ac_optarg ;;
1163 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1165 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1166 pdfdir
=$ac_optarg ;;
1168 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1170 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1173 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1174 |
-silent |
--silent |
--silen |
--sile |
--sil)
1177 -runstatedir |
--runstatedir |
--runstatedi |
--runstated \
1178 |
--runstate |
--runstat |
--runsta |
--runst |
--runs \
1179 |
--run |
--ru |
--r)
1180 ac_prev
=runstatedir
;;
1181 -runstatedir=* |
--runstatedir=* |
--runstatedi=* |
--runstated=* \
1182 |
--runstate=* |
--runstat=* |
--runsta=* |
--runst=* |
--runs=* \
1183 |
--run=* |
--ru=* |
--r=*)
1184 runstatedir
=$ac_optarg ;;
1186 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1188 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1190 sbindir
=$ac_optarg ;;
1192 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1193 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1194 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1196 ac_prev
=sharedstatedir
;;
1197 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1198 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1199 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1201 sharedstatedir
=$ac_optarg ;;
1203 -site |
--site |
--sit)
1205 -site=* |
--site=* |
--sit=*)
1208 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1210 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1211 srcdir
=$ac_optarg ;;
1213 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1214 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1215 ac_prev
=sysconfdir
;;
1216 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1217 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1218 sysconfdir
=$ac_optarg ;;
1220 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1221 ac_prev
=target_alias
;;
1222 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1223 target_alias
=$ac_optarg ;;
1225 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1228 -version |
--version |
--versio |
--versi |
--vers |
-V)
1229 ac_init_version
=: ;;
1232 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1233 # Reject names that are not valid shell variable names.
1234 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1235 as_fn_error $?
"invalid package name: $ac_useropt"
1236 ac_useropt_orig
=$ac_useropt
1237 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1238 case $ac_user_opts in
1242 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1243 ac_unrecognized_sep
=', ';;
1245 eval with_
$ac_useropt=\
$ac_optarg ;;
1247 -without-* |
--without-*)
1248 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1249 # Reject names that are not valid shell variable names.
1250 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1251 as_fn_error $?
"invalid package name: $ac_useropt"
1252 ac_useropt_orig
=$ac_useropt
1253 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1254 case $ac_user_opts in
1258 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1259 ac_unrecognized_sep
=', ';;
1261 eval with_
$ac_useropt=no
;;
1264 # Obsolete; use --with-x.
1267 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1268 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1269 ac_prev
=x_includes
;;
1270 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1271 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1272 x_includes
=$ac_optarg ;;
1274 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1275 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1276 ac_prev
=x_libraries
;;
1277 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1278 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1279 x_libraries
=$ac_optarg ;;
1281 -*) as_fn_error $?
"unrecognized option: \`$ac_option'
1282 Try \`$0 --help' for more information"
1286 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1287 # Reject names that are not valid shell variable names.
1288 case $ac_envvar in #(
1289 '' |
[0-9]* |
*[!_
$as_cr_alnum]* )
1290 as_fn_error $?
"invalid variable name: \`$ac_envvar'" ;;
1292 eval $ac_envvar=\
$ac_optarg
1293 export $ac_envvar ;;
1296 # FIXME: should be removed in autoconf 3.0.
1297 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1298 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1299 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1300 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1306 if test -n "$ac_prev"; then
1307 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1308 as_fn_error $?
"missing argument to $ac_option"
1311 if test -n "$ac_unrecognized_opts"; then
1312 case $enable_option_checking in
1314 fatal
) as_fn_error $?
"unrecognized options: $ac_unrecognized_opts" ;;
1315 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1319 # Check all directory arguments for consistency.
1320 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1321 datadir sysconfdir sharedstatedir localstatedir includedir \
1322 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1323 libdir localedir mandir runstatedir
1325 eval ac_val
=\$
$ac_var
1326 # Remove trailing slashes.
1329 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1330 eval $ac_var=\
$ac_val;;
1332 # Be sure to have absolute directory names.
1334 [\\/$
]* | ?
:[\\/]* ) continue;;
1335 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1337 as_fn_error $?
"expected an absolute directory name for --$ac_var: $ac_val"
1340 # There might be people who depend on the old broken behavior: `$host'
1341 # used to hold the argument of --host etc.
1342 # FIXME: To remove some day.
1345 target
=$target_alias
1347 # FIXME: To remove some day.
1348 if test "x$host_alias" != x
; then
1349 if test "x$build_alias" = x
; then
1350 cross_compiling
=maybe
1351 elif test "x$build_alias" != "x$host_alias"; then
1357 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1359 test "$silent" = yes && exec 6>/dev
/null
1362 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1363 ac_ls_di
=`ls -di .` &&
1364 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1365 as_fn_error $?
"working directory cannot be determined"
1366 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1367 as_fn_error $?
"pwd does not report name of working directory"
1370 # Find the source files, if location was not specified.
1371 if test -z "$srcdir"; then
1372 ac_srcdir_defaulted
=yes
1373 # Try the directory containing this script, then the parent directory.
1374 ac_confdir
=`$as_dirname -- "$as_myself" ||
1375 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1376 X"$as_myself" : 'X\(//\)[^/]' \| \
1377 X"$as_myself" : 'X\(//\)$' \| \
1378 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1379 $as_echo X"$as_myself" |
1380 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1398 if test ! -r "$srcdir/$ac_unique_file"; then
1402 ac_srcdir_defaulted
=no
1404 if test ! -r "$srcdir/$ac_unique_file"; then
1405 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1406 as_fn_error $?
"cannot find sources ($ac_unique_file) in $srcdir"
1408 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1410 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1412 # When building in place, set srcdir=.
1413 if test "$ac_abs_confdir" = "$ac_pwd"; then
1416 # Remove unnecessary trailing slashes from srcdir.
1417 # Double slashes in file names in object file debugging info
1418 # mess up M-x gdb in Emacs.
1420 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1422 for ac_var
in $ac_precious_vars; do
1423 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1424 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1425 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1426 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1430 # Report the --help message.
1432 if test "$ac_init_help" = "long"; then
1433 # Omit some internal or obsolete options to make the list less imposing.
1434 # This message is too long to be a string in the A/UX 3.1 sh.
1436 \`configure' configures zfs 0.6.5.11 to adapt to many kinds of systems.
1438 Usage: $0 [OPTION]... [VAR=VALUE]...
1440 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1441 VAR=VALUE. See below for descriptions of some of the useful variables.
1443 Defaults for the options are specified in brackets.
1446 -h, --help display this help and exit
1447 --help=short display options specific to this package
1448 --help=recursive display the short help of all the included packages
1449 -V, --version display version information and exit
1450 -q, --quiet, --silent do not print \`checking ...' messages
1451 --cache-file=FILE cache test results in FILE [disabled]
1452 -C, --config-cache alias for \`--cache-file=config.cache'
1453 -n, --no-create do not create output files
1454 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1456 Installation directories:
1457 --prefix=PREFIX install architecture-independent files in PREFIX
1458 [$ac_default_prefix]
1459 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1462 By default, \`make install' will install all the files in
1463 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1464 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1465 for instance \`--prefix=\$HOME'.
1467 For better control, use the options below.
1469 Fine tuning of the installation directories:
1470 --bindir=DIR user executables [EPREFIX/bin]
1471 --sbindir=DIR system admin executables [EPREFIX/sbin]
1472 --libexecdir=DIR program executables [EPREFIX/libexec]
1473 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1474 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1475 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1476 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1477 --libdir=DIR object code libraries [EPREFIX/lib]
1478 --includedir=DIR C header files [PREFIX/include]
1479 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1480 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1481 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1482 --infodir=DIR info documentation [DATAROOTDIR/info]
1483 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1484 --mandir=DIR man documentation [DATAROOTDIR/man]
1485 --docdir=DIR documentation root [DATAROOTDIR/doc/zfs]
1486 --htmldir=DIR html documentation [DOCDIR]
1487 --dvidir=DIR dvi documentation [DOCDIR]
1488 --pdfdir=DIR pdf documentation [DOCDIR]
1489 --psdir=DIR ps documentation [DOCDIR]
1495 --program-prefix=PREFIX prepend PREFIX to installed program names
1496 --program-suffix=SUFFIX append SUFFIX to installed program names
1497 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
1500 --build=BUILD configure
for building on BUILD
[guessed
]
1501 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1502 --target=TARGET configure
for building compilers
for TARGET
[HOST
]
1506 if test -n "$ac_init_help"; then
1507 case $ac_init_help in
1508 short | recursive
) echo "Configuration of zfs 0.6.5.11:";;
1513 --disable-option-checking ignore unrecognized
--enable/--with options
1514 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1515 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1516 --enable-maintainer-mode
1517 enable make rules and dependencies not useful
(and
1518 sometimes confusing
) to the casual installer
1519 --enable-silent-rules less verbose build output
(undo
: "make V=1")
1520 --disable-silent-rules verbose build output
(undo
: "make V=0")
1521 --enable-dependency-tracking
1522 do not reject slow dependency extractors
1523 --disable-dependency-tracking
1524 speeds up one-time build
1525 --enable-shared[=PKGS
] build shared libraries
[default
=yes]
1526 --enable-static[=PKGS
] build static libraries
[default
=yes]
1527 --enable-fast-install[=PKGS
]
1528 optimize
for fast installation
[default
=yes]
1529 --disable-libtool-lock avoid locking
(might
break parallel builds
)
1530 --enable-linux-builtin Configure
for builtin in-tree kernel modules
1532 --enable-systemd install systemd unit
/preset files
[[default
: yes]]
1533 --enable-sysvinit install SysV init scripts
[default
: yes]
1534 --enable-debug Enable generic debug support
[default
=no
]
1535 --enable-debug-dmu-tx Enable dmu tx validation
[default
=no
]
1538 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
1539 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
1540 --with-pic[=PKGS
] try to use only PIC
/non-PIC objects
[default
=use
1542 --with-aix-soname=aix|svr4|both
1543 shared library versioning
(aka
"SONAME") variant to
1544 provide on AIX
, [default
=aix
].
1545 --with-gnu-ld assume the C compiler uses GNU ld
[default
=no
]
1546 --with-sysroot[=DIR
] Search
for dependent libraries within DIR
(or the
1547 compiler
's sysroot if not specified).
1548 --with-spec=SPEC Spec files 'generic|redhat
'
1549 --with-config=CONFIG Config file 'kernel|user|all|srpm
'
1550 --with-mounthelperdir=DIR
1551 install mount.zfs in dir [[/sbin]]
1552 --with-udevdir=DIR install udev helpers [default=check]
1553 --with-udevruledir=DIR install udev rules [[UDEVDIR/rules.d]]
1554 --with-systemdunitdir=DIR
1555 install systemd unit files in dir
1556 [[/usr/lib/systemd/system]]
1557 --with-systemdpresetdir=DIR
1558 install systemd preset files in dir
1559 [[/usr/lib/systemd/system-preset]]
1560 --with-systemdmodulesloaddir=DIR
1561 install systemd module load files into dir
1562 [[/usr/lib/modules-load.d]]
1563 --with-dracutdir=DIR install dracut helpers [default=check]
1564 --with-blkid support blkid caching [default=check]
1565 --with-linux=PATH Path to kernel source
1566 --with-linux-obj=PATH Path to kernel build objects
1567 --with-spl=PATH Path to spl source
1568 --with-spl-obj=PATH Path to spl build objects
1569 --with-spl-timeout=SECS Wait SECS for SPL header and symver file [default=0]
1571 Some influential environment variables:
1572 CC C compiler command
1573 CFLAGS C compiler flags
1574 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1575 nonstandard directory <lib dir>
1576 LIBS libraries to pass to the linker, e.g. -l<library>
1577 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1578 you have headers in a nonstandard directory <include dir>
1580 User-defined run-time library search path.
1582 CCAS assembler compiler command (defaults to CC)
1583 CCASFLAGS assembler compiler flags (defaults to CFLAGS)
1585 Use these variables to override the choices made by `configure' or to
help
1586 it to
find libraries and programs with nonstandard names
/locations.
1588 Report bugs to the package provider.
1593 if test "$ac_init_help" = "recursive"; then
1594 # If there are subdirs, report their specific --help.
1595 for ac_dir
in : $ac_subdirs_all; do test "x$ac_dir" = x
: && continue
1596 test -d "$ac_dir" ||
1597 { cd "$srcdir" && ac_pwd
=`pwd` && srcdir
=.
&& test -d "$ac_dir"; } ||
1602 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1604 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1605 # A ".." for each directory in $ac_dir_suffix.
1606 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1607 case $ac_top_builddir_sub in
1608 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1609 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
1612 ac_abs_top_builddir
=$ac_pwd
1613 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
1614 # for backward compatibility:
1615 ac_top_builddir
=$ac_top_build_prefix
1618 .
) # We are building in place.
1620 ac_top_srcdir
=$ac_top_builddir_sub
1621 ac_abs_top_srcdir
=$ac_pwd ;;
1622 [\\/]* | ?
:[\\/]* ) # Absolute name.
1623 ac_srcdir
=$srcdir$ac_dir_suffix;
1624 ac_top_srcdir
=$srcdir
1625 ac_abs_top_srcdir
=$srcdir ;;
1627 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
1628 ac_top_srcdir
=$ac_top_build_prefix$srcdir
1629 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
1631 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
1633 cd "$ac_dir" ||
{ ac_status
=$?
; continue; }
1634 # Check for guested configure.
1635 if test -f "$ac_srcdir/configure.gnu"; then
1637 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1638 elif test -f "$ac_srcdir/configure"; then
1640 $SHELL "$ac_srcdir/configure" --help=recursive
1642 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1644 cd "$ac_pwd" ||
{ ac_status
=$?
; break; }
1648 test -n "$ac_init_help" && exit $ac_status
1649 if $ac_init_version; then
1651 zfs configure
0.6.5.11
1652 generated by GNU Autoconf
2.69
1654 Copyright
(C
) 2012 Free Software Foundation
, Inc.
1655 This configure
script is free software
; the Free Software Foundation
1656 gives unlimited permission to copy
, distribute and modify it.
1661 ## ------------------------ ##
1662 ## Autoconf initialization. ##
1663 ## ------------------------ ##
1665 # ac_fn_c_try_compile LINENO
1666 # --------------------------
1667 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1668 ac_fn_c_try_compile
()
1670 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1671 rm -f conftest.
$ac_objext
1672 if { { ac_try
="$ac_compile"
1674 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1675 *) ac_try_echo=$ac_try;;
1677 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1678 $as_echo "$ac_try_echo"; } >&5
1679 (eval "$ac_compile") 2>conftest.err
1681 if test -s conftest.err; then
1682 grep -v '^ *+' conftest.err >conftest.er1
1683 cat conftest.er1 >&5
1684 mv -f conftest.er1 conftest.err
1686 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1687 test $ac_status = 0; } && {
1688 test -z "$ac_c_werror_flag" ||
1689 test ! -s conftest.err
1690 } && test -s conftest.$ac_objext; then :
1693 $as_echo "$as_me: failed program was:" >&5
1694 sed 's/^/| /' conftest.$ac_ext >&5
1698 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1699 as_fn_set_status $ac_retval
1701 } # ac_fn_c_try_compile
1703 # ac_fn_c_try_link LINENO
1704 # -----------------------
1705 # Try to link conftest.$ac_ext, and return whether this succeeded.
1708 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1709 rm -f conftest.$ac_objext conftest$ac_exeext
1710 if { { ac_try="$ac_link"
1712 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1713 *) ac_try_echo
=$ac_try;;
1715 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1716 $as_echo "$ac_try_echo"; } >&5
1717 (eval "$ac_link") 2>conftest.err
1719 if test -s conftest.err
; then
1720 grep -v '^ *+' conftest.err
>conftest.er1
1721 cat conftest.er1
>&5
1722 mv -f conftest.er1 conftest.err
1724 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1725 test $ac_status = 0; } && {
1726 test -z "$ac_c_werror_flag" ||
1727 test ! -s conftest.err
1728 } && test -s conftest
$ac_exeext && {
1729 test "$cross_compiling" = yes ||
1730 test -x conftest
$ac_exeext
1734 $as_echo "$as_me: failed program was:" >&5
1735 sed 's/^/| /' conftest.
$ac_ext >&5
1739 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1740 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1741 # interfere with the next link command; also delete a directory that is
1742 # left behind by Apple's compiler. We do this before executing the actions.
1743 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1744 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1745 as_fn_set_status
$ac_retval
1747 } # ac_fn_c_try_link
1749 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1750 # -------------------------------------------------------
1751 # Tests whether HEADER exists and can be compiled using the include files in
1752 # INCLUDES, setting the cache variable VAR accordingly.
1753 ac_fn_c_check_header_compile
()
1755 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1757 $as_echo_n "checking for $2... " >&6; }
1758 if eval \
${$3+:} false
; then :
1759 $as_echo_n "(cached) " >&6
1761 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1762 /* end confdefs.h. */
1766 if ac_fn_c_try_compile
"$LINENO"; then :
1771 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
1774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1775 $as_echo "$ac_res" >&6; }
1776 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1778 } # ac_fn_c_check_header_compile
1780 # ac_fn_c_try_cpp LINENO
1781 # ----------------------
1782 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1785 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1786 if { { ac_try
="$ac_cpp conftest.$ac_ext"
1788 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1789 *) ac_try_echo=$ac_try;;
1791 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1792 $as_echo "$ac_try_echo"; } >&5
1793 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1795 if test -s conftest.err; then
1796 grep -v '^ *+' conftest.err >conftest.er1
1797 cat conftest.er1 >&5
1798 mv -f conftest.er1 conftest.err
1800 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1801 test $ac_status = 0; } > conftest.i && {
1802 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1803 test ! -s conftest.err
1807 $as_echo "$as_me: failed program was:" >&5
1808 sed 's/^/| /' conftest.$ac_ext >&5
1812 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1813 as_fn_set_status $ac_retval
1817 # ac_fn_c_try_run LINENO
1818 # ----------------------
1819 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1820 # that executables *can* be run.
1823 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1824 if { { ac_try="$ac_link"
1826 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1827 *) ac_try_echo
=$ac_try;;
1829 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1830 $as_echo "$ac_try_echo"; } >&5
1831 (eval "$ac_link") 2>&5
1833 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1834 test $ac_status = 0; } && { ac_try
='./conftest$ac_exeext'
1835 { { case "(($ac_try" in
1836 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1837 *) ac_try_echo=$ac_try;;
1839 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1840 $as_echo "$ac_try_echo"; } >&5
1841 (eval "$ac_try") 2>&5
1843 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1844 test $ac_status = 0; }; }; then :
1847 $as_echo "$as_me: program exited with status $ac_status" >&5
1848 $as_echo "$as_me: failed program was:" >&5
1849 sed 's/^/| /' conftest.$ac_ext >&5
1851 ac_retval=$ac_status
1853 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1854 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1855 as_fn_set_status $ac_retval
1859 # ac_fn_c_check_func LINENO FUNC VAR
1860 # ----------------------------------
1861 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1862 ac_fn_c_check_func ()
1864 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1866 $as_echo_n "checking for $2... " >&6; }
1867 if eval \${$3+:} false; then :
1868 $as_echo_n "(cached) " >&6
1870 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1871 /* end confdefs.h. */
1872 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1873 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1874 #define $2 innocuous_$2
1876 /* System header to define __stub macros and hopefully few prototypes,
1877 which can conflict with char $2 (); below.
1878 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1879 <limits.h> exists even on freestanding compilers. */
1882 # include <limits.h>
1884 # include <assert.h>
1889 /* Override any GCC internal prototype to avoid an error.
1890 Use char because int might match the return type of a GCC
1891 builtin and then its argument prototype would still apply. */
1896 /* The GNU C library defines this for functions which it implements
1897 to always fail with ENOSYS. Some functions are actually named
1898 something starting with __ and the normal name is an alias. */
1899 #if defined __stub_$2 || defined __stub___$2
1911 if ac_fn_c_try_link "$LINENO"; then :
1916 rm -f core conftest.err conftest.$ac_objext \
1917 conftest$ac_exeext conftest.$ac_ext
1920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1921 $as_echo "$ac_res" >&6; }
1922 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1924 } # ac_fn_c_check_func
1926 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1927 # -------------------------------------------------------
1928 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1929 # the include files in INCLUDES and setting the cache variable VAR
1931 ac_fn_c_check_header_mongrel ()
1933 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1934 if eval \${$3+:} false; then :
1935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1936 $as_echo_n "checking for $2... " >&6; }
1937 if eval \${$3+:} false; then :
1938 $as_echo_n "(cached) " >&6
1941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1942 $as_echo "$ac_res" >&6; }
1944 # Is the header compilable?
1945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1946 $as_echo_n "checking $2 usability... " >&6; }
1947 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1948 /* end confdefs.h. */
1952 if ac_fn_c_try_compile "$LINENO"; then :
1953 ac_header_compiler=yes
1955 ac_header_compiler=no
1957 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1959 $as_echo "$ac_header_compiler" >&6; }
1961 # Is the header present?
1962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1963 $as_echo_n "checking $2 presence... " >&6; }
1964 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1965 /* end confdefs.h. */
1968 if ac_fn_c_try_cpp "$LINENO"; then :
1969 ac_header_preproc=yes
1971 ac_header_preproc=no
1973 rm -f conftest.err conftest.i conftest.$ac_ext
1974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1975 $as_echo "$ac_header_preproc" >&6; }
1977 # So? What about this header?
1978 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1980 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1981 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1982 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1983 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1986 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1987 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1988 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1989 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1990 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1991 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1992 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1993 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1994 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1995 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1999 $as_echo_n "checking for $2... " >&6; }
2000 if eval \${$3+:} false; then :
2001 $as_echo_n "(cached) " >&6
2003 eval "$3=\$ac_header_compiler"
2006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2007 $as_echo "$ac_res" >&6; }
2009 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2011 } # ac_fn_c_check_header_mongrel
2012 cat >config.log <<_ACEOF
2013 This file contains any messages produced by compilers while
2014 running configure, to aid debugging if configure makes a mistake.
2016 It was created by zfs $as_me 0.6.5.11, which was
2017 generated by GNU Autoconf 2.69. Invocation command line was
2029 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
2030 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
2031 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
2032 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
2033 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
2035 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
2036 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
2038 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
2039 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
2040 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
2041 /usr/bin/hostinfo = `(/usr
/bin
/hostinfo
) 2>/dev
/null ||
echo unknown
`
2042 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
2043 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
2044 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
2048 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2052 test -z "$as_dir" && as_dir=.
2053 $as_echo "PATH: $as_dir"
2069 # Keep a trace of the command line.
2070 # Strip out --no-create and --no-recursion so they do not pile up.
2071 # Strip out --silent because we don't want to record it for future runs.
2072 # Also quote any args containing shell meta-characters.
2073 # Make two passes to allow for proper duplicate-argument suppression.
2077 ac_must_keep_next=false
2083 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2084 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2085 | -silent | --silent | --silen | --sile | --sil)
2088 ac_arg=`$as_echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
2091 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2093 as_fn_append ac_configure_args1 " '$ac_arg'"
2094 if test $ac_must_keep_next = true; then
2095 ac_must_keep_next=false # Got value, back to normal.
2098 *=* | --config-cache | -C | -disable-* | --disable-* \
2099 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2100 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2101 | -with-* | --with-* | -without-* | --without-* | --x)
2102 case "$ac_configure_args0 " in
2103 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2106 -* ) ac_must_keep_next=true ;;
2109 as_fn_append ac_configure_args " '$ac_arg'"
2114 { ac_configure_args0=; unset ac_configure_args0;}
2115 { ac_configure_args1=; unset ac_configure_args1;}
2117 # When interrupted or exit'd, cleanup temporary files, and complete
2118 # config.log. We remove comments because anyway the quotes in there
2119 # would cause problems or look ugly.
2120 # WARNING: Use '\'' to represent an apostrophe within the trap.
2121 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2122 trap 'exit_status=$?
2123 # Save into config.log some information that might help in debugging.
2127 $as_echo "## ---------------- ##
2128 ## Cache variables. ##
2129 ## ---------------- ##"
2131 # The following way of writing the cache mishandles newlines in values,
2133 for ac_var in `(set) 2>&1 |
sed -n '\''s
/^\
([a-zA-Z_
][a-zA-Z0-9_
]*\
)=.
*/\
1/p
'\''`; do
2134 eval ac_val=\$$ac_var
2138 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2139 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2142 _ | IFS | as_nl) ;; #(
2143 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2144 *) { eval $ac_var=; unset $ac_var;} ;;
2149 case $as_nl`(ac_space
='\'' '\''; set) 2>&1` in #(
2150 *${as_nl}ac_space=\ *)
2152 "s/'\''/'\''\\\\'\'''\''/g;
2153 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2156 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2163 $as_echo "## ----------------- ##
2164 ## Output variables. ##
2165 ## ----------------- ##"
2167 for ac_var in $ac_subst_vars
2169 eval ac_val=\$$ac_var
2171 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2173 $as_echo "$ac_var='\''$ac_val'\''"
2177 if test -n "$ac_subst_files"; then
2178 $as_echo "## ------------------- ##
2179 ## File substitutions. ##
2180 ## ------------------- ##"
2182 for ac_var in $ac_subst_files
2184 eval ac_val=\$$ac_var
2186 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2188 $as_echo "$ac_var='\''$ac_val'\''"
2193 if test -s confdefs.h; then
2194 $as_echo "## ----------- ##
2201 test "$ac_signal" != 0 &&
2202 $as_echo "$as_me: caught signal $ac_signal"
2203 $as_echo "$as_me: exit $exit_status"
2205 rm -f core *.core core.conftest.* &&
2206 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2209 for ac_signal in 1 2 13 15; do
2210 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2214 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2215 rm -f -r conftest* confdefs.h
2217 $as_echo "/* confdefs.h */" > confdefs.h
2219 # Predefined preprocessor variables.
2221 cat >>confdefs.h <<_ACEOF
2222 #define PACKAGE_NAME "$PACKAGE_NAME"
2225 cat >>confdefs.h <<_ACEOF
2226 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2229 cat >>confdefs.h <<_ACEOF
2230 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2233 cat >>confdefs.h <<_ACEOF
2234 #define PACKAGE_STRING "$PACKAGE_STRING"
2237 cat >>confdefs.h <<_ACEOF
2238 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2241 cat >>confdefs.h <<_ACEOF
2242 #define PACKAGE_URL "$PACKAGE_URL"
2246 # Let the site file select an alternate cache file if it wants to.
2247 # Prefer an explicitly selected file to automatically selected ones.
2250 if test -n "$CONFIG_SITE"; then
2251 # We do not want a PATH search for config.site.
2252 case $CONFIG_SITE in #((
2253 -*) ac_site_file1=./$CONFIG_SITE;;
2254 */*) ac_site_file1=$CONFIG_SITE;;
2255 *) ac_site_file1=./$CONFIG_SITE;;
2257 elif test "x$prefix" != xNONE; then
2258 ac_site_file1=$prefix/share/config.site
2259 ac_site_file2=$prefix/etc/config.site
2261 ac_site_file1=$ac_default_prefix/share/config.site
2262 ac_site_file2=$ac_default_prefix/etc/config.site
2264 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2266 test "x$ac_site_file" = xNONE && continue
2267 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2268 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2269 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2270 sed 's/^/| /' "$ac_site_file" >&5
2272 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2273 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2274 as_fn_error $? "failed to load site
script $ac_site_file
2275 See \
`config.log' for more details" "$LINENO" 5; }
2279 if test -r "$cache_file"; then
2280 # Some versions of bash will fail to source /dev/null (special files
2281 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2282 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2283 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2284 $as_echo "$as_me: loading cache $cache_file" >&6;}
2286 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2287 *) . "./$cache_file";;
2291 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2292 $as_echo "$as_me: creating cache $cache_file" >&6;}
2296 # Check that the precious variables saved in the cache have kept the same
2298 ac_cache_corrupted=false
2299 for ac_var in $ac_precious_vars; do
2300 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2301 eval ac_new_set=\$ac_env_${ac_var}_set
2302 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2303 eval ac_new_val=\$ac_env_${ac_var}_value
2304 case $ac_old_set,$ac_new_set in
2306 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&5
2307 $as_echo "$as_me: error
: \
`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2308 ac_cache_corrupted=: ;;
2310 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not
set in the previous run
" >&5
2311 $as_echo "$as_me: error
: \
`$ac_var' was not set in the previous run" >&2;}
2312 ac_cache_corrupted=: ;;
2315 if test "x$ac_old_val" != "x$ac_new_val"; then
2316 # differences in whitespace do not lead to failure.
2317 ac_old_val_w=`echo x
$ac_old_val`
2318 ac_new_val_w=`echo x
$ac_new_val`
2319 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2320 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2321 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run
:" >&2;}
2322 ac_cache_corrupted=:
2324 { $as_echo "$as_me:${as_lineno-$LINENO}: warning
: ignoring whitespace changes
in \
`$ac_var' since the previous run:" >&5
2325 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2326 eval $ac_var=\$ac_old_val
2328 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2329 $as_echo "$as_me: former value
: \
`$ac_old_val'" >&2;}
2330 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2331 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2334 # Pass precious variables to config.status.
2335 if test "$ac_new_set" = set; then
2337 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s
/'/'\\\\\\\\''/g
"` ;;
2338 *) ac_arg=$ac_var=$ac_new_val ;;
2340 case " $ac_configure_args " in
2341 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2342 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2346 if $ac_cache_corrupted; then
2347 { $as_echo "$as_me:${as_lineno-$LINENO}: error
: in \
`$ac_pwd':" >&5
2348 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2349 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2350 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2351 as_fn_error $? "run \`make distclean' and
/or \
`rm $cache_file' and start over" "$LINENO" 5
2353 ## -------------------- ##
2354 ## Main body of script. ##
2355 ## -------------------- ##
2358 ac_cpp='$CPP $CPPFLAGS'
2359 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2360 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2361 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2365 ac_cpp='$CPP $CPPFLAGS'
2366 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2367 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2368 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2374 for ac_prog in gawk mawk nawk awk
2376 # Extract the first word of "$ac_prog", so it can be a program name with args.
2377 set dummy $ac_prog; ac_word=$2
2378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2379 $as_echo_n "checking for $ac_word... " >&6; }
2380 if ${ac_cv_prog_AWK+:} false; then :
2381 $as_echo_n "(cached) " >&6
2383 if test -n "$AWK"; then
2384 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2386 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2390 test -z "$as_dir" && as_dir=.
2391 for ac_exec_ext in '' $ac_executable_extensions; do
2392 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2393 ac_cv_prog_AWK="$ac_prog"
2394 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2404 if test -n "$AWK"; then
2405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2406 $as_echo "$AWK" >&6; }
2408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2409 $as_echo "no" >&6; }
2413 test -n "$AWK" && break
2416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking metadata" >&5
2417 $as_echo_n "checking metadata... " >&6; }
2420 _zfs_ac_meta_type="none"
2421 if test -f "$META"; then
2422 _zfs_ac_meta_type="META file"
2423 _dpkg_parsechangelog=$(dpkg-parsechangelog 2>/dev/null)
2425 ZFS_META_NAME=`$AWK -F ':[ \t]+' '$1 ~ /^ *(Name|Project|Package)$/ { print $2; exit }' $META`;
2426 if test -n "$ZFS_META_NAME"; then
2428 cat >>confdefs.h <<_ACEOF
2429 #define ZFS_META_NAME "$ZFS_META_NAME"
2435 ZFS_META_VERSION=`$AWK -F ':[ \t]+' '$1 ~ /^ *Version$/ { print $2; exit }' $META`;
2436 if test -n "$ZFS_META_VERSION"; then
2438 cat >>confdefs.h <<_ACEOF
2439 #define ZFS_META_VERSION "$ZFS_META_VERSION"
2445 if test -n "${_dpkg_parsechangelog}"; then
2446 _dpkg_version=$(echo "${_dpkg_parsechangelog}" \
2447 | $AWK '$1 == "Version:" { print $2; }' \
2449 if test "${_dpkg_version}" != "$ZFS_META_VERSION"; then
2451 *** Version $ZFS_META_VERSION in the META file is different than
2452 *** version $_dpkg_version in the debian/changelog file. DKMS and DEB
2453 *** packaging require that these files have the same version.
2458 ZFS_META_RELEASE=`$AWK -F ':[ \t]+' '$1 ~ /^ *Release$/ { print $2; exit }' $META`;
2460 if test -n "${_dpkg_parsechangelog}"; then
2461 _dpkg_release=$(echo "${_dpkg_parsechangelog}" \
2462 | $AWK '$1 == "Version:" { print $2; }' \
2464 if test -n "${_dpkg_release}"; then
2465 ZFS_META_RELEASE=${_dpkg_release}
2466 _zfs_ac_meta_type="dpkg-parsechangelog"
2468 elif test ! -f ".nogitrelease" && git rev-parse --git-dir > /dev/null 2>&1; then
2469 _match="${ZFS_META_NAME}-${ZFS_META_VERSION}"
2470 _alias=$(git describe --match=${_match} 2>/dev/null)
2471 _release=$(echo ${_alias}|cut -f3- -d'-'|sed 's/-/_/g')
2472 if test -n "${_release}"; then
2473 ZFS_META_RELEASE=${_release}
2474 _zfs_ac_meta_type="git describe"
2478 if test -n "$ZFS_META_RELEASE"; then
2480 cat >>confdefs.h <<_ACEOF
2481 #define ZFS_META_RELEASE "$ZFS_META_RELEASE"
2486 RELEASE="$ZFS_META_RELEASE"
2490 ZFS_META_LICENSE=`$AWK -F ':[ \t]+' '$1 ~ /^ *License$/ { print $2; exit }' $META`;
2491 if test -n "$ZFS_META_LICENSE"; then
2493 cat >>confdefs.h <<_ACEOF
2494 #define ZFS_META_LICENSE "$ZFS_META_LICENSE"
2500 if test -n "$ZFS_META_NAME" -a -n "$ZFS_META_VERSION"; then
2501 ZFS_META_ALIAS="$ZFS_META_NAME-$ZFS_META_VERSION"
2502 test -n "$ZFS_META_RELEASE" &&
2503 ZFS_META_ALIAS="$ZFS_META_ALIAS-$ZFS_META_RELEASE"
2505 cat >>confdefs.h <<_ACEOF
2506 #define ZFS_META_ALIAS "$ZFS_META_ALIAS"
2512 ZFS_META_DATA=`$AWK -F ':[ \t]+' '$1 ~ /^ *Date$/ { print $2; exit }' $META`;
2513 if test -n "$ZFS_META_DATA"; then
2515 cat >>confdefs.h <<_ACEOF
2516 #define ZFS_META_DATA "$ZFS_META_DATA"
2522 ZFS_META_AUTHOR=`$AWK -F ':[ \t]+' '$1 ~ /^ *Author$/ { print $2; exit }' $META`;
2523 if test -n "$ZFS_META_AUTHOR"; then
2525 cat >>confdefs.h <<_ACEOF
2526 #define ZFS_META_AUTHOR "$ZFS_META_AUTHOR"
2533 ZFS_META_LT_CURRENT=`$AWK -F ':[ \t]+' '$1 ~ /^ *LT_Current$/ { print $2; exit }' $META`;
2534 ZFS_META_LT_REVISION=`$AWK -F ':[ \t]+' '$1 ~ /^ *LT_Revision$/ { print $2; exit }' $META`;
2535 ZFS_META_LT_AGE=`$AWK -F ':[ \t]+' '$1 ~ /^ *LT_Age$/ { print $2; exit }' $META`;
2536 if test -n "$ZFS_META_LT_CURRENT" \
2537 -o -n "$ZFS_META_LT_REVISION" \
2538 -o -n "$ZFS_META_LT_AGE"; then
2539 test -n "$ZFS_META_LT_CURRENT" || ZFS_META_LT_CURRENT="0"
2540 test -n "$ZFS_META_LT_REVISION" || ZFS_META_LT_REVISION="0"
2541 test -n "$ZFS_META_LT_AGE" || ZFS_META_LT_AGE="0"
2543 cat >>confdefs.h <<_ACEOF
2544 #define ZFS_META_LT_CURRENT "$ZFS_META_LT_CURRENT"
2548 cat >>confdefs.h <<_ACEOF
2549 #define ZFS_META_LT_REVISION "$ZFS_META_LT_REVISION"
2553 cat >>confdefs.h <<_ACEOF
2554 #define ZFS_META_LT_AGE "$ZFS_META_LT_AGE"
2563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_zfs_ac_meta_type" >&5
2564 $as_echo "$_zfs_ac_meta_type" >&6; }
2568 for ac_dir in config "$srcdir"/config; do
2569 if test -f "$ac_dir/install-sh"; then
2571 ac_install_sh="$ac_aux_dir/install-sh -c"
2573 elif test -f "$ac_dir/install.sh"; then
2575 ac_install_sh="$ac_aux_dir/install.sh -c"
2577 elif test -f "$ac_dir/shtool"; then
2579 ac_install_sh="$ac_aux_dir/shtool install -c"
2583 if test -z "$ac_aux_dir"; then
2584 as_fn_error $? "cannot find install-sh, install.sh, or shtool in config \"$srcdir\"/config" "$LINENO" 5
2587 # These three variables are undocumented and unsupported,
2588 # and are intended to be withdrawn in a future Autoconf release.
2589 # They can cause serious problems if a builder's source tree is in a directory
2590 # whose full name contains unusual characters.
2591 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2592 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2593 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2597 # Make sure we can run config.sub.
2598 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2599 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2602 $as_echo_n "checking build system type... " >&6; }
2603 if ${ac_cv_build+:} false; then :
2604 $as_echo_n "(cached) " >&6
2606 ac_build_alias=$build_alias
2607 test "x$ac_build_alias" = x &&
2608 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2609 test "x$ac_build_alias" = x &&
2610 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2611 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2612 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2616 $as_echo "$ac_cv_build" >&6; }
2617 case $ac_cv_build in
2619 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2622 ac_save_IFS=$IFS; IFS='-'
2628 # Remember, the first character of IFS is used to create $*,
2629 # except with old shells:
2632 case $build_os in *\ *) build_os=`echo "$build_os" |
sed 's/ /-/g'`;; esac
2635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2636 $as_echo_n "checking host system type... " >&6; }
2637 if ${ac_cv_host+:} false; then :
2638 $as_echo_n "(cached) " >&6
2640 if test "x$host_alias" = x; then
2641 ac_cv_host=$ac_cv_build
2643 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2644 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2649 $as_echo "$ac_cv_host" >&6; }
2652 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2655 ac_save_IFS=$IFS; IFS='-'
2661 # Remember, the first character of IFS is used to create $*,
2662 # except with old shells:
2665 case $host_os in *\ *) host_os=`echo "$host_os" |
sed 's/ /-/g'`;; esac
2668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2669 $as_echo_n "checking target system type... " >&6; }
2670 if ${ac_cv_target+:} false; then :
2671 $as_echo_n "(cached) " >&6
2673 if test "x$target_alias" = x; then
2674 ac_cv_target=$ac_cv_host
2676 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2677 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2682 $as_echo "$ac_cv_target" >&6; }
2683 case $ac_cv_target in
2685 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2687 target=$ac_cv_target
2688 ac_save_IFS=$IFS; IFS='-'
2694 # Remember, the first character of IFS is used to create $*,
2695 # except with old shells:
2698 case $target_os in *\ *) target_os=`echo "$target_os" |
sed 's/ /-/g'`;; esac
2701 # The aliases save the names the user supplied, while $host etc.
2702 # will get canonicalized.
2703 test -n "$target_alias" &&
2704 test "$program_prefix$program_suffix$program_transform_name" = \
2706 program_prefix=${target_alias}-
2709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2710 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2711 # Check whether --enable-maintainer-mode was given.
2712 if test "${enable_maintainer_mode+set}" = set; then :
2713 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2715 USE_MAINTAINER_MODE=no
2718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2719 $as_echo "$USE_MAINTAINER_MODE" >&6; }
2720 if test $USE_MAINTAINER_MODE = yes; then
2721 MAINTAINER_MODE_TRUE=
2722 MAINTAINER_MODE_FALSE='#'
2724 MAINTAINER_MODE_TRUE='#'
2725 MAINTAINER_MODE_FALSE=
2728 MAINT=$MAINTAINER_MODE_TRUE
2731 # Check whether --enable-silent-rules was given.
2732 if test "${enable_silent_rules+set}" = set; then :
2733 enableval=$enable_silent_rules;
2736 case $enable_silent_rules in # (((
2737 yes) AM_DEFAULT_VERBOSITY=0;;
2738 no) AM_DEFAULT_VERBOSITY=1;;
2739 *) AM_DEFAULT_VERBOSITY=0;;
2741 am_make=${MAKE-make}
2742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2743 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2744 if ${am_cv_make_support_nested_variables+:} false; then :
2745 $as_echo_n "(cached) " >&6
2747 if $as_echo 'TRUE=$(BAR$(V))
2753 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2754 am_cv_make_support_nested_variables=yes
2756 am_cv_make_support_nested_variables=no
2759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2760 $as_echo "$am_cv_make_support_nested_variables" >&6; }
2761 if test $am_cv_make_support_nested_variables = yes; then
2763 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2765 AM_V=$AM_DEFAULT_VERBOSITY
2766 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2770 am__api_version='1.15'
2772 # Find a good install program. We prefer a C program (faster),
2773 # so one script is as good as another. But avoid the broken or
2774 # incompatible versions:
2775 # SysV /etc/install, /usr/sbin/install
2776 # SunOS /usr/etc/install
2777 # IRIX /sbin/install
2779 # AmigaOS /C/install, which installs bootblocks on floppy discs
2780 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2781 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2782 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2783 # OS/2's system install, which has a completely different semantic
2784 # ./install, which can be erroneously created by make from ./install.sh.
2785 # Reject install programs that cannot install multiple files.
2786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2787 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2788 if test -z "$INSTALL"; then
2789 if ${ac_cv_path_install+:} false; then :
2790 $as_echo_n "(cached) " >&6
2792 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2796 test -z "$as_dir" && as_dir=.
2797 # Account for people who put trailing slashes in PATH elements.
2798 case $as_dir/ in #((
2799 ./ | .// | /[cC]/* | \
2800 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2801 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2804 # OSF1 and SCO ODT 3.0 have their own names for install.
2805 # Don't use installbsd from OSF since it installs stuff as root
2807 for ac_prog in ginstall scoinst install; do
2808 for ac_exec_ext in '' $ac_executable_extensions; do
2809 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2810 if test $ac_prog = install &&
2811 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2812 # AIX install. It has an incompatible calling convention.
2814 elif test $ac_prog = install &&
2815 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2816 # program-specific install script used by HP pwplus--don't use.
2819 rm -rf conftest.one conftest.two conftest.dir
2820 echo one > conftest.one
2821 echo two > conftest.two
2823 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2824 test -s conftest.one && test -s conftest.two &&
2825 test -s conftest.dir/conftest.one &&
2826 test -s conftest.dir/conftest.two
2828 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2841 rm -rf conftest.one conftest.two conftest.dir
2844 if test "${ac_cv_path_install+set}" = set; then
2845 INSTALL=$ac_cv_path_install
2847 # As a last resort, use the slow shell script. Don't cache a
2848 # value for INSTALL within a source directory, because that will
2849 # break other packages using the cache if that directory is
2850 # removed, or if the value is a relative name.
2851 INSTALL=$ac_install_sh
2854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2855 $as_echo "$INSTALL" >&6; }
2857 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2858 # It thinks the first close brace ends the variable substitution.
2859 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2861 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2863 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2866 $as_echo_n "checking whether build environment is sane... " >&6; }
2867 # Reject unsafe characters in $srcdir or the absolute working directory
2868 # name. Accept space and tab only in the latter.
2872 *[\\\"\#\$\&\'\`$am_lf]*)
2873 as_fn_error $?
"unsafe absolute working directory name" "$LINENO" 5;;
2876 *[\\\"\
#\$\&\'\`$am_lf\ \ ]*)
2877 as_fn_error $?
"unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2880 # Do 'set' in a subshell so we don't clobber the current shell's
2881 # arguments. Must try -L first in case configure is actually a
2882 # symlink; some systems play weird games with the mod time of symlinks
2883 # (eg FreeBSD returns the mod time of the symlink's containing
2887 for am_try
in 1 2; do
2888 echo "timestamp, slept: $am_has_slept" > conftest.
file
2889 set X
`ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2890 if test "$*" = "X"; then
2892 set X
`ls -t "$srcdir/configure" conftest.file`
2894 if test "$*" != "X $srcdir/configure conftest.file" \
2895 && test "$*" != "X conftest.file $srcdir/configure"; then
2897 # If neither matched, then we have a broken ls. This can happen
2898 # if, for instance, CONFIG_SHELL is bash and it inherits a
2899 # broken ls alias from the environment. This has actually
2900 # happened. Such a system could not be considered "sane".
2901 as_fn_error $?
"ls -t appears to fail. Make sure there is not a broken
2902 alias in your environment" "$LINENO" 5
2904 if test "$2" = conftest.
file ||
test $am_try -eq 2; then
2911 test "$2" = conftest.
file
2917 as_fn_error $?
"newly created file is older than distributed files!
2918 Check your system clock" "$LINENO" 5
2920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2921 $as_echo "yes" >&6; }
2922 # If we didn't sleep, we still need to ensure time stamps of config.status and
2923 # generated files are strictly newer.
2925 if grep 'slept: no' conftest.
file >/dev
/null
2>&1; then
2932 test "$program_prefix" != NONE
&&
2933 program_transform_name
="s&^&$program_prefix&;$program_transform_name"
2934 # Use a double $ so make ignores it.
2935 test "$program_suffix" != NONE
&&
2936 program_transform_name
="s&\$&$program_suffix&;$program_transform_name"
2937 # Double any \ or $.
2938 # By default was `s,x,x', remove it if useless.
2939 ac_script
='s/[\\$]/&&/g;s/;s,x,x,$//'
2940 program_transform_name
=`$as_echo "$program_transform_name" | sed "$ac_script"`
2942 # Expand $ac_aux_dir to an absolute path.
2943 am_aux_dir
=`cd "$ac_aux_dir" && pwd`
2945 if test x
"${MISSING+set}" != xset
; then
2948 MISSING
="\${SHELL} \"$am_aux_dir/missing\"" ;;
2950 MISSING
="\${SHELL} $am_aux_dir/missing" ;;
2953 # Use eval to expand $SHELL
2954 if eval "$MISSING --is-lightweight"; then
2955 am_missing_run
="$MISSING "
2958 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2959 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2962 if test x
"${install_sh+set}" != xset
; then
2965 install_sh
="\${SHELL} '$am_aux_dir/install-sh'" ;;
2967 install_sh
="\${SHELL} $am_aux_dir/install-sh"
2971 # Installed binaries are usually stripped using 'strip' when the user
2972 # run "make install-strip". However 'strip' might not be the right
2973 # tool to use in cross-compilation environments, therefore Automake
2974 # will honor the 'STRIP' environment variable to overrule this program.
2975 if test "$cross_compiling" != no
; then
2976 if test -n "$ac_tool_prefix"; then
2977 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2978 set dummy
${ac_tool_prefix}strip
; ac_word
=$2
2979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2980 $as_echo_n "checking for $ac_word... " >&6; }
2981 if ${ac_cv_prog_STRIP+:} false
; then :
2982 $as_echo_n "(cached) " >&6
2984 if test -n "$STRIP"; then
2985 ac_cv_prog_STRIP
="$STRIP" # Let the user override the test.
2987 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2991 test -z "$as_dir" && as_dir
=.
2992 for ac_exec_ext
in '' $ac_executable_extensions; do
2993 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
2994 ac_cv_prog_STRIP
="${ac_tool_prefix}strip"
2995 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3004 STRIP
=$ac_cv_prog_STRIP
3005 if test -n "$STRIP"; then
3006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3007 $as_echo "$STRIP" >&6; }
3009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3010 $as_echo "no" >&6; }
3015 if test -z "$ac_cv_prog_STRIP"; then
3017 # Extract the first word of "strip", so it can be a program name with args.
3018 set dummy strip
; ac_word
=$2
3019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3020 $as_echo_n "checking for $ac_word... " >&6; }
3021 if ${ac_cv_prog_ac_ct_STRIP+:} false
; then :
3022 $as_echo_n "(cached) " >&6
3024 if test -n "$ac_ct_STRIP"; then
3025 ac_cv_prog_ac_ct_STRIP
="$ac_ct_STRIP" # Let the user override the test.
3027 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3031 test -z "$as_dir" && as_dir
=.
3032 for ac_exec_ext
in '' $ac_executable_extensions; do
3033 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3034 ac_cv_prog_ac_ct_STRIP
="strip"
3035 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3044 ac_ct_STRIP
=$ac_cv_prog_ac_ct_STRIP
3045 if test -n "$ac_ct_STRIP"; then
3046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3047 $as_echo "$ac_ct_STRIP" >&6; }
3049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3050 $as_echo "no" >&6; }
3053 if test "x$ac_ct_STRIP" = x
; then
3056 case $cross_compiling:$ac_tool_warned in
3058 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3059 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3060 ac_tool_warned
=yes ;;
3065 STRIP
="$ac_cv_prog_STRIP"
3069 INSTALL_STRIP_PROGRAM
="\$(install_sh) -c -s"
3071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3072 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3073 if test -z "$MKDIR_P"; then
3074 if ${ac_cv_path_mkdir+:} false
; then :
3075 $as_echo_n "(cached) " >&6
3077 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3078 for as_dir
in $PATH$PATH_SEPARATOR/opt
/sfw
/bin
3081 test -z "$as_dir" && as_dir
=.
3082 for ac_prog
in mkdir gmkdir
; do
3083 for ac_exec_ext
in '' $ac_executable_extensions; do
3084 as_fn_executable_p
"$as_dir/$ac_prog$ac_exec_ext" ||
continue
3085 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3086 'mkdir (GNU coreutils) '* | \
3087 'mkdir (coreutils) '* | \
3088 'mkdir (fileutils) '4.1*)
3089 ac_cv_path_mkdir
=$as_dir/$ac_prog$ac_exec_ext
3099 test -d .
/--version && rmdir .
/--version
3100 if test "${ac_cv_path_mkdir+set}" = set; then
3101 MKDIR_P
="$ac_cv_path_mkdir -p"
3103 # As a last resort, use the slow shell script. Don't cache a
3104 # value for MKDIR_P within a source directory, because that will
3105 # break other packages using the cache if that directory is
3106 # removed, or if the value is a relative name.
3107 MKDIR_P
="$ac_install_sh -d"
3110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3111 $as_echo "$MKDIR_P" >&6; }
3113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3114 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3116 ac_make
=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3117 if eval \
${ac_cv_prog_make_${ac_make}_set+:} false
; then :
3118 $as_echo_n "(cached) " >&6
3120 cat >conftest.
make <<\_ACEOF
3123 @
echo '@@@%%%=$(MAKE)=@@@%%%'
3125 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3126 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3128 eval ac_cv_prog_make_
${ac_make}_set
=yes;;
3130 eval ac_cv_prog_make_
${ac_make}_set
=no
;;
3134 if eval test \
$ac_cv_prog_make_${ac_make}_set
= yes; then
3135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3136 $as_echo "yes" >&6; }
3139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3140 $as_echo "no" >&6; }
3141 SET_MAKE
="MAKE=${MAKE-make}"
3144 rm -rf .tst
2>/dev
/null
3145 mkdir .tst
2>/dev
/null
3146 if test -d .tst
; then
3151 rmdir .tst
2>/dev
/null
3153 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3154 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3155 # is not polluted with repeated "-I."
3156 am__isrc
=' -I$(srcdir)'
3157 # test to see if srcdir already configured
3158 if test -f $srcdir/config.status
; then
3159 as_fn_error $?
"source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3163 # test whether we have cygpath
3164 if test -z "$CYGPATH_W"; then
3165 if (cygpath
--version) >/dev
/null
2>/dev
/null
; then
3166 CYGPATH_W
='cygpath -w'
3173 # Define the identity of the package.
3178 cat >>confdefs.h
<<_ACEOF
3179 #define PACKAGE "$PACKAGE"
3183 cat >>confdefs.h
<<_ACEOF
3184 #define VERSION "$VERSION"
3187 # Some tools Automake needs.
3189 ACLOCAL
=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3192 AUTOCONF
=${AUTOCONF-"${am_missing_run}autoconf"}
3195 AUTOMAKE
=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3198 AUTOHEADER
=${AUTOHEADER-"${am_missing_run}autoheader"}
3201 MAKEINFO
=${MAKEINFO-"${am_missing_run}makeinfo"}
3203 # For better backward compatibility. To be removed once Automake 1.9.x
3204 # dies out for good. For more background, see:
3205 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3206 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3207 mkdir_p
='$(MKDIR_P)'
3209 # We need awk for the "check" target (and possibly the TAP driver). The
3210 # system "awk" is bad on some platforms.
3211 # Always define AMTAR for backward compatibility. Yes, it's still used
3212 # in the wild :-( We should find a proper way to deprecate it ...
3216 # We'll loop over all known methods to create a tar archive until one works.
3217 _am_tools
='gnutar pax cpio none'
3219 am__tar
='$${TAR-tar} chof - "$$tardir"' am__untar
='$${TAR-tar} xf -'
3226 # POSIX will say in a future version that running "rm -f" with no argument
3227 # is OK; and we want to be able to make that assumption in our Makefile
3228 # recipes. So use an aggressive probe to check that the usage we want is
3229 # actually supported "in the wild" to an acceptable degree.
3230 # See automake bug#10828.
3231 # To make any issue more visible, cause the running configure to be aborted
3232 # by default if the 'rm' program in use doesn't match our expectations; the
3233 # user can still override this though.
3234 if rm -f && rm -fr && rm -rf; then : OK
; else
3238 Your 'rm' program seems unable to run without file operands specified
3239 on the command line, even when the '-f' option is present. This is contrary
3240 to the behaviour of most rm programs out there, and not conforming with
3241 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3243 Please tell bug-automake@gnu.org about your system, including the value
3244 of your $PATH and any error possibly output before this message. This
3245 can help us improve future automake versions.
3248 if test x
"$ACCEPT_INFERIOR_RM_PROGRAM" = x
"yes"; then
3249 echo 'Configuration will proceed anyway, since you have set the' >&2
3250 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3254 Aborting the configuration process, to ensure you take notice of the issue.
3256 You can download and install GNU coreutils to get an 'rm' implementation
3257 that behaves properly: <http://www.gnu.org/software/coreutils/>.
3259 If you want to complete the configuration process using your problematic
3260 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3261 to "yes", and re-run configure.
3264 as_fn_error $?
"Your 'rm' program is bad, sorry." "$LINENO" 5
3268 ac_config_headers
="$ac_config_headers zfs_config.h"
3273 ac_cpp
='$CPP $CPPFLAGS'
3274 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3275 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3276 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3277 if test -n "$ac_tool_prefix"; then
3278 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3279 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
3280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3281 $as_echo_n "checking for $ac_word... " >&6; }
3282 if ${ac_cv_prog_CC+:} false
; then :
3283 $as_echo_n "(cached) " >&6
3285 if test -n "$CC"; then
3286 ac_cv_prog_CC
="$CC" # Let the user override the test.
3288 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3292 test -z "$as_dir" && as_dir
=.
3293 for ac_exec_ext
in '' $ac_executable_extensions; do
3294 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3295 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
3296 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3306 if test -n "$CC"; then
3307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3308 $as_echo "$CC" >&6; }
3310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3311 $as_echo "no" >&6; }
3316 if test -z "$ac_cv_prog_CC"; then
3318 # Extract the first word of "gcc", so it can be a program name with args.
3319 set dummy gcc
; ac_word
=$2
3320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3321 $as_echo_n "checking for $ac_word... " >&6; }
3322 if ${ac_cv_prog_ac_ct_CC+:} false
; then :
3323 $as_echo_n "(cached) " >&6
3325 if test -n "$ac_ct_CC"; then
3326 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3328 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3332 test -z "$as_dir" && as_dir
=.
3333 for ac_exec_ext
in '' $ac_executable_extensions; do
3334 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3335 ac_cv_prog_ac_ct_CC
="gcc"
3336 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3345 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3346 if test -n "$ac_ct_CC"; then
3347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3348 $as_echo "$ac_ct_CC" >&6; }
3350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3351 $as_echo "no" >&6; }
3354 if test "x$ac_ct_CC" = x
; then
3357 case $cross_compiling:$ac_tool_warned in
3359 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3360 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3361 ac_tool_warned
=yes ;;
3369 if test -z "$CC"; then
3370 if test -n "$ac_tool_prefix"; then
3371 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3372 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
3373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3374 $as_echo_n "checking for $ac_word... " >&6; }
3375 if ${ac_cv_prog_CC+:} false
; then :
3376 $as_echo_n "(cached) " >&6
3378 if test -n "$CC"; then
3379 ac_cv_prog_CC
="$CC" # Let the user override the test.
3381 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3385 test -z "$as_dir" && as_dir
=.
3386 for ac_exec_ext
in '' $ac_executable_extensions; do
3387 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3388 ac_cv_prog_CC
="${ac_tool_prefix}cc"
3389 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3399 if test -n "$CC"; then
3400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3401 $as_echo "$CC" >&6; }
3403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3404 $as_echo "no" >&6; }
3410 if test -z "$CC"; then
3411 # Extract the first word of "cc", so it can be a program name with args.
3412 set dummy cc
; ac_word
=$2
3413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3414 $as_echo_n "checking for $ac_word... " >&6; }
3415 if ${ac_cv_prog_CC+:} false
; then :
3416 $as_echo_n "(cached) " >&6
3418 if test -n "$CC"; then
3419 ac_cv_prog_CC
="$CC" # Let the user override the test.
3422 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3426 test -z "$as_dir" && as_dir
=.
3427 for ac_exec_ext
in '' $ac_executable_extensions; do
3428 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3429 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3430 ac_prog_rejected
=yes
3434 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3441 if test $ac_prog_rejected = yes; then
3442 # We found a bogon in the path, so make sure we never use it.
3443 set dummy
$ac_cv_prog_CC
3445 if test $# != 0; then
3446 # We chose a different compiler from the bogus one.
3447 # However, it has the same basename, so the bogon will be chosen
3448 # first if we set CC to just the basename; use the full file name.
3450 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
3456 if test -n "$CC"; then
3457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3458 $as_echo "$CC" >&6; }
3460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3461 $as_echo "no" >&6; }
3466 if test -z "$CC"; then
3467 if test -n "$ac_tool_prefix"; then
3468 for ac_prog
in cl.exe
3470 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3471 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
3472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3473 $as_echo_n "checking for $ac_word... " >&6; }
3474 if ${ac_cv_prog_CC+:} false
; then :
3475 $as_echo_n "(cached) " >&6
3477 if test -n "$CC"; then
3478 ac_cv_prog_CC
="$CC" # Let the user override the test.
3480 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3484 test -z "$as_dir" && as_dir
=.
3485 for ac_exec_ext
in '' $ac_executable_extensions; do
3486 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3487 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
3488 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3498 if test -n "$CC"; then
3499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3500 $as_echo "$CC" >&6; }
3502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3503 $as_echo "no" >&6; }
3507 test -n "$CC" && break
3510 if test -z "$CC"; then
3512 for ac_prog
in cl.exe
3514 # Extract the first word of "$ac_prog", so it can be a program name with args.
3515 set dummy
$ac_prog; ac_word
=$2
3516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3517 $as_echo_n "checking for $ac_word... " >&6; }
3518 if ${ac_cv_prog_ac_ct_CC+:} false
; then :
3519 $as_echo_n "(cached) " >&6
3521 if test -n "$ac_ct_CC"; then
3522 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3524 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3528 test -z "$as_dir" && as_dir
=.
3529 for ac_exec_ext
in '' $ac_executable_extensions; do
3530 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3531 ac_cv_prog_ac_ct_CC
="$ac_prog"
3532 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3541 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3542 if test -n "$ac_ct_CC"; then
3543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3544 $as_echo "$ac_ct_CC" >&6; }
3546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3547 $as_echo "no" >&6; }
3551 test -n "$ac_ct_CC" && break
3554 if test "x$ac_ct_CC" = x
; then
3557 case $cross_compiling:$ac_tool_warned in
3559 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3560 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3561 ac_tool_warned
=yes ;;
3570 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3571 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3572 as_fn_error $?
"no acceptable C compiler found in \$PATH
3573 See \`config.log' for more details" "$LINENO" 5; }
3575 # Provide some information about the compiler.
3576 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3579 for ac_option
in --version -v -V -qversion; do
3580 { { ac_try
="$ac_compiler $ac_option >&5"
3582 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3583 *) ac_try_echo=$ac_try;;
3585 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3586 $as_echo "$ac_try_echo"; } >&5
3587 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3589 if test -s conftest.err; then
3591 ... rest of stderr output deleted ...
3592 10q' conftest.err >conftest.er1
3593 cat conftest.er1 >&5
3595 rm -f conftest.er1 conftest.err
3596 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3597 test $ac_status = 0; }
3600 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3601 /* end confdefs.h. */
3611 ac_clean_files_save=$ac_clean_files
3612 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3613 # Try to create an executable without -o first, disregard a.out.
3614 # It will help us diagnose broken compilers, and finding out an intuition
3616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3617 $as_echo_n "checking whether the C compiler works... " >&6; }
3618 ac_link_default=`$as_echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
3620 # The possible output files:
3621 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3624 for ac_file in $ac_files
3627 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3628 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3633 if { { ac_try="$ac_link_default"
3635 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3636 *) ac_try_echo
=$ac_try;;
3638 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3639 $as_echo "$ac_try_echo"; } >&5
3640 (eval "$ac_link_default") 2>&5
3642 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3643 test $ac_status = 0; }; then :
3644 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3645 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3646 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3647 # so that the user can short-circuit this test for compilers unknown to
3649 for ac_file
in $ac_files ''
3651 test -f "$ac_file" ||
continue
3653 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
)
3656 # We found the default executable, but exeext='' is most
3660 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
3662 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3664 # We set ac_cv_exeext here because the later test for it is not
3665 # safe: cross compilers may not add the suffix if given an `-o'
3666 # argument, so we may need to know it at that point already.
3667 # Even if this section looks crufty: it has the advantage of
3674 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
3679 if test -z "$ac_file"; then :
3680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3681 $as_echo "no" >&6; }
3682 $as_echo "$as_me: failed program was:" >&5
3683 sed 's/^/| /' conftest.
$ac_ext >&5
3685 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3686 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3687 as_fn_error
77 "C compiler cannot create executables
3688 See \`config.log' for more details" "$LINENO" 5; }
3690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3691 $as_echo "yes" >&6; }
3693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3694 $as_echo_n "checking for C compiler default output file name... " >&6; }
3695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3696 $as_echo "$ac_file" >&6; }
3697 ac_exeext
=$ac_cv_exeext
3699 rm -f -r a.out a.out.dSYM a.exe conftest
$ac_cv_exeext b.out
3700 ac_clean_files
=$ac_clean_files_save
3701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3702 $as_echo_n "checking for suffix of executables... " >&6; }
3703 if { { ac_try
="$ac_link"
3705 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3706 *) ac_try_echo=$ac_try;;
3708 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3709 $as_echo "$ac_try_echo"; } >&5
3710 (eval "$ac_link") 2>&5
3712 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3713 test $ac_status = 0; }; then :
3714 # If both `conftest.exe
' and `conftest' are
`present' (well, observable)
3715 # catch `conftest.exe
'. For instance with Cygwin, `ls conftest' will
3716 # work properly (i.e., refer to `conftest.exe'), while it won't with
3718 for ac_file
in conftest.exe conftest conftest.
*; do
3719 test -f "$ac_file" ||
continue
3721 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
3722 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3728 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3729 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3730 as_fn_error $?
"cannot compute suffix of executables: cannot compile and link
3731 See \`config.log' for more details" "$LINENO" 5; }
3733 rm -f conftest conftest
$ac_cv_exeext
3734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3735 $as_echo "$ac_cv_exeext" >&6; }
3737 rm -f conftest.
$ac_ext
3738 EXEEXT
=$ac_cv_exeext
3740 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3741 /* end confdefs.h. */
3746 FILE *f = fopen ("conftest.out", "w");
3747 return ferror (f) || fclose (f) != 0;
3753 ac_clean_files
="$ac_clean_files conftest.out"
3754 # Check that the compiler produces executables we can run. If not, either
3755 # the compiler is broken, or we cross compile.
3756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3757 $as_echo_n "checking whether we are cross compiling... " >&6; }
3758 if test "$cross_compiling" != yes; then
3759 { { ac_try
="$ac_link"
3761 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3762 *) ac_try_echo=$ac_try;;
3764 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3765 $as_echo "$ac_try_echo"; } >&5
3766 (eval "$ac_link") 2>&5
3768 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3769 test $ac_status = 0; }
3770 if { ac_try='./conftest$ac_cv_exeext'
3771 { { case "(($ac_try" in
3772 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3773 *) ac_try_echo
=$ac_try;;
3775 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3776 $as_echo "$ac_try_echo"; } >&5
3777 (eval "$ac_try") 2>&5
3779 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3780 test $ac_status = 0; }; }; then
3783 if test "$cross_compiling" = maybe
; then
3786 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3787 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3788 as_fn_error $?
"cannot run C compiled programs.
3789 If you meant to cross compile, use \`--host'.
3790 See \`config.log' for more details" "$LINENO" 5; }
3794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3795 $as_echo "$cross_compiling" >&6; }
3797 rm -f conftest.
$ac_ext conftest
$ac_cv_exeext conftest.out
3798 ac_clean_files
=$ac_clean_files_save
3799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3800 $as_echo_n "checking for suffix of object files... " >&6; }
3801 if ${ac_cv_objext+:} false
; then :
3802 $as_echo_n "(cached) " >&6
3804 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3805 /* end confdefs.h. */
3815 rm -f conftest.o conftest.obj
3816 if { { ac_try
="$ac_compile"
3818 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3819 *) ac_try_echo=$ac_try;;
3821 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3822 $as_echo "$ac_try_echo"; } >&5
3823 (eval "$ac_compile") 2>&5
3825 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3826 test $ac_status = 0; }; then :
3827 for ac_file in conftest.o conftest.obj conftest.*; do
3828 test -f "$ac_file" || continue;
3830 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3831 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3836 $as_echo "$as_me: failed program was:" >&5
3837 sed 's/^/| /' conftest.$ac_ext >&5
3839 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3840 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3841 as_fn_error $? "cannot compute suffix of object files
: cannot compile
3842 See \
`config.log' for more details" "$LINENO" 5; }
3844 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3847 $as_echo "$ac_cv_objext" >&6; }
3848 OBJEXT=$ac_cv_objext
3850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3851 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3852 if ${ac_cv_c_compiler_gnu+:} false; then :
3853 $as_echo_n "(cached) " >&6
3855 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3856 /* end confdefs.h. */
3869 if ac_fn_c_try_compile "$LINENO"; then :
3874 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3875 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3879 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3880 if test $ac_compiler_gnu = yes; then
3885 ac_test_CFLAGS=${CFLAGS+set}
3886 ac_save_CFLAGS=$CFLAGS
3887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3888 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3889 if ${ac_cv_prog_cc_g+:} false; then :
3890 $as_echo_n "(cached) " >&6
3892 ac_save_c_werror_flag=$ac_c_werror_flag
3893 ac_c_werror_flag=yes
3896 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3897 /* end confdefs.h. */
3907 if ac_fn_c_try_compile "$LINENO"; then :
3911 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3912 /* end confdefs.h. */
3922 if ac_fn_c_try_compile "$LINENO"; then :
3925 ac_c_werror_flag=$ac_save_c_werror_flag
3927 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3928 /* end confdefs.h. */
3938 if ac_fn_c_try_compile "$LINENO"; then :
3941 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3943 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3945 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3946 ac_c_werror_flag=$ac_save_c_werror_flag
3948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3949 $as_echo "$ac_cv_prog_cc_g" >&6; }
3950 if test "$ac_test_CFLAGS" = set; then
3951 CFLAGS=$ac_save_CFLAGS
3952 elif test $ac_cv_prog_cc_g = yes; then
3953 if test "$GCC" = yes; then
3959 if test "$GCC" = yes; then
3965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3966 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3967 if ${ac_cv_prog_cc_c89+:} false; then :
3968 $as_echo_n "(cached) " >&6
3970 ac_cv_prog_cc_c89=no
3972 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3973 /* end confdefs.h. */
3977 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3978 struct buf { int x; };
3979 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3980 static char *e (p, i)
3986 static char *f (char * (*g) (char **, int), char **p, ...)
3991 s = g (p, va_arg (v,int));
3996 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3997 function prototypes and stuff, but not '\xHH' hex character constants.
3998 These don't provoke an error unfortunately, instead are silently treated
3999 as 'x'. The following induces an error, until -std is added to get
4000 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4001 array size at least. It's necessary to write '\x00'==0 to get something
4002 that's true only with -std. */
4003 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4005 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4006 inside strings and character constants. */
4008 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4010 int test (int i, double x);
4011 struct s1 {int (*f) (int a);};
4012 struct s2 {int (*f) (double a);};
4013 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4019 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4024 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4025 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4027 CC="$ac_save_CC $ac_arg"
4028 if ac_fn_c_try_compile "$LINENO"; then :
4029 ac_cv_prog_cc_c89=$ac_arg
4031 rm -f core conftest.err conftest.$ac_objext
4032 test "x$ac_cv_prog_cc_c89" != "xno" && break
4034 rm -f conftest.$ac_ext
4039 case "x$ac_cv_prog_cc_c89" in
4041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4042 $as_echo "none needed" >&6; } ;;
4044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4045 $as_echo "unsupported" >&6; } ;;
4047 CC="$CC $ac_cv_prog_cc_c89"
4048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4049 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4051 if test "x$ac_cv_prog_cc_c89" != xno; then :
4056 ac_cpp='$CPP $CPPFLAGS'
4057 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4058 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4059 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4062 ac_cpp='$CPP $CPPFLAGS'
4063 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4064 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4065 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4067 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4068 if ${am_cv_prog_cc_c_o+:} false; then :
4069 $as_echo_n "(cached) " >&6
4071 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4072 /* end confdefs.h. */
4082 # Make sure it works both with $CC and with simple cc.
4083 # Following AC_PROG_CC_C_O, we do the test twice because some
4084 # compilers refuse to overwrite an existing .o file with -o,
4085 # though they will create one.
4086 am_cv_prog_cc_c_o=yes
4088 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4089 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4092 (exit $ac_status); } \
4093 && test -f conftest2.$ac_objext; then
4096 am_cv_prog_cc_c_o=no
4100 rm -f core conftest*
4103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4104 $as_echo "$am_cv_prog_cc_c_o" >&6; }
4105 if test "$am_cv_prog_cc_c_o" != yes; then
4106 # Losing compiler, so override with the script.
4107 # FIXME: It is wrong to rewrite CC.
4108 # But if we don't then we get into trouble of one sort or another.
4109 # A longer-term fix would be to have automake use am__CC in this case,
4110 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4111 CC="$am_aux_dir/compile $CC"
4114 ac_cpp='$CPP $CPPFLAGS'
4115 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4116 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4117 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4119 DEPDIR="${am__leading_dot}deps"
4121 ac_config_commands="$ac_config_commands depfiles"
4124 am_make=${MAKE-make}
4125 cat > confinc << 'END'
4127 @echo this is the am__doit target
4130 # If we don't find an include directive, just comment out the code.
4131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4132 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4136 # First try GNU make style include.
4137 echo "include confinc" > confmf
4138 # Ignore all kinds of additional output from 'make'.
4139 case `$am_make -s -f confmf
2> /dev
/null
` in #(
4140 *the\ am__doit\ target*)
4146 # Now try BSD make style include.
4147 if test "$am__include" = "#"; then
4148 echo '.include "confinc"' > confmf
4149 case `$am_make -s -f confmf
2> /dev
/null
` in #(
4150 *the\ am__doit\ target*)
4151 am__include=.include
4159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4160 $as_echo "$_am_result" >&6; }
4161 rm -f confinc confmf
4163 # Check whether --enable-dependency-tracking was given.
4164 if test "${enable_dependency_tracking+set}" = set; then :
4165 enableval=$enable_dependency_tracking;
4168 if test "x$enable_dependency_tracking" != xno; then
4169 am_depcomp="$ac_aux_dir/depcomp"
4173 if test "x$enable_dependency_tracking" != xno; then
4183 depcc="$CC" am_compiler_list=
4185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4186 $as_echo_n "checking dependency style of $depcc... " >&6; }
4187 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4188 $as_echo_n "(cached) " >&6
4190 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4191 # We make a subdir and do the tests there. Otherwise we can end up
4192 # making bogus files that we don't know about and never remove. For
4193 # instance it was reported that on HP-UX the gcc test will end up
4194 # making a dummy file named 'D' -- because '-MD' means "put the output
4198 # Copy depcomp to subdir because otherwise we won't find it if we're
4199 # using a relative directory.
4200 cp "$am_depcomp" conftest.dir
4202 # We will build objects and dependencies in a subdirectory because
4203 # it helps to detect inapplicable dependency modes. For instance
4204 # both Tru64's cc and ICC support -MD to output dependencies as a
4205 # side effect of compilation, but ICC will put the dependencies in
4206 # the current directory while Tru64 will put them in the object
4210 am_cv_CC_dependencies_compiler_type=none
4211 if test "$am_compiler_list" = ""; then
4212 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < .
/depcomp
`
4215 case " $depcc " in #(
4216 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4219 for depmode in $am_compiler_list; do
4220 # Setup a source with many dependencies, because some compilers
4221 # like to wrap large dependency lists on column 80 (with \), and
4222 # we should not choose a depcomp mode which is confused by this.
4224 # We need to recreate these files for each test, as the compiler may
4225 # overwrite some of them when testing with obscure command lines.
4226 # This happens at least with the AIX C compiler.
4228 for i in 1 2 3 4 5 6; do
4229 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4230 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4231 # Solaris 10 /bin/sh.
4232 echo '/* dummy */' > sub/conftst$i.h
4234 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4236 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4237 # mode. It turns out that the SunPro C++ compiler does not properly
4238 # handle '-M -o', and we need to detect this. Also, some Intel
4239 # versions had trouble with output in subdirs.
4240 am__obj=sub/conftest.${OBJEXT-o}
4241 am__minus_obj="-o $am__obj"
4244 # This depmode causes a compiler race in universal mode.
4245 test "$am__universal" = false || continue
4248 # After this tag, mechanisms are not by side-effect, so they'll
4249 # only be used when explicitly requested.
4250 if test "x$enable_dependency_tracking" = xyes; then
4256 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4257 # This compiler won't grok '-c -o', but also, the minuso test has
4258 # not run yet. These depmodes are late enough in the game, and
4259 # so weak that their functioning should not be impacted.
4260 am__obj=conftest.${OBJEXT-o}
4265 if depmode=$depmode \
4266 source=sub/conftest.c object=$am__obj \
4267 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4268 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4269 >/dev/null 2>conftest.err &&
4270 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4271 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4272 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4273 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4274 # icc doesn't choke on unknown options, it will just issue warnings
4275 # or remarks (even with -Werror). So we grep stderr for any message
4276 # that says an option was ignored or not supported.
4277 # When given -MP, icc 7.0 and 7.1 complain thusly:
4278 # icc: Command line warning: ignoring option '-M'; no argument required
4279 # The diagnosis changed in icc 8.0:
4280 # icc: Command line remark: option '-MP' not supported
4281 if (grep 'ignoring option' conftest.err ||
4282 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4283 am_cv_CC_dependencies_compiler_type=$depmode
4292 am_cv_CC_dependencies_compiler_type=none
4296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4297 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4298 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4301 test "x$enable_dependency_tracking" != xno \
4302 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4304 am__fastdepCC_FALSE='#'
4306 am__fastdepCC_TRUE='#'
4307 am__fastdepCC_FALSE=
4313 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\
`" >&5
4314 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\
`" >&2;} ;;
4319 macro_version='2.4.6'
4320 macro_revision='2.4.6'
4334 ltmain=$ac_aux_dir/ltmain.sh
4336 # Backslashify metacharacters that are still active within
4337 # double-quoted strings.
4338 sed_quote_subst='s/\(["`$
\\]\
)/\\\
1/g
'
4340 # Same as above, but do not quote variable references.
4341 double_quote_subst='s
/\
(["`\\]\)/\\\1/g'
4343 # Sed substitution to delay expansion of an escaped shell variable in a
4344 # double_quote_subst'ed string.
4345 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4347 # Sed substitution to delay expansion of an escaped single quote.
4348 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4350 # Sed substitution to avoid accidental globbing in evaled expressions
4351 no_glob_subst='s/\*/\\\*/g'
4353 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4354 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4355 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print
strings" >&5
4358 $as_echo_n "checking how to print
strings...
" >&6; }
4359 # Test print first, because it will be a builtin if present.
4360 if test "X
`( print -r -- -n ) 2>/dev/null`" = X-n && \
4361 test "X
`print -r -- $ECHO 2>/dev/null`" = "X
$ECHO"; then
4363 elif test "X
`printf %s $ECHO 2>/dev/null`" = "X
$ECHO"; then
4366 # Use this function as a fallback that always works.
4367 func_fallback_echo ()
4369 eval 'cat <<_LTECHO_EOF
4373 ECHO='func_fallback_echo'
4376 # func_echo_all arg...
4377 # Invoke $ECHO with all args, space-separated.
4384 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result
: printf" >&5
4385 $as_echo "printf" >&6; } ;;
4386 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result
: print
-r" >&5
4387 $as_echo "print
-r" >&6; } ;;
4388 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result
: cat" >&5
4389 $as_echo "cat" >&6; } ;;
4405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for a
sed that does not truncate output
" >&5
4406 $as_echo_n "checking
for a
sed that does not truncate output...
" >&6; }
4407 if ${ac_cv_path_SED+:} false; then :
4408 $as_echo_n "(cached
) " >&6
4410 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4411 for ac_i in 1 2 3 4 5 6 7; do
4412 ac_script="$ac_script$as_nl$ac_script"
4414 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4415 { ac_script=; unset ac_script;}
4416 if test -z "$SED"; then
4417 ac_path_SED_found=false
4418 # Loop through the user's path and test for each of PROGNAME-LIST
4419 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4423 test -z "$as_dir" && as_dir=.
4424 for ac_prog in sed gsed; do
4425 for ac_exec_ext in '' $ac_executable_extensions; do
4426 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4427 as_fn_executable_p "$ac_path_SED" || continue
4428 # Check for GNU ac_path_SED and select it if it is found.
4429 # Check for GNU $ac_path_SED
4430 case `"$ac_path_SED" --version 2>&1` in
4432 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4435 $as_echo_n 0123456789 >"conftest.
in"
4438 cat "conftest.
in" "conftest.
in" >"conftest.tmp
"
4439 mv "conftest.tmp
" "conftest.
in"
4440 cp "conftest.
in" "conftest.
nl"
4441 $as_echo '' >> "conftest.
nl"
4442 "$ac_path_SED" -f conftest.sed < "conftest.
nl" >"conftest.out
" 2>/dev/null || break
4443 diff "conftest.out
" "conftest.
nl" >/dev/null 2>&1 || break
4444 as_fn_arith $ac_count + 1 && ac_count=$as_val
4445 if test $ac_count -gt ${ac_path_SED_max-0}; then
4446 # Best one so far, save it but keep looking for a better one
4447 ac_cv_path_SED="$ac_path_SED"
4448 ac_path_SED_max=$ac_count
4450 # 10*(2^10) chars as input seems more than enough
4451 test $ac_count -gt 10 && break
4453 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4456 $ac_path_SED_found && break 3
4461 if test -z "$ac_cv_path_SED"; then
4462 as_fn_error $? "no acceptable
sed could be found
in \
$PATH" "$LINENO" 5
4469 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_path_SED" >&5
4470 $as_echo "$ac_cv_path_SED" >&6; }
4471 SED="$ac_cv_path_SED"
4474 test -z "$SED" && SED=sed
4475 Xsed="$SED -e 1s
/^X
//"
4487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for grep that handles long lines and
-e" >&5
4488 $as_echo_n "checking
for grep that handles long lines and
-e...
" >&6; }
4489 if ${ac_cv_path_GREP+:} false; then :
4490 $as_echo_n "(cached
) " >&6
4492 if test -z "$GREP"; then
4493 ac_path_GREP_found=false
4494 # Loop through the user's path and test for each of PROGNAME-LIST
4495 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4496 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4499 test -z "$as_dir" && as_dir=.
4500 for ac_prog in grep ggrep; do
4501 for ac_exec_ext in '' $ac_executable_extensions; do
4502 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4503 as_fn_executable_p "$ac_path_GREP" || continue
4504 # Check for GNU ac_path_GREP and select it if it is found.
4505 # Check for GNU $ac_path_GREP
4506 case `"$ac_path_GREP" --version 2>&1` in
4508 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4511 $as_echo_n 0123456789 >"conftest.
in"
4514 cat "conftest.
in" "conftest.
in" >"conftest.tmp
"
4515 mv "conftest.tmp
" "conftest.
in"
4516 cp "conftest.
in" "conftest.
nl"
4517 $as_echo 'GREP' >> "conftest.
nl"
4518 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.
nl" >"conftest.out
" 2>/dev/null || break
4519 diff "conftest.out
" "conftest.
nl" >/dev/null 2>&1 || break
4520 as_fn_arith $ac_count + 1 && ac_count=$as_val
4521 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4522 # Best one so far, save it but keep looking for a better one
4523 ac_cv_path_GREP="$ac_path_GREP"
4524 ac_path_GREP_max=$ac_count
4526 # 10*(2^10) chars as input seems more than enough
4527 test $ac_count -gt 10 && break
4529 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4532 $ac_path_GREP_found && break 3
4537 if test -z "$ac_cv_path_GREP"; then
4538 as_fn_error $? "no acceptable
grep could be found
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
" "$LINENO" 5
4541 ac_cv_path_GREP=$GREP
4545 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_path_GREP" >&5
4546 $as_echo "$ac_cv_path_GREP" >&6; }
4547 GREP="$ac_cv_path_GREP"
4550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for egrep" >&5
4551 $as_echo_n "checking
for egrep...
" >&6; }
4552 if ${ac_cv_path_EGREP+:} false; then :
4553 $as_echo_n "(cached
) " >&6
4555 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4556 then ac_cv_path_EGREP="$GREP -E"
4558 if test -z "$EGREP"; then
4559 ac_path_EGREP_found=false
4560 # Loop through the user's path and test for each of PROGNAME-LIST
4561 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4562 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4565 test -z "$as_dir" && as_dir=.
4566 for ac_prog in egrep; do
4567 for ac_exec_ext in '' $ac_executable_extensions; do
4568 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4569 as_fn_executable_p "$ac_path_EGREP" || continue
4570 # Check for GNU ac_path_EGREP and select it if it is found.
4571 # Check for GNU $ac_path_EGREP
4572 case `"$ac_path_EGREP" --version 2>&1` in
4574 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4577 $as_echo_n 0123456789 >"conftest.
in"
4580 cat "conftest.
in" "conftest.
in" >"conftest.tmp
"
4581 mv "conftest.tmp
" "conftest.
in"
4582 cp "conftest.
in" "conftest.
nl"
4583 $as_echo 'EGREP' >> "conftest.
nl"
4584 "$ac_path_EGREP" 'EGREP$' < "conftest.
nl" >"conftest.out
" 2>/dev/null || break
4585 diff "conftest.out
" "conftest.
nl" >/dev/null 2>&1 || break
4586 as_fn_arith $ac_count + 1 && ac_count=$as_val
4587 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4588 # Best one so far, save it but keep looking for a better one
4589 ac_cv_path_EGREP="$ac_path_EGREP"
4590 ac_path_EGREP_max=$ac_count
4592 # 10*(2^10) chars as input seems more than enough
4593 test $ac_count -gt 10 && break
4595 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4598 $ac_path_EGREP_found && break 3
4603 if test -z "$ac_cv_path_EGREP"; then
4604 as_fn_error $? "no acceptable
egrep could be found
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
" "$LINENO" 5
4607 ac_cv_path_EGREP=$EGREP
4612 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_path_EGREP" >&5
4613 $as_echo "$ac_cv_path_EGREP" >&6; }
4614 EGREP="$ac_cv_path_EGREP"
4617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for fgrep
" >&5
4618 $as_echo_n "checking
for fgrep...
" >&6; }
4619 if ${ac_cv_path_FGREP+:} false; then :
4620 $as_echo_n "(cached
) " >&6
4622 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4623 then ac_cv_path_FGREP="$GREP -F"
4625 if test -z "$FGREP"; then
4626 ac_path_FGREP_found=false
4627 # Loop through the user's path and test for each of PROGNAME-LIST
4628 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4629 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4632 test -z "$as_dir" && as_dir=.
4633 for ac_prog in fgrep; do
4634 for ac_exec_ext in '' $ac_executable_extensions; do
4635 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4636 as_fn_executable_p "$ac_path_FGREP" || continue
4637 # Check for GNU ac_path_FGREP and select it if it is found.
4638 # Check for GNU $ac_path_FGREP
4639 case `"$ac_path_FGREP" --version 2>&1` in
4641 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4644 $as_echo_n 0123456789 >"conftest.
in"
4647 cat "conftest.
in" "conftest.
in" >"conftest.tmp
"
4648 mv "conftest.tmp
" "conftest.
in"
4649 cp "conftest.
in" "conftest.
nl"
4650 $as_echo 'FGREP' >> "conftest.
nl"
4651 "$ac_path_FGREP" FGREP < "conftest.
nl" >"conftest.out
" 2>/dev/null || break
4652 diff "conftest.out
" "conftest.
nl" >/dev/null 2>&1 || break
4653 as_fn_arith $ac_count + 1 && ac_count=$as_val
4654 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4655 # Best one so far, save it but keep looking for a better one
4656 ac_cv_path_FGREP="$ac_path_FGREP"
4657 ac_path_FGREP_max=$ac_count
4659 # 10*(2^10) chars as input seems more than enough
4660 test $ac_count -gt 10 && break
4662 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4665 $ac_path_FGREP_found && break 3
4670 if test -z "$ac_cv_path_FGREP"; then
4671 as_fn_error $? "no acceptable fgrep could be found
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
" "$LINENO" 5
4674 ac_cv_path_FGREP=$FGREP
4679 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_path_FGREP" >&5
4680 $as_echo "$ac_cv_path_FGREP" >&6; }
4681 FGREP="$ac_cv_path_FGREP"
4684 test -z "$GREP" && GREP=grep
4704 # Check whether --with-gnu-ld was given.
4705 if test "${with_gnu_ld+set}" = set; then :
4706 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
4712 if test yes = "$GCC"; then
4713 # Check if gcc -print-prog-name=ld gives a path.
4714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ld used by
$CC" >&5
4715 $as_echo_n "checking
for ld used by
$CC...
" >&6; }
4718 # gcc leaves a trailing carriage return, which upsets mingw
4719 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4721 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4724 # Accept absolute paths.
4726 re_direlt='/[^/][^/]*/\.\./'
4727 # Canonicalize the pathname of ld
4728 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4729 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4730 ac_prog=`$ECHO $ac_prog| $SED "s
%$re_direlt%/%"`
4732 test -z "$LD" && LD=$ac_prog
4735 # If it fails, then pretend we aren't using GCC.
4739 # If it is relative, then search for the first ld in PATH.
4743 elif test yes = "$with_gnu_ld"; then
4744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for GNU ld
" >&5
4745 $as_echo_n "checking
for GNU ld...
" >&6; }
4747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for non-GNU ld
" >&5
4748 $as_echo_n "checking
for non-GNU ld...
" >&6; }
4750 if ${lt_cv_path_LD+:} false; then :
4751 $as_echo_n "(cached
) " >&6
4753 if test -z "$LD"; then
4754 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
4755 for ac_dir in $PATH; do
4757 test -z "$ac_dir" && ac_dir=.
4758 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4759 lt_cv_path_LD=$ac_dir/$ac_prog
4760 # Check to see if the program is GNU ld. I'd rather use --version,
4761 # but apparently some variants of GNU ld only accept -v.
4762 # Break only if it was the GNU/non-GNU ld that we prefer.
4763 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4764 *GNU* | *'with BFD'*)
4765 test no != "$with_gnu_ld" && break
4768 test yes != "$with_gnu_ld" && break
4775 lt_cv_path_LD=$LD # Let the user override the test with a path.
4780 if test -n "$LD"; then
4781 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $LD" >&5
4782 $as_echo "$LD" >&6; }
4784 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
4785 $as_echo "no
" >&6; }
4787 test -z "$LD" && as_fn_error $? "no acceptable ld found
in \
$PATH" "$LINENO" 5
4788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if the linker
($LD) is GNU ld
" >&5
4789 $as_echo_n "checking
if the linker
($LD) is GNU ld...
" >&6; }
4790 if ${lt_cv_prog_gnu_ld+:} false; then :
4791 $as_echo_n "(cached
) " >&6
4793 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4794 case `$LD -v 2>&1 </dev/null` in
4795 *GNU* | *'with BFD'*)
4796 lt_cv_prog_gnu_ld=yes
4799 lt_cv_prog_gnu_ld=no
4803 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_gnu_ld" >&5
4804 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4805 with_gnu_ld=$lt_cv_prog_gnu_ld
4815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for BSD- or MS-compatible name lister
(nm
)" >&5
4816 $as_echo_n "checking
for BSD- or MS-compatible name lister
(nm
)...
" >&6; }
4817 if ${lt_cv_path_NM+:} false; then :
4818 $as_echo_n "(cached
) " >&6
4820 if test -n "$NM"; then
4821 # Let the user override the test.
4824 lt_nm_to_check=${ac_tool_prefix}nm
4825 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4826 lt_nm_to_check="$lt_nm_to_check nm
"
4828 for lt_tmp_nm in $lt_nm_to_check; do
4829 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
4830 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4832 test -z "$ac_dir" && ac_dir=.
4833 tmp_nm=$ac_dir/$lt_tmp_nm
4834 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
4835 # Check to see if the nm accepts a BSD-compat flag.
4836 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
4837 # nm: unknown option "B
" ignored
4838 # Tru64's nm complains that /dev/null is an invalid object file
4839 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
4841 mingw*) lt_bad_file=conftest.nm/nofile ;;
4842 *) lt_bad_file=/dev/null ;;
4844 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
4845 *$lt_bad_file* | *'Invalid file or object type'*)
4846 lt_cv_path_NM="$tmp_nm -B"
4850 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4852 lt_cv_path_NM="$tmp_nm -p"
4856 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4857 continue # so that we can try to find one that supports BSD flags
4866 : ${lt_cv_path_NM=no}
4869 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_path_NM" >&5
4870 $as_echo "$lt_cv_path_NM" >&6; }
4871 if test no != "$lt_cv_path_NM"; then
4874 # Didn't find any BSD compatible name lister, look for dumpbin.
4875 if test -n "$DUMPBIN"; then :
4876 # Let the user override the test.
4878 if test -n "$ac_tool_prefix"; then
4879 for ac_prog in dumpbin "link
-dump"
4881 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4882 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
4884 $as_echo_n "checking
for $ac_word...
" >&6; }
4885 if ${ac_cv_prog_DUMPBIN+:} false; then :
4886 $as_echo_n "(cached
) " >&6
4888 if test -n "$DUMPBIN"; then
4889 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4891 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4895 test -z "$as_dir" && as_dir=.
4896 for ac_exec_ext in '' $ac_executable_extensions; do
4897 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4898 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4899 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
4908 DUMPBIN=$ac_cv_prog_DUMPBIN
4909 if test -n "$DUMPBIN"; then
4910 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $DUMPBIN" >&5
4911 $as_echo "$DUMPBIN" >&6; }
4913 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
4914 $as_echo "no
" >&6; }
4918 test -n "$DUMPBIN" && break
4921 if test -z "$DUMPBIN"; then
4922 ac_ct_DUMPBIN=$DUMPBIN
4923 for ac_prog in dumpbin "link
-dump"
4925 # Extract the first word of "$ac_prog", so it can be a program name with args.
4926 set dummy $ac_prog; ac_word=$2
4927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
4928 $as_echo_n "checking
for $ac_word...
" >&6; }
4929 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
4930 $as_echo_n "(cached
) " >&6
4932 if test -n "$ac_ct_DUMPBIN"; then
4933 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4935 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4939 test -z "$as_dir" && as_dir=.
4940 for ac_exec_ext in '' $ac_executable_extensions; do
4941 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4942 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4943 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
4952 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4953 if test -n "$ac_ct_DUMPBIN"; then
4954 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_DUMPBIN" >&5
4955 $as_echo "$ac_ct_DUMPBIN" >&6; }
4957 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
4958 $as_echo "no
" >&6; }
4962 test -n "$ac_ct_DUMPBIN" && break
4965 if test "x
$ac_ct_DUMPBIN" = x; then
4968 case $cross_compiling:$ac_tool_warned in
4970 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
4971 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
4972 ac_tool_warned=yes ;;
4974 DUMPBIN=$ac_ct_DUMPBIN
4978 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
4980 DUMPBIN="$DUMPBIN -symbols -headers"
4988 if test : != "$DUMPBIN"; then
4992 test -z "$NM" && NM=nm
4999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister
($NM) interface
" >&5
5000 $as_echo_n "checking the name lister
($NM) interface...
" >&6; }
5001 if ${lt_cv_nm_interface+:} false; then :
5002 $as_echo_n "(cached
) " >&6
5004 lt_cv_nm_interface="BSD nm
"
5005 echo "int some_variable
= 0;" > conftest.$ac_ext
5006 (eval echo "\"\
$as_me:$LINENO: $ac_compile\"" >&5)
5007 (eval "$ac_compile" 2>conftest.err)
5008 cat conftest.err >&5
5009 (eval echo "\"\
$as_me:$LINENO: $NM \\\"conftest.
$ac_objext\\\"\"" >&5)
5010 (eval "$NM \"conftest.
$ac_objext\"" 2>conftest.err > conftest.out)
5011 cat conftest.err >&5
5012 (eval echo "\"\
$as_me:$LINENO: output
\"" >&5)
5013 cat conftest.out >&5
5014 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5015 lt_cv_nm_interface="MS dumpbin
"
5019 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_nm_interface" >&5
5020 $as_echo "$lt_cv_nm_interface" >&6; }
5022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether
ln -s works
" >&5
5023 $as_echo_n "checking whether
ln -s works...
" >&6; }
5025 if test "$LN_S" = "ln -s"; then
5026 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
5027 $as_echo "yes" >&6; }
5029 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
, using
$LN_S" >&5
5030 $as_echo "no
, using
$LN_S" >&6; }
5033 # find the maximum length of command line arguments
5034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of
command line arguments
" >&5
5035 $as_echo_n "checking the maximum length of
command line arguments...
" >&6; }
5036 if ${lt_cv_sys_max_cmd_len+:} false; then :
5037 $as_echo_n "(cached
) " >&6
5044 # On DJGPP, this test can blow up pretty badly due to problems in libc
5045 # (any single argument exceeding 2000 bytes causes a buffer overrun
5046 # during glob expansion). Even if it were fixed, the result of this
5047 # check would be larger than it should be.
5048 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5052 # Under GNU Hurd, this test is not required because there is
5053 # no limit to the length of command line arguments.
5054 # Libtool will interpret -1 as no limit whatsoever
5055 lt_cv_sys_max_cmd_len=-1;
5058 cygwin* | mingw* | cegcc*)
5059 # On Win9x/ME, this test blows up -- it succeeds, but takes
5060 # about 5 minutes as the teststring grows exponentially.
5061 # Worse, since 9x/ME are not pre-emptively multitasking,
5062 # you end up with a "frozen
" computer, even though with patience
5063 # the test eventually succeeds (with a max line length of 256k).
5064 # Instead, let's just punt: use the minimum linelength reported by
5065 # all of the supported platforms: 8192 (on NT/2K/XP).
5066 lt_cv_sys_max_cmd_len=8192;
5070 # On MiNT this can take a long time and run out of memory.
5071 lt_cv_sys_max_cmd_len=8192;
5075 # On AmigaOS with pdksh, this test takes hours, literally.
5076 # So we just punt and use a minimum line length of 8192.
5077 lt_cv_sys_max_cmd_len=8192;
5080 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
5081 # This has been around since 386BSD, at least. Likely further.
5082 if test -x /sbin/sysctl; then
5083 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5084 elif test -x /usr/sbin/sysctl; then
5085 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5087 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5089 # And add a safety zone
5090 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5091 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5095 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5096 lt_cv_sys_max_cmd_len=196608
5100 # The test takes a long time on OS/2.
5101 lt_cv_sys_max_cmd_len=8192
5105 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5106 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5107 # nice to cause kernel panics so lets avoid the loop below.
5108 # First set a reasonable default.
5109 lt_cv_sys_max_cmd_len=16384
5111 if test -x /sbin/sysconfig; then
5112 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5113 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5118 lt_cv_sys_max_cmd_len=102400
5120 sysv5* | sco5v6* | sysv4.2uw2*)
5121 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5122 if test -n "$kargmax"; then
5123 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5125 lt_cv_sys_max_cmd_len=32768
5129 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5130 if test -n "$lt_cv_sys_max_cmd_len" && \
5131 test undefined != "$lt_cv_sys_max_cmd_len"; then
5132 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5133 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5135 # Make teststring a little bigger before we do anything with it.
5136 # a 1K string should be a reasonable start.
5137 for i in 1 2 3 4 5 6 7 8; do
5138 teststring=$teststring$teststring
5140 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5141 # If test is not a shell built-in, we'll probably end up computing a
5142 # maximum length that is only half of the actual maximum length, but
5144 while { test X`env echo "$teststring$teststring" 2>/dev/null` \
5145 = "X
$teststring$teststring"; } >/dev/null 2>&1 &&
5146 test 17 != "$i" # 1/2 MB should be enough
5149 teststring=$teststring$teststring
5151 # Only check the string length outside the loop.
5152 lt_cv_sys_max_cmd_len=`expr "X
$teststring" : ".
*" 2>&1`
5154 # Add a significant safety factor because C++ compilers can tack on
5155 # massive amounts of additional arguments before passing them to the
5156 # linker. It appears as though 1/2 is a usable value.
5157 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5164 if test -n "$lt_cv_sys_max_cmd_len"; then
5165 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_sys_max_cmd_len" >&5
5166 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5168 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: none
" >&5
5169 $as_echo "none
" >&6; }
5171 max_cmd_len=$lt_cv_sys_max_cmd_len
5182 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5192 # test EBCDIC or ASCII
5193 case `echo X|tr X '\101'` in
5194 A) # ASCII based system
5195 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5196 lt_SP2NL='tr \040 \012'
5197 lt_NL2SP='tr \015\012 \040\040'
5199 *) # EBCDIC based system
5200 lt_SP2NL='tr \100 \n'
5201 lt_NL2SP='tr \r\n \100\100'
5213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert
$build file names to
$host format
" >&5
5214 $as_echo_n "checking how to convert
$build file names to
$host format...
" >&6; }
5215 if ${lt_cv_to_host_file_cmd+:} false; then :
5216 $as_echo_n "(cached
) " >&6
5221 *-*-mingw* ) # actually msys
5222 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5225 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5227 * ) # otherwise, assume *nix
5228 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5234 *-*-mingw* ) # actually msys
5235 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5238 lt_cv_to_host_file_cmd=func_convert_file_noop
5240 * ) # otherwise, assume *nix
5241 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5245 * ) # unhandled hosts (and "normal
" native builds)
5246 lt_cv_to_host_file_cmd=func_convert_file_noop
5252 to_host_file_cmd=$lt_cv_to_host_file_cmd
5253 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_to_host_file_cmd" >&5
5254 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
5260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert
$build file names to toolchain format
" >&5
5261 $as_echo_n "checking how to convert
$build file names to toolchain format...
" >&6; }
5262 if ${lt_cv_to_tool_file_cmd+:} false; then :
5263 $as_echo_n "(cached
) " >&6
5265 #assume ordinary cross tools, or native build.
5266 lt_cv_to_tool_file_cmd=func_convert_file_noop
5270 *-*-mingw* ) # actually msys
5271 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5279 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5280 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_to_tool_file_cmd" >&5
5281 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $LD option to reload object files
" >&5
5288 $as_echo_n "checking
for $LD option to reload object files...
" >&6; }
5289 if ${lt_cv_ld_reload_flag+:} false; then :
5290 $as_echo_n "(cached
) " >&6
5292 lt_cv_ld_reload_flag='-r'
5294 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_ld_reload_flag" >&5
5295 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5296 reload_flag=$lt_cv_ld_reload_flag
5297 case $reload_flag in
5299 *) reload_flag=" $reload_flag" ;;
5301 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5303 cygwin* | mingw* | pw32* | cegcc*)
5304 if test yes != "$GCC"; then
5309 if test yes = "$GCC"; then
5310 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
5312 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5325 if test -n "$ac_tool_prefix"; then
5326 # Extract the first word of "${ac_tool_prefix}objdump
", so it can be a program name with args.
5327 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
5329 $as_echo_n "checking
for $ac_word...
" >&6; }
5330 if ${ac_cv_prog_OBJDUMP+:} false; then :
5331 $as_echo_n "(cached
) " >&6
5333 if test -n "$OBJDUMP"; then
5334 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5336 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5340 test -z "$as_dir" && as_dir=.
5341 for ac_exec_ext in '' $ac_executable_extensions; do
5342 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5343 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump
"
5344 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
5353 OBJDUMP=$ac_cv_prog_OBJDUMP
5354 if test -n "$OBJDUMP"; then
5355 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OBJDUMP" >&5
5356 $as_echo "$OBJDUMP" >&6; }
5358 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
5359 $as_echo "no
" >&6; }
5364 if test -z "$ac_cv_prog_OBJDUMP"; then
5365 ac_ct_OBJDUMP=$OBJDUMP
5366 # Extract the first word of "objdump
", so it can be a program name with args.
5367 set dummy objdump; ac_word=$2
5368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
5369 $as_echo_n "checking
for $ac_word...
" >&6; }
5370 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5371 $as_echo_n "(cached
) " >&6
5373 if test -n "$ac_ct_OBJDUMP"; then
5374 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5376 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5380 test -z "$as_dir" && as_dir=.
5381 for ac_exec_ext in '' $ac_executable_extensions; do
5382 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5383 ac_cv_prog_ac_ct_OBJDUMP="objdump
"
5384 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
5393 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5394 if test -n "$ac_ct_OBJDUMP"; then
5395 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_OBJDUMP" >&5
5396 $as_echo "$ac_ct_OBJDUMP" >&6; }
5398 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
5399 $as_echo "no
" >&6; }
5402 if test "x
$ac_ct_OBJDUMP" = x; then
5405 case $cross_compiling:$ac_tool_warned in
5407 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
5408 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
5409 ac_tool_warned=yes ;;
5411 OBJDUMP=$ac_ct_OBJDUMP
5414 OBJDUMP="$ac_cv_prog_OBJDUMP"
5417 test -z "$OBJDUMP" && OBJDUMP=objdump
5427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries
" >&5
5428 $as_echo_n "checking how to recognize dependent libraries...
" >&6; }
5429 if ${lt_cv_deplibs_check_method+:} false; then :
5430 $as_echo_n "(cached
) " >&6
5432 lt_cv_file_magic_cmd='$MAGIC_CMD'
5433 lt_cv_file_magic_test_file=
5434 lt_cv_deplibs_check_method='unknown'
5435 # Need to set the preceding variable on all platforms that support
5436 # interlibrary dependencies.
5437 # 'none' -- dependencies not supported.
5438 # 'unknown' -- same as none, but documents that we really don't know.
5439 # 'pass_all' -- all dependencies passed with no checks.
5440 # 'test_compile' -- check by making test program.
5441 # 'file_magic [[regex]]' -- check by looking for files in library path
5442 # that responds to the $file_magic_cmd with a given extended regex.
5443 # If you have 'file' or equivalent on your system and you're not sure
5444 # whether 'pass_all' will *always* work, you probably want this one.
5448 lt_cv_deplibs_check_method=pass_all
5452 lt_cv_deplibs_check_method=pass_all
5456 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5457 lt_cv_file_magic_cmd='/usr/bin/file -L'
5458 lt_cv_file_magic_test_file=/shlib/libc.so
5462 # func_win32_libid is a shell function defined in ltmain.sh
5463 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5464 lt_cv_file_magic_cmd='func_win32_libid'
5468 # Base MSYS/MinGW do not provide the 'file' command needed by
5469 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5470 # unless we find 'file', for example because we are cross-compiling.
5471 if ( file / ) >/dev/null 2>&1; then
5472 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5473 lt_cv_file_magic_cmd='func_win32_libid'
5475 # Keep this pattern in sync with the one in func_win32_libid.
5476 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5477 lt_cv_file_magic_cmd='$OBJDUMP -f'
5482 # use the weaker test based on 'objdump'. See mingw*.
5483 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5484 lt_cv_file_magic_cmd='$OBJDUMP -f'
5487 darwin* | rhapsody*)
5488 lt_cv_deplibs_check_method=pass_all
5491 freebsd* | dragonfly*)
5492 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5495 # Not sure whether the presence of OpenBSD here was a mistake.
5496 # Let's accept both of them until this is cleared up.
5497 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5498 lt_cv_file_magic_cmd=/usr/bin/file
5499 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5503 lt_cv_deplibs_check_method=pass_all
5508 lt_cv_deplibs_check_method=pass_all
5511 hpux10.20* | hpux11*)
5512 lt_cv_file_magic_cmd=/usr/bin/file
5515 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5516 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5519 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]'
5520 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5523 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5524 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5530 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5531 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5534 irix5* | irix6* | nonstopux*)
5536 *-32|*"-32 ") libmagic=32-bit;;
5537 *-n32|*"-n32 ") libmagic=N32;;
5538 *-64|*"-64 ") libmagic=64-bit;;
5539 *) libmagic=never-match;;
5541 lt_cv_deplibs_check_method=pass_all
5544 # This must be glibc/ELF.
5545 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
5546 lt_cv_deplibs_check_method=pass_all
5549 netbsd* | netbsdelf*-gnu)
5550 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5551 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5553 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5558 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5559 lt_cv_file_magic_cmd=/usr/bin/file
5560 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5564 lt_cv_deplibs_check_method=pass_all
5568 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
5569 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5571 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5575 osf3* | osf4* | osf5*)
5576 lt_cv_deplibs_check_method=pass_all
5580 lt_cv_deplibs_check_method=pass_all
5584 lt_cv_deplibs_check_method=pass_all
5587 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5588 lt_cv_deplibs_check_method=pass_all
5592 case $host_vendor in
5594 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]'
5595 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5598 lt_cv_deplibs_check_method=pass_all
5601 lt_cv_file_magic_cmd='/bin/file'
5602 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5605 lt_cv_file_magic_cmd='/bin/file'
5606 lt_cv_deplibs_check_method="file_magic ELF
[0-9][0-9]*-bit [LM
]SB dynamic lib
"
5607 lt_cv_file_magic_test_file=/lib/libc.so
5610 lt_cv_deplibs_check_method=pass_all
5613 lt_cv_deplibs_check_method=pass_all
5619 lt_cv_deplibs_check_method=pass_all
5622 lt_cv_deplibs_check_method=pass_all
5627 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_deplibs_check_method" >&5
5628 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5632 if test "$build" = "$host"; then
5635 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5638 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s
/\
(..\
)/s\
/[\
1]\
/[\
1]\
/g
;/g
"`
5644 file_magic_cmd=$lt_cv_file_magic_cmd
5645 deplibs_check_method=$lt_cv_deplibs_check_method
5646 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5669 if test -n "$ac_tool_prefix"; then
5670 # Extract the first word of "${ac_tool_prefix}dlltool
", so it can be a program name with args.
5671 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
5673 $as_echo_n "checking
for $ac_word...
" >&6; }
5674 if ${ac_cv_prog_DLLTOOL+:} false; then :
5675 $as_echo_n "(cached
) " >&6
5677 if test -n "$DLLTOOL"; then
5678 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5680 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5684 test -z "$as_dir" && as_dir=.
5685 for ac_exec_ext in '' $ac_executable_extensions; do
5686 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5687 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool
"
5688 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
5697 DLLTOOL=$ac_cv_prog_DLLTOOL
5698 if test -n "$DLLTOOL"; then
5699 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $DLLTOOL" >&5
5700 $as_echo "$DLLTOOL" >&6; }
5702 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
5703 $as_echo "no
" >&6; }
5708 if test -z "$ac_cv_prog_DLLTOOL"; then
5709 ac_ct_DLLTOOL=$DLLTOOL
5710 # Extract the first word of "dlltool
", so it can be a program name with args.
5711 set dummy dlltool; ac_word=$2
5712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
5713 $as_echo_n "checking
for $ac_word...
" >&6; }
5714 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5715 $as_echo_n "(cached
) " >&6
5717 if test -n "$ac_ct_DLLTOOL"; then
5718 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5720 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5724 test -z "$as_dir" && as_dir=.
5725 for ac_exec_ext in '' $ac_executable_extensions; do
5726 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5727 ac_cv_prog_ac_ct_DLLTOOL="dlltool
"
5728 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
5737 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5738 if test -n "$ac_ct_DLLTOOL"; then
5739 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_DLLTOOL" >&5
5740 $as_echo "$ac_ct_DLLTOOL" >&6; }
5742 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
5743 $as_echo "no
" >&6; }
5746 if test "x
$ac_ct_DLLTOOL" = x; then
5749 case $cross_compiling:$ac_tool_warned in
5751 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
5752 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
5753 ac_tool_warned=yes ;;
5755 DLLTOOL=$ac_ct_DLLTOOL
5758 DLLTOOL="$ac_cv_prog_DLLTOOL"
5761 test -z "$DLLTOOL" && DLLTOOL=dlltool
5772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries
" >&5
5773 $as_echo_n "checking how to associate runtime and link libraries...
" >&6; }
5774 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
5775 $as_echo_n "(cached
) " >&6
5777 lt_cv_sharedlib_from_linklib_cmd='unknown'
5780 cygwin* | mingw* | pw32* | cegcc*)
5781 # two different shell functions defined in ltmain.sh;
5782 # decide which one to use based on capabilities of $DLLTOOL
5783 case `$DLLTOOL --help 2>&1` in
5784 *--identify-strict*)
5785 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5788 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5793 # fallback: assume linklib IS sharedlib
5794 lt_cv_sharedlib_from_linklib_cmd=$ECHO
5799 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_sharedlib_from_linklib_cmd" >&5
5800 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
5801 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
5802 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
5811 if test -n "$ac_tool_prefix"; then
5814 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5815 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
5817 $as_echo_n "checking
for $ac_word...
" >&6; }
5818 if ${ac_cv_prog_AR+:} false; then :
5819 $as_echo_n "(cached
) " >&6
5821 if test -n "$AR"; then
5822 ac_cv_prog_AR="$AR" # Let the user override the test.
5824 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5828 test -z "$as_dir" && as_dir=.
5829 for ac_exec_ext in '' $ac_executable_extensions; do
5830 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5831 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5832 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
5842 if test -n "$AR"; then
5843 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $AR" >&5
5844 $as_echo "$AR" >&6; }
5846 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
5847 $as_echo "no
" >&6; }
5851 test -n "$AR" && break
5854 if test -z "$AR"; then
5858 # Extract the first word of "$ac_prog", so it can be a program name with args.
5859 set dummy $ac_prog; ac_word=$2
5860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
5861 $as_echo_n "checking
for $ac_word...
" >&6; }
5862 if ${ac_cv_prog_ac_ct_AR+:} false; then :
5863 $as_echo_n "(cached
) " >&6
5865 if test -n "$ac_ct_AR"; then
5866 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5868 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5872 test -z "$as_dir" && as_dir=.
5873 for ac_exec_ext in '' $ac_executable_extensions; do
5874 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5875 ac_cv_prog_ac_ct_AR="$ac_prog"
5876 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
5885 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5886 if test -n "$ac_ct_AR"; then
5887 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_AR" >&5
5888 $as_echo "$ac_ct_AR" >&6; }
5890 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
5891 $as_echo "no
" >&6; }
5895 test -n "$ac_ct_AR" && break
5898 if test "x
$ac_ct_AR" = x; then
5901 case $cross_compiling:$ac_tool_warned in
5903 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
5904 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
5905 ac_tool_warned=yes ;;
5924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for archiver @FILE support
" >&5
5925 $as_echo_n "checking
for archiver @FILE support...
" >&6; }
5926 if ${lt_cv_ar_at_file+:} false; then :
5927 $as_echo_n "(cached
) " >&6
5930 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5931 /* end confdefs.h. */
5941 if ac_fn_c_try_compile "$LINENO"; then :
5942 echo conftest.$ac_objext > conftest.lst
5943 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
5944 { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5945 (eval $lt_ar_try) 2>&5
5947 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
5948 test $ac_status = 0; }
5949 if test 0 -eq "$ac_status"; then
5950 # Ensure the archiver fails upon bogus file names.
5951 rm -f conftest.$ac_objext libconftest.a
5952 { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5953 (eval $lt_ar_try) 2>&5
5955 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
5956 test $ac_status = 0; }
5957 if test 0 -ne "$ac_status"; then
5961 rm -f conftest.* libconftest.a
5964 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5967 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_ar_at_file" >&5
5968 $as_echo "$lt_cv_ar_at_file" >&6; }
5970 if test no = "$lt_cv_ar_at_file"; then
5973 archiver_list_spec=$lt_cv_ar_at_file
5982 if test -n "$ac_tool_prefix"; then
5983 # Extract the first word of "${ac_tool_prefix}strip
", so it can be a program name with args.
5984 set dummy ${ac_tool_prefix}strip; ac_word=$2
5985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
5986 $as_echo_n "checking
for $ac_word...
" >&6; }
5987 if ${ac_cv_prog_STRIP+:} false; then :
5988 $as_echo_n "(cached
) " >&6
5990 if test -n "$STRIP"; then
5991 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5993 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5997 test -z "$as_dir" && as_dir=.
5998 for ac_exec_ext in '' $ac_executable_extensions; do
5999 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6000 ac_cv_prog_STRIP="${ac_tool_prefix}strip
"
6001 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
6010 STRIP=$ac_cv_prog_STRIP
6011 if test -n "$STRIP"; then
6012 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $STRIP" >&5
6013 $as_echo "$STRIP" >&6; }
6015 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
6016 $as_echo "no
" >&6; }
6021 if test -z "$ac_cv_prog_STRIP"; then
6023 # Extract the first word of "strip
", so it can be a program name with args.
6024 set dummy strip; ac_word=$2
6025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
6026 $as_echo_n "checking
for $ac_word...
" >&6; }
6027 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6028 $as_echo_n "(cached
) " >&6
6030 if test -n "$ac_ct_STRIP"; then
6031 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6033 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6037 test -z "$as_dir" && as_dir=.
6038 for ac_exec_ext in '' $ac_executable_extensions; do
6039 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6040 ac_cv_prog_ac_ct_STRIP="strip
"
6041 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
6050 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6051 if test -n "$ac_ct_STRIP"; then
6052 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_STRIP" >&5
6053 $as_echo "$ac_ct_STRIP" >&6; }
6055 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
6056 $as_echo "no
" >&6; }
6059 if test "x
$ac_ct_STRIP" = x; then
6062 case $cross_compiling:$ac_tool_warned in
6064 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
6065 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
6066 ac_tool_warned=yes ;;
6071 STRIP="$ac_cv_prog_STRIP"
6074 test -z "$STRIP" && STRIP=:
6081 if test -n "$ac_tool_prefix"; then
6082 # Extract the first word of "${ac_tool_prefix}ranlib
", so it can be a program name with args.
6083 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
6085 $as_echo_n "checking
for $ac_word...
" >&6; }
6086 if ${ac_cv_prog_RANLIB+:} false; then :
6087 $as_echo_n "(cached
) " >&6
6089 if test -n "$RANLIB"; then
6090 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6092 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6096 test -z "$as_dir" && as_dir=.
6097 for ac_exec_ext in '' $ac_executable_extensions; do
6098 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6099 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib
"
6100 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
6109 RANLIB=$ac_cv_prog_RANLIB
6110 if test -n "$RANLIB"; then
6111 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $RANLIB" >&5
6112 $as_echo "$RANLIB" >&6; }
6114 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
6115 $as_echo "no
" >&6; }
6120 if test -z "$ac_cv_prog_RANLIB"; then
6121 ac_ct_RANLIB=$RANLIB
6122 # Extract the first word of "ranlib
", so it can be a program name with args.
6123 set dummy ranlib; ac_word=$2
6124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
6125 $as_echo_n "checking
for $ac_word...
" >&6; }
6126 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6127 $as_echo_n "(cached
) " >&6
6129 if test -n "$ac_ct_RANLIB"; then
6130 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6132 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6136 test -z "$as_dir" && as_dir=.
6137 for ac_exec_ext in '' $ac_executable_extensions; do
6138 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6139 ac_cv_prog_ac_ct_RANLIB="ranlib
"
6140 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
6149 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6150 if test -n "$ac_ct_RANLIB"; then
6151 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_RANLIB" >&5
6152 $as_echo "$ac_ct_RANLIB" >&6; }
6154 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
6155 $as_echo "no
" >&6; }
6158 if test "x
$ac_ct_RANLIB" = x; then
6161 case $cross_compiling:$ac_tool_warned in
6163 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
6164 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
6165 ac_tool_warned=yes ;;
6167 RANLIB=$ac_ct_RANLIB
6170 RANLIB="$ac_cv_prog_RANLIB"
6173 test -z "$RANLIB" && RANLIB=:
6180 # Determine commands to create old-style static archives.
6181 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6182 old_postinstall_cmds='chmod 644 $oldlib'
6183 old_postuninstall_cmds=
6185 if test -n "$RANLIB"; then
6188 old_postinstall_cmds="$old_postinstall_cmds~\
$RANLIB -t \
$tool_oldlib"
6191 old_postinstall_cmds="$old_postinstall_cmds~\
$RANLIB \
$tool_oldlib"
6194 old_archive_cmds="$old_archive_cmds~\
$RANLIB \
$tool_oldlib"
6199 lock_old_archive_extraction=yes ;;
6201 lock_old_archive_extraction=no ;;
6242 # If no C compiler was specified, use CC.
6245 # If no C compiler flags were specified, use CFLAGS.
6246 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6248 # Allow CC to be a program name with arguments.
6252 # Check for command to grab the raw symbol name followed by C symbol from nm.
6253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
command to parse
$NM output from
$compiler object
" >&5
6254 $as_echo_n "checking
command to parse
$NM output from
$compiler object...
" >&6; }
6255 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6256 $as_echo_n "(cached
) " >&6
6259 # These are sane defaults that work on at least a few old systems.
6260 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6262 # Character class describing NM global symbol codes.
6263 symcode='[BCDEGRST]'
6265 # Regexp to match symbols that can be accessed directly from C.
6266 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6268 # Define system-specific variables.
6273 cygwin* | mingw* | pw32* | cegcc*)
6274 symcode='[ABCDGISTW]'
6277 if test ia64 = "$host_cpu"; then
6278 symcode='[ABCDEGRST]'
6282 symcode='[BCDEGRST]'
6285 symcode='[BCDEGQRST]'
6296 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6304 # If we're using GNU nm, then use its standard symbol codes.
6305 case `$NM -V 2>&1` in
6306 *GNU* | *'with BFD'*)
6307 symcode='[ABCDGIRSTW]' ;;
6310 if test "$lt_cv_nm_interface" = "MS dumpbin
"; then
6311 # Gets list of data symbols to import.
6312 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
6313 # Adjust the below global symbol transforms to fixup imported variables.
6314 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
6315 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
6316 lt_c_name_lib_hook="\
6317 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
6318 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
6320 # Disable hooks by default.
6321 lt_cv_sys_global_symbol_to_import=
6327 # Transform an extracted symbol line into a proper C declaration.
6328 # Some systems (esp. on ia64) link data and code symbols differently,
6329 # so use this general approach.
6330 lt_cv_sys_global_symbol_to_cdecl="sed -n"\
6332 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
6333 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
6335 # Transform an extracted symbol line into symbol name and symbol address
6336 lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
6338 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
6339 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
6341 # Transform an extracted symbol line into symbol name with lib prefix and
6343 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
6344 $lt_c_name_lib_hook\
6345 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
6346 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
6347 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
6349 # Handle CRLF in mingw tool chain
6353 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6357 # Try without a prefix underscore, then with it.
6358 for ac_symprfx in "" "_
"; do
6360 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6361 symxfrm="\\1 $ac_symprfx\\2 \\2"
6363 # Write the raw and C identifiers.
6364 if test "$lt_cv_nm_interface" = "MS dumpbin
"; then
6365 # Fake it for dumpbin and say T for any non-static function,
6366 # D for any global variable and I for any imported variable.
6367 # Also find C++ and __fastcall symbols from MSVC++,
6368 # which start with @ or ?.
6369 lt_cv_sys_global_symbol_pipe="$AWK '"\
6370 " {last_section=section; section=\$ 3};"\
6371 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6372 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6373 " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
6374 " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
6375 " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
6376 " \$ 0!~/External *\|/{next};"\
6377 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6378 " {if(hide[section]) next};"\
6379 " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
6380 " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
6381 " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
6382 " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
6383 " ' prfx
=^
$ac_symprfx"
6385 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6387 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe |
sed '/ __gnu_lto/d'"
6389 # Check to see that the pipe works correctly.
6393 cat > conftest.$ac_ext <<_LT_EOF
6398 void nm_test_func(void);
6399 void nm_test_func(void){}
6403 int main(){nm_test_var='a';nm_test_func();return(0);}
6406 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6407 (eval $ac_compile) 2>&5
6409 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
6410 test $ac_status = 0; }; then
6411 # Now try to grab the symbols.
6413 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$NM conftest.
$ac_objext \|
"$lt_cv_sys_global_symbol_pipe" \
> $nlist\""; } >&5
6414 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6416 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
6417 test $ac_status = 0; } && test -s "$nlist"; then
6418 # Try sorting and uniquifying the output.
6419 if sort "$nlist" | uniq > "$nlist"T; then
6420 mv -f "$nlist"T "$nlist"
6425 # Make sure that we snagged all the symbols we need.
6426 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6427 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6428 cat <<_LT_EOF > conftest.$ac_ext
6429 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
6430 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
6431 /* DATA imports from DLLs on WIN32 can't be const, because runtime
6432 relocations are performed -- see ld's documentation on pseudo-relocs. */
6433 # define LT_DLSYM_CONST
6434 #elif defined __osf__
6435 /* This system does not cope well with relocations in const data. */
6436 # define LT_DLSYM_CONST
6438 # define LT_DLSYM_CONST const
6446 # Now generate the symbol file.
6447 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6449 cat <<_LT_EOF >> conftest.$ac_ext
6451 /* The mapping between symbol names and symbols. */
6452 LT_DLSYM_CONST struct {
6456 lt__PROGRAM__LTX_preloaded_symbols[] =
6458 { "@PROGRAM@
", (void *) 0 },
6460 $SED "s
/^
$symcode$symcode* .
* \
(.
*\
)$
/ {\"\
1\", (void
*) \
&\
1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6461 cat <<\_LT_EOF >> conftest.$ac_ext
6465 /* This works around a problem in FreeBSD linker */
6466 #ifdef FREEBSD_WORKAROUND
6467 static const void *lt_preloaded_setup() {
6468 return lt__PROGRAM__LTX_preloaded_symbols;
6476 # Now try linking the two files.
6477 mv conftest.$ac_objext conftstm.$ac_objext
6478 lt_globsym_save_LIBS=$LIBS
6479 lt_globsym_save_CFLAGS=$CFLAGS
6480 LIBS=conftstm.$ac_objext
6481 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6482 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6483 (eval $ac_link) 2>&5
6485 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
6486 test $ac_status = 0; } && test -s conftest$ac_exeext; then
6489 LIBS=$lt_globsym_save_LIBS
6490 CFLAGS=$lt_globsym_save_CFLAGS
6492 echo "cannot
find nm_test_func
in $nlist" >&5
6495 echo "cannot
find nm_test_var
in $nlist" >&5
6498 echo "cannot run
$lt_cv_sys_global_symbol_pipe" >&5
6501 echo "$progname: failed program was
:" >&5
6502 cat conftest.$ac_ext >&5
6504 rm -rf conftest* conftst*
6506 # Do not use the global_symbol_pipe unless it works.
6507 if test yes = "$pipe_works"; then
6510 lt_cv_sys_global_symbol_pipe=
6516 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6517 lt_cv_sys_global_symbol_to_cdecl=
6519 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6520 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: failed
" >&5
6521 $as_echo "failed
" >&6; }
6523 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: ok
" >&5
6524 $as_echo "ok
" >&6; }
6527 # Response file support.
6528 if test "$lt_cv_nm_interface" = "MS dumpbin
"; then
6529 nm_file_list_spec='@'
6530 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6531 nm_file_list_spec='@'
6570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for sysroot
" >&5
6571 $as_echo_n "checking
for sysroot...
" >&6; }
6573 # Check whether --with-sysroot was given.
6574 if test "${with_sysroot+set}" = set; then :
6575 withval=$with_sysroot;
6582 case $with_sysroot in #(
6584 if test yes = "$GCC"; then
6585 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6589 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6594 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $with_sysroot" >&5
6595 $as_echo "$with_sysroot" >&6; }
6596 as_fn_error $? "The sysroot must be an absolute path.
" "$LINENO" 5
6600 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: ${lt_sysroot:-no}" >&5
6601 $as_echo "${lt_sysroot:-no}" >&6; }
6607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for a working
dd" >&5
6608 $as_echo_n "checking
for a working
dd...
" >&6; }
6609 if ${ac_cv_path_lt_DD+:} false; then :
6610 $as_echo_n "(cached
) " >&6
6612 printf 0123456789abcdef0123456789abcdef >conftest.i
6613 cat conftest.i conftest.i >conftest2.i
6615 if test -z "$lt_DD"; then
6616 ac_path_lt_DD_found=false
6617 # Loop through the user's path and test for each of PROGNAME-LIST
6618 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6622 test -z "$as_dir" && as_dir=.
6623 for ac_prog in dd; do
6624 for ac_exec_ext in '' $ac_executable_extensions; do
6625 ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
6626 as_fn_executable_p "$ac_path_lt_DD" || continue
6627 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
6628 cmp -s conftest.i conftest.out \
6629 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
6631 $ac_path_lt_DD_found && break 3
6636 if test -z "$ac_cv_path_lt_DD"; then
6640 ac_cv_path_lt_DD=$lt_DD
6643 rm -f conftest.i conftest2.i conftest.out
6645 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_path_lt_DD" >&5
6646 $as_echo "$ac_cv_path_lt_DD" >&6; }
6649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes
" >&5
6650 $as_echo_n "checking how to truncate binary pipes...
" >&6; }
6651 if ${lt_cv_truncate_bin+:} false; then :
6652 $as_echo_n "(cached
) " >&6
6654 printf 0123456789abcdef0123456789abcdef >conftest.i
6655 cat conftest.i conftest.i >conftest2.i
6657 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
6658 cmp -s conftest.i conftest.out \
6659 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs
=4096 count
=1"
6661 rm -f conftest.i conftest2.i conftest.out
6662 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q
"
6664 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_truncate_bin" >&5
6665 $as_echo "$lt_cv_truncate_bin" >&6; }
6673 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
6676 for cc_temp in $*""; do
6678 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6679 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6684 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s
%.
*/%%; s
%^
$host_alias-%%"`
6687 # Check whether --enable-libtool-lock was given.
6688 if test "${enable_libtool_lock+set}" = set; then :
6689 enableval=$enable_libtool_lock;
6692 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
6694 # Some flags need to be propagated to the compiler or linker for good
6698 # Find out what ABI is being produced by ac_compile, and set mode
6699 # options accordingly.
6700 echo 'int i;' > conftest.$ac_ext
6701 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6702 (eval $ac_compile) 2>&5
6704 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
6705 test $ac_status = 0; }; then
6706 case `/usr/bin/file conftest.$ac_objext` in
6718 # Find out what ABI is being produced by ac_compile, and set linker
6719 # options accordingly.
6720 echo '#line '$LINENO' "configure
"' > conftest.$ac_ext
6721 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6722 (eval $ac_compile) 2>&5
6724 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
6725 test $ac_status = 0; }; then
6726 if test yes = "$lt_cv_prog_gnu_ld"; then
6727 case `/usr/bin/file conftest.$ac_objext` in
6729 LD="${LD-ld} -melf32bsmip"
6732 LD="${LD-ld} -melf32bmipn32"
6735 LD="${LD-ld} -melf64bmip"
6739 case `/usr/bin/file conftest.$ac_objext` in
6756 # Find out what ABI is being produced by ac_compile, and set linker
6757 # options accordingly.
6758 echo '#line '$LINENO' "configure
"' > conftest.$ac_ext
6759 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6760 (eval $ac_compile) 2>&5
6762 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
6763 test $ac_status = 0; }; then
6765 case `/usr/bin/file conftest.$ac_objext` in
6773 case `/usr/bin/file conftest.$ac_objext` in
6775 emul="${emul}btsmip
"
6778 emul="${emul}ltsmip
"
6781 case `/usr/bin/file conftest.$ac_objext` in
6786 LD="${LD-ld} -m $emul"
6791 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
6792 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6793 # Find out what ABI is being produced by ac_compile, and set linker
6794 # options accordingly. Note that the listed cases only cover the
6795 # situations where additional linker options are needed (such as when
6796 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
6797 # vice versa); the common cases where no linker options are needed do
6798 # not appear in the list.
6799 echo 'int i;' > conftest.$ac_ext
6800 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6801 (eval $ac_compile) 2>&5
6803 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
6804 test $ac_status = 0; }; then
6805 case `/usr/bin/file conftest.o` in
6808 x86_64-*kfreebsd*-gnu)
6809 LD="${LD-ld} -m elf_i386_fbsd
"
6812 case `/usr/bin/file conftest.o` in
6814 LD="${LD-ld} -m elf32_x86_64
"
6817 LD="${LD-ld} -m elf_i386
"
6821 powerpc64le-*linux*)
6822 LD="${LD-ld} -m elf32lppclinux
"
6825 LD="${LD-ld} -m elf32ppclinux
"
6828 LD="${LD-ld} -m elf_s390
"
6831 LD="${LD-ld} -m elf32_sparc
"
6837 x86_64-*kfreebsd*-gnu)
6838 LD="${LD-ld} -m elf_x86_64_fbsd
"
6841 LD="${LD-ld} -m elf_x86_64
"
6844 LD="${LD-ld} -m elf64lppc
"
6847 LD="${LD-ld} -m elf64ppc
"
6849 s390*-*linux*|s390*-*tpf*)
6850 LD="${LD-ld} -m elf64_s390
"
6853 LD="${LD-ld} -m elf64_sparc
"
6863 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6865 CFLAGS="$CFLAGS -belf"
6866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs
-belf" >&5
6867 $as_echo_n "checking whether the C compiler needs
-belf...
" >&6; }
6868 if ${lt_cv_cc_needs_belf+:} false; then :
6869 $as_echo_n "(cached
) " >&6
6872 ac_cpp='$CPP $CPPFLAGS'
6873 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6874 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6875 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6877 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6878 /* end confdefs.h. */
6888 if ac_fn_c_try_link "$LINENO"; then :
6889 lt_cv_cc_needs_belf=yes
6891 lt_cv_cc_needs_belf=no
6893 rm -f core conftest.err conftest.$ac_objext \
6894 conftest$ac_exeext conftest.$ac_ext
6896 ac_cpp='$CPP $CPPFLAGS'
6897 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6898 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6899 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6902 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_cc_needs_belf" >&5
6903 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6904 if test yes != "$lt_cv_cc_needs_belf"; then
6905 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6910 # Find out what ABI is being produced by ac_compile, and set linker
6911 # options accordingly.
6912 echo 'int i;' > conftest.$ac_ext
6913 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6914 (eval $ac_compile) 2>&5
6916 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
6917 test $ac_status = 0; }; then
6918 case `/usr/bin/file conftest.o` in
6920 case $lt_cv_prog_gnu_ld in
6923 i?86-*-solaris*|x86_64-*-solaris*)
6924 LD="${LD-ld} -m elf_x86_64
"
6927 LD="${LD-ld} -m elf64_sparc
"
6930 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
6931 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
6936 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6948 need_locks=$enable_libtool_lock
6950 if test -n "$ac_tool_prefix"; then
6951 # Extract the first word of "${ac_tool_prefix}mt
", so it can be a program name with args.
6952 set dummy ${ac_tool_prefix}mt; ac_word=$2
6953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
6954 $as_echo_n "checking
for $ac_word...
" >&6; }
6955 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
6956 $as_echo_n "(cached
) " >&6
6958 if test -n "$MANIFEST_TOOL"; then
6959 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
6961 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6965 test -z "$as_dir" && as_dir=.
6966 for ac_exec_ext in '' $ac_executable_extensions; do
6967 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6968 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt
"
6969 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
6978 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
6979 if test -n "$MANIFEST_TOOL"; then
6980 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $MANIFEST_TOOL" >&5
6981 $as_echo "$MANIFEST_TOOL" >&6; }
6983 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
6984 $as_echo "no
" >&6; }
6989 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
6990 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
6991 # Extract the first word of "mt
", so it can be a program name with args.
6992 set dummy mt; ac_word=$2
6993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
6994 $as_echo_n "checking
for $ac_word...
" >&6; }
6995 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
6996 $as_echo_n "(cached
) " >&6
6998 if test -n "$ac_ct_MANIFEST_TOOL"; then
6999 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7001 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7005 test -z "$as_dir" && as_dir=.
7006 for ac_exec_ext in '' $ac_executable_extensions; do
7007 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7008 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt
"
7009 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
7018 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7019 if test -n "$ac_ct_MANIFEST_TOOL"; then
7020 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_MANIFEST_TOOL" >&5
7021 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
7023 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
7024 $as_echo "no
" >&6; }
7027 if test "x
$ac_ct_MANIFEST_TOOL" = x; then
7030 case $cross_compiling:$ac_tool_warned in
7032 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
7033 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
7034 ac_tool_warned=yes ;;
7036 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7039 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7042 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $MANIFEST_TOOL is a manifest tool
" >&5
7044 $as_echo_n "checking
if $MANIFEST_TOOL is a manifest tool...
" >&6; }
7045 if ${lt_cv_path_mainfest_tool+:} false; then :
7046 $as_echo_n "(cached
) " >&6
7048 lt_cv_path_mainfest_tool=no
7049 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7050 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7051 cat conftest.err >&5
7052 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7053 lt_cv_path_mainfest_tool=yes
7057 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_path_mainfest_tool" >&5
7058 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
7059 if test yes != "$lt_cv_path_mainfest_tool"; then
7069 rhapsody* | darwin*)
7070 if test -n "$ac_tool_prefix"; then
7071 # Extract the first word of "${ac_tool_prefix}dsymutil
", so it can be a program name with args.
7072 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
7074 $as_echo_n "checking
for $ac_word...
" >&6; }
7075 if ${ac_cv_prog_DSYMUTIL+:} false; then :
7076 $as_echo_n "(cached
) " >&6
7078 if test -n "$DSYMUTIL"; then
7079 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7081 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7085 test -z "$as_dir" && as_dir=.
7086 for ac_exec_ext in '' $ac_executable_extensions; do
7087 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7088 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil
"
7089 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
7098 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7099 if test -n "$DSYMUTIL"; then
7100 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $DSYMUTIL" >&5
7101 $as_echo "$DSYMUTIL" >&6; }
7103 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
7104 $as_echo "no
" >&6; }
7109 if test -z "$ac_cv_prog_DSYMUTIL"; then
7110 ac_ct_DSYMUTIL=$DSYMUTIL
7111 # Extract the first word of "dsymutil
", so it can be a program name with args.
7112 set dummy dsymutil; ac_word=$2
7113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
7114 $as_echo_n "checking
for $ac_word...
" >&6; }
7115 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7116 $as_echo_n "(cached
) " >&6
7118 if test -n "$ac_ct_DSYMUTIL"; then
7119 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7121 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7125 test -z "$as_dir" && as_dir=.
7126 for ac_exec_ext in '' $ac_executable_extensions; do
7127 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7128 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil
"
7129 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
7138 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7139 if test -n "$ac_ct_DSYMUTIL"; then
7140 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_DSYMUTIL" >&5
7141 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7143 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
7144 $as_echo "no
" >&6; }
7147 if test "x
$ac_ct_DSYMUTIL" = x; then
7150 case $cross_compiling:$ac_tool_warned in
7152 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
7153 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
7154 ac_tool_warned=yes ;;
7156 DSYMUTIL=$ac_ct_DSYMUTIL
7159 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7162 if test -n "$ac_tool_prefix"; then
7163 # Extract the first word of "${ac_tool_prefix}nmedit
", so it can be a program name with args.
7164 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
7166 $as_echo_n "checking
for $ac_word...
" >&6; }
7167 if ${ac_cv_prog_NMEDIT+:} false; then :
7168 $as_echo_n "(cached
) " >&6
7170 if test -n "$NMEDIT"; then
7171 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7173 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7177 test -z "$as_dir" && as_dir=.
7178 for ac_exec_ext in '' $ac_executable_extensions; do
7179 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7180 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit
"
7181 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
7190 NMEDIT=$ac_cv_prog_NMEDIT
7191 if test -n "$NMEDIT"; then
7192 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $NMEDIT" >&5
7193 $as_echo "$NMEDIT" >&6; }
7195 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
7196 $as_echo "no
" >&6; }
7201 if test -z "$ac_cv_prog_NMEDIT"; then
7202 ac_ct_NMEDIT=$NMEDIT
7203 # Extract the first word of "nmedit
", so it can be a program name with args.
7204 set dummy nmedit; ac_word=$2
7205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
7206 $as_echo_n "checking
for $ac_word...
" >&6; }
7207 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7208 $as_echo_n "(cached
) " >&6
7210 if test -n "$ac_ct_NMEDIT"; then
7211 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7213 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7217 test -z "$as_dir" && as_dir=.
7218 for ac_exec_ext in '' $ac_executable_extensions; do
7219 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7220 ac_cv_prog_ac_ct_NMEDIT="nmedit
"
7221 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
7230 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7231 if test -n "$ac_ct_NMEDIT"; then
7232 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_NMEDIT" >&5
7233 $as_echo "$ac_ct_NMEDIT" >&6; }
7235 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
7236 $as_echo "no
" >&6; }
7239 if test "x
$ac_ct_NMEDIT" = x; then
7242 case $cross_compiling:$ac_tool_warned in
7244 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
7245 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
7246 ac_tool_warned=yes ;;
7248 NMEDIT=$ac_ct_NMEDIT
7251 NMEDIT="$ac_cv_prog_NMEDIT"
7254 if test -n "$ac_tool_prefix"; then
7255 # Extract the first word of "${ac_tool_prefix}lipo
", so it can be a program name with args.
7256 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
7258 $as_echo_n "checking
for $ac_word...
" >&6; }
7259 if ${ac_cv_prog_LIPO+:} false; then :
7260 $as_echo_n "(cached
) " >&6
7262 if test -n "$LIPO"; then
7263 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7265 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7269 test -z "$as_dir" && as_dir=.
7270 for ac_exec_ext in '' $ac_executable_extensions; do
7271 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7272 ac_cv_prog_LIPO="${ac_tool_prefix}lipo
"
7273 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
7282 LIPO=$ac_cv_prog_LIPO
7283 if test -n "$LIPO"; then
7284 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $LIPO" >&5
7285 $as_echo "$LIPO" >&6; }
7287 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
7288 $as_echo "no
" >&6; }
7293 if test -z "$ac_cv_prog_LIPO"; then
7295 # Extract the first word of "lipo
", so it can be a program name with args.
7296 set dummy lipo; ac_word=$2
7297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
7298 $as_echo_n "checking
for $ac_word...
" >&6; }
7299 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7300 $as_echo_n "(cached
) " >&6
7302 if test -n "$ac_ct_LIPO"; then
7303 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7305 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7309 test -z "$as_dir" && as_dir=.
7310 for ac_exec_ext in '' $ac_executable_extensions; do
7311 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7312 ac_cv_prog_ac_ct_LIPO="lipo
"
7313 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
7322 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7323 if test -n "$ac_ct_LIPO"; then
7324 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_LIPO" >&5
7325 $as_echo "$ac_ct_LIPO" >&6; }
7327 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
7328 $as_echo "no
" >&6; }
7331 if test "x
$ac_ct_LIPO" = x; then
7334 case $cross_compiling:$ac_tool_warned in
7336 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
7337 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
7338 ac_tool_warned=yes ;;
7343 LIPO="$ac_cv_prog_LIPO"
7346 if test -n "$ac_tool_prefix"; then
7347 # Extract the first word of "${ac_tool_prefix}otool
", so it can be a program name with args.
7348 set dummy ${ac_tool_prefix}otool; ac_word=$2
7349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
7350 $as_echo_n "checking
for $ac_word...
" >&6; }
7351 if ${ac_cv_prog_OTOOL+:} false; then :
7352 $as_echo_n "(cached
) " >&6
7354 if test -n "$OTOOL"; then
7355 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7357 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7361 test -z "$as_dir" && as_dir=.
7362 for ac_exec_ext in '' $ac_executable_extensions; do
7363 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7364 ac_cv_prog_OTOOL="${ac_tool_prefix}otool
"
7365 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
7374 OTOOL=$ac_cv_prog_OTOOL
7375 if test -n "$OTOOL"; then
7376 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OTOOL" >&5
7377 $as_echo "$OTOOL" >&6; }
7379 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
7380 $as_echo "no
" >&6; }
7385 if test -z "$ac_cv_prog_OTOOL"; then
7387 # Extract the first word of "otool
", so it can be a program name with args.
7388 set dummy otool; ac_word=$2
7389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
7390 $as_echo_n "checking
for $ac_word...
" >&6; }
7391 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7392 $as_echo_n "(cached
) " >&6
7394 if test -n "$ac_ct_OTOOL"; then
7395 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7397 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7401 test -z "$as_dir" && as_dir=.
7402 for ac_exec_ext in '' $ac_executable_extensions; do
7403 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7404 ac_cv_prog_ac_ct_OTOOL="otool
"
7405 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
7414 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7415 if test -n "$ac_ct_OTOOL"; then
7416 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_OTOOL" >&5
7417 $as_echo "$ac_ct_OTOOL" >&6; }
7419 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
7420 $as_echo "no
" >&6; }
7423 if test "x
$ac_ct_OTOOL" = x; then
7426 case $cross_compiling:$ac_tool_warned in
7428 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
7429 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
7430 ac_tool_warned=yes ;;
7435 OTOOL="$ac_cv_prog_OTOOL"
7438 if test -n "$ac_tool_prefix"; then
7439 # Extract the first word of "${ac_tool_prefix}otool64
", so it can be a program name with args.
7440 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
7442 $as_echo_n "checking
for $ac_word...
" >&6; }
7443 if ${ac_cv_prog_OTOOL64+:} false; then :
7444 $as_echo_n "(cached
) " >&6
7446 if test -n "$OTOOL64"; then
7447 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7449 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7453 test -z "$as_dir" && as_dir=.
7454 for ac_exec_ext in '' $ac_executable_extensions; do
7455 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7456 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64
"
7457 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
7466 OTOOL64=$ac_cv_prog_OTOOL64
7467 if test -n "$OTOOL64"; then
7468 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OTOOL64" >&5
7469 $as_echo "$OTOOL64" >&6; }
7471 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
7472 $as_echo "no
" >&6; }
7477 if test -z "$ac_cv_prog_OTOOL64"; then
7478 ac_ct_OTOOL64=$OTOOL64
7479 # Extract the first word of "otool64
", so it can be a program name with args.
7480 set dummy otool64; ac_word=$2
7481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
7482 $as_echo_n "checking
for $ac_word...
" >&6; }
7483 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7484 $as_echo_n "(cached
) " >&6
7486 if test -n "$ac_ct_OTOOL64"; then
7487 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7489 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7493 test -z "$as_dir" && as_dir=.
7494 for ac_exec_ext in '' $ac_executable_extensions; do
7495 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7496 ac_cv_prog_ac_ct_OTOOL64="otool64
"
7497 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
7506 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7507 if test -n "$ac_ct_OTOOL64"; then
7508 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_OTOOL64" >&5
7509 $as_echo "$ac_ct_OTOOL64" >&6; }
7511 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
7512 $as_echo "no
" >&6; }
7515 if test "x
$ac_ct_OTOOL64" = x; then
7518 case $cross_compiling:$ac_tool_warned in
7520 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
7521 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
7522 ac_tool_warned=yes ;;
7524 OTOOL64=$ac_ct_OTOOL64
7527 OTOOL64="$ac_cv_prog_OTOOL64"
7556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for -single_module linker flag
" >&5
7557 $as_echo_n "checking
for -single_module linker flag...
" >&6; }
7558 if ${lt_cv_apple_cc_single_mod+:} false; then :
7559 $as_echo_n "(cached
) " >&6
7561 lt_cv_apple_cc_single_mod=no
7562 if test -z "$LT_MULTI_MODULE"; then
7563 # By default we will add the -single_module flag. You can override
7564 # by either setting the environment variable LT_MULTI_MODULE
7565 # non-empty at configure time, or by adding -multi_module to the
7567 rm -rf libconftest.dylib*
7568 echo "int foo
(void
){return 1;}" > conftest.c
7569 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7570 -dynamiclib -Wl,-single_module conftest.c
" >&5
7571 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7572 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7574 # If there is a non-empty error log, and "single_module
"
7575 # appears in it, assume the flag caused a linker warning
7576 if test -s conftest.err && $GREP single_module conftest.err; then
7577 cat conftest.err >&5
7578 # Otherwise, if the output was created with a 0 exit code from
7579 # the compiler, it worked.
7580 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
7581 lt_cv_apple_cc_single_mod=yes
7583 cat conftest.err >&5
7585 rm -rf libconftest.dylib*
7589 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_apple_cc_single_mod" >&5
7590 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for -exported_symbols_list linker flag
" >&5
7593 $as_echo_n "checking
for -exported_symbols_list linker flag...
" >&6; }
7594 if ${lt_cv_ld_exported_symbols_list+:} false; then :
7595 $as_echo_n "(cached
) " >&6
7597 lt_cv_ld_exported_symbols_list=no
7598 save_LDFLAGS=$LDFLAGS
7599 echo "_main
" > conftest.sym
7600 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym
"
7601 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7602 /* end confdefs.h. */
7612 if ac_fn_c_try_link "$LINENO"; then :
7613 lt_cv_ld_exported_symbols_list=yes
7615 lt_cv_ld_exported_symbols_list=no
7617 rm -f core conftest.err conftest.$ac_objext \
7618 conftest$ac_exeext conftest.$ac_ext
7619 LDFLAGS=$save_LDFLAGS
7622 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_ld_exported_symbols_list" >&5
7623 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for -force_load linker flag
" >&5
7626 $as_echo_n "checking
for -force_load linker flag...
" >&6; }
7627 if ${lt_cv_ld_force_load+:} false; then :
7628 $as_echo_n "(cached
) " >&6
7630 lt_cv_ld_force_load=no
7631 cat > conftest.c << _LT_EOF
7632 int forced_loaded() { return 2;}
7634 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c
" >&5
7635 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7636 echo "$AR cru libconftest.a conftest.o
" >&5
7637 $AR cru libconftest.a conftest.o 2>&5
7638 echo "$RANLIB libconftest.a
" >&5
7639 $RANLIB libconftest.a 2>&5
7640 cat > conftest.c << _LT_EOF
7641 int main() { return 0;}
7643 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c
-Wl,-force_load,.
/libconftest.a
" >&5
7644 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7646 if test -s conftest.err && $GREP force_load conftest.err; then
7647 cat conftest.err >&5
7648 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
7649 lt_cv_ld_force_load=yes
7651 cat conftest.err >&5
7653 rm -f conftest.err libconftest.a conftest conftest.c
7654 rm -rf conftest.dSYM
7657 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_ld_force_load" >&5
7658 $as_echo "$lt_cv_ld_force_load" >&6; }
7660 rhapsody* | darwin1.[012])
7661 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
7663 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
7664 darwin*) # darwin 5.x on
7665 # if running on 10.5 or later, the deployment target defaults
7666 # to the OS version, if on x86, and 10.4, the deployment
7667 # target defaults to 10.4. Don't you love it?
7668 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7669 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7670 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
7672 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
7674 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
7678 if test yes = "$lt_cv_apple_cc_single_mod"; then
7679 _lt_dar_single_mod='$single_module'
7681 if test yes = "$lt_cv_ld_exported_symbols_list"; then
7682 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
7684 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
7686 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
7687 _lt_dsymutil='~$DSYMUTIL $lib || :'
7694 # func_munge_path_list VARIABLE PATH
7695 # -----------------------------------
7696 # VARIABLE is name of variable containing _space_ separated list of
7697 # directories to be munged by the contents of PATH, which is string
7700 # string "DIR
[ DIR
]" will be prepended to VARIABLE
7702 # string "DIR
[ DIR
]" will be appended to VARIABLE
7703 # "DIRP
[:DIRP
]::[DIRA
:]DIRA
"
7704 # string "DIRP
[ DIRP
]" will be prepended to VARIABLE and string
7705 # "DIRA
[ DIRA
]" will be appended to VARIABLE
7707 # VARIABLE will be replaced by "DIR
[ DIR
]"
7708 func_munge_path_list ()
7714 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
7717 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
7720 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
7721 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
7724 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
7730 ac_cpp='$CPP $CPPFLAGS'
7731 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7732 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7733 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor
" >&5
7735 $as_echo_n "checking how to run the C preprocessor...
" >&6; }
7736 # On Suns, sometimes $CPP names a directory.
7737 if test -n "$CPP" && test -d "$CPP"; then
7740 if test -z "$CPP"; then
7741 if ${ac_cv_prog_CPP+:} false; then :
7742 $as_echo_n "(cached
) " >&6
7744 # Double quotes because CPP needs to be expanded
7745 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib
/cpp
"
7748 for ac_c_preproc_warn_flag in '' yes
7750 # Use a header file that comes with gcc, so configuring glibc
7751 # with a fresh cross-compiler works.
7752 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7753 # <limits.h> exists even on freestanding compilers.
7754 # On the NeXT, cc -E runs the code through the compiler's parser,
7755 # not just through cpp. "Syntax error
" is here to catch this case.
7756 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7757 /* end confdefs.h. */
7759 # include <limits.h>
7761 # include <assert.h>
7765 if ac_fn_c_try_cpp "$LINENO"; then :
7768 # Broken: fails on valid input.
7771 rm -f conftest.err conftest.i conftest.$ac_ext
7773 # OK, works on sane cases. Now check whether nonexistent headers
7774 # can be detected and how.
7775 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7776 /* end confdefs.h. */
7777 #include <ac_nonexistent.h>
7779 if ac_fn_c_try_cpp "$LINENO"; then :
7780 # Broken: success on invalid input.
7783 # Passes both tests.
7787 rm -f conftest.err conftest.i conftest.$ac_ext
7790 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7791 rm -f conftest.i conftest.err conftest.$ac_ext
7792 if $ac_preproc_ok; then :
7804 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $CPP" >&5
7805 $as_echo "$CPP" >&6; }
7807 for ac_c_preproc_warn_flag in '' yes
7809 # Use a header file that comes with gcc, so configuring glibc
7810 # with a fresh cross-compiler works.
7811 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7812 # <limits.h> exists even on freestanding compilers.
7813 # On the NeXT, cc -E runs the code through the compiler's parser,
7814 # not just through cpp. "Syntax error
" is here to catch this case.
7815 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7816 /* end confdefs.h. */
7818 # include <limits.h>
7820 # include <assert.h>
7824 if ac_fn_c_try_cpp "$LINENO"; then :
7827 # Broken: fails on valid input.
7830 rm -f conftest.err conftest.i conftest.$ac_ext
7832 # OK, works on sane cases. Now check whether nonexistent headers
7833 # can be detected and how.
7834 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7835 /* end confdefs.h. */
7836 #include <ac_nonexistent.h>
7838 if ac_fn_c_try_cpp "$LINENO"; then :
7839 # Broken: success on invalid input.
7842 # Passes both tests.
7846 rm -f conftest.err conftest.i conftest.$ac_ext
7849 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7850 rm -f conftest.i conftest.err conftest.$ac_ext
7851 if $ac_preproc_ok; then :
7854 { { $as_echo "$as_me:${as_lineno-$LINENO}: error
: in \
`$ac_pwd':" >&5
7855 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7856 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7857 See \`config.log' for more details
" "$LINENO" 5; }
7861 ac_cpp='$CPP $CPPFLAGS'
7862 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7863 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7864 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ANSI C header files
" >&5
7868 $as_echo_n "checking
for ANSI C header files...
" >&6; }
7869 if ${ac_cv_header_stdc+:} false; then :
7870 $as_echo_n "(cached
) " >&6
7872 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7873 /* end confdefs.h. */
7887 if ac_fn_c_try_compile "$LINENO"; then :
7888 ac_cv_header_stdc=yes
7890 ac_cv_header_stdc=no
7892 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7894 if test $ac_cv_header_stdc = yes; then
7895 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7896 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7897 /* end confdefs.h. */
7901 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
7902 $EGREP "memchr
" >/dev/null 2>&1; then :
7905 ac_cv_header_stdc=no
7911 if test $ac_cv_header_stdc = yes; then
7912 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7913 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7914 /* end confdefs.h. */
7918 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
7919 $EGREP "free
" >/dev/null 2>&1; then :
7922 ac_cv_header_stdc=no
7928 if test $ac_cv_header_stdc = yes; then
7929 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7930 if test "$cross_compiling" = yes; then :
7933 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7934 /* end confdefs.h. */
7937 #if ((' ' & 0x0FF) == 0x020)
7938 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7939 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7941 # define ISLOWER(c) \
7942 (('a' <= (c) && (c) <= 'i') \
7943 || ('j' <= (c) && (c) <= 'r') \
7944 || ('s' <= (c) && (c) <= 'z'))
7945 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7948 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7953 for (i = 0; i < 256; i++)
7954 if (XOR (islower (i), ISLOWER (i))
7955 || toupper (i) != TOUPPER (i))
7960 if ac_fn_c_try_run "$LINENO"; then :
7963 ac_cv_header_stdc=no
7965 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7966 conftest.$ac_objext conftest.beam conftest.$ac_ext
7971 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_header_stdc" >&5
7972 $as_echo "$ac_cv_header_stdc" >&6; }
7973 if test $ac_cv_header_stdc = yes; then
7975 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7979 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7980 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
7981 inttypes.h stdint.h unistd.h
7983 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7984 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7986 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
7987 cat >>confdefs.h
<<_ACEOF
7988 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7996 for ac_header
in dlfcn.h
7998 ac_fn_c_check_header_compile
"$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8000 if test "x$ac_cv_header_dlfcn_h" = xyes
; then :
8001 cat >>confdefs.h
<<_ACEOF
8002 #define HAVE_DLFCN_H 1
8023 # Check whether --enable-shared was given.
8024 if test "${enable_shared+set}" = set; then :
8025 enableval
=$enable_shared; p
=${PACKAGE-default}
8027 yes) enable_shared
=yes ;;
8028 no
) enable_shared
=no
;;
8031 # Look at the argument we got. We use all the common list separators.
8032 lt_save_ifs
=$IFS; IFS
=$IFS$PATH_SEPARATOR,
8033 for pkg
in $enableval; do
8035 if test "X$pkg" = "X$p"; then
8054 # Check whether --enable-static was given.
8055 if test "${enable_static+set}" = set; then :
8056 enableval
=$enable_static; p
=${PACKAGE-default}
8058 yes) enable_static
=yes ;;
8059 no
) enable_static
=no
;;
8062 # Look at the argument we got. We use all the common list separators.
8063 lt_save_ifs
=$IFS; IFS
=$IFS$PATH_SEPARATOR,
8064 for pkg
in $enableval; do
8066 if test "X$pkg" = "X$p"; then
8086 # Check whether --with-pic was given.
8087 if test "${with_pic+set}" = set; then :
8088 withval
=$with_pic; lt_p
=${PACKAGE-default}
8090 yes|no
) pic_mode
=$withval ;;
8093 # Look at the argument we got. We use all the common list separators.
8094 lt_save_ifs
=$IFS; IFS
=$IFS$PATH_SEPARATOR,
8095 for lt_pkg
in $withval; do
8097 if test "X$lt_pkg" = "X$lt_p"; then
8115 # Check whether --enable-fast-install was given.
8116 if test "${enable_fast_install+set}" = set; then :
8117 enableval
=$enable_fast_install; p
=${PACKAGE-default}
8119 yes) enable_fast_install
=yes ;;
8120 no
) enable_fast_install
=no
;;
8122 enable_fast_install
=no
8123 # Look at the argument we got. We use all the common list separators.
8124 lt_save_ifs
=$IFS; IFS
=$IFS$PATH_SEPARATOR,
8125 for pkg
in $enableval; do
8127 if test "X$pkg" = "X$p"; then
8128 enable_fast_install
=yes
8135 enable_fast_install
=yes
8145 shared_archive_member_spec
=
8146 case $host,$enable_shared in
8147 power
*-*-aix[5-9]*,yes)
8148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
8149 $as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
8151 # Check whether --with-aix-soname was given.
8152 if test "${with_aix_soname+set}" = set; then :
8153 withval
=$with_aix_soname; case $withval in
8157 as_fn_error $?
"Unknown argument to --with-aix-soname" "$LINENO" 5
8160 lt_cv_with_aix_soname
=$with_aix_soname
8162 if ${lt_cv_with_aix_soname+:} false
; then :
8163 $as_echo_n "(cached) " >&6
8165 lt_cv_with_aix_soname
=aix
8168 with_aix_soname
=$lt_cv_with_aix_soname
8171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
8172 $as_echo "$with_aix_soname" >&6; }
8173 if test aix
!= "$with_aix_soname"; then
8174 # For the AIX way of multilib, we name the shared archive member
8175 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
8176 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
8177 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
8178 # the AIX toolchain works better with OBJECT_MODE set (default 32).
8179 if test 64 = "${OBJECT_MODE-32}"; then
8180 shared_archive_member_spec
=shr_64
8182 shared_archive_member_spec
=shr
8200 # This can be used to rebuild libtool when needed
8201 LIBTOOL_DEPS
=$ltmain
8203 # Always use our own libtool.
8204 LIBTOOL
='$(SHELL) $(top_builddir)/libtool'
8235 test -z "$LN_S" && LN_S
="ln -s"
8250 if test -n "${ZSH_VERSION+set}"; then
8251 setopt NO_GLOB_SUBST
8254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8255 $as_echo_n "checking for objdir... " >&6; }
8256 if ${lt_cv_objdir+:} false
; then :
8257 $as_echo_n "(cached) " >&6
8259 rm -f .libs
2>/dev
/null
8260 mkdir .libs
2>/dev
/null
8261 if test -d .libs
; then
8264 # MS-DOS does not allow filenames that begin with a dot.
8267 rmdir .libs
2>/dev
/null
8269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8270 $as_echo "$lt_cv_objdir" >&6; }
8271 objdir
=$lt_cv_objdir
8277 cat >>confdefs.h
<<_ACEOF
8278 #define LT_OBJDIR "$lt_cv_objdir/"
8286 # AIX sometimes has problems with the GCC collect2 program. For some
8287 # reason, if we set the COLLECT_NAMES environment variable, the problems
8288 # vanish in a puff of smoke.
8289 if test set != "${COLLECT_NAMES+set}"; then
8291 export COLLECT_NAMES
8298 can_build_shared
=yes
8300 # All known linkers require a '.a' archive for static linking (except MSVC,
8301 # which needs '.lib').
8304 with_gnu_ld
=$lt_cv_prog_gnu_ld
8309 # Set sane defaults for various variables
8310 test -z "$CC" && CC
=cc
8311 test -z "$LTCC" && LTCC
=$CC
8312 test -z "$LTCFLAGS" && LTCFLAGS
=$CFLAGS
8313 test -z "$LD" && LD
=ld
8314 test -z "$ac_objext" && ac_objext
=o
8316 func_cc_basename
$compiler
8317 cc_basename
=$func_cc_basename_result
8320 # Only perform the check for file, if the check method requires it
8321 test -z "$MAGIC_CMD" && MAGIC_CMD
=file
8322 case $deplibs_check_method in
8324 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8326 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8327 if ${lt_cv_path_MAGIC_CMD+:} false
; then :
8328 $as_echo_n "(cached) " >&6
8332 lt_cv_path_MAGIC_CMD
=$MAGIC_CMD # Let the user override the test with a path.
8335 lt_save_MAGIC_CMD
=$MAGIC_CMD
8336 lt_save_ifs
=$IFS; IFS
=$PATH_SEPARATOR
8337 ac_dummy
="/usr/bin$PATH_SEPARATOR$PATH"
8338 for ac_dir
in $ac_dummy; do
8340 test -z "$ac_dir" && ac_dir
=.
8341 if test -f "$ac_dir/${ac_tool_prefix}file"; then
8342 lt_cv_path_MAGIC_CMD
=$ac_dir/"${ac_tool_prefix}file"
8343 if test -n "$file_magic_test_file"; then
8344 case $deplibs_check_method in
8346 file_magic_regex
=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8347 MAGIC_CMD
=$lt_cv_path_MAGIC_CMD
8348 if eval $file_magic_cmd \
$file_magic_test_file 2> /dev
/null |
8349 $EGREP "$file_magic_regex" > /dev
/null
; then
8354 *** Warning: the command libtool uses to detect shared libraries,
8355 *** $file_magic_cmd, produces output that libtool cannot recognize.
8356 *** The result is that libtool may fail to recognize shared libraries
8357 *** as such. This will affect the creation of libtool libraries that
8358 *** depend on shared libraries, but programs linked with such libtool
8359 *** libraries will work regardless of this problem. Nevertheless, you
8360 *** may want to report the problem to your system manager and/or to
8361 *** bug-libtool@gnu.org
8371 MAGIC_CMD
=$lt_save_MAGIC_CMD
8376 MAGIC_CMD
=$lt_cv_path_MAGIC_CMD
8377 if test -n "$MAGIC_CMD"; then
8378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8379 $as_echo "$MAGIC_CMD" >&6; }
8381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8382 $as_echo "no" >&6; }
8389 if test -z "$lt_cv_path_MAGIC_CMD"; then
8390 if test -n "$ac_tool_prefix"; then
8391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8392 $as_echo_n "checking for file... " >&6; }
8393 if ${lt_cv_path_MAGIC_CMD+:} false
; then :
8394 $as_echo_n "(cached) " >&6
8398 lt_cv_path_MAGIC_CMD
=$MAGIC_CMD # Let the user override the test with a path.
8401 lt_save_MAGIC_CMD
=$MAGIC_CMD
8402 lt_save_ifs
=$IFS; IFS
=$PATH_SEPARATOR
8403 ac_dummy
="/usr/bin$PATH_SEPARATOR$PATH"
8404 for ac_dir
in $ac_dummy; do
8406 test -z "$ac_dir" && ac_dir
=.
8407 if test -f "$ac_dir/file"; then
8408 lt_cv_path_MAGIC_CMD
=$ac_dir/"file"
8409 if test -n "$file_magic_test_file"; then
8410 case $deplibs_check_method in
8412 file_magic_regex
=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8413 MAGIC_CMD
=$lt_cv_path_MAGIC_CMD
8414 if eval $file_magic_cmd \
$file_magic_test_file 2> /dev
/null |
8415 $EGREP "$file_magic_regex" > /dev
/null
; then
8420 *** Warning: the command libtool uses to detect shared libraries,
8421 *** $file_magic_cmd, produces output that libtool cannot recognize.
8422 *** The result is that libtool may fail to recognize shared libraries
8423 *** as such. This will affect the creation of libtool libraries that
8424 *** depend on shared libraries, but programs linked with such libtool
8425 *** libraries will work regardless of this problem. Nevertheless, you
8426 *** may want to report the problem to your system manager and/or to
8427 *** bug-libtool@gnu.org
8437 MAGIC_CMD
=$lt_save_MAGIC_CMD
8442 MAGIC_CMD
=$lt_cv_path_MAGIC_CMD
8443 if test -n "$MAGIC_CMD"; then
8444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8445 $as_echo "$MAGIC_CMD" >&6; }
8447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8448 $as_echo "no" >&6; }
8461 # Use C for the default configuration in the libtool script
8465 ac_cpp
='$CPP $CPPFLAGS'
8466 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8467 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8468 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
8471 # Source file extension for C test sources.
8474 # Object file extension for compiled C test sources.
8478 # Code to be used in simple compile tests
8479 lt_simple_compile_test_code
="int some_variable = 0;"
8481 # Code to be used in simple link tests
8482 lt_simple_link_test_code
='int main(){return(0);}'
8490 # If no C compiler was specified, use CC.
8493 # If no C compiler flags were specified, use CFLAGS.
8494 LTCFLAGS
=${LTCFLAGS-"$CFLAGS"}
8496 # Allow CC to be a program name with arguments.
8499 # Save the default compiler, since it gets overwritten when the other
8500 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8501 compiler_DEFAULT
=$CC
8503 # save warnings/boilerplate of simple test code
8504 ac_outfile
=conftest.
$ac_objext
8505 echo "$lt_simple_compile_test_code" >conftest.
$ac_ext
8506 eval "$ac_compile" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
8507 _lt_compiler_boilerplate
=`cat conftest.err`
8510 ac_outfile
=conftest.
$ac_objext
8511 echo "$lt_simple_link_test_code" >conftest.
$ac_ext
8512 eval "$ac_link" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
8513 _lt_linker_boilerplate
=`cat conftest.err`
8518 ## There is no encapsulation within the following macros, do not change
8519 ## the running order or otherwise move them around unless you know exactly
8520 ## what you are doing...
8521 if test -n "$compiler"; then
8523 lt_prog_compiler_no_builtin_flag
=
8525 if test yes = "$GCC"; then
8526 case $cc_basename in
8528 lt_prog_compiler_no_builtin_flag
=' -Xcompiler -fno-builtin' ;;
8530 lt_prog_compiler_no_builtin_flag
=' -fno-builtin' ;;
8533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8534 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8535 if ${lt_cv_prog_compiler_rtti_exceptions+:} false
; then :
8536 $as_echo_n "(cached) " >&6
8538 lt_cv_prog_compiler_rtti_exceptions
=no
8539 ac_outfile
=conftest.
$ac_objext
8540 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
8541 lt_compiler_flag
="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
8542 # Insert the option either (1) after the last *FLAGS variable, or
8543 # (2) before a word containing "conftest.", or (3) at the end.
8544 # Note that $ac_compile itself does not contain backslashes and begins
8545 # with a dollar sign (not a hyphen), so the echo should work correctly.
8546 # The option is referenced via a variable to avoid confusing sed.
8547 lt_compile
=`echo "$ac_compile" | $SED \
8548 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8549 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8550 -e 's:$: $lt_compiler_flag:'`
8551 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8552 (eval "$lt_compile" 2>conftest.err
)
8554 cat conftest.err
>&5
8555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8556 if (exit $ac_status) && test -s "$ac_outfile"; then
8557 # The compiler can only warn and ignore the option if not recognized
8558 # So say no if there are warnings other than the usual output.
8559 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' >conftest.exp
8560 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
8561 if test ! -s conftest.er2 ||
diff conftest.exp conftest.er2
>/dev
/null
; then
8562 lt_cv_prog_compiler_rtti_exceptions
=yes
8568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8569 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8571 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
8572 lt_prog_compiler_no_builtin_flag
="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8584 lt_prog_compiler_wl
=
8585 lt_prog_compiler_pic
=
8586 lt_prog_compiler_static
=
8589 if test yes = "$GCC"; then
8590 lt_prog_compiler_wl
='-Wl,'
8591 lt_prog_compiler_static
='-static'
8595 # All AIX code is PIC.
8596 if test ia64
= "$host_cpu"; then
8597 # AIX 5 now supports IA64 processor
8598 lt_prog_compiler_static
='-Bstatic'
8600 lt_prog_compiler_pic
='-fPIC'
8606 # see comment about AmigaOS4 .so support
8607 lt_prog_compiler_pic
='-fPIC'
8610 # FIXME: we need at least 68020 code to build shared libraries, but
8611 # adding the '-m68020' flag to GCC prevents building anything better,
8613 lt_prog_compiler_pic
='-m68020 -resident32 -malways-restore-a4'
8618 beos
* | irix5
* | irix6
* | nonstopux
* | osf3
* | osf4
* | osf5
*)
8619 # PIC is the default for these OSes.
8622 mingw
* | cygwin
* | pw32
* | os2
* | cegcc
*)
8623 # This hack is so that the source file can tell whether it is being
8624 # built for inclusion in a dll (and should export symbols for example).
8625 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8626 # (--disable-auto-import) libraries
8627 lt_prog_compiler_pic
='-DDLL_EXPORT'
8630 lt_prog_compiler_static
='$wl-static'
8635 darwin
* | rhapsody
*)
8636 # PIC is the default on this platform
8637 # Common symbols not allowed in MH_DYLIB files
8638 lt_prog_compiler_pic
='-fno-common'
8642 # PIC is the default for Haiku.
8643 # The "-static" flag exists, but is broken.
8644 lt_prog_compiler_static
=
8648 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8649 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8650 # sets the default TLS model and affects inlining.
8656 lt_prog_compiler_pic
='-fPIC'
8662 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8663 # Instead, we relocate shared libraries at runtime.
8667 # Just because we use GCC doesn't mean we suddenly get shared libraries
8668 # on systems that don't support them.
8669 lt_prog_compiler_can_build_shared
=no
8674 # QNX uses GNU C++, but need to define -shared option too, otherwise
8676 lt_prog_compiler_pic
='-fPIC -shared'
8680 if test -d /usr
/nec
; then
8681 lt_prog_compiler_pic
=-Kconform_pic
8686 lt_prog_compiler_pic
='-fPIC'
8690 case $cc_basename in
8691 nvcc
*) # Cuda Compiler Driver 2.2
8692 lt_prog_compiler_wl
='-Xlinker '
8693 if test -n "$lt_prog_compiler_pic"; then
8694 lt_prog_compiler_pic
="-Xcompiler $lt_prog_compiler_pic"
8699 # PORTME Check for flag to pass linker flags through the system compiler.
8702 lt_prog_compiler_wl
='-Wl,'
8703 if test ia64
= "$host_cpu"; then
8704 # AIX 5 now supports IA64 processor
8705 lt_prog_compiler_static
='-Bstatic'
8707 lt_prog_compiler_static
='-bnso -bI:/lib/syscalls.exp'
8711 darwin
* | rhapsody
*)
8712 # PIC is the default on this platform
8713 # Common symbols not allowed in MH_DYLIB files
8714 lt_prog_compiler_pic
='-fno-common'
8715 case $cc_basename in
8717 # NAG Fortran compiler
8718 lt_prog_compiler_wl
='-Wl,-Wl,,'
8719 lt_prog_compiler_pic
='-PIC'
8720 lt_prog_compiler_static
='-Bstatic'
8725 mingw
* | cygwin
* | pw32
* | os2
* | cegcc
*)
8726 # This hack is so that the source file can tell whether it is being
8727 # built for inclusion in a dll (and should export symbols for example).
8728 lt_prog_compiler_pic
='-DDLL_EXPORT'
8731 lt_prog_compiler_static
='$wl-static'
8736 hpux9
* | hpux10
* | hpux11
*)
8737 lt_prog_compiler_wl
='-Wl,'
8738 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8745 lt_prog_compiler_pic
='+Z'
8748 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8749 lt_prog_compiler_static
='$wl-a ${wl}archive'
8752 irix5
* | irix6
* | nonstopux
*)
8753 lt_prog_compiler_wl
='-Wl,'
8754 # PIC (with -KPIC) is the default.
8755 lt_prog_compiler_static
='-non_shared'
8758 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu | gnu
*)
8759 case $cc_basename in
8760 # old Intel for x86_64, which still supported -KPIC.
8762 lt_prog_compiler_wl
='-Wl,'
8763 lt_prog_compiler_pic
='-KPIC'
8764 lt_prog_compiler_static
='-static'
8766 # icc used to be incompatible with GCC.
8767 # ICC 10 doesn't accept -KPIC any more.
8769 lt_prog_compiler_wl
='-Wl,'
8770 lt_prog_compiler_pic
='-fPIC'
8771 lt_prog_compiler_static
='-static'
8773 # Lahey Fortran 8.1.
8775 lt_prog_compiler_wl
='-Wl,'
8776 lt_prog_compiler_pic
='--shared'
8777 lt_prog_compiler_static
='--static'
8780 # NAG Fortran compiler
8781 lt_prog_compiler_wl
='-Wl,-Wl,,'
8782 lt_prog_compiler_pic
='-PIC'
8783 lt_prog_compiler_static
='-Bstatic'
8786 # Fabrice Bellard et al's Tiny C Compiler
8787 lt_prog_compiler_wl
='-Wl,'
8788 lt_prog_compiler_pic
='-fPIC'
8789 lt_prog_compiler_static
='-static'
8791 pgcc
* | pgf77
* | pgf90
* | pgf95
* | pgfortran
*)
8792 # Portland Group compilers (*not* the Pentium gcc compiler,
8793 # which looks to be a dead project)
8794 lt_prog_compiler_wl
='-Wl,'
8795 lt_prog_compiler_pic
='-fpic'
8796 lt_prog_compiler_static
='-Bstatic'
8799 lt_prog_compiler_wl
='-Wl,'
8800 # All Alpha code is PIC.
8801 lt_prog_compiler_static
='-non_shared'
8803 xl
* | bgxl
* | bgf
* | mpixl
*)
8804 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8805 lt_prog_compiler_wl
='-Wl,'
8806 lt_prog_compiler_pic
='-qpic'
8807 lt_prog_compiler_static
='-qstaticlink'
8810 case `$CC -V 2>&1 | sed 5q` in
8811 *Sun\ Ceres\ Fortran
* |
*Sun
*Fortran
*\
[1-7].
* |
*Sun
*Fortran
*\
8.
[0-3]*)
8812 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8813 lt_prog_compiler_pic
='-KPIC'
8814 lt_prog_compiler_static
='-Bstatic'
8815 lt_prog_compiler_wl
=''
8817 *Sun\ F
* |
*Sun
*Fortran
*)
8818 lt_prog_compiler_pic
='-KPIC'
8819 lt_prog_compiler_static
='-Bstatic'
8820 lt_prog_compiler_wl
='-Qoption ld '
8824 lt_prog_compiler_pic
='-KPIC'
8825 lt_prog_compiler_static
='-Bstatic'
8826 lt_prog_compiler_wl
='-Wl,'
8828 *Intel
*\
[CF
]*Compiler
*)
8829 lt_prog_compiler_wl
='-Wl,'
8830 lt_prog_compiler_pic
='-fPIC'
8831 lt_prog_compiler_static
='-static'
8834 lt_prog_compiler_wl
='-Wl,'
8835 lt_prog_compiler_pic
='-fpic'
8836 lt_prog_compiler_static
='-Bstatic'
8844 lt_prog_compiler_pic
='-KPIC'
8845 lt_prog_compiler_static
='-Bstatic'
8849 # QNX uses GNU C++, but need to define -shared option too, otherwise
8851 lt_prog_compiler_pic
='-fPIC -shared'
8854 osf3
* | osf4
* | osf5
*)
8855 lt_prog_compiler_wl
='-Wl,'
8856 # All OSF/1 code is PIC.
8857 lt_prog_compiler_static
='-non_shared'
8861 lt_prog_compiler_static
='-non_shared'
8865 lt_prog_compiler_pic
='-KPIC'
8866 lt_prog_compiler_static
='-Bstatic'
8867 case $cc_basename in
8868 f77
* | f90
* | f95
* | sunf77
* | sunf90
* | sunf95
*)
8869 lt_prog_compiler_wl
='-Qoption ld ';;
8871 lt_prog_compiler_wl
='-Wl,';;
8876 lt_prog_compiler_wl
='-Qoption ld '
8877 lt_prog_compiler_pic
='-PIC'
8878 lt_prog_compiler_static
='-Bstatic'
8881 sysv4 | sysv4.2uw2
* | sysv4.3
*)
8882 lt_prog_compiler_wl
='-Wl,'
8883 lt_prog_compiler_pic
='-KPIC'
8884 lt_prog_compiler_static
='-Bstatic'
8888 if test -d /usr
/nec
; then
8889 lt_prog_compiler_pic
='-Kconform_pic'
8890 lt_prog_compiler_static
='-Bstatic'
8894 sysv5
* | unixware
* | sco3.2v5
* | sco5v6
* | OpenUNIX
*)
8895 lt_prog_compiler_wl
='-Wl,'
8896 lt_prog_compiler_pic
='-KPIC'
8897 lt_prog_compiler_static
='-Bstatic'
8901 lt_prog_compiler_wl
='-Wl,'
8902 lt_prog_compiler_can_build_shared
=no
8906 lt_prog_compiler_pic
='-pic'
8907 lt_prog_compiler_static
='-Bstatic'
8911 lt_prog_compiler_can_build_shared
=no
8917 # For platforms that do not support PIC, -DPIC is meaningless:
8919 lt_prog_compiler_pic
=
8922 lt_prog_compiler_pic
="$lt_prog_compiler_pic -DPIC"
8926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8927 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8928 if ${lt_cv_prog_compiler_pic+:} false
; then :
8929 $as_echo_n "(cached) " >&6
8931 lt_cv_prog_compiler_pic
=$lt_prog_compiler_pic
8933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8934 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
8935 lt_prog_compiler_pic
=$lt_cv_prog_compiler_pic
8938 # Check to make sure the PIC flag actually works.
8940 if test -n "$lt_prog_compiler_pic"; then
8941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8942 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8943 if ${lt_cv_prog_compiler_pic_works+:} false
; then :
8944 $as_echo_n "(cached) " >&6
8946 lt_cv_prog_compiler_pic_works
=no
8947 ac_outfile
=conftest.
$ac_objext
8948 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
8949 lt_compiler_flag
="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
8950 # Insert the option either (1) after the last *FLAGS variable, or
8951 # (2) before a word containing "conftest.", or (3) at the end.
8952 # Note that $ac_compile itself does not contain backslashes and begins
8953 # with a dollar sign (not a hyphen), so the echo should work correctly.
8954 # The option is referenced via a variable to avoid confusing sed.
8955 lt_compile
=`echo "$ac_compile" | $SED \
8956 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8957 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8958 -e 's:$: $lt_compiler_flag:'`
8959 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8960 (eval "$lt_compile" 2>conftest.err
)
8962 cat conftest.err
>&5
8963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8964 if (exit $ac_status) && test -s "$ac_outfile"; then
8965 # The compiler can only warn and ignore the option if not recognized
8966 # So say no if there are warnings other than the usual output.
8967 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' >conftest.exp
8968 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
8969 if test ! -s conftest.er2 ||
diff conftest.exp conftest.er2
>/dev
/null
; then
8970 lt_cv_prog_compiler_pic_works
=yes
8976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8977 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8979 if test yes = "$lt_cv_prog_compiler_pic_works"; then
8980 case $lt_prog_compiler_pic in
8982 *) lt_prog_compiler_pic
=" $lt_prog_compiler_pic" ;;
8985 lt_prog_compiler_pic
=
8986 lt_prog_compiler_can_build_shared
=no
9002 # Check to make sure the static flag actually works.
9004 wl
=$lt_prog_compiler_wl eval lt_tmp_static_flag
=\"$lt_prog_compiler_static\"
9005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9006 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9007 if ${lt_cv_prog_compiler_static_works+:} false
; then :
9008 $as_echo_n "(cached) " >&6
9010 lt_cv_prog_compiler_static_works
=no
9011 save_LDFLAGS
=$LDFLAGS
9012 LDFLAGS
="$LDFLAGS $lt_tmp_static_flag"
9013 echo "$lt_simple_link_test_code" > conftest.
$ac_ext
9014 if (eval $ac_link 2>conftest.err
) && test -s conftest
$ac_exeext; then
9015 # The linker can only warn and ignore the option if not recognized
9016 # So say no if there are warnings
9017 if test -s conftest.err
; then
9018 # Append any errors to the config.log.
9019 cat conftest.err
1>&5
9020 $ECHO "$_lt_linker_boilerplate" |
$SED '/^$/d' > conftest.exp
9021 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
9022 if diff conftest.exp conftest.er2
>/dev
/null
; then
9023 lt_cv_prog_compiler_static_works
=yes
9026 lt_cv_prog_compiler_static_works
=yes
9030 LDFLAGS
=$save_LDFLAGS
9033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9034 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9036 if test yes = "$lt_cv_prog_compiler_static_works"; then
9039 lt_prog_compiler_static
=
9048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9049 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9050 if ${lt_cv_prog_compiler_c_o+:} false
; then :
9051 $as_echo_n "(cached) " >&6
9053 lt_cv_prog_compiler_c_o
=no
9054 $RM -r conftest
2>/dev
/null
9058 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
9060 lt_compiler_flag
="-o out/conftest2.$ac_objext"
9061 # Insert the option either (1) after the last *FLAGS variable, or
9062 # (2) before a word containing "conftest.", or (3) at the end.
9063 # Note that $ac_compile itself does not contain backslashes and begins
9064 # with a dollar sign (not a hyphen), so the echo should work correctly.
9065 lt_compile
=`echo "$ac_compile" | $SED \
9066 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9067 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9068 -e 's:$: $lt_compiler_flag:'`
9069 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9070 (eval "$lt_compile" 2>out
/conftest.err
)
9072 cat out
/conftest.err
>&5
9073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9074 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
9076 # The compiler can only warn and ignore the option if not recognized
9077 # So say no if there are warnings
9078 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' > out
/conftest.exp
9079 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
9080 if test ! -s out
/conftest.er2 ||
diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
9081 lt_cv_prog_compiler_c_o
=yes
9086 # SGI C++ compiler will create directory out/ii_files/ for
9087 # template instantiation
9088 test -d out
/ii_files
&& $RM out
/ii_files
/* && rmdir out
/ii_files
9089 $RM out
/* && rmdir out
9095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9096 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9104 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9105 if ${lt_cv_prog_compiler_c_o+:} false
; then :
9106 $as_echo_n "(cached) " >&6
9108 lt_cv_prog_compiler_c_o
=no
9109 $RM -r conftest
2>/dev
/null
9113 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
9115 lt_compiler_flag
="-o out/conftest2.$ac_objext"
9116 # Insert the option either (1) after the last *FLAGS variable, or
9117 # (2) before a word containing "conftest.", or (3) at the end.
9118 # Note that $ac_compile itself does not contain backslashes and begins
9119 # with a dollar sign (not a hyphen), so the echo should work correctly.
9120 lt_compile
=`echo "$ac_compile" | $SED \
9121 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9122 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9123 -e 's:$: $lt_compiler_flag:'`
9124 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9125 (eval "$lt_compile" 2>out
/conftest.err
)
9127 cat out
/conftest.err
>&5
9128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9129 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
9131 # The compiler can only warn and ignore the option if not recognized
9132 # So say no if there are warnings
9133 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' > out
/conftest.exp
9134 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
9135 if test ! -s out
/conftest.er2 ||
diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
9136 lt_cv_prog_compiler_c_o
=yes
9141 # SGI C++ compiler will create directory out/ii_files/ for
9142 # template instantiation
9143 test -d out
/ii_files
&& $RM out
/ii_files
/* && rmdir out
/ii_files
9144 $RM out
/* && rmdir out
9150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9151 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9156 hard_links
=nottested
9157 if test no
= "$lt_cv_prog_compiler_c_o" && test no
!= "$need_locks"; then
9158 # do not overwrite the value of need_locks provided by the user
9159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9160 $as_echo_n "checking if we can lock with hard links... " >&6; }
9163 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
9165 ln conftest.a conftest.b
2>&5 || hard_links
=no
9166 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
9167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9168 $as_echo "$hard_links" >&6; }
9169 if test no
= "$hard_links"; then
9170 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
9171 $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
9183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9184 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9187 allow_undefined_flag
=
9188 always_export_symbols
=no
9190 archive_expsym_cmds
=
9191 compiler_needs_object
=no
9192 enable_shared_with_static_runtimes
=no
9193 export_dynamic_flag_spec
=
9194 export_symbols_cmds
='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9195 hardcode_automatic
=no
9197 hardcode_direct_absolute
=no
9198 hardcode_libdir_flag_spec
=
9199 hardcode_libdir_separator
=
9201 hardcode_shlibpath_var
=unsupported
9203 link_all_deplibs
=unknown
9206 old_archive_from_new_cmds
=
9207 old_archive_from_expsyms_cmds
=
9208 thread_safe_flag_spec
=
9209 whole_archive_flag_spec
=
9210 # include_expsyms should be a list of space-separated symbols to be *always*
9211 # included in the symbol list
9213 # exclude_expsyms can be an extended regexp of symbols to exclude
9214 # it will be wrapped by ' (' and ')$', so one must not match beginning or
9215 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
9216 # as well as any symbol that contains 'd'.
9217 exclude_expsyms
='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9218 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9219 # platforms (ab)use it in PIC code, but their linkers get confused if
9220 # the symbol is explicitly referenced. Since portable code cannot
9221 # rely on this symbol name, it's probably fine to never include it in
9222 # preloaded symbol tables.
9223 # Exclude shared library initialization/finalization symbols.
9224 extract_expsyms_cmds
=
9227 cygwin
* | mingw
* | pw32
* | cegcc
*)
9228 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9229 # When not using gcc, we currently assume that we are using
9230 # Microsoft Visual C++.
9231 if test yes != "$GCC"; then
9236 # we just hope/assume this is gcc and not c89 (= MSVC++)
9242 linux
* | k
*bsd
*-gnu | gnu
*)
9249 # On some targets, GNU ld is compatible enough with the native linker
9250 # that we're better off using the native interface for both.
9251 lt_use_gnu_ld_interface
=no
9252 if test yes = "$with_gnu_ld"; then
9255 # The AIX port of GNU ld has always aspired to compatibility
9256 # with the native linker. However, as the warning in the GNU ld
9257 # block says, versions before 2.19.5* couldn't really create working
9258 # shared libraries, regardless of the interface used.
9259 case `$LD -v 2>&1` in
9260 *\ \
(GNU\ Binutils\
)\
2.19.5*) ;;
9261 *\ \
(GNU\ Binutils\
)\
2.
[2-9]*) ;;
9262 *\ \
(GNU\ Binutils\
)\
[3-9]*) ;;
9264 lt_use_gnu_ld_interface
=yes
9269 lt_use_gnu_ld_interface
=yes
9274 if test yes = "$lt_use_gnu_ld_interface"; then
9275 # If archive_cmds runs LD, not CC, wlarc should be empty
9278 # Set some defaults for GNU ld with shared library support. These
9279 # are reset later if shared libraries are not supported. Putting them
9280 # here allows them to be overridden if necessary.
9281 runpath_var
=LD_RUN_PATH
9282 hardcode_libdir_flag_spec
='$wl-rpath $wl$libdir'
9283 export_dynamic_flag_spec
='$wl--export-dynamic'
9284 # ancient GNU ld didn't support --whole-archive et. al.
9285 if $LD --help 2>&1 |
$GREP 'no-whole-archive' > /dev
/null
; then
9286 whole_archive_flag_spec
=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
9288 whole_archive_flag_spec
=
9290 supports_anon_versioning
=no
9291 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
9292 *GNU\ gold
*) supports_anon_versioning
=yes ;;
9293 *\
[01].
* |
*\
2.
[0-9].
* |
*\
2.10.
*) ;; # catch versions < 2.11
9294 *\
2.11.93.0.2\
*) supports_anon_versioning
=yes ;; # RH7.3 ...
9295 *\
2.11.92.0.12\
*) supports_anon_versioning
=yes ;; # Mandrake 8.2 ...
9296 *\
2.11.
*) ;; # other 2.11 versions
9297 *) supports_anon_versioning
=yes ;;
9300 # See if GNU ld supports shared libraries.
9303 # On AIX/PPC, the GNU linker is very broken
9304 if test ia64
!= "$host_cpu"; then
9308 *** Warning: the GNU linker, at least up to release 2.19, is reported
9309 *** to be unable to reliably create shared libraries on AIX.
9310 *** Therefore, libtool is disabling shared libraries support. If you
9311 *** really care for shared libraries, you may want to install binutils
9312 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9313 *** You will then need to restart the configuration process.
9322 # see comment about AmigaOS4 .so support
9323 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9324 archive_expsym_cmds
=''
9327 archive_cmds
='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
9328 hardcode_libdir_flag_spec
='-L$libdir'
9329 hardcode_minus_L
=yes
9335 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
9336 allow_undefined_flag
=unsupported
9337 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9338 # support --undefined. This deserves some investigation. FIXME
9339 archive_cmds
='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9345 cygwin
* | mingw
* | pw32
* | cegcc
*)
9346 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9347 # as there is no search path for DLLs.
9348 hardcode_libdir_flag_spec
='-L$libdir'
9349 export_dynamic_flag_spec
='$wl--export-all-symbols'
9350 allow_undefined_flag
=unsupported
9351 always_export_symbols
=no
9352 enable_shared_with_static_runtimes
=yes
9353 export_symbols_cmds
='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
9354 exclude_expsyms
='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9356 if $LD --help 2>&1 |
$GREP 'auto-import' > /dev
/null
; then
9357 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9358 # If the export-symbols file already is a .def file, use it as
9359 # is; otherwise, prepend EXPORTS...
9360 archive_expsym_cmds
='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
9361 cp $export_symbols $output_objdir/$soname.def;
9363 echo EXPORTS > $output_objdir/$soname.def;
9364 cat $export_symbols >> $output_objdir/$soname.def;
9366 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9373 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9374 link_all_deplibs
=yes
9378 hardcode_libdir_flag_spec
='-L$libdir'
9379 hardcode_minus_L
=yes
9380 allow_undefined_flag
=unsupported
9382 archive_cmds
='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9383 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9384 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9385 $ECHO EXPORTS >> $output_objdir/$libname.def~
9386 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
9387 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9388 emximp -o $lib $output_objdir/$libname.def'
9389 archive_expsym_cmds
='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9390 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9391 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9392 $ECHO EXPORTS >> $output_objdir/$libname.def~
9394 if test EXPORTS = "`$SED 1q $export_symbols`"; then
9395 prefix_cmds="$prefix_cmds -e 1d";
9397 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
9398 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
9399 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9400 emximp -o $lib $output_objdir/$libname.def'
9401 old_archive_From_new_cmds
='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
9402 enable_shared_with_static_runtimes
=yes
9407 hardcode_shlibpath_var
=no
9408 hardcode_libdir_flag_spec
='$wl-rpath,$libdir'
9409 export_dynamic_flag_spec
='$wl-E'
9410 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9411 # Instead, shared libraries are loaded at an image base (0x10000000 by
9412 # default) and relocated if they conflict, which is a slow very memory
9413 # consuming and fragmenting process. To avoid this, we pick a random,
9414 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9415 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9416 archive_cmds
='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9417 archive_expsym_cmds
='sed "s|^|_|" $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--retain-symbols-file,$output_objdir/$soname.expsym $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9420 gnu
* | linux
* | tpf
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
9422 if test linux-dietlibc
= "$host_os"; then
9423 case $cc_basename in
9424 diet\
*) tmp_diet
=yes;; # linux-dietlibc with static linking (!diet-dyn)
9427 if $LD --help 2>&1 |
$EGREP ': supported targets:.* elf' > /dev
/null \
9428 && test no
= "$tmp_diet"
9430 tmp_addflag
=' $pic_flag'
9431 tmp_sharedflag
='-shared'
9432 case $cc_basename,$host_cpu in
9433 pgcc
*) # Portland Group C compiler
9434 whole_archive_flag_spec
='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
9435 tmp_addflag
=' $pic_flag'
9437 pgf77
* | pgf90
* | pgf95
* | pgfortran
*)
9438 # Portland Group f77 and f90 compilers
9439 whole_archive_flag_spec
='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
9440 tmp_addflag
=' $pic_flag -Mnomain' ;;
9441 ecc
*,ia64
* | icc
*,ia64
*) # Intel C compiler on ia64
9442 tmp_addflag
=' -i_dynamic' ;;
9443 efc
*,ia64
* | ifort
*,ia64
*) # Intel Fortran compiler on ia64
9444 tmp_addflag
=' -i_dynamic -nofor_main' ;;
9445 ifc
* | ifort
*) # Intel Fortran compiler
9446 tmp_addflag
=' -nofor_main' ;;
9447 lf95
*) # Lahey Fortran 8.1
9448 whole_archive_flag_spec
=
9449 tmp_sharedflag
='--shared' ;;
9450 nagfor
*) # NAGFOR 5.3
9451 tmp_sharedflag
='-Wl,-shared' ;;
9452 xl
[cC
]* | bgxl
[cC
]* | mpixl
[cC
]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9453 tmp_sharedflag
='-qmkshrobj'
9455 nvcc
*) # Cuda Compiler Driver 2.2
9456 whole_archive_flag_spec
='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
9457 compiler_needs_object
=yes
9460 case `$CC -V 2>&1 | sed 5q` in
9461 *Sun\ C
*) # Sun C 5.9
9462 whole_archive_flag_spec
='$wl--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
9463 compiler_needs_object
=yes
9464 tmp_sharedflag
='-G' ;;
9465 *Sun\ F
*) # Sun Fortran 8.3
9466 tmp_sharedflag
='-G' ;;
9468 archive_cmds
='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9470 if test yes = "$supports_anon_versioning"; then
9471 archive_expsym_cmds
='echo "{ global:" > $output_objdir/$libname.ver~
9472 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9473 echo "local: *; };" >> $output_objdir/$libname.ver~
9474 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
9477 case $cc_basename in
9479 export_dynamic_flag_spec
='-rdynamic'
9481 xlf
* | bgf
* | bgxlf
* | mpixlf
*)
9482 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9483 whole_archive_flag_spec
='--whole-archive$convenience --no-whole-archive'
9484 hardcode_libdir_flag_spec
='$wl-rpath $wl$libdir'
9485 archive_cmds
='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9486 if test yes = "$supports_anon_versioning"; then
9487 archive_expsym_cmds
='echo "{ global:" > $output_objdir/$libname.ver~
9488 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9489 echo "local: *; };" >> $output_objdir/$libname.ver~
9490 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9499 netbsd
* | netbsdelf
*-gnu)
9500 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
9501 archive_cmds
='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9504 archive_cmds
='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9505 archive_expsym_cmds
='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9510 if $LD -v 2>&1 |
$GREP 'BFD 2\.8' > /dev
/null
; then
9514 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9515 *** create shared libraries on Solaris systems. Therefore, libtool
9516 *** is disabling shared libraries support. We urge you to upgrade GNU
9517 *** binutils to release 2.9.1 or newer. Another option is to modify
9518 *** your PATH or compiler configuration so that the native linker is
9519 *** used, and then restart.
9522 elif $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
9523 archive_cmds
='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9524 archive_expsym_cmds
='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9530 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
*)
9531 case `$LD -v 2>&1` in
9532 *\
[01].
* |
*\
2.
[0-9].
* |
*\
2.1[0-5].
*)
9536 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
9537 *** reliably create shared libraries on SCO systems. Therefore, libtool
9538 *** is disabling shared libraries support. We urge you to upgrade GNU
9539 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9540 *** your PATH or compiler configuration so that the native linker is
9541 *** used, and then restart.
9546 # For security reasons, it is highly recommended that you always
9547 # use absolute paths for naming shared libraries, and exclude the
9548 # DT_RUNPATH tag from executables and libraries. But doing so
9549 # requires that you compile everything twice, which is a pain.
9550 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
9551 hardcode_libdir_flag_spec
='$wl-rpath $wl$libdir'
9552 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9553 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9562 archive_cmds
='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9565 hardcode_shlibpath_var
=no
9569 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
9570 archive_cmds
='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9571 archive_expsym_cmds
='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9578 if test no
= "$ld_shlibs"; then
9580 hardcode_libdir_flag_spec
=
9581 export_dynamic_flag_spec
=
9582 whole_archive_flag_spec
=
9585 # PORTME fill in a description of your system's linker (not GNU ld)
9588 allow_undefined_flag
=unsupported
9589 always_export_symbols
=yes
9590 archive_expsym_cmds
='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
9591 # Note: this linker hardcodes the directories in LIBPATH if there
9592 # are no directories specified by -L.
9593 hardcode_minus_L
=yes
9594 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
9595 # Neither direct hardcoding nor static linking is supported with a
9597 hardcode_direct
=unsupported
9602 if test ia64
= "$host_cpu"; then
9603 # On IA64, the linker does run time linking by default, so we don't
9604 # have to do anything special.
9605 aix_use_runtimelinking
=no
9606 exp_sym_flag
='-Bexport'
9609 # If we're using GNU nm, then we don't want the "-C" option.
9610 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
9611 # Without the "-l" option, or with the "-B" option, AIX nm treats
9612 # weak defined symbols like other global defined symbols, whereas
9613 # GNU nm marks them as "W".
9614 # While the 'weak' keyword is ignored in the Export File, we need
9615 # it in the Import File for the 'aix-soname' feature, so we have
9616 # to replace the "-B" option with "-P" for AIX nm.
9617 if $NM -V 2>&1 |
$GREP 'GNU' > /dev
/null
; then
9618 export_symbols_cmds
='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
9620 export_symbols_cmds
='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
9622 aix_use_runtimelinking
=no
9624 # Test if we are trying to use run time linking or normal
9625 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9626 # have runtime linking enabled, and use it for executables.
9627 # For shared libraries, we enable/disable runtime linking
9628 # depending on the kind of the shared library created -
9629 # when "with_aix_soname,aix_use_runtimelinking" is:
9630 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
9631 # "aix,yes" lib.so shared, rtl:yes, for executables
9632 # lib.a static archive
9633 # "both,no" lib.so.V(shr.o) shared, rtl:yes
9634 # lib.a(lib.so.V) shared, rtl:no, for executables
9635 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
9636 # lib.a(lib.so.V) shared, rtl:no
9637 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
9638 # lib.a static archive
9639 case $host_os in aix4.
[23]|aix4.
[23].
*|aix
[5-9]*)
9640 for ld_flag
in $LDFLAGS; do
9641 if (test x-brtl
= "x$ld_flag" ||
test x-Wl
,-brtl = "x$ld_flag"); then
9642 aix_use_runtimelinking
=yes
9646 if test svr4
,no
= "$with_aix_soname,$aix_use_runtimelinking"; then
9647 # With aix-soname=svr4, we create the lib.so.V shared archives only,
9648 # so we don't have lib.a shared libs to link our executables.
9649 # We have to force runtime linking in this case.
9650 aix_use_runtimelinking
=yes
9651 LDFLAGS
="$LDFLAGS -Wl,-brtl"
9656 exp_sym_flag
='-bexport'
9657 no_entry_flag
='-bnoentry'
9660 # When large executables or shared objects are built, AIX ld can
9661 # have problems creating the table of contents. If linking a library
9662 # or program results in "error TOC overflow" add -mminimal-toc to
9663 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9664 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9668 hardcode_direct_absolute
=yes
9669 hardcode_libdir_separator
=':'
9670 link_all_deplibs
=yes
9671 file_list_spec
='$wl-f,'
9672 case $with_aix_soname,$aix_use_runtimelinking in
9673 aix
,*) ;; # traditional, no import file
9674 svr4
,* |
*,yes) # use import file
9675 # The Import File defines what to hardcode.
9677 hardcode_direct_absolute
=no
9681 if test yes = "$GCC"; then
9682 case $host_os in aix4.
[012]|aix4.
[012].
*)
9683 # We only want to do this on AIX 4.2 and lower, the check
9684 # below for broken collect2 doesn't work under 4.3+
9685 collect2name
=`$CC -print-prog-name=collect2`
9686 if test -f "$collect2name" &&
9687 strings "$collect2name" |
$GREP resolve_lib_name
>/dev
/null
9689 # We have reworked collect2
9692 # We have old collect2
9693 hardcode_direct
=unsupported
9694 # It fails to find uninstalled libraries when the uninstalled
9695 # path is not listed in the libpath. Setting hardcode_minus_L
9696 # to unsupported forces relinking
9697 hardcode_minus_L
=yes
9698 hardcode_libdir_flag_spec
='-L$libdir'
9699 hardcode_libdir_separator
=
9703 shared_flag
='-shared'
9704 if test yes = "$aix_use_runtimelinking"; then
9705 shared_flag
="$shared_flag "'$wl-G'
9707 # Need to ensure runtime linking is disabled for the traditional
9708 # shared library, or the linker may eventually find shared libraries
9709 # /with/ Import File - we do not want to mix them.
9710 shared_flag_aix
='-shared'
9711 shared_flag_svr4
='-shared $wl-G'
9714 if test ia64
= "$host_cpu"; then
9715 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9716 # chokes on -Wl,-G. The following line is correct:
9719 if test yes = "$aix_use_runtimelinking"; then
9722 shared_flag
='$wl-bM:SRE'
9724 shared_flag_aix
='$wl-bM:SRE'
9725 shared_flag_svr4
='$wl-G'
9729 export_dynamic_flag_spec
='$wl-bexpall'
9730 # It seems that -bexpall does not export symbols beginning with
9731 # underscore (_), so it is better to generate a list of symbols to export.
9732 always_export_symbols
=yes
9733 if test aix
,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
9734 # Warning - without using the other runtime loading flags (-brtl),
9735 # -berok will link without error, but may produce a broken library.
9736 allow_undefined_flag
='-berok'
9737 # Determine the default libpath from the value encoded in an
9739 if test set = "${lt_cv_aix_libpath+set}"; then
9740 aix_libpath
=$lt_cv_aix_libpath
9742 if ${lt_cv_aix_libpath_+:} false
; then :
9743 $as_echo_n "(cached) " >&6
9745 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9746 /* end confdefs.h. */
9756 if ac_fn_c_try_link
"$LINENO"; then :
9758 lt_aix_libpath_sed
='
9759 /Import File Strings/,/^$/ {
9761 s/^0 *\([^ ]*\) *$/\1/
9765 lt_cv_aix_libpath_
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9766 # Check for a 64-bit object if we didn't find anything.
9767 if test -z "$lt_cv_aix_libpath_"; then
9768 lt_cv_aix_libpath_
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9771 rm -f core conftest.err conftest.
$ac_objext \
9772 conftest
$ac_exeext conftest.
$ac_ext
9773 if test -z "$lt_cv_aix_libpath_"; then
9774 lt_cv_aix_libpath_
=/usr
/lib
:/lib
9779 aix_libpath
=$lt_cv_aix_libpath_
9782 hardcode_libdir_flag_spec
='$wl-blibpath:$libdir:'"$aix_libpath"
9783 archive_expsym_cmds
='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\
$export_symbols' '$shared_flag
9785 if test ia64
= "$host_cpu"; then
9786 hardcode_libdir_flag_spec
='$wl-R $libdir:/usr/lib:/lib'
9787 allow_undefined_flag
="-z nodefs"
9788 archive_expsym_cmds
="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\$wl$no_entry_flag"' $compiler_flags $wl$allow_undefined_flag '"\$wl$exp_sym_flag:\$export_symbols"
9790 # Determine the default libpath from the value encoded in an
9792 if test set = "${lt_cv_aix_libpath+set}"; then
9793 aix_libpath
=$lt_cv_aix_libpath
9795 if ${lt_cv_aix_libpath_+:} false
; then :
9796 $as_echo_n "(cached) " >&6
9798 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9799 /* end confdefs.h. */
9809 if ac_fn_c_try_link
"$LINENO"; then :
9811 lt_aix_libpath_sed
='
9812 /Import File Strings/,/^$/ {
9814 s/^0 *\([^ ]*\) *$/\1/
9818 lt_cv_aix_libpath_
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9819 # Check for a 64-bit object if we didn't find anything.
9820 if test -z "$lt_cv_aix_libpath_"; then
9821 lt_cv_aix_libpath_
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9824 rm -f core conftest.err conftest.
$ac_objext \
9825 conftest
$ac_exeext conftest.
$ac_ext
9826 if test -z "$lt_cv_aix_libpath_"; then
9827 lt_cv_aix_libpath_
=/usr
/lib
:/lib
9832 aix_libpath
=$lt_cv_aix_libpath_
9835 hardcode_libdir_flag_spec
='$wl-blibpath:$libdir:'"$aix_libpath"
9836 # Warning - without using the other run time loading flags,
9837 # -berok will link without error, but may produce a broken library.
9838 no_undefined_flag
=' $wl-bernotok'
9839 allow_undefined_flag
=' $wl-berok'
9840 if test yes = "$with_gnu_ld"; then
9841 # We only use this code for GNU lds that support --whole-archive.
9842 whole_archive_flag_spec
='$wl--whole-archive$convenience $wl--no-whole-archive'
9844 # Exported symbols can be pulled into shared objects from archives
9845 whole_archive_flag_spec
='$convenience'
9847 archive_cmds_need_lc
=yes
9848 archive_expsym_cmds
='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
9849 # -brtl affects multiple linker settings, -berok does not and is overridden later
9850 compiler_flags_filtered
='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
9851 if test svr4
!= "$with_aix_soname"; then
9852 # This is similar to how AIX traditionally builds its shared libraries.
9853 archive_expsym_cmds
="$archive_expsym_cmds"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
9855 if test aix
!= "$with_aix_soname"; then
9856 archive_expsym_cmds
="$archive_expsym_cmds"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
9858 # used by -dlpreopen to get the symbols
9859 archive_expsym_cmds
="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
9861 archive_expsym_cmds
="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
9869 # see comment about AmigaOS4 .so support
9870 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9871 archive_expsym_cmds
=''
9874 archive_cmds
='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
9875 hardcode_libdir_flag_spec
='-L$libdir'
9876 hardcode_minus_L
=yes
9882 export_dynamic_flag_spec
=-rdynamic
9885 cygwin
* | mingw
* | pw32
* | cegcc
*)
9886 # When not using gcc, we currently assume that we are using
9887 # Microsoft Visual C++.
9888 # hardcode_libdir_flag_spec is actually meaningless, as there is
9889 # no search path for DLLs.
9890 case $cc_basename in
9893 hardcode_libdir_flag_spec
=' '
9894 allow_undefined_flag
=unsupported
9895 always_export_symbols
=yes
9897 # Tell ltmain to make .lib files, not .a files.
9899 # Tell ltmain to make .dll files, not .so files.
9901 # FIXME: Setting linknames here is a bad hack.
9902 archive_cmds
='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
9903 archive_expsym_cmds
='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
9904 cp "$export_symbols" "$output_objdir/$soname.def";
9905 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
9907 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
9909 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9911 # The linker will not automatically build a static lib if we build a DLL.
9912 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9913 enable_shared_with_static_runtimes
=yes
9914 exclude_expsyms
='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9915 export_symbols_cmds
='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9917 old_postinstall_cmds
='chmod 644 $oldlib'
9918 postlink_cmds
='lt_outputfile="@OUTPUT@"~
9919 lt_tool_outputfile="@TOOL_OUTPUT@"~
9920 case $lt_outputfile in
9923 lt_outputfile=$lt_outputfile.exe
9924 lt_tool_outputfile=$lt_tool_outputfile.exe
9927 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
9928 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9929 $RM "$lt_outputfile.manifest";
9933 # Assume MSVC wrapper
9934 hardcode_libdir_flag_spec
=' '
9935 allow_undefined_flag
=unsupported
9936 # Tell ltmain to make .lib files, not .a files.
9938 # Tell ltmain to make .dll files, not .so files.
9940 # FIXME: Setting linknames here is a bad hack.
9941 archive_cmds
='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9942 # The linker will automatically build a .lib file if we build a DLL.
9943 old_archive_from_new_cmds
='true'
9944 # FIXME: Should let the user specify the lib program.
9945 old_archive_cmds
='lib -OUT:$oldlib$oldobjs$old_deplibs'
9946 enable_shared_with_static_runtimes
=yes
9951 darwin
* | rhapsody
*)
9954 archive_cmds_need_lc
=no
9956 hardcode_automatic
=yes
9957 hardcode_shlibpath_var
=unsupported
9958 if test yes = "$lt_cv_ld_force_load"; then
9959 whole_archive_flag_spec
='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience $wl-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
9962 whole_archive_flag_spec
=''
9964 link_all_deplibs
=yes
9965 allow_undefined_flag
=$_lt_dar_allow_undefined
9966 case $cc_basename in
9967 ifort
*|nagfor
*) _lt_dar_can_shared
=yes ;;
9968 *) _lt_dar_can_shared
=$GCC ;;
9970 if test yes = "$_lt_dar_can_shared"; then
9971 output_verbose_link_cmd
=func_echo_all
9972 archive_cmds
="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
9973 module_cmds
="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
9974 archive_expsym_cmds
="sed 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dar_export_syms$_lt_dsymutil"
9975 module_expsym_cmds
="sed -e 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dar_export_syms$_lt_dsymutil"
9984 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9985 hardcode_libdir_flag_spec
='-L$libdir'
9986 hardcode_shlibpath_var
=no
9989 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9990 # support. Future versions do this automatically, but an explicit c++rt0.o
9991 # does not break anything, and helps significantly (at the cost of a little
9994 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9995 hardcode_libdir_flag_spec
='-R$libdir'
9997 hardcode_shlibpath_var
=no
10000 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10002 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10003 hardcode_direct
=yes
10004 hardcode_minus_L
=yes
10005 hardcode_shlibpath_var
=no
10008 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10009 freebsd
* | dragonfly
*)
10010 archive_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10011 hardcode_libdir_flag_spec
='-R$libdir'
10012 hardcode_direct
=yes
10013 hardcode_shlibpath_var
=no
10017 if test yes = "$GCC"; then
10018 archive_cmds
='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
10020 archive_cmds
='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
10022 hardcode_libdir_flag_spec
='$wl+b $wl$libdir'
10023 hardcode_libdir_separator
=:
10024 hardcode_direct
=yes
10026 # hardcode_minus_L: Not really in the search PATH,
10027 # but as the default location of the library.
10028 hardcode_minus_L
=yes
10029 export_dynamic_flag_spec
='$wl-E'
10033 if test yes,no
= "$GCC,$with_gnu_ld"; then
10034 archive_cmds
='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10036 archive_cmds
='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10038 if test no
= "$with_gnu_ld"; then
10039 hardcode_libdir_flag_spec
='$wl+b $wl$libdir'
10040 hardcode_libdir_separator
=:
10041 hardcode_direct
=yes
10042 hardcode_direct_absolute
=yes
10043 export_dynamic_flag_spec
='$wl-E'
10044 # hardcode_minus_L: Not really in the search PATH,
10045 # but as the default location of the library.
10046 hardcode_minus_L
=yes
10051 if test yes,no
= "$GCC,$with_gnu_ld"; then
10054 archive_cmds
='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10057 archive_cmds
='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10060 archive_cmds
='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10066 archive_cmds
='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10069 archive_cmds
='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10073 # Older versions of the 11.00 compiler do not understand -b yet
10074 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10076 $as_echo_n "checking if $CC understands -b... " >&6; }
10077 if ${lt_cv_prog_compiler__b+:} false
; then :
10078 $as_echo_n "(cached) " >&6
10080 lt_cv_prog_compiler__b
=no
10081 save_LDFLAGS
=$LDFLAGS
10082 LDFLAGS
="$LDFLAGS -b"
10083 echo "$lt_simple_link_test_code" > conftest.
$ac_ext
10084 if (eval $ac_link 2>conftest.err
) && test -s conftest
$ac_exeext; then
10085 # The linker can only warn and ignore the option if not recognized
10086 # So say no if there are warnings
10087 if test -s conftest.err
; then
10088 # Append any errors to the config.log.
10089 cat conftest.err
1>&5
10090 $ECHO "$_lt_linker_boilerplate" |
$SED '/^$/d' > conftest.exp
10091 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
10092 if diff conftest.exp conftest.er2
>/dev
/null
; then
10093 lt_cv_prog_compiler__b
=yes
10096 lt_cv_prog_compiler__b
=yes
10100 LDFLAGS
=$save_LDFLAGS
10103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10104 $as_echo "$lt_cv_prog_compiler__b" >&6; }
10106 if test yes = "$lt_cv_prog_compiler__b"; then
10107 archive_cmds
='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10109 archive_cmds
='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10115 if test no
= "$with_gnu_ld"; then
10116 hardcode_libdir_flag_spec
='$wl+b $wl$libdir'
10117 hardcode_libdir_separator
=:
10122 hardcode_shlibpath_var
=no
10125 hardcode_direct
=yes
10126 hardcode_direct_absolute
=yes
10127 export_dynamic_flag_spec
='$wl-E'
10129 # hardcode_minus_L: Not really in the search PATH,
10130 # but as the default location of the library.
10131 hardcode_minus_L
=yes
10137 irix5
* | irix6
* | nonstopux
*)
10138 if test yes = "$GCC"; then
10139 archive_cmds
='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
10140 # Try to use the -exported_symbol ld option, if it does not
10141 # work, assume that -exports_file does not work either and
10142 # implicitly export all symbols.
10143 # This should be the same for all languages, so no per-tag cache variable.
10144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10145 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10146 if ${lt_cv_irix_exported_symbol+:} false
; then :
10147 $as_echo_n "(cached) " >&6
10149 save_LDFLAGS
=$LDFLAGS
10150 LDFLAGS
="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
10151 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10152 /* end confdefs.h. */
10153 int foo (void) { return 0; }
10155 if ac_fn_c_try_link
"$LINENO"; then :
10156 lt_cv_irix_exported_symbol
=yes
10158 lt_cv_irix_exported_symbol
=no
10160 rm -f core conftest.err conftest.
$ac_objext \
10161 conftest
$ac_exeext conftest.
$ac_ext
10162 LDFLAGS
=$save_LDFLAGS
10164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10165 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
10166 if test yes = "$lt_cv_irix_exported_symbol"; then
10167 archive_expsym_cmds
='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations $wl-exports_file $wl$export_symbols -o $lib'
10169 link_all_deplibs
=no
10171 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
10172 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -exports_file $export_symbols -o $lib'
10174 archive_cmds_need_lc
='no'
10175 hardcode_libdir_flag_spec
='$wl-rpath $wl$libdir'
10176 hardcode_libdir_separator
=:
10178 link_all_deplibs
=yes
10182 case $cc_basename in
10184 # Fabrice Bellard et al's Tiny C Compiler
10186 archive_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10191 netbsd
* | netbsdelf
*-gnu)
10192 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
10193 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10195 archive_cmds
='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10197 hardcode_libdir_flag_spec
='-R$libdir'
10198 hardcode_direct
=yes
10199 hardcode_shlibpath_var
=no
10203 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10204 hardcode_direct
=yes
10205 hardcode_libdir_flag_spec
='$wl-rpath $wl$libdir'
10206 hardcode_libdir_separator
=:
10207 hardcode_shlibpath_var
=no
10213 openbsd
* | bitrig
*)
10214 if test -f /usr
/libexec
/ld.so
; then
10215 hardcode_direct
=yes
10216 hardcode_shlibpath_var
=no
10217 hardcode_direct_absolute
=yes
10218 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
10219 archive_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10220 archive_expsym_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
10221 hardcode_libdir_flag_spec
='$wl-rpath,$libdir'
10222 export_dynamic_flag_spec
='$wl-E'
10224 archive_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10225 hardcode_libdir_flag_spec
='$wl-rpath,$libdir'
10233 hardcode_libdir_flag_spec
='-L$libdir'
10234 hardcode_minus_L
=yes
10235 allow_undefined_flag
=unsupported
10237 archive_cmds
='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10238 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10239 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10240 $ECHO EXPORTS >> $output_objdir/$libname.def~
10241 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
10242 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10243 emximp -o $lib $output_objdir/$libname.def'
10244 archive_expsym_cmds
='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10245 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10246 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10247 $ECHO EXPORTS >> $output_objdir/$libname.def~
10248 prefix_cmds="$SED"~
10249 if test EXPORTS = "`$SED 1q $export_symbols`"; then
10250 prefix_cmds="$prefix_cmds -e 1d";
10252 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10253 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
10254 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10255 emximp -o $lib $output_objdir/$libname.def'
10256 old_archive_From_new_cmds
='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10257 enable_shared_with_static_runtimes
=yes
10261 if test yes = "$GCC"; then
10262 allow_undefined_flag
=' $wl-expect_unresolved $wl\*'
10263 archive_cmds
='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
10265 allow_undefined_flag
=' -expect_unresolved \*'
10266 archive_cmds
='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
10268 archive_cmds_need_lc
='no'
10269 hardcode_libdir_flag_spec
='$wl-rpath $wl$libdir'
10270 hardcode_libdir_separator
=:
10273 osf4
* | osf5
*) # as osf3* with the addition of -msym flag
10274 if test yes = "$GCC"; then
10275 allow_undefined_flag
=' $wl-expect_unresolved $wl\*'
10276 archive_cmds
='$CC -shared$allow_undefined_flag $pic_flag $libobjs $deplibs $compiler_flags $wl-msym $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
10277 hardcode_libdir_flag_spec
='$wl-rpath $wl$libdir'
10279 allow_undefined_flag
=' -expect_unresolved \*'
10280 archive_cmds
='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
10281 archive_expsym_cmds
='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
10282 $CC -shared$allow_undefined_flag $wl-input $wl$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib~$RM $lib.exp'
10284 # Both c and cxx compiler support -rpath directly
10285 hardcode_libdir_flag_spec
='-rpath $libdir'
10287 archive_cmds_need_lc
='no'
10288 hardcode_libdir_separator
=:
10292 no_undefined_flag
=' -z defs'
10293 if test yes = "$GCC"; then
10295 archive_cmds
='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10296 archive_expsym_cmds
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10297 $CC -shared $pic_flag $wl-z ${wl}text $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10299 case `$CC -V 2>&1` in
10302 archive_cmds
='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
10303 archive_expsym_cmds
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10304 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10308 archive_cmds
='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10309 archive_expsym_cmds
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10310 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10314 hardcode_libdir_flag_spec
='-R$libdir'
10315 hardcode_shlibpath_var
=no
10317 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
10319 # The compiler driver will combine and reorder linker options,
10320 # but understands '-z linker_flag'. GCC discards it without '$wl',
10321 # but is careful enough not to reorder.
10322 # Supported since Solaris 2.6 (maybe 2.5.1?)
10323 if test yes = "$GCC"; then
10324 whole_archive_flag_spec
='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
10326 whole_archive_flag_spec
='-z allextract$convenience -z defaultextract'
10330 link_all_deplibs
=yes
10334 if test sequent
= "$host_vendor"; then
10335 # Use $CC to link under sequent, because it throws in some extra .o
10336 # files that make .init and .fini sections work.
10337 archive_cmds
='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10339 archive_cmds
='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10341 hardcode_libdir_flag_spec
='-L$libdir'
10342 hardcode_direct
=yes
10343 hardcode_minus_L
=yes
10344 hardcode_shlibpath_var
=no
10348 case $host_vendor in
10350 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10351 hardcode_direct
=yes # is this really true???
10354 ## LD is ld it makes a PLAMLIB
10355 ## CC just makes a GrossModule.
10356 archive_cmds
='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10357 reload_cmds
='$CC -r -o $output$reload_objs'
10361 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10362 hardcode_direct
=no
#Motorola manual says yes, but my tests say they lie
10365 runpath_var
='LD_RUN_PATH'
10366 hardcode_shlibpath_var
=no
10370 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10371 hardcode_shlibpath_var
=no
10372 export_dynamic_flag_spec
='-Bexport'
10376 if test -d /usr
/nec
; then
10377 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10378 hardcode_shlibpath_var
=no
10379 runpath_var
=LD_RUN_PATH
10380 hardcode_runpath_var
=yes
10385 sysv4
*uw2
* | sysv5OpenUNIX
* | sysv5UnixWare7.
[01].
[10]* | unixware7
* | sco3.2v5.0.
[024]*)
10386 no_undefined_flag
='$wl-z,text'
10387 archive_cmds_need_lc
=no
10388 hardcode_shlibpath_var
=no
10389 runpath_var
='LD_RUN_PATH'
10391 if test yes = "$GCC"; then
10392 archive_cmds
='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10393 archive_expsym_cmds
='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10395 archive_cmds
='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10396 archive_expsym_cmds
='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10400 sysv5
* | sco3.2v5
* | sco5v6
*)
10401 # Note: We CANNOT use -z defs as we might desire, because we do not
10402 # link with -lc, and that would cause any symbols used from libc to
10403 # always be unresolved, which means just about no library would
10404 # ever link correctly. If we're not using GNU ld we use -z text
10405 # though, which does catch some bad symbols but isn't as heavy-handed
10407 no_undefined_flag
='$wl-z,text'
10408 allow_undefined_flag
='$wl-z,nodefs'
10409 archive_cmds_need_lc
=no
10410 hardcode_shlibpath_var
=no
10411 hardcode_libdir_flag_spec
='$wl-R,$libdir'
10412 hardcode_libdir_separator
=':'
10413 link_all_deplibs
=yes
10414 export_dynamic_flag_spec
='$wl-Bexport'
10415 runpath_var
='LD_RUN_PATH'
10417 if test yes = "$GCC"; then
10418 archive_cmds
='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10419 archive_expsym_cmds
='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10421 archive_cmds
='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10422 archive_expsym_cmds
='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10427 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10428 hardcode_libdir_flag_spec
='-L$libdir'
10429 hardcode_shlibpath_var
=no
10437 if test sni
= "$host_vendor"; then
10439 sysv4 | sysv4.2uw2
* | sysv4.3
* | sysv5
*)
10440 export_dynamic_flag_spec
='$wl-Blargedynsym'
10446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10447 $as_echo "$ld_shlibs" >&6; }
10448 test no
= "$ld_shlibs" && can_build_shared
=no
10450 with_gnu_ld
=$with_gnu_ld
10467 # Do we need to explicitly link libc?
10469 case "x$archive_cmds_need_lc" in
10471 # Assume -lc should be added
10472 archive_cmds_need_lc
=yes
10474 if test yes,yes = "$GCC,$enable_shared"; then
10475 case $archive_cmds in
10477 # FIXME: we may have to deal with multi-command sequences.
10480 # Test whether the compiler implicitly links with -lc since on some
10481 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10482 # to ld, don't add -lc before -lgcc.
10483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10484 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10485 if ${lt_cv_archive_cmds_need_lc+:} false
; then :
10486 $as_echo_n "(cached) " >&6
10489 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
10491 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10492 (eval $ac_compile) 2>&5
10494 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10495 test $ac_status = 0; } 2>conftest.err
; then
10498 libobjs
=conftest.
$ac_objext
10500 wl
=$lt_prog_compiler_wl
10501 pic_flag
=$lt_prog_compiler_pic
10507 lt_save_allow_undefined_flag
=$allow_undefined_flag
10508 allow_undefined_flag
=
10509 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10510 (eval $archive_cmds 2\
>\
&1 \|
$GREP \" -lc \" \
>/dev
/null
2\
>\
&1) 2>&5
10512 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10513 test $ac_status = 0; }
10515 lt_cv_archive_cmds_need_lc
=no
10517 lt_cv_archive_cmds_need_lc
=yes
10519 allow_undefined_flag
=$lt_save_allow_undefined_flag
10521 cat conftest.err
1>&5
10526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10527 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10528 archive_cmds_need_lc
=$lt_cv_archive_cmds_need_lc
10686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10687 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10689 if test yes = "$GCC"; then
10691 darwin
*) lt_awk_arg
='/^libraries:/,/LR/' ;;
10692 *) lt_awk_arg
='/^libraries:/' ;;
10695 mingw
* | cegcc
*) lt_sed_strip_eq
='s|=\([A-Za-z]:\)|\1|g' ;;
10696 *) lt_sed_strip_eq
='s|=/|/|g' ;;
10698 lt_search_path_spec
=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10699 case $lt_search_path_spec in
10701 # if the path contains ";" then we assume it to be the separator
10702 # otherwise default to the standard path separator (i.e. ":") - it is
10703 # assumed that no part of a normal pathname contains ";" but that should
10704 # okay in the real world where ";" in dirpaths is itself problematic.
10705 lt_search_path_spec
=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10708 lt_search_path_spec
=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10711 # Ok, now we have the path, separated by spaces, we can step through it
10712 # and add multilib dir if necessary...
10713 lt_tmp_lt_search_path_spec
=
10714 lt_multi_os_dir
=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10715 # ...but if some path component already ends with the multilib dir we assume
10716 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
10717 case "$lt_multi_os_dir; $lt_search_path_spec " in
10718 "/; "* |
"/.; "* |
"/./; "* |
*"$lt_multi_os_dir "* |
*"$lt_multi_os_dir/ "*)
10722 for lt_sys_path
in $lt_search_path_spec; do
10723 if test -d "$lt_sys_path$lt_multi_os_dir"; then
10724 lt_tmp_lt_search_path_spec
="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
10725 elif test -n "$lt_multi_os_dir"; then
10726 test -d "$lt_sys_path" && \
10727 lt_tmp_lt_search_path_spec
="$lt_tmp_lt_search_path_spec $lt_sys_path"
10730 lt_search_path_spec
=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10731 BEGIN {RS = " "; FS = "/|\n";} {
10734 for (lt_i = NF; lt_i > 0; lt_i--) {
10735 if ($lt_i != "" && $lt_i != ".") {
10736 if ($lt_i == "..") {
10739 if (lt_count == 0) {
10740 lt_foo = "/" $lt_i lt_foo;
10747 if (lt_foo != "") { lt_freq[lt_foo]++; }
10748 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10750 # AWK program above erroneously prepends '/' to C:/dos/paths
10753 mingw
* | cegcc
*) lt_search_path_spec
=`$ECHO "$lt_search_path_spec" |\
10754 $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
10756 sys_lib_search_path_spec
=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10758 sys_lib_search_path_spec
="/lib /usr/lib /usr/local/lib"
10760 library_names_spec
=
10761 libname_spec
='lib$name'
10765 postuninstall_cmds
=
10769 shlibpath_overrides_runpath
=unknown
10771 dynamic_linker
="$host_os ld.so"
10772 sys_lib_dlsearch_path_spec
="/lib /usr/lib"
10773 need_lib_prefix
=unknown
10774 hardcode_into_libs
=no
10776 # when you set need_version to no, make sure it does not cause -set_version
10777 # flags to be left without arguments
10778 need_version
=unknown
10784 version_type
=linux
# correct to gnu/linux during the next big refactor
10785 library_names_spec
='$libname$release$shared_ext$versuffix $libname.a'
10786 shlibpath_var
=LIBPATH
10788 # AIX 3 has no versioning support, so we append a major version to the name.
10789 soname_spec
='$libname$release$shared_ext$major'
10793 version_type
=linux
# correct to gnu/linux during the next big refactor
10796 hardcode_into_libs
=yes
10797 if test ia64
= "$host_cpu"; then
10798 # AIX 5 supports IA64
10799 library_names_spec
='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
10800 shlibpath_var
=LD_LIBRARY_PATH
10802 # With GCC up to 2.95.x, collect2 would create an import file
10803 # for dependence libraries. The import file would start with
10804 # the line '#! .'. This would cause the generated library to
10805 # depend on '.', always an invalid library. This was fixed in
10806 # development snapshots of GCC prior to 3.0.
10808 aix4 | aix4.
[01] | aix4.
[01].
*)
10809 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10811 echo '#endif'; } |
$CC -E - |
$GREP yes > /dev
/null
; then
10814 can_build_shared
=no
10818 # Using Import Files as archive members, it is possible to support
10819 # filename-based versioning of shared library archives on AIX. While
10820 # this would work for both with and without runtime linking, it will
10821 # prevent static linking of such archives. So we do filename-based
10822 # shared library versioning with .so extension only, which is used
10823 # when both runtime linking and shared linking is enabled.
10824 # Unfortunately, runtime linking may impact performance, so we do
10825 # not want this to be the default eventually. Also, we use the
10826 # versioned .so libs for executables only if there is the -brtl
10827 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
10828 # To allow for filename-based versioning support, we need to create
10829 # libNAME.so.V as an archive file, containing:
10830 # *) an Import File, referring to the versioned filename of the
10831 # archive as well as the shared archive member, telling the
10832 # bitwidth (32 or 64) of that shared object, and providing the
10833 # list of exported symbols of that shared object, eventually
10834 # decorated with the 'weak' keyword
10835 # *) the shared object with the F_LOADONLY flag set, to really avoid
10836 # it being seen by the linker.
10837 # At run time we better use the real file rather than another symlink,
10838 # but for link time we create the symlink libNAME.so -> libNAME.so.V
10840 case $with_aix_soname,$aix_use_runtimelinking in
10841 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
10842 # soname into executable. Probably we can add versioning support to
10843 # collect2, so additional links can be useful in future.
10844 aix
,yes) # traditional libtool
10845 dynamic_linker
='AIX unversionable lib.so'
10846 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10847 # instead of lib<name>.a to let people know that these are not
10848 # typical AIX shared libraries.
10849 library_names_spec
='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10851 aix
,no
) # traditional AIX only
10852 dynamic_linker
='AIX lib.a(lib.so.V)'
10853 # We preserve .a as extension for shared libraries through AIX4.2
10854 # and later when we are not doing run time linking.
10855 library_names_spec
='$libname$release.a $libname.a'
10856 soname_spec
='$libname$release$shared_ext$major'
10858 svr4
,*) # full svr4 only
10859 dynamic_linker
="AIX lib.so.V($shared_archive_member_spec.o)"
10860 library_names_spec
='$libname$release$shared_ext$major $libname$shared_ext'
10861 # We do not specify a path in Import Files, so LIBPATH fires.
10862 shlibpath_overrides_runpath
=yes
10864 *,yes) # both, prefer svr4
10865 dynamic_linker
="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
10866 library_names_spec
='$libname$release$shared_ext$major $libname$shared_ext'
10867 # unpreferred sharedlib libNAME.a needs extra handling
10868 postinstall_cmds
='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"'
10869 postuninstall_cmds
='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'
10870 # We do not specify a path in Import Files, so LIBPATH fires.
10871 shlibpath_overrides_runpath
=yes
10873 *,no
) # both, prefer aix
10874 dynamic_linker
="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
10875 library_names_spec
='$libname$release.a $libname.a'
10876 soname_spec
='$libname$release$shared_ext$major'
10877 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
10878 postinstall_cmds
='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'
10879 postuninstall_cmds
='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"'
10882 shlibpath_var
=LIBPATH
10889 # Since July 2007 AmigaOS4 officially supports .so libraries.
10890 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10891 library_names_spec
='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10894 library_names_spec
='$libname.ixlibrary $libname.a'
10895 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10896 finish_eval
='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
10902 library_names_spec
='$libname$shared_ext'
10903 dynamic_linker
="$host_os ld.so"
10904 shlibpath_var
=LIBRARY_PATH
10908 version_type
=linux
# correct to gnu/linux during the next big refactor
10910 library_names_spec
='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10911 soname_spec
='$libname$release$shared_ext$major'
10912 finish_cmds
='PATH="\$PATH:/sbin" ldconfig $libdir'
10913 shlibpath_var
=LD_LIBRARY_PATH
10914 sys_lib_search_path_spec
="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10915 sys_lib_dlsearch_path_spec
="/shlib /usr/lib /usr/local/lib"
10916 # the default ld.so.conf also contains /usr/contrib/lib and
10917 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10918 # libtool to hard-code these into programs
10921 cygwin
* | mingw
* | pw32
* | cegcc
*)
10922 version_type
=windows
10927 case $GCC,$cc_basename in
10930 library_names_spec
='$libname.dll.a'
10931 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10932 postinstall_cmds
='base_file=`basename \$file`~
10933 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
10934 dldir=$destdir/`dirname \$dlpath`~
10935 test -d \$dldir || mkdir -p \$dldir~
10936 $install_prog $dir/$dlname \$dldir/$dlname~
10937 chmod a+x \$dldir/$dlname~
10938 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10939 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10941 postuninstall_cmds
='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10942 dlpath=$dir/\$dldll~
10944 shlibpath_overrides_runpath
=yes
10948 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10949 soname_spec
='`echo $libname | sed -e 's
/^lib
/cyg
/'``echo $release | $SED -e 's
/[.
]/-/g
'`$versuffix$shared_ext'
10951 sys_lib_search_path_spec
="$sys_lib_search_path_spec /usr/lib/w32api"
10954 # MinGW DLLs use traditional 'lib' prefix
10955 soname_spec
='$libname`echo $release | $SED -e 's
/[.
]/-/g
'`$versuffix$shared_ext'
10958 # pw32 DLLs use 'pw' prefix rather than 'lib'
10959 library_names_spec
='`echo $libname | sed -e 's
/^lib
/pw
/'``echo $release | $SED -e 's
/[.
]/-/g
'`$versuffix$shared_ext'
10962 dynamic_linker
='Win32 ld.exe'
10967 libname_spec
='$name'
10968 soname_spec
='$libname`echo $release | $SED -e 's
/[.
]/-/g
'`$versuffix$shared_ext'
10969 library_names_spec
='$libname.dll.lib'
10973 sys_lib_search_path_spec
=
10976 for lt_path
in $LIB
10979 # Let DOS variable expansion print the short 8.3 style file name.
10980 lt_path
=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10981 sys_lib_search_path_spec
="$sys_lib_search_path_spec $lt_path"
10984 # Convert to MSYS style.
10985 sys_lib_search_path_spec
=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10988 # Convert to unix form, then to dos form, then back to unix form
10989 # but this time dos style (no spaces!) so that the unix form looks
10990 # like /cygdrive/c/PROGRA~1:/cygdr...
10991 sys_lib_search_path_spec
=`cygpath --path --unix "$LIB"`
10992 sys_lib_search_path_spec
=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10993 sys_lib_search_path_spec
=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10996 sys_lib_search_path_spec
=$LIB
10997 if $ECHO "$sys_lib_search_path_spec" |
$GREP ';[c-zC-Z]:/' >/dev
/null
; then
10998 # It is most probably a Windows format PATH.
10999 sys_lib_search_path_spec
=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11001 sys_lib_search_path_spec
=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11003 # FIXME: find the short name or the path components, as spaces are
11004 # common. (e.g. "Program Files" -> "PROGRA~1")
11008 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11009 postinstall_cmds
='base_file=`basename \$file`~
11010 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11011 dldir=$destdir/`dirname \$dlpath`~
11012 test -d \$dldir || mkdir -p \$dldir~
11013 $install_prog $dir/$dlname \$dldir/$dlname'
11014 postuninstall_cmds
='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11015 dlpath=$dir/\$dldll~
11017 shlibpath_overrides_runpath
=yes
11018 dynamic_linker
='Win32 link.exe'
11022 # Assume MSVC wrapper
11023 library_names_spec
='$libname`echo $release | $SED -e 's
/[.
]/-/g
'`$versuffix$shared_ext $libname.lib'
11024 dynamic_linker
='Win32 ld.exe'
11027 # FIXME: first we should search . and the directory the executable is in
11031 darwin
* | rhapsody
*)
11032 dynamic_linker
="$host_os dyld"
11033 version_type
=darwin
11036 library_names_spec
='$libname$release$major$shared_ext $libname$shared_ext'
11037 soname_spec
='$libname$release$major$shared_ext'
11038 shlibpath_overrides_runpath
=yes
11039 shlibpath_var
=DYLD_LIBRARY_PATH
11040 shrext_cmds
='`test .$module = .yes && echo .so || echo .dylib`'
11042 sys_lib_search_path_spec
="$sys_lib_search_path_spec /usr/local/lib"
11043 sys_lib_dlsearch_path_spec
='/usr/local/lib /lib /usr/lib'
11047 version_type
=linux
# correct to gnu/linux during the next big refactor
11050 library_names_spec
='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11051 soname_spec
='$libname$release$shared_ext$major'
11052 shlibpath_var
=LD_LIBRARY_PATH
11055 freebsd
* | dragonfly
*)
11056 # DragonFly does not have aout. When/if they implement a new
11057 # versioning mechanism, adjust this.
11058 if test -x /usr
/bin
/objformat
; then
11059 objformat
=`/usr/bin/objformat`
11062 freebsd
[23].
*) objformat
=aout
;;
11063 *) objformat
=elf
;;
11066 version_type
=freebsd-
$objformat
11067 case $version_type in
11069 library_names_spec
='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11070 soname_spec
='$libname$release$shared_ext$major'
11075 library_names_spec
='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11079 shlibpath_var
=LD_LIBRARY_PATH
11082 shlibpath_overrides_runpath
=yes
11084 freebsd3.
[01]* | freebsdelf3.
[01]*)
11085 shlibpath_overrides_runpath
=yes
11086 hardcode_into_libs
=yes
11088 freebsd3.
[2-9]* | freebsdelf3.
[2-9]* | \
11089 freebsd4.
[0-5] | freebsdelf4.
[0-5] | freebsd4.1
.1 | freebsdelf4.1
.1)
11090 shlibpath_overrides_runpath
=no
11091 hardcode_into_libs
=yes
11093 *) # from 4.6 on, and DragonFly
11094 shlibpath_overrides_runpath
=yes
11095 hardcode_into_libs
=yes
11101 version_type
=linux
# correct to gnu/linux during the next big refactor
11104 dynamic_linker
="$host_os runtime_loader"
11105 library_names_spec
='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11106 soname_spec
='$libname$release$shared_ext$major'
11107 shlibpath_var
=LIBRARY_PATH
11108 shlibpath_overrides_runpath
=no
11109 sys_lib_dlsearch_path_spec
='/boot/home/config/lib /boot/common/lib /boot/system/lib'
11110 hardcode_into_libs
=yes
11113 hpux9
* | hpux10
* | hpux11
*)
11114 # Give a soname corresponding to the major version so that dld.sl refuses to
11115 # link against other versions.
11122 hardcode_into_libs
=yes
11123 dynamic_linker
="$host_os dld.so"
11124 shlibpath_var
=LD_LIBRARY_PATH
11125 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
11126 library_names_spec
='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11127 soname_spec
='$libname$release$shared_ext$major'
11128 if test 32 = "$HPUX_IA64_MODE"; then
11129 sys_lib_search_path_spec
="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11130 sys_lib_dlsearch_path_spec
=/usr
/lib
/hpux32
11132 sys_lib_search_path_spec
="/usr/lib/hpux64 /usr/local/lib/hpux64"
11133 sys_lib_dlsearch_path_spec
=/usr
/lib
/hpux64
11138 hardcode_into_libs
=yes
11139 dynamic_linker
="$host_os dld.sl"
11140 shlibpath_var
=LD_LIBRARY_PATH
# How should we handle SHLIB_PATH
11141 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
11142 library_names_spec
='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11143 soname_spec
='$libname$release$shared_ext$major'
11144 sys_lib_search_path_spec
="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11145 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
11149 dynamic_linker
="$host_os dld.sl"
11150 shlibpath_var
=SHLIB_PATH
11151 shlibpath_overrides_runpath
=no
# +s is required to enable SHLIB_PATH
11152 library_names_spec
='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11153 soname_spec
='$libname$release$shared_ext$major'
11156 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11157 postinstall_cmds
='chmod 555 $lib'
11158 # or fails outright, so override atomically:
11159 install_override_mode
=555
11163 version_type
=linux
# correct to gnu/linux during the next big refactor
11166 library_names_spec
='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11167 soname_spec
='$libname$release$shared_ext$major'
11168 dynamic_linker
='Interix 3.x ld.so.1 (PE, like ELF)'
11169 shlibpath_var
=LD_LIBRARY_PATH
11170 shlibpath_overrides_runpath
=no
11171 hardcode_into_libs
=yes
11174 irix5
* | irix6
* | nonstopux
*)
11176 nonstopux
*) version_type
=nonstopux
;;
11178 if test yes = "$lt_cv_prog_gnu_ld"; then
11179 version_type
=linux
# correct to gnu/linux during the next big refactor
11186 soname_spec
='$libname$release$shared_ext$major'
11187 library_names_spec
='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
11189 irix5
* | nonstopux
*)
11190 libsuff
= shlibsuff
=
11193 case $LD in # libtool.m4 will add one of these switches to LD
11194 *-32|
*"-32 "|
*-melf32bsmip|
*"-melf32bsmip ")
11195 libsuff
= shlibsuff
= libmagic
=32-bit;;
11196 *-n32|
*"-n32 "|
*-melf32bmipn32|
*"-melf32bmipn32 ")
11197 libsuff
=32 shlibsuff
=N32 libmagic
=N32
;;
11198 *-64|
*"-64 "|
*-melf64bmip|
*"-melf64bmip ")
11199 libsuff
=64 shlibsuff
=64 libmagic
=64-bit;;
11200 *) libsuff
= shlibsuff
= libmagic
=never-match
;;
11204 shlibpath_var
=LD_LIBRARY
${shlibsuff}_PATH
11205 shlibpath_overrides_runpath
=no
11206 sys_lib_search_path_spec
="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
11207 sys_lib_dlsearch_path_spec
="/usr/lib$libsuff /lib$libsuff"
11208 hardcode_into_libs
=yes
11211 # No shared lib support for Linux oldld, aout, or coff.
11212 linux
*oldld
* | linux
*aout
* | linux
*coff
*)
11217 version_type
=none
# Android doesn't support versioned libraries.
11220 library_names_spec
='$libname$release$shared_ext'
11221 soname_spec
='$libname$release$shared_ext'
11223 shlibpath_var
=LD_LIBRARY_PATH
11224 shlibpath_overrides_runpath
=yes
11226 # This implies no fast_install, which is unacceptable.
11227 # Some rework will be needed to allow for fast_install
11228 # before this can be enabled.
11229 hardcode_into_libs
=yes
11231 dynamic_linker
='Android linker'
11232 # Don't embed -rpath directories since the linker doesn't support them.
11233 hardcode_libdir_flag_spec
='-L$libdir'
11236 # This must be glibc/ELF.
11237 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu | gnu
*)
11238 version_type
=linux
# correct to gnu/linux during the next big refactor
11241 library_names_spec
='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11242 soname_spec
='$libname$release$shared_ext$major'
11243 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11244 shlibpath_var
=LD_LIBRARY_PATH
11245 shlibpath_overrides_runpath
=no
11247 # Some binutils ld are patched to set DT_RUNPATH
11248 if ${lt_cv_shlibpath_overrides_runpath+:} false
; then :
11249 $as_echo_n "(cached) " >&6
11251 lt_cv_shlibpath_overrides_runpath
=no
11252 save_LDFLAGS
=$LDFLAGS
11253 save_libdir
=$libdir
11254 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11255 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11256 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11257 /* end confdefs.h. */
11267 if ac_fn_c_try_link
"$LINENO"; then :
11268 if ($OBJDUMP -p conftest
$ac_exeext) 2>/dev
/null |
grep "RUNPATH.*$libdir" >/dev
/null
; then :
11269 lt_cv_shlibpath_overrides_runpath
=yes
11272 rm -f core conftest.err conftest.
$ac_objext \
11273 conftest
$ac_exeext conftest.
$ac_ext
11274 LDFLAGS
=$save_LDFLAGS
11275 libdir
=$save_libdir
11279 shlibpath_overrides_runpath
=$lt_cv_shlibpath_overrides_runpath
11281 # This implies no fast_install, which is unacceptable.
11282 # Some rework will be needed to allow for fast_install
11283 # before this can be enabled.
11284 hardcode_into_libs
=yes
11286 # Ideally, we could use ldconfig to report *all* directores which are
11287 # searched for libraries, however this is still not possible. Aside from not
11288 # being certain /sbin/ldconfig is available, command
11289 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
11290 # even though it is searched at run-time. Try to do the best guess by
11291 # appending ld.so.conf contents (and includes) to the search path.
11292 if test -f /etc
/ld.so.conf
; then
11293 lt_ld_extra
=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
11294 sys_lib_dlsearch_path_spec
="/lib /usr/lib $lt_ld_extra"
11297 # We used to test for /lib/ld.so.1 and disable shared libraries on
11298 # powerpc, because MkLinux only supported shared libraries with the
11299 # GNU dynamic linker. Since this was broken with cross compilers,
11300 # most powerpc-linux boxes support dynamic linking these days and
11301 # people can always --disable-shared, the test was removed, and we
11302 # assume the GNU/Linux dynamic linker is in use.
11303 dynamic_linker
='GNU/Linux ld.so'
11310 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11311 soname_spec
='${libname}${release}${shared_ext}$major'
11312 shlibpath_var
=LD_LIBRARY_PATH
11313 shlibpath_overrides_runpath
=no
11314 hardcode_into_libs
=yes
11315 dynamic_linker
='NetBSD ld.elf_so'
11322 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
11323 library_names_spec
='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11324 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11325 dynamic_linker
='NetBSD (a.out) ld.so'
11327 library_names_spec
='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11328 soname_spec
='$libname$release$shared_ext$major'
11329 dynamic_linker
='NetBSD ld.elf_so'
11331 shlibpath_var
=LD_LIBRARY_PATH
11332 shlibpath_overrides_runpath
=yes
11333 hardcode_into_libs
=yes
11337 version_type
=linux
# correct to gnu/linux during the next big refactor
11338 library_names_spec
='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11339 shlibpath_var
=LD_LIBRARY_PATH
11340 shlibpath_overrides_runpath
=yes
11347 library_names_spec
='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11348 soname_spec
='$libname$release$shared_ext$major'
11349 shlibpath_var
=LD_LIBRARY_PATH
11350 shlibpath_overrides_runpath
=no
11351 hardcode_into_libs
=yes
11352 dynamic_linker
='ldqnx.so'
11355 openbsd
* | bitrig
*)
11357 sys_lib_dlsearch_path_spec
=/usr
/lib
11359 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
11364 library_names_spec
='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11365 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11366 shlibpath_var
=LD_LIBRARY_PATH
11367 shlibpath_overrides_runpath
=yes
11371 libname_spec
='$name'
11372 version_type
=windows
11376 # OS/2 can only load a DLL with a base name of 8 characters or less.
11377 soname_spec
='`test -n "$os2dllname" && libname="$os2dllname";
11378 v=$($ECHO $release$versuffix | tr -d .-);
11379 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
11380 $ECHO $n$v`$shared_ext'
11381 library_names_spec
='${libname}_dll.$libext'
11382 dynamic_linker
='OS/2 ld.exe'
11383 shlibpath_var
=BEGINLIBPATH
11384 sys_lib_search_path_spec
="/lib /usr/lib /usr/local/lib"
11385 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
11386 postinstall_cmds
='base_file=`basename \$file`~
11387 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
11388 dldir=$destdir/`dirname \$dlpath`~
11389 test -d \$dldir || mkdir -p \$dldir~
11390 $install_prog $dir/$dlname \$dldir/$dlname~
11391 chmod a+x \$dldir/$dlname~
11392 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11393 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11395 postuninstall_cmds
='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
11396 dlpath=$dir/\$dldll~
11400 osf3
* | osf4
* | osf5
*)
11404 soname_spec
='$libname$release$shared_ext$major'
11405 library_names_spec
='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11406 shlibpath_var
=LD_LIBRARY_PATH
11407 sys_lib_search_path_spec
="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11408 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
11416 version_type
=linux
# correct to gnu/linux during the next big refactor
11419 library_names_spec
='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11420 soname_spec
='$libname$release$shared_ext$major'
11421 shlibpath_var
=LD_LIBRARY_PATH
11422 shlibpath_overrides_runpath
=yes
11423 hardcode_into_libs
=yes
11424 # ldd complains unless libraries are executable
11425 postinstall_cmds
='chmod +x $lib'
11430 library_names_spec
='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11431 finish_cmds
='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11432 shlibpath_var
=LD_LIBRARY_PATH
11433 shlibpath_overrides_runpath
=yes
11434 if test yes = "$with_gnu_ld"; then
11441 version_type
=linux
# correct to gnu/linux during the next big refactor
11442 library_names_spec
='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11443 soname_spec
='$libname$release$shared_ext$major'
11444 shlibpath_var
=LD_LIBRARY_PATH
11445 case $host_vendor in
11447 shlibpath_overrides_runpath
=no
11449 runpath_var
=LD_RUN_PATH
11457 shlibpath_overrides_runpath
=no
11458 sys_lib_search_path_spec
='/lib /usr/lib /usr/ccs/lib'
11464 if test -d /usr
/nec
; then
11465 version_type
=linux
# correct to gnu/linux during the next big refactor
11466 library_names_spec
='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
11467 soname_spec
='$libname$shared_ext.$major'
11468 shlibpath_var
=LD_LIBRARY_PATH
11472 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
* | sysv4
*uw2
*)
11476 library_names_spec
='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
11477 soname_spec
='$libname$release$shared_ext$major'
11478 shlibpath_var
=LD_LIBRARY_PATH
11479 shlibpath_overrides_runpath
=yes
11480 hardcode_into_libs
=yes
11481 if test yes = "$with_gnu_ld"; then
11482 sys_lib_search_path_spec
='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11484 sys_lib_search_path_spec
='/usr/ccs/lib /usr/lib'
11487 sys_lib_search_path_spec
="$sys_lib_search_path_spec /lib"
11491 sys_lib_dlsearch_path_spec
='/usr/lib'
11495 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11496 version_type
=linux
# correct to gnu/linux during the next big refactor
11499 library_names_spec
='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11500 shlibpath_var
=LD_LIBRARY_PATH
11501 shlibpath_overrides_runpath
=no
11502 hardcode_into_libs
=yes
11506 version_type
=linux
# correct to gnu/linux during the next big refactor
11507 library_names_spec
='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11508 soname_spec
='$libname$release$shared_ext$major'
11509 shlibpath_var
=LD_LIBRARY_PATH
11516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11517 $as_echo "$dynamic_linker" >&6; }
11518 test no
= "$dynamic_linker" && can_build_shared
=no
11520 variables_saved_for_relink
="PATH $shlibpath_var $runpath_var"
11521 if test yes = "$GCC"; then
11522 variables_saved_for_relink
="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11525 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
11526 sys_lib_search_path_spec
=$lt_cv_sys_lib_search_path_spec
11529 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
11530 sys_lib_dlsearch_path_spec
=$lt_cv_sys_lib_dlsearch_path_spec
11533 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
11534 configure_time_dlsearch_path
=$sys_lib_dlsearch_path_spec
11536 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
11537 func_munge_path_list sys_lib_dlsearch_path_spec
"$LT_SYS_LIBRARY_PATH"
11539 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
11540 configure_time_lt_sys_library_path
=$LT_SYS_LIBRARY_PATH
11638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11639 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11641 if test -n "$hardcode_libdir_flag_spec" ||
11642 test -n "$runpath_var" ||
11643 test yes = "$hardcode_automatic"; then
11645 # We can hardcode non-existent directories.
11646 if test no
!= "$hardcode_direct" &&
11647 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11648 # have to relink, otherwise we might link with an installed library
11649 # when we should be linking with a yet-to-be-installed one
11650 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
11651 test no
!= "$hardcode_minus_L"; then
11652 # Linking always hardcodes the temporary library directory.
11653 hardcode_action
=relink
11655 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11656 hardcode_action
=immediate
11659 # We cannot hardcode anything, or else we can only hardcode existing
11661 hardcode_action
=unsupported
11663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11664 $as_echo "$hardcode_action" >&6; }
11666 if test relink
= "$hardcode_action" ||
11667 test yes = "$inherit_rpath"; then
11668 # Fast installation is not supported
11669 enable_fast_install
=no
11670 elif test yes = "$shlibpath_overrides_runpath" ||
11671 test no
= "$enable_shared"; then
11672 # Fast installation is not necessary
11673 enable_fast_install
=needless
11681 if test yes != "$enable_dlopen"; then
11682 enable_dlopen
=unknown
11683 enable_dlopen_self
=unknown
11684 enable_dlopen_self_static
=unknown
11691 lt_cv_dlopen
=load_add_on
11693 lt_cv_dlopen_self
=yes
11696 mingw
* | pw32
* | cegcc
*)
11697 lt_cv_dlopen
=LoadLibrary
11702 lt_cv_dlopen
=dlopen
11707 # if libdl is installed we need to link against it
11708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11709 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11710 if ${ac_cv_lib_dl_dlopen+:} false
; then :
11711 $as_echo_n "(cached) " >&6
11713 ac_check_lib_save_LIBS
=$LIBS
11715 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11716 /* end confdefs.h. */
11718 /* Override any GCC internal prototype to avoid an error.
11719 Use char because int might match the return type of a GCC
11720 builtin and then its argument prototype would still apply. */
11733 if ac_fn_c_try_link
"$LINENO"; then :
11734 ac_cv_lib_dl_dlopen
=yes
11736 ac_cv_lib_dl_dlopen
=no
11738 rm -f core conftest.err conftest.
$ac_objext \
11739 conftest
$ac_exeext conftest.
$ac_ext
11740 LIBS
=$ac_check_lib_save_LIBS
11742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11743 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11744 if test "x$ac_cv_lib_dl_dlopen" = xyes
; then :
11745 lt_cv_dlopen
=dlopen lt_cv_dlopen_libs
=-ldl
11750 lt_cv_dlopen_self
=yes
11757 # Don't try to run any link tests for TPF. We know it's impossible
11758 # because TPF is a cross-compiler, and we know how we open DSOs.
11759 lt_cv_dlopen
=dlopen
11761 lt_cv_dlopen_self
=no
11765 ac_fn_c_check_func
"$LINENO" "shl_load" "ac_cv_func_shl_load"
11766 if test "x$ac_cv_func_shl_load" = xyes
; then :
11767 lt_cv_dlopen
=shl_load
11769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11770 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11771 if ${ac_cv_lib_dld_shl_load+:} false
; then :
11772 $as_echo_n "(cached) " >&6
11774 ac_check_lib_save_LIBS
=$LIBS
11776 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11777 /* end confdefs.h. */
11779 /* Override any GCC internal prototype to avoid an error.
11780 Use char because int might match the return type of a GCC
11781 builtin and then its argument prototype would still apply. */
11789 return shl_load ();
11794 if ac_fn_c_try_link
"$LINENO"; then :
11795 ac_cv_lib_dld_shl_load
=yes
11797 ac_cv_lib_dld_shl_load
=no
11799 rm -f core conftest.err conftest.
$ac_objext \
11800 conftest
$ac_exeext conftest.
$ac_ext
11801 LIBS
=$ac_check_lib_save_LIBS
11803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11804 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11805 if test "x$ac_cv_lib_dld_shl_load" = xyes
; then :
11806 lt_cv_dlopen
=shl_load lt_cv_dlopen_libs
=-ldld
11808 ac_fn_c_check_func
"$LINENO" "dlopen" "ac_cv_func_dlopen"
11809 if test "x$ac_cv_func_dlopen" = xyes
; then :
11810 lt_cv_dlopen
=dlopen
11812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11813 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11814 if ${ac_cv_lib_dl_dlopen+:} false
; then :
11815 $as_echo_n "(cached) " >&6
11817 ac_check_lib_save_LIBS
=$LIBS
11819 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11820 /* end confdefs.h. */
11822 /* Override any GCC internal prototype to avoid an error.
11823 Use char because int might match the return type of a GCC
11824 builtin and then its argument prototype would still apply. */
11837 if ac_fn_c_try_link
"$LINENO"; then :
11838 ac_cv_lib_dl_dlopen
=yes
11840 ac_cv_lib_dl_dlopen
=no
11842 rm -f core conftest.err conftest.
$ac_objext \
11843 conftest
$ac_exeext conftest.
$ac_ext
11844 LIBS
=$ac_check_lib_save_LIBS
11846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11847 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11848 if test "x$ac_cv_lib_dl_dlopen" = xyes
; then :
11849 lt_cv_dlopen
=dlopen lt_cv_dlopen_libs
=-ldl
11851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11852 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11853 if ${ac_cv_lib_svld_dlopen+:} false
; then :
11854 $as_echo_n "(cached) " >&6
11856 ac_check_lib_save_LIBS
=$LIBS
11857 LIBS
="-lsvld $LIBS"
11858 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11859 /* end confdefs.h. */
11861 /* Override any GCC internal prototype to avoid an error.
11862 Use char because int might match the return type of a GCC
11863 builtin and then its argument prototype would still apply. */
11876 if ac_fn_c_try_link
"$LINENO"; then :
11877 ac_cv_lib_svld_dlopen
=yes
11879 ac_cv_lib_svld_dlopen
=no
11881 rm -f core conftest.err conftest.
$ac_objext \
11882 conftest
$ac_exeext conftest.
$ac_ext
11883 LIBS
=$ac_check_lib_save_LIBS
11885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11886 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11887 if test "x$ac_cv_lib_svld_dlopen" = xyes
; then :
11888 lt_cv_dlopen
=dlopen lt_cv_dlopen_libs
=-lsvld
11890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11891 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11892 if ${ac_cv_lib_dld_dld_link+:} false
; then :
11893 $as_echo_n "(cached) " >&6
11895 ac_check_lib_save_LIBS
=$LIBS
11897 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11898 /* end confdefs.h. */
11900 /* Override any GCC internal prototype to avoid an error.
11901 Use char because int might match the return type of a GCC
11902 builtin and then its argument prototype would still apply. */
11910 return dld_link ();
11915 if ac_fn_c_try_link
"$LINENO"; then :
11916 ac_cv_lib_dld_dld_link
=yes
11918 ac_cv_lib_dld_dld_link
=no
11920 rm -f core conftest.err conftest.
$ac_objext \
11921 conftest
$ac_exeext conftest.
$ac_ext
11922 LIBS
=$ac_check_lib_save_LIBS
11924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11925 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11926 if test "x$ac_cv_lib_dld_dld_link" = xyes
; then :
11927 lt_cv_dlopen
=dld_link lt_cv_dlopen_libs
=-ldld
11948 if test no
= "$lt_cv_dlopen"; then
11954 case $lt_cv_dlopen in
11956 save_CPPFLAGS
=$CPPFLAGS
11957 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS
="$CPPFLAGS -DHAVE_DLFCN_H"
11959 save_LDFLAGS
=$LDFLAGS
11960 wl
=$lt_prog_compiler_wl eval LDFLAGS
=\"\
$LDFLAGS $export_dynamic_flag_spec\"
11963 LIBS
="$lt_cv_dlopen_libs $LIBS"
11965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11966 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11967 if ${lt_cv_dlopen_self+:} false
; then :
11968 $as_echo_n "(cached) " >&6
11970 if test yes = "$cross_compiling"; then :
11971 lt_cv_dlopen_self
=cross
11973 lt_dlunknown
=0; lt_dlno_uscore
=1; lt_dlneed_uscore
=2
11974 lt_status
=$lt_dlunknown
11975 cat > conftest.
$ac_ext <<_LT_EOF
11976 #line $LINENO "configure"
11977 #include "confdefs.h"
11986 # define LT_DLGLOBAL RTLD_GLOBAL
11989 # define LT_DLGLOBAL DL_GLOBAL
11991 # define LT_DLGLOBAL 0
11995 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11996 find out it does not work in some platform. */
11997 #ifndef LT_DLLAZY_OR_NOW
11999 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12002 # define LT_DLLAZY_OR_NOW DL_LAZY
12005 # define LT_DLLAZY_OR_NOW RTLD_NOW
12008 # define LT_DLLAZY_OR_NOW DL_NOW
12010 # define LT_DLLAZY_OR_NOW 0
12017 /* When -fvisibility=hidden is used, assume the code has been annotated
12018 correspondingly for the symbols needed. */
12019 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12020 int fnord () __attribute__((visibility("default")));
12023 int fnord () { return 42; }
12026 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12027 int status = $lt_dlunknown;
12031 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12034 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12035 else puts (dlerror ());
12037 /* dlclose (self); */
12045 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12046 (eval $ac_link) 2>&5
12048 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12049 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev
/null
; then
12050 (.
/conftest
; exit; ) >&5 2>/dev
/null
12052 case x
$lt_status in
12053 x
$lt_dlno_uscore) lt_cv_dlopen_self
=yes ;;
12054 x
$lt_dlneed_uscore) lt_cv_dlopen_self
=yes ;;
12055 x
$lt_dlunknown|x
*) lt_cv_dlopen_self
=no
;;
12058 # compilation failed
12059 lt_cv_dlopen_self
=no
12066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12067 $as_echo "$lt_cv_dlopen_self" >&6; }
12069 if test yes = "$lt_cv_dlopen_self"; then
12070 wl
=$lt_prog_compiler_wl eval LDFLAGS
=\"\
$LDFLAGS $lt_prog_compiler_static\"
12071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12072 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12073 if ${lt_cv_dlopen_self_static+:} false
; then :
12074 $as_echo_n "(cached) " >&6
12076 if test yes = "$cross_compiling"; then :
12077 lt_cv_dlopen_self_static
=cross
12079 lt_dlunknown
=0; lt_dlno_uscore
=1; lt_dlneed_uscore
=2
12080 lt_status
=$lt_dlunknown
12081 cat > conftest.
$ac_ext <<_LT_EOF
12082 #line $LINENO "configure"
12083 #include "confdefs.h"
12092 # define LT_DLGLOBAL RTLD_GLOBAL
12095 # define LT_DLGLOBAL DL_GLOBAL
12097 # define LT_DLGLOBAL 0
12101 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12102 find out it does not work in some platform. */
12103 #ifndef LT_DLLAZY_OR_NOW
12105 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12108 # define LT_DLLAZY_OR_NOW DL_LAZY
12111 # define LT_DLLAZY_OR_NOW RTLD_NOW
12114 # define LT_DLLAZY_OR_NOW DL_NOW
12116 # define LT_DLLAZY_OR_NOW 0
12123 /* When -fvisibility=hidden is used, assume the code has been annotated
12124 correspondingly for the symbols needed. */
12125 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12126 int fnord () __attribute__((visibility("default")));
12129 int fnord () { return 42; }
12132 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12133 int status = $lt_dlunknown;
12137 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12140 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12141 else puts (dlerror ());
12143 /* dlclose (self); */
12151 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12152 (eval $ac_link) 2>&5
12154 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12155 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev
/null
; then
12156 (.
/conftest
; exit; ) >&5 2>/dev
/null
12158 case x
$lt_status in
12159 x
$lt_dlno_uscore) lt_cv_dlopen_self_static
=yes ;;
12160 x
$lt_dlneed_uscore) lt_cv_dlopen_self_static
=yes ;;
12161 x
$lt_dlunknown|x
*) lt_cv_dlopen_self_static
=no
;;
12164 # compilation failed
12165 lt_cv_dlopen_self_static
=no
12172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12173 $as_echo "$lt_cv_dlopen_self_static" >&6; }
12176 CPPFLAGS
=$save_CPPFLAGS
12177 LDFLAGS
=$save_LDFLAGS
12182 case $lt_cv_dlopen_self in
12183 yes|no
) enable_dlopen_self
=$lt_cv_dlopen_self ;;
12184 *) enable_dlopen_self
=unknown
;;
12187 case $lt_cv_dlopen_self_static in
12188 yes|no
) enable_dlopen_self_static
=$lt_cv_dlopen_self_static ;;
12189 *) enable_dlopen_self_static
=unknown
;;
12211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12212 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
12213 if test -n "$STRIP" && $STRIP -V 2>&1 |
$GREP "GNU strip" >/dev
/null
; then
12214 test -z "$old_striplib" && old_striplib
="$STRIP --strip-debug"
12215 test -z "$striplib" && striplib
="$STRIP --strip-unneeded"
12216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12217 $as_echo "yes" >&6; }
12219 # FIXME - insert some real tests, host_os isn't really good enough
12222 if test -n "$STRIP"; then
12223 striplib
="$STRIP -x"
12224 old_striplib
="$STRIP -S"
12225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12226 $as_echo "yes" >&6; }
12228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12229 $as_echo "no" >&6; }
12233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12234 $as_echo "no" >&6; }
12250 # Report what library types will actually be built
12251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12252 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12254 $as_echo "$can_build_shared" >&6; }
12256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12257 $as_echo_n "checking whether to build shared libraries... " >&6; }
12258 test no
= "$can_build_shared" && enable_shared
=no
12260 # On AIX, shared libraries and static libraries use the same namespace, and
12261 # are all built from PIC.
12264 test yes = "$enable_shared" && enable_static
=no
12265 if test -n "$RANLIB"; then
12266 archive_cmds
="$archive_cmds~\$RANLIB \$lib"
12267 postinstall_cmds
='$RANLIB $lib'
12272 if test ia64
!= "$host_cpu"; then
12273 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
12274 yes,aix
,yes) ;; # shared object as lib.so file only
12275 yes,svr4
,*) ;; # shared object as lib.so archive member only
12276 yes,*) enable_static
=no
;; # shared object in lib.a archive as well
12281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12282 $as_echo "$enable_shared" >&6; }
12284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12285 $as_echo_n "checking whether to build static libraries... " >&6; }
12286 # Make sure either enable_shared or enable_static is yes.
12287 test yes = "$enable_shared" || enable_static
=yes
12288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12289 $as_echo "$enable_static" >&6; }
12296 ac_cpp
='$CPP $CPPFLAGS'
12297 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12298 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12299 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
12317 ac_config_commands
="$ac_config_commands libtool"
12322 # Only expand once:
12325 # By default we simply use the C compiler to build assembly code.
12327 test "${CCAS+set}" = set || CCAS
=$CC
12328 test "${CCASFLAGS+set}" = set || CCASFLAGS
=$CFLAGS
12332 depcc
="$CCAS" am_compiler_list
=
12334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
12335 $as_echo_n "checking dependency style of $depcc... " >&6; }
12336 if ${am_cv_CCAS_dependencies_compiler_type+:} false
; then :
12337 $as_echo_n "(cached) " >&6
12339 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
12340 # We make a subdir and do the tests there. Otherwise we can end up
12341 # making bogus files that we don't know about and never remove. For
12342 # instance it was reported that on HP-UX the gcc test will end up
12343 # making a dummy file named 'D' -- because '-MD' means "put the output
12345 rm -rf conftest.dir
12347 # Copy depcomp to subdir because otherwise we won't find it if we're
12348 # using a relative directory.
12349 cp "$am_depcomp" conftest.dir
12351 # We will build objects and dependencies in a subdirectory because
12352 # it helps to detect inapplicable dependency modes. For instance
12353 # both Tru64's cc and ICC support -MD to output dependencies as a
12354 # side effect of compilation, but ICC will put the dependencies in
12355 # the current directory while Tru64 will put them in the object
12359 am_cv_CCAS_dependencies_compiler_type
=none
12360 if test "$am_compiler_list" = ""; then
12361 am_compiler_list
=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
12363 am__universal
=false
12366 for depmode
in $am_compiler_list; do
12367 # Setup a source with many dependencies, because some compilers
12368 # like to wrap large dependency lists on column 80 (with \), and
12369 # we should not choose a depcomp mode which is confused by this.
12371 # We need to recreate these files for each test, as the compiler may
12372 # overwrite some of them when testing with obscure command lines.
12373 # This happens at least with the AIX C compiler.
12375 for i
in 1 2 3 4 5 6; do
12376 echo '#include "conftst'$i'.h"' >> sub
/conftest.c
12377 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
12378 # Solaris 10 /bin/sh.
12379 echo '/* dummy */' > sub
/conftst
$i.h
12381 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
12383 # We check with '-c' and '-o' for the sake of the "dashmstdout"
12384 # mode. It turns out that the SunPro C++ compiler does not properly
12385 # handle '-M -o', and we need to detect this. Also, some Intel
12386 # versions had trouble with output in subdirs.
12387 am__obj
=sub
/conftest.
${OBJEXT-o}
12388 am__minus_obj
="-o $am__obj"
12391 # This depmode causes a compiler race in universal mode.
12392 test "$am__universal" = false ||
continue
12395 # After this tag, mechanisms are not by side-effect, so they'll
12396 # only be used when explicitly requested.
12397 if test "x$enable_dependency_tracking" = xyes
; then
12403 msvc7 | msvc7msys | msvisualcpp | msvcmsys
)
12404 # This compiler won't grok '-c -o', but also, the minuso test has
12405 # not run yet. These depmodes are late enough in the game, and
12406 # so weak that their functioning should not be impacted.
12407 am__obj
=conftest.
${OBJEXT-o}
12412 if depmode
=$depmode \
12413 source=sub
/conftest.c object
=$am__obj \
12414 depfile
=sub
/conftest.Po tmpdepfile
=sub
/conftest.TPo \
12415 $SHELL .
/depcomp
$depcc -c $am__minus_obj sub
/conftest.c \
12416 >/dev
/null
2>conftest.err
&&
12417 grep sub
/conftst1.h sub
/conftest.Po
> /dev
/null
2>&1 &&
12418 grep sub
/conftst6.h sub
/conftest.Po
> /dev
/null
2>&1 &&
12419 grep $am__obj sub
/conftest.Po
> /dev
/null
2>&1 &&
12420 ${MAKE-make} -s -f confmf
> /dev
/null
2>&1; then
12421 # icc doesn't choke on unknown options, it will just issue warnings
12422 # or remarks (even with -Werror). So we grep stderr for any message
12423 # that says an option was ignored or not supported.
12424 # When given -MP, icc 7.0 and 7.1 complain thusly:
12425 # icc: Command line warning: ignoring option '-M'; no argument required
12426 # The diagnosis changed in icc 8.0:
12427 # icc: Command line remark: option '-MP' not supported
12428 if (grep 'ignoring option' conftest.err ||
12429 grep 'not supported' conftest.err
) >/dev
/null
2>&1; then :; else
12430 am_cv_CCAS_dependencies_compiler_type
=$depmode
12437 rm -rf conftest.dir
12439 am_cv_CCAS_dependencies_compiler_type
=none
12443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CCAS_dependencies_compiler_type" >&5
12444 $as_echo "$am_cv_CCAS_dependencies_compiler_type" >&6; }
12445 CCASDEPMODE
=depmode
=$am_cv_CCAS_dependencies_compiler_type
12448 test "x$enable_dependency_tracking" != xno \
12449 && test "$am_cv_CCAS_dependencies_compiler_type" = gcc3
; then
12450 am__fastdepCCAS_TRUE
=
12451 am__fastdepCCAS_FALSE
='#'
12453 am__fastdepCCAS_TRUE
='#'
12454 am__fastdepCCAS_FALSE
=
12460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking zfs author" >&5
12461 $as_echo_n "checking zfs author... " >&6; }
12462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZFS_META_AUTHOR" >&5
12463 $as_echo "$ZFS_META_AUTHOR" >&6; }
12465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking zfs license" >&5
12466 $as_echo_n "checking zfs license... " >&6; }
12467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZFS_META_LICENSE" >&5
12468 $as_echo "$ZFS_META_LICENSE" >&6; }
12472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linux distribution" >&5
12473 $as_echo_n "checking linux distribution... " >&6; }
12474 if test -f /etc
/toss-release
; then
12476 elif test -f /etc
/fedora-release
; then
12478 elif test -f /etc
/redhat-release
; then
12480 elif test -f /etc
/gentoo-release
; then
12482 elif test -f /etc
/arch-release
; then
12484 elif test -f /etc
/SuSE-release
; then
12486 elif test -f /etc
/slackware-version
; then
12488 elif test -f /etc
/lunar.release
; then
12490 elif test -f /etc
/lsb-release
; then
12492 elif test -f /etc
/debian_version
; then
12497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $VENDOR" >&5
12498 $as_echo "$VENDOR" >&6; }
12501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking default package type" >&5
12502 $as_echo_n "checking default package type... " >&6; }
12504 toss
) DEFAULT_PACKAGE
=rpm
;;
12505 redhat
) DEFAULT_PACKAGE
=rpm
;;
12506 fedora
) DEFAULT_PACKAGE
=rpm
;;
12507 gentoo
) DEFAULT_PACKAGE
=tgz
;;
12508 arch
) DEFAULT_PACKAGE
=tgz
;;
12509 sles
) DEFAULT_PACKAGE
=rpm
;;
12510 slackware
) DEFAULT_PACKAGE
=tgz
;;
12511 lunar
) DEFAULT_PACKAGE
=tgz
;;
12512 ubuntu
) DEFAULT_PACKAGE
=deb
;;
12513 debian
) DEFAULT_PACKAGE
=deb
;;
12514 *) DEFAULT_PACKAGE
=rpm
;;
12516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEFAULT_PACKAGE" >&5
12517 $as_echo "$DEFAULT_PACKAGE" >&6; }
12520 DEFAULT_INIT_DIR
=$sysconfdir/init.d
12521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking default init directory" >&5
12522 $as_echo_n "checking default init directory... " >&6; }
12523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEFAULT_INIT_DIR" >&5
12524 $as_echo "$DEFAULT_INIT_DIR" >&6; }
12527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking default init script type" >&5
12528 $as_echo_n "checking default init script type... " >&6; }
12530 toss
) DEFAULT_INIT_SCRIPT
=redhat
;;
12531 redhat
) DEFAULT_INIT_SCRIPT
=redhat
;;
12532 fedora
) DEFAULT_INIT_SCRIPT
=fedora
;;
12533 gentoo
) DEFAULT_INIT_SCRIPT
=gentoo
;;
12534 arch
) DEFAULT_INIT_SCRIPT
=lsb
;;
12535 sles
) DEFAULT_INIT_SCRIPT
=lsb
;;
12536 slackware
) DEFAULT_INIT_SCRIPT
=lsb
;;
12537 lunar
) DEFAULT_INIT_SCRIPT
=lunar
;;
12538 ubuntu
) DEFAULT_INIT_SCRIPT
=lsb
;;
12539 debian
) DEFAULT_INIT_SCRIPT
=lsb
;;
12540 *) DEFAULT_INIT_SCRIPT
=lsb
;;
12542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEFAULT_INIT_SCRIPT" >&5
12543 $as_echo "$DEFAULT_INIT_SCRIPT" >&6; }
12546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking default init config direectory" >&5
12547 $as_echo_n "checking default init config direectory... " >&6; }
12549 gentoo
) DEFAULT_INITCONF_DIR
=/etc
/conf.d
;;
12550 toss
) DEFAULT_INITCONF_DIR
=/etc
/sysconfig
;;
12551 redhat
) DEFAULT_INITCONF_DIR
=/etc
/sysconfig
;;
12552 fedora
) DEFAULT_INITCONF_DIR
=/etc
/sysconfig
;;
12553 sles
) DEFAULT_INITCONF_DIR
=/etc
/sysconfig
;;
12554 ubuntu
) DEFAULT_INITCONF_DIR
=/etc
/default
;;
12555 debian
) DEFAULT_INITCONF_DIR
=/etc
/default
;;
12556 *) DEFAULT_INITCONF_DIR
=/etc
/default
;;
12558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEFAULT_INITCONF_DIR" >&5
12559 $as_echo "$DEFAULT_INITCONF_DIR" >&6; }
12562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether initramfs-tools is available" >&5
12563 $as_echo_n "checking whether initramfs-tools is available... " >&6; }
12564 if test -d /usr
/share
/initramfs-tools
; then
12565 DEFINE_INITRAMFS
='--define "_initramfs 1"'
12566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12567 $as_echo "yes" >&6; }
12569 DEFINE_INITRAMFS
=''
12570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12571 $as_echo "no" >&6; }
12579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $RPM is available" >&5
12580 $as_echo_n "checking whether $RPM is available... " >&6; }
12581 if tmp
=$
($RPM --version 2>/dev
/null
); then :
12583 RPM_VERSION
=$
(echo $tmp |
$AWK '/RPM/ { print $3 }')
12585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_RPM ($RPM_VERSION)" >&5
12586 $as_echo "$HAVE_RPM ($RPM_VERSION)" >&6; }
12591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_RPM" >&5
12592 $as_echo "$HAVE_RPM" >&6; }
12596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $RPMBUILD is available" >&5
12597 $as_echo_n "checking whether $RPMBUILD is available... " >&6; }
12598 if tmp
=$
($RPMBUILD --version 2>/dev
/null
); then :
12600 RPMBUILD_VERSION
=$
(echo $tmp |
$AWK '/RPM/ { print $3 }')
12602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_RPMBUILD ($RPMBUILD_VERSION)" >&5
12603 $as_echo "$HAVE_RPMBUILD ($RPMBUILD_VERSION)" >&6; }
12608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_RPMBUILD" >&5
12609 $as_echo "$HAVE_RPMBUILD" >&6; }
12613 RPM_DEFINE_COMMON
='--define "$(DEBUG_ZFS) 1" --define "$(DEBUG_DMU_TX) 1"'
12614 RPM_DEFINE_UTIL
='--define "_dracutdir $(dracutdir)" --define "_udevdir $(udevdir)" --define "_udevruledir $(udevruledir)" --define "_initconfdir $(DEFAULT_INITCONF_DIR)" $(DEFINE_INITRAMFS)'
12615 RPM_DEFINE_KMOD
='--define "kernels $(LINUX_VERSION)" --define "require_spldir $(SPL)" --define "require_splobj $(SPL_OBJ)" --define "ksrc $(LINUX)" --define "kobj $(LINUX_OBJ)"'
12618 SRPM_DEFINE_COMMON
='--define "build_src_rpm 1"'
12623 RPM_SPEC_DIR
="rpm/generic"
12625 # Check whether --with-spec was given.
12626 if test "${with_spec+set}" = set; then :
12627 withval
=$with_spec; RPM_SPEC_DIR
="rpm/$withval"
12631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether spec files are available" >&5
12632 $as_echo_n "checking whether spec files are available... " >&6; }
12633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($RPM_SPEC_DIR/*.spec.in)" >&5
12634 $as_echo "yes ($RPM_SPEC_DIR/*.spec.in)" >&6; }
12656 DPKGBUILD
=dpkg-buildpackage
12658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $DPKG is available" >&5
12659 $as_echo_n "checking whether $DPKG is available... " >&6; }
12660 if tmp
=$
($DPKG --version 2>/dev
/null
); then :
12662 DPKG_VERSION
=$
(echo $tmp |
$AWK '/Debian/ { print $7 }')
12664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_DPKG ($DPKG_VERSION)" >&5
12665 $as_echo "$HAVE_DPKG ($DPKG_VERSION)" >&6; }
12670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_DPKG" >&5
12671 $as_echo "$HAVE_DPKG" >&6; }
12675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $DPKGBUILD is available" >&5
12676 $as_echo_n "checking whether $DPKGBUILD is available... " >&6; }
12677 if tmp
=$
($DPKGBUILD --version 2>/dev
/null
); then :
12679 DPKGBUILD_VERSION
=$
(echo $tmp | \
12680 $AWK '/Debian/ { print $4 }' | cut
-f-4 -d'.')
12682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_DPKGBUILD ($DPKGBUILD_VERSION)" >&5
12683 $as_echo "$HAVE_DPKGBUILD ($DPKGBUILD_VERSION)" >&6; }
12688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_DPKGBUILD" >&5
12689 $as_echo "$HAVE_DPKGBUILD" >&6; }
12704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ALIEN is available" >&5
12705 $as_echo_n "checking whether $ALIEN is available... " >&6; }
12706 if tmp
=$
($ALIEN --version 2>/dev
/null
); then :
12708 ALIEN_VERSION
=$
(echo $tmp |
$AWK '{ print $3 }')
12710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_ALIEN ($ALIEN_VERSION)" >&5
12711 $as_echo "$HAVE_ALIEN ($ALIEN_VERSION)" >&6; }
12716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_ALIEN" >&5
12717 $as_echo "$HAVE_ALIEN" >&6; }
12727 TARGET_ASM_DIR
=asm-generic
12732 # Check whether --with-config was given.
12733 if test "${with_config+set}" = set; then :
12734 withval
=$with_config; ZFS_CONFIG
="$withval"
12737 # Check whether --enable-linux-builtin was given.
12738 if test "${enable_linux_builtin+set}" = set; then :
12739 enableval
=$enable_linux_builtin;
12741 enable_linux_builtin
=no
12745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking zfs config" >&5
12746 $as_echo_n "checking zfs config... " >&6; }
12747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZFS_CONFIG" >&5
12748 $as_echo "$ZFS_CONFIG" >&6; };
12753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -Wno-unused-but-set-variable support" >&5
12754 $as_echo_n "checking for -Wno-unused-but-set-variable support... " >&6; }
12756 saved_flags
="$CFLAGS"
12757 CFLAGS
="$CFLAGS -Wunused-but-set-variable"
12759 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12760 /* end confdefs.h. */
12770 if ac_fn_c_try_compile
"$LINENO"; then :
12772 NO_UNUSED_BUT_SET_VARIABLE
=-Wno-unused-but-set-variable
12773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12774 $as_echo "yes" >&6; }
12778 NO_UNUSED_BUT_SET_VARIABLE
=
12779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12780 $as_echo "no" >&6; }
12783 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12785 CFLAGS
="$saved_flags"
12789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -Wno-bool-compare support" >&5
12790 $as_echo_n "checking for -Wno-bool-compare support... " >&6; }
12792 saved_flags
="$CFLAGS"
12793 CFLAGS
="$CFLAGS -Wbool-compare"
12795 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12796 /* end confdefs.h. */
12806 if ac_fn_c_try_compile
"$LINENO"; then :
12808 NO_BOOL_COMPARE
=-Wno-bool-compare
12809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12810 $as_echo "yes" >&6; }
12815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12816 $as_echo "no" >&6; }
12819 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12821 CFLAGS
="$saved_flags"
12826 case "$ZFS_CONFIG" in
12829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dkms.conf file" >&5
12830 $as_echo_n "checking for dkms.conf file... " >&6; }
12831 if test -e dkms.conf
; then :
12834 *** ZFS should not be manually built in the DKMS source tree.
12835 *** Remove all ZFS packages before compiling the ZoL sources.
12836 *** Running \"make install\" breaks ZFS packages." "$LINENO" 5
12840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
12841 $as_echo "not found" >&6; }
12847 # Check whether --with-mounthelperdir was given.
12848 if test "${with_mounthelperdir+set}" = set; then :
12849 withval
=$with_mounthelperdir; mounthelperdir
=$withval
12851 mounthelperdir
=/sbin
12858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for udev directories" >&5
12859 $as_echo_n "checking for udev directories... " >&6; }
12861 # Check whether --with-udevdir was given.
12862 if test "${with_udevdir+set}" = set; then :
12863 withval
=$with_udevdir; udevdir
=$withval
12869 if test "x$udevdir" = xcheck
; then :
12872 path2
=/usr
/lib
/udev
12875 if test -d "$path1"; then :
12879 if test -d "$path2"; then :
12890 # Check whether --with-udevruledir was given.
12891 if test "${with_udevruledir+set}" = set; then :
12892 withval
=$with_udevruledir; udevruledir
=$withval
12894 udevruledir
="${udevdir}/rules.d"
12900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $udevdir;$udevruledir" >&5
12901 $as_echo "$udevdir;$udevruledir" >&6; }
12904 # Check whether --enable-systemd was given.
12905 if test "${enable_systemd+set}" = set; then :
12906 enableval
=$enable_systemd;
12913 # Check whether --with-systemdunitdir was given.
12914 if test "${with_systemdunitdir+set}" = set; then :
12915 withval
=$with_systemdunitdir; systemdunitdir
=$withval
12917 systemdunitdir
=/usr
/lib
/systemd
/system
12922 # Check whether --with-systemdpresetdir was given.
12923 if test "${with_systemdpresetdir+set}" = set; then :
12924 withval
=$with_systemdpresetdir; systemdpresetdir
=$withval
12926 systemdpresetdir
=/usr
/lib
/systemd
/system-preset
12931 # Check whether --with-systemdmodulesloaddir was given.
12932 if test "${with_systemdmodulesloaddir+set}" = set; then :
12933 withval
=$with_systemdmodulesloaddir; systemdmoduleloaddir
=$withval
12935 systemdmodulesloaddir
=/usr
/lib
/modules-load.d
12940 if test "x$enable_systemd" = xyes
; then :
12942 ZFS_INIT_SYSTEMD
=systemd
12943 ZFS_MODULE_LOAD
=modules-load.d
12944 modulesloaddir
=$systemdmodulesloaddir
12955 # Check whether --enable-sysvinit was given.
12956 if test "${enable_sysvinit+set}" = set; then :
12957 enableval
=$enable_sysvinit;
12959 enable_sysvinit
=yes
12963 if test "x$enable_sysvinit" = xyes
; then :
12964 ZFS_INIT_SYSV
=init.d
12970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dracut directory" >&5
12971 $as_echo_n "checking for dracut directory... " >&6; }
12973 # Check whether --with-dracutdir was given.
12974 if test "${with_dracutdir+set}" = set; then :
12975 withval
=$with_dracutdir; dracutdir
=$withval
12981 if test "x$dracutdir" = xcheck
; then :
12983 path1
=/usr
/share
/dracut
12984 path2
=/usr
/lib
/dracut
12987 if test -d "$path1"; then :
12991 if test -d "$path2"; then :
12994 dracutdir
="$default"
13002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dracutdir" >&5
13003 $as_echo "$dracutdir" >&6; }
13006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for target asm dir" >&5
13007 $as_echo_n "checking for target asm dir... " >&6; }
13008 TARGET_ARCH
=`echo ${target_cpu} | sed -e s/i.86/i386/`
13010 case $TARGET_ARCH in
13012 TARGET_ASM_DIR
=asm-
${TARGET_ARCH}
13015 TARGET_ASM_DIR
=asm-generic
13020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TARGET_ASM_DIR" >&5
13021 $as_echo "$TARGET_ASM_DIR" >&6; }
13026 ac_fn_c_check_header_mongrel
"$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
13027 if test "x$ac_cv_header_zlib_h" = xyes
; then :
13030 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13031 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13033 *** zlib.h missing, zlib-devel package required
13034 See \`config.log' for more details" "$LINENO" 5; }
13039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compress2 in -lz" >&5
13040 $as_echo_n "checking for compress2 in -lz... " >&6; }
13041 if ${ac_cv_lib_z_compress2+:} false
; then :
13042 $as_echo_n "(cached) " >&6
13044 ac_check_lib_save_LIBS
=$LIBS
13046 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13047 /* end confdefs.h. */
13049 /* Override any GCC internal prototype to avoid an error.
13050 Use char because int might match the return type of a GCC
13051 builtin and then its argument prototype would still apply. */
13059 return compress2 ();
13064 if ac_fn_c_try_link
"$LINENO"; then :
13065 ac_cv_lib_z_compress2
=yes
13067 ac_cv_lib_z_compress2
=no
13069 rm -f core conftest.err conftest.
$ac_objext \
13070 conftest
$ac_exeext conftest.
$ac_ext
13071 LIBS
=$ac_check_lib_save_LIBS
13073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_compress2" >&5
13074 $as_echo "$ac_cv_lib_z_compress2" >&6; }
13075 if test "x$ac_cv_lib_z_compress2" = xyes
; then :
13076 cat >>confdefs.h
<<_ACEOF
13077 #define HAVE_LIBZ 1
13083 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13084 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13086 *** compress2() missing, zlib-devel package required
13087 See \`config.log' for more details" "$LINENO" 5; }
13091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uncompress in -lz" >&5
13092 $as_echo_n "checking for uncompress in -lz... " >&6; }
13093 if ${ac_cv_lib_z_uncompress+:} false
; then :
13094 $as_echo_n "(cached) " >&6
13096 ac_check_lib_save_LIBS
=$LIBS
13098 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13099 /* end confdefs.h. */
13101 /* Override any GCC internal prototype to avoid an error.
13102 Use char because int might match the return type of a GCC
13103 builtin and then its argument prototype would still apply. */
13107 char uncompress ();
13111 return uncompress ();
13116 if ac_fn_c_try_link
"$LINENO"; then :
13117 ac_cv_lib_z_uncompress
=yes
13119 ac_cv_lib_z_uncompress
=no
13121 rm -f core conftest.err conftest.
$ac_objext \
13122 conftest
$ac_exeext conftest.
$ac_ext
13123 LIBS
=$ac_check_lib_save_LIBS
13125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_uncompress" >&5
13126 $as_echo "$ac_cv_lib_z_uncompress" >&6; }
13127 if test "x$ac_cv_lib_z_uncompress" = xyes
; then :
13128 cat >>confdefs.h
<<_ACEOF
13129 #define HAVE_LIBZ 1
13135 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13136 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13138 *** uncompress() missing, zlib-devel package required
13139 See \`config.log' for more details" "$LINENO" 5; }
13143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for crc32 in -lz" >&5
13144 $as_echo_n "checking for crc32 in -lz... " >&6; }
13145 if ${ac_cv_lib_z_crc32+:} false
; then :
13146 $as_echo_n "(cached) " >&6
13148 ac_check_lib_save_LIBS
=$LIBS
13150 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13151 /* end confdefs.h. */
13153 /* Override any GCC internal prototype to avoid an error.
13154 Use char because int might match the return type of a GCC
13155 builtin and then its argument prototype would still apply. */
13168 if ac_fn_c_try_link
"$LINENO"; then :
13169 ac_cv_lib_z_crc32
=yes
13171 ac_cv_lib_z_crc32
=no
13173 rm -f core conftest.err conftest.
$ac_objext \
13174 conftest
$ac_exeext conftest.
$ac_ext
13175 LIBS
=$ac_check_lib_save_LIBS
13177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_crc32" >&5
13178 $as_echo "$ac_cv_lib_z_crc32" >&6; }
13179 if test "x$ac_cv_lib_z_crc32" = xyes
; then :
13180 cat >>confdefs.h
<<_ACEOF
13181 #define HAVE_LIBZ 1
13187 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13188 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13190 *** crc32() missing, zlib-devel package required
13191 See \`config.log' for more details" "$LINENO" 5; }
13198 $as_echo "#define HAVE_ZLIB 1" >>confdefs.h
13204 ac_fn_c_check_header_mongrel
"$LINENO" "uuid/uuid.h" "ac_cv_header_uuid_uuid_h" "$ac_includes_default"
13205 if test "x$ac_cv_header_uuid_uuid_h" = xyes
; then :
13208 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13209 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13211 *** uuid/uuid.h missing, libuuid-devel package required
13212 See \`config.log' for more details" "$LINENO" 5; }
13217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uuid_generate in -luuid" >&5
13218 $as_echo_n "checking for uuid_generate in -luuid... " >&6; }
13219 if ${ac_cv_lib_uuid_uuid_generate+:} false
; then :
13220 $as_echo_n "(cached) " >&6
13222 ac_check_lib_save_LIBS
=$LIBS
13223 LIBS
="-luuid $LIBS"
13224 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13225 /* end confdefs.h. */
13227 /* Override any GCC internal prototype to avoid an error.
13228 Use char because int might match the return type of a GCC
13229 builtin and then its argument prototype would still apply. */
13233 char uuid_generate ();
13237 return uuid_generate ();
13242 if ac_fn_c_try_link
"$LINENO"; then :
13243 ac_cv_lib_uuid_uuid_generate
=yes
13245 ac_cv_lib_uuid_uuid_generate
=no
13247 rm -f core conftest.err conftest.
$ac_objext \
13248 conftest
$ac_exeext conftest.
$ac_ext
13249 LIBS
=$ac_check_lib_save_LIBS
13251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_uuid_uuid_generate" >&5
13252 $as_echo "$ac_cv_lib_uuid_uuid_generate" >&6; }
13253 if test "x$ac_cv_lib_uuid_uuid_generate" = xyes
; then :
13254 cat >>confdefs.h
<<_ACEOF
13255 #define HAVE_LIBUUID 1
13258 LIBS
="-luuid $LIBS"
13261 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13262 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13264 *** uuid_generate() missing, libuuid-devel package required
13265 See \`config.log' for more details" "$LINENO" 5; }
13269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uuid_is_null in -luuid" >&5
13270 $as_echo_n "checking for uuid_is_null in -luuid... " >&6; }
13271 if ${ac_cv_lib_uuid_uuid_is_null+:} false
; then :
13272 $as_echo_n "(cached) " >&6
13274 ac_check_lib_save_LIBS
=$LIBS
13275 LIBS
="-luuid $LIBS"
13276 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13277 /* end confdefs.h. */
13279 /* Override any GCC internal prototype to avoid an error.
13280 Use char because int might match the return type of a GCC
13281 builtin and then its argument prototype would still apply. */
13285 char uuid_is_null ();
13289 return uuid_is_null ();
13294 if ac_fn_c_try_link
"$LINENO"; then :
13295 ac_cv_lib_uuid_uuid_is_null
=yes
13297 ac_cv_lib_uuid_uuid_is_null
=no
13299 rm -f core conftest.err conftest.
$ac_objext \
13300 conftest
$ac_exeext conftest.
$ac_ext
13301 LIBS
=$ac_check_lib_save_LIBS
13303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_uuid_uuid_is_null" >&5
13304 $as_echo "$ac_cv_lib_uuid_uuid_is_null" >&6; }
13305 if test "x$ac_cv_lib_uuid_uuid_is_null" = xyes
; then :
13306 cat >>confdefs.h
<<_ACEOF
13307 #define HAVE_LIBUUID 1
13310 LIBS
="-luuid $LIBS"
13313 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13314 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13316 *** uuid_is_null() missing, libuuid-devel package required
13317 See \`config.log' for more details" "$LINENO" 5; }
13324 $as_echo "#define HAVE_LIBUUID 1" >>confdefs.h
13329 # Check whether --with-blkid was given.
13330 if test "${with_blkid+set}" = set; then :
13331 withval
=$with_blkid;
13338 if test "x$with_blkid" = xyes
; then :
13343 $as_echo "#define HAVE_LIBBLKID 1" >>confdefs.h
13348 if test "x$with_blkid" = xcheck
; then :
13350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for blkid_get_cache in -lblkid" >&5
13351 $as_echo_n "checking for blkid_get_cache in -lblkid... " >&6; }
13352 if ${ac_cv_lib_blkid_blkid_get_cache+:} false
; then :
13353 $as_echo_n "(cached) " >&6
13355 ac_check_lib_save_LIBS
=$LIBS
13356 LIBS
="-lblkid $LIBS"
13357 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13358 /* end confdefs.h. */
13360 /* Override any GCC internal prototype to avoid an error.
13361 Use char because int might match the return type of a GCC
13362 builtin and then its argument prototype would still apply. */
13366 char blkid_get_cache ();
13370 return blkid_get_cache ();
13375 if ac_fn_c_try_link
"$LINENO"; then :
13376 ac_cv_lib_blkid_blkid_get_cache
=yes
13378 ac_cv_lib_blkid_blkid_get_cache
=no
13380 rm -f core conftest.err conftest.
$ac_objext \
13381 conftest
$ac_exeext conftest.
$ac_ext
13382 LIBS
=$ac_check_lib_save_LIBS
13384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_blkid_blkid_get_cache" >&5
13385 $as_echo "$ac_cv_lib_blkid_blkid_get_cache" >&6; }
13386 if test "x$ac_cv_lib_blkid_blkid_get_cache" = xyes
; then :
13388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for blkid zfs support" >&5
13389 $as_echo_n "checking for blkid zfs support... " >&6; }
13392 truncate
-s 64M
$ZFS_DEV
13393 echo -en "\x0c\xb1\xba\0\0\0\0\0" | \
13394 dd of
=$ZFS_DEV bs
=1k count
=8 \
13395 seek
=128 conv
=notrunc
&>/dev
/null \
13396 >/dev
/null
2>/dev
/null
13397 echo -en "\x0c\xb1\xba\0\0\0\0\0" | \
13398 dd of
=$ZFS_DEV bs
=1k count
=8 \
13399 seek
=132 conv
=notrunc
&>/dev
/null \
13400 >/dev
/null
2>/dev
/null
13401 echo -en "\x0c\xb1\xba\0\0\0\0\0" | \
13402 dd of
=$ZFS_DEV bs
=1k count
=8 \
13403 seek
=136 conv
=notrunc
&>/dev
/null \
13404 >/dev
/null
2>/dev
/null
13405 echo -en "\x0c\xb1\xba\0\0\0\0\0" | \
13406 dd of
=$ZFS_DEV bs
=1k count
=8 \
13407 seek
=140 conv
=notrunc
&>/dev
/null \
13408 >/dev
/null
2>/dev
/null
13413 if test "$cross_compiling" = yes; then :
13414 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13415 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13416 as_fn_error $?
"cannot run test program while cross compiling
13417 See \`config.log' for more details" "$LINENO" 5; }
13419 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13420 /* end confdefs.h. */
13423 #include <stdlib.h>
13424 #include <blkid/blkid.h>
13433 if (blkid_get_cache(&cache, NULL) < 0)
13436 value = blkid_get_tag_value(cache, "TYPE",
13439 blkid_put_cache(cache);
13443 if (strcmp(value, "zfs_member")) {
13445 blkid_put_cache(cache);
13450 blkid_put_cache(cache);
13456 if ac_fn_c_try_run
"$LINENO"; then :
13459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13460 $as_echo "yes" >&6; }
13464 $as_echo "#define HAVE_LIBBLKID 1" >>confdefs.h
13470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13471 $as_echo "no" >&6; }
13472 if test "x$with_blkid" != xcheck
; then :
13473 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13474 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13475 as_fn_error $?
"--with-blkid given but unavailable
13476 See \`config.log' for more details" "$LINENO" 5; }
13480 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
13481 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
13489 if test "x$with_blkid" != xcheck
; then :
13490 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13491 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13492 as_fn_error $?
"--with-blkid given but unavailable
13493 See \`config.log' for more details" "$LINENO" 5; }
13503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -Wframe-larger-than=<size> support" >&5
13504 $as_echo_n "checking for -Wframe-larger-than=<size> support... " >&6; }
13506 saved_flags
="$CFLAGS"
13507 CFLAGS
="$CFLAGS -Wframe-larger-than=1024"
13509 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13510 /* end confdefs.h. */
13520 if ac_fn_c_try_compile
"$LINENO"; then :
13522 FRAME_LARGER_THAN
=-Wframe-larger-than=1024
13523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13524 $as_echo "yes" >&6; }
13529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13530 $as_echo "no" >&6; }
13533 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13535 CFLAGS
="$saved_flags"
13539 if test "x$runstatedir" = x
; then
13540 runstatedir
='${localstatedir}/run'
13545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking makedev() is declared in sys/sysmacros.h" >&5
13546 $as_echo_n "checking makedev() is declared in sys/sysmacros.h... " >&6; }
13547 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13548 /* end confdefs.h. */
13550 #include <sys/sysmacros.h>
13563 if ac_fn_c_try_compile
"$LINENO"; then :
13565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13566 $as_echo "yes" >&6; }
13568 $as_echo "#define HAVE_MAKEDEV_IN_SYSMACROS 1" >>confdefs.h
13573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13574 $as_echo "no" >&6; }
13577 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking makedev() is declared in sys/mkdev.h" >&5
13581 $as_echo_n "checking makedev() is declared in sys/mkdev.h... " >&6; }
13582 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13583 /* end confdefs.h. */
13585 #include <sys/mkdev.h>
13598 if ac_fn_c_try_compile
"$LINENO"; then :
13600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13601 $as_echo "yes" >&6; }
13603 $as_echo "#define HAVE_MAKEDEV_IN_MKDEV 1" >>confdefs.h
13608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13609 $as_echo "no" >&6; }
13612 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -Wno-format-truncation support" >&5
13616 $as_echo_n "checking for -Wno-format-truncation support... " >&6; }
13618 saved_flags
="$CFLAGS"
13619 CFLAGS
="$CFLAGS -Wno-format-truncation"
13621 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13622 /* end confdefs.h. */
13632 if ac_fn_c_try_compile
"$LINENO"; then :
13634 NO_FORMAT_TRUNCATION
=-Wno-format-truncation
13635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13636 $as_echo "yes" >&6; }
13640 NO_FORMAT_TRUNCATION
=
13641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13642 $as_echo "no" >&6; }
13645 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13647 CFLAGS
="$saved_flags"
13650 for ac_func
in mlockall
13652 ac_fn_c_check_func
"$LINENO" "mlockall" "ac_cv_func_mlockall"
13653 if test "x$ac_cv_func_mlockall" = xyes
; then :
13654 cat >>confdefs.h
<<_ACEOF
13655 #define HAVE_MLOCKALL 1
13665 # Check whether --with-linux was given.
13666 if test "${with_linux+set}" = set; then :
13667 withval
=$with_linux; kernelsrc
="$withval"
13672 # Check whether --with-linux-obj was given.
13673 if test "${with_linux_obj+set}" = set; then :
13674 withval
=$with_linux_obj; kernelbuild
="$withval"
13678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking kernel source directory" >&5
13679 $as_echo_n "checking kernel source directory... " >&6; }
13680 if test -z "$kernelsrc"; then :
13682 if test -e "/lib/modules/$(uname -r)/source"; then :
13684 headersdir
="/lib/modules/$(uname -r)/source"
13685 sourcelink
=$
(readlink
-f "$headersdir")
13687 elif test -e "/lib/modules/$(uname -r)/build"; then :
13689 headersdir
="/lib/modules/$(uname -r)/build"
13690 sourcelink
=$
(readlink
-f "$headersdir")
13694 sourcelink
=$
(ls -1d /usr
/src
/kernels
/* \
13696 2>/dev
/null |
grep -v obj |
tail -1)
13700 if test -n "$sourcelink" && test -e ${sourcelink}; then :
13702 kernelsrc
=`readlink -f ${sourcelink}`
13706 kernelsrc
="Not found"
13712 if test "$kernelsrc" = "NONE"; then :
13720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kernelsrc" >&5
13721 $as_echo "$kernelsrc" >&6; }
13722 if test ! -d "$kernelsrc"; then :
13725 *** Please make sure the kernel devel package for your distribution
13726 *** is installed and then try again. If that fails, you can specify the
13727 *** location of the kernel source with the '--with-linux=PATH' option." "$LINENO" 5
13731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking kernel build directory" >&5
13732 $as_echo_n "checking kernel build directory... " >&6; }
13733 if test -z "$kernelbuild"; then :
13735 if test -e "/lib/modules/$(uname -r)/build"; then :
13737 kernelbuild
=`readlink -f /lib/modules/$(uname -r)/build`
13739 elif test -d ${kernelsrc}-obj/${target_cpu}/${target_cpu}; then :
13741 kernelbuild
=${kernelsrc}-obj/${target_cpu}/${target_cpu}
13743 elif test -d ${kernelsrc}-obj/${target_cpu}/default
; then :
13745 kernelbuild
=${kernelsrc}-obj/${target_cpu}/default
13747 elif test -d `dirname ${kernelsrc}`/build-
${target_cpu}; then :
13749 kernelbuild
=`dirname ${kernelsrc}`/build-
${target_cpu}
13753 kernelbuild
=${kernelsrc}
13758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kernelbuild" >&5
13759 $as_echo "$kernelbuild" >&6; }
13761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking kernel source version" >&5
13762 $as_echo_n "checking kernel source version... " >&6; }
13763 utsrelease1
=$kernelbuild/include
/linux
/version.h
13764 utsrelease2
=$kernelbuild/include
/linux
/utsrelease.h
13765 utsrelease3
=$kernelbuild/include
/generated
/utsrelease.h
13766 if test -r $utsrelease1 && fgrep
-q UTS_RELEASE
$utsrelease1; then :
13768 utsrelease
=linux
/version.h
13770 elif test -r $utsrelease2 && fgrep
-q UTS_RELEASE
$utsrelease2; then :
13772 utsrelease
=linux
/utsrelease.h
13774 elif test -r $utsrelease3 && fgrep
-q UTS_RELEASE
$utsrelease3; then :
13776 utsrelease
=generated
/utsrelease.h
13780 if test "$utsrelease"; then :
13782 kernsrcver
=`(echo "#include <$utsrelease>";
13783 echo "kernsrcver=UTS_RELEASE") |
13784 cpp -I $kernelbuild/include |
13785 grep "^kernsrcver=" | cut -d \" -f 2`
13787 if test -z "$kernsrcver"; then :
13789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not found" >&5
13790 $as_echo "Not found" >&6; }
13791 as_fn_error $?
"*** Cannot determine kernel version." "$LINENO" 5
13797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not found" >&5
13798 $as_echo "Not found" >&6; }
13799 if test "x$enable_linux_builtin" != xyes
; then
13800 as_fn_error $?
"*** Cannot find UTS_RELEASE definition." "$LINENO" 5
13803 *** Cannot find UTS_RELEASE definition.
13804 *** Please run 'make prepare' inside the kernel source tree." "$LINENO" 5
13809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kernsrcver" >&5
13810 $as_echo "$kernsrcver" >&6; }
13813 LINUX_OBJ
=${kernelbuild}
13814 LINUX_VERSION
=${kernsrcver}
13821 modpost
=$LINUX/scripts
/Makefile.modpost
13822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking kernel file name for module symbols" >&5
13823 $as_echo_n "checking kernel file name for module symbols... " >&6; }
13824 if test "x$enable_linux_builtin" != xyes
-a -f "$modpost"; then :
13826 if grep -q Modules.symvers
$modpost; then :
13828 LINUX_SYMBOLS
=Modules.symvers
13832 LINUX_SYMBOLS
=Module.symvers
13836 if test ! -f "$LINUX_OBJ/$LINUX_SYMBOLS"; then :
13839 *** Please make sure the kernel devel package for your distribution
13840 *** is installed. If you are building with a custom kernel, make sure the
13841 *** kernel is configured, built, and the '--with-linux=PATH' configure
13842 *** option refers to the location of the kernel source." "$LINENO" 5
13851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINUX_SYMBOLS" >&5
13852 $as_echo "$LINUX_SYMBOLS" >&6; }
13858 # Check whether --with-spl was given.
13859 if test "${with_spl+set}" = set; then :
13860 withval
=$with_spl; splsrc
="$withval"
13865 # Check whether --with-spl-obj was given.
13866 if test "${with_spl_obj+set}" = set; then :
13867 withval
=$with_spl_obj; splbuild
="$withval"
13872 # Check whether --with-spl-timeout was given.
13873 if test "${with_spl_timeout+set}" = set; then :
13874 withval
=$with_spl_timeout; timeout
="$withval"
13880 splsrc0
="/var/lib/dkms/spl/${VERSION}/build"
13881 splsrc1
="/usr/local/src/spl-${VERSION}/${LINUX_VERSION}"
13882 splsrc2
="/usr/local/src/spl-${VERSION}"
13883 splsrc3
="/usr/src/spl-${VERSION}/${LINUX_VERSION}"
13884 splsrc4
="/usr/src/spl-${VERSION}"
13888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking spl source directory" >&5
13889 $as_echo_n "checking spl source directory... " >&6; }
13890 if test -z "${splsrc}"; then :
13892 if test -e "${splsrc0}/spl.release.in"; then :
13896 elif test -e "${splsrc1}/spl.release.in"; then :
13900 elif test -e "${splsrc2}/spl.release.in"; then :
13904 elif test -e "${splsrc3}/spl.release.in"; then :
13906 splsrc
=$
(readlink
-f "${splsrc3}")
13908 elif test -e "${splsrc4}/spl.release.in" ; then :
13912 elif test -e "${splsrc5}/spl.release.in"; then :
13914 splsrc
=$
(readlink
-f "${splsrc5}")
13916 elif test -e "${splsrc6}/spl.release.in" ; then :
13928 if test "$splsrc" = "NONE"; then :
13937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $splsrc" >&5
13938 $as_echo "$splsrc" >&6; }
13939 if test ! -e "$splsrc/spl.release.in"; then :
13942 *** Please make sure the kmod spl devel package for your distribution
13943 *** is installed then try again. If that fails you can specify the
13944 *** location of the spl source with the '--with-spl=PATH' option." "$LINENO" 5
13948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking spl build directory" >&5
13949 $as_echo_n "checking spl build directory... " >&6; }
13951 if test -z "$splbuild"; then :
13953 if test -e "${splsrc}/${LINUX_VERSION}/spl_config.h" ; then :
13955 splbuild
="${splsrc}/${LINUX_VERSION}"
13957 elif test -e "${splsrc}/spl_config.h" ; then :
13959 splbuild
="${splsrc}"
13961 elif find -L "${splsrc}" -name spl_config.h
2> /dev
/null |
grep -wq spl_config.h
; then :
13963 splbuild
=$
(find -L "${splsrc}" -name spl_config.h |
sed 's,/spl_config.h,,')
13967 splbuild
="Not found"
13972 if test -e "$splbuild/spl_config.h" -o $timeout -le 0; then :
13979 timeout
=$
((timeout-1
))
13984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $splbuild" >&5
13985 $as_echo "$splbuild" >&6; }
13986 if ! test -e "$splbuild/spl_config.h"; then :
13989 *** Please make sure the kmod spl devel <kernel> package for your
13990 *** distribution is installed then try again. If that fails you
13991 *** can specify the location of the spl objects with the
13992 *** '--with-spl-obj=PATH' option." "$LINENO" 5
13996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking spl source version" >&5
13997 $as_echo_n "checking spl source version... " >&6; }
13998 if test -r $splbuild/spl_config.h
&&
13999 fgrep
-q SPL_META_VERSION
$splbuild/spl_config.h
; then :
14002 splsrcver
=`(echo "#include <spl_config.h>";
14003 echo "splsrcver=SPL_META_VERSION-SPL_META_RELEASE") |
14005 grep "^splsrcver=" | tr -d \" | cut -d= -f2`
14009 if test -z "$splsrcver"; then :
14011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not found" >&5
14012 $as_echo "Not found" >&6; }
14014 *** Cannot determine the version of the spl source.
14015 *** Please prepare the spl source before running this script" "$LINENO" 5
14019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $splsrcver" >&5
14020 $as_echo "$splsrcver" >&6; }
14023 SPL_OBJ
=${splbuild}
14024 SPL_VERSION
=${splsrcver}
14030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking spl file name for module symbols" >&5
14031 $as_echo_n "checking spl file name for module symbols... " >&6; }
14035 if test -r $SPL_OBJ/Module.symvers
; then :
14037 SPL_SYMBOLS
=Module.symvers
14039 elif test -r $SPL_OBJ/Modules.symvers
; then :
14041 SPL_SYMBOLS
=Modules.symvers
14043 elif test -r $SPL_OBJ/module
/Module.symvers
; then :
14045 SPL_SYMBOLS
=Module.symvers
14047 elif test -r $SPL_OBJ/module
/Modules.symvers
; then :
14049 SPL_SYMBOLS
=Modules.symvers
14053 if test $SPL_SYMBOLS != NONE
-o $timeout -le 0; then :
14060 timeout
=$
((timeout-1
))
14065 if test "$SPL_SYMBOLS" = NONE
; then :
14067 SPL_SYMBOLS
=$LINUX_SYMBOLS
14071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SPL_SYMBOLS" >&5
14072 $as_echo "$SPL_SYMBOLS" >&6; }
14076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether modules can be built" >&5
14077 $as_echo_n "checking whether modules can be built... " >&6; }
14080 cat confdefs.h
- <<_ACEOF >conftest.c
14095 cat - <<_ACEOF >conftest.h
14100 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
14101 echo "obj-m := conftest.o" >build
/Makefile
14103 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
14104 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
14105 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14106 (eval $ac_try) 2>&5
14108 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14109 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
14110 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14111 (eval $ac_try) 2>&5
14113 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14114 test $ac_status = 0; }; }; then :
14116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14117 $as_echo "yes" >&6; }
14120 $as_echo "$as_me: failed program was:" >&5
14121 sed 's/^/| /' conftest.
$ac_ext >&5
14123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14124 $as_echo "no" >&6; }
14125 if test "x$enable_linux_builtin" != xyes
; then
14126 as_fn_error $?
"*** Unable to build an empty module." "$LINENO" 5
14129 *** Unable to build an empty module.
14130 *** Please run 'make scripts' inside the kernel source tree." "$LINENO" 5
14141 if test "x$cross_compiling" != xyes
; then :
14143 if test "$cross_compiling" = yes; then :
14144 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14145 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14146 as_fn_error $?
"cannot run test program while cross compiling
14147 See \`config.log' for more details" "$LINENO" 5; }
14149 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14150 /* end confdefs.h. */
14153 #include "$LINUX/include/linux/license.h"
14159 return !license_is_gpl_compatible("$ZFS_META_LICENSE");
14166 if ac_fn_c_try_run
"$LINENO"; then :
14169 $as_echo "#define ZFS_IS_GPL_COMPATIBLE 1" >>confdefs.h
14173 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
14174 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
14181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether kernel was built with 16K or larger stacks" >&5
14182 $as_echo_n "checking whether kernel was built with 16K or larger stacks... " >&6; }
14185 cat confdefs.h
- <<_ACEOF >conftest.c
14188 #include <linux/module.h>
14194 #if (THREAD_SIZE < 16384)
14195 #error "THREAD_SIZE is less than 16K"
14206 cat - <<_ACEOF >conftest.h
14211 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
14212 echo "obj-m := conftest.o" >build
/Makefile
14214 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
14215 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
14216 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14217 (eval $ac_try) 2>&5
14219 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14220 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
14221 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14222 (eval $ac_try) 2>&5
14224 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14225 test $ac_status = 0; }; }; then :
14227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14228 $as_echo "yes" >&6; }
14230 $as_echo "#define HAVE_LARGE_STACKS 1" >>confdefs.h
14234 $as_echo "$as_me: failed program was:" >&5
14235 sed 's/^/| /' conftest.
$ac_ext >&5
14237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14238 $as_echo "no" >&6; }
14249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether kernel was built with CONFIG_DEBUG_LOCK_ALLOC" >&5
14250 $as_echo_n "checking whether kernel was built with CONFIG_DEBUG_LOCK_ALLOC... " >&6; }
14253 cat confdefs.h
- <<_ACEOF >conftest.c
14256 #include <linux/module.h>
14262 #ifndef CONFIG_DEBUG_LOCK_ALLOC
14263 #error CONFIG_DEBUG_LOCK_ALLOC not #defined
14274 cat - <<_ACEOF >conftest.h
14279 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
14280 echo "obj-m := conftest.o" >build
/Makefile
14282 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
14283 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
14284 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14285 (eval $ac_try) 2>&5
14287 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14288 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
14289 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14290 (eval $ac_try) 2>&5
14292 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14293 test $ac_status = 0; }; }; then :
14295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14296 $as_echo "yes" >&6; }
14298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mutex_lock() is GPL-only" >&5
14299 $as_echo_n "checking whether mutex_lock() is GPL-only... " >&6; }
14300 tmp_flags
="$EXTRA_KCFLAGS"
14303 cat confdefs.h
- <<_ACEOF >conftest.c
14306 #include <linux/module.h>
14307 #include <linux/mutex.h>
14309 MODULE_LICENSE("$ZFS_META_LICENSE");
14319 mutex_unlock(&lock);
14329 cat - <<_ACEOF >conftest.h
14334 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
14335 echo "obj-m := conftest.o" >build
/Makefile
14337 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
14338 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
14339 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14340 (eval $ac_try) 2>&5
14342 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14343 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
14344 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14345 (eval $ac_try) 2>&5
14347 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14348 test $ac_status = 0; }; }; then :
14350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14351 $as_echo "no" >&6; }
14354 $as_echo "$as_me: failed program was:" >&5
14355 sed 's/^/| /' conftest.
$ac_ext >&5
14357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14358 $as_echo "yes" >&6; }
14360 *** Kernel built with CONFIG_DEBUG_LOCK_ALLOC which is incompatible
14361 *** with the CDDL license and will prevent the module linking stage
14362 *** from succeeding. You must rebuild your kernel without this
14363 *** option enabled." "$LINENO" 5
14371 EXTRA_KCFLAGS
="$tmp_flags"
14375 $as_echo "$as_me: failed program was:" >&5
14376 sed 's/^/| /' conftest.
$ac_ext >&5
14378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14379 $as_echo "no" >&6; }
14392 tmp_flags
="$EXTRA_KCFLAGS"
14393 EXTRA_KCFLAGS
="-I\$(src)"
14395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether DECLARE_EVENT_CLASS() is available" >&5
14396 $as_echo_n "checking whether DECLARE_EVENT_CLASS() is available... " >&6; }
14399 cat confdefs.h
- <<_ACEOF >conftest.c
14402 #include <linux/module.h>
14403 MODULE_LICENSE(ZFS_META_LICENSE);
14405 #define CREATE_TRACE_POINTS
14406 #include "conftest.h"
14412 trace_zfs_autoconf_event_one(1UL);
14413 trace_zfs_autoconf_event_two(2UL);
14423 cat - <<_ACEOF >conftest.h
14425 #if !defined(_CONFTEST_H) || defined(TRACE_HEADER_MULTI_READ)
14426 #define _CONFTEST_H
14428 #undef TRACE_SYSTEM
14429 #define TRACE_SYSTEM zfs
14430 #include <linux/tracepoint.h>
14432 DECLARE_EVENT_CLASS(zfs_autoconf_event_class,
14433 TP_PROTO(unsigned long i),
14436 __field(unsigned long, i)
14441 TP_printk("i = %lu", __entry->i)
14444 #define DEFINE_AUTOCONF_EVENT(name) \
14445 DEFINE_EVENT(zfs_autoconf_event_class, name, \
14446 TP_PROTO(unsigned long i), \
14448 DEFINE_AUTOCONF_EVENT(zfs_autoconf_event_one);
14449 DEFINE_AUTOCONF_EVENT(zfs_autoconf_event_two);
14451 #endif /* _CONFTEST_H */
14453 #undef TRACE_INCLUDE_PATH
14454 #define TRACE_INCLUDE_PATH .
14455 #define TRACE_INCLUDE_FILE conftest
14456 #include <trace/define_trace.h>
14461 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
14462 echo "obj-m := conftest.o" >build
/Makefile
14464 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
14465 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
14466 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14467 (eval $ac_try) 2>&5
14469 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14470 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
14471 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14472 (eval $ac_try) 2>&5
14474 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14475 test $ac_status = 0; }; }; then :
14477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14478 $as_echo "yes" >&6; }
14480 $as_echo "#define HAVE_DECLARE_EVENT_CLASS 1" >>confdefs.h
14484 $as_echo "$as_me: failed program was:" >&5
14485 sed 's/^/| /' conftest.
$ac_ext >&5
14487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14488 $as_echo "no" >&6; }
14496 EXTRA_KCFLAGS
="$tmp_flags"
14499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether current->bio_tail exists" >&5
14500 $as_echo_n "checking whether current->bio_tail exists... " >&6; }
14503 cat confdefs.h
- <<_ACEOF >conftest.c
14506 #include <linux/sched.h>
14512 current->bio_tail = (struct bio **) NULL;
14522 cat - <<_ACEOF >conftest.h
14527 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
14528 echo "obj-m := conftest.o" >build
/Makefile
14530 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
14531 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
14532 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14533 (eval $ac_try) 2>&5
14535 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14536 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
14537 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14538 (eval $ac_try) 2>&5
14540 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14541 test $ac_status = 0; }; }; then :
14543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14544 $as_echo "yes" >&6; }
14546 $as_echo "#define HAVE_CURRENT_BIO_TAIL 1" >>confdefs.h
14550 $as_echo "$as_me: failed program was:" >&5
14551 sed 's/^/| /' conftest.
$ac_ext >&5
14553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14554 $as_echo "no" >&6; }
14555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether current->bio_list exists" >&5
14556 $as_echo_n "checking whether current->bio_list exists... " >&6; }
14559 cat confdefs.h
- <<_ACEOF >conftest.c
14562 #include <linux/sched.h>
14568 current->bio_list = (struct bio_list *) NULL;
14578 cat - <<_ACEOF >conftest.h
14583 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
14584 echo "obj-m := conftest.o" >build
/Makefile
14586 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
14587 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
14588 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14589 (eval $ac_try) 2>&5
14591 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14592 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
14593 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14594 (eval $ac_try) 2>&5
14596 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14597 test $ac_status = 0; }; }; then :
14599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14600 $as_echo "yes" >&6; }
14602 $as_echo "#define HAVE_CURRENT_BIO_LIST 1" >>confdefs.h
14606 $as_echo "$as_me: failed program was:" >&5
14607 sed 's/^/| /' conftest.
$ac_ext >&5
14609 as_fn_error $?
"no - Please file a bug report at
14610 https://github.com/zfsonlinux/zfs/issues/new" "$LINENO" 5
14627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether submit_bio() wants 1 arg" >&5
14628 $as_echo_n "checking whether submit_bio() wants 1 arg... " >&6; }
14631 cat confdefs.h
- <<_ACEOF >conftest.c
14634 #include <linux/bio.h>
14641 struct bio *bio = NULL;
14642 blk_qc = submit_bio(bio);
14652 cat - <<_ACEOF >conftest.h
14657 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
14658 echo "obj-m := conftest.o" >build
/Makefile
14660 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
14661 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
14662 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14663 (eval $ac_try) 2>&5
14665 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14666 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
14667 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14668 (eval $ac_try) 2>&5
14670 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14671 test $ac_status = 0; }; }; then :
14673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14674 $as_echo "yes" >&6; }
14676 $as_echo "#define HAVE_1ARG_SUBMIT_BIO 1" >>confdefs.h
14680 $as_echo "$as_me: failed program was:" >&5
14681 sed 's/^/| /' conftest.
$ac_ext >&5
14683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14684 $as_echo "no" >&6; }
14694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking block device operation prototypes" >&5
14695 $as_echo_n "checking block device operation prototypes... " >&6; }
14696 tmp_flags
="$EXTRA_KCFLAGS"
14697 EXTRA_KCFLAGS
="${NO_UNUSED_BUT_SET_VARIABLE}"
14700 cat confdefs.h
- <<_ACEOF >conftest.c
14703 #include <linux/blkdev.h>
14705 int blk_open(struct block_device *bdev, fmode_t mode)
14707 int blk_ioctl(struct block_device *bdev, fmode_t mode,
14708 unsigned x, unsigned long y) { return 0; }
14709 int blk_compat_ioctl(struct block_device * bdev, fmode_t mode,
14710 unsigned x, unsigned long y) { return 0; }
14712 static const struct block_device_operations
14713 bops __attribute__ ((unused)) = {
14716 .ioctl = blk_ioctl,
14717 .compat_ioctl = blk_compat_ioctl,
14733 cat - <<_ACEOF >conftest.h
14738 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
14739 echo "obj-m := conftest.o" >build
/Makefile
14741 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
14742 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
14743 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14744 (eval $ac_try) 2>&5
14746 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14747 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
14748 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14749 (eval $ac_try) 2>&5
14751 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14752 test $ac_status = 0; }; }; then :
14754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: struct block_device" >&5
14755 $as_echo "struct block_device" >&6; }
14757 $as_echo "#define HAVE_BDEV_BLOCK_DEVICE_OPERATIONS 1" >>confdefs.h
14761 $as_echo "$as_me: failed program was:" >&5
14762 sed 's/^/| /' conftest.
$ac_ext >&5
14764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: struct inode" >&5
14765 $as_echo "struct inode" >&6; }
14773 EXTRA_KCFLAGS
="$tmp_flags"
14776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether block_device_operations.release is void" >&5
14777 $as_echo_n "checking whether block_device_operations.release is void... " >&6; }
14778 tmp_flags
="$EXTRA_KCFLAGS"
14779 EXTRA_KCFLAGS
="${NO_UNUSED_BUT_SET_VARIABLE}"
14782 cat confdefs.h
- <<_ACEOF >conftest.c
14785 #include <linux/blkdev.h>
14787 void blk_release(struct gendisk *g, fmode_t mode) { return; }
14789 static const struct block_device_operations
14790 bops __attribute__ ((unused)) = {
14792 .release = blk_release,
14794 .compat_ioctl = NULL,
14810 cat - <<_ACEOF >conftest.h
14815 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
14816 echo "obj-m := conftest.o" >build
/Makefile
14818 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
14819 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
14820 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14821 (eval $ac_try) 2>&5
14823 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14824 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
14825 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14826 (eval $ac_try) 2>&5
14828 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14829 test $ac_status = 0; }; }; then :
14831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: void" >&5
14832 $as_echo "void" >&6; }
14834 $as_echo "#define HAVE_BLOCK_DEVICE_OPERATIONS_RELEASE_VOID 1" >>confdefs.h
14838 $as_echo "$as_me: failed program was:" >&5
14839 sed 's/^/| /' conftest.
$ac_ext >&5
14841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: int" >&5
14842 $as_echo "int" >&6; }
14850 EXTRA_KCFLAGS
="$tmp_flags"
14852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether kernel defines fmode_t" >&5
14853 $as_echo_n "checking whether kernel defines fmode_t... " >&6; }
14856 cat confdefs.h
- <<_ACEOF >conftest.c
14859 #include <linux/types.h>
14865 fmode_t *ptr __attribute__ ((unused));
14875 cat - <<_ACEOF >conftest.h
14880 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
14881 echo "obj-m := conftest.o" >build
/Makefile
14883 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
14884 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
14885 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14886 (eval $ac_try) 2>&5
14888 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14889 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
14890 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14891 (eval $ac_try) 2>&5
14893 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14894 test $ac_status = 0; }; }; then :
14896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14897 $as_echo "yes" >&6; }
14899 $as_echo "#define HAVE_FMODE_T 1" >>confdefs.h
14903 $as_echo "$as_me: failed program was:" >&5
14904 sed 's/^/| /' conftest.
$ac_ext >&5
14906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14907 $as_echo "no" >&6; }
14917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether kernel defines KOBJ_NAME_LEN" >&5
14918 $as_echo_n "checking whether kernel defines KOBJ_NAME_LEN... " >&6; }
14921 cat confdefs.h
- <<_ACEOF >conftest.c
14924 #include <linux/kobject.h>
14930 int val __attribute__ ((unused));
14931 val = KOBJ_NAME_LEN;
14941 cat - <<_ACEOF >conftest.h
14946 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
14947 echo "obj-m := conftest.o" >build
/Makefile
14949 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
14950 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
14951 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14952 (eval $ac_try) 2>&5
14954 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14955 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
14956 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14957 (eval $ac_try) 2>&5
14959 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14960 test $ac_status = 0; }; }; then :
14962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14963 $as_echo "yes" >&6; }
14965 $as_echo "#define HAVE_KOBJ_NAME_LEN 1" >>confdefs.h
14969 $as_echo "$as_me: failed program was:" >&5
14970 sed 's/^/| /' conftest.
$ac_ext >&5
14972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14973 $as_echo "no" >&6; }
14983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether blkdev_get() wants 3 args" >&5
14984 $as_echo_n "checking whether blkdev_get() wants 3 args... " >&6; }
14987 cat confdefs.h
- <<_ACEOF >conftest.c
14990 #include <linux/fs.h>
14996 struct block_device *bdev = NULL;
14997 (void) blkdev_get(bdev, 0, NULL);
15007 cat - <<_ACEOF >conftest.h
15012 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
15013 echo "obj-m := conftest.o" >build
/Makefile
15015 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
15016 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
15017 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15018 (eval $ac_try) 2>&5
15020 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15021 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
15022 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15023 (eval $ac_try) 2>&5
15025 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15026 test $ac_status = 0; }; }; then :
15028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15029 $as_echo "yes" >&6; }
15031 $as_echo "#define HAVE_3ARG_BLKDEV_GET 1" >>confdefs.h
15035 $as_echo "$as_me: failed program was:" >&5
15036 sed 's/^/| /' conftest.
$ac_ext >&5
15038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15039 $as_echo "no" >&6; }
15048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether blkdev_get_by_path() is available" >&5
15049 $as_echo_n "checking whether blkdev_get_by_path() is available... " >&6; }
15053 cat confdefs.h
- <<_ACEOF >conftest.c
15056 #include <linux/fs.h>
15062 blkdev_get_by_path(NULL, 0, NULL);
15072 cat - <<_ACEOF >conftest.h
15077 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
15078 echo "obj-m := conftest.o" >build
/Makefile
15080 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
15081 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
15082 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15083 (eval $ac_try) 2>&5
15085 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15086 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
15087 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15088 (eval $ac_try) 2>&5
15090 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15091 test $ac_status = 0; }; }; then :
15094 $as_echo "$as_me: failed program was:" >&5
15095 sed 's/^/| /' conftest.
$ac_ext >&5
15103 if test $rc -ne 0; then :
15105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15106 $as_echo "no" >&6; }
15109 if test "x$enable_linux_builtin" != xyes
; then
15111 grep -q -E '[[:space:]]blkdev_get_by_path[[:space:]]' \
15112 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
15114 if test $rc -ne 0; then
15116 for file in fs
/block_dev.c
; do
15117 grep -q -E "EXPORT_SYMBOL.*(blkdev_get_by_path)" \
15118 "$LINUX/$file" 2>/dev
/null
15120 if test $rc -eq 0; then
15125 if test $export -eq 0; then :
15135 if test $rc -ne 0; then :
15137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15138 $as_echo "no" >&6; }
15142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15143 $as_echo "yes" >&6; }
15145 $as_echo "#define HAVE_BLKDEV_GET_BY_PATH 1" >>confdefs.h
15152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether open_bdev_exclusive() is available" >&5
15153 $as_echo_n "checking whether open_bdev_exclusive() is available... " >&6; }
15157 cat confdefs.h
- <<_ACEOF >conftest.c
15160 #include <linux/fs.h>
15166 open_bdev_exclusive(NULL, 0, NULL);
15176 cat - <<_ACEOF >conftest.h
15181 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
15182 echo "obj-m := conftest.o" >build
/Makefile
15184 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
15185 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
15186 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15187 (eval $ac_try) 2>&5
15189 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15190 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
15191 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15192 (eval $ac_try) 2>&5
15194 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15195 test $ac_status = 0; }; }; then :
15198 $as_echo "$as_me: failed program was:" >&5
15199 sed 's/^/| /' conftest.
$ac_ext >&5
15207 if test $rc -ne 0; then :
15209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15210 $as_echo "no" >&6; }
15213 if test "x$enable_linux_builtin" != xyes
; then
15215 grep -q -E '[[:space:]]open_bdev_exclusive[[:space:]]' \
15216 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
15218 if test $rc -ne 0; then
15220 for file in fs
/block_dev.c
; do
15221 grep -q -E "EXPORT_SYMBOL.*(open_bdev_exclusive)" \
15222 "$LINUX/$file" 2>/dev
/null
15224 if test $rc -eq 0; then
15229 if test $export -eq 0; then :
15239 if test $rc -ne 0; then :
15241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15242 $as_echo "no" >&6; }
15246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15247 $as_echo "yes" >&6; }
15249 $as_echo "#define HAVE_OPEN_BDEV_EXCLUSIVE 1" >>confdefs.h
15256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lookup_bdev() wants 1 arg" >&5
15257 $as_echo_n "checking whether lookup_bdev() wants 1 arg... " >&6; }
15261 cat confdefs.h
- <<_ACEOF >conftest.c
15264 #include <linux/fs.h>
15280 cat - <<_ACEOF >conftest.h
15285 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
15286 echo "obj-m := conftest.o" >build
/Makefile
15288 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
15289 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
15290 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15291 (eval $ac_try) 2>&5
15293 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15294 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
15295 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15296 (eval $ac_try) 2>&5
15298 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15299 test $ac_status = 0; }; }; then :
15302 $as_echo "$as_me: failed program was:" >&5
15303 sed 's/^/| /' conftest.
$ac_ext >&5
15311 if test $rc -ne 0; then :
15313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15314 $as_echo "no" >&6; }
15315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lookup_bdev() wants 2 args" >&5
15316 $as_echo_n "checking whether lookup_bdev() wants 2 args... " >&6; }
15320 cat confdefs.h
- <<_ACEOF >conftest.c
15323 #include <linux/fs.h>
15329 lookup_bdev(NULL, FMODE_READ);
15339 cat - <<_ACEOF >conftest.h
15344 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
15345 echo "obj-m := conftest.o" >build
/Makefile
15347 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
15348 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
15349 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15350 (eval $ac_try) 2>&5
15352 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15353 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
15354 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15355 (eval $ac_try) 2>&5
15357 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15358 test $ac_status = 0; }; }; then :
15361 $as_echo "$as_me: failed program was:" >&5
15362 sed 's/^/| /' conftest.
$ac_ext >&5
15370 if test $rc -ne 0; then :
15372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15373 $as_echo "no" >&6; }
15376 if test "x$enable_linux_builtin" != xyes
; then
15378 grep -q -E '[[:space:]]lookup_bdev[[:space:]]' \
15379 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
15381 if test $rc -ne 0; then
15383 for file in fs
/block_dev.c
; do
15384 grep -q -E "EXPORT_SYMBOL.*(lookup_bdev)" \
15385 "$LINUX/$file" 2>/dev
/null
15387 if test $rc -eq 0; then
15392 if test $export -eq 0; then :
15402 if test $rc -ne 0; then :
15404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15405 $as_echo "no" >&6; }
15409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15410 $as_echo "yes" >&6; }
15412 $as_echo "#define HAVE_2ARGS_LOOKUP_BDEV 1" >>confdefs.h
15420 if test "x$enable_linux_builtin" != xyes
; then
15422 grep -q -E '[[:space:]]lookup_bdev[[:space:]]' \
15423 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
15425 if test $rc -ne 0; then
15427 for file in fs
/block_dev.c
; do
15428 grep -q -E "EXPORT_SYMBOL.*(lookup_bdev)" \
15429 "$LINUX/$file" 2>/dev
/null
15431 if test $rc -eq 0; then
15436 if test $export -eq 0; then :
15446 if test $rc -ne 0; then :
15448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15449 $as_echo "no" >&6; }
15450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lookup_bdev() wants 2 args" >&5
15451 $as_echo_n "checking whether lookup_bdev() wants 2 args... " >&6; }
15455 cat confdefs.h
- <<_ACEOF >conftest.c
15458 #include <linux/fs.h>
15464 lookup_bdev(NULL, FMODE_READ);
15474 cat - <<_ACEOF >conftest.h
15479 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
15480 echo "obj-m := conftest.o" >build
/Makefile
15482 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
15483 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
15484 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15485 (eval $ac_try) 2>&5
15487 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15488 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
15489 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15490 (eval $ac_try) 2>&5
15492 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15493 test $ac_status = 0; }; }; then :
15496 $as_echo "$as_me: failed program was:" >&5
15497 sed 's/^/| /' conftest.
$ac_ext >&5
15505 if test $rc -ne 0; then :
15507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15508 $as_echo "no" >&6; }
15511 if test "x$enable_linux_builtin" != xyes
; then
15513 grep -q -E '[[:space:]]lookup_bdev[[:space:]]' \
15514 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
15516 if test $rc -ne 0; then
15518 for file in fs
/block_dev.c
; do
15519 grep -q -E "EXPORT_SYMBOL.*(lookup_bdev)" \
15520 "$LINUX/$file" 2>/dev
/null
15522 if test $rc -eq 0; then
15527 if test $export -eq 0; then :
15537 if test $rc -ne 0; then :
15539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15540 $as_echo "no" >&6; }
15544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15545 $as_echo "yes" >&6; }
15547 $as_echo "#define HAVE_2ARGS_LOOKUP_BDEV 1" >>confdefs.h
15556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15557 $as_echo "yes" >&6; }
15559 $as_echo "#define HAVE_1ARG_LOOKUP_BDEV 1" >>confdefs.h
15567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether invalidate_bdev() wants 1 arg" >&5
15568 $as_echo_n "checking whether invalidate_bdev() wants 1 arg... " >&6; }
15571 cat confdefs.h
- <<_ACEOF >conftest.c
15574 #include <linux/buffer_head.h>
15580 struct block_device *bdev = NULL;
15581 invalidate_bdev(bdev);
15591 cat - <<_ACEOF >conftest.h
15596 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
15597 echo "obj-m := conftest.o" >build
/Makefile
15599 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
15600 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
15601 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15602 (eval $ac_try) 2>&5
15604 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15605 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
15606 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15607 (eval $ac_try) 2>&5
15609 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15610 test $ac_status = 0; }; }; then :
15612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15613 $as_echo "yes" >&6; }
15615 $as_echo "#define HAVE_1ARG_INVALIDATE_BDEV 1" >>confdefs.h
15619 $as_echo "$as_me: failed program was:" >&5
15620 sed 's/^/| /' conftest.
$ac_ext >&5
15622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15623 $as_echo "no" >&6; }
15633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether bdev_logical_block_size() is available" >&5
15634 $as_echo_n "checking whether bdev_logical_block_size() is available... " >&6; }
15635 tmp_flags
="$EXTRA_KCFLAGS"
15636 EXTRA_KCFLAGS
="${NO_UNUSED_BUT_SET_VARIABLE}"
15639 cat confdefs.h
- <<_ACEOF >conftest.c
15642 #include <linux/blkdev.h>
15648 struct block_device *bdev = NULL;
15649 bdev_logical_block_size(bdev);
15659 cat - <<_ACEOF >conftest.h
15664 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
15665 echo "obj-m := conftest.o" >build
/Makefile
15667 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
15668 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
15669 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15670 (eval $ac_try) 2>&5
15672 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15673 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
15674 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15675 (eval $ac_try) 2>&5
15677 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15678 test $ac_status = 0; }; }; then :
15680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15681 $as_echo "yes" >&6; }
15683 $as_echo "#define HAVE_BDEV_LOGICAL_BLOCK_SIZE 1" >>confdefs.h
15687 $as_echo "$as_me: failed program was:" >&5
15688 sed 's/^/| /' conftest.
$ac_ext >&5
15690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15691 $as_echo "no" >&6; }
15699 EXTRA_KCFLAGS
="$tmp_flags"
15702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether bdev_physical_block_size() is available" >&5
15703 $as_echo_n "checking whether bdev_physical_block_size() is available... " >&6; }
15704 tmp_flags
="$EXTRA_KCFLAGS"
15705 EXTRA_KCFLAGS
="${NO_UNUSED_BUT_SET_VARIABLE}"
15708 cat confdefs.h
- <<_ACEOF >conftest.c
15711 #include <linux/blkdev.h>
15717 struct block_device *bdev = NULL;
15718 bdev_physical_block_size(bdev);
15728 cat - <<_ACEOF >conftest.h
15733 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
15734 echo "obj-m := conftest.o" >build
/Makefile
15736 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
15737 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
15738 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15739 (eval $ac_try) 2>&5
15741 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15742 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
15743 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15744 (eval $ac_try) 2>&5
15746 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15747 test $ac_status = 0; }; }; then :
15749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15750 $as_echo "yes" >&6; }
15752 $as_echo "#define HAVE_BDEV_PHYSICAL_BLOCK_SIZE 1" >>confdefs.h
15756 $as_echo "$as_me: failed program was:" >&5
15757 sed 's/^/| /' conftest.
$ac_ext >&5
15759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15760 $as_echo "no" >&6; }
15768 EXTRA_KCFLAGS
="$tmp_flags"
15771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether bio has bi_iter" >&5
15772 $as_echo_n "checking whether bio has bi_iter... " >&6; }
15775 cat confdefs.h
- <<_ACEOF >conftest.c
15778 #include <linux/bio.h>
15785 bio.bi_iter.bi_sector = 0;
15795 cat - <<_ACEOF >conftest.h
15800 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
15801 echo "obj-m := conftest.o" >build
/Makefile
15803 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
15804 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
15805 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15806 (eval $ac_try) 2>&5
15808 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15809 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
15810 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15811 (eval $ac_try) 2>&5
15813 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15814 test $ac_status = 0; }; }; then :
15816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15817 $as_echo "yes" >&6; }
15819 $as_echo "#define HAVE_BIO_BVEC_ITER 1" >>confdefs.h
15823 $as_echo "$as_me: failed program was:" >&5
15824 sed 's/^/| /' conftest.
$ac_ext >&5
15826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15827 $as_echo "no" >&6; }
15837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether BIO_RW_FAILFAST_* are defined" >&5
15838 $as_echo_n "checking whether BIO_RW_FAILFAST_* are defined... " >&6; }
15841 cat confdefs.h
- <<_ACEOF >conftest.c
15844 #include <linux/bio.h>
15850 int flags __attribute__ ((unused));
15851 flags = ((1 << BIO_RW_FAILFAST_DEV) |
15852 (1 << BIO_RW_FAILFAST_TRANSPORT) |
15853 (1 << BIO_RW_FAILFAST_DRIVER));
15863 cat - <<_ACEOF >conftest.h
15868 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
15869 echo "obj-m := conftest.o" >build
/Makefile
15871 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
15872 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
15873 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15874 (eval $ac_try) 2>&5
15876 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15877 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
15878 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15879 (eval $ac_try) 2>&5
15881 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15882 test $ac_status = 0; }; }; then :
15884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15885 $as_echo "yes" >&6; }
15887 $as_echo "#define HAVE_BIO_RW_FAILFAST_DTD 1" >>confdefs.h
15891 $as_echo "$as_me: failed program was:" >&5
15892 sed 's/^/| /' conftest.
$ac_ext >&5
15894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15895 $as_echo "no" >&6; }
15905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether REQ_FAILFAST_MASK is defined" >&5
15906 $as_echo_n "checking whether REQ_FAILFAST_MASK is defined... " >&6; }
15909 cat confdefs.h
- <<_ACEOF >conftest.c
15912 #include <linux/bio.h>
15918 int flags __attribute__ ((unused));
15919 flags = REQ_FAILFAST_MASK;
15929 cat - <<_ACEOF >conftest.h
15934 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
15935 echo "obj-m := conftest.o" >build
/Makefile
15937 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
15938 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
15939 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15940 (eval $ac_try) 2>&5
15942 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15943 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
15944 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15945 (eval $ac_try) 2>&5
15947 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15948 test $ac_status = 0; }; }; then :
15950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15951 $as_echo "yes" >&6; }
15953 $as_echo "#define HAVE_REQ_FAILFAST_MASK 1" >>confdefs.h
15957 $as_echo "$as_me: failed program was:" >&5
15958 sed 's/^/| /' conftest.
$ac_ext >&5
15960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15961 $as_echo "no" >&6; }
15971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether REQ_OP_DISCARD is defined" >&5
15972 $as_echo_n "checking whether REQ_OP_DISCARD is defined... " >&6; }
15975 cat confdefs.h
- <<_ACEOF >conftest.c
15978 #include <linux/blk_types.h>
15984 int op __attribute__ ((unused)) = REQ_OP_DISCARD;
15994 cat - <<_ACEOF >conftest.h
15999 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
16000 echo "obj-m := conftest.o" >build
/Makefile
16002 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
16003 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
16004 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16005 (eval $ac_try) 2>&5
16007 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16008 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
16009 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16010 (eval $ac_try) 2>&5
16012 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16013 test $ac_status = 0; }; }; then :
16015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16016 $as_echo "yes" >&6; }
16018 $as_echo "#define HAVE_REQ_OP_DISCARD 1" >>confdefs.h
16022 $as_echo "$as_me: failed program was:" >&5
16023 sed 's/^/| /' conftest.
$ac_ext >&5
16025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16026 $as_echo "no" >&6; }
16036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether REQ_OP_SECURE_ERASE is defined" >&5
16037 $as_echo_n "checking whether REQ_OP_SECURE_ERASE is defined... " >&6; }
16040 cat confdefs.h
- <<_ACEOF >conftest.c
16043 #include <linux/blk_types.h>
16049 int op __attribute__ ((unused)) = REQ_OP_SECURE_ERASE;
16059 cat - <<_ACEOF >conftest.h
16064 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
16065 echo "obj-m := conftest.o" >build
/Makefile
16067 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
16068 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
16069 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16070 (eval $ac_try) 2>&5
16072 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16073 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
16074 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16075 (eval $ac_try) 2>&5
16077 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16078 test $ac_status = 0; }; }; then :
16080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16081 $as_echo "yes" >&6; }
16083 $as_echo "#define HAVE_REQ_OP_SECURE_ERASE 1" >>confdefs.h
16087 $as_echo "$as_me: failed program was:" >&5
16088 sed 's/^/| /' conftest.
$ac_ext >&5
16090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16091 $as_echo "no" >&6; }
16101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether REQ_OP_FLUSH is defined" >&5
16102 $as_echo_n "checking whether REQ_OP_FLUSH is defined... " >&6; }
16105 cat confdefs.h
- <<_ACEOF >conftest.c
16108 #include <linux/blk_types.h>
16114 int op __attribute__ ((unused)) = REQ_OP_FLUSH;
16124 cat - <<_ACEOF >conftest.h
16129 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
16130 echo "obj-m := conftest.o" >build
/Makefile
16132 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
16133 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
16134 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16135 (eval $ac_try) 2>&5
16137 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16138 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
16139 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16140 (eval $ac_try) 2>&5
16142 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16143 test $ac_status = 0; }; }; then :
16145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16146 $as_echo "yes" >&6; }
16148 $as_echo "#define HAVE_REQ_OP_FLUSH 1" >>confdefs.h
16152 $as_echo "$as_me: failed program was:" >&5
16153 sed 's/^/| /' conftest.
$ac_ext >&5
16155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16156 $as_echo "no" >&6; }
16166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether bio->bi_opf is defined" >&5
16167 $as_echo_n "checking whether bio->bi_opf is defined... " >&6; }
16170 cat confdefs.h
- <<_ACEOF >conftest.c
16173 #include <linux/bio.h>
16179 struct bio bio __attribute__ ((unused));
16190 cat - <<_ACEOF >conftest.h
16195 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
16196 echo "obj-m := conftest.o" >build
/Makefile
16198 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
16199 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
16200 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16201 (eval $ac_try) 2>&5
16203 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16204 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
16205 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16206 (eval $ac_try) 2>&5
16208 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16209 test $ac_status = 0; }; }; then :
16211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16212 $as_echo "yes" >&6; }
16214 $as_echo "#define HAVE_BIO_BI_OPF 1" >>confdefs.h
16218 $as_echo "$as_me: failed program was:" >&5
16219 sed 's/^/| /' conftest.
$ac_ext >&5
16221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16222 $as_echo "no" >&6; }
16232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether bio_end_io_t wants 1 arg" >&5
16233 $as_echo_n "checking whether bio_end_io_t wants 1 arg... " >&6; }
16236 cat confdefs.h
- <<_ACEOF >conftest.c
16239 #include <linux/bio.h>
16241 void wanted_end_io(struct bio *bio) { return; }
16243 bio_end_io_t *end_io __attribute__ ((unused)) = wanted_end_io;
16258 cat - <<_ACEOF >conftest.h
16263 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
16264 echo "obj-m := conftest.o" >build
/Makefile
16266 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
16267 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
16268 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16269 (eval $ac_try) 2>&5
16271 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16272 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
16273 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16274 (eval $ac_try) 2>&5
16276 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16277 test $ac_status = 0; }; }; then :
16279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16280 $as_echo "yes" >&6; }
16282 $as_echo "#define HAVE_1ARG_BIO_END_IO_T 1" >>confdefs.h
16286 $as_echo "$as_me: failed program was:" >&5
16287 sed 's/^/| /' conftest.
$ac_ext >&5
16289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16290 $as_echo "no" >&6; }
16300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether bio->bi_status exists" >&5
16301 $as_echo_n "checking whether bio->bi_status exists... " >&6; }
16304 cat confdefs.h
- <<_ACEOF >conftest.c
16307 #include <linux/bio.h>
16313 struct bio bio __attribute__ ((unused));
16314 blk_status_t status __attribute__ ((unused)) = BLK_STS_OK;
16316 bio.bi_status = status;
16326 cat - <<_ACEOF >conftest.h
16331 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
16332 echo "obj-m := conftest.o" >build
/Makefile
16334 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
16335 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
16336 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16337 (eval $ac_try) 2>&5
16339 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16340 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
16341 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16342 (eval $ac_try) 2>&5
16344 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16345 test $ac_status = 0; }; }; then :
16347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16348 $as_echo "yes" >&6; }
16350 $as_echo "#define HAVE_BIO_BI_STATUS 1" >>confdefs.h
16354 $as_echo "$as_me: failed program was:" >&5
16355 sed 's/^/| /' conftest.
$ac_ext >&5
16357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16358 $as_echo "no" >&6; }
16368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether BIO_RW_BARRIER is defined" >&5
16369 $as_echo_n "checking whether BIO_RW_BARRIER is defined... " >&6; }
16372 cat confdefs.h
- <<_ACEOF >conftest.c
16375 #include <linux/bio.h>
16381 int flags __attribute__ ((unused));
16382 flags = BIO_RW_BARRIER;
16392 cat - <<_ACEOF >conftest.h
16397 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
16398 echo "obj-m := conftest.o" >build
/Makefile
16400 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
16401 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
16402 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16403 (eval $ac_try) 2>&5
16405 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16406 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
16407 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16408 (eval $ac_try) 2>&5
16410 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16411 test $ac_status = 0; }; }; then :
16413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16414 $as_echo "yes" >&6; }
16416 $as_echo "#define HAVE_BIO_RW_BARRIER 1" >>confdefs.h
16420 $as_echo "$as_me: failed program was:" >&5
16421 sed 's/^/| /' conftest.
$ac_ext >&5
16423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16424 $as_echo "no" >&6; }
16434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether BIO_RW_DISCARD is defined" >&5
16435 $as_echo_n "checking whether BIO_RW_DISCARD is defined... " >&6; }
16438 cat confdefs.h
- <<_ACEOF >conftest.c
16441 #include <linux/bio.h>
16447 int flags __attribute__ ((unused));
16448 flags = BIO_RW_DISCARD;
16458 cat - <<_ACEOF >conftest.h
16463 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
16464 echo "obj-m := conftest.o" >build
/Makefile
16466 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
16467 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
16468 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16469 (eval $ac_try) 2>&5
16471 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16472 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
16473 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16474 (eval $ac_try) 2>&5
16476 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16477 test $ac_status = 0; }; }; then :
16479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16480 $as_echo "yes" >&6; }
16482 $as_echo "#define HAVE_BIO_RW_DISCARD 1" >>confdefs.h
16486 $as_echo "$as_me: failed program was:" >&5
16487 sed 's/^/| /' conftest.
$ac_ext >&5
16489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16490 $as_echo "no" >&6; }
16500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether blk_queue_flush() is available" >&5
16501 $as_echo_n "checking whether blk_queue_flush() is available... " >&6; }
16502 tmp_flags
="$EXTRA_KCFLAGS"
16503 EXTRA_KCFLAGS
="${NO_UNUSED_BUT_SET_VARIABLE}"
16506 cat confdefs.h
- <<_ACEOF >conftest.c
16509 #include <linux/blkdev.h>
16515 struct request_queue *q = NULL;
16516 (void) blk_queue_flush(q, REQ_FLUSH);
16526 cat - <<_ACEOF >conftest.h
16531 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
16532 echo "obj-m := conftest.o" >build
/Makefile
16534 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
16535 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
16536 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16537 (eval $ac_try) 2>&5
16539 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16540 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
16541 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16542 (eval $ac_try) 2>&5
16544 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16545 test $ac_status = 0; }; }; then :
16547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16548 $as_echo "yes" >&6; }
16550 $as_echo "#define HAVE_BLK_QUEUE_FLUSH 1" >>confdefs.h
16553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether blk_queue_flush() is GPL-only" >&5
16554 $as_echo_n "checking whether blk_queue_flush() is GPL-only... " >&6; }
16557 cat confdefs.h
- <<_ACEOF >conftest.c
16560 #include <linux/module.h>
16561 #include <linux/blkdev.h>
16563 MODULE_LICENSE("$ZFS_META_LICENSE");
16569 struct request_queue *q = NULL;
16570 (void) blk_queue_flush(q, REQ_FLUSH);
16580 cat - <<_ACEOF >conftest.h
16585 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
16586 echo "obj-m := conftest.o" >build
/Makefile
16588 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
16589 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
16590 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16591 (eval $ac_try) 2>&5
16593 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16594 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
16595 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16596 (eval $ac_try) 2>&5
16598 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16599 test $ac_status = 0; }; }; then :
16601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16602 $as_echo "no" >&6; }
16605 $as_echo "$as_me: failed program was:" >&5
16606 sed 's/^/| /' conftest.
$ac_ext >&5
16608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16609 $as_echo "yes" >&6; }
16611 $as_echo "#define HAVE_BLK_QUEUE_FLUSH_GPL_ONLY 1" >>confdefs.h
16622 $as_echo "$as_me: failed program was:" >&5
16623 sed 's/^/| /' conftest.
$ac_ext >&5
16625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16626 $as_echo "no" >&6; }
16635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether blk_queue_write_cache() exists" >&5
16636 $as_echo_n "checking whether blk_queue_write_cache() exists... " >&6; }
16639 cat confdefs.h
- <<_ACEOF >conftest.c
16642 #include <linux/kernel.h>
16643 #include <linux/blkdev.h>
16650 struct request_queue *q = NULL;
16651 blk_queue_write_cache(q, true, true);
16661 cat - <<_ACEOF >conftest.h
16666 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
16667 echo "obj-m := conftest.o" >build
/Makefile
16669 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
16670 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
16671 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16672 (eval $ac_try) 2>&5
16674 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16675 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
16676 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16677 (eval $ac_try) 2>&5
16679 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16680 test $ac_status = 0; }; }; then :
16682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16683 $as_echo "yes" >&6; }
16685 $as_echo "#define HAVE_BLK_QUEUE_WRITE_CACHE 1" >>confdefs.h
16688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether blk_queue_write_cache() is GPL-only" >&5
16689 $as_echo_n "checking whether blk_queue_write_cache() is GPL-only... " >&6; }
16692 cat confdefs.h
- <<_ACEOF >conftest.c
16695 #include <linux/kernel.h>
16696 #include <linux/module.h>
16697 #include <linux/blkdev.h>
16699 MODULE_LICENSE("$ZFS_META_LICENSE");
16705 struct request_queue *q = NULL;
16706 blk_queue_write_cache(q, true, true);
16716 cat - <<_ACEOF >conftest.h
16721 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
16722 echo "obj-m := conftest.o" >build
/Makefile
16724 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
16725 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
16726 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16727 (eval $ac_try) 2>&5
16729 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16730 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
16731 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16732 (eval $ac_try) 2>&5
16734 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16735 test $ac_status = 0; }; }; then :
16737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16738 $as_echo "no" >&6; }
16741 $as_echo "$as_me: failed program was:" >&5
16742 sed 's/^/| /' conftest.
$ac_ext >&5
16744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16745 $as_echo "yes" >&6; }
16747 $as_echo "#define HAVE_BLK_QUEUE_WRITE_CACHE_GPL_ONLY 1" >>confdefs.h
16758 $as_echo "$as_me: failed program was:" >&5
16759 sed 's/^/| /' conftest.
$ac_ext >&5
16761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16762 $as_echo "no" >&6; }
16771 EXTRA_KCFLAGS
="$tmp_flags"
16774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether blk_queue_max_hw_sectors() is available" >&5
16775 $as_echo_n "checking whether blk_queue_max_hw_sectors() is available... " >&6; }
16776 tmp_flags
="$EXTRA_KCFLAGS"
16777 EXTRA_KCFLAGS
="${NO_UNUSED_BUT_SET_VARIABLE}"
16780 cat confdefs.h
- <<_ACEOF >conftest.c
16783 #include <linux/blkdev.h>
16789 struct request_queue *q = NULL;
16790 (void) blk_queue_max_hw_sectors(q, BLK_SAFE_MAX_SECTORS);
16800 cat - <<_ACEOF >conftest.h
16805 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
16806 echo "obj-m := conftest.o" >build
/Makefile
16808 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
16809 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
16810 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16811 (eval $ac_try) 2>&5
16813 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16814 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
16815 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16816 (eval $ac_try) 2>&5
16818 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16819 test $ac_status = 0; }; }; then :
16821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16822 $as_echo "yes" >&6; }
16824 $as_echo "#define HAVE_BLK_QUEUE_MAX_HW_SECTORS 1" >>confdefs.h
16828 $as_echo "$as_me: failed program was:" >&5
16829 sed 's/^/| /' conftest.
$ac_ext >&5
16831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16832 $as_echo "no" >&6; }
16840 EXTRA_KCFLAGS
="$tmp_flags"
16843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether blk_queue_max_segments() is available" >&5
16844 $as_echo_n "checking whether blk_queue_max_segments() is available... " >&6; }
16845 tmp_flags
="$EXTRA_KCFLAGS"
16846 EXTRA_KCFLAGS
="${NO_UNUSED_BUT_SET_VARIABLE}"
16849 cat confdefs.h
- <<_ACEOF >conftest.c
16852 #include <linux/blkdev.h>
16858 struct request_queue *q = NULL;
16859 (void) blk_queue_max_segments(q, BLK_MAX_SEGMENTS);
16869 cat - <<_ACEOF >conftest.h
16874 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
16875 echo "obj-m := conftest.o" >build
/Makefile
16877 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
16878 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
16879 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16880 (eval $ac_try) 2>&5
16882 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16883 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
16884 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16885 (eval $ac_try) 2>&5
16887 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16888 test $ac_status = 0; }; }; then :
16890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16891 $as_echo "yes" >&6; }
16893 $as_echo "#define HAVE_BLK_QUEUE_MAX_SEGMENTS 1" >>confdefs.h
16897 $as_echo "$as_me: failed program was:" >&5
16898 sed 's/^/| /' conftest.
$ac_ext >&5
16900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16901 $as_echo "no" >&6; }
16909 EXTRA_KCFLAGS
="$tmp_flags"
16912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the BIO_RW_UNPLUG enum is available" >&5
16913 $as_echo_n "checking whether the BIO_RW_UNPLUG enum is available... " >&6; }
16914 tmp_flags
="$EXTRA_KCFLAGS"
16915 EXTRA_KCFLAGS
="${NO_UNUSED_BUT_SET_VARIABLE}"
16918 cat confdefs.h
- <<_ACEOF >conftest.c
16921 #include <linux/blkdev.h>
16927 extern enum bio_rw_flags rw;
16929 rw = BIO_RW_UNPLUG;
16939 cat - <<_ACEOF >conftest.h
16944 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
16945 echo "obj-m := conftest.o" >build
/Makefile
16947 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
16948 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
16949 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16950 (eval $ac_try) 2>&5
16952 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16953 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
16954 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16955 (eval $ac_try) 2>&5
16957 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16958 test $ac_status = 0; }; }; then :
16960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16961 $as_echo "yes" >&6; }
16963 $as_echo "#define HAVE_BLK_QUEUE_HAVE_BIO_RW_UNPLUG 1" >>confdefs.h
16967 $as_echo "$as_me: failed program was:" >&5
16968 sed 's/^/| /' conftest.
$ac_ext >&5
16970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16971 $as_echo "no" >&6; }
16979 EXTRA_KCFLAGS
="$tmp_flags"
16982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct blk_plug is available" >&5
16983 $as_echo_n "checking whether struct blk_plug is available... " >&6; }
16984 tmp_flags
="$EXTRA_KCFLAGS"
16985 EXTRA_KCFLAGS
="${NO_UNUSED_BUT_SET_VARIABLE}"
16988 cat confdefs.h
- <<_ACEOF >conftest.c
16991 #include <linux/blkdev.h>
16997 struct blk_plug plug;
16999 blk_start_plug(&plug);
17000 blk_finish_plug(&plug);
17010 cat - <<_ACEOF >conftest.h
17015 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
17016 echo "obj-m := conftest.o" >build
/Makefile
17018 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
17019 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
17020 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17021 (eval $ac_try) 2>&5
17023 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17024 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
17025 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17026 (eval $ac_try) 2>&5
17028 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17029 test $ac_status = 0; }; }; then :
17031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17032 $as_echo "yes" >&6; }
17034 $as_echo "#define HAVE_BLK_QUEUE_HAVE_BLK_PLUG 1" >>confdefs.h
17038 $as_echo "$as_me: failed program was:" >&5
17039 sed 's/^/| /' conftest.
$ac_ext >&5
17041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17042 $as_echo "no" >&6; }
17050 EXTRA_KCFLAGS
="$tmp_flags"
17053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether get_disk_ro() is available" >&5
17054 $as_echo_n "checking whether get_disk_ro() is available... " >&6; }
17055 tmp_flags
="$EXTRA_KCFLAGS"
17056 EXTRA_KCFLAGS
="${NO_UNUSED_BUT_SET_VARIABLE}"
17059 cat confdefs.h
- <<_ACEOF >conftest.c
17062 #include <linux/blkdev.h>
17068 struct gendisk *disk = NULL;
17069 (void) get_disk_ro(disk);
17079 cat - <<_ACEOF >conftest.h
17084 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
17085 echo "obj-m := conftest.o" >build
/Makefile
17087 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
17088 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
17089 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17090 (eval $ac_try) 2>&5
17092 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17093 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
17094 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17095 (eval $ac_try) 2>&5
17097 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17098 test $ac_status = 0; }; }; then :
17100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17101 $as_echo "yes" >&6; }
17103 $as_echo "#define HAVE_GET_DISK_RO 1" >>confdefs.h
17107 $as_echo "$as_me: failed program was:" >&5
17108 sed 's/^/| /' conftest.
$ac_ext >&5
17110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17111 $as_echo "no" >&6; }
17119 EXTRA_KCFLAGS
="$tmp_flags"
17121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether get_gendisk() is available" >&5
17122 $as_echo_n "checking whether get_gendisk() is available... " >&6; }
17126 cat confdefs.h
- <<_ACEOF >conftest.c
17129 #include <linux/genhd.h>
17135 get_gendisk(0, NULL);
17145 cat - <<_ACEOF >conftest.h
17150 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
17151 echo "obj-m := conftest.o" >build
/Makefile
17153 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
17154 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
17155 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17156 (eval $ac_try) 2>&5
17158 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17159 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
17160 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17161 (eval $ac_try) 2>&5
17163 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17164 test $ac_status = 0; }; }; then :
17167 $as_echo "$as_me: failed program was:" >&5
17168 sed 's/^/| /' conftest.
$ac_ext >&5
17176 if test $rc -ne 0; then :
17178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17179 $as_echo "no" >&6; }
17182 if test "x$enable_linux_builtin" != xyes
; then
17184 grep -q -E '[[:space:]]get_gendisk[[:space:]]' \
17185 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
17187 if test $rc -ne 0; then
17189 for file in block
/genhd.c
; do
17190 grep -q -E "EXPORT_SYMBOL.*(get_gendisk)" \
17191 "$LINUX/$file" 2>/dev
/null
17193 if test $rc -eq 0; then
17198 if test $export -eq 0; then :
17208 if test $rc -ne 0; then :
17210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17211 $as_echo "no" >&6; }
17215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17216 $as_echo "yes" >&6; }
17218 $as_echo "#define HAVE_GET_GENDISK 1" >>confdefs.h
17226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether bio_set_op_attrs is available" >&5
17227 $as_echo_n "checking whether bio_set_op_attrs is available... " >&6; }
17230 cat confdefs.h
- <<_ACEOF >conftest.c
17233 #include <linux/bio.h>
17239 struct bio *bio __attribute__ ((unused)) = NULL;
17241 bio_set_op_attrs(bio, 0, 0);
17251 cat - <<_ACEOF >conftest.h
17256 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
17257 echo "obj-m := conftest.o" >build
/Makefile
17259 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
17260 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
17261 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17262 (eval $ac_try) 2>&5
17264 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17265 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
17266 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17267 (eval $ac_try) 2>&5
17269 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17270 test $ac_status = 0; }; }; then :
17272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17273 $as_echo "yes" >&6; }
17275 $as_echo "#define HAVE_BIO_SET_OP_ATTRS 1" >>confdefs.h
17279 $as_echo "$as_me: failed program was:" >&5
17280 sed 's/^/| /' conftest.
$ac_ext >&5
17282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17283 $as_echo "no" >&6; }
17293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether generic_readlink is global" >&5
17294 $as_echo_n "checking whether generic_readlink is global... " >&6; }
17297 cat confdefs.h
- <<_ACEOF >conftest.c
17300 #include <linux/fs.h>
17306 int i __attribute__ ((unused));
17308 i = generic_readlink(NULL, NULL, 0);
17318 cat - <<_ACEOF >conftest.h
17323 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
17324 echo "obj-m := conftest.o" >build
/Makefile
17326 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
17327 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
17328 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17329 (eval $ac_try) 2>&5
17331 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17332 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
17333 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17334 (eval $ac_try) 2>&5
17336 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17337 test $ac_status = 0; }; }; then :
17339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17340 $as_echo "yes" >&6; }
17342 $as_echo "#define HAVE_GENERIC_READLINK 1" >>confdefs.h
17346 $as_echo "$as_me: failed program was:" >&5
17347 sed 's/^/| /' conftest.
$ac_ext >&5
17349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17350 $as_echo "no" >&6; }
17360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ql->discard_granularity is available" >&5
17361 $as_echo_n "checking whether ql->discard_granularity is available... " >&6; }
17364 cat confdefs.h
- <<_ACEOF >conftest.c
17367 #include <linux/blkdev.h>
17373 struct queue_limits ql __attribute__ ((unused));
17375 ql.discard_granularity = 0;
17385 cat - <<_ACEOF >conftest.h
17390 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
17391 echo "obj-m := conftest.o" >build
/Makefile
17393 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
17394 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
17395 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17396 (eval $ac_try) 2>&5
17398 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17399 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
17400 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17401 (eval $ac_try) 2>&5
17403 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17404 test $ac_status = 0; }; }; then :
17406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17407 $as_echo "yes" >&6; }
17409 $as_echo "#define HAVE_DISCARD_GRANULARITY 1" >>confdefs.h
17413 $as_echo "$as_me: failed program was:" >&5
17414 sed 's/^/| /' conftest.
$ac_ext >&5
17416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17417 $as_echo "no" >&6; }
17427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether super_block uses const struct xattr_handler" >&5
17428 $as_echo_n "checking whether super_block uses const struct xattr_handler... " >&6; }
17431 cat confdefs.h
- <<_ACEOF >conftest.c
17434 #include <linux/fs.h>
17435 #include <linux/xattr.h>
17437 const struct xattr_handler xattr_test_handler = {
17443 const struct xattr_handler *xattr_handlers[] = {
17444 &xattr_test_handler,
17447 const struct super_block sb __attribute__ ((unused)) = {
17448 .s_xattr = xattr_handlers,
17464 cat - <<_ACEOF >conftest.h
17469 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
17470 echo "obj-m := conftest.o" >build
/Makefile
17472 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
17473 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
17474 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17475 (eval $ac_try) 2>&5
17477 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17478 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
17479 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17480 (eval $ac_try) 2>&5
17482 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17483 test $ac_status = 0; }; }; then :
17485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17486 $as_echo "yes" >&6; }
17488 $as_echo "#define HAVE_CONST_XATTR_HANDLER 1" >>confdefs.h
17492 $as_echo "$as_me: failed program was:" >&5
17493 sed 's/^/| /' conftest.
$ac_ext >&5
17495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17496 $as_echo "no" >&6; }
17506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether xattr_handler has name" >&5
17507 $as_echo_n "checking whether xattr_handler has name... " >&6; }
17510 cat confdefs.h
- <<_ACEOF >conftest.c
17513 #include <linux/xattr.h>
17515 static const struct xattr_handler
17516 xops __attribute__ ((unused)) = {
17517 .name = XATTR_NAME_POSIX_ACL_ACCESS,
17533 cat - <<_ACEOF >conftest.h
17538 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
17539 echo "obj-m := conftest.o" >build
/Makefile
17541 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
17542 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
17543 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17544 (eval $ac_try) 2>&5
17546 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17547 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
17548 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17549 (eval $ac_try) 2>&5
17551 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17552 test $ac_status = 0; }; }; then :
17554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17555 $as_echo "yes" >&6; }
17557 $as_echo "#define HAVE_XATTR_HANDLER_NAME 1" >>confdefs.h
17561 $as_echo "$as_me: failed program was:" >&5
17562 sed 's/^/| /' conftest.
$ac_ext >&5
17564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17565 $as_echo "no" >&6; }
17575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether xattr_handler->get() wants both dentry and inode" >&5
17576 $as_echo_n "checking whether xattr_handler->get() wants both dentry and inode... " >&6; }
17579 cat confdefs.h
- <<_ACEOF >conftest.c
17582 #include <linux/xattr.h>
17584 int get(const struct xattr_handler *handler,
17585 struct dentry *dentry, struct inode *inode,
17586 const char *name, void *buffer, size_t size) { return 0; }
17587 static const struct xattr_handler
17588 xops __attribute__ ((unused)) = {
17605 cat - <<_ACEOF >conftest.h
17610 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
17611 echo "obj-m := conftest.o" >build
/Makefile
17613 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
17614 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
17615 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17616 (eval $ac_try) 2>&5
17618 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17619 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
17620 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17621 (eval $ac_try) 2>&5
17623 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17624 test $ac_status = 0; }; }; then :
17626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17627 $as_echo "yes" >&6; }
17629 $as_echo "#define HAVE_XATTR_GET_DENTRY_INODE 1" >>confdefs.h
17633 $as_echo "$as_me: failed program was:" >&5
17634 sed 's/^/| /' conftest.
$ac_ext >&5
17636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether xattr_handler->get() wants xattr_handler" >&5
17637 $as_echo_n "checking whether xattr_handler->get() wants xattr_handler... " >&6; }
17640 cat confdefs.h
- <<_ACEOF >conftest.c
17643 #include <linux/xattr.h>
17645 int get(const struct xattr_handler *handler,
17646 struct dentry *dentry, const char *name,
17647 void *buffer, size_t size) { return 0; }
17648 static const struct xattr_handler
17649 xops __attribute__ ((unused)) = {
17666 cat - <<_ACEOF >conftest.h
17671 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
17672 echo "obj-m := conftest.o" >build
/Makefile
17674 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
17675 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
17676 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17677 (eval $ac_try) 2>&5
17679 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17680 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
17681 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17682 (eval $ac_try) 2>&5
17684 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17685 test $ac_status = 0; }; }; then :
17687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17688 $as_echo "yes" >&6; }
17690 $as_echo "#define HAVE_XATTR_GET_HANDLER 1" >>confdefs.h
17694 $as_echo "$as_me: failed program was:" >&5
17695 sed 's/^/| /' conftest.
$ac_ext >&5
17697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17698 $as_echo "no" >&6; }
17699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether xattr_handler->get() wants dentry" >&5
17700 $as_echo_n "checking whether xattr_handler->get() wants dentry... " >&6; }
17703 cat confdefs.h
- <<_ACEOF >conftest.c
17706 #include <linux/xattr.h>
17708 int get(struct dentry *dentry, const char *name,
17709 void *buffer, size_t size, int handler_flags)
17711 static const struct xattr_handler
17712 xops __attribute__ ((unused)) = {
17729 cat - <<_ACEOF >conftest.h
17734 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
17735 echo "obj-m := conftest.o" >build
/Makefile
17737 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
17738 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
17739 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17740 (eval $ac_try) 2>&5
17742 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17743 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
17744 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17745 (eval $ac_try) 2>&5
17747 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17748 test $ac_status = 0; }; }; then :
17750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17751 $as_echo "yes" >&6; }
17753 $as_echo "#define HAVE_XATTR_GET_DENTRY 1" >>confdefs.h
17757 $as_echo "$as_me: failed program was:" >&5
17758 sed 's/^/| /' conftest.
$ac_ext >&5
17760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17761 $as_echo "no" >&6; }
17762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether xattr_handler->get() wants inode" >&5
17763 $as_echo_n "checking whether xattr_handler->get() wants inode... " >&6; }
17766 cat confdefs.h
- <<_ACEOF >conftest.c
17769 #include <linux/xattr.h>
17771 int get(struct inode *ip, const char *name,
17772 void *buffer, size_t size) { return 0; }
17773 static const struct xattr_handler
17774 xops __attribute__ ((unused)) = {
17791 cat - <<_ACEOF >conftest.h
17796 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
17797 echo "obj-m := conftest.o" >build
/Makefile
17799 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
17800 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
17801 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17802 (eval $ac_try) 2>&5
17804 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17805 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
17806 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17807 (eval $ac_try) 2>&5
17809 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17810 test $ac_status = 0; }; }; then :
17812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17813 $as_echo "yes" >&6; }
17815 $as_echo "#define HAVE_XATTR_GET_INODE 1" >>confdefs.h
17819 $as_echo "$as_me: failed program was:" >&5
17820 sed 's/^/| /' conftest.
$ac_ext >&5
17822 as_fn_error $?
"no; please file a bug report" "$LINENO" 5
17853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether xattr_handler->set() wants both dentry and inode" >&5
17854 $as_echo_n "checking whether xattr_handler->set() wants both dentry and inode... " >&6; }
17857 cat confdefs.h
- <<_ACEOF >conftest.c
17860 #include <linux/xattr.h>
17862 int set(const struct xattr_handler *handler,
17863 struct dentry *dentry, struct inode *inode,
17864 const char *name, const void *buffer,
17865 size_t size, int flags)
17867 static const struct xattr_handler
17868 xops __attribute__ ((unused)) = {
17885 cat - <<_ACEOF >conftest.h
17890 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
17891 echo "obj-m := conftest.o" >build
/Makefile
17893 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
17894 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
17895 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17896 (eval $ac_try) 2>&5
17898 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17899 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
17900 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17901 (eval $ac_try) 2>&5
17903 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17904 test $ac_status = 0; }; }; then :
17906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17907 $as_echo "yes" >&6; }
17909 $as_echo "#define HAVE_XATTR_SET_DENTRY_INODE 1" >>confdefs.h
17913 $as_echo "$as_me: failed program was:" >&5
17914 sed 's/^/| /' conftest.
$ac_ext >&5
17916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether xattr_handler->set() wants xattr_handler" >&5
17917 $as_echo_n "checking whether xattr_handler->set() wants xattr_handler... " >&6; }
17920 cat confdefs.h
- <<_ACEOF >conftest.c
17923 #include <linux/xattr.h>
17925 int set(const struct xattr_handler *handler,
17926 struct dentry *dentry, const char *name,
17927 const void *buffer, size_t size, int flags)
17929 static const struct xattr_handler
17930 xops __attribute__ ((unused)) = {
17947 cat - <<_ACEOF >conftest.h
17952 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
17953 echo "obj-m := conftest.o" >build
/Makefile
17955 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
17956 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
17957 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17958 (eval $ac_try) 2>&5
17960 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17961 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
17962 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17963 (eval $ac_try) 2>&5
17965 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17966 test $ac_status = 0; }; }; then :
17968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17969 $as_echo "yes" >&6; }
17971 $as_echo "#define HAVE_XATTR_SET_HANDLER 1" >>confdefs.h
17975 $as_echo "$as_me: failed program was:" >&5
17976 sed 's/^/| /' conftest.
$ac_ext >&5
17978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17979 $as_echo "no" >&6; }
17980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether xattr_handler->set() wants dentry" >&5
17981 $as_echo_n "checking whether xattr_handler->set() wants dentry... " >&6; }
17984 cat confdefs.h
- <<_ACEOF >conftest.c
17987 #include <linux/xattr.h>
17989 int set(struct dentry *dentry, const char *name,
17990 const void *buffer, size_t size, int flags,
17991 int handler_flags) { return 0; }
17992 static const struct xattr_handler
17993 xops __attribute__ ((unused)) = {
18010 cat - <<_ACEOF >conftest.h
18015 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
18016 echo "obj-m := conftest.o" >build
/Makefile
18018 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
18019 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
18020 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18021 (eval $ac_try) 2>&5
18023 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18024 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
18025 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18026 (eval $ac_try) 2>&5
18028 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18029 test $ac_status = 0; }; }; then :
18031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18032 $as_echo "yes" >&6; }
18034 $as_echo "#define HAVE_XATTR_SET_DENTRY 1" >>confdefs.h
18038 $as_echo "$as_me: failed program was:" >&5
18039 sed 's/^/| /' conftest.
$ac_ext >&5
18041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18042 $as_echo "no" >&6; }
18043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether xattr_handler->set() wants inode" >&5
18044 $as_echo_n "checking whether xattr_handler->set() wants inode... " >&6; }
18047 cat confdefs.h
- <<_ACEOF >conftest.c
18050 #include <linux/xattr.h>
18052 int set(struct inode *ip, const char *name,
18053 const void *buffer, size_t size, int flags)
18055 static const struct xattr_handler
18056 xops __attribute__ ((unused)) = {
18073 cat - <<_ACEOF >conftest.h
18078 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
18079 echo "obj-m := conftest.o" >build
/Makefile
18081 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
18082 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
18083 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18084 (eval $ac_try) 2>&5
18086 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18087 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
18088 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18089 (eval $ac_try) 2>&5
18091 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18092 test $ac_status = 0; }; }; then :
18094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18095 $as_echo "yes" >&6; }
18097 $as_echo "#define HAVE_XATTR_SET_INODE 1" >>confdefs.h
18101 $as_echo "$as_me: failed program was:" >&5
18102 sed 's/^/| /' conftest.
$ac_ext >&5
18104 as_fn_error $?
"no; please file a bug report" "$LINENO" 5
18135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether xattr_handler->list() wants simple" >&5
18136 $as_echo_n "checking whether xattr_handler->list() wants simple... " >&6; }
18139 cat confdefs.h
- <<_ACEOF >conftest.c
18142 #include <linux/xattr.h>
18144 bool list(struct dentry *dentry) { return 0; }
18145 static const struct xattr_handler
18146 xops __attribute__ ((unused)) = {
18163 cat - <<_ACEOF >conftest.h
18168 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
18169 echo "obj-m := conftest.o" >build
/Makefile
18171 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
18172 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
18173 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18174 (eval $ac_try) 2>&5
18176 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18177 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
18178 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18179 (eval $ac_try) 2>&5
18181 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18182 test $ac_status = 0; }; }; then :
18184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18185 $as_echo "yes" >&6; }
18187 $as_echo "#define HAVE_XATTR_LIST_SIMPLE 1" >>confdefs.h
18191 $as_echo "$as_me: failed program was:" >&5
18192 sed 's/^/| /' conftest.
$ac_ext >&5
18194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18195 $as_echo "no" >&6; }
18196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether xattr_handler->list() wants xattr_handler" >&5
18197 $as_echo_n "checking whether xattr_handler->list() wants xattr_handler... " >&6; }
18200 cat confdefs.h
- <<_ACEOF >conftest.c
18203 #include <linux/xattr.h>
18205 size_t list(const struct xattr_handler *handler,
18206 struct dentry *dentry, char *list, size_t list_size,
18207 const char *name, size_t name_len) { return 0; }
18208 static const struct xattr_handler
18209 xops __attribute__ ((unused)) = {
18226 cat - <<_ACEOF >conftest.h
18231 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
18232 echo "obj-m := conftest.o" >build
/Makefile
18234 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
18235 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
18236 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18237 (eval $ac_try) 2>&5
18239 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18240 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
18241 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18242 (eval $ac_try) 2>&5
18244 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18245 test $ac_status = 0; }; }; then :
18247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18248 $as_echo "yes" >&6; }
18250 $as_echo "#define HAVE_XATTR_LIST_HANDLER 1" >>confdefs.h
18254 $as_echo "$as_me: failed program was:" >&5
18255 sed 's/^/| /' conftest.
$ac_ext >&5
18257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18258 $as_echo "no" >&6; }
18259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether xattr_handler->list() wants dentry" >&5
18260 $as_echo_n "checking whether xattr_handler->list() wants dentry... " >&6; }
18263 cat confdefs.h
- <<_ACEOF >conftest.c
18266 #include <linux/xattr.h>
18268 size_t list(struct dentry *dentry,
18269 char *list, size_t list_size,
18270 const char *name, size_t name_len,
18271 int handler_flags) { return 0; }
18272 static const struct xattr_handler
18273 xops __attribute__ ((unused)) = {
18290 cat - <<_ACEOF >conftest.h
18295 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
18296 echo "obj-m := conftest.o" >build
/Makefile
18298 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
18299 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
18300 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18301 (eval $ac_try) 2>&5
18303 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18304 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
18305 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18306 (eval $ac_try) 2>&5
18308 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18309 test $ac_status = 0; }; }; then :
18311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18312 $as_echo "yes" >&6; }
18314 $as_echo "#define HAVE_XATTR_LIST_DENTRY 1" >>confdefs.h
18318 $as_echo "$as_me: failed program was:" >&5
18319 sed 's/^/| /' conftest.
$ac_ext >&5
18321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18322 $as_echo "no" >&6; }
18323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether xattr_handler->list() wants inode" >&5
18324 $as_echo_n "checking whether xattr_handler->list() wants inode... " >&6; }
18327 cat confdefs.h
- <<_ACEOF >conftest.c
18330 #include <linux/xattr.h>
18332 size_t list(struct inode *ip, char *lst,
18333 size_t list_size, const char *name,
18334 size_t name_len) { return 0; }
18335 static const struct xattr_handler
18336 xops __attribute__ ((unused)) = {
18353 cat - <<_ACEOF >conftest.h
18358 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
18359 echo "obj-m := conftest.o" >build
/Makefile
18361 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
18362 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
18363 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18364 (eval $ac_try) 2>&5
18366 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18367 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
18368 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18369 (eval $ac_try) 2>&5
18371 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18372 test $ac_status = 0; }; }; then :
18374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18375 $as_echo "yes" >&6; }
18377 $as_echo "#define HAVE_XATTR_LIST_INODE 1" >>confdefs.h
18381 $as_echo "$as_me: failed program was:" >&5
18382 sed 's/^/| /' conftest.
$ac_ext >&5
18384 as_fn_error $?
"no; please file a bug report" "$LINENO" 5
18415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether inode_owner_or_capable() exists" >&5
18416 $as_echo_n "checking whether inode_owner_or_capable() exists... " >&6; }
18419 cat confdefs.h
- <<_ACEOF >conftest.c
18422 #include <linux/fs.h>
18428 struct inode *ip = NULL;
18429 (void) inode_owner_or_capable(ip);
18439 cat - <<_ACEOF >conftest.h
18444 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
18445 echo "obj-m := conftest.o" >build
/Makefile
18447 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
18448 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
18449 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18450 (eval $ac_try) 2>&5
18452 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18453 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
18454 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18455 (eval $ac_try) 2>&5
18457 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18458 test $ac_status = 0; }; }; then :
18460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18461 $as_echo "yes" >&6; }
18463 $as_echo "#define HAVE_INODE_OWNER_OR_CAPABLE 1" >>confdefs.h
18467 $as_echo "$as_me: failed program was:" >&5
18468 sed 's/^/| /' conftest.
$ac_ext >&5
18470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18471 $as_echo "no" >&6; }
18472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether is_owner_or_cap() exists" >&5
18473 $as_echo_n "checking whether is_owner_or_cap() exists... " >&6; }
18476 cat confdefs.h
- <<_ACEOF >conftest.c
18479 #include <linux/fs.h>
18480 #include <linux/sched.h>
18486 struct inode *ip = NULL;
18487 (void) is_owner_or_cap(ip);
18497 cat - <<_ACEOF >conftest.h
18502 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
18503 echo "obj-m := conftest.o" >build
/Makefile
18505 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
18506 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
18507 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18508 (eval $ac_try) 2>&5
18510 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18511 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
18512 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18513 (eval $ac_try) 2>&5
18515 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18516 test $ac_status = 0; }; }; then :
18518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18519 $as_echo "yes" >&6; }
18521 $as_echo "#define HAVE_IS_OWNER_OR_CAP 1" >>confdefs.h
18525 $as_echo "$as_me: failed program was:" >&5
18526 sed 's/^/| /' conftest.
$ac_ext >&5
18528 as_fn_error $?
"no - Please file a bug report at
18529 https://github.com/zfsonlinux/zfs/issues/new" "$LINENO" 5
18546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether posix_acl_from_xattr() needs user_ns" >&5
18547 $as_echo_n "checking whether posix_acl_from_xattr() needs user_ns... " >&6; }
18550 cat confdefs.h
- <<_ACEOF >conftest.c
18553 #include <linux/cred.h>
18554 #include <linux/fs.h>
18555 #include <linux/posix_acl_xattr.h>
18561 posix_acl_from_xattr(&init_user_ns, NULL, 0);
18571 cat - <<_ACEOF >conftest.h
18576 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
18577 echo "obj-m := conftest.o" >build
/Makefile
18579 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
18580 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
18581 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18582 (eval $ac_try) 2>&5
18584 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18585 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
18586 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18587 (eval $ac_try) 2>&5
18589 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18590 test $ac_status = 0; }; }; then :
18592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18593 $as_echo "yes" >&6; }
18595 $as_echo "#define HAVE_POSIX_ACL_FROM_XATTR_USERNS 1" >>confdefs.h
18599 $as_echo "$as_me: failed program was:" >&5
18600 sed 's/^/| /' conftest.
$ac_ext >&5
18602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18603 $as_echo "no" >&6; }
18613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether posix_acl_release() is available" >&5
18614 $as_echo_n "checking whether posix_acl_release() is available... " >&6; }
18617 cat confdefs.h
- <<_ACEOF >conftest.c
18620 #include <linux/cred.h>
18621 #include <linux/fs.h>
18622 #include <linux/posix_acl.h>
18628 struct posix_acl* tmp = posix_acl_alloc(1, 0);
18629 posix_acl_release(tmp);
18639 cat - <<_ACEOF >conftest.h
18644 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
18645 echo "obj-m := conftest.o" >build
/Makefile
18647 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
18648 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
18649 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18650 (eval $ac_try) 2>&5
18652 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18653 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
18654 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18655 (eval $ac_try) 2>&5
18657 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18658 test $ac_status = 0; }; }; then :
18660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18661 $as_echo "yes" >&6; }
18663 $as_echo "#define HAVE_POSIX_ACL_RELEASE 1" >>confdefs.h
18667 $as_echo "$as_me: failed program was:" >&5
18668 sed 's/^/| /' conftest.
$ac_ext >&5
18670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18671 $as_echo "no" >&6; }
18680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether posix_acl_release() is GPL-only" >&5
18681 $as_echo_n "checking whether posix_acl_release() is GPL-only... " >&6; }
18684 cat confdefs.h
- <<_ACEOF >conftest.c
18687 #include <linux/cred.h>
18688 #include <linux/fs.h>
18689 #include <linux/posix_acl.h>
18691 MODULE_LICENSE("$ZFS_META_LICENSE");
18697 struct posix_acl* tmp = posix_acl_alloc(1, 0);
18698 posix_acl_release(tmp);
18708 cat - <<_ACEOF >conftest.h
18713 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
18714 echo "obj-m := conftest.o" >build
/Makefile
18716 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
18717 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
18718 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18719 (eval $ac_try) 2>&5
18721 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18722 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
18723 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18724 (eval $ac_try) 2>&5
18726 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18727 test $ac_status = 0; }; }; then :
18729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18730 $as_echo "no" >&6; }
18733 $as_echo "$as_me: failed program was:" >&5
18734 sed 's/^/| /' conftest.
$ac_ext >&5
18736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18737 $as_echo "yes" >&6; }
18739 $as_echo "#define HAVE_POSIX_ACL_RELEASE_GPL_ONLY 1" >>confdefs.h
18750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether set_cached_acl() is usable" >&5
18751 $as_echo_n "checking whether set_cached_acl() is usable... " >&6; }
18754 cat confdefs.h
- <<_ACEOF >conftest.c
18757 #include <linux/module.h>
18758 #include <linux/cred.h>
18759 #include <linux/fs.h>
18760 #include <linux/posix_acl.h>
18762 MODULE_LICENSE("$ZFS_META_LICENSE");
18768 struct inode *ip = NULL;
18769 struct posix_acl *acl = posix_acl_alloc(1, 0);
18770 set_cached_acl(ip, ACL_TYPE_ACCESS, acl);
18771 forget_cached_acl(ip, ACL_TYPE_ACCESS);
18781 cat - <<_ACEOF >conftest.h
18786 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
18787 echo "obj-m := conftest.o" >build
/Makefile
18789 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
18790 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
18791 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18792 (eval $ac_try) 2>&5
18794 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18795 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
18796 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18797 (eval $ac_try) 2>&5
18799 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18800 test $ac_status = 0; }; }; then :
18802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18803 $as_echo "yes" >&6; }
18805 $as_echo "#define HAVE_SET_CACHED_ACL_USABLE 1" >>confdefs.h
18809 $as_echo "$as_me: failed program was:" >&5
18810 sed 's/^/| /' conftest.
$ac_ext >&5
18812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18813 $as_echo "no" >&6; }
18823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether posix_acl_chmod exists" >&5
18824 $as_echo_n "checking whether posix_acl_chmod exists... " >&6; }
18827 cat confdefs.h
- <<_ACEOF >conftest.c
18830 #include <linux/fs.h>
18831 #include <linux/posix_acl.h>
18837 posix_acl_chmod(NULL, 0, 0)
18847 cat - <<_ACEOF >conftest.h
18852 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
18853 echo "obj-m := conftest.o" >build
/Makefile
18855 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
18856 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
18857 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18858 (eval $ac_try) 2>&5
18860 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18861 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
18862 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18863 (eval $ac_try) 2>&5
18865 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18866 test $ac_status = 0; }; }; then :
18868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18869 $as_echo "yes" >&6; }
18871 $as_echo "#define HAVE_POSIX_ACL_CHMOD 1" >>confdefs.h
18875 $as_echo "$as_me: failed program was:" >&5
18876 sed 's/^/| /' conftest.
$ac_ext >&5
18878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18879 $as_echo "no" >&6; }
18888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __posix_acl_chmod exists" >&5
18889 $as_echo_n "checking whether __posix_acl_chmod exists... " >&6; }
18892 cat confdefs.h
- <<_ACEOF >conftest.c
18895 #include <linux/fs.h>
18896 #include <linux/posix_acl.h>
18902 __posix_acl_chmod(NULL, 0, 0)
18912 cat - <<_ACEOF >conftest.h
18917 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
18918 echo "obj-m := conftest.o" >build
/Makefile
18920 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
18921 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
18922 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18923 (eval $ac_try) 2>&5
18925 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18926 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
18927 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18928 (eval $ac_try) 2>&5
18930 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18931 test $ac_status = 0; }; }; then :
18933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18934 $as_echo "yes" >&6; }
18936 $as_echo "#define HAVE___POSIX_ACL_CHMOD 1" >>confdefs.h
18940 $as_echo "$as_me: failed program was:" >&5
18941 sed 's/^/| /' conftest.
$ac_ext >&5
18943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18944 $as_echo "no" >&6; }
18954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether posix_acl_equiv_mode() wants umode_t" >&5
18955 $as_echo_n "checking whether posix_acl_equiv_mode() wants umode_t... " >&6; }
18958 cat confdefs.h
- <<_ACEOF >conftest.c
18961 #include <linux/fs.h>
18962 #include <linux/posix_acl.h>
18969 posix_acl_equiv_mode(NULL,&tmp);
18979 cat - <<_ACEOF >conftest.h
18984 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
18985 echo "obj-m := conftest.o" >build
/Makefile
18987 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
18988 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
18989 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18990 (eval $ac_try) 2>&5
18992 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18993 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
18994 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18995 (eval $ac_try) 2>&5
18997 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18998 test $ac_status = 0; }; }; then :
19000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19001 $as_echo "yes" >&6; }
19003 $as_echo "#define HAVE_POSIX_ACL_EQUIV_MODE_UMODE_T 1" >>confdefs.h
19007 $as_echo "$as_me: failed program was:" >&5
19008 sed 's/^/| /' conftest.
$ac_ext >&5
19010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19011 $as_echo "no" >&6; }
19021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether posix_acl_valid() wants user namespace" >&5
19022 $as_echo_n "checking whether posix_acl_valid() wants user namespace... " >&6; }
19025 cat confdefs.h
- <<_ACEOF >conftest.c
19028 #include <linux/fs.h>
19029 #include <linux/posix_acl.h>
19035 struct user_namespace *user_ns = NULL;
19036 const struct posix_acl *acl = NULL;
19039 error = posix_acl_valid(user_ns, acl);
19049 cat - <<_ACEOF >conftest.h
19054 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
19055 echo "obj-m := conftest.o" >build
/Makefile
19057 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
19058 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
19059 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19060 (eval $ac_try) 2>&5
19062 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19063 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
19064 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19065 (eval $ac_try) 2>&5
19067 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19068 test $ac_status = 0; }; }; then :
19070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19071 $as_echo "yes" >&6; }
19073 $as_echo "#define HAVE_POSIX_ACL_VALID_WITH_NS 1" >>confdefs.h
19077 $as_echo "$as_me: failed program was:" >&5
19078 sed 's/^/| /' conftest.
$ac_ext >&5
19080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19081 $as_echo "no" >&6; }
19091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->permission() exists" >&5
19092 $as_echo_n "checking whether iops->permission() exists... " >&6; }
19095 cat confdefs.h
- <<_ACEOF >conftest.c
19098 #include <linux/fs.h>
19100 int permission_fn(struct inode *inode, int mask) { return 0; }
19102 static const struct inode_operations
19103 iops __attribute__ ((unused)) = {
19104 .permission = permission_fn,
19120 cat - <<_ACEOF >conftest.h
19125 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
19126 echo "obj-m := conftest.o" >build
/Makefile
19128 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
19129 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
19130 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19131 (eval $ac_try) 2>&5
19133 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19134 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
19135 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19136 (eval $ac_try) 2>&5
19138 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19139 test $ac_status = 0; }; }; then :
19141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19142 $as_echo "yes" >&6; }
19144 $as_echo "#define HAVE_PERMISSION 1" >>confdefs.h
19148 $as_echo "$as_me: failed program was:" >&5
19149 sed 's/^/| /' conftest.
$ac_ext >&5
19151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19152 $as_echo "no" >&6; }
19162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->permission() wants nameidata" >&5
19163 $as_echo_n "checking whether iops->permission() wants nameidata... " >&6; }
19166 cat confdefs.h
- <<_ACEOF >conftest.c
19169 #include <linux/fs.h>
19171 int permission_fn(struct inode *inode, int mask,
19172 struct nameidata *nd) { return 0; }
19174 static const struct inode_operations
19175 iops __attribute__ ((unused)) = {
19176 .permission = permission_fn,
19192 cat - <<_ACEOF >conftest.h
19197 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
19198 echo "obj-m := conftest.o" >build
/Makefile
19200 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
19201 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
19202 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19203 (eval $ac_try) 2>&5
19205 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19206 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
19207 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19208 (eval $ac_try) 2>&5
19210 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19211 test $ac_status = 0; }; }; then :
19213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19214 $as_echo "yes" >&6; }
19216 $as_echo "#define HAVE_PERMISSION 1" >>confdefs.h
19219 $as_echo "#define HAVE_PERMISSION_WITH_NAMEIDATA 1" >>confdefs.h
19223 $as_echo "$as_me: failed program was:" >&5
19224 sed 's/^/| /' conftest.
$ac_ext >&5
19226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19227 $as_echo "no" >&6; }
19237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->check_acl() exists" >&5
19238 $as_echo_n "checking whether iops->check_acl() exists... " >&6; }
19241 cat confdefs.h
- <<_ACEOF >conftest.c
19244 #include <linux/fs.h>
19246 int check_acl_fn(struct inode *inode, int mask) { return 0; }
19248 static const struct inode_operations
19249 iops __attribute__ ((unused)) = {
19250 .check_acl = check_acl_fn,
19266 cat - <<_ACEOF >conftest.h
19271 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
19272 echo "obj-m := conftest.o" >build
/Makefile
19274 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
19275 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
19276 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19277 (eval $ac_try) 2>&5
19279 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19280 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
19281 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19282 (eval $ac_try) 2>&5
19284 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19285 test $ac_status = 0; }; }; then :
19287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19288 $as_echo "yes" >&6; }
19290 $as_echo "#define HAVE_CHECK_ACL 1" >>confdefs.h
19294 $as_echo "$as_me: failed program was:" >&5
19295 sed 's/^/| /' conftest.
$ac_ext >&5
19297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19298 $as_echo "no" >&6; }
19308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->check_acl() wants flags" >&5
19309 $as_echo_n "checking whether iops->check_acl() wants flags... " >&6; }
19312 cat confdefs.h
- <<_ACEOF >conftest.c
19315 #include <linux/fs.h>
19317 int check_acl_fn(struct inode *inode, int mask,
19318 unsigned int flags) { return 0; }
19320 static const struct inode_operations
19321 iops __attribute__ ((unused)) = {
19322 .check_acl = check_acl_fn,
19338 cat - <<_ACEOF >conftest.h
19343 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
19344 echo "obj-m := conftest.o" >build
/Makefile
19346 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
19347 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
19348 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19349 (eval $ac_try) 2>&5
19351 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19352 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
19353 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19354 (eval $ac_try) 2>&5
19356 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19357 test $ac_status = 0; }; }; then :
19359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19360 $as_echo "yes" >&6; }
19362 $as_echo "#define HAVE_CHECK_ACL 1" >>confdefs.h
19365 $as_echo "#define HAVE_CHECK_ACL_WITH_FLAGS 1" >>confdefs.h
19369 $as_echo "$as_me: failed program was:" >&5
19370 sed 's/^/| /' conftest.
$ac_ext >&5
19372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19373 $as_echo "no" >&6; }
19383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->get_acl() exists" >&5
19384 $as_echo_n "checking whether iops->get_acl() exists... " >&6; }
19387 cat confdefs.h
- <<_ACEOF >conftest.c
19390 #include <linux/fs.h>
19392 struct posix_acl *get_acl_fn(struct inode *inode, int type)
19395 static const struct inode_operations
19396 iops __attribute__ ((unused)) = {
19397 .get_acl = get_acl_fn,
19413 cat - <<_ACEOF >conftest.h
19418 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
19419 echo "obj-m := conftest.o" >build
/Makefile
19421 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
19422 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
19423 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19424 (eval $ac_try) 2>&5
19426 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19427 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
19428 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19429 (eval $ac_try) 2>&5
19431 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19432 test $ac_status = 0; }; }; then :
19434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19435 $as_echo "yes" >&6; }
19437 $as_echo "#define HAVE_GET_ACL 1" >>confdefs.h
19441 $as_echo "$as_me: failed program was:" >&5
19442 sed 's/^/| /' conftest.
$ac_ext >&5
19444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19445 $as_echo "no" >&6; }
19455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->set_acl() exists" >&5
19456 $as_echo_n "checking whether iops->set_acl() exists... " >&6; }
19459 cat confdefs.h
- <<_ACEOF >conftest.c
19462 #include <linux/fs.h>
19464 int set_acl_fn(struct inode *inode, struct posix_acl *acl, int type)
19467 static const struct inode_operations
19468 iops __attribute__ ((unused)) = {
19469 .set_acl = set_acl_fn,
19485 cat - <<_ACEOF >conftest.h
19490 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
19491 echo "obj-m := conftest.o" >build
/Makefile
19493 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
19494 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
19495 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19496 (eval $ac_try) 2>&5
19498 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19499 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
19500 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19501 (eval $ac_try) 2>&5
19503 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19504 test $ac_status = 0; }; }; then :
19506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19507 $as_echo "yes" >&6; }
19509 $as_echo "#define HAVE_SET_ACL 1" >>confdefs.h
19513 $as_echo "$as_me: failed program was:" >&5
19514 sed 's/^/| /' conftest.
$ac_ext >&5
19516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19517 $as_echo "no" >&6; }
19528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->getattr() takes a path" >&5
19529 $as_echo_n "checking whether iops->getattr() takes a path... " >&6; }
19532 cat confdefs.h
- <<_ACEOF >conftest.c
19535 #include <linux/fs.h>
19538 const struct path *p, struct kstat *k,
19539 u32 request_mask, unsigned int query_flags)
19542 static const struct inode_operations
19543 iops __attribute__ ((unused)) = {
19544 .getattr = test_getattr,
19560 cat - <<_ACEOF >conftest.h
19565 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
19566 echo "obj-m := conftest.o" >build
/Makefile
19568 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
19569 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
19570 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19571 (eval $ac_try) 2>&5
19573 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19574 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
19575 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19576 (eval $ac_try) 2>&5
19578 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19579 test $ac_status = 0; }; }; then :
19581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19582 $as_echo "yes" >&6; }
19584 $as_echo "#define HAVE_PATH_IOPS_GETATTR 1" >>confdefs.h
19588 $as_echo "$as_me: failed program was:" >&5
19589 sed 's/^/| /' conftest.
$ac_ext >&5
19591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19592 $as_echo "no" >&6; }
19602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->getattr() takes a vfsmount" >&5
19603 $as_echo_n "checking whether iops->getattr() takes a vfsmount... " >&6; }
19606 cat confdefs.h
- <<_ACEOF >conftest.c
19609 #include <linux/fs.h>
19612 struct vfsmount *mnt, struct dentry *d,
19616 static const struct inode_operations
19617 iops __attribute__ ((unused)) = {
19618 .getattr = test_getattr,
19634 cat - <<_ACEOF >conftest.h
19639 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
19640 echo "obj-m := conftest.o" >build
/Makefile
19642 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
19643 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
19644 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19645 (eval $ac_try) 2>&5
19647 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19648 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
19649 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19650 (eval $ac_try) 2>&5
19652 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19653 test $ac_status = 0; }; }; then :
19655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19656 $as_echo "yes" >&6; }
19658 $as_echo "#define HAVE_VFSMOUNT_IOPS_GETATTR 1" >>confdefs.h
19662 $as_echo "$as_me: failed program was:" >&5
19663 sed 's/^/| /' conftest.
$ac_ext >&5
19665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19666 $as_echo "no" >&6; }
19677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether uncached_acl_sentinel() exists" >&5
19678 $as_echo_n "checking whether uncached_acl_sentinel() exists... " >&6; }
19681 cat confdefs.h
- <<_ACEOF >conftest.c
19684 #include <linux/fs.h>
19690 void *sentinel __attribute__ ((unused)) = uncached_acl_sentinel(NULL);
19700 cat - <<_ACEOF >conftest.h
19705 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
19706 echo "obj-m := conftest.o" >build
/Makefile
19708 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
19709 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
19710 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19711 (eval $ac_try) 2>&5
19713 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19714 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
19715 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19716 (eval $ac_try) 2>&5
19718 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19719 test $ac_status = 0; }; }; then :
19721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19722 $as_echo "yes" >&6; }
19724 $as_echo "#define HAVE_KERNEL_GET_ACL_HANDLE_CACHE 1" >>confdefs.h
19728 $as_echo "$as_me: failed program was:" >&5
19729 sed 's/^/| /' conftest.
$ac_ext >&5
19731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19732 $as_echo "no" >&6; }
19742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sops->show_options() wants dentry" >&5
19743 $as_echo_n "checking whether sops->show_options() wants dentry... " >&6; }
19747 cat confdefs.h
- <<_ACEOF >conftest.c
19750 #include <linux/fs.h>
19752 int show_options (struct seq_file * x, struct dentry * y) { return 0; };
19753 static struct super_operations sops __attribute__ ((unused)) = {
19754 .show_options = show_options,
19770 cat - <<_ACEOF >conftest.h
19775 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
19776 echo "obj-m := conftest.o" >build
/Makefile
19778 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
19779 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
19780 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19781 (eval $ac_try) 2>&5
19783 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19784 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
19785 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19786 (eval $ac_try) 2>&5
19788 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19789 test $ac_status = 0; }; }; then :
19791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19792 $as_echo "yes" >&6; }
19794 $as_echo "#define HAVE_SHOW_OPTIONS_WITH_DENTRY 1" >>confdefs.h
19798 $as_echo "$as_me: failed program was:" >&5
19799 sed 's/^/| /' conftest.
$ac_ext >&5
19801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19802 $as_echo "no" >&6; }
19812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether file_inode() is available" >&5
19813 $as_echo_n "checking whether file_inode() is available... " >&6; }
19816 cat confdefs.h
- <<_ACEOF >conftest.c
19819 #include <linux/fs.h>
19825 struct file *f = NULL;
19836 cat - <<_ACEOF >conftest.h
19841 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
19842 echo "obj-m := conftest.o" >build
/Makefile
19844 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
19845 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
19846 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19847 (eval $ac_try) 2>&5
19849 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19850 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
19851 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19852 (eval $ac_try) 2>&5
19854 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19855 test $ac_status = 0; }; }; then :
19857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19858 $as_echo "yes" >&6; }
19860 $as_echo "#define HAVE_FILE_INODE 1" >>confdefs.h
19864 $as_echo "$as_me: failed program was:" >&5
19865 sed 's/^/| /' conftest.
$ac_ext >&5
19867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19868 $as_echo "no" >&6; }
19878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fops->fsync() wants" >&5
19879 $as_echo_n "checking whether fops->fsync() wants... " >&6; }
19883 cat confdefs.h
- <<_ACEOF >conftest.c
19886 #include <linux/fs.h>
19888 int test_fsync(struct file *f, struct dentry *dentry, int x)
19891 static const struct file_operations
19892 fops __attribute__ ((unused)) = {
19893 .fsync = test_fsync,
19909 cat - <<_ACEOF >conftest.h
19914 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
19915 echo "obj-m := conftest.o" >build
/Makefile
19917 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
19918 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
19919 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19920 (eval $ac_try) 2>&5
19922 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19923 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
19924 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19925 (eval $ac_try) 2>&5
19927 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19928 test $ac_status = 0; }; }; then :
19930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: dentry" >&5
19931 $as_echo "dentry" >&6; }
19933 $as_echo "#define HAVE_FSYNC_WITH_DENTRY 1" >>confdefs.h
19937 $as_echo "$as_me: failed program was:" >&5
19938 sed 's/^/| /' conftest.
$ac_ext >&5
19951 cat confdefs.h
- <<_ACEOF >conftest.c
19954 #include <linux/fs.h>
19956 int test_fsync(struct file *f, int x) { return 0; }
19958 static const struct file_operations
19959 fops __attribute__ ((unused)) = {
19960 .fsync = test_fsync,
19976 cat - <<_ACEOF >conftest.h
19981 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
19982 echo "obj-m := conftest.o" >build
/Makefile
19984 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
19985 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
19986 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19987 (eval $ac_try) 2>&5
19989 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19990 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
19991 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19992 (eval $ac_try) 2>&5
19994 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19995 test $ac_status = 0; }; }; then :
19997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no dentry" >&5
19998 $as_echo "no dentry" >&6; }
20000 $as_echo "#define HAVE_FSYNC_WITHOUT_DENTRY 1" >>confdefs.h
20004 $as_echo "$as_me: failed program was:" >&5
20005 sed 's/^/| /' conftest.
$ac_ext >&5
20018 cat confdefs.h
- <<_ACEOF >conftest.c
20021 #include <linux/fs.h>
20023 int test_fsync(struct file *f, loff_t a, loff_t b, int c)
20026 static const struct file_operations
20027 fops __attribute__ ((unused)) = {
20028 .fsync = test_fsync,
20044 cat - <<_ACEOF >conftest.h
20049 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
20050 echo "obj-m := conftest.o" >build
/Makefile
20052 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
20053 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
20054 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20055 (eval $ac_try) 2>&5
20057 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20058 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
20059 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20060 (eval $ac_try) 2>&5
20062 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20063 test $ac_status = 0; }; }; then :
20065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: range" >&5
20066 $as_echo "range" >&6; }
20068 $as_echo "#define HAVE_FSYNC_RANGE 1" >>confdefs.h
20072 $as_echo "$as_me: failed program was:" >&5
20073 sed 's/^/| /' conftest.
$ac_ext >&5
20085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sops->evict_inode() exists" >&5
20086 $as_echo_n "checking whether sops->evict_inode() exists... " >&6; }
20089 cat confdefs.h
- <<_ACEOF >conftest.c
20092 #include <linux/fs.h>
20093 void evict_inode (struct inode * t) { return; }
20094 static struct super_operations sops __attribute__ ((unused)) = {
20095 .evict_inode = evict_inode,
20111 cat - <<_ACEOF >conftest.h
20116 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
20117 echo "obj-m := conftest.o" >build
/Makefile
20119 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
20120 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
20121 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20122 (eval $ac_try) 2>&5
20124 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20125 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
20126 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20127 (eval $ac_try) 2>&5
20129 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20130 test $ac_status = 0; }; }; then :
20132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20133 $as_echo "yes" >&6; }
20135 $as_echo "#define HAVE_EVICT_INODE 1" >>confdefs.h
20139 $as_echo "$as_me: failed program was:" >&5
20140 sed 's/^/| /' conftest.
$ac_ext >&5
20142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20143 $as_echo "no" >&6; }
20153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sops->dirty_inode() wants flags" >&5
20154 $as_echo_n "checking whether sops->dirty_inode() wants flags... " >&6; }
20157 cat confdefs.h
- <<_ACEOF >conftest.c
20160 #include <linux/fs.h>
20162 void dirty_inode(struct inode *a, int b) { return; }
20164 static const struct super_operations
20165 sops __attribute__ ((unused)) = {
20166 .dirty_inode = dirty_inode,
20182 cat - <<_ACEOF >conftest.h
20187 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
20188 echo "obj-m := conftest.o" >build
/Makefile
20190 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
20191 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
20192 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20193 (eval $ac_try) 2>&5
20195 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20196 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
20197 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20198 (eval $ac_try) 2>&5
20200 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20201 test $ac_status = 0; }; }; then :
20203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20204 $as_echo "yes" >&6; }
20206 $as_echo "#define HAVE_DIRTY_INODE_WITH_FLAGS 1" >>confdefs.h
20210 $as_echo "$as_me: failed program was:" >&5
20211 sed 's/^/| /' conftest.
$ac_ext >&5
20213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20214 $as_echo "no" >&6; }
20224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sops->nr_cached_objects() exists" >&5
20225 $as_echo_n "checking whether sops->nr_cached_objects() exists... " >&6; }
20228 cat confdefs.h
- <<_ACEOF >conftest.c
20231 #include <linux/fs.h>
20233 int nr_cached_objects(struct super_block *sb) { return 0; }
20235 static const struct super_operations
20236 sops __attribute__ ((unused)) = {
20237 .nr_cached_objects = nr_cached_objects,
20253 cat - <<_ACEOF >conftest.h
20258 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
20259 echo "obj-m := conftest.o" >build
/Makefile
20261 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
20262 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
20263 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20264 (eval $ac_try) 2>&5
20266 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20267 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
20268 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20269 (eval $ac_try) 2>&5
20271 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20272 test $ac_status = 0; }; }; then :
20274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20275 $as_echo "yes" >&6; }
20277 $as_echo "#define HAVE_NR_CACHED_OBJECTS 1" >>confdefs.h
20281 $as_echo "$as_me: failed program was:" >&5
20282 sed 's/^/| /' conftest.
$ac_ext >&5
20284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20285 $as_echo "no" >&6; }
20295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sops->free_cached_objects() exists" >&5
20296 $as_echo_n "checking whether sops->free_cached_objects() exists... " >&6; }
20299 cat confdefs.h
- <<_ACEOF >conftest.c
20302 #include <linux/fs.h>
20304 void free_cached_objects(struct super_block *sb, int x)
20307 static const struct super_operations
20308 sops __attribute__ ((unused)) = {
20309 .free_cached_objects = free_cached_objects,
20325 cat - <<_ACEOF >conftest.h
20330 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
20331 echo "obj-m := conftest.o" >build
/Makefile
20333 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
20334 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
20335 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20336 (eval $ac_try) 2>&5
20338 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20339 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
20340 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20341 (eval $ac_try) 2>&5
20343 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20344 test $ac_status = 0; }; }; then :
20346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20347 $as_echo "yes" >&6; }
20349 $as_echo "#define HAVE_FREE_CACHED_OBJECTS 1" >>confdefs.h
20353 $as_echo "$as_me: failed program was:" >&5
20354 sed 's/^/| /' conftest.
$ac_ext >&5
20356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20357 $as_echo "no" >&6; }
20368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fops->fallocate() exists" >&5
20369 $as_echo_n "checking whether fops->fallocate() exists... " >&6; }
20372 cat confdefs.h
- <<_ACEOF >conftest.c
20375 #include <linux/fs.h>
20377 long test_fallocate(struct file *file, int mode,
20378 loff_t offset, loff_t len) { return 0; }
20380 static const struct file_operations
20381 fops __attribute__ ((unused)) = {
20382 .fallocate = test_fallocate,
20398 cat - <<_ACEOF >conftest.h
20403 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
20404 echo "obj-m := conftest.o" >build
/Makefile
20406 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
20407 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
20408 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20409 (eval $ac_try) 2>&5
20411 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20412 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
20413 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20414 (eval $ac_try) 2>&5
20416 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20417 test $ac_status = 0; }; }; then :
20419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20420 $as_echo "yes" >&6; }
20422 $as_echo "#define HAVE_FILE_FALLOCATE 1" >>confdefs.h
20426 $as_echo "$as_me: failed program was:" >&5
20427 sed 's/^/| /' conftest.
$ac_ext >&5
20429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20430 $as_echo "no" >&6; }
20440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->fallocate() exists" >&5
20441 $as_echo_n "checking whether iops->fallocate() exists... " >&6; }
20444 cat confdefs.h
- <<_ACEOF >conftest.c
20447 #include <linux/fs.h>
20449 long test_fallocate(struct inode *inode, int mode,
20450 loff_t offset, loff_t len) { return 0; }
20452 static const struct inode_operations
20453 fops __attribute__ ((unused)) = {
20454 .fallocate = test_fallocate,
20470 cat - <<_ACEOF >conftest.h
20475 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
20476 echo "obj-m := conftest.o" >build
/Makefile
20478 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
20479 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
20480 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20481 (eval $ac_try) 2>&5
20483 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20484 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
20485 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20486 (eval $ac_try) 2>&5
20488 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20489 test $ac_status = 0; }; }; then :
20491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20492 $as_echo "yes" >&6; }
20494 $as_echo "#define HAVE_INODE_FALLOCATE 1" >>confdefs.h
20498 $as_echo "$as_me: failed program was:" >&5
20499 sed 's/^/| /' conftest.
$ac_ext >&5
20501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20502 $as_echo "no" >&6; }
20513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fops->aio_fsync() exists" >&5
20514 $as_echo_n "checking whether fops->aio_fsync() exists... " >&6; }
20517 cat confdefs.h
- <<_ACEOF >conftest.c
20520 #include <linux/fs.h>
20522 static const struct file_operations
20523 fops __attribute__ ((unused)) = {
20540 cat - <<_ACEOF >conftest.h
20545 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
20546 echo "obj-m := conftest.o" >build
/Makefile
20548 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
20549 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
20550 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20551 (eval $ac_try) 2>&5
20553 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20554 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
20555 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20556 (eval $ac_try) 2>&5
20558 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20559 test $ac_status = 0; }; }; then :
20561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20562 $as_echo "yes" >&6; }
20564 $as_echo "#define HAVE_FILE_AIO_FSYNC 1" >>confdefs.h
20568 $as_echo "$as_me: failed program was:" >&5
20569 sed 's/^/| /' conftest.
$ac_ext >&5
20571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20572 $as_echo "no" >&6; }
20582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->create()/mkdir()/mknod() take umode_t" >&5
20583 $as_echo_n "checking whether iops->create()/mkdir()/mknod() take umode_t... " >&6; }
20586 cat confdefs.h
- <<_ACEOF >conftest.c
20589 #include <linux/fs.h>
20591 int mkdir(struct inode *inode, struct dentry *dentry,
20592 umode_t umode) { return 0; }
20594 static const struct inode_operations
20595 iops __attribute__ ((unused)) = {
20612 cat - <<_ACEOF >conftest.h
20617 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
20618 echo "obj-m := conftest.o" >build
/Makefile
20620 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
20621 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
20622 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20623 (eval $ac_try) 2>&5
20625 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20626 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
20627 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20628 (eval $ac_try) 2>&5
20630 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20631 test $ac_status = 0; }; }; then :
20633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20634 $as_echo "yes" >&6; }
20636 $as_echo "#define HAVE_MKDIR_UMODE_T 1" >>confdefs.h
20640 $as_echo "$as_me: failed program was:" >&5
20641 sed 's/^/| /' conftest.
$ac_ext >&5
20643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20644 $as_echo "no" >&6; }
20654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->lookup() passes nameidata" >&5
20655 $as_echo_n "checking whether iops->lookup() passes nameidata... " >&6; }
20658 cat confdefs.h
- <<_ACEOF >conftest.c
20661 #include <linux/fs.h>
20663 struct dentry *inode_lookup(struct inode *inode,
20664 struct dentry *dentry, struct nameidata *nidata)
20667 static const struct inode_operations iops
20668 __attribute__ ((unused)) = {
20669 .lookup = inode_lookup,
20685 cat - <<_ACEOF >conftest.h
20690 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
20691 echo "obj-m := conftest.o" >build
/Makefile
20693 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
20694 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
20695 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20696 (eval $ac_try) 2>&5
20698 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20699 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
20700 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20701 (eval $ac_try) 2>&5
20703 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20704 test $ac_status = 0; }; }; then :
20706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20707 $as_echo "yes" >&6; }
20709 $as_echo "#define HAVE_LOOKUP_NAMEIDATA 1" >>confdefs.h
20713 $as_echo "$as_me: failed program was:" >&5
20714 sed 's/^/| /' conftest.
$ac_ext >&5
20716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20717 $as_echo "no" >&6; }
20727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->create() passes nameidata" >&5
20728 $as_echo_n "checking whether iops->create() passes nameidata... " >&6; }
20731 cat confdefs.h
- <<_ACEOF >conftest.c
20734 #include <linux/fs.h>
20736 #ifdef HAVE_MKDIR_UMODE_T
20737 int inode_create(struct inode *inode ,struct dentry *dentry,
20738 umode_t umode, struct nameidata *nidata) { return 0; }
20740 int inode_create(struct inode *inode,struct dentry *dentry,
20741 int umode, struct nameidata * nidata) { return 0; }
20744 static const struct inode_operations
20745 iops __attribute__ ((unused)) = {
20746 .create = inode_create,
20762 cat - <<_ACEOF >conftest.h
20767 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
20768 echo "obj-m := conftest.o" >build
/Makefile
20770 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
20771 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
20772 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20773 (eval $ac_try) 2>&5
20775 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20776 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
20777 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20778 (eval $ac_try) 2>&5
20780 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20781 test $ac_status = 0; }; }; then :
20783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20784 $as_echo "yes" >&6; }
20786 $as_echo "#define HAVE_CREATE_NAMEIDATA 1" >>confdefs.h
20790 $as_echo "$as_me: failed program was:" >&5
20791 sed 's/^/| /' conftest.
$ac_ext >&5
20793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20794 $as_echo "no" >&6; }
20804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->get_link() passes delayed" >&5
20805 $as_echo_n "checking whether iops->get_link() passes delayed... " >&6; }
20808 cat confdefs.h
- <<_ACEOF >conftest.c
20811 #include <linux/fs.h>
20812 const char *get_link(struct dentry *de, struct inode *ip,
20813 struct delayed_call *done) { return "symlink"; }
20814 static struct inode_operations
20815 iops __attribute__ ((unused)) = {
20816 .get_link = get_link,
20832 cat - <<_ACEOF >conftest.h
20837 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
20838 echo "obj-m := conftest.o" >build
/Makefile
20840 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
20841 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
20842 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20843 (eval $ac_try) 2>&5
20845 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20846 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
20847 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20848 (eval $ac_try) 2>&5
20850 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20851 test $ac_status = 0; }; }; then :
20853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20854 $as_echo "yes" >&6; }
20856 $as_echo "#define HAVE_GET_LINK_DELAYED 1" >>confdefs.h
20860 $as_echo "$as_me: failed program was:" >&5
20861 sed 's/^/| /' conftest.
$ac_ext >&5
20863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20864 $as_echo "no" >&6; }
20865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->get_link() passes cookie" >&5
20866 $as_echo_n "checking whether iops->get_link() passes cookie... " >&6; }
20869 cat confdefs.h
- <<_ACEOF >conftest.c
20872 #include <linux/fs.h>
20873 const char *get_link(struct dentry *de, struct
20874 inode *ip, void **cookie) { return "symlink"; }
20875 static struct inode_operations
20876 iops __attribute__ ((unused)) = {
20877 .get_link = get_link,
20893 cat - <<_ACEOF >conftest.h
20898 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
20899 echo "obj-m := conftest.o" >build
/Makefile
20901 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
20902 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
20903 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20904 (eval $ac_try) 2>&5
20906 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20907 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
20908 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20909 (eval $ac_try) 2>&5
20911 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20912 test $ac_status = 0; }; }; then :
20914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20915 $as_echo "yes" >&6; }
20917 $as_echo "#define HAVE_GET_LINK_COOKIE 1" >>confdefs.h
20921 $as_echo "$as_me: failed program was:" >&5
20922 sed 's/^/| /' conftest.
$ac_ext >&5
20924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20925 $as_echo "no" >&6; }
20927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->follow_link() passes cookie" >&5
20928 $as_echo_n "checking whether iops->follow_link() passes cookie... " >&6; }
20931 cat confdefs.h
- <<_ACEOF >conftest.c
20934 #include <linux/fs.h>
20935 const char *follow_link(struct dentry *de,
20936 void **cookie) { return "symlink"; }
20937 static struct inode_operations
20938 iops __attribute__ ((unused)) = {
20939 .follow_link = follow_link,
20955 cat - <<_ACEOF >conftest.h
20960 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
20961 echo "obj-m := conftest.o" >build
/Makefile
20963 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
20964 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
20965 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20966 (eval $ac_try) 2>&5
20968 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20969 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
20970 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20971 (eval $ac_try) 2>&5
20973 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20974 test $ac_status = 0; }; }; then :
20976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20977 $as_echo "yes" >&6; }
20979 $as_echo "#define HAVE_FOLLOW_LINK_COOKIE 1" >>confdefs.h
20983 $as_echo "$as_me: failed program was:" >&5
20984 sed 's/^/| /' conftest.
$ac_ext >&5
20986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20987 $as_echo "no" >&6; }
20988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->follow_link() passes nameidata" >&5
20989 $as_echo_n "checking whether iops->follow_link() passes nameidata... " >&6; }
20992 cat confdefs.h
- <<_ACEOF >conftest.c
20995 #include <linux/fs.h>
20996 void *follow_link(struct dentry *de, struct
20997 nameidata *nd) { return (void *)NULL; }
20998 static struct inode_operations
20999 iops __attribute__ ((unused)) = {
21000 .follow_link = follow_link,
21016 cat - <<_ACEOF >conftest.h
21021 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
21022 echo "obj-m := conftest.o" >build
/Makefile
21024 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
21025 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
21026 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21027 (eval $ac_try) 2>&5
21029 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21030 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
21031 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21032 (eval $ac_try) 2>&5
21034 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21035 test $ac_status = 0; }; }; then :
21037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21038 $as_echo "yes" >&6; }
21040 $as_echo "#define HAVE_FOLLOW_LINK_NAMEIDATA 1" >>confdefs.h
21044 $as_echo "$as_me: failed program was:" >&5
21045 sed 's/^/| /' conftest.
$ac_ext >&5
21047 as_fn_error $?
"no; please file a bug report" "$LINENO" 5
21081 cat confdefs.h
- <<_ACEOF >conftest.c
21084 #if !defined(HAVE_GET_LINK_DELAYED)
21085 #error "Expecting get_link() delayed done"
21101 cat - <<_ACEOF >conftest.h
21106 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
21107 echo "obj-m := conftest.o" >build
/Makefile
21109 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
21110 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
21111 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21112 (eval $ac_try) 2>&5
21114 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21115 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
21116 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21117 (eval $ac_try) 2>&5
21119 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21120 test $ac_status = 0; }; }; then :
21123 $as_echo "#define HAVE_PUT_LINK_DELAYED 1" >>confdefs.h
21127 $as_echo "$as_me: failed program was:" >&5
21128 sed 's/^/| /' conftest.
$ac_ext >&5
21130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->put_link() passes cookie" >&5
21131 $as_echo_n "checking whether iops->put_link() passes cookie... " >&6; }
21134 cat confdefs.h
- <<_ACEOF >conftest.c
21137 #include <linux/fs.h>
21138 void put_link(struct inode *ip, void *cookie)
21140 static struct inode_operations
21141 iops __attribute__ ((unused)) = {
21142 .put_link = put_link,
21158 cat - <<_ACEOF >conftest.h
21163 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
21164 echo "obj-m := conftest.o" >build
/Makefile
21166 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
21167 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
21168 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21169 (eval $ac_try) 2>&5
21171 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21172 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
21173 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21174 (eval $ac_try) 2>&5
21176 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21177 test $ac_status = 0; }; }; then :
21179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21180 $as_echo "yes" >&6; }
21182 $as_echo "#define HAVE_PUT_LINK_COOKIE 1" >>confdefs.h
21186 $as_echo "$as_me: failed program was:" >&5
21187 sed 's/^/| /' conftest.
$ac_ext >&5
21189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21190 $as_echo "no" >&6; }
21191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->put_link() passes nameidata" >&5
21192 $as_echo_n "checking whether iops->put_link() passes nameidata... " >&6; }
21195 cat confdefs.h
- <<_ACEOF >conftest.c
21198 #include <linux/fs.h>
21199 void put_link(struct dentry *de, struct
21200 nameidata *nd, void *ptr) { return; }
21201 static struct inode_operations
21202 iops __attribute__ ((unused)) = {
21203 .put_link = put_link,
21219 cat - <<_ACEOF >conftest.h
21224 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
21225 echo "obj-m := conftest.o" >build
/Makefile
21227 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
21228 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
21229 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21230 (eval $ac_try) 2>&5
21232 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21233 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
21234 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21235 (eval $ac_try) 2>&5
21237 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21238 test $ac_status = 0; }; }; then :
21240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21241 $as_echo "yes" >&6; }
21243 $as_echo "#define HAVE_PUT_LINK_NAMEIDATA 1" >>confdefs.h
21247 $as_echo "$as_me: failed program was:" >&5
21248 sed 's/^/| /' conftest.
$ac_ext >&5
21250 as_fn_error $?
"no; please file a bug report" "$LINENO" 5
21274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->truncate_range() exists" >&5
21275 $as_echo_n "checking whether iops->truncate_range() exists... " >&6; }
21278 cat confdefs.h
- <<_ACEOF >conftest.c
21281 #include <linux/fs.h>
21282 void truncate_range(struct inode *inode, loff_t start,
21283 loff_t end) { return; }
21284 static struct inode_operations iops __attribute__ ((unused)) = {
21285 .truncate_range = truncate_range,
21301 cat - <<_ACEOF >conftest.h
21306 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
21307 echo "obj-m := conftest.o" >build
/Makefile
21309 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
21310 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
21311 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21312 (eval $ac_try) 2>&5
21314 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21315 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
21316 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21317 (eval $ac_try) 2>&5
21319 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21320 test $ac_status = 0; }; }; then :
21322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21323 $as_echo "yes" >&6; }
21325 $as_echo "#define HAVE_INODE_TRUNCATE_RANGE 1" >>confdefs.h
21329 $as_echo "$as_me: failed program was:" >&5
21330 sed 's/^/| /' conftest.
$ac_ext >&5
21332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21333 $as_echo "no" >&6; }
21343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether dops->d_automount() exists" >&5
21344 $as_echo_n "checking whether dops->d_automount() exists... " >&6; }
21347 cat confdefs.h
- <<_ACEOF >conftest.c
21350 #include <linux/dcache.h>
21351 struct vfsmount *d_automount(struct path *p) { return NULL; }
21352 struct dentry_operations dops __attribute__ ((unused)) = {
21353 .d_automount = d_automount,
21369 cat - <<_ACEOF >conftest.h
21374 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
21375 echo "obj-m := conftest.o" >build
/Makefile
21377 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
21378 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
21379 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21380 (eval $ac_try) 2>&5
21382 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21383 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
21384 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21385 (eval $ac_try) 2>&5
21387 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21388 test $ac_status = 0; }; }; then :
21390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21391 $as_echo "yes" >&6; }
21393 $as_echo "#define HAVE_AUTOMOUNT 1" >>confdefs.h
21397 $as_echo "$as_me: failed program was:" >&5
21398 sed 's/^/| /' conftest.
$ac_ext >&5
21400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21401 $as_echo "no" >&6; }
21411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether eops->encode_fh() wants inode" >&5
21412 $as_echo_n "checking whether eops->encode_fh() wants inode... " >&6; }
21415 cat confdefs.h
- <<_ACEOF >conftest.c
21418 #include <linux/exportfs.h>
21419 int encode_fh(struct inode *inode, __u32 *fh, int *max_len,
21420 struct inode *parent) { return 0; }
21421 static struct export_operations eops __attribute__ ((unused))={
21422 .encode_fh = encode_fh,
21438 cat - <<_ACEOF >conftest.h
21443 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
21444 echo "obj-m := conftest.o" >build
/Makefile
21446 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
21447 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
21448 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21449 (eval $ac_try) 2>&5
21451 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21452 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
21453 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21454 (eval $ac_try) 2>&5
21456 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21457 test $ac_status = 0; }; }; then :
21459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21460 $as_echo "yes" >&6; }
21462 $as_echo "#define HAVE_ENCODE_FH_WITH_INODE 1" >>confdefs.h
21466 $as_echo "$as_me: failed program was:" >&5
21467 sed 's/^/| /' conftest.
$ac_ext >&5
21469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21470 $as_echo "no" >&6; }
21480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether eops->commit_metadata() exists" >&5
21481 $as_echo_n "checking whether eops->commit_metadata() exists... " >&6; }
21484 cat confdefs.h
- <<_ACEOF >conftest.c
21487 #include <linux/exportfs.h>
21488 int commit_metadata(struct inode *inode) { return 0; }
21489 static struct export_operations eops __attribute__ ((unused))={
21490 .commit_metadata = commit_metadata,
21506 cat - <<_ACEOF >conftest.h
21511 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
21512 echo "obj-m := conftest.o" >build
/Makefile
21514 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
21515 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
21516 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21517 (eval $ac_try) 2>&5
21519 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21520 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
21521 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21522 (eval $ac_try) 2>&5
21524 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21525 test $ac_status = 0; }; }; then :
21527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21528 $as_echo "yes" >&6; }
21530 $as_echo "#define HAVE_COMMIT_METADATA 1" >>confdefs.h
21534 $as_echo "$as_me: failed program was:" >&5
21535 sed 's/^/| /' conftest.
$ac_ext >&5
21537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21538 $as_echo "no" >&6; }
21547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether clear_inode() is available" >&5
21548 $as_echo_n "checking whether clear_inode() is available... " >&6; }
21552 cat confdefs.h
- <<_ACEOF >conftest.c
21555 #include <linux/fs.h>
21571 cat - <<_ACEOF >conftest.h
21576 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
21577 echo "obj-m := conftest.o" >build
/Makefile
21579 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
21580 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
21581 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21582 (eval $ac_try) 2>&5
21584 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21585 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
21586 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21587 (eval $ac_try) 2>&5
21589 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21590 test $ac_status = 0; }; }; then :
21593 $as_echo "$as_me: failed program was:" >&5
21594 sed 's/^/| /' conftest.
$ac_ext >&5
21602 if test $rc -ne 0; then :
21604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21605 $as_echo "no" >&6; }
21608 if test "x$enable_linux_builtin" != xyes
; then
21610 grep -q -E '[[:space:]]clear_inode[[:space:]]' \
21611 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
21613 if test $rc -ne 0; then
21615 for file in fs
/inode.c
; do
21616 grep -q -E "EXPORT_SYMBOL.*(clear_inode)" \
21617 "$LINUX/$file" 2>/dev
/null
21619 if test $rc -eq 0; then
21624 if test $export -eq 0; then :
21634 if test $rc -ne 0; then :
21636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21637 $as_echo "no" >&6; }
21641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21642 $as_echo "yes" >&6; }
21644 $as_echo "#define HAVE_CLEAR_INODE 1" >>confdefs.h
21651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setattr_prepare() is available" >&5
21652 $as_echo_n "checking whether setattr_prepare() is available... " >&6; }
21656 cat confdefs.h
- <<_ACEOF >conftest.c
21659 #include <linux/fs.h>
21665 struct dentry *dentry = NULL;
21666 struct iattr *attr = NULL;
21669 error = setattr_prepare(dentry, attr);
21679 cat - <<_ACEOF >conftest.h
21684 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
21685 echo "obj-m := conftest.o" >build
/Makefile
21687 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
21688 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
21689 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21690 (eval $ac_try) 2>&5
21692 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21693 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
21694 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21695 (eval $ac_try) 2>&5
21697 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21698 test $ac_status = 0; }; }; then :
21701 $as_echo "$as_me: failed program was:" >&5
21702 sed 's/^/| /' conftest.
$ac_ext >&5
21710 if test $rc -ne 0; then :
21712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21713 $as_echo "no" >&6; }
21716 if test "x$enable_linux_builtin" != xyes
; then
21718 grep -q -E '[[:space:]]setattr_prepare[[:space:]]' \
21719 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
21721 if test $rc -ne 0; then
21723 for file in fs
/attr.c
; do
21724 grep -q -E "EXPORT_SYMBOL.*(setattr_prepare)" \
21725 "$LINUX/$file" 2>/dev
/null
21727 if test $rc -eq 0; then
21732 if test $export -eq 0; then :
21742 if test $rc -ne 0; then :
21744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21745 $as_echo "no" >&6; }
21749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21750 $as_echo "yes" >&6; }
21752 $as_echo "#define HAVE_SETATTR_PREPARE 1" >>confdefs.h
21759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether insert_inode_locked() is available" >&5
21760 $as_echo_n "checking whether insert_inode_locked() is available... " >&6; }
21764 cat confdefs.h
- <<_ACEOF >conftest.c
21767 #include <linux/fs.h>
21773 insert_inode_locked(NULL);
21783 cat - <<_ACEOF >conftest.h
21788 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
21789 echo "obj-m := conftest.o" >build
/Makefile
21791 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
21792 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
21793 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21794 (eval $ac_try) 2>&5
21796 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21797 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
21798 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21799 (eval $ac_try) 2>&5
21801 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21802 test $ac_status = 0; }; }; then :
21805 $as_echo "$as_me: failed program was:" >&5
21806 sed 's/^/| /' conftest.
$ac_ext >&5
21814 if test $rc -ne 0; then :
21816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21817 $as_echo "no" >&6; }
21820 if test "x$enable_linux_builtin" != xyes
; then
21822 grep -q -E '[[:space:]]insert_inode_locked[[:space:]]' \
21823 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
21825 if test $rc -ne 0; then
21827 for file in fs
/inode.c
; do
21828 grep -q -E "EXPORT_SYMBOL.*(insert_inode_locked)" \
21829 "$LINUX/$file" 2>/dev
/null
21831 if test $rc -eq 0; then
21836 if test $export -eq 0; then :
21846 if test $rc -ne 0; then :
21848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21849 $as_echo "no" >&6; }
21853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21854 $as_echo "yes" >&6; }
21856 $as_echo "#define HAVE_INSERT_INODE_LOCKED 1" >>confdefs.h
21863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether d_make_root() is available" >&5
21864 $as_echo_n "checking whether d_make_root() is available... " >&6; }
21868 cat confdefs.h
- <<_ACEOF >conftest.c
21871 #include <linux/dcache.h>
21887 cat - <<_ACEOF >conftest.h
21892 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
21893 echo "obj-m := conftest.o" >build
/Makefile
21895 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
21896 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
21897 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21898 (eval $ac_try) 2>&5
21900 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21901 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
21902 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21903 (eval $ac_try) 2>&5
21905 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21906 test $ac_status = 0; }; }; then :
21909 $as_echo "$as_me: failed program was:" >&5
21910 sed 's/^/| /' conftest.
$ac_ext >&5
21918 if test $rc -ne 0; then :
21920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21921 $as_echo "no" >&6; }
21924 if test "x$enable_linux_builtin" != xyes
; then
21926 grep -q -E '[[:space:]]d_make_root[[:space:]]' \
21927 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
21929 if test $rc -ne 0; then
21931 for file in fs
/dcache.c
; do
21932 grep -q -E "EXPORT_SYMBOL.*(d_make_root)" \
21933 "$LINUX/$file" 2>/dev
/null
21935 if test $rc -eq 0; then
21940 if test $export -eq 0; then :
21950 if test $rc -ne 0; then :
21952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21953 $as_echo "no" >&6; }
21957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21958 $as_echo "yes" >&6; }
21960 $as_echo "#define HAVE_D_MAKE_ROOT 1" >>confdefs.h
21967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether d_obtain_alias() is available" >&5
21968 $as_echo_n "checking whether d_obtain_alias() is available... " >&6; }
21972 cat confdefs.h
- <<_ACEOF >conftest.c
21975 #include <linux/dcache.h>
21981 d_obtain_alias(NULL);
21991 cat - <<_ACEOF >conftest.h
21996 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
21997 echo "obj-m := conftest.o" >build
/Makefile
21999 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
22000 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
22001 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22002 (eval $ac_try) 2>&5
22004 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22005 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
22006 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22007 (eval $ac_try) 2>&5
22009 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22010 test $ac_status = 0; }; }; then :
22013 $as_echo "$as_me: failed program was:" >&5
22014 sed 's/^/| /' conftest.
$ac_ext >&5
22022 if test $rc -ne 0; then :
22024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22025 $as_echo "no" >&6; }
22028 if test "x$enable_linux_builtin" != xyes
; then
22030 grep -q -E '[[:space:]]d_obtain_alias[[:space:]]' \
22031 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
22033 if test $rc -ne 0; then
22035 for file in fs
/dcache.c
; do
22036 grep -q -E "EXPORT_SYMBOL.*(d_obtain_alias)" \
22037 "$LINUX/$file" 2>/dev
/null
22039 if test $rc -eq 0; then
22044 if test $export -eq 0; then :
22054 if test $rc -ne 0; then :
22056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22057 $as_echo "no" >&6; }
22061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22062 $as_echo "yes" >&6; }
22064 $as_echo "#define HAVE_D_OBTAIN_ALIAS 1" >>confdefs.h
22071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether d_prune_aliases() is available" >&5
22072 $as_echo_n "checking whether d_prune_aliases() is available... " >&6; }
22076 cat confdefs.h
- <<_ACEOF >conftest.c
22079 #include <linux/dcache.h>
22085 struct inode *ip = NULL;
22086 d_prune_aliases(ip);
22096 cat - <<_ACEOF >conftest.h
22101 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
22102 echo "obj-m := conftest.o" >build
/Makefile
22104 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
22105 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
22106 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22107 (eval $ac_try) 2>&5
22109 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22110 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
22111 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22112 (eval $ac_try) 2>&5
22114 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22115 test $ac_status = 0; }; }; then :
22118 $as_echo "$as_me: failed program was:" >&5
22119 sed 's/^/| /' conftest.
$ac_ext >&5
22127 if test $rc -ne 0; then :
22129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22130 $as_echo "no" >&6; }
22133 if test "x$enable_linux_builtin" != xyes
; then
22135 grep -q -E '[[:space:]]d_prune_aliases[[:space:]]' \
22136 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
22138 if test $rc -ne 0; then
22140 for file in fs
/dcache.c
; do
22141 grep -q -E "EXPORT_SYMBOL.*(d_prune_aliases)" \
22142 "$LINUX/$file" 2>/dev
/null
22144 if test $rc -eq 0; then
22149 if test $export -eq 0; then :
22159 if test $rc -ne 0; then :
22161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22162 $as_echo "no" >&6; }
22166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22167 $as_echo "yes" >&6; }
22169 $as_echo "#define HAVE_D_PRUNE_ALIASES 1" >>confdefs.h
22176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether d_set_d_op() is available" >&5
22177 $as_echo_n "checking whether d_set_d_op() is available... " >&6; }
22181 cat confdefs.h
- <<_ACEOF >conftest.c
22184 #include <linux/dcache.h>
22190 d_set_d_op(NULL, NULL);
22200 cat - <<_ACEOF >conftest.h
22205 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
22206 echo "obj-m := conftest.o" >build
/Makefile
22208 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
22209 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
22210 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22211 (eval $ac_try) 2>&5
22213 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22214 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
22215 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22216 (eval $ac_try) 2>&5
22218 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22219 test $ac_status = 0; }; }; then :
22222 $as_echo "$as_me: failed program was:" >&5
22223 sed 's/^/| /' conftest.
$ac_ext >&5
22231 if test $rc -ne 0; then :
22233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22234 $as_echo "no" >&6; }
22237 if test "x$enable_linux_builtin" != xyes
; then
22239 grep -q -E '[[:space:]]d_set_d_op[[:space:]]' \
22240 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
22242 if test $rc -ne 0; then
22244 for file in fs
/dcache.c
; do
22245 grep -q -E "EXPORT_SYMBOL.*(d_set_d_op)" \
22246 "$LINUX/$file" 2>/dev
/null
22248 if test $rc -eq 0; then
22253 if test $export -eq 0; then :
22263 if test $rc -ne 0; then :
22265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22266 $as_echo "no" >&6; }
22270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22271 $as_echo "yes" >&6; }
22273 $as_echo "#define HAVE_D_SET_D_OP 1" >>confdefs.h
22281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether dops->d_revalidate() takes struct nameidata" >&5
22282 $as_echo_n "checking whether dops->d_revalidate() takes struct nameidata... " >&6; }
22285 cat confdefs.h
- <<_ACEOF >conftest.c
22288 #include <linux/dcache.h>
22290 int revalidate (struct dentry *dentry,
22291 struct nameidata *nidata) { return 0; }
22293 static const struct dentry_operations
22294 dops __attribute__ ((unused)) = {
22295 .d_revalidate = revalidate,
22311 cat - <<_ACEOF >conftest.h
22316 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
22317 echo "obj-m := conftest.o" >build
/Makefile
22319 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
22320 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
22321 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22322 (eval $ac_try) 2>&5
22324 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22325 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
22326 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22327 (eval $ac_try) 2>&5
22329 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22330 test $ac_status = 0; }; }; then :
22332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22333 $as_echo "yes" >&6; }
22335 $as_echo "#define HAVE_D_REVALIDATE_NAMEIDATA 1" >>confdefs.h
22339 $as_echo "$as_me: failed program was:" >&5
22340 sed 's/^/| /' conftest.
$ac_ext >&5
22342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22343 $as_echo "no" >&6; }
22353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether dentry uses const struct dentry_operations" >&5
22354 $as_echo_n "checking whether dentry uses const struct dentry_operations... " >&6; }
22357 cat confdefs.h
- <<_ACEOF >conftest.c
22360 #include <linux/dcache.h>
22362 const struct dentry_operations test_d_op = {
22363 .d_revalidate = NULL,
22370 struct dentry d __attribute__ ((unused));
22372 d.d_op = &test_d_op;
22382 cat - <<_ACEOF >conftest.h
22387 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
22388 echo "obj-m := conftest.o" >build
/Makefile
22390 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
22391 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
22392 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22393 (eval $ac_try) 2>&5
22395 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22396 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
22397 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22398 (eval $ac_try) 2>&5
22400 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22401 test $ac_status = 0; }; }; then :
22403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22404 $as_echo "yes" >&6; }
22406 $as_echo "#define HAVE_CONST_DENTRY_OPERATIONS 1" >>confdefs.h
22410 $as_echo "$as_me: failed program was:" >&5
22411 sed 's/^/| /' conftest.
$ac_ext >&5
22413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22414 $as_echo "no" >&6; }
22423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether check_disk_size_change() is available" >&5
22424 $as_echo_n "checking whether check_disk_size_change() is available... " >&6; }
22428 cat confdefs.h
- <<_ACEOF >conftest.c
22431 #include <linux/fs.h>
22437 check_disk_size_change(NULL, NULL);
22447 cat - <<_ACEOF >conftest.h
22452 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
22453 echo "obj-m := conftest.o" >build
/Makefile
22455 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
22456 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
22457 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22458 (eval $ac_try) 2>&5
22460 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22461 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
22462 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22463 (eval $ac_try) 2>&5
22465 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22466 test $ac_status = 0; }; }; then :
22469 $as_echo "$as_me: failed program was:" >&5
22470 sed 's/^/| /' conftest.
$ac_ext >&5
22478 if test $rc -ne 0; then :
22480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22481 $as_echo "no" >&6; }
22484 if test "x$enable_linux_builtin" != xyes
; then
22486 grep -q -E '[[:space:]]check_disk_size_change[[:space:]]' \
22487 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
22489 if test $rc -ne 0; then
22491 for file in fs
/block_dev.c
; do
22492 grep -q -E "EXPORT_SYMBOL.*(check_disk_size_change)" \
22493 "$LINUX/$file" 2>/dev
/null
22495 if test $rc -eq 0; then
22500 if test $export -eq 0; then :
22510 if test $rc -ne 0; then :
22512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22513 $as_echo "no" >&6; }
22517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22518 $as_echo "yes" >&6; }
22520 $as_echo "#define HAVE_CHECK_DISK_SIZE_CHANGE 1" >>confdefs.h
22527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether truncate_setsize() is available" >&5
22528 $as_echo_n "checking whether truncate_setsize() is available... " >&6; }
22532 cat confdefs.h
- <<_ACEOF >conftest.c
22535 #include <linux/mm.h>
22541 truncate_setsize(NULL, 0);
22551 cat - <<_ACEOF >conftest.h
22556 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
22557 echo "obj-m := conftest.o" >build
/Makefile
22559 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
22560 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
22561 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22562 (eval $ac_try) 2>&5
22564 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22565 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
22566 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22567 (eval $ac_try) 2>&5
22569 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22570 test $ac_status = 0; }; }; then :
22573 $as_echo "$as_me: failed program was:" >&5
22574 sed 's/^/| /' conftest.
$ac_ext >&5
22582 if test $rc -ne 0; then :
22584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22585 $as_echo "no" >&6; }
22588 if test "x$enable_linux_builtin" != xyes
; then
22590 grep -q -E '[[:space:]]truncate_setsize[[:space:]]' \
22591 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
22593 if test $rc -ne 0; then
22595 for file in mm
/truncate.c
; do
22596 grep -q -E "EXPORT_SYMBOL.*(truncate_setsize)" \
22597 "$LINUX/$file" 2>/dev
/null
22599 if test $rc -eq 0; then
22604 if test $export -eq 0; then :
22614 if test $rc -ne 0; then :
22616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22617 $as_echo "no" >&6; }
22621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22622 $as_echo "yes" >&6; }
22624 $as_echo "#define HAVE_TRUNCATE_SETSIZE 1" >>confdefs.h
22632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether security_inode_init_security wants 6 args" >&5
22633 $as_echo_n "checking whether security_inode_init_security wants 6 args... " >&6; }
22636 cat confdefs.h
- <<_ACEOF >conftest.c
22639 #include <linux/security.h>
22645 struct inode *ip __attribute__ ((unused)) = NULL;
22646 struct inode *dip __attribute__ ((unused)) = NULL;
22647 const struct qstr *str __attribute__ ((unused)) = NULL;
22648 char *name __attribute__ ((unused)) = NULL;
22649 void *value __attribute__ ((unused)) = NULL;
22650 size_t len __attribute__ ((unused)) = 0;
22652 security_inode_init_security(ip, dip, str, &name, &value, &len);
22662 cat - <<_ACEOF >conftest.h
22667 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
22668 echo "obj-m := conftest.o" >build
/Makefile
22670 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
22671 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
22672 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22673 (eval $ac_try) 2>&5
22675 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22676 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
22677 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22678 (eval $ac_try) 2>&5
22680 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22681 test $ac_status = 0; }; }; then :
22683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22684 $as_echo "yes" >&6; }
22686 $as_echo "#define HAVE_6ARGS_SECURITY_INODE_INIT_SECURITY 1" >>confdefs.h
22690 $as_echo "$as_me: failed program was:" >&5
22691 sed 's/^/| /' conftest.
$ac_ext >&5
22693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22694 $as_echo "no" >&6; }
22704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether security_inode_init_security wants callback" >&5
22705 $as_echo_n "checking whether security_inode_init_security wants callback... " >&6; }
22708 cat confdefs.h
- <<_ACEOF >conftest.c
22711 #include <linux/security.h>
22717 struct inode *ip __attribute__ ((unused)) = NULL;
22718 struct inode *dip __attribute__ ((unused)) = NULL;
22719 const struct qstr *str __attribute__ ((unused)) = NULL;
22720 initxattrs func __attribute__ ((unused)) = NULL;
22722 security_inode_init_security(ip, dip, str, func, NULL);
22732 cat - <<_ACEOF >conftest.h
22737 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
22738 echo "obj-m := conftest.o" >build
/Makefile
22740 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
22741 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
22742 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22743 (eval $ac_try) 2>&5
22745 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22746 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
22747 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22748 (eval $ac_try) 2>&5
22750 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22751 test $ac_status = 0; }; }; then :
22753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22754 $as_echo "yes" >&6; }
22756 $as_echo "#define HAVE_CALLBACK_SECURITY_INODE_INIT_SECURITY 1" >>confdefs.h
22760 $as_echo "$as_me: failed program was:" >&5
22761 sed 's/^/| /' conftest.
$ac_ext >&5
22763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22764 $as_echo "no" >&6; }
22773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mount_nodev() is available" >&5
22774 $as_echo_n "checking whether mount_nodev() is available... " >&6; }
22778 cat confdefs.h
- <<_ACEOF >conftest.c
22781 #include <linux/fs.h>
22787 mount_nodev(NULL, 0, NULL, NULL);
22797 cat - <<_ACEOF >conftest.h
22802 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
22803 echo "obj-m := conftest.o" >build
/Makefile
22805 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
22806 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
22807 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22808 (eval $ac_try) 2>&5
22810 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22811 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
22812 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22813 (eval $ac_try) 2>&5
22815 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22816 test $ac_status = 0; }; }; then :
22819 $as_echo "$as_me: failed program was:" >&5
22820 sed 's/^/| /' conftest.
$ac_ext >&5
22828 if test $rc -ne 0; then :
22830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22831 $as_echo "no" >&6; }
22834 if test "x$enable_linux_builtin" != xyes
; then
22836 grep -q -E '[[:space:]]mount_nodev[[:space:]]' \
22837 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
22839 if test $rc -ne 0; then
22841 for file in fs
/super.c
; do
22842 grep -q -E "EXPORT_SYMBOL.*(mount_nodev)" \
22843 "$LINUX/$file" 2>/dev
/null
22845 if test $rc -eq 0; then
22850 if test $export -eq 0; then :
22860 if test $rc -ne 0; then :
22862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22863 $as_echo "no" >&6; }
22867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22868 $as_echo "yes" >&6; }
22870 $as_echo "#define HAVE_MOUNT_NODEV 1" >>confdefs.h
22878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether super_block has s_shrink" >&5
22879 $as_echo_n "checking whether super_block has s_shrink... " >&6; }
22882 cat confdefs.h
- <<_ACEOF >conftest.c
22885 #include <linux/fs.h>
22887 int shrink(struct shrinker *s, struct shrink_control *sc)
22890 static const struct super_block
22891 sb __attribute__ ((unused)) = {
22892 .s_shrink.shrink = shrink,
22893 .s_shrink.seeks = DEFAULT_SEEKS,
22894 .s_shrink.batch = 0,
22910 cat - <<_ACEOF >conftest.h
22915 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
22916 echo "obj-m := conftest.o" >build
/Makefile
22918 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
22919 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
22920 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22921 (eval $ac_try) 2>&5
22923 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22924 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
22925 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22926 (eval $ac_try) 2>&5
22928 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22929 test $ac_status = 0; }; }; then :
22931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22932 $as_echo "yes" >&6; }
22934 $as_echo "#define HAVE_SHRINK 1" >>confdefs.h
22939 $as_echo "$as_me: failed program was:" >&5
22940 sed 's/^/| /' conftest.
$ac_ext >&5
22942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22943 $as_echo "no" >&6; }
22953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether shrink_control has nid" >&5
22954 $as_echo_n "checking whether shrink_control has nid... " >&6; }
22957 cat confdefs.h
- <<_ACEOF >conftest.c
22960 #include <linux/fs.h>
22966 struct shrink_control sc __attribute__ ((unused));
22967 unsigned long scnidsize __attribute__ ((unused)) =
22978 cat - <<_ACEOF >conftest.h
22983 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
22984 echo "obj-m := conftest.o" >build
/Makefile
22986 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
22987 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
22988 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22989 (eval $ac_try) 2>&5
22991 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22992 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
22993 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22994 (eval $ac_try) 2>&5
22996 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22997 test $ac_status = 0; }; }; then :
22999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23000 $as_echo "yes" >&6; }
23002 $as_echo "#define SHRINK_CONTROL_HAS_NID 1" >>confdefs.h
23006 $as_echo "$as_me: failed program was:" >&5
23007 sed 's/^/| /' conftest.
$ac_ext >&5
23009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23010 $as_echo "no" >&6; }
23020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether super_block has s_instances list_head" >&5
23021 $as_echo_n "checking whether super_block has s_instances list_head... " >&6; }
23024 cat confdefs.h
- <<_ACEOF >conftest.c
23027 #include <linux/fs.h>
23033 struct super_block sb __attribute__ ((unused));
23035 INIT_LIST_HEAD(&sb.s_instances);
23045 cat - <<_ACEOF >conftest.h
23050 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
23051 echo "obj-m := conftest.o" >build
/Makefile
23053 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
23054 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
23055 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23056 (eval $ac_try) 2>&5
23058 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23059 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
23060 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23061 (eval $ac_try) 2>&5
23063 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23064 test $ac_status = 0; }; }; then :
23066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23067 $as_echo "yes" >&6; }
23069 $as_echo "#define HAVE_S_INSTANCES_LIST_HEAD 1" >>confdefs.h
23073 $as_echo "$as_me: failed program was:" >&5
23074 sed 's/^/| /' conftest.
$ac_ext >&5
23076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23077 $as_echo "no" >&6; }
23086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether super_block has s_d_op" >&5
23087 $as_echo_n "checking whether super_block has s_d_op... " >&6; }
23090 cat confdefs.h
- <<_ACEOF >conftest.c
23093 #include <linux/fs.h>
23099 struct super_block sb __attribute__ ((unused));
23110 cat - <<_ACEOF >conftest.h
23115 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
23116 echo "obj-m := conftest.o" >build
/Makefile
23118 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
23119 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
23120 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23121 (eval $ac_try) 2>&5
23123 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23124 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
23125 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23126 (eval $ac_try) 2>&5
23128 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23129 test $ac_status = 0; }; }; then :
23131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23132 $as_echo "yes" >&6; }
23134 $as_echo "#define HAVE_S_D_OP 1" >>confdefs.h
23138 $as_echo "$as_me: failed program was:" >&5
23139 sed 's/^/| /' conftest.
$ac_ext >&5
23141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23142 $as_echo "no" >&6; }
23152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether super_setup_bdi_name() exists" >&5
23153 $as_echo_n "checking whether super_setup_bdi_name() exists... " >&6; }
23157 cat confdefs.h
- <<_ACEOF >conftest.c
23160 #include <linux/fs.h>
23161 struct super_block sb;
23167 char *name = "bdi";
23168 int error __attribute__((unused)) =
23169 super_setup_bdi_name(&sb, name);
23179 cat - <<_ACEOF >conftest.h
23184 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
23185 echo "obj-m := conftest.o" >build
/Makefile
23187 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
23188 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
23189 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23190 (eval $ac_try) 2>&5
23192 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23193 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
23194 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23195 (eval $ac_try) 2>&5
23197 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23198 test $ac_status = 0; }; }; then :
23201 $as_echo "$as_me: failed program was:" >&5
23202 sed 's/^/| /' conftest.
$ac_ext >&5
23210 if test $rc -ne 0; then :
23212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23213 $as_echo "no" >&6; }
23214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether bdi_setup_and_register() wants 2 args" >&5
23215 $as_echo_n "checking whether bdi_setup_and_register() wants 2 args... " >&6; }
23219 cat confdefs.h
- <<_ACEOF >conftest.c
23222 #include <linux/backing-dev.h>
23223 struct backing_dev_info bdi;
23229 char *name = "bdi";
23230 int error __attribute__((unused)) =
23231 bdi_setup_and_register(&bdi, name);
23241 cat - <<_ACEOF >conftest.h
23246 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
23247 echo "obj-m := conftest.o" >build
/Makefile
23249 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
23250 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
23251 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23252 (eval $ac_try) 2>&5
23254 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23255 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
23256 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23257 (eval $ac_try) 2>&5
23259 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23260 test $ac_status = 0; }; }; then :
23263 $as_echo "$as_me: failed program was:" >&5
23264 sed 's/^/| /' conftest.
$ac_ext >&5
23272 if test $rc -ne 0; then :
23274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23275 $as_echo "no" >&6; }
23276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether bdi_setup_and_register() wants 3 args" >&5
23277 $as_echo_n "checking whether bdi_setup_and_register() wants 3 args... " >&6; }
23281 cat confdefs.h
- <<_ACEOF >conftest.c
23284 #include <linux/backing-dev.h>
23285 struct backing_dev_info bdi;
23291 char *name = "bdi";
23292 unsigned int cap = BDI_CAP_MAP_COPY;
23293 int error __attribute__((unused)) =
23294 bdi_setup_and_register(&bdi, name, cap);
23304 cat - <<_ACEOF >conftest.h
23309 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
23310 echo "obj-m := conftest.o" >build
/Makefile
23312 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
23313 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
23314 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23315 (eval $ac_try) 2>&5
23317 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23318 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
23319 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23320 (eval $ac_try) 2>&5
23322 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23323 test $ac_status = 0; }; }; then :
23326 $as_echo "$as_me: failed program was:" >&5
23327 sed 's/^/| /' conftest.
$ac_ext >&5
23335 if test $rc -ne 0; then :
23337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23338 $as_echo "no" >&6; }
23341 if test "x$enable_linux_builtin" != xyes
; then
23343 grep -q -E '[[:space:]]bdi_setup_and_register[[:space:]]' \
23344 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
23346 if test $rc -ne 0; then
23348 for file in mm
/backing-dev.c
; do
23349 grep -q -E "EXPORT_SYMBOL.*(bdi_setup_and_register)" \
23350 "$LINUX/$file" 2>/dev
/null
23352 if test $rc -eq 0; then
23357 if test $export -eq 0; then :
23367 if test $rc -ne 0; then :
23369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23370 $as_echo "no" >&6; }
23374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23375 $as_echo "yes" >&6; }
23377 $as_echo "#define HAVE_3ARGS_BDI_SETUP_AND_REGISTER 1" >>confdefs.h
23385 if test "x$enable_linux_builtin" != xyes
; then
23387 grep -q -E '[[:space:]]bdi_setup_and_register[[:space:]]' \
23388 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
23390 if test $rc -ne 0; then
23392 for file in mm
/backing-dev.c
; do
23393 grep -q -E "EXPORT_SYMBOL.*(bdi_setup_and_register)" \
23394 "$LINUX/$file" 2>/dev
/null
23396 if test $rc -eq 0; then
23401 if test $export -eq 0; then :
23411 if test $rc -ne 0; then :
23413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23414 $as_echo "no" >&6; }
23415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether bdi_setup_and_register() wants 3 args" >&5
23416 $as_echo_n "checking whether bdi_setup_and_register() wants 3 args... " >&6; }
23420 cat confdefs.h
- <<_ACEOF >conftest.c
23423 #include <linux/backing-dev.h>
23424 struct backing_dev_info bdi;
23430 char *name = "bdi";
23431 unsigned int cap = BDI_CAP_MAP_COPY;
23432 int error __attribute__((unused)) =
23433 bdi_setup_and_register(&bdi, name, cap);
23443 cat - <<_ACEOF >conftest.h
23448 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
23449 echo "obj-m := conftest.o" >build
/Makefile
23451 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
23452 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
23453 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23454 (eval $ac_try) 2>&5
23456 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23457 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
23458 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23459 (eval $ac_try) 2>&5
23461 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23462 test $ac_status = 0; }; }; then :
23465 $as_echo "$as_me: failed program was:" >&5
23466 sed 's/^/| /' conftest.
$ac_ext >&5
23474 if test $rc -ne 0; then :
23476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23477 $as_echo "no" >&6; }
23480 if test "x$enable_linux_builtin" != xyes
; then
23482 grep -q -E '[[:space:]]bdi_setup_and_register[[:space:]]' \
23483 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
23485 if test $rc -ne 0; then
23487 for file in mm
/backing-dev.c
; do
23488 grep -q -E "EXPORT_SYMBOL.*(bdi_setup_and_register)" \
23489 "$LINUX/$file" 2>/dev
/null
23491 if test $rc -eq 0; then
23496 if test $export -eq 0; then :
23506 if test $rc -ne 0; then :
23508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23509 $as_echo "no" >&6; }
23513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23514 $as_echo "yes" >&6; }
23516 $as_echo "#define HAVE_3ARGS_BDI_SETUP_AND_REGISTER 1" >>confdefs.h
23525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23526 $as_echo "yes" >&6; }
23528 $as_echo "#define HAVE_2ARGS_BDI_SETUP_AND_REGISTER 1" >>confdefs.h
23536 if test "x$enable_linux_builtin" != xyes
; then
23538 grep -q -E '[[:space:]]super_setup_bdi_name[[:space:]]' \
23539 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
23541 if test $rc -ne 0; then
23543 for file in fs
/super.c
; do
23544 grep -q -E "EXPORT_SYMBOL.*(super_setup_bdi_name)" \
23545 "$LINUX/$file" 2>/dev
/null
23547 if test $rc -eq 0; then
23552 if test $export -eq 0; then :
23562 if test $rc -ne 0; then :
23564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23565 $as_echo "no" >&6; }
23566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether bdi_setup_and_register() wants 2 args" >&5
23567 $as_echo_n "checking whether bdi_setup_and_register() wants 2 args... " >&6; }
23571 cat confdefs.h
- <<_ACEOF >conftest.c
23574 #include <linux/backing-dev.h>
23575 struct backing_dev_info bdi;
23581 char *name = "bdi";
23582 int error __attribute__((unused)) =
23583 bdi_setup_and_register(&bdi, name);
23593 cat - <<_ACEOF >conftest.h
23598 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
23599 echo "obj-m := conftest.o" >build
/Makefile
23601 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
23602 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
23603 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23604 (eval $ac_try) 2>&5
23606 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23607 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
23608 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23609 (eval $ac_try) 2>&5
23611 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23612 test $ac_status = 0; }; }; then :
23615 $as_echo "$as_me: failed program was:" >&5
23616 sed 's/^/| /' conftest.
$ac_ext >&5
23624 if test $rc -ne 0; then :
23626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23627 $as_echo "no" >&6; }
23628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether bdi_setup_and_register() wants 3 args" >&5
23629 $as_echo_n "checking whether bdi_setup_and_register() wants 3 args... " >&6; }
23633 cat confdefs.h
- <<_ACEOF >conftest.c
23636 #include <linux/backing-dev.h>
23637 struct backing_dev_info bdi;
23643 char *name = "bdi";
23644 unsigned int cap = BDI_CAP_MAP_COPY;
23645 int error __attribute__((unused)) =
23646 bdi_setup_and_register(&bdi, name, cap);
23656 cat - <<_ACEOF >conftest.h
23661 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
23662 echo "obj-m := conftest.o" >build
/Makefile
23664 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
23665 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
23666 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23667 (eval $ac_try) 2>&5
23669 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23670 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
23671 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23672 (eval $ac_try) 2>&5
23674 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23675 test $ac_status = 0; }; }; then :
23678 $as_echo "$as_me: failed program was:" >&5
23679 sed 's/^/| /' conftest.
$ac_ext >&5
23687 if test $rc -ne 0; then :
23689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23690 $as_echo "no" >&6; }
23693 if test "x$enable_linux_builtin" != xyes
; then
23695 grep -q -E '[[:space:]]bdi_setup_and_register[[:space:]]' \
23696 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
23698 if test $rc -ne 0; then
23700 for file in mm
/backing-dev.c
; do
23701 grep -q -E "EXPORT_SYMBOL.*(bdi_setup_and_register)" \
23702 "$LINUX/$file" 2>/dev
/null
23704 if test $rc -eq 0; then
23709 if test $export -eq 0; then :
23719 if test $rc -ne 0; then :
23721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23722 $as_echo "no" >&6; }
23726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23727 $as_echo "yes" >&6; }
23729 $as_echo "#define HAVE_3ARGS_BDI_SETUP_AND_REGISTER 1" >>confdefs.h
23737 if test "x$enable_linux_builtin" != xyes
; then
23739 grep -q -E '[[:space:]]bdi_setup_and_register[[:space:]]' \
23740 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
23742 if test $rc -ne 0; then
23744 for file in mm
/backing-dev.c
; do
23745 grep -q -E "EXPORT_SYMBOL.*(bdi_setup_and_register)" \
23746 "$LINUX/$file" 2>/dev
/null
23748 if test $rc -eq 0; then
23753 if test $export -eq 0; then :
23763 if test $rc -ne 0; then :
23765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23766 $as_echo "no" >&6; }
23767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether bdi_setup_and_register() wants 3 args" >&5
23768 $as_echo_n "checking whether bdi_setup_and_register() wants 3 args... " >&6; }
23772 cat confdefs.h
- <<_ACEOF >conftest.c
23775 #include <linux/backing-dev.h>
23776 struct backing_dev_info bdi;
23782 char *name = "bdi";
23783 unsigned int cap = BDI_CAP_MAP_COPY;
23784 int error __attribute__((unused)) =
23785 bdi_setup_and_register(&bdi, name, cap);
23795 cat - <<_ACEOF >conftest.h
23800 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
23801 echo "obj-m := conftest.o" >build
/Makefile
23803 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
23804 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
23805 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23806 (eval $ac_try) 2>&5
23808 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23809 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
23810 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23811 (eval $ac_try) 2>&5
23813 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23814 test $ac_status = 0; }; }; then :
23817 $as_echo "$as_me: failed program was:" >&5
23818 sed 's/^/| /' conftest.
$ac_ext >&5
23826 if test $rc -ne 0; then :
23828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23829 $as_echo "no" >&6; }
23832 if test "x$enable_linux_builtin" != xyes
; then
23834 grep -q -E '[[:space:]]bdi_setup_and_register[[:space:]]' \
23835 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
23837 if test $rc -ne 0; then
23839 for file in mm
/backing-dev.c
; do
23840 grep -q -E "EXPORT_SYMBOL.*(bdi_setup_and_register)" \
23841 "$LINUX/$file" 2>/dev
/null
23843 if test $rc -eq 0; then
23848 if test $export -eq 0; then :
23858 if test $rc -ne 0; then :
23860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23861 $as_echo "no" >&6; }
23865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23866 $as_echo "yes" >&6; }
23868 $as_echo "#define HAVE_3ARGS_BDI_SETUP_AND_REGISTER 1" >>confdefs.h
23877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23878 $as_echo "yes" >&6; }
23880 $as_echo "#define HAVE_2ARGS_BDI_SETUP_AND_REGISTER 1" >>confdefs.h
23889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23890 $as_echo "yes" >&6; }
23892 $as_echo "#define HAVE_SUPER_SETUP_BDI_NAME 1" >>confdefs.h
23900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether set_nlink() is available" >&5
23901 $as_echo_n "checking whether set_nlink() is available... " >&6; }
23904 cat confdefs.h
- <<_ACEOF >conftest.c
23907 #include <linux/fs.h>
23914 unsigned int link = 0;
23915 (void) set_nlink(&node, link);
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_SET_NLINK 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 elevator_change() is available" >&5
23968 $as_echo_n "checking whether elevator_change() is available... " >&6; }
23969 tmp_flags
="$EXTRA_KCFLAGS"
23970 EXTRA_KCFLAGS
="${NO_UNUSED_BUT_SET_VARIABLE}"
23973 cat confdefs.h
- <<_ACEOF >conftest.c
23976 #include <linux/blkdev.h>
23977 #include <linux/elevator.h>
23984 struct request_queue *q = NULL;
23985 char *elevator = NULL;
23986 ret = elevator_change(q, elevator);
23996 cat - <<_ACEOF >conftest.h
24001 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
24002 echo "obj-m := conftest.o" >build
/Makefile
24004 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
24005 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
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; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
24011 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24012 (eval $ac_try) 2>&5
24014 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24015 test $ac_status = 0; }; }; then :
24017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24018 $as_echo "yes" >&6; }
24020 $as_echo "#define HAVE_ELEVATOR_CHANGE 1" >>confdefs.h
24024 $as_echo "$as_me: failed program was:" >&5
24025 sed 's/^/| /' conftest.
$ac_ext >&5
24027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24028 $as_echo "no" >&6; }
24036 EXTRA_KCFLAGS
="$tmp_flags"
24038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sget() wants 5 args" >&5
24039 $as_echo_n "checking whether sget() wants 5 args... " >&6; }
24042 cat confdefs.h
- <<_ACEOF >conftest.c
24045 #include <linux/fs.h>
24051 struct file_system_type *type = NULL;
24052 int (*test)(struct super_block *,void *) = NULL;
24053 int (*set)(struct super_block *,void *) = NULL;
24056 (void) sget(type, test, set, flags, data);
24066 cat - <<_ACEOF >conftest.h
24071 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
24072 echo "obj-m := conftest.o" >build
/Makefile
24074 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
24075 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
24076 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24077 (eval $ac_try) 2>&5
24079 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24080 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
24081 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24082 (eval $ac_try) 2>&5
24084 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24085 test $ac_status = 0; }; }; then :
24087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24088 $as_echo "yes" >&6; }
24090 $as_echo "#define HAVE_5ARG_SGET 1" >>confdefs.h
24094 $as_echo "$as_me: failed program was:" >&5
24095 sed 's/^/| /' conftest.
$ac_ext >&5
24097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24098 $as_echo "no" >&6; }
24107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lseek_execute() is available" >&5
24108 $as_echo_n "checking whether lseek_execute() is available... " >&6; }
24112 cat confdefs.h
- <<_ACEOF >conftest.c
24115 #include <linux/fs.h>
24121 struct file *fp __attribute__ ((unused)) = NULL;
24122 struct inode *ip __attribute__ ((unused)) = NULL;
24123 loff_t offset __attribute__ ((unused)) = 0;
24124 loff_t maxsize __attribute__ ((unused)) = 0;
24126 lseek_execute(fp, ip, offset, maxsize);
24136 cat - <<_ACEOF >conftest.h
24141 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
24142 echo "obj-m := conftest.o" >build
/Makefile
24144 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
24145 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
24146 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24147 (eval $ac_try) 2>&5
24149 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24150 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
24151 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24152 (eval $ac_try) 2>&5
24154 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24155 test $ac_status = 0; }; }; then :
24158 $as_echo "$as_me: failed program was:" >&5
24159 sed 's/^/| /' conftest.
$ac_ext >&5
24167 if test $rc -ne 0; then :
24169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24170 $as_echo "no" >&6; }
24173 if test "x$enable_linux_builtin" != xyes
; then
24175 grep -q -E '[[:space:]]lseek_exclusive[[:space:]]' \
24176 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
24178 if test $rc -ne 0; then
24180 for file in fs
/read_write.c
; do
24181 grep -q -E "EXPORT_SYMBOL.*(lseek_exclusive)" \
24182 "$LINUX/$file" 2>/dev
/null
24184 if test $rc -eq 0; then
24189 if test $export -eq 0; then :
24199 if test $rc -ne 0; then :
24201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24202 $as_echo "no" >&6; }
24206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24207 $as_echo "yes" >&6; }
24209 $as_echo "#define HAVE_LSEEK_EXECUTE 1" >>confdefs.h
24217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fops->iterate_shared() is available" >&5
24218 $as_echo_n "checking whether fops->iterate_shared() is available... " >&6; }
24221 cat confdefs.h
- <<_ACEOF >conftest.c
24224 #include <linux/fs.h>
24225 int iterate(struct file *filp, struct dir_context * context)
24228 static const struct file_operations fops
24229 __attribute__ ((unused)) = {
24230 .iterate_shared = iterate,
24246 cat - <<_ACEOF >conftest.h
24251 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
24252 echo "obj-m := conftest.o" >build
/Makefile
24254 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
24255 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
24256 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24257 (eval $ac_try) 2>&5
24259 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24260 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
24261 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24262 (eval $ac_try) 2>&5
24264 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24265 test $ac_status = 0; }; }; then :
24267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24268 $as_echo "yes" >&6; }
24270 $as_echo "#define HAVE_VFS_ITERATE_SHARED 1" >>confdefs.h
24274 $as_echo "$as_me: failed program was:" >&5
24275 sed 's/^/| /' conftest.
$ac_ext >&5
24277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24278 $as_echo "no" >&6; }
24280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fops->iterate() is available" >&5
24281 $as_echo_n "checking whether fops->iterate() is available... " >&6; }
24284 cat confdefs.h
- <<_ACEOF >conftest.c
24287 #include <linux/fs.h>
24288 int iterate(struct file *filp, struct dir_context * context)
24291 static const struct file_operations fops
24292 __attribute__ ((unused)) = {
24293 .iterate = iterate,
24309 cat - <<_ACEOF >conftest.h
24314 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
24315 echo "obj-m := conftest.o" >build
/Makefile
24317 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
24318 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
24319 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24320 (eval $ac_try) 2>&5
24322 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24323 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
24324 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24325 (eval $ac_try) 2>&5
24327 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24328 test $ac_status = 0; }; }; then :
24330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24331 $as_echo "yes" >&6; }
24333 $as_echo "#define HAVE_VFS_ITERATE 1" >>confdefs.h
24337 $as_echo "$as_me: failed program was:" >&5
24338 sed 's/^/| /' conftest.
$ac_ext >&5
24340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24341 $as_echo "no" >&6; }
24343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fops->readdir() is available" >&5
24344 $as_echo_n "checking whether fops->readdir() is available... " >&6; }
24347 cat confdefs.h
- <<_ACEOF >conftest.c
24350 #include <linux/fs.h>
24351 int readdir(struct file *filp, void *entry, filldir_t func)
24354 static const struct file_operations fops
24355 __attribute__ ((unused)) = {
24356 .readdir = readdir,
24372 cat - <<_ACEOF >conftest.h
24377 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
24378 echo "obj-m := conftest.o" >build
/Makefile
24380 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
24381 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
24382 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24383 (eval $ac_try) 2>&5
24385 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24386 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
24387 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24388 (eval $ac_try) 2>&5
24390 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24391 test $ac_status = 0; }; }; then :
24393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24394 $as_echo "yes" >&6; }
24396 $as_echo "#define HAVE_VFS_READDIR 1" >>confdefs.h
24400 $as_echo "$as_me: failed program was:" >&5
24401 sed 's/^/| /' conftest.
$ac_ext >&5
24403 as_fn_error $?
"no; file a bug report with ZFSOnLinux" "$LINENO" 5
24426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fops->read/write_iter() are available" >&5
24427 $as_echo_n "checking whether fops->read/write_iter() are available... " >&6; }
24430 cat confdefs.h
- <<_ACEOF >conftest.c
24433 #include <linux/fs.h>
24435 ssize_t test_read(struct kiocb *kiocb, struct iov_iter *to)
24437 ssize_t test_write(struct kiocb *kiocb, struct iov_iter *from)
24440 static const struct file_operations
24441 fops __attribute__ ((unused)) = {
24442 .read_iter = test_read,
24443 .write_iter = test_write,
24459 cat - <<_ACEOF >conftest.h
24464 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
24465 echo "obj-m := conftest.o" >build
/Makefile
24467 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
24468 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
24469 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24470 (eval $ac_try) 2>&5
24472 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24473 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
24474 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24475 (eval $ac_try) 2>&5
24477 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24478 test $ac_status = 0; }; }; then :
24480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24481 $as_echo "yes" >&6; }
24483 $as_echo "#define HAVE_VFS_RW_ITERATE 1" >>confdefs.h
24486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether new_sync_read() is available" >&5
24487 $as_echo_n "checking whether new_sync_read() is available... " >&6; }
24490 cat confdefs.h
- <<_ACEOF >conftest.c
24493 #include <linux/fs.h>
24499 new_sync_read(NULL, NULL, 0, NULL);
24509 cat - <<_ACEOF >conftest.h
24514 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
24515 echo "obj-m := conftest.o" >build
/Makefile
24517 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
24518 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
24519 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24520 (eval $ac_try) 2>&5
24522 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24523 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
24524 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24525 (eval $ac_try) 2>&5
24527 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24528 test $ac_status = 0; }; }; then :
24530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24531 $as_echo "yes" >&6; }
24533 $as_echo "#define HAVE_NEW_SYNC_READ 1" >>confdefs.h
24537 $as_echo "$as_me: failed program was:" >&5
24538 sed 's/^/| /' conftest.
$ac_ext >&5
24540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24541 $as_echo "no" >&6; }
24552 $as_echo "$as_me: failed program was:" >&5
24553 sed 's/^/| /' conftest.
$ac_ext >&5
24555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24556 $as_echo "no" >&6; }
24565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether generic_write_checks() takes kiocb" >&5
24566 $as_echo_n "checking whether generic_write_checks() takes kiocb... " >&6; }
24569 cat confdefs.h
- <<_ACEOF >conftest.c
24572 #include <linux/fs.h>
24579 struct kiocb *iocb = NULL;
24580 struct iov_iter *iov = NULL;
24581 generic_write_checks(iocb, iov);
24591 cat - <<_ACEOF >conftest.h
24596 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
24597 echo "obj-m := conftest.o" >build
/Makefile
24599 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
24600 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
24601 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24602 (eval $ac_try) 2>&5
24604 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24605 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
24606 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24607 (eval $ac_try) 2>&5
24609 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24610 test $ac_status = 0; }; }; then :
24612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24613 $as_echo "yes" >&6; }
24615 $as_echo "#define HAVE_GENERIC_WRITE_CHECKS_KIOCB 1" >>confdefs.h
24619 $as_echo "$as_me: failed program was:" >&5
24620 sed 's/^/| /' conftest.
$ac_ext >&5
24622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24623 $as_echo "no" >&6; }
24633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether kmap_atomic wants 1 args" >&5
24634 $as_echo_n "checking whether kmap_atomic wants 1 args... " >&6; }
24637 cat confdefs.h
- <<_ACEOF >conftest.c
24640 #include <linux/pagemap.h>
24647 kmap_atomic(&page);
24657 cat - <<_ACEOF >conftest.h
24662 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
24663 echo "obj-m := conftest.o" >build
/Makefile
24665 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
24666 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
24667 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24668 (eval $ac_try) 2>&5
24670 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24671 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
24672 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24673 (eval $ac_try) 2>&5
24675 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24676 test $ac_status = 0; }; }; then :
24678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24679 $as_echo "yes" >&6; }
24681 $as_echo "#define HAVE_1ARG_KMAP_ATOMIC 1" >>confdefs.h
24685 $as_echo "$as_me: failed program was:" >&5
24686 sed 's/^/| /' conftest.
$ac_ext >&5
24688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24689 $as_echo "no" >&6; }
24699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether follow_down_one() is available" >&5
24700 $as_echo_n "checking whether follow_down_one() is available... " >&6; }
24703 cat confdefs.h
- <<_ACEOF >conftest.c
24706 #include <linux/namei.h>
24712 struct path *p = NULL;
24713 follow_down_one(p);
24723 cat - <<_ACEOF >conftest.h
24728 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
24729 echo "obj-m := conftest.o" >build
/Makefile
24731 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
24732 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
24733 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24734 (eval $ac_try) 2>&5
24736 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24737 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
24738 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24739 (eval $ac_try) 2>&5
24741 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24742 test $ac_status = 0; }; }; then :
24744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24745 $as_echo "yes" >&6; }
24747 $as_echo "#define HAVE_FOLLOW_DOWN_ONE 1" >>confdefs.h
24751 $as_echo "$as_me: failed program was:" >&5
24752 sed 's/^/| /' conftest.
$ac_ext >&5
24754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24755 $as_echo "no" >&6; }
24765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether make_request_fn() returns int" >&5
24766 $as_echo_n "checking whether make_request_fn() returns int... " >&6; }
24769 cat confdefs.h
- <<_ACEOF >conftest.c
24772 #include <linux/blkdev.h>
24774 int make_request(struct request_queue *q, struct bio *bio)
24783 blk_queue_make_request(NULL, &make_request);
24793 cat - <<_ACEOF >conftest.h
24798 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
24799 echo "obj-m := conftest.o" >build
/Makefile
24801 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
24802 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
24803 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24804 (eval $ac_try) 2>&5
24806 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24807 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
24808 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24809 (eval $ac_try) 2>&5
24811 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24812 test $ac_status = 0; }; }; then :
24814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24815 $as_echo "yes" >&6; }
24817 $as_echo "#define MAKE_REQUEST_FN_RET int" >>confdefs.h
24820 $as_echo "#define HAVE_MAKE_REQUEST_FN_RET_INT 1" >>confdefs.h
24824 $as_echo "$as_me: failed program was:" >&5
24825 sed 's/^/| /' conftest.
$ac_ext >&5
24827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24828 $as_echo "no" >&6; }
24829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether make_request_fn() returns void" >&5
24830 $as_echo_n "checking whether make_request_fn() returns void... " >&6; }
24833 cat confdefs.h
- <<_ACEOF >conftest.c
24836 #include <linux/blkdev.h>
24838 void make_request(struct request_queue *q, struct bio *bio)
24847 blk_queue_make_request(NULL, &make_request);
24857 cat - <<_ACEOF >conftest.h
24862 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
24863 echo "obj-m := conftest.o" >build
/Makefile
24865 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
24866 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
24867 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24868 (eval $ac_try) 2>&5
24870 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24871 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
24872 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24873 (eval $ac_try) 2>&5
24875 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24876 test $ac_status = 0; }; }; then :
24878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24879 $as_echo "yes" >&6; }
24881 $as_echo "#define MAKE_REQUEST_FN_RET void" >>confdefs.h
24885 $as_echo "$as_me: failed program was:" >&5
24886 sed 's/^/| /' conftest.
$ac_ext >&5
24888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24889 $as_echo "no" >&6; }
24890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether make_request_fn() returns blk_qc_t" >&5
24891 $as_echo_n "checking whether make_request_fn() returns blk_qc_t... " >&6; }
24894 cat confdefs.h
- <<_ACEOF >conftest.c
24897 #include <linux/blkdev.h>
24899 blk_qc_t make_request(struct request_queue *q, struct bio *bio)
24901 return (BLK_QC_T_NONE);
24908 blk_queue_make_request(NULL, &make_request);
24918 cat - <<_ACEOF >conftest.h
24923 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
24924 echo "obj-m := conftest.o" >build
/Makefile
24926 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
24927 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
24928 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24929 (eval $ac_try) 2>&5
24931 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24932 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
24933 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24934 (eval $ac_try) 2>&5
24936 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24937 test $ac_status = 0; }; }; then :
24939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24940 $as_echo "yes" >&6; }
24942 $as_echo "#define MAKE_REQUEST_FN_RET blk_qc_t" >>confdefs.h
24945 $as_echo "#define HAVE_MAKE_REQUEST_FN_RET_QC 1" >>confdefs.h
24949 $as_echo "$as_me: failed program was:" >&5
24950 sed 's/^/| /' conftest.
$ac_ext >&5
24952 as_fn_error $?
"no - Please file a bug report at
24953 https://github.com/zfsonlinux/zfs/issues/new" "$LINENO" 5
24977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether generic IO accounting symbols are avaliable" >&5
24978 $as_echo_n "checking whether generic IO accounting symbols are avaliable... " >&6; }
24982 cat confdefs.h
- <<_ACEOF >conftest.c
24985 #include <linux/bio.h>
24987 void (*generic_start_io_acct_f)(int, unsigned long,
24988 struct hd_struct *) = &generic_start_io_acct;
24989 void (*generic_end_io_acct_f)(int, struct hd_struct *,
24990 unsigned long) = &generic_end_io_acct;
24996 generic_start_io_acct(0, 0, NULL);
24997 generic_end_io_acct(0, NULL, 0);
25007 cat - <<_ACEOF >conftest.h
25012 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
25013 echo "obj-m := conftest.o" >build
/Makefile
25015 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
25016 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
25017 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25018 (eval $ac_try) 2>&5
25020 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25021 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
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; }; }; then :
25029 $as_echo "$as_me: failed program was:" >&5
25030 sed 's/^/| /' conftest.
$ac_ext >&5
25038 if test $rc -ne 0; then :
25040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25041 $as_echo "no" >&6; }
25044 if test "x$enable_linux_builtin" != xyes
; then
25046 grep -q -E '[[:space:]]generic_start_io_acct[[:space:]]' \
25047 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
25049 if test $rc -ne 0; then
25051 for file in block
/bio.c
; do
25052 grep -q -E "EXPORT_SYMBOL.*(generic_start_io_acct)" \
25053 "$LINUX/$file" 2>/dev
/null
25055 if test $rc -eq 0; then
25060 if test $export -eq 0; then :
25070 if test $rc -ne 0; then :
25072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25073 $as_echo "no" >&6; }
25077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25078 $as_echo "yes" >&6; }
25080 $as_echo "#define HAVE_GENERIC_IO_ACCT 1" >>confdefs.h
25088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->rename() wants flags" >&5
25089 $as_echo_n "checking whether iops->rename() wants flags... " >&6; }
25092 cat confdefs.h
- <<_ACEOF >conftest.c
25095 #include <linux/fs.h>
25096 int rename_fn(struct inode *sip, struct dentry *sdp,
25097 struct inode *tip, struct dentry *tdp,
25098 unsigned int flags) { return 0; }
25100 static const struct inode_operations
25101 iops __attribute__ ((unused)) = {
25102 .rename = rename_fn,
25118 cat - <<_ACEOF >conftest.h
25123 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
25124 echo "obj-m := conftest.o" >build
/Makefile
25126 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
25127 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
25128 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25129 (eval $ac_try) 2>&5
25131 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25132 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
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; }; }; then :
25139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25140 $as_echo "yes" >&6; }
25142 $as_echo "#define HAVE_RENAME_WANTS_FLAGS 1" >>confdefs.h
25146 $as_echo "$as_me: failed program was:" >&5
25147 sed 's/^/| /' conftest.
$ac_ext >&5
25149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25150 $as_echo "no" >&6; }
25160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether generic_setxattr() exists" >&5
25161 $as_echo_n "checking whether generic_setxattr() exists... " >&6; }
25164 cat confdefs.h
- <<_ACEOF >conftest.c
25167 #include <linux/fs.h>
25168 #include <linux/xattr.h>
25170 static const struct inode_operations
25171 iops __attribute__ ((unused)) = {
25172 .setxattr = generic_setxattr
25188 cat - <<_ACEOF >conftest.h
25193 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
25194 echo "obj-m := conftest.o" >build
/Makefile
25196 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
25197 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
25198 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25199 (eval $ac_try) 2>&5
25201 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25202 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
25203 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25204 (eval $ac_try) 2>&5
25206 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25207 test $ac_status = 0; }; }; then :
25209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25210 $as_echo "yes" >&6; }
25212 $as_echo "#define HAVE_GENERIC_SETXATTR 1" >>confdefs.h
25216 $as_echo "$as_me: failed program was:" >&5
25217 sed 's/^/| /' conftest.
$ac_ext >&5
25219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25220 $as_echo "no" >&6; }
25229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether current_time() exists" >&5
25230 $as_echo_n "checking whether current_time() exists... " >&6; }
25234 cat confdefs.h
- <<_ACEOF >conftest.c
25237 #include <linux/fs.h>
25244 struct timespec now __attribute__ ((unused));
25246 now = current_time(&ip);
25256 cat - <<_ACEOF >conftest.h
25261 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
25262 echo "obj-m := conftest.o" >build
/Makefile
25264 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
25265 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
25266 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25267 (eval $ac_try) 2>&5
25269 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25270 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
25271 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25272 (eval $ac_try) 2>&5
25274 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25275 test $ac_status = 0; }; }; then :
25278 $as_echo "$as_me: failed program was:" >&5
25279 sed 's/^/| /' conftest.
$ac_ext >&5
25287 if test $rc -ne 0; then :
25289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25290 $as_echo "no" >&6; }
25293 if test "x$enable_linux_builtin" != xyes
; then
25295 grep -q -E '[[:space:]]current_time[[:space:]]' \
25296 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
25298 if test $rc -ne 0; then
25300 for file in fs
/inode.c
; do
25301 grep -q -E "EXPORT_SYMBOL.*(current_time)" \
25302 "$LINUX/$file" 2>/dev
/null
25304 if test $rc -eq 0; then
25309 if test $export -eq 0; then :
25319 if test $rc -ne 0; then :
25321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25322 $as_echo "no" >&6; }
25326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25327 $as_echo "yes" >&6; }
25329 $as_echo "#define HAVE_CURRENT_TIME 1" >>confdefs.h
25337 if test "$LINUX_OBJ" != "$LINUX"; then :
25339 KERNELMAKE_PARAMS
="$KERNELMAKE_PARAMS O=$LINUX_OBJ"
25345 KERNELCPPFLAGS
="$KERNELCPPFLAGS $NO_UNUSED_BUT_SET_VARIABLE"
25346 KERNELCPPFLAGS
="$KERNELCPPFLAGS $NO_BOOL_COMPARE"
25347 KERNELCPPFLAGS
="$KERNELCPPFLAGS -DHAVE_SPL -D_KERNEL"
25348 KERNELCPPFLAGS
="$KERNELCPPFLAGS -DTEXT_DOMAIN=\\\"zfs-linux-kernel\\\""
25355 # Check whether --with-linux was given.
25356 if test "${with_linux+set}" = set; then :
25357 withval
=$with_linux; kernelsrc
="$withval"
25362 # Check whether --with-linux-obj was given.
25363 if test "${with_linux_obj+set}" = set; then :
25364 withval
=$with_linux_obj; kernelbuild
="$withval"
25368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking kernel source directory" >&5
25369 $as_echo_n "checking kernel source directory... " >&6; }
25370 if test -z "$kernelsrc"; then :
25372 if test -e "/lib/modules/$(uname -r)/source"; then :
25374 headersdir
="/lib/modules/$(uname -r)/source"
25375 sourcelink
=$
(readlink
-f "$headersdir")
25377 elif test -e "/lib/modules/$(uname -r)/build"; then :
25379 headersdir
="/lib/modules/$(uname -r)/build"
25380 sourcelink
=$
(readlink
-f "$headersdir")
25384 sourcelink
=$
(ls -1d /usr
/src
/kernels
/* \
25386 2>/dev
/null |
grep -v obj |
tail -1)
25390 if test -n "$sourcelink" && test -e ${sourcelink}; then :
25392 kernelsrc
=`readlink -f ${sourcelink}`
25396 kernelsrc
="Not found"
25402 if test "$kernelsrc" = "NONE"; then :
25410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kernelsrc" >&5
25411 $as_echo "$kernelsrc" >&6; }
25412 if test ! -d "$kernelsrc"; then :
25415 *** Please make sure the kernel devel package for your distribution
25416 *** is installed and then try again. If that fails, you can specify the
25417 *** location of the kernel source with the '--with-linux=PATH' option." "$LINENO" 5
25421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking kernel build directory" >&5
25422 $as_echo_n "checking kernel build directory... " >&6; }
25423 if test -z "$kernelbuild"; then :
25425 if test -e "/lib/modules/$(uname -r)/build"; then :
25427 kernelbuild
=`readlink -f /lib/modules/$(uname -r)/build`
25429 elif test -d ${kernelsrc}-obj/${target_cpu}/${target_cpu}; then :
25431 kernelbuild
=${kernelsrc}-obj/${target_cpu}/${target_cpu}
25433 elif test -d ${kernelsrc}-obj/${target_cpu}/default
; then :
25435 kernelbuild
=${kernelsrc}-obj/${target_cpu}/default
25437 elif test -d `dirname ${kernelsrc}`/build-
${target_cpu}; then :
25439 kernelbuild
=`dirname ${kernelsrc}`/build-
${target_cpu}
25443 kernelbuild
=${kernelsrc}
25448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kernelbuild" >&5
25449 $as_echo "$kernelbuild" >&6; }
25451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking kernel source version" >&5
25452 $as_echo_n "checking kernel source version... " >&6; }
25453 utsrelease1
=$kernelbuild/include
/linux
/version.h
25454 utsrelease2
=$kernelbuild/include
/linux
/utsrelease.h
25455 utsrelease3
=$kernelbuild/include
/generated
/utsrelease.h
25456 if test -r $utsrelease1 && fgrep
-q UTS_RELEASE
$utsrelease1; then :
25458 utsrelease
=linux
/version.h
25460 elif test -r $utsrelease2 && fgrep
-q UTS_RELEASE
$utsrelease2; then :
25462 utsrelease
=linux
/utsrelease.h
25464 elif test -r $utsrelease3 && fgrep
-q UTS_RELEASE
$utsrelease3; then :
25466 utsrelease
=generated
/utsrelease.h
25470 if test "$utsrelease"; then :
25472 kernsrcver
=`(echo "#include <$utsrelease>";
25473 echo "kernsrcver=UTS_RELEASE") |
25474 cpp -I $kernelbuild/include |
25475 grep "^kernsrcver=" | cut -d \" -f 2`
25477 if test -z "$kernsrcver"; then :
25479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not found" >&5
25480 $as_echo "Not found" >&6; }
25481 as_fn_error $?
"*** Cannot determine kernel version." "$LINENO" 5
25487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not found" >&5
25488 $as_echo "Not found" >&6; }
25489 if test "x$enable_linux_builtin" != xyes
; then
25490 as_fn_error $?
"*** Cannot find UTS_RELEASE definition." "$LINENO" 5
25493 *** Cannot find UTS_RELEASE definition.
25494 *** Please run 'make prepare' inside the kernel source tree." "$LINENO" 5
25499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kernsrcver" >&5
25500 $as_echo "$kernsrcver" >&6; }
25503 LINUX_OBJ
=${kernelbuild}
25504 LINUX_VERSION
=${kernsrcver}
25511 modpost
=$LINUX/scripts
/Makefile.modpost
25512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking kernel file name for module symbols" >&5
25513 $as_echo_n "checking kernel file name for module symbols... " >&6; }
25514 if test "x$enable_linux_builtin" != xyes
-a -f "$modpost"; then :
25516 if grep -q Modules.symvers
$modpost; then :
25518 LINUX_SYMBOLS
=Modules.symvers
25522 LINUX_SYMBOLS
=Module.symvers
25526 if test ! -f "$LINUX_OBJ/$LINUX_SYMBOLS"; then :
25529 *** Please make sure the kernel devel package for your distribution
25530 *** is installed. If you are building with a custom kernel, make sure the
25531 *** kernel is configured, built, and the '--with-linux=PATH' configure
25532 *** option refers to the location of the kernel source." "$LINENO" 5
25541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINUX_SYMBOLS" >&5
25542 $as_echo "$LINUX_SYMBOLS" >&6; }
25548 # Check whether --with-spl was given.
25549 if test "${with_spl+set}" = set; then :
25550 withval
=$with_spl; splsrc
="$withval"
25555 # Check whether --with-spl-obj was given.
25556 if test "${with_spl_obj+set}" = set; then :
25557 withval
=$with_spl_obj; splbuild
="$withval"
25562 # Check whether --with-spl-timeout was given.
25563 if test "${with_spl_timeout+set}" = set; then :
25564 withval
=$with_spl_timeout; timeout
="$withval"
25570 splsrc0
="/var/lib/dkms/spl/${VERSION}/build"
25571 splsrc1
="/usr/local/src/spl-${VERSION}/${LINUX_VERSION}"
25572 splsrc2
="/usr/local/src/spl-${VERSION}"
25573 splsrc3
="/usr/src/spl-${VERSION}/${LINUX_VERSION}"
25574 splsrc4
="/usr/src/spl-${VERSION}"
25578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking spl source directory" >&5
25579 $as_echo_n "checking spl source directory... " >&6; }
25580 if test -z "${splsrc}"; then :
25582 if test -e "${splsrc0}/spl.release.in"; then :
25586 elif test -e "${splsrc1}/spl.release.in"; then :
25590 elif test -e "${splsrc2}/spl.release.in"; then :
25594 elif test -e "${splsrc3}/spl.release.in"; then :
25596 splsrc
=$
(readlink
-f "${splsrc3}")
25598 elif test -e "${splsrc4}/spl.release.in" ; then :
25602 elif test -e "${splsrc5}/spl.release.in"; then :
25604 splsrc
=$
(readlink
-f "${splsrc5}")
25606 elif test -e "${splsrc6}/spl.release.in" ; then :
25618 if test "$splsrc" = "NONE"; then :
25627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $splsrc" >&5
25628 $as_echo "$splsrc" >&6; }
25629 if test ! -e "$splsrc/spl.release.in"; then :
25632 *** Please make sure the kmod spl devel package for your distribution
25633 *** is installed then try again. If that fails you can specify the
25634 *** location of the spl source with the '--with-spl=PATH' option." "$LINENO" 5
25638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking spl build directory" >&5
25639 $as_echo_n "checking spl build directory... " >&6; }
25641 if test -z "$splbuild"; then :
25643 if test -e "${splsrc}/${LINUX_VERSION}/spl_config.h" ; then :
25645 splbuild
="${splsrc}/${LINUX_VERSION}"
25647 elif test -e "${splsrc}/spl_config.h" ; then :
25649 splbuild
="${splsrc}"
25651 elif find -L "${splsrc}" -name spl_config.h
2> /dev
/null |
grep -wq spl_config.h
; then :
25653 splbuild
=$
(find -L "${splsrc}" -name spl_config.h |
sed 's,/spl_config.h,,')
25657 splbuild
="Not found"
25662 if test -e "$splbuild/spl_config.h" -o $timeout -le 0; then :
25669 timeout
=$
((timeout-1
))
25674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $splbuild" >&5
25675 $as_echo "$splbuild" >&6; }
25676 if ! test -e "$splbuild/spl_config.h"; then :
25679 *** Please make sure the kmod spl devel <kernel> package for your
25680 *** distribution is installed then try again. If that fails you
25681 *** can specify the location of the spl objects with the
25682 *** '--with-spl-obj=PATH' option." "$LINENO" 5
25686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking spl source version" >&5
25687 $as_echo_n "checking spl source version... " >&6; }
25688 if test -r $splbuild/spl_config.h
&&
25689 fgrep
-q SPL_META_VERSION
$splbuild/spl_config.h
; then :
25692 splsrcver
=`(echo "#include <spl_config.h>";
25693 echo "splsrcver=SPL_META_VERSION-SPL_META_RELEASE") |
25695 grep "^splsrcver=" | tr -d \" | cut -d= -f2`
25699 if test -z "$splsrcver"; then :
25701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not found" >&5
25702 $as_echo "Not found" >&6; }
25704 *** Cannot determine the version of the spl source.
25705 *** Please prepare the spl source before running this script" "$LINENO" 5
25709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $splsrcver" >&5
25710 $as_echo "$splsrcver" >&6; }
25713 SPL_OBJ
=${splbuild}
25714 SPL_VERSION
=${splsrcver}
25720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking spl file name for module symbols" >&5
25721 $as_echo_n "checking spl file name for module symbols... " >&6; }
25725 if test -r $SPL_OBJ/Module.symvers
; then :
25727 SPL_SYMBOLS
=Module.symvers
25729 elif test -r $SPL_OBJ/Modules.symvers
; then :
25731 SPL_SYMBOLS
=Modules.symvers
25733 elif test -r $SPL_OBJ/module
/Module.symvers
; then :
25735 SPL_SYMBOLS
=Module.symvers
25737 elif test -r $SPL_OBJ/module
/Modules.symvers
; then :
25739 SPL_SYMBOLS
=Modules.symvers
25743 if test $SPL_SYMBOLS != NONE
-o $timeout -le 0; then :
25750 timeout
=$
((timeout-1
))
25755 if test "$SPL_SYMBOLS" = NONE
; then :
25757 SPL_SYMBOLS
=$LINUX_SYMBOLS
25761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SPL_SYMBOLS" >&5
25762 $as_echo "$SPL_SYMBOLS" >&6; }
25766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether modules can be built" >&5
25767 $as_echo_n "checking whether modules can be built... " >&6; }
25770 cat confdefs.h
- <<_ACEOF >conftest.c
25785 cat - <<_ACEOF >conftest.h
25790 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
25791 echo "obj-m := conftest.o" >build
/Makefile
25793 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
25794 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
25795 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25796 (eval $ac_try) 2>&5
25798 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25799 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
25800 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25801 (eval $ac_try) 2>&5
25803 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25804 test $ac_status = 0; }; }; then :
25806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25807 $as_echo "yes" >&6; }
25810 $as_echo "$as_me: failed program was:" >&5
25811 sed 's/^/| /' conftest.
$ac_ext >&5
25813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25814 $as_echo "no" >&6; }
25815 if test "x$enable_linux_builtin" != xyes
; then
25816 as_fn_error $?
"*** Unable to build an empty module." "$LINENO" 5
25819 *** Unable to build an empty module.
25820 *** Please run 'make scripts' inside the kernel source tree." "$LINENO" 5
25831 if test "x$cross_compiling" != xyes
; then :
25833 if test "$cross_compiling" = yes; then :
25834 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
25835 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
25836 as_fn_error $?
"cannot run test program while cross compiling
25837 See \`config.log' for more details" "$LINENO" 5; }
25839 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
25840 /* end confdefs.h. */
25843 #include "$LINUX/include/linux/license.h"
25849 return !license_is_gpl_compatible("$ZFS_META_LICENSE");
25856 if ac_fn_c_try_run
"$LINENO"; then :
25859 $as_echo "#define ZFS_IS_GPL_COMPATIBLE 1" >>confdefs.h
25863 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
25864 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
25871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether kernel was built with 16K or larger stacks" >&5
25872 $as_echo_n "checking whether kernel was built with 16K or larger stacks... " >&6; }
25875 cat confdefs.h
- <<_ACEOF >conftest.c
25878 #include <linux/module.h>
25884 #if (THREAD_SIZE < 16384)
25885 #error "THREAD_SIZE is less than 16K"
25896 cat - <<_ACEOF >conftest.h
25901 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
25902 echo "obj-m := conftest.o" >build
/Makefile
25904 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
25905 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
25906 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25907 (eval $ac_try) 2>&5
25909 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25910 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
25911 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25912 (eval $ac_try) 2>&5
25914 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25915 test $ac_status = 0; }; }; then :
25917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25918 $as_echo "yes" >&6; }
25920 $as_echo "#define HAVE_LARGE_STACKS 1" >>confdefs.h
25924 $as_echo "$as_me: failed program was:" >&5
25925 sed 's/^/| /' conftest.
$ac_ext >&5
25927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25928 $as_echo "no" >&6; }
25939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether kernel was built with CONFIG_DEBUG_LOCK_ALLOC" >&5
25940 $as_echo_n "checking whether kernel was built with CONFIG_DEBUG_LOCK_ALLOC... " >&6; }
25943 cat confdefs.h
- <<_ACEOF >conftest.c
25946 #include <linux/module.h>
25952 #ifndef CONFIG_DEBUG_LOCK_ALLOC
25953 #error CONFIG_DEBUG_LOCK_ALLOC not #defined
25964 cat - <<_ACEOF >conftest.h
25969 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
25970 echo "obj-m := conftest.o" >build
/Makefile
25972 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
25973 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
25974 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25975 (eval $ac_try) 2>&5
25977 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25978 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
25979 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25980 (eval $ac_try) 2>&5
25982 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25983 test $ac_status = 0; }; }; then :
25985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25986 $as_echo "yes" >&6; }
25988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mutex_lock() is GPL-only" >&5
25989 $as_echo_n "checking whether mutex_lock() is GPL-only... " >&6; }
25990 tmp_flags
="$EXTRA_KCFLAGS"
25993 cat confdefs.h
- <<_ACEOF >conftest.c
25996 #include <linux/module.h>
25997 #include <linux/mutex.h>
25999 MODULE_LICENSE("$ZFS_META_LICENSE");
26009 mutex_unlock(&lock);
26019 cat - <<_ACEOF >conftest.h
26024 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
26025 echo "obj-m := conftest.o" >build
/Makefile
26027 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
26028 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
26029 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26030 (eval $ac_try) 2>&5
26032 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26033 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
26034 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26035 (eval $ac_try) 2>&5
26037 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26038 test $ac_status = 0; }; }; then :
26040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26041 $as_echo "no" >&6; }
26044 $as_echo "$as_me: failed program was:" >&5
26045 sed 's/^/| /' conftest.
$ac_ext >&5
26047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26048 $as_echo "yes" >&6; }
26050 *** Kernel built with CONFIG_DEBUG_LOCK_ALLOC which is incompatible
26051 *** with the CDDL license and will prevent the module linking stage
26052 *** from succeeding. You must rebuild your kernel without this
26053 *** option enabled." "$LINENO" 5
26061 EXTRA_KCFLAGS
="$tmp_flags"
26065 $as_echo "$as_me: failed program was:" >&5
26066 sed 's/^/| /' conftest.
$ac_ext >&5
26068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26069 $as_echo "no" >&6; }
26082 tmp_flags
="$EXTRA_KCFLAGS"
26083 EXTRA_KCFLAGS
="-I\$(src)"
26085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether DECLARE_EVENT_CLASS() is available" >&5
26086 $as_echo_n "checking whether DECLARE_EVENT_CLASS() is available... " >&6; }
26089 cat confdefs.h
- <<_ACEOF >conftest.c
26092 #include <linux/module.h>
26093 MODULE_LICENSE(ZFS_META_LICENSE);
26095 #define CREATE_TRACE_POINTS
26096 #include "conftest.h"
26102 trace_zfs_autoconf_event_one(1UL);
26103 trace_zfs_autoconf_event_two(2UL);
26113 cat - <<_ACEOF >conftest.h
26115 #if !defined(_CONFTEST_H) || defined(TRACE_HEADER_MULTI_READ)
26116 #define _CONFTEST_H
26118 #undef TRACE_SYSTEM
26119 #define TRACE_SYSTEM zfs
26120 #include <linux/tracepoint.h>
26122 DECLARE_EVENT_CLASS(zfs_autoconf_event_class,
26123 TP_PROTO(unsigned long i),
26126 __field(unsigned long, i)
26131 TP_printk("i = %lu", __entry->i)
26134 #define DEFINE_AUTOCONF_EVENT(name) \
26135 DEFINE_EVENT(zfs_autoconf_event_class, name, \
26136 TP_PROTO(unsigned long i), \
26138 DEFINE_AUTOCONF_EVENT(zfs_autoconf_event_one);
26139 DEFINE_AUTOCONF_EVENT(zfs_autoconf_event_two);
26141 #endif /* _CONFTEST_H */
26143 #undef TRACE_INCLUDE_PATH
26144 #define TRACE_INCLUDE_PATH .
26145 #define TRACE_INCLUDE_FILE conftest
26146 #include <trace/define_trace.h>
26151 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
26152 echo "obj-m := conftest.o" >build
/Makefile
26154 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
26155 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
26156 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26157 (eval $ac_try) 2>&5
26159 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26160 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
26161 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26162 (eval $ac_try) 2>&5
26164 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26165 test $ac_status = 0; }; }; then :
26167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26168 $as_echo "yes" >&6; }
26170 $as_echo "#define HAVE_DECLARE_EVENT_CLASS 1" >>confdefs.h
26174 $as_echo "$as_me: failed program was:" >&5
26175 sed 's/^/| /' conftest.
$ac_ext >&5
26177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26178 $as_echo "no" >&6; }
26186 EXTRA_KCFLAGS
="$tmp_flags"
26189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether current->bio_tail exists" >&5
26190 $as_echo_n "checking whether current->bio_tail exists... " >&6; }
26193 cat confdefs.h
- <<_ACEOF >conftest.c
26196 #include <linux/sched.h>
26202 current->bio_tail = (struct bio **) NULL;
26212 cat - <<_ACEOF >conftest.h
26217 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
26218 echo "obj-m := conftest.o" >build
/Makefile
26220 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
26221 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
26222 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26223 (eval $ac_try) 2>&5
26225 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26226 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
26227 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26228 (eval $ac_try) 2>&5
26230 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26231 test $ac_status = 0; }; }; then :
26233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26234 $as_echo "yes" >&6; }
26236 $as_echo "#define HAVE_CURRENT_BIO_TAIL 1" >>confdefs.h
26240 $as_echo "$as_me: failed program was:" >&5
26241 sed 's/^/| /' conftest.
$ac_ext >&5
26243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26244 $as_echo "no" >&6; }
26245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether current->bio_list exists" >&5
26246 $as_echo_n "checking whether current->bio_list exists... " >&6; }
26249 cat confdefs.h
- <<_ACEOF >conftest.c
26252 #include <linux/sched.h>
26258 current->bio_list = (struct bio_list *) NULL;
26268 cat - <<_ACEOF >conftest.h
26273 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
26274 echo "obj-m := conftest.o" >build
/Makefile
26276 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
26277 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
26278 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26279 (eval $ac_try) 2>&5
26281 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26282 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
26283 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26284 (eval $ac_try) 2>&5
26286 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26287 test $ac_status = 0; }; }; then :
26289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26290 $as_echo "yes" >&6; }
26292 $as_echo "#define HAVE_CURRENT_BIO_LIST 1" >>confdefs.h
26296 $as_echo "$as_me: failed program was:" >&5
26297 sed 's/^/| /' conftest.
$ac_ext >&5
26299 as_fn_error $?
"no - Please file a bug report at
26300 https://github.com/zfsonlinux/zfs/issues/new" "$LINENO" 5
26317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether submit_bio() wants 1 arg" >&5
26318 $as_echo_n "checking whether submit_bio() wants 1 arg... " >&6; }
26321 cat confdefs.h
- <<_ACEOF >conftest.c
26324 #include <linux/bio.h>
26331 struct bio *bio = NULL;
26332 blk_qc = submit_bio(bio);
26342 cat - <<_ACEOF >conftest.h
26347 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
26348 echo "obj-m := conftest.o" >build
/Makefile
26350 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
26351 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
26352 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26353 (eval $ac_try) 2>&5
26355 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26356 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
26357 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26358 (eval $ac_try) 2>&5
26360 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26361 test $ac_status = 0; }; }; then :
26363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26364 $as_echo "yes" >&6; }
26366 $as_echo "#define HAVE_1ARG_SUBMIT_BIO 1" >>confdefs.h
26370 $as_echo "$as_me: failed program was:" >&5
26371 sed 's/^/| /' conftest.
$ac_ext >&5
26373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26374 $as_echo "no" >&6; }
26384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking block device operation prototypes" >&5
26385 $as_echo_n "checking block device operation prototypes... " >&6; }
26386 tmp_flags
="$EXTRA_KCFLAGS"
26387 EXTRA_KCFLAGS
="${NO_UNUSED_BUT_SET_VARIABLE}"
26390 cat confdefs.h
- <<_ACEOF >conftest.c
26393 #include <linux/blkdev.h>
26395 int blk_open(struct block_device *bdev, fmode_t mode)
26397 int blk_ioctl(struct block_device *bdev, fmode_t mode,
26398 unsigned x, unsigned long y) { return 0; }
26399 int blk_compat_ioctl(struct block_device * bdev, fmode_t mode,
26400 unsigned x, unsigned long y) { return 0; }
26402 static const struct block_device_operations
26403 bops __attribute__ ((unused)) = {
26406 .ioctl = blk_ioctl,
26407 .compat_ioctl = blk_compat_ioctl,
26423 cat - <<_ACEOF >conftest.h
26428 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
26429 echo "obj-m := conftest.o" >build
/Makefile
26431 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
26432 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
26433 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26434 (eval $ac_try) 2>&5
26436 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26437 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
26438 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26439 (eval $ac_try) 2>&5
26441 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26442 test $ac_status = 0; }; }; then :
26444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: struct block_device" >&5
26445 $as_echo "struct block_device" >&6; }
26447 $as_echo "#define HAVE_BDEV_BLOCK_DEVICE_OPERATIONS 1" >>confdefs.h
26451 $as_echo "$as_me: failed program was:" >&5
26452 sed 's/^/| /' conftest.
$ac_ext >&5
26454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: struct inode" >&5
26455 $as_echo "struct inode" >&6; }
26463 EXTRA_KCFLAGS
="$tmp_flags"
26466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether block_device_operations.release is void" >&5
26467 $as_echo_n "checking whether block_device_operations.release is void... " >&6; }
26468 tmp_flags
="$EXTRA_KCFLAGS"
26469 EXTRA_KCFLAGS
="${NO_UNUSED_BUT_SET_VARIABLE}"
26472 cat confdefs.h
- <<_ACEOF >conftest.c
26475 #include <linux/blkdev.h>
26477 void blk_release(struct gendisk *g, fmode_t mode) { return; }
26479 static const struct block_device_operations
26480 bops __attribute__ ((unused)) = {
26482 .release = blk_release,
26484 .compat_ioctl = NULL,
26500 cat - <<_ACEOF >conftest.h
26505 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
26506 echo "obj-m := conftest.o" >build
/Makefile
26508 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
26509 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
26510 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26511 (eval $ac_try) 2>&5
26513 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26514 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
26515 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26516 (eval $ac_try) 2>&5
26518 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26519 test $ac_status = 0; }; }; then :
26521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: void" >&5
26522 $as_echo "void" >&6; }
26524 $as_echo "#define HAVE_BLOCK_DEVICE_OPERATIONS_RELEASE_VOID 1" >>confdefs.h
26528 $as_echo "$as_me: failed program was:" >&5
26529 sed 's/^/| /' conftest.
$ac_ext >&5
26531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: int" >&5
26532 $as_echo "int" >&6; }
26540 EXTRA_KCFLAGS
="$tmp_flags"
26542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether kernel defines fmode_t" >&5
26543 $as_echo_n "checking whether kernel defines fmode_t... " >&6; }
26546 cat confdefs.h
- <<_ACEOF >conftest.c
26549 #include <linux/types.h>
26555 fmode_t *ptr __attribute__ ((unused));
26565 cat - <<_ACEOF >conftest.h
26570 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
26571 echo "obj-m := conftest.o" >build
/Makefile
26573 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
26574 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
26575 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26576 (eval $ac_try) 2>&5
26578 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26579 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
26580 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26581 (eval $ac_try) 2>&5
26583 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26584 test $ac_status = 0; }; }; then :
26586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26587 $as_echo "yes" >&6; }
26589 $as_echo "#define HAVE_FMODE_T 1" >>confdefs.h
26593 $as_echo "$as_me: failed program was:" >&5
26594 sed 's/^/| /' conftest.
$ac_ext >&5
26596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26597 $as_echo "no" >&6; }
26607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether kernel defines KOBJ_NAME_LEN" >&5
26608 $as_echo_n "checking whether kernel defines KOBJ_NAME_LEN... " >&6; }
26611 cat confdefs.h
- <<_ACEOF >conftest.c
26614 #include <linux/kobject.h>
26620 int val __attribute__ ((unused));
26621 val = KOBJ_NAME_LEN;
26631 cat - <<_ACEOF >conftest.h
26636 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
26637 echo "obj-m := conftest.o" >build
/Makefile
26639 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
26640 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
26641 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26642 (eval $ac_try) 2>&5
26644 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26645 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
26646 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26647 (eval $ac_try) 2>&5
26649 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26650 test $ac_status = 0; }; }; then :
26652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26653 $as_echo "yes" >&6; }
26655 $as_echo "#define HAVE_KOBJ_NAME_LEN 1" >>confdefs.h
26659 $as_echo "$as_me: failed program was:" >&5
26660 sed 's/^/| /' conftest.
$ac_ext >&5
26662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26663 $as_echo "no" >&6; }
26673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether blkdev_get() wants 3 args" >&5
26674 $as_echo_n "checking whether blkdev_get() wants 3 args... " >&6; }
26677 cat confdefs.h
- <<_ACEOF >conftest.c
26680 #include <linux/fs.h>
26686 struct block_device *bdev = NULL;
26687 (void) blkdev_get(bdev, 0, NULL);
26697 cat - <<_ACEOF >conftest.h
26702 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
26703 echo "obj-m := conftest.o" >build
/Makefile
26705 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
26706 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
26707 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26708 (eval $ac_try) 2>&5
26710 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26711 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
26712 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26713 (eval $ac_try) 2>&5
26715 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26716 test $ac_status = 0; }; }; then :
26718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26719 $as_echo "yes" >&6; }
26721 $as_echo "#define HAVE_3ARG_BLKDEV_GET 1" >>confdefs.h
26725 $as_echo "$as_me: failed program was:" >&5
26726 sed 's/^/| /' conftest.
$ac_ext >&5
26728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26729 $as_echo "no" >&6; }
26738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether blkdev_get_by_path() is available" >&5
26739 $as_echo_n "checking whether blkdev_get_by_path() is available... " >&6; }
26743 cat confdefs.h
- <<_ACEOF >conftest.c
26746 #include <linux/fs.h>
26752 blkdev_get_by_path(NULL, 0, NULL);
26762 cat - <<_ACEOF >conftest.h
26767 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
26768 echo "obj-m := conftest.o" >build
/Makefile
26770 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
26771 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
26772 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26773 (eval $ac_try) 2>&5
26775 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26776 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
26777 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26778 (eval $ac_try) 2>&5
26780 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26781 test $ac_status = 0; }; }; then :
26784 $as_echo "$as_me: failed program was:" >&5
26785 sed 's/^/| /' conftest.
$ac_ext >&5
26793 if test $rc -ne 0; then :
26795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26796 $as_echo "no" >&6; }
26799 if test "x$enable_linux_builtin" != xyes
; then
26801 grep -q -E '[[:space:]]blkdev_get_by_path[[:space:]]' \
26802 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
26804 if test $rc -ne 0; then
26806 for file in fs
/block_dev.c
; do
26807 grep -q -E "EXPORT_SYMBOL.*(blkdev_get_by_path)" \
26808 "$LINUX/$file" 2>/dev
/null
26810 if test $rc -eq 0; then
26815 if test $export -eq 0; then :
26825 if test $rc -ne 0; then :
26827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26828 $as_echo "no" >&6; }
26832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26833 $as_echo "yes" >&6; }
26835 $as_echo "#define HAVE_BLKDEV_GET_BY_PATH 1" >>confdefs.h
26842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether open_bdev_exclusive() is available" >&5
26843 $as_echo_n "checking whether open_bdev_exclusive() is available... " >&6; }
26847 cat confdefs.h
- <<_ACEOF >conftest.c
26850 #include <linux/fs.h>
26856 open_bdev_exclusive(NULL, 0, NULL);
26866 cat - <<_ACEOF >conftest.h
26871 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
26872 echo "obj-m := conftest.o" >build
/Makefile
26874 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
26875 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
26876 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26877 (eval $ac_try) 2>&5
26879 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26880 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
26881 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26882 (eval $ac_try) 2>&5
26884 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26885 test $ac_status = 0; }; }; then :
26888 $as_echo "$as_me: failed program was:" >&5
26889 sed 's/^/| /' conftest.
$ac_ext >&5
26897 if test $rc -ne 0; then :
26899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26900 $as_echo "no" >&6; }
26903 if test "x$enable_linux_builtin" != xyes
; then
26905 grep -q -E '[[:space:]]open_bdev_exclusive[[:space:]]' \
26906 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
26908 if test $rc -ne 0; then
26910 for file in fs
/block_dev.c
; do
26911 grep -q -E "EXPORT_SYMBOL.*(open_bdev_exclusive)" \
26912 "$LINUX/$file" 2>/dev
/null
26914 if test $rc -eq 0; then
26919 if test $export -eq 0; then :
26929 if test $rc -ne 0; then :
26931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26932 $as_echo "no" >&6; }
26936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26937 $as_echo "yes" >&6; }
26939 $as_echo "#define HAVE_OPEN_BDEV_EXCLUSIVE 1" >>confdefs.h
26946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lookup_bdev() wants 1 arg" >&5
26947 $as_echo_n "checking whether lookup_bdev() wants 1 arg... " >&6; }
26951 cat confdefs.h
- <<_ACEOF >conftest.c
26954 #include <linux/fs.h>
26970 cat - <<_ACEOF >conftest.h
26975 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
26976 echo "obj-m := conftest.o" >build
/Makefile
26978 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
26979 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
26980 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26981 (eval $ac_try) 2>&5
26983 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26984 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
26985 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26986 (eval $ac_try) 2>&5
26988 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26989 test $ac_status = 0; }; }; then :
26992 $as_echo "$as_me: failed program was:" >&5
26993 sed 's/^/| /' conftest.
$ac_ext >&5
27001 if test $rc -ne 0; then :
27003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27004 $as_echo "no" >&6; }
27005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lookup_bdev() wants 2 args" >&5
27006 $as_echo_n "checking whether lookup_bdev() wants 2 args... " >&6; }
27010 cat confdefs.h
- <<_ACEOF >conftest.c
27013 #include <linux/fs.h>
27019 lookup_bdev(NULL, FMODE_READ);
27029 cat - <<_ACEOF >conftest.h
27034 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
27035 echo "obj-m := conftest.o" >build
/Makefile
27037 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
27038 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
27039 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27040 (eval $ac_try) 2>&5
27042 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27043 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
27044 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27045 (eval $ac_try) 2>&5
27047 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27048 test $ac_status = 0; }; }; then :
27051 $as_echo "$as_me: failed program was:" >&5
27052 sed 's/^/| /' conftest.
$ac_ext >&5
27060 if test $rc -ne 0; then :
27062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27063 $as_echo "no" >&6; }
27066 if test "x$enable_linux_builtin" != xyes
; then
27068 grep -q -E '[[:space:]]lookup_bdev[[:space:]]' \
27069 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
27071 if test $rc -ne 0; then
27073 for file in fs
/block_dev.c
; do
27074 grep -q -E "EXPORT_SYMBOL.*(lookup_bdev)" \
27075 "$LINUX/$file" 2>/dev
/null
27077 if test $rc -eq 0; then
27082 if test $export -eq 0; then :
27092 if test $rc -ne 0; then :
27094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27095 $as_echo "no" >&6; }
27099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27100 $as_echo "yes" >&6; }
27102 $as_echo "#define HAVE_2ARGS_LOOKUP_BDEV 1" >>confdefs.h
27110 if test "x$enable_linux_builtin" != xyes
; then
27112 grep -q -E '[[:space:]]lookup_bdev[[:space:]]' \
27113 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
27115 if test $rc -ne 0; then
27117 for file in fs
/block_dev.c
; do
27118 grep -q -E "EXPORT_SYMBOL.*(lookup_bdev)" \
27119 "$LINUX/$file" 2>/dev
/null
27121 if test $rc -eq 0; then
27126 if test $export -eq 0; then :
27136 if test $rc -ne 0; then :
27138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27139 $as_echo "no" >&6; }
27140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lookup_bdev() wants 2 args" >&5
27141 $as_echo_n "checking whether lookup_bdev() wants 2 args... " >&6; }
27145 cat confdefs.h
- <<_ACEOF >conftest.c
27148 #include <linux/fs.h>
27154 lookup_bdev(NULL, FMODE_READ);
27164 cat - <<_ACEOF >conftest.h
27169 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
27170 echo "obj-m := conftest.o" >build
/Makefile
27172 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
27173 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
27174 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27175 (eval $ac_try) 2>&5
27177 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27178 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
27179 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27180 (eval $ac_try) 2>&5
27182 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27183 test $ac_status = 0; }; }; then :
27186 $as_echo "$as_me: failed program was:" >&5
27187 sed 's/^/| /' conftest.
$ac_ext >&5
27195 if test $rc -ne 0; then :
27197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27198 $as_echo "no" >&6; }
27201 if test "x$enable_linux_builtin" != xyes
; then
27203 grep -q -E '[[:space:]]lookup_bdev[[:space:]]' \
27204 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
27206 if test $rc -ne 0; then
27208 for file in fs
/block_dev.c
; do
27209 grep -q -E "EXPORT_SYMBOL.*(lookup_bdev)" \
27210 "$LINUX/$file" 2>/dev
/null
27212 if test $rc -eq 0; then
27217 if test $export -eq 0; then :
27227 if test $rc -ne 0; then :
27229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27230 $as_echo "no" >&6; }
27234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27235 $as_echo "yes" >&6; }
27237 $as_echo "#define HAVE_2ARGS_LOOKUP_BDEV 1" >>confdefs.h
27246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27247 $as_echo "yes" >&6; }
27249 $as_echo "#define HAVE_1ARG_LOOKUP_BDEV 1" >>confdefs.h
27257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether invalidate_bdev() wants 1 arg" >&5
27258 $as_echo_n "checking whether invalidate_bdev() wants 1 arg... " >&6; }
27261 cat confdefs.h
- <<_ACEOF >conftest.c
27264 #include <linux/buffer_head.h>
27270 struct block_device *bdev = NULL;
27271 invalidate_bdev(bdev);
27281 cat - <<_ACEOF >conftest.h
27286 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
27287 echo "obj-m := conftest.o" >build
/Makefile
27289 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
27290 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
27291 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27292 (eval $ac_try) 2>&5
27294 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27295 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
27296 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27297 (eval $ac_try) 2>&5
27299 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27300 test $ac_status = 0; }; }; then :
27302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27303 $as_echo "yes" >&6; }
27305 $as_echo "#define HAVE_1ARG_INVALIDATE_BDEV 1" >>confdefs.h
27309 $as_echo "$as_me: failed program was:" >&5
27310 sed 's/^/| /' conftest.
$ac_ext >&5
27312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27313 $as_echo "no" >&6; }
27323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether bdev_logical_block_size() is available" >&5
27324 $as_echo_n "checking whether bdev_logical_block_size() is available... " >&6; }
27325 tmp_flags
="$EXTRA_KCFLAGS"
27326 EXTRA_KCFLAGS
="${NO_UNUSED_BUT_SET_VARIABLE}"
27329 cat confdefs.h
- <<_ACEOF >conftest.c
27332 #include <linux/blkdev.h>
27338 struct block_device *bdev = NULL;
27339 bdev_logical_block_size(bdev);
27349 cat - <<_ACEOF >conftest.h
27354 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
27355 echo "obj-m := conftest.o" >build
/Makefile
27357 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
27358 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
27359 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27360 (eval $ac_try) 2>&5
27362 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27363 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
27364 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27365 (eval $ac_try) 2>&5
27367 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27368 test $ac_status = 0; }; }; then :
27370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27371 $as_echo "yes" >&6; }
27373 $as_echo "#define HAVE_BDEV_LOGICAL_BLOCK_SIZE 1" >>confdefs.h
27377 $as_echo "$as_me: failed program was:" >&5
27378 sed 's/^/| /' conftest.
$ac_ext >&5
27380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27381 $as_echo "no" >&6; }
27389 EXTRA_KCFLAGS
="$tmp_flags"
27392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether bdev_physical_block_size() is available" >&5
27393 $as_echo_n "checking whether bdev_physical_block_size() is available... " >&6; }
27394 tmp_flags
="$EXTRA_KCFLAGS"
27395 EXTRA_KCFLAGS
="${NO_UNUSED_BUT_SET_VARIABLE}"
27398 cat confdefs.h
- <<_ACEOF >conftest.c
27401 #include <linux/blkdev.h>
27407 struct block_device *bdev = NULL;
27408 bdev_physical_block_size(bdev);
27418 cat - <<_ACEOF >conftest.h
27423 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
27424 echo "obj-m := conftest.o" >build
/Makefile
27426 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
27427 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
27428 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27429 (eval $ac_try) 2>&5
27431 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27432 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
27433 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27434 (eval $ac_try) 2>&5
27436 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27437 test $ac_status = 0; }; }; then :
27439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27440 $as_echo "yes" >&6; }
27442 $as_echo "#define HAVE_BDEV_PHYSICAL_BLOCK_SIZE 1" >>confdefs.h
27446 $as_echo "$as_me: failed program was:" >&5
27447 sed 's/^/| /' conftest.
$ac_ext >&5
27449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27450 $as_echo "no" >&6; }
27458 EXTRA_KCFLAGS
="$tmp_flags"
27461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether bio has bi_iter" >&5
27462 $as_echo_n "checking whether bio has bi_iter... " >&6; }
27465 cat confdefs.h
- <<_ACEOF >conftest.c
27468 #include <linux/bio.h>
27475 bio.bi_iter.bi_sector = 0;
27485 cat - <<_ACEOF >conftest.h
27490 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
27491 echo "obj-m := conftest.o" >build
/Makefile
27493 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
27494 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
27495 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27496 (eval $ac_try) 2>&5
27498 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27499 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
27500 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27501 (eval $ac_try) 2>&5
27503 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27504 test $ac_status = 0; }; }; then :
27506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27507 $as_echo "yes" >&6; }
27509 $as_echo "#define HAVE_BIO_BVEC_ITER 1" >>confdefs.h
27513 $as_echo "$as_me: failed program was:" >&5
27514 sed 's/^/| /' conftest.
$ac_ext >&5
27516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27517 $as_echo "no" >&6; }
27527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether BIO_RW_FAILFAST_* are defined" >&5
27528 $as_echo_n "checking whether BIO_RW_FAILFAST_* are defined... " >&6; }
27531 cat confdefs.h
- <<_ACEOF >conftest.c
27534 #include <linux/bio.h>
27540 int flags __attribute__ ((unused));
27541 flags = ((1 << BIO_RW_FAILFAST_DEV) |
27542 (1 << BIO_RW_FAILFAST_TRANSPORT) |
27543 (1 << BIO_RW_FAILFAST_DRIVER));
27553 cat - <<_ACEOF >conftest.h
27558 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
27559 echo "obj-m := conftest.o" >build
/Makefile
27561 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
27562 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
27563 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27564 (eval $ac_try) 2>&5
27566 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27567 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
27568 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27569 (eval $ac_try) 2>&5
27571 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27572 test $ac_status = 0; }; }; then :
27574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27575 $as_echo "yes" >&6; }
27577 $as_echo "#define HAVE_BIO_RW_FAILFAST_DTD 1" >>confdefs.h
27581 $as_echo "$as_me: failed program was:" >&5
27582 sed 's/^/| /' conftest.
$ac_ext >&5
27584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27585 $as_echo "no" >&6; }
27595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether REQ_FAILFAST_MASK is defined" >&5
27596 $as_echo_n "checking whether REQ_FAILFAST_MASK is defined... " >&6; }
27599 cat confdefs.h
- <<_ACEOF >conftest.c
27602 #include <linux/bio.h>
27608 int flags __attribute__ ((unused));
27609 flags = REQ_FAILFAST_MASK;
27619 cat - <<_ACEOF >conftest.h
27624 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
27625 echo "obj-m := conftest.o" >build
/Makefile
27627 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
27628 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
27629 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27630 (eval $ac_try) 2>&5
27632 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27633 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
27634 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27635 (eval $ac_try) 2>&5
27637 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27638 test $ac_status = 0; }; }; then :
27640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27641 $as_echo "yes" >&6; }
27643 $as_echo "#define HAVE_REQ_FAILFAST_MASK 1" >>confdefs.h
27647 $as_echo "$as_me: failed program was:" >&5
27648 sed 's/^/| /' conftest.
$ac_ext >&5
27650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27651 $as_echo "no" >&6; }
27661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether REQ_OP_DISCARD is defined" >&5
27662 $as_echo_n "checking whether REQ_OP_DISCARD is defined... " >&6; }
27665 cat confdefs.h
- <<_ACEOF >conftest.c
27668 #include <linux/blk_types.h>
27674 int op __attribute__ ((unused)) = REQ_OP_DISCARD;
27684 cat - <<_ACEOF >conftest.h
27689 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
27690 echo "obj-m := conftest.o" >build
/Makefile
27692 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
27693 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
27694 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27695 (eval $ac_try) 2>&5
27697 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27698 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
27699 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27700 (eval $ac_try) 2>&5
27702 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27703 test $ac_status = 0; }; }; then :
27705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27706 $as_echo "yes" >&6; }
27708 $as_echo "#define HAVE_REQ_OP_DISCARD 1" >>confdefs.h
27712 $as_echo "$as_me: failed program was:" >&5
27713 sed 's/^/| /' conftest.
$ac_ext >&5
27715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27716 $as_echo "no" >&6; }
27726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether REQ_OP_SECURE_ERASE is defined" >&5
27727 $as_echo_n "checking whether REQ_OP_SECURE_ERASE is defined... " >&6; }
27730 cat confdefs.h
- <<_ACEOF >conftest.c
27733 #include <linux/blk_types.h>
27739 int op __attribute__ ((unused)) = REQ_OP_SECURE_ERASE;
27749 cat - <<_ACEOF >conftest.h
27754 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
27755 echo "obj-m := conftest.o" >build
/Makefile
27757 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
27758 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
27759 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27760 (eval $ac_try) 2>&5
27762 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27763 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
27764 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27765 (eval $ac_try) 2>&5
27767 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27768 test $ac_status = 0; }; }; then :
27770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27771 $as_echo "yes" >&6; }
27773 $as_echo "#define HAVE_REQ_OP_SECURE_ERASE 1" >>confdefs.h
27777 $as_echo "$as_me: failed program was:" >&5
27778 sed 's/^/| /' conftest.
$ac_ext >&5
27780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27781 $as_echo "no" >&6; }
27791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether REQ_OP_FLUSH is defined" >&5
27792 $as_echo_n "checking whether REQ_OP_FLUSH is defined... " >&6; }
27795 cat confdefs.h
- <<_ACEOF >conftest.c
27798 #include <linux/blk_types.h>
27804 int op __attribute__ ((unused)) = REQ_OP_FLUSH;
27814 cat - <<_ACEOF >conftest.h
27819 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
27820 echo "obj-m := conftest.o" >build
/Makefile
27822 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
27823 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
27824 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27825 (eval $ac_try) 2>&5
27827 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27828 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
27829 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27830 (eval $ac_try) 2>&5
27832 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27833 test $ac_status = 0; }; }; then :
27835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27836 $as_echo "yes" >&6; }
27838 $as_echo "#define HAVE_REQ_OP_FLUSH 1" >>confdefs.h
27842 $as_echo "$as_me: failed program was:" >&5
27843 sed 's/^/| /' conftest.
$ac_ext >&5
27845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27846 $as_echo "no" >&6; }
27856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether bio->bi_opf is defined" >&5
27857 $as_echo_n "checking whether bio->bi_opf is defined... " >&6; }
27860 cat confdefs.h
- <<_ACEOF >conftest.c
27863 #include <linux/bio.h>
27869 struct bio bio __attribute__ ((unused));
27880 cat - <<_ACEOF >conftest.h
27885 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
27886 echo "obj-m := conftest.o" >build
/Makefile
27888 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
27889 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
27890 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27891 (eval $ac_try) 2>&5
27893 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27894 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
27895 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27896 (eval $ac_try) 2>&5
27898 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27899 test $ac_status = 0; }; }; then :
27901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27902 $as_echo "yes" >&6; }
27904 $as_echo "#define HAVE_BIO_BI_OPF 1" >>confdefs.h
27908 $as_echo "$as_me: failed program was:" >&5
27909 sed 's/^/| /' conftest.
$ac_ext >&5
27911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27912 $as_echo "no" >&6; }
27922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether bio_end_io_t wants 1 arg" >&5
27923 $as_echo_n "checking whether bio_end_io_t wants 1 arg... " >&6; }
27926 cat confdefs.h
- <<_ACEOF >conftest.c
27929 #include <linux/bio.h>
27931 void wanted_end_io(struct bio *bio) { return; }
27933 bio_end_io_t *end_io __attribute__ ((unused)) = wanted_end_io;
27948 cat - <<_ACEOF >conftest.h
27953 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
27954 echo "obj-m := conftest.o" >build
/Makefile
27956 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
27957 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
27958 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27959 (eval $ac_try) 2>&5
27961 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27962 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
27963 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27964 (eval $ac_try) 2>&5
27966 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27967 test $ac_status = 0; }; }; then :
27969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27970 $as_echo "yes" >&6; }
27972 $as_echo "#define HAVE_1ARG_BIO_END_IO_T 1" >>confdefs.h
27976 $as_echo "$as_me: failed program was:" >&5
27977 sed 's/^/| /' conftest.
$ac_ext >&5
27979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27980 $as_echo "no" >&6; }
27990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether bio->bi_status exists" >&5
27991 $as_echo_n "checking whether bio->bi_status exists... " >&6; }
27994 cat confdefs.h
- <<_ACEOF >conftest.c
27997 #include <linux/bio.h>
28003 struct bio bio __attribute__ ((unused));
28004 blk_status_t status __attribute__ ((unused)) = BLK_STS_OK;
28006 bio.bi_status = status;
28016 cat - <<_ACEOF >conftest.h
28021 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
28022 echo "obj-m := conftest.o" >build
/Makefile
28024 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
28025 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
28026 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28027 (eval $ac_try) 2>&5
28029 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28030 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
28031 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28032 (eval $ac_try) 2>&5
28034 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28035 test $ac_status = 0; }; }; then :
28037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28038 $as_echo "yes" >&6; }
28040 $as_echo "#define HAVE_BIO_BI_STATUS 1" >>confdefs.h
28044 $as_echo "$as_me: failed program was:" >&5
28045 sed 's/^/| /' conftest.
$ac_ext >&5
28047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28048 $as_echo "no" >&6; }
28058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether BIO_RW_BARRIER is defined" >&5
28059 $as_echo_n "checking whether BIO_RW_BARRIER is defined... " >&6; }
28062 cat confdefs.h
- <<_ACEOF >conftest.c
28065 #include <linux/bio.h>
28071 int flags __attribute__ ((unused));
28072 flags = BIO_RW_BARRIER;
28082 cat - <<_ACEOF >conftest.h
28087 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
28088 echo "obj-m := conftest.o" >build
/Makefile
28090 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
28091 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
28092 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28093 (eval $ac_try) 2>&5
28095 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28096 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
28097 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28098 (eval $ac_try) 2>&5
28100 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28101 test $ac_status = 0; }; }; then :
28103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28104 $as_echo "yes" >&6; }
28106 $as_echo "#define HAVE_BIO_RW_BARRIER 1" >>confdefs.h
28110 $as_echo "$as_me: failed program was:" >&5
28111 sed 's/^/| /' conftest.
$ac_ext >&5
28113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28114 $as_echo "no" >&6; }
28124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether BIO_RW_DISCARD is defined" >&5
28125 $as_echo_n "checking whether BIO_RW_DISCARD is defined... " >&6; }
28128 cat confdefs.h
- <<_ACEOF >conftest.c
28131 #include <linux/bio.h>
28137 int flags __attribute__ ((unused));
28138 flags = BIO_RW_DISCARD;
28148 cat - <<_ACEOF >conftest.h
28153 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
28154 echo "obj-m := conftest.o" >build
/Makefile
28156 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
28157 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
28158 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28159 (eval $ac_try) 2>&5
28161 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28162 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
28163 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28164 (eval $ac_try) 2>&5
28166 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28167 test $ac_status = 0; }; }; then :
28169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28170 $as_echo "yes" >&6; }
28172 $as_echo "#define HAVE_BIO_RW_DISCARD 1" >>confdefs.h
28176 $as_echo "$as_me: failed program was:" >&5
28177 sed 's/^/| /' conftest.
$ac_ext >&5
28179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28180 $as_echo "no" >&6; }
28190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether blk_queue_flush() is available" >&5
28191 $as_echo_n "checking whether blk_queue_flush() is available... " >&6; }
28192 tmp_flags
="$EXTRA_KCFLAGS"
28193 EXTRA_KCFLAGS
="${NO_UNUSED_BUT_SET_VARIABLE}"
28196 cat confdefs.h
- <<_ACEOF >conftest.c
28199 #include <linux/blkdev.h>
28205 struct request_queue *q = NULL;
28206 (void) blk_queue_flush(q, REQ_FLUSH);
28216 cat - <<_ACEOF >conftest.h
28221 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
28222 echo "obj-m := conftest.o" >build
/Makefile
28224 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
28225 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
28226 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28227 (eval $ac_try) 2>&5
28229 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28230 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
28231 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28232 (eval $ac_try) 2>&5
28234 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28235 test $ac_status = 0; }; }; then :
28237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28238 $as_echo "yes" >&6; }
28240 $as_echo "#define HAVE_BLK_QUEUE_FLUSH 1" >>confdefs.h
28243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether blk_queue_flush() is GPL-only" >&5
28244 $as_echo_n "checking whether blk_queue_flush() is GPL-only... " >&6; }
28247 cat confdefs.h
- <<_ACEOF >conftest.c
28250 #include <linux/module.h>
28251 #include <linux/blkdev.h>
28253 MODULE_LICENSE("$ZFS_META_LICENSE");
28259 struct request_queue *q = NULL;
28260 (void) blk_queue_flush(q, REQ_FLUSH);
28270 cat - <<_ACEOF >conftest.h
28275 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
28276 echo "obj-m := conftest.o" >build
/Makefile
28278 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
28279 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
28280 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28281 (eval $ac_try) 2>&5
28283 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28284 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
28285 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28286 (eval $ac_try) 2>&5
28288 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28289 test $ac_status = 0; }; }; then :
28291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28292 $as_echo "no" >&6; }
28295 $as_echo "$as_me: failed program was:" >&5
28296 sed 's/^/| /' conftest.
$ac_ext >&5
28298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28299 $as_echo "yes" >&6; }
28301 $as_echo "#define HAVE_BLK_QUEUE_FLUSH_GPL_ONLY 1" >>confdefs.h
28312 $as_echo "$as_me: failed program was:" >&5
28313 sed 's/^/| /' conftest.
$ac_ext >&5
28315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28316 $as_echo "no" >&6; }
28325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether blk_queue_write_cache() exists" >&5
28326 $as_echo_n "checking whether blk_queue_write_cache() exists... " >&6; }
28329 cat confdefs.h
- <<_ACEOF >conftest.c
28332 #include <linux/kernel.h>
28333 #include <linux/blkdev.h>
28340 struct request_queue *q = NULL;
28341 blk_queue_write_cache(q, true, true);
28351 cat - <<_ACEOF >conftest.h
28356 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
28357 echo "obj-m := conftest.o" >build
/Makefile
28359 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
28360 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
28361 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28362 (eval $ac_try) 2>&5
28364 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28365 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
28366 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28367 (eval $ac_try) 2>&5
28369 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28370 test $ac_status = 0; }; }; then :
28372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28373 $as_echo "yes" >&6; }
28375 $as_echo "#define HAVE_BLK_QUEUE_WRITE_CACHE 1" >>confdefs.h
28378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether blk_queue_write_cache() is GPL-only" >&5
28379 $as_echo_n "checking whether blk_queue_write_cache() is GPL-only... " >&6; }
28382 cat confdefs.h
- <<_ACEOF >conftest.c
28385 #include <linux/kernel.h>
28386 #include <linux/module.h>
28387 #include <linux/blkdev.h>
28389 MODULE_LICENSE("$ZFS_META_LICENSE");
28395 struct request_queue *q = NULL;
28396 blk_queue_write_cache(q, true, true);
28406 cat - <<_ACEOF >conftest.h
28411 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
28412 echo "obj-m := conftest.o" >build
/Makefile
28414 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
28415 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
28416 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28417 (eval $ac_try) 2>&5
28419 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28420 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
28421 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28422 (eval $ac_try) 2>&5
28424 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28425 test $ac_status = 0; }; }; then :
28427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28428 $as_echo "no" >&6; }
28431 $as_echo "$as_me: failed program was:" >&5
28432 sed 's/^/| /' conftest.
$ac_ext >&5
28434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28435 $as_echo "yes" >&6; }
28437 $as_echo "#define HAVE_BLK_QUEUE_WRITE_CACHE_GPL_ONLY 1" >>confdefs.h
28448 $as_echo "$as_me: failed program was:" >&5
28449 sed 's/^/| /' conftest.
$ac_ext >&5
28451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28452 $as_echo "no" >&6; }
28461 EXTRA_KCFLAGS
="$tmp_flags"
28464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether blk_queue_max_hw_sectors() is available" >&5
28465 $as_echo_n "checking whether blk_queue_max_hw_sectors() is available... " >&6; }
28466 tmp_flags
="$EXTRA_KCFLAGS"
28467 EXTRA_KCFLAGS
="${NO_UNUSED_BUT_SET_VARIABLE}"
28470 cat confdefs.h
- <<_ACEOF >conftest.c
28473 #include <linux/blkdev.h>
28479 struct request_queue *q = NULL;
28480 (void) blk_queue_max_hw_sectors(q, BLK_SAFE_MAX_SECTORS);
28490 cat - <<_ACEOF >conftest.h
28495 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
28496 echo "obj-m := conftest.o" >build
/Makefile
28498 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
28499 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
28500 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28501 (eval $ac_try) 2>&5
28503 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28504 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
28505 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28506 (eval $ac_try) 2>&5
28508 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28509 test $ac_status = 0; }; }; then :
28511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28512 $as_echo "yes" >&6; }
28514 $as_echo "#define HAVE_BLK_QUEUE_MAX_HW_SECTORS 1" >>confdefs.h
28518 $as_echo "$as_me: failed program was:" >&5
28519 sed 's/^/| /' conftest.
$ac_ext >&5
28521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28522 $as_echo "no" >&6; }
28530 EXTRA_KCFLAGS
="$tmp_flags"
28533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether blk_queue_max_segments() is available" >&5
28534 $as_echo_n "checking whether blk_queue_max_segments() is available... " >&6; }
28535 tmp_flags
="$EXTRA_KCFLAGS"
28536 EXTRA_KCFLAGS
="${NO_UNUSED_BUT_SET_VARIABLE}"
28539 cat confdefs.h
- <<_ACEOF >conftest.c
28542 #include <linux/blkdev.h>
28548 struct request_queue *q = NULL;
28549 (void) blk_queue_max_segments(q, BLK_MAX_SEGMENTS);
28559 cat - <<_ACEOF >conftest.h
28564 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
28565 echo "obj-m := conftest.o" >build
/Makefile
28567 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
28568 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
28569 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28570 (eval $ac_try) 2>&5
28572 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28573 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
28574 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28575 (eval $ac_try) 2>&5
28577 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28578 test $ac_status = 0; }; }; then :
28580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28581 $as_echo "yes" >&6; }
28583 $as_echo "#define HAVE_BLK_QUEUE_MAX_SEGMENTS 1" >>confdefs.h
28587 $as_echo "$as_me: failed program was:" >&5
28588 sed 's/^/| /' conftest.
$ac_ext >&5
28590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28591 $as_echo "no" >&6; }
28599 EXTRA_KCFLAGS
="$tmp_flags"
28602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the BIO_RW_UNPLUG enum is available" >&5
28603 $as_echo_n "checking whether the BIO_RW_UNPLUG enum is available... " >&6; }
28604 tmp_flags
="$EXTRA_KCFLAGS"
28605 EXTRA_KCFLAGS
="${NO_UNUSED_BUT_SET_VARIABLE}"
28608 cat confdefs.h
- <<_ACEOF >conftest.c
28611 #include <linux/blkdev.h>
28617 extern enum bio_rw_flags rw;
28619 rw = BIO_RW_UNPLUG;
28629 cat - <<_ACEOF >conftest.h
28634 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
28635 echo "obj-m := conftest.o" >build
/Makefile
28637 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
28638 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
28639 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28640 (eval $ac_try) 2>&5
28642 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28643 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
28644 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28645 (eval $ac_try) 2>&5
28647 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28648 test $ac_status = 0; }; }; then :
28650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28651 $as_echo "yes" >&6; }
28653 $as_echo "#define HAVE_BLK_QUEUE_HAVE_BIO_RW_UNPLUG 1" >>confdefs.h
28657 $as_echo "$as_me: failed program was:" >&5
28658 sed 's/^/| /' conftest.
$ac_ext >&5
28660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28661 $as_echo "no" >&6; }
28669 EXTRA_KCFLAGS
="$tmp_flags"
28672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct blk_plug is available" >&5
28673 $as_echo_n "checking whether struct blk_plug is available... " >&6; }
28674 tmp_flags
="$EXTRA_KCFLAGS"
28675 EXTRA_KCFLAGS
="${NO_UNUSED_BUT_SET_VARIABLE}"
28678 cat confdefs.h
- <<_ACEOF >conftest.c
28681 #include <linux/blkdev.h>
28687 struct blk_plug plug;
28689 blk_start_plug(&plug);
28690 blk_finish_plug(&plug);
28700 cat - <<_ACEOF >conftest.h
28705 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
28706 echo "obj-m := conftest.o" >build
/Makefile
28708 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
28709 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
28710 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28711 (eval $ac_try) 2>&5
28713 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28714 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
28715 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28716 (eval $ac_try) 2>&5
28718 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28719 test $ac_status = 0; }; }; then :
28721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28722 $as_echo "yes" >&6; }
28724 $as_echo "#define HAVE_BLK_QUEUE_HAVE_BLK_PLUG 1" >>confdefs.h
28728 $as_echo "$as_me: failed program was:" >&5
28729 sed 's/^/| /' conftest.
$ac_ext >&5
28731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28732 $as_echo "no" >&6; }
28740 EXTRA_KCFLAGS
="$tmp_flags"
28743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether get_disk_ro() is available" >&5
28744 $as_echo_n "checking whether get_disk_ro() is available... " >&6; }
28745 tmp_flags
="$EXTRA_KCFLAGS"
28746 EXTRA_KCFLAGS
="${NO_UNUSED_BUT_SET_VARIABLE}"
28749 cat confdefs.h
- <<_ACEOF >conftest.c
28752 #include <linux/blkdev.h>
28758 struct gendisk *disk = NULL;
28759 (void) get_disk_ro(disk);
28769 cat - <<_ACEOF >conftest.h
28774 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
28775 echo "obj-m := conftest.o" >build
/Makefile
28777 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
28778 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
28779 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28780 (eval $ac_try) 2>&5
28782 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28783 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
28784 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28785 (eval $ac_try) 2>&5
28787 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28788 test $ac_status = 0; }; }; then :
28790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28791 $as_echo "yes" >&6; }
28793 $as_echo "#define HAVE_GET_DISK_RO 1" >>confdefs.h
28797 $as_echo "$as_me: failed program was:" >&5
28798 sed 's/^/| /' conftest.
$ac_ext >&5
28800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28801 $as_echo "no" >&6; }
28809 EXTRA_KCFLAGS
="$tmp_flags"
28811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether get_gendisk() is available" >&5
28812 $as_echo_n "checking whether get_gendisk() is available... " >&6; }
28816 cat confdefs.h
- <<_ACEOF >conftest.c
28819 #include <linux/genhd.h>
28825 get_gendisk(0, NULL);
28835 cat - <<_ACEOF >conftest.h
28840 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
28841 echo "obj-m := conftest.o" >build
/Makefile
28843 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
28844 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
28845 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28846 (eval $ac_try) 2>&5
28848 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28849 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
28850 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28851 (eval $ac_try) 2>&5
28853 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28854 test $ac_status = 0; }; }; then :
28857 $as_echo "$as_me: failed program was:" >&5
28858 sed 's/^/| /' conftest.
$ac_ext >&5
28866 if test $rc -ne 0; then :
28868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28869 $as_echo "no" >&6; }
28872 if test "x$enable_linux_builtin" != xyes
; then
28874 grep -q -E '[[:space:]]get_gendisk[[:space:]]' \
28875 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
28877 if test $rc -ne 0; then
28879 for file in block
/genhd.c
; do
28880 grep -q -E "EXPORT_SYMBOL.*(get_gendisk)" \
28881 "$LINUX/$file" 2>/dev
/null
28883 if test $rc -eq 0; then
28888 if test $export -eq 0; then :
28898 if test $rc -ne 0; then :
28900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28901 $as_echo "no" >&6; }
28905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28906 $as_echo "yes" >&6; }
28908 $as_echo "#define HAVE_GET_GENDISK 1" >>confdefs.h
28916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether bio_set_op_attrs is available" >&5
28917 $as_echo_n "checking whether bio_set_op_attrs is available... " >&6; }
28920 cat confdefs.h
- <<_ACEOF >conftest.c
28923 #include <linux/bio.h>
28929 struct bio *bio __attribute__ ((unused)) = NULL;
28931 bio_set_op_attrs(bio, 0, 0);
28941 cat - <<_ACEOF >conftest.h
28946 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
28947 echo "obj-m := conftest.o" >build
/Makefile
28949 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
28950 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
28951 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28952 (eval $ac_try) 2>&5
28954 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28955 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
28956 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28957 (eval $ac_try) 2>&5
28959 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28960 test $ac_status = 0; }; }; then :
28962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28963 $as_echo "yes" >&6; }
28965 $as_echo "#define HAVE_BIO_SET_OP_ATTRS 1" >>confdefs.h
28969 $as_echo "$as_me: failed program was:" >&5
28970 sed 's/^/| /' conftest.
$ac_ext >&5
28972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28973 $as_echo "no" >&6; }
28983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether generic_readlink is global" >&5
28984 $as_echo_n "checking whether generic_readlink is global... " >&6; }
28987 cat confdefs.h
- <<_ACEOF >conftest.c
28990 #include <linux/fs.h>
28996 int i __attribute__ ((unused));
28998 i = generic_readlink(NULL, NULL, 0);
29008 cat - <<_ACEOF >conftest.h
29013 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
29014 echo "obj-m := conftest.o" >build
/Makefile
29016 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
29017 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
29018 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29019 (eval $ac_try) 2>&5
29021 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29022 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
29023 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29024 (eval $ac_try) 2>&5
29026 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29027 test $ac_status = 0; }; }; then :
29029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29030 $as_echo "yes" >&6; }
29032 $as_echo "#define HAVE_GENERIC_READLINK 1" >>confdefs.h
29036 $as_echo "$as_me: failed program was:" >&5
29037 sed 's/^/| /' conftest.
$ac_ext >&5
29039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29040 $as_echo "no" >&6; }
29050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ql->discard_granularity is available" >&5
29051 $as_echo_n "checking whether ql->discard_granularity is available... " >&6; }
29054 cat confdefs.h
- <<_ACEOF >conftest.c
29057 #include <linux/blkdev.h>
29063 struct queue_limits ql __attribute__ ((unused));
29065 ql.discard_granularity = 0;
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_DISCARD_GRANULARITY 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; }
29117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether super_block uses const struct xattr_handler" >&5
29118 $as_echo_n "checking whether super_block uses const struct xattr_handler... " >&6; }
29121 cat confdefs.h
- <<_ACEOF >conftest.c
29124 #include <linux/fs.h>
29125 #include <linux/xattr.h>
29127 const struct xattr_handler xattr_test_handler = {
29133 const struct xattr_handler *xattr_handlers[] = {
29134 &xattr_test_handler,
29137 const struct super_block sb __attribute__ ((unused)) = {
29138 .s_xattr = xattr_handlers,
29154 cat - <<_ACEOF >conftest.h
29159 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
29160 echo "obj-m := conftest.o" >build
/Makefile
29162 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
29163 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
29164 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29165 (eval $ac_try) 2>&5
29167 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29168 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
29169 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29170 (eval $ac_try) 2>&5
29172 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29173 test $ac_status = 0; }; }; then :
29175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29176 $as_echo "yes" >&6; }
29178 $as_echo "#define HAVE_CONST_XATTR_HANDLER 1" >>confdefs.h
29182 $as_echo "$as_me: failed program was:" >&5
29183 sed 's/^/| /' conftest.
$ac_ext >&5
29185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29186 $as_echo "no" >&6; }
29196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether xattr_handler has name" >&5
29197 $as_echo_n "checking whether xattr_handler has name... " >&6; }
29200 cat confdefs.h
- <<_ACEOF >conftest.c
29203 #include <linux/xattr.h>
29205 static const struct xattr_handler
29206 xops __attribute__ ((unused)) = {
29207 .name = XATTR_NAME_POSIX_ACL_ACCESS,
29223 cat - <<_ACEOF >conftest.h
29228 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
29229 echo "obj-m := conftest.o" >build
/Makefile
29231 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
29232 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
29233 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29234 (eval $ac_try) 2>&5
29236 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29237 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
29238 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29239 (eval $ac_try) 2>&5
29241 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29242 test $ac_status = 0; }; }; then :
29244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29245 $as_echo "yes" >&6; }
29247 $as_echo "#define HAVE_XATTR_HANDLER_NAME 1" >>confdefs.h
29251 $as_echo "$as_me: failed program was:" >&5
29252 sed 's/^/| /' conftest.
$ac_ext >&5
29254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29255 $as_echo "no" >&6; }
29265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether xattr_handler->get() wants both dentry and inode" >&5
29266 $as_echo_n "checking whether xattr_handler->get() wants both dentry and inode... " >&6; }
29269 cat confdefs.h
- <<_ACEOF >conftest.c
29272 #include <linux/xattr.h>
29274 int get(const struct xattr_handler *handler,
29275 struct dentry *dentry, struct inode *inode,
29276 const char *name, void *buffer, size_t size) { return 0; }
29277 static const struct xattr_handler
29278 xops __attribute__ ((unused)) = {
29295 cat - <<_ACEOF >conftest.h
29300 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
29301 echo "obj-m := conftest.o" >build
/Makefile
29303 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
29304 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
29305 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29306 (eval $ac_try) 2>&5
29308 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29309 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
29310 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29311 (eval $ac_try) 2>&5
29313 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29314 test $ac_status = 0; }; }; then :
29316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29317 $as_echo "yes" >&6; }
29319 $as_echo "#define HAVE_XATTR_GET_DENTRY_INODE 1" >>confdefs.h
29323 $as_echo "$as_me: failed program was:" >&5
29324 sed 's/^/| /' conftest.
$ac_ext >&5
29326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether xattr_handler->get() wants xattr_handler" >&5
29327 $as_echo_n "checking whether xattr_handler->get() wants xattr_handler... " >&6; }
29330 cat confdefs.h
- <<_ACEOF >conftest.c
29333 #include <linux/xattr.h>
29335 int get(const struct xattr_handler *handler,
29336 struct dentry *dentry, const char *name,
29337 void *buffer, size_t size) { return 0; }
29338 static const struct xattr_handler
29339 xops __attribute__ ((unused)) = {
29356 cat - <<_ACEOF >conftest.h
29361 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
29362 echo "obj-m := conftest.o" >build
/Makefile
29364 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
29365 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
29366 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29367 (eval $ac_try) 2>&5
29369 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29370 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
29371 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29372 (eval $ac_try) 2>&5
29374 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29375 test $ac_status = 0; }; }; then :
29377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29378 $as_echo "yes" >&6; }
29380 $as_echo "#define HAVE_XATTR_GET_HANDLER 1" >>confdefs.h
29384 $as_echo "$as_me: failed program was:" >&5
29385 sed 's/^/| /' conftest.
$ac_ext >&5
29387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29388 $as_echo "no" >&6; }
29389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether xattr_handler->get() wants dentry" >&5
29390 $as_echo_n "checking whether xattr_handler->get() wants dentry... " >&6; }
29393 cat confdefs.h
- <<_ACEOF >conftest.c
29396 #include <linux/xattr.h>
29398 int get(struct dentry *dentry, const char *name,
29399 void *buffer, size_t size, int handler_flags)
29401 static const struct xattr_handler
29402 xops __attribute__ ((unused)) = {
29419 cat - <<_ACEOF >conftest.h
29424 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
29425 echo "obj-m := conftest.o" >build
/Makefile
29427 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
29428 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
29429 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29430 (eval $ac_try) 2>&5
29432 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29433 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
29434 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29435 (eval $ac_try) 2>&5
29437 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29438 test $ac_status = 0; }; }; then :
29440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29441 $as_echo "yes" >&6; }
29443 $as_echo "#define HAVE_XATTR_GET_DENTRY 1" >>confdefs.h
29447 $as_echo "$as_me: failed program was:" >&5
29448 sed 's/^/| /' conftest.
$ac_ext >&5
29450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29451 $as_echo "no" >&6; }
29452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether xattr_handler->get() wants inode" >&5
29453 $as_echo_n "checking whether xattr_handler->get() wants inode... " >&6; }
29456 cat confdefs.h
- <<_ACEOF >conftest.c
29459 #include <linux/xattr.h>
29461 int get(struct inode *ip, const char *name,
29462 void *buffer, size_t size) { return 0; }
29463 static const struct xattr_handler
29464 xops __attribute__ ((unused)) = {
29481 cat - <<_ACEOF >conftest.h
29486 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
29487 echo "obj-m := conftest.o" >build
/Makefile
29489 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
29490 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
29491 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29492 (eval $ac_try) 2>&5
29494 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29495 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
29496 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29497 (eval $ac_try) 2>&5
29499 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29500 test $ac_status = 0; }; }; then :
29502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29503 $as_echo "yes" >&6; }
29505 $as_echo "#define HAVE_XATTR_GET_INODE 1" >>confdefs.h
29509 $as_echo "$as_me: failed program was:" >&5
29510 sed 's/^/| /' conftest.
$ac_ext >&5
29512 as_fn_error $?
"no; please file a bug report" "$LINENO" 5
29543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether xattr_handler->set() wants both dentry and inode" >&5
29544 $as_echo_n "checking whether xattr_handler->set() wants both dentry and inode... " >&6; }
29547 cat confdefs.h
- <<_ACEOF >conftest.c
29550 #include <linux/xattr.h>
29552 int set(const struct xattr_handler *handler,
29553 struct dentry *dentry, struct inode *inode,
29554 const char *name, const void *buffer,
29555 size_t size, int flags)
29557 static const struct xattr_handler
29558 xops __attribute__ ((unused)) = {
29575 cat - <<_ACEOF >conftest.h
29580 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
29581 echo "obj-m := conftest.o" >build
/Makefile
29583 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
29584 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
29585 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29586 (eval $ac_try) 2>&5
29588 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29589 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
29590 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29591 (eval $ac_try) 2>&5
29593 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29594 test $ac_status = 0; }; }; then :
29596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29597 $as_echo "yes" >&6; }
29599 $as_echo "#define HAVE_XATTR_SET_DENTRY_INODE 1" >>confdefs.h
29603 $as_echo "$as_me: failed program was:" >&5
29604 sed 's/^/| /' conftest.
$ac_ext >&5
29606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether xattr_handler->set() wants xattr_handler" >&5
29607 $as_echo_n "checking whether xattr_handler->set() wants xattr_handler... " >&6; }
29610 cat confdefs.h
- <<_ACEOF >conftest.c
29613 #include <linux/xattr.h>
29615 int set(const struct xattr_handler *handler,
29616 struct dentry *dentry, const char *name,
29617 const void *buffer, size_t size, int flags)
29619 static const struct xattr_handler
29620 xops __attribute__ ((unused)) = {
29637 cat - <<_ACEOF >conftest.h
29642 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
29643 echo "obj-m := conftest.o" >build
/Makefile
29645 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
29646 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
29647 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29648 (eval $ac_try) 2>&5
29650 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29651 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
29652 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29653 (eval $ac_try) 2>&5
29655 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29656 test $ac_status = 0; }; }; then :
29658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29659 $as_echo "yes" >&6; }
29661 $as_echo "#define HAVE_XATTR_SET_HANDLER 1" >>confdefs.h
29665 $as_echo "$as_me: failed program was:" >&5
29666 sed 's/^/| /' conftest.
$ac_ext >&5
29668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29669 $as_echo "no" >&6; }
29670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether xattr_handler->set() wants dentry" >&5
29671 $as_echo_n "checking whether xattr_handler->set() wants dentry... " >&6; }
29674 cat confdefs.h
- <<_ACEOF >conftest.c
29677 #include <linux/xattr.h>
29679 int set(struct dentry *dentry, const char *name,
29680 const void *buffer, size_t size, int flags,
29681 int handler_flags) { return 0; }
29682 static const struct xattr_handler
29683 xops __attribute__ ((unused)) = {
29700 cat - <<_ACEOF >conftest.h
29705 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
29706 echo "obj-m := conftest.o" >build
/Makefile
29708 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
29709 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
29710 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29711 (eval $ac_try) 2>&5
29713 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29714 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
29715 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29716 (eval $ac_try) 2>&5
29718 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29719 test $ac_status = 0; }; }; then :
29721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29722 $as_echo "yes" >&6; }
29724 $as_echo "#define HAVE_XATTR_SET_DENTRY 1" >>confdefs.h
29728 $as_echo "$as_me: failed program was:" >&5
29729 sed 's/^/| /' conftest.
$ac_ext >&5
29731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29732 $as_echo "no" >&6; }
29733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether xattr_handler->set() wants inode" >&5
29734 $as_echo_n "checking whether xattr_handler->set() wants inode... " >&6; }
29737 cat confdefs.h
- <<_ACEOF >conftest.c
29740 #include <linux/xattr.h>
29742 int set(struct inode *ip, const char *name,
29743 const void *buffer, size_t size, int flags)
29745 static const struct xattr_handler
29746 xops __attribute__ ((unused)) = {
29763 cat - <<_ACEOF >conftest.h
29768 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
29769 echo "obj-m := conftest.o" >build
/Makefile
29771 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
29772 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
29773 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29774 (eval $ac_try) 2>&5
29776 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29777 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
29778 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29779 (eval $ac_try) 2>&5
29781 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29782 test $ac_status = 0; }; }; then :
29784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29785 $as_echo "yes" >&6; }
29787 $as_echo "#define HAVE_XATTR_SET_INODE 1" >>confdefs.h
29791 $as_echo "$as_me: failed program was:" >&5
29792 sed 's/^/| /' conftest.
$ac_ext >&5
29794 as_fn_error $?
"no; please file a bug report" "$LINENO" 5
29825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether xattr_handler->list() wants simple" >&5
29826 $as_echo_n "checking whether xattr_handler->list() wants simple... " >&6; }
29829 cat confdefs.h
- <<_ACEOF >conftest.c
29832 #include <linux/xattr.h>
29834 bool list(struct dentry *dentry) { return 0; }
29835 static const struct xattr_handler
29836 xops __attribute__ ((unused)) = {
29853 cat - <<_ACEOF >conftest.h
29858 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
29859 echo "obj-m := conftest.o" >build
/Makefile
29861 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
29862 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
29863 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29864 (eval $ac_try) 2>&5
29866 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29867 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
29868 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29869 (eval $ac_try) 2>&5
29871 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29872 test $ac_status = 0; }; }; then :
29874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29875 $as_echo "yes" >&6; }
29877 $as_echo "#define HAVE_XATTR_LIST_SIMPLE 1" >>confdefs.h
29881 $as_echo "$as_me: failed program was:" >&5
29882 sed 's/^/| /' conftest.
$ac_ext >&5
29884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29885 $as_echo "no" >&6; }
29886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether xattr_handler->list() wants xattr_handler" >&5
29887 $as_echo_n "checking whether xattr_handler->list() wants xattr_handler... " >&6; }
29890 cat confdefs.h
- <<_ACEOF >conftest.c
29893 #include <linux/xattr.h>
29895 size_t list(const struct xattr_handler *handler,
29896 struct dentry *dentry, char *list, size_t list_size,
29897 const char *name, size_t name_len) { return 0; }
29898 static const struct xattr_handler
29899 xops __attribute__ ((unused)) = {
29916 cat - <<_ACEOF >conftest.h
29921 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
29922 echo "obj-m := conftest.o" >build
/Makefile
29924 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
29925 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
29926 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29927 (eval $ac_try) 2>&5
29929 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29930 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
29931 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29932 (eval $ac_try) 2>&5
29934 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29935 test $ac_status = 0; }; }; then :
29937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29938 $as_echo "yes" >&6; }
29940 $as_echo "#define HAVE_XATTR_LIST_HANDLER 1" >>confdefs.h
29944 $as_echo "$as_me: failed program was:" >&5
29945 sed 's/^/| /' conftest.
$ac_ext >&5
29947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29948 $as_echo "no" >&6; }
29949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether xattr_handler->list() wants dentry" >&5
29950 $as_echo_n "checking whether xattr_handler->list() wants dentry... " >&6; }
29953 cat confdefs.h
- <<_ACEOF >conftest.c
29956 #include <linux/xattr.h>
29958 size_t list(struct dentry *dentry,
29959 char *list, size_t list_size,
29960 const char *name, size_t name_len,
29961 int handler_flags) { return 0; }
29962 static const struct xattr_handler
29963 xops __attribute__ ((unused)) = {
29980 cat - <<_ACEOF >conftest.h
29985 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
29986 echo "obj-m := conftest.o" >build
/Makefile
29988 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
29989 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
29990 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29991 (eval $ac_try) 2>&5
29993 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29994 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
29995 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29996 (eval $ac_try) 2>&5
29998 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29999 test $ac_status = 0; }; }; then :
30001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30002 $as_echo "yes" >&6; }
30004 $as_echo "#define HAVE_XATTR_LIST_DENTRY 1" >>confdefs.h
30008 $as_echo "$as_me: failed program was:" >&5
30009 sed 's/^/| /' conftest.
$ac_ext >&5
30011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30012 $as_echo "no" >&6; }
30013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether xattr_handler->list() wants inode" >&5
30014 $as_echo_n "checking whether xattr_handler->list() wants inode... " >&6; }
30017 cat confdefs.h
- <<_ACEOF >conftest.c
30020 #include <linux/xattr.h>
30022 size_t list(struct inode *ip, char *lst,
30023 size_t list_size, const char *name,
30024 size_t name_len) { return 0; }
30025 static const struct xattr_handler
30026 xops __attribute__ ((unused)) = {
30043 cat - <<_ACEOF >conftest.h
30048 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
30049 echo "obj-m := conftest.o" >build
/Makefile
30051 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
30052 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
30053 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30054 (eval $ac_try) 2>&5
30056 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30057 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
30058 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30059 (eval $ac_try) 2>&5
30061 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30062 test $ac_status = 0; }; }; then :
30064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30065 $as_echo "yes" >&6; }
30067 $as_echo "#define HAVE_XATTR_LIST_INODE 1" >>confdefs.h
30071 $as_echo "$as_me: failed program was:" >&5
30072 sed 's/^/| /' conftest.
$ac_ext >&5
30074 as_fn_error $?
"no; please file a bug report" "$LINENO" 5
30105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether inode_owner_or_capable() exists" >&5
30106 $as_echo_n "checking whether inode_owner_or_capable() exists... " >&6; }
30109 cat confdefs.h
- <<_ACEOF >conftest.c
30112 #include <linux/fs.h>
30118 struct inode *ip = NULL;
30119 (void) inode_owner_or_capable(ip);
30129 cat - <<_ACEOF >conftest.h
30134 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
30135 echo "obj-m := conftest.o" >build
/Makefile
30137 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
30138 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
30139 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30140 (eval $ac_try) 2>&5
30142 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30143 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
30144 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30145 (eval $ac_try) 2>&5
30147 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30148 test $ac_status = 0; }; }; then :
30150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30151 $as_echo "yes" >&6; }
30153 $as_echo "#define HAVE_INODE_OWNER_OR_CAPABLE 1" >>confdefs.h
30157 $as_echo "$as_me: failed program was:" >&5
30158 sed 's/^/| /' conftest.
$ac_ext >&5
30160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30161 $as_echo "no" >&6; }
30162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether is_owner_or_cap() exists" >&5
30163 $as_echo_n "checking whether is_owner_or_cap() exists... " >&6; }
30166 cat confdefs.h
- <<_ACEOF >conftest.c
30169 #include <linux/fs.h>
30170 #include <linux/sched.h>
30176 struct inode *ip = NULL;
30177 (void) is_owner_or_cap(ip);
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_IS_OWNER_OR_CAP 1" >>confdefs.h
30215 $as_echo "$as_me: failed program was:" >&5
30216 sed 's/^/| /' conftest.
$ac_ext >&5
30218 as_fn_error $?
"no - Please file a bug report at
30219 https://github.com/zfsonlinux/zfs/issues/new" "$LINENO" 5
30236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether posix_acl_from_xattr() needs user_ns" >&5
30237 $as_echo_n "checking whether posix_acl_from_xattr() needs user_ns... " >&6; }
30240 cat confdefs.h
- <<_ACEOF >conftest.c
30243 #include <linux/cred.h>
30244 #include <linux/fs.h>
30245 #include <linux/posix_acl_xattr.h>
30251 posix_acl_from_xattr(&init_user_ns, NULL, 0);
30261 cat - <<_ACEOF >conftest.h
30266 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
30267 echo "obj-m := conftest.o" >build
/Makefile
30269 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
30270 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
30271 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30272 (eval $ac_try) 2>&5
30274 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30275 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
30276 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30277 (eval $ac_try) 2>&5
30279 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30280 test $ac_status = 0; }; }; then :
30282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30283 $as_echo "yes" >&6; }
30285 $as_echo "#define HAVE_POSIX_ACL_FROM_XATTR_USERNS 1" >>confdefs.h
30289 $as_echo "$as_me: failed program was:" >&5
30290 sed 's/^/| /' conftest.
$ac_ext >&5
30292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30293 $as_echo "no" >&6; }
30303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether posix_acl_release() is available" >&5
30304 $as_echo_n "checking whether posix_acl_release() is available... " >&6; }
30307 cat confdefs.h
- <<_ACEOF >conftest.c
30310 #include <linux/cred.h>
30311 #include <linux/fs.h>
30312 #include <linux/posix_acl.h>
30318 struct posix_acl* tmp = posix_acl_alloc(1, 0);
30319 posix_acl_release(tmp);
30329 cat - <<_ACEOF >conftest.h
30334 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
30335 echo "obj-m := conftest.o" >build
/Makefile
30337 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
30338 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
30339 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30340 (eval $ac_try) 2>&5
30342 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30343 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
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; }; }; then :
30350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30351 $as_echo "yes" >&6; }
30353 $as_echo "#define HAVE_POSIX_ACL_RELEASE 1" >>confdefs.h
30357 $as_echo "$as_me: failed program was:" >&5
30358 sed 's/^/| /' conftest.
$ac_ext >&5
30360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30361 $as_echo "no" >&6; }
30370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether posix_acl_release() is GPL-only" >&5
30371 $as_echo_n "checking whether posix_acl_release() is GPL-only... " >&6; }
30374 cat confdefs.h
- <<_ACEOF >conftest.c
30377 #include <linux/cred.h>
30378 #include <linux/fs.h>
30379 #include <linux/posix_acl.h>
30381 MODULE_LICENSE("$ZFS_META_LICENSE");
30387 struct posix_acl* tmp = posix_acl_alloc(1, 0);
30388 posix_acl_release(tmp);
30398 cat - <<_ACEOF >conftest.h
30403 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
30404 echo "obj-m := conftest.o" >build
/Makefile
30406 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
30407 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
30408 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30409 (eval $ac_try) 2>&5
30411 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30412 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
30413 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30414 (eval $ac_try) 2>&5
30416 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30417 test $ac_status = 0; }; }; then :
30419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30420 $as_echo "no" >&6; }
30423 $as_echo "$as_me: failed program was:" >&5
30424 sed 's/^/| /' conftest.
$ac_ext >&5
30426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30427 $as_echo "yes" >&6; }
30429 $as_echo "#define HAVE_POSIX_ACL_RELEASE_GPL_ONLY 1" >>confdefs.h
30440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether set_cached_acl() is usable" >&5
30441 $as_echo_n "checking whether set_cached_acl() is usable... " >&6; }
30444 cat confdefs.h
- <<_ACEOF >conftest.c
30447 #include <linux/module.h>
30448 #include <linux/cred.h>
30449 #include <linux/fs.h>
30450 #include <linux/posix_acl.h>
30452 MODULE_LICENSE("$ZFS_META_LICENSE");
30458 struct inode *ip = NULL;
30459 struct posix_acl *acl = posix_acl_alloc(1, 0);
30460 set_cached_acl(ip, ACL_TYPE_ACCESS, acl);
30461 forget_cached_acl(ip, ACL_TYPE_ACCESS);
30471 cat - <<_ACEOF >conftest.h
30476 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
30477 echo "obj-m := conftest.o" >build
/Makefile
30479 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
30480 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
30481 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30482 (eval $ac_try) 2>&5
30484 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30485 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
30486 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30487 (eval $ac_try) 2>&5
30489 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30490 test $ac_status = 0; }; }; then :
30492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30493 $as_echo "yes" >&6; }
30495 $as_echo "#define HAVE_SET_CACHED_ACL_USABLE 1" >>confdefs.h
30499 $as_echo "$as_me: failed program was:" >&5
30500 sed 's/^/| /' conftest.
$ac_ext >&5
30502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30503 $as_echo "no" >&6; }
30513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether posix_acl_chmod exists" >&5
30514 $as_echo_n "checking whether posix_acl_chmod exists... " >&6; }
30517 cat confdefs.h
- <<_ACEOF >conftest.c
30520 #include <linux/fs.h>
30521 #include <linux/posix_acl.h>
30527 posix_acl_chmod(NULL, 0, 0)
30537 cat - <<_ACEOF >conftest.h
30542 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
30543 echo "obj-m := conftest.o" >build
/Makefile
30545 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
30546 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
30547 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30548 (eval $ac_try) 2>&5
30550 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30551 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
30552 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30553 (eval $ac_try) 2>&5
30555 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30556 test $ac_status = 0; }; }; then :
30558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30559 $as_echo "yes" >&6; }
30561 $as_echo "#define HAVE_POSIX_ACL_CHMOD 1" >>confdefs.h
30565 $as_echo "$as_me: failed program was:" >&5
30566 sed 's/^/| /' conftest.
$ac_ext >&5
30568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30569 $as_echo "no" >&6; }
30578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __posix_acl_chmod exists" >&5
30579 $as_echo_n "checking whether __posix_acl_chmod exists... " >&6; }
30582 cat confdefs.h
- <<_ACEOF >conftest.c
30585 #include <linux/fs.h>
30586 #include <linux/posix_acl.h>
30592 __posix_acl_chmod(NULL, 0, 0)
30602 cat - <<_ACEOF >conftest.h
30607 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
30608 echo "obj-m := conftest.o" >build
/Makefile
30610 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
30611 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
30612 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30613 (eval $ac_try) 2>&5
30615 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30616 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
30617 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30618 (eval $ac_try) 2>&5
30620 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30621 test $ac_status = 0; }; }; then :
30623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30624 $as_echo "yes" >&6; }
30626 $as_echo "#define HAVE___POSIX_ACL_CHMOD 1" >>confdefs.h
30630 $as_echo "$as_me: failed program was:" >&5
30631 sed 's/^/| /' conftest.
$ac_ext >&5
30633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30634 $as_echo "no" >&6; }
30644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether posix_acl_equiv_mode() wants umode_t" >&5
30645 $as_echo_n "checking whether posix_acl_equiv_mode() wants umode_t... " >&6; }
30648 cat confdefs.h
- <<_ACEOF >conftest.c
30651 #include <linux/fs.h>
30652 #include <linux/posix_acl.h>
30659 posix_acl_equiv_mode(NULL,&tmp);
30669 cat - <<_ACEOF >conftest.h
30674 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
30675 echo "obj-m := conftest.o" >build
/Makefile
30677 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
30678 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
30679 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30680 (eval $ac_try) 2>&5
30682 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30683 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
30684 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30685 (eval $ac_try) 2>&5
30687 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30688 test $ac_status = 0; }; }; then :
30690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30691 $as_echo "yes" >&6; }
30693 $as_echo "#define HAVE_POSIX_ACL_EQUIV_MODE_UMODE_T 1" >>confdefs.h
30697 $as_echo "$as_me: failed program was:" >&5
30698 sed 's/^/| /' conftest.
$ac_ext >&5
30700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30701 $as_echo "no" >&6; }
30711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether posix_acl_valid() wants user namespace" >&5
30712 $as_echo_n "checking whether posix_acl_valid() wants user namespace... " >&6; }
30715 cat confdefs.h
- <<_ACEOF >conftest.c
30718 #include <linux/fs.h>
30719 #include <linux/posix_acl.h>
30725 struct user_namespace *user_ns = NULL;
30726 const struct posix_acl *acl = NULL;
30729 error = posix_acl_valid(user_ns, acl);
30739 cat - <<_ACEOF >conftest.h
30744 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
30745 echo "obj-m := conftest.o" >build
/Makefile
30747 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
30748 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
30749 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30750 (eval $ac_try) 2>&5
30752 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30753 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
30754 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30755 (eval $ac_try) 2>&5
30757 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30758 test $ac_status = 0; }; }; then :
30760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30761 $as_echo "yes" >&6; }
30763 $as_echo "#define HAVE_POSIX_ACL_VALID_WITH_NS 1" >>confdefs.h
30767 $as_echo "$as_me: failed program was:" >&5
30768 sed 's/^/| /' conftest.
$ac_ext >&5
30770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30771 $as_echo "no" >&6; }
30781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->permission() exists" >&5
30782 $as_echo_n "checking whether iops->permission() exists... " >&6; }
30785 cat confdefs.h
- <<_ACEOF >conftest.c
30788 #include <linux/fs.h>
30790 int permission_fn(struct inode *inode, int mask) { return 0; }
30792 static const struct inode_operations
30793 iops __attribute__ ((unused)) = {
30794 .permission = permission_fn,
30810 cat - <<_ACEOF >conftest.h
30815 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
30816 echo "obj-m := conftest.o" >build
/Makefile
30818 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
30819 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
30820 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30821 (eval $ac_try) 2>&5
30823 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30824 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
30825 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30826 (eval $ac_try) 2>&5
30828 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30829 test $ac_status = 0; }; }; then :
30831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30832 $as_echo "yes" >&6; }
30834 $as_echo "#define HAVE_PERMISSION 1" >>confdefs.h
30838 $as_echo "$as_me: failed program was:" >&5
30839 sed 's/^/| /' conftest.
$ac_ext >&5
30841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30842 $as_echo "no" >&6; }
30852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->permission() wants nameidata" >&5
30853 $as_echo_n "checking whether iops->permission() wants nameidata... " >&6; }
30856 cat confdefs.h
- <<_ACEOF >conftest.c
30859 #include <linux/fs.h>
30861 int permission_fn(struct inode *inode, int mask,
30862 struct nameidata *nd) { return 0; }
30864 static const struct inode_operations
30865 iops __attribute__ ((unused)) = {
30866 .permission = permission_fn,
30882 cat - <<_ACEOF >conftest.h
30887 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
30888 echo "obj-m := conftest.o" >build
/Makefile
30890 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
30891 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
30892 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30893 (eval $ac_try) 2>&5
30895 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30896 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
30897 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30898 (eval $ac_try) 2>&5
30900 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30901 test $ac_status = 0; }; }; then :
30903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30904 $as_echo "yes" >&6; }
30906 $as_echo "#define HAVE_PERMISSION 1" >>confdefs.h
30909 $as_echo "#define HAVE_PERMISSION_WITH_NAMEIDATA 1" >>confdefs.h
30913 $as_echo "$as_me: failed program was:" >&5
30914 sed 's/^/| /' conftest.
$ac_ext >&5
30916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30917 $as_echo "no" >&6; }
30927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->check_acl() exists" >&5
30928 $as_echo_n "checking whether iops->check_acl() exists... " >&6; }
30931 cat confdefs.h
- <<_ACEOF >conftest.c
30934 #include <linux/fs.h>
30936 int check_acl_fn(struct inode *inode, int mask) { return 0; }
30938 static const struct inode_operations
30939 iops __attribute__ ((unused)) = {
30940 .check_acl = check_acl_fn,
30956 cat - <<_ACEOF >conftest.h
30961 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
30962 echo "obj-m := conftest.o" >build
/Makefile
30964 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
30965 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
30966 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30967 (eval $ac_try) 2>&5
30969 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30970 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
30971 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30972 (eval $ac_try) 2>&5
30974 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30975 test $ac_status = 0; }; }; then :
30977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30978 $as_echo "yes" >&6; }
30980 $as_echo "#define HAVE_CHECK_ACL 1" >>confdefs.h
30984 $as_echo "$as_me: failed program was:" >&5
30985 sed 's/^/| /' conftest.
$ac_ext >&5
30987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30988 $as_echo "no" >&6; }
30998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->check_acl() wants flags" >&5
30999 $as_echo_n "checking whether iops->check_acl() wants flags... " >&6; }
31002 cat confdefs.h
- <<_ACEOF >conftest.c
31005 #include <linux/fs.h>
31007 int check_acl_fn(struct inode *inode, int mask,
31008 unsigned int flags) { return 0; }
31010 static const struct inode_operations
31011 iops __attribute__ ((unused)) = {
31012 .check_acl = check_acl_fn,
31028 cat - <<_ACEOF >conftest.h
31033 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
31034 echo "obj-m := conftest.o" >build
/Makefile
31036 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
31037 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
31038 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31039 (eval $ac_try) 2>&5
31041 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31042 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
31043 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31044 (eval $ac_try) 2>&5
31046 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31047 test $ac_status = 0; }; }; then :
31049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31050 $as_echo "yes" >&6; }
31052 $as_echo "#define HAVE_CHECK_ACL 1" >>confdefs.h
31055 $as_echo "#define HAVE_CHECK_ACL_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 iops->get_acl() exists" >&5
31074 $as_echo_n "checking whether iops->get_acl() exists... " >&6; }
31077 cat confdefs.h
- <<_ACEOF >conftest.c
31080 #include <linux/fs.h>
31082 struct posix_acl *get_acl_fn(struct inode *inode, int type)
31085 static const struct inode_operations
31086 iops __attribute__ ((unused)) = {
31087 .get_acl = get_acl_fn,
31103 cat - <<_ACEOF >conftest.h
31108 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
31109 echo "obj-m := conftest.o" >build
/Makefile
31111 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
31112 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
31113 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31114 (eval $ac_try) 2>&5
31116 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31117 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
31118 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31119 (eval $ac_try) 2>&5
31121 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31122 test $ac_status = 0; }; }; then :
31124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31125 $as_echo "yes" >&6; }
31127 $as_echo "#define HAVE_GET_ACL 1" >>confdefs.h
31131 $as_echo "$as_me: failed program was:" >&5
31132 sed 's/^/| /' conftest.
$ac_ext >&5
31134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31135 $as_echo "no" >&6; }
31145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->set_acl() exists" >&5
31146 $as_echo_n "checking whether iops->set_acl() exists... " >&6; }
31149 cat confdefs.h
- <<_ACEOF >conftest.c
31152 #include <linux/fs.h>
31154 int set_acl_fn(struct inode *inode, struct posix_acl *acl, int type)
31157 static const struct inode_operations
31158 iops __attribute__ ((unused)) = {
31159 .set_acl = set_acl_fn,
31175 cat - <<_ACEOF >conftest.h
31180 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
31181 echo "obj-m := conftest.o" >build
/Makefile
31183 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
31184 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
31185 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31186 (eval $ac_try) 2>&5
31188 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31189 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
31190 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31191 (eval $ac_try) 2>&5
31193 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31194 test $ac_status = 0; }; }; then :
31196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31197 $as_echo "yes" >&6; }
31199 $as_echo "#define HAVE_SET_ACL 1" >>confdefs.h
31203 $as_echo "$as_me: failed program was:" >&5
31204 sed 's/^/| /' conftest.
$ac_ext >&5
31206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31207 $as_echo "no" >&6; }
31218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->getattr() takes a path" >&5
31219 $as_echo_n "checking whether iops->getattr() takes a path... " >&6; }
31222 cat confdefs.h
- <<_ACEOF >conftest.c
31225 #include <linux/fs.h>
31228 const struct path *p, struct kstat *k,
31229 u32 request_mask, unsigned int query_flags)
31232 static const struct inode_operations
31233 iops __attribute__ ((unused)) = {
31234 .getattr = test_getattr,
31250 cat - <<_ACEOF >conftest.h
31255 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
31256 echo "obj-m := conftest.o" >build
/Makefile
31258 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
31259 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
31260 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31261 (eval $ac_try) 2>&5
31263 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31264 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
31265 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31266 (eval $ac_try) 2>&5
31268 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31269 test $ac_status = 0; }; }; then :
31271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31272 $as_echo "yes" >&6; }
31274 $as_echo "#define HAVE_PATH_IOPS_GETATTR 1" >>confdefs.h
31278 $as_echo "$as_me: failed program was:" >&5
31279 sed 's/^/| /' conftest.
$ac_ext >&5
31281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31282 $as_echo "no" >&6; }
31292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->getattr() takes a vfsmount" >&5
31293 $as_echo_n "checking whether iops->getattr() takes a vfsmount... " >&6; }
31296 cat confdefs.h
- <<_ACEOF >conftest.c
31299 #include <linux/fs.h>
31302 struct vfsmount *mnt, struct dentry *d,
31306 static const struct inode_operations
31307 iops __attribute__ ((unused)) = {
31308 .getattr = test_getattr,
31324 cat - <<_ACEOF >conftest.h
31329 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
31330 echo "obj-m := conftest.o" >build
/Makefile
31332 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
31333 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
31334 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31335 (eval $ac_try) 2>&5
31337 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31338 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
31339 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31340 (eval $ac_try) 2>&5
31342 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31343 test $ac_status = 0; }; }; then :
31345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31346 $as_echo "yes" >&6; }
31348 $as_echo "#define HAVE_VFSMOUNT_IOPS_GETATTR 1" >>confdefs.h
31352 $as_echo "$as_me: failed program was:" >&5
31353 sed 's/^/| /' conftest.
$ac_ext >&5
31355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31356 $as_echo "no" >&6; }
31367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether uncached_acl_sentinel() exists" >&5
31368 $as_echo_n "checking whether uncached_acl_sentinel() exists... " >&6; }
31371 cat confdefs.h
- <<_ACEOF >conftest.c
31374 #include <linux/fs.h>
31380 void *sentinel __attribute__ ((unused)) = uncached_acl_sentinel(NULL);
31390 cat - <<_ACEOF >conftest.h
31395 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
31396 echo "obj-m := conftest.o" >build
/Makefile
31398 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
31399 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
31400 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31401 (eval $ac_try) 2>&5
31403 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31404 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
31405 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31406 (eval $ac_try) 2>&5
31408 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31409 test $ac_status = 0; }; }; then :
31411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31412 $as_echo "yes" >&6; }
31414 $as_echo "#define HAVE_KERNEL_GET_ACL_HANDLE_CACHE 1" >>confdefs.h
31418 $as_echo "$as_me: failed program was:" >&5
31419 sed 's/^/| /' conftest.
$ac_ext >&5
31421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31422 $as_echo "no" >&6; }
31432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sops->show_options() wants dentry" >&5
31433 $as_echo_n "checking whether sops->show_options() wants dentry... " >&6; }
31437 cat confdefs.h
- <<_ACEOF >conftest.c
31440 #include <linux/fs.h>
31442 int show_options (struct seq_file * x, struct dentry * y) { return 0; };
31443 static struct super_operations sops __attribute__ ((unused)) = {
31444 .show_options = show_options,
31460 cat - <<_ACEOF >conftest.h
31465 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
31466 echo "obj-m := conftest.o" >build
/Makefile
31468 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
31469 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
31470 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31471 (eval $ac_try) 2>&5
31473 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31474 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
31475 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31476 (eval $ac_try) 2>&5
31478 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31479 test $ac_status = 0; }; }; then :
31481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31482 $as_echo "yes" >&6; }
31484 $as_echo "#define HAVE_SHOW_OPTIONS_WITH_DENTRY 1" >>confdefs.h
31488 $as_echo "$as_me: failed program was:" >&5
31489 sed 's/^/| /' conftest.
$ac_ext >&5
31491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31492 $as_echo "no" >&6; }
31502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether file_inode() is available" >&5
31503 $as_echo_n "checking whether file_inode() is available... " >&6; }
31506 cat confdefs.h
- <<_ACEOF >conftest.c
31509 #include <linux/fs.h>
31515 struct file *f = NULL;
31526 cat - <<_ACEOF >conftest.h
31531 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
31532 echo "obj-m := conftest.o" >build
/Makefile
31534 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
31535 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
31536 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31537 (eval $ac_try) 2>&5
31539 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31540 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
31541 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31542 (eval $ac_try) 2>&5
31544 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31545 test $ac_status = 0; }; }; then :
31547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31548 $as_echo "yes" >&6; }
31550 $as_echo "#define HAVE_FILE_INODE 1" >>confdefs.h
31554 $as_echo "$as_me: failed program was:" >&5
31555 sed 's/^/| /' conftest.
$ac_ext >&5
31557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31558 $as_echo "no" >&6; }
31568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fops->fsync() wants" >&5
31569 $as_echo_n "checking whether fops->fsync() wants... " >&6; }
31573 cat confdefs.h
- <<_ACEOF >conftest.c
31576 #include <linux/fs.h>
31578 int test_fsync(struct file *f, struct dentry *dentry, int x)
31581 static const struct file_operations
31582 fops __attribute__ ((unused)) = {
31583 .fsync = test_fsync,
31599 cat - <<_ACEOF >conftest.h
31604 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
31605 echo "obj-m := conftest.o" >build
/Makefile
31607 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
31608 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
31609 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31610 (eval $ac_try) 2>&5
31612 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31613 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
31614 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31615 (eval $ac_try) 2>&5
31617 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31618 test $ac_status = 0; }; }; then :
31620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: dentry" >&5
31621 $as_echo "dentry" >&6; }
31623 $as_echo "#define HAVE_FSYNC_WITH_DENTRY 1" >>confdefs.h
31627 $as_echo "$as_me: failed program was:" >&5
31628 sed 's/^/| /' conftest.
$ac_ext >&5
31641 cat confdefs.h
- <<_ACEOF >conftest.c
31644 #include <linux/fs.h>
31646 int test_fsync(struct file *f, int x) { return 0; }
31648 static const struct file_operations
31649 fops __attribute__ ((unused)) = {
31650 .fsync = test_fsync,
31666 cat - <<_ACEOF >conftest.h
31671 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
31672 echo "obj-m := conftest.o" >build
/Makefile
31674 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
31675 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
31676 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31677 (eval $ac_try) 2>&5
31679 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31680 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
31681 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31682 (eval $ac_try) 2>&5
31684 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31685 test $ac_status = 0; }; }; then :
31687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no dentry" >&5
31688 $as_echo "no dentry" >&6; }
31690 $as_echo "#define HAVE_FSYNC_WITHOUT_DENTRY 1" >>confdefs.h
31694 $as_echo "$as_me: failed program was:" >&5
31695 sed 's/^/| /' conftest.
$ac_ext >&5
31708 cat confdefs.h
- <<_ACEOF >conftest.c
31711 #include <linux/fs.h>
31713 int test_fsync(struct file *f, loff_t a, loff_t b, int c)
31716 static const struct file_operations
31717 fops __attribute__ ((unused)) = {
31718 .fsync = test_fsync,
31734 cat - <<_ACEOF >conftest.h
31739 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
31740 echo "obj-m := conftest.o" >build
/Makefile
31742 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
31743 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
31744 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31745 (eval $ac_try) 2>&5
31747 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31748 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
31749 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31750 (eval $ac_try) 2>&5
31752 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31753 test $ac_status = 0; }; }; then :
31755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: range" >&5
31756 $as_echo "range" >&6; }
31758 $as_echo "#define HAVE_FSYNC_RANGE 1" >>confdefs.h
31762 $as_echo "$as_me: failed program was:" >&5
31763 sed 's/^/| /' conftest.
$ac_ext >&5
31775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sops->evict_inode() exists" >&5
31776 $as_echo_n "checking whether sops->evict_inode() exists... " >&6; }
31779 cat confdefs.h
- <<_ACEOF >conftest.c
31782 #include <linux/fs.h>
31783 void evict_inode (struct inode * t) { return; }
31784 static struct super_operations sops __attribute__ ((unused)) = {
31785 .evict_inode = evict_inode,
31801 cat - <<_ACEOF >conftest.h
31806 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
31807 echo "obj-m := conftest.o" >build
/Makefile
31809 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
31810 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
31811 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31812 (eval $ac_try) 2>&5
31814 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31815 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
31816 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31817 (eval $ac_try) 2>&5
31819 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31820 test $ac_status = 0; }; }; then :
31822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31823 $as_echo "yes" >&6; }
31825 $as_echo "#define HAVE_EVICT_INODE 1" >>confdefs.h
31829 $as_echo "$as_me: failed program was:" >&5
31830 sed 's/^/| /' conftest.
$ac_ext >&5
31832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31833 $as_echo "no" >&6; }
31843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sops->dirty_inode() wants flags" >&5
31844 $as_echo_n "checking whether sops->dirty_inode() wants flags... " >&6; }
31847 cat confdefs.h
- <<_ACEOF >conftest.c
31850 #include <linux/fs.h>
31852 void dirty_inode(struct inode *a, int b) { return; }
31854 static const struct super_operations
31855 sops __attribute__ ((unused)) = {
31856 .dirty_inode = dirty_inode,
31872 cat - <<_ACEOF >conftest.h
31877 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
31878 echo "obj-m := conftest.o" >build
/Makefile
31880 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
31881 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
31882 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31883 (eval $ac_try) 2>&5
31885 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31886 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
31887 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31888 (eval $ac_try) 2>&5
31890 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31891 test $ac_status = 0; }; }; then :
31893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31894 $as_echo "yes" >&6; }
31896 $as_echo "#define HAVE_DIRTY_INODE_WITH_FLAGS 1" >>confdefs.h
31900 $as_echo "$as_me: failed program was:" >&5
31901 sed 's/^/| /' conftest.
$ac_ext >&5
31903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31904 $as_echo "no" >&6; }
31914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sops->nr_cached_objects() exists" >&5
31915 $as_echo_n "checking whether sops->nr_cached_objects() exists... " >&6; }
31918 cat confdefs.h
- <<_ACEOF >conftest.c
31921 #include <linux/fs.h>
31923 int nr_cached_objects(struct super_block *sb) { return 0; }
31925 static const struct super_operations
31926 sops __attribute__ ((unused)) = {
31927 .nr_cached_objects = nr_cached_objects,
31943 cat - <<_ACEOF >conftest.h
31948 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
31949 echo "obj-m := conftest.o" >build
/Makefile
31951 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
31952 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
31953 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31954 (eval $ac_try) 2>&5
31956 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31957 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
31958 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31959 (eval $ac_try) 2>&5
31961 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31962 test $ac_status = 0; }; }; then :
31964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31965 $as_echo "yes" >&6; }
31967 $as_echo "#define HAVE_NR_CACHED_OBJECTS 1" >>confdefs.h
31971 $as_echo "$as_me: failed program was:" >&5
31972 sed 's/^/| /' conftest.
$ac_ext >&5
31974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31975 $as_echo "no" >&6; }
31985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sops->free_cached_objects() exists" >&5
31986 $as_echo_n "checking whether sops->free_cached_objects() exists... " >&6; }
31989 cat confdefs.h
- <<_ACEOF >conftest.c
31992 #include <linux/fs.h>
31994 void free_cached_objects(struct super_block *sb, int x)
31997 static const struct super_operations
31998 sops __attribute__ ((unused)) = {
31999 .free_cached_objects = free_cached_objects,
32015 cat - <<_ACEOF >conftest.h
32020 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
32021 echo "obj-m := conftest.o" >build
/Makefile
32023 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
32024 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
32025 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
32026 (eval $ac_try) 2>&5
32028 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32029 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
32030 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
32031 (eval $ac_try) 2>&5
32033 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32034 test $ac_status = 0; }; }; then :
32036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32037 $as_echo "yes" >&6; }
32039 $as_echo "#define HAVE_FREE_CACHED_OBJECTS 1" >>confdefs.h
32043 $as_echo "$as_me: failed program was:" >&5
32044 sed 's/^/| /' conftest.
$ac_ext >&5
32046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32047 $as_echo "no" >&6; }
32058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fops->fallocate() exists" >&5
32059 $as_echo_n "checking whether fops->fallocate() exists... " >&6; }
32062 cat confdefs.h
- <<_ACEOF >conftest.c
32065 #include <linux/fs.h>
32067 long test_fallocate(struct file *file, int mode,
32068 loff_t offset, loff_t len) { return 0; }
32070 static const struct file_operations
32071 fops __attribute__ ((unused)) = {
32072 .fallocate = test_fallocate,
32088 cat - <<_ACEOF >conftest.h
32093 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
32094 echo "obj-m := conftest.o" >build
/Makefile
32096 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
32097 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
32098 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
32099 (eval $ac_try) 2>&5
32101 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32102 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
32103 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
32104 (eval $ac_try) 2>&5
32106 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32107 test $ac_status = 0; }; }; then :
32109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32110 $as_echo "yes" >&6; }
32112 $as_echo "#define HAVE_FILE_FALLOCATE 1" >>confdefs.h
32116 $as_echo "$as_me: failed program was:" >&5
32117 sed 's/^/| /' conftest.
$ac_ext >&5
32119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32120 $as_echo "no" >&6; }
32130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->fallocate() exists" >&5
32131 $as_echo_n "checking whether iops->fallocate() exists... " >&6; }
32134 cat confdefs.h
- <<_ACEOF >conftest.c
32137 #include <linux/fs.h>
32139 long test_fallocate(struct inode *inode, int mode,
32140 loff_t offset, loff_t len) { return 0; }
32142 static const struct inode_operations
32143 fops __attribute__ ((unused)) = {
32144 .fallocate = test_fallocate,
32160 cat - <<_ACEOF >conftest.h
32165 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
32166 echo "obj-m := conftest.o" >build
/Makefile
32168 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
32169 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
32170 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
32171 (eval $ac_try) 2>&5
32173 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32174 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
32175 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
32176 (eval $ac_try) 2>&5
32178 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32179 test $ac_status = 0; }; }; then :
32181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32182 $as_echo "yes" >&6; }
32184 $as_echo "#define HAVE_INODE_FALLOCATE 1" >>confdefs.h
32188 $as_echo "$as_me: failed program was:" >&5
32189 sed 's/^/| /' conftest.
$ac_ext >&5
32191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32192 $as_echo "no" >&6; }
32203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fops->aio_fsync() exists" >&5
32204 $as_echo_n "checking whether fops->aio_fsync() exists... " >&6; }
32207 cat confdefs.h
- <<_ACEOF >conftest.c
32210 #include <linux/fs.h>
32212 static const struct file_operations
32213 fops __attribute__ ((unused)) = {
32230 cat - <<_ACEOF >conftest.h
32235 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
32236 echo "obj-m := conftest.o" >build
/Makefile
32238 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
32239 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
32240 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
32241 (eval $ac_try) 2>&5
32243 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32244 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
32245 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
32246 (eval $ac_try) 2>&5
32248 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32249 test $ac_status = 0; }; }; then :
32251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32252 $as_echo "yes" >&6; }
32254 $as_echo "#define HAVE_FILE_AIO_FSYNC 1" >>confdefs.h
32258 $as_echo "$as_me: failed program was:" >&5
32259 sed 's/^/| /' conftest.
$ac_ext >&5
32261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32262 $as_echo "no" >&6; }
32272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->create()/mkdir()/mknod() take umode_t" >&5
32273 $as_echo_n "checking whether iops->create()/mkdir()/mknod() take umode_t... " >&6; }
32276 cat confdefs.h
- <<_ACEOF >conftest.c
32279 #include <linux/fs.h>
32281 int mkdir(struct inode *inode, struct dentry *dentry,
32282 umode_t umode) { return 0; }
32284 static const struct inode_operations
32285 iops __attribute__ ((unused)) = {
32302 cat - <<_ACEOF >conftest.h
32307 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
32308 echo "obj-m := conftest.o" >build
/Makefile
32310 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
32311 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
32312 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
32313 (eval $ac_try) 2>&5
32315 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32316 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
32317 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
32318 (eval $ac_try) 2>&5
32320 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32321 test $ac_status = 0; }; }; then :
32323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32324 $as_echo "yes" >&6; }
32326 $as_echo "#define HAVE_MKDIR_UMODE_T 1" >>confdefs.h
32330 $as_echo "$as_me: failed program was:" >&5
32331 sed 's/^/| /' conftest.
$ac_ext >&5
32333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32334 $as_echo "no" >&6; }
32344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->lookup() passes nameidata" >&5
32345 $as_echo_n "checking whether iops->lookup() passes nameidata... " >&6; }
32348 cat confdefs.h
- <<_ACEOF >conftest.c
32351 #include <linux/fs.h>
32353 struct dentry *inode_lookup(struct inode *inode,
32354 struct dentry *dentry, struct nameidata *nidata)
32357 static const struct inode_operations iops
32358 __attribute__ ((unused)) = {
32359 .lookup = inode_lookup,
32375 cat - <<_ACEOF >conftest.h
32380 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
32381 echo "obj-m := conftest.o" >build
/Makefile
32383 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
32384 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
32385 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
32386 (eval $ac_try) 2>&5
32388 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32389 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
32390 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
32391 (eval $ac_try) 2>&5
32393 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32394 test $ac_status = 0; }; }; then :
32396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32397 $as_echo "yes" >&6; }
32399 $as_echo "#define HAVE_LOOKUP_NAMEIDATA 1" >>confdefs.h
32403 $as_echo "$as_me: failed program was:" >&5
32404 sed 's/^/| /' conftest.
$ac_ext >&5
32406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32407 $as_echo "no" >&6; }
32417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->create() passes nameidata" >&5
32418 $as_echo_n "checking whether iops->create() passes nameidata... " >&6; }
32421 cat confdefs.h
- <<_ACEOF >conftest.c
32424 #include <linux/fs.h>
32426 #ifdef HAVE_MKDIR_UMODE_T
32427 int inode_create(struct inode *inode ,struct dentry *dentry,
32428 umode_t umode, struct nameidata *nidata) { return 0; }
32430 int inode_create(struct inode *inode,struct dentry *dentry,
32431 int umode, struct nameidata * nidata) { return 0; }
32434 static const struct inode_operations
32435 iops __attribute__ ((unused)) = {
32436 .create = inode_create,
32452 cat - <<_ACEOF >conftest.h
32457 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
32458 echo "obj-m := conftest.o" >build
/Makefile
32460 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
32461 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
32462 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
32463 (eval $ac_try) 2>&5
32465 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32466 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
32467 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
32468 (eval $ac_try) 2>&5
32470 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32471 test $ac_status = 0; }; }; then :
32473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32474 $as_echo "yes" >&6; }
32476 $as_echo "#define HAVE_CREATE_NAMEIDATA 1" >>confdefs.h
32480 $as_echo "$as_me: failed program was:" >&5
32481 sed 's/^/| /' conftest.
$ac_ext >&5
32483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32484 $as_echo "no" >&6; }
32494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->get_link() passes delayed" >&5
32495 $as_echo_n "checking whether iops->get_link() passes delayed... " >&6; }
32498 cat confdefs.h
- <<_ACEOF >conftest.c
32501 #include <linux/fs.h>
32502 const char *get_link(struct dentry *de, struct inode *ip,
32503 struct delayed_call *done) { return "symlink"; }
32504 static struct inode_operations
32505 iops __attribute__ ((unused)) = {
32506 .get_link = get_link,
32522 cat - <<_ACEOF >conftest.h
32527 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
32528 echo "obj-m := conftest.o" >build
/Makefile
32530 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
32531 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
32532 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
32533 (eval $ac_try) 2>&5
32535 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32536 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
32537 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
32538 (eval $ac_try) 2>&5
32540 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32541 test $ac_status = 0; }; }; then :
32543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32544 $as_echo "yes" >&6; }
32546 $as_echo "#define HAVE_GET_LINK_DELAYED 1" >>confdefs.h
32550 $as_echo "$as_me: failed program was:" >&5
32551 sed 's/^/| /' conftest.
$ac_ext >&5
32553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32554 $as_echo "no" >&6; }
32555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->get_link() passes cookie" >&5
32556 $as_echo_n "checking whether iops->get_link() passes cookie... " >&6; }
32559 cat confdefs.h
- <<_ACEOF >conftest.c
32562 #include <linux/fs.h>
32563 const char *get_link(struct dentry *de, struct
32564 inode *ip, void **cookie) { return "symlink"; }
32565 static struct inode_operations
32566 iops __attribute__ ((unused)) = {
32567 .get_link = get_link,
32583 cat - <<_ACEOF >conftest.h
32588 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
32589 echo "obj-m := conftest.o" >build
/Makefile
32591 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
32592 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
32593 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
32594 (eval $ac_try) 2>&5
32596 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32597 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
32598 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
32599 (eval $ac_try) 2>&5
32601 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32602 test $ac_status = 0; }; }; then :
32604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32605 $as_echo "yes" >&6; }
32607 $as_echo "#define HAVE_GET_LINK_COOKIE 1" >>confdefs.h
32611 $as_echo "$as_me: failed program was:" >&5
32612 sed 's/^/| /' conftest.
$ac_ext >&5
32614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32615 $as_echo "no" >&6; }
32617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->follow_link() passes cookie" >&5
32618 $as_echo_n "checking whether iops->follow_link() passes cookie... " >&6; }
32621 cat confdefs.h
- <<_ACEOF >conftest.c
32624 #include <linux/fs.h>
32625 const char *follow_link(struct dentry *de,
32626 void **cookie) { return "symlink"; }
32627 static struct inode_operations
32628 iops __attribute__ ((unused)) = {
32629 .follow_link = follow_link,
32645 cat - <<_ACEOF >conftest.h
32650 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
32651 echo "obj-m := conftest.o" >build
/Makefile
32653 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
32654 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
32655 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
32656 (eval $ac_try) 2>&5
32658 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32659 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
32660 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
32661 (eval $ac_try) 2>&5
32663 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32664 test $ac_status = 0; }; }; then :
32666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32667 $as_echo "yes" >&6; }
32669 $as_echo "#define HAVE_FOLLOW_LINK_COOKIE 1" >>confdefs.h
32673 $as_echo "$as_me: failed program was:" >&5
32674 sed 's/^/| /' conftest.
$ac_ext >&5
32676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32677 $as_echo "no" >&6; }
32678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->follow_link() passes nameidata" >&5
32679 $as_echo_n "checking whether iops->follow_link() passes nameidata... " >&6; }
32682 cat confdefs.h
- <<_ACEOF >conftest.c
32685 #include <linux/fs.h>
32686 void *follow_link(struct dentry *de, struct
32687 nameidata *nd) { return (void *)NULL; }
32688 static struct inode_operations
32689 iops __attribute__ ((unused)) = {
32690 .follow_link = follow_link,
32706 cat - <<_ACEOF >conftest.h
32711 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
32712 echo "obj-m := conftest.o" >build
/Makefile
32714 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
32715 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
32716 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
32717 (eval $ac_try) 2>&5
32719 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32720 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
32721 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
32722 (eval $ac_try) 2>&5
32724 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32725 test $ac_status = 0; }; }; then :
32727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32728 $as_echo "yes" >&6; }
32730 $as_echo "#define HAVE_FOLLOW_LINK_NAMEIDATA 1" >>confdefs.h
32734 $as_echo "$as_me: failed program was:" >&5
32735 sed 's/^/| /' conftest.
$ac_ext >&5
32737 as_fn_error $?
"no; please file a bug report" "$LINENO" 5
32771 cat confdefs.h
- <<_ACEOF >conftest.c
32774 #if !defined(HAVE_GET_LINK_DELAYED)
32775 #error "Expecting get_link() delayed done"
32791 cat - <<_ACEOF >conftest.h
32796 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
32797 echo "obj-m := conftest.o" >build
/Makefile
32799 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
32800 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
32801 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
32802 (eval $ac_try) 2>&5
32804 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32805 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
32806 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
32807 (eval $ac_try) 2>&5
32809 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32810 test $ac_status = 0; }; }; then :
32813 $as_echo "#define HAVE_PUT_LINK_DELAYED 1" >>confdefs.h
32817 $as_echo "$as_me: failed program was:" >&5
32818 sed 's/^/| /' conftest.
$ac_ext >&5
32820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->put_link() passes cookie" >&5
32821 $as_echo_n "checking whether iops->put_link() passes cookie... " >&6; }
32824 cat confdefs.h
- <<_ACEOF >conftest.c
32827 #include <linux/fs.h>
32828 void put_link(struct inode *ip, void *cookie)
32830 static struct inode_operations
32831 iops __attribute__ ((unused)) = {
32832 .put_link = put_link,
32848 cat - <<_ACEOF >conftest.h
32853 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
32854 echo "obj-m := conftest.o" >build
/Makefile
32856 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
32857 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
32858 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
32859 (eval $ac_try) 2>&5
32861 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32862 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
32863 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
32864 (eval $ac_try) 2>&5
32866 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32867 test $ac_status = 0; }; }; then :
32869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32870 $as_echo "yes" >&6; }
32872 $as_echo "#define HAVE_PUT_LINK_COOKIE 1" >>confdefs.h
32876 $as_echo "$as_me: failed program was:" >&5
32877 sed 's/^/| /' conftest.
$ac_ext >&5
32879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32880 $as_echo "no" >&6; }
32881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->put_link() passes nameidata" >&5
32882 $as_echo_n "checking whether iops->put_link() passes nameidata... " >&6; }
32885 cat confdefs.h
- <<_ACEOF >conftest.c
32888 #include <linux/fs.h>
32889 void put_link(struct dentry *de, struct
32890 nameidata *nd, void *ptr) { return; }
32891 static struct inode_operations
32892 iops __attribute__ ((unused)) = {
32893 .put_link = put_link,
32909 cat - <<_ACEOF >conftest.h
32914 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
32915 echo "obj-m := conftest.o" >build
/Makefile
32917 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
32918 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
32919 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
32920 (eval $ac_try) 2>&5
32922 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32923 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
32924 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
32925 (eval $ac_try) 2>&5
32927 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32928 test $ac_status = 0; }; }; then :
32930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32931 $as_echo "yes" >&6; }
32933 $as_echo "#define HAVE_PUT_LINK_NAMEIDATA 1" >>confdefs.h
32937 $as_echo "$as_me: failed program was:" >&5
32938 sed 's/^/| /' conftest.
$ac_ext >&5
32940 as_fn_error $?
"no; please file a bug report" "$LINENO" 5
32964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->truncate_range() exists" >&5
32965 $as_echo_n "checking whether iops->truncate_range() exists... " >&6; }
32968 cat confdefs.h
- <<_ACEOF >conftest.c
32971 #include <linux/fs.h>
32972 void truncate_range(struct inode *inode, loff_t start,
32973 loff_t end) { return; }
32974 static struct inode_operations iops __attribute__ ((unused)) = {
32975 .truncate_range = truncate_range,
32991 cat - <<_ACEOF >conftest.h
32996 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
32997 echo "obj-m := conftest.o" >build
/Makefile
32999 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
33000 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
33001 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
33002 (eval $ac_try) 2>&5
33004 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
33005 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
33006 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
33007 (eval $ac_try) 2>&5
33009 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
33010 test $ac_status = 0; }; }; then :
33012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33013 $as_echo "yes" >&6; }
33015 $as_echo "#define HAVE_INODE_TRUNCATE_RANGE 1" >>confdefs.h
33019 $as_echo "$as_me: failed program was:" >&5
33020 sed 's/^/| /' conftest.
$ac_ext >&5
33022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33023 $as_echo "no" >&6; }
33033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether dops->d_automount() exists" >&5
33034 $as_echo_n "checking whether dops->d_automount() exists... " >&6; }
33037 cat confdefs.h
- <<_ACEOF >conftest.c
33040 #include <linux/dcache.h>
33041 struct vfsmount *d_automount(struct path *p) { return NULL; }
33042 struct dentry_operations dops __attribute__ ((unused)) = {
33043 .d_automount = d_automount,
33059 cat - <<_ACEOF >conftest.h
33064 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
33065 echo "obj-m := conftest.o" >build
/Makefile
33067 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
33068 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
33069 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
33070 (eval $ac_try) 2>&5
33072 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
33073 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
33074 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
33075 (eval $ac_try) 2>&5
33077 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
33078 test $ac_status = 0; }; }; then :
33080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33081 $as_echo "yes" >&6; }
33083 $as_echo "#define HAVE_AUTOMOUNT 1" >>confdefs.h
33087 $as_echo "$as_me: failed program was:" >&5
33088 sed 's/^/| /' conftest.
$ac_ext >&5
33090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33091 $as_echo "no" >&6; }
33101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether eops->encode_fh() wants inode" >&5
33102 $as_echo_n "checking whether eops->encode_fh() wants inode... " >&6; }
33105 cat confdefs.h
- <<_ACEOF >conftest.c
33108 #include <linux/exportfs.h>
33109 int encode_fh(struct inode *inode, __u32 *fh, int *max_len,
33110 struct inode *parent) { return 0; }
33111 static struct export_operations eops __attribute__ ((unused))={
33112 .encode_fh = encode_fh,
33128 cat - <<_ACEOF >conftest.h
33133 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
33134 echo "obj-m := conftest.o" >build
/Makefile
33136 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
33137 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
33138 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
33139 (eval $ac_try) 2>&5
33141 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
33142 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
33143 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
33144 (eval $ac_try) 2>&5
33146 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
33147 test $ac_status = 0; }; }; then :
33149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33150 $as_echo "yes" >&6; }
33152 $as_echo "#define HAVE_ENCODE_FH_WITH_INODE 1" >>confdefs.h
33156 $as_echo "$as_me: failed program was:" >&5
33157 sed 's/^/| /' conftest.
$ac_ext >&5
33159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33160 $as_echo "no" >&6; }
33170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether eops->commit_metadata() exists" >&5
33171 $as_echo_n "checking whether eops->commit_metadata() exists... " >&6; }
33174 cat confdefs.h
- <<_ACEOF >conftest.c
33177 #include <linux/exportfs.h>
33178 int commit_metadata(struct inode *inode) { return 0; }
33179 static struct export_operations eops __attribute__ ((unused))={
33180 .commit_metadata = commit_metadata,
33196 cat - <<_ACEOF >conftest.h
33201 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
33202 echo "obj-m := conftest.o" >build
/Makefile
33204 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
33205 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
33206 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
33207 (eval $ac_try) 2>&5
33209 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
33210 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
33211 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
33212 (eval $ac_try) 2>&5
33214 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
33215 test $ac_status = 0; }; }; then :
33217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33218 $as_echo "yes" >&6; }
33220 $as_echo "#define HAVE_COMMIT_METADATA 1" >>confdefs.h
33224 $as_echo "$as_me: failed program was:" >&5
33225 sed 's/^/| /' conftest.
$ac_ext >&5
33227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33228 $as_echo "no" >&6; }
33237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether clear_inode() is available" >&5
33238 $as_echo_n "checking whether clear_inode() is available... " >&6; }
33242 cat confdefs.h
- <<_ACEOF >conftest.c
33245 #include <linux/fs.h>
33261 cat - <<_ACEOF >conftest.h
33266 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
33267 echo "obj-m := conftest.o" >build
/Makefile
33269 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
33270 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
33271 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
33272 (eval $ac_try) 2>&5
33274 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
33275 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
33276 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
33277 (eval $ac_try) 2>&5
33279 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
33280 test $ac_status = 0; }; }; then :
33283 $as_echo "$as_me: failed program was:" >&5
33284 sed 's/^/| /' conftest.
$ac_ext >&5
33292 if test $rc -ne 0; then :
33294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33295 $as_echo "no" >&6; }
33298 if test "x$enable_linux_builtin" != xyes
; then
33300 grep -q -E '[[:space:]]clear_inode[[:space:]]' \
33301 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
33303 if test $rc -ne 0; then
33305 for file in fs
/inode.c
; do
33306 grep -q -E "EXPORT_SYMBOL.*(clear_inode)" \
33307 "$LINUX/$file" 2>/dev
/null
33309 if test $rc -eq 0; then
33314 if test $export -eq 0; then :
33324 if test $rc -ne 0; then :
33326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33327 $as_echo "no" >&6; }
33331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33332 $as_echo "yes" >&6; }
33334 $as_echo "#define HAVE_CLEAR_INODE 1" >>confdefs.h
33341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setattr_prepare() is available" >&5
33342 $as_echo_n "checking whether setattr_prepare() is available... " >&6; }
33346 cat confdefs.h
- <<_ACEOF >conftest.c
33349 #include <linux/fs.h>
33355 struct dentry *dentry = NULL;
33356 struct iattr *attr = NULL;
33359 error = setattr_prepare(dentry, attr);
33369 cat - <<_ACEOF >conftest.h
33374 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
33375 echo "obj-m := conftest.o" >build
/Makefile
33377 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
33378 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
33379 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
33380 (eval $ac_try) 2>&5
33382 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
33383 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
33384 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
33385 (eval $ac_try) 2>&5
33387 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
33388 test $ac_status = 0; }; }; then :
33391 $as_echo "$as_me: failed program was:" >&5
33392 sed 's/^/| /' conftest.
$ac_ext >&5
33400 if test $rc -ne 0; then :
33402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33403 $as_echo "no" >&6; }
33406 if test "x$enable_linux_builtin" != xyes
; then
33408 grep -q -E '[[:space:]]setattr_prepare[[:space:]]' \
33409 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
33411 if test $rc -ne 0; then
33413 for file in fs
/attr.c
; do
33414 grep -q -E "EXPORT_SYMBOL.*(setattr_prepare)" \
33415 "$LINUX/$file" 2>/dev
/null
33417 if test $rc -eq 0; then
33422 if test $export -eq 0; then :
33432 if test $rc -ne 0; then :
33434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33435 $as_echo "no" >&6; }
33439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33440 $as_echo "yes" >&6; }
33442 $as_echo "#define HAVE_SETATTR_PREPARE 1" >>confdefs.h
33449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether insert_inode_locked() is available" >&5
33450 $as_echo_n "checking whether insert_inode_locked() is available... " >&6; }
33454 cat confdefs.h
- <<_ACEOF >conftest.c
33457 #include <linux/fs.h>
33463 insert_inode_locked(NULL);
33473 cat - <<_ACEOF >conftest.h
33478 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
33479 echo "obj-m := conftest.o" >build
/Makefile
33481 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
33482 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
33483 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
33484 (eval $ac_try) 2>&5
33486 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
33487 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
33488 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
33489 (eval $ac_try) 2>&5
33491 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
33492 test $ac_status = 0; }; }; then :
33495 $as_echo "$as_me: failed program was:" >&5
33496 sed 's/^/| /' conftest.
$ac_ext >&5
33504 if test $rc -ne 0; then :
33506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33507 $as_echo "no" >&6; }
33510 if test "x$enable_linux_builtin" != xyes
; then
33512 grep -q -E '[[:space:]]insert_inode_locked[[:space:]]' \
33513 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
33515 if test $rc -ne 0; then
33517 for file in fs
/inode.c
; do
33518 grep -q -E "EXPORT_SYMBOL.*(insert_inode_locked)" \
33519 "$LINUX/$file" 2>/dev
/null
33521 if test $rc -eq 0; then
33526 if test $export -eq 0; then :
33536 if test $rc -ne 0; then :
33538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33539 $as_echo "no" >&6; }
33543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33544 $as_echo "yes" >&6; }
33546 $as_echo "#define HAVE_INSERT_INODE_LOCKED 1" >>confdefs.h
33553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether d_make_root() is available" >&5
33554 $as_echo_n "checking whether d_make_root() is available... " >&6; }
33558 cat confdefs.h
- <<_ACEOF >conftest.c
33561 #include <linux/dcache.h>
33577 cat - <<_ACEOF >conftest.h
33582 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
33583 echo "obj-m := conftest.o" >build
/Makefile
33585 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
33586 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
33587 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
33588 (eval $ac_try) 2>&5
33590 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
33591 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
33592 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
33593 (eval $ac_try) 2>&5
33595 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
33596 test $ac_status = 0; }; }; then :
33599 $as_echo "$as_me: failed program was:" >&5
33600 sed 's/^/| /' conftest.
$ac_ext >&5
33608 if test $rc -ne 0; then :
33610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33611 $as_echo "no" >&6; }
33614 if test "x$enable_linux_builtin" != xyes
; then
33616 grep -q -E '[[:space:]]d_make_root[[:space:]]' \
33617 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
33619 if test $rc -ne 0; then
33621 for file in fs
/dcache.c
; do
33622 grep -q -E "EXPORT_SYMBOL.*(d_make_root)" \
33623 "$LINUX/$file" 2>/dev
/null
33625 if test $rc -eq 0; then
33630 if test $export -eq 0; then :
33640 if test $rc -ne 0; then :
33642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33643 $as_echo "no" >&6; }
33647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33648 $as_echo "yes" >&6; }
33650 $as_echo "#define HAVE_D_MAKE_ROOT 1" >>confdefs.h
33657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether d_obtain_alias() is available" >&5
33658 $as_echo_n "checking whether d_obtain_alias() is available... " >&6; }
33662 cat confdefs.h
- <<_ACEOF >conftest.c
33665 #include <linux/dcache.h>
33671 d_obtain_alias(NULL);
33681 cat - <<_ACEOF >conftest.h
33686 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
33687 echo "obj-m := conftest.o" >build
/Makefile
33689 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
33690 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
33691 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
33692 (eval $ac_try) 2>&5
33694 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
33695 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
33696 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
33697 (eval $ac_try) 2>&5
33699 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
33700 test $ac_status = 0; }; }; then :
33703 $as_echo "$as_me: failed program was:" >&5
33704 sed 's/^/| /' conftest.
$ac_ext >&5
33712 if test $rc -ne 0; then :
33714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33715 $as_echo "no" >&6; }
33718 if test "x$enable_linux_builtin" != xyes
; then
33720 grep -q -E '[[:space:]]d_obtain_alias[[:space:]]' \
33721 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
33723 if test $rc -ne 0; then
33725 for file in fs
/dcache.c
; do
33726 grep -q -E "EXPORT_SYMBOL.*(d_obtain_alias)" \
33727 "$LINUX/$file" 2>/dev
/null
33729 if test $rc -eq 0; then
33734 if test $export -eq 0; then :
33744 if test $rc -ne 0; then :
33746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33747 $as_echo "no" >&6; }
33751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33752 $as_echo "yes" >&6; }
33754 $as_echo "#define HAVE_D_OBTAIN_ALIAS 1" >>confdefs.h
33761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether d_prune_aliases() is available" >&5
33762 $as_echo_n "checking whether d_prune_aliases() is available... " >&6; }
33766 cat confdefs.h
- <<_ACEOF >conftest.c
33769 #include <linux/dcache.h>
33775 struct inode *ip = NULL;
33776 d_prune_aliases(ip);
33786 cat - <<_ACEOF >conftest.h
33791 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
33792 echo "obj-m := conftest.o" >build
/Makefile
33794 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
33795 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
33796 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
33797 (eval $ac_try) 2>&5
33799 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
33800 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
33801 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
33802 (eval $ac_try) 2>&5
33804 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
33805 test $ac_status = 0; }; }; then :
33808 $as_echo "$as_me: failed program was:" >&5
33809 sed 's/^/| /' conftest.
$ac_ext >&5
33817 if test $rc -ne 0; then :
33819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33820 $as_echo "no" >&6; }
33823 if test "x$enable_linux_builtin" != xyes
; then
33825 grep -q -E '[[:space:]]d_prune_aliases[[:space:]]' \
33826 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
33828 if test $rc -ne 0; then
33830 for file in fs
/dcache.c
; do
33831 grep -q -E "EXPORT_SYMBOL.*(d_prune_aliases)" \
33832 "$LINUX/$file" 2>/dev
/null
33834 if test $rc -eq 0; then
33839 if test $export -eq 0; then :
33849 if test $rc -ne 0; then :
33851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33852 $as_echo "no" >&6; }
33856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33857 $as_echo "yes" >&6; }
33859 $as_echo "#define HAVE_D_PRUNE_ALIASES 1" >>confdefs.h
33866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether d_set_d_op() is available" >&5
33867 $as_echo_n "checking whether d_set_d_op() is available... " >&6; }
33871 cat confdefs.h
- <<_ACEOF >conftest.c
33874 #include <linux/dcache.h>
33880 d_set_d_op(NULL, NULL);
33890 cat - <<_ACEOF >conftest.h
33895 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
33896 echo "obj-m := conftest.o" >build
/Makefile
33898 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
33899 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
33900 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
33901 (eval $ac_try) 2>&5
33903 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
33904 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
33905 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
33906 (eval $ac_try) 2>&5
33908 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
33909 test $ac_status = 0; }; }; then :
33912 $as_echo "$as_me: failed program was:" >&5
33913 sed 's/^/| /' conftest.
$ac_ext >&5
33921 if test $rc -ne 0; then :
33923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33924 $as_echo "no" >&6; }
33927 if test "x$enable_linux_builtin" != xyes
; then
33929 grep -q -E '[[:space:]]d_set_d_op[[:space:]]' \
33930 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
33932 if test $rc -ne 0; then
33934 for file in fs
/dcache.c
; do
33935 grep -q -E "EXPORT_SYMBOL.*(d_set_d_op)" \
33936 "$LINUX/$file" 2>/dev
/null
33938 if test $rc -eq 0; then
33943 if test $export -eq 0; then :
33953 if test $rc -ne 0; then :
33955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33956 $as_echo "no" >&6; }
33960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33961 $as_echo "yes" >&6; }
33963 $as_echo "#define HAVE_D_SET_D_OP 1" >>confdefs.h
33971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether dops->d_revalidate() takes struct nameidata" >&5
33972 $as_echo_n "checking whether dops->d_revalidate() takes struct nameidata... " >&6; }
33975 cat confdefs.h
- <<_ACEOF >conftest.c
33978 #include <linux/dcache.h>
33980 int revalidate (struct dentry *dentry,
33981 struct nameidata *nidata) { return 0; }
33983 static const struct dentry_operations
33984 dops __attribute__ ((unused)) = {
33985 .d_revalidate = revalidate,
34001 cat - <<_ACEOF >conftest.h
34006 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
34007 echo "obj-m := conftest.o" >build
/Makefile
34009 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
34010 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
34011 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
34012 (eval $ac_try) 2>&5
34014 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
34015 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
34016 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
34017 (eval $ac_try) 2>&5
34019 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
34020 test $ac_status = 0; }; }; then :
34022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34023 $as_echo "yes" >&6; }
34025 $as_echo "#define HAVE_D_REVALIDATE_NAMEIDATA 1" >>confdefs.h
34029 $as_echo "$as_me: failed program was:" >&5
34030 sed 's/^/| /' conftest.
$ac_ext >&5
34032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34033 $as_echo "no" >&6; }
34043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether dentry uses const struct dentry_operations" >&5
34044 $as_echo_n "checking whether dentry uses const struct dentry_operations... " >&6; }
34047 cat confdefs.h
- <<_ACEOF >conftest.c
34050 #include <linux/dcache.h>
34052 const struct dentry_operations test_d_op = {
34053 .d_revalidate = NULL,
34060 struct dentry d __attribute__ ((unused));
34062 d.d_op = &test_d_op;
34072 cat - <<_ACEOF >conftest.h
34077 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
34078 echo "obj-m := conftest.o" >build
/Makefile
34080 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
34081 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
34082 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
34083 (eval $ac_try) 2>&5
34085 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
34086 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
34087 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
34088 (eval $ac_try) 2>&5
34090 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
34091 test $ac_status = 0; }; }; then :
34093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34094 $as_echo "yes" >&6; }
34096 $as_echo "#define HAVE_CONST_DENTRY_OPERATIONS 1" >>confdefs.h
34100 $as_echo "$as_me: failed program was:" >&5
34101 sed 's/^/| /' conftest.
$ac_ext >&5
34103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34104 $as_echo "no" >&6; }
34113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether check_disk_size_change() is available" >&5
34114 $as_echo_n "checking whether check_disk_size_change() is available... " >&6; }
34118 cat confdefs.h
- <<_ACEOF >conftest.c
34121 #include <linux/fs.h>
34127 check_disk_size_change(NULL, NULL);
34137 cat - <<_ACEOF >conftest.h
34142 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
34143 echo "obj-m := conftest.o" >build
/Makefile
34145 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
34146 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
34147 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
34148 (eval $ac_try) 2>&5
34150 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
34151 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
34152 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
34153 (eval $ac_try) 2>&5
34155 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
34156 test $ac_status = 0; }; }; then :
34159 $as_echo "$as_me: failed program was:" >&5
34160 sed 's/^/| /' conftest.
$ac_ext >&5
34168 if test $rc -ne 0; then :
34170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34171 $as_echo "no" >&6; }
34174 if test "x$enable_linux_builtin" != xyes
; then
34176 grep -q -E '[[:space:]]check_disk_size_change[[:space:]]' \
34177 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
34179 if test $rc -ne 0; then
34181 for file in fs
/block_dev.c
; do
34182 grep -q -E "EXPORT_SYMBOL.*(check_disk_size_change)" \
34183 "$LINUX/$file" 2>/dev
/null
34185 if test $rc -eq 0; then
34190 if test $export -eq 0; then :
34200 if test $rc -ne 0; then :
34202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34203 $as_echo "no" >&6; }
34207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34208 $as_echo "yes" >&6; }
34210 $as_echo "#define HAVE_CHECK_DISK_SIZE_CHANGE 1" >>confdefs.h
34217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether truncate_setsize() is available" >&5
34218 $as_echo_n "checking whether truncate_setsize() is available... " >&6; }
34222 cat confdefs.h
- <<_ACEOF >conftest.c
34225 #include <linux/mm.h>
34231 truncate_setsize(NULL, 0);
34241 cat - <<_ACEOF >conftest.h
34246 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
34247 echo "obj-m := conftest.o" >build
/Makefile
34249 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
34250 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
34251 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
34252 (eval $ac_try) 2>&5
34254 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
34255 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
34256 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
34257 (eval $ac_try) 2>&5
34259 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
34260 test $ac_status = 0; }; }; then :
34263 $as_echo "$as_me: failed program was:" >&5
34264 sed 's/^/| /' conftest.
$ac_ext >&5
34272 if test $rc -ne 0; then :
34274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34275 $as_echo "no" >&6; }
34278 if test "x$enable_linux_builtin" != xyes
; then
34280 grep -q -E '[[:space:]]truncate_setsize[[:space:]]' \
34281 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
34283 if test $rc -ne 0; then
34285 for file in mm
/truncate.c
; do
34286 grep -q -E "EXPORT_SYMBOL.*(truncate_setsize)" \
34287 "$LINUX/$file" 2>/dev
/null
34289 if test $rc -eq 0; then
34294 if test $export -eq 0; then :
34304 if test $rc -ne 0; then :
34306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34307 $as_echo "no" >&6; }
34311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34312 $as_echo "yes" >&6; }
34314 $as_echo "#define HAVE_TRUNCATE_SETSIZE 1" >>confdefs.h
34322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether security_inode_init_security wants 6 args" >&5
34323 $as_echo_n "checking whether security_inode_init_security wants 6 args... " >&6; }
34326 cat confdefs.h
- <<_ACEOF >conftest.c
34329 #include <linux/security.h>
34335 struct inode *ip __attribute__ ((unused)) = NULL;
34336 struct inode *dip __attribute__ ((unused)) = NULL;
34337 const struct qstr *str __attribute__ ((unused)) = NULL;
34338 char *name __attribute__ ((unused)) = NULL;
34339 void *value __attribute__ ((unused)) = NULL;
34340 size_t len __attribute__ ((unused)) = 0;
34342 security_inode_init_security(ip, dip, str, &name, &value, &len);
34352 cat - <<_ACEOF >conftest.h
34357 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
34358 echo "obj-m := conftest.o" >build
/Makefile
34360 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
34361 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
34362 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
34363 (eval $ac_try) 2>&5
34365 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
34366 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
34367 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
34368 (eval $ac_try) 2>&5
34370 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
34371 test $ac_status = 0; }; }; then :
34373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34374 $as_echo "yes" >&6; }
34376 $as_echo "#define HAVE_6ARGS_SECURITY_INODE_INIT_SECURITY 1" >>confdefs.h
34380 $as_echo "$as_me: failed program was:" >&5
34381 sed 's/^/| /' conftest.
$ac_ext >&5
34383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34384 $as_echo "no" >&6; }
34394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether security_inode_init_security wants callback" >&5
34395 $as_echo_n "checking whether security_inode_init_security wants callback... " >&6; }
34398 cat confdefs.h
- <<_ACEOF >conftest.c
34401 #include <linux/security.h>
34407 struct inode *ip __attribute__ ((unused)) = NULL;
34408 struct inode *dip __attribute__ ((unused)) = NULL;
34409 const struct qstr *str __attribute__ ((unused)) = NULL;
34410 initxattrs func __attribute__ ((unused)) = NULL;
34412 security_inode_init_security(ip, dip, str, func, NULL);
34422 cat - <<_ACEOF >conftest.h
34427 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
34428 echo "obj-m := conftest.o" >build
/Makefile
34430 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
34431 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
34432 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
34433 (eval $ac_try) 2>&5
34435 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
34436 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
34437 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
34438 (eval $ac_try) 2>&5
34440 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
34441 test $ac_status = 0; }; }; then :
34443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34444 $as_echo "yes" >&6; }
34446 $as_echo "#define HAVE_CALLBACK_SECURITY_INODE_INIT_SECURITY 1" >>confdefs.h
34450 $as_echo "$as_me: failed program was:" >&5
34451 sed 's/^/| /' conftest.
$ac_ext >&5
34453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34454 $as_echo "no" >&6; }
34463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mount_nodev() is available" >&5
34464 $as_echo_n "checking whether mount_nodev() is available... " >&6; }
34468 cat confdefs.h
- <<_ACEOF >conftest.c
34471 #include <linux/fs.h>
34477 mount_nodev(NULL, 0, NULL, NULL);
34487 cat - <<_ACEOF >conftest.h
34492 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
34493 echo "obj-m := conftest.o" >build
/Makefile
34495 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
34496 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
34497 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
34498 (eval $ac_try) 2>&5
34500 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
34501 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
34502 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
34503 (eval $ac_try) 2>&5
34505 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
34506 test $ac_status = 0; }; }; then :
34509 $as_echo "$as_me: failed program was:" >&5
34510 sed 's/^/| /' conftest.
$ac_ext >&5
34518 if test $rc -ne 0; then :
34520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34521 $as_echo "no" >&6; }
34524 if test "x$enable_linux_builtin" != xyes
; then
34526 grep -q -E '[[:space:]]mount_nodev[[:space:]]' \
34527 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
34529 if test $rc -ne 0; then
34531 for file in fs
/super.c
; do
34532 grep -q -E "EXPORT_SYMBOL.*(mount_nodev)" \
34533 "$LINUX/$file" 2>/dev
/null
34535 if test $rc -eq 0; then
34540 if test $export -eq 0; then :
34550 if test $rc -ne 0; then :
34552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34553 $as_echo "no" >&6; }
34557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34558 $as_echo "yes" >&6; }
34560 $as_echo "#define HAVE_MOUNT_NODEV 1" >>confdefs.h
34568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether super_block has s_shrink" >&5
34569 $as_echo_n "checking whether super_block has s_shrink... " >&6; }
34572 cat confdefs.h
- <<_ACEOF >conftest.c
34575 #include <linux/fs.h>
34577 int shrink(struct shrinker *s, struct shrink_control *sc)
34580 static const struct super_block
34581 sb __attribute__ ((unused)) = {
34582 .s_shrink.shrink = shrink,
34583 .s_shrink.seeks = DEFAULT_SEEKS,
34584 .s_shrink.batch = 0,
34600 cat - <<_ACEOF >conftest.h
34605 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
34606 echo "obj-m := conftest.o" >build
/Makefile
34608 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
34609 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
34610 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
34611 (eval $ac_try) 2>&5
34613 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
34614 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
34615 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
34616 (eval $ac_try) 2>&5
34618 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
34619 test $ac_status = 0; }; }; then :
34621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34622 $as_echo "yes" >&6; }
34624 $as_echo "#define HAVE_SHRINK 1" >>confdefs.h
34629 $as_echo "$as_me: failed program was:" >&5
34630 sed 's/^/| /' conftest.
$ac_ext >&5
34632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34633 $as_echo "no" >&6; }
34643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether shrink_control has nid" >&5
34644 $as_echo_n "checking whether shrink_control has nid... " >&6; }
34647 cat confdefs.h
- <<_ACEOF >conftest.c
34650 #include <linux/fs.h>
34656 struct shrink_control sc __attribute__ ((unused));
34657 unsigned long scnidsize __attribute__ ((unused)) =
34668 cat - <<_ACEOF >conftest.h
34673 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
34674 echo "obj-m := conftest.o" >build
/Makefile
34676 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
34677 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
34678 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
34679 (eval $ac_try) 2>&5
34681 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
34682 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
34683 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
34684 (eval $ac_try) 2>&5
34686 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
34687 test $ac_status = 0; }; }; then :
34689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34690 $as_echo "yes" >&6; }
34692 $as_echo "#define SHRINK_CONTROL_HAS_NID 1" >>confdefs.h
34696 $as_echo "$as_me: failed program was:" >&5
34697 sed 's/^/| /' conftest.
$ac_ext >&5
34699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34700 $as_echo "no" >&6; }
34710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether super_block has s_instances list_head" >&5
34711 $as_echo_n "checking whether super_block has s_instances list_head... " >&6; }
34714 cat confdefs.h
- <<_ACEOF >conftest.c
34717 #include <linux/fs.h>
34723 struct super_block sb __attribute__ ((unused));
34725 INIT_LIST_HEAD(&sb.s_instances);
34735 cat - <<_ACEOF >conftest.h
34740 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
34741 echo "obj-m := conftest.o" >build
/Makefile
34743 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
34744 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
34745 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
34746 (eval $ac_try) 2>&5
34748 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
34749 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
34750 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
34751 (eval $ac_try) 2>&5
34753 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
34754 test $ac_status = 0; }; }; then :
34756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34757 $as_echo "yes" >&6; }
34759 $as_echo "#define HAVE_S_INSTANCES_LIST_HEAD 1" >>confdefs.h
34763 $as_echo "$as_me: failed program was:" >&5
34764 sed 's/^/| /' conftest.
$ac_ext >&5
34766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34767 $as_echo "no" >&6; }
34776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether super_block has s_d_op" >&5
34777 $as_echo_n "checking whether super_block has s_d_op... " >&6; }
34780 cat confdefs.h
- <<_ACEOF >conftest.c
34783 #include <linux/fs.h>
34789 struct super_block sb __attribute__ ((unused));
34800 cat - <<_ACEOF >conftest.h
34805 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
34806 echo "obj-m := conftest.o" >build
/Makefile
34808 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
34809 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
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; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
34815 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
34816 (eval $ac_try) 2>&5
34818 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
34819 test $ac_status = 0; }; }; then :
34821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34822 $as_echo "yes" >&6; }
34824 $as_echo "#define HAVE_S_D_OP 1" >>confdefs.h
34828 $as_echo "$as_me: failed program was:" >&5
34829 sed 's/^/| /' conftest.
$ac_ext >&5
34831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34832 $as_echo "no" >&6; }
34842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether super_setup_bdi_name() exists" >&5
34843 $as_echo_n "checking whether super_setup_bdi_name() exists... " >&6; }
34847 cat confdefs.h
- <<_ACEOF >conftest.c
34850 #include <linux/fs.h>
34851 struct super_block sb;
34857 char *name = "bdi";
34858 int error __attribute__((unused)) =
34859 super_setup_bdi_name(&sb, name);
34869 cat - <<_ACEOF >conftest.h
34874 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
34875 echo "obj-m := conftest.o" >build
/Makefile
34877 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
34878 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
34879 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
34880 (eval $ac_try) 2>&5
34882 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
34883 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
34884 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
34885 (eval $ac_try) 2>&5
34887 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
34888 test $ac_status = 0; }; }; then :
34891 $as_echo "$as_me: failed program was:" >&5
34892 sed 's/^/| /' conftest.
$ac_ext >&5
34900 if test $rc -ne 0; then :
34902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34903 $as_echo "no" >&6; }
34904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether bdi_setup_and_register() wants 2 args" >&5
34905 $as_echo_n "checking whether bdi_setup_and_register() wants 2 args... " >&6; }
34909 cat confdefs.h
- <<_ACEOF >conftest.c
34912 #include <linux/backing-dev.h>
34913 struct backing_dev_info bdi;
34919 char *name = "bdi";
34920 int error __attribute__((unused)) =
34921 bdi_setup_and_register(&bdi, name);
34931 cat - <<_ACEOF >conftest.h
34936 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
34937 echo "obj-m := conftest.o" >build
/Makefile
34939 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
34940 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
34941 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
34942 (eval $ac_try) 2>&5
34944 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
34945 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
34946 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
34947 (eval $ac_try) 2>&5
34949 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
34950 test $ac_status = 0; }; }; then :
34953 $as_echo "$as_me: failed program was:" >&5
34954 sed 's/^/| /' conftest.
$ac_ext >&5
34962 if test $rc -ne 0; then :
34964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34965 $as_echo "no" >&6; }
34966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether bdi_setup_and_register() wants 3 args" >&5
34967 $as_echo_n "checking whether bdi_setup_and_register() wants 3 args... " >&6; }
34971 cat confdefs.h
- <<_ACEOF >conftest.c
34974 #include <linux/backing-dev.h>
34975 struct backing_dev_info bdi;
34981 char *name = "bdi";
34982 unsigned int cap = BDI_CAP_MAP_COPY;
34983 int error __attribute__((unused)) =
34984 bdi_setup_and_register(&bdi, name, cap);
34994 cat - <<_ACEOF >conftest.h
34999 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
35000 echo "obj-m := conftest.o" >build
/Makefile
35002 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
35003 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
35004 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
35005 (eval $ac_try) 2>&5
35007 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
35008 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
35009 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
35010 (eval $ac_try) 2>&5
35012 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
35013 test $ac_status = 0; }; }; then :
35016 $as_echo "$as_me: failed program was:" >&5
35017 sed 's/^/| /' conftest.
$ac_ext >&5
35025 if test $rc -ne 0; then :
35027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35028 $as_echo "no" >&6; }
35031 if test "x$enable_linux_builtin" != xyes
; then
35033 grep -q -E '[[:space:]]bdi_setup_and_register[[:space:]]' \
35034 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
35036 if test $rc -ne 0; then
35038 for file in mm
/backing-dev.c
; do
35039 grep -q -E "EXPORT_SYMBOL.*(bdi_setup_and_register)" \
35040 "$LINUX/$file" 2>/dev
/null
35042 if test $rc -eq 0; then
35047 if test $export -eq 0; then :
35057 if test $rc -ne 0; then :
35059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35060 $as_echo "no" >&6; }
35064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35065 $as_echo "yes" >&6; }
35067 $as_echo "#define HAVE_3ARGS_BDI_SETUP_AND_REGISTER 1" >>confdefs.h
35075 if test "x$enable_linux_builtin" != xyes
; then
35077 grep -q -E '[[:space:]]bdi_setup_and_register[[:space:]]' \
35078 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
35080 if test $rc -ne 0; then
35082 for file in mm
/backing-dev.c
; do
35083 grep -q -E "EXPORT_SYMBOL.*(bdi_setup_and_register)" \
35084 "$LINUX/$file" 2>/dev
/null
35086 if test $rc -eq 0; then
35091 if test $export -eq 0; then :
35101 if test $rc -ne 0; then :
35103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35104 $as_echo "no" >&6; }
35105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether bdi_setup_and_register() wants 3 args" >&5
35106 $as_echo_n "checking whether bdi_setup_and_register() wants 3 args... " >&6; }
35110 cat confdefs.h
- <<_ACEOF >conftest.c
35113 #include <linux/backing-dev.h>
35114 struct backing_dev_info bdi;
35120 char *name = "bdi";
35121 unsigned int cap = BDI_CAP_MAP_COPY;
35122 int error __attribute__((unused)) =
35123 bdi_setup_and_register(&bdi, name, cap);
35133 cat - <<_ACEOF >conftest.h
35138 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
35139 echo "obj-m := conftest.o" >build
/Makefile
35141 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
35142 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
35143 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
35144 (eval $ac_try) 2>&5
35146 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
35147 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
35148 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
35149 (eval $ac_try) 2>&5
35151 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
35152 test $ac_status = 0; }; }; then :
35155 $as_echo "$as_me: failed program was:" >&5
35156 sed 's/^/| /' conftest.
$ac_ext >&5
35164 if test $rc -ne 0; then :
35166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35167 $as_echo "no" >&6; }
35170 if test "x$enable_linux_builtin" != xyes
; then
35172 grep -q -E '[[:space:]]bdi_setup_and_register[[:space:]]' \
35173 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
35175 if test $rc -ne 0; then
35177 for file in mm
/backing-dev.c
; do
35178 grep -q -E "EXPORT_SYMBOL.*(bdi_setup_and_register)" \
35179 "$LINUX/$file" 2>/dev
/null
35181 if test $rc -eq 0; then
35186 if test $export -eq 0; then :
35196 if test $rc -ne 0; then :
35198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35199 $as_echo "no" >&6; }
35203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35204 $as_echo "yes" >&6; }
35206 $as_echo "#define HAVE_3ARGS_BDI_SETUP_AND_REGISTER 1" >>confdefs.h
35215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35216 $as_echo "yes" >&6; }
35218 $as_echo "#define HAVE_2ARGS_BDI_SETUP_AND_REGISTER 1" >>confdefs.h
35226 if test "x$enable_linux_builtin" != xyes
; then
35228 grep -q -E '[[:space:]]super_setup_bdi_name[[:space:]]' \
35229 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
35231 if test $rc -ne 0; then
35233 for file in fs
/super.c
; do
35234 grep -q -E "EXPORT_SYMBOL.*(super_setup_bdi_name)" \
35235 "$LINUX/$file" 2>/dev
/null
35237 if test $rc -eq 0; then
35242 if test $export -eq 0; then :
35252 if test $rc -ne 0; then :
35254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35255 $as_echo "no" >&6; }
35256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether bdi_setup_and_register() wants 2 args" >&5
35257 $as_echo_n "checking whether bdi_setup_and_register() wants 2 args... " >&6; }
35261 cat confdefs.h
- <<_ACEOF >conftest.c
35264 #include <linux/backing-dev.h>
35265 struct backing_dev_info bdi;
35271 char *name = "bdi";
35272 int error __attribute__((unused)) =
35273 bdi_setup_and_register(&bdi, name);
35283 cat - <<_ACEOF >conftest.h
35288 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
35289 echo "obj-m := conftest.o" >build
/Makefile
35291 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
35292 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
35293 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
35294 (eval $ac_try) 2>&5
35296 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
35297 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
35298 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
35299 (eval $ac_try) 2>&5
35301 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
35302 test $ac_status = 0; }; }; then :
35305 $as_echo "$as_me: failed program was:" >&5
35306 sed 's/^/| /' conftest.
$ac_ext >&5
35314 if test $rc -ne 0; then :
35316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35317 $as_echo "no" >&6; }
35318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether bdi_setup_and_register() wants 3 args" >&5
35319 $as_echo_n "checking whether bdi_setup_and_register() wants 3 args... " >&6; }
35323 cat confdefs.h
- <<_ACEOF >conftest.c
35326 #include <linux/backing-dev.h>
35327 struct backing_dev_info bdi;
35333 char *name = "bdi";
35334 unsigned int cap = BDI_CAP_MAP_COPY;
35335 int error __attribute__((unused)) =
35336 bdi_setup_and_register(&bdi, name, cap);
35346 cat - <<_ACEOF >conftest.h
35351 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
35352 echo "obj-m := conftest.o" >build
/Makefile
35354 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
35355 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
35356 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
35357 (eval $ac_try) 2>&5
35359 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
35360 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
35361 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
35362 (eval $ac_try) 2>&5
35364 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
35365 test $ac_status = 0; }; }; then :
35368 $as_echo "$as_me: failed program was:" >&5
35369 sed 's/^/| /' conftest.
$ac_ext >&5
35377 if test $rc -ne 0; then :
35379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35380 $as_echo "no" >&6; }
35383 if test "x$enable_linux_builtin" != xyes
; then
35385 grep -q -E '[[:space:]]bdi_setup_and_register[[:space:]]' \
35386 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
35388 if test $rc -ne 0; then
35390 for file in mm
/backing-dev.c
; do
35391 grep -q -E "EXPORT_SYMBOL.*(bdi_setup_and_register)" \
35392 "$LINUX/$file" 2>/dev
/null
35394 if test $rc -eq 0; then
35399 if test $export -eq 0; then :
35409 if test $rc -ne 0; then :
35411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35412 $as_echo "no" >&6; }
35416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35417 $as_echo "yes" >&6; }
35419 $as_echo "#define HAVE_3ARGS_BDI_SETUP_AND_REGISTER 1" >>confdefs.h
35427 if test "x$enable_linux_builtin" != xyes
; then
35429 grep -q -E '[[:space:]]bdi_setup_and_register[[:space:]]' \
35430 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
35432 if test $rc -ne 0; then
35434 for file in mm
/backing-dev.c
; do
35435 grep -q -E "EXPORT_SYMBOL.*(bdi_setup_and_register)" \
35436 "$LINUX/$file" 2>/dev
/null
35438 if test $rc -eq 0; then
35443 if test $export -eq 0; then :
35453 if test $rc -ne 0; then :
35455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35456 $as_echo "no" >&6; }
35457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether bdi_setup_and_register() wants 3 args" >&5
35458 $as_echo_n "checking whether bdi_setup_and_register() wants 3 args... " >&6; }
35462 cat confdefs.h
- <<_ACEOF >conftest.c
35465 #include <linux/backing-dev.h>
35466 struct backing_dev_info bdi;
35472 char *name = "bdi";
35473 unsigned int cap = BDI_CAP_MAP_COPY;
35474 int error __attribute__((unused)) =
35475 bdi_setup_and_register(&bdi, name, cap);
35485 cat - <<_ACEOF >conftest.h
35490 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
35491 echo "obj-m := conftest.o" >build
/Makefile
35493 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
35494 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
35495 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
35496 (eval $ac_try) 2>&5
35498 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
35499 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
35500 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
35501 (eval $ac_try) 2>&5
35503 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
35504 test $ac_status = 0; }; }; then :
35507 $as_echo "$as_me: failed program was:" >&5
35508 sed 's/^/| /' conftest.
$ac_ext >&5
35516 if test $rc -ne 0; then :
35518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35519 $as_echo "no" >&6; }
35522 if test "x$enable_linux_builtin" != xyes
; then
35524 grep -q -E '[[:space:]]bdi_setup_and_register[[:space:]]' \
35525 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
35527 if test $rc -ne 0; then
35529 for file in mm
/backing-dev.c
; do
35530 grep -q -E "EXPORT_SYMBOL.*(bdi_setup_and_register)" \
35531 "$LINUX/$file" 2>/dev
/null
35533 if test $rc -eq 0; then
35538 if test $export -eq 0; then :
35548 if test $rc -ne 0; then :
35550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35551 $as_echo "no" >&6; }
35555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35556 $as_echo "yes" >&6; }
35558 $as_echo "#define HAVE_3ARGS_BDI_SETUP_AND_REGISTER 1" >>confdefs.h
35567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35568 $as_echo "yes" >&6; }
35570 $as_echo "#define HAVE_2ARGS_BDI_SETUP_AND_REGISTER 1" >>confdefs.h
35579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35580 $as_echo "yes" >&6; }
35582 $as_echo "#define HAVE_SUPER_SETUP_BDI_NAME 1" >>confdefs.h
35590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether set_nlink() is available" >&5
35591 $as_echo_n "checking whether set_nlink() is available... " >&6; }
35594 cat confdefs.h
- <<_ACEOF >conftest.c
35597 #include <linux/fs.h>
35604 unsigned int link = 0;
35605 (void) set_nlink(&node, link);
35615 cat - <<_ACEOF >conftest.h
35620 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
35621 echo "obj-m := conftest.o" >build
/Makefile
35623 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
35624 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
35625 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
35626 (eval $ac_try) 2>&5
35628 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
35629 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
35630 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
35631 (eval $ac_try) 2>&5
35633 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
35634 test $ac_status = 0; }; }; then :
35636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35637 $as_echo "yes" >&6; }
35639 $as_echo "#define HAVE_SET_NLINK 1" >>confdefs.h
35643 $as_echo "$as_me: failed program was:" >&5
35644 sed 's/^/| /' conftest.
$ac_ext >&5
35646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35647 $as_echo "no" >&6; }
35657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether elevator_change() is available" >&5
35658 $as_echo_n "checking whether elevator_change() is available... " >&6; }
35659 tmp_flags
="$EXTRA_KCFLAGS"
35660 EXTRA_KCFLAGS
="${NO_UNUSED_BUT_SET_VARIABLE}"
35663 cat confdefs.h
- <<_ACEOF >conftest.c
35666 #include <linux/blkdev.h>
35667 #include <linux/elevator.h>
35674 struct request_queue *q = NULL;
35675 char *elevator = NULL;
35676 ret = elevator_change(q, elevator);
35686 cat - <<_ACEOF >conftest.h
35691 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
35692 echo "obj-m := conftest.o" >build
/Makefile
35694 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
35695 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
35696 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
35697 (eval $ac_try) 2>&5
35699 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
35700 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
35701 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
35702 (eval $ac_try) 2>&5
35704 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
35705 test $ac_status = 0; }; }; then :
35707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35708 $as_echo "yes" >&6; }
35710 $as_echo "#define HAVE_ELEVATOR_CHANGE 1" >>confdefs.h
35714 $as_echo "$as_me: failed program was:" >&5
35715 sed 's/^/| /' conftest.
$ac_ext >&5
35717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35718 $as_echo "no" >&6; }
35726 EXTRA_KCFLAGS
="$tmp_flags"
35728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sget() wants 5 args" >&5
35729 $as_echo_n "checking whether sget() wants 5 args... " >&6; }
35732 cat confdefs.h
- <<_ACEOF >conftest.c
35735 #include <linux/fs.h>
35741 struct file_system_type *type = NULL;
35742 int (*test)(struct super_block *,void *) = NULL;
35743 int (*set)(struct super_block *,void *) = NULL;
35746 (void) sget(type, test, set, flags, data);
35756 cat - <<_ACEOF >conftest.h
35761 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
35762 echo "obj-m := conftest.o" >build
/Makefile
35764 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
35765 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
35766 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
35767 (eval $ac_try) 2>&5
35769 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
35770 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
35771 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
35772 (eval $ac_try) 2>&5
35774 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
35775 test $ac_status = 0; }; }; then :
35777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35778 $as_echo "yes" >&6; }
35780 $as_echo "#define HAVE_5ARG_SGET 1" >>confdefs.h
35784 $as_echo "$as_me: failed program was:" >&5
35785 sed 's/^/| /' conftest.
$ac_ext >&5
35787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35788 $as_echo "no" >&6; }
35797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lseek_execute() is available" >&5
35798 $as_echo_n "checking whether lseek_execute() is available... " >&6; }
35802 cat confdefs.h
- <<_ACEOF >conftest.c
35805 #include <linux/fs.h>
35811 struct file *fp __attribute__ ((unused)) = NULL;
35812 struct inode *ip __attribute__ ((unused)) = NULL;
35813 loff_t offset __attribute__ ((unused)) = 0;
35814 loff_t maxsize __attribute__ ((unused)) = 0;
35816 lseek_execute(fp, ip, offset, maxsize);
35826 cat - <<_ACEOF >conftest.h
35831 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
35832 echo "obj-m := conftest.o" >build
/Makefile
35834 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
35835 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
35836 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
35837 (eval $ac_try) 2>&5
35839 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
35840 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
35841 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
35842 (eval $ac_try) 2>&5
35844 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
35845 test $ac_status = 0; }; }; then :
35848 $as_echo "$as_me: failed program was:" >&5
35849 sed 's/^/| /' conftest.
$ac_ext >&5
35857 if test $rc -ne 0; then :
35859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35860 $as_echo "no" >&6; }
35863 if test "x$enable_linux_builtin" != xyes
; then
35865 grep -q -E '[[:space:]]lseek_exclusive[[:space:]]' \
35866 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
35868 if test $rc -ne 0; then
35870 for file in fs
/read_write.c
; do
35871 grep -q -E "EXPORT_SYMBOL.*(lseek_exclusive)" \
35872 "$LINUX/$file" 2>/dev
/null
35874 if test $rc -eq 0; then
35879 if test $export -eq 0; then :
35889 if test $rc -ne 0; then :
35891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35892 $as_echo "no" >&6; }
35896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35897 $as_echo "yes" >&6; }
35899 $as_echo "#define HAVE_LSEEK_EXECUTE 1" >>confdefs.h
35907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fops->iterate_shared() is available" >&5
35908 $as_echo_n "checking whether fops->iterate_shared() is available... " >&6; }
35911 cat confdefs.h
- <<_ACEOF >conftest.c
35914 #include <linux/fs.h>
35915 int iterate(struct file *filp, struct dir_context * context)
35918 static const struct file_operations fops
35919 __attribute__ ((unused)) = {
35920 .iterate_shared = iterate,
35936 cat - <<_ACEOF >conftest.h
35941 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
35942 echo "obj-m := conftest.o" >build
/Makefile
35944 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
35945 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
35946 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
35947 (eval $ac_try) 2>&5
35949 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
35950 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
35951 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
35952 (eval $ac_try) 2>&5
35954 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
35955 test $ac_status = 0; }; }; then :
35957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35958 $as_echo "yes" >&6; }
35960 $as_echo "#define HAVE_VFS_ITERATE_SHARED 1" >>confdefs.h
35964 $as_echo "$as_me: failed program was:" >&5
35965 sed 's/^/| /' conftest.
$ac_ext >&5
35967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35968 $as_echo "no" >&6; }
35970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fops->iterate() is available" >&5
35971 $as_echo_n "checking whether fops->iterate() is available... " >&6; }
35974 cat confdefs.h
- <<_ACEOF >conftest.c
35977 #include <linux/fs.h>
35978 int iterate(struct file *filp, struct dir_context * context)
35981 static const struct file_operations fops
35982 __attribute__ ((unused)) = {
35983 .iterate = iterate,
35999 cat - <<_ACEOF >conftest.h
36004 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
36005 echo "obj-m := conftest.o" >build
/Makefile
36007 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
36008 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
36009 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
36010 (eval $ac_try) 2>&5
36012 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
36013 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
36014 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
36015 (eval $ac_try) 2>&5
36017 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
36018 test $ac_status = 0; }; }; then :
36020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36021 $as_echo "yes" >&6; }
36023 $as_echo "#define HAVE_VFS_ITERATE 1" >>confdefs.h
36027 $as_echo "$as_me: failed program was:" >&5
36028 sed 's/^/| /' conftest.
$ac_ext >&5
36030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36031 $as_echo "no" >&6; }
36033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fops->readdir() is available" >&5
36034 $as_echo_n "checking whether fops->readdir() is available... " >&6; }
36037 cat confdefs.h
- <<_ACEOF >conftest.c
36040 #include <linux/fs.h>
36041 int readdir(struct file *filp, void *entry, filldir_t func)
36044 static const struct file_operations fops
36045 __attribute__ ((unused)) = {
36046 .readdir = readdir,
36062 cat - <<_ACEOF >conftest.h
36067 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
36068 echo "obj-m := conftest.o" >build
/Makefile
36070 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
36071 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
36072 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
36073 (eval $ac_try) 2>&5
36075 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
36076 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
36077 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
36078 (eval $ac_try) 2>&5
36080 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
36081 test $ac_status = 0; }; }; then :
36083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36084 $as_echo "yes" >&6; }
36086 $as_echo "#define HAVE_VFS_READDIR 1" >>confdefs.h
36090 $as_echo "$as_me: failed program was:" >&5
36091 sed 's/^/| /' conftest.
$ac_ext >&5
36093 as_fn_error $?
"no; file a bug report with ZFSOnLinux" "$LINENO" 5
36116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fops->read/write_iter() are available" >&5
36117 $as_echo_n "checking whether fops->read/write_iter() are available... " >&6; }
36120 cat confdefs.h
- <<_ACEOF >conftest.c
36123 #include <linux/fs.h>
36125 ssize_t test_read(struct kiocb *kiocb, struct iov_iter *to)
36127 ssize_t test_write(struct kiocb *kiocb, struct iov_iter *from)
36130 static const struct file_operations
36131 fops __attribute__ ((unused)) = {
36132 .read_iter = test_read,
36133 .write_iter = test_write,
36149 cat - <<_ACEOF >conftest.h
36154 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
36155 echo "obj-m := conftest.o" >build
/Makefile
36157 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
36158 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
36159 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
36160 (eval $ac_try) 2>&5
36162 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
36163 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
36164 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
36165 (eval $ac_try) 2>&5
36167 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
36168 test $ac_status = 0; }; }; then :
36170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36171 $as_echo "yes" >&6; }
36173 $as_echo "#define HAVE_VFS_RW_ITERATE 1" >>confdefs.h
36176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether new_sync_read() is available" >&5
36177 $as_echo_n "checking whether new_sync_read() is available... " >&6; }
36180 cat confdefs.h
- <<_ACEOF >conftest.c
36183 #include <linux/fs.h>
36189 new_sync_read(NULL, NULL, 0, NULL);
36199 cat - <<_ACEOF >conftest.h
36204 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
36205 echo "obj-m := conftest.o" >build
/Makefile
36207 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
36208 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
36209 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
36210 (eval $ac_try) 2>&5
36212 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
36213 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
36214 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
36215 (eval $ac_try) 2>&5
36217 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
36218 test $ac_status = 0; }; }; then :
36220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36221 $as_echo "yes" >&6; }
36223 $as_echo "#define HAVE_NEW_SYNC_READ 1" >>confdefs.h
36227 $as_echo "$as_me: failed program was:" >&5
36228 sed 's/^/| /' conftest.
$ac_ext >&5
36230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36231 $as_echo "no" >&6; }
36242 $as_echo "$as_me: failed program was:" >&5
36243 sed 's/^/| /' conftest.
$ac_ext >&5
36245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36246 $as_echo "no" >&6; }
36255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether generic_write_checks() takes kiocb" >&5
36256 $as_echo_n "checking whether generic_write_checks() takes kiocb... " >&6; }
36259 cat confdefs.h
- <<_ACEOF >conftest.c
36262 #include <linux/fs.h>
36269 struct kiocb *iocb = NULL;
36270 struct iov_iter *iov = NULL;
36271 generic_write_checks(iocb, iov);
36281 cat - <<_ACEOF >conftest.h
36286 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
36287 echo "obj-m := conftest.o" >build
/Makefile
36289 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
36290 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
36291 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
36292 (eval $ac_try) 2>&5
36294 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
36295 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
36296 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
36297 (eval $ac_try) 2>&5
36299 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
36300 test $ac_status = 0; }; }; then :
36302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36303 $as_echo "yes" >&6; }
36305 $as_echo "#define HAVE_GENERIC_WRITE_CHECKS_KIOCB 1" >>confdefs.h
36309 $as_echo "$as_me: failed program was:" >&5
36310 sed 's/^/| /' conftest.
$ac_ext >&5
36312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36313 $as_echo "no" >&6; }
36323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether kmap_atomic wants 1 args" >&5
36324 $as_echo_n "checking whether kmap_atomic wants 1 args... " >&6; }
36327 cat confdefs.h
- <<_ACEOF >conftest.c
36330 #include <linux/pagemap.h>
36337 kmap_atomic(&page);
36347 cat - <<_ACEOF >conftest.h
36352 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
36353 echo "obj-m := conftest.o" >build
/Makefile
36355 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
36356 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
36357 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
36358 (eval $ac_try) 2>&5
36360 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
36361 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
36362 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
36363 (eval $ac_try) 2>&5
36365 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
36366 test $ac_status = 0; }; }; then :
36368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36369 $as_echo "yes" >&6; }
36371 $as_echo "#define HAVE_1ARG_KMAP_ATOMIC 1" >>confdefs.h
36375 $as_echo "$as_me: failed program was:" >&5
36376 sed 's/^/| /' conftest.
$ac_ext >&5
36378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36379 $as_echo "no" >&6; }
36389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether follow_down_one() is available" >&5
36390 $as_echo_n "checking whether follow_down_one() is available... " >&6; }
36393 cat confdefs.h
- <<_ACEOF >conftest.c
36396 #include <linux/namei.h>
36402 struct path *p = NULL;
36403 follow_down_one(p);
36413 cat - <<_ACEOF >conftest.h
36418 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
36419 echo "obj-m := conftest.o" >build
/Makefile
36421 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
36422 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
36423 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
36424 (eval $ac_try) 2>&5
36426 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
36427 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
36428 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
36429 (eval $ac_try) 2>&5
36431 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
36432 test $ac_status = 0; }; }; then :
36434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36435 $as_echo "yes" >&6; }
36437 $as_echo "#define HAVE_FOLLOW_DOWN_ONE 1" >>confdefs.h
36441 $as_echo "$as_me: failed program was:" >&5
36442 sed 's/^/| /' conftest.
$ac_ext >&5
36444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36445 $as_echo "no" >&6; }
36455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether make_request_fn() returns int" >&5
36456 $as_echo_n "checking whether make_request_fn() returns int... " >&6; }
36459 cat confdefs.h
- <<_ACEOF >conftest.c
36462 #include <linux/blkdev.h>
36464 int make_request(struct request_queue *q, struct bio *bio)
36473 blk_queue_make_request(NULL, &make_request);
36483 cat - <<_ACEOF >conftest.h
36488 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
36489 echo "obj-m := conftest.o" >build
/Makefile
36491 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
36492 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
36493 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
36494 (eval $ac_try) 2>&5
36496 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
36497 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
36498 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
36499 (eval $ac_try) 2>&5
36501 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
36502 test $ac_status = 0; }; }; then :
36504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36505 $as_echo "yes" >&6; }
36507 $as_echo "#define MAKE_REQUEST_FN_RET int" >>confdefs.h
36510 $as_echo "#define HAVE_MAKE_REQUEST_FN_RET_INT 1" >>confdefs.h
36514 $as_echo "$as_me: failed program was:" >&5
36515 sed 's/^/| /' conftest.
$ac_ext >&5
36517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36518 $as_echo "no" >&6; }
36519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether make_request_fn() returns void" >&5
36520 $as_echo_n "checking whether make_request_fn() returns void... " >&6; }
36523 cat confdefs.h
- <<_ACEOF >conftest.c
36526 #include <linux/blkdev.h>
36528 void make_request(struct request_queue *q, struct bio *bio)
36537 blk_queue_make_request(NULL, &make_request);
36547 cat - <<_ACEOF >conftest.h
36552 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
36553 echo "obj-m := conftest.o" >build
/Makefile
36555 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
36556 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
36557 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
36558 (eval $ac_try) 2>&5
36560 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
36561 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
36562 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
36563 (eval $ac_try) 2>&5
36565 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
36566 test $ac_status = 0; }; }; then :
36568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36569 $as_echo "yes" >&6; }
36571 $as_echo "#define MAKE_REQUEST_FN_RET void" >>confdefs.h
36575 $as_echo "$as_me: failed program was:" >&5
36576 sed 's/^/| /' conftest.
$ac_ext >&5
36578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36579 $as_echo "no" >&6; }
36580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether make_request_fn() returns blk_qc_t" >&5
36581 $as_echo_n "checking whether make_request_fn() returns blk_qc_t... " >&6; }
36584 cat confdefs.h
- <<_ACEOF >conftest.c
36587 #include <linux/blkdev.h>
36589 blk_qc_t make_request(struct request_queue *q, struct bio *bio)
36591 return (BLK_QC_T_NONE);
36598 blk_queue_make_request(NULL, &make_request);
36608 cat - <<_ACEOF >conftest.h
36613 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
36614 echo "obj-m := conftest.o" >build
/Makefile
36616 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
36617 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
36618 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
36619 (eval $ac_try) 2>&5
36621 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
36622 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
36623 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
36624 (eval $ac_try) 2>&5
36626 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
36627 test $ac_status = 0; }; }; then :
36629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36630 $as_echo "yes" >&6; }
36632 $as_echo "#define MAKE_REQUEST_FN_RET blk_qc_t" >>confdefs.h
36635 $as_echo "#define HAVE_MAKE_REQUEST_FN_RET_QC 1" >>confdefs.h
36639 $as_echo "$as_me: failed program was:" >&5
36640 sed 's/^/| /' conftest.
$ac_ext >&5
36642 as_fn_error $?
"no - Please file a bug report at
36643 https://github.com/zfsonlinux/zfs/issues/new" "$LINENO" 5
36667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether generic IO accounting symbols are avaliable" >&5
36668 $as_echo_n "checking whether generic IO accounting symbols are avaliable... " >&6; }
36672 cat confdefs.h
- <<_ACEOF >conftest.c
36675 #include <linux/bio.h>
36677 void (*generic_start_io_acct_f)(int, unsigned long,
36678 struct hd_struct *) = &generic_start_io_acct;
36679 void (*generic_end_io_acct_f)(int, struct hd_struct *,
36680 unsigned long) = &generic_end_io_acct;
36686 generic_start_io_acct(0, 0, NULL);
36687 generic_end_io_acct(0, NULL, 0);
36697 cat - <<_ACEOF >conftest.h
36702 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
36703 echo "obj-m := conftest.o" >build
/Makefile
36705 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
36706 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
36707 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
36708 (eval $ac_try) 2>&5
36710 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
36711 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
36712 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
36713 (eval $ac_try) 2>&5
36715 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
36716 test $ac_status = 0; }; }; then :
36719 $as_echo "$as_me: failed program was:" >&5
36720 sed 's/^/| /' conftest.
$ac_ext >&5
36728 if test $rc -ne 0; then :
36730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36731 $as_echo "no" >&6; }
36734 if test "x$enable_linux_builtin" != xyes
; then
36736 grep -q -E '[[:space:]]generic_start_io_acct[[:space:]]' \
36737 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
36739 if test $rc -ne 0; then
36741 for file in block
/bio.c
; do
36742 grep -q -E "EXPORT_SYMBOL.*(generic_start_io_acct)" \
36743 "$LINUX/$file" 2>/dev
/null
36745 if test $rc -eq 0; then
36750 if test $export -eq 0; then :
36760 if test $rc -ne 0; then :
36762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36763 $as_echo "no" >&6; }
36767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36768 $as_echo "yes" >&6; }
36770 $as_echo "#define HAVE_GENERIC_IO_ACCT 1" >>confdefs.h
36778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->rename() wants flags" >&5
36779 $as_echo_n "checking whether iops->rename() wants flags... " >&6; }
36782 cat confdefs.h
- <<_ACEOF >conftest.c
36785 #include <linux/fs.h>
36786 int rename_fn(struct inode *sip, struct dentry *sdp,
36787 struct inode *tip, struct dentry *tdp,
36788 unsigned int flags) { return 0; }
36790 static const struct inode_operations
36791 iops __attribute__ ((unused)) = {
36792 .rename = rename_fn,
36808 cat - <<_ACEOF >conftest.h
36813 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
36814 echo "obj-m := conftest.o" >build
/Makefile
36816 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
36817 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
36818 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
36819 (eval $ac_try) 2>&5
36821 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
36822 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
36823 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
36824 (eval $ac_try) 2>&5
36826 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
36827 test $ac_status = 0; }; }; then :
36829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36830 $as_echo "yes" >&6; }
36832 $as_echo "#define HAVE_RENAME_WANTS_FLAGS 1" >>confdefs.h
36836 $as_echo "$as_me: failed program was:" >&5
36837 sed 's/^/| /' conftest.
$ac_ext >&5
36839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36840 $as_echo "no" >&6; }
36850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether generic_setxattr() exists" >&5
36851 $as_echo_n "checking whether generic_setxattr() exists... " >&6; }
36854 cat confdefs.h
- <<_ACEOF >conftest.c
36857 #include <linux/fs.h>
36858 #include <linux/xattr.h>
36860 static const struct inode_operations
36861 iops __attribute__ ((unused)) = {
36862 .setxattr = generic_setxattr
36878 cat - <<_ACEOF >conftest.h
36883 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
36884 echo "obj-m := conftest.o" >build
/Makefile
36886 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
36887 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
36888 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
36889 (eval $ac_try) 2>&5
36891 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
36892 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
36893 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
36894 (eval $ac_try) 2>&5
36896 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
36897 test $ac_status = 0; }; }; then :
36899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36900 $as_echo "yes" >&6; }
36902 $as_echo "#define HAVE_GENERIC_SETXATTR 1" >>confdefs.h
36906 $as_echo "$as_me: failed program was:" >&5
36907 sed 's/^/| /' conftest.
$ac_ext >&5
36909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36910 $as_echo "no" >&6; }
36919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether current_time() exists" >&5
36920 $as_echo_n "checking whether current_time() exists... " >&6; }
36924 cat confdefs.h
- <<_ACEOF >conftest.c
36927 #include <linux/fs.h>
36934 struct timespec now __attribute__ ((unused));
36936 now = current_time(&ip);
36946 cat - <<_ACEOF >conftest.h
36951 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
36952 echo "obj-m := conftest.o" >build
/Makefile
36954 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
36955 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
36956 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
36957 (eval $ac_try) 2>&5
36959 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
36960 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
36961 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
36962 (eval $ac_try) 2>&5
36964 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
36965 test $ac_status = 0; }; }; then :
36968 $as_echo "$as_me: failed program was:" >&5
36969 sed 's/^/| /' conftest.
$ac_ext >&5
36977 if test $rc -ne 0; then :
36979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36980 $as_echo "no" >&6; }
36983 if test "x$enable_linux_builtin" != xyes
; then
36985 grep -q -E '[[:space:]]current_time[[:space:]]' \
36986 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
36988 if test $rc -ne 0; then
36990 for file in fs
/inode.c
; do
36991 grep -q -E "EXPORT_SYMBOL.*(current_time)" \
36992 "$LINUX/$file" 2>/dev
/null
36994 if test $rc -eq 0; then
36999 if test $export -eq 0; then :
37009 if test $rc -ne 0; then :
37011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37012 $as_echo "no" >&6; }
37016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37017 $as_echo "yes" >&6; }
37019 $as_echo "#define HAVE_CURRENT_TIME 1" >>confdefs.h
37027 if test "$LINUX_OBJ" != "$LINUX"; then :
37029 KERNELMAKE_PARAMS
="$KERNELMAKE_PARAMS O=$LINUX_OBJ"
37035 KERNELCPPFLAGS
="$KERNELCPPFLAGS $NO_UNUSED_BUT_SET_VARIABLE"
37036 KERNELCPPFLAGS
="$KERNELCPPFLAGS $NO_BOOL_COMPARE"
37037 KERNELCPPFLAGS
="$KERNELCPPFLAGS -DHAVE_SPL -D_KERNEL"
37038 KERNELCPPFLAGS
="$KERNELCPPFLAGS -DTEXT_DOMAIN=\\\"zfs-linux-kernel\\\""
37044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dkms.conf file" >&5
37045 $as_echo_n "checking for dkms.conf file... " >&6; }
37046 if test -e dkms.conf
; then :
37049 *** ZFS should not be manually built in the DKMS source tree.
37050 *** Remove all ZFS packages before compiling the ZoL sources.
37051 *** Running \"make install\" breaks ZFS packages." "$LINENO" 5
37055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
37056 $as_echo "not found" >&6; }
37062 # Check whether --with-mounthelperdir was given.
37063 if test "${with_mounthelperdir+set}" = set; then :
37064 withval
=$with_mounthelperdir; mounthelperdir
=$withval
37066 mounthelperdir
=/sbin
37073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for udev directories" >&5
37074 $as_echo_n "checking for udev directories... " >&6; }
37076 # Check whether --with-udevdir was given.
37077 if test "${with_udevdir+set}" = set; then :
37078 withval
=$with_udevdir; udevdir
=$withval
37084 if test "x$udevdir" = xcheck
; then :
37087 path2
=/usr
/lib
/udev
37090 if test -d "$path1"; then :
37094 if test -d "$path2"; then :
37105 # Check whether --with-udevruledir was given.
37106 if test "${with_udevruledir+set}" = set; then :
37107 withval
=$with_udevruledir; udevruledir
=$withval
37109 udevruledir
="${udevdir}/rules.d"
37115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $udevdir;$udevruledir" >&5
37116 $as_echo "$udevdir;$udevruledir" >&6; }
37119 # Check whether --enable-systemd was given.
37120 if test "${enable_systemd+set}" = set; then :
37121 enableval
=$enable_systemd;
37128 # Check whether --with-systemdunitdir was given.
37129 if test "${with_systemdunitdir+set}" = set; then :
37130 withval
=$with_systemdunitdir; systemdunitdir
=$withval
37132 systemdunitdir
=/usr
/lib
/systemd
/system
37137 # Check whether --with-systemdpresetdir was given.
37138 if test "${with_systemdpresetdir+set}" = set; then :
37139 withval
=$with_systemdpresetdir; systemdpresetdir
=$withval
37141 systemdpresetdir
=/usr
/lib
/systemd
/system-preset
37146 # Check whether --with-systemdmodulesloaddir was given.
37147 if test "${with_systemdmodulesloaddir+set}" = set; then :
37148 withval
=$with_systemdmodulesloaddir; systemdmoduleloaddir
=$withval
37150 systemdmodulesloaddir
=/usr
/lib
/modules-load.d
37155 if test "x$enable_systemd" = xyes
; then :
37157 ZFS_INIT_SYSTEMD
=systemd
37158 ZFS_MODULE_LOAD
=modules-load.d
37159 modulesloaddir
=$systemdmodulesloaddir
37170 # Check whether --enable-sysvinit was given.
37171 if test "${enable_sysvinit+set}" = set; then :
37172 enableval
=$enable_sysvinit;
37174 enable_sysvinit
=yes
37178 if test "x$enable_sysvinit" = xyes
; then :
37179 ZFS_INIT_SYSV
=init.d
37185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dracut directory" >&5
37186 $as_echo_n "checking for dracut directory... " >&6; }
37188 # Check whether --with-dracutdir was given.
37189 if test "${with_dracutdir+set}" = set; then :
37190 withval
=$with_dracutdir; dracutdir
=$withval
37196 if test "x$dracutdir" = xcheck
; then :
37198 path1
=/usr
/share
/dracut
37199 path2
=/usr
/lib
/dracut
37202 if test -d "$path1"; then :
37206 if test -d "$path2"; then :
37209 dracutdir
="$default"
37217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dracutdir" >&5
37218 $as_echo "$dracutdir" >&6; }
37221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for target asm dir" >&5
37222 $as_echo_n "checking for target asm dir... " >&6; }
37223 TARGET_ARCH
=`echo ${target_cpu} | sed -e s/i.86/i386/`
37225 case $TARGET_ARCH in
37227 TARGET_ASM_DIR
=asm-
${TARGET_ARCH}
37230 TARGET_ASM_DIR
=asm-generic
37235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TARGET_ASM_DIR" >&5
37236 $as_echo "$TARGET_ASM_DIR" >&6; }
37241 ac_fn_c_check_header_mongrel
"$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
37242 if test "x$ac_cv_header_zlib_h" = xyes
; then :
37245 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
37246 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
37248 *** zlib.h missing, zlib-devel package required
37249 See \`config.log' for more details" "$LINENO" 5; }
37254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compress2 in -lz" >&5
37255 $as_echo_n "checking for compress2 in -lz... " >&6; }
37256 if ${ac_cv_lib_z_compress2+:} false
; then :
37257 $as_echo_n "(cached) " >&6
37259 ac_check_lib_save_LIBS
=$LIBS
37261 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
37262 /* end confdefs.h. */
37264 /* Override any GCC internal prototype to avoid an error.
37265 Use char because int might match the return type of a GCC
37266 builtin and then its argument prototype would still apply. */
37274 return compress2 ();
37279 if ac_fn_c_try_link
"$LINENO"; then :
37280 ac_cv_lib_z_compress2
=yes
37282 ac_cv_lib_z_compress2
=no
37284 rm -f core conftest.err conftest.
$ac_objext \
37285 conftest
$ac_exeext conftest.
$ac_ext
37286 LIBS
=$ac_check_lib_save_LIBS
37288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_compress2" >&5
37289 $as_echo "$ac_cv_lib_z_compress2" >&6; }
37290 if test "x$ac_cv_lib_z_compress2" = xyes
; then :
37291 cat >>confdefs.h
<<_ACEOF
37292 #define HAVE_LIBZ 1
37298 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
37299 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
37301 *** compress2() missing, zlib-devel package required
37302 See \`config.log' for more details" "$LINENO" 5; }
37306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uncompress in -lz" >&5
37307 $as_echo_n "checking for uncompress in -lz... " >&6; }
37308 if ${ac_cv_lib_z_uncompress+:} false
; then :
37309 $as_echo_n "(cached) " >&6
37311 ac_check_lib_save_LIBS
=$LIBS
37313 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
37314 /* end confdefs.h. */
37316 /* Override any GCC internal prototype to avoid an error.
37317 Use char because int might match the return type of a GCC
37318 builtin and then its argument prototype would still apply. */
37322 char uncompress ();
37326 return uncompress ();
37331 if ac_fn_c_try_link
"$LINENO"; then :
37332 ac_cv_lib_z_uncompress
=yes
37334 ac_cv_lib_z_uncompress
=no
37336 rm -f core conftest.err conftest.
$ac_objext \
37337 conftest
$ac_exeext conftest.
$ac_ext
37338 LIBS
=$ac_check_lib_save_LIBS
37340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_uncompress" >&5
37341 $as_echo "$ac_cv_lib_z_uncompress" >&6; }
37342 if test "x$ac_cv_lib_z_uncompress" = xyes
; then :
37343 cat >>confdefs.h
<<_ACEOF
37344 #define HAVE_LIBZ 1
37350 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
37351 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
37353 *** uncompress() missing, zlib-devel package required
37354 See \`config.log' for more details" "$LINENO" 5; }
37358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for crc32 in -lz" >&5
37359 $as_echo_n "checking for crc32 in -lz... " >&6; }
37360 if ${ac_cv_lib_z_crc32+:} false
; then :
37361 $as_echo_n "(cached) " >&6
37363 ac_check_lib_save_LIBS
=$LIBS
37365 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
37366 /* end confdefs.h. */
37368 /* Override any GCC internal prototype to avoid an error.
37369 Use char because int might match the return type of a GCC
37370 builtin and then its argument prototype would still apply. */
37383 if ac_fn_c_try_link
"$LINENO"; then :
37384 ac_cv_lib_z_crc32
=yes
37386 ac_cv_lib_z_crc32
=no
37388 rm -f core conftest.err conftest.
$ac_objext \
37389 conftest
$ac_exeext conftest.
$ac_ext
37390 LIBS
=$ac_check_lib_save_LIBS
37392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_crc32" >&5
37393 $as_echo "$ac_cv_lib_z_crc32" >&6; }
37394 if test "x$ac_cv_lib_z_crc32" = xyes
; then :
37395 cat >>confdefs.h
<<_ACEOF
37396 #define HAVE_LIBZ 1
37402 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
37403 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
37405 *** crc32() missing, zlib-devel package required
37406 See \`config.log' for more details" "$LINENO" 5; }
37413 $as_echo "#define HAVE_ZLIB 1" >>confdefs.h
37419 ac_fn_c_check_header_mongrel
"$LINENO" "uuid/uuid.h" "ac_cv_header_uuid_uuid_h" "$ac_includes_default"
37420 if test "x$ac_cv_header_uuid_uuid_h" = xyes
; then :
37423 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
37424 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
37426 *** uuid/uuid.h missing, libuuid-devel package required
37427 See \`config.log' for more details" "$LINENO" 5; }
37432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uuid_generate in -luuid" >&5
37433 $as_echo_n "checking for uuid_generate in -luuid... " >&6; }
37434 if ${ac_cv_lib_uuid_uuid_generate+:} false
; then :
37435 $as_echo_n "(cached) " >&6
37437 ac_check_lib_save_LIBS
=$LIBS
37438 LIBS
="-luuid $LIBS"
37439 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
37440 /* end confdefs.h. */
37442 /* Override any GCC internal prototype to avoid an error.
37443 Use char because int might match the return type of a GCC
37444 builtin and then its argument prototype would still apply. */
37448 char uuid_generate ();
37452 return uuid_generate ();
37457 if ac_fn_c_try_link
"$LINENO"; then :
37458 ac_cv_lib_uuid_uuid_generate
=yes
37460 ac_cv_lib_uuid_uuid_generate
=no
37462 rm -f core conftest.err conftest.
$ac_objext \
37463 conftest
$ac_exeext conftest.
$ac_ext
37464 LIBS
=$ac_check_lib_save_LIBS
37466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_uuid_uuid_generate" >&5
37467 $as_echo "$ac_cv_lib_uuid_uuid_generate" >&6; }
37468 if test "x$ac_cv_lib_uuid_uuid_generate" = xyes
; then :
37469 cat >>confdefs.h
<<_ACEOF
37470 #define HAVE_LIBUUID 1
37473 LIBS
="-luuid $LIBS"
37476 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
37477 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
37479 *** uuid_generate() missing, libuuid-devel package required
37480 See \`config.log' for more details" "$LINENO" 5; }
37484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uuid_is_null in -luuid" >&5
37485 $as_echo_n "checking for uuid_is_null in -luuid... " >&6; }
37486 if ${ac_cv_lib_uuid_uuid_is_null+:} false
; then :
37487 $as_echo_n "(cached) " >&6
37489 ac_check_lib_save_LIBS
=$LIBS
37490 LIBS
="-luuid $LIBS"
37491 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
37492 /* end confdefs.h. */
37494 /* Override any GCC internal prototype to avoid an error.
37495 Use char because int might match the return type of a GCC
37496 builtin and then its argument prototype would still apply. */
37500 char uuid_is_null ();
37504 return uuid_is_null ();
37509 if ac_fn_c_try_link
"$LINENO"; then :
37510 ac_cv_lib_uuid_uuid_is_null
=yes
37512 ac_cv_lib_uuid_uuid_is_null
=no
37514 rm -f core conftest.err conftest.
$ac_objext \
37515 conftest
$ac_exeext conftest.
$ac_ext
37516 LIBS
=$ac_check_lib_save_LIBS
37518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_uuid_uuid_is_null" >&5
37519 $as_echo "$ac_cv_lib_uuid_uuid_is_null" >&6; }
37520 if test "x$ac_cv_lib_uuid_uuid_is_null" = xyes
; then :
37521 cat >>confdefs.h
<<_ACEOF
37522 #define HAVE_LIBUUID 1
37525 LIBS
="-luuid $LIBS"
37528 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
37529 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
37531 *** uuid_is_null() missing, libuuid-devel package required
37532 See \`config.log' for more details" "$LINENO" 5; }
37539 $as_echo "#define HAVE_LIBUUID 1" >>confdefs.h
37544 # Check whether --with-blkid was given.
37545 if test "${with_blkid+set}" = set; then :
37546 withval
=$with_blkid;
37553 if test "x$with_blkid" = xyes
; then :
37558 $as_echo "#define HAVE_LIBBLKID 1" >>confdefs.h
37563 if test "x$with_blkid" = xcheck
; then :
37565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for blkid_get_cache in -lblkid" >&5
37566 $as_echo_n "checking for blkid_get_cache in -lblkid... " >&6; }
37567 if ${ac_cv_lib_blkid_blkid_get_cache+:} false
; then :
37568 $as_echo_n "(cached) " >&6
37570 ac_check_lib_save_LIBS
=$LIBS
37571 LIBS
="-lblkid $LIBS"
37572 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
37573 /* end confdefs.h. */
37575 /* Override any GCC internal prototype to avoid an error.
37576 Use char because int might match the return type of a GCC
37577 builtin and then its argument prototype would still apply. */
37581 char blkid_get_cache ();
37585 return blkid_get_cache ();
37590 if ac_fn_c_try_link
"$LINENO"; then :
37591 ac_cv_lib_blkid_blkid_get_cache
=yes
37593 ac_cv_lib_blkid_blkid_get_cache
=no
37595 rm -f core conftest.err conftest.
$ac_objext \
37596 conftest
$ac_exeext conftest.
$ac_ext
37597 LIBS
=$ac_check_lib_save_LIBS
37599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_blkid_blkid_get_cache" >&5
37600 $as_echo "$ac_cv_lib_blkid_blkid_get_cache" >&6; }
37601 if test "x$ac_cv_lib_blkid_blkid_get_cache" = xyes
; then :
37603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for blkid zfs support" >&5
37604 $as_echo_n "checking for blkid zfs support... " >&6; }
37607 truncate
-s 64M
$ZFS_DEV
37608 echo -en "\x0c\xb1\xba\0\0\0\0\0" | \
37609 dd of
=$ZFS_DEV bs
=1k count
=8 \
37610 seek
=128 conv
=notrunc
&>/dev
/null \
37611 >/dev
/null
2>/dev
/null
37612 echo -en "\x0c\xb1\xba\0\0\0\0\0" | \
37613 dd of
=$ZFS_DEV bs
=1k count
=8 \
37614 seek
=132 conv
=notrunc
&>/dev
/null \
37615 >/dev
/null
2>/dev
/null
37616 echo -en "\x0c\xb1\xba\0\0\0\0\0" | \
37617 dd of
=$ZFS_DEV bs
=1k count
=8 \
37618 seek
=136 conv
=notrunc
&>/dev
/null \
37619 >/dev
/null
2>/dev
/null
37620 echo -en "\x0c\xb1\xba\0\0\0\0\0" | \
37621 dd of
=$ZFS_DEV bs
=1k count
=8 \
37622 seek
=140 conv
=notrunc
&>/dev
/null \
37623 >/dev
/null
2>/dev
/null
37628 if test "$cross_compiling" = yes; then :
37629 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
37630 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
37631 as_fn_error $?
"cannot run test program while cross compiling
37632 See \`config.log' for more details" "$LINENO" 5; }
37634 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
37635 /* end confdefs.h. */
37638 #include <stdlib.h>
37639 #include <blkid/blkid.h>
37648 if (blkid_get_cache(&cache, NULL) < 0)
37651 value = blkid_get_tag_value(cache, "TYPE",
37654 blkid_put_cache(cache);
37658 if (strcmp(value, "zfs_member")) {
37660 blkid_put_cache(cache);
37665 blkid_put_cache(cache);
37671 if ac_fn_c_try_run
"$LINENO"; then :
37674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37675 $as_echo "yes" >&6; }
37679 $as_echo "#define HAVE_LIBBLKID 1" >>confdefs.h
37685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37686 $as_echo "no" >&6; }
37687 if test "x$with_blkid" != xcheck
; then :
37688 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
37689 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
37690 as_fn_error $?
"--with-blkid given but unavailable
37691 See \`config.log' for more details" "$LINENO" 5; }
37695 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
37696 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
37704 if test "x$with_blkid" != xcheck
; then :
37705 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
37706 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
37707 as_fn_error $?
"--with-blkid given but unavailable
37708 See \`config.log' for more details" "$LINENO" 5; }
37718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -Wframe-larger-than=<size> support" >&5
37719 $as_echo_n "checking for -Wframe-larger-than=<size> support... " >&6; }
37721 saved_flags
="$CFLAGS"
37722 CFLAGS
="$CFLAGS -Wframe-larger-than=1024"
37724 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
37725 /* end confdefs.h. */
37735 if ac_fn_c_try_compile
"$LINENO"; then :
37737 FRAME_LARGER_THAN
=-Wframe-larger-than=1024
37738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37739 $as_echo "yes" >&6; }
37744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37745 $as_echo "no" >&6; }
37748 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
37750 CFLAGS
="$saved_flags"
37754 if test "x$runstatedir" = x
; then
37755 runstatedir
='${localstatedir}/run'
37760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking makedev() is declared in sys/sysmacros.h" >&5
37761 $as_echo_n "checking makedev() is declared in sys/sysmacros.h... " >&6; }
37762 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
37763 /* end confdefs.h. */
37765 #include <sys/sysmacros.h>
37778 if ac_fn_c_try_compile
"$LINENO"; then :
37780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37781 $as_echo "yes" >&6; }
37783 $as_echo "#define HAVE_MAKEDEV_IN_SYSMACROS 1" >>confdefs.h
37788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37789 $as_echo "no" >&6; }
37792 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
37795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking makedev() is declared in sys/mkdev.h" >&5
37796 $as_echo_n "checking makedev() is declared in sys/mkdev.h... " >&6; }
37797 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
37798 /* end confdefs.h. */
37800 #include <sys/mkdev.h>
37813 if ac_fn_c_try_compile
"$LINENO"; then :
37815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37816 $as_echo "yes" >&6; }
37818 $as_echo "#define HAVE_MAKEDEV_IN_MKDEV 1" >>confdefs.h
37823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37824 $as_echo "no" >&6; }
37827 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
37830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -Wno-format-truncation support" >&5
37831 $as_echo_n "checking for -Wno-format-truncation support... " >&6; }
37833 saved_flags
="$CFLAGS"
37834 CFLAGS
="$CFLAGS -Wno-format-truncation"
37836 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
37837 /* end confdefs.h. */
37847 if ac_fn_c_try_compile
"$LINENO"; then :
37849 NO_FORMAT_TRUNCATION
=-Wno-format-truncation
37850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37851 $as_echo "yes" >&6; }
37855 NO_FORMAT_TRUNCATION
=
37856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37857 $as_echo "no" >&6; }
37860 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
37862 CFLAGS
="$saved_flags"
37865 for ac_func
in mlockall
37867 ac_fn_c_check_func
"$LINENO" "mlockall" "ac_cv_func_mlockall"
37868 if test "x$ac_cv_func_mlockall" = xyes
; then :
37869 cat >>confdefs.h
<<_ACEOF
37870 #define HAVE_MLOCKALL 1
37879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Error!" >&5
37880 $as_echo "Error!" >&6; }
37881 as_fn_error $?
"Bad value \"$ZFS_CONFIG\" for --with-config,
37882 user kernel|user|all|srpm" "$LINENO" 5 ;;
37885 if test "$ZFS_CONFIG" = user
-o "$ZFS_CONFIG" = all
; then
37887 CONFIG_USER_FALSE
='#'
37889 CONFIG_USER_TRUE
='#'
37893 if test "$ZFS_CONFIG" = kernel
-o "$ZFS_CONFIG" = all
&&
37894 test "x$enable_linux_builtin" != xyes
; then
37895 CONFIG_KERNEL_TRUE
=
37896 CONFIG_KERNEL_FALSE
='#'
37898 CONFIG_KERNEL_TRUE
='#'
37899 CONFIG_KERNEL_FALSE
=
37904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether debugging is enabled" >&5
37905 $as_echo_n "checking whether debugging is enabled... " >&6; }
37906 # Check whether --enable-debug was given.
37907 if test "${enable_debug+set}" = set; then :
37908 enableval
=$enable_debug;
37914 if test "x$enable_debug" = xyes
; then :
37916 KERNELCPPFLAGS
="${KERNELCPPFLAGS} -DDEBUG -Werror"
37917 HOSTCFLAGS
="${HOSTCFLAGS} -DDEBUG -Werror"
37918 DEBUG_CFLAGS
="-DDEBUG -Werror"
37919 DEBUG_STACKFLAGS
="-fstack-check"
37920 DEBUG_ZFS
="_with_debug"
37922 $as_echo "#define ZFS_DEBUG 1" >>confdefs.h
37927 KERNELCPPFLAGS
="${KERNELCPPFLAGS} -DNDEBUG "
37928 HOSTCFLAGS
="${HOSTCFLAGS} -DNDEBUG "
37929 DEBUG_CFLAGS
="-DNDEBUG"
37930 DEBUG_STACKFLAGS
=""
37931 DEBUG_ZFS
="_without_debug"
37938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_debug" >&5
37939 $as_echo "$enable_debug" >&6; }
37942 # Check whether --enable-debug-dmu-tx was given.
37943 if test "${enable_debug_dmu_tx+set}" = set; then :
37944 enableval
=$enable_debug_dmu_tx;
37946 enable_debug_dmu_tx
=no
37950 if test "x$enable_debug_dmu_tx" = xyes
; then :
37952 KERNELCPPFLAGS
="${KERNELCPPFLAGS} -DDEBUG_DMU_TX"
37953 DEBUG_DMU_TX
="_with_debug_dmu_tx"
37955 $as_echo "#define DEBUG_DMU_TX 1" >>confdefs.h
37960 DEBUG_DMU_TX
="_without_debug_dmu_tx"
37965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether dmu tx validation is enabled" >&5
37966 $as_echo_n "checking whether dmu tx validation is enabled... " >&6; }
37967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_debug_dmu_tx" >&5
37968 $as_echo "$enable_debug_dmu_tx" >&6; }
37971 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"
37974 cat >confcache
<<\_ACEOF
37975 # This file is a shell script that caches the results of configure
37976 # tests run on this system so they can be shared between configure
37977 # scripts and configure runs, see configure's option --config-cache.
37978 # It is not useful on other systems. If it contains results you don't
37979 # want to keep, you may remove or edit it.
37981 # config.status only pays attention to the cache file if you give it
37982 # the --recheck option to rerun configure.
37984 # `ac_cv_env_foo' variables (set or unset) will be overridden when
37985 # loading this file, other *unset* `ac_cv_foo' will be assigned the
37986 # following values.
37990 # The following way of writing the cache mishandles newlines in values,
37991 # but we know of no workaround that is simple, portable, and efficient.
37992 # So, we kill variables containing newlines.
37993 # Ultrix sh set writes to stderr and can't be redirected directly,
37994 # and sets the high bit in the cache file unless we assign to the vars.
37996 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
37997 eval ac_val
=\$
$ac_var
38001 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
38002 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
38005 _ | IFS | as_nl
) ;; #(
38006 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
38007 *) { eval $ac_var=; unset $ac_var;} ;;
38013 case $as_nl`(ac_space=' '; set) 2>&1` in #(
38014 *${as_nl}ac_space
=\
*)
38015 # `set' does not quote correctly, so add quotes: double-quote
38016 # substitution turns \\\\ into \\, and sed turns \\ into \.
38019 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
38022 # `set' quotes correctly as required by POSIX, so do not add quotes.
38023 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
38032 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
38034 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
38036 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
38037 if test -w "$cache_file"; then
38038 if test "x$cache_file" != "x/dev/null"; then
38039 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
38040 $as_echo "$as_me: updating cache $cache_file" >&6;}
38041 if test ! -f "$cache_file" ||
test -h "$cache_file"; then
38042 cat confcache
>"$cache_file"
38044 case $cache_file in #(
38046 mv -f confcache
"$cache_file"$$
&&
38047 mv -f "$cache_file"$$
"$cache_file" ;; #(
38049 mv -f confcache
"$cache_file" ;;
38054 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
38055 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
38060 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
38061 # Let make expand exec_prefix.
38062 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
38064 DEFS
=-DHAVE_CONFIG_H
38069 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
38070 # 1. Remove the extension, and $U if already installed.
38071 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
38072 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
38073 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
38074 # will be set to the directory where LIBOBJS objects are built.
38075 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
38076 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
38078 LIBOBJS
=$ac_libobjs
38080 LTLIBOBJS
=$ac_ltlibobjs
38083 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
38084 as_fn_error $?
"conditional \"MAINTAINER_MODE\" was never defined.
38085 Usually this means the macro was only invoked conditionally." "$LINENO" 5
38087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
38088 $as_echo_n "checking that generated files are newer than configure... " >&6; }
38089 if test -n "$am_sleep_pid"; then
38090 # Hide warnings about reused PIDs.
38091 wait $am_sleep_pid 2>/dev
/null
38093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
38094 $as_echo "done" >&6; }
38095 if test -n "$EXEEXT"; then
38097 am__EXEEXT_FALSE
='#'
38099 am__EXEEXT_TRUE
='#'
38103 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
38104 as_fn_error $?
"conditional \"AMDEP\" was never defined.
38105 Usually this means the macro was only invoked conditionally." "$LINENO" 5
38107 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
38108 as_fn_error $?
"conditional \"am__fastdepCC\" was never defined.
38109 Usually this means the macro was only invoked conditionally." "$LINENO" 5
38111 if test -z "${am__fastdepCCAS_TRUE}" && test -z "${am__fastdepCCAS_FALSE}"; then
38112 as_fn_error $?
"conditional \"am__fastdepCCAS\" was never defined.
38113 Usually this means the macro was only invoked conditionally." "$LINENO" 5
38115 if test -z "${CONFIG_USER_TRUE}" && test -z "${CONFIG_USER_FALSE}"; then
38116 as_fn_error $?
"conditional \"CONFIG_USER\" was never defined.
38117 Usually this means the macro was only invoked conditionally." "$LINENO" 5
38119 if test -z "${CONFIG_KERNEL_TRUE}" && test -z "${CONFIG_KERNEL_FALSE}"; then
38120 as_fn_error $?
"conditional \"CONFIG_KERNEL\" was never defined.
38121 Usually this means the macro was only invoked conditionally." "$LINENO" 5
38124 : "${CONFIG_STATUS=./config.status}"
38126 ac_clean_files_save
=$ac_clean_files
38127 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
38128 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
38129 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
38131 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
38133 # Generated by $as_me.
38134 # Run this file to recreate the current configuration.
38135 # Compiler output produced by configure, useful for debugging
38136 # configure, is in config.log if it exists.
38139 ac_cs_recheck=false
38142 SHELL=\${CONFIG_SHELL-$SHELL}
38145 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail
=1
38146 ## -------------------- ##
38147 ## M4sh Initialization. ##
38148 ## -------------------- ##
38150 # Be more Bourne compatible
38151 DUALCASE
=1; export DUALCASE
# for MKS sh
38152 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
38155 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
38156 # is contrary to our usage. Disable this feature.
38157 alias -g '${1+"$@"}'='"$@"'
38158 setopt NO_GLOB_SUBST
38160 case `(set -o) 2>/dev/null` in #(
38172 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38173 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
38174 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
38175 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
38176 # Prefer a ksh shell builtin over an external printf program on Solaris,
38177 # but without wasting forks for bash or zsh.
38178 if test -z "$BASH_VERSION$ZSH_VERSION" \
38179 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
38180 as_echo='print
-r --'
38181 as_echo_n='print
-rn --'
38182 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
38183 as_echo='printf %s
\n'
38184 as_echo_n='printf %s
'
38186 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
38187 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
38188 as_echo_n='/usr
/ucb
/echo -n'
38190 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
38191 as_echo_n_body='eval
38195 expr "X$arg" : "X\\(.*\\)$as_nl";
38196 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
38198 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
38200 export as_echo_n_body
38201 as_echo_n='sh
-c $as_echo_n_body as_echo
'
38203 export as_echo_body
38204 as_echo='sh
-c $as_echo_body as_echo
'
38207 # The user is always right.
38208 if test "${PATH_SEPARATOR+set}" != set; then
38210 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
38211 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
38218 # We need space, tab and new line, in precisely that order. Quoting is
38219 # there to prevent editors from complaining about space-tab.
38220 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
38221 # splitting by setting IFS to empty value.)
38224 # Find who we are. Look in the path if we contain no directory separator.
38227 *[\\/]* ) as_myself=$0 ;;
38228 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
38229 for as_dir in $PATH
38232 test -z "$as_dir" && as_dir=.
38233 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
38239 # We did not find ourselves, most probably we were run as `sh COMMAND'
38240 # in which case we are not to be found in the path.
38241 if test "x$as_myself" = x
; then
38244 if test ! -f "$as_myself"; then
38245 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
38249 # Unset variables that we do not need and which cause bugs (e.g. in
38250 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
38251 # suppresses any "Segmentation fault" message there. '((' could
38252 # trigger a bug in pdksh 5.2.14.
38253 for as_var
in BASH_ENV ENV MAIL MAILPATH
38254 do eval test x\
${$as_var+set} = xset \
38255 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
38268 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
38271 # as_fn_error STATUS ERROR [LINENO LOG_FD]
38272 # ----------------------------------------
38273 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
38274 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
38275 # script with STATUS, using 1 if that was 0.
38278 as_status
=$1; test $as_status -eq 0 && as_status
=1
38280 as_lineno
=${as_lineno-"$3"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
38281 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
38283 $as_echo "$as_me: error: $2" >&2
38284 as_fn_exit
$as_status
38288 # as_fn_set_status STATUS
38289 # -----------------------
38290 # Set $? to STATUS, without forking.
38291 as_fn_set_status
()
38294 } # as_fn_set_status
38296 # as_fn_exit STATUS
38297 # -----------------
38298 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
38302 as_fn_set_status
$1
38308 # Portably unset VAR.
38311 { eval $1=; unset $1;}
38313 as_unset
=as_fn_unset
38314 # as_fn_append VAR VALUE
38315 # ----------------------
38316 # Append the text in VALUE to the end of the definition contained in VAR. Take
38317 # advantage of any shell optimizations that allow amortized linear growth over
38318 # repeated appends, instead of the typical quadratic growth present in naive
38320 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
38321 eval 'as_fn_append ()
38332 # as_fn_arith ARG...
38333 # ------------------
38334 # Perform arithmetic evaluation on the ARGs, and store the result in the
38335 # global $as_val. Take advantage of shells that can avoid forks. The arguments
38336 # must be portable across $(()) and expr.
38337 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
38338 eval 'as_fn_arith ()
38345 as_val
=`expr "$@" || test $? -eq 1`
38350 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
38351 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
38357 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
38358 as_basename
=basename
38363 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
38369 as_me
=`$as_basename -- "$0" ||
38370 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
38371 X"$0" : 'X\(//\)$' \| \
38372 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
38374 sed '/^.*\/\([^/][^/]*\)\/*$/{
38388 # Avoid depending upon Character Ranges.
38389 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
38390 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
38391 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
38392 as_cr_digits
='0123456789'
38393 as_cr_alnum
=$as_cr_Letters$as_cr_digits
38395 ECHO_C
= ECHO_N
= ECHO_T
=
38396 case `echo -n x` in #(((((
38398 case `echo 'xy\c'` in
38399 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
38401 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
38408 rm -f conf$$ conf$$.exe conf$$.
file
38409 if test -d conf$$.dir
; then
38410 rm -f conf$$.dir
/conf$$.
file
38413 mkdir conf$$.dir
2>/dev
/null
38415 if (echo >conf$$.
file) 2>/dev
/null
; then
38416 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
38418 # ... but there are two gotchas:
38419 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
38420 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
38421 # In both cases, we have to default to `cp -pR'.
38422 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
38424 elif ln conf$$.
file conf$$
2>/dev
/null
; then
38432 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
38433 rmdir conf$$.dir
2>/dev
/null
38438 # Create "$as_dir" as a directory, including parents if necessary.
38443 -*) as_dir
=.
/$as_dir;;
38445 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
38449 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
38450 *) as_qdir
=$as_dir;;
38452 as_dirs
="'$as_qdir' $as_dirs"
38453 as_dir
=`$as_dirname -- "$as_dir" ||
38454 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
38455 X"$as_dir" : 'X\(//\)[^/]' \| \
38456 X"$as_dir" : 'X\(//\)$' \| \
38457 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
38458 $as_echo X"$as_dir" |
38459 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
38463 /^X\(\/\/\)[^/].*/{
38476 test -d "$as_dir" && break
38478 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
38479 } ||
test -d "$as_dir" || as_fn_error $?
"cannot create directory $as_dir"
38483 if mkdir
-p .
2>/dev
/null
; then
38484 as_mkdir_p
='mkdir -p "$as_dir"'
38486 test -d .
/-p && rmdir .
/-p
38491 # as_fn_executable_p FILE
38492 # -----------------------
38493 # Test if FILE is an executable regular file.
38494 as_fn_executable_p
()
38496 test -f "$1" && test -x "$1"
38497 } # as_fn_executable_p
38498 as_test_x
='test -x'
38499 as_executable_p
=as_fn_executable_p
38501 # Sed expression to map a string onto a valid CPP name.
38502 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
38504 # Sed expression to map a string onto a valid variable name.
38505 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
38509 ## ----------------------------------- ##
38510 ## Main body of $CONFIG_STATUS script. ##
38511 ## ----------------------------------- ##
38513 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
38515 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
38516 # Save the log message, to keep $0 and so on meaningful, and to
38517 # report actual input values of CONFIG_FILES etc. instead of their
38518 # values after options handling.
38520 This file was extended by zfs $as_me 0.6.5.11, which was
38521 generated by GNU Autoconf 2.69. Invocation command line was
38523 CONFIG_FILES = $CONFIG_FILES
38524 CONFIG_HEADERS = $CONFIG_HEADERS
38525 CONFIG_LINKS = $CONFIG_LINKS
38526 CONFIG_COMMANDS = $CONFIG_COMMANDS
38529 on `(hostname || uname -n) 2>/dev/null | sed 1q`
38534 case $ac_config_files in *"
38535 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
38538 case $ac_config_headers in *"
38539 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
38543 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
38544 # Files that config.status was made for.
38545 config_files="$ac_config_files"
38546 config_headers="$ac_config_headers"
38547 config_commands="$ac_config_commands"
38551 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
38553 \`$as_me' instantiates files and other configuration actions
38554 from templates according to the current configuration. Unless the files
38555 and actions are specified as TAGs, all are instantiated by default.
38557 Usage: $0 [OPTION]... [TAG]...
38559 -h, --help print this help, then exit
38560 -V, --version print version number and configuration settings, then exit
38561 --config print configuration, then exit
38562 -q, --quiet, --silent
38563 do not print progress messages
38564 -d, --debug don't remove temporary files
38565 --recheck update $as_me by reconfiguring in the same conditions
38566 --file=FILE[:TEMPLATE]
38567 instantiate the configuration file FILE
38568 --header=FILE[:TEMPLATE]
38569 instantiate the configuration header FILE
38571 Configuration files:
38574 Configuration headers:
38577 Configuration commands:
38580 Report bugs to the package provider."
38583 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
38584 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
38586 zfs config.status 0.6.5.11
38587 configured by $0, generated by GNU Autoconf 2.69,
38588 with options \\"\$ac_cs_config\\"
38590 Copyright (C) 2012 Free Software Foundation, Inc.
38591 This config.status script is free software; the Free Software Foundation
38592 gives unlimited permission to copy, distribute and modify it."
38599 test -n "\$AWK" || AWK=awk
38602 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
38603 # The default lists apply if the user does not specify any file.
38609 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
38610 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
38614 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
38626 # Handling of the options.
38627 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
38629 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
38630 $as_echo "$ac_cs_version"; exit ;;
38631 --config |
--confi |
--conf |
--con |
--co |
--c )
38632 $as_echo "$ac_cs_config"; exit ;;
38633 --debug |
--debu |
--deb |
--de |
--d |
-d )
38635 --file |
--fil |
--fi |
--f )
38638 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
38639 '') as_fn_error $?
"missing file argument" ;;
38641 as_fn_append CONFIG_FILES
" '$ac_optarg'"
38642 ac_need_defaults
=false
;;
38643 --header |
--heade |
--head |
--hea )
38646 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
38648 as_fn_append CONFIG_HEADERS
" '$ac_optarg'"
38649 ac_need_defaults
=false
;;
38651 # Conflict between --help and --header
38652 as_fn_error $?
"ambiguous option: \`$1'
38653 Try \`$0 --help' for more information.";;
38654 --help |
--hel |
-h )
38655 $as_echo "$ac_cs_usage"; exit ;;
38656 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
38657 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
38660 # This is an error.
38661 -*) as_fn_error $?
"unrecognized option: \`$1'
38662 Try \`$0 --help' for more information." ;;
38664 *) as_fn_append ac_config_targets
" $1"
38665 ac_need_defaults
=false
;;
38671 ac_configure_extra_args
=
38673 if $ac_cs_silent; then
38675 ac_configure_extra_args
="$ac_configure_extra_args --silent"
38679 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
38680 if \$ac_cs_recheck; then
38681 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
38683 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
38684 CONFIG_SHELL='$SHELL'
38685 export CONFIG_SHELL
38690 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
38694 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
38695 ## Running $as_me. ##
38701 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
38705 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
38708 # The HP-UX ksh and POSIX shell print the target directory to stdout
38709 # if CDPATH is set.
38710 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
38712 sed_quote_subst='$sed_quote_subst'
38713 double_quote_subst='$double_quote_subst'
38714 delay_variable_subst='$delay_variable_subst'
38715 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
38716 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
38717 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
38718 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
38719 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
38720 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
38721 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
38722 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
38723 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
38724 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
38725 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
38726 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
38727 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
38728 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
38729 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
38730 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
38731 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
38732 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
38733 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
38734 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
38735 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
38736 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
38737 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
38738 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
38739 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
38740 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
38741 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
38742 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
38743 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
38744 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
38745 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
38746 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
38747 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
38748 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
38749 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
38750 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
38751 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
38752 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
38753 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
38754 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
38755 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
38756 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
38757 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
38758 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
38759 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
38760 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
38761 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
38762 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
38763 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
38764 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
38765 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
38766 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
38767 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
38768 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
38769 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
38770 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
38771 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
38772 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
38773 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"`'
38774 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
38775 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
38776 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
38777 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
38778 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
38779 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
38780 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
38781 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
38782 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
38783 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
38784 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
38785 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
38786 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
38787 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
38788 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
38789 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
38790 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
38791 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
38792 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
38793 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
38794 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
38795 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
38796 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
38797 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
38798 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
38799 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
38800 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
38801 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
38802 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
38803 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
38804 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
38805 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
38806 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
38807 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
38808 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
38809 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
38810 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
38811 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
38812 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
38813 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
38814 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
38815 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
38816 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
38817 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
38818 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
38819 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
38820 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
38821 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
38822 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
38823 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
38824 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
38825 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
38826 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
38827 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
38828 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
38829 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
38830 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
38831 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
38832 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
38833 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
38834 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
38835 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
38836 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
38837 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
38838 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
38839 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
38840 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
38841 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
38842 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
38843 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
38844 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
38845 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
38846 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
38847 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
38848 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
38849 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
38852 LTCFLAGS='$LTCFLAGS'
38853 compiler='$compiler_DEFAULT'
38855 # A function that is used when there is no print builtin or printf.
38856 func_fallback_echo ()
38858 eval 'cat <<_LTECHO_EOF
38863 # Quote evaled strings.
38878 deplibs_check_method \
38883 sharedlib_from_linklib_cmd \
38886 archiver_list_spec \
38892 lt_cv_sys_global_symbol_pipe \
38893 lt_cv_sys_global_symbol_to_cdecl \
38894 lt_cv_sys_global_symbol_to_import \
38895 lt_cv_sys_global_symbol_to_c_name_address \
38896 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
38897 lt_cv_nm_interface \
38898 nm_file_list_spec \
38899 lt_cv_truncate_bin \
38900 lt_prog_compiler_no_builtin_flag \
38901 lt_prog_compiler_pic \
38902 lt_prog_compiler_wl \
38903 lt_prog_compiler_static \
38904 lt_cv_prog_compiler_c_o \
38913 export_dynamic_flag_spec \
38914 whole_archive_flag_spec \
38915 compiler_needs_object \
38917 allow_undefined_flag \
38918 no_undefined_flag \
38919 hardcode_libdir_flag_spec \
38920 hardcode_libdir_separator \
38924 variables_saved_for_relink \
38926 library_names_spec \
38928 install_override_mode \
38932 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
38933 *[\\\\\\\`\\"\\\$]*)
38934 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
38937 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
38942 # Double-quote double-evaled strings.
38943 for var in reload_cmds \
38944 old_postinstall_cmds \
38945 old_postuninstall_cmds \
38947 extract_expsyms_cmds \
38948 old_archive_from_new_cmds \
38949 old_archive_from_expsyms_cmds \
38951 archive_expsym_cmds \
38953 module_expsym_cmds \
38954 export_symbols_cmds \
38958 postuninstall_cmds \
38960 sys_lib_search_path_spec \
38961 configure_time_dlsearch_path \
38962 configure_time_lt_sys_library_path; do
38963 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
38964 *[\\\\\\\`\\"\\\$]*)
38965 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
38968 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
38973 ac_aux_dir='$ac_aux_dir'
38975 # See if we are running on zsh, and set the options that allow our
38976 # commands through without removal of \ escapes INIT.
38977 if test -n "\${ZSH_VERSION+set}"; then
38978 setopt NO_GLOB_SUBST
38992 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
38994 # Handling of arguments.
38995 for ac_config_target
in $ac_config_targets
38997 case $ac_config_target in
38998 "zfs_config.h") CONFIG_HEADERS
="$CONFIG_HEADERS zfs_config.h" ;;
38999 "depfiles") CONFIG_COMMANDS
="$CONFIG_COMMANDS depfiles" ;;
39000 "libtool") CONFIG_COMMANDS
="$CONFIG_COMMANDS libtool" ;;
39001 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
39002 "module/Makefile") CONFIG_FILES
="$CONFIG_FILES module/Makefile" ;;
39003 "module/avl/Makefile") CONFIG_FILES
="$CONFIG_FILES module/avl/Makefile" ;;
39004 "module/nvpair/Makefile") CONFIG_FILES
="$CONFIG_FILES module/nvpair/Makefile" ;;
39005 "module/unicode/Makefile") CONFIG_FILES
="$CONFIG_FILES module/unicode/Makefile" ;;
39006 "module/zcommon/Makefile") CONFIG_FILES
="$CONFIG_FILES module/zcommon/Makefile" ;;
39007 "module/zfs/Makefile") CONFIG_FILES
="$CONFIG_FILES module/zfs/Makefile" ;;
39008 "module/zpios/Makefile") CONFIG_FILES
="$CONFIG_FILES module/zpios/Makefile" ;;
39009 "include/Makefile") CONFIG_FILES
="$CONFIG_FILES include/Makefile" ;;
39010 "include/linux/Makefile") CONFIG_FILES
="$CONFIG_FILES include/linux/Makefile" ;;
39011 "include/sys/Makefile") CONFIG_FILES
="$CONFIG_FILES include/sys/Makefile" ;;
39012 "include/sys/fs/Makefile") CONFIG_FILES
="$CONFIG_FILES include/sys/fs/Makefile" ;;
39013 "include/sys/fm/Makefile") CONFIG_FILES
="$CONFIG_FILES include/sys/fm/Makefile" ;;
39014 "include/sys/fm/fs/Makefile") CONFIG_FILES
="$CONFIG_FILES include/sys/fm/fs/Makefile" ;;
39015 "zfs.release") CONFIG_FILES
="$CONFIG_FILES zfs.release" ;;
39017 *) as_fn_error $?
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
39022 # If the user did not use the arguments to specify the items to instantiate,
39023 # then the envvar interface is used. Set only those that are not.
39024 # We use the long form for the default assignment because of an extremely
39025 # bizarre bug on SunOS 4.1.3.
39026 if $ac_need_defaults; then
39027 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
39028 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
39029 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
39032 # Have a temporary directory for convenience. Make it in the build tree
39033 # simply because there is no reason against having it here, and in addition,
39034 # creating and moving files from /tmp can sometimes cause problems.
39035 # Hook for its removal unless debugging.
39036 # Note that there is a small window in which the directory will not be cleaned:
39037 # after its creation but before its name has been assigned to `$tmp'.
39041 trap 'exit_status=$?
39042 : "${ac_tmp:=$tmp}"
39043 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
39045 trap 'as_fn_exit 1' 1 2 13 15
39047 # Create a (secure) tmp directory for tmp files.
39050 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
39054 tmp
=.
/conf$$
-$RANDOM
39055 (umask 077 && mkdir
"$tmp")
39056 } || as_fn_error $?
"cannot create a temporary directory in ." "$LINENO" 5
39059 # Set up the scripts for CONFIG_FILES section.
39060 # No need to generate them if there are no CONFIG_FILES.
39061 # This happens for instance with `./config.status config.h'.
39062 if test -n "$CONFIG_FILES"; then
39065 ac_cr
=`echo X | tr X '\015'`
39066 # On cygwin, bash can eat \r inside `` if the user requested igncr.
39067 # But we know of no other shell where ac_cr would be empty at this
39068 # point, so we can use a bashism as a fallback.
39069 if test "x$ac_cr" = x
; then
39070 eval ac_cr
=\$
\'\\r
\'
39072 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
39073 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
39076 ac_cs_awk_cr
=$ac_cr
39079 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
39084 echo "cat >conf$$subs.awk <<_ACEOF" &&
39085 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
39087 } >conf$$subs.sh ||
39088 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
39089 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
39091 for ac_last_try in false false false false false :; do
39092 . ./conf$$subs.sh ||
39093 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
39095 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
39096 if test $ac_delim_n = $ac_delim_num; then
39098 elif $ac_last_try; then
39099 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
39101 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
39104 rm -f conf$$subs.sh
39106 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
39107 cat >>"\
$ac_tmp/subs1.
awk" <<\\_ACAWK &&
39111 s/^/S["/; s
/!.
*/"]=/
39121 s/\(.\{148\}\)..*/\1/
39123 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
39128 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
39135 s/\(.\{148\}\)..*/\1/
39137 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
39141 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
39146 ' <conf$$subs.awk | sed '
39151 ' >>$CONFIG_STATUS || ac_write_fail=1
39152 rm -f conf$$subs.awk
39153 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
39155 cat >>"\
$ac_tmp/subs1.
awk" <<_ACAWK &&
39156 for (key in S) S_is_set[key] = 1
39162 nfields = split(line, field, "@
")
39164 len = length(field[1])
39165 for (i = 2; i < nfields; i++) {
39167 keylen = length(key)
39168 if (S_is_set[key]) {
39170 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
39171 len += length(value) + length(field[++i])
39182 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
39183 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
39184 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
39187 fi < "$ac_tmp/subs1.
awk" > "$ac_tmp/subs.
awk" \
39188 || as_fn_error $? "could not setup config files machinery
" "$LINENO" 5
39191 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
39192 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".
", strip leading and
39193 # trailing colons and then remove the whole line if VPATH becomes empty
39194 # (actually we leave an empty line to preserve line numbers).
39195 if test "x
$srcdir" = x.; then
39196 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
39214 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
39215 fi # test -n "$CONFIG_FILES"
39217 # Set up the scripts for CONFIG_HEADERS section.
39218 # No need to generate them if there are no CONFIG_HEADERS.
39219 # This happens for instance with `./config.status Makefile'.
39220 if test -n "$CONFIG_HEADERS"; then
39221 cat >"$ac_tmp/defines.
awk" <<\_ACAWK ||
39225 # Transform confdefs.h into an awk script `defines.awk', embedded as
39226 # here-document in config.status, that substitutes the proper values into
39227 # config.h.in to produce config.h.
39229 # Create a delimiter string that does not exist in confdefs.h, to ease
39230 # handling of long lines.
39232 for ac_last_try in false false :; do
39233 ac_tt=`sed -n "/$ac_delim/p
" confdefs.h`
39234 if test -z "$ac_tt"; then
39236 elif $ac_last_try; then
39237 as_fn_error $? "could not
make $CONFIG_HEADERS" "$LINENO" 5
39239 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
39243 # For the awk script, D is an array of macro values keyed by name,
39244 # likewise P contains macro parameters if any. Preserve backslash
39245 # newline sequences.
39247 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
39249 s/.\{148\}/&'"$ac_delim"'/g
39252 s/^[ ]*#[ ]*define[ ][ ]*/ /
39259 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
39261 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
39265 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
39266 D["\
1"]=" \
3\\\\\\n
"\\/p
39268 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
39273 s/.\{148\}/&'"$ac_delim"'/g
39278 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
39281 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
39283 ' <confdefs.h | sed '
39284 s/'"$ac_delim"'/"\\\
39285 "/g' >>$CONFIG_STATUS || ac_write_fail=1
39287 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
39288 for (key in D) D_is_set[key] = 1
39291 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
39293 split(line, arg, " ")
39294 if (arg[1] == "#") {
39298 defundef
= substr
(arg
[1], 2)
39301 split(mac1
, mac2
, "(") #)
39303 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
39304 if (D_is_set
[macro
]) {
39305 # Preserve the white space surrounding the "#".
39306 print prefix
"define", macro P
[macro
] D
[macro
]
39309 # Replace #undef with comments. This is necessary, for example,
39310 # in the case of _POSIX_SOURCE, which is predefined and required
39311 # on some systems where configure will not decide to define it.
39312 if (defundef
== "undef") {
39313 print
"/*", prefix defundef
, macro
, "*/"
39321 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
39322 as_fn_error $?
"could not setup config headers machinery" "$LINENO" 5
39323 fi # test -n "$CONFIG_HEADERS"
39326 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
39331 :[FHLC
]) ac_mode
=$ac_tag; continue;;
39333 case $ac_mode$ac_tag in
39335 :L
* |
:C
*:*) as_fn_error $?
"invalid tag \`$ac_tag'" "$LINENO" 5;;
39336 :[FH
]-) ac_tag
=-:-;;
39337 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
39354 -) ac_f
="$ac_tmp/stdin";;
39355 *) # Look for the file first in the build tree, then in the source tree
39356 # (if the path is not absolute). The absolute path cannot be DOS-style,
39357 # because $ac_f cannot contain `:'.
39361 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
39363 as_fn_error
1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
39365 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
39366 as_fn_append ac_file_inputs
" '$ac_f'"
39369 # Let's still pretend it is `configure' which instantiates (i.e., don't
39370 # use $as_me), people would be surprised to read:
39371 # /* config.h. Generated by config.status. */
39372 configure_input
='Generated from '`
39373 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
39375 if test x
"$ac_file" != x-
; then
39376 configure_input
="$ac_file. $configure_input"
39377 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
39378 $as_echo "$as_me: creating $ac_file" >&6;}
39380 # Neutralize special characters interpreted by sed in replacement strings.
39381 case $configure_input in #(
39382 *\
&* |
*\|
* |
*\\* )
39383 ac_sed_conf_input
=`$as_echo "$configure_input" |
39384 sed 's/[\\\\&|]/\\\\&/g'`;; #(
39385 *) ac_sed_conf_input
=$configure_input;;
39389 *:-:* |
*:-) cat >"$ac_tmp/stdin" \
39390 || as_fn_error $?
"could not create $ac_file" "$LINENO" 5 ;;
39395 ac_dir
=`$as_dirname -- "$ac_file" ||
39396 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
39397 X"$ac_file" : 'X\(//\)[^/]' \| \
39398 X"$ac_file" : 'X\(//\)$' \| \
39399 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
39400 $as_echo X"$ac_file" |
39401 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
39405 /^X\(\/\/\)[^/].*/{
39418 as_dir
="$ac_dir"; as_fn_mkdir_p
39422 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
39424 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
39425 # A ".." for each directory in $ac_dir_suffix.
39426 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
39427 case $ac_top_builddir_sub in
39428 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
39429 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
39432 ac_abs_top_builddir
=$ac_pwd
39433 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
39434 # for backward compatibility:
39435 ac_top_builddir
=$ac_top_build_prefix
39438 .
) # We are building in place.
39440 ac_top_srcdir
=$ac_top_builddir_sub
39441 ac_abs_top_srcdir
=$ac_pwd ;;
39442 [\\/]* | ?
:[\\/]* ) # Absolute name.
39443 ac_srcdir
=$srcdir$ac_dir_suffix;
39444 ac_top_srcdir
=$srcdir
39445 ac_abs_top_srcdir
=$srcdir ;;
39446 *) # Relative name.
39447 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
39448 ac_top_srcdir
=$ac_top_build_prefix$srcdir
39449 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
39451 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
39461 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
39462 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
39464 ac_MKDIR_P
=$MKDIR_P
39466 [\\/$
]* | ?
:[\\/]* ) ;;
39467 */*) ac_MKDIR_P
=$ac_top_build_prefix$MKDIR_P ;;
39471 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
39472 # If the template does not know about datarootdir, expand it.
39473 # FIXME: This hack should be removed a few years after 2.60.
39474 ac_datarootdir_hack
=; ac_datarootdir_seen
=
39485 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
39486 *datarootdir
*) ac_datarootdir_seen
=yes;;
39487 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
39488 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
39489 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
39491 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
39492 ac_datarootdir_hack='
39493 s&@datadir@&$datadir&g
39494 s&@docdir@&$docdir&g
39495 s&@infodir@&$infodir&g
39496 s&@localedir@&$localedir&g
39497 s&@mandir@&$mandir&g
39498 s&\\\${datarootdir}&$datarootdir&g' ;;
39502 # Neutralize VPATH when `$srcdir' = `.'.
39503 # Shell code in configure.ac might set extrasub.
39504 # FIXME: do we really want to maintain this feature?
39505 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
39506 ac_sed_extra="$ac_vpsub
39509 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
39511 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
39512 s|@configure_input@|
$ac_sed_conf_input|
;t t
39513 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
39514 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
39515 s
&@srcdir@
&$ac_srcdir&;t t
39516 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
39517 s
&@top_srcdir@
&$ac_top_srcdir&;t t
39518 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
39519 s
&@builddir@
&$ac_builddir&;t t
39520 s
&@abs_builddir@
&$ac_abs_builddir&;t t
39521 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
39522 s
&@INSTALL@
&$ac_INSTALL&;t t
39523 s
&@MKDIR_P@
&$ac_MKDIR_P&;t t
39524 $ac_datarootdir_hack
39526 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.
awk" \
39527 >$ac_tmp/out || as_fn_error $? "could not create
$ac_file" "$LINENO" 5
39529 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
39530 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out
"`; test -n "$ac_out"; } &&
39531 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
39532 "$ac_tmp/out
"`; test -z "$ac_out"; } &&
39533 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
39534 which seems to be undefined. Please make sure it is defined" >&5
39535 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
39536 which seems to be undefined. Please make sure it is defined" >&2;}
39538 rm -f "$ac_tmp/stdin"
39540 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
39541 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
39543 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
39549 if test x"$ac_file" != x-; then
39551 $as_echo "/* $configure_input */" \
39552 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
39553 } >"$ac_tmp/config.h" \
39554 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
39555 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
39556 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
39557 $as_echo "$as_me: $ac_file is unchanged" >&6;}
39560 mv "$ac_tmp/config.h" "$ac_file" \
39561 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
39564 $as_echo "/* $configure_input */" \
39565 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
39566 || as_fn_error $? "could not create -" "$LINENO" 5
39568 # Compute "$ac_file"'s index
in $config_headers.
39571 for _am_header
in $config_headers :; do
39572 case $_am_header in
39573 $_am_arg |
$_am_arg:* )
39576 _am_stamp_count
=`expr $_am_stamp_count + 1` ;;
39579 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
39580 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
39581 X"$_am_arg" : 'X\(//\)[^/]' \| \
39582 X"$_am_arg" : 'X\(//\)$' \| \
39583 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
39584 $as_echo X"$_am_arg" |
39585 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
39589 /^X\(\/\/\)[^/].*/{
39601 s/.*/./; q'`/stamp-h
$_am_stamp_count
39604 :C
) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
39605 $as_echo "$as_me: executing $ac_file commands" >&6;}
39610 case $ac_file$ac_mode in
39612 (mv zfs_config.h zfs_config.h.tmp
&&
39613 awk -f ${ac_srcdir}/config
/config.
awk zfs_config.h.tmp
>zfs_config.h
&&
39614 rm zfs_config.h.tmp
) ||
exit 1 ;;
39615 "depfiles":C
) test x
"$AMDEP_TRUE" != x
"" ||
{
39616 # Older Autoconf quotes --file arguments for eval, but not when files
39617 # are listed without --file. Let's play safe and only enable the eval
39618 # if we detect the quoting.
39619 case $CONFIG_FILES in
39620 *\'*) eval set x
"$CONFIG_FILES" ;;
39621 *) set x
$CONFIG_FILES ;;
39626 # Strip MF so we end up with the name of the file.
39627 mf
=`echo "$mf" | sed -e 's/:.*$//'`
39628 # Check whether this is an Automake generated Makefile or not.
39629 # We used to match only the files named 'Makefile.in', but
39630 # some people rename them; so instead we look at the file content.
39631 # Grep'ing the first line is not enough: some people post-process
39632 # each Makefile.in and add a new line on top of each file to say so.
39633 # Grep'ing the whole file is not good either: AIX grep has a line
39634 # limit of 2048, but all sed's we know have understand at least 4000.
39635 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" |
grep X
>/dev
/null
2>&1; then
39636 dirpart
=`$as_dirname -- "$mf" ||
39637 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
39638 X"$mf" : 'X\(//\)[^/]' \| \
39639 X"$mf" : 'X\(//\)$' \| \
39640 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
39642 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
39646 /^X\(\/\/\)[^/].*/{
39662 # Extract the definition of DEPDIR, am__include, and am__quote
39663 # from the Makefile without running 'make'.
39664 DEPDIR
=`sed -n 's/^DEPDIR = //p' < "$mf"`
39665 test -z "$DEPDIR" && continue
39666 am__include
=`sed -n 's/^am__include = //p' < "$mf"`
39667 test -z "$am__include" && continue
39668 am__quote
=`sed -n 's/^am__quote = //p' < "$mf"`
39669 # Find all dependency output files, they are included files with
39670 # $(DEPDIR) in their names. We invoke sed twice because it is the
39671 # simplest approach to changing $(DEPDIR) to its actual value in the
39673 for file in `sed -n "
39674 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
39675 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
39676 # Make sure the directory exists.
39677 test -f "$dirpart/$file" && continue
39678 fdir
=`$as_dirname -- "$file" ||
39679 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
39680 X"$file" : 'X\(//\)[^/]' \| \
39681 X"$file" : 'X\(//\)$' \| \
39682 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
39683 $as_echo X"$file" |
39684 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
39688 /^X\(\/\/\)[^/].*/{
39701 as_dir
=$dirpart/$fdir; as_fn_mkdir_p
39702 # echo "creating $dirpart/$file"
39703 echo '# dummy' > "$dirpart/$file"
39710 # See if we are running on zsh, and set the options that allow our
39711 # commands through without removal of \ escapes.
39712 if test -n "${ZSH_VERSION+set}"; then
39713 setopt NO_GLOB_SUBST
39717 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
39720 cat <<_LT_EOF >> "$cfgfile"
39722 # Generated automatically by $as_me ($PACKAGE) $VERSION
39723 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
39725 # Provide generalized library-building support services.
39726 # Written by Gordon Matzigkeit, 1996
39728 # Copyright (C) 2014 Free Software Foundation, Inc.
39729 # This is free software; see the source for copying conditions. There is NO
39730 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
39732 # GNU Libtool is free software; you can redistribute it and/or modify
39733 # it under the terms of the GNU General Public License as published by
39734 # the Free Software Foundation; either version 2 of of the License, or
39735 # (at your option) any later version.
39737 # As a special exception to the GNU General Public License, if you
39738 # distribute this file as part of a program or library that is built
39739 # using GNU Libtool, you may include this file under the same
39740 # distribution terms that you use for the rest of that program.
39742 # GNU Libtool is distributed in the hope that it will be useful, but
39743 # WITHOUT ANY WARRANTY; without even the implied warranty of
39744 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
39745 # GNU General Public License for more details.
39747 # You should have received a copy of the GNU General Public License
39748 # along with this program. If not, see <http://www.gnu.org/licenses/>.
39751 # The names of the tagged configurations supported by this script.
39754 # Configured defaults for sys_lib_dlsearch_path munging.
39755 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
39757 # ### BEGIN LIBTOOL CONFIG
39759 # Which release of libtool.m4 was used?
39760 macro_version=$macro_version
39761 macro_revision=$macro_revision
39763 # Whether or not to build shared libraries.
39764 build_libtool_libs=$enable_shared
39766 # Whether or not to build static libraries.
39767 build_old_libs=$enable_static
39769 # What type of objects to build.
39772 # Whether or not to optimize for fast installation.
39773 fast_install=$enable_fast_install
39775 # Shared archive member basename,for filename based shared library versioning on AIX.
39776 shared_archive_member_spec=$shared_archive_member_spec
39778 # Shell to use when invoking shell scripts.
39781 # An echo program that protects backslashes.
39784 # The PATH separator for the build system.
39785 PATH_SEPARATOR=$lt_PATH_SEPARATOR
39788 host_alias=$host_alias
39792 # The build system.
39793 build_alias=$build_alias
39797 # A sed program that does not truncate output.
39800 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
39801 Xsed="\$SED -e 1s/^X//"
39803 # A grep program that handles long lines.
39809 # A literal string matcher.
39812 # A BSD- or MS-compatible name lister.
39815 # Whether we need soft or hard links.
39818 # What is the maximum length of a command?
39819 max_cmd_len=$max_cmd_len
39821 # Object file suffix (normally "o").
39824 # Executable file suffix (normally "").
39827 # whether the shell understands "unset".
39830 # turn spaces into newlines.
39833 # turn newlines into spaces.
39836 # convert \$build file names to \$host format.
39837 to_host_file_cmd=$lt_cv_to_host_file_cmd
39839 # convert \$build files to toolchain format.
39840 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
39842 # An object symbol dumper.
39843 OBJDUMP=$lt_OBJDUMP
39845 # Method to check whether dependent libraries are shared objects.
39846 deplibs_check_method=$lt_deplibs_check_method
39848 # Command to use when deplibs_check_method = "file_magic".
39849 file_magic_cmd=$lt_file_magic_cmd
39851 # How to find potential files when deplibs_check_method = "file_magic".
39852 file_magic_glob=$lt_file_magic_glob
39854 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
39855 want_nocaseglob=$lt_want_nocaseglob
39857 # DLL creation program.
39858 DLLTOOL=$lt_DLLTOOL
39860 # Command to associate shared and link libraries.
39861 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
39866 # Flags to create an archive.
39867 AR_FLAGS=$lt_AR_FLAGS
39869 # How to feed a file listing to the archiver.
39870 archiver_list_spec=$lt_archiver_list_spec
39872 # A symbol stripping program.
39875 # Commands used to install an old-style archive.
39877 old_postinstall_cmds=$lt_old_postinstall_cmds
39878 old_postuninstall_cmds=$lt_old_postuninstall_cmds
39880 # Whether to use a lock for old archive extraction.
39881 lock_old_archive_extraction=$lock_old_archive_extraction
39886 # LTCC compiler flags.
39887 LTCFLAGS=$lt_CFLAGS
39889 # Take the output of nm and produce a listing of raw symbols and C names.
39890 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
39892 # Transform the output of nm in a proper C declaration.
39893 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
39895 # Transform the output of nm into a list of symbols to manually relocate.
39896 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
39898 # Transform the output of nm in a C name address pair.
39899 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
39901 # Transform the output of nm in a C name address pair when lib prefix is needed.
39902 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
39904 # The name lister interface.
39905 nm_interface=$lt_lt_cv_nm_interface
39907 # Specify filename containing input files for \$NM.
39908 nm_file_list_spec=$lt_nm_file_list_spec
39910 # The root where to search for dependent libraries,and where our libraries should be installed.
39911 lt_sysroot=$lt_sysroot
39913 # Command to truncate a binary pipe.
39914 lt_truncate_bin=$lt_lt_cv_truncate_bin
39916 # The name of the directory that contains temporary libtool files.
39919 # Used to examine libraries when file_magic_cmd begins with "file".
39920 MAGIC_CMD=$MAGIC_CMD
39922 # Must we lock files when doing compilation?
39923 need_locks=$lt_need_locks
39926 MANIFEST_TOOL=$lt_MANIFEST_TOOL
39928 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
39929 DSYMUTIL=$lt_DSYMUTIL
39931 # Tool to change global to local symbols on Mac OS X.
39934 # Tool to manipulate fat objects and archives on Mac OS X.
39937 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
39940 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
39941 OTOOL64=$lt_OTOOL64
39943 # Old archive suffix (normally "a").
39946 # Shared library suffix (normally ".so").
39947 shrext_cmds=$lt_shrext_cmds
39949 # The commands to extract the exported symbol list from a shared archive.
39950 extract_expsyms_cmds=$lt_extract_expsyms_cmds
39952 # Variables whose values should be saved in libtool wrapper scripts and
39953 # restored at link time.
39954 variables_saved_for_relink=$lt_variables_saved_for_relink
39956 # Do we need the "lib" prefix for modules?
39957 need_lib_prefix=$need_lib_prefix
39959 # Do we need a version for libraries?
39960 need_version=$need_version
39962 # Library versioning type.
39963 version_type=$version_type
39965 # Shared library runtime path variable.
39966 runpath_var=$runpath_var
39968 # Shared library path variable.
39969 shlibpath_var=$shlibpath_var
39971 # Is shlibpath searched before the hard-coded library search path?
39972 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
39974 # Format of library name prefix.
39975 libname_spec=$lt_libname_spec
39977 # List of archive names. First name is the real one, the rest are links.
39978 # The last name is the one that the linker finds with -lNAME
39979 library_names_spec=$lt_library_names_spec
39981 # The coded name of the library, if different from the real name.
39982 soname_spec=$lt_soname_spec
39984 # Permission mode override for installation of shared libraries.
39985 install_override_mode=$lt_install_override_mode
39987 # Command to use after installation of a shared archive.
39988 postinstall_cmds=$lt_postinstall_cmds
39990 # Command to use after uninstallation of a shared archive.
39991 postuninstall_cmds=$lt_postuninstall_cmds
39993 # Commands used to finish a libtool library installation in a directory.
39994 finish_cmds=$lt_finish_cmds
39996 # As "finish_cmds", except a single script fragment to be evaled but
39998 finish_eval=$lt_finish_eval
40000 # Whether we should hardcode library paths into libraries.
40001 hardcode_into_libs=$hardcode_into_libs
40003 # Compile-time system search path for libraries.
40004 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
40006 # Detected run-time system search path for libraries.
40007 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
40009 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
40010 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
40012 # Whether dlopen is supported.
40013 dlopen_support=$enable_dlopen
40015 # Whether dlopen of programs is supported.
40016 dlopen_self=$enable_dlopen_self
40018 # Whether dlopen of statically linked programs is supported.
40019 dlopen_self_static=$enable_dlopen_self_static
40021 # Commands to strip libraries.
40022 old_striplib=$lt_old_striplib
40023 striplib=$lt_striplib
40026 # The linker used to build libraries.
40029 # How to create reloadable object files.
40030 reload_flag=$lt_reload_flag
40031 reload_cmds=$lt_reload_cmds
40033 # Commands used to build an old-style archive.
40034 old_archive_cmds=$lt_old_archive_cmds
40036 # A language specific compiler.
40039 # Is the compiler the GNU compiler?
40042 # Compiler flag to turn off builtin functions.
40043 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
40045 # Additional compiler flags for building library objects.
40046 pic_flag=$lt_lt_prog_compiler_pic
40048 # How to pass a linker flag through the compiler.
40049 wl=$lt_lt_prog_compiler_wl
40051 # Compiler flag to prevent dynamic linking.
40052 link_static_flag=$lt_lt_prog_compiler_static
40054 # Does compiler simultaneously support -c and -o options?
40055 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
40057 # Whether or not to add -lc for building shared libraries.
40058 build_libtool_need_lc=$archive_cmds_need_lc
40060 # Whether or not to disallow shared libs when runtime libs are static.
40061 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
40063 # Compiler flag to allow reflexive dlopens.
40064 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
40066 # Compiler flag to generate shared objects directly from archives.
40067 whole_archive_flag_spec=$lt_whole_archive_flag_spec
40069 # Whether the compiler copes with passing no objects directly.
40070 compiler_needs_object=$lt_compiler_needs_object
40072 # Create an old-style archive from a shared archive.
40073 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
40075 # Create a temporary old-style archive to link instead of a shared archive.
40076 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
40078 # Commands used to build a shared archive.
40079 archive_cmds=$lt_archive_cmds
40080 archive_expsym_cmds=$lt_archive_expsym_cmds
40082 # Commands used to build a loadable module if different from building
40083 # a shared archive.
40084 module_cmds=$lt_module_cmds
40085 module_expsym_cmds=$lt_module_expsym_cmds
40087 # Whether we are building with GNU ld or not.
40088 with_gnu_ld=$lt_with_gnu_ld
40090 # Flag that allows shared libraries with undefined symbols to be built.
40091 allow_undefined_flag=$lt_allow_undefined_flag
40093 # Flag that enforces no undefined symbols.
40094 no_undefined_flag=$lt_no_undefined_flag
40096 # Flag to hardcode \$libdir into a binary during linking.
40097 # This must work even if \$libdir does not exist
40098 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
40100 # Whether we need a single "-rpath" flag with a separated argument.
40101 hardcode_libdir_separator=$lt_hardcode_libdir_separator
40103 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
40104 # DIR into the resulting binary.
40105 hardcode_direct=$hardcode_direct
40107 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
40108 # DIR into the resulting binary and the resulting library dependency is
40109 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
40110 # library is relocated.
40111 hardcode_direct_absolute=$hardcode_direct_absolute
40113 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
40114 # into the resulting binary.
40115 hardcode_minus_L=$hardcode_minus_L
40117 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
40118 # into the resulting binary.
40119 hardcode_shlibpath_var=$hardcode_shlibpath_var
40121 # Set to "yes" if building a shared library automatically hardcodes DIR
40122 # into the library and all subsequent libraries and executables linked
40124 hardcode_automatic=$hardcode_automatic
40126 # Set to yes if linker adds runtime paths of dependent libraries
40127 # to runtime path list.
40128 inherit_rpath=$inherit_rpath
40130 # Whether libtool must link a program against all its dependency libraries.
40131 link_all_deplibs=$link_all_deplibs
40133 # Set to "yes" if exported symbols are required.
40134 always_export_symbols=$always_export_symbols
40136 # The commands to list exported symbols.
40137 export_symbols_cmds=$lt_export_symbols_cmds
40139 # Symbols that should not be listed in the preloaded symbols.
40140 exclude_expsyms=$lt_exclude_expsyms
40142 # Symbols that must always be exported.
40143 include_expsyms=$lt_include_expsyms
40145 # Commands necessary for linking programs (against libraries) with templates.
40146 prelink_cmds=$lt_prelink_cmds
40148 # Commands necessary for finishing linking programs.
40149 postlink_cmds=$lt_postlink_cmds
40151 # Specify filename containing input files.
40152 file_list_spec=$lt_file_list_spec
40154 # How to hardcode a shared library path into an executable.
40155 hardcode_action=$hardcode_action
40157 # ### END LIBTOOL CONFIG
40161 cat <<'_LT_EOF' >> "$cfgfile"
40163 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
40165 # func_munge_path_list VARIABLE PATH
40166 # -----------------------------------
40167 # VARIABLE is name of variable containing _space_ separated list of
40168 # directories to be munged by the contents of PATH, which is string
40171 # string "DIR[ DIR]" will be prepended to VARIABLE
40173 # string "DIR[ DIR]" will be appended to VARIABLE
40174 # "DIRP[:DIRP]::[DIRA:]DIRA"
40175 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
40176 # "DIRA[ DIRA]" will be appended to VARIABLE
40178 # VARIABLE will be replaced by "DIR[ DIR]"
40179 func_munge_path_list ()
40185 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
40188 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
40191 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
40192 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
40195 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
40201 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
40202 func_cc_basename ()
40204 for cc_temp in $*""; do
40206 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
40207 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
40212 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
40216 # ### END FUNCTIONS SHARED WITH CONFIGURE
40222 cat <<\_LT_EOF
>> "$cfgfile"
40223 # AIX sometimes has problems with the GCC collect2 program. For some
40224 # reason, if we set the COLLECT_NAMES environment variable, the problems
40225 # vanish in a puff of smoke.
40226 if test set != "${COLLECT_NAMES+set}"; then
40228 export COLLECT_NAMES
40235 ltmain
=$ac_aux_dir/ltmain.sh
40238 # We use sed instead of cat because bash on DJGPP gets confused if
40239 # if finds mixed CR/LF and LF-only lines. Since sed operates in
40240 # text mode, it properly converts lines to CR/LF. This bash problem
40241 # is reportedly fixed, but why not run on old versions too?
40242 sed '$q' "$ltmain" >> "$cfgfile" \
40243 ||
(rm -f "$cfgfile"; exit 1)
40245 mv -f "$cfgfile" "$ofile" ||
40246 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
40257 ac_clean_files
=$ac_clean_files_save
40259 test $ac_write_fail = 0 ||
40260 as_fn_error $?
"write failure creating $CONFIG_STATUS" "$LINENO" 5
40263 # configure is writing to config.log, and then calls config.status.
40264 # config.status does its own redirection, appending to config.log.
40265 # Unfortunately, on DOS this fails, as config.log is still kept open
40266 # by configure, so config.status won't be able to write to it; its
40267 # output is simply discarded. So we exec the FD to /dev/null,
40268 # effectively closing config.log, so it can be properly (re)opened and
40269 # appended to by config.status. When coming back to configure, we
40270 # need to make the FD available again.
40271 if test "$no_create" != yes; then
40273 ac_config_status_args
=
40274 test "$silent" = yes &&
40275 ac_config_status_args
="$ac_config_status_args --quiet"
40277 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
40279 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
40280 # would make configure fail if this is the last instruction.
40281 $ac_cs_success || as_fn_exit
1
40283 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
40284 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
40285 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}