2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.68 for zfs 0.6.5.7.
6 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
7 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
17 # Be more Bourne compatible
18 DUALCASE
=1; export DUALCASE
# for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
27 case `(set -o) 2>/dev/null` in #(
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo_n='print
-rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
55 as_echo_n='/usr
/ucb
/echo -n'
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
65 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
68 as_echo_n='sh
-c $as_echo_n_body as_echo
'
71 as_echo='sh
-c $as_echo_body as_echo
'
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
77 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
85 # We need space, tab and new line, in precisely that order. Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
91 # Find who we are. Look in the path if we contain no directory separator.
94 *[\\/]* ) as_myself=$0 ;;
95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
99 test -z "$as_dir" && as_dir=.
100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
106 # We did not find ourselves, most probably we were run as `sh COMMAND'
107 # in which case we are not to be found in the path.
108 if test "x$as_myself" = x
; then
111 if test ! -f "$as_myself"; then
112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
116 # Unset variables that we do not need and which cause bugs (e.g. in
117 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
118 # suppresses any "Segmentation fault" message there. '((' could
119 # trigger a bug in pdksh 5.2.14.
120 for as_var
in BASH_ENV ENV MAIL MAILPATH
121 do eval test x\
${$as_var+set} = xset \
122 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
135 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
137 if test "x$CONFIG_SHELL" = x
; then
138 as_bourne_compatible
="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
141 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
142 # is contrary to our usage. Disable this feature.
143 alias -g '\${1+\"\$@\"}'='\"\$@\"'
146 case \`(set -o) 2>/dev/null\` in #(
154 as_required
="as_fn_return () { (exit \$1); }
155 as_fn_success () { as_fn_return 0; }
156 as_fn_failure () { as_fn_return 1; }
157 as_fn_ret_success () { return 0; }
158 as_fn_ret_failure () { return 1; }
161 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
162 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
163 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
164 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
165 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
168 exitcode=1; echo positional parameters were not saved.
170 test x\$exitcode = x0 || exit 1"
171 as_suggested
=" as_lineno_1=";as_suggested
=$as_suggested$LINENO;as_suggested
=$as_suggested" as_lineno_1a=\$LINENO
172 as_lineno_2=";as_suggested
=$as_suggested$LINENO;as_suggested
=$as_suggested" as_lineno_2a=\$LINENO
173 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
174 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
176 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
177 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
178 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
179 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
180 PATH=/empty FPATH=/empty; export PATH FPATH
181 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
182 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
183 test \$(( 1 + 1 )) = 2 || exit 1"
184 if (eval "$as_required") 2>/dev
/null
; then :
189 if test x
$as_have_required = xyes
&& (eval "$as_suggested") 2>/dev
/null
; then :
192 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
194 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
197 test -z "$as_dir" && as_dir
=.
201 for as_base
in sh bash ksh sh5
; do
202 # Try only shells that exist, to save several forks.
203 as_shell
=$as_dir/$as_base
204 if { test -f "$as_shell" ||
test -f "$as_shell.exe"; } &&
205 { $as_echo "$as_bourne_compatible""$as_required" | as_run
=a
"$as_shell"; } 2>/dev
/null
; then :
206 CONFIG_SHELL
=$as_shell as_have_required
=yes
207 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run
=a
"$as_shell"; } 2>/dev
/null
; then :
215 $as_found ||
{ if { test -f "$SHELL" ||
test -f "$SHELL.exe"; } &&
216 { $as_echo "$as_bourne_compatible""$as_required" | as_run
=a
"$SHELL"; } 2>/dev
/null
; then :
217 CONFIG_SHELL
=$SHELL as_have_required
=yes
222 if test "x$CONFIG_SHELL" != x
; then :
223 # We cannot yet assume a decent shell, so we have to provide a
224 # neutralization value for shells without unset; and this also
225 # works around shells that cannot unset nonexistent variables.
226 # Preserve -v and -x to the replacement shell.
229 (unset BASH_ENV
) >/dev
/null
2>&1 && unset BASH_ENV ENV
232 *v
*x
* |
*x
*v
* ) as_opts
=-vx ;;
237 exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
240 if test x
$as_have_required = xno
; then :
241 $as_echo "$0: This script requires a shell more modern than all"
242 $as_echo "$0: the shells that I found on your system."
243 if test x
${ZSH_VERSION+set} = xset
; then
244 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
245 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
247 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
248 $0: including any error possibly output before this
249 $0: message. Then install a modern shell, or manually run
250 $0: the script under such a shell if you do have one."
256 SHELL
=${CONFIG_SHELL-/bin/sh}
258 # Unset more variables known to interfere with behavior of common tools.
259 CLICOLOR_FORCE
= GREP_OPTIONS
=
260 unset CLICOLOR_FORCE GREP_OPTIONS
262 ## --------------------- ##
263 ## M4sh Shell Functions. ##
264 ## --------------------- ##
267 # Portably unset VAR.
270 { eval $1=; unset $1;}
274 # as_fn_set_status STATUS
275 # -----------------------
276 # Set $? to STATUS, without forking.
284 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
294 # Create "$as_dir" as a directory, including parents if necessary.
299 -*) as_dir
=.
/$as_dir;;
301 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
305 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
308 as_dirs
="'$as_qdir' $as_dirs"
309 as_dir
=`$as_dirname -- "$as_dir" ||
310 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
311 X"$as_dir" : 'X\(//\)[^/]' \| \
312 X"$as_dir" : 'X\(//\)$' \| \
313 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
314 $as_echo X"$as_dir" |
315 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
332 test -d "$as_dir" && break
334 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
335 } ||
test -d "$as_dir" || as_fn_error $?
"cannot create directory $as_dir"
339 # as_fn_append VAR VALUE
340 # ----------------------
341 # Append the text in VALUE to the end of the definition contained in VAR. Take
342 # advantage of any shell optimizations that allow amortized linear growth over
343 # repeated appends, instead of the typical quadratic growth present in naive
345 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
346 eval 'as_fn_append ()
359 # Perform arithmetic evaluation on the ARGs, and store the result in the
360 # global $as_val. Take advantage of shells that can avoid forks. The arguments
361 # must be portable across $(()) and expr.
362 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
370 as_val
=`expr "$@" || test $? -eq 1`
375 # as_fn_error STATUS ERROR [LINENO LOG_FD]
376 # ----------------------------------------
377 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
378 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
379 # script with STATUS, using 1 if that was 0.
382 as_status
=$1; test $as_status -eq 0 && as_status
=1
384 as_lineno
=${as_lineno-"$3"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
385 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
387 $as_echo "$as_me: error: $2" >&2
388 as_fn_exit
$as_status
391 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
392 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
398 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
404 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
410 as_me
=`$as_basename -- "$0" ||
411 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
412 X"$0" : 'X\(//\)$' \| \
413 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
415 sed '/^.*\/\([^/][^/]*\)\/*$/{
429 # Avoid depending upon Character Ranges.
430 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
431 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
432 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
433 as_cr_digits
='0123456789'
434 as_cr_alnum
=$as_cr_Letters$as_cr_digits
437 as_lineno_1
=$LINENO as_lineno_1a
=$LINENO
438 as_lineno_2
=$LINENO as_lineno_2a
=$LINENO
439 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
440 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' ||
{
441 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
453 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
457 chmod +x
"$as_me.lineno" ||
458 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit
1; }
460 # Don't try to exec as it changes $[0], causing all sort of problems
461 # (the dirname of $[0] is not the place where we might find the
462 # original and so on. Autoconf is especially sensitive to this).
464 # Exit status is that of the last command.
468 ECHO_C
= ECHO_N
= ECHO_T
=
469 case `echo -n x` in #(((((
471 case `echo 'xy\c'` in
472 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
474 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
481 rm -f conf$$ conf$$.exe conf$$.
file
482 if test -d conf$$.dir
; then
483 rm -f conf$$.dir
/conf$$.
file
486 mkdir conf$$.dir
2>/dev
/null
488 if (echo >conf$$.
file) 2>/dev
/null
; then
489 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
491 # ... but there are two gotchas:
492 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
493 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
494 # In both cases, we have to default to `cp -p'.
495 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
497 elif ln conf$$.
file conf$$
2>/dev
/null
; then
505 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
506 rmdir conf$$.dir
2>/dev
/null
508 if mkdir
-p .
2>/dev
/null
; then
509 as_mkdir_p
='mkdir -p "$as_dir"'
511 test -d .
/-p && rmdir .
/-p
515 if test -x / >/dev
/null
2>&1; then
518 if ls -dL / >/dev
/null
2>&1; then
525 if test -d "$1"; then
531 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
532 ???[sx]*):;;*)false;;esac;fi
536 as_executable_p
=$as_test_x
538 # Sed expression to map a string onto a valid CPP name.
539 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
541 # Sed expression to map a string onto a valid variable name.
542 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
544 SHELL
=${CONFIG_SHELL-/bin/sh}
547 test -n "$DJDIR" ||
exec 7<&0 </dev
/null
551 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
552 # so uname gets run too.
553 ac_hostname
=`(hostname || uname -n) 2>/dev/null | sed 1q`
558 ac_default_prefix
=/usr
/local
560 ac_config_libobj_dir
=.
567 # Identity of this package.
569 PACKAGE_TARNAME
='zfs'
570 PACKAGE_VERSION
='0.6.5.7'
571 PACKAGE_STRING
='zfs 0.6.5.7'
575 # Factoring default headers for most tests.
576 ac_includes_default
="\
578 #ifdef HAVE_SYS_TYPES_H
579 # include <sys/types.h>
581 #ifdef HAVE_SYS_STAT_H
582 # include <sys/stat.h>
588 # ifdef HAVE_STDLIB_H
593 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
598 #ifdef HAVE_STRINGS_H
599 # include <strings.h>
601 #ifdef HAVE_INTTYPES_H
602 # include <inttypes.h>
611 ac_subst_vars
='am__EXEEXT_FALSE
649 NO_UNUSED_BUT_SET_VARIABLE
682 am__fastdepCCAS_FALSE
733 INSTALL_STRIP_PROGRAM
753 MAINTAINER_MODE_FALSE
806 program_transform_name
819 enable_option_checking
820 enable_maintainer_mode
822 enable_dependency_tracking
843 with_systemdpresetdir
844 with_systemdmodulesloaddir
851 ac_precious_vars
='build_alias
864 # Initialize some variables set by options.
866 ac_init_version
=false
867 ac_unrecognized_opts
=
869 # The variables have the same names as the options, with
870 # dashes changed to underlines.
878 program_transform_name
=s
,x
,x
,
886 # Installation directory options.
887 # These are left unexpanded so users can "make install exec_prefix=/foo"
888 # and all the variables that are supposed to be based on exec_prefix
889 # by default will actually change.
890 # Use braces instead of parens because sh, perl, etc. also accept them.
891 # (The list follows the same order as the GNU Coding Standards.)
892 bindir
='${exec_prefix}/bin'
893 sbindir
='${exec_prefix}/sbin'
894 libexecdir
='${exec_prefix}/libexec'
895 datarootdir
='${prefix}/share'
896 datadir
='${datarootdir}'
897 sysconfdir
='${prefix}/etc'
898 sharedstatedir
='${prefix}/com'
899 localstatedir
='${prefix}/var'
900 includedir
='${prefix}/include'
901 oldincludedir
='/usr/include'
902 docdir
='${datarootdir}/doc/${PACKAGE_TARNAME}'
903 infodir
='${datarootdir}/info'
908 libdir
='${exec_prefix}/lib'
909 localedir
='${datarootdir}/locale'
910 mandir
='${datarootdir}/man'
916 # If the previous option needs an argument, assign it.
917 if test -n "$ac_prev"; then
918 eval $ac_prev=\
$ac_option
924 *=?
*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
929 # Accept the important Cygnus configure options, so we can diagnose typos.
931 case $ac_dashdash$ac_option in
935 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
937 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
940 -build |
--build |
--buil |
--bui |
--bu)
941 ac_prev
=build_alias
;;
942 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
943 build_alias
=$ac_optarg ;;
945 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
946 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
947 ac_prev
=cache_file
;;
948 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
949 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
950 cache_file
=$ac_optarg ;;
953 cache_file
=config.cache
;;
955 -datadir |
--datadir |
--datadi |
--datad)
957 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
958 datadir
=$ac_optarg ;;
960 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
961 |
--dataroo |
--dataro |
--datar)
962 ac_prev
=datarootdir
;;
963 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
964 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
965 datarootdir
=$ac_optarg ;;
967 -disable-* |
--disable-*)
968 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
969 # Reject names that are not valid shell variable names.
970 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
971 as_fn_error $?
"invalid feature name: $ac_useropt"
972 ac_useropt_orig
=$ac_useropt
973 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
974 case $ac_user_opts in
978 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
979 ac_unrecognized_sep
=', ';;
981 eval enable_
$ac_useropt=no
;;
983 -docdir |
--docdir |
--docdi |
--doc |
--do)
985 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
988 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
990 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
993 -enable-* |
--enable-*)
994 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
995 # Reject names that are not valid shell variable names.
996 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
997 as_fn_error $?
"invalid feature name: $ac_useropt"
998 ac_useropt_orig
=$ac_useropt
999 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1000 case $ac_user_opts in
1002 "enable_
$ac_useropt"
1004 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1005 ac_unrecognized_sep
=', ';;
1007 eval enable_
$ac_useropt=\
$ac_optarg ;;
1009 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
1010 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
1011 |
--exec |
--exe |
--ex)
1012 ac_prev
=exec_prefix
;;
1013 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
1014 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
1015 |
--exec=* |
--exe=* |
--ex=*)
1016 exec_prefix
=$ac_optarg ;;
1018 -gas |
--gas |
--ga |
--g)
1019 # Obsolete; use --with-gas.
1022 -help |
--help |
--hel |
--he |
-h)
1023 ac_init_help
=long
;;
1024 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
1025 ac_init_help
=recursive
;;
1026 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
1027 ac_init_help
=short
;;
1029 -host |
--host |
--hos |
--ho)
1030 ac_prev
=host_alias
;;
1031 -host=* |
--host=* |
--hos=* |
--ho=*)
1032 host_alias
=$ac_optarg ;;
1034 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
1036 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
1038 htmldir
=$ac_optarg ;;
1040 -includedir |
--includedir |
--includedi |
--included |
--include \
1041 |
--includ |
--inclu |
--incl |
--inc)
1042 ac_prev
=includedir
;;
1043 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
1044 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
1045 includedir
=$ac_optarg ;;
1047 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
1049 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
1050 infodir
=$ac_optarg ;;
1052 -libdir |
--libdir |
--libdi |
--libd)
1054 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
1055 libdir
=$ac_optarg ;;
1057 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
1058 |
--libexe |
--libex |
--libe)
1059 ac_prev
=libexecdir
;;
1060 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
1061 |
--libexe=* |
--libex=* |
--libe=*)
1062 libexecdir
=$ac_optarg ;;
1064 -localedir |
--localedir |
--localedi |
--localed |
--locale)
1065 ac_prev
=localedir
;;
1066 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
1067 localedir
=$ac_optarg ;;
1069 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
1070 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
1071 ac_prev
=localstatedir
;;
1072 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
1073 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
1074 localstatedir
=$ac_optarg ;;
1076 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
1078 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
1079 mandir
=$ac_optarg ;;
1081 -nfp |
--nfp |
--nf)
1082 # Obsolete; use --without-fp.
1085 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
1086 |
--no-cr |
--no-c |
-n)
1089 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1090 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1093 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1094 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1095 |
--oldin |
--oldi |
--old |
--ol |
--o)
1096 ac_prev
=oldincludedir
;;
1097 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1098 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1099 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1100 oldincludedir
=$ac_optarg ;;
1102 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1104 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1105 prefix
=$ac_optarg ;;
1107 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1108 |
--program-pre |
--program-pr |
--program-p)
1109 ac_prev
=program_prefix
;;
1110 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1111 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1112 program_prefix
=$ac_optarg ;;
1114 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1115 |
--program-suf |
--program-su |
--program-s)
1116 ac_prev
=program_suffix
;;
1117 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1118 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1119 program_suffix
=$ac_optarg ;;
1121 -program-transform-name |
--program-transform-name \
1122 |
--program-transform-nam |
--program-transform-na \
1123 |
--program-transform-n |
--program-transform- \
1124 |
--program-transform |
--program-transfor \
1125 |
--program-transfo |
--program-transf \
1126 |
--program-trans |
--program-tran \
1127 |
--progr-tra |
--program-tr |
--program-t)
1128 ac_prev
=program_transform_name
;;
1129 -program-transform-name=* |
--program-transform-name=* \
1130 |
--program-transform-nam=* |
--program-transform-na=* \
1131 |
--program-transform-n=* |
--program-transform-=* \
1132 |
--program-transform=* |
--program-transfor=* \
1133 |
--program-transfo=* |
--program-transf=* \
1134 |
--program-trans=* |
--program-tran=* \
1135 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1136 program_transform_name
=$ac_optarg ;;
1138 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1140 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1141 pdfdir
=$ac_optarg ;;
1143 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1145 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1148 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1149 |
-silent |
--silent |
--silen |
--sile |
--sil)
1152 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1154 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1156 sbindir
=$ac_optarg ;;
1158 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1159 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1160 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1162 ac_prev
=sharedstatedir
;;
1163 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1164 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1165 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1167 sharedstatedir
=$ac_optarg ;;
1169 -site |
--site |
--sit)
1171 -site=* |
--site=* |
--sit=*)
1174 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1176 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1177 srcdir
=$ac_optarg ;;
1179 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1180 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1181 ac_prev
=sysconfdir
;;
1182 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1183 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1184 sysconfdir
=$ac_optarg ;;
1186 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1187 ac_prev
=target_alias
;;
1188 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1189 target_alias
=$ac_optarg ;;
1191 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1194 -version |
--version |
--versio |
--versi |
--vers |
-V)
1195 ac_init_version
=: ;;
1198 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1199 # Reject names that are not valid shell variable names.
1200 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1201 as_fn_error $?
"invalid package name: $ac_useropt"
1202 ac_useropt_orig
=$ac_useropt
1203 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1204 case $ac_user_opts in
1208 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1209 ac_unrecognized_sep
=', ';;
1211 eval with_
$ac_useropt=\
$ac_optarg ;;
1213 -without-* |
--without-*)
1214 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1215 # Reject names that are not valid shell variable names.
1216 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1217 as_fn_error $?
"invalid package name: $ac_useropt"
1218 ac_useropt_orig
=$ac_useropt
1219 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1220 case $ac_user_opts in
1224 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1225 ac_unrecognized_sep
=', ';;
1227 eval with_
$ac_useropt=no
;;
1230 # Obsolete; use --with-x.
1233 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1234 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1235 ac_prev
=x_includes
;;
1236 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1237 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1238 x_includes
=$ac_optarg ;;
1240 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1241 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1242 ac_prev
=x_libraries
;;
1243 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1244 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1245 x_libraries
=$ac_optarg ;;
1247 -*) as_fn_error $?
"unrecognized option: \`$ac_option'
1248 Try \`$0 --help' for more information"
1252 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1253 # Reject names that are not valid shell variable names.
1254 case $ac_envvar in #(
1255 '' |
[0-9]* |
*[!_
$as_cr_alnum]* )
1256 as_fn_error $?
"invalid variable name: \`$ac_envvar'" ;;
1258 eval $ac_envvar=\
$ac_optarg
1259 export $ac_envvar ;;
1262 # FIXME: should be removed in autoconf 3.0.
1263 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1264 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1265 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1266 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1272 if test -n "$ac_prev"; then
1273 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1274 as_fn_error $?
"missing argument to $ac_option"
1277 if test -n "$ac_unrecognized_opts"; then
1278 case $enable_option_checking in
1280 fatal
) as_fn_error $?
"unrecognized options: $ac_unrecognized_opts" ;;
1281 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1285 # Check all directory arguments for consistency.
1286 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1287 datadir sysconfdir sharedstatedir localstatedir includedir \
1288 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1289 libdir localedir mandir
1291 eval ac_val
=\$
$ac_var
1292 # Remove trailing slashes.
1295 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1296 eval $ac_var=\
$ac_val;;
1298 # Be sure to have absolute directory names.
1300 [\\/$
]* | ?
:[\\/]* ) continue;;
1301 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1303 as_fn_error $?
"expected an absolute directory name for --$ac_var: $ac_val"
1306 # There might be people who depend on the old broken behavior: `$host'
1307 # used to hold the argument of --host etc.
1308 # FIXME: To remove some day.
1311 target
=$target_alias
1313 # FIXME: To remove some day.
1314 if test "x$host_alias" != x
; then
1315 if test "x$build_alias" = x
; then
1316 cross_compiling
=maybe
1317 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1318 If a cross compiler is detected then cross compile mode will be used" >&2
1319 elif test "x$build_alias" != "x$host_alias"; then
1325 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1327 test "$silent" = yes && exec 6>/dev
/null
1330 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1331 ac_ls_di
=`ls -di .` &&
1332 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1333 as_fn_error $?
"working directory cannot be determined"
1334 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1335 as_fn_error $?
"pwd does not report name of working directory"
1338 # Find the source files, if location was not specified.
1339 if test -z "$srcdir"; then
1340 ac_srcdir_defaulted
=yes
1341 # Try the directory containing this script, then the parent directory.
1342 ac_confdir
=`$as_dirname -- "$as_myself" ||
1343 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1344 X"$as_myself" : 'X\(//\)[^/]' \| \
1345 X"$as_myself" : 'X\(//\)$' \| \
1346 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1347 $as_echo X"$as_myself" |
1348 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1366 if test ! -r "$srcdir/$ac_unique_file"; then
1370 ac_srcdir_defaulted
=no
1372 if test ! -r "$srcdir/$ac_unique_file"; then
1373 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1374 as_fn_error $?
"cannot find sources ($ac_unique_file) in $srcdir"
1376 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1378 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1380 # When building in place, set srcdir=.
1381 if test "$ac_abs_confdir" = "$ac_pwd"; then
1384 # Remove unnecessary trailing slashes from srcdir.
1385 # Double slashes in file names in object file debugging info
1386 # mess up M-x gdb in Emacs.
1388 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1390 for ac_var
in $ac_precious_vars; do
1391 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1392 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1393 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1394 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1398 # Report the --help message.
1400 if test "$ac_init_help" = "long"; then
1401 # Omit some internal or obsolete options to make the list less imposing.
1402 # This message is too long to be a string in the A/UX 3.1 sh.
1404 \`configure' configures zfs 0.6.5.7 to adapt to many kinds of systems.
1406 Usage: $0 [OPTION]... [VAR=VALUE]...
1408 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1409 VAR=VALUE. See below for descriptions of some of the useful variables.
1411 Defaults for the options are specified in brackets.
1414 -h, --help display this help and exit
1415 --help=short display options specific to this package
1416 --help=recursive display the short help of all the included packages
1417 -V, --version display version information and exit
1418 -q, --quiet, --silent do not print \`checking ...' messages
1419 --cache-file=FILE cache test results in FILE [disabled]
1420 -C, --config-cache alias for \`--cache-file=config.cache'
1421 -n, --no-create do not create output files
1422 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1424 Installation directories:
1425 --prefix=PREFIX install architecture-independent files in PREFIX
1426 [$ac_default_prefix]
1427 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1430 By default, \`make install' will install all the files in
1431 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1432 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1433 for instance \`--prefix=\$HOME'.
1435 For better control, use the options below.
1437 Fine tuning of the installation directories:
1438 --bindir=DIR user executables [EPREFIX/bin]
1439 --sbindir=DIR system admin executables [EPREFIX/sbin]
1440 --libexecdir=DIR program executables [EPREFIX/libexec]
1441 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1442 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1443 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1444 --libdir=DIR object code libraries [EPREFIX/lib]
1445 --includedir=DIR C header files [PREFIX/include]
1446 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1447 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1448 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1449 --infodir=DIR info documentation [DATAROOTDIR/info]
1450 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1451 --mandir=DIR man documentation [DATAROOTDIR/man]
1452 --docdir=DIR documentation root [DATAROOTDIR/doc/zfs]
1453 --htmldir=DIR html documentation [DOCDIR]
1454 --dvidir=DIR dvi documentation [DOCDIR]
1455 --pdfdir=DIR pdf documentation [DOCDIR]
1456 --psdir=DIR ps documentation [DOCDIR]
1462 --program-prefix=PREFIX prepend PREFIX to installed program names
1463 --program-suffix=SUFFIX append SUFFIX to installed program names
1464 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
1467 --build=BUILD configure
for building on BUILD
[guessed
]
1468 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1469 --target=TARGET configure
for building compilers
for TARGET
[HOST
]
1473 if test -n "$ac_init_help"; then
1474 case $ac_init_help in
1475 short | recursive
) echo "Configuration of zfs 0.6.5.7:";;
1480 --disable-option-checking ignore unrecognized
--enable/--with options
1481 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1482 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1483 --enable-maintainer-mode enable make rules and dependencies not useful
1484 (and sometimes confusing
) to the casual installer
1485 --enable-silent-rules less verbose build output
(undo
: `make V=1')
1486 --disable-silent-rules verbose build output (undo: `make V
=0')
1487 --disable-dependency-tracking speeds up one-time build
1488 --enable-dependency-tracking do not reject slow dependency extractors
1489 --enable-shared[=PKGS] build shared libraries [default=yes]
1490 --enable-static[=PKGS] build static libraries [default=yes]
1491 --enable-fast-install[=PKGS]
1492 optimize for fast installation [default=yes]
1493 --disable-libtool-lock avoid locking (might break parallel builds)
1494 --enable-linux-builtin Configure for builtin in-tree kernel modules
1496 --enable-systemd install systemd unit/preset files [[default: yes]]
1497 --enable-sysvinit install SysV init scripts [default: yes]
1498 --enable-debug Enable generic debug support [default=no]
1499 --enable-debug-dmu-tx Enable dmu tx validation [default=no]
1502 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1503 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1504 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1506 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1507 --with-sysroot=DIR Search for dependent libraries within DIR
1508 (or the compiler's sysroot
if not specified
).
1509 --with-spec=SPEC Spec files
'generic|redhat'
1510 --with-config=CONFIG Config
file 'kernel|user|all|srpm'
1511 --with-linux=PATH Path to kernel
source
1512 --with-linux-obj=PATH Path to kernel build objects
1513 --with-spl=PATH Path to spl
source
1514 --with-spl-obj=PATH Path to spl build objects
1515 --with-spl-timeout=SECS Wait SECS
for SPL header and symver
file [default
=0]
1516 --with-mounthelperdir=DIR
1517 install mount.zfs
in dir
[[/sbin
]]
1518 --with-udevdir=DIR
install udev helpers
[default
=check
]
1519 --with-udevruledir=DIR
install udev rules
[[UDEVDIR
/rules.d
]]
1520 --with-systemdunitdir=DIR
1521 install systemd unit files
in dir
1522 [[/usr
/lib
/systemd
/system
]]
1523 --with-systemdpresetdir=DIR
1524 install systemd preset files
in dir
1525 [[/usr
/lib
/systemd
/system-preset
]]
1526 --with-systemdmodulesloaddir=DIR
1527 install systemd module load files into dir
1528 [[/usr
/lib
/modules-load.d
]]
1529 --with-dracutdir=DIR
install dracut helpers
[default
=check
]
1530 --with-blkid support blkid caching
[default
=check
]
1532 Some influential environment variables
:
1533 CC C compiler
command
1534 CFLAGS C compiler flags
1535 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
1536 nonstandard directory
<lib dir
>
1537 LIBS libraries to pass to the linker
, e.g.
-l<library
>
1538 CPPFLAGS
(Objective
) C
/C
++ preprocessor flags
, e.g.
-I<include dir
> if
1539 you have headers
in a nonstandard directory
<include dir
>
1541 CCAS assembler compiler
command (defaults to CC
)
1542 CCASFLAGS assembler compiler flags
(defaults to CFLAGS
)
1544 Use these variables to override the choices made by
`configure' or to help
1545 it to find libraries and programs with nonstandard names/locations.
1547 Report bugs to the package provider.
1552 if test "$ac_init_help" = "recursive"; then
1553 # If there are subdirs, report their specific --help.
1554 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1555 test -d "$ac_dir" ||
1556 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1561 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1563 ac_dir_suffix=/`$as_echo "$ac_dir" |
sed 's|^\.[\\/]||'`
1564 # A ".." for each directory in $ac_dir_suffix.
1565 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" |
sed 's|/[^\\/]*|/..|g;s|/||'`
1566 case $ac_top_builddir_sub in
1567 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1568 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1571 ac_abs_top_builddir=$ac_pwd
1572 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1573 # for backward compatibility:
1574 ac_top_builddir=$ac_top_build_prefix
1577 .) # We are building in place.
1579 ac_top_srcdir=$ac_top_builddir_sub
1580 ac_abs_top_srcdir=$ac_pwd ;;
1581 [\\/]* | ?:[\\/]* ) # Absolute name.
1582 ac_srcdir=$srcdir$ac_dir_suffix;
1583 ac_top_srcdir=$srcdir
1584 ac_abs_top_srcdir=$srcdir ;;
1586 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1587 ac_top_srcdir=$ac_top_build_prefix$srcdir
1588 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1590 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1592 cd "$ac_dir" || { ac_status=$?; continue; }
1593 # Check for guested configure.
1594 if test -f "$ac_srcdir/configure.gnu"; then
1596 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1597 elif test -f "$ac_srcdir/configure"; then
1599 $SHELL "$ac_srcdir/configure" --help=recursive
1601 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1603 cd "$ac_pwd" || { ac_status=$?; break; }
1607 test -n "$ac_init_help" && exit $ac_status
1608 if $ac_init_version; then
1610 zfs configure 0.6.5.7
1611 generated by GNU Autoconf 2.68
1613 Copyright (C) 2010 Free Software Foundation, Inc.
1614 This configure script is free software; the Free Software Foundation
1615 gives unlimited permission to copy, distribute and modify it.
1620 ## ------------------------ ##
1621 ## Autoconf initialization. ##
1622 ## ------------------------ ##
1624 # ac_fn_c_try_compile LINENO
1625 # --------------------------
1626 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1627 ac_fn_c_try_compile ()
1629 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1630 rm -f conftest.$ac_objext
1631 if { { ac_try="$ac_compile"
1633 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1634 *) ac_try_echo
=$ac_try;;
1636 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1637 $as_echo "$ac_try_echo"; } >&5
1638 (eval "$ac_compile") 2>conftest.err
1640 if test -s conftest.err
; then
1641 grep -v '^ *+' conftest.err
>conftest.er1
1642 cat conftest.er1
>&5
1643 mv -f conftest.er1 conftest.err
1645 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1646 test $ac_status = 0; } && {
1647 test -z "$ac_c_werror_flag" ||
1648 test ! -s conftest.err
1649 } && test -s conftest.
$ac_objext; then :
1652 $as_echo "$as_me: failed program was:" >&5
1653 sed 's/^/| /' conftest.
$ac_ext >&5
1657 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1658 as_fn_set_status
$ac_retval
1660 } # ac_fn_c_try_compile
1662 # ac_fn_c_try_link LINENO
1663 # -----------------------
1664 # Try to link conftest.$ac_ext, and return whether this succeeded.
1667 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1668 rm -f conftest.
$ac_objext conftest
$ac_exeext
1669 if { { ac_try
="$ac_link"
1671 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1672 *) ac_try_echo=$ac_try;;
1674 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1675 $as_echo "$ac_try_echo"; } >&5
1676 (eval "$ac_link") 2>conftest.err
1678 if test -s conftest.err; then
1679 grep -v '^ *+' conftest.err >conftest.er1
1680 cat conftest.er1 >&5
1681 mv -f conftest.er1 conftest.err
1683 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1684 test $ac_status = 0; } && {
1685 test -z "$ac_c_werror_flag" ||
1686 test ! -s conftest.err
1687 } && test -s conftest$ac_exeext && {
1688 test "$cross_compiling" = yes ||
1689 $as_test_x conftest$ac_exeext
1693 $as_echo "$as_me: failed program was:" >&5
1694 sed 's/^/| /' conftest.$ac_ext >&5
1698 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1699 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1700 # interfere with the next link command; also delete a directory that is
1701 # left behind by Apple's compiler. We do this before executing the actions.
1702 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1703 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1704 as_fn_set_status $ac_retval
1706 } # ac_fn_c_try_link
1708 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1709 # -------------------------------------------------------
1710 # Tests whether HEADER exists and can be compiled using the include files in
1711 # INCLUDES, setting the cache variable VAR accordingly.
1712 ac_fn_c_check_header_compile ()
1714 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1716 $as_echo_n "checking for $2... " >&6; }
1717 if eval \${$3+:} false; then :
1718 $as_echo_n "(cached) " >&6
1720 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1721 /* end confdefs.h. */
1725 if ac_fn_c_try_compile "$LINENO"; then :
1730 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1734 $as_echo "$ac_res" >&6; }
1735 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1737 } # ac_fn_c_check_header_compile
1739 # ac_fn_c_try_cpp LINENO
1740 # ----------------------
1741 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1744 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1745 if { { ac_try="$ac_cpp conftest.$ac_ext"
1747 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1748 *) ac_try_echo
=$ac_try;;
1750 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1751 $as_echo "$ac_try_echo"; } >&5
1752 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1754 if test -s conftest.err
; then
1755 grep -v '^ *+' conftest.err
>conftest.er1
1756 cat conftest.er1
>&5
1757 mv -f conftest.er1 conftest.err
1759 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1760 test $ac_status = 0; } > conftest.i
&& {
1761 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1762 test ! -s conftest.err
1766 $as_echo "$as_me: failed program was:" >&5
1767 sed 's/^/| /' conftest.
$ac_ext >&5
1771 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1772 as_fn_set_status
$ac_retval
1776 # ac_fn_c_try_run LINENO
1777 # ----------------------
1778 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1779 # that executables *can* be run.
1782 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1783 if { { ac_try
="$ac_link"
1785 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1786 *) ac_try_echo=$ac_try;;
1788 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1789 $as_echo "$ac_try_echo"; } >&5
1790 (eval "$ac_link") 2>&5
1792 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1793 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1794 { { case "(($ac_try" in
1795 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1796 *) ac_try_echo
=$ac_try;;
1798 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1799 $as_echo "$ac_try_echo"; } >&5
1800 (eval "$ac_try") 2>&5
1802 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1803 test $ac_status = 0; }; }; then :
1806 $as_echo "$as_me: program exited with status $ac_status" >&5
1807 $as_echo "$as_me: failed program was:" >&5
1808 sed 's/^/| /' conftest.
$ac_ext >&5
1810 ac_retval
=$ac_status
1812 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1813 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1814 as_fn_set_status
$ac_retval
1818 # ac_fn_c_check_func LINENO FUNC VAR
1819 # ----------------------------------
1820 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1821 ac_fn_c_check_func
()
1823 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1825 $as_echo_n "checking for $2... " >&6; }
1826 if eval \
${$3+:} false
; then :
1827 $as_echo_n "(cached) " >&6
1829 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1830 /* end confdefs.h. */
1831 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1832 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1833 #define $2 innocuous_$2
1835 /* System header to define __stub macros and hopefully few prototypes,
1836 which can conflict with char $2 (); below.
1837 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1838 <limits.h> exists even on freestanding compilers. */
1841 # include <limits.h>
1843 # include <assert.h>
1848 /* Override any GCC internal prototype to avoid an error.
1849 Use char because int might match the return type of a GCC
1850 builtin and then its argument prototype would still apply. */
1855 /* The GNU C library defines this for functions which it implements
1856 to always fail with ENOSYS. Some functions are actually named
1857 something starting with __ and the normal name is an alias. */
1858 #if defined __stub_$2 || defined __stub___$2
1870 if ac_fn_c_try_link
"$LINENO"; then :
1875 rm -f core conftest.err conftest.
$ac_objext \
1876 conftest
$ac_exeext conftest.
$ac_ext
1879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1880 $as_echo "$ac_res" >&6; }
1881 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1883 } # ac_fn_c_check_func
1885 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1886 # -------------------------------------------------------
1887 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1888 # the include files in INCLUDES and setting the cache variable VAR
1890 ac_fn_c_check_header_mongrel
()
1892 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1893 if eval \
${$3+:} false
; then :
1894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1895 $as_echo_n "checking for $2... " >&6; }
1896 if eval \
${$3+:} false
; then :
1897 $as_echo_n "(cached) " >&6
1900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1901 $as_echo "$ac_res" >&6; }
1903 # Is the header compilable?
1904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1905 $as_echo_n "checking $2 usability... " >&6; }
1906 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1907 /* end confdefs.h. */
1911 if ac_fn_c_try_compile
"$LINENO"; then :
1912 ac_header_compiler
=yes
1914 ac_header_compiler
=no
1916 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
1917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1918 $as_echo "$ac_header_compiler" >&6; }
1920 # Is the header present?
1921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1922 $as_echo_n "checking $2 presence... " >&6; }
1923 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1924 /* end confdefs.h. */
1927 if ac_fn_c_try_cpp
"$LINENO"; then :
1928 ac_header_preproc
=yes
1930 ac_header_preproc
=no
1932 rm -f conftest.err conftest.i conftest.
$ac_ext
1933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1934 $as_echo "$ac_header_preproc" >&6; }
1936 # So? What about this header?
1937 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1939 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1940 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1941 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1942 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1945 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1946 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1947 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1948 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1949 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1950 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1951 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1952 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1953 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1954 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1958 $as_echo_n "checking for $2... " >&6; }
1959 if eval \
${$3+:} false
; then :
1960 $as_echo_n "(cached) " >&6
1962 eval "$3=\$ac_header_compiler"
1965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1966 $as_echo "$ac_res" >&6; }
1968 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1970 } # ac_fn_c_check_header_mongrel
1971 cat >config.log
<<_ACEOF
1972 This file contains any messages produced by compilers while
1973 running configure, to aid debugging if configure makes a mistake.
1975 It was created by zfs $as_me 0.6.5.7, which was
1976 generated by GNU Autoconf 2.68. Invocation command line was
1988 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1989 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1990 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1991 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1992 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1994 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1995 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1997 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1998 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1999 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2000 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2001 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2002 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2003 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2007 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2011 test -z "$as_dir" && as_dir
=.
2012 $as_echo "PATH: $as_dir"
2028 # Keep a trace of the command line.
2029 # Strip out --no-create and --no-recursion so they do not pile up.
2030 # Strip out --silent because we don't want to record it for future runs.
2031 # Also quote any args containing shell meta-characters.
2032 # Make two passes to allow for proper duplicate-argument suppression.
2036 ac_must_keep_next
=false
2042 -no-create |
--no-c* |
-n |
-no-recursion |
--no-r*) continue ;;
2043 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
2044 |
-silent |
--silent |
--silen |
--sile |
--sil)
2047 ac_arg
=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2050 1) as_fn_append ac_configure_args0
" '$ac_arg'" ;;
2052 as_fn_append ac_configure_args1
" '$ac_arg'"
2053 if test $ac_must_keep_next = true
; then
2054 ac_must_keep_next
=false
# Got value, back to normal.
2057 *=* |
--config-cache |
-C |
-disable-* |
--disable-* \
2058 |
-enable-* |
--enable-* |
-gas |
--g* |
-nfp |
--nf* \
2059 |
-q |
-quiet |
--q* |
-silent |
--sil* |
-v |
-verb* \
2060 |
-with-* |
--with-* |
-without-* |
--without-* |
--x)
2061 case "$ac_configure_args0 " in
2062 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2065 -* ) ac_must_keep_next
=true
;;
2068 as_fn_append ac_configure_args
" '$ac_arg'"
2073 { ac_configure_args0
=; unset ac_configure_args0
;}
2074 { ac_configure_args1
=; unset ac_configure_args1
;}
2076 # When interrupted or exit'd, cleanup temporary files, and complete
2077 # config.log. We remove comments because anyway the quotes in there
2078 # would cause problems or look ugly.
2079 # WARNING: Use '\'' to represent an apostrophe within the trap.
2080 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2081 trap 'exit_status=$?
2082 # Save into config.log some information that might help in debugging.
2086 $as_echo "## ---------------- ##
2087 ## Cache variables. ##
2088 ## ---------------- ##"
2090 # The following way of writing the cache mishandles newlines in values,
2092 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2093 eval ac_val=\$$ac_var
2097 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2098 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2101 _ | IFS | as_nl) ;; #(
2102 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2103 *) { eval $ac_var=; unset $ac_var;} ;;
2108 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2109 *${as_nl}ac_space=\ *)
2111 "s/'\''/'\''\\\\'\'''\''/g;
2112 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2115 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2122 $as_echo "## ----------------- ##
2123 ## Output variables. ##
2124 ## ----------------- ##"
2126 for ac_var in $ac_subst_vars
2128 eval ac_val=\$$ac_var
2130 *\'\''*) ac_val
=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2132 $as_echo "$ac_var='\''$ac_val'\''"
2136 if test -n "$ac_subst_files"; then
2137 $as_echo "## ------------------- ##
2138 ## File substitutions. ##
2139 ## ------------------- ##"
2141 for ac_var
in $ac_subst_files
2143 eval ac_val
=\$
$ac_var
2145 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2147 $as_echo "$ac_var='\''$ac_val'\''"
2152 if test -s confdefs.h; then
2153 $as_echo "## ----------- ##
2160 test "$ac_signal" != 0 &&
2161 $as_echo "$as_me: caught signal $ac_signal"
2162 $as_echo "$as_me: exit $exit_status"
2164 rm -f core *.core core.conftest.* &&
2165 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2168 for ac_signal
in 1 2 13 15; do
2169 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2173 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2174 rm -f -r conftest
* confdefs.h
2176 $as_echo "/* confdefs.h */" > confdefs.h
2178 # Predefined preprocessor variables.
2180 cat >>confdefs.h
<<_ACEOF
2181 #define PACKAGE_NAME "$PACKAGE_NAME"
2184 cat >>confdefs.h
<<_ACEOF
2185 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2188 cat >>confdefs.h
<<_ACEOF
2189 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2192 cat >>confdefs.h
<<_ACEOF
2193 #define PACKAGE_STRING "$PACKAGE_STRING"
2196 cat >>confdefs.h
<<_ACEOF
2197 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2200 cat >>confdefs.h
<<_ACEOF
2201 #define PACKAGE_URL "$PACKAGE_URL"
2205 # Let the site file select an alternate cache file if it wants to.
2206 # Prefer an explicitly selected file to automatically selected ones.
2209 if test -n "$CONFIG_SITE"; then
2210 # We do not want a PATH search for config.site.
2211 case $CONFIG_SITE in #((
2212 -*) ac_site_file1
=.
/$CONFIG_SITE;;
2213 */*) ac_site_file1
=$CONFIG_SITE;;
2214 *) ac_site_file1
=.
/$CONFIG_SITE;;
2216 elif test "x$prefix" != xNONE
; then
2217 ac_site_file1
=$prefix/share
/config.site
2218 ac_site_file2
=$prefix/etc
/config.site
2220 ac_site_file1
=$ac_default_prefix/share
/config.site
2221 ac_site_file2
=$ac_default_prefix/etc
/config.site
2223 for ac_site_file
in "$ac_site_file1" "$ac_site_file2"
2225 test "x$ac_site_file" = xNONE
&& continue
2226 if test /dev
/null
!= "$ac_site_file" && test -r "$ac_site_file"; then
2227 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2228 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2229 sed 's/^/| /' "$ac_site_file" >&5
2231 ||
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2232 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2233 as_fn_error $?
"failed to load site script $ac_site_file
2234 See \`config.log' for more details" "$LINENO" 5; }
2238 if test -r "$cache_file"; then
2239 # Some versions of bash will fail to source /dev/null (special files
2240 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2241 if test /dev
/null
!= "$cache_file" && test -f "$cache_file"; then
2242 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2243 $as_echo "$as_me: loading cache $cache_file" >&6;}
2245 [\\/]* | ?
:[\\/]* ) .
"$cache_file";;
2246 *) .
"./$cache_file";;
2250 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2251 $as_echo "$as_me: creating cache $cache_file" >&6;}
2255 # Check that the precious variables saved in the cache have kept the same
2257 ac_cache_corrupted
=false
2258 for ac_var
in $ac_precious_vars; do
2259 eval ac_old_set
=\
$ac_cv_env_${ac_var}_set
2260 eval ac_new_set
=\
$ac_env_${ac_var}_set
2261 eval ac_old_val
=\
$ac_cv_env_${ac_var}_value
2262 eval ac_new_val
=\
$ac_env_${ac_var}_value
2263 case $ac_old_set,$ac_new_set in
2265 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2266 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2267 ac_cache_corrupted
=: ;;
2269 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2270 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2271 ac_cache_corrupted
=: ;;
2274 if test "x$ac_old_val" != "x$ac_new_val"; then
2275 # differences in whitespace do not lead to failure.
2276 ac_old_val_w
=`echo x $ac_old_val`
2277 ac_new_val_w
=`echo x $ac_new_val`
2278 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2279 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2280 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2281 ac_cache_corrupted
=:
2283 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2284 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2285 eval $ac_var=\
$ac_old_val
2287 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2288 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2289 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2290 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2293 # Pass precious variables to config.status.
2294 if test "$ac_new_set" = set; then
2296 *\'*) ac_arg
=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2297 *) ac_arg
=$ac_var=$ac_new_val ;;
2299 case " $ac_configure_args " in
2300 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2301 *) as_fn_append ac_configure_args
" '$ac_arg'" ;;
2305 if $ac_cache_corrupted; then
2306 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2307 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2308 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2309 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2310 as_fn_error $?
"run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2312 ## -------------------- ##
2313 ## Main body of script. ##
2314 ## -------------------- ##
2317 ac_cpp
='$CPP $CPPFLAGS'
2318 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2319 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2320 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2324 ac_cpp
='$CPP $CPPFLAGS'
2325 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2326 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2327 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2333 for ac_prog
in gawk mawk nawk
awk
2335 # Extract the first word of "$ac_prog", so it can be a program name with args.
2336 set dummy
$ac_prog; ac_word
=$2
2337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2338 $as_echo_n "checking for $ac_word... " >&6; }
2339 if ${ac_cv_prog_AWK+:} false
; then :
2340 $as_echo_n "(cached) " >&6
2342 if test -n "$AWK"; then
2343 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
2345 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2349 test -z "$as_dir" && as_dir
=.
2350 for ac_exec_ext
in '' $ac_executable_extensions; do
2351 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2352 ac_cv_prog_AWK
="$ac_prog"
2353 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2363 if test -n "$AWK"; then
2364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2365 $as_echo "$AWK" >&6; }
2367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2368 $as_echo "no" >&6; }
2372 test -n "$AWK" && break
2375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking metadata" >&5
2376 $as_echo_n "checking metadata... " >&6; }
2379 _zfs_ac_meta_type
="none"
2380 if test -f "$META"; then
2381 _zfs_ac_meta_type
="META file"
2383 ZFS_META_NAME
=`$AWK -F ':[ \t]+' '$1 ~ /^ *(Name|Project|Package)$/ { print $2; exit }' $META`;
2384 if test -n "$ZFS_META_NAME"; then
2386 cat >>confdefs.h
<<_ACEOF
2387 #define ZFS_META_NAME "$ZFS_META_NAME"
2393 ZFS_META_VERSION
=`$AWK -F ':[ \t]+' '$1 ~ /^ *Version$/ { print $2; exit }' $META`;
2394 if test -n "$ZFS_META_VERSION"; then
2396 cat >>confdefs.h
<<_ACEOF
2397 #define ZFS_META_VERSION "$ZFS_META_VERSION"
2403 ZFS_META_RELEASE
=`$AWK -F ':[ \t]+' '$1 ~ /^ *Release$/ { print $2; exit }' $META`;
2404 if test ! -f ".nogitrelease" && git rev-parse
--git-dir > /dev
/null
2>&1; then
2405 _match
="${ZFS_META_NAME}-${ZFS_META_VERSION}"
2406 _alias
=$
(git describe
--match=${_match} 2>/dev
/null
)
2407 _release
=$
(echo ${_alias}|cut
-f3- -d'-'|
sed 's/-/_/g')
2408 if test -n "${_release}"; then
2409 ZFS_META_RELEASE
=${_release}
2410 _zfs_ac_meta_type
="git describe"
2414 if test -n "$ZFS_META_RELEASE"; then
2416 cat >>confdefs.h
<<_ACEOF
2417 #define ZFS_META_RELEASE "$ZFS_META_RELEASE"
2422 RELEASE
="$ZFS_META_RELEASE"
2426 ZFS_META_LICENSE
=`$AWK -F ':[ \t]+' '$1 ~ /^ *License$/ { print $2; exit }' $META`;
2427 if test -n "$ZFS_META_LICENSE"; then
2429 cat >>confdefs.h
<<_ACEOF
2430 #define ZFS_META_LICENSE "$ZFS_META_LICENSE"
2436 if test -n "$ZFS_META_NAME" -a -n "$ZFS_META_VERSION"; then
2437 ZFS_META_ALIAS
="$ZFS_META_NAME-$ZFS_META_VERSION"
2438 test -n "$ZFS_META_RELEASE" &&
2439 ZFS_META_ALIAS
="$ZFS_META_ALIAS-$ZFS_META_RELEASE"
2441 cat >>confdefs.h
<<_ACEOF
2442 #define ZFS_META_ALIAS "$ZFS_META_ALIAS"
2448 ZFS_META_DATA
=`$AWK -F ':[ \t]+' '$1 ~ /^ *Date$/ { print $2; exit }' $META`;
2449 if test -n "$ZFS_META_DATA"; then
2451 cat >>confdefs.h
<<_ACEOF
2452 #define ZFS_META_DATA "$ZFS_META_DATA"
2458 ZFS_META_AUTHOR
=`$AWK -F ':[ \t]+' '$1 ~ /^ *Author$/ { print $2; exit }' $META`;
2459 if test -n "$ZFS_META_AUTHOR"; then
2461 cat >>confdefs.h
<<_ACEOF
2462 #define ZFS_META_AUTHOR "$ZFS_META_AUTHOR"
2469 ZFS_META_LT_CURRENT
=`$AWK -F ':[ \t]+' '$1 ~ /^ *LT_Current$/ { print $2; exit }' $META`;
2470 ZFS_META_LT_REVISION
=`$AWK -F ':[ \t]+' '$1 ~ /^ *LT_Revision$/ { print $2; exit }' $META`;
2471 ZFS_META_LT_AGE
=`$AWK -F ':[ \t]+' '$1 ~ /^ *LT_Age$/ { print $2; exit }' $META`;
2472 if test -n "$ZFS_META_LT_CURRENT" \
2473 -o -n "$ZFS_META_LT_REVISION" \
2474 -o -n "$ZFS_META_LT_AGE"; then
2475 test -n "$ZFS_META_LT_CURRENT" || ZFS_META_LT_CURRENT
="0"
2476 test -n "$ZFS_META_LT_REVISION" || ZFS_META_LT_REVISION
="0"
2477 test -n "$ZFS_META_LT_AGE" || ZFS_META_LT_AGE
="0"
2479 cat >>confdefs.h
<<_ACEOF
2480 #define ZFS_META_LT_CURRENT "$ZFS_META_LT_CURRENT"
2484 cat >>confdefs.h
<<_ACEOF
2485 #define ZFS_META_LT_REVISION "$ZFS_META_LT_REVISION"
2489 cat >>confdefs.h
<<_ACEOF
2490 #define ZFS_META_LT_AGE "$ZFS_META_LT_AGE"
2499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_zfs_ac_meta_type" >&5
2500 $as_echo "$_zfs_ac_meta_type" >&6; }
2504 for ac_dir
in config
"$srcdir"/config
; do
2505 if test -f "$ac_dir/install-sh"; then
2507 ac_install_sh
="$ac_aux_dir/install-sh -c"
2509 elif test -f "$ac_dir/install.sh"; then
2511 ac_install_sh
="$ac_aux_dir/install.sh -c"
2513 elif test -f "$ac_dir/shtool"; then
2515 ac_install_sh
="$ac_aux_dir/shtool install -c"
2519 if test -z "$ac_aux_dir"; then
2520 as_fn_error $?
"cannot find install-sh, install.sh, or shtool in config \"$srcdir\"/config" "$LINENO" 5
2523 # These three variables are undocumented and unsupported,
2524 # and are intended to be withdrawn in a future Autoconf release.
2525 # They can cause serious problems if a builder's source tree is in a directory
2526 # whose full name contains unusual characters.
2527 ac_config_guess
="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2528 ac_config_sub
="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2529 ac_configure
="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2533 # Make sure we can run config.sub.
2534 $SHELL "$ac_aux_dir/config.sub" sun4
>/dev
/null
2>&1 ||
2535 as_fn_error $?
"cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2538 $as_echo_n "checking build system type... " >&6; }
2539 if ${ac_cv_build+:} false
; then :
2540 $as_echo_n "(cached) " >&6
2542 ac_build_alias
=$build_alias
2543 test "x$ac_build_alias" = x
&&
2544 ac_build_alias
=`$SHELL "$ac_aux_dir/config.guess"`
2545 test "x$ac_build_alias" = x
&&
2546 as_fn_error $?
"cannot guess build type; you must specify one" "$LINENO" 5
2547 ac_cv_build
=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2548 as_fn_error $?
"$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2552 $as_echo "$ac_cv_build" >&6; }
2553 case $ac_cv_build in
2555 *) as_fn_error $?
"invalid value of canonical build" "$LINENO" 5;;
2558 ac_save_IFS
=$IFS; IFS
='-'
2564 # Remember, the first character of IFS is used to create $*,
2565 # except with old shells:
2568 case $build_os in *\
*) build_os
=`echo "$build_os" | sed 's/ /-/g'`;; esac
2571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2572 $as_echo_n "checking host system type... " >&6; }
2573 if ${ac_cv_host+:} false
; then :
2574 $as_echo_n "(cached) " >&6
2576 if test "x$host_alias" = x
; then
2577 ac_cv_host
=$ac_cv_build
2579 ac_cv_host
=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2580 as_fn_error $?
"$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2585 $as_echo "$ac_cv_host" >&6; }
2588 *) as_fn_error $?
"invalid value of canonical host" "$LINENO" 5;;
2591 ac_save_IFS
=$IFS; IFS
='-'
2597 # Remember, the first character of IFS is used to create $*,
2598 # except with old shells:
2601 case $host_os in *\
*) host_os
=`echo "$host_os" | sed 's/ /-/g'`;; esac
2604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2605 $as_echo_n "checking target system type... " >&6; }
2606 if ${ac_cv_target+:} false
; then :
2607 $as_echo_n "(cached) " >&6
2609 if test "x$target_alias" = x
; then
2610 ac_cv_target
=$ac_cv_host
2612 ac_cv_target
=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2613 as_fn_error $?
"$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2618 $as_echo "$ac_cv_target" >&6; }
2619 case $ac_cv_target in
2621 *) as_fn_error $?
"invalid value of canonical target" "$LINENO" 5;;
2623 target
=$ac_cv_target
2624 ac_save_IFS
=$IFS; IFS
='-'
2630 # Remember, the first character of IFS is used to create $*,
2631 # except with old shells:
2634 case $target_os in *\
*) target_os
=`echo "$target_os" | sed 's/ /-/g'`;; esac
2637 # The aliases save the names the user supplied, while $host etc.
2638 # will get canonicalized.
2639 test -n "$target_alias" &&
2640 test "$program_prefix$program_suffix$program_transform_name" = \
2642 program_prefix
=${target_alias}-
2645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2646 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2647 # Check whether --enable-maintainer-mode was given.
2648 if test "${enable_maintainer_mode+set}" = set; then :
2649 enableval
=$enable_maintainer_mode; USE_MAINTAINER_MODE
=$enableval
2651 USE_MAINTAINER_MODE
=no
2654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2655 $as_echo "$USE_MAINTAINER_MODE" >&6; }
2656 if test $USE_MAINTAINER_MODE = yes; then
2657 MAINTAINER_MODE_TRUE
=
2658 MAINTAINER_MODE_FALSE
='#'
2660 MAINTAINER_MODE_TRUE
='#'
2661 MAINTAINER_MODE_FALSE
=
2664 MAINT
=$MAINTAINER_MODE_TRUE
2667 # Check whether --enable-silent-rules was given.
2668 if test "${enable_silent_rules+set}" = set; then :
2669 enableval
=$enable_silent_rules;
2672 case $enable_silent_rules in
2673 yes) AM_DEFAULT_VERBOSITY
=0;;
2674 no
) AM_DEFAULT_VERBOSITY
=1;;
2675 *) AM_DEFAULT_VERBOSITY
=0;;
2677 am_make
=${MAKE-make}
2678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2679 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2680 if ${am_cv_make_support_nested_variables+:} false
; then :
2681 $as_echo_n "(cached) " >&6
2683 if $as_echo 'TRUE=$(BAR$(V))
2689 .PHONY: am__doit' |
$am_make -f - >/dev
/null
2>&1; then
2690 am_cv_make_support_nested_variables
=yes
2692 am_cv_make_support_nested_variables
=no
2695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2696 $as_echo "$am_cv_make_support_nested_variables" >&6; }
2697 if test $am_cv_make_support_nested_variables = yes; then
2699 AM_DEFAULT_V
='$(AM_DEFAULT_VERBOSITY)'
2701 AM_V
=$AM_DEFAULT_VERBOSITY
2702 AM_DEFAULT_V
=$AM_DEFAULT_VERBOSITY
2706 am__api_version='1.11'
2708 # Find a good install program. We prefer a C program (faster),
2709 # so one script is as good as another. But avoid the broken or
2710 # incompatible versions:
2711 # SysV /etc/install, /usr/sbin/install
2712 # SunOS /usr/etc/install
2713 # IRIX /sbin/install
2715 # AmigaOS /C/install, which installs bootblocks on floppy discs
2716 # AIX 4 /usr/bin/installbsd, which doesn't work without a
-g flag
2717 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2718 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2719 # OS/2's system install, which has a completely different semantic
2720 # ./install, which can be erroneously created by make from ./install.sh.
2721 # Reject install programs that cannot install multiple files.
2722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2723 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2724 if test -z "$INSTALL"; then
2725 if ${ac_cv_path_install+:} false
; then :
2726 $as_echo_n "(cached) " >&6
2728 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2732 test -z "$as_dir" && as_dir
=.
2733 # Account for people who put trailing slashes in PATH elements.
2734 case $as_dir/ in #((
2735 .
/ | .
// |
/[cC
]/* | \
2736 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
2737 ?
:[\\/]os2
[\\/]install[\\/]* | ?
:[\\/]OS2
[\\/]INSTALL
[\\/]* | \
2740 # OSF1 and SCO ODT 3.0 have their own names for install.
2741 # Don't use installbsd from OSF since it installs stuff as root
2743 for ac_prog
in ginstall scoinst
install; do
2744 for ac_exec_ext
in '' $ac_executable_extensions; do
2745 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2746 if test $ac_prog = install &&
2747 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
2748 # AIX install. It has an incompatible calling convention.
2750 elif test $ac_prog = install &&
2751 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
2752 # program-specific install script used by HP pwplus--don't use.
2755 rm -rf conftest.one conftest.two conftest.dir
2756 echo one
> conftest.one
2757 echo two
> conftest.two
2759 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two
"`pwd`/conftest.dir" &&
2760 test -s conftest.one
&& test -s conftest.two
&&
2761 test -s conftest.dir
/conftest.one
&&
2762 test -s conftest.dir
/conftest.two
2764 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
2777 rm -rf conftest.one conftest.two conftest.dir
2780 if test "${ac_cv_path_install+set}" = set; then
2781 INSTALL
=$ac_cv_path_install
2783 # As a last resort, use the slow shell script. Don't cache a
2784 # value for INSTALL within a source directory, because that will
2785 # break other packages using the cache if that directory is
2786 # removed, or if the value is a relative name.
2787 INSTALL
=$ac_install_sh
2790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2791 $as_echo "$INSTALL" >&6; }
2793 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2794 # It thinks the first close brace ends the variable substitution.
2795 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
2797 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
2799 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
2801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2802 $as_echo_n "checking whether build environment is sane... " >&6; }
2805 echo timestamp
> conftest.
file
2806 # Reject unsafe characters in $srcdir or the absolute working directory
2807 # name. Accept space and tab only in the latter.
2811 *[\\\"\
#\$\&\'\`$am_lf]*)
2812 as_fn_error $?
"unsafe absolute working directory name" "$LINENO" 5;;
2815 *[\\\"\
#\$\&\'\`$am_lf\ \ ]*)
2816 as_fn_error $?
"unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2819 # Do `set' in a subshell so we don't clobber the current shell's
2820 # arguments. Must try -L first in case configure is actually a
2821 # symlink; some systems play weird games with the mod time of symlinks
2822 # (eg FreeBSD returns the mod time of the symlink's containing
2825 set X
`ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2826 if test "$*" = "X"; then
2828 set X
`ls -t "$srcdir/configure" conftest.file`
2831 if test "$*" != "X $srcdir/configure conftest.file" \
2832 && test "$*" != "X conftest.file $srcdir/configure"; then
2834 # If neither matched, then we have a broken ls. This can happen
2835 # if, for instance, CONFIG_SHELL is bash and it inherits a
2836 # broken ls alias from the environment. This has actually
2837 # happened. Such a system could not be considered "sane".
2838 as_fn_error $?
"ls -t appears to fail. Make sure there is not a broken
2839 alias in your environment" "$LINENO" 5
2842 test "$2" = conftest.
file
2848 as_fn_error $?
"newly created file is older than distributed files!
2849 Check your system clock" "$LINENO" 5
2851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2852 $as_echo "yes" >&6; }
2853 test "$program_prefix" != NONE
&&
2854 program_transform_name
="s&^&$program_prefix&;$program_transform_name"
2855 # Use a double $ so make ignores it.
2856 test "$program_suffix" != NONE
&&
2857 program_transform_name
="s&\$&$program_suffix&;$program_transform_name"
2858 # Double any \ or $.
2859 # By default was `s,x,x', remove it if useless.
2860 ac_script
='s/[\\$]/&&/g;s/;s,x,x,$//'
2861 program_transform_name
=`$as_echo "$program_transform_name" | sed "$ac_script"`
2863 # expand $ac_aux_dir to an absolute path
2864 am_aux_dir
=`cd $ac_aux_dir && pwd`
2866 if test x
"${MISSING+set}" != xset
; then
2869 MISSING
="\${SHELL} \"$am_aux_dir/missing\"" ;;
2871 MISSING
="\${SHELL} $am_aux_dir/missing" ;;
2874 # Use eval to expand $SHELL
2875 if eval "$MISSING --run true"; then
2876 am_missing_run
="$MISSING --run "
2879 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2880 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2883 if test x
"${install_sh}" != xset
; then
2886 install_sh
="\${SHELL} '$am_aux_dir/install-sh'" ;;
2888 install_sh
="\${SHELL} $am_aux_dir/install-sh"
2892 # Installed binaries are usually stripped using `strip' when the user
2893 # run `make install-strip'. However `strip' might not be the right
2894 # tool to use in cross-compilation environments, therefore Automake
2895 # will honor the `STRIP' environment variable to overrule this program.
2896 if test "$cross_compiling" != no
; then
2897 if test -n "$ac_tool_prefix"; then
2898 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2899 set dummy
${ac_tool_prefix}strip
; ac_word
=$2
2900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2901 $as_echo_n "checking for $ac_word... " >&6; }
2902 if ${ac_cv_prog_STRIP+:} false
; then :
2903 $as_echo_n "(cached) " >&6
2905 if test -n "$STRIP"; then
2906 ac_cv_prog_STRIP
="$STRIP" # Let the user override the test.
2908 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2912 test -z "$as_dir" && as_dir
=.
2913 for ac_exec_ext
in '' $ac_executable_extensions; do
2914 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2915 ac_cv_prog_STRIP
="${ac_tool_prefix}strip"
2916 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2925 STRIP
=$ac_cv_prog_STRIP
2926 if test -n "$STRIP"; then
2927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2928 $as_echo "$STRIP" >&6; }
2930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2931 $as_echo "no" >&6; }
2936 if test -z "$ac_cv_prog_STRIP"; then
2938 # Extract the first word of "strip", so it can be a program name with args.
2939 set dummy strip
; ac_word
=$2
2940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2941 $as_echo_n "checking for $ac_word... " >&6; }
2942 if ${ac_cv_prog_ac_ct_STRIP+:} false
; then :
2943 $as_echo_n "(cached) " >&6
2945 if test -n "$ac_ct_STRIP"; then
2946 ac_cv_prog_ac_ct_STRIP
="$ac_ct_STRIP" # Let the user override the test.
2948 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2952 test -z "$as_dir" && as_dir
=.
2953 for ac_exec_ext
in '' $ac_executable_extensions; do
2954 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2955 ac_cv_prog_ac_ct_STRIP
="strip"
2956 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2965 ac_ct_STRIP
=$ac_cv_prog_ac_ct_STRIP
2966 if test -n "$ac_ct_STRIP"; then
2967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2968 $as_echo "$ac_ct_STRIP" >&6; }
2970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2971 $as_echo "no" >&6; }
2974 if test "x$ac_ct_STRIP" = x
; then
2977 case $cross_compiling:$ac_tool_warned in
2979 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2980 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2981 ac_tool_warned
=yes ;;
2986 STRIP
="$ac_cv_prog_STRIP"
2990 INSTALL_STRIP_PROGRAM
="\$(install_sh) -c -s"
2992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2993 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2994 if test -z "$MKDIR_P"; then
2995 if ${ac_cv_path_mkdir+:} false
; then :
2996 $as_echo_n "(cached) " >&6
2998 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2999 for as_dir
in $PATH$PATH_SEPARATOR/opt
/sfw
/bin
3002 test -z "$as_dir" && as_dir
=.
3003 for ac_prog
in mkdir gmkdir
; do
3004 for ac_exec_ext
in '' $ac_executable_extensions; do
3005 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } ||
continue
3006 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3007 'mkdir (GNU coreutils) '* | \
3008 'mkdir (coreutils) '* | \
3009 'mkdir (fileutils) '4.1*)
3010 ac_cv_path_mkdir
=$as_dir/$ac_prog$ac_exec_ext
3020 test -d .
/--version && rmdir .
/--version
3021 if test "${ac_cv_path_mkdir+set}" = set; then
3022 MKDIR_P
="$ac_cv_path_mkdir -p"
3024 # As a last resort, use the slow shell script. Don't cache a
3025 # value for MKDIR_P within a source directory, because that will
3026 # break other packages using the cache if that directory is
3027 # removed, or if the value is a relative name.
3028 MKDIR_P
="$ac_install_sh -d"
3031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3032 $as_echo "$MKDIR_P" >&6; }
3036 [\\/$
]* | ?
:[\\/]*) ;;
3037 */*) mkdir_p
="\$(top_builddir)/$mkdir_p" ;;
3040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3041 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3043 ac_make
=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3044 if eval \
${ac_cv_prog_make_${ac_make}_set+:} false
; then :
3045 $as_echo_n "(cached) " >&6
3047 cat >conftest.
make <<\_ACEOF
3050 @
echo '@@@%%%=$(MAKE)=@@@%%%'
3052 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3053 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3055 eval ac_cv_prog_make_
${ac_make}_set
=yes;;
3057 eval ac_cv_prog_make_
${ac_make}_set
=no
;;
3061 if eval test \
$ac_cv_prog_make_${ac_make}_set
= yes; then
3062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3063 $as_echo "yes" >&6; }
3066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3067 $as_echo "no" >&6; }
3068 SET_MAKE
="MAKE=${MAKE-make}"
3071 rm -rf .tst
2>/dev
/null
3072 mkdir .tst
2>/dev
/null
3073 if test -d .tst
; then
3078 rmdir .tst
2>/dev
/null
3080 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3081 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3082 # is not polluted with repeated "-I."
3083 am__isrc
=' -I$(srcdir)'
3084 # test to see if srcdir already configured
3085 if test -f $srcdir/config.status
; then
3086 as_fn_error $?
"source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3090 # test whether we have cygpath
3091 if test -z "$CYGPATH_W"; then
3092 if (cygpath
--version) >/dev
/null
2>/dev
/null
; then
3093 CYGPATH_W
='cygpath -w'
3100 # Define the identity of the package.
3105 cat >>confdefs.h
<<_ACEOF
3106 #define PACKAGE "$PACKAGE"
3110 cat >>confdefs.h
<<_ACEOF
3111 #define VERSION "$VERSION"
3114 # Some tools Automake needs.
3116 ACLOCAL
=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3119 AUTOCONF
=${AUTOCONF-"${am_missing_run}autoconf"}
3122 AUTOMAKE
=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3125 AUTOHEADER
=${AUTOHEADER-"${am_missing_run}autoheader"}
3128 MAKEINFO
=${MAKEINFO-"${am_missing_run}makeinfo"}
3130 # We need awk for the "check" target. The system "awk" is bad on
3132 # Always define AMTAR for backward compatibility. Yes, it's still used
3133 # in the wild :-( We should find a proper way to deprecate it ...
3136 am__tar
='$${TAR-tar} chof - "$$tardir"' am__untar
='$${TAR-tar} xf -'
3142 ac_config_headers
="$ac_config_headers zfs_config.h"
3147 ac_cpp
='$CPP $CPPFLAGS'
3148 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3149 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3150 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3151 if test -n "$ac_tool_prefix"; then
3152 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3153 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
3154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3155 $as_echo_n "checking for $ac_word... " >&6; }
3156 if ${ac_cv_prog_CC+:} false
; then :
3157 $as_echo_n "(cached) " >&6
3159 if test -n "$CC"; then
3160 ac_cv_prog_CC
="$CC" # Let the user override the test.
3162 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3166 test -z "$as_dir" && as_dir
=.
3167 for ac_exec_ext
in '' $ac_executable_extensions; do
3168 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3169 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
3170 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3180 if test -n "$CC"; then
3181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3182 $as_echo "$CC" >&6; }
3184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3185 $as_echo "no" >&6; }
3190 if test -z "$ac_cv_prog_CC"; then
3192 # Extract the first word of "gcc", so it can be a program name with args.
3193 set dummy gcc
; ac_word
=$2
3194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3195 $as_echo_n "checking for $ac_word... " >&6; }
3196 if ${ac_cv_prog_ac_ct_CC+:} false
; then :
3197 $as_echo_n "(cached) " >&6
3199 if test -n "$ac_ct_CC"; then
3200 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3202 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3206 test -z "$as_dir" && as_dir
=.
3207 for ac_exec_ext
in '' $ac_executable_extensions; do
3208 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3209 ac_cv_prog_ac_ct_CC
="gcc"
3210 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3219 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3220 if test -n "$ac_ct_CC"; then
3221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3222 $as_echo "$ac_ct_CC" >&6; }
3224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3225 $as_echo "no" >&6; }
3228 if test "x$ac_ct_CC" = x
; then
3231 case $cross_compiling:$ac_tool_warned in
3233 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3234 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3235 ac_tool_warned
=yes ;;
3243 if test -z "$CC"; then
3244 if test -n "$ac_tool_prefix"; then
3245 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3246 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
3247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3248 $as_echo_n "checking for $ac_word... " >&6; }
3249 if ${ac_cv_prog_CC+:} false
; then :
3250 $as_echo_n "(cached) " >&6
3252 if test -n "$CC"; then
3253 ac_cv_prog_CC
="$CC" # Let the user override the test.
3255 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3259 test -z "$as_dir" && as_dir
=.
3260 for ac_exec_ext
in '' $ac_executable_extensions; do
3261 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3262 ac_cv_prog_CC
="${ac_tool_prefix}cc"
3263 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3273 if test -n "$CC"; then
3274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3275 $as_echo "$CC" >&6; }
3277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3278 $as_echo "no" >&6; }
3284 if test -z "$CC"; then
3285 # Extract the first word of "cc", so it can be a program name with args.
3286 set dummy cc
; ac_word
=$2
3287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3288 $as_echo_n "checking for $ac_word... " >&6; }
3289 if ${ac_cv_prog_CC+:} false
; then :
3290 $as_echo_n "(cached) " >&6
3292 if test -n "$CC"; then
3293 ac_cv_prog_CC
="$CC" # Let the user override the test.
3296 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3300 test -z "$as_dir" && as_dir
=.
3301 for ac_exec_ext
in '' $ac_executable_extensions; do
3302 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3303 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3304 ac_prog_rejected
=yes
3308 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3315 if test $ac_prog_rejected = yes; then
3316 # We found a bogon in the path, so make sure we never use it.
3317 set dummy
$ac_cv_prog_CC
3319 if test $# != 0; then
3320 # We chose a different compiler from the bogus one.
3321 # However, it has the same basename, so the bogon will be chosen
3322 # first if we set CC to just the basename; use the full file name.
3324 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
3330 if test -n "$CC"; then
3331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3332 $as_echo "$CC" >&6; }
3334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3335 $as_echo "no" >&6; }
3340 if test -z "$CC"; then
3341 if test -n "$ac_tool_prefix"; then
3342 for ac_prog
in cl.exe
3344 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3345 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
3346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3347 $as_echo_n "checking for $ac_word... " >&6; }
3348 if ${ac_cv_prog_CC+:} false
; then :
3349 $as_echo_n "(cached) " >&6
3351 if test -n "$CC"; then
3352 ac_cv_prog_CC
="$CC" # Let the user override the test.
3354 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3358 test -z "$as_dir" && as_dir
=.
3359 for ac_exec_ext
in '' $ac_executable_extensions; do
3360 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3361 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
3362 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3372 if test -n "$CC"; then
3373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3374 $as_echo "$CC" >&6; }
3376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3377 $as_echo "no" >&6; }
3381 test -n "$CC" && break
3384 if test -z "$CC"; then
3386 for ac_prog
in cl.exe
3388 # Extract the first word of "$ac_prog", so it can be a program name with args.
3389 set dummy
$ac_prog; ac_word
=$2
3390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3391 $as_echo_n "checking for $ac_word... " >&6; }
3392 if ${ac_cv_prog_ac_ct_CC+:} false
; then :
3393 $as_echo_n "(cached) " >&6
3395 if test -n "$ac_ct_CC"; then
3396 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3398 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3402 test -z "$as_dir" && as_dir
=.
3403 for ac_exec_ext
in '' $ac_executable_extensions; do
3404 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3405 ac_cv_prog_ac_ct_CC
="$ac_prog"
3406 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3415 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3416 if test -n "$ac_ct_CC"; then
3417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3418 $as_echo "$ac_ct_CC" >&6; }
3420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3421 $as_echo "no" >&6; }
3425 test -n "$ac_ct_CC" && break
3428 if test "x$ac_ct_CC" = x
; then
3431 case $cross_compiling:$ac_tool_warned in
3433 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3434 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3435 ac_tool_warned
=yes ;;
3444 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3445 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3446 as_fn_error $?
"no acceptable C compiler found in \$PATH
3447 See \`config.log' for more details" "$LINENO" 5; }
3449 # Provide some information about the compiler.
3450 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3453 for ac_option
in --version -v -V -qversion; do
3454 { { ac_try
="$ac_compiler $ac_option >&5"
3456 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3457 *) ac_try_echo=$ac_try;;
3459 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3460 $as_echo "$ac_try_echo"; } >&5
3461 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3463 if test -s conftest.err; then
3465 ... rest of stderr output deleted ...
3466 10q' conftest.err >conftest.er1
3467 cat conftest.er1 >&5
3469 rm -f conftest.er1 conftest.err
3470 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3471 test $ac_status = 0; }
3474 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3475 /* end confdefs.h. */
3485 ac_clean_files_save=$ac_clean_files
3486 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3487 # Try to create an executable without -o first, disregard a.out.
3488 # It will help us diagnose broken compilers, and finding out an intuition
3490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3491 $as_echo_n "checking whether the C compiler works... " >&6; }
3492 ac_link_default=`$as_echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
3494 # The possible output files:
3495 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3498 for ac_file in $ac_files
3501 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3502 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3507 if { { ac_try="$ac_link_default"
3509 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3510 *) ac_try_echo
=$ac_try;;
3512 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3513 $as_echo "$ac_try_echo"; } >&5
3514 (eval "$ac_link_default") 2>&5
3516 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3517 test $ac_status = 0; }; then :
3518 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3519 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3520 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3521 # so that the user can short-circuit this test for compilers unknown to
3523 for ac_file
in $ac_files ''
3525 test -f "$ac_file" ||
continue
3527 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
)
3530 # We found the default executable, but exeext='' is most
3534 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
3536 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3538 # We set ac_cv_exeext here because the later test for it is not
3539 # safe: cross compilers may not add the suffix if given an `-o'
3540 # argument, so we may need to know it at that point already.
3541 # Even if this section looks crufty: it has the advantage of
3548 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
3553 if test -z "$ac_file"; then :
3554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3555 $as_echo "no" >&6; }
3556 $as_echo "$as_me: failed program was:" >&5
3557 sed 's/^/| /' conftest.
$ac_ext >&5
3559 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3560 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3561 as_fn_error
77 "C compiler cannot create executables
3562 See \`config.log' for more details" "$LINENO" 5; }
3564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3565 $as_echo "yes" >&6; }
3567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3568 $as_echo_n "checking for C compiler default output file name... " >&6; }
3569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3570 $as_echo "$ac_file" >&6; }
3571 ac_exeext
=$ac_cv_exeext
3573 rm -f -r a.out a.out.dSYM a.exe conftest
$ac_cv_exeext b.out
3574 ac_clean_files
=$ac_clean_files_save
3575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3576 $as_echo_n "checking for suffix of executables... " >&6; }
3577 if { { ac_try
="$ac_link"
3579 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3580 *) ac_try_echo=$ac_try;;
3582 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3583 $as_echo "$ac_try_echo"; } >&5
3584 (eval "$ac_link") 2>&5
3586 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3587 test $ac_status = 0; }; then :
3588 # If both `conftest.exe
' and `conftest' are
`present' (well, observable)
3589 # catch `conftest.exe
'. For instance with Cygwin, `ls conftest' will
3590 # work properly (i.e., refer to `conftest.exe'), while it won't with
3592 for ac_file
in conftest.exe conftest conftest.
*; do
3593 test -f "$ac_file" ||
continue
3595 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
3596 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3602 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3603 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3604 as_fn_error $?
"cannot compute suffix of executables: cannot compile and link
3605 See \`config.log' for more details" "$LINENO" 5; }
3607 rm -f conftest conftest
$ac_cv_exeext
3608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3609 $as_echo "$ac_cv_exeext" >&6; }
3611 rm -f conftest.
$ac_ext
3612 EXEEXT
=$ac_cv_exeext
3614 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3615 /* end confdefs.h. */
3620 FILE *f = fopen ("conftest.out", "w");
3621 return ferror (f) || fclose (f) != 0;
3627 ac_clean_files
="$ac_clean_files conftest.out"
3628 # Check that the compiler produces executables we can run. If not, either
3629 # the compiler is broken, or we cross compile.
3630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3631 $as_echo_n "checking whether we are cross compiling... " >&6; }
3632 if test "$cross_compiling" != yes; then
3633 { { ac_try
="$ac_link"
3635 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3636 *) ac_try_echo=$ac_try;;
3638 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3639 $as_echo "$ac_try_echo"; } >&5
3640 (eval "$ac_link") 2>&5
3642 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3643 test $ac_status = 0; }
3644 if { ac_try='./conftest$ac_cv_exeext'
3645 { { case "(($ac_try" in
3646 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3647 *) ac_try_echo
=$ac_try;;
3649 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3650 $as_echo "$ac_try_echo"; } >&5
3651 (eval "$ac_try") 2>&5
3653 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3654 test $ac_status = 0; }; }; then
3657 if test "$cross_compiling" = maybe
; then
3660 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3661 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3662 as_fn_error $?
"cannot run C compiled programs.
3663 If you meant to cross compile, use \`--host'.
3664 See \`config.log' for more details" "$LINENO" 5; }
3668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3669 $as_echo "$cross_compiling" >&6; }
3671 rm -f conftest.
$ac_ext conftest
$ac_cv_exeext conftest.out
3672 ac_clean_files
=$ac_clean_files_save
3673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3674 $as_echo_n "checking for suffix of object files... " >&6; }
3675 if ${ac_cv_objext+:} false
; then :
3676 $as_echo_n "(cached) " >&6
3678 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3679 /* end confdefs.h. */
3689 rm -f conftest.o conftest.obj
3690 if { { ac_try
="$ac_compile"
3692 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3693 *) ac_try_echo=$ac_try;;
3695 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3696 $as_echo "$ac_try_echo"; } >&5
3697 (eval "$ac_compile") 2>&5
3699 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3700 test $ac_status = 0; }; then :
3701 for ac_file in conftest.o conftest.obj conftest.*; do
3702 test -f "$ac_file" || continue;
3704 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3705 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3710 $as_echo "$as_me: failed program was:" >&5
3711 sed 's/^/| /' conftest.$ac_ext >&5
3713 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3714 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3715 as_fn_error $? "cannot compute suffix of object files
: cannot compile
3716 See \
`config.log' for more details" "$LINENO" 5; }
3718 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3721 $as_echo "$ac_cv_objext" >&6; }
3722 OBJEXT=$ac_cv_objext
3724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3725 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3726 if ${ac_cv_c_compiler_gnu+:} false; then :
3727 $as_echo_n "(cached) " >&6
3729 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3730 /* end confdefs.h. */
3743 if ac_fn_c_try_compile "$LINENO"; then :
3748 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3749 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3753 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3754 if test $ac_compiler_gnu = yes; then
3759 ac_test_CFLAGS=${CFLAGS+set}
3760 ac_save_CFLAGS=$CFLAGS
3761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3762 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3763 if ${ac_cv_prog_cc_g+:} false; then :
3764 $as_echo_n "(cached) " >&6
3766 ac_save_c_werror_flag=$ac_c_werror_flag
3767 ac_c_werror_flag=yes
3770 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3771 /* end confdefs.h. */
3781 if ac_fn_c_try_compile "$LINENO"; then :
3785 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3786 /* end confdefs.h. */
3796 if ac_fn_c_try_compile "$LINENO"; then :
3799 ac_c_werror_flag=$ac_save_c_werror_flag
3801 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3802 /* end confdefs.h. */
3812 if ac_fn_c_try_compile "$LINENO"; then :
3815 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3817 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3819 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3820 ac_c_werror_flag=$ac_save_c_werror_flag
3822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3823 $as_echo "$ac_cv_prog_cc_g" >&6; }
3824 if test "$ac_test_CFLAGS" = set; then
3825 CFLAGS=$ac_save_CFLAGS
3826 elif test $ac_cv_prog_cc_g = yes; then
3827 if test "$GCC" = yes; then
3833 if test "$GCC" = yes; then
3839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3840 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3841 if ${ac_cv_prog_cc_c89+:} false; then :
3842 $as_echo_n "(cached) " >&6
3844 ac_cv_prog_cc_c89=no
3846 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3847 /* end confdefs.h. */
3850 #include <sys/types.h>
3851 #include <sys/stat.h>
3852 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3853 struct buf { int x; };
3854 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3855 static char *e (p, i)
3861 static char *f (char * (*g) (char **, int), char **p, ...)
3866 s = g (p, va_arg (v,int));
3871 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3872 function prototypes and stuff, but not '\xHH' hex character constants.
3873 These don't provoke an error unfortunately, instead are silently treated
3874 as 'x'. The following induces an error, until -std is added to get
3875 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3876 array size at least. It's necessary to write '\x00'==0 to get something
3877 that's true only with -std. */
3878 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3880 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3881 inside strings and character constants. */
3883 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3885 int test (int i, double x);
3886 struct s1 {int (*f) (int a);};
3887 struct s2 {int (*f) (double a);};
3888 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3894 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3899 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3900 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3902 CC="$ac_save_CC $ac_arg"
3903 if ac_fn_c_try_compile "$LINENO"; then :
3904 ac_cv_prog_cc_c89=$ac_arg
3906 rm -f core conftest.err conftest.$ac_objext
3907 test "x$ac_cv_prog_cc_c89" != "xno" && break
3909 rm -f conftest.$ac_ext
3914 case "x$ac_cv_prog_cc_c89" in
3916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3917 $as_echo "none needed" >&6; } ;;
3919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3920 $as_echo "unsupported" >&6; } ;;
3922 CC="$CC $ac_cv_prog_cc_c89"
3923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3924 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3926 if test "x$ac_cv_prog_cc_c89" != xno; then :
3931 ac_cpp='$CPP $CPPFLAGS'
3932 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3933 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3934 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3935 DEPDIR="${am__leading_dot}deps"
3937 ac_config_commands="$ac_config_commands depfiles"
3940 am_make=${MAKE-make}
3941 cat > confinc << 'END'
3943 @echo this is the am__doit target
3946 # If we don't find an include directive, just comment out the code.
3947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3948 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3952 # First try GNU make style include.
3953 echo "include confinc" > confmf
3954 # Ignore all kinds of additional output from `make'.
3955 case `$am_make -s -f confmf 2> /dev/null` in #(
3956 *the\ am__doit\ target*)
3962 # Now try BSD make style include.
3963 if test "$am__include" = "#"; then
3964 echo '.include
"confinc"' > confmf
3965 case `$am_make -s -f confmf 2> /dev/null` in #(
3966 *the\ am__doit\ target*)
3967 am__include=.include
3975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3976 $as_echo "$_am_result" >&6; }
3977 rm -f confinc confmf
3979 # Check whether --enable-dependency-tracking was given.
3980 if test "${enable_dependency_tracking+set}" = set; then :
3981 enableval=$enable_dependency_tracking;
3984 if test "x$enable_dependency_tracking" != xno; then
3985 am_depcomp="$ac_aux_dir/depcomp"
3989 if test "x$enable_dependency_tracking" != xno
; then
3999 depcc
="$CC" am_compiler_list
=
4001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4002 $as_echo_n "checking dependency style of $depcc... " >&6; }
4003 if ${am_cv_CC_dependencies_compiler_type+:} false
; then :
4004 $as_echo_n "(cached) " >&6
4006 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4007 # We make a subdir and do the tests there. Otherwise we can end up
4008 # making bogus files that we don't know about and never remove. For
4009 # instance it was reported that on HP-UX the gcc test will end up
4010 # making a dummy file named `D' -- because `-MD' means `put the output
4014 # Copy depcomp to subdir because otherwise we won't find it if we're
4015 # using a relative directory.
4016 cp "$am_depcomp" conftest.dir
4018 # We will build objects and dependencies in a subdirectory because
4019 # it helps to detect inapplicable dependency modes. For instance
4020 # both Tru64's cc and ICC support -MD to output dependencies as a
4021 # side effect of compilation, but ICC will put the dependencies in
4022 # the current directory while Tru64 will put them in the object
4026 am_cv_CC_dependencies_compiler_type
=none
4027 if test "$am_compiler_list" = ""; then
4028 am_compiler_list
=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4031 case " $depcc " in #(
4032 *\
-arch\
*\
-arch\
*) am__universal
=true
;;
4035 for depmode
in $am_compiler_list; do
4036 # Setup a source with many dependencies, because some compilers
4037 # like to wrap large dependency lists on column 80 (with \), and
4038 # we should not choose a depcomp mode which is confused by this.
4040 # We need to recreate these files for each test, as the compiler may
4041 # overwrite some of them when testing with obscure command lines.
4042 # This happens at least with the AIX C compiler.
4044 for i
in 1 2 3 4 5 6; do
4045 echo '#include "conftst'$i'.h"' >> sub
/conftest.c
4046 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4047 # Solaris 8's {/usr,}/bin/sh.
4048 touch sub
/conftst
$i.h
4050 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4052 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4053 # mode. It turns out that the SunPro C++ compiler does not properly
4054 # handle `-M -o', and we need to detect this. Also, some Intel
4055 # versions had trouble with output in subdirs
4056 am__obj
=sub
/conftest.
${OBJEXT-o}
4057 am__minus_obj
="-o $am__obj"
4060 # This depmode causes a compiler race in universal mode.
4061 test "$am__universal" = false ||
continue
4064 # after this tag, mechanisms are not by side-effect, so they'll
4065 # only be used when explicitly requested
4066 if test "x$enable_dependency_tracking" = xyes
; then
4072 msvc7 | msvc7msys | msvisualcpp | msvcmsys
)
4073 # This compiler won't grok `-c -o', but also, the minuso test has
4074 # not run yet. These depmodes are late enough in the game, and
4075 # so weak that their functioning should not be impacted.
4076 am__obj
=conftest.
${OBJEXT-o}
4081 if depmode
=$depmode \
4082 source=sub
/conftest.c object
=$am__obj \
4083 depfile
=sub
/conftest.Po tmpdepfile
=sub
/conftest.TPo \
4084 $SHELL .
/depcomp
$depcc -c $am__minus_obj sub
/conftest.c \
4085 >/dev
/null
2>conftest.err
&&
4086 grep sub
/conftst1.h sub
/conftest.Po
> /dev
/null
2>&1 &&
4087 grep sub
/conftst6.h sub
/conftest.Po
> /dev
/null
2>&1 &&
4088 grep $am__obj sub
/conftest.Po
> /dev
/null
2>&1 &&
4089 ${MAKE-make} -s -f confmf
> /dev
/null
2>&1; then
4090 # icc doesn't choke on unknown options, it will just issue warnings
4091 # or remarks (even with -Werror). So we grep stderr for any message
4092 # that says an option was ignored or not supported.
4093 # When given -MP, icc 7.0 and 7.1 complain thusly:
4094 # icc: Command line warning: ignoring option '-M'; no argument required
4095 # The diagnosis changed in icc 8.0:
4096 # icc: Command line remark: option '-MP' not supported
4097 if (grep 'ignoring option' conftest.err ||
4098 grep 'not supported' conftest.err
) >/dev
/null
2>&1; then :; else
4099 am_cv_CC_dependencies_compiler_type
=$depmode
4108 am_cv_CC_dependencies_compiler_type
=none
4112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4113 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4114 CCDEPMODE
=depmode
=$am_cv_CC_dependencies_compiler_type
4117 test "x$enable_dependency_tracking" != xno \
4118 && test "$am_cv_CC_dependencies_compiler_type" = gcc3
; then
4120 am__fastdepCC_FALSE
='#'
4122 am__fastdepCC_TRUE
='#'
4123 am__fastdepCC_FALSE
=
4129 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4130 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4135 macro_version
='2.4.2'
4136 macro_revision
='1.3337'
4150 ltmain
="$ac_aux_dir/ltmain.sh"
4152 # Backslashify metacharacters that are still active within
4153 # double-quoted strings.
4154 sed_quote_subst
='s/\(["`$\\]\)/\\\1/g'
4156 # Same as above, but do not quote variable references.
4157 double_quote_subst
='s/\(["`\\]\)/\\\1/g'
4159 # Sed substitution to delay expansion of an escaped shell variable in a
4160 # double_quote_subst'ed string.
4161 delay_variable_subst
='s/\\\\\\\\\\\$/\\\\\\$/g'
4163 # Sed substitution to delay expansion of an escaped single quote.
4164 delay_single_quote_subst
='s/'\''/'\'\\\\\\\'\''/g'
4166 # Sed substitution to avoid accidental globbing in evaled expressions
4167 no_glob_subst
='s/\*/\\\*/g'
4169 ECHO
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4170 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4171 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4174 $as_echo_n "checking how to print strings... " >&6; }
4175 # Test print first, because it will be a builtin if present.
4176 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
4177 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4179 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4182 # Use this function as a fallback that always works.
4183 func_fallback_echo ()
4185 eval 'cat <<_LTECHO_EOF
4189 ECHO='func_fallback_echo
'
4192 # func_echo_all arg...
4193 # Invoke $ECHO with all args, space-separated.
4200 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4201 $as_echo "printf" >&6; } ;;
4202 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4203 $as_echo "print -r" >&6; } ;;
4204 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4205 $as_echo "cat" >&6; } ;;
4221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4222 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4223 if ${ac_cv_path_SED+:} false; then :
4224 $as_echo_n "(cached) " >&6
4226 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4227 for ac_i in 1 2 3 4 5 6 7; do
4228 ac_script="$ac_script$as_nl$ac_script"
4230 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4231 { ac_script=; unset ac_script;}
4232 if test -z "$SED"; then
4233 ac_path_SED_found=false
4234 # Loop through the user's path and
test for each of PROGNAME-LIST
4235 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4239 test -z "$as_dir" && as_dir
=.
4240 for ac_prog
in sed gsed
; do
4241 for ac_exec_ext
in '' $ac_executable_extensions; do
4242 ac_path_SED
="$as_dir/$ac_prog$ac_exec_ext"
4243 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } ||
continue
4244 # Check for GNU ac_path_SED and select it if it is found.
4245 # Check for GNU $ac_path_SED
4246 case `"$ac_path_SED" --version 2>&1` in
4248 ac_cv_path_SED
="$ac_path_SED" ac_path_SED_found
=:;;
4251 $as_echo_n 0123456789 >"conftest.in"
4254 cat "conftest.in" "conftest.in" >"conftest.tmp"
4255 mv "conftest.tmp" "conftest.in"
4256 cp "conftest.in" "conftest.nl"
4257 $as_echo '' >> "conftest.nl"
4258 "$ac_path_SED" -f conftest.
sed < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4259 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4260 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
4261 if test $ac_count -gt ${ac_path_SED_max-0}; then
4262 # Best one so far, save it but keep looking for a better one
4263 ac_cv_path_SED
="$ac_path_SED"
4264 ac_path_SED_max
=$ac_count
4266 # 10*(2^10) chars as input seems more than enough
4267 test $ac_count -gt 10 && break
4269 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4272 $ac_path_SED_found && break 3
4277 if test -z "$ac_cv_path_SED"; then
4278 as_fn_error $?
"no acceptable sed could be found in \$PATH" "$LINENO" 5
4285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4286 $as_echo "$ac_cv_path_SED" >&6; }
4287 SED
="$ac_cv_path_SED"
4290 test -z "$SED" && SED
=sed
4291 Xsed
="$SED -e 1s/^X//"
4303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4304 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4305 if ${ac_cv_path_GREP+:} false
; then :
4306 $as_echo_n "(cached) " >&6
4308 if test -z "$GREP"; then
4309 ac_path_GREP_found
=false
4310 # Loop through the user's path and test for each of PROGNAME-LIST
4311 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4312 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4315 test -z "$as_dir" && as_dir
=.
4316 for ac_prog
in grep ggrep
; do
4317 for ac_exec_ext
in '' $ac_executable_extensions; do
4318 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
4319 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } ||
continue
4320 # Check for GNU ac_path_GREP and select it if it is found.
4321 # Check for GNU $ac_path_GREP
4322 case `"$ac_path_GREP" --version 2>&1` in
4324 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
4327 $as_echo_n 0123456789 >"conftest.in"
4330 cat "conftest.in" "conftest.in" >"conftest.tmp"
4331 mv "conftest.tmp" "conftest.in"
4332 cp "conftest.in" "conftest.nl"
4333 $as_echo 'GREP' >> "conftest.nl"
4334 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4335 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4336 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
4337 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4338 # Best one so far, save it but keep looking for a better one
4339 ac_cv_path_GREP
="$ac_path_GREP"
4340 ac_path_GREP_max
=$ac_count
4342 # 10*(2^10) chars as input seems more than enough
4343 test $ac_count -gt 10 && break
4345 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4348 $ac_path_GREP_found && break 3
4353 if test -z "$ac_cv_path_GREP"; then
4354 as_fn_error $?
"no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4357 ac_cv_path_GREP
=$GREP
4361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4362 $as_echo "$ac_cv_path_GREP" >&6; }
4363 GREP
="$ac_cv_path_GREP"
4366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4367 $as_echo_n "checking for egrep... " >&6; }
4368 if ${ac_cv_path_EGREP+:} false
; then :
4369 $as_echo_n "(cached) " >&6
4371 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
4372 then ac_cv_path_EGREP
="$GREP -E"
4374 if test -z "$EGREP"; then
4375 ac_path_EGREP_found
=false
4376 # Loop through the user's path and test for each of PROGNAME-LIST
4377 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4378 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4381 test -z "$as_dir" && as_dir
=.
4382 for ac_prog
in egrep; do
4383 for ac_exec_ext
in '' $ac_executable_extensions; do
4384 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
4385 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } ||
continue
4386 # Check for GNU ac_path_EGREP and select it if it is found.
4387 # Check for GNU $ac_path_EGREP
4388 case `"$ac_path_EGREP" --version 2>&1` in
4390 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
4393 $as_echo_n 0123456789 >"conftest.in"
4396 cat "conftest.in" "conftest.in" >"conftest.tmp"
4397 mv "conftest.tmp" "conftest.in"
4398 cp "conftest.in" "conftest.nl"
4399 $as_echo 'EGREP' >> "conftest.nl"
4400 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4401 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4402 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
4403 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4404 # Best one so far, save it but keep looking for a better one
4405 ac_cv_path_EGREP
="$ac_path_EGREP"
4406 ac_path_EGREP_max
=$ac_count
4408 # 10*(2^10) chars as input seems more than enough
4409 test $ac_count -gt 10 && break
4411 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4414 $ac_path_EGREP_found && break 3
4419 if test -z "$ac_cv_path_EGREP"; then
4420 as_fn_error $?
"no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4423 ac_cv_path_EGREP
=$EGREP
4428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4429 $as_echo "$ac_cv_path_EGREP" >&6; }
4430 EGREP
="$ac_cv_path_EGREP"
4433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4434 $as_echo_n "checking for fgrep... " >&6; }
4435 if ${ac_cv_path_FGREP+:} false
; then :
4436 $as_echo_n "(cached) " >&6
4438 if echo 'ab*c' |
$GREP -F 'ab*c' >/dev
/null
2>&1
4439 then ac_cv_path_FGREP
="$GREP -F"
4441 if test -z "$FGREP"; then
4442 ac_path_FGREP_found
=false
4443 # Loop through the user's path and test for each of PROGNAME-LIST
4444 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4445 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4448 test -z "$as_dir" && as_dir
=.
4449 for ac_prog
in fgrep
; do
4450 for ac_exec_ext
in '' $ac_executable_extensions; do
4451 ac_path_FGREP
="$as_dir/$ac_prog$ac_exec_ext"
4452 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } ||
continue
4453 # Check for GNU ac_path_FGREP and select it if it is found.
4454 # Check for GNU $ac_path_FGREP
4455 case `"$ac_path_FGREP" --version 2>&1` in
4457 ac_cv_path_FGREP
="$ac_path_FGREP" ac_path_FGREP_found
=:;;
4460 $as_echo_n 0123456789 >"conftest.in"
4463 cat "conftest.in" "conftest.in" >"conftest.tmp"
4464 mv "conftest.tmp" "conftest.in"
4465 cp "conftest.in" "conftest.nl"
4466 $as_echo 'FGREP' >> "conftest.nl"
4467 "$ac_path_FGREP" FGREP
< "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4468 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4469 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
4470 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4471 # Best one so far, save it but keep looking for a better one
4472 ac_cv_path_FGREP
="$ac_path_FGREP"
4473 ac_path_FGREP_max
=$ac_count
4475 # 10*(2^10) chars as input seems more than enough
4476 test $ac_count -gt 10 && break
4478 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4481 $ac_path_FGREP_found && break 3
4486 if test -z "$ac_cv_path_FGREP"; then
4487 as_fn_error $?
"no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4490 ac_cv_path_FGREP
=$FGREP
4495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4496 $as_echo "$ac_cv_path_FGREP" >&6; }
4497 FGREP
="$ac_cv_path_FGREP"
4500 test -z "$GREP" && GREP
=grep
4520 # Check whether --with-gnu-ld was given.
4521 if test "${with_gnu_ld+set}" = set; then :
4522 withval
=$with_gnu_ld; test "$withval" = no || with_gnu_ld
=yes
4528 if test "$GCC" = yes; then
4529 # Check if gcc -print-prog-name=ld gives a path.
4530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4531 $as_echo_n "checking for ld used by $CC... " >&6; }
4534 # gcc leaves a trailing carriage return which upsets mingw
4535 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4537 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
4540 # Accept absolute paths.
4542 re_direlt
='/[^/][^/]*/\.\./'
4543 # Canonicalize the pathname of ld
4544 ac_prog
=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4545 while $ECHO "$ac_prog" |
$GREP "$re_direlt" > /dev
/null
2>&1; do
4546 ac_prog
=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4548 test -z "$LD" && LD
="$ac_prog"
4551 # If it fails, then pretend we aren't using GCC.
4555 # If it is relative, then search for the first ld in PATH.
4559 elif test "$with_gnu_ld" = yes; then
4560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4561 $as_echo_n "checking for GNU ld... " >&6; }
4563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4564 $as_echo_n "checking for non-GNU ld... " >&6; }
4566 if ${lt_cv_path_LD+:} false
; then :
4567 $as_echo_n "(cached) " >&6
4569 if test -z "$LD"; then
4570 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
4571 for ac_dir
in $PATH; do
4573 test -z "$ac_dir" && ac_dir
=.
4574 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
4575 lt_cv_path_LD
="$ac_dir/$ac_prog"
4576 # Check to see if the program is GNU ld. I'd rather use --version,
4577 # but apparently some variants of GNU ld only accept -v.
4578 # Break only if it was the GNU/non-GNU ld that we prefer.
4579 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4580 *GNU
* |
*'with BFD'*)
4581 test "$with_gnu_ld" != no
&& break
4584 test "$with_gnu_ld" != yes && break
4591 lt_cv_path_LD
="$LD" # Let the user override the test with a path.
4596 if test -n "$LD"; then
4597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4598 $as_echo "$LD" >&6; }
4600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4601 $as_echo "no" >&6; }
4603 test -z "$LD" && as_fn_error $?
"no acceptable ld found in \$PATH" "$LINENO" 5
4604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4605 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4606 if ${lt_cv_prog_gnu_ld+:} false
; then :
4607 $as_echo_n "(cached) " >&6
4609 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4610 case `$LD -v 2>&1 </dev/null` in
4611 *GNU
* |
*'with BFD'*)
4612 lt_cv_prog_gnu_ld
=yes
4615 lt_cv_prog_gnu_ld
=no
4619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4620 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4621 with_gnu_ld
=$lt_cv_prog_gnu_ld
4631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4632 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4633 if ${lt_cv_path_NM+:} false
; then :
4634 $as_echo_n "(cached) " >&6
4636 if test -n "$NM"; then
4637 # Let the user override the test.
4640 lt_nm_to_check
="${ac_tool_prefix}nm"
4641 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4642 lt_nm_to_check
="$lt_nm_to_check nm"
4644 for lt_tmp_nm
in $lt_nm_to_check; do
4645 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
4646 for ac_dir
in $PATH /usr
/ccs
/bin
/elf
/usr
/ccs
/bin
/usr
/ucb
/bin
; do
4648 test -z "$ac_dir" && ac_dir
=.
4649 tmp_nm
="$ac_dir/$lt_tmp_nm"
4650 if test -f "$tmp_nm" ||
test -f "$tmp_nm$ac_exeext" ; then
4651 # Check to see if the nm accepts a BSD-compat flag.
4652 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4653 # nm: unknown option "B" ignored
4654 # Tru64's nm complains that /dev/null is an invalid object file
4655 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4656 */dev
/null
* |
*'Invalid file or object type'*)
4657 lt_cv_path_NM
="$tmp_nm -B"
4661 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4663 lt_cv_path_NM
="$tmp_nm -p"
4667 lt_cv_path_NM
=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4668 continue # so that we can try to find one that supports BSD flags
4677 : ${lt_cv_path_NM=no}
4680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4681 $as_echo "$lt_cv_path_NM" >&6; }
4682 if test "$lt_cv_path_NM" != "no"; then
4685 # Didn't find any BSD compatible name lister, look for dumpbin.
4686 if test -n "$DUMPBIN"; then :
4687 # Let the user override the test.
4689 if test -n "$ac_tool_prefix"; then
4690 for ac_prog
in dumpbin
"link -dump"
4692 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4693 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
4694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4695 $as_echo_n "checking for $ac_word... " >&6; }
4696 if ${ac_cv_prog_DUMPBIN+:} false
; then :
4697 $as_echo_n "(cached) " >&6
4699 if test -n "$DUMPBIN"; then
4700 ac_cv_prog_DUMPBIN
="$DUMPBIN" # Let the user override the test.
4702 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4706 test -z "$as_dir" && as_dir
=.
4707 for ac_exec_ext
in '' $ac_executable_extensions; do
4708 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4709 ac_cv_prog_DUMPBIN
="$ac_tool_prefix$ac_prog"
4710 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4719 DUMPBIN
=$ac_cv_prog_DUMPBIN
4720 if test -n "$DUMPBIN"; then
4721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4722 $as_echo "$DUMPBIN" >&6; }
4724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4725 $as_echo "no" >&6; }
4729 test -n "$DUMPBIN" && break
4732 if test -z "$DUMPBIN"; then
4733 ac_ct_DUMPBIN
=$DUMPBIN
4734 for ac_prog
in dumpbin
"link -dump"
4736 # Extract the first word of "$ac_prog", so it can be a program name with args.
4737 set dummy
$ac_prog; ac_word
=$2
4738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4739 $as_echo_n "checking for $ac_word... " >&6; }
4740 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false
; then :
4741 $as_echo_n "(cached) " >&6
4743 if test -n "$ac_ct_DUMPBIN"; then
4744 ac_cv_prog_ac_ct_DUMPBIN
="$ac_ct_DUMPBIN" # Let the user override the test.
4746 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4750 test -z "$as_dir" && as_dir
=.
4751 for ac_exec_ext
in '' $ac_executable_extensions; do
4752 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4753 ac_cv_prog_ac_ct_DUMPBIN
="$ac_prog"
4754 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4763 ac_ct_DUMPBIN
=$ac_cv_prog_ac_ct_DUMPBIN
4764 if test -n "$ac_ct_DUMPBIN"; then
4765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4766 $as_echo "$ac_ct_DUMPBIN" >&6; }
4768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4769 $as_echo "no" >&6; }
4773 test -n "$ac_ct_DUMPBIN" && break
4776 if test "x$ac_ct_DUMPBIN" = x
; then
4779 case $cross_compiling:$ac_tool_warned in
4781 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4782 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4783 ac_tool_warned
=yes ;;
4785 DUMPBIN
=$ac_ct_DUMPBIN
4789 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
4791 DUMPBIN
="$DUMPBIN -symbols"
4799 if test "$DUMPBIN" != ":"; then
4803 test -z "$NM" && NM
=nm
4810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4811 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
4812 if ${lt_cv_nm_interface+:} false
; then :
4813 $as_echo_n "(cached) " >&6
4815 lt_cv_nm_interface
="BSD nm"
4816 echo "int some_variable = 0;" > conftest.
$ac_ext
4817 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
4818 (eval "$ac_compile" 2>conftest.err
)
4819 cat conftest.err
>&5
4820 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4821 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err
> conftest.out
)
4822 cat conftest.err
>&5
4823 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
4824 cat conftest.out
>&5
4825 if $GREP 'External.*some_variable' conftest.out
> /dev
/null
; then
4826 lt_cv_nm_interface
="MS dumpbin"
4830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4831 $as_echo "$lt_cv_nm_interface" >&6; }
4833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4834 $as_echo_n "checking whether ln -s works... " >&6; }
4836 if test "$LN_S" = "ln -s"; then
4837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4838 $as_echo "yes" >&6; }
4840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4841 $as_echo "no, using $LN_S" >&6; }
4844 # find the maximum length of command line arguments
4845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
4846 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
4847 if ${lt_cv_sys_max_cmd_len+:} false
; then :
4848 $as_echo_n "(cached) " >&6
4855 # On DJGPP, this test can blow up pretty badly due to problems in libc
4856 # (any single argument exceeding 2000 bytes causes a buffer overrun
4857 # during glob expansion). Even if it were fixed, the result of this
4858 # check would be larger than it should be.
4859 lt_cv_sys_max_cmd_len
=12288; # 12K is about right
4863 # Under GNU Hurd, this test is not required because there is
4864 # no limit to the length of command line arguments.
4865 # Libtool will interpret -1 as no limit whatsoever
4866 lt_cv_sys_max_cmd_len
=-1;
4869 cygwin
* | mingw
* | cegcc
*)
4870 # On Win9x/ME, this test blows up -- it succeeds, but takes
4871 # about 5 minutes as the teststring grows exponentially.
4872 # Worse, since 9x/ME are not pre-emptively multitasking,
4873 # you end up with a "frozen" computer, even though with patience
4874 # the test eventually succeeds (with a max line length of 256k).
4875 # Instead, let's just punt: use the minimum linelength reported by
4876 # all of the supported platforms: 8192 (on NT/2K/XP).
4877 lt_cv_sys_max_cmd_len
=8192;
4881 # On MiNT this can take a long time and run out of memory.
4882 lt_cv_sys_max_cmd_len
=8192;
4886 # On AmigaOS with pdksh, this test takes hours, literally.
4887 # So we just punt and use a minimum line length of 8192.
4888 lt_cv_sys_max_cmd_len
=8192;
4891 netbsd
* | freebsd
* | openbsd
* | darwin
* | dragonfly
*)
4892 # This has been around since 386BSD, at least. Likely further.
4893 if test -x /sbin
/sysctl
; then
4894 lt_cv_sys_max_cmd_len
=`/sbin/sysctl -n kern.argmax`
4895 elif test -x /usr
/sbin
/sysctl
; then
4896 lt_cv_sys_max_cmd_len
=`/usr/sbin/sysctl -n kern.argmax`
4898 lt_cv_sys_max_cmd_len
=65536 # usable default for all BSDs
4900 # And add a safety zone
4901 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 4`
4902 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \* 3`
4906 # We know the value 262144 and hardcode it with a safety zone (like BSD)
4907 lt_cv_sys_max_cmd_len
=196608
4911 # The test takes a long time on OS/2.
4912 lt_cv_sys_max_cmd_len
=8192
4916 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4917 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4918 # nice to cause kernel panics so lets avoid the loop below.
4919 # First set a reasonable default.
4920 lt_cv_sys_max_cmd_len
=16384
4922 if test -x /sbin
/sysconfig
; then
4923 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4924 *1*) lt_cv_sys_max_cmd_len
=-1 ;;
4929 lt_cv_sys_max_cmd_len
=102400
4931 sysv5
* | sco5v6
* | sysv4.2uw2
*)
4932 kargmax
=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4933 if test -n "$kargmax"; then
4934 lt_cv_sys_max_cmd_len
=`echo $kargmax | sed 's/.*[ ]//'`
4936 lt_cv_sys_max_cmd_len
=32768
4940 lt_cv_sys_max_cmd_len
=`(getconf ARG_MAX) 2> /dev/null`
4941 if test -n "$lt_cv_sys_max_cmd_len"; then
4942 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 4`
4943 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \* 3`
4945 # Make teststring a little bigger before we do anything with it.
4946 # a 1K string should be a reasonable start.
4947 for i
in 1 2 3 4 5 6 7 8 ; do
4948 teststring
=$teststring$teststring
4950 SHELL
=${SHELL-${CONFIG_SHELL-/bin/sh}}
4951 # If test is not a shell built-in, we'll probably end up computing a
4952 # maximum length that is only half of the actual maximum length, but
4954 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
4955 = "X$teststring$teststring"; } >/dev
/null
2>&1 &&
4956 test $i != 17 # 1/2 MB should be enough
4959 teststring
=$teststring$teststring
4961 # Only check the string length outside the loop.
4962 lt_cv_sys_max_cmd_len
=`expr "X$teststring" : ".*" 2>&1`
4964 # Add a significant safety factor because C++ compilers can tack on
4965 # massive amounts of additional arguments before passing them to the
4966 # linker. It appears as though 1/2 is a usable value.
4967 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 2`
4974 if test -n $lt_cv_sys_max_cmd_len ; then
4975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
4976 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
4979 $as_echo "none" >&6; }
4981 max_cmd_len
=$lt_cv_sys_max_cmd_len
4992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
4993 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
4994 # Try some XSI features
4997 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
4999 && eval 'test $(( 1 + 1 )) -eq 2 \
5000 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5002 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $xsi_shell" >&5
5003 $as_echo "$xsi_shell" >&6; }
5006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands
\"+=\"" >&5
5007 $as_echo_n "checking whether the shell understands
\"+=\"...
" >&6; }
5009 ( foo=bar; set foo baz; eval "$1+=\
$2" && test "$foo" = barbaz ) \
5011 && lt_shell_append=yes
5012 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_shell_append" >&5
5013 $as_echo "$lt_shell_append" >&6; }
5016 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5026 # test EBCDIC or ASCII
5027 case `echo X|tr X '\101'` in
5028 A) # ASCII based system
5029 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5030 lt_SP2NL='tr \040 \012'
5031 lt_NL2SP='tr \015\012 \040\040'
5033 *) # EBCDIC based system
5034 lt_SP2NL='tr \100 \n'
5035 lt_NL2SP='tr \r\n \100\100'
5047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert
$build file names to
$host format
" >&5
5048 $as_echo_n "checking how to convert
$build file names to
$host format...
" >&6; }
5049 if ${lt_cv_to_host_file_cmd+:} false; then :
5050 $as_echo_n "(cached
) " >&6
5055 *-*-mingw* ) # actually msys
5056 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5059 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5061 * ) # otherwise, assume *nix
5062 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5068 *-*-mingw* ) # actually msys
5069 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5072 lt_cv_to_host_file_cmd=func_convert_file_noop
5074 * ) # otherwise, assume *nix
5075 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5079 * ) # unhandled hosts (and "normal
" native builds)
5080 lt_cv_to_host_file_cmd=func_convert_file_noop
5086 to_host_file_cmd=$lt_cv_to_host_file_cmd
5087 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_to_host_file_cmd" >&5
5088 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
5094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert
$build file names to toolchain format
" >&5
5095 $as_echo_n "checking how to convert
$build file names to toolchain format...
" >&6; }
5096 if ${lt_cv_to_tool_file_cmd+:} false; then :
5097 $as_echo_n "(cached
) " >&6
5099 #assume ordinary cross tools, or native build.
5100 lt_cv_to_tool_file_cmd=func_convert_file_noop
5104 *-*-mingw* ) # actually msys
5105 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5113 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5114 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_to_tool_file_cmd" >&5
5115 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $LD option to reload object files
" >&5
5122 $as_echo_n "checking
for $LD option to reload object files...
" >&6; }
5123 if ${lt_cv_ld_reload_flag+:} false; then :
5124 $as_echo_n "(cached
) " >&6
5126 lt_cv_ld_reload_flag='-r'
5128 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_ld_reload_flag" >&5
5129 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5130 reload_flag=$lt_cv_ld_reload_flag
5131 case $reload_flag in
5133 *) reload_flag=" $reload_flag" ;;
5135 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5137 cygwin* | mingw* | pw32* | cegcc*)
5138 if test "$GCC" != yes; then
5143 if test "$GCC" = yes; then
5144 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5146 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5159 if test -n "$ac_tool_prefix"; then
5160 # Extract the first word of "${ac_tool_prefix}objdump
", so it can be a program name with args.
5161 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
5163 $as_echo_n "checking
for $ac_word...
" >&6; }
5164 if ${ac_cv_prog_OBJDUMP+:} false; then :
5165 $as_echo_n "(cached
) " >&6
5167 if test -n "$OBJDUMP"; then
5168 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5170 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5174 test -z "$as_dir" && as_dir=.
5175 for ac_exec_ext in '' $ac_executable_extensions; do
5176 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5177 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump
"
5178 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
5187 OBJDUMP=$ac_cv_prog_OBJDUMP
5188 if test -n "$OBJDUMP"; then
5189 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OBJDUMP" >&5
5190 $as_echo "$OBJDUMP" >&6; }
5192 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
5193 $as_echo "no
" >&6; }
5198 if test -z "$ac_cv_prog_OBJDUMP"; then
5199 ac_ct_OBJDUMP=$OBJDUMP
5200 # Extract the first word of "objdump
", so it can be a program name with args.
5201 set dummy objdump; ac_word=$2
5202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
5203 $as_echo_n "checking
for $ac_word...
" >&6; }
5204 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5205 $as_echo_n "(cached
) " >&6
5207 if test -n "$ac_ct_OBJDUMP"; then
5208 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5210 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5214 test -z "$as_dir" && as_dir=.
5215 for ac_exec_ext in '' $ac_executable_extensions; do
5216 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5217 ac_cv_prog_ac_ct_OBJDUMP="objdump
"
5218 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
5227 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5228 if test -n "$ac_ct_OBJDUMP"; then
5229 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_OBJDUMP" >&5
5230 $as_echo "$ac_ct_OBJDUMP" >&6; }
5232 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
5233 $as_echo "no
" >&6; }
5236 if test "x
$ac_ct_OBJDUMP" = x; then
5239 case $cross_compiling:$ac_tool_warned in
5241 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
5242 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
5243 ac_tool_warned=yes ;;
5245 OBJDUMP=$ac_ct_OBJDUMP
5248 OBJDUMP="$ac_cv_prog_OBJDUMP"
5251 test -z "$OBJDUMP" && OBJDUMP=objdump
5261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries
" >&5
5262 $as_echo_n "checking how to recognize dependent libraries...
" >&6; }
5263 if ${lt_cv_deplibs_check_method+:} false; then :
5264 $as_echo_n "(cached
) " >&6
5266 lt_cv_file_magic_cmd='$MAGIC_CMD'
5267 lt_cv_file_magic_test_file=
5268 lt_cv_deplibs_check_method='unknown'
5269 # Need to set the preceding variable on all platforms that support
5270 # interlibrary dependencies.
5271 # 'none' -- dependencies not supported.
5272 # `unknown' -- same as none, but documents that we really don't know.
5273 # 'pass_all' -- all dependencies passed with no checks.
5274 # 'test_compile' -- check by making test program.
5275 # 'file_magic [[regex]]' -- check by looking for files in library path
5276 # which responds to the $file_magic_cmd with a given extended regex.
5277 # If you have `file' or equivalent on your system and you're not sure
5278 # whether `pass_all' will *always* work, you probably want this one.
5282 lt_cv_deplibs_check_method=pass_all
5286 lt_cv_deplibs_check_method=pass_all
5290 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5291 lt_cv_file_magic_cmd='/usr/bin/file -L'
5292 lt_cv_file_magic_test_file=/shlib/libc.so
5296 # func_win32_libid is a shell function defined in ltmain.sh
5297 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5298 lt_cv_file_magic_cmd='func_win32_libid'
5302 # Base MSYS/MinGW do not provide the 'file' command needed by
5303 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5304 # unless we find 'file', for example because we are cross-compiling.
5305 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5306 if ( test "$lt_cv_nm_interface" = "BSD nm
" && file / ) >/dev/null 2>&1; then
5307 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5308 lt_cv_file_magic_cmd='func_win32_libid'
5310 # Keep this pattern in sync with the one in func_win32_libid.
5311 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5312 lt_cv_file_magic_cmd='$OBJDUMP -f'
5317 # use the weaker test based on 'objdump'. See mingw*.
5318 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5319 lt_cv_file_magic_cmd='$OBJDUMP -f'
5322 darwin* | rhapsody*)
5323 lt_cv_deplibs_check_method=pass_all
5326 freebsd* | dragonfly*)
5327 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5330 # Not sure whether the presence of OpenBSD here was a mistake.
5331 # Let's accept both of them until this is cleared up.
5332 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5333 lt_cv_file_magic_cmd=/usr/bin/file
5334 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5338 lt_cv_deplibs_check_method=pass_all
5343 lt_cv_deplibs_check_method=pass_all
5347 lt_cv_deplibs_check_method=pass_all
5350 hpux10.20* | hpux11*)
5351 lt_cv_file_magic_cmd=/usr/bin/file
5354 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5355 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5358 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]'
5359 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5362 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5363 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5369 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5370 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5373 irix5* | irix6* | nonstopux*)
5375 *-32|*"-32 ") libmagic=32-bit;;
5376 *-n32|*"-n32 ") libmagic=N32;;
5377 *-64|*"-64 ") libmagic=64-bit;;
5378 *) libmagic=never-match;;
5380 lt_cv_deplibs_check_method=pass_all
5383 # This must be glibc/ELF.
5384 linux* | k*bsd*-gnu | kopensolaris*-gnu)
5385 lt_cv_deplibs_check_method=pass_all
5388 netbsd* | netbsdelf*-gnu)
5389 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5390 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5392 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5397 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5398 lt_cv_file_magic_cmd=/usr/bin/file
5399 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5403 lt_cv_deplibs_check_method=pass_all
5407 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8
-powerpc"; then
5408 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5410 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5414 osf3* | osf4* | osf5*)
5415 lt_cv_deplibs_check_method=pass_all
5419 lt_cv_deplibs_check_method=pass_all
5423 lt_cv_deplibs_check_method=pass_all
5426 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5427 lt_cv_deplibs_check_method=pass_all
5431 case $host_vendor in
5433 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]'
5434 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5437 lt_cv_deplibs_check_method=pass_all
5440 lt_cv_file_magic_cmd='/bin/file'
5441 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5444 lt_cv_file_magic_cmd='/bin/file'
5445 lt_cv_deplibs_check_method="file_magic ELF
[0-9][0-9]*-bit [LM
]SB dynamic lib
"
5446 lt_cv_file_magic_test_file=/lib/libc.so
5449 lt_cv_deplibs_check_method=pass_all
5452 lt_cv_deplibs_check_method=pass_all
5458 lt_cv_deplibs_check_method=pass_all
5463 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_deplibs_check_method" >&5
5464 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5468 if test "$build" = "$host"; then
5471 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5474 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s
/\
(..\
)/s\
/[\
1]\
/[\
1]\
/g
;/g
"`
5480 file_magic_cmd=$lt_cv_file_magic_cmd
5481 deplibs_check_method=$lt_cv_deplibs_check_method
5482 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5505 if test -n "$ac_tool_prefix"; then
5506 # Extract the first word of "${ac_tool_prefix}dlltool
", so it can be a program name with args.
5507 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
5509 $as_echo_n "checking
for $ac_word...
" >&6; }
5510 if ${ac_cv_prog_DLLTOOL+:} false; then :
5511 $as_echo_n "(cached
) " >&6
5513 if test -n "$DLLTOOL"; then
5514 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5516 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5520 test -z "$as_dir" && as_dir=.
5521 for ac_exec_ext in '' $ac_executable_extensions; do
5522 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5523 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool
"
5524 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
5533 DLLTOOL=$ac_cv_prog_DLLTOOL
5534 if test -n "$DLLTOOL"; then
5535 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $DLLTOOL" >&5
5536 $as_echo "$DLLTOOL" >&6; }
5538 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
5539 $as_echo "no
" >&6; }
5544 if test -z "$ac_cv_prog_DLLTOOL"; then
5545 ac_ct_DLLTOOL=$DLLTOOL
5546 # Extract the first word of "dlltool
", so it can be a program name with args.
5547 set dummy dlltool; ac_word=$2
5548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
5549 $as_echo_n "checking
for $ac_word...
" >&6; }
5550 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5551 $as_echo_n "(cached
) " >&6
5553 if test -n "$ac_ct_DLLTOOL"; then
5554 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5556 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5560 test -z "$as_dir" && as_dir=.
5561 for ac_exec_ext in '' $ac_executable_extensions; do
5562 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5563 ac_cv_prog_ac_ct_DLLTOOL="dlltool
"
5564 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
5573 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5574 if test -n "$ac_ct_DLLTOOL"; then
5575 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_DLLTOOL" >&5
5576 $as_echo "$ac_ct_DLLTOOL" >&6; }
5578 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
5579 $as_echo "no
" >&6; }
5582 if test "x
$ac_ct_DLLTOOL" = x; then
5585 case $cross_compiling:$ac_tool_warned in
5587 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
5588 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
5589 ac_tool_warned=yes ;;
5591 DLLTOOL=$ac_ct_DLLTOOL
5594 DLLTOOL="$ac_cv_prog_DLLTOOL"
5597 test -z "$DLLTOOL" && DLLTOOL=dlltool
5608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries
" >&5
5609 $as_echo_n "checking how to associate runtime and link libraries...
" >&6; }
5610 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
5611 $as_echo_n "(cached
) " >&6
5613 lt_cv_sharedlib_from_linklib_cmd='unknown'
5616 cygwin* | mingw* | pw32* | cegcc*)
5617 # two different shell functions defined in ltmain.sh
5618 # decide which to use based on capabilities of $DLLTOOL
5619 case `$DLLTOOL --help 2>&1` in
5620 *--identify-strict*)
5621 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5624 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5629 # fallback: assume linklib IS sharedlib
5630 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
5635 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_sharedlib_from_linklib_cmd" >&5
5636 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
5637 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
5638 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
5647 if test -n "$ac_tool_prefix"; then
5650 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5651 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
5653 $as_echo_n "checking
for $ac_word...
" >&6; }
5654 if ${ac_cv_prog_AR+:} false; then :
5655 $as_echo_n "(cached
) " >&6
5657 if test -n "$AR"; then
5658 ac_cv_prog_AR="$AR" # Let the user override the test.
5660 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5664 test -z "$as_dir" && as_dir=.
5665 for ac_exec_ext in '' $ac_executable_extensions; do
5666 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5667 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5668 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
5678 if test -n "$AR"; then
5679 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $AR" >&5
5680 $as_echo "$AR" >&6; }
5682 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
5683 $as_echo "no
" >&6; }
5687 test -n "$AR" && break
5690 if test -z "$AR"; then
5694 # Extract the first word of "$ac_prog", so it can be a program name with args.
5695 set dummy $ac_prog; ac_word=$2
5696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
5697 $as_echo_n "checking
for $ac_word...
" >&6; }
5698 if ${ac_cv_prog_ac_ct_AR+:} false; then :
5699 $as_echo_n "(cached
) " >&6
5701 if test -n "$ac_ct_AR"; then
5702 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5704 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5708 test -z "$as_dir" && as_dir=.
5709 for ac_exec_ext in '' $ac_executable_extensions; do
5710 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5711 ac_cv_prog_ac_ct_AR="$ac_prog"
5712 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
5721 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5722 if test -n "$ac_ct_AR"; then
5723 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_AR" >&5
5724 $as_echo "$ac_ct_AR" >&6; }
5726 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
5727 $as_echo "no
" >&6; }
5731 test -n "$ac_ct_AR" && break
5734 if test "x
$ac_ct_AR" = x; then
5737 case $cross_compiling:$ac_tool_warned in
5739 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
5740 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
5741 ac_tool_warned=yes ;;
5760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for archiver @FILE support
" >&5
5761 $as_echo_n "checking
for archiver @FILE support...
" >&6; }
5762 if ${lt_cv_ar_at_file+:} false; then :
5763 $as_echo_n "(cached
) " >&6
5766 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5767 /* end confdefs.h. */
5777 if ac_fn_c_try_compile "$LINENO"; then :
5778 echo conftest.$ac_objext > conftest.lst
5779 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
5780 { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5781 (eval $lt_ar_try) 2>&5
5783 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
5784 test $ac_status = 0; }
5785 if test "$ac_status" -eq 0; then
5786 # Ensure the archiver fails upon bogus file names.
5787 rm -f conftest.$ac_objext libconftest.a
5788 { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5789 (eval $lt_ar_try) 2>&5
5791 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
5792 test $ac_status = 0; }
5793 if test "$ac_status" -ne 0; then
5797 rm -f conftest.* libconftest.a
5800 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5803 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_ar_at_file" >&5
5804 $as_echo "$lt_cv_ar_at_file" >&6; }
5806 if test "x
$lt_cv_ar_at_file" = xno; then
5809 archiver_list_spec=$lt_cv_ar_at_file
5818 if test -n "$ac_tool_prefix"; then
5819 # Extract the first word of "${ac_tool_prefix}strip
", so it can be a program name with args.
5820 set dummy ${ac_tool_prefix}strip; 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_STRIP+:} false; then :
5824 $as_echo_n "(cached
) " >&6
5826 if test -n "$STRIP"; then
5827 ac_cv_prog_STRIP="$STRIP" # 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 { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5836 ac_cv_prog_STRIP="${ac_tool_prefix}strip
"
5837 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
5846 STRIP=$ac_cv_prog_STRIP
5847 if test -n "$STRIP"; then
5848 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $STRIP" >&5
5849 $as_echo "$STRIP" >&6; }
5851 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
5852 $as_echo "no
" >&6; }
5857 if test -z "$ac_cv_prog_STRIP"; then
5859 # Extract the first word of "strip
", so it can be a program name with args.
5860 set dummy strip; ac_word=$2
5861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
5862 $as_echo_n "checking
for $ac_word...
" >&6; }
5863 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
5864 $as_echo_n "(cached
) " >&6
5866 if test -n "$ac_ct_STRIP"; then
5867 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5869 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5873 test -z "$as_dir" && as_dir=.
5874 for ac_exec_ext in '' $ac_executable_extensions; do
5875 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5876 ac_cv_prog_ac_ct_STRIP="strip
"
5877 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
5886 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5887 if test -n "$ac_ct_STRIP"; then
5888 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_STRIP" >&5
5889 $as_echo "$ac_ct_STRIP" >&6; }
5891 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
5892 $as_echo "no
" >&6; }
5895 if test "x
$ac_ct_STRIP" = x; then
5898 case $cross_compiling:$ac_tool_warned in
5900 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
5901 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
5902 ac_tool_warned=yes ;;
5907 STRIP="$ac_cv_prog_STRIP"
5910 test -z "$STRIP" && STRIP=:
5917 if test -n "$ac_tool_prefix"; then
5918 # Extract the first word of "${ac_tool_prefix}ranlib
", so it can be a program name with args.
5919 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
5921 $as_echo_n "checking
for $ac_word...
" >&6; }
5922 if ${ac_cv_prog_RANLIB+:} false; then :
5923 $as_echo_n "(cached
) " >&6
5925 if test -n "$RANLIB"; then
5926 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5928 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5932 test -z "$as_dir" && as_dir=.
5933 for ac_exec_ext in '' $ac_executable_extensions; do
5934 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5935 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib
"
5936 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
5945 RANLIB=$ac_cv_prog_RANLIB
5946 if test -n "$RANLIB"; then
5947 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $RANLIB" >&5
5948 $as_echo "$RANLIB" >&6; }
5950 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
5951 $as_echo "no
" >&6; }
5956 if test -z "$ac_cv_prog_RANLIB"; then
5957 ac_ct_RANLIB=$RANLIB
5958 # Extract the first word of "ranlib
", so it can be a program name with args.
5959 set dummy ranlib; ac_word=$2
5960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
5961 $as_echo_n "checking
for $ac_word...
" >&6; }
5962 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5963 $as_echo_n "(cached
) " >&6
5965 if test -n "$ac_ct_RANLIB"; then
5966 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5968 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5972 test -z "$as_dir" && as_dir=.
5973 for ac_exec_ext in '' $ac_executable_extensions; do
5974 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5975 ac_cv_prog_ac_ct_RANLIB="ranlib
"
5976 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
5985 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5986 if test -n "$ac_ct_RANLIB"; then
5987 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_RANLIB" >&5
5988 $as_echo "$ac_ct_RANLIB" >&6; }
5990 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
5991 $as_echo "no
" >&6; }
5994 if test "x
$ac_ct_RANLIB" = x; then
5997 case $cross_compiling:$ac_tool_warned in
5999 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
6000 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
6001 ac_tool_warned=yes ;;
6003 RANLIB=$ac_ct_RANLIB
6006 RANLIB="$ac_cv_prog_RANLIB"
6009 test -z "$RANLIB" && RANLIB=:
6016 # Determine commands to create old-style static archives.
6017 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6018 old_postinstall_cmds='chmod 644 $oldlib'
6019 old_postuninstall_cmds=
6021 if test -n "$RANLIB"; then
6024 old_postinstall_cmds="$old_postinstall_cmds~\
$RANLIB -t \
$tool_oldlib"
6027 old_postinstall_cmds="$old_postinstall_cmds~\
$RANLIB \
$tool_oldlib"
6030 old_archive_cmds="$old_archive_cmds~\
$RANLIB \
$tool_oldlib"
6035 lock_old_archive_extraction=yes ;;
6037 lock_old_archive_extraction=no ;;
6078 # If no C compiler was specified, use CC.
6081 # If no C compiler flags were specified, use CFLAGS.
6082 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6084 # Allow CC to be a program name with arguments.
6088 # Check for command to grab the raw symbol name followed by C symbol from nm.
6089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
command to parse
$NM output from
$compiler object
" >&5
6090 $as_echo_n "checking
command to parse
$NM output from
$compiler object...
" >&6; }
6091 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6092 $as_echo_n "(cached
) " >&6
6095 # These are sane defaults that work on at least a few old systems.
6096 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6098 # Character class describing NM global symbol codes.
6099 symcode='[BCDEGRST]'
6101 # Regexp to match symbols that can be accessed directly from C.
6102 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6104 # Define system-specific variables.
6109 cygwin* | mingw* | pw32* | cegcc*)
6110 symcode='[ABCDGISTW]'
6113 if test "$host_cpu" = ia64; then
6114 symcode='[ABCDEGRST]'
6118 symcode='[BCDEGRST]'
6121 symcode='[BCDEGQRST]'
6132 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6140 # If we're using GNU nm, then use its standard symbol codes.
6141 case `$NM -V 2>&1` in
6142 *GNU* | *'with BFD'*)
6143 symcode='[ABCDGIRSTW]' ;;
6146 # Transform an extracted symbol line into a proper C declaration.
6147 # Some systems (esp. on ia64) link data and code symbols differently,
6148 # so use this general approach.
6149 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6151 # Transform an extracted symbol line into symbol name and symbol address
6152 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6153 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
6155 # Handle CRLF in mingw tool chain
6159 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6163 # Try without a prefix underscore, then with it.
6164 for ac_symprfx in "" "_
"; do
6166 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6167 symxfrm="\\1 $ac_symprfx\\2 \\2"
6169 # Write the raw and C identifiers.
6170 if test "$lt_cv_nm_interface" = "MS dumpbin
"; then
6171 # Fake it for dumpbin and say T for any non-static function
6172 # and D for any global variable.
6173 # Also find C++ and __fastcall symbols from MSVC++,
6174 # which start with @ or ?.
6175 lt_cv_sys_global_symbol_pipe="$AWK '"\
6176 " {last_section=section; section=\$ 3};"\
6177 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6178 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6179 " \$ 0!~/External *\|/{next};"\
6180 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6181 " {if(hide[section]) next};"\
6182 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6183 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6184 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
6185 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6186 " ' prfx
=^
$ac_symprfx"
6188 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6190 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe |
sed '/ __gnu_lto/d'"
6192 # Check to see that the pipe works correctly.
6196 cat > conftest.$ac_ext <<_LT_EOF
6201 void nm_test_func(void);
6202 void nm_test_func(void){}
6206 int main(){nm_test_var='a';nm_test_func();return(0);}
6209 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6210 (eval $ac_compile) 2>&5
6212 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
6213 test $ac_status = 0; }; then
6214 # Now try to grab the symbols.
6216 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$NM conftest.
$ac_objext \|
"$lt_cv_sys_global_symbol_pipe" \
> $nlist\""; } >&5
6217 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6219 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
6220 test $ac_status = 0; } && test -s "$nlist"; then
6221 # Try sorting and uniquifying the output.
6222 if sort "$nlist" | uniq > "$nlist"T; then
6223 mv -f "$nlist"T "$nlist"
6228 # Make sure that we snagged all the symbols we need.
6229 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6230 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6231 cat <<_LT_EOF > conftest.$ac_ext
6232 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
6233 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
6234 /* DATA imports from DLLs on WIN32 con't be const, because runtime
6235 relocations are performed -- see ld's documentation on pseudo-relocs. */
6236 # define LT_DLSYM_CONST
6237 #elif defined(__osf__)
6238 /* This system does not cope well with relocations in const data. */
6239 # define LT_DLSYM_CONST
6241 # define LT_DLSYM_CONST const
6249 # Now generate the symbol file.
6250 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6252 cat <<_LT_EOF >> conftest.$ac_ext
6254 /* The mapping between symbol names and symbols. */
6255 LT_DLSYM_CONST struct {
6259 lt__PROGRAM__LTX_preloaded_symbols[] =
6261 { "@PROGRAM@
", (void *) 0 },
6263 $SED "s
/^
$symcode$symcode* \
(.
*\
) \
(.
*\
)$
/ {\"\
2\", (void
*) \
&\
2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6264 cat <<\_LT_EOF >> conftest.$ac_ext
6268 /* This works around a problem in FreeBSD linker */
6269 #ifdef FREEBSD_WORKAROUND
6270 static const void *lt_preloaded_setup() {
6271 return lt__PROGRAM__LTX_preloaded_symbols;
6279 # Now try linking the two files.
6280 mv conftest.$ac_objext conftstm.$ac_objext
6281 lt_globsym_save_LIBS=$LIBS
6282 lt_globsym_save_CFLAGS=$CFLAGS
6283 LIBS="conftstm.
$ac_objext"
6284 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6285 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6286 (eval $ac_link) 2>&5
6288 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
6289 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6292 LIBS=$lt_globsym_save_LIBS
6293 CFLAGS=$lt_globsym_save_CFLAGS
6295 echo "cannot
find nm_test_func
in $nlist" >&5
6298 echo "cannot
find nm_test_var
in $nlist" >&5
6301 echo "cannot run
$lt_cv_sys_global_symbol_pipe" >&5
6304 echo "$progname: failed program was
:" >&5
6305 cat conftest.$ac_ext >&5
6307 rm -rf conftest* conftst*
6309 # Do not use the global_symbol_pipe unless it works.
6310 if test "$pipe_works" = yes; then
6313 lt_cv_sys_global_symbol_pipe=
6319 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6320 lt_cv_sys_global_symbol_to_cdecl=
6322 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6323 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: failed
" >&5
6324 $as_echo "failed
" >&6; }
6326 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: ok
" >&5
6327 $as_echo "ok
" >&6; }
6330 # Response file support.
6331 if test "$lt_cv_nm_interface" = "MS dumpbin
"; then
6332 nm_file_list_spec='@'
6333 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6334 nm_file_list_spec='@'
6363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for sysroot
" >&5
6364 $as_echo_n "checking
for sysroot...
" >&6; }
6366 # Check whether --with-sysroot was given.
6367 if test "${with_sysroot+set}" = set; then :
6368 withval=$with_sysroot;
6375 case ${with_sysroot} in #(
6377 if test "$GCC" = yes; then
6378 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6382 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6387 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: ${with_sysroot}" >&5
6388 $as_echo "${with_sysroot}" >&6; }
6389 as_fn_error $? "The sysroot must be an absolute path.
" "$LINENO" 5
6393 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: ${lt_sysroot:-no}" >&5
6394 $as_echo "${lt_sysroot:-no}" >&6; }
6400 # Check whether --enable-libtool-lock was given.
6401 if test "${enable_libtool_lock+set}" = set; then :
6402 enableval=$enable_libtool_lock;
6405 test "x
$enable_libtool_lock" != xno && enable_libtool_lock=yes
6407 # Some flags need to be propagated to the compiler or linker for good
6411 # Find out which ABI we are using.
6412 echo 'int i;' > conftest.$ac_ext
6413 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6414 (eval $ac_compile) 2>&5
6416 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
6417 test $ac_status = 0; }; then
6418 case `/usr/bin/file conftest.$ac_objext` in
6430 # Find out which ABI we are using.
6431 echo '#line '$LINENO' "configure
"' > conftest.$ac_ext
6432 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6433 (eval $ac_compile) 2>&5
6435 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
6436 test $ac_status = 0; }; then
6437 if test "$lt_cv_prog_gnu_ld" = yes; then
6438 case `/usr/bin/file conftest.$ac_objext` in
6440 LD="${LD-ld} -melf32bsmip"
6443 LD="${LD-ld} -melf32bmipn32"
6446 LD="${LD-ld} -melf64bmip"
6450 case `/usr/bin/file conftest.$ac_objext` in
6466 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6467 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6468 # Find out which ABI we are using.
6469 echo 'int i;' > conftest.$ac_ext
6470 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6471 (eval $ac_compile) 2>&5
6473 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
6474 test $ac_status = 0; }; then
6475 case `/usr/bin/file conftest.o` in
6478 x86_64-*kfreebsd*-gnu)
6479 LD="${LD-ld} -m elf_i386_fbsd
"
6482 LD="${LD-ld} -m elf_i386
"
6484 ppc64-*linux*|powerpc64-*linux*)
6485 LD="${LD-ld} -m elf32ppclinux
"
6488 LD="${LD-ld} -m elf_s390
"
6491 LD="${LD-ld} -m elf32_sparc
"
6497 x86_64-*kfreebsd*-gnu)
6498 LD="${LD-ld} -m elf_x86_64_fbsd
"
6501 LD="${LD-ld} -m elf_x86_64
"
6503 ppc*-*linux*|powerpc*-*linux*)
6504 LD="${LD-ld} -m elf64ppc
"
6506 s390*-*linux*|s390*-*tpf*)
6507 LD="${LD-ld} -m elf64_s390
"
6510 LD="${LD-ld} -m elf64_sparc
"
6520 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6521 SAVE_CFLAGS="$CFLAGS"
6522 CFLAGS="$CFLAGS -belf"
6523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs
-belf" >&5
6524 $as_echo_n "checking whether the C compiler needs
-belf...
" >&6; }
6525 if ${lt_cv_cc_needs_belf+:} false; then :
6526 $as_echo_n "(cached
) " >&6
6529 ac_cpp='$CPP $CPPFLAGS'
6530 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6531 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6532 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6534 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6535 /* end confdefs.h. */
6545 if ac_fn_c_try_link "$LINENO"; then :
6546 lt_cv_cc_needs_belf=yes
6548 lt_cv_cc_needs_belf=no
6550 rm -f core conftest.err conftest.$ac_objext \
6551 conftest$ac_exeext conftest.$ac_ext
6553 ac_cpp='$CPP $CPPFLAGS'
6554 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6555 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6556 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6559 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_cc_needs_belf" >&5
6560 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6561 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6562 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6563 CFLAGS="$SAVE_CFLAGS"
6567 # Find out which ABI we are using.
6568 echo 'int i;' > conftest.$ac_ext
6569 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6570 (eval $ac_compile) 2>&5
6572 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
6573 test $ac_status = 0; }; then
6574 case `/usr/bin/file conftest.o` in
6576 case $lt_cv_prog_gnu_ld in
6580 LD="${LD-ld} -m elf_x86_64
"
6583 LD="${LD-ld} -m elf64_sparc
"
6586 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
6587 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
6592 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6604 need_locks="$enable_libtool_lock"
6606 if test -n "$ac_tool_prefix"; then
6607 # Extract the first word of "${ac_tool_prefix}mt
", so it can be a program name with args.
6608 set dummy ${ac_tool_prefix}mt; ac_word=$2
6609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
6610 $as_echo_n "checking
for $ac_word...
" >&6; }
6611 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
6612 $as_echo_n "(cached
) " >&6
6614 if test -n "$MANIFEST_TOOL"; then
6615 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
6617 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6621 test -z "$as_dir" && as_dir=.
6622 for ac_exec_ext in '' $ac_executable_extensions; do
6623 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6624 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt
"
6625 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
6634 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
6635 if test -n "$MANIFEST_TOOL"; then
6636 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $MANIFEST_TOOL" >&5
6637 $as_echo "$MANIFEST_TOOL" >&6; }
6639 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
6640 $as_echo "no
" >&6; }
6645 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
6646 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
6647 # Extract the first word of "mt
", so it can be a program name with args.
6648 set dummy mt; ac_word=$2
6649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
6650 $as_echo_n "checking
for $ac_word...
" >&6; }
6651 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
6652 $as_echo_n "(cached
) " >&6
6654 if test -n "$ac_ct_MANIFEST_TOOL"; then
6655 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
6657 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6661 test -z "$as_dir" && as_dir=.
6662 for ac_exec_ext in '' $ac_executable_extensions; do
6663 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6664 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt
"
6665 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
6674 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
6675 if test -n "$ac_ct_MANIFEST_TOOL"; then
6676 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_MANIFEST_TOOL" >&5
6677 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
6679 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
6680 $as_echo "no
" >&6; }
6683 if test "x
$ac_ct_MANIFEST_TOOL" = x; then
6686 case $cross_compiling:$ac_tool_warned in
6688 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
6689 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
6690 ac_tool_warned=yes ;;
6692 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
6695 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
6698 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
6699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $MANIFEST_TOOL is a manifest tool
" >&5
6700 $as_echo_n "checking
if $MANIFEST_TOOL is a manifest tool...
" >&6; }
6701 if ${lt_cv_path_mainfest_tool+:} false; then :
6702 $as_echo_n "(cached
) " >&6
6704 lt_cv_path_mainfest_tool=no
6705 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
6706 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
6707 cat conftest.err >&5
6708 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
6709 lt_cv_path_mainfest_tool=yes
6713 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_path_mainfest_tool" >&5
6714 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
6715 if test "x
$lt_cv_path_mainfest_tool" != xyes; then
6725 rhapsody* | darwin*)
6726 if test -n "$ac_tool_prefix"; then
6727 # Extract the first word of "${ac_tool_prefix}dsymutil
", so it can be a program name with args.
6728 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
6730 $as_echo_n "checking
for $ac_word...
" >&6; }
6731 if ${ac_cv_prog_DSYMUTIL+:} false; then :
6732 $as_echo_n "(cached
) " >&6
6734 if test -n "$DSYMUTIL"; then
6735 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6737 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6741 test -z "$as_dir" && as_dir=.
6742 for ac_exec_ext in '' $ac_executable_extensions; do
6743 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6744 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil
"
6745 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
6754 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6755 if test -n "$DSYMUTIL"; then
6756 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $DSYMUTIL" >&5
6757 $as_echo "$DSYMUTIL" >&6; }
6759 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
6760 $as_echo "no
" >&6; }
6765 if test -z "$ac_cv_prog_DSYMUTIL"; then
6766 ac_ct_DSYMUTIL=$DSYMUTIL
6767 # Extract the first word of "dsymutil
", so it can be a program name with args.
6768 set dummy dsymutil; ac_word=$2
6769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
6770 $as_echo_n "checking
for $ac_word...
" >&6; }
6771 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
6772 $as_echo_n "(cached
) " >&6
6774 if test -n "$ac_ct_DSYMUTIL"; then
6775 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6777 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6781 test -z "$as_dir" && as_dir=.
6782 for ac_exec_ext in '' $ac_executable_extensions; do
6783 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6784 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil
"
6785 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
6794 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6795 if test -n "$ac_ct_DSYMUTIL"; then
6796 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_DSYMUTIL" >&5
6797 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6799 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
6800 $as_echo "no
" >&6; }
6803 if test "x
$ac_ct_DSYMUTIL" = x; then
6806 case $cross_compiling:$ac_tool_warned in
6808 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
6809 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
6810 ac_tool_warned=yes ;;
6812 DSYMUTIL=$ac_ct_DSYMUTIL
6815 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6818 if test -n "$ac_tool_prefix"; then
6819 # Extract the first word of "${ac_tool_prefix}nmedit
", so it can be a program name with args.
6820 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
6822 $as_echo_n "checking
for $ac_word...
" >&6; }
6823 if ${ac_cv_prog_NMEDIT+:} false; then :
6824 $as_echo_n "(cached
) " >&6
6826 if test -n "$NMEDIT"; then
6827 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6829 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6833 test -z "$as_dir" && as_dir=.
6834 for ac_exec_ext in '' $ac_executable_extensions; do
6835 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6836 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit
"
6837 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
6846 NMEDIT=$ac_cv_prog_NMEDIT
6847 if test -n "$NMEDIT"; then
6848 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $NMEDIT" >&5
6849 $as_echo "$NMEDIT" >&6; }
6851 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
6852 $as_echo "no
" >&6; }
6857 if test -z "$ac_cv_prog_NMEDIT"; then
6858 ac_ct_NMEDIT=$NMEDIT
6859 # Extract the first word of "nmedit
", so it can be a program name with args.
6860 set dummy nmedit; ac_word=$2
6861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
6862 $as_echo_n "checking
for $ac_word...
" >&6; }
6863 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
6864 $as_echo_n "(cached
) " >&6
6866 if test -n "$ac_ct_NMEDIT"; then
6867 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6869 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6873 test -z "$as_dir" && as_dir=.
6874 for ac_exec_ext in '' $ac_executable_extensions; do
6875 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6876 ac_cv_prog_ac_ct_NMEDIT="nmedit
"
6877 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
6886 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6887 if test -n "$ac_ct_NMEDIT"; then
6888 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_NMEDIT" >&5
6889 $as_echo "$ac_ct_NMEDIT" >&6; }
6891 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
6892 $as_echo "no
" >&6; }
6895 if test "x
$ac_ct_NMEDIT" = x; then
6898 case $cross_compiling:$ac_tool_warned in
6900 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
6901 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
6902 ac_tool_warned=yes ;;
6904 NMEDIT=$ac_ct_NMEDIT
6907 NMEDIT="$ac_cv_prog_NMEDIT"
6910 if test -n "$ac_tool_prefix"; then
6911 # Extract the first word of "${ac_tool_prefix}lipo
", so it can be a program name with args.
6912 set dummy ${ac_tool_prefix}lipo; ac_word=$2
6913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
6914 $as_echo_n "checking
for $ac_word...
" >&6; }
6915 if ${ac_cv_prog_LIPO+:} false; then :
6916 $as_echo_n "(cached
) " >&6
6918 if test -n "$LIPO"; then
6919 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6921 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6925 test -z "$as_dir" && as_dir=.
6926 for ac_exec_ext in '' $ac_executable_extensions; do
6927 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6928 ac_cv_prog_LIPO="${ac_tool_prefix}lipo
"
6929 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
6938 LIPO=$ac_cv_prog_LIPO
6939 if test -n "$LIPO"; then
6940 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $LIPO" >&5
6941 $as_echo "$LIPO" >&6; }
6943 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
6944 $as_echo "no
" >&6; }
6949 if test -z "$ac_cv_prog_LIPO"; then
6951 # Extract the first word of "lipo
", so it can be a program name with args.
6952 set dummy lipo; ac_word=$2
6953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
6954 $as_echo_n "checking
for $ac_word...
" >&6; }
6955 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
6956 $as_echo_n "(cached
) " >&6
6958 if test -n "$ac_ct_LIPO"; then
6959 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6961 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6965 test -z "$as_dir" && as_dir=.
6966 for ac_exec_ext in '' $ac_executable_extensions; do
6967 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6968 ac_cv_prog_ac_ct_LIPO="lipo
"
6969 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
6978 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6979 if test -n "$ac_ct_LIPO"; then
6980 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_LIPO" >&5
6981 $as_echo "$ac_ct_LIPO" >&6; }
6983 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
6984 $as_echo "no
" >&6; }
6987 if test "x
$ac_ct_LIPO" = x; then
6990 case $cross_compiling:$ac_tool_warned in
6992 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
6993 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
6994 ac_tool_warned=yes ;;
6999 LIPO="$ac_cv_prog_LIPO"
7002 if test -n "$ac_tool_prefix"; then
7003 # Extract the first word of "${ac_tool_prefix}otool
", so it can be a program name with args.
7004 set dummy ${ac_tool_prefix}otool; ac_word=$2
7005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
7006 $as_echo_n "checking
for $ac_word...
" >&6; }
7007 if ${ac_cv_prog_OTOOL+:} false; then :
7008 $as_echo_n "(cached
) " >&6
7010 if test -n "$OTOOL"; then
7011 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7013 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7017 test -z "$as_dir" && as_dir=.
7018 for ac_exec_ext in '' $ac_executable_extensions; do
7019 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7020 ac_cv_prog_OTOOL="${ac_tool_prefix}otool
"
7021 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
7030 OTOOL=$ac_cv_prog_OTOOL
7031 if test -n "$OTOOL"; then
7032 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OTOOL" >&5
7033 $as_echo "$OTOOL" >&6; }
7035 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
7036 $as_echo "no
" >&6; }
7041 if test -z "$ac_cv_prog_OTOOL"; then
7043 # Extract the first word of "otool
", so it can be a program name with args.
7044 set dummy otool; ac_word=$2
7045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
7046 $as_echo_n "checking
for $ac_word...
" >&6; }
7047 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7048 $as_echo_n "(cached
) " >&6
7050 if test -n "$ac_ct_OTOOL"; then
7051 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7053 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7057 test -z "$as_dir" && as_dir=.
7058 for ac_exec_ext in '' $ac_executable_extensions; do
7059 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7060 ac_cv_prog_ac_ct_OTOOL="otool
"
7061 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
7070 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7071 if test -n "$ac_ct_OTOOL"; then
7072 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_OTOOL" >&5
7073 $as_echo "$ac_ct_OTOOL" >&6; }
7075 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
7076 $as_echo "no
" >&6; }
7079 if test "x
$ac_ct_OTOOL" = x; then
7082 case $cross_compiling:$ac_tool_warned in
7084 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
7085 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
7086 ac_tool_warned=yes ;;
7091 OTOOL="$ac_cv_prog_OTOOL"
7094 if test -n "$ac_tool_prefix"; then
7095 # Extract the first word of "${ac_tool_prefix}otool64
", so it can be a program name with args.
7096 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
7098 $as_echo_n "checking
for $ac_word...
" >&6; }
7099 if ${ac_cv_prog_OTOOL64+:} false; then :
7100 $as_echo_n "(cached
) " >&6
7102 if test -n "$OTOOL64"; then
7103 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7105 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7109 test -z "$as_dir" && as_dir=.
7110 for ac_exec_ext in '' $ac_executable_extensions; do
7111 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7112 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64
"
7113 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
7122 OTOOL64=$ac_cv_prog_OTOOL64
7123 if test -n "$OTOOL64"; then
7124 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OTOOL64" >&5
7125 $as_echo "$OTOOL64" >&6; }
7127 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
7128 $as_echo "no
" >&6; }
7133 if test -z "$ac_cv_prog_OTOOL64"; then
7134 ac_ct_OTOOL64=$OTOOL64
7135 # Extract the first word of "otool64
", so it can be a program name with args.
7136 set dummy otool64; ac_word=$2
7137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
7138 $as_echo_n "checking
for $ac_word...
" >&6; }
7139 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7140 $as_echo_n "(cached
) " >&6
7142 if test -n "$ac_ct_OTOOL64"; then
7143 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7145 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7149 test -z "$as_dir" && as_dir=.
7150 for ac_exec_ext in '' $ac_executable_extensions; do
7151 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7152 ac_cv_prog_ac_ct_OTOOL64="otool64
"
7153 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
7162 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7163 if test -n "$ac_ct_OTOOL64"; then
7164 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_OTOOL64" >&5
7165 $as_echo "$ac_ct_OTOOL64" >&6; }
7167 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
7168 $as_echo "no
" >&6; }
7171 if test "x
$ac_ct_OTOOL64" = x; then
7174 case $cross_compiling:$ac_tool_warned in
7176 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
7177 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
7178 ac_tool_warned=yes ;;
7180 OTOOL64=$ac_ct_OTOOL64
7183 OTOOL64="$ac_cv_prog_OTOOL64"
7212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for -single_module linker flag
" >&5
7213 $as_echo_n "checking
for -single_module linker flag...
" >&6; }
7214 if ${lt_cv_apple_cc_single_mod+:} false; then :
7215 $as_echo_n "(cached
) " >&6
7217 lt_cv_apple_cc_single_mod=no
7218 if test -z "${LT_MULTI_MODULE}"; then
7219 # By default we will add the -single_module flag. You can override
7220 # by either setting the environment variable LT_MULTI_MODULE
7221 # non-empty at configure time, or by adding -multi_module to the
7223 rm -rf libconftest.dylib*
7224 echo "int foo
(void
){return 1;}" > conftest.c
7225 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7226 -dynamiclib -Wl,-single_module conftest.c
" >&5
7227 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7228 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7230 # If there is a non-empty error log, and "single_module
"
7231 # appears in it, assume the flag caused a linker warning
7232 if test -s conftest.err && $GREP single_module conftest.err; then
7233 cat conftest.err >&5
7234 # Otherwise, if the output was created with a 0 exit code from
7235 # the compiler, it worked.
7236 elif test -f libconftest.dylib && test $_lt_result -eq 0; then
7237 lt_cv_apple_cc_single_mod=yes
7239 cat conftest.err >&5
7241 rm -rf libconftest.dylib*
7245 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_apple_cc_single_mod" >&5
7246 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for -exported_symbols_list linker flag
" >&5
7249 $as_echo_n "checking
for -exported_symbols_list linker flag...
" >&6; }
7250 if ${lt_cv_ld_exported_symbols_list+:} false; then :
7251 $as_echo_n "(cached
) " >&6
7253 lt_cv_ld_exported_symbols_list=no
7254 save_LDFLAGS=$LDFLAGS
7255 echo "_main
" > conftest.sym
7256 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym
"
7257 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7258 /* end confdefs.h. */
7268 if ac_fn_c_try_link "$LINENO"; then :
7269 lt_cv_ld_exported_symbols_list=yes
7271 lt_cv_ld_exported_symbols_list=no
7273 rm -f core conftest.err conftest.$ac_objext \
7274 conftest$ac_exeext conftest.$ac_ext
7275 LDFLAGS="$save_LDFLAGS"
7278 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_ld_exported_symbols_list" >&5
7279 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for -force_load linker flag
" >&5
7282 $as_echo_n "checking
for -force_load linker flag...
" >&6; }
7283 if ${lt_cv_ld_force_load+:} false; then :
7284 $as_echo_n "(cached
) " >&6
7286 lt_cv_ld_force_load=no
7287 cat > conftest.c << _LT_EOF
7288 int forced_loaded() { return 2;}
7290 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c
" >&5
7291 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7292 echo "$AR cru libconftest.a conftest.o
" >&5
7293 $AR cru libconftest.a conftest.o 2>&5
7294 echo "$RANLIB libconftest.a
" >&5
7295 $RANLIB libconftest.a 2>&5
7296 cat > conftest.c << _LT_EOF
7297 int main() { return 0;}
7299 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c
-Wl,-force_load,.
/libconftest.a
" >&5
7300 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7302 if test -s conftest.err && $GREP force_load conftest.err; then
7303 cat conftest.err >&5
7304 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
7305 lt_cv_ld_force_load=yes
7307 cat conftest.err >&5
7309 rm -f conftest.err libconftest.a conftest conftest.c
7310 rm -rf conftest.dSYM
7313 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_ld_force_load" >&5
7314 $as_echo "$lt_cv_ld_force_load" >&6; }
7316 rhapsody* | darwin1.[012])
7317 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7319 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7320 darwin*) # darwin 5.x on
7321 # if running on 10.5 or later, the deployment target defaults
7322 # to the OS version, if on x86, and 10.4, the deployment
7323 # target defaults to 10.4. Don't you love it?
7324 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7325 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7326 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7328 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7330 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7334 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7335 _lt_dar_single_mod='$single_module'
7337 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7338 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7340 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7342 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no
"; then
7343 _lt_dsymutil='~$DSYMUTIL $lib || :'
7351 ac_cpp='$CPP $CPPFLAGS'
7352 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7353 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7354 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor
" >&5
7356 $as_echo_n "checking how to run the C preprocessor...
" >&6; }
7357 # On Suns, sometimes $CPP names a directory.
7358 if test -n "$CPP" && test -d "$CPP"; then
7361 if test -z "$CPP"; then
7362 if ${ac_cv_prog_CPP+:} false; then :
7363 $as_echo_n "(cached
) " >&6
7365 # Double quotes because CPP needs to be expanded
7366 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib
/cpp
"
7369 for ac_c_preproc_warn_flag in '' yes
7371 # Use a header file that comes with gcc, so configuring glibc
7372 # with a fresh cross-compiler works.
7373 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7374 # <limits.h> exists even on freestanding compilers.
7375 # On the NeXT, cc -E runs the code through the compiler's parser,
7376 # not just through cpp. "Syntax error
" is here to catch this case.
7377 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7378 /* end confdefs.h. */
7380 # include <limits.h>
7382 # include <assert.h>
7386 if ac_fn_c_try_cpp "$LINENO"; then :
7389 # Broken: fails on valid input.
7392 rm -f conftest.err conftest.i conftest.$ac_ext
7394 # OK, works on sane cases. Now check whether nonexistent headers
7395 # can be detected and how.
7396 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7397 /* end confdefs.h. */
7398 #include <ac_nonexistent.h>
7400 if ac_fn_c_try_cpp "$LINENO"; then :
7401 # Broken: success on invalid input.
7404 # Passes both tests.
7408 rm -f conftest.err conftest.i conftest.$ac_ext
7411 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7412 rm -f conftest.i conftest.err conftest.$ac_ext
7413 if $ac_preproc_ok; then :
7425 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $CPP" >&5
7426 $as_echo "$CPP" >&6; }
7428 for ac_c_preproc_warn_flag in '' yes
7430 # Use a header file that comes with gcc, so configuring glibc
7431 # with a fresh cross-compiler works.
7432 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7433 # <limits.h> exists even on freestanding compilers.
7434 # On the NeXT, cc -E runs the code through the compiler's parser,
7435 # not just through cpp. "Syntax error
" is here to catch this case.
7436 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7437 /* end confdefs.h. */
7439 # include <limits.h>
7441 # include <assert.h>
7445 if ac_fn_c_try_cpp "$LINENO"; then :
7448 # Broken: fails on valid input.
7451 rm -f conftest.err conftest.i conftest.$ac_ext
7453 # OK, works on sane cases. Now check whether nonexistent headers
7454 # can be detected and how.
7455 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7456 /* end confdefs.h. */
7457 #include <ac_nonexistent.h>
7459 if ac_fn_c_try_cpp "$LINENO"; then :
7460 # Broken: success on invalid input.
7463 # Passes both tests.
7467 rm -f conftest.err conftest.i conftest.$ac_ext
7470 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7471 rm -f conftest.i conftest.err conftest.$ac_ext
7472 if $ac_preproc_ok; then :
7475 { { $as_echo "$as_me:${as_lineno-$LINENO}: error
: in \
`$ac_pwd':" >&5
7476 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7477 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7478 See \`config.log' for more details
" "$LINENO" 5; }
7482 ac_cpp='$CPP $CPPFLAGS'
7483 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7484 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7485 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ANSI C header files
" >&5
7489 $as_echo_n "checking
for ANSI C header files...
" >&6; }
7490 if ${ac_cv_header_stdc+:} false; then :
7491 $as_echo_n "(cached
) " >&6
7493 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7494 /* end confdefs.h. */
7508 if ac_fn_c_try_compile "$LINENO"; then :
7509 ac_cv_header_stdc=yes
7511 ac_cv_header_stdc=no
7513 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7515 if test $ac_cv_header_stdc = yes; then
7516 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7517 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7518 /* end confdefs.h. */
7522 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
7523 $EGREP "memchr
" >/dev/null 2>&1; then :
7526 ac_cv_header_stdc=no
7532 if test $ac_cv_header_stdc = yes; then
7533 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7534 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7535 /* end confdefs.h. */
7539 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
7540 $EGREP "free
" >/dev/null 2>&1; then :
7543 ac_cv_header_stdc=no
7549 if test $ac_cv_header_stdc = yes; then
7550 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7551 if test "$cross_compiling" = yes; then :
7554 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7555 /* end confdefs.h. */
7558 #if ((' ' & 0x0FF) == 0x020)
7559 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7560 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7562 # define ISLOWER(c) \
7563 (('a' <= (c) && (c) <= 'i') \
7564 || ('j' <= (c) && (c) <= 'r') \
7565 || ('s' <= (c) && (c) <= 'z'))
7566 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7569 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7574 for (i = 0; i < 256; i++)
7575 if (XOR (islower (i), ISLOWER (i))
7576 || toupper (i) != TOUPPER (i))
7581 if ac_fn_c_try_run "$LINENO"; then :
7584 ac_cv_header_stdc=no
7586 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7587 conftest.$ac_objext conftest.beam conftest.$ac_ext
7592 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_header_stdc" >&5
7593 $as_echo "$ac_cv_header_stdc" >&6; }
7594 if test $ac_cv_header_stdc = yes; then
7596 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7600 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7601 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
7602 inttypes.h stdint.h unistd.h
7604 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7605 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7607 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
7608 cat >>confdefs.h
<<_ACEOF
7609 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7617 for ac_header
in dlfcn.h
7619 ac_fn_c_check_header_compile
"$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7621 if test "x$ac_cv_header_dlfcn_h" = xyes
; then :
7622 cat >>confdefs.h
<<_ACEOF
7623 #define HAVE_DLFCN_H 1
7644 # Check whether --enable-shared was given.
7645 if test "${enable_shared+set}" = set; then :
7646 enableval
=$enable_shared; p
=${PACKAGE-default}
7648 yes) enable_shared
=yes ;;
7649 no
) enable_shared
=no
;;
7652 # Look at the argument we got. We use all the common list separators.
7653 lt_save_ifs
="$IFS"; IFS
="${IFS}$PATH_SEPARATOR,"
7654 for pkg
in $enableval; do
7656 if test "X$pkg" = "X$p"; then
7675 # Check whether --enable-static was given.
7676 if test "${enable_static+set}" = set; then :
7677 enableval
=$enable_static; p
=${PACKAGE-default}
7679 yes) enable_static
=yes ;;
7680 no
) enable_static
=no
;;
7683 # Look at the argument we got. We use all the common list separators.
7684 lt_save_ifs
="$IFS"; IFS
="${IFS}$PATH_SEPARATOR,"
7685 for pkg
in $enableval; do
7687 if test "X$pkg" = "X$p"; then
7707 # Check whether --with-pic was given.
7708 if test "${with_pic+set}" = set; then :
7709 withval
=$with_pic; lt_p
=${PACKAGE-default}
7711 yes|no
) pic_mode
=$withval ;;
7714 # Look at the argument we got. We use all the common list separators.
7715 lt_save_ifs
="$IFS"; IFS
="${IFS}$PATH_SEPARATOR,"
7716 for lt_pkg
in $withval; do
7718 if test "X$lt_pkg" = "X$lt_p"; then
7730 test -z "$pic_mode" && pic_mode
=default
7738 # Check whether --enable-fast-install was given.
7739 if test "${enable_fast_install+set}" = set; then :
7740 enableval
=$enable_fast_install; p
=${PACKAGE-default}
7742 yes) enable_fast_install
=yes ;;
7743 no
) enable_fast_install
=no
;;
7745 enable_fast_install
=no
7746 # Look at the argument we got. We use all the common list separators.
7747 lt_save_ifs
="$IFS"; IFS
="${IFS}$PATH_SEPARATOR,"
7748 for pkg
in $enableval; do
7750 if test "X$pkg" = "X$p"; then
7751 enable_fast_install
=yes
7758 enable_fast_install
=yes
7771 # This can be used to rebuild libtool when needed
7772 LIBTOOL_DEPS
="$ltmain"
7774 # Always use our own libtool.
7775 LIBTOOL
='$(SHELL) $(top_builddir)/libtool'
7806 test -z "$LN_S" && LN_S
="ln -s"
7821 if test -n "${ZSH_VERSION+set}" ; then
7822 setopt NO_GLOB_SUBST
7825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7826 $as_echo_n "checking for objdir... " >&6; }
7827 if ${lt_cv_objdir+:} false
; then :
7828 $as_echo_n "(cached) " >&6
7830 rm -f .libs
2>/dev
/null
7831 mkdir .libs
2>/dev
/null
7832 if test -d .libs
; then
7835 # MS-DOS does not allow filenames that begin with a dot.
7838 rmdir .libs
2>/dev
/null
7840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7841 $as_echo "$lt_cv_objdir" >&6; }
7842 objdir
=$lt_cv_objdir
7848 cat >>confdefs.h
<<_ACEOF
7849 #define LT_OBJDIR "$lt_cv_objdir/"
7857 # AIX sometimes has problems with the GCC collect2 program. For some
7858 # reason, if we set the COLLECT_NAMES environment variable, the problems
7859 # vanish in a puff of smoke.
7860 if test "X${COLLECT_NAMES+set}" != Xset
; then
7862 export COLLECT_NAMES
7869 can_build_shared
=yes
7871 # All known linkers require a `.a' archive for static linking (except MSVC,
7872 # which needs '.lib').
7875 with_gnu_ld
="$lt_cv_prog_gnu_ld"
7878 old_CFLAGS
="$CFLAGS"
7880 # Set sane defaults for various variables
7881 test -z "$CC" && CC
=cc
7882 test -z "$LTCC" && LTCC
=$CC
7883 test -z "$LTCFLAGS" && LTCFLAGS
=$CFLAGS
7884 test -z "$LD" && LD
=ld
7885 test -z "$ac_objext" && ac_objext
=o
7887 for cc_temp
in $compiler""; do
7889 compile |
*[\\/]compile | ccache |
*[\\/]ccache
) ;;
7890 distcc |
*[\\/]distcc | purify |
*[\\/]purify
) ;;
7895 cc_basename
=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7898 # Only perform the check for file, if the check method requires it
7899 test -z "$MAGIC_CMD" && MAGIC_CMD
=file
7900 case $deplibs_check_method in
7902 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7904 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7905 if ${lt_cv_path_MAGIC_CMD+:} false
; then :
7906 $as_echo_n "(cached) " >&6
7910 lt_cv_path_MAGIC_CMD
="$MAGIC_CMD" # Let the user override the test with a path.
7913 lt_save_MAGIC_CMD
="$MAGIC_CMD"
7914 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
7915 ac_dummy
="/usr/bin$PATH_SEPARATOR$PATH"
7916 for ac_dir
in $ac_dummy; do
7918 test -z "$ac_dir" && ac_dir
=.
7919 if test -f $ac_dir/${ac_tool_prefix}file; then
7920 lt_cv_path_MAGIC_CMD
="$ac_dir/${ac_tool_prefix}file"
7921 if test -n "$file_magic_test_file"; then
7922 case $deplibs_check_method in
7924 file_magic_regex
=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7925 MAGIC_CMD
="$lt_cv_path_MAGIC_CMD"
7926 if eval $file_magic_cmd \
$file_magic_test_file 2> /dev
/null |
7927 $EGREP "$file_magic_regex" > /dev
/null
; then
7932 *** Warning: the command libtool uses to detect shared libraries,
7933 *** $file_magic_cmd, produces output that libtool cannot recognize.
7934 *** The result is that libtool may fail to recognize shared libraries
7935 *** as such. This will affect the creation of libtool libraries that
7936 *** depend on shared libraries, but programs linked with such libtool
7937 *** libraries will work regardless of this problem. Nevertheless, you
7938 *** may want to report the problem to your system manager and/or to
7939 *** bug-libtool@gnu.org
7949 MAGIC_CMD
="$lt_save_MAGIC_CMD"
7954 MAGIC_CMD
="$lt_cv_path_MAGIC_CMD"
7955 if test -n "$MAGIC_CMD"; then
7956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7957 $as_echo "$MAGIC_CMD" >&6; }
7959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7960 $as_echo "no" >&6; }
7967 if test -z "$lt_cv_path_MAGIC_CMD"; then
7968 if test -n "$ac_tool_prefix"; then
7969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7970 $as_echo_n "checking for file... " >&6; }
7971 if ${lt_cv_path_MAGIC_CMD+:} false
; then :
7972 $as_echo_n "(cached) " >&6
7976 lt_cv_path_MAGIC_CMD
="$MAGIC_CMD" # Let the user override the test with a path.
7979 lt_save_MAGIC_CMD
="$MAGIC_CMD"
7980 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
7981 ac_dummy
="/usr/bin$PATH_SEPARATOR$PATH"
7982 for ac_dir
in $ac_dummy; do
7984 test -z "$ac_dir" && ac_dir
=.
7985 if test -f $ac_dir/file; then
7986 lt_cv_path_MAGIC_CMD
="$ac_dir/file"
7987 if test -n "$file_magic_test_file"; then
7988 case $deplibs_check_method in
7990 file_magic_regex
=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7991 MAGIC_CMD
="$lt_cv_path_MAGIC_CMD"
7992 if eval $file_magic_cmd \
$file_magic_test_file 2> /dev
/null |
7993 $EGREP "$file_magic_regex" > /dev
/null
; then
7998 *** Warning: the command libtool uses to detect shared libraries,
7999 *** $file_magic_cmd, produces output that libtool cannot recognize.
8000 *** The result is that libtool may fail to recognize shared libraries
8001 *** as such. This will affect the creation of libtool libraries that
8002 *** depend on shared libraries, but programs linked with such libtool
8003 *** libraries will work regardless of this problem. Nevertheless, you
8004 *** may want to report the problem to your system manager and/or to
8005 *** bug-libtool@gnu.org
8015 MAGIC_CMD
="$lt_save_MAGIC_CMD"
8020 MAGIC_CMD
="$lt_cv_path_MAGIC_CMD"
8021 if test -n "$MAGIC_CMD"; then
8022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8023 $as_echo "$MAGIC_CMD" >&6; }
8025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8026 $as_echo "no" >&6; }
8039 # Use C for the default configuration in the libtool script
8043 ac_cpp
='$CPP $CPPFLAGS'
8044 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8045 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8046 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
8049 # Source file extension for C test sources.
8052 # Object file extension for compiled C test sources.
8056 # Code to be used in simple compile tests
8057 lt_simple_compile_test_code
="int some_variable = 0;"
8059 # Code to be used in simple link tests
8060 lt_simple_link_test_code
='int main(){return(0);}'
8068 # If no C compiler was specified, use CC.
8071 # If no C compiler flags were specified, use CFLAGS.
8072 LTCFLAGS
=${LTCFLAGS-"$CFLAGS"}
8074 # Allow CC to be a program name with arguments.
8077 # Save the default compiler, since it gets overwritten when the other
8078 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8079 compiler_DEFAULT
=$CC
8081 # save warnings/boilerplate of simple test code
8082 ac_outfile
=conftest.
$ac_objext
8083 echo "$lt_simple_compile_test_code" >conftest.
$ac_ext
8084 eval "$ac_compile" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
8085 _lt_compiler_boilerplate
=`cat conftest.err`
8088 ac_outfile
=conftest.
$ac_objext
8089 echo "$lt_simple_link_test_code" >conftest.
$ac_ext
8090 eval "$ac_link" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
8091 _lt_linker_boilerplate
=`cat conftest.err`
8096 ## There is no encapsulation within the following macros, do not change
8097 ## the running order or otherwise move them around unless you know exactly
8098 ## what you are doing...
8099 if test -n "$compiler"; then
8101 lt_prog_compiler_no_builtin_flag
=
8103 if test "$GCC" = yes; then
8104 case $cc_basename in
8106 lt_prog_compiler_no_builtin_flag
=' -Xcompiler -fno-builtin' ;;
8108 lt_prog_compiler_no_builtin_flag
=' -fno-builtin' ;;
8111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8112 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8113 if ${lt_cv_prog_compiler_rtti_exceptions+:} false
; then :
8114 $as_echo_n "(cached) " >&6
8116 lt_cv_prog_compiler_rtti_exceptions
=no
8117 ac_outfile
=conftest.
$ac_objext
8118 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
8119 lt_compiler_flag
="-fno-rtti -fno-exceptions"
8120 # Insert the option either (1) after the last *FLAGS variable, or
8121 # (2) before a word containing "conftest.", or (3) at the end.
8122 # Note that $ac_compile itself does not contain backslashes and begins
8123 # with a dollar sign (not a hyphen), so the echo should work correctly.
8124 # The option is referenced via a variable to avoid confusing sed.
8125 lt_compile
=`echo "$ac_compile" | $SED \
8126 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8127 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8128 -e 's:$: $lt_compiler_flag:'`
8129 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8130 (eval "$lt_compile" 2>conftest.err
)
8132 cat conftest.err
>&5
8133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8134 if (exit $ac_status) && test -s "$ac_outfile"; then
8135 # The compiler can only warn and ignore the option if not recognized
8136 # So say no if there are warnings other than the usual output.
8137 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' >conftest.exp
8138 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
8139 if test ! -s conftest.er2 ||
diff conftest.exp conftest.er2
>/dev
/null
; then
8140 lt_cv_prog_compiler_rtti_exceptions
=yes
8146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8147 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8149 if test x
"$lt_cv_prog_compiler_rtti_exceptions" = xyes
; then
8150 lt_prog_compiler_no_builtin_flag
="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8162 lt_prog_compiler_wl
=
8163 lt_prog_compiler_pic
=
8164 lt_prog_compiler_static
=
8167 if test "$GCC" = yes; then
8168 lt_prog_compiler_wl
='-Wl,'
8169 lt_prog_compiler_static
='-static'
8173 # All AIX code is PIC.
8174 if test "$host_cpu" = ia64
; then
8175 # AIX 5 now supports IA64 processor
8176 lt_prog_compiler_static
='-Bstatic'
8183 # see comment about AmigaOS4 .so support
8184 lt_prog_compiler_pic
='-fPIC'
8187 # FIXME: we need at least 68020 code to build shared libraries, but
8188 # adding the `-m68020' flag to GCC prevents building anything better,
8190 lt_prog_compiler_pic
='-m68020 -resident32 -malways-restore-a4'
8195 beos
* | irix5
* | irix6
* | nonstopux
* | osf3
* | osf4
* | osf5
*)
8196 # PIC is the default for these OSes.
8199 mingw
* | cygwin
* | pw32
* | os2
* | cegcc
*)
8200 # This hack is so that the source file can tell whether it is being
8201 # built for inclusion in a dll (and should export symbols for example).
8202 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8203 # (--disable-auto-import) libraries
8204 lt_prog_compiler_pic
='-DDLL_EXPORT'
8207 darwin
* | rhapsody
*)
8208 # PIC is the default on this platform
8209 # Common symbols not allowed in MH_DYLIB files
8210 lt_prog_compiler_pic
='-fno-common'
8214 # PIC is the default for Haiku.
8215 # The "-static" flag exists, but is broken.
8216 lt_prog_compiler_static
=
8220 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8221 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8222 # sets the default TLS model and affects inlining.
8228 lt_prog_compiler_pic
='-fPIC'
8234 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8235 # Instead, we relocate shared libraries at runtime.
8239 # Just because we use GCC doesn't mean we suddenly get shared libraries
8240 # on systems that don't support them.
8241 lt_prog_compiler_can_build_shared
=no
8246 # QNX uses GNU C++, but need to define -shared option too, otherwise
8248 lt_prog_compiler_pic
='-fPIC -shared'
8252 if test -d /usr
/nec
; then
8253 lt_prog_compiler_pic
=-Kconform_pic
8258 lt_prog_compiler_pic
='-fPIC'
8262 case $cc_basename in
8263 nvcc
*) # Cuda Compiler Driver 2.2
8264 lt_prog_compiler_wl
='-Xlinker '
8265 if test -n "$lt_prog_compiler_pic"; then
8266 lt_prog_compiler_pic
="-Xcompiler $lt_prog_compiler_pic"
8271 # PORTME Check for flag to pass linker flags through the system compiler.
8274 lt_prog_compiler_wl
='-Wl,'
8275 if test "$host_cpu" = ia64
; then
8276 # AIX 5 now supports IA64 processor
8277 lt_prog_compiler_static
='-Bstatic'
8279 lt_prog_compiler_static
='-bnso -bI:/lib/syscalls.exp'
8283 mingw
* | cygwin
* | pw32
* | os2
* | cegcc
*)
8284 # This hack is so that the source file can tell whether it is being
8285 # built for inclusion in a dll (and should export symbols for example).
8286 lt_prog_compiler_pic
='-DDLL_EXPORT'
8289 hpux9
* | hpux10
* | hpux11
*)
8290 lt_prog_compiler_wl
='-Wl,'
8291 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8298 lt_prog_compiler_pic
='+Z'
8301 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8302 lt_prog_compiler_static
='${wl}-a ${wl}archive'
8305 irix5
* | irix6
* | nonstopux
*)
8306 lt_prog_compiler_wl
='-Wl,'
8307 # PIC (with -KPIC) is the default.
8308 lt_prog_compiler_static
='-non_shared'
8311 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
8312 case $cc_basename in
8313 # old Intel for x86_64 which still supported -KPIC.
8315 lt_prog_compiler_wl
='-Wl,'
8316 lt_prog_compiler_pic
='-KPIC'
8317 lt_prog_compiler_static
='-static'
8319 # icc used to be incompatible with GCC.
8320 # ICC 10 doesn't accept -KPIC any more.
8322 lt_prog_compiler_wl
='-Wl,'
8323 lt_prog_compiler_pic
='-fPIC'
8324 lt_prog_compiler_static
='-static'
8326 # Lahey Fortran 8.1.
8328 lt_prog_compiler_wl
='-Wl,'
8329 lt_prog_compiler_pic
='--shared'
8330 lt_prog_compiler_static
='--static'
8333 # NAG Fortran compiler
8334 lt_prog_compiler_wl
='-Wl,-Wl,,'
8335 lt_prog_compiler_pic
='-PIC'
8336 lt_prog_compiler_static
='-Bstatic'
8338 pgcc
* | pgf77
* | pgf90
* | pgf95
* | pgfortran
*)
8339 # Portland Group compilers (*not* the Pentium gcc compiler,
8340 # which looks to be a dead project)
8341 lt_prog_compiler_wl
='-Wl,'
8342 lt_prog_compiler_pic
='-fpic'
8343 lt_prog_compiler_static
='-Bstatic'
8346 lt_prog_compiler_wl
='-Wl,'
8347 # All Alpha code is PIC.
8348 lt_prog_compiler_static
='-non_shared'
8350 xl
* | bgxl
* | bgf
* | mpixl
*)
8351 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8352 lt_prog_compiler_wl
='-Wl,'
8353 lt_prog_compiler_pic
='-qpic'
8354 lt_prog_compiler_static
='-qstaticlink'
8357 case `$CC -V 2>&1 | sed 5q` in
8358 *Sun\ Ceres\ Fortran
* |
*Sun
*Fortran
*\
[1-7].
* |
*Sun
*Fortran
*\
8.
[0-3]*)
8359 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8360 lt_prog_compiler_pic
='-KPIC'
8361 lt_prog_compiler_static
='-Bstatic'
8362 lt_prog_compiler_wl
=''
8364 *Sun\ F
* |
*Sun
*Fortran
*)
8365 lt_prog_compiler_pic
='-KPIC'
8366 lt_prog_compiler_static
='-Bstatic'
8367 lt_prog_compiler_wl
='-Qoption ld '
8371 lt_prog_compiler_pic
='-KPIC'
8372 lt_prog_compiler_static
='-Bstatic'
8373 lt_prog_compiler_wl
='-Wl,'
8375 *Intel
*\
[CF
]*Compiler
*)
8376 lt_prog_compiler_wl
='-Wl,'
8377 lt_prog_compiler_pic
='-fPIC'
8378 lt_prog_compiler_static
='-static'
8381 lt_prog_compiler_wl
='-Wl,'
8382 lt_prog_compiler_pic
='-fpic'
8383 lt_prog_compiler_static
='-Bstatic'
8391 lt_prog_compiler_pic
='-KPIC'
8392 lt_prog_compiler_static
='-Bstatic'
8396 # QNX uses GNU C++, but need to define -shared option too, otherwise
8398 lt_prog_compiler_pic
='-fPIC -shared'
8401 osf3
* | osf4
* | osf5
*)
8402 lt_prog_compiler_wl
='-Wl,'
8403 # All OSF/1 code is PIC.
8404 lt_prog_compiler_static
='-non_shared'
8408 lt_prog_compiler_static
='-non_shared'
8412 lt_prog_compiler_pic
='-KPIC'
8413 lt_prog_compiler_static
='-Bstatic'
8414 case $cc_basename in
8415 f77
* | f90
* | f95
* | sunf77
* | sunf90
* | sunf95
*)
8416 lt_prog_compiler_wl
='-Qoption ld ';;
8418 lt_prog_compiler_wl
='-Wl,';;
8423 lt_prog_compiler_wl
='-Qoption ld '
8424 lt_prog_compiler_pic
='-PIC'
8425 lt_prog_compiler_static
='-Bstatic'
8428 sysv4 | sysv4.2uw2
* | sysv4.3
*)
8429 lt_prog_compiler_wl
='-Wl,'
8430 lt_prog_compiler_pic
='-KPIC'
8431 lt_prog_compiler_static
='-Bstatic'
8435 if test -d /usr
/nec
;then
8436 lt_prog_compiler_pic
='-Kconform_pic'
8437 lt_prog_compiler_static
='-Bstatic'
8441 sysv5
* | unixware
* | sco3.2v5
* | sco5v6
* | OpenUNIX
*)
8442 lt_prog_compiler_wl
='-Wl,'
8443 lt_prog_compiler_pic
='-KPIC'
8444 lt_prog_compiler_static
='-Bstatic'
8448 lt_prog_compiler_wl
='-Wl,'
8449 lt_prog_compiler_can_build_shared
=no
8453 lt_prog_compiler_pic
='-pic'
8454 lt_prog_compiler_static
='-Bstatic'
8458 lt_prog_compiler_can_build_shared
=no
8464 # For platforms which do not support PIC, -DPIC is meaningless:
8466 lt_prog_compiler_pic
=
8469 lt_prog_compiler_pic
="$lt_prog_compiler_pic -DPIC"
8473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8474 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8475 if ${lt_cv_prog_compiler_pic+:} false
; then :
8476 $as_echo_n "(cached) " >&6
8478 lt_cv_prog_compiler_pic
=$lt_prog_compiler_pic
8480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8481 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
8482 lt_prog_compiler_pic
=$lt_cv_prog_compiler_pic
8485 # Check to make sure the PIC flag actually works.
8487 if test -n "$lt_prog_compiler_pic"; then
8488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8489 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8490 if ${lt_cv_prog_compiler_pic_works+:} false
; then :
8491 $as_echo_n "(cached) " >&6
8493 lt_cv_prog_compiler_pic_works
=no
8494 ac_outfile
=conftest.
$ac_objext
8495 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
8496 lt_compiler_flag
="$lt_prog_compiler_pic -DPIC"
8497 # Insert the option either (1) after the last *FLAGS variable, or
8498 # (2) before a word containing "conftest.", or (3) at the end.
8499 # Note that $ac_compile itself does not contain backslashes and begins
8500 # with a dollar sign (not a hyphen), so the echo should work correctly.
8501 # The option is referenced via a variable to avoid confusing sed.
8502 lt_compile
=`echo "$ac_compile" | $SED \
8503 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8504 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8505 -e 's:$: $lt_compiler_flag:'`
8506 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8507 (eval "$lt_compile" 2>conftest.err
)
8509 cat conftest.err
>&5
8510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8511 if (exit $ac_status) && test -s "$ac_outfile"; then
8512 # The compiler can only warn and ignore the option if not recognized
8513 # So say no if there are warnings other than the usual output.
8514 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' >conftest.exp
8515 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
8516 if test ! -s conftest.er2 ||
diff conftest.exp conftest.er2
>/dev
/null
; then
8517 lt_cv_prog_compiler_pic_works
=yes
8523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8524 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8526 if test x
"$lt_cv_prog_compiler_pic_works" = xyes
; then
8527 case $lt_prog_compiler_pic in
8529 *) lt_prog_compiler_pic
=" $lt_prog_compiler_pic" ;;
8532 lt_prog_compiler_pic
=
8533 lt_prog_compiler_can_build_shared
=no
8549 # Check to make sure the static flag actually works.
8551 wl
=$lt_prog_compiler_wl eval lt_tmp_static_flag
=\"$lt_prog_compiler_static\"
8552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8553 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8554 if ${lt_cv_prog_compiler_static_works+:} false
; then :
8555 $as_echo_n "(cached) " >&6
8557 lt_cv_prog_compiler_static_works
=no
8558 save_LDFLAGS
="$LDFLAGS"
8559 LDFLAGS
="$LDFLAGS $lt_tmp_static_flag"
8560 echo "$lt_simple_link_test_code" > conftest.
$ac_ext
8561 if (eval $ac_link 2>conftest.err
) && test -s conftest
$ac_exeext; then
8562 # The linker can only warn and ignore the option if not recognized
8563 # So say no if there are warnings
8564 if test -s conftest.err
; then
8565 # Append any errors to the config.log.
8566 cat conftest.err
1>&5
8567 $ECHO "$_lt_linker_boilerplate" |
$SED '/^$/d' > conftest.exp
8568 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
8569 if diff conftest.exp conftest.er2
>/dev
/null
; then
8570 lt_cv_prog_compiler_static_works
=yes
8573 lt_cv_prog_compiler_static_works
=yes
8577 LDFLAGS
="$save_LDFLAGS"
8580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8581 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8583 if test x
"$lt_cv_prog_compiler_static_works" = xyes
; then
8586 lt_prog_compiler_static
=
8595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8596 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8597 if ${lt_cv_prog_compiler_c_o+:} false
; then :
8598 $as_echo_n "(cached) " >&6
8600 lt_cv_prog_compiler_c_o
=no
8601 $RM -r conftest
2>/dev
/null
8605 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
8607 lt_compiler_flag
="-o out/conftest2.$ac_objext"
8608 # Insert the option either (1) after the last *FLAGS variable, or
8609 # (2) before a word containing "conftest.", or (3) at the end.
8610 # Note that $ac_compile itself does not contain backslashes and begins
8611 # with a dollar sign (not a hyphen), so the echo should work correctly.
8612 lt_compile
=`echo "$ac_compile" | $SED \
8613 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8614 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8615 -e 's:$: $lt_compiler_flag:'`
8616 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8617 (eval "$lt_compile" 2>out
/conftest.err
)
8619 cat out
/conftest.err
>&5
8620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8621 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
8623 # The compiler can only warn and ignore the option if not recognized
8624 # So say no if there are warnings
8625 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' > out
/conftest.exp
8626 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
8627 if test ! -s out
/conftest.er2 ||
diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
8628 lt_cv_prog_compiler_c_o
=yes
8633 # SGI C++ compiler will create directory out/ii_files/ for
8634 # template instantiation
8635 test -d out
/ii_files
&& $RM out
/ii_files
/* && rmdir out
/ii_files
8636 $RM out
/* && rmdir out
8642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8643 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8651 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8652 if ${lt_cv_prog_compiler_c_o+:} false
; then :
8653 $as_echo_n "(cached) " >&6
8655 lt_cv_prog_compiler_c_o
=no
8656 $RM -r conftest
2>/dev
/null
8660 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
8662 lt_compiler_flag
="-o out/conftest2.$ac_objext"
8663 # Insert the option either (1) after the last *FLAGS variable, or
8664 # (2) before a word containing "conftest.", or (3) at the end.
8665 # Note that $ac_compile itself does not contain backslashes and begins
8666 # with a dollar sign (not a hyphen), so the echo should work correctly.
8667 lt_compile
=`echo "$ac_compile" | $SED \
8668 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8669 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8670 -e 's:$: $lt_compiler_flag:'`
8671 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8672 (eval "$lt_compile" 2>out
/conftest.err
)
8674 cat out
/conftest.err
>&5
8675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8676 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
8678 # The compiler can only warn and ignore the option if not recognized
8679 # So say no if there are warnings
8680 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' > out
/conftest.exp
8681 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
8682 if test ! -s out
/conftest.er2 ||
diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
8683 lt_cv_prog_compiler_c_o
=yes
8688 # SGI C++ compiler will create directory out/ii_files/ for
8689 # template instantiation
8690 test -d out
/ii_files
&& $RM out
/ii_files
/* && rmdir out
/ii_files
8691 $RM out
/* && rmdir out
8697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8698 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8703 hard_links
="nottested"
8704 if test "$lt_cv_prog_compiler_c_o" = no
&& test "$need_locks" != no
; then
8705 # do not overwrite the value of need_locks provided by the user
8706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8707 $as_echo_n "checking if we can lock with hard links... " >&6; }
8710 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
8712 ln conftest.a conftest.b
2>&5 || hard_links
=no
8713 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
8714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8715 $as_echo "$hard_links" >&6; }
8716 if test "$hard_links" = no
; then
8717 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8718 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8731 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8734 allow_undefined_flag
=
8735 always_export_symbols
=no
8737 archive_expsym_cmds
=
8738 compiler_needs_object
=no
8739 enable_shared_with_static_runtimes
=no
8740 export_dynamic_flag_spec
=
8741 export_symbols_cmds
='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8742 hardcode_automatic
=no
8744 hardcode_direct_absolute
=no
8745 hardcode_libdir_flag_spec
=
8746 hardcode_libdir_separator
=
8748 hardcode_shlibpath_var
=unsupported
8750 link_all_deplibs
=unknown
8753 old_archive_from_new_cmds
=
8754 old_archive_from_expsyms_cmds
=
8755 thread_safe_flag_spec
=
8756 whole_archive_flag_spec
=
8757 # include_expsyms should be a list of space-separated symbols to be *always*
8758 # included in the symbol list
8760 # exclude_expsyms can be an extended regexp of symbols to exclude
8761 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8762 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8763 # as well as any symbol that contains `d'.
8764 exclude_expsyms
='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8765 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8766 # platforms (ab)use it in PIC code, but their linkers get confused if
8767 # the symbol is explicitly referenced. Since portable code cannot
8768 # rely on this symbol name, it's probably fine to never include it in
8769 # preloaded symbol tables.
8770 # Exclude shared library initialization/finalization symbols.
8771 extract_expsyms_cmds
=
8774 cygwin
* | mingw
* | pw32
* | cegcc
*)
8775 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8776 # When not using gcc, we currently assume that we are using
8777 # Microsoft Visual C++.
8778 if test "$GCC" != yes; then
8783 # we just hope/assume this is gcc and not c89 (= MSVC++)
8789 linux
* | k
*bsd
*-gnu | gnu
*)
8796 # On some targets, GNU ld is compatible enough with the native linker
8797 # that we're better off using the native interface for both.
8798 lt_use_gnu_ld_interface
=no
8799 if test "$with_gnu_ld" = yes; then
8802 # The AIX port of GNU ld has always aspired to compatibility
8803 # with the native linker. However, as the warning in the GNU ld
8804 # block says, versions before 2.19.5* couldn't really create working
8805 # shared libraries, regardless of the interface used.
8806 case `$LD -v 2>&1` in
8807 *\ \
(GNU\ Binutils\
)\
2.19.5*) ;;
8808 *\ \
(GNU\ Binutils\
)\
2.
[2-9]*) ;;
8809 *\ \
(GNU\ Binutils\
)\
[3-9]*) ;;
8811 lt_use_gnu_ld_interface
=yes
8816 lt_use_gnu_ld_interface
=yes
8821 if test "$lt_use_gnu_ld_interface" = yes; then
8822 # If archive_cmds runs LD, not CC, wlarc should be empty
8825 # Set some defaults for GNU ld with shared library support. These
8826 # are reset later if shared libraries are not supported. Putting them
8827 # here allows them to be overridden if necessary.
8828 runpath_var
=LD_RUN_PATH
8829 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
8830 export_dynamic_flag_spec
='${wl}--export-dynamic'
8831 # ancient GNU ld didn't support --whole-archive et. al.
8832 if $LD --help 2>&1 |
$GREP 'no-whole-archive' > /dev
/null
; then
8833 whole_archive_flag_spec
="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8835 whole_archive_flag_spec
=
8837 supports_anon_versioning
=no
8838 case `$LD -v 2>&1` in
8839 *GNU\ gold
*) supports_anon_versioning
=yes ;;
8840 *\
[01].
* |
*\
2.
[0-9].
* |
*\
2.10.
*) ;; # catch versions < 2.11
8841 *\
2.11.93.0.2\
*) supports_anon_versioning
=yes ;; # RH7.3 ...
8842 *\
2.11.92.0.12\
*) supports_anon_versioning
=yes ;; # Mandrake 8.2 ...
8843 *\
2.11.
*) ;; # other 2.11 versions
8844 *) supports_anon_versioning
=yes ;;
8847 # See if GNU ld supports shared libraries.
8850 # On AIX/PPC, the GNU linker is very broken
8851 if test "$host_cpu" != ia64
; then
8855 *** Warning: the GNU linker, at least up to release 2.19, is reported
8856 *** to be unable to reliably create shared libraries on AIX.
8857 *** Therefore, libtool is disabling shared libraries support. If you
8858 *** really care for shared libraries, you may want to install binutils
8859 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8860 *** You will then need to restart the configuration process.
8869 # see comment about AmigaOS4 .so support
8870 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8871 archive_expsym_cmds
=''
8874 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)'
8875 hardcode_libdir_flag_spec
='-L$libdir'
8876 hardcode_minus_L
=yes
8882 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
8883 allow_undefined_flag
=unsupported
8884 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8885 # support --undefined. This deserves some investigation. FIXME
8886 archive_cmds
='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8892 cygwin
* | mingw
* | pw32
* | cegcc
*)
8893 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8894 # as there is no search path for DLLs.
8895 hardcode_libdir_flag_spec
='-L$libdir'
8896 export_dynamic_flag_spec
='${wl}--export-all-symbols'
8897 allow_undefined_flag
=unsupported
8898 always_export_symbols
=no
8899 enable_shared_with_static_runtimes
=yes
8900 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'
8901 exclude_expsyms
='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
8903 if $LD --help 2>&1 |
$GREP 'auto-import' > /dev
/null
; then
8904 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8905 # If the export-symbols file already is a .def file (1st line
8906 # is EXPORTS), use it as is; otherwise, prepend...
8907 archive_expsym_cmds
='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8908 cp $export_symbols $output_objdir/$soname.def;
8910 echo EXPORTS > $output_objdir/$soname.def;
8911 cat $export_symbols >> $output_objdir/$soname.def;
8913 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8920 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8921 link_all_deplibs
=yes
8926 hardcode_shlibpath_var
=no
8927 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
8928 export_dynamic_flag_spec
='${wl}-E'
8929 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8930 # Instead, shared libraries are loaded at an image base (0x10000000 by
8931 # default) and relocated if they conflict, which is a slow very memory
8932 # consuming and fragmenting process. To avoid this, we pick a random,
8933 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8934 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8935 archive_cmds
='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8936 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'
8939 gnu
* | linux
* | tpf
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
8941 if test "$host_os" = linux-dietlibc
; then
8942 case $cc_basename in
8943 diet\
*) tmp_diet
=yes;; # linux-dietlibc with static linking (!diet-dyn)
8946 if $LD --help 2>&1 |
$EGREP ': supported targets:.* elf' > /dev
/null \
8947 && test "$tmp_diet" = no
8949 tmp_addflag
=' $pic_flag'
8950 tmp_sharedflag
='-shared'
8951 case $cc_basename,$host_cpu in
8952 pgcc
*) # Portland Group C compiler
8953 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'
8954 tmp_addflag
=' $pic_flag'
8956 pgf77
* | pgf90
* | pgf95
* | pgfortran
*)
8957 # Portland Group f77 and f90 compilers
8958 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'
8959 tmp_addflag
=' $pic_flag -Mnomain' ;;
8960 ecc
*,ia64
* | icc
*,ia64
*) # Intel C compiler on ia64
8961 tmp_addflag
=' -i_dynamic' ;;
8962 efc
*,ia64
* | ifort
*,ia64
*) # Intel Fortran compiler on ia64
8963 tmp_addflag
=' -i_dynamic -nofor_main' ;;
8964 ifc
* | ifort
*) # Intel Fortran compiler
8965 tmp_addflag
=' -nofor_main' ;;
8966 lf95
*) # Lahey Fortran 8.1
8967 whole_archive_flag_spec
=
8968 tmp_sharedflag
='--shared' ;;
8969 xl
[cC
]* | bgxl
[cC
]* | mpixl
[cC
]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8970 tmp_sharedflag
='-qmkshrobj'
8972 nvcc
*) # Cuda Compiler Driver 2.2
8973 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'
8974 compiler_needs_object
=yes
8977 case `$CC -V 2>&1 | sed 5q` in
8978 *Sun\ C
*) # Sun C 5.9
8979 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'
8980 compiler_needs_object
=yes
8981 tmp_sharedflag
='-G' ;;
8982 *Sun\ F
*) # Sun Fortran 8.3
8983 tmp_sharedflag
='-G' ;;
8985 archive_cmds
='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8987 if test "x$supports_anon_versioning" = xyes
; then
8988 archive_expsym_cmds
='echo "{ global:" > $output_objdir/$libname.ver~
8989 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8990 echo "local: *; };" >> $output_objdir/$libname.ver~
8991 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8994 case $cc_basename in
8995 xlf
* | bgf
* | bgxlf
* | mpixlf
*)
8996 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8997 whole_archive_flag_spec
='--whole-archive$convenience --no-whole-archive'
8998 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
8999 archive_cmds
='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9000 if test "x$supports_anon_versioning" = xyes
; then
9001 archive_expsym_cmds
='echo "{ global:" > $output_objdir/$libname.ver~
9002 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9003 echo "local: *; };" >> $output_objdir/$libname.ver~
9004 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9013 netbsd
* | netbsdelf
*-gnu)
9014 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
9015 archive_cmds
='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9018 archive_cmds
='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9019 archive_expsym_cmds
='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9024 if $LD -v 2>&1 |
$GREP 'BFD 2\.8' > /dev
/null
; then
9028 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9029 *** create shared libraries on Solaris systems. Therefore, libtool
9030 *** is disabling shared libraries support. We urge you to upgrade GNU
9031 *** binutils to release 2.9.1 or newer. Another option is to modify
9032 *** your PATH or compiler configuration so that the native linker is
9033 *** used, and then restart.
9036 elif $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
9037 archive_cmds
='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9038 archive_expsym_cmds
='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9044 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
*)
9045 case `$LD -v 2>&1` in
9046 *\
[01].
* |
*\
2.
[0-9].
* |
*\
2.1[0-5].
*)
9050 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9051 *** reliably create shared libraries on SCO systems. Therefore, libtool
9052 *** is disabling shared libraries support. We urge you to upgrade GNU
9053 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9054 *** your PATH or compiler configuration so that the native linker is
9055 *** used, and then restart.
9060 # For security reasons, it is highly recommended that you always
9061 # use absolute paths for naming shared libraries, and exclude the
9062 # DT_RUNPATH tag from executables and libraries. But doing so
9063 # requires that you compile everything twice, which is a pain.
9064 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
9065 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
9066 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9067 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9076 archive_cmds
='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9079 hardcode_shlibpath_var
=no
9083 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
9084 archive_cmds
='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9085 archive_expsym_cmds
='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9092 if test "$ld_shlibs" = no
; then
9094 hardcode_libdir_flag_spec
=
9095 export_dynamic_flag_spec
=
9096 whole_archive_flag_spec
=
9099 # PORTME fill in a description of your system's linker (not GNU ld)
9102 allow_undefined_flag
=unsupported
9103 always_export_symbols
=yes
9104 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'
9105 # Note: this linker hardcodes the directories in LIBPATH if there
9106 # are no directories specified by -L.
9107 hardcode_minus_L
=yes
9108 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9109 # Neither direct hardcoding nor static linking is supported with a
9111 hardcode_direct
=unsupported
9116 if test "$host_cpu" = ia64
; then
9117 # On IA64, the linker does run time linking by default, so we don't
9118 # have to do anything special.
9119 aix_use_runtimelinking
=no
9120 exp_sym_flag
='-Bexport'
9123 # If we're using GNU nm, then we don't want the "-C" option.
9124 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9125 # Also, AIX nm treats weak defined symbols like other global
9126 # defined symbols, whereas GNU nm marks them as "W".
9127 if $NM -V 2>&1 |
$GREP 'GNU' > /dev
/null
; then
9128 export_symbols_cmds
='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
9130 export_symbols_cmds
='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
9132 aix_use_runtimelinking
=no
9134 # Test if we are trying to use run time linking or normal
9135 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9136 # need to do runtime linking.
9137 case $host_os in aix4.
[23]|aix4.
[23].
*|aix
[5-9]*)
9138 for ld_flag
in $LDFLAGS; do
9139 if (test $ld_flag = "-brtl" ||
test $ld_flag = "-Wl,-brtl"); then
9140 aix_use_runtimelinking
=yes
9147 exp_sym_flag
='-bexport'
9148 no_entry_flag
='-bnoentry'
9151 # When large executables or shared objects are built, AIX ld can
9152 # have problems creating the table of contents. If linking a library
9153 # or program results in "error TOC overflow" add -mminimal-toc to
9154 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9155 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9159 hardcode_direct_absolute
=yes
9160 hardcode_libdir_separator
=':'
9161 link_all_deplibs
=yes
9162 file_list_spec
='${wl}-f,'
9164 if test "$GCC" = yes; then
9165 case $host_os in aix4.
[012]|aix4.
[012].
*)
9166 # We only want to do this on AIX 4.2 and lower, the check
9167 # below for broken collect2 doesn't work under 4.3+
9168 collect2name
=`${CC} -print-prog-name=collect2`
9169 if test -f "$collect2name" &&
9170 strings "$collect2name" |
$GREP resolve_lib_name
>/dev
/null
9172 # We have reworked collect2
9175 # We have old collect2
9176 hardcode_direct
=unsupported
9177 # It fails to find uninstalled libraries when the uninstalled
9178 # path is not listed in the libpath. Setting hardcode_minus_L
9179 # to unsupported forces relinking
9180 hardcode_minus_L
=yes
9181 hardcode_libdir_flag_spec
='-L$libdir'
9182 hardcode_libdir_separator
=
9186 shared_flag
='-shared'
9187 if test "$aix_use_runtimelinking" = yes; then
9188 shared_flag
="$shared_flag "'${wl}-G'
9193 if test "$host_cpu" = ia64
; then
9194 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9195 # chokes on -Wl,-G. The following line is correct:
9198 if test "$aix_use_runtimelinking" = yes; then
9199 shared_flag
='${wl}-G'
9201 shared_flag
='${wl}-bM:SRE'
9206 export_dynamic_flag_spec
='${wl}-bexpall'
9207 # It seems that -bexpall does not export symbols beginning with
9208 # underscore (_), so it is better to generate a list of symbols to export.
9209 always_export_symbols
=yes
9210 if test "$aix_use_runtimelinking" = yes; then
9211 # Warning - without using the other runtime loading flags (-brtl),
9212 # -berok will link without error, but may produce a broken library.
9213 allow_undefined_flag
='-berok'
9214 # Determine the default libpath from the value encoded in an
9216 if test "${lt_cv_aix_libpath+set}" = set; then
9217 aix_libpath
=$lt_cv_aix_libpath
9219 if ${lt_cv_aix_libpath_+:} false
; then :
9220 $as_echo_n "(cached) " >&6
9222 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9223 /* end confdefs.h. */
9233 if ac_fn_c_try_link
"$LINENO"; then :
9235 lt_aix_libpath_sed
='
9236 /Import File Strings/,/^$/ {
9238 s/^0 *\([^ ]*\) *$/\1/
9242 lt_cv_aix_libpath_
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9243 # Check for a 64-bit object if we didn't find anything.
9244 if test -z "$lt_cv_aix_libpath_"; then
9245 lt_cv_aix_libpath_
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9248 rm -f core conftest.err conftest.
$ac_objext \
9249 conftest
$ac_exeext conftest.
$ac_ext
9250 if test -z "$lt_cv_aix_libpath_"; then
9251 lt_cv_aix_libpath_
="/usr/lib:/lib"
9256 aix_libpath
=$lt_cv_aix_libpath_
9259 hardcode_libdir_flag_spec
='${wl}-blibpath:$libdir:'"$aix_libpath"
9260 archive_expsym_cmds
='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
9262 if test "$host_cpu" = ia64
; then
9263 hardcode_libdir_flag_spec
='${wl}-R $libdir:/usr/lib:/lib'
9264 allow_undefined_flag
="-z nodefs"
9265 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"
9267 # Determine the default libpath from the value encoded in an
9269 if test "${lt_cv_aix_libpath+set}" = set; then
9270 aix_libpath
=$lt_cv_aix_libpath
9272 if ${lt_cv_aix_libpath_+:} false
; then :
9273 $as_echo_n "(cached) " >&6
9275 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9276 /* end confdefs.h. */
9286 if ac_fn_c_try_link
"$LINENO"; then :
9288 lt_aix_libpath_sed
='
9289 /Import File Strings/,/^$/ {
9291 s/^0 *\([^ ]*\) *$/\1/
9295 lt_cv_aix_libpath_
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9296 # Check for a 64-bit object if we didn't find anything.
9297 if test -z "$lt_cv_aix_libpath_"; then
9298 lt_cv_aix_libpath_
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9301 rm -f core conftest.err conftest.
$ac_objext \
9302 conftest
$ac_exeext conftest.
$ac_ext
9303 if test -z "$lt_cv_aix_libpath_"; then
9304 lt_cv_aix_libpath_
="/usr/lib:/lib"
9309 aix_libpath
=$lt_cv_aix_libpath_
9312 hardcode_libdir_flag_spec
='${wl}-blibpath:$libdir:'"$aix_libpath"
9313 # Warning - without using the other run time loading flags,
9314 # -berok will link without error, but may produce a broken library.
9315 no_undefined_flag
=' ${wl}-bernotok'
9316 allow_undefined_flag
=' ${wl}-berok'
9317 if test "$with_gnu_ld" = yes; then
9318 # We only use this code for GNU lds that support --whole-archive.
9319 whole_archive_flag_spec
='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9321 # Exported symbols can be pulled into shared objects from archives
9322 whole_archive_flag_spec
='$convenience'
9324 archive_cmds_need_lc
=yes
9325 # This is similar to how AIX traditionally builds its shared libraries.
9326 archive_expsym_cmds
="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
9334 # see comment about AmigaOS4 .so support
9335 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9336 archive_expsym_cmds
=''
9339 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)'
9340 hardcode_libdir_flag_spec
='-L$libdir'
9341 hardcode_minus_L
=yes
9347 export_dynamic_flag_spec
=-rdynamic
9350 cygwin
* | mingw
* | pw32
* | cegcc
*)
9351 # When not using gcc, we currently assume that we are using
9352 # Microsoft Visual C++.
9353 # hardcode_libdir_flag_spec is actually meaningless, as there is
9354 # no search path for DLLs.
9355 case $cc_basename in
9358 hardcode_libdir_flag_spec
=' '
9359 allow_undefined_flag
=unsupported
9360 always_export_symbols
=yes
9362 # Tell ltmain to make .lib files, not .a files.
9364 # Tell ltmain to make .dll files, not .so files.
9366 # FIXME: Setting linknames here is a bad hack.
9367 archive_cmds
='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
9368 archive_expsym_cmds
='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9369 sed -n -e 's
/\\\\\\\
(.
*\\\\\\\
)/-link\\\
-EXPORT:\\\\\\\
1/' -e '1\\\
!p
' < $export_symbols > $output_objdir/$soname.exp;
9371 sed -e 's
/\\\\\\\
(.
*\\\\\\\
)/-link\\\
-EXPORT:\\\\\\\
1/' < $export_symbols > $output_objdir/$soname.exp;
9373 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9375 # The linker will not automatically build a static lib if we build a DLL.
9376 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9377 enable_shared_with_static_runtimes
=yes
9378 exclude_expsyms
='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9379 export_symbols_cmds
='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9381 old_postinstall_cmds
='chmod 644 $oldlib'
9382 postlink_cmds
='lt_outputfile="@OUTPUT@"~
9383 lt_tool_outputfile="@TOOL_OUTPUT@"~
9384 case $lt_outputfile in
9387 lt_outputfile="$lt_outputfile.exe"
9388 lt_tool_outputfile="$lt_tool_outputfile.exe"
9391 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
9392 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9393 $RM "$lt_outputfile.manifest";
9397 # Assume MSVC wrapper
9398 hardcode_libdir_flag_spec
=' '
9399 allow_undefined_flag
=unsupported
9400 # Tell ltmain to make .lib files, not .a files.
9402 # Tell ltmain to make .dll files, not .so files.
9404 # FIXME: Setting linknames here is a bad hack.
9405 archive_cmds
='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9406 # The linker will automatically build a .lib file if we build a DLL.
9407 old_archive_from_new_cmds
='true'
9408 # FIXME: Should let the user specify the lib program.
9409 old_archive_cmds
='lib -OUT:$oldlib$oldobjs$old_deplibs'
9410 enable_shared_with_static_runtimes
=yes
9415 darwin
* | rhapsody
*)
9418 archive_cmds_need_lc
=no
9420 hardcode_automatic
=yes
9421 hardcode_shlibpath_var
=unsupported
9422 if test "$lt_cv_ld_force_load" = "yes"; then
9423 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\"`'
9426 whole_archive_flag_spec
=''
9428 link_all_deplibs
=yes
9429 allow_undefined_flag
="$_lt_dar_allow_undefined"
9430 case $cc_basename in
9431 ifort
*) _lt_dar_can_shared
=yes ;;
9432 *) _lt_dar_can_shared
=$GCC ;;
9434 if test "$_lt_dar_can_shared" = "yes"; then
9435 output_verbose_link_cmd
=func_echo_all
9436 archive_cmds
="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9437 module_cmds
="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9438 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}"
9439 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}"
9448 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9449 hardcode_libdir_flag_spec
='-L$libdir'
9450 hardcode_shlibpath_var
=no
9453 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9454 # support. Future versions do this automatically, but an explicit c++rt0.o
9455 # does not break anything, and helps significantly (at the cost of a little
9458 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9459 hardcode_libdir_flag_spec
='-R$libdir'
9461 hardcode_shlibpath_var
=no
9464 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9466 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9468 hardcode_minus_L
=yes
9469 hardcode_shlibpath_var
=no
9472 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9473 freebsd
* | dragonfly
*)
9474 archive_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9475 hardcode_libdir_flag_spec
='-R$libdir'
9477 hardcode_shlibpath_var
=no
9481 if test "$GCC" = yes; then
9482 archive_cmds
='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
9484 archive_cmds
='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
9486 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
9487 hardcode_libdir_separator
=:
9490 # hardcode_minus_L: Not really in the search PATH,
9491 # but as the default location of the library.
9492 hardcode_minus_L
=yes
9493 export_dynamic_flag_spec
='${wl}-E'
9497 if test "$GCC" = yes && test "$with_gnu_ld" = no
; then
9498 archive_cmds
='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9500 archive_cmds
='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9502 if test "$with_gnu_ld" = no
; then
9503 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
9504 hardcode_libdir_separator
=:
9506 hardcode_direct_absolute
=yes
9507 export_dynamic_flag_spec
='${wl}-E'
9508 # hardcode_minus_L: Not really in the search PATH,
9509 # but as the default location of the library.
9510 hardcode_minus_L
=yes
9515 if test "$GCC" = yes && test "$with_gnu_ld" = no
; then
9518 archive_cmds
='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9521 archive_cmds
='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9524 archive_cmds
='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9530 archive_cmds
='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9533 archive_cmds
='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9537 # Older versions of the 11.00 compiler do not understand -b yet
9538 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9540 $as_echo_n "checking if $CC understands -b... " >&6; }
9541 if ${lt_cv_prog_compiler__b+:} false
; then :
9542 $as_echo_n "(cached) " >&6
9544 lt_cv_prog_compiler__b
=no
9545 save_LDFLAGS
="$LDFLAGS"
9546 LDFLAGS
="$LDFLAGS -b"
9547 echo "$lt_simple_link_test_code" > conftest.
$ac_ext
9548 if (eval $ac_link 2>conftest.err
) && test -s conftest
$ac_exeext; then
9549 # The linker can only warn and ignore the option if not recognized
9550 # So say no if there are warnings
9551 if test -s conftest.err
; then
9552 # Append any errors to the config.log.
9553 cat conftest.err
1>&5
9554 $ECHO "$_lt_linker_boilerplate" |
$SED '/^$/d' > conftest.exp
9555 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
9556 if diff conftest.exp conftest.er2
>/dev
/null
; then
9557 lt_cv_prog_compiler__b
=yes
9560 lt_cv_prog_compiler__b
=yes
9564 LDFLAGS
="$save_LDFLAGS"
9567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9568 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9570 if test x
"$lt_cv_prog_compiler__b" = xyes
; then
9571 archive_cmds
='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9573 archive_cmds
='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9579 if test "$with_gnu_ld" = no
; then
9580 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
9581 hardcode_libdir_separator
=:
9586 hardcode_shlibpath_var
=no
9590 hardcode_direct_absolute
=yes
9591 export_dynamic_flag_spec
='${wl}-E'
9593 # hardcode_minus_L: Not really in the search PATH,
9594 # but as the default location of the library.
9595 hardcode_minus_L
=yes
9601 irix5
* | irix6
* | nonstopux
*)
9602 if test "$GCC" = yes; then
9603 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'
9604 # Try to use the -exported_symbol ld option, if it does not
9605 # work, assume that -exports_file does not work either and
9606 # implicitly export all symbols.
9607 # This should be the same for all languages, so no per-tag cache variable.
9608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
9609 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
9610 if ${lt_cv_irix_exported_symbol+:} false
; then :
9611 $as_echo_n "(cached) " >&6
9613 save_LDFLAGS
="$LDFLAGS"
9614 LDFLAGS
="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9615 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9616 /* end confdefs.h. */
9617 int foo (void) { return 0; }
9619 if ac_fn_c_try_link
"$LINENO"; then :
9620 lt_cv_irix_exported_symbol
=yes
9622 lt_cv_irix_exported_symbol
=no
9624 rm -f core conftest.err conftest.
$ac_objext \
9625 conftest
$ac_exeext conftest.
$ac_ext
9626 LDFLAGS
="$save_LDFLAGS"
9628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
9629 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
9630 if test "$lt_cv_irix_exported_symbol" = yes; then
9631 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'
9634 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'
9635 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'
9637 archive_cmds_need_lc
='no'
9638 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
9639 hardcode_libdir_separator
=:
9641 link_all_deplibs
=yes
9644 netbsd
* | netbsdelf
*-gnu)
9645 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
9646 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9648 archive_cmds
='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9650 hardcode_libdir_flag_spec
='-R$libdir'
9652 hardcode_shlibpath_var
=no
9656 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9658 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
9659 hardcode_libdir_separator
=:
9660 hardcode_shlibpath_var
=no
9667 if test -f /usr
/libexec
/ld.so
; then
9669 hardcode_shlibpath_var
=no
9670 hardcode_direct_absolute
=yes
9671 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9672 archive_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9673 archive_expsym_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9674 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
9675 export_dynamic_flag_spec
='${wl}-E'
9678 openbsd
[01].
* | openbsd2.
[0-7] | openbsd2.
[0-7].
*)
9679 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9680 hardcode_libdir_flag_spec
='-R$libdir'
9683 archive_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9684 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
9694 hardcode_libdir_flag_spec
='-L$libdir'
9695 hardcode_minus_L
=yes
9696 allow_undefined_flag
=unsupported
9697 archive_cmds
='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
9698 old_archive_from_new_cmds
='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9702 if test "$GCC" = yes; then
9703 allow_undefined_flag
=' ${wl}-expect_unresolved ${wl}\*'
9704 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'
9706 allow_undefined_flag
=' -expect_unresolved \*'
9707 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'
9709 archive_cmds_need_lc
='no'
9710 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
9711 hardcode_libdir_separator
=:
9714 osf4
* | osf5
*) # as osf3* with the addition of -msym flag
9715 if test "$GCC" = yes; then
9716 allow_undefined_flag
=' ${wl}-expect_unresolved ${wl}\*'
9717 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'
9718 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
9720 allow_undefined_flag
=' -expect_unresolved \*'
9721 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'
9722 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~
9723 $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'
9725 # Both c and cxx compiler support -rpath directly
9726 hardcode_libdir_flag_spec
='-rpath $libdir'
9728 archive_cmds_need_lc
='no'
9729 hardcode_libdir_separator
=:
9733 no_undefined_flag
=' -z defs'
9734 if test "$GCC" = yes; then
9736 archive_cmds
='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9737 archive_expsym_cmds
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9738 $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'
9740 case `$CC -V 2>&1` in
9743 archive_cmds
='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9744 archive_expsym_cmds
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9745 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9749 archive_cmds
='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9750 archive_expsym_cmds
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9751 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9755 hardcode_libdir_flag_spec
='-R$libdir'
9756 hardcode_shlibpath_var
=no
9758 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
9760 # The compiler driver will combine and reorder linker options,
9761 # but understands `-z linker_flag'. GCC discards it without `$wl',
9762 # but is careful enough not to reorder.
9763 # Supported since Solaris 2.6 (maybe 2.5.1?)
9764 if test "$GCC" = yes; then
9765 whole_archive_flag_spec
='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9767 whole_archive_flag_spec
='-z allextract$convenience -z defaultextract'
9771 link_all_deplibs
=yes
9775 if test "x$host_vendor" = xsequent
; then
9776 # Use $CC to link under sequent, because it throws in some extra .o
9777 # files that make .init and .fini sections work.
9778 archive_cmds
='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9780 archive_cmds
='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9782 hardcode_libdir_flag_spec
='-L$libdir'
9784 hardcode_minus_L
=yes
9785 hardcode_shlibpath_var
=no
9789 case $host_vendor in
9791 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9792 hardcode_direct
=yes # is this really true???
9795 ## LD is ld it makes a PLAMLIB
9796 ## CC just makes a GrossModule.
9797 archive_cmds
='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9798 reload_cmds
='$CC -r -o $output$reload_objs'
9802 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9803 hardcode_direct
=no
#Motorola manual says yes, but my tests say they lie
9806 runpath_var
='LD_RUN_PATH'
9807 hardcode_shlibpath_var
=no
9811 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9812 hardcode_shlibpath_var
=no
9813 export_dynamic_flag_spec
='-Bexport'
9817 if test -d /usr
/nec
; then
9818 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9819 hardcode_shlibpath_var
=no
9820 runpath_var
=LD_RUN_PATH
9821 hardcode_runpath_var
=yes
9826 sysv4
*uw2
* | sysv5OpenUNIX
* | sysv5UnixWare7.
[01].
[10]* | unixware7
* | sco3.2v5.0.
[024]*)
9827 no_undefined_flag
='${wl}-z,text'
9828 archive_cmds_need_lc
=no
9829 hardcode_shlibpath_var
=no
9830 runpath_var
='LD_RUN_PATH'
9832 if test "$GCC" = yes; then
9833 archive_cmds
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9834 archive_expsym_cmds
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9836 archive_cmds
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9837 archive_expsym_cmds
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9841 sysv5
* | sco3.2v5
* | sco5v6
*)
9842 # Note: We can NOT use -z defs as we might desire, because we do not
9843 # link with -lc, and that would cause any symbols used from libc to
9844 # always be unresolved, which means just about no library would
9845 # ever link correctly. If we're not using GNU ld we use -z text
9846 # though, which does catch some bad symbols but isn't as heavy-handed
9848 no_undefined_flag
='${wl}-z,text'
9849 allow_undefined_flag
='${wl}-z,nodefs'
9850 archive_cmds_need_lc
=no
9851 hardcode_shlibpath_var
=no
9852 hardcode_libdir_flag_spec
='${wl}-R,$libdir'
9853 hardcode_libdir_separator
=':'
9854 link_all_deplibs
=yes
9855 export_dynamic_flag_spec
='${wl}-Bexport'
9856 runpath_var
='LD_RUN_PATH'
9858 if test "$GCC" = yes; then
9859 archive_cmds
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9860 archive_expsym_cmds
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9862 archive_cmds
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9863 archive_expsym_cmds
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9868 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9869 hardcode_libdir_flag_spec
='-L$libdir'
9870 hardcode_shlibpath_var
=no
9878 if test x
$host_vendor = xsni
; then
9880 sysv4 | sysv4.2uw2
* | sysv4.3
* | sysv5
*)
9881 export_dynamic_flag_spec
='${wl}-Blargedynsym'
9887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9888 $as_echo "$ld_shlibs" >&6; }
9889 test "$ld_shlibs" = no
&& can_build_shared
=no
9891 with_gnu_ld
=$with_gnu_ld
9908 # Do we need to explicitly link libc?
9910 case "x$archive_cmds_need_lc" in
9912 # Assume -lc should be added
9913 archive_cmds_need_lc
=yes
9915 if test "$enable_shared" = yes && test "$GCC" = yes; then
9916 case $archive_cmds in
9918 # FIXME: we may have to deal with multi-command sequences.
9921 # Test whether the compiler implicitly links with -lc since on some
9922 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9923 # to ld, don't add -lc before -lgcc.
9924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9925 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9926 if ${lt_cv_archive_cmds_need_lc+:} false
; then :
9927 $as_echo_n "(cached) " >&6
9930 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
9932 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9933 (eval $ac_compile) 2>&5
9935 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9936 test $ac_status = 0; } 2>conftest.err
; then
9939 libobjs
=conftest.
$ac_objext
9941 wl
=$lt_prog_compiler_wl
9942 pic_flag
=$lt_prog_compiler_pic
9948 lt_save_allow_undefined_flag
=$allow_undefined_flag
9949 allow_undefined_flag
=
9950 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9951 (eval $archive_cmds 2\
>\
&1 \|
$GREP \" -lc \" \
>/dev
/null
2\
>\
&1) 2>&5
9953 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9954 test $ac_status = 0; }
9956 lt_cv_archive_cmds_need_lc
=no
9958 lt_cv_archive_cmds_need_lc
=yes
9960 allow_undefined_flag
=$lt_save_allow_undefined_flag
9962 cat conftest.err
1>&5
9967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9968 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
9969 archive_cmds_need_lc
=$lt_cv_archive_cmds_need_lc
10127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10128 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10130 if test "$GCC" = yes; then
10132 darwin
*) lt_awk_arg
="/^libraries:/,/LR/" ;;
10133 *) lt_awk_arg
="/^libraries:/" ;;
10136 mingw
* | cegcc
*) lt_sed_strip_eq
="s,=\([A-Za-z]:\),\1,g" ;;
10137 *) lt_sed_strip_eq
="s,=/,/,g" ;;
10139 lt_search_path_spec
=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10140 case $lt_search_path_spec in
10142 # if the path contains ";" then we assume it to be the separator
10143 # otherwise default to the standard path separator (i.e. ":") - it is
10144 # assumed that no part of a normal pathname contains ";" but that should
10145 # okay in the real world where ";" in dirpaths is itself problematic.
10146 lt_search_path_spec
=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10149 lt_search_path_spec
=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10152 # Ok, now we have the path, separated by spaces, we can step through it
10153 # and add multilib dir if necessary.
10154 lt_tmp_lt_search_path_spec
=
10155 lt_multi_os_dir
=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10156 for lt_sys_path
in $lt_search_path_spec; do
10157 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10158 lt_tmp_lt_search_path_spec
="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10160 test -d "$lt_sys_path" && \
10161 lt_tmp_lt_search_path_spec
="$lt_tmp_lt_search_path_spec $lt_sys_path"
10164 lt_search_path_spec
=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10165 BEGIN {RS=" "; FS="/|\n";} {
10168 for (lt_i = NF; lt_i > 0; lt_i--) {
10169 if ($lt_i != "" && $lt_i != ".") {
10170 if ($lt_i == "..") {
10173 if (lt_count == 0) {
10174 lt_foo="/" $lt_i lt_foo;
10181 if (lt_foo != "") { lt_freq[lt_foo]++; }
10182 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10184 # AWK program above erroneously prepends '/' to C:/dos/paths
10187 mingw
* | cegcc
*) lt_search_path_spec
=`$ECHO "$lt_search_path_spec" |\
10188 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10190 sys_lib_search_path_spec
=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10192 sys_lib_search_path_spec
="/lib /usr/lib /usr/local/lib"
10194 library_names_spec
=
10195 libname_spec
='lib$name'
10199 postuninstall_cmds
=
10203 shlibpath_overrides_runpath
=unknown
10205 dynamic_linker
="$host_os ld.so"
10206 sys_lib_dlsearch_path_spec
="/lib /usr/lib"
10207 need_lib_prefix
=unknown
10208 hardcode_into_libs
=no
10210 # when you set need_version to no, make sure it does not cause -set_version
10211 # flags to be left without arguments
10212 need_version
=unknown
10216 version_type
=linux
# correct to gnu/linux during the next big refactor
10217 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname.a'
10218 shlibpath_var
=LIBPATH
10220 # AIX 3 has no versioning support, so we append a major version to the name.
10221 soname_spec
='${libname}${release}${shared_ext}$major'
10225 version_type
=linux
# correct to gnu/linux during the next big refactor
10228 hardcode_into_libs
=yes
10229 if test "$host_cpu" = ia64
; then
10230 # AIX 5 supports IA64
10231 library_names_spec
='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10232 shlibpath_var
=LD_LIBRARY_PATH
10234 # With GCC up to 2.95.x, collect2 would create an import file
10235 # for dependence libraries. The import file would start with
10236 # the line `#! .'. This would cause the generated library to
10237 # depend on `.', always an invalid library. This was fixed in
10238 # development snapshots of GCC prior to 3.0.
10240 aix4 | aix4.
[01] | aix4.
[01].
*)
10241 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10243 echo '#endif'; } |
${CC} -E - |
$GREP yes > /dev
/null
; then
10246 can_build_shared
=no
10250 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10251 # soname into executable. Probably we can add versioning support to
10252 # collect2, so additional links can be useful in future.
10253 if test "$aix_use_runtimelinking" = yes; then
10254 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10255 # instead of lib<name>.a to let people know that these are not
10256 # typical AIX shared libraries.
10257 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10259 # We preserve .a as extension for shared libraries through AIX4.2
10260 # and later when we are not doing run time linking.
10261 library_names_spec
='${libname}${release}.a $libname.a'
10262 soname_spec
='${libname}${release}${shared_ext}$major'
10264 shlibpath_var
=LIBPATH
10271 # Since July 2007 AmigaOS4 officially supports .so libraries.
10272 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10273 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10276 library_names_spec
='$libname.ixlibrary $libname.a'
10277 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10278 finish_eval
='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $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'
10284 library_names_spec
='${libname}${shared_ext}'
10285 dynamic_linker
="$host_os ld.so"
10286 shlibpath_var
=LIBRARY_PATH
10290 version_type
=linux
# correct to gnu/linux during the next big refactor
10292 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10293 soname_spec
='${libname}${release}${shared_ext}$major'
10294 finish_cmds
='PATH="\$PATH:/sbin" ldconfig $libdir'
10295 shlibpath_var
=LD_LIBRARY_PATH
10296 sys_lib_search_path_spec
="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10297 sys_lib_dlsearch_path_spec
="/shlib /usr/lib /usr/local/lib"
10298 # the default ld.so.conf also contains /usr/contrib/lib and
10299 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10300 # libtool to hard-code these into programs
10303 cygwin
* | mingw
* | pw32
* | cegcc
*)
10304 version_type
=windows
10309 case $GCC,$cc_basename in
10312 library_names_spec
='$libname.dll.a'
10313 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10314 postinstall_cmds
='base_file=`basename \${file}`~
10315 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10316 dldir=$destdir/`dirname \$dlpath`~
10317 test -d \$dldir || mkdir -p \$dldir~
10318 $install_prog $dir/$dlname \$dldir/$dlname~
10319 chmod a+x \$dldir/$dlname~
10320 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10321 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10323 postuninstall_cmds
='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10324 dlpath=$dir/\$dldll~
10326 shlibpath_overrides_runpath
=yes
10330 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10331 soname_spec
='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10333 sys_lib_search_path_spec
="$sys_lib_search_path_spec /usr/lib/w32api"
10336 # MinGW DLLs use traditional 'lib' prefix
10337 soname_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10340 # pw32 DLLs use 'pw' prefix rather than 'lib'
10341 library_names_spec
='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10344 dynamic_linker
='Win32 ld.exe'
10349 libname_spec
='$name'
10350 soname_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10351 library_names_spec
='${libname}.dll.lib'
10355 sys_lib_search_path_spec
=
10358 for lt_path
in $LIB
10361 # Let DOS variable expansion print the short 8.3 style file name.
10362 lt_path
=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10363 sys_lib_search_path_spec
="$sys_lib_search_path_spec $lt_path"
10366 # Convert to MSYS style.
10367 sys_lib_search_path_spec
=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10370 # Convert to unix form, then to dos form, then back to unix form
10371 # but this time dos style (no spaces!) so that the unix form looks
10372 # like /cygdrive/c/PROGRA~1:/cygdr...
10373 sys_lib_search_path_spec
=`cygpath --path --unix "$LIB"`
10374 sys_lib_search_path_spec
=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10375 sys_lib_search_path_spec
=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10378 sys_lib_search_path_spec
="$LIB"
10379 if $ECHO "$sys_lib_search_path_spec" |
$GREP ';[c-zC-Z]:/' >/dev
/null
; then
10380 # It is most probably a Windows format PATH.
10381 sys_lib_search_path_spec
=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10383 sys_lib_search_path_spec
=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10385 # FIXME: find the short name or the path components, as spaces are
10386 # common. (e.g. "Program Files" -> "PROGRA~1")
10390 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10391 postinstall_cmds
='base_file=`basename \${file}`~
10392 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10393 dldir=$destdir/`dirname \$dlpath`~
10394 test -d \$dldir || mkdir -p \$dldir~
10395 $install_prog $dir/$dlname \$dldir/$dlname'
10396 postuninstall_cmds
='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10397 dlpath=$dir/\$dldll~
10399 shlibpath_overrides_runpath
=yes
10400 dynamic_linker
='Win32 link.exe'
10404 # Assume MSVC wrapper
10405 library_names_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10406 dynamic_linker
='Win32 ld.exe'
10409 # FIXME: first we should search . and the directory the executable is in
10413 darwin
* | rhapsody
*)
10414 dynamic_linker
="$host_os dyld"
10415 version_type
=darwin
10418 library_names_spec
='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10419 soname_spec
='${libname}${release}${major}$shared_ext'
10420 shlibpath_overrides_runpath
=yes
10421 shlibpath_var
=DYLD_LIBRARY_PATH
10422 shrext_cmds
='`test .$module = .yes && echo .so || echo .dylib`'
10424 sys_lib_search_path_spec
="$sys_lib_search_path_spec /usr/local/lib"
10425 sys_lib_dlsearch_path_spec
='/usr/local/lib /lib /usr/lib'
10429 version_type
=linux
# correct to gnu/linux during the next big refactor
10432 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10433 soname_spec
='${libname}${release}${shared_ext}$major'
10434 shlibpath_var
=LD_LIBRARY_PATH
10437 freebsd
* | dragonfly
*)
10438 # DragonFly does not have aout. When/if they implement a new
10439 # versioning mechanism, adjust this.
10440 if test -x /usr
/bin
/objformat
; then
10441 objformat
=`/usr/bin/objformat`
10444 freebsd
[23].
*) objformat
=aout
;;
10445 *) objformat
=elf
;;
10448 version_type
=freebsd-
$objformat
10449 case $version_type in
10451 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10456 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10460 shlibpath_var
=LD_LIBRARY_PATH
10463 shlibpath_overrides_runpath
=yes
10465 freebsd3.
[01]* | freebsdelf3.
[01]*)
10466 shlibpath_overrides_runpath
=yes
10467 hardcode_into_libs
=yes
10469 freebsd3.
[2-9]* | freebsdelf3.
[2-9]* | \
10470 freebsd4.
[0-5] | freebsdelf4.
[0-5] | freebsd4.1
.1 | freebsdelf4.1
.1)
10471 shlibpath_overrides_runpath
=no
10472 hardcode_into_libs
=yes
10474 *) # from 4.6 on, and DragonFly
10475 shlibpath_overrides_runpath
=yes
10476 hardcode_into_libs
=yes
10482 version_type
=linux
# correct to gnu/linux during the next big refactor
10485 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10486 soname_spec
='${libname}${release}${shared_ext}$major'
10487 shlibpath_var
=LD_LIBRARY_PATH
10488 shlibpath_overrides_runpath
=no
10489 hardcode_into_libs
=yes
10493 version_type
=linux
# correct to gnu/linux during the next big refactor
10496 dynamic_linker
="$host_os runtime_loader"
10497 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10498 soname_spec
='${libname}${release}${shared_ext}$major'
10499 shlibpath_var
=LIBRARY_PATH
10500 shlibpath_overrides_runpath
=yes
10501 sys_lib_dlsearch_path_spec
='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10502 hardcode_into_libs
=yes
10505 hpux9
* | hpux10
* | hpux11
*)
10506 # Give a soname corresponding to the major version so that dld.sl refuses to
10507 # link against other versions.
10514 hardcode_into_libs
=yes
10515 dynamic_linker
="$host_os dld.so"
10516 shlibpath_var
=LD_LIBRARY_PATH
10517 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
10518 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10519 soname_spec
='${libname}${release}${shared_ext}$major'
10520 if test "X$HPUX_IA64_MODE" = X32
; then
10521 sys_lib_search_path_spec
="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10523 sys_lib_search_path_spec
="/usr/lib/hpux64 /usr/local/lib/hpux64"
10525 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
10529 hardcode_into_libs
=yes
10530 dynamic_linker
="$host_os dld.sl"
10531 shlibpath_var
=LD_LIBRARY_PATH
# How should we handle SHLIB_PATH
10532 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
10533 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10534 soname_spec
='${libname}${release}${shared_ext}$major'
10535 sys_lib_search_path_spec
="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10536 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
10540 dynamic_linker
="$host_os dld.sl"
10541 shlibpath_var
=SHLIB_PATH
10542 shlibpath_overrides_runpath
=no
# +s is required to enable SHLIB_PATH
10543 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10544 soname_spec
='${libname}${release}${shared_ext}$major'
10547 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10548 postinstall_cmds
='chmod 555 $lib'
10549 # or fails outright, so override atomically:
10550 install_override_mode
=555
10554 version_type
=linux
# correct to gnu/linux during the next big refactor
10557 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10558 soname_spec
='${libname}${release}${shared_ext}$major'
10559 dynamic_linker
='Interix 3.x ld.so.1 (PE, like ELF)'
10560 shlibpath_var
=LD_LIBRARY_PATH
10561 shlibpath_overrides_runpath
=no
10562 hardcode_into_libs
=yes
10565 irix5
* | irix6
* | nonstopux
*)
10567 nonstopux
*) version_type
=nonstopux
;;
10569 if test "$lt_cv_prog_gnu_ld" = yes; then
10570 version_type
=linux
# correct to gnu/linux during the next big refactor
10577 soname_spec
='${libname}${release}${shared_ext}$major'
10578 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10580 irix5
* | nonstopux
*)
10581 libsuff
= shlibsuff
=
10584 case $LD in # libtool.m4 will add one of these switches to LD
10585 *-32|
*"-32 "|
*-melf32bsmip|
*"-melf32bsmip ")
10586 libsuff
= shlibsuff
= libmagic
=32-bit;;
10587 *-n32|
*"-n32 "|
*-melf32bmipn32|
*"-melf32bmipn32 ")
10588 libsuff
=32 shlibsuff
=N32 libmagic
=N32
;;
10589 *-64|
*"-64 "|
*-melf64bmip|
*"-melf64bmip ")
10590 libsuff
=64 shlibsuff
=64 libmagic
=64-bit;;
10591 *) libsuff
= shlibsuff
= libmagic
=never-match
;;
10595 shlibpath_var
=LD_LIBRARY
${shlibsuff}_PATH
10596 shlibpath_overrides_runpath
=no
10597 sys_lib_search_path_spec
="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10598 sys_lib_dlsearch_path_spec
="/usr/lib${libsuff} /lib${libsuff}"
10599 hardcode_into_libs
=yes
10602 # No shared lib support for Linux oldld, aout, or coff.
10603 linux
*oldld
* | linux
*aout
* | linux
*coff
*)
10607 # This must be glibc/ELF.
10608 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
10609 version_type
=linux
# correct to gnu/linux during the next big refactor
10612 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10613 soname_spec
='${libname}${release}${shared_ext}$major'
10614 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10615 shlibpath_var
=LD_LIBRARY_PATH
10616 shlibpath_overrides_runpath
=no
10618 # Some binutils ld are patched to set DT_RUNPATH
10619 if ${lt_cv_shlibpath_overrides_runpath+:} false
; then :
10620 $as_echo_n "(cached) " >&6
10622 lt_cv_shlibpath_overrides_runpath
=no
10623 save_LDFLAGS
=$LDFLAGS
10624 save_libdir
=$libdir
10625 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10626 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10627 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10628 /* end confdefs.h. */
10638 if ac_fn_c_try_link
"$LINENO"; then :
10639 if ($OBJDUMP -p conftest
$ac_exeext) 2>/dev
/null |
grep "RUNPATH.*$libdir" >/dev
/null
; then :
10640 lt_cv_shlibpath_overrides_runpath
=yes
10643 rm -f core conftest.err conftest.
$ac_objext \
10644 conftest
$ac_exeext conftest.
$ac_ext
10645 LDFLAGS
=$save_LDFLAGS
10646 libdir
=$save_libdir
10650 shlibpath_overrides_runpath
=$lt_cv_shlibpath_overrides_runpath
10652 # This implies no fast_install, which is unacceptable.
10653 # Some rework will be needed to allow for fast_install
10654 # before this can be enabled.
10655 hardcode_into_libs
=yes
10657 # Append ld.so.conf contents to the search path
10658 if test -f /etc
/ld.so.conf
; then
10659 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' ' '`
10660 sys_lib_dlsearch_path_spec
="/lib /usr/lib $lt_ld_extra"
10663 # We used to test for /lib/ld.so.1 and disable shared libraries on
10664 # powerpc, because MkLinux only supported shared libraries with the
10665 # GNU dynamic linker. Since this was broken with cross compilers,
10666 # most powerpc-linux boxes support dynamic linking these days and
10667 # people can always --disable-shared, the test was removed, and we
10668 # assume the GNU/Linux dynamic linker is in use.
10669 dynamic_linker
='GNU/Linux ld.so'
10676 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10677 soname_spec
='${libname}${release}${shared_ext}$major'
10678 shlibpath_var
=LD_LIBRARY_PATH
10679 shlibpath_overrides_runpath
=no
10680 hardcode_into_libs
=yes
10681 dynamic_linker
='NetBSD ld.elf_so'
10688 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
10689 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10690 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10691 dynamic_linker
='NetBSD (a.out) ld.so'
10693 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10694 soname_spec
='${libname}${release}${shared_ext}$major'
10695 dynamic_linker
='NetBSD ld.elf_so'
10697 shlibpath_var
=LD_LIBRARY_PATH
10698 shlibpath_overrides_runpath
=yes
10699 hardcode_into_libs
=yes
10703 version_type
=linux
# correct to gnu/linux during the next big refactor
10704 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10705 shlibpath_var
=LD_LIBRARY_PATH
10706 shlibpath_overrides_runpath
=yes
10713 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10714 soname_spec
='${libname}${release}${shared_ext}$major'
10715 shlibpath_var
=LD_LIBRARY_PATH
10716 shlibpath_overrides_runpath
=no
10717 hardcode_into_libs
=yes
10718 dynamic_linker
='ldqnx.so'
10723 sys_lib_dlsearch_path_spec
="/usr/lib"
10725 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10727 openbsd3.3 | openbsd3.3.
*) need_version
=yes ;;
10728 *) need_version
=no
;;
10730 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10731 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10732 shlibpath_var
=LD_LIBRARY_PATH
10733 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10735 openbsd2.
[89] | openbsd2.
[89].
*)
10736 shlibpath_overrides_runpath
=no
10739 shlibpath_overrides_runpath
=yes
10743 shlibpath_overrides_runpath
=yes
10748 libname_spec
='$name'
10751 library_names_spec
='$libname${shared_ext} $libname.a'
10752 dynamic_linker
='OS/2 ld.exe'
10753 shlibpath_var
=LIBPATH
10756 osf3
* | osf4
* | osf5
*)
10760 soname_spec
='${libname}${release}${shared_ext}$major'
10761 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10762 shlibpath_var
=LD_LIBRARY_PATH
10763 sys_lib_search_path_spec
="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10764 sys_lib_dlsearch_path_spec
="$sys_lib_search_path_spec"
10772 version_type
=linux
# correct to gnu/linux during the next big refactor
10775 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10776 soname_spec
='${libname}${release}${shared_ext}$major'
10777 shlibpath_var
=LD_LIBRARY_PATH
10778 shlibpath_overrides_runpath
=yes
10779 hardcode_into_libs
=yes
10780 # ldd complains unless libraries are executable
10781 postinstall_cmds
='chmod +x $lib'
10786 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10787 finish_cmds
='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10788 shlibpath_var
=LD_LIBRARY_PATH
10789 shlibpath_overrides_runpath
=yes
10790 if test "$with_gnu_ld" = yes; then
10797 version_type
=linux
# correct to gnu/linux during the next big refactor
10798 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10799 soname_spec
='${libname}${release}${shared_ext}$major'
10800 shlibpath_var
=LD_LIBRARY_PATH
10801 case $host_vendor in
10803 shlibpath_overrides_runpath
=no
10805 runpath_var
=LD_RUN_PATH
10813 shlibpath_overrides_runpath
=no
10814 sys_lib_search_path_spec
='/lib /usr/lib /usr/ccs/lib'
10820 if test -d /usr
/nec
;then
10821 version_type
=linux
# correct to gnu/linux during the next big refactor
10822 library_names_spec
='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10823 soname_spec
='$libname${shared_ext}.$major'
10824 shlibpath_var
=LD_LIBRARY_PATH
10828 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
* | sysv4
*uw2
*)
10829 version_type
=freebsd-elf
10832 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10833 soname_spec
='${libname}${release}${shared_ext}$major'
10834 shlibpath_var
=LD_LIBRARY_PATH
10835 shlibpath_overrides_runpath
=yes
10836 hardcode_into_libs
=yes
10837 if test "$with_gnu_ld" = yes; then
10838 sys_lib_search_path_spec
='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10840 sys_lib_search_path_spec
='/usr/ccs/lib /usr/lib'
10843 sys_lib_search_path_spec
="$sys_lib_search_path_spec /lib"
10847 sys_lib_dlsearch_path_spec
='/usr/lib'
10851 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10852 version_type
=linux
# correct to gnu/linux during the next big refactor
10855 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10856 shlibpath_var
=LD_LIBRARY_PATH
10857 shlibpath_overrides_runpath
=no
10858 hardcode_into_libs
=yes
10862 version_type
=linux
# correct to gnu/linux during the next big refactor
10863 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10864 soname_spec
='${libname}${release}${shared_ext}$major'
10865 shlibpath_var
=LD_LIBRARY_PATH
10872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10873 $as_echo "$dynamic_linker" >&6; }
10874 test "$dynamic_linker" = no
&& can_build_shared
=no
10876 variables_saved_for_relink
="PATH $shlibpath_var $runpath_var"
10877 if test "$GCC" = yes; then
10878 variables_saved_for_relink
="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10881 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10882 sys_lib_search_path_spec
="$lt_cv_sys_lib_search_path_spec"
10884 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10885 sys_lib_dlsearch_path_spec
="$lt_cv_sys_lib_dlsearch_path_spec"
10979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10980 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10982 if test -n "$hardcode_libdir_flag_spec" ||
10983 test -n "$runpath_var" ||
10984 test "X$hardcode_automatic" = "Xyes" ; then
10986 # We can hardcode non-existent directories.
10987 if test "$hardcode_direct" != no
&&
10988 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10989 # have to relink, otherwise we might link with an installed library
10990 # when we should be linking with a yet-to-be-installed one
10991 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10992 test "$hardcode_minus_L" != no
; then
10993 # Linking always hardcodes the temporary library directory.
10994 hardcode_action
=relink
10996 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10997 hardcode_action
=immediate
11000 # We cannot hardcode anything, or else we can only hardcode existing
11002 hardcode_action
=unsupported
11004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11005 $as_echo "$hardcode_action" >&6; }
11007 if test "$hardcode_action" = relink ||
11008 test "$inherit_rpath" = yes; then
11009 # Fast installation is not supported
11010 enable_fast_install
=no
11011 elif test "$shlibpath_overrides_runpath" = yes ||
11012 test "$enable_shared" = no
; then
11013 # Fast installation is not necessary
11014 enable_fast_install
=needless
11022 if test "x$enable_dlopen" != xyes
; then
11023 enable_dlopen
=unknown
11024 enable_dlopen_self
=unknown
11025 enable_dlopen_self_static
=unknown
11032 lt_cv_dlopen
="load_add_on"
11034 lt_cv_dlopen_self
=yes
11037 mingw
* | pw32
* | cegcc
*)
11038 lt_cv_dlopen
="LoadLibrary"
11043 lt_cv_dlopen
="dlopen"
11048 # if libdl is installed we need to link against it
11049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11050 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11051 if ${ac_cv_lib_dl_dlopen+:} false
; then :
11052 $as_echo_n "(cached) " >&6
11054 ac_check_lib_save_LIBS
=$LIBS
11056 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11057 /* end confdefs.h. */
11059 /* Override any GCC internal prototype to avoid an error.
11060 Use char because int might match the return type of a GCC
11061 builtin and then its argument prototype would still apply. */
11074 if ac_fn_c_try_link
"$LINENO"; then :
11075 ac_cv_lib_dl_dlopen
=yes
11077 ac_cv_lib_dl_dlopen
=no
11079 rm -f core conftest.err conftest.
$ac_objext \
11080 conftest
$ac_exeext conftest.
$ac_ext
11081 LIBS
=$ac_check_lib_save_LIBS
11083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11084 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11085 if test "x$ac_cv_lib_dl_dlopen" = xyes
; then :
11086 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-ldl"
11089 lt_cv_dlopen
="dyld"
11091 lt_cv_dlopen_self
=yes
11098 ac_fn_c_check_func
"$LINENO" "shl_load" "ac_cv_func_shl_load"
11099 if test "x$ac_cv_func_shl_load" = xyes
; then :
11100 lt_cv_dlopen
="shl_load"
11102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11103 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11104 if ${ac_cv_lib_dld_shl_load+:} false
; then :
11105 $as_echo_n "(cached) " >&6
11107 ac_check_lib_save_LIBS
=$LIBS
11109 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11110 /* end confdefs.h. */
11112 /* Override any GCC internal prototype to avoid an error.
11113 Use char because int might match the return type of a GCC
11114 builtin and then its argument prototype would still apply. */
11122 return shl_load ();
11127 if ac_fn_c_try_link
"$LINENO"; then :
11128 ac_cv_lib_dld_shl_load
=yes
11130 ac_cv_lib_dld_shl_load
=no
11132 rm -f core conftest.err conftest.
$ac_objext \
11133 conftest
$ac_exeext conftest.
$ac_ext
11134 LIBS
=$ac_check_lib_save_LIBS
11136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11137 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11138 if test "x$ac_cv_lib_dld_shl_load" = xyes
; then :
11139 lt_cv_dlopen
="shl_load" lt_cv_dlopen_libs
="-ldld"
11141 ac_fn_c_check_func
"$LINENO" "dlopen" "ac_cv_func_dlopen"
11142 if test "x$ac_cv_func_dlopen" = xyes
; then :
11143 lt_cv_dlopen
="dlopen"
11145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11146 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11147 if ${ac_cv_lib_dl_dlopen+:} false
; then :
11148 $as_echo_n "(cached) " >&6
11150 ac_check_lib_save_LIBS
=$LIBS
11152 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11153 /* end confdefs.h. */
11155 /* Override any GCC internal prototype to avoid an error.
11156 Use char because int might match the return type of a GCC
11157 builtin and then its argument prototype would still apply. */
11170 if ac_fn_c_try_link
"$LINENO"; then :
11171 ac_cv_lib_dl_dlopen
=yes
11173 ac_cv_lib_dl_dlopen
=no
11175 rm -f core conftest.err conftest.
$ac_objext \
11176 conftest
$ac_exeext conftest.
$ac_ext
11177 LIBS
=$ac_check_lib_save_LIBS
11179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11180 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11181 if test "x$ac_cv_lib_dl_dlopen" = xyes
; then :
11182 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-ldl"
11184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11185 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11186 if ${ac_cv_lib_svld_dlopen+:} false
; then :
11187 $as_echo_n "(cached) " >&6
11189 ac_check_lib_save_LIBS
=$LIBS
11190 LIBS
="-lsvld $LIBS"
11191 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11192 /* end confdefs.h. */
11194 /* Override any GCC internal prototype to avoid an error.
11195 Use char because int might match the return type of a GCC
11196 builtin and then its argument prototype would still apply. */
11209 if ac_fn_c_try_link
"$LINENO"; then :
11210 ac_cv_lib_svld_dlopen
=yes
11212 ac_cv_lib_svld_dlopen
=no
11214 rm -f core conftest.err conftest.
$ac_objext \
11215 conftest
$ac_exeext conftest.
$ac_ext
11216 LIBS
=$ac_check_lib_save_LIBS
11218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11219 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11220 if test "x$ac_cv_lib_svld_dlopen" = xyes
; then :
11221 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-lsvld"
11223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11224 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11225 if ${ac_cv_lib_dld_dld_link+:} false
; then :
11226 $as_echo_n "(cached) " >&6
11228 ac_check_lib_save_LIBS
=$LIBS
11230 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11231 /* end confdefs.h. */
11233 /* Override any GCC internal prototype to avoid an error.
11234 Use char because int might match the return type of a GCC
11235 builtin and then its argument prototype would still apply. */
11243 return dld_link ();
11248 if ac_fn_c_try_link
"$LINENO"; then :
11249 ac_cv_lib_dld_dld_link
=yes
11251 ac_cv_lib_dld_dld_link
=no
11253 rm -f core conftest.err conftest.
$ac_objext \
11254 conftest
$ac_exeext conftest.
$ac_ext
11255 LIBS
=$ac_check_lib_save_LIBS
11257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11258 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11259 if test "x$ac_cv_lib_dld_dld_link" = xyes
; then :
11260 lt_cv_dlopen
="dld_link" lt_cv_dlopen_libs
="-ldld"
11281 if test "x$lt_cv_dlopen" != xno
; then
11287 case $lt_cv_dlopen in
11289 save_CPPFLAGS
="$CPPFLAGS"
11290 test "x$ac_cv_header_dlfcn_h" = xyes
&& CPPFLAGS
="$CPPFLAGS -DHAVE_DLFCN_H"
11292 save_LDFLAGS
="$LDFLAGS"
11293 wl
=$lt_prog_compiler_wl eval LDFLAGS
=\"\
$LDFLAGS $export_dynamic_flag_spec\"
11296 LIBS
="$lt_cv_dlopen_libs $LIBS"
11298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11299 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11300 if ${lt_cv_dlopen_self+:} false
; then :
11301 $as_echo_n "(cached) " >&6
11303 if test "$cross_compiling" = yes; then :
11304 lt_cv_dlopen_self
=cross
11306 lt_dlunknown
=0; lt_dlno_uscore
=1; lt_dlneed_uscore
=2
11307 lt_status
=$lt_dlunknown
11308 cat > conftest.
$ac_ext <<_LT_EOF
11309 #line $LINENO "configure"
11310 #include "confdefs.h"
11319 # define LT_DLGLOBAL RTLD_GLOBAL
11322 # define LT_DLGLOBAL DL_GLOBAL
11324 # define LT_DLGLOBAL 0
11328 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11329 find out it does not work in some platform. */
11330 #ifndef LT_DLLAZY_OR_NOW
11332 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11335 # define LT_DLLAZY_OR_NOW DL_LAZY
11338 # define LT_DLLAZY_OR_NOW RTLD_NOW
11341 # define LT_DLLAZY_OR_NOW DL_NOW
11343 # define LT_DLLAZY_OR_NOW 0
11350 /* When -fvisbility=hidden is used, assume the code has been annotated
11351 correspondingly for the symbols needed. */
11352 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11353 int fnord () __attribute__((visibility("default")));
11356 int fnord () { return 42; }
11359 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11360 int status = $lt_dlunknown;
11364 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11367 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11368 else puts (dlerror ());
11370 /* dlclose (self); */
11378 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11379 (eval $ac_link) 2>&5
11381 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11382 test $ac_status = 0; } && test -s conftest
${ac_exeext} 2>/dev
/null
; then
11383 (.
/conftest
; exit; ) >&5 2>/dev
/null
11385 case x
$lt_status in
11386 x
$lt_dlno_uscore) lt_cv_dlopen_self
=yes ;;
11387 x
$lt_dlneed_uscore) lt_cv_dlopen_self
=yes ;;
11388 x
$lt_dlunknown|x
*) lt_cv_dlopen_self
=no
;;
11391 # compilation failed
11392 lt_cv_dlopen_self
=no
11399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11400 $as_echo "$lt_cv_dlopen_self" >&6; }
11402 if test "x$lt_cv_dlopen_self" = xyes
; then
11403 wl
=$lt_prog_compiler_wl eval LDFLAGS
=\"\
$LDFLAGS $lt_prog_compiler_static\"
11404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11405 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11406 if ${lt_cv_dlopen_self_static+:} false
; then :
11407 $as_echo_n "(cached) " >&6
11409 if test "$cross_compiling" = yes; then :
11410 lt_cv_dlopen_self_static
=cross
11412 lt_dlunknown
=0; lt_dlno_uscore
=1; lt_dlneed_uscore
=2
11413 lt_status
=$lt_dlunknown
11414 cat > conftest.
$ac_ext <<_LT_EOF
11415 #line $LINENO "configure"
11416 #include "confdefs.h"
11425 # define LT_DLGLOBAL RTLD_GLOBAL
11428 # define LT_DLGLOBAL DL_GLOBAL
11430 # define LT_DLGLOBAL 0
11434 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11435 find out it does not work in some platform. */
11436 #ifndef LT_DLLAZY_OR_NOW
11438 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11441 # define LT_DLLAZY_OR_NOW DL_LAZY
11444 # define LT_DLLAZY_OR_NOW RTLD_NOW
11447 # define LT_DLLAZY_OR_NOW DL_NOW
11449 # define LT_DLLAZY_OR_NOW 0
11456 /* When -fvisbility=hidden is used, assume the code has been annotated
11457 correspondingly for the symbols needed. */
11458 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11459 int fnord () __attribute__((visibility("default")));
11462 int fnord () { return 42; }
11465 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11466 int status = $lt_dlunknown;
11470 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11473 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11474 else puts (dlerror ());
11476 /* dlclose (self); */
11484 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11485 (eval $ac_link) 2>&5
11487 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11488 test $ac_status = 0; } && test -s conftest
${ac_exeext} 2>/dev
/null
; then
11489 (.
/conftest
; exit; ) >&5 2>/dev
/null
11491 case x
$lt_status in
11492 x
$lt_dlno_uscore) lt_cv_dlopen_self_static
=yes ;;
11493 x
$lt_dlneed_uscore) lt_cv_dlopen_self_static
=yes ;;
11494 x
$lt_dlunknown|x
*) lt_cv_dlopen_self_static
=no
;;
11497 # compilation failed
11498 lt_cv_dlopen_self_static
=no
11505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11506 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11509 CPPFLAGS
="$save_CPPFLAGS"
11510 LDFLAGS
="$save_LDFLAGS"
11515 case $lt_cv_dlopen_self in
11516 yes|no
) enable_dlopen_self
=$lt_cv_dlopen_self ;;
11517 *) enable_dlopen_self
=unknown
;;
11520 case $lt_cv_dlopen_self_static in
11521 yes|no
) enable_dlopen_self_static
=$lt_cv_dlopen_self_static ;;
11522 *) enable_dlopen_self_static
=unknown
;;
11544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11545 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11546 if test -n "$STRIP" && $STRIP -V 2>&1 |
$GREP "GNU strip" >/dev
/null
; then
11547 test -z "$old_striplib" && old_striplib
="$STRIP --strip-debug"
11548 test -z "$striplib" && striplib
="$STRIP --strip-unneeded"
11549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11550 $as_echo "yes" >&6; }
11552 # FIXME - insert some real tests, host_os isn't really good enough
11555 if test -n "$STRIP" ; then
11556 striplib
="$STRIP -x"
11557 old_striplib
="$STRIP -S"
11558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11559 $as_echo "yes" >&6; }
11561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11562 $as_echo "no" >&6; }
11566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11567 $as_echo "no" >&6; }
11583 # Report which library types will actually be built
11584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11585 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11587 $as_echo "$can_build_shared" >&6; }
11589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11590 $as_echo_n "checking whether to build shared libraries... " >&6; }
11591 test "$can_build_shared" = "no" && enable_shared
=no
11593 # On AIX, shared libraries and static libraries use the same namespace, and
11594 # are all built from PIC.
11597 test "$enable_shared" = yes && enable_static
=no
11598 if test -n "$RANLIB"; then
11599 archive_cmds
="$archive_cmds~\$RANLIB \$lib"
11600 postinstall_cmds
='$RANLIB $lib'
11605 if test "$host_cpu" != ia64
&& test "$aix_use_runtimelinking" = no
; then
11606 test "$enable_shared" = yes && enable_static
=no
11610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11611 $as_echo "$enable_shared" >&6; }
11613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11614 $as_echo_n "checking whether to build static libraries... " >&6; }
11615 # Make sure either enable_shared or enable_static is yes.
11616 test "$enable_shared" = yes || enable_static
=yes
11617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11618 $as_echo "$enable_static" >&6; }
11625 ac_cpp
='$CPP $CPPFLAGS'
11626 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11627 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11628 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
11646 ac_config_commands
="$ac_config_commands libtool"
11651 # Only expand once:
11654 # By default we simply use the C compiler to build assembly code.
11656 test "${CCAS+set}" = set || CCAS
=$CC
11657 test "${CCASFLAGS+set}" = set || CCASFLAGS
=$CFLAGS
11661 depcc
="$CCAS" am_compiler_list
=
11663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
11664 $as_echo_n "checking dependency style of $depcc... " >&6; }
11665 if ${am_cv_CCAS_dependencies_compiler_type+:} false
; then :
11666 $as_echo_n "(cached) " >&6
11668 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
11669 # We make a subdir and do the tests there. Otherwise we can end up
11670 # making bogus files that we don't know about and never remove. For
11671 # instance it was reported that on HP-UX the gcc test will end up
11672 # making a dummy file named `D' -- because `-MD' means `put the output
11674 rm -rf conftest.dir
11676 # Copy depcomp to subdir because otherwise we won't find it if we're
11677 # using a relative directory.
11678 cp "$am_depcomp" conftest.dir
11680 # We will build objects and dependencies in a subdirectory because
11681 # it helps to detect inapplicable dependency modes. For instance
11682 # both Tru64's cc and ICC support -MD to output dependencies as a
11683 # side effect of compilation, but ICC will put the dependencies in
11684 # the current directory while Tru64 will put them in the object
11688 am_cv_CCAS_dependencies_compiler_type
=none
11689 if test "$am_compiler_list" = ""; then
11690 am_compiler_list
=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
11692 am__universal
=false
11695 for depmode
in $am_compiler_list; do
11696 # Setup a source with many dependencies, because some compilers
11697 # like to wrap large dependency lists on column 80 (with \), and
11698 # we should not choose a depcomp mode which is confused by this.
11700 # We need to recreate these files for each test, as the compiler may
11701 # overwrite some of them when testing with obscure command lines.
11702 # This happens at least with the AIX C compiler.
11704 for i
in 1 2 3 4 5 6; do
11705 echo '#include "conftst'$i'.h"' >> sub
/conftest.c
11706 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
11707 # Solaris 8's {/usr,}/bin/sh.
11708 touch sub
/conftst
$i.h
11710 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
11712 # We check with `-c' and `-o' for the sake of the "dashmstdout"
11713 # mode. It turns out that the SunPro C++ compiler does not properly
11714 # handle `-M -o', and we need to detect this. Also, some Intel
11715 # versions had trouble with output in subdirs
11716 am__obj
=sub
/conftest.
${OBJEXT-o}
11717 am__minus_obj
="-o $am__obj"
11720 # This depmode causes a compiler race in universal mode.
11721 test "$am__universal" = false ||
continue
11724 # after this tag, mechanisms are not by side-effect, so they'll
11725 # only be used when explicitly requested
11726 if test "x$enable_dependency_tracking" = xyes
; then
11732 msvc7 | msvc7msys | msvisualcpp | msvcmsys
)
11733 # This compiler won't grok `-c -o', but also, the minuso test has
11734 # not run yet. These depmodes are late enough in the game, and
11735 # so weak that their functioning should not be impacted.
11736 am__obj
=conftest.
${OBJEXT-o}
11741 if depmode
=$depmode \
11742 source=sub
/conftest.c object
=$am__obj \
11743 depfile
=sub
/conftest.Po tmpdepfile
=sub
/conftest.TPo \
11744 $SHELL .
/depcomp
$depcc -c $am__minus_obj sub
/conftest.c \
11745 >/dev
/null
2>conftest.err
&&
11746 grep sub
/conftst1.h sub
/conftest.Po
> /dev
/null
2>&1 &&
11747 grep sub
/conftst6.h sub
/conftest.Po
> /dev
/null
2>&1 &&
11748 grep $am__obj sub
/conftest.Po
> /dev
/null
2>&1 &&
11749 ${MAKE-make} -s -f confmf
> /dev
/null
2>&1; then
11750 # icc doesn't choke on unknown options, it will just issue warnings
11751 # or remarks (even with -Werror). So we grep stderr for any message
11752 # that says an option was ignored or not supported.
11753 # When given -MP, icc 7.0 and 7.1 complain thusly:
11754 # icc: Command line warning: ignoring option '-M'; no argument required
11755 # The diagnosis changed in icc 8.0:
11756 # icc: Command line remark: option '-MP' not supported
11757 if (grep 'ignoring option' conftest.err ||
11758 grep 'not supported' conftest.err
) >/dev
/null
2>&1; then :; else
11759 am_cv_CCAS_dependencies_compiler_type
=$depmode
11766 rm -rf conftest.dir
11768 am_cv_CCAS_dependencies_compiler_type
=none
11772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CCAS_dependencies_compiler_type" >&5
11773 $as_echo "$am_cv_CCAS_dependencies_compiler_type" >&6; }
11774 CCASDEPMODE
=depmode
=$am_cv_CCAS_dependencies_compiler_type
11777 test "x$enable_dependency_tracking" != xno \
11778 && test "$am_cv_CCAS_dependencies_compiler_type" = gcc3
; then
11779 am__fastdepCCAS_TRUE
=
11780 am__fastdepCCAS_FALSE
='#'
11782 am__fastdepCCAS_TRUE
='#'
11783 am__fastdepCCAS_FALSE
=
11789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking zfs author" >&5
11790 $as_echo_n "checking zfs author... " >&6; }
11791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZFS_META_AUTHOR" >&5
11792 $as_echo "$ZFS_META_AUTHOR" >&6; }
11794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking zfs license" >&5
11795 $as_echo_n "checking zfs license... " >&6; }
11796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZFS_META_LICENSE" >&5
11797 $as_echo "$ZFS_META_LICENSE" >&6; }
11801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linux distribution" >&5
11802 $as_echo_n "checking linux distribution... " >&6; }
11803 if test -f /etc
/toss-release
; then
11805 elif test -f /etc
/fedora-release
; then
11807 elif test -f /etc
/redhat-release
; then
11809 elif test -f /etc
/gentoo-release
; then
11811 elif test -f /etc
/arch-release
; then
11813 elif test -f /etc
/SuSE-release
; then
11815 elif test -f /etc
/slackware-version
; then
11817 elif test -f /etc
/lunar.release
; then
11819 elif test -f /etc
/lsb-release
; then
11821 elif test -f /etc
/debian_version
; then
11826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $VENDOR" >&5
11827 $as_echo "$VENDOR" >&6; }
11830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking default package type" >&5
11831 $as_echo_n "checking default package type... " >&6; }
11833 toss
) DEFAULT_PACKAGE
=rpm
;;
11834 redhat
) DEFAULT_PACKAGE
=rpm
;;
11835 fedora
) DEFAULT_PACKAGE
=rpm
;;
11836 gentoo
) DEFAULT_PACKAGE
=tgz
;;
11837 arch
) DEFAULT_PACKAGE
=tgz
;;
11838 sles
) DEFAULT_PACKAGE
=rpm
;;
11839 slackware
) DEFAULT_PACKAGE
=tgz
;;
11840 lunar
) DEFAULT_PACKAGE
=tgz
;;
11841 ubuntu
) DEFAULT_PACKAGE
=deb
;;
11842 debian
) DEFAULT_PACKAGE
=deb
;;
11843 *) DEFAULT_PACKAGE
=rpm
;;
11845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEFAULT_PACKAGE" >&5
11846 $as_echo "$DEFAULT_PACKAGE" >&6; }
11849 DEFAULT_INIT_DIR
=$sysconfdir/init.d
11850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking default init directory" >&5
11851 $as_echo_n "checking default init directory... " >&6; }
11852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEFAULT_INIT_DIR" >&5
11853 $as_echo "$DEFAULT_INIT_DIR" >&6; }
11856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking default init script type" >&5
11857 $as_echo_n "checking default init script type... " >&6; }
11859 toss
) DEFAULT_INIT_SCRIPT
=redhat
;;
11860 redhat
) DEFAULT_INIT_SCRIPT
=redhat
;;
11861 fedora
) DEFAULT_INIT_SCRIPT
=fedora
;;
11862 gentoo
) DEFAULT_INIT_SCRIPT
=gentoo
;;
11863 arch
) DEFAULT_INIT_SCRIPT
=lsb
;;
11864 sles
) DEFAULT_INIT_SCRIPT
=lsb
;;
11865 slackware
) DEFAULT_INIT_SCRIPT
=lsb
;;
11866 lunar
) DEFAULT_INIT_SCRIPT
=lunar
;;
11867 ubuntu
) DEFAULT_INIT_SCRIPT
=lsb
;;
11868 debian
) DEFAULT_INIT_SCRIPT
=lsb
;;
11869 *) DEFAULT_INIT_SCRIPT
=lsb
;;
11871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEFAULT_INIT_SCRIPT" >&5
11872 $as_echo "$DEFAULT_INIT_SCRIPT" >&6; }
11875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking default init config direectory" >&5
11876 $as_echo_n "checking default init config direectory... " >&6; }
11878 gentoo
) DEFAULT_INITCONF_DIR
=/etc
/conf.d
;;
11879 toss
) DEFAULT_INITCONF_DIR
=/etc
/sysconfig
;;
11880 redhat
) DEFAULT_INITCONF_DIR
=/etc
/sysconfig
;;
11881 fedora
) DEFAULT_INITCONF_DIR
=/etc
/sysconfig
;;
11882 sles
) DEFAULT_INITCONF_DIR
=/etc
/sysconfig
;;
11883 ubuntu
) DEFAULT_INITCONF_DIR
=/etc
/default
;;
11884 debian
) DEFAULT_INITCONF_DIR
=/etc
/default
;;
11885 *) DEFAULT_INITCONF_DIR
=/etc
/default
;;
11887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEFAULT_INITCONF_DIR" >&5
11888 $as_echo "$DEFAULT_INITCONF_DIR" >&6; }
11891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether initramfs-tools is available" >&5
11892 $as_echo_n "checking whether initramfs-tools is available... " >&6; }
11893 if test -d /usr
/share
/initramfs-tools
; then
11894 DEFINE_INITRAMFS
='--define "_initramfs 1"'
11895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11896 $as_echo "yes" >&6; }
11898 DEFINE_INITRAMFS
=''
11899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11900 $as_echo "no" >&6; }
11908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $RPM is available" >&5
11909 $as_echo_n "checking whether $RPM is available... " >&6; }
11910 if tmp
=$
($RPM --version 2>/dev
/null
); then :
11912 RPM_VERSION
=$
(echo $tmp |
$AWK '/RPM/ { print $3 }')
11914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_RPM ($RPM_VERSION)" >&5
11915 $as_echo "$HAVE_RPM ($RPM_VERSION)" >&6; }
11920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_RPM" >&5
11921 $as_echo "$HAVE_RPM" >&6; }
11925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $RPMBUILD is available" >&5
11926 $as_echo_n "checking whether $RPMBUILD is available... " >&6; }
11927 if tmp
=$
($RPMBUILD --version 2>/dev
/null
); then :
11929 RPMBUILD_VERSION
=$
(echo $tmp |
$AWK '/RPM/ { print $3 }')
11931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_RPMBUILD ($RPMBUILD_VERSION)" >&5
11932 $as_echo "$HAVE_RPMBUILD ($RPMBUILD_VERSION)" >&6; }
11937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_RPMBUILD" >&5
11938 $as_echo "$HAVE_RPMBUILD" >&6; }
11942 RPM_DEFINE_COMMON
='--define "$(DEBUG_ZFS) 1" --define "$(DEBUG_DMU_TX) 1"'
11943 RPM_DEFINE_UTIL
='--define "_dracutdir $(dracutdir)" --define "_udevdir $(udevdir)" --define "_udevruledir $(udevruledir)" --define "_initconfdir $(DEFAULT_INITCONF_DIR)" $(DEFINE_INITRAMFS)'
11944 RPM_DEFINE_KMOD
='--define "kernels $(LINUX_VERSION)" --define "require_spldir $(SPL)" --define "require_splobj $(SPL_OBJ)" --define "ksrc $(LINUX)" --define "kobj $(LINUX_OBJ)"'
11947 SRPM_DEFINE_COMMON
='--define "build_src_rpm 1"'
11952 RPM_SPEC_DIR
="rpm/generic"
11954 # Check whether --with-spec was given.
11955 if test "${with_spec+set}" = set; then :
11956 withval
=$with_spec; RPM_SPEC_DIR
="rpm/$withval"
11960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether spec files are available" >&5
11961 $as_echo_n "checking whether spec files are available... " >&6; }
11962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($RPM_SPEC_DIR/*.spec.in)" >&5
11963 $as_echo "yes ($RPM_SPEC_DIR/*.spec.in)" >&6; }
11985 DPKGBUILD
=dpkg-buildpackage
11987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $DPKG is available" >&5
11988 $as_echo_n "checking whether $DPKG is available... " >&6; }
11989 if tmp
=$
($DPKG --version 2>/dev
/null
); then :
11991 DPKG_VERSION
=$
(echo $tmp |
$AWK '/Debian/ { print $7 }')
11993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_DPKG ($DPKG_VERSION)" >&5
11994 $as_echo "$HAVE_DPKG ($DPKG_VERSION)" >&6; }
11999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_DPKG" >&5
12000 $as_echo "$HAVE_DPKG" >&6; }
12004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $DPKGBUILD is available" >&5
12005 $as_echo_n "checking whether $DPKGBUILD is available... " >&6; }
12006 if tmp
=$
($DPKGBUILD --version 2>/dev
/null
); then :
12008 DPKGBUILD_VERSION
=$
(echo $tmp | \
12009 $AWK '/Debian/ { print $4 }' | cut
-f-4 -d'.')
12011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_DPKGBUILD ($DPKGBUILD_VERSION)" >&5
12012 $as_echo "$HAVE_DPKGBUILD ($DPKGBUILD_VERSION)" >&6; }
12017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_DPKGBUILD" >&5
12018 $as_echo "$HAVE_DPKGBUILD" >&6; }
12033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ALIEN is available" >&5
12034 $as_echo_n "checking whether $ALIEN is available... " >&6; }
12035 if tmp
=$
($ALIEN --version 2>/dev
/null
); then :
12037 ALIEN_VERSION
=$
(echo $tmp |
$AWK '{ print $3 }')
12039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_ALIEN ($ALIEN_VERSION)" >&5
12040 $as_echo "$HAVE_ALIEN ($ALIEN_VERSION)" >&6; }
12045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_ALIEN" >&5
12046 $as_echo "$HAVE_ALIEN" >&6; }
12056 TARGET_ASM_DIR
=asm-generic
12061 # Check whether --with-config was given.
12062 if test "${with_config+set}" = set; then :
12063 withval
=$with_config; ZFS_CONFIG
="$withval"
12066 # Check whether --enable-linux-builtin was given.
12067 if test "${enable_linux_builtin+set}" = set; then :
12068 enableval
=$enable_linux_builtin;
12070 enable_linux_builtin
=no
12074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking zfs config" >&5
12075 $as_echo_n "checking zfs config... " >&6; }
12076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZFS_CONFIG" >&5
12077 $as_echo "$ZFS_CONFIG" >&6; };
12082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -Wno-unused-but-set-variable support" >&5
12083 $as_echo_n "checking for -Wno-unused-but-set-variable support... " >&6; }
12085 saved_flags
="$CFLAGS"
12086 CFLAGS
="$CFLAGS -Wunused-but-set-variable"
12088 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12089 /* end confdefs.h. */
12099 if ac_fn_c_try_compile
"$LINENO"; then :
12101 NO_UNUSED_BUT_SET_VARIABLE
=-Wno-unused-but-set-variable
12102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12103 $as_echo "yes" >&6; }
12107 NO_UNUSED_BUT_SET_VARIABLE
=
12108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12109 $as_echo "no" >&6; }
12112 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12114 CFLAGS
="$saved_flags"
12118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -Wno-bool-compare support" >&5
12119 $as_echo_n "checking for -Wno-bool-compare support... " >&6; }
12121 saved_flags
="$CFLAGS"
12122 CFLAGS
="$CFLAGS -Wbool-compare"
12124 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12125 /* end confdefs.h. */
12135 if ac_fn_c_try_compile
"$LINENO"; then :
12137 NO_BOOL_COMPARE
=-Wno-bool-compare
12138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12139 $as_echo "yes" >&6; }
12144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12145 $as_echo "no" >&6; }
12148 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12150 CFLAGS
="$saved_flags"
12155 case "$ZFS_CONFIG" in
12159 # Check whether --with-linux was given.
12160 if test "${with_linux+set}" = set; then :
12161 withval
=$with_linux; kernelsrc
="$withval"
12166 # Check whether --with-linux-obj was given.
12167 if test "${with_linux_obj+set}" = set; then :
12168 withval
=$with_linux_obj; kernelbuild
="$withval"
12172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking kernel source directory" >&5
12173 $as_echo_n "checking kernel source directory... " >&6; }
12174 if test -z "$kernelsrc"; then :
12176 if test -e "/lib/modules/$(uname -r)/source"; then :
12178 headersdir
="/lib/modules/$(uname -r)/source"
12179 sourcelink
=$
(readlink
-f "$headersdir")
12181 elif test -e "/lib/modules/$(uname -r)/build"; then :
12183 headersdir
="/lib/modules/$(uname -r)/build"
12184 sourcelink
=$
(readlink
-f "$headersdir")
12188 sourcelink
=$
(ls -1d /usr
/src
/kernels
/* \
12190 2>/dev
/null |
grep -v obj |
tail -1)
12194 if test -n "$sourcelink" && test -e ${sourcelink}; then :
12196 kernelsrc
=`readlink -f ${sourcelink}`
12200 kernelsrc
="Not found"
12206 if test "$kernelsrc" = "NONE"; then :
12214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kernelsrc" >&5
12215 $as_echo "$kernelsrc" >&6; }
12216 if test ! -d "$kernelsrc"; then :
12219 *** Please make sure the kernel devel package for your distribution
12220 *** is installed and then try again. If that fails, you can specify the
12221 *** location of the kernel source with the '--with-linux=PATH' option." "$LINENO" 5
12225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking kernel build directory" >&5
12226 $as_echo_n "checking kernel build directory... " >&6; }
12227 if test -z "$kernelbuild"; then :
12229 if test -e "/lib/modules/$(uname -r)/build"; then :
12231 kernelbuild
=`readlink -f /lib/modules/$(uname -r)/build`
12233 elif test -d ${kernelsrc}-obj/${target_cpu}/${target_cpu}; then :
12235 kernelbuild
=${kernelsrc}-obj/${target_cpu}/${target_cpu}
12237 elif test -d ${kernelsrc}-obj/${target_cpu}/default
; then :
12239 kernelbuild
=${kernelsrc}-obj/${target_cpu}/default
12241 elif test -d `dirname ${kernelsrc}`/build-
${target_cpu}; then :
12243 kernelbuild
=`dirname ${kernelsrc}`/build-
${target_cpu}
12247 kernelbuild
=${kernelsrc}
12252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kernelbuild" >&5
12253 $as_echo "$kernelbuild" >&6; }
12255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking kernel source version" >&5
12256 $as_echo_n "checking kernel source version... " >&6; }
12257 utsrelease1
=$kernelbuild/include
/linux
/version.h
12258 utsrelease2
=$kernelbuild/include
/linux
/utsrelease.h
12259 utsrelease3
=$kernelbuild/include
/generated
/utsrelease.h
12260 if test -r $utsrelease1 && fgrep
-q UTS_RELEASE
$utsrelease1; then :
12262 utsrelease
=linux
/version.h
12264 elif test -r $utsrelease2 && fgrep
-q UTS_RELEASE
$utsrelease2; then :
12266 utsrelease
=linux
/utsrelease.h
12268 elif test -r $utsrelease3 && fgrep
-q UTS_RELEASE
$utsrelease3; then :
12270 utsrelease
=generated
/utsrelease.h
12274 if test "$utsrelease"; then :
12276 kernsrcver
=`(echo "#include <$utsrelease>";
12277 echo "kernsrcver=UTS_RELEASE") |
12278 cpp -I $kernelbuild/include |
12279 grep "^kernsrcver=" | cut -d \" -f 2`
12281 if test -z "$kernsrcver"; then :
12283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not found" >&5
12284 $as_echo "Not found" >&6; }
12285 as_fn_error $?
"*** Cannot determine kernel version." "$LINENO" 5
12291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not found" >&5
12292 $as_echo "Not found" >&6; }
12293 if test "x$enable_linux_builtin" != xyes
; then
12294 as_fn_error $?
"*** Cannot find UTS_RELEASE definition." "$LINENO" 5
12297 *** Cannot find UTS_RELEASE definition.
12298 *** Please run 'make prepare' inside the kernel source tree." "$LINENO" 5
12303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kernsrcver" >&5
12304 $as_echo "$kernsrcver" >&6; }
12307 LINUX_OBJ
=${kernelbuild}
12308 LINUX_VERSION
=${kernsrcver}
12315 modpost
=$LINUX/scripts
/Makefile.modpost
12316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking kernel file name for module symbols" >&5
12317 $as_echo_n "checking kernel file name for module symbols... " >&6; }
12318 if test "x$enable_linux_builtin" != xyes
-a -f "$modpost"; then :
12320 if grep -q Modules.symvers
$modpost; then :
12322 LINUX_SYMBOLS
=Modules.symvers
12326 LINUX_SYMBOLS
=Module.symvers
12330 if test ! -f "$LINUX_OBJ/$LINUX_SYMBOLS"; then :
12333 *** Please make sure the kernel devel package for your distribution
12334 *** is installed. If you are building with a custom kernel, make sure the
12335 *** kernel is configured, built, and the '--with-linux=PATH' configure
12336 *** option refers to the location of the kernel source." "$LINENO" 5
12345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINUX_SYMBOLS" >&5
12346 $as_echo "$LINUX_SYMBOLS" >&6; }
12352 # Check whether --with-spl was given.
12353 if test "${with_spl+set}" = set; then :
12354 withval
=$with_spl; splsrc
="$withval"
12359 # Check whether --with-spl-obj was given.
12360 if test "${with_spl_obj+set}" = set; then :
12361 withval
=$with_spl_obj; splbuild
="$withval"
12366 # Check whether --with-spl-timeout was given.
12367 if test "${with_spl_timeout+set}" = set; then :
12368 withval
=$with_spl_timeout; timeout
="$withval"
12374 splsrc0
="/var/lib/dkms/spl/${VERSION}/build"
12375 splsrc1
="/usr/local/src/spl-${VERSION}/${LINUX_VERSION}"
12376 splsrc2
="/usr/local/src/spl-${VERSION}"
12377 splsrc3
="/usr/src/spl-${VERSION}/${LINUX_VERSION}"
12378 splsrc4
="/usr/src/spl-${VERSION}"
12382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking spl source directory" >&5
12383 $as_echo_n "checking spl source directory... " >&6; }
12384 if test -z "${splsrc}"; then :
12386 if test -e "${splsrc0}/spl.release.in"; then :
12390 elif test -e "${splsrc1}/spl.release.in"; then :
12394 elif test -e "${splsrc2}/spl.release.in"; then :
12398 elif test -e "${splsrc3}/spl.release.in"; then :
12400 splsrc
=$
(readlink
-f "${splsrc3}")
12402 elif test -e "${splsrc4}/spl.release.in" ; then :
12406 elif test -e "${splsrc5}/spl.release.in"; then :
12408 splsrc
=$
(readlink
-f "${splsrc5}")
12410 elif test -e "${splsrc6}/spl.release.in" ; then :
12422 if test "$splsrc" = "NONE"; then :
12431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $splsrc" >&5
12432 $as_echo "$splsrc" >&6; }
12433 if test ! -e "$splsrc/spl.release.in"; then :
12436 *** Please make sure the kmod spl devel package for your distribution
12437 *** is installed then try again. If that fails you can specify the
12438 *** location of the spl source with the '--with-spl=PATH' option." "$LINENO" 5
12442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking spl build directory" >&5
12443 $as_echo_n "checking spl build directory... " >&6; }
12445 if test -z "$splbuild"; then :
12447 if test -e "${splsrc}/${LINUX_VERSION}/spl_config.h" ; then :
12449 splbuild
="${splsrc}/${LINUX_VERSION}"
12451 elif test -e "${splsrc}/spl_config.h" ; then :
12453 splbuild
="${splsrc}"
12455 elif find -L "${splsrc}" -name spl_config.h
2> /dev
/null |
grep -wq spl_config.h
; then :
12457 splbuild
=$
(find -L "${splsrc}" -name spl_config.h |
sed 's,/spl_config.h,,')
12461 splbuild
="Not found"
12466 if test -e "$splbuild/spl_config.h" -o $timeout -le 0; then :
12473 timeout
=$
((timeout-1
))
12478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $splbuild" >&5
12479 $as_echo "$splbuild" >&6; }
12480 if ! test -e "$splbuild/spl_config.h"; then :
12483 *** Please make sure the kmod spl devel <kernel> package for your
12484 *** distribution is installed then try again. If that fails you
12485 *** can specify the location of the spl objects with the
12486 *** '--with-spl-obj=PATH' option." "$LINENO" 5
12490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking spl source version" >&5
12491 $as_echo_n "checking spl source version... " >&6; }
12492 if test -r $splbuild/spl_config.h
&&
12493 fgrep
-q SPL_META_VERSION
$splbuild/spl_config.h
; then :
12496 splsrcver
=`(echo "#include <spl_config.h>";
12497 echo "splsrcver=SPL_META_VERSION-SPL_META_RELEASE") |
12499 grep "^splsrcver=" | tr -d \" | cut -d= -f2`
12503 if test -z "$splsrcver"; then :
12505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not found" >&5
12506 $as_echo "Not found" >&6; }
12508 *** Cannot determine the version of the spl source.
12509 *** Please prepare the spl source before running this script" "$LINENO" 5
12513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $splsrcver" >&5
12514 $as_echo "$splsrcver" >&6; }
12517 SPL_OBJ
=${splbuild}
12518 SPL_VERSION
=${splsrcver}
12524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking spl file name for module symbols" >&5
12525 $as_echo_n "checking spl file name for module symbols... " >&6; }
12529 if test -r $SPL_OBJ/Module.symvers
; then :
12531 SPL_SYMBOLS
=Module.symvers
12533 elif test -r $SPL_OBJ/Modules.symvers
; then :
12535 SPL_SYMBOLS
=Modules.symvers
12537 elif test -r $SPL_OBJ/module
/Module.symvers
; then :
12539 SPL_SYMBOLS
=Module.symvers
12541 elif test -r $SPL_OBJ/module
/Modules.symvers
; then :
12543 SPL_SYMBOLS
=Modules.symvers
12547 if test $SPL_SYMBOLS != NONE
-o $timeout -le 0; then :
12554 timeout
=$
((timeout-1
))
12559 if test "$SPL_SYMBOLS" = NONE
; then :
12561 SPL_SYMBOLS
=$LINUX_SYMBOLS
12565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SPL_SYMBOLS" >&5
12566 $as_echo "$SPL_SYMBOLS" >&6; }
12570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether modules can be built" >&5
12571 $as_echo_n "checking whether modules can be built... " >&6; }
12574 cat confdefs.h
- <<_ACEOF >conftest.c
12589 cat - <<_ACEOF >conftest.h
12594 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
12595 echo "obj-m := conftest.o" >build
/Makefile
12597 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
12598 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
12599 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
12600 (eval $ac_try) 2>&5
12602 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12603 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
12604 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
12605 (eval $ac_try) 2>&5
12607 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12608 test $ac_status = 0; }; }; then :
12610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12611 $as_echo "yes" >&6; }
12614 $as_echo "$as_me: failed program was:" >&5
12615 sed 's/^/| /' conftest.
$ac_ext >&5
12617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12618 $as_echo "no" >&6; }
12619 if test "x$enable_linux_builtin" != xyes
; then
12620 as_fn_error $?
"*** Unable to build an empty module." "$LINENO" 5
12623 *** Unable to build an empty module.
12624 *** Please run 'make scripts' inside the kernel source tree." "$LINENO" 5
12635 if test "x$cross_compiling" != xyes
; then :
12637 if test "$cross_compiling" = yes; then :
12638 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12639 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12640 as_fn_error $?
"cannot run test program while cross compiling
12641 See \`config.log' for more details" "$LINENO" 5; }
12643 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12644 /* end confdefs.h. */
12647 #include "$LINUX/include/linux/license.h"
12653 return !license_is_gpl_compatible("$ZFS_META_LICENSE");
12660 if ac_fn_c_try_run
"$LINENO"; then :
12663 $as_echo "#define ZFS_IS_GPL_COMPATIBLE 1" >>confdefs.h
12667 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
12668 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
12676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Linux was built with CONFIG_DEBUG_LOCK_ALLOC" >&5
12677 $as_echo_n "checking whether Linux was built with CONFIG_DEBUG_LOCK_ALLOC... " >&6; }
12680 cat confdefs.h
- <<_ACEOF >conftest.c
12683 #include <linux/module.h>
12689 #ifndef CONFIG_DEBUG_LOCK_ALLOC
12690 #error CONFIG_DEBUG_LOCK_ALLOC not #defined
12701 cat - <<_ACEOF >conftest.h
12706 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
12707 echo "obj-m := conftest.o" >build
/Makefile
12709 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
12710 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
12711 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
12712 (eval $ac_try) 2>&5
12714 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12715 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
12716 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
12717 (eval $ac_try) 2>&5
12719 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12720 test $ac_status = 0; }; }; then :
12722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12723 $as_echo "yes" >&6; }
12725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mutex_lock() is GPL-only" >&5
12726 $as_echo_n "checking whether mutex_lock() is GPL-only... " >&6; }
12727 tmp_flags
="$EXTRA_KCFLAGS"
12730 cat confdefs.h
- <<_ACEOF >conftest.c
12733 #include <linux/module.h>
12734 #include <linux/mutex.h>
12736 MODULE_LICENSE("$ZFS_META_LICENSE");
12746 mutex_unlock(&lock);
12756 cat - <<_ACEOF >conftest.h
12761 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
12762 echo "obj-m := conftest.o" >build
/Makefile
12764 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
12765 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
12766 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
12767 (eval $ac_try) 2>&5
12769 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12770 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
12771 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
12772 (eval $ac_try) 2>&5
12774 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12775 test $ac_status = 0; }; }; then :
12777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12778 $as_echo "no" >&6; }
12781 $as_echo "$as_me: failed program was:" >&5
12782 sed 's/^/| /' conftest.
$ac_ext >&5
12784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12785 $as_echo "yes" >&6; }
12787 *** Kernel built with CONFIG_DEBUG_LOCK_ALLOC which is incompatible
12788 *** with the CDDL license and will prevent the module linking stage
12789 *** from succeeding. You must rebuild your kernel without this
12790 *** option enabled." "$LINENO" 5
12798 EXTRA_KCFLAGS
="$tmp_flags"
12802 $as_echo "$as_me: failed program was:" >&5
12803 sed 's/^/| /' conftest.
$ac_ext >&5
12805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12806 $as_echo "no" >&6; }
12819 tmp_flags
="$EXTRA_KCFLAGS"
12820 EXTRA_KCFLAGS
="-I\$(src)"
12822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether DECLARE_EVENT_CLASS() is available" >&5
12823 $as_echo_n "checking whether DECLARE_EVENT_CLASS() is available... " >&6; }
12826 cat confdefs.h
- <<_ACEOF >conftest.c
12829 #include <linux/module.h>
12830 MODULE_LICENSE(ZFS_META_LICENSE);
12832 #define CREATE_TRACE_POINTS
12833 #include "conftest.h"
12839 trace_zfs_autoconf_event_one(1UL);
12840 trace_zfs_autoconf_event_two(2UL);
12850 cat - <<_ACEOF >conftest.h
12852 #if !defined(_CONFTEST_H) || defined(TRACE_HEADER_MULTI_READ)
12853 #define _CONFTEST_H
12855 #undef TRACE_SYSTEM
12856 #define TRACE_SYSTEM zfs
12857 #include <linux/tracepoint.h>
12859 DECLARE_EVENT_CLASS(zfs_autoconf_event_class,
12860 TP_PROTO(unsigned long i),
12863 __field(unsigned long, i)
12868 TP_printk("i = %lu", __entry->i)
12871 #define DEFINE_AUTOCONF_EVENT(name) \
12872 DEFINE_EVENT(zfs_autoconf_event_class, name, \
12873 TP_PROTO(unsigned long i), \
12875 DEFINE_AUTOCONF_EVENT(zfs_autoconf_event_one);
12876 DEFINE_AUTOCONF_EVENT(zfs_autoconf_event_two);
12878 #endif /* _CONFTEST_H */
12880 #undef TRACE_INCLUDE_PATH
12881 #define TRACE_INCLUDE_PATH .
12882 #define TRACE_INCLUDE_FILE conftest
12883 #include <trace/define_trace.h>
12888 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
12889 echo "obj-m := conftest.o" >build
/Makefile
12891 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
12892 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
12893 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
12894 (eval $ac_try) 2>&5
12896 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12897 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
12898 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
12899 (eval $ac_try) 2>&5
12901 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12902 test $ac_status = 0; }; }; then :
12904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12905 $as_echo "yes" >&6; }
12907 $as_echo "#define HAVE_DECLARE_EVENT_CLASS 1" >>confdefs.h
12911 $as_echo "$as_me: failed program was:" >&5
12912 sed 's/^/| /' conftest.
$ac_ext >&5
12914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12915 $as_echo "no" >&6; }
12923 EXTRA_KCFLAGS
="$tmp_flags"
12926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether current->bio_tail exists" >&5
12927 $as_echo_n "checking whether current->bio_tail exists... " >&6; }
12930 cat confdefs.h
- <<_ACEOF >conftest.c
12933 #include <linux/sched.h>
12939 current->bio_tail = (struct bio **) NULL;
12949 cat - <<_ACEOF >conftest.h
12954 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
12955 echo "obj-m := conftest.o" >build
/Makefile
12957 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
12958 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
12959 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
12960 (eval $ac_try) 2>&5
12962 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12963 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
12964 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
12965 (eval $ac_try) 2>&5
12967 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12968 test $ac_status = 0; }; }; then :
12970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12971 $as_echo "yes" >&6; }
12973 $as_echo "#define HAVE_CURRENT_BIO_TAIL 1" >>confdefs.h
12977 $as_echo "$as_me: failed program was:" >&5
12978 sed 's/^/| /' conftest.
$ac_ext >&5
12980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12981 $as_echo "no" >&6; }
12982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether current->bio_list exists" >&5
12983 $as_echo_n "checking whether current->bio_list exists... " >&6; }
12986 cat confdefs.h
- <<_ACEOF >conftest.c
12989 #include <linux/sched.h>
12995 current->bio_list = (struct bio_list *) NULL;
13005 cat - <<_ACEOF >conftest.h
13010 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
13011 echo "obj-m := conftest.o" >build
/Makefile
13013 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
13014 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
13015 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
13016 (eval $ac_try) 2>&5
13018 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13019 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
13020 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
13021 (eval $ac_try) 2>&5
13023 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13024 test $ac_status = 0; }; }; then :
13026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13027 $as_echo "yes" >&6; }
13029 $as_echo "#define HAVE_CURRENT_BIO_LIST 1" >>confdefs.h
13033 $as_echo "$as_me: failed program was:" >&5
13034 sed 's/^/| /' conftest.
$ac_ext >&5
13036 as_fn_error $?
"no - Please file a bug report at
13037 https://github.com/zfsonlinux/zfs/issues/new" "$LINENO" 5
13054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking block device operation prototypes" >&5
13055 $as_echo_n "checking block device operation prototypes... " >&6; }
13056 tmp_flags
="$EXTRA_KCFLAGS"
13057 EXTRA_KCFLAGS
="${NO_UNUSED_BUT_SET_VARIABLE}"
13060 cat confdefs.h
- <<_ACEOF >conftest.c
13063 #include <linux/blkdev.h>
13065 int blk_open(struct block_device *bdev, fmode_t mode)
13067 int blk_ioctl(struct block_device *bdev, fmode_t mode,
13068 unsigned x, unsigned long y) { return 0; }
13069 int blk_compat_ioctl(struct block_device * bdev, fmode_t mode,
13070 unsigned x, unsigned long y) { return 0; }
13072 static const struct block_device_operations
13073 bops __attribute__ ((unused)) = {
13076 .ioctl = blk_ioctl,
13077 .compat_ioctl = blk_compat_ioctl,
13093 cat - <<_ACEOF >conftest.h
13098 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
13099 echo "obj-m := conftest.o" >build
/Makefile
13101 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
13102 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
13103 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
13104 (eval $ac_try) 2>&5
13106 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13107 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
13108 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
13109 (eval $ac_try) 2>&5
13111 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13112 test $ac_status = 0; }; }; then :
13114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: struct block_device" >&5
13115 $as_echo "struct block_device" >&6; }
13117 $as_echo "#define HAVE_BDEV_BLOCK_DEVICE_OPERATIONS 1" >>confdefs.h
13121 $as_echo "$as_me: failed program was:" >&5
13122 sed 's/^/| /' conftest.
$ac_ext >&5
13124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: struct inode" >&5
13125 $as_echo "struct inode" >&6; }
13133 EXTRA_KCFLAGS
="$tmp_flags"
13136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether block_device_operations.release is void" >&5
13137 $as_echo_n "checking whether block_device_operations.release is void... " >&6; }
13138 tmp_flags
="$EXTRA_KCFLAGS"
13139 EXTRA_KCFLAGS
="${NO_UNUSED_BUT_SET_VARIABLE}"
13142 cat confdefs.h
- <<_ACEOF >conftest.c
13145 #include <linux/blkdev.h>
13147 void blk_release(struct gendisk *g, fmode_t mode) { return; }
13149 static const struct block_device_operations
13150 bops __attribute__ ((unused)) = {
13152 .release = blk_release,
13154 .compat_ioctl = NULL,
13170 cat - <<_ACEOF >conftest.h
13175 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
13176 echo "obj-m := conftest.o" >build
/Makefile
13178 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
13179 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
13180 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
13181 (eval $ac_try) 2>&5
13183 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13184 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
13185 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
13186 (eval $ac_try) 2>&5
13188 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13189 test $ac_status = 0; }; }; then :
13191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: void" >&5
13192 $as_echo "void" >&6; }
13194 $as_echo "#define HAVE_BLOCK_DEVICE_OPERATIONS_RELEASE_VOID 1" >>confdefs.h
13198 $as_echo "$as_me: failed program was:" >&5
13199 sed 's/^/| /' conftest.
$ac_ext >&5
13201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: int" >&5
13202 $as_echo "int" >&6; }
13210 EXTRA_KCFLAGS
="$tmp_flags"
13212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether kernel defines fmode_t" >&5
13213 $as_echo_n "checking whether kernel defines fmode_t... " >&6; }
13216 cat confdefs.h
- <<_ACEOF >conftest.c
13219 #include <linux/types.h>
13225 fmode_t *ptr __attribute__ ((unused));
13235 cat - <<_ACEOF >conftest.h
13240 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
13241 echo "obj-m := conftest.o" >build
/Makefile
13243 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
13244 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
13245 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
13246 (eval $ac_try) 2>&5
13248 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13249 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
13250 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
13251 (eval $ac_try) 2>&5
13253 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13254 test $ac_status = 0; }; }; then :
13256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13257 $as_echo "yes" >&6; }
13259 $as_echo "#define HAVE_FMODE_T 1" >>confdefs.h
13263 $as_echo "$as_me: failed program was:" >&5
13264 sed 's/^/| /' conftest.
$ac_ext >&5
13266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13267 $as_echo "no" >&6; }
13277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether kernel defines KOBJ_NAME_LEN" >&5
13278 $as_echo_n "checking whether kernel defines KOBJ_NAME_LEN... " >&6; }
13281 cat confdefs.h
- <<_ACEOF >conftest.c
13284 #include <linux/kobject.h>
13290 int val __attribute__ ((unused));
13291 val = KOBJ_NAME_LEN;
13301 cat - <<_ACEOF >conftest.h
13306 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
13307 echo "obj-m := conftest.o" >build
/Makefile
13309 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
13310 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
13311 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
13312 (eval $ac_try) 2>&5
13314 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13315 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
13316 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
13317 (eval $ac_try) 2>&5
13319 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13320 test $ac_status = 0; }; }; then :
13322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13323 $as_echo "yes" >&6; }
13325 $as_echo "#define HAVE_KOBJ_NAME_LEN 1" >>confdefs.h
13329 $as_echo "$as_me: failed program was:" >&5
13330 sed 's/^/| /' conftest.
$ac_ext >&5
13332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13333 $as_echo "no" >&6; }
13343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether blkdev_get() wants 3 args" >&5
13344 $as_echo_n "checking whether blkdev_get() wants 3 args... " >&6; }
13347 cat confdefs.h
- <<_ACEOF >conftest.c
13350 #include <linux/fs.h>
13356 struct block_device *bdev = NULL;
13357 (void) blkdev_get(bdev, 0, NULL);
13367 cat - <<_ACEOF >conftest.h
13372 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
13373 echo "obj-m := conftest.o" >build
/Makefile
13375 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
13376 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
13377 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
13378 (eval $ac_try) 2>&5
13380 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13381 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
13382 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
13383 (eval $ac_try) 2>&5
13385 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13386 test $ac_status = 0; }; }; then :
13388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13389 $as_echo "yes" >&6; }
13391 $as_echo "#define HAVE_3ARG_BLKDEV_GET 1" >>confdefs.h
13395 $as_echo "$as_me: failed program was:" >&5
13396 sed 's/^/| /' conftest.
$ac_ext >&5
13398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13399 $as_echo "no" >&6; }
13408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether blkdev_get_by_path() is available" >&5
13409 $as_echo_n "checking whether blkdev_get_by_path() is available... " >&6; }
13413 cat confdefs.h
- <<_ACEOF >conftest.c
13416 #include <linux/fs.h>
13422 blkdev_get_by_path(NULL, 0, NULL);
13432 cat - <<_ACEOF >conftest.h
13437 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
13438 echo "obj-m := conftest.o" >build
/Makefile
13440 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
13441 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
13442 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
13443 (eval $ac_try) 2>&5
13445 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13446 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
13447 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
13448 (eval $ac_try) 2>&5
13450 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13451 test $ac_status = 0; }; }; then :
13454 $as_echo "$as_me: failed program was:" >&5
13455 sed 's/^/| /' conftest.
$ac_ext >&5
13463 if test $rc -ne 0; then :
13465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13466 $as_echo "no" >&6; }
13469 if test "x$enable_linux_builtin" != xyes
; then
13471 grep -q -E '[[:space:]]blkdev_get_by_path[[:space:]]' \
13472 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
13474 if test $rc -ne 0; then
13476 for file in fs
/block_dev.c
; do
13477 grep -q -E "EXPORT_SYMBOL.*(blkdev_get_by_path)" \
13478 "$LINUX/$file" 2>/dev
/null
13480 if test $rc -eq 0; then
13485 if test $export -eq 0; then :
13495 if test $rc -ne 0; then :
13497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13498 $as_echo "no" >&6; }
13502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13503 $as_echo "yes" >&6; }
13505 $as_echo "#define HAVE_BLKDEV_GET_BY_PATH 1" >>confdefs.h
13512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether open_bdev_exclusive() is available" >&5
13513 $as_echo_n "checking whether open_bdev_exclusive() is available... " >&6; }
13517 cat confdefs.h
- <<_ACEOF >conftest.c
13520 #include <linux/fs.h>
13526 open_bdev_exclusive(NULL, 0, NULL);
13536 cat - <<_ACEOF >conftest.h
13541 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
13542 echo "obj-m := conftest.o" >build
/Makefile
13544 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
13545 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
13546 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
13547 (eval $ac_try) 2>&5
13549 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13550 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
13551 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
13552 (eval $ac_try) 2>&5
13554 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13555 test $ac_status = 0; }; }; then :
13558 $as_echo "$as_me: failed program was:" >&5
13559 sed 's/^/| /' conftest.
$ac_ext >&5
13567 if test $rc -ne 0; then :
13569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13570 $as_echo "no" >&6; }
13573 if test "x$enable_linux_builtin" != xyes
; then
13575 grep -q -E '[[:space:]]open_bdev_exclusive[[:space:]]' \
13576 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
13578 if test $rc -ne 0; then
13580 for file in fs
/block_dev.c
; do
13581 grep -q -E "EXPORT_SYMBOL.*(open_bdev_exclusive)" \
13582 "$LINUX/$file" 2>/dev
/null
13584 if test $rc -eq 0; then
13589 if test $export -eq 0; then :
13599 if test $rc -ne 0; then :
13601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13602 $as_echo "no" >&6; }
13606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13607 $as_echo "yes" >&6; }
13609 $as_echo "#define HAVE_OPEN_BDEV_EXCLUSIVE 1" >>confdefs.h
13616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lookup_bdev() is available" >&5
13617 $as_echo_n "checking whether lookup_bdev() is available... " >&6; }
13621 cat confdefs.h
- <<_ACEOF >conftest.c
13624 #include <linux/fs.h>
13640 cat - <<_ACEOF >conftest.h
13645 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
13646 echo "obj-m := conftest.o" >build
/Makefile
13648 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
13649 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
13650 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
13651 (eval $ac_try) 2>&5
13653 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13654 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
13655 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
13656 (eval $ac_try) 2>&5
13658 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13659 test $ac_status = 0; }; }; then :
13662 $as_echo "$as_me: failed program was:" >&5
13663 sed 's/^/| /' conftest.
$ac_ext >&5
13671 if test $rc -ne 0; then :
13673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13674 $as_echo "no" >&6; }
13677 if test "x$enable_linux_builtin" != xyes
; then
13679 grep -q -E '[[:space:]]lookup_bdev[[:space:]]' \
13680 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
13682 if test $rc -ne 0; then
13684 for file in fs
/block_dev.c
; do
13685 grep -q -E "EXPORT_SYMBOL.*(lookup_bdev)" \
13686 "$LINUX/$file" 2>/dev
/null
13688 if test $rc -eq 0; then
13693 if test $export -eq 0; then :
13703 if test $rc -ne 0; then :
13705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13706 $as_echo "no" >&6; }
13710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13711 $as_echo "yes" >&6; }
13713 $as_echo "#define HAVE_LOOKUP_BDEV 1" >>confdefs.h
13721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether invalidate_bdev() wants 1 arg" >&5
13722 $as_echo_n "checking whether invalidate_bdev() wants 1 arg... " >&6; }
13725 cat confdefs.h
- <<_ACEOF >conftest.c
13728 #include <linux/buffer_head.h>
13734 struct block_device *bdev = NULL;
13735 invalidate_bdev(bdev);
13745 cat - <<_ACEOF >conftest.h
13750 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
13751 echo "obj-m := conftest.o" >build
/Makefile
13753 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
13754 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
13755 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
13756 (eval $ac_try) 2>&5
13758 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13759 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
13760 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
13761 (eval $ac_try) 2>&5
13763 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13764 test $ac_status = 0; }; }; then :
13766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13767 $as_echo "yes" >&6; }
13769 $as_echo "#define HAVE_1ARG_INVALIDATE_BDEV 1" >>confdefs.h
13773 $as_echo "$as_me: failed program was:" >&5
13774 sed 's/^/| /' conftest.
$ac_ext >&5
13776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13777 $as_echo "no" >&6; }
13787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether bdev_logical_block_size() is available" >&5
13788 $as_echo_n "checking whether bdev_logical_block_size() is available... " >&6; }
13789 tmp_flags
="$EXTRA_KCFLAGS"
13790 EXTRA_KCFLAGS
="${NO_UNUSED_BUT_SET_VARIABLE}"
13793 cat confdefs.h
- <<_ACEOF >conftest.c
13796 #include <linux/blkdev.h>
13802 struct block_device *bdev = NULL;
13803 bdev_logical_block_size(bdev);
13813 cat - <<_ACEOF >conftest.h
13818 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
13819 echo "obj-m := conftest.o" >build
/Makefile
13821 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
13822 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
13823 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
13824 (eval $ac_try) 2>&5
13826 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13827 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
13828 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
13829 (eval $ac_try) 2>&5
13831 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13832 test $ac_status = 0; }; }; then :
13834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13835 $as_echo "yes" >&6; }
13837 $as_echo "#define HAVE_BDEV_LOGICAL_BLOCK_SIZE 1" >>confdefs.h
13841 $as_echo "$as_me: failed program was:" >&5
13842 sed 's/^/| /' conftest.
$ac_ext >&5
13844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13845 $as_echo "no" >&6; }
13853 EXTRA_KCFLAGS
="$tmp_flags"
13856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether bdev_physical_block_size() is available" >&5
13857 $as_echo_n "checking whether bdev_physical_block_size() is available... " >&6; }
13858 tmp_flags
="$EXTRA_KCFLAGS"
13859 EXTRA_KCFLAGS
="${NO_UNUSED_BUT_SET_VARIABLE}"
13862 cat confdefs.h
- <<_ACEOF >conftest.c
13865 #include <linux/blkdev.h>
13871 struct block_device *bdev = NULL;
13872 bdev_physical_block_size(bdev);
13882 cat - <<_ACEOF >conftest.h
13887 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
13888 echo "obj-m := conftest.o" >build
/Makefile
13890 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
13891 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
13892 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
13893 (eval $ac_try) 2>&5
13895 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13896 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
13897 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
13898 (eval $ac_try) 2>&5
13900 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13901 test $ac_status = 0; }; }; then :
13903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13904 $as_echo "yes" >&6; }
13906 $as_echo "#define HAVE_BDEV_PHYSICAL_BLOCK_SIZE 1" >>confdefs.h
13910 $as_echo "$as_me: failed program was:" >&5
13911 sed 's/^/| /' conftest.
$ac_ext >&5
13913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13914 $as_echo "no" >&6; }
13922 EXTRA_KCFLAGS
="$tmp_flags"
13925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether bio has bi_iter" >&5
13926 $as_echo_n "checking whether bio has bi_iter... " >&6; }
13929 cat confdefs.h
- <<_ACEOF >conftest.c
13932 #include <linux/bio.h>
13939 bio.bi_iter.bi_sector = 0;
13949 cat - <<_ACEOF >conftest.h
13954 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
13955 echo "obj-m := conftest.o" >build
/Makefile
13957 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
13958 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
13959 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
13960 (eval $ac_try) 2>&5
13962 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13963 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
13964 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
13965 (eval $ac_try) 2>&5
13967 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13968 test $ac_status = 0; }; }; then :
13970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13971 $as_echo "yes" >&6; }
13973 $as_echo "#define HAVE_BIO_BVEC_ITER 1" >>confdefs.h
13977 $as_echo "$as_me: failed program was:" >&5
13978 sed 's/^/| /' conftest.
$ac_ext >&5
13980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13981 $as_echo "no" >&6; }
13991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether BIO_RW_FAILFAST_* are defined" >&5
13992 $as_echo_n "checking whether BIO_RW_FAILFAST_* are defined... " >&6; }
13995 cat confdefs.h
- <<_ACEOF >conftest.c
13998 #include <linux/bio.h>
14004 int flags __attribute__ ((unused));
14005 flags = ((1 << BIO_RW_FAILFAST_DEV) |
14006 (1 << BIO_RW_FAILFAST_TRANSPORT) |
14007 (1 << BIO_RW_FAILFAST_DRIVER));
14017 cat - <<_ACEOF >conftest.h
14022 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
14023 echo "obj-m := conftest.o" >build
/Makefile
14025 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
14026 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
14027 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14028 (eval $ac_try) 2>&5
14030 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14031 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
14032 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14033 (eval $ac_try) 2>&5
14035 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14036 test $ac_status = 0; }; }; then :
14038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14039 $as_echo "yes" >&6; }
14041 $as_echo "#define HAVE_BIO_RW_FAILFAST_DTD 1" >>confdefs.h
14045 $as_echo "$as_me: failed program was:" >&5
14046 sed 's/^/| /' conftest.
$ac_ext >&5
14048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14049 $as_echo "no" >&6; }
14059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether REQ_FAILFAST_MASK is defined" >&5
14060 $as_echo_n "checking whether REQ_FAILFAST_MASK is defined... " >&6; }
14063 cat confdefs.h
- <<_ACEOF >conftest.c
14066 #include <linux/bio.h>
14072 int flags __attribute__ ((unused));
14073 flags = REQ_FAILFAST_MASK;
14083 cat - <<_ACEOF >conftest.h
14088 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
14089 echo "obj-m := conftest.o" >build
/Makefile
14091 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
14092 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
14093 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14094 (eval $ac_try) 2>&5
14096 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14097 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
14098 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14099 (eval $ac_try) 2>&5
14101 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14102 test $ac_status = 0; }; }; then :
14104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14105 $as_echo "yes" >&6; }
14107 $as_echo "#define HAVE_REQ_FAILFAST_MASK 1" >>confdefs.h
14111 $as_echo "$as_me: failed program was:" >&5
14112 sed 's/^/| /' conftest.
$ac_ext >&5
14114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14115 $as_echo "no" >&6; }
14125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether bio_end_io_t wants 1 arg" >&5
14126 $as_echo_n "checking whether bio_end_io_t wants 1 arg... " >&6; }
14129 cat confdefs.h
- <<_ACEOF >conftest.c
14132 #include <linux/bio.h>
14134 void wanted_end_io(struct bio *bio) { return; }
14136 bio_end_io_t *end_io __attribute__ ((unused)) = wanted_end_io;
14151 cat - <<_ACEOF >conftest.h
14156 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
14157 echo "obj-m := conftest.o" >build
/Makefile
14159 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
14160 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
14161 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14162 (eval $ac_try) 2>&5
14164 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14165 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
14166 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14167 (eval $ac_try) 2>&5
14169 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14170 test $ac_status = 0; }; }; then :
14172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14173 $as_echo "yes" >&6; }
14175 $as_echo "#define HAVE_1ARG_BIO_END_IO_T 1" >>confdefs.h
14179 $as_echo "$as_me: failed program was:" >&5
14180 sed 's/^/| /' conftest.
$ac_ext >&5
14182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14183 $as_echo "no" >&6; }
14193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether BIO_RW_BARRIER is defined" >&5
14194 $as_echo_n "checking whether BIO_RW_BARRIER is defined... " >&6; }
14197 cat confdefs.h
- <<_ACEOF >conftest.c
14200 #include <linux/bio.h>
14206 int flags __attribute__ ((unused));
14207 flags = BIO_RW_BARRIER;
14217 cat - <<_ACEOF >conftest.h
14222 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
14223 echo "obj-m := conftest.o" >build
/Makefile
14225 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
14226 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
14227 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14228 (eval $ac_try) 2>&5
14230 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14231 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
14232 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14233 (eval $ac_try) 2>&5
14235 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14236 test $ac_status = 0; }; }; then :
14238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14239 $as_echo "yes" >&6; }
14241 $as_echo "#define HAVE_BIO_RW_BARRIER 1" >>confdefs.h
14245 $as_echo "$as_me: failed program was:" >&5
14246 sed 's/^/| /' conftest.
$ac_ext >&5
14248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14249 $as_echo "no" >&6; }
14259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether BIO_RW_DISCARD is defined" >&5
14260 $as_echo_n "checking whether BIO_RW_DISCARD is defined... " >&6; }
14263 cat confdefs.h
- <<_ACEOF >conftest.c
14266 #include <linux/bio.h>
14272 int flags __attribute__ ((unused));
14273 flags = BIO_RW_DISCARD;
14283 cat - <<_ACEOF >conftest.h
14288 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
14289 echo "obj-m := conftest.o" >build
/Makefile
14291 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
14292 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
14293 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14294 (eval $ac_try) 2>&5
14296 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14297 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
14298 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14299 (eval $ac_try) 2>&5
14301 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14302 test $ac_status = 0; }; }; then :
14304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14305 $as_echo "yes" >&6; }
14307 $as_echo "#define HAVE_BIO_RW_DISCARD 1" >>confdefs.h
14311 $as_echo "$as_me: failed program was:" >&5
14312 sed 's/^/| /' conftest.
$ac_ext >&5
14314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14315 $as_echo "no" >&6; }
14325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether blk_queue_flush() is available" >&5
14326 $as_echo_n "checking whether blk_queue_flush() is available... " >&6; }
14327 tmp_flags
="$EXTRA_KCFLAGS"
14328 EXTRA_KCFLAGS
="${NO_UNUSED_BUT_SET_VARIABLE}"
14331 cat confdefs.h
- <<_ACEOF >conftest.c
14334 #include <linux/blkdev.h>
14340 struct request_queue *q = NULL;
14341 (void) blk_queue_flush(q, REQ_FLUSH);
14351 cat - <<_ACEOF >conftest.h
14356 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
14357 echo "obj-m := conftest.o" >build
/Makefile
14359 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
14360 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
14361 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14362 (eval $ac_try) 2>&5
14364 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14365 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
14366 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14367 (eval $ac_try) 2>&5
14369 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14370 test $ac_status = 0; }; }; then :
14372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14373 $as_echo "yes" >&6; }
14375 $as_echo "#define HAVE_BLK_QUEUE_FLUSH 1" >>confdefs.h
14379 $as_echo "$as_me: failed program was:" >&5
14380 sed 's/^/| /' conftest.
$ac_ext >&5
14382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14383 $as_echo "no" >&6; }
14392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether blk_queue_flush() is GPL-only" >&5
14393 $as_echo_n "checking whether blk_queue_flush() is GPL-only... " >&6; }
14396 cat confdefs.h
- <<_ACEOF >conftest.c
14399 #include <linux/module.h>
14400 #include <linux/blkdev.h>
14402 MODULE_LICENSE("$ZFS_META_LICENSE");
14408 struct request_queue *q = NULL;
14409 (void) blk_queue_flush(q, REQ_FLUSH);
14419 cat - <<_ACEOF >conftest.h
14424 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
14425 echo "obj-m := conftest.o" >build
/Makefile
14427 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
14428 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
14429 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14430 (eval $ac_try) 2>&5
14432 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14433 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
14434 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14435 (eval $ac_try) 2>&5
14437 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14438 test $ac_status = 0; }; }; then :
14440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14441 $as_echo "no" >&6; }
14444 $as_echo "$as_me: failed program was:" >&5
14445 sed 's/^/| /' conftest.
$ac_ext >&5
14447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14448 $as_echo "yes" >&6; }
14450 $as_echo "#define HAVE_BLK_QUEUE_FLUSH_GPL_ONLY 1" >>confdefs.h
14459 EXTRA_KCFLAGS
="$tmp_flags"
14462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether blk_queue_max_hw_sectors() is available" >&5
14463 $as_echo_n "checking whether blk_queue_max_hw_sectors() is available... " >&6; }
14464 tmp_flags
="$EXTRA_KCFLAGS"
14465 EXTRA_KCFLAGS
="${NO_UNUSED_BUT_SET_VARIABLE}"
14468 cat confdefs.h
- <<_ACEOF >conftest.c
14471 #include <linux/blkdev.h>
14477 struct request_queue *q = NULL;
14478 (void) blk_queue_max_hw_sectors(q, BLK_SAFE_MAX_SECTORS);
14488 cat - <<_ACEOF >conftest.h
14493 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
14494 echo "obj-m := conftest.o" >build
/Makefile
14496 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
14497 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
14498 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14499 (eval $ac_try) 2>&5
14501 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14502 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
14503 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14504 (eval $ac_try) 2>&5
14506 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14507 test $ac_status = 0; }; }; then :
14509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14510 $as_echo "yes" >&6; }
14512 $as_echo "#define HAVE_BLK_QUEUE_MAX_HW_SECTORS 1" >>confdefs.h
14516 $as_echo "$as_me: failed program was:" >&5
14517 sed 's/^/| /' conftest.
$ac_ext >&5
14519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14520 $as_echo "no" >&6; }
14528 EXTRA_KCFLAGS
="$tmp_flags"
14531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether blk_queue_max_segments() is available" >&5
14532 $as_echo_n "checking whether blk_queue_max_segments() is available... " >&6; }
14533 tmp_flags
="$EXTRA_KCFLAGS"
14534 EXTRA_KCFLAGS
="${NO_UNUSED_BUT_SET_VARIABLE}"
14537 cat confdefs.h
- <<_ACEOF >conftest.c
14540 #include <linux/blkdev.h>
14546 struct request_queue *q = NULL;
14547 (void) blk_queue_max_segments(q, BLK_MAX_SEGMENTS);
14557 cat - <<_ACEOF >conftest.h
14562 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
14563 echo "obj-m := conftest.o" >build
/Makefile
14565 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
14566 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
14567 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14568 (eval $ac_try) 2>&5
14570 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14571 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
14572 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14573 (eval $ac_try) 2>&5
14575 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14576 test $ac_status = 0; }; }; then :
14578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14579 $as_echo "yes" >&6; }
14581 $as_echo "#define HAVE_BLK_QUEUE_MAX_SEGMENTS 1" >>confdefs.h
14585 $as_echo "$as_me: failed program was:" >&5
14586 sed 's/^/| /' conftest.
$ac_ext >&5
14588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14589 $as_echo "no" >&6; }
14597 EXTRA_KCFLAGS
="$tmp_flags"
14600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether get_disk_ro() is available" >&5
14601 $as_echo_n "checking whether get_disk_ro() is available... " >&6; }
14602 tmp_flags
="$EXTRA_KCFLAGS"
14603 EXTRA_KCFLAGS
="${NO_UNUSED_BUT_SET_VARIABLE}"
14606 cat confdefs.h
- <<_ACEOF >conftest.c
14609 #include <linux/blkdev.h>
14615 struct gendisk *disk = NULL;
14616 (void) get_disk_ro(disk);
14626 cat - <<_ACEOF >conftest.h
14631 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
14632 echo "obj-m := conftest.o" >build
/Makefile
14634 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
14635 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
14636 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14637 (eval $ac_try) 2>&5
14639 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14640 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
14641 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14642 (eval $ac_try) 2>&5
14644 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14645 test $ac_status = 0; }; }; then :
14647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14648 $as_echo "yes" >&6; }
14650 $as_echo "#define HAVE_GET_DISK_RO 1" >>confdefs.h
14654 $as_echo "$as_me: failed program was:" >&5
14655 sed 's/^/| /' conftest.
$ac_ext >&5
14657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14658 $as_echo "no" >&6; }
14666 EXTRA_KCFLAGS
="$tmp_flags"
14668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether get_gendisk() is available" >&5
14669 $as_echo_n "checking whether get_gendisk() is available... " >&6; }
14673 cat confdefs.h
- <<_ACEOF >conftest.c
14676 #include <linux/genhd.h>
14682 get_gendisk(0, NULL);
14692 cat - <<_ACEOF >conftest.h
14697 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
14698 echo "obj-m := conftest.o" >build
/Makefile
14700 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
14701 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
14702 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14703 (eval $ac_try) 2>&5
14705 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14706 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
14707 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14708 (eval $ac_try) 2>&5
14710 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14711 test $ac_status = 0; }; }; then :
14714 $as_echo "$as_me: failed program was:" >&5
14715 sed 's/^/| /' conftest.
$ac_ext >&5
14723 if test $rc -ne 0; then :
14725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14726 $as_echo "no" >&6; }
14729 if test "x$enable_linux_builtin" != xyes
; then
14731 grep -q -E '[[:space:]]get_gendisk[[:space:]]' \
14732 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
14734 if test $rc -ne 0; then
14736 for file in block
/genhd.c
; do
14737 grep -q -E "EXPORT_SYMBOL.*(get_gendisk)" \
14738 "$LINUX/$file" 2>/dev
/null
14740 if test $rc -eq 0; then
14745 if test $export -eq 0; then :
14755 if test $rc -ne 0; then :
14757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14758 $as_echo "no" >&6; }
14762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14763 $as_echo "yes" >&6; }
14765 $as_echo "#define HAVE_GET_GENDISK 1" >>confdefs.h
14773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ql->discard_granularity is available" >&5
14774 $as_echo_n "checking whether ql->discard_granularity is available... " >&6; }
14777 cat confdefs.h
- <<_ACEOF >conftest.c
14780 #include <linux/blkdev.h>
14786 struct queue_limits ql __attribute__ ((unused));
14788 ql.discard_granularity = 0;
14798 cat - <<_ACEOF >conftest.h
14803 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
14804 echo "obj-m := conftest.o" >build
/Makefile
14806 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
14807 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
14808 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14809 (eval $ac_try) 2>&5
14811 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14812 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
14813 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14814 (eval $ac_try) 2>&5
14816 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14817 test $ac_status = 0; }; }; then :
14819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14820 $as_echo "yes" >&6; }
14822 $as_echo "#define HAVE_DISCARD_GRANULARITY 1" >>confdefs.h
14826 $as_echo "$as_me: failed program was:" >&5
14827 sed 's/^/| /' conftest.
$ac_ext >&5
14829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14830 $as_echo "no" >&6; }
14840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether super_block uses const struct xattr_handler" >&5
14841 $as_echo_n "checking whether super_block uses const struct xattr_handler... " >&6; }
14844 cat confdefs.h
- <<_ACEOF >conftest.c
14847 #include <linux/fs.h>
14848 #include <linux/xattr.h>
14850 const struct xattr_handler xattr_test_handler = {
14856 const struct xattr_handler *xattr_handlers[] = {
14857 &xattr_test_handler,
14860 const struct super_block sb __attribute__ ((unused)) = {
14861 .s_xattr = xattr_handlers,
14877 cat - <<_ACEOF >conftest.h
14882 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
14883 echo "obj-m := conftest.o" >build
/Makefile
14885 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
14886 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
14887 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14888 (eval $ac_try) 2>&5
14890 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14891 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
14892 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14893 (eval $ac_try) 2>&5
14895 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14896 test $ac_status = 0; }; }; then :
14898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14899 $as_echo "yes" >&6; }
14901 $as_echo "#define HAVE_CONST_XATTR_HANDLER 1" >>confdefs.h
14905 $as_echo "$as_me: failed program was:" >&5
14906 sed 's/^/| /' conftest.
$ac_ext >&5
14908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14909 $as_echo "no" >&6; }
14919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether xattr_handler has name" >&5
14920 $as_echo_n "checking whether xattr_handler has name... " >&6; }
14923 cat confdefs.h
- <<_ACEOF >conftest.c
14926 #include <linux/xattr.h>
14928 static const struct xattr_handler
14929 xops __attribute__ ((unused)) = {
14930 .name = XATTR_NAME_POSIX_ACL_ACCESS,
14946 cat - <<_ACEOF >conftest.h
14951 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
14952 echo "obj-m := conftest.o" >build
/Makefile
14954 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
14955 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
14956 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14957 (eval $ac_try) 2>&5
14959 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14960 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
14961 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14962 (eval $ac_try) 2>&5
14964 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14965 test $ac_status = 0; }; }; then :
14967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14968 $as_echo "yes" >&6; }
14970 $as_echo "#define HAVE_XATTR_HANDLER_NAME 1" >>confdefs.h
14974 $as_echo "$as_me: failed program was:" >&5
14975 sed 's/^/| /' conftest.
$ac_ext >&5
14977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14978 $as_echo "no" >&6; }
14988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether xattr_handler->get() wants xattr_handler" >&5
14989 $as_echo_n "checking whether xattr_handler->get() wants xattr_handler... " >&6; }
14992 cat confdefs.h
- <<_ACEOF >conftest.c
14995 #include <linux/xattr.h>
14997 int get(const struct xattr_handler *handler,
14998 struct dentry *dentry, const char *name,
14999 void *buffer, size_t size) { return 0; }
15000 static const struct xattr_handler
15001 xops __attribute__ ((unused)) = {
15018 cat - <<_ACEOF >conftest.h
15023 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
15024 echo "obj-m := conftest.o" >build
/Makefile
15026 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
15027 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
15028 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15029 (eval $ac_try) 2>&5
15031 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15032 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
15033 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15034 (eval $ac_try) 2>&5
15036 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15037 test $ac_status = 0; }; }; then :
15039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15040 $as_echo "yes" >&6; }
15042 $as_echo "#define HAVE_XATTR_GET_HANDLER 1" >>confdefs.h
15046 $as_echo "$as_me: failed program was:" >&5
15047 sed 's/^/| /' conftest.
$ac_ext >&5
15049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15050 $as_echo "no" >&6; }
15051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether xattr_handler->get() wants dentry" >&5
15052 $as_echo_n "checking whether xattr_handler->get() wants dentry... " >&6; }
15055 cat confdefs.h
- <<_ACEOF >conftest.c
15058 #include <linux/xattr.h>
15060 int get(struct dentry *dentry, const char *name,
15061 void *buffer, size_t size, int handler_flags)
15063 static const struct xattr_handler
15064 xops __attribute__ ((unused)) = {
15081 cat - <<_ACEOF >conftest.h
15086 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
15087 echo "obj-m := conftest.o" >build
/Makefile
15089 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
15090 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
15091 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15092 (eval $ac_try) 2>&5
15094 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15095 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
15096 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15097 (eval $ac_try) 2>&5
15099 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15100 test $ac_status = 0; }; }; then :
15102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15103 $as_echo "yes" >&6; }
15105 $as_echo "#define HAVE_XATTR_GET_DENTRY 1" >>confdefs.h
15109 $as_echo "$as_me: failed program was:" >&5
15110 sed 's/^/| /' conftest.
$ac_ext >&5
15112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15113 $as_echo "no" >&6; }
15114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether xattr_handler->get() wants inode" >&5
15115 $as_echo_n "checking whether xattr_handler->get() wants inode... " >&6; }
15118 cat confdefs.h
- <<_ACEOF >conftest.c
15121 #include <linux/xattr.h>
15123 int get(struct inode *ip, const char *name,
15124 void *buffer, size_t size) { return 0; }
15125 static const struct xattr_handler
15126 xops __attribute__ ((unused)) = {
15143 cat - <<_ACEOF >conftest.h
15148 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
15149 echo "obj-m := conftest.o" >build
/Makefile
15151 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
15152 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
15153 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15154 (eval $ac_try) 2>&5
15156 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15157 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
15158 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15159 (eval $ac_try) 2>&5
15161 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15162 test $ac_status = 0; }; }; then :
15164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15165 $as_echo "yes" >&6; }
15167 $as_echo "#define HAVE_XATTR_GET_INODE 1" >>confdefs.h
15171 $as_echo "$as_me: failed program was:" >&5
15172 sed 's/^/| /' conftest.
$ac_ext >&5
15174 as_fn_error $?
"no; please file a bug report" "$LINENO" 5
15198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether xattr_handler->set() wants xattr_handler" >&5
15199 $as_echo_n "checking whether xattr_handler->set() wants xattr_handler... " >&6; }
15202 cat confdefs.h
- <<_ACEOF >conftest.c
15205 #include <linux/xattr.h>
15207 int set(const struct xattr_handler *handler,
15208 struct dentry *dentry, const char *name,
15209 const void *buffer, size_t size, int flags)
15211 static const struct xattr_handler
15212 xops __attribute__ ((unused)) = {
15229 cat - <<_ACEOF >conftest.h
15234 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
15235 echo "obj-m := conftest.o" >build
/Makefile
15237 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
15238 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
15239 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15240 (eval $ac_try) 2>&5
15242 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15243 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
15244 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15245 (eval $ac_try) 2>&5
15247 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15248 test $ac_status = 0; }; }; then :
15250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15251 $as_echo "yes" >&6; }
15253 $as_echo "#define HAVE_XATTR_SET_HANDLER 1" >>confdefs.h
15257 $as_echo "$as_me: failed program was:" >&5
15258 sed 's/^/| /' conftest.
$ac_ext >&5
15260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15261 $as_echo "no" >&6; }
15262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether xattr_handler->set() wants dentry" >&5
15263 $as_echo_n "checking whether xattr_handler->set() wants dentry... " >&6; }
15266 cat confdefs.h
- <<_ACEOF >conftest.c
15269 #include <linux/xattr.h>
15271 int set(struct dentry *dentry, const char *name,
15272 const void *buffer, size_t size, int flags,
15273 int handler_flags) { return 0; }
15274 static const struct xattr_handler
15275 xops __attribute__ ((unused)) = {
15292 cat - <<_ACEOF >conftest.h
15297 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
15298 echo "obj-m := conftest.o" >build
/Makefile
15300 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
15301 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
15302 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15303 (eval $ac_try) 2>&5
15305 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15306 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
15307 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15308 (eval $ac_try) 2>&5
15310 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15311 test $ac_status = 0; }; }; then :
15313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15314 $as_echo "yes" >&6; }
15316 $as_echo "#define HAVE_XATTR_SET_DENTRY 1" >>confdefs.h
15320 $as_echo "$as_me: failed program was:" >&5
15321 sed 's/^/| /' conftest.
$ac_ext >&5
15323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15324 $as_echo "no" >&6; }
15325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether xattr_handler->set() wants inode" >&5
15326 $as_echo_n "checking whether xattr_handler->set() wants inode... " >&6; }
15329 cat confdefs.h
- <<_ACEOF >conftest.c
15332 #include <linux/xattr.h>
15334 int set(struct inode *ip, const char *name,
15335 const void *buffer, size_t size, int flags)
15337 static const struct xattr_handler
15338 xops __attribute__ ((unused)) = {
15355 cat - <<_ACEOF >conftest.h
15360 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
15361 echo "obj-m := conftest.o" >build
/Makefile
15363 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
15364 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
15365 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15366 (eval $ac_try) 2>&5
15368 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15369 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
15370 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15371 (eval $ac_try) 2>&5
15373 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15374 test $ac_status = 0; }; }; then :
15376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15377 $as_echo "yes" >&6; }
15379 $as_echo "#define HAVE_XATTR_SET_INODE 1" >>confdefs.h
15383 $as_echo "$as_me: failed program was:" >&5
15384 sed 's/^/| /' conftest.
$ac_ext >&5
15386 as_fn_error $?
"no; please file a bug report" "$LINENO" 5
15410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether xattr_handler->list() wants simple" >&5
15411 $as_echo_n "checking whether xattr_handler->list() wants simple... " >&6; }
15414 cat confdefs.h
- <<_ACEOF >conftest.c
15417 #include <linux/xattr.h>
15419 bool list(struct dentry *dentry) { return 0; }
15420 static const struct xattr_handler
15421 xops __attribute__ ((unused)) = {
15438 cat - <<_ACEOF >conftest.h
15443 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
15444 echo "obj-m := conftest.o" >build
/Makefile
15446 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
15447 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
15448 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15449 (eval $ac_try) 2>&5
15451 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15452 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
15453 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15454 (eval $ac_try) 2>&5
15456 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15457 test $ac_status = 0; }; }; then :
15459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15460 $as_echo "yes" >&6; }
15462 $as_echo "#define HAVE_XATTR_LIST_SIMPLE 1" >>confdefs.h
15466 $as_echo "$as_me: failed program was:" >&5
15467 sed 's/^/| /' conftest.
$ac_ext >&5
15469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15470 $as_echo "no" >&6; }
15471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether xattr_handler->list() wants xattr_handler" >&5
15472 $as_echo_n "checking whether xattr_handler->list() wants xattr_handler... " >&6; }
15475 cat confdefs.h
- <<_ACEOF >conftest.c
15478 #include <linux/xattr.h>
15480 size_t list(const struct xattr_handler *handler,
15481 struct dentry *dentry, char *list, size_t list_size,
15482 const char *name, size_t name_len) { return 0; }
15483 static const struct xattr_handler
15484 xops __attribute__ ((unused)) = {
15501 cat - <<_ACEOF >conftest.h
15506 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
15507 echo "obj-m := conftest.o" >build
/Makefile
15509 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
15510 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
15511 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15512 (eval $ac_try) 2>&5
15514 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15515 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
15516 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15517 (eval $ac_try) 2>&5
15519 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15520 test $ac_status = 0; }; }; then :
15522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15523 $as_echo "yes" >&6; }
15525 $as_echo "#define HAVE_XATTR_LIST_HANDLER 1" >>confdefs.h
15529 $as_echo "$as_me: failed program was:" >&5
15530 sed 's/^/| /' conftest.
$ac_ext >&5
15532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15533 $as_echo "no" >&6; }
15534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether xattr_handler->list() wants dentry" >&5
15535 $as_echo_n "checking whether xattr_handler->list() wants dentry... " >&6; }
15538 cat confdefs.h
- <<_ACEOF >conftest.c
15541 #include <linux/xattr.h>
15543 size_t list(struct dentry *dentry,
15544 char *list, size_t list_size,
15545 const char *name, size_t name_len,
15546 int handler_flags) { return 0; }
15547 static const struct xattr_handler
15548 xops __attribute__ ((unused)) = {
15565 cat - <<_ACEOF >conftest.h
15570 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
15571 echo "obj-m := conftest.o" >build
/Makefile
15573 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
15574 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
15575 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15576 (eval $ac_try) 2>&5
15578 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15579 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
15580 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15581 (eval $ac_try) 2>&5
15583 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15584 test $ac_status = 0; }; }; then :
15586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15587 $as_echo "yes" >&6; }
15589 $as_echo "#define HAVE_XATTR_LIST_DENTRY 1" >>confdefs.h
15593 $as_echo "$as_me: failed program was:" >&5
15594 sed 's/^/| /' conftest.
$ac_ext >&5
15596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15597 $as_echo "no" >&6; }
15598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether xattr_handler->list() wants inode" >&5
15599 $as_echo_n "checking whether xattr_handler->list() wants inode... " >&6; }
15602 cat confdefs.h
- <<_ACEOF >conftest.c
15605 #include <linux/xattr.h>
15607 size_t list(struct inode *ip, char *lst,
15608 size_t list_size, const char *name,
15609 size_t name_len) { return 0; }
15610 static const struct xattr_handler
15611 xops __attribute__ ((unused)) = {
15628 cat - <<_ACEOF >conftest.h
15633 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
15634 echo "obj-m := conftest.o" >build
/Makefile
15636 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
15637 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
15638 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15639 (eval $ac_try) 2>&5
15641 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15642 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
15643 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15644 (eval $ac_try) 2>&5
15646 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15647 test $ac_status = 0; }; }; then :
15649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15650 $as_echo "yes" >&6; }
15652 $as_echo "#define HAVE_XATTR_LIST_INODE 1" >>confdefs.h
15656 $as_echo "$as_me: failed program was:" >&5
15657 sed 's/^/| /' conftest.
$ac_ext >&5
15659 as_fn_error $?
"no; please file a bug report" "$LINENO" 5
15690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether inode_owner_or_capable() exists" >&5
15691 $as_echo_n "checking whether inode_owner_or_capable() exists... " >&6; }
15694 cat confdefs.h
- <<_ACEOF >conftest.c
15697 #include <linux/fs.h>
15703 struct inode *ip = NULL;
15704 (void) inode_owner_or_capable(ip);
15714 cat - <<_ACEOF >conftest.h
15719 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
15720 echo "obj-m := conftest.o" >build
/Makefile
15722 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
15723 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
15724 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15725 (eval $ac_try) 2>&5
15727 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15728 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
15729 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15730 (eval $ac_try) 2>&5
15732 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15733 test $ac_status = 0; }; }; then :
15735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15736 $as_echo "yes" >&6; }
15738 $as_echo "#define HAVE_INODE_OWNER_OR_CAPABLE 1" >>confdefs.h
15742 $as_echo "$as_me: failed program was:" >&5
15743 sed 's/^/| /' conftest.
$ac_ext >&5
15745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15746 $as_echo "no" >&6; }
15747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether is_owner_or_cap() exists" >&5
15748 $as_echo_n "checking whether is_owner_or_cap() exists... " >&6; }
15751 cat confdefs.h
- <<_ACEOF >conftest.c
15754 #include <linux/fs.h>
15755 #include <linux/sched.h>
15761 struct inode *ip = NULL;
15762 (void) is_owner_or_cap(ip);
15772 cat - <<_ACEOF >conftest.h
15777 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
15778 echo "obj-m := conftest.o" >build
/Makefile
15780 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
15781 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
15782 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15783 (eval $ac_try) 2>&5
15785 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15786 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
15787 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15788 (eval $ac_try) 2>&5
15790 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15791 test $ac_status = 0; }; }; then :
15793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15794 $as_echo "yes" >&6; }
15796 $as_echo "#define HAVE_IS_OWNER_OR_CAP 1" >>confdefs.h
15800 $as_echo "$as_me: failed program was:" >&5
15801 sed 's/^/| /' conftest.
$ac_ext >&5
15803 as_fn_error $?
"no - Please file a bug report at
15804 https://github.com/zfsonlinux/zfs/issues/new" "$LINENO" 5
15821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether posix_acl_from_xattr() needs user_ns" >&5
15822 $as_echo_n "checking whether posix_acl_from_xattr() needs user_ns... " >&6; }
15825 cat confdefs.h
- <<_ACEOF >conftest.c
15828 #include <linux/cred.h>
15829 #include <linux/fs.h>
15830 #include <linux/posix_acl_xattr.h>
15836 posix_acl_from_xattr(&init_user_ns, NULL, 0);
15846 cat - <<_ACEOF >conftest.h
15851 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
15852 echo "obj-m := conftest.o" >build
/Makefile
15854 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
15855 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
15856 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15857 (eval $ac_try) 2>&5
15859 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15860 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
15861 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15862 (eval $ac_try) 2>&5
15864 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15865 test $ac_status = 0; }; }; then :
15867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15868 $as_echo "yes" >&6; }
15870 $as_echo "#define HAVE_POSIX_ACL_FROM_XATTR_USERNS 1" >>confdefs.h
15874 $as_echo "$as_me: failed program was:" >&5
15875 sed 's/^/| /' conftest.
$ac_ext >&5
15877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15878 $as_echo "no" >&6; }
15888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether posix_acl_release() is available" >&5
15889 $as_echo_n "checking whether posix_acl_release() is available... " >&6; }
15892 cat confdefs.h
- <<_ACEOF >conftest.c
15895 #include <linux/cred.h>
15896 #include <linux/fs.h>
15897 #include <linux/posix_acl.h>
15903 struct posix_acl* tmp = posix_acl_alloc(1, 0);
15904 posix_acl_release(tmp);
15914 cat - <<_ACEOF >conftest.h
15919 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
15920 echo "obj-m := conftest.o" >build
/Makefile
15922 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
15923 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
15924 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15925 (eval $ac_try) 2>&5
15927 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15928 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
15929 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15930 (eval $ac_try) 2>&5
15932 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15933 test $ac_status = 0; }; }; then :
15935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15936 $as_echo "yes" >&6; }
15938 $as_echo "#define HAVE_POSIX_ACL_RELEASE 1" >>confdefs.h
15942 $as_echo "$as_me: failed program was:" >&5
15943 sed 's/^/| /' conftest.
$ac_ext >&5
15945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15946 $as_echo "no" >&6; }
15955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether posix_acl_release() is GPL-only" >&5
15956 $as_echo_n "checking whether posix_acl_release() is GPL-only... " >&6; }
15959 cat confdefs.h
- <<_ACEOF >conftest.c
15962 #include <linux/cred.h>
15963 #include <linux/fs.h>
15964 #include <linux/posix_acl.h>
15966 MODULE_LICENSE("$ZFS_META_LICENSE");
15972 struct posix_acl* tmp = posix_acl_alloc(1, 0);
15973 posix_acl_release(tmp);
15983 cat - <<_ACEOF >conftest.h
15988 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
15989 echo "obj-m := conftest.o" >build
/Makefile
15991 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
15992 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
15993 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15994 (eval $ac_try) 2>&5
15996 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15997 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
15998 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15999 (eval $ac_try) 2>&5
16001 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16002 test $ac_status = 0; }; }; then :
16004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16005 $as_echo "no" >&6; }
16008 $as_echo "$as_me: failed program was:" >&5
16009 sed 's/^/| /' conftest.
$ac_ext >&5
16011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16012 $as_echo "yes" >&6; }
16014 $as_echo "#define HAVE_POSIX_ACL_RELEASE_GPL_ONLY 1" >>confdefs.h
16025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether posix_acl_chmod exists" >&5
16026 $as_echo_n "checking whether posix_acl_chmod exists... " >&6; }
16029 cat confdefs.h
- <<_ACEOF >conftest.c
16032 #include <linux/fs.h>
16033 #include <linux/posix_acl.h>
16039 posix_acl_chmod(NULL, 0, 0)
16049 cat - <<_ACEOF >conftest.h
16054 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
16055 echo "obj-m := conftest.o" >build
/Makefile
16057 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
16058 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
16059 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16060 (eval $ac_try) 2>&5
16062 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16063 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
16064 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16065 (eval $ac_try) 2>&5
16067 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16068 test $ac_status = 0; }; }; then :
16070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16071 $as_echo "yes" >&6; }
16073 $as_echo "#define HAVE_POSIX_ACL_CHMOD 1" >>confdefs.h
16077 $as_echo "$as_me: failed program was:" >&5
16078 sed 's/^/| /' conftest.
$ac_ext >&5
16080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16081 $as_echo "no" >&6; }
16090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __posix_acl_chmod exists" >&5
16091 $as_echo_n "checking whether __posix_acl_chmod exists... " >&6; }
16094 cat confdefs.h
- <<_ACEOF >conftest.c
16097 #include <linux/fs.h>
16098 #include <linux/posix_acl.h>
16104 __posix_acl_chmod(NULL, 0, 0)
16114 cat - <<_ACEOF >conftest.h
16119 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
16120 echo "obj-m := conftest.o" >build
/Makefile
16122 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
16123 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
16124 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16125 (eval $ac_try) 2>&5
16127 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16128 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
16129 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16130 (eval $ac_try) 2>&5
16132 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16133 test $ac_status = 0; }; }; then :
16135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16136 $as_echo "yes" >&6; }
16138 $as_echo "#define HAVE___POSIX_ACL_CHMOD 1" >>confdefs.h
16142 $as_echo "$as_me: failed program was:" >&5
16143 sed 's/^/| /' conftest.
$ac_ext >&5
16145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16146 $as_echo "no" >&6; }
16156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether inode has i_acl and i_default_acl" >&5
16157 $as_echo_n "checking whether inode has i_acl and i_default_acl... " >&6; }
16160 cat confdefs.h
- <<_ACEOF >conftest.c
16163 #include <linux/fs.h>
16171 ino.i_default_acl = NULL;
16181 cat - <<_ACEOF >conftest.h
16186 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
16187 echo "obj-m := conftest.o" >build
/Makefile
16189 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
16190 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
16191 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16192 (eval $ac_try) 2>&5
16194 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16195 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
16196 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16197 (eval $ac_try) 2>&5
16199 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16200 test $ac_status = 0; }; }; then :
16202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16203 $as_echo "yes" >&6; }
16205 $as_echo "#define HAVE_POSIX_ACL_CACHING 1" >>confdefs.h
16209 $as_echo "$as_me: failed program was:" >&5
16210 sed 's/^/| /' conftest.
$ac_ext >&5
16212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16213 $as_echo "no" >&6; }
16223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether posix_acl_equiv_mode() wants umode_t" >&5
16224 $as_echo_n "checking whether posix_acl_equiv_mode() wants umode_t... " >&6; }
16227 cat confdefs.h
- <<_ACEOF >conftest.c
16230 #include <linux/fs.h>
16231 #include <linux/posix_acl.h>
16238 posix_acl_equiv_mode(NULL,&tmp);
16248 cat - <<_ACEOF >conftest.h
16253 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
16254 echo "obj-m := conftest.o" >build
/Makefile
16256 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
16257 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
16258 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16259 (eval $ac_try) 2>&5
16261 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16262 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
16263 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16264 (eval $ac_try) 2>&5
16266 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16267 test $ac_status = 0; }; }; then :
16269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16270 $as_echo "yes" >&6; }
16272 $as_echo "#define HAVE_POSIX_ACL_EQUIV_MODE_UMODE_T 1" >>confdefs.h
16276 $as_echo "$as_me: failed program was:" >&5
16277 sed 's/^/| /' conftest.
$ac_ext >&5
16279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16280 $as_echo "no" >&6; }
16290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->permission() exists" >&5
16291 $as_echo_n "checking whether iops->permission() exists... " >&6; }
16294 cat confdefs.h
- <<_ACEOF >conftest.c
16297 #include <linux/fs.h>
16299 int permission_fn(struct inode *inode, int mask) { return 0; }
16301 static const struct inode_operations
16302 iops __attribute__ ((unused)) = {
16303 .permission = permission_fn,
16319 cat - <<_ACEOF >conftest.h
16324 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
16325 echo "obj-m := conftest.o" >build
/Makefile
16327 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
16328 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
16329 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16330 (eval $ac_try) 2>&5
16332 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16333 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
16334 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16335 (eval $ac_try) 2>&5
16337 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16338 test $ac_status = 0; }; }; then :
16340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16341 $as_echo "yes" >&6; }
16343 $as_echo "#define HAVE_PERMISSION 1" >>confdefs.h
16347 $as_echo "$as_me: failed program was:" >&5
16348 sed 's/^/| /' conftest.
$ac_ext >&5
16350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16351 $as_echo "no" >&6; }
16361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->permission() wants nameidata" >&5
16362 $as_echo_n "checking whether iops->permission() wants nameidata... " >&6; }
16365 cat confdefs.h
- <<_ACEOF >conftest.c
16368 #include <linux/fs.h>
16370 int permission_fn(struct inode *inode, int mask,
16371 struct nameidata *nd) { return 0; }
16373 static const struct inode_operations
16374 iops __attribute__ ((unused)) = {
16375 .permission = permission_fn,
16391 cat - <<_ACEOF >conftest.h
16396 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
16397 echo "obj-m := conftest.o" >build
/Makefile
16399 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
16400 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
16401 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16402 (eval $ac_try) 2>&5
16404 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16405 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
16406 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16407 (eval $ac_try) 2>&5
16409 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16410 test $ac_status = 0; }; }; then :
16412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16413 $as_echo "yes" >&6; }
16415 $as_echo "#define HAVE_PERMISSION 1" >>confdefs.h
16418 $as_echo "#define HAVE_PERMISSION_WITH_NAMEIDATA 1" >>confdefs.h
16422 $as_echo "$as_me: failed program was:" >&5
16423 sed 's/^/| /' conftest.
$ac_ext >&5
16425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16426 $as_echo "no" >&6; }
16436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->check_acl() exists" >&5
16437 $as_echo_n "checking whether iops->check_acl() exists... " >&6; }
16440 cat confdefs.h
- <<_ACEOF >conftest.c
16443 #include <linux/fs.h>
16445 int check_acl_fn(struct inode *inode, int mask) { return 0; }
16447 static const struct inode_operations
16448 iops __attribute__ ((unused)) = {
16449 .check_acl = check_acl_fn,
16465 cat - <<_ACEOF >conftest.h
16470 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
16471 echo "obj-m := conftest.o" >build
/Makefile
16473 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
16474 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
16475 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16476 (eval $ac_try) 2>&5
16478 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16479 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
16480 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16481 (eval $ac_try) 2>&5
16483 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16484 test $ac_status = 0; }; }; then :
16486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16487 $as_echo "yes" >&6; }
16489 $as_echo "#define HAVE_CHECK_ACL 1" >>confdefs.h
16493 $as_echo "$as_me: failed program was:" >&5
16494 sed 's/^/| /' conftest.
$ac_ext >&5
16496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16497 $as_echo "no" >&6; }
16507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->check_acl() wants flags" >&5
16508 $as_echo_n "checking whether iops->check_acl() wants flags... " >&6; }
16511 cat confdefs.h
- <<_ACEOF >conftest.c
16514 #include <linux/fs.h>
16516 int check_acl_fn(struct inode *inode, int mask,
16517 unsigned int flags) { return 0; }
16519 static const struct inode_operations
16520 iops __attribute__ ((unused)) = {
16521 .check_acl = check_acl_fn,
16537 cat - <<_ACEOF >conftest.h
16542 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
16543 echo "obj-m := conftest.o" >build
/Makefile
16545 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
16546 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
16547 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16548 (eval $ac_try) 2>&5
16550 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16551 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
16552 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16553 (eval $ac_try) 2>&5
16555 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16556 test $ac_status = 0; }; }; then :
16558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16559 $as_echo "yes" >&6; }
16561 $as_echo "#define HAVE_CHECK_ACL 1" >>confdefs.h
16564 $as_echo "#define HAVE_CHECK_ACL_WITH_FLAGS 1" >>confdefs.h
16568 $as_echo "$as_me: failed program was:" >&5
16569 sed 's/^/| /' conftest.
$ac_ext >&5
16571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16572 $as_echo "no" >&6; }
16582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->get_acl() exists" >&5
16583 $as_echo_n "checking whether iops->get_acl() exists... " >&6; }
16586 cat confdefs.h
- <<_ACEOF >conftest.c
16589 #include <linux/fs.h>
16591 struct posix_acl *get_acl_fn(struct inode *inode, int type)
16594 static const struct inode_operations
16595 iops __attribute__ ((unused)) = {
16596 .get_acl = get_acl_fn,
16612 cat - <<_ACEOF >conftest.h
16617 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
16618 echo "obj-m := conftest.o" >build
/Makefile
16620 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
16621 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
16622 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16623 (eval $ac_try) 2>&5
16625 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16626 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
16627 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16628 (eval $ac_try) 2>&5
16630 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16631 test $ac_status = 0; }; }; then :
16633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16634 $as_echo "yes" >&6; }
16636 $as_echo "#define HAVE_GET_ACL 1" >>confdefs.h
16640 $as_echo "$as_me: failed program was:" >&5
16641 sed 's/^/| /' conftest.
$ac_ext >&5
16643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16644 $as_echo "no" >&6; }
16654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether current_umask exists" >&5
16655 $as_echo_n "checking whether current_umask exists... " >&6; }
16658 cat confdefs.h
- <<_ACEOF >conftest.c
16661 #include <linux/fs.h>
16677 cat - <<_ACEOF >conftest.h
16682 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
16683 echo "obj-m := conftest.o" >build
/Makefile
16685 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
16686 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
16687 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16688 (eval $ac_try) 2>&5
16690 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16691 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
16692 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16693 (eval $ac_try) 2>&5
16695 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16696 test $ac_status = 0; }; }; then :
16698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16699 $as_echo "yes" >&6; }
16701 $as_echo "#define HAVE_CURRENT_UMASK 1" >>confdefs.h
16705 $as_echo "$as_me: failed program was:" >&5
16706 sed 's/^/| /' conftest.
$ac_ext >&5
16708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16709 $as_echo "no" >&6; }
16719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sops->show_options() wants dentry" >&5
16720 $as_echo_n "checking whether sops->show_options() wants dentry... " >&6; }
16724 cat confdefs.h
- <<_ACEOF >conftest.c
16727 #include <linux/fs.h>
16729 int show_options (struct seq_file * x, struct dentry * y) { return 0; };
16730 static struct super_operations sops __attribute__ ((unused)) = {
16731 .show_options = show_options,
16747 cat - <<_ACEOF >conftest.h
16752 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
16753 echo "obj-m := conftest.o" >build
/Makefile
16755 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
16756 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
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; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
16762 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16763 (eval $ac_try) 2>&5
16765 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16766 test $ac_status = 0; }; }; then :
16768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16769 $as_echo "yes" >&6; }
16771 $as_echo "#define HAVE_SHOW_OPTIONS_WITH_DENTRY 1" >>confdefs.h
16775 $as_echo "$as_me: failed program was:" >&5
16776 sed 's/^/| /' conftest.
$ac_ext >&5
16778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16779 $as_echo "no" >&6; }
16789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether file_inode() is available" >&5
16790 $as_echo_n "checking whether file_inode() is available... " >&6; }
16793 cat confdefs.h
- <<_ACEOF >conftest.c
16796 #include <linux/fs.h>
16802 struct file *f = NULL;
16813 cat - <<_ACEOF >conftest.h
16818 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
16819 echo "obj-m := conftest.o" >build
/Makefile
16821 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
16822 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
16823 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16824 (eval $ac_try) 2>&5
16826 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16827 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
16828 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16829 (eval $ac_try) 2>&5
16831 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16832 test $ac_status = 0; }; }; then :
16834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16835 $as_echo "yes" >&6; }
16837 $as_echo "#define HAVE_FILE_INODE 1" >>confdefs.h
16841 $as_echo "$as_me: failed program was:" >&5
16842 sed 's/^/| /' conftest.
$ac_ext >&5
16844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16845 $as_echo "no" >&6; }
16855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fops->fsync() wants" >&5
16856 $as_echo_n "checking whether fops->fsync() wants... " >&6; }
16860 cat confdefs.h
- <<_ACEOF >conftest.c
16863 #include <linux/fs.h>
16865 int test_fsync(struct file *f, struct dentry *dentry, int x)
16868 static const struct file_operations
16869 fops __attribute__ ((unused)) = {
16870 .fsync = test_fsync,
16886 cat - <<_ACEOF >conftest.h
16891 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
16892 echo "obj-m := conftest.o" >build
/Makefile
16894 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
16895 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
16896 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16897 (eval $ac_try) 2>&5
16899 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16900 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
16901 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16902 (eval $ac_try) 2>&5
16904 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16905 test $ac_status = 0; }; }; then :
16907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: dentry" >&5
16908 $as_echo "dentry" >&6; }
16910 $as_echo "#define HAVE_FSYNC_WITH_DENTRY 1" >>confdefs.h
16914 $as_echo "$as_me: failed program was:" >&5
16915 sed 's/^/| /' conftest.
$ac_ext >&5
16928 cat confdefs.h
- <<_ACEOF >conftest.c
16931 #include <linux/fs.h>
16933 int test_fsync(struct file *f, int x) { return 0; }
16935 static const struct file_operations
16936 fops __attribute__ ((unused)) = {
16937 .fsync = test_fsync,
16953 cat - <<_ACEOF >conftest.h
16958 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
16959 echo "obj-m := conftest.o" >build
/Makefile
16961 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
16962 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
16963 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16964 (eval $ac_try) 2>&5
16966 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16967 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
16968 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16969 (eval $ac_try) 2>&5
16971 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16972 test $ac_status = 0; }; }; then :
16974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no dentry" >&5
16975 $as_echo "no dentry" >&6; }
16977 $as_echo "#define HAVE_FSYNC_WITHOUT_DENTRY 1" >>confdefs.h
16981 $as_echo "$as_me: failed program was:" >&5
16982 sed 's/^/| /' conftest.
$ac_ext >&5
16995 cat confdefs.h
- <<_ACEOF >conftest.c
16998 #include <linux/fs.h>
17000 int test_fsync(struct file *f, loff_t a, loff_t b, int c)
17003 static const struct file_operations
17004 fops __attribute__ ((unused)) = {
17005 .fsync = test_fsync,
17021 cat - <<_ACEOF >conftest.h
17026 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
17027 echo "obj-m := conftest.o" >build
/Makefile
17029 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
17030 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
17031 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17032 (eval $ac_try) 2>&5
17034 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17035 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
17036 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17037 (eval $ac_try) 2>&5
17039 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17040 test $ac_status = 0; }; }; then :
17042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: range" >&5
17043 $as_echo "range" >&6; }
17045 $as_echo "#define HAVE_FSYNC_RANGE 1" >>confdefs.h
17049 $as_echo "$as_me: failed program was:" >&5
17050 sed 's/^/| /' conftest.
$ac_ext >&5
17062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sops->evict_inode() exists" >&5
17063 $as_echo_n "checking whether sops->evict_inode() exists... " >&6; }
17066 cat confdefs.h
- <<_ACEOF >conftest.c
17069 #include <linux/fs.h>
17070 void evict_inode (struct inode * t) { return; }
17071 static struct super_operations sops __attribute__ ((unused)) = {
17072 .evict_inode = evict_inode,
17088 cat - <<_ACEOF >conftest.h
17093 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
17094 echo "obj-m := conftest.o" >build
/Makefile
17096 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
17097 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
17098 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17099 (eval $ac_try) 2>&5
17101 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17102 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
17103 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17104 (eval $ac_try) 2>&5
17106 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17107 test $ac_status = 0; }; }; then :
17109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17110 $as_echo "yes" >&6; }
17112 $as_echo "#define HAVE_EVICT_INODE 1" >>confdefs.h
17116 $as_echo "$as_me: failed program was:" >&5
17117 sed 's/^/| /' conftest.
$ac_ext >&5
17119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17120 $as_echo "no" >&6; }
17130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sops->dirty_inode() wants flags" >&5
17131 $as_echo_n "checking whether sops->dirty_inode() wants flags... " >&6; }
17134 cat confdefs.h
- <<_ACEOF >conftest.c
17137 #include <linux/fs.h>
17139 void dirty_inode(struct inode *a, int b) { return; }
17141 static const struct super_operations
17142 sops __attribute__ ((unused)) = {
17143 .dirty_inode = dirty_inode,
17159 cat - <<_ACEOF >conftest.h
17164 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
17165 echo "obj-m := conftest.o" >build
/Makefile
17167 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
17168 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
17169 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17170 (eval $ac_try) 2>&5
17172 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17173 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
17174 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17175 (eval $ac_try) 2>&5
17177 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17178 test $ac_status = 0; }; }; then :
17180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17181 $as_echo "yes" >&6; }
17183 $as_echo "#define HAVE_DIRTY_INODE_WITH_FLAGS 1" >>confdefs.h
17187 $as_echo "$as_me: failed program was:" >&5
17188 sed 's/^/| /' conftest.
$ac_ext >&5
17190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17191 $as_echo "no" >&6; }
17201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sops->nr_cached_objects() exists" >&5
17202 $as_echo_n "checking whether sops->nr_cached_objects() exists... " >&6; }
17205 cat confdefs.h
- <<_ACEOF >conftest.c
17208 #include <linux/fs.h>
17210 int nr_cached_objects(struct super_block *sb) { return 0; }
17212 static const struct super_operations
17213 sops __attribute__ ((unused)) = {
17214 .nr_cached_objects = nr_cached_objects,
17230 cat - <<_ACEOF >conftest.h
17235 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
17236 echo "obj-m := conftest.o" >build
/Makefile
17238 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
17239 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
17240 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17241 (eval $ac_try) 2>&5
17243 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17244 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
17245 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17246 (eval $ac_try) 2>&5
17248 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17249 test $ac_status = 0; }; }; then :
17251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17252 $as_echo "yes" >&6; }
17254 $as_echo "#define HAVE_NR_CACHED_OBJECTS 1" >>confdefs.h
17258 $as_echo "$as_me: failed program was:" >&5
17259 sed 's/^/| /' conftest.
$ac_ext >&5
17261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17262 $as_echo "no" >&6; }
17272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sops->free_cached_objects() exists" >&5
17273 $as_echo_n "checking whether sops->free_cached_objects() exists... " >&6; }
17276 cat confdefs.h
- <<_ACEOF >conftest.c
17279 #include <linux/fs.h>
17281 void free_cached_objects(struct super_block *sb, int x)
17284 static const struct super_operations
17285 sops __attribute__ ((unused)) = {
17286 .free_cached_objects = free_cached_objects,
17302 cat - <<_ACEOF >conftest.h
17307 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
17308 echo "obj-m := conftest.o" >build
/Makefile
17310 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
17311 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
17312 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17313 (eval $ac_try) 2>&5
17315 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17316 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
17317 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17318 (eval $ac_try) 2>&5
17320 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17321 test $ac_status = 0; }; }; then :
17323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17324 $as_echo "yes" >&6; }
17326 $as_echo "#define HAVE_FREE_CACHED_OBJECTS 1" >>confdefs.h
17330 $as_echo "$as_me: failed program was:" >&5
17331 sed 's/^/| /' conftest.
$ac_ext >&5
17333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17334 $as_echo "no" >&6; }
17345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fops->fallocate() exists" >&5
17346 $as_echo_n "checking whether fops->fallocate() exists... " >&6; }
17349 cat confdefs.h
- <<_ACEOF >conftest.c
17352 #include <linux/fs.h>
17354 long test_fallocate(struct file *file, int mode,
17355 loff_t offset, loff_t len) { return 0; }
17357 static const struct file_operations
17358 fops __attribute__ ((unused)) = {
17359 .fallocate = test_fallocate,
17375 cat - <<_ACEOF >conftest.h
17380 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
17381 echo "obj-m := conftest.o" >build
/Makefile
17383 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
17384 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
17385 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17386 (eval $ac_try) 2>&5
17388 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17389 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
17390 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17391 (eval $ac_try) 2>&5
17393 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17394 test $ac_status = 0; }; }; then :
17396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17397 $as_echo "yes" >&6; }
17399 $as_echo "#define HAVE_FILE_FALLOCATE 1" >>confdefs.h
17403 $as_echo "$as_me: failed program was:" >&5
17404 sed 's/^/| /' conftest.
$ac_ext >&5
17406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17407 $as_echo "no" >&6; }
17417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->fallocate() exists" >&5
17418 $as_echo_n "checking whether iops->fallocate() exists... " >&6; }
17421 cat confdefs.h
- <<_ACEOF >conftest.c
17424 #include <linux/fs.h>
17426 long test_fallocate(struct inode *inode, int mode,
17427 loff_t offset, loff_t len) { return 0; }
17429 static const struct inode_operations
17430 fops __attribute__ ((unused)) = {
17431 .fallocate = test_fallocate,
17447 cat - <<_ACEOF >conftest.h
17452 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
17453 echo "obj-m := conftest.o" >build
/Makefile
17455 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
17456 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
17457 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17458 (eval $ac_try) 2>&5
17460 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17461 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
17462 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17463 (eval $ac_try) 2>&5
17465 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17466 test $ac_status = 0; }; }; then :
17468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17469 $as_echo "yes" >&6; }
17471 $as_echo "#define HAVE_INODE_FALLOCATE 1" >>confdefs.h
17475 $as_echo "$as_me: failed program was:" >&5
17476 sed 's/^/| /' conftest.
$ac_ext >&5
17478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17479 $as_echo "no" >&6; }
17490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->create()/mkdir()/mknod() take umode_t" >&5
17491 $as_echo_n "checking whether iops->create()/mkdir()/mknod() take umode_t... " >&6; }
17494 cat confdefs.h
- <<_ACEOF >conftest.c
17497 #include <linux/fs.h>
17499 int mkdir(struct inode *inode, struct dentry *dentry,
17500 umode_t umode) { return 0; }
17502 static const struct inode_operations
17503 iops __attribute__ ((unused)) = {
17520 cat - <<_ACEOF >conftest.h
17525 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
17526 echo "obj-m := conftest.o" >build
/Makefile
17528 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
17529 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
17530 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17531 (eval $ac_try) 2>&5
17533 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17534 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
17535 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17536 (eval $ac_try) 2>&5
17538 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17539 test $ac_status = 0; }; }; then :
17541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17542 $as_echo "yes" >&6; }
17544 $as_echo "#define HAVE_MKDIR_UMODE_T 1" >>confdefs.h
17548 $as_echo "$as_me: failed program was:" >&5
17549 sed 's/^/| /' conftest.
$ac_ext >&5
17551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17552 $as_echo "no" >&6; }
17562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->lookup() passes nameidata" >&5
17563 $as_echo_n "checking whether iops->lookup() passes nameidata... " >&6; }
17566 cat confdefs.h
- <<_ACEOF >conftest.c
17569 #include <linux/fs.h>
17571 struct dentry *inode_lookup(struct inode *inode,
17572 struct dentry *dentry, struct nameidata *nidata)
17575 static const struct inode_operations iops
17576 __attribute__ ((unused)) = {
17577 .lookup = inode_lookup,
17593 cat - <<_ACEOF >conftest.h
17598 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
17599 echo "obj-m := conftest.o" >build
/Makefile
17601 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
17602 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
17603 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17604 (eval $ac_try) 2>&5
17606 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17607 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
17608 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17609 (eval $ac_try) 2>&5
17611 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17612 test $ac_status = 0; }; }; then :
17614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17615 $as_echo "yes" >&6; }
17617 $as_echo "#define HAVE_LOOKUP_NAMEIDATA 1" >>confdefs.h
17621 $as_echo "$as_me: failed program was:" >&5
17622 sed 's/^/| /' conftest.
$ac_ext >&5
17624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17625 $as_echo "no" >&6; }
17635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->create() passes nameidata" >&5
17636 $as_echo_n "checking whether iops->create() passes nameidata... " >&6; }
17639 cat confdefs.h
- <<_ACEOF >conftest.c
17642 #include <linux/fs.h>
17644 #ifdef HAVE_MKDIR_UMODE_T
17645 int inode_create(struct inode *inode ,struct dentry *dentry,
17646 umode_t umode, struct nameidata *nidata) { return 0; }
17648 int inode_create(struct inode *inode,struct dentry *dentry,
17649 int umode, struct nameidata * nidata) { return 0; }
17652 static const struct inode_operations
17653 iops __attribute__ ((unused)) = {
17654 .create = inode_create,
17670 cat - <<_ACEOF >conftest.h
17675 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
17676 echo "obj-m := conftest.o" >build
/Makefile
17678 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
17679 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
17680 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17681 (eval $ac_try) 2>&5
17683 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17684 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
17685 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17686 (eval $ac_try) 2>&5
17688 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17689 test $ac_status = 0; }; }; then :
17691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17692 $as_echo "yes" >&6; }
17694 $as_echo "#define HAVE_CREATE_NAMEIDATA 1" >>confdefs.h
17698 $as_echo "$as_me: failed program was:" >&5
17699 sed 's/^/| /' conftest.
$ac_ext >&5
17701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17702 $as_echo "no" >&6; }
17712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->get_link() passes delayed" >&5
17713 $as_echo_n "checking whether iops->get_link() passes delayed... " >&6; }
17716 cat confdefs.h
- <<_ACEOF >conftest.c
17719 #include <linux/fs.h>
17720 const char *get_link(struct dentry *de, struct inode *ip,
17721 struct delayed_call *done) { return "symlink"; }
17722 static struct inode_operations
17723 iops __attribute__ ((unused)) = {
17724 .get_link = get_link,
17740 cat - <<_ACEOF >conftest.h
17745 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
17746 echo "obj-m := conftest.o" >build
/Makefile
17748 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
17749 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
17750 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17751 (eval $ac_try) 2>&5
17753 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17754 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
17755 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17756 (eval $ac_try) 2>&5
17758 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17759 test $ac_status = 0; }; }; then :
17761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17762 $as_echo "yes" >&6; }
17764 $as_echo "#define HAVE_GET_LINK_DELAYED 1" >>confdefs.h
17768 $as_echo "$as_me: failed program was:" >&5
17769 sed 's/^/| /' conftest.
$ac_ext >&5
17771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17772 $as_echo "no" >&6; }
17773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->get_link() passes cookie" >&5
17774 $as_echo_n "checking whether iops->get_link() passes cookie... " >&6; }
17777 cat confdefs.h
- <<_ACEOF >conftest.c
17780 #include <linux/fs.h>
17781 const char *get_link(struct dentry *de, struct
17782 inode *ip, void **cookie) { return "symlink"; }
17783 static struct inode_operations
17784 iops __attribute__ ((unused)) = {
17785 .get_link = get_link,
17801 cat - <<_ACEOF >conftest.h
17806 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
17807 echo "obj-m := conftest.o" >build
/Makefile
17809 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
17810 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
17811 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17812 (eval $ac_try) 2>&5
17814 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17815 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
17816 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17817 (eval $ac_try) 2>&5
17819 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17820 test $ac_status = 0; }; }; then :
17822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17823 $as_echo "yes" >&6; }
17825 $as_echo "#define HAVE_GET_LINK_COOKIE 1" >>confdefs.h
17829 $as_echo "$as_me: failed program was:" >&5
17830 sed 's/^/| /' conftest.
$ac_ext >&5
17832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17833 $as_echo "no" >&6; }
17835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->follow_link() passes cookie" >&5
17836 $as_echo_n "checking whether iops->follow_link() passes cookie... " >&6; }
17839 cat confdefs.h
- <<_ACEOF >conftest.c
17842 #include <linux/fs.h>
17843 const char *follow_link(struct dentry *de,
17844 void **cookie) { return "symlink"; }
17845 static struct inode_operations
17846 iops __attribute__ ((unused)) = {
17847 .follow_link = follow_link,
17863 cat - <<_ACEOF >conftest.h
17868 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
17869 echo "obj-m := conftest.o" >build
/Makefile
17871 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
17872 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
17873 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17874 (eval $ac_try) 2>&5
17876 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17877 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
17878 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17879 (eval $ac_try) 2>&5
17881 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17882 test $ac_status = 0; }; }; then :
17884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17885 $as_echo "yes" >&6; }
17887 $as_echo "#define HAVE_FOLLOW_LINK_COOKIE 1" >>confdefs.h
17891 $as_echo "$as_me: failed program was:" >&5
17892 sed 's/^/| /' conftest.
$ac_ext >&5
17894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17895 $as_echo "no" >&6; }
17896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->follow_link() passes nameidata" >&5
17897 $as_echo_n "checking whether iops->follow_link() passes nameidata... " >&6; }
17900 cat confdefs.h
- <<_ACEOF >conftest.c
17903 #include <linux/fs.h>
17904 void *follow_link(struct dentry *de, struct
17905 nameidata *nd) { return (void *)NULL; }
17906 static struct inode_operations
17907 iops __attribute__ ((unused)) = {
17908 .follow_link = follow_link,
17924 cat - <<_ACEOF >conftest.h
17929 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
17930 echo "obj-m := conftest.o" >build
/Makefile
17932 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
17933 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
17934 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17935 (eval $ac_try) 2>&5
17937 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17938 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
17939 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17940 (eval $ac_try) 2>&5
17942 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17943 test $ac_status = 0; }; }; then :
17945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17946 $as_echo "yes" >&6; }
17948 $as_echo "#define HAVE_FOLLOW_LINK_NAMEIDATA 1" >>confdefs.h
17952 $as_echo "$as_me: failed program was:" >&5
17953 sed 's/^/| /' conftest.
$ac_ext >&5
17955 as_fn_error $?
"no; please file a bug report" "$LINENO" 5
17989 cat confdefs.h
- <<_ACEOF >conftest.c
17992 #if !defined(HAVE_GET_LINK_DELAYED)
17993 #error "Expecting get_link() delayed done"
18009 cat - <<_ACEOF >conftest.h
18014 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
18015 echo "obj-m := conftest.o" >build
/Makefile
18017 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
18018 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
18019 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18020 (eval $ac_try) 2>&5
18022 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18023 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
18024 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18025 (eval $ac_try) 2>&5
18027 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18028 test $ac_status = 0; }; }; then :
18031 $as_echo "#define HAVE_PUT_LINK_DELAYED 1" >>confdefs.h
18035 $as_echo "$as_me: failed program was:" >&5
18036 sed 's/^/| /' conftest.
$ac_ext >&5
18038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->put_link() passes cookie" >&5
18039 $as_echo_n "checking whether iops->put_link() passes cookie... " >&6; }
18042 cat confdefs.h
- <<_ACEOF >conftest.c
18045 #include <linux/fs.h>
18046 void put_link(struct inode *ip, void *cookie)
18048 static struct inode_operations
18049 iops __attribute__ ((unused)) = {
18050 .put_link = put_link,
18066 cat - <<_ACEOF >conftest.h
18071 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
18072 echo "obj-m := conftest.o" >build
/Makefile
18074 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
18075 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
18076 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18077 (eval $ac_try) 2>&5
18079 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18080 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
18081 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18082 (eval $ac_try) 2>&5
18084 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18085 test $ac_status = 0; }; }; then :
18087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18088 $as_echo "yes" >&6; }
18090 $as_echo "#define HAVE_PUT_LINK_COOKIE 1" >>confdefs.h
18094 $as_echo "$as_me: failed program was:" >&5
18095 sed 's/^/| /' conftest.
$ac_ext >&5
18097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18098 $as_echo "no" >&6; }
18099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->put_link() passes nameidata" >&5
18100 $as_echo_n "checking whether iops->put_link() passes nameidata... " >&6; }
18103 cat confdefs.h
- <<_ACEOF >conftest.c
18106 #include <linux/fs.h>
18107 void put_link(struct dentry *de, struct
18108 nameidata *nd, void *ptr) { return; }
18109 static struct inode_operations
18110 iops __attribute__ ((unused)) = {
18111 .put_link = put_link,
18127 cat - <<_ACEOF >conftest.h
18132 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
18133 echo "obj-m := conftest.o" >build
/Makefile
18135 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
18136 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
18137 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18138 (eval $ac_try) 2>&5
18140 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18141 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
18142 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18143 (eval $ac_try) 2>&5
18145 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18146 test $ac_status = 0; }; }; then :
18148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18149 $as_echo "yes" >&6; }
18151 $as_echo "#define HAVE_PUT_LINK_NAMEIDATA 1" >>confdefs.h
18155 $as_echo "$as_me: failed program was:" >&5
18156 sed 's/^/| /' conftest.
$ac_ext >&5
18158 as_fn_error $?
"no; please file a bug report" "$LINENO" 5
18182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->truncate_range() exists" >&5
18183 $as_echo_n "checking whether iops->truncate_range() exists... " >&6; }
18186 cat confdefs.h
- <<_ACEOF >conftest.c
18189 #include <linux/fs.h>
18190 void truncate_range(struct inode *inode, loff_t start,
18191 loff_t end) { return; }
18192 static struct inode_operations iops __attribute__ ((unused)) = {
18193 .truncate_range = truncate_range,
18209 cat - <<_ACEOF >conftest.h
18214 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
18215 echo "obj-m := conftest.o" >build
/Makefile
18217 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
18218 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
18219 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18220 (eval $ac_try) 2>&5
18222 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18223 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
18224 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18225 (eval $ac_try) 2>&5
18227 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18228 test $ac_status = 0; }; }; then :
18230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18231 $as_echo "yes" >&6; }
18233 $as_echo "#define HAVE_INODE_TRUNCATE_RANGE 1" >>confdefs.h
18237 $as_echo "$as_me: failed program was:" >&5
18238 sed 's/^/| /' conftest.
$ac_ext >&5
18240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18241 $as_echo "no" >&6; }
18251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether dops->d_automount() exists" >&5
18252 $as_echo_n "checking whether dops->d_automount() exists... " >&6; }
18255 cat confdefs.h
- <<_ACEOF >conftest.c
18258 #include <linux/dcache.h>
18259 struct vfsmount *d_automount(struct path *p) { return NULL; }
18260 struct dentry_operations dops __attribute__ ((unused)) = {
18261 .d_automount = d_automount,
18277 cat - <<_ACEOF >conftest.h
18282 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
18283 echo "obj-m := conftest.o" >build
/Makefile
18285 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
18286 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
18287 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18288 (eval $ac_try) 2>&5
18290 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18291 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
18292 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18293 (eval $ac_try) 2>&5
18295 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18296 test $ac_status = 0; }; }; then :
18298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18299 $as_echo "yes" >&6; }
18301 $as_echo "#define HAVE_AUTOMOUNT 1" >>confdefs.h
18305 $as_echo "$as_me: failed program was:" >&5
18306 sed 's/^/| /' conftest.
$ac_ext >&5
18308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18309 $as_echo "no" >&6; }
18319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether eops->encode_fh() wants inode" >&5
18320 $as_echo_n "checking whether eops->encode_fh() wants inode... " >&6; }
18323 cat confdefs.h
- <<_ACEOF >conftest.c
18326 #include <linux/exportfs.h>
18327 int encode_fh(struct inode *inode, __u32 *fh, int *max_len,
18328 struct inode *parent) { return 0; }
18329 static struct export_operations eops __attribute__ ((unused))={
18330 .encode_fh = encode_fh,
18346 cat - <<_ACEOF >conftest.h
18351 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
18352 echo "obj-m := conftest.o" >build
/Makefile
18354 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
18355 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
18356 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18357 (eval $ac_try) 2>&5
18359 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18360 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
18361 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18362 (eval $ac_try) 2>&5
18364 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18365 test $ac_status = 0; }; }; then :
18367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18368 $as_echo "yes" >&6; }
18370 $as_echo "#define HAVE_ENCODE_FH_WITH_INODE 1" >>confdefs.h
18374 $as_echo "$as_me: failed program was:" >&5
18375 sed 's/^/| /' conftest.
$ac_ext >&5
18377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18378 $as_echo "no" >&6; }
18388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether eops->commit_metadata() exists" >&5
18389 $as_echo_n "checking whether eops->commit_metadata() exists... " >&6; }
18392 cat confdefs.h
- <<_ACEOF >conftest.c
18395 #include <linux/exportfs.h>
18396 int commit_metadata(struct inode *inode) { return 0; }
18397 static struct export_operations eops __attribute__ ((unused))={
18398 .commit_metadata = commit_metadata,
18414 cat - <<_ACEOF >conftest.h
18419 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
18420 echo "obj-m := conftest.o" >build
/Makefile
18422 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
18423 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
18424 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18425 (eval $ac_try) 2>&5
18427 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18428 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
18429 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18430 (eval $ac_try) 2>&5
18432 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18433 test $ac_status = 0; }; }; then :
18435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18436 $as_echo "yes" >&6; }
18438 $as_echo "#define HAVE_COMMIT_METADATA 1" >>confdefs.h
18442 $as_echo "$as_me: failed program was:" >&5
18443 sed 's/^/| /' conftest.
$ac_ext >&5
18445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18446 $as_echo "no" >&6; }
18455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether clear_inode() is available" >&5
18456 $as_echo_n "checking whether clear_inode() is available... " >&6; }
18460 cat confdefs.h
- <<_ACEOF >conftest.c
18463 #include <linux/fs.h>
18479 cat - <<_ACEOF >conftest.h
18484 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
18485 echo "obj-m := conftest.o" >build
/Makefile
18487 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
18488 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
18489 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18490 (eval $ac_try) 2>&5
18492 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18493 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
18494 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18495 (eval $ac_try) 2>&5
18497 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18498 test $ac_status = 0; }; }; then :
18501 $as_echo "$as_me: failed program was:" >&5
18502 sed 's/^/| /' conftest.
$ac_ext >&5
18510 if test $rc -ne 0; then :
18512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18513 $as_echo "no" >&6; }
18516 if test "x$enable_linux_builtin" != xyes
; then
18518 grep -q -E '[[:space:]]clear_inode[[:space:]]' \
18519 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
18521 if test $rc -ne 0; then
18523 for file in fs
/inode.c
; do
18524 grep -q -E "EXPORT_SYMBOL.*(clear_inode)" \
18525 "$LINUX/$file" 2>/dev
/null
18527 if test $rc -eq 0; then
18532 if test $export -eq 0; then :
18542 if test $rc -ne 0; then :
18544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18545 $as_echo "no" >&6; }
18549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18550 $as_echo "yes" >&6; }
18552 $as_echo "#define HAVE_CLEAR_INODE 1" >>confdefs.h
18559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether insert_inode_locked() is available" >&5
18560 $as_echo_n "checking whether insert_inode_locked() is available... " >&6; }
18564 cat confdefs.h
- <<_ACEOF >conftest.c
18567 #include <linux/fs.h>
18573 insert_inode_locked(NULL);
18583 cat - <<_ACEOF >conftest.h
18588 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
18589 echo "obj-m := conftest.o" >build
/Makefile
18591 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
18592 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
18593 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18594 (eval $ac_try) 2>&5
18596 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18597 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
18598 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18599 (eval $ac_try) 2>&5
18601 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18602 test $ac_status = 0; }; }; then :
18605 $as_echo "$as_me: failed program was:" >&5
18606 sed 's/^/| /' conftest.
$ac_ext >&5
18614 if test $rc -ne 0; then :
18616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18617 $as_echo "no" >&6; }
18620 if test "x$enable_linux_builtin" != xyes
; then
18622 grep -q -E '[[:space:]]insert_inode_locked[[:space:]]' \
18623 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
18625 if test $rc -ne 0; then
18627 for file in fs
/inode.c
; do
18628 grep -q -E "EXPORT_SYMBOL.*(insert_inode_locked)" \
18629 "$LINUX/$file" 2>/dev
/null
18631 if test $rc -eq 0; then
18636 if test $export -eq 0; then :
18646 if test $rc -ne 0; then :
18648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18649 $as_echo "no" >&6; }
18653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18654 $as_echo "yes" >&6; }
18656 $as_echo "#define HAVE_INSERT_INODE_LOCKED 1" >>confdefs.h
18663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether d_make_root() is available" >&5
18664 $as_echo_n "checking whether d_make_root() is available... " >&6; }
18668 cat confdefs.h
- <<_ACEOF >conftest.c
18671 #include <linux/dcache.h>
18687 cat - <<_ACEOF >conftest.h
18692 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
18693 echo "obj-m := conftest.o" >build
/Makefile
18695 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
18696 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
18697 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18698 (eval $ac_try) 2>&5
18700 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18701 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
18702 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18703 (eval $ac_try) 2>&5
18705 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18706 test $ac_status = 0; }; }; then :
18709 $as_echo "$as_me: failed program was:" >&5
18710 sed 's/^/| /' conftest.
$ac_ext >&5
18718 if test $rc -ne 0; then :
18720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18721 $as_echo "no" >&6; }
18724 if test "x$enable_linux_builtin" != xyes
; then
18726 grep -q -E '[[:space:]]d_make_root[[:space:]]' \
18727 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
18729 if test $rc -ne 0; then
18731 for file in fs
/dcache.c
; do
18732 grep -q -E "EXPORT_SYMBOL.*(d_make_root)" \
18733 "$LINUX/$file" 2>/dev
/null
18735 if test $rc -eq 0; then
18740 if test $export -eq 0; then :
18750 if test $rc -ne 0; then :
18752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18753 $as_echo "no" >&6; }
18757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18758 $as_echo "yes" >&6; }
18760 $as_echo "#define HAVE_D_MAKE_ROOT 1" >>confdefs.h
18767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether d_obtain_alias() is available" >&5
18768 $as_echo_n "checking whether d_obtain_alias() is available... " >&6; }
18772 cat confdefs.h
- <<_ACEOF >conftest.c
18775 #include <linux/dcache.h>
18781 d_obtain_alias(NULL);
18791 cat - <<_ACEOF >conftest.h
18796 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
18797 echo "obj-m := conftest.o" >build
/Makefile
18799 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
18800 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
18801 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18802 (eval $ac_try) 2>&5
18804 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18805 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
18806 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18807 (eval $ac_try) 2>&5
18809 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18810 test $ac_status = 0; }; }; then :
18813 $as_echo "$as_me: failed program was:" >&5
18814 sed 's/^/| /' conftest.
$ac_ext >&5
18822 if test $rc -ne 0; then :
18824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18825 $as_echo "no" >&6; }
18828 if test "x$enable_linux_builtin" != xyes
; then
18830 grep -q -E '[[:space:]]d_obtain_alias[[:space:]]' \
18831 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
18833 if test $rc -ne 0; then
18835 for file in fs
/dcache.c
; do
18836 grep -q -E "EXPORT_SYMBOL.*(d_obtain_alias)" \
18837 "$LINUX/$file" 2>/dev
/null
18839 if test $rc -eq 0; then
18844 if test $export -eq 0; then :
18854 if test $rc -ne 0; then :
18856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18857 $as_echo "no" >&6; }
18861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18862 $as_echo "yes" >&6; }
18864 $as_echo "#define HAVE_D_OBTAIN_ALIAS 1" >>confdefs.h
18871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether d_prune_aliases() is available" >&5
18872 $as_echo_n "checking whether d_prune_aliases() is available... " >&6; }
18876 cat confdefs.h
- <<_ACEOF >conftest.c
18879 #include <linux/dcache.h>
18885 struct inode *ip = NULL;
18886 d_prune_aliases(ip);
18896 cat - <<_ACEOF >conftest.h
18901 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
18902 echo "obj-m := conftest.o" >build
/Makefile
18904 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
18905 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
18906 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18907 (eval $ac_try) 2>&5
18909 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18910 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
18911 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18912 (eval $ac_try) 2>&5
18914 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18915 test $ac_status = 0; }; }; then :
18918 $as_echo "$as_me: failed program was:" >&5
18919 sed 's/^/| /' conftest.
$ac_ext >&5
18927 if test $rc -ne 0; then :
18929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18930 $as_echo "no" >&6; }
18933 if test "x$enable_linux_builtin" != xyes
; then
18935 grep -q -E '[[:space:]]d_prune_aliases[[:space:]]' \
18936 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
18938 if test $rc -ne 0; then
18940 for file in fs
/dcache.c
; do
18941 grep -q -E "EXPORT_SYMBOL.*(d_prune_aliases)" \
18942 "$LINUX/$file" 2>/dev
/null
18944 if test $rc -eq 0; then
18949 if test $export -eq 0; then :
18959 if test $rc -ne 0; then :
18961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18962 $as_echo "no" >&6; }
18966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18967 $as_echo "yes" >&6; }
18969 $as_echo "#define HAVE_D_PRUNE_ALIASES 1" >>confdefs.h
18976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether d_set_d_op() is available" >&5
18977 $as_echo_n "checking whether d_set_d_op() is available... " >&6; }
18981 cat confdefs.h
- <<_ACEOF >conftest.c
18984 #include <linux/dcache.h>
18990 d_set_d_op(NULL, NULL);
19000 cat - <<_ACEOF >conftest.h
19005 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
19006 echo "obj-m := conftest.o" >build
/Makefile
19008 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
19009 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
19010 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19011 (eval $ac_try) 2>&5
19013 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19014 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
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; }; }; then :
19022 $as_echo "$as_me: failed program was:" >&5
19023 sed 's/^/| /' conftest.
$ac_ext >&5
19031 if test $rc -ne 0; then :
19033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19034 $as_echo "no" >&6; }
19037 if test "x$enable_linux_builtin" != xyes
; then
19039 grep -q -E '[[:space:]]d_set_d_op[[:space:]]' \
19040 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
19042 if test $rc -ne 0; then
19044 for file in fs
/dcache.c
; do
19045 grep -q -E "EXPORT_SYMBOL.*(d_set_d_op)" \
19046 "$LINUX/$file" 2>/dev
/null
19048 if test $rc -eq 0; then
19053 if test $export -eq 0; then :
19063 if test $rc -ne 0; then :
19065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19066 $as_echo "no" >&6; }
19070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19071 $as_echo "yes" >&6; }
19073 $as_echo "#define HAVE_D_SET_D_OP 1" >>confdefs.h
19081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether dops->d_revalidate() takes struct nameidata" >&5
19082 $as_echo_n "checking whether dops->d_revalidate() takes struct nameidata... " >&6; }
19085 cat confdefs.h
- <<_ACEOF >conftest.c
19088 #include <linux/dcache.h>
19090 int revalidate (struct dentry *dentry,
19091 struct nameidata *nidata) { return 0; }
19093 static const struct dentry_operations
19094 dops __attribute__ ((unused)) = {
19095 .d_revalidate = revalidate,
19111 cat - <<_ACEOF >conftest.h
19116 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
19117 echo "obj-m := conftest.o" >build
/Makefile
19119 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
19120 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
19121 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19122 (eval $ac_try) 2>&5
19124 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19125 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
19126 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19127 (eval $ac_try) 2>&5
19129 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19130 test $ac_status = 0; }; }; then :
19132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19133 $as_echo "yes" >&6; }
19135 $as_echo "#define HAVE_D_REVALIDATE_NAMEIDATA 1" >>confdefs.h
19139 $as_echo "$as_me: failed program was:" >&5
19140 sed 's/^/| /' conftest.
$ac_ext >&5
19142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19143 $as_echo "no" >&6; }
19153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether dentry uses const struct dentry_operations" >&5
19154 $as_echo_n "checking whether dentry uses const struct dentry_operations... " >&6; }
19157 cat confdefs.h
- <<_ACEOF >conftest.c
19160 #include <linux/dcache.h>
19162 const struct dentry_operations test_d_op = {
19163 .d_revalidate = NULL,
19170 struct dentry d __attribute__ ((unused));
19172 d.d_op = &test_d_op;
19182 cat - <<_ACEOF >conftest.h
19187 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
19188 echo "obj-m := conftest.o" >build
/Makefile
19190 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
19191 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
19192 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19193 (eval $ac_try) 2>&5
19195 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19196 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
19197 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19198 (eval $ac_try) 2>&5
19200 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19201 test $ac_status = 0; }; }; then :
19203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19204 $as_echo "yes" >&6; }
19206 $as_echo "#define HAVE_CONST_DENTRY_OPERATIONS 1" >>confdefs.h
19210 $as_echo "$as_me: failed program was:" >&5
19211 sed 's/^/| /' conftest.
$ac_ext >&5
19213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19214 $as_echo "no" >&6; }
19223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether check_disk_size_change() is available" >&5
19224 $as_echo_n "checking whether check_disk_size_change() is available... " >&6; }
19228 cat confdefs.h
- <<_ACEOF >conftest.c
19231 #include <linux/fs.h>
19237 check_disk_size_change(NULL, NULL);
19247 cat - <<_ACEOF >conftest.h
19252 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
19253 echo "obj-m := conftest.o" >build
/Makefile
19255 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
19256 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
19257 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19258 (eval $ac_try) 2>&5
19260 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19261 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
19262 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19263 (eval $ac_try) 2>&5
19265 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19266 test $ac_status = 0; }; }; then :
19269 $as_echo "$as_me: failed program was:" >&5
19270 sed 's/^/| /' conftest.
$ac_ext >&5
19278 if test $rc -ne 0; then :
19280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19281 $as_echo "no" >&6; }
19284 if test "x$enable_linux_builtin" != xyes
; then
19286 grep -q -E '[[:space:]]check_disk_size_change[[:space:]]' \
19287 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
19289 if test $rc -ne 0; then
19291 for file in fs
/block_dev.c
; do
19292 grep -q -E "EXPORT_SYMBOL.*(check_disk_size_change)" \
19293 "$LINUX/$file" 2>/dev
/null
19295 if test $rc -eq 0; then
19300 if test $export -eq 0; then :
19310 if test $rc -ne 0; then :
19312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19313 $as_echo "no" >&6; }
19317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19318 $as_echo "yes" >&6; }
19320 $as_echo "#define HAVE_CHECK_DISK_SIZE_CHANGE 1" >>confdefs.h
19327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether truncate_setsize() is available" >&5
19328 $as_echo_n "checking whether truncate_setsize() is available... " >&6; }
19332 cat confdefs.h
- <<_ACEOF >conftest.c
19335 #include <linux/mm.h>
19341 truncate_setsize(NULL, 0);
19351 cat - <<_ACEOF >conftest.h
19356 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
19357 echo "obj-m := conftest.o" >build
/Makefile
19359 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
19360 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
19361 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19362 (eval $ac_try) 2>&5
19364 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19365 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
19366 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19367 (eval $ac_try) 2>&5
19369 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19370 test $ac_status = 0; }; }; then :
19373 $as_echo "$as_me: failed program was:" >&5
19374 sed 's/^/| /' conftest.
$ac_ext >&5
19382 if test $rc -ne 0; then :
19384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19385 $as_echo "no" >&6; }
19388 if test "x$enable_linux_builtin" != xyes
; then
19390 grep -q -E '[[:space:]]truncate_setsize[[:space:]]' \
19391 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
19393 if test $rc -ne 0; then
19395 for file in mm
/truncate.c
; do
19396 grep -q -E "EXPORT_SYMBOL.*(truncate_setsize)" \
19397 "$LINUX/$file" 2>/dev
/null
19399 if test $rc -eq 0; then
19404 if test $export -eq 0; then :
19414 if test $rc -ne 0; then :
19416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19417 $as_echo "no" >&6; }
19421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19422 $as_echo "yes" >&6; }
19424 $as_echo "#define HAVE_TRUNCATE_SETSIZE 1" >>confdefs.h
19432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether security_inode_init_security wants 6 args" >&5
19433 $as_echo_n "checking whether security_inode_init_security wants 6 args... " >&6; }
19436 cat confdefs.h
- <<_ACEOF >conftest.c
19439 #include <linux/security.h>
19445 struct inode *ip __attribute__ ((unused)) = NULL;
19446 struct inode *dip __attribute__ ((unused)) = NULL;
19447 const struct qstr *str __attribute__ ((unused)) = NULL;
19448 char *name __attribute__ ((unused)) = NULL;
19449 void *value __attribute__ ((unused)) = NULL;
19450 size_t len __attribute__ ((unused)) = 0;
19452 security_inode_init_security(ip, dip, str, &name, &value, &len);
19462 cat - <<_ACEOF >conftest.h
19467 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
19468 echo "obj-m := conftest.o" >build
/Makefile
19470 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
19471 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
19472 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19473 (eval $ac_try) 2>&5
19475 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19476 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
19477 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19478 (eval $ac_try) 2>&5
19480 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19481 test $ac_status = 0; }; }; then :
19483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19484 $as_echo "yes" >&6; }
19486 $as_echo "#define HAVE_6ARGS_SECURITY_INODE_INIT_SECURITY 1" >>confdefs.h
19490 $as_echo "$as_me: failed program was:" >&5
19491 sed 's/^/| /' conftest.
$ac_ext >&5
19493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19494 $as_echo "no" >&6; }
19504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether security_inode_init_security wants callback" >&5
19505 $as_echo_n "checking whether security_inode_init_security wants callback... " >&6; }
19508 cat confdefs.h
- <<_ACEOF >conftest.c
19511 #include <linux/security.h>
19517 struct inode *ip __attribute__ ((unused)) = NULL;
19518 struct inode *dip __attribute__ ((unused)) = NULL;
19519 const struct qstr *str __attribute__ ((unused)) = NULL;
19520 initxattrs func __attribute__ ((unused)) = NULL;
19522 security_inode_init_security(ip, dip, str, func, NULL);
19532 cat - <<_ACEOF >conftest.h
19537 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
19538 echo "obj-m := conftest.o" >build
/Makefile
19540 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
19541 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
19542 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19543 (eval $ac_try) 2>&5
19545 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19546 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
19547 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19548 (eval $ac_try) 2>&5
19550 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19551 test $ac_status = 0; }; }; then :
19553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19554 $as_echo "yes" >&6; }
19556 $as_echo "#define HAVE_CALLBACK_SECURITY_INODE_INIT_SECURITY 1" >>confdefs.h
19560 $as_echo "$as_me: failed program was:" >&5
19561 sed 's/^/| /' conftest.
$ac_ext >&5
19563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19564 $as_echo "no" >&6; }
19573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mount_nodev() is available" >&5
19574 $as_echo_n "checking whether mount_nodev() is available... " >&6; }
19578 cat confdefs.h
- <<_ACEOF >conftest.c
19581 #include <linux/fs.h>
19587 mount_nodev(NULL, 0, NULL, NULL);
19597 cat - <<_ACEOF >conftest.h
19602 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
19603 echo "obj-m := conftest.o" >build
/Makefile
19605 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
19606 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
19607 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19608 (eval $ac_try) 2>&5
19610 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19611 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
19612 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19613 (eval $ac_try) 2>&5
19615 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19616 test $ac_status = 0; }; }; then :
19619 $as_echo "$as_me: failed program was:" >&5
19620 sed 's/^/| /' conftest.
$ac_ext >&5
19628 if test $rc -ne 0; then :
19630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19631 $as_echo "no" >&6; }
19634 if test "x$enable_linux_builtin" != xyes
; then
19636 grep -q -E '[[:space:]]mount_nodev[[:space:]]' \
19637 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
19639 if test $rc -ne 0; then
19641 for file in fs
/super.c
; do
19642 grep -q -E "EXPORT_SYMBOL.*(mount_nodev)" \
19643 "$LINUX/$file" 2>/dev
/null
19645 if test $rc -eq 0; then
19650 if test $export -eq 0; then :
19660 if test $rc -ne 0; then :
19662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19663 $as_echo "no" >&6; }
19667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19668 $as_echo "yes" >&6; }
19670 $as_echo "#define HAVE_MOUNT_NODEV 1" >>confdefs.h
19678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether super_block has s_shrink" >&5
19679 $as_echo_n "checking whether super_block has s_shrink... " >&6; }
19682 cat confdefs.h
- <<_ACEOF >conftest.c
19685 #include <linux/fs.h>
19687 int shrink(struct shrinker *s, struct shrink_control *sc)
19690 static const struct super_block
19691 sb __attribute__ ((unused)) = {
19692 .s_shrink.shrink = shrink,
19693 .s_shrink.seeks = DEFAULT_SEEKS,
19694 .s_shrink.batch = 0,
19710 cat - <<_ACEOF >conftest.h
19715 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
19716 echo "obj-m := conftest.o" >build
/Makefile
19718 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
19719 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
19720 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19721 (eval $ac_try) 2>&5
19723 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19724 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
19725 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19726 (eval $ac_try) 2>&5
19728 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19729 test $ac_status = 0; }; }; then :
19731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19732 $as_echo "yes" >&6; }
19734 $as_echo "#define HAVE_SHRINK 1" >>confdefs.h
19739 $as_echo "$as_me: failed program was:" >&5
19740 sed 's/^/| /' conftest.
$ac_ext >&5
19742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19743 $as_echo "no" >&6; }
19753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether shrink_control has nid" >&5
19754 $as_echo_n "checking whether shrink_control has nid... " >&6; }
19757 cat confdefs.h
- <<_ACEOF >conftest.c
19760 #include <linux/fs.h>
19766 struct shrink_control sc __attribute__ ((unused));
19767 unsigned long scnidsize __attribute__ ((unused)) =
19778 cat - <<_ACEOF >conftest.h
19783 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
19784 echo "obj-m := conftest.o" >build
/Makefile
19786 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
19787 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
19788 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19789 (eval $ac_try) 2>&5
19791 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19792 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
19793 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19794 (eval $ac_try) 2>&5
19796 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19797 test $ac_status = 0; }; }; then :
19799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19800 $as_echo "yes" >&6; }
19802 $as_echo "#define SHRINK_CONTROL_HAS_NID 1" >>confdefs.h
19806 $as_echo "$as_me: failed program was:" >&5
19807 sed 's/^/| /' conftest.
$ac_ext >&5
19809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19810 $as_echo "no" >&6; }
19820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether super_block has s_instances list_head" >&5
19821 $as_echo_n "checking whether super_block has s_instances list_head... " >&6; }
19824 cat confdefs.h
- <<_ACEOF >conftest.c
19827 #include <linux/fs.h>
19833 struct super_block sb __attribute__ ((unused));
19835 INIT_LIST_HEAD(&sb.s_instances);
19845 cat - <<_ACEOF >conftest.h
19850 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
19851 echo "obj-m := conftest.o" >build
/Makefile
19853 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
19854 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
19855 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19856 (eval $ac_try) 2>&5
19858 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19859 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
19860 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19861 (eval $ac_try) 2>&5
19863 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19864 test $ac_status = 0; }; }; then :
19866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19867 $as_echo "yes" >&6; }
19869 $as_echo "#define HAVE_S_INSTANCES_LIST_HEAD 1" >>confdefs.h
19873 $as_echo "$as_me: failed program was:" >&5
19874 sed 's/^/| /' conftest.
$ac_ext >&5
19876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19877 $as_echo "no" >&6; }
19886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether super_block has s_d_op" >&5
19887 $as_echo_n "checking whether super_block has s_d_op... " >&6; }
19890 cat confdefs.h
- <<_ACEOF >conftest.c
19893 #include <linux/fs.h>
19899 struct super_block sb __attribute__ ((unused));
19910 cat - <<_ACEOF >conftest.h
19915 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
19916 echo "obj-m := conftest.o" >build
/Makefile
19918 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
19919 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
19920 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19921 (eval $ac_try) 2>&5
19923 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19924 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
19925 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19926 (eval $ac_try) 2>&5
19928 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19929 test $ac_status = 0; }; }; then :
19931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19932 $as_echo "yes" >&6; }
19934 $as_echo "#define HAVE_S_D_OP 1" >>confdefs.h
19938 $as_echo "$as_me: failed program was:" >&5
19939 sed 's/^/| /' conftest.
$ac_ext >&5
19941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19942 $as_echo "no" >&6; }
19952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether bdi_setup_and_register() wants 2 args" >&5
19953 $as_echo_n "checking whether bdi_setup_and_register() wants 2 args... " >&6; }
19957 cat confdefs.h
- <<_ACEOF >conftest.c
19960 #include <linux/backing-dev.h>
19961 struct backing_dev_info bdi;
19967 char *name = "bdi";
19968 int error __attribute__((unused)) =
19969 bdi_setup_and_register(&bdi, name);
19979 cat - <<_ACEOF >conftest.h
19984 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
19985 echo "obj-m := conftest.o" >build
/Makefile
19987 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
19988 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
19989 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19990 (eval $ac_try) 2>&5
19992 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19993 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
19994 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19995 (eval $ac_try) 2>&5
19997 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19998 test $ac_status = 0; }; }; then :
20001 $as_echo "$as_me: failed program was:" >&5
20002 sed 's/^/| /' conftest.
$ac_ext >&5
20010 if test $rc -ne 0; then :
20012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20013 $as_echo "no" >&6; }
20014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether bdi_setup_and_register() wants 3 args" >&5
20015 $as_echo_n "checking whether bdi_setup_and_register() wants 3 args... " >&6; }
20019 cat confdefs.h
- <<_ACEOF >conftest.c
20022 #include <linux/backing-dev.h>
20023 struct backing_dev_info bdi;
20029 char *name = "bdi";
20030 unsigned int cap = BDI_CAP_MAP_COPY;
20031 int error __attribute__((unused)) =
20032 bdi_setup_and_register(&bdi, name, cap);
20042 cat - <<_ACEOF >conftest.h
20047 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
20048 echo "obj-m := conftest.o" >build
/Makefile
20050 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
20051 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
20052 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20053 (eval $ac_try) 2>&5
20055 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20056 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
20057 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20058 (eval $ac_try) 2>&5
20060 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20061 test $ac_status = 0; }; }; then :
20064 $as_echo "$as_me: failed program was:" >&5
20065 sed 's/^/| /' conftest.
$ac_ext >&5
20073 if test $rc -ne 0; then :
20075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20076 $as_echo "no" >&6; }
20079 if test "x$enable_linux_builtin" != xyes
; then
20081 grep -q -E '[[:space:]]bdi_setup_and_register[[:space:]]' \
20082 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
20084 if test $rc -ne 0; then
20086 for file in mm
/backing-dev.c
; do
20087 grep -q -E "EXPORT_SYMBOL.*(bdi_setup_and_register)" \
20088 "$LINUX/$file" 2>/dev
/null
20090 if test $rc -eq 0; then
20095 if test $export -eq 0; then :
20105 if test $rc -ne 0; then :
20107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20108 $as_echo "no" >&6; }
20112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20113 $as_echo "yes" >&6; }
20115 $as_echo "#define HAVE_3ARGS_BDI_SETUP_AND_REGISTER 1" >>confdefs.h
20123 if test "x$enable_linux_builtin" != xyes
; then
20125 grep -q -E '[[:space:]]bdi_setup_and_register[[:space:]]' \
20126 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
20128 if test $rc -ne 0; then
20130 for file in mm
/backing-dev.c
; do
20131 grep -q -E "EXPORT_SYMBOL.*(bdi_setup_and_register)" \
20132 "$LINUX/$file" 2>/dev
/null
20134 if test $rc -eq 0; then
20139 if test $export -eq 0; then :
20149 if test $rc -ne 0; then :
20151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20152 $as_echo "no" >&6; }
20153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether bdi_setup_and_register() wants 3 args" >&5
20154 $as_echo_n "checking whether bdi_setup_and_register() wants 3 args... " >&6; }
20158 cat confdefs.h
- <<_ACEOF >conftest.c
20161 #include <linux/backing-dev.h>
20162 struct backing_dev_info bdi;
20168 char *name = "bdi";
20169 unsigned int cap = BDI_CAP_MAP_COPY;
20170 int error __attribute__((unused)) =
20171 bdi_setup_and_register(&bdi, name, cap);
20181 cat - <<_ACEOF >conftest.h
20186 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
20187 echo "obj-m := conftest.o" >build
/Makefile
20189 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
20190 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
20191 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20192 (eval $ac_try) 2>&5
20194 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20195 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
20196 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20197 (eval $ac_try) 2>&5
20199 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20200 test $ac_status = 0; }; }; then :
20203 $as_echo "$as_me: failed program was:" >&5
20204 sed 's/^/| /' conftest.
$ac_ext >&5
20212 if test $rc -ne 0; then :
20214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20215 $as_echo "no" >&6; }
20218 if test "x$enable_linux_builtin" != xyes
; then
20220 grep -q -E '[[:space:]]bdi_setup_and_register[[:space:]]' \
20221 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
20223 if test $rc -ne 0; then
20225 for file in mm
/backing-dev.c
; do
20226 grep -q -E "EXPORT_SYMBOL.*(bdi_setup_and_register)" \
20227 "$LINUX/$file" 2>/dev
/null
20229 if test $rc -eq 0; then
20234 if test $export -eq 0; then :
20244 if test $rc -ne 0; then :
20246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20247 $as_echo "no" >&6; }
20251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20252 $as_echo "yes" >&6; }
20254 $as_echo "#define HAVE_3ARGS_BDI_SETUP_AND_REGISTER 1" >>confdefs.h
20263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20264 $as_echo "yes" >&6; }
20266 $as_echo "#define HAVE_2ARGS_BDI_SETUP_AND_REGISTER 1" >>confdefs.h
20274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether set_nlink() is available" >&5
20275 $as_echo_n "checking whether set_nlink() is available... " >&6; }
20278 cat confdefs.h
- <<_ACEOF >conftest.c
20281 #include <linux/fs.h>
20288 unsigned int link = 0;
20289 (void) set_nlink(&node, link);
20299 cat - <<_ACEOF >conftest.h
20304 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
20305 echo "obj-m := conftest.o" >build
/Makefile
20307 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
20308 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
20309 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20310 (eval $ac_try) 2>&5
20312 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20313 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
20314 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20315 (eval $ac_try) 2>&5
20317 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20318 test $ac_status = 0; }; }; then :
20320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20321 $as_echo "yes" >&6; }
20323 $as_echo "#define HAVE_SET_NLINK 1" >>confdefs.h
20327 $as_echo "$as_me: failed program was:" >&5
20328 sed 's/^/| /' conftest.
$ac_ext >&5
20330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20331 $as_echo "no" >&6; }
20341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether elevator_change() is available" >&5
20342 $as_echo_n "checking whether elevator_change() is available... " >&6; }
20343 tmp_flags
="$EXTRA_KCFLAGS"
20344 EXTRA_KCFLAGS
="${NO_UNUSED_BUT_SET_VARIABLE}"
20347 cat confdefs.h
- <<_ACEOF >conftest.c
20350 #include <linux/blkdev.h>
20351 #include <linux/elevator.h>
20358 struct request_queue *q = NULL;
20359 char *elevator = NULL;
20360 ret = elevator_change(q, elevator);
20370 cat - <<_ACEOF >conftest.h
20375 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
20376 echo "obj-m := conftest.o" >build
/Makefile
20378 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
20379 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
20380 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20381 (eval $ac_try) 2>&5
20383 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20384 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
20385 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20386 (eval $ac_try) 2>&5
20388 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20389 test $ac_status = 0; }; }; then :
20391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20392 $as_echo "yes" >&6; }
20394 $as_echo "#define HAVE_ELEVATOR_CHANGE 1" >>confdefs.h
20398 $as_echo "$as_me: failed program was:" >&5
20399 sed 's/^/| /' conftest.
$ac_ext >&5
20401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20402 $as_echo "no" >&6; }
20410 EXTRA_KCFLAGS
="$tmp_flags"
20412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sget() wants 5 args" >&5
20413 $as_echo_n "checking whether sget() wants 5 args... " >&6; }
20416 cat confdefs.h
- <<_ACEOF >conftest.c
20419 #include <linux/fs.h>
20425 struct file_system_type *type = NULL;
20426 int (*test)(struct super_block *,void *) = NULL;
20427 int (*set)(struct super_block *,void *) = NULL;
20430 (void) sget(type, test, set, flags, data);
20440 cat - <<_ACEOF >conftest.h
20445 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
20446 echo "obj-m := conftest.o" >build
/Makefile
20448 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
20449 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
20450 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20451 (eval $ac_try) 2>&5
20453 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20454 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
20455 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20456 (eval $ac_try) 2>&5
20458 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20459 test $ac_status = 0; }; }; then :
20461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20462 $as_echo "yes" >&6; }
20464 $as_echo "#define HAVE_5ARG_SGET 1" >>confdefs.h
20468 $as_echo "$as_me: failed program was:" >&5
20469 sed 's/^/| /' conftest.
$ac_ext >&5
20471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20472 $as_echo "no" >&6; }
20481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lseek_execute() is available" >&5
20482 $as_echo_n "checking whether lseek_execute() is available... " >&6; }
20486 cat confdefs.h
- <<_ACEOF >conftest.c
20489 #include <linux/fs.h>
20495 struct file *fp __attribute__ ((unused)) = NULL;
20496 struct inode *ip __attribute__ ((unused)) = NULL;
20497 loff_t offset __attribute__ ((unused)) = 0;
20498 loff_t maxsize __attribute__ ((unused)) = 0;
20500 lseek_execute(fp, ip, offset, maxsize);
20510 cat - <<_ACEOF >conftest.h
20515 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
20516 echo "obj-m := conftest.o" >build
/Makefile
20518 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
20519 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
20520 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20521 (eval $ac_try) 2>&5
20523 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20524 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
20525 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20526 (eval $ac_try) 2>&5
20528 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20529 test $ac_status = 0; }; }; then :
20532 $as_echo "$as_me: failed program was:" >&5
20533 sed 's/^/| /' conftest.
$ac_ext >&5
20541 if test $rc -ne 0; then :
20543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20544 $as_echo "no" >&6; }
20547 if test "x$enable_linux_builtin" != xyes
; then
20549 grep -q -E '[[:space:]]lseek_exclusive[[:space:]]' \
20550 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
20552 if test $rc -ne 0; then
20554 for file in fs
/read_write.c
; do
20555 grep -q -E "EXPORT_SYMBOL.*(lseek_exclusive)" \
20556 "$LINUX/$file" 2>/dev
/null
20558 if test $rc -eq 0; then
20563 if test $export -eq 0; then :
20573 if test $rc -ne 0; then :
20575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20576 $as_echo "no" >&6; }
20580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20581 $as_echo "yes" >&6; }
20583 $as_echo "#define HAVE_LSEEK_EXECUTE 1" >>confdefs.h
20591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fops->iterate() is available" >&5
20592 $as_echo_n "checking whether fops->iterate() is available... " >&6; }
20595 cat confdefs.h
- <<_ACEOF >conftest.c
20598 #include <linux/fs.h>
20599 int iterate(struct file *filp, struct dir_context * context)
20602 static const struct file_operations fops
20603 __attribute__ ((unused)) = {
20604 .iterate = iterate,
20620 cat - <<_ACEOF >conftest.h
20625 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
20626 echo "obj-m := conftest.o" >build
/Makefile
20628 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
20629 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
20630 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20631 (eval $ac_try) 2>&5
20633 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20634 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
20635 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20636 (eval $ac_try) 2>&5
20638 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20639 test $ac_status = 0; }; }; then :
20641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20642 $as_echo "yes" >&6; }
20644 $as_echo "#define HAVE_VFS_ITERATE 1" >>confdefs.h
20648 $as_echo "$as_me: failed program was:" >&5
20649 sed 's/^/| /' conftest.
$ac_ext >&5
20651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20652 $as_echo "no" >&6; }
20654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fops->readdir() is available" >&5
20655 $as_echo_n "checking whether fops->readdir() is available... " >&6; }
20658 cat confdefs.h
- <<_ACEOF >conftest.c
20661 #include <linux/fs.h>
20662 int readdir(struct file *filp, void *entry, filldir_t func)
20665 static const struct file_operations fops
20666 __attribute__ ((unused)) = {
20667 .readdir = readdir,
20683 cat - <<_ACEOF >conftest.h
20688 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
20689 echo "obj-m := conftest.o" >build
/Makefile
20691 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
20692 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
20693 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20694 (eval $ac_try) 2>&5
20696 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20697 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
20698 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20699 (eval $ac_try) 2>&5
20701 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20702 test $ac_status = 0; }; }; then :
20704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20705 $as_echo "yes" >&6; }
20707 $as_echo "#define HAVE_VFS_READDIR 1" >>confdefs.h
20711 $as_echo "$as_me: failed program was:" >&5
20712 sed 's/^/| /' conftest.
$ac_ext >&5
20714 as_fn_error $?
"no; file a bug report with ZFSOnLinux" "$LINENO" 5
20731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fops->read/write_iter() are available" >&5
20732 $as_echo_n "checking whether fops->read/write_iter() are available... " >&6; }
20735 cat confdefs.h
- <<_ACEOF >conftest.c
20738 #include <linux/fs.h>
20740 ssize_t test_read(struct kiocb *kiocb, struct iov_iter *to)
20742 ssize_t test_write(struct kiocb *kiocb, struct iov_iter *from)
20745 static const struct file_operations
20746 fops __attribute__ ((unused)) = {
20747 .read_iter = test_read,
20748 .write_iter = test_write,
20764 cat - <<_ACEOF >conftest.h
20769 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
20770 echo "obj-m := conftest.o" >build
/Makefile
20772 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
20773 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
20774 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20775 (eval $ac_try) 2>&5
20777 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20778 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
20779 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20780 (eval $ac_try) 2>&5
20782 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20783 test $ac_status = 0; }; }; then :
20785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20786 $as_echo "yes" >&6; }
20788 $as_echo "#define HAVE_VFS_RW_ITERATE 1" >>confdefs.h
20792 $as_echo "$as_me: failed program was:" >&5
20793 sed 's/^/| /' conftest.
$ac_ext >&5
20795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20796 $as_echo "no" >&6; }
20806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether kmap_atomic wants 1 args" >&5
20807 $as_echo_n "checking whether kmap_atomic wants 1 args... " >&6; }
20810 cat confdefs.h
- <<_ACEOF >conftest.c
20813 #include <linux/pagemap.h>
20820 kmap_atomic(&page);
20830 cat - <<_ACEOF >conftest.h
20835 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
20836 echo "obj-m := conftest.o" >build
/Makefile
20838 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
20839 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
20840 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20841 (eval $ac_try) 2>&5
20843 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20844 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
20845 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20846 (eval $ac_try) 2>&5
20848 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20849 test $ac_status = 0; }; }; then :
20851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20852 $as_echo "yes" >&6; }
20854 $as_echo "#define HAVE_1ARG_KMAP_ATOMIC 1" >>confdefs.h
20858 $as_echo "$as_me: failed program was:" >&5
20859 sed 's/^/| /' conftest.
$ac_ext >&5
20861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20862 $as_echo "no" >&6; }
20872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether follow_down_one() is available" >&5
20873 $as_echo_n "checking whether follow_down_one() is available... " >&6; }
20876 cat confdefs.h
- <<_ACEOF >conftest.c
20879 #include <linux/namei.h>
20885 struct path *p = NULL;
20886 follow_down_one(p);
20896 cat - <<_ACEOF >conftest.h
20901 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
20902 echo "obj-m := conftest.o" >build
/Makefile
20904 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
20905 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
20906 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20907 (eval $ac_try) 2>&5
20909 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20910 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
20911 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20912 (eval $ac_try) 2>&5
20914 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20915 test $ac_status = 0; }; }; then :
20917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20918 $as_echo "yes" >&6; }
20920 $as_echo "#define HAVE_FOLLOW_DOWN_ONE 1" >>confdefs.h
20924 $as_echo "$as_me: failed program was:" >&5
20925 sed 's/^/| /' conftest.
$ac_ext >&5
20927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20928 $as_echo "no" >&6; }
20938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether make_request_fn() returns int" >&5
20939 $as_echo_n "checking whether make_request_fn() returns int... " >&6; }
20942 cat confdefs.h
- <<_ACEOF >conftest.c
20945 #include <linux/blkdev.h>
20947 int make_request(struct request_queue *q, struct bio *bio)
20956 blk_queue_make_request(NULL, &make_request);
20966 cat - <<_ACEOF >conftest.h
20971 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
20972 echo "obj-m := conftest.o" >build
/Makefile
20974 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
20975 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
20976 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20977 (eval $ac_try) 2>&5
20979 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20980 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
20981 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20982 (eval $ac_try) 2>&5
20984 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20985 test $ac_status = 0; }; }; then :
20987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20988 $as_echo "yes" >&6; }
20990 $as_echo "#define MAKE_REQUEST_FN_RET int" >>confdefs.h
20993 $as_echo "#define HAVE_MAKE_REQUEST_FN_RET_INT 1" >>confdefs.h
20997 $as_echo "$as_me: failed program was:" >&5
20998 sed 's/^/| /' conftest.
$ac_ext >&5
21000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21001 $as_echo "no" >&6; }
21002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether make_request_fn() returns void" >&5
21003 $as_echo_n "checking whether make_request_fn() returns void... " >&6; }
21006 cat confdefs.h
- <<_ACEOF >conftest.c
21009 #include <linux/blkdev.h>
21011 void make_request(struct request_queue *q, struct bio *bio)
21020 blk_queue_make_request(NULL, &make_request);
21030 cat - <<_ACEOF >conftest.h
21035 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
21036 echo "obj-m := conftest.o" >build
/Makefile
21038 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
21039 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
21040 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21041 (eval $ac_try) 2>&5
21043 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21044 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
21045 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21046 (eval $ac_try) 2>&5
21048 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21049 test $ac_status = 0; }; }; then :
21051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21052 $as_echo "yes" >&6; }
21054 $as_echo "#define MAKE_REQUEST_FN_RET void" >>confdefs.h
21058 $as_echo "$as_me: failed program was:" >&5
21059 sed 's/^/| /' conftest.
$ac_ext >&5
21061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21062 $as_echo "no" >&6; }
21063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether make_request_fn() returns blk_qc_t" >&5
21064 $as_echo_n "checking whether make_request_fn() returns blk_qc_t... " >&6; }
21067 cat confdefs.h
- <<_ACEOF >conftest.c
21070 #include <linux/blkdev.h>
21072 blk_qc_t make_request(struct request_queue *q, struct bio *bio)
21074 return (BLK_QC_T_NONE);
21081 blk_queue_make_request(NULL, &make_request);
21091 cat - <<_ACEOF >conftest.h
21096 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
21097 echo "obj-m := conftest.o" >build
/Makefile
21099 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
21100 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
21101 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21102 (eval $ac_try) 2>&5
21104 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21105 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
21106 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21107 (eval $ac_try) 2>&5
21109 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21110 test $ac_status = 0; }; }; then :
21112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21113 $as_echo "yes" >&6; }
21115 $as_echo "#define MAKE_REQUEST_FN_RET blk_qc_t" >>confdefs.h
21118 $as_echo "#define HAVE_MAKE_REQUEST_FN_RET_QC 1" >>confdefs.h
21122 $as_echo "$as_me: failed program was:" >&5
21123 sed 's/^/| /' conftest.
$ac_ext >&5
21125 as_fn_error $?
"no - Please file a bug report at
21126 https://github.com/zfsonlinux/zfs/issues/new" "$LINENO" 5
21150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether generic IO accounting symbols are avaliable" >&5
21151 $as_echo_n "checking whether generic IO accounting symbols are avaliable... " >&6; }
21155 cat confdefs.h
- <<_ACEOF >conftest.c
21158 #include <linux/bio.h>
21160 void (*generic_start_io_acct_f)(int, unsigned long,
21161 struct hd_struct *) = &generic_start_io_acct;
21162 void (*generic_end_io_acct_f)(int, struct hd_struct *,
21163 unsigned long) = &generic_end_io_acct;
21169 generic_start_io_acct(0, 0, NULL);
21170 generic_end_io_acct(0, NULL, 0);
21180 cat - <<_ACEOF >conftest.h
21185 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
21186 echo "obj-m := conftest.o" >build
/Makefile
21188 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
21189 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
21190 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21191 (eval $ac_try) 2>&5
21193 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21194 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
21195 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21196 (eval $ac_try) 2>&5
21198 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21199 test $ac_status = 0; }; }; then :
21202 $as_echo "$as_me: failed program was:" >&5
21203 sed 's/^/| /' conftest.
$ac_ext >&5
21211 if test $rc -ne 0; then :
21213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21214 $as_echo "no" >&6; }
21217 if test "x$enable_linux_builtin" != xyes
; then
21219 grep -q -E '[[:space:]]generic_start_io_acct[[:space:]]' \
21220 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
21222 if test $rc -ne 0; then
21224 for file in block
/bio.c
; do
21225 grep -q -E "EXPORT_SYMBOL.*(generic_start_io_acct)" \
21226 "$LINUX/$file" 2>/dev
/null
21228 if test $rc -eq 0; then
21233 if test $export -eq 0; then :
21243 if test $rc -ne 0; then :
21245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21246 $as_echo "no" >&6; }
21250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21251 $as_echo "yes" >&6; }
21253 $as_echo "#define HAVE_GENERIC_IO_ACCT 1" >>confdefs.h
21261 if test "$LINUX_OBJ" != "$LINUX"; then :
21263 KERNELMAKE_PARAMS
="$KERNELMAKE_PARAMS O=$LINUX_OBJ"
21269 KERNELCPPFLAGS
="$KERNELCPPFLAGS $NO_UNUSED_BUT_SET_VARIABLE"
21270 KERNELCPPFLAGS
="$KERNELCPPFLAGS $NO_BOOL_COMPARE"
21271 KERNELCPPFLAGS
="$KERNELCPPFLAGS -DHAVE_SPL -D_KERNEL"
21272 KERNELCPPFLAGS
="$KERNELCPPFLAGS -DTEXT_DOMAIN=\\\"zfs-linux-kernel\\\""
21279 # Check whether --with-mounthelperdir was given.
21280 if test "${with_mounthelperdir+set}" = set; then :
21281 withval
=$with_mounthelperdir; mounthelperdir
=$withval
21283 mounthelperdir
=/sbin
21290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for udev directories" >&5
21291 $as_echo_n "checking for udev directories... " >&6; }
21293 # Check whether --with-udevdir was given.
21294 if test "${with_udevdir+set}" = set; then :
21295 withval
=$with_udevdir; udevdir
=$withval
21301 if test "x$udevdir" = xcheck
; then :
21304 path2
=/usr
/lib
/udev
21307 if test -d "$path1"; then :
21311 if test -d "$path2"; then :
21322 # Check whether --with-udevruledir was given.
21323 if test "${with_udevruledir+set}" = set; then :
21324 withval
=$with_udevruledir; udevruledir
=$withval
21326 udevruledir
="${udevdir}/rules.d"
21332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $udevdir;$udevruledir" >&5
21333 $as_echo "$udevdir;$udevruledir" >&6; }
21336 # Check whether --enable-systemd was given.
21337 if test "${enable_systemd+set}" = set; then :
21338 enableval
=$enable_systemd;
21345 # Check whether --with-systemdunitdir was given.
21346 if test "${with_systemdunitdir+set}" = set; then :
21347 withval
=$with_systemdunitdir; systemdunitdir
=$withval
21349 systemdunitdir
=/usr
/lib
/systemd
/system
21354 # Check whether --with-systemdpresetdir was given.
21355 if test "${with_systemdpresetdir+set}" = set; then :
21356 withval
=$with_systemdpresetdir; systemdpresetdir
=$withval
21358 systemdpresetdir
=/usr
/lib
/systemd
/system-preset
21363 # Check whether --with-systemdmodulesloaddir was given.
21364 if test "${with_systemdmodulesloaddir+set}" = set; then :
21365 withval
=$with_systemdmodulesloaddir; systemdmoduleloaddir
=$withval
21367 systemdmodulesloaddir
=/usr
/lib
/modules-load.d
21372 if test "x$enable_systemd" = xyes
; then :
21374 ZFS_INIT_SYSTEMD
=systemd
21375 ZFS_MODULE_LOAD
=modules-load.d
21376 modulesloaddir
=$systemdmodulesloaddir
21387 # Check whether --enable-sysvinit was given.
21388 if test "${enable_sysvinit+set}" = set; then :
21389 enableval
=$enable_sysvinit;
21391 enable_sysvinit
=yes
21395 if test "x$enable_sysvinit" = xyes
; then :
21396 ZFS_INIT_SYSV
=init.d
21402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dracut directory" >&5
21403 $as_echo_n "checking for dracut directory... " >&6; }
21405 # Check whether --with-dracutdir was given.
21406 if test "${with_dracutdir+set}" = set; then :
21407 withval
=$with_dracutdir; dracutdir
=$withval
21413 if test "x$dracutdir" = xcheck
; then :
21415 path1
=/usr
/share
/dracut
21416 path2
=/usr
/lib
/dracut
21419 if test -d "$path1"; then :
21423 if test -d "$path2"; then :
21426 dracutdir
="$default"
21434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dracutdir" >&5
21435 $as_echo "$dracutdir" >&6; }
21438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for target asm dir" >&5
21439 $as_echo_n "checking for target asm dir... " >&6; }
21440 TARGET_ARCH
=`echo ${target_cpu} | sed -e s/i.86/i386/`
21442 case $TARGET_ARCH in
21444 TARGET_ASM_DIR
=asm-
${TARGET_ARCH}
21447 TARGET_ASM_DIR
=asm-generic
21452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TARGET_ASM_DIR" >&5
21453 $as_echo "$TARGET_ASM_DIR" >&6; }
21458 ac_fn_c_check_header_mongrel
"$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
21459 if test "x$ac_cv_header_zlib_h" = xyes
; then :
21462 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
21463 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21465 *** zlib.h missing, zlib-devel package required
21466 See \`config.log' for more details" "$LINENO" 5; }
21471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compress2 in -lz" >&5
21472 $as_echo_n "checking for compress2 in -lz... " >&6; }
21473 if ${ac_cv_lib_z_compress2+:} false
; then :
21474 $as_echo_n "(cached) " >&6
21476 ac_check_lib_save_LIBS
=$LIBS
21478 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21479 /* end confdefs.h. */
21481 /* Override any GCC internal prototype to avoid an error.
21482 Use char because int might match the return type of a GCC
21483 builtin and then its argument prototype would still apply. */
21491 return compress2 ();
21496 if ac_fn_c_try_link
"$LINENO"; then :
21497 ac_cv_lib_z_compress2
=yes
21499 ac_cv_lib_z_compress2
=no
21501 rm -f core conftest.err conftest.
$ac_objext \
21502 conftest
$ac_exeext conftest.
$ac_ext
21503 LIBS
=$ac_check_lib_save_LIBS
21505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_compress2" >&5
21506 $as_echo "$ac_cv_lib_z_compress2" >&6; }
21507 if test "x$ac_cv_lib_z_compress2" = xyes
; then :
21508 cat >>confdefs.h
<<_ACEOF
21509 #define HAVE_LIBZ 1
21515 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
21516 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21518 *** compress2() missing, zlib-devel package required
21519 See \`config.log' for more details" "$LINENO" 5; }
21523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uncompress in -lz" >&5
21524 $as_echo_n "checking for uncompress in -lz... " >&6; }
21525 if ${ac_cv_lib_z_uncompress+:} false
; then :
21526 $as_echo_n "(cached) " >&6
21528 ac_check_lib_save_LIBS
=$LIBS
21530 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21531 /* end confdefs.h. */
21533 /* Override any GCC internal prototype to avoid an error.
21534 Use char because int might match the return type of a GCC
21535 builtin and then its argument prototype would still apply. */
21539 char uncompress ();
21543 return uncompress ();
21548 if ac_fn_c_try_link
"$LINENO"; then :
21549 ac_cv_lib_z_uncompress
=yes
21551 ac_cv_lib_z_uncompress
=no
21553 rm -f core conftest.err conftest.
$ac_objext \
21554 conftest
$ac_exeext conftest.
$ac_ext
21555 LIBS
=$ac_check_lib_save_LIBS
21557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_uncompress" >&5
21558 $as_echo "$ac_cv_lib_z_uncompress" >&6; }
21559 if test "x$ac_cv_lib_z_uncompress" = xyes
; then :
21560 cat >>confdefs.h
<<_ACEOF
21561 #define HAVE_LIBZ 1
21567 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
21568 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21570 *** uncompress() missing, zlib-devel package required
21571 See \`config.log' for more details" "$LINENO" 5; }
21575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for crc32 in -lz" >&5
21576 $as_echo_n "checking for crc32 in -lz... " >&6; }
21577 if ${ac_cv_lib_z_crc32+:} false
; then :
21578 $as_echo_n "(cached) " >&6
21580 ac_check_lib_save_LIBS
=$LIBS
21582 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21583 /* end confdefs.h. */
21585 /* Override any GCC internal prototype to avoid an error.
21586 Use char because int might match the return type of a GCC
21587 builtin and then its argument prototype would still apply. */
21600 if ac_fn_c_try_link
"$LINENO"; then :
21601 ac_cv_lib_z_crc32
=yes
21603 ac_cv_lib_z_crc32
=no
21605 rm -f core conftest.err conftest.
$ac_objext \
21606 conftest
$ac_exeext conftest.
$ac_ext
21607 LIBS
=$ac_check_lib_save_LIBS
21609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_crc32" >&5
21610 $as_echo "$ac_cv_lib_z_crc32" >&6; }
21611 if test "x$ac_cv_lib_z_crc32" = xyes
; then :
21612 cat >>confdefs.h
<<_ACEOF
21613 #define HAVE_LIBZ 1
21619 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
21620 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21622 *** crc32() missing, zlib-devel package required
21623 See \`config.log' for more details" "$LINENO" 5; }
21630 $as_echo "#define HAVE_ZLIB 1" >>confdefs.h
21636 ac_fn_c_check_header_mongrel
"$LINENO" "uuid/uuid.h" "ac_cv_header_uuid_uuid_h" "$ac_includes_default"
21637 if test "x$ac_cv_header_uuid_uuid_h" = xyes
; then :
21640 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
21641 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21643 *** uuid/uuid.h missing, libuuid-devel package required
21644 See \`config.log' for more details" "$LINENO" 5; }
21649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uuid_generate in -luuid" >&5
21650 $as_echo_n "checking for uuid_generate in -luuid... " >&6; }
21651 if ${ac_cv_lib_uuid_uuid_generate+:} false
; then :
21652 $as_echo_n "(cached) " >&6
21654 ac_check_lib_save_LIBS
=$LIBS
21655 LIBS
="-luuid $LIBS"
21656 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21657 /* end confdefs.h. */
21659 /* Override any GCC internal prototype to avoid an error.
21660 Use char because int might match the return type of a GCC
21661 builtin and then its argument prototype would still apply. */
21665 char uuid_generate ();
21669 return uuid_generate ();
21674 if ac_fn_c_try_link
"$LINENO"; then :
21675 ac_cv_lib_uuid_uuid_generate
=yes
21677 ac_cv_lib_uuid_uuid_generate
=no
21679 rm -f core conftest.err conftest.
$ac_objext \
21680 conftest
$ac_exeext conftest.
$ac_ext
21681 LIBS
=$ac_check_lib_save_LIBS
21683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_uuid_uuid_generate" >&5
21684 $as_echo "$ac_cv_lib_uuid_uuid_generate" >&6; }
21685 if test "x$ac_cv_lib_uuid_uuid_generate" = xyes
; then :
21686 cat >>confdefs.h
<<_ACEOF
21687 #define HAVE_LIBUUID 1
21690 LIBS
="-luuid $LIBS"
21693 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
21694 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21696 *** uuid_generate() missing, libuuid-devel package required
21697 See \`config.log' for more details" "$LINENO" 5; }
21701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uuid_is_null in -luuid" >&5
21702 $as_echo_n "checking for uuid_is_null in -luuid... " >&6; }
21703 if ${ac_cv_lib_uuid_uuid_is_null+:} false
; then :
21704 $as_echo_n "(cached) " >&6
21706 ac_check_lib_save_LIBS
=$LIBS
21707 LIBS
="-luuid $LIBS"
21708 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21709 /* end confdefs.h. */
21711 /* Override any GCC internal prototype to avoid an error.
21712 Use char because int might match the return type of a GCC
21713 builtin and then its argument prototype would still apply. */
21717 char uuid_is_null ();
21721 return uuid_is_null ();
21726 if ac_fn_c_try_link
"$LINENO"; then :
21727 ac_cv_lib_uuid_uuid_is_null
=yes
21729 ac_cv_lib_uuid_uuid_is_null
=no
21731 rm -f core conftest.err conftest.
$ac_objext \
21732 conftest
$ac_exeext conftest.
$ac_ext
21733 LIBS
=$ac_check_lib_save_LIBS
21735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_uuid_uuid_is_null" >&5
21736 $as_echo "$ac_cv_lib_uuid_uuid_is_null" >&6; }
21737 if test "x$ac_cv_lib_uuid_uuid_is_null" = xyes
; then :
21738 cat >>confdefs.h
<<_ACEOF
21739 #define HAVE_LIBUUID 1
21742 LIBS
="-luuid $LIBS"
21745 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
21746 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21748 *** uuid_is_null() missing, libuuid-devel package required
21749 See \`config.log' for more details" "$LINENO" 5; }
21756 $as_echo "#define HAVE_LIBUUID 1" >>confdefs.h
21761 # Check whether --with-blkid was given.
21762 if test "${with_blkid+set}" = set; then :
21763 withval
=$with_blkid;
21770 if test "x$with_blkid" = xyes
; then :
21775 $as_echo "#define HAVE_LIBBLKID 1" >>confdefs.h
21780 if test "x$with_blkid" = xcheck
; then :
21782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for blkid_get_cache in -lblkid" >&5
21783 $as_echo_n "checking for blkid_get_cache in -lblkid... " >&6; }
21784 if ${ac_cv_lib_blkid_blkid_get_cache+:} false
; then :
21785 $as_echo_n "(cached) " >&6
21787 ac_check_lib_save_LIBS
=$LIBS
21788 LIBS
="-lblkid $LIBS"
21789 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21790 /* end confdefs.h. */
21792 /* Override any GCC internal prototype to avoid an error.
21793 Use char because int might match the return type of a GCC
21794 builtin and then its argument prototype would still apply. */
21798 char blkid_get_cache ();
21802 return blkid_get_cache ();
21807 if ac_fn_c_try_link
"$LINENO"; then :
21808 ac_cv_lib_blkid_blkid_get_cache
=yes
21810 ac_cv_lib_blkid_blkid_get_cache
=no
21812 rm -f core conftest.err conftest.
$ac_objext \
21813 conftest
$ac_exeext conftest.
$ac_ext
21814 LIBS
=$ac_check_lib_save_LIBS
21816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_blkid_blkid_get_cache" >&5
21817 $as_echo "$ac_cv_lib_blkid_blkid_get_cache" >&6; }
21818 if test "x$ac_cv_lib_blkid_blkid_get_cache" = xyes
; then :
21820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for blkid zfs support" >&5
21821 $as_echo_n "checking for blkid zfs support... " >&6; }
21824 truncate
-s 64M
$ZFS_DEV
21825 echo -en "\x0c\xb1\xba\0\0\0\0\0" | \
21826 dd of
=$ZFS_DEV bs
=1k count
=8 \
21827 seek
=128 conv
=notrunc
&>/dev
/null \
21828 >/dev
/null
2>/dev
/null
21829 echo -en "\x0c\xb1\xba\0\0\0\0\0" | \
21830 dd of
=$ZFS_DEV bs
=1k count
=8 \
21831 seek
=132 conv
=notrunc
&>/dev
/null \
21832 >/dev
/null
2>/dev
/null
21833 echo -en "\x0c\xb1\xba\0\0\0\0\0" | \
21834 dd of
=$ZFS_DEV bs
=1k count
=8 \
21835 seek
=136 conv
=notrunc
&>/dev
/null \
21836 >/dev
/null
2>/dev
/null
21837 echo -en "\x0c\xb1\xba\0\0\0\0\0" | \
21838 dd of
=$ZFS_DEV bs
=1k count
=8 \
21839 seek
=140 conv
=notrunc
&>/dev
/null \
21840 >/dev
/null
2>/dev
/null
21845 if test "$cross_compiling" = yes; then :
21846 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
21847 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21848 as_fn_error $?
"cannot run test program while cross compiling
21849 See \`config.log' for more details" "$LINENO" 5; }
21851 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21852 /* end confdefs.h. */
21855 #include <stdlib.h>
21856 #include <blkid/blkid.h>
21865 if (blkid_get_cache(&cache, NULL) < 0)
21868 value = blkid_get_tag_value(cache, "TYPE",
21871 blkid_put_cache(cache);
21875 if (strcmp(value, "zfs_member")) {
21877 blkid_put_cache(cache);
21882 blkid_put_cache(cache);
21888 if ac_fn_c_try_run
"$LINENO"; then :
21891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21892 $as_echo "yes" >&6; }
21896 $as_echo "#define HAVE_LIBBLKID 1" >>confdefs.h
21902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21903 $as_echo "no" >&6; }
21904 if test "x$with_blkid" != xcheck
; then :
21905 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
21906 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21907 as_fn_error $?
"--with-blkid given but unavailable
21908 See \`config.log' for more details" "$LINENO" 5; }
21912 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
21913 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
21921 if test "x$with_blkid" != xcheck
; then :
21922 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
21923 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21924 as_fn_error $?
"--with-blkid given but unavailable
21925 See \`config.log' for more details" "$LINENO" 5; }
21935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -Wframe-larger-than=<size> support" >&5
21936 $as_echo_n "checking for -Wframe-larger-than=<size> support... " >&6; }
21938 saved_flags
="$CFLAGS"
21939 CFLAGS
="$CFLAGS -Wframe-larger-than=1024"
21941 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21942 /* end confdefs.h. */
21952 if ac_fn_c_try_compile
"$LINENO"; then :
21954 FRAME_LARGER_THAN
=-Wframe-larger-than=1024
21955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21956 $as_echo "yes" >&6; }
21961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21962 $as_echo "no" >&6; }
21965 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
21967 CFLAGS
="$saved_flags"
21971 if test "x$runstatedir" = x
; then
21972 runstatedir
='${localstatedir}/run'
21976 for ac_func
in mlockall
21978 ac_fn_c_check_func
"$LINENO" "mlockall" "ac_cv_func_mlockall"
21979 if test "x$ac_cv_func_mlockall" = xyes
; then :
21980 cat >>confdefs.h
<<_ACEOF
21981 #define HAVE_MLOCKALL 1
21991 # Check whether --with-linux was given.
21992 if test "${with_linux+set}" = set; then :
21993 withval
=$with_linux; kernelsrc
="$withval"
21998 # Check whether --with-linux-obj was given.
21999 if test "${with_linux_obj+set}" = set; then :
22000 withval
=$with_linux_obj; kernelbuild
="$withval"
22004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking kernel source directory" >&5
22005 $as_echo_n "checking kernel source directory... " >&6; }
22006 if test -z "$kernelsrc"; then :
22008 if test -e "/lib/modules/$(uname -r)/source"; then :
22010 headersdir
="/lib/modules/$(uname -r)/source"
22011 sourcelink
=$
(readlink
-f "$headersdir")
22013 elif test -e "/lib/modules/$(uname -r)/build"; then :
22015 headersdir
="/lib/modules/$(uname -r)/build"
22016 sourcelink
=$
(readlink
-f "$headersdir")
22020 sourcelink
=$
(ls -1d /usr
/src
/kernels
/* \
22022 2>/dev
/null |
grep -v obj |
tail -1)
22026 if test -n "$sourcelink" && test -e ${sourcelink}; then :
22028 kernelsrc
=`readlink -f ${sourcelink}`
22032 kernelsrc
="Not found"
22038 if test "$kernelsrc" = "NONE"; then :
22046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kernelsrc" >&5
22047 $as_echo "$kernelsrc" >&6; }
22048 if test ! -d "$kernelsrc"; then :
22051 *** Please make sure the kernel devel package for your distribution
22052 *** is installed and then try again. If that fails, you can specify the
22053 *** location of the kernel source with the '--with-linux=PATH' option." "$LINENO" 5
22057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking kernel build directory" >&5
22058 $as_echo_n "checking kernel build directory... " >&6; }
22059 if test -z "$kernelbuild"; then :
22061 if test -e "/lib/modules/$(uname -r)/build"; then :
22063 kernelbuild
=`readlink -f /lib/modules/$(uname -r)/build`
22065 elif test -d ${kernelsrc}-obj/${target_cpu}/${target_cpu}; then :
22067 kernelbuild
=${kernelsrc}-obj/${target_cpu}/${target_cpu}
22069 elif test -d ${kernelsrc}-obj/${target_cpu}/default
; then :
22071 kernelbuild
=${kernelsrc}-obj/${target_cpu}/default
22073 elif test -d `dirname ${kernelsrc}`/build-
${target_cpu}; then :
22075 kernelbuild
=`dirname ${kernelsrc}`/build-
${target_cpu}
22079 kernelbuild
=${kernelsrc}
22084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kernelbuild" >&5
22085 $as_echo "$kernelbuild" >&6; }
22087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking kernel source version" >&5
22088 $as_echo_n "checking kernel source version... " >&6; }
22089 utsrelease1
=$kernelbuild/include
/linux
/version.h
22090 utsrelease2
=$kernelbuild/include
/linux
/utsrelease.h
22091 utsrelease3
=$kernelbuild/include
/generated
/utsrelease.h
22092 if test -r $utsrelease1 && fgrep
-q UTS_RELEASE
$utsrelease1; then :
22094 utsrelease
=linux
/version.h
22096 elif test -r $utsrelease2 && fgrep
-q UTS_RELEASE
$utsrelease2; then :
22098 utsrelease
=linux
/utsrelease.h
22100 elif test -r $utsrelease3 && fgrep
-q UTS_RELEASE
$utsrelease3; then :
22102 utsrelease
=generated
/utsrelease.h
22106 if test "$utsrelease"; then :
22108 kernsrcver
=`(echo "#include <$utsrelease>";
22109 echo "kernsrcver=UTS_RELEASE") |
22110 cpp -I $kernelbuild/include |
22111 grep "^kernsrcver=" | cut -d \" -f 2`
22113 if test -z "$kernsrcver"; then :
22115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not found" >&5
22116 $as_echo "Not found" >&6; }
22117 as_fn_error $?
"*** Cannot determine kernel version." "$LINENO" 5
22123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not found" >&5
22124 $as_echo "Not found" >&6; }
22125 if test "x$enable_linux_builtin" != xyes
; then
22126 as_fn_error $?
"*** Cannot find UTS_RELEASE definition." "$LINENO" 5
22129 *** Cannot find UTS_RELEASE definition.
22130 *** Please run 'make prepare' inside the kernel source tree." "$LINENO" 5
22135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kernsrcver" >&5
22136 $as_echo "$kernsrcver" >&6; }
22139 LINUX_OBJ
=${kernelbuild}
22140 LINUX_VERSION
=${kernsrcver}
22147 modpost
=$LINUX/scripts
/Makefile.modpost
22148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking kernel file name for module symbols" >&5
22149 $as_echo_n "checking kernel file name for module symbols... " >&6; }
22150 if test "x$enable_linux_builtin" != xyes
-a -f "$modpost"; then :
22152 if grep -q Modules.symvers
$modpost; then :
22154 LINUX_SYMBOLS
=Modules.symvers
22158 LINUX_SYMBOLS
=Module.symvers
22162 if test ! -f "$LINUX_OBJ/$LINUX_SYMBOLS"; then :
22165 *** Please make sure the kernel devel package for your distribution
22166 *** is installed. If you are building with a custom kernel, make sure the
22167 *** kernel is configured, built, and the '--with-linux=PATH' configure
22168 *** option refers to the location of the kernel source." "$LINENO" 5
22177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINUX_SYMBOLS" >&5
22178 $as_echo "$LINUX_SYMBOLS" >&6; }
22184 # Check whether --with-spl was given.
22185 if test "${with_spl+set}" = set; then :
22186 withval
=$with_spl; splsrc
="$withval"
22191 # Check whether --with-spl-obj was given.
22192 if test "${with_spl_obj+set}" = set; then :
22193 withval
=$with_spl_obj; splbuild
="$withval"
22198 # Check whether --with-spl-timeout was given.
22199 if test "${with_spl_timeout+set}" = set; then :
22200 withval
=$with_spl_timeout; timeout
="$withval"
22206 splsrc0
="/var/lib/dkms/spl/${VERSION}/build"
22207 splsrc1
="/usr/local/src/spl-${VERSION}/${LINUX_VERSION}"
22208 splsrc2
="/usr/local/src/spl-${VERSION}"
22209 splsrc3
="/usr/src/spl-${VERSION}/${LINUX_VERSION}"
22210 splsrc4
="/usr/src/spl-${VERSION}"
22214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking spl source directory" >&5
22215 $as_echo_n "checking spl source directory... " >&6; }
22216 if test -z "${splsrc}"; then :
22218 if test -e "${splsrc0}/spl.release.in"; then :
22222 elif test -e "${splsrc1}/spl.release.in"; then :
22226 elif test -e "${splsrc2}/spl.release.in"; then :
22230 elif test -e "${splsrc3}/spl.release.in"; then :
22232 splsrc
=$
(readlink
-f "${splsrc3}")
22234 elif test -e "${splsrc4}/spl.release.in" ; then :
22238 elif test -e "${splsrc5}/spl.release.in"; then :
22240 splsrc
=$
(readlink
-f "${splsrc5}")
22242 elif test -e "${splsrc6}/spl.release.in" ; then :
22254 if test "$splsrc" = "NONE"; then :
22263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $splsrc" >&5
22264 $as_echo "$splsrc" >&6; }
22265 if test ! -e "$splsrc/spl.release.in"; then :
22268 *** Please make sure the kmod spl devel package for your distribution
22269 *** is installed then try again. If that fails you can specify the
22270 *** location of the spl source with the '--with-spl=PATH' option." "$LINENO" 5
22274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking spl build directory" >&5
22275 $as_echo_n "checking spl build directory... " >&6; }
22277 if test -z "$splbuild"; then :
22279 if test -e "${splsrc}/${LINUX_VERSION}/spl_config.h" ; then :
22281 splbuild
="${splsrc}/${LINUX_VERSION}"
22283 elif test -e "${splsrc}/spl_config.h" ; then :
22285 splbuild
="${splsrc}"
22287 elif find -L "${splsrc}" -name spl_config.h
2> /dev
/null |
grep -wq spl_config.h
; then :
22289 splbuild
=$
(find -L "${splsrc}" -name spl_config.h |
sed 's,/spl_config.h,,')
22293 splbuild
="Not found"
22298 if test -e "$splbuild/spl_config.h" -o $timeout -le 0; then :
22305 timeout
=$
((timeout-1
))
22310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $splbuild" >&5
22311 $as_echo "$splbuild" >&6; }
22312 if ! test -e "$splbuild/spl_config.h"; then :
22315 *** Please make sure the kmod spl devel <kernel> package for your
22316 *** distribution is installed then try again. If that fails you
22317 *** can specify the location of the spl objects with the
22318 *** '--with-spl-obj=PATH' option." "$LINENO" 5
22322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking spl source version" >&5
22323 $as_echo_n "checking spl source version... " >&6; }
22324 if test -r $splbuild/spl_config.h
&&
22325 fgrep
-q SPL_META_VERSION
$splbuild/spl_config.h
; then :
22328 splsrcver
=`(echo "#include <spl_config.h>";
22329 echo "splsrcver=SPL_META_VERSION-SPL_META_RELEASE") |
22331 grep "^splsrcver=" | tr -d \" | cut -d= -f2`
22335 if test -z "$splsrcver"; then :
22337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not found" >&5
22338 $as_echo "Not found" >&6; }
22340 *** Cannot determine the version of the spl source.
22341 *** Please prepare the spl source before running this script" "$LINENO" 5
22345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $splsrcver" >&5
22346 $as_echo "$splsrcver" >&6; }
22349 SPL_OBJ
=${splbuild}
22350 SPL_VERSION
=${splsrcver}
22356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking spl file name for module symbols" >&5
22357 $as_echo_n "checking spl file name for module symbols... " >&6; }
22361 if test -r $SPL_OBJ/Module.symvers
; then :
22363 SPL_SYMBOLS
=Module.symvers
22365 elif test -r $SPL_OBJ/Modules.symvers
; then :
22367 SPL_SYMBOLS
=Modules.symvers
22369 elif test -r $SPL_OBJ/module
/Module.symvers
; then :
22371 SPL_SYMBOLS
=Module.symvers
22373 elif test -r $SPL_OBJ/module
/Modules.symvers
; then :
22375 SPL_SYMBOLS
=Modules.symvers
22379 if test $SPL_SYMBOLS != NONE
-o $timeout -le 0; then :
22386 timeout
=$
((timeout-1
))
22391 if test "$SPL_SYMBOLS" = NONE
; then :
22393 SPL_SYMBOLS
=$LINUX_SYMBOLS
22397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SPL_SYMBOLS" >&5
22398 $as_echo "$SPL_SYMBOLS" >&6; }
22402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether modules can be built" >&5
22403 $as_echo_n "checking whether modules can be built... " >&6; }
22406 cat confdefs.h
- <<_ACEOF >conftest.c
22421 cat - <<_ACEOF >conftest.h
22426 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
22427 echo "obj-m := conftest.o" >build
/Makefile
22429 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
22430 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
22431 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22432 (eval $ac_try) 2>&5
22434 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22435 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
22436 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22437 (eval $ac_try) 2>&5
22439 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22440 test $ac_status = 0; }; }; then :
22442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22443 $as_echo "yes" >&6; }
22446 $as_echo "$as_me: failed program was:" >&5
22447 sed 's/^/| /' conftest.
$ac_ext >&5
22449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22450 $as_echo "no" >&6; }
22451 if test "x$enable_linux_builtin" != xyes
; then
22452 as_fn_error $?
"*** Unable to build an empty module." "$LINENO" 5
22455 *** Unable to build an empty module.
22456 *** Please run 'make scripts' inside the kernel source tree." "$LINENO" 5
22467 if test "x$cross_compiling" != xyes
; then :
22469 if test "$cross_compiling" = yes; then :
22470 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
22471 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22472 as_fn_error $?
"cannot run test program while cross compiling
22473 See \`config.log' for more details" "$LINENO" 5; }
22475 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22476 /* end confdefs.h. */
22479 #include "$LINUX/include/linux/license.h"
22485 return !license_is_gpl_compatible("$ZFS_META_LICENSE");
22492 if ac_fn_c_try_run
"$LINENO"; then :
22495 $as_echo "#define ZFS_IS_GPL_COMPATIBLE 1" >>confdefs.h
22499 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
22500 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
22508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Linux was built with CONFIG_DEBUG_LOCK_ALLOC" >&5
22509 $as_echo_n "checking whether Linux was built with CONFIG_DEBUG_LOCK_ALLOC... " >&6; }
22512 cat confdefs.h
- <<_ACEOF >conftest.c
22515 #include <linux/module.h>
22521 #ifndef CONFIG_DEBUG_LOCK_ALLOC
22522 #error CONFIG_DEBUG_LOCK_ALLOC not #defined
22533 cat - <<_ACEOF >conftest.h
22538 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
22539 echo "obj-m := conftest.o" >build
/Makefile
22541 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
22542 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
22543 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22544 (eval $ac_try) 2>&5
22546 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22547 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
22548 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22549 (eval $ac_try) 2>&5
22551 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22552 test $ac_status = 0; }; }; then :
22554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22555 $as_echo "yes" >&6; }
22557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mutex_lock() is GPL-only" >&5
22558 $as_echo_n "checking whether mutex_lock() is GPL-only... " >&6; }
22559 tmp_flags
="$EXTRA_KCFLAGS"
22562 cat confdefs.h
- <<_ACEOF >conftest.c
22565 #include <linux/module.h>
22566 #include <linux/mutex.h>
22568 MODULE_LICENSE("$ZFS_META_LICENSE");
22578 mutex_unlock(&lock);
22588 cat - <<_ACEOF >conftest.h
22593 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
22594 echo "obj-m := conftest.o" >build
/Makefile
22596 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
22597 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
22598 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22599 (eval $ac_try) 2>&5
22601 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22602 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
22603 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22604 (eval $ac_try) 2>&5
22606 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22607 test $ac_status = 0; }; }; then :
22609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22610 $as_echo "no" >&6; }
22613 $as_echo "$as_me: failed program was:" >&5
22614 sed 's/^/| /' conftest.
$ac_ext >&5
22616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22617 $as_echo "yes" >&6; }
22619 *** Kernel built with CONFIG_DEBUG_LOCK_ALLOC which is incompatible
22620 *** with the CDDL license and will prevent the module linking stage
22621 *** from succeeding. You must rebuild your kernel without this
22622 *** option enabled." "$LINENO" 5
22630 EXTRA_KCFLAGS
="$tmp_flags"
22634 $as_echo "$as_me: failed program was:" >&5
22635 sed 's/^/| /' conftest.
$ac_ext >&5
22637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22638 $as_echo "no" >&6; }
22651 tmp_flags
="$EXTRA_KCFLAGS"
22652 EXTRA_KCFLAGS
="-I\$(src)"
22654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether DECLARE_EVENT_CLASS() is available" >&5
22655 $as_echo_n "checking whether DECLARE_EVENT_CLASS() is available... " >&6; }
22658 cat confdefs.h
- <<_ACEOF >conftest.c
22661 #include <linux/module.h>
22662 MODULE_LICENSE(ZFS_META_LICENSE);
22664 #define CREATE_TRACE_POINTS
22665 #include "conftest.h"
22671 trace_zfs_autoconf_event_one(1UL);
22672 trace_zfs_autoconf_event_two(2UL);
22682 cat - <<_ACEOF >conftest.h
22684 #if !defined(_CONFTEST_H) || defined(TRACE_HEADER_MULTI_READ)
22685 #define _CONFTEST_H
22687 #undef TRACE_SYSTEM
22688 #define TRACE_SYSTEM zfs
22689 #include <linux/tracepoint.h>
22691 DECLARE_EVENT_CLASS(zfs_autoconf_event_class,
22692 TP_PROTO(unsigned long i),
22695 __field(unsigned long, i)
22700 TP_printk("i = %lu", __entry->i)
22703 #define DEFINE_AUTOCONF_EVENT(name) \
22704 DEFINE_EVENT(zfs_autoconf_event_class, name, \
22705 TP_PROTO(unsigned long i), \
22707 DEFINE_AUTOCONF_EVENT(zfs_autoconf_event_one);
22708 DEFINE_AUTOCONF_EVENT(zfs_autoconf_event_two);
22710 #endif /* _CONFTEST_H */
22712 #undef TRACE_INCLUDE_PATH
22713 #define TRACE_INCLUDE_PATH .
22714 #define TRACE_INCLUDE_FILE conftest
22715 #include <trace/define_trace.h>
22720 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
22721 echo "obj-m := conftest.o" >build
/Makefile
22723 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
22724 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
22725 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22726 (eval $ac_try) 2>&5
22728 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22729 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
22730 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22731 (eval $ac_try) 2>&5
22733 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22734 test $ac_status = 0; }; }; then :
22736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22737 $as_echo "yes" >&6; }
22739 $as_echo "#define HAVE_DECLARE_EVENT_CLASS 1" >>confdefs.h
22743 $as_echo "$as_me: failed program was:" >&5
22744 sed 's/^/| /' conftest.
$ac_ext >&5
22746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22747 $as_echo "no" >&6; }
22755 EXTRA_KCFLAGS
="$tmp_flags"
22758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether current->bio_tail exists" >&5
22759 $as_echo_n "checking whether current->bio_tail exists... " >&6; }
22762 cat confdefs.h
- <<_ACEOF >conftest.c
22765 #include <linux/sched.h>
22771 current->bio_tail = (struct bio **) NULL;
22781 cat - <<_ACEOF >conftest.h
22786 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
22787 echo "obj-m := conftest.o" >build
/Makefile
22789 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
22790 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
22791 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22792 (eval $ac_try) 2>&5
22794 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22795 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
22796 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22797 (eval $ac_try) 2>&5
22799 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22800 test $ac_status = 0; }; }; then :
22802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22803 $as_echo "yes" >&6; }
22805 $as_echo "#define HAVE_CURRENT_BIO_TAIL 1" >>confdefs.h
22809 $as_echo "$as_me: failed program was:" >&5
22810 sed 's/^/| /' conftest.
$ac_ext >&5
22812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22813 $as_echo "no" >&6; }
22814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether current->bio_list exists" >&5
22815 $as_echo_n "checking whether current->bio_list exists... " >&6; }
22818 cat confdefs.h
- <<_ACEOF >conftest.c
22821 #include <linux/sched.h>
22827 current->bio_list = (struct bio_list *) NULL;
22837 cat - <<_ACEOF >conftest.h
22842 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
22843 echo "obj-m := conftest.o" >build
/Makefile
22845 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
22846 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
22847 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22848 (eval $ac_try) 2>&5
22850 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22851 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
22852 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22853 (eval $ac_try) 2>&5
22855 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22856 test $ac_status = 0; }; }; then :
22858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22859 $as_echo "yes" >&6; }
22861 $as_echo "#define HAVE_CURRENT_BIO_LIST 1" >>confdefs.h
22865 $as_echo "$as_me: failed program was:" >&5
22866 sed 's/^/| /' conftest.
$ac_ext >&5
22868 as_fn_error $?
"no - Please file a bug report at
22869 https://github.com/zfsonlinux/zfs/issues/new" "$LINENO" 5
22886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking block device operation prototypes" >&5
22887 $as_echo_n "checking block device operation prototypes... " >&6; }
22888 tmp_flags
="$EXTRA_KCFLAGS"
22889 EXTRA_KCFLAGS
="${NO_UNUSED_BUT_SET_VARIABLE}"
22892 cat confdefs.h
- <<_ACEOF >conftest.c
22895 #include <linux/blkdev.h>
22897 int blk_open(struct block_device *bdev, fmode_t mode)
22899 int blk_ioctl(struct block_device *bdev, fmode_t mode,
22900 unsigned x, unsigned long y) { return 0; }
22901 int blk_compat_ioctl(struct block_device * bdev, fmode_t mode,
22902 unsigned x, unsigned long y) { return 0; }
22904 static const struct block_device_operations
22905 bops __attribute__ ((unused)) = {
22908 .ioctl = blk_ioctl,
22909 .compat_ioctl = blk_compat_ioctl,
22925 cat - <<_ACEOF >conftest.h
22930 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
22931 echo "obj-m := conftest.o" >build
/Makefile
22933 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
22934 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
22935 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22936 (eval $ac_try) 2>&5
22938 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22939 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
22940 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22941 (eval $ac_try) 2>&5
22943 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22944 test $ac_status = 0; }; }; then :
22946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: struct block_device" >&5
22947 $as_echo "struct block_device" >&6; }
22949 $as_echo "#define HAVE_BDEV_BLOCK_DEVICE_OPERATIONS 1" >>confdefs.h
22953 $as_echo "$as_me: failed program was:" >&5
22954 sed 's/^/| /' conftest.
$ac_ext >&5
22956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: struct inode" >&5
22957 $as_echo "struct inode" >&6; }
22965 EXTRA_KCFLAGS
="$tmp_flags"
22968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether block_device_operations.release is void" >&5
22969 $as_echo_n "checking whether block_device_operations.release is void... " >&6; }
22970 tmp_flags
="$EXTRA_KCFLAGS"
22971 EXTRA_KCFLAGS
="${NO_UNUSED_BUT_SET_VARIABLE}"
22974 cat confdefs.h
- <<_ACEOF >conftest.c
22977 #include <linux/blkdev.h>
22979 void blk_release(struct gendisk *g, fmode_t mode) { return; }
22981 static const struct block_device_operations
22982 bops __attribute__ ((unused)) = {
22984 .release = blk_release,
22986 .compat_ioctl = NULL,
23002 cat - <<_ACEOF >conftest.h
23007 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
23008 echo "obj-m := conftest.o" >build
/Makefile
23010 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
23011 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
23012 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23013 (eval $ac_try) 2>&5
23015 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23016 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
23017 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23018 (eval $ac_try) 2>&5
23020 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23021 test $ac_status = 0; }; }; then :
23023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: void" >&5
23024 $as_echo "void" >&6; }
23026 $as_echo "#define HAVE_BLOCK_DEVICE_OPERATIONS_RELEASE_VOID 1" >>confdefs.h
23030 $as_echo "$as_me: failed program was:" >&5
23031 sed 's/^/| /' conftest.
$ac_ext >&5
23033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: int" >&5
23034 $as_echo "int" >&6; }
23042 EXTRA_KCFLAGS
="$tmp_flags"
23044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether kernel defines fmode_t" >&5
23045 $as_echo_n "checking whether kernel defines fmode_t... " >&6; }
23048 cat confdefs.h
- <<_ACEOF >conftest.c
23051 #include <linux/types.h>
23057 fmode_t *ptr __attribute__ ((unused));
23067 cat - <<_ACEOF >conftest.h
23072 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
23073 echo "obj-m := conftest.o" >build
/Makefile
23075 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
23076 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
23077 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23078 (eval $ac_try) 2>&5
23080 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23081 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
23082 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23083 (eval $ac_try) 2>&5
23085 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23086 test $ac_status = 0; }; }; then :
23088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23089 $as_echo "yes" >&6; }
23091 $as_echo "#define HAVE_FMODE_T 1" >>confdefs.h
23095 $as_echo "$as_me: failed program was:" >&5
23096 sed 's/^/| /' conftest.
$ac_ext >&5
23098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23099 $as_echo "no" >&6; }
23109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether kernel defines KOBJ_NAME_LEN" >&5
23110 $as_echo_n "checking whether kernel defines KOBJ_NAME_LEN... " >&6; }
23113 cat confdefs.h
- <<_ACEOF >conftest.c
23116 #include <linux/kobject.h>
23122 int val __attribute__ ((unused));
23123 val = KOBJ_NAME_LEN;
23133 cat - <<_ACEOF >conftest.h
23138 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
23139 echo "obj-m := conftest.o" >build
/Makefile
23141 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
23142 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
23143 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23144 (eval $ac_try) 2>&5
23146 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23147 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
23148 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23149 (eval $ac_try) 2>&5
23151 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23152 test $ac_status = 0; }; }; then :
23154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23155 $as_echo "yes" >&6; }
23157 $as_echo "#define HAVE_KOBJ_NAME_LEN 1" >>confdefs.h
23161 $as_echo "$as_me: failed program was:" >&5
23162 sed 's/^/| /' conftest.
$ac_ext >&5
23164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23165 $as_echo "no" >&6; }
23175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether blkdev_get() wants 3 args" >&5
23176 $as_echo_n "checking whether blkdev_get() wants 3 args... " >&6; }
23179 cat confdefs.h
- <<_ACEOF >conftest.c
23182 #include <linux/fs.h>
23188 struct block_device *bdev = NULL;
23189 (void) blkdev_get(bdev, 0, NULL);
23199 cat - <<_ACEOF >conftest.h
23204 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
23205 echo "obj-m := conftest.o" >build
/Makefile
23207 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
23208 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
23209 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23210 (eval $ac_try) 2>&5
23212 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23213 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
23214 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23215 (eval $ac_try) 2>&5
23217 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23218 test $ac_status = 0; }; }; then :
23220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23221 $as_echo "yes" >&6; }
23223 $as_echo "#define HAVE_3ARG_BLKDEV_GET 1" >>confdefs.h
23227 $as_echo "$as_me: failed program was:" >&5
23228 sed 's/^/| /' conftest.
$ac_ext >&5
23230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23231 $as_echo "no" >&6; }
23240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether blkdev_get_by_path() is available" >&5
23241 $as_echo_n "checking whether blkdev_get_by_path() is available... " >&6; }
23245 cat confdefs.h
- <<_ACEOF >conftest.c
23248 #include <linux/fs.h>
23254 blkdev_get_by_path(NULL, 0, NULL);
23264 cat - <<_ACEOF >conftest.h
23269 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
23270 echo "obj-m := conftest.o" >build
/Makefile
23272 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
23273 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
23274 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23275 (eval $ac_try) 2>&5
23277 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23278 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
23279 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23280 (eval $ac_try) 2>&5
23282 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23283 test $ac_status = 0; }; }; then :
23286 $as_echo "$as_me: failed program was:" >&5
23287 sed 's/^/| /' conftest.
$ac_ext >&5
23295 if test $rc -ne 0; then :
23297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23298 $as_echo "no" >&6; }
23301 if test "x$enable_linux_builtin" != xyes
; then
23303 grep -q -E '[[:space:]]blkdev_get_by_path[[:space:]]' \
23304 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
23306 if test $rc -ne 0; then
23308 for file in fs
/block_dev.c
; do
23309 grep -q -E "EXPORT_SYMBOL.*(blkdev_get_by_path)" \
23310 "$LINUX/$file" 2>/dev
/null
23312 if test $rc -eq 0; then
23317 if test $export -eq 0; then :
23327 if test $rc -ne 0; then :
23329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23330 $as_echo "no" >&6; }
23334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23335 $as_echo "yes" >&6; }
23337 $as_echo "#define HAVE_BLKDEV_GET_BY_PATH 1" >>confdefs.h
23344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether open_bdev_exclusive() is available" >&5
23345 $as_echo_n "checking whether open_bdev_exclusive() is available... " >&6; }
23349 cat confdefs.h
- <<_ACEOF >conftest.c
23352 #include <linux/fs.h>
23358 open_bdev_exclusive(NULL, 0, NULL);
23368 cat - <<_ACEOF >conftest.h
23373 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
23374 echo "obj-m := conftest.o" >build
/Makefile
23376 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
23377 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
23378 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23379 (eval $ac_try) 2>&5
23381 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23382 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
23383 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23384 (eval $ac_try) 2>&5
23386 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23387 test $ac_status = 0; }; }; then :
23390 $as_echo "$as_me: failed program was:" >&5
23391 sed 's/^/| /' conftest.
$ac_ext >&5
23399 if test $rc -ne 0; then :
23401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23402 $as_echo "no" >&6; }
23405 if test "x$enable_linux_builtin" != xyes
; then
23407 grep -q -E '[[:space:]]open_bdev_exclusive[[:space:]]' \
23408 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
23410 if test $rc -ne 0; then
23412 for file in fs
/block_dev.c
; do
23413 grep -q -E "EXPORT_SYMBOL.*(open_bdev_exclusive)" \
23414 "$LINUX/$file" 2>/dev
/null
23416 if test $rc -eq 0; then
23421 if test $export -eq 0; then :
23431 if test $rc -ne 0; then :
23433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23434 $as_echo "no" >&6; }
23438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23439 $as_echo "yes" >&6; }
23441 $as_echo "#define HAVE_OPEN_BDEV_EXCLUSIVE 1" >>confdefs.h
23448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lookup_bdev() is available" >&5
23449 $as_echo_n "checking whether lookup_bdev() is available... " >&6; }
23453 cat confdefs.h
- <<_ACEOF >conftest.c
23456 #include <linux/fs.h>
23472 cat - <<_ACEOF >conftest.h
23477 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
23478 echo "obj-m := conftest.o" >build
/Makefile
23480 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
23481 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
23482 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23483 (eval $ac_try) 2>&5
23485 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23486 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
23487 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23488 (eval $ac_try) 2>&5
23490 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23491 test $ac_status = 0; }; }; then :
23494 $as_echo "$as_me: failed program was:" >&5
23495 sed 's/^/| /' conftest.
$ac_ext >&5
23503 if test $rc -ne 0; then :
23505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23506 $as_echo "no" >&6; }
23509 if test "x$enable_linux_builtin" != xyes
; then
23511 grep -q -E '[[:space:]]lookup_bdev[[:space:]]' \
23512 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
23514 if test $rc -ne 0; then
23516 for file in fs
/block_dev.c
; do
23517 grep -q -E "EXPORT_SYMBOL.*(lookup_bdev)" \
23518 "$LINUX/$file" 2>/dev
/null
23520 if test $rc -eq 0; then
23525 if test $export -eq 0; then :
23535 if test $rc -ne 0; then :
23537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23538 $as_echo "no" >&6; }
23542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23543 $as_echo "yes" >&6; }
23545 $as_echo "#define HAVE_LOOKUP_BDEV 1" >>confdefs.h
23553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether invalidate_bdev() wants 1 arg" >&5
23554 $as_echo_n "checking whether invalidate_bdev() wants 1 arg... " >&6; }
23557 cat confdefs.h
- <<_ACEOF >conftest.c
23560 #include <linux/buffer_head.h>
23566 struct block_device *bdev = NULL;
23567 invalidate_bdev(bdev);
23577 cat - <<_ACEOF >conftest.h
23582 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
23583 echo "obj-m := conftest.o" >build
/Makefile
23585 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
23586 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
23587 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23588 (eval $ac_try) 2>&5
23590 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23591 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
23592 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23593 (eval $ac_try) 2>&5
23595 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23596 test $ac_status = 0; }; }; then :
23598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23599 $as_echo "yes" >&6; }
23601 $as_echo "#define HAVE_1ARG_INVALIDATE_BDEV 1" >>confdefs.h
23605 $as_echo "$as_me: failed program was:" >&5
23606 sed 's/^/| /' conftest.
$ac_ext >&5
23608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23609 $as_echo "no" >&6; }
23619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether bdev_logical_block_size() is available" >&5
23620 $as_echo_n "checking whether bdev_logical_block_size() is available... " >&6; }
23621 tmp_flags
="$EXTRA_KCFLAGS"
23622 EXTRA_KCFLAGS
="${NO_UNUSED_BUT_SET_VARIABLE}"
23625 cat confdefs.h
- <<_ACEOF >conftest.c
23628 #include <linux/blkdev.h>
23634 struct block_device *bdev = NULL;
23635 bdev_logical_block_size(bdev);
23645 cat - <<_ACEOF >conftest.h
23650 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
23651 echo "obj-m := conftest.o" >build
/Makefile
23653 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
23654 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
23655 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23656 (eval $ac_try) 2>&5
23658 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23659 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
23660 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23661 (eval $ac_try) 2>&5
23663 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23664 test $ac_status = 0; }; }; then :
23666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23667 $as_echo "yes" >&6; }
23669 $as_echo "#define HAVE_BDEV_LOGICAL_BLOCK_SIZE 1" >>confdefs.h
23673 $as_echo "$as_me: failed program was:" >&5
23674 sed 's/^/| /' conftest.
$ac_ext >&5
23676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23677 $as_echo "no" >&6; }
23685 EXTRA_KCFLAGS
="$tmp_flags"
23688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether bdev_physical_block_size() is available" >&5
23689 $as_echo_n "checking whether bdev_physical_block_size() is available... " >&6; }
23690 tmp_flags
="$EXTRA_KCFLAGS"
23691 EXTRA_KCFLAGS
="${NO_UNUSED_BUT_SET_VARIABLE}"
23694 cat confdefs.h
- <<_ACEOF >conftest.c
23697 #include <linux/blkdev.h>
23703 struct block_device *bdev = NULL;
23704 bdev_physical_block_size(bdev);
23714 cat - <<_ACEOF >conftest.h
23719 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
23720 echo "obj-m := conftest.o" >build
/Makefile
23722 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
23723 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
23724 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23725 (eval $ac_try) 2>&5
23727 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23728 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
23729 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23730 (eval $ac_try) 2>&5
23732 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23733 test $ac_status = 0; }; }; then :
23735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23736 $as_echo "yes" >&6; }
23738 $as_echo "#define HAVE_BDEV_PHYSICAL_BLOCK_SIZE 1" >>confdefs.h
23742 $as_echo "$as_me: failed program was:" >&5
23743 sed 's/^/| /' conftest.
$ac_ext >&5
23745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23746 $as_echo "no" >&6; }
23754 EXTRA_KCFLAGS
="$tmp_flags"
23757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether bio has bi_iter" >&5
23758 $as_echo_n "checking whether bio has bi_iter... " >&6; }
23761 cat confdefs.h
- <<_ACEOF >conftest.c
23764 #include <linux/bio.h>
23771 bio.bi_iter.bi_sector = 0;
23781 cat - <<_ACEOF >conftest.h
23786 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
23787 echo "obj-m := conftest.o" >build
/Makefile
23789 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
23790 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
23791 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23792 (eval $ac_try) 2>&5
23794 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23795 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
23796 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23797 (eval $ac_try) 2>&5
23799 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23800 test $ac_status = 0; }; }; then :
23802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23803 $as_echo "yes" >&6; }
23805 $as_echo "#define HAVE_BIO_BVEC_ITER 1" >>confdefs.h
23809 $as_echo "$as_me: failed program was:" >&5
23810 sed 's/^/| /' conftest.
$ac_ext >&5
23812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23813 $as_echo "no" >&6; }
23823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether BIO_RW_FAILFAST_* are defined" >&5
23824 $as_echo_n "checking whether BIO_RW_FAILFAST_* are defined... " >&6; }
23827 cat confdefs.h
- <<_ACEOF >conftest.c
23830 #include <linux/bio.h>
23836 int flags __attribute__ ((unused));
23837 flags = ((1 << BIO_RW_FAILFAST_DEV) |
23838 (1 << BIO_RW_FAILFAST_TRANSPORT) |
23839 (1 << BIO_RW_FAILFAST_DRIVER));
23849 cat - <<_ACEOF >conftest.h
23854 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
23855 echo "obj-m := conftest.o" >build
/Makefile
23857 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
23858 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
23859 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23860 (eval $ac_try) 2>&5
23862 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23863 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
23864 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23865 (eval $ac_try) 2>&5
23867 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23868 test $ac_status = 0; }; }; then :
23870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23871 $as_echo "yes" >&6; }
23873 $as_echo "#define HAVE_BIO_RW_FAILFAST_DTD 1" >>confdefs.h
23877 $as_echo "$as_me: failed program was:" >&5
23878 sed 's/^/| /' conftest.
$ac_ext >&5
23880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23881 $as_echo "no" >&6; }
23891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether REQ_FAILFAST_MASK is defined" >&5
23892 $as_echo_n "checking whether REQ_FAILFAST_MASK is defined... " >&6; }
23895 cat confdefs.h
- <<_ACEOF >conftest.c
23898 #include <linux/bio.h>
23904 int flags __attribute__ ((unused));
23905 flags = REQ_FAILFAST_MASK;
23915 cat - <<_ACEOF >conftest.h
23920 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
23921 echo "obj-m := conftest.o" >build
/Makefile
23923 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
23924 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
23925 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23926 (eval $ac_try) 2>&5
23928 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23929 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
23930 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23931 (eval $ac_try) 2>&5
23933 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23934 test $ac_status = 0; }; }; then :
23936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23937 $as_echo "yes" >&6; }
23939 $as_echo "#define HAVE_REQ_FAILFAST_MASK 1" >>confdefs.h
23943 $as_echo "$as_me: failed program was:" >&5
23944 sed 's/^/| /' conftest.
$ac_ext >&5
23946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23947 $as_echo "no" >&6; }
23957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether bio_end_io_t wants 1 arg" >&5
23958 $as_echo_n "checking whether bio_end_io_t wants 1 arg... " >&6; }
23961 cat confdefs.h
- <<_ACEOF >conftest.c
23964 #include <linux/bio.h>
23966 void wanted_end_io(struct bio *bio) { return; }
23968 bio_end_io_t *end_io __attribute__ ((unused)) = wanted_end_io;
23983 cat - <<_ACEOF >conftest.h
23988 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
23989 echo "obj-m := conftest.o" >build
/Makefile
23991 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
23992 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
23993 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23994 (eval $ac_try) 2>&5
23996 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23997 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
23998 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23999 (eval $ac_try) 2>&5
24001 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24002 test $ac_status = 0; }; }; then :
24004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24005 $as_echo "yes" >&6; }
24007 $as_echo "#define HAVE_1ARG_BIO_END_IO_T 1" >>confdefs.h
24011 $as_echo "$as_me: failed program was:" >&5
24012 sed 's/^/| /' conftest.
$ac_ext >&5
24014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24015 $as_echo "no" >&6; }
24025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether BIO_RW_BARRIER is defined" >&5
24026 $as_echo_n "checking whether BIO_RW_BARRIER is defined... " >&6; }
24029 cat confdefs.h
- <<_ACEOF >conftest.c
24032 #include <linux/bio.h>
24038 int flags __attribute__ ((unused));
24039 flags = BIO_RW_BARRIER;
24049 cat - <<_ACEOF >conftest.h
24054 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
24055 echo "obj-m := conftest.o" >build
/Makefile
24057 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
24058 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
24059 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24060 (eval $ac_try) 2>&5
24062 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24063 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
24064 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24065 (eval $ac_try) 2>&5
24067 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24068 test $ac_status = 0; }; }; then :
24070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24071 $as_echo "yes" >&6; }
24073 $as_echo "#define HAVE_BIO_RW_BARRIER 1" >>confdefs.h
24077 $as_echo "$as_me: failed program was:" >&5
24078 sed 's/^/| /' conftest.
$ac_ext >&5
24080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24081 $as_echo "no" >&6; }
24091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether BIO_RW_DISCARD is defined" >&5
24092 $as_echo_n "checking whether BIO_RW_DISCARD is defined... " >&6; }
24095 cat confdefs.h
- <<_ACEOF >conftest.c
24098 #include <linux/bio.h>
24104 int flags __attribute__ ((unused));
24105 flags = BIO_RW_DISCARD;
24115 cat - <<_ACEOF >conftest.h
24120 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
24121 echo "obj-m := conftest.o" >build
/Makefile
24123 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
24124 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
24125 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24126 (eval $ac_try) 2>&5
24128 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24129 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
24130 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24131 (eval $ac_try) 2>&5
24133 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24134 test $ac_status = 0; }; }; then :
24136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24137 $as_echo "yes" >&6; }
24139 $as_echo "#define HAVE_BIO_RW_DISCARD 1" >>confdefs.h
24143 $as_echo "$as_me: failed program was:" >&5
24144 sed 's/^/| /' conftest.
$ac_ext >&5
24146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24147 $as_echo "no" >&6; }
24157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether blk_queue_flush() is available" >&5
24158 $as_echo_n "checking whether blk_queue_flush() is available... " >&6; }
24159 tmp_flags
="$EXTRA_KCFLAGS"
24160 EXTRA_KCFLAGS
="${NO_UNUSED_BUT_SET_VARIABLE}"
24163 cat confdefs.h
- <<_ACEOF >conftest.c
24166 #include <linux/blkdev.h>
24172 struct request_queue *q = NULL;
24173 (void) blk_queue_flush(q, REQ_FLUSH);
24183 cat - <<_ACEOF >conftest.h
24188 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
24189 echo "obj-m := conftest.o" >build
/Makefile
24191 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
24192 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
24193 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24194 (eval $ac_try) 2>&5
24196 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24197 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
24198 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24199 (eval $ac_try) 2>&5
24201 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24202 test $ac_status = 0; }; }; then :
24204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24205 $as_echo "yes" >&6; }
24207 $as_echo "#define HAVE_BLK_QUEUE_FLUSH 1" >>confdefs.h
24211 $as_echo "$as_me: failed program was:" >&5
24212 sed 's/^/| /' conftest.
$ac_ext >&5
24214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24215 $as_echo "no" >&6; }
24224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether blk_queue_flush() is GPL-only" >&5
24225 $as_echo_n "checking whether blk_queue_flush() is GPL-only... " >&6; }
24228 cat confdefs.h
- <<_ACEOF >conftest.c
24231 #include <linux/module.h>
24232 #include <linux/blkdev.h>
24234 MODULE_LICENSE("$ZFS_META_LICENSE");
24240 struct request_queue *q = NULL;
24241 (void) blk_queue_flush(q, REQ_FLUSH);
24251 cat - <<_ACEOF >conftest.h
24256 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
24257 echo "obj-m := conftest.o" >build
/Makefile
24259 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
24260 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
24261 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24262 (eval $ac_try) 2>&5
24264 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24265 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
24266 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24267 (eval $ac_try) 2>&5
24269 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24270 test $ac_status = 0; }; }; then :
24272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24273 $as_echo "no" >&6; }
24276 $as_echo "$as_me: failed program was:" >&5
24277 sed 's/^/| /' conftest.
$ac_ext >&5
24279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24280 $as_echo "yes" >&6; }
24282 $as_echo "#define HAVE_BLK_QUEUE_FLUSH_GPL_ONLY 1" >>confdefs.h
24291 EXTRA_KCFLAGS
="$tmp_flags"
24294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether blk_queue_max_hw_sectors() is available" >&5
24295 $as_echo_n "checking whether blk_queue_max_hw_sectors() is available... " >&6; }
24296 tmp_flags
="$EXTRA_KCFLAGS"
24297 EXTRA_KCFLAGS
="${NO_UNUSED_BUT_SET_VARIABLE}"
24300 cat confdefs.h
- <<_ACEOF >conftest.c
24303 #include <linux/blkdev.h>
24309 struct request_queue *q = NULL;
24310 (void) blk_queue_max_hw_sectors(q, BLK_SAFE_MAX_SECTORS);
24320 cat - <<_ACEOF >conftest.h
24325 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
24326 echo "obj-m := conftest.o" >build
/Makefile
24328 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
24329 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
24330 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24331 (eval $ac_try) 2>&5
24333 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24334 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
24335 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24336 (eval $ac_try) 2>&5
24338 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24339 test $ac_status = 0; }; }; then :
24341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24342 $as_echo "yes" >&6; }
24344 $as_echo "#define HAVE_BLK_QUEUE_MAX_HW_SECTORS 1" >>confdefs.h
24348 $as_echo "$as_me: failed program was:" >&5
24349 sed 's/^/| /' conftest.
$ac_ext >&5
24351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24352 $as_echo "no" >&6; }
24360 EXTRA_KCFLAGS
="$tmp_flags"
24363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether blk_queue_max_segments() is available" >&5
24364 $as_echo_n "checking whether blk_queue_max_segments() is available... " >&6; }
24365 tmp_flags
="$EXTRA_KCFLAGS"
24366 EXTRA_KCFLAGS
="${NO_UNUSED_BUT_SET_VARIABLE}"
24369 cat confdefs.h
- <<_ACEOF >conftest.c
24372 #include <linux/blkdev.h>
24378 struct request_queue *q = NULL;
24379 (void) blk_queue_max_segments(q, BLK_MAX_SEGMENTS);
24389 cat - <<_ACEOF >conftest.h
24394 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
24395 echo "obj-m := conftest.o" >build
/Makefile
24397 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
24398 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
24399 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24400 (eval $ac_try) 2>&5
24402 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24403 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
24404 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24405 (eval $ac_try) 2>&5
24407 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24408 test $ac_status = 0; }; }; then :
24410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24411 $as_echo "yes" >&6; }
24413 $as_echo "#define HAVE_BLK_QUEUE_MAX_SEGMENTS 1" >>confdefs.h
24417 $as_echo "$as_me: failed program was:" >&5
24418 sed 's/^/| /' conftest.
$ac_ext >&5
24420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24421 $as_echo "no" >&6; }
24429 EXTRA_KCFLAGS
="$tmp_flags"
24432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether get_disk_ro() is available" >&5
24433 $as_echo_n "checking whether get_disk_ro() is available... " >&6; }
24434 tmp_flags
="$EXTRA_KCFLAGS"
24435 EXTRA_KCFLAGS
="${NO_UNUSED_BUT_SET_VARIABLE}"
24438 cat confdefs.h
- <<_ACEOF >conftest.c
24441 #include <linux/blkdev.h>
24447 struct gendisk *disk = NULL;
24448 (void) get_disk_ro(disk);
24458 cat - <<_ACEOF >conftest.h
24463 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
24464 echo "obj-m := conftest.o" >build
/Makefile
24466 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
24467 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
24468 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24469 (eval $ac_try) 2>&5
24471 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24472 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
24473 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24474 (eval $ac_try) 2>&5
24476 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24477 test $ac_status = 0; }; }; then :
24479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24480 $as_echo "yes" >&6; }
24482 $as_echo "#define HAVE_GET_DISK_RO 1" >>confdefs.h
24486 $as_echo "$as_me: failed program was:" >&5
24487 sed 's/^/| /' conftest.
$ac_ext >&5
24489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24490 $as_echo "no" >&6; }
24498 EXTRA_KCFLAGS
="$tmp_flags"
24500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether get_gendisk() is available" >&5
24501 $as_echo_n "checking whether get_gendisk() is available... " >&6; }
24505 cat confdefs.h
- <<_ACEOF >conftest.c
24508 #include <linux/genhd.h>
24514 get_gendisk(0, NULL);
24524 cat - <<_ACEOF >conftest.h
24529 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
24530 echo "obj-m := conftest.o" >build
/Makefile
24532 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
24533 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
24534 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24535 (eval $ac_try) 2>&5
24537 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24538 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
24539 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24540 (eval $ac_try) 2>&5
24542 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24543 test $ac_status = 0; }; }; then :
24546 $as_echo "$as_me: failed program was:" >&5
24547 sed 's/^/| /' conftest.
$ac_ext >&5
24555 if test $rc -ne 0; then :
24557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24558 $as_echo "no" >&6; }
24561 if test "x$enable_linux_builtin" != xyes
; then
24563 grep -q -E '[[:space:]]get_gendisk[[:space:]]' \
24564 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
24566 if test $rc -ne 0; then
24568 for file in block
/genhd.c
; do
24569 grep -q -E "EXPORT_SYMBOL.*(get_gendisk)" \
24570 "$LINUX/$file" 2>/dev
/null
24572 if test $rc -eq 0; then
24577 if test $export -eq 0; then :
24587 if test $rc -ne 0; then :
24589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24590 $as_echo "no" >&6; }
24594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24595 $as_echo "yes" >&6; }
24597 $as_echo "#define HAVE_GET_GENDISK 1" >>confdefs.h
24605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ql->discard_granularity is available" >&5
24606 $as_echo_n "checking whether ql->discard_granularity is available... " >&6; }
24609 cat confdefs.h
- <<_ACEOF >conftest.c
24612 #include <linux/blkdev.h>
24618 struct queue_limits ql __attribute__ ((unused));
24620 ql.discard_granularity = 0;
24630 cat - <<_ACEOF >conftest.h
24635 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
24636 echo "obj-m := conftest.o" >build
/Makefile
24638 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
24639 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
24640 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24641 (eval $ac_try) 2>&5
24643 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24644 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
24645 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24646 (eval $ac_try) 2>&5
24648 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24649 test $ac_status = 0; }; }; then :
24651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24652 $as_echo "yes" >&6; }
24654 $as_echo "#define HAVE_DISCARD_GRANULARITY 1" >>confdefs.h
24658 $as_echo "$as_me: failed program was:" >&5
24659 sed 's/^/| /' conftest.
$ac_ext >&5
24661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24662 $as_echo "no" >&6; }
24672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether super_block uses const struct xattr_handler" >&5
24673 $as_echo_n "checking whether super_block uses const struct xattr_handler... " >&6; }
24676 cat confdefs.h
- <<_ACEOF >conftest.c
24679 #include <linux/fs.h>
24680 #include <linux/xattr.h>
24682 const struct xattr_handler xattr_test_handler = {
24688 const struct xattr_handler *xattr_handlers[] = {
24689 &xattr_test_handler,
24692 const struct super_block sb __attribute__ ((unused)) = {
24693 .s_xattr = xattr_handlers,
24709 cat - <<_ACEOF >conftest.h
24714 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
24715 echo "obj-m := conftest.o" >build
/Makefile
24717 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
24718 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
24719 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24720 (eval $ac_try) 2>&5
24722 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24723 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
24724 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24725 (eval $ac_try) 2>&5
24727 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24728 test $ac_status = 0; }; }; then :
24730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24731 $as_echo "yes" >&6; }
24733 $as_echo "#define HAVE_CONST_XATTR_HANDLER 1" >>confdefs.h
24737 $as_echo "$as_me: failed program was:" >&5
24738 sed 's/^/| /' conftest.
$ac_ext >&5
24740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24741 $as_echo "no" >&6; }
24751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether xattr_handler has name" >&5
24752 $as_echo_n "checking whether xattr_handler has name... " >&6; }
24755 cat confdefs.h
- <<_ACEOF >conftest.c
24758 #include <linux/xattr.h>
24760 static const struct xattr_handler
24761 xops __attribute__ ((unused)) = {
24762 .name = XATTR_NAME_POSIX_ACL_ACCESS,
24778 cat - <<_ACEOF >conftest.h
24783 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
24784 echo "obj-m := conftest.o" >build
/Makefile
24786 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
24787 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
24788 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24789 (eval $ac_try) 2>&5
24791 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24792 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
24793 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24794 (eval $ac_try) 2>&5
24796 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24797 test $ac_status = 0; }; }; then :
24799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24800 $as_echo "yes" >&6; }
24802 $as_echo "#define HAVE_XATTR_HANDLER_NAME 1" >>confdefs.h
24806 $as_echo "$as_me: failed program was:" >&5
24807 sed 's/^/| /' conftest.
$ac_ext >&5
24809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24810 $as_echo "no" >&6; }
24820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether xattr_handler->get() wants xattr_handler" >&5
24821 $as_echo_n "checking whether xattr_handler->get() wants xattr_handler... " >&6; }
24824 cat confdefs.h
- <<_ACEOF >conftest.c
24827 #include <linux/xattr.h>
24829 int get(const struct xattr_handler *handler,
24830 struct dentry *dentry, const char *name,
24831 void *buffer, size_t size) { return 0; }
24832 static const struct xattr_handler
24833 xops __attribute__ ((unused)) = {
24850 cat - <<_ACEOF >conftest.h
24855 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
24856 echo "obj-m := conftest.o" >build
/Makefile
24858 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
24859 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
24860 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24861 (eval $ac_try) 2>&5
24863 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24864 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
24865 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24866 (eval $ac_try) 2>&5
24868 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24869 test $ac_status = 0; }; }; then :
24871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24872 $as_echo "yes" >&6; }
24874 $as_echo "#define HAVE_XATTR_GET_HANDLER 1" >>confdefs.h
24878 $as_echo "$as_me: failed program was:" >&5
24879 sed 's/^/| /' conftest.
$ac_ext >&5
24881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24882 $as_echo "no" >&6; }
24883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether xattr_handler->get() wants dentry" >&5
24884 $as_echo_n "checking whether xattr_handler->get() wants dentry... " >&6; }
24887 cat confdefs.h
- <<_ACEOF >conftest.c
24890 #include <linux/xattr.h>
24892 int get(struct dentry *dentry, const char *name,
24893 void *buffer, size_t size, int handler_flags)
24895 static const struct xattr_handler
24896 xops __attribute__ ((unused)) = {
24913 cat - <<_ACEOF >conftest.h
24918 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
24919 echo "obj-m := conftest.o" >build
/Makefile
24921 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
24922 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
24923 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24924 (eval $ac_try) 2>&5
24926 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24927 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
24928 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24929 (eval $ac_try) 2>&5
24931 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24932 test $ac_status = 0; }; }; then :
24934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24935 $as_echo "yes" >&6; }
24937 $as_echo "#define HAVE_XATTR_GET_DENTRY 1" >>confdefs.h
24941 $as_echo "$as_me: failed program was:" >&5
24942 sed 's/^/| /' conftest.
$ac_ext >&5
24944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24945 $as_echo "no" >&6; }
24946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether xattr_handler->get() wants inode" >&5
24947 $as_echo_n "checking whether xattr_handler->get() wants inode... " >&6; }
24950 cat confdefs.h
- <<_ACEOF >conftest.c
24953 #include <linux/xattr.h>
24955 int get(struct inode *ip, const char *name,
24956 void *buffer, size_t size) { return 0; }
24957 static const struct xattr_handler
24958 xops __attribute__ ((unused)) = {
24975 cat - <<_ACEOF >conftest.h
24980 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
24981 echo "obj-m := conftest.o" >build
/Makefile
24983 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
24984 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
24985 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24986 (eval $ac_try) 2>&5
24988 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24989 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
24990 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24991 (eval $ac_try) 2>&5
24993 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24994 test $ac_status = 0; }; }; then :
24996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24997 $as_echo "yes" >&6; }
24999 $as_echo "#define HAVE_XATTR_GET_INODE 1" >>confdefs.h
25003 $as_echo "$as_me: failed program was:" >&5
25004 sed 's/^/| /' conftest.
$ac_ext >&5
25006 as_fn_error $?
"no; please file a bug report" "$LINENO" 5
25030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether xattr_handler->set() wants xattr_handler" >&5
25031 $as_echo_n "checking whether xattr_handler->set() wants xattr_handler... " >&6; }
25034 cat confdefs.h
- <<_ACEOF >conftest.c
25037 #include <linux/xattr.h>
25039 int set(const struct xattr_handler *handler,
25040 struct dentry *dentry, const char *name,
25041 const void *buffer, size_t size, int flags)
25043 static const struct xattr_handler
25044 xops __attribute__ ((unused)) = {
25061 cat - <<_ACEOF >conftest.h
25066 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
25067 echo "obj-m := conftest.o" >build
/Makefile
25069 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
25070 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
25071 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25072 (eval $ac_try) 2>&5
25074 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25075 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
25076 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25077 (eval $ac_try) 2>&5
25079 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25080 test $ac_status = 0; }; }; then :
25082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25083 $as_echo "yes" >&6; }
25085 $as_echo "#define HAVE_XATTR_SET_HANDLER 1" >>confdefs.h
25089 $as_echo "$as_me: failed program was:" >&5
25090 sed 's/^/| /' conftest.
$ac_ext >&5
25092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25093 $as_echo "no" >&6; }
25094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether xattr_handler->set() wants dentry" >&5
25095 $as_echo_n "checking whether xattr_handler->set() wants dentry... " >&6; }
25098 cat confdefs.h
- <<_ACEOF >conftest.c
25101 #include <linux/xattr.h>
25103 int set(struct dentry *dentry, const char *name,
25104 const void *buffer, size_t size, int flags,
25105 int handler_flags) { return 0; }
25106 static const struct xattr_handler
25107 xops __attribute__ ((unused)) = {
25124 cat - <<_ACEOF >conftest.h
25129 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
25130 echo "obj-m := conftest.o" >build
/Makefile
25132 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
25133 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
25134 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25135 (eval $ac_try) 2>&5
25137 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25138 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
25139 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25140 (eval $ac_try) 2>&5
25142 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25143 test $ac_status = 0; }; }; then :
25145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25146 $as_echo "yes" >&6; }
25148 $as_echo "#define HAVE_XATTR_SET_DENTRY 1" >>confdefs.h
25152 $as_echo "$as_me: failed program was:" >&5
25153 sed 's/^/| /' conftest.
$ac_ext >&5
25155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25156 $as_echo "no" >&6; }
25157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether xattr_handler->set() wants inode" >&5
25158 $as_echo_n "checking whether xattr_handler->set() wants inode... " >&6; }
25161 cat confdefs.h
- <<_ACEOF >conftest.c
25164 #include <linux/xattr.h>
25166 int set(struct inode *ip, const char *name,
25167 const void *buffer, size_t size, int flags)
25169 static const struct xattr_handler
25170 xops __attribute__ ((unused)) = {
25187 cat - <<_ACEOF >conftest.h
25192 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
25193 echo "obj-m := conftest.o" >build
/Makefile
25195 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
25196 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
25197 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25198 (eval $ac_try) 2>&5
25200 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25201 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
25202 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25203 (eval $ac_try) 2>&5
25205 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25206 test $ac_status = 0; }; }; then :
25208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25209 $as_echo "yes" >&6; }
25211 $as_echo "#define HAVE_XATTR_SET_INODE 1" >>confdefs.h
25215 $as_echo "$as_me: failed program was:" >&5
25216 sed 's/^/| /' conftest.
$ac_ext >&5
25218 as_fn_error $?
"no; please file a bug report" "$LINENO" 5
25242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether xattr_handler->list() wants simple" >&5
25243 $as_echo_n "checking whether xattr_handler->list() wants simple... " >&6; }
25246 cat confdefs.h
- <<_ACEOF >conftest.c
25249 #include <linux/xattr.h>
25251 bool list(struct dentry *dentry) { return 0; }
25252 static const struct xattr_handler
25253 xops __attribute__ ((unused)) = {
25270 cat - <<_ACEOF >conftest.h
25275 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
25276 echo "obj-m := conftest.o" >build
/Makefile
25278 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
25279 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
25280 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25281 (eval $ac_try) 2>&5
25283 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25284 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
25285 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25286 (eval $ac_try) 2>&5
25288 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25289 test $ac_status = 0; }; }; then :
25291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25292 $as_echo "yes" >&6; }
25294 $as_echo "#define HAVE_XATTR_LIST_SIMPLE 1" >>confdefs.h
25298 $as_echo "$as_me: failed program was:" >&5
25299 sed 's/^/| /' conftest.
$ac_ext >&5
25301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25302 $as_echo "no" >&6; }
25303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether xattr_handler->list() wants xattr_handler" >&5
25304 $as_echo_n "checking whether xattr_handler->list() wants xattr_handler... " >&6; }
25307 cat confdefs.h
- <<_ACEOF >conftest.c
25310 #include <linux/xattr.h>
25312 size_t list(const struct xattr_handler *handler,
25313 struct dentry *dentry, char *list, size_t list_size,
25314 const char *name, size_t name_len) { return 0; }
25315 static const struct xattr_handler
25316 xops __attribute__ ((unused)) = {
25333 cat - <<_ACEOF >conftest.h
25338 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
25339 echo "obj-m := conftest.o" >build
/Makefile
25341 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
25342 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
25343 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25344 (eval $ac_try) 2>&5
25346 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25347 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
25348 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25349 (eval $ac_try) 2>&5
25351 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25352 test $ac_status = 0; }; }; then :
25354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25355 $as_echo "yes" >&6; }
25357 $as_echo "#define HAVE_XATTR_LIST_HANDLER 1" >>confdefs.h
25361 $as_echo "$as_me: failed program was:" >&5
25362 sed 's/^/| /' conftest.
$ac_ext >&5
25364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25365 $as_echo "no" >&6; }
25366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether xattr_handler->list() wants dentry" >&5
25367 $as_echo_n "checking whether xattr_handler->list() wants dentry... " >&6; }
25370 cat confdefs.h
- <<_ACEOF >conftest.c
25373 #include <linux/xattr.h>
25375 size_t list(struct dentry *dentry,
25376 char *list, size_t list_size,
25377 const char *name, size_t name_len,
25378 int handler_flags) { return 0; }
25379 static const struct xattr_handler
25380 xops __attribute__ ((unused)) = {
25397 cat - <<_ACEOF >conftest.h
25402 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
25403 echo "obj-m := conftest.o" >build
/Makefile
25405 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
25406 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
25407 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25408 (eval $ac_try) 2>&5
25410 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25411 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
25412 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25413 (eval $ac_try) 2>&5
25415 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25416 test $ac_status = 0; }; }; then :
25418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25419 $as_echo "yes" >&6; }
25421 $as_echo "#define HAVE_XATTR_LIST_DENTRY 1" >>confdefs.h
25425 $as_echo "$as_me: failed program was:" >&5
25426 sed 's/^/| /' conftest.
$ac_ext >&5
25428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25429 $as_echo "no" >&6; }
25430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether xattr_handler->list() wants inode" >&5
25431 $as_echo_n "checking whether xattr_handler->list() wants inode... " >&6; }
25434 cat confdefs.h
- <<_ACEOF >conftest.c
25437 #include <linux/xattr.h>
25439 size_t list(struct inode *ip, char *lst,
25440 size_t list_size, const char *name,
25441 size_t name_len) { return 0; }
25442 static const struct xattr_handler
25443 xops __attribute__ ((unused)) = {
25460 cat - <<_ACEOF >conftest.h
25465 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
25466 echo "obj-m := conftest.o" >build
/Makefile
25468 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
25469 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
25470 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25471 (eval $ac_try) 2>&5
25473 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25474 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
25475 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25476 (eval $ac_try) 2>&5
25478 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25479 test $ac_status = 0; }; }; then :
25481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25482 $as_echo "yes" >&6; }
25484 $as_echo "#define HAVE_XATTR_LIST_INODE 1" >>confdefs.h
25488 $as_echo "$as_me: failed program was:" >&5
25489 sed 's/^/| /' conftest.
$ac_ext >&5
25491 as_fn_error $?
"no; please file a bug report" "$LINENO" 5
25522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether inode_owner_or_capable() exists" >&5
25523 $as_echo_n "checking whether inode_owner_or_capable() exists... " >&6; }
25526 cat confdefs.h
- <<_ACEOF >conftest.c
25529 #include <linux/fs.h>
25535 struct inode *ip = NULL;
25536 (void) inode_owner_or_capable(ip);
25546 cat - <<_ACEOF >conftest.h
25551 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
25552 echo "obj-m := conftest.o" >build
/Makefile
25554 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
25555 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
25556 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25557 (eval $ac_try) 2>&5
25559 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25560 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
25561 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25562 (eval $ac_try) 2>&5
25564 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25565 test $ac_status = 0; }; }; then :
25567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25568 $as_echo "yes" >&6; }
25570 $as_echo "#define HAVE_INODE_OWNER_OR_CAPABLE 1" >>confdefs.h
25574 $as_echo "$as_me: failed program was:" >&5
25575 sed 's/^/| /' conftest.
$ac_ext >&5
25577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25578 $as_echo "no" >&6; }
25579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether is_owner_or_cap() exists" >&5
25580 $as_echo_n "checking whether is_owner_or_cap() exists... " >&6; }
25583 cat confdefs.h
- <<_ACEOF >conftest.c
25586 #include <linux/fs.h>
25587 #include <linux/sched.h>
25593 struct inode *ip = NULL;
25594 (void) is_owner_or_cap(ip);
25604 cat - <<_ACEOF >conftest.h
25609 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
25610 echo "obj-m := conftest.o" >build
/Makefile
25612 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
25613 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
25614 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25615 (eval $ac_try) 2>&5
25617 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25618 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
25619 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25620 (eval $ac_try) 2>&5
25622 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25623 test $ac_status = 0; }; }; then :
25625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25626 $as_echo "yes" >&6; }
25628 $as_echo "#define HAVE_IS_OWNER_OR_CAP 1" >>confdefs.h
25632 $as_echo "$as_me: failed program was:" >&5
25633 sed 's/^/| /' conftest.
$ac_ext >&5
25635 as_fn_error $?
"no - Please file a bug report at
25636 https://github.com/zfsonlinux/zfs/issues/new" "$LINENO" 5
25653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether posix_acl_from_xattr() needs user_ns" >&5
25654 $as_echo_n "checking whether posix_acl_from_xattr() needs user_ns... " >&6; }
25657 cat confdefs.h
- <<_ACEOF >conftest.c
25660 #include <linux/cred.h>
25661 #include <linux/fs.h>
25662 #include <linux/posix_acl_xattr.h>
25668 posix_acl_from_xattr(&init_user_ns, NULL, 0);
25678 cat - <<_ACEOF >conftest.h
25683 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
25684 echo "obj-m := conftest.o" >build
/Makefile
25686 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
25687 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
25688 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25689 (eval $ac_try) 2>&5
25691 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25692 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
25693 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25694 (eval $ac_try) 2>&5
25696 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25697 test $ac_status = 0; }; }; then :
25699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25700 $as_echo "yes" >&6; }
25702 $as_echo "#define HAVE_POSIX_ACL_FROM_XATTR_USERNS 1" >>confdefs.h
25706 $as_echo "$as_me: failed program was:" >&5
25707 sed 's/^/| /' conftest.
$ac_ext >&5
25709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25710 $as_echo "no" >&6; }
25720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether posix_acl_release() is available" >&5
25721 $as_echo_n "checking whether posix_acl_release() is available... " >&6; }
25724 cat confdefs.h
- <<_ACEOF >conftest.c
25727 #include <linux/cred.h>
25728 #include <linux/fs.h>
25729 #include <linux/posix_acl.h>
25735 struct posix_acl* tmp = posix_acl_alloc(1, 0);
25736 posix_acl_release(tmp);
25746 cat - <<_ACEOF >conftest.h
25751 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
25752 echo "obj-m := conftest.o" >build
/Makefile
25754 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
25755 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
25756 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25757 (eval $ac_try) 2>&5
25759 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25760 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
25761 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25762 (eval $ac_try) 2>&5
25764 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25765 test $ac_status = 0; }; }; then :
25767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25768 $as_echo "yes" >&6; }
25770 $as_echo "#define HAVE_POSIX_ACL_RELEASE 1" >>confdefs.h
25774 $as_echo "$as_me: failed program was:" >&5
25775 sed 's/^/| /' conftest.
$ac_ext >&5
25777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25778 $as_echo "no" >&6; }
25787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether posix_acl_release() is GPL-only" >&5
25788 $as_echo_n "checking whether posix_acl_release() is GPL-only... " >&6; }
25791 cat confdefs.h
- <<_ACEOF >conftest.c
25794 #include <linux/cred.h>
25795 #include <linux/fs.h>
25796 #include <linux/posix_acl.h>
25798 MODULE_LICENSE("$ZFS_META_LICENSE");
25804 struct posix_acl* tmp = posix_acl_alloc(1, 0);
25805 posix_acl_release(tmp);
25815 cat - <<_ACEOF >conftest.h
25820 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
25821 echo "obj-m := conftest.o" >build
/Makefile
25823 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
25824 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
25825 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25826 (eval $ac_try) 2>&5
25828 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25829 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
25830 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25831 (eval $ac_try) 2>&5
25833 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25834 test $ac_status = 0; }; }; then :
25836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25837 $as_echo "no" >&6; }
25840 $as_echo "$as_me: failed program was:" >&5
25841 sed 's/^/| /' conftest.
$ac_ext >&5
25843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25844 $as_echo "yes" >&6; }
25846 $as_echo "#define HAVE_POSIX_ACL_RELEASE_GPL_ONLY 1" >>confdefs.h
25857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether posix_acl_chmod exists" >&5
25858 $as_echo_n "checking whether posix_acl_chmod exists... " >&6; }
25861 cat confdefs.h
- <<_ACEOF >conftest.c
25864 #include <linux/fs.h>
25865 #include <linux/posix_acl.h>
25871 posix_acl_chmod(NULL, 0, 0)
25881 cat - <<_ACEOF >conftest.h
25886 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
25887 echo "obj-m := conftest.o" >build
/Makefile
25889 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
25890 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
25891 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25892 (eval $ac_try) 2>&5
25894 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25895 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
25896 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25897 (eval $ac_try) 2>&5
25899 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25900 test $ac_status = 0; }; }; then :
25902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25903 $as_echo "yes" >&6; }
25905 $as_echo "#define HAVE_POSIX_ACL_CHMOD 1" >>confdefs.h
25909 $as_echo "$as_me: failed program was:" >&5
25910 sed 's/^/| /' conftest.
$ac_ext >&5
25912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25913 $as_echo "no" >&6; }
25922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __posix_acl_chmod exists" >&5
25923 $as_echo_n "checking whether __posix_acl_chmod exists... " >&6; }
25926 cat confdefs.h
- <<_ACEOF >conftest.c
25929 #include <linux/fs.h>
25930 #include <linux/posix_acl.h>
25936 __posix_acl_chmod(NULL, 0, 0)
25946 cat - <<_ACEOF >conftest.h
25951 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
25952 echo "obj-m := conftest.o" >build
/Makefile
25954 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
25955 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
25956 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25957 (eval $ac_try) 2>&5
25959 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25960 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
25961 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25962 (eval $ac_try) 2>&5
25964 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25965 test $ac_status = 0; }; }; then :
25967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25968 $as_echo "yes" >&6; }
25970 $as_echo "#define HAVE___POSIX_ACL_CHMOD 1" >>confdefs.h
25974 $as_echo "$as_me: failed program was:" >&5
25975 sed 's/^/| /' conftest.
$ac_ext >&5
25977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25978 $as_echo "no" >&6; }
25988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether inode has i_acl and i_default_acl" >&5
25989 $as_echo_n "checking whether inode has i_acl and i_default_acl... " >&6; }
25992 cat confdefs.h
- <<_ACEOF >conftest.c
25995 #include <linux/fs.h>
26003 ino.i_default_acl = NULL;
26013 cat - <<_ACEOF >conftest.h
26018 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
26019 echo "obj-m := conftest.o" >build
/Makefile
26021 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
26022 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
26023 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26024 (eval $ac_try) 2>&5
26026 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26027 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
26028 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26029 (eval $ac_try) 2>&5
26031 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26032 test $ac_status = 0; }; }; then :
26034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26035 $as_echo "yes" >&6; }
26037 $as_echo "#define HAVE_POSIX_ACL_CACHING 1" >>confdefs.h
26041 $as_echo "$as_me: failed program was:" >&5
26042 sed 's/^/| /' conftest.
$ac_ext >&5
26044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26045 $as_echo "no" >&6; }
26055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether posix_acl_equiv_mode() wants umode_t" >&5
26056 $as_echo_n "checking whether posix_acl_equiv_mode() wants umode_t... " >&6; }
26059 cat confdefs.h
- <<_ACEOF >conftest.c
26062 #include <linux/fs.h>
26063 #include <linux/posix_acl.h>
26070 posix_acl_equiv_mode(NULL,&tmp);
26080 cat - <<_ACEOF >conftest.h
26085 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
26086 echo "obj-m := conftest.o" >build
/Makefile
26088 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
26089 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
26090 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26091 (eval $ac_try) 2>&5
26093 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26094 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
26095 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26096 (eval $ac_try) 2>&5
26098 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26099 test $ac_status = 0; }; }; then :
26101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26102 $as_echo "yes" >&6; }
26104 $as_echo "#define HAVE_POSIX_ACL_EQUIV_MODE_UMODE_T 1" >>confdefs.h
26108 $as_echo "$as_me: failed program was:" >&5
26109 sed 's/^/| /' conftest.
$ac_ext >&5
26111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26112 $as_echo "no" >&6; }
26122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->permission() exists" >&5
26123 $as_echo_n "checking whether iops->permission() exists... " >&6; }
26126 cat confdefs.h
- <<_ACEOF >conftest.c
26129 #include <linux/fs.h>
26131 int permission_fn(struct inode *inode, int mask) { return 0; }
26133 static const struct inode_operations
26134 iops __attribute__ ((unused)) = {
26135 .permission = permission_fn,
26151 cat - <<_ACEOF >conftest.h
26156 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
26157 echo "obj-m := conftest.o" >build
/Makefile
26159 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
26160 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
26161 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26162 (eval $ac_try) 2>&5
26164 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26165 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
26166 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26167 (eval $ac_try) 2>&5
26169 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26170 test $ac_status = 0; }; }; then :
26172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26173 $as_echo "yes" >&6; }
26175 $as_echo "#define HAVE_PERMISSION 1" >>confdefs.h
26179 $as_echo "$as_me: failed program was:" >&5
26180 sed 's/^/| /' conftest.
$ac_ext >&5
26182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26183 $as_echo "no" >&6; }
26193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->permission() wants nameidata" >&5
26194 $as_echo_n "checking whether iops->permission() wants nameidata... " >&6; }
26197 cat confdefs.h
- <<_ACEOF >conftest.c
26200 #include <linux/fs.h>
26202 int permission_fn(struct inode *inode, int mask,
26203 struct nameidata *nd) { return 0; }
26205 static const struct inode_operations
26206 iops __attribute__ ((unused)) = {
26207 .permission = permission_fn,
26223 cat - <<_ACEOF >conftest.h
26228 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
26229 echo "obj-m := conftest.o" >build
/Makefile
26231 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
26232 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
26233 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26234 (eval $ac_try) 2>&5
26236 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26237 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
26238 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26239 (eval $ac_try) 2>&5
26241 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26242 test $ac_status = 0; }; }; then :
26244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26245 $as_echo "yes" >&6; }
26247 $as_echo "#define HAVE_PERMISSION 1" >>confdefs.h
26250 $as_echo "#define HAVE_PERMISSION_WITH_NAMEIDATA 1" >>confdefs.h
26254 $as_echo "$as_me: failed program was:" >&5
26255 sed 's/^/| /' conftest.
$ac_ext >&5
26257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26258 $as_echo "no" >&6; }
26268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->check_acl() exists" >&5
26269 $as_echo_n "checking whether iops->check_acl() exists... " >&6; }
26272 cat confdefs.h
- <<_ACEOF >conftest.c
26275 #include <linux/fs.h>
26277 int check_acl_fn(struct inode *inode, int mask) { return 0; }
26279 static const struct inode_operations
26280 iops __attribute__ ((unused)) = {
26281 .check_acl = check_acl_fn,
26297 cat - <<_ACEOF >conftest.h
26302 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
26303 echo "obj-m := conftest.o" >build
/Makefile
26305 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
26306 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
26307 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26308 (eval $ac_try) 2>&5
26310 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26311 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
26312 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26313 (eval $ac_try) 2>&5
26315 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26316 test $ac_status = 0; }; }; then :
26318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26319 $as_echo "yes" >&6; }
26321 $as_echo "#define HAVE_CHECK_ACL 1" >>confdefs.h
26325 $as_echo "$as_me: failed program was:" >&5
26326 sed 's/^/| /' conftest.
$ac_ext >&5
26328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26329 $as_echo "no" >&6; }
26339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->check_acl() wants flags" >&5
26340 $as_echo_n "checking whether iops->check_acl() wants flags... " >&6; }
26343 cat confdefs.h
- <<_ACEOF >conftest.c
26346 #include <linux/fs.h>
26348 int check_acl_fn(struct inode *inode, int mask,
26349 unsigned int flags) { return 0; }
26351 static const struct inode_operations
26352 iops __attribute__ ((unused)) = {
26353 .check_acl = check_acl_fn,
26369 cat - <<_ACEOF >conftest.h
26374 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
26375 echo "obj-m := conftest.o" >build
/Makefile
26377 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
26378 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
26379 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26380 (eval $ac_try) 2>&5
26382 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26383 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
26384 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26385 (eval $ac_try) 2>&5
26387 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26388 test $ac_status = 0; }; }; then :
26390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26391 $as_echo "yes" >&6; }
26393 $as_echo "#define HAVE_CHECK_ACL 1" >>confdefs.h
26396 $as_echo "#define HAVE_CHECK_ACL_WITH_FLAGS 1" >>confdefs.h
26400 $as_echo "$as_me: failed program was:" >&5
26401 sed 's/^/| /' conftest.
$ac_ext >&5
26403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26404 $as_echo "no" >&6; }
26414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->get_acl() exists" >&5
26415 $as_echo_n "checking whether iops->get_acl() exists... " >&6; }
26418 cat confdefs.h
- <<_ACEOF >conftest.c
26421 #include <linux/fs.h>
26423 struct posix_acl *get_acl_fn(struct inode *inode, int type)
26426 static const struct inode_operations
26427 iops __attribute__ ((unused)) = {
26428 .get_acl = get_acl_fn,
26444 cat - <<_ACEOF >conftest.h
26449 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
26450 echo "obj-m := conftest.o" >build
/Makefile
26452 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
26453 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
26454 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26455 (eval $ac_try) 2>&5
26457 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26458 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
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; }; }; then :
26465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26466 $as_echo "yes" >&6; }
26468 $as_echo "#define HAVE_GET_ACL 1" >>confdefs.h
26472 $as_echo "$as_me: failed program was:" >&5
26473 sed 's/^/| /' conftest.
$ac_ext >&5
26475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26476 $as_echo "no" >&6; }
26486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether current_umask exists" >&5
26487 $as_echo_n "checking whether current_umask exists... " >&6; }
26490 cat confdefs.h
- <<_ACEOF >conftest.c
26493 #include <linux/fs.h>
26509 cat - <<_ACEOF >conftest.h
26514 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
26515 echo "obj-m := conftest.o" >build
/Makefile
26517 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
26518 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
26519 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26520 (eval $ac_try) 2>&5
26522 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26523 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
26524 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26525 (eval $ac_try) 2>&5
26527 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26528 test $ac_status = 0; }; }; then :
26530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26531 $as_echo "yes" >&6; }
26533 $as_echo "#define HAVE_CURRENT_UMASK 1" >>confdefs.h
26537 $as_echo "$as_me: failed program was:" >&5
26538 sed 's/^/| /' conftest.
$ac_ext >&5
26540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26541 $as_echo "no" >&6; }
26551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sops->show_options() wants dentry" >&5
26552 $as_echo_n "checking whether sops->show_options() wants dentry... " >&6; }
26556 cat confdefs.h
- <<_ACEOF >conftest.c
26559 #include <linux/fs.h>
26561 int show_options (struct seq_file * x, struct dentry * y) { return 0; };
26562 static struct super_operations sops __attribute__ ((unused)) = {
26563 .show_options = show_options,
26579 cat - <<_ACEOF >conftest.h
26584 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
26585 echo "obj-m := conftest.o" >build
/Makefile
26587 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
26588 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
26589 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26590 (eval $ac_try) 2>&5
26592 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26593 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
26594 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26595 (eval $ac_try) 2>&5
26597 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26598 test $ac_status = 0; }; }; then :
26600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26601 $as_echo "yes" >&6; }
26603 $as_echo "#define HAVE_SHOW_OPTIONS_WITH_DENTRY 1" >>confdefs.h
26607 $as_echo "$as_me: failed program was:" >&5
26608 sed 's/^/| /' conftest.
$ac_ext >&5
26610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26611 $as_echo "no" >&6; }
26621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether file_inode() is available" >&5
26622 $as_echo_n "checking whether file_inode() is available... " >&6; }
26625 cat confdefs.h
- <<_ACEOF >conftest.c
26628 #include <linux/fs.h>
26634 struct file *f = NULL;
26645 cat - <<_ACEOF >conftest.h
26650 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
26651 echo "obj-m := conftest.o" >build
/Makefile
26653 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
26654 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
26655 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26656 (eval $ac_try) 2>&5
26658 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26659 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
26660 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26661 (eval $ac_try) 2>&5
26663 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26664 test $ac_status = 0; }; }; then :
26666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26667 $as_echo "yes" >&6; }
26669 $as_echo "#define HAVE_FILE_INODE 1" >>confdefs.h
26673 $as_echo "$as_me: failed program was:" >&5
26674 sed 's/^/| /' conftest.
$ac_ext >&5
26676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26677 $as_echo "no" >&6; }
26687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fops->fsync() wants" >&5
26688 $as_echo_n "checking whether fops->fsync() wants... " >&6; }
26692 cat confdefs.h
- <<_ACEOF >conftest.c
26695 #include <linux/fs.h>
26697 int test_fsync(struct file *f, struct dentry *dentry, int x)
26700 static const struct file_operations
26701 fops __attribute__ ((unused)) = {
26702 .fsync = test_fsync,
26718 cat - <<_ACEOF >conftest.h
26723 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
26724 echo "obj-m := conftest.o" >build
/Makefile
26726 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
26727 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
26728 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26729 (eval $ac_try) 2>&5
26731 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26732 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
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; }; }; then :
26739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: dentry" >&5
26740 $as_echo "dentry" >&6; }
26742 $as_echo "#define HAVE_FSYNC_WITH_DENTRY 1" >>confdefs.h
26746 $as_echo "$as_me: failed program was:" >&5
26747 sed 's/^/| /' conftest.
$ac_ext >&5
26760 cat confdefs.h
- <<_ACEOF >conftest.c
26763 #include <linux/fs.h>
26765 int test_fsync(struct file *f, int x) { return 0; }
26767 static const struct file_operations
26768 fops __attribute__ ((unused)) = {
26769 .fsync = test_fsync,
26785 cat - <<_ACEOF >conftest.h
26790 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
26791 echo "obj-m := conftest.o" >build
/Makefile
26793 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
26794 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
26795 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26796 (eval $ac_try) 2>&5
26798 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26799 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
26800 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26801 (eval $ac_try) 2>&5
26803 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26804 test $ac_status = 0; }; }; then :
26806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no dentry" >&5
26807 $as_echo "no dentry" >&6; }
26809 $as_echo "#define HAVE_FSYNC_WITHOUT_DENTRY 1" >>confdefs.h
26813 $as_echo "$as_me: failed program was:" >&5
26814 sed 's/^/| /' conftest.
$ac_ext >&5
26827 cat confdefs.h
- <<_ACEOF >conftest.c
26830 #include <linux/fs.h>
26832 int test_fsync(struct file *f, loff_t a, loff_t b, int c)
26835 static const struct file_operations
26836 fops __attribute__ ((unused)) = {
26837 .fsync = test_fsync,
26853 cat - <<_ACEOF >conftest.h
26858 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
26859 echo "obj-m := conftest.o" >build
/Makefile
26861 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
26862 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
26863 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26864 (eval $ac_try) 2>&5
26866 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26867 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
26868 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26869 (eval $ac_try) 2>&5
26871 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26872 test $ac_status = 0; }; }; then :
26874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: range" >&5
26875 $as_echo "range" >&6; }
26877 $as_echo "#define HAVE_FSYNC_RANGE 1" >>confdefs.h
26881 $as_echo "$as_me: failed program was:" >&5
26882 sed 's/^/| /' conftest.
$ac_ext >&5
26894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sops->evict_inode() exists" >&5
26895 $as_echo_n "checking whether sops->evict_inode() exists... " >&6; }
26898 cat confdefs.h
- <<_ACEOF >conftest.c
26901 #include <linux/fs.h>
26902 void evict_inode (struct inode * t) { return; }
26903 static struct super_operations sops __attribute__ ((unused)) = {
26904 .evict_inode = evict_inode,
26920 cat - <<_ACEOF >conftest.h
26925 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
26926 echo "obj-m := conftest.o" >build
/Makefile
26928 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
26929 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
26930 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26931 (eval $ac_try) 2>&5
26933 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26934 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
26935 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26936 (eval $ac_try) 2>&5
26938 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26939 test $ac_status = 0; }; }; then :
26941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26942 $as_echo "yes" >&6; }
26944 $as_echo "#define HAVE_EVICT_INODE 1" >>confdefs.h
26948 $as_echo "$as_me: failed program was:" >&5
26949 sed 's/^/| /' conftest.
$ac_ext >&5
26951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26952 $as_echo "no" >&6; }
26962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sops->dirty_inode() wants flags" >&5
26963 $as_echo_n "checking whether sops->dirty_inode() wants flags... " >&6; }
26966 cat confdefs.h
- <<_ACEOF >conftest.c
26969 #include <linux/fs.h>
26971 void dirty_inode(struct inode *a, int b) { return; }
26973 static const struct super_operations
26974 sops __attribute__ ((unused)) = {
26975 .dirty_inode = dirty_inode,
26991 cat - <<_ACEOF >conftest.h
26996 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
26997 echo "obj-m := conftest.o" >build
/Makefile
26999 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
27000 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
27001 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27002 (eval $ac_try) 2>&5
27004 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27005 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
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; }; }; then :
27012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27013 $as_echo "yes" >&6; }
27015 $as_echo "#define HAVE_DIRTY_INODE_WITH_FLAGS 1" >>confdefs.h
27019 $as_echo "$as_me: failed program was:" >&5
27020 sed 's/^/| /' conftest.
$ac_ext >&5
27022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27023 $as_echo "no" >&6; }
27033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sops->nr_cached_objects() exists" >&5
27034 $as_echo_n "checking whether sops->nr_cached_objects() exists... " >&6; }
27037 cat confdefs.h
- <<_ACEOF >conftest.c
27040 #include <linux/fs.h>
27042 int nr_cached_objects(struct super_block *sb) { return 0; }
27044 static const struct super_operations
27045 sops __attribute__ ((unused)) = {
27046 .nr_cached_objects = nr_cached_objects,
27062 cat - <<_ACEOF >conftest.h
27067 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
27068 echo "obj-m := conftest.o" >build
/Makefile
27070 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
27071 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
27072 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27073 (eval $ac_try) 2>&5
27075 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27076 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
27077 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27078 (eval $ac_try) 2>&5
27080 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27081 test $ac_status = 0; }; }; then :
27083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27084 $as_echo "yes" >&6; }
27086 $as_echo "#define HAVE_NR_CACHED_OBJECTS 1" >>confdefs.h
27090 $as_echo "$as_me: failed program was:" >&5
27091 sed 's/^/| /' conftest.
$ac_ext >&5
27093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27094 $as_echo "no" >&6; }
27104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sops->free_cached_objects() exists" >&5
27105 $as_echo_n "checking whether sops->free_cached_objects() exists... " >&6; }
27108 cat confdefs.h
- <<_ACEOF >conftest.c
27111 #include <linux/fs.h>
27113 void free_cached_objects(struct super_block *sb, int x)
27116 static const struct super_operations
27117 sops __attribute__ ((unused)) = {
27118 .free_cached_objects = free_cached_objects,
27134 cat - <<_ACEOF >conftest.h
27139 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
27140 echo "obj-m := conftest.o" >build
/Makefile
27142 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
27143 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
27144 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27145 (eval $ac_try) 2>&5
27147 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27148 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
27149 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27150 (eval $ac_try) 2>&5
27152 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27153 test $ac_status = 0; }; }; then :
27155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27156 $as_echo "yes" >&6; }
27158 $as_echo "#define HAVE_FREE_CACHED_OBJECTS 1" >>confdefs.h
27162 $as_echo "$as_me: failed program was:" >&5
27163 sed 's/^/| /' conftest.
$ac_ext >&5
27165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27166 $as_echo "no" >&6; }
27177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fops->fallocate() exists" >&5
27178 $as_echo_n "checking whether fops->fallocate() exists... " >&6; }
27181 cat confdefs.h
- <<_ACEOF >conftest.c
27184 #include <linux/fs.h>
27186 long test_fallocate(struct file *file, int mode,
27187 loff_t offset, loff_t len) { return 0; }
27189 static const struct file_operations
27190 fops __attribute__ ((unused)) = {
27191 .fallocate = test_fallocate,
27207 cat - <<_ACEOF >conftest.h
27212 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
27213 echo "obj-m := conftest.o" >build
/Makefile
27215 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
27216 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
27217 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27218 (eval $ac_try) 2>&5
27220 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27221 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
27222 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27223 (eval $ac_try) 2>&5
27225 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27226 test $ac_status = 0; }; }; then :
27228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27229 $as_echo "yes" >&6; }
27231 $as_echo "#define HAVE_FILE_FALLOCATE 1" >>confdefs.h
27235 $as_echo "$as_me: failed program was:" >&5
27236 sed 's/^/| /' conftest.
$ac_ext >&5
27238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27239 $as_echo "no" >&6; }
27249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->fallocate() exists" >&5
27250 $as_echo_n "checking whether iops->fallocate() exists... " >&6; }
27253 cat confdefs.h
- <<_ACEOF >conftest.c
27256 #include <linux/fs.h>
27258 long test_fallocate(struct inode *inode, int mode,
27259 loff_t offset, loff_t len) { return 0; }
27261 static const struct inode_operations
27262 fops __attribute__ ((unused)) = {
27263 .fallocate = test_fallocate,
27279 cat - <<_ACEOF >conftest.h
27284 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
27285 echo "obj-m := conftest.o" >build
/Makefile
27287 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
27288 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
27289 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27290 (eval $ac_try) 2>&5
27292 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27293 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
27294 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27295 (eval $ac_try) 2>&5
27297 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27298 test $ac_status = 0; }; }; then :
27300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27301 $as_echo "yes" >&6; }
27303 $as_echo "#define HAVE_INODE_FALLOCATE 1" >>confdefs.h
27307 $as_echo "$as_me: failed program was:" >&5
27308 sed 's/^/| /' conftest.
$ac_ext >&5
27310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27311 $as_echo "no" >&6; }
27322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->create()/mkdir()/mknod() take umode_t" >&5
27323 $as_echo_n "checking whether iops->create()/mkdir()/mknod() take umode_t... " >&6; }
27326 cat confdefs.h
- <<_ACEOF >conftest.c
27329 #include <linux/fs.h>
27331 int mkdir(struct inode *inode, struct dentry *dentry,
27332 umode_t umode) { return 0; }
27334 static const struct inode_operations
27335 iops __attribute__ ((unused)) = {
27352 cat - <<_ACEOF >conftest.h
27357 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
27358 echo "obj-m := conftest.o" >build
/Makefile
27360 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
27361 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
27362 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27363 (eval $ac_try) 2>&5
27365 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27366 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
27367 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27368 (eval $ac_try) 2>&5
27370 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27371 test $ac_status = 0; }; }; then :
27373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27374 $as_echo "yes" >&6; }
27376 $as_echo "#define HAVE_MKDIR_UMODE_T 1" >>confdefs.h
27380 $as_echo "$as_me: failed program was:" >&5
27381 sed 's/^/| /' conftest.
$ac_ext >&5
27383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27384 $as_echo "no" >&6; }
27394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->lookup() passes nameidata" >&5
27395 $as_echo_n "checking whether iops->lookup() passes nameidata... " >&6; }
27398 cat confdefs.h
- <<_ACEOF >conftest.c
27401 #include <linux/fs.h>
27403 struct dentry *inode_lookup(struct inode *inode,
27404 struct dentry *dentry, struct nameidata *nidata)
27407 static const struct inode_operations iops
27408 __attribute__ ((unused)) = {
27409 .lookup = inode_lookup,
27425 cat - <<_ACEOF >conftest.h
27430 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
27431 echo "obj-m := conftest.o" >build
/Makefile
27433 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
27434 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
27435 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27436 (eval $ac_try) 2>&5
27438 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27439 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
27440 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27441 (eval $ac_try) 2>&5
27443 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27444 test $ac_status = 0; }; }; then :
27446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27447 $as_echo "yes" >&6; }
27449 $as_echo "#define HAVE_LOOKUP_NAMEIDATA 1" >>confdefs.h
27453 $as_echo "$as_me: failed program was:" >&5
27454 sed 's/^/| /' conftest.
$ac_ext >&5
27456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27457 $as_echo "no" >&6; }
27467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->create() passes nameidata" >&5
27468 $as_echo_n "checking whether iops->create() passes nameidata... " >&6; }
27471 cat confdefs.h
- <<_ACEOF >conftest.c
27474 #include <linux/fs.h>
27476 #ifdef HAVE_MKDIR_UMODE_T
27477 int inode_create(struct inode *inode ,struct dentry *dentry,
27478 umode_t umode, struct nameidata *nidata) { return 0; }
27480 int inode_create(struct inode *inode,struct dentry *dentry,
27481 int umode, struct nameidata * nidata) { return 0; }
27484 static const struct inode_operations
27485 iops __attribute__ ((unused)) = {
27486 .create = inode_create,
27502 cat - <<_ACEOF >conftest.h
27507 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
27508 echo "obj-m := conftest.o" >build
/Makefile
27510 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
27511 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
27512 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27513 (eval $ac_try) 2>&5
27515 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27516 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
27517 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27518 (eval $ac_try) 2>&5
27520 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27521 test $ac_status = 0; }; }; then :
27523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27524 $as_echo "yes" >&6; }
27526 $as_echo "#define HAVE_CREATE_NAMEIDATA 1" >>confdefs.h
27530 $as_echo "$as_me: failed program was:" >&5
27531 sed 's/^/| /' conftest.
$ac_ext >&5
27533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27534 $as_echo "no" >&6; }
27544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->get_link() passes delayed" >&5
27545 $as_echo_n "checking whether iops->get_link() passes delayed... " >&6; }
27548 cat confdefs.h
- <<_ACEOF >conftest.c
27551 #include <linux/fs.h>
27552 const char *get_link(struct dentry *de, struct inode *ip,
27553 struct delayed_call *done) { return "symlink"; }
27554 static struct inode_operations
27555 iops __attribute__ ((unused)) = {
27556 .get_link = get_link,
27572 cat - <<_ACEOF >conftest.h
27577 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
27578 echo "obj-m := conftest.o" >build
/Makefile
27580 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
27581 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
27582 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27583 (eval $ac_try) 2>&5
27585 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27586 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
27587 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27588 (eval $ac_try) 2>&5
27590 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27591 test $ac_status = 0; }; }; then :
27593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27594 $as_echo "yes" >&6; }
27596 $as_echo "#define HAVE_GET_LINK_DELAYED 1" >>confdefs.h
27600 $as_echo "$as_me: failed program was:" >&5
27601 sed 's/^/| /' conftest.
$ac_ext >&5
27603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27604 $as_echo "no" >&6; }
27605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->get_link() passes cookie" >&5
27606 $as_echo_n "checking whether iops->get_link() passes cookie... " >&6; }
27609 cat confdefs.h
- <<_ACEOF >conftest.c
27612 #include <linux/fs.h>
27613 const char *get_link(struct dentry *de, struct
27614 inode *ip, void **cookie) { return "symlink"; }
27615 static struct inode_operations
27616 iops __attribute__ ((unused)) = {
27617 .get_link = get_link,
27633 cat - <<_ACEOF >conftest.h
27638 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
27639 echo "obj-m := conftest.o" >build
/Makefile
27641 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
27642 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
27643 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27644 (eval $ac_try) 2>&5
27646 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27647 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
27648 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27649 (eval $ac_try) 2>&5
27651 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27652 test $ac_status = 0; }; }; then :
27654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27655 $as_echo "yes" >&6; }
27657 $as_echo "#define HAVE_GET_LINK_COOKIE 1" >>confdefs.h
27661 $as_echo "$as_me: failed program was:" >&5
27662 sed 's/^/| /' conftest.
$ac_ext >&5
27664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27665 $as_echo "no" >&6; }
27667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->follow_link() passes cookie" >&5
27668 $as_echo_n "checking whether iops->follow_link() passes cookie... " >&6; }
27671 cat confdefs.h
- <<_ACEOF >conftest.c
27674 #include <linux/fs.h>
27675 const char *follow_link(struct dentry *de,
27676 void **cookie) { return "symlink"; }
27677 static struct inode_operations
27678 iops __attribute__ ((unused)) = {
27679 .follow_link = follow_link,
27695 cat - <<_ACEOF >conftest.h
27700 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
27701 echo "obj-m := conftest.o" >build
/Makefile
27703 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
27704 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
27705 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27706 (eval $ac_try) 2>&5
27708 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27709 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
27710 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27711 (eval $ac_try) 2>&5
27713 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27714 test $ac_status = 0; }; }; then :
27716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27717 $as_echo "yes" >&6; }
27719 $as_echo "#define HAVE_FOLLOW_LINK_COOKIE 1" >>confdefs.h
27723 $as_echo "$as_me: failed program was:" >&5
27724 sed 's/^/| /' conftest.
$ac_ext >&5
27726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27727 $as_echo "no" >&6; }
27728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->follow_link() passes nameidata" >&5
27729 $as_echo_n "checking whether iops->follow_link() passes nameidata... " >&6; }
27732 cat confdefs.h
- <<_ACEOF >conftest.c
27735 #include <linux/fs.h>
27736 void *follow_link(struct dentry *de, struct
27737 nameidata *nd) { return (void *)NULL; }
27738 static struct inode_operations
27739 iops __attribute__ ((unused)) = {
27740 .follow_link = follow_link,
27756 cat - <<_ACEOF >conftest.h
27761 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
27762 echo "obj-m := conftest.o" >build
/Makefile
27764 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
27765 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
27766 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27767 (eval $ac_try) 2>&5
27769 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27770 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
27771 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27772 (eval $ac_try) 2>&5
27774 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27775 test $ac_status = 0; }; }; then :
27777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27778 $as_echo "yes" >&6; }
27780 $as_echo "#define HAVE_FOLLOW_LINK_NAMEIDATA 1" >>confdefs.h
27784 $as_echo "$as_me: failed program was:" >&5
27785 sed 's/^/| /' conftest.
$ac_ext >&5
27787 as_fn_error $?
"no; please file a bug report" "$LINENO" 5
27821 cat confdefs.h
- <<_ACEOF >conftest.c
27824 #if !defined(HAVE_GET_LINK_DELAYED)
27825 #error "Expecting get_link() delayed done"
27841 cat - <<_ACEOF >conftest.h
27846 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
27847 echo "obj-m := conftest.o" >build
/Makefile
27849 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
27850 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
27851 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27852 (eval $ac_try) 2>&5
27854 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27855 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
27856 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27857 (eval $ac_try) 2>&5
27859 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27860 test $ac_status = 0; }; }; then :
27863 $as_echo "#define HAVE_PUT_LINK_DELAYED 1" >>confdefs.h
27867 $as_echo "$as_me: failed program was:" >&5
27868 sed 's/^/| /' conftest.
$ac_ext >&5
27870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->put_link() passes cookie" >&5
27871 $as_echo_n "checking whether iops->put_link() passes cookie... " >&6; }
27874 cat confdefs.h
- <<_ACEOF >conftest.c
27877 #include <linux/fs.h>
27878 void put_link(struct inode *ip, void *cookie)
27880 static struct inode_operations
27881 iops __attribute__ ((unused)) = {
27882 .put_link = put_link,
27898 cat - <<_ACEOF >conftest.h
27903 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
27904 echo "obj-m := conftest.o" >build
/Makefile
27906 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
27907 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
27908 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27909 (eval $ac_try) 2>&5
27911 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27912 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
27913 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27914 (eval $ac_try) 2>&5
27916 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27917 test $ac_status = 0; }; }; then :
27919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27920 $as_echo "yes" >&6; }
27922 $as_echo "#define HAVE_PUT_LINK_COOKIE 1" >>confdefs.h
27926 $as_echo "$as_me: failed program was:" >&5
27927 sed 's/^/| /' conftest.
$ac_ext >&5
27929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27930 $as_echo "no" >&6; }
27931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->put_link() passes nameidata" >&5
27932 $as_echo_n "checking whether iops->put_link() passes nameidata... " >&6; }
27935 cat confdefs.h
- <<_ACEOF >conftest.c
27938 #include <linux/fs.h>
27939 void put_link(struct dentry *de, struct
27940 nameidata *nd, void *ptr) { return; }
27941 static struct inode_operations
27942 iops __attribute__ ((unused)) = {
27943 .put_link = put_link,
27959 cat - <<_ACEOF >conftest.h
27964 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
27965 echo "obj-m := conftest.o" >build
/Makefile
27967 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
27968 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
27969 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27970 (eval $ac_try) 2>&5
27972 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27973 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
27974 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27975 (eval $ac_try) 2>&5
27977 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27978 test $ac_status = 0; }; }; then :
27980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27981 $as_echo "yes" >&6; }
27983 $as_echo "#define HAVE_PUT_LINK_NAMEIDATA 1" >>confdefs.h
27987 $as_echo "$as_me: failed program was:" >&5
27988 sed 's/^/| /' conftest.
$ac_ext >&5
27990 as_fn_error $?
"no; please file a bug report" "$LINENO" 5
28014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->truncate_range() exists" >&5
28015 $as_echo_n "checking whether iops->truncate_range() exists... " >&6; }
28018 cat confdefs.h
- <<_ACEOF >conftest.c
28021 #include <linux/fs.h>
28022 void truncate_range(struct inode *inode, loff_t start,
28023 loff_t end) { return; }
28024 static struct inode_operations iops __attribute__ ((unused)) = {
28025 .truncate_range = truncate_range,
28041 cat - <<_ACEOF >conftest.h
28046 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
28047 echo "obj-m := conftest.o" >build
/Makefile
28049 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
28050 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
28051 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28052 (eval $ac_try) 2>&5
28054 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28055 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
28056 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28057 (eval $ac_try) 2>&5
28059 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28060 test $ac_status = 0; }; }; then :
28062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28063 $as_echo "yes" >&6; }
28065 $as_echo "#define HAVE_INODE_TRUNCATE_RANGE 1" >>confdefs.h
28069 $as_echo "$as_me: failed program was:" >&5
28070 sed 's/^/| /' conftest.
$ac_ext >&5
28072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28073 $as_echo "no" >&6; }
28083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether dops->d_automount() exists" >&5
28084 $as_echo_n "checking whether dops->d_automount() exists... " >&6; }
28087 cat confdefs.h
- <<_ACEOF >conftest.c
28090 #include <linux/dcache.h>
28091 struct vfsmount *d_automount(struct path *p) { return NULL; }
28092 struct dentry_operations dops __attribute__ ((unused)) = {
28093 .d_automount = d_automount,
28109 cat - <<_ACEOF >conftest.h
28114 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
28115 echo "obj-m := conftest.o" >build
/Makefile
28117 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
28118 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
28119 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28120 (eval $ac_try) 2>&5
28122 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28123 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
28124 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28125 (eval $ac_try) 2>&5
28127 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28128 test $ac_status = 0; }; }; then :
28130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28131 $as_echo "yes" >&6; }
28133 $as_echo "#define HAVE_AUTOMOUNT 1" >>confdefs.h
28137 $as_echo "$as_me: failed program was:" >&5
28138 sed 's/^/| /' conftest.
$ac_ext >&5
28140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28141 $as_echo "no" >&6; }
28151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether eops->encode_fh() wants inode" >&5
28152 $as_echo_n "checking whether eops->encode_fh() wants inode... " >&6; }
28155 cat confdefs.h
- <<_ACEOF >conftest.c
28158 #include <linux/exportfs.h>
28159 int encode_fh(struct inode *inode, __u32 *fh, int *max_len,
28160 struct inode *parent) { return 0; }
28161 static struct export_operations eops __attribute__ ((unused))={
28162 .encode_fh = encode_fh,
28178 cat - <<_ACEOF >conftest.h
28183 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
28184 echo "obj-m := conftest.o" >build
/Makefile
28186 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
28187 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
28188 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28189 (eval $ac_try) 2>&5
28191 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28192 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
28193 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28194 (eval $ac_try) 2>&5
28196 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28197 test $ac_status = 0; }; }; then :
28199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28200 $as_echo "yes" >&6; }
28202 $as_echo "#define HAVE_ENCODE_FH_WITH_INODE 1" >>confdefs.h
28206 $as_echo "$as_me: failed program was:" >&5
28207 sed 's/^/| /' conftest.
$ac_ext >&5
28209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28210 $as_echo "no" >&6; }
28220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether eops->commit_metadata() exists" >&5
28221 $as_echo_n "checking whether eops->commit_metadata() exists... " >&6; }
28224 cat confdefs.h
- <<_ACEOF >conftest.c
28227 #include <linux/exportfs.h>
28228 int commit_metadata(struct inode *inode) { return 0; }
28229 static struct export_operations eops __attribute__ ((unused))={
28230 .commit_metadata = commit_metadata,
28246 cat - <<_ACEOF >conftest.h
28251 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
28252 echo "obj-m := conftest.o" >build
/Makefile
28254 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
28255 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
28256 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28257 (eval $ac_try) 2>&5
28259 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28260 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
28261 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28262 (eval $ac_try) 2>&5
28264 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28265 test $ac_status = 0; }; }; then :
28267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28268 $as_echo "yes" >&6; }
28270 $as_echo "#define HAVE_COMMIT_METADATA 1" >>confdefs.h
28274 $as_echo "$as_me: failed program was:" >&5
28275 sed 's/^/| /' conftest.
$ac_ext >&5
28277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28278 $as_echo "no" >&6; }
28287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether clear_inode() is available" >&5
28288 $as_echo_n "checking whether clear_inode() is available... " >&6; }
28292 cat confdefs.h
- <<_ACEOF >conftest.c
28295 #include <linux/fs.h>
28311 cat - <<_ACEOF >conftest.h
28316 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
28317 echo "obj-m := conftest.o" >build
/Makefile
28319 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
28320 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
28321 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28322 (eval $ac_try) 2>&5
28324 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28325 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
28326 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28327 (eval $ac_try) 2>&5
28329 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28330 test $ac_status = 0; }; }; then :
28333 $as_echo "$as_me: failed program was:" >&5
28334 sed 's/^/| /' conftest.
$ac_ext >&5
28342 if test $rc -ne 0; then :
28344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28345 $as_echo "no" >&6; }
28348 if test "x$enable_linux_builtin" != xyes
; then
28350 grep -q -E '[[:space:]]clear_inode[[:space:]]' \
28351 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
28353 if test $rc -ne 0; then
28355 for file in fs
/inode.c
; do
28356 grep -q -E "EXPORT_SYMBOL.*(clear_inode)" \
28357 "$LINUX/$file" 2>/dev
/null
28359 if test $rc -eq 0; then
28364 if test $export -eq 0; then :
28374 if test $rc -ne 0; then :
28376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28377 $as_echo "no" >&6; }
28381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28382 $as_echo "yes" >&6; }
28384 $as_echo "#define HAVE_CLEAR_INODE 1" >>confdefs.h
28391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether insert_inode_locked() is available" >&5
28392 $as_echo_n "checking whether insert_inode_locked() is available... " >&6; }
28396 cat confdefs.h
- <<_ACEOF >conftest.c
28399 #include <linux/fs.h>
28405 insert_inode_locked(NULL);
28415 cat - <<_ACEOF >conftest.h
28420 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
28421 echo "obj-m := conftest.o" >build
/Makefile
28423 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
28424 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
28425 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28426 (eval $ac_try) 2>&5
28428 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28429 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
28430 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28431 (eval $ac_try) 2>&5
28433 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28434 test $ac_status = 0; }; }; then :
28437 $as_echo "$as_me: failed program was:" >&5
28438 sed 's/^/| /' conftest.
$ac_ext >&5
28446 if test $rc -ne 0; then :
28448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28449 $as_echo "no" >&6; }
28452 if test "x$enable_linux_builtin" != xyes
; then
28454 grep -q -E '[[:space:]]insert_inode_locked[[:space:]]' \
28455 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
28457 if test $rc -ne 0; then
28459 for file in fs
/inode.c
; do
28460 grep -q -E "EXPORT_SYMBOL.*(insert_inode_locked)" \
28461 "$LINUX/$file" 2>/dev
/null
28463 if test $rc -eq 0; then
28468 if test $export -eq 0; then :
28478 if test $rc -ne 0; then :
28480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28481 $as_echo "no" >&6; }
28485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28486 $as_echo "yes" >&6; }
28488 $as_echo "#define HAVE_INSERT_INODE_LOCKED 1" >>confdefs.h
28495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether d_make_root() is available" >&5
28496 $as_echo_n "checking whether d_make_root() is available... " >&6; }
28500 cat confdefs.h
- <<_ACEOF >conftest.c
28503 #include <linux/dcache.h>
28519 cat - <<_ACEOF >conftest.h
28524 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
28525 echo "obj-m := conftest.o" >build
/Makefile
28527 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
28528 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
28529 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28530 (eval $ac_try) 2>&5
28532 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28533 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
28534 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28535 (eval $ac_try) 2>&5
28537 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28538 test $ac_status = 0; }; }; then :
28541 $as_echo "$as_me: failed program was:" >&5
28542 sed 's/^/| /' conftest.
$ac_ext >&5
28550 if test $rc -ne 0; then :
28552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28553 $as_echo "no" >&6; }
28556 if test "x$enable_linux_builtin" != xyes
; then
28558 grep -q -E '[[:space:]]d_make_root[[:space:]]' \
28559 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
28561 if test $rc -ne 0; then
28563 for file in fs
/dcache.c
; do
28564 grep -q -E "EXPORT_SYMBOL.*(d_make_root)" \
28565 "$LINUX/$file" 2>/dev
/null
28567 if test $rc -eq 0; then
28572 if test $export -eq 0; then :
28582 if test $rc -ne 0; then :
28584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28585 $as_echo "no" >&6; }
28589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28590 $as_echo "yes" >&6; }
28592 $as_echo "#define HAVE_D_MAKE_ROOT 1" >>confdefs.h
28599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether d_obtain_alias() is available" >&5
28600 $as_echo_n "checking whether d_obtain_alias() is available... " >&6; }
28604 cat confdefs.h
- <<_ACEOF >conftest.c
28607 #include <linux/dcache.h>
28613 d_obtain_alias(NULL);
28623 cat - <<_ACEOF >conftest.h
28628 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
28629 echo "obj-m := conftest.o" >build
/Makefile
28631 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
28632 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
28633 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28634 (eval $ac_try) 2>&5
28636 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28637 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
28638 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28639 (eval $ac_try) 2>&5
28641 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28642 test $ac_status = 0; }; }; then :
28645 $as_echo "$as_me: failed program was:" >&5
28646 sed 's/^/| /' conftest.
$ac_ext >&5
28654 if test $rc -ne 0; then :
28656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28657 $as_echo "no" >&6; }
28660 if test "x$enable_linux_builtin" != xyes
; then
28662 grep -q -E '[[:space:]]d_obtain_alias[[:space:]]' \
28663 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
28665 if test $rc -ne 0; then
28667 for file in fs
/dcache.c
; do
28668 grep -q -E "EXPORT_SYMBOL.*(d_obtain_alias)" \
28669 "$LINUX/$file" 2>/dev
/null
28671 if test $rc -eq 0; then
28676 if test $export -eq 0; then :
28686 if test $rc -ne 0; then :
28688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28689 $as_echo "no" >&6; }
28693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28694 $as_echo "yes" >&6; }
28696 $as_echo "#define HAVE_D_OBTAIN_ALIAS 1" >>confdefs.h
28703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether d_prune_aliases() is available" >&5
28704 $as_echo_n "checking whether d_prune_aliases() is available... " >&6; }
28708 cat confdefs.h
- <<_ACEOF >conftest.c
28711 #include <linux/dcache.h>
28717 struct inode *ip = NULL;
28718 d_prune_aliases(ip);
28728 cat - <<_ACEOF >conftest.h
28733 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
28734 echo "obj-m := conftest.o" >build
/Makefile
28736 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
28737 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
28738 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28739 (eval $ac_try) 2>&5
28741 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28742 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
28743 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28744 (eval $ac_try) 2>&5
28746 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28747 test $ac_status = 0; }; }; then :
28750 $as_echo "$as_me: failed program was:" >&5
28751 sed 's/^/| /' conftest.
$ac_ext >&5
28759 if test $rc -ne 0; then :
28761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28762 $as_echo "no" >&6; }
28765 if test "x$enable_linux_builtin" != xyes
; then
28767 grep -q -E '[[:space:]]d_prune_aliases[[:space:]]' \
28768 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
28770 if test $rc -ne 0; then
28772 for file in fs
/dcache.c
; do
28773 grep -q -E "EXPORT_SYMBOL.*(d_prune_aliases)" \
28774 "$LINUX/$file" 2>/dev
/null
28776 if test $rc -eq 0; then
28781 if test $export -eq 0; then :
28791 if test $rc -ne 0; then :
28793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28794 $as_echo "no" >&6; }
28798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28799 $as_echo "yes" >&6; }
28801 $as_echo "#define HAVE_D_PRUNE_ALIASES 1" >>confdefs.h
28808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether d_set_d_op() is available" >&5
28809 $as_echo_n "checking whether d_set_d_op() is available... " >&6; }
28813 cat confdefs.h
- <<_ACEOF >conftest.c
28816 #include <linux/dcache.h>
28822 d_set_d_op(NULL, NULL);
28832 cat - <<_ACEOF >conftest.h
28837 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
28838 echo "obj-m := conftest.o" >build
/Makefile
28840 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
28841 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
28842 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28843 (eval $ac_try) 2>&5
28845 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28846 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
28847 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28848 (eval $ac_try) 2>&5
28850 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28851 test $ac_status = 0; }; }; then :
28854 $as_echo "$as_me: failed program was:" >&5
28855 sed 's/^/| /' conftest.
$ac_ext >&5
28863 if test $rc -ne 0; then :
28865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28866 $as_echo "no" >&6; }
28869 if test "x$enable_linux_builtin" != xyes
; then
28871 grep -q -E '[[:space:]]d_set_d_op[[:space:]]' \
28872 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
28874 if test $rc -ne 0; then
28876 for file in fs
/dcache.c
; do
28877 grep -q -E "EXPORT_SYMBOL.*(d_set_d_op)" \
28878 "$LINUX/$file" 2>/dev
/null
28880 if test $rc -eq 0; then
28885 if test $export -eq 0; then :
28895 if test $rc -ne 0; then :
28897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28898 $as_echo "no" >&6; }
28902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28903 $as_echo "yes" >&6; }
28905 $as_echo "#define HAVE_D_SET_D_OP 1" >>confdefs.h
28913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether dops->d_revalidate() takes struct nameidata" >&5
28914 $as_echo_n "checking whether dops->d_revalidate() takes struct nameidata... " >&6; }
28917 cat confdefs.h
- <<_ACEOF >conftest.c
28920 #include <linux/dcache.h>
28922 int revalidate (struct dentry *dentry,
28923 struct nameidata *nidata) { return 0; }
28925 static const struct dentry_operations
28926 dops __attribute__ ((unused)) = {
28927 .d_revalidate = revalidate,
28943 cat - <<_ACEOF >conftest.h
28948 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
28949 echo "obj-m := conftest.o" >build
/Makefile
28951 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
28952 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
28953 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28954 (eval $ac_try) 2>&5
28956 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28957 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
28958 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28959 (eval $ac_try) 2>&5
28961 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28962 test $ac_status = 0; }; }; then :
28964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28965 $as_echo "yes" >&6; }
28967 $as_echo "#define HAVE_D_REVALIDATE_NAMEIDATA 1" >>confdefs.h
28971 $as_echo "$as_me: failed program was:" >&5
28972 sed 's/^/| /' conftest.
$ac_ext >&5
28974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28975 $as_echo "no" >&6; }
28985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether dentry uses const struct dentry_operations" >&5
28986 $as_echo_n "checking whether dentry uses const struct dentry_operations... " >&6; }
28989 cat confdefs.h
- <<_ACEOF >conftest.c
28992 #include <linux/dcache.h>
28994 const struct dentry_operations test_d_op = {
28995 .d_revalidate = NULL,
29002 struct dentry d __attribute__ ((unused));
29004 d.d_op = &test_d_op;
29014 cat - <<_ACEOF >conftest.h
29019 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
29020 echo "obj-m := conftest.o" >build
/Makefile
29022 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
29023 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
29024 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29025 (eval $ac_try) 2>&5
29027 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29028 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
29029 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29030 (eval $ac_try) 2>&5
29032 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29033 test $ac_status = 0; }; }; then :
29035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29036 $as_echo "yes" >&6; }
29038 $as_echo "#define HAVE_CONST_DENTRY_OPERATIONS 1" >>confdefs.h
29042 $as_echo "$as_me: failed program was:" >&5
29043 sed 's/^/| /' conftest.
$ac_ext >&5
29045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29046 $as_echo "no" >&6; }
29055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether check_disk_size_change() is available" >&5
29056 $as_echo_n "checking whether check_disk_size_change() is available... " >&6; }
29060 cat confdefs.h
- <<_ACEOF >conftest.c
29063 #include <linux/fs.h>
29069 check_disk_size_change(NULL, NULL);
29079 cat - <<_ACEOF >conftest.h
29084 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
29085 echo "obj-m := conftest.o" >build
/Makefile
29087 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
29088 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
29089 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29090 (eval $ac_try) 2>&5
29092 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29093 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
29094 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29095 (eval $ac_try) 2>&5
29097 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29098 test $ac_status = 0; }; }; then :
29101 $as_echo "$as_me: failed program was:" >&5
29102 sed 's/^/| /' conftest.
$ac_ext >&5
29110 if test $rc -ne 0; then :
29112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29113 $as_echo "no" >&6; }
29116 if test "x$enable_linux_builtin" != xyes
; then
29118 grep -q -E '[[:space:]]check_disk_size_change[[:space:]]' \
29119 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
29121 if test $rc -ne 0; then
29123 for file in fs
/block_dev.c
; do
29124 grep -q -E "EXPORT_SYMBOL.*(check_disk_size_change)" \
29125 "$LINUX/$file" 2>/dev
/null
29127 if test $rc -eq 0; then
29132 if test $export -eq 0; then :
29142 if test $rc -ne 0; then :
29144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29145 $as_echo "no" >&6; }
29149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29150 $as_echo "yes" >&6; }
29152 $as_echo "#define HAVE_CHECK_DISK_SIZE_CHANGE 1" >>confdefs.h
29159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether truncate_setsize() is available" >&5
29160 $as_echo_n "checking whether truncate_setsize() is available... " >&6; }
29164 cat confdefs.h
- <<_ACEOF >conftest.c
29167 #include <linux/mm.h>
29173 truncate_setsize(NULL, 0);
29183 cat - <<_ACEOF >conftest.h
29188 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
29189 echo "obj-m := conftest.o" >build
/Makefile
29191 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
29192 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
29193 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29194 (eval $ac_try) 2>&5
29196 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29197 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
29198 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29199 (eval $ac_try) 2>&5
29201 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29202 test $ac_status = 0; }; }; then :
29205 $as_echo "$as_me: failed program was:" >&5
29206 sed 's/^/| /' conftest.
$ac_ext >&5
29214 if test $rc -ne 0; then :
29216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29217 $as_echo "no" >&6; }
29220 if test "x$enable_linux_builtin" != xyes
; then
29222 grep -q -E '[[:space:]]truncate_setsize[[:space:]]' \
29223 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
29225 if test $rc -ne 0; then
29227 for file in mm
/truncate.c
; do
29228 grep -q -E "EXPORT_SYMBOL.*(truncate_setsize)" \
29229 "$LINUX/$file" 2>/dev
/null
29231 if test $rc -eq 0; then
29236 if test $export -eq 0; then :
29246 if test $rc -ne 0; then :
29248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29249 $as_echo "no" >&6; }
29253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29254 $as_echo "yes" >&6; }
29256 $as_echo "#define HAVE_TRUNCATE_SETSIZE 1" >>confdefs.h
29264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether security_inode_init_security wants 6 args" >&5
29265 $as_echo_n "checking whether security_inode_init_security wants 6 args... " >&6; }
29268 cat confdefs.h
- <<_ACEOF >conftest.c
29271 #include <linux/security.h>
29277 struct inode *ip __attribute__ ((unused)) = NULL;
29278 struct inode *dip __attribute__ ((unused)) = NULL;
29279 const struct qstr *str __attribute__ ((unused)) = NULL;
29280 char *name __attribute__ ((unused)) = NULL;
29281 void *value __attribute__ ((unused)) = NULL;
29282 size_t len __attribute__ ((unused)) = 0;
29284 security_inode_init_security(ip, dip, str, &name, &value, &len);
29294 cat - <<_ACEOF >conftest.h
29299 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
29300 echo "obj-m := conftest.o" >build
/Makefile
29302 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
29303 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
29304 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29305 (eval $ac_try) 2>&5
29307 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29308 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
29309 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29310 (eval $ac_try) 2>&5
29312 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29313 test $ac_status = 0; }; }; then :
29315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29316 $as_echo "yes" >&6; }
29318 $as_echo "#define HAVE_6ARGS_SECURITY_INODE_INIT_SECURITY 1" >>confdefs.h
29322 $as_echo "$as_me: failed program was:" >&5
29323 sed 's/^/| /' conftest.
$ac_ext >&5
29325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29326 $as_echo "no" >&6; }
29336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether security_inode_init_security wants callback" >&5
29337 $as_echo_n "checking whether security_inode_init_security wants callback... " >&6; }
29340 cat confdefs.h
- <<_ACEOF >conftest.c
29343 #include <linux/security.h>
29349 struct inode *ip __attribute__ ((unused)) = NULL;
29350 struct inode *dip __attribute__ ((unused)) = NULL;
29351 const struct qstr *str __attribute__ ((unused)) = NULL;
29352 initxattrs func __attribute__ ((unused)) = NULL;
29354 security_inode_init_security(ip, dip, str, func, NULL);
29364 cat - <<_ACEOF >conftest.h
29369 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
29370 echo "obj-m := conftest.o" >build
/Makefile
29372 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
29373 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
29374 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29375 (eval $ac_try) 2>&5
29377 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29378 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
29379 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29380 (eval $ac_try) 2>&5
29382 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29383 test $ac_status = 0; }; }; then :
29385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29386 $as_echo "yes" >&6; }
29388 $as_echo "#define HAVE_CALLBACK_SECURITY_INODE_INIT_SECURITY 1" >>confdefs.h
29392 $as_echo "$as_me: failed program was:" >&5
29393 sed 's/^/| /' conftest.
$ac_ext >&5
29395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29396 $as_echo "no" >&6; }
29405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mount_nodev() is available" >&5
29406 $as_echo_n "checking whether mount_nodev() is available... " >&6; }
29410 cat confdefs.h
- <<_ACEOF >conftest.c
29413 #include <linux/fs.h>
29419 mount_nodev(NULL, 0, NULL, NULL);
29429 cat - <<_ACEOF >conftest.h
29434 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
29435 echo "obj-m := conftest.o" >build
/Makefile
29437 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
29438 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
29439 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29440 (eval $ac_try) 2>&5
29442 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29443 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
29444 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29445 (eval $ac_try) 2>&5
29447 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29448 test $ac_status = 0; }; }; then :
29451 $as_echo "$as_me: failed program was:" >&5
29452 sed 's/^/| /' conftest.
$ac_ext >&5
29460 if test $rc -ne 0; then :
29462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29463 $as_echo "no" >&6; }
29466 if test "x$enable_linux_builtin" != xyes
; then
29468 grep -q -E '[[:space:]]mount_nodev[[:space:]]' \
29469 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
29471 if test $rc -ne 0; then
29473 for file in fs
/super.c
; do
29474 grep -q -E "EXPORT_SYMBOL.*(mount_nodev)" \
29475 "$LINUX/$file" 2>/dev
/null
29477 if test $rc -eq 0; then
29482 if test $export -eq 0; then :
29492 if test $rc -ne 0; then :
29494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29495 $as_echo "no" >&6; }
29499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29500 $as_echo "yes" >&6; }
29502 $as_echo "#define HAVE_MOUNT_NODEV 1" >>confdefs.h
29510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether super_block has s_shrink" >&5
29511 $as_echo_n "checking whether super_block has s_shrink... " >&6; }
29514 cat confdefs.h
- <<_ACEOF >conftest.c
29517 #include <linux/fs.h>
29519 int shrink(struct shrinker *s, struct shrink_control *sc)
29522 static const struct super_block
29523 sb __attribute__ ((unused)) = {
29524 .s_shrink.shrink = shrink,
29525 .s_shrink.seeks = DEFAULT_SEEKS,
29526 .s_shrink.batch = 0,
29542 cat - <<_ACEOF >conftest.h
29547 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
29548 echo "obj-m := conftest.o" >build
/Makefile
29550 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
29551 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
29552 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29553 (eval $ac_try) 2>&5
29555 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29556 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
29557 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29558 (eval $ac_try) 2>&5
29560 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29561 test $ac_status = 0; }; }; then :
29563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29564 $as_echo "yes" >&6; }
29566 $as_echo "#define HAVE_SHRINK 1" >>confdefs.h
29571 $as_echo "$as_me: failed program was:" >&5
29572 sed 's/^/| /' conftest.
$ac_ext >&5
29574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29575 $as_echo "no" >&6; }
29585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether shrink_control has nid" >&5
29586 $as_echo_n "checking whether shrink_control has nid... " >&6; }
29589 cat confdefs.h
- <<_ACEOF >conftest.c
29592 #include <linux/fs.h>
29598 struct shrink_control sc __attribute__ ((unused));
29599 unsigned long scnidsize __attribute__ ((unused)) =
29610 cat - <<_ACEOF >conftest.h
29615 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
29616 echo "obj-m := conftest.o" >build
/Makefile
29618 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
29619 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
29620 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29621 (eval $ac_try) 2>&5
29623 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29624 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
29625 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29626 (eval $ac_try) 2>&5
29628 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29629 test $ac_status = 0; }; }; then :
29631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29632 $as_echo "yes" >&6; }
29634 $as_echo "#define SHRINK_CONTROL_HAS_NID 1" >>confdefs.h
29638 $as_echo "$as_me: failed program was:" >&5
29639 sed 's/^/| /' conftest.
$ac_ext >&5
29641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29642 $as_echo "no" >&6; }
29652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether super_block has s_instances list_head" >&5
29653 $as_echo_n "checking whether super_block has s_instances list_head... " >&6; }
29656 cat confdefs.h
- <<_ACEOF >conftest.c
29659 #include <linux/fs.h>
29665 struct super_block sb __attribute__ ((unused));
29667 INIT_LIST_HEAD(&sb.s_instances);
29677 cat - <<_ACEOF >conftest.h
29682 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
29683 echo "obj-m := conftest.o" >build
/Makefile
29685 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
29686 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
29687 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29688 (eval $ac_try) 2>&5
29690 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29691 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
29692 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29693 (eval $ac_try) 2>&5
29695 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29696 test $ac_status = 0; }; }; then :
29698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29699 $as_echo "yes" >&6; }
29701 $as_echo "#define HAVE_S_INSTANCES_LIST_HEAD 1" >>confdefs.h
29705 $as_echo "$as_me: failed program was:" >&5
29706 sed 's/^/| /' conftest.
$ac_ext >&5
29708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29709 $as_echo "no" >&6; }
29718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether super_block has s_d_op" >&5
29719 $as_echo_n "checking whether super_block has s_d_op... " >&6; }
29722 cat confdefs.h
- <<_ACEOF >conftest.c
29725 #include <linux/fs.h>
29731 struct super_block sb __attribute__ ((unused));
29742 cat - <<_ACEOF >conftest.h
29747 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
29748 echo "obj-m := conftest.o" >build
/Makefile
29750 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
29751 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
29752 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29753 (eval $ac_try) 2>&5
29755 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29756 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
29757 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29758 (eval $ac_try) 2>&5
29760 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29761 test $ac_status = 0; }; }; then :
29763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29764 $as_echo "yes" >&6; }
29766 $as_echo "#define HAVE_S_D_OP 1" >>confdefs.h
29770 $as_echo "$as_me: failed program was:" >&5
29771 sed 's/^/| /' conftest.
$ac_ext >&5
29773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29774 $as_echo "no" >&6; }
29784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether bdi_setup_and_register() wants 2 args" >&5
29785 $as_echo_n "checking whether bdi_setup_and_register() wants 2 args... " >&6; }
29789 cat confdefs.h
- <<_ACEOF >conftest.c
29792 #include <linux/backing-dev.h>
29793 struct backing_dev_info bdi;
29799 char *name = "bdi";
29800 int error __attribute__((unused)) =
29801 bdi_setup_and_register(&bdi, name);
29811 cat - <<_ACEOF >conftest.h
29816 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
29817 echo "obj-m := conftest.o" >build
/Makefile
29819 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
29820 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
29821 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29822 (eval $ac_try) 2>&5
29824 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29825 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
29826 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29827 (eval $ac_try) 2>&5
29829 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29830 test $ac_status = 0; }; }; then :
29833 $as_echo "$as_me: failed program was:" >&5
29834 sed 's/^/| /' conftest.
$ac_ext >&5
29842 if test $rc -ne 0; then :
29844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29845 $as_echo "no" >&6; }
29846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether bdi_setup_and_register() wants 3 args" >&5
29847 $as_echo_n "checking whether bdi_setup_and_register() wants 3 args... " >&6; }
29851 cat confdefs.h
- <<_ACEOF >conftest.c
29854 #include <linux/backing-dev.h>
29855 struct backing_dev_info bdi;
29861 char *name = "bdi";
29862 unsigned int cap = BDI_CAP_MAP_COPY;
29863 int error __attribute__((unused)) =
29864 bdi_setup_and_register(&bdi, name, cap);
29874 cat - <<_ACEOF >conftest.h
29879 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
29880 echo "obj-m := conftest.o" >build
/Makefile
29882 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
29883 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
29884 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29885 (eval $ac_try) 2>&5
29887 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29888 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
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; }; }; then :
29896 $as_echo "$as_me: failed program was:" >&5
29897 sed 's/^/| /' conftest.
$ac_ext >&5
29905 if test $rc -ne 0; then :
29907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29908 $as_echo "no" >&6; }
29911 if test "x$enable_linux_builtin" != xyes
; then
29913 grep -q -E '[[:space:]]bdi_setup_and_register[[:space:]]' \
29914 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
29916 if test $rc -ne 0; then
29918 for file in mm
/backing-dev.c
; do
29919 grep -q -E "EXPORT_SYMBOL.*(bdi_setup_and_register)" \
29920 "$LINUX/$file" 2>/dev
/null
29922 if test $rc -eq 0; then
29927 if test $export -eq 0; then :
29937 if test $rc -ne 0; then :
29939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29940 $as_echo "no" >&6; }
29944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29945 $as_echo "yes" >&6; }
29947 $as_echo "#define HAVE_3ARGS_BDI_SETUP_AND_REGISTER 1" >>confdefs.h
29955 if test "x$enable_linux_builtin" != xyes
; then
29957 grep -q -E '[[:space:]]bdi_setup_and_register[[:space:]]' \
29958 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
29960 if test $rc -ne 0; then
29962 for file in mm
/backing-dev.c
; do
29963 grep -q -E "EXPORT_SYMBOL.*(bdi_setup_and_register)" \
29964 "$LINUX/$file" 2>/dev
/null
29966 if test $rc -eq 0; then
29971 if test $export -eq 0; then :
29981 if test $rc -ne 0; then :
29983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29984 $as_echo "no" >&6; }
29985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether bdi_setup_and_register() wants 3 args" >&5
29986 $as_echo_n "checking whether bdi_setup_and_register() wants 3 args... " >&6; }
29990 cat confdefs.h
- <<_ACEOF >conftest.c
29993 #include <linux/backing-dev.h>
29994 struct backing_dev_info bdi;
30000 char *name = "bdi";
30001 unsigned int cap = BDI_CAP_MAP_COPY;
30002 int error __attribute__((unused)) =
30003 bdi_setup_and_register(&bdi, name, cap);
30013 cat - <<_ACEOF >conftest.h
30018 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
30019 echo "obj-m := conftest.o" >build
/Makefile
30021 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
30022 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
30023 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30024 (eval $ac_try) 2>&5
30026 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30027 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
30028 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30029 (eval $ac_try) 2>&5
30031 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30032 test $ac_status = 0; }; }; then :
30035 $as_echo "$as_me: failed program was:" >&5
30036 sed 's/^/| /' conftest.
$ac_ext >&5
30044 if test $rc -ne 0; then :
30046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30047 $as_echo "no" >&6; }
30050 if test "x$enable_linux_builtin" != xyes
; then
30052 grep -q -E '[[:space:]]bdi_setup_and_register[[:space:]]' \
30053 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
30055 if test $rc -ne 0; then
30057 for file in mm
/backing-dev.c
; do
30058 grep -q -E "EXPORT_SYMBOL.*(bdi_setup_and_register)" \
30059 "$LINUX/$file" 2>/dev
/null
30061 if test $rc -eq 0; then
30066 if test $export -eq 0; then :
30076 if test $rc -ne 0; then :
30078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30079 $as_echo "no" >&6; }
30083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30084 $as_echo "yes" >&6; }
30086 $as_echo "#define HAVE_3ARGS_BDI_SETUP_AND_REGISTER 1" >>confdefs.h
30095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30096 $as_echo "yes" >&6; }
30098 $as_echo "#define HAVE_2ARGS_BDI_SETUP_AND_REGISTER 1" >>confdefs.h
30106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether set_nlink() is available" >&5
30107 $as_echo_n "checking whether set_nlink() is available... " >&6; }
30110 cat confdefs.h
- <<_ACEOF >conftest.c
30113 #include <linux/fs.h>
30120 unsigned int link = 0;
30121 (void) set_nlink(&node, link);
30131 cat - <<_ACEOF >conftest.h
30136 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
30137 echo "obj-m := conftest.o" >build
/Makefile
30139 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
30140 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
30141 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30142 (eval $ac_try) 2>&5
30144 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30145 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
30146 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30147 (eval $ac_try) 2>&5
30149 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30150 test $ac_status = 0; }; }; then :
30152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30153 $as_echo "yes" >&6; }
30155 $as_echo "#define HAVE_SET_NLINK 1" >>confdefs.h
30159 $as_echo "$as_me: failed program was:" >&5
30160 sed 's/^/| /' conftest.
$ac_ext >&5
30162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30163 $as_echo "no" >&6; }
30173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether elevator_change() is available" >&5
30174 $as_echo_n "checking whether elevator_change() is available... " >&6; }
30175 tmp_flags
="$EXTRA_KCFLAGS"
30176 EXTRA_KCFLAGS
="${NO_UNUSED_BUT_SET_VARIABLE}"
30179 cat confdefs.h
- <<_ACEOF >conftest.c
30182 #include <linux/blkdev.h>
30183 #include <linux/elevator.h>
30190 struct request_queue *q = NULL;
30191 char *elevator = NULL;
30192 ret = elevator_change(q, elevator);
30202 cat - <<_ACEOF >conftest.h
30207 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
30208 echo "obj-m := conftest.o" >build
/Makefile
30210 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
30211 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
30212 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30213 (eval $ac_try) 2>&5
30215 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30216 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
30217 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30218 (eval $ac_try) 2>&5
30220 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30221 test $ac_status = 0; }; }; then :
30223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30224 $as_echo "yes" >&6; }
30226 $as_echo "#define HAVE_ELEVATOR_CHANGE 1" >>confdefs.h
30230 $as_echo "$as_me: failed program was:" >&5
30231 sed 's/^/| /' conftest.
$ac_ext >&5
30233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30234 $as_echo "no" >&6; }
30242 EXTRA_KCFLAGS
="$tmp_flags"
30244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sget() wants 5 args" >&5
30245 $as_echo_n "checking whether sget() wants 5 args... " >&6; }
30248 cat confdefs.h
- <<_ACEOF >conftest.c
30251 #include <linux/fs.h>
30257 struct file_system_type *type = NULL;
30258 int (*test)(struct super_block *,void *) = NULL;
30259 int (*set)(struct super_block *,void *) = NULL;
30262 (void) sget(type, test, set, flags, data);
30272 cat - <<_ACEOF >conftest.h
30277 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
30278 echo "obj-m := conftest.o" >build
/Makefile
30280 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
30281 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
30282 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30283 (eval $ac_try) 2>&5
30285 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30286 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
30287 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30288 (eval $ac_try) 2>&5
30290 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30291 test $ac_status = 0; }; }; then :
30293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30294 $as_echo "yes" >&6; }
30296 $as_echo "#define HAVE_5ARG_SGET 1" >>confdefs.h
30300 $as_echo "$as_me: failed program was:" >&5
30301 sed 's/^/| /' conftest.
$ac_ext >&5
30303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30304 $as_echo "no" >&6; }
30313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lseek_execute() is available" >&5
30314 $as_echo_n "checking whether lseek_execute() is available... " >&6; }
30318 cat confdefs.h
- <<_ACEOF >conftest.c
30321 #include <linux/fs.h>
30327 struct file *fp __attribute__ ((unused)) = NULL;
30328 struct inode *ip __attribute__ ((unused)) = NULL;
30329 loff_t offset __attribute__ ((unused)) = 0;
30330 loff_t maxsize __attribute__ ((unused)) = 0;
30332 lseek_execute(fp, ip, offset, maxsize);
30342 cat - <<_ACEOF >conftest.h
30347 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
30348 echo "obj-m := conftest.o" >build
/Makefile
30350 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
30351 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
30352 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30353 (eval $ac_try) 2>&5
30355 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30356 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
30357 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30358 (eval $ac_try) 2>&5
30360 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30361 test $ac_status = 0; }; }; then :
30364 $as_echo "$as_me: failed program was:" >&5
30365 sed 's/^/| /' conftest.
$ac_ext >&5
30373 if test $rc -ne 0; then :
30375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30376 $as_echo "no" >&6; }
30379 if test "x$enable_linux_builtin" != xyes
; then
30381 grep -q -E '[[:space:]]lseek_exclusive[[:space:]]' \
30382 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
30384 if test $rc -ne 0; then
30386 for file in fs
/read_write.c
; do
30387 grep -q -E "EXPORT_SYMBOL.*(lseek_exclusive)" \
30388 "$LINUX/$file" 2>/dev
/null
30390 if test $rc -eq 0; then
30395 if test $export -eq 0; then :
30405 if test $rc -ne 0; then :
30407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30408 $as_echo "no" >&6; }
30412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30413 $as_echo "yes" >&6; }
30415 $as_echo "#define HAVE_LSEEK_EXECUTE 1" >>confdefs.h
30423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fops->iterate() is available" >&5
30424 $as_echo_n "checking whether fops->iterate() is available... " >&6; }
30427 cat confdefs.h
- <<_ACEOF >conftest.c
30430 #include <linux/fs.h>
30431 int iterate(struct file *filp, struct dir_context * context)
30434 static const struct file_operations fops
30435 __attribute__ ((unused)) = {
30436 .iterate = iterate,
30452 cat - <<_ACEOF >conftest.h
30457 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
30458 echo "obj-m := conftest.o" >build
/Makefile
30460 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
30461 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
30462 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30463 (eval $ac_try) 2>&5
30465 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30466 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
30467 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30468 (eval $ac_try) 2>&5
30470 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30471 test $ac_status = 0; }; }; then :
30473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30474 $as_echo "yes" >&6; }
30476 $as_echo "#define HAVE_VFS_ITERATE 1" >>confdefs.h
30480 $as_echo "$as_me: failed program was:" >&5
30481 sed 's/^/| /' conftest.
$ac_ext >&5
30483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30484 $as_echo "no" >&6; }
30486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fops->readdir() is available" >&5
30487 $as_echo_n "checking whether fops->readdir() is available... " >&6; }
30490 cat confdefs.h
- <<_ACEOF >conftest.c
30493 #include <linux/fs.h>
30494 int readdir(struct file *filp, void *entry, filldir_t func)
30497 static const struct file_operations fops
30498 __attribute__ ((unused)) = {
30499 .readdir = readdir,
30515 cat - <<_ACEOF >conftest.h
30520 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
30521 echo "obj-m := conftest.o" >build
/Makefile
30523 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
30524 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
30525 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30526 (eval $ac_try) 2>&5
30528 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30529 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
30530 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30531 (eval $ac_try) 2>&5
30533 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30534 test $ac_status = 0; }; }; then :
30536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30537 $as_echo "yes" >&6; }
30539 $as_echo "#define HAVE_VFS_READDIR 1" >>confdefs.h
30543 $as_echo "$as_me: failed program was:" >&5
30544 sed 's/^/| /' conftest.
$ac_ext >&5
30546 as_fn_error $?
"no; file a bug report with ZFSOnLinux" "$LINENO" 5
30563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fops->read/write_iter() are available" >&5
30564 $as_echo_n "checking whether fops->read/write_iter() are available... " >&6; }
30567 cat confdefs.h
- <<_ACEOF >conftest.c
30570 #include <linux/fs.h>
30572 ssize_t test_read(struct kiocb *kiocb, struct iov_iter *to)
30574 ssize_t test_write(struct kiocb *kiocb, struct iov_iter *from)
30577 static const struct file_operations
30578 fops __attribute__ ((unused)) = {
30579 .read_iter = test_read,
30580 .write_iter = test_write,
30596 cat - <<_ACEOF >conftest.h
30601 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
30602 echo "obj-m := conftest.o" >build
/Makefile
30604 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
30605 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
30606 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30607 (eval $ac_try) 2>&5
30609 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30610 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
30611 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30612 (eval $ac_try) 2>&5
30614 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30615 test $ac_status = 0; }; }; then :
30617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30618 $as_echo "yes" >&6; }
30620 $as_echo "#define HAVE_VFS_RW_ITERATE 1" >>confdefs.h
30624 $as_echo "$as_me: failed program was:" >&5
30625 sed 's/^/| /' conftest.
$ac_ext >&5
30627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30628 $as_echo "no" >&6; }
30638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether kmap_atomic wants 1 args" >&5
30639 $as_echo_n "checking whether kmap_atomic wants 1 args... " >&6; }
30642 cat confdefs.h
- <<_ACEOF >conftest.c
30645 #include <linux/pagemap.h>
30652 kmap_atomic(&page);
30662 cat - <<_ACEOF >conftest.h
30667 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
30668 echo "obj-m := conftest.o" >build
/Makefile
30670 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
30671 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
30672 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30673 (eval $ac_try) 2>&5
30675 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30676 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
30677 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30678 (eval $ac_try) 2>&5
30680 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30681 test $ac_status = 0; }; }; then :
30683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30684 $as_echo "yes" >&6; }
30686 $as_echo "#define HAVE_1ARG_KMAP_ATOMIC 1" >>confdefs.h
30690 $as_echo "$as_me: failed program was:" >&5
30691 sed 's/^/| /' conftest.
$ac_ext >&5
30693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30694 $as_echo "no" >&6; }
30704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether follow_down_one() is available" >&5
30705 $as_echo_n "checking whether follow_down_one() is available... " >&6; }
30708 cat confdefs.h
- <<_ACEOF >conftest.c
30711 #include <linux/namei.h>
30717 struct path *p = NULL;
30718 follow_down_one(p);
30728 cat - <<_ACEOF >conftest.h
30733 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
30734 echo "obj-m := conftest.o" >build
/Makefile
30736 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
30737 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
30738 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30739 (eval $ac_try) 2>&5
30741 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30742 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
30743 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30744 (eval $ac_try) 2>&5
30746 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30747 test $ac_status = 0; }; }; then :
30749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30750 $as_echo "yes" >&6; }
30752 $as_echo "#define HAVE_FOLLOW_DOWN_ONE 1" >>confdefs.h
30756 $as_echo "$as_me: failed program was:" >&5
30757 sed 's/^/| /' conftest.
$ac_ext >&5
30759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30760 $as_echo "no" >&6; }
30770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether make_request_fn() returns int" >&5
30771 $as_echo_n "checking whether make_request_fn() returns int... " >&6; }
30774 cat confdefs.h
- <<_ACEOF >conftest.c
30777 #include <linux/blkdev.h>
30779 int make_request(struct request_queue *q, struct bio *bio)
30788 blk_queue_make_request(NULL, &make_request);
30798 cat - <<_ACEOF >conftest.h
30803 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
30804 echo "obj-m := conftest.o" >build
/Makefile
30806 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
30807 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
30808 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30809 (eval $ac_try) 2>&5
30811 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30812 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
30813 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30814 (eval $ac_try) 2>&5
30816 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30817 test $ac_status = 0; }; }; then :
30819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30820 $as_echo "yes" >&6; }
30822 $as_echo "#define MAKE_REQUEST_FN_RET int" >>confdefs.h
30825 $as_echo "#define HAVE_MAKE_REQUEST_FN_RET_INT 1" >>confdefs.h
30829 $as_echo "$as_me: failed program was:" >&5
30830 sed 's/^/| /' conftest.
$ac_ext >&5
30832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30833 $as_echo "no" >&6; }
30834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether make_request_fn() returns void" >&5
30835 $as_echo_n "checking whether make_request_fn() returns void... " >&6; }
30838 cat confdefs.h
- <<_ACEOF >conftest.c
30841 #include <linux/blkdev.h>
30843 void make_request(struct request_queue *q, struct bio *bio)
30852 blk_queue_make_request(NULL, &make_request);
30862 cat - <<_ACEOF >conftest.h
30867 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
30868 echo "obj-m := conftest.o" >build
/Makefile
30870 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
30871 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
30872 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30873 (eval $ac_try) 2>&5
30875 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30876 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
30877 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30878 (eval $ac_try) 2>&5
30880 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30881 test $ac_status = 0; }; }; then :
30883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30884 $as_echo "yes" >&6; }
30886 $as_echo "#define MAKE_REQUEST_FN_RET void" >>confdefs.h
30890 $as_echo "$as_me: failed program was:" >&5
30891 sed 's/^/| /' conftest.
$ac_ext >&5
30893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30894 $as_echo "no" >&6; }
30895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether make_request_fn() returns blk_qc_t" >&5
30896 $as_echo_n "checking whether make_request_fn() returns blk_qc_t... " >&6; }
30899 cat confdefs.h
- <<_ACEOF >conftest.c
30902 #include <linux/blkdev.h>
30904 blk_qc_t make_request(struct request_queue *q, struct bio *bio)
30906 return (BLK_QC_T_NONE);
30913 blk_queue_make_request(NULL, &make_request);
30923 cat - <<_ACEOF >conftest.h
30928 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
30929 echo "obj-m := conftest.o" >build
/Makefile
30931 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
30932 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
30933 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30934 (eval $ac_try) 2>&5
30936 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30937 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
30938 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30939 (eval $ac_try) 2>&5
30941 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30942 test $ac_status = 0; }; }; then :
30944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30945 $as_echo "yes" >&6; }
30947 $as_echo "#define MAKE_REQUEST_FN_RET blk_qc_t" >>confdefs.h
30950 $as_echo "#define HAVE_MAKE_REQUEST_FN_RET_QC 1" >>confdefs.h
30954 $as_echo "$as_me: failed program was:" >&5
30955 sed 's/^/| /' conftest.
$ac_ext >&5
30957 as_fn_error $?
"no - Please file a bug report at
30958 https://github.com/zfsonlinux/zfs/issues/new" "$LINENO" 5
30982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether generic IO accounting symbols are avaliable" >&5
30983 $as_echo_n "checking whether generic IO accounting symbols are avaliable... " >&6; }
30987 cat confdefs.h
- <<_ACEOF >conftest.c
30990 #include <linux/bio.h>
30992 void (*generic_start_io_acct_f)(int, unsigned long,
30993 struct hd_struct *) = &generic_start_io_acct;
30994 void (*generic_end_io_acct_f)(int, struct hd_struct *,
30995 unsigned long) = &generic_end_io_acct;
31001 generic_start_io_acct(0, 0, NULL);
31002 generic_end_io_acct(0, NULL, 0);
31012 cat - <<_ACEOF >conftest.h
31017 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
31018 echo "obj-m := conftest.o" >build
/Makefile
31020 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
31021 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
31022 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31023 (eval $ac_try) 2>&5
31025 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31026 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
31027 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31028 (eval $ac_try) 2>&5
31030 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31031 test $ac_status = 0; }; }; then :
31034 $as_echo "$as_me: failed program was:" >&5
31035 sed 's/^/| /' conftest.
$ac_ext >&5
31043 if test $rc -ne 0; then :
31045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31046 $as_echo "no" >&6; }
31049 if test "x$enable_linux_builtin" != xyes
; then
31051 grep -q -E '[[:space:]]generic_start_io_acct[[:space:]]' \
31052 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
31054 if test $rc -ne 0; then
31056 for file in block
/bio.c
; do
31057 grep -q -E "EXPORT_SYMBOL.*(generic_start_io_acct)" \
31058 "$LINUX/$file" 2>/dev
/null
31060 if test $rc -eq 0; then
31065 if test $export -eq 0; then :
31075 if test $rc -ne 0; then :
31077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31078 $as_echo "no" >&6; }
31082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31083 $as_echo "yes" >&6; }
31085 $as_echo "#define HAVE_GENERIC_IO_ACCT 1" >>confdefs.h
31093 if test "$LINUX_OBJ" != "$LINUX"; then :
31095 KERNELMAKE_PARAMS
="$KERNELMAKE_PARAMS O=$LINUX_OBJ"
31101 KERNELCPPFLAGS
="$KERNELCPPFLAGS $NO_UNUSED_BUT_SET_VARIABLE"
31102 KERNELCPPFLAGS
="$KERNELCPPFLAGS $NO_BOOL_COMPARE"
31103 KERNELCPPFLAGS
="$KERNELCPPFLAGS -DHAVE_SPL -D_KERNEL"
31104 KERNELCPPFLAGS
="$KERNELCPPFLAGS -DTEXT_DOMAIN=\\\"zfs-linux-kernel\\\""
31111 # Check whether --with-mounthelperdir was given.
31112 if test "${with_mounthelperdir+set}" = set; then :
31113 withval
=$with_mounthelperdir; mounthelperdir
=$withval
31115 mounthelperdir
=/sbin
31122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for udev directories" >&5
31123 $as_echo_n "checking for udev directories... " >&6; }
31125 # Check whether --with-udevdir was given.
31126 if test "${with_udevdir+set}" = set; then :
31127 withval
=$with_udevdir; udevdir
=$withval
31133 if test "x$udevdir" = xcheck
; then :
31136 path2
=/usr
/lib
/udev
31139 if test -d "$path1"; then :
31143 if test -d "$path2"; then :
31154 # Check whether --with-udevruledir was given.
31155 if test "${with_udevruledir+set}" = set; then :
31156 withval
=$with_udevruledir; udevruledir
=$withval
31158 udevruledir
="${udevdir}/rules.d"
31164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $udevdir;$udevruledir" >&5
31165 $as_echo "$udevdir;$udevruledir" >&6; }
31168 # Check whether --enable-systemd was given.
31169 if test "${enable_systemd+set}" = set; then :
31170 enableval
=$enable_systemd;
31177 # Check whether --with-systemdunitdir was given.
31178 if test "${with_systemdunitdir+set}" = set; then :
31179 withval
=$with_systemdunitdir; systemdunitdir
=$withval
31181 systemdunitdir
=/usr
/lib
/systemd
/system
31186 # Check whether --with-systemdpresetdir was given.
31187 if test "${with_systemdpresetdir+set}" = set; then :
31188 withval
=$with_systemdpresetdir; systemdpresetdir
=$withval
31190 systemdpresetdir
=/usr
/lib
/systemd
/system-preset
31195 # Check whether --with-systemdmodulesloaddir was given.
31196 if test "${with_systemdmodulesloaddir+set}" = set; then :
31197 withval
=$with_systemdmodulesloaddir; systemdmoduleloaddir
=$withval
31199 systemdmodulesloaddir
=/usr
/lib
/modules-load.d
31204 if test "x$enable_systemd" = xyes
; then :
31206 ZFS_INIT_SYSTEMD
=systemd
31207 ZFS_MODULE_LOAD
=modules-load.d
31208 modulesloaddir
=$systemdmodulesloaddir
31219 # Check whether --enable-sysvinit was given.
31220 if test "${enable_sysvinit+set}" = set; then :
31221 enableval
=$enable_sysvinit;
31223 enable_sysvinit
=yes
31227 if test "x$enable_sysvinit" = xyes
; then :
31228 ZFS_INIT_SYSV
=init.d
31234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dracut directory" >&5
31235 $as_echo_n "checking for dracut directory... " >&6; }
31237 # Check whether --with-dracutdir was given.
31238 if test "${with_dracutdir+set}" = set; then :
31239 withval
=$with_dracutdir; dracutdir
=$withval
31245 if test "x$dracutdir" = xcheck
; then :
31247 path1
=/usr
/share
/dracut
31248 path2
=/usr
/lib
/dracut
31251 if test -d "$path1"; then :
31255 if test -d "$path2"; then :
31258 dracutdir
="$default"
31266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dracutdir" >&5
31267 $as_echo "$dracutdir" >&6; }
31270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for target asm dir" >&5
31271 $as_echo_n "checking for target asm dir... " >&6; }
31272 TARGET_ARCH
=`echo ${target_cpu} | sed -e s/i.86/i386/`
31274 case $TARGET_ARCH in
31276 TARGET_ASM_DIR
=asm-
${TARGET_ARCH}
31279 TARGET_ASM_DIR
=asm-generic
31284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TARGET_ASM_DIR" >&5
31285 $as_echo "$TARGET_ASM_DIR" >&6; }
31290 ac_fn_c_check_header_mongrel
"$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
31291 if test "x$ac_cv_header_zlib_h" = xyes
; then :
31294 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
31295 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
31297 *** zlib.h missing, zlib-devel package required
31298 See \`config.log' for more details" "$LINENO" 5; }
31303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compress2 in -lz" >&5
31304 $as_echo_n "checking for compress2 in -lz... " >&6; }
31305 if ${ac_cv_lib_z_compress2+:} false
; then :
31306 $as_echo_n "(cached) " >&6
31308 ac_check_lib_save_LIBS
=$LIBS
31310 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
31311 /* end confdefs.h. */
31313 /* Override any GCC internal prototype to avoid an error.
31314 Use char because int might match the return type of a GCC
31315 builtin and then its argument prototype would still apply. */
31323 return compress2 ();
31328 if ac_fn_c_try_link
"$LINENO"; then :
31329 ac_cv_lib_z_compress2
=yes
31331 ac_cv_lib_z_compress2
=no
31333 rm -f core conftest.err conftest.
$ac_objext \
31334 conftest
$ac_exeext conftest.
$ac_ext
31335 LIBS
=$ac_check_lib_save_LIBS
31337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_compress2" >&5
31338 $as_echo "$ac_cv_lib_z_compress2" >&6; }
31339 if test "x$ac_cv_lib_z_compress2" = xyes
; then :
31340 cat >>confdefs.h
<<_ACEOF
31341 #define HAVE_LIBZ 1
31347 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
31348 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
31350 *** compress2() missing, zlib-devel package required
31351 See \`config.log' for more details" "$LINENO" 5; }
31355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uncompress in -lz" >&5
31356 $as_echo_n "checking for uncompress in -lz... " >&6; }
31357 if ${ac_cv_lib_z_uncompress+:} false
; then :
31358 $as_echo_n "(cached) " >&6
31360 ac_check_lib_save_LIBS
=$LIBS
31362 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
31363 /* end confdefs.h. */
31365 /* Override any GCC internal prototype to avoid an error.
31366 Use char because int might match the return type of a GCC
31367 builtin and then its argument prototype would still apply. */
31371 char uncompress ();
31375 return uncompress ();
31380 if ac_fn_c_try_link
"$LINENO"; then :
31381 ac_cv_lib_z_uncompress
=yes
31383 ac_cv_lib_z_uncompress
=no
31385 rm -f core conftest.err conftest.
$ac_objext \
31386 conftest
$ac_exeext conftest.
$ac_ext
31387 LIBS
=$ac_check_lib_save_LIBS
31389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_uncompress" >&5
31390 $as_echo "$ac_cv_lib_z_uncompress" >&6; }
31391 if test "x$ac_cv_lib_z_uncompress" = xyes
; then :
31392 cat >>confdefs.h
<<_ACEOF
31393 #define HAVE_LIBZ 1
31399 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
31400 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
31402 *** uncompress() missing, zlib-devel package required
31403 See \`config.log' for more details" "$LINENO" 5; }
31407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for crc32 in -lz" >&5
31408 $as_echo_n "checking for crc32 in -lz... " >&6; }
31409 if ${ac_cv_lib_z_crc32+:} false
; then :
31410 $as_echo_n "(cached) " >&6
31412 ac_check_lib_save_LIBS
=$LIBS
31414 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
31415 /* end confdefs.h. */
31417 /* Override any GCC internal prototype to avoid an error.
31418 Use char because int might match the return type of a GCC
31419 builtin and then its argument prototype would still apply. */
31432 if ac_fn_c_try_link
"$LINENO"; then :
31433 ac_cv_lib_z_crc32
=yes
31435 ac_cv_lib_z_crc32
=no
31437 rm -f core conftest.err conftest.
$ac_objext \
31438 conftest
$ac_exeext conftest.
$ac_ext
31439 LIBS
=$ac_check_lib_save_LIBS
31441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_crc32" >&5
31442 $as_echo "$ac_cv_lib_z_crc32" >&6; }
31443 if test "x$ac_cv_lib_z_crc32" = xyes
; then :
31444 cat >>confdefs.h
<<_ACEOF
31445 #define HAVE_LIBZ 1
31451 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
31452 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
31454 *** crc32() missing, zlib-devel package required
31455 See \`config.log' for more details" "$LINENO" 5; }
31462 $as_echo "#define HAVE_ZLIB 1" >>confdefs.h
31468 ac_fn_c_check_header_mongrel
"$LINENO" "uuid/uuid.h" "ac_cv_header_uuid_uuid_h" "$ac_includes_default"
31469 if test "x$ac_cv_header_uuid_uuid_h" = xyes
; then :
31472 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
31473 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
31475 *** uuid/uuid.h missing, libuuid-devel package required
31476 See \`config.log' for more details" "$LINENO" 5; }
31481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uuid_generate in -luuid" >&5
31482 $as_echo_n "checking for uuid_generate in -luuid... " >&6; }
31483 if ${ac_cv_lib_uuid_uuid_generate+:} false
; then :
31484 $as_echo_n "(cached) " >&6
31486 ac_check_lib_save_LIBS
=$LIBS
31487 LIBS
="-luuid $LIBS"
31488 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
31489 /* end confdefs.h. */
31491 /* Override any GCC internal prototype to avoid an error.
31492 Use char because int might match the return type of a GCC
31493 builtin and then its argument prototype would still apply. */
31497 char uuid_generate ();
31501 return uuid_generate ();
31506 if ac_fn_c_try_link
"$LINENO"; then :
31507 ac_cv_lib_uuid_uuid_generate
=yes
31509 ac_cv_lib_uuid_uuid_generate
=no
31511 rm -f core conftest.err conftest.
$ac_objext \
31512 conftest
$ac_exeext conftest.
$ac_ext
31513 LIBS
=$ac_check_lib_save_LIBS
31515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_uuid_uuid_generate" >&5
31516 $as_echo "$ac_cv_lib_uuid_uuid_generate" >&6; }
31517 if test "x$ac_cv_lib_uuid_uuid_generate" = xyes
; then :
31518 cat >>confdefs.h
<<_ACEOF
31519 #define HAVE_LIBUUID 1
31522 LIBS
="-luuid $LIBS"
31525 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
31526 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
31528 *** uuid_generate() missing, libuuid-devel package required
31529 See \`config.log' for more details" "$LINENO" 5; }
31533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uuid_is_null in -luuid" >&5
31534 $as_echo_n "checking for uuid_is_null in -luuid... " >&6; }
31535 if ${ac_cv_lib_uuid_uuid_is_null+:} false
; then :
31536 $as_echo_n "(cached) " >&6
31538 ac_check_lib_save_LIBS
=$LIBS
31539 LIBS
="-luuid $LIBS"
31540 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
31541 /* end confdefs.h. */
31543 /* Override any GCC internal prototype to avoid an error.
31544 Use char because int might match the return type of a GCC
31545 builtin and then its argument prototype would still apply. */
31549 char uuid_is_null ();
31553 return uuid_is_null ();
31558 if ac_fn_c_try_link
"$LINENO"; then :
31559 ac_cv_lib_uuid_uuid_is_null
=yes
31561 ac_cv_lib_uuid_uuid_is_null
=no
31563 rm -f core conftest.err conftest.
$ac_objext \
31564 conftest
$ac_exeext conftest.
$ac_ext
31565 LIBS
=$ac_check_lib_save_LIBS
31567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_uuid_uuid_is_null" >&5
31568 $as_echo "$ac_cv_lib_uuid_uuid_is_null" >&6; }
31569 if test "x$ac_cv_lib_uuid_uuid_is_null" = xyes
; then :
31570 cat >>confdefs.h
<<_ACEOF
31571 #define HAVE_LIBUUID 1
31574 LIBS
="-luuid $LIBS"
31577 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
31578 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
31580 *** uuid_is_null() missing, libuuid-devel package required
31581 See \`config.log' for more details" "$LINENO" 5; }
31588 $as_echo "#define HAVE_LIBUUID 1" >>confdefs.h
31593 # Check whether --with-blkid was given.
31594 if test "${with_blkid+set}" = set; then :
31595 withval
=$with_blkid;
31602 if test "x$with_blkid" = xyes
; then :
31607 $as_echo "#define HAVE_LIBBLKID 1" >>confdefs.h
31612 if test "x$with_blkid" = xcheck
; then :
31614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for blkid_get_cache in -lblkid" >&5
31615 $as_echo_n "checking for blkid_get_cache in -lblkid... " >&6; }
31616 if ${ac_cv_lib_blkid_blkid_get_cache+:} false
; then :
31617 $as_echo_n "(cached) " >&6
31619 ac_check_lib_save_LIBS
=$LIBS
31620 LIBS
="-lblkid $LIBS"
31621 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
31622 /* end confdefs.h. */
31624 /* Override any GCC internal prototype to avoid an error.
31625 Use char because int might match the return type of a GCC
31626 builtin and then its argument prototype would still apply. */
31630 char blkid_get_cache ();
31634 return blkid_get_cache ();
31639 if ac_fn_c_try_link
"$LINENO"; then :
31640 ac_cv_lib_blkid_blkid_get_cache
=yes
31642 ac_cv_lib_blkid_blkid_get_cache
=no
31644 rm -f core conftest.err conftest.
$ac_objext \
31645 conftest
$ac_exeext conftest.
$ac_ext
31646 LIBS
=$ac_check_lib_save_LIBS
31648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_blkid_blkid_get_cache" >&5
31649 $as_echo "$ac_cv_lib_blkid_blkid_get_cache" >&6; }
31650 if test "x$ac_cv_lib_blkid_blkid_get_cache" = xyes
; then :
31652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for blkid zfs support" >&5
31653 $as_echo_n "checking for blkid zfs support... " >&6; }
31656 truncate
-s 64M
$ZFS_DEV
31657 echo -en "\x0c\xb1\xba\0\0\0\0\0" | \
31658 dd of
=$ZFS_DEV bs
=1k count
=8 \
31659 seek
=128 conv
=notrunc
&>/dev
/null \
31660 >/dev
/null
2>/dev
/null
31661 echo -en "\x0c\xb1\xba\0\0\0\0\0" | \
31662 dd of
=$ZFS_DEV bs
=1k count
=8 \
31663 seek
=132 conv
=notrunc
&>/dev
/null \
31664 >/dev
/null
2>/dev
/null
31665 echo -en "\x0c\xb1\xba\0\0\0\0\0" | \
31666 dd of
=$ZFS_DEV bs
=1k count
=8 \
31667 seek
=136 conv
=notrunc
&>/dev
/null \
31668 >/dev
/null
2>/dev
/null
31669 echo -en "\x0c\xb1\xba\0\0\0\0\0" | \
31670 dd of
=$ZFS_DEV bs
=1k count
=8 \
31671 seek
=140 conv
=notrunc
&>/dev
/null \
31672 >/dev
/null
2>/dev
/null
31677 if test "$cross_compiling" = yes; then :
31678 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
31679 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
31680 as_fn_error $?
"cannot run test program while cross compiling
31681 See \`config.log' for more details" "$LINENO" 5; }
31683 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
31684 /* end confdefs.h. */
31687 #include <stdlib.h>
31688 #include <blkid/blkid.h>
31697 if (blkid_get_cache(&cache, NULL) < 0)
31700 value = blkid_get_tag_value(cache, "TYPE",
31703 blkid_put_cache(cache);
31707 if (strcmp(value, "zfs_member")) {
31709 blkid_put_cache(cache);
31714 blkid_put_cache(cache);
31720 if ac_fn_c_try_run
"$LINENO"; then :
31723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31724 $as_echo "yes" >&6; }
31728 $as_echo "#define HAVE_LIBBLKID 1" >>confdefs.h
31734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31735 $as_echo "no" >&6; }
31736 if test "x$with_blkid" != xcheck
; then :
31737 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
31738 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
31739 as_fn_error $?
"--with-blkid given but unavailable
31740 See \`config.log' for more details" "$LINENO" 5; }
31744 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
31745 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
31753 if test "x$with_blkid" != xcheck
; then :
31754 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
31755 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
31756 as_fn_error $?
"--with-blkid given but unavailable
31757 See \`config.log' for more details" "$LINENO" 5; }
31767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -Wframe-larger-than=<size> support" >&5
31768 $as_echo_n "checking for -Wframe-larger-than=<size> support... " >&6; }
31770 saved_flags
="$CFLAGS"
31771 CFLAGS
="$CFLAGS -Wframe-larger-than=1024"
31773 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
31774 /* end confdefs.h. */
31784 if ac_fn_c_try_compile
"$LINENO"; then :
31786 FRAME_LARGER_THAN
=-Wframe-larger-than=1024
31787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31788 $as_echo "yes" >&6; }
31793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31794 $as_echo "no" >&6; }
31797 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
31799 CFLAGS
="$saved_flags"
31803 if test "x$runstatedir" = x
; then
31804 runstatedir
='${localstatedir}/run'
31808 for ac_func
in mlockall
31810 ac_fn_c_check_func
"$LINENO" "mlockall" "ac_cv_func_mlockall"
31811 if test "x$ac_cv_func_mlockall" = xyes
; then :
31812 cat >>confdefs.h
<<_ACEOF
31813 #define HAVE_MLOCKALL 1
31822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Error!" >&5
31823 $as_echo "Error!" >&6; }
31824 as_fn_error $?
"Bad value \"$ZFS_CONFIG\" for --with-config,
31825 user kernel|user|all|srpm" "$LINENO" 5 ;;
31828 if test "$ZFS_CONFIG" = user
-o "$ZFS_CONFIG" = all
; then
31830 CONFIG_USER_FALSE
='#'
31832 CONFIG_USER_TRUE
='#'
31836 if test "$ZFS_CONFIG" = kernel
-o "$ZFS_CONFIG" = all
&&
31837 test "x$enable_linux_builtin" != xyes
; then
31838 CONFIG_KERNEL_TRUE
=
31839 CONFIG_KERNEL_FALSE
='#'
31841 CONFIG_KERNEL_TRUE
='#'
31842 CONFIG_KERNEL_FALSE
=
31847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether debugging is enabled" >&5
31848 $as_echo_n "checking whether debugging is enabled... " >&6; }
31849 # Check whether --enable-debug was given.
31850 if test "${enable_debug+set}" = set; then :
31851 enableval
=$enable_debug;
31857 if test "x$enable_debug" = xyes
; then :
31859 KERNELCPPFLAGS
="${KERNELCPPFLAGS} -DDEBUG -Werror"
31860 HOSTCFLAGS
="${HOSTCFLAGS} -DDEBUG -Werror"
31861 DEBUG_CFLAGS
="-DDEBUG -Werror"
31862 DEBUG_STACKFLAGS
="-fstack-check"
31863 DEBUG_ZFS
="_with_debug"
31865 $as_echo "#define ZFS_DEBUG 1" >>confdefs.h
31870 KERNELCPPFLAGS
="${KERNELCPPFLAGS} -DNDEBUG "
31871 HOSTCFLAGS
="${HOSTCFLAGS} -DNDEBUG "
31872 DEBUG_CFLAGS
="-DNDEBUG"
31873 DEBUG_STACKFLAGS
=""
31874 DEBUG_ZFS
="_without_debug"
31881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_debug" >&5
31882 $as_echo "$enable_debug" >&6; }
31885 # Check whether --enable-debug-dmu-tx was given.
31886 if test "${enable_debug_dmu_tx+set}" = set; then :
31887 enableval
=$enable_debug_dmu_tx;
31889 enable_debug_dmu_tx
=no
31893 if test "x$enable_debug_dmu_tx" = xyes
; then :
31895 KERNELCPPFLAGS
="${KERNELCPPFLAGS} -DDEBUG_DMU_TX"
31896 DEBUG_DMU_TX
="_with_debug_dmu_tx"
31898 $as_echo "#define DEBUG_DMU_TX 1" >>confdefs.h
31903 DEBUG_DMU_TX
="_without_debug_dmu_tx"
31908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether dmu tx validation is enabled" >&5
31909 $as_echo_n "checking whether dmu tx validation is enabled... " >&6; }
31910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_debug_dmu_tx" >&5
31911 $as_echo "$enable_debug_dmu_tx" >&6; }
31914 ac_config_files
="$ac_config_files Makefile udev/Makefile udev/rules.d/Makefile etc/Makefile etc/init.d/Makefile etc/zfs/Makefile etc/systemd/Makefile etc/systemd/system/Makefile etc/modules-load.d/Makefile man/Makefile man/man1/Makefile man/man5/Makefile man/man8/Makefile lib/Makefile lib/libspl/Makefile lib/libspl/asm-generic/Makefile lib/libspl/asm-i386/Makefile lib/libspl/asm-x86_64/Makefile lib/libspl/include/Makefile lib/libspl/include/ia32/Makefile lib/libspl/include/ia32/sys/Makefile lib/libspl/include/rpc/Makefile lib/libspl/include/sys/Makefile lib/libspl/include/sys/sysevent/Makefile lib/libspl/include/sys/dktp/Makefile lib/libspl/include/util/Makefile lib/libavl/Makefile lib/libefi/Makefile lib/libnvpair/Makefile lib/libunicode/Makefile lib/libuutil/Makefile lib/libzpool/Makefile lib/libzfs/libzfs.pc lib/libzfs/libzfs_core.pc lib/libzfs/Makefile lib/libzfs_core/Makefile lib/libshare/Makefile cmd/Makefile cmd/zdb/Makefile cmd/zhack/Makefile cmd/zfs/Makefile cmd/zinject/Makefile cmd/zpool/Makefile cmd/zstreamdump/Makefile cmd/ztest/Makefile cmd/zpios/Makefile cmd/mount_zfs/Makefile cmd/fsck_zfs/Makefile cmd/zvol_id/Makefile cmd/vdev_id/Makefile cmd/arcstat/Makefile cmd/dbufstat/Makefile cmd/arc_summary/Makefile cmd/zed/Makefile contrib/Makefile contrib/bash_completion.d/Makefile contrib/dracut/Makefile contrib/dracut/90zfs/Makefile contrib/initramfs/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 scripts/Makefile scripts/zpios-profile/Makefile scripts/zpios-test/Makefile scripts/zpool-config/Makefile scripts/common.sh rpm/Makefile rpm/redhat/Makefile rpm/redhat/zfs.spec rpm/redhat/zfs-kmod.spec rpm/redhat/zfs-dkms.spec rpm/generic/Makefile rpm/generic/zfs.spec rpm/generic/zfs-kmod.spec rpm/generic/zfs-dkms.spec zfs-script-config.sh zfs.release"
31917 cat >confcache
<<\_ACEOF
31918 # This file is a shell script that caches the results of configure
31919 # tests run on this system so they can be shared between configure
31920 # scripts and configure runs, see configure's option --config-cache.
31921 # It is not useful on other systems. If it contains results you don't
31922 # want to keep, you may remove or edit it.
31924 # config.status only pays attention to the cache file if you give it
31925 # the --recheck option to rerun configure.
31927 # `ac_cv_env_foo' variables (set or unset) will be overridden when
31928 # loading this file, other *unset* `ac_cv_foo' will be assigned the
31929 # following values.
31933 # The following way of writing the cache mishandles newlines in values,
31934 # but we know of no workaround that is simple, portable, and efficient.
31935 # So, we kill variables containing newlines.
31936 # Ultrix sh set writes to stderr and can't be redirected directly,
31937 # and sets the high bit in the cache file unless we assign to the vars.
31939 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
31940 eval ac_val
=\$
$ac_var
31944 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
31945 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
31948 _ | IFS | as_nl
) ;; #(
31949 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
31950 *) { eval $ac_var=; unset $ac_var;} ;;
31956 case $as_nl`(ac_space=' '; set) 2>&1` in #(
31957 *${as_nl}ac_space
=\
*)
31958 # `set' does not quote correctly, so add quotes: double-quote
31959 # substitution turns \\\\ into \\, and sed turns \\ into \.
31962 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
31965 # `set' quotes correctly as required by POSIX, so do not add quotes.
31966 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
31975 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
31977 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
31979 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
31980 if test -w "$cache_file"; then
31981 if test "x$cache_file" != "x/dev/null"; then
31982 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
31983 $as_echo "$as_me: updating cache $cache_file" >&6;}
31984 if test ! -f "$cache_file" ||
test -h "$cache_file"; then
31985 cat confcache
>"$cache_file"
31987 case $cache_file in #(
31989 mv -f confcache
"$cache_file"$$
&&
31990 mv -f "$cache_file"$$
"$cache_file" ;; #(
31992 mv -f confcache
"$cache_file" ;;
31997 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
31998 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
32003 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
32004 # Let make expand exec_prefix.
32005 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
32007 DEFS
=-DHAVE_CONFIG_H
32012 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
32013 # 1. Remove the extension, and $U if already installed.
32014 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
32015 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
32016 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
32017 # will be set to the directory where LIBOBJS objects are built.
32018 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
32019 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
32021 LIBOBJS
=$ac_libobjs
32023 LTLIBOBJS
=$ac_ltlibobjs
32026 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
32027 as_fn_error $?
"conditional \"MAINTAINER_MODE\" was never defined.
32028 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32030 if test -n "$EXEEXT"; then
32032 am__EXEEXT_FALSE
='#'
32034 am__EXEEXT_TRUE
='#'
32038 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
32039 as_fn_error $?
"conditional \"AMDEP\" was never defined.
32040 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32042 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
32043 as_fn_error $?
"conditional \"am__fastdepCC\" was never defined.
32044 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32046 if test -z "${am__fastdepCCAS_TRUE}" && test -z "${am__fastdepCCAS_FALSE}"; then
32047 as_fn_error $?
"conditional \"am__fastdepCCAS\" was never defined.
32048 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32050 if test -z "${CONFIG_USER_TRUE}" && test -z "${CONFIG_USER_FALSE}"; then
32051 as_fn_error $?
"conditional \"CONFIG_USER\" was never defined.
32052 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32054 if test -z "${CONFIG_KERNEL_TRUE}" && test -z "${CONFIG_KERNEL_FALSE}"; then
32055 as_fn_error $?
"conditional \"CONFIG_KERNEL\" was never defined.
32056 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32059 : "${CONFIG_STATUS=./config.status}"
32061 ac_clean_files_save
=$ac_clean_files
32062 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
32063 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
32064 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
32066 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
32068 # Generated by $as_me.
32069 # Run this file to recreate the current configuration.
32070 # Compiler output produced by configure, useful for debugging
32071 # configure, is in config.log if it exists.
32074 ac_cs_recheck=false
32077 SHELL=\${CONFIG_SHELL-$SHELL}
32080 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail
=1
32081 ## -------------------- ##
32082 ## M4sh Initialization. ##
32083 ## -------------------- ##
32085 # Be more Bourne compatible
32086 DUALCASE
=1; export DUALCASE
# for MKS sh
32087 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
32090 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
32091 # is contrary to our usage. Disable this feature.
32092 alias -g '${1+"$@"}'='"$@"'
32093 setopt NO_GLOB_SUBST
32095 case `(set -o) 2>/dev/null` in #(
32107 # Printing a long string crashes Solaris 7 /usr/bin/printf.
32108 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
32109 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
32110 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
32111 # Prefer a ksh shell builtin over an external printf program on Solaris,
32112 # but without wasting forks for bash or zsh.
32113 if test -z "$BASH_VERSION$ZSH_VERSION" \
32114 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
32115 as_echo='print
-r --'
32116 as_echo_n='print
-rn --'
32117 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
32118 as_echo='printf %s
\n'
32119 as_echo_n='printf %s
'
32121 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
32122 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
32123 as_echo_n='/usr
/ucb
/echo -n'
32125 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
32126 as_echo_n_body='eval
32130 expr "X$arg" : "X\\(.*\\)$as_nl";
32131 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
32133 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
32135 export as_echo_n_body
32136 as_echo_n='sh
-c $as_echo_n_body as_echo
'
32138 export as_echo_body
32139 as_echo='sh
-c $as_echo_body as_echo
'
32142 # The user is always right.
32143 if test "${PATH_SEPARATOR+set}" != set; then
32145 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
32146 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
32153 # We need space, tab and new line, in precisely that order. Quoting is
32154 # there to prevent editors from complaining about space-tab.
32155 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
32156 # splitting by setting IFS to empty value.)
32159 # Find who we are. Look in the path if we contain no directory separator.
32162 *[\\/]* ) as_myself=$0 ;;
32163 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32164 for as_dir in $PATH
32167 test -z "$as_dir" && as_dir=.
32168 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
32174 # We did not find ourselves, most probably we were run as `sh COMMAND'
32175 # in which case we are not to be found in the path.
32176 if test "x$as_myself" = x
; then
32179 if test ! -f "$as_myself"; then
32180 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
32184 # Unset variables that we do not need and which cause bugs (e.g. in
32185 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
32186 # suppresses any "Segmentation fault" message there. '((' could
32187 # trigger a bug in pdksh 5.2.14.
32188 for as_var
in BASH_ENV ENV MAIL MAILPATH
32189 do eval test x\
${$as_var+set} = xset \
32190 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
32203 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
32206 # as_fn_error STATUS ERROR [LINENO LOG_FD]
32207 # ----------------------------------------
32208 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
32209 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
32210 # script with STATUS, using 1 if that was 0.
32213 as_status
=$1; test $as_status -eq 0 && as_status
=1
32215 as_lineno
=${as_lineno-"$3"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
32216 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
32218 $as_echo "$as_me: error: $2" >&2
32219 as_fn_exit
$as_status
32223 # as_fn_set_status STATUS
32224 # -----------------------
32225 # Set $? to STATUS, without forking.
32226 as_fn_set_status
()
32229 } # as_fn_set_status
32231 # as_fn_exit STATUS
32232 # -----------------
32233 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
32237 as_fn_set_status
$1
32243 # Portably unset VAR.
32246 { eval $1=; unset $1;}
32248 as_unset
=as_fn_unset
32249 # as_fn_append VAR VALUE
32250 # ----------------------
32251 # Append the text in VALUE to the end of the definition contained in VAR. Take
32252 # advantage of any shell optimizations that allow amortized linear growth over
32253 # repeated appends, instead of the typical quadratic growth present in naive
32255 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
32256 eval 'as_fn_append ()
32267 # as_fn_arith ARG...
32268 # ------------------
32269 # Perform arithmetic evaluation on the ARGs, and store the result in the
32270 # global $as_val. Take advantage of shells that can avoid forks. The arguments
32271 # must be portable across $(()) and expr.
32272 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
32273 eval 'as_fn_arith ()
32280 as_val
=`expr "$@" || test $? -eq 1`
32285 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
32286 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
32292 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
32293 as_basename
=basename
32298 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
32304 as_me
=`$as_basename -- "$0" ||
32305 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
32306 X"$0" : 'X\(//\)$' \| \
32307 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
32309 sed '/^.*\/\([^/][^/]*\)\/*$/{
32323 # Avoid depending upon Character Ranges.
32324 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
32325 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
32326 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
32327 as_cr_digits
='0123456789'
32328 as_cr_alnum
=$as_cr_Letters$as_cr_digits
32330 ECHO_C
= ECHO_N
= ECHO_T
=
32331 case `echo -n x` in #(((((
32333 case `echo 'xy\c'` in
32334 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
32336 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
32343 rm -f conf$$ conf$$.exe conf$$.
file
32344 if test -d conf$$.dir
; then
32345 rm -f conf$$.dir
/conf$$.
file
32348 mkdir conf$$.dir
2>/dev
/null
32350 if (echo >conf$$.
file) 2>/dev
/null
; then
32351 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
32353 # ... but there are two gotchas:
32354 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
32355 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
32356 # In both cases, we have to default to `cp -p'.
32357 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
32359 elif ln conf$$.
file conf$$
2>/dev
/null
; then
32367 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
32368 rmdir conf$$.dir
2>/dev
/null
32373 # Create "$as_dir" as a directory, including parents if necessary.
32378 -*) as_dir
=.
/$as_dir;;
32380 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
32384 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
32385 *) as_qdir
=$as_dir;;
32387 as_dirs
="'$as_qdir' $as_dirs"
32388 as_dir
=`$as_dirname -- "$as_dir" ||
32389 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
32390 X"$as_dir" : 'X\(//\)[^/]' \| \
32391 X"$as_dir" : 'X\(//\)$' \| \
32392 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
32393 $as_echo X"$as_dir" |
32394 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
32398 /^X\(\/\/\)[^/].*/{
32411 test -d "$as_dir" && break
32413 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
32414 } ||
test -d "$as_dir" || as_fn_error $?
"cannot create directory $as_dir"
32418 if mkdir
-p .
2>/dev
/null
; then
32419 as_mkdir_p
='mkdir -p "$as_dir"'
32421 test -d .
/-p && rmdir .
/-p
32425 if test -x / >/dev
/null
2>&1; then
32426 as_test_x
='test -x'
32428 if ls -dL / >/dev
/null
2>&1; then
32435 if test -d "$1"; then
32441 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
32442 ???[sx]*):;;*)false;;esac;fi
32446 as_executable_p
=$as_test_x
32448 # Sed expression to map a string onto a valid CPP name.
32449 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
32451 # Sed expression to map a string onto a valid variable name.
32452 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
32456 ## ----------------------------------- ##
32457 ## Main body of $CONFIG_STATUS script. ##
32458 ## ----------------------------------- ##
32460 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
32462 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
32463 # Save the log message, to keep $0 and so on meaningful, and to
32464 # report actual input values of CONFIG_FILES etc. instead of their
32465 # values after options handling.
32467 This file was extended by zfs $as_me 0.6.5.7, which was
32468 generated by GNU Autoconf 2.68. Invocation command line was
32470 CONFIG_FILES = $CONFIG_FILES
32471 CONFIG_HEADERS = $CONFIG_HEADERS
32472 CONFIG_LINKS = $CONFIG_LINKS
32473 CONFIG_COMMANDS = $CONFIG_COMMANDS
32476 on `(hostname || uname -n) 2>/dev/null | sed 1q`
32481 case $ac_config_files in *"
32482 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
32485 case $ac_config_headers in *"
32486 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
32490 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32491 # Files that config.status was made for.
32492 config_files="$ac_config_files"
32493 config_headers="$ac_config_headers"
32494 config_commands="$ac_config_commands"
32498 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
32500 \`$as_me' instantiates files and other configuration actions
32501 from templates according to the current configuration. Unless the files
32502 and actions are specified as TAGs, all are instantiated by default.
32504 Usage: $0 [OPTION]... [TAG]...
32506 -h, --help print this help, then exit
32507 -V, --version print version number and configuration settings, then exit
32508 --config print configuration, then exit
32509 -q, --quiet, --silent
32510 do not print progress messages
32511 -d, --debug don't remove temporary files
32512 --recheck update $as_me by reconfiguring in the same conditions
32513 --file=FILE[:TEMPLATE]
32514 instantiate the configuration file FILE
32515 --header=FILE[:TEMPLATE]
32516 instantiate the configuration header FILE
32518 Configuration files:
32521 Configuration headers:
32524 Configuration commands:
32527 Report bugs to the package provider."
32530 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32531 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
32533 zfs config.status 0.6.5.7
32534 configured by $0, generated by GNU Autoconf 2.68,
32535 with options \\"\$ac_cs_config\\"
32537 Copyright (C) 2010 Free Software Foundation, Inc.
32538 This config.status script is free software; the Free Software Foundation
32539 gives unlimited permission to copy, distribute and modify it."
32546 test -n "\$AWK" || AWK=awk
32549 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
32550 # The default lists apply if the user does not specify any file.
32556 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
32557 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
32561 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
32573 # Handling of the options.
32574 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
32576 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
32577 $as_echo "$ac_cs_version"; exit ;;
32578 --config |
--confi |
--conf |
--con |
--co |
--c )
32579 $as_echo "$ac_cs_config"; exit ;;
32580 --debug |
--debu |
--deb |
--de |
--d |
-d )
32582 --file |
--fil |
--fi |
--f )
32585 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
32586 '') as_fn_error $?
"missing file argument" ;;
32588 as_fn_append CONFIG_FILES
" '$ac_optarg'"
32589 ac_need_defaults
=false
;;
32590 --header |
--heade |
--head |
--hea )
32593 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
32595 as_fn_append CONFIG_HEADERS
" '$ac_optarg'"
32596 ac_need_defaults
=false
;;
32598 # Conflict between --help and --header
32599 as_fn_error $?
"ambiguous option: \`$1'
32600 Try \`$0 --help' for more information.";;
32601 --help |
--hel |
-h )
32602 $as_echo "$ac_cs_usage"; exit ;;
32603 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
32604 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
32607 # This is an error.
32608 -*) as_fn_error $?
"unrecognized option: \`$1'
32609 Try \`$0 --help' for more information." ;;
32611 *) as_fn_append ac_config_targets
" $1"
32612 ac_need_defaults
=false
;;
32618 ac_configure_extra_args
=
32620 if $ac_cs_silent; then
32622 ac_configure_extra_args
="$ac_configure_extra_args --silent"
32626 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32627 if \$ac_cs_recheck; then
32628 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
32630 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
32631 CONFIG_SHELL='$SHELL'
32632 export CONFIG_SHELL
32637 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
32641 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
32642 ## Running $as_me. ##
32648 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32652 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
32655 # The HP-UX ksh and POSIX shell print the target directory to stdout
32656 # if CDPATH is set.
32657 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
32659 sed_quote_subst='$sed_quote_subst'
32660 double_quote_subst='$double_quote_subst'
32661 delay_variable_subst='$delay_variable_subst'
32662 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
32663 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
32664 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
32665 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
32666 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
32667 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
32668 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
32669 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
32670 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
32671 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
32672 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
32673 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
32674 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
32675 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
32676 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
32677 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
32678 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
32679 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
32680 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
32681 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
32682 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
32683 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
32684 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
32685 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
32686 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
32687 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
32688 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
32689 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
32690 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
32691 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
32692 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
32693 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
32694 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
32695 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
32696 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
32697 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
32698 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
32699 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
32700 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
32701 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
32702 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
32703 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
32704 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
32705 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
32706 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
32707 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
32708 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
32709 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
32710 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
32711 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
32712 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
32713 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
32714 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
32715 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
32716 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
32717 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
32718 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"`'
32719 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
32720 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
32721 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
32722 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
32723 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
32724 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
32725 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
32726 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
32727 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
32728 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
32729 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
32730 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
32731 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
32732 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
32733 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
32734 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
32735 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
32736 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
32737 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
32738 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
32739 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
32740 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
32741 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
32742 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
32743 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
32744 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
32745 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
32746 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
32747 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
32748 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
32749 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
32750 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
32751 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
32752 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
32753 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
32754 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
32755 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
32756 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
32757 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
32758 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
32759 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
32760 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
32761 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
32762 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
32763 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
32764 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
32765 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
32766 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
32767 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
32768 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
32769 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
32770 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
32771 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
32772 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
32773 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
32774 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
32775 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
32776 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
32777 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
32778 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
32779 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
32780 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
32781 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
32782 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
32783 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
32784 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
32785 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
32786 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
32787 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
32788 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
32789 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
32790 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
32791 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
32794 LTCFLAGS='$LTCFLAGS'
32795 compiler='$compiler_DEFAULT'
32797 # A function that is used when there is no print builtin or printf.
32798 func_fallback_echo ()
32800 eval 'cat <<_LTECHO_EOF
32805 # Quote evaled strings.
32820 deplibs_check_method \
32825 sharedlib_from_linklib_cmd \
32828 archiver_list_spec \
32834 lt_cv_sys_global_symbol_pipe \
32835 lt_cv_sys_global_symbol_to_cdecl \
32836 lt_cv_sys_global_symbol_to_c_name_address \
32837 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
32838 nm_file_list_spec \
32839 lt_prog_compiler_no_builtin_flag \
32840 lt_prog_compiler_pic \
32841 lt_prog_compiler_wl \
32842 lt_prog_compiler_static \
32843 lt_cv_prog_compiler_c_o \
32852 export_dynamic_flag_spec \
32853 whole_archive_flag_spec \
32854 compiler_needs_object \
32856 allow_undefined_flag \
32857 no_undefined_flag \
32858 hardcode_libdir_flag_spec \
32859 hardcode_libdir_separator \
32863 variables_saved_for_relink \
32865 library_names_spec \
32867 install_override_mode \
32871 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
32872 *[\\\\\\\`\\"\\\$]*)
32873 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
32876 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
32881 # Double-quote double-evaled strings.
32882 for var in reload_cmds \
32883 old_postinstall_cmds \
32884 old_postuninstall_cmds \
32886 extract_expsyms_cmds \
32887 old_archive_from_new_cmds \
32888 old_archive_from_expsyms_cmds \
32890 archive_expsym_cmds \
32892 module_expsym_cmds \
32893 export_symbols_cmds \
32897 postuninstall_cmds \
32899 sys_lib_search_path_spec \
32900 sys_lib_dlsearch_path_spec; do
32901 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
32902 *[\\\\\\\`\\"\\\$]*)
32903 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
32906 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
32911 ac_aux_dir='$ac_aux_dir'
32912 xsi_shell='$xsi_shell'
32913 lt_shell_append='$lt_shell_append'
32915 # See if we are running on zsh, and set the options which allow our
32916 # commands through without removal of \ escapes INIT.
32917 if test -n "\${ZSH_VERSION+set}" ; then
32918 setopt NO_GLOB_SUBST
32924 TIMESTAMP='$TIMESTAMP'
32933 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
32935 # Handling of arguments.
32936 for ac_config_target
in $ac_config_targets
32938 case $ac_config_target in
32939 "zfs_config.h") CONFIG_HEADERS
="$CONFIG_HEADERS zfs_config.h" ;;
32940 "depfiles") CONFIG_COMMANDS
="$CONFIG_COMMANDS depfiles" ;;
32941 "libtool") CONFIG_COMMANDS
="$CONFIG_COMMANDS libtool" ;;
32942 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
32943 "udev/Makefile") CONFIG_FILES
="$CONFIG_FILES udev/Makefile" ;;
32944 "udev/rules.d/Makefile") CONFIG_FILES
="$CONFIG_FILES udev/rules.d/Makefile" ;;
32945 "etc/Makefile") CONFIG_FILES
="$CONFIG_FILES etc/Makefile" ;;
32946 "etc/init.d/Makefile") CONFIG_FILES
="$CONFIG_FILES etc/init.d/Makefile" ;;
32947 "etc/zfs/Makefile") CONFIG_FILES
="$CONFIG_FILES etc/zfs/Makefile" ;;
32948 "etc/systemd/Makefile") CONFIG_FILES
="$CONFIG_FILES etc/systemd/Makefile" ;;
32949 "etc/systemd/system/Makefile") CONFIG_FILES
="$CONFIG_FILES etc/systemd/system/Makefile" ;;
32950 "etc/modules-load.d/Makefile") CONFIG_FILES
="$CONFIG_FILES etc/modules-load.d/Makefile" ;;
32951 "man/Makefile") CONFIG_FILES
="$CONFIG_FILES man/Makefile" ;;
32952 "man/man1/Makefile") CONFIG_FILES
="$CONFIG_FILES man/man1/Makefile" ;;
32953 "man/man5/Makefile") CONFIG_FILES
="$CONFIG_FILES man/man5/Makefile" ;;
32954 "man/man8/Makefile") CONFIG_FILES
="$CONFIG_FILES man/man8/Makefile" ;;
32955 "lib/Makefile") CONFIG_FILES
="$CONFIG_FILES lib/Makefile" ;;
32956 "lib/libspl/Makefile") CONFIG_FILES
="$CONFIG_FILES lib/libspl/Makefile" ;;
32957 "lib/libspl/asm-generic/Makefile") CONFIG_FILES
="$CONFIG_FILES lib/libspl/asm-generic/Makefile" ;;
32958 "lib/libspl/asm-i386/Makefile") CONFIG_FILES
="$CONFIG_FILES lib/libspl/asm-i386/Makefile" ;;
32959 "lib/libspl/asm-x86_64/Makefile") CONFIG_FILES
="$CONFIG_FILES lib/libspl/asm-x86_64/Makefile" ;;
32960 "lib/libspl/include/Makefile") CONFIG_FILES
="$CONFIG_FILES lib/libspl/include/Makefile" ;;
32961 "lib/libspl/include/ia32/Makefile") CONFIG_FILES
="$CONFIG_FILES lib/libspl/include/ia32/Makefile" ;;
32962 "lib/libspl/include/ia32/sys/Makefile") CONFIG_FILES
="$CONFIG_FILES lib/libspl/include/ia32/sys/Makefile" ;;
32963 "lib/libspl/include/rpc/Makefile") CONFIG_FILES
="$CONFIG_FILES lib/libspl/include/rpc/Makefile" ;;
32964 "lib/libspl/include/sys/Makefile") CONFIG_FILES
="$CONFIG_FILES lib/libspl/include/sys/Makefile" ;;
32965 "lib/libspl/include/sys/sysevent/Makefile") CONFIG_FILES
="$CONFIG_FILES lib/libspl/include/sys/sysevent/Makefile" ;;
32966 "lib/libspl/include/sys/dktp/Makefile") CONFIG_FILES
="$CONFIG_FILES lib/libspl/include/sys/dktp/Makefile" ;;
32967 "lib/libspl/include/util/Makefile") CONFIG_FILES
="$CONFIG_FILES lib/libspl/include/util/Makefile" ;;
32968 "lib/libavl/Makefile") CONFIG_FILES
="$CONFIG_FILES lib/libavl/Makefile" ;;
32969 "lib/libefi/Makefile") CONFIG_FILES
="$CONFIG_FILES lib/libefi/Makefile" ;;
32970 "lib/libnvpair/Makefile") CONFIG_FILES
="$CONFIG_FILES lib/libnvpair/Makefile" ;;
32971 "lib/libunicode/Makefile") CONFIG_FILES
="$CONFIG_FILES lib/libunicode/Makefile" ;;
32972 "lib/libuutil/Makefile") CONFIG_FILES
="$CONFIG_FILES lib/libuutil/Makefile" ;;
32973 "lib/libzpool/Makefile") CONFIG_FILES
="$CONFIG_FILES lib/libzpool/Makefile" ;;
32974 "lib/libzfs/libzfs.pc") CONFIG_FILES
="$CONFIG_FILES lib/libzfs/libzfs.pc" ;;
32975 "lib/libzfs/libzfs_core.pc") CONFIG_FILES
="$CONFIG_FILES lib/libzfs/libzfs_core.pc" ;;
32976 "lib/libzfs/Makefile") CONFIG_FILES
="$CONFIG_FILES lib/libzfs/Makefile" ;;
32977 "lib/libzfs_core/Makefile") CONFIG_FILES
="$CONFIG_FILES lib/libzfs_core/Makefile" ;;
32978 "lib/libshare/Makefile") CONFIG_FILES
="$CONFIG_FILES lib/libshare/Makefile" ;;
32979 "cmd/Makefile") CONFIG_FILES
="$CONFIG_FILES cmd/Makefile" ;;
32980 "cmd/zdb/Makefile") CONFIG_FILES
="$CONFIG_FILES cmd/zdb/Makefile" ;;
32981 "cmd/zhack/Makefile") CONFIG_FILES
="$CONFIG_FILES cmd/zhack/Makefile" ;;
32982 "cmd/zfs/Makefile") CONFIG_FILES
="$CONFIG_FILES cmd/zfs/Makefile" ;;
32983 "cmd/zinject/Makefile") CONFIG_FILES
="$CONFIG_FILES cmd/zinject/Makefile" ;;
32984 "cmd/zpool/Makefile") CONFIG_FILES
="$CONFIG_FILES cmd/zpool/Makefile" ;;
32985 "cmd/zstreamdump/Makefile") CONFIG_FILES
="$CONFIG_FILES cmd/zstreamdump/Makefile" ;;
32986 "cmd/ztest/Makefile") CONFIG_FILES
="$CONFIG_FILES cmd/ztest/Makefile" ;;
32987 "cmd/zpios/Makefile") CONFIG_FILES
="$CONFIG_FILES cmd/zpios/Makefile" ;;
32988 "cmd/mount_zfs/Makefile") CONFIG_FILES
="$CONFIG_FILES cmd/mount_zfs/Makefile" ;;
32989 "cmd/fsck_zfs/Makefile") CONFIG_FILES
="$CONFIG_FILES cmd/fsck_zfs/Makefile" ;;
32990 "cmd/zvol_id/Makefile") CONFIG_FILES
="$CONFIG_FILES cmd/zvol_id/Makefile" ;;
32991 "cmd/vdev_id/Makefile") CONFIG_FILES
="$CONFIG_FILES cmd/vdev_id/Makefile" ;;
32992 "cmd/arcstat/Makefile") CONFIG_FILES
="$CONFIG_FILES cmd/arcstat/Makefile" ;;
32993 "cmd/dbufstat/Makefile") CONFIG_FILES
="$CONFIG_FILES cmd/dbufstat/Makefile" ;;
32994 "cmd/arc_summary/Makefile") CONFIG_FILES
="$CONFIG_FILES cmd/arc_summary/Makefile" ;;
32995 "cmd/zed/Makefile") CONFIG_FILES
="$CONFIG_FILES cmd/zed/Makefile" ;;
32996 "contrib/Makefile") CONFIG_FILES
="$CONFIG_FILES contrib/Makefile" ;;
32997 "contrib/bash_completion.d/Makefile") CONFIG_FILES
="$CONFIG_FILES contrib/bash_completion.d/Makefile" ;;
32998 "contrib/dracut/Makefile") CONFIG_FILES
="$CONFIG_FILES contrib/dracut/Makefile" ;;
32999 "contrib/dracut/90zfs/Makefile") CONFIG_FILES
="$CONFIG_FILES contrib/dracut/90zfs/Makefile" ;;
33000 "contrib/initramfs/Makefile") CONFIG_FILES
="$CONFIG_FILES contrib/initramfs/Makefile" ;;
33001 "module/Makefile") CONFIG_FILES
="$CONFIG_FILES module/Makefile" ;;
33002 "module/avl/Makefile") CONFIG_FILES
="$CONFIG_FILES module/avl/Makefile" ;;
33003 "module/nvpair/Makefile") CONFIG_FILES
="$CONFIG_FILES module/nvpair/Makefile" ;;
33004 "module/unicode/Makefile") CONFIG_FILES
="$CONFIG_FILES module/unicode/Makefile" ;;
33005 "module/zcommon/Makefile") CONFIG_FILES
="$CONFIG_FILES module/zcommon/Makefile" ;;
33006 "module/zfs/Makefile") CONFIG_FILES
="$CONFIG_FILES module/zfs/Makefile" ;;
33007 "module/zpios/Makefile") CONFIG_FILES
="$CONFIG_FILES module/zpios/Makefile" ;;
33008 "include/Makefile") CONFIG_FILES
="$CONFIG_FILES include/Makefile" ;;
33009 "include/linux/Makefile") CONFIG_FILES
="$CONFIG_FILES include/linux/Makefile" ;;
33010 "include/sys/Makefile") CONFIG_FILES
="$CONFIG_FILES include/sys/Makefile" ;;
33011 "include/sys/fs/Makefile") CONFIG_FILES
="$CONFIG_FILES include/sys/fs/Makefile" ;;
33012 "include/sys/fm/Makefile") CONFIG_FILES
="$CONFIG_FILES include/sys/fm/Makefile" ;;
33013 "include/sys/fm/fs/Makefile") CONFIG_FILES
="$CONFIG_FILES include/sys/fm/fs/Makefile" ;;
33014 "scripts/Makefile") CONFIG_FILES
="$CONFIG_FILES scripts/Makefile" ;;
33015 "scripts/zpios-profile/Makefile") CONFIG_FILES
="$CONFIG_FILES scripts/zpios-profile/Makefile" ;;
33016 "scripts/zpios-test/Makefile") CONFIG_FILES
="$CONFIG_FILES scripts/zpios-test/Makefile" ;;
33017 "scripts/zpool-config/Makefile") CONFIG_FILES
="$CONFIG_FILES scripts/zpool-config/Makefile" ;;
33018 "scripts/common.sh") CONFIG_FILES
="$CONFIG_FILES scripts/common.sh" ;;
33019 "rpm/Makefile") CONFIG_FILES
="$CONFIG_FILES rpm/Makefile" ;;
33020 "rpm/redhat/Makefile") CONFIG_FILES
="$CONFIG_FILES rpm/redhat/Makefile" ;;
33021 "rpm/redhat/zfs.spec") CONFIG_FILES
="$CONFIG_FILES rpm/redhat/zfs.spec" ;;
33022 "rpm/redhat/zfs-kmod.spec") CONFIG_FILES
="$CONFIG_FILES rpm/redhat/zfs-kmod.spec" ;;
33023 "rpm/redhat/zfs-dkms.spec") CONFIG_FILES
="$CONFIG_FILES rpm/redhat/zfs-dkms.spec" ;;
33024 "rpm/generic/Makefile") CONFIG_FILES
="$CONFIG_FILES rpm/generic/Makefile" ;;
33025 "rpm/generic/zfs.spec") CONFIG_FILES
="$CONFIG_FILES rpm/generic/zfs.spec" ;;
33026 "rpm/generic/zfs-kmod.spec") CONFIG_FILES
="$CONFIG_FILES rpm/generic/zfs-kmod.spec" ;;
33027 "rpm/generic/zfs-dkms.spec") CONFIG_FILES
="$CONFIG_FILES rpm/generic/zfs-dkms.spec" ;;
33028 "zfs-script-config.sh") CONFIG_FILES
="$CONFIG_FILES zfs-script-config.sh" ;;
33029 "zfs.release") CONFIG_FILES
="$CONFIG_FILES zfs.release" ;;
33031 *) as_fn_error $?
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
33036 # If the user did not use the arguments to specify the items to instantiate,
33037 # then the envvar interface is used. Set only those that are not.
33038 # We use the long form for the default assignment because of an extremely
33039 # bizarre bug on SunOS 4.1.3.
33040 if $ac_need_defaults; then
33041 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
33042 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
33043 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
33046 # Have a temporary directory for convenience. Make it in the build tree
33047 # simply because there is no reason against having it here, and in addition,
33048 # creating and moving files from /tmp can sometimes cause problems.
33049 # Hook for its removal unless debugging.
33050 # Note that there is a small window in which the directory will not be cleaned:
33051 # after its creation but before its name has been assigned to `$tmp'.
33055 trap 'exit_status=$?
33056 : "${ac_tmp:=$tmp}"
33057 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
33059 trap 'as_fn_exit 1' 1 2 13 15
33061 # Create a (secure) tmp directory for tmp files.
33064 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
33068 tmp
=.
/conf$$
-$RANDOM
33069 (umask 077 && mkdir
"$tmp")
33070 } || as_fn_error $?
"cannot create a temporary directory in ." "$LINENO" 5
33073 # Set up the scripts for CONFIG_FILES section.
33074 # No need to generate them if there are no CONFIG_FILES.
33075 # This happens for instance with `./config.status config.h'.
33076 if test -n "$CONFIG_FILES"; then
33079 ac_cr
=`echo X | tr X '\015'`
33080 # On cygwin, bash can eat \r inside `` if the user requested igncr.
33081 # But we know of no other shell where ac_cr would be empty at this
33082 # point, so we can use a bashism as a fallback.
33083 if test "x$ac_cr" = x
; then
33084 eval ac_cr
=\$
\'\\r
\'
33086 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
33087 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
33090 ac_cs_awk_cr
=$ac_cr
33093 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
33098 echo "cat >conf$$subs.awk <<_ACEOF" &&
33099 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
33101 } >conf$$subs.sh ||
33102 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
33103 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
33105 for ac_last_try in false false false false false :; do
33106 . ./conf$$subs.sh ||
33107 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
33109 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
33110 if test $ac_delim_n = $ac_delim_num; then
33112 elif $ac_last_try; then
33113 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
33115 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
33118 rm -f conf$$subs.sh
33120 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33121 cat >>"\
$ac_tmp/subs1.
awk" <<\\_ACAWK &&
33125 s/^/S["/; s
/!.
*/"]=/
33135 s/\(.\{148\}\)..*/\1/
33137 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
33142 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
33149 s/\(.\{148\}\)..*/\1/
33151 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
33155 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
33160 ' <conf$$subs.awk | sed '
33165 ' >>$CONFIG_STATUS || ac_write_fail=1
33166 rm -f conf$$subs.awk
33167 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33169 cat >>"\
$ac_tmp/subs1.
awk" <<_ACAWK &&
33170 for (key in S) S_is_set[key] = 1
33176 nfields = split(line, field, "@
")
33178 len = length(field[1])
33179 for (i = 2; i < nfields; i++) {
33181 keylen = length(key)
33182 if (S_is_set[key]) {
33184 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
33185 len += length(value) + length(field[++i])
33196 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33197 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
33198 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
33201 fi < "$ac_tmp/subs1.
awk" > "$ac_tmp/subs.
awk" \
33202 || as_fn_error $? "could not setup config files machinery
" "$LINENO" 5
33205 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
33206 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".
", strip leading and
33207 # trailing colons and then remove the whole line if VPATH becomes empty
33208 # (actually we leave an empty line to preserve line numbers).
33209 if test "x
$srcdir" = x.; then
33210 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
33228 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33229 fi # test -n "$CONFIG_FILES"
33231 # Set up the scripts for CONFIG_HEADERS section.
33232 # No need to generate them if there are no CONFIG_HEADERS.
33233 # This happens for instance with `./config.status Makefile'.
33234 if test -n "$CONFIG_HEADERS"; then
33235 cat >"$ac_tmp/defines.
awk" <<\_ACAWK ||
33239 # Transform confdefs.h into an awk script `defines.awk', embedded as
33240 # here-document in config.status, that substitutes the proper values into
33241 # config.h.in to produce config.h.
33243 # Create a delimiter string that does not exist in confdefs.h, to ease
33244 # handling of long lines.
33246 for ac_last_try in false false :; do
33247 ac_tt=`sed -n "/$ac_delim/p
" confdefs.h`
33248 if test -z "$ac_tt"; then
33250 elif $ac_last_try; then
33251 as_fn_error $? "could not
make $CONFIG_HEADERS" "$LINENO" 5
33253 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
33257 # For the awk script, D is an array of macro values keyed by name,
33258 # likewise P contains macro parameters if any. Preserve backslash
33259 # newline sequences.
33261 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
33263 s/.\{148\}/&'"$ac_delim"'/g
33266 s/^[ ]*#[ ]*define[ ][ ]*/ /
33273 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
33275 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
33279 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
33280 D["\
1"]=" \
3\\\\\\n
"\\/p
33282 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
33287 s/.\{148\}/&'"$ac_delim"'/g
33292 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
33295 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
33297 ' <confdefs.h | sed '
33298 s/'"$ac_delim"'/"\\\
33299 "/g' >>$CONFIG_STATUS || ac_write_fail=1
33301 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33302 for (key in D) D_is_set[key] = 1
33305 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
33307 split(line, arg, " ")
33308 if (arg[1] == "#") {
33312 defundef
= substr
(arg
[1], 2)
33315 split(mac1
, mac2
, "(") #)
33317 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
33318 if (D_is_set
[macro
]) {
33319 # Preserve the white space surrounding the "#".
33320 print prefix
"define", macro P
[macro
] D
[macro
]
33323 # Replace #undef with comments. This is necessary, for example,
33324 # in the case of _POSIX_SOURCE, which is predefined and required
33325 # on some systems where configure will not decide to define it.
33326 if (defundef
== "undef") {
33327 print
"/*", prefix defundef
, macro
, "*/"
33335 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
33336 as_fn_error $?
"could not setup config headers machinery" "$LINENO" 5
33337 fi # test -n "$CONFIG_HEADERS"
33340 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
33345 :[FHLC
]) ac_mode
=$ac_tag; continue;;
33347 case $ac_mode$ac_tag in
33349 :L
* |
:C
*:*) as_fn_error $?
"invalid tag \`$ac_tag'" "$LINENO" 5;;
33350 :[FH
]-) ac_tag
=-:-;;
33351 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
33368 -) ac_f
="$ac_tmp/stdin";;
33369 *) # Look for the file first in the build tree, then in the source tree
33370 # (if the path is not absolute). The absolute path cannot be DOS-style,
33371 # because $ac_f cannot contain `:'.
33375 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
33377 as_fn_error
1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
33379 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
33380 as_fn_append ac_file_inputs
" '$ac_f'"
33383 # Let's still pretend it is `configure' which instantiates (i.e., don't
33384 # use $as_me), people would be surprised to read:
33385 # /* config.h. Generated by config.status. */
33386 configure_input
='Generated from '`
33387 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
33389 if test x
"$ac_file" != x-
; then
33390 configure_input
="$ac_file. $configure_input"
33391 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
33392 $as_echo "$as_me: creating $ac_file" >&6;}
33394 # Neutralize special characters interpreted by sed in replacement strings.
33395 case $configure_input in #(
33396 *\
&* |
*\|
* |
*\\* )
33397 ac_sed_conf_input
=`$as_echo "$configure_input" |
33398 sed 's/[\\\\&|]/\\\\&/g'`;; #(
33399 *) ac_sed_conf_input
=$configure_input;;
33403 *:-:* |
*:-) cat >"$ac_tmp/stdin" \
33404 || as_fn_error $?
"could not create $ac_file" "$LINENO" 5 ;;
33409 ac_dir
=`$as_dirname -- "$ac_file" ||
33410 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
33411 X"$ac_file" : 'X\(//\)[^/]' \| \
33412 X"$ac_file" : 'X\(//\)$' \| \
33413 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
33414 $as_echo X"$ac_file" |
33415 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
33419 /^X\(\/\/\)[^/].*/{
33432 as_dir
="$ac_dir"; as_fn_mkdir_p
33436 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
33438 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
33439 # A ".." for each directory in $ac_dir_suffix.
33440 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
33441 case $ac_top_builddir_sub in
33442 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
33443 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
33446 ac_abs_top_builddir
=$ac_pwd
33447 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
33448 # for backward compatibility:
33449 ac_top_builddir
=$ac_top_build_prefix
33452 .
) # We are building in place.
33454 ac_top_srcdir
=$ac_top_builddir_sub
33455 ac_abs_top_srcdir
=$ac_pwd ;;
33456 [\\/]* | ?
:[\\/]* ) # Absolute name.
33457 ac_srcdir
=$srcdir$ac_dir_suffix;
33458 ac_top_srcdir
=$srcdir
33459 ac_abs_top_srcdir
=$srcdir ;;
33460 *) # Relative name.
33461 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
33462 ac_top_srcdir
=$ac_top_build_prefix$srcdir
33463 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
33465 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
33475 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
33476 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
33478 ac_MKDIR_P
=$MKDIR_P
33480 [\\/$
]* | ?
:[\\/]* ) ;;
33481 */*) ac_MKDIR_P
=$ac_top_build_prefix$MKDIR_P ;;
33485 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
33486 # If the template does not know about datarootdir, expand it.
33487 # FIXME: This hack should be removed a few years after 2.60.
33488 ac_datarootdir_hack
=; ac_datarootdir_seen
=
33499 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
33500 *datarootdir
*) ac_datarootdir_seen
=yes;;
33501 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
33502 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
33503 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
33505 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33506 ac_datarootdir_hack='
33507 s&@datadir@&$datadir&g
33508 s&@docdir@&$docdir&g
33509 s&@infodir@&$infodir&g
33510 s&@localedir@&$localedir&g
33511 s&@mandir@&$mandir&g
33512 s&\\\${datarootdir}&$datarootdir&g' ;;
33516 # Neutralize VPATH when `$srcdir' = `.'.
33517 # Shell code in configure.ac might set extrasub.
33518 # FIXME: do we really want to maintain this feature?
33519 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33520 ac_sed_extra="$ac_vpsub
33523 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
33525 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
33526 s|@configure_input@|
$ac_sed_conf_input|
;t t
33527 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
33528 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
33529 s
&@srcdir@
&$ac_srcdir&;t t
33530 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
33531 s
&@top_srcdir@
&$ac_top_srcdir&;t t
33532 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
33533 s
&@builddir@
&$ac_builddir&;t t
33534 s
&@abs_builddir@
&$ac_abs_builddir&;t t
33535 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
33536 s
&@INSTALL@
&$ac_INSTALL&;t t
33537 s
&@MKDIR_P@
&$ac_MKDIR_P&;t t
33538 $ac_datarootdir_hack
33540 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.
awk" \
33541 >$ac_tmp/out || as_fn_error $? "could not create
$ac_file" "$LINENO" 5
33543 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
33544 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out
"`; test -n "$ac_out"; } &&
33545 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
33546 "$ac_tmp/out
"`; test -z "$ac_out"; } &&
33547 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
33548 which seems to be undefined. Please make sure it is defined" >&5
33549 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
33550 which seems to be undefined. Please make sure it is defined" >&2;}
33552 rm -f "$ac_tmp/stdin"
33554 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
33555 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
33557 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
33563 if test x"$ac_file" != x-; then
33565 $as_echo "/* $configure_input */" \
33566 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
33567 } >"$ac_tmp/config.h" \
33568 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
33569 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
33570 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
33571 $as_echo "$as_me: $ac_file is unchanged" >&6;}
33574 mv "$ac_tmp/config.h" "$ac_file" \
33575 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
33578 $as_echo "/* $configure_input */" \
33579 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
33580 || as_fn_error $? "could not create -" "$LINENO" 5
33582 # Compute "$ac_file"'s index
in $config_headers.
33585 for _am_header
in $config_headers :; do
33586 case $_am_header in
33587 $_am_arg |
$_am_arg:* )
33590 _am_stamp_count
=`expr $_am_stamp_count + 1` ;;
33593 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
33594 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
33595 X"$_am_arg" : 'X\(//\)[^/]' \| \
33596 X"$_am_arg" : 'X\(//\)$' \| \
33597 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
33598 $as_echo X"$_am_arg" |
33599 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
33603 /^X\(\/\/\)[^/].*/{
33615 s/.*/./; q'`/stamp-h
$_am_stamp_count
33618 :C
) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
33619 $as_echo "$as_me: executing $ac_file commands" >&6;}
33624 case $ac_file$ac_mode in
33626 (mv zfs_config.h zfs_config.h.tmp
&&
33627 awk -f ${ac_srcdir}/config
/config.
awk zfs_config.h.tmp
>zfs_config.h
&&
33628 rm zfs_config.h.tmp
) ||
exit 1 ;;
33629 "depfiles":C
) test x
"$AMDEP_TRUE" != x
"" ||
{
33630 # Autoconf 2.62 quotes --file arguments for eval, but not when files
33631 # are listed without --file. Let's play safe and only enable the eval
33632 # if we detect the quoting.
33633 case $CONFIG_FILES in
33634 *\'*) eval set x
"$CONFIG_FILES" ;;
33635 *) set x
$CONFIG_FILES ;;
33640 # Strip MF so we end up with the name of the file.
33641 mf
=`echo "$mf" | sed -e 's/:.*$//'`
33642 # Check whether this is an Automake generated Makefile or not.
33643 # We used to match only the files named `Makefile.in', but
33644 # some people rename them; so instead we look at the file content.
33645 # Grep'ing the first line is not enough: some people post-process
33646 # each Makefile.in and add a new line on top of each file to say so.
33647 # Grep'ing the whole file is not good either: AIX grep has a line
33648 # limit of 2048, but all sed's we know have understand at least 4000.
33649 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" |
grep X
>/dev
/null
2>&1; then
33650 dirpart
=`$as_dirname -- "$mf" ||
33651 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
33652 X"$mf" : 'X\(//\)[^/]' \| \
33653 X"$mf" : 'X\(//\)$' \| \
33654 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
33656 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
33660 /^X\(\/\/\)[^/].*/{
33676 # Extract the definition of DEPDIR, am__include, and am__quote
33677 # from the Makefile without running `make'.
33678 DEPDIR
=`sed -n 's/^DEPDIR = //p' < "$mf"`
33679 test -z "$DEPDIR" && continue
33680 am__include
=`sed -n 's/^am__include = //p' < "$mf"`
33681 test -z "am__include" && continue
33682 am__quote
=`sed -n 's/^am__quote = //p' < "$mf"`
33683 # When using ansi2knr, U may be empty or an underscore; expand it
33684 U
=`sed -n 's/^U = //p' < "$mf"`
33685 # Find all dependency output files, they are included files with
33686 # $(DEPDIR) in their names. We invoke sed twice because it is the
33687 # simplest approach to changing $(DEPDIR) to its actual value in the
33689 for file in `sed -n "
33690 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
33691 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
33692 # Make sure the directory exists.
33693 test -f "$dirpart/$file" && continue
33694 fdir
=`$as_dirname -- "$file" ||
33695 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
33696 X"$file" : 'X\(//\)[^/]' \| \
33697 X"$file" : 'X\(//\)$' \| \
33698 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
33699 $as_echo X"$file" |
33700 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
33704 /^X\(\/\/\)[^/].*/{
33717 as_dir
=$dirpart/$fdir; as_fn_mkdir_p
33718 # echo "creating $dirpart/$file"
33719 echo '# dummy' > "$dirpart/$file"
33726 # See if we are running on zsh, and set the options which allow our
33727 # commands through without removal of \ escapes.
33728 if test -n "${ZSH_VERSION+set}" ; then
33729 setopt NO_GLOB_SUBST
33732 cfgfile
="${ofile}T"
33733 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
33736 cat <<_LT_EOF >> "$cfgfile"
33739 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
33740 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
33741 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
33742 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
33744 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
33745 # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
33747 # Written by Gordon Matzigkeit, 1996
33749 # This file is part of GNU Libtool.
33751 # GNU Libtool is free software; you can redistribute it and/or
33752 # modify it under the terms of the GNU General Public License as
33753 # published by the Free Software Foundation; either version 2 of
33754 # the License, or (at your option) any later version.
33756 # As a special exception to the GNU General Public License,
33757 # if you distribute this file as part of a program or library that
33758 # is built using GNU Libtool, you may include this file under the
33759 # same distribution terms that you use for the rest of that program.
33761 # GNU Libtool is distributed in the hope that it will be useful,
33762 # but WITHOUT ANY WARRANTY; without even the implied warranty of
33763 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
33764 # GNU General Public License for more details.
33766 # You should have received a copy of the GNU General Public License
33767 # along with GNU Libtool; see the file COPYING. If not, a copy
33768 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
33769 # obtained by writing to the Free Software Foundation, Inc.,
33770 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
33773 # The names of the tagged configurations supported by this script.
33776 # ### BEGIN LIBTOOL CONFIG
33778 # Which release of libtool.m4 was used?
33779 macro_version=$macro_version
33780 macro_revision=$macro_revision
33782 # Whether or not to build shared libraries.
33783 build_libtool_libs=$enable_shared
33785 # Whether or not to build static libraries.
33786 build_old_libs=$enable_static
33788 # What type of objects to build.
33791 # Whether or not to optimize for fast installation.
33792 fast_install=$enable_fast_install
33794 # Shell to use when invoking shell scripts.
33797 # An echo program that protects backslashes.
33800 # The PATH separator for the build system.
33801 PATH_SEPARATOR=$lt_PATH_SEPARATOR
33804 host_alias=$host_alias
33808 # The build system.
33809 build_alias=$build_alias
33813 # A sed program that does not truncate output.
33816 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
33817 Xsed="\$SED -e 1s/^X//"
33819 # A grep program that handles long lines.
33825 # A literal string matcher.
33828 # A BSD- or MS-compatible name lister.
33831 # Whether we need soft or hard links.
33834 # What is the maximum length of a command?
33835 max_cmd_len=$max_cmd_len
33837 # Object file suffix (normally "o").
33840 # Executable file suffix (normally "").
33843 # whether the shell understands "unset".
33846 # turn spaces into newlines.
33849 # turn newlines into spaces.
33852 # convert \$build file names to \$host format.
33853 to_host_file_cmd=$lt_cv_to_host_file_cmd
33855 # convert \$build files to toolchain format.
33856 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
33858 # An object symbol dumper.
33859 OBJDUMP=$lt_OBJDUMP
33861 # Method to check whether dependent libraries are shared objects.
33862 deplibs_check_method=$lt_deplibs_check_method
33864 # Command to use when deplibs_check_method = "file_magic".
33865 file_magic_cmd=$lt_file_magic_cmd
33867 # How to find potential files when deplibs_check_method = "file_magic".
33868 file_magic_glob=$lt_file_magic_glob
33870 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
33871 want_nocaseglob=$lt_want_nocaseglob
33873 # DLL creation program.
33874 DLLTOOL=$lt_DLLTOOL
33876 # Command to associate shared and link libraries.
33877 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
33882 # Flags to create an archive.
33883 AR_FLAGS=$lt_AR_FLAGS
33885 # How to feed a file listing to the archiver.
33886 archiver_list_spec=$lt_archiver_list_spec
33888 # A symbol stripping program.
33891 # Commands used to install an old-style archive.
33893 old_postinstall_cmds=$lt_old_postinstall_cmds
33894 old_postuninstall_cmds=$lt_old_postuninstall_cmds
33896 # Whether to use a lock for old archive extraction.
33897 lock_old_archive_extraction=$lock_old_archive_extraction
33902 # LTCC compiler flags.
33903 LTCFLAGS=$lt_CFLAGS
33905 # Take the output of nm and produce a listing of raw symbols and C names.
33906 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
33908 # Transform the output of nm in a proper C declaration.
33909 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
33911 # Transform the output of nm in a C name address pair.
33912 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
33914 # Transform the output of nm in a C name address pair when lib prefix is needed.
33915 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
33917 # Specify filename containing input files for \$NM.
33918 nm_file_list_spec=$lt_nm_file_list_spec
33920 # The root where to search for dependent libraries,and in which our libraries should be installed.
33921 lt_sysroot=$lt_sysroot
33923 # The name of the directory that contains temporary libtool files.
33926 # Used to examine libraries when file_magic_cmd begins with "file".
33927 MAGIC_CMD=$MAGIC_CMD
33929 # Must we lock files when doing compilation?
33930 need_locks=$lt_need_locks
33933 MANIFEST_TOOL=$lt_MANIFEST_TOOL
33935 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
33936 DSYMUTIL=$lt_DSYMUTIL
33938 # Tool to change global to local symbols on Mac OS X.
33941 # Tool to manipulate fat objects and archives on Mac OS X.
33944 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
33947 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
33948 OTOOL64=$lt_OTOOL64
33950 # Old archive suffix (normally "a").
33953 # Shared library suffix (normally ".so").
33954 shrext_cmds=$lt_shrext_cmds
33956 # The commands to extract the exported symbol list from a shared archive.
33957 extract_expsyms_cmds=$lt_extract_expsyms_cmds
33959 # Variables whose values should be saved in libtool wrapper scripts and
33960 # restored at link time.
33961 variables_saved_for_relink=$lt_variables_saved_for_relink
33963 # Do we need the "lib" prefix for modules?
33964 need_lib_prefix=$need_lib_prefix
33966 # Do we need a version for libraries?
33967 need_version=$need_version
33969 # Library versioning type.
33970 version_type=$version_type
33972 # Shared library runtime path variable.
33973 runpath_var=$runpath_var
33975 # Shared library path variable.
33976 shlibpath_var=$shlibpath_var
33978 # Is shlibpath searched before the hard-coded library search path?
33979 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
33981 # Format of library name prefix.
33982 libname_spec=$lt_libname_spec
33984 # List of archive names. First name is the real one, the rest are links.
33985 # The last name is the one that the linker finds with -lNAME
33986 library_names_spec=$lt_library_names_spec
33988 # The coded name of the library, if different from the real name.
33989 soname_spec=$lt_soname_spec
33991 # Permission mode override for installation of shared libraries.
33992 install_override_mode=$lt_install_override_mode
33994 # Command to use after installation of a shared archive.
33995 postinstall_cmds=$lt_postinstall_cmds
33997 # Command to use after uninstallation of a shared archive.
33998 postuninstall_cmds=$lt_postuninstall_cmds
34000 # Commands used to finish a libtool library installation in a directory.
34001 finish_cmds=$lt_finish_cmds
34003 # As "finish_cmds", except a single script fragment to be evaled but
34005 finish_eval=$lt_finish_eval
34007 # Whether we should hardcode library paths into libraries.
34008 hardcode_into_libs=$hardcode_into_libs
34010 # Compile-time system search path for libraries.
34011 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
34013 # Run-time system search path for libraries.
34014 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
34016 # Whether dlopen is supported.
34017 dlopen_support=$enable_dlopen
34019 # Whether dlopen of programs is supported.
34020 dlopen_self=$enable_dlopen_self
34022 # Whether dlopen of statically linked programs is supported.
34023 dlopen_self_static=$enable_dlopen_self_static
34025 # Commands to strip libraries.
34026 old_striplib=$lt_old_striplib
34027 striplib=$lt_striplib
34030 # The linker used to build libraries.
34033 # How to create reloadable object files.
34034 reload_flag=$lt_reload_flag
34035 reload_cmds=$lt_reload_cmds
34037 # Commands used to build an old-style archive.
34038 old_archive_cmds=$lt_old_archive_cmds
34040 # A language specific compiler.
34043 # Is the compiler the GNU compiler?
34046 # Compiler flag to turn off builtin functions.
34047 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
34049 # Additional compiler flags for building library objects.
34050 pic_flag=$lt_lt_prog_compiler_pic
34052 # How to pass a linker flag through the compiler.
34053 wl=$lt_lt_prog_compiler_wl
34055 # Compiler flag to prevent dynamic linking.
34056 link_static_flag=$lt_lt_prog_compiler_static
34058 # Does compiler simultaneously support -c and -o options?
34059 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
34061 # Whether or not to add -lc for building shared libraries.
34062 build_libtool_need_lc=$archive_cmds_need_lc
34064 # Whether or not to disallow shared libs when runtime libs are static.
34065 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
34067 # Compiler flag to allow reflexive dlopens.
34068 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
34070 # Compiler flag to generate shared objects directly from archives.
34071 whole_archive_flag_spec=$lt_whole_archive_flag_spec
34073 # Whether the compiler copes with passing no objects directly.
34074 compiler_needs_object=$lt_compiler_needs_object
34076 # Create an old-style archive from a shared archive.
34077 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
34079 # Create a temporary old-style archive to link instead of a shared archive.
34080 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
34082 # Commands used to build a shared archive.
34083 archive_cmds=$lt_archive_cmds
34084 archive_expsym_cmds=$lt_archive_expsym_cmds
34086 # Commands used to build a loadable module if different from building
34087 # a shared archive.
34088 module_cmds=$lt_module_cmds
34089 module_expsym_cmds=$lt_module_expsym_cmds
34091 # Whether we are building with GNU ld or not.
34092 with_gnu_ld=$lt_with_gnu_ld
34094 # Flag that allows shared libraries with undefined symbols to be built.
34095 allow_undefined_flag=$lt_allow_undefined_flag
34097 # Flag that enforces no undefined symbols.
34098 no_undefined_flag=$lt_no_undefined_flag
34100 # Flag to hardcode \$libdir into a binary during linking.
34101 # This must work even if \$libdir does not exist
34102 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
34104 # Whether we need a single "-rpath" flag with a separated argument.
34105 hardcode_libdir_separator=$lt_hardcode_libdir_separator
34107 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
34108 # DIR into the resulting binary.
34109 hardcode_direct=$hardcode_direct
34111 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
34112 # DIR into the resulting binary and the resulting library dependency is
34113 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
34114 # library is relocated.
34115 hardcode_direct_absolute=$hardcode_direct_absolute
34117 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
34118 # into the resulting binary.
34119 hardcode_minus_L=$hardcode_minus_L
34121 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
34122 # into the resulting binary.
34123 hardcode_shlibpath_var=$hardcode_shlibpath_var
34125 # Set to "yes" if building a shared library automatically hardcodes DIR
34126 # into the library and all subsequent libraries and executables linked
34128 hardcode_automatic=$hardcode_automatic
34130 # Set to yes if linker adds runtime paths of dependent libraries
34131 # to runtime path list.
34132 inherit_rpath=$inherit_rpath
34134 # Whether libtool must link a program against all its dependency libraries.
34135 link_all_deplibs=$link_all_deplibs
34137 # Set to "yes" if exported symbols are required.
34138 always_export_symbols=$always_export_symbols
34140 # The commands to list exported symbols.
34141 export_symbols_cmds=$lt_export_symbols_cmds
34143 # Symbols that should not be listed in the preloaded symbols.
34144 exclude_expsyms=$lt_exclude_expsyms
34146 # Symbols that must always be exported.
34147 include_expsyms=$lt_include_expsyms
34149 # Commands necessary for linking programs (against libraries) with templates.
34150 prelink_cmds=$lt_prelink_cmds
34152 # Commands necessary for finishing linking programs.
34153 postlink_cmds=$lt_postlink_cmds
34155 # Specify filename containing input files.
34156 file_list_spec=$lt_file_list_spec
34158 # How to hardcode a shared library path into an executable.
34159 hardcode_action=$hardcode_action
34161 # ### END LIBTOOL CONFIG
34167 cat <<\_LT_EOF
>> "$cfgfile"
34168 # AIX sometimes has problems with the GCC collect2 program. For some
34169 # reason, if we set the COLLECT_NAMES environment variable, the problems
34170 # vanish in a puff of smoke.
34171 if test "X${COLLECT_NAMES+set}" != Xset
; then
34173 export COLLECT_NAMES
34180 ltmain
="$ac_aux_dir/ltmain.sh"
34183 # We use sed instead of cat because bash on DJGPP gets confused if
34184 # if finds mixed CR/LF and LF-only lines. Since sed operates in
34185 # text mode, it properly converts lines to CR/LF. This bash problem
34186 # is reportedly fixed, but why not run on old versions too?
34187 sed '$q' "$ltmain" >> "$cfgfile" \
34188 ||
(rm -f "$cfgfile"; exit 1)
34190 if test x
"$xsi_shell" = xyes
; then
34191 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
34195 \ */*) func_dirname_result="${1%/*}${2}" ;;\
34196 \ * ) func_dirname_result="${3}" ;;\
34198 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
34199 && mv -f "$cfgfile.tmp" "$cfgfile" \
34200 ||
(rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
34201 test 0 -eq $? || _lt_function_replace_fail
=:
34204 sed -e '/^func_basename ()$/,/^} # func_basename /c\
34207 \ func_basename_result="${1##*/}"\
34208 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
34209 && mv -f "$cfgfile.tmp" "$cfgfile" \
34210 ||
(rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
34211 test 0 -eq $? || _lt_function_replace_fail
=:
34214 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
34215 func_dirname_and_basename ()\
34218 \ */*) func_dirname_result="${1%/*}${2}" ;;\
34219 \ * ) func_dirname_result="${3}" ;;\
34221 \ func_basename_result="${1##*/}"\
34222 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
34223 && mv -f "$cfgfile.tmp" "$cfgfile" \
34224 ||
(rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
34225 test 0 -eq $? || _lt_function_replace_fail
=:
34228 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
34231 \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
34232 \ # positional parameters, so assign one to ordinary parameter first.\
34233 \ func_stripname_result=${3}\
34234 \ func_stripname_result=${func_stripname_result#"${1}"}\
34235 \ func_stripname_result=${func_stripname_result%"${2}"}\
34236 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
34237 && mv -f "$cfgfile.tmp" "$cfgfile" \
34238 ||
(rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
34239 test 0 -eq $? || _lt_function_replace_fail
=:
34242 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
34243 func_split_long_opt ()\
34245 \ func_split_long_opt_name=${1%%=*}\
34246 \ func_split_long_opt_arg=${1#*=}\
34247 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
34248 && mv -f "$cfgfile.tmp" "$cfgfile" \
34249 ||
(rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
34250 test 0 -eq $? || _lt_function_replace_fail
=:
34253 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
34254 func_split_short_opt ()\
34256 \ func_split_short_opt_arg=${1#??}\
34257 \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
34258 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
34259 && mv -f "$cfgfile.tmp" "$cfgfile" \
34260 ||
(rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
34261 test 0 -eq $? || _lt_function_replace_fail
=:
34264 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
34268 \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
34269 \ *) func_lo2o_result=${1} ;;\
34271 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
34272 && mv -f "$cfgfile.tmp" "$cfgfile" \
34273 ||
(rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
34274 test 0 -eq $? || _lt_function_replace_fail
=:
34277 sed -e '/^func_xform ()$/,/^} # func_xform /c\
34280 func_xform_result=${1%.*}.lo\
34281 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
34282 && mv -f "$cfgfile.tmp" "$cfgfile" \
34283 ||
(rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
34284 test 0 -eq $? || _lt_function_replace_fail
=:
34287 sed -e '/^func_arith ()$/,/^} # func_arith /c\
34290 func_arith_result=$(( $* ))\
34291 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
34292 && mv -f "$cfgfile.tmp" "$cfgfile" \
34293 ||
(rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
34294 test 0 -eq $? || _lt_function_replace_fail
=:
34297 sed -e '/^func_len ()$/,/^} # func_len /c\
34300 func_len_result=${#1}\
34301 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
34302 && mv -f "$cfgfile.tmp" "$cfgfile" \
34303 ||
(rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
34304 test 0 -eq $? || _lt_function_replace_fail
=:
34308 if test x
"$lt_shell_append" = xyes
; then
34309 sed -e '/^func_append ()$/,/^} # func_append /c\
34312 eval "${1}+=\\${2}"\
34313 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
34314 && mv -f "$cfgfile.tmp" "$cfgfile" \
34315 ||
(rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
34316 test 0 -eq $? || _lt_function_replace_fail
=:
34319 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
34320 func_append_quoted ()\
34322 \ func_quote_for_eval "${2}"\
34323 \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
34324 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
34325 && mv -f "$cfgfile.tmp" "$cfgfile" \
34326 ||
(rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
34327 test 0 -eq $? || _lt_function_replace_fail
=:
34330 # Save a `func_append' function call where possible by direct use of '+='
34331 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
34332 && mv -f "$cfgfile.tmp" "$cfgfile" \
34333 ||
(rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
34334 test 0 -eq $? || _lt_function_replace_fail
=:
34336 # Save a `func_append' function call even when '+=' is not available
34337 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
34338 && mv -f "$cfgfile.tmp" "$cfgfile" \
34339 ||
(rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
34340 test 0 -eq $? || _lt_function_replace_fail
=:
34343 if test x
"$_lt_function_replace_fail" = x
":"; then
34344 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
34345 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
34349 mv -f "$cfgfile" "$ofile" ||
34350 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
34361 ac_clean_files
=$ac_clean_files_save
34363 test $ac_write_fail = 0 ||
34364 as_fn_error $?
"write failure creating $CONFIG_STATUS" "$LINENO" 5
34367 # configure is writing to config.log, and then calls config.status.
34368 # config.status does its own redirection, appending to config.log.
34369 # Unfortunately, on DOS this fails, as config.log is still kept open
34370 # by configure, so config.status won't be able to write to it; its
34371 # output is simply discarded. So we exec the FD to /dev/null,
34372 # effectively closing config.log, so it can be properly (re)opened and
34373 # appended to by config.status. When coming back to configure, we
34374 # need to make the FD available again.
34375 if test "$no_create" != yes; then
34377 ac_config_status_args
=
34378 test "$silent" = yes &&
34379 ac_config_status_args
="$ac_config_status_args --quiet"
34381 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
34383 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
34384 # would make configure fail if this is the last instruction.
34385 $ac_cs_success || as_fn_exit
1
34387 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
34388 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
34389 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}