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
639 WANT_MMAP_LIBAIO_FALSE
640 WANT_MMAP_LIBAIO_TRUE
641 WANT_DEVNAME2DEVID_FALSE
642 WANT_DEVNAME2DEVID_TRUE
674 NO_UNUSED_BUT_SET_VARIABLE
707 am__fastdepCCAS_FALSE
759 INSTALL_STRIP_PROGRAM
779 MAINTAINER_MODE_FALSE
833 program_transform_name
846 enable_option_checking
847 enable_maintainer_mode
849 enable_dependency_tracking
866 with_systemdpresetdir
867 with_systemdmodulesloaddir
879 ac_precious_vars
='build_alias
893 # Initialize some variables set by options.
895 ac_init_version
=false
896 ac_unrecognized_opts
=
898 # The variables have the same names as the options, with
899 # dashes changed to underlines.
907 program_transform_name
=s
,x
,x
,
915 # Installation directory options.
916 # These are left unexpanded so users can "make install exec_prefix=/foo"
917 # and all the variables that are supposed to be based on exec_prefix
918 # by default will actually change.
919 # Use braces instead of parens because sh, perl, etc. also accept them.
920 # (The list follows the same order as the GNU Coding Standards.)
921 bindir
='${exec_prefix}/bin'
922 sbindir
='${exec_prefix}/sbin'
923 libexecdir
='${exec_prefix}/libexec'
924 datarootdir
='${prefix}/share'
925 datadir
='${datarootdir}'
926 sysconfdir
='${prefix}/etc'
927 sharedstatedir
='${prefix}/com'
928 localstatedir
='${prefix}/var'
929 runstatedir
='${localstatedir}/run'
930 includedir
='${prefix}/include'
931 oldincludedir
='/usr/include'
932 docdir
='${datarootdir}/doc/${PACKAGE_TARNAME}'
933 infodir
='${datarootdir}/info'
938 libdir
='${exec_prefix}/lib'
939 localedir
='${datarootdir}/locale'
940 mandir
='${datarootdir}/man'
946 # If the previous option needs an argument, assign it.
947 if test -n "$ac_prev"; then
948 eval $ac_prev=\
$ac_option
954 *=?
*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
959 # Accept the important Cygnus configure options, so we can diagnose typos.
961 case $ac_dashdash$ac_option in
965 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
967 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
970 -build |
--build |
--buil |
--bui |
--bu)
971 ac_prev
=build_alias
;;
972 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
973 build_alias
=$ac_optarg ;;
975 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
976 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
977 ac_prev
=cache_file
;;
978 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
979 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
980 cache_file
=$ac_optarg ;;
983 cache_file
=config.cache
;;
985 -datadir |
--datadir |
--datadi |
--datad)
987 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
988 datadir
=$ac_optarg ;;
990 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
991 |
--dataroo |
--dataro |
--datar)
992 ac_prev
=datarootdir
;;
993 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
994 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
995 datarootdir
=$ac_optarg ;;
997 -disable-* |
--disable-*)
998 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
999 # Reject names that are not valid shell variable names.
1000 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1001 as_fn_error $?
"invalid feature name: $ac_useropt"
1002 ac_useropt_orig
=$ac_useropt
1003 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1004 case $ac_user_opts in
1006 "enable_
$ac_useropt"
1008 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1009 ac_unrecognized_sep
=', ';;
1011 eval enable_
$ac_useropt=no
;;
1013 -docdir |
--docdir |
--docdi |
--doc |
--do)
1015 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
1016 docdir
=$ac_optarg ;;
1018 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
1020 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
1021 dvidir
=$ac_optarg ;;
1023 -enable-* |
--enable-*)
1024 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1025 # Reject names that are not valid shell variable names.
1026 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1027 as_fn_error $?
"invalid feature name: $ac_useropt"
1028 ac_useropt_orig
=$ac_useropt
1029 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1030 case $ac_user_opts in
1032 "enable_
$ac_useropt"
1034 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1035 ac_unrecognized_sep
=', ';;
1037 eval enable_
$ac_useropt=\
$ac_optarg ;;
1039 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
1040 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
1041 |
--exec |
--exe |
--ex)
1042 ac_prev
=exec_prefix
;;
1043 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
1044 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
1045 |
--exec=* |
--exe=* |
--ex=*)
1046 exec_prefix
=$ac_optarg ;;
1048 -gas |
--gas |
--ga |
--g)
1049 # Obsolete; use --with-gas.
1052 -help |
--help |
--hel |
--he |
-h)
1053 ac_init_help
=long
;;
1054 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
1055 ac_init_help
=recursive
;;
1056 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
1057 ac_init_help
=short
;;
1059 -host |
--host |
--hos |
--ho)
1060 ac_prev
=host_alias
;;
1061 -host=* |
--host=* |
--hos=* |
--ho=*)
1062 host_alias
=$ac_optarg ;;
1064 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
1066 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
1068 htmldir
=$ac_optarg ;;
1070 -includedir |
--includedir |
--includedi |
--included |
--include \
1071 |
--includ |
--inclu |
--incl |
--inc)
1072 ac_prev
=includedir
;;
1073 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
1074 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
1075 includedir
=$ac_optarg ;;
1077 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
1079 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
1080 infodir
=$ac_optarg ;;
1082 -libdir |
--libdir |
--libdi |
--libd)
1084 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
1085 libdir
=$ac_optarg ;;
1087 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
1088 |
--libexe |
--libex |
--libe)
1089 ac_prev
=libexecdir
;;
1090 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
1091 |
--libexe=* |
--libex=* |
--libe=*)
1092 libexecdir
=$ac_optarg ;;
1094 -localedir |
--localedir |
--localedi |
--localed |
--locale)
1095 ac_prev
=localedir
;;
1096 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
1097 localedir
=$ac_optarg ;;
1099 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
1100 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
1101 ac_prev
=localstatedir
;;
1102 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
1103 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
1104 localstatedir
=$ac_optarg ;;
1106 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
1108 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
1109 mandir
=$ac_optarg ;;
1111 -nfp |
--nfp |
--nf)
1112 # Obsolete; use --without-fp.
1115 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
1116 |
--no-cr |
--no-c |
-n)
1119 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1120 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1123 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1124 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1125 |
--oldin |
--oldi |
--old |
--ol |
--o)
1126 ac_prev
=oldincludedir
;;
1127 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1128 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1129 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1130 oldincludedir
=$ac_optarg ;;
1132 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1134 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1135 prefix
=$ac_optarg ;;
1137 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1138 |
--program-pre |
--program-pr |
--program-p)
1139 ac_prev
=program_prefix
;;
1140 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1141 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1142 program_prefix
=$ac_optarg ;;
1144 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1145 |
--program-suf |
--program-su |
--program-s)
1146 ac_prev
=program_suffix
;;
1147 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1148 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1149 program_suffix
=$ac_optarg ;;
1151 -program-transform-name |
--program-transform-name \
1152 |
--program-transform-nam |
--program-transform-na \
1153 |
--program-transform-n |
--program-transform- \
1154 |
--program-transform |
--program-transfor \
1155 |
--program-transfo |
--program-transf \
1156 |
--program-trans |
--program-tran \
1157 |
--progr-tra |
--program-tr |
--program-t)
1158 ac_prev
=program_transform_name
;;
1159 -program-transform-name=* |
--program-transform-name=* \
1160 |
--program-transform-nam=* |
--program-transform-na=* \
1161 |
--program-transform-n=* |
--program-transform-=* \
1162 |
--program-transform=* |
--program-transfor=* \
1163 |
--program-transfo=* |
--program-transf=* \
1164 |
--program-trans=* |
--program-tran=* \
1165 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1166 program_transform_name
=$ac_optarg ;;
1168 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1170 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1171 pdfdir
=$ac_optarg ;;
1173 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1175 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1178 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1179 |
-silent |
--silent |
--silen |
--sile |
--sil)
1182 -runstatedir |
--runstatedir |
--runstatedi |
--runstated \
1183 |
--runstate |
--runstat |
--runsta |
--runst |
--runs \
1184 |
--run |
--ru |
--r)
1185 ac_prev
=runstatedir
;;
1186 -runstatedir=* |
--runstatedir=* |
--runstatedi=* |
--runstated=* \
1187 |
--runstate=* |
--runstat=* |
--runsta=* |
--runst=* |
--runs=* \
1188 |
--run=* |
--ru=* |
--r=*)
1189 runstatedir
=$ac_optarg ;;
1191 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1193 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1195 sbindir
=$ac_optarg ;;
1197 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1198 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1199 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1201 ac_prev
=sharedstatedir
;;
1202 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1203 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1204 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1206 sharedstatedir
=$ac_optarg ;;
1208 -site |
--site |
--sit)
1210 -site=* |
--site=* |
--sit=*)
1213 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1215 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1216 srcdir
=$ac_optarg ;;
1218 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1219 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1220 ac_prev
=sysconfdir
;;
1221 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1222 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1223 sysconfdir
=$ac_optarg ;;
1225 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1226 ac_prev
=target_alias
;;
1227 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1228 target_alias
=$ac_optarg ;;
1230 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1233 -version |
--version |
--versio |
--versi |
--vers |
-V)
1234 ac_init_version
=: ;;
1237 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1238 # Reject names that are not valid shell variable names.
1239 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1240 as_fn_error $?
"invalid package name: $ac_useropt"
1241 ac_useropt_orig
=$ac_useropt
1242 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1243 case $ac_user_opts in
1247 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1248 ac_unrecognized_sep
=', ';;
1250 eval with_
$ac_useropt=\
$ac_optarg ;;
1252 -without-* |
--without-*)
1253 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1254 # Reject names that are not valid shell variable names.
1255 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1256 as_fn_error $?
"invalid package name: $ac_useropt"
1257 ac_useropt_orig
=$ac_useropt
1258 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1259 case $ac_user_opts in
1263 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1264 ac_unrecognized_sep
=', ';;
1266 eval with_
$ac_useropt=no
;;
1269 # Obsolete; use --with-x.
1272 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1273 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1274 ac_prev
=x_includes
;;
1275 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1276 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1277 x_includes
=$ac_optarg ;;
1279 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1280 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1281 ac_prev
=x_libraries
;;
1282 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1283 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1284 x_libraries
=$ac_optarg ;;
1286 -*) as_fn_error $?
"unrecognized option: \`$ac_option'
1287 Try \`$0 --help' for more information"
1291 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1292 # Reject names that are not valid shell variable names.
1293 case $ac_envvar in #(
1294 '' |
[0-9]* |
*[!_
$as_cr_alnum]* )
1295 as_fn_error $?
"invalid variable name: \`$ac_envvar'" ;;
1297 eval $ac_envvar=\
$ac_optarg
1298 export $ac_envvar ;;
1301 # FIXME: should be removed in autoconf 3.0.
1302 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1303 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1304 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1305 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1311 if test -n "$ac_prev"; then
1312 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1313 as_fn_error $?
"missing argument to $ac_option"
1316 if test -n "$ac_unrecognized_opts"; then
1317 case $enable_option_checking in
1319 fatal
) as_fn_error $?
"unrecognized options: $ac_unrecognized_opts" ;;
1320 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1324 # Check all directory arguments for consistency.
1325 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1326 datadir sysconfdir sharedstatedir localstatedir includedir \
1327 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1328 libdir localedir mandir runstatedir
1330 eval ac_val
=\$
$ac_var
1331 # Remove trailing slashes.
1334 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1335 eval $ac_var=\
$ac_val;;
1337 # Be sure to have absolute directory names.
1339 [\\/$
]* | ?
:[\\/]* ) continue;;
1340 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1342 as_fn_error $?
"expected an absolute directory name for --$ac_var: $ac_val"
1345 # There might be people who depend on the old broken behavior: `$host'
1346 # used to hold the argument of --host etc.
1347 # FIXME: To remove some day.
1350 target
=$target_alias
1352 # FIXME: To remove some day.
1353 if test "x$host_alias" != x
; then
1354 if test "x$build_alias" = x
; then
1355 cross_compiling
=maybe
1356 elif test "x$build_alias" != "x$host_alias"; then
1362 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1364 test "$silent" = yes && exec 6>/dev
/null
1367 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1368 ac_ls_di
=`ls -di .` &&
1369 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1370 as_fn_error $?
"working directory cannot be determined"
1371 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1372 as_fn_error $?
"pwd does not report name of working directory"
1375 # Find the source files, if location was not specified.
1376 if test -z "$srcdir"; then
1377 ac_srcdir_defaulted
=yes
1378 # Try the directory containing this script, then the parent directory.
1379 ac_confdir
=`$as_dirname -- "$as_myself" ||
1380 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1381 X"$as_myself" : 'X\(//\)[^/]' \| \
1382 X"$as_myself" : 'X\(//\)$' \| \
1383 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1384 $as_echo X"$as_myself" |
1385 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1403 if test ! -r "$srcdir/$ac_unique_file"; then
1407 ac_srcdir_defaulted
=no
1409 if test ! -r "$srcdir/$ac_unique_file"; then
1410 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1411 as_fn_error $?
"cannot find sources ($ac_unique_file) in $srcdir"
1413 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1415 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1417 # When building in place, set srcdir=.
1418 if test "$ac_abs_confdir" = "$ac_pwd"; then
1421 # Remove unnecessary trailing slashes from srcdir.
1422 # Double slashes in file names in object file debugging info
1423 # mess up M-x gdb in Emacs.
1425 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1427 for ac_var
in $ac_precious_vars; do
1428 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1429 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1430 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1431 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1435 # Report the --help message.
1437 if test "$ac_init_help" = "long"; then
1438 # Omit some internal or obsolete options to make the list less imposing.
1439 # This message is too long to be a string in the A/UX 3.1 sh.
1441 \`configure' configures zfs 0.6.5.11 to adapt to many kinds of systems.
1443 Usage: $0 [OPTION]... [VAR=VALUE]...
1445 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1446 VAR=VALUE. See below for descriptions of some of the useful variables.
1448 Defaults for the options are specified in brackets.
1451 -h, --help display this help and exit
1452 --help=short display options specific to this package
1453 --help=recursive display the short help of all the included packages
1454 -V, --version display version information and exit
1455 -q, --quiet, --silent do not print \`checking ...' messages
1456 --cache-file=FILE cache test results in FILE [disabled]
1457 -C, --config-cache alias for \`--cache-file=config.cache'
1458 -n, --no-create do not create output files
1459 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1461 Installation directories:
1462 --prefix=PREFIX install architecture-independent files in PREFIX
1463 [$ac_default_prefix]
1464 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1467 By default, \`make install' will install all the files in
1468 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1469 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1470 for instance \`--prefix=\$HOME'.
1472 For better control, use the options below.
1474 Fine tuning of the installation directories:
1475 --bindir=DIR user executables [EPREFIX/bin]
1476 --sbindir=DIR system admin executables [EPREFIX/sbin]
1477 --libexecdir=DIR program executables [EPREFIX/libexec]
1478 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1479 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1480 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1481 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1482 --libdir=DIR object code libraries [EPREFIX/lib]
1483 --includedir=DIR C header files [PREFIX/include]
1484 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1485 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1486 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1487 --infodir=DIR info documentation [DATAROOTDIR/info]
1488 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1489 --mandir=DIR man documentation [DATAROOTDIR/man]
1490 --docdir=DIR documentation root [DATAROOTDIR/doc/zfs]
1491 --htmldir=DIR html documentation [DOCDIR]
1492 --dvidir=DIR dvi documentation [DOCDIR]
1493 --pdfdir=DIR pdf documentation [DOCDIR]
1494 --psdir=DIR ps documentation [DOCDIR]
1500 --program-prefix=PREFIX prepend PREFIX to installed program names
1501 --program-suffix=SUFFIX append SUFFIX to installed program names
1502 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
1505 --build=BUILD configure
for building on BUILD
[guessed
]
1506 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1507 --target=TARGET configure
for building compilers
for TARGET
[HOST
]
1511 if test -n "$ac_init_help"; then
1512 case $ac_init_help in
1513 short | recursive
) echo "Configuration of zfs 0.6.5.11:";;
1518 --disable-option-checking ignore unrecognized
--enable/--with options
1519 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1520 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1521 --enable-maintainer-mode
1522 enable make rules and dependencies not useful
(and
1523 sometimes confusing
) to the casual installer
1524 --enable-silent-rules less verbose build output
(undo
: "make V=1")
1525 --disable-silent-rules verbose build output
(undo
: "make V=0")
1526 --enable-dependency-tracking
1527 do not reject slow dependency extractors
1528 --disable-dependency-tracking
1529 speeds up one-time build
1530 --enable-shared[=PKGS
] build shared libraries
[default
=yes]
1531 --enable-static[=PKGS
] build static libraries
[default
=yes]
1532 --enable-fast-install[=PKGS
]
1533 optimize
for fast installation
[default
=yes]
1534 --disable-libtool-lock avoid locking
(might
break parallel builds
)
1535 --enable-linux-builtin Configure
for builtin in-tree kernel modules
1537 --enable-systemd install systemd unit
/preset files
[[default
: yes]]
1538 --enable-sysvinit install SysV init scripts
[default
: yes]
1539 --enable-debug Enable generic debug support
[default
=no
]
1540 --enable-debug-dmu-tx Enable dmu tx validation
[default
=no
]
1543 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
1544 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
1545 --with-pic[=PKGS
] try to use only PIC
/non-PIC objects
[default
=use
1547 --with-aix-soname=aix|svr4|both
1548 shared library versioning
(aka
"SONAME") variant to
1549 provide on AIX
, [default
=aix
].
1550 --with-gnu-ld assume the C compiler uses GNU ld
[default
=no
]
1551 --with-sysroot[=DIR
] Search
for dependent libraries within DIR
(or the
1552 compiler
's sysroot if not specified).
1553 --with-spec=SPEC Spec files 'generic|redhat
'
1554 --with-config=CONFIG Config file 'kernel|user|all|srpm
'
1555 --with-mounthelperdir=DIR
1556 install mount.zfs in dir [[/sbin]]
1557 --with-udevdir=DIR install udev helpers [default=check]
1558 --with-udevruledir=DIR install udev rules [[UDEVDIR/rules.d]]
1559 --with-systemdunitdir=DIR
1560 install systemd unit files in dir
1561 [[/usr/lib/systemd/system]]
1562 --with-systemdpresetdir=DIR
1563 install systemd preset files in dir
1564 [[/usr/lib/systemd/system-preset]]
1565 --with-systemdmodulesloaddir=DIR
1566 install systemd module load files into dir
1567 [[/usr/lib/modules-load.d]]
1568 --with-dracutdir=DIR install dracut helpers [default=check]
1569 --with-blkid support blkid caching [default=check]
1570 --with-linux=PATH Path to kernel source
1571 --with-linux-obj=PATH Path to kernel build objects
1572 --with-spl=PATH Path to spl source
1573 --with-spl-obj=PATH Path to spl build objects
1574 --with-spl-timeout=SECS Wait SECS for SPL header and symver file [default=0]
1576 Some influential environment variables:
1577 CC C compiler command
1578 CFLAGS C compiler flags
1579 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1580 nonstandard directory <lib dir>
1581 LIBS libraries to pass to the linker, e.g. -l<library>
1582 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1583 you have headers in a nonstandard directory <include dir>
1585 User-defined run-time library search path.
1587 CCAS assembler compiler command (defaults to CC)
1588 CCASFLAGS assembler compiler flags (defaults to CFLAGS)
1590 Use these variables to override the choices made by `configure' or to
help
1591 it to
find libraries and programs with nonstandard names
/locations.
1593 Report bugs to the package provider.
1598 if test "$ac_init_help" = "recursive"; then
1599 # If there are subdirs, report their specific --help.
1600 for ac_dir
in : $ac_subdirs_all; do test "x$ac_dir" = x
: && continue
1601 test -d "$ac_dir" ||
1602 { cd "$srcdir" && ac_pwd
=`pwd` && srcdir
=.
&& test -d "$ac_dir"; } ||
1607 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1609 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1610 # A ".." for each directory in $ac_dir_suffix.
1611 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1612 case $ac_top_builddir_sub in
1613 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1614 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
1617 ac_abs_top_builddir
=$ac_pwd
1618 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
1619 # for backward compatibility:
1620 ac_top_builddir
=$ac_top_build_prefix
1623 .
) # We are building in place.
1625 ac_top_srcdir
=$ac_top_builddir_sub
1626 ac_abs_top_srcdir
=$ac_pwd ;;
1627 [\\/]* | ?
:[\\/]* ) # Absolute name.
1628 ac_srcdir
=$srcdir$ac_dir_suffix;
1629 ac_top_srcdir
=$srcdir
1630 ac_abs_top_srcdir
=$srcdir ;;
1632 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
1633 ac_top_srcdir
=$ac_top_build_prefix$srcdir
1634 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
1636 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
1638 cd "$ac_dir" ||
{ ac_status
=$?
; continue; }
1639 # Check for guested configure.
1640 if test -f "$ac_srcdir/configure.gnu"; then
1642 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1643 elif test -f "$ac_srcdir/configure"; then
1645 $SHELL "$ac_srcdir/configure" --help=recursive
1647 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1649 cd "$ac_pwd" ||
{ ac_status
=$?
; break; }
1653 test -n "$ac_init_help" && exit $ac_status
1654 if $ac_init_version; then
1656 zfs configure
0.6.5.11
1657 generated by GNU Autoconf
2.69
1659 Copyright
(C
) 2012 Free Software Foundation
, Inc.
1660 This configure
script is free software
; the Free Software Foundation
1661 gives unlimited permission to copy
, distribute and modify it.
1666 ## ------------------------ ##
1667 ## Autoconf initialization. ##
1668 ## ------------------------ ##
1670 # ac_fn_c_try_compile LINENO
1671 # --------------------------
1672 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1673 ac_fn_c_try_compile
()
1675 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1676 rm -f conftest.
$ac_objext
1677 if { { ac_try
="$ac_compile"
1679 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1680 *) ac_try_echo=$ac_try;;
1682 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1683 $as_echo "$ac_try_echo"; } >&5
1684 (eval "$ac_compile") 2>conftest.err
1686 if test -s conftest.err; then
1687 grep -v '^ *+' conftest.err >conftest.er1
1688 cat conftest.er1 >&5
1689 mv -f conftest.er1 conftest.err
1691 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1692 test $ac_status = 0; } && {
1693 test -z "$ac_c_werror_flag" ||
1694 test ! -s conftest.err
1695 } && test -s conftest.$ac_objext; then :
1698 $as_echo "$as_me: failed program was:" >&5
1699 sed 's/^/| /' conftest.$ac_ext >&5
1703 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1704 as_fn_set_status $ac_retval
1706 } # ac_fn_c_try_compile
1708 # ac_fn_c_try_link LINENO
1709 # -----------------------
1710 # Try to link conftest.$ac_ext, and return whether this succeeded.
1713 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1714 rm -f conftest.$ac_objext conftest$ac_exeext
1715 if { { ac_try="$ac_link"
1717 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1718 *) ac_try_echo
=$ac_try;;
1720 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1721 $as_echo "$ac_try_echo"; } >&5
1722 (eval "$ac_link") 2>conftest.err
1724 if test -s conftest.err
; then
1725 grep -v '^ *+' conftest.err
>conftest.er1
1726 cat conftest.er1
>&5
1727 mv -f conftest.er1 conftest.err
1729 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1730 test $ac_status = 0; } && {
1731 test -z "$ac_c_werror_flag" ||
1732 test ! -s conftest.err
1733 } && test -s conftest
$ac_exeext && {
1734 test "$cross_compiling" = yes ||
1735 test -x conftest
$ac_exeext
1739 $as_echo "$as_me: failed program was:" >&5
1740 sed 's/^/| /' conftest.
$ac_ext >&5
1744 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1745 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1746 # interfere with the next link command; also delete a directory that is
1747 # left behind by Apple's compiler. We do this before executing the actions.
1748 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1749 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1750 as_fn_set_status
$ac_retval
1752 } # ac_fn_c_try_link
1754 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1755 # -------------------------------------------------------
1756 # Tests whether HEADER exists and can be compiled using the include files in
1757 # INCLUDES, setting the cache variable VAR accordingly.
1758 ac_fn_c_check_header_compile
()
1760 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1762 $as_echo_n "checking for $2... " >&6; }
1763 if eval \
${$3+:} false
; then :
1764 $as_echo_n "(cached) " >&6
1766 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1767 /* end confdefs.h. */
1771 if ac_fn_c_try_compile
"$LINENO"; then :
1776 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
1779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1780 $as_echo "$ac_res" >&6; }
1781 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1783 } # ac_fn_c_check_header_compile
1785 # ac_fn_c_try_cpp LINENO
1786 # ----------------------
1787 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1790 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1791 if { { ac_try
="$ac_cpp conftest.$ac_ext"
1793 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1794 *) ac_try_echo=$ac_try;;
1796 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1797 $as_echo "$ac_try_echo"; } >&5
1798 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1800 if test -s conftest.err; then
1801 grep -v '^ *+' conftest.err >conftest.er1
1802 cat conftest.er1 >&5
1803 mv -f conftest.er1 conftest.err
1805 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1806 test $ac_status = 0; } > conftest.i && {
1807 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1808 test ! -s conftest.err
1812 $as_echo "$as_me: failed program was:" >&5
1813 sed 's/^/| /' conftest.$ac_ext >&5
1817 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1818 as_fn_set_status $ac_retval
1822 # ac_fn_c_try_run LINENO
1823 # ----------------------
1824 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1825 # that executables *can* be run.
1828 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1829 if { { ac_try="$ac_link"
1831 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1832 *) ac_try_echo
=$ac_try;;
1834 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1835 $as_echo "$ac_try_echo"; } >&5
1836 (eval "$ac_link") 2>&5
1838 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1839 test $ac_status = 0; } && { ac_try
='./conftest$ac_exeext'
1840 { { case "(($ac_try" in
1841 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1842 *) ac_try_echo=$ac_try;;
1844 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1845 $as_echo "$ac_try_echo"; } >&5
1846 (eval "$ac_try") 2>&5
1848 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1849 test $ac_status = 0; }; }; then :
1852 $as_echo "$as_me: program exited with status $ac_status" >&5
1853 $as_echo "$as_me: failed program was:" >&5
1854 sed 's/^/| /' conftest.$ac_ext >&5
1856 ac_retval=$ac_status
1858 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1859 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1860 as_fn_set_status $ac_retval
1864 # ac_fn_c_check_func LINENO FUNC VAR
1865 # ----------------------------------
1866 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1867 ac_fn_c_check_func ()
1869 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1871 $as_echo_n "checking for $2... " >&6; }
1872 if eval \${$3+:} false; then :
1873 $as_echo_n "(cached) " >&6
1875 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1876 /* end confdefs.h. */
1877 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1878 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1879 #define $2 innocuous_$2
1881 /* System header to define __stub macros and hopefully few prototypes,
1882 which can conflict with char $2 (); below.
1883 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1884 <limits.h> exists even on freestanding compilers. */
1887 # include <limits.h>
1889 # include <assert.h>
1894 /* Override any GCC internal prototype to avoid an error.
1895 Use char because int might match the return type of a GCC
1896 builtin and then its argument prototype would still apply. */
1901 /* The GNU C library defines this for functions which it implements
1902 to always fail with ENOSYS. Some functions are actually named
1903 something starting with __ and the normal name is an alias. */
1904 #if defined __stub_$2 || defined __stub___$2
1916 if ac_fn_c_try_link "$LINENO"; then :
1921 rm -f core conftest.err conftest.$ac_objext \
1922 conftest$ac_exeext conftest.$ac_ext
1925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1926 $as_echo "$ac_res" >&6; }
1927 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1929 } # ac_fn_c_check_func
1931 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1932 # -------------------------------------------------------
1933 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1934 # the include files in INCLUDES and setting the cache variable VAR
1936 ac_fn_c_check_header_mongrel ()
1938 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1939 if eval \${$3+:} false; then :
1940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1941 $as_echo_n "checking for $2... " >&6; }
1942 if eval \${$3+:} false; then :
1943 $as_echo_n "(cached) " >&6
1946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1947 $as_echo "$ac_res" >&6; }
1949 # Is the header compilable?
1950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1951 $as_echo_n "checking $2 usability... " >&6; }
1952 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1953 /* end confdefs.h. */
1957 if ac_fn_c_try_compile "$LINENO"; then :
1958 ac_header_compiler=yes
1960 ac_header_compiler=no
1962 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1964 $as_echo "$ac_header_compiler" >&6; }
1966 # Is the header present?
1967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1968 $as_echo_n "checking $2 presence... " >&6; }
1969 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1970 /* end confdefs.h. */
1973 if ac_fn_c_try_cpp "$LINENO"; then :
1974 ac_header_preproc=yes
1976 ac_header_preproc=no
1978 rm -f conftest.err conftest.i conftest.$ac_ext
1979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1980 $as_echo "$ac_header_preproc" >&6; }
1982 # So? What about this header?
1983 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1985 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1986 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1987 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1988 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1991 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1992 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1993 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1994 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1995 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1996 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1997 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1998 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1999 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2000 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2004 $as_echo_n "checking for $2... " >&6; }
2005 if eval \${$3+:} false; then :
2006 $as_echo_n "(cached) " >&6
2008 eval "$3=\$ac_header_compiler"
2011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2012 $as_echo "$ac_res" >&6; }
2014 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2016 } # ac_fn_c_check_header_mongrel
2017 cat >config.log <<_ACEOF
2018 This file contains any messages produced by compilers while
2019 running configure, to aid debugging if configure makes a mistake.
2021 It was created by zfs $as_me 0.6.5.11, which was
2022 generated by GNU Autoconf 2.69. Invocation command line was
2034 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
2035 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
2036 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
2037 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
2038 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
2040 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
2041 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
2043 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
2044 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
2045 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
2046 /usr/bin/hostinfo = `(/usr
/bin
/hostinfo
) 2>/dev
/null ||
echo unknown
`
2047 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
2048 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
2049 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
2053 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2057 test -z "$as_dir" && as_dir=.
2058 $as_echo "PATH: $as_dir"
2074 # Keep a trace of the command line.
2075 # Strip out --no-create and --no-recursion so they do not pile up.
2076 # Strip out --silent because we don't want to record it for future runs.
2077 # Also quote any args containing shell meta-characters.
2078 # Make two passes to allow for proper duplicate-argument suppression.
2082 ac_must_keep_next=false
2088 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2089 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2090 | -silent | --silent | --silen | --sile | --sil)
2093 ac_arg=`$as_echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
2096 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2098 as_fn_append ac_configure_args1 " '$ac_arg'"
2099 if test $ac_must_keep_next = true; then
2100 ac_must_keep_next=false # Got value, back to normal.
2103 *=* | --config-cache | -C | -disable-* | --disable-* \
2104 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2105 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2106 | -with-* | --with-* | -without-* | --without-* | --x)
2107 case "$ac_configure_args0 " in
2108 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2111 -* ) ac_must_keep_next=true ;;
2114 as_fn_append ac_configure_args " '$ac_arg'"
2119 { ac_configure_args0=; unset ac_configure_args0;}
2120 { ac_configure_args1=; unset ac_configure_args1;}
2122 # When interrupted or exit'd, cleanup temporary files, and complete
2123 # config.log. We remove comments because anyway the quotes in there
2124 # would cause problems or look ugly.
2125 # WARNING: Use '\'' to represent an apostrophe within the trap.
2126 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2127 trap 'exit_status=$?
2128 # Save into config.log some information that might help in debugging.
2132 $as_echo "## ---------------- ##
2133 ## Cache variables. ##
2134 ## ---------------- ##"
2136 # The following way of writing the cache mishandles newlines in values,
2138 for ac_var in `(set) 2>&1 |
sed -n '\''s
/^\
([a-zA-Z_
][a-zA-Z0-9_
]*\
)=.
*/\
1/p
'\''`; do
2139 eval ac_val=\$$ac_var
2143 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2144 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2147 _ | IFS | as_nl) ;; #(
2148 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2149 *) { eval $ac_var=; unset $ac_var;} ;;
2154 case $as_nl`(ac_space
='\'' '\''; set) 2>&1` in #(
2155 *${as_nl}ac_space=\ *)
2157 "s/'\''/'\''\\\\'\'''\''/g;
2158 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2161 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2168 $as_echo "## ----------------- ##
2169 ## Output variables. ##
2170 ## ----------------- ##"
2172 for ac_var in $ac_subst_vars
2174 eval ac_val=\$$ac_var
2176 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2178 $as_echo "$ac_var='\''$ac_val'\''"
2182 if test -n "$ac_subst_files"; then
2183 $as_echo "## ------------------- ##
2184 ## File substitutions. ##
2185 ## ------------------- ##"
2187 for ac_var in $ac_subst_files
2189 eval ac_val=\$$ac_var
2191 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2193 $as_echo "$ac_var='\''$ac_val'\''"
2198 if test -s confdefs.h; then
2199 $as_echo "## ----------- ##
2206 test "$ac_signal" != 0 &&
2207 $as_echo "$as_me: caught signal $ac_signal"
2208 $as_echo "$as_me: exit $exit_status"
2210 rm -f core *.core core.conftest.* &&
2211 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2214 for ac_signal in 1 2 13 15; do
2215 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2219 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2220 rm -f -r conftest* confdefs.h
2222 $as_echo "/* confdefs.h */" > confdefs.h
2224 # Predefined preprocessor variables.
2226 cat >>confdefs.h <<_ACEOF
2227 #define PACKAGE_NAME "$PACKAGE_NAME"
2230 cat >>confdefs.h <<_ACEOF
2231 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2234 cat >>confdefs.h <<_ACEOF
2235 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2238 cat >>confdefs.h <<_ACEOF
2239 #define PACKAGE_STRING "$PACKAGE_STRING"
2242 cat >>confdefs.h <<_ACEOF
2243 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2246 cat >>confdefs.h <<_ACEOF
2247 #define PACKAGE_URL "$PACKAGE_URL"
2251 # Let the site file select an alternate cache file if it wants to.
2252 # Prefer an explicitly selected file to automatically selected ones.
2255 if test -n "$CONFIG_SITE"; then
2256 # We do not want a PATH search for config.site.
2257 case $CONFIG_SITE in #((
2258 -*) ac_site_file1=./$CONFIG_SITE;;
2259 */*) ac_site_file1=$CONFIG_SITE;;
2260 *) ac_site_file1=./$CONFIG_SITE;;
2262 elif test "x$prefix" != xNONE; then
2263 ac_site_file1=$prefix/share/config.site
2264 ac_site_file2=$prefix/etc/config.site
2266 ac_site_file1=$ac_default_prefix/share/config.site
2267 ac_site_file2=$ac_default_prefix/etc/config.site
2269 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2271 test "x$ac_site_file" = xNONE && continue
2272 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2273 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2274 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2275 sed 's/^/| /' "$ac_site_file" >&5
2277 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2278 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2279 as_fn_error $? "failed to load site
script $ac_site_file
2280 See \
`config.log' for more details" "$LINENO" 5; }
2284 if test -r "$cache_file"; then
2285 # Some versions of bash will fail to source /dev/null (special files
2286 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2287 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2288 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2289 $as_echo "$as_me: loading cache $cache_file" >&6;}
2291 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2292 *) . "./$cache_file";;
2296 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2297 $as_echo "$as_me: creating cache $cache_file" >&6;}
2301 # Check that the precious variables saved in the cache have kept the same
2303 ac_cache_corrupted=false
2304 for ac_var in $ac_precious_vars; do
2305 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2306 eval ac_new_set=\$ac_env_${ac_var}_set
2307 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2308 eval ac_new_val=\$ac_env_${ac_var}_value
2309 case $ac_old_set,$ac_new_set in
2311 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&5
2312 $as_echo "$as_me: error
: \
`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2313 ac_cache_corrupted=: ;;
2315 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not
set in the previous run
" >&5
2316 $as_echo "$as_me: error
: \
`$ac_var' was not set in the previous run" >&2;}
2317 ac_cache_corrupted=: ;;
2320 if test "x$ac_old_val" != "x$ac_new_val"; then
2321 # differences in whitespace do not lead to failure.
2322 ac_old_val_w=`echo x
$ac_old_val`
2323 ac_new_val_w=`echo x
$ac_new_val`
2324 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2325 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2326 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run
:" >&2;}
2327 ac_cache_corrupted=:
2329 { $as_echo "$as_me:${as_lineno-$LINENO}: warning
: ignoring whitespace changes
in \
`$ac_var' since the previous run:" >&5
2330 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2331 eval $ac_var=\$ac_old_val
2333 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2334 $as_echo "$as_me: former value
: \
`$ac_old_val'" >&2;}
2335 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2336 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2339 # Pass precious variables to config.status.
2340 if test "$ac_new_set" = set; then
2342 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s
/'/'\\\\\\\\''/g
"` ;;
2343 *) ac_arg=$ac_var=$ac_new_val ;;
2345 case " $ac_configure_args " in
2346 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2347 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2351 if $ac_cache_corrupted; then
2352 { $as_echo "$as_me:${as_lineno-$LINENO}: error
: in \
`$ac_pwd':" >&5
2353 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2354 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2355 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2356 as_fn_error $? "run \`make distclean' and
/or \
`rm $cache_file' and start over" "$LINENO" 5
2358 ## -------------------- ##
2359 ## Main body of script. ##
2360 ## -------------------- ##
2363 ac_cpp='$CPP $CPPFLAGS'
2364 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2365 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2366 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2370 ac_cpp='$CPP $CPPFLAGS'
2371 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2372 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2373 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2379 for ac_prog in gawk mawk nawk awk
2381 # Extract the first word of "$ac_prog", so it can be a program name with args.
2382 set dummy $ac_prog; ac_word=$2
2383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2384 $as_echo_n "checking for $ac_word... " >&6; }
2385 if ${ac_cv_prog_AWK+:} false; then :
2386 $as_echo_n "(cached) " >&6
2388 if test -n "$AWK"; then
2389 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2391 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2395 test -z "$as_dir" && as_dir=.
2396 for ac_exec_ext in '' $ac_executable_extensions; do
2397 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2398 ac_cv_prog_AWK="$ac_prog"
2399 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2409 if test -n "$AWK"; then
2410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2411 $as_echo "$AWK" >&6; }
2413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2414 $as_echo "no" >&6; }
2418 test -n "$AWK" && break
2421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking metadata" >&5
2422 $as_echo_n "checking metadata... " >&6; }
2425 _zfs_ac_meta_type="none"
2426 if test -f "$META"; then
2427 _zfs_ac_meta_type="META file"
2428 _dpkg_parsechangelog=$(dpkg-parsechangelog 2>/dev/null)
2430 ZFS_META_NAME=`$AWK -F ':[ \t]+' '$1 ~ /^ *(Name|Project|Package)$/ { print $2; exit }' $META`;
2431 if test -n "$ZFS_META_NAME"; then
2433 cat >>confdefs.h <<_ACEOF
2434 #define ZFS_META_NAME "$ZFS_META_NAME"
2440 ZFS_META_VERSION=`$AWK -F ':[ \t]+' '$1 ~ /^ *Version$/ { print $2; exit }' $META`;
2441 if test -n "$ZFS_META_VERSION"; then
2443 cat >>confdefs.h <<_ACEOF
2444 #define ZFS_META_VERSION "$ZFS_META_VERSION"
2450 if test -n "${_dpkg_parsechangelog}"; then
2451 _dpkg_version=$(echo "${_dpkg_parsechangelog}" \
2452 | $AWK '$1 == "Version:" { print $2; }' \
2454 if test "${_dpkg_version}" != "$ZFS_META_VERSION"; then
2456 *** Version $ZFS_META_VERSION in the META file is different than
2457 *** version $_dpkg_version in the debian/changelog file. DKMS and DEB
2458 *** packaging require that these files have the same version.
2463 ZFS_META_RELEASE=`$AWK -F ':[ \t]+' '$1 ~ /^ *Release$/ { print $2; exit }' $META`;
2465 if test -n "${_dpkg_parsechangelog}"; then
2466 _dpkg_release=$(echo "${_dpkg_parsechangelog}" \
2467 | $AWK '$1 == "Version:" { print $2; }' \
2469 if test -n "${_dpkg_release}"; then
2470 ZFS_META_RELEASE=${_dpkg_release}
2471 _zfs_ac_meta_type="dpkg-parsechangelog"
2473 elif test ! -f ".nogitrelease" && git rev-parse --git-dir > /dev/null 2>&1; then
2474 _match="${ZFS_META_NAME}-${ZFS_META_VERSION}"
2475 _alias=$(git describe --match=${_match} 2>/dev/null)
2476 _release=$(echo ${_alias}|cut -f3- -d'-'|sed 's/-/_/g')
2477 if test -n "${_release}"; then
2478 ZFS_META_RELEASE=${_release}
2479 _zfs_ac_meta_type="git describe"
2483 if test -n "$ZFS_META_RELEASE"; then
2485 cat >>confdefs.h <<_ACEOF
2486 #define ZFS_META_RELEASE "$ZFS_META_RELEASE"
2491 RELEASE="$ZFS_META_RELEASE"
2495 ZFS_META_LICENSE=`$AWK -F ':[ \t]+' '$1 ~ /^ *License$/ { print $2; exit }' $META`;
2496 if test -n "$ZFS_META_LICENSE"; then
2498 cat >>confdefs.h <<_ACEOF
2499 #define ZFS_META_LICENSE "$ZFS_META_LICENSE"
2505 if test -n "$ZFS_META_NAME" -a -n "$ZFS_META_VERSION"; then
2506 ZFS_META_ALIAS="$ZFS_META_NAME-$ZFS_META_VERSION"
2507 test -n "$ZFS_META_RELEASE" &&
2508 ZFS_META_ALIAS="$ZFS_META_ALIAS-$ZFS_META_RELEASE"
2510 cat >>confdefs.h <<_ACEOF
2511 #define ZFS_META_ALIAS "$ZFS_META_ALIAS"
2517 ZFS_META_DATA=`$AWK -F ':[ \t]+' '$1 ~ /^ *Date$/ { print $2; exit }' $META`;
2518 if test -n "$ZFS_META_DATA"; then
2520 cat >>confdefs.h <<_ACEOF
2521 #define ZFS_META_DATA "$ZFS_META_DATA"
2527 ZFS_META_AUTHOR=`$AWK -F ':[ \t]+' '$1 ~ /^ *Author$/ { print $2; exit }' $META`;
2528 if test -n "$ZFS_META_AUTHOR"; then
2530 cat >>confdefs.h <<_ACEOF
2531 #define ZFS_META_AUTHOR "$ZFS_META_AUTHOR"
2538 ZFS_META_LT_CURRENT=`$AWK -F ':[ \t]+' '$1 ~ /^ *LT_Current$/ { print $2; exit }' $META`;
2539 ZFS_META_LT_REVISION=`$AWK -F ':[ \t]+' '$1 ~ /^ *LT_Revision$/ { print $2; exit }' $META`;
2540 ZFS_META_LT_AGE=`$AWK -F ':[ \t]+' '$1 ~ /^ *LT_Age$/ { print $2; exit }' $META`;
2541 if test -n "$ZFS_META_LT_CURRENT" \
2542 -o -n "$ZFS_META_LT_REVISION" \
2543 -o -n "$ZFS_META_LT_AGE"; then
2544 test -n "$ZFS_META_LT_CURRENT" || ZFS_META_LT_CURRENT="0"
2545 test -n "$ZFS_META_LT_REVISION" || ZFS_META_LT_REVISION="0"
2546 test -n "$ZFS_META_LT_AGE" || ZFS_META_LT_AGE="0"
2548 cat >>confdefs.h <<_ACEOF
2549 #define ZFS_META_LT_CURRENT "$ZFS_META_LT_CURRENT"
2553 cat >>confdefs.h <<_ACEOF
2554 #define ZFS_META_LT_REVISION "$ZFS_META_LT_REVISION"
2558 cat >>confdefs.h <<_ACEOF
2559 #define ZFS_META_LT_AGE "$ZFS_META_LT_AGE"
2568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_zfs_ac_meta_type" >&5
2569 $as_echo "$_zfs_ac_meta_type" >&6; }
2573 for ac_dir in config "$srcdir"/config; do
2574 if test -f "$ac_dir/install-sh"; then
2576 ac_install_sh="$ac_aux_dir/install-sh -c"
2578 elif test -f "$ac_dir/install.sh"; then
2580 ac_install_sh="$ac_aux_dir/install.sh -c"
2582 elif test -f "$ac_dir/shtool"; then
2584 ac_install_sh="$ac_aux_dir/shtool install -c"
2588 if test -z "$ac_aux_dir"; then
2589 as_fn_error $? "cannot find install-sh, install.sh, or shtool in config \"$srcdir\"/config" "$LINENO" 5
2592 # These three variables are undocumented and unsupported,
2593 # and are intended to be withdrawn in a future Autoconf release.
2594 # They can cause serious problems if a builder's source tree is in a directory
2595 # whose full name contains unusual characters.
2596 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2597 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2598 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2602 # Make sure we can run config.sub.
2603 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2604 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2607 $as_echo_n "checking build system type... " >&6; }
2608 if ${ac_cv_build+:} false; then :
2609 $as_echo_n "(cached) " >&6
2611 ac_build_alias=$build_alias
2612 test "x$ac_build_alias" = x &&
2613 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2614 test "x$ac_build_alias" = x &&
2615 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2616 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2617 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2621 $as_echo "$ac_cv_build" >&6; }
2622 case $ac_cv_build in
2624 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2627 ac_save_IFS=$IFS; IFS='-'
2633 # Remember, the first character of IFS is used to create $*,
2634 # except with old shells:
2637 case $build_os in *\ *) build_os=`echo "$build_os" |
sed 's/ /-/g'`;; esac
2640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2641 $as_echo_n "checking host system type... " >&6; }
2642 if ${ac_cv_host+:} false; then :
2643 $as_echo_n "(cached) " >&6
2645 if test "x$host_alias" = x; then
2646 ac_cv_host=$ac_cv_build
2648 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2649 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2654 $as_echo "$ac_cv_host" >&6; }
2657 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2660 ac_save_IFS=$IFS; IFS='-'
2666 # Remember, the first character of IFS is used to create $*,
2667 # except with old shells:
2670 case $host_os in *\ *) host_os=`echo "$host_os" |
sed 's/ /-/g'`;; esac
2673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2674 $as_echo_n "checking target system type... " >&6; }
2675 if ${ac_cv_target+:} false; then :
2676 $as_echo_n "(cached) " >&6
2678 if test "x$target_alias" = x; then
2679 ac_cv_target=$ac_cv_host
2681 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2682 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2687 $as_echo "$ac_cv_target" >&6; }
2688 case $ac_cv_target in
2690 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2692 target=$ac_cv_target
2693 ac_save_IFS=$IFS; IFS='-'
2699 # Remember, the first character of IFS is used to create $*,
2700 # except with old shells:
2703 case $target_os in *\ *) target_os=`echo "$target_os" |
sed 's/ /-/g'`;; esac
2706 # The aliases save the names the user supplied, while $host etc.
2707 # will get canonicalized.
2708 test -n "$target_alias" &&
2709 test "$program_prefix$program_suffix$program_transform_name" = \
2711 program_prefix=${target_alias}-
2714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2715 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2716 # Check whether --enable-maintainer-mode was given.
2717 if test "${enable_maintainer_mode+set}" = set; then :
2718 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2720 USE_MAINTAINER_MODE=no
2723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2724 $as_echo "$USE_MAINTAINER_MODE" >&6; }
2725 if test $USE_MAINTAINER_MODE = yes; then
2726 MAINTAINER_MODE_TRUE=
2727 MAINTAINER_MODE_FALSE='#'
2729 MAINTAINER_MODE_TRUE='#'
2730 MAINTAINER_MODE_FALSE=
2733 MAINT=$MAINTAINER_MODE_TRUE
2736 # Check whether --enable-silent-rules was given.
2737 if test "${enable_silent_rules+set}" = set; then :
2738 enableval=$enable_silent_rules;
2741 case $enable_silent_rules in # (((
2742 yes) AM_DEFAULT_VERBOSITY=0;;
2743 no) AM_DEFAULT_VERBOSITY=1;;
2744 *) AM_DEFAULT_VERBOSITY=0;;
2746 am_make=${MAKE-make}
2747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2748 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2749 if ${am_cv_make_support_nested_variables+:} false; then :
2750 $as_echo_n "(cached) " >&6
2752 if $as_echo 'TRUE=$(BAR$(V))
2758 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2759 am_cv_make_support_nested_variables=yes
2761 am_cv_make_support_nested_variables=no
2764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2765 $as_echo "$am_cv_make_support_nested_variables" >&6; }
2766 if test $am_cv_make_support_nested_variables = yes; then
2768 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2770 AM_V=$AM_DEFAULT_VERBOSITY
2771 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2775 am__api_version='1.15'
2777 # Find a good install program. We prefer a C program (faster),
2778 # so one script is as good as another. But avoid the broken or
2779 # incompatible versions:
2780 # SysV /etc/install, /usr/sbin/install
2781 # SunOS /usr/etc/install
2782 # IRIX /sbin/install
2784 # AmigaOS /C/install, which installs bootblocks on floppy discs
2785 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2786 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2787 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2788 # OS/2's system install, which has a completely different semantic
2789 # ./install, which can be erroneously created by make from ./install.sh.
2790 # Reject install programs that cannot install multiple files.
2791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2792 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2793 if test -z "$INSTALL"; then
2794 if ${ac_cv_path_install+:} false; then :
2795 $as_echo_n "(cached) " >&6
2797 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2801 test -z "$as_dir" && as_dir=.
2802 # Account for people who put trailing slashes in PATH elements.
2803 case $as_dir/ in #((
2804 ./ | .// | /[cC]/* | \
2805 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2806 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2809 # OSF1 and SCO ODT 3.0 have their own names for install.
2810 # Don't use installbsd from OSF since it installs stuff as root
2812 for ac_prog in ginstall scoinst install; do
2813 for ac_exec_ext in '' $ac_executable_extensions; do
2814 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2815 if test $ac_prog = install &&
2816 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2817 # AIX install. It has an incompatible calling convention.
2819 elif test $ac_prog = install &&
2820 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2821 # program-specific install script used by HP pwplus--don't use.
2824 rm -rf conftest.one conftest.two conftest.dir
2825 echo one > conftest.one
2826 echo two > conftest.two
2828 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2829 test -s conftest.one && test -s conftest.two &&
2830 test -s conftest.dir/conftest.one &&
2831 test -s conftest.dir/conftest.two
2833 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2846 rm -rf conftest.one conftest.two conftest.dir
2849 if test "${ac_cv_path_install+set}" = set; then
2850 INSTALL=$ac_cv_path_install
2852 # As a last resort, use the slow shell script. Don't cache a
2853 # value for INSTALL within a source directory, because that will
2854 # break other packages using the cache if that directory is
2855 # removed, or if the value is a relative name.
2856 INSTALL=$ac_install_sh
2859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2860 $as_echo "$INSTALL" >&6; }
2862 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2863 # It thinks the first close brace ends the variable substitution.
2864 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2866 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2868 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2871 $as_echo_n "checking whether build environment is sane... " >&6; }
2872 # Reject unsafe characters in $srcdir or the absolute working directory
2873 # name. Accept space and tab only in the latter.
2877 *[\\\"\#\$\&\'\`$am_lf]*)
2878 as_fn_error $?
"unsafe absolute working directory name" "$LINENO" 5;;
2881 *[\\\"\
#\$\&\'\`$am_lf\ \ ]*)
2882 as_fn_error $?
"unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2885 # Do 'set' in a subshell so we don't clobber the current shell's
2886 # arguments. Must try -L first in case configure is actually a
2887 # symlink; some systems play weird games with the mod time of symlinks
2888 # (eg FreeBSD returns the mod time of the symlink's containing
2892 for am_try
in 1 2; do
2893 echo "timestamp, slept: $am_has_slept" > conftest.
file
2894 set X
`ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2895 if test "$*" = "X"; then
2897 set X
`ls -t "$srcdir/configure" conftest.file`
2899 if test "$*" != "X $srcdir/configure conftest.file" \
2900 && test "$*" != "X conftest.file $srcdir/configure"; then
2902 # If neither matched, then we have a broken ls. This can happen
2903 # if, for instance, CONFIG_SHELL is bash and it inherits a
2904 # broken ls alias from the environment. This has actually
2905 # happened. Such a system could not be considered "sane".
2906 as_fn_error $?
"ls -t appears to fail. Make sure there is not a broken
2907 alias in your environment" "$LINENO" 5
2909 if test "$2" = conftest.
file ||
test $am_try -eq 2; then
2916 test "$2" = conftest.
file
2922 as_fn_error $?
"newly created file is older than distributed files!
2923 Check your system clock" "$LINENO" 5
2925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2926 $as_echo "yes" >&6; }
2927 # If we didn't sleep, we still need to ensure time stamps of config.status and
2928 # generated files are strictly newer.
2930 if grep 'slept: no' conftest.
file >/dev
/null
2>&1; then
2937 test "$program_prefix" != NONE
&&
2938 program_transform_name
="s&^&$program_prefix&;$program_transform_name"
2939 # Use a double $ so make ignores it.
2940 test "$program_suffix" != NONE
&&
2941 program_transform_name
="s&\$&$program_suffix&;$program_transform_name"
2942 # Double any \ or $.
2943 # By default was `s,x,x', remove it if useless.
2944 ac_script
='s/[\\$]/&&/g;s/;s,x,x,$//'
2945 program_transform_name
=`$as_echo "$program_transform_name" | sed "$ac_script"`
2947 # Expand $ac_aux_dir to an absolute path.
2948 am_aux_dir
=`cd "$ac_aux_dir" && pwd`
2950 if test x
"${MISSING+set}" != xset
; then
2953 MISSING
="\${SHELL} \"$am_aux_dir/missing\"" ;;
2955 MISSING
="\${SHELL} $am_aux_dir/missing" ;;
2958 # Use eval to expand $SHELL
2959 if eval "$MISSING --is-lightweight"; then
2960 am_missing_run
="$MISSING "
2963 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2964 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2967 if test x
"${install_sh+set}" != xset
; then
2970 install_sh
="\${SHELL} '$am_aux_dir/install-sh'" ;;
2972 install_sh
="\${SHELL} $am_aux_dir/install-sh"
2976 # Installed binaries are usually stripped using 'strip' when the user
2977 # run "make install-strip". However 'strip' might not be the right
2978 # tool to use in cross-compilation environments, therefore Automake
2979 # will honor the 'STRIP' environment variable to overrule this program.
2980 if test "$cross_compiling" != no
; then
2981 if test -n "$ac_tool_prefix"; then
2982 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2983 set dummy
${ac_tool_prefix}strip
; ac_word
=$2
2984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2985 $as_echo_n "checking for $ac_word... " >&6; }
2986 if ${ac_cv_prog_STRIP+:} false
; then :
2987 $as_echo_n "(cached) " >&6
2989 if test -n "$STRIP"; then
2990 ac_cv_prog_STRIP
="$STRIP" # Let the user override the test.
2992 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2996 test -z "$as_dir" && as_dir
=.
2997 for ac_exec_ext
in '' $ac_executable_extensions; do
2998 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
2999 ac_cv_prog_STRIP
="${ac_tool_prefix}strip"
3000 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3009 STRIP
=$ac_cv_prog_STRIP
3010 if test -n "$STRIP"; then
3011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3012 $as_echo "$STRIP" >&6; }
3014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3015 $as_echo "no" >&6; }
3020 if test -z "$ac_cv_prog_STRIP"; then
3022 # Extract the first word of "strip", so it can be a program name with args.
3023 set dummy strip
; ac_word
=$2
3024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3025 $as_echo_n "checking for $ac_word... " >&6; }
3026 if ${ac_cv_prog_ac_ct_STRIP+:} false
; then :
3027 $as_echo_n "(cached) " >&6
3029 if test -n "$ac_ct_STRIP"; then
3030 ac_cv_prog_ac_ct_STRIP
="$ac_ct_STRIP" # Let the user override the test.
3032 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3036 test -z "$as_dir" && as_dir
=.
3037 for ac_exec_ext
in '' $ac_executable_extensions; do
3038 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3039 ac_cv_prog_ac_ct_STRIP
="strip"
3040 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3049 ac_ct_STRIP
=$ac_cv_prog_ac_ct_STRIP
3050 if test -n "$ac_ct_STRIP"; then
3051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3052 $as_echo "$ac_ct_STRIP" >&6; }
3054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3055 $as_echo "no" >&6; }
3058 if test "x$ac_ct_STRIP" = x
; then
3061 case $cross_compiling:$ac_tool_warned in
3063 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3064 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3065 ac_tool_warned
=yes ;;
3070 STRIP
="$ac_cv_prog_STRIP"
3074 INSTALL_STRIP_PROGRAM
="\$(install_sh) -c -s"
3076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3077 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3078 if test -z "$MKDIR_P"; then
3079 if ${ac_cv_path_mkdir+:} false
; then :
3080 $as_echo_n "(cached) " >&6
3082 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3083 for as_dir
in $PATH$PATH_SEPARATOR/opt
/sfw
/bin
3086 test -z "$as_dir" && as_dir
=.
3087 for ac_prog
in mkdir gmkdir
; do
3088 for ac_exec_ext
in '' $ac_executable_extensions; do
3089 as_fn_executable_p
"$as_dir/$ac_prog$ac_exec_ext" ||
continue
3090 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3091 'mkdir (GNU coreutils) '* | \
3092 'mkdir (coreutils) '* | \
3093 'mkdir (fileutils) '4.1*)
3094 ac_cv_path_mkdir
=$as_dir/$ac_prog$ac_exec_ext
3104 test -d .
/--version && rmdir .
/--version
3105 if test "${ac_cv_path_mkdir+set}" = set; then
3106 MKDIR_P
="$ac_cv_path_mkdir -p"
3108 # As a last resort, use the slow shell script. Don't cache a
3109 # value for MKDIR_P within a source directory, because that will
3110 # break other packages using the cache if that directory is
3111 # removed, or if the value is a relative name.
3112 MKDIR_P
="$ac_install_sh -d"
3115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3116 $as_echo "$MKDIR_P" >&6; }
3118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3119 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3121 ac_make
=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3122 if eval \
${ac_cv_prog_make_${ac_make}_set+:} false
; then :
3123 $as_echo_n "(cached) " >&6
3125 cat >conftest.
make <<\_ACEOF
3128 @
echo '@@@%%%=$(MAKE)=@@@%%%'
3130 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3131 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3133 eval ac_cv_prog_make_
${ac_make}_set
=yes;;
3135 eval ac_cv_prog_make_
${ac_make}_set
=no
;;
3139 if eval test \
$ac_cv_prog_make_${ac_make}_set
= yes; then
3140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3141 $as_echo "yes" >&6; }
3144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3145 $as_echo "no" >&6; }
3146 SET_MAKE
="MAKE=${MAKE-make}"
3149 rm -rf .tst
2>/dev
/null
3150 mkdir .tst
2>/dev
/null
3151 if test -d .tst
; then
3156 rmdir .tst
2>/dev
/null
3158 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3159 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3160 # is not polluted with repeated "-I."
3161 am__isrc
=' -I$(srcdir)'
3162 # test to see if srcdir already configured
3163 if test -f $srcdir/config.status
; then
3164 as_fn_error $?
"source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3168 # test whether we have cygpath
3169 if test -z "$CYGPATH_W"; then
3170 if (cygpath
--version) >/dev
/null
2>/dev
/null
; then
3171 CYGPATH_W
='cygpath -w'
3178 # Define the identity of the package.
3183 cat >>confdefs.h
<<_ACEOF
3184 #define PACKAGE "$PACKAGE"
3188 cat >>confdefs.h
<<_ACEOF
3189 #define VERSION "$VERSION"
3192 # Some tools Automake needs.
3194 ACLOCAL
=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3197 AUTOCONF
=${AUTOCONF-"${am_missing_run}autoconf"}
3200 AUTOMAKE
=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3203 AUTOHEADER
=${AUTOHEADER-"${am_missing_run}autoheader"}
3206 MAKEINFO
=${MAKEINFO-"${am_missing_run}makeinfo"}
3208 # For better backward compatibility. To be removed once Automake 1.9.x
3209 # dies out for good. For more background, see:
3210 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3211 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3212 mkdir_p
='$(MKDIR_P)'
3214 # We need awk for the "check" target (and possibly the TAP driver). The
3215 # system "awk" is bad on some platforms.
3216 # Always define AMTAR for backward compatibility. Yes, it's still used
3217 # in the wild :-( We should find a proper way to deprecate it ...
3221 # We'll loop over all known methods to create a tar archive until one works.
3222 _am_tools
='gnutar pax cpio none'
3224 am__tar
='$${TAR-tar} chof - "$$tardir"' am__untar
='$${TAR-tar} xf -'
3231 # POSIX will say in a future version that running "rm -f" with no argument
3232 # is OK; and we want to be able to make that assumption in our Makefile
3233 # recipes. So use an aggressive probe to check that the usage we want is
3234 # actually supported "in the wild" to an acceptable degree.
3235 # See automake bug#10828.
3236 # To make any issue more visible, cause the running configure to be aborted
3237 # by default if the 'rm' program in use doesn't match our expectations; the
3238 # user can still override this though.
3239 if rm -f && rm -fr && rm -rf; then : OK
; else
3243 Your 'rm' program seems unable to run without file operands specified
3244 on the command line, even when the '-f' option is present. This is contrary
3245 to the behaviour of most rm programs out there, and not conforming with
3246 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3248 Please tell bug-automake@gnu.org about your system, including the value
3249 of your $PATH and any error possibly output before this message. This
3250 can help us improve future automake versions.
3253 if test x
"$ACCEPT_INFERIOR_RM_PROGRAM" = x
"yes"; then
3254 echo 'Configuration will proceed anyway, since you have set the' >&2
3255 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3259 Aborting the configuration process, to ensure you take notice of the issue.
3261 You can download and install GNU coreutils to get an 'rm' implementation
3262 that behaves properly: <http://www.gnu.org/software/coreutils/>.
3264 If you want to complete the configuration process using your problematic
3265 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3266 to "yes", and re-run configure.
3269 as_fn_error $?
"Your 'rm' program is bad, sorry." "$LINENO" 5
3273 ac_config_headers
="$ac_config_headers zfs_config.h"
3278 ac_cpp
='$CPP $CPPFLAGS'
3279 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3280 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3281 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3282 if test -n "$ac_tool_prefix"; then
3283 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3284 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
3285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3286 $as_echo_n "checking for $ac_word... " >&6; }
3287 if ${ac_cv_prog_CC+:} false
; then :
3288 $as_echo_n "(cached) " >&6
3290 if test -n "$CC"; then
3291 ac_cv_prog_CC
="$CC" # Let the user override the test.
3293 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3297 test -z "$as_dir" && as_dir
=.
3298 for ac_exec_ext
in '' $ac_executable_extensions; do
3299 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3300 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
3301 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3311 if test -n "$CC"; then
3312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3313 $as_echo "$CC" >&6; }
3315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3316 $as_echo "no" >&6; }
3321 if test -z "$ac_cv_prog_CC"; then
3323 # Extract the first word of "gcc", so it can be a program name with args.
3324 set dummy gcc
; ac_word
=$2
3325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3326 $as_echo_n "checking for $ac_word... " >&6; }
3327 if ${ac_cv_prog_ac_ct_CC+:} false
; then :
3328 $as_echo_n "(cached) " >&6
3330 if test -n "$ac_ct_CC"; then
3331 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3333 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3337 test -z "$as_dir" && as_dir
=.
3338 for ac_exec_ext
in '' $ac_executable_extensions; do
3339 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3340 ac_cv_prog_ac_ct_CC
="gcc"
3341 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3350 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3351 if test -n "$ac_ct_CC"; then
3352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3353 $as_echo "$ac_ct_CC" >&6; }
3355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3356 $as_echo "no" >&6; }
3359 if test "x$ac_ct_CC" = x
; then
3362 case $cross_compiling:$ac_tool_warned in
3364 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3365 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3366 ac_tool_warned
=yes ;;
3374 if test -z "$CC"; then
3375 if test -n "$ac_tool_prefix"; then
3376 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3377 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
3378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3379 $as_echo_n "checking for $ac_word... " >&6; }
3380 if ${ac_cv_prog_CC+:} false
; then :
3381 $as_echo_n "(cached) " >&6
3383 if test -n "$CC"; then
3384 ac_cv_prog_CC
="$CC" # Let the user override the test.
3386 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3390 test -z "$as_dir" && as_dir
=.
3391 for ac_exec_ext
in '' $ac_executable_extensions; do
3392 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3393 ac_cv_prog_CC
="${ac_tool_prefix}cc"
3394 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3404 if test -n "$CC"; then
3405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3406 $as_echo "$CC" >&6; }
3408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3409 $as_echo "no" >&6; }
3415 if test -z "$CC"; then
3416 # Extract the first word of "cc", so it can be a program name with args.
3417 set dummy cc
; ac_word
=$2
3418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3419 $as_echo_n "checking for $ac_word... " >&6; }
3420 if ${ac_cv_prog_CC+:} false
; then :
3421 $as_echo_n "(cached) " >&6
3423 if test -n "$CC"; then
3424 ac_cv_prog_CC
="$CC" # Let the user override the test.
3427 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3431 test -z "$as_dir" && as_dir
=.
3432 for ac_exec_ext
in '' $ac_executable_extensions; do
3433 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3434 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3435 ac_prog_rejected
=yes
3439 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3446 if test $ac_prog_rejected = yes; then
3447 # We found a bogon in the path, so make sure we never use it.
3448 set dummy
$ac_cv_prog_CC
3450 if test $# != 0; then
3451 # We chose a different compiler from the bogus one.
3452 # However, it has the same basename, so the bogon will be chosen
3453 # first if we set CC to just the basename; use the full file name.
3455 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
3461 if test -n "$CC"; then
3462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3463 $as_echo "$CC" >&6; }
3465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3466 $as_echo "no" >&6; }
3471 if test -z "$CC"; then
3472 if test -n "$ac_tool_prefix"; then
3473 for ac_prog
in cl.exe
3475 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3476 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
3477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3478 $as_echo_n "checking for $ac_word... " >&6; }
3479 if ${ac_cv_prog_CC+:} false
; then :
3480 $as_echo_n "(cached) " >&6
3482 if test -n "$CC"; then
3483 ac_cv_prog_CC
="$CC" # Let the user override the test.
3485 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3489 test -z "$as_dir" && as_dir
=.
3490 for ac_exec_ext
in '' $ac_executable_extensions; do
3491 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3492 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
3493 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3503 if test -n "$CC"; then
3504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3505 $as_echo "$CC" >&6; }
3507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3508 $as_echo "no" >&6; }
3512 test -n "$CC" && break
3515 if test -z "$CC"; then
3517 for ac_prog
in cl.exe
3519 # Extract the first word of "$ac_prog", so it can be a program name with args.
3520 set dummy
$ac_prog; ac_word
=$2
3521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3522 $as_echo_n "checking for $ac_word... " >&6; }
3523 if ${ac_cv_prog_ac_ct_CC+:} false
; then :
3524 $as_echo_n "(cached) " >&6
3526 if test -n "$ac_ct_CC"; then
3527 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3529 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3533 test -z "$as_dir" && as_dir
=.
3534 for ac_exec_ext
in '' $ac_executable_extensions; do
3535 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3536 ac_cv_prog_ac_ct_CC
="$ac_prog"
3537 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3546 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3547 if test -n "$ac_ct_CC"; then
3548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3549 $as_echo "$ac_ct_CC" >&6; }
3551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3552 $as_echo "no" >&6; }
3556 test -n "$ac_ct_CC" && break
3559 if test "x$ac_ct_CC" = x
; then
3562 case $cross_compiling:$ac_tool_warned in
3564 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3565 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3566 ac_tool_warned
=yes ;;
3575 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3576 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3577 as_fn_error $?
"no acceptable C compiler found in \$PATH
3578 See \`config.log' for more details" "$LINENO" 5; }
3580 # Provide some information about the compiler.
3581 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3584 for ac_option
in --version -v -V -qversion; do
3585 { { ac_try
="$ac_compiler $ac_option >&5"
3587 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3588 *) ac_try_echo=$ac_try;;
3590 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3591 $as_echo "$ac_try_echo"; } >&5
3592 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3594 if test -s conftest.err; then
3596 ... rest of stderr output deleted ...
3597 10q' conftest.err >conftest.er1
3598 cat conftest.er1 >&5
3600 rm -f conftest.er1 conftest.err
3601 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3602 test $ac_status = 0; }
3605 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3606 /* end confdefs.h. */
3616 ac_clean_files_save=$ac_clean_files
3617 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3618 # Try to create an executable without -o first, disregard a.out.
3619 # It will help us diagnose broken compilers, and finding out an intuition
3621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3622 $as_echo_n "checking whether the C compiler works... " >&6; }
3623 ac_link_default=`$as_echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
3625 # The possible output files:
3626 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3629 for ac_file in $ac_files
3632 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3633 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3638 if { { ac_try="$ac_link_default"
3640 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3641 *) ac_try_echo
=$ac_try;;
3643 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3644 $as_echo "$ac_try_echo"; } >&5
3645 (eval "$ac_link_default") 2>&5
3647 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3648 test $ac_status = 0; }; then :
3649 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3650 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3651 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3652 # so that the user can short-circuit this test for compilers unknown to
3654 for ac_file
in $ac_files ''
3656 test -f "$ac_file" ||
continue
3658 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
)
3661 # We found the default executable, but exeext='' is most
3665 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
3667 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3669 # We set ac_cv_exeext here because the later test for it is not
3670 # safe: cross compilers may not add the suffix if given an `-o'
3671 # argument, so we may need to know it at that point already.
3672 # Even if this section looks crufty: it has the advantage of
3679 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
3684 if test -z "$ac_file"; then :
3685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3686 $as_echo "no" >&6; }
3687 $as_echo "$as_me: failed program was:" >&5
3688 sed 's/^/| /' conftest.
$ac_ext >&5
3690 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3691 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3692 as_fn_error
77 "C compiler cannot create executables
3693 See \`config.log' for more details" "$LINENO" 5; }
3695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3696 $as_echo "yes" >&6; }
3698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3699 $as_echo_n "checking for C compiler default output file name... " >&6; }
3700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3701 $as_echo "$ac_file" >&6; }
3702 ac_exeext
=$ac_cv_exeext
3704 rm -f -r a.out a.out.dSYM a.exe conftest
$ac_cv_exeext b.out
3705 ac_clean_files
=$ac_clean_files_save
3706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3707 $as_echo_n "checking for suffix of executables... " >&6; }
3708 if { { ac_try
="$ac_link"
3710 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3711 *) ac_try_echo=$ac_try;;
3713 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3714 $as_echo "$ac_try_echo"; } >&5
3715 (eval "$ac_link") 2>&5
3717 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3718 test $ac_status = 0; }; then :
3719 # If both `conftest.exe
' and `conftest' are
`present' (well, observable)
3720 # catch `conftest.exe
'. For instance with Cygwin, `ls conftest' will
3721 # work properly (i.e., refer to `conftest.exe'), while it won't with
3723 for ac_file
in conftest.exe conftest conftest.
*; do
3724 test -f "$ac_file" ||
continue
3726 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
3727 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3733 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3734 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3735 as_fn_error $?
"cannot compute suffix of executables: cannot compile and link
3736 See \`config.log' for more details" "$LINENO" 5; }
3738 rm -f conftest conftest
$ac_cv_exeext
3739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3740 $as_echo "$ac_cv_exeext" >&6; }
3742 rm -f conftest.
$ac_ext
3743 EXEEXT
=$ac_cv_exeext
3745 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3746 /* end confdefs.h. */
3751 FILE *f = fopen ("conftest.out", "w");
3752 return ferror (f) || fclose (f) != 0;
3758 ac_clean_files
="$ac_clean_files conftest.out"
3759 # Check that the compiler produces executables we can run. If not, either
3760 # the compiler is broken, or we cross compile.
3761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3762 $as_echo_n "checking whether we are cross compiling... " >&6; }
3763 if test "$cross_compiling" != yes; then
3764 { { ac_try
="$ac_link"
3766 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3767 *) ac_try_echo=$ac_try;;
3769 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3770 $as_echo "$ac_try_echo"; } >&5
3771 (eval "$ac_link") 2>&5
3773 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3774 test $ac_status = 0; }
3775 if { ac_try='./conftest$ac_cv_exeext'
3776 { { case "(($ac_try" in
3777 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3778 *) ac_try_echo
=$ac_try;;
3780 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3781 $as_echo "$ac_try_echo"; } >&5
3782 (eval "$ac_try") 2>&5
3784 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3785 test $ac_status = 0; }; }; then
3788 if test "$cross_compiling" = maybe
; then
3791 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3792 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3793 as_fn_error $?
"cannot run C compiled programs.
3794 If you meant to cross compile, use \`--host'.
3795 See \`config.log' for more details" "$LINENO" 5; }
3799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3800 $as_echo "$cross_compiling" >&6; }
3802 rm -f conftest.
$ac_ext conftest
$ac_cv_exeext conftest.out
3803 ac_clean_files
=$ac_clean_files_save
3804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3805 $as_echo_n "checking for suffix of object files... " >&6; }
3806 if ${ac_cv_objext+:} false
; then :
3807 $as_echo_n "(cached) " >&6
3809 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3810 /* end confdefs.h. */
3820 rm -f conftest.o conftest.obj
3821 if { { ac_try
="$ac_compile"
3823 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3824 *) ac_try_echo=$ac_try;;
3826 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3827 $as_echo "$ac_try_echo"; } >&5
3828 (eval "$ac_compile") 2>&5
3830 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3831 test $ac_status = 0; }; then :
3832 for ac_file in conftest.o conftest.obj conftest.*; do
3833 test -f "$ac_file" || continue;
3835 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3836 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3841 $as_echo "$as_me: failed program was:" >&5
3842 sed 's/^/| /' conftest.$ac_ext >&5
3844 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3845 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3846 as_fn_error $? "cannot compute suffix of object files
: cannot compile
3847 See \
`config.log' for more details" "$LINENO" 5; }
3849 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3852 $as_echo "$ac_cv_objext" >&6; }
3853 OBJEXT=$ac_cv_objext
3855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3856 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3857 if ${ac_cv_c_compiler_gnu+:} false; then :
3858 $as_echo_n "(cached) " >&6
3860 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3861 /* end confdefs.h. */
3874 if ac_fn_c_try_compile "$LINENO"; then :
3879 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3880 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3884 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3885 if test $ac_compiler_gnu = yes; then
3890 ac_test_CFLAGS=${CFLAGS+set}
3891 ac_save_CFLAGS=$CFLAGS
3892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3893 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3894 if ${ac_cv_prog_cc_g+:} false; then :
3895 $as_echo_n "(cached) " >&6
3897 ac_save_c_werror_flag=$ac_c_werror_flag
3898 ac_c_werror_flag=yes
3901 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3902 /* end confdefs.h. */
3912 if ac_fn_c_try_compile "$LINENO"; then :
3916 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3917 /* end confdefs.h. */
3927 if ac_fn_c_try_compile "$LINENO"; then :
3930 ac_c_werror_flag=$ac_save_c_werror_flag
3932 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3933 /* end confdefs.h. */
3943 if ac_fn_c_try_compile "$LINENO"; then :
3946 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3948 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3950 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3951 ac_c_werror_flag=$ac_save_c_werror_flag
3953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3954 $as_echo "$ac_cv_prog_cc_g" >&6; }
3955 if test "$ac_test_CFLAGS" = set; then
3956 CFLAGS=$ac_save_CFLAGS
3957 elif test $ac_cv_prog_cc_g = yes; then
3958 if test "$GCC" = yes; then
3964 if test "$GCC" = yes; then
3970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3971 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3972 if ${ac_cv_prog_cc_c89+:} false; then :
3973 $as_echo_n "(cached) " >&6
3975 ac_cv_prog_cc_c89=no
3977 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3978 /* end confdefs.h. */
3982 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3983 struct buf { int x; };
3984 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3985 static char *e (p, i)
3991 static char *f (char * (*g) (char **, int), char **p, ...)
3996 s = g (p, va_arg (v,int));
4001 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4002 function prototypes and stuff, but not '\xHH' hex character constants.
4003 These don't provoke an error unfortunately, instead are silently treated
4004 as 'x'. The following induces an error, until -std is added to get
4005 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4006 array size at least. It's necessary to write '\x00'==0 to get something
4007 that's true only with -std. */
4008 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4010 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4011 inside strings and character constants. */
4013 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4015 int test (int i, double x);
4016 struct s1 {int (*f) (int a);};
4017 struct s2 {int (*f) (double a);};
4018 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4024 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4029 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4030 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4032 CC="$ac_save_CC $ac_arg"
4033 if ac_fn_c_try_compile "$LINENO"; then :
4034 ac_cv_prog_cc_c89=$ac_arg
4036 rm -f core conftest.err conftest.$ac_objext
4037 test "x$ac_cv_prog_cc_c89" != "xno" && break
4039 rm -f conftest.$ac_ext
4044 case "x$ac_cv_prog_cc_c89" in
4046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4047 $as_echo "none needed" >&6; } ;;
4049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4050 $as_echo "unsupported" >&6; } ;;
4052 CC="$CC $ac_cv_prog_cc_c89"
4053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4054 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4056 if test "x$ac_cv_prog_cc_c89" != xno; then :
4061 ac_cpp='$CPP $CPPFLAGS'
4062 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4063 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4064 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4067 ac_cpp='$CPP $CPPFLAGS'
4068 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4069 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4070 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4072 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4073 if ${am_cv_prog_cc_c_o+:} false; then :
4074 $as_echo_n "(cached) " >&6
4076 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4077 /* end confdefs.h. */
4087 # Make sure it works both with $CC and with simple cc.
4088 # Following AC_PROG_CC_C_O, we do the test twice because some
4089 # compilers refuse to overwrite an existing .o file with -o,
4090 # though they will create one.
4091 am_cv_prog_cc_c_o=yes
4093 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4094 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4097 (exit $ac_status); } \
4098 && test -f conftest2.$ac_objext; then
4101 am_cv_prog_cc_c_o=no
4105 rm -f core conftest*
4108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4109 $as_echo "$am_cv_prog_cc_c_o" >&6; }
4110 if test "$am_cv_prog_cc_c_o" != yes; then
4111 # Losing compiler, so override with the script.
4112 # FIXME: It is wrong to rewrite CC.
4113 # But if we don't then we get into trouble of one sort or another.
4114 # A longer-term fix would be to have automake use am__CC in this case,
4115 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4116 CC="$am_aux_dir/compile $CC"
4119 ac_cpp='$CPP $CPPFLAGS'
4120 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4121 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4122 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4124 DEPDIR="${am__leading_dot}deps"
4126 ac_config_commands="$ac_config_commands depfiles"
4129 am_make=${MAKE-make}
4130 cat > confinc << 'END'
4132 @echo this is the am__doit target
4135 # If we don't find an include directive, just comment out the code.
4136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4137 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4141 # First try GNU make style include.
4142 echo "include confinc" > confmf
4143 # Ignore all kinds of additional output from 'make'.
4144 case `$am_make -s -f confmf
2> /dev
/null
` in #(
4145 *the\ am__doit\ target*)
4151 # Now try BSD make style include.
4152 if test "$am__include" = "#"; then
4153 echo '.include "confinc"' > confmf
4154 case `$am_make -s -f confmf
2> /dev
/null
` in #(
4155 *the\ am__doit\ target*)
4156 am__include=.include
4164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4165 $as_echo "$_am_result" >&6; }
4166 rm -f confinc confmf
4168 # Check whether --enable-dependency-tracking was given.
4169 if test "${enable_dependency_tracking+set}" = set; then :
4170 enableval=$enable_dependency_tracking;
4173 if test "x$enable_dependency_tracking" != xno; then
4174 am_depcomp="$ac_aux_dir/depcomp"
4178 if test "x$enable_dependency_tracking" != xno; then
4188 depcc="$CC" am_compiler_list=
4190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4191 $as_echo_n "checking dependency style of $depcc... " >&6; }
4192 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4193 $as_echo_n "(cached) " >&6
4195 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4196 # We make a subdir and do the tests there. Otherwise we can end up
4197 # making bogus files that we don't know about and never remove. For
4198 # instance it was reported that on HP-UX the gcc test will end up
4199 # making a dummy file named 'D' -- because '-MD' means "put the output
4203 # Copy depcomp to subdir because otherwise we won't find it if we're
4204 # using a relative directory.
4205 cp "$am_depcomp" conftest.dir
4207 # We will build objects and dependencies in a subdirectory because
4208 # it helps to detect inapplicable dependency modes. For instance
4209 # both Tru64's cc and ICC support -MD to output dependencies as a
4210 # side effect of compilation, but ICC will put the dependencies in
4211 # the current directory while Tru64 will put them in the object
4215 am_cv_CC_dependencies_compiler_type=none
4216 if test "$am_compiler_list" = ""; then
4217 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < .
/depcomp
`
4220 case " $depcc " in #(
4221 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4224 for depmode in $am_compiler_list; do
4225 # Setup a source with many dependencies, because some compilers
4226 # like to wrap large dependency lists on column 80 (with \), and
4227 # we should not choose a depcomp mode which is confused by this.
4229 # We need to recreate these files for each test, as the compiler may
4230 # overwrite some of them when testing with obscure command lines.
4231 # This happens at least with the AIX C compiler.
4233 for i in 1 2 3 4 5 6; do
4234 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4235 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4236 # Solaris 10 /bin/sh.
4237 echo '/* dummy */' > sub/conftst$i.h
4239 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4241 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4242 # mode. It turns out that the SunPro C++ compiler does not properly
4243 # handle '-M -o', and we need to detect this. Also, some Intel
4244 # versions had trouble with output in subdirs.
4245 am__obj=sub/conftest.${OBJEXT-o}
4246 am__minus_obj="-o $am__obj"
4249 # This depmode causes a compiler race in universal mode.
4250 test "$am__universal" = false || continue
4253 # After this tag, mechanisms are not by side-effect, so they'll
4254 # only be used when explicitly requested.
4255 if test "x$enable_dependency_tracking" = xyes; then
4261 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4262 # This compiler won't grok '-c -o', but also, the minuso test has
4263 # not run yet. These depmodes are late enough in the game, and
4264 # so weak that their functioning should not be impacted.
4265 am__obj=conftest.${OBJEXT-o}
4270 if depmode=$depmode \
4271 source=sub/conftest.c object=$am__obj \
4272 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4273 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4274 >/dev/null 2>conftest.err &&
4275 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4276 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4277 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4278 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4279 # icc doesn't choke on unknown options, it will just issue warnings
4280 # or remarks (even with -Werror). So we grep stderr for any message
4281 # that says an option was ignored or not supported.
4282 # When given -MP, icc 7.0 and 7.1 complain thusly:
4283 # icc: Command line warning: ignoring option '-M'; no argument required
4284 # The diagnosis changed in icc 8.0:
4285 # icc: Command line remark: option '-MP' not supported
4286 if (grep 'ignoring option' conftest.err ||
4287 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4288 am_cv_CC_dependencies_compiler_type=$depmode
4297 am_cv_CC_dependencies_compiler_type=none
4301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4302 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4303 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4306 test "x$enable_dependency_tracking" != xno \
4307 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4309 am__fastdepCC_FALSE='#'
4311 am__fastdepCC_TRUE='#'
4312 am__fastdepCC_FALSE=
4318 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\
`" >&5
4319 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\
`" >&2;} ;;
4324 macro_version='2.4.6'
4325 macro_revision='2.4.6'
4339 ltmain=$ac_aux_dir/ltmain.sh
4341 # Backslashify metacharacters that are still active within
4342 # double-quoted strings.
4343 sed_quote_subst='s/\(["`$
\\]\
)/\\\
1/g
'
4345 # Same as above, but do not quote variable references.
4346 double_quote_subst='s
/\
(["`\\]\)/\\\1/g'
4348 # Sed substitution to delay expansion of an escaped shell variable in a
4349 # double_quote_subst'ed string.
4350 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4352 # Sed substitution to delay expansion of an escaped single quote.
4353 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4355 # Sed substitution to avoid accidental globbing in evaled expressions
4356 no_glob_subst='s/\*/\\\*/g'
4358 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4359 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4360 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print
strings" >&5
4363 $as_echo_n "checking how to print
strings...
" >&6; }
4364 # Test print first, because it will be a builtin if present.
4365 if test "X
`( print -r -- -n ) 2>/dev/null`" = X-n && \
4366 test "X
`print -r -- $ECHO 2>/dev/null`" = "X
$ECHO"; then
4368 elif test "X
`printf %s $ECHO 2>/dev/null`" = "X
$ECHO"; then
4371 # Use this function as a fallback that always works.
4372 func_fallback_echo ()
4374 eval 'cat <<_LTECHO_EOF
4378 ECHO='func_fallback_echo'
4381 # func_echo_all arg...
4382 # Invoke $ECHO with all args, space-separated.
4389 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result
: printf" >&5
4390 $as_echo "printf" >&6; } ;;
4391 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result
: print
-r" >&5
4392 $as_echo "print
-r" >&6; } ;;
4393 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result
: cat" >&5
4394 $as_echo "cat" >&6; } ;;
4410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for a
sed that does not truncate output
" >&5
4411 $as_echo_n "checking
for a
sed that does not truncate output...
" >&6; }
4412 if ${ac_cv_path_SED+:} false; then :
4413 $as_echo_n "(cached
) " >&6
4415 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4416 for ac_i in 1 2 3 4 5 6 7; do
4417 ac_script="$ac_script$as_nl$ac_script"
4419 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4420 { ac_script=; unset ac_script;}
4421 if test -z "$SED"; then
4422 ac_path_SED_found=false
4423 # Loop through the user's path and test for each of PROGNAME-LIST
4424 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4428 test -z "$as_dir" && as_dir=.
4429 for ac_prog in sed gsed; do
4430 for ac_exec_ext in '' $ac_executable_extensions; do
4431 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4432 as_fn_executable_p "$ac_path_SED" || continue
4433 # Check for GNU ac_path_SED and select it if it is found.
4434 # Check for GNU $ac_path_SED
4435 case `"$ac_path_SED" --version 2>&1` in
4437 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4440 $as_echo_n 0123456789 >"conftest.
in"
4443 cat "conftest.
in" "conftest.
in" >"conftest.tmp
"
4444 mv "conftest.tmp
" "conftest.
in"
4445 cp "conftest.
in" "conftest.
nl"
4446 $as_echo '' >> "conftest.
nl"
4447 "$ac_path_SED" -f conftest.sed < "conftest.
nl" >"conftest.out
" 2>/dev/null || break
4448 diff "conftest.out
" "conftest.
nl" >/dev/null 2>&1 || break
4449 as_fn_arith $ac_count + 1 && ac_count=$as_val
4450 if test $ac_count -gt ${ac_path_SED_max-0}; then
4451 # Best one so far, save it but keep looking for a better one
4452 ac_cv_path_SED="$ac_path_SED"
4453 ac_path_SED_max=$ac_count
4455 # 10*(2^10) chars as input seems more than enough
4456 test $ac_count -gt 10 && break
4458 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4461 $ac_path_SED_found && break 3
4466 if test -z "$ac_cv_path_SED"; then
4467 as_fn_error $? "no acceptable
sed could be found
in \
$PATH" "$LINENO" 5
4474 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_path_SED" >&5
4475 $as_echo "$ac_cv_path_SED" >&6; }
4476 SED="$ac_cv_path_SED"
4479 test -z "$SED" && SED=sed
4480 Xsed="$SED -e 1s
/^X
//"
4492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for grep that handles long lines and
-e" >&5
4493 $as_echo_n "checking
for grep that handles long lines and
-e...
" >&6; }
4494 if ${ac_cv_path_GREP+:} false; then :
4495 $as_echo_n "(cached
) " >&6
4497 if test -z "$GREP"; then
4498 ac_path_GREP_found=false
4499 # Loop through the user's path and test for each of PROGNAME-LIST
4500 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4501 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4504 test -z "$as_dir" && as_dir=.
4505 for ac_prog in grep ggrep; do
4506 for ac_exec_ext in '' $ac_executable_extensions; do
4507 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4508 as_fn_executable_p "$ac_path_GREP" || continue
4509 # Check for GNU ac_path_GREP and select it if it is found.
4510 # Check for GNU $ac_path_GREP
4511 case `"$ac_path_GREP" --version 2>&1` in
4513 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4516 $as_echo_n 0123456789 >"conftest.
in"
4519 cat "conftest.
in" "conftest.
in" >"conftest.tmp
"
4520 mv "conftest.tmp
" "conftest.
in"
4521 cp "conftest.
in" "conftest.
nl"
4522 $as_echo 'GREP' >> "conftest.
nl"
4523 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.
nl" >"conftest.out
" 2>/dev/null || break
4524 diff "conftest.out
" "conftest.
nl" >/dev/null 2>&1 || break
4525 as_fn_arith $ac_count + 1 && ac_count=$as_val
4526 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4527 # Best one so far, save it but keep looking for a better one
4528 ac_cv_path_GREP="$ac_path_GREP"
4529 ac_path_GREP_max=$ac_count
4531 # 10*(2^10) chars as input seems more than enough
4532 test $ac_count -gt 10 && break
4534 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4537 $ac_path_GREP_found && break 3
4542 if test -z "$ac_cv_path_GREP"; then
4543 as_fn_error $? "no acceptable
grep could be found
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
" "$LINENO" 5
4546 ac_cv_path_GREP=$GREP
4550 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_path_GREP" >&5
4551 $as_echo "$ac_cv_path_GREP" >&6; }
4552 GREP="$ac_cv_path_GREP"
4555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for egrep" >&5
4556 $as_echo_n "checking
for egrep...
" >&6; }
4557 if ${ac_cv_path_EGREP+:} false; then :
4558 $as_echo_n "(cached
) " >&6
4560 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4561 then ac_cv_path_EGREP="$GREP -E"
4563 if test -z "$EGREP"; then
4564 ac_path_EGREP_found=false
4565 # Loop through the user's path and test for each of PROGNAME-LIST
4566 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4567 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4570 test -z "$as_dir" && as_dir=.
4571 for ac_prog in egrep; do
4572 for ac_exec_ext in '' $ac_executable_extensions; do
4573 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4574 as_fn_executable_p "$ac_path_EGREP" || continue
4575 # Check for GNU ac_path_EGREP and select it if it is found.
4576 # Check for GNU $ac_path_EGREP
4577 case `"$ac_path_EGREP" --version 2>&1` in
4579 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4582 $as_echo_n 0123456789 >"conftest.
in"
4585 cat "conftest.
in" "conftest.
in" >"conftest.tmp
"
4586 mv "conftest.tmp
" "conftest.
in"
4587 cp "conftest.
in" "conftest.
nl"
4588 $as_echo 'EGREP' >> "conftest.
nl"
4589 "$ac_path_EGREP" 'EGREP$' < "conftest.
nl" >"conftest.out
" 2>/dev/null || break
4590 diff "conftest.out
" "conftest.
nl" >/dev/null 2>&1 || break
4591 as_fn_arith $ac_count + 1 && ac_count=$as_val
4592 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4593 # Best one so far, save it but keep looking for a better one
4594 ac_cv_path_EGREP="$ac_path_EGREP"
4595 ac_path_EGREP_max=$ac_count
4597 # 10*(2^10) chars as input seems more than enough
4598 test $ac_count -gt 10 && break
4600 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4603 $ac_path_EGREP_found && break 3
4608 if test -z "$ac_cv_path_EGREP"; then
4609 as_fn_error $? "no acceptable
egrep could be found
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
" "$LINENO" 5
4612 ac_cv_path_EGREP=$EGREP
4617 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_path_EGREP" >&5
4618 $as_echo "$ac_cv_path_EGREP" >&6; }
4619 EGREP="$ac_cv_path_EGREP"
4622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for fgrep
" >&5
4623 $as_echo_n "checking
for fgrep...
" >&6; }
4624 if ${ac_cv_path_FGREP+:} false; then :
4625 $as_echo_n "(cached
) " >&6
4627 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4628 then ac_cv_path_FGREP="$GREP -F"
4630 if test -z "$FGREP"; then
4631 ac_path_FGREP_found=false
4632 # Loop through the user's path and test for each of PROGNAME-LIST
4633 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4634 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4637 test -z "$as_dir" && as_dir=.
4638 for ac_prog in fgrep; do
4639 for ac_exec_ext in '' $ac_executable_extensions; do
4640 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4641 as_fn_executable_p "$ac_path_FGREP" || continue
4642 # Check for GNU ac_path_FGREP and select it if it is found.
4643 # Check for GNU $ac_path_FGREP
4644 case `"$ac_path_FGREP" --version 2>&1` in
4646 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4649 $as_echo_n 0123456789 >"conftest.
in"
4652 cat "conftest.
in" "conftest.
in" >"conftest.tmp
"
4653 mv "conftest.tmp
" "conftest.
in"
4654 cp "conftest.
in" "conftest.
nl"
4655 $as_echo 'FGREP' >> "conftest.
nl"
4656 "$ac_path_FGREP" FGREP < "conftest.
nl" >"conftest.out
" 2>/dev/null || break
4657 diff "conftest.out
" "conftest.
nl" >/dev/null 2>&1 || break
4658 as_fn_arith $ac_count + 1 && ac_count=$as_val
4659 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4660 # Best one so far, save it but keep looking for a better one
4661 ac_cv_path_FGREP="$ac_path_FGREP"
4662 ac_path_FGREP_max=$ac_count
4664 # 10*(2^10) chars as input seems more than enough
4665 test $ac_count -gt 10 && break
4667 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4670 $ac_path_FGREP_found && break 3
4675 if test -z "$ac_cv_path_FGREP"; then
4676 as_fn_error $? "no acceptable fgrep could be found
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
" "$LINENO" 5
4679 ac_cv_path_FGREP=$FGREP
4684 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_path_FGREP" >&5
4685 $as_echo "$ac_cv_path_FGREP" >&6; }
4686 FGREP="$ac_cv_path_FGREP"
4689 test -z "$GREP" && GREP=grep
4709 # Check whether --with-gnu-ld was given.
4710 if test "${with_gnu_ld+set}" = set; then :
4711 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
4717 if test yes = "$GCC"; then
4718 # Check if gcc -print-prog-name=ld gives a path.
4719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ld used by
$CC" >&5
4720 $as_echo_n "checking
for ld used by
$CC...
" >&6; }
4723 # gcc leaves a trailing carriage return, which upsets mingw
4724 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4726 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4729 # Accept absolute paths.
4731 re_direlt='/[^/][^/]*/\.\./'
4732 # Canonicalize the pathname of ld
4733 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4734 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4735 ac_prog=`$ECHO $ac_prog| $SED "s
%$re_direlt%/%"`
4737 test -z "$LD" && LD=$ac_prog
4740 # If it fails, then pretend we aren't using GCC.
4744 # If it is relative, then search for the first ld in PATH.
4748 elif test yes = "$with_gnu_ld"; then
4749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for GNU ld
" >&5
4750 $as_echo_n "checking
for GNU ld...
" >&6; }
4752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for non-GNU ld
" >&5
4753 $as_echo_n "checking
for non-GNU ld...
" >&6; }
4755 if ${lt_cv_path_LD+:} false; then :
4756 $as_echo_n "(cached
) " >&6
4758 if test -z "$LD"; then
4759 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
4760 for ac_dir in $PATH; do
4762 test -z "$ac_dir" && ac_dir=.
4763 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4764 lt_cv_path_LD=$ac_dir/$ac_prog
4765 # Check to see if the program is GNU ld. I'd rather use --version,
4766 # but apparently some variants of GNU ld only accept -v.
4767 # Break only if it was the GNU/non-GNU ld that we prefer.
4768 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4769 *GNU* | *'with BFD'*)
4770 test no != "$with_gnu_ld" && break
4773 test yes != "$with_gnu_ld" && break
4780 lt_cv_path_LD=$LD # Let the user override the test with a path.
4785 if test -n "$LD"; then
4786 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $LD" >&5
4787 $as_echo "$LD" >&6; }
4789 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
4790 $as_echo "no
" >&6; }
4792 test -z "$LD" && as_fn_error $? "no acceptable ld found
in \
$PATH" "$LINENO" 5
4793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if the linker
($LD) is GNU ld
" >&5
4794 $as_echo_n "checking
if the linker
($LD) is GNU ld...
" >&6; }
4795 if ${lt_cv_prog_gnu_ld+:} false; then :
4796 $as_echo_n "(cached
) " >&6
4798 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4799 case `$LD -v 2>&1 </dev/null` in
4800 *GNU* | *'with BFD'*)
4801 lt_cv_prog_gnu_ld=yes
4804 lt_cv_prog_gnu_ld=no
4808 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_gnu_ld" >&5
4809 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4810 with_gnu_ld=$lt_cv_prog_gnu_ld
4820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for BSD- or MS-compatible name lister
(nm
)" >&5
4821 $as_echo_n "checking
for BSD- or MS-compatible name lister
(nm
)...
" >&6; }
4822 if ${lt_cv_path_NM+:} false; then :
4823 $as_echo_n "(cached
) " >&6
4825 if test -n "$NM"; then
4826 # Let the user override the test.
4829 lt_nm_to_check=${ac_tool_prefix}nm
4830 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4831 lt_nm_to_check="$lt_nm_to_check nm
"
4833 for lt_tmp_nm in $lt_nm_to_check; do
4834 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
4835 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4837 test -z "$ac_dir" && ac_dir=.
4838 tmp_nm=$ac_dir/$lt_tmp_nm
4839 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
4840 # Check to see if the nm accepts a BSD-compat flag.
4841 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
4842 # nm: unknown option "B
" ignored
4843 # Tru64's nm complains that /dev/null is an invalid object file
4844 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
4846 mingw*) lt_bad_file=conftest.nm/nofile ;;
4847 *) lt_bad_file=/dev/null ;;
4849 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
4850 *$lt_bad_file* | *'Invalid file or object type'*)
4851 lt_cv_path_NM="$tmp_nm -B"
4855 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4857 lt_cv_path_NM="$tmp_nm -p"
4861 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4862 continue # so that we can try to find one that supports BSD flags
4871 : ${lt_cv_path_NM=no}
4874 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_path_NM" >&5
4875 $as_echo "$lt_cv_path_NM" >&6; }
4876 if test no != "$lt_cv_path_NM"; then
4879 # Didn't find any BSD compatible name lister, look for dumpbin.
4880 if test -n "$DUMPBIN"; then :
4881 # Let the user override the test.
4883 if test -n "$ac_tool_prefix"; then
4884 for ac_prog in dumpbin "link
-dump"
4886 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4887 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
4889 $as_echo_n "checking
for $ac_word...
" >&6; }
4890 if ${ac_cv_prog_DUMPBIN+:} false; then :
4891 $as_echo_n "(cached
) " >&6
4893 if test -n "$DUMPBIN"; then
4894 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4896 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4900 test -z "$as_dir" && as_dir=.
4901 for ac_exec_ext in '' $ac_executable_extensions; do
4902 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4903 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4904 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
4913 DUMPBIN=$ac_cv_prog_DUMPBIN
4914 if test -n "$DUMPBIN"; then
4915 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $DUMPBIN" >&5
4916 $as_echo "$DUMPBIN" >&6; }
4918 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
4919 $as_echo "no
" >&6; }
4923 test -n "$DUMPBIN" && break
4926 if test -z "$DUMPBIN"; then
4927 ac_ct_DUMPBIN=$DUMPBIN
4928 for ac_prog in dumpbin "link
-dump"
4930 # Extract the first word of "$ac_prog", so it can be a program name with args.
4931 set dummy $ac_prog; ac_word=$2
4932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
4933 $as_echo_n "checking
for $ac_word...
" >&6; }
4934 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
4935 $as_echo_n "(cached
) " >&6
4937 if test -n "$ac_ct_DUMPBIN"; then
4938 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4940 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4944 test -z "$as_dir" && as_dir=.
4945 for ac_exec_ext in '' $ac_executable_extensions; do
4946 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4947 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4948 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
4957 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4958 if test -n "$ac_ct_DUMPBIN"; then
4959 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_DUMPBIN" >&5
4960 $as_echo "$ac_ct_DUMPBIN" >&6; }
4962 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
4963 $as_echo "no
" >&6; }
4967 test -n "$ac_ct_DUMPBIN" && break
4970 if test "x
$ac_ct_DUMPBIN" = x; then
4973 case $cross_compiling:$ac_tool_warned in
4975 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
4976 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
4977 ac_tool_warned=yes ;;
4979 DUMPBIN=$ac_ct_DUMPBIN
4983 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
4985 DUMPBIN="$DUMPBIN -symbols -headers"
4993 if test : != "$DUMPBIN"; then
4997 test -z "$NM" && NM=nm
5004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister
($NM) interface
" >&5
5005 $as_echo_n "checking the name lister
($NM) interface...
" >&6; }
5006 if ${lt_cv_nm_interface+:} false; then :
5007 $as_echo_n "(cached
) " >&6
5009 lt_cv_nm_interface="BSD nm
"
5010 echo "int some_variable
= 0;" > conftest.$ac_ext
5011 (eval echo "\"\
$as_me:$LINENO: $ac_compile\"" >&5)
5012 (eval "$ac_compile" 2>conftest.err)
5013 cat conftest.err >&5
5014 (eval echo "\"\
$as_me:$LINENO: $NM \\\"conftest.
$ac_objext\\\"\"" >&5)
5015 (eval "$NM \"conftest.
$ac_objext\"" 2>conftest.err > conftest.out)
5016 cat conftest.err >&5
5017 (eval echo "\"\
$as_me:$LINENO: output
\"" >&5)
5018 cat conftest.out >&5
5019 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5020 lt_cv_nm_interface="MS dumpbin
"
5024 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_nm_interface" >&5
5025 $as_echo "$lt_cv_nm_interface" >&6; }
5027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether
ln -s works
" >&5
5028 $as_echo_n "checking whether
ln -s works...
" >&6; }
5030 if test "$LN_S" = "ln -s"; then
5031 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
5032 $as_echo "yes" >&6; }
5034 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
, using
$LN_S" >&5
5035 $as_echo "no
, using
$LN_S" >&6; }
5038 # find the maximum length of command line arguments
5039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of
command line arguments
" >&5
5040 $as_echo_n "checking the maximum length of
command line arguments...
" >&6; }
5041 if ${lt_cv_sys_max_cmd_len+:} false; then :
5042 $as_echo_n "(cached
) " >&6
5049 # On DJGPP, this test can blow up pretty badly due to problems in libc
5050 # (any single argument exceeding 2000 bytes causes a buffer overrun
5051 # during glob expansion). Even if it were fixed, the result of this
5052 # check would be larger than it should be.
5053 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5057 # Under GNU Hurd, this test is not required because there is
5058 # no limit to the length of command line arguments.
5059 # Libtool will interpret -1 as no limit whatsoever
5060 lt_cv_sys_max_cmd_len=-1;
5063 cygwin* | mingw* | cegcc*)
5064 # On Win9x/ME, this test blows up -- it succeeds, but takes
5065 # about 5 minutes as the teststring grows exponentially.
5066 # Worse, since 9x/ME are not pre-emptively multitasking,
5067 # you end up with a "frozen
" computer, even though with patience
5068 # the test eventually succeeds (with a max line length of 256k).
5069 # Instead, let's just punt: use the minimum linelength reported by
5070 # all of the supported platforms: 8192 (on NT/2K/XP).
5071 lt_cv_sys_max_cmd_len=8192;
5075 # On MiNT this can take a long time and run out of memory.
5076 lt_cv_sys_max_cmd_len=8192;
5080 # On AmigaOS with pdksh, this test takes hours, literally.
5081 # So we just punt and use a minimum line length of 8192.
5082 lt_cv_sys_max_cmd_len=8192;
5085 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
5086 # This has been around since 386BSD, at least. Likely further.
5087 if test -x /sbin/sysctl; then
5088 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5089 elif test -x /usr/sbin/sysctl; then
5090 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5092 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5094 # And add a safety zone
5095 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5096 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5100 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5101 lt_cv_sys_max_cmd_len=196608
5105 # The test takes a long time on OS/2.
5106 lt_cv_sys_max_cmd_len=8192
5110 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5111 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5112 # nice to cause kernel panics so lets avoid the loop below.
5113 # First set a reasonable default.
5114 lt_cv_sys_max_cmd_len=16384
5116 if test -x /sbin/sysconfig; then
5117 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5118 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5123 lt_cv_sys_max_cmd_len=102400
5125 sysv5* | sco5v6* | sysv4.2uw2*)
5126 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5127 if test -n "$kargmax"; then
5128 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5130 lt_cv_sys_max_cmd_len=32768
5134 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5135 if test -n "$lt_cv_sys_max_cmd_len" && \
5136 test undefined != "$lt_cv_sys_max_cmd_len"; then
5137 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5138 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5140 # Make teststring a little bigger before we do anything with it.
5141 # a 1K string should be a reasonable start.
5142 for i in 1 2 3 4 5 6 7 8; do
5143 teststring=$teststring$teststring
5145 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5146 # If test is not a shell built-in, we'll probably end up computing a
5147 # maximum length that is only half of the actual maximum length, but
5149 while { test X`env echo "$teststring$teststring" 2>/dev/null` \
5150 = "X
$teststring$teststring"; } >/dev/null 2>&1 &&
5151 test 17 != "$i" # 1/2 MB should be enough
5154 teststring=$teststring$teststring
5156 # Only check the string length outside the loop.
5157 lt_cv_sys_max_cmd_len=`expr "X
$teststring" : ".
*" 2>&1`
5159 # Add a significant safety factor because C++ compilers can tack on
5160 # massive amounts of additional arguments before passing them to the
5161 # linker. It appears as though 1/2 is a usable value.
5162 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5169 if test -n "$lt_cv_sys_max_cmd_len"; then
5170 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_sys_max_cmd_len" >&5
5171 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5173 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: none
" >&5
5174 $as_echo "none
" >&6; }
5176 max_cmd_len=$lt_cv_sys_max_cmd_len
5187 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5197 # test EBCDIC or ASCII
5198 case `echo X|tr X '\101'` in
5199 A) # ASCII based system
5200 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5201 lt_SP2NL='tr \040 \012'
5202 lt_NL2SP='tr \015\012 \040\040'
5204 *) # EBCDIC based system
5205 lt_SP2NL='tr \100 \n'
5206 lt_NL2SP='tr \r\n \100\100'
5218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert
$build file names to
$host format
" >&5
5219 $as_echo_n "checking how to convert
$build file names to
$host format...
" >&6; }
5220 if ${lt_cv_to_host_file_cmd+:} false; then :
5221 $as_echo_n "(cached
) " >&6
5226 *-*-mingw* ) # actually msys
5227 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5230 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5232 * ) # otherwise, assume *nix
5233 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5239 *-*-mingw* ) # actually msys
5240 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5243 lt_cv_to_host_file_cmd=func_convert_file_noop
5245 * ) # otherwise, assume *nix
5246 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5250 * ) # unhandled hosts (and "normal
" native builds)
5251 lt_cv_to_host_file_cmd=func_convert_file_noop
5257 to_host_file_cmd=$lt_cv_to_host_file_cmd
5258 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_to_host_file_cmd" >&5
5259 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
5265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert
$build file names to toolchain format
" >&5
5266 $as_echo_n "checking how to convert
$build file names to toolchain format...
" >&6; }
5267 if ${lt_cv_to_tool_file_cmd+:} false; then :
5268 $as_echo_n "(cached
) " >&6
5270 #assume ordinary cross tools, or native build.
5271 lt_cv_to_tool_file_cmd=func_convert_file_noop
5275 *-*-mingw* ) # actually msys
5276 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5284 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5285 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_to_tool_file_cmd" >&5
5286 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $LD option to reload object files
" >&5
5293 $as_echo_n "checking
for $LD option to reload object files...
" >&6; }
5294 if ${lt_cv_ld_reload_flag+:} false; then :
5295 $as_echo_n "(cached
) " >&6
5297 lt_cv_ld_reload_flag='-r'
5299 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_ld_reload_flag" >&5
5300 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5301 reload_flag=$lt_cv_ld_reload_flag
5302 case $reload_flag in
5304 *) reload_flag=" $reload_flag" ;;
5306 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5308 cygwin* | mingw* | pw32* | cegcc*)
5309 if test yes != "$GCC"; then
5314 if test yes = "$GCC"; then
5315 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
5317 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5330 if test -n "$ac_tool_prefix"; then
5331 # Extract the first word of "${ac_tool_prefix}objdump
", so it can be a program name with args.
5332 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
5334 $as_echo_n "checking
for $ac_word...
" >&6; }
5335 if ${ac_cv_prog_OBJDUMP+:} false; then :
5336 $as_echo_n "(cached
) " >&6
5338 if test -n "$OBJDUMP"; then
5339 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5341 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5345 test -z "$as_dir" && as_dir=.
5346 for ac_exec_ext in '' $ac_executable_extensions; do
5347 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5348 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump
"
5349 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
5358 OBJDUMP=$ac_cv_prog_OBJDUMP
5359 if test -n "$OBJDUMP"; then
5360 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OBJDUMP" >&5
5361 $as_echo "$OBJDUMP" >&6; }
5363 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
5364 $as_echo "no
" >&6; }
5369 if test -z "$ac_cv_prog_OBJDUMP"; then
5370 ac_ct_OBJDUMP=$OBJDUMP
5371 # Extract the first word of "objdump
", so it can be a program name with args.
5372 set dummy objdump; ac_word=$2
5373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
5374 $as_echo_n "checking
for $ac_word...
" >&6; }
5375 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5376 $as_echo_n "(cached
) " >&6
5378 if test -n "$ac_ct_OBJDUMP"; then
5379 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5381 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5385 test -z "$as_dir" && as_dir=.
5386 for ac_exec_ext in '' $ac_executable_extensions; do
5387 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5388 ac_cv_prog_ac_ct_OBJDUMP="objdump
"
5389 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
5398 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5399 if test -n "$ac_ct_OBJDUMP"; then
5400 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_OBJDUMP" >&5
5401 $as_echo "$ac_ct_OBJDUMP" >&6; }
5403 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
5404 $as_echo "no
" >&6; }
5407 if test "x
$ac_ct_OBJDUMP" = x; then
5410 case $cross_compiling:$ac_tool_warned in
5412 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
5413 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
5414 ac_tool_warned=yes ;;
5416 OBJDUMP=$ac_ct_OBJDUMP
5419 OBJDUMP="$ac_cv_prog_OBJDUMP"
5422 test -z "$OBJDUMP" && OBJDUMP=objdump
5432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries
" >&5
5433 $as_echo_n "checking how to recognize dependent libraries...
" >&6; }
5434 if ${lt_cv_deplibs_check_method+:} false; then :
5435 $as_echo_n "(cached
) " >&6
5437 lt_cv_file_magic_cmd='$MAGIC_CMD'
5438 lt_cv_file_magic_test_file=
5439 lt_cv_deplibs_check_method='unknown'
5440 # Need to set the preceding variable on all platforms that support
5441 # interlibrary dependencies.
5442 # 'none' -- dependencies not supported.
5443 # 'unknown' -- same as none, but documents that we really don't know.
5444 # 'pass_all' -- all dependencies passed with no checks.
5445 # 'test_compile' -- check by making test program.
5446 # 'file_magic [[regex]]' -- check by looking for files in library path
5447 # that responds to the $file_magic_cmd with a given extended regex.
5448 # If you have 'file' or equivalent on your system and you're not sure
5449 # whether 'pass_all' will *always* work, you probably want this one.
5453 lt_cv_deplibs_check_method=pass_all
5457 lt_cv_deplibs_check_method=pass_all
5461 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5462 lt_cv_file_magic_cmd='/usr/bin/file -L'
5463 lt_cv_file_magic_test_file=/shlib/libc.so
5467 # func_win32_libid is a shell function defined in ltmain.sh
5468 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5469 lt_cv_file_magic_cmd='func_win32_libid'
5473 # Base MSYS/MinGW do not provide the 'file' command needed by
5474 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5475 # unless we find 'file', for example because we are cross-compiling.
5476 if ( file / ) >/dev/null 2>&1; then
5477 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5478 lt_cv_file_magic_cmd='func_win32_libid'
5480 # Keep this pattern in sync with the one in func_win32_libid.
5481 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5482 lt_cv_file_magic_cmd='$OBJDUMP -f'
5487 # use the weaker test based on 'objdump'. See mingw*.
5488 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5489 lt_cv_file_magic_cmd='$OBJDUMP -f'
5492 darwin* | rhapsody*)
5493 lt_cv_deplibs_check_method=pass_all
5496 freebsd* | dragonfly*)
5497 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5500 # Not sure whether the presence of OpenBSD here was a mistake.
5501 # Let's accept both of them until this is cleared up.
5502 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5503 lt_cv_file_magic_cmd=/usr/bin/file
5504 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5508 lt_cv_deplibs_check_method=pass_all
5513 lt_cv_deplibs_check_method=pass_all
5516 hpux10.20* | hpux11*)
5517 lt_cv_file_magic_cmd=/usr/bin/file
5520 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5521 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5524 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]'
5525 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5528 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5529 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5535 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5536 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5539 irix5* | irix6* | nonstopux*)
5541 *-32|*"-32 ") libmagic=32-bit;;
5542 *-n32|*"-n32 ") libmagic=N32;;
5543 *-64|*"-64 ") libmagic=64-bit;;
5544 *) libmagic=never-match;;
5546 lt_cv_deplibs_check_method=pass_all
5549 # This must be glibc/ELF.
5550 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
5551 lt_cv_deplibs_check_method=pass_all
5554 netbsd* | netbsdelf*-gnu)
5555 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5556 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5558 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5563 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5564 lt_cv_file_magic_cmd=/usr/bin/file
5565 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5569 lt_cv_deplibs_check_method=pass_all
5573 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
5574 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5576 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5580 osf3* | osf4* | osf5*)
5581 lt_cv_deplibs_check_method=pass_all
5585 lt_cv_deplibs_check_method=pass_all
5589 lt_cv_deplibs_check_method=pass_all
5592 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5593 lt_cv_deplibs_check_method=pass_all
5597 case $host_vendor in
5599 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]'
5600 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5603 lt_cv_deplibs_check_method=pass_all
5606 lt_cv_file_magic_cmd='/bin/file'
5607 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5610 lt_cv_file_magic_cmd='/bin/file'
5611 lt_cv_deplibs_check_method="file_magic ELF
[0-9][0-9]*-bit [LM
]SB dynamic lib
"
5612 lt_cv_file_magic_test_file=/lib/libc.so
5615 lt_cv_deplibs_check_method=pass_all
5618 lt_cv_deplibs_check_method=pass_all
5624 lt_cv_deplibs_check_method=pass_all
5627 lt_cv_deplibs_check_method=pass_all
5632 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_deplibs_check_method" >&5
5633 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5637 if test "$build" = "$host"; then
5640 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5643 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s
/\
(..\
)/s\
/[\
1]\
/[\
1]\
/g
;/g
"`
5649 file_magic_cmd=$lt_cv_file_magic_cmd
5650 deplibs_check_method=$lt_cv_deplibs_check_method
5651 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5674 if test -n "$ac_tool_prefix"; then
5675 # Extract the first word of "${ac_tool_prefix}dlltool
", so it can be a program name with args.
5676 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
5678 $as_echo_n "checking
for $ac_word...
" >&6; }
5679 if ${ac_cv_prog_DLLTOOL+:} false; then :
5680 $as_echo_n "(cached
) " >&6
5682 if test -n "$DLLTOOL"; then
5683 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5685 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5689 test -z "$as_dir" && as_dir=.
5690 for ac_exec_ext in '' $ac_executable_extensions; do
5691 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5692 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool
"
5693 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
5702 DLLTOOL=$ac_cv_prog_DLLTOOL
5703 if test -n "$DLLTOOL"; then
5704 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $DLLTOOL" >&5
5705 $as_echo "$DLLTOOL" >&6; }
5707 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
5708 $as_echo "no
" >&6; }
5713 if test -z "$ac_cv_prog_DLLTOOL"; then
5714 ac_ct_DLLTOOL=$DLLTOOL
5715 # Extract the first word of "dlltool
", so it can be a program name with args.
5716 set dummy dlltool; ac_word=$2
5717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
5718 $as_echo_n "checking
for $ac_word...
" >&6; }
5719 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5720 $as_echo_n "(cached
) " >&6
5722 if test -n "$ac_ct_DLLTOOL"; then
5723 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5725 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5729 test -z "$as_dir" && as_dir=.
5730 for ac_exec_ext in '' $ac_executable_extensions; do
5731 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5732 ac_cv_prog_ac_ct_DLLTOOL="dlltool
"
5733 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
5742 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5743 if test -n "$ac_ct_DLLTOOL"; then
5744 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_DLLTOOL" >&5
5745 $as_echo "$ac_ct_DLLTOOL" >&6; }
5747 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
5748 $as_echo "no
" >&6; }
5751 if test "x
$ac_ct_DLLTOOL" = x; then
5754 case $cross_compiling:$ac_tool_warned in
5756 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
5757 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
5758 ac_tool_warned=yes ;;
5760 DLLTOOL=$ac_ct_DLLTOOL
5763 DLLTOOL="$ac_cv_prog_DLLTOOL"
5766 test -z "$DLLTOOL" && DLLTOOL=dlltool
5777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries
" >&5
5778 $as_echo_n "checking how to associate runtime and link libraries...
" >&6; }
5779 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
5780 $as_echo_n "(cached
) " >&6
5782 lt_cv_sharedlib_from_linklib_cmd='unknown'
5785 cygwin* | mingw* | pw32* | cegcc*)
5786 # two different shell functions defined in ltmain.sh;
5787 # decide which one to use based on capabilities of $DLLTOOL
5788 case `$DLLTOOL --help 2>&1` in
5789 *--identify-strict*)
5790 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5793 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5798 # fallback: assume linklib IS sharedlib
5799 lt_cv_sharedlib_from_linklib_cmd=$ECHO
5804 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_sharedlib_from_linklib_cmd" >&5
5805 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
5806 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
5807 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
5816 if test -n "$ac_tool_prefix"; then
5819 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5820 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
5822 $as_echo_n "checking
for $ac_word...
" >&6; }
5823 if ${ac_cv_prog_AR+:} false; then :
5824 $as_echo_n "(cached
) " >&6
5826 if test -n "$AR"; then
5827 ac_cv_prog_AR="$AR" # Let the user override the test.
5829 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5833 test -z "$as_dir" && as_dir=.
5834 for ac_exec_ext in '' $ac_executable_extensions; do
5835 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5836 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5837 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
5847 if test -n "$AR"; then
5848 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $AR" >&5
5849 $as_echo "$AR" >&6; }
5851 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
5852 $as_echo "no
" >&6; }
5856 test -n "$AR" && break
5859 if test -z "$AR"; then
5863 # Extract the first word of "$ac_prog", so it can be a program name with args.
5864 set dummy $ac_prog; ac_word=$2
5865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
5866 $as_echo_n "checking
for $ac_word...
" >&6; }
5867 if ${ac_cv_prog_ac_ct_AR+:} false; then :
5868 $as_echo_n "(cached
) " >&6
5870 if test -n "$ac_ct_AR"; then
5871 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5873 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5877 test -z "$as_dir" && as_dir=.
5878 for ac_exec_ext in '' $ac_executable_extensions; do
5879 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5880 ac_cv_prog_ac_ct_AR="$ac_prog"
5881 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
5890 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5891 if test -n "$ac_ct_AR"; then
5892 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_AR" >&5
5893 $as_echo "$ac_ct_AR" >&6; }
5895 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
5896 $as_echo "no
" >&6; }
5900 test -n "$ac_ct_AR" && break
5903 if test "x
$ac_ct_AR" = x; then
5906 case $cross_compiling:$ac_tool_warned in
5908 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
5909 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
5910 ac_tool_warned=yes ;;
5929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for archiver @FILE support
" >&5
5930 $as_echo_n "checking
for archiver @FILE support...
" >&6; }
5931 if ${lt_cv_ar_at_file+:} false; then :
5932 $as_echo_n "(cached
) " >&6
5935 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5936 /* end confdefs.h. */
5946 if ac_fn_c_try_compile "$LINENO"; then :
5947 echo conftest.$ac_objext > conftest.lst
5948 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
5949 { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5950 (eval $lt_ar_try) 2>&5
5952 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
5953 test $ac_status = 0; }
5954 if test 0 -eq "$ac_status"; then
5955 # Ensure the archiver fails upon bogus file names.
5956 rm -f conftest.$ac_objext libconftest.a
5957 { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5958 (eval $lt_ar_try) 2>&5
5960 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
5961 test $ac_status = 0; }
5962 if test 0 -ne "$ac_status"; then
5966 rm -f conftest.* libconftest.a
5969 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5972 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_ar_at_file" >&5
5973 $as_echo "$lt_cv_ar_at_file" >&6; }
5975 if test no = "$lt_cv_ar_at_file"; then
5978 archiver_list_spec=$lt_cv_ar_at_file
5987 if test -n "$ac_tool_prefix"; then
5988 # Extract the first word of "${ac_tool_prefix}strip
", so it can be a program name with args.
5989 set dummy ${ac_tool_prefix}strip; ac_word=$2
5990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
5991 $as_echo_n "checking
for $ac_word...
" >&6; }
5992 if ${ac_cv_prog_STRIP+:} false; then :
5993 $as_echo_n "(cached
) " >&6
5995 if test -n "$STRIP"; then
5996 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5998 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6002 test -z "$as_dir" && as_dir=.
6003 for ac_exec_ext in '' $ac_executable_extensions; do
6004 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6005 ac_cv_prog_STRIP="${ac_tool_prefix}strip
"
6006 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
6015 STRIP=$ac_cv_prog_STRIP
6016 if test -n "$STRIP"; then
6017 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $STRIP" >&5
6018 $as_echo "$STRIP" >&6; }
6020 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
6021 $as_echo "no
" >&6; }
6026 if test -z "$ac_cv_prog_STRIP"; then
6028 # Extract the first word of "strip
", so it can be a program name with args.
6029 set dummy strip; ac_word=$2
6030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
6031 $as_echo_n "checking
for $ac_word...
" >&6; }
6032 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6033 $as_echo_n "(cached
) " >&6
6035 if test -n "$ac_ct_STRIP"; then
6036 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6038 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6042 test -z "$as_dir" && as_dir=.
6043 for ac_exec_ext in '' $ac_executable_extensions; do
6044 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6045 ac_cv_prog_ac_ct_STRIP="strip
"
6046 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
6055 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6056 if test -n "$ac_ct_STRIP"; then
6057 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_STRIP" >&5
6058 $as_echo "$ac_ct_STRIP" >&6; }
6060 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
6061 $as_echo "no
" >&6; }
6064 if test "x
$ac_ct_STRIP" = x; then
6067 case $cross_compiling:$ac_tool_warned in
6069 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
6070 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
6071 ac_tool_warned=yes ;;
6076 STRIP="$ac_cv_prog_STRIP"
6079 test -z "$STRIP" && STRIP=:
6086 if test -n "$ac_tool_prefix"; then
6087 # Extract the first word of "${ac_tool_prefix}ranlib
", so it can be a program name with args.
6088 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
6090 $as_echo_n "checking
for $ac_word...
" >&6; }
6091 if ${ac_cv_prog_RANLIB+:} false; then :
6092 $as_echo_n "(cached
) " >&6
6094 if test -n "$RANLIB"; then
6095 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6097 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6101 test -z "$as_dir" && as_dir=.
6102 for ac_exec_ext in '' $ac_executable_extensions; do
6103 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6104 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib
"
6105 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
6114 RANLIB=$ac_cv_prog_RANLIB
6115 if test -n "$RANLIB"; then
6116 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $RANLIB" >&5
6117 $as_echo "$RANLIB" >&6; }
6119 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
6120 $as_echo "no
" >&6; }
6125 if test -z "$ac_cv_prog_RANLIB"; then
6126 ac_ct_RANLIB=$RANLIB
6127 # Extract the first word of "ranlib
", so it can be a program name with args.
6128 set dummy ranlib; ac_word=$2
6129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
6130 $as_echo_n "checking
for $ac_word...
" >&6; }
6131 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6132 $as_echo_n "(cached
) " >&6
6134 if test -n "$ac_ct_RANLIB"; then
6135 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6137 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6141 test -z "$as_dir" && as_dir=.
6142 for ac_exec_ext in '' $ac_executable_extensions; do
6143 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6144 ac_cv_prog_ac_ct_RANLIB="ranlib
"
6145 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
6154 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6155 if test -n "$ac_ct_RANLIB"; then
6156 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_RANLIB" >&5
6157 $as_echo "$ac_ct_RANLIB" >&6; }
6159 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
6160 $as_echo "no
" >&6; }
6163 if test "x
$ac_ct_RANLIB" = x; then
6166 case $cross_compiling:$ac_tool_warned in
6168 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
6169 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
6170 ac_tool_warned=yes ;;
6172 RANLIB=$ac_ct_RANLIB
6175 RANLIB="$ac_cv_prog_RANLIB"
6178 test -z "$RANLIB" && RANLIB=:
6185 # Determine commands to create old-style static archives.
6186 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6187 old_postinstall_cmds='chmod 644 $oldlib'
6188 old_postuninstall_cmds=
6190 if test -n "$RANLIB"; then
6193 old_postinstall_cmds="$old_postinstall_cmds~\
$RANLIB -t \
$tool_oldlib"
6196 old_postinstall_cmds="$old_postinstall_cmds~\
$RANLIB \
$tool_oldlib"
6199 old_archive_cmds="$old_archive_cmds~\
$RANLIB \
$tool_oldlib"
6204 lock_old_archive_extraction=yes ;;
6206 lock_old_archive_extraction=no ;;
6247 # If no C compiler was specified, use CC.
6250 # If no C compiler flags were specified, use CFLAGS.
6251 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6253 # Allow CC to be a program name with arguments.
6257 # Check for command to grab the raw symbol name followed by C symbol from nm.
6258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
command to parse
$NM output from
$compiler object
" >&5
6259 $as_echo_n "checking
command to parse
$NM output from
$compiler object...
" >&6; }
6260 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6261 $as_echo_n "(cached
) " >&6
6264 # These are sane defaults that work on at least a few old systems.
6265 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6267 # Character class describing NM global symbol codes.
6268 symcode='[BCDEGRST]'
6270 # Regexp to match symbols that can be accessed directly from C.
6271 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6273 # Define system-specific variables.
6278 cygwin* | mingw* | pw32* | cegcc*)
6279 symcode='[ABCDGISTW]'
6282 if test ia64 = "$host_cpu"; then
6283 symcode='[ABCDEGRST]'
6287 symcode='[BCDEGRST]'
6290 symcode='[BCDEGQRST]'
6301 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6309 # If we're using GNU nm, then use its standard symbol codes.
6310 case `$NM -V 2>&1` in
6311 *GNU* | *'with BFD'*)
6312 symcode='[ABCDGIRSTW]' ;;
6315 if test "$lt_cv_nm_interface" = "MS dumpbin
"; then
6316 # Gets list of data symbols to import.
6317 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
6318 # Adjust the below global symbol transforms to fixup imported variables.
6319 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
6320 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
6321 lt_c_name_lib_hook="\
6322 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
6323 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
6325 # Disable hooks by default.
6326 lt_cv_sys_global_symbol_to_import=
6332 # Transform an extracted symbol line into a proper C declaration.
6333 # Some systems (esp. on ia64) link data and code symbols differently,
6334 # so use this general approach.
6335 lt_cv_sys_global_symbol_to_cdecl="sed -n"\
6337 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
6338 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
6340 # Transform an extracted symbol line into symbol name and symbol address
6341 lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
6343 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
6344 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
6346 # Transform an extracted symbol line into symbol name with lib prefix and
6348 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
6349 $lt_c_name_lib_hook\
6350 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
6351 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
6352 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
6354 # Handle CRLF in mingw tool chain
6358 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6362 # Try without a prefix underscore, then with it.
6363 for ac_symprfx in "" "_
"; do
6365 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6366 symxfrm="\\1 $ac_symprfx\\2 \\2"
6368 # Write the raw and C identifiers.
6369 if test "$lt_cv_nm_interface" = "MS dumpbin
"; then
6370 # Fake it for dumpbin and say T for any non-static function,
6371 # D for any global variable and I for any imported variable.
6372 # Also find C++ and __fastcall symbols from MSVC++,
6373 # which start with @ or ?.
6374 lt_cv_sys_global_symbol_pipe="$AWK '"\
6375 " {last_section=section; section=\$ 3};"\
6376 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6377 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6378 " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
6379 " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
6380 " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
6381 " \$ 0!~/External *\|/{next};"\
6382 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6383 " {if(hide[section]) next};"\
6384 " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
6385 " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
6386 " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
6387 " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
6388 " ' prfx
=^
$ac_symprfx"
6390 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6392 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe |
sed '/ __gnu_lto/d'"
6394 # Check to see that the pipe works correctly.
6398 cat > conftest.$ac_ext <<_LT_EOF
6403 void nm_test_func(void);
6404 void nm_test_func(void){}
6408 int main(){nm_test_var='a';nm_test_func();return(0);}
6411 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6412 (eval $ac_compile) 2>&5
6414 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
6415 test $ac_status = 0; }; then
6416 # Now try to grab the symbols.
6418 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$NM conftest.
$ac_objext \|
"$lt_cv_sys_global_symbol_pipe" \
> $nlist\""; } >&5
6419 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6421 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
6422 test $ac_status = 0; } && test -s "$nlist"; then
6423 # Try sorting and uniquifying the output.
6424 if sort "$nlist" | uniq > "$nlist"T; then
6425 mv -f "$nlist"T "$nlist"
6430 # Make sure that we snagged all the symbols we need.
6431 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6432 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6433 cat <<_LT_EOF > conftest.$ac_ext
6434 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
6435 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
6436 /* DATA imports from DLLs on WIN32 can't be const, because runtime
6437 relocations are performed -- see ld's documentation on pseudo-relocs. */
6438 # define LT_DLSYM_CONST
6439 #elif defined __osf__
6440 /* This system does not cope well with relocations in const data. */
6441 # define LT_DLSYM_CONST
6443 # define LT_DLSYM_CONST const
6451 # Now generate the symbol file.
6452 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6454 cat <<_LT_EOF >> conftest.$ac_ext
6456 /* The mapping between symbol names and symbols. */
6457 LT_DLSYM_CONST struct {
6461 lt__PROGRAM__LTX_preloaded_symbols[] =
6463 { "@PROGRAM@
", (void *) 0 },
6465 $SED "s
/^
$symcode$symcode* .
* \
(.
*\
)$
/ {\"\
1\", (void
*) \
&\
1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6466 cat <<\_LT_EOF >> conftest.$ac_ext
6470 /* This works around a problem in FreeBSD linker */
6471 #ifdef FREEBSD_WORKAROUND
6472 static const void *lt_preloaded_setup() {
6473 return lt__PROGRAM__LTX_preloaded_symbols;
6481 # Now try linking the two files.
6482 mv conftest.$ac_objext conftstm.$ac_objext
6483 lt_globsym_save_LIBS=$LIBS
6484 lt_globsym_save_CFLAGS=$CFLAGS
6485 LIBS=conftstm.$ac_objext
6486 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6487 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6488 (eval $ac_link) 2>&5
6490 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
6491 test $ac_status = 0; } && test -s conftest$ac_exeext; then
6494 LIBS=$lt_globsym_save_LIBS
6495 CFLAGS=$lt_globsym_save_CFLAGS
6497 echo "cannot
find nm_test_func
in $nlist" >&5
6500 echo "cannot
find nm_test_var
in $nlist" >&5
6503 echo "cannot run
$lt_cv_sys_global_symbol_pipe" >&5
6506 echo "$progname: failed program was
:" >&5
6507 cat conftest.$ac_ext >&5
6509 rm -rf conftest* conftst*
6511 # Do not use the global_symbol_pipe unless it works.
6512 if test yes = "$pipe_works"; then
6515 lt_cv_sys_global_symbol_pipe=
6521 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6522 lt_cv_sys_global_symbol_to_cdecl=
6524 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6525 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: failed
" >&5
6526 $as_echo "failed
" >&6; }
6528 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: ok
" >&5
6529 $as_echo "ok
" >&6; }
6532 # Response file support.
6533 if test "$lt_cv_nm_interface" = "MS dumpbin
"; then
6534 nm_file_list_spec='@'
6535 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6536 nm_file_list_spec='@'
6575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for sysroot
" >&5
6576 $as_echo_n "checking
for sysroot...
" >&6; }
6578 # Check whether --with-sysroot was given.
6579 if test "${with_sysroot+set}" = set; then :
6580 withval=$with_sysroot;
6587 case $with_sysroot in #(
6589 if test yes = "$GCC"; then
6590 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6594 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6599 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $with_sysroot" >&5
6600 $as_echo "$with_sysroot" >&6; }
6601 as_fn_error $? "The sysroot must be an absolute path.
" "$LINENO" 5
6605 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: ${lt_sysroot:-no}" >&5
6606 $as_echo "${lt_sysroot:-no}" >&6; }
6612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for a working
dd" >&5
6613 $as_echo_n "checking
for a working
dd...
" >&6; }
6614 if ${ac_cv_path_lt_DD+:} false; then :
6615 $as_echo_n "(cached
) " >&6
6617 printf 0123456789abcdef0123456789abcdef >conftest.i
6618 cat conftest.i conftest.i >conftest2.i
6620 if test -z "$lt_DD"; then
6621 ac_path_lt_DD_found=false
6622 # Loop through the user's path and test for each of PROGNAME-LIST
6623 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6627 test -z "$as_dir" && as_dir=.
6628 for ac_prog in dd; do
6629 for ac_exec_ext in '' $ac_executable_extensions; do
6630 ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
6631 as_fn_executable_p "$ac_path_lt_DD" || continue
6632 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
6633 cmp -s conftest.i conftest.out \
6634 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
6636 $ac_path_lt_DD_found && break 3
6641 if test -z "$ac_cv_path_lt_DD"; then
6645 ac_cv_path_lt_DD=$lt_DD
6648 rm -f conftest.i conftest2.i conftest.out
6650 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_path_lt_DD" >&5
6651 $as_echo "$ac_cv_path_lt_DD" >&6; }
6654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes
" >&5
6655 $as_echo_n "checking how to truncate binary pipes...
" >&6; }
6656 if ${lt_cv_truncate_bin+:} false; then :
6657 $as_echo_n "(cached
) " >&6
6659 printf 0123456789abcdef0123456789abcdef >conftest.i
6660 cat conftest.i conftest.i >conftest2.i
6662 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
6663 cmp -s conftest.i conftest.out \
6664 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs
=4096 count
=1"
6666 rm -f conftest.i conftest2.i conftest.out
6667 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q
"
6669 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_truncate_bin" >&5
6670 $as_echo "$lt_cv_truncate_bin" >&6; }
6678 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
6681 for cc_temp in $*""; do
6683 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6684 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6689 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s
%.
*/%%; s
%^
$host_alias-%%"`
6692 # Check whether --enable-libtool-lock was given.
6693 if test "${enable_libtool_lock+set}" = set; then :
6694 enableval=$enable_libtool_lock;
6697 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
6699 # Some flags need to be propagated to the compiler or linker for good
6703 # Find out what ABI is being produced by ac_compile, and set mode
6704 # options accordingly.
6705 echo 'int i;' > conftest.$ac_ext
6706 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6707 (eval $ac_compile) 2>&5
6709 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
6710 test $ac_status = 0; }; then
6711 case `/usr/bin/file conftest.$ac_objext` in
6723 # Find out what ABI is being produced by ac_compile, and set linker
6724 # options accordingly.
6725 echo '#line '$LINENO' "configure
"' > conftest.$ac_ext
6726 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6727 (eval $ac_compile) 2>&5
6729 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
6730 test $ac_status = 0; }; then
6731 if test yes = "$lt_cv_prog_gnu_ld"; then
6732 case `/usr/bin/file conftest.$ac_objext` in
6734 LD="${LD-ld} -melf32bsmip"
6737 LD="${LD-ld} -melf32bmipn32"
6740 LD="${LD-ld} -melf64bmip"
6744 case `/usr/bin/file conftest.$ac_objext` in
6761 # Find out what ABI is being produced by ac_compile, and set linker
6762 # options accordingly.
6763 echo '#line '$LINENO' "configure
"' > conftest.$ac_ext
6764 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6765 (eval $ac_compile) 2>&5
6767 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
6768 test $ac_status = 0; }; then
6770 case `/usr/bin/file conftest.$ac_objext` in
6778 case `/usr/bin/file conftest.$ac_objext` in
6780 emul="${emul}btsmip
"
6783 emul="${emul}ltsmip
"
6786 case `/usr/bin/file conftest.$ac_objext` in
6791 LD="${LD-ld} -m $emul"
6796 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
6797 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6798 # Find out what ABI is being produced by ac_compile, and set linker
6799 # options accordingly. Note that the listed cases only cover the
6800 # situations where additional linker options are needed (such as when
6801 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
6802 # vice versa); the common cases where no linker options are needed do
6803 # not appear in the list.
6804 echo 'int i;' > conftest.$ac_ext
6805 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6806 (eval $ac_compile) 2>&5
6808 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
6809 test $ac_status = 0; }; then
6810 case `/usr/bin/file conftest.o` in
6813 x86_64-*kfreebsd*-gnu)
6814 LD="${LD-ld} -m elf_i386_fbsd
"
6817 case `/usr/bin/file conftest.o` in
6819 LD="${LD-ld} -m elf32_x86_64
"
6822 LD="${LD-ld} -m elf_i386
"
6826 powerpc64le-*linux*)
6827 LD="${LD-ld} -m elf32lppclinux
"
6830 LD="${LD-ld} -m elf32ppclinux
"
6833 LD="${LD-ld} -m elf_s390
"
6836 LD="${LD-ld} -m elf32_sparc
"
6842 x86_64-*kfreebsd*-gnu)
6843 LD="${LD-ld} -m elf_x86_64_fbsd
"
6846 LD="${LD-ld} -m elf_x86_64
"
6849 LD="${LD-ld} -m elf64lppc
"
6852 LD="${LD-ld} -m elf64ppc
"
6854 s390*-*linux*|s390*-*tpf*)
6855 LD="${LD-ld} -m elf64_s390
"
6858 LD="${LD-ld} -m elf64_sparc
"
6868 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6870 CFLAGS="$CFLAGS -belf"
6871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs
-belf" >&5
6872 $as_echo_n "checking whether the C compiler needs
-belf...
" >&6; }
6873 if ${lt_cv_cc_needs_belf+:} false; then :
6874 $as_echo_n "(cached
) " >&6
6877 ac_cpp='$CPP $CPPFLAGS'
6878 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6879 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6880 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6882 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6883 /* end confdefs.h. */
6893 if ac_fn_c_try_link "$LINENO"; then :
6894 lt_cv_cc_needs_belf=yes
6896 lt_cv_cc_needs_belf=no
6898 rm -f core conftest.err conftest.$ac_objext \
6899 conftest$ac_exeext conftest.$ac_ext
6901 ac_cpp='$CPP $CPPFLAGS'
6902 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6903 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6904 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6907 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_cc_needs_belf" >&5
6908 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6909 if test yes != "$lt_cv_cc_needs_belf"; then
6910 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6915 # Find out what ABI is being produced by ac_compile, and set linker
6916 # options accordingly.
6917 echo 'int i;' > conftest.$ac_ext
6918 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6919 (eval $ac_compile) 2>&5
6921 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
6922 test $ac_status = 0; }; then
6923 case `/usr/bin/file conftest.o` in
6925 case $lt_cv_prog_gnu_ld in
6928 i?86-*-solaris*|x86_64-*-solaris*)
6929 LD="${LD-ld} -m elf_x86_64
"
6932 LD="${LD-ld} -m elf64_sparc
"
6935 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
6936 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
6941 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6953 need_locks=$enable_libtool_lock
6955 if test -n "$ac_tool_prefix"; then
6956 # Extract the first word of "${ac_tool_prefix}mt
", so it can be a program name with args.
6957 set dummy ${ac_tool_prefix}mt; ac_word=$2
6958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
6959 $as_echo_n "checking
for $ac_word...
" >&6; }
6960 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
6961 $as_echo_n "(cached
) " >&6
6963 if test -n "$MANIFEST_TOOL"; then
6964 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
6966 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6970 test -z "$as_dir" && as_dir=.
6971 for ac_exec_ext in '' $ac_executable_extensions; do
6972 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6973 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt
"
6974 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
6983 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
6984 if test -n "$MANIFEST_TOOL"; then
6985 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $MANIFEST_TOOL" >&5
6986 $as_echo "$MANIFEST_TOOL" >&6; }
6988 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
6989 $as_echo "no
" >&6; }
6994 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
6995 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
6996 # Extract the first word of "mt
", so it can be a program name with args.
6997 set dummy mt; ac_word=$2
6998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
6999 $as_echo_n "checking
for $ac_word...
" >&6; }
7000 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
7001 $as_echo_n "(cached
) " >&6
7003 if test -n "$ac_ct_MANIFEST_TOOL"; then
7004 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7006 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7010 test -z "$as_dir" && as_dir=.
7011 for ac_exec_ext in '' $ac_executable_extensions; do
7012 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7013 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt
"
7014 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
7023 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7024 if test -n "$ac_ct_MANIFEST_TOOL"; then
7025 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_MANIFEST_TOOL" >&5
7026 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
7028 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
7029 $as_echo "no
" >&6; }
7032 if test "x
$ac_ct_MANIFEST_TOOL" = x; then
7035 case $cross_compiling:$ac_tool_warned in
7037 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
7038 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
7039 ac_tool_warned=yes ;;
7041 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7044 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7047 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $MANIFEST_TOOL is a manifest tool
" >&5
7049 $as_echo_n "checking
if $MANIFEST_TOOL is a manifest tool...
" >&6; }
7050 if ${lt_cv_path_mainfest_tool+:} false; then :
7051 $as_echo_n "(cached
) " >&6
7053 lt_cv_path_mainfest_tool=no
7054 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7055 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7056 cat conftest.err >&5
7057 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7058 lt_cv_path_mainfest_tool=yes
7062 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_path_mainfest_tool" >&5
7063 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
7064 if test yes != "$lt_cv_path_mainfest_tool"; then
7074 rhapsody* | darwin*)
7075 if test -n "$ac_tool_prefix"; then
7076 # Extract the first word of "${ac_tool_prefix}dsymutil
", so it can be a program name with args.
7077 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
7079 $as_echo_n "checking
for $ac_word...
" >&6; }
7080 if ${ac_cv_prog_DSYMUTIL+:} false; then :
7081 $as_echo_n "(cached
) " >&6
7083 if test -n "$DSYMUTIL"; then
7084 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7086 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7090 test -z "$as_dir" && as_dir=.
7091 for ac_exec_ext in '' $ac_executable_extensions; do
7092 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7093 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil
"
7094 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
7103 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7104 if test -n "$DSYMUTIL"; then
7105 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $DSYMUTIL" >&5
7106 $as_echo "$DSYMUTIL" >&6; }
7108 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
7109 $as_echo "no
" >&6; }
7114 if test -z "$ac_cv_prog_DSYMUTIL"; then
7115 ac_ct_DSYMUTIL=$DSYMUTIL
7116 # Extract the first word of "dsymutil
", so it can be a program name with args.
7117 set dummy dsymutil; ac_word=$2
7118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
7119 $as_echo_n "checking
for $ac_word...
" >&6; }
7120 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7121 $as_echo_n "(cached
) " >&6
7123 if test -n "$ac_ct_DSYMUTIL"; then
7124 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7126 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7130 test -z "$as_dir" && as_dir=.
7131 for ac_exec_ext in '' $ac_executable_extensions; do
7132 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7133 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil
"
7134 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
7143 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7144 if test -n "$ac_ct_DSYMUTIL"; then
7145 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_DSYMUTIL" >&5
7146 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7148 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
7149 $as_echo "no
" >&6; }
7152 if test "x
$ac_ct_DSYMUTIL" = x; then
7155 case $cross_compiling:$ac_tool_warned in
7157 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
7158 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
7159 ac_tool_warned=yes ;;
7161 DSYMUTIL=$ac_ct_DSYMUTIL
7164 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7167 if test -n "$ac_tool_prefix"; then
7168 # Extract the first word of "${ac_tool_prefix}nmedit
", so it can be a program name with args.
7169 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
7171 $as_echo_n "checking
for $ac_word...
" >&6; }
7172 if ${ac_cv_prog_NMEDIT+:} false; then :
7173 $as_echo_n "(cached
) " >&6
7175 if test -n "$NMEDIT"; then
7176 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7178 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7182 test -z "$as_dir" && as_dir=.
7183 for ac_exec_ext in '' $ac_executable_extensions; do
7184 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7185 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit
"
7186 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
7195 NMEDIT=$ac_cv_prog_NMEDIT
7196 if test -n "$NMEDIT"; then
7197 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $NMEDIT" >&5
7198 $as_echo "$NMEDIT" >&6; }
7200 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
7201 $as_echo "no
" >&6; }
7206 if test -z "$ac_cv_prog_NMEDIT"; then
7207 ac_ct_NMEDIT=$NMEDIT
7208 # Extract the first word of "nmedit
", so it can be a program name with args.
7209 set dummy nmedit; ac_word=$2
7210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
7211 $as_echo_n "checking
for $ac_word...
" >&6; }
7212 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7213 $as_echo_n "(cached
) " >&6
7215 if test -n "$ac_ct_NMEDIT"; then
7216 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7222 test -z "$as_dir" && as_dir=.
7223 for ac_exec_ext in '' $ac_executable_extensions; do
7224 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7225 ac_cv_prog_ac_ct_NMEDIT="nmedit
"
7226 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
7235 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7236 if test -n "$ac_ct_NMEDIT"; then
7237 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_NMEDIT" >&5
7238 $as_echo "$ac_ct_NMEDIT" >&6; }
7240 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
7241 $as_echo "no
" >&6; }
7244 if test "x
$ac_ct_NMEDIT" = x; then
7247 case $cross_compiling:$ac_tool_warned in
7249 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
7250 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
7251 ac_tool_warned=yes ;;
7253 NMEDIT=$ac_ct_NMEDIT
7256 NMEDIT="$ac_cv_prog_NMEDIT"
7259 if test -n "$ac_tool_prefix"; then
7260 # Extract the first word of "${ac_tool_prefix}lipo
", so it can be a program name with args.
7261 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
7263 $as_echo_n "checking
for $ac_word...
" >&6; }
7264 if ${ac_cv_prog_LIPO+:} false; then :
7265 $as_echo_n "(cached
) " >&6
7267 if test -n "$LIPO"; then
7268 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7270 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7274 test -z "$as_dir" && as_dir=.
7275 for ac_exec_ext in '' $ac_executable_extensions; do
7276 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7277 ac_cv_prog_LIPO="${ac_tool_prefix}lipo
"
7278 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
7287 LIPO=$ac_cv_prog_LIPO
7288 if test -n "$LIPO"; then
7289 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $LIPO" >&5
7290 $as_echo "$LIPO" >&6; }
7292 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
7293 $as_echo "no
" >&6; }
7298 if test -z "$ac_cv_prog_LIPO"; then
7300 # Extract the first word of "lipo
", so it can be a program name with args.
7301 set dummy lipo; ac_word=$2
7302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
7303 $as_echo_n "checking
for $ac_word...
" >&6; }
7304 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7305 $as_echo_n "(cached
) " >&6
7307 if test -n "$ac_ct_LIPO"; then
7308 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7310 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7314 test -z "$as_dir" && as_dir=.
7315 for ac_exec_ext in '' $ac_executable_extensions; do
7316 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7317 ac_cv_prog_ac_ct_LIPO="lipo
"
7318 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
7327 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7328 if test -n "$ac_ct_LIPO"; then
7329 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_LIPO" >&5
7330 $as_echo "$ac_ct_LIPO" >&6; }
7332 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
7333 $as_echo "no
" >&6; }
7336 if test "x
$ac_ct_LIPO" = x; then
7339 case $cross_compiling:$ac_tool_warned in
7341 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
7342 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
7343 ac_tool_warned=yes ;;
7348 LIPO="$ac_cv_prog_LIPO"
7351 if test -n "$ac_tool_prefix"; then
7352 # Extract the first word of "${ac_tool_prefix}otool
", so it can be a program name with args.
7353 set dummy ${ac_tool_prefix}otool; ac_word=$2
7354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
7355 $as_echo_n "checking
for $ac_word...
" >&6; }
7356 if ${ac_cv_prog_OTOOL+:} false; then :
7357 $as_echo_n "(cached
) " >&6
7359 if test -n "$OTOOL"; then
7360 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7362 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7366 test -z "$as_dir" && as_dir=.
7367 for ac_exec_ext in '' $ac_executable_extensions; do
7368 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7369 ac_cv_prog_OTOOL="${ac_tool_prefix}otool
"
7370 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
7379 OTOOL=$ac_cv_prog_OTOOL
7380 if test -n "$OTOOL"; then
7381 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OTOOL" >&5
7382 $as_echo "$OTOOL" >&6; }
7384 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
7385 $as_echo "no
" >&6; }
7390 if test -z "$ac_cv_prog_OTOOL"; then
7392 # Extract the first word of "otool
", so it can be a program name with args.
7393 set dummy otool; ac_word=$2
7394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
7395 $as_echo_n "checking
for $ac_word...
" >&6; }
7396 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7397 $as_echo_n "(cached
) " >&6
7399 if test -n "$ac_ct_OTOOL"; then
7400 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7402 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7406 test -z "$as_dir" && as_dir=.
7407 for ac_exec_ext in '' $ac_executable_extensions; do
7408 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7409 ac_cv_prog_ac_ct_OTOOL="otool
"
7410 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
7419 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7420 if test -n "$ac_ct_OTOOL"; then
7421 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_OTOOL" >&5
7422 $as_echo "$ac_ct_OTOOL" >&6; }
7424 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
7425 $as_echo "no
" >&6; }
7428 if test "x
$ac_ct_OTOOL" = x; then
7431 case $cross_compiling:$ac_tool_warned in
7433 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
7434 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
7435 ac_tool_warned=yes ;;
7440 OTOOL="$ac_cv_prog_OTOOL"
7443 if test -n "$ac_tool_prefix"; then
7444 # Extract the first word of "${ac_tool_prefix}otool64
", so it can be a program name with args.
7445 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
7447 $as_echo_n "checking
for $ac_word...
" >&6; }
7448 if ${ac_cv_prog_OTOOL64+:} false; then :
7449 $as_echo_n "(cached
) " >&6
7451 if test -n "$OTOOL64"; then
7452 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7454 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7458 test -z "$as_dir" && as_dir=.
7459 for ac_exec_ext in '' $ac_executable_extensions; do
7460 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7461 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64
"
7462 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
7471 OTOOL64=$ac_cv_prog_OTOOL64
7472 if test -n "$OTOOL64"; then
7473 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OTOOL64" >&5
7474 $as_echo "$OTOOL64" >&6; }
7476 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
7477 $as_echo "no
" >&6; }
7482 if test -z "$ac_cv_prog_OTOOL64"; then
7483 ac_ct_OTOOL64=$OTOOL64
7484 # Extract the first word of "otool64
", so it can be a program name with args.
7485 set dummy otool64; ac_word=$2
7486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
7487 $as_echo_n "checking
for $ac_word...
" >&6; }
7488 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7489 $as_echo_n "(cached
) " >&6
7491 if test -n "$ac_ct_OTOOL64"; then
7492 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7494 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7498 test -z "$as_dir" && as_dir=.
7499 for ac_exec_ext in '' $ac_executable_extensions; do
7500 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7501 ac_cv_prog_ac_ct_OTOOL64="otool64
"
7502 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
7511 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7512 if test -n "$ac_ct_OTOOL64"; then
7513 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_OTOOL64" >&5
7514 $as_echo "$ac_ct_OTOOL64" >&6; }
7516 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
7517 $as_echo "no
" >&6; }
7520 if test "x
$ac_ct_OTOOL64" = x; then
7523 case $cross_compiling:$ac_tool_warned in
7525 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
7526 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
7527 ac_tool_warned=yes ;;
7529 OTOOL64=$ac_ct_OTOOL64
7532 OTOOL64="$ac_cv_prog_OTOOL64"
7561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for -single_module linker flag
" >&5
7562 $as_echo_n "checking
for -single_module linker flag...
" >&6; }
7563 if ${lt_cv_apple_cc_single_mod+:} false; then :
7564 $as_echo_n "(cached
) " >&6
7566 lt_cv_apple_cc_single_mod=no
7567 if test -z "$LT_MULTI_MODULE"; then
7568 # By default we will add the -single_module flag. You can override
7569 # by either setting the environment variable LT_MULTI_MODULE
7570 # non-empty at configure time, or by adding -multi_module to the
7572 rm -rf libconftest.dylib*
7573 echo "int foo
(void
){return 1;}" > conftest.c
7574 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7575 -dynamiclib -Wl,-single_module conftest.c
" >&5
7576 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7577 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7579 # If there is a non-empty error log, and "single_module
"
7580 # appears in it, assume the flag caused a linker warning
7581 if test -s conftest.err && $GREP single_module conftest.err; then
7582 cat conftest.err >&5
7583 # Otherwise, if the output was created with a 0 exit code from
7584 # the compiler, it worked.
7585 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
7586 lt_cv_apple_cc_single_mod=yes
7588 cat conftest.err >&5
7590 rm -rf libconftest.dylib*
7594 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_apple_cc_single_mod" >&5
7595 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for -exported_symbols_list linker flag
" >&5
7598 $as_echo_n "checking
for -exported_symbols_list linker flag...
" >&6; }
7599 if ${lt_cv_ld_exported_symbols_list+:} false; then :
7600 $as_echo_n "(cached
) " >&6
7602 lt_cv_ld_exported_symbols_list=no
7603 save_LDFLAGS=$LDFLAGS
7604 echo "_main
" > conftest.sym
7605 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym
"
7606 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7607 /* end confdefs.h. */
7617 if ac_fn_c_try_link "$LINENO"; then :
7618 lt_cv_ld_exported_symbols_list=yes
7620 lt_cv_ld_exported_symbols_list=no
7622 rm -f core conftest.err conftest.$ac_objext \
7623 conftest$ac_exeext conftest.$ac_ext
7624 LDFLAGS=$save_LDFLAGS
7627 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_ld_exported_symbols_list" >&5
7628 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for -force_load linker flag
" >&5
7631 $as_echo_n "checking
for -force_load linker flag...
" >&6; }
7632 if ${lt_cv_ld_force_load+:} false; then :
7633 $as_echo_n "(cached
) " >&6
7635 lt_cv_ld_force_load=no
7636 cat > conftest.c << _LT_EOF
7637 int forced_loaded() { return 2;}
7639 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c
" >&5
7640 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7641 echo "$AR cru libconftest.a conftest.o
" >&5
7642 $AR cru libconftest.a conftest.o 2>&5
7643 echo "$RANLIB libconftest.a
" >&5
7644 $RANLIB libconftest.a 2>&5
7645 cat > conftest.c << _LT_EOF
7646 int main() { return 0;}
7648 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c
-Wl,-force_load,.
/libconftest.a
" >&5
7649 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7651 if test -s conftest.err && $GREP force_load conftest.err; then
7652 cat conftest.err >&5
7653 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
7654 lt_cv_ld_force_load=yes
7656 cat conftest.err >&5
7658 rm -f conftest.err libconftest.a conftest conftest.c
7659 rm -rf conftest.dSYM
7662 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_ld_force_load" >&5
7663 $as_echo "$lt_cv_ld_force_load" >&6; }
7665 rhapsody* | darwin1.[012])
7666 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
7668 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
7669 darwin*) # darwin 5.x on
7670 # if running on 10.5 or later, the deployment target defaults
7671 # to the OS version, if on x86, and 10.4, the deployment
7672 # target defaults to 10.4. Don't you love it?
7673 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7674 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7675 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
7677 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
7679 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
7683 if test yes = "$lt_cv_apple_cc_single_mod"; then
7684 _lt_dar_single_mod='$single_module'
7686 if test yes = "$lt_cv_ld_exported_symbols_list"; then
7687 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
7689 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
7691 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
7692 _lt_dsymutil='~$DSYMUTIL $lib || :'
7699 # func_munge_path_list VARIABLE PATH
7700 # -----------------------------------
7701 # VARIABLE is name of variable containing _space_ separated list of
7702 # directories to be munged by the contents of PATH, which is string
7705 # string "DIR
[ DIR
]" will be prepended to VARIABLE
7707 # string "DIR
[ DIR
]" will be appended to VARIABLE
7708 # "DIRP
[:DIRP
]::[DIRA
:]DIRA
"
7709 # string "DIRP
[ DIRP
]" will be prepended to VARIABLE and string
7710 # "DIRA
[ DIRA
]" will be appended to VARIABLE
7712 # VARIABLE will be replaced by "DIR
[ DIR
]"
7713 func_munge_path_list ()
7719 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
7722 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
7725 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
7726 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
7729 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
7735 ac_cpp='$CPP $CPPFLAGS'
7736 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7737 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7738 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor
" >&5
7740 $as_echo_n "checking how to run the C preprocessor...
" >&6; }
7741 # On Suns, sometimes $CPP names a directory.
7742 if test -n "$CPP" && test -d "$CPP"; then
7745 if test -z "$CPP"; then
7746 if ${ac_cv_prog_CPP+:} false; then :
7747 $as_echo_n "(cached
) " >&6
7749 # Double quotes because CPP needs to be expanded
7750 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib
/cpp
"
7753 for ac_c_preproc_warn_flag in '' yes
7755 # Use a header file that comes with gcc, so configuring glibc
7756 # with a fresh cross-compiler works.
7757 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7758 # <limits.h> exists even on freestanding compilers.
7759 # On the NeXT, cc -E runs the code through the compiler's parser,
7760 # not just through cpp. "Syntax error
" is here to catch this case.
7761 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7762 /* end confdefs.h. */
7764 # include <limits.h>
7766 # include <assert.h>
7770 if ac_fn_c_try_cpp "$LINENO"; then :
7773 # Broken: fails on valid input.
7776 rm -f conftest.err conftest.i conftest.$ac_ext
7778 # OK, works on sane cases. Now check whether nonexistent headers
7779 # can be detected and how.
7780 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7781 /* end confdefs.h. */
7782 #include <ac_nonexistent.h>
7784 if ac_fn_c_try_cpp "$LINENO"; then :
7785 # Broken: success on invalid input.
7788 # Passes both tests.
7792 rm -f conftest.err conftest.i conftest.$ac_ext
7795 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7796 rm -f conftest.i conftest.err conftest.$ac_ext
7797 if $ac_preproc_ok; then :
7809 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $CPP" >&5
7810 $as_echo "$CPP" >&6; }
7812 for ac_c_preproc_warn_flag in '' yes
7814 # Use a header file that comes with gcc, so configuring glibc
7815 # with a fresh cross-compiler works.
7816 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7817 # <limits.h> exists even on freestanding compilers.
7818 # On the NeXT, cc -E runs the code through the compiler's parser,
7819 # not just through cpp. "Syntax error
" is here to catch this case.
7820 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7821 /* end confdefs.h. */
7823 # include <limits.h>
7825 # include <assert.h>
7829 if ac_fn_c_try_cpp "$LINENO"; then :
7832 # Broken: fails on valid input.
7835 rm -f conftest.err conftest.i conftest.$ac_ext
7837 # OK, works on sane cases. Now check whether nonexistent headers
7838 # can be detected and how.
7839 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7840 /* end confdefs.h. */
7841 #include <ac_nonexistent.h>
7843 if ac_fn_c_try_cpp "$LINENO"; then :
7844 # Broken: success on invalid input.
7847 # Passes both tests.
7851 rm -f conftest.err conftest.i conftest.$ac_ext
7854 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7855 rm -f conftest.i conftest.err conftest.$ac_ext
7856 if $ac_preproc_ok; then :
7859 { { $as_echo "$as_me:${as_lineno-$LINENO}: error
: in \
`$ac_pwd':" >&5
7860 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7861 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7862 See \`config.log' for more details
" "$LINENO" 5; }
7866 ac_cpp='$CPP $CPPFLAGS'
7867 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7868 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7869 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ANSI C header files
" >&5
7873 $as_echo_n "checking
for ANSI C header files...
" >&6; }
7874 if ${ac_cv_header_stdc+:} false; then :
7875 $as_echo_n "(cached
) " >&6
7877 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7878 /* end confdefs.h. */
7892 if ac_fn_c_try_compile "$LINENO"; then :
7893 ac_cv_header_stdc=yes
7895 ac_cv_header_stdc=no
7897 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7899 if test $ac_cv_header_stdc = yes; then
7900 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7901 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7902 /* end confdefs.h. */
7906 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
7907 $EGREP "memchr
" >/dev/null 2>&1; then :
7910 ac_cv_header_stdc=no
7916 if test $ac_cv_header_stdc = yes; then
7917 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7918 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7919 /* end confdefs.h. */
7923 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
7924 $EGREP "free
" >/dev/null 2>&1; then :
7927 ac_cv_header_stdc=no
7933 if test $ac_cv_header_stdc = yes; then
7934 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7935 if test "$cross_compiling" = yes; then :
7938 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7939 /* end confdefs.h. */
7942 #if ((' ' & 0x0FF) == 0x020)
7943 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7944 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7946 # define ISLOWER(c) \
7947 (('a' <= (c) && (c) <= 'i') \
7948 || ('j' <= (c) && (c) <= 'r') \
7949 || ('s' <= (c) && (c) <= 'z'))
7950 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7953 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7958 for (i = 0; i < 256; i++)
7959 if (XOR (islower (i), ISLOWER (i))
7960 || toupper (i) != TOUPPER (i))
7965 if ac_fn_c_try_run "$LINENO"; then :
7968 ac_cv_header_stdc=no
7970 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7971 conftest.$ac_objext conftest.beam conftest.$ac_ext
7976 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_header_stdc" >&5
7977 $as_echo "$ac_cv_header_stdc" >&6; }
7978 if test $ac_cv_header_stdc = yes; then
7980 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7984 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7985 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
7986 inttypes.h stdint.h unistd.h
7988 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7989 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7991 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
7992 cat >>confdefs.h
<<_ACEOF
7993 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8001 for ac_header
in dlfcn.h
8003 ac_fn_c_check_header_compile
"$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8005 if test "x$ac_cv_header_dlfcn_h" = xyes
; then :
8006 cat >>confdefs.h
<<_ACEOF
8007 #define HAVE_DLFCN_H 1
8028 # Check whether --enable-shared was given.
8029 if test "${enable_shared+set}" = set; then :
8030 enableval
=$enable_shared; p
=${PACKAGE-default}
8032 yes) enable_shared
=yes ;;
8033 no
) enable_shared
=no
;;
8036 # Look at the argument we got. We use all the common list separators.
8037 lt_save_ifs
=$IFS; IFS
=$IFS$PATH_SEPARATOR,
8038 for pkg
in $enableval; do
8040 if test "X$pkg" = "X$p"; then
8059 # Check whether --enable-static was given.
8060 if test "${enable_static+set}" = set; then :
8061 enableval
=$enable_static; p
=${PACKAGE-default}
8063 yes) enable_static
=yes ;;
8064 no
) enable_static
=no
;;
8067 # Look at the argument we got. We use all the common list separators.
8068 lt_save_ifs
=$IFS; IFS
=$IFS$PATH_SEPARATOR,
8069 for pkg
in $enableval; do
8071 if test "X$pkg" = "X$p"; then
8091 # Check whether --with-pic was given.
8092 if test "${with_pic+set}" = set; then :
8093 withval
=$with_pic; lt_p
=${PACKAGE-default}
8095 yes|no
) pic_mode
=$withval ;;
8098 # Look at the argument we got. We use all the common list separators.
8099 lt_save_ifs
=$IFS; IFS
=$IFS$PATH_SEPARATOR,
8100 for lt_pkg
in $withval; do
8102 if test "X$lt_pkg" = "X$lt_p"; then
8120 # Check whether --enable-fast-install was given.
8121 if test "${enable_fast_install+set}" = set; then :
8122 enableval
=$enable_fast_install; p
=${PACKAGE-default}
8124 yes) enable_fast_install
=yes ;;
8125 no
) enable_fast_install
=no
;;
8127 enable_fast_install
=no
8128 # Look at the argument we got. We use all the common list separators.
8129 lt_save_ifs
=$IFS; IFS
=$IFS$PATH_SEPARATOR,
8130 for pkg
in $enableval; do
8132 if test "X$pkg" = "X$p"; then
8133 enable_fast_install
=yes
8140 enable_fast_install
=yes
8150 shared_archive_member_spec
=
8151 case $host,$enable_shared in
8152 power
*-*-aix[5-9]*,yes)
8153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
8154 $as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
8156 # Check whether --with-aix-soname was given.
8157 if test "${with_aix_soname+set}" = set; then :
8158 withval
=$with_aix_soname; case $withval in
8162 as_fn_error $?
"Unknown argument to --with-aix-soname" "$LINENO" 5
8165 lt_cv_with_aix_soname
=$with_aix_soname
8167 if ${lt_cv_with_aix_soname+:} false
; then :
8168 $as_echo_n "(cached) " >&6
8170 lt_cv_with_aix_soname
=aix
8173 with_aix_soname
=$lt_cv_with_aix_soname
8176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
8177 $as_echo "$with_aix_soname" >&6; }
8178 if test aix
!= "$with_aix_soname"; then
8179 # For the AIX way of multilib, we name the shared archive member
8180 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
8181 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
8182 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
8183 # the AIX toolchain works better with OBJECT_MODE set (default 32).
8184 if test 64 = "${OBJECT_MODE-32}"; then
8185 shared_archive_member_spec
=shr_64
8187 shared_archive_member_spec
=shr
8205 # This can be used to rebuild libtool when needed
8206 LIBTOOL_DEPS
=$ltmain
8208 # Always use our own libtool.
8209 LIBTOOL
='$(SHELL) $(top_builddir)/libtool'
8240 test -z "$LN_S" && LN_S
="ln -s"
8255 if test -n "${ZSH_VERSION+set}"; then
8256 setopt NO_GLOB_SUBST
8259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8260 $as_echo_n "checking for objdir... " >&6; }
8261 if ${lt_cv_objdir+:} false
; then :
8262 $as_echo_n "(cached) " >&6
8264 rm -f .libs
2>/dev
/null
8265 mkdir .libs
2>/dev
/null
8266 if test -d .libs
; then
8269 # MS-DOS does not allow filenames that begin with a dot.
8272 rmdir .libs
2>/dev
/null
8274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8275 $as_echo "$lt_cv_objdir" >&6; }
8276 objdir
=$lt_cv_objdir
8282 cat >>confdefs.h
<<_ACEOF
8283 #define LT_OBJDIR "$lt_cv_objdir/"
8291 # AIX sometimes has problems with the GCC collect2 program. For some
8292 # reason, if we set the COLLECT_NAMES environment variable, the problems
8293 # vanish in a puff of smoke.
8294 if test set != "${COLLECT_NAMES+set}"; then
8296 export COLLECT_NAMES
8303 can_build_shared
=yes
8305 # All known linkers require a '.a' archive for static linking (except MSVC,
8306 # which needs '.lib').
8309 with_gnu_ld
=$lt_cv_prog_gnu_ld
8314 # Set sane defaults for various variables
8315 test -z "$CC" && CC
=cc
8316 test -z "$LTCC" && LTCC
=$CC
8317 test -z "$LTCFLAGS" && LTCFLAGS
=$CFLAGS
8318 test -z "$LD" && LD
=ld
8319 test -z "$ac_objext" && ac_objext
=o
8321 func_cc_basename
$compiler
8322 cc_basename
=$func_cc_basename_result
8325 # Only perform the check for file, if the check method requires it
8326 test -z "$MAGIC_CMD" && MAGIC_CMD
=file
8327 case $deplibs_check_method in
8329 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8331 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8332 if ${lt_cv_path_MAGIC_CMD+:} false
; then :
8333 $as_echo_n "(cached) " >&6
8337 lt_cv_path_MAGIC_CMD
=$MAGIC_CMD # Let the user override the test with a path.
8340 lt_save_MAGIC_CMD
=$MAGIC_CMD
8341 lt_save_ifs
=$IFS; IFS
=$PATH_SEPARATOR
8342 ac_dummy
="/usr/bin$PATH_SEPARATOR$PATH"
8343 for ac_dir
in $ac_dummy; do
8345 test -z "$ac_dir" && ac_dir
=.
8346 if test -f "$ac_dir/${ac_tool_prefix}file"; then
8347 lt_cv_path_MAGIC_CMD
=$ac_dir/"${ac_tool_prefix}file"
8348 if test -n "$file_magic_test_file"; then
8349 case $deplibs_check_method in
8351 file_magic_regex
=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8352 MAGIC_CMD
=$lt_cv_path_MAGIC_CMD
8353 if eval $file_magic_cmd \
$file_magic_test_file 2> /dev
/null |
8354 $EGREP "$file_magic_regex" > /dev
/null
; then
8359 *** Warning: the command libtool uses to detect shared libraries,
8360 *** $file_magic_cmd, produces output that libtool cannot recognize.
8361 *** The result is that libtool may fail to recognize shared libraries
8362 *** as such. This will affect the creation of libtool libraries that
8363 *** depend on shared libraries, but programs linked with such libtool
8364 *** libraries will work regardless of this problem. Nevertheless, you
8365 *** may want to report the problem to your system manager and/or to
8366 *** bug-libtool@gnu.org
8376 MAGIC_CMD
=$lt_save_MAGIC_CMD
8381 MAGIC_CMD
=$lt_cv_path_MAGIC_CMD
8382 if test -n "$MAGIC_CMD"; then
8383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8384 $as_echo "$MAGIC_CMD" >&6; }
8386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8387 $as_echo "no" >&6; }
8394 if test -z "$lt_cv_path_MAGIC_CMD"; then
8395 if test -n "$ac_tool_prefix"; then
8396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8397 $as_echo_n "checking for file... " >&6; }
8398 if ${lt_cv_path_MAGIC_CMD+:} false
; then :
8399 $as_echo_n "(cached) " >&6
8403 lt_cv_path_MAGIC_CMD
=$MAGIC_CMD # Let the user override the test with a path.
8406 lt_save_MAGIC_CMD
=$MAGIC_CMD
8407 lt_save_ifs
=$IFS; IFS
=$PATH_SEPARATOR
8408 ac_dummy
="/usr/bin$PATH_SEPARATOR$PATH"
8409 for ac_dir
in $ac_dummy; do
8411 test -z "$ac_dir" && ac_dir
=.
8412 if test -f "$ac_dir/file"; then
8413 lt_cv_path_MAGIC_CMD
=$ac_dir/"file"
8414 if test -n "$file_magic_test_file"; then
8415 case $deplibs_check_method in
8417 file_magic_regex
=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8418 MAGIC_CMD
=$lt_cv_path_MAGIC_CMD
8419 if eval $file_magic_cmd \
$file_magic_test_file 2> /dev
/null |
8420 $EGREP "$file_magic_regex" > /dev
/null
; then
8425 *** Warning: the command libtool uses to detect shared libraries,
8426 *** $file_magic_cmd, produces output that libtool cannot recognize.
8427 *** The result is that libtool may fail to recognize shared libraries
8428 *** as such. This will affect the creation of libtool libraries that
8429 *** depend on shared libraries, but programs linked with such libtool
8430 *** libraries will work regardless of this problem. Nevertheless, you
8431 *** may want to report the problem to your system manager and/or to
8432 *** bug-libtool@gnu.org
8442 MAGIC_CMD
=$lt_save_MAGIC_CMD
8447 MAGIC_CMD
=$lt_cv_path_MAGIC_CMD
8448 if test -n "$MAGIC_CMD"; then
8449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8450 $as_echo "$MAGIC_CMD" >&6; }
8452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8453 $as_echo "no" >&6; }
8466 # Use C for the default configuration in the libtool script
8470 ac_cpp
='$CPP $CPPFLAGS'
8471 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8472 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8473 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
8476 # Source file extension for C test sources.
8479 # Object file extension for compiled C test sources.
8483 # Code to be used in simple compile tests
8484 lt_simple_compile_test_code
="int some_variable = 0;"
8486 # Code to be used in simple link tests
8487 lt_simple_link_test_code
='int main(){return(0);}'
8495 # If no C compiler was specified, use CC.
8498 # If no C compiler flags were specified, use CFLAGS.
8499 LTCFLAGS
=${LTCFLAGS-"$CFLAGS"}
8501 # Allow CC to be a program name with arguments.
8504 # Save the default compiler, since it gets overwritten when the other
8505 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8506 compiler_DEFAULT
=$CC
8508 # save warnings/boilerplate of simple test code
8509 ac_outfile
=conftest.
$ac_objext
8510 echo "$lt_simple_compile_test_code" >conftest.
$ac_ext
8511 eval "$ac_compile" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
8512 _lt_compiler_boilerplate
=`cat conftest.err`
8515 ac_outfile
=conftest.
$ac_objext
8516 echo "$lt_simple_link_test_code" >conftest.
$ac_ext
8517 eval "$ac_link" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
8518 _lt_linker_boilerplate
=`cat conftest.err`
8523 ## There is no encapsulation within the following macros, do not change
8524 ## the running order or otherwise move them around unless you know exactly
8525 ## what you are doing...
8526 if test -n "$compiler"; then
8528 lt_prog_compiler_no_builtin_flag
=
8530 if test yes = "$GCC"; then
8531 case $cc_basename in
8533 lt_prog_compiler_no_builtin_flag
=' -Xcompiler -fno-builtin' ;;
8535 lt_prog_compiler_no_builtin_flag
=' -fno-builtin' ;;
8538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8539 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8540 if ${lt_cv_prog_compiler_rtti_exceptions+:} false
; then :
8541 $as_echo_n "(cached) " >&6
8543 lt_cv_prog_compiler_rtti_exceptions
=no
8544 ac_outfile
=conftest.
$ac_objext
8545 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
8546 lt_compiler_flag
="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
8547 # Insert the option either (1) after the last *FLAGS variable, or
8548 # (2) before a word containing "conftest.", or (3) at the end.
8549 # Note that $ac_compile itself does not contain backslashes and begins
8550 # with a dollar sign (not a hyphen), so the echo should work correctly.
8551 # The option is referenced via a variable to avoid confusing sed.
8552 lt_compile
=`echo "$ac_compile" | $SED \
8553 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8554 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8555 -e 's:$: $lt_compiler_flag:'`
8556 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8557 (eval "$lt_compile" 2>conftest.err
)
8559 cat conftest.err
>&5
8560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8561 if (exit $ac_status) && test -s "$ac_outfile"; then
8562 # The compiler can only warn and ignore the option if not recognized
8563 # So say no if there are warnings other than the usual output.
8564 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' >conftest.exp
8565 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
8566 if test ! -s conftest.er2 ||
diff conftest.exp conftest.er2
>/dev
/null
; then
8567 lt_cv_prog_compiler_rtti_exceptions
=yes
8573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8574 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8576 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
8577 lt_prog_compiler_no_builtin_flag
="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8589 lt_prog_compiler_wl
=
8590 lt_prog_compiler_pic
=
8591 lt_prog_compiler_static
=
8594 if test yes = "$GCC"; then
8595 lt_prog_compiler_wl
='-Wl,'
8596 lt_prog_compiler_static
='-static'
8600 # All AIX code is PIC.
8601 if test ia64
= "$host_cpu"; then
8602 # AIX 5 now supports IA64 processor
8603 lt_prog_compiler_static
='-Bstatic'
8605 lt_prog_compiler_pic
='-fPIC'
8611 # see comment about AmigaOS4 .so support
8612 lt_prog_compiler_pic
='-fPIC'
8615 # FIXME: we need at least 68020 code to build shared libraries, but
8616 # adding the '-m68020' flag to GCC prevents building anything better,
8618 lt_prog_compiler_pic
='-m68020 -resident32 -malways-restore-a4'
8623 beos
* | irix5
* | irix6
* | nonstopux
* | osf3
* | osf4
* | osf5
*)
8624 # PIC is the default for these OSes.
8627 mingw
* | cygwin
* | pw32
* | os2
* | cegcc
*)
8628 # This hack is so that the source file can tell whether it is being
8629 # built for inclusion in a dll (and should export symbols for example).
8630 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8631 # (--disable-auto-import) libraries
8632 lt_prog_compiler_pic
='-DDLL_EXPORT'
8635 lt_prog_compiler_static
='$wl-static'
8640 darwin
* | rhapsody
*)
8641 # PIC is the default on this platform
8642 # Common symbols not allowed in MH_DYLIB files
8643 lt_prog_compiler_pic
='-fno-common'
8647 # PIC is the default for Haiku.
8648 # The "-static" flag exists, but is broken.
8649 lt_prog_compiler_static
=
8653 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8654 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8655 # sets the default TLS model and affects inlining.
8661 lt_prog_compiler_pic
='-fPIC'
8667 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8668 # Instead, we relocate shared libraries at runtime.
8672 # Just because we use GCC doesn't mean we suddenly get shared libraries
8673 # on systems that don't support them.
8674 lt_prog_compiler_can_build_shared
=no
8679 # QNX uses GNU C++, but need to define -shared option too, otherwise
8681 lt_prog_compiler_pic
='-fPIC -shared'
8685 if test -d /usr
/nec
; then
8686 lt_prog_compiler_pic
=-Kconform_pic
8691 lt_prog_compiler_pic
='-fPIC'
8695 case $cc_basename in
8696 nvcc
*) # Cuda Compiler Driver 2.2
8697 lt_prog_compiler_wl
='-Xlinker '
8698 if test -n "$lt_prog_compiler_pic"; then
8699 lt_prog_compiler_pic
="-Xcompiler $lt_prog_compiler_pic"
8704 # PORTME Check for flag to pass linker flags through the system compiler.
8707 lt_prog_compiler_wl
='-Wl,'
8708 if test ia64
= "$host_cpu"; then
8709 # AIX 5 now supports IA64 processor
8710 lt_prog_compiler_static
='-Bstatic'
8712 lt_prog_compiler_static
='-bnso -bI:/lib/syscalls.exp'
8716 darwin
* | rhapsody
*)
8717 # PIC is the default on this platform
8718 # Common symbols not allowed in MH_DYLIB files
8719 lt_prog_compiler_pic
='-fno-common'
8720 case $cc_basename in
8722 # NAG Fortran compiler
8723 lt_prog_compiler_wl
='-Wl,-Wl,,'
8724 lt_prog_compiler_pic
='-PIC'
8725 lt_prog_compiler_static
='-Bstatic'
8730 mingw
* | cygwin
* | pw32
* | os2
* | cegcc
*)
8731 # This hack is so that the source file can tell whether it is being
8732 # built for inclusion in a dll (and should export symbols for example).
8733 lt_prog_compiler_pic
='-DDLL_EXPORT'
8736 lt_prog_compiler_static
='$wl-static'
8741 hpux9
* | hpux10
* | hpux11
*)
8742 lt_prog_compiler_wl
='-Wl,'
8743 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8750 lt_prog_compiler_pic
='+Z'
8753 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8754 lt_prog_compiler_static
='$wl-a ${wl}archive'
8757 irix5
* | irix6
* | nonstopux
*)
8758 lt_prog_compiler_wl
='-Wl,'
8759 # PIC (with -KPIC) is the default.
8760 lt_prog_compiler_static
='-non_shared'
8763 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu | gnu
*)
8764 case $cc_basename in
8765 # old Intel for x86_64, which still supported -KPIC.
8767 lt_prog_compiler_wl
='-Wl,'
8768 lt_prog_compiler_pic
='-KPIC'
8769 lt_prog_compiler_static
='-static'
8771 # icc used to be incompatible with GCC.
8772 # ICC 10 doesn't accept -KPIC any more.
8774 lt_prog_compiler_wl
='-Wl,'
8775 lt_prog_compiler_pic
='-fPIC'
8776 lt_prog_compiler_static
='-static'
8778 # Lahey Fortran 8.1.
8780 lt_prog_compiler_wl
='-Wl,'
8781 lt_prog_compiler_pic
='--shared'
8782 lt_prog_compiler_static
='--static'
8785 # NAG Fortran compiler
8786 lt_prog_compiler_wl
='-Wl,-Wl,,'
8787 lt_prog_compiler_pic
='-PIC'
8788 lt_prog_compiler_static
='-Bstatic'
8791 # Fabrice Bellard et al's Tiny C Compiler
8792 lt_prog_compiler_wl
='-Wl,'
8793 lt_prog_compiler_pic
='-fPIC'
8794 lt_prog_compiler_static
='-static'
8796 pgcc
* | pgf77
* | pgf90
* | pgf95
* | pgfortran
*)
8797 # Portland Group compilers (*not* the Pentium gcc compiler,
8798 # which looks to be a dead project)
8799 lt_prog_compiler_wl
='-Wl,'
8800 lt_prog_compiler_pic
='-fpic'
8801 lt_prog_compiler_static
='-Bstatic'
8804 lt_prog_compiler_wl
='-Wl,'
8805 # All Alpha code is PIC.
8806 lt_prog_compiler_static
='-non_shared'
8808 xl
* | bgxl
* | bgf
* | mpixl
*)
8809 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8810 lt_prog_compiler_wl
='-Wl,'
8811 lt_prog_compiler_pic
='-qpic'
8812 lt_prog_compiler_static
='-qstaticlink'
8815 case `$CC -V 2>&1 | sed 5q` in
8816 *Sun\ Ceres\ Fortran
* |
*Sun
*Fortran
*\
[1-7].
* |
*Sun
*Fortran
*\
8.
[0-3]*)
8817 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8818 lt_prog_compiler_pic
='-KPIC'
8819 lt_prog_compiler_static
='-Bstatic'
8820 lt_prog_compiler_wl
=''
8822 *Sun\ F
* |
*Sun
*Fortran
*)
8823 lt_prog_compiler_pic
='-KPIC'
8824 lt_prog_compiler_static
='-Bstatic'
8825 lt_prog_compiler_wl
='-Qoption ld '
8829 lt_prog_compiler_pic
='-KPIC'
8830 lt_prog_compiler_static
='-Bstatic'
8831 lt_prog_compiler_wl
='-Wl,'
8833 *Intel
*\
[CF
]*Compiler
*)
8834 lt_prog_compiler_wl
='-Wl,'
8835 lt_prog_compiler_pic
='-fPIC'
8836 lt_prog_compiler_static
='-static'
8839 lt_prog_compiler_wl
='-Wl,'
8840 lt_prog_compiler_pic
='-fpic'
8841 lt_prog_compiler_static
='-Bstatic'
8849 lt_prog_compiler_pic
='-KPIC'
8850 lt_prog_compiler_static
='-Bstatic'
8854 # QNX uses GNU C++, but need to define -shared option too, otherwise
8856 lt_prog_compiler_pic
='-fPIC -shared'
8859 osf3
* | osf4
* | osf5
*)
8860 lt_prog_compiler_wl
='-Wl,'
8861 # All OSF/1 code is PIC.
8862 lt_prog_compiler_static
='-non_shared'
8866 lt_prog_compiler_static
='-non_shared'
8870 lt_prog_compiler_pic
='-KPIC'
8871 lt_prog_compiler_static
='-Bstatic'
8872 case $cc_basename in
8873 f77
* | f90
* | f95
* | sunf77
* | sunf90
* | sunf95
*)
8874 lt_prog_compiler_wl
='-Qoption ld ';;
8876 lt_prog_compiler_wl
='-Wl,';;
8881 lt_prog_compiler_wl
='-Qoption ld '
8882 lt_prog_compiler_pic
='-PIC'
8883 lt_prog_compiler_static
='-Bstatic'
8886 sysv4 | sysv4.2uw2
* | sysv4.3
*)
8887 lt_prog_compiler_wl
='-Wl,'
8888 lt_prog_compiler_pic
='-KPIC'
8889 lt_prog_compiler_static
='-Bstatic'
8893 if test -d /usr
/nec
; then
8894 lt_prog_compiler_pic
='-Kconform_pic'
8895 lt_prog_compiler_static
='-Bstatic'
8899 sysv5
* | unixware
* | sco3.2v5
* | sco5v6
* | OpenUNIX
*)
8900 lt_prog_compiler_wl
='-Wl,'
8901 lt_prog_compiler_pic
='-KPIC'
8902 lt_prog_compiler_static
='-Bstatic'
8906 lt_prog_compiler_wl
='-Wl,'
8907 lt_prog_compiler_can_build_shared
=no
8911 lt_prog_compiler_pic
='-pic'
8912 lt_prog_compiler_static
='-Bstatic'
8916 lt_prog_compiler_can_build_shared
=no
8922 # For platforms that do not support PIC, -DPIC is meaningless:
8924 lt_prog_compiler_pic
=
8927 lt_prog_compiler_pic
="$lt_prog_compiler_pic -DPIC"
8931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8932 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8933 if ${lt_cv_prog_compiler_pic+:} false
; then :
8934 $as_echo_n "(cached) " >&6
8936 lt_cv_prog_compiler_pic
=$lt_prog_compiler_pic
8938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8939 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
8940 lt_prog_compiler_pic
=$lt_cv_prog_compiler_pic
8943 # Check to make sure the PIC flag actually works.
8945 if test -n "$lt_prog_compiler_pic"; then
8946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8947 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8948 if ${lt_cv_prog_compiler_pic_works+:} false
; then :
8949 $as_echo_n "(cached) " >&6
8951 lt_cv_prog_compiler_pic_works
=no
8952 ac_outfile
=conftest.
$ac_objext
8953 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
8954 lt_compiler_flag
="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
8955 # Insert the option either (1) after the last *FLAGS variable, or
8956 # (2) before a word containing "conftest.", or (3) at the end.
8957 # Note that $ac_compile itself does not contain backslashes and begins
8958 # with a dollar sign (not a hyphen), so the echo should work correctly.
8959 # The option is referenced via a variable to avoid confusing sed.
8960 lt_compile
=`echo "$ac_compile" | $SED \
8961 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8962 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8963 -e 's:$: $lt_compiler_flag:'`
8964 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8965 (eval "$lt_compile" 2>conftest.err
)
8967 cat conftest.err
>&5
8968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8969 if (exit $ac_status) && test -s "$ac_outfile"; then
8970 # The compiler can only warn and ignore the option if not recognized
8971 # So say no if there are warnings other than the usual output.
8972 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' >conftest.exp
8973 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
8974 if test ! -s conftest.er2 ||
diff conftest.exp conftest.er2
>/dev
/null
; then
8975 lt_cv_prog_compiler_pic_works
=yes
8981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8982 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8984 if test yes = "$lt_cv_prog_compiler_pic_works"; then
8985 case $lt_prog_compiler_pic in
8987 *) lt_prog_compiler_pic
=" $lt_prog_compiler_pic" ;;
8990 lt_prog_compiler_pic
=
8991 lt_prog_compiler_can_build_shared
=no
9007 # Check to make sure the static flag actually works.
9009 wl
=$lt_prog_compiler_wl eval lt_tmp_static_flag
=\"$lt_prog_compiler_static\"
9010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9011 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9012 if ${lt_cv_prog_compiler_static_works+:} false
; then :
9013 $as_echo_n "(cached) " >&6
9015 lt_cv_prog_compiler_static_works
=no
9016 save_LDFLAGS
=$LDFLAGS
9017 LDFLAGS
="$LDFLAGS $lt_tmp_static_flag"
9018 echo "$lt_simple_link_test_code" > conftest.
$ac_ext
9019 if (eval $ac_link 2>conftest.err
) && test -s conftest
$ac_exeext; then
9020 # The linker can only warn and ignore the option if not recognized
9021 # So say no if there are warnings
9022 if test -s conftest.err
; then
9023 # Append any errors to the config.log.
9024 cat conftest.err
1>&5
9025 $ECHO "$_lt_linker_boilerplate" |
$SED '/^$/d' > conftest.exp
9026 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
9027 if diff conftest.exp conftest.er2
>/dev
/null
; then
9028 lt_cv_prog_compiler_static_works
=yes
9031 lt_cv_prog_compiler_static_works
=yes
9035 LDFLAGS
=$save_LDFLAGS
9038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9039 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9041 if test yes = "$lt_cv_prog_compiler_static_works"; then
9044 lt_prog_compiler_static
=
9053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9054 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9055 if ${lt_cv_prog_compiler_c_o+:} false
; then :
9056 $as_echo_n "(cached) " >&6
9058 lt_cv_prog_compiler_c_o
=no
9059 $RM -r conftest
2>/dev
/null
9063 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
9065 lt_compiler_flag
="-o out/conftest2.$ac_objext"
9066 # Insert the option either (1) after the last *FLAGS variable, or
9067 # (2) before a word containing "conftest.", or (3) at the end.
9068 # Note that $ac_compile itself does not contain backslashes and begins
9069 # with a dollar sign (not a hyphen), so the echo should work correctly.
9070 lt_compile
=`echo "$ac_compile" | $SED \
9071 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9072 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9073 -e 's:$: $lt_compiler_flag:'`
9074 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9075 (eval "$lt_compile" 2>out
/conftest.err
)
9077 cat out
/conftest.err
>&5
9078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9079 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
9081 # The compiler can only warn and ignore the option if not recognized
9082 # So say no if there are warnings
9083 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' > out
/conftest.exp
9084 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
9085 if test ! -s out
/conftest.er2 ||
diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
9086 lt_cv_prog_compiler_c_o
=yes
9091 # SGI C++ compiler will create directory out/ii_files/ for
9092 # template instantiation
9093 test -d out
/ii_files
&& $RM out
/ii_files
/* && rmdir out
/ii_files
9094 $RM out
/* && rmdir out
9100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9101 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9109 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9110 if ${lt_cv_prog_compiler_c_o+:} false
; then :
9111 $as_echo_n "(cached) " >&6
9113 lt_cv_prog_compiler_c_o
=no
9114 $RM -r conftest
2>/dev
/null
9118 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
9120 lt_compiler_flag
="-o out/conftest2.$ac_objext"
9121 # Insert the option either (1) after the last *FLAGS variable, or
9122 # (2) before a word containing "conftest.", or (3) at the end.
9123 # Note that $ac_compile itself does not contain backslashes and begins
9124 # with a dollar sign (not a hyphen), so the echo should work correctly.
9125 lt_compile
=`echo "$ac_compile" | $SED \
9126 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9127 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9128 -e 's:$: $lt_compiler_flag:'`
9129 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9130 (eval "$lt_compile" 2>out
/conftest.err
)
9132 cat out
/conftest.err
>&5
9133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9134 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
9136 # The compiler can only warn and ignore the option if not recognized
9137 # So say no if there are warnings
9138 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' > out
/conftest.exp
9139 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
9140 if test ! -s out
/conftest.er2 ||
diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
9141 lt_cv_prog_compiler_c_o
=yes
9146 # SGI C++ compiler will create directory out/ii_files/ for
9147 # template instantiation
9148 test -d out
/ii_files
&& $RM out
/ii_files
/* && rmdir out
/ii_files
9149 $RM out
/* && rmdir out
9155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9156 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9161 hard_links
=nottested
9162 if test no
= "$lt_cv_prog_compiler_c_o" && test no
!= "$need_locks"; then
9163 # do not overwrite the value of need_locks provided by the user
9164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9165 $as_echo_n "checking if we can lock with hard links... " >&6; }
9168 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
9170 ln conftest.a conftest.b
2>&5 || hard_links
=no
9171 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
9172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9173 $as_echo "$hard_links" >&6; }
9174 if test no
= "$hard_links"; then
9175 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
9176 $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
9188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9189 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9192 allow_undefined_flag
=
9193 always_export_symbols
=no
9195 archive_expsym_cmds
=
9196 compiler_needs_object
=no
9197 enable_shared_with_static_runtimes
=no
9198 export_dynamic_flag_spec
=
9199 export_symbols_cmds
='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9200 hardcode_automatic
=no
9202 hardcode_direct_absolute
=no
9203 hardcode_libdir_flag_spec
=
9204 hardcode_libdir_separator
=
9206 hardcode_shlibpath_var
=unsupported
9208 link_all_deplibs
=unknown
9211 old_archive_from_new_cmds
=
9212 old_archive_from_expsyms_cmds
=
9213 thread_safe_flag_spec
=
9214 whole_archive_flag_spec
=
9215 # include_expsyms should be a list of space-separated symbols to be *always*
9216 # included in the symbol list
9218 # exclude_expsyms can be an extended regexp of symbols to exclude
9219 # it will be wrapped by ' (' and ')$', so one must not match beginning or
9220 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
9221 # as well as any symbol that contains 'd'.
9222 exclude_expsyms
='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9223 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9224 # platforms (ab)use it in PIC code, but their linkers get confused if
9225 # the symbol is explicitly referenced. Since portable code cannot
9226 # rely on this symbol name, it's probably fine to never include it in
9227 # preloaded symbol tables.
9228 # Exclude shared library initialization/finalization symbols.
9229 extract_expsyms_cmds
=
9232 cygwin
* | mingw
* | pw32
* | cegcc
*)
9233 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9234 # When not using gcc, we currently assume that we are using
9235 # Microsoft Visual C++.
9236 if test yes != "$GCC"; then
9241 # we just hope/assume this is gcc and not c89 (= MSVC++)
9247 linux
* | k
*bsd
*-gnu | gnu
*)
9254 # On some targets, GNU ld is compatible enough with the native linker
9255 # that we're better off using the native interface for both.
9256 lt_use_gnu_ld_interface
=no
9257 if test yes = "$with_gnu_ld"; then
9260 # The AIX port of GNU ld has always aspired to compatibility
9261 # with the native linker. However, as the warning in the GNU ld
9262 # block says, versions before 2.19.5* couldn't really create working
9263 # shared libraries, regardless of the interface used.
9264 case `$LD -v 2>&1` in
9265 *\ \
(GNU\ Binutils\
)\
2.19.5*) ;;
9266 *\ \
(GNU\ Binutils\
)\
2.
[2-9]*) ;;
9267 *\ \
(GNU\ Binutils\
)\
[3-9]*) ;;
9269 lt_use_gnu_ld_interface
=yes
9274 lt_use_gnu_ld_interface
=yes
9279 if test yes = "$lt_use_gnu_ld_interface"; then
9280 # If archive_cmds runs LD, not CC, wlarc should be empty
9283 # Set some defaults for GNU ld with shared library support. These
9284 # are reset later if shared libraries are not supported. Putting them
9285 # here allows them to be overridden if necessary.
9286 runpath_var
=LD_RUN_PATH
9287 hardcode_libdir_flag_spec
='$wl-rpath $wl$libdir'
9288 export_dynamic_flag_spec
='$wl--export-dynamic'
9289 # ancient GNU ld didn't support --whole-archive et. al.
9290 if $LD --help 2>&1 |
$GREP 'no-whole-archive' > /dev
/null
; then
9291 whole_archive_flag_spec
=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
9293 whole_archive_flag_spec
=
9295 supports_anon_versioning
=no
9296 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
9297 *GNU\ gold
*) supports_anon_versioning
=yes ;;
9298 *\
[01].
* |
*\
2.
[0-9].
* |
*\
2.10.
*) ;; # catch versions < 2.11
9299 *\
2.11.93.0.2\
*) supports_anon_versioning
=yes ;; # RH7.3 ...
9300 *\
2.11.92.0.12\
*) supports_anon_versioning
=yes ;; # Mandrake 8.2 ...
9301 *\
2.11.
*) ;; # other 2.11 versions
9302 *) supports_anon_versioning
=yes ;;
9305 # See if GNU ld supports shared libraries.
9308 # On AIX/PPC, the GNU linker is very broken
9309 if test ia64
!= "$host_cpu"; then
9313 *** Warning: the GNU linker, at least up to release 2.19, is reported
9314 *** to be unable to reliably create shared libraries on AIX.
9315 *** Therefore, libtool is disabling shared libraries support. If you
9316 *** really care for shared libraries, you may want to install binutils
9317 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9318 *** You will then need to restart the configuration process.
9327 # see comment about AmigaOS4 .so support
9328 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9329 archive_expsym_cmds
=''
9332 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)'
9333 hardcode_libdir_flag_spec
='-L$libdir'
9334 hardcode_minus_L
=yes
9340 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
9341 allow_undefined_flag
=unsupported
9342 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9343 # support --undefined. This deserves some investigation. FIXME
9344 archive_cmds
='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9350 cygwin
* | mingw
* | pw32
* | cegcc
*)
9351 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9352 # as there is no search path for DLLs.
9353 hardcode_libdir_flag_spec
='-L$libdir'
9354 export_dynamic_flag_spec
='$wl--export-all-symbols'
9355 allow_undefined_flag
=unsupported
9356 always_export_symbols
=no
9357 enable_shared_with_static_runtimes
=yes
9358 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'
9359 exclude_expsyms
='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9361 if $LD --help 2>&1 |
$GREP 'auto-import' > /dev
/null
; then
9362 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9363 # If the export-symbols file already is a .def file, use it as
9364 # is; otherwise, prepend EXPORTS...
9365 archive_expsym_cmds
='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
9366 cp $export_symbols $output_objdir/$soname.def;
9368 echo EXPORTS > $output_objdir/$soname.def;
9369 cat $export_symbols >> $output_objdir/$soname.def;
9371 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9378 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9379 link_all_deplibs
=yes
9383 hardcode_libdir_flag_spec
='-L$libdir'
9384 hardcode_minus_L
=yes
9385 allow_undefined_flag
=unsupported
9387 archive_cmds
='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9388 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9389 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9390 $ECHO EXPORTS >> $output_objdir/$libname.def~
9391 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
9392 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9393 emximp -o $lib $output_objdir/$libname.def'
9394 archive_expsym_cmds
='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9395 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9396 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9397 $ECHO EXPORTS >> $output_objdir/$libname.def~
9399 if test EXPORTS = "`$SED 1q $export_symbols`"; then
9400 prefix_cmds="$prefix_cmds -e 1d";
9402 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
9403 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
9404 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9405 emximp -o $lib $output_objdir/$libname.def'
9406 old_archive_From_new_cmds
='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
9407 enable_shared_with_static_runtimes
=yes
9412 hardcode_shlibpath_var
=no
9413 hardcode_libdir_flag_spec
='$wl-rpath,$libdir'
9414 export_dynamic_flag_spec
='$wl-E'
9415 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9416 # Instead, shared libraries are loaded at an image base (0x10000000 by
9417 # default) and relocated if they conflict, which is a slow very memory
9418 # consuming and fragmenting process. To avoid this, we pick a random,
9419 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9420 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9421 archive_cmds
='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9422 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'
9425 gnu
* | linux
* | tpf
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
9427 if test linux-dietlibc
= "$host_os"; then
9428 case $cc_basename in
9429 diet\
*) tmp_diet
=yes;; # linux-dietlibc with static linking (!diet-dyn)
9432 if $LD --help 2>&1 |
$EGREP ': supported targets:.* elf' > /dev
/null \
9433 && test no
= "$tmp_diet"
9435 tmp_addflag
=' $pic_flag'
9436 tmp_sharedflag
='-shared'
9437 case $cc_basename,$host_cpu in
9438 pgcc
*) # Portland Group C compiler
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'
9442 pgf77
* | pgf90
* | pgf95
* | pgfortran
*)
9443 # Portland Group f77 and f90 compilers
9444 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'
9445 tmp_addflag
=' $pic_flag -Mnomain' ;;
9446 ecc
*,ia64
* | icc
*,ia64
*) # Intel C compiler on ia64
9447 tmp_addflag
=' -i_dynamic' ;;
9448 efc
*,ia64
* | ifort
*,ia64
*) # Intel Fortran compiler on ia64
9449 tmp_addflag
=' -i_dynamic -nofor_main' ;;
9450 ifc
* | ifort
*) # Intel Fortran compiler
9451 tmp_addflag
=' -nofor_main' ;;
9452 lf95
*) # Lahey Fortran 8.1
9453 whole_archive_flag_spec
=
9454 tmp_sharedflag
='--shared' ;;
9455 nagfor
*) # NAGFOR 5.3
9456 tmp_sharedflag
='-Wl,-shared' ;;
9457 xl
[cC
]* | bgxl
[cC
]* | mpixl
[cC
]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9458 tmp_sharedflag
='-qmkshrobj'
9460 nvcc
*) # Cuda Compiler Driver 2.2
9461 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'
9462 compiler_needs_object
=yes
9465 case `$CC -V 2>&1 | sed 5q` in
9466 *Sun\ C
*) # Sun C 5.9
9467 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'
9468 compiler_needs_object
=yes
9469 tmp_sharedflag
='-G' ;;
9470 *Sun\ F
*) # Sun Fortran 8.3
9471 tmp_sharedflag
='-G' ;;
9473 archive_cmds
='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9475 if test yes = "$supports_anon_versioning"; then
9476 archive_expsym_cmds
='echo "{ global:" > $output_objdir/$libname.ver~
9477 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9478 echo "local: *; };" >> $output_objdir/$libname.ver~
9479 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
9482 case $cc_basename in
9484 export_dynamic_flag_spec
='-rdynamic'
9486 xlf
* | bgf
* | bgxlf
* | mpixlf
*)
9487 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9488 whole_archive_flag_spec
='--whole-archive$convenience --no-whole-archive'
9489 hardcode_libdir_flag_spec
='$wl-rpath $wl$libdir'
9490 archive_cmds
='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9491 if test yes = "$supports_anon_versioning"; then
9492 archive_expsym_cmds
='echo "{ global:" > $output_objdir/$libname.ver~
9493 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9494 echo "local: *; };" >> $output_objdir/$libname.ver~
9495 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9504 netbsd
* | netbsdelf
*-gnu)
9505 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
9506 archive_cmds
='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9509 archive_cmds
='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9510 archive_expsym_cmds
='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9515 if $LD -v 2>&1 |
$GREP 'BFD 2\.8' > /dev
/null
; then
9519 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9520 *** create shared libraries on Solaris systems. Therefore, libtool
9521 *** is disabling shared libraries support. We urge you to upgrade GNU
9522 *** binutils to release 2.9.1 or newer. Another option is to modify
9523 *** your PATH or compiler configuration so that the native linker is
9524 *** used, and then restart.
9527 elif $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
9528 archive_cmds
='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9529 archive_expsym_cmds
='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9535 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
*)
9536 case `$LD -v 2>&1` in
9537 *\
[01].
* |
*\
2.
[0-9].
* |
*\
2.1[0-5].
*)
9541 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
9542 *** reliably create shared libraries on SCO systems. Therefore, libtool
9543 *** is disabling shared libraries support. We urge you to upgrade GNU
9544 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9545 *** your PATH or compiler configuration so that the native linker is
9546 *** used, and then restart.
9551 # For security reasons, it is highly recommended that you always
9552 # use absolute paths for naming shared libraries, and exclude the
9553 # DT_RUNPATH tag from executables and libraries. But doing so
9554 # requires that you compile everything twice, which is a pain.
9555 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
9556 hardcode_libdir_flag_spec
='$wl-rpath $wl$libdir'
9557 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9558 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9567 archive_cmds
='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9570 hardcode_shlibpath_var
=no
9574 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
9575 archive_cmds
='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9576 archive_expsym_cmds
='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9583 if test no
= "$ld_shlibs"; then
9585 hardcode_libdir_flag_spec
=
9586 export_dynamic_flag_spec
=
9587 whole_archive_flag_spec
=
9590 # PORTME fill in a description of your system's linker (not GNU ld)
9593 allow_undefined_flag
=unsupported
9594 always_export_symbols
=yes
9595 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'
9596 # Note: this linker hardcodes the directories in LIBPATH if there
9597 # are no directories specified by -L.
9598 hardcode_minus_L
=yes
9599 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
9600 # Neither direct hardcoding nor static linking is supported with a
9602 hardcode_direct
=unsupported
9607 if test ia64
= "$host_cpu"; then
9608 # On IA64, the linker does run time linking by default, so we don't
9609 # have to do anything special.
9610 aix_use_runtimelinking
=no
9611 exp_sym_flag
='-Bexport'
9614 # If we're using GNU nm, then we don't want the "-C" option.
9615 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
9616 # Without the "-l" option, or with the "-B" option, AIX nm treats
9617 # weak defined symbols like other global defined symbols, whereas
9618 # GNU nm marks them as "W".
9619 # While the 'weak' keyword is ignored in the Export File, we need
9620 # it in the Import File for the 'aix-soname' feature, so we have
9621 # to replace the "-B" option with "-P" for AIX nm.
9622 if $NM -V 2>&1 |
$GREP 'GNU' > /dev
/null
; then
9623 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'
9625 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'
9627 aix_use_runtimelinking
=no
9629 # Test if we are trying to use run time linking or normal
9630 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9631 # have runtime linking enabled, and use it for executables.
9632 # For shared libraries, we enable/disable runtime linking
9633 # depending on the kind of the shared library created -
9634 # when "with_aix_soname,aix_use_runtimelinking" is:
9635 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
9636 # "aix,yes" lib.so shared, rtl:yes, for executables
9637 # lib.a static archive
9638 # "both,no" lib.so.V(shr.o) shared, rtl:yes
9639 # lib.a(lib.so.V) shared, rtl:no, for executables
9640 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
9641 # lib.a(lib.so.V) shared, rtl:no
9642 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
9643 # lib.a static archive
9644 case $host_os in aix4.
[23]|aix4.
[23].
*|aix
[5-9]*)
9645 for ld_flag
in $LDFLAGS; do
9646 if (test x-brtl
= "x$ld_flag" ||
test x-Wl
,-brtl = "x$ld_flag"); then
9647 aix_use_runtimelinking
=yes
9651 if test svr4
,no
= "$with_aix_soname,$aix_use_runtimelinking"; then
9652 # With aix-soname=svr4, we create the lib.so.V shared archives only,
9653 # so we don't have lib.a shared libs to link our executables.
9654 # We have to force runtime linking in this case.
9655 aix_use_runtimelinking
=yes
9656 LDFLAGS
="$LDFLAGS -Wl,-brtl"
9661 exp_sym_flag
='-bexport'
9662 no_entry_flag
='-bnoentry'
9665 # When large executables or shared objects are built, AIX ld can
9666 # have problems creating the table of contents. If linking a library
9667 # or program results in "error TOC overflow" add -mminimal-toc to
9668 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9669 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9673 hardcode_direct_absolute
=yes
9674 hardcode_libdir_separator
=':'
9675 link_all_deplibs
=yes
9676 file_list_spec
='$wl-f,'
9677 case $with_aix_soname,$aix_use_runtimelinking in
9678 aix
,*) ;; # traditional, no import file
9679 svr4
,* |
*,yes) # use import file
9680 # The Import File defines what to hardcode.
9682 hardcode_direct_absolute
=no
9686 if test yes = "$GCC"; then
9687 case $host_os in aix4.
[012]|aix4.
[012].
*)
9688 # We only want to do this on AIX 4.2 and lower, the check
9689 # below for broken collect2 doesn't work under 4.3+
9690 collect2name
=`$CC -print-prog-name=collect2`
9691 if test -f "$collect2name" &&
9692 strings "$collect2name" |
$GREP resolve_lib_name
>/dev
/null
9694 # We have reworked collect2
9697 # We have old collect2
9698 hardcode_direct
=unsupported
9699 # It fails to find uninstalled libraries when the uninstalled
9700 # path is not listed in the libpath. Setting hardcode_minus_L
9701 # to unsupported forces relinking
9702 hardcode_minus_L
=yes
9703 hardcode_libdir_flag_spec
='-L$libdir'
9704 hardcode_libdir_separator
=
9708 shared_flag
='-shared'
9709 if test yes = "$aix_use_runtimelinking"; then
9710 shared_flag
="$shared_flag "'$wl-G'
9712 # Need to ensure runtime linking is disabled for the traditional
9713 # shared library, or the linker may eventually find shared libraries
9714 # /with/ Import File - we do not want to mix them.
9715 shared_flag_aix
='-shared'
9716 shared_flag_svr4
='-shared $wl-G'
9719 if test ia64
= "$host_cpu"; then
9720 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9721 # chokes on -Wl,-G. The following line is correct:
9724 if test yes = "$aix_use_runtimelinking"; then
9727 shared_flag
='$wl-bM:SRE'
9729 shared_flag_aix
='$wl-bM:SRE'
9730 shared_flag_svr4
='$wl-G'
9734 export_dynamic_flag_spec
='$wl-bexpall'
9735 # It seems that -bexpall does not export symbols beginning with
9736 # underscore (_), so it is better to generate a list of symbols to export.
9737 always_export_symbols
=yes
9738 if test aix
,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
9739 # Warning - without using the other runtime loading flags (-brtl),
9740 # -berok will link without error, but may produce a broken library.
9741 allow_undefined_flag
='-berok'
9742 # Determine the default libpath from the value encoded in an
9744 if test set = "${lt_cv_aix_libpath+set}"; then
9745 aix_libpath
=$lt_cv_aix_libpath
9747 if ${lt_cv_aix_libpath_+:} false
; then :
9748 $as_echo_n "(cached) " >&6
9750 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9751 /* end confdefs.h. */
9761 if ac_fn_c_try_link
"$LINENO"; then :
9763 lt_aix_libpath_sed
='
9764 /Import File Strings/,/^$/ {
9766 s/^0 *\([^ ]*\) *$/\1/
9770 lt_cv_aix_libpath_
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9771 # Check for a 64-bit object if we didn't find anything.
9772 if test -z "$lt_cv_aix_libpath_"; then
9773 lt_cv_aix_libpath_
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9776 rm -f core conftest.err conftest.
$ac_objext \
9777 conftest
$ac_exeext conftest.
$ac_ext
9778 if test -z "$lt_cv_aix_libpath_"; then
9779 lt_cv_aix_libpath_
=/usr
/lib
:/lib
9784 aix_libpath
=$lt_cv_aix_libpath_
9787 hardcode_libdir_flag_spec
='$wl-blibpath:$libdir:'"$aix_libpath"
9788 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
9790 if test ia64
= "$host_cpu"; then
9791 hardcode_libdir_flag_spec
='$wl-R $libdir:/usr/lib:/lib'
9792 allow_undefined_flag
="-z nodefs"
9793 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"
9795 # Determine the default libpath from the value encoded in an
9797 if test set = "${lt_cv_aix_libpath+set}"; then
9798 aix_libpath
=$lt_cv_aix_libpath
9800 if ${lt_cv_aix_libpath_+:} false
; then :
9801 $as_echo_n "(cached) " >&6
9803 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9804 /* end confdefs.h. */
9814 if ac_fn_c_try_link
"$LINENO"; then :
9816 lt_aix_libpath_sed
='
9817 /Import File Strings/,/^$/ {
9819 s/^0 *\([^ ]*\) *$/\1/
9823 lt_cv_aix_libpath_
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9824 # Check for a 64-bit object if we didn't find anything.
9825 if test -z "$lt_cv_aix_libpath_"; then
9826 lt_cv_aix_libpath_
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9829 rm -f core conftest.err conftest.
$ac_objext \
9830 conftest
$ac_exeext conftest.
$ac_ext
9831 if test -z "$lt_cv_aix_libpath_"; then
9832 lt_cv_aix_libpath_
=/usr
/lib
:/lib
9837 aix_libpath
=$lt_cv_aix_libpath_
9840 hardcode_libdir_flag_spec
='$wl-blibpath:$libdir:'"$aix_libpath"
9841 # Warning - without using the other run time loading flags,
9842 # -berok will link without error, but may produce a broken library.
9843 no_undefined_flag
=' $wl-bernotok'
9844 allow_undefined_flag
=' $wl-berok'
9845 if test yes = "$with_gnu_ld"; then
9846 # We only use this code for GNU lds that support --whole-archive.
9847 whole_archive_flag_spec
='$wl--whole-archive$convenience $wl--no-whole-archive'
9849 # Exported symbols can be pulled into shared objects from archives
9850 whole_archive_flag_spec
='$convenience'
9852 archive_cmds_need_lc
=yes
9853 archive_expsym_cmds
='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
9854 # -brtl affects multiple linker settings, -berok does not and is overridden later
9855 compiler_flags_filtered
='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
9856 if test svr4
!= "$with_aix_soname"; then
9857 # This is similar to how AIX traditionally builds its shared libraries.
9858 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'
9860 if test aix
!= "$with_aix_soname"; then
9861 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'
9863 # used by -dlpreopen to get the symbols
9864 archive_expsym_cmds
="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
9866 archive_expsym_cmds
="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
9874 # see comment about AmigaOS4 .so support
9875 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9876 archive_expsym_cmds
=''
9879 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)'
9880 hardcode_libdir_flag_spec
='-L$libdir'
9881 hardcode_minus_L
=yes
9887 export_dynamic_flag_spec
=-rdynamic
9890 cygwin
* | mingw
* | pw32
* | cegcc
*)
9891 # When not using gcc, we currently assume that we are using
9892 # Microsoft Visual C++.
9893 # hardcode_libdir_flag_spec is actually meaningless, as there is
9894 # no search path for DLLs.
9895 case $cc_basename in
9898 hardcode_libdir_flag_spec
=' '
9899 allow_undefined_flag
=unsupported
9900 always_export_symbols
=yes
9902 # Tell ltmain to make .lib files, not .a files.
9904 # Tell ltmain to make .dll files, not .so files.
9906 # FIXME: Setting linknames here is a bad hack.
9907 archive_cmds
='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
9908 archive_expsym_cmds
='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
9909 cp "$export_symbols" "$output_objdir/$soname.def";
9910 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
9912 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
9914 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9916 # The linker will not automatically build a static lib if we build a DLL.
9917 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9918 enable_shared_with_static_runtimes
=yes
9919 exclude_expsyms
='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9920 export_symbols_cmds
='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9922 old_postinstall_cmds
='chmod 644 $oldlib'
9923 postlink_cmds
='lt_outputfile="@OUTPUT@"~
9924 lt_tool_outputfile="@TOOL_OUTPUT@"~
9925 case $lt_outputfile in
9928 lt_outputfile=$lt_outputfile.exe
9929 lt_tool_outputfile=$lt_tool_outputfile.exe
9932 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
9933 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9934 $RM "$lt_outputfile.manifest";
9938 # Assume MSVC wrapper
9939 hardcode_libdir_flag_spec
=' '
9940 allow_undefined_flag
=unsupported
9941 # Tell ltmain to make .lib files, not .a files.
9943 # Tell ltmain to make .dll files, not .so files.
9945 # FIXME: Setting linknames here is a bad hack.
9946 archive_cmds
='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9947 # The linker will automatically build a .lib file if we build a DLL.
9948 old_archive_from_new_cmds
='true'
9949 # FIXME: Should let the user specify the lib program.
9950 old_archive_cmds
='lib -OUT:$oldlib$oldobjs$old_deplibs'
9951 enable_shared_with_static_runtimes
=yes
9956 darwin
* | rhapsody
*)
9959 archive_cmds_need_lc
=no
9961 hardcode_automatic
=yes
9962 hardcode_shlibpath_var
=unsupported
9963 if test yes = "$lt_cv_ld_force_load"; then
9964 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\"`'
9967 whole_archive_flag_spec
=''
9969 link_all_deplibs
=yes
9970 allow_undefined_flag
=$_lt_dar_allow_undefined
9971 case $cc_basename in
9972 ifort
*|nagfor
*) _lt_dar_can_shared
=yes ;;
9973 *) _lt_dar_can_shared
=$GCC ;;
9975 if test yes = "$_lt_dar_can_shared"; then
9976 output_verbose_link_cmd
=func_echo_all
9977 archive_cmds
="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
9978 module_cmds
="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
9979 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"
9980 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"
9989 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9990 hardcode_libdir_flag_spec
='-L$libdir'
9991 hardcode_shlibpath_var
=no
9994 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9995 # support. Future versions do this automatically, but an explicit c++rt0.o
9996 # does not break anything, and helps significantly (at the cost of a little
9999 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10000 hardcode_libdir_flag_spec
='-R$libdir'
10001 hardcode_direct
=yes
10002 hardcode_shlibpath_var
=no
10005 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10007 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10008 hardcode_direct
=yes
10009 hardcode_minus_L
=yes
10010 hardcode_shlibpath_var
=no
10013 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10014 freebsd
* | dragonfly
*)
10015 archive_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10016 hardcode_libdir_flag_spec
='-R$libdir'
10017 hardcode_direct
=yes
10018 hardcode_shlibpath_var
=no
10022 if test yes = "$GCC"; then
10023 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'
10025 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'
10027 hardcode_libdir_flag_spec
='$wl+b $wl$libdir'
10028 hardcode_libdir_separator
=:
10029 hardcode_direct
=yes
10031 # hardcode_minus_L: Not really in the search PATH,
10032 # but as the default location of the library.
10033 hardcode_minus_L
=yes
10034 export_dynamic_flag_spec
='$wl-E'
10038 if test yes,no
= "$GCC,$with_gnu_ld"; then
10039 archive_cmds
='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10041 archive_cmds
='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10043 if test no
= "$with_gnu_ld"; then
10044 hardcode_libdir_flag_spec
='$wl+b $wl$libdir'
10045 hardcode_libdir_separator
=:
10046 hardcode_direct
=yes
10047 hardcode_direct_absolute
=yes
10048 export_dynamic_flag_spec
='$wl-E'
10049 # hardcode_minus_L: Not really in the search PATH,
10050 # but as the default location of the library.
10051 hardcode_minus_L
=yes
10056 if test yes,no
= "$GCC,$with_gnu_ld"; then
10059 archive_cmds
='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10062 archive_cmds
='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10065 archive_cmds
='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10071 archive_cmds
='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10074 archive_cmds
='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10078 # Older versions of the 11.00 compiler do not understand -b yet
10079 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10081 $as_echo_n "checking if $CC understands -b... " >&6; }
10082 if ${lt_cv_prog_compiler__b+:} false
; then :
10083 $as_echo_n "(cached) " >&6
10085 lt_cv_prog_compiler__b
=no
10086 save_LDFLAGS
=$LDFLAGS
10087 LDFLAGS
="$LDFLAGS -b"
10088 echo "$lt_simple_link_test_code" > conftest.
$ac_ext
10089 if (eval $ac_link 2>conftest.err
) && test -s conftest
$ac_exeext; then
10090 # The linker can only warn and ignore the option if not recognized
10091 # So say no if there are warnings
10092 if test -s conftest.err
; then
10093 # Append any errors to the config.log.
10094 cat conftest.err
1>&5
10095 $ECHO "$_lt_linker_boilerplate" |
$SED '/^$/d' > conftest.exp
10096 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
10097 if diff conftest.exp conftest.er2
>/dev
/null
; then
10098 lt_cv_prog_compiler__b
=yes
10101 lt_cv_prog_compiler__b
=yes
10105 LDFLAGS
=$save_LDFLAGS
10108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10109 $as_echo "$lt_cv_prog_compiler__b" >&6; }
10111 if test yes = "$lt_cv_prog_compiler__b"; then
10112 archive_cmds
='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10114 archive_cmds
='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10120 if test no
= "$with_gnu_ld"; then
10121 hardcode_libdir_flag_spec
='$wl+b $wl$libdir'
10122 hardcode_libdir_separator
=:
10127 hardcode_shlibpath_var
=no
10130 hardcode_direct
=yes
10131 hardcode_direct_absolute
=yes
10132 export_dynamic_flag_spec
='$wl-E'
10134 # hardcode_minus_L: Not really in the search PATH,
10135 # but as the default location of the library.
10136 hardcode_minus_L
=yes
10142 irix5
* | irix6
* | nonstopux
*)
10143 if test yes = "$GCC"; then
10144 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'
10145 # Try to use the -exported_symbol ld option, if it does not
10146 # work, assume that -exports_file does not work either and
10147 # implicitly export all symbols.
10148 # This should be the same for all languages, so no per-tag cache variable.
10149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10150 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10151 if ${lt_cv_irix_exported_symbol+:} false
; then :
10152 $as_echo_n "(cached) " >&6
10154 save_LDFLAGS
=$LDFLAGS
10155 LDFLAGS
="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
10156 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10157 /* end confdefs.h. */
10158 int foo (void) { return 0; }
10160 if ac_fn_c_try_link
"$LINENO"; then :
10161 lt_cv_irix_exported_symbol
=yes
10163 lt_cv_irix_exported_symbol
=no
10165 rm -f core conftest.err conftest.
$ac_objext \
10166 conftest
$ac_exeext conftest.
$ac_ext
10167 LDFLAGS
=$save_LDFLAGS
10169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10170 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
10171 if test yes = "$lt_cv_irix_exported_symbol"; then
10172 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'
10174 link_all_deplibs
=no
10176 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'
10177 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'
10179 archive_cmds_need_lc
='no'
10180 hardcode_libdir_flag_spec
='$wl-rpath $wl$libdir'
10181 hardcode_libdir_separator
=:
10183 link_all_deplibs
=yes
10187 case $cc_basename in
10189 # Fabrice Bellard et al's Tiny C Compiler
10191 archive_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10196 netbsd
* | netbsdelf
*-gnu)
10197 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
10198 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10200 archive_cmds
='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10202 hardcode_libdir_flag_spec
='-R$libdir'
10203 hardcode_direct
=yes
10204 hardcode_shlibpath_var
=no
10208 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10209 hardcode_direct
=yes
10210 hardcode_libdir_flag_spec
='$wl-rpath $wl$libdir'
10211 hardcode_libdir_separator
=:
10212 hardcode_shlibpath_var
=no
10218 openbsd
* | bitrig
*)
10219 if test -f /usr
/libexec
/ld.so
; then
10220 hardcode_direct
=yes
10221 hardcode_shlibpath_var
=no
10222 hardcode_direct_absolute
=yes
10223 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
10224 archive_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10225 archive_expsym_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
10226 hardcode_libdir_flag_spec
='$wl-rpath,$libdir'
10227 export_dynamic_flag_spec
='$wl-E'
10229 archive_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10230 hardcode_libdir_flag_spec
='$wl-rpath,$libdir'
10238 hardcode_libdir_flag_spec
='-L$libdir'
10239 hardcode_minus_L
=yes
10240 allow_undefined_flag
=unsupported
10242 archive_cmds
='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10243 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10244 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10245 $ECHO EXPORTS >> $output_objdir/$libname.def~
10246 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
10247 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10248 emximp -o $lib $output_objdir/$libname.def'
10249 archive_expsym_cmds
='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10250 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10251 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10252 $ECHO EXPORTS >> $output_objdir/$libname.def~
10253 prefix_cmds="$SED"~
10254 if test EXPORTS = "`$SED 1q $export_symbols`"; then
10255 prefix_cmds="$prefix_cmds -e 1d";
10257 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10258 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
10259 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10260 emximp -o $lib $output_objdir/$libname.def'
10261 old_archive_From_new_cmds
='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10262 enable_shared_with_static_runtimes
=yes
10266 if test yes = "$GCC"; then
10267 allow_undefined_flag
=' $wl-expect_unresolved $wl\*'
10268 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'
10270 allow_undefined_flag
=' -expect_unresolved \*'
10271 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'
10273 archive_cmds_need_lc
='no'
10274 hardcode_libdir_flag_spec
='$wl-rpath $wl$libdir'
10275 hardcode_libdir_separator
=:
10278 osf4
* | osf5
*) # as osf3* with the addition of -msym flag
10279 if test yes = "$GCC"; then
10280 allow_undefined_flag
=' $wl-expect_unresolved $wl\*'
10281 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'
10282 hardcode_libdir_flag_spec
='$wl-rpath $wl$libdir'
10284 allow_undefined_flag
=' -expect_unresolved \*'
10285 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'
10286 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~
10287 $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'
10289 # Both c and cxx compiler support -rpath directly
10290 hardcode_libdir_flag_spec
='-rpath $libdir'
10292 archive_cmds_need_lc
='no'
10293 hardcode_libdir_separator
=:
10297 no_undefined_flag
=' -z defs'
10298 if test yes = "$GCC"; then
10300 archive_cmds
='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10301 archive_expsym_cmds
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10302 $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'
10304 case `$CC -V 2>&1` in
10307 archive_cmds
='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
10308 archive_expsym_cmds
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10309 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10313 archive_cmds
='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10314 archive_expsym_cmds
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10315 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10319 hardcode_libdir_flag_spec
='-R$libdir'
10320 hardcode_shlibpath_var
=no
10322 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
10324 # The compiler driver will combine and reorder linker options,
10325 # but understands '-z linker_flag'. GCC discards it without '$wl',
10326 # but is careful enough not to reorder.
10327 # Supported since Solaris 2.6 (maybe 2.5.1?)
10328 if test yes = "$GCC"; then
10329 whole_archive_flag_spec
='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
10331 whole_archive_flag_spec
='-z allextract$convenience -z defaultextract'
10335 link_all_deplibs
=yes
10339 if test sequent
= "$host_vendor"; then
10340 # Use $CC to link under sequent, because it throws in some extra .o
10341 # files that make .init and .fini sections work.
10342 archive_cmds
='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10344 archive_cmds
='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10346 hardcode_libdir_flag_spec
='-L$libdir'
10347 hardcode_direct
=yes
10348 hardcode_minus_L
=yes
10349 hardcode_shlibpath_var
=no
10353 case $host_vendor in
10355 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10356 hardcode_direct
=yes # is this really true???
10359 ## LD is ld it makes a PLAMLIB
10360 ## CC just makes a GrossModule.
10361 archive_cmds
='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10362 reload_cmds
='$CC -r -o $output$reload_objs'
10366 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10367 hardcode_direct
=no
#Motorola manual says yes, but my tests say they lie
10370 runpath_var
='LD_RUN_PATH'
10371 hardcode_shlibpath_var
=no
10375 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10376 hardcode_shlibpath_var
=no
10377 export_dynamic_flag_spec
='-Bexport'
10381 if test -d /usr
/nec
; then
10382 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10383 hardcode_shlibpath_var
=no
10384 runpath_var
=LD_RUN_PATH
10385 hardcode_runpath_var
=yes
10390 sysv4
*uw2
* | sysv5OpenUNIX
* | sysv5UnixWare7.
[01].
[10]* | unixware7
* | sco3.2v5.0.
[024]*)
10391 no_undefined_flag
='$wl-z,text'
10392 archive_cmds_need_lc
=no
10393 hardcode_shlibpath_var
=no
10394 runpath_var
='LD_RUN_PATH'
10396 if test yes = "$GCC"; then
10397 archive_cmds
='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10398 archive_expsym_cmds
='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10400 archive_cmds
='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10401 archive_expsym_cmds
='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10405 sysv5
* | sco3.2v5
* | sco5v6
*)
10406 # Note: We CANNOT use -z defs as we might desire, because we do not
10407 # link with -lc, and that would cause any symbols used from libc to
10408 # always be unresolved, which means just about no library would
10409 # ever link correctly. If we're not using GNU ld we use -z text
10410 # though, which does catch some bad symbols but isn't as heavy-handed
10412 no_undefined_flag
='$wl-z,text'
10413 allow_undefined_flag
='$wl-z,nodefs'
10414 archive_cmds_need_lc
=no
10415 hardcode_shlibpath_var
=no
10416 hardcode_libdir_flag_spec
='$wl-R,$libdir'
10417 hardcode_libdir_separator
=':'
10418 link_all_deplibs
=yes
10419 export_dynamic_flag_spec
='$wl-Bexport'
10420 runpath_var
='LD_RUN_PATH'
10422 if test yes = "$GCC"; then
10423 archive_cmds
='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10424 archive_expsym_cmds
='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10426 archive_cmds
='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10427 archive_expsym_cmds
='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10432 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10433 hardcode_libdir_flag_spec
='-L$libdir'
10434 hardcode_shlibpath_var
=no
10442 if test sni
= "$host_vendor"; then
10444 sysv4 | sysv4.2uw2
* | sysv4.3
* | sysv5
*)
10445 export_dynamic_flag_spec
='$wl-Blargedynsym'
10451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10452 $as_echo "$ld_shlibs" >&6; }
10453 test no
= "$ld_shlibs" && can_build_shared
=no
10455 with_gnu_ld
=$with_gnu_ld
10472 # Do we need to explicitly link libc?
10474 case "x$archive_cmds_need_lc" in
10476 # Assume -lc should be added
10477 archive_cmds_need_lc
=yes
10479 if test yes,yes = "$GCC,$enable_shared"; then
10480 case $archive_cmds in
10482 # FIXME: we may have to deal with multi-command sequences.
10485 # Test whether the compiler implicitly links with -lc since on some
10486 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10487 # to ld, don't add -lc before -lgcc.
10488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10489 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10490 if ${lt_cv_archive_cmds_need_lc+:} false
; then :
10491 $as_echo_n "(cached) " >&6
10494 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
10496 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10497 (eval $ac_compile) 2>&5
10499 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10500 test $ac_status = 0; } 2>conftest.err
; then
10503 libobjs
=conftest.
$ac_objext
10505 wl
=$lt_prog_compiler_wl
10506 pic_flag
=$lt_prog_compiler_pic
10512 lt_save_allow_undefined_flag
=$allow_undefined_flag
10513 allow_undefined_flag
=
10514 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10515 (eval $archive_cmds 2\
>\
&1 \|
$GREP \" -lc \" \
>/dev
/null
2\
>\
&1) 2>&5
10517 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10518 test $ac_status = 0; }
10520 lt_cv_archive_cmds_need_lc
=no
10522 lt_cv_archive_cmds_need_lc
=yes
10524 allow_undefined_flag
=$lt_save_allow_undefined_flag
10526 cat conftest.err
1>&5
10531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10532 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10533 archive_cmds_need_lc
=$lt_cv_archive_cmds_need_lc
10691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10692 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10694 if test yes = "$GCC"; then
10696 darwin
*) lt_awk_arg
='/^libraries:/,/LR/' ;;
10697 *) lt_awk_arg
='/^libraries:/' ;;
10700 mingw
* | cegcc
*) lt_sed_strip_eq
='s|=\([A-Za-z]:\)|\1|g' ;;
10701 *) lt_sed_strip_eq
='s|=/|/|g' ;;
10703 lt_search_path_spec
=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10704 case $lt_search_path_spec in
10706 # if the path contains ";" then we assume it to be the separator
10707 # otherwise default to the standard path separator (i.e. ":") - it is
10708 # assumed that no part of a normal pathname contains ";" but that should
10709 # okay in the real world where ";" in dirpaths is itself problematic.
10710 lt_search_path_spec
=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10713 lt_search_path_spec
=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10716 # Ok, now we have the path, separated by spaces, we can step through it
10717 # and add multilib dir if necessary...
10718 lt_tmp_lt_search_path_spec
=
10719 lt_multi_os_dir
=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10720 # ...but if some path component already ends with the multilib dir we assume
10721 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
10722 case "$lt_multi_os_dir; $lt_search_path_spec " in
10723 "/; "* |
"/.; "* |
"/./; "* |
*"$lt_multi_os_dir "* |
*"$lt_multi_os_dir/ "*)
10727 for lt_sys_path
in $lt_search_path_spec; do
10728 if test -d "$lt_sys_path$lt_multi_os_dir"; then
10729 lt_tmp_lt_search_path_spec
="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
10730 elif test -n "$lt_multi_os_dir"; then
10731 test -d "$lt_sys_path" && \
10732 lt_tmp_lt_search_path_spec
="$lt_tmp_lt_search_path_spec $lt_sys_path"
10735 lt_search_path_spec
=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10736 BEGIN {RS = " "; FS = "/|\n";} {
10739 for (lt_i = NF; lt_i > 0; lt_i--) {
10740 if ($lt_i != "" && $lt_i != ".") {
10741 if ($lt_i == "..") {
10744 if (lt_count == 0) {
10745 lt_foo = "/" $lt_i lt_foo;
10752 if (lt_foo != "") { lt_freq[lt_foo]++; }
10753 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10755 # AWK program above erroneously prepends '/' to C:/dos/paths
10758 mingw
* | cegcc
*) lt_search_path_spec
=`$ECHO "$lt_search_path_spec" |\
10759 $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
10761 sys_lib_search_path_spec
=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10763 sys_lib_search_path_spec
="/lib /usr/lib /usr/local/lib"
10765 library_names_spec
=
10766 libname_spec
='lib$name'
10770 postuninstall_cmds
=
10774 shlibpath_overrides_runpath
=unknown
10776 dynamic_linker
="$host_os ld.so"
10777 sys_lib_dlsearch_path_spec
="/lib /usr/lib"
10778 need_lib_prefix
=unknown
10779 hardcode_into_libs
=no
10781 # when you set need_version to no, make sure it does not cause -set_version
10782 # flags to be left without arguments
10783 need_version
=unknown
10789 version_type
=linux
# correct to gnu/linux during the next big refactor
10790 library_names_spec
='$libname$release$shared_ext$versuffix $libname.a'
10791 shlibpath_var
=LIBPATH
10793 # AIX 3 has no versioning support, so we append a major version to the name.
10794 soname_spec
='$libname$release$shared_ext$major'
10798 version_type
=linux
# correct to gnu/linux during the next big refactor
10801 hardcode_into_libs
=yes
10802 if test ia64
= "$host_cpu"; then
10803 # AIX 5 supports IA64
10804 library_names_spec
='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
10805 shlibpath_var
=LD_LIBRARY_PATH
10807 # With GCC up to 2.95.x, collect2 would create an import file
10808 # for dependence libraries. The import file would start with
10809 # the line '#! .'. This would cause the generated library to
10810 # depend on '.', always an invalid library. This was fixed in
10811 # development snapshots of GCC prior to 3.0.
10813 aix4 | aix4.
[01] | aix4.
[01].
*)
10814 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10816 echo '#endif'; } |
$CC -E - |
$GREP yes > /dev
/null
; then
10819 can_build_shared
=no
10823 # Using Import Files as archive members, it is possible to support
10824 # filename-based versioning of shared library archives on AIX. While
10825 # this would work for both with and without runtime linking, it will
10826 # prevent static linking of such archives. So we do filename-based
10827 # shared library versioning with .so extension only, which is used
10828 # when both runtime linking and shared linking is enabled.
10829 # Unfortunately, runtime linking may impact performance, so we do
10830 # not want this to be the default eventually. Also, we use the
10831 # versioned .so libs for executables only if there is the -brtl
10832 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
10833 # To allow for filename-based versioning support, we need to create
10834 # libNAME.so.V as an archive file, containing:
10835 # *) an Import File, referring to the versioned filename of the
10836 # archive as well as the shared archive member, telling the
10837 # bitwidth (32 or 64) of that shared object, and providing the
10838 # list of exported symbols of that shared object, eventually
10839 # decorated with the 'weak' keyword
10840 # *) the shared object with the F_LOADONLY flag set, to really avoid
10841 # it being seen by the linker.
10842 # At run time we better use the real file rather than another symlink,
10843 # but for link time we create the symlink libNAME.so -> libNAME.so.V
10845 case $with_aix_soname,$aix_use_runtimelinking in
10846 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
10847 # soname into executable. Probably we can add versioning support to
10848 # collect2, so additional links can be useful in future.
10849 aix
,yes) # traditional libtool
10850 dynamic_linker
='AIX unversionable lib.so'
10851 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10852 # instead of lib<name>.a to let people know that these are not
10853 # typical AIX shared libraries.
10854 library_names_spec
='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10856 aix
,no
) # traditional AIX only
10857 dynamic_linker
='AIX lib.a(lib.so.V)'
10858 # We preserve .a as extension for shared libraries through AIX4.2
10859 # and later when we are not doing run time linking.
10860 library_names_spec
='$libname$release.a $libname.a'
10861 soname_spec
='$libname$release$shared_ext$major'
10863 svr4
,*) # full svr4 only
10864 dynamic_linker
="AIX lib.so.V($shared_archive_member_spec.o)"
10865 library_names_spec
='$libname$release$shared_ext$major $libname$shared_ext'
10866 # We do not specify a path in Import Files, so LIBPATH fires.
10867 shlibpath_overrides_runpath
=yes
10869 *,yes) # both, prefer svr4
10870 dynamic_linker
="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
10871 library_names_spec
='$libname$release$shared_ext$major $libname$shared_ext'
10872 # unpreferred sharedlib libNAME.a needs extra handling
10873 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"'
10874 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"'
10875 # We do not specify a path in Import Files, so LIBPATH fires.
10876 shlibpath_overrides_runpath
=yes
10878 *,no
) # both, prefer aix
10879 dynamic_linker
="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
10880 library_names_spec
='$libname$release.a $libname.a'
10881 soname_spec
='$libname$release$shared_ext$major'
10882 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
10883 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)'
10884 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"'
10887 shlibpath_var
=LIBPATH
10894 # Since July 2007 AmigaOS4 officially supports .so libraries.
10895 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10896 library_names_spec
='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10899 library_names_spec
='$libname.ixlibrary $libname.a'
10900 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10901 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'
10907 library_names_spec
='$libname$shared_ext'
10908 dynamic_linker
="$host_os ld.so"
10909 shlibpath_var
=LIBRARY_PATH
10913 version_type
=linux
# correct to gnu/linux during the next big refactor
10915 library_names_spec
='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10916 soname_spec
='$libname$release$shared_ext$major'
10917 finish_cmds
='PATH="\$PATH:/sbin" ldconfig $libdir'
10918 shlibpath_var
=LD_LIBRARY_PATH
10919 sys_lib_search_path_spec
="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10920 sys_lib_dlsearch_path_spec
="/shlib /usr/lib /usr/local/lib"
10921 # the default ld.so.conf also contains /usr/contrib/lib and
10922 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10923 # libtool to hard-code these into programs
10926 cygwin
* | mingw
* | pw32
* | cegcc
*)
10927 version_type
=windows
10932 case $GCC,$cc_basename in
10935 library_names_spec
='$libname.dll.a'
10936 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10937 postinstall_cmds
='base_file=`basename \$file`~
10938 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
10939 dldir=$destdir/`dirname \$dlpath`~
10940 test -d \$dldir || mkdir -p \$dldir~
10941 $install_prog $dir/$dlname \$dldir/$dlname~
10942 chmod a+x \$dldir/$dlname~
10943 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10944 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10946 postuninstall_cmds
='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10947 dlpath=$dir/\$dldll~
10949 shlibpath_overrides_runpath
=yes
10953 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10954 soname_spec
='`echo $libname | sed -e 's
/^lib
/cyg
/'``echo $release | $SED -e 's
/[.
]/-/g
'`$versuffix$shared_ext'
10956 sys_lib_search_path_spec
="$sys_lib_search_path_spec /usr/lib/w32api"
10959 # MinGW DLLs use traditional 'lib' prefix
10960 soname_spec
='$libname`echo $release | $SED -e 's
/[.
]/-/g
'`$versuffix$shared_ext'
10963 # pw32 DLLs use 'pw' prefix rather than 'lib'
10964 library_names_spec
='`echo $libname | sed -e 's
/^lib
/pw
/'``echo $release | $SED -e 's
/[.
]/-/g
'`$versuffix$shared_ext'
10967 dynamic_linker
='Win32 ld.exe'
10972 libname_spec
='$name'
10973 soname_spec
='$libname`echo $release | $SED -e 's
/[.
]/-/g
'`$versuffix$shared_ext'
10974 library_names_spec
='$libname.dll.lib'
10978 sys_lib_search_path_spec
=
10981 for lt_path
in $LIB
10984 # Let DOS variable expansion print the short 8.3 style file name.
10985 lt_path
=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10986 sys_lib_search_path_spec
="$sys_lib_search_path_spec $lt_path"
10989 # Convert to MSYS style.
10990 sys_lib_search_path_spec
=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10993 # Convert to unix form, then to dos form, then back to unix form
10994 # but this time dos style (no spaces!) so that the unix form looks
10995 # like /cygdrive/c/PROGRA~1:/cygdr...
10996 sys_lib_search_path_spec
=`cygpath --path --unix "$LIB"`
10997 sys_lib_search_path_spec
=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10998 sys_lib_search_path_spec
=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11001 sys_lib_search_path_spec
=$LIB
11002 if $ECHO "$sys_lib_search_path_spec" |
$GREP ';[c-zC-Z]:/' >/dev
/null
; then
11003 # It is most probably a Windows format PATH.
11004 sys_lib_search_path_spec
=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11006 sys_lib_search_path_spec
=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11008 # FIXME: find the short name or the path components, as spaces are
11009 # common. (e.g. "Program Files" -> "PROGRA~1")
11013 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11014 postinstall_cmds
='base_file=`basename \$file`~
11015 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11016 dldir=$destdir/`dirname \$dlpath`~
11017 test -d \$dldir || mkdir -p \$dldir~
11018 $install_prog $dir/$dlname \$dldir/$dlname'
11019 postuninstall_cmds
='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11020 dlpath=$dir/\$dldll~
11022 shlibpath_overrides_runpath
=yes
11023 dynamic_linker
='Win32 link.exe'
11027 # Assume MSVC wrapper
11028 library_names_spec
='$libname`echo $release | $SED -e 's
/[.
]/-/g
'`$versuffix$shared_ext $libname.lib'
11029 dynamic_linker
='Win32 ld.exe'
11032 # FIXME: first we should search . and the directory the executable is in
11036 darwin
* | rhapsody
*)
11037 dynamic_linker
="$host_os dyld"
11038 version_type
=darwin
11041 library_names_spec
='$libname$release$major$shared_ext $libname$shared_ext'
11042 soname_spec
='$libname$release$major$shared_ext'
11043 shlibpath_overrides_runpath
=yes
11044 shlibpath_var
=DYLD_LIBRARY_PATH
11045 shrext_cmds
='`test .$module = .yes && echo .so || echo .dylib`'
11047 sys_lib_search_path_spec
="$sys_lib_search_path_spec /usr/local/lib"
11048 sys_lib_dlsearch_path_spec
='/usr/local/lib /lib /usr/lib'
11052 version_type
=linux
# correct to gnu/linux during the next big refactor
11055 library_names_spec
='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11056 soname_spec
='$libname$release$shared_ext$major'
11057 shlibpath_var
=LD_LIBRARY_PATH
11060 freebsd
* | dragonfly
*)
11061 # DragonFly does not have aout. When/if they implement a new
11062 # versioning mechanism, adjust this.
11063 if test -x /usr
/bin
/objformat
; then
11064 objformat
=`/usr/bin/objformat`
11067 freebsd
[23].
*) objformat
=aout
;;
11068 *) objformat
=elf
;;
11071 version_type
=freebsd-
$objformat
11072 case $version_type in
11074 library_names_spec
='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11075 soname_spec
='$libname$release$shared_ext$major'
11080 library_names_spec
='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11084 shlibpath_var
=LD_LIBRARY_PATH
11087 shlibpath_overrides_runpath
=yes
11089 freebsd3.
[01]* | freebsdelf3.
[01]*)
11090 shlibpath_overrides_runpath
=yes
11091 hardcode_into_libs
=yes
11093 freebsd3.
[2-9]* | freebsdelf3.
[2-9]* | \
11094 freebsd4.
[0-5] | freebsdelf4.
[0-5] | freebsd4.1
.1 | freebsdelf4.1
.1)
11095 shlibpath_overrides_runpath
=no
11096 hardcode_into_libs
=yes
11098 *) # from 4.6 on, and DragonFly
11099 shlibpath_overrides_runpath
=yes
11100 hardcode_into_libs
=yes
11106 version_type
=linux
# correct to gnu/linux during the next big refactor
11109 dynamic_linker
="$host_os runtime_loader"
11110 library_names_spec
='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11111 soname_spec
='$libname$release$shared_ext$major'
11112 shlibpath_var
=LIBRARY_PATH
11113 shlibpath_overrides_runpath
=no
11114 sys_lib_dlsearch_path_spec
='/boot/home/config/lib /boot/common/lib /boot/system/lib'
11115 hardcode_into_libs
=yes
11118 hpux9
* | hpux10
* | hpux11
*)
11119 # Give a soname corresponding to the major version so that dld.sl refuses to
11120 # link against other versions.
11127 hardcode_into_libs
=yes
11128 dynamic_linker
="$host_os dld.so"
11129 shlibpath_var
=LD_LIBRARY_PATH
11130 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
11131 library_names_spec
='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11132 soname_spec
='$libname$release$shared_ext$major'
11133 if test 32 = "$HPUX_IA64_MODE"; then
11134 sys_lib_search_path_spec
="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11135 sys_lib_dlsearch_path_spec
=/usr
/lib
/hpux32
11137 sys_lib_search_path_spec
="/usr/lib/hpux64 /usr/local/lib/hpux64"
11138 sys_lib_dlsearch_path_spec
=/usr
/lib
/hpux64
11143 hardcode_into_libs
=yes
11144 dynamic_linker
="$host_os dld.sl"
11145 shlibpath_var
=LD_LIBRARY_PATH
# How should we handle SHLIB_PATH
11146 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
11147 library_names_spec
='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11148 soname_spec
='$libname$release$shared_ext$major'
11149 sys_lib_search_path_spec
="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11150 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
11154 dynamic_linker
="$host_os dld.sl"
11155 shlibpath_var
=SHLIB_PATH
11156 shlibpath_overrides_runpath
=no
# +s is required to enable SHLIB_PATH
11157 library_names_spec
='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11158 soname_spec
='$libname$release$shared_ext$major'
11161 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11162 postinstall_cmds
='chmod 555 $lib'
11163 # or fails outright, so override atomically:
11164 install_override_mode
=555
11168 version_type
=linux
# correct to gnu/linux during the next big refactor
11171 library_names_spec
='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11172 soname_spec
='$libname$release$shared_ext$major'
11173 dynamic_linker
='Interix 3.x ld.so.1 (PE, like ELF)'
11174 shlibpath_var
=LD_LIBRARY_PATH
11175 shlibpath_overrides_runpath
=no
11176 hardcode_into_libs
=yes
11179 irix5
* | irix6
* | nonstopux
*)
11181 nonstopux
*) version_type
=nonstopux
;;
11183 if test yes = "$lt_cv_prog_gnu_ld"; then
11184 version_type
=linux
# correct to gnu/linux during the next big refactor
11191 soname_spec
='$libname$release$shared_ext$major'
11192 library_names_spec
='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
11194 irix5
* | nonstopux
*)
11195 libsuff
= shlibsuff
=
11198 case $LD in # libtool.m4 will add one of these switches to LD
11199 *-32|
*"-32 "|
*-melf32bsmip|
*"-melf32bsmip ")
11200 libsuff
= shlibsuff
= libmagic
=32-bit;;
11201 *-n32|
*"-n32 "|
*-melf32bmipn32|
*"-melf32bmipn32 ")
11202 libsuff
=32 shlibsuff
=N32 libmagic
=N32
;;
11203 *-64|
*"-64 "|
*-melf64bmip|
*"-melf64bmip ")
11204 libsuff
=64 shlibsuff
=64 libmagic
=64-bit;;
11205 *) libsuff
= shlibsuff
= libmagic
=never-match
;;
11209 shlibpath_var
=LD_LIBRARY
${shlibsuff}_PATH
11210 shlibpath_overrides_runpath
=no
11211 sys_lib_search_path_spec
="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
11212 sys_lib_dlsearch_path_spec
="/usr/lib$libsuff /lib$libsuff"
11213 hardcode_into_libs
=yes
11216 # No shared lib support for Linux oldld, aout, or coff.
11217 linux
*oldld
* | linux
*aout
* | linux
*coff
*)
11222 version_type
=none
# Android doesn't support versioned libraries.
11225 library_names_spec
='$libname$release$shared_ext'
11226 soname_spec
='$libname$release$shared_ext'
11228 shlibpath_var
=LD_LIBRARY_PATH
11229 shlibpath_overrides_runpath
=yes
11231 # This implies no fast_install, which is unacceptable.
11232 # Some rework will be needed to allow for fast_install
11233 # before this can be enabled.
11234 hardcode_into_libs
=yes
11236 dynamic_linker
='Android linker'
11237 # Don't embed -rpath directories since the linker doesn't support them.
11238 hardcode_libdir_flag_spec
='-L$libdir'
11241 # This must be glibc/ELF.
11242 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu | gnu
*)
11243 version_type
=linux
# correct to gnu/linux during the next big refactor
11246 library_names_spec
='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11247 soname_spec
='$libname$release$shared_ext$major'
11248 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11249 shlibpath_var
=LD_LIBRARY_PATH
11250 shlibpath_overrides_runpath
=no
11252 # Some binutils ld are patched to set DT_RUNPATH
11253 if ${lt_cv_shlibpath_overrides_runpath+:} false
; then :
11254 $as_echo_n "(cached) " >&6
11256 lt_cv_shlibpath_overrides_runpath
=no
11257 save_LDFLAGS
=$LDFLAGS
11258 save_libdir
=$libdir
11259 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11260 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11261 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11262 /* end confdefs.h. */
11272 if ac_fn_c_try_link
"$LINENO"; then :
11273 if ($OBJDUMP -p conftest
$ac_exeext) 2>/dev
/null |
grep "RUNPATH.*$libdir" >/dev
/null
; then :
11274 lt_cv_shlibpath_overrides_runpath
=yes
11277 rm -f core conftest.err conftest.
$ac_objext \
11278 conftest
$ac_exeext conftest.
$ac_ext
11279 LDFLAGS
=$save_LDFLAGS
11280 libdir
=$save_libdir
11284 shlibpath_overrides_runpath
=$lt_cv_shlibpath_overrides_runpath
11286 # This implies no fast_install, which is unacceptable.
11287 # Some rework will be needed to allow for fast_install
11288 # before this can be enabled.
11289 hardcode_into_libs
=yes
11291 # Ideally, we could use ldconfig to report *all* directores which are
11292 # searched for libraries, however this is still not possible. Aside from not
11293 # being certain /sbin/ldconfig is available, command
11294 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
11295 # even though it is searched at run-time. Try to do the best guess by
11296 # appending ld.so.conf contents (and includes) to the search path.
11297 if test -f /etc
/ld.so.conf
; then
11298 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' ' '`
11299 sys_lib_dlsearch_path_spec
="/lib /usr/lib $lt_ld_extra"
11302 # We used to test for /lib/ld.so.1 and disable shared libraries on
11303 # powerpc, because MkLinux only supported shared libraries with the
11304 # GNU dynamic linker. Since this was broken with cross compilers,
11305 # most powerpc-linux boxes support dynamic linking these days and
11306 # people can always --disable-shared, the test was removed, and we
11307 # assume the GNU/Linux dynamic linker is in use.
11308 dynamic_linker
='GNU/Linux ld.so'
11315 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11316 soname_spec
='${libname}${release}${shared_ext}$major'
11317 shlibpath_var
=LD_LIBRARY_PATH
11318 shlibpath_overrides_runpath
=no
11319 hardcode_into_libs
=yes
11320 dynamic_linker
='NetBSD ld.elf_so'
11327 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
11328 library_names_spec
='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11329 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11330 dynamic_linker
='NetBSD (a.out) ld.so'
11332 library_names_spec
='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11333 soname_spec
='$libname$release$shared_ext$major'
11334 dynamic_linker
='NetBSD ld.elf_so'
11336 shlibpath_var
=LD_LIBRARY_PATH
11337 shlibpath_overrides_runpath
=yes
11338 hardcode_into_libs
=yes
11342 version_type
=linux
# correct to gnu/linux during the next big refactor
11343 library_names_spec
='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11344 shlibpath_var
=LD_LIBRARY_PATH
11345 shlibpath_overrides_runpath
=yes
11352 library_names_spec
='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11353 soname_spec
='$libname$release$shared_ext$major'
11354 shlibpath_var
=LD_LIBRARY_PATH
11355 shlibpath_overrides_runpath
=no
11356 hardcode_into_libs
=yes
11357 dynamic_linker
='ldqnx.so'
11360 openbsd
* | bitrig
*)
11362 sys_lib_dlsearch_path_spec
=/usr
/lib
11364 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
11369 library_names_spec
='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11370 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11371 shlibpath_var
=LD_LIBRARY_PATH
11372 shlibpath_overrides_runpath
=yes
11376 libname_spec
='$name'
11377 version_type
=windows
11381 # OS/2 can only load a DLL with a base name of 8 characters or less.
11382 soname_spec
='`test -n "$os2dllname" && libname="$os2dllname";
11383 v=$($ECHO $release$versuffix | tr -d .-);
11384 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
11385 $ECHO $n$v`$shared_ext'
11386 library_names_spec
='${libname}_dll.$libext'
11387 dynamic_linker
='OS/2 ld.exe'
11388 shlibpath_var
=BEGINLIBPATH
11389 sys_lib_search_path_spec
="/lib /usr/lib /usr/local/lib"
11390 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
11391 postinstall_cmds
='base_file=`basename \$file`~
11392 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
11393 dldir=$destdir/`dirname \$dlpath`~
11394 test -d \$dldir || mkdir -p \$dldir~
11395 $install_prog $dir/$dlname \$dldir/$dlname~
11396 chmod a+x \$dldir/$dlname~
11397 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11398 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11400 postuninstall_cmds
='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
11401 dlpath=$dir/\$dldll~
11405 osf3
* | osf4
* | osf5
*)
11409 soname_spec
='$libname$release$shared_ext$major'
11410 library_names_spec
='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11411 shlibpath_var
=LD_LIBRARY_PATH
11412 sys_lib_search_path_spec
="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11413 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
11421 version_type
=linux
# correct to gnu/linux during the next big refactor
11424 library_names_spec
='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11425 soname_spec
='$libname$release$shared_ext$major'
11426 shlibpath_var
=LD_LIBRARY_PATH
11427 shlibpath_overrides_runpath
=yes
11428 hardcode_into_libs
=yes
11429 # ldd complains unless libraries are executable
11430 postinstall_cmds
='chmod +x $lib'
11435 library_names_spec
='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11436 finish_cmds
='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11437 shlibpath_var
=LD_LIBRARY_PATH
11438 shlibpath_overrides_runpath
=yes
11439 if test yes = "$with_gnu_ld"; then
11446 version_type
=linux
# correct to gnu/linux during the next big refactor
11447 library_names_spec
='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11448 soname_spec
='$libname$release$shared_ext$major'
11449 shlibpath_var
=LD_LIBRARY_PATH
11450 case $host_vendor in
11452 shlibpath_overrides_runpath
=no
11454 runpath_var
=LD_RUN_PATH
11462 shlibpath_overrides_runpath
=no
11463 sys_lib_search_path_spec
='/lib /usr/lib /usr/ccs/lib'
11469 if test -d /usr
/nec
; then
11470 version_type
=linux
# correct to gnu/linux during the next big refactor
11471 library_names_spec
='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
11472 soname_spec
='$libname$shared_ext.$major'
11473 shlibpath_var
=LD_LIBRARY_PATH
11477 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
* | sysv4
*uw2
*)
11481 library_names_spec
='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
11482 soname_spec
='$libname$release$shared_ext$major'
11483 shlibpath_var
=LD_LIBRARY_PATH
11484 shlibpath_overrides_runpath
=yes
11485 hardcode_into_libs
=yes
11486 if test yes = "$with_gnu_ld"; then
11487 sys_lib_search_path_spec
='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11489 sys_lib_search_path_spec
='/usr/ccs/lib /usr/lib'
11492 sys_lib_search_path_spec
="$sys_lib_search_path_spec /lib"
11496 sys_lib_dlsearch_path_spec
='/usr/lib'
11500 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11501 version_type
=linux
# correct to gnu/linux during the next big refactor
11504 library_names_spec
='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11505 shlibpath_var
=LD_LIBRARY_PATH
11506 shlibpath_overrides_runpath
=no
11507 hardcode_into_libs
=yes
11511 version_type
=linux
# correct to gnu/linux during the next big refactor
11512 library_names_spec
='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11513 soname_spec
='$libname$release$shared_ext$major'
11514 shlibpath_var
=LD_LIBRARY_PATH
11521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11522 $as_echo "$dynamic_linker" >&6; }
11523 test no
= "$dynamic_linker" && can_build_shared
=no
11525 variables_saved_for_relink
="PATH $shlibpath_var $runpath_var"
11526 if test yes = "$GCC"; then
11527 variables_saved_for_relink
="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11530 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
11531 sys_lib_search_path_spec
=$lt_cv_sys_lib_search_path_spec
11534 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
11535 sys_lib_dlsearch_path_spec
=$lt_cv_sys_lib_dlsearch_path_spec
11538 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
11539 configure_time_dlsearch_path
=$sys_lib_dlsearch_path_spec
11541 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
11542 func_munge_path_list sys_lib_dlsearch_path_spec
"$LT_SYS_LIBRARY_PATH"
11544 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
11545 configure_time_lt_sys_library_path
=$LT_SYS_LIBRARY_PATH
11643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11644 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11646 if test -n "$hardcode_libdir_flag_spec" ||
11647 test -n "$runpath_var" ||
11648 test yes = "$hardcode_automatic"; then
11650 # We can hardcode non-existent directories.
11651 if test no
!= "$hardcode_direct" &&
11652 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11653 # have to relink, otherwise we might link with an installed library
11654 # when we should be linking with a yet-to-be-installed one
11655 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
11656 test no
!= "$hardcode_minus_L"; then
11657 # Linking always hardcodes the temporary library directory.
11658 hardcode_action
=relink
11660 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11661 hardcode_action
=immediate
11664 # We cannot hardcode anything, or else we can only hardcode existing
11666 hardcode_action
=unsupported
11668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11669 $as_echo "$hardcode_action" >&6; }
11671 if test relink
= "$hardcode_action" ||
11672 test yes = "$inherit_rpath"; then
11673 # Fast installation is not supported
11674 enable_fast_install
=no
11675 elif test yes = "$shlibpath_overrides_runpath" ||
11676 test no
= "$enable_shared"; then
11677 # Fast installation is not necessary
11678 enable_fast_install
=needless
11686 if test yes != "$enable_dlopen"; then
11687 enable_dlopen
=unknown
11688 enable_dlopen_self
=unknown
11689 enable_dlopen_self_static
=unknown
11696 lt_cv_dlopen
=load_add_on
11698 lt_cv_dlopen_self
=yes
11701 mingw
* | pw32
* | cegcc
*)
11702 lt_cv_dlopen
=LoadLibrary
11707 lt_cv_dlopen
=dlopen
11712 # if libdl is installed we need to link against it
11713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11714 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11715 if ${ac_cv_lib_dl_dlopen+:} false
; then :
11716 $as_echo_n "(cached) " >&6
11718 ac_check_lib_save_LIBS
=$LIBS
11720 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11721 /* end confdefs.h. */
11723 /* Override any GCC internal prototype to avoid an error.
11724 Use char because int might match the return type of a GCC
11725 builtin and then its argument prototype would still apply. */
11738 if ac_fn_c_try_link
"$LINENO"; then :
11739 ac_cv_lib_dl_dlopen
=yes
11741 ac_cv_lib_dl_dlopen
=no
11743 rm -f core conftest.err conftest.
$ac_objext \
11744 conftest
$ac_exeext conftest.
$ac_ext
11745 LIBS
=$ac_check_lib_save_LIBS
11747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11748 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11749 if test "x$ac_cv_lib_dl_dlopen" = xyes
; then :
11750 lt_cv_dlopen
=dlopen lt_cv_dlopen_libs
=-ldl
11755 lt_cv_dlopen_self
=yes
11762 # Don't try to run any link tests for TPF. We know it's impossible
11763 # because TPF is a cross-compiler, and we know how we open DSOs.
11764 lt_cv_dlopen
=dlopen
11766 lt_cv_dlopen_self
=no
11770 ac_fn_c_check_func
"$LINENO" "shl_load" "ac_cv_func_shl_load"
11771 if test "x$ac_cv_func_shl_load" = xyes
; then :
11772 lt_cv_dlopen
=shl_load
11774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11775 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11776 if ${ac_cv_lib_dld_shl_load+:} false
; then :
11777 $as_echo_n "(cached) " >&6
11779 ac_check_lib_save_LIBS
=$LIBS
11781 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11782 /* end confdefs.h. */
11784 /* Override any GCC internal prototype to avoid an error.
11785 Use char because int might match the return type of a GCC
11786 builtin and then its argument prototype would still apply. */
11794 return shl_load ();
11799 if ac_fn_c_try_link
"$LINENO"; then :
11800 ac_cv_lib_dld_shl_load
=yes
11802 ac_cv_lib_dld_shl_load
=no
11804 rm -f core conftest.err conftest.
$ac_objext \
11805 conftest
$ac_exeext conftest.
$ac_ext
11806 LIBS
=$ac_check_lib_save_LIBS
11808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11809 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11810 if test "x$ac_cv_lib_dld_shl_load" = xyes
; then :
11811 lt_cv_dlopen
=shl_load lt_cv_dlopen_libs
=-ldld
11813 ac_fn_c_check_func
"$LINENO" "dlopen" "ac_cv_func_dlopen"
11814 if test "x$ac_cv_func_dlopen" = xyes
; then :
11815 lt_cv_dlopen
=dlopen
11817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11818 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11819 if ${ac_cv_lib_dl_dlopen+:} false
; then :
11820 $as_echo_n "(cached) " >&6
11822 ac_check_lib_save_LIBS
=$LIBS
11824 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11825 /* end confdefs.h. */
11827 /* Override any GCC internal prototype to avoid an error.
11828 Use char because int might match the return type of a GCC
11829 builtin and then its argument prototype would still apply. */
11842 if ac_fn_c_try_link
"$LINENO"; then :
11843 ac_cv_lib_dl_dlopen
=yes
11845 ac_cv_lib_dl_dlopen
=no
11847 rm -f core conftest.err conftest.
$ac_objext \
11848 conftest
$ac_exeext conftest.
$ac_ext
11849 LIBS
=$ac_check_lib_save_LIBS
11851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11852 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11853 if test "x$ac_cv_lib_dl_dlopen" = xyes
; then :
11854 lt_cv_dlopen
=dlopen lt_cv_dlopen_libs
=-ldl
11856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11857 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11858 if ${ac_cv_lib_svld_dlopen+:} false
; then :
11859 $as_echo_n "(cached) " >&6
11861 ac_check_lib_save_LIBS
=$LIBS
11862 LIBS
="-lsvld $LIBS"
11863 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11864 /* end confdefs.h. */
11866 /* Override any GCC internal prototype to avoid an error.
11867 Use char because int might match the return type of a GCC
11868 builtin and then its argument prototype would still apply. */
11881 if ac_fn_c_try_link
"$LINENO"; then :
11882 ac_cv_lib_svld_dlopen
=yes
11884 ac_cv_lib_svld_dlopen
=no
11886 rm -f core conftest.err conftest.
$ac_objext \
11887 conftest
$ac_exeext conftest.
$ac_ext
11888 LIBS
=$ac_check_lib_save_LIBS
11890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11891 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11892 if test "x$ac_cv_lib_svld_dlopen" = xyes
; then :
11893 lt_cv_dlopen
=dlopen lt_cv_dlopen_libs
=-lsvld
11895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11896 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11897 if ${ac_cv_lib_dld_dld_link+:} false
; then :
11898 $as_echo_n "(cached) " >&6
11900 ac_check_lib_save_LIBS
=$LIBS
11902 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11903 /* end confdefs.h. */
11905 /* Override any GCC internal prototype to avoid an error.
11906 Use char because int might match the return type of a GCC
11907 builtin and then its argument prototype would still apply. */
11915 return dld_link ();
11920 if ac_fn_c_try_link
"$LINENO"; then :
11921 ac_cv_lib_dld_dld_link
=yes
11923 ac_cv_lib_dld_dld_link
=no
11925 rm -f core conftest.err conftest.
$ac_objext \
11926 conftest
$ac_exeext conftest.
$ac_ext
11927 LIBS
=$ac_check_lib_save_LIBS
11929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11930 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11931 if test "x$ac_cv_lib_dld_dld_link" = xyes
; then :
11932 lt_cv_dlopen
=dld_link lt_cv_dlopen_libs
=-ldld
11953 if test no
= "$lt_cv_dlopen"; then
11959 case $lt_cv_dlopen in
11961 save_CPPFLAGS
=$CPPFLAGS
11962 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS
="$CPPFLAGS -DHAVE_DLFCN_H"
11964 save_LDFLAGS
=$LDFLAGS
11965 wl
=$lt_prog_compiler_wl eval LDFLAGS
=\"\
$LDFLAGS $export_dynamic_flag_spec\"
11968 LIBS
="$lt_cv_dlopen_libs $LIBS"
11970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11971 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11972 if ${lt_cv_dlopen_self+:} false
; then :
11973 $as_echo_n "(cached) " >&6
11975 if test yes = "$cross_compiling"; then :
11976 lt_cv_dlopen_self
=cross
11978 lt_dlunknown
=0; lt_dlno_uscore
=1; lt_dlneed_uscore
=2
11979 lt_status
=$lt_dlunknown
11980 cat > conftest.
$ac_ext <<_LT_EOF
11981 #line $LINENO "configure"
11982 #include "confdefs.h"
11991 # define LT_DLGLOBAL RTLD_GLOBAL
11994 # define LT_DLGLOBAL DL_GLOBAL
11996 # define LT_DLGLOBAL 0
12000 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12001 find out it does not work in some platform. */
12002 #ifndef LT_DLLAZY_OR_NOW
12004 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12007 # define LT_DLLAZY_OR_NOW DL_LAZY
12010 # define LT_DLLAZY_OR_NOW RTLD_NOW
12013 # define LT_DLLAZY_OR_NOW DL_NOW
12015 # define LT_DLLAZY_OR_NOW 0
12022 /* When -fvisibility=hidden is used, assume the code has been annotated
12023 correspondingly for the symbols needed. */
12024 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12025 int fnord () __attribute__((visibility("default")));
12028 int fnord () { return 42; }
12031 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12032 int status = $lt_dlunknown;
12036 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12039 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12040 else puts (dlerror ());
12042 /* dlclose (self); */
12050 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12051 (eval $ac_link) 2>&5
12053 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12054 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev
/null
; then
12055 (.
/conftest
; exit; ) >&5 2>/dev
/null
12057 case x
$lt_status in
12058 x
$lt_dlno_uscore) lt_cv_dlopen_self
=yes ;;
12059 x
$lt_dlneed_uscore) lt_cv_dlopen_self
=yes ;;
12060 x
$lt_dlunknown|x
*) lt_cv_dlopen_self
=no
;;
12063 # compilation failed
12064 lt_cv_dlopen_self
=no
12071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12072 $as_echo "$lt_cv_dlopen_self" >&6; }
12074 if test yes = "$lt_cv_dlopen_self"; then
12075 wl
=$lt_prog_compiler_wl eval LDFLAGS
=\"\
$LDFLAGS $lt_prog_compiler_static\"
12076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12077 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12078 if ${lt_cv_dlopen_self_static+:} false
; then :
12079 $as_echo_n "(cached) " >&6
12081 if test yes = "$cross_compiling"; then :
12082 lt_cv_dlopen_self_static
=cross
12084 lt_dlunknown
=0; lt_dlno_uscore
=1; lt_dlneed_uscore
=2
12085 lt_status
=$lt_dlunknown
12086 cat > conftest.
$ac_ext <<_LT_EOF
12087 #line $LINENO "configure"
12088 #include "confdefs.h"
12097 # define LT_DLGLOBAL RTLD_GLOBAL
12100 # define LT_DLGLOBAL DL_GLOBAL
12102 # define LT_DLGLOBAL 0
12106 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12107 find out it does not work in some platform. */
12108 #ifndef LT_DLLAZY_OR_NOW
12110 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12113 # define LT_DLLAZY_OR_NOW DL_LAZY
12116 # define LT_DLLAZY_OR_NOW RTLD_NOW
12119 # define LT_DLLAZY_OR_NOW DL_NOW
12121 # define LT_DLLAZY_OR_NOW 0
12128 /* When -fvisibility=hidden is used, assume the code has been annotated
12129 correspondingly for the symbols needed. */
12130 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12131 int fnord () __attribute__((visibility("default")));
12134 int fnord () { return 42; }
12137 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12138 int status = $lt_dlunknown;
12142 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12145 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12146 else puts (dlerror ());
12148 /* dlclose (self); */
12156 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12157 (eval $ac_link) 2>&5
12159 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12160 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev
/null
; then
12161 (.
/conftest
; exit; ) >&5 2>/dev
/null
12163 case x
$lt_status in
12164 x
$lt_dlno_uscore) lt_cv_dlopen_self_static
=yes ;;
12165 x
$lt_dlneed_uscore) lt_cv_dlopen_self_static
=yes ;;
12166 x
$lt_dlunknown|x
*) lt_cv_dlopen_self_static
=no
;;
12169 # compilation failed
12170 lt_cv_dlopen_self_static
=no
12177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12178 $as_echo "$lt_cv_dlopen_self_static" >&6; }
12181 CPPFLAGS
=$save_CPPFLAGS
12182 LDFLAGS
=$save_LDFLAGS
12187 case $lt_cv_dlopen_self in
12188 yes|no
) enable_dlopen_self
=$lt_cv_dlopen_self ;;
12189 *) enable_dlopen_self
=unknown
;;
12192 case $lt_cv_dlopen_self_static in
12193 yes|no
) enable_dlopen_self_static
=$lt_cv_dlopen_self_static ;;
12194 *) enable_dlopen_self_static
=unknown
;;
12216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12217 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
12218 if test -n "$STRIP" && $STRIP -V 2>&1 |
$GREP "GNU strip" >/dev
/null
; then
12219 test -z "$old_striplib" && old_striplib
="$STRIP --strip-debug"
12220 test -z "$striplib" && striplib
="$STRIP --strip-unneeded"
12221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12222 $as_echo "yes" >&6; }
12224 # FIXME - insert some real tests, host_os isn't really good enough
12227 if test -n "$STRIP"; then
12228 striplib
="$STRIP -x"
12229 old_striplib
="$STRIP -S"
12230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12231 $as_echo "yes" >&6; }
12233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12234 $as_echo "no" >&6; }
12238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12239 $as_echo "no" >&6; }
12255 # Report what library types will actually be built
12256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12257 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12259 $as_echo "$can_build_shared" >&6; }
12261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12262 $as_echo_n "checking whether to build shared libraries... " >&6; }
12263 test no
= "$can_build_shared" && enable_shared
=no
12265 # On AIX, shared libraries and static libraries use the same namespace, and
12266 # are all built from PIC.
12269 test yes = "$enable_shared" && enable_static
=no
12270 if test -n "$RANLIB"; then
12271 archive_cmds
="$archive_cmds~\$RANLIB \$lib"
12272 postinstall_cmds
='$RANLIB $lib'
12277 if test ia64
!= "$host_cpu"; then
12278 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
12279 yes,aix
,yes) ;; # shared object as lib.so file only
12280 yes,svr4
,*) ;; # shared object as lib.so archive member only
12281 yes,*) enable_static
=no
;; # shared object in lib.a archive as well
12286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12287 $as_echo "$enable_shared" >&6; }
12289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12290 $as_echo_n "checking whether to build static libraries... " >&6; }
12291 # Make sure either enable_shared or enable_static is yes.
12292 test yes = "$enable_shared" || enable_static
=yes
12293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12294 $as_echo "$enable_static" >&6; }
12301 ac_cpp
='$CPP $CPPFLAGS'
12302 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12303 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12304 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
12322 ac_config_commands
="$ac_config_commands libtool"
12327 # Only expand once:
12330 # By default we simply use the C compiler to build assembly code.
12332 test "${CCAS+set}" = set || CCAS
=$CC
12333 test "${CCASFLAGS+set}" = set || CCASFLAGS
=$CFLAGS
12337 depcc
="$CCAS" am_compiler_list
=
12339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
12340 $as_echo_n "checking dependency style of $depcc... " >&6; }
12341 if ${am_cv_CCAS_dependencies_compiler_type+:} false
; then :
12342 $as_echo_n "(cached) " >&6
12344 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
12345 # We make a subdir and do the tests there. Otherwise we can end up
12346 # making bogus files that we don't know about and never remove. For
12347 # instance it was reported that on HP-UX the gcc test will end up
12348 # making a dummy file named 'D' -- because '-MD' means "put the output
12350 rm -rf conftest.dir
12352 # Copy depcomp to subdir because otherwise we won't find it if we're
12353 # using a relative directory.
12354 cp "$am_depcomp" conftest.dir
12356 # We will build objects and dependencies in a subdirectory because
12357 # it helps to detect inapplicable dependency modes. For instance
12358 # both Tru64's cc and ICC support -MD to output dependencies as a
12359 # side effect of compilation, but ICC will put the dependencies in
12360 # the current directory while Tru64 will put them in the object
12364 am_cv_CCAS_dependencies_compiler_type
=none
12365 if test "$am_compiler_list" = ""; then
12366 am_compiler_list
=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
12368 am__universal
=false
12371 for depmode
in $am_compiler_list; do
12372 # Setup a source with many dependencies, because some compilers
12373 # like to wrap large dependency lists on column 80 (with \), and
12374 # we should not choose a depcomp mode which is confused by this.
12376 # We need to recreate these files for each test, as the compiler may
12377 # overwrite some of them when testing with obscure command lines.
12378 # This happens at least with the AIX C compiler.
12380 for i
in 1 2 3 4 5 6; do
12381 echo '#include "conftst'$i'.h"' >> sub
/conftest.c
12382 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
12383 # Solaris 10 /bin/sh.
12384 echo '/* dummy */' > sub
/conftst
$i.h
12386 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
12388 # We check with '-c' and '-o' for the sake of the "dashmstdout"
12389 # mode. It turns out that the SunPro C++ compiler does not properly
12390 # handle '-M -o', and we need to detect this. Also, some Intel
12391 # versions had trouble with output in subdirs.
12392 am__obj
=sub
/conftest.
${OBJEXT-o}
12393 am__minus_obj
="-o $am__obj"
12396 # This depmode causes a compiler race in universal mode.
12397 test "$am__universal" = false ||
continue
12400 # After this tag, mechanisms are not by side-effect, so they'll
12401 # only be used when explicitly requested.
12402 if test "x$enable_dependency_tracking" = xyes
; then
12408 msvc7 | msvc7msys | msvisualcpp | msvcmsys
)
12409 # This compiler won't grok '-c -o', but also, the minuso test has
12410 # not run yet. These depmodes are late enough in the game, and
12411 # so weak that their functioning should not be impacted.
12412 am__obj
=conftest.
${OBJEXT-o}
12417 if depmode
=$depmode \
12418 source=sub
/conftest.c object
=$am__obj \
12419 depfile
=sub
/conftest.Po tmpdepfile
=sub
/conftest.TPo \
12420 $SHELL .
/depcomp
$depcc -c $am__minus_obj sub
/conftest.c \
12421 >/dev
/null
2>conftest.err
&&
12422 grep sub
/conftst1.h sub
/conftest.Po
> /dev
/null
2>&1 &&
12423 grep sub
/conftst6.h sub
/conftest.Po
> /dev
/null
2>&1 &&
12424 grep $am__obj sub
/conftest.Po
> /dev
/null
2>&1 &&
12425 ${MAKE-make} -s -f confmf
> /dev
/null
2>&1; then
12426 # icc doesn't choke on unknown options, it will just issue warnings
12427 # or remarks (even with -Werror). So we grep stderr for any message
12428 # that says an option was ignored or not supported.
12429 # When given -MP, icc 7.0 and 7.1 complain thusly:
12430 # icc: Command line warning: ignoring option '-M'; no argument required
12431 # The diagnosis changed in icc 8.0:
12432 # icc: Command line remark: option '-MP' not supported
12433 if (grep 'ignoring option' conftest.err ||
12434 grep 'not supported' conftest.err
) >/dev
/null
2>&1; then :; else
12435 am_cv_CCAS_dependencies_compiler_type
=$depmode
12442 rm -rf conftest.dir
12444 am_cv_CCAS_dependencies_compiler_type
=none
12448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CCAS_dependencies_compiler_type" >&5
12449 $as_echo "$am_cv_CCAS_dependencies_compiler_type" >&6; }
12450 CCASDEPMODE
=depmode
=$am_cv_CCAS_dependencies_compiler_type
12453 test "x$enable_dependency_tracking" != xno \
12454 && test "$am_cv_CCAS_dependencies_compiler_type" = gcc3
; then
12455 am__fastdepCCAS_TRUE
=
12456 am__fastdepCCAS_FALSE
='#'
12458 am__fastdepCCAS_TRUE
='#'
12459 am__fastdepCCAS_FALSE
=
12465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking zfs author" >&5
12466 $as_echo_n "checking zfs author... " >&6; }
12467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZFS_META_AUTHOR" >&5
12468 $as_echo "$ZFS_META_AUTHOR" >&6; }
12470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking zfs license" >&5
12471 $as_echo_n "checking zfs license... " >&6; }
12472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZFS_META_LICENSE" >&5
12473 $as_echo "$ZFS_META_LICENSE" >&6; }
12477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linux distribution" >&5
12478 $as_echo_n "checking linux distribution... " >&6; }
12479 if test -f /etc
/toss-release
; then
12481 elif test -f /etc
/fedora-release
; then
12483 elif test -f /etc
/redhat-release
; then
12485 elif test -f /etc
/gentoo-release
; then
12487 elif test -f /etc
/arch-release
; then
12489 elif test -f /etc
/SuSE-release
; then
12491 elif test -f /etc
/slackware-version
; then
12493 elif test -f /etc
/lunar.release
; then
12495 elif test -f /etc
/lsb-release
; then
12497 elif test -f /etc
/debian_version
; then
12502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $VENDOR" >&5
12503 $as_echo "$VENDOR" >&6; }
12506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking default package type" >&5
12507 $as_echo_n "checking default package type... " >&6; }
12509 toss
) DEFAULT_PACKAGE
=rpm
;;
12510 redhat
) DEFAULT_PACKAGE
=rpm
;;
12511 fedora
) DEFAULT_PACKAGE
=rpm
;;
12512 gentoo
) DEFAULT_PACKAGE
=tgz
;;
12513 arch
) DEFAULT_PACKAGE
=tgz
;;
12514 sles
) DEFAULT_PACKAGE
=rpm
;;
12515 slackware
) DEFAULT_PACKAGE
=tgz
;;
12516 lunar
) DEFAULT_PACKAGE
=tgz
;;
12517 ubuntu
) DEFAULT_PACKAGE
=deb
;;
12518 debian
) DEFAULT_PACKAGE
=deb
;;
12519 *) DEFAULT_PACKAGE
=rpm
;;
12521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEFAULT_PACKAGE" >&5
12522 $as_echo "$DEFAULT_PACKAGE" >&6; }
12525 DEFAULT_INIT_DIR
=$sysconfdir/init.d
12526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking default init directory" >&5
12527 $as_echo_n "checking default init directory... " >&6; }
12528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEFAULT_INIT_DIR" >&5
12529 $as_echo "$DEFAULT_INIT_DIR" >&6; }
12532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking default init script type" >&5
12533 $as_echo_n "checking default init script type... " >&6; }
12535 toss
) DEFAULT_INIT_SCRIPT
=redhat
;;
12536 redhat
) DEFAULT_INIT_SCRIPT
=redhat
;;
12537 fedora
) DEFAULT_INIT_SCRIPT
=fedora
;;
12538 gentoo
) DEFAULT_INIT_SCRIPT
=gentoo
;;
12539 arch
) DEFAULT_INIT_SCRIPT
=lsb
;;
12540 sles
) DEFAULT_INIT_SCRIPT
=lsb
;;
12541 slackware
) DEFAULT_INIT_SCRIPT
=lsb
;;
12542 lunar
) DEFAULT_INIT_SCRIPT
=lunar
;;
12543 ubuntu
) DEFAULT_INIT_SCRIPT
=lsb
;;
12544 debian
) DEFAULT_INIT_SCRIPT
=lsb
;;
12545 *) DEFAULT_INIT_SCRIPT
=lsb
;;
12547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEFAULT_INIT_SCRIPT" >&5
12548 $as_echo "$DEFAULT_INIT_SCRIPT" >&6; }
12551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking default init config direectory" >&5
12552 $as_echo_n "checking default init config direectory... " >&6; }
12554 gentoo
) DEFAULT_INITCONF_DIR
=/etc
/conf.d
;;
12555 toss
) DEFAULT_INITCONF_DIR
=/etc
/sysconfig
;;
12556 redhat
) DEFAULT_INITCONF_DIR
=/etc
/sysconfig
;;
12557 fedora
) DEFAULT_INITCONF_DIR
=/etc
/sysconfig
;;
12558 sles
) DEFAULT_INITCONF_DIR
=/etc
/sysconfig
;;
12559 ubuntu
) DEFAULT_INITCONF_DIR
=/etc
/default
;;
12560 debian
) DEFAULT_INITCONF_DIR
=/etc
/default
;;
12561 *) DEFAULT_INITCONF_DIR
=/etc
/default
;;
12563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEFAULT_INITCONF_DIR" >&5
12564 $as_echo "$DEFAULT_INITCONF_DIR" >&6; }
12567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether initramfs-tools is available" >&5
12568 $as_echo_n "checking whether initramfs-tools is available... " >&6; }
12569 if test -d /usr
/share
/initramfs-tools
; then
12570 DEFINE_INITRAMFS
='--define "_initramfs 1"'
12571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12572 $as_echo "yes" >&6; }
12574 DEFINE_INITRAMFS
=''
12575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12576 $as_echo "no" >&6; }
12584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $RPM is available" >&5
12585 $as_echo_n "checking whether $RPM is available... " >&6; }
12586 if tmp
=$
($RPM --version 2>/dev
/null
); then :
12588 RPM_VERSION
=$
(echo $tmp |
$AWK '/RPM/ { print $3 }')
12590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_RPM ($RPM_VERSION)" >&5
12591 $as_echo "$HAVE_RPM ($RPM_VERSION)" >&6; }
12596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_RPM" >&5
12597 $as_echo "$HAVE_RPM" >&6; }
12601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $RPMBUILD is available" >&5
12602 $as_echo_n "checking whether $RPMBUILD is available... " >&6; }
12603 if tmp
=$
($RPMBUILD --version 2>/dev
/null
); then :
12605 RPMBUILD_VERSION
=$
(echo $tmp |
$AWK '/RPM/ { print $3 }')
12607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_RPMBUILD ($RPMBUILD_VERSION)" >&5
12608 $as_echo "$HAVE_RPMBUILD ($RPMBUILD_VERSION)" >&6; }
12613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_RPMBUILD" >&5
12614 $as_echo "$HAVE_RPMBUILD" >&6; }
12618 RPM_DEFINE_COMMON
='--define "$(DEBUG_ZFS) 1" --define "$(DEBUG_DMU_TX) 1"'
12619 RPM_DEFINE_UTIL
='--define "_dracutdir $(dracutdir)" --define "_udevdir $(udevdir)" --define "_udevruledir $(udevruledir)" --define "_initconfdir $(DEFAULT_INITCONF_DIR)" $(DEFINE_INITRAMFS)'
12620 RPM_DEFINE_KMOD
='--define "kernels $(LINUX_VERSION)" --define "require_spldir $(SPL)" --define "require_splobj $(SPL_OBJ)" --define "ksrc $(LINUX)" --define "kobj $(LINUX_OBJ)"'
12623 SRPM_DEFINE_COMMON
='--define "build_src_rpm 1"'
12628 RPM_SPEC_DIR
="rpm/generic"
12630 # Check whether --with-spec was given.
12631 if test "${with_spec+set}" = set; then :
12632 withval
=$with_spec; RPM_SPEC_DIR
="rpm/$withval"
12636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether spec files are available" >&5
12637 $as_echo_n "checking whether spec files are available... " >&6; }
12638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($RPM_SPEC_DIR/*.spec.in)" >&5
12639 $as_echo "yes ($RPM_SPEC_DIR/*.spec.in)" >&6; }
12661 DPKGBUILD
=dpkg-buildpackage
12663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $DPKG is available" >&5
12664 $as_echo_n "checking whether $DPKG is available... " >&6; }
12665 if tmp
=$
($DPKG --version 2>/dev
/null
); then :
12667 DPKG_VERSION
=$
(echo $tmp |
$AWK '/Debian/ { print $7 }')
12669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_DPKG ($DPKG_VERSION)" >&5
12670 $as_echo "$HAVE_DPKG ($DPKG_VERSION)" >&6; }
12675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_DPKG" >&5
12676 $as_echo "$HAVE_DPKG" >&6; }
12680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $DPKGBUILD is available" >&5
12681 $as_echo_n "checking whether $DPKGBUILD is available... " >&6; }
12682 if tmp
=$
($DPKGBUILD --version 2>/dev
/null
); then :
12684 DPKGBUILD_VERSION
=$
(echo $tmp | \
12685 $AWK '/Debian/ { print $4 }' | cut
-f-4 -d'.')
12687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_DPKGBUILD ($DPKGBUILD_VERSION)" >&5
12688 $as_echo "$HAVE_DPKGBUILD ($DPKGBUILD_VERSION)" >&6; }
12693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_DPKGBUILD" >&5
12694 $as_echo "$HAVE_DPKGBUILD" >&6; }
12709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ALIEN is available" >&5
12710 $as_echo_n "checking whether $ALIEN is available... " >&6; }
12711 if tmp
=$
($ALIEN --version 2>/dev
/null
); then :
12713 ALIEN_VERSION
=$
(echo $tmp |
$AWK '{ print $3 }')
12715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_ALIEN ($ALIEN_VERSION)" >&5
12716 $as_echo "$HAVE_ALIEN ($ALIEN_VERSION)" >&6; }
12721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_ALIEN" >&5
12722 $as_echo "$HAVE_ALIEN" >&6; }
12732 TARGET_ASM_DIR
=asm-generic
12737 # Check whether --with-config was given.
12738 if test "${with_config+set}" = set; then :
12739 withval
=$with_config; ZFS_CONFIG
="$withval"
12742 # Check whether --enable-linux-builtin was given.
12743 if test "${enable_linux_builtin+set}" = set; then :
12744 enableval
=$enable_linux_builtin;
12746 enable_linux_builtin
=no
12750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking zfs config" >&5
12751 $as_echo_n "checking zfs config... " >&6; }
12752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZFS_CONFIG" >&5
12753 $as_echo "$ZFS_CONFIG" >&6; };
12758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -Wno-unused-but-set-variable support" >&5
12759 $as_echo_n "checking for -Wno-unused-but-set-variable support... " >&6; }
12761 saved_flags
="$CFLAGS"
12762 CFLAGS
="$CFLAGS -Wunused-but-set-variable"
12764 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12765 /* end confdefs.h. */
12775 if ac_fn_c_try_compile
"$LINENO"; then :
12777 NO_UNUSED_BUT_SET_VARIABLE
=-Wno-unused-but-set-variable
12778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12779 $as_echo "yes" >&6; }
12783 NO_UNUSED_BUT_SET_VARIABLE
=
12784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12785 $as_echo "no" >&6; }
12788 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12790 CFLAGS
="$saved_flags"
12794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -Wno-bool-compare support" >&5
12795 $as_echo_n "checking for -Wno-bool-compare support... " >&6; }
12797 saved_flags
="$CFLAGS"
12798 CFLAGS
="$CFLAGS -Wbool-compare"
12800 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12801 /* end confdefs.h. */
12811 if ac_fn_c_try_compile
"$LINENO"; then :
12813 NO_BOOL_COMPARE
=-Wno-bool-compare
12814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12815 $as_echo "yes" >&6; }
12820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12821 $as_echo "no" >&6; }
12824 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12826 CFLAGS
="$saved_flags"
12831 case "$ZFS_CONFIG" in
12834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dkms.conf file" >&5
12835 $as_echo_n "checking for dkms.conf file... " >&6; }
12836 if test -e dkms.conf
; then :
12839 *** ZFS should not be manually built in the DKMS source tree.
12840 *** Remove all ZFS packages before compiling the ZoL sources.
12841 *** Running \"make install\" breaks ZFS packages." "$LINENO" 5
12845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
12846 $as_echo "not found" >&6; }
12852 # Check whether --with-mounthelperdir was given.
12853 if test "${with_mounthelperdir+set}" = set; then :
12854 withval
=$with_mounthelperdir; mounthelperdir
=$withval
12856 mounthelperdir
=/sbin
12863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for udev directories" >&5
12864 $as_echo_n "checking for udev directories... " >&6; }
12866 # Check whether --with-udevdir was given.
12867 if test "${with_udevdir+set}" = set; then :
12868 withval
=$with_udevdir; udevdir
=$withval
12874 if test "x$udevdir" = xcheck
; then :
12877 path2
=/usr
/lib
/udev
12880 if test -d "$path1"; then :
12884 if test -d "$path2"; then :
12895 # Check whether --with-udevruledir was given.
12896 if test "${with_udevruledir+set}" = set; then :
12897 withval
=$with_udevruledir; udevruledir
=$withval
12899 udevruledir
="${udevdir}/rules.d"
12905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $udevdir;$udevruledir" >&5
12906 $as_echo "$udevdir;$udevruledir" >&6; }
12911 ac_fn_c_check_header_mongrel
"$LINENO" "libaio.h" "ac_cv_header_libaio_h" "$ac_includes_default"
12912 if test "x$ac_cv_header_libaio_h" = xyes
; then :
12918 $as_echo "#define HAVE_LIBAIO 1" >>confdefs.h
12930 # Check whether --enable-systemd was given.
12931 if test "${enable_systemd+set}" = set; then :
12932 enableval
=$enable_systemd;
12939 # Check whether --with-systemdunitdir was given.
12940 if test "${with_systemdunitdir+set}" = set; then :
12941 withval
=$with_systemdunitdir; systemdunitdir
=$withval
12943 systemdunitdir
=/usr
/lib
/systemd
/system
12948 # Check whether --with-systemdpresetdir was given.
12949 if test "${with_systemdpresetdir+set}" = set; then :
12950 withval
=$with_systemdpresetdir; systemdpresetdir
=$withval
12952 systemdpresetdir
=/usr
/lib
/systemd
/system-preset
12957 # Check whether --with-systemdmodulesloaddir was given.
12958 if test "${with_systemdmodulesloaddir+set}" = set; then :
12959 withval
=$with_systemdmodulesloaddir; systemdmoduleloaddir
=$withval
12961 systemdmodulesloaddir
=/usr
/lib
/modules-load.d
12966 if test "x$enable_systemd" = xyes
; then :
12968 ZFS_INIT_SYSTEMD
=systemd
12969 ZFS_MODULE_LOAD
=modules-load.d
12970 modulesloaddir
=$systemdmodulesloaddir
12981 # Check whether --enable-sysvinit was given.
12982 if test "${enable_sysvinit+set}" = set; then :
12983 enableval
=$enable_sysvinit;
12985 enable_sysvinit
=yes
12989 if test "x$enable_sysvinit" = xyes
; then :
12990 ZFS_INIT_SYSV
=init.d
12996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dracut directory" >&5
12997 $as_echo_n "checking for dracut directory... " >&6; }
12999 # Check whether --with-dracutdir was given.
13000 if test "${with_dracutdir+set}" = set; then :
13001 withval
=$with_dracutdir; dracutdir
=$withval
13007 if test "x$dracutdir" = xcheck
; then :
13009 path1
=/usr
/share
/dracut
13010 path2
=/usr
/lib
/dracut
13013 if test -d "$path1"; then :
13017 if test -d "$path2"; then :
13020 dracutdir
="$default"
13028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dracutdir" >&5
13029 $as_echo "$dracutdir" >&6; }
13032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for target asm dir" >&5
13033 $as_echo_n "checking for target asm dir... " >&6; }
13034 TARGET_ARCH
=`echo ${target_cpu} | sed -e s/i.86/i386/`
13036 case $TARGET_ARCH in
13038 TARGET_ASM_DIR
=asm-
${TARGET_ARCH}
13041 TARGET_ASM_DIR
=asm-generic
13046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TARGET_ASM_DIR" >&5
13047 $as_echo "$TARGET_ASM_DIR" >&6; }
13052 ac_fn_c_check_header_mongrel
"$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
13053 if test "x$ac_cv_header_zlib_h" = xyes
; then :
13056 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13057 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13059 *** zlib.h missing, zlib-devel package required
13060 See \`config.log' for more details" "$LINENO" 5; }
13065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compress2 in -lz" >&5
13066 $as_echo_n "checking for compress2 in -lz... " >&6; }
13067 if ${ac_cv_lib_z_compress2+:} false
; then :
13068 $as_echo_n "(cached) " >&6
13070 ac_check_lib_save_LIBS
=$LIBS
13072 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13073 /* end confdefs.h. */
13075 /* Override any GCC internal prototype to avoid an error.
13076 Use char because int might match the return type of a GCC
13077 builtin and then its argument prototype would still apply. */
13085 return compress2 ();
13090 if ac_fn_c_try_link
"$LINENO"; then :
13091 ac_cv_lib_z_compress2
=yes
13093 ac_cv_lib_z_compress2
=no
13095 rm -f core conftest.err conftest.
$ac_objext \
13096 conftest
$ac_exeext conftest.
$ac_ext
13097 LIBS
=$ac_check_lib_save_LIBS
13099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_compress2" >&5
13100 $as_echo "$ac_cv_lib_z_compress2" >&6; }
13101 if test "x$ac_cv_lib_z_compress2" = xyes
; then :
13102 cat >>confdefs.h
<<_ACEOF
13103 #define HAVE_LIBZ 1
13109 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13110 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13112 *** compress2() missing, zlib-devel package required
13113 See \`config.log' for more details" "$LINENO" 5; }
13117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uncompress in -lz" >&5
13118 $as_echo_n "checking for uncompress in -lz... " >&6; }
13119 if ${ac_cv_lib_z_uncompress+:} false
; then :
13120 $as_echo_n "(cached) " >&6
13122 ac_check_lib_save_LIBS
=$LIBS
13124 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13125 /* end confdefs.h. */
13127 /* Override any GCC internal prototype to avoid an error.
13128 Use char because int might match the return type of a GCC
13129 builtin and then its argument prototype would still apply. */
13133 char uncompress ();
13137 return uncompress ();
13142 if ac_fn_c_try_link
"$LINENO"; then :
13143 ac_cv_lib_z_uncompress
=yes
13145 ac_cv_lib_z_uncompress
=no
13147 rm -f core conftest.err conftest.
$ac_objext \
13148 conftest
$ac_exeext conftest.
$ac_ext
13149 LIBS
=$ac_check_lib_save_LIBS
13151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_uncompress" >&5
13152 $as_echo "$ac_cv_lib_z_uncompress" >&6; }
13153 if test "x$ac_cv_lib_z_uncompress" = xyes
; then :
13154 cat >>confdefs.h
<<_ACEOF
13155 #define HAVE_LIBZ 1
13161 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13162 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13164 *** uncompress() missing, zlib-devel package required
13165 See \`config.log' for more details" "$LINENO" 5; }
13169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for crc32 in -lz" >&5
13170 $as_echo_n "checking for crc32 in -lz... " >&6; }
13171 if ${ac_cv_lib_z_crc32+:} false
; then :
13172 $as_echo_n "(cached) " >&6
13174 ac_check_lib_save_LIBS
=$LIBS
13176 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13177 /* end confdefs.h. */
13179 /* Override any GCC internal prototype to avoid an error.
13180 Use char because int might match the return type of a GCC
13181 builtin and then its argument prototype would still apply. */
13194 if ac_fn_c_try_link
"$LINENO"; then :
13195 ac_cv_lib_z_crc32
=yes
13197 ac_cv_lib_z_crc32
=no
13199 rm -f core conftest.err conftest.
$ac_objext \
13200 conftest
$ac_exeext conftest.
$ac_ext
13201 LIBS
=$ac_check_lib_save_LIBS
13203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_crc32" >&5
13204 $as_echo "$ac_cv_lib_z_crc32" >&6; }
13205 if test "x$ac_cv_lib_z_crc32" = xyes
; then :
13206 cat >>confdefs.h
<<_ACEOF
13207 #define HAVE_LIBZ 1
13213 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13214 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13216 *** crc32() missing, zlib-devel package required
13217 See \`config.log' for more details" "$LINENO" 5; }
13224 $as_echo "#define HAVE_ZLIB 1" >>confdefs.h
13230 ac_fn_c_check_header_mongrel
"$LINENO" "uuid/uuid.h" "ac_cv_header_uuid_uuid_h" "$ac_includes_default"
13231 if test "x$ac_cv_header_uuid_uuid_h" = xyes
; then :
13234 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13235 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13237 *** uuid/uuid.h missing, libuuid-devel package required
13238 See \`config.log' for more details" "$LINENO" 5; }
13243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uuid_generate in -luuid" >&5
13244 $as_echo_n "checking for uuid_generate in -luuid... " >&6; }
13245 if ${ac_cv_lib_uuid_uuid_generate+:} false
; then :
13246 $as_echo_n "(cached) " >&6
13248 ac_check_lib_save_LIBS
=$LIBS
13249 LIBS
="-luuid $LIBS"
13250 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13251 /* end confdefs.h. */
13253 /* Override any GCC internal prototype to avoid an error.
13254 Use char because int might match the return type of a GCC
13255 builtin and then its argument prototype would still apply. */
13259 char uuid_generate ();
13263 return uuid_generate ();
13268 if ac_fn_c_try_link
"$LINENO"; then :
13269 ac_cv_lib_uuid_uuid_generate
=yes
13271 ac_cv_lib_uuid_uuid_generate
=no
13273 rm -f core conftest.err conftest.
$ac_objext \
13274 conftest
$ac_exeext conftest.
$ac_ext
13275 LIBS
=$ac_check_lib_save_LIBS
13277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_uuid_uuid_generate" >&5
13278 $as_echo "$ac_cv_lib_uuid_uuid_generate" >&6; }
13279 if test "x$ac_cv_lib_uuid_uuid_generate" = xyes
; then :
13280 cat >>confdefs.h
<<_ACEOF
13281 #define HAVE_LIBUUID 1
13284 LIBS
="-luuid $LIBS"
13287 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13288 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13290 *** uuid_generate() missing, libuuid-devel package required
13291 See \`config.log' for more details" "$LINENO" 5; }
13295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uuid_is_null in -luuid" >&5
13296 $as_echo_n "checking for uuid_is_null in -luuid... " >&6; }
13297 if ${ac_cv_lib_uuid_uuid_is_null+:} false
; then :
13298 $as_echo_n "(cached) " >&6
13300 ac_check_lib_save_LIBS
=$LIBS
13301 LIBS
="-luuid $LIBS"
13302 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13303 /* end confdefs.h. */
13305 /* Override any GCC internal prototype to avoid an error.
13306 Use char because int might match the return type of a GCC
13307 builtin and then its argument prototype would still apply. */
13311 char uuid_is_null ();
13315 return uuid_is_null ();
13320 if ac_fn_c_try_link
"$LINENO"; then :
13321 ac_cv_lib_uuid_uuid_is_null
=yes
13323 ac_cv_lib_uuid_uuid_is_null
=no
13325 rm -f core conftest.err conftest.
$ac_objext \
13326 conftest
$ac_exeext conftest.
$ac_ext
13327 LIBS
=$ac_check_lib_save_LIBS
13329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_uuid_uuid_is_null" >&5
13330 $as_echo "$ac_cv_lib_uuid_uuid_is_null" >&6; }
13331 if test "x$ac_cv_lib_uuid_uuid_is_null" = xyes
; then :
13332 cat >>confdefs.h
<<_ACEOF
13333 #define HAVE_LIBUUID 1
13336 LIBS
="-luuid $LIBS"
13339 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13340 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13342 *** uuid_is_null() missing, libuuid-devel package required
13343 See \`config.log' for more details" "$LINENO" 5; }
13350 $as_echo "#define HAVE_LIBUUID 1" >>confdefs.h
13355 # Check whether --with-blkid was given.
13356 if test "${with_blkid+set}" = set; then :
13357 withval
=$with_blkid;
13364 if test "x$with_blkid" = xyes
; then :
13369 $as_echo "#define HAVE_LIBBLKID 1" >>confdefs.h
13374 if test "x$with_blkid" = xcheck
; then :
13376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for blkid_get_cache in -lblkid" >&5
13377 $as_echo_n "checking for blkid_get_cache in -lblkid... " >&6; }
13378 if ${ac_cv_lib_blkid_blkid_get_cache+:} false
; then :
13379 $as_echo_n "(cached) " >&6
13381 ac_check_lib_save_LIBS
=$LIBS
13382 LIBS
="-lblkid $LIBS"
13383 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13384 /* end confdefs.h. */
13386 /* Override any GCC internal prototype to avoid an error.
13387 Use char because int might match the return type of a GCC
13388 builtin and then its argument prototype would still apply. */
13392 char blkid_get_cache ();
13396 return blkid_get_cache ();
13401 if ac_fn_c_try_link
"$LINENO"; then :
13402 ac_cv_lib_blkid_blkid_get_cache
=yes
13404 ac_cv_lib_blkid_blkid_get_cache
=no
13406 rm -f core conftest.err conftest.
$ac_objext \
13407 conftest
$ac_exeext conftest.
$ac_ext
13408 LIBS
=$ac_check_lib_save_LIBS
13410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_blkid_blkid_get_cache" >&5
13411 $as_echo "$ac_cv_lib_blkid_blkid_get_cache" >&6; }
13412 if test "x$ac_cv_lib_blkid_blkid_get_cache" = xyes
; then :
13414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for blkid zfs support" >&5
13415 $as_echo_n "checking for blkid zfs support... " >&6; }
13418 truncate
-s 64M
$ZFS_DEV
13419 echo -en "\x0c\xb1\xba\0\0\0\0\0" | \
13420 dd of
=$ZFS_DEV bs
=1k count
=8 \
13421 seek
=128 conv
=notrunc
&>/dev
/null \
13422 >/dev
/null
2>/dev
/null
13423 echo -en "\x0c\xb1\xba\0\0\0\0\0" | \
13424 dd of
=$ZFS_DEV bs
=1k count
=8 \
13425 seek
=132 conv
=notrunc
&>/dev
/null \
13426 >/dev
/null
2>/dev
/null
13427 echo -en "\x0c\xb1\xba\0\0\0\0\0" | \
13428 dd of
=$ZFS_DEV bs
=1k count
=8 \
13429 seek
=136 conv
=notrunc
&>/dev
/null \
13430 >/dev
/null
2>/dev
/null
13431 echo -en "\x0c\xb1\xba\0\0\0\0\0" | \
13432 dd of
=$ZFS_DEV bs
=1k count
=8 \
13433 seek
=140 conv
=notrunc
&>/dev
/null \
13434 >/dev
/null
2>/dev
/null
13439 if test "$cross_compiling" = yes; then :
13440 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13441 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13442 as_fn_error $?
"cannot run test program while cross compiling
13443 See \`config.log' for more details" "$LINENO" 5; }
13445 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13446 /* end confdefs.h. */
13449 #include <stdlib.h>
13450 #include <blkid/blkid.h>
13459 if (blkid_get_cache(&cache, NULL) < 0)
13462 value = blkid_get_tag_value(cache, "TYPE",
13465 blkid_put_cache(cache);
13469 if (strcmp(value, "zfs_member")) {
13471 blkid_put_cache(cache);
13476 blkid_put_cache(cache);
13482 if ac_fn_c_try_run
"$LINENO"; then :
13485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13486 $as_echo "yes" >&6; }
13490 $as_echo "#define HAVE_LIBBLKID 1" >>confdefs.h
13496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13497 $as_echo "no" >&6; }
13498 if test "x$with_blkid" != xcheck
; then :
13499 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13500 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13501 as_fn_error $?
"--with-blkid given but unavailable
13502 See \`config.log' for more details" "$LINENO" 5; }
13506 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
13507 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
13515 if test "x$with_blkid" != xcheck
; then :
13516 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13517 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13518 as_fn_error $?
"--with-blkid given but unavailable
13519 See \`config.log' for more details" "$LINENO" 5; }
13529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -Wframe-larger-than=<size> support" >&5
13530 $as_echo_n "checking for -Wframe-larger-than=<size> support... " >&6; }
13532 saved_flags
="$CFLAGS"
13533 CFLAGS
="$CFLAGS -Wframe-larger-than=1024"
13535 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13536 /* end confdefs.h. */
13546 if ac_fn_c_try_compile
"$LINENO"; then :
13548 FRAME_LARGER_THAN
=-Wframe-larger-than=1024
13549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13550 $as_echo "yes" >&6; }
13555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13556 $as_echo "no" >&6; }
13559 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13561 CFLAGS
="$saved_flags"
13565 if test "x$runstatedir" = x
; then
13566 runstatedir
='${localstatedir}/run'
13571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking makedev() is declared in sys/sysmacros.h" >&5
13572 $as_echo_n "checking makedev() is declared in sys/sysmacros.h... " >&6; }
13573 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13574 /* end confdefs.h. */
13576 #include <sys/sysmacros.h>
13589 if ac_fn_c_try_compile
"$LINENO"; then :
13591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13592 $as_echo "yes" >&6; }
13594 $as_echo "#define HAVE_MAKEDEV_IN_SYSMACROS 1" >>confdefs.h
13599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13600 $as_echo "no" >&6; }
13603 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking makedev() is declared in sys/mkdev.h" >&5
13607 $as_echo_n "checking makedev() is declared in sys/mkdev.h... " >&6; }
13608 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13609 /* end confdefs.h. */
13611 #include <sys/mkdev.h>
13624 if ac_fn_c_try_compile
"$LINENO"; then :
13626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13627 $as_echo "yes" >&6; }
13629 $as_echo "#define HAVE_MAKEDEV_IN_MKDEV 1" >>confdefs.h
13634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13635 $as_echo "no" >&6; }
13638 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -Wno-format-truncation support" >&5
13642 $as_echo_n "checking for -Wno-format-truncation support... " >&6; }
13644 saved_flags
="$CFLAGS"
13645 CFLAGS
="$CFLAGS -Wno-format-truncation"
13647 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13648 /* end confdefs.h. */
13658 if ac_fn_c_try_compile
"$LINENO"; then :
13660 NO_FORMAT_TRUNCATION
=-Wno-format-truncation
13661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13662 $as_echo "yes" >&6; }
13666 NO_FORMAT_TRUNCATION
=
13667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13668 $as_echo "no" >&6; }
13671 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13673 CFLAGS
="$saved_flags"
13676 for ac_func
in mlockall
13678 ac_fn_c_check_func
"$LINENO" "mlockall" "ac_cv_func_mlockall"
13679 if test "x$ac_cv_func_mlockall" = xyes
; then :
13680 cat >>confdefs.h
<<_ACEOF
13681 #define HAVE_MLOCKALL 1
13691 # Check whether --with-linux was given.
13692 if test "${with_linux+set}" = set; then :
13693 withval
=$with_linux; kernelsrc
="$withval"
13698 # Check whether --with-linux-obj was given.
13699 if test "${with_linux_obj+set}" = set; then :
13700 withval
=$with_linux_obj; kernelbuild
="$withval"
13704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking kernel source directory" >&5
13705 $as_echo_n "checking kernel source directory... " >&6; }
13706 if test -z "$kernelsrc"; then :
13708 if test -e "/lib/modules/$(uname -r)/source"; then :
13710 headersdir
="/lib/modules/$(uname -r)/source"
13711 sourcelink
=$
(readlink
-f "$headersdir")
13713 elif test -e "/lib/modules/$(uname -r)/build"; then :
13715 headersdir
="/lib/modules/$(uname -r)/build"
13716 sourcelink
=$
(readlink
-f "$headersdir")
13720 sourcelink
=$
(ls -1d /usr
/src
/kernels
/* \
13722 2>/dev
/null |
grep -v obj |
tail -1)
13726 if test -n "$sourcelink" && test -e ${sourcelink}; then :
13728 kernelsrc
=`readlink -f ${sourcelink}`
13732 kernelsrc
="Not found"
13738 if test "$kernelsrc" = "NONE"; then :
13746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kernelsrc" >&5
13747 $as_echo "$kernelsrc" >&6; }
13748 if test ! -d "$kernelsrc"; then :
13751 *** Please make sure the kernel devel package for your distribution
13752 *** is installed and then try again. If that fails, you can specify the
13753 *** location of the kernel source with the '--with-linux=PATH' option." "$LINENO" 5
13757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking kernel build directory" >&5
13758 $as_echo_n "checking kernel build directory... " >&6; }
13759 if test -z "$kernelbuild"; then :
13761 if test -e "/lib/modules/$(uname -r)/build"; then :
13763 kernelbuild
=`readlink -f /lib/modules/$(uname -r)/build`
13765 elif test -d ${kernelsrc}-obj/${target_cpu}/${target_cpu}; then :
13767 kernelbuild
=${kernelsrc}-obj/${target_cpu}/${target_cpu}
13769 elif test -d ${kernelsrc}-obj/${target_cpu}/default
; then :
13771 kernelbuild
=${kernelsrc}-obj/${target_cpu}/default
13773 elif test -d `dirname ${kernelsrc}`/build-
${target_cpu}; then :
13775 kernelbuild
=`dirname ${kernelsrc}`/build-
${target_cpu}
13779 kernelbuild
=${kernelsrc}
13784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kernelbuild" >&5
13785 $as_echo "$kernelbuild" >&6; }
13787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking kernel source version" >&5
13788 $as_echo_n "checking kernel source version... " >&6; }
13789 utsrelease1
=$kernelbuild/include
/linux
/version.h
13790 utsrelease2
=$kernelbuild/include
/linux
/utsrelease.h
13791 utsrelease3
=$kernelbuild/include
/generated
/utsrelease.h
13792 if test -r $utsrelease1 && fgrep
-q UTS_RELEASE
$utsrelease1; then :
13794 utsrelease
=linux
/version.h
13796 elif test -r $utsrelease2 && fgrep
-q UTS_RELEASE
$utsrelease2; then :
13798 utsrelease
=linux
/utsrelease.h
13800 elif test -r $utsrelease3 && fgrep
-q UTS_RELEASE
$utsrelease3; then :
13802 utsrelease
=generated
/utsrelease.h
13806 if test "$utsrelease"; then :
13808 kernsrcver
=`(echo "#include <$utsrelease>";
13809 echo "kernsrcver=UTS_RELEASE") |
13810 cpp -I $kernelbuild/include |
13811 grep "^kernsrcver=" | cut -d \" -f 2`
13813 if test -z "$kernsrcver"; then :
13815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not found" >&5
13816 $as_echo "Not found" >&6; }
13817 as_fn_error $?
"*** Cannot determine kernel version." "$LINENO" 5
13823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not found" >&5
13824 $as_echo "Not found" >&6; }
13825 if test "x$enable_linux_builtin" != xyes
; then
13826 as_fn_error $?
"*** Cannot find UTS_RELEASE definition." "$LINENO" 5
13829 *** Cannot find UTS_RELEASE definition.
13830 *** Please run 'make prepare' inside the kernel source tree." "$LINENO" 5
13835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kernsrcver" >&5
13836 $as_echo "$kernsrcver" >&6; }
13839 LINUX_OBJ
=${kernelbuild}
13840 LINUX_VERSION
=${kernsrcver}
13847 modpost
=$LINUX/scripts
/Makefile.modpost
13848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking kernel file name for module symbols" >&5
13849 $as_echo_n "checking kernel file name for module symbols... " >&6; }
13850 if test "x$enable_linux_builtin" != xyes
-a -f "$modpost"; then :
13852 if grep -q Modules.symvers
$modpost; then :
13854 LINUX_SYMBOLS
=Modules.symvers
13858 LINUX_SYMBOLS
=Module.symvers
13862 if test ! -f "$LINUX_OBJ/$LINUX_SYMBOLS"; then :
13865 *** Please make sure the kernel devel package for your distribution
13866 *** is installed. If you are building with a custom kernel, make sure the
13867 *** kernel is configured, built, and the '--with-linux=PATH' configure
13868 *** option refers to the location of the kernel source." "$LINENO" 5
13877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINUX_SYMBOLS" >&5
13878 $as_echo "$LINUX_SYMBOLS" >&6; }
13884 # Check whether --with-spl was given.
13885 if test "${with_spl+set}" = set; then :
13886 withval
=$with_spl; splsrc
="$withval"
13891 # Check whether --with-spl-obj was given.
13892 if test "${with_spl_obj+set}" = set; then :
13893 withval
=$with_spl_obj; splbuild
="$withval"
13898 # Check whether --with-spl-timeout was given.
13899 if test "${with_spl_timeout+set}" = set; then :
13900 withval
=$with_spl_timeout; timeout
="$withval"
13906 splsrc0
="/var/lib/dkms/spl/${VERSION}/build"
13907 splsrc1
="/usr/local/src/spl-${VERSION}/${LINUX_VERSION}"
13908 splsrc2
="/usr/local/src/spl-${VERSION}"
13909 splsrc3
="/usr/src/spl-${VERSION}/${LINUX_VERSION}"
13910 splsrc4
="/usr/src/spl-${VERSION}"
13914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking spl source directory" >&5
13915 $as_echo_n "checking spl source directory... " >&6; }
13916 if test -z "${splsrc}"; then :
13918 if test -e "${splsrc0}/spl.release.in"; then :
13922 elif test -e "${splsrc1}/spl.release.in"; then :
13926 elif test -e "${splsrc2}/spl.release.in"; then :
13930 elif test -e "${splsrc3}/spl.release.in"; then :
13932 splsrc
=$
(readlink
-f "${splsrc3}")
13934 elif test -e "${splsrc4}/spl.release.in" ; then :
13938 elif test -e "${splsrc5}/spl.release.in"; then :
13940 splsrc
=$
(readlink
-f "${splsrc5}")
13942 elif test -e "${splsrc6}/spl.release.in" ; then :
13954 if test "$splsrc" = "NONE"; then :
13963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $splsrc" >&5
13964 $as_echo "$splsrc" >&6; }
13965 if test ! -e "$splsrc/spl.release.in"; then :
13968 *** Please make sure the kmod spl devel package for your distribution
13969 *** is installed then try again. If that fails you can specify the
13970 *** location of the spl source with the '--with-spl=PATH' option." "$LINENO" 5
13974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking spl build directory" >&5
13975 $as_echo_n "checking spl build directory... " >&6; }
13977 if test -z "$splbuild"; then :
13979 if test -e "${splsrc}/${LINUX_VERSION}/spl_config.h" ; then :
13981 splbuild
="${splsrc}/${LINUX_VERSION}"
13983 elif test -e "${splsrc}/spl_config.h" ; then :
13985 splbuild
="${splsrc}"
13987 elif find -L "${splsrc}" -name spl_config.h
2> /dev
/null |
grep -wq spl_config.h
; then :
13989 splbuild
=$
(find -L "${splsrc}" -name spl_config.h |
sed 's,/spl_config.h,,')
13993 splbuild
="Not found"
13998 if test -e "$splbuild/spl_config.h" -o $timeout -le 0; then :
14005 timeout
=$
((timeout-1
))
14010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $splbuild" >&5
14011 $as_echo "$splbuild" >&6; }
14012 if ! test -e "$splbuild/spl_config.h"; then :
14015 *** Please make sure the kmod spl devel <kernel> package for your
14016 *** distribution is installed then try again. If that fails you
14017 *** can specify the location of the spl objects with the
14018 *** '--with-spl-obj=PATH' option." "$LINENO" 5
14022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking spl source version" >&5
14023 $as_echo_n "checking spl source version... " >&6; }
14024 if test -r $splbuild/spl_config.h
&&
14025 fgrep
-q SPL_META_VERSION
$splbuild/spl_config.h
; then :
14028 splsrcver
=`(echo "#include <spl_config.h>";
14029 echo "splsrcver=SPL_META_VERSION-SPL_META_RELEASE") |
14031 grep "^splsrcver=" | tr -d \" | cut -d= -f2`
14035 if test -z "$splsrcver"; then :
14037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not found" >&5
14038 $as_echo "Not found" >&6; }
14040 *** Cannot determine the version of the spl source.
14041 *** Please prepare the spl source before running this script" "$LINENO" 5
14045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $splsrcver" >&5
14046 $as_echo "$splsrcver" >&6; }
14049 SPL_OBJ
=${splbuild}
14050 SPL_VERSION
=${splsrcver}
14056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking spl file name for module symbols" >&5
14057 $as_echo_n "checking spl file name for module symbols... " >&6; }
14061 if test -r $SPL_OBJ/Module.symvers
; then :
14063 SPL_SYMBOLS
=Module.symvers
14065 elif test -r $SPL_OBJ/Modules.symvers
; then :
14067 SPL_SYMBOLS
=Modules.symvers
14069 elif test -r $SPL_OBJ/module
/Module.symvers
; then :
14071 SPL_SYMBOLS
=Module.symvers
14073 elif test -r $SPL_OBJ/module
/Modules.symvers
; then :
14075 SPL_SYMBOLS
=Modules.symvers
14079 if test $SPL_SYMBOLS != NONE
-o $timeout -le 0; then :
14086 timeout
=$
((timeout-1
))
14091 if test "$SPL_SYMBOLS" = NONE
; then :
14093 SPL_SYMBOLS
=$LINUX_SYMBOLS
14097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SPL_SYMBOLS" >&5
14098 $as_echo "$SPL_SYMBOLS" >&6; }
14102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether modules can be built" >&5
14103 $as_echo_n "checking whether modules can be built... " >&6; }
14106 cat confdefs.h
- <<_ACEOF >conftest.c
14121 cat - <<_ACEOF >conftest.h
14126 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
14127 echo "obj-m := conftest.o" >build
/Makefile
14129 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
14130 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
14131 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14132 (eval $ac_try) 2>&5
14134 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14135 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
14136 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14137 (eval $ac_try) 2>&5
14139 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14140 test $ac_status = 0; }; }; then :
14142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14143 $as_echo "yes" >&6; }
14146 $as_echo "$as_me: failed program was:" >&5
14147 sed 's/^/| /' conftest.
$ac_ext >&5
14149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14150 $as_echo "no" >&6; }
14151 if test "x$enable_linux_builtin" != xyes
; then
14152 as_fn_error $?
"*** Unable to build an empty module." "$LINENO" 5
14155 *** Unable to build an empty module.
14156 *** Please run 'make scripts' inside the kernel source tree." "$LINENO" 5
14167 if test "x$cross_compiling" != xyes
; then :
14169 if test "$cross_compiling" = yes; then :
14170 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14171 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14172 as_fn_error $?
"cannot run test program while cross compiling
14173 See \`config.log' for more details" "$LINENO" 5; }
14175 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14176 /* end confdefs.h. */
14179 #include "$LINUX/include/linux/license.h"
14185 return !license_is_gpl_compatible("$ZFS_META_LICENSE");
14192 if ac_fn_c_try_run
"$LINENO"; then :
14195 $as_echo "#define ZFS_IS_GPL_COMPATIBLE 1" >>confdefs.h
14199 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
14200 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
14207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether kernel was built with 16K or larger stacks" >&5
14208 $as_echo_n "checking whether kernel was built with 16K or larger stacks... " >&6; }
14211 cat confdefs.h
- <<_ACEOF >conftest.c
14214 #include <linux/module.h>
14220 #if (THREAD_SIZE < 16384)
14221 #error "THREAD_SIZE is less than 16K"
14232 cat - <<_ACEOF >conftest.h
14237 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
14238 echo "obj-m := conftest.o" >build
/Makefile
14240 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
14241 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
14242 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14243 (eval $ac_try) 2>&5
14245 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14246 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
14247 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14248 (eval $ac_try) 2>&5
14250 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14251 test $ac_status = 0; }; }; then :
14253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14254 $as_echo "yes" >&6; }
14256 $as_echo "#define HAVE_LARGE_STACKS 1" >>confdefs.h
14260 $as_echo "$as_me: failed program was:" >&5
14261 sed 's/^/| /' conftest.
$ac_ext >&5
14263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14264 $as_echo "no" >&6; }
14275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether kernel was built with CONFIG_DEBUG_LOCK_ALLOC" >&5
14276 $as_echo_n "checking whether kernel was built with CONFIG_DEBUG_LOCK_ALLOC... " >&6; }
14279 cat confdefs.h
- <<_ACEOF >conftest.c
14282 #include <linux/module.h>
14288 #ifndef CONFIG_DEBUG_LOCK_ALLOC
14289 #error CONFIG_DEBUG_LOCK_ALLOC not #defined
14300 cat - <<_ACEOF >conftest.h
14305 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
14306 echo "obj-m := conftest.o" >build
/Makefile
14308 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
14309 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
14310 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14311 (eval $ac_try) 2>&5
14313 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14314 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
14315 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14316 (eval $ac_try) 2>&5
14318 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14319 test $ac_status = 0; }; }; then :
14321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14322 $as_echo "yes" >&6; }
14324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mutex_lock() is GPL-only" >&5
14325 $as_echo_n "checking whether mutex_lock() is GPL-only... " >&6; }
14326 tmp_flags
="$EXTRA_KCFLAGS"
14329 cat confdefs.h
- <<_ACEOF >conftest.c
14332 #include <linux/module.h>
14333 #include <linux/mutex.h>
14335 MODULE_LICENSE("$ZFS_META_LICENSE");
14345 mutex_unlock(&lock);
14355 cat - <<_ACEOF >conftest.h
14360 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
14361 echo "obj-m := conftest.o" >build
/Makefile
14363 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
14364 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
14365 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14366 (eval $ac_try) 2>&5
14368 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14369 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
14370 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14371 (eval $ac_try) 2>&5
14373 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14374 test $ac_status = 0; }; }; then :
14376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14377 $as_echo "no" >&6; }
14380 $as_echo "$as_me: failed program was:" >&5
14381 sed 's/^/| /' conftest.
$ac_ext >&5
14383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14384 $as_echo "yes" >&6; }
14386 *** Kernel built with CONFIG_DEBUG_LOCK_ALLOC which is incompatible
14387 *** with the CDDL license and will prevent the module linking stage
14388 *** from succeeding. You must rebuild your kernel without this
14389 *** option enabled." "$LINENO" 5
14397 EXTRA_KCFLAGS
="$tmp_flags"
14401 $as_echo "$as_me: failed program was:" >&5
14402 sed 's/^/| /' conftest.
$ac_ext >&5
14404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14405 $as_echo "no" >&6; }
14418 tmp_flags
="$EXTRA_KCFLAGS"
14419 EXTRA_KCFLAGS
="-I\$(src)"
14421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether DECLARE_EVENT_CLASS() is available" >&5
14422 $as_echo_n "checking whether DECLARE_EVENT_CLASS() is available... " >&6; }
14425 cat confdefs.h
- <<_ACEOF >conftest.c
14428 #include <linux/module.h>
14429 MODULE_LICENSE(ZFS_META_LICENSE);
14431 #define CREATE_TRACE_POINTS
14432 #include "conftest.h"
14438 trace_zfs_autoconf_event_one(1UL);
14439 trace_zfs_autoconf_event_two(2UL);
14449 cat - <<_ACEOF >conftest.h
14451 #if !defined(_CONFTEST_H) || defined(TRACE_HEADER_MULTI_READ)
14452 #define _CONFTEST_H
14454 #undef TRACE_SYSTEM
14455 #define TRACE_SYSTEM zfs
14456 #include <linux/tracepoint.h>
14458 DECLARE_EVENT_CLASS(zfs_autoconf_event_class,
14459 TP_PROTO(unsigned long i),
14462 __field(unsigned long, i)
14467 TP_printk("i = %lu", __entry->i)
14470 #define DEFINE_AUTOCONF_EVENT(name) \
14471 DEFINE_EVENT(zfs_autoconf_event_class, name, \
14472 TP_PROTO(unsigned long i), \
14474 DEFINE_AUTOCONF_EVENT(zfs_autoconf_event_one);
14475 DEFINE_AUTOCONF_EVENT(zfs_autoconf_event_two);
14477 #endif /* _CONFTEST_H */
14479 #undef TRACE_INCLUDE_PATH
14480 #define TRACE_INCLUDE_PATH .
14481 #define TRACE_INCLUDE_FILE conftest
14482 #include <trace/define_trace.h>
14487 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
14488 echo "obj-m := conftest.o" >build
/Makefile
14490 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
14491 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
14492 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14493 (eval $ac_try) 2>&5
14495 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14496 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
14497 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14498 (eval $ac_try) 2>&5
14500 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14501 test $ac_status = 0; }; }; then :
14503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14504 $as_echo "yes" >&6; }
14506 $as_echo "#define HAVE_DECLARE_EVENT_CLASS 1" >>confdefs.h
14510 $as_echo "$as_me: failed program was:" >&5
14511 sed 's/^/| /' conftest.
$ac_ext >&5
14513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14514 $as_echo "no" >&6; }
14522 EXTRA_KCFLAGS
="$tmp_flags"
14525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether current->bio_tail exists" >&5
14526 $as_echo_n "checking whether current->bio_tail exists... " >&6; }
14529 cat confdefs.h
- <<_ACEOF >conftest.c
14532 #include <linux/sched.h>
14538 current->bio_tail = (struct bio **) NULL;
14548 cat - <<_ACEOF >conftest.h
14553 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
14554 echo "obj-m := conftest.o" >build
/Makefile
14556 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
14557 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
14558 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14559 (eval $ac_try) 2>&5
14561 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14562 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
14563 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14564 (eval $ac_try) 2>&5
14566 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14567 test $ac_status = 0; }; }; then :
14569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14570 $as_echo "yes" >&6; }
14572 $as_echo "#define HAVE_CURRENT_BIO_TAIL 1" >>confdefs.h
14576 $as_echo "$as_me: failed program was:" >&5
14577 sed 's/^/| /' conftest.
$ac_ext >&5
14579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14580 $as_echo "no" >&6; }
14581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether current->bio_list exists" >&5
14582 $as_echo_n "checking whether current->bio_list exists... " >&6; }
14585 cat confdefs.h
- <<_ACEOF >conftest.c
14588 #include <linux/sched.h>
14594 current->bio_list = (struct bio_list *) NULL;
14604 cat - <<_ACEOF >conftest.h
14609 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
14610 echo "obj-m := conftest.o" >build
/Makefile
14612 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
14613 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
14614 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14615 (eval $ac_try) 2>&5
14617 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14618 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
14619 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14620 (eval $ac_try) 2>&5
14622 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14623 test $ac_status = 0; }; }; then :
14625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14626 $as_echo "yes" >&6; }
14628 $as_echo "#define HAVE_CURRENT_BIO_LIST 1" >>confdefs.h
14632 $as_echo "$as_me: failed program was:" >&5
14633 sed 's/^/| /' conftest.
$ac_ext >&5
14635 as_fn_error $?
"no - Please file a bug report at
14636 https://github.com/zfsonlinux/zfs/issues/new" "$LINENO" 5
14653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether submit_bio() wants 1 arg" >&5
14654 $as_echo_n "checking whether submit_bio() wants 1 arg... " >&6; }
14657 cat confdefs.h
- <<_ACEOF >conftest.c
14660 #include <linux/bio.h>
14667 struct bio *bio = NULL;
14668 blk_qc = submit_bio(bio);
14678 cat - <<_ACEOF >conftest.h
14683 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
14684 echo "obj-m := conftest.o" >build
/Makefile
14686 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
14687 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
14688 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14689 (eval $ac_try) 2>&5
14691 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14692 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
14693 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14694 (eval $ac_try) 2>&5
14696 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14697 test $ac_status = 0; }; }; then :
14699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14700 $as_echo "yes" >&6; }
14702 $as_echo "#define HAVE_1ARG_SUBMIT_BIO 1" >>confdefs.h
14706 $as_echo "$as_me: failed program was:" >&5
14707 sed 's/^/| /' conftest.
$ac_ext >&5
14709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14710 $as_echo "no" >&6; }
14720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking block device operation prototypes" >&5
14721 $as_echo_n "checking block device operation prototypes... " >&6; }
14722 tmp_flags
="$EXTRA_KCFLAGS"
14723 EXTRA_KCFLAGS
="${NO_UNUSED_BUT_SET_VARIABLE}"
14726 cat confdefs.h
- <<_ACEOF >conftest.c
14729 #include <linux/blkdev.h>
14731 int blk_open(struct block_device *bdev, fmode_t mode)
14733 int blk_ioctl(struct block_device *bdev, fmode_t mode,
14734 unsigned x, unsigned long y) { return 0; }
14735 int blk_compat_ioctl(struct block_device * bdev, fmode_t mode,
14736 unsigned x, unsigned long y) { return 0; }
14738 static const struct block_device_operations
14739 bops __attribute__ ((unused)) = {
14742 .ioctl = blk_ioctl,
14743 .compat_ioctl = blk_compat_ioctl,
14759 cat - <<_ACEOF >conftest.h
14764 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
14765 echo "obj-m := conftest.o" >build
/Makefile
14767 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
14768 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
14769 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14770 (eval $ac_try) 2>&5
14772 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14773 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
14774 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14775 (eval $ac_try) 2>&5
14777 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14778 test $ac_status = 0; }; }; then :
14780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: struct block_device" >&5
14781 $as_echo "struct block_device" >&6; }
14783 $as_echo "#define HAVE_BDEV_BLOCK_DEVICE_OPERATIONS 1" >>confdefs.h
14787 $as_echo "$as_me: failed program was:" >&5
14788 sed 's/^/| /' conftest.
$ac_ext >&5
14790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: struct inode" >&5
14791 $as_echo "struct inode" >&6; }
14799 EXTRA_KCFLAGS
="$tmp_flags"
14802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether block_device_operations.release is void" >&5
14803 $as_echo_n "checking whether block_device_operations.release is void... " >&6; }
14804 tmp_flags
="$EXTRA_KCFLAGS"
14805 EXTRA_KCFLAGS
="${NO_UNUSED_BUT_SET_VARIABLE}"
14808 cat confdefs.h
- <<_ACEOF >conftest.c
14811 #include <linux/blkdev.h>
14813 void blk_release(struct gendisk *g, fmode_t mode) { return; }
14815 static const struct block_device_operations
14816 bops __attribute__ ((unused)) = {
14818 .release = blk_release,
14820 .compat_ioctl = NULL,
14836 cat - <<_ACEOF >conftest.h
14841 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
14842 echo "obj-m := conftest.o" >build
/Makefile
14844 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
14845 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
14846 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14847 (eval $ac_try) 2>&5
14849 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14850 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
14851 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14852 (eval $ac_try) 2>&5
14854 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14855 test $ac_status = 0; }; }; then :
14857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: void" >&5
14858 $as_echo "void" >&6; }
14860 $as_echo "#define HAVE_BLOCK_DEVICE_OPERATIONS_RELEASE_VOID 1" >>confdefs.h
14864 $as_echo "$as_me: failed program was:" >&5
14865 sed 's/^/| /' conftest.
$ac_ext >&5
14867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: int" >&5
14868 $as_echo "int" >&6; }
14876 EXTRA_KCFLAGS
="$tmp_flags"
14878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether kernel defines fmode_t" >&5
14879 $as_echo_n "checking whether kernel defines fmode_t... " >&6; }
14882 cat confdefs.h
- <<_ACEOF >conftest.c
14885 #include <linux/types.h>
14891 fmode_t *ptr __attribute__ ((unused));
14901 cat - <<_ACEOF >conftest.h
14906 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
14907 echo "obj-m := conftest.o" >build
/Makefile
14909 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
14910 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
14911 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14912 (eval $ac_try) 2>&5
14914 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14915 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
14916 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14917 (eval $ac_try) 2>&5
14919 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14920 test $ac_status = 0; }; }; then :
14922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14923 $as_echo "yes" >&6; }
14925 $as_echo "#define HAVE_FMODE_T 1" >>confdefs.h
14929 $as_echo "$as_me: failed program was:" >&5
14930 sed 's/^/| /' conftest.
$ac_ext >&5
14932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14933 $as_echo "no" >&6; }
14943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether kernel defines KOBJ_NAME_LEN" >&5
14944 $as_echo_n "checking whether kernel defines KOBJ_NAME_LEN... " >&6; }
14947 cat confdefs.h
- <<_ACEOF >conftest.c
14950 #include <linux/kobject.h>
14956 int val __attribute__ ((unused));
14957 val = KOBJ_NAME_LEN;
14967 cat - <<_ACEOF >conftest.h
14972 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
14973 echo "obj-m := conftest.o" >build
/Makefile
14975 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
14976 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
14977 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14978 (eval $ac_try) 2>&5
14980 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14981 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
14982 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14983 (eval $ac_try) 2>&5
14985 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14986 test $ac_status = 0; }; }; then :
14988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14989 $as_echo "yes" >&6; }
14991 $as_echo "#define HAVE_KOBJ_NAME_LEN 1" >>confdefs.h
14995 $as_echo "$as_me: failed program was:" >&5
14996 sed 's/^/| /' conftest.
$ac_ext >&5
14998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14999 $as_echo "no" >&6; }
15009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether blkdev_get() wants 3 args" >&5
15010 $as_echo_n "checking whether blkdev_get() wants 3 args... " >&6; }
15013 cat confdefs.h
- <<_ACEOF >conftest.c
15016 #include <linux/fs.h>
15022 struct block_device *bdev = NULL;
15023 (void) blkdev_get(bdev, 0, NULL);
15033 cat - <<_ACEOF >conftest.h
15038 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
15039 echo "obj-m := conftest.o" >build
/Makefile
15041 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
15042 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
15043 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15044 (eval $ac_try) 2>&5
15046 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15047 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
15048 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15049 (eval $ac_try) 2>&5
15051 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15052 test $ac_status = 0; }; }; then :
15054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15055 $as_echo "yes" >&6; }
15057 $as_echo "#define HAVE_3ARG_BLKDEV_GET 1" >>confdefs.h
15061 $as_echo "$as_me: failed program was:" >&5
15062 sed 's/^/| /' conftest.
$ac_ext >&5
15064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15065 $as_echo "no" >&6; }
15074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether blkdev_get_by_path() is available" >&5
15075 $as_echo_n "checking whether blkdev_get_by_path() is available... " >&6; }
15079 cat confdefs.h
- <<_ACEOF >conftest.c
15082 #include <linux/fs.h>
15088 blkdev_get_by_path(NULL, 0, NULL);
15098 cat - <<_ACEOF >conftest.h
15103 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
15104 echo "obj-m := conftest.o" >build
/Makefile
15106 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
15107 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
15108 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15109 (eval $ac_try) 2>&5
15111 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15112 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
15113 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15114 (eval $ac_try) 2>&5
15116 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15117 test $ac_status = 0; }; }; then :
15120 $as_echo "$as_me: failed program was:" >&5
15121 sed 's/^/| /' conftest.
$ac_ext >&5
15129 if test $rc -ne 0; then :
15131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15132 $as_echo "no" >&6; }
15135 if test "x$enable_linux_builtin" != xyes
; then
15137 grep -q -E '[[:space:]]blkdev_get_by_path[[:space:]]' \
15138 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
15140 if test $rc -ne 0; then
15142 for file in fs
/block_dev.c
; do
15143 grep -q -E "EXPORT_SYMBOL.*(blkdev_get_by_path)" \
15144 "$LINUX/$file" 2>/dev
/null
15146 if test $rc -eq 0; then
15151 if test $export -eq 0; then :
15161 if test $rc -ne 0; then :
15163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15164 $as_echo "no" >&6; }
15168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15169 $as_echo "yes" >&6; }
15171 $as_echo "#define HAVE_BLKDEV_GET_BY_PATH 1" >>confdefs.h
15178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether open_bdev_exclusive() is available" >&5
15179 $as_echo_n "checking whether open_bdev_exclusive() is available... " >&6; }
15183 cat confdefs.h
- <<_ACEOF >conftest.c
15186 #include <linux/fs.h>
15192 open_bdev_exclusive(NULL, 0, NULL);
15202 cat - <<_ACEOF >conftest.h
15207 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
15208 echo "obj-m := conftest.o" >build
/Makefile
15210 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
15211 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
15212 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15213 (eval $ac_try) 2>&5
15215 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15216 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
15217 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15218 (eval $ac_try) 2>&5
15220 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15221 test $ac_status = 0; }; }; then :
15224 $as_echo "$as_me: failed program was:" >&5
15225 sed 's/^/| /' conftest.
$ac_ext >&5
15233 if test $rc -ne 0; then :
15235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15236 $as_echo "no" >&6; }
15239 if test "x$enable_linux_builtin" != xyes
; then
15241 grep -q -E '[[:space:]]open_bdev_exclusive[[:space:]]' \
15242 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
15244 if test $rc -ne 0; then
15246 for file in fs
/block_dev.c
; do
15247 grep -q -E "EXPORT_SYMBOL.*(open_bdev_exclusive)" \
15248 "$LINUX/$file" 2>/dev
/null
15250 if test $rc -eq 0; then
15255 if test $export -eq 0; then :
15265 if test $rc -ne 0; then :
15267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15268 $as_echo "no" >&6; }
15272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15273 $as_echo "yes" >&6; }
15275 $as_echo "#define HAVE_OPEN_BDEV_EXCLUSIVE 1" >>confdefs.h
15282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lookup_bdev() wants 1 arg" >&5
15283 $as_echo_n "checking whether lookup_bdev() wants 1 arg... " >&6; }
15287 cat confdefs.h
- <<_ACEOF >conftest.c
15290 #include <linux/fs.h>
15306 cat - <<_ACEOF >conftest.h
15311 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
15312 echo "obj-m := conftest.o" >build
/Makefile
15314 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
15315 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
15316 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15317 (eval $ac_try) 2>&5
15319 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15320 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
15321 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15322 (eval $ac_try) 2>&5
15324 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15325 test $ac_status = 0; }; }; then :
15328 $as_echo "$as_me: failed program was:" >&5
15329 sed 's/^/| /' conftest.
$ac_ext >&5
15337 if test $rc -ne 0; then :
15339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15340 $as_echo "no" >&6; }
15341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lookup_bdev() wants 2 args" >&5
15342 $as_echo_n "checking whether lookup_bdev() wants 2 args... " >&6; }
15346 cat confdefs.h
- <<_ACEOF >conftest.c
15349 #include <linux/fs.h>
15355 lookup_bdev(NULL, FMODE_READ);
15365 cat - <<_ACEOF >conftest.h
15370 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
15371 echo "obj-m := conftest.o" >build
/Makefile
15373 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
15374 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
15375 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15376 (eval $ac_try) 2>&5
15378 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15379 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
15380 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15381 (eval $ac_try) 2>&5
15383 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15384 test $ac_status = 0; }; }; then :
15387 $as_echo "$as_me: failed program was:" >&5
15388 sed 's/^/| /' conftest.
$ac_ext >&5
15396 if test $rc -ne 0; then :
15398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15399 $as_echo "no" >&6; }
15402 if test "x$enable_linux_builtin" != xyes
; then
15404 grep -q -E '[[:space:]]lookup_bdev[[:space:]]' \
15405 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
15407 if test $rc -ne 0; then
15409 for file in fs
/block_dev.c
; do
15410 grep -q -E "EXPORT_SYMBOL.*(lookup_bdev)" \
15411 "$LINUX/$file" 2>/dev
/null
15413 if test $rc -eq 0; then
15418 if test $export -eq 0; then :
15428 if test $rc -ne 0; then :
15430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15431 $as_echo "no" >&6; }
15435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15436 $as_echo "yes" >&6; }
15438 $as_echo "#define HAVE_2ARGS_LOOKUP_BDEV 1" >>confdefs.h
15446 if test "x$enable_linux_builtin" != xyes
; then
15448 grep -q -E '[[:space:]]lookup_bdev[[:space:]]' \
15449 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
15451 if test $rc -ne 0; then
15453 for file in fs
/block_dev.c
; do
15454 grep -q -E "EXPORT_SYMBOL.*(lookup_bdev)" \
15455 "$LINUX/$file" 2>/dev
/null
15457 if test $rc -eq 0; then
15462 if test $export -eq 0; then :
15472 if test $rc -ne 0; then :
15474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15475 $as_echo "no" >&6; }
15476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lookup_bdev() wants 2 args" >&5
15477 $as_echo_n "checking whether lookup_bdev() wants 2 args... " >&6; }
15481 cat confdefs.h
- <<_ACEOF >conftest.c
15484 #include <linux/fs.h>
15490 lookup_bdev(NULL, FMODE_READ);
15500 cat - <<_ACEOF >conftest.h
15505 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
15506 echo "obj-m := conftest.o" >build
/Makefile
15508 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
15509 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
15510 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15511 (eval $ac_try) 2>&5
15513 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15514 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
15515 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15516 (eval $ac_try) 2>&5
15518 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15519 test $ac_status = 0; }; }; then :
15522 $as_echo "$as_me: failed program was:" >&5
15523 sed 's/^/| /' conftest.
$ac_ext >&5
15531 if test $rc -ne 0; then :
15533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15534 $as_echo "no" >&6; }
15537 if test "x$enable_linux_builtin" != xyes
; then
15539 grep -q -E '[[:space:]]lookup_bdev[[:space:]]' \
15540 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
15542 if test $rc -ne 0; then
15544 for file in fs
/block_dev.c
; do
15545 grep -q -E "EXPORT_SYMBOL.*(lookup_bdev)" \
15546 "$LINUX/$file" 2>/dev
/null
15548 if test $rc -eq 0; then
15553 if test $export -eq 0; then :
15563 if test $rc -ne 0; then :
15565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15566 $as_echo "no" >&6; }
15570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15571 $as_echo "yes" >&6; }
15573 $as_echo "#define HAVE_2ARGS_LOOKUP_BDEV 1" >>confdefs.h
15582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15583 $as_echo "yes" >&6; }
15585 $as_echo "#define HAVE_1ARG_LOOKUP_BDEV 1" >>confdefs.h
15593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether invalidate_bdev() wants 1 arg" >&5
15594 $as_echo_n "checking whether invalidate_bdev() wants 1 arg... " >&6; }
15597 cat confdefs.h
- <<_ACEOF >conftest.c
15600 #include <linux/buffer_head.h>
15606 struct block_device *bdev = NULL;
15607 invalidate_bdev(bdev);
15617 cat - <<_ACEOF >conftest.h
15622 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
15623 echo "obj-m := conftest.o" >build
/Makefile
15625 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
15626 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
15627 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15628 (eval $ac_try) 2>&5
15630 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15631 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
15632 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15633 (eval $ac_try) 2>&5
15635 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15636 test $ac_status = 0; }; }; then :
15638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15639 $as_echo "yes" >&6; }
15641 $as_echo "#define HAVE_1ARG_INVALIDATE_BDEV 1" >>confdefs.h
15645 $as_echo "$as_me: failed program was:" >&5
15646 sed 's/^/| /' conftest.
$ac_ext >&5
15648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15649 $as_echo "no" >&6; }
15659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether bdev_logical_block_size() is available" >&5
15660 $as_echo_n "checking whether bdev_logical_block_size() is available... " >&6; }
15661 tmp_flags
="$EXTRA_KCFLAGS"
15662 EXTRA_KCFLAGS
="${NO_UNUSED_BUT_SET_VARIABLE}"
15665 cat confdefs.h
- <<_ACEOF >conftest.c
15668 #include <linux/blkdev.h>
15674 struct block_device *bdev = NULL;
15675 bdev_logical_block_size(bdev);
15685 cat - <<_ACEOF >conftest.h
15690 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
15691 echo "obj-m := conftest.o" >build
/Makefile
15693 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
15694 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
15695 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15696 (eval $ac_try) 2>&5
15698 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15699 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
15700 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15701 (eval $ac_try) 2>&5
15703 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15704 test $ac_status = 0; }; }; then :
15706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15707 $as_echo "yes" >&6; }
15709 $as_echo "#define HAVE_BDEV_LOGICAL_BLOCK_SIZE 1" >>confdefs.h
15713 $as_echo "$as_me: failed program was:" >&5
15714 sed 's/^/| /' conftest.
$ac_ext >&5
15716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15717 $as_echo "no" >&6; }
15725 EXTRA_KCFLAGS
="$tmp_flags"
15728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether bdev_physical_block_size() is available" >&5
15729 $as_echo_n "checking whether bdev_physical_block_size() is available... " >&6; }
15730 tmp_flags
="$EXTRA_KCFLAGS"
15731 EXTRA_KCFLAGS
="${NO_UNUSED_BUT_SET_VARIABLE}"
15734 cat confdefs.h
- <<_ACEOF >conftest.c
15737 #include <linux/blkdev.h>
15743 struct block_device *bdev = NULL;
15744 bdev_physical_block_size(bdev);
15754 cat - <<_ACEOF >conftest.h
15759 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
15760 echo "obj-m := conftest.o" >build
/Makefile
15762 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
15763 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
15764 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15765 (eval $ac_try) 2>&5
15767 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15768 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
15769 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15770 (eval $ac_try) 2>&5
15772 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15773 test $ac_status = 0; }; }; then :
15775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15776 $as_echo "yes" >&6; }
15778 $as_echo "#define HAVE_BDEV_PHYSICAL_BLOCK_SIZE 1" >>confdefs.h
15782 $as_echo "$as_me: failed program was:" >&5
15783 sed 's/^/| /' conftest.
$ac_ext >&5
15785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15786 $as_echo "no" >&6; }
15794 EXTRA_KCFLAGS
="$tmp_flags"
15797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether bio has bi_iter" >&5
15798 $as_echo_n "checking whether bio has bi_iter... " >&6; }
15801 cat confdefs.h
- <<_ACEOF >conftest.c
15804 #include <linux/bio.h>
15811 bio.bi_iter.bi_sector = 0;
15821 cat - <<_ACEOF >conftest.h
15826 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
15827 echo "obj-m := conftest.o" >build
/Makefile
15829 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
15830 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
15831 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15832 (eval $ac_try) 2>&5
15834 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15835 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
15836 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15837 (eval $ac_try) 2>&5
15839 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15840 test $ac_status = 0; }; }; then :
15842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15843 $as_echo "yes" >&6; }
15845 $as_echo "#define HAVE_BIO_BVEC_ITER 1" >>confdefs.h
15849 $as_echo "$as_me: failed program was:" >&5
15850 sed 's/^/| /' conftest.
$ac_ext >&5
15852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15853 $as_echo "no" >&6; }
15863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether BIO_RW_FAILFAST_* are defined" >&5
15864 $as_echo_n "checking whether BIO_RW_FAILFAST_* are defined... " >&6; }
15867 cat confdefs.h
- <<_ACEOF >conftest.c
15870 #include <linux/bio.h>
15876 int flags __attribute__ ((unused));
15877 flags = ((1 << BIO_RW_FAILFAST_DEV) |
15878 (1 << BIO_RW_FAILFAST_TRANSPORT) |
15879 (1 << BIO_RW_FAILFAST_DRIVER));
15889 cat - <<_ACEOF >conftest.h
15894 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
15895 echo "obj-m := conftest.o" >build
/Makefile
15897 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
15898 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
15899 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15900 (eval $ac_try) 2>&5
15902 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15903 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
15904 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15905 (eval $ac_try) 2>&5
15907 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15908 test $ac_status = 0; }; }; then :
15910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15911 $as_echo "yes" >&6; }
15913 $as_echo "#define HAVE_BIO_RW_FAILFAST_DTD 1" >>confdefs.h
15917 $as_echo "$as_me: failed program was:" >&5
15918 sed 's/^/| /' conftest.
$ac_ext >&5
15920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15921 $as_echo "no" >&6; }
15931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether REQ_FAILFAST_MASK is defined" >&5
15932 $as_echo_n "checking whether REQ_FAILFAST_MASK is defined... " >&6; }
15935 cat confdefs.h
- <<_ACEOF >conftest.c
15938 #include <linux/bio.h>
15944 int flags __attribute__ ((unused));
15945 flags = REQ_FAILFAST_MASK;
15955 cat - <<_ACEOF >conftest.h
15960 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
15961 echo "obj-m := conftest.o" >build
/Makefile
15963 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
15964 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
15965 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15966 (eval $ac_try) 2>&5
15968 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15969 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
15970 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15971 (eval $ac_try) 2>&5
15973 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15974 test $ac_status = 0; }; }; then :
15976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15977 $as_echo "yes" >&6; }
15979 $as_echo "#define HAVE_REQ_FAILFAST_MASK 1" >>confdefs.h
15983 $as_echo "$as_me: failed program was:" >&5
15984 sed 's/^/| /' conftest.
$ac_ext >&5
15986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15987 $as_echo "no" >&6; }
15997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether REQ_OP_DISCARD is defined" >&5
15998 $as_echo_n "checking whether REQ_OP_DISCARD is defined... " >&6; }
16001 cat confdefs.h
- <<_ACEOF >conftest.c
16004 #include <linux/blk_types.h>
16010 int op __attribute__ ((unused)) = REQ_OP_DISCARD;
16020 cat - <<_ACEOF >conftest.h
16025 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
16026 echo "obj-m := conftest.o" >build
/Makefile
16028 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
16029 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
16030 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16031 (eval $ac_try) 2>&5
16033 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16034 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
16035 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16036 (eval $ac_try) 2>&5
16038 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16039 test $ac_status = 0; }; }; then :
16041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16042 $as_echo "yes" >&6; }
16044 $as_echo "#define HAVE_REQ_OP_DISCARD 1" >>confdefs.h
16048 $as_echo "$as_me: failed program was:" >&5
16049 sed 's/^/| /' conftest.
$ac_ext >&5
16051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16052 $as_echo "no" >&6; }
16062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether REQ_OP_SECURE_ERASE is defined" >&5
16063 $as_echo_n "checking whether REQ_OP_SECURE_ERASE is defined... " >&6; }
16066 cat confdefs.h
- <<_ACEOF >conftest.c
16069 #include <linux/blk_types.h>
16075 int op __attribute__ ((unused)) = REQ_OP_SECURE_ERASE;
16085 cat - <<_ACEOF >conftest.h
16090 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
16091 echo "obj-m := conftest.o" >build
/Makefile
16093 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
16094 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
16095 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16096 (eval $ac_try) 2>&5
16098 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16099 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
16100 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16101 (eval $ac_try) 2>&5
16103 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16104 test $ac_status = 0; }; }; then :
16106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16107 $as_echo "yes" >&6; }
16109 $as_echo "#define HAVE_REQ_OP_SECURE_ERASE 1" >>confdefs.h
16113 $as_echo "$as_me: failed program was:" >&5
16114 sed 's/^/| /' conftest.
$ac_ext >&5
16116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16117 $as_echo "no" >&6; }
16127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether REQ_OP_FLUSH is defined" >&5
16128 $as_echo_n "checking whether REQ_OP_FLUSH is defined... " >&6; }
16131 cat confdefs.h
- <<_ACEOF >conftest.c
16134 #include <linux/blk_types.h>
16140 int op __attribute__ ((unused)) = REQ_OP_FLUSH;
16150 cat - <<_ACEOF >conftest.h
16155 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
16156 echo "obj-m := conftest.o" >build
/Makefile
16158 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
16159 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
16160 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16161 (eval $ac_try) 2>&5
16163 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16164 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
16165 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16166 (eval $ac_try) 2>&5
16168 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16169 test $ac_status = 0; }; }; then :
16171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16172 $as_echo "yes" >&6; }
16174 $as_echo "#define HAVE_REQ_OP_FLUSH 1" >>confdefs.h
16178 $as_echo "$as_me: failed program was:" >&5
16179 sed 's/^/| /' conftest.
$ac_ext >&5
16181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16182 $as_echo "no" >&6; }
16192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether bio->bi_opf is defined" >&5
16193 $as_echo_n "checking whether bio->bi_opf is defined... " >&6; }
16196 cat confdefs.h
- <<_ACEOF >conftest.c
16199 #include <linux/bio.h>
16205 struct bio bio __attribute__ ((unused));
16216 cat - <<_ACEOF >conftest.h
16221 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
16222 echo "obj-m := conftest.o" >build
/Makefile
16224 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
16225 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
16226 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16227 (eval $ac_try) 2>&5
16229 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16230 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
16231 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16232 (eval $ac_try) 2>&5
16234 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16235 test $ac_status = 0; }; }; then :
16237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16238 $as_echo "yes" >&6; }
16240 $as_echo "#define HAVE_BIO_BI_OPF 1" >>confdefs.h
16244 $as_echo "$as_me: failed program was:" >&5
16245 sed 's/^/| /' conftest.
$ac_ext >&5
16247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16248 $as_echo "no" >&6; }
16258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether bio_end_io_t wants 1 arg" >&5
16259 $as_echo_n "checking whether bio_end_io_t wants 1 arg... " >&6; }
16262 cat confdefs.h
- <<_ACEOF >conftest.c
16265 #include <linux/bio.h>
16267 void wanted_end_io(struct bio *bio) { return; }
16269 bio_end_io_t *end_io __attribute__ ((unused)) = wanted_end_io;
16284 cat - <<_ACEOF >conftest.h
16289 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
16290 echo "obj-m := conftest.o" >build
/Makefile
16292 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
16293 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
16294 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16295 (eval $ac_try) 2>&5
16297 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16298 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
16299 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16300 (eval $ac_try) 2>&5
16302 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16303 test $ac_status = 0; }; }; then :
16305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16306 $as_echo "yes" >&6; }
16308 $as_echo "#define HAVE_1ARG_BIO_END_IO_T 1" >>confdefs.h
16312 $as_echo "$as_me: failed program was:" >&5
16313 sed 's/^/| /' conftest.
$ac_ext >&5
16315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16316 $as_echo "no" >&6; }
16326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether bio->bi_status exists" >&5
16327 $as_echo_n "checking whether bio->bi_status exists... " >&6; }
16330 cat confdefs.h
- <<_ACEOF >conftest.c
16333 #include <linux/bio.h>
16339 struct bio bio __attribute__ ((unused));
16340 blk_status_t status __attribute__ ((unused)) = BLK_STS_OK;
16342 bio.bi_status = status;
16352 cat - <<_ACEOF >conftest.h
16357 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
16358 echo "obj-m := conftest.o" >build
/Makefile
16360 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
16361 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
16362 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16363 (eval $ac_try) 2>&5
16365 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16366 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
16367 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16368 (eval $ac_try) 2>&5
16370 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16371 test $ac_status = 0; }; }; then :
16373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16374 $as_echo "yes" >&6; }
16376 $as_echo "#define HAVE_BIO_BI_STATUS 1" >>confdefs.h
16380 $as_echo "$as_me: failed program was:" >&5
16381 sed 's/^/| /' conftest.
$ac_ext >&5
16383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16384 $as_echo "no" >&6; }
16394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether BIO_RW_BARRIER is defined" >&5
16395 $as_echo_n "checking whether BIO_RW_BARRIER is defined... " >&6; }
16398 cat confdefs.h
- <<_ACEOF >conftest.c
16401 #include <linux/bio.h>
16407 int flags __attribute__ ((unused));
16408 flags = BIO_RW_BARRIER;
16418 cat - <<_ACEOF >conftest.h
16423 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
16424 echo "obj-m := conftest.o" >build
/Makefile
16426 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
16427 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
16428 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16429 (eval $ac_try) 2>&5
16431 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16432 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
16433 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16434 (eval $ac_try) 2>&5
16436 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16437 test $ac_status = 0; }; }; then :
16439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16440 $as_echo "yes" >&6; }
16442 $as_echo "#define HAVE_BIO_RW_BARRIER 1" >>confdefs.h
16446 $as_echo "$as_me: failed program was:" >&5
16447 sed 's/^/| /' conftest.
$ac_ext >&5
16449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16450 $as_echo "no" >&6; }
16460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether BIO_RW_DISCARD is defined" >&5
16461 $as_echo_n "checking whether BIO_RW_DISCARD is defined... " >&6; }
16464 cat confdefs.h
- <<_ACEOF >conftest.c
16467 #include <linux/bio.h>
16473 int flags __attribute__ ((unused));
16474 flags = BIO_RW_DISCARD;
16484 cat - <<_ACEOF >conftest.h
16489 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
16490 echo "obj-m := conftest.o" >build
/Makefile
16492 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
16493 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
16494 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16495 (eval $ac_try) 2>&5
16497 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16498 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
16499 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16500 (eval $ac_try) 2>&5
16502 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16503 test $ac_status = 0; }; }; then :
16505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16506 $as_echo "yes" >&6; }
16508 $as_echo "#define HAVE_BIO_RW_DISCARD 1" >>confdefs.h
16512 $as_echo "$as_me: failed program was:" >&5
16513 sed 's/^/| /' conftest.
$ac_ext >&5
16515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16516 $as_echo "no" >&6; }
16526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether blk_queue_flush() is available" >&5
16527 $as_echo_n "checking whether blk_queue_flush() is available... " >&6; }
16528 tmp_flags
="$EXTRA_KCFLAGS"
16529 EXTRA_KCFLAGS
="${NO_UNUSED_BUT_SET_VARIABLE}"
16532 cat confdefs.h
- <<_ACEOF >conftest.c
16535 #include <linux/blkdev.h>
16541 struct request_queue *q = NULL;
16542 (void) blk_queue_flush(q, REQ_FLUSH);
16552 cat - <<_ACEOF >conftest.h
16557 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
16558 echo "obj-m := conftest.o" >build
/Makefile
16560 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
16561 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
16562 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16563 (eval $ac_try) 2>&5
16565 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16566 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
16567 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16568 (eval $ac_try) 2>&5
16570 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16571 test $ac_status = 0; }; }; then :
16573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16574 $as_echo "yes" >&6; }
16576 $as_echo "#define HAVE_BLK_QUEUE_FLUSH 1" >>confdefs.h
16579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether blk_queue_flush() is GPL-only" >&5
16580 $as_echo_n "checking whether blk_queue_flush() is GPL-only... " >&6; }
16583 cat confdefs.h
- <<_ACEOF >conftest.c
16586 #include <linux/module.h>
16587 #include <linux/blkdev.h>
16589 MODULE_LICENSE("$ZFS_META_LICENSE");
16595 struct request_queue *q = NULL;
16596 (void) blk_queue_flush(q, REQ_FLUSH);
16606 cat - <<_ACEOF >conftest.h
16611 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
16612 echo "obj-m := conftest.o" >build
/Makefile
16614 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
16615 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
16616 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16617 (eval $ac_try) 2>&5
16619 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16620 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
16621 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16622 (eval $ac_try) 2>&5
16624 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16625 test $ac_status = 0; }; }; then :
16627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16628 $as_echo "no" >&6; }
16631 $as_echo "$as_me: failed program was:" >&5
16632 sed 's/^/| /' conftest.
$ac_ext >&5
16634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16635 $as_echo "yes" >&6; }
16637 $as_echo "#define HAVE_BLK_QUEUE_FLUSH_GPL_ONLY 1" >>confdefs.h
16648 $as_echo "$as_me: failed program was:" >&5
16649 sed 's/^/| /' conftest.
$ac_ext >&5
16651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16652 $as_echo "no" >&6; }
16661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether blk_queue_write_cache() exists" >&5
16662 $as_echo_n "checking whether blk_queue_write_cache() exists... " >&6; }
16665 cat confdefs.h
- <<_ACEOF >conftest.c
16668 #include <linux/kernel.h>
16669 #include <linux/blkdev.h>
16676 struct request_queue *q = NULL;
16677 blk_queue_write_cache(q, true, true);
16687 cat - <<_ACEOF >conftest.h
16692 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
16693 echo "obj-m := conftest.o" >build
/Makefile
16695 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
16696 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
16697 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16698 (eval $ac_try) 2>&5
16700 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16701 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
16702 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16703 (eval $ac_try) 2>&5
16705 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16706 test $ac_status = 0; }; }; then :
16708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16709 $as_echo "yes" >&6; }
16711 $as_echo "#define HAVE_BLK_QUEUE_WRITE_CACHE 1" >>confdefs.h
16714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether blk_queue_write_cache() is GPL-only" >&5
16715 $as_echo_n "checking whether blk_queue_write_cache() is GPL-only... " >&6; }
16718 cat confdefs.h
- <<_ACEOF >conftest.c
16721 #include <linux/kernel.h>
16722 #include <linux/module.h>
16723 #include <linux/blkdev.h>
16725 MODULE_LICENSE("$ZFS_META_LICENSE");
16731 struct request_queue *q = NULL;
16732 blk_queue_write_cache(q, true, true);
16742 cat - <<_ACEOF >conftest.h
16747 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
16748 echo "obj-m := conftest.o" >build
/Makefile
16750 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
16751 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
16752 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16753 (eval $ac_try) 2>&5
16755 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16756 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
16757 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16758 (eval $ac_try) 2>&5
16760 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16761 test $ac_status = 0; }; }; then :
16763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16764 $as_echo "no" >&6; }
16767 $as_echo "$as_me: failed program was:" >&5
16768 sed 's/^/| /' conftest.
$ac_ext >&5
16770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16771 $as_echo "yes" >&6; }
16773 $as_echo "#define HAVE_BLK_QUEUE_WRITE_CACHE_GPL_ONLY 1" >>confdefs.h
16784 $as_echo "$as_me: failed program was:" >&5
16785 sed 's/^/| /' conftest.
$ac_ext >&5
16787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16788 $as_echo "no" >&6; }
16797 EXTRA_KCFLAGS
="$tmp_flags"
16800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether blk_queue_max_hw_sectors() is available" >&5
16801 $as_echo_n "checking whether blk_queue_max_hw_sectors() is available... " >&6; }
16802 tmp_flags
="$EXTRA_KCFLAGS"
16803 EXTRA_KCFLAGS
="${NO_UNUSED_BUT_SET_VARIABLE}"
16806 cat confdefs.h
- <<_ACEOF >conftest.c
16809 #include <linux/blkdev.h>
16815 struct request_queue *q = NULL;
16816 (void) blk_queue_max_hw_sectors(q, BLK_SAFE_MAX_SECTORS);
16826 cat - <<_ACEOF >conftest.h
16831 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
16832 echo "obj-m := conftest.o" >build
/Makefile
16834 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
16835 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
16836 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16837 (eval $ac_try) 2>&5
16839 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16840 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
16841 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16842 (eval $ac_try) 2>&5
16844 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16845 test $ac_status = 0; }; }; then :
16847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16848 $as_echo "yes" >&6; }
16850 $as_echo "#define HAVE_BLK_QUEUE_MAX_HW_SECTORS 1" >>confdefs.h
16854 $as_echo "$as_me: failed program was:" >&5
16855 sed 's/^/| /' conftest.
$ac_ext >&5
16857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16858 $as_echo "no" >&6; }
16866 EXTRA_KCFLAGS
="$tmp_flags"
16869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether blk_queue_max_segments() is available" >&5
16870 $as_echo_n "checking whether blk_queue_max_segments() is available... " >&6; }
16871 tmp_flags
="$EXTRA_KCFLAGS"
16872 EXTRA_KCFLAGS
="${NO_UNUSED_BUT_SET_VARIABLE}"
16875 cat confdefs.h
- <<_ACEOF >conftest.c
16878 #include <linux/blkdev.h>
16884 struct request_queue *q = NULL;
16885 (void) blk_queue_max_segments(q, BLK_MAX_SEGMENTS);
16895 cat - <<_ACEOF >conftest.h
16900 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
16901 echo "obj-m := conftest.o" >build
/Makefile
16903 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
16904 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
16905 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16906 (eval $ac_try) 2>&5
16908 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16909 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
16910 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16911 (eval $ac_try) 2>&5
16913 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16914 test $ac_status = 0; }; }; then :
16916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16917 $as_echo "yes" >&6; }
16919 $as_echo "#define HAVE_BLK_QUEUE_MAX_SEGMENTS 1" >>confdefs.h
16923 $as_echo "$as_me: failed program was:" >&5
16924 sed 's/^/| /' conftest.
$ac_ext >&5
16926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16927 $as_echo "no" >&6; }
16935 EXTRA_KCFLAGS
="$tmp_flags"
16938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the BIO_RW_UNPLUG enum is available" >&5
16939 $as_echo_n "checking whether the BIO_RW_UNPLUG enum is available... " >&6; }
16940 tmp_flags
="$EXTRA_KCFLAGS"
16941 EXTRA_KCFLAGS
="${NO_UNUSED_BUT_SET_VARIABLE}"
16944 cat confdefs.h
- <<_ACEOF >conftest.c
16947 #include <linux/blkdev.h>
16953 extern enum bio_rw_flags rw;
16955 rw = BIO_RW_UNPLUG;
16965 cat - <<_ACEOF >conftest.h
16970 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
16971 echo "obj-m := conftest.o" >build
/Makefile
16973 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
16974 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
16975 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16976 (eval $ac_try) 2>&5
16978 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16979 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
16980 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16981 (eval $ac_try) 2>&5
16983 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16984 test $ac_status = 0; }; }; then :
16986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16987 $as_echo "yes" >&6; }
16989 $as_echo "#define HAVE_BLK_QUEUE_HAVE_BIO_RW_UNPLUG 1" >>confdefs.h
16993 $as_echo "$as_me: failed program was:" >&5
16994 sed 's/^/| /' conftest.
$ac_ext >&5
16996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16997 $as_echo "no" >&6; }
17005 EXTRA_KCFLAGS
="$tmp_flags"
17008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct blk_plug is available" >&5
17009 $as_echo_n "checking whether struct blk_plug is available... " >&6; }
17010 tmp_flags
="$EXTRA_KCFLAGS"
17011 EXTRA_KCFLAGS
="${NO_UNUSED_BUT_SET_VARIABLE}"
17014 cat confdefs.h
- <<_ACEOF >conftest.c
17017 #include <linux/blkdev.h>
17023 struct blk_plug plug;
17025 blk_start_plug(&plug);
17026 blk_finish_plug(&plug);
17036 cat - <<_ACEOF >conftest.h
17041 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
17042 echo "obj-m := conftest.o" >build
/Makefile
17044 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
17045 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
17046 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17047 (eval $ac_try) 2>&5
17049 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17050 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
17051 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17052 (eval $ac_try) 2>&5
17054 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17055 test $ac_status = 0; }; }; then :
17057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17058 $as_echo "yes" >&6; }
17060 $as_echo "#define HAVE_BLK_QUEUE_HAVE_BLK_PLUG 1" >>confdefs.h
17064 $as_echo "$as_me: failed program was:" >&5
17065 sed 's/^/| /' conftest.
$ac_ext >&5
17067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17068 $as_echo "no" >&6; }
17076 EXTRA_KCFLAGS
="$tmp_flags"
17079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether get_disk_ro() is available" >&5
17080 $as_echo_n "checking whether get_disk_ro() is available... " >&6; }
17081 tmp_flags
="$EXTRA_KCFLAGS"
17082 EXTRA_KCFLAGS
="${NO_UNUSED_BUT_SET_VARIABLE}"
17085 cat confdefs.h
- <<_ACEOF >conftest.c
17088 #include <linux/blkdev.h>
17094 struct gendisk *disk = NULL;
17095 (void) get_disk_ro(disk);
17105 cat - <<_ACEOF >conftest.h
17110 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
17111 echo "obj-m := conftest.o" >build
/Makefile
17113 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
17114 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
17115 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17116 (eval $ac_try) 2>&5
17118 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17119 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
17120 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17121 (eval $ac_try) 2>&5
17123 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17124 test $ac_status = 0; }; }; then :
17126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17127 $as_echo "yes" >&6; }
17129 $as_echo "#define HAVE_GET_DISK_RO 1" >>confdefs.h
17133 $as_echo "$as_me: failed program was:" >&5
17134 sed 's/^/| /' conftest.
$ac_ext >&5
17136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17137 $as_echo "no" >&6; }
17145 EXTRA_KCFLAGS
="$tmp_flags"
17147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether get_gendisk() is available" >&5
17148 $as_echo_n "checking whether get_gendisk() is available... " >&6; }
17152 cat confdefs.h
- <<_ACEOF >conftest.c
17155 #include <linux/genhd.h>
17161 get_gendisk(0, NULL);
17171 cat - <<_ACEOF >conftest.h
17176 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
17177 echo "obj-m := conftest.o" >build
/Makefile
17179 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
17180 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
17181 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17182 (eval $ac_try) 2>&5
17184 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17185 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
17186 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17187 (eval $ac_try) 2>&5
17189 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17190 test $ac_status = 0; }; }; then :
17193 $as_echo "$as_me: failed program was:" >&5
17194 sed 's/^/| /' conftest.
$ac_ext >&5
17202 if test $rc -ne 0; then :
17204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17205 $as_echo "no" >&6; }
17208 if test "x$enable_linux_builtin" != xyes
; then
17210 grep -q -E '[[:space:]]get_gendisk[[:space:]]' \
17211 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
17213 if test $rc -ne 0; then
17215 for file in block
/genhd.c
; do
17216 grep -q -E "EXPORT_SYMBOL.*(get_gendisk)" \
17217 "$LINUX/$file" 2>/dev
/null
17219 if test $rc -eq 0; then
17224 if test $export -eq 0; then :
17234 if test $rc -ne 0; then :
17236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17237 $as_echo "no" >&6; }
17241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17242 $as_echo "yes" >&6; }
17244 $as_echo "#define HAVE_GET_GENDISK 1" >>confdefs.h
17252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether bio_set_op_attrs is available" >&5
17253 $as_echo_n "checking whether bio_set_op_attrs is available... " >&6; }
17256 cat confdefs.h
- <<_ACEOF >conftest.c
17259 #include <linux/bio.h>
17265 struct bio *bio __attribute__ ((unused)) = NULL;
17267 bio_set_op_attrs(bio, 0, 0);
17277 cat - <<_ACEOF >conftest.h
17282 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
17283 echo "obj-m := conftest.o" >build
/Makefile
17285 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
17286 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
17287 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17288 (eval $ac_try) 2>&5
17290 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17291 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
17292 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17293 (eval $ac_try) 2>&5
17295 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17296 test $ac_status = 0; }; }; then :
17298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17299 $as_echo "yes" >&6; }
17301 $as_echo "#define HAVE_BIO_SET_OP_ATTRS 1" >>confdefs.h
17305 $as_echo "$as_me: failed program was:" >&5
17306 sed 's/^/| /' conftest.
$ac_ext >&5
17308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17309 $as_echo "no" >&6; }
17319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether generic_readlink is global" >&5
17320 $as_echo_n "checking whether generic_readlink is global... " >&6; }
17323 cat confdefs.h
- <<_ACEOF >conftest.c
17326 #include <linux/fs.h>
17332 int i __attribute__ ((unused));
17334 i = generic_readlink(NULL, NULL, 0);
17344 cat - <<_ACEOF >conftest.h
17349 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
17350 echo "obj-m := conftest.o" >build
/Makefile
17352 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
17353 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
17354 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17355 (eval $ac_try) 2>&5
17357 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17358 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
17359 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17360 (eval $ac_try) 2>&5
17362 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17363 test $ac_status = 0; }; }; then :
17365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17366 $as_echo "yes" >&6; }
17368 $as_echo "#define HAVE_GENERIC_READLINK 1" >>confdefs.h
17372 $as_echo "$as_me: failed program was:" >&5
17373 sed 's/^/| /' conftest.
$ac_ext >&5
17375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17376 $as_echo "no" >&6; }
17386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ql->discard_granularity is available" >&5
17387 $as_echo_n "checking whether ql->discard_granularity is available... " >&6; }
17390 cat confdefs.h
- <<_ACEOF >conftest.c
17393 #include <linux/blkdev.h>
17399 struct queue_limits ql __attribute__ ((unused));
17401 ql.discard_granularity = 0;
17411 cat - <<_ACEOF >conftest.h
17416 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
17417 echo "obj-m := conftest.o" >build
/Makefile
17419 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
17420 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
17421 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17422 (eval $ac_try) 2>&5
17424 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17425 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
17426 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17427 (eval $ac_try) 2>&5
17429 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17430 test $ac_status = 0; }; }; then :
17432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17433 $as_echo "yes" >&6; }
17435 $as_echo "#define HAVE_DISCARD_GRANULARITY 1" >>confdefs.h
17439 $as_echo "$as_me: failed program was:" >&5
17440 sed 's/^/| /' conftest.
$ac_ext >&5
17442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17443 $as_echo "no" >&6; }
17453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether super_block uses const struct xattr_handler" >&5
17454 $as_echo_n "checking whether super_block uses const struct xattr_handler... " >&6; }
17457 cat confdefs.h
- <<_ACEOF >conftest.c
17460 #include <linux/fs.h>
17461 #include <linux/xattr.h>
17463 const struct xattr_handler xattr_test_handler = {
17469 const struct xattr_handler *xattr_handlers[] = {
17470 &xattr_test_handler,
17473 const struct super_block sb __attribute__ ((unused)) = {
17474 .s_xattr = xattr_handlers,
17490 cat - <<_ACEOF >conftest.h
17495 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
17496 echo "obj-m := conftest.o" >build
/Makefile
17498 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
17499 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
17500 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17501 (eval $ac_try) 2>&5
17503 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17504 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
17505 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17506 (eval $ac_try) 2>&5
17508 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17509 test $ac_status = 0; }; }; then :
17511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17512 $as_echo "yes" >&6; }
17514 $as_echo "#define HAVE_CONST_XATTR_HANDLER 1" >>confdefs.h
17518 $as_echo "$as_me: failed program was:" >&5
17519 sed 's/^/| /' conftest.
$ac_ext >&5
17521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17522 $as_echo "no" >&6; }
17532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether xattr_handler has name" >&5
17533 $as_echo_n "checking whether xattr_handler has name... " >&6; }
17536 cat confdefs.h
- <<_ACEOF >conftest.c
17539 #include <linux/xattr.h>
17541 static const struct xattr_handler
17542 xops __attribute__ ((unused)) = {
17543 .name = XATTR_NAME_POSIX_ACL_ACCESS,
17559 cat - <<_ACEOF >conftest.h
17564 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
17565 echo "obj-m := conftest.o" >build
/Makefile
17567 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
17568 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
17569 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17570 (eval $ac_try) 2>&5
17572 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17573 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
17574 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17575 (eval $ac_try) 2>&5
17577 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17578 test $ac_status = 0; }; }; then :
17580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17581 $as_echo "yes" >&6; }
17583 $as_echo "#define HAVE_XATTR_HANDLER_NAME 1" >>confdefs.h
17587 $as_echo "$as_me: failed program was:" >&5
17588 sed 's/^/| /' conftest.
$ac_ext >&5
17590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17591 $as_echo "no" >&6; }
17601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether xattr_handler->get() wants both dentry and inode" >&5
17602 $as_echo_n "checking whether xattr_handler->get() wants both dentry and inode... " >&6; }
17605 cat confdefs.h
- <<_ACEOF >conftest.c
17608 #include <linux/xattr.h>
17610 int get(const struct xattr_handler *handler,
17611 struct dentry *dentry, struct inode *inode,
17612 const char *name, void *buffer, size_t size) { return 0; }
17613 static const struct xattr_handler
17614 xops __attribute__ ((unused)) = {
17631 cat - <<_ACEOF >conftest.h
17636 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
17637 echo "obj-m := conftest.o" >build
/Makefile
17639 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
17640 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
17641 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17642 (eval $ac_try) 2>&5
17644 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17645 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
17646 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17647 (eval $ac_try) 2>&5
17649 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17650 test $ac_status = 0; }; }; then :
17652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17653 $as_echo "yes" >&6; }
17655 $as_echo "#define HAVE_XATTR_GET_DENTRY_INODE 1" >>confdefs.h
17659 $as_echo "$as_me: failed program was:" >&5
17660 sed 's/^/| /' conftest.
$ac_ext >&5
17662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether xattr_handler->get() wants xattr_handler" >&5
17663 $as_echo_n "checking whether xattr_handler->get() wants xattr_handler... " >&6; }
17666 cat confdefs.h
- <<_ACEOF >conftest.c
17669 #include <linux/xattr.h>
17671 int get(const struct xattr_handler *handler,
17672 struct dentry *dentry, const char *name,
17673 void *buffer, size_t size) { return 0; }
17674 static const struct xattr_handler
17675 xops __attribute__ ((unused)) = {
17692 cat - <<_ACEOF >conftest.h
17697 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
17698 echo "obj-m := conftest.o" >build
/Makefile
17700 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
17701 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
17702 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17703 (eval $ac_try) 2>&5
17705 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17706 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
17707 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17708 (eval $ac_try) 2>&5
17710 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17711 test $ac_status = 0; }; }; then :
17713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17714 $as_echo "yes" >&6; }
17716 $as_echo "#define HAVE_XATTR_GET_HANDLER 1" >>confdefs.h
17720 $as_echo "$as_me: failed program was:" >&5
17721 sed 's/^/| /' conftest.
$ac_ext >&5
17723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17724 $as_echo "no" >&6; }
17725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether xattr_handler->get() wants dentry" >&5
17726 $as_echo_n "checking whether xattr_handler->get() wants dentry... " >&6; }
17729 cat confdefs.h
- <<_ACEOF >conftest.c
17732 #include <linux/xattr.h>
17734 int get(struct dentry *dentry, const char *name,
17735 void *buffer, size_t size, int handler_flags)
17737 static const struct xattr_handler
17738 xops __attribute__ ((unused)) = {
17755 cat - <<_ACEOF >conftest.h
17760 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
17761 echo "obj-m := conftest.o" >build
/Makefile
17763 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
17764 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
17765 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17766 (eval $ac_try) 2>&5
17768 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17769 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
17770 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17771 (eval $ac_try) 2>&5
17773 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17774 test $ac_status = 0; }; }; then :
17776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17777 $as_echo "yes" >&6; }
17779 $as_echo "#define HAVE_XATTR_GET_DENTRY 1" >>confdefs.h
17783 $as_echo "$as_me: failed program was:" >&5
17784 sed 's/^/| /' conftest.
$ac_ext >&5
17786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17787 $as_echo "no" >&6; }
17788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether xattr_handler->get() wants inode" >&5
17789 $as_echo_n "checking whether xattr_handler->get() wants inode... " >&6; }
17792 cat confdefs.h
- <<_ACEOF >conftest.c
17795 #include <linux/xattr.h>
17797 int get(struct inode *ip, const char *name,
17798 void *buffer, size_t size) { return 0; }
17799 static const struct xattr_handler
17800 xops __attribute__ ((unused)) = {
17817 cat - <<_ACEOF >conftest.h
17822 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
17823 echo "obj-m := conftest.o" >build
/Makefile
17825 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
17826 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
17827 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17828 (eval $ac_try) 2>&5
17830 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17831 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
17832 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17833 (eval $ac_try) 2>&5
17835 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17836 test $ac_status = 0; }; }; then :
17838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17839 $as_echo "yes" >&6; }
17841 $as_echo "#define HAVE_XATTR_GET_INODE 1" >>confdefs.h
17845 $as_echo "$as_me: failed program was:" >&5
17846 sed 's/^/| /' conftest.
$ac_ext >&5
17848 as_fn_error $?
"no; please file a bug report" "$LINENO" 5
17879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether xattr_handler->set() wants both dentry and inode" >&5
17880 $as_echo_n "checking whether xattr_handler->set() wants both dentry and inode... " >&6; }
17883 cat confdefs.h
- <<_ACEOF >conftest.c
17886 #include <linux/xattr.h>
17888 int set(const struct xattr_handler *handler,
17889 struct dentry *dentry, struct inode *inode,
17890 const char *name, const void *buffer,
17891 size_t size, int flags)
17893 static const struct xattr_handler
17894 xops __attribute__ ((unused)) = {
17911 cat - <<_ACEOF >conftest.h
17916 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
17917 echo "obj-m := conftest.o" >build
/Makefile
17919 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
17920 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
17921 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17922 (eval $ac_try) 2>&5
17924 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17925 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
17926 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17927 (eval $ac_try) 2>&5
17929 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17930 test $ac_status = 0; }; }; then :
17932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17933 $as_echo "yes" >&6; }
17935 $as_echo "#define HAVE_XATTR_SET_DENTRY_INODE 1" >>confdefs.h
17939 $as_echo "$as_me: failed program was:" >&5
17940 sed 's/^/| /' conftest.
$ac_ext >&5
17942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether xattr_handler->set() wants xattr_handler" >&5
17943 $as_echo_n "checking whether xattr_handler->set() wants xattr_handler... " >&6; }
17946 cat confdefs.h
- <<_ACEOF >conftest.c
17949 #include <linux/xattr.h>
17951 int set(const struct xattr_handler *handler,
17952 struct dentry *dentry, const char *name,
17953 const void *buffer, size_t size, int flags)
17955 static const struct xattr_handler
17956 xops __attribute__ ((unused)) = {
17973 cat - <<_ACEOF >conftest.h
17978 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
17979 echo "obj-m := conftest.o" >build
/Makefile
17981 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
17982 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
17983 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17984 (eval $ac_try) 2>&5
17986 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17987 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
17988 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17989 (eval $ac_try) 2>&5
17991 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17992 test $ac_status = 0; }; }; then :
17994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17995 $as_echo "yes" >&6; }
17997 $as_echo "#define HAVE_XATTR_SET_HANDLER 1" >>confdefs.h
18001 $as_echo "$as_me: failed program was:" >&5
18002 sed 's/^/| /' conftest.
$ac_ext >&5
18004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18005 $as_echo "no" >&6; }
18006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether xattr_handler->set() wants dentry" >&5
18007 $as_echo_n "checking whether xattr_handler->set() wants dentry... " >&6; }
18010 cat confdefs.h
- <<_ACEOF >conftest.c
18013 #include <linux/xattr.h>
18015 int set(struct dentry *dentry, const char *name,
18016 const void *buffer, size_t size, int flags,
18017 int handler_flags) { return 0; }
18018 static const struct xattr_handler
18019 xops __attribute__ ((unused)) = {
18036 cat - <<_ACEOF >conftest.h
18041 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
18042 echo "obj-m := conftest.o" >build
/Makefile
18044 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
18045 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
18046 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18047 (eval $ac_try) 2>&5
18049 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18050 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
18051 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18052 (eval $ac_try) 2>&5
18054 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18055 test $ac_status = 0; }; }; then :
18057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18058 $as_echo "yes" >&6; }
18060 $as_echo "#define HAVE_XATTR_SET_DENTRY 1" >>confdefs.h
18064 $as_echo "$as_me: failed program was:" >&5
18065 sed 's/^/| /' conftest.
$ac_ext >&5
18067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18068 $as_echo "no" >&6; }
18069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether xattr_handler->set() wants inode" >&5
18070 $as_echo_n "checking whether xattr_handler->set() wants inode... " >&6; }
18073 cat confdefs.h
- <<_ACEOF >conftest.c
18076 #include <linux/xattr.h>
18078 int set(struct inode *ip, const char *name,
18079 const void *buffer, size_t size, int flags)
18081 static const struct xattr_handler
18082 xops __attribute__ ((unused)) = {
18099 cat - <<_ACEOF >conftest.h
18104 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
18105 echo "obj-m := conftest.o" >build
/Makefile
18107 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
18108 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
18109 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18110 (eval $ac_try) 2>&5
18112 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18113 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
18114 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18115 (eval $ac_try) 2>&5
18117 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18118 test $ac_status = 0; }; }; then :
18120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18121 $as_echo "yes" >&6; }
18123 $as_echo "#define HAVE_XATTR_SET_INODE 1" >>confdefs.h
18127 $as_echo "$as_me: failed program was:" >&5
18128 sed 's/^/| /' conftest.
$ac_ext >&5
18130 as_fn_error $?
"no; please file a bug report" "$LINENO" 5
18161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether xattr_handler->list() wants simple" >&5
18162 $as_echo_n "checking whether xattr_handler->list() wants simple... " >&6; }
18165 cat confdefs.h
- <<_ACEOF >conftest.c
18168 #include <linux/xattr.h>
18170 bool list(struct dentry *dentry) { return 0; }
18171 static const struct xattr_handler
18172 xops __attribute__ ((unused)) = {
18189 cat - <<_ACEOF >conftest.h
18194 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
18195 echo "obj-m := conftest.o" >build
/Makefile
18197 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
18198 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
18199 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18200 (eval $ac_try) 2>&5
18202 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18203 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
18204 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18205 (eval $ac_try) 2>&5
18207 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18208 test $ac_status = 0; }; }; then :
18210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18211 $as_echo "yes" >&6; }
18213 $as_echo "#define HAVE_XATTR_LIST_SIMPLE 1" >>confdefs.h
18217 $as_echo "$as_me: failed program was:" >&5
18218 sed 's/^/| /' conftest.
$ac_ext >&5
18220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18221 $as_echo "no" >&6; }
18222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether xattr_handler->list() wants xattr_handler" >&5
18223 $as_echo_n "checking whether xattr_handler->list() wants xattr_handler... " >&6; }
18226 cat confdefs.h
- <<_ACEOF >conftest.c
18229 #include <linux/xattr.h>
18231 size_t list(const struct xattr_handler *handler,
18232 struct dentry *dentry, char *list, size_t list_size,
18233 const char *name, size_t name_len) { return 0; }
18234 static const struct xattr_handler
18235 xops __attribute__ ((unused)) = {
18252 cat - <<_ACEOF >conftest.h
18257 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
18258 echo "obj-m := conftest.o" >build
/Makefile
18260 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
18261 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
18262 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18263 (eval $ac_try) 2>&5
18265 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18266 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
18267 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18268 (eval $ac_try) 2>&5
18270 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18271 test $ac_status = 0; }; }; then :
18273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18274 $as_echo "yes" >&6; }
18276 $as_echo "#define HAVE_XATTR_LIST_HANDLER 1" >>confdefs.h
18280 $as_echo "$as_me: failed program was:" >&5
18281 sed 's/^/| /' conftest.
$ac_ext >&5
18283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18284 $as_echo "no" >&6; }
18285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether xattr_handler->list() wants dentry" >&5
18286 $as_echo_n "checking whether xattr_handler->list() wants dentry... " >&6; }
18289 cat confdefs.h
- <<_ACEOF >conftest.c
18292 #include <linux/xattr.h>
18294 size_t list(struct dentry *dentry,
18295 char *list, size_t list_size,
18296 const char *name, size_t name_len,
18297 int handler_flags) { return 0; }
18298 static const struct xattr_handler
18299 xops __attribute__ ((unused)) = {
18316 cat - <<_ACEOF >conftest.h
18321 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
18322 echo "obj-m := conftest.o" >build
/Makefile
18324 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
18325 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
18326 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18327 (eval $ac_try) 2>&5
18329 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18330 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
18331 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18332 (eval $ac_try) 2>&5
18334 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18335 test $ac_status = 0; }; }; then :
18337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18338 $as_echo "yes" >&6; }
18340 $as_echo "#define HAVE_XATTR_LIST_DENTRY 1" >>confdefs.h
18344 $as_echo "$as_me: failed program was:" >&5
18345 sed 's/^/| /' conftest.
$ac_ext >&5
18347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18348 $as_echo "no" >&6; }
18349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether xattr_handler->list() wants inode" >&5
18350 $as_echo_n "checking whether xattr_handler->list() wants inode... " >&6; }
18353 cat confdefs.h
- <<_ACEOF >conftest.c
18356 #include <linux/xattr.h>
18358 size_t list(struct inode *ip, char *lst,
18359 size_t list_size, const char *name,
18360 size_t name_len) { return 0; }
18361 static const struct xattr_handler
18362 xops __attribute__ ((unused)) = {
18379 cat - <<_ACEOF >conftest.h
18384 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
18385 echo "obj-m := conftest.o" >build
/Makefile
18387 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
18388 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
18389 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18390 (eval $ac_try) 2>&5
18392 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18393 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
18394 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18395 (eval $ac_try) 2>&5
18397 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18398 test $ac_status = 0; }; }; then :
18400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18401 $as_echo "yes" >&6; }
18403 $as_echo "#define HAVE_XATTR_LIST_INODE 1" >>confdefs.h
18407 $as_echo "$as_me: failed program was:" >&5
18408 sed 's/^/| /' conftest.
$ac_ext >&5
18410 as_fn_error $?
"no; please file a bug report" "$LINENO" 5
18441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether inode_owner_or_capable() exists" >&5
18442 $as_echo_n "checking whether inode_owner_or_capable() exists... " >&6; }
18445 cat confdefs.h
- <<_ACEOF >conftest.c
18448 #include <linux/fs.h>
18454 struct inode *ip = NULL;
18455 (void) inode_owner_or_capable(ip);
18465 cat - <<_ACEOF >conftest.h
18470 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
18471 echo "obj-m := conftest.o" >build
/Makefile
18473 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
18474 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
18475 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18476 (eval $ac_try) 2>&5
18478 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18479 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
18480 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18481 (eval $ac_try) 2>&5
18483 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18484 test $ac_status = 0; }; }; then :
18486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18487 $as_echo "yes" >&6; }
18489 $as_echo "#define HAVE_INODE_OWNER_OR_CAPABLE 1" >>confdefs.h
18493 $as_echo "$as_me: failed program was:" >&5
18494 sed 's/^/| /' conftest.
$ac_ext >&5
18496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18497 $as_echo "no" >&6; }
18498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether is_owner_or_cap() exists" >&5
18499 $as_echo_n "checking whether is_owner_or_cap() exists... " >&6; }
18502 cat confdefs.h
- <<_ACEOF >conftest.c
18505 #include <linux/fs.h>
18506 #include <linux/sched.h>
18512 struct inode *ip = NULL;
18513 (void) is_owner_or_cap(ip);
18523 cat - <<_ACEOF >conftest.h
18528 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
18529 echo "obj-m := conftest.o" >build
/Makefile
18531 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
18532 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
18533 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18534 (eval $ac_try) 2>&5
18536 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18537 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
18538 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18539 (eval $ac_try) 2>&5
18541 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18542 test $ac_status = 0; }; }; then :
18544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18545 $as_echo "yes" >&6; }
18547 $as_echo "#define HAVE_IS_OWNER_OR_CAP 1" >>confdefs.h
18551 $as_echo "$as_me: failed program was:" >&5
18552 sed 's/^/| /' conftest.
$ac_ext >&5
18554 as_fn_error $?
"no - Please file a bug report at
18555 https://github.com/zfsonlinux/zfs/issues/new" "$LINENO" 5
18572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether posix_acl_from_xattr() needs user_ns" >&5
18573 $as_echo_n "checking whether posix_acl_from_xattr() needs user_ns... " >&6; }
18576 cat confdefs.h
- <<_ACEOF >conftest.c
18579 #include <linux/cred.h>
18580 #include <linux/fs.h>
18581 #include <linux/posix_acl_xattr.h>
18587 posix_acl_from_xattr(&init_user_ns, NULL, 0);
18597 cat - <<_ACEOF >conftest.h
18602 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
18603 echo "obj-m := conftest.o" >build
/Makefile
18605 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
18606 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
18607 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18608 (eval $ac_try) 2>&5
18610 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18611 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
18612 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18613 (eval $ac_try) 2>&5
18615 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18616 test $ac_status = 0; }; }; then :
18618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18619 $as_echo "yes" >&6; }
18621 $as_echo "#define HAVE_POSIX_ACL_FROM_XATTR_USERNS 1" >>confdefs.h
18625 $as_echo "$as_me: failed program was:" >&5
18626 sed 's/^/| /' conftest.
$ac_ext >&5
18628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18629 $as_echo "no" >&6; }
18639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether posix_acl_release() is available" >&5
18640 $as_echo_n "checking whether posix_acl_release() is available... " >&6; }
18643 cat confdefs.h
- <<_ACEOF >conftest.c
18646 #include <linux/cred.h>
18647 #include <linux/fs.h>
18648 #include <linux/posix_acl.h>
18654 struct posix_acl* tmp = posix_acl_alloc(1, 0);
18655 posix_acl_release(tmp);
18665 cat - <<_ACEOF >conftest.h
18670 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
18671 echo "obj-m := conftest.o" >build
/Makefile
18673 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
18674 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
18675 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18676 (eval $ac_try) 2>&5
18678 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18679 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
18680 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18681 (eval $ac_try) 2>&5
18683 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18684 test $ac_status = 0; }; }; then :
18686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18687 $as_echo "yes" >&6; }
18689 $as_echo "#define HAVE_POSIX_ACL_RELEASE 1" >>confdefs.h
18693 $as_echo "$as_me: failed program was:" >&5
18694 sed 's/^/| /' conftest.
$ac_ext >&5
18696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18697 $as_echo "no" >&6; }
18706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether posix_acl_release() is GPL-only" >&5
18707 $as_echo_n "checking whether posix_acl_release() is GPL-only... " >&6; }
18710 cat confdefs.h
- <<_ACEOF >conftest.c
18713 #include <linux/cred.h>
18714 #include <linux/fs.h>
18715 #include <linux/posix_acl.h>
18717 MODULE_LICENSE("$ZFS_META_LICENSE");
18723 struct posix_acl* tmp = posix_acl_alloc(1, 0);
18724 posix_acl_release(tmp);
18734 cat - <<_ACEOF >conftest.h
18739 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
18740 echo "obj-m := conftest.o" >build
/Makefile
18742 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
18743 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
18744 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18745 (eval $ac_try) 2>&5
18747 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18748 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
18749 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18750 (eval $ac_try) 2>&5
18752 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18753 test $ac_status = 0; }; }; then :
18755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18756 $as_echo "no" >&6; }
18759 $as_echo "$as_me: failed program was:" >&5
18760 sed 's/^/| /' conftest.
$ac_ext >&5
18762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18763 $as_echo "yes" >&6; }
18765 $as_echo "#define HAVE_POSIX_ACL_RELEASE_GPL_ONLY 1" >>confdefs.h
18776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether set_cached_acl() is usable" >&5
18777 $as_echo_n "checking whether set_cached_acl() is usable... " >&6; }
18780 cat confdefs.h
- <<_ACEOF >conftest.c
18783 #include <linux/module.h>
18784 #include <linux/cred.h>
18785 #include <linux/fs.h>
18786 #include <linux/posix_acl.h>
18788 MODULE_LICENSE("$ZFS_META_LICENSE");
18794 struct inode *ip = NULL;
18795 struct posix_acl *acl = posix_acl_alloc(1, 0);
18796 set_cached_acl(ip, ACL_TYPE_ACCESS, acl);
18797 forget_cached_acl(ip, ACL_TYPE_ACCESS);
18807 cat - <<_ACEOF >conftest.h
18812 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
18813 echo "obj-m := conftest.o" >build
/Makefile
18815 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
18816 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
18817 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18818 (eval $ac_try) 2>&5
18820 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18821 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
18822 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18823 (eval $ac_try) 2>&5
18825 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18826 test $ac_status = 0; }; }; then :
18828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18829 $as_echo "yes" >&6; }
18831 $as_echo "#define HAVE_SET_CACHED_ACL_USABLE 1" >>confdefs.h
18835 $as_echo "$as_me: failed program was:" >&5
18836 sed 's/^/| /' conftest.
$ac_ext >&5
18838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18839 $as_echo "no" >&6; }
18849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether posix_acl_chmod exists" >&5
18850 $as_echo_n "checking whether posix_acl_chmod exists... " >&6; }
18853 cat confdefs.h
- <<_ACEOF >conftest.c
18856 #include <linux/fs.h>
18857 #include <linux/posix_acl.h>
18863 posix_acl_chmod(NULL, 0, 0)
18873 cat - <<_ACEOF >conftest.h
18878 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
18879 echo "obj-m := conftest.o" >build
/Makefile
18881 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
18882 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
18883 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18884 (eval $ac_try) 2>&5
18886 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18887 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
18888 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18889 (eval $ac_try) 2>&5
18891 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18892 test $ac_status = 0; }; }; then :
18894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18895 $as_echo "yes" >&6; }
18897 $as_echo "#define HAVE_POSIX_ACL_CHMOD 1" >>confdefs.h
18901 $as_echo "$as_me: failed program was:" >&5
18902 sed 's/^/| /' conftest.
$ac_ext >&5
18904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18905 $as_echo "no" >&6; }
18914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __posix_acl_chmod exists" >&5
18915 $as_echo_n "checking whether __posix_acl_chmod exists... " >&6; }
18918 cat confdefs.h
- <<_ACEOF >conftest.c
18921 #include <linux/fs.h>
18922 #include <linux/posix_acl.h>
18928 __posix_acl_chmod(NULL, 0, 0)
18938 cat - <<_ACEOF >conftest.h
18943 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
18944 echo "obj-m := conftest.o" >build
/Makefile
18946 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
18947 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
18948 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18949 (eval $ac_try) 2>&5
18951 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18952 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
18953 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18954 (eval $ac_try) 2>&5
18956 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18957 test $ac_status = 0; }; }; then :
18959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18960 $as_echo "yes" >&6; }
18962 $as_echo "#define HAVE___POSIX_ACL_CHMOD 1" >>confdefs.h
18966 $as_echo "$as_me: failed program was:" >&5
18967 sed 's/^/| /' conftest.
$ac_ext >&5
18969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18970 $as_echo "no" >&6; }
18980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether posix_acl_equiv_mode() wants umode_t" >&5
18981 $as_echo_n "checking whether posix_acl_equiv_mode() wants umode_t... " >&6; }
18984 cat confdefs.h
- <<_ACEOF >conftest.c
18987 #include <linux/fs.h>
18988 #include <linux/posix_acl.h>
18995 posix_acl_equiv_mode(NULL,&tmp);
19005 cat - <<_ACEOF >conftest.h
19010 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
19011 echo "obj-m := conftest.o" >build
/Makefile
19013 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
19014 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
19015 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19016 (eval $ac_try) 2>&5
19018 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19019 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
19020 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19021 (eval $ac_try) 2>&5
19023 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19024 test $ac_status = 0; }; }; then :
19026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19027 $as_echo "yes" >&6; }
19029 $as_echo "#define HAVE_POSIX_ACL_EQUIV_MODE_UMODE_T 1" >>confdefs.h
19033 $as_echo "$as_me: failed program was:" >&5
19034 sed 's/^/| /' conftest.
$ac_ext >&5
19036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19037 $as_echo "no" >&6; }
19047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether posix_acl_valid() wants user namespace" >&5
19048 $as_echo_n "checking whether posix_acl_valid() wants user namespace... " >&6; }
19051 cat confdefs.h
- <<_ACEOF >conftest.c
19054 #include <linux/fs.h>
19055 #include <linux/posix_acl.h>
19061 struct user_namespace *user_ns = NULL;
19062 const struct posix_acl *acl = NULL;
19065 error = posix_acl_valid(user_ns, acl);
19075 cat - <<_ACEOF >conftest.h
19080 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
19081 echo "obj-m := conftest.o" >build
/Makefile
19083 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
19084 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
19085 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19086 (eval $ac_try) 2>&5
19088 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19089 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
19090 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19091 (eval $ac_try) 2>&5
19093 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19094 test $ac_status = 0; }; }; then :
19096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19097 $as_echo "yes" >&6; }
19099 $as_echo "#define HAVE_POSIX_ACL_VALID_WITH_NS 1" >>confdefs.h
19103 $as_echo "$as_me: failed program was:" >&5
19104 sed 's/^/| /' conftest.
$ac_ext >&5
19106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19107 $as_echo "no" >&6; }
19117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->permission() exists" >&5
19118 $as_echo_n "checking whether iops->permission() exists... " >&6; }
19121 cat confdefs.h
- <<_ACEOF >conftest.c
19124 #include <linux/fs.h>
19126 int permission_fn(struct inode *inode, int mask) { return 0; }
19128 static const struct inode_operations
19129 iops __attribute__ ((unused)) = {
19130 .permission = permission_fn,
19146 cat - <<_ACEOF >conftest.h
19151 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
19152 echo "obj-m := conftest.o" >build
/Makefile
19154 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
19155 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
19156 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19157 (eval $ac_try) 2>&5
19159 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19160 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
19161 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19162 (eval $ac_try) 2>&5
19164 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19165 test $ac_status = 0; }; }; then :
19167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19168 $as_echo "yes" >&6; }
19170 $as_echo "#define HAVE_PERMISSION 1" >>confdefs.h
19174 $as_echo "$as_me: failed program was:" >&5
19175 sed 's/^/| /' conftest.
$ac_ext >&5
19177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19178 $as_echo "no" >&6; }
19188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->permission() wants nameidata" >&5
19189 $as_echo_n "checking whether iops->permission() wants nameidata... " >&6; }
19192 cat confdefs.h
- <<_ACEOF >conftest.c
19195 #include <linux/fs.h>
19197 int permission_fn(struct inode *inode, int mask,
19198 struct nameidata *nd) { return 0; }
19200 static const struct inode_operations
19201 iops __attribute__ ((unused)) = {
19202 .permission = permission_fn,
19218 cat - <<_ACEOF >conftest.h
19223 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
19224 echo "obj-m := conftest.o" >build
/Makefile
19226 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
19227 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
19228 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19229 (eval $ac_try) 2>&5
19231 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19232 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
19233 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19234 (eval $ac_try) 2>&5
19236 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19237 test $ac_status = 0; }; }; then :
19239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19240 $as_echo "yes" >&6; }
19242 $as_echo "#define HAVE_PERMISSION 1" >>confdefs.h
19245 $as_echo "#define HAVE_PERMISSION_WITH_NAMEIDATA 1" >>confdefs.h
19249 $as_echo "$as_me: failed program was:" >&5
19250 sed 's/^/| /' conftest.
$ac_ext >&5
19252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19253 $as_echo "no" >&6; }
19263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->check_acl() exists" >&5
19264 $as_echo_n "checking whether iops->check_acl() exists... " >&6; }
19267 cat confdefs.h
- <<_ACEOF >conftest.c
19270 #include <linux/fs.h>
19272 int check_acl_fn(struct inode *inode, int mask) { return 0; }
19274 static const struct inode_operations
19275 iops __attribute__ ((unused)) = {
19276 .check_acl = check_acl_fn,
19292 cat - <<_ACEOF >conftest.h
19297 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
19298 echo "obj-m := conftest.o" >build
/Makefile
19300 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
19301 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
19302 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19303 (eval $ac_try) 2>&5
19305 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19306 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
19307 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19308 (eval $ac_try) 2>&5
19310 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19311 test $ac_status = 0; }; }; then :
19313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19314 $as_echo "yes" >&6; }
19316 $as_echo "#define HAVE_CHECK_ACL 1" >>confdefs.h
19320 $as_echo "$as_me: failed program was:" >&5
19321 sed 's/^/| /' conftest.
$ac_ext >&5
19323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19324 $as_echo "no" >&6; }
19334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->check_acl() wants flags" >&5
19335 $as_echo_n "checking whether iops->check_acl() wants flags... " >&6; }
19338 cat confdefs.h
- <<_ACEOF >conftest.c
19341 #include <linux/fs.h>
19343 int check_acl_fn(struct inode *inode, int mask,
19344 unsigned int flags) { return 0; }
19346 static const struct inode_operations
19347 iops __attribute__ ((unused)) = {
19348 .check_acl = check_acl_fn,
19364 cat - <<_ACEOF >conftest.h
19369 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
19370 echo "obj-m := conftest.o" >build
/Makefile
19372 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
19373 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
19374 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19375 (eval $ac_try) 2>&5
19377 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19378 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
19379 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19380 (eval $ac_try) 2>&5
19382 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19383 test $ac_status = 0; }; }; then :
19385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19386 $as_echo "yes" >&6; }
19388 $as_echo "#define HAVE_CHECK_ACL 1" >>confdefs.h
19391 $as_echo "#define HAVE_CHECK_ACL_WITH_FLAGS 1" >>confdefs.h
19395 $as_echo "$as_me: failed program was:" >&5
19396 sed 's/^/| /' conftest.
$ac_ext >&5
19398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19399 $as_echo "no" >&6; }
19409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->get_acl() exists" >&5
19410 $as_echo_n "checking whether iops->get_acl() exists... " >&6; }
19413 cat confdefs.h
- <<_ACEOF >conftest.c
19416 #include <linux/fs.h>
19418 struct posix_acl *get_acl_fn(struct inode *inode, int type)
19421 static const struct inode_operations
19422 iops __attribute__ ((unused)) = {
19423 .get_acl = get_acl_fn,
19439 cat - <<_ACEOF >conftest.h
19444 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
19445 echo "obj-m := conftest.o" >build
/Makefile
19447 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
19448 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
19449 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19450 (eval $ac_try) 2>&5
19452 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19453 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
19454 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19455 (eval $ac_try) 2>&5
19457 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19458 test $ac_status = 0; }; }; then :
19460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19461 $as_echo "yes" >&6; }
19463 $as_echo "#define HAVE_GET_ACL 1" >>confdefs.h
19467 $as_echo "$as_me: failed program was:" >&5
19468 sed 's/^/| /' conftest.
$ac_ext >&5
19470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19471 $as_echo "no" >&6; }
19481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->set_acl() exists" >&5
19482 $as_echo_n "checking whether iops->set_acl() exists... " >&6; }
19485 cat confdefs.h
- <<_ACEOF >conftest.c
19488 #include <linux/fs.h>
19490 int set_acl_fn(struct inode *inode, struct posix_acl *acl, int type)
19493 static const struct inode_operations
19494 iops __attribute__ ((unused)) = {
19495 .set_acl = set_acl_fn,
19511 cat - <<_ACEOF >conftest.h
19516 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
19517 echo "obj-m := conftest.o" >build
/Makefile
19519 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
19520 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
19521 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19522 (eval $ac_try) 2>&5
19524 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19525 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
19526 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19527 (eval $ac_try) 2>&5
19529 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19530 test $ac_status = 0; }; }; then :
19532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19533 $as_echo "yes" >&6; }
19535 $as_echo "#define HAVE_SET_ACL 1" >>confdefs.h
19539 $as_echo "$as_me: failed program was:" >&5
19540 sed 's/^/| /' conftest.
$ac_ext >&5
19542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19543 $as_echo "no" >&6; }
19554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->getattr() takes a path" >&5
19555 $as_echo_n "checking whether iops->getattr() takes a path... " >&6; }
19558 cat confdefs.h
- <<_ACEOF >conftest.c
19561 #include <linux/fs.h>
19564 const struct path *p, struct kstat *k,
19565 u32 request_mask, unsigned int query_flags)
19568 static const struct inode_operations
19569 iops __attribute__ ((unused)) = {
19570 .getattr = test_getattr,
19586 cat - <<_ACEOF >conftest.h
19591 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
19592 echo "obj-m := conftest.o" >build
/Makefile
19594 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
19595 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
19596 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19597 (eval $ac_try) 2>&5
19599 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19600 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
19601 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19602 (eval $ac_try) 2>&5
19604 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19605 test $ac_status = 0; }; }; then :
19607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19608 $as_echo "yes" >&6; }
19610 $as_echo "#define HAVE_PATH_IOPS_GETATTR 1" >>confdefs.h
19614 $as_echo "$as_me: failed program was:" >&5
19615 sed 's/^/| /' conftest.
$ac_ext >&5
19617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19618 $as_echo "no" >&6; }
19628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->getattr() takes a vfsmount" >&5
19629 $as_echo_n "checking whether iops->getattr() takes a vfsmount... " >&6; }
19632 cat confdefs.h
- <<_ACEOF >conftest.c
19635 #include <linux/fs.h>
19638 struct vfsmount *mnt, struct dentry *d,
19642 static const struct inode_operations
19643 iops __attribute__ ((unused)) = {
19644 .getattr = test_getattr,
19660 cat - <<_ACEOF >conftest.h
19665 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
19666 echo "obj-m := conftest.o" >build
/Makefile
19668 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
19669 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
19670 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19671 (eval $ac_try) 2>&5
19673 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19674 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
19675 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19676 (eval $ac_try) 2>&5
19678 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19679 test $ac_status = 0; }; }; then :
19681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19682 $as_echo "yes" >&6; }
19684 $as_echo "#define HAVE_VFSMOUNT_IOPS_GETATTR 1" >>confdefs.h
19688 $as_echo "$as_me: failed program was:" >&5
19689 sed 's/^/| /' conftest.
$ac_ext >&5
19691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19692 $as_echo "no" >&6; }
19703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether uncached_acl_sentinel() exists" >&5
19704 $as_echo_n "checking whether uncached_acl_sentinel() exists... " >&6; }
19707 cat confdefs.h
- <<_ACEOF >conftest.c
19710 #include <linux/fs.h>
19716 void *sentinel __attribute__ ((unused)) = uncached_acl_sentinel(NULL);
19726 cat - <<_ACEOF >conftest.h
19731 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
19732 echo "obj-m := conftest.o" >build
/Makefile
19734 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
19735 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
19736 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19737 (eval $ac_try) 2>&5
19739 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19740 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
19741 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19742 (eval $ac_try) 2>&5
19744 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19745 test $ac_status = 0; }; }; then :
19747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19748 $as_echo "yes" >&6; }
19750 $as_echo "#define HAVE_KERNEL_GET_ACL_HANDLE_CACHE 1" >>confdefs.h
19754 $as_echo "$as_me: failed program was:" >&5
19755 sed 's/^/| /' conftest.
$ac_ext >&5
19757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19758 $as_echo "no" >&6; }
19768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sops->show_options() wants dentry" >&5
19769 $as_echo_n "checking whether sops->show_options() wants dentry... " >&6; }
19773 cat confdefs.h
- <<_ACEOF >conftest.c
19776 #include <linux/fs.h>
19778 int show_options (struct seq_file * x, struct dentry * y) { return 0; };
19779 static struct super_operations sops __attribute__ ((unused)) = {
19780 .show_options = show_options,
19796 cat - <<_ACEOF >conftest.h
19801 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
19802 echo "obj-m := conftest.o" >build
/Makefile
19804 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
19805 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
19806 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19807 (eval $ac_try) 2>&5
19809 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19810 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
19811 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19812 (eval $ac_try) 2>&5
19814 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19815 test $ac_status = 0; }; }; then :
19817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19818 $as_echo "yes" >&6; }
19820 $as_echo "#define HAVE_SHOW_OPTIONS_WITH_DENTRY 1" >>confdefs.h
19824 $as_echo "$as_me: failed program was:" >&5
19825 sed 's/^/| /' conftest.
$ac_ext >&5
19827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19828 $as_echo "no" >&6; }
19838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether file_inode() is available" >&5
19839 $as_echo_n "checking whether file_inode() is available... " >&6; }
19842 cat confdefs.h
- <<_ACEOF >conftest.c
19845 #include <linux/fs.h>
19851 struct file *f = NULL;
19862 cat - <<_ACEOF >conftest.h
19867 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
19868 echo "obj-m := conftest.o" >build
/Makefile
19870 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
19871 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
19872 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19873 (eval $ac_try) 2>&5
19875 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19876 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
19877 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19878 (eval $ac_try) 2>&5
19880 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19881 test $ac_status = 0; }; }; then :
19883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19884 $as_echo "yes" >&6; }
19886 $as_echo "#define HAVE_FILE_INODE 1" >>confdefs.h
19890 $as_echo "$as_me: failed program was:" >&5
19891 sed 's/^/| /' conftest.
$ac_ext >&5
19893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19894 $as_echo "no" >&6; }
19904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fops->fsync() wants" >&5
19905 $as_echo_n "checking whether fops->fsync() wants... " >&6; }
19909 cat confdefs.h
- <<_ACEOF >conftest.c
19912 #include <linux/fs.h>
19914 int test_fsync(struct file *f, struct dentry *dentry, int x)
19917 static const struct file_operations
19918 fops __attribute__ ((unused)) = {
19919 .fsync = test_fsync,
19935 cat - <<_ACEOF >conftest.h
19940 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
19941 echo "obj-m := conftest.o" >build
/Makefile
19943 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
19944 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
19945 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19946 (eval $ac_try) 2>&5
19948 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19949 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
19950 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19951 (eval $ac_try) 2>&5
19953 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19954 test $ac_status = 0; }; }; then :
19956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: dentry" >&5
19957 $as_echo "dentry" >&6; }
19959 $as_echo "#define HAVE_FSYNC_WITH_DENTRY 1" >>confdefs.h
19963 $as_echo "$as_me: failed program was:" >&5
19964 sed 's/^/| /' conftest.
$ac_ext >&5
19977 cat confdefs.h
- <<_ACEOF >conftest.c
19980 #include <linux/fs.h>
19982 int test_fsync(struct file *f, int x) { return 0; }
19984 static const struct file_operations
19985 fops __attribute__ ((unused)) = {
19986 .fsync = test_fsync,
20002 cat - <<_ACEOF >conftest.h
20007 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
20008 echo "obj-m := conftest.o" >build
/Makefile
20010 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
20011 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
20012 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20013 (eval $ac_try) 2>&5
20015 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20016 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
20017 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20018 (eval $ac_try) 2>&5
20020 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20021 test $ac_status = 0; }; }; then :
20023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no dentry" >&5
20024 $as_echo "no dentry" >&6; }
20026 $as_echo "#define HAVE_FSYNC_WITHOUT_DENTRY 1" >>confdefs.h
20030 $as_echo "$as_me: failed program was:" >&5
20031 sed 's/^/| /' conftest.
$ac_ext >&5
20044 cat confdefs.h
- <<_ACEOF >conftest.c
20047 #include <linux/fs.h>
20049 int test_fsync(struct file *f, loff_t a, loff_t b, int c)
20052 static const struct file_operations
20053 fops __attribute__ ((unused)) = {
20054 .fsync = test_fsync,
20070 cat - <<_ACEOF >conftest.h
20075 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
20076 echo "obj-m := conftest.o" >build
/Makefile
20078 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
20079 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
20080 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20081 (eval $ac_try) 2>&5
20083 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20084 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
20085 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20086 (eval $ac_try) 2>&5
20088 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20089 test $ac_status = 0; }; }; then :
20091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: range" >&5
20092 $as_echo "range" >&6; }
20094 $as_echo "#define HAVE_FSYNC_RANGE 1" >>confdefs.h
20098 $as_echo "$as_me: failed program was:" >&5
20099 sed 's/^/| /' conftest.
$ac_ext >&5
20111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sops->evict_inode() exists" >&5
20112 $as_echo_n "checking whether sops->evict_inode() exists... " >&6; }
20115 cat confdefs.h
- <<_ACEOF >conftest.c
20118 #include <linux/fs.h>
20119 void evict_inode (struct inode * t) { return; }
20120 static struct super_operations sops __attribute__ ((unused)) = {
20121 .evict_inode = evict_inode,
20137 cat - <<_ACEOF >conftest.h
20142 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
20143 echo "obj-m := conftest.o" >build
/Makefile
20145 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
20146 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
20147 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20148 (eval $ac_try) 2>&5
20150 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20151 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
20152 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20153 (eval $ac_try) 2>&5
20155 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20156 test $ac_status = 0; }; }; then :
20158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20159 $as_echo "yes" >&6; }
20161 $as_echo "#define HAVE_EVICT_INODE 1" >>confdefs.h
20165 $as_echo "$as_me: failed program was:" >&5
20166 sed 's/^/| /' conftest.
$ac_ext >&5
20168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20169 $as_echo "no" >&6; }
20179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sops->dirty_inode() wants flags" >&5
20180 $as_echo_n "checking whether sops->dirty_inode() wants flags... " >&6; }
20183 cat confdefs.h
- <<_ACEOF >conftest.c
20186 #include <linux/fs.h>
20188 void dirty_inode(struct inode *a, int b) { return; }
20190 static const struct super_operations
20191 sops __attribute__ ((unused)) = {
20192 .dirty_inode = dirty_inode,
20208 cat - <<_ACEOF >conftest.h
20213 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
20214 echo "obj-m := conftest.o" >build
/Makefile
20216 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
20217 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
20218 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20219 (eval $ac_try) 2>&5
20221 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20222 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
20223 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20224 (eval $ac_try) 2>&5
20226 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20227 test $ac_status = 0; }; }; then :
20229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20230 $as_echo "yes" >&6; }
20232 $as_echo "#define HAVE_DIRTY_INODE_WITH_FLAGS 1" >>confdefs.h
20236 $as_echo "$as_me: failed program was:" >&5
20237 sed 's/^/| /' conftest.
$ac_ext >&5
20239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20240 $as_echo "no" >&6; }
20250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sops->nr_cached_objects() exists" >&5
20251 $as_echo_n "checking whether sops->nr_cached_objects() exists... " >&6; }
20254 cat confdefs.h
- <<_ACEOF >conftest.c
20257 #include <linux/fs.h>
20259 int nr_cached_objects(struct super_block *sb) { return 0; }
20261 static const struct super_operations
20262 sops __attribute__ ((unused)) = {
20263 .nr_cached_objects = nr_cached_objects,
20279 cat - <<_ACEOF >conftest.h
20284 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
20285 echo "obj-m := conftest.o" >build
/Makefile
20287 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
20288 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
20289 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20290 (eval $ac_try) 2>&5
20292 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20293 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
20294 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20295 (eval $ac_try) 2>&5
20297 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20298 test $ac_status = 0; }; }; then :
20300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20301 $as_echo "yes" >&6; }
20303 $as_echo "#define HAVE_NR_CACHED_OBJECTS 1" >>confdefs.h
20307 $as_echo "$as_me: failed program was:" >&5
20308 sed 's/^/| /' conftest.
$ac_ext >&5
20310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20311 $as_echo "no" >&6; }
20321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sops->free_cached_objects() exists" >&5
20322 $as_echo_n "checking whether sops->free_cached_objects() exists... " >&6; }
20325 cat confdefs.h
- <<_ACEOF >conftest.c
20328 #include <linux/fs.h>
20330 void free_cached_objects(struct super_block *sb, int x)
20333 static const struct super_operations
20334 sops __attribute__ ((unused)) = {
20335 .free_cached_objects = free_cached_objects,
20351 cat - <<_ACEOF >conftest.h
20356 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
20357 echo "obj-m := conftest.o" >build
/Makefile
20359 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
20360 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
20361 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20362 (eval $ac_try) 2>&5
20364 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20365 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
20366 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20367 (eval $ac_try) 2>&5
20369 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20370 test $ac_status = 0; }; }; then :
20372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20373 $as_echo "yes" >&6; }
20375 $as_echo "#define HAVE_FREE_CACHED_OBJECTS 1" >>confdefs.h
20379 $as_echo "$as_me: failed program was:" >&5
20380 sed 's/^/| /' conftest.
$ac_ext >&5
20382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20383 $as_echo "no" >&6; }
20394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fops->fallocate() exists" >&5
20395 $as_echo_n "checking whether fops->fallocate() exists... " >&6; }
20398 cat confdefs.h
- <<_ACEOF >conftest.c
20401 #include <linux/fs.h>
20403 long test_fallocate(struct file *file, int mode,
20404 loff_t offset, loff_t len) { return 0; }
20406 static const struct file_operations
20407 fops __attribute__ ((unused)) = {
20408 .fallocate = test_fallocate,
20424 cat - <<_ACEOF >conftest.h
20429 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
20430 echo "obj-m := conftest.o" >build
/Makefile
20432 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
20433 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
20434 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20435 (eval $ac_try) 2>&5
20437 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20438 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
20439 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20440 (eval $ac_try) 2>&5
20442 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20443 test $ac_status = 0; }; }; then :
20445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20446 $as_echo "yes" >&6; }
20448 $as_echo "#define HAVE_FILE_FALLOCATE 1" >>confdefs.h
20452 $as_echo "$as_me: failed program was:" >&5
20453 sed 's/^/| /' conftest.
$ac_ext >&5
20455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20456 $as_echo "no" >&6; }
20466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->fallocate() exists" >&5
20467 $as_echo_n "checking whether iops->fallocate() exists... " >&6; }
20470 cat confdefs.h
- <<_ACEOF >conftest.c
20473 #include <linux/fs.h>
20475 long test_fallocate(struct inode *inode, int mode,
20476 loff_t offset, loff_t len) { return 0; }
20478 static const struct inode_operations
20479 fops __attribute__ ((unused)) = {
20480 .fallocate = test_fallocate,
20496 cat - <<_ACEOF >conftest.h
20501 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
20502 echo "obj-m := conftest.o" >build
/Makefile
20504 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
20505 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
20506 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20507 (eval $ac_try) 2>&5
20509 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20510 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
20511 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20512 (eval $ac_try) 2>&5
20514 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20515 test $ac_status = 0; }; }; then :
20517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20518 $as_echo "yes" >&6; }
20520 $as_echo "#define HAVE_INODE_FALLOCATE 1" >>confdefs.h
20524 $as_echo "$as_me: failed program was:" >&5
20525 sed 's/^/| /' conftest.
$ac_ext >&5
20527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20528 $as_echo "no" >&6; }
20539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fops->aio_fsync() exists" >&5
20540 $as_echo_n "checking whether fops->aio_fsync() exists... " >&6; }
20543 cat confdefs.h
- <<_ACEOF >conftest.c
20546 #include <linux/fs.h>
20548 static const struct file_operations
20549 fops __attribute__ ((unused)) = {
20566 cat - <<_ACEOF >conftest.h
20571 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
20572 echo "obj-m := conftest.o" >build
/Makefile
20574 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
20575 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
20576 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20577 (eval $ac_try) 2>&5
20579 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20580 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
20581 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20582 (eval $ac_try) 2>&5
20584 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20585 test $ac_status = 0; }; }; then :
20587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20588 $as_echo "yes" >&6; }
20590 $as_echo "#define HAVE_FILE_AIO_FSYNC 1" >>confdefs.h
20594 $as_echo "$as_me: failed program was:" >&5
20595 sed 's/^/| /' conftest.
$ac_ext >&5
20597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20598 $as_echo "no" >&6; }
20608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->create()/mkdir()/mknod() take umode_t" >&5
20609 $as_echo_n "checking whether iops->create()/mkdir()/mknod() take umode_t... " >&6; }
20612 cat confdefs.h
- <<_ACEOF >conftest.c
20615 #include <linux/fs.h>
20617 int mkdir(struct inode *inode, struct dentry *dentry,
20618 umode_t umode) { return 0; }
20620 static const struct inode_operations
20621 iops __attribute__ ((unused)) = {
20638 cat - <<_ACEOF >conftest.h
20643 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
20644 echo "obj-m := conftest.o" >build
/Makefile
20646 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
20647 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
20648 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20649 (eval $ac_try) 2>&5
20651 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20652 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
20653 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20654 (eval $ac_try) 2>&5
20656 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20657 test $ac_status = 0; }; }; then :
20659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20660 $as_echo "yes" >&6; }
20662 $as_echo "#define HAVE_MKDIR_UMODE_T 1" >>confdefs.h
20666 $as_echo "$as_me: failed program was:" >&5
20667 sed 's/^/| /' conftest.
$ac_ext >&5
20669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20670 $as_echo "no" >&6; }
20680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->lookup() passes nameidata" >&5
20681 $as_echo_n "checking whether iops->lookup() passes nameidata... " >&6; }
20684 cat confdefs.h
- <<_ACEOF >conftest.c
20687 #include <linux/fs.h>
20689 struct dentry *inode_lookup(struct inode *inode,
20690 struct dentry *dentry, struct nameidata *nidata)
20693 static const struct inode_operations iops
20694 __attribute__ ((unused)) = {
20695 .lookup = inode_lookup,
20711 cat - <<_ACEOF >conftest.h
20716 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
20717 echo "obj-m := conftest.o" >build
/Makefile
20719 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
20720 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
20721 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20722 (eval $ac_try) 2>&5
20724 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20725 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
20726 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20727 (eval $ac_try) 2>&5
20729 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20730 test $ac_status = 0; }; }; then :
20732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20733 $as_echo "yes" >&6; }
20735 $as_echo "#define HAVE_LOOKUP_NAMEIDATA 1" >>confdefs.h
20739 $as_echo "$as_me: failed program was:" >&5
20740 sed 's/^/| /' conftest.
$ac_ext >&5
20742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20743 $as_echo "no" >&6; }
20753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->create() passes nameidata" >&5
20754 $as_echo_n "checking whether iops->create() passes nameidata... " >&6; }
20757 cat confdefs.h
- <<_ACEOF >conftest.c
20760 #include <linux/fs.h>
20762 #ifdef HAVE_MKDIR_UMODE_T
20763 int inode_create(struct inode *inode ,struct dentry *dentry,
20764 umode_t umode, struct nameidata *nidata) { return 0; }
20766 int inode_create(struct inode *inode,struct dentry *dentry,
20767 int umode, struct nameidata * nidata) { return 0; }
20770 static const struct inode_operations
20771 iops __attribute__ ((unused)) = {
20772 .create = inode_create,
20788 cat - <<_ACEOF >conftest.h
20793 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
20794 echo "obj-m := conftest.o" >build
/Makefile
20796 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
20797 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
20798 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20799 (eval $ac_try) 2>&5
20801 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20802 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
20803 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20804 (eval $ac_try) 2>&5
20806 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20807 test $ac_status = 0; }; }; then :
20809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20810 $as_echo "yes" >&6; }
20812 $as_echo "#define HAVE_CREATE_NAMEIDATA 1" >>confdefs.h
20816 $as_echo "$as_me: failed program was:" >&5
20817 sed 's/^/| /' conftest.
$ac_ext >&5
20819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20820 $as_echo "no" >&6; }
20830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->get_link() passes delayed" >&5
20831 $as_echo_n "checking whether iops->get_link() passes delayed... " >&6; }
20834 cat confdefs.h
- <<_ACEOF >conftest.c
20837 #include <linux/fs.h>
20838 const char *get_link(struct dentry *de, struct inode *ip,
20839 struct delayed_call *done) { return "symlink"; }
20840 static struct inode_operations
20841 iops __attribute__ ((unused)) = {
20842 .get_link = get_link,
20858 cat - <<_ACEOF >conftest.h
20863 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
20864 echo "obj-m := conftest.o" >build
/Makefile
20866 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
20867 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
20868 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20869 (eval $ac_try) 2>&5
20871 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20872 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
20873 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20874 (eval $ac_try) 2>&5
20876 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20877 test $ac_status = 0; }; }; then :
20879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20880 $as_echo "yes" >&6; }
20882 $as_echo "#define HAVE_GET_LINK_DELAYED 1" >>confdefs.h
20886 $as_echo "$as_me: failed program was:" >&5
20887 sed 's/^/| /' conftest.
$ac_ext >&5
20889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20890 $as_echo "no" >&6; }
20891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->get_link() passes cookie" >&5
20892 $as_echo_n "checking whether iops->get_link() passes cookie... " >&6; }
20895 cat confdefs.h
- <<_ACEOF >conftest.c
20898 #include <linux/fs.h>
20899 const char *get_link(struct dentry *de, struct
20900 inode *ip, void **cookie) { return "symlink"; }
20901 static struct inode_operations
20902 iops __attribute__ ((unused)) = {
20903 .get_link = get_link,
20919 cat - <<_ACEOF >conftest.h
20924 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
20925 echo "obj-m := conftest.o" >build
/Makefile
20927 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
20928 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
20929 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20930 (eval $ac_try) 2>&5
20932 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20933 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
20934 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20935 (eval $ac_try) 2>&5
20937 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20938 test $ac_status = 0; }; }; then :
20940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20941 $as_echo "yes" >&6; }
20943 $as_echo "#define HAVE_GET_LINK_COOKIE 1" >>confdefs.h
20947 $as_echo "$as_me: failed program was:" >&5
20948 sed 's/^/| /' conftest.
$ac_ext >&5
20950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20951 $as_echo "no" >&6; }
20953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->follow_link() passes cookie" >&5
20954 $as_echo_n "checking whether iops->follow_link() passes cookie... " >&6; }
20957 cat confdefs.h
- <<_ACEOF >conftest.c
20960 #include <linux/fs.h>
20961 const char *follow_link(struct dentry *de,
20962 void **cookie) { return "symlink"; }
20963 static struct inode_operations
20964 iops __attribute__ ((unused)) = {
20965 .follow_link = follow_link,
20981 cat - <<_ACEOF >conftest.h
20986 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
20987 echo "obj-m := conftest.o" >build
/Makefile
20989 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
20990 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
20991 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20992 (eval $ac_try) 2>&5
20994 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20995 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
20996 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20997 (eval $ac_try) 2>&5
20999 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21000 test $ac_status = 0; }; }; then :
21002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21003 $as_echo "yes" >&6; }
21005 $as_echo "#define HAVE_FOLLOW_LINK_COOKIE 1" >>confdefs.h
21009 $as_echo "$as_me: failed program was:" >&5
21010 sed 's/^/| /' conftest.
$ac_ext >&5
21012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21013 $as_echo "no" >&6; }
21014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->follow_link() passes nameidata" >&5
21015 $as_echo_n "checking whether iops->follow_link() passes nameidata... " >&6; }
21018 cat confdefs.h
- <<_ACEOF >conftest.c
21021 #include <linux/fs.h>
21022 void *follow_link(struct dentry *de, struct
21023 nameidata *nd) { return (void *)NULL; }
21024 static struct inode_operations
21025 iops __attribute__ ((unused)) = {
21026 .follow_link = follow_link,
21042 cat - <<_ACEOF >conftest.h
21047 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
21048 echo "obj-m := conftest.o" >build
/Makefile
21050 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
21051 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
21052 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21053 (eval $ac_try) 2>&5
21055 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21056 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
21057 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21058 (eval $ac_try) 2>&5
21060 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21061 test $ac_status = 0; }; }; then :
21063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21064 $as_echo "yes" >&6; }
21066 $as_echo "#define HAVE_FOLLOW_LINK_NAMEIDATA 1" >>confdefs.h
21070 $as_echo "$as_me: failed program was:" >&5
21071 sed 's/^/| /' conftest.
$ac_ext >&5
21073 as_fn_error $?
"no; please file a bug report" "$LINENO" 5
21107 cat confdefs.h
- <<_ACEOF >conftest.c
21110 #if !defined(HAVE_GET_LINK_DELAYED)
21111 #error "Expecting get_link() delayed done"
21127 cat - <<_ACEOF >conftest.h
21132 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
21133 echo "obj-m := conftest.o" >build
/Makefile
21135 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
21136 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
21137 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21138 (eval $ac_try) 2>&5
21140 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21141 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
21142 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21143 (eval $ac_try) 2>&5
21145 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21146 test $ac_status = 0; }; }; then :
21149 $as_echo "#define HAVE_PUT_LINK_DELAYED 1" >>confdefs.h
21153 $as_echo "$as_me: failed program was:" >&5
21154 sed 's/^/| /' conftest.
$ac_ext >&5
21156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->put_link() passes cookie" >&5
21157 $as_echo_n "checking whether iops->put_link() passes cookie... " >&6; }
21160 cat confdefs.h
- <<_ACEOF >conftest.c
21163 #include <linux/fs.h>
21164 void put_link(struct inode *ip, void *cookie)
21166 static struct inode_operations
21167 iops __attribute__ ((unused)) = {
21168 .put_link = put_link,
21184 cat - <<_ACEOF >conftest.h
21189 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
21190 echo "obj-m := conftest.o" >build
/Makefile
21192 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
21193 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
21194 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21195 (eval $ac_try) 2>&5
21197 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21198 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
21199 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21200 (eval $ac_try) 2>&5
21202 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21203 test $ac_status = 0; }; }; then :
21205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21206 $as_echo "yes" >&6; }
21208 $as_echo "#define HAVE_PUT_LINK_COOKIE 1" >>confdefs.h
21212 $as_echo "$as_me: failed program was:" >&5
21213 sed 's/^/| /' conftest.
$ac_ext >&5
21215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21216 $as_echo "no" >&6; }
21217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->put_link() passes nameidata" >&5
21218 $as_echo_n "checking whether iops->put_link() passes nameidata... " >&6; }
21221 cat confdefs.h
- <<_ACEOF >conftest.c
21224 #include <linux/fs.h>
21225 void put_link(struct dentry *de, struct
21226 nameidata *nd, void *ptr) { return; }
21227 static struct inode_operations
21228 iops __attribute__ ((unused)) = {
21229 .put_link = put_link,
21245 cat - <<_ACEOF >conftest.h
21250 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
21251 echo "obj-m := conftest.o" >build
/Makefile
21253 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
21254 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
21255 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21256 (eval $ac_try) 2>&5
21258 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21259 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
21260 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21261 (eval $ac_try) 2>&5
21263 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21264 test $ac_status = 0; }; }; then :
21266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21267 $as_echo "yes" >&6; }
21269 $as_echo "#define HAVE_PUT_LINK_NAMEIDATA 1" >>confdefs.h
21273 $as_echo "$as_me: failed program was:" >&5
21274 sed 's/^/| /' conftest.
$ac_ext >&5
21276 as_fn_error $?
"no; please file a bug report" "$LINENO" 5
21300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->truncate_range() exists" >&5
21301 $as_echo_n "checking whether iops->truncate_range() exists... " >&6; }
21304 cat confdefs.h
- <<_ACEOF >conftest.c
21307 #include <linux/fs.h>
21308 void truncate_range(struct inode *inode, loff_t start,
21309 loff_t end) { return; }
21310 static struct inode_operations iops __attribute__ ((unused)) = {
21311 .truncate_range = truncate_range,
21327 cat - <<_ACEOF >conftest.h
21332 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
21333 echo "obj-m := conftest.o" >build
/Makefile
21335 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
21336 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
21337 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21338 (eval $ac_try) 2>&5
21340 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21341 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
21342 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21343 (eval $ac_try) 2>&5
21345 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21346 test $ac_status = 0; }; }; then :
21348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21349 $as_echo "yes" >&6; }
21351 $as_echo "#define HAVE_INODE_TRUNCATE_RANGE 1" >>confdefs.h
21355 $as_echo "$as_me: failed program was:" >&5
21356 sed 's/^/| /' conftest.
$ac_ext >&5
21358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21359 $as_echo "no" >&6; }
21369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether dops->d_automount() exists" >&5
21370 $as_echo_n "checking whether dops->d_automount() exists... " >&6; }
21373 cat confdefs.h
- <<_ACEOF >conftest.c
21376 #include <linux/dcache.h>
21377 struct vfsmount *d_automount(struct path *p) { return NULL; }
21378 struct dentry_operations dops __attribute__ ((unused)) = {
21379 .d_automount = d_automount,
21395 cat - <<_ACEOF >conftest.h
21400 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
21401 echo "obj-m := conftest.o" >build
/Makefile
21403 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
21404 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
21405 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21406 (eval $ac_try) 2>&5
21408 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21409 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
21410 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21411 (eval $ac_try) 2>&5
21413 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21414 test $ac_status = 0; }; }; then :
21416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21417 $as_echo "yes" >&6; }
21419 $as_echo "#define HAVE_AUTOMOUNT 1" >>confdefs.h
21423 $as_echo "$as_me: failed program was:" >&5
21424 sed 's/^/| /' conftest.
$ac_ext >&5
21426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21427 $as_echo "no" >&6; }
21437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether eops->encode_fh() wants inode" >&5
21438 $as_echo_n "checking whether eops->encode_fh() wants inode... " >&6; }
21441 cat confdefs.h
- <<_ACEOF >conftest.c
21444 #include <linux/exportfs.h>
21445 int encode_fh(struct inode *inode, __u32 *fh, int *max_len,
21446 struct inode *parent) { return 0; }
21447 static struct export_operations eops __attribute__ ((unused))={
21448 .encode_fh = encode_fh,
21464 cat - <<_ACEOF >conftest.h
21469 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
21470 echo "obj-m := conftest.o" >build
/Makefile
21472 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
21473 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
21474 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21475 (eval $ac_try) 2>&5
21477 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21478 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
21479 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21480 (eval $ac_try) 2>&5
21482 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21483 test $ac_status = 0; }; }; then :
21485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21486 $as_echo "yes" >&6; }
21488 $as_echo "#define HAVE_ENCODE_FH_WITH_INODE 1" >>confdefs.h
21492 $as_echo "$as_me: failed program was:" >&5
21493 sed 's/^/| /' conftest.
$ac_ext >&5
21495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21496 $as_echo "no" >&6; }
21506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether eops->commit_metadata() exists" >&5
21507 $as_echo_n "checking whether eops->commit_metadata() exists... " >&6; }
21510 cat confdefs.h
- <<_ACEOF >conftest.c
21513 #include <linux/exportfs.h>
21514 int commit_metadata(struct inode *inode) { return 0; }
21515 static struct export_operations eops __attribute__ ((unused))={
21516 .commit_metadata = commit_metadata,
21532 cat - <<_ACEOF >conftest.h
21537 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
21538 echo "obj-m := conftest.o" >build
/Makefile
21540 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
21541 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
21542 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21543 (eval $ac_try) 2>&5
21545 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21546 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
21547 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21548 (eval $ac_try) 2>&5
21550 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21551 test $ac_status = 0; }; }; then :
21553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21554 $as_echo "yes" >&6; }
21556 $as_echo "#define HAVE_COMMIT_METADATA 1" >>confdefs.h
21560 $as_echo "$as_me: failed program was:" >&5
21561 sed 's/^/| /' conftest.
$ac_ext >&5
21563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21564 $as_echo "no" >&6; }
21573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether clear_inode() is available" >&5
21574 $as_echo_n "checking whether clear_inode() is available... " >&6; }
21578 cat confdefs.h
- <<_ACEOF >conftest.c
21581 #include <linux/fs.h>
21597 cat - <<_ACEOF >conftest.h
21602 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
21603 echo "obj-m := conftest.o" >build
/Makefile
21605 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
21606 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
21607 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21608 (eval $ac_try) 2>&5
21610 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21611 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
21612 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21613 (eval $ac_try) 2>&5
21615 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21616 test $ac_status = 0; }; }; then :
21619 $as_echo "$as_me: failed program was:" >&5
21620 sed 's/^/| /' conftest.
$ac_ext >&5
21628 if test $rc -ne 0; then :
21630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21631 $as_echo "no" >&6; }
21634 if test "x$enable_linux_builtin" != xyes
; then
21636 grep -q -E '[[:space:]]clear_inode[[:space:]]' \
21637 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
21639 if test $rc -ne 0; then
21641 for file in fs
/inode.c
; do
21642 grep -q -E "EXPORT_SYMBOL.*(clear_inode)" \
21643 "$LINUX/$file" 2>/dev
/null
21645 if test $rc -eq 0; then
21650 if test $export -eq 0; then :
21660 if test $rc -ne 0; then :
21662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21663 $as_echo "no" >&6; }
21667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21668 $as_echo "yes" >&6; }
21670 $as_echo "#define HAVE_CLEAR_INODE 1" >>confdefs.h
21677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setattr_prepare() is available" >&5
21678 $as_echo_n "checking whether setattr_prepare() is available... " >&6; }
21682 cat confdefs.h
- <<_ACEOF >conftest.c
21685 #include <linux/fs.h>
21691 struct dentry *dentry = NULL;
21692 struct iattr *attr = NULL;
21695 error = setattr_prepare(dentry, attr);
21705 cat - <<_ACEOF >conftest.h
21710 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
21711 echo "obj-m := conftest.o" >build
/Makefile
21713 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
21714 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
21715 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21716 (eval $ac_try) 2>&5
21718 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21719 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
21720 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21721 (eval $ac_try) 2>&5
21723 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21724 test $ac_status = 0; }; }; then :
21727 $as_echo "$as_me: failed program was:" >&5
21728 sed 's/^/| /' conftest.
$ac_ext >&5
21736 if test $rc -ne 0; then :
21738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21739 $as_echo "no" >&6; }
21742 if test "x$enable_linux_builtin" != xyes
; then
21744 grep -q -E '[[:space:]]setattr_prepare[[:space:]]' \
21745 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
21747 if test $rc -ne 0; then
21749 for file in fs
/attr.c
; do
21750 grep -q -E "EXPORT_SYMBOL.*(setattr_prepare)" \
21751 "$LINUX/$file" 2>/dev
/null
21753 if test $rc -eq 0; then
21758 if test $export -eq 0; then :
21768 if test $rc -ne 0; then :
21770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21771 $as_echo "no" >&6; }
21775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21776 $as_echo "yes" >&6; }
21778 $as_echo "#define HAVE_SETATTR_PREPARE 1" >>confdefs.h
21785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether insert_inode_locked() is available" >&5
21786 $as_echo_n "checking whether insert_inode_locked() is available... " >&6; }
21790 cat confdefs.h
- <<_ACEOF >conftest.c
21793 #include <linux/fs.h>
21799 insert_inode_locked(NULL);
21809 cat - <<_ACEOF >conftest.h
21814 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
21815 echo "obj-m := conftest.o" >build
/Makefile
21817 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
21818 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
21819 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21820 (eval $ac_try) 2>&5
21822 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21823 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
21824 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21825 (eval $ac_try) 2>&5
21827 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21828 test $ac_status = 0; }; }; then :
21831 $as_echo "$as_me: failed program was:" >&5
21832 sed 's/^/| /' conftest.
$ac_ext >&5
21840 if test $rc -ne 0; then :
21842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21843 $as_echo "no" >&6; }
21846 if test "x$enable_linux_builtin" != xyes
; then
21848 grep -q -E '[[:space:]]insert_inode_locked[[:space:]]' \
21849 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
21851 if test $rc -ne 0; then
21853 for file in fs
/inode.c
; do
21854 grep -q -E "EXPORT_SYMBOL.*(insert_inode_locked)" \
21855 "$LINUX/$file" 2>/dev
/null
21857 if test $rc -eq 0; then
21862 if test $export -eq 0; then :
21872 if test $rc -ne 0; then :
21874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21875 $as_echo "no" >&6; }
21879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21880 $as_echo "yes" >&6; }
21882 $as_echo "#define HAVE_INSERT_INODE_LOCKED 1" >>confdefs.h
21889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether d_make_root() is available" >&5
21890 $as_echo_n "checking whether d_make_root() is available... " >&6; }
21894 cat confdefs.h
- <<_ACEOF >conftest.c
21897 #include <linux/dcache.h>
21913 cat - <<_ACEOF >conftest.h
21918 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
21919 echo "obj-m := conftest.o" >build
/Makefile
21921 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
21922 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
21923 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21924 (eval $ac_try) 2>&5
21926 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21927 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
21928 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21929 (eval $ac_try) 2>&5
21931 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21932 test $ac_status = 0; }; }; then :
21935 $as_echo "$as_me: failed program was:" >&5
21936 sed 's/^/| /' conftest.
$ac_ext >&5
21944 if test $rc -ne 0; then :
21946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21947 $as_echo "no" >&6; }
21950 if test "x$enable_linux_builtin" != xyes
; then
21952 grep -q -E '[[:space:]]d_make_root[[:space:]]' \
21953 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
21955 if test $rc -ne 0; then
21957 for file in fs
/dcache.c
; do
21958 grep -q -E "EXPORT_SYMBOL.*(d_make_root)" \
21959 "$LINUX/$file" 2>/dev
/null
21961 if test $rc -eq 0; then
21966 if test $export -eq 0; then :
21976 if test $rc -ne 0; then :
21978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21979 $as_echo "no" >&6; }
21983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21984 $as_echo "yes" >&6; }
21986 $as_echo "#define HAVE_D_MAKE_ROOT 1" >>confdefs.h
21993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether d_obtain_alias() is available" >&5
21994 $as_echo_n "checking whether d_obtain_alias() is available... " >&6; }
21998 cat confdefs.h
- <<_ACEOF >conftest.c
22001 #include <linux/dcache.h>
22007 d_obtain_alias(NULL);
22017 cat - <<_ACEOF >conftest.h
22022 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
22023 echo "obj-m := conftest.o" >build
/Makefile
22025 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
22026 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
22027 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22028 (eval $ac_try) 2>&5
22030 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22031 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
22032 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22033 (eval $ac_try) 2>&5
22035 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22036 test $ac_status = 0; }; }; then :
22039 $as_echo "$as_me: failed program was:" >&5
22040 sed 's/^/| /' conftest.
$ac_ext >&5
22048 if test $rc -ne 0; then :
22050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22051 $as_echo "no" >&6; }
22054 if test "x$enable_linux_builtin" != xyes
; then
22056 grep -q -E '[[:space:]]d_obtain_alias[[:space:]]' \
22057 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
22059 if test $rc -ne 0; then
22061 for file in fs
/dcache.c
; do
22062 grep -q -E "EXPORT_SYMBOL.*(d_obtain_alias)" \
22063 "$LINUX/$file" 2>/dev
/null
22065 if test $rc -eq 0; then
22070 if test $export -eq 0; then :
22080 if test $rc -ne 0; then :
22082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22083 $as_echo "no" >&6; }
22087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22088 $as_echo "yes" >&6; }
22090 $as_echo "#define HAVE_D_OBTAIN_ALIAS 1" >>confdefs.h
22097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether d_prune_aliases() is available" >&5
22098 $as_echo_n "checking whether d_prune_aliases() is available... " >&6; }
22102 cat confdefs.h
- <<_ACEOF >conftest.c
22105 #include <linux/dcache.h>
22111 struct inode *ip = NULL;
22112 d_prune_aliases(ip);
22122 cat - <<_ACEOF >conftest.h
22127 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
22128 echo "obj-m := conftest.o" >build
/Makefile
22130 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
22131 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
22132 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22133 (eval $ac_try) 2>&5
22135 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22136 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
22137 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22138 (eval $ac_try) 2>&5
22140 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22141 test $ac_status = 0; }; }; then :
22144 $as_echo "$as_me: failed program was:" >&5
22145 sed 's/^/| /' conftest.
$ac_ext >&5
22153 if test $rc -ne 0; then :
22155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22156 $as_echo "no" >&6; }
22159 if test "x$enable_linux_builtin" != xyes
; then
22161 grep -q -E '[[:space:]]d_prune_aliases[[:space:]]' \
22162 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
22164 if test $rc -ne 0; then
22166 for file in fs
/dcache.c
; do
22167 grep -q -E "EXPORT_SYMBOL.*(d_prune_aliases)" \
22168 "$LINUX/$file" 2>/dev
/null
22170 if test $rc -eq 0; then
22175 if test $export -eq 0; then :
22185 if test $rc -ne 0; then :
22187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22188 $as_echo "no" >&6; }
22192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22193 $as_echo "yes" >&6; }
22195 $as_echo "#define HAVE_D_PRUNE_ALIASES 1" >>confdefs.h
22202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether d_set_d_op() is available" >&5
22203 $as_echo_n "checking whether d_set_d_op() is available... " >&6; }
22207 cat confdefs.h
- <<_ACEOF >conftest.c
22210 #include <linux/dcache.h>
22216 d_set_d_op(NULL, NULL);
22226 cat - <<_ACEOF >conftest.h
22231 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
22232 echo "obj-m := conftest.o" >build
/Makefile
22234 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
22235 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
22236 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22237 (eval $ac_try) 2>&5
22239 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22240 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
22241 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22242 (eval $ac_try) 2>&5
22244 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22245 test $ac_status = 0; }; }; then :
22248 $as_echo "$as_me: failed program was:" >&5
22249 sed 's/^/| /' conftest.
$ac_ext >&5
22257 if test $rc -ne 0; then :
22259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22260 $as_echo "no" >&6; }
22263 if test "x$enable_linux_builtin" != xyes
; then
22265 grep -q -E '[[:space:]]d_set_d_op[[:space:]]' \
22266 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
22268 if test $rc -ne 0; then
22270 for file in fs
/dcache.c
; do
22271 grep -q -E "EXPORT_SYMBOL.*(d_set_d_op)" \
22272 "$LINUX/$file" 2>/dev
/null
22274 if test $rc -eq 0; then
22279 if test $export -eq 0; then :
22289 if test $rc -ne 0; then :
22291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22292 $as_echo "no" >&6; }
22296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22297 $as_echo "yes" >&6; }
22299 $as_echo "#define HAVE_D_SET_D_OP 1" >>confdefs.h
22307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether dops->d_revalidate() takes struct nameidata" >&5
22308 $as_echo_n "checking whether dops->d_revalidate() takes struct nameidata... " >&6; }
22311 cat confdefs.h
- <<_ACEOF >conftest.c
22314 #include <linux/dcache.h>
22316 int revalidate (struct dentry *dentry,
22317 struct nameidata *nidata) { return 0; }
22319 static const struct dentry_operations
22320 dops __attribute__ ((unused)) = {
22321 .d_revalidate = revalidate,
22337 cat - <<_ACEOF >conftest.h
22342 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
22343 echo "obj-m := conftest.o" >build
/Makefile
22345 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
22346 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
22347 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22348 (eval $ac_try) 2>&5
22350 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22351 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
22352 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22353 (eval $ac_try) 2>&5
22355 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22356 test $ac_status = 0; }; }; then :
22358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22359 $as_echo "yes" >&6; }
22361 $as_echo "#define HAVE_D_REVALIDATE_NAMEIDATA 1" >>confdefs.h
22365 $as_echo "$as_me: failed program was:" >&5
22366 sed 's/^/| /' conftest.
$ac_ext >&5
22368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22369 $as_echo "no" >&6; }
22379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether dentry uses const struct dentry_operations" >&5
22380 $as_echo_n "checking whether dentry uses const struct dentry_operations... " >&6; }
22383 cat confdefs.h
- <<_ACEOF >conftest.c
22386 #include <linux/dcache.h>
22388 const struct dentry_operations test_d_op = {
22389 .d_revalidate = NULL,
22396 struct dentry d __attribute__ ((unused));
22398 d.d_op = &test_d_op;
22408 cat - <<_ACEOF >conftest.h
22413 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
22414 echo "obj-m := conftest.o" >build
/Makefile
22416 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
22417 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
22418 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22419 (eval $ac_try) 2>&5
22421 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22422 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
22423 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22424 (eval $ac_try) 2>&5
22426 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22427 test $ac_status = 0; }; }; then :
22429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22430 $as_echo "yes" >&6; }
22432 $as_echo "#define HAVE_CONST_DENTRY_OPERATIONS 1" >>confdefs.h
22436 $as_echo "$as_me: failed program was:" >&5
22437 sed 's/^/| /' conftest.
$ac_ext >&5
22439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22440 $as_echo "no" >&6; }
22449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether check_disk_size_change() is available" >&5
22450 $as_echo_n "checking whether check_disk_size_change() is available... " >&6; }
22454 cat confdefs.h
- <<_ACEOF >conftest.c
22457 #include <linux/fs.h>
22463 check_disk_size_change(NULL, NULL);
22473 cat - <<_ACEOF >conftest.h
22478 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
22479 echo "obj-m := conftest.o" >build
/Makefile
22481 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
22482 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
22483 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22484 (eval $ac_try) 2>&5
22486 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22487 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
22488 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22489 (eval $ac_try) 2>&5
22491 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22492 test $ac_status = 0; }; }; then :
22495 $as_echo "$as_me: failed program was:" >&5
22496 sed 's/^/| /' conftest.
$ac_ext >&5
22504 if test $rc -ne 0; then :
22506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22507 $as_echo "no" >&6; }
22510 if test "x$enable_linux_builtin" != xyes
; then
22512 grep -q -E '[[:space:]]check_disk_size_change[[:space:]]' \
22513 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
22515 if test $rc -ne 0; then
22517 for file in fs
/block_dev.c
; do
22518 grep -q -E "EXPORT_SYMBOL.*(check_disk_size_change)" \
22519 "$LINUX/$file" 2>/dev
/null
22521 if test $rc -eq 0; then
22526 if test $export -eq 0; then :
22536 if test $rc -ne 0; then :
22538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22539 $as_echo "no" >&6; }
22543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22544 $as_echo "yes" >&6; }
22546 $as_echo "#define HAVE_CHECK_DISK_SIZE_CHANGE 1" >>confdefs.h
22553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether truncate_setsize() is available" >&5
22554 $as_echo_n "checking whether truncate_setsize() is available... " >&6; }
22558 cat confdefs.h
- <<_ACEOF >conftest.c
22561 #include <linux/mm.h>
22567 truncate_setsize(NULL, 0);
22577 cat - <<_ACEOF >conftest.h
22582 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
22583 echo "obj-m := conftest.o" >build
/Makefile
22585 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
22586 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
22587 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22588 (eval $ac_try) 2>&5
22590 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22591 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
22592 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22593 (eval $ac_try) 2>&5
22595 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22596 test $ac_status = 0; }; }; then :
22599 $as_echo "$as_me: failed program was:" >&5
22600 sed 's/^/| /' conftest.
$ac_ext >&5
22608 if test $rc -ne 0; then :
22610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22611 $as_echo "no" >&6; }
22614 if test "x$enable_linux_builtin" != xyes
; then
22616 grep -q -E '[[:space:]]truncate_setsize[[:space:]]' \
22617 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
22619 if test $rc -ne 0; then
22621 for file in mm
/truncate.c
; do
22622 grep -q -E "EXPORT_SYMBOL.*(truncate_setsize)" \
22623 "$LINUX/$file" 2>/dev
/null
22625 if test $rc -eq 0; then
22630 if test $export -eq 0; then :
22640 if test $rc -ne 0; then :
22642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22643 $as_echo "no" >&6; }
22647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22648 $as_echo "yes" >&6; }
22650 $as_echo "#define HAVE_TRUNCATE_SETSIZE 1" >>confdefs.h
22658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether security_inode_init_security wants 6 args" >&5
22659 $as_echo_n "checking whether security_inode_init_security wants 6 args... " >&6; }
22662 cat confdefs.h
- <<_ACEOF >conftest.c
22665 #include <linux/security.h>
22671 struct inode *ip __attribute__ ((unused)) = NULL;
22672 struct inode *dip __attribute__ ((unused)) = NULL;
22673 const struct qstr *str __attribute__ ((unused)) = NULL;
22674 char *name __attribute__ ((unused)) = NULL;
22675 void *value __attribute__ ((unused)) = NULL;
22676 size_t len __attribute__ ((unused)) = 0;
22678 security_inode_init_security(ip, dip, str, &name, &value, &len);
22688 cat - <<_ACEOF >conftest.h
22693 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
22694 echo "obj-m := conftest.o" >build
/Makefile
22696 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
22697 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
22698 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22699 (eval $ac_try) 2>&5
22701 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22702 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
22703 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22704 (eval $ac_try) 2>&5
22706 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22707 test $ac_status = 0; }; }; then :
22709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22710 $as_echo "yes" >&6; }
22712 $as_echo "#define HAVE_6ARGS_SECURITY_INODE_INIT_SECURITY 1" >>confdefs.h
22716 $as_echo "$as_me: failed program was:" >&5
22717 sed 's/^/| /' conftest.
$ac_ext >&5
22719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22720 $as_echo "no" >&6; }
22730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether security_inode_init_security wants callback" >&5
22731 $as_echo_n "checking whether security_inode_init_security wants callback... " >&6; }
22734 cat confdefs.h
- <<_ACEOF >conftest.c
22737 #include <linux/security.h>
22743 struct inode *ip __attribute__ ((unused)) = NULL;
22744 struct inode *dip __attribute__ ((unused)) = NULL;
22745 const struct qstr *str __attribute__ ((unused)) = NULL;
22746 initxattrs func __attribute__ ((unused)) = NULL;
22748 security_inode_init_security(ip, dip, str, func, NULL);
22758 cat - <<_ACEOF >conftest.h
22763 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
22764 echo "obj-m := conftest.o" >build
/Makefile
22766 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
22767 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
22768 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22769 (eval $ac_try) 2>&5
22771 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22772 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
22773 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22774 (eval $ac_try) 2>&5
22776 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22777 test $ac_status = 0; }; }; then :
22779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22780 $as_echo "yes" >&6; }
22782 $as_echo "#define HAVE_CALLBACK_SECURITY_INODE_INIT_SECURITY 1" >>confdefs.h
22786 $as_echo "$as_me: failed program was:" >&5
22787 sed 's/^/| /' conftest.
$ac_ext >&5
22789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22790 $as_echo "no" >&6; }
22799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mount_nodev() is available" >&5
22800 $as_echo_n "checking whether mount_nodev() is available... " >&6; }
22804 cat confdefs.h
- <<_ACEOF >conftest.c
22807 #include <linux/fs.h>
22813 mount_nodev(NULL, 0, NULL, NULL);
22823 cat - <<_ACEOF >conftest.h
22828 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
22829 echo "obj-m := conftest.o" >build
/Makefile
22831 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
22832 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
22833 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22834 (eval $ac_try) 2>&5
22836 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22837 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
22838 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22839 (eval $ac_try) 2>&5
22841 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22842 test $ac_status = 0; }; }; then :
22845 $as_echo "$as_me: failed program was:" >&5
22846 sed 's/^/| /' conftest.
$ac_ext >&5
22854 if test $rc -ne 0; then :
22856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22857 $as_echo "no" >&6; }
22860 if test "x$enable_linux_builtin" != xyes
; then
22862 grep -q -E '[[:space:]]mount_nodev[[:space:]]' \
22863 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
22865 if test $rc -ne 0; then
22867 for file in fs
/super.c
; do
22868 grep -q -E "EXPORT_SYMBOL.*(mount_nodev)" \
22869 "$LINUX/$file" 2>/dev
/null
22871 if test $rc -eq 0; then
22876 if test $export -eq 0; then :
22886 if test $rc -ne 0; then :
22888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22889 $as_echo "no" >&6; }
22893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22894 $as_echo "yes" >&6; }
22896 $as_echo "#define HAVE_MOUNT_NODEV 1" >>confdefs.h
22904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether super_block has s_shrink" >&5
22905 $as_echo_n "checking whether super_block has s_shrink... " >&6; }
22908 cat confdefs.h
- <<_ACEOF >conftest.c
22911 #include <linux/fs.h>
22913 int shrink(struct shrinker *s, struct shrink_control *sc)
22916 static const struct super_block
22917 sb __attribute__ ((unused)) = {
22918 .s_shrink.shrink = shrink,
22919 .s_shrink.seeks = DEFAULT_SEEKS,
22920 .s_shrink.batch = 0,
22936 cat - <<_ACEOF >conftest.h
22941 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
22942 echo "obj-m := conftest.o" >build
/Makefile
22944 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
22945 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
22946 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22947 (eval $ac_try) 2>&5
22949 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22950 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
22951 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22952 (eval $ac_try) 2>&5
22954 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22955 test $ac_status = 0; }; }; then :
22957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22958 $as_echo "yes" >&6; }
22960 $as_echo "#define HAVE_SHRINK 1" >>confdefs.h
22965 $as_echo "$as_me: failed program was:" >&5
22966 sed 's/^/| /' conftest.
$ac_ext >&5
22968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22969 $as_echo "no" >&6; }
22979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether shrink_control has nid" >&5
22980 $as_echo_n "checking whether shrink_control has nid... " >&6; }
22983 cat confdefs.h
- <<_ACEOF >conftest.c
22986 #include <linux/fs.h>
22992 struct shrink_control sc __attribute__ ((unused));
22993 unsigned long scnidsize __attribute__ ((unused)) =
23004 cat - <<_ACEOF >conftest.h
23009 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
23010 echo "obj-m := conftest.o" >build
/Makefile
23012 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
23013 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
23014 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23015 (eval $ac_try) 2>&5
23017 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23018 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
23019 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23020 (eval $ac_try) 2>&5
23022 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23023 test $ac_status = 0; }; }; then :
23025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23026 $as_echo "yes" >&6; }
23028 $as_echo "#define SHRINK_CONTROL_HAS_NID 1" >>confdefs.h
23032 $as_echo "$as_me: failed program was:" >&5
23033 sed 's/^/| /' conftest.
$ac_ext >&5
23035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23036 $as_echo "no" >&6; }
23046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether super_block has s_instances list_head" >&5
23047 $as_echo_n "checking whether super_block has s_instances list_head... " >&6; }
23050 cat confdefs.h
- <<_ACEOF >conftest.c
23053 #include <linux/fs.h>
23059 struct super_block sb __attribute__ ((unused));
23061 INIT_LIST_HEAD(&sb.s_instances);
23071 cat - <<_ACEOF >conftest.h
23076 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
23077 echo "obj-m := conftest.o" >build
/Makefile
23079 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
23080 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
23081 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23082 (eval $ac_try) 2>&5
23084 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23085 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
23086 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23087 (eval $ac_try) 2>&5
23089 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23090 test $ac_status = 0; }; }; then :
23092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23093 $as_echo "yes" >&6; }
23095 $as_echo "#define HAVE_S_INSTANCES_LIST_HEAD 1" >>confdefs.h
23099 $as_echo "$as_me: failed program was:" >&5
23100 sed 's/^/| /' conftest.
$ac_ext >&5
23102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23103 $as_echo "no" >&6; }
23112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether super_block has s_d_op" >&5
23113 $as_echo_n "checking whether super_block has s_d_op... " >&6; }
23116 cat confdefs.h
- <<_ACEOF >conftest.c
23119 #include <linux/fs.h>
23125 struct super_block sb __attribute__ ((unused));
23136 cat - <<_ACEOF >conftest.h
23141 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
23142 echo "obj-m := conftest.o" >build
/Makefile
23144 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
23145 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
23146 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23147 (eval $ac_try) 2>&5
23149 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23150 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
23151 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23152 (eval $ac_try) 2>&5
23154 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23155 test $ac_status = 0; }; }; then :
23157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23158 $as_echo "yes" >&6; }
23160 $as_echo "#define HAVE_S_D_OP 1" >>confdefs.h
23164 $as_echo "$as_me: failed program was:" >&5
23165 sed 's/^/| /' conftest.
$ac_ext >&5
23167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23168 $as_echo "no" >&6; }
23178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether super_setup_bdi_name() exists" >&5
23179 $as_echo_n "checking whether super_setup_bdi_name() exists... " >&6; }
23183 cat confdefs.h
- <<_ACEOF >conftest.c
23186 #include <linux/fs.h>
23187 struct super_block sb;
23193 char *name = "bdi";
23194 int error __attribute__((unused)) =
23195 super_setup_bdi_name(&sb, name);
23205 cat - <<_ACEOF >conftest.h
23210 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
23211 echo "obj-m := conftest.o" >build
/Makefile
23213 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
23214 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
23215 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23216 (eval $ac_try) 2>&5
23218 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23219 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
23220 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23221 (eval $ac_try) 2>&5
23223 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23224 test $ac_status = 0; }; }; then :
23227 $as_echo "$as_me: failed program was:" >&5
23228 sed 's/^/| /' conftest.
$ac_ext >&5
23236 if test $rc -ne 0; then :
23238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23239 $as_echo "no" >&6; }
23240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether bdi_setup_and_register() wants 2 args" >&5
23241 $as_echo_n "checking whether bdi_setup_and_register() wants 2 args... " >&6; }
23245 cat confdefs.h
- <<_ACEOF >conftest.c
23248 #include <linux/backing-dev.h>
23249 struct backing_dev_info bdi;
23255 char *name = "bdi";
23256 int error __attribute__((unused)) =
23257 bdi_setup_and_register(&bdi, name);
23267 cat - <<_ACEOF >conftest.h
23272 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
23273 echo "obj-m := conftest.o" >build
/Makefile
23275 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
23276 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
23277 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23278 (eval $ac_try) 2>&5
23280 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23281 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
23282 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23283 (eval $ac_try) 2>&5
23285 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23286 test $ac_status = 0; }; }; then :
23289 $as_echo "$as_me: failed program was:" >&5
23290 sed 's/^/| /' conftest.
$ac_ext >&5
23298 if test $rc -ne 0; then :
23300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23301 $as_echo "no" >&6; }
23302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether bdi_setup_and_register() wants 3 args" >&5
23303 $as_echo_n "checking whether bdi_setup_and_register() wants 3 args... " >&6; }
23307 cat confdefs.h
- <<_ACEOF >conftest.c
23310 #include <linux/backing-dev.h>
23311 struct backing_dev_info bdi;
23317 char *name = "bdi";
23318 unsigned int cap = BDI_CAP_MAP_COPY;
23319 int error __attribute__((unused)) =
23320 bdi_setup_and_register(&bdi, name, cap);
23330 cat - <<_ACEOF >conftest.h
23335 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
23336 echo "obj-m := conftest.o" >build
/Makefile
23338 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
23339 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
23340 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23341 (eval $ac_try) 2>&5
23343 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23344 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
23345 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23346 (eval $ac_try) 2>&5
23348 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23349 test $ac_status = 0; }; }; then :
23352 $as_echo "$as_me: failed program was:" >&5
23353 sed 's/^/| /' conftest.
$ac_ext >&5
23361 if test $rc -ne 0; then :
23363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23364 $as_echo "no" >&6; }
23367 if test "x$enable_linux_builtin" != xyes
; then
23369 grep -q -E '[[:space:]]bdi_setup_and_register[[:space:]]' \
23370 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
23372 if test $rc -ne 0; then
23374 for file in mm
/backing-dev.c
; do
23375 grep -q -E "EXPORT_SYMBOL.*(bdi_setup_and_register)" \
23376 "$LINUX/$file" 2>/dev
/null
23378 if test $rc -eq 0; then
23383 if test $export -eq 0; then :
23393 if test $rc -ne 0; then :
23395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23396 $as_echo "no" >&6; }
23400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23401 $as_echo "yes" >&6; }
23403 $as_echo "#define HAVE_3ARGS_BDI_SETUP_AND_REGISTER 1" >>confdefs.h
23411 if test "x$enable_linux_builtin" != xyes
; then
23413 grep -q -E '[[:space:]]bdi_setup_and_register[[:space:]]' \
23414 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
23416 if test $rc -ne 0; then
23418 for file in mm
/backing-dev.c
; do
23419 grep -q -E "EXPORT_SYMBOL.*(bdi_setup_and_register)" \
23420 "$LINUX/$file" 2>/dev
/null
23422 if test $rc -eq 0; then
23427 if test $export -eq 0; then :
23437 if test $rc -ne 0; then :
23439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23440 $as_echo "no" >&6; }
23441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether bdi_setup_and_register() wants 3 args" >&5
23442 $as_echo_n "checking whether bdi_setup_and_register() wants 3 args... " >&6; }
23446 cat confdefs.h
- <<_ACEOF >conftest.c
23449 #include <linux/backing-dev.h>
23450 struct backing_dev_info bdi;
23456 char *name = "bdi";
23457 unsigned int cap = BDI_CAP_MAP_COPY;
23458 int error __attribute__((unused)) =
23459 bdi_setup_and_register(&bdi, name, cap);
23469 cat - <<_ACEOF >conftest.h
23474 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
23475 echo "obj-m := conftest.o" >build
/Makefile
23477 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
23478 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
23479 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23480 (eval $ac_try) 2>&5
23482 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23483 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
23484 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23485 (eval $ac_try) 2>&5
23487 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23488 test $ac_status = 0; }; }; then :
23491 $as_echo "$as_me: failed program was:" >&5
23492 sed 's/^/| /' conftest.
$ac_ext >&5
23500 if test $rc -ne 0; then :
23502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23503 $as_echo "no" >&6; }
23506 if test "x$enable_linux_builtin" != xyes
; then
23508 grep -q -E '[[:space:]]bdi_setup_and_register[[:space:]]' \
23509 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
23511 if test $rc -ne 0; then
23513 for file in mm
/backing-dev.c
; do
23514 grep -q -E "EXPORT_SYMBOL.*(bdi_setup_and_register)" \
23515 "$LINUX/$file" 2>/dev
/null
23517 if test $rc -eq 0; then
23522 if test $export -eq 0; then :
23532 if test $rc -ne 0; then :
23534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23535 $as_echo "no" >&6; }
23539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23540 $as_echo "yes" >&6; }
23542 $as_echo "#define HAVE_3ARGS_BDI_SETUP_AND_REGISTER 1" >>confdefs.h
23551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23552 $as_echo "yes" >&6; }
23554 $as_echo "#define HAVE_2ARGS_BDI_SETUP_AND_REGISTER 1" >>confdefs.h
23562 if test "x$enable_linux_builtin" != xyes
; then
23564 grep -q -E '[[:space:]]super_setup_bdi_name[[:space:]]' \
23565 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
23567 if test $rc -ne 0; then
23569 for file in fs
/super.c
; do
23570 grep -q -E "EXPORT_SYMBOL.*(super_setup_bdi_name)" \
23571 "$LINUX/$file" 2>/dev
/null
23573 if test $rc -eq 0; then
23578 if test $export -eq 0; then :
23588 if test $rc -ne 0; then :
23590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23591 $as_echo "no" >&6; }
23592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether bdi_setup_and_register() wants 2 args" >&5
23593 $as_echo_n "checking whether bdi_setup_and_register() wants 2 args... " >&6; }
23597 cat confdefs.h
- <<_ACEOF >conftest.c
23600 #include <linux/backing-dev.h>
23601 struct backing_dev_info bdi;
23607 char *name = "bdi";
23608 int error __attribute__((unused)) =
23609 bdi_setup_and_register(&bdi, name);
23619 cat - <<_ACEOF >conftest.h
23624 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
23625 echo "obj-m := conftest.o" >build
/Makefile
23627 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
23628 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
23629 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23630 (eval $ac_try) 2>&5
23632 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23633 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
23634 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23635 (eval $ac_try) 2>&5
23637 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23638 test $ac_status = 0; }; }; then :
23641 $as_echo "$as_me: failed program was:" >&5
23642 sed 's/^/| /' conftest.
$ac_ext >&5
23650 if test $rc -ne 0; then :
23652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23653 $as_echo "no" >&6; }
23654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether bdi_setup_and_register() wants 3 args" >&5
23655 $as_echo_n "checking whether bdi_setup_and_register() wants 3 args... " >&6; }
23659 cat confdefs.h
- <<_ACEOF >conftest.c
23662 #include <linux/backing-dev.h>
23663 struct backing_dev_info bdi;
23669 char *name = "bdi";
23670 unsigned int cap = BDI_CAP_MAP_COPY;
23671 int error __attribute__((unused)) =
23672 bdi_setup_and_register(&bdi, name, cap);
23682 cat - <<_ACEOF >conftest.h
23687 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
23688 echo "obj-m := conftest.o" >build
/Makefile
23690 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
23691 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
23692 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23693 (eval $ac_try) 2>&5
23695 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23696 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
23697 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23698 (eval $ac_try) 2>&5
23700 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23701 test $ac_status = 0; }; }; then :
23704 $as_echo "$as_me: failed program was:" >&5
23705 sed 's/^/| /' conftest.
$ac_ext >&5
23713 if test $rc -ne 0; then :
23715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23716 $as_echo "no" >&6; }
23719 if test "x$enable_linux_builtin" != xyes
; then
23721 grep -q -E '[[:space:]]bdi_setup_and_register[[:space:]]' \
23722 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
23724 if test $rc -ne 0; then
23726 for file in mm
/backing-dev.c
; do
23727 grep -q -E "EXPORT_SYMBOL.*(bdi_setup_and_register)" \
23728 "$LINUX/$file" 2>/dev
/null
23730 if test $rc -eq 0; then
23735 if test $export -eq 0; then :
23745 if test $rc -ne 0; then :
23747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23748 $as_echo "no" >&6; }
23752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23753 $as_echo "yes" >&6; }
23755 $as_echo "#define HAVE_3ARGS_BDI_SETUP_AND_REGISTER 1" >>confdefs.h
23763 if test "x$enable_linux_builtin" != xyes
; then
23765 grep -q -E '[[:space:]]bdi_setup_and_register[[:space:]]' \
23766 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
23768 if test $rc -ne 0; then
23770 for file in mm
/backing-dev.c
; do
23771 grep -q -E "EXPORT_SYMBOL.*(bdi_setup_and_register)" \
23772 "$LINUX/$file" 2>/dev
/null
23774 if test $rc -eq 0; then
23779 if test $export -eq 0; then :
23789 if test $rc -ne 0; then :
23791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23792 $as_echo "no" >&6; }
23793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether bdi_setup_and_register() wants 3 args" >&5
23794 $as_echo_n "checking whether bdi_setup_and_register() wants 3 args... " >&6; }
23798 cat confdefs.h
- <<_ACEOF >conftest.c
23801 #include <linux/backing-dev.h>
23802 struct backing_dev_info bdi;
23808 char *name = "bdi";
23809 unsigned int cap = BDI_CAP_MAP_COPY;
23810 int error __attribute__((unused)) =
23811 bdi_setup_and_register(&bdi, name, cap);
23821 cat - <<_ACEOF >conftest.h
23826 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
23827 echo "obj-m := conftest.o" >build
/Makefile
23829 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
23830 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
23831 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23832 (eval $ac_try) 2>&5
23834 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23835 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
23836 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23837 (eval $ac_try) 2>&5
23839 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23840 test $ac_status = 0; }; }; then :
23843 $as_echo "$as_me: failed program was:" >&5
23844 sed 's/^/| /' conftest.
$ac_ext >&5
23852 if test $rc -ne 0; then :
23854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23855 $as_echo "no" >&6; }
23858 if test "x$enable_linux_builtin" != xyes
; then
23860 grep -q -E '[[:space:]]bdi_setup_and_register[[:space:]]' \
23861 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
23863 if test $rc -ne 0; then
23865 for file in mm
/backing-dev.c
; do
23866 grep -q -E "EXPORT_SYMBOL.*(bdi_setup_and_register)" \
23867 "$LINUX/$file" 2>/dev
/null
23869 if test $rc -eq 0; then
23874 if test $export -eq 0; then :
23884 if test $rc -ne 0; then :
23886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23887 $as_echo "no" >&6; }
23891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23892 $as_echo "yes" >&6; }
23894 $as_echo "#define HAVE_3ARGS_BDI_SETUP_AND_REGISTER 1" >>confdefs.h
23903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23904 $as_echo "yes" >&6; }
23906 $as_echo "#define HAVE_2ARGS_BDI_SETUP_AND_REGISTER 1" >>confdefs.h
23915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23916 $as_echo "yes" >&6; }
23918 $as_echo "#define HAVE_SUPER_SETUP_BDI_NAME 1" >>confdefs.h
23926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether set_nlink() is available" >&5
23927 $as_echo_n "checking whether set_nlink() is available... " >&6; }
23930 cat confdefs.h
- <<_ACEOF >conftest.c
23933 #include <linux/fs.h>
23940 unsigned int link = 0;
23941 (void) set_nlink(&node, link);
23951 cat - <<_ACEOF >conftest.h
23956 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
23957 echo "obj-m := conftest.o" >build
/Makefile
23959 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
23960 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
23961 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23962 (eval $ac_try) 2>&5
23964 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23965 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
23966 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23967 (eval $ac_try) 2>&5
23969 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23970 test $ac_status = 0; }; }; then :
23972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23973 $as_echo "yes" >&6; }
23975 $as_echo "#define HAVE_SET_NLINK 1" >>confdefs.h
23979 $as_echo "$as_me: failed program was:" >&5
23980 sed 's/^/| /' conftest.
$ac_ext >&5
23982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23983 $as_echo "no" >&6; }
23993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether elevator_change() is available" >&5
23994 $as_echo_n "checking whether elevator_change() is available... " >&6; }
23995 tmp_flags
="$EXTRA_KCFLAGS"
23996 EXTRA_KCFLAGS
="${NO_UNUSED_BUT_SET_VARIABLE}"
23999 cat confdefs.h
- <<_ACEOF >conftest.c
24002 #include <linux/blkdev.h>
24003 #include <linux/elevator.h>
24010 struct request_queue *q = NULL;
24011 char *elevator = NULL;
24012 ret = elevator_change(q, elevator);
24022 cat - <<_ACEOF >conftest.h
24027 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
24028 echo "obj-m := conftest.o" >build
/Makefile
24030 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
24031 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
24032 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24033 (eval $ac_try) 2>&5
24035 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24036 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
24037 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24038 (eval $ac_try) 2>&5
24040 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24041 test $ac_status = 0; }; }; then :
24043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24044 $as_echo "yes" >&6; }
24046 $as_echo "#define HAVE_ELEVATOR_CHANGE 1" >>confdefs.h
24050 $as_echo "$as_me: failed program was:" >&5
24051 sed 's/^/| /' conftest.
$ac_ext >&5
24053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24054 $as_echo "no" >&6; }
24062 EXTRA_KCFLAGS
="$tmp_flags"
24064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sget() wants 5 args" >&5
24065 $as_echo_n "checking whether sget() wants 5 args... " >&6; }
24068 cat confdefs.h
- <<_ACEOF >conftest.c
24071 #include <linux/fs.h>
24077 struct file_system_type *type = NULL;
24078 int (*test)(struct super_block *,void *) = NULL;
24079 int (*set)(struct super_block *,void *) = NULL;
24082 (void) sget(type, test, set, flags, data);
24092 cat - <<_ACEOF >conftest.h
24097 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
24098 echo "obj-m := conftest.o" >build
/Makefile
24100 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
24101 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
24102 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24103 (eval $ac_try) 2>&5
24105 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24106 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
24107 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24108 (eval $ac_try) 2>&5
24110 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24111 test $ac_status = 0; }; }; then :
24113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24114 $as_echo "yes" >&6; }
24116 $as_echo "#define HAVE_5ARG_SGET 1" >>confdefs.h
24120 $as_echo "$as_me: failed program was:" >&5
24121 sed 's/^/| /' conftest.
$ac_ext >&5
24123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24124 $as_echo "no" >&6; }
24133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lseek_execute() is available" >&5
24134 $as_echo_n "checking whether lseek_execute() is available... " >&6; }
24138 cat confdefs.h
- <<_ACEOF >conftest.c
24141 #include <linux/fs.h>
24147 struct file *fp __attribute__ ((unused)) = NULL;
24148 struct inode *ip __attribute__ ((unused)) = NULL;
24149 loff_t offset __attribute__ ((unused)) = 0;
24150 loff_t maxsize __attribute__ ((unused)) = 0;
24152 lseek_execute(fp, ip, offset, maxsize);
24162 cat - <<_ACEOF >conftest.h
24167 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
24168 echo "obj-m := conftest.o" >build
/Makefile
24170 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
24171 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
24172 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24173 (eval $ac_try) 2>&5
24175 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24176 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
24177 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24178 (eval $ac_try) 2>&5
24180 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24181 test $ac_status = 0; }; }; then :
24184 $as_echo "$as_me: failed program was:" >&5
24185 sed 's/^/| /' conftest.
$ac_ext >&5
24193 if test $rc -ne 0; then :
24195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24196 $as_echo "no" >&6; }
24199 if test "x$enable_linux_builtin" != xyes
; then
24201 grep -q -E '[[:space:]]lseek_exclusive[[:space:]]' \
24202 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
24204 if test $rc -ne 0; then
24206 for file in fs
/read_write.c
; do
24207 grep -q -E "EXPORT_SYMBOL.*(lseek_exclusive)" \
24208 "$LINUX/$file" 2>/dev
/null
24210 if test $rc -eq 0; then
24215 if test $export -eq 0; then :
24225 if test $rc -ne 0; then :
24227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24228 $as_echo "no" >&6; }
24232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24233 $as_echo "yes" >&6; }
24235 $as_echo "#define HAVE_LSEEK_EXECUTE 1" >>confdefs.h
24243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fops->iterate_shared() is available" >&5
24244 $as_echo_n "checking whether fops->iterate_shared() is available... " >&6; }
24247 cat confdefs.h
- <<_ACEOF >conftest.c
24250 #include <linux/fs.h>
24251 int iterate(struct file *filp, struct dir_context * context)
24254 static const struct file_operations fops
24255 __attribute__ ((unused)) = {
24256 .iterate_shared = iterate,
24272 cat - <<_ACEOF >conftest.h
24277 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
24278 echo "obj-m := conftest.o" >build
/Makefile
24280 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
24281 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
24282 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24283 (eval $ac_try) 2>&5
24285 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24286 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
24287 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24288 (eval $ac_try) 2>&5
24290 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24291 test $ac_status = 0; }; }; then :
24293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24294 $as_echo "yes" >&6; }
24296 $as_echo "#define HAVE_VFS_ITERATE_SHARED 1" >>confdefs.h
24300 $as_echo "$as_me: failed program was:" >&5
24301 sed 's/^/| /' conftest.
$ac_ext >&5
24303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24304 $as_echo "no" >&6; }
24306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fops->iterate() is available" >&5
24307 $as_echo_n "checking whether fops->iterate() is available... " >&6; }
24310 cat confdefs.h
- <<_ACEOF >conftest.c
24313 #include <linux/fs.h>
24314 int iterate(struct file *filp, struct dir_context * context)
24317 static const struct file_operations fops
24318 __attribute__ ((unused)) = {
24319 .iterate = iterate,
24335 cat - <<_ACEOF >conftest.h
24340 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
24341 echo "obj-m := conftest.o" >build
/Makefile
24343 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
24344 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
24345 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24346 (eval $ac_try) 2>&5
24348 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24349 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
24350 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24351 (eval $ac_try) 2>&5
24353 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24354 test $ac_status = 0; }; }; then :
24356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24357 $as_echo "yes" >&6; }
24359 $as_echo "#define HAVE_VFS_ITERATE 1" >>confdefs.h
24363 $as_echo "$as_me: failed program was:" >&5
24364 sed 's/^/| /' conftest.
$ac_ext >&5
24366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24367 $as_echo "no" >&6; }
24369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fops->readdir() is available" >&5
24370 $as_echo_n "checking whether fops->readdir() is available... " >&6; }
24373 cat confdefs.h
- <<_ACEOF >conftest.c
24376 #include <linux/fs.h>
24377 int readdir(struct file *filp, void *entry, filldir_t func)
24380 static const struct file_operations fops
24381 __attribute__ ((unused)) = {
24382 .readdir = readdir,
24398 cat - <<_ACEOF >conftest.h
24403 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
24404 echo "obj-m := conftest.o" >build
/Makefile
24406 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
24407 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
24408 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24409 (eval $ac_try) 2>&5
24411 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24412 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
24413 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24414 (eval $ac_try) 2>&5
24416 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24417 test $ac_status = 0; }; }; then :
24419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24420 $as_echo "yes" >&6; }
24422 $as_echo "#define HAVE_VFS_READDIR 1" >>confdefs.h
24426 $as_echo "$as_me: failed program was:" >&5
24427 sed 's/^/| /' conftest.
$ac_ext >&5
24429 as_fn_error $?
"no; file a bug report with ZFSOnLinux" "$LINENO" 5
24452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fops->read/write_iter() are available" >&5
24453 $as_echo_n "checking whether fops->read/write_iter() are available... " >&6; }
24456 cat confdefs.h
- <<_ACEOF >conftest.c
24459 #include <linux/fs.h>
24461 ssize_t test_read(struct kiocb *kiocb, struct iov_iter *to)
24463 ssize_t test_write(struct kiocb *kiocb, struct iov_iter *from)
24466 static const struct file_operations
24467 fops __attribute__ ((unused)) = {
24468 .read_iter = test_read,
24469 .write_iter = test_write,
24485 cat - <<_ACEOF >conftest.h
24490 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
24491 echo "obj-m := conftest.o" >build
/Makefile
24493 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
24494 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
24495 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24496 (eval $ac_try) 2>&5
24498 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24499 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
24500 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24501 (eval $ac_try) 2>&5
24503 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24504 test $ac_status = 0; }; }; then :
24506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24507 $as_echo "yes" >&6; }
24509 $as_echo "#define HAVE_VFS_RW_ITERATE 1" >>confdefs.h
24512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether new_sync_read() is available" >&5
24513 $as_echo_n "checking whether new_sync_read() is available... " >&6; }
24516 cat confdefs.h
- <<_ACEOF >conftest.c
24519 #include <linux/fs.h>
24525 new_sync_read(NULL, NULL, 0, NULL);
24535 cat - <<_ACEOF >conftest.h
24540 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
24541 echo "obj-m := conftest.o" >build
/Makefile
24543 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
24544 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
24545 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24546 (eval $ac_try) 2>&5
24548 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24549 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
24550 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24551 (eval $ac_try) 2>&5
24553 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24554 test $ac_status = 0; }; }; then :
24556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24557 $as_echo "yes" >&6; }
24559 $as_echo "#define HAVE_NEW_SYNC_READ 1" >>confdefs.h
24563 $as_echo "$as_me: failed program was:" >&5
24564 sed 's/^/| /' conftest.
$ac_ext >&5
24566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24567 $as_echo "no" >&6; }
24578 $as_echo "$as_me: failed program was:" >&5
24579 sed 's/^/| /' conftest.
$ac_ext >&5
24581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24582 $as_echo "no" >&6; }
24591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether generic_write_checks() takes kiocb" >&5
24592 $as_echo_n "checking whether generic_write_checks() takes kiocb... " >&6; }
24595 cat confdefs.h
- <<_ACEOF >conftest.c
24598 #include <linux/fs.h>
24605 struct kiocb *iocb = NULL;
24606 struct iov_iter *iov = NULL;
24607 generic_write_checks(iocb, iov);
24617 cat - <<_ACEOF >conftest.h
24622 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
24623 echo "obj-m := conftest.o" >build
/Makefile
24625 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
24626 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
24627 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24628 (eval $ac_try) 2>&5
24630 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24631 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
24632 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24633 (eval $ac_try) 2>&5
24635 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24636 test $ac_status = 0; }; }; then :
24638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24639 $as_echo "yes" >&6; }
24641 $as_echo "#define HAVE_GENERIC_WRITE_CHECKS_KIOCB 1" >>confdefs.h
24645 $as_echo "$as_me: failed program was:" >&5
24646 sed 's/^/| /' conftest.
$ac_ext >&5
24648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24649 $as_echo "no" >&6; }
24659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether kmap_atomic wants 1 args" >&5
24660 $as_echo_n "checking whether kmap_atomic wants 1 args... " >&6; }
24663 cat confdefs.h
- <<_ACEOF >conftest.c
24666 #include <linux/pagemap.h>
24673 kmap_atomic(&page);
24683 cat - <<_ACEOF >conftest.h
24688 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
24689 echo "obj-m := conftest.o" >build
/Makefile
24691 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
24692 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
24693 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24694 (eval $ac_try) 2>&5
24696 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24697 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
24698 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24699 (eval $ac_try) 2>&5
24701 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24702 test $ac_status = 0; }; }; then :
24704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24705 $as_echo "yes" >&6; }
24707 $as_echo "#define HAVE_1ARG_KMAP_ATOMIC 1" >>confdefs.h
24711 $as_echo "$as_me: failed program was:" >&5
24712 sed 's/^/| /' conftest.
$ac_ext >&5
24714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24715 $as_echo "no" >&6; }
24725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether follow_down_one() is available" >&5
24726 $as_echo_n "checking whether follow_down_one() is available... " >&6; }
24729 cat confdefs.h
- <<_ACEOF >conftest.c
24732 #include <linux/namei.h>
24738 struct path *p = NULL;
24739 follow_down_one(p);
24749 cat - <<_ACEOF >conftest.h
24754 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
24755 echo "obj-m := conftest.o" >build
/Makefile
24757 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
24758 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
24759 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24760 (eval $ac_try) 2>&5
24762 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24763 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
24764 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24765 (eval $ac_try) 2>&5
24767 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24768 test $ac_status = 0; }; }; then :
24770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24771 $as_echo "yes" >&6; }
24773 $as_echo "#define HAVE_FOLLOW_DOWN_ONE 1" >>confdefs.h
24777 $as_echo "$as_me: failed program was:" >&5
24778 sed 's/^/| /' conftest.
$ac_ext >&5
24780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24781 $as_echo "no" >&6; }
24791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether make_request_fn() returns int" >&5
24792 $as_echo_n "checking whether make_request_fn() returns int... " >&6; }
24795 cat confdefs.h
- <<_ACEOF >conftest.c
24798 #include <linux/blkdev.h>
24800 int make_request(struct request_queue *q, struct bio *bio)
24809 blk_queue_make_request(NULL, &make_request);
24819 cat - <<_ACEOF >conftest.h
24824 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
24825 echo "obj-m := conftest.o" >build
/Makefile
24827 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
24828 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
24829 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24830 (eval $ac_try) 2>&5
24832 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24833 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
24834 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24835 (eval $ac_try) 2>&5
24837 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24838 test $ac_status = 0; }; }; then :
24840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24841 $as_echo "yes" >&6; }
24843 $as_echo "#define MAKE_REQUEST_FN_RET int" >>confdefs.h
24846 $as_echo "#define HAVE_MAKE_REQUEST_FN_RET_INT 1" >>confdefs.h
24850 $as_echo "$as_me: failed program was:" >&5
24851 sed 's/^/| /' conftest.
$ac_ext >&5
24853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24854 $as_echo "no" >&6; }
24855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether make_request_fn() returns void" >&5
24856 $as_echo_n "checking whether make_request_fn() returns void... " >&6; }
24859 cat confdefs.h
- <<_ACEOF >conftest.c
24862 #include <linux/blkdev.h>
24864 void make_request(struct request_queue *q, struct bio *bio)
24873 blk_queue_make_request(NULL, &make_request);
24883 cat - <<_ACEOF >conftest.h
24888 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
24889 echo "obj-m := conftest.o" >build
/Makefile
24891 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
24892 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
24893 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24894 (eval $ac_try) 2>&5
24896 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24897 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
24898 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24899 (eval $ac_try) 2>&5
24901 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24902 test $ac_status = 0; }; }; then :
24904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24905 $as_echo "yes" >&6; }
24907 $as_echo "#define MAKE_REQUEST_FN_RET void" >>confdefs.h
24911 $as_echo "$as_me: failed program was:" >&5
24912 sed 's/^/| /' conftest.
$ac_ext >&5
24914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24915 $as_echo "no" >&6; }
24916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether make_request_fn() returns blk_qc_t" >&5
24917 $as_echo_n "checking whether make_request_fn() returns blk_qc_t... " >&6; }
24920 cat confdefs.h
- <<_ACEOF >conftest.c
24923 #include <linux/blkdev.h>
24925 blk_qc_t make_request(struct request_queue *q, struct bio *bio)
24927 return (BLK_QC_T_NONE);
24934 blk_queue_make_request(NULL, &make_request);
24944 cat - <<_ACEOF >conftest.h
24949 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
24950 echo "obj-m := conftest.o" >build
/Makefile
24952 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
24953 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
24954 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24955 (eval $ac_try) 2>&5
24957 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24958 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
24959 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24960 (eval $ac_try) 2>&5
24962 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24963 test $ac_status = 0; }; }; then :
24965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24966 $as_echo "yes" >&6; }
24968 $as_echo "#define MAKE_REQUEST_FN_RET blk_qc_t" >>confdefs.h
24971 $as_echo "#define HAVE_MAKE_REQUEST_FN_RET_QC 1" >>confdefs.h
24975 $as_echo "$as_me: failed program was:" >&5
24976 sed 's/^/| /' conftest.
$ac_ext >&5
24978 as_fn_error $?
"no - Please file a bug report at
24979 https://github.com/zfsonlinux/zfs/issues/new" "$LINENO" 5
25003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether generic IO accounting symbols are avaliable" >&5
25004 $as_echo_n "checking whether generic IO accounting symbols are avaliable... " >&6; }
25008 cat confdefs.h
- <<_ACEOF >conftest.c
25011 #include <linux/bio.h>
25013 void (*generic_start_io_acct_f)(int, unsigned long,
25014 struct hd_struct *) = &generic_start_io_acct;
25015 void (*generic_end_io_acct_f)(int, struct hd_struct *,
25016 unsigned long) = &generic_end_io_acct;
25022 generic_start_io_acct(0, 0, NULL);
25023 generic_end_io_acct(0, NULL, 0);
25033 cat - <<_ACEOF >conftest.h
25038 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
25039 echo "obj-m := conftest.o" >build
/Makefile
25041 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
25042 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
25043 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25044 (eval $ac_try) 2>&5
25046 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25047 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
25048 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25049 (eval $ac_try) 2>&5
25051 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25052 test $ac_status = 0; }; }; then :
25055 $as_echo "$as_me: failed program was:" >&5
25056 sed 's/^/| /' conftest.
$ac_ext >&5
25064 if test $rc -ne 0; then :
25066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25067 $as_echo "no" >&6; }
25070 if test "x$enable_linux_builtin" != xyes
; then
25072 grep -q -E '[[:space:]]generic_start_io_acct[[:space:]]' \
25073 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
25075 if test $rc -ne 0; then
25077 for file in block
/bio.c
; do
25078 grep -q -E "EXPORT_SYMBOL.*(generic_start_io_acct)" \
25079 "$LINUX/$file" 2>/dev
/null
25081 if test $rc -eq 0; then
25086 if test $export -eq 0; then :
25096 if test $rc -ne 0; then :
25098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25099 $as_echo "no" >&6; }
25103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25104 $as_echo "yes" >&6; }
25106 $as_echo "#define HAVE_GENERIC_IO_ACCT 1" >>confdefs.h
25114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->rename() wants flags" >&5
25115 $as_echo_n "checking whether iops->rename() wants flags... " >&6; }
25118 cat confdefs.h
- <<_ACEOF >conftest.c
25121 #include <linux/fs.h>
25122 int rename_fn(struct inode *sip, struct dentry *sdp,
25123 struct inode *tip, struct dentry *tdp,
25124 unsigned int flags) { return 0; }
25126 static const struct inode_operations
25127 iops __attribute__ ((unused)) = {
25128 .rename = rename_fn,
25144 cat - <<_ACEOF >conftest.h
25149 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
25150 echo "obj-m := conftest.o" >build
/Makefile
25152 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
25153 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
25154 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25155 (eval $ac_try) 2>&5
25157 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25158 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
25159 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25160 (eval $ac_try) 2>&5
25162 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25163 test $ac_status = 0; }; }; then :
25165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25166 $as_echo "yes" >&6; }
25168 $as_echo "#define HAVE_RENAME_WANTS_FLAGS 1" >>confdefs.h
25172 $as_echo "$as_me: failed program was:" >&5
25173 sed 's/^/| /' conftest.
$ac_ext >&5
25175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25176 $as_echo "no" >&6; }
25186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether generic_setxattr() exists" >&5
25187 $as_echo_n "checking whether generic_setxattr() exists... " >&6; }
25190 cat confdefs.h
- <<_ACEOF >conftest.c
25193 #include <linux/fs.h>
25194 #include <linux/xattr.h>
25196 static const struct inode_operations
25197 iops __attribute__ ((unused)) = {
25198 .setxattr = generic_setxattr
25214 cat - <<_ACEOF >conftest.h
25219 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
25220 echo "obj-m := conftest.o" >build
/Makefile
25222 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
25223 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
25224 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25225 (eval $ac_try) 2>&5
25227 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25228 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
25229 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25230 (eval $ac_try) 2>&5
25232 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25233 test $ac_status = 0; }; }; then :
25235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25236 $as_echo "yes" >&6; }
25238 $as_echo "#define HAVE_GENERIC_SETXATTR 1" >>confdefs.h
25242 $as_echo "$as_me: failed program was:" >&5
25243 sed 's/^/| /' conftest.
$ac_ext >&5
25245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25246 $as_echo "no" >&6; }
25255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether current_time() exists" >&5
25256 $as_echo_n "checking whether current_time() exists... " >&6; }
25260 cat confdefs.h
- <<_ACEOF >conftest.c
25263 #include <linux/fs.h>
25270 struct timespec now __attribute__ ((unused));
25272 now = current_time(&ip);
25282 cat - <<_ACEOF >conftest.h
25287 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
25288 echo "obj-m := conftest.o" >build
/Makefile
25290 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
25291 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
25292 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25293 (eval $ac_try) 2>&5
25295 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25296 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
25297 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25298 (eval $ac_try) 2>&5
25300 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25301 test $ac_status = 0; }; }; then :
25304 $as_echo "$as_me: failed program was:" >&5
25305 sed 's/^/| /' conftest.
$ac_ext >&5
25313 if test $rc -ne 0; then :
25315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25316 $as_echo "no" >&6; }
25319 if test "x$enable_linux_builtin" != xyes
; then
25321 grep -q -E '[[:space:]]current_time[[:space:]]' \
25322 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
25324 if test $rc -ne 0; then
25326 for file in fs
/inode.c
; do
25327 grep -q -E "EXPORT_SYMBOL.*(current_time)" \
25328 "$LINUX/$file" 2>/dev
/null
25330 if test $rc -eq 0; then
25335 if test $export -eq 0; then :
25345 if test $rc -ne 0; then :
25347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25348 $as_echo "no" >&6; }
25352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25353 $as_echo "yes" >&6; }
25355 $as_echo "#define HAVE_CURRENT_TIME 1" >>confdefs.h
25363 if test "$LINUX_OBJ" != "$LINUX"; then :
25365 KERNELMAKE_PARAMS
="$KERNELMAKE_PARAMS O=$LINUX_OBJ"
25371 KERNELCPPFLAGS
="$KERNELCPPFLAGS $NO_UNUSED_BUT_SET_VARIABLE"
25372 KERNELCPPFLAGS
="$KERNELCPPFLAGS $NO_BOOL_COMPARE"
25373 KERNELCPPFLAGS
="$KERNELCPPFLAGS -DHAVE_SPL -D_KERNEL"
25374 KERNELCPPFLAGS
="$KERNELCPPFLAGS -DTEXT_DOMAIN=\\\"zfs-linux-kernel\\\""
25381 # Check whether --with-linux was given.
25382 if test "${with_linux+set}" = set; then :
25383 withval
=$with_linux; kernelsrc
="$withval"
25388 # Check whether --with-linux-obj was given.
25389 if test "${with_linux_obj+set}" = set; then :
25390 withval
=$with_linux_obj; kernelbuild
="$withval"
25394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking kernel source directory" >&5
25395 $as_echo_n "checking kernel source directory... " >&6; }
25396 if test -z "$kernelsrc"; then :
25398 if test -e "/lib/modules/$(uname -r)/source"; then :
25400 headersdir
="/lib/modules/$(uname -r)/source"
25401 sourcelink
=$
(readlink
-f "$headersdir")
25403 elif test -e "/lib/modules/$(uname -r)/build"; then :
25405 headersdir
="/lib/modules/$(uname -r)/build"
25406 sourcelink
=$
(readlink
-f "$headersdir")
25410 sourcelink
=$
(ls -1d /usr
/src
/kernels
/* \
25412 2>/dev
/null |
grep -v obj |
tail -1)
25416 if test -n "$sourcelink" && test -e ${sourcelink}; then :
25418 kernelsrc
=`readlink -f ${sourcelink}`
25422 kernelsrc
="Not found"
25428 if test "$kernelsrc" = "NONE"; then :
25436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kernelsrc" >&5
25437 $as_echo "$kernelsrc" >&6; }
25438 if test ! -d "$kernelsrc"; then :
25441 *** Please make sure the kernel devel package for your distribution
25442 *** is installed and then try again. If that fails, you can specify the
25443 *** location of the kernel source with the '--with-linux=PATH' option." "$LINENO" 5
25447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking kernel build directory" >&5
25448 $as_echo_n "checking kernel build directory... " >&6; }
25449 if test -z "$kernelbuild"; then :
25451 if test -e "/lib/modules/$(uname -r)/build"; then :
25453 kernelbuild
=`readlink -f /lib/modules/$(uname -r)/build`
25455 elif test -d ${kernelsrc}-obj/${target_cpu}/${target_cpu}; then :
25457 kernelbuild
=${kernelsrc}-obj/${target_cpu}/${target_cpu}
25459 elif test -d ${kernelsrc}-obj/${target_cpu}/default
; then :
25461 kernelbuild
=${kernelsrc}-obj/${target_cpu}/default
25463 elif test -d `dirname ${kernelsrc}`/build-
${target_cpu}; then :
25465 kernelbuild
=`dirname ${kernelsrc}`/build-
${target_cpu}
25469 kernelbuild
=${kernelsrc}
25474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kernelbuild" >&5
25475 $as_echo "$kernelbuild" >&6; }
25477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking kernel source version" >&5
25478 $as_echo_n "checking kernel source version... " >&6; }
25479 utsrelease1
=$kernelbuild/include
/linux
/version.h
25480 utsrelease2
=$kernelbuild/include
/linux
/utsrelease.h
25481 utsrelease3
=$kernelbuild/include
/generated
/utsrelease.h
25482 if test -r $utsrelease1 && fgrep
-q UTS_RELEASE
$utsrelease1; then :
25484 utsrelease
=linux
/version.h
25486 elif test -r $utsrelease2 && fgrep
-q UTS_RELEASE
$utsrelease2; then :
25488 utsrelease
=linux
/utsrelease.h
25490 elif test -r $utsrelease3 && fgrep
-q UTS_RELEASE
$utsrelease3; then :
25492 utsrelease
=generated
/utsrelease.h
25496 if test "$utsrelease"; then :
25498 kernsrcver
=`(echo "#include <$utsrelease>";
25499 echo "kernsrcver=UTS_RELEASE") |
25500 cpp -I $kernelbuild/include |
25501 grep "^kernsrcver=" | cut -d \" -f 2`
25503 if test -z "$kernsrcver"; then :
25505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not found" >&5
25506 $as_echo "Not found" >&6; }
25507 as_fn_error $?
"*** Cannot determine kernel version." "$LINENO" 5
25513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not found" >&5
25514 $as_echo "Not found" >&6; }
25515 if test "x$enable_linux_builtin" != xyes
; then
25516 as_fn_error $?
"*** Cannot find UTS_RELEASE definition." "$LINENO" 5
25519 *** Cannot find UTS_RELEASE definition.
25520 *** Please run 'make prepare' inside the kernel source tree." "$LINENO" 5
25525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kernsrcver" >&5
25526 $as_echo "$kernsrcver" >&6; }
25529 LINUX_OBJ
=${kernelbuild}
25530 LINUX_VERSION
=${kernsrcver}
25537 modpost
=$LINUX/scripts
/Makefile.modpost
25538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking kernel file name for module symbols" >&5
25539 $as_echo_n "checking kernel file name for module symbols... " >&6; }
25540 if test "x$enable_linux_builtin" != xyes
-a -f "$modpost"; then :
25542 if grep -q Modules.symvers
$modpost; then :
25544 LINUX_SYMBOLS
=Modules.symvers
25548 LINUX_SYMBOLS
=Module.symvers
25552 if test ! -f "$LINUX_OBJ/$LINUX_SYMBOLS"; then :
25555 *** Please make sure the kernel devel package for your distribution
25556 *** is installed. If you are building with a custom kernel, make sure the
25557 *** kernel is configured, built, and the '--with-linux=PATH' configure
25558 *** option refers to the location of the kernel source." "$LINENO" 5
25567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINUX_SYMBOLS" >&5
25568 $as_echo "$LINUX_SYMBOLS" >&6; }
25574 # Check whether --with-spl was given.
25575 if test "${with_spl+set}" = set; then :
25576 withval
=$with_spl; splsrc
="$withval"
25581 # Check whether --with-spl-obj was given.
25582 if test "${with_spl_obj+set}" = set; then :
25583 withval
=$with_spl_obj; splbuild
="$withval"
25588 # Check whether --with-spl-timeout was given.
25589 if test "${with_spl_timeout+set}" = set; then :
25590 withval
=$with_spl_timeout; timeout
="$withval"
25596 splsrc0
="/var/lib/dkms/spl/${VERSION}/build"
25597 splsrc1
="/usr/local/src/spl-${VERSION}/${LINUX_VERSION}"
25598 splsrc2
="/usr/local/src/spl-${VERSION}"
25599 splsrc3
="/usr/src/spl-${VERSION}/${LINUX_VERSION}"
25600 splsrc4
="/usr/src/spl-${VERSION}"
25604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking spl source directory" >&5
25605 $as_echo_n "checking spl source directory... " >&6; }
25606 if test -z "${splsrc}"; then :
25608 if test -e "${splsrc0}/spl.release.in"; then :
25612 elif test -e "${splsrc1}/spl.release.in"; then :
25616 elif test -e "${splsrc2}/spl.release.in"; then :
25620 elif test -e "${splsrc3}/spl.release.in"; then :
25622 splsrc
=$
(readlink
-f "${splsrc3}")
25624 elif test -e "${splsrc4}/spl.release.in" ; then :
25628 elif test -e "${splsrc5}/spl.release.in"; then :
25630 splsrc
=$
(readlink
-f "${splsrc5}")
25632 elif test -e "${splsrc6}/spl.release.in" ; then :
25644 if test "$splsrc" = "NONE"; then :
25653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $splsrc" >&5
25654 $as_echo "$splsrc" >&6; }
25655 if test ! -e "$splsrc/spl.release.in"; then :
25658 *** Please make sure the kmod spl devel package for your distribution
25659 *** is installed then try again. If that fails you can specify the
25660 *** location of the spl source with the '--with-spl=PATH' option." "$LINENO" 5
25664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking spl build directory" >&5
25665 $as_echo_n "checking spl build directory... " >&6; }
25667 if test -z "$splbuild"; then :
25669 if test -e "${splsrc}/${LINUX_VERSION}/spl_config.h" ; then :
25671 splbuild
="${splsrc}/${LINUX_VERSION}"
25673 elif test -e "${splsrc}/spl_config.h" ; then :
25675 splbuild
="${splsrc}"
25677 elif find -L "${splsrc}" -name spl_config.h
2> /dev
/null |
grep -wq spl_config.h
; then :
25679 splbuild
=$
(find -L "${splsrc}" -name spl_config.h |
sed 's,/spl_config.h,,')
25683 splbuild
="Not found"
25688 if test -e "$splbuild/spl_config.h" -o $timeout -le 0; then :
25695 timeout
=$
((timeout-1
))
25700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $splbuild" >&5
25701 $as_echo "$splbuild" >&6; }
25702 if ! test -e "$splbuild/spl_config.h"; then :
25705 *** Please make sure the kmod spl devel <kernel> package for your
25706 *** distribution is installed then try again. If that fails you
25707 *** can specify the location of the spl objects with the
25708 *** '--with-spl-obj=PATH' option." "$LINENO" 5
25712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking spl source version" >&5
25713 $as_echo_n "checking spl source version... " >&6; }
25714 if test -r $splbuild/spl_config.h
&&
25715 fgrep
-q SPL_META_VERSION
$splbuild/spl_config.h
; then :
25718 splsrcver
=`(echo "#include <spl_config.h>";
25719 echo "splsrcver=SPL_META_VERSION-SPL_META_RELEASE") |
25721 grep "^splsrcver=" | tr -d \" | cut -d= -f2`
25725 if test -z "$splsrcver"; then :
25727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not found" >&5
25728 $as_echo "Not found" >&6; }
25730 *** Cannot determine the version of the spl source.
25731 *** Please prepare the spl source before running this script" "$LINENO" 5
25735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $splsrcver" >&5
25736 $as_echo "$splsrcver" >&6; }
25739 SPL_OBJ
=${splbuild}
25740 SPL_VERSION
=${splsrcver}
25746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking spl file name for module symbols" >&5
25747 $as_echo_n "checking spl file name for module symbols... " >&6; }
25751 if test -r $SPL_OBJ/Module.symvers
; then :
25753 SPL_SYMBOLS
=Module.symvers
25755 elif test -r $SPL_OBJ/Modules.symvers
; then :
25757 SPL_SYMBOLS
=Modules.symvers
25759 elif test -r $SPL_OBJ/module
/Module.symvers
; then :
25761 SPL_SYMBOLS
=Module.symvers
25763 elif test -r $SPL_OBJ/module
/Modules.symvers
; then :
25765 SPL_SYMBOLS
=Modules.symvers
25769 if test $SPL_SYMBOLS != NONE
-o $timeout -le 0; then :
25776 timeout
=$
((timeout-1
))
25781 if test "$SPL_SYMBOLS" = NONE
; then :
25783 SPL_SYMBOLS
=$LINUX_SYMBOLS
25787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SPL_SYMBOLS" >&5
25788 $as_echo "$SPL_SYMBOLS" >&6; }
25792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether modules can be built" >&5
25793 $as_echo_n "checking whether modules can be built... " >&6; }
25796 cat confdefs.h
- <<_ACEOF >conftest.c
25811 cat - <<_ACEOF >conftest.h
25816 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
25817 echo "obj-m := conftest.o" >build
/Makefile
25819 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
25820 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
25821 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25822 (eval $ac_try) 2>&5
25824 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25825 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
25826 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25827 (eval $ac_try) 2>&5
25829 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25830 test $ac_status = 0; }; }; then :
25832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25833 $as_echo "yes" >&6; }
25836 $as_echo "$as_me: failed program was:" >&5
25837 sed 's/^/| /' conftest.
$ac_ext >&5
25839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25840 $as_echo "no" >&6; }
25841 if test "x$enable_linux_builtin" != xyes
; then
25842 as_fn_error $?
"*** Unable to build an empty module." "$LINENO" 5
25845 *** Unable to build an empty module.
25846 *** Please run 'make scripts' inside the kernel source tree." "$LINENO" 5
25857 if test "x$cross_compiling" != xyes
; then :
25859 if test "$cross_compiling" = yes; then :
25860 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
25861 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
25862 as_fn_error $?
"cannot run test program while cross compiling
25863 See \`config.log' for more details" "$LINENO" 5; }
25865 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
25866 /* end confdefs.h. */
25869 #include "$LINUX/include/linux/license.h"
25875 return !license_is_gpl_compatible("$ZFS_META_LICENSE");
25882 if ac_fn_c_try_run
"$LINENO"; then :
25885 $as_echo "#define ZFS_IS_GPL_COMPATIBLE 1" >>confdefs.h
25889 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
25890 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
25897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether kernel was built with 16K or larger stacks" >&5
25898 $as_echo_n "checking whether kernel was built with 16K or larger stacks... " >&6; }
25901 cat confdefs.h
- <<_ACEOF >conftest.c
25904 #include <linux/module.h>
25910 #if (THREAD_SIZE < 16384)
25911 #error "THREAD_SIZE is less than 16K"
25922 cat - <<_ACEOF >conftest.h
25927 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
25928 echo "obj-m := conftest.o" >build
/Makefile
25930 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
25931 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
25932 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25933 (eval $ac_try) 2>&5
25935 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25936 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
25937 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25938 (eval $ac_try) 2>&5
25940 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25941 test $ac_status = 0; }; }; then :
25943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25944 $as_echo "yes" >&6; }
25946 $as_echo "#define HAVE_LARGE_STACKS 1" >>confdefs.h
25950 $as_echo "$as_me: failed program was:" >&5
25951 sed 's/^/| /' conftest.
$ac_ext >&5
25953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25954 $as_echo "no" >&6; }
25965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether kernel was built with CONFIG_DEBUG_LOCK_ALLOC" >&5
25966 $as_echo_n "checking whether kernel was built with CONFIG_DEBUG_LOCK_ALLOC... " >&6; }
25969 cat confdefs.h
- <<_ACEOF >conftest.c
25972 #include <linux/module.h>
25978 #ifndef CONFIG_DEBUG_LOCK_ALLOC
25979 #error CONFIG_DEBUG_LOCK_ALLOC not #defined
25990 cat - <<_ACEOF >conftest.h
25995 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
25996 echo "obj-m := conftest.o" >build
/Makefile
25998 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
25999 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
26000 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26001 (eval $ac_try) 2>&5
26003 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26004 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
26005 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26006 (eval $ac_try) 2>&5
26008 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26009 test $ac_status = 0; }; }; then :
26011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26012 $as_echo "yes" >&6; }
26014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mutex_lock() is GPL-only" >&5
26015 $as_echo_n "checking whether mutex_lock() is GPL-only... " >&6; }
26016 tmp_flags
="$EXTRA_KCFLAGS"
26019 cat confdefs.h
- <<_ACEOF >conftest.c
26022 #include <linux/module.h>
26023 #include <linux/mutex.h>
26025 MODULE_LICENSE("$ZFS_META_LICENSE");
26035 mutex_unlock(&lock);
26045 cat - <<_ACEOF >conftest.h
26050 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
26051 echo "obj-m := conftest.o" >build
/Makefile
26053 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
26054 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
26055 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26056 (eval $ac_try) 2>&5
26058 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26059 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
26060 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26061 (eval $ac_try) 2>&5
26063 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26064 test $ac_status = 0; }; }; then :
26066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26067 $as_echo "no" >&6; }
26070 $as_echo "$as_me: failed program was:" >&5
26071 sed 's/^/| /' conftest.
$ac_ext >&5
26073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26074 $as_echo "yes" >&6; }
26076 *** Kernel built with CONFIG_DEBUG_LOCK_ALLOC which is incompatible
26077 *** with the CDDL license and will prevent the module linking stage
26078 *** from succeeding. You must rebuild your kernel without this
26079 *** option enabled." "$LINENO" 5
26087 EXTRA_KCFLAGS
="$tmp_flags"
26091 $as_echo "$as_me: failed program was:" >&5
26092 sed 's/^/| /' conftest.
$ac_ext >&5
26094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26095 $as_echo "no" >&6; }
26108 tmp_flags
="$EXTRA_KCFLAGS"
26109 EXTRA_KCFLAGS
="-I\$(src)"
26111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether DECLARE_EVENT_CLASS() is available" >&5
26112 $as_echo_n "checking whether DECLARE_EVENT_CLASS() is available... " >&6; }
26115 cat confdefs.h
- <<_ACEOF >conftest.c
26118 #include <linux/module.h>
26119 MODULE_LICENSE(ZFS_META_LICENSE);
26121 #define CREATE_TRACE_POINTS
26122 #include "conftest.h"
26128 trace_zfs_autoconf_event_one(1UL);
26129 trace_zfs_autoconf_event_two(2UL);
26139 cat - <<_ACEOF >conftest.h
26141 #if !defined(_CONFTEST_H) || defined(TRACE_HEADER_MULTI_READ)
26142 #define _CONFTEST_H
26144 #undef TRACE_SYSTEM
26145 #define TRACE_SYSTEM zfs
26146 #include <linux/tracepoint.h>
26148 DECLARE_EVENT_CLASS(zfs_autoconf_event_class,
26149 TP_PROTO(unsigned long i),
26152 __field(unsigned long, i)
26157 TP_printk("i = %lu", __entry->i)
26160 #define DEFINE_AUTOCONF_EVENT(name) \
26161 DEFINE_EVENT(zfs_autoconf_event_class, name, \
26162 TP_PROTO(unsigned long i), \
26164 DEFINE_AUTOCONF_EVENT(zfs_autoconf_event_one);
26165 DEFINE_AUTOCONF_EVENT(zfs_autoconf_event_two);
26167 #endif /* _CONFTEST_H */
26169 #undef TRACE_INCLUDE_PATH
26170 #define TRACE_INCLUDE_PATH .
26171 #define TRACE_INCLUDE_FILE conftest
26172 #include <trace/define_trace.h>
26177 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
26178 echo "obj-m := conftest.o" >build
/Makefile
26180 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
26181 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
26182 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26183 (eval $ac_try) 2>&5
26185 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26186 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
26187 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26188 (eval $ac_try) 2>&5
26190 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26191 test $ac_status = 0; }; }; then :
26193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26194 $as_echo "yes" >&6; }
26196 $as_echo "#define HAVE_DECLARE_EVENT_CLASS 1" >>confdefs.h
26200 $as_echo "$as_me: failed program was:" >&5
26201 sed 's/^/| /' conftest.
$ac_ext >&5
26203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26204 $as_echo "no" >&6; }
26212 EXTRA_KCFLAGS
="$tmp_flags"
26215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether current->bio_tail exists" >&5
26216 $as_echo_n "checking whether current->bio_tail exists... " >&6; }
26219 cat confdefs.h
- <<_ACEOF >conftest.c
26222 #include <linux/sched.h>
26228 current->bio_tail = (struct bio **) NULL;
26238 cat - <<_ACEOF >conftest.h
26243 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
26244 echo "obj-m := conftest.o" >build
/Makefile
26246 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
26247 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
26248 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26249 (eval $ac_try) 2>&5
26251 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26252 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
26253 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26254 (eval $ac_try) 2>&5
26256 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26257 test $ac_status = 0; }; }; then :
26259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26260 $as_echo "yes" >&6; }
26262 $as_echo "#define HAVE_CURRENT_BIO_TAIL 1" >>confdefs.h
26266 $as_echo "$as_me: failed program was:" >&5
26267 sed 's/^/| /' conftest.
$ac_ext >&5
26269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26270 $as_echo "no" >&6; }
26271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether current->bio_list exists" >&5
26272 $as_echo_n "checking whether current->bio_list exists... " >&6; }
26275 cat confdefs.h
- <<_ACEOF >conftest.c
26278 #include <linux/sched.h>
26284 current->bio_list = (struct bio_list *) NULL;
26294 cat - <<_ACEOF >conftest.h
26299 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
26300 echo "obj-m := conftest.o" >build
/Makefile
26302 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
26303 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
26304 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26305 (eval $ac_try) 2>&5
26307 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26308 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
26309 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26310 (eval $ac_try) 2>&5
26312 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26313 test $ac_status = 0; }; }; then :
26315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26316 $as_echo "yes" >&6; }
26318 $as_echo "#define HAVE_CURRENT_BIO_LIST 1" >>confdefs.h
26322 $as_echo "$as_me: failed program was:" >&5
26323 sed 's/^/| /' conftest.
$ac_ext >&5
26325 as_fn_error $?
"no - Please file a bug report at
26326 https://github.com/zfsonlinux/zfs/issues/new" "$LINENO" 5
26343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether submit_bio() wants 1 arg" >&5
26344 $as_echo_n "checking whether submit_bio() wants 1 arg... " >&6; }
26347 cat confdefs.h
- <<_ACEOF >conftest.c
26350 #include <linux/bio.h>
26357 struct bio *bio = NULL;
26358 blk_qc = submit_bio(bio);
26368 cat - <<_ACEOF >conftest.h
26373 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
26374 echo "obj-m := conftest.o" >build
/Makefile
26376 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
26377 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
26378 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26379 (eval $ac_try) 2>&5
26381 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26382 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
26383 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26384 (eval $ac_try) 2>&5
26386 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26387 test $ac_status = 0; }; }; then :
26389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26390 $as_echo "yes" >&6; }
26392 $as_echo "#define HAVE_1ARG_SUBMIT_BIO 1" >>confdefs.h
26396 $as_echo "$as_me: failed program was:" >&5
26397 sed 's/^/| /' conftest.
$ac_ext >&5
26399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26400 $as_echo "no" >&6; }
26410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking block device operation prototypes" >&5
26411 $as_echo_n "checking block device operation prototypes... " >&6; }
26412 tmp_flags
="$EXTRA_KCFLAGS"
26413 EXTRA_KCFLAGS
="${NO_UNUSED_BUT_SET_VARIABLE}"
26416 cat confdefs.h
- <<_ACEOF >conftest.c
26419 #include <linux/blkdev.h>
26421 int blk_open(struct block_device *bdev, fmode_t mode)
26423 int blk_ioctl(struct block_device *bdev, fmode_t mode,
26424 unsigned x, unsigned long y) { return 0; }
26425 int blk_compat_ioctl(struct block_device * bdev, fmode_t mode,
26426 unsigned x, unsigned long y) { return 0; }
26428 static const struct block_device_operations
26429 bops __attribute__ ((unused)) = {
26432 .ioctl = blk_ioctl,
26433 .compat_ioctl = blk_compat_ioctl,
26449 cat - <<_ACEOF >conftest.h
26454 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
26455 echo "obj-m := conftest.o" >build
/Makefile
26457 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
26458 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
26459 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26460 (eval $ac_try) 2>&5
26462 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26463 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
26464 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26465 (eval $ac_try) 2>&5
26467 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26468 test $ac_status = 0; }; }; then :
26470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: struct block_device" >&5
26471 $as_echo "struct block_device" >&6; }
26473 $as_echo "#define HAVE_BDEV_BLOCK_DEVICE_OPERATIONS 1" >>confdefs.h
26477 $as_echo "$as_me: failed program was:" >&5
26478 sed 's/^/| /' conftest.
$ac_ext >&5
26480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: struct inode" >&5
26481 $as_echo "struct inode" >&6; }
26489 EXTRA_KCFLAGS
="$tmp_flags"
26492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether block_device_operations.release is void" >&5
26493 $as_echo_n "checking whether block_device_operations.release is void... " >&6; }
26494 tmp_flags
="$EXTRA_KCFLAGS"
26495 EXTRA_KCFLAGS
="${NO_UNUSED_BUT_SET_VARIABLE}"
26498 cat confdefs.h
- <<_ACEOF >conftest.c
26501 #include <linux/blkdev.h>
26503 void blk_release(struct gendisk *g, fmode_t mode) { return; }
26505 static const struct block_device_operations
26506 bops __attribute__ ((unused)) = {
26508 .release = blk_release,
26510 .compat_ioctl = NULL,
26526 cat - <<_ACEOF >conftest.h
26531 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
26532 echo "obj-m := conftest.o" >build
/Makefile
26534 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
26535 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
26536 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26537 (eval $ac_try) 2>&5
26539 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26540 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
26541 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26542 (eval $ac_try) 2>&5
26544 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26545 test $ac_status = 0; }; }; then :
26547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: void" >&5
26548 $as_echo "void" >&6; }
26550 $as_echo "#define HAVE_BLOCK_DEVICE_OPERATIONS_RELEASE_VOID 1" >>confdefs.h
26554 $as_echo "$as_me: failed program was:" >&5
26555 sed 's/^/| /' conftest.
$ac_ext >&5
26557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: int" >&5
26558 $as_echo "int" >&6; }
26566 EXTRA_KCFLAGS
="$tmp_flags"
26568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether kernel defines fmode_t" >&5
26569 $as_echo_n "checking whether kernel defines fmode_t... " >&6; }
26572 cat confdefs.h
- <<_ACEOF >conftest.c
26575 #include <linux/types.h>
26581 fmode_t *ptr __attribute__ ((unused));
26591 cat - <<_ACEOF >conftest.h
26596 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
26597 echo "obj-m := conftest.o" >build
/Makefile
26599 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
26600 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
26601 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26602 (eval $ac_try) 2>&5
26604 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26605 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
26606 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26607 (eval $ac_try) 2>&5
26609 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26610 test $ac_status = 0; }; }; then :
26612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26613 $as_echo "yes" >&6; }
26615 $as_echo "#define HAVE_FMODE_T 1" >>confdefs.h
26619 $as_echo "$as_me: failed program was:" >&5
26620 sed 's/^/| /' conftest.
$ac_ext >&5
26622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26623 $as_echo "no" >&6; }
26633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether kernel defines KOBJ_NAME_LEN" >&5
26634 $as_echo_n "checking whether kernel defines KOBJ_NAME_LEN... " >&6; }
26637 cat confdefs.h
- <<_ACEOF >conftest.c
26640 #include <linux/kobject.h>
26646 int val __attribute__ ((unused));
26647 val = KOBJ_NAME_LEN;
26657 cat - <<_ACEOF >conftest.h
26662 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
26663 echo "obj-m := conftest.o" >build
/Makefile
26665 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
26666 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
26667 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26668 (eval $ac_try) 2>&5
26670 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26671 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
26672 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26673 (eval $ac_try) 2>&5
26675 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26676 test $ac_status = 0; }; }; then :
26678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26679 $as_echo "yes" >&6; }
26681 $as_echo "#define HAVE_KOBJ_NAME_LEN 1" >>confdefs.h
26685 $as_echo "$as_me: failed program was:" >&5
26686 sed 's/^/| /' conftest.
$ac_ext >&5
26688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26689 $as_echo "no" >&6; }
26699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether blkdev_get() wants 3 args" >&5
26700 $as_echo_n "checking whether blkdev_get() wants 3 args... " >&6; }
26703 cat confdefs.h
- <<_ACEOF >conftest.c
26706 #include <linux/fs.h>
26712 struct block_device *bdev = NULL;
26713 (void) blkdev_get(bdev, 0, NULL);
26723 cat - <<_ACEOF >conftest.h
26728 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
26729 echo "obj-m := conftest.o" >build
/Makefile
26731 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
26732 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
26733 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26734 (eval $ac_try) 2>&5
26736 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26737 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
26738 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26739 (eval $ac_try) 2>&5
26741 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26742 test $ac_status = 0; }; }; then :
26744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26745 $as_echo "yes" >&6; }
26747 $as_echo "#define HAVE_3ARG_BLKDEV_GET 1" >>confdefs.h
26751 $as_echo "$as_me: failed program was:" >&5
26752 sed 's/^/| /' conftest.
$ac_ext >&5
26754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26755 $as_echo "no" >&6; }
26764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether blkdev_get_by_path() is available" >&5
26765 $as_echo_n "checking whether blkdev_get_by_path() is available... " >&6; }
26769 cat confdefs.h
- <<_ACEOF >conftest.c
26772 #include <linux/fs.h>
26778 blkdev_get_by_path(NULL, 0, NULL);
26788 cat - <<_ACEOF >conftest.h
26793 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
26794 echo "obj-m := conftest.o" >build
/Makefile
26796 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
26797 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
26798 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26799 (eval $ac_try) 2>&5
26801 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26802 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
26803 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26804 (eval $ac_try) 2>&5
26806 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26807 test $ac_status = 0; }; }; then :
26810 $as_echo "$as_me: failed program was:" >&5
26811 sed 's/^/| /' conftest.
$ac_ext >&5
26819 if test $rc -ne 0; then :
26821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26822 $as_echo "no" >&6; }
26825 if test "x$enable_linux_builtin" != xyes
; then
26827 grep -q -E '[[:space:]]blkdev_get_by_path[[:space:]]' \
26828 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
26830 if test $rc -ne 0; then
26832 for file in fs
/block_dev.c
; do
26833 grep -q -E "EXPORT_SYMBOL.*(blkdev_get_by_path)" \
26834 "$LINUX/$file" 2>/dev
/null
26836 if test $rc -eq 0; then
26841 if test $export -eq 0; then :
26851 if test $rc -ne 0; then :
26853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26854 $as_echo "no" >&6; }
26858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26859 $as_echo "yes" >&6; }
26861 $as_echo "#define HAVE_BLKDEV_GET_BY_PATH 1" >>confdefs.h
26868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether open_bdev_exclusive() is available" >&5
26869 $as_echo_n "checking whether open_bdev_exclusive() is available... " >&6; }
26873 cat confdefs.h
- <<_ACEOF >conftest.c
26876 #include <linux/fs.h>
26882 open_bdev_exclusive(NULL, 0, NULL);
26892 cat - <<_ACEOF >conftest.h
26897 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
26898 echo "obj-m := conftest.o" >build
/Makefile
26900 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
26901 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
26902 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26903 (eval $ac_try) 2>&5
26905 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26906 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
26907 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26908 (eval $ac_try) 2>&5
26910 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26911 test $ac_status = 0; }; }; then :
26914 $as_echo "$as_me: failed program was:" >&5
26915 sed 's/^/| /' conftest.
$ac_ext >&5
26923 if test $rc -ne 0; then :
26925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26926 $as_echo "no" >&6; }
26929 if test "x$enable_linux_builtin" != xyes
; then
26931 grep -q -E '[[:space:]]open_bdev_exclusive[[:space:]]' \
26932 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
26934 if test $rc -ne 0; then
26936 for file in fs
/block_dev.c
; do
26937 grep -q -E "EXPORT_SYMBOL.*(open_bdev_exclusive)" \
26938 "$LINUX/$file" 2>/dev
/null
26940 if test $rc -eq 0; then
26945 if test $export -eq 0; then :
26955 if test $rc -ne 0; then :
26957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26958 $as_echo "no" >&6; }
26962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26963 $as_echo "yes" >&6; }
26965 $as_echo "#define HAVE_OPEN_BDEV_EXCLUSIVE 1" >>confdefs.h
26972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lookup_bdev() wants 1 arg" >&5
26973 $as_echo_n "checking whether lookup_bdev() wants 1 arg... " >&6; }
26977 cat confdefs.h
- <<_ACEOF >conftest.c
26980 #include <linux/fs.h>
26996 cat - <<_ACEOF >conftest.h
27001 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
27002 echo "obj-m := conftest.o" >build
/Makefile
27004 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
27005 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
27006 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27007 (eval $ac_try) 2>&5
27009 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27010 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
27011 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27012 (eval $ac_try) 2>&5
27014 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27015 test $ac_status = 0; }; }; then :
27018 $as_echo "$as_me: failed program was:" >&5
27019 sed 's/^/| /' conftest.
$ac_ext >&5
27027 if test $rc -ne 0; then :
27029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27030 $as_echo "no" >&6; }
27031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lookup_bdev() wants 2 args" >&5
27032 $as_echo_n "checking whether lookup_bdev() wants 2 args... " >&6; }
27036 cat confdefs.h
- <<_ACEOF >conftest.c
27039 #include <linux/fs.h>
27045 lookup_bdev(NULL, FMODE_READ);
27055 cat - <<_ACEOF >conftest.h
27060 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
27061 echo "obj-m := conftest.o" >build
/Makefile
27063 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
27064 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
27065 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27066 (eval $ac_try) 2>&5
27068 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27069 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
27070 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27071 (eval $ac_try) 2>&5
27073 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27074 test $ac_status = 0; }; }; then :
27077 $as_echo "$as_me: failed program was:" >&5
27078 sed 's/^/| /' conftest.
$ac_ext >&5
27086 if test $rc -ne 0; then :
27088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27089 $as_echo "no" >&6; }
27092 if test "x$enable_linux_builtin" != xyes
; then
27094 grep -q -E '[[:space:]]lookup_bdev[[:space:]]' \
27095 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
27097 if test $rc -ne 0; then
27099 for file in fs
/block_dev.c
; do
27100 grep -q -E "EXPORT_SYMBOL.*(lookup_bdev)" \
27101 "$LINUX/$file" 2>/dev
/null
27103 if test $rc -eq 0; then
27108 if test $export -eq 0; then :
27118 if test $rc -ne 0; then :
27120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27121 $as_echo "no" >&6; }
27125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27126 $as_echo "yes" >&6; }
27128 $as_echo "#define HAVE_2ARGS_LOOKUP_BDEV 1" >>confdefs.h
27136 if test "x$enable_linux_builtin" != xyes
; then
27138 grep -q -E '[[:space:]]lookup_bdev[[:space:]]' \
27139 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
27141 if test $rc -ne 0; then
27143 for file in fs
/block_dev.c
; do
27144 grep -q -E "EXPORT_SYMBOL.*(lookup_bdev)" \
27145 "$LINUX/$file" 2>/dev
/null
27147 if test $rc -eq 0; then
27152 if test $export -eq 0; then :
27162 if test $rc -ne 0; then :
27164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27165 $as_echo "no" >&6; }
27166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lookup_bdev() wants 2 args" >&5
27167 $as_echo_n "checking whether lookup_bdev() wants 2 args... " >&6; }
27171 cat confdefs.h
- <<_ACEOF >conftest.c
27174 #include <linux/fs.h>
27180 lookup_bdev(NULL, FMODE_READ);
27190 cat - <<_ACEOF >conftest.h
27195 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
27196 echo "obj-m := conftest.o" >build
/Makefile
27198 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
27199 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
27200 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27201 (eval $ac_try) 2>&5
27203 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27204 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
27205 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27206 (eval $ac_try) 2>&5
27208 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27209 test $ac_status = 0; }; }; then :
27212 $as_echo "$as_me: failed program was:" >&5
27213 sed 's/^/| /' conftest.
$ac_ext >&5
27221 if test $rc -ne 0; then :
27223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27224 $as_echo "no" >&6; }
27227 if test "x$enable_linux_builtin" != xyes
; then
27229 grep -q -E '[[:space:]]lookup_bdev[[:space:]]' \
27230 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
27232 if test $rc -ne 0; then
27234 for file in fs
/block_dev.c
; do
27235 grep -q -E "EXPORT_SYMBOL.*(lookup_bdev)" \
27236 "$LINUX/$file" 2>/dev
/null
27238 if test $rc -eq 0; then
27243 if test $export -eq 0; then :
27253 if test $rc -ne 0; then :
27255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27256 $as_echo "no" >&6; }
27260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27261 $as_echo "yes" >&6; }
27263 $as_echo "#define HAVE_2ARGS_LOOKUP_BDEV 1" >>confdefs.h
27272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27273 $as_echo "yes" >&6; }
27275 $as_echo "#define HAVE_1ARG_LOOKUP_BDEV 1" >>confdefs.h
27283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether invalidate_bdev() wants 1 arg" >&5
27284 $as_echo_n "checking whether invalidate_bdev() wants 1 arg... " >&6; }
27287 cat confdefs.h
- <<_ACEOF >conftest.c
27290 #include <linux/buffer_head.h>
27296 struct block_device *bdev = NULL;
27297 invalidate_bdev(bdev);
27307 cat - <<_ACEOF >conftest.h
27312 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
27313 echo "obj-m := conftest.o" >build
/Makefile
27315 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
27316 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
27317 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27318 (eval $ac_try) 2>&5
27320 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27321 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
27322 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27323 (eval $ac_try) 2>&5
27325 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27326 test $ac_status = 0; }; }; then :
27328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27329 $as_echo "yes" >&6; }
27331 $as_echo "#define HAVE_1ARG_INVALIDATE_BDEV 1" >>confdefs.h
27335 $as_echo "$as_me: failed program was:" >&5
27336 sed 's/^/| /' conftest.
$ac_ext >&5
27338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27339 $as_echo "no" >&6; }
27349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether bdev_logical_block_size() is available" >&5
27350 $as_echo_n "checking whether bdev_logical_block_size() is available... " >&6; }
27351 tmp_flags
="$EXTRA_KCFLAGS"
27352 EXTRA_KCFLAGS
="${NO_UNUSED_BUT_SET_VARIABLE}"
27355 cat confdefs.h
- <<_ACEOF >conftest.c
27358 #include <linux/blkdev.h>
27364 struct block_device *bdev = NULL;
27365 bdev_logical_block_size(bdev);
27375 cat - <<_ACEOF >conftest.h
27380 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
27381 echo "obj-m := conftest.o" >build
/Makefile
27383 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
27384 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
27385 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27386 (eval $ac_try) 2>&5
27388 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27389 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
27390 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27391 (eval $ac_try) 2>&5
27393 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27394 test $ac_status = 0; }; }; then :
27396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27397 $as_echo "yes" >&6; }
27399 $as_echo "#define HAVE_BDEV_LOGICAL_BLOCK_SIZE 1" >>confdefs.h
27403 $as_echo "$as_me: failed program was:" >&5
27404 sed 's/^/| /' conftest.
$ac_ext >&5
27406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27407 $as_echo "no" >&6; }
27415 EXTRA_KCFLAGS
="$tmp_flags"
27418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether bdev_physical_block_size() is available" >&5
27419 $as_echo_n "checking whether bdev_physical_block_size() is available... " >&6; }
27420 tmp_flags
="$EXTRA_KCFLAGS"
27421 EXTRA_KCFLAGS
="${NO_UNUSED_BUT_SET_VARIABLE}"
27424 cat confdefs.h
- <<_ACEOF >conftest.c
27427 #include <linux/blkdev.h>
27433 struct block_device *bdev = NULL;
27434 bdev_physical_block_size(bdev);
27444 cat - <<_ACEOF >conftest.h
27449 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
27450 echo "obj-m := conftest.o" >build
/Makefile
27452 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
27453 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
27454 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27455 (eval $ac_try) 2>&5
27457 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27458 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
27459 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27460 (eval $ac_try) 2>&5
27462 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27463 test $ac_status = 0; }; }; then :
27465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27466 $as_echo "yes" >&6; }
27468 $as_echo "#define HAVE_BDEV_PHYSICAL_BLOCK_SIZE 1" >>confdefs.h
27472 $as_echo "$as_me: failed program was:" >&5
27473 sed 's/^/| /' conftest.
$ac_ext >&5
27475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27476 $as_echo "no" >&6; }
27484 EXTRA_KCFLAGS
="$tmp_flags"
27487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether bio has bi_iter" >&5
27488 $as_echo_n "checking whether bio has bi_iter... " >&6; }
27491 cat confdefs.h
- <<_ACEOF >conftest.c
27494 #include <linux/bio.h>
27501 bio.bi_iter.bi_sector = 0;
27511 cat - <<_ACEOF >conftest.h
27516 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
27517 echo "obj-m := conftest.o" >build
/Makefile
27519 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
27520 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
27521 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27522 (eval $ac_try) 2>&5
27524 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27525 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
27526 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27527 (eval $ac_try) 2>&5
27529 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27530 test $ac_status = 0; }; }; then :
27532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27533 $as_echo "yes" >&6; }
27535 $as_echo "#define HAVE_BIO_BVEC_ITER 1" >>confdefs.h
27539 $as_echo "$as_me: failed program was:" >&5
27540 sed 's/^/| /' conftest.
$ac_ext >&5
27542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27543 $as_echo "no" >&6; }
27553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether BIO_RW_FAILFAST_* are defined" >&5
27554 $as_echo_n "checking whether BIO_RW_FAILFAST_* are defined... " >&6; }
27557 cat confdefs.h
- <<_ACEOF >conftest.c
27560 #include <linux/bio.h>
27566 int flags __attribute__ ((unused));
27567 flags = ((1 << BIO_RW_FAILFAST_DEV) |
27568 (1 << BIO_RW_FAILFAST_TRANSPORT) |
27569 (1 << BIO_RW_FAILFAST_DRIVER));
27579 cat - <<_ACEOF >conftest.h
27584 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
27585 echo "obj-m := conftest.o" >build
/Makefile
27587 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
27588 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
27589 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27590 (eval $ac_try) 2>&5
27592 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27593 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
27594 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27595 (eval $ac_try) 2>&5
27597 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27598 test $ac_status = 0; }; }; then :
27600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27601 $as_echo "yes" >&6; }
27603 $as_echo "#define HAVE_BIO_RW_FAILFAST_DTD 1" >>confdefs.h
27607 $as_echo "$as_me: failed program was:" >&5
27608 sed 's/^/| /' conftest.
$ac_ext >&5
27610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27611 $as_echo "no" >&6; }
27621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether REQ_FAILFAST_MASK is defined" >&5
27622 $as_echo_n "checking whether REQ_FAILFAST_MASK is defined... " >&6; }
27625 cat confdefs.h
- <<_ACEOF >conftest.c
27628 #include <linux/bio.h>
27634 int flags __attribute__ ((unused));
27635 flags = REQ_FAILFAST_MASK;
27645 cat - <<_ACEOF >conftest.h
27650 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
27651 echo "obj-m := conftest.o" >build
/Makefile
27653 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
27654 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
27655 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27656 (eval $ac_try) 2>&5
27658 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27659 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
27660 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27661 (eval $ac_try) 2>&5
27663 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27664 test $ac_status = 0; }; }; then :
27666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27667 $as_echo "yes" >&6; }
27669 $as_echo "#define HAVE_REQ_FAILFAST_MASK 1" >>confdefs.h
27673 $as_echo "$as_me: failed program was:" >&5
27674 sed 's/^/| /' conftest.
$ac_ext >&5
27676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27677 $as_echo "no" >&6; }
27687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether REQ_OP_DISCARD is defined" >&5
27688 $as_echo_n "checking whether REQ_OP_DISCARD is defined... " >&6; }
27691 cat confdefs.h
- <<_ACEOF >conftest.c
27694 #include <linux/blk_types.h>
27700 int op __attribute__ ((unused)) = REQ_OP_DISCARD;
27710 cat - <<_ACEOF >conftest.h
27715 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
27716 echo "obj-m := conftest.o" >build
/Makefile
27718 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
27719 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
27720 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27721 (eval $ac_try) 2>&5
27723 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27724 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
27725 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27726 (eval $ac_try) 2>&5
27728 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27729 test $ac_status = 0; }; }; then :
27731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27732 $as_echo "yes" >&6; }
27734 $as_echo "#define HAVE_REQ_OP_DISCARD 1" >>confdefs.h
27738 $as_echo "$as_me: failed program was:" >&5
27739 sed 's/^/| /' conftest.
$ac_ext >&5
27741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27742 $as_echo "no" >&6; }
27752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether REQ_OP_SECURE_ERASE is defined" >&5
27753 $as_echo_n "checking whether REQ_OP_SECURE_ERASE is defined... " >&6; }
27756 cat confdefs.h
- <<_ACEOF >conftest.c
27759 #include <linux/blk_types.h>
27765 int op __attribute__ ((unused)) = REQ_OP_SECURE_ERASE;
27775 cat - <<_ACEOF >conftest.h
27780 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
27781 echo "obj-m := conftest.o" >build
/Makefile
27783 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
27784 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
27785 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27786 (eval $ac_try) 2>&5
27788 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27789 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
27790 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27791 (eval $ac_try) 2>&5
27793 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27794 test $ac_status = 0; }; }; then :
27796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27797 $as_echo "yes" >&6; }
27799 $as_echo "#define HAVE_REQ_OP_SECURE_ERASE 1" >>confdefs.h
27803 $as_echo "$as_me: failed program was:" >&5
27804 sed 's/^/| /' conftest.
$ac_ext >&5
27806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27807 $as_echo "no" >&6; }
27817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether REQ_OP_FLUSH is defined" >&5
27818 $as_echo_n "checking whether REQ_OP_FLUSH is defined... " >&6; }
27821 cat confdefs.h
- <<_ACEOF >conftest.c
27824 #include <linux/blk_types.h>
27830 int op __attribute__ ((unused)) = REQ_OP_FLUSH;
27840 cat - <<_ACEOF >conftest.h
27845 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
27846 echo "obj-m := conftest.o" >build
/Makefile
27848 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
27849 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
27850 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27851 (eval $ac_try) 2>&5
27853 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27854 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
27855 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27856 (eval $ac_try) 2>&5
27858 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27859 test $ac_status = 0; }; }; then :
27861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27862 $as_echo "yes" >&6; }
27864 $as_echo "#define HAVE_REQ_OP_FLUSH 1" >>confdefs.h
27868 $as_echo "$as_me: failed program was:" >&5
27869 sed 's/^/| /' conftest.
$ac_ext >&5
27871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27872 $as_echo "no" >&6; }
27882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether bio->bi_opf is defined" >&5
27883 $as_echo_n "checking whether bio->bi_opf is defined... " >&6; }
27886 cat confdefs.h
- <<_ACEOF >conftest.c
27889 #include <linux/bio.h>
27895 struct bio bio __attribute__ ((unused));
27906 cat - <<_ACEOF >conftest.h
27911 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
27912 echo "obj-m := conftest.o" >build
/Makefile
27914 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
27915 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
27916 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27917 (eval $ac_try) 2>&5
27919 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27920 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
27921 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27922 (eval $ac_try) 2>&5
27924 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27925 test $ac_status = 0; }; }; then :
27927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27928 $as_echo "yes" >&6; }
27930 $as_echo "#define HAVE_BIO_BI_OPF 1" >>confdefs.h
27934 $as_echo "$as_me: failed program was:" >&5
27935 sed 's/^/| /' conftest.
$ac_ext >&5
27937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27938 $as_echo "no" >&6; }
27948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether bio_end_io_t wants 1 arg" >&5
27949 $as_echo_n "checking whether bio_end_io_t wants 1 arg... " >&6; }
27952 cat confdefs.h
- <<_ACEOF >conftest.c
27955 #include <linux/bio.h>
27957 void wanted_end_io(struct bio *bio) { return; }
27959 bio_end_io_t *end_io __attribute__ ((unused)) = wanted_end_io;
27974 cat - <<_ACEOF >conftest.h
27979 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
27980 echo "obj-m := conftest.o" >build
/Makefile
27982 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
27983 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
27984 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27985 (eval $ac_try) 2>&5
27987 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27988 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
27989 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27990 (eval $ac_try) 2>&5
27992 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27993 test $ac_status = 0; }; }; then :
27995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27996 $as_echo "yes" >&6; }
27998 $as_echo "#define HAVE_1ARG_BIO_END_IO_T 1" >>confdefs.h
28002 $as_echo "$as_me: failed program was:" >&5
28003 sed 's/^/| /' conftest.
$ac_ext >&5
28005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28006 $as_echo "no" >&6; }
28016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether bio->bi_status exists" >&5
28017 $as_echo_n "checking whether bio->bi_status exists... " >&6; }
28020 cat confdefs.h
- <<_ACEOF >conftest.c
28023 #include <linux/bio.h>
28029 struct bio bio __attribute__ ((unused));
28030 blk_status_t status __attribute__ ((unused)) = BLK_STS_OK;
28032 bio.bi_status = status;
28042 cat - <<_ACEOF >conftest.h
28047 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
28048 echo "obj-m := conftest.o" >build
/Makefile
28050 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
28051 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
28052 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28053 (eval $ac_try) 2>&5
28055 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28056 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
28057 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28058 (eval $ac_try) 2>&5
28060 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28061 test $ac_status = 0; }; }; then :
28063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28064 $as_echo "yes" >&6; }
28066 $as_echo "#define HAVE_BIO_BI_STATUS 1" >>confdefs.h
28070 $as_echo "$as_me: failed program was:" >&5
28071 sed 's/^/| /' conftest.
$ac_ext >&5
28073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28074 $as_echo "no" >&6; }
28084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether BIO_RW_BARRIER is defined" >&5
28085 $as_echo_n "checking whether BIO_RW_BARRIER is defined... " >&6; }
28088 cat confdefs.h
- <<_ACEOF >conftest.c
28091 #include <linux/bio.h>
28097 int flags __attribute__ ((unused));
28098 flags = BIO_RW_BARRIER;
28108 cat - <<_ACEOF >conftest.h
28113 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
28114 echo "obj-m := conftest.o" >build
/Makefile
28116 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
28117 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
28118 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28119 (eval $ac_try) 2>&5
28121 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28122 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
28123 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28124 (eval $ac_try) 2>&5
28126 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28127 test $ac_status = 0; }; }; then :
28129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28130 $as_echo "yes" >&6; }
28132 $as_echo "#define HAVE_BIO_RW_BARRIER 1" >>confdefs.h
28136 $as_echo "$as_me: failed program was:" >&5
28137 sed 's/^/| /' conftest.
$ac_ext >&5
28139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28140 $as_echo "no" >&6; }
28150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether BIO_RW_DISCARD is defined" >&5
28151 $as_echo_n "checking whether BIO_RW_DISCARD is defined... " >&6; }
28154 cat confdefs.h
- <<_ACEOF >conftest.c
28157 #include <linux/bio.h>
28163 int flags __attribute__ ((unused));
28164 flags = BIO_RW_DISCARD;
28174 cat - <<_ACEOF >conftest.h
28179 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
28180 echo "obj-m := conftest.o" >build
/Makefile
28182 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
28183 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
28184 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28185 (eval $ac_try) 2>&5
28187 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28188 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
28189 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28190 (eval $ac_try) 2>&5
28192 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28193 test $ac_status = 0; }; }; then :
28195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28196 $as_echo "yes" >&6; }
28198 $as_echo "#define HAVE_BIO_RW_DISCARD 1" >>confdefs.h
28202 $as_echo "$as_me: failed program was:" >&5
28203 sed 's/^/| /' conftest.
$ac_ext >&5
28205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28206 $as_echo "no" >&6; }
28216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether blk_queue_flush() is available" >&5
28217 $as_echo_n "checking whether blk_queue_flush() is available... " >&6; }
28218 tmp_flags
="$EXTRA_KCFLAGS"
28219 EXTRA_KCFLAGS
="${NO_UNUSED_BUT_SET_VARIABLE}"
28222 cat confdefs.h
- <<_ACEOF >conftest.c
28225 #include <linux/blkdev.h>
28231 struct request_queue *q = NULL;
28232 (void) blk_queue_flush(q, REQ_FLUSH);
28242 cat - <<_ACEOF >conftest.h
28247 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
28248 echo "obj-m := conftest.o" >build
/Makefile
28250 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
28251 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
28252 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28253 (eval $ac_try) 2>&5
28255 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28256 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
28257 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28258 (eval $ac_try) 2>&5
28260 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28261 test $ac_status = 0; }; }; then :
28263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28264 $as_echo "yes" >&6; }
28266 $as_echo "#define HAVE_BLK_QUEUE_FLUSH 1" >>confdefs.h
28269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether blk_queue_flush() is GPL-only" >&5
28270 $as_echo_n "checking whether blk_queue_flush() is GPL-only... " >&6; }
28273 cat confdefs.h
- <<_ACEOF >conftest.c
28276 #include <linux/module.h>
28277 #include <linux/blkdev.h>
28279 MODULE_LICENSE("$ZFS_META_LICENSE");
28285 struct request_queue *q = NULL;
28286 (void) blk_queue_flush(q, REQ_FLUSH);
28296 cat - <<_ACEOF >conftest.h
28301 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
28302 echo "obj-m := conftest.o" >build
/Makefile
28304 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
28305 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
28306 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28307 (eval $ac_try) 2>&5
28309 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28310 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
28311 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28312 (eval $ac_try) 2>&5
28314 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28315 test $ac_status = 0; }; }; then :
28317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28318 $as_echo "no" >&6; }
28321 $as_echo "$as_me: failed program was:" >&5
28322 sed 's/^/| /' conftest.
$ac_ext >&5
28324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28325 $as_echo "yes" >&6; }
28327 $as_echo "#define HAVE_BLK_QUEUE_FLUSH_GPL_ONLY 1" >>confdefs.h
28338 $as_echo "$as_me: failed program was:" >&5
28339 sed 's/^/| /' conftest.
$ac_ext >&5
28341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28342 $as_echo "no" >&6; }
28351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether blk_queue_write_cache() exists" >&5
28352 $as_echo_n "checking whether blk_queue_write_cache() exists... " >&6; }
28355 cat confdefs.h
- <<_ACEOF >conftest.c
28358 #include <linux/kernel.h>
28359 #include <linux/blkdev.h>
28366 struct request_queue *q = NULL;
28367 blk_queue_write_cache(q, true, true);
28377 cat - <<_ACEOF >conftest.h
28382 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
28383 echo "obj-m := conftest.o" >build
/Makefile
28385 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
28386 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
28387 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28388 (eval $ac_try) 2>&5
28390 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28391 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
28392 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28393 (eval $ac_try) 2>&5
28395 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28396 test $ac_status = 0; }; }; then :
28398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28399 $as_echo "yes" >&6; }
28401 $as_echo "#define HAVE_BLK_QUEUE_WRITE_CACHE 1" >>confdefs.h
28404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether blk_queue_write_cache() is GPL-only" >&5
28405 $as_echo_n "checking whether blk_queue_write_cache() is GPL-only... " >&6; }
28408 cat confdefs.h
- <<_ACEOF >conftest.c
28411 #include <linux/kernel.h>
28412 #include <linux/module.h>
28413 #include <linux/blkdev.h>
28415 MODULE_LICENSE("$ZFS_META_LICENSE");
28421 struct request_queue *q = NULL;
28422 blk_queue_write_cache(q, true, true);
28432 cat - <<_ACEOF >conftest.h
28437 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
28438 echo "obj-m := conftest.o" >build
/Makefile
28440 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
28441 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
28442 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28443 (eval $ac_try) 2>&5
28445 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28446 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
28447 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28448 (eval $ac_try) 2>&5
28450 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28451 test $ac_status = 0; }; }; then :
28453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28454 $as_echo "no" >&6; }
28457 $as_echo "$as_me: failed program was:" >&5
28458 sed 's/^/| /' conftest.
$ac_ext >&5
28460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28461 $as_echo "yes" >&6; }
28463 $as_echo "#define HAVE_BLK_QUEUE_WRITE_CACHE_GPL_ONLY 1" >>confdefs.h
28474 $as_echo "$as_me: failed program was:" >&5
28475 sed 's/^/| /' conftest.
$ac_ext >&5
28477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28478 $as_echo "no" >&6; }
28487 EXTRA_KCFLAGS
="$tmp_flags"
28490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether blk_queue_max_hw_sectors() is available" >&5
28491 $as_echo_n "checking whether blk_queue_max_hw_sectors() is available... " >&6; }
28492 tmp_flags
="$EXTRA_KCFLAGS"
28493 EXTRA_KCFLAGS
="${NO_UNUSED_BUT_SET_VARIABLE}"
28496 cat confdefs.h
- <<_ACEOF >conftest.c
28499 #include <linux/blkdev.h>
28505 struct request_queue *q = NULL;
28506 (void) blk_queue_max_hw_sectors(q, BLK_SAFE_MAX_SECTORS);
28516 cat - <<_ACEOF >conftest.h
28521 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
28522 echo "obj-m := conftest.o" >build
/Makefile
28524 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
28525 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
28526 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28527 (eval $ac_try) 2>&5
28529 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28530 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
28531 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28532 (eval $ac_try) 2>&5
28534 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28535 test $ac_status = 0; }; }; then :
28537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28538 $as_echo "yes" >&6; }
28540 $as_echo "#define HAVE_BLK_QUEUE_MAX_HW_SECTORS 1" >>confdefs.h
28544 $as_echo "$as_me: failed program was:" >&5
28545 sed 's/^/| /' conftest.
$ac_ext >&5
28547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28548 $as_echo "no" >&6; }
28556 EXTRA_KCFLAGS
="$tmp_flags"
28559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether blk_queue_max_segments() is available" >&5
28560 $as_echo_n "checking whether blk_queue_max_segments() is available... " >&6; }
28561 tmp_flags
="$EXTRA_KCFLAGS"
28562 EXTRA_KCFLAGS
="${NO_UNUSED_BUT_SET_VARIABLE}"
28565 cat confdefs.h
- <<_ACEOF >conftest.c
28568 #include <linux/blkdev.h>
28574 struct request_queue *q = NULL;
28575 (void) blk_queue_max_segments(q, BLK_MAX_SEGMENTS);
28585 cat - <<_ACEOF >conftest.h
28590 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
28591 echo "obj-m := conftest.o" >build
/Makefile
28593 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
28594 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
28595 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28596 (eval $ac_try) 2>&5
28598 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28599 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
28600 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28601 (eval $ac_try) 2>&5
28603 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28604 test $ac_status = 0; }; }; then :
28606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28607 $as_echo "yes" >&6; }
28609 $as_echo "#define HAVE_BLK_QUEUE_MAX_SEGMENTS 1" >>confdefs.h
28613 $as_echo "$as_me: failed program was:" >&5
28614 sed 's/^/| /' conftest.
$ac_ext >&5
28616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28617 $as_echo "no" >&6; }
28625 EXTRA_KCFLAGS
="$tmp_flags"
28628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the BIO_RW_UNPLUG enum is available" >&5
28629 $as_echo_n "checking whether the BIO_RW_UNPLUG enum is available... " >&6; }
28630 tmp_flags
="$EXTRA_KCFLAGS"
28631 EXTRA_KCFLAGS
="${NO_UNUSED_BUT_SET_VARIABLE}"
28634 cat confdefs.h
- <<_ACEOF >conftest.c
28637 #include <linux/blkdev.h>
28643 extern enum bio_rw_flags rw;
28645 rw = BIO_RW_UNPLUG;
28655 cat - <<_ACEOF >conftest.h
28660 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
28661 echo "obj-m := conftest.o" >build
/Makefile
28663 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
28664 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
28665 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28666 (eval $ac_try) 2>&5
28668 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28669 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
28670 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28671 (eval $ac_try) 2>&5
28673 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28674 test $ac_status = 0; }; }; then :
28676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28677 $as_echo "yes" >&6; }
28679 $as_echo "#define HAVE_BLK_QUEUE_HAVE_BIO_RW_UNPLUG 1" >>confdefs.h
28683 $as_echo "$as_me: failed program was:" >&5
28684 sed 's/^/| /' conftest.
$ac_ext >&5
28686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28687 $as_echo "no" >&6; }
28695 EXTRA_KCFLAGS
="$tmp_flags"
28698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct blk_plug is available" >&5
28699 $as_echo_n "checking whether struct blk_plug is available... " >&6; }
28700 tmp_flags
="$EXTRA_KCFLAGS"
28701 EXTRA_KCFLAGS
="${NO_UNUSED_BUT_SET_VARIABLE}"
28704 cat confdefs.h
- <<_ACEOF >conftest.c
28707 #include <linux/blkdev.h>
28713 struct blk_plug plug;
28715 blk_start_plug(&plug);
28716 blk_finish_plug(&plug);
28726 cat - <<_ACEOF >conftest.h
28731 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
28732 echo "obj-m := conftest.o" >build
/Makefile
28734 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
28735 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
28736 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28737 (eval $ac_try) 2>&5
28739 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28740 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
28741 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28742 (eval $ac_try) 2>&5
28744 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28745 test $ac_status = 0; }; }; then :
28747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28748 $as_echo "yes" >&6; }
28750 $as_echo "#define HAVE_BLK_QUEUE_HAVE_BLK_PLUG 1" >>confdefs.h
28754 $as_echo "$as_me: failed program was:" >&5
28755 sed 's/^/| /' conftest.
$ac_ext >&5
28757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28758 $as_echo "no" >&6; }
28766 EXTRA_KCFLAGS
="$tmp_flags"
28769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether get_disk_ro() is available" >&5
28770 $as_echo_n "checking whether get_disk_ro() is available... " >&6; }
28771 tmp_flags
="$EXTRA_KCFLAGS"
28772 EXTRA_KCFLAGS
="${NO_UNUSED_BUT_SET_VARIABLE}"
28775 cat confdefs.h
- <<_ACEOF >conftest.c
28778 #include <linux/blkdev.h>
28784 struct gendisk *disk = NULL;
28785 (void) get_disk_ro(disk);
28795 cat - <<_ACEOF >conftest.h
28800 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
28801 echo "obj-m := conftest.o" >build
/Makefile
28803 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
28804 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
28805 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28806 (eval $ac_try) 2>&5
28808 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28809 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
28810 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28811 (eval $ac_try) 2>&5
28813 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28814 test $ac_status = 0; }; }; then :
28816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28817 $as_echo "yes" >&6; }
28819 $as_echo "#define HAVE_GET_DISK_RO 1" >>confdefs.h
28823 $as_echo "$as_me: failed program was:" >&5
28824 sed 's/^/| /' conftest.
$ac_ext >&5
28826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28827 $as_echo "no" >&6; }
28835 EXTRA_KCFLAGS
="$tmp_flags"
28837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether get_gendisk() is available" >&5
28838 $as_echo_n "checking whether get_gendisk() is available... " >&6; }
28842 cat confdefs.h
- <<_ACEOF >conftest.c
28845 #include <linux/genhd.h>
28851 get_gendisk(0, NULL);
28861 cat - <<_ACEOF >conftest.h
28866 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
28867 echo "obj-m := conftest.o" >build
/Makefile
28869 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
28870 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
28871 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28872 (eval $ac_try) 2>&5
28874 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28875 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
28876 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28877 (eval $ac_try) 2>&5
28879 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28880 test $ac_status = 0; }; }; then :
28883 $as_echo "$as_me: failed program was:" >&5
28884 sed 's/^/| /' conftest.
$ac_ext >&5
28892 if test $rc -ne 0; then :
28894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28895 $as_echo "no" >&6; }
28898 if test "x$enable_linux_builtin" != xyes
; then
28900 grep -q -E '[[:space:]]get_gendisk[[:space:]]' \
28901 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
28903 if test $rc -ne 0; then
28905 for file in block
/genhd.c
; do
28906 grep -q -E "EXPORT_SYMBOL.*(get_gendisk)" \
28907 "$LINUX/$file" 2>/dev
/null
28909 if test $rc -eq 0; then
28914 if test $export -eq 0; then :
28924 if test $rc -ne 0; then :
28926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28927 $as_echo "no" >&6; }
28931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28932 $as_echo "yes" >&6; }
28934 $as_echo "#define HAVE_GET_GENDISK 1" >>confdefs.h
28942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether bio_set_op_attrs is available" >&5
28943 $as_echo_n "checking whether bio_set_op_attrs is available... " >&6; }
28946 cat confdefs.h
- <<_ACEOF >conftest.c
28949 #include <linux/bio.h>
28955 struct bio *bio __attribute__ ((unused)) = NULL;
28957 bio_set_op_attrs(bio, 0, 0);
28967 cat - <<_ACEOF >conftest.h
28972 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
28973 echo "obj-m := conftest.o" >build
/Makefile
28975 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
28976 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
28977 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28978 (eval $ac_try) 2>&5
28980 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28981 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
28982 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28983 (eval $ac_try) 2>&5
28985 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28986 test $ac_status = 0; }; }; then :
28988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28989 $as_echo "yes" >&6; }
28991 $as_echo "#define HAVE_BIO_SET_OP_ATTRS 1" >>confdefs.h
28995 $as_echo "$as_me: failed program was:" >&5
28996 sed 's/^/| /' conftest.
$ac_ext >&5
28998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28999 $as_echo "no" >&6; }
29009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether generic_readlink is global" >&5
29010 $as_echo_n "checking whether generic_readlink is global... " >&6; }
29013 cat confdefs.h
- <<_ACEOF >conftest.c
29016 #include <linux/fs.h>
29022 int i __attribute__ ((unused));
29024 i = generic_readlink(NULL, NULL, 0);
29034 cat - <<_ACEOF >conftest.h
29039 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
29040 echo "obj-m := conftest.o" >build
/Makefile
29042 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
29043 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
29044 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29045 (eval $ac_try) 2>&5
29047 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29048 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
29049 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29050 (eval $ac_try) 2>&5
29052 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29053 test $ac_status = 0; }; }; then :
29055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29056 $as_echo "yes" >&6; }
29058 $as_echo "#define HAVE_GENERIC_READLINK 1" >>confdefs.h
29062 $as_echo "$as_me: failed program was:" >&5
29063 sed 's/^/| /' conftest.
$ac_ext >&5
29065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29066 $as_echo "no" >&6; }
29076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ql->discard_granularity is available" >&5
29077 $as_echo_n "checking whether ql->discard_granularity is available... " >&6; }
29080 cat confdefs.h
- <<_ACEOF >conftest.c
29083 #include <linux/blkdev.h>
29089 struct queue_limits ql __attribute__ ((unused));
29091 ql.discard_granularity = 0;
29101 cat - <<_ACEOF >conftest.h
29106 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
29107 echo "obj-m := conftest.o" >build
/Makefile
29109 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
29110 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
29111 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29112 (eval $ac_try) 2>&5
29114 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29115 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
29116 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29117 (eval $ac_try) 2>&5
29119 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29120 test $ac_status = 0; }; }; then :
29122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29123 $as_echo "yes" >&6; }
29125 $as_echo "#define HAVE_DISCARD_GRANULARITY 1" >>confdefs.h
29129 $as_echo "$as_me: failed program was:" >&5
29130 sed 's/^/| /' conftest.
$ac_ext >&5
29132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29133 $as_echo "no" >&6; }
29143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether super_block uses const struct xattr_handler" >&5
29144 $as_echo_n "checking whether super_block uses const struct xattr_handler... " >&6; }
29147 cat confdefs.h
- <<_ACEOF >conftest.c
29150 #include <linux/fs.h>
29151 #include <linux/xattr.h>
29153 const struct xattr_handler xattr_test_handler = {
29159 const struct xattr_handler *xattr_handlers[] = {
29160 &xattr_test_handler,
29163 const struct super_block sb __attribute__ ((unused)) = {
29164 .s_xattr = xattr_handlers,
29180 cat - <<_ACEOF >conftest.h
29185 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
29186 echo "obj-m := conftest.o" >build
/Makefile
29188 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
29189 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
29190 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29191 (eval $ac_try) 2>&5
29193 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29194 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
29195 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29196 (eval $ac_try) 2>&5
29198 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29199 test $ac_status = 0; }; }; then :
29201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29202 $as_echo "yes" >&6; }
29204 $as_echo "#define HAVE_CONST_XATTR_HANDLER 1" >>confdefs.h
29208 $as_echo "$as_me: failed program was:" >&5
29209 sed 's/^/| /' conftest.
$ac_ext >&5
29211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29212 $as_echo "no" >&6; }
29222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether xattr_handler has name" >&5
29223 $as_echo_n "checking whether xattr_handler has name... " >&6; }
29226 cat confdefs.h
- <<_ACEOF >conftest.c
29229 #include <linux/xattr.h>
29231 static const struct xattr_handler
29232 xops __attribute__ ((unused)) = {
29233 .name = XATTR_NAME_POSIX_ACL_ACCESS,
29249 cat - <<_ACEOF >conftest.h
29254 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
29255 echo "obj-m := conftest.o" >build
/Makefile
29257 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
29258 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
29259 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29260 (eval $ac_try) 2>&5
29262 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29263 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
29264 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29265 (eval $ac_try) 2>&5
29267 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29268 test $ac_status = 0; }; }; then :
29270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29271 $as_echo "yes" >&6; }
29273 $as_echo "#define HAVE_XATTR_HANDLER_NAME 1" >>confdefs.h
29277 $as_echo "$as_me: failed program was:" >&5
29278 sed 's/^/| /' conftest.
$ac_ext >&5
29280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29281 $as_echo "no" >&6; }
29291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether xattr_handler->get() wants both dentry and inode" >&5
29292 $as_echo_n "checking whether xattr_handler->get() wants both dentry and inode... " >&6; }
29295 cat confdefs.h
- <<_ACEOF >conftest.c
29298 #include <linux/xattr.h>
29300 int get(const struct xattr_handler *handler,
29301 struct dentry *dentry, struct inode *inode,
29302 const char *name, void *buffer, size_t size) { return 0; }
29303 static const struct xattr_handler
29304 xops __attribute__ ((unused)) = {
29321 cat - <<_ACEOF >conftest.h
29326 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
29327 echo "obj-m := conftest.o" >build
/Makefile
29329 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
29330 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
29331 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29332 (eval $ac_try) 2>&5
29334 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29335 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
29336 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29337 (eval $ac_try) 2>&5
29339 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29340 test $ac_status = 0; }; }; then :
29342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29343 $as_echo "yes" >&6; }
29345 $as_echo "#define HAVE_XATTR_GET_DENTRY_INODE 1" >>confdefs.h
29349 $as_echo "$as_me: failed program was:" >&5
29350 sed 's/^/| /' conftest.
$ac_ext >&5
29352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether xattr_handler->get() wants xattr_handler" >&5
29353 $as_echo_n "checking whether xattr_handler->get() wants xattr_handler... " >&6; }
29356 cat confdefs.h
- <<_ACEOF >conftest.c
29359 #include <linux/xattr.h>
29361 int get(const struct xattr_handler *handler,
29362 struct dentry *dentry, const char *name,
29363 void *buffer, size_t size) { return 0; }
29364 static const struct xattr_handler
29365 xops __attribute__ ((unused)) = {
29382 cat - <<_ACEOF >conftest.h
29387 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
29388 echo "obj-m := conftest.o" >build
/Makefile
29390 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
29391 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
29392 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29393 (eval $ac_try) 2>&5
29395 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29396 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
29397 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29398 (eval $ac_try) 2>&5
29400 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29401 test $ac_status = 0; }; }; then :
29403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29404 $as_echo "yes" >&6; }
29406 $as_echo "#define HAVE_XATTR_GET_HANDLER 1" >>confdefs.h
29410 $as_echo "$as_me: failed program was:" >&5
29411 sed 's/^/| /' conftest.
$ac_ext >&5
29413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29414 $as_echo "no" >&6; }
29415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether xattr_handler->get() wants dentry" >&5
29416 $as_echo_n "checking whether xattr_handler->get() wants dentry... " >&6; }
29419 cat confdefs.h
- <<_ACEOF >conftest.c
29422 #include <linux/xattr.h>
29424 int get(struct dentry *dentry, const char *name,
29425 void *buffer, size_t size, int handler_flags)
29427 static const struct xattr_handler
29428 xops __attribute__ ((unused)) = {
29445 cat - <<_ACEOF >conftest.h
29450 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
29451 echo "obj-m := conftest.o" >build
/Makefile
29453 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
29454 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
29455 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29456 (eval $ac_try) 2>&5
29458 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29459 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
29460 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29461 (eval $ac_try) 2>&5
29463 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29464 test $ac_status = 0; }; }; then :
29466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29467 $as_echo "yes" >&6; }
29469 $as_echo "#define HAVE_XATTR_GET_DENTRY 1" >>confdefs.h
29473 $as_echo "$as_me: failed program was:" >&5
29474 sed 's/^/| /' conftest.
$ac_ext >&5
29476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29477 $as_echo "no" >&6; }
29478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether xattr_handler->get() wants inode" >&5
29479 $as_echo_n "checking whether xattr_handler->get() wants inode... " >&6; }
29482 cat confdefs.h
- <<_ACEOF >conftest.c
29485 #include <linux/xattr.h>
29487 int get(struct inode *ip, const char *name,
29488 void *buffer, size_t size) { return 0; }
29489 static const struct xattr_handler
29490 xops __attribute__ ((unused)) = {
29507 cat - <<_ACEOF >conftest.h
29512 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
29513 echo "obj-m := conftest.o" >build
/Makefile
29515 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
29516 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
29517 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29518 (eval $ac_try) 2>&5
29520 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29521 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
29522 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29523 (eval $ac_try) 2>&5
29525 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29526 test $ac_status = 0; }; }; then :
29528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29529 $as_echo "yes" >&6; }
29531 $as_echo "#define HAVE_XATTR_GET_INODE 1" >>confdefs.h
29535 $as_echo "$as_me: failed program was:" >&5
29536 sed 's/^/| /' conftest.
$ac_ext >&5
29538 as_fn_error $?
"no; please file a bug report" "$LINENO" 5
29569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether xattr_handler->set() wants both dentry and inode" >&5
29570 $as_echo_n "checking whether xattr_handler->set() wants both dentry and inode... " >&6; }
29573 cat confdefs.h
- <<_ACEOF >conftest.c
29576 #include <linux/xattr.h>
29578 int set(const struct xattr_handler *handler,
29579 struct dentry *dentry, struct inode *inode,
29580 const char *name, const void *buffer,
29581 size_t size, int flags)
29583 static const struct xattr_handler
29584 xops __attribute__ ((unused)) = {
29601 cat - <<_ACEOF >conftest.h
29606 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
29607 echo "obj-m := conftest.o" >build
/Makefile
29609 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
29610 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
29611 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29612 (eval $ac_try) 2>&5
29614 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29615 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
29616 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29617 (eval $ac_try) 2>&5
29619 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29620 test $ac_status = 0; }; }; then :
29622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29623 $as_echo "yes" >&6; }
29625 $as_echo "#define HAVE_XATTR_SET_DENTRY_INODE 1" >>confdefs.h
29629 $as_echo "$as_me: failed program was:" >&5
29630 sed 's/^/| /' conftest.
$ac_ext >&5
29632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether xattr_handler->set() wants xattr_handler" >&5
29633 $as_echo_n "checking whether xattr_handler->set() wants xattr_handler... " >&6; }
29636 cat confdefs.h
- <<_ACEOF >conftest.c
29639 #include <linux/xattr.h>
29641 int set(const struct xattr_handler *handler,
29642 struct dentry *dentry, const char *name,
29643 const void *buffer, size_t size, int flags)
29645 static const struct xattr_handler
29646 xops __attribute__ ((unused)) = {
29663 cat - <<_ACEOF >conftest.h
29668 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
29669 echo "obj-m := conftest.o" >build
/Makefile
29671 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
29672 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
29673 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29674 (eval $ac_try) 2>&5
29676 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29677 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
29678 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29679 (eval $ac_try) 2>&5
29681 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29682 test $ac_status = 0; }; }; then :
29684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29685 $as_echo "yes" >&6; }
29687 $as_echo "#define HAVE_XATTR_SET_HANDLER 1" >>confdefs.h
29691 $as_echo "$as_me: failed program was:" >&5
29692 sed 's/^/| /' conftest.
$ac_ext >&5
29694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29695 $as_echo "no" >&6; }
29696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether xattr_handler->set() wants dentry" >&5
29697 $as_echo_n "checking whether xattr_handler->set() wants dentry... " >&6; }
29700 cat confdefs.h
- <<_ACEOF >conftest.c
29703 #include <linux/xattr.h>
29705 int set(struct dentry *dentry, const char *name,
29706 const void *buffer, size_t size, int flags,
29707 int handler_flags) { return 0; }
29708 static const struct xattr_handler
29709 xops __attribute__ ((unused)) = {
29726 cat - <<_ACEOF >conftest.h
29731 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
29732 echo "obj-m := conftest.o" >build
/Makefile
29734 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
29735 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
29736 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29737 (eval $ac_try) 2>&5
29739 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29740 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
29741 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29742 (eval $ac_try) 2>&5
29744 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29745 test $ac_status = 0; }; }; then :
29747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29748 $as_echo "yes" >&6; }
29750 $as_echo "#define HAVE_XATTR_SET_DENTRY 1" >>confdefs.h
29754 $as_echo "$as_me: failed program was:" >&5
29755 sed 's/^/| /' conftest.
$ac_ext >&5
29757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29758 $as_echo "no" >&6; }
29759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether xattr_handler->set() wants inode" >&5
29760 $as_echo_n "checking whether xattr_handler->set() wants inode... " >&6; }
29763 cat confdefs.h
- <<_ACEOF >conftest.c
29766 #include <linux/xattr.h>
29768 int set(struct inode *ip, const char *name,
29769 const void *buffer, size_t size, int flags)
29771 static const struct xattr_handler
29772 xops __attribute__ ((unused)) = {
29789 cat - <<_ACEOF >conftest.h
29794 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
29795 echo "obj-m := conftest.o" >build
/Makefile
29797 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
29798 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
29799 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29800 (eval $ac_try) 2>&5
29802 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29803 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
29804 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29805 (eval $ac_try) 2>&5
29807 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29808 test $ac_status = 0; }; }; then :
29810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29811 $as_echo "yes" >&6; }
29813 $as_echo "#define HAVE_XATTR_SET_INODE 1" >>confdefs.h
29817 $as_echo "$as_me: failed program was:" >&5
29818 sed 's/^/| /' conftest.
$ac_ext >&5
29820 as_fn_error $?
"no; please file a bug report" "$LINENO" 5
29851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether xattr_handler->list() wants simple" >&5
29852 $as_echo_n "checking whether xattr_handler->list() wants simple... " >&6; }
29855 cat confdefs.h
- <<_ACEOF >conftest.c
29858 #include <linux/xattr.h>
29860 bool list(struct dentry *dentry) { return 0; }
29861 static const struct xattr_handler
29862 xops __attribute__ ((unused)) = {
29879 cat - <<_ACEOF >conftest.h
29884 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
29885 echo "obj-m := conftest.o" >build
/Makefile
29887 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
29888 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
29889 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29890 (eval $ac_try) 2>&5
29892 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29893 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
29894 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29895 (eval $ac_try) 2>&5
29897 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29898 test $ac_status = 0; }; }; then :
29900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29901 $as_echo "yes" >&6; }
29903 $as_echo "#define HAVE_XATTR_LIST_SIMPLE 1" >>confdefs.h
29907 $as_echo "$as_me: failed program was:" >&5
29908 sed 's/^/| /' conftest.
$ac_ext >&5
29910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29911 $as_echo "no" >&6; }
29912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether xattr_handler->list() wants xattr_handler" >&5
29913 $as_echo_n "checking whether xattr_handler->list() wants xattr_handler... " >&6; }
29916 cat confdefs.h
- <<_ACEOF >conftest.c
29919 #include <linux/xattr.h>
29921 size_t list(const struct xattr_handler *handler,
29922 struct dentry *dentry, char *list, size_t list_size,
29923 const char *name, size_t name_len) { return 0; }
29924 static const struct xattr_handler
29925 xops __attribute__ ((unused)) = {
29942 cat - <<_ACEOF >conftest.h
29947 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
29948 echo "obj-m := conftest.o" >build
/Makefile
29950 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
29951 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
29952 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29953 (eval $ac_try) 2>&5
29955 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29956 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
29957 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29958 (eval $ac_try) 2>&5
29960 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29961 test $ac_status = 0; }; }; then :
29963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29964 $as_echo "yes" >&6; }
29966 $as_echo "#define HAVE_XATTR_LIST_HANDLER 1" >>confdefs.h
29970 $as_echo "$as_me: failed program was:" >&5
29971 sed 's/^/| /' conftest.
$ac_ext >&5
29973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29974 $as_echo "no" >&6; }
29975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether xattr_handler->list() wants dentry" >&5
29976 $as_echo_n "checking whether xattr_handler->list() wants dentry... " >&6; }
29979 cat confdefs.h
- <<_ACEOF >conftest.c
29982 #include <linux/xattr.h>
29984 size_t list(struct dentry *dentry,
29985 char *list, size_t list_size,
29986 const char *name, size_t name_len,
29987 int handler_flags) { return 0; }
29988 static const struct xattr_handler
29989 xops __attribute__ ((unused)) = {
30006 cat - <<_ACEOF >conftest.h
30011 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
30012 echo "obj-m := conftest.o" >build
/Makefile
30014 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
30015 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
30016 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30017 (eval $ac_try) 2>&5
30019 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30020 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
30021 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30022 (eval $ac_try) 2>&5
30024 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30025 test $ac_status = 0; }; }; then :
30027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30028 $as_echo "yes" >&6; }
30030 $as_echo "#define HAVE_XATTR_LIST_DENTRY 1" >>confdefs.h
30034 $as_echo "$as_me: failed program was:" >&5
30035 sed 's/^/| /' conftest.
$ac_ext >&5
30037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30038 $as_echo "no" >&6; }
30039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether xattr_handler->list() wants inode" >&5
30040 $as_echo_n "checking whether xattr_handler->list() wants inode... " >&6; }
30043 cat confdefs.h
- <<_ACEOF >conftest.c
30046 #include <linux/xattr.h>
30048 size_t list(struct inode *ip, char *lst,
30049 size_t list_size, const char *name,
30050 size_t name_len) { return 0; }
30051 static const struct xattr_handler
30052 xops __attribute__ ((unused)) = {
30069 cat - <<_ACEOF >conftest.h
30074 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
30075 echo "obj-m := conftest.o" >build
/Makefile
30077 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
30078 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
30079 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30080 (eval $ac_try) 2>&5
30082 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30083 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
30084 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30085 (eval $ac_try) 2>&5
30087 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30088 test $ac_status = 0; }; }; then :
30090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30091 $as_echo "yes" >&6; }
30093 $as_echo "#define HAVE_XATTR_LIST_INODE 1" >>confdefs.h
30097 $as_echo "$as_me: failed program was:" >&5
30098 sed 's/^/| /' conftest.
$ac_ext >&5
30100 as_fn_error $?
"no; please file a bug report" "$LINENO" 5
30131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether inode_owner_or_capable() exists" >&5
30132 $as_echo_n "checking whether inode_owner_or_capable() exists... " >&6; }
30135 cat confdefs.h
- <<_ACEOF >conftest.c
30138 #include <linux/fs.h>
30144 struct inode *ip = NULL;
30145 (void) inode_owner_or_capable(ip);
30155 cat - <<_ACEOF >conftest.h
30160 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
30161 echo "obj-m := conftest.o" >build
/Makefile
30163 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
30164 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
30165 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30166 (eval $ac_try) 2>&5
30168 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30169 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
30170 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30171 (eval $ac_try) 2>&5
30173 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30174 test $ac_status = 0; }; }; then :
30176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30177 $as_echo "yes" >&6; }
30179 $as_echo "#define HAVE_INODE_OWNER_OR_CAPABLE 1" >>confdefs.h
30183 $as_echo "$as_me: failed program was:" >&5
30184 sed 's/^/| /' conftest.
$ac_ext >&5
30186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30187 $as_echo "no" >&6; }
30188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether is_owner_or_cap() exists" >&5
30189 $as_echo_n "checking whether is_owner_or_cap() exists... " >&6; }
30192 cat confdefs.h
- <<_ACEOF >conftest.c
30195 #include <linux/fs.h>
30196 #include <linux/sched.h>
30202 struct inode *ip = NULL;
30203 (void) is_owner_or_cap(ip);
30213 cat - <<_ACEOF >conftest.h
30218 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
30219 echo "obj-m := conftest.o" >build
/Makefile
30221 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
30222 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
30223 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30224 (eval $ac_try) 2>&5
30226 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30227 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
30228 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30229 (eval $ac_try) 2>&5
30231 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30232 test $ac_status = 0; }; }; then :
30234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30235 $as_echo "yes" >&6; }
30237 $as_echo "#define HAVE_IS_OWNER_OR_CAP 1" >>confdefs.h
30241 $as_echo "$as_me: failed program was:" >&5
30242 sed 's/^/| /' conftest.
$ac_ext >&5
30244 as_fn_error $?
"no - Please file a bug report at
30245 https://github.com/zfsonlinux/zfs/issues/new" "$LINENO" 5
30262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether posix_acl_from_xattr() needs user_ns" >&5
30263 $as_echo_n "checking whether posix_acl_from_xattr() needs user_ns... " >&6; }
30266 cat confdefs.h
- <<_ACEOF >conftest.c
30269 #include <linux/cred.h>
30270 #include <linux/fs.h>
30271 #include <linux/posix_acl_xattr.h>
30277 posix_acl_from_xattr(&init_user_ns, NULL, 0);
30287 cat - <<_ACEOF >conftest.h
30292 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
30293 echo "obj-m := conftest.o" >build
/Makefile
30295 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
30296 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
30297 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30298 (eval $ac_try) 2>&5
30300 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30301 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
30302 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30303 (eval $ac_try) 2>&5
30305 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30306 test $ac_status = 0; }; }; then :
30308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30309 $as_echo "yes" >&6; }
30311 $as_echo "#define HAVE_POSIX_ACL_FROM_XATTR_USERNS 1" >>confdefs.h
30315 $as_echo "$as_me: failed program was:" >&5
30316 sed 's/^/| /' conftest.
$ac_ext >&5
30318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30319 $as_echo "no" >&6; }
30329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether posix_acl_release() is available" >&5
30330 $as_echo_n "checking whether posix_acl_release() is available... " >&6; }
30333 cat confdefs.h
- <<_ACEOF >conftest.c
30336 #include <linux/cred.h>
30337 #include <linux/fs.h>
30338 #include <linux/posix_acl.h>
30344 struct posix_acl* tmp = posix_acl_alloc(1, 0);
30345 posix_acl_release(tmp);
30355 cat - <<_ACEOF >conftest.h
30360 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
30361 echo "obj-m := conftest.o" >build
/Makefile
30363 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
30364 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
30365 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30366 (eval $ac_try) 2>&5
30368 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30369 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
30370 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30371 (eval $ac_try) 2>&5
30373 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30374 test $ac_status = 0; }; }; then :
30376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30377 $as_echo "yes" >&6; }
30379 $as_echo "#define HAVE_POSIX_ACL_RELEASE 1" >>confdefs.h
30383 $as_echo "$as_me: failed program was:" >&5
30384 sed 's/^/| /' conftest.
$ac_ext >&5
30386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30387 $as_echo "no" >&6; }
30396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether posix_acl_release() is GPL-only" >&5
30397 $as_echo_n "checking whether posix_acl_release() is GPL-only... " >&6; }
30400 cat confdefs.h
- <<_ACEOF >conftest.c
30403 #include <linux/cred.h>
30404 #include <linux/fs.h>
30405 #include <linux/posix_acl.h>
30407 MODULE_LICENSE("$ZFS_META_LICENSE");
30413 struct posix_acl* tmp = posix_acl_alloc(1, 0);
30414 posix_acl_release(tmp);
30424 cat - <<_ACEOF >conftest.h
30429 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
30430 echo "obj-m := conftest.o" >build
/Makefile
30432 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
30433 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
30434 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30435 (eval $ac_try) 2>&5
30437 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30438 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
30439 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30440 (eval $ac_try) 2>&5
30442 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30443 test $ac_status = 0; }; }; then :
30445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30446 $as_echo "no" >&6; }
30449 $as_echo "$as_me: failed program was:" >&5
30450 sed 's/^/| /' conftest.
$ac_ext >&5
30452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30453 $as_echo "yes" >&6; }
30455 $as_echo "#define HAVE_POSIX_ACL_RELEASE_GPL_ONLY 1" >>confdefs.h
30466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether set_cached_acl() is usable" >&5
30467 $as_echo_n "checking whether set_cached_acl() is usable... " >&6; }
30470 cat confdefs.h
- <<_ACEOF >conftest.c
30473 #include <linux/module.h>
30474 #include <linux/cred.h>
30475 #include <linux/fs.h>
30476 #include <linux/posix_acl.h>
30478 MODULE_LICENSE("$ZFS_META_LICENSE");
30484 struct inode *ip = NULL;
30485 struct posix_acl *acl = posix_acl_alloc(1, 0);
30486 set_cached_acl(ip, ACL_TYPE_ACCESS, acl);
30487 forget_cached_acl(ip, ACL_TYPE_ACCESS);
30497 cat - <<_ACEOF >conftest.h
30502 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
30503 echo "obj-m := conftest.o" >build
/Makefile
30505 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
30506 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
30507 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30508 (eval $ac_try) 2>&5
30510 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30511 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
30512 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30513 (eval $ac_try) 2>&5
30515 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30516 test $ac_status = 0; }; }; then :
30518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30519 $as_echo "yes" >&6; }
30521 $as_echo "#define HAVE_SET_CACHED_ACL_USABLE 1" >>confdefs.h
30525 $as_echo "$as_me: failed program was:" >&5
30526 sed 's/^/| /' conftest.
$ac_ext >&5
30528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30529 $as_echo "no" >&6; }
30539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether posix_acl_chmod exists" >&5
30540 $as_echo_n "checking whether posix_acl_chmod exists... " >&6; }
30543 cat confdefs.h
- <<_ACEOF >conftest.c
30546 #include <linux/fs.h>
30547 #include <linux/posix_acl.h>
30553 posix_acl_chmod(NULL, 0, 0)
30563 cat - <<_ACEOF >conftest.h
30568 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
30569 echo "obj-m := conftest.o" >build
/Makefile
30571 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
30572 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
30573 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30574 (eval $ac_try) 2>&5
30576 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30577 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
30578 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30579 (eval $ac_try) 2>&5
30581 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30582 test $ac_status = 0; }; }; then :
30584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30585 $as_echo "yes" >&6; }
30587 $as_echo "#define HAVE_POSIX_ACL_CHMOD 1" >>confdefs.h
30591 $as_echo "$as_me: failed program was:" >&5
30592 sed 's/^/| /' conftest.
$ac_ext >&5
30594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30595 $as_echo "no" >&6; }
30604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __posix_acl_chmod exists" >&5
30605 $as_echo_n "checking whether __posix_acl_chmod exists... " >&6; }
30608 cat confdefs.h
- <<_ACEOF >conftest.c
30611 #include <linux/fs.h>
30612 #include <linux/posix_acl.h>
30618 __posix_acl_chmod(NULL, 0, 0)
30628 cat - <<_ACEOF >conftest.h
30633 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
30634 echo "obj-m := conftest.o" >build
/Makefile
30636 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
30637 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
30638 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30639 (eval $ac_try) 2>&5
30641 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30642 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
30643 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30644 (eval $ac_try) 2>&5
30646 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30647 test $ac_status = 0; }; }; then :
30649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30650 $as_echo "yes" >&6; }
30652 $as_echo "#define HAVE___POSIX_ACL_CHMOD 1" >>confdefs.h
30656 $as_echo "$as_me: failed program was:" >&5
30657 sed 's/^/| /' conftest.
$ac_ext >&5
30659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30660 $as_echo "no" >&6; }
30670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether posix_acl_equiv_mode() wants umode_t" >&5
30671 $as_echo_n "checking whether posix_acl_equiv_mode() wants umode_t... " >&6; }
30674 cat confdefs.h
- <<_ACEOF >conftest.c
30677 #include <linux/fs.h>
30678 #include <linux/posix_acl.h>
30685 posix_acl_equiv_mode(NULL,&tmp);
30695 cat - <<_ACEOF >conftest.h
30700 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
30701 echo "obj-m := conftest.o" >build
/Makefile
30703 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
30704 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
30705 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30706 (eval $ac_try) 2>&5
30708 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30709 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
30710 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30711 (eval $ac_try) 2>&5
30713 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30714 test $ac_status = 0; }; }; then :
30716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30717 $as_echo "yes" >&6; }
30719 $as_echo "#define HAVE_POSIX_ACL_EQUIV_MODE_UMODE_T 1" >>confdefs.h
30723 $as_echo "$as_me: failed program was:" >&5
30724 sed 's/^/| /' conftest.
$ac_ext >&5
30726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30727 $as_echo "no" >&6; }
30737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether posix_acl_valid() wants user namespace" >&5
30738 $as_echo_n "checking whether posix_acl_valid() wants user namespace... " >&6; }
30741 cat confdefs.h
- <<_ACEOF >conftest.c
30744 #include <linux/fs.h>
30745 #include <linux/posix_acl.h>
30751 struct user_namespace *user_ns = NULL;
30752 const struct posix_acl *acl = NULL;
30755 error = posix_acl_valid(user_ns, acl);
30765 cat - <<_ACEOF >conftest.h
30770 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
30771 echo "obj-m := conftest.o" >build
/Makefile
30773 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
30774 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
30775 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30776 (eval $ac_try) 2>&5
30778 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30779 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
30780 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30781 (eval $ac_try) 2>&5
30783 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30784 test $ac_status = 0; }; }; then :
30786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30787 $as_echo "yes" >&6; }
30789 $as_echo "#define HAVE_POSIX_ACL_VALID_WITH_NS 1" >>confdefs.h
30793 $as_echo "$as_me: failed program was:" >&5
30794 sed 's/^/| /' conftest.
$ac_ext >&5
30796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30797 $as_echo "no" >&6; }
30807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->permission() exists" >&5
30808 $as_echo_n "checking whether iops->permission() exists... " >&6; }
30811 cat confdefs.h
- <<_ACEOF >conftest.c
30814 #include <linux/fs.h>
30816 int permission_fn(struct inode *inode, int mask) { return 0; }
30818 static const struct inode_operations
30819 iops __attribute__ ((unused)) = {
30820 .permission = permission_fn,
30836 cat - <<_ACEOF >conftest.h
30841 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
30842 echo "obj-m := conftest.o" >build
/Makefile
30844 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
30845 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
30846 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30847 (eval $ac_try) 2>&5
30849 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30850 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
30851 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30852 (eval $ac_try) 2>&5
30854 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30855 test $ac_status = 0; }; }; then :
30857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30858 $as_echo "yes" >&6; }
30860 $as_echo "#define HAVE_PERMISSION 1" >>confdefs.h
30864 $as_echo "$as_me: failed program was:" >&5
30865 sed 's/^/| /' conftest.
$ac_ext >&5
30867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30868 $as_echo "no" >&6; }
30878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->permission() wants nameidata" >&5
30879 $as_echo_n "checking whether iops->permission() wants nameidata... " >&6; }
30882 cat confdefs.h
- <<_ACEOF >conftest.c
30885 #include <linux/fs.h>
30887 int permission_fn(struct inode *inode, int mask,
30888 struct nameidata *nd) { return 0; }
30890 static const struct inode_operations
30891 iops __attribute__ ((unused)) = {
30892 .permission = permission_fn,
30908 cat - <<_ACEOF >conftest.h
30913 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
30914 echo "obj-m := conftest.o" >build
/Makefile
30916 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
30917 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
30918 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30919 (eval $ac_try) 2>&5
30921 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30922 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
30923 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30924 (eval $ac_try) 2>&5
30926 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30927 test $ac_status = 0; }; }; then :
30929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30930 $as_echo "yes" >&6; }
30932 $as_echo "#define HAVE_PERMISSION 1" >>confdefs.h
30935 $as_echo "#define HAVE_PERMISSION_WITH_NAMEIDATA 1" >>confdefs.h
30939 $as_echo "$as_me: failed program was:" >&5
30940 sed 's/^/| /' conftest.
$ac_ext >&5
30942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30943 $as_echo "no" >&6; }
30953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->check_acl() exists" >&5
30954 $as_echo_n "checking whether iops->check_acl() exists... " >&6; }
30957 cat confdefs.h
- <<_ACEOF >conftest.c
30960 #include <linux/fs.h>
30962 int check_acl_fn(struct inode *inode, int mask) { return 0; }
30964 static const struct inode_operations
30965 iops __attribute__ ((unused)) = {
30966 .check_acl = check_acl_fn,
30982 cat - <<_ACEOF >conftest.h
30987 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
30988 echo "obj-m := conftest.o" >build
/Makefile
30990 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
30991 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
30992 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30993 (eval $ac_try) 2>&5
30995 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30996 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
30997 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30998 (eval $ac_try) 2>&5
31000 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31001 test $ac_status = 0; }; }; then :
31003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31004 $as_echo "yes" >&6; }
31006 $as_echo "#define HAVE_CHECK_ACL 1" >>confdefs.h
31010 $as_echo "$as_me: failed program was:" >&5
31011 sed 's/^/| /' conftest.
$ac_ext >&5
31013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31014 $as_echo "no" >&6; }
31024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->check_acl() wants flags" >&5
31025 $as_echo_n "checking whether iops->check_acl() wants flags... " >&6; }
31028 cat confdefs.h
- <<_ACEOF >conftest.c
31031 #include <linux/fs.h>
31033 int check_acl_fn(struct inode *inode, int mask,
31034 unsigned int flags) { return 0; }
31036 static const struct inode_operations
31037 iops __attribute__ ((unused)) = {
31038 .check_acl = check_acl_fn,
31054 cat - <<_ACEOF >conftest.h
31059 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
31060 echo "obj-m := conftest.o" >build
/Makefile
31062 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
31063 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
31064 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31065 (eval $ac_try) 2>&5
31067 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31068 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
31069 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31070 (eval $ac_try) 2>&5
31072 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31073 test $ac_status = 0; }; }; then :
31075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31076 $as_echo "yes" >&6; }
31078 $as_echo "#define HAVE_CHECK_ACL 1" >>confdefs.h
31081 $as_echo "#define HAVE_CHECK_ACL_WITH_FLAGS 1" >>confdefs.h
31085 $as_echo "$as_me: failed program was:" >&5
31086 sed 's/^/| /' conftest.
$ac_ext >&5
31088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31089 $as_echo "no" >&6; }
31099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->get_acl() exists" >&5
31100 $as_echo_n "checking whether iops->get_acl() exists... " >&6; }
31103 cat confdefs.h
- <<_ACEOF >conftest.c
31106 #include <linux/fs.h>
31108 struct posix_acl *get_acl_fn(struct inode *inode, int type)
31111 static const struct inode_operations
31112 iops __attribute__ ((unused)) = {
31113 .get_acl = get_acl_fn,
31129 cat - <<_ACEOF >conftest.h
31134 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
31135 echo "obj-m := conftest.o" >build
/Makefile
31137 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
31138 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
31139 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31140 (eval $ac_try) 2>&5
31142 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31143 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
31144 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31145 (eval $ac_try) 2>&5
31147 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31148 test $ac_status = 0; }; }; then :
31150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31151 $as_echo "yes" >&6; }
31153 $as_echo "#define HAVE_GET_ACL 1" >>confdefs.h
31157 $as_echo "$as_me: failed program was:" >&5
31158 sed 's/^/| /' conftest.
$ac_ext >&5
31160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31161 $as_echo "no" >&6; }
31171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->set_acl() exists" >&5
31172 $as_echo_n "checking whether iops->set_acl() exists... " >&6; }
31175 cat confdefs.h
- <<_ACEOF >conftest.c
31178 #include <linux/fs.h>
31180 int set_acl_fn(struct inode *inode, struct posix_acl *acl, int type)
31183 static const struct inode_operations
31184 iops __attribute__ ((unused)) = {
31185 .set_acl = set_acl_fn,
31201 cat - <<_ACEOF >conftest.h
31206 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
31207 echo "obj-m := conftest.o" >build
/Makefile
31209 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
31210 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
31211 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31212 (eval $ac_try) 2>&5
31214 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31215 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
31216 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31217 (eval $ac_try) 2>&5
31219 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31220 test $ac_status = 0; }; }; then :
31222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31223 $as_echo "yes" >&6; }
31225 $as_echo "#define HAVE_SET_ACL 1" >>confdefs.h
31229 $as_echo "$as_me: failed program was:" >&5
31230 sed 's/^/| /' conftest.
$ac_ext >&5
31232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31233 $as_echo "no" >&6; }
31244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->getattr() takes a path" >&5
31245 $as_echo_n "checking whether iops->getattr() takes a path... " >&6; }
31248 cat confdefs.h
- <<_ACEOF >conftest.c
31251 #include <linux/fs.h>
31254 const struct path *p, struct kstat *k,
31255 u32 request_mask, unsigned int query_flags)
31258 static const struct inode_operations
31259 iops __attribute__ ((unused)) = {
31260 .getattr = test_getattr,
31276 cat - <<_ACEOF >conftest.h
31281 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
31282 echo "obj-m := conftest.o" >build
/Makefile
31284 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
31285 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
31286 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31287 (eval $ac_try) 2>&5
31289 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31290 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
31291 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31292 (eval $ac_try) 2>&5
31294 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31295 test $ac_status = 0; }; }; then :
31297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31298 $as_echo "yes" >&6; }
31300 $as_echo "#define HAVE_PATH_IOPS_GETATTR 1" >>confdefs.h
31304 $as_echo "$as_me: failed program was:" >&5
31305 sed 's/^/| /' conftest.
$ac_ext >&5
31307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31308 $as_echo "no" >&6; }
31318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->getattr() takes a vfsmount" >&5
31319 $as_echo_n "checking whether iops->getattr() takes a vfsmount... " >&6; }
31322 cat confdefs.h
- <<_ACEOF >conftest.c
31325 #include <linux/fs.h>
31328 struct vfsmount *mnt, struct dentry *d,
31332 static const struct inode_operations
31333 iops __attribute__ ((unused)) = {
31334 .getattr = test_getattr,
31350 cat - <<_ACEOF >conftest.h
31355 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
31356 echo "obj-m := conftest.o" >build
/Makefile
31358 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
31359 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
31360 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31361 (eval $ac_try) 2>&5
31363 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31364 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
31365 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31366 (eval $ac_try) 2>&5
31368 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31369 test $ac_status = 0; }; }; then :
31371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31372 $as_echo "yes" >&6; }
31374 $as_echo "#define HAVE_VFSMOUNT_IOPS_GETATTR 1" >>confdefs.h
31378 $as_echo "$as_me: failed program was:" >&5
31379 sed 's/^/| /' conftest.
$ac_ext >&5
31381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31382 $as_echo "no" >&6; }
31393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether uncached_acl_sentinel() exists" >&5
31394 $as_echo_n "checking whether uncached_acl_sentinel() exists... " >&6; }
31397 cat confdefs.h
- <<_ACEOF >conftest.c
31400 #include <linux/fs.h>
31406 void *sentinel __attribute__ ((unused)) = uncached_acl_sentinel(NULL);
31416 cat - <<_ACEOF >conftest.h
31421 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
31422 echo "obj-m := conftest.o" >build
/Makefile
31424 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
31425 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
31426 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31427 (eval $ac_try) 2>&5
31429 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31430 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
31431 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31432 (eval $ac_try) 2>&5
31434 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31435 test $ac_status = 0; }; }; then :
31437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31438 $as_echo "yes" >&6; }
31440 $as_echo "#define HAVE_KERNEL_GET_ACL_HANDLE_CACHE 1" >>confdefs.h
31444 $as_echo "$as_me: failed program was:" >&5
31445 sed 's/^/| /' conftest.
$ac_ext >&5
31447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31448 $as_echo "no" >&6; }
31458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sops->show_options() wants dentry" >&5
31459 $as_echo_n "checking whether sops->show_options() wants dentry... " >&6; }
31463 cat confdefs.h
- <<_ACEOF >conftest.c
31466 #include <linux/fs.h>
31468 int show_options (struct seq_file * x, struct dentry * y) { return 0; };
31469 static struct super_operations sops __attribute__ ((unused)) = {
31470 .show_options = show_options,
31486 cat - <<_ACEOF >conftest.h
31491 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
31492 echo "obj-m := conftest.o" >build
/Makefile
31494 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
31495 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
31496 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31497 (eval $ac_try) 2>&5
31499 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31500 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
31501 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31502 (eval $ac_try) 2>&5
31504 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31505 test $ac_status = 0; }; }; then :
31507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31508 $as_echo "yes" >&6; }
31510 $as_echo "#define HAVE_SHOW_OPTIONS_WITH_DENTRY 1" >>confdefs.h
31514 $as_echo "$as_me: failed program was:" >&5
31515 sed 's/^/| /' conftest.
$ac_ext >&5
31517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31518 $as_echo "no" >&6; }
31528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether file_inode() is available" >&5
31529 $as_echo_n "checking whether file_inode() is available... " >&6; }
31532 cat confdefs.h
- <<_ACEOF >conftest.c
31535 #include <linux/fs.h>
31541 struct file *f = NULL;
31552 cat - <<_ACEOF >conftest.h
31557 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
31558 echo "obj-m := conftest.o" >build
/Makefile
31560 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
31561 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
31562 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31563 (eval $ac_try) 2>&5
31565 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31566 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
31567 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31568 (eval $ac_try) 2>&5
31570 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31571 test $ac_status = 0; }; }; then :
31573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31574 $as_echo "yes" >&6; }
31576 $as_echo "#define HAVE_FILE_INODE 1" >>confdefs.h
31580 $as_echo "$as_me: failed program was:" >&5
31581 sed 's/^/| /' conftest.
$ac_ext >&5
31583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31584 $as_echo "no" >&6; }
31594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fops->fsync() wants" >&5
31595 $as_echo_n "checking whether fops->fsync() wants... " >&6; }
31599 cat confdefs.h
- <<_ACEOF >conftest.c
31602 #include <linux/fs.h>
31604 int test_fsync(struct file *f, struct dentry *dentry, int x)
31607 static const struct file_operations
31608 fops __attribute__ ((unused)) = {
31609 .fsync = test_fsync,
31625 cat - <<_ACEOF >conftest.h
31630 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
31631 echo "obj-m := conftest.o" >build
/Makefile
31633 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
31634 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
31635 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31636 (eval $ac_try) 2>&5
31638 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31639 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
31640 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31641 (eval $ac_try) 2>&5
31643 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31644 test $ac_status = 0; }; }; then :
31646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: dentry" >&5
31647 $as_echo "dentry" >&6; }
31649 $as_echo "#define HAVE_FSYNC_WITH_DENTRY 1" >>confdefs.h
31653 $as_echo "$as_me: failed program was:" >&5
31654 sed 's/^/| /' conftest.
$ac_ext >&5
31667 cat confdefs.h
- <<_ACEOF >conftest.c
31670 #include <linux/fs.h>
31672 int test_fsync(struct file *f, int x) { return 0; }
31674 static const struct file_operations
31675 fops __attribute__ ((unused)) = {
31676 .fsync = test_fsync,
31692 cat - <<_ACEOF >conftest.h
31697 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
31698 echo "obj-m := conftest.o" >build
/Makefile
31700 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
31701 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
31702 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31703 (eval $ac_try) 2>&5
31705 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31706 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
31707 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31708 (eval $ac_try) 2>&5
31710 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31711 test $ac_status = 0; }; }; then :
31713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no dentry" >&5
31714 $as_echo "no dentry" >&6; }
31716 $as_echo "#define HAVE_FSYNC_WITHOUT_DENTRY 1" >>confdefs.h
31720 $as_echo "$as_me: failed program was:" >&5
31721 sed 's/^/| /' conftest.
$ac_ext >&5
31734 cat confdefs.h
- <<_ACEOF >conftest.c
31737 #include <linux/fs.h>
31739 int test_fsync(struct file *f, loff_t a, loff_t b, int c)
31742 static const struct file_operations
31743 fops __attribute__ ((unused)) = {
31744 .fsync = test_fsync,
31760 cat - <<_ACEOF >conftest.h
31765 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
31766 echo "obj-m := conftest.o" >build
/Makefile
31768 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
31769 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
31770 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31771 (eval $ac_try) 2>&5
31773 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31774 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
31775 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31776 (eval $ac_try) 2>&5
31778 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31779 test $ac_status = 0; }; }; then :
31781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: range" >&5
31782 $as_echo "range" >&6; }
31784 $as_echo "#define HAVE_FSYNC_RANGE 1" >>confdefs.h
31788 $as_echo "$as_me: failed program was:" >&5
31789 sed 's/^/| /' conftest.
$ac_ext >&5
31801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sops->evict_inode() exists" >&5
31802 $as_echo_n "checking whether sops->evict_inode() exists... " >&6; }
31805 cat confdefs.h
- <<_ACEOF >conftest.c
31808 #include <linux/fs.h>
31809 void evict_inode (struct inode * t) { return; }
31810 static struct super_operations sops __attribute__ ((unused)) = {
31811 .evict_inode = evict_inode,
31827 cat - <<_ACEOF >conftest.h
31832 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
31833 echo "obj-m := conftest.o" >build
/Makefile
31835 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
31836 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
31837 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31838 (eval $ac_try) 2>&5
31840 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31841 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
31842 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31843 (eval $ac_try) 2>&5
31845 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31846 test $ac_status = 0; }; }; then :
31848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31849 $as_echo "yes" >&6; }
31851 $as_echo "#define HAVE_EVICT_INODE 1" >>confdefs.h
31855 $as_echo "$as_me: failed program was:" >&5
31856 sed 's/^/| /' conftest.
$ac_ext >&5
31858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31859 $as_echo "no" >&6; }
31869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sops->dirty_inode() wants flags" >&5
31870 $as_echo_n "checking whether sops->dirty_inode() wants flags... " >&6; }
31873 cat confdefs.h
- <<_ACEOF >conftest.c
31876 #include <linux/fs.h>
31878 void dirty_inode(struct inode *a, int b) { return; }
31880 static const struct super_operations
31881 sops __attribute__ ((unused)) = {
31882 .dirty_inode = dirty_inode,
31898 cat - <<_ACEOF >conftest.h
31903 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
31904 echo "obj-m := conftest.o" >build
/Makefile
31906 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
31907 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
31908 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31909 (eval $ac_try) 2>&5
31911 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31912 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
31913 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31914 (eval $ac_try) 2>&5
31916 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31917 test $ac_status = 0; }; }; then :
31919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31920 $as_echo "yes" >&6; }
31922 $as_echo "#define HAVE_DIRTY_INODE_WITH_FLAGS 1" >>confdefs.h
31926 $as_echo "$as_me: failed program was:" >&5
31927 sed 's/^/| /' conftest.
$ac_ext >&5
31929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31930 $as_echo "no" >&6; }
31940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sops->nr_cached_objects() exists" >&5
31941 $as_echo_n "checking whether sops->nr_cached_objects() exists... " >&6; }
31944 cat confdefs.h
- <<_ACEOF >conftest.c
31947 #include <linux/fs.h>
31949 int nr_cached_objects(struct super_block *sb) { return 0; }
31951 static const struct super_operations
31952 sops __attribute__ ((unused)) = {
31953 .nr_cached_objects = nr_cached_objects,
31969 cat - <<_ACEOF >conftest.h
31974 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
31975 echo "obj-m := conftest.o" >build
/Makefile
31977 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
31978 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
31979 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31980 (eval $ac_try) 2>&5
31982 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31983 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
31984 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31985 (eval $ac_try) 2>&5
31987 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31988 test $ac_status = 0; }; }; then :
31990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31991 $as_echo "yes" >&6; }
31993 $as_echo "#define HAVE_NR_CACHED_OBJECTS 1" >>confdefs.h
31997 $as_echo "$as_me: failed program was:" >&5
31998 sed 's/^/| /' conftest.
$ac_ext >&5
32000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32001 $as_echo "no" >&6; }
32011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sops->free_cached_objects() exists" >&5
32012 $as_echo_n "checking whether sops->free_cached_objects() exists... " >&6; }
32015 cat confdefs.h
- <<_ACEOF >conftest.c
32018 #include <linux/fs.h>
32020 void free_cached_objects(struct super_block *sb, int x)
32023 static const struct super_operations
32024 sops __attribute__ ((unused)) = {
32025 .free_cached_objects = free_cached_objects,
32041 cat - <<_ACEOF >conftest.h
32046 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
32047 echo "obj-m := conftest.o" >build
/Makefile
32049 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
32050 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
32051 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
32052 (eval $ac_try) 2>&5
32054 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32055 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
32056 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
32057 (eval $ac_try) 2>&5
32059 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32060 test $ac_status = 0; }; }; then :
32062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32063 $as_echo "yes" >&6; }
32065 $as_echo "#define HAVE_FREE_CACHED_OBJECTS 1" >>confdefs.h
32069 $as_echo "$as_me: failed program was:" >&5
32070 sed 's/^/| /' conftest.
$ac_ext >&5
32072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32073 $as_echo "no" >&6; }
32084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fops->fallocate() exists" >&5
32085 $as_echo_n "checking whether fops->fallocate() exists... " >&6; }
32088 cat confdefs.h
- <<_ACEOF >conftest.c
32091 #include <linux/fs.h>
32093 long test_fallocate(struct file *file, int mode,
32094 loff_t offset, loff_t len) { return 0; }
32096 static const struct file_operations
32097 fops __attribute__ ((unused)) = {
32098 .fallocate = test_fallocate,
32114 cat - <<_ACEOF >conftest.h
32119 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
32120 echo "obj-m := conftest.o" >build
/Makefile
32122 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
32123 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
32124 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
32125 (eval $ac_try) 2>&5
32127 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32128 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
32129 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
32130 (eval $ac_try) 2>&5
32132 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32133 test $ac_status = 0; }; }; then :
32135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32136 $as_echo "yes" >&6; }
32138 $as_echo "#define HAVE_FILE_FALLOCATE 1" >>confdefs.h
32142 $as_echo "$as_me: failed program was:" >&5
32143 sed 's/^/| /' conftest.
$ac_ext >&5
32145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32146 $as_echo "no" >&6; }
32156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->fallocate() exists" >&5
32157 $as_echo_n "checking whether iops->fallocate() exists... " >&6; }
32160 cat confdefs.h
- <<_ACEOF >conftest.c
32163 #include <linux/fs.h>
32165 long test_fallocate(struct inode *inode, int mode,
32166 loff_t offset, loff_t len) { return 0; }
32168 static const struct inode_operations
32169 fops __attribute__ ((unused)) = {
32170 .fallocate = test_fallocate,
32186 cat - <<_ACEOF >conftest.h
32191 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
32192 echo "obj-m := conftest.o" >build
/Makefile
32194 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
32195 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
32196 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
32197 (eval $ac_try) 2>&5
32199 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32200 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
32201 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
32202 (eval $ac_try) 2>&5
32204 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32205 test $ac_status = 0; }; }; then :
32207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32208 $as_echo "yes" >&6; }
32210 $as_echo "#define HAVE_INODE_FALLOCATE 1" >>confdefs.h
32214 $as_echo "$as_me: failed program was:" >&5
32215 sed 's/^/| /' conftest.
$ac_ext >&5
32217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32218 $as_echo "no" >&6; }
32229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fops->aio_fsync() exists" >&5
32230 $as_echo_n "checking whether fops->aio_fsync() exists... " >&6; }
32233 cat confdefs.h
- <<_ACEOF >conftest.c
32236 #include <linux/fs.h>
32238 static const struct file_operations
32239 fops __attribute__ ((unused)) = {
32256 cat - <<_ACEOF >conftest.h
32261 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
32262 echo "obj-m := conftest.o" >build
/Makefile
32264 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
32265 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
32266 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
32267 (eval $ac_try) 2>&5
32269 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32270 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
32271 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
32272 (eval $ac_try) 2>&5
32274 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32275 test $ac_status = 0; }; }; then :
32277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32278 $as_echo "yes" >&6; }
32280 $as_echo "#define HAVE_FILE_AIO_FSYNC 1" >>confdefs.h
32284 $as_echo "$as_me: failed program was:" >&5
32285 sed 's/^/| /' conftest.
$ac_ext >&5
32287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32288 $as_echo "no" >&6; }
32298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->create()/mkdir()/mknod() take umode_t" >&5
32299 $as_echo_n "checking whether iops->create()/mkdir()/mknod() take umode_t... " >&6; }
32302 cat confdefs.h
- <<_ACEOF >conftest.c
32305 #include <linux/fs.h>
32307 int mkdir(struct inode *inode, struct dentry *dentry,
32308 umode_t umode) { return 0; }
32310 static const struct inode_operations
32311 iops __attribute__ ((unused)) = {
32328 cat - <<_ACEOF >conftest.h
32333 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
32334 echo "obj-m := conftest.o" >build
/Makefile
32336 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
32337 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
32338 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
32339 (eval $ac_try) 2>&5
32341 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32342 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
32343 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
32344 (eval $ac_try) 2>&5
32346 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32347 test $ac_status = 0; }; }; then :
32349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32350 $as_echo "yes" >&6; }
32352 $as_echo "#define HAVE_MKDIR_UMODE_T 1" >>confdefs.h
32356 $as_echo "$as_me: failed program was:" >&5
32357 sed 's/^/| /' conftest.
$ac_ext >&5
32359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32360 $as_echo "no" >&6; }
32370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->lookup() passes nameidata" >&5
32371 $as_echo_n "checking whether iops->lookup() passes nameidata... " >&6; }
32374 cat confdefs.h
- <<_ACEOF >conftest.c
32377 #include <linux/fs.h>
32379 struct dentry *inode_lookup(struct inode *inode,
32380 struct dentry *dentry, struct nameidata *nidata)
32383 static const struct inode_operations iops
32384 __attribute__ ((unused)) = {
32385 .lookup = inode_lookup,
32401 cat - <<_ACEOF >conftest.h
32406 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
32407 echo "obj-m := conftest.o" >build
/Makefile
32409 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
32410 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
32411 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
32412 (eval $ac_try) 2>&5
32414 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32415 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
32416 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
32417 (eval $ac_try) 2>&5
32419 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32420 test $ac_status = 0; }; }; then :
32422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32423 $as_echo "yes" >&6; }
32425 $as_echo "#define HAVE_LOOKUP_NAMEIDATA 1" >>confdefs.h
32429 $as_echo "$as_me: failed program was:" >&5
32430 sed 's/^/| /' conftest.
$ac_ext >&5
32432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32433 $as_echo "no" >&6; }
32443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->create() passes nameidata" >&5
32444 $as_echo_n "checking whether iops->create() passes nameidata... " >&6; }
32447 cat confdefs.h
- <<_ACEOF >conftest.c
32450 #include <linux/fs.h>
32452 #ifdef HAVE_MKDIR_UMODE_T
32453 int inode_create(struct inode *inode ,struct dentry *dentry,
32454 umode_t umode, struct nameidata *nidata) { return 0; }
32456 int inode_create(struct inode *inode,struct dentry *dentry,
32457 int umode, struct nameidata * nidata) { return 0; }
32460 static const struct inode_operations
32461 iops __attribute__ ((unused)) = {
32462 .create = inode_create,
32478 cat - <<_ACEOF >conftest.h
32483 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
32484 echo "obj-m := conftest.o" >build
/Makefile
32486 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
32487 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
32488 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
32489 (eval $ac_try) 2>&5
32491 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32492 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
32493 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
32494 (eval $ac_try) 2>&5
32496 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32497 test $ac_status = 0; }; }; then :
32499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32500 $as_echo "yes" >&6; }
32502 $as_echo "#define HAVE_CREATE_NAMEIDATA 1" >>confdefs.h
32506 $as_echo "$as_me: failed program was:" >&5
32507 sed 's/^/| /' conftest.
$ac_ext >&5
32509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32510 $as_echo "no" >&6; }
32520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->get_link() passes delayed" >&5
32521 $as_echo_n "checking whether iops->get_link() passes delayed... " >&6; }
32524 cat confdefs.h
- <<_ACEOF >conftest.c
32527 #include <linux/fs.h>
32528 const char *get_link(struct dentry *de, struct inode *ip,
32529 struct delayed_call *done) { return "symlink"; }
32530 static struct inode_operations
32531 iops __attribute__ ((unused)) = {
32532 .get_link = get_link,
32548 cat - <<_ACEOF >conftest.h
32553 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
32554 echo "obj-m := conftest.o" >build
/Makefile
32556 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
32557 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
32558 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
32559 (eval $ac_try) 2>&5
32561 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32562 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
32563 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
32564 (eval $ac_try) 2>&5
32566 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32567 test $ac_status = 0; }; }; then :
32569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32570 $as_echo "yes" >&6; }
32572 $as_echo "#define HAVE_GET_LINK_DELAYED 1" >>confdefs.h
32576 $as_echo "$as_me: failed program was:" >&5
32577 sed 's/^/| /' conftest.
$ac_ext >&5
32579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32580 $as_echo "no" >&6; }
32581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->get_link() passes cookie" >&5
32582 $as_echo_n "checking whether iops->get_link() passes cookie... " >&6; }
32585 cat confdefs.h
- <<_ACEOF >conftest.c
32588 #include <linux/fs.h>
32589 const char *get_link(struct dentry *de, struct
32590 inode *ip, void **cookie) { return "symlink"; }
32591 static struct inode_operations
32592 iops __attribute__ ((unused)) = {
32593 .get_link = get_link,
32609 cat - <<_ACEOF >conftest.h
32614 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
32615 echo "obj-m := conftest.o" >build
/Makefile
32617 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
32618 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
32619 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
32620 (eval $ac_try) 2>&5
32622 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32623 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
32624 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
32625 (eval $ac_try) 2>&5
32627 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32628 test $ac_status = 0; }; }; then :
32630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32631 $as_echo "yes" >&6; }
32633 $as_echo "#define HAVE_GET_LINK_COOKIE 1" >>confdefs.h
32637 $as_echo "$as_me: failed program was:" >&5
32638 sed 's/^/| /' conftest.
$ac_ext >&5
32640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32641 $as_echo "no" >&6; }
32643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->follow_link() passes cookie" >&5
32644 $as_echo_n "checking whether iops->follow_link() passes cookie... " >&6; }
32647 cat confdefs.h
- <<_ACEOF >conftest.c
32650 #include <linux/fs.h>
32651 const char *follow_link(struct dentry *de,
32652 void **cookie) { return "symlink"; }
32653 static struct inode_operations
32654 iops __attribute__ ((unused)) = {
32655 .follow_link = follow_link,
32671 cat - <<_ACEOF >conftest.h
32676 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
32677 echo "obj-m := conftest.o" >build
/Makefile
32679 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
32680 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
32681 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
32682 (eval $ac_try) 2>&5
32684 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32685 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
32686 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
32687 (eval $ac_try) 2>&5
32689 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32690 test $ac_status = 0; }; }; then :
32692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32693 $as_echo "yes" >&6; }
32695 $as_echo "#define HAVE_FOLLOW_LINK_COOKIE 1" >>confdefs.h
32699 $as_echo "$as_me: failed program was:" >&5
32700 sed 's/^/| /' conftest.
$ac_ext >&5
32702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32703 $as_echo "no" >&6; }
32704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->follow_link() passes nameidata" >&5
32705 $as_echo_n "checking whether iops->follow_link() passes nameidata... " >&6; }
32708 cat confdefs.h
- <<_ACEOF >conftest.c
32711 #include <linux/fs.h>
32712 void *follow_link(struct dentry *de, struct
32713 nameidata *nd) { return (void *)NULL; }
32714 static struct inode_operations
32715 iops __attribute__ ((unused)) = {
32716 .follow_link = follow_link,
32732 cat - <<_ACEOF >conftest.h
32737 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
32738 echo "obj-m := conftest.o" >build
/Makefile
32740 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
32741 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
32742 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
32743 (eval $ac_try) 2>&5
32745 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32746 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
32747 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
32748 (eval $ac_try) 2>&5
32750 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32751 test $ac_status = 0; }; }; then :
32753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32754 $as_echo "yes" >&6; }
32756 $as_echo "#define HAVE_FOLLOW_LINK_NAMEIDATA 1" >>confdefs.h
32760 $as_echo "$as_me: failed program was:" >&5
32761 sed 's/^/| /' conftest.
$ac_ext >&5
32763 as_fn_error $?
"no; please file a bug report" "$LINENO" 5
32797 cat confdefs.h
- <<_ACEOF >conftest.c
32800 #if !defined(HAVE_GET_LINK_DELAYED)
32801 #error "Expecting get_link() delayed done"
32817 cat - <<_ACEOF >conftest.h
32822 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
32823 echo "obj-m := conftest.o" >build
/Makefile
32825 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
32826 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
32827 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
32828 (eval $ac_try) 2>&5
32830 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32831 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
32832 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
32833 (eval $ac_try) 2>&5
32835 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32836 test $ac_status = 0; }; }; then :
32839 $as_echo "#define HAVE_PUT_LINK_DELAYED 1" >>confdefs.h
32843 $as_echo "$as_me: failed program was:" >&5
32844 sed 's/^/| /' conftest.
$ac_ext >&5
32846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->put_link() passes cookie" >&5
32847 $as_echo_n "checking whether iops->put_link() passes cookie... " >&6; }
32850 cat confdefs.h
- <<_ACEOF >conftest.c
32853 #include <linux/fs.h>
32854 void put_link(struct inode *ip, void *cookie)
32856 static struct inode_operations
32857 iops __attribute__ ((unused)) = {
32858 .put_link = put_link,
32874 cat - <<_ACEOF >conftest.h
32879 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
32880 echo "obj-m := conftest.o" >build
/Makefile
32882 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
32883 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
32884 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
32885 (eval $ac_try) 2>&5
32887 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32888 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
32889 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
32890 (eval $ac_try) 2>&5
32892 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32893 test $ac_status = 0; }; }; then :
32895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32896 $as_echo "yes" >&6; }
32898 $as_echo "#define HAVE_PUT_LINK_COOKIE 1" >>confdefs.h
32902 $as_echo "$as_me: failed program was:" >&5
32903 sed 's/^/| /' conftest.
$ac_ext >&5
32905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32906 $as_echo "no" >&6; }
32907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->put_link() passes nameidata" >&5
32908 $as_echo_n "checking whether iops->put_link() passes nameidata... " >&6; }
32911 cat confdefs.h
- <<_ACEOF >conftest.c
32914 #include <linux/fs.h>
32915 void put_link(struct dentry *de, struct
32916 nameidata *nd, void *ptr) { return; }
32917 static struct inode_operations
32918 iops __attribute__ ((unused)) = {
32919 .put_link = put_link,
32935 cat - <<_ACEOF >conftest.h
32940 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
32941 echo "obj-m := conftest.o" >build
/Makefile
32943 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
32944 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
32945 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
32946 (eval $ac_try) 2>&5
32948 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32949 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
32950 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
32951 (eval $ac_try) 2>&5
32953 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32954 test $ac_status = 0; }; }; then :
32956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32957 $as_echo "yes" >&6; }
32959 $as_echo "#define HAVE_PUT_LINK_NAMEIDATA 1" >>confdefs.h
32963 $as_echo "$as_me: failed program was:" >&5
32964 sed 's/^/| /' conftest.
$ac_ext >&5
32966 as_fn_error $?
"no; please file a bug report" "$LINENO" 5
32990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->truncate_range() exists" >&5
32991 $as_echo_n "checking whether iops->truncate_range() exists... " >&6; }
32994 cat confdefs.h
- <<_ACEOF >conftest.c
32997 #include <linux/fs.h>
32998 void truncate_range(struct inode *inode, loff_t start,
32999 loff_t end) { return; }
33000 static struct inode_operations iops __attribute__ ((unused)) = {
33001 .truncate_range = truncate_range,
33017 cat - <<_ACEOF >conftest.h
33022 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
33023 echo "obj-m := conftest.o" >build
/Makefile
33025 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
33026 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
33027 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
33028 (eval $ac_try) 2>&5
33030 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
33031 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
33032 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
33033 (eval $ac_try) 2>&5
33035 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
33036 test $ac_status = 0; }; }; then :
33038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33039 $as_echo "yes" >&6; }
33041 $as_echo "#define HAVE_INODE_TRUNCATE_RANGE 1" >>confdefs.h
33045 $as_echo "$as_me: failed program was:" >&5
33046 sed 's/^/| /' conftest.
$ac_ext >&5
33048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33049 $as_echo "no" >&6; }
33059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether dops->d_automount() exists" >&5
33060 $as_echo_n "checking whether dops->d_automount() exists... " >&6; }
33063 cat confdefs.h
- <<_ACEOF >conftest.c
33066 #include <linux/dcache.h>
33067 struct vfsmount *d_automount(struct path *p) { return NULL; }
33068 struct dentry_operations dops __attribute__ ((unused)) = {
33069 .d_automount = d_automount,
33085 cat - <<_ACEOF >conftest.h
33090 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
33091 echo "obj-m := conftest.o" >build
/Makefile
33093 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
33094 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
33095 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
33096 (eval $ac_try) 2>&5
33098 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
33099 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
33100 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
33101 (eval $ac_try) 2>&5
33103 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
33104 test $ac_status = 0; }; }; then :
33106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33107 $as_echo "yes" >&6; }
33109 $as_echo "#define HAVE_AUTOMOUNT 1" >>confdefs.h
33113 $as_echo "$as_me: failed program was:" >&5
33114 sed 's/^/| /' conftest.
$ac_ext >&5
33116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33117 $as_echo "no" >&6; }
33127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether eops->encode_fh() wants inode" >&5
33128 $as_echo_n "checking whether eops->encode_fh() wants inode... " >&6; }
33131 cat confdefs.h
- <<_ACEOF >conftest.c
33134 #include <linux/exportfs.h>
33135 int encode_fh(struct inode *inode, __u32 *fh, int *max_len,
33136 struct inode *parent) { return 0; }
33137 static struct export_operations eops __attribute__ ((unused))={
33138 .encode_fh = encode_fh,
33154 cat - <<_ACEOF >conftest.h
33159 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
33160 echo "obj-m := conftest.o" >build
/Makefile
33162 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
33163 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
33164 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
33165 (eval $ac_try) 2>&5
33167 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
33168 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
33169 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
33170 (eval $ac_try) 2>&5
33172 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
33173 test $ac_status = 0; }; }; then :
33175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33176 $as_echo "yes" >&6; }
33178 $as_echo "#define HAVE_ENCODE_FH_WITH_INODE 1" >>confdefs.h
33182 $as_echo "$as_me: failed program was:" >&5
33183 sed 's/^/| /' conftest.
$ac_ext >&5
33185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33186 $as_echo "no" >&6; }
33196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether eops->commit_metadata() exists" >&5
33197 $as_echo_n "checking whether eops->commit_metadata() exists... " >&6; }
33200 cat confdefs.h
- <<_ACEOF >conftest.c
33203 #include <linux/exportfs.h>
33204 int commit_metadata(struct inode *inode) { return 0; }
33205 static struct export_operations eops __attribute__ ((unused))={
33206 .commit_metadata = commit_metadata,
33222 cat - <<_ACEOF >conftest.h
33227 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
33228 echo "obj-m := conftest.o" >build
/Makefile
33230 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
33231 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
33232 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
33233 (eval $ac_try) 2>&5
33235 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
33236 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
33237 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
33238 (eval $ac_try) 2>&5
33240 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
33241 test $ac_status = 0; }; }; then :
33243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33244 $as_echo "yes" >&6; }
33246 $as_echo "#define HAVE_COMMIT_METADATA 1" >>confdefs.h
33250 $as_echo "$as_me: failed program was:" >&5
33251 sed 's/^/| /' conftest.
$ac_ext >&5
33253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33254 $as_echo "no" >&6; }
33263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether clear_inode() is available" >&5
33264 $as_echo_n "checking whether clear_inode() is available... " >&6; }
33268 cat confdefs.h
- <<_ACEOF >conftest.c
33271 #include <linux/fs.h>
33287 cat - <<_ACEOF >conftest.h
33292 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
33293 echo "obj-m := conftest.o" >build
/Makefile
33295 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
33296 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
33297 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
33298 (eval $ac_try) 2>&5
33300 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
33301 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
33302 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
33303 (eval $ac_try) 2>&5
33305 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
33306 test $ac_status = 0; }; }; then :
33309 $as_echo "$as_me: failed program was:" >&5
33310 sed 's/^/| /' conftest.
$ac_ext >&5
33318 if test $rc -ne 0; then :
33320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33321 $as_echo "no" >&6; }
33324 if test "x$enable_linux_builtin" != xyes
; then
33326 grep -q -E '[[:space:]]clear_inode[[:space:]]' \
33327 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
33329 if test $rc -ne 0; then
33331 for file in fs
/inode.c
; do
33332 grep -q -E "EXPORT_SYMBOL.*(clear_inode)" \
33333 "$LINUX/$file" 2>/dev
/null
33335 if test $rc -eq 0; then
33340 if test $export -eq 0; then :
33350 if test $rc -ne 0; then :
33352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33353 $as_echo "no" >&6; }
33357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33358 $as_echo "yes" >&6; }
33360 $as_echo "#define HAVE_CLEAR_INODE 1" >>confdefs.h
33367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setattr_prepare() is available" >&5
33368 $as_echo_n "checking whether setattr_prepare() is available... " >&6; }
33372 cat confdefs.h
- <<_ACEOF >conftest.c
33375 #include <linux/fs.h>
33381 struct dentry *dentry = NULL;
33382 struct iattr *attr = NULL;
33385 error = setattr_prepare(dentry, attr);
33395 cat - <<_ACEOF >conftest.h
33400 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
33401 echo "obj-m := conftest.o" >build
/Makefile
33403 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
33404 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
33405 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
33406 (eval $ac_try) 2>&5
33408 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
33409 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
33410 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
33411 (eval $ac_try) 2>&5
33413 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
33414 test $ac_status = 0; }; }; then :
33417 $as_echo "$as_me: failed program was:" >&5
33418 sed 's/^/| /' conftest.
$ac_ext >&5
33426 if test $rc -ne 0; then :
33428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33429 $as_echo "no" >&6; }
33432 if test "x$enable_linux_builtin" != xyes
; then
33434 grep -q -E '[[:space:]]setattr_prepare[[:space:]]' \
33435 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
33437 if test $rc -ne 0; then
33439 for file in fs
/attr.c
; do
33440 grep -q -E "EXPORT_SYMBOL.*(setattr_prepare)" \
33441 "$LINUX/$file" 2>/dev
/null
33443 if test $rc -eq 0; then
33448 if test $export -eq 0; then :
33458 if test $rc -ne 0; then :
33460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33461 $as_echo "no" >&6; }
33465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33466 $as_echo "yes" >&6; }
33468 $as_echo "#define HAVE_SETATTR_PREPARE 1" >>confdefs.h
33475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether insert_inode_locked() is available" >&5
33476 $as_echo_n "checking whether insert_inode_locked() is available... " >&6; }
33480 cat confdefs.h
- <<_ACEOF >conftest.c
33483 #include <linux/fs.h>
33489 insert_inode_locked(NULL);
33499 cat - <<_ACEOF >conftest.h
33504 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
33505 echo "obj-m := conftest.o" >build
/Makefile
33507 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
33508 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
33509 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
33510 (eval $ac_try) 2>&5
33512 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
33513 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
33514 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
33515 (eval $ac_try) 2>&5
33517 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
33518 test $ac_status = 0; }; }; then :
33521 $as_echo "$as_me: failed program was:" >&5
33522 sed 's/^/| /' conftest.
$ac_ext >&5
33530 if test $rc -ne 0; then :
33532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33533 $as_echo "no" >&6; }
33536 if test "x$enable_linux_builtin" != xyes
; then
33538 grep -q -E '[[:space:]]insert_inode_locked[[:space:]]' \
33539 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
33541 if test $rc -ne 0; then
33543 for file in fs
/inode.c
; do
33544 grep -q -E "EXPORT_SYMBOL.*(insert_inode_locked)" \
33545 "$LINUX/$file" 2>/dev
/null
33547 if test $rc -eq 0; then
33552 if test $export -eq 0; then :
33562 if test $rc -ne 0; then :
33564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33565 $as_echo "no" >&6; }
33569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33570 $as_echo "yes" >&6; }
33572 $as_echo "#define HAVE_INSERT_INODE_LOCKED 1" >>confdefs.h
33579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether d_make_root() is available" >&5
33580 $as_echo_n "checking whether d_make_root() is available... " >&6; }
33584 cat confdefs.h
- <<_ACEOF >conftest.c
33587 #include <linux/dcache.h>
33603 cat - <<_ACEOF >conftest.h
33608 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
33609 echo "obj-m := conftest.o" >build
/Makefile
33611 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
33612 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
33613 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
33614 (eval $ac_try) 2>&5
33616 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
33617 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
33618 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
33619 (eval $ac_try) 2>&5
33621 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
33622 test $ac_status = 0; }; }; then :
33625 $as_echo "$as_me: failed program was:" >&5
33626 sed 's/^/| /' conftest.
$ac_ext >&5
33634 if test $rc -ne 0; then :
33636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33637 $as_echo "no" >&6; }
33640 if test "x$enable_linux_builtin" != xyes
; then
33642 grep -q -E '[[:space:]]d_make_root[[:space:]]' \
33643 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
33645 if test $rc -ne 0; then
33647 for file in fs
/dcache.c
; do
33648 grep -q -E "EXPORT_SYMBOL.*(d_make_root)" \
33649 "$LINUX/$file" 2>/dev
/null
33651 if test $rc -eq 0; then
33656 if test $export -eq 0; then :
33666 if test $rc -ne 0; then :
33668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33669 $as_echo "no" >&6; }
33673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33674 $as_echo "yes" >&6; }
33676 $as_echo "#define HAVE_D_MAKE_ROOT 1" >>confdefs.h
33683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether d_obtain_alias() is available" >&5
33684 $as_echo_n "checking whether d_obtain_alias() is available... " >&6; }
33688 cat confdefs.h
- <<_ACEOF >conftest.c
33691 #include <linux/dcache.h>
33697 d_obtain_alias(NULL);
33707 cat - <<_ACEOF >conftest.h
33712 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
33713 echo "obj-m := conftest.o" >build
/Makefile
33715 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
33716 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
33717 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
33718 (eval $ac_try) 2>&5
33720 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
33721 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
33722 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
33723 (eval $ac_try) 2>&5
33725 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
33726 test $ac_status = 0; }; }; then :
33729 $as_echo "$as_me: failed program was:" >&5
33730 sed 's/^/| /' conftest.
$ac_ext >&5
33738 if test $rc -ne 0; then :
33740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33741 $as_echo "no" >&6; }
33744 if test "x$enable_linux_builtin" != xyes
; then
33746 grep -q -E '[[:space:]]d_obtain_alias[[:space:]]' \
33747 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
33749 if test $rc -ne 0; then
33751 for file in fs
/dcache.c
; do
33752 grep -q -E "EXPORT_SYMBOL.*(d_obtain_alias)" \
33753 "$LINUX/$file" 2>/dev
/null
33755 if test $rc -eq 0; then
33760 if test $export -eq 0; then :
33770 if test $rc -ne 0; then :
33772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33773 $as_echo "no" >&6; }
33777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33778 $as_echo "yes" >&6; }
33780 $as_echo "#define HAVE_D_OBTAIN_ALIAS 1" >>confdefs.h
33787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether d_prune_aliases() is available" >&5
33788 $as_echo_n "checking whether d_prune_aliases() is available... " >&6; }
33792 cat confdefs.h
- <<_ACEOF >conftest.c
33795 #include <linux/dcache.h>
33801 struct inode *ip = NULL;
33802 d_prune_aliases(ip);
33812 cat - <<_ACEOF >conftest.h
33817 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
33818 echo "obj-m := conftest.o" >build
/Makefile
33820 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
33821 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
33822 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
33823 (eval $ac_try) 2>&5
33825 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
33826 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
33827 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
33828 (eval $ac_try) 2>&5
33830 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
33831 test $ac_status = 0; }; }; then :
33834 $as_echo "$as_me: failed program was:" >&5
33835 sed 's/^/| /' conftest.
$ac_ext >&5
33843 if test $rc -ne 0; then :
33845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33846 $as_echo "no" >&6; }
33849 if test "x$enable_linux_builtin" != xyes
; then
33851 grep -q -E '[[:space:]]d_prune_aliases[[:space:]]' \
33852 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
33854 if test $rc -ne 0; then
33856 for file in fs
/dcache.c
; do
33857 grep -q -E "EXPORT_SYMBOL.*(d_prune_aliases)" \
33858 "$LINUX/$file" 2>/dev
/null
33860 if test $rc -eq 0; then
33865 if test $export -eq 0; then :
33875 if test $rc -ne 0; then :
33877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33878 $as_echo "no" >&6; }
33882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33883 $as_echo "yes" >&6; }
33885 $as_echo "#define HAVE_D_PRUNE_ALIASES 1" >>confdefs.h
33892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether d_set_d_op() is available" >&5
33893 $as_echo_n "checking whether d_set_d_op() is available... " >&6; }
33897 cat confdefs.h
- <<_ACEOF >conftest.c
33900 #include <linux/dcache.h>
33906 d_set_d_op(NULL, NULL);
33916 cat - <<_ACEOF >conftest.h
33921 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
33922 echo "obj-m := conftest.o" >build
/Makefile
33924 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
33925 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
33926 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
33927 (eval $ac_try) 2>&5
33929 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
33930 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
33931 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
33932 (eval $ac_try) 2>&5
33934 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
33935 test $ac_status = 0; }; }; then :
33938 $as_echo "$as_me: failed program was:" >&5
33939 sed 's/^/| /' conftest.
$ac_ext >&5
33947 if test $rc -ne 0; then :
33949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33950 $as_echo "no" >&6; }
33953 if test "x$enable_linux_builtin" != xyes
; then
33955 grep -q -E '[[:space:]]d_set_d_op[[:space:]]' \
33956 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
33958 if test $rc -ne 0; then
33960 for file in fs
/dcache.c
; do
33961 grep -q -E "EXPORT_SYMBOL.*(d_set_d_op)" \
33962 "$LINUX/$file" 2>/dev
/null
33964 if test $rc -eq 0; then
33969 if test $export -eq 0; then :
33979 if test $rc -ne 0; then :
33981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33982 $as_echo "no" >&6; }
33986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33987 $as_echo "yes" >&6; }
33989 $as_echo "#define HAVE_D_SET_D_OP 1" >>confdefs.h
33997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether dops->d_revalidate() takes struct nameidata" >&5
33998 $as_echo_n "checking whether dops->d_revalidate() takes struct nameidata... " >&6; }
34001 cat confdefs.h
- <<_ACEOF >conftest.c
34004 #include <linux/dcache.h>
34006 int revalidate (struct dentry *dentry,
34007 struct nameidata *nidata) { return 0; }
34009 static const struct dentry_operations
34010 dops __attribute__ ((unused)) = {
34011 .d_revalidate = revalidate,
34027 cat - <<_ACEOF >conftest.h
34032 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
34033 echo "obj-m := conftest.o" >build
/Makefile
34035 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
34036 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
34037 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
34038 (eval $ac_try) 2>&5
34040 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
34041 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
34042 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
34043 (eval $ac_try) 2>&5
34045 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
34046 test $ac_status = 0; }; }; then :
34048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34049 $as_echo "yes" >&6; }
34051 $as_echo "#define HAVE_D_REVALIDATE_NAMEIDATA 1" >>confdefs.h
34055 $as_echo "$as_me: failed program was:" >&5
34056 sed 's/^/| /' conftest.
$ac_ext >&5
34058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34059 $as_echo "no" >&6; }
34069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether dentry uses const struct dentry_operations" >&5
34070 $as_echo_n "checking whether dentry uses const struct dentry_operations... " >&6; }
34073 cat confdefs.h
- <<_ACEOF >conftest.c
34076 #include <linux/dcache.h>
34078 const struct dentry_operations test_d_op = {
34079 .d_revalidate = NULL,
34086 struct dentry d __attribute__ ((unused));
34088 d.d_op = &test_d_op;
34098 cat - <<_ACEOF >conftest.h
34103 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
34104 echo "obj-m := conftest.o" >build
/Makefile
34106 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
34107 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
34108 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
34109 (eval $ac_try) 2>&5
34111 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
34112 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
34113 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
34114 (eval $ac_try) 2>&5
34116 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
34117 test $ac_status = 0; }; }; then :
34119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34120 $as_echo "yes" >&6; }
34122 $as_echo "#define HAVE_CONST_DENTRY_OPERATIONS 1" >>confdefs.h
34126 $as_echo "$as_me: failed program was:" >&5
34127 sed 's/^/| /' conftest.
$ac_ext >&5
34129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34130 $as_echo "no" >&6; }
34139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether check_disk_size_change() is available" >&5
34140 $as_echo_n "checking whether check_disk_size_change() is available... " >&6; }
34144 cat confdefs.h
- <<_ACEOF >conftest.c
34147 #include <linux/fs.h>
34153 check_disk_size_change(NULL, NULL);
34163 cat - <<_ACEOF >conftest.h
34168 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
34169 echo "obj-m := conftest.o" >build
/Makefile
34171 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
34172 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
34173 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
34174 (eval $ac_try) 2>&5
34176 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
34177 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
34178 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
34179 (eval $ac_try) 2>&5
34181 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
34182 test $ac_status = 0; }; }; then :
34185 $as_echo "$as_me: failed program was:" >&5
34186 sed 's/^/| /' conftest.
$ac_ext >&5
34194 if test $rc -ne 0; then :
34196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34197 $as_echo "no" >&6; }
34200 if test "x$enable_linux_builtin" != xyes
; then
34202 grep -q -E '[[:space:]]check_disk_size_change[[:space:]]' \
34203 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
34205 if test $rc -ne 0; then
34207 for file in fs
/block_dev.c
; do
34208 grep -q -E "EXPORT_SYMBOL.*(check_disk_size_change)" \
34209 "$LINUX/$file" 2>/dev
/null
34211 if test $rc -eq 0; then
34216 if test $export -eq 0; then :
34226 if test $rc -ne 0; then :
34228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34229 $as_echo "no" >&6; }
34233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34234 $as_echo "yes" >&6; }
34236 $as_echo "#define HAVE_CHECK_DISK_SIZE_CHANGE 1" >>confdefs.h
34243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether truncate_setsize() is available" >&5
34244 $as_echo_n "checking whether truncate_setsize() is available... " >&6; }
34248 cat confdefs.h
- <<_ACEOF >conftest.c
34251 #include <linux/mm.h>
34257 truncate_setsize(NULL, 0);
34267 cat - <<_ACEOF >conftest.h
34272 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
34273 echo "obj-m := conftest.o" >build
/Makefile
34275 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
34276 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
34277 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
34278 (eval $ac_try) 2>&5
34280 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
34281 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
34282 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
34283 (eval $ac_try) 2>&5
34285 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
34286 test $ac_status = 0; }; }; then :
34289 $as_echo "$as_me: failed program was:" >&5
34290 sed 's/^/| /' conftest.
$ac_ext >&5
34298 if test $rc -ne 0; then :
34300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34301 $as_echo "no" >&6; }
34304 if test "x$enable_linux_builtin" != xyes
; then
34306 grep -q -E '[[:space:]]truncate_setsize[[:space:]]' \
34307 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
34309 if test $rc -ne 0; then
34311 for file in mm
/truncate.c
; do
34312 grep -q -E "EXPORT_SYMBOL.*(truncate_setsize)" \
34313 "$LINUX/$file" 2>/dev
/null
34315 if test $rc -eq 0; then
34320 if test $export -eq 0; then :
34330 if test $rc -ne 0; then :
34332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34333 $as_echo "no" >&6; }
34337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34338 $as_echo "yes" >&6; }
34340 $as_echo "#define HAVE_TRUNCATE_SETSIZE 1" >>confdefs.h
34348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether security_inode_init_security wants 6 args" >&5
34349 $as_echo_n "checking whether security_inode_init_security wants 6 args... " >&6; }
34352 cat confdefs.h
- <<_ACEOF >conftest.c
34355 #include <linux/security.h>
34361 struct inode *ip __attribute__ ((unused)) = NULL;
34362 struct inode *dip __attribute__ ((unused)) = NULL;
34363 const struct qstr *str __attribute__ ((unused)) = NULL;
34364 char *name __attribute__ ((unused)) = NULL;
34365 void *value __attribute__ ((unused)) = NULL;
34366 size_t len __attribute__ ((unused)) = 0;
34368 security_inode_init_security(ip, dip, str, &name, &value, &len);
34378 cat - <<_ACEOF >conftest.h
34383 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
34384 echo "obj-m := conftest.o" >build
/Makefile
34386 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
34387 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
34388 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
34389 (eval $ac_try) 2>&5
34391 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
34392 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
34393 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
34394 (eval $ac_try) 2>&5
34396 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
34397 test $ac_status = 0; }; }; then :
34399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34400 $as_echo "yes" >&6; }
34402 $as_echo "#define HAVE_6ARGS_SECURITY_INODE_INIT_SECURITY 1" >>confdefs.h
34406 $as_echo "$as_me: failed program was:" >&5
34407 sed 's/^/| /' conftest.
$ac_ext >&5
34409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34410 $as_echo "no" >&6; }
34420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether security_inode_init_security wants callback" >&5
34421 $as_echo_n "checking whether security_inode_init_security wants callback... " >&6; }
34424 cat confdefs.h
- <<_ACEOF >conftest.c
34427 #include <linux/security.h>
34433 struct inode *ip __attribute__ ((unused)) = NULL;
34434 struct inode *dip __attribute__ ((unused)) = NULL;
34435 const struct qstr *str __attribute__ ((unused)) = NULL;
34436 initxattrs func __attribute__ ((unused)) = NULL;
34438 security_inode_init_security(ip, dip, str, func, NULL);
34448 cat - <<_ACEOF >conftest.h
34453 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
34454 echo "obj-m := conftest.o" >build
/Makefile
34456 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
34457 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
34458 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
34459 (eval $ac_try) 2>&5
34461 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
34462 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
34463 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
34464 (eval $ac_try) 2>&5
34466 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
34467 test $ac_status = 0; }; }; then :
34469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34470 $as_echo "yes" >&6; }
34472 $as_echo "#define HAVE_CALLBACK_SECURITY_INODE_INIT_SECURITY 1" >>confdefs.h
34476 $as_echo "$as_me: failed program was:" >&5
34477 sed 's/^/| /' conftest.
$ac_ext >&5
34479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34480 $as_echo "no" >&6; }
34489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mount_nodev() is available" >&5
34490 $as_echo_n "checking whether mount_nodev() is available... " >&6; }
34494 cat confdefs.h
- <<_ACEOF >conftest.c
34497 #include <linux/fs.h>
34503 mount_nodev(NULL, 0, NULL, NULL);
34513 cat - <<_ACEOF >conftest.h
34518 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
34519 echo "obj-m := conftest.o" >build
/Makefile
34521 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
34522 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
34523 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
34524 (eval $ac_try) 2>&5
34526 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
34527 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
34528 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
34529 (eval $ac_try) 2>&5
34531 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
34532 test $ac_status = 0; }; }; then :
34535 $as_echo "$as_me: failed program was:" >&5
34536 sed 's/^/| /' conftest.
$ac_ext >&5
34544 if test $rc -ne 0; then :
34546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34547 $as_echo "no" >&6; }
34550 if test "x$enable_linux_builtin" != xyes
; then
34552 grep -q -E '[[:space:]]mount_nodev[[:space:]]' \
34553 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
34555 if test $rc -ne 0; then
34557 for file in fs
/super.c
; do
34558 grep -q -E "EXPORT_SYMBOL.*(mount_nodev)" \
34559 "$LINUX/$file" 2>/dev
/null
34561 if test $rc -eq 0; then
34566 if test $export -eq 0; then :
34576 if test $rc -ne 0; then :
34578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34579 $as_echo "no" >&6; }
34583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34584 $as_echo "yes" >&6; }
34586 $as_echo "#define HAVE_MOUNT_NODEV 1" >>confdefs.h
34594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether super_block has s_shrink" >&5
34595 $as_echo_n "checking whether super_block has s_shrink... " >&6; }
34598 cat confdefs.h
- <<_ACEOF >conftest.c
34601 #include <linux/fs.h>
34603 int shrink(struct shrinker *s, struct shrink_control *sc)
34606 static const struct super_block
34607 sb __attribute__ ((unused)) = {
34608 .s_shrink.shrink = shrink,
34609 .s_shrink.seeks = DEFAULT_SEEKS,
34610 .s_shrink.batch = 0,
34626 cat - <<_ACEOF >conftest.h
34631 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
34632 echo "obj-m := conftest.o" >build
/Makefile
34634 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
34635 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
34636 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
34637 (eval $ac_try) 2>&5
34639 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
34640 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
34641 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
34642 (eval $ac_try) 2>&5
34644 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
34645 test $ac_status = 0; }; }; then :
34647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34648 $as_echo "yes" >&6; }
34650 $as_echo "#define HAVE_SHRINK 1" >>confdefs.h
34655 $as_echo "$as_me: failed program was:" >&5
34656 sed 's/^/| /' conftest.
$ac_ext >&5
34658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34659 $as_echo "no" >&6; }
34669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether shrink_control has nid" >&5
34670 $as_echo_n "checking whether shrink_control has nid... " >&6; }
34673 cat confdefs.h
- <<_ACEOF >conftest.c
34676 #include <linux/fs.h>
34682 struct shrink_control sc __attribute__ ((unused));
34683 unsigned long scnidsize __attribute__ ((unused)) =
34694 cat - <<_ACEOF >conftest.h
34699 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
34700 echo "obj-m := conftest.o" >build
/Makefile
34702 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
34703 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
34704 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
34705 (eval $ac_try) 2>&5
34707 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
34708 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
34709 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
34710 (eval $ac_try) 2>&5
34712 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
34713 test $ac_status = 0; }; }; then :
34715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34716 $as_echo "yes" >&6; }
34718 $as_echo "#define SHRINK_CONTROL_HAS_NID 1" >>confdefs.h
34722 $as_echo "$as_me: failed program was:" >&5
34723 sed 's/^/| /' conftest.
$ac_ext >&5
34725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34726 $as_echo "no" >&6; }
34736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether super_block has s_instances list_head" >&5
34737 $as_echo_n "checking whether super_block has s_instances list_head... " >&6; }
34740 cat confdefs.h
- <<_ACEOF >conftest.c
34743 #include <linux/fs.h>
34749 struct super_block sb __attribute__ ((unused));
34751 INIT_LIST_HEAD(&sb.s_instances);
34761 cat - <<_ACEOF >conftest.h
34766 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
34767 echo "obj-m := conftest.o" >build
/Makefile
34769 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
34770 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
34771 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
34772 (eval $ac_try) 2>&5
34774 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
34775 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
34776 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
34777 (eval $ac_try) 2>&5
34779 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
34780 test $ac_status = 0; }; }; then :
34782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34783 $as_echo "yes" >&6; }
34785 $as_echo "#define HAVE_S_INSTANCES_LIST_HEAD 1" >>confdefs.h
34789 $as_echo "$as_me: failed program was:" >&5
34790 sed 's/^/| /' conftest.
$ac_ext >&5
34792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34793 $as_echo "no" >&6; }
34802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether super_block has s_d_op" >&5
34803 $as_echo_n "checking whether super_block has s_d_op... " >&6; }
34806 cat confdefs.h
- <<_ACEOF >conftest.c
34809 #include <linux/fs.h>
34815 struct super_block sb __attribute__ ((unused));
34826 cat - <<_ACEOF >conftest.h
34831 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
34832 echo "obj-m := conftest.o" >build
/Makefile
34834 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
34835 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
34836 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
34837 (eval $ac_try) 2>&5
34839 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
34840 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
34841 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
34842 (eval $ac_try) 2>&5
34844 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
34845 test $ac_status = 0; }; }; then :
34847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34848 $as_echo "yes" >&6; }
34850 $as_echo "#define HAVE_S_D_OP 1" >>confdefs.h
34854 $as_echo "$as_me: failed program was:" >&5
34855 sed 's/^/| /' conftest.
$ac_ext >&5
34857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34858 $as_echo "no" >&6; }
34868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether super_setup_bdi_name() exists" >&5
34869 $as_echo_n "checking whether super_setup_bdi_name() exists... " >&6; }
34873 cat confdefs.h
- <<_ACEOF >conftest.c
34876 #include <linux/fs.h>
34877 struct super_block sb;
34883 char *name = "bdi";
34884 int error __attribute__((unused)) =
34885 super_setup_bdi_name(&sb, name);
34895 cat - <<_ACEOF >conftest.h
34900 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
34901 echo "obj-m := conftest.o" >build
/Makefile
34903 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
34904 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
34905 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
34906 (eval $ac_try) 2>&5
34908 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
34909 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
34910 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
34911 (eval $ac_try) 2>&5
34913 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
34914 test $ac_status = 0; }; }; then :
34917 $as_echo "$as_me: failed program was:" >&5
34918 sed 's/^/| /' conftest.
$ac_ext >&5
34926 if test $rc -ne 0; then :
34928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34929 $as_echo "no" >&6; }
34930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether bdi_setup_and_register() wants 2 args" >&5
34931 $as_echo_n "checking whether bdi_setup_and_register() wants 2 args... " >&6; }
34935 cat confdefs.h
- <<_ACEOF >conftest.c
34938 #include <linux/backing-dev.h>
34939 struct backing_dev_info bdi;
34945 char *name = "bdi";
34946 int error __attribute__((unused)) =
34947 bdi_setup_and_register(&bdi, name);
34957 cat - <<_ACEOF >conftest.h
34962 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
34963 echo "obj-m := conftest.o" >build
/Makefile
34965 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
34966 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
34967 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
34968 (eval $ac_try) 2>&5
34970 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
34971 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
34972 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
34973 (eval $ac_try) 2>&5
34975 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
34976 test $ac_status = 0; }; }; then :
34979 $as_echo "$as_me: failed program was:" >&5
34980 sed 's/^/| /' conftest.
$ac_ext >&5
34988 if test $rc -ne 0; then :
34990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34991 $as_echo "no" >&6; }
34992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether bdi_setup_and_register() wants 3 args" >&5
34993 $as_echo_n "checking whether bdi_setup_and_register() wants 3 args... " >&6; }
34997 cat confdefs.h
- <<_ACEOF >conftest.c
35000 #include <linux/backing-dev.h>
35001 struct backing_dev_info bdi;
35007 char *name = "bdi";
35008 unsigned int cap = BDI_CAP_MAP_COPY;
35009 int error __attribute__((unused)) =
35010 bdi_setup_and_register(&bdi, name, cap);
35020 cat - <<_ACEOF >conftest.h
35025 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
35026 echo "obj-m := conftest.o" >build
/Makefile
35028 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
35029 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
35030 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
35031 (eval $ac_try) 2>&5
35033 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
35034 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
35035 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
35036 (eval $ac_try) 2>&5
35038 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
35039 test $ac_status = 0; }; }; then :
35042 $as_echo "$as_me: failed program was:" >&5
35043 sed 's/^/| /' conftest.
$ac_ext >&5
35051 if test $rc -ne 0; then :
35053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35054 $as_echo "no" >&6; }
35057 if test "x$enable_linux_builtin" != xyes
; then
35059 grep -q -E '[[:space:]]bdi_setup_and_register[[:space:]]' \
35060 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
35062 if test $rc -ne 0; then
35064 for file in mm
/backing-dev.c
; do
35065 grep -q -E "EXPORT_SYMBOL.*(bdi_setup_and_register)" \
35066 "$LINUX/$file" 2>/dev
/null
35068 if test $rc -eq 0; then
35073 if test $export -eq 0; then :
35083 if test $rc -ne 0; then :
35085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35086 $as_echo "no" >&6; }
35090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35091 $as_echo "yes" >&6; }
35093 $as_echo "#define HAVE_3ARGS_BDI_SETUP_AND_REGISTER 1" >>confdefs.h
35101 if test "x$enable_linux_builtin" != xyes
; then
35103 grep -q -E '[[:space:]]bdi_setup_and_register[[:space:]]' \
35104 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
35106 if test $rc -ne 0; then
35108 for file in mm
/backing-dev.c
; do
35109 grep -q -E "EXPORT_SYMBOL.*(bdi_setup_and_register)" \
35110 "$LINUX/$file" 2>/dev
/null
35112 if test $rc -eq 0; then
35117 if test $export -eq 0; then :
35127 if test $rc -ne 0; then :
35129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35130 $as_echo "no" >&6; }
35131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether bdi_setup_and_register() wants 3 args" >&5
35132 $as_echo_n "checking whether bdi_setup_and_register() wants 3 args... " >&6; }
35136 cat confdefs.h
- <<_ACEOF >conftest.c
35139 #include <linux/backing-dev.h>
35140 struct backing_dev_info bdi;
35146 char *name = "bdi";
35147 unsigned int cap = BDI_CAP_MAP_COPY;
35148 int error __attribute__((unused)) =
35149 bdi_setup_and_register(&bdi, name, cap);
35159 cat - <<_ACEOF >conftest.h
35164 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
35165 echo "obj-m := conftest.o" >build
/Makefile
35167 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
35168 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
35169 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
35170 (eval $ac_try) 2>&5
35172 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
35173 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
35174 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
35175 (eval $ac_try) 2>&5
35177 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
35178 test $ac_status = 0; }; }; then :
35181 $as_echo "$as_me: failed program was:" >&5
35182 sed 's/^/| /' conftest.
$ac_ext >&5
35190 if test $rc -ne 0; then :
35192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35193 $as_echo "no" >&6; }
35196 if test "x$enable_linux_builtin" != xyes
; then
35198 grep -q -E '[[:space:]]bdi_setup_and_register[[:space:]]' \
35199 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
35201 if test $rc -ne 0; then
35203 for file in mm
/backing-dev.c
; do
35204 grep -q -E "EXPORT_SYMBOL.*(bdi_setup_and_register)" \
35205 "$LINUX/$file" 2>/dev
/null
35207 if test $rc -eq 0; then
35212 if test $export -eq 0; then :
35222 if test $rc -ne 0; then :
35224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35225 $as_echo "no" >&6; }
35229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35230 $as_echo "yes" >&6; }
35232 $as_echo "#define HAVE_3ARGS_BDI_SETUP_AND_REGISTER 1" >>confdefs.h
35241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35242 $as_echo "yes" >&6; }
35244 $as_echo "#define HAVE_2ARGS_BDI_SETUP_AND_REGISTER 1" >>confdefs.h
35252 if test "x$enable_linux_builtin" != xyes
; then
35254 grep -q -E '[[:space:]]super_setup_bdi_name[[:space:]]' \
35255 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
35257 if test $rc -ne 0; then
35259 for file in fs
/super.c
; do
35260 grep -q -E "EXPORT_SYMBOL.*(super_setup_bdi_name)" \
35261 "$LINUX/$file" 2>/dev
/null
35263 if test $rc -eq 0; then
35268 if test $export -eq 0; then :
35278 if test $rc -ne 0; then :
35280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35281 $as_echo "no" >&6; }
35282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether bdi_setup_and_register() wants 2 args" >&5
35283 $as_echo_n "checking whether bdi_setup_and_register() wants 2 args... " >&6; }
35287 cat confdefs.h
- <<_ACEOF >conftest.c
35290 #include <linux/backing-dev.h>
35291 struct backing_dev_info bdi;
35297 char *name = "bdi";
35298 int error __attribute__((unused)) =
35299 bdi_setup_and_register(&bdi, name);
35309 cat - <<_ACEOF >conftest.h
35314 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
35315 echo "obj-m := conftest.o" >build
/Makefile
35317 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
35318 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
35319 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
35320 (eval $ac_try) 2>&5
35322 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
35323 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
35324 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
35325 (eval $ac_try) 2>&5
35327 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
35328 test $ac_status = 0; }; }; then :
35331 $as_echo "$as_me: failed program was:" >&5
35332 sed 's/^/| /' conftest.
$ac_ext >&5
35340 if test $rc -ne 0; then :
35342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35343 $as_echo "no" >&6; }
35344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether bdi_setup_and_register() wants 3 args" >&5
35345 $as_echo_n "checking whether bdi_setup_and_register() wants 3 args... " >&6; }
35349 cat confdefs.h
- <<_ACEOF >conftest.c
35352 #include <linux/backing-dev.h>
35353 struct backing_dev_info bdi;
35359 char *name = "bdi";
35360 unsigned int cap = BDI_CAP_MAP_COPY;
35361 int error __attribute__((unused)) =
35362 bdi_setup_and_register(&bdi, name, cap);
35372 cat - <<_ACEOF >conftest.h
35377 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
35378 echo "obj-m := conftest.o" >build
/Makefile
35380 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
35381 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
35382 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
35383 (eval $ac_try) 2>&5
35385 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
35386 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
35387 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
35388 (eval $ac_try) 2>&5
35390 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
35391 test $ac_status = 0; }; }; then :
35394 $as_echo "$as_me: failed program was:" >&5
35395 sed 's/^/| /' conftest.
$ac_ext >&5
35403 if test $rc -ne 0; then :
35405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35406 $as_echo "no" >&6; }
35409 if test "x$enable_linux_builtin" != xyes
; then
35411 grep -q -E '[[:space:]]bdi_setup_and_register[[:space:]]' \
35412 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
35414 if test $rc -ne 0; then
35416 for file in mm
/backing-dev.c
; do
35417 grep -q -E "EXPORT_SYMBOL.*(bdi_setup_and_register)" \
35418 "$LINUX/$file" 2>/dev
/null
35420 if test $rc -eq 0; then
35425 if test $export -eq 0; then :
35435 if test $rc -ne 0; then :
35437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35438 $as_echo "no" >&6; }
35442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35443 $as_echo "yes" >&6; }
35445 $as_echo "#define HAVE_3ARGS_BDI_SETUP_AND_REGISTER 1" >>confdefs.h
35453 if test "x$enable_linux_builtin" != xyes
; then
35455 grep -q -E '[[:space:]]bdi_setup_and_register[[:space:]]' \
35456 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
35458 if test $rc -ne 0; then
35460 for file in mm
/backing-dev.c
; do
35461 grep -q -E "EXPORT_SYMBOL.*(bdi_setup_and_register)" \
35462 "$LINUX/$file" 2>/dev
/null
35464 if test $rc -eq 0; then
35469 if test $export -eq 0; then :
35479 if test $rc -ne 0; then :
35481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35482 $as_echo "no" >&6; }
35483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether bdi_setup_and_register() wants 3 args" >&5
35484 $as_echo_n "checking whether bdi_setup_and_register() wants 3 args... " >&6; }
35488 cat confdefs.h
- <<_ACEOF >conftest.c
35491 #include <linux/backing-dev.h>
35492 struct backing_dev_info bdi;
35498 char *name = "bdi";
35499 unsigned int cap = BDI_CAP_MAP_COPY;
35500 int error __attribute__((unused)) =
35501 bdi_setup_and_register(&bdi, name, cap);
35511 cat - <<_ACEOF >conftest.h
35516 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
35517 echo "obj-m := conftest.o" >build
/Makefile
35519 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
35520 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
35521 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
35522 (eval $ac_try) 2>&5
35524 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
35525 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
35526 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
35527 (eval $ac_try) 2>&5
35529 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
35530 test $ac_status = 0; }; }; then :
35533 $as_echo "$as_me: failed program was:" >&5
35534 sed 's/^/| /' conftest.
$ac_ext >&5
35542 if test $rc -ne 0; then :
35544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35545 $as_echo "no" >&6; }
35548 if test "x$enable_linux_builtin" != xyes
; then
35550 grep -q -E '[[:space:]]bdi_setup_and_register[[:space:]]' \
35551 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
35553 if test $rc -ne 0; then
35555 for file in mm
/backing-dev.c
; do
35556 grep -q -E "EXPORT_SYMBOL.*(bdi_setup_and_register)" \
35557 "$LINUX/$file" 2>/dev
/null
35559 if test $rc -eq 0; then
35564 if test $export -eq 0; then :
35574 if test $rc -ne 0; then :
35576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35577 $as_echo "no" >&6; }
35581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35582 $as_echo "yes" >&6; }
35584 $as_echo "#define HAVE_3ARGS_BDI_SETUP_AND_REGISTER 1" >>confdefs.h
35593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35594 $as_echo "yes" >&6; }
35596 $as_echo "#define HAVE_2ARGS_BDI_SETUP_AND_REGISTER 1" >>confdefs.h
35605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35606 $as_echo "yes" >&6; }
35608 $as_echo "#define HAVE_SUPER_SETUP_BDI_NAME 1" >>confdefs.h
35616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether set_nlink() is available" >&5
35617 $as_echo_n "checking whether set_nlink() is available... " >&6; }
35620 cat confdefs.h
- <<_ACEOF >conftest.c
35623 #include <linux/fs.h>
35630 unsigned int link = 0;
35631 (void) set_nlink(&node, link);
35641 cat - <<_ACEOF >conftest.h
35646 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
35647 echo "obj-m := conftest.o" >build
/Makefile
35649 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
35650 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
35651 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
35652 (eval $ac_try) 2>&5
35654 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
35655 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
35656 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
35657 (eval $ac_try) 2>&5
35659 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
35660 test $ac_status = 0; }; }; then :
35662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35663 $as_echo "yes" >&6; }
35665 $as_echo "#define HAVE_SET_NLINK 1" >>confdefs.h
35669 $as_echo "$as_me: failed program was:" >&5
35670 sed 's/^/| /' conftest.
$ac_ext >&5
35672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35673 $as_echo "no" >&6; }
35683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether elevator_change() is available" >&5
35684 $as_echo_n "checking whether elevator_change() is available... " >&6; }
35685 tmp_flags
="$EXTRA_KCFLAGS"
35686 EXTRA_KCFLAGS
="${NO_UNUSED_BUT_SET_VARIABLE}"
35689 cat confdefs.h
- <<_ACEOF >conftest.c
35692 #include <linux/blkdev.h>
35693 #include <linux/elevator.h>
35700 struct request_queue *q = NULL;
35701 char *elevator = NULL;
35702 ret = elevator_change(q, elevator);
35712 cat - <<_ACEOF >conftest.h
35717 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
35718 echo "obj-m := conftest.o" >build
/Makefile
35720 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
35721 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
35722 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
35723 (eval $ac_try) 2>&5
35725 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
35726 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
35727 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
35728 (eval $ac_try) 2>&5
35730 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
35731 test $ac_status = 0; }; }; then :
35733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35734 $as_echo "yes" >&6; }
35736 $as_echo "#define HAVE_ELEVATOR_CHANGE 1" >>confdefs.h
35740 $as_echo "$as_me: failed program was:" >&5
35741 sed 's/^/| /' conftest.
$ac_ext >&5
35743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35744 $as_echo "no" >&6; }
35752 EXTRA_KCFLAGS
="$tmp_flags"
35754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sget() wants 5 args" >&5
35755 $as_echo_n "checking whether sget() wants 5 args... " >&6; }
35758 cat confdefs.h
- <<_ACEOF >conftest.c
35761 #include <linux/fs.h>
35767 struct file_system_type *type = NULL;
35768 int (*test)(struct super_block *,void *) = NULL;
35769 int (*set)(struct super_block *,void *) = NULL;
35772 (void) sget(type, test, set, flags, data);
35782 cat - <<_ACEOF >conftest.h
35787 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
35788 echo "obj-m := conftest.o" >build
/Makefile
35790 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
35791 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
35792 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
35793 (eval $ac_try) 2>&5
35795 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
35796 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
35797 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
35798 (eval $ac_try) 2>&5
35800 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
35801 test $ac_status = 0; }; }; then :
35803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35804 $as_echo "yes" >&6; }
35806 $as_echo "#define HAVE_5ARG_SGET 1" >>confdefs.h
35810 $as_echo "$as_me: failed program was:" >&5
35811 sed 's/^/| /' conftest.
$ac_ext >&5
35813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35814 $as_echo "no" >&6; }
35823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lseek_execute() is available" >&5
35824 $as_echo_n "checking whether lseek_execute() is available... " >&6; }
35828 cat confdefs.h
- <<_ACEOF >conftest.c
35831 #include <linux/fs.h>
35837 struct file *fp __attribute__ ((unused)) = NULL;
35838 struct inode *ip __attribute__ ((unused)) = NULL;
35839 loff_t offset __attribute__ ((unused)) = 0;
35840 loff_t maxsize __attribute__ ((unused)) = 0;
35842 lseek_execute(fp, ip, offset, maxsize);
35852 cat - <<_ACEOF >conftest.h
35857 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
35858 echo "obj-m := conftest.o" >build
/Makefile
35860 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
35861 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
35862 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
35863 (eval $ac_try) 2>&5
35865 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
35866 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
35867 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
35868 (eval $ac_try) 2>&5
35870 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
35871 test $ac_status = 0; }; }; then :
35874 $as_echo "$as_me: failed program was:" >&5
35875 sed 's/^/| /' conftest.
$ac_ext >&5
35883 if test $rc -ne 0; then :
35885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35886 $as_echo "no" >&6; }
35889 if test "x$enable_linux_builtin" != xyes
; then
35891 grep -q -E '[[:space:]]lseek_exclusive[[:space:]]' \
35892 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
35894 if test $rc -ne 0; then
35896 for file in fs
/read_write.c
; do
35897 grep -q -E "EXPORT_SYMBOL.*(lseek_exclusive)" \
35898 "$LINUX/$file" 2>/dev
/null
35900 if test $rc -eq 0; then
35905 if test $export -eq 0; then :
35915 if test $rc -ne 0; then :
35917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35918 $as_echo "no" >&6; }
35922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35923 $as_echo "yes" >&6; }
35925 $as_echo "#define HAVE_LSEEK_EXECUTE 1" >>confdefs.h
35933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fops->iterate_shared() is available" >&5
35934 $as_echo_n "checking whether fops->iterate_shared() is available... " >&6; }
35937 cat confdefs.h
- <<_ACEOF >conftest.c
35940 #include <linux/fs.h>
35941 int iterate(struct file *filp, struct dir_context * context)
35944 static const struct file_operations fops
35945 __attribute__ ((unused)) = {
35946 .iterate_shared = iterate,
35962 cat - <<_ACEOF >conftest.h
35967 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
35968 echo "obj-m := conftest.o" >build
/Makefile
35970 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
35971 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
35972 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
35973 (eval $ac_try) 2>&5
35975 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
35976 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
35977 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
35978 (eval $ac_try) 2>&5
35980 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
35981 test $ac_status = 0; }; }; then :
35983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35984 $as_echo "yes" >&6; }
35986 $as_echo "#define HAVE_VFS_ITERATE_SHARED 1" >>confdefs.h
35990 $as_echo "$as_me: failed program was:" >&5
35991 sed 's/^/| /' conftest.
$ac_ext >&5
35993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35994 $as_echo "no" >&6; }
35996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fops->iterate() is available" >&5
35997 $as_echo_n "checking whether fops->iterate() is available... " >&6; }
36000 cat confdefs.h
- <<_ACEOF >conftest.c
36003 #include <linux/fs.h>
36004 int iterate(struct file *filp, struct dir_context * context)
36007 static const struct file_operations fops
36008 __attribute__ ((unused)) = {
36009 .iterate = iterate,
36025 cat - <<_ACEOF >conftest.h
36030 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
36031 echo "obj-m := conftest.o" >build
/Makefile
36033 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
36034 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
36035 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
36036 (eval $ac_try) 2>&5
36038 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
36039 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
36040 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
36041 (eval $ac_try) 2>&5
36043 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
36044 test $ac_status = 0; }; }; then :
36046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36047 $as_echo "yes" >&6; }
36049 $as_echo "#define HAVE_VFS_ITERATE 1" >>confdefs.h
36053 $as_echo "$as_me: failed program was:" >&5
36054 sed 's/^/| /' conftest.
$ac_ext >&5
36056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36057 $as_echo "no" >&6; }
36059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fops->readdir() is available" >&5
36060 $as_echo_n "checking whether fops->readdir() is available... " >&6; }
36063 cat confdefs.h
- <<_ACEOF >conftest.c
36066 #include <linux/fs.h>
36067 int readdir(struct file *filp, void *entry, filldir_t func)
36070 static const struct file_operations fops
36071 __attribute__ ((unused)) = {
36072 .readdir = readdir,
36088 cat - <<_ACEOF >conftest.h
36093 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
36094 echo "obj-m := conftest.o" >build
/Makefile
36096 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
36097 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
36098 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
36099 (eval $ac_try) 2>&5
36101 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
36102 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
36103 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
36104 (eval $ac_try) 2>&5
36106 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
36107 test $ac_status = 0; }; }; then :
36109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36110 $as_echo "yes" >&6; }
36112 $as_echo "#define HAVE_VFS_READDIR 1" >>confdefs.h
36116 $as_echo "$as_me: failed program was:" >&5
36117 sed 's/^/| /' conftest.
$ac_ext >&5
36119 as_fn_error $?
"no; file a bug report with ZFSOnLinux" "$LINENO" 5
36142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fops->read/write_iter() are available" >&5
36143 $as_echo_n "checking whether fops->read/write_iter() are available... " >&6; }
36146 cat confdefs.h
- <<_ACEOF >conftest.c
36149 #include <linux/fs.h>
36151 ssize_t test_read(struct kiocb *kiocb, struct iov_iter *to)
36153 ssize_t test_write(struct kiocb *kiocb, struct iov_iter *from)
36156 static const struct file_operations
36157 fops __attribute__ ((unused)) = {
36158 .read_iter = test_read,
36159 .write_iter = test_write,
36175 cat - <<_ACEOF >conftest.h
36180 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
36181 echo "obj-m := conftest.o" >build
/Makefile
36183 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
36184 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
36185 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
36186 (eval $ac_try) 2>&5
36188 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
36189 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
36190 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
36191 (eval $ac_try) 2>&5
36193 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
36194 test $ac_status = 0; }; }; then :
36196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36197 $as_echo "yes" >&6; }
36199 $as_echo "#define HAVE_VFS_RW_ITERATE 1" >>confdefs.h
36202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether new_sync_read() is available" >&5
36203 $as_echo_n "checking whether new_sync_read() is available... " >&6; }
36206 cat confdefs.h
- <<_ACEOF >conftest.c
36209 #include <linux/fs.h>
36215 new_sync_read(NULL, NULL, 0, NULL);
36225 cat - <<_ACEOF >conftest.h
36230 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
36231 echo "obj-m := conftest.o" >build
/Makefile
36233 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
36234 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
36235 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
36236 (eval $ac_try) 2>&5
36238 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
36239 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
36240 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
36241 (eval $ac_try) 2>&5
36243 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
36244 test $ac_status = 0; }; }; then :
36246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36247 $as_echo "yes" >&6; }
36249 $as_echo "#define HAVE_NEW_SYNC_READ 1" >>confdefs.h
36253 $as_echo "$as_me: failed program was:" >&5
36254 sed 's/^/| /' conftest.
$ac_ext >&5
36256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36257 $as_echo "no" >&6; }
36268 $as_echo "$as_me: failed program was:" >&5
36269 sed 's/^/| /' conftest.
$ac_ext >&5
36271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36272 $as_echo "no" >&6; }
36281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether generic_write_checks() takes kiocb" >&5
36282 $as_echo_n "checking whether generic_write_checks() takes kiocb... " >&6; }
36285 cat confdefs.h
- <<_ACEOF >conftest.c
36288 #include <linux/fs.h>
36295 struct kiocb *iocb = NULL;
36296 struct iov_iter *iov = NULL;
36297 generic_write_checks(iocb, iov);
36307 cat - <<_ACEOF >conftest.h
36312 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
36313 echo "obj-m := conftest.o" >build
/Makefile
36315 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
36316 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
36317 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
36318 (eval $ac_try) 2>&5
36320 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
36321 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
36322 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
36323 (eval $ac_try) 2>&5
36325 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
36326 test $ac_status = 0; }; }; then :
36328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36329 $as_echo "yes" >&6; }
36331 $as_echo "#define HAVE_GENERIC_WRITE_CHECKS_KIOCB 1" >>confdefs.h
36335 $as_echo "$as_me: failed program was:" >&5
36336 sed 's/^/| /' conftest.
$ac_ext >&5
36338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36339 $as_echo "no" >&6; }
36349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether kmap_atomic wants 1 args" >&5
36350 $as_echo_n "checking whether kmap_atomic wants 1 args... " >&6; }
36353 cat confdefs.h
- <<_ACEOF >conftest.c
36356 #include <linux/pagemap.h>
36363 kmap_atomic(&page);
36373 cat - <<_ACEOF >conftest.h
36378 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
36379 echo "obj-m := conftest.o" >build
/Makefile
36381 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
36382 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
36383 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
36384 (eval $ac_try) 2>&5
36386 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
36387 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
36388 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
36389 (eval $ac_try) 2>&5
36391 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
36392 test $ac_status = 0; }; }; then :
36394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36395 $as_echo "yes" >&6; }
36397 $as_echo "#define HAVE_1ARG_KMAP_ATOMIC 1" >>confdefs.h
36401 $as_echo "$as_me: failed program was:" >&5
36402 sed 's/^/| /' conftest.
$ac_ext >&5
36404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36405 $as_echo "no" >&6; }
36415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether follow_down_one() is available" >&5
36416 $as_echo_n "checking whether follow_down_one() is available... " >&6; }
36419 cat confdefs.h
- <<_ACEOF >conftest.c
36422 #include <linux/namei.h>
36428 struct path *p = NULL;
36429 follow_down_one(p);
36439 cat - <<_ACEOF >conftest.h
36444 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
36445 echo "obj-m := conftest.o" >build
/Makefile
36447 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
36448 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
36449 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
36450 (eval $ac_try) 2>&5
36452 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
36453 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
36454 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
36455 (eval $ac_try) 2>&5
36457 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
36458 test $ac_status = 0; }; }; then :
36460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36461 $as_echo "yes" >&6; }
36463 $as_echo "#define HAVE_FOLLOW_DOWN_ONE 1" >>confdefs.h
36467 $as_echo "$as_me: failed program was:" >&5
36468 sed 's/^/| /' conftest.
$ac_ext >&5
36470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36471 $as_echo "no" >&6; }
36481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether make_request_fn() returns int" >&5
36482 $as_echo_n "checking whether make_request_fn() returns int... " >&6; }
36485 cat confdefs.h
- <<_ACEOF >conftest.c
36488 #include <linux/blkdev.h>
36490 int make_request(struct request_queue *q, struct bio *bio)
36499 blk_queue_make_request(NULL, &make_request);
36509 cat - <<_ACEOF >conftest.h
36514 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
36515 echo "obj-m := conftest.o" >build
/Makefile
36517 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
36518 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
36519 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
36520 (eval $ac_try) 2>&5
36522 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
36523 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
36524 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
36525 (eval $ac_try) 2>&5
36527 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
36528 test $ac_status = 0; }; }; then :
36530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36531 $as_echo "yes" >&6; }
36533 $as_echo "#define MAKE_REQUEST_FN_RET int" >>confdefs.h
36536 $as_echo "#define HAVE_MAKE_REQUEST_FN_RET_INT 1" >>confdefs.h
36540 $as_echo "$as_me: failed program was:" >&5
36541 sed 's/^/| /' conftest.
$ac_ext >&5
36543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36544 $as_echo "no" >&6; }
36545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether make_request_fn() returns void" >&5
36546 $as_echo_n "checking whether make_request_fn() returns void... " >&6; }
36549 cat confdefs.h
- <<_ACEOF >conftest.c
36552 #include <linux/blkdev.h>
36554 void make_request(struct request_queue *q, struct bio *bio)
36563 blk_queue_make_request(NULL, &make_request);
36573 cat - <<_ACEOF >conftest.h
36578 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
36579 echo "obj-m := conftest.o" >build
/Makefile
36581 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
36582 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
36583 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
36584 (eval $ac_try) 2>&5
36586 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
36587 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
36588 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
36589 (eval $ac_try) 2>&5
36591 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
36592 test $ac_status = 0; }; }; then :
36594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36595 $as_echo "yes" >&6; }
36597 $as_echo "#define MAKE_REQUEST_FN_RET void" >>confdefs.h
36601 $as_echo "$as_me: failed program was:" >&5
36602 sed 's/^/| /' conftest.
$ac_ext >&5
36604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36605 $as_echo "no" >&6; }
36606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether make_request_fn() returns blk_qc_t" >&5
36607 $as_echo_n "checking whether make_request_fn() returns blk_qc_t... " >&6; }
36610 cat confdefs.h
- <<_ACEOF >conftest.c
36613 #include <linux/blkdev.h>
36615 blk_qc_t make_request(struct request_queue *q, struct bio *bio)
36617 return (BLK_QC_T_NONE);
36624 blk_queue_make_request(NULL, &make_request);
36634 cat - <<_ACEOF >conftest.h
36639 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
36640 echo "obj-m := conftest.o" >build
/Makefile
36642 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
36643 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
36644 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
36645 (eval $ac_try) 2>&5
36647 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
36648 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
36649 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
36650 (eval $ac_try) 2>&5
36652 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
36653 test $ac_status = 0; }; }; then :
36655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36656 $as_echo "yes" >&6; }
36658 $as_echo "#define MAKE_REQUEST_FN_RET blk_qc_t" >>confdefs.h
36661 $as_echo "#define HAVE_MAKE_REQUEST_FN_RET_QC 1" >>confdefs.h
36665 $as_echo "$as_me: failed program was:" >&5
36666 sed 's/^/| /' conftest.
$ac_ext >&5
36668 as_fn_error $?
"no - Please file a bug report at
36669 https://github.com/zfsonlinux/zfs/issues/new" "$LINENO" 5
36693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether generic IO accounting symbols are avaliable" >&5
36694 $as_echo_n "checking whether generic IO accounting symbols are avaliable... " >&6; }
36698 cat confdefs.h
- <<_ACEOF >conftest.c
36701 #include <linux/bio.h>
36703 void (*generic_start_io_acct_f)(int, unsigned long,
36704 struct hd_struct *) = &generic_start_io_acct;
36705 void (*generic_end_io_acct_f)(int, struct hd_struct *,
36706 unsigned long) = &generic_end_io_acct;
36712 generic_start_io_acct(0, 0, NULL);
36713 generic_end_io_acct(0, NULL, 0);
36723 cat - <<_ACEOF >conftest.h
36728 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
36729 echo "obj-m := conftest.o" >build
/Makefile
36731 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
36732 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
36733 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
36734 (eval $ac_try) 2>&5
36736 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
36737 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
36738 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
36739 (eval $ac_try) 2>&5
36741 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
36742 test $ac_status = 0; }; }; then :
36745 $as_echo "$as_me: failed program was:" >&5
36746 sed 's/^/| /' conftest.
$ac_ext >&5
36754 if test $rc -ne 0; then :
36756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36757 $as_echo "no" >&6; }
36760 if test "x$enable_linux_builtin" != xyes
; then
36762 grep -q -E '[[:space:]]generic_start_io_acct[[:space:]]' \
36763 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
36765 if test $rc -ne 0; then
36767 for file in block
/bio.c
; do
36768 grep -q -E "EXPORT_SYMBOL.*(generic_start_io_acct)" \
36769 "$LINUX/$file" 2>/dev
/null
36771 if test $rc -eq 0; then
36776 if test $export -eq 0; then :
36786 if test $rc -ne 0; then :
36788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36789 $as_echo "no" >&6; }
36793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36794 $as_echo "yes" >&6; }
36796 $as_echo "#define HAVE_GENERIC_IO_ACCT 1" >>confdefs.h
36804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->rename() wants flags" >&5
36805 $as_echo_n "checking whether iops->rename() wants flags... " >&6; }
36808 cat confdefs.h
- <<_ACEOF >conftest.c
36811 #include <linux/fs.h>
36812 int rename_fn(struct inode *sip, struct dentry *sdp,
36813 struct inode *tip, struct dentry *tdp,
36814 unsigned int flags) { return 0; }
36816 static const struct inode_operations
36817 iops __attribute__ ((unused)) = {
36818 .rename = rename_fn,
36834 cat - <<_ACEOF >conftest.h
36839 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
36840 echo "obj-m := conftest.o" >build
/Makefile
36842 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
36843 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
36844 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
36845 (eval $ac_try) 2>&5
36847 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
36848 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
36849 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
36850 (eval $ac_try) 2>&5
36852 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
36853 test $ac_status = 0; }; }; then :
36855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36856 $as_echo "yes" >&6; }
36858 $as_echo "#define HAVE_RENAME_WANTS_FLAGS 1" >>confdefs.h
36862 $as_echo "$as_me: failed program was:" >&5
36863 sed 's/^/| /' conftest.
$ac_ext >&5
36865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36866 $as_echo "no" >&6; }
36876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether generic_setxattr() exists" >&5
36877 $as_echo_n "checking whether generic_setxattr() exists... " >&6; }
36880 cat confdefs.h
- <<_ACEOF >conftest.c
36883 #include <linux/fs.h>
36884 #include <linux/xattr.h>
36886 static const struct inode_operations
36887 iops __attribute__ ((unused)) = {
36888 .setxattr = generic_setxattr
36904 cat - <<_ACEOF >conftest.h
36909 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
36910 echo "obj-m := conftest.o" >build
/Makefile
36912 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
36913 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
36914 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
36915 (eval $ac_try) 2>&5
36917 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
36918 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
36919 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
36920 (eval $ac_try) 2>&5
36922 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
36923 test $ac_status = 0; }; }; then :
36925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36926 $as_echo "yes" >&6; }
36928 $as_echo "#define HAVE_GENERIC_SETXATTR 1" >>confdefs.h
36932 $as_echo "$as_me: failed program was:" >&5
36933 sed 's/^/| /' conftest.
$ac_ext >&5
36935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36936 $as_echo "no" >&6; }
36945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether current_time() exists" >&5
36946 $as_echo_n "checking whether current_time() exists... " >&6; }
36950 cat confdefs.h
- <<_ACEOF >conftest.c
36953 #include <linux/fs.h>
36960 struct timespec now __attribute__ ((unused));
36962 now = current_time(&ip);
36972 cat - <<_ACEOF >conftest.h
36977 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
36978 echo "obj-m := conftest.o" >build
/Makefile
36980 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
36981 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
36982 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
36983 (eval $ac_try) 2>&5
36985 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
36986 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
36987 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
36988 (eval $ac_try) 2>&5
36990 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
36991 test $ac_status = 0; }; }; then :
36994 $as_echo "$as_me: failed program was:" >&5
36995 sed 's/^/| /' conftest.
$ac_ext >&5
37003 if test $rc -ne 0; then :
37005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37006 $as_echo "no" >&6; }
37009 if test "x$enable_linux_builtin" != xyes
; then
37011 grep -q -E '[[:space:]]current_time[[:space:]]' \
37012 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
37014 if test $rc -ne 0; then
37016 for file in fs
/inode.c
; do
37017 grep -q -E "EXPORT_SYMBOL.*(current_time)" \
37018 "$LINUX/$file" 2>/dev
/null
37020 if test $rc -eq 0; then
37025 if test $export -eq 0; then :
37035 if test $rc -ne 0; then :
37037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37038 $as_echo "no" >&6; }
37042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37043 $as_echo "yes" >&6; }
37045 $as_echo "#define HAVE_CURRENT_TIME 1" >>confdefs.h
37053 if test "$LINUX_OBJ" != "$LINUX"; then :
37055 KERNELMAKE_PARAMS
="$KERNELMAKE_PARAMS O=$LINUX_OBJ"
37061 KERNELCPPFLAGS
="$KERNELCPPFLAGS $NO_UNUSED_BUT_SET_VARIABLE"
37062 KERNELCPPFLAGS
="$KERNELCPPFLAGS $NO_BOOL_COMPARE"
37063 KERNELCPPFLAGS
="$KERNELCPPFLAGS -DHAVE_SPL -D_KERNEL"
37064 KERNELCPPFLAGS
="$KERNELCPPFLAGS -DTEXT_DOMAIN=\\\"zfs-linux-kernel\\\""
37070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dkms.conf file" >&5
37071 $as_echo_n "checking for dkms.conf file... " >&6; }
37072 if test -e dkms.conf
; then :
37075 *** ZFS should not be manually built in the DKMS source tree.
37076 *** Remove all ZFS packages before compiling the ZoL sources.
37077 *** Running \"make install\" breaks ZFS packages." "$LINENO" 5
37081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
37082 $as_echo "not found" >&6; }
37088 # Check whether --with-mounthelperdir was given.
37089 if test "${with_mounthelperdir+set}" = set; then :
37090 withval
=$with_mounthelperdir; mounthelperdir
=$withval
37092 mounthelperdir
=/sbin
37099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for udev directories" >&5
37100 $as_echo_n "checking for udev directories... " >&6; }
37102 # Check whether --with-udevdir was given.
37103 if test "${with_udevdir+set}" = set; then :
37104 withval
=$with_udevdir; udevdir
=$withval
37110 if test "x$udevdir" = xcheck
; then :
37113 path2
=/usr
/lib
/udev
37116 if test -d "$path1"; then :
37120 if test -d "$path2"; then :
37131 # Check whether --with-udevruledir was given.
37132 if test "${with_udevruledir+set}" = set; then :
37133 withval
=$with_udevruledir; udevruledir
=$withval
37135 udevruledir
="${udevdir}/rules.d"
37141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $udevdir;$udevruledir" >&5
37142 $as_echo "$udevdir;$udevruledir" >&6; }
37147 ac_fn_c_check_header_mongrel
"$LINENO" "libaio.h" "ac_cv_header_libaio_h" "$ac_includes_default"
37148 if test "x$ac_cv_header_libaio_h" = xyes
; then :
37154 $as_echo "#define HAVE_LIBAIO 1" >>confdefs.h
37166 # Check whether --enable-systemd was given.
37167 if test "${enable_systemd+set}" = set; then :
37168 enableval
=$enable_systemd;
37175 # Check whether --with-systemdunitdir was given.
37176 if test "${with_systemdunitdir+set}" = set; then :
37177 withval
=$with_systemdunitdir; systemdunitdir
=$withval
37179 systemdunitdir
=/usr
/lib
/systemd
/system
37184 # Check whether --with-systemdpresetdir was given.
37185 if test "${with_systemdpresetdir+set}" = set; then :
37186 withval
=$with_systemdpresetdir; systemdpresetdir
=$withval
37188 systemdpresetdir
=/usr
/lib
/systemd
/system-preset
37193 # Check whether --with-systemdmodulesloaddir was given.
37194 if test "${with_systemdmodulesloaddir+set}" = set; then :
37195 withval
=$with_systemdmodulesloaddir; systemdmoduleloaddir
=$withval
37197 systemdmodulesloaddir
=/usr
/lib
/modules-load.d
37202 if test "x$enable_systemd" = xyes
; then :
37204 ZFS_INIT_SYSTEMD
=systemd
37205 ZFS_MODULE_LOAD
=modules-load.d
37206 modulesloaddir
=$systemdmodulesloaddir
37217 # Check whether --enable-sysvinit was given.
37218 if test "${enable_sysvinit+set}" = set; then :
37219 enableval
=$enable_sysvinit;
37221 enable_sysvinit
=yes
37225 if test "x$enable_sysvinit" = xyes
; then :
37226 ZFS_INIT_SYSV
=init.d
37232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dracut directory" >&5
37233 $as_echo_n "checking for dracut directory... " >&6; }
37235 # Check whether --with-dracutdir was given.
37236 if test "${with_dracutdir+set}" = set; then :
37237 withval
=$with_dracutdir; dracutdir
=$withval
37243 if test "x$dracutdir" = xcheck
; then :
37245 path1
=/usr
/share
/dracut
37246 path2
=/usr
/lib
/dracut
37249 if test -d "$path1"; then :
37253 if test -d "$path2"; then :
37256 dracutdir
="$default"
37264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dracutdir" >&5
37265 $as_echo "$dracutdir" >&6; }
37268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for target asm dir" >&5
37269 $as_echo_n "checking for target asm dir... " >&6; }
37270 TARGET_ARCH
=`echo ${target_cpu} | sed -e s/i.86/i386/`
37272 case $TARGET_ARCH in
37274 TARGET_ASM_DIR
=asm-
${TARGET_ARCH}
37277 TARGET_ASM_DIR
=asm-generic
37282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TARGET_ASM_DIR" >&5
37283 $as_echo "$TARGET_ASM_DIR" >&6; }
37288 ac_fn_c_check_header_mongrel
"$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
37289 if test "x$ac_cv_header_zlib_h" = xyes
; then :
37292 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
37293 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
37295 *** zlib.h missing, zlib-devel package required
37296 See \`config.log' for more details" "$LINENO" 5; }
37301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compress2 in -lz" >&5
37302 $as_echo_n "checking for compress2 in -lz... " >&6; }
37303 if ${ac_cv_lib_z_compress2+:} false
; then :
37304 $as_echo_n "(cached) " >&6
37306 ac_check_lib_save_LIBS
=$LIBS
37308 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
37309 /* end confdefs.h. */
37311 /* Override any GCC internal prototype to avoid an error.
37312 Use char because int might match the return type of a GCC
37313 builtin and then its argument prototype would still apply. */
37321 return compress2 ();
37326 if ac_fn_c_try_link
"$LINENO"; then :
37327 ac_cv_lib_z_compress2
=yes
37329 ac_cv_lib_z_compress2
=no
37331 rm -f core conftest.err conftest.
$ac_objext \
37332 conftest
$ac_exeext conftest.
$ac_ext
37333 LIBS
=$ac_check_lib_save_LIBS
37335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_compress2" >&5
37336 $as_echo "$ac_cv_lib_z_compress2" >&6; }
37337 if test "x$ac_cv_lib_z_compress2" = xyes
; then :
37338 cat >>confdefs.h
<<_ACEOF
37339 #define HAVE_LIBZ 1
37345 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
37346 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
37348 *** compress2() missing, zlib-devel package required
37349 See \`config.log' for more details" "$LINENO" 5; }
37353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uncompress in -lz" >&5
37354 $as_echo_n "checking for uncompress in -lz... " >&6; }
37355 if ${ac_cv_lib_z_uncompress+:} false
; then :
37356 $as_echo_n "(cached) " >&6
37358 ac_check_lib_save_LIBS
=$LIBS
37360 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
37361 /* end confdefs.h. */
37363 /* Override any GCC internal prototype to avoid an error.
37364 Use char because int might match the return type of a GCC
37365 builtin and then its argument prototype would still apply. */
37369 char uncompress ();
37373 return uncompress ();
37378 if ac_fn_c_try_link
"$LINENO"; then :
37379 ac_cv_lib_z_uncompress
=yes
37381 ac_cv_lib_z_uncompress
=no
37383 rm -f core conftest.err conftest.
$ac_objext \
37384 conftest
$ac_exeext conftest.
$ac_ext
37385 LIBS
=$ac_check_lib_save_LIBS
37387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_uncompress" >&5
37388 $as_echo "$ac_cv_lib_z_uncompress" >&6; }
37389 if test "x$ac_cv_lib_z_uncompress" = xyes
; then :
37390 cat >>confdefs.h
<<_ACEOF
37391 #define HAVE_LIBZ 1
37397 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
37398 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
37400 *** uncompress() missing, zlib-devel package required
37401 See \`config.log' for more details" "$LINENO" 5; }
37405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for crc32 in -lz" >&5
37406 $as_echo_n "checking for crc32 in -lz... " >&6; }
37407 if ${ac_cv_lib_z_crc32+:} false
; then :
37408 $as_echo_n "(cached) " >&6
37410 ac_check_lib_save_LIBS
=$LIBS
37412 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
37413 /* end confdefs.h. */
37415 /* Override any GCC internal prototype to avoid an error.
37416 Use char because int might match the return type of a GCC
37417 builtin and then its argument prototype would still apply. */
37430 if ac_fn_c_try_link
"$LINENO"; then :
37431 ac_cv_lib_z_crc32
=yes
37433 ac_cv_lib_z_crc32
=no
37435 rm -f core conftest.err conftest.
$ac_objext \
37436 conftest
$ac_exeext conftest.
$ac_ext
37437 LIBS
=$ac_check_lib_save_LIBS
37439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_crc32" >&5
37440 $as_echo "$ac_cv_lib_z_crc32" >&6; }
37441 if test "x$ac_cv_lib_z_crc32" = xyes
; then :
37442 cat >>confdefs.h
<<_ACEOF
37443 #define HAVE_LIBZ 1
37449 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
37450 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
37452 *** crc32() missing, zlib-devel package required
37453 See \`config.log' for more details" "$LINENO" 5; }
37460 $as_echo "#define HAVE_ZLIB 1" >>confdefs.h
37466 ac_fn_c_check_header_mongrel
"$LINENO" "uuid/uuid.h" "ac_cv_header_uuid_uuid_h" "$ac_includes_default"
37467 if test "x$ac_cv_header_uuid_uuid_h" = xyes
; then :
37470 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
37471 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
37473 *** uuid/uuid.h missing, libuuid-devel package required
37474 See \`config.log' for more details" "$LINENO" 5; }
37479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uuid_generate in -luuid" >&5
37480 $as_echo_n "checking for uuid_generate in -luuid... " >&6; }
37481 if ${ac_cv_lib_uuid_uuid_generate+:} false
; then :
37482 $as_echo_n "(cached) " >&6
37484 ac_check_lib_save_LIBS
=$LIBS
37485 LIBS
="-luuid $LIBS"
37486 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
37487 /* end confdefs.h. */
37489 /* Override any GCC internal prototype to avoid an error.
37490 Use char because int might match the return type of a GCC
37491 builtin and then its argument prototype would still apply. */
37495 char uuid_generate ();
37499 return uuid_generate ();
37504 if ac_fn_c_try_link
"$LINENO"; then :
37505 ac_cv_lib_uuid_uuid_generate
=yes
37507 ac_cv_lib_uuid_uuid_generate
=no
37509 rm -f core conftest.err conftest.
$ac_objext \
37510 conftest
$ac_exeext conftest.
$ac_ext
37511 LIBS
=$ac_check_lib_save_LIBS
37513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_uuid_uuid_generate" >&5
37514 $as_echo "$ac_cv_lib_uuid_uuid_generate" >&6; }
37515 if test "x$ac_cv_lib_uuid_uuid_generate" = xyes
; then :
37516 cat >>confdefs.h
<<_ACEOF
37517 #define HAVE_LIBUUID 1
37520 LIBS
="-luuid $LIBS"
37523 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
37524 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
37526 *** uuid_generate() missing, libuuid-devel package required
37527 See \`config.log' for more details" "$LINENO" 5; }
37531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uuid_is_null in -luuid" >&5
37532 $as_echo_n "checking for uuid_is_null in -luuid... " >&6; }
37533 if ${ac_cv_lib_uuid_uuid_is_null+:} false
; then :
37534 $as_echo_n "(cached) " >&6
37536 ac_check_lib_save_LIBS
=$LIBS
37537 LIBS
="-luuid $LIBS"
37538 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
37539 /* end confdefs.h. */
37541 /* Override any GCC internal prototype to avoid an error.
37542 Use char because int might match the return type of a GCC
37543 builtin and then its argument prototype would still apply. */
37547 char uuid_is_null ();
37551 return uuid_is_null ();
37556 if ac_fn_c_try_link
"$LINENO"; then :
37557 ac_cv_lib_uuid_uuid_is_null
=yes
37559 ac_cv_lib_uuid_uuid_is_null
=no
37561 rm -f core conftest.err conftest.
$ac_objext \
37562 conftest
$ac_exeext conftest.
$ac_ext
37563 LIBS
=$ac_check_lib_save_LIBS
37565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_uuid_uuid_is_null" >&5
37566 $as_echo "$ac_cv_lib_uuid_uuid_is_null" >&6; }
37567 if test "x$ac_cv_lib_uuid_uuid_is_null" = xyes
; then :
37568 cat >>confdefs.h
<<_ACEOF
37569 #define HAVE_LIBUUID 1
37572 LIBS
="-luuid $LIBS"
37575 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
37576 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
37578 *** uuid_is_null() missing, libuuid-devel package required
37579 See \`config.log' for more details" "$LINENO" 5; }
37586 $as_echo "#define HAVE_LIBUUID 1" >>confdefs.h
37591 # Check whether --with-blkid was given.
37592 if test "${with_blkid+set}" = set; then :
37593 withval
=$with_blkid;
37600 if test "x$with_blkid" = xyes
; then :
37605 $as_echo "#define HAVE_LIBBLKID 1" >>confdefs.h
37610 if test "x$with_blkid" = xcheck
; then :
37612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for blkid_get_cache in -lblkid" >&5
37613 $as_echo_n "checking for blkid_get_cache in -lblkid... " >&6; }
37614 if ${ac_cv_lib_blkid_blkid_get_cache+:} false
; then :
37615 $as_echo_n "(cached) " >&6
37617 ac_check_lib_save_LIBS
=$LIBS
37618 LIBS
="-lblkid $LIBS"
37619 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
37620 /* end confdefs.h. */
37622 /* Override any GCC internal prototype to avoid an error.
37623 Use char because int might match the return type of a GCC
37624 builtin and then its argument prototype would still apply. */
37628 char blkid_get_cache ();
37632 return blkid_get_cache ();
37637 if ac_fn_c_try_link
"$LINENO"; then :
37638 ac_cv_lib_blkid_blkid_get_cache
=yes
37640 ac_cv_lib_blkid_blkid_get_cache
=no
37642 rm -f core conftest.err conftest.
$ac_objext \
37643 conftest
$ac_exeext conftest.
$ac_ext
37644 LIBS
=$ac_check_lib_save_LIBS
37646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_blkid_blkid_get_cache" >&5
37647 $as_echo "$ac_cv_lib_blkid_blkid_get_cache" >&6; }
37648 if test "x$ac_cv_lib_blkid_blkid_get_cache" = xyes
; then :
37650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for blkid zfs support" >&5
37651 $as_echo_n "checking for blkid zfs support... " >&6; }
37654 truncate
-s 64M
$ZFS_DEV
37655 echo -en "\x0c\xb1\xba\0\0\0\0\0" | \
37656 dd of
=$ZFS_DEV bs
=1k count
=8 \
37657 seek
=128 conv
=notrunc
&>/dev
/null \
37658 >/dev
/null
2>/dev
/null
37659 echo -en "\x0c\xb1\xba\0\0\0\0\0" | \
37660 dd of
=$ZFS_DEV bs
=1k count
=8 \
37661 seek
=132 conv
=notrunc
&>/dev
/null \
37662 >/dev
/null
2>/dev
/null
37663 echo -en "\x0c\xb1\xba\0\0\0\0\0" | \
37664 dd of
=$ZFS_DEV bs
=1k count
=8 \
37665 seek
=136 conv
=notrunc
&>/dev
/null \
37666 >/dev
/null
2>/dev
/null
37667 echo -en "\x0c\xb1\xba\0\0\0\0\0" | \
37668 dd of
=$ZFS_DEV bs
=1k count
=8 \
37669 seek
=140 conv
=notrunc
&>/dev
/null \
37670 >/dev
/null
2>/dev
/null
37675 if test "$cross_compiling" = yes; then :
37676 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
37677 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
37678 as_fn_error $?
"cannot run test program while cross compiling
37679 See \`config.log' for more details" "$LINENO" 5; }
37681 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
37682 /* end confdefs.h. */
37685 #include <stdlib.h>
37686 #include <blkid/blkid.h>
37695 if (blkid_get_cache(&cache, NULL) < 0)
37698 value = blkid_get_tag_value(cache, "TYPE",
37701 blkid_put_cache(cache);
37705 if (strcmp(value, "zfs_member")) {
37707 blkid_put_cache(cache);
37712 blkid_put_cache(cache);
37718 if ac_fn_c_try_run
"$LINENO"; then :
37721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37722 $as_echo "yes" >&6; }
37726 $as_echo "#define HAVE_LIBBLKID 1" >>confdefs.h
37732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37733 $as_echo "no" >&6; }
37734 if test "x$with_blkid" != xcheck
; then :
37735 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
37736 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
37737 as_fn_error $?
"--with-blkid given but unavailable
37738 See \`config.log' for more details" "$LINENO" 5; }
37742 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
37743 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
37751 if test "x$with_blkid" != xcheck
; then :
37752 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
37753 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
37754 as_fn_error $?
"--with-blkid given but unavailable
37755 See \`config.log' for more details" "$LINENO" 5; }
37765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -Wframe-larger-than=<size> support" >&5
37766 $as_echo_n "checking for -Wframe-larger-than=<size> support... " >&6; }
37768 saved_flags
="$CFLAGS"
37769 CFLAGS
="$CFLAGS -Wframe-larger-than=1024"
37771 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
37772 /* end confdefs.h. */
37782 if ac_fn_c_try_compile
"$LINENO"; then :
37784 FRAME_LARGER_THAN
=-Wframe-larger-than=1024
37785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37786 $as_echo "yes" >&6; }
37791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37792 $as_echo "no" >&6; }
37795 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
37797 CFLAGS
="$saved_flags"
37801 if test "x$runstatedir" = x
; then
37802 runstatedir
='${localstatedir}/run'
37807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking makedev() is declared in sys/sysmacros.h" >&5
37808 $as_echo_n "checking makedev() is declared in sys/sysmacros.h... " >&6; }
37809 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
37810 /* end confdefs.h. */
37812 #include <sys/sysmacros.h>
37825 if ac_fn_c_try_compile
"$LINENO"; then :
37827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37828 $as_echo "yes" >&6; }
37830 $as_echo "#define HAVE_MAKEDEV_IN_SYSMACROS 1" >>confdefs.h
37835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37836 $as_echo "no" >&6; }
37839 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
37842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking makedev() is declared in sys/mkdev.h" >&5
37843 $as_echo_n "checking makedev() is declared in sys/mkdev.h... " >&6; }
37844 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
37845 /* end confdefs.h. */
37847 #include <sys/mkdev.h>
37860 if ac_fn_c_try_compile
"$LINENO"; then :
37862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37863 $as_echo "yes" >&6; }
37865 $as_echo "#define HAVE_MAKEDEV_IN_MKDEV 1" >>confdefs.h
37870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37871 $as_echo "no" >&6; }
37874 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
37877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -Wno-format-truncation support" >&5
37878 $as_echo_n "checking for -Wno-format-truncation support... " >&6; }
37880 saved_flags
="$CFLAGS"
37881 CFLAGS
="$CFLAGS -Wno-format-truncation"
37883 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
37884 /* end confdefs.h. */
37894 if ac_fn_c_try_compile
"$LINENO"; then :
37896 NO_FORMAT_TRUNCATION
=-Wno-format-truncation
37897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37898 $as_echo "yes" >&6; }
37902 NO_FORMAT_TRUNCATION
=
37903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37904 $as_echo "no" >&6; }
37907 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
37909 CFLAGS
="$saved_flags"
37912 for ac_func
in mlockall
37914 ac_fn_c_check_func
"$LINENO" "mlockall" "ac_cv_func_mlockall"
37915 if test "x$ac_cv_func_mlockall" = xyes
; then :
37916 cat >>confdefs.h
<<_ACEOF
37917 #define HAVE_MLOCKALL 1
37926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Error!" >&5
37927 $as_echo "Error!" >&6; }
37928 as_fn_error $?
"Bad value \"$ZFS_CONFIG\" for --with-config,
37929 user kernel|user|all|srpm" "$LINENO" 5 ;;
37932 if test "$ZFS_CONFIG" = user
-o "$ZFS_CONFIG" = all
; then
37934 CONFIG_USER_FALSE
='#'
37936 CONFIG_USER_TRUE
='#'
37940 if test "$ZFS_CONFIG" = kernel
-o "$ZFS_CONFIG" = all
&&
37941 test "x$enable_linux_builtin" != xyes
; then
37942 CONFIG_KERNEL_TRUE
=
37943 CONFIG_KERNEL_FALSE
='#'
37945 CONFIG_KERNEL_TRUE
='#'
37946 CONFIG_KERNEL_FALSE
=
37949 if test "x$user_libudev" = xyes
; then
37950 WANT_DEVNAME2DEVID_TRUE
=
37951 WANT_DEVNAME2DEVID_FALSE
='#'
37953 WANT_DEVNAME2DEVID_TRUE
='#'
37954 WANT_DEVNAME2DEVID_FALSE
=
37957 if test "x$user_libaio" = xyes
; then
37958 WANT_MMAP_LIBAIO_TRUE
=
37959 WANT_MMAP_LIBAIO_FALSE
='#'
37961 WANT_MMAP_LIBAIO_TRUE
='#'
37962 WANT_MMAP_LIBAIO_FALSE
=
37967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether debugging is enabled" >&5
37968 $as_echo_n "checking whether debugging is enabled... " >&6; }
37969 # Check whether --enable-debug was given.
37970 if test "${enable_debug+set}" = set; then :
37971 enableval
=$enable_debug;
37977 if test "x$enable_debug" = xyes
; then :
37979 KERNELCPPFLAGS
="${KERNELCPPFLAGS} -DDEBUG -Werror"
37980 HOSTCFLAGS
="${HOSTCFLAGS} -DDEBUG -Werror"
37981 DEBUG_CFLAGS
="-DDEBUG -Werror"
37982 DEBUG_STACKFLAGS
="-fstack-check"
37983 DEBUG_ZFS
="_with_debug"
37985 $as_echo "#define ZFS_DEBUG 1" >>confdefs.h
37990 KERNELCPPFLAGS
="${KERNELCPPFLAGS} -DNDEBUG "
37991 HOSTCFLAGS
="${HOSTCFLAGS} -DNDEBUG "
37992 DEBUG_CFLAGS
="-DNDEBUG"
37993 DEBUG_STACKFLAGS
=""
37994 DEBUG_ZFS
="_without_debug"
38001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_debug" >&5
38002 $as_echo "$enable_debug" >&6; }
38005 # Check whether --enable-debug-dmu-tx was given.
38006 if test "${enable_debug_dmu_tx+set}" = set; then :
38007 enableval
=$enable_debug_dmu_tx;
38009 enable_debug_dmu_tx
=no
38013 if test "x$enable_debug_dmu_tx" = xyes
; then :
38015 KERNELCPPFLAGS
="${KERNELCPPFLAGS} -DDEBUG_DMU_TX"
38016 DEBUG_DMU_TX
="_with_debug_dmu_tx"
38018 $as_echo "#define DEBUG_DMU_TX 1" >>confdefs.h
38023 DEBUG_DMU_TX
="_without_debug_dmu_tx"
38028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether dmu tx validation is enabled" >&5
38029 $as_echo_n "checking whether dmu tx validation is enabled... " >&6; }
38030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_debug_dmu_tx" >&5
38031 $as_echo "$enable_debug_dmu_tx" >&6; }
38034 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"
38037 cat >confcache
<<\_ACEOF
38038 # This file is a shell script that caches the results of configure
38039 # tests run on this system so they can be shared between configure
38040 # scripts and configure runs, see configure's option --config-cache.
38041 # It is not useful on other systems. If it contains results you don't
38042 # want to keep, you may remove or edit it.
38044 # config.status only pays attention to the cache file if you give it
38045 # the --recheck option to rerun configure.
38047 # `ac_cv_env_foo' variables (set or unset) will be overridden when
38048 # loading this file, other *unset* `ac_cv_foo' will be assigned the
38049 # following values.
38053 # The following way of writing the cache mishandles newlines in values,
38054 # but we know of no workaround that is simple, portable, and efficient.
38055 # So, we kill variables containing newlines.
38056 # Ultrix sh set writes to stderr and can't be redirected directly,
38057 # and sets the high bit in the cache file unless we assign to the vars.
38059 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
38060 eval ac_val
=\$
$ac_var
38064 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
38065 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
38068 _ | IFS | as_nl
) ;; #(
38069 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
38070 *) { eval $ac_var=; unset $ac_var;} ;;
38076 case $as_nl`(ac_space=' '; set) 2>&1` in #(
38077 *${as_nl}ac_space
=\
*)
38078 # `set' does not quote correctly, so add quotes: double-quote
38079 # substitution turns \\\\ into \\, and sed turns \\ into \.
38082 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
38085 # `set' quotes correctly as required by POSIX, so do not add quotes.
38086 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
38095 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
38097 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
38099 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
38100 if test -w "$cache_file"; then
38101 if test "x$cache_file" != "x/dev/null"; then
38102 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
38103 $as_echo "$as_me: updating cache $cache_file" >&6;}
38104 if test ! -f "$cache_file" ||
test -h "$cache_file"; then
38105 cat confcache
>"$cache_file"
38107 case $cache_file in #(
38109 mv -f confcache
"$cache_file"$$
&&
38110 mv -f "$cache_file"$$
"$cache_file" ;; #(
38112 mv -f confcache
"$cache_file" ;;
38117 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
38118 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
38123 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
38124 # Let make expand exec_prefix.
38125 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
38127 DEFS
=-DHAVE_CONFIG_H
38132 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
38133 # 1. Remove the extension, and $U if already installed.
38134 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
38135 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
38136 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
38137 # will be set to the directory where LIBOBJS objects are built.
38138 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
38139 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
38141 LIBOBJS
=$ac_libobjs
38143 LTLIBOBJS
=$ac_ltlibobjs
38146 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
38147 as_fn_error $?
"conditional \"MAINTAINER_MODE\" was never defined.
38148 Usually this means the macro was only invoked conditionally." "$LINENO" 5
38150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
38151 $as_echo_n "checking that generated files are newer than configure... " >&6; }
38152 if test -n "$am_sleep_pid"; then
38153 # Hide warnings about reused PIDs.
38154 wait $am_sleep_pid 2>/dev
/null
38156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
38157 $as_echo "done" >&6; }
38158 if test -n "$EXEEXT"; then
38160 am__EXEEXT_FALSE
='#'
38162 am__EXEEXT_TRUE
='#'
38166 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
38167 as_fn_error $?
"conditional \"AMDEP\" was never defined.
38168 Usually this means the macro was only invoked conditionally." "$LINENO" 5
38170 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
38171 as_fn_error $?
"conditional \"am__fastdepCC\" was never defined.
38172 Usually this means the macro was only invoked conditionally." "$LINENO" 5
38174 if test -z "${am__fastdepCCAS_TRUE}" && test -z "${am__fastdepCCAS_FALSE}"; then
38175 as_fn_error $?
"conditional \"am__fastdepCCAS\" was never defined.
38176 Usually this means the macro was only invoked conditionally." "$LINENO" 5
38178 if test -z "${CONFIG_USER_TRUE}" && test -z "${CONFIG_USER_FALSE}"; then
38179 as_fn_error $?
"conditional \"CONFIG_USER\" was never defined.
38180 Usually this means the macro was only invoked conditionally." "$LINENO" 5
38182 if test -z "${CONFIG_KERNEL_TRUE}" && test -z "${CONFIG_KERNEL_FALSE}"; then
38183 as_fn_error $?
"conditional \"CONFIG_KERNEL\" was never defined.
38184 Usually this means the macro was only invoked conditionally." "$LINENO" 5
38186 if test -z "${WANT_DEVNAME2DEVID_TRUE}" && test -z "${WANT_DEVNAME2DEVID_FALSE}"; then
38187 as_fn_error $?
"conditional \"WANT_DEVNAME2DEVID\" was never defined.
38188 Usually this means the macro was only invoked conditionally." "$LINENO" 5
38190 if test -z "${WANT_MMAP_LIBAIO_TRUE}" && test -z "${WANT_MMAP_LIBAIO_FALSE}"; then
38191 as_fn_error $?
"conditional \"WANT_MMAP_LIBAIO\" was never defined.
38192 Usually this means the macro was only invoked conditionally." "$LINENO" 5
38195 : "${CONFIG_STATUS=./config.status}"
38197 ac_clean_files_save
=$ac_clean_files
38198 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
38199 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
38200 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
38202 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
38204 # Generated by $as_me.
38205 # Run this file to recreate the current configuration.
38206 # Compiler output produced by configure, useful for debugging
38207 # configure, is in config.log if it exists.
38210 ac_cs_recheck=false
38213 SHELL=\${CONFIG_SHELL-$SHELL}
38216 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail
=1
38217 ## -------------------- ##
38218 ## M4sh Initialization. ##
38219 ## -------------------- ##
38221 # Be more Bourne compatible
38222 DUALCASE
=1; export DUALCASE
# for MKS sh
38223 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
38226 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
38227 # is contrary to our usage. Disable this feature.
38228 alias -g '${1+"$@"}'='"$@"'
38229 setopt NO_GLOB_SUBST
38231 case `(set -o) 2>/dev/null` in #(
38243 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38244 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
38245 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
38246 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
38247 # Prefer a ksh shell builtin over an external printf program on Solaris,
38248 # but without wasting forks for bash or zsh.
38249 if test -z "$BASH_VERSION$ZSH_VERSION" \
38250 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
38251 as_echo='print
-r --'
38252 as_echo_n='print
-rn --'
38253 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
38254 as_echo='printf %s
\n'
38255 as_echo_n='printf %s
'
38257 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
38258 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
38259 as_echo_n='/usr
/ucb
/echo -n'
38261 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
38262 as_echo_n_body='eval
38266 expr "X$arg" : "X\\(.*\\)$as_nl";
38267 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
38269 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
38271 export as_echo_n_body
38272 as_echo_n='sh
-c $as_echo_n_body as_echo
'
38274 export as_echo_body
38275 as_echo='sh
-c $as_echo_body as_echo
'
38278 # The user is always right.
38279 if test "${PATH_SEPARATOR+set}" != set; then
38281 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
38282 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
38289 # We need space, tab and new line, in precisely that order. Quoting is
38290 # there to prevent editors from complaining about space-tab.
38291 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
38292 # splitting by setting IFS to empty value.)
38295 # Find who we are. Look in the path if we contain no directory separator.
38298 *[\\/]* ) as_myself=$0 ;;
38299 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
38300 for as_dir in $PATH
38303 test -z "$as_dir" && as_dir=.
38304 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
38310 # We did not find ourselves, most probably we were run as `sh COMMAND'
38311 # in which case we are not to be found in the path.
38312 if test "x$as_myself" = x
; then
38315 if test ! -f "$as_myself"; then
38316 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
38320 # Unset variables that we do not need and which cause bugs (e.g. in
38321 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
38322 # suppresses any "Segmentation fault" message there. '((' could
38323 # trigger a bug in pdksh 5.2.14.
38324 for as_var
in BASH_ENV ENV MAIL MAILPATH
38325 do eval test x\
${$as_var+set} = xset \
38326 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
38339 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
38342 # as_fn_error STATUS ERROR [LINENO LOG_FD]
38343 # ----------------------------------------
38344 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
38345 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
38346 # script with STATUS, using 1 if that was 0.
38349 as_status
=$1; test $as_status -eq 0 && as_status
=1
38351 as_lineno
=${as_lineno-"$3"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
38352 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
38354 $as_echo "$as_me: error: $2" >&2
38355 as_fn_exit
$as_status
38359 # as_fn_set_status STATUS
38360 # -----------------------
38361 # Set $? to STATUS, without forking.
38362 as_fn_set_status
()
38365 } # as_fn_set_status
38367 # as_fn_exit STATUS
38368 # -----------------
38369 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
38373 as_fn_set_status
$1
38379 # Portably unset VAR.
38382 { eval $1=; unset $1;}
38384 as_unset
=as_fn_unset
38385 # as_fn_append VAR VALUE
38386 # ----------------------
38387 # Append the text in VALUE to the end of the definition contained in VAR. Take
38388 # advantage of any shell optimizations that allow amortized linear growth over
38389 # repeated appends, instead of the typical quadratic growth present in naive
38391 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
38392 eval 'as_fn_append ()
38403 # as_fn_arith ARG...
38404 # ------------------
38405 # Perform arithmetic evaluation on the ARGs, and store the result in the
38406 # global $as_val. Take advantage of shells that can avoid forks. The arguments
38407 # must be portable across $(()) and expr.
38408 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
38409 eval 'as_fn_arith ()
38416 as_val
=`expr "$@" || test $? -eq 1`
38421 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
38422 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
38428 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
38429 as_basename
=basename
38434 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
38440 as_me
=`$as_basename -- "$0" ||
38441 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
38442 X"$0" : 'X\(//\)$' \| \
38443 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
38445 sed '/^.*\/\([^/][^/]*\)\/*$/{
38459 # Avoid depending upon Character Ranges.
38460 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
38461 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
38462 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
38463 as_cr_digits
='0123456789'
38464 as_cr_alnum
=$as_cr_Letters$as_cr_digits
38466 ECHO_C
= ECHO_N
= ECHO_T
=
38467 case `echo -n x` in #(((((
38469 case `echo 'xy\c'` in
38470 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
38472 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
38479 rm -f conf$$ conf$$.exe conf$$.
file
38480 if test -d conf$$.dir
; then
38481 rm -f conf$$.dir
/conf$$.
file
38484 mkdir conf$$.dir
2>/dev
/null
38486 if (echo >conf$$.
file) 2>/dev
/null
; then
38487 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
38489 # ... but there are two gotchas:
38490 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
38491 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
38492 # In both cases, we have to default to `cp -pR'.
38493 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
38495 elif ln conf$$.
file conf$$
2>/dev
/null
; then
38503 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
38504 rmdir conf$$.dir
2>/dev
/null
38509 # Create "$as_dir" as a directory, including parents if necessary.
38514 -*) as_dir
=.
/$as_dir;;
38516 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
38520 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
38521 *) as_qdir
=$as_dir;;
38523 as_dirs
="'$as_qdir' $as_dirs"
38524 as_dir
=`$as_dirname -- "$as_dir" ||
38525 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
38526 X"$as_dir" : 'X\(//\)[^/]' \| \
38527 X"$as_dir" : 'X\(//\)$' \| \
38528 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
38529 $as_echo X"$as_dir" |
38530 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
38534 /^X\(\/\/\)[^/].*/{
38547 test -d "$as_dir" && break
38549 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
38550 } ||
test -d "$as_dir" || as_fn_error $?
"cannot create directory $as_dir"
38554 if mkdir
-p .
2>/dev
/null
; then
38555 as_mkdir_p
='mkdir -p "$as_dir"'
38557 test -d .
/-p && rmdir .
/-p
38562 # as_fn_executable_p FILE
38563 # -----------------------
38564 # Test if FILE is an executable regular file.
38565 as_fn_executable_p
()
38567 test -f "$1" && test -x "$1"
38568 } # as_fn_executable_p
38569 as_test_x
='test -x'
38570 as_executable_p
=as_fn_executable_p
38572 # Sed expression to map a string onto a valid CPP name.
38573 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
38575 # Sed expression to map a string onto a valid variable name.
38576 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
38580 ## ----------------------------------- ##
38581 ## Main body of $CONFIG_STATUS script. ##
38582 ## ----------------------------------- ##
38584 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
38586 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
38587 # Save the log message, to keep $0 and so on meaningful, and to
38588 # report actual input values of CONFIG_FILES etc. instead of their
38589 # values after options handling.
38591 This file was extended by zfs $as_me 0.6.5.11, which was
38592 generated by GNU Autoconf 2.69. Invocation command line was
38594 CONFIG_FILES = $CONFIG_FILES
38595 CONFIG_HEADERS = $CONFIG_HEADERS
38596 CONFIG_LINKS = $CONFIG_LINKS
38597 CONFIG_COMMANDS = $CONFIG_COMMANDS
38600 on `(hostname || uname -n) 2>/dev/null | sed 1q`
38605 case $ac_config_files in *"
38606 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
38609 case $ac_config_headers in *"
38610 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
38614 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
38615 # Files that config.status was made for.
38616 config_files="$ac_config_files"
38617 config_headers="$ac_config_headers"
38618 config_commands="$ac_config_commands"
38622 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
38624 \`$as_me' instantiates files and other configuration actions
38625 from templates according to the current configuration. Unless the files
38626 and actions are specified as TAGs, all are instantiated by default.
38628 Usage: $0 [OPTION]... [TAG]...
38630 -h, --help print this help, then exit
38631 -V, --version print version number and configuration settings, then exit
38632 --config print configuration, then exit
38633 -q, --quiet, --silent
38634 do not print progress messages
38635 -d, --debug don't remove temporary files
38636 --recheck update $as_me by reconfiguring in the same conditions
38637 --file=FILE[:TEMPLATE]
38638 instantiate the configuration file FILE
38639 --header=FILE[:TEMPLATE]
38640 instantiate the configuration header FILE
38642 Configuration files:
38645 Configuration headers:
38648 Configuration commands:
38651 Report bugs to the package provider."
38654 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
38655 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
38657 zfs config.status 0.6.5.11
38658 configured by $0, generated by GNU Autoconf 2.69,
38659 with options \\"\$ac_cs_config\\"
38661 Copyright (C) 2012 Free Software Foundation, Inc.
38662 This config.status script is free software; the Free Software Foundation
38663 gives unlimited permission to copy, distribute and modify it."
38670 test -n "\$AWK" || AWK=awk
38673 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
38674 # The default lists apply if the user does not specify any file.
38680 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
38681 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
38685 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
38697 # Handling of the options.
38698 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
38700 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
38701 $as_echo "$ac_cs_version"; exit ;;
38702 --config |
--confi |
--conf |
--con |
--co |
--c )
38703 $as_echo "$ac_cs_config"; exit ;;
38704 --debug |
--debu |
--deb |
--de |
--d |
-d )
38706 --file |
--fil |
--fi |
--f )
38709 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
38710 '') as_fn_error $?
"missing file argument" ;;
38712 as_fn_append CONFIG_FILES
" '$ac_optarg'"
38713 ac_need_defaults
=false
;;
38714 --header |
--heade |
--head |
--hea )
38717 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
38719 as_fn_append CONFIG_HEADERS
" '$ac_optarg'"
38720 ac_need_defaults
=false
;;
38722 # Conflict between --help and --header
38723 as_fn_error $?
"ambiguous option: \`$1'
38724 Try \`$0 --help' for more information.";;
38725 --help |
--hel |
-h )
38726 $as_echo "$ac_cs_usage"; exit ;;
38727 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
38728 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
38731 # This is an error.
38732 -*) as_fn_error $?
"unrecognized option: \`$1'
38733 Try \`$0 --help' for more information." ;;
38735 *) as_fn_append ac_config_targets
" $1"
38736 ac_need_defaults
=false
;;
38742 ac_configure_extra_args
=
38744 if $ac_cs_silent; then
38746 ac_configure_extra_args
="$ac_configure_extra_args --silent"
38750 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
38751 if \$ac_cs_recheck; then
38752 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
38754 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
38755 CONFIG_SHELL='$SHELL'
38756 export CONFIG_SHELL
38761 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
38765 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
38766 ## Running $as_me. ##
38772 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
38776 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
38779 # The HP-UX ksh and POSIX shell print the target directory to stdout
38780 # if CDPATH is set.
38781 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
38783 sed_quote_subst='$sed_quote_subst'
38784 double_quote_subst='$double_quote_subst'
38785 delay_variable_subst='$delay_variable_subst'
38786 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
38787 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
38788 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
38789 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
38790 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
38791 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
38792 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
38793 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
38794 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
38795 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
38796 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
38797 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
38798 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
38799 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
38800 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
38801 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
38802 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
38803 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
38804 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
38805 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
38806 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
38807 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
38808 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
38809 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
38810 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
38811 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
38812 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
38813 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
38814 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
38815 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
38816 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
38817 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
38818 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
38819 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
38820 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
38821 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
38822 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
38823 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
38824 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
38825 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
38826 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
38827 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
38828 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
38829 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
38830 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
38831 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
38832 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
38833 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
38834 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
38835 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
38836 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
38837 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
38838 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
38839 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
38840 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
38841 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
38842 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
38843 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
38844 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"`'
38845 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
38846 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
38847 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
38848 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
38849 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
38850 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
38851 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
38852 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
38853 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
38854 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
38855 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
38856 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
38857 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
38858 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
38859 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
38860 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
38861 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
38862 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
38863 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
38864 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
38865 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
38866 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
38867 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
38868 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
38869 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
38870 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
38871 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
38872 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
38873 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
38874 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
38875 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
38876 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
38877 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
38878 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
38879 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
38880 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
38881 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
38882 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
38883 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
38884 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
38885 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
38886 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
38887 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
38888 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
38889 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
38890 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
38891 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
38892 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
38893 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
38894 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
38895 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
38896 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
38897 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
38898 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
38899 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
38900 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
38901 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
38902 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
38903 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
38904 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
38905 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
38906 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
38907 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
38908 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
38909 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
38910 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
38911 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
38912 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
38913 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
38914 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
38915 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
38916 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
38917 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
38918 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
38919 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
38920 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
38923 LTCFLAGS='$LTCFLAGS'
38924 compiler='$compiler_DEFAULT'
38926 # A function that is used when there is no print builtin or printf.
38927 func_fallback_echo ()
38929 eval 'cat <<_LTECHO_EOF
38934 # Quote evaled strings.
38949 deplibs_check_method \
38954 sharedlib_from_linklib_cmd \
38957 archiver_list_spec \
38963 lt_cv_sys_global_symbol_pipe \
38964 lt_cv_sys_global_symbol_to_cdecl \
38965 lt_cv_sys_global_symbol_to_import \
38966 lt_cv_sys_global_symbol_to_c_name_address \
38967 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
38968 lt_cv_nm_interface \
38969 nm_file_list_spec \
38970 lt_cv_truncate_bin \
38971 lt_prog_compiler_no_builtin_flag \
38972 lt_prog_compiler_pic \
38973 lt_prog_compiler_wl \
38974 lt_prog_compiler_static \
38975 lt_cv_prog_compiler_c_o \
38984 export_dynamic_flag_spec \
38985 whole_archive_flag_spec \
38986 compiler_needs_object \
38988 allow_undefined_flag \
38989 no_undefined_flag \
38990 hardcode_libdir_flag_spec \
38991 hardcode_libdir_separator \
38995 variables_saved_for_relink \
38997 library_names_spec \
38999 install_override_mode \
39003 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
39004 *[\\\\\\\`\\"\\\$]*)
39005 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
39008 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
39013 # Double-quote double-evaled strings.
39014 for var in reload_cmds \
39015 old_postinstall_cmds \
39016 old_postuninstall_cmds \
39018 extract_expsyms_cmds \
39019 old_archive_from_new_cmds \
39020 old_archive_from_expsyms_cmds \
39022 archive_expsym_cmds \
39024 module_expsym_cmds \
39025 export_symbols_cmds \
39029 postuninstall_cmds \
39031 sys_lib_search_path_spec \
39032 configure_time_dlsearch_path \
39033 configure_time_lt_sys_library_path; do
39034 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
39035 *[\\\\\\\`\\"\\\$]*)
39036 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
39039 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
39044 ac_aux_dir='$ac_aux_dir'
39046 # See if we are running on zsh, and set the options that allow our
39047 # commands through without removal of \ escapes INIT.
39048 if test -n "\${ZSH_VERSION+set}"; then
39049 setopt NO_GLOB_SUBST
39063 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
39065 # Handling of arguments.
39066 for ac_config_target
in $ac_config_targets
39068 case $ac_config_target in
39069 "zfs_config.h") CONFIG_HEADERS
="$CONFIG_HEADERS zfs_config.h" ;;
39070 "depfiles") CONFIG_COMMANDS
="$CONFIG_COMMANDS depfiles" ;;
39071 "libtool") CONFIG_COMMANDS
="$CONFIG_COMMANDS libtool" ;;
39072 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
39073 "module/Makefile") CONFIG_FILES
="$CONFIG_FILES module/Makefile" ;;
39074 "module/avl/Makefile") CONFIG_FILES
="$CONFIG_FILES module/avl/Makefile" ;;
39075 "module/nvpair/Makefile") CONFIG_FILES
="$CONFIG_FILES module/nvpair/Makefile" ;;
39076 "module/unicode/Makefile") CONFIG_FILES
="$CONFIG_FILES module/unicode/Makefile" ;;
39077 "module/zcommon/Makefile") CONFIG_FILES
="$CONFIG_FILES module/zcommon/Makefile" ;;
39078 "module/zfs/Makefile") CONFIG_FILES
="$CONFIG_FILES module/zfs/Makefile" ;;
39079 "module/zpios/Makefile") CONFIG_FILES
="$CONFIG_FILES module/zpios/Makefile" ;;
39080 "include/Makefile") CONFIG_FILES
="$CONFIG_FILES include/Makefile" ;;
39081 "include/linux/Makefile") CONFIG_FILES
="$CONFIG_FILES include/linux/Makefile" ;;
39082 "include/sys/Makefile") CONFIG_FILES
="$CONFIG_FILES include/sys/Makefile" ;;
39083 "include/sys/fs/Makefile") CONFIG_FILES
="$CONFIG_FILES include/sys/fs/Makefile" ;;
39084 "include/sys/fm/Makefile") CONFIG_FILES
="$CONFIG_FILES include/sys/fm/Makefile" ;;
39085 "include/sys/fm/fs/Makefile") CONFIG_FILES
="$CONFIG_FILES include/sys/fm/fs/Makefile" ;;
39086 "zfs.release") CONFIG_FILES
="$CONFIG_FILES zfs.release" ;;
39088 *) as_fn_error $?
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
39093 # If the user did not use the arguments to specify the items to instantiate,
39094 # then the envvar interface is used. Set only those that are not.
39095 # We use the long form for the default assignment because of an extremely
39096 # bizarre bug on SunOS 4.1.3.
39097 if $ac_need_defaults; then
39098 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
39099 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
39100 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
39103 # Have a temporary directory for convenience. Make it in the build tree
39104 # simply because there is no reason against having it here, and in addition,
39105 # creating and moving files from /tmp can sometimes cause problems.
39106 # Hook for its removal unless debugging.
39107 # Note that there is a small window in which the directory will not be cleaned:
39108 # after its creation but before its name has been assigned to `$tmp'.
39112 trap 'exit_status=$?
39113 : "${ac_tmp:=$tmp}"
39114 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
39116 trap 'as_fn_exit 1' 1 2 13 15
39118 # Create a (secure) tmp directory for tmp files.
39121 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
39125 tmp
=.
/conf$$
-$RANDOM
39126 (umask 077 && mkdir
"$tmp")
39127 } || as_fn_error $?
"cannot create a temporary directory in ." "$LINENO" 5
39130 # Set up the scripts for CONFIG_FILES section.
39131 # No need to generate them if there are no CONFIG_FILES.
39132 # This happens for instance with `./config.status config.h'.
39133 if test -n "$CONFIG_FILES"; then
39136 ac_cr
=`echo X | tr X '\015'`
39137 # On cygwin, bash can eat \r inside `` if the user requested igncr.
39138 # But we know of no other shell where ac_cr would be empty at this
39139 # point, so we can use a bashism as a fallback.
39140 if test "x$ac_cr" = x
; then
39141 eval ac_cr
=\$
\'\\r
\'
39143 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
39144 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
39147 ac_cs_awk_cr
=$ac_cr
39150 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
39155 echo "cat >conf$$subs.awk <<_ACEOF" &&
39156 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
39158 } >conf$$subs.sh ||
39159 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
39160 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
39162 for ac_last_try in false false false false false :; do
39163 . ./conf$$subs.sh ||
39164 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
39166 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
39167 if test $ac_delim_n = $ac_delim_num; then
39169 elif $ac_last_try; then
39170 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
39172 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
39175 rm -f conf$$subs.sh
39177 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
39178 cat >>"\
$ac_tmp/subs1.
awk" <<\\_ACAWK &&
39182 s/^/S["/; s
/!.
*/"]=/
39192 s/\(.\{148\}\)..*/\1/
39194 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
39199 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
39206 s/\(.\{148\}\)..*/\1/
39208 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
39212 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
39217 ' <conf$$subs.awk | sed '
39222 ' >>$CONFIG_STATUS || ac_write_fail=1
39223 rm -f conf$$subs.awk
39224 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
39226 cat >>"\
$ac_tmp/subs1.
awk" <<_ACAWK &&
39227 for (key in S) S_is_set[key] = 1
39233 nfields = split(line, field, "@
")
39235 len = length(field[1])
39236 for (i = 2; i < nfields; i++) {
39238 keylen = length(key)
39239 if (S_is_set[key]) {
39241 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
39242 len += length(value) + length(field[++i])
39253 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
39254 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
39255 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
39258 fi < "$ac_tmp/subs1.
awk" > "$ac_tmp/subs.
awk" \
39259 || as_fn_error $? "could not setup config files machinery
" "$LINENO" 5
39262 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
39263 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".
", strip leading and
39264 # trailing colons and then remove the whole line if VPATH becomes empty
39265 # (actually we leave an empty line to preserve line numbers).
39266 if test "x
$srcdir" = x.; then
39267 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
39285 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
39286 fi # test -n "$CONFIG_FILES"
39288 # Set up the scripts for CONFIG_HEADERS section.
39289 # No need to generate them if there are no CONFIG_HEADERS.
39290 # This happens for instance with `./config.status Makefile'.
39291 if test -n "$CONFIG_HEADERS"; then
39292 cat >"$ac_tmp/defines.
awk" <<\_ACAWK ||
39296 # Transform confdefs.h into an awk script `defines.awk', embedded as
39297 # here-document in config.status, that substitutes the proper values into
39298 # config.h.in to produce config.h.
39300 # Create a delimiter string that does not exist in confdefs.h, to ease
39301 # handling of long lines.
39303 for ac_last_try in false false :; do
39304 ac_tt=`sed -n "/$ac_delim/p
" confdefs.h`
39305 if test -z "$ac_tt"; then
39307 elif $ac_last_try; then
39308 as_fn_error $? "could not
make $CONFIG_HEADERS" "$LINENO" 5
39310 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
39314 # For the awk script, D is an array of macro values keyed by name,
39315 # likewise P contains macro parameters if any. Preserve backslash
39316 # newline sequences.
39318 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
39320 s/.\{148\}/&'"$ac_delim"'/g
39323 s/^[ ]*#[ ]*define[ ][ ]*/ /
39330 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
39332 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
39336 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
39337 D["\
1"]=" \
3\\\\\\n
"\\/p
39339 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
39344 s/.\{148\}/&'"$ac_delim"'/g
39349 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
39352 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
39354 ' <confdefs.h | sed '
39355 s/'"$ac_delim"'/"\\\
39356 "/g' >>$CONFIG_STATUS || ac_write_fail=1
39358 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
39359 for (key in D) D_is_set[key] = 1
39362 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
39364 split(line, arg, " ")
39365 if (arg[1] == "#") {
39369 defundef
= substr
(arg
[1], 2)
39372 split(mac1
, mac2
, "(") #)
39374 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
39375 if (D_is_set
[macro
]) {
39376 # Preserve the white space surrounding the "#".
39377 print prefix
"define", macro P
[macro
] D
[macro
]
39380 # Replace #undef with comments. This is necessary, for example,
39381 # in the case of _POSIX_SOURCE, which is predefined and required
39382 # on some systems where configure will not decide to define it.
39383 if (defundef
== "undef") {
39384 print
"/*", prefix defundef
, macro
, "*/"
39392 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
39393 as_fn_error $?
"could not setup config headers machinery" "$LINENO" 5
39394 fi # test -n "$CONFIG_HEADERS"
39397 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
39402 :[FHLC
]) ac_mode
=$ac_tag; continue;;
39404 case $ac_mode$ac_tag in
39406 :L
* |
:C
*:*) as_fn_error $?
"invalid tag \`$ac_tag'" "$LINENO" 5;;
39407 :[FH
]-) ac_tag
=-:-;;
39408 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
39425 -) ac_f
="$ac_tmp/stdin";;
39426 *) # Look for the file first in the build tree, then in the source tree
39427 # (if the path is not absolute). The absolute path cannot be DOS-style,
39428 # because $ac_f cannot contain `:'.
39432 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
39434 as_fn_error
1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
39436 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
39437 as_fn_append ac_file_inputs
" '$ac_f'"
39440 # Let's still pretend it is `configure' which instantiates (i.e., don't
39441 # use $as_me), people would be surprised to read:
39442 # /* config.h. Generated by config.status. */
39443 configure_input
='Generated from '`
39444 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
39446 if test x
"$ac_file" != x-
; then
39447 configure_input
="$ac_file. $configure_input"
39448 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
39449 $as_echo "$as_me: creating $ac_file" >&6;}
39451 # Neutralize special characters interpreted by sed in replacement strings.
39452 case $configure_input in #(
39453 *\
&* |
*\|
* |
*\\* )
39454 ac_sed_conf_input
=`$as_echo "$configure_input" |
39455 sed 's/[\\\\&|]/\\\\&/g'`;; #(
39456 *) ac_sed_conf_input
=$configure_input;;
39460 *:-:* |
*:-) cat >"$ac_tmp/stdin" \
39461 || as_fn_error $?
"could not create $ac_file" "$LINENO" 5 ;;
39466 ac_dir
=`$as_dirname -- "$ac_file" ||
39467 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
39468 X"$ac_file" : 'X\(//\)[^/]' \| \
39469 X"$ac_file" : 'X\(//\)$' \| \
39470 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
39471 $as_echo X"$ac_file" |
39472 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
39476 /^X\(\/\/\)[^/].*/{
39489 as_dir
="$ac_dir"; as_fn_mkdir_p
39493 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
39495 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
39496 # A ".." for each directory in $ac_dir_suffix.
39497 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
39498 case $ac_top_builddir_sub in
39499 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
39500 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
39503 ac_abs_top_builddir
=$ac_pwd
39504 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
39505 # for backward compatibility:
39506 ac_top_builddir
=$ac_top_build_prefix
39509 .
) # We are building in place.
39511 ac_top_srcdir
=$ac_top_builddir_sub
39512 ac_abs_top_srcdir
=$ac_pwd ;;
39513 [\\/]* | ?
:[\\/]* ) # Absolute name.
39514 ac_srcdir
=$srcdir$ac_dir_suffix;
39515 ac_top_srcdir
=$srcdir
39516 ac_abs_top_srcdir
=$srcdir ;;
39517 *) # Relative name.
39518 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
39519 ac_top_srcdir
=$ac_top_build_prefix$srcdir
39520 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
39522 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
39532 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
39533 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
39535 ac_MKDIR_P
=$MKDIR_P
39537 [\\/$
]* | ?
:[\\/]* ) ;;
39538 */*) ac_MKDIR_P
=$ac_top_build_prefix$MKDIR_P ;;
39542 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
39543 # If the template does not know about datarootdir, expand it.
39544 # FIXME: This hack should be removed a few years after 2.60.
39545 ac_datarootdir_hack
=; ac_datarootdir_seen
=
39556 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
39557 *datarootdir
*) ac_datarootdir_seen
=yes;;
39558 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
39559 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
39560 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
39562 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
39563 ac_datarootdir_hack='
39564 s&@datadir@&$datadir&g
39565 s&@docdir@&$docdir&g
39566 s&@infodir@&$infodir&g
39567 s&@localedir@&$localedir&g
39568 s&@mandir@&$mandir&g
39569 s&\\\${datarootdir}&$datarootdir&g' ;;
39573 # Neutralize VPATH when `$srcdir' = `.'.
39574 # Shell code in configure.ac might set extrasub.
39575 # FIXME: do we really want to maintain this feature?
39576 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
39577 ac_sed_extra="$ac_vpsub
39580 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
39582 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
39583 s|@configure_input@|
$ac_sed_conf_input|
;t t
39584 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
39585 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
39586 s
&@srcdir@
&$ac_srcdir&;t t
39587 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
39588 s
&@top_srcdir@
&$ac_top_srcdir&;t t
39589 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
39590 s
&@builddir@
&$ac_builddir&;t t
39591 s
&@abs_builddir@
&$ac_abs_builddir&;t t
39592 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
39593 s
&@INSTALL@
&$ac_INSTALL&;t t
39594 s
&@MKDIR_P@
&$ac_MKDIR_P&;t t
39595 $ac_datarootdir_hack
39597 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.
awk" \
39598 >$ac_tmp/out || as_fn_error $? "could not create
$ac_file" "$LINENO" 5
39600 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
39601 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out
"`; test -n "$ac_out"; } &&
39602 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
39603 "$ac_tmp/out
"`; test -z "$ac_out"; } &&
39604 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
39605 which seems to be undefined. Please make sure it is defined" >&5
39606 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
39607 which seems to be undefined. Please make sure it is defined" >&2;}
39609 rm -f "$ac_tmp/stdin"
39611 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
39612 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
39614 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
39620 if test x"$ac_file" != x-; then
39622 $as_echo "/* $configure_input */" \
39623 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
39624 } >"$ac_tmp/config.h" \
39625 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
39626 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
39627 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
39628 $as_echo "$as_me: $ac_file is unchanged" >&6;}
39631 mv "$ac_tmp/config.h" "$ac_file" \
39632 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
39635 $as_echo "/* $configure_input */" \
39636 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
39637 || as_fn_error $? "could not create -" "$LINENO" 5
39639 # Compute "$ac_file"'s index
in $config_headers.
39642 for _am_header
in $config_headers :; do
39643 case $_am_header in
39644 $_am_arg |
$_am_arg:* )
39647 _am_stamp_count
=`expr $_am_stamp_count + 1` ;;
39650 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
39651 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
39652 X"$_am_arg" : 'X\(//\)[^/]' \| \
39653 X"$_am_arg" : 'X\(//\)$' \| \
39654 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
39655 $as_echo X"$_am_arg" |
39656 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
39660 /^X\(\/\/\)[^/].*/{
39672 s/.*/./; q'`/stamp-h
$_am_stamp_count
39675 :C
) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
39676 $as_echo "$as_me: executing $ac_file commands" >&6;}
39681 case $ac_file$ac_mode in
39683 (mv zfs_config.h zfs_config.h.tmp
&&
39684 awk -f ${ac_srcdir}/config
/config.
awk zfs_config.h.tmp
>zfs_config.h
&&
39685 rm zfs_config.h.tmp
) ||
exit 1 ;;
39686 "depfiles":C
) test x
"$AMDEP_TRUE" != x
"" ||
{
39687 # Older Autoconf quotes --file arguments for eval, but not when files
39688 # are listed without --file. Let's play safe and only enable the eval
39689 # if we detect the quoting.
39690 case $CONFIG_FILES in
39691 *\'*) eval set x
"$CONFIG_FILES" ;;
39692 *) set x
$CONFIG_FILES ;;
39697 # Strip MF so we end up with the name of the file.
39698 mf
=`echo "$mf" | sed -e 's/:.*$//'`
39699 # Check whether this is an Automake generated Makefile or not.
39700 # We used to match only the files named 'Makefile.in', but
39701 # some people rename them; so instead we look at the file content.
39702 # Grep'ing the first line is not enough: some people post-process
39703 # each Makefile.in and add a new line on top of each file to say so.
39704 # Grep'ing the whole file is not good either: AIX grep has a line
39705 # limit of 2048, but all sed's we know have understand at least 4000.
39706 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" |
grep X
>/dev
/null
2>&1; then
39707 dirpart
=`$as_dirname -- "$mf" ||
39708 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
39709 X"$mf" : 'X\(//\)[^/]' \| \
39710 X"$mf" : 'X\(//\)$' \| \
39711 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
39713 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
39717 /^X\(\/\/\)[^/].*/{
39733 # Extract the definition of DEPDIR, am__include, and am__quote
39734 # from the Makefile without running 'make'.
39735 DEPDIR
=`sed -n 's/^DEPDIR = //p' < "$mf"`
39736 test -z "$DEPDIR" && continue
39737 am__include
=`sed -n 's/^am__include = //p' < "$mf"`
39738 test -z "$am__include" && continue
39739 am__quote
=`sed -n 's/^am__quote = //p' < "$mf"`
39740 # Find all dependency output files, they are included files with
39741 # $(DEPDIR) in their names. We invoke sed twice because it is the
39742 # simplest approach to changing $(DEPDIR) to its actual value in the
39744 for file in `sed -n "
39745 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
39746 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
39747 # Make sure the directory exists.
39748 test -f "$dirpart/$file" && continue
39749 fdir
=`$as_dirname -- "$file" ||
39750 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
39751 X"$file" : 'X\(//\)[^/]' \| \
39752 X"$file" : 'X\(//\)$' \| \
39753 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
39754 $as_echo X"$file" |
39755 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
39759 /^X\(\/\/\)[^/].*/{
39772 as_dir
=$dirpart/$fdir; as_fn_mkdir_p
39773 # echo "creating $dirpart/$file"
39774 echo '# dummy' > "$dirpart/$file"
39781 # See if we are running on zsh, and set the options that allow our
39782 # commands through without removal of \ escapes.
39783 if test -n "${ZSH_VERSION+set}"; then
39784 setopt NO_GLOB_SUBST
39788 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
39791 cat <<_LT_EOF >> "$cfgfile"
39793 # Generated automatically by $as_me ($PACKAGE) $VERSION
39794 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
39796 # Provide generalized library-building support services.
39797 # Written by Gordon Matzigkeit, 1996
39799 # Copyright (C) 2014 Free Software Foundation, Inc.
39800 # This is free software; see the source for copying conditions. There is NO
39801 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
39803 # GNU Libtool is free software; you can redistribute it and/or modify
39804 # it under the terms of the GNU General Public License as published by
39805 # the Free Software Foundation; either version 2 of of the License, or
39806 # (at your option) any later version.
39808 # As a special exception to the GNU General Public License, if you
39809 # distribute this file as part of a program or library that is built
39810 # using GNU Libtool, you may include this file under the same
39811 # distribution terms that you use for the rest of that program.
39813 # GNU Libtool is distributed in the hope that it will be useful, but
39814 # WITHOUT ANY WARRANTY; without even the implied warranty of
39815 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
39816 # GNU General Public License for more details.
39818 # You should have received a copy of the GNU General Public License
39819 # along with this program. If not, see <http://www.gnu.org/licenses/>.
39822 # The names of the tagged configurations supported by this script.
39825 # Configured defaults for sys_lib_dlsearch_path munging.
39826 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
39828 # ### BEGIN LIBTOOL CONFIG
39830 # Which release of libtool.m4 was used?
39831 macro_version=$macro_version
39832 macro_revision=$macro_revision
39834 # Whether or not to build shared libraries.
39835 build_libtool_libs=$enable_shared
39837 # Whether or not to build static libraries.
39838 build_old_libs=$enable_static
39840 # What type of objects to build.
39843 # Whether or not to optimize for fast installation.
39844 fast_install=$enable_fast_install
39846 # Shared archive member basename,for filename based shared library versioning on AIX.
39847 shared_archive_member_spec=$shared_archive_member_spec
39849 # Shell to use when invoking shell scripts.
39852 # An echo program that protects backslashes.
39855 # The PATH separator for the build system.
39856 PATH_SEPARATOR=$lt_PATH_SEPARATOR
39859 host_alias=$host_alias
39863 # The build system.
39864 build_alias=$build_alias
39868 # A sed program that does not truncate output.
39871 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
39872 Xsed="\$SED -e 1s/^X//"
39874 # A grep program that handles long lines.
39880 # A literal string matcher.
39883 # A BSD- or MS-compatible name lister.
39886 # Whether we need soft or hard links.
39889 # What is the maximum length of a command?
39890 max_cmd_len=$max_cmd_len
39892 # Object file suffix (normally "o").
39895 # Executable file suffix (normally "").
39898 # whether the shell understands "unset".
39901 # turn spaces into newlines.
39904 # turn newlines into spaces.
39907 # convert \$build file names to \$host format.
39908 to_host_file_cmd=$lt_cv_to_host_file_cmd
39910 # convert \$build files to toolchain format.
39911 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
39913 # An object symbol dumper.
39914 OBJDUMP=$lt_OBJDUMP
39916 # Method to check whether dependent libraries are shared objects.
39917 deplibs_check_method=$lt_deplibs_check_method
39919 # Command to use when deplibs_check_method = "file_magic".
39920 file_magic_cmd=$lt_file_magic_cmd
39922 # How to find potential files when deplibs_check_method = "file_magic".
39923 file_magic_glob=$lt_file_magic_glob
39925 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
39926 want_nocaseglob=$lt_want_nocaseglob
39928 # DLL creation program.
39929 DLLTOOL=$lt_DLLTOOL
39931 # Command to associate shared and link libraries.
39932 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
39937 # Flags to create an archive.
39938 AR_FLAGS=$lt_AR_FLAGS
39940 # How to feed a file listing to the archiver.
39941 archiver_list_spec=$lt_archiver_list_spec
39943 # A symbol stripping program.
39946 # Commands used to install an old-style archive.
39948 old_postinstall_cmds=$lt_old_postinstall_cmds
39949 old_postuninstall_cmds=$lt_old_postuninstall_cmds
39951 # Whether to use a lock for old archive extraction.
39952 lock_old_archive_extraction=$lock_old_archive_extraction
39957 # LTCC compiler flags.
39958 LTCFLAGS=$lt_CFLAGS
39960 # Take the output of nm and produce a listing of raw symbols and C names.
39961 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
39963 # Transform the output of nm in a proper C declaration.
39964 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
39966 # Transform the output of nm into a list of symbols to manually relocate.
39967 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
39969 # Transform the output of nm in a C name address pair.
39970 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
39972 # Transform the output of nm in a C name address pair when lib prefix is needed.
39973 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
39975 # The name lister interface.
39976 nm_interface=$lt_lt_cv_nm_interface
39978 # Specify filename containing input files for \$NM.
39979 nm_file_list_spec=$lt_nm_file_list_spec
39981 # The root where to search for dependent libraries,and where our libraries should be installed.
39982 lt_sysroot=$lt_sysroot
39984 # Command to truncate a binary pipe.
39985 lt_truncate_bin=$lt_lt_cv_truncate_bin
39987 # The name of the directory that contains temporary libtool files.
39990 # Used to examine libraries when file_magic_cmd begins with "file".
39991 MAGIC_CMD=$MAGIC_CMD
39993 # Must we lock files when doing compilation?
39994 need_locks=$lt_need_locks
39997 MANIFEST_TOOL=$lt_MANIFEST_TOOL
39999 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
40000 DSYMUTIL=$lt_DSYMUTIL
40002 # Tool to change global to local symbols on Mac OS X.
40005 # Tool to manipulate fat objects and archives on Mac OS X.
40008 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
40011 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
40012 OTOOL64=$lt_OTOOL64
40014 # Old archive suffix (normally "a").
40017 # Shared library suffix (normally ".so").
40018 shrext_cmds=$lt_shrext_cmds
40020 # The commands to extract the exported symbol list from a shared archive.
40021 extract_expsyms_cmds=$lt_extract_expsyms_cmds
40023 # Variables whose values should be saved in libtool wrapper scripts and
40024 # restored at link time.
40025 variables_saved_for_relink=$lt_variables_saved_for_relink
40027 # Do we need the "lib" prefix for modules?
40028 need_lib_prefix=$need_lib_prefix
40030 # Do we need a version for libraries?
40031 need_version=$need_version
40033 # Library versioning type.
40034 version_type=$version_type
40036 # Shared library runtime path variable.
40037 runpath_var=$runpath_var
40039 # Shared library path variable.
40040 shlibpath_var=$shlibpath_var
40042 # Is shlibpath searched before the hard-coded library search path?
40043 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
40045 # Format of library name prefix.
40046 libname_spec=$lt_libname_spec
40048 # List of archive names. First name is the real one, the rest are links.
40049 # The last name is the one that the linker finds with -lNAME
40050 library_names_spec=$lt_library_names_spec
40052 # The coded name of the library, if different from the real name.
40053 soname_spec=$lt_soname_spec
40055 # Permission mode override for installation of shared libraries.
40056 install_override_mode=$lt_install_override_mode
40058 # Command to use after installation of a shared archive.
40059 postinstall_cmds=$lt_postinstall_cmds
40061 # Command to use after uninstallation of a shared archive.
40062 postuninstall_cmds=$lt_postuninstall_cmds
40064 # Commands used to finish a libtool library installation in a directory.
40065 finish_cmds=$lt_finish_cmds
40067 # As "finish_cmds", except a single script fragment to be evaled but
40069 finish_eval=$lt_finish_eval
40071 # Whether we should hardcode library paths into libraries.
40072 hardcode_into_libs=$hardcode_into_libs
40074 # Compile-time system search path for libraries.
40075 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
40077 # Detected run-time system search path for libraries.
40078 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
40080 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
40081 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
40083 # Whether dlopen is supported.
40084 dlopen_support=$enable_dlopen
40086 # Whether dlopen of programs is supported.
40087 dlopen_self=$enable_dlopen_self
40089 # Whether dlopen of statically linked programs is supported.
40090 dlopen_self_static=$enable_dlopen_self_static
40092 # Commands to strip libraries.
40093 old_striplib=$lt_old_striplib
40094 striplib=$lt_striplib
40097 # The linker used to build libraries.
40100 # How to create reloadable object files.
40101 reload_flag=$lt_reload_flag
40102 reload_cmds=$lt_reload_cmds
40104 # Commands used to build an old-style archive.
40105 old_archive_cmds=$lt_old_archive_cmds
40107 # A language specific compiler.
40110 # Is the compiler the GNU compiler?
40113 # Compiler flag to turn off builtin functions.
40114 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
40116 # Additional compiler flags for building library objects.
40117 pic_flag=$lt_lt_prog_compiler_pic
40119 # How to pass a linker flag through the compiler.
40120 wl=$lt_lt_prog_compiler_wl
40122 # Compiler flag to prevent dynamic linking.
40123 link_static_flag=$lt_lt_prog_compiler_static
40125 # Does compiler simultaneously support -c and -o options?
40126 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
40128 # Whether or not to add -lc for building shared libraries.
40129 build_libtool_need_lc=$archive_cmds_need_lc
40131 # Whether or not to disallow shared libs when runtime libs are static.
40132 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
40134 # Compiler flag to allow reflexive dlopens.
40135 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
40137 # Compiler flag to generate shared objects directly from archives.
40138 whole_archive_flag_spec=$lt_whole_archive_flag_spec
40140 # Whether the compiler copes with passing no objects directly.
40141 compiler_needs_object=$lt_compiler_needs_object
40143 # Create an old-style archive from a shared archive.
40144 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
40146 # Create a temporary old-style archive to link instead of a shared archive.
40147 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
40149 # Commands used to build a shared archive.
40150 archive_cmds=$lt_archive_cmds
40151 archive_expsym_cmds=$lt_archive_expsym_cmds
40153 # Commands used to build a loadable module if different from building
40154 # a shared archive.
40155 module_cmds=$lt_module_cmds
40156 module_expsym_cmds=$lt_module_expsym_cmds
40158 # Whether we are building with GNU ld or not.
40159 with_gnu_ld=$lt_with_gnu_ld
40161 # Flag that allows shared libraries with undefined symbols to be built.
40162 allow_undefined_flag=$lt_allow_undefined_flag
40164 # Flag that enforces no undefined symbols.
40165 no_undefined_flag=$lt_no_undefined_flag
40167 # Flag to hardcode \$libdir into a binary during linking.
40168 # This must work even if \$libdir does not exist
40169 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
40171 # Whether we need a single "-rpath" flag with a separated argument.
40172 hardcode_libdir_separator=$lt_hardcode_libdir_separator
40174 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
40175 # DIR into the resulting binary.
40176 hardcode_direct=$hardcode_direct
40178 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
40179 # DIR into the resulting binary and the resulting library dependency is
40180 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
40181 # library is relocated.
40182 hardcode_direct_absolute=$hardcode_direct_absolute
40184 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
40185 # into the resulting binary.
40186 hardcode_minus_L=$hardcode_minus_L
40188 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
40189 # into the resulting binary.
40190 hardcode_shlibpath_var=$hardcode_shlibpath_var
40192 # Set to "yes" if building a shared library automatically hardcodes DIR
40193 # into the library and all subsequent libraries and executables linked
40195 hardcode_automatic=$hardcode_automatic
40197 # Set to yes if linker adds runtime paths of dependent libraries
40198 # to runtime path list.
40199 inherit_rpath=$inherit_rpath
40201 # Whether libtool must link a program against all its dependency libraries.
40202 link_all_deplibs=$link_all_deplibs
40204 # Set to "yes" if exported symbols are required.
40205 always_export_symbols=$always_export_symbols
40207 # The commands to list exported symbols.
40208 export_symbols_cmds=$lt_export_symbols_cmds
40210 # Symbols that should not be listed in the preloaded symbols.
40211 exclude_expsyms=$lt_exclude_expsyms
40213 # Symbols that must always be exported.
40214 include_expsyms=$lt_include_expsyms
40216 # Commands necessary for linking programs (against libraries) with templates.
40217 prelink_cmds=$lt_prelink_cmds
40219 # Commands necessary for finishing linking programs.
40220 postlink_cmds=$lt_postlink_cmds
40222 # Specify filename containing input files.
40223 file_list_spec=$lt_file_list_spec
40225 # How to hardcode a shared library path into an executable.
40226 hardcode_action=$hardcode_action
40228 # ### END LIBTOOL CONFIG
40232 cat <<'_LT_EOF' >> "$cfgfile"
40234 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
40236 # func_munge_path_list VARIABLE PATH
40237 # -----------------------------------
40238 # VARIABLE is name of variable containing _space_ separated list of
40239 # directories to be munged by the contents of PATH, which is string
40242 # string "DIR[ DIR]" will be prepended to VARIABLE
40244 # string "DIR[ DIR]" will be appended to VARIABLE
40245 # "DIRP[:DIRP]::[DIRA:]DIRA"
40246 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
40247 # "DIRA[ DIRA]" will be appended to VARIABLE
40249 # VARIABLE will be replaced by "DIR[ DIR]"
40250 func_munge_path_list ()
40256 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
40259 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
40262 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
40263 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
40266 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
40272 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
40273 func_cc_basename ()
40275 for cc_temp in $*""; do
40277 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
40278 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
40283 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
40287 # ### END FUNCTIONS SHARED WITH CONFIGURE
40293 cat <<\_LT_EOF
>> "$cfgfile"
40294 # AIX sometimes has problems with the GCC collect2 program. For some
40295 # reason, if we set the COLLECT_NAMES environment variable, the problems
40296 # vanish in a puff of smoke.
40297 if test set != "${COLLECT_NAMES+set}"; then
40299 export COLLECT_NAMES
40306 ltmain
=$ac_aux_dir/ltmain.sh
40309 # We use sed instead of cat because bash on DJGPP gets confused if
40310 # if finds mixed CR/LF and LF-only lines. Since sed operates in
40311 # text mode, it properly converts lines to CR/LF. This bash problem
40312 # is reportedly fixed, but why not run on old versions too?
40313 sed '$q' "$ltmain" >> "$cfgfile" \
40314 ||
(rm -f "$cfgfile"; exit 1)
40316 mv -f "$cfgfile" "$ofile" ||
40317 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
40328 ac_clean_files
=$ac_clean_files_save
40330 test $ac_write_fail = 0 ||
40331 as_fn_error $?
"write failure creating $CONFIG_STATUS" "$LINENO" 5
40334 # configure is writing to config.log, and then calls config.status.
40335 # config.status does its own redirection, appending to config.log.
40336 # Unfortunately, on DOS this fails, as config.log is still kept open
40337 # by configure, so config.status won't be able to write to it; its
40338 # output is simply discarded. So we exec the FD to /dev/null,
40339 # effectively closing config.log, so it can be properly (re)opened and
40340 # appended to by config.status. When coming back to configure, we
40341 # need to make the FD available again.
40342 if test "$no_create" != yes; then
40344 ac_config_status_args
=
40345 test "$silent" = yes &&
40346 ac_config_status_args
="$ac_config_status_args --quiet"
40348 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
40350 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
40351 # would make configure fail if this is the last instruction.
40352 $ac_cs_success || as_fn_exit
1
40354 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
40355 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
40356 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}