]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/blob - zfs/configure
x86/pkeys/selftests: Avoid printf-in-signal deadlocks
[mirror_ubuntu-bionic-kernel.git] / zfs / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for zfs 0.7.5.
4 #
5 #
6 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
7 #
8 #
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
14
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18 emulate sh
19 NULLCMD=:
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
23 setopt NO_GLOB_SUBST
24 else
25 case `(set -o) 2>/dev/null` in #(
26 *posix*) :
27 set -o posix ;; #(
28 *) :
29 ;;
30 esac
31 fi
32
33
34 as_nl='
35 '
36 export as_nl
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45 as_echo='print -r --'
46 as_echo_n='print -rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo='printf %s\n'
49 as_echo_n='printf %s'
50 else
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
54 else
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56 as_echo_n_body='eval
57 arg=$1;
58 case $arg in #(
59 *"$as_nl"*)
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62 esac;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64 '
65 export as_echo_n_body
66 as_echo_n='sh -c $as_echo_n_body as_echo'
67 fi
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
70 fi
71
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
74 PATH_SEPARATOR=:
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77 PATH_SEPARATOR=';'
78 }
79 fi
80
81
82 # IFS
83 # We need space, tab and new line, in precisely that order. Quoting is
84 # there to prevent editors from complaining about space-tab.
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 # splitting by setting IFS to empty value.)
87 IFS=" "" $as_nl"
88
89 # Find who we are. Look in the path if we contain no directory separator.
90 as_myself=
91 case $0 in #((
92 *[\\/]* ) as_myself=$0 ;;
93 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
94 for as_dir in $PATH
95 do
96 IFS=$as_save_IFS
97 test -z "$as_dir" && as_dir=.
98 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
99 done
100 IFS=$as_save_IFS
101
102 ;;
103 esac
104 # We did not find ourselves, most probably we were run as `sh COMMAND'
105 # in which case we are not to be found in the path.
106 if test "x$as_myself" = x; then
107 as_myself=$0
108 fi
109 if test ! -f "$as_myself"; then
110 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
111 exit 1
112 fi
113
114 # Unset variables that we do not need and which cause bugs (e.g. in
115 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
116 # suppresses any "Segmentation fault" message there. '((' could
117 # trigger a bug in pdksh 5.2.14.
118 for as_var in BASH_ENV ENV MAIL MAILPATH
119 do eval test x\${$as_var+set} = xset \
120 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
121 done
122 PS1='$ '
123 PS2='> '
124 PS4='+ '
125
126 # NLS nuisances.
127 LC_ALL=C
128 export LC_ALL
129 LANGUAGE=C
130 export LANGUAGE
131
132 # CDPATH.
133 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
134
135 # Use a proper internal environment variable to ensure we don't fall
136 # into an infinite loop, continuously re-executing ourselves.
137 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
138 _as_can_reexec=no; export _as_can_reexec;
139 # We cannot yet assume a decent shell, so we have to provide a
140 # neutralization value for shells without unset; and this also
141 # works around shells that cannot unset nonexistent variables.
142 # Preserve -v and -x to the replacement shell.
143 BASH_ENV=/dev/null
144 ENV=/dev/null
145 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
146 case $- in # ((((
147 *v*x* | *x*v* ) as_opts=-vx ;;
148 *v* ) as_opts=-v ;;
149 *x* ) as_opts=-x ;;
150 * ) as_opts= ;;
151 esac
152 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
153 # Admittedly, this is quite paranoid, since all the known shells bail
154 # out after a failed `exec'.
155 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
156 as_fn_exit 255
157 fi
158 # We don't want this to propagate to other subprocesses.
159 { _as_can_reexec=; unset _as_can_reexec;}
160 if test "x$CONFIG_SHELL" = x; then
161 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
162 emulate sh
163 NULLCMD=:
164 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
165 # is contrary to our usage. Disable this feature.
166 alias -g '\${1+\"\$@\"}'='\"\$@\"'
167 setopt NO_GLOB_SUBST
168 else
169 case \`(set -o) 2>/dev/null\` in #(
170 *posix*) :
171 set -o posix ;; #(
172 *) :
173 ;;
174 esac
175 fi
176 "
177 as_required="as_fn_return () { (exit \$1); }
178 as_fn_success () { as_fn_return 0; }
179 as_fn_failure () { as_fn_return 1; }
180 as_fn_ret_success () { return 0; }
181 as_fn_ret_failure () { return 1; }
182
183 exitcode=0
184 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
189
190 else
191 exitcode=1; echo positional parameters were not saved.
192 fi
193 test x\$exitcode = x0 || exit 1
194 test -x / || exit 1"
195 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
196 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
197 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
198 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
199
200 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
201 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
202 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
203 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
204 PATH=/empty FPATH=/empty; export PATH FPATH
205 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
206 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
207 test \$(( 1 + 1 )) = 2 || exit 1"
208 if (eval "$as_required") 2>/dev/null; then :
209 as_have_required=yes
210 else
211 as_have_required=no
212 fi
213 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
214
215 else
216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
217 as_found=false
218 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
219 do
220 IFS=$as_save_IFS
221 test -z "$as_dir" && as_dir=.
222 as_found=:
223 case $as_dir in #(
224 /*)
225 for as_base in sh bash ksh sh5; do
226 # Try only shells that exist, to save several forks.
227 as_shell=$as_dir/$as_base
228 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
229 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
230 CONFIG_SHELL=$as_shell as_have_required=yes
231 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
232 break 2
233 fi
234 fi
235 done;;
236 esac
237 as_found=false
238 done
239 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
240 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
241 CONFIG_SHELL=$SHELL as_have_required=yes
242 fi; }
243 IFS=$as_save_IFS
244
245
246 if test "x$CONFIG_SHELL" != x; then :
247 export CONFIG_SHELL
248 # We cannot yet assume a decent shell, so we have to provide a
249 # neutralization value for shells without unset; and this also
250 # works around shells that cannot unset nonexistent variables.
251 # Preserve -v and -x to the replacement shell.
252 BASH_ENV=/dev/null
253 ENV=/dev/null
254 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
255 case $- in # ((((
256 *v*x* | *x*v* ) as_opts=-vx ;;
257 *v* ) as_opts=-v ;;
258 *x* ) as_opts=-x ;;
259 * ) as_opts= ;;
260 esac
261 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
262 # Admittedly, this is quite paranoid, since all the known shells bail
263 # out after a failed `exec'.
264 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
265 exit 255
266 fi
267
268 if test x$as_have_required = xno; then :
269 $as_echo "$0: This script requires a shell more modern than all"
270 $as_echo "$0: the shells that I found on your system."
271 if test x${ZSH_VERSION+set} = xset ; then
272 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
273 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
274 else
275 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
276 $0: including any error possibly output before this
277 $0: message. Then install a modern shell, or manually run
278 $0: the script under such a shell if you do have one."
279 fi
280 exit 1
281 fi
282 fi
283 fi
284 SHELL=${CONFIG_SHELL-/bin/sh}
285 export SHELL
286 # Unset more variables known to interfere with behavior of common tools.
287 CLICOLOR_FORCE= GREP_OPTIONS=
288 unset CLICOLOR_FORCE GREP_OPTIONS
289
290 ## --------------------- ##
291 ## M4sh Shell Functions. ##
292 ## --------------------- ##
293 # as_fn_unset VAR
294 # ---------------
295 # Portably unset VAR.
296 as_fn_unset ()
297 {
298 { eval $1=; unset $1;}
299 }
300 as_unset=as_fn_unset
301
302 # as_fn_set_status STATUS
303 # -----------------------
304 # Set $? to STATUS, without forking.
305 as_fn_set_status ()
306 {
307 return $1
308 } # as_fn_set_status
309
310 # as_fn_exit STATUS
311 # -----------------
312 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
313 as_fn_exit ()
314 {
315 set +e
316 as_fn_set_status $1
317 exit $1
318 } # as_fn_exit
319
320 # as_fn_mkdir_p
321 # -------------
322 # Create "$as_dir" as a directory, including parents if necessary.
323 as_fn_mkdir_p ()
324 {
325
326 case $as_dir in #(
327 -*) as_dir=./$as_dir;;
328 esac
329 test -d "$as_dir" || eval $as_mkdir_p || {
330 as_dirs=
331 while :; do
332 case $as_dir in #(
333 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
334 *) as_qdir=$as_dir;;
335 esac
336 as_dirs="'$as_qdir' $as_dirs"
337 as_dir=`$as_dirname -- "$as_dir" ||
338 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
339 X"$as_dir" : 'X\(//\)[^/]' \| \
340 X"$as_dir" : 'X\(//\)$' \| \
341 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
342 $as_echo X"$as_dir" |
343 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
344 s//\1/
345 q
346 }
347 /^X\(\/\/\)[^/].*/{
348 s//\1/
349 q
350 }
351 /^X\(\/\/\)$/{
352 s//\1/
353 q
354 }
355 /^X\(\/\).*/{
356 s//\1/
357 q
358 }
359 s/.*/./; q'`
360 test -d "$as_dir" && break
361 done
362 test -z "$as_dirs" || eval "mkdir $as_dirs"
363 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
364
365
366 } # as_fn_mkdir_p
367
368 # as_fn_executable_p FILE
369 # -----------------------
370 # Test if FILE is an executable regular file.
371 as_fn_executable_p ()
372 {
373 test -f "$1" && test -x "$1"
374 } # as_fn_executable_p
375 # as_fn_append VAR VALUE
376 # ----------------------
377 # Append the text in VALUE to the end of the definition contained in VAR. Take
378 # advantage of any shell optimizations that allow amortized linear growth over
379 # repeated appends, instead of the typical quadratic growth present in naive
380 # implementations.
381 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
382 eval 'as_fn_append ()
383 {
384 eval $1+=\$2
385 }'
386 else
387 as_fn_append ()
388 {
389 eval $1=\$$1\$2
390 }
391 fi # as_fn_append
392
393 # as_fn_arith ARG...
394 # ------------------
395 # Perform arithmetic evaluation on the ARGs, and store the result in the
396 # global $as_val. Take advantage of shells that can avoid forks. The arguments
397 # must be portable across $(()) and expr.
398 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
399 eval 'as_fn_arith ()
400 {
401 as_val=$(( $* ))
402 }'
403 else
404 as_fn_arith ()
405 {
406 as_val=`expr "$@" || test $? -eq 1`
407 }
408 fi # as_fn_arith
409
410
411 # as_fn_error STATUS ERROR [LINENO LOG_FD]
412 # ----------------------------------------
413 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
414 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
415 # script with STATUS, using 1 if that was 0.
416 as_fn_error ()
417 {
418 as_status=$1; test $as_status -eq 0 && as_status=1
419 if test "$4"; then
420 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
421 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
422 fi
423 $as_echo "$as_me: error: $2" >&2
424 as_fn_exit $as_status
425 } # as_fn_error
426
427 if expr a : '\(a\)' >/dev/null 2>&1 &&
428 test "X`expr 00001 : '.*\(...\)'`" = X001; then
429 as_expr=expr
430 else
431 as_expr=false
432 fi
433
434 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
435 as_basename=basename
436 else
437 as_basename=false
438 fi
439
440 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
441 as_dirname=dirname
442 else
443 as_dirname=false
444 fi
445
446 as_me=`$as_basename -- "$0" ||
447 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
448 X"$0" : 'X\(//\)$' \| \
449 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
450 $as_echo X/"$0" |
451 sed '/^.*\/\([^/][^/]*\)\/*$/{
452 s//\1/
453 q
454 }
455 /^X\/\(\/\/\)$/{
456 s//\1/
457 q
458 }
459 /^X\/\(\/\).*/{
460 s//\1/
461 q
462 }
463 s/.*/./; q'`
464
465 # Avoid depending upon Character Ranges.
466 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
467 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
468 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
469 as_cr_digits='0123456789'
470 as_cr_alnum=$as_cr_Letters$as_cr_digits
471
472
473 as_lineno_1=$LINENO as_lineno_1a=$LINENO
474 as_lineno_2=$LINENO as_lineno_2a=$LINENO
475 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
476 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
477 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
478 sed -n '
479 p
480 /[$]LINENO/=
481 ' <$as_myself |
482 sed '
483 s/[$]LINENO.*/&-/
484 t lineno
485 b
486 :lineno
487 N
488 :loop
489 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
490 t loop
491 s/-\n.*//
492 ' >$as_me.lineno &&
493 chmod +x "$as_me.lineno" ||
494 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
495
496 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
497 # already done that, so ensure we don't try to do so again and fall
498 # in an infinite loop. This has already happened in practice.
499 _as_can_reexec=no; export _as_can_reexec
500 # Don't try to exec as it changes $[0], causing all sort of problems
501 # (the dirname of $[0] is not the place where we might find the
502 # original and so on. Autoconf is especially sensitive to this).
503 . "./$as_me.lineno"
504 # Exit status is that of the last command.
505 exit
506 }
507
508 ECHO_C= ECHO_N= ECHO_T=
509 case `echo -n x` in #(((((
510 -n*)
511 case `echo 'xy\c'` in
512 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
513 xy) ECHO_C='\c';;
514 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
515 ECHO_T=' ';;
516 esac;;
517 *)
518 ECHO_N='-n';;
519 esac
520
521 rm -f conf$$ conf$$.exe conf$$.file
522 if test -d conf$$.dir; then
523 rm -f conf$$.dir/conf$$.file
524 else
525 rm -f conf$$.dir
526 mkdir conf$$.dir 2>/dev/null
527 fi
528 if (echo >conf$$.file) 2>/dev/null; then
529 if ln -s conf$$.file conf$$ 2>/dev/null; then
530 as_ln_s='ln -s'
531 # ... but there are two gotchas:
532 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
533 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
534 # In both cases, we have to default to `cp -pR'.
535 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
536 as_ln_s='cp -pR'
537 elif ln conf$$.file conf$$ 2>/dev/null; then
538 as_ln_s=ln
539 else
540 as_ln_s='cp -pR'
541 fi
542 else
543 as_ln_s='cp -pR'
544 fi
545 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
546 rmdir conf$$.dir 2>/dev/null
547
548 if mkdir -p . 2>/dev/null; then
549 as_mkdir_p='mkdir -p "$as_dir"'
550 else
551 test -d ./-p && rmdir ./-p
552 as_mkdir_p=false
553 fi
554
555 as_test_x='test -x'
556 as_executable_p=as_fn_executable_p
557
558 # Sed expression to map a string onto a valid CPP name.
559 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
560
561 # Sed expression to map a string onto a valid variable name.
562 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
563
564 SHELL=${CONFIG_SHELL-/bin/sh}
565
566
567 test -n "$DJDIR" || exec 7<&0 </dev/null
568 exec 6>&1
569
570 # Name of the host.
571 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
572 # so uname gets run too.
573 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
574
575 #
576 # Initializations.
577 #
578 ac_default_prefix=/usr/local
579 ac_clean_files=
580 ac_config_libobj_dir=.
581 LIBOBJS=
582 cross_compiling=no
583 subdirs=
584 MFLAGS=
585 MAKEFLAGS=
586
587 # Identity of this package.
588 PACKAGE_NAME='zfs'
589 PACKAGE_TARNAME='zfs'
590 PACKAGE_VERSION='0.7.5'
591 PACKAGE_STRING='zfs 0.7.5'
592 PACKAGE_BUGREPORT=''
593 PACKAGE_URL=''
594
595 # Factoring default headers for most tests.
596 ac_includes_default="\
597 #include <stdio.h>
598 #ifdef HAVE_SYS_TYPES_H
599 # include <sys/types.h>
600 #endif
601 #ifdef HAVE_SYS_STAT_H
602 # include <sys/stat.h>
603 #endif
604 #ifdef STDC_HEADERS
605 # include <stdlib.h>
606 # include <stddef.h>
607 #else
608 # ifdef HAVE_STDLIB_H
609 # include <stdlib.h>
610 # endif
611 #endif
612 #ifdef HAVE_STRING_H
613 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
614 # include <memory.h>
615 # endif
616 # include <string.h>
617 #endif
618 #ifdef HAVE_STRINGS_H
619 # include <strings.h>
620 #endif
621 #ifdef HAVE_INTTYPES_H
622 # include <inttypes.h>
623 #endif
624 #ifdef HAVE_STDINT_H
625 # include <stdint.h>
626 #endif
627 #ifdef HAVE_UNISTD_H
628 # include <unistd.h>
629 #endif"
630
631 ac_subst_vars='am__EXEEXT_FALSE
632 am__EXEEXT_TRUE
633 LTLIBOBJS
634 LIBOBJS
635 DEBUG_ZFS
636 DEBUG_STACKFLAGS
637 DEBUG_CFLAGS
638 WANT_MMAP_LIBAIO_FALSE
639 WANT_MMAP_LIBAIO_TRUE
640 WANT_DEVNAME2DEVID_FALSE
641 WANT_DEVNAME2DEVID_TRUE
642 CONFIG_QAT_FALSE
643 CONFIG_QAT_TRUE
644 CONFIG_KERNEL_FALSE
645 CONFIG_KERNEL_TRUE
646 CONFIG_USER_FALSE
647 CONFIG_USER_TRUE
648 RM
649 ZONENAME
650 NO_FORMAT_TRUNCATION
651 FRAME_LARGER_THAN
652 LIBAIO
653 LIBUDEV
654 LIBATTR
655 LIBBLKID
656 LIBTIRPC_CFLAGS
657 LIBTIRPC
658 LIBUUID
659 ZLIB
660 dracutdir
661 ZFS_INIT_SYSV
662 modulesloaddir
663 systemdpresetdir
664 systemdunitdir
665 ZFS_MODULE_LOAD
666 ZFS_INIT_SYSTEMD
667 udevruledir
668 udevdir
669 mounthelperdir
670 KERNELCPPFLAGS
671 KERNELMAKE_PARAMS
672 QAT_SYMBOLS
673 QAT_OBJ
674 QAT_SRC
675 SPL_SYMBOLS
676 SPL_VERSION
677 SPL_OBJ
678 SPL
679 LINUX_SYMBOLS
680 LINUX_VERSION
681 LINUX_OBJ
682 LINUX
683 TARGET_ASM_GENERIC_FALSE
684 TARGET_ASM_GENERIC_TRUE
685 TARGET_ASM_I386_FALSE
686 TARGET_ASM_I386_TRUE
687 TARGET_ASM_X86_64_FALSE
688 TARGET_ASM_X86_64_TRUE
689 TARGET_ASM_DIR
690 NO_BOOL_COMPARE
691 NO_UNUSED_BUT_SET_VARIABLE
692 ZFS_CONFIG
693 ALIEN_VERSION
694 ALIEN
695 HAVE_ALIEN
696 DPKGBUILD_VERSION
697 DPKGBUILD
698 HAVE_DPKGBUILD
699 DPKG_VERSION
700 DPKG
701 HAVE_DPKG
702 SRPM_DEFINE_COMMON
703 SRPM_DEFINE_DKMS
704 SRPM_DEFINE_KMOD
705 SRPM_DEFINE_UTIL
706 RPM_DEFINE_COMMON
707 RPM_DEFINE_DKMS
708 RPM_DEFINE_KMOD
709 RPM_DEFINE_UTIL
710 RPM_SPEC_DIR
711 RPMBUILD_VERSION
712 RPMBUILD
713 HAVE_RPMBUILD
714 RPM_VERSION
715 RPM
716 HAVE_RPM
717 DEFINE_INITRAMFS
718 DEFAULT_INITCONF_DIR
719 DEFAULT_INIT_SCRIPT
720 DEFAULT_INIT_DIR
721 DEFAULT_PACKAGE
722 VENDOR
723 am__fastdepCCAS_FALSE
724 am__fastdepCCAS_TRUE
725 CCASDEPMODE
726 CCASFLAGS
727 CCAS
728 CPP
729 LT_SYS_LIBRARY_PATH
730 OTOOL64
731 OTOOL
732 LIPO
733 NMEDIT
734 DSYMUTIL
735 MANIFEST_TOOL
736 RANLIB
737 ac_ct_AR
738 AR
739 DLLTOOL
740 OBJDUMP
741 LN_S
742 NM
743 ac_ct_DUMPBIN
744 DUMPBIN
745 LD
746 FGREP
747 EGREP
748 GREP
749 SED
750 LIBTOOL
751 am__fastdepCC_FALSE
752 am__fastdepCC_TRUE
753 CCDEPMODE
754 am__nodep
755 AMDEPBACKSLASH
756 AMDEP_FALSE
757 AMDEP_TRUE
758 am__quote
759 am__include
760 DEPDIR
761 OBJEXT
762 EXEEXT
763 ac_ct_CC
764 CPPFLAGS
765 LDFLAGS
766 CFLAGS
767 CC
768 am__untar
769 am__tar
770 AMTAR
771 am__leading_dot
772 SET_MAKE
773 mkdir_p
774 MKDIR_P
775 INSTALL_STRIP_PROGRAM
776 STRIP
777 install_sh
778 MAKEINFO
779 AUTOHEADER
780 AUTOMAKE
781 AUTOCONF
782 ACLOCAL
783 VERSION
784 PACKAGE
785 CYGPATH_W
786 am__isrc
787 INSTALL_DATA
788 INSTALL_SCRIPT
789 INSTALL_PROGRAM
790 AM_BACKSLASH
791 AM_DEFAULT_VERBOSITY
792 AM_DEFAULT_V
793 AM_V
794 MAINT
795 MAINTAINER_MODE_FALSE
796 MAINTAINER_MODE_TRUE
797 target_os
798 target_vendor
799 target_cpu
800 target
801 host_os
802 host_vendor
803 host_cpu
804 host
805 build_os
806 build_vendor
807 build_cpu
808 build
809 ZFS_META_LT_AGE
810 ZFS_META_LT_REVISION
811 ZFS_META_LT_CURRENT
812 ZFS_META_AUTHOR
813 ZFS_META_DATA
814 ZFS_META_ALIAS
815 ZFS_META_LICENSE
816 RELEASE
817 ZFS_META_RELEASE
818 ZFS_META_VERSION
819 ZFS_META_NAME
820 AWK
821 target_alias
822 host_alias
823 build_alias
824 LIBS
825 ECHO_T
826 ECHO_N
827 ECHO_C
828 DEFS
829 mandir
830 localedir
831 libdir
832 psdir
833 pdfdir
834 dvidir
835 htmldir
836 infodir
837 docdir
838 oldincludedir
839 includedir
840 runstatedir
841 localstatedir
842 sharedstatedir
843 sysconfdir
844 datadir
845 datarootdir
846 libexecdir
847 sbindir
848 bindir
849 program_transform_name
850 prefix
851 exec_prefix
852 PACKAGE_URL
853 PACKAGE_BUGREPORT
854 PACKAGE_STRING
855 PACKAGE_VERSION
856 PACKAGE_TARNAME
857 PACKAGE_NAME
858 PATH_SEPARATOR
859 SHELL'
860 ac_subst_files=''
861 ac_user_opts='
862 enable_option_checking
863 enable_maintainer_mode
864 enable_silent_rules
865 enable_dependency_tracking
866 enable_shared
867 enable_static
868 with_pic
869 enable_fast_install
870 with_aix_soname
871 with_gnu_ld
872 with_sysroot
873 enable_libtool_lock
874 with_spec
875 with_config
876 enable_linux_builtin
877 with_linux
878 with_linux_obj
879 with_spl
880 with_spl_obj
881 with_spl_timeout
882 with_qat
883 with_qat_obj
884 with_mounthelperdir
885 with_udevdir
886 with_udevruledir
887 enable_systemd
888 with_systemdunitdir
889 with_systemdpresetdir
890 with_systemdmodulesloaddir
891 enable_sysvinit
892 with_dracutdir
893 with_tirpc
894 enable_debug
895 '
896 ac_precious_vars='build_alias
897 host_alias
898 target_alias
899 CC
900 CFLAGS
901 LDFLAGS
902 LIBS
903 CPPFLAGS
904 LT_SYS_LIBRARY_PATH
905 CPP
906 CCAS
907 CCASFLAGS'
908
909
910 # Initialize some variables set by options.
911 ac_init_help=
912 ac_init_version=false
913 ac_unrecognized_opts=
914 ac_unrecognized_sep=
915 # The variables have the same names as the options, with
916 # dashes changed to underlines.
917 cache_file=/dev/null
918 exec_prefix=NONE
919 no_create=
920 no_recursion=
921 prefix=NONE
922 program_prefix=NONE
923 program_suffix=NONE
924 program_transform_name=s,x,x,
925 silent=
926 site=
927 srcdir=
928 verbose=
929 x_includes=NONE
930 x_libraries=NONE
931
932 # Installation directory options.
933 # These are left unexpanded so users can "make install exec_prefix=/foo"
934 # and all the variables that are supposed to be based on exec_prefix
935 # by default will actually change.
936 # Use braces instead of parens because sh, perl, etc. also accept them.
937 # (The list follows the same order as the GNU Coding Standards.)
938 bindir='${exec_prefix}/bin'
939 sbindir='${exec_prefix}/sbin'
940 libexecdir='${exec_prefix}/libexec'
941 datarootdir='${prefix}/share'
942 datadir='${datarootdir}'
943 sysconfdir='${prefix}/etc'
944 sharedstatedir='${prefix}/com'
945 localstatedir='${prefix}/var'
946 runstatedir='${localstatedir}/run'
947 includedir='${prefix}/include'
948 oldincludedir='/usr/include'
949 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
950 infodir='${datarootdir}/info'
951 htmldir='${docdir}'
952 dvidir='${docdir}'
953 pdfdir='${docdir}'
954 psdir='${docdir}'
955 libdir='${exec_prefix}/lib'
956 localedir='${datarootdir}/locale'
957 mandir='${datarootdir}/man'
958
959 ac_prev=
960 ac_dashdash=
961 for ac_option
962 do
963 # If the previous option needs an argument, assign it.
964 if test -n "$ac_prev"; then
965 eval $ac_prev=\$ac_option
966 ac_prev=
967 continue
968 fi
969
970 case $ac_option in
971 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
972 *=) ac_optarg= ;;
973 *) ac_optarg=yes ;;
974 esac
975
976 # Accept the important Cygnus configure options, so we can diagnose typos.
977
978 case $ac_dashdash$ac_option in
979 --)
980 ac_dashdash=yes ;;
981
982 -bindir | --bindir | --bindi | --bind | --bin | --bi)
983 ac_prev=bindir ;;
984 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
985 bindir=$ac_optarg ;;
986
987 -build | --build | --buil | --bui | --bu)
988 ac_prev=build_alias ;;
989 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
990 build_alias=$ac_optarg ;;
991
992 -cache-file | --cache-file | --cache-fil | --cache-fi \
993 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
994 ac_prev=cache_file ;;
995 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
996 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
997 cache_file=$ac_optarg ;;
998
999 --config-cache | -C)
1000 cache_file=config.cache ;;
1001
1002 -datadir | --datadir | --datadi | --datad)
1003 ac_prev=datadir ;;
1004 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1005 datadir=$ac_optarg ;;
1006
1007 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1008 | --dataroo | --dataro | --datar)
1009 ac_prev=datarootdir ;;
1010 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1011 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1012 datarootdir=$ac_optarg ;;
1013
1014 -disable-* | --disable-*)
1015 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1016 # Reject names that are not valid shell variable names.
1017 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1018 as_fn_error $? "invalid feature name: $ac_useropt"
1019 ac_useropt_orig=$ac_useropt
1020 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1021 case $ac_user_opts in
1022 *"
1023 "enable_$ac_useropt"
1024 "*) ;;
1025 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1026 ac_unrecognized_sep=', ';;
1027 esac
1028 eval enable_$ac_useropt=no ;;
1029
1030 -docdir | --docdir | --docdi | --doc | --do)
1031 ac_prev=docdir ;;
1032 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1033 docdir=$ac_optarg ;;
1034
1035 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1036 ac_prev=dvidir ;;
1037 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1038 dvidir=$ac_optarg ;;
1039
1040 -enable-* | --enable-*)
1041 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1042 # Reject names that are not valid shell variable names.
1043 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1044 as_fn_error $? "invalid feature name: $ac_useropt"
1045 ac_useropt_orig=$ac_useropt
1046 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1047 case $ac_user_opts in
1048 *"
1049 "enable_$ac_useropt"
1050 "*) ;;
1051 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1052 ac_unrecognized_sep=', ';;
1053 esac
1054 eval enable_$ac_useropt=\$ac_optarg ;;
1055
1056 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1057 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1058 | --exec | --exe | --ex)
1059 ac_prev=exec_prefix ;;
1060 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1061 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1062 | --exec=* | --exe=* | --ex=*)
1063 exec_prefix=$ac_optarg ;;
1064
1065 -gas | --gas | --ga | --g)
1066 # Obsolete; use --with-gas.
1067 with_gas=yes ;;
1068
1069 -help | --help | --hel | --he | -h)
1070 ac_init_help=long ;;
1071 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1072 ac_init_help=recursive ;;
1073 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1074 ac_init_help=short ;;
1075
1076 -host | --host | --hos | --ho)
1077 ac_prev=host_alias ;;
1078 -host=* | --host=* | --hos=* | --ho=*)
1079 host_alias=$ac_optarg ;;
1080
1081 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1082 ac_prev=htmldir ;;
1083 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1084 | --ht=*)
1085 htmldir=$ac_optarg ;;
1086
1087 -includedir | --includedir | --includedi | --included | --include \
1088 | --includ | --inclu | --incl | --inc)
1089 ac_prev=includedir ;;
1090 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1091 | --includ=* | --inclu=* | --incl=* | --inc=*)
1092 includedir=$ac_optarg ;;
1093
1094 -infodir | --infodir | --infodi | --infod | --info | --inf)
1095 ac_prev=infodir ;;
1096 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1097 infodir=$ac_optarg ;;
1098
1099 -libdir | --libdir | --libdi | --libd)
1100 ac_prev=libdir ;;
1101 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1102 libdir=$ac_optarg ;;
1103
1104 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1105 | --libexe | --libex | --libe)
1106 ac_prev=libexecdir ;;
1107 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1108 | --libexe=* | --libex=* | --libe=*)
1109 libexecdir=$ac_optarg ;;
1110
1111 -localedir | --localedir | --localedi | --localed | --locale)
1112 ac_prev=localedir ;;
1113 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1114 localedir=$ac_optarg ;;
1115
1116 -localstatedir | --localstatedir | --localstatedi | --localstated \
1117 | --localstate | --localstat | --localsta | --localst | --locals)
1118 ac_prev=localstatedir ;;
1119 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1120 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1121 localstatedir=$ac_optarg ;;
1122
1123 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1124 ac_prev=mandir ;;
1125 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1126 mandir=$ac_optarg ;;
1127
1128 -nfp | --nfp | --nf)
1129 # Obsolete; use --without-fp.
1130 with_fp=no ;;
1131
1132 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1133 | --no-cr | --no-c | -n)
1134 no_create=yes ;;
1135
1136 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1137 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1138 no_recursion=yes ;;
1139
1140 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1141 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1142 | --oldin | --oldi | --old | --ol | --o)
1143 ac_prev=oldincludedir ;;
1144 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1145 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1146 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1147 oldincludedir=$ac_optarg ;;
1148
1149 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1150 ac_prev=prefix ;;
1151 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1152 prefix=$ac_optarg ;;
1153
1154 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1155 | --program-pre | --program-pr | --program-p)
1156 ac_prev=program_prefix ;;
1157 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1158 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1159 program_prefix=$ac_optarg ;;
1160
1161 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1162 | --program-suf | --program-su | --program-s)
1163 ac_prev=program_suffix ;;
1164 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1165 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1166 program_suffix=$ac_optarg ;;
1167
1168 -program-transform-name | --program-transform-name \
1169 | --program-transform-nam | --program-transform-na \
1170 | --program-transform-n | --program-transform- \
1171 | --program-transform | --program-transfor \
1172 | --program-transfo | --program-transf \
1173 | --program-trans | --program-tran \
1174 | --progr-tra | --program-tr | --program-t)
1175 ac_prev=program_transform_name ;;
1176 -program-transform-name=* | --program-transform-name=* \
1177 | --program-transform-nam=* | --program-transform-na=* \
1178 | --program-transform-n=* | --program-transform-=* \
1179 | --program-transform=* | --program-transfor=* \
1180 | --program-transfo=* | --program-transf=* \
1181 | --program-trans=* | --program-tran=* \
1182 | --progr-tra=* | --program-tr=* | --program-t=*)
1183 program_transform_name=$ac_optarg ;;
1184
1185 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1186 ac_prev=pdfdir ;;
1187 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1188 pdfdir=$ac_optarg ;;
1189
1190 -psdir | --psdir | --psdi | --psd | --ps)
1191 ac_prev=psdir ;;
1192 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1193 psdir=$ac_optarg ;;
1194
1195 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1196 | -silent | --silent | --silen | --sile | --sil)
1197 silent=yes ;;
1198
1199 -runstatedir | --runstatedir | --runstatedi | --runstated \
1200 | --runstate | --runstat | --runsta | --runst | --runs \
1201 | --run | --ru | --r)
1202 ac_prev=runstatedir ;;
1203 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1204 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1205 | --run=* | --ru=* | --r=*)
1206 runstatedir=$ac_optarg ;;
1207
1208 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1209 ac_prev=sbindir ;;
1210 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1211 | --sbi=* | --sb=*)
1212 sbindir=$ac_optarg ;;
1213
1214 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1215 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1216 | --sharedst | --shareds | --shared | --share | --shar \
1217 | --sha | --sh)
1218 ac_prev=sharedstatedir ;;
1219 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1220 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1221 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1222 | --sha=* | --sh=*)
1223 sharedstatedir=$ac_optarg ;;
1224
1225 -site | --site | --sit)
1226 ac_prev=site ;;
1227 -site=* | --site=* | --sit=*)
1228 site=$ac_optarg ;;
1229
1230 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1231 ac_prev=srcdir ;;
1232 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1233 srcdir=$ac_optarg ;;
1234
1235 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1236 | --syscon | --sysco | --sysc | --sys | --sy)
1237 ac_prev=sysconfdir ;;
1238 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1239 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1240 sysconfdir=$ac_optarg ;;
1241
1242 -target | --target | --targe | --targ | --tar | --ta | --t)
1243 ac_prev=target_alias ;;
1244 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1245 target_alias=$ac_optarg ;;
1246
1247 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1248 verbose=yes ;;
1249
1250 -version | --version | --versio | --versi | --vers | -V)
1251 ac_init_version=: ;;
1252
1253 -with-* | --with-*)
1254 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1255 # Reject names that are not valid shell variable names.
1256 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1257 as_fn_error $? "invalid package name: $ac_useropt"
1258 ac_useropt_orig=$ac_useropt
1259 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1260 case $ac_user_opts in
1261 *"
1262 "with_$ac_useropt"
1263 "*) ;;
1264 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1265 ac_unrecognized_sep=', ';;
1266 esac
1267 eval with_$ac_useropt=\$ac_optarg ;;
1268
1269 -without-* | --without-*)
1270 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1271 # Reject names that are not valid shell variable names.
1272 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1273 as_fn_error $? "invalid package name: $ac_useropt"
1274 ac_useropt_orig=$ac_useropt
1275 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1276 case $ac_user_opts in
1277 *"
1278 "with_$ac_useropt"
1279 "*) ;;
1280 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1281 ac_unrecognized_sep=', ';;
1282 esac
1283 eval with_$ac_useropt=no ;;
1284
1285 --x)
1286 # Obsolete; use --with-x.
1287 with_x=yes ;;
1288
1289 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1290 | --x-incl | --x-inc | --x-in | --x-i)
1291 ac_prev=x_includes ;;
1292 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1293 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1294 x_includes=$ac_optarg ;;
1295
1296 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1297 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1298 ac_prev=x_libraries ;;
1299 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1300 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1301 x_libraries=$ac_optarg ;;
1302
1303 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1304 Try \`$0 --help' for more information"
1305 ;;
1306
1307 *=*)
1308 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1309 # Reject names that are not valid shell variable names.
1310 case $ac_envvar in #(
1311 '' | [0-9]* | *[!_$as_cr_alnum]* )
1312 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1313 esac
1314 eval $ac_envvar=\$ac_optarg
1315 export $ac_envvar ;;
1316
1317 *)
1318 # FIXME: should be removed in autoconf 3.0.
1319 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1320 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1321 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1322 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1323 ;;
1324
1325 esac
1326 done
1327
1328 if test -n "$ac_prev"; then
1329 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1330 as_fn_error $? "missing argument to $ac_option"
1331 fi
1332
1333 if test -n "$ac_unrecognized_opts"; then
1334 case $enable_option_checking in
1335 no) ;;
1336 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1337 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1338 esac
1339 fi
1340
1341 # Check all directory arguments for consistency.
1342 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1343 datadir sysconfdir sharedstatedir localstatedir includedir \
1344 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1345 libdir localedir mandir runstatedir
1346 do
1347 eval ac_val=\$$ac_var
1348 # Remove trailing slashes.
1349 case $ac_val in
1350 */ )
1351 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1352 eval $ac_var=\$ac_val;;
1353 esac
1354 # Be sure to have absolute directory names.
1355 case $ac_val in
1356 [\\/$]* | ?:[\\/]* ) continue;;
1357 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1358 esac
1359 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1360 done
1361
1362 # There might be people who depend on the old broken behavior: `$host'
1363 # used to hold the argument of --host etc.
1364 # FIXME: To remove some day.
1365 build=$build_alias
1366 host=$host_alias
1367 target=$target_alias
1368
1369 # FIXME: To remove some day.
1370 if test "x$host_alias" != x; then
1371 if test "x$build_alias" = x; then
1372 cross_compiling=maybe
1373 elif test "x$build_alias" != "x$host_alias"; then
1374 cross_compiling=yes
1375 fi
1376 fi
1377
1378 ac_tool_prefix=
1379 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1380
1381 test "$silent" = yes && exec 6>/dev/null
1382
1383
1384 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1385 ac_ls_di=`ls -di .` &&
1386 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1387 as_fn_error $? "working directory cannot be determined"
1388 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1389 as_fn_error $? "pwd does not report name of working directory"
1390
1391
1392 # Find the source files, if location was not specified.
1393 if test -z "$srcdir"; then
1394 ac_srcdir_defaulted=yes
1395 # Try the directory containing this script, then the parent directory.
1396 ac_confdir=`$as_dirname -- "$as_myself" ||
1397 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1398 X"$as_myself" : 'X\(//\)[^/]' \| \
1399 X"$as_myself" : 'X\(//\)$' \| \
1400 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1401 $as_echo X"$as_myself" |
1402 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1403 s//\1/
1404 q
1405 }
1406 /^X\(\/\/\)[^/].*/{
1407 s//\1/
1408 q
1409 }
1410 /^X\(\/\/\)$/{
1411 s//\1/
1412 q
1413 }
1414 /^X\(\/\).*/{
1415 s//\1/
1416 q
1417 }
1418 s/.*/./; q'`
1419 srcdir=$ac_confdir
1420 if test ! -r "$srcdir/$ac_unique_file"; then
1421 srcdir=..
1422 fi
1423 else
1424 ac_srcdir_defaulted=no
1425 fi
1426 if test ! -r "$srcdir/$ac_unique_file"; then
1427 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1428 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1429 fi
1430 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1431 ac_abs_confdir=`(
1432 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1433 pwd)`
1434 # When building in place, set srcdir=.
1435 if test "$ac_abs_confdir" = "$ac_pwd"; then
1436 srcdir=.
1437 fi
1438 # Remove unnecessary trailing slashes from srcdir.
1439 # Double slashes in file names in object file debugging info
1440 # mess up M-x gdb in Emacs.
1441 case $srcdir in
1442 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1443 esac
1444 for ac_var in $ac_precious_vars; do
1445 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1446 eval ac_env_${ac_var}_value=\$${ac_var}
1447 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1448 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1449 done
1450
1451 #
1452 # Report the --help message.
1453 #
1454 if test "$ac_init_help" = "long"; then
1455 # Omit some internal or obsolete options to make the list less imposing.
1456 # This message is too long to be a string in the A/UX 3.1 sh.
1457 cat <<_ACEOF
1458 \`configure' configures zfs 0.7.5 to adapt to many kinds of systems.
1459
1460 Usage: $0 [OPTION]... [VAR=VALUE]...
1461
1462 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1463 VAR=VALUE. See below for descriptions of some of the useful variables.
1464
1465 Defaults for the options are specified in brackets.
1466
1467 Configuration:
1468 -h, --help display this help and exit
1469 --help=short display options specific to this package
1470 --help=recursive display the short help of all the included packages
1471 -V, --version display version information and exit
1472 -q, --quiet, --silent do not print \`checking ...' messages
1473 --cache-file=FILE cache test results in FILE [disabled]
1474 -C, --config-cache alias for \`--cache-file=config.cache'
1475 -n, --no-create do not create output files
1476 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1477
1478 Installation directories:
1479 --prefix=PREFIX install architecture-independent files in PREFIX
1480 [$ac_default_prefix]
1481 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1482 [PREFIX]
1483
1484 By default, \`make install' will install all the files in
1485 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1486 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1487 for instance \`--prefix=\$HOME'.
1488
1489 For better control, use the options below.
1490
1491 Fine tuning of the installation directories:
1492 --bindir=DIR user executables [EPREFIX/bin]
1493 --sbindir=DIR system admin executables [EPREFIX/sbin]
1494 --libexecdir=DIR program executables [EPREFIX/libexec]
1495 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1496 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1497 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1498 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1499 --libdir=DIR object code libraries [EPREFIX/lib]
1500 --includedir=DIR C header files [PREFIX/include]
1501 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1502 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1503 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1504 --infodir=DIR info documentation [DATAROOTDIR/info]
1505 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1506 --mandir=DIR man documentation [DATAROOTDIR/man]
1507 --docdir=DIR documentation root [DATAROOTDIR/doc/zfs]
1508 --htmldir=DIR html documentation [DOCDIR]
1509 --dvidir=DIR dvi documentation [DOCDIR]
1510 --pdfdir=DIR pdf documentation [DOCDIR]
1511 --psdir=DIR ps documentation [DOCDIR]
1512 _ACEOF
1513
1514 cat <<\_ACEOF
1515
1516 Program names:
1517 --program-prefix=PREFIX prepend PREFIX to installed program names
1518 --program-suffix=SUFFIX append SUFFIX to installed program names
1519 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1520
1521 System types:
1522 --build=BUILD configure for building on BUILD [guessed]
1523 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1524 --target=TARGET configure for building compilers for TARGET [HOST]
1525 _ACEOF
1526 fi
1527
1528 if test -n "$ac_init_help"; then
1529 case $ac_init_help in
1530 short | recursive ) echo "Configuration of zfs 0.7.5:";;
1531 esac
1532 cat <<\_ACEOF
1533
1534 Optional Features:
1535 --disable-option-checking ignore unrecognized --enable/--with options
1536 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1537 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1538 --enable-maintainer-mode
1539 enable make rules and dependencies not useful (and
1540 sometimes confusing) to the casual installer
1541 --enable-silent-rules less verbose build output (undo: "make V=1")
1542 --disable-silent-rules verbose build output (undo: "make V=0")
1543 --enable-dependency-tracking
1544 do not reject slow dependency extractors
1545 --disable-dependency-tracking
1546 speeds up one-time build
1547 --enable-shared[=PKGS] build shared libraries [default=yes]
1548 --enable-static[=PKGS] build static libraries [default=yes]
1549 --enable-fast-install[=PKGS]
1550 optimize for fast installation [default=yes]
1551 --disable-libtool-lock avoid locking (might break parallel builds)
1552 --enable-linux-builtin Configure for builtin in-tree kernel modules
1553 [default=no]
1554 --enable-systemd install systemd unit/preset files [[default: yes]]
1555 --enable-sysvinit install SysV init scripts [default: yes]
1556 --enable-debug Enable generic debug support [default=no]
1557
1558 Optional Packages:
1559 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1560 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1561 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1562 both]
1563 --with-aix-soname=aix|svr4|both
1564 shared library versioning (aka "SONAME") variant to
1565 provide on AIX, [default=aix].
1566 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1567 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
1568 compiler's sysroot if not specified).
1569 --with-spec=SPEC Spec files 'generic|redhat'
1570 --with-config=CONFIG Config file 'kernel|user|all|srpm'
1571 --with-linux=PATH Path to kernel source
1572 --with-linux-obj=PATH Path to kernel build objects
1573 --with-spl=PATH Path to spl source
1574 --with-spl-obj=PATH Path to spl build objects
1575 --with-spl-timeout=SECS Wait SECS for SPL header and symver file [default=0]
1576 --with-qat=PATH Path to qat source
1577 --with-qat-obj=PATH Path to qat build objects
1578 --with-mounthelperdir=DIR
1579 install mount.zfs in dir [[/sbin]]
1580 --with-udevdir=DIR install udev helpers [default=check]
1581 --with-udevruledir=DIR install udev rules [[UDEVDIR/rules.d]]
1582 --with-systemdunitdir=DIR
1583 install systemd unit files in dir
1584 [[/usr/lib/systemd/system]]
1585 --with-systemdpresetdir=DIR
1586 install systemd preset files in dir
1587 [[/usr/lib/systemd/system-preset]]
1588 --with-systemdmodulesloaddir=DIR
1589 install systemd module load files into dir
1590 [[/usr/lib/modules-load.d]]
1591 --with-dracutdir=DIR install dracut helpers [default=check]
1592 --with-tirpc use tirpc for xdr encoding [default=check]
1593
1594 Some influential environment variables:
1595 CC C compiler command
1596 CFLAGS C compiler flags
1597 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1598 nonstandard directory <lib dir>
1599 LIBS libraries to pass to the linker, e.g. -l<library>
1600 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1601 you have headers in a nonstandard directory <include dir>
1602 LT_SYS_LIBRARY_PATH
1603 User-defined run-time library search path.
1604 CPP C preprocessor
1605 CCAS assembler compiler command (defaults to CC)
1606 CCASFLAGS assembler compiler flags (defaults to CFLAGS)
1607
1608 Use these variables to override the choices made by `configure' or to help
1609 it to find libraries and programs with nonstandard names/locations.
1610
1611 Report bugs to the package provider.
1612 _ACEOF
1613 ac_status=$?
1614 fi
1615
1616 if test "$ac_init_help" = "recursive"; then
1617 # If there are subdirs, report their specific --help.
1618 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1619 test -d "$ac_dir" ||
1620 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1621 continue
1622 ac_builddir=.
1623
1624 case "$ac_dir" in
1625 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1626 *)
1627 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1628 # A ".." for each directory in $ac_dir_suffix.
1629 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1630 case $ac_top_builddir_sub in
1631 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1632 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1633 esac ;;
1634 esac
1635 ac_abs_top_builddir=$ac_pwd
1636 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1637 # for backward compatibility:
1638 ac_top_builddir=$ac_top_build_prefix
1639
1640 case $srcdir in
1641 .) # We are building in place.
1642 ac_srcdir=.
1643 ac_top_srcdir=$ac_top_builddir_sub
1644 ac_abs_top_srcdir=$ac_pwd ;;
1645 [\\/]* | ?:[\\/]* ) # Absolute name.
1646 ac_srcdir=$srcdir$ac_dir_suffix;
1647 ac_top_srcdir=$srcdir
1648 ac_abs_top_srcdir=$srcdir ;;
1649 *) # Relative name.
1650 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1651 ac_top_srcdir=$ac_top_build_prefix$srcdir
1652 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1653 esac
1654 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1655
1656 cd "$ac_dir" || { ac_status=$?; continue; }
1657 # Check for guested configure.
1658 if test -f "$ac_srcdir/configure.gnu"; then
1659 echo &&
1660 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1661 elif test -f "$ac_srcdir/configure"; then
1662 echo &&
1663 $SHELL "$ac_srcdir/configure" --help=recursive
1664 else
1665 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1666 fi || ac_status=$?
1667 cd "$ac_pwd" || { ac_status=$?; break; }
1668 done
1669 fi
1670
1671 test -n "$ac_init_help" && exit $ac_status
1672 if $ac_init_version; then
1673 cat <<\_ACEOF
1674 zfs configure 0.7.5
1675 generated by GNU Autoconf 2.69
1676
1677 Copyright (C) 2012 Free Software Foundation, Inc.
1678 This configure script is free software; the Free Software Foundation
1679 gives unlimited permission to copy, distribute and modify it.
1680 _ACEOF
1681 exit
1682 fi
1683
1684 ## ------------------------ ##
1685 ## Autoconf initialization. ##
1686 ## ------------------------ ##
1687
1688 # ac_fn_c_try_compile LINENO
1689 # --------------------------
1690 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1691 ac_fn_c_try_compile ()
1692 {
1693 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1694 rm -f conftest.$ac_objext
1695 if { { ac_try="$ac_compile"
1696 case "(($ac_try" in
1697 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1698 *) ac_try_echo=$ac_try;;
1699 esac
1700 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1701 $as_echo "$ac_try_echo"; } >&5
1702 (eval "$ac_compile") 2>conftest.err
1703 ac_status=$?
1704 if test -s conftest.err; then
1705 grep -v '^ *+' conftest.err >conftest.er1
1706 cat conftest.er1 >&5
1707 mv -f conftest.er1 conftest.err
1708 fi
1709 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1710 test $ac_status = 0; } && {
1711 test -z "$ac_c_werror_flag" ||
1712 test ! -s conftest.err
1713 } && test -s conftest.$ac_objext; then :
1714 ac_retval=0
1715 else
1716 $as_echo "$as_me: failed program was:" >&5
1717 sed 's/^/| /' conftest.$ac_ext >&5
1718
1719 ac_retval=1
1720 fi
1721 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1722 as_fn_set_status $ac_retval
1723
1724 } # ac_fn_c_try_compile
1725
1726 # ac_fn_c_try_link LINENO
1727 # -----------------------
1728 # Try to link conftest.$ac_ext, and return whether this succeeded.
1729 ac_fn_c_try_link ()
1730 {
1731 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1732 rm -f conftest.$ac_objext conftest$ac_exeext
1733 if { { ac_try="$ac_link"
1734 case "(($ac_try" in
1735 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1736 *) ac_try_echo=$ac_try;;
1737 esac
1738 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1739 $as_echo "$ac_try_echo"; } >&5
1740 (eval "$ac_link") 2>conftest.err
1741 ac_status=$?
1742 if test -s conftest.err; then
1743 grep -v '^ *+' conftest.err >conftest.er1
1744 cat conftest.er1 >&5
1745 mv -f conftest.er1 conftest.err
1746 fi
1747 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1748 test $ac_status = 0; } && {
1749 test -z "$ac_c_werror_flag" ||
1750 test ! -s conftest.err
1751 } && test -s conftest$ac_exeext && {
1752 test "$cross_compiling" = yes ||
1753 test -x conftest$ac_exeext
1754 }; then :
1755 ac_retval=0
1756 else
1757 $as_echo "$as_me: failed program was:" >&5
1758 sed 's/^/| /' conftest.$ac_ext >&5
1759
1760 ac_retval=1
1761 fi
1762 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1763 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1764 # interfere with the next link command; also delete a directory that is
1765 # left behind by Apple's compiler. We do this before executing the actions.
1766 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1767 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1768 as_fn_set_status $ac_retval
1769
1770 } # ac_fn_c_try_link
1771
1772 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1773 # -------------------------------------------------------
1774 # Tests whether HEADER exists and can be compiled using the include files in
1775 # INCLUDES, setting the cache variable VAR accordingly.
1776 ac_fn_c_check_header_compile ()
1777 {
1778 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1780 $as_echo_n "checking for $2... " >&6; }
1781 if eval \${$3+:} false; then :
1782 $as_echo_n "(cached) " >&6
1783 else
1784 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1785 /* end confdefs.h. */
1786 $4
1787 #include <$2>
1788 _ACEOF
1789 if ac_fn_c_try_compile "$LINENO"; then :
1790 eval "$3=yes"
1791 else
1792 eval "$3=no"
1793 fi
1794 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1795 fi
1796 eval ac_res=\$$3
1797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1798 $as_echo "$ac_res" >&6; }
1799 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1800
1801 } # ac_fn_c_check_header_compile
1802
1803 # ac_fn_c_try_cpp LINENO
1804 # ----------------------
1805 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1806 ac_fn_c_try_cpp ()
1807 {
1808 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1809 if { { ac_try="$ac_cpp conftest.$ac_ext"
1810 case "(($ac_try" in
1811 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1812 *) ac_try_echo=$ac_try;;
1813 esac
1814 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1815 $as_echo "$ac_try_echo"; } >&5
1816 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1817 ac_status=$?
1818 if test -s conftest.err; then
1819 grep -v '^ *+' conftest.err >conftest.er1
1820 cat conftest.er1 >&5
1821 mv -f conftest.er1 conftest.err
1822 fi
1823 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1824 test $ac_status = 0; } > conftest.i && {
1825 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1826 test ! -s conftest.err
1827 }; then :
1828 ac_retval=0
1829 else
1830 $as_echo "$as_me: failed program was:" >&5
1831 sed 's/^/| /' conftest.$ac_ext >&5
1832
1833 ac_retval=1
1834 fi
1835 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1836 as_fn_set_status $ac_retval
1837
1838 } # ac_fn_c_try_cpp
1839
1840 # ac_fn_c_try_run LINENO
1841 # ----------------------
1842 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1843 # that executables *can* be run.
1844 ac_fn_c_try_run ()
1845 {
1846 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1847 if { { ac_try="$ac_link"
1848 case "(($ac_try" in
1849 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1850 *) ac_try_echo=$ac_try;;
1851 esac
1852 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1853 $as_echo "$ac_try_echo"; } >&5
1854 (eval "$ac_link") 2>&5
1855 ac_status=$?
1856 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1857 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1858 { { case "(($ac_try" in
1859 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1860 *) ac_try_echo=$ac_try;;
1861 esac
1862 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1863 $as_echo "$ac_try_echo"; } >&5
1864 (eval "$ac_try") 2>&5
1865 ac_status=$?
1866 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1867 test $ac_status = 0; }; }; then :
1868 ac_retval=0
1869 else
1870 $as_echo "$as_me: program exited with status $ac_status" >&5
1871 $as_echo "$as_me: failed program was:" >&5
1872 sed 's/^/| /' conftest.$ac_ext >&5
1873
1874 ac_retval=$ac_status
1875 fi
1876 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1877 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1878 as_fn_set_status $ac_retval
1879
1880 } # ac_fn_c_try_run
1881
1882 # ac_fn_c_check_func LINENO FUNC VAR
1883 # ----------------------------------
1884 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1885 ac_fn_c_check_func ()
1886 {
1887 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1889 $as_echo_n "checking for $2... " >&6; }
1890 if eval \${$3+:} false; then :
1891 $as_echo_n "(cached) " >&6
1892 else
1893 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1894 /* end confdefs.h. */
1895 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1896 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1897 #define $2 innocuous_$2
1898
1899 /* System header to define __stub macros and hopefully few prototypes,
1900 which can conflict with char $2 (); below.
1901 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1902 <limits.h> exists even on freestanding compilers. */
1903
1904 #ifdef __STDC__
1905 # include <limits.h>
1906 #else
1907 # include <assert.h>
1908 #endif
1909
1910 #undef $2
1911
1912 /* Override any GCC internal prototype to avoid an error.
1913 Use char because int might match the return type of a GCC
1914 builtin and then its argument prototype would still apply. */
1915 #ifdef __cplusplus
1916 extern "C"
1917 #endif
1918 char $2 ();
1919 /* The GNU C library defines this for functions which it implements
1920 to always fail with ENOSYS. Some functions are actually named
1921 something starting with __ and the normal name is an alias. */
1922 #if defined __stub_$2 || defined __stub___$2
1923 choke me
1924 #endif
1925
1926 int
1927 main ()
1928 {
1929 return $2 ();
1930 ;
1931 return 0;
1932 }
1933 _ACEOF
1934 if ac_fn_c_try_link "$LINENO"; then :
1935 eval "$3=yes"
1936 else
1937 eval "$3=no"
1938 fi
1939 rm -f core conftest.err conftest.$ac_objext \
1940 conftest$ac_exeext conftest.$ac_ext
1941 fi
1942 eval ac_res=\$$3
1943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1944 $as_echo "$ac_res" >&6; }
1945 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1946
1947 } # ac_fn_c_check_func
1948
1949 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1950 # -------------------------------------------------------
1951 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1952 # the include files in INCLUDES and setting the cache variable VAR
1953 # accordingly.
1954 ac_fn_c_check_header_mongrel ()
1955 {
1956 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1957 if eval \${$3+:} false; then :
1958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1959 $as_echo_n "checking for $2... " >&6; }
1960 if eval \${$3+:} false; then :
1961 $as_echo_n "(cached) " >&6
1962 fi
1963 eval ac_res=\$$3
1964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1965 $as_echo "$ac_res" >&6; }
1966 else
1967 # Is the header compilable?
1968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1969 $as_echo_n "checking $2 usability... " >&6; }
1970 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1971 /* end confdefs.h. */
1972 $4
1973 #include <$2>
1974 _ACEOF
1975 if ac_fn_c_try_compile "$LINENO"; then :
1976 ac_header_compiler=yes
1977 else
1978 ac_header_compiler=no
1979 fi
1980 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1982 $as_echo "$ac_header_compiler" >&6; }
1983
1984 # Is the header present?
1985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1986 $as_echo_n "checking $2 presence... " >&6; }
1987 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1988 /* end confdefs.h. */
1989 #include <$2>
1990 _ACEOF
1991 if ac_fn_c_try_cpp "$LINENO"; then :
1992 ac_header_preproc=yes
1993 else
1994 ac_header_preproc=no
1995 fi
1996 rm -f conftest.err conftest.i conftest.$ac_ext
1997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1998 $as_echo "$ac_header_preproc" >&6; }
1999
2000 # So? What about this header?
2001 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2002 yes:no: )
2003 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2004 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2005 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2006 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2007 ;;
2008 no:yes:* )
2009 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2010 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2011 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2012 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2013 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2014 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2015 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2016 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2017 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2018 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2019 ;;
2020 esac
2021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2022 $as_echo_n "checking for $2... " >&6; }
2023 if eval \${$3+:} false; then :
2024 $as_echo_n "(cached) " >&6
2025 else
2026 eval "$3=\$ac_header_compiler"
2027 fi
2028 eval ac_res=\$$3
2029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2030 $as_echo "$ac_res" >&6; }
2031 fi
2032 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2033
2034 } # ac_fn_c_check_header_mongrel
2035 cat >config.log <<_ACEOF
2036 This file contains any messages produced by compilers while
2037 running configure, to aid debugging if configure makes a mistake.
2038
2039 It was created by zfs $as_me 0.7.5, which was
2040 generated by GNU Autoconf 2.69. Invocation command line was
2041
2042 $ $0 $@
2043
2044 _ACEOF
2045 exec 5>>config.log
2046 {
2047 cat <<_ASUNAME
2048 ## --------- ##
2049 ## Platform. ##
2050 ## --------- ##
2051
2052 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2053 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2054 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2055 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2056 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2057
2058 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2059 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2060
2061 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2062 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2063 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2064 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2065 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2066 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2067 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2068
2069 _ASUNAME
2070
2071 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2072 for as_dir in $PATH
2073 do
2074 IFS=$as_save_IFS
2075 test -z "$as_dir" && as_dir=.
2076 $as_echo "PATH: $as_dir"
2077 done
2078 IFS=$as_save_IFS
2079
2080 } >&5
2081
2082 cat >&5 <<_ACEOF
2083
2084
2085 ## ----------- ##
2086 ## Core tests. ##
2087 ## ----------- ##
2088
2089 _ACEOF
2090
2091
2092 # Keep a trace of the command line.
2093 # Strip out --no-create and --no-recursion so they do not pile up.
2094 # Strip out --silent because we don't want to record it for future runs.
2095 # Also quote any args containing shell meta-characters.
2096 # Make two passes to allow for proper duplicate-argument suppression.
2097 ac_configure_args=
2098 ac_configure_args0=
2099 ac_configure_args1=
2100 ac_must_keep_next=false
2101 for ac_pass in 1 2
2102 do
2103 for ac_arg
2104 do
2105 case $ac_arg in
2106 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2107 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2108 | -silent | --silent | --silen | --sile | --sil)
2109 continue ;;
2110 *\'*)
2111 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2112 esac
2113 case $ac_pass in
2114 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2115 2)
2116 as_fn_append ac_configure_args1 " '$ac_arg'"
2117 if test $ac_must_keep_next = true; then
2118 ac_must_keep_next=false # Got value, back to normal.
2119 else
2120 case $ac_arg in
2121 *=* | --config-cache | -C | -disable-* | --disable-* \
2122 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2123 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2124 | -with-* | --with-* | -without-* | --without-* | --x)
2125 case "$ac_configure_args0 " in
2126 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2127 esac
2128 ;;
2129 -* ) ac_must_keep_next=true ;;
2130 esac
2131 fi
2132 as_fn_append ac_configure_args " '$ac_arg'"
2133 ;;
2134 esac
2135 done
2136 done
2137 { ac_configure_args0=; unset ac_configure_args0;}
2138 { ac_configure_args1=; unset ac_configure_args1;}
2139
2140 # When interrupted or exit'd, cleanup temporary files, and complete
2141 # config.log. We remove comments because anyway the quotes in there
2142 # would cause problems or look ugly.
2143 # WARNING: Use '\'' to represent an apostrophe within the trap.
2144 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2145 trap 'exit_status=$?
2146 # Save into config.log some information that might help in debugging.
2147 {
2148 echo
2149
2150 $as_echo "## ---------------- ##
2151 ## Cache variables. ##
2152 ## ---------------- ##"
2153 echo
2154 # The following way of writing the cache mishandles newlines in values,
2155 (
2156 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2157 eval ac_val=\$$ac_var
2158 case $ac_val in #(
2159 *${as_nl}*)
2160 case $ac_var in #(
2161 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2162 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2163 esac
2164 case $ac_var in #(
2165 _ | IFS | as_nl) ;; #(
2166 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2167 *) { eval $ac_var=; unset $ac_var;} ;;
2168 esac ;;
2169 esac
2170 done
2171 (set) 2>&1 |
2172 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2173 *${as_nl}ac_space=\ *)
2174 sed -n \
2175 "s/'\''/'\''\\\\'\'''\''/g;
2176 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2177 ;; #(
2178 *)
2179 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2180 ;;
2181 esac |
2182 sort
2183 )
2184 echo
2185
2186 $as_echo "## ----------------- ##
2187 ## Output variables. ##
2188 ## ----------------- ##"
2189 echo
2190 for ac_var in $ac_subst_vars
2191 do
2192 eval ac_val=\$$ac_var
2193 case $ac_val in
2194 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2195 esac
2196 $as_echo "$ac_var='\''$ac_val'\''"
2197 done | sort
2198 echo
2199
2200 if test -n "$ac_subst_files"; then
2201 $as_echo "## ------------------- ##
2202 ## File substitutions. ##
2203 ## ------------------- ##"
2204 echo
2205 for ac_var in $ac_subst_files
2206 do
2207 eval ac_val=\$$ac_var
2208 case $ac_val in
2209 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2210 esac
2211 $as_echo "$ac_var='\''$ac_val'\''"
2212 done | sort
2213 echo
2214 fi
2215
2216 if test -s confdefs.h; then
2217 $as_echo "## ----------- ##
2218 ## confdefs.h. ##
2219 ## ----------- ##"
2220 echo
2221 cat confdefs.h
2222 echo
2223 fi
2224 test "$ac_signal" != 0 &&
2225 $as_echo "$as_me: caught signal $ac_signal"
2226 $as_echo "$as_me: exit $exit_status"
2227 } >&5
2228 rm -f core *.core core.conftest.* &&
2229 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2230 exit $exit_status
2231 ' 0
2232 for ac_signal in 1 2 13 15; do
2233 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2234 done
2235 ac_signal=0
2236
2237 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2238 rm -f -r conftest* confdefs.h
2239
2240 $as_echo "/* confdefs.h */" > confdefs.h
2241
2242 # Predefined preprocessor variables.
2243
2244 cat >>confdefs.h <<_ACEOF
2245 #define PACKAGE_NAME "$PACKAGE_NAME"
2246 _ACEOF
2247
2248 cat >>confdefs.h <<_ACEOF
2249 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2250 _ACEOF
2251
2252 cat >>confdefs.h <<_ACEOF
2253 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2254 _ACEOF
2255
2256 cat >>confdefs.h <<_ACEOF
2257 #define PACKAGE_STRING "$PACKAGE_STRING"
2258 _ACEOF
2259
2260 cat >>confdefs.h <<_ACEOF
2261 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2262 _ACEOF
2263
2264 cat >>confdefs.h <<_ACEOF
2265 #define PACKAGE_URL "$PACKAGE_URL"
2266 _ACEOF
2267
2268
2269 # Let the site file select an alternate cache file if it wants to.
2270 # Prefer an explicitly selected file to automatically selected ones.
2271 ac_site_file1=NONE
2272 ac_site_file2=NONE
2273 if test -n "$CONFIG_SITE"; then
2274 # We do not want a PATH search for config.site.
2275 case $CONFIG_SITE in #((
2276 -*) ac_site_file1=./$CONFIG_SITE;;
2277 */*) ac_site_file1=$CONFIG_SITE;;
2278 *) ac_site_file1=./$CONFIG_SITE;;
2279 esac
2280 elif test "x$prefix" != xNONE; then
2281 ac_site_file1=$prefix/share/config.site
2282 ac_site_file2=$prefix/etc/config.site
2283 else
2284 ac_site_file1=$ac_default_prefix/share/config.site
2285 ac_site_file2=$ac_default_prefix/etc/config.site
2286 fi
2287 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2288 do
2289 test "x$ac_site_file" = xNONE && continue
2290 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2291 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2292 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2293 sed 's/^/| /' "$ac_site_file" >&5
2294 . "$ac_site_file" \
2295 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2296 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2297 as_fn_error $? "failed to load site script $ac_site_file
2298 See \`config.log' for more details" "$LINENO" 5; }
2299 fi
2300 done
2301
2302 if test -r "$cache_file"; then
2303 # Some versions of bash will fail to source /dev/null (special files
2304 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2305 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2306 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2307 $as_echo "$as_me: loading cache $cache_file" >&6;}
2308 case $cache_file in
2309 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2310 *) . "./$cache_file";;
2311 esac
2312 fi
2313 else
2314 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2315 $as_echo "$as_me: creating cache $cache_file" >&6;}
2316 >$cache_file
2317 fi
2318
2319 # Check that the precious variables saved in the cache have kept the same
2320 # value.
2321 ac_cache_corrupted=false
2322 for ac_var in $ac_precious_vars; do
2323 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2324 eval ac_new_set=\$ac_env_${ac_var}_set
2325 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2326 eval ac_new_val=\$ac_env_${ac_var}_value
2327 case $ac_old_set,$ac_new_set in
2328 set,)
2329 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2330 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2331 ac_cache_corrupted=: ;;
2332 ,set)
2333 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2334 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2335 ac_cache_corrupted=: ;;
2336 ,);;
2337 *)
2338 if test "x$ac_old_val" != "x$ac_new_val"; then
2339 # differences in whitespace do not lead to failure.
2340 ac_old_val_w=`echo x $ac_old_val`
2341 ac_new_val_w=`echo x $ac_new_val`
2342 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2343 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2344 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2345 ac_cache_corrupted=:
2346 else
2347 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2348 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2349 eval $ac_var=\$ac_old_val
2350 fi
2351 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2352 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2353 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2354 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2355 fi;;
2356 esac
2357 # Pass precious variables to config.status.
2358 if test "$ac_new_set" = set; then
2359 case $ac_new_val in
2360 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2361 *) ac_arg=$ac_var=$ac_new_val ;;
2362 esac
2363 case " $ac_configure_args " in
2364 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2365 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2366 esac
2367 fi
2368 done
2369 if $ac_cache_corrupted; then
2370 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2371 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2372 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2373 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2374 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2375 fi
2376 ## -------------------- ##
2377 ## Main body of script. ##
2378 ## -------------------- ##
2379
2380 ac_ext=c
2381 ac_cpp='$CPP $CPPFLAGS'
2382 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2383 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2384 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2385
2386
2387 ac_ext=c
2388 ac_cpp='$CPP $CPPFLAGS'
2389 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2390 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2391 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2392
2393
2394
2395
2396
2397 for ac_prog in gawk mawk nawk awk
2398 do
2399 # Extract the first word of "$ac_prog", so it can be a program name with args.
2400 set dummy $ac_prog; ac_word=$2
2401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2402 $as_echo_n "checking for $ac_word... " >&6; }
2403 if ${ac_cv_prog_AWK+:} false; then :
2404 $as_echo_n "(cached) " >&6
2405 else
2406 if test -n "$AWK"; then
2407 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2408 else
2409 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2410 for as_dir in $PATH
2411 do
2412 IFS=$as_save_IFS
2413 test -z "$as_dir" && as_dir=.
2414 for ac_exec_ext in '' $ac_executable_extensions; do
2415 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2416 ac_cv_prog_AWK="$ac_prog"
2417 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2418 break 2
2419 fi
2420 done
2421 done
2422 IFS=$as_save_IFS
2423
2424 fi
2425 fi
2426 AWK=$ac_cv_prog_AWK
2427 if test -n "$AWK"; then
2428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2429 $as_echo "$AWK" >&6; }
2430 else
2431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2432 $as_echo "no" >&6; }
2433 fi
2434
2435
2436 test -n "$AWK" && break
2437 done
2438
2439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking metadata" >&5
2440 $as_echo_n "checking metadata... " >&6; }
2441
2442 META="$srcdir/META"
2443 _zfs_ac_meta_type="none"
2444 if test -f "$META"; then
2445 _zfs_ac_meta_type="META file"
2446 _dpkg_parsechangelog=$(dpkg-parsechangelog 2>/dev/null)
2447
2448 ZFS_META_NAME=`$AWK -F ':[ \t]+' '$1 ~ /^ *(Name|Project|Package)$/ { print $2; exit }' $META`;
2449 if test -n "$ZFS_META_NAME"; then
2450
2451 cat >>confdefs.h <<_ACEOF
2452 #define ZFS_META_NAME "$ZFS_META_NAME"
2453 _ACEOF
2454
2455
2456 fi
2457
2458 ZFS_META_VERSION=`$AWK -F ':[ \t]+' '$1 ~ /^ *Version$/ { print $2; exit }' $META`;
2459 if test -n "$ZFS_META_VERSION"; then
2460
2461 cat >>confdefs.h <<_ACEOF
2462 #define ZFS_META_VERSION "$ZFS_META_VERSION"
2463 _ACEOF
2464
2465
2466 fi
2467
2468 if test -n "${_dpkg_parsechangelog}"; then
2469 _dpkg_version=$(echo "${_dpkg_parsechangelog}" \
2470 | $AWK '$1 == "Version:" { print $2; }' \
2471 | cut -d- -f1)
2472 if test "${_dpkg_version}" != "$ZFS_META_VERSION"; then
2473 as_fn_error $? "
2474 *** Version $ZFS_META_VERSION in the META file is different than
2475 *** version $_dpkg_version in the debian/changelog file. DKMS and DEB
2476 *** packaging require that these files have the same version.
2477 " "$LINENO" 5
2478 fi
2479 fi
2480
2481 ZFS_META_RELEASE=`$AWK -F ':[ \t]+' '$1 ~ /^ *Release$/ { print $2; exit }' $META`;
2482
2483 if test -n "${_dpkg_parsechangelog}"; then
2484 _dpkg_release=$(echo "${_dpkg_parsechangelog}" \
2485 | $AWK '$1 == "Version:" { print $2; }' \
2486 | cut -d- -f2-)
2487 if test -n "${_dpkg_release}"; then
2488 ZFS_META_RELEASE=${_dpkg_release}
2489 _zfs_ac_meta_type="dpkg-parsechangelog"
2490 fi
2491 elif test ! -f ".nogitrelease" && git rev-parse --git-dir > /dev/null 2>&1; then
2492 _match="${ZFS_META_NAME}-${ZFS_META_VERSION}"
2493 _alias=$(git describe --match=${_match} 2>/dev/null)
2494 _release=$(echo ${_alias}|cut -f3- -d'-'|sed 's/-/_/g')
2495 if test -n "${_release}"; then
2496 ZFS_META_RELEASE=${_release}
2497 _zfs_ac_meta_type="git describe"
2498 else
2499 _match="${ZFS_META_NAME}-${ZFS_META_VERSION}-${ZFS_META_RELEASE}"
2500 _alias=$(git describe --match=${_match} 2>/dev/null)
2501 _release=$(echo ${_alias}|cut -f3- -d'-'|sed 's/-/_/g')
2502 if test -n "${_release}"; then
2503 ZFS_META_RELEASE=${_release}
2504 _zfs_ac_meta_type="git describe"
2505 fi
2506 fi
2507 fi
2508
2509 if test -n "$ZFS_META_RELEASE"; then
2510
2511 cat >>confdefs.h <<_ACEOF
2512 #define ZFS_META_RELEASE "$ZFS_META_RELEASE"
2513 _ACEOF
2514
2515
2516
2517 RELEASE="$ZFS_META_RELEASE"
2518
2519 fi
2520
2521 ZFS_META_LICENSE=`$AWK -F ':[ \t]+' '$1 ~ /^ *License$/ { print $2; exit }' $META`;
2522 if test -n "$ZFS_META_LICENSE"; then
2523
2524 cat >>confdefs.h <<_ACEOF
2525 #define ZFS_META_LICENSE "$ZFS_META_LICENSE"
2526 _ACEOF
2527
2528
2529 fi
2530
2531 if test -n "$ZFS_META_NAME" -a -n "$ZFS_META_VERSION"; then
2532 ZFS_META_ALIAS="$ZFS_META_NAME-$ZFS_META_VERSION"
2533 test -n "$ZFS_META_RELEASE" &&
2534 ZFS_META_ALIAS="$ZFS_META_ALIAS-$ZFS_META_RELEASE"
2535
2536 cat >>confdefs.h <<_ACEOF
2537 #define ZFS_META_ALIAS "$ZFS_META_ALIAS"
2538 _ACEOF
2539
2540
2541 fi
2542
2543 ZFS_META_DATA=`$AWK -F ':[ \t]+' '$1 ~ /^ *Date$/ { print $2; exit }' $META`;
2544 if test -n "$ZFS_META_DATA"; then
2545
2546 cat >>confdefs.h <<_ACEOF
2547 #define ZFS_META_DATA "$ZFS_META_DATA"
2548 _ACEOF
2549
2550
2551 fi
2552
2553 ZFS_META_AUTHOR=`$AWK -F ':[ \t]+' '$1 ~ /^ *Author$/ { print $2; exit }' $META`;
2554 if test -n "$ZFS_META_AUTHOR"; then
2555
2556 cat >>confdefs.h <<_ACEOF
2557 #define ZFS_META_AUTHOR "$ZFS_META_AUTHOR"
2558 _ACEOF
2559
2560
2561 fi
2562
2563
2564 ZFS_META_LT_CURRENT=`$AWK -F ':[ \t]+' '$1 ~ /^ *LT_Current$/ { print $2; exit }' $META`;
2565 ZFS_META_LT_REVISION=`$AWK -F ':[ \t]+' '$1 ~ /^ *LT_Revision$/ { print $2; exit }' $META`;
2566 ZFS_META_LT_AGE=`$AWK -F ':[ \t]+' '$1 ~ /^ *LT_Age$/ { print $2; exit }' $META`;
2567 if test -n "$ZFS_META_LT_CURRENT" \
2568 -o -n "$ZFS_META_LT_REVISION" \
2569 -o -n "$ZFS_META_LT_AGE"; then
2570 test -n "$ZFS_META_LT_CURRENT" || ZFS_META_LT_CURRENT="0"
2571 test -n "$ZFS_META_LT_REVISION" || ZFS_META_LT_REVISION="0"
2572 test -n "$ZFS_META_LT_AGE" || ZFS_META_LT_AGE="0"
2573
2574 cat >>confdefs.h <<_ACEOF
2575 #define ZFS_META_LT_CURRENT "$ZFS_META_LT_CURRENT"
2576 _ACEOF
2577
2578
2579 cat >>confdefs.h <<_ACEOF
2580 #define ZFS_META_LT_REVISION "$ZFS_META_LT_REVISION"
2581 _ACEOF
2582
2583
2584 cat >>confdefs.h <<_ACEOF
2585 #define ZFS_META_LT_AGE "$ZFS_META_LT_AGE"
2586 _ACEOF
2587
2588
2589
2590
2591 fi
2592 fi
2593
2594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_zfs_ac_meta_type" >&5
2595 $as_echo "$_zfs_ac_meta_type" >&6; }
2596
2597
2598 ac_aux_dir=
2599 for ac_dir in config "$srcdir"/config; do
2600 if test -f "$ac_dir/install-sh"; then
2601 ac_aux_dir=$ac_dir
2602 ac_install_sh="$ac_aux_dir/install-sh -c"
2603 break
2604 elif test -f "$ac_dir/install.sh"; then
2605 ac_aux_dir=$ac_dir
2606 ac_install_sh="$ac_aux_dir/install.sh -c"
2607 break
2608 elif test -f "$ac_dir/shtool"; then
2609 ac_aux_dir=$ac_dir
2610 ac_install_sh="$ac_aux_dir/shtool install -c"
2611 break
2612 fi
2613 done
2614 if test -z "$ac_aux_dir"; then
2615 as_fn_error $? "cannot find install-sh, install.sh, or shtool in config \"$srcdir\"/config" "$LINENO" 5
2616 fi
2617
2618 # These three variables are undocumented and unsupported,
2619 # and are intended to be withdrawn in a future Autoconf release.
2620 # They can cause serious problems if a builder's source tree is in a directory
2621 # whose full name contains unusual characters.
2622 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2623 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2624 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2625
2626
2627
2628 # Make sure we can run config.sub.
2629 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2630 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2631
2632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2633 $as_echo_n "checking build system type... " >&6; }
2634 if ${ac_cv_build+:} false; then :
2635 $as_echo_n "(cached) " >&6
2636 else
2637 ac_build_alias=$build_alias
2638 test "x$ac_build_alias" = x &&
2639 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2640 test "x$ac_build_alias" = x &&
2641 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2642 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2643 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2644
2645 fi
2646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2647 $as_echo "$ac_cv_build" >&6; }
2648 case $ac_cv_build in
2649 *-*-*) ;;
2650 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2651 esac
2652 build=$ac_cv_build
2653 ac_save_IFS=$IFS; IFS='-'
2654 set x $ac_cv_build
2655 shift
2656 build_cpu=$1
2657 build_vendor=$2
2658 shift; shift
2659 # Remember, the first character of IFS is used to create $*,
2660 # except with old shells:
2661 build_os=$*
2662 IFS=$ac_save_IFS
2663 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2664
2665
2666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2667 $as_echo_n "checking host system type... " >&6; }
2668 if ${ac_cv_host+:} false; then :
2669 $as_echo_n "(cached) " >&6
2670 else
2671 if test "x$host_alias" = x; then
2672 ac_cv_host=$ac_cv_build
2673 else
2674 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2675 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2676 fi
2677
2678 fi
2679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2680 $as_echo "$ac_cv_host" >&6; }
2681 case $ac_cv_host in
2682 *-*-*) ;;
2683 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2684 esac
2685 host=$ac_cv_host
2686 ac_save_IFS=$IFS; IFS='-'
2687 set x $ac_cv_host
2688 shift
2689 host_cpu=$1
2690 host_vendor=$2
2691 shift; shift
2692 # Remember, the first character of IFS is used to create $*,
2693 # except with old shells:
2694 host_os=$*
2695 IFS=$ac_save_IFS
2696 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2697
2698
2699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2700 $as_echo_n "checking target system type... " >&6; }
2701 if ${ac_cv_target+:} false; then :
2702 $as_echo_n "(cached) " >&6
2703 else
2704 if test "x$target_alias" = x; then
2705 ac_cv_target=$ac_cv_host
2706 else
2707 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2708 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2709 fi
2710
2711 fi
2712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2713 $as_echo "$ac_cv_target" >&6; }
2714 case $ac_cv_target in
2715 *-*-*) ;;
2716 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2717 esac
2718 target=$ac_cv_target
2719 ac_save_IFS=$IFS; IFS='-'
2720 set x $ac_cv_target
2721 shift
2722 target_cpu=$1
2723 target_vendor=$2
2724 shift; shift
2725 # Remember, the first character of IFS is used to create $*,
2726 # except with old shells:
2727 target_os=$*
2728 IFS=$ac_save_IFS
2729 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2730
2731
2732 # The aliases save the names the user supplied, while $host etc.
2733 # will get canonicalized.
2734 test -n "$target_alias" &&
2735 test "$program_prefix$program_suffix$program_transform_name" = \
2736 NONENONEs,x,x, &&
2737 program_prefix=${target_alias}-
2738
2739
2740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2741 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2742 # Check whether --enable-maintainer-mode was given.
2743 if test "${enable_maintainer_mode+set}" = set; then :
2744 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2745 else
2746 USE_MAINTAINER_MODE=no
2747 fi
2748
2749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2750 $as_echo "$USE_MAINTAINER_MODE" >&6; }
2751 if test $USE_MAINTAINER_MODE = yes; then
2752 MAINTAINER_MODE_TRUE=
2753 MAINTAINER_MODE_FALSE='#'
2754 else
2755 MAINTAINER_MODE_TRUE='#'
2756 MAINTAINER_MODE_FALSE=
2757 fi
2758
2759 MAINT=$MAINTAINER_MODE_TRUE
2760
2761
2762 # Check whether --enable-silent-rules was given.
2763 if test "${enable_silent_rules+set}" = set; then :
2764 enableval=$enable_silent_rules;
2765 fi
2766
2767 case $enable_silent_rules in # (((
2768 yes) AM_DEFAULT_VERBOSITY=0;;
2769 no) AM_DEFAULT_VERBOSITY=1;;
2770 *) AM_DEFAULT_VERBOSITY=0;;
2771 esac
2772 am_make=${MAKE-make}
2773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2774 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2775 if ${am_cv_make_support_nested_variables+:} false; then :
2776 $as_echo_n "(cached) " >&6
2777 else
2778 if $as_echo 'TRUE=$(BAR$(V))
2779 BAR0=false
2780 BAR1=true
2781 V=1
2782 am__doit:
2783 @$(TRUE)
2784 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2785 am_cv_make_support_nested_variables=yes
2786 else
2787 am_cv_make_support_nested_variables=no
2788 fi
2789 fi
2790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2791 $as_echo "$am_cv_make_support_nested_variables" >&6; }
2792 if test $am_cv_make_support_nested_variables = yes; then
2793 AM_V='$(V)'
2794 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2795 else
2796 AM_V=$AM_DEFAULT_VERBOSITY
2797 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2798 fi
2799 AM_BACKSLASH='\'
2800
2801 am__api_version='1.15'
2802
2803 # Find a good install program. We prefer a C program (faster),
2804 # so one script is as good as another. But avoid the broken or
2805 # incompatible versions:
2806 # SysV /etc/install, /usr/sbin/install
2807 # SunOS /usr/etc/install
2808 # IRIX /sbin/install
2809 # AIX /bin/install
2810 # AmigaOS /C/install, which installs bootblocks on floppy discs
2811 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2812 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2813 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2814 # OS/2's system install, which has a completely different semantic
2815 # ./install, which can be erroneously created by make from ./install.sh.
2816 # Reject install programs that cannot install multiple files.
2817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2818 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2819 if test -z "$INSTALL"; then
2820 if ${ac_cv_path_install+:} false; then :
2821 $as_echo_n "(cached) " >&6
2822 else
2823 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2824 for as_dir in $PATH
2825 do
2826 IFS=$as_save_IFS
2827 test -z "$as_dir" && as_dir=.
2828 # Account for people who put trailing slashes in PATH elements.
2829 case $as_dir/ in #((
2830 ./ | .// | /[cC]/* | \
2831 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2832 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2833 /usr/ucb/* ) ;;
2834 *)
2835 # OSF1 and SCO ODT 3.0 have their own names for install.
2836 # Don't use installbsd from OSF since it installs stuff as root
2837 # by default.
2838 for ac_prog in ginstall scoinst install; do
2839 for ac_exec_ext in '' $ac_executable_extensions; do
2840 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2841 if test $ac_prog = install &&
2842 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2843 # AIX install. It has an incompatible calling convention.
2844 :
2845 elif test $ac_prog = install &&
2846 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2847 # program-specific install script used by HP pwplus--don't use.
2848 :
2849 else
2850 rm -rf conftest.one conftest.two conftest.dir
2851 echo one > conftest.one
2852 echo two > conftest.two
2853 mkdir conftest.dir
2854 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2855 test -s conftest.one && test -s conftest.two &&
2856 test -s conftest.dir/conftest.one &&
2857 test -s conftest.dir/conftest.two
2858 then
2859 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2860 break 3
2861 fi
2862 fi
2863 fi
2864 done
2865 done
2866 ;;
2867 esac
2868
2869 done
2870 IFS=$as_save_IFS
2871
2872 rm -rf conftest.one conftest.two conftest.dir
2873
2874 fi
2875 if test "${ac_cv_path_install+set}" = set; then
2876 INSTALL=$ac_cv_path_install
2877 else
2878 # As a last resort, use the slow shell script. Don't cache a
2879 # value for INSTALL within a source directory, because that will
2880 # break other packages using the cache if that directory is
2881 # removed, or if the value is a relative name.
2882 INSTALL=$ac_install_sh
2883 fi
2884 fi
2885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2886 $as_echo "$INSTALL" >&6; }
2887
2888 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2889 # It thinks the first close brace ends the variable substitution.
2890 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2891
2892 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2893
2894 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2895
2896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2897 $as_echo_n "checking whether build environment is sane... " >&6; }
2898 # Reject unsafe characters in $srcdir or the absolute working directory
2899 # name. Accept space and tab only in the latter.
2900 am_lf='
2901 '
2902 case `pwd` in
2903 *[\\\"\#\$\&\'\`$am_lf]*)
2904 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2905 esac
2906 case $srcdir in
2907 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2908 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2909 esac
2910
2911 # Do 'set' in a subshell so we don't clobber the current shell's
2912 # arguments. Must try -L first in case configure is actually a
2913 # symlink; some systems play weird games with the mod time of symlinks
2914 # (eg FreeBSD returns the mod time of the symlink's containing
2915 # directory).
2916 if (
2917 am_has_slept=no
2918 for am_try in 1 2; do
2919 echo "timestamp, slept: $am_has_slept" > conftest.file
2920 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2921 if test "$*" = "X"; then
2922 # -L didn't work.
2923 set X `ls -t "$srcdir/configure" conftest.file`
2924 fi
2925 if test "$*" != "X $srcdir/configure conftest.file" \
2926 && test "$*" != "X conftest.file $srcdir/configure"; then
2927
2928 # If neither matched, then we have a broken ls. This can happen
2929 # if, for instance, CONFIG_SHELL is bash and it inherits a
2930 # broken ls alias from the environment. This has actually
2931 # happened. Such a system could not be considered "sane".
2932 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2933 alias in your environment" "$LINENO" 5
2934 fi
2935 if test "$2" = conftest.file || test $am_try -eq 2; then
2936 break
2937 fi
2938 # Just in case.
2939 sleep 1
2940 am_has_slept=yes
2941 done
2942 test "$2" = conftest.file
2943 )
2944 then
2945 # Ok.
2946 :
2947 else
2948 as_fn_error $? "newly created file is older than distributed files!
2949 Check your system clock" "$LINENO" 5
2950 fi
2951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2952 $as_echo "yes" >&6; }
2953 # If we didn't sleep, we still need to ensure time stamps of config.status and
2954 # generated files are strictly newer.
2955 am_sleep_pid=
2956 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2957 ( sleep 1 ) &
2958 am_sleep_pid=$!
2959 fi
2960
2961 rm -f conftest.file
2962
2963 test "$program_prefix" != NONE &&
2964 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2965 # Use a double $ so make ignores it.
2966 test "$program_suffix" != NONE &&
2967 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2968 # Double any \ or $.
2969 # By default was `s,x,x', remove it if useless.
2970 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2971 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2972
2973 # Expand $ac_aux_dir to an absolute path.
2974 am_aux_dir=`cd "$ac_aux_dir" && pwd`
2975
2976 if test x"${MISSING+set}" != xset; then
2977 case $am_aux_dir in
2978 *\ * | *\ *)
2979 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2980 *)
2981 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2982 esac
2983 fi
2984 # Use eval to expand $SHELL
2985 if eval "$MISSING --is-lightweight"; then
2986 am_missing_run="$MISSING "
2987 else
2988 am_missing_run=
2989 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2990 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2991 fi
2992
2993 if test x"${install_sh+set}" != xset; then
2994 case $am_aux_dir in
2995 *\ * | *\ *)
2996 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2997 *)
2998 install_sh="\${SHELL} $am_aux_dir/install-sh"
2999 esac
3000 fi
3001
3002 # Installed binaries are usually stripped using 'strip' when the user
3003 # run "make install-strip". However 'strip' might not be the right
3004 # tool to use in cross-compilation environments, therefore Automake
3005 # will honor the 'STRIP' environment variable to overrule this program.
3006 if test "$cross_compiling" != no; then
3007 if test -n "$ac_tool_prefix"; then
3008 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3009 set dummy ${ac_tool_prefix}strip; ac_word=$2
3010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3011 $as_echo_n "checking for $ac_word... " >&6; }
3012 if ${ac_cv_prog_STRIP+:} false; then :
3013 $as_echo_n "(cached) " >&6
3014 else
3015 if test -n "$STRIP"; then
3016 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3017 else
3018 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3019 for as_dir in $PATH
3020 do
3021 IFS=$as_save_IFS
3022 test -z "$as_dir" && as_dir=.
3023 for ac_exec_ext in '' $ac_executable_extensions; do
3024 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3025 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3026 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3027 break 2
3028 fi
3029 done
3030 done
3031 IFS=$as_save_IFS
3032
3033 fi
3034 fi
3035 STRIP=$ac_cv_prog_STRIP
3036 if test -n "$STRIP"; then
3037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3038 $as_echo "$STRIP" >&6; }
3039 else
3040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3041 $as_echo "no" >&6; }
3042 fi
3043
3044
3045 fi
3046 if test -z "$ac_cv_prog_STRIP"; then
3047 ac_ct_STRIP=$STRIP
3048 # Extract the first word of "strip", so it can be a program name with args.
3049 set dummy strip; ac_word=$2
3050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3051 $as_echo_n "checking for $ac_word... " >&6; }
3052 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
3053 $as_echo_n "(cached) " >&6
3054 else
3055 if test -n "$ac_ct_STRIP"; then
3056 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3057 else
3058 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3059 for as_dir in $PATH
3060 do
3061 IFS=$as_save_IFS
3062 test -z "$as_dir" && as_dir=.
3063 for ac_exec_ext in '' $ac_executable_extensions; do
3064 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3065 ac_cv_prog_ac_ct_STRIP="strip"
3066 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3067 break 2
3068 fi
3069 done
3070 done
3071 IFS=$as_save_IFS
3072
3073 fi
3074 fi
3075 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3076 if test -n "$ac_ct_STRIP"; then
3077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3078 $as_echo "$ac_ct_STRIP" >&6; }
3079 else
3080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3081 $as_echo "no" >&6; }
3082 fi
3083
3084 if test "x$ac_ct_STRIP" = x; then
3085 STRIP=":"
3086 else
3087 case $cross_compiling:$ac_tool_warned in
3088 yes:)
3089 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3090 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3091 ac_tool_warned=yes ;;
3092 esac
3093 STRIP=$ac_ct_STRIP
3094 fi
3095 else
3096 STRIP="$ac_cv_prog_STRIP"
3097 fi
3098
3099 fi
3100 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3101
3102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3103 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3104 if test -z "$MKDIR_P"; then
3105 if ${ac_cv_path_mkdir+:} false; then :
3106 $as_echo_n "(cached) " >&6
3107 else
3108 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3109 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3110 do
3111 IFS=$as_save_IFS
3112 test -z "$as_dir" && as_dir=.
3113 for ac_prog in mkdir gmkdir; do
3114 for ac_exec_ext in '' $ac_executable_extensions; do
3115 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
3116 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3117 'mkdir (GNU coreutils) '* | \
3118 'mkdir (coreutils) '* | \
3119 'mkdir (fileutils) '4.1*)
3120 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3121 break 3;;
3122 esac
3123 done
3124 done
3125 done
3126 IFS=$as_save_IFS
3127
3128 fi
3129
3130 test -d ./--version && rmdir ./--version
3131 if test "${ac_cv_path_mkdir+set}" = set; then
3132 MKDIR_P="$ac_cv_path_mkdir -p"
3133 else
3134 # As a last resort, use the slow shell script. Don't cache a
3135 # value for MKDIR_P within a source directory, because that will
3136 # break other packages using the cache if that directory is
3137 # removed, or if the value is a relative name.
3138 MKDIR_P="$ac_install_sh -d"
3139 fi
3140 fi
3141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3142 $as_echo "$MKDIR_P" >&6; }
3143
3144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3145 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3146 set x ${MAKE-make}
3147 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3148 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3149 $as_echo_n "(cached) " >&6
3150 else
3151 cat >conftest.make <<\_ACEOF
3152 SHELL = /bin/sh
3153 all:
3154 @echo '@@@%%%=$(MAKE)=@@@%%%'
3155 _ACEOF
3156 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3157 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3158 *@@@%%%=?*=@@@%%%*)
3159 eval ac_cv_prog_make_${ac_make}_set=yes;;
3160 *)
3161 eval ac_cv_prog_make_${ac_make}_set=no;;
3162 esac
3163 rm -f conftest.make
3164 fi
3165 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3167 $as_echo "yes" >&6; }
3168 SET_MAKE=
3169 else
3170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3171 $as_echo "no" >&6; }
3172 SET_MAKE="MAKE=${MAKE-make}"
3173 fi
3174
3175 rm -rf .tst 2>/dev/null
3176 mkdir .tst 2>/dev/null
3177 if test -d .tst; then
3178 am__leading_dot=.
3179 else
3180 am__leading_dot=_
3181 fi
3182 rmdir .tst 2>/dev/null
3183
3184 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3185 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3186 # is not polluted with repeated "-I."
3187 am__isrc=' -I$(srcdir)'
3188 # test to see if srcdir already configured
3189 if test -f $srcdir/config.status; then
3190 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3191 fi
3192 fi
3193
3194 # test whether we have cygpath
3195 if test -z "$CYGPATH_W"; then
3196 if (cygpath --version) >/dev/null 2>/dev/null; then
3197 CYGPATH_W='cygpath -w'
3198 else
3199 CYGPATH_W=echo
3200 fi
3201 fi
3202
3203
3204 # Define the identity of the package.
3205 PACKAGE='zfs'
3206 VERSION='0.7.5'
3207
3208
3209 cat >>confdefs.h <<_ACEOF
3210 #define PACKAGE "$PACKAGE"
3211 _ACEOF
3212
3213
3214 cat >>confdefs.h <<_ACEOF
3215 #define VERSION "$VERSION"
3216 _ACEOF
3217
3218 # Some tools Automake needs.
3219
3220 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3221
3222
3223 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3224
3225
3226 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3227
3228
3229 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3230
3231
3232 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3233
3234 # For better backward compatibility. To be removed once Automake 1.9.x
3235 # dies out for good. For more background, see:
3236 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3237 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3238 mkdir_p='$(MKDIR_P)'
3239
3240 # We need awk for the "check" target (and possibly the TAP driver). The
3241 # system "awk" is bad on some platforms.
3242 # Always define AMTAR for backward compatibility. Yes, it's still used
3243 # in the wild :-( We should find a proper way to deprecate it ...
3244 AMTAR='$${TAR-tar}'
3245
3246
3247 # We'll loop over all known methods to create a tar archive until one works.
3248 _am_tools='gnutar pax cpio none'
3249
3250 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3251
3252
3253
3254
3255
3256
3257 # POSIX will say in a future version that running "rm -f" with no argument
3258 # is OK; and we want to be able to make that assumption in our Makefile
3259 # recipes. So use an aggressive probe to check that the usage we want is
3260 # actually supported "in the wild" to an acceptable degree.
3261 # See automake bug#10828.
3262 # To make any issue more visible, cause the running configure to be aborted
3263 # by default if the 'rm' program in use doesn't match our expectations; the
3264 # user can still override this though.
3265 if rm -f && rm -fr && rm -rf; then : OK; else
3266 cat >&2 <<'END'
3267 Oops!
3268
3269 Your 'rm' program seems unable to run without file operands specified
3270 on the command line, even when the '-f' option is present. This is contrary
3271 to the behaviour of most rm programs out there, and not conforming with
3272 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3273
3274 Please tell bug-automake@gnu.org about your system, including the value
3275 of your $PATH and any error possibly output before this message. This
3276 can help us improve future automake versions.
3277
3278 END
3279 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3280 echo 'Configuration will proceed anyway, since you have set the' >&2
3281 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3282 echo >&2
3283 else
3284 cat >&2 <<'END'
3285 Aborting the configuration process, to ensure you take notice of the issue.
3286
3287 You can download and install GNU coreutils to get an 'rm' implementation
3288 that behaves properly: <http://www.gnu.org/software/coreutils/>.
3289
3290 If you want to complete the configuration process using your problematic
3291 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3292 to "yes", and re-run configure.
3293
3294 END
3295 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3296 fi
3297 fi
3298
3299 ac_config_headers="$ac_config_headers zfs_config.h"
3300
3301
3302
3303 ac_ext=c
3304 ac_cpp='$CPP $CPPFLAGS'
3305 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3306 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3307 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3308 if test -n "$ac_tool_prefix"; then
3309 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3310 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3312 $as_echo_n "checking for $ac_word... " >&6; }
3313 if ${ac_cv_prog_CC+:} false; then :
3314 $as_echo_n "(cached) " >&6
3315 else
3316 if test -n "$CC"; then
3317 ac_cv_prog_CC="$CC" # Let the user override the test.
3318 else
3319 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3320 for as_dir in $PATH
3321 do
3322 IFS=$as_save_IFS
3323 test -z "$as_dir" && as_dir=.
3324 for ac_exec_ext in '' $ac_executable_extensions; do
3325 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3326 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3327 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3328 break 2
3329 fi
3330 done
3331 done
3332 IFS=$as_save_IFS
3333
3334 fi
3335 fi
3336 CC=$ac_cv_prog_CC
3337 if test -n "$CC"; then
3338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3339 $as_echo "$CC" >&6; }
3340 else
3341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3342 $as_echo "no" >&6; }
3343 fi
3344
3345
3346 fi
3347 if test -z "$ac_cv_prog_CC"; then
3348 ac_ct_CC=$CC
3349 # Extract the first word of "gcc", so it can be a program name with args.
3350 set dummy gcc; ac_word=$2
3351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3352 $as_echo_n "checking for $ac_word... " >&6; }
3353 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3354 $as_echo_n "(cached) " >&6
3355 else
3356 if test -n "$ac_ct_CC"; then
3357 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3358 else
3359 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3360 for as_dir in $PATH
3361 do
3362 IFS=$as_save_IFS
3363 test -z "$as_dir" && as_dir=.
3364 for ac_exec_ext in '' $ac_executable_extensions; do
3365 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3366 ac_cv_prog_ac_ct_CC="gcc"
3367 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3368 break 2
3369 fi
3370 done
3371 done
3372 IFS=$as_save_IFS
3373
3374 fi
3375 fi
3376 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3377 if test -n "$ac_ct_CC"; then
3378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3379 $as_echo "$ac_ct_CC" >&6; }
3380 else
3381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3382 $as_echo "no" >&6; }
3383 fi
3384
3385 if test "x$ac_ct_CC" = x; then
3386 CC=""
3387 else
3388 case $cross_compiling:$ac_tool_warned in
3389 yes:)
3390 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3391 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3392 ac_tool_warned=yes ;;
3393 esac
3394 CC=$ac_ct_CC
3395 fi
3396 else
3397 CC="$ac_cv_prog_CC"
3398 fi
3399
3400 if test -z "$CC"; then
3401 if test -n "$ac_tool_prefix"; then
3402 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3403 set dummy ${ac_tool_prefix}cc; ac_word=$2
3404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3405 $as_echo_n "checking for $ac_word... " >&6; }
3406 if ${ac_cv_prog_CC+:} false; then :
3407 $as_echo_n "(cached) " >&6
3408 else
3409 if test -n "$CC"; then
3410 ac_cv_prog_CC="$CC" # Let the user override the test.
3411 else
3412 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3413 for as_dir in $PATH
3414 do
3415 IFS=$as_save_IFS
3416 test -z "$as_dir" && as_dir=.
3417 for ac_exec_ext in '' $ac_executable_extensions; do
3418 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3419 ac_cv_prog_CC="${ac_tool_prefix}cc"
3420 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3421 break 2
3422 fi
3423 done
3424 done
3425 IFS=$as_save_IFS
3426
3427 fi
3428 fi
3429 CC=$ac_cv_prog_CC
3430 if test -n "$CC"; then
3431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3432 $as_echo "$CC" >&6; }
3433 else
3434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3435 $as_echo "no" >&6; }
3436 fi
3437
3438
3439 fi
3440 fi
3441 if test -z "$CC"; then
3442 # Extract the first word of "cc", so it can be a program name with args.
3443 set dummy cc; ac_word=$2
3444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3445 $as_echo_n "checking for $ac_word... " >&6; }
3446 if ${ac_cv_prog_CC+:} false; then :
3447 $as_echo_n "(cached) " >&6
3448 else
3449 if test -n "$CC"; then
3450 ac_cv_prog_CC="$CC" # Let the user override the test.
3451 else
3452 ac_prog_rejected=no
3453 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3454 for as_dir in $PATH
3455 do
3456 IFS=$as_save_IFS
3457 test -z "$as_dir" && as_dir=.
3458 for ac_exec_ext in '' $ac_executable_extensions; do
3459 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3460 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3461 ac_prog_rejected=yes
3462 continue
3463 fi
3464 ac_cv_prog_CC="cc"
3465 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3466 break 2
3467 fi
3468 done
3469 done
3470 IFS=$as_save_IFS
3471
3472 if test $ac_prog_rejected = yes; then
3473 # We found a bogon in the path, so make sure we never use it.
3474 set dummy $ac_cv_prog_CC
3475 shift
3476 if test $# != 0; then
3477 # We chose a different compiler from the bogus one.
3478 # However, it has the same basename, so the bogon will be chosen
3479 # first if we set CC to just the basename; use the full file name.
3480 shift
3481 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3482 fi
3483 fi
3484 fi
3485 fi
3486 CC=$ac_cv_prog_CC
3487 if test -n "$CC"; then
3488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3489 $as_echo "$CC" >&6; }
3490 else
3491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3492 $as_echo "no" >&6; }
3493 fi
3494
3495
3496 fi
3497 if test -z "$CC"; then
3498 if test -n "$ac_tool_prefix"; then
3499 for ac_prog in cl.exe
3500 do
3501 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3502 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3504 $as_echo_n "checking for $ac_word... " >&6; }
3505 if ${ac_cv_prog_CC+:} false; then :
3506 $as_echo_n "(cached) " >&6
3507 else
3508 if test -n "$CC"; then
3509 ac_cv_prog_CC="$CC" # Let the user override the test.
3510 else
3511 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3512 for as_dir in $PATH
3513 do
3514 IFS=$as_save_IFS
3515 test -z "$as_dir" && as_dir=.
3516 for ac_exec_ext in '' $ac_executable_extensions; do
3517 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3518 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3519 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3520 break 2
3521 fi
3522 done
3523 done
3524 IFS=$as_save_IFS
3525
3526 fi
3527 fi
3528 CC=$ac_cv_prog_CC
3529 if test -n "$CC"; then
3530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3531 $as_echo "$CC" >&6; }
3532 else
3533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3534 $as_echo "no" >&6; }
3535 fi
3536
3537
3538 test -n "$CC" && break
3539 done
3540 fi
3541 if test -z "$CC"; then
3542 ac_ct_CC=$CC
3543 for ac_prog in cl.exe
3544 do
3545 # Extract the first word of "$ac_prog", so it can be a program name with args.
3546 set dummy $ac_prog; ac_word=$2
3547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3548 $as_echo_n "checking for $ac_word... " >&6; }
3549 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3550 $as_echo_n "(cached) " >&6
3551 else
3552 if test -n "$ac_ct_CC"; then
3553 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3554 else
3555 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3556 for as_dir in $PATH
3557 do
3558 IFS=$as_save_IFS
3559 test -z "$as_dir" && as_dir=.
3560 for ac_exec_ext in '' $ac_executable_extensions; do
3561 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3562 ac_cv_prog_ac_ct_CC="$ac_prog"
3563 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3564 break 2
3565 fi
3566 done
3567 done
3568 IFS=$as_save_IFS
3569
3570 fi
3571 fi
3572 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3573 if test -n "$ac_ct_CC"; then
3574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3575 $as_echo "$ac_ct_CC" >&6; }
3576 else
3577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3578 $as_echo "no" >&6; }
3579 fi
3580
3581
3582 test -n "$ac_ct_CC" && break
3583 done
3584
3585 if test "x$ac_ct_CC" = x; then
3586 CC=""
3587 else
3588 case $cross_compiling:$ac_tool_warned in
3589 yes:)
3590 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3591 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3592 ac_tool_warned=yes ;;
3593 esac
3594 CC=$ac_ct_CC
3595 fi
3596 fi
3597
3598 fi
3599
3600
3601 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3602 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3603 as_fn_error $? "no acceptable C compiler found in \$PATH
3604 See \`config.log' for more details" "$LINENO" 5; }
3605
3606 # Provide some information about the compiler.
3607 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3608 set X $ac_compile
3609 ac_compiler=$2
3610 for ac_option in --version -v -V -qversion; do
3611 { { ac_try="$ac_compiler $ac_option >&5"
3612 case "(($ac_try" in
3613 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3614 *) ac_try_echo=$ac_try;;
3615 esac
3616 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3617 $as_echo "$ac_try_echo"; } >&5
3618 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3619 ac_status=$?
3620 if test -s conftest.err; then
3621 sed '10a\
3622 ... rest of stderr output deleted ...
3623 10q' conftest.err >conftest.er1
3624 cat conftest.er1 >&5
3625 fi
3626 rm -f conftest.er1 conftest.err
3627 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3628 test $ac_status = 0; }
3629 done
3630
3631 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3632 /* end confdefs.h. */
3633
3634 int
3635 main ()
3636 {
3637
3638 ;
3639 return 0;
3640 }
3641 _ACEOF
3642 ac_clean_files_save=$ac_clean_files
3643 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3644 # Try to create an executable without -o first, disregard a.out.
3645 # It will help us diagnose broken compilers, and finding out an intuition
3646 # of exeext.
3647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3648 $as_echo_n "checking whether the C compiler works... " >&6; }
3649 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3650
3651 # The possible output files:
3652 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3653
3654 ac_rmfiles=
3655 for ac_file in $ac_files
3656 do
3657 case $ac_file in
3658 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3659 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3660 esac
3661 done
3662 rm -f $ac_rmfiles
3663
3664 if { { ac_try="$ac_link_default"
3665 case "(($ac_try" in
3666 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3667 *) ac_try_echo=$ac_try;;
3668 esac
3669 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3670 $as_echo "$ac_try_echo"; } >&5
3671 (eval "$ac_link_default") 2>&5
3672 ac_status=$?
3673 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3674 test $ac_status = 0; }; then :
3675 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3676 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3677 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3678 # so that the user can short-circuit this test for compilers unknown to
3679 # Autoconf.
3680 for ac_file in $ac_files ''
3681 do
3682 test -f "$ac_file" || continue
3683 case $ac_file in
3684 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3685 ;;
3686 [ab].out )
3687 # We found the default executable, but exeext='' is most
3688 # certainly right.
3689 break;;
3690 *.* )
3691 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3692 then :; else
3693 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3694 fi
3695 # We set ac_cv_exeext here because the later test for it is not
3696 # safe: cross compilers may not add the suffix if given an `-o'
3697 # argument, so we may need to know it at that point already.
3698 # Even if this section looks crufty: it has the advantage of
3699 # actually working.
3700 break;;
3701 * )
3702 break;;
3703 esac
3704 done
3705 test "$ac_cv_exeext" = no && ac_cv_exeext=
3706
3707 else
3708 ac_file=''
3709 fi
3710 if test -z "$ac_file"; then :
3711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3712 $as_echo "no" >&6; }
3713 $as_echo "$as_me: failed program was:" >&5
3714 sed 's/^/| /' conftest.$ac_ext >&5
3715
3716 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3717 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3718 as_fn_error 77 "C compiler cannot create executables
3719 See \`config.log' for more details" "$LINENO" 5; }
3720 else
3721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3722 $as_echo "yes" >&6; }
3723 fi
3724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3725 $as_echo_n "checking for C compiler default output file name... " >&6; }
3726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3727 $as_echo "$ac_file" >&6; }
3728 ac_exeext=$ac_cv_exeext
3729
3730 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3731 ac_clean_files=$ac_clean_files_save
3732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3733 $as_echo_n "checking for suffix of executables... " >&6; }
3734 if { { ac_try="$ac_link"
3735 case "(($ac_try" in
3736 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3737 *) ac_try_echo=$ac_try;;
3738 esac
3739 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3740 $as_echo "$ac_try_echo"; } >&5
3741 (eval "$ac_link") 2>&5
3742 ac_status=$?
3743 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3744 test $ac_status = 0; }; then :
3745 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3746 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3747 # work properly (i.e., refer to `conftest.exe'), while it won't with
3748 # `rm'.
3749 for ac_file in conftest.exe conftest conftest.*; do
3750 test -f "$ac_file" || continue
3751 case $ac_file in
3752 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3753 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3754 break;;
3755 * ) break;;
3756 esac
3757 done
3758 else
3759 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3760 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3761 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3762 See \`config.log' for more details" "$LINENO" 5; }
3763 fi
3764 rm -f conftest conftest$ac_cv_exeext
3765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3766 $as_echo "$ac_cv_exeext" >&6; }
3767
3768 rm -f conftest.$ac_ext
3769 EXEEXT=$ac_cv_exeext
3770 ac_exeext=$EXEEXT
3771 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3772 /* end confdefs.h. */
3773 #include <stdio.h>
3774 int
3775 main ()
3776 {
3777 FILE *f = fopen ("conftest.out", "w");
3778 return ferror (f) || fclose (f) != 0;
3779
3780 ;
3781 return 0;
3782 }
3783 _ACEOF
3784 ac_clean_files="$ac_clean_files conftest.out"
3785 # Check that the compiler produces executables we can run. If not, either
3786 # the compiler is broken, or we cross compile.
3787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3788 $as_echo_n "checking whether we are cross compiling... " >&6; }
3789 if test "$cross_compiling" != yes; then
3790 { { ac_try="$ac_link"
3791 case "(($ac_try" in
3792 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3793 *) ac_try_echo=$ac_try;;
3794 esac
3795 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3796 $as_echo "$ac_try_echo"; } >&5
3797 (eval "$ac_link") 2>&5
3798 ac_status=$?
3799 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3800 test $ac_status = 0; }
3801 if { ac_try='./conftest$ac_cv_exeext'
3802 { { case "(($ac_try" in
3803 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3804 *) ac_try_echo=$ac_try;;
3805 esac
3806 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3807 $as_echo "$ac_try_echo"; } >&5
3808 (eval "$ac_try") 2>&5
3809 ac_status=$?
3810 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3811 test $ac_status = 0; }; }; then
3812 cross_compiling=no
3813 else
3814 if test "$cross_compiling" = maybe; then
3815 cross_compiling=yes
3816 else
3817 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3818 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3819 as_fn_error $? "cannot run C compiled programs.
3820 If you meant to cross compile, use \`--host'.
3821 See \`config.log' for more details" "$LINENO" 5; }
3822 fi
3823 fi
3824 fi
3825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3826 $as_echo "$cross_compiling" >&6; }
3827
3828 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3829 ac_clean_files=$ac_clean_files_save
3830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3831 $as_echo_n "checking for suffix of object files... " >&6; }
3832 if ${ac_cv_objext+:} false; then :
3833 $as_echo_n "(cached) " >&6
3834 else
3835 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3836 /* end confdefs.h. */
3837
3838 int
3839 main ()
3840 {
3841
3842 ;
3843 return 0;
3844 }
3845 _ACEOF
3846 rm -f conftest.o conftest.obj
3847 if { { ac_try="$ac_compile"
3848 case "(($ac_try" in
3849 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3850 *) ac_try_echo=$ac_try;;
3851 esac
3852 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3853 $as_echo "$ac_try_echo"; } >&5
3854 (eval "$ac_compile") 2>&5
3855 ac_status=$?
3856 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3857 test $ac_status = 0; }; then :
3858 for ac_file in conftest.o conftest.obj conftest.*; do
3859 test -f "$ac_file" || continue;
3860 case $ac_file in
3861 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3862 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3863 break;;
3864 esac
3865 done
3866 else
3867 $as_echo "$as_me: failed program was:" >&5
3868 sed 's/^/| /' conftest.$ac_ext >&5
3869
3870 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3871 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3872 as_fn_error $? "cannot compute suffix of object files: cannot compile
3873 See \`config.log' for more details" "$LINENO" 5; }
3874 fi
3875 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3876 fi
3877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3878 $as_echo "$ac_cv_objext" >&6; }
3879 OBJEXT=$ac_cv_objext
3880 ac_objext=$OBJEXT
3881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3882 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3883 if ${ac_cv_c_compiler_gnu+:} false; then :
3884 $as_echo_n "(cached) " >&6
3885 else
3886 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3887 /* end confdefs.h. */
3888
3889 int
3890 main ()
3891 {
3892 #ifndef __GNUC__
3893 choke me
3894 #endif
3895
3896 ;
3897 return 0;
3898 }
3899 _ACEOF
3900 if ac_fn_c_try_compile "$LINENO"; then :
3901 ac_compiler_gnu=yes
3902 else
3903 ac_compiler_gnu=no
3904 fi
3905 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3906 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3907
3908 fi
3909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3910 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3911 if test $ac_compiler_gnu = yes; then
3912 GCC=yes
3913 else
3914 GCC=
3915 fi
3916 ac_test_CFLAGS=${CFLAGS+set}
3917 ac_save_CFLAGS=$CFLAGS
3918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3919 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3920 if ${ac_cv_prog_cc_g+:} false; then :
3921 $as_echo_n "(cached) " >&6
3922 else
3923 ac_save_c_werror_flag=$ac_c_werror_flag
3924 ac_c_werror_flag=yes
3925 ac_cv_prog_cc_g=no
3926 CFLAGS="-g"
3927 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3928 /* end confdefs.h. */
3929
3930 int
3931 main ()
3932 {
3933
3934 ;
3935 return 0;
3936 }
3937 _ACEOF
3938 if ac_fn_c_try_compile "$LINENO"; then :
3939 ac_cv_prog_cc_g=yes
3940 else
3941 CFLAGS=""
3942 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3943 /* end confdefs.h. */
3944
3945 int
3946 main ()
3947 {
3948
3949 ;
3950 return 0;
3951 }
3952 _ACEOF
3953 if ac_fn_c_try_compile "$LINENO"; then :
3954
3955 else
3956 ac_c_werror_flag=$ac_save_c_werror_flag
3957 CFLAGS="-g"
3958 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3959 /* end confdefs.h. */
3960
3961 int
3962 main ()
3963 {
3964
3965 ;
3966 return 0;
3967 }
3968 _ACEOF
3969 if ac_fn_c_try_compile "$LINENO"; then :
3970 ac_cv_prog_cc_g=yes
3971 fi
3972 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3973 fi
3974 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3975 fi
3976 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3977 ac_c_werror_flag=$ac_save_c_werror_flag
3978 fi
3979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3980 $as_echo "$ac_cv_prog_cc_g" >&6; }
3981 if test "$ac_test_CFLAGS" = set; then
3982 CFLAGS=$ac_save_CFLAGS
3983 elif test $ac_cv_prog_cc_g = yes; then
3984 if test "$GCC" = yes; then
3985 CFLAGS="-g -O2"
3986 else
3987 CFLAGS="-g"
3988 fi
3989 else
3990 if test "$GCC" = yes; then
3991 CFLAGS="-O2"
3992 else
3993 CFLAGS=
3994 fi
3995 fi
3996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3997 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3998 if ${ac_cv_prog_cc_c89+:} false; then :
3999 $as_echo_n "(cached) " >&6
4000 else
4001 ac_cv_prog_cc_c89=no
4002 ac_save_CC=$CC
4003 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4004 /* end confdefs.h. */
4005 #include <stdarg.h>
4006 #include <stdio.h>
4007 struct stat;
4008 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4009 struct buf { int x; };
4010 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4011 static char *e (p, i)
4012 char **p;
4013 int i;
4014 {
4015 return p[i];
4016 }
4017 static char *f (char * (*g) (char **, int), char **p, ...)
4018 {
4019 char *s;
4020 va_list v;
4021 va_start (v,p);
4022 s = g (p, va_arg (v,int));
4023 va_end (v);
4024 return s;
4025 }
4026
4027 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4028 function prototypes and stuff, but not '\xHH' hex character constants.
4029 These don't provoke an error unfortunately, instead are silently treated
4030 as 'x'. The following induces an error, until -std is added to get
4031 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4032 array size at least. It's necessary to write '\x00'==0 to get something
4033 that's true only with -std. */
4034 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4035
4036 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4037 inside strings and character constants. */
4038 #define FOO(x) 'x'
4039 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4040
4041 int test (int i, double x);
4042 struct s1 {int (*f) (int a);};
4043 struct s2 {int (*f) (double a);};
4044 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4045 int argc;
4046 char **argv;
4047 int
4048 main ()
4049 {
4050 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4051 ;
4052 return 0;
4053 }
4054 _ACEOF
4055 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4056 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4057 do
4058 CC="$ac_save_CC $ac_arg"
4059 if ac_fn_c_try_compile "$LINENO"; then :
4060 ac_cv_prog_cc_c89=$ac_arg
4061 fi
4062 rm -f core conftest.err conftest.$ac_objext
4063 test "x$ac_cv_prog_cc_c89" != "xno" && break
4064 done
4065 rm -f conftest.$ac_ext
4066 CC=$ac_save_CC
4067
4068 fi
4069 # AC_CACHE_VAL
4070 case "x$ac_cv_prog_cc_c89" in
4071 x)
4072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4073 $as_echo "none needed" >&6; } ;;
4074 xno)
4075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4076 $as_echo "unsupported" >&6; } ;;
4077 *)
4078 CC="$CC $ac_cv_prog_cc_c89"
4079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4080 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4081 esac
4082 if test "x$ac_cv_prog_cc_c89" != xno; then :
4083
4084 fi
4085
4086 ac_ext=c
4087 ac_cpp='$CPP $CPPFLAGS'
4088 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4089 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4090 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4091
4092 ac_ext=c
4093 ac_cpp='$CPP $CPPFLAGS'
4094 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4095 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4096 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4098 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4099 if ${am_cv_prog_cc_c_o+:} false; then :
4100 $as_echo_n "(cached) " >&6
4101 else
4102 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4103 /* end confdefs.h. */
4104
4105 int
4106 main ()
4107 {
4108
4109 ;
4110 return 0;
4111 }
4112 _ACEOF
4113 # Make sure it works both with $CC and with simple cc.
4114 # Following AC_PROG_CC_C_O, we do the test twice because some
4115 # compilers refuse to overwrite an existing .o file with -o,
4116 # though they will create one.
4117 am_cv_prog_cc_c_o=yes
4118 for am_i in 1 2; do
4119 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4120 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4121 ac_status=$?
4122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4123 (exit $ac_status); } \
4124 && test -f conftest2.$ac_objext; then
4125 : OK
4126 else
4127 am_cv_prog_cc_c_o=no
4128 break
4129 fi
4130 done
4131 rm -f core conftest*
4132 unset am_i
4133 fi
4134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4135 $as_echo "$am_cv_prog_cc_c_o" >&6; }
4136 if test "$am_cv_prog_cc_c_o" != yes; then
4137 # Losing compiler, so override with the script.
4138 # FIXME: It is wrong to rewrite CC.
4139 # But if we don't then we get into trouble of one sort or another.
4140 # A longer-term fix would be to have automake use am__CC in this case,
4141 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4142 CC="$am_aux_dir/compile $CC"
4143 fi
4144 ac_ext=c
4145 ac_cpp='$CPP $CPPFLAGS'
4146 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4147 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4148 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4149
4150 DEPDIR="${am__leading_dot}deps"
4151
4152 ac_config_commands="$ac_config_commands depfiles"
4153
4154
4155 am_make=${MAKE-make}
4156 cat > confinc << 'END'
4157 am__doit:
4158 @echo this is the am__doit target
4159 .PHONY: am__doit
4160 END
4161 # If we don't find an include directive, just comment out the code.
4162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4163 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4164 am__include="#"
4165 am__quote=
4166 _am_result=none
4167 # First try GNU make style include.
4168 echo "include confinc" > confmf
4169 # Ignore all kinds of additional output from 'make'.
4170 case `$am_make -s -f confmf 2> /dev/null` in #(
4171 *the\ am__doit\ target*)
4172 am__include=include
4173 am__quote=
4174 _am_result=GNU
4175 ;;
4176 esac
4177 # Now try BSD make style include.
4178 if test "$am__include" = "#"; then
4179 echo '.include "confinc"' > confmf
4180 case `$am_make -s -f confmf 2> /dev/null` in #(
4181 *the\ am__doit\ target*)
4182 am__include=.include
4183 am__quote="\""
4184 _am_result=BSD
4185 ;;
4186 esac
4187 fi
4188
4189
4190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4191 $as_echo "$_am_result" >&6; }
4192 rm -f confinc confmf
4193
4194 # Check whether --enable-dependency-tracking was given.
4195 if test "${enable_dependency_tracking+set}" = set; then :
4196 enableval=$enable_dependency_tracking;
4197 fi
4198
4199 if test "x$enable_dependency_tracking" != xno; then
4200 am_depcomp="$ac_aux_dir/depcomp"
4201 AMDEPBACKSLASH='\'
4202 am__nodep='_no'
4203 fi
4204 if test "x$enable_dependency_tracking" != xno; then
4205 AMDEP_TRUE=
4206 AMDEP_FALSE='#'
4207 else
4208 AMDEP_TRUE='#'
4209 AMDEP_FALSE=
4210 fi
4211
4212
4213
4214 depcc="$CC" am_compiler_list=
4215
4216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4217 $as_echo_n "checking dependency style of $depcc... " >&6; }
4218 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4219 $as_echo_n "(cached) " >&6
4220 else
4221 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4222 # We make a subdir and do the tests there. Otherwise we can end up
4223 # making bogus files that we don't know about and never remove. For
4224 # instance it was reported that on HP-UX the gcc test will end up
4225 # making a dummy file named 'D' -- because '-MD' means "put the output
4226 # in D".
4227 rm -rf conftest.dir
4228 mkdir conftest.dir
4229 # Copy depcomp to subdir because otherwise we won't find it if we're
4230 # using a relative directory.
4231 cp "$am_depcomp" conftest.dir
4232 cd conftest.dir
4233 # We will build objects and dependencies in a subdirectory because
4234 # it helps to detect inapplicable dependency modes. For instance
4235 # both Tru64's cc and ICC support -MD to output dependencies as a
4236 # side effect of compilation, but ICC will put the dependencies in
4237 # the current directory while Tru64 will put them in the object
4238 # directory.
4239 mkdir sub
4240
4241 am_cv_CC_dependencies_compiler_type=none
4242 if test "$am_compiler_list" = ""; then
4243 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4244 fi
4245 am__universal=false
4246 case " $depcc " in #(
4247 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4248 esac
4249
4250 for depmode in $am_compiler_list; do
4251 # Setup a source with many dependencies, because some compilers
4252 # like to wrap large dependency lists on column 80 (with \), and
4253 # we should not choose a depcomp mode which is confused by this.
4254 #
4255 # We need to recreate these files for each test, as the compiler may
4256 # overwrite some of them when testing with obscure command lines.
4257 # This happens at least with the AIX C compiler.
4258 : > sub/conftest.c
4259 for i in 1 2 3 4 5 6; do
4260 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4261 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4262 # Solaris 10 /bin/sh.
4263 echo '/* dummy */' > sub/conftst$i.h
4264 done
4265 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4266
4267 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4268 # mode. It turns out that the SunPro C++ compiler does not properly
4269 # handle '-M -o', and we need to detect this. Also, some Intel
4270 # versions had trouble with output in subdirs.
4271 am__obj=sub/conftest.${OBJEXT-o}
4272 am__minus_obj="-o $am__obj"
4273 case $depmode in
4274 gcc)
4275 # This depmode causes a compiler race in universal mode.
4276 test "$am__universal" = false || continue
4277 ;;
4278 nosideeffect)
4279 # After this tag, mechanisms are not by side-effect, so they'll
4280 # only be used when explicitly requested.
4281 if test "x$enable_dependency_tracking" = xyes; then
4282 continue
4283 else
4284 break
4285 fi
4286 ;;
4287 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4288 # This compiler won't grok '-c -o', but also, the minuso test has
4289 # not run yet. These depmodes are late enough in the game, and
4290 # so weak that their functioning should not be impacted.
4291 am__obj=conftest.${OBJEXT-o}
4292 am__minus_obj=
4293 ;;
4294 none) break ;;
4295 esac
4296 if depmode=$depmode \
4297 source=sub/conftest.c object=$am__obj \
4298 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4299 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4300 >/dev/null 2>conftest.err &&
4301 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4302 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4303 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4304 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4305 # icc doesn't choke on unknown options, it will just issue warnings
4306 # or remarks (even with -Werror). So we grep stderr for any message
4307 # that says an option was ignored or not supported.
4308 # When given -MP, icc 7.0 and 7.1 complain thusly:
4309 # icc: Command line warning: ignoring option '-M'; no argument required
4310 # The diagnosis changed in icc 8.0:
4311 # icc: Command line remark: option '-MP' not supported
4312 if (grep 'ignoring option' conftest.err ||
4313 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4314 am_cv_CC_dependencies_compiler_type=$depmode
4315 break
4316 fi
4317 fi
4318 done
4319
4320 cd ..
4321 rm -rf conftest.dir
4322 else
4323 am_cv_CC_dependencies_compiler_type=none
4324 fi
4325
4326 fi
4327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4328 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4329 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4330
4331 if
4332 test "x$enable_dependency_tracking" != xno \
4333 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4334 am__fastdepCC_TRUE=
4335 am__fastdepCC_FALSE='#'
4336 else
4337 am__fastdepCC_TRUE='#'
4338 am__fastdepCC_FALSE=
4339 fi
4340
4341
4342 case `pwd` in
4343 *\ * | *\ *)
4344 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4345 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4346 esac
4347
4348
4349
4350 macro_version='2.4.6'
4351 macro_revision='2.4.6'
4352
4353
4354
4355
4356
4357
4358
4359
4360
4361
4362
4363
4364
4365 ltmain=$ac_aux_dir/ltmain.sh
4366
4367 # Backslashify metacharacters that are still active within
4368 # double-quoted strings.
4369 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4370
4371 # Same as above, but do not quote variable references.
4372 double_quote_subst='s/\(["`\\]\)/\\\1/g'
4373
4374 # Sed substitution to delay expansion of an escaped shell variable in a
4375 # double_quote_subst'ed string.
4376 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4377
4378 # Sed substitution to delay expansion of an escaped single quote.
4379 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4380
4381 # Sed substitution to avoid accidental globbing in evaled expressions
4382 no_glob_subst='s/\*/\\\*/g'
4383
4384 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4385 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4386 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4387
4388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4389 $as_echo_n "checking how to print strings... " >&6; }
4390 # Test print first, because it will be a builtin if present.
4391 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
4392 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4393 ECHO='print -r --'
4394 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4395 ECHO='printf %s\n'
4396 else
4397 # Use this function as a fallback that always works.
4398 func_fallback_echo ()
4399 {
4400 eval 'cat <<_LTECHO_EOF
4401 $1
4402 _LTECHO_EOF'
4403 }
4404 ECHO='func_fallback_echo'
4405 fi
4406
4407 # func_echo_all arg...
4408 # Invoke $ECHO with all args, space-separated.
4409 func_echo_all ()
4410 {
4411 $ECHO ""
4412 }
4413
4414 case $ECHO in
4415 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4416 $as_echo "printf" >&6; } ;;
4417 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4418 $as_echo "print -r" >&6; } ;;
4419 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4420 $as_echo "cat" >&6; } ;;
4421 esac
4422
4423
4424
4425
4426
4427
4428
4429
4430
4431
4432
4433
4434
4435
4436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4437 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4438 if ${ac_cv_path_SED+:} false; then :
4439 $as_echo_n "(cached) " >&6
4440 else
4441 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4442 for ac_i in 1 2 3 4 5 6 7; do
4443 ac_script="$ac_script$as_nl$ac_script"
4444 done
4445 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4446 { ac_script=; unset ac_script;}
4447 if test -z "$SED"; then
4448 ac_path_SED_found=false
4449 # Loop through the user's path and test for each of PROGNAME-LIST
4450 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4451 for as_dir in $PATH
4452 do
4453 IFS=$as_save_IFS
4454 test -z "$as_dir" && as_dir=.
4455 for ac_prog in sed gsed; do
4456 for ac_exec_ext in '' $ac_executable_extensions; do
4457 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4458 as_fn_executable_p "$ac_path_SED" || continue
4459 # Check for GNU ac_path_SED and select it if it is found.
4460 # Check for GNU $ac_path_SED
4461 case `"$ac_path_SED" --version 2>&1` in
4462 *GNU*)
4463 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4464 *)
4465 ac_count=0
4466 $as_echo_n 0123456789 >"conftest.in"
4467 while :
4468 do
4469 cat "conftest.in" "conftest.in" >"conftest.tmp"
4470 mv "conftest.tmp" "conftest.in"
4471 cp "conftest.in" "conftest.nl"
4472 $as_echo '' >> "conftest.nl"
4473 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4474 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4475 as_fn_arith $ac_count + 1 && ac_count=$as_val
4476 if test $ac_count -gt ${ac_path_SED_max-0}; then
4477 # Best one so far, save it but keep looking for a better one
4478 ac_cv_path_SED="$ac_path_SED"
4479 ac_path_SED_max=$ac_count
4480 fi
4481 # 10*(2^10) chars as input seems more than enough
4482 test $ac_count -gt 10 && break
4483 done
4484 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4485 esac
4486
4487 $ac_path_SED_found && break 3
4488 done
4489 done
4490 done
4491 IFS=$as_save_IFS
4492 if test -z "$ac_cv_path_SED"; then
4493 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4494 fi
4495 else
4496 ac_cv_path_SED=$SED
4497 fi
4498
4499 fi
4500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4501 $as_echo "$ac_cv_path_SED" >&6; }
4502 SED="$ac_cv_path_SED"
4503 rm -f conftest.sed
4504
4505 test -z "$SED" && SED=sed
4506 Xsed="$SED -e 1s/^X//"
4507
4508
4509
4510
4511
4512
4513
4514
4515
4516
4517
4518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4519 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4520 if ${ac_cv_path_GREP+:} false; then :
4521 $as_echo_n "(cached) " >&6
4522 else
4523 if test -z "$GREP"; then
4524 ac_path_GREP_found=false
4525 # Loop through the user's path and test for each of PROGNAME-LIST
4526 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4527 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4528 do
4529 IFS=$as_save_IFS
4530 test -z "$as_dir" && as_dir=.
4531 for ac_prog in grep ggrep; do
4532 for ac_exec_ext in '' $ac_executable_extensions; do
4533 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4534 as_fn_executable_p "$ac_path_GREP" || continue
4535 # Check for GNU ac_path_GREP and select it if it is found.
4536 # Check for GNU $ac_path_GREP
4537 case `"$ac_path_GREP" --version 2>&1` in
4538 *GNU*)
4539 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4540 *)
4541 ac_count=0
4542 $as_echo_n 0123456789 >"conftest.in"
4543 while :
4544 do
4545 cat "conftest.in" "conftest.in" >"conftest.tmp"
4546 mv "conftest.tmp" "conftest.in"
4547 cp "conftest.in" "conftest.nl"
4548 $as_echo 'GREP' >> "conftest.nl"
4549 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4550 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4551 as_fn_arith $ac_count + 1 && ac_count=$as_val
4552 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4553 # Best one so far, save it but keep looking for a better one
4554 ac_cv_path_GREP="$ac_path_GREP"
4555 ac_path_GREP_max=$ac_count
4556 fi
4557 # 10*(2^10) chars as input seems more than enough
4558 test $ac_count -gt 10 && break
4559 done
4560 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4561 esac
4562
4563 $ac_path_GREP_found && break 3
4564 done
4565 done
4566 done
4567 IFS=$as_save_IFS
4568 if test -z "$ac_cv_path_GREP"; then
4569 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4570 fi
4571 else
4572 ac_cv_path_GREP=$GREP
4573 fi
4574
4575 fi
4576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4577 $as_echo "$ac_cv_path_GREP" >&6; }
4578 GREP="$ac_cv_path_GREP"
4579
4580
4581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4582 $as_echo_n "checking for egrep... " >&6; }
4583 if ${ac_cv_path_EGREP+:} false; then :
4584 $as_echo_n "(cached) " >&6
4585 else
4586 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4587 then ac_cv_path_EGREP="$GREP -E"
4588 else
4589 if test -z "$EGREP"; then
4590 ac_path_EGREP_found=false
4591 # Loop through the user's path and test for each of PROGNAME-LIST
4592 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4593 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4594 do
4595 IFS=$as_save_IFS
4596 test -z "$as_dir" && as_dir=.
4597 for ac_prog in egrep; do
4598 for ac_exec_ext in '' $ac_executable_extensions; do
4599 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4600 as_fn_executable_p "$ac_path_EGREP" || continue
4601 # Check for GNU ac_path_EGREP and select it if it is found.
4602 # Check for GNU $ac_path_EGREP
4603 case `"$ac_path_EGREP" --version 2>&1` in
4604 *GNU*)
4605 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4606 *)
4607 ac_count=0
4608 $as_echo_n 0123456789 >"conftest.in"
4609 while :
4610 do
4611 cat "conftest.in" "conftest.in" >"conftest.tmp"
4612 mv "conftest.tmp" "conftest.in"
4613 cp "conftest.in" "conftest.nl"
4614 $as_echo 'EGREP' >> "conftest.nl"
4615 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4616 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4617 as_fn_arith $ac_count + 1 && ac_count=$as_val
4618 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4619 # Best one so far, save it but keep looking for a better one
4620 ac_cv_path_EGREP="$ac_path_EGREP"
4621 ac_path_EGREP_max=$ac_count
4622 fi
4623 # 10*(2^10) chars as input seems more than enough
4624 test $ac_count -gt 10 && break
4625 done
4626 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4627 esac
4628
4629 $ac_path_EGREP_found && break 3
4630 done
4631 done
4632 done
4633 IFS=$as_save_IFS
4634 if test -z "$ac_cv_path_EGREP"; then
4635 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4636 fi
4637 else
4638 ac_cv_path_EGREP=$EGREP
4639 fi
4640
4641 fi
4642 fi
4643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4644 $as_echo "$ac_cv_path_EGREP" >&6; }
4645 EGREP="$ac_cv_path_EGREP"
4646
4647
4648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4649 $as_echo_n "checking for fgrep... " >&6; }
4650 if ${ac_cv_path_FGREP+:} false; then :
4651 $as_echo_n "(cached) " >&6
4652 else
4653 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4654 then ac_cv_path_FGREP="$GREP -F"
4655 else
4656 if test -z "$FGREP"; then
4657 ac_path_FGREP_found=false
4658 # Loop through the user's path and test for each of PROGNAME-LIST
4659 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4660 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4661 do
4662 IFS=$as_save_IFS
4663 test -z "$as_dir" && as_dir=.
4664 for ac_prog in fgrep; do
4665 for ac_exec_ext in '' $ac_executable_extensions; do
4666 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4667 as_fn_executable_p "$ac_path_FGREP" || continue
4668 # Check for GNU ac_path_FGREP and select it if it is found.
4669 # Check for GNU $ac_path_FGREP
4670 case `"$ac_path_FGREP" --version 2>&1` in
4671 *GNU*)
4672 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4673 *)
4674 ac_count=0
4675 $as_echo_n 0123456789 >"conftest.in"
4676 while :
4677 do
4678 cat "conftest.in" "conftest.in" >"conftest.tmp"
4679 mv "conftest.tmp" "conftest.in"
4680 cp "conftest.in" "conftest.nl"
4681 $as_echo 'FGREP' >> "conftest.nl"
4682 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4683 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4684 as_fn_arith $ac_count + 1 && ac_count=$as_val
4685 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4686 # Best one so far, save it but keep looking for a better one
4687 ac_cv_path_FGREP="$ac_path_FGREP"
4688 ac_path_FGREP_max=$ac_count
4689 fi
4690 # 10*(2^10) chars as input seems more than enough
4691 test $ac_count -gt 10 && break
4692 done
4693 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4694 esac
4695
4696 $ac_path_FGREP_found && break 3
4697 done
4698 done
4699 done
4700 IFS=$as_save_IFS
4701 if test -z "$ac_cv_path_FGREP"; then
4702 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4703 fi
4704 else
4705 ac_cv_path_FGREP=$FGREP
4706 fi
4707
4708 fi
4709 fi
4710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4711 $as_echo "$ac_cv_path_FGREP" >&6; }
4712 FGREP="$ac_cv_path_FGREP"
4713
4714
4715 test -z "$GREP" && GREP=grep
4716
4717
4718
4719
4720
4721
4722
4723
4724
4725
4726
4727
4728
4729
4730
4731
4732
4733
4734
4735 # Check whether --with-gnu-ld was given.
4736 if test "${with_gnu_ld+set}" = set; then :
4737 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
4738 else
4739 with_gnu_ld=no
4740 fi
4741
4742 ac_prog=ld
4743 if test yes = "$GCC"; then
4744 # Check if gcc -print-prog-name=ld gives a path.
4745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4746 $as_echo_n "checking for ld used by $CC... " >&6; }
4747 case $host in
4748 *-*-mingw*)
4749 # gcc leaves a trailing carriage return, which upsets mingw
4750 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4751 *)
4752 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4753 esac
4754 case $ac_prog in
4755 # Accept absolute paths.
4756 [\\/]* | ?:[\\/]*)
4757 re_direlt='/[^/][^/]*/\.\./'
4758 # Canonicalize the pathname of ld
4759 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4760 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4761 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4762 done
4763 test -z "$LD" && LD=$ac_prog
4764 ;;
4765 "")
4766 # If it fails, then pretend we aren't using GCC.
4767 ac_prog=ld
4768 ;;
4769 *)
4770 # If it is relative, then search for the first ld in PATH.
4771 with_gnu_ld=unknown
4772 ;;
4773 esac
4774 elif test yes = "$with_gnu_ld"; then
4775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4776 $as_echo_n "checking for GNU ld... " >&6; }
4777 else
4778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4779 $as_echo_n "checking for non-GNU ld... " >&6; }
4780 fi
4781 if ${lt_cv_path_LD+:} false; then :
4782 $as_echo_n "(cached) " >&6
4783 else
4784 if test -z "$LD"; then
4785 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
4786 for ac_dir in $PATH; do
4787 IFS=$lt_save_ifs
4788 test -z "$ac_dir" && ac_dir=.
4789 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4790 lt_cv_path_LD=$ac_dir/$ac_prog
4791 # Check to see if the program is GNU ld. I'd rather use --version,
4792 # but apparently some variants of GNU ld only accept -v.
4793 # Break only if it was the GNU/non-GNU ld that we prefer.
4794 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4795 *GNU* | *'with BFD'*)
4796 test no != "$with_gnu_ld" && break
4797 ;;
4798 *)
4799 test yes != "$with_gnu_ld" && break
4800 ;;
4801 esac
4802 fi
4803 done
4804 IFS=$lt_save_ifs
4805 else
4806 lt_cv_path_LD=$LD # Let the user override the test with a path.
4807 fi
4808 fi
4809
4810 LD=$lt_cv_path_LD
4811 if test -n "$LD"; then
4812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4813 $as_echo "$LD" >&6; }
4814 else
4815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4816 $as_echo "no" >&6; }
4817 fi
4818 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4820 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4821 if ${lt_cv_prog_gnu_ld+:} false; then :
4822 $as_echo_n "(cached) " >&6
4823 else
4824 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4825 case `$LD -v 2>&1 </dev/null` in
4826 *GNU* | *'with BFD'*)
4827 lt_cv_prog_gnu_ld=yes
4828 ;;
4829 *)
4830 lt_cv_prog_gnu_ld=no
4831 ;;
4832 esac
4833 fi
4834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4835 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4836 with_gnu_ld=$lt_cv_prog_gnu_ld
4837
4838
4839
4840
4841
4842
4843
4844
4845
4846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4847 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4848 if ${lt_cv_path_NM+:} false; then :
4849 $as_echo_n "(cached) " >&6
4850 else
4851 if test -n "$NM"; then
4852 # Let the user override the test.
4853 lt_cv_path_NM=$NM
4854 else
4855 lt_nm_to_check=${ac_tool_prefix}nm
4856 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4857 lt_nm_to_check="$lt_nm_to_check nm"
4858 fi
4859 for lt_tmp_nm in $lt_nm_to_check; do
4860 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
4861 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4862 IFS=$lt_save_ifs
4863 test -z "$ac_dir" && ac_dir=.
4864 tmp_nm=$ac_dir/$lt_tmp_nm
4865 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
4866 # Check to see if the nm accepts a BSD-compat flag.
4867 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
4868 # nm: unknown option "B" ignored
4869 # Tru64's nm complains that /dev/null is an invalid object file
4870 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
4871 case $build_os in
4872 mingw*) lt_bad_file=conftest.nm/nofile ;;
4873 *) lt_bad_file=/dev/null ;;
4874 esac
4875 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
4876 *$lt_bad_file* | *'Invalid file or object type'*)
4877 lt_cv_path_NM="$tmp_nm -B"
4878 break 2
4879 ;;
4880 *)
4881 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4882 */dev/null*)
4883 lt_cv_path_NM="$tmp_nm -p"
4884 break 2
4885 ;;
4886 *)
4887 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4888 continue # so that we can try to find one that supports BSD flags
4889 ;;
4890 esac
4891 ;;
4892 esac
4893 fi
4894 done
4895 IFS=$lt_save_ifs
4896 done
4897 : ${lt_cv_path_NM=no}
4898 fi
4899 fi
4900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4901 $as_echo "$lt_cv_path_NM" >&6; }
4902 if test no != "$lt_cv_path_NM"; then
4903 NM=$lt_cv_path_NM
4904 else
4905 # Didn't find any BSD compatible name lister, look for dumpbin.
4906 if test -n "$DUMPBIN"; then :
4907 # Let the user override the test.
4908 else
4909 if test -n "$ac_tool_prefix"; then
4910 for ac_prog in dumpbin "link -dump"
4911 do
4912 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4913 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4915 $as_echo_n "checking for $ac_word... " >&6; }
4916 if ${ac_cv_prog_DUMPBIN+:} false; then :
4917 $as_echo_n "(cached) " >&6
4918 else
4919 if test -n "$DUMPBIN"; then
4920 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4921 else
4922 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4923 for as_dir in $PATH
4924 do
4925 IFS=$as_save_IFS
4926 test -z "$as_dir" && as_dir=.
4927 for ac_exec_ext in '' $ac_executable_extensions; do
4928 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4929 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4930 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4931 break 2
4932 fi
4933 done
4934 done
4935 IFS=$as_save_IFS
4936
4937 fi
4938 fi
4939 DUMPBIN=$ac_cv_prog_DUMPBIN
4940 if test -n "$DUMPBIN"; then
4941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4942 $as_echo "$DUMPBIN" >&6; }
4943 else
4944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4945 $as_echo "no" >&6; }
4946 fi
4947
4948
4949 test -n "$DUMPBIN" && break
4950 done
4951 fi
4952 if test -z "$DUMPBIN"; then
4953 ac_ct_DUMPBIN=$DUMPBIN
4954 for ac_prog in dumpbin "link -dump"
4955 do
4956 # Extract the first word of "$ac_prog", so it can be a program name with args.
4957 set dummy $ac_prog; ac_word=$2
4958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4959 $as_echo_n "checking for $ac_word... " >&6; }
4960 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
4961 $as_echo_n "(cached) " >&6
4962 else
4963 if test -n "$ac_ct_DUMPBIN"; then
4964 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4965 else
4966 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4967 for as_dir in $PATH
4968 do
4969 IFS=$as_save_IFS
4970 test -z "$as_dir" && as_dir=.
4971 for ac_exec_ext in '' $ac_executable_extensions; do
4972 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4973 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4974 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4975 break 2
4976 fi
4977 done
4978 done
4979 IFS=$as_save_IFS
4980
4981 fi
4982 fi
4983 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4984 if test -n "$ac_ct_DUMPBIN"; then
4985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4986 $as_echo "$ac_ct_DUMPBIN" >&6; }
4987 else
4988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4989 $as_echo "no" >&6; }
4990 fi
4991
4992
4993 test -n "$ac_ct_DUMPBIN" && break
4994 done
4995
4996 if test "x$ac_ct_DUMPBIN" = x; then
4997 DUMPBIN=":"
4998 else
4999 case $cross_compiling:$ac_tool_warned in
5000 yes:)
5001 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5002 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5003 ac_tool_warned=yes ;;
5004 esac
5005 DUMPBIN=$ac_ct_DUMPBIN
5006 fi
5007 fi
5008
5009 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
5010 *COFF*)
5011 DUMPBIN="$DUMPBIN -symbols -headers"
5012 ;;
5013 *)
5014 DUMPBIN=:
5015 ;;
5016 esac
5017 fi
5018
5019 if test : != "$DUMPBIN"; then
5020 NM=$DUMPBIN
5021 fi
5022 fi
5023 test -z "$NM" && NM=nm
5024
5025
5026
5027
5028
5029
5030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5031 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5032 if ${lt_cv_nm_interface+:} false; then :
5033 $as_echo_n "(cached) " >&6
5034 else
5035 lt_cv_nm_interface="BSD nm"
5036 echo "int some_variable = 0;" > conftest.$ac_ext
5037 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5038 (eval "$ac_compile" 2>conftest.err)
5039 cat conftest.err >&5
5040 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5041 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5042 cat conftest.err >&5
5043 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5044 cat conftest.out >&5
5045 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5046 lt_cv_nm_interface="MS dumpbin"
5047 fi
5048 rm -f conftest*
5049 fi
5050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5051 $as_echo "$lt_cv_nm_interface" >&6; }
5052
5053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5054 $as_echo_n "checking whether ln -s works... " >&6; }
5055 LN_S=$as_ln_s
5056 if test "$LN_S" = "ln -s"; then
5057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5058 $as_echo "yes" >&6; }
5059 else
5060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5061 $as_echo "no, using $LN_S" >&6; }
5062 fi
5063
5064 # find the maximum length of command line arguments
5065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5066 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5067 if ${lt_cv_sys_max_cmd_len+:} false; then :
5068 $as_echo_n "(cached) " >&6
5069 else
5070 i=0
5071 teststring=ABCD
5072
5073 case $build_os in
5074 msdosdjgpp*)
5075 # On DJGPP, this test can blow up pretty badly due to problems in libc
5076 # (any single argument exceeding 2000 bytes causes a buffer overrun
5077 # during glob expansion). Even if it were fixed, the result of this
5078 # check would be larger than it should be.
5079 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5080 ;;
5081
5082 gnu*)
5083 # Under GNU Hurd, this test is not required because there is
5084 # no limit to the length of command line arguments.
5085 # Libtool will interpret -1 as no limit whatsoever
5086 lt_cv_sys_max_cmd_len=-1;
5087 ;;
5088
5089 cygwin* | mingw* | cegcc*)
5090 # On Win9x/ME, this test blows up -- it succeeds, but takes
5091 # about 5 minutes as the teststring grows exponentially.
5092 # Worse, since 9x/ME are not pre-emptively multitasking,
5093 # you end up with a "frozen" computer, even though with patience
5094 # the test eventually succeeds (with a max line length of 256k).
5095 # Instead, let's just punt: use the minimum linelength reported by
5096 # all of the supported platforms: 8192 (on NT/2K/XP).
5097 lt_cv_sys_max_cmd_len=8192;
5098 ;;
5099
5100 mint*)
5101 # On MiNT this can take a long time and run out of memory.
5102 lt_cv_sys_max_cmd_len=8192;
5103 ;;
5104
5105 amigaos*)
5106 # On AmigaOS with pdksh, this test takes hours, literally.
5107 # So we just punt and use a minimum line length of 8192.
5108 lt_cv_sys_max_cmd_len=8192;
5109 ;;
5110
5111 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
5112 # This has been around since 386BSD, at least. Likely further.
5113 if test -x /sbin/sysctl; then
5114 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5115 elif test -x /usr/sbin/sysctl; then
5116 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5117 else
5118 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5119 fi
5120 # And add a safety zone
5121 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5122 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5123 ;;
5124
5125 interix*)
5126 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5127 lt_cv_sys_max_cmd_len=196608
5128 ;;
5129
5130 os2*)
5131 # The test takes a long time on OS/2.
5132 lt_cv_sys_max_cmd_len=8192
5133 ;;
5134
5135 osf*)
5136 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5137 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5138 # nice to cause kernel panics so lets avoid the loop below.
5139 # First set a reasonable default.
5140 lt_cv_sys_max_cmd_len=16384
5141 #
5142 if test -x /sbin/sysconfig; then
5143 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5144 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5145 esac
5146 fi
5147 ;;
5148 sco3.2v5*)
5149 lt_cv_sys_max_cmd_len=102400
5150 ;;
5151 sysv5* | sco5v6* | sysv4.2uw2*)
5152 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5153 if test -n "$kargmax"; then
5154 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5155 else
5156 lt_cv_sys_max_cmd_len=32768
5157 fi
5158 ;;
5159 *)
5160 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5161 if test -n "$lt_cv_sys_max_cmd_len" && \
5162 test undefined != "$lt_cv_sys_max_cmd_len"; then
5163 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5164 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5165 else
5166 # Make teststring a little bigger before we do anything with it.
5167 # a 1K string should be a reasonable start.
5168 for i in 1 2 3 4 5 6 7 8; do
5169 teststring=$teststring$teststring
5170 done
5171 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5172 # If test is not a shell built-in, we'll probably end up computing a
5173 # maximum length that is only half of the actual maximum length, but
5174 # we can't tell.
5175 while { test X`env echo "$teststring$teststring" 2>/dev/null` \
5176 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5177 test 17 != "$i" # 1/2 MB should be enough
5178 do
5179 i=`expr $i + 1`
5180 teststring=$teststring$teststring
5181 done
5182 # Only check the string length outside the loop.
5183 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5184 teststring=
5185 # Add a significant safety factor because C++ compilers can tack on
5186 # massive amounts of additional arguments before passing them to the
5187 # linker. It appears as though 1/2 is a usable value.
5188 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5189 fi
5190 ;;
5191 esac
5192
5193 fi
5194
5195 if test -n "$lt_cv_sys_max_cmd_len"; then
5196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5197 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5198 else
5199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5200 $as_echo "none" >&6; }
5201 fi
5202 max_cmd_len=$lt_cv_sys_max_cmd_len
5203
5204
5205
5206
5207
5208
5209 : ${CP="cp -f"}
5210 : ${MV="mv -f"}
5211 : ${RM="rm -f"}
5212
5213 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5214 lt_unset=unset
5215 else
5216 lt_unset=false
5217 fi
5218
5219
5220
5221
5222
5223 # test EBCDIC or ASCII
5224 case `echo X|tr X '\101'` in
5225 A) # ASCII based system
5226 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5227 lt_SP2NL='tr \040 \012'
5228 lt_NL2SP='tr \015\012 \040\040'
5229 ;;
5230 *) # EBCDIC based system
5231 lt_SP2NL='tr \100 \n'
5232 lt_NL2SP='tr \r\n \100\100'
5233 ;;
5234 esac
5235
5236
5237
5238
5239
5240
5241
5242
5243
5244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5245 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5246 if ${lt_cv_to_host_file_cmd+:} false; then :
5247 $as_echo_n "(cached) " >&6
5248 else
5249 case $host in
5250 *-*-mingw* )
5251 case $build in
5252 *-*-mingw* ) # actually msys
5253 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5254 ;;
5255 *-*-cygwin* )
5256 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5257 ;;
5258 * ) # otherwise, assume *nix
5259 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5260 ;;
5261 esac
5262 ;;
5263 *-*-cygwin* )
5264 case $build in
5265 *-*-mingw* ) # actually msys
5266 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5267 ;;
5268 *-*-cygwin* )
5269 lt_cv_to_host_file_cmd=func_convert_file_noop
5270 ;;
5271 * ) # otherwise, assume *nix
5272 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5273 ;;
5274 esac
5275 ;;
5276 * ) # unhandled hosts (and "normal" native builds)
5277 lt_cv_to_host_file_cmd=func_convert_file_noop
5278 ;;
5279 esac
5280
5281 fi
5282
5283 to_host_file_cmd=$lt_cv_to_host_file_cmd
5284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5285 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
5286
5287
5288
5289
5290
5291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5292 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5293 if ${lt_cv_to_tool_file_cmd+:} false; then :
5294 $as_echo_n "(cached) " >&6
5295 else
5296 #assume ordinary cross tools, or native build.
5297 lt_cv_to_tool_file_cmd=func_convert_file_noop
5298 case $host in
5299 *-*-mingw* )
5300 case $build in
5301 *-*-mingw* ) # actually msys
5302 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5303 ;;
5304 esac
5305 ;;
5306 esac
5307
5308 fi
5309
5310 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5312 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5313
5314
5315
5316
5317
5318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5319 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5320 if ${lt_cv_ld_reload_flag+:} false; then :
5321 $as_echo_n "(cached) " >&6
5322 else
5323 lt_cv_ld_reload_flag='-r'
5324 fi
5325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5326 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5327 reload_flag=$lt_cv_ld_reload_flag
5328 case $reload_flag in
5329 "" | " "*) ;;
5330 *) reload_flag=" $reload_flag" ;;
5331 esac
5332 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5333 case $host_os in
5334 cygwin* | mingw* | pw32* | cegcc*)
5335 if test yes != "$GCC"; then
5336 reload_cmds=false
5337 fi
5338 ;;
5339 darwin*)
5340 if test yes = "$GCC"; then
5341 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
5342 else
5343 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5344 fi
5345 ;;
5346 esac
5347
5348
5349
5350
5351
5352
5353
5354
5355
5356 if test -n "$ac_tool_prefix"; then
5357 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5358 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5360 $as_echo_n "checking for $ac_word... " >&6; }
5361 if ${ac_cv_prog_OBJDUMP+:} false; then :
5362 $as_echo_n "(cached) " >&6
5363 else
5364 if test -n "$OBJDUMP"; then
5365 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5366 else
5367 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5368 for as_dir in $PATH
5369 do
5370 IFS=$as_save_IFS
5371 test -z "$as_dir" && as_dir=.
5372 for ac_exec_ext in '' $ac_executable_extensions; do
5373 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5374 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5375 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5376 break 2
5377 fi
5378 done
5379 done
5380 IFS=$as_save_IFS
5381
5382 fi
5383 fi
5384 OBJDUMP=$ac_cv_prog_OBJDUMP
5385 if test -n "$OBJDUMP"; then
5386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5387 $as_echo "$OBJDUMP" >&6; }
5388 else
5389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5390 $as_echo "no" >&6; }
5391 fi
5392
5393
5394 fi
5395 if test -z "$ac_cv_prog_OBJDUMP"; then
5396 ac_ct_OBJDUMP=$OBJDUMP
5397 # Extract the first word of "objdump", so it can be a program name with args.
5398 set dummy objdump; ac_word=$2
5399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5400 $as_echo_n "checking for $ac_word... " >&6; }
5401 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5402 $as_echo_n "(cached) " >&6
5403 else
5404 if test -n "$ac_ct_OBJDUMP"; then
5405 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5406 else
5407 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5408 for as_dir in $PATH
5409 do
5410 IFS=$as_save_IFS
5411 test -z "$as_dir" && as_dir=.
5412 for ac_exec_ext in '' $ac_executable_extensions; do
5413 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5414 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5415 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5416 break 2
5417 fi
5418 done
5419 done
5420 IFS=$as_save_IFS
5421
5422 fi
5423 fi
5424 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5425 if test -n "$ac_ct_OBJDUMP"; then
5426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5427 $as_echo "$ac_ct_OBJDUMP" >&6; }
5428 else
5429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5430 $as_echo "no" >&6; }
5431 fi
5432
5433 if test "x$ac_ct_OBJDUMP" = x; then
5434 OBJDUMP="false"
5435 else
5436 case $cross_compiling:$ac_tool_warned in
5437 yes:)
5438 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5439 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5440 ac_tool_warned=yes ;;
5441 esac
5442 OBJDUMP=$ac_ct_OBJDUMP
5443 fi
5444 else
5445 OBJDUMP="$ac_cv_prog_OBJDUMP"
5446 fi
5447
5448 test -z "$OBJDUMP" && OBJDUMP=objdump
5449
5450
5451
5452
5453
5454
5455
5456
5457
5458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5459 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5460 if ${lt_cv_deplibs_check_method+:} false; then :
5461 $as_echo_n "(cached) " >&6
5462 else
5463 lt_cv_file_magic_cmd='$MAGIC_CMD'
5464 lt_cv_file_magic_test_file=
5465 lt_cv_deplibs_check_method='unknown'
5466 # Need to set the preceding variable on all platforms that support
5467 # interlibrary dependencies.
5468 # 'none' -- dependencies not supported.
5469 # 'unknown' -- same as none, but documents that we really don't know.
5470 # 'pass_all' -- all dependencies passed with no checks.
5471 # 'test_compile' -- check by making test program.
5472 # 'file_magic [[regex]]' -- check by looking for files in library path
5473 # that responds to the $file_magic_cmd with a given extended regex.
5474 # If you have 'file' or equivalent on your system and you're not sure
5475 # whether 'pass_all' will *always* work, you probably want this one.
5476
5477 case $host_os in
5478 aix[4-9]*)
5479 lt_cv_deplibs_check_method=pass_all
5480 ;;
5481
5482 beos*)
5483 lt_cv_deplibs_check_method=pass_all
5484 ;;
5485
5486 bsdi[45]*)
5487 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5488 lt_cv_file_magic_cmd='/usr/bin/file -L'
5489 lt_cv_file_magic_test_file=/shlib/libc.so
5490 ;;
5491
5492 cygwin*)
5493 # func_win32_libid is a shell function defined in ltmain.sh
5494 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5495 lt_cv_file_magic_cmd='func_win32_libid'
5496 ;;
5497
5498 mingw* | pw32*)
5499 # Base MSYS/MinGW do not provide the 'file' command needed by
5500 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5501 # unless we find 'file', for example because we are cross-compiling.
5502 if ( file / ) >/dev/null 2>&1; then
5503 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5504 lt_cv_file_magic_cmd='func_win32_libid'
5505 else
5506 # Keep this pattern in sync with the one in func_win32_libid.
5507 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5508 lt_cv_file_magic_cmd='$OBJDUMP -f'
5509 fi
5510 ;;
5511
5512 cegcc*)
5513 # use the weaker test based on 'objdump'. See mingw*.
5514 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5515 lt_cv_file_magic_cmd='$OBJDUMP -f'
5516 ;;
5517
5518 darwin* | rhapsody*)
5519 lt_cv_deplibs_check_method=pass_all
5520 ;;
5521
5522 freebsd* | dragonfly*)
5523 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5524 case $host_cpu in
5525 i*86 )
5526 # Not sure whether the presence of OpenBSD here was a mistake.
5527 # Let's accept both of them until this is cleared up.
5528 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5529 lt_cv_file_magic_cmd=/usr/bin/file
5530 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5531 ;;
5532 esac
5533 else
5534 lt_cv_deplibs_check_method=pass_all
5535 fi
5536 ;;
5537
5538 haiku*)
5539 lt_cv_deplibs_check_method=pass_all
5540 ;;
5541
5542 hpux10.20* | hpux11*)
5543 lt_cv_file_magic_cmd=/usr/bin/file
5544 case $host_cpu in
5545 ia64*)
5546 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5547 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5548 ;;
5549 hppa*64*)
5550 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]'
5551 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5552 ;;
5553 *)
5554 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5555 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5556 ;;
5557 esac
5558 ;;
5559
5560 interix[3-9]*)
5561 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5562 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5563 ;;
5564
5565 irix5* | irix6* | nonstopux*)
5566 case $LD in
5567 *-32|*"-32 ") libmagic=32-bit;;
5568 *-n32|*"-n32 ") libmagic=N32;;
5569 *-64|*"-64 ") libmagic=64-bit;;
5570 *) libmagic=never-match;;
5571 esac
5572 lt_cv_deplibs_check_method=pass_all
5573 ;;
5574
5575 # This must be glibc/ELF.
5576 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
5577 lt_cv_deplibs_check_method=pass_all
5578 ;;
5579
5580 netbsd* | netbsdelf*-gnu)
5581 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5582 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5583 else
5584 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5585 fi
5586 ;;
5587
5588 newos6*)
5589 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5590 lt_cv_file_magic_cmd=/usr/bin/file
5591 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5592 ;;
5593
5594 *nto* | *qnx*)
5595 lt_cv_deplibs_check_method=pass_all
5596 ;;
5597
5598 openbsd* | bitrig*)
5599 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
5600 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5601 else
5602 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5603 fi
5604 ;;
5605
5606 osf3* | osf4* | osf5*)
5607 lt_cv_deplibs_check_method=pass_all
5608 ;;
5609
5610 rdos*)
5611 lt_cv_deplibs_check_method=pass_all
5612 ;;
5613
5614 solaris*)
5615 lt_cv_deplibs_check_method=pass_all
5616 ;;
5617
5618 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5619 lt_cv_deplibs_check_method=pass_all
5620 ;;
5621
5622 sysv4 | sysv4.3*)
5623 case $host_vendor in
5624 motorola)
5625 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]'
5626 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5627 ;;
5628 ncr)
5629 lt_cv_deplibs_check_method=pass_all
5630 ;;
5631 sequent)
5632 lt_cv_file_magic_cmd='/bin/file'
5633 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5634 ;;
5635 sni)
5636 lt_cv_file_magic_cmd='/bin/file'
5637 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5638 lt_cv_file_magic_test_file=/lib/libc.so
5639 ;;
5640 siemens)
5641 lt_cv_deplibs_check_method=pass_all
5642 ;;
5643 pc)
5644 lt_cv_deplibs_check_method=pass_all
5645 ;;
5646 esac
5647 ;;
5648
5649 tpf*)
5650 lt_cv_deplibs_check_method=pass_all
5651 ;;
5652 os2*)
5653 lt_cv_deplibs_check_method=pass_all
5654 ;;
5655 esac
5656
5657 fi
5658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5659 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5660
5661 file_magic_glob=
5662 want_nocaseglob=no
5663 if test "$build" = "$host"; then
5664 case $host_os in
5665 mingw* | pw32*)
5666 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5667 want_nocaseglob=yes
5668 else
5669 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5670 fi
5671 ;;
5672 esac
5673 fi
5674
5675 file_magic_cmd=$lt_cv_file_magic_cmd
5676 deplibs_check_method=$lt_cv_deplibs_check_method
5677 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5678
5679
5680
5681
5682
5683
5684
5685
5686
5687
5688
5689
5690
5691
5692
5693
5694
5695
5696
5697
5698
5699
5700 if test -n "$ac_tool_prefix"; then
5701 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5702 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5704 $as_echo_n "checking for $ac_word... " >&6; }
5705 if ${ac_cv_prog_DLLTOOL+:} false; then :
5706 $as_echo_n "(cached) " >&6
5707 else
5708 if test -n "$DLLTOOL"; then
5709 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5710 else
5711 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5712 for as_dir in $PATH
5713 do
5714 IFS=$as_save_IFS
5715 test -z "$as_dir" && as_dir=.
5716 for ac_exec_ext in '' $ac_executable_extensions; do
5717 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5718 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5719 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5720 break 2
5721 fi
5722 done
5723 done
5724 IFS=$as_save_IFS
5725
5726 fi
5727 fi
5728 DLLTOOL=$ac_cv_prog_DLLTOOL
5729 if test -n "$DLLTOOL"; then
5730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5731 $as_echo "$DLLTOOL" >&6; }
5732 else
5733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5734 $as_echo "no" >&6; }
5735 fi
5736
5737
5738 fi
5739 if test -z "$ac_cv_prog_DLLTOOL"; then
5740 ac_ct_DLLTOOL=$DLLTOOL
5741 # Extract the first word of "dlltool", so it can be a program name with args.
5742 set dummy dlltool; ac_word=$2
5743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5744 $as_echo_n "checking for $ac_word... " >&6; }
5745 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5746 $as_echo_n "(cached) " >&6
5747 else
5748 if test -n "$ac_ct_DLLTOOL"; then
5749 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5750 else
5751 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5752 for as_dir in $PATH
5753 do
5754 IFS=$as_save_IFS
5755 test -z "$as_dir" && as_dir=.
5756 for ac_exec_ext in '' $ac_executable_extensions; do
5757 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5758 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5759 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5760 break 2
5761 fi
5762 done
5763 done
5764 IFS=$as_save_IFS
5765
5766 fi
5767 fi
5768 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5769 if test -n "$ac_ct_DLLTOOL"; then
5770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5771 $as_echo "$ac_ct_DLLTOOL" >&6; }
5772 else
5773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5774 $as_echo "no" >&6; }
5775 fi
5776
5777 if test "x$ac_ct_DLLTOOL" = x; then
5778 DLLTOOL="false"
5779 else
5780 case $cross_compiling:$ac_tool_warned in
5781 yes:)
5782 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5783 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5784 ac_tool_warned=yes ;;
5785 esac
5786 DLLTOOL=$ac_ct_DLLTOOL
5787 fi
5788 else
5789 DLLTOOL="$ac_cv_prog_DLLTOOL"
5790 fi
5791
5792 test -z "$DLLTOOL" && DLLTOOL=dlltool
5793
5794
5795
5796
5797
5798
5799
5800
5801
5802
5803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5804 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
5805 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
5806 $as_echo_n "(cached) " >&6
5807 else
5808 lt_cv_sharedlib_from_linklib_cmd='unknown'
5809
5810 case $host_os in
5811 cygwin* | mingw* | pw32* | cegcc*)
5812 # two different shell functions defined in ltmain.sh;
5813 # decide which one to use based on capabilities of $DLLTOOL
5814 case `$DLLTOOL --help 2>&1` in
5815 *--identify-strict*)
5816 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5817 ;;
5818 *)
5819 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5820 ;;
5821 esac
5822 ;;
5823 *)
5824 # fallback: assume linklib IS sharedlib
5825 lt_cv_sharedlib_from_linklib_cmd=$ECHO
5826 ;;
5827 esac
5828
5829 fi
5830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
5831 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
5832 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
5833 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
5834
5835
5836
5837
5838
5839
5840
5841
5842 if test -n "$ac_tool_prefix"; then
5843 for ac_prog in ar
5844 do
5845 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5846 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5848 $as_echo_n "checking for $ac_word... " >&6; }
5849 if ${ac_cv_prog_AR+:} false; then :
5850 $as_echo_n "(cached) " >&6
5851 else
5852 if test -n "$AR"; then
5853 ac_cv_prog_AR="$AR" # Let the user override the test.
5854 else
5855 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5856 for as_dir in $PATH
5857 do
5858 IFS=$as_save_IFS
5859 test -z "$as_dir" && as_dir=.
5860 for ac_exec_ext in '' $ac_executable_extensions; do
5861 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5862 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5863 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5864 break 2
5865 fi
5866 done
5867 done
5868 IFS=$as_save_IFS
5869
5870 fi
5871 fi
5872 AR=$ac_cv_prog_AR
5873 if test -n "$AR"; then
5874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5875 $as_echo "$AR" >&6; }
5876 else
5877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5878 $as_echo "no" >&6; }
5879 fi
5880
5881
5882 test -n "$AR" && break
5883 done
5884 fi
5885 if test -z "$AR"; then
5886 ac_ct_AR=$AR
5887 for ac_prog in ar
5888 do
5889 # Extract the first word of "$ac_prog", so it can be a program name with args.
5890 set dummy $ac_prog; ac_word=$2
5891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5892 $as_echo_n "checking for $ac_word... " >&6; }
5893 if ${ac_cv_prog_ac_ct_AR+:} false; then :
5894 $as_echo_n "(cached) " >&6
5895 else
5896 if test -n "$ac_ct_AR"; then
5897 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5898 else
5899 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5900 for as_dir in $PATH
5901 do
5902 IFS=$as_save_IFS
5903 test -z "$as_dir" && as_dir=.
5904 for ac_exec_ext in '' $ac_executable_extensions; do
5905 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5906 ac_cv_prog_ac_ct_AR="$ac_prog"
5907 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5908 break 2
5909 fi
5910 done
5911 done
5912 IFS=$as_save_IFS
5913
5914 fi
5915 fi
5916 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5917 if test -n "$ac_ct_AR"; then
5918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5919 $as_echo "$ac_ct_AR" >&6; }
5920 else
5921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5922 $as_echo "no" >&6; }
5923 fi
5924
5925
5926 test -n "$ac_ct_AR" && break
5927 done
5928
5929 if test "x$ac_ct_AR" = x; then
5930 AR="false"
5931 else
5932 case $cross_compiling:$ac_tool_warned in
5933 yes:)
5934 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5935 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5936 ac_tool_warned=yes ;;
5937 esac
5938 AR=$ac_ct_AR
5939 fi
5940 fi
5941
5942 : ${AR=ar}
5943 : ${AR_FLAGS=cru}
5944
5945
5946
5947
5948
5949
5950
5951
5952
5953
5954
5955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
5956 $as_echo_n "checking for archiver @FILE support... " >&6; }
5957 if ${lt_cv_ar_at_file+:} false; then :
5958 $as_echo_n "(cached) " >&6
5959 else
5960 lt_cv_ar_at_file=no
5961 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5962 /* end confdefs.h. */
5963
5964 int
5965 main ()
5966 {
5967
5968 ;
5969 return 0;
5970 }
5971 _ACEOF
5972 if ac_fn_c_try_compile "$LINENO"; then :
5973 echo conftest.$ac_objext > conftest.lst
5974 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
5975 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5976 (eval $lt_ar_try) 2>&5
5977 ac_status=$?
5978 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5979 test $ac_status = 0; }
5980 if test 0 -eq "$ac_status"; then
5981 # Ensure the archiver fails upon bogus file names.
5982 rm -f conftest.$ac_objext libconftest.a
5983 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5984 (eval $lt_ar_try) 2>&5
5985 ac_status=$?
5986 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5987 test $ac_status = 0; }
5988 if test 0 -ne "$ac_status"; then
5989 lt_cv_ar_at_file=@
5990 fi
5991 fi
5992 rm -f conftest.* libconftest.a
5993
5994 fi
5995 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5996
5997 fi
5998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
5999 $as_echo "$lt_cv_ar_at_file" >&6; }
6000
6001 if test no = "$lt_cv_ar_at_file"; then
6002 archiver_list_spec=
6003 else
6004 archiver_list_spec=$lt_cv_ar_at_file
6005 fi
6006
6007
6008
6009
6010
6011
6012
6013 if test -n "$ac_tool_prefix"; then
6014 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6015 set dummy ${ac_tool_prefix}strip; ac_word=$2
6016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6017 $as_echo_n "checking for $ac_word... " >&6; }
6018 if ${ac_cv_prog_STRIP+:} false; then :
6019 $as_echo_n "(cached) " >&6
6020 else
6021 if test -n "$STRIP"; then
6022 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6023 else
6024 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6025 for as_dir in $PATH
6026 do
6027 IFS=$as_save_IFS
6028 test -z "$as_dir" && as_dir=.
6029 for ac_exec_ext in '' $ac_executable_extensions; do
6030 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6031 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6032 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6033 break 2
6034 fi
6035 done
6036 done
6037 IFS=$as_save_IFS
6038
6039 fi
6040 fi
6041 STRIP=$ac_cv_prog_STRIP
6042 if test -n "$STRIP"; then
6043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6044 $as_echo "$STRIP" >&6; }
6045 else
6046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6047 $as_echo "no" >&6; }
6048 fi
6049
6050
6051 fi
6052 if test -z "$ac_cv_prog_STRIP"; then
6053 ac_ct_STRIP=$STRIP
6054 # Extract the first word of "strip", so it can be a program name with args.
6055 set dummy strip; ac_word=$2
6056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6057 $as_echo_n "checking for $ac_word... " >&6; }
6058 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6059 $as_echo_n "(cached) " >&6
6060 else
6061 if test -n "$ac_ct_STRIP"; then
6062 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6063 else
6064 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6065 for as_dir in $PATH
6066 do
6067 IFS=$as_save_IFS
6068 test -z "$as_dir" && as_dir=.
6069 for ac_exec_ext in '' $ac_executable_extensions; do
6070 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6071 ac_cv_prog_ac_ct_STRIP="strip"
6072 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6073 break 2
6074 fi
6075 done
6076 done
6077 IFS=$as_save_IFS
6078
6079 fi
6080 fi
6081 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6082 if test -n "$ac_ct_STRIP"; then
6083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6084 $as_echo "$ac_ct_STRIP" >&6; }
6085 else
6086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6087 $as_echo "no" >&6; }
6088 fi
6089
6090 if test "x$ac_ct_STRIP" = x; then
6091 STRIP=":"
6092 else
6093 case $cross_compiling:$ac_tool_warned in
6094 yes:)
6095 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6096 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6097 ac_tool_warned=yes ;;
6098 esac
6099 STRIP=$ac_ct_STRIP
6100 fi
6101 else
6102 STRIP="$ac_cv_prog_STRIP"
6103 fi
6104
6105 test -z "$STRIP" && STRIP=:
6106
6107
6108
6109
6110
6111
6112 if test -n "$ac_tool_prefix"; then
6113 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6114 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6116 $as_echo_n "checking for $ac_word... " >&6; }
6117 if ${ac_cv_prog_RANLIB+:} false; then :
6118 $as_echo_n "(cached) " >&6
6119 else
6120 if test -n "$RANLIB"; then
6121 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6122 else
6123 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6124 for as_dir in $PATH
6125 do
6126 IFS=$as_save_IFS
6127 test -z "$as_dir" && as_dir=.
6128 for ac_exec_ext in '' $ac_executable_extensions; do
6129 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6130 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6131 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6132 break 2
6133 fi
6134 done
6135 done
6136 IFS=$as_save_IFS
6137
6138 fi
6139 fi
6140 RANLIB=$ac_cv_prog_RANLIB
6141 if test -n "$RANLIB"; then
6142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6143 $as_echo "$RANLIB" >&6; }
6144 else
6145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6146 $as_echo "no" >&6; }
6147 fi
6148
6149
6150 fi
6151 if test -z "$ac_cv_prog_RANLIB"; then
6152 ac_ct_RANLIB=$RANLIB
6153 # Extract the first word of "ranlib", so it can be a program name with args.
6154 set dummy ranlib; ac_word=$2
6155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6156 $as_echo_n "checking for $ac_word... " >&6; }
6157 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6158 $as_echo_n "(cached) " >&6
6159 else
6160 if test -n "$ac_ct_RANLIB"; then
6161 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6162 else
6163 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6164 for as_dir in $PATH
6165 do
6166 IFS=$as_save_IFS
6167 test -z "$as_dir" && as_dir=.
6168 for ac_exec_ext in '' $ac_executable_extensions; do
6169 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6170 ac_cv_prog_ac_ct_RANLIB="ranlib"
6171 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6172 break 2
6173 fi
6174 done
6175 done
6176 IFS=$as_save_IFS
6177
6178 fi
6179 fi
6180 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6181 if test -n "$ac_ct_RANLIB"; then
6182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6183 $as_echo "$ac_ct_RANLIB" >&6; }
6184 else
6185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6186 $as_echo "no" >&6; }
6187 fi
6188
6189 if test "x$ac_ct_RANLIB" = x; then
6190 RANLIB=":"
6191 else
6192 case $cross_compiling:$ac_tool_warned in
6193 yes:)
6194 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6195 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6196 ac_tool_warned=yes ;;
6197 esac
6198 RANLIB=$ac_ct_RANLIB
6199 fi
6200 else
6201 RANLIB="$ac_cv_prog_RANLIB"
6202 fi
6203
6204 test -z "$RANLIB" && RANLIB=:
6205
6206
6207
6208
6209
6210
6211 # Determine commands to create old-style static archives.
6212 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6213 old_postinstall_cmds='chmod 644 $oldlib'
6214 old_postuninstall_cmds=
6215
6216 if test -n "$RANLIB"; then
6217 case $host_os in
6218 bitrig* | openbsd*)
6219 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6220 ;;
6221 *)
6222 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6223 ;;
6224 esac
6225 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6226 fi
6227
6228 case $host_os in
6229 darwin*)
6230 lock_old_archive_extraction=yes ;;
6231 *)
6232 lock_old_archive_extraction=no ;;
6233 esac
6234
6235
6236
6237
6238
6239
6240
6241
6242
6243
6244
6245
6246
6247
6248
6249
6250
6251
6252
6253
6254
6255
6256
6257
6258
6259
6260
6261
6262
6263
6264
6265
6266
6267
6268
6269
6270
6271
6272
6273 # If no C compiler was specified, use CC.
6274 LTCC=${LTCC-"$CC"}
6275
6276 # If no C compiler flags were specified, use CFLAGS.
6277 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6278
6279 # Allow CC to be a program name with arguments.
6280 compiler=$CC
6281
6282
6283 # Check for command to grab the raw symbol name followed by C symbol from nm.
6284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6285 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6286 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6287 $as_echo_n "(cached) " >&6
6288 else
6289
6290 # These are sane defaults that work on at least a few old systems.
6291 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6292
6293 # Character class describing NM global symbol codes.
6294 symcode='[BCDEGRST]'
6295
6296 # Regexp to match symbols that can be accessed directly from C.
6297 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6298
6299 # Define system-specific variables.
6300 case $host_os in
6301 aix*)
6302 symcode='[BCDT]'
6303 ;;
6304 cygwin* | mingw* | pw32* | cegcc*)
6305 symcode='[ABCDGISTW]'
6306 ;;
6307 hpux*)
6308 if test ia64 = "$host_cpu"; then
6309 symcode='[ABCDEGRST]'
6310 fi
6311 ;;
6312 irix* | nonstopux*)
6313 symcode='[BCDEGRST]'
6314 ;;
6315 osf*)
6316 symcode='[BCDEGQRST]'
6317 ;;
6318 solaris*)
6319 symcode='[BDRT]'
6320 ;;
6321 sco3.2v5*)
6322 symcode='[DT]'
6323 ;;
6324 sysv4.2uw2*)
6325 symcode='[DT]'
6326 ;;
6327 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6328 symcode='[ABDT]'
6329 ;;
6330 sysv4)
6331 symcode='[DFNSTU]'
6332 ;;
6333 esac
6334
6335 # If we're using GNU nm, then use its standard symbol codes.
6336 case `$NM -V 2>&1` in
6337 *GNU* | *'with BFD'*)
6338 symcode='[ABCDGIRSTW]' ;;
6339 esac
6340
6341 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6342 # Gets list of data symbols to import.
6343 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
6344 # Adjust the below global symbol transforms to fixup imported variables.
6345 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
6346 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
6347 lt_c_name_lib_hook="\
6348 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
6349 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
6350 else
6351 # Disable hooks by default.
6352 lt_cv_sys_global_symbol_to_import=
6353 lt_cdecl_hook=
6354 lt_c_name_hook=
6355 lt_c_name_lib_hook=
6356 fi
6357
6358 # Transform an extracted symbol line into a proper C declaration.
6359 # Some systems (esp. on ia64) link data and code symbols differently,
6360 # so use this general approach.
6361 lt_cv_sys_global_symbol_to_cdecl="sed -n"\
6362 $lt_cdecl_hook\
6363 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
6364 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
6365
6366 # Transform an extracted symbol line into symbol name and symbol address
6367 lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
6368 $lt_c_name_hook\
6369 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
6370 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
6371
6372 # Transform an extracted symbol line into symbol name with lib prefix and
6373 # symbol address.
6374 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
6375 $lt_c_name_lib_hook\
6376 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
6377 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
6378 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
6379
6380 # Handle CRLF in mingw tool chain
6381 opt_cr=
6382 case $build_os in
6383 mingw*)
6384 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6385 ;;
6386 esac
6387
6388 # Try without a prefix underscore, then with it.
6389 for ac_symprfx in "" "_"; do
6390
6391 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6392 symxfrm="\\1 $ac_symprfx\\2 \\2"
6393
6394 # Write the raw and C identifiers.
6395 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6396 # Fake it for dumpbin and say T for any non-static function,
6397 # D for any global variable and I for any imported variable.
6398 # Also find C++ and __fastcall symbols from MSVC++,
6399 # which start with @ or ?.
6400 lt_cv_sys_global_symbol_pipe="$AWK '"\
6401 " {last_section=section; section=\$ 3};"\
6402 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6403 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6404 " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
6405 " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
6406 " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
6407 " \$ 0!~/External *\|/{next};"\
6408 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6409 " {if(hide[section]) next};"\
6410 " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
6411 " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
6412 " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
6413 " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
6414 " ' prfx=^$ac_symprfx"
6415 else
6416 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6417 fi
6418 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6419
6420 # Check to see that the pipe works correctly.
6421 pipe_works=no
6422
6423 rm -f conftest*
6424 cat > conftest.$ac_ext <<_LT_EOF
6425 #ifdef __cplusplus
6426 extern "C" {
6427 #endif
6428 char nm_test_var;
6429 void nm_test_func(void);
6430 void nm_test_func(void){}
6431 #ifdef __cplusplus
6432 }
6433 #endif
6434 int main(){nm_test_var='a';nm_test_func();return(0);}
6435 _LT_EOF
6436
6437 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6438 (eval $ac_compile) 2>&5
6439 ac_status=$?
6440 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6441 test $ac_status = 0; }; then
6442 # Now try to grab the symbols.
6443 nlist=conftest.nm
6444 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6445 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6446 ac_status=$?
6447 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6448 test $ac_status = 0; } && test -s "$nlist"; then
6449 # Try sorting and uniquifying the output.
6450 if sort "$nlist" | uniq > "$nlist"T; then
6451 mv -f "$nlist"T "$nlist"
6452 else
6453 rm -f "$nlist"T
6454 fi
6455
6456 # Make sure that we snagged all the symbols we need.
6457 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6458 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6459 cat <<_LT_EOF > conftest.$ac_ext
6460 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
6461 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
6462 /* DATA imports from DLLs on WIN32 can't be const, because runtime
6463 relocations are performed -- see ld's documentation on pseudo-relocs. */
6464 # define LT_DLSYM_CONST
6465 #elif defined __osf__
6466 /* This system does not cope well with relocations in const data. */
6467 # define LT_DLSYM_CONST
6468 #else
6469 # define LT_DLSYM_CONST const
6470 #endif
6471
6472 #ifdef __cplusplus
6473 extern "C" {
6474 #endif
6475
6476 _LT_EOF
6477 # Now generate the symbol file.
6478 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6479
6480 cat <<_LT_EOF >> conftest.$ac_ext
6481
6482 /* The mapping between symbol names and symbols. */
6483 LT_DLSYM_CONST struct {
6484 const char *name;
6485 void *address;
6486 }
6487 lt__PROGRAM__LTX_preloaded_symbols[] =
6488 {
6489 { "@PROGRAM@", (void *) 0 },
6490 _LT_EOF
6491 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6492 cat <<\_LT_EOF >> conftest.$ac_ext
6493 {0, (void *) 0}
6494 };
6495
6496 /* This works around a problem in FreeBSD linker */
6497 #ifdef FREEBSD_WORKAROUND
6498 static const void *lt_preloaded_setup() {
6499 return lt__PROGRAM__LTX_preloaded_symbols;
6500 }
6501 #endif
6502
6503 #ifdef __cplusplus
6504 }
6505 #endif
6506 _LT_EOF
6507 # Now try linking the two files.
6508 mv conftest.$ac_objext conftstm.$ac_objext
6509 lt_globsym_save_LIBS=$LIBS
6510 lt_globsym_save_CFLAGS=$CFLAGS
6511 LIBS=conftstm.$ac_objext
6512 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6513 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6514 (eval $ac_link) 2>&5
6515 ac_status=$?
6516 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6517 test $ac_status = 0; } && test -s conftest$ac_exeext; then
6518 pipe_works=yes
6519 fi
6520 LIBS=$lt_globsym_save_LIBS
6521 CFLAGS=$lt_globsym_save_CFLAGS
6522 else
6523 echo "cannot find nm_test_func in $nlist" >&5
6524 fi
6525 else
6526 echo "cannot find nm_test_var in $nlist" >&5
6527 fi
6528 else
6529 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6530 fi
6531 else
6532 echo "$progname: failed program was:" >&5
6533 cat conftest.$ac_ext >&5
6534 fi
6535 rm -rf conftest* conftst*
6536
6537 # Do not use the global_symbol_pipe unless it works.
6538 if test yes = "$pipe_works"; then
6539 break
6540 else
6541 lt_cv_sys_global_symbol_pipe=
6542 fi
6543 done
6544
6545 fi
6546
6547 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6548 lt_cv_sys_global_symbol_to_cdecl=
6549 fi
6550 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6552 $as_echo "failed" >&6; }
6553 else
6554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6555 $as_echo "ok" >&6; }
6556 fi
6557
6558 # Response file support.
6559 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6560 nm_file_list_spec='@'
6561 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6562 nm_file_list_spec='@'
6563 fi
6564
6565
6566
6567
6568
6569
6570
6571
6572
6573
6574
6575
6576
6577
6578
6579
6580
6581
6582
6583
6584
6585
6586
6587
6588
6589
6590
6591
6592
6593
6594
6595
6596
6597
6598
6599
6600
6601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6602 $as_echo_n "checking for sysroot... " >&6; }
6603
6604 # Check whether --with-sysroot was given.
6605 if test "${with_sysroot+set}" = set; then :
6606 withval=$with_sysroot;
6607 else
6608 with_sysroot=no
6609 fi
6610
6611
6612 lt_sysroot=
6613 case $with_sysroot in #(
6614 yes)
6615 if test yes = "$GCC"; then
6616 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6617 fi
6618 ;; #(
6619 /*)
6620 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6621 ;; #(
6622 no|'')
6623 ;; #(
6624 *)
6625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
6626 $as_echo "$with_sysroot" >&6; }
6627 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6628 ;;
6629 esac
6630
6631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6632 $as_echo "${lt_sysroot:-no}" >&6; }
6633
6634
6635
6636
6637
6638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
6639 $as_echo_n "checking for a working dd... " >&6; }
6640 if ${ac_cv_path_lt_DD+:} false; then :
6641 $as_echo_n "(cached) " >&6
6642 else
6643 printf 0123456789abcdef0123456789abcdef >conftest.i
6644 cat conftest.i conftest.i >conftest2.i
6645 : ${lt_DD:=$DD}
6646 if test -z "$lt_DD"; then
6647 ac_path_lt_DD_found=false
6648 # Loop through the user's path and test for each of PROGNAME-LIST
6649 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6650 for as_dir in $PATH
6651 do
6652 IFS=$as_save_IFS
6653 test -z "$as_dir" && as_dir=.
6654 for ac_prog in dd; do
6655 for ac_exec_ext in '' $ac_executable_extensions; do
6656 ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
6657 as_fn_executable_p "$ac_path_lt_DD" || continue
6658 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
6659 cmp -s conftest.i conftest.out \
6660 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
6661 fi
6662 $ac_path_lt_DD_found && break 3
6663 done
6664 done
6665 done
6666 IFS=$as_save_IFS
6667 if test -z "$ac_cv_path_lt_DD"; then
6668 :
6669 fi
6670 else
6671 ac_cv_path_lt_DD=$lt_DD
6672 fi
6673
6674 rm -f conftest.i conftest2.i conftest.out
6675 fi
6676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
6677 $as_echo "$ac_cv_path_lt_DD" >&6; }
6678
6679
6680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
6681 $as_echo_n "checking how to truncate binary pipes... " >&6; }
6682 if ${lt_cv_truncate_bin+:} false; then :
6683 $as_echo_n "(cached) " >&6
6684 else
6685 printf 0123456789abcdef0123456789abcdef >conftest.i
6686 cat conftest.i conftest.i >conftest2.i
6687 lt_cv_truncate_bin=
6688 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
6689 cmp -s conftest.i conftest.out \
6690 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
6691 fi
6692 rm -f conftest.i conftest2.i conftest.out
6693 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
6694 fi
6695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
6696 $as_echo "$lt_cv_truncate_bin" >&6; }
6697
6698
6699
6700
6701
6702
6703
6704 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
6705 func_cc_basename ()
6706 {
6707 for cc_temp in $*""; do
6708 case $cc_temp in
6709 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6710 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6711 \-*) ;;
6712 *) break;;
6713 esac
6714 done
6715 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
6716 }
6717
6718 # Check whether --enable-libtool-lock was given.
6719 if test "${enable_libtool_lock+set}" = set; then :
6720 enableval=$enable_libtool_lock;
6721 fi
6722
6723 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
6724
6725 # Some flags need to be propagated to the compiler or linker for good
6726 # libtool support.
6727 case $host in
6728 ia64-*-hpux*)
6729 # Find out what ABI is being produced by ac_compile, and set mode
6730 # options accordingly.
6731 echo 'int i;' > conftest.$ac_ext
6732 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6733 (eval $ac_compile) 2>&5
6734 ac_status=$?
6735 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6736 test $ac_status = 0; }; then
6737 case `/usr/bin/file conftest.$ac_objext` in
6738 *ELF-32*)
6739 HPUX_IA64_MODE=32
6740 ;;
6741 *ELF-64*)
6742 HPUX_IA64_MODE=64
6743 ;;
6744 esac
6745 fi
6746 rm -rf conftest*
6747 ;;
6748 *-*-irix6*)
6749 # Find out what ABI is being produced by ac_compile, and set linker
6750 # options accordingly.
6751 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6752 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6753 (eval $ac_compile) 2>&5
6754 ac_status=$?
6755 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6756 test $ac_status = 0; }; then
6757 if test yes = "$lt_cv_prog_gnu_ld"; then
6758 case `/usr/bin/file conftest.$ac_objext` in
6759 *32-bit*)
6760 LD="${LD-ld} -melf32bsmip"
6761 ;;
6762 *N32*)
6763 LD="${LD-ld} -melf32bmipn32"
6764 ;;
6765 *64-bit*)
6766 LD="${LD-ld} -melf64bmip"
6767 ;;
6768 esac
6769 else
6770 case `/usr/bin/file conftest.$ac_objext` in
6771 *32-bit*)
6772 LD="${LD-ld} -32"
6773 ;;
6774 *N32*)
6775 LD="${LD-ld} -n32"
6776 ;;
6777 *64-bit*)
6778 LD="${LD-ld} -64"
6779 ;;
6780 esac
6781 fi
6782 fi
6783 rm -rf conftest*
6784 ;;
6785
6786 mips64*-*linux*)
6787 # Find out what ABI is being produced by ac_compile, and set linker
6788 # options accordingly.
6789 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6790 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6791 (eval $ac_compile) 2>&5
6792 ac_status=$?
6793 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6794 test $ac_status = 0; }; then
6795 emul=elf
6796 case `/usr/bin/file conftest.$ac_objext` in
6797 *32-bit*)
6798 emul="${emul}32"
6799 ;;
6800 *64-bit*)
6801 emul="${emul}64"
6802 ;;
6803 esac
6804 case `/usr/bin/file conftest.$ac_objext` in
6805 *MSB*)
6806 emul="${emul}btsmip"
6807 ;;
6808 *LSB*)
6809 emul="${emul}ltsmip"
6810 ;;
6811 esac
6812 case `/usr/bin/file conftest.$ac_objext` in
6813 *N32*)
6814 emul="${emul}n32"
6815 ;;
6816 esac
6817 LD="${LD-ld} -m $emul"
6818 fi
6819 rm -rf conftest*
6820 ;;
6821
6822 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
6823 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6824 # Find out what ABI is being produced by ac_compile, and set linker
6825 # options accordingly. Note that the listed cases only cover the
6826 # situations where additional linker options are needed (such as when
6827 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
6828 # vice versa); the common cases where no linker options are needed do
6829 # not appear in the list.
6830 echo 'int i;' > conftest.$ac_ext
6831 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6832 (eval $ac_compile) 2>&5
6833 ac_status=$?
6834 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6835 test $ac_status = 0; }; then
6836 case `/usr/bin/file conftest.o` in
6837 *32-bit*)
6838 case $host in
6839 x86_64-*kfreebsd*-gnu)
6840 LD="${LD-ld} -m elf_i386_fbsd"
6841 ;;
6842 x86_64-*linux*)
6843 case `/usr/bin/file conftest.o` in
6844 *x86-64*)
6845 LD="${LD-ld} -m elf32_x86_64"
6846 ;;
6847 *)
6848 LD="${LD-ld} -m elf_i386"
6849 ;;
6850 esac
6851 ;;
6852 powerpc64le-*linux*)
6853 LD="${LD-ld} -m elf32lppclinux"
6854 ;;
6855 powerpc64-*linux*)
6856 LD="${LD-ld} -m elf32ppclinux"
6857 ;;
6858 s390x-*linux*)
6859 LD="${LD-ld} -m elf_s390"
6860 ;;
6861 sparc64-*linux*)
6862 LD="${LD-ld} -m elf32_sparc"
6863 ;;
6864 esac
6865 ;;
6866 *64-bit*)
6867 case $host in
6868 x86_64-*kfreebsd*-gnu)
6869 LD="${LD-ld} -m elf_x86_64_fbsd"
6870 ;;
6871 x86_64-*linux*)
6872 LD="${LD-ld} -m elf_x86_64"
6873 ;;
6874 powerpcle-*linux*)
6875 LD="${LD-ld} -m elf64lppc"
6876 ;;
6877 powerpc-*linux*)
6878 LD="${LD-ld} -m elf64ppc"
6879 ;;
6880 s390*-*linux*|s390*-*tpf*)
6881 LD="${LD-ld} -m elf64_s390"
6882 ;;
6883 sparc*-*linux*)
6884 LD="${LD-ld} -m elf64_sparc"
6885 ;;
6886 esac
6887 ;;
6888 esac
6889 fi
6890 rm -rf conftest*
6891 ;;
6892
6893 *-*-sco3.2v5*)
6894 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6895 SAVE_CFLAGS=$CFLAGS
6896 CFLAGS="$CFLAGS -belf"
6897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6898 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6899 if ${lt_cv_cc_needs_belf+:} false; then :
6900 $as_echo_n "(cached) " >&6
6901 else
6902 ac_ext=c
6903 ac_cpp='$CPP $CPPFLAGS'
6904 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6905 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6906 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6907
6908 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6909 /* end confdefs.h. */
6910
6911 int
6912 main ()
6913 {
6914
6915 ;
6916 return 0;
6917 }
6918 _ACEOF
6919 if ac_fn_c_try_link "$LINENO"; then :
6920 lt_cv_cc_needs_belf=yes
6921 else
6922 lt_cv_cc_needs_belf=no
6923 fi
6924 rm -f core conftest.err conftest.$ac_objext \
6925 conftest$ac_exeext conftest.$ac_ext
6926 ac_ext=c
6927 ac_cpp='$CPP $CPPFLAGS'
6928 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6929 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6930 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6931
6932 fi
6933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6934 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6935 if test yes != "$lt_cv_cc_needs_belf"; then
6936 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6937 CFLAGS=$SAVE_CFLAGS
6938 fi
6939 ;;
6940 *-*solaris*)
6941 # Find out what ABI is being produced by ac_compile, and set linker
6942 # options accordingly.
6943 echo 'int i;' > conftest.$ac_ext
6944 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6945 (eval $ac_compile) 2>&5
6946 ac_status=$?
6947 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6948 test $ac_status = 0; }; then
6949 case `/usr/bin/file conftest.o` in
6950 *64-bit*)
6951 case $lt_cv_prog_gnu_ld in
6952 yes*)
6953 case $host in
6954 i?86-*-solaris*|x86_64-*-solaris*)
6955 LD="${LD-ld} -m elf_x86_64"
6956 ;;
6957 sparc*-*-solaris*)
6958 LD="${LD-ld} -m elf64_sparc"
6959 ;;
6960 esac
6961 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
6962 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
6963 LD=${LD-ld}_sol2
6964 fi
6965 ;;
6966 *)
6967 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6968 LD="${LD-ld} -64"
6969 fi
6970 ;;
6971 esac
6972 ;;
6973 esac
6974 fi
6975 rm -rf conftest*
6976 ;;
6977 esac
6978
6979 need_locks=$enable_libtool_lock
6980
6981 if test -n "$ac_tool_prefix"; then
6982 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
6983 set dummy ${ac_tool_prefix}mt; ac_word=$2
6984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6985 $as_echo_n "checking for $ac_word... " >&6; }
6986 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
6987 $as_echo_n "(cached) " >&6
6988 else
6989 if test -n "$MANIFEST_TOOL"; then
6990 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
6991 else
6992 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6993 for as_dir in $PATH
6994 do
6995 IFS=$as_save_IFS
6996 test -z "$as_dir" && as_dir=.
6997 for ac_exec_ext in '' $ac_executable_extensions; do
6998 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6999 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7000 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7001 break 2
7002 fi
7003 done
7004 done
7005 IFS=$as_save_IFS
7006
7007 fi
7008 fi
7009 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7010 if test -n "$MANIFEST_TOOL"; then
7011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7012 $as_echo "$MANIFEST_TOOL" >&6; }
7013 else
7014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7015 $as_echo "no" >&6; }
7016 fi
7017
7018
7019 fi
7020 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7021 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7022 # Extract the first word of "mt", so it can be a program name with args.
7023 set dummy mt; ac_word=$2
7024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7025 $as_echo_n "checking for $ac_word... " >&6; }
7026 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
7027 $as_echo_n "(cached) " >&6
7028 else
7029 if test -n "$ac_ct_MANIFEST_TOOL"; then
7030 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7031 else
7032 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7033 for as_dir in $PATH
7034 do
7035 IFS=$as_save_IFS
7036 test -z "$as_dir" && as_dir=.
7037 for ac_exec_ext in '' $ac_executable_extensions; do
7038 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7039 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7040 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7041 break 2
7042 fi
7043 done
7044 done
7045 IFS=$as_save_IFS
7046
7047 fi
7048 fi
7049 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7050 if test -n "$ac_ct_MANIFEST_TOOL"; then
7051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7052 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
7053 else
7054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7055 $as_echo "no" >&6; }
7056 fi
7057
7058 if test "x$ac_ct_MANIFEST_TOOL" = x; then
7059 MANIFEST_TOOL=":"
7060 else
7061 case $cross_compiling:$ac_tool_warned in
7062 yes:)
7063 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7064 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7065 ac_tool_warned=yes ;;
7066 esac
7067 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7068 fi
7069 else
7070 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7071 fi
7072
7073 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7075 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7076 if ${lt_cv_path_mainfest_tool+:} false; then :
7077 $as_echo_n "(cached) " >&6
7078 else
7079 lt_cv_path_mainfest_tool=no
7080 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7081 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7082 cat conftest.err >&5
7083 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7084 lt_cv_path_mainfest_tool=yes
7085 fi
7086 rm -f conftest*
7087 fi
7088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7089 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
7090 if test yes != "$lt_cv_path_mainfest_tool"; then
7091 MANIFEST_TOOL=:
7092 fi
7093
7094
7095
7096
7097
7098
7099 case $host_os in
7100 rhapsody* | darwin*)
7101 if test -n "$ac_tool_prefix"; then
7102 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7103 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7105 $as_echo_n "checking for $ac_word... " >&6; }
7106 if ${ac_cv_prog_DSYMUTIL+:} false; then :
7107 $as_echo_n "(cached) " >&6
7108 else
7109 if test -n "$DSYMUTIL"; then
7110 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7111 else
7112 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7113 for as_dir in $PATH
7114 do
7115 IFS=$as_save_IFS
7116 test -z "$as_dir" && as_dir=.
7117 for ac_exec_ext in '' $ac_executable_extensions; do
7118 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7119 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7120 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7121 break 2
7122 fi
7123 done
7124 done
7125 IFS=$as_save_IFS
7126
7127 fi
7128 fi
7129 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7130 if test -n "$DSYMUTIL"; then
7131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7132 $as_echo "$DSYMUTIL" >&6; }
7133 else
7134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7135 $as_echo "no" >&6; }
7136 fi
7137
7138
7139 fi
7140 if test -z "$ac_cv_prog_DSYMUTIL"; then
7141 ac_ct_DSYMUTIL=$DSYMUTIL
7142 # Extract the first word of "dsymutil", so it can be a program name with args.
7143 set dummy dsymutil; ac_word=$2
7144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7145 $as_echo_n "checking for $ac_word... " >&6; }
7146 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7147 $as_echo_n "(cached) " >&6
7148 else
7149 if test -n "$ac_ct_DSYMUTIL"; then
7150 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7151 else
7152 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7153 for as_dir in $PATH
7154 do
7155 IFS=$as_save_IFS
7156 test -z "$as_dir" && as_dir=.
7157 for ac_exec_ext in '' $ac_executable_extensions; do
7158 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7159 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7160 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7161 break 2
7162 fi
7163 done
7164 done
7165 IFS=$as_save_IFS
7166
7167 fi
7168 fi
7169 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7170 if test -n "$ac_ct_DSYMUTIL"; then
7171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7172 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7173 else
7174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7175 $as_echo "no" >&6; }
7176 fi
7177
7178 if test "x$ac_ct_DSYMUTIL" = x; then
7179 DSYMUTIL=":"
7180 else
7181 case $cross_compiling:$ac_tool_warned in
7182 yes:)
7183 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7184 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7185 ac_tool_warned=yes ;;
7186 esac
7187 DSYMUTIL=$ac_ct_DSYMUTIL
7188 fi
7189 else
7190 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7191 fi
7192
7193 if test -n "$ac_tool_prefix"; then
7194 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7195 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7197 $as_echo_n "checking for $ac_word... " >&6; }
7198 if ${ac_cv_prog_NMEDIT+:} false; then :
7199 $as_echo_n "(cached) " >&6
7200 else
7201 if test -n "$NMEDIT"; then
7202 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7203 else
7204 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7205 for as_dir in $PATH
7206 do
7207 IFS=$as_save_IFS
7208 test -z "$as_dir" && as_dir=.
7209 for ac_exec_ext in '' $ac_executable_extensions; do
7210 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7211 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7212 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7213 break 2
7214 fi
7215 done
7216 done
7217 IFS=$as_save_IFS
7218
7219 fi
7220 fi
7221 NMEDIT=$ac_cv_prog_NMEDIT
7222 if test -n "$NMEDIT"; then
7223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7224 $as_echo "$NMEDIT" >&6; }
7225 else
7226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7227 $as_echo "no" >&6; }
7228 fi
7229
7230
7231 fi
7232 if test -z "$ac_cv_prog_NMEDIT"; then
7233 ac_ct_NMEDIT=$NMEDIT
7234 # Extract the first word of "nmedit", so it can be a program name with args.
7235 set dummy nmedit; ac_word=$2
7236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7237 $as_echo_n "checking for $ac_word... " >&6; }
7238 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7239 $as_echo_n "(cached) " >&6
7240 else
7241 if test -n "$ac_ct_NMEDIT"; then
7242 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7243 else
7244 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7245 for as_dir in $PATH
7246 do
7247 IFS=$as_save_IFS
7248 test -z "$as_dir" && as_dir=.
7249 for ac_exec_ext in '' $ac_executable_extensions; do
7250 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7251 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7252 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7253 break 2
7254 fi
7255 done
7256 done
7257 IFS=$as_save_IFS
7258
7259 fi
7260 fi
7261 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7262 if test -n "$ac_ct_NMEDIT"; then
7263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7264 $as_echo "$ac_ct_NMEDIT" >&6; }
7265 else
7266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7267 $as_echo "no" >&6; }
7268 fi
7269
7270 if test "x$ac_ct_NMEDIT" = x; then
7271 NMEDIT=":"
7272 else
7273 case $cross_compiling:$ac_tool_warned in
7274 yes:)
7275 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7276 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7277 ac_tool_warned=yes ;;
7278 esac
7279 NMEDIT=$ac_ct_NMEDIT
7280 fi
7281 else
7282 NMEDIT="$ac_cv_prog_NMEDIT"
7283 fi
7284
7285 if test -n "$ac_tool_prefix"; then
7286 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7287 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7289 $as_echo_n "checking for $ac_word... " >&6; }
7290 if ${ac_cv_prog_LIPO+:} false; then :
7291 $as_echo_n "(cached) " >&6
7292 else
7293 if test -n "$LIPO"; then
7294 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7295 else
7296 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7297 for as_dir in $PATH
7298 do
7299 IFS=$as_save_IFS
7300 test -z "$as_dir" && as_dir=.
7301 for ac_exec_ext in '' $ac_executable_extensions; do
7302 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7303 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7304 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7305 break 2
7306 fi
7307 done
7308 done
7309 IFS=$as_save_IFS
7310
7311 fi
7312 fi
7313 LIPO=$ac_cv_prog_LIPO
7314 if test -n "$LIPO"; then
7315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7316 $as_echo "$LIPO" >&6; }
7317 else
7318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7319 $as_echo "no" >&6; }
7320 fi
7321
7322
7323 fi
7324 if test -z "$ac_cv_prog_LIPO"; then
7325 ac_ct_LIPO=$LIPO
7326 # Extract the first word of "lipo", so it can be a program name with args.
7327 set dummy lipo; ac_word=$2
7328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7329 $as_echo_n "checking for $ac_word... " >&6; }
7330 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7331 $as_echo_n "(cached) " >&6
7332 else
7333 if test -n "$ac_ct_LIPO"; then
7334 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7335 else
7336 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7337 for as_dir in $PATH
7338 do
7339 IFS=$as_save_IFS
7340 test -z "$as_dir" && as_dir=.
7341 for ac_exec_ext in '' $ac_executable_extensions; do
7342 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7343 ac_cv_prog_ac_ct_LIPO="lipo"
7344 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7345 break 2
7346 fi
7347 done
7348 done
7349 IFS=$as_save_IFS
7350
7351 fi
7352 fi
7353 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7354 if test -n "$ac_ct_LIPO"; then
7355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7356 $as_echo "$ac_ct_LIPO" >&6; }
7357 else
7358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7359 $as_echo "no" >&6; }
7360 fi
7361
7362 if test "x$ac_ct_LIPO" = x; then
7363 LIPO=":"
7364 else
7365 case $cross_compiling:$ac_tool_warned in
7366 yes:)
7367 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7368 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7369 ac_tool_warned=yes ;;
7370 esac
7371 LIPO=$ac_ct_LIPO
7372 fi
7373 else
7374 LIPO="$ac_cv_prog_LIPO"
7375 fi
7376
7377 if test -n "$ac_tool_prefix"; then
7378 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7379 set dummy ${ac_tool_prefix}otool; ac_word=$2
7380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7381 $as_echo_n "checking for $ac_word... " >&6; }
7382 if ${ac_cv_prog_OTOOL+:} false; then :
7383 $as_echo_n "(cached) " >&6
7384 else
7385 if test -n "$OTOOL"; then
7386 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7387 else
7388 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7389 for as_dir in $PATH
7390 do
7391 IFS=$as_save_IFS
7392 test -z "$as_dir" && as_dir=.
7393 for ac_exec_ext in '' $ac_executable_extensions; do
7394 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7395 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7396 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7397 break 2
7398 fi
7399 done
7400 done
7401 IFS=$as_save_IFS
7402
7403 fi
7404 fi
7405 OTOOL=$ac_cv_prog_OTOOL
7406 if test -n "$OTOOL"; then
7407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7408 $as_echo "$OTOOL" >&6; }
7409 else
7410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7411 $as_echo "no" >&6; }
7412 fi
7413
7414
7415 fi
7416 if test -z "$ac_cv_prog_OTOOL"; then
7417 ac_ct_OTOOL=$OTOOL
7418 # Extract the first word of "otool", so it can be a program name with args.
7419 set dummy otool; ac_word=$2
7420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7421 $as_echo_n "checking for $ac_word... " >&6; }
7422 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7423 $as_echo_n "(cached) " >&6
7424 else
7425 if test -n "$ac_ct_OTOOL"; then
7426 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7427 else
7428 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7429 for as_dir in $PATH
7430 do
7431 IFS=$as_save_IFS
7432 test -z "$as_dir" && as_dir=.
7433 for ac_exec_ext in '' $ac_executable_extensions; do
7434 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7435 ac_cv_prog_ac_ct_OTOOL="otool"
7436 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7437 break 2
7438 fi
7439 done
7440 done
7441 IFS=$as_save_IFS
7442
7443 fi
7444 fi
7445 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7446 if test -n "$ac_ct_OTOOL"; then
7447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7448 $as_echo "$ac_ct_OTOOL" >&6; }
7449 else
7450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7451 $as_echo "no" >&6; }
7452 fi
7453
7454 if test "x$ac_ct_OTOOL" = x; then
7455 OTOOL=":"
7456 else
7457 case $cross_compiling:$ac_tool_warned in
7458 yes:)
7459 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7460 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7461 ac_tool_warned=yes ;;
7462 esac
7463 OTOOL=$ac_ct_OTOOL
7464 fi
7465 else
7466 OTOOL="$ac_cv_prog_OTOOL"
7467 fi
7468
7469 if test -n "$ac_tool_prefix"; then
7470 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7471 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7473 $as_echo_n "checking for $ac_word... " >&6; }
7474 if ${ac_cv_prog_OTOOL64+:} false; then :
7475 $as_echo_n "(cached) " >&6
7476 else
7477 if test -n "$OTOOL64"; then
7478 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7479 else
7480 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7481 for as_dir in $PATH
7482 do
7483 IFS=$as_save_IFS
7484 test -z "$as_dir" && as_dir=.
7485 for ac_exec_ext in '' $ac_executable_extensions; do
7486 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7487 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7488 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7489 break 2
7490 fi
7491 done
7492 done
7493 IFS=$as_save_IFS
7494
7495 fi
7496 fi
7497 OTOOL64=$ac_cv_prog_OTOOL64
7498 if test -n "$OTOOL64"; then
7499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7500 $as_echo "$OTOOL64" >&6; }
7501 else
7502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7503 $as_echo "no" >&6; }
7504 fi
7505
7506
7507 fi
7508 if test -z "$ac_cv_prog_OTOOL64"; then
7509 ac_ct_OTOOL64=$OTOOL64
7510 # Extract the first word of "otool64", so it can be a program name with args.
7511 set dummy otool64; ac_word=$2
7512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7513 $as_echo_n "checking for $ac_word... " >&6; }
7514 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7515 $as_echo_n "(cached) " >&6
7516 else
7517 if test -n "$ac_ct_OTOOL64"; then
7518 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7519 else
7520 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7521 for as_dir in $PATH
7522 do
7523 IFS=$as_save_IFS
7524 test -z "$as_dir" && as_dir=.
7525 for ac_exec_ext in '' $ac_executable_extensions; do
7526 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7527 ac_cv_prog_ac_ct_OTOOL64="otool64"
7528 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7529 break 2
7530 fi
7531 done
7532 done
7533 IFS=$as_save_IFS
7534
7535 fi
7536 fi
7537 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7538 if test -n "$ac_ct_OTOOL64"; then
7539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7540 $as_echo "$ac_ct_OTOOL64" >&6; }
7541 else
7542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7543 $as_echo "no" >&6; }
7544 fi
7545
7546 if test "x$ac_ct_OTOOL64" = x; then
7547 OTOOL64=":"
7548 else
7549 case $cross_compiling:$ac_tool_warned in
7550 yes:)
7551 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7552 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7553 ac_tool_warned=yes ;;
7554 esac
7555 OTOOL64=$ac_ct_OTOOL64
7556 fi
7557 else
7558 OTOOL64="$ac_cv_prog_OTOOL64"
7559 fi
7560
7561
7562
7563
7564
7565
7566
7567
7568
7569
7570
7571
7572
7573
7574
7575
7576
7577
7578
7579
7580
7581
7582
7583
7584
7585
7586
7587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7588 $as_echo_n "checking for -single_module linker flag... " >&6; }
7589 if ${lt_cv_apple_cc_single_mod+:} false; then :
7590 $as_echo_n "(cached) " >&6
7591 else
7592 lt_cv_apple_cc_single_mod=no
7593 if test -z "$LT_MULTI_MODULE"; then
7594 # By default we will add the -single_module flag. You can override
7595 # by either setting the environment variable LT_MULTI_MODULE
7596 # non-empty at configure time, or by adding -multi_module to the
7597 # link flags.
7598 rm -rf libconftest.dylib*
7599 echo "int foo(void){return 1;}" > conftest.c
7600 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7601 -dynamiclib -Wl,-single_module conftest.c" >&5
7602 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7603 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7604 _lt_result=$?
7605 # If there is a non-empty error log, and "single_module"
7606 # appears in it, assume the flag caused a linker warning
7607 if test -s conftest.err && $GREP single_module conftest.err; then
7608 cat conftest.err >&5
7609 # Otherwise, if the output was created with a 0 exit code from
7610 # the compiler, it worked.
7611 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
7612 lt_cv_apple_cc_single_mod=yes
7613 else
7614 cat conftest.err >&5
7615 fi
7616 rm -rf libconftest.dylib*
7617 rm -f conftest.*
7618 fi
7619 fi
7620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7621 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7622
7623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7624 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7625 if ${lt_cv_ld_exported_symbols_list+:} false; then :
7626 $as_echo_n "(cached) " >&6
7627 else
7628 lt_cv_ld_exported_symbols_list=no
7629 save_LDFLAGS=$LDFLAGS
7630 echo "_main" > conftest.sym
7631 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7632 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7633 /* end confdefs.h. */
7634
7635 int
7636 main ()
7637 {
7638
7639 ;
7640 return 0;
7641 }
7642 _ACEOF
7643 if ac_fn_c_try_link "$LINENO"; then :
7644 lt_cv_ld_exported_symbols_list=yes
7645 else
7646 lt_cv_ld_exported_symbols_list=no
7647 fi
7648 rm -f core conftest.err conftest.$ac_objext \
7649 conftest$ac_exeext conftest.$ac_ext
7650 LDFLAGS=$save_LDFLAGS
7651
7652 fi
7653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7654 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7655
7656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7657 $as_echo_n "checking for -force_load linker flag... " >&6; }
7658 if ${lt_cv_ld_force_load+:} false; then :
7659 $as_echo_n "(cached) " >&6
7660 else
7661 lt_cv_ld_force_load=no
7662 cat > conftest.c << _LT_EOF
7663 int forced_loaded() { return 2;}
7664 _LT_EOF
7665 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7666 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7667 echo "$AR cru libconftest.a conftest.o" >&5
7668 $AR cru libconftest.a conftest.o 2>&5
7669 echo "$RANLIB libconftest.a" >&5
7670 $RANLIB libconftest.a 2>&5
7671 cat > conftest.c << _LT_EOF
7672 int main() { return 0;}
7673 _LT_EOF
7674 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7675 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7676 _lt_result=$?
7677 if test -s conftest.err && $GREP force_load conftest.err; then
7678 cat conftest.err >&5
7679 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
7680 lt_cv_ld_force_load=yes
7681 else
7682 cat conftest.err >&5
7683 fi
7684 rm -f conftest.err libconftest.a conftest conftest.c
7685 rm -rf conftest.dSYM
7686
7687 fi
7688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7689 $as_echo "$lt_cv_ld_force_load" >&6; }
7690 case $host_os in
7691 rhapsody* | darwin1.[012])
7692 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
7693 darwin1.*)
7694 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
7695 darwin*) # darwin 5.x on
7696 # if running on 10.5 or later, the deployment target defaults
7697 # to the OS version, if on x86, and 10.4, the deployment
7698 # target defaults to 10.4. Don't you love it?
7699 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7700 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7701 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
7702 10.[012][,.]*)
7703 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
7704 10.*)
7705 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
7706 esac
7707 ;;
7708 esac
7709 if test yes = "$lt_cv_apple_cc_single_mod"; then
7710 _lt_dar_single_mod='$single_module'
7711 fi
7712 if test yes = "$lt_cv_ld_exported_symbols_list"; then
7713 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
7714 else
7715 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
7716 fi
7717 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
7718 _lt_dsymutil='~$DSYMUTIL $lib || :'
7719 else
7720 _lt_dsymutil=
7721 fi
7722 ;;
7723 esac
7724
7725 # func_munge_path_list VARIABLE PATH
7726 # -----------------------------------
7727 # VARIABLE is name of variable containing _space_ separated list of
7728 # directories to be munged by the contents of PATH, which is string
7729 # having a format:
7730 # "DIR[:DIR]:"
7731 # string "DIR[ DIR]" will be prepended to VARIABLE
7732 # ":DIR[:DIR]"
7733 # string "DIR[ DIR]" will be appended to VARIABLE
7734 # "DIRP[:DIRP]::[DIRA:]DIRA"
7735 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
7736 # "DIRA[ DIRA]" will be appended to VARIABLE
7737 # "DIR[:DIR]"
7738 # VARIABLE will be replaced by "DIR[ DIR]"
7739 func_munge_path_list ()
7740 {
7741 case x$2 in
7742 x)
7743 ;;
7744 *:)
7745 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
7746 ;;
7747 x:*)
7748 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
7749 ;;
7750 *::*)
7751 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
7752 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
7753 ;;
7754 *)
7755 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
7756 ;;
7757 esac
7758 }
7759
7760 ac_ext=c
7761 ac_cpp='$CPP $CPPFLAGS'
7762 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7763 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7764 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7766 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7767 # On Suns, sometimes $CPP names a directory.
7768 if test -n "$CPP" && test -d "$CPP"; then
7769 CPP=
7770 fi
7771 if test -z "$CPP"; then
7772 if ${ac_cv_prog_CPP+:} false; then :
7773 $as_echo_n "(cached) " >&6
7774 else
7775 # Double quotes because CPP needs to be expanded
7776 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7777 do
7778 ac_preproc_ok=false
7779 for ac_c_preproc_warn_flag in '' yes
7780 do
7781 # Use a header file that comes with gcc, so configuring glibc
7782 # with a fresh cross-compiler works.
7783 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7784 # <limits.h> exists even on freestanding compilers.
7785 # On the NeXT, cc -E runs the code through the compiler's parser,
7786 # not just through cpp. "Syntax error" is here to catch this case.
7787 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7788 /* end confdefs.h. */
7789 #ifdef __STDC__
7790 # include <limits.h>
7791 #else
7792 # include <assert.h>
7793 #endif
7794 Syntax error
7795 _ACEOF
7796 if ac_fn_c_try_cpp "$LINENO"; then :
7797
7798 else
7799 # Broken: fails on valid input.
7800 continue
7801 fi
7802 rm -f conftest.err conftest.i conftest.$ac_ext
7803
7804 # OK, works on sane cases. Now check whether nonexistent headers
7805 # can be detected and how.
7806 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7807 /* end confdefs.h. */
7808 #include <ac_nonexistent.h>
7809 _ACEOF
7810 if ac_fn_c_try_cpp "$LINENO"; then :
7811 # Broken: success on invalid input.
7812 continue
7813 else
7814 # Passes both tests.
7815 ac_preproc_ok=:
7816 break
7817 fi
7818 rm -f conftest.err conftest.i conftest.$ac_ext
7819
7820 done
7821 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7822 rm -f conftest.i conftest.err conftest.$ac_ext
7823 if $ac_preproc_ok; then :
7824 break
7825 fi
7826
7827 done
7828 ac_cv_prog_CPP=$CPP
7829
7830 fi
7831 CPP=$ac_cv_prog_CPP
7832 else
7833 ac_cv_prog_CPP=$CPP
7834 fi
7835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7836 $as_echo "$CPP" >&6; }
7837 ac_preproc_ok=false
7838 for ac_c_preproc_warn_flag in '' yes
7839 do
7840 # Use a header file that comes with gcc, so configuring glibc
7841 # with a fresh cross-compiler works.
7842 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7843 # <limits.h> exists even on freestanding compilers.
7844 # On the NeXT, cc -E runs the code through the compiler's parser,
7845 # not just through cpp. "Syntax error" is here to catch this case.
7846 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7847 /* end confdefs.h. */
7848 #ifdef __STDC__
7849 # include <limits.h>
7850 #else
7851 # include <assert.h>
7852 #endif
7853 Syntax error
7854 _ACEOF
7855 if ac_fn_c_try_cpp "$LINENO"; then :
7856
7857 else
7858 # Broken: fails on valid input.
7859 continue
7860 fi
7861 rm -f conftest.err conftest.i conftest.$ac_ext
7862
7863 # OK, works on sane cases. Now check whether nonexistent headers
7864 # can be detected and how.
7865 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7866 /* end confdefs.h. */
7867 #include <ac_nonexistent.h>
7868 _ACEOF
7869 if ac_fn_c_try_cpp "$LINENO"; then :
7870 # Broken: success on invalid input.
7871 continue
7872 else
7873 # Passes both tests.
7874 ac_preproc_ok=:
7875 break
7876 fi
7877 rm -f conftest.err conftest.i conftest.$ac_ext
7878
7879 done
7880 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7881 rm -f conftest.i conftest.err conftest.$ac_ext
7882 if $ac_preproc_ok; then :
7883
7884 else
7885 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7886 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7887 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7888 See \`config.log' for more details" "$LINENO" 5; }
7889 fi
7890
7891 ac_ext=c
7892 ac_cpp='$CPP $CPPFLAGS'
7893 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7894 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7895 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7896
7897
7898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7899 $as_echo_n "checking for ANSI C header files... " >&6; }
7900 if ${ac_cv_header_stdc+:} false; then :
7901 $as_echo_n "(cached) " >&6
7902 else
7903 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7904 /* end confdefs.h. */
7905 #include <stdlib.h>
7906 #include <stdarg.h>
7907 #include <string.h>
7908 #include <float.h>
7909
7910 int
7911 main ()
7912 {
7913
7914 ;
7915 return 0;
7916 }
7917 _ACEOF
7918 if ac_fn_c_try_compile "$LINENO"; then :
7919 ac_cv_header_stdc=yes
7920 else
7921 ac_cv_header_stdc=no
7922 fi
7923 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7924
7925 if test $ac_cv_header_stdc = yes; then
7926 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7927 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7928 /* end confdefs.h. */
7929 #include <string.h>
7930
7931 _ACEOF
7932 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7933 $EGREP "memchr" >/dev/null 2>&1; then :
7934
7935 else
7936 ac_cv_header_stdc=no
7937 fi
7938 rm -f conftest*
7939
7940 fi
7941
7942 if test $ac_cv_header_stdc = yes; then
7943 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7944 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7945 /* end confdefs.h. */
7946 #include <stdlib.h>
7947
7948 _ACEOF
7949 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7950 $EGREP "free" >/dev/null 2>&1; then :
7951
7952 else
7953 ac_cv_header_stdc=no
7954 fi
7955 rm -f conftest*
7956
7957 fi
7958
7959 if test $ac_cv_header_stdc = yes; then
7960 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7961 if test "$cross_compiling" = yes; then :
7962 :
7963 else
7964 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7965 /* end confdefs.h. */
7966 #include <ctype.h>
7967 #include <stdlib.h>
7968 #if ((' ' & 0x0FF) == 0x020)
7969 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7970 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7971 #else
7972 # define ISLOWER(c) \
7973 (('a' <= (c) && (c) <= 'i') \
7974 || ('j' <= (c) && (c) <= 'r') \
7975 || ('s' <= (c) && (c) <= 'z'))
7976 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7977 #endif
7978
7979 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7980 int
7981 main ()
7982 {
7983 int i;
7984 for (i = 0; i < 256; i++)
7985 if (XOR (islower (i), ISLOWER (i))
7986 || toupper (i) != TOUPPER (i))
7987 return 2;
7988 return 0;
7989 }
7990 _ACEOF
7991 if ac_fn_c_try_run "$LINENO"; then :
7992
7993 else
7994 ac_cv_header_stdc=no
7995 fi
7996 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7997 conftest.$ac_objext conftest.beam conftest.$ac_ext
7998 fi
7999
8000 fi
8001 fi
8002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8003 $as_echo "$ac_cv_header_stdc" >&6; }
8004 if test $ac_cv_header_stdc = yes; then
8005
8006 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
8007
8008 fi
8009
8010 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
8011 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8012 inttypes.h stdint.h unistd.h
8013 do :
8014 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8015 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
8016 "
8017 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8018 cat >>confdefs.h <<_ACEOF
8019 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8020 _ACEOF
8021
8022 fi
8023
8024 done
8025
8026
8027 for ac_header in dlfcn.h
8028 do :
8029 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8030 "
8031 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8032 cat >>confdefs.h <<_ACEOF
8033 #define HAVE_DLFCN_H 1
8034 _ACEOF
8035
8036 fi
8037
8038 done
8039
8040
8041
8042
8043
8044 # Set options
8045
8046
8047
8048 enable_dlopen=no
8049
8050
8051 enable_win32_dll=no
8052
8053
8054 # Check whether --enable-shared was given.
8055 if test "${enable_shared+set}" = set; then :
8056 enableval=$enable_shared; p=${PACKAGE-default}
8057 case $enableval in
8058 yes) enable_shared=yes ;;
8059 no) enable_shared=no ;;
8060 *)
8061 enable_shared=no
8062 # Look at the argument we got. We use all the common list separators.
8063 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8064 for pkg in $enableval; do
8065 IFS=$lt_save_ifs
8066 if test "X$pkg" = "X$p"; then
8067 enable_shared=yes
8068 fi
8069 done
8070 IFS=$lt_save_ifs
8071 ;;
8072 esac
8073 else
8074 enable_shared=yes
8075 fi
8076
8077
8078
8079
8080
8081
8082
8083
8084
8085 # Check whether --enable-static was given.
8086 if test "${enable_static+set}" = set; then :
8087 enableval=$enable_static; p=${PACKAGE-default}
8088 case $enableval in
8089 yes) enable_static=yes ;;
8090 no) enable_static=no ;;
8091 *)
8092 enable_static=no
8093 # Look at the argument we got. We use all the common list separators.
8094 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8095 for pkg in $enableval; do
8096 IFS=$lt_save_ifs
8097 if test "X$pkg" = "X$p"; then
8098 enable_static=yes
8099 fi
8100 done
8101 IFS=$lt_save_ifs
8102 ;;
8103 esac
8104 else
8105 enable_static=yes
8106 fi
8107
8108
8109
8110
8111
8112
8113
8114
8115
8116
8117 # Check whether --with-pic was given.
8118 if test "${with_pic+set}" = set; then :
8119 withval=$with_pic; lt_p=${PACKAGE-default}
8120 case $withval in
8121 yes|no) pic_mode=$withval ;;
8122 *)
8123 pic_mode=default
8124 # Look at the argument we got. We use all the common list separators.
8125 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8126 for lt_pkg in $withval; do
8127 IFS=$lt_save_ifs
8128 if test "X$lt_pkg" = "X$lt_p"; then
8129 pic_mode=yes
8130 fi
8131 done
8132 IFS=$lt_save_ifs
8133 ;;
8134 esac
8135 else
8136 pic_mode=default
8137 fi
8138
8139
8140
8141
8142
8143
8144
8145
8146 # Check whether --enable-fast-install was given.
8147 if test "${enable_fast_install+set}" = set; then :
8148 enableval=$enable_fast_install; p=${PACKAGE-default}
8149 case $enableval in
8150 yes) enable_fast_install=yes ;;
8151 no) enable_fast_install=no ;;
8152 *)
8153 enable_fast_install=no
8154 # Look at the argument we got. We use all the common list separators.
8155 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8156 for pkg in $enableval; do
8157 IFS=$lt_save_ifs
8158 if test "X$pkg" = "X$p"; then
8159 enable_fast_install=yes
8160 fi
8161 done
8162 IFS=$lt_save_ifs
8163 ;;
8164 esac
8165 else
8166 enable_fast_install=yes
8167 fi
8168
8169
8170
8171
8172
8173
8174
8175
8176 shared_archive_member_spec=
8177 case $host,$enable_shared in
8178 power*-*-aix[5-9]*,yes)
8179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
8180 $as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
8181
8182 # Check whether --with-aix-soname was given.
8183 if test "${with_aix_soname+set}" = set; then :
8184 withval=$with_aix_soname; case $withval in
8185 aix|svr4|both)
8186 ;;
8187 *)
8188 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
8189 ;;
8190 esac
8191 lt_cv_with_aix_soname=$with_aix_soname
8192 else
8193 if ${lt_cv_with_aix_soname+:} false; then :
8194 $as_echo_n "(cached) " >&6
8195 else
8196 lt_cv_with_aix_soname=aix
8197 fi
8198
8199 with_aix_soname=$lt_cv_with_aix_soname
8200 fi
8201
8202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
8203 $as_echo "$with_aix_soname" >&6; }
8204 if test aix != "$with_aix_soname"; then
8205 # For the AIX way of multilib, we name the shared archive member
8206 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
8207 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
8208 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
8209 # the AIX toolchain works better with OBJECT_MODE set (default 32).
8210 if test 64 = "${OBJECT_MODE-32}"; then
8211 shared_archive_member_spec=shr_64
8212 else
8213 shared_archive_member_spec=shr
8214 fi
8215 fi
8216 ;;
8217 *)
8218 with_aix_soname=aix
8219 ;;
8220 esac
8221
8222
8223
8224
8225
8226
8227
8228
8229
8230
8231 # This can be used to rebuild libtool when needed
8232 LIBTOOL_DEPS=$ltmain
8233
8234 # Always use our own libtool.
8235 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8236
8237
8238
8239
8240
8241
8242
8243
8244
8245
8246
8247
8248
8249
8250
8251
8252
8253
8254
8255
8256
8257
8258
8259
8260
8261
8262
8263
8264
8265
8266 test -z "$LN_S" && LN_S="ln -s"
8267
8268
8269
8270
8271
8272
8273
8274
8275
8276
8277
8278
8279
8280
8281 if test -n "${ZSH_VERSION+set}"; then
8282 setopt NO_GLOB_SUBST
8283 fi
8284
8285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8286 $as_echo_n "checking for objdir... " >&6; }
8287 if ${lt_cv_objdir+:} false; then :
8288 $as_echo_n "(cached) " >&6
8289 else
8290 rm -f .libs 2>/dev/null
8291 mkdir .libs 2>/dev/null
8292 if test -d .libs; then
8293 lt_cv_objdir=.libs
8294 else
8295 # MS-DOS does not allow filenames that begin with a dot.
8296 lt_cv_objdir=_libs
8297 fi
8298 rmdir .libs 2>/dev/null
8299 fi
8300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8301 $as_echo "$lt_cv_objdir" >&6; }
8302 objdir=$lt_cv_objdir
8303
8304
8305
8306
8307
8308 cat >>confdefs.h <<_ACEOF
8309 #define LT_OBJDIR "$lt_cv_objdir/"
8310 _ACEOF
8311
8312
8313
8314
8315 case $host_os in
8316 aix3*)
8317 # AIX sometimes has problems with the GCC collect2 program. For some
8318 # reason, if we set the COLLECT_NAMES environment variable, the problems
8319 # vanish in a puff of smoke.
8320 if test set != "${COLLECT_NAMES+set}"; then
8321 COLLECT_NAMES=
8322 export COLLECT_NAMES
8323 fi
8324 ;;
8325 esac
8326
8327 # Global variables:
8328 ofile=libtool
8329 can_build_shared=yes
8330
8331 # All known linkers require a '.a' archive for static linking (except MSVC,
8332 # which needs '.lib').
8333 libext=a
8334
8335 with_gnu_ld=$lt_cv_prog_gnu_ld
8336
8337 old_CC=$CC
8338 old_CFLAGS=$CFLAGS
8339
8340 # Set sane defaults for various variables
8341 test -z "$CC" && CC=cc
8342 test -z "$LTCC" && LTCC=$CC
8343 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8344 test -z "$LD" && LD=ld
8345 test -z "$ac_objext" && ac_objext=o
8346
8347 func_cc_basename $compiler
8348 cc_basename=$func_cc_basename_result
8349
8350
8351 # Only perform the check for file, if the check method requires it
8352 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8353 case $deplibs_check_method in
8354 file_magic*)
8355 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8357 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8358 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8359 $as_echo_n "(cached) " >&6
8360 else
8361 case $MAGIC_CMD in
8362 [\\/*] | ?:[\\/]*)
8363 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8364 ;;
8365 *)
8366 lt_save_MAGIC_CMD=$MAGIC_CMD
8367 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8368 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8369 for ac_dir in $ac_dummy; do
8370 IFS=$lt_save_ifs
8371 test -z "$ac_dir" && ac_dir=.
8372 if test -f "$ac_dir/${ac_tool_prefix}file"; then
8373 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
8374 if test -n "$file_magic_test_file"; then
8375 case $deplibs_check_method in
8376 "file_magic "*)
8377 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8378 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8379 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8380 $EGREP "$file_magic_regex" > /dev/null; then
8381 :
8382 else
8383 cat <<_LT_EOF 1>&2
8384
8385 *** Warning: the command libtool uses to detect shared libraries,
8386 *** $file_magic_cmd, produces output that libtool cannot recognize.
8387 *** The result is that libtool may fail to recognize shared libraries
8388 *** as such. This will affect the creation of libtool libraries that
8389 *** depend on shared libraries, but programs linked with such libtool
8390 *** libraries will work regardless of this problem. Nevertheless, you
8391 *** may want to report the problem to your system manager and/or to
8392 *** bug-libtool@gnu.org
8393
8394 _LT_EOF
8395 fi ;;
8396 esac
8397 fi
8398 break
8399 fi
8400 done
8401 IFS=$lt_save_ifs
8402 MAGIC_CMD=$lt_save_MAGIC_CMD
8403 ;;
8404 esac
8405 fi
8406
8407 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8408 if test -n "$MAGIC_CMD"; then
8409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8410 $as_echo "$MAGIC_CMD" >&6; }
8411 else
8412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8413 $as_echo "no" >&6; }
8414 fi
8415
8416
8417
8418
8419
8420 if test -z "$lt_cv_path_MAGIC_CMD"; then
8421 if test -n "$ac_tool_prefix"; then
8422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8423 $as_echo_n "checking for file... " >&6; }
8424 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8425 $as_echo_n "(cached) " >&6
8426 else
8427 case $MAGIC_CMD in
8428 [\\/*] | ?:[\\/]*)
8429 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8430 ;;
8431 *)
8432 lt_save_MAGIC_CMD=$MAGIC_CMD
8433 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8434 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8435 for ac_dir in $ac_dummy; do
8436 IFS=$lt_save_ifs
8437 test -z "$ac_dir" && ac_dir=.
8438 if test -f "$ac_dir/file"; then
8439 lt_cv_path_MAGIC_CMD=$ac_dir/"file"
8440 if test -n "$file_magic_test_file"; then
8441 case $deplibs_check_method in
8442 "file_magic "*)
8443 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8444 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8445 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8446 $EGREP "$file_magic_regex" > /dev/null; then
8447 :
8448 else
8449 cat <<_LT_EOF 1>&2
8450
8451 *** Warning: the command libtool uses to detect shared libraries,
8452 *** $file_magic_cmd, produces output that libtool cannot recognize.
8453 *** The result is that libtool may fail to recognize shared libraries
8454 *** as such. This will affect the creation of libtool libraries that
8455 *** depend on shared libraries, but programs linked with such libtool
8456 *** libraries will work regardless of this problem. Nevertheless, you
8457 *** may want to report the problem to your system manager and/or to
8458 *** bug-libtool@gnu.org
8459
8460 _LT_EOF
8461 fi ;;
8462 esac
8463 fi
8464 break
8465 fi
8466 done
8467 IFS=$lt_save_ifs
8468 MAGIC_CMD=$lt_save_MAGIC_CMD
8469 ;;
8470 esac
8471 fi
8472
8473 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8474 if test -n "$MAGIC_CMD"; then
8475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8476 $as_echo "$MAGIC_CMD" >&6; }
8477 else
8478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8479 $as_echo "no" >&6; }
8480 fi
8481
8482
8483 else
8484 MAGIC_CMD=:
8485 fi
8486 fi
8487
8488 fi
8489 ;;
8490 esac
8491
8492 # Use C for the default configuration in the libtool script
8493
8494 lt_save_CC=$CC
8495 ac_ext=c
8496 ac_cpp='$CPP $CPPFLAGS'
8497 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8498 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8499 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8500
8501
8502 # Source file extension for C test sources.
8503 ac_ext=c
8504
8505 # Object file extension for compiled C test sources.
8506 objext=o
8507 objext=$objext
8508
8509 # Code to be used in simple compile tests
8510 lt_simple_compile_test_code="int some_variable = 0;"
8511
8512 # Code to be used in simple link tests
8513 lt_simple_link_test_code='int main(){return(0);}'
8514
8515
8516
8517
8518
8519
8520
8521 # If no C compiler was specified, use CC.
8522 LTCC=${LTCC-"$CC"}
8523
8524 # If no C compiler flags were specified, use CFLAGS.
8525 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8526
8527 # Allow CC to be a program name with arguments.
8528 compiler=$CC
8529
8530 # Save the default compiler, since it gets overwritten when the other
8531 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8532 compiler_DEFAULT=$CC
8533
8534 # save warnings/boilerplate of simple test code
8535 ac_outfile=conftest.$ac_objext
8536 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8537 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8538 _lt_compiler_boilerplate=`cat conftest.err`
8539 $RM conftest*
8540
8541 ac_outfile=conftest.$ac_objext
8542 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8543 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8544 _lt_linker_boilerplate=`cat conftest.err`
8545 $RM -r conftest*
8546
8547
8548 ## CAVEAT EMPTOR:
8549 ## There is no encapsulation within the following macros, do not change
8550 ## the running order or otherwise move them around unless you know exactly
8551 ## what you are doing...
8552 if test -n "$compiler"; then
8553
8554 lt_prog_compiler_no_builtin_flag=
8555
8556 if test yes = "$GCC"; then
8557 case $cc_basename in
8558 nvcc*)
8559 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8560 *)
8561 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8562 esac
8563
8564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8565 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8566 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8567 $as_echo_n "(cached) " >&6
8568 else
8569 lt_cv_prog_compiler_rtti_exceptions=no
8570 ac_outfile=conftest.$ac_objext
8571 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8572 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
8573 # Insert the option either (1) after the last *FLAGS variable, or
8574 # (2) before a word containing "conftest.", or (3) at the end.
8575 # Note that $ac_compile itself does not contain backslashes and begins
8576 # with a dollar sign (not a hyphen), so the echo should work correctly.
8577 # The option is referenced via a variable to avoid confusing sed.
8578 lt_compile=`echo "$ac_compile" | $SED \
8579 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8580 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8581 -e 's:$: $lt_compiler_flag:'`
8582 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8583 (eval "$lt_compile" 2>conftest.err)
8584 ac_status=$?
8585 cat conftest.err >&5
8586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8587 if (exit $ac_status) && test -s "$ac_outfile"; then
8588 # The compiler can only warn and ignore the option if not recognized
8589 # So say no if there are warnings other than the usual output.
8590 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8591 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8592 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8593 lt_cv_prog_compiler_rtti_exceptions=yes
8594 fi
8595 fi
8596 $RM conftest*
8597
8598 fi
8599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8600 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8601
8602 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
8603 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8604 else
8605 :
8606 fi
8607
8608 fi
8609
8610
8611
8612
8613
8614
8615 lt_prog_compiler_wl=
8616 lt_prog_compiler_pic=
8617 lt_prog_compiler_static=
8618
8619
8620 if test yes = "$GCC"; then
8621 lt_prog_compiler_wl='-Wl,'
8622 lt_prog_compiler_static='-static'
8623
8624 case $host_os in
8625 aix*)
8626 # All AIX code is PIC.
8627 if test ia64 = "$host_cpu"; then
8628 # AIX 5 now supports IA64 processor
8629 lt_prog_compiler_static='-Bstatic'
8630 fi
8631 lt_prog_compiler_pic='-fPIC'
8632 ;;
8633
8634 amigaos*)
8635 case $host_cpu in
8636 powerpc)
8637 # see comment about AmigaOS4 .so support
8638 lt_prog_compiler_pic='-fPIC'
8639 ;;
8640 m68k)
8641 # FIXME: we need at least 68020 code to build shared libraries, but
8642 # adding the '-m68020' flag to GCC prevents building anything better,
8643 # like '-m68040'.
8644 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8645 ;;
8646 esac
8647 ;;
8648
8649 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8650 # PIC is the default for these OSes.
8651 ;;
8652
8653 mingw* | cygwin* | pw32* | os2* | cegcc*)
8654 # This hack is so that the source file can tell whether it is being
8655 # built for inclusion in a dll (and should export symbols for example).
8656 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8657 # (--disable-auto-import) libraries
8658 lt_prog_compiler_pic='-DDLL_EXPORT'
8659 case $host_os in
8660 os2*)
8661 lt_prog_compiler_static='$wl-static'
8662 ;;
8663 esac
8664 ;;
8665
8666 darwin* | rhapsody*)
8667 # PIC is the default on this platform
8668 # Common symbols not allowed in MH_DYLIB files
8669 lt_prog_compiler_pic='-fno-common'
8670 ;;
8671
8672 haiku*)
8673 # PIC is the default for Haiku.
8674 # The "-static" flag exists, but is broken.
8675 lt_prog_compiler_static=
8676 ;;
8677
8678 hpux*)
8679 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8680 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8681 # sets the default TLS model and affects inlining.
8682 case $host_cpu in
8683 hppa*64*)
8684 # +Z the default
8685 ;;
8686 *)
8687 lt_prog_compiler_pic='-fPIC'
8688 ;;
8689 esac
8690 ;;
8691
8692 interix[3-9]*)
8693 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8694 # Instead, we relocate shared libraries at runtime.
8695 ;;
8696
8697 msdosdjgpp*)
8698 # Just because we use GCC doesn't mean we suddenly get shared libraries
8699 # on systems that don't support them.
8700 lt_prog_compiler_can_build_shared=no
8701 enable_shared=no
8702 ;;
8703
8704 *nto* | *qnx*)
8705 # QNX uses GNU C++, but need to define -shared option too, otherwise
8706 # it will coredump.
8707 lt_prog_compiler_pic='-fPIC -shared'
8708 ;;
8709
8710 sysv4*MP*)
8711 if test -d /usr/nec; then
8712 lt_prog_compiler_pic=-Kconform_pic
8713 fi
8714 ;;
8715
8716 *)
8717 lt_prog_compiler_pic='-fPIC'
8718 ;;
8719 esac
8720
8721 case $cc_basename in
8722 nvcc*) # Cuda Compiler Driver 2.2
8723 lt_prog_compiler_wl='-Xlinker '
8724 if test -n "$lt_prog_compiler_pic"; then
8725 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8726 fi
8727 ;;
8728 esac
8729 else
8730 # PORTME Check for flag to pass linker flags through the system compiler.
8731 case $host_os in
8732 aix*)
8733 lt_prog_compiler_wl='-Wl,'
8734 if test ia64 = "$host_cpu"; then
8735 # AIX 5 now supports IA64 processor
8736 lt_prog_compiler_static='-Bstatic'
8737 else
8738 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8739 fi
8740 ;;
8741
8742 darwin* | rhapsody*)
8743 # PIC is the default on this platform
8744 # Common symbols not allowed in MH_DYLIB files
8745 lt_prog_compiler_pic='-fno-common'
8746 case $cc_basename in
8747 nagfor*)
8748 # NAG Fortran compiler
8749 lt_prog_compiler_wl='-Wl,-Wl,,'
8750 lt_prog_compiler_pic='-PIC'
8751 lt_prog_compiler_static='-Bstatic'
8752 ;;
8753 esac
8754 ;;
8755
8756 mingw* | cygwin* | pw32* | os2* | cegcc*)
8757 # This hack is so that the source file can tell whether it is being
8758 # built for inclusion in a dll (and should export symbols for example).
8759 lt_prog_compiler_pic='-DDLL_EXPORT'
8760 case $host_os in
8761 os2*)
8762 lt_prog_compiler_static='$wl-static'
8763 ;;
8764 esac
8765 ;;
8766
8767 hpux9* | hpux10* | hpux11*)
8768 lt_prog_compiler_wl='-Wl,'
8769 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8770 # not for PA HP-UX.
8771 case $host_cpu in
8772 hppa*64*|ia64*)
8773 # +Z the default
8774 ;;
8775 *)
8776 lt_prog_compiler_pic='+Z'
8777 ;;
8778 esac
8779 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8780 lt_prog_compiler_static='$wl-a ${wl}archive'
8781 ;;
8782
8783 irix5* | irix6* | nonstopux*)
8784 lt_prog_compiler_wl='-Wl,'
8785 # PIC (with -KPIC) is the default.
8786 lt_prog_compiler_static='-non_shared'
8787 ;;
8788
8789 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
8790 case $cc_basename in
8791 # old Intel for x86_64, which still supported -KPIC.
8792 ecc*)
8793 lt_prog_compiler_wl='-Wl,'
8794 lt_prog_compiler_pic='-KPIC'
8795 lt_prog_compiler_static='-static'
8796 ;;
8797 # icc used to be incompatible with GCC.
8798 # ICC 10 doesn't accept -KPIC any more.
8799 icc* | ifort*)
8800 lt_prog_compiler_wl='-Wl,'
8801 lt_prog_compiler_pic='-fPIC'
8802 lt_prog_compiler_static='-static'
8803 ;;
8804 # Lahey Fortran 8.1.
8805 lf95*)
8806 lt_prog_compiler_wl='-Wl,'
8807 lt_prog_compiler_pic='--shared'
8808 lt_prog_compiler_static='--static'
8809 ;;
8810 nagfor*)
8811 # NAG Fortran compiler
8812 lt_prog_compiler_wl='-Wl,-Wl,,'
8813 lt_prog_compiler_pic='-PIC'
8814 lt_prog_compiler_static='-Bstatic'
8815 ;;
8816 tcc*)
8817 # Fabrice Bellard et al's Tiny C Compiler
8818 lt_prog_compiler_wl='-Wl,'
8819 lt_prog_compiler_pic='-fPIC'
8820 lt_prog_compiler_static='-static'
8821 ;;
8822 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8823 # Portland Group compilers (*not* the Pentium gcc compiler,
8824 # which looks to be a dead project)
8825 lt_prog_compiler_wl='-Wl,'
8826 lt_prog_compiler_pic='-fpic'
8827 lt_prog_compiler_static='-Bstatic'
8828 ;;
8829 ccc*)
8830 lt_prog_compiler_wl='-Wl,'
8831 # All Alpha code is PIC.
8832 lt_prog_compiler_static='-non_shared'
8833 ;;
8834 xl* | bgxl* | bgf* | mpixl*)
8835 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8836 lt_prog_compiler_wl='-Wl,'
8837 lt_prog_compiler_pic='-qpic'
8838 lt_prog_compiler_static='-qstaticlink'
8839 ;;
8840 *)
8841 case `$CC -V 2>&1 | sed 5q` in
8842 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8843 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8844 lt_prog_compiler_pic='-KPIC'
8845 lt_prog_compiler_static='-Bstatic'
8846 lt_prog_compiler_wl=''
8847 ;;
8848 *Sun\ F* | *Sun*Fortran*)
8849 lt_prog_compiler_pic='-KPIC'
8850 lt_prog_compiler_static='-Bstatic'
8851 lt_prog_compiler_wl='-Qoption ld '
8852 ;;
8853 *Sun\ C*)
8854 # Sun C 5.9
8855 lt_prog_compiler_pic='-KPIC'
8856 lt_prog_compiler_static='-Bstatic'
8857 lt_prog_compiler_wl='-Wl,'
8858 ;;
8859 *Intel*\ [CF]*Compiler*)
8860 lt_prog_compiler_wl='-Wl,'
8861 lt_prog_compiler_pic='-fPIC'
8862 lt_prog_compiler_static='-static'
8863 ;;
8864 *Portland\ Group*)
8865 lt_prog_compiler_wl='-Wl,'
8866 lt_prog_compiler_pic='-fpic'
8867 lt_prog_compiler_static='-Bstatic'
8868 ;;
8869 esac
8870 ;;
8871 esac
8872 ;;
8873
8874 newsos6)
8875 lt_prog_compiler_pic='-KPIC'
8876 lt_prog_compiler_static='-Bstatic'
8877 ;;
8878
8879 *nto* | *qnx*)
8880 # QNX uses GNU C++, but need to define -shared option too, otherwise
8881 # it will coredump.
8882 lt_prog_compiler_pic='-fPIC -shared'
8883 ;;
8884
8885 osf3* | osf4* | osf5*)
8886 lt_prog_compiler_wl='-Wl,'
8887 # All OSF/1 code is PIC.
8888 lt_prog_compiler_static='-non_shared'
8889 ;;
8890
8891 rdos*)
8892 lt_prog_compiler_static='-non_shared'
8893 ;;
8894
8895 solaris*)
8896 lt_prog_compiler_pic='-KPIC'
8897 lt_prog_compiler_static='-Bstatic'
8898 case $cc_basename in
8899 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8900 lt_prog_compiler_wl='-Qoption ld ';;
8901 *)
8902 lt_prog_compiler_wl='-Wl,';;
8903 esac
8904 ;;
8905
8906 sunos4*)
8907 lt_prog_compiler_wl='-Qoption ld '
8908 lt_prog_compiler_pic='-PIC'
8909 lt_prog_compiler_static='-Bstatic'
8910 ;;
8911
8912 sysv4 | sysv4.2uw2* | sysv4.3*)
8913 lt_prog_compiler_wl='-Wl,'
8914 lt_prog_compiler_pic='-KPIC'
8915 lt_prog_compiler_static='-Bstatic'
8916 ;;
8917
8918 sysv4*MP*)
8919 if test -d /usr/nec; then
8920 lt_prog_compiler_pic='-Kconform_pic'
8921 lt_prog_compiler_static='-Bstatic'
8922 fi
8923 ;;
8924
8925 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8926 lt_prog_compiler_wl='-Wl,'
8927 lt_prog_compiler_pic='-KPIC'
8928 lt_prog_compiler_static='-Bstatic'
8929 ;;
8930
8931 unicos*)
8932 lt_prog_compiler_wl='-Wl,'
8933 lt_prog_compiler_can_build_shared=no
8934 ;;
8935
8936 uts4*)
8937 lt_prog_compiler_pic='-pic'
8938 lt_prog_compiler_static='-Bstatic'
8939 ;;
8940
8941 *)
8942 lt_prog_compiler_can_build_shared=no
8943 ;;
8944 esac
8945 fi
8946
8947 case $host_os in
8948 # For platforms that do not support PIC, -DPIC is meaningless:
8949 *djgpp*)
8950 lt_prog_compiler_pic=
8951 ;;
8952 *)
8953 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8954 ;;
8955 esac
8956
8957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8958 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8959 if ${lt_cv_prog_compiler_pic+:} false; then :
8960 $as_echo_n "(cached) " >&6
8961 else
8962 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8963 fi
8964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8965 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
8966 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8967
8968 #
8969 # Check to make sure the PIC flag actually works.
8970 #
8971 if test -n "$lt_prog_compiler_pic"; then
8972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8973 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8974 if ${lt_cv_prog_compiler_pic_works+:} false; then :
8975 $as_echo_n "(cached) " >&6
8976 else
8977 lt_cv_prog_compiler_pic_works=no
8978 ac_outfile=conftest.$ac_objext
8979 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8980 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
8981 # Insert the option either (1) after the last *FLAGS variable, or
8982 # (2) before a word containing "conftest.", or (3) at the end.
8983 # Note that $ac_compile itself does not contain backslashes and begins
8984 # with a dollar sign (not a hyphen), so the echo should work correctly.
8985 # The option is referenced via a variable to avoid confusing sed.
8986 lt_compile=`echo "$ac_compile" | $SED \
8987 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8988 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8989 -e 's:$: $lt_compiler_flag:'`
8990 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8991 (eval "$lt_compile" 2>conftest.err)
8992 ac_status=$?
8993 cat conftest.err >&5
8994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8995 if (exit $ac_status) && test -s "$ac_outfile"; then
8996 # The compiler can only warn and ignore the option if not recognized
8997 # So say no if there are warnings other than the usual output.
8998 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8999 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9000 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9001 lt_cv_prog_compiler_pic_works=yes
9002 fi
9003 fi
9004 $RM conftest*
9005
9006 fi
9007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9008 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9009
9010 if test yes = "$lt_cv_prog_compiler_pic_works"; then
9011 case $lt_prog_compiler_pic in
9012 "" | " "*) ;;
9013 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9014 esac
9015 else
9016 lt_prog_compiler_pic=
9017 lt_prog_compiler_can_build_shared=no
9018 fi
9019
9020 fi
9021
9022
9023
9024
9025
9026
9027
9028
9029
9030
9031
9032 #
9033 # Check to make sure the static flag actually works.
9034 #
9035 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9037 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9038 if ${lt_cv_prog_compiler_static_works+:} false; then :
9039 $as_echo_n "(cached) " >&6
9040 else
9041 lt_cv_prog_compiler_static_works=no
9042 save_LDFLAGS=$LDFLAGS
9043 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9044 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9045 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9046 # The linker can only warn and ignore the option if not recognized
9047 # So say no if there are warnings
9048 if test -s conftest.err; then
9049 # Append any errors to the config.log.
9050 cat conftest.err 1>&5
9051 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9052 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9053 if diff conftest.exp conftest.er2 >/dev/null; then
9054 lt_cv_prog_compiler_static_works=yes
9055 fi
9056 else
9057 lt_cv_prog_compiler_static_works=yes
9058 fi
9059 fi
9060 $RM -r conftest*
9061 LDFLAGS=$save_LDFLAGS
9062
9063 fi
9064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9065 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9066
9067 if test yes = "$lt_cv_prog_compiler_static_works"; then
9068 :
9069 else
9070 lt_prog_compiler_static=
9071 fi
9072
9073
9074
9075
9076
9077
9078
9079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9080 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9081 if ${lt_cv_prog_compiler_c_o+:} false; then :
9082 $as_echo_n "(cached) " >&6
9083 else
9084 lt_cv_prog_compiler_c_o=no
9085 $RM -r conftest 2>/dev/null
9086 mkdir conftest
9087 cd conftest
9088 mkdir out
9089 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9090
9091 lt_compiler_flag="-o out/conftest2.$ac_objext"
9092 # Insert the option either (1) after the last *FLAGS variable, or
9093 # (2) before a word containing "conftest.", or (3) at the end.
9094 # Note that $ac_compile itself does not contain backslashes and begins
9095 # with a dollar sign (not a hyphen), so the echo should work correctly.
9096 lt_compile=`echo "$ac_compile" | $SED \
9097 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9098 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9099 -e 's:$: $lt_compiler_flag:'`
9100 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9101 (eval "$lt_compile" 2>out/conftest.err)
9102 ac_status=$?
9103 cat out/conftest.err >&5
9104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9105 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9106 then
9107 # The compiler can only warn and ignore the option if not recognized
9108 # So say no if there are warnings
9109 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9110 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9111 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9112 lt_cv_prog_compiler_c_o=yes
9113 fi
9114 fi
9115 chmod u+w . 2>&5
9116 $RM conftest*
9117 # SGI C++ compiler will create directory out/ii_files/ for
9118 # template instantiation
9119 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9120 $RM out/* && rmdir out
9121 cd ..
9122 $RM -r conftest
9123 $RM conftest*
9124
9125 fi
9126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9127 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9128
9129
9130
9131
9132
9133
9134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9135 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9136 if ${lt_cv_prog_compiler_c_o+:} false; then :
9137 $as_echo_n "(cached) " >&6
9138 else
9139 lt_cv_prog_compiler_c_o=no
9140 $RM -r conftest 2>/dev/null
9141 mkdir conftest
9142 cd conftest
9143 mkdir out
9144 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9145
9146 lt_compiler_flag="-o out/conftest2.$ac_objext"
9147 # Insert the option either (1) after the last *FLAGS variable, or
9148 # (2) before a word containing "conftest.", or (3) at the end.
9149 # Note that $ac_compile itself does not contain backslashes and begins
9150 # with a dollar sign (not a hyphen), so the echo should work correctly.
9151 lt_compile=`echo "$ac_compile" | $SED \
9152 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9153 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9154 -e 's:$: $lt_compiler_flag:'`
9155 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9156 (eval "$lt_compile" 2>out/conftest.err)
9157 ac_status=$?
9158 cat out/conftest.err >&5
9159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9160 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9161 then
9162 # The compiler can only warn and ignore the option if not recognized
9163 # So say no if there are warnings
9164 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9165 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9166 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9167 lt_cv_prog_compiler_c_o=yes
9168 fi
9169 fi
9170 chmod u+w . 2>&5
9171 $RM conftest*
9172 # SGI C++ compiler will create directory out/ii_files/ for
9173 # template instantiation
9174 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9175 $RM out/* && rmdir out
9176 cd ..
9177 $RM -r conftest
9178 $RM conftest*
9179
9180 fi
9181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9182 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9183
9184
9185
9186
9187 hard_links=nottested
9188 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
9189 # do not overwrite the value of need_locks provided by the user
9190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9191 $as_echo_n "checking if we can lock with hard links... " >&6; }
9192 hard_links=yes
9193 $RM conftest*
9194 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9195 touch conftest.a
9196 ln conftest.a conftest.b 2>&5 || hard_links=no
9197 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9199 $as_echo "$hard_links" >&6; }
9200 if test no = "$hard_links"; then
9201 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
9202 $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
9203 need_locks=warn
9204 fi
9205 else
9206 need_locks=no
9207 fi
9208
9209
9210
9211
9212
9213
9214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9215 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9216
9217 runpath_var=
9218 allow_undefined_flag=
9219 always_export_symbols=no
9220 archive_cmds=
9221 archive_expsym_cmds=
9222 compiler_needs_object=no
9223 enable_shared_with_static_runtimes=no
9224 export_dynamic_flag_spec=
9225 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9226 hardcode_automatic=no
9227 hardcode_direct=no
9228 hardcode_direct_absolute=no
9229 hardcode_libdir_flag_spec=
9230 hardcode_libdir_separator=
9231 hardcode_minus_L=no
9232 hardcode_shlibpath_var=unsupported
9233 inherit_rpath=no
9234 link_all_deplibs=unknown
9235 module_cmds=
9236 module_expsym_cmds=
9237 old_archive_from_new_cmds=
9238 old_archive_from_expsyms_cmds=
9239 thread_safe_flag_spec=
9240 whole_archive_flag_spec=
9241 # include_expsyms should be a list of space-separated symbols to be *always*
9242 # included in the symbol list
9243 include_expsyms=
9244 # exclude_expsyms can be an extended regexp of symbols to exclude
9245 # it will be wrapped by ' (' and ')$', so one must not match beginning or
9246 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
9247 # as well as any symbol that contains 'd'.
9248 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9249 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9250 # platforms (ab)use it in PIC code, but their linkers get confused if
9251 # the symbol is explicitly referenced. Since portable code cannot
9252 # rely on this symbol name, it's probably fine to never include it in
9253 # preloaded symbol tables.
9254 # Exclude shared library initialization/finalization symbols.
9255 extract_expsyms_cmds=
9256
9257 case $host_os in
9258 cygwin* | mingw* | pw32* | cegcc*)
9259 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9260 # When not using gcc, we currently assume that we are using
9261 # Microsoft Visual C++.
9262 if test yes != "$GCC"; then
9263 with_gnu_ld=no
9264 fi
9265 ;;
9266 interix*)
9267 # we just hope/assume this is gcc and not c89 (= MSVC++)
9268 with_gnu_ld=yes
9269 ;;
9270 openbsd* | bitrig*)
9271 with_gnu_ld=no
9272 ;;
9273 linux* | k*bsd*-gnu | gnu*)
9274 link_all_deplibs=no
9275 ;;
9276 esac
9277
9278 ld_shlibs=yes
9279
9280 # On some targets, GNU ld is compatible enough with the native linker
9281 # that we're better off using the native interface for both.
9282 lt_use_gnu_ld_interface=no
9283 if test yes = "$with_gnu_ld"; then
9284 case $host_os in
9285 aix*)
9286 # The AIX port of GNU ld has always aspired to compatibility
9287 # with the native linker. However, as the warning in the GNU ld
9288 # block says, versions before 2.19.5* couldn't really create working
9289 # shared libraries, regardless of the interface used.
9290 case `$LD -v 2>&1` in
9291 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9292 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9293 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9294 *)
9295 lt_use_gnu_ld_interface=yes
9296 ;;
9297 esac
9298 ;;
9299 *)
9300 lt_use_gnu_ld_interface=yes
9301 ;;
9302 esac
9303 fi
9304
9305 if test yes = "$lt_use_gnu_ld_interface"; then
9306 # If archive_cmds runs LD, not CC, wlarc should be empty
9307 wlarc='$wl'
9308
9309 # Set some defaults for GNU ld with shared library support. These
9310 # are reset later if shared libraries are not supported. Putting them
9311 # here allows them to be overridden if necessary.
9312 runpath_var=LD_RUN_PATH
9313 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9314 export_dynamic_flag_spec='$wl--export-dynamic'
9315 # ancient GNU ld didn't support --whole-archive et. al.
9316 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9317 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
9318 else
9319 whole_archive_flag_spec=
9320 fi
9321 supports_anon_versioning=no
9322 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
9323 *GNU\ gold*) supports_anon_versioning=yes ;;
9324 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9325 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9326 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9327 *\ 2.11.*) ;; # other 2.11 versions
9328 *) supports_anon_versioning=yes ;;
9329 esac
9330
9331 # See if GNU ld supports shared libraries.
9332 case $host_os in
9333 aix[3-9]*)
9334 # On AIX/PPC, the GNU linker is very broken
9335 if test ia64 != "$host_cpu"; then
9336 ld_shlibs=no
9337 cat <<_LT_EOF 1>&2
9338
9339 *** Warning: the GNU linker, at least up to release 2.19, is reported
9340 *** to be unable to reliably create shared libraries on AIX.
9341 *** Therefore, libtool is disabling shared libraries support. If you
9342 *** really care for shared libraries, you may want to install binutils
9343 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9344 *** You will then need to restart the configuration process.
9345
9346 _LT_EOF
9347 fi
9348 ;;
9349
9350 amigaos*)
9351 case $host_cpu in
9352 powerpc)
9353 # see comment about AmigaOS4 .so support
9354 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9355 archive_expsym_cmds=''
9356 ;;
9357 m68k)
9358 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)'
9359 hardcode_libdir_flag_spec='-L$libdir'
9360 hardcode_minus_L=yes
9361 ;;
9362 esac
9363 ;;
9364
9365 beos*)
9366 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9367 allow_undefined_flag=unsupported
9368 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9369 # support --undefined. This deserves some investigation. FIXME
9370 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9371 else
9372 ld_shlibs=no
9373 fi
9374 ;;
9375
9376 cygwin* | mingw* | pw32* | cegcc*)
9377 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9378 # as there is no search path for DLLs.
9379 hardcode_libdir_flag_spec='-L$libdir'
9380 export_dynamic_flag_spec='$wl--export-all-symbols'
9381 allow_undefined_flag=unsupported
9382 always_export_symbols=no
9383 enable_shared_with_static_runtimes=yes
9384 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'
9385 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9386
9387 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9388 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9389 # If the export-symbols file already is a .def file, use it as
9390 # is; otherwise, prepend EXPORTS...
9391 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
9392 cp $export_symbols $output_objdir/$soname.def;
9393 else
9394 echo EXPORTS > $output_objdir/$soname.def;
9395 cat $export_symbols >> $output_objdir/$soname.def;
9396 fi~
9397 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9398 else
9399 ld_shlibs=no
9400 fi
9401 ;;
9402
9403 haiku*)
9404 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9405 link_all_deplibs=yes
9406 ;;
9407
9408 os2*)
9409 hardcode_libdir_flag_spec='-L$libdir'
9410 hardcode_minus_L=yes
9411 allow_undefined_flag=unsupported
9412 shrext_cmds=.dll
9413 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9414 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9415 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9416 $ECHO EXPORTS >> $output_objdir/$libname.def~
9417 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
9418 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9419 emximp -o $lib $output_objdir/$libname.def'
9420 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9421 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9422 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9423 $ECHO EXPORTS >> $output_objdir/$libname.def~
9424 prefix_cmds="$SED"~
9425 if test EXPORTS = "`$SED 1q $export_symbols`"; then
9426 prefix_cmds="$prefix_cmds -e 1d";
9427 fi~
9428 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
9429 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
9430 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9431 emximp -o $lib $output_objdir/$libname.def'
9432 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
9433 enable_shared_with_static_runtimes=yes
9434 ;;
9435
9436 interix[3-9]*)
9437 hardcode_direct=no
9438 hardcode_shlibpath_var=no
9439 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
9440 export_dynamic_flag_spec='$wl-E'
9441 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9442 # Instead, shared libraries are loaded at an image base (0x10000000 by
9443 # default) and relocated if they conflict, which is a slow very memory
9444 # consuming and fragmenting process. To avoid this, we pick a random,
9445 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9446 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9447 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9448 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'
9449 ;;
9450
9451 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9452 tmp_diet=no
9453 if test linux-dietlibc = "$host_os"; then
9454 case $cc_basename in
9455 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9456 esac
9457 fi
9458 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9459 && test no = "$tmp_diet"
9460 then
9461 tmp_addflag=' $pic_flag'
9462 tmp_sharedflag='-shared'
9463 case $cc_basename,$host_cpu in
9464 pgcc*) # Portland Group C compiler
9465 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'
9466 tmp_addflag=' $pic_flag'
9467 ;;
9468 pgf77* | pgf90* | pgf95* | pgfortran*)
9469 # Portland Group f77 and f90 compilers
9470 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'
9471 tmp_addflag=' $pic_flag -Mnomain' ;;
9472 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9473 tmp_addflag=' -i_dynamic' ;;
9474 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9475 tmp_addflag=' -i_dynamic -nofor_main' ;;
9476 ifc* | ifort*) # Intel Fortran compiler
9477 tmp_addflag=' -nofor_main' ;;
9478 lf95*) # Lahey Fortran 8.1
9479 whole_archive_flag_spec=
9480 tmp_sharedflag='--shared' ;;
9481 nagfor*) # NAGFOR 5.3
9482 tmp_sharedflag='-Wl,-shared' ;;
9483 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9484 tmp_sharedflag='-qmkshrobj'
9485 tmp_addflag= ;;
9486 nvcc*) # Cuda Compiler Driver 2.2
9487 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'
9488 compiler_needs_object=yes
9489 ;;
9490 esac
9491 case `$CC -V 2>&1 | sed 5q` in
9492 *Sun\ C*) # Sun C 5.9
9493 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'
9494 compiler_needs_object=yes
9495 tmp_sharedflag='-G' ;;
9496 *Sun\ F*) # Sun Fortran 8.3
9497 tmp_sharedflag='-G' ;;
9498 esac
9499 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9500
9501 if test yes = "$supports_anon_versioning"; then
9502 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9503 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9504 echo "local: *; };" >> $output_objdir/$libname.ver~
9505 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
9506 fi
9507
9508 case $cc_basename in
9509 tcc*)
9510 export_dynamic_flag_spec='-rdynamic'
9511 ;;
9512 xlf* | bgf* | bgxlf* | mpixlf*)
9513 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9514 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9515 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9516 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9517 if test yes = "$supports_anon_versioning"; then
9518 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9519 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9520 echo "local: *; };" >> $output_objdir/$libname.ver~
9521 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9522 fi
9523 ;;
9524 esac
9525 else
9526 ld_shlibs=no
9527 fi
9528 ;;
9529
9530 netbsd* | netbsdelf*-gnu)
9531 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9532 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9533 wlarc=
9534 else
9535 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9536 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9537 fi
9538 ;;
9539
9540 solaris*)
9541 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9542 ld_shlibs=no
9543 cat <<_LT_EOF 1>&2
9544
9545 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9546 *** create shared libraries on Solaris systems. Therefore, libtool
9547 *** is disabling shared libraries support. We urge you to upgrade GNU
9548 *** binutils to release 2.9.1 or newer. Another option is to modify
9549 *** your PATH or compiler configuration so that the native linker is
9550 *** used, and then restart.
9551
9552 _LT_EOF
9553 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9554 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9555 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9556 else
9557 ld_shlibs=no
9558 fi
9559 ;;
9560
9561 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9562 case `$LD -v 2>&1` in
9563 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9564 ld_shlibs=no
9565 cat <<_LT_EOF 1>&2
9566
9567 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
9568 *** reliably create shared libraries on SCO systems. Therefore, libtool
9569 *** is disabling shared libraries support. We urge you to upgrade GNU
9570 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9571 *** your PATH or compiler configuration so that the native linker is
9572 *** used, and then restart.
9573
9574 _LT_EOF
9575 ;;
9576 *)
9577 # For security reasons, it is highly recommended that you always
9578 # use absolute paths for naming shared libraries, and exclude the
9579 # DT_RUNPATH tag from executables and libraries. But doing so
9580 # requires that you compile everything twice, which is a pain.
9581 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9582 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9583 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9584 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9585 else
9586 ld_shlibs=no
9587 fi
9588 ;;
9589 esac
9590 ;;
9591
9592 sunos4*)
9593 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9594 wlarc=
9595 hardcode_direct=yes
9596 hardcode_shlibpath_var=no
9597 ;;
9598
9599 *)
9600 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9601 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9602 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9603 else
9604 ld_shlibs=no
9605 fi
9606 ;;
9607 esac
9608
9609 if test no = "$ld_shlibs"; then
9610 runpath_var=
9611 hardcode_libdir_flag_spec=
9612 export_dynamic_flag_spec=
9613 whole_archive_flag_spec=
9614 fi
9615 else
9616 # PORTME fill in a description of your system's linker (not GNU ld)
9617 case $host_os in
9618 aix3*)
9619 allow_undefined_flag=unsupported
9620 always_export_symbols=yes
9621 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'
9622 # Note: this linker hardcodes the directories in LIBPATH if there
9623 # are no directories specified by -L.
9624 hardcode_minus_L=yes
9625 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
9626 # Neither direct hardcoding nor static linking is supported with a
9627 # broken collect2.
9628 hardcode_direct=unsupported
9629 fi
9630 ;;
9631
9632 aix[4-9]*)
9633 if test ia64 = "$host_cpu"; then
9634 # On IA64, the linker does run time linking by default, so we don't
9635 # have to do anything special.
9636 aix_use_runtimelinking=no
9637 exp_sym_flag='-Bexport'
9638 no_entry_flag=
9639 else
9640 # If we're using GNU nm, then we don't want the "-C" option.
9641 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
9642 # Without the "-l" option, or with the "-B" option, AIX nm treats
9643 # weak defined symbols like other global defined symbols, whereas
9644 # GNU nm marks them as "W".
9645 # While the 'weak' keyword is ignored in the Export File, we need
9646 # it in the Import File for the 'aix-soname' feature, so we have
9647 # to replace the "-B" option with "-P" for AIX nm.
9648 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9649 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
9650 else
9651 export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
9652 fi
9653 aix_use_runtimelinking=no
9654
9655 # Test if we are trying to use run time linking or normal
9656 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9657 # have runtime linking enabled, and use it for executables.
9658 # For shared libraries, we enable/disable runtime linking
9659 # depending on the kind of the shared library created -
9660 # when "with_aix_soname,aix_use_runtimelinking" is:
9661 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
9662 # "aix,yes" lib.so shared, rtl:yes, for executables
9663 # lib.a static archive
9664 # "both,no" lib.so.V(shr.o) shared, rtl:yes
9665 # lib.a(lib.so.V) shared, rtl:no, for executables
9666 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
9667 # lib.a(lib.so.V) shared, rtl:no
9668 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
9669 # lib.a static archive
9670 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9671 for ld_flag in $LDFLAGS; do
9672 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
9673 aix_use_runtimelinking=yes
9674 break
9675 fi
9676 done
9677 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
9678 # With aix-soname=svr4, we create the lib.so.V shared archives only,
9679 # so we don't have lib.a shared libs to link our executables.
9680 # We have to force runtime linking in this case.
9681 aix_use_runtimelinking=yes
9682 LDFLAGS="$LDFLAGS -Wl,-brtl"
9683 fi
9684 ;;
9685 esac
9686
9687 exp_sym_flag='-bexport'
9688 no_entry_flag='-bnoentry'
9689 fi
9690
9691 # When large executables or shared objects are built, AIX ld can
9692 # have problems creating the table of contents. If linking a library
9693 # or program results in "error TOC overflow" add -mminimal-toc to
9694 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9695 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9696
9697 archive_cmds=''
9698 hardcode_direct=yes
9699 hardcode_direct_absolute=yes
9700 hardcode_libdir_separator=':'
9701 link_all_deplibs=yes
9702 file_list_spec='$wl-f,'
9703 case $with_aix_soname,$aix_use_runtimelinking in
9704 aix,*) ;; # traditional, no import file
9705 svr4,* | *,yes) # use import file
9706 # The Import File defines what to hardcode.
9707 hardcode_direct=no
9708 hardcode_direct_absolute=no
9709 ;;
9710 esac
9711
9712 if test yes = "$GCC"; then
9713 case $host_os in aix4.[012]|aix4.[012].*)
9714 # We only want to do this on AIX 4.2 and lower, the check
9715 # below for broken collect2 doesn't work under 4.3+
9716 collect2name=`$CC -print-prog-name=collect2`
9717 if test -f "$collect2name" &&
9718 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9719 then
9720 # We have reworked collect2
9721 :
9722 else
9723 # We have old collect2
9724 hardcode_direct=unsupported
9725 # It fails to find uninstalled libraries when the uninstalled
9726 # path is not listed in the libpath. Setting hardcode_minus_L
9727 # to unsupported forces relinking
9728 hardcode_minus_L=yes
9729 hardcode_libdir_flag_spec='-L$libdir'
9730 hardcode_libdir_separator=
9731 fi
9732 ;;
9733 esac
9734 shared_flag='-shared'
9735 if test yes = "$aix_use_runtimelinking"; then
9736 shared_flag="$shared_flag "'$wl-G'
9737 fi
9738 # Need to ensure runtime linking is disabled for the traditional
9739 # shared library, or the linker may eventually find shared libraries
9740 # /with/ Import File - we do not want to mix them.
9741 shared_flag_aix='-shared'
9742 shared_flag_svr4='-shared $wl-G'
9743 else
9744 # not using gcc
9745 if test ia64 = "$host_cpu"; then
9746 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9747 # chokes on -Wl,-G. The following line is correct:
9748 shared_flag='-G'
9749 else
9750 if test yes = "$aix_use_runtimelinking"; then
9751 shared_flag='$wl-G'
9752 else
9753 shared_flag='$wl-bM:SRE'
9754 fi
9755 shared_flag_aix='$wl-bM:SRE'
9756 shared_flag_svr4='$wl-G'
9757 fi
9758 fi
9759
9760 export_dynamic_flag_spec='$wl-bexpall'
9761 # It seems that -bexpall does not export symbols beginning with
9762 # underscore (_), so it is better to generate a list of symbols to export.
9763 always_export_symbols=yes
9764 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
9765 # Warning - without using the other runtime loading flags (-brtl),
9766 # -berok will link without error, but may produce a broken library.
9767 allow_undefined_flag='-berok'
9768 # Determine the default libpath from the value encoded in an
9769 # empty executable.
9770 if test set = "${lt_cv_aix_libpath+set}"; then
9771 aix_libpath=$lt_cv_aix_libpath
9772 else
9773 if ${lt_cv_aix_libpath_+:} false; then :
9774 $as_echo_n "(cached) " >&6
9775 else
9776 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9777 /* end confdefs.h. */
9778
9779 int
9780 main ()
9781 {
9782
9783 ;
9784 return 0;
9785 }
9786 _ACEOF
9787 if ac_fn_c_try_link "$LINENO"; then :
9788
9789 lt_aix_libpath_sed='
9790 /Import File Strings/,/^$/ {
9791 /^0/ {
9792 s/^0 *\([^ ]*\) *$/\1/
9793 p
9794 }
9795 }'
9796 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9797 # Check for a 64-bit object if we didn't find anything.
9798 if test -z "$lt_cv_aix_libpath_"; then
9799 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9800 fi
9801 fi
9802 rm -f core conftest.err conftest.$ac_objext \
9803 conftest$ac_exeext conftest.$ac_ext
9804 if test -z "$lt_cv_aix_libpath_"; then
9805 lt_cv_aix_libpath_=/usr/lib:/lib
9806 fi
9807
9808 fi
9809
9810 aix_libpath=$lt_cv_aix_libpath_
9811 fi
9812
9813 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
9814 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
9815 else
9816 if test ia64 = "$host_cpu"; then
9817 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
9818 allow_undefined_flag="-z nodefs"
9819 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"
9820 else
9821 # Determine the default libpath from the value encoded in an
9822 # empty executable.
9823 if test set = "${lt_cv_aix_libpath+set}"; then
9824 aix_libpath=$lt_cv_aix_libpath
9825 else
9826 if ${lt_cv_aix_libpath_+:} false; then :
9827 $as_echo_n "(cached) " >&6
9828 else
9829 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9830 /* end confdefs.h. */
9831
9832 int
9833 main ()
9834 {
9835
9836 ;
9837 return 0;
9838 }
9839 _ACEOF
9840 if ac_fn_c_try_link "$LINENO"; then :
9841
9842 lt_aix_libpath_sed='
9843 /Import File Strings/,/^$/ {
9844 /^0/ {
9845 s/^0 *\([^ ]*\) *$/\1/
9846 p
9847 }
9848 }'
9849 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9850 # Check for a 64-bit object if we didn't find anything.
9851 if test -z "$lt_cv_aix_libpath_"; then
9852 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9853 fi
9854 fi
9855 rm -f core conftest.err conftest.$ac_objext \
9856 conftest$ac_exeext conftest.$ac_ext
9857 if test -z "$lt_cv_aix_libpath_"; then
9858 lt_cv_aix_libpath_=/usr/lib:/lib
9859 fi
9860
9861 fi
9862
9863 aix_libpath=$lt_cv_aix_libpath_
9864 fi
9865
9866 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
9867 # Warning - without using the other run time loading flags,
9868 # -berok will link without error, but may produce a broken library.
9869 no_undefined_flag=' $wl-bernotok'
9870 allow_undefined_flag=' $wl-berok'
9871 if test yes = "$with_gnu_ld"; then
9872 # We only use this code for GNU lds that support --whole-archive.
9873 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
9874 else
9875 # Exported symbols can be pulled into shared objects from archives
9876 whole_archive_flag_spec='$convenience'
9877 fi
9878 archive_cmds_need_lc=yes
9879 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
9880 # -brtl affects multiple linker settings, -berok does not and is overridden later
9881 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
9882 if test svr4 != "$with_aix_soname"; then
9883 # This is similar to how AIX traditionally builds its shared libraries.
9884 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
9885 fi
9886 if test aix != "$with_aix_soname"; then
9887 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
9888 else
9889 # used by -dlpreopen to get the symbols
9890 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
9891 fi
9892 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
9893 fi
9894 fi
9895 ;;
9896
9897 amigaos*)
9898 case $host_cpu in
9899 powerpc)
9900 # see comment about AmigaOS4 .so support
9901 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9902 archive_expsym_cmds=''
9903 ;;
9904 m68k)
9905 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)'
9906 hardcode_libdir_flag_spec='-L$libdir'
9907 hardcode_minus_L=yes
9908 ;;
9909 esac
9910 ;;
9911
9912 bsdi[45]*)
9913 export_dynamic_flag_spec=-rdynamic
9914 ;;
9915
9916 cygwin* | mingw* | pw32* | cegcc*)
9917 # When not using gcc, we currently assume that we are using
9918 # Microsoft Visual C++.
9919 # hardcode_libdir_flag_spec is actually meaningless, as there is
9920 # no search path for DLLs.
9921 case $cc_basename in
9922 cl*)
9923 # Native MSVC
9924 hardcode_libdir_flag_spec=' '
9925 allow_undefined_flag=unsupported
9926 always_export_symbols=yes
9927 file_list_spec='@'
9928 # Tell ltmain to make .lib files, not .a files.
9929 libext=lib
9930 # Tell ltmain to make .dll files, not .so files.
9931 shrext_cmds=.dll
9932 # FIXME: Setting linknames here is a bad hack.
9933 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
9934 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
9935 cp "$export_symbols" "$output_objdir/$soname.def";
9936 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
9937 else
9938 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
9939 fi~
9940 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9941 linknames='
9942 # The linker will not automatically build a static lib if we build a DLL.
9943 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9944 enable_shared_with_static_runtimes=yes
9945 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9946 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9947 # Don't use ranlib
9948 old_postinstall_cmds='chmod 644 $oldlib'
9949 postlink_cmds='lt_outputfile="@OUTPUT@"~
9950 lt_tool_outputfile="@TOOL_OUTPUT@"~
9951 case $lt_outputfile in
9952 *.exe|*.EXE) ;;
9953 *)
9954 lt_outputfile=$lt_outputfile.exe
9955 lt_tool_outputfile=$lt_tool_outputfile.exe
9956 ;;
9957 esac~
9958 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
9959 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9960 $RM "$lt_outputfile.manifest";
9961 fi'
9962 ;;
9963 *)
9964 # Assume MSVC wrapper
9965 hardcode_libdir_flag_spec=' '
9966 allow_undefined_flag=unsupported
9967 # Tell ltmain to make .lib files, not .a files.
9968 libext=lib
9969 # Tell ltmain to make .dll files, not .so files.
9970 shrext_cmds=.dll
9971 # FIXME: Setting linknames here is a bad hack.
9972 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9973 # The linker will automatically build a .lib file if we build a DLL.
9974 old_archive_from_new_cmds='true'
9975 # FIXME: Should let the user specify the lib program.
9976 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9977 enable_shared_with_static_runtimes=yes
9978 ;;
9979 esac
9980 ;;
9981
9982 darwin* | rhapsody*)
9983
9984
9985 archive_cmds_need_lc=no
9986 hardcode_direct=no
9987 hardcode_automatic=yes
9988 hardcode_shlibpath_var=unsupported
9989 if test yes = "$lt_cv_ld_force_load"; then
9990 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\"`'
9991
9992 else
9993 whole_archive_flag_spec=''
9994 fi
9995 link_all_deplibs=yes
9996 allow_undefined_flag=$_lt_dar_allow_undefined
9997 case $cc_basename in
9998 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
9999 *) _lt_dar_can_shared=$GCC ;;
10000 esac
10001 if test yes = "$_lt_dar_can_shared"; then
10002 output_verbose_link_cmd=func_echo_all
10003 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
10004 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
10005 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"
10006 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"
10007
10008 else
10009 ld_shlibs=no
10010 fi
10011
10012 ;;
10013
10014 dgux*)
10015 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10016 hardcode_libdir_flag_spec='-L$libdir'
10017 hardcode_shlibpath_var=no
10018 ;;
10019
10020 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10021 # support. Future versions do this automatically, but an explicit c++rt0.o
10022 # does not break anything, and helps significantly (at the cost of a little
10023 # extra space).
10024 freebsd2.2*)
10025 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10026 hardcode_libdir_flag_spec='-R$libdir'
10027 hardcode_direct=yes
10028 hardcode_shlibpath_var=no
10029 ;;
10030
10031 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10032 freebsd2.*)
10033 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10034 hardcode_direct=yes
10035 hardcode_minus_L=yes
10036 hardcode_shlibpath_var=no
10037 ;;
10038
10039 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10040 freebsd* | dragonfly*)
10041 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10042 hardcode_libdir_flag_spec='-R$libdir'
10043 hardcode_direct=yes
10044 hardcode_shlibpath_var=no
10045 ;;
10046
10047 hpux9*)
10048 if test yes = "$GCC"; then
10049 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
10050 else
10051 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
10052 fi
10053 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10054 hardcode_libdir_separator=:
10055 hardcode_direct=yes
10056
10057 # hardcode_minus_L: Not really in the search PATH,
10058 # but as the default location of the library.
10059 hardcode_minus_L=yes
10060 export_dynamic_flag_spec='$wl-E'
10061 ;;
10062
10063 hpux10*)
10064 if test yes,no = "$GCC,$with_gnu_ld"; then
10065 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10066 else
10067 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10068 fi
10069 if test no = "$with_gnu_ld"; then
10070 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10071 hardcode_libdir_separator=:
10072 hardcode_direct=yes
10073 hardcode_direct_absolute=yes
10074 export_dynamic_flag_spec='$wl-E'
10075 # hardcode_minus_L: Not really in the search PATH,
10076 # but as the default location of the library.
10077 hardcode_minus_L=yes
10078 fi
10079 ;;
10080
10081 hpux11*)
10082 if test yes,no = "$GCC,$with_gnu_ld"; then
10083 case $host_cpu in
10084 hppa*64*)
10085 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10086 ;;
10087 ia64*)
10088 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10089 ;;
10090 *)
10091 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10092 ;;
10093 esac
10094 else
10095 case $host_cpu in
10096 hppa*64*)
10097 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10098 ;;
10099 ia64*)
10100 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10101 ;;
10102 *)
10103
10104 # Older versions of the 11.00 compiler do not understand -b yet
10105 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10107 $as_echo_n "checking if $CC understands -b... " >&6; }
10108 if ${lt_cv_prog_compiler__b+:} false; then :
10109 $as_echo_n "(cached) " >&6
10110 else
10111 lt_cv_prog_compiler__b=no
10112 save_LDFLAGS=$LDFLAGS
10113 LDFLAGS="$LDFLAGS -b"
10114 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10115 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10116 # The linker can only warn and ignore the option if not recognized
10117 # So say no if there are warnings
10118 if test -s conftest.err; then
10119 # Append any errors to the config.log.
10120 cat conftest.err 1>&5
10121 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10122 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10123 if diff conftest.exp conftest.er2 >/dev/null; then
10124 lt_cv_prog_compiler__b=yes
10125 fi
10126 else
10127 lt_cv_prog_compiler__b=yes
10128 fi
10129 fi
10130 $RM -r conftest*
10131 LDFLAGS=$save_LDFLAGS
10132
10133 fi
10134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10135 $as_echo "$lt_cv_prog_compiler__b" >&6; }
10136
10137 if test yes = "$lt_cv_prog_compiler__b"; then
10138 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10139 else
10140 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10141 fi
10142
10143 ;;
10144 esac
10145 fi
10146 if test no = "$with_gnu_ld"; then
10147 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10148 hardcode_libdir_separator=:
10149
10150 case $host_cpu in
10151 hppa*64*|ia64*)
10152 hardcode_direct=no
10153 hardcode_shlibpath_var=no
10154 ;;
10155 *)
10156 hardcode_direct=yes
10157 hardcode_direct_absolute=yes
10158 export_dynamic_flag_spec='$wl-E'
10159
10160 # hardcode_minus_L: Not really in the search PATH,
10161 # but as the default location of the library.
10162 hardcode_minus_L=yes
10163 ;;
10164 esac
10165 fi
10166 ;;
10167
10168 irix5* | irix6* | nonstopux*)
10169 if test yes = "$GCC"; then
10170 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'
10171 # Try to use the -exported_symbol ld option, if it does not
10172 # work, assume that -exports_file does not work either and
10173 # implicitly export all symbols.
10174 # This should be the same for all languages, so no per-tag cache variable.
10175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10176 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10177 if ${lt_cv_irix_exported_symbol+:} false; then :
10178 $as_echo_n "(cached) " >&6
10179 else
10180 save_LDFLAGS=$LDFLAGS
10181 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
10182 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10183 /* end confdefs.h. */
10184 int foo (void) { return 0; }
10185 _ACEOF
10186 if ac_fn_c_try_link "$LINENO"; then :
10187 lt_cv_irix_exported_symbol=yes
10188 else
10189 lt_cv_irix_exported_symbol=no
10190 fi
10191 rm -f core conftest.err conftest.$ac_objext \
10192 conftest$ac_exeext conftest.$ac_ext
10193 LDFLAGS=$save_LDFLAGS
10194 fi
10195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10196 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
10197 if test yes = "$lt_cv_irix_exported_symbol"; then
10198 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'
10199 fi
10200 link_all_deplibs=no
10201 else
10202 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'
10203 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'
10204 fi
10205 archive_cmds_need_lc='no'
10206 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10207 hardcode_libdir_separator=:
10208 inherit_rpath=yes
10209 link_all_deplibs=yes
10210 ;;
10211
10212 linux*)
10213 case $cc_basename in
10214 tcc*)
10215 # Fabrice Bellard et al's Tiny C Compiler
10216 ld_shlibs=yes
10217 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10218 ;;
10219 esac
10220 ;;
10221
10222 netbsd* | netbsdelf*-gnu)
10223 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10224 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10225 else
10226 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10227 fi
10228 hardcode_libdir_flag_spec='-R$libdir'
10229 hardcode_direct=yes
10230 hardcode_shlibpath_var=no
10231 ;;
10232
10233 newsos6)
10234 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10235 hardcode_direct=yes
10236 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10237 hardcode_libdir_separator=:
10238 hardcode_shlibpath_var=no
10239 ;;
10240
10241 *nto* | *qnx*)
10242 ;;
10243
10244 openbsd* | bitrig*)
10245 if test -f /usr/libexec/ld.so; then
10246 hardcode_direct=yes
10247 hardcode_shlibpath_var=no
10248 hardcode_direct_absolute=yes
10249 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
10250 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10251 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
10252 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10253 export_dynamic_flag_spec='$wl-E'
10254 else
10255 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10256 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10257 fi
10258 else
10259 ld_shlibs=no
10260 fi
10261 ;;
10262
10263 os2*)
10264 hardcode_libdir_flag_spec='-L$libdir'
10265 hardcode_minus_L=yes
10266 allow_undefined_flag=unsupported
10267 shrext_cmds=.dll
10268 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10269 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10270 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10271 $ECHO EXPORTS >> $output_objdir/$libname.def~
10272 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
10273 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10274 emximp -o $lib $output_objdir/$libname.def'
10275 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10276 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10277 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10278 $ECHO EXPORTS >> $output_objdir/$libname.def~
10279 prefix_cmds="$SED"~
10280 if test EXPORTS = "`$SED 1q $export_symbols`"; then
10281 prefix_cmds="$prefix_cmds -e 1d";
10282 fi~
10283 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10284 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
10285 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10286 emximp -o $lib $output_objdir/$libname.def'
10287 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10288 enable_shared_with_static_runtimes=yes
10289 ;;
10290
10291 osf3*)
10292 if test yes = "$GCC"; then
10293 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10294 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'
10295 else
10296 allow_undefined_flag=' -expect_unresolved \*'
10297 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'
10298 fi
10299 archive_cmds_need_lc='no'
10300 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10301 hardcode_libdir_separator=:
10302 ;;
10303
10304 osf4* | osf5*) # as osf3* with the addition of -msym flag
10305 if test yes = "$GCC"; then
10306 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10307 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'
10308 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10309 else
10310 allow_undefined_flag=' -expect_unresolved \*'
10311 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'
10312 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~
10313 $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'
10314
10315 # Both c and cxx compiler support -rpath directly
10316 hardcode_libdir_flag_spec='-rpath $libdir'
10317 fi
10318 archive_cmds_need_lc='no'
10319 hardcode_libdir_separator=:
10320 ;;
10321
10322 solaris*)
10323 no_undefined_flag=' -z defs'
10324 if test yes = "$GCC"; then
10325 wlarc='$wl'
10326 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10327 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10328 $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'
10329 else
10330 case `$CC -V 2>&1` in
10331 *"Compilers 5.0"*)
10332 wlarc=''
10333 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
10334 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10335 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10336 ;;
10337 *)
10338 wlarc='$wl'
10339 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10340 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10341 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10342 ;;
10343 esac
10344 fi
10345 hardcode_libdir_flag_spec='-R$libdir'
10346 hardcode_shlibpath_var=no
10347 case $host_os in
10348 solaris2.[0-5] | solaris2.[0-5].*) ;;
10349 *)
10350 # The compiler driver will combine and reorder linker options,
10351 # but understands '-z linker_flag'. GCC discards it without '$wl',
10352 # but is careful enough not to reorder.
10353 # Supported since Solaris 2.6 (maybe 2.5.1?)
10354 if test yes = "$GCC"; then
10355 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
10356 else
10357 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10358 fi
10359 ;;
10360 esac
10361 link_all_deplibs=yes
10362 ;;
10363
10364 sunos4*)
10365 if test sequent = "$host_vendor"; then
10366 # Use $CC to link under sequent, because it throws in some extra .o
10367 # files that make .init and .fini sections work.
10368 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10369 else
10370 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10371 fi
10372 hardcode_libdir_flag_spec='-L$libdir'
10373 hardcode_direct=yes
10374 hardcode_minus_L=yes
10375 hardcode_shlibpath_var=no
10376 ;;
10377
10378 sysv4)
10379 case $host_vendor in
10380 sni)
10381 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10382 hardcode_direct=yes # is this really true???
10383 ;;
10384 siemens)
10385 ## LD is ld it makes a PLAMLIB
10386 ## CC just makes a GrossModule.
10387 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10388 reload_cmds='$CC -r -o $output$reload_objs'
10389 hardcode_direct=no
10390 ;;
10391 motorola)
10392 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10393 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10394 ;;
10395 esac
10396 runpath_var='LD_RUN_PATH'
10397 hardcode_shlibpath_var=no
10398 ;;
10399
10400 sysv4.3*)
10401 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10402 hardcode_shlibpath_var=no
10403 export_dynamic_flag_spec='-Bexport'
10404 ;;
10405
10406 sysv4*MP*)
10407 if test -d /usr/nec; then
10408 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10409 hardcode_shlibpath_var=no
10410 runpath_var=LD_RUN_PATH
10411 hardcode_runpath_var=yes
10412 ld_shlibs=yes
10413 fi
10414 ;;
10415
10416 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10417 no_undefined_flag='$wl-z,text'
10418 archive_cmds_need_lc=no
10419 hardcode_shlibpath_var=no
10420 runpath_var='LD_RUN_PATH'
10421
10422 if test yes = "$GCC"; then
10423 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10424 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10425 else
10426 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10427 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10428 fi
10429 ;;
10430
10431 sysv5* | sco3.2v5* | sco5v6*)
10432 # Note: We CANNOT use -z defs as we might desire, because we do not
10433 # link with -lc, and that would cause any symbols used from libc to
10434 # always be unresolved, which means just about no library would
10435 # ever link correctly. If we're not using GNU ld we use -z text
10436 # though, which does catch some bad symbols but isn't as heavy-handed
10437 # as -z defs.
10438 no_undefined_flag='$wl-z,text'
10439 allow_undefined_flag='$wl-z,nodefs'
10440 archive_cmds_need_lc=no
10441 hardcode_shlibpath_var=no
10442 hardcode_libdir_flag_spec='$wl-R,$libdir'
10443 hardcode_libdir_separator=':'
10444 link_all_deplibs=yes
10445 export_dynamic_flag_spec='$wl-Bexport'
10446 runpath_var='LD_RUN_PATH'
10447
10448 if test yes = "$GCC"; then
10449 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10450 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10451 else
10452 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10453 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10454 fi
10455 ;;
10456
10457 uts4*)
10458 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10459 hardcode_libdir_flag_spec='-L$libdir'
10460 hardcode_shlibpath_var=no
10461 ;;
10462
10463 *)
10464 ld_shlibs=no
10465 ;;
10466 esac
10467
10468 if test sni = "$host_vendor"; then
10469 case $host in
10470 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10471 export_dynamic_flag_spec='$wl-Blargedynsym'
10472 ;;
10473 esac
10474 fi
10475 fi
10476
10477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10478 $as_echo "$ld_shlibs" >&6; }
10479 test no = "$ld_shlibs" && can_build_shared=no
10480
10481 with_gnu_ld=$with_gnu_ld
10482
10483
10484
10485
10486
10487
10488
10489
10490
10491
10492
10493
10494
10495
10496
10497 #
10498 # Do we need to explicitly link libc?
10499 #
10500 case "x$archive_cmds_need_lc" in
10501 x|xyes)
10502 # Assume -lc should be added
10503 archive_cmds_need_lc=yes
10504
10505 if test yes,yes = "$GCC,$enable_shared"; then
10506 case $archive_cmds in
10507 *'~'*)
10508 # FIXME: we may have to deal with multi-command sequences.
10509 ;;
10510 '$CC '*)
10511 # Test whether the compiler implicitly links with -lc since on some
10512 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10513 # to ld, don't add -lc before -lgcc.
10514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10515 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10516 if ${lt_cv_archive_cmds_need_lc+:} false; then :
10517 $as_echo_n "(cached) " >&6
10518 else
10519 $RM conftest*
10520 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10521
10522 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10523 (eval $ac_compile) 2>&5
10524 ac_status=$?
10525 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10526 test $ac_status = 0; } 2>conftest.err; then
10527 soname=conftest
10528 lib=conftest
10529 libobjs=conftest.$ac_objext
10530 deplibs=
10531 wl=$lt_prog_compiler_wl
10532 pic_flag=$lt_prog_compiler_pic
10533 compiler_flags=-v
10534 linker_flags=-v
10535 verstring=
10536 output_objdir=.
10537 libname=conftest
10538 lt_save_allow_undefined_flag=$allow_undefined_flag
10539 allow_undefined_flag=
10540 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10541 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10542 ac_status=$?
10543 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10544 test $ac_status = 0; }
10545 then
10546 lt_cv_archive_cmds_need_lc=no
10547 else
10548 lt_cv_archive_cmds_need_lc=yes
10549 fi
10550 allow_undefined_flag=$lt_save_allow_undefined_flag
10551 else
10552 cat conftest.err 1>&5
10553 fi
10554 $RM conftest*
10555
10556 fi
10557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10558 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10559 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10560 ;;
10561 esac
10562 fi
10563 ;;
10564 esac
10565
10566
10567
10568
10569
10570
10571
10572
10573
10574
10575
10576
10577
10578
10579
10580
10581
10582
10583
10584
10585
10586
10587
10588
10589
10590
10591
10592
10593
10594
10595
10596
10597
10598
10599
10600
10601
10602
10603
10604
10605
10606
10607
10608
10609
10610
10611
10612
10613
10614
10615
10616
10617
10618
10619
10620
10621
10622
10623
10624
10625
10626
10627
10628
10629
10630
10631
10632
10633
10634
10635
10636
10637
10638
10639
10640
10641
10642
10643
10644
10645
10646
10647
10648
10649
10650
10651
10652
10653
10654
10655
10656
10657
10658
10659
10660
10661
10662
10663
10664
10665
10666
10667
10668
10669
10670
10671
10672
10673
10674
10675
10676
10677
10678
10679
10680
10681
10682
10683
10684
10685
10686
10687
10688
10689
10690
10691
10692
10693
10694
10695
10696
10697
10698
10699
10700
10701
10702
10703
10704
10705
10706
10707
10708
10709
10710
10711
10712
10713
10714
10715
10716
10717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10718 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10719
10720 if test yes = "$GCC"; then
10721 case $host_os in
10722 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
10723 *) lt_awk_arg='/^libraries:/' ;;
10724 esac
10725 case $host_os in
10726 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
10727 *) lt_sed_strip_eq='s|=/|/|g' ;;
10728 esac
10729 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10730 case $lt_search_path_spec in
10731 *\;*)
10732 # if the path contains ";" then we assume it to be the separator
10733 # otherwise default to the standard path separator (i.e. ":") - it is
10734 # assumed that no part of a normal pathname contains ";" but that should
10735 # okay in the real world where ";" in dirpaths is itself problematic.
10736 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10737 ;;
10738 *)
10739 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10740 ;;
10741 esac
10742 # Ok, now we have the path, separated by spaces, we can step through it
10743 # and add multilib dir if necessary...
10744 lt_tmp_lt_search_path_spec=
10745 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10746 # ...but if some path component already ends with the multilib dir we assume
10747 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
10748 case "$lt_multi_os_dir; $lt_search_path_spec " in
10749 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
10750 lt_multi_os_dir=
10751 ;;
10752 esac
10753 for lt_sys_path in $lt_search_path_spec; do
10754 if test -d "$lt_sys_path$lt_multi_os_dir"; then
10755 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
10756 elif test -n "$lt_multi_os_dir"; then
10757 test -d "$lt_sys_path" && \
10758 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10759 fi
10760 done
10761 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10762 BEGIN {RS = " "; FS = "/|\n";} {
10763 lt_foo = "";
10764 lt_count = 0;
10765 for (lt_i = NF; lt_i > 0; lt_i--) {
10766 if ($lt_i != "" && $lt_i != ".") {
10767 if ($lt_i == "..") {
10768 lt_count++;
10769 } else {
10770 if (lt_count == 0) {
10771 lt_foo = "/" $lt_i lt_foo;
10772 } else {
10773 lt_count--;
10774 }
10775 }
10776 }
10777 }
10778 if (lt_foo != "") { lt_freq[lt_foo]++; }
10779 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10780 }'`
10781 # AWK program above erroneously prepends '/' to C:/dos/paths
10782 # for these hosts.
10783 case $host_os in
10784 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10785 $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
10786 esac
10787 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10788 else
10789 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10790 fi
10791 library_names_spec=
10792 libname_spec='lib$name'
10793 soname_spec=
10794 shrext_cmds=.so
10795 postinstall_cmds=
10796 postuninstall_cmds=
10797 finish_cmds=
10798 finish_eval=
10799 shlibpath_var=
10800 shlibpath_overrides_runpath=unknown
10801 version_type=none
10802 dynamic_linker="$host_os ld.so"
10803 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10804 need_lib_prefix=unknown
10805 hardcode_into_libs=no
10806
10807 # when you set need_version to no, make sure it does not cause -set_version
10808 # flags to be left without arguments
10809 need_version=unknown
10810
10811
10812
10813 case $host_os in
10814 aix3*)
10815 version_type=linux # correct to gnu/linux during the next big refactor
10816 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
10817 shlibpath_var=LIBPATH
10818
10819 # AIX 3 has no versioning support, so we append a major version to the name.
10820 soname_spec='$libname$release$shared_ext$major'
10821 ;;
10822
10823 aix[4-9]*)
10824 version_type=linux # correct to gnu/linux during the next big refactor
10825 need_lib_prefix=no
10826 need_version=no
10827 hardcode_into_libs=yes
10828 if test ia64 = "$host_cpu"; then
10829 # AIX 5 supports IA64
10830 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
10831 shlibpath_var=LD_LIBRARY_PATH
10832 else
10833 # With GCC up to 2.95.x, collect2 would create an import file
10834 # for dependence libraries. The import file would start with
10835 # the line '#! .'. This would cause the generated library to
10836 # depend on '.', always an invalid library. This was fixed in
10837 # development snapshots of GCC prior to 3.0.
10838 case $host_os in
10839 aix4 | aix4.[01] | aix4.[01].*)
10840 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10841 echo ' yes '
10842 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
10843 :
10844 else
10845 can_build_shared=no
10846 fi
10847 ;;
10848 esac
10849 # Using Import Files as archive members, it is possible to support
10850 # filename-based versioning of shared library archives on AIX. While
10851 # this would work for both with and without runtime linking, it will
10852 # prevent static linking of such archives. So we do filename-based
10853 # shared library versioning with .so extension only, which is used
10854 # when both runtime linking and shared linking is enabled.
10855 # Unfortunately, runtime linking may impact performance, so we do
10856 # not want this to be the default eventually. Also, we use the
10857 # versioned .so libs for executables only if there is the -brtl
10858 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
10859 # To allow for filename-based versioning support, we need to create
10860 # libNAME.so.V as an archive file, containing:
10861 # *) an Import File, referring to the versioned filename of the
10862 # archive as well as the shared archive member, telling the
10863 # bitwidth (32 or 64) of that shared object, and providing the
10864 # list of exported symbols of that shared object, eventually
10865 # decorated with the 'weak' keyword
10866 # *) the shared object with the F_LOADONLY flag set, to really avoid
10867 # it being seen by the linker.
10868 # At run time we better use the real file rather than another symlink,
10869 # but for link time we create the symlink libNAME.so -> libNAME.so.V
10870
10871 case $with_aix_soname,$aix_use_runtimelinking in
10872 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
10873 # soname into executable. Probably we can add versioning support to
10874 # collect2, so additional links can be useful in future.
10875 aix,yes) # traditional libtool
10876 dynamic_linker='AIX unversionable lib.so'
10877 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10878 # instead of lib<name>.a to let people know that these are not
10879 # typical AIX shared libraries.
10880 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10881 ;;
10882 aix,no) # traditional AIX only
10883 dynamic_linker='AIX lib.a(lib.so.V)'
10884 # We preserve .a as extension for shared libraries through AIX4.2
10885 # and later when we are not doing run time linking.
10886 library_names_spec='$libname$release.a $libname.a'
10887 soname_spec='$libname$release$shared_ext$major'
10888 ;;
10889 svr4,*) # full svr4 only
10890 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
10891 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
10892 # We do not specify a path in Import Files, so LIBPATH fires.
10893 shlibpath_overrides_runpath=yes
10894 ;;
10895 *,yes) # both, prefer svr4
10896 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
10897 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
10898 # unpreferred sharedlib libNAME.a needs extra handling
10899 postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"'
10900 postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'
10901 # We do not specify a path in Import Files, so LIBPATH fires.
10902 shlibpath_overrides_runpath=yes
10903 ;;
10904 *,no) # both, prefer aix
10905 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
10906 library_names_spec='$libname$release.a $libname.a'
10907 soname_spec='$libname$release$shared_ext$major'
10908 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
10909 postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'
10910 postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"'
10911 ;;
10912 esac
10913 shlibpath_var=LIBPATH
10914 fi
10915 ;;
10916
10917 amigaos*)
10918 case $host_cpu in
10919 powerpc)
10920 # Since July 2007 AmigaOS4 officially supports .so libraries.
10921 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10922 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10923 ;;
10924 m68k)
10925 library_names_spec='$libname.ixlibrary $libname.a'
10926 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10927 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
10928 ;;
10929 esac
10930 ;;
10931
10932 beos*)
10933 library_names_spec='$libname$shared_ext'
10934 dynamic_linker="$host_os ld.so"
10935 shlibpath_var=LIBRARY_PATH
10936 ;;
10937
10938 bsdi[45]*)
10939 version_type=linux # correct to gnu/linux during the next big refactor
10940 need_version=no
10941 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10942 soname_spec='$libname$release$shared_ext$major'
10943 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10944 shlibpath_var=LD_LIBRARY_PATH
10945 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10946 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10947 # the default ld.so.conf also contains /usr/contrib/lib and
10948 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10949 # libtool to hard-code these into programs
10950 ;;
10951
10952 cygwin* | mingw* | pw32* | cegcc*)
10953 version_type=windows
10954 shrext_cmds=.dll
10955 need_version=no
10956 need_lib_prefix=no
10957
10958 case $GCC,$cc_basename in
10959 yes,*)
10960 # gcc
10961 library_names_spec='$libname.dll.a'
10962 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10963 postinstall_cmds='base_file=`basename \$file`~
10964 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
10965 dldir=$destdir/`dirname \$dlpath`~
10966 test -d \$dldir || mkdir -p \$dldir~
10967 $install_prog $dir/$dlname \$dldir/$dlname~
10968 chmod a+x \$dldir/$dlname~
10969 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10970 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10971 fi'
10972 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10973 dlpath=$dir/\$dldll~
10974 $RM \$dlpath'
10975 shlibpath_overrides_runpath=yes
10976
10977 case $host_os in
10978 cygwin*)
10979 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10980 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10981
10982 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10983 ;;
10984 mingw* | cegcc*)
10985 # MinGW DLLs use traditional 'lib' prefix
10986 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10987 ;;
10988 pw32*)
10989 # pw32 DLLs use 'pw' prefix rather than 'lib'
10990 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10991 ;;
10992 esac
10993 dynamic_linker='Win32 ld.exe'
10994 ;;
10995
10996 *,cl*)
10997 # Native MSVC
10998 libname_spec='$name'
10999 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11000 library_names_spec='$libname.dll.lib'
11001
11002 case $build_os in
11003 mingw*)
11004 sys_lib_search_path_spec=
11005 lt_save_ifs=$IFS
11006 IFS=';'
11007 for lt_path in $LIB
11008 do
11009 IFS=$lt_save_ifs
11010 # Let DOS variable expansion print the short 8.3 style file name.
11011 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
11012 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
11013 done
11014 IFS=$lt_save_ifs
11015 # Convert to MSYS style.
11016 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
11017 ;;
11018 cygwin*)
11019 # Convert to unix form, then to dos form, then back to unix form
11020 # but this time dos style (no spaces!) so that the unix form looks
11021 # like /cygdrive/c/PROGRA~1:/cygdr...
11022 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
11023 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
11024 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11025 ;;
11026 *)
11027 sys_lib_search_path_spec=$LIB
11028 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11029 # It is most probably a Windows format PATH.
11030 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11031 else
11032 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11033 fi
11034 # FIXME: find the short name or the path components, as spaces are
11035 # common. (e.g. "Program Files" -> "PROGRA~1")
11036 ;;
11037 esac
11038
11039 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11040 postinstall_cmds='base_file=`basename \$file`~
11041 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11042 dldir=$destdir/`dirname \$dlpath`~
11043 test -d \$dldir || mkdir -p \$dldir~
11044 $install_prog $dir/$dlname \$dldir/$dlname'
11045 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11046 dlpath=$dir/\$dldll~
11047 $RM \$dlpath'
11048 shlibpath_overrides_runpath=yes
11049 dynamic_linker='Win32 link.exe'
11050 ;;
11051
11052 *)
11053 # Assume MSVC wrapper
11054 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
11055 dynamic_linker='Win32 ld.exe'
11056 ;;
11057 esac
11058 # FIXME: first we should search . and the directory the executable is in
11059 shlibpath_var=PATH
11060 ;;
11061
11062 darwin* | rhapsody*)
11063 dynamic_linker="$host_os dyld"
11064 version_type=darwin
11065 need_lib_prefix=no
11066 need_version=no
11067 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
11068 soname_spec='$libname$release$major$shared_ext'
11069 shlibpath_overrides_runpath=yes
11070 shlibpath_var=DYLD_LIBRARY_PATH
11071 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11072
11073 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11074 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11075 ;;
11076
11077 dgux*)
11078 version_type=linux # correct to gnu/linux during the next big refactor
11079 need_lib_prefix=no
11080 need_version=no
11081 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11082 soname_spec='$libname$release$shared_ext$major'
11083 shlibpath_var=LD_LIBRARY_PATH
11084 ;;
11085
11086 freebsd* | dragonfly*)
11087 # DragonFly does not have aout. When/if they implement a new
11088 # versioning mechanism, adjust this.
11089 if test -x /usr/bin/objformat; then
11090 objformat=`/usr/bin/objformat`
11091 else
11092 case $host_os in
11093 freebsd[23].*) objformat=aout ;;
11094 *) objformat=elf ;;
11095 esac
11096 fi
11097 version_type=freebsd-$objformat
11098 case $version_type in
11099 freebsd-elf*)
11100 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11101 soname_spec='$libname$release$shared_ext$major'
11102 need_version=no
11103 need_lib_prefix=no
11104 ;;
11105 freebsd-*)
11106 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11107 need_version=yes
11108 ;;
11109 esac
11110 shlibpath_var=LD_LIBRARY_PATH
11111 case $host_os in
11112 freebsd2.*)
11113 shlibpath_overrides_runpath=yes
11114 ;;
11115 freebsd3.[01]* | freebsdelf3.[01]*)
11116 shlibpath_overrides_runpath=yes
11117 hardcode_into_libs=yes
11118 ;;
11119 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11120 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11121 shlibpath_overrides_runpath=no
11122 hardcode_into_libs=yes
11123 ;;
11124 *) # from 4.6 on, and DragonFly
11125 shlibpath_overrides_runpath=yes
11126 hardcode_into_libs=yes
11127 ;;
11128 esac
11129 ;;
11130
11131 haiku*)
11132 version_type=linux # correct to gnu/linux during the next big refactor
11133 need_lib_prefix=no
11134 need_version=no
11135 dynamic_linker="$host_os runtime_loader"
11136 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11137 soname_spec='$libname$release$shared_ext$major'
11138 shlibpath_var=LIBRARY_PATH
11139 shlibpath_overrides_runpath=no
11140 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
11141 hardcode_into_libs=yes
11142 ;;
11143
11144 hpux9* | hpux10* | hpux11*)
11145 # Give a soname corresponding to the major version so that dld.sl refuses to
11146 # link against other versions.
11147 version_type=sunos
11148 need_lib_prefix=no
11149 need_version=no
11150 case $host_cpu in
11151 ia64*)
11152 shrext_cmds='.so'
11153 hardcode_into_libs=yes
11154 dynamic_linker="$host_os dld.so"
11155 shlibpath_var=LD_LIBRARY_PATH
11156 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11157 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11158 soname_spec='$libname$release$shared_ext$major'
11159 if test 32 = "$HPUX_IA64_MODE"; then
11160 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11161 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
11162 else
11163 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11164 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
11165 fi
11166 ;;
11167 hppa*64*)
11168 shrext_cmds='.sl'
11169 hardcode_into_libs=yes
11170 dynamic_linker="$host_os dld.sl"
11171 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11172 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11173 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11174 soname_spec='$libname$release$shared_ext$major'
11175 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11176 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11177 ;;
11178 *)
11179 shrext_cmds='.sl'
11180 dynamic_linker="$host_os dld.sl"
11181 shlibpath_var=SHLIB_PATH
11182 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11183 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11184 soname_spec='$libname$release$shared_ext$major'
11185 ;;
11186 esac
11187 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11188 postinstall_cmds='chmod 555 $lib'
11189 # or fails outright, so override atomically:
11190 install_override_mode=555
11191 ;;
11192
11193 interix[3-9]*)
11194 version_type=linux # correct to gnu/linux during the next big refactor
11195 need_lib_prefix=no
11196 need_version=no
11197 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11198 soname_spec='$libname$release$shared_ext$major'
11199 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11200 shlibpath_var=LD_LIBRARY_PATH
11201 shlibpath_overrides_runpath=no
11202 hardcode_into_libs=yes
11203 ;;
11204
11205 irix5* | irix6* | nonstopux*)
11206 case $host_os in
11207 nonstopux*) version_type=nonstopux ;;
11208 *)
11209 if test yes = "$lt_cv_prog_gnu_ld"; then
11210 version_type=linux # correct to gnu/linux during the next big refactor
11211 else
11212 version_type=irix
11213 fi ;;
11214 esac
11215 need_lib_prefix=no
11216 need_version=no
11217 soname_spec='$libname$release$shared_ext$major'
11218 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
11219 case $host_os in
11220 irix5* | nonstopux*)
11221 libsuff= shlibsuff=
11222 ;;
11223 *)
11224 case $LD in # libtool.m4 will add one of these switches to LD
11225 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11226 libsuff= shlibsuff= libmagic=32-bit;;
11227 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11228 libsuff=32 shlibsuff=N32 libmagic=N32;;
11229 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11230 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11231 *) libsuff= shlibsuff= libmagic=never-match;;
11232 esac
11233 ;;
11234 esac
11235 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11236 shlibpath_overrides_runpath=no
11237 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
11238 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
11239 hardcode_into_libs=yes
11240 ;;
11241
11242 # No shared lib support for Linux oldld, aout, or coff.
11243 linux*oldld* | linux*aout* | linux*coff*)
11244 dynamic_linker=no
11245 ;;
11246
11247 linux*android*)
11248 version_type=none # Android doesn't support versioned libraries.
11249 need_lib_prefix=no
11250 need_version=no
11251 library_names_spec='$libname$release$shared_ext'
11252 soname_spec='$libname$release$shared_ext'
11253 finish_cmds=
11254 shlibpath_var=LD_LIBRARY_PATH
11255 shlibpath_overrides_runpath=yes
11256
11257 # This implies no fast_install, which is unacceptable.
11258 # Some rework will be needed to allow for fast_install
11259 # before this can be enabled.
11260 hardcode_into_libs=yes
11261
11262 dynamic_linker='Android linker'
11263 # Don't embed -rpath directories since the linker doesn't support them.
11264 hardcode_libdir_flag_spec='-L$libdir'
11265 ;;
11266
11267 # This must be glibc/ELF.
11268 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
11269 version_type=linux # correct to gnu/linux during the next big refactor
11270 need_lib_prefix=no
11271 need_version=no
11272 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11273 soname_spec='$libname$release$shared_ext$major'
11274 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11275 shlibpath_var=LD_LIBRARY_PATH
11276 shlibpath_overrides_runpath=no
11277
11278 # Some binutils ld are patched to set DT_RUNPATH
11279 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11280 $as_echo_n "(cached) " >&6
11281 else
11282 lt_cv_shlibpath_overrides_runpath=no
11283 save_LDFLAGS=$LDFLAGS
11284 save_libdir=$libdir
11285 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11286 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11287 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11288 /* end confdefs.h. */
11289
11290 int
11291 main ()
11292 {
11293
11294 ;
11295 return 0;
11296 }
11297 _ACEOF
11298 if ac_fn_c_try_link "$LINENO"; then :
11299 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11300 lt_cv_shlibpath_overrides_runpath=yes
11301 fi
11302 fi
11303 rm -f core conftest.err conftest.$ac_objext \
11304 conftest$ac_exeext conftest.$ac_ext
11305 LDFLAGS=$save_LDFLAGS
11306 libdir=$save_libdir
11307
11308 fi
11309
11310 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11311
11312 # This implies no fast_install, which is unacceptable.
11313 # Some rework will be needed to allow for fast_install
11314 # before this can be enabled.
11315 hardcode_into_libs=yes
11316
11317 # Ideally, we could use ldconfig to report *all* directores which are
11318 # searched for libraries, however this is still not possible. Aside from not
11319 # being certain /sbin/ldconfig is available, command
11320 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
11321 # even though it is searched at run-time. Try to do the best guess by
11322 # appending ld.so.conf contents (and includes) to the search path.
11323 if test -f /etc/ld.so.conf; then
11324 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' ' '`
11325 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11326 fi
11327
11328 # We used to test for /lib/ld.so.1 and disable shared libraries on
11329 # powerpc, because MkLinux only supported shared libraries with the
11330 # GNU dynamic linker. Since this was broken with cross compilers,
11331 # most powerpc-linux boxes support dynamic linking these days and
11332 # people can always --disable-shared, the test was removed, and we
11333 # assume the GNU/Linux dynamic linker is in use.
11334 dynamic_linker='GNU/Linux ld.so'
11335 ;;
11336
11337 netbsdelf*-gnu)
11338 version_type=linux
11339 need_lib_prefix=no
11340 need_version=no
11341 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11342 soname_spec='${libname}${release}${shared_ext}$major'
11343 shlibpath_var=LD_LIBRARY_PATH
11344 shlibpath_overrides_runpath=no
11345 hardcode_into_libs=yes
11346 dynamic_linker='NetBSD ld.elf_so'
11347 ;;
11348
11349 netbsd*)
11350 version_type=sunos
11351 need_lib_prefix=no
11352 need_version=no
11353 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11354 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11355 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11356 dynamic_linker='NetBSD (a.out) ld.so'
11357 else
11358 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11359 soname_spec='$libname$release$shared_ext$major'
11360 dynamic_linker='NetBSD ld.elf_so'
11361 fi
11362 shlibpath_var=LD_LIBRARY_PATH
11363 shlibpath_overrides_runpath=yes
11364 hardcode_into_libs=yes
11365 ;;
11366
11367 newsos6)
11368 version_type=linux # correct to gnu/linux during the next big refactor
11369 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11370 shlibpath_var=LD_LIBRARY_PATH
11371 shlibpath_overrides_runpath=yes
11372 ;;
11373
11374 *nto* | *qnx*)
11375 version_type=qnx
11376 need_lib_prefix=no
11377 need_version=no
11378 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11379 soname_spec='$libname$release$shared_ext$major'
11380 shlibpath_var=LD_LIBRARY_PATH
11381 shlibpath_overrides_runpath=no
11382 hardcode_into_libs=yes
11383 dynamic_linker='ldqnx.so'
11384 ;;
11385
11386 openbsd* | bitrig*)
11387 version_type=sunos
11388 sys_lib_dlsearch_path_spec=/usr/lib
11389 need_lib_prefix=no
11390 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
11391 need_version=no
11392 else
11393 need_version=yes
11394 fi
11395 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11396 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11397 shlibpath_var=LD_LIBRARY_PATH
11398 shlibpath_overrides_runpath=yes
11399 ;;
11400
11401 os2*)
11402 libname_spec='$name'
11403 version_type=windows
11404 shrext_cmds=.dll
11405 need_version=no
11406 need_lib_prefix=no
11407 # OS/2 can only load a DLL with a base name of 8 characters or less.
11408 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
11409 v=$($ECHO $release$versuffix | tr -d .-);
11410 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
11411 $ECHO $n$v`$shared_ext'
11412 library_names_spec='${libname}_dll.$libext'
11413 dynamic_linker='OS/2 ld.exe'
11414 shlibpath_var=BEGINLIBPATH
11415 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11416 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11417 postinstall_cmds='base_file=`basename \$file`~
11418 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
11419 dldir=$destdir/`dirname \$dlpath`~
11420 test -d \$dldir || mkdir -p \$dldir~
11421 $install_prog $dir/$dlname \$dldir/$dlname~
11422 chmod a+x \$dldir/$dlname~
11423 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11424 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11425 fi'
11426 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
11427 dlpath=$dir/\$dldll~
11428 $RM \$dlpath'
11429 ;;
11430
11431 osf3* | osf4* | osf5*)
11432 version_type=osf
11433 need_lib_prefix=no
11434 need_version=no
11435 soname_spec='$libname$release$shared_ext$major'
11436 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11437 shlibpath_var=LD_LIBRARY_PATH
11438 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11439 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11440 ;;
11441
11442 rdos*)
11443 dynamic_linker=no
11444 ;;
11445
11446 solaris*)
11447 version_type=linux # correct to gnu/linux during the next big refactor
11448 need_lib_prefix=no
11449 need_version=no
11450 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11451 soname_spec='$libname$release$shared_ext$major'
11452 shlibpath_var=LD_LIBRARY_PATH
11453 shlibpath_overrides_runpath=yes
11454 hardcode_into_libs=yes
11455 # ldd complains unless libraries are executable
11456 postinstall_cmds='chmod +x $lib'
11457 ;;
11458
11459 sunos4*)
11460 version_type=sunos
11461 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11462 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11463 shlibpath_var=LD_LIBRARY_PATH
11464 shlibpath_overrides_runpath=yes
11465 if test yes = "$with_gnu_ld"; then
11466 need_lib_prefix=no
11467 fi
11468 need_version=yes
11469 ;;
11470
11471 sysv4 | sysv4.3*)
11472 version_type=linux # correct to gnu/linux during the next big refactor
11473 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11474 soname_spec='$libname$release$shared_ext$major'
11475 shlibpath_var=LD_LIBRARY_PATH
11476 case $host_vendor in
11477 sni)
11478 shlibpath_overrides_runpath=no
11479 need_lib_prefix=no
11480 runpath_var=LD_RUN_PATH
11481 ;;
11482 siemens)
11483 need_lib_prefix=no
11484 ;;
11485 motorola)
11486 need_lib_prefix=no
11487 need_version=no
11488 shlibpath_overrides_runpath=no
11489 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11490 ;;
11491 esac
11492 ;;
11493
11494 sysv4*MP*)
11495 if test -d /usr/nec; then
11496 version_type=linux # correct to gnu/linux during the next big refactor
11497 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
11498 soname_spec='$libname$shared_ext.$major'
11499 shlibpath_var=LD_LIBRARY_PATH
11500 fi
11501 ;;
11502
11503 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11504 version_type=sco
11505 need_lib_prefix=no
11506 need_version=no
11507 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
11508 soname_spec='$libname$release$shared_ext$major'
11509 shlibpath_var=LD_LIBRARY_PATH
11510 shlibpath_overrides_runpath=yes
11511 hardcode_into_libs=yes
11512 if test yes = "$with_gnu_ld"; then
11513 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11514 else
11515 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11516 case $host_os in
11517 sco3.2v5*)
11518 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11519 ;;
11520 esac
11521 fi
11522 sys_lib_dlsearch_path_spec='/usr/lib'
11523 ;;
11524
11525 tpf*)
11526 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11527 version_type=linux # correct to gnu/linux during the next big refactor
11528 need_lib_prefix=no
11529 need_version=no
11530 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11531 shlibpath_var=LD_LIBRARY_PATH
11532 shlibpath_overrides_runpath=no
11533 hardcode_into_libs=yes
11534 ;;
11535
11536 uts4*)
11537 version_type=linux # correct to gnu/linux during the next big refactor
11538 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11539 soname_spec='$libname$release$shared_ext$major'
11540 shlibpath_var=LD_LIBRARY_PATH
11541 ;;
11542
11543 *)
11544 dynamic_linker=no
11545 ;;
11546 esac
11547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11548 $as_echo "$dynamic_linker" >&6; }
11549 test no = "$dynamic_linker" && can_build_shared=no
11550
11551 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11552 if test yes = "$GCC"; then
11553 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11554 fi
11555
11556 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
11557 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
11558 fi
11559
11560 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
11561 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
11562 fi
11563
11564 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
11565 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
11566
11567 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
11568 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
11569
11570 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
11571 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
11572
11573
11574
11575
11576
11577
11578
11579
11580
11581
11582
11583
11584
11585
11586
11587
11588
11589
11590
11591
11592
11593
11594
11595
11596
11597
11598
11599
11600
11601
11602
11603
11604
11605
11606
11607
11608
11609
11610
11611
11612
11613
11614
11615
11616
11617
11618
11619
11620
11621
11622
11623
11624
11625
11626
11627
11628
11629
11630
11631
11632
11633
11634
11635
11636
11637
11638
11639
11640
11641
11642
11643
11644
11645
11646
11647
11648
11649
11650
11651
11652
11653
11654
11655
11656
11657
11658
11659
11660
11661
11662
11663
11664
11665
11666
11667
11668
11669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11670 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11671 hardcode_action=
11672 if test -n "$hardcode_libdir_flag_spec" ||
11673 test -n "$runpath_var" ||
11674 test yes = "$hardcode_automatic"; then
11675
11676 # We can hardcode non-existent directories.
11677 if test no != "$hardcode_direct" &&
11678 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11679 # have to relink, otherwise we might link with an installed library
11680 # when we should be linking with a yet-to-be-installed one
11681 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
11682 test no != "$hardcode_minus_L"; then
11683 # Linking always hardcodes the temporary library directory.
11684 hardcode_action=relink
11685 else
11686 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11687 hardcode_action=immediate
11688 fi
11689 else
11690 # We cannot hardcode anything, or else we can only hardcode existing
11691 # directories.
11692 hardcode_action=unsupported
11693 fi
11694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11695 $as_echo "$hardcode_action" >&6; }
11696
11697 if test relink = "$hardcode_action" ||
11698 test yes = "$inherit_rpath"; then
11699 # Fast installation is not supported
11700 enable_fast_install=no
11701 elif test yes = "$shlibpath_overrides_runpath" ||
11702 test no = "$enable_shared"; then
11703 # Fast installation is not necessary
11704 enable_fast_install=needless
11705 fi
11706
11707
11708
11709
11710
11711
11712 if test yes != "$enable_dlopen"; then
11713 enable_dlopen=unknown
11714 enable_dlopen_self=unknown
11715 enable_dlopen_self_static=unknown
11716 else
11717 lt_cv_dlopen=no
11718 lt_cv_dlopen_libs=
11719
11720 case $host_os in
11721 beos*)
11722 lt_cv_dlopen=load_add_on
11723 lt_cv_dlopen_libs=
11724 lt_cv_dlopen_self=yes
11725 ;;
11726
11727 mingw* | pw32* | cegcc*)
11728 lt_cv_dlopen=LoadLibrary
11729 lt_cv_dlopen_libs=
11730 ;;
11731
11732 cygwin*)
11733 lt_cv_dlopen=dlopen
11734 lt_cv_dlopen_libs=
11735 ;;
11736
11737 darwin*)
11738 # if libdl is installed we need to link against it
11739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11740 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11741 if ${ac_cv_lib_dl_dlopen+:} false; then :
11742 $as_echo_n "(cached) " >&6
11743 else
11744 ac_check_lib_save_LIBS=$LIBS
11745 LIBS="-ldl $LIBS"
11746 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11747 /* end confdefs.h. */
11748
11749 /* Override any GCC internal prototype to avoid an error.
11750 Use char because int might match the return type of a GCC
11751 builtin and then its argument prototype would still apply. */
11752 #ifdef __cplusplus
11753 extern "C"
11754 #endif
11755 char dlopen ();
11756 int
11757 main ()
11758 {
11759 return dlopen ();
11760 ;
11761 return 0;
11762 }
11763 _ACEOF
11764 if ac_fn_c_try_link "$LINENO"; then :
11765 ac_cv_lib_dl_dlopen=yes
11766 else
11767 ac_cv_lib_dl_dlopen=no
11768 fi
11769 rm -f core conftest.err conftest.$ac_objext \
11770 conftest$ac_exeext conftest.$ac_ext
11771 LIBS=$ac_check_lib_save_LIBS
11772 fi
11773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11774 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11775 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11776 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
11777 else
11778
11779 lt_cv_dlopen=dyld
11780 lt_cv_dlopen_libs=
11781 lt_cv_dlopen_self=yes
11782
11783 fi
11784
11785 ;;
11786
11787 tpf*)
11788 # Don't try to run any link tests for TPF. We know it's impossible
11789 # because TPF is a cross-compiler, and we know how we open DSOs.
11790 lt_cv_dlopen=dlopen
11791 lt_cv_dlopen_libs=
11792 lt_cv_dlopen_self=no
11793 ;;
11794
11795 *)
11796 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11797 if test "x$ac_cv_func_shl_load" = xyes; then :
11798 lt_cv_dlopen=shl_load
11799 else
11800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11801 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11802 if ${ac_cv_lib_dld_shl_load+:} false; then :
11803 $as_echo_n "(cached) " >&6
11804 else
11805 ac_check_lib_save_LIBS=$LIBS
11806 LIBS="-ldld $LIBS"
11807 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11808 /* end confdefs.h. */
11809
11810 /* Override any GCC internal prototype to avoid an error.
11811 Use char because int might match the return type of a GCC
11812 builtin and then its argument prototype would still apply. */
11813 #ifdef __cplusplus
11814 extern "C"
11815 #endif
11816 char shl_load ();
11817 int
11818 main ()
11819 {
11820 return shl_load ();
11821 ;
11822 return 0;
11823 }
11824 _ACEOF
11825 if ac_fn_c_try_link "$LINENO"; then :
11826 ac_cv_lib_dld_shl_load=yes
11827 else
11828 ac_cv_lib_dld_shl_load=no
11829 fi
11830 rm -f core conftest.err conftest.$ac_objext \
11831 conftest$ac_exeext conftest.$ac_ext
11832 LIBS=$ac_check_lib_save_LIBS
11833 fi
11834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11835 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11836 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11837 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
11838 else
11839 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11840 if test "x$ac_cv_func_dlopen" = xyes; then :
11841 lt_cv_dlopen=dlopen
11842 else
11843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11844 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11845 if ${ac_cv_lib_dl_dlopen+:} false; then :
11846 $as_echo_n "(cached) " >&6
11847 else
11848 ac_check_lib_save_LIBS=$LIBS
11849 LIBS="-ldl $LIBS"
11850 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11851 /* end confdefs.h. */
11852
11853 /* Override any GCC internal prototype to avoid an error.
11854 Use char because int might match the return type of a GCC
11855 builtin and then its argument prototype would still apply. */
11856 #ifdef __cplusplus
11857 extern "C"
11858 #endif
11859 char dlopen ();
11860 int
11861 main ()
11862 {
11863 return dlopen ();
11864 ;
11865 return 0;
11866 }
11867 _ACEOF
11868 if ac_fn_c_try_link "$LINENO"; then :
11869 ac_cv_lib_dl_dlopen=yes
11870 else
11871 ac_cv_lib_dl_dlopen=no
11872 fi
11873 rm -f core conftest.err conftest.$ac_objext \
11874 conftest$ac_exeext conftest.$ac_ext
11875 LIBS=$ac_check_lib_save_LIBS
11876 fi
11877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11878 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11879 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11880 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
11881 else
11882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11883 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11884 if ${ac_cv_lib_svld_dlopen+:} false; then :
11885 $as_echo_n "(cached) " >&6
11886 else
11887 ac_check_lib_save_LIBS=$LIBS
11888 LIBS="-lsvld $LIBS"
11889 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11890 /* end confdefs.h. */
11891
11892 /* Override any GCC internal prototype to avoid an error.
11893 Use char because int might match the return type of a GCC
11894 builtin and then its argument prototype would still apply. */
11895 #ifdef __cplusplus
11896 extern "C"
11897 #endif
11898 char dlopen ();
11899 int
11900 main ()
11901 {
11902 return dlopen ();
11903 ;
11904 return 0;
11905 }
11906 _ACEOF
11907 if ac_fn_c_try_link "$LINENO"; then :
11908 ac_cv_lib_svld_dlopen=yes
11909 else
11910 ac_cv_lib_svld_dlopen=no
11911 fi
11912 rm -f core conftest.err conftest.$ac_objext \
11913 conftest$ac_exeext conftest.$ac_ext
11914 LIBS=$ac_check_lib_save_LIBS
11915 fi
11916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11917 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11918 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11919 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
11920 else
11921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11922 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11923 if ${ac_cv_lib_dld_dld_link+:} false; then :
11924 $as_echo_n "(cached) " >&6
11925 else
11926 ac_check_lib_save_LIBS=$LIBS
11927 LIBS="-ldld $LIBS"
11928 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11929 /* end confdefs.h. */
11930
11931 /* Override any GCC internal prototype to avoid an error.
11932 Use char because int might match the return type of a GCC
11933 builtin and then its argument prototype would still apply. */
11934 #ifdef __cplusplus
11935 extern "C"
11936 #endif
11937 char dld_link ();
11938 int
11939 main ()
11940 {
11941 return dld_link ();
11942 ;
11943 return 0;
11944 }
11945 _ACEOF
11946 if ac_fn_c_try_link "$LINENO"; then :
11947 ac_cv_lib_dld_dld_link=yes
11948 else
11949 ac_cv_lib_dld_dld_link=no
11950 fi
11951 rm -f core conftest.err conftest.$ac_objext \
11952 conftest$ac_exeext conftest.$ac_ext
11953 LIBS=$ac_check_lib_save_LIBS
11954 fi
11955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11956 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11957 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11958 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
11959 fi
11960
11961
11962 fi
11963
11964
11965 fi
11966
11967
11968 fi
11969
11970
11971 fi
11972
11973
11974 fi
11975
11976 ;;
11977 esac
11978
11979 if test no = "$lt_cv_dlopen"; then
11980 enable_dlopen=no
11981 else
11982 enable_dlopen=yes
11983 fi
11984
11985 case $lt_cv_dlopen in
11986 dlopen)
11987 save_CPPFLAGS=$CPPFLAGS
11988 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11989
11990 save_LDFLAGS=$LDFLAGS
11991 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11992
11993 save_LIBS=$LIBS
11994 LIBS="$lt_cv_dlopen_libs $LIBS"
11995
11996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11997 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11998 if ${lt_cv_dlopen_self+:} false; then :
11999 $as_echo_n "(cached) " >&6
12000 else
12001 if test yes = "$cross_compiling"; then :
12002 lt_cv_dlopen_self=cross
12003 else
12004 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12005 lt_status=$lt_dlunknown
12006 cat > conftest.$ac_ext <<_LT_EOF
12007 #line $LINENO "configure"
12008 #include "confdefs.h"
12009
12010 #if HAVE_DLFCN_H
12011 #include <dlfcn.h>
12012 #endif
12013
12014 #include <stdio.h>
12015
12016 #ifdef RTLD_GLOBAL
12017 # define LT_DLGLOBAL RTLD_GLOBAL
12018 #else
12019 # ifdef DL_GLOBAL
12020 # define LT_DLGLOBAL DL_GLOBAL
12021 # else
12022 # define LT_DLGLOBAL 0
12023 # endif
12024 #endif
12025
12026 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12027 find out it does not work in some platform. */
12028 #ifndef LT_DLLAZY_OR_NOW
12029 # ifdef RTLD_LAZY
12030 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12031 # else
12032 # ifdef DL_LAZY
12033 # define LT_DLLAZY_OR_NOW DL_LAZY
12034 # else
12035 # ifdef RTLD_NOW
12036 # define LT_DLLAZY_OR_NOW RTLD_NOW
12037 # else
12038 # ifdef DL_NOW
12039 # define LT_DLLAZY_OR_NOW DL_NOW
12040 # else
12041 # define LT_DLLAZY_OR_NOW 0
12042 # endif
12043 # endif
12044 # endif
12045 # endif
12046 #endif
12047
12048 /* When -fvisibility=hidden is used, assume the code has been annotated
12049 correspondingly for the symbols needed. */
12050 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12051 int fnord () __attribute__((visibility("default")));
12052 #endif
12053
12054 int fnord () { return 42; }
12055 int main ()
12056 {
12057 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12058 int status = $lt_dlunknown;
12059
12060 if (self)
12061 {
12062 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12063 else
12064 {
12065 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12066 else puts (dlerror ());
12067 }
12068 /* dlclose (self); */
12069 }
12070 else
12071 puts (dlerror ());
12072
12073 return status;
12074 }
12075 _LT_EOF
12076 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12077 (eval $ac_link) 2>&5
12078 ac_status=$?
12079 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12080 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12081 (./conftest; exit; ) >&5 2>/dev/null
12082 lt_status=$?
12083 case x$lt_status in
12084 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12085 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12086 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12087 esac
12088 else :
12089 # compilation failed
12090 lt_cv_dlopen_self=no
12091 fi
12092 fi
12093 rm -fr conftest*
12094
12095
12096 fi
12097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12098 $as_echo "$lt_cv_dlopen_self" >&6; }
12099
12100 if test yes = "$lt_cv_dlopen_self"; then
12101 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12103 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12104 if ${lt_cv_dlopen_self_static+:} false; then :
12105 $as_echo_n "(cached) " >&6
12106 else
12107 if test yes = "$cross_compiling"; then :
12108 lt_cv_dlopen_self_static=cross
12109 else
12110 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12111 lt_status=$lt_dlunknown
12112 cat > conftest.$ac_ext <<_LT_EOF
12113 #line $LINENO "configure"
12114 #include "confdefs.h"
12115
12116 #if HAVE_DLFCN_H
12117 #include <dlfcn.h>
12118 #endif
12119
12120 #include <stdio.h>
12121
12122 #ifdef RTLD_GLOBAL
12123 # define LT_DLGLOBAL RTLD_GLOBAL
12124 #else
12125 # ifdef DL_GLOBAL
12126 # define LT_DLGLOBAL DL_GLOBAL
12127 # else
12128 # define LT_DLGLOBAL 0
12129 # endif
12130 #endif
12131
12132 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12133 find out it does not work in some platform. */
12134 #ifndef LT_DLLAZY_OR_NOW
12135 # ifdef RTLD_LAZY
12136 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12137 # else
12138 # ifdef DL_LAZY
12139 # define LT_DLLAZY_OR_NOW DL_LAZY
12140 # else
12141 # ifdef RTLD_NOW
12142 # define LT_DLLAZY_OR_NOW RTLD_NOW
12143 # else
12144 # ifdef DL_NOW
12145 # define LT_DLLAZY_OR_NOW DL_NOW
12146 # else
12147 # define LT_DLLAZY_OR_NOW 0
12148 # endif
12149 # endif
12150 # endif
12151 # endif
12152 #endif
12153
12154 /* When -fvisibility=hidden is used, assume the code has been annotated
12155 correspondingly for the symbols needed. */
12156 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12157 int fnord () __attribute__((visibility("default")));
12158 #endif
12159
12160 int fnord () { return 42; }
12161 int main ()
12162 {
12163 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12164 int status = $lt_dlunknown;
12165
12166 if (self)
12167 {
12168 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12169 else
12170 {
12171 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12172 else puts (dlerror ());
12173 }
12174 /* dlclose (self); */
12175 }
12176 else
12177 puts (dlerror ());
12178
12179 return status;
12180 }
12181 _LT_EOF
12182 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12183 (eval $ac_link) 2>&5
12184 ac_status=$?
12185 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12186 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12187 (./conftest; exit; ) >&5 2>/dev/null
12188 lt_status=$?
12189 case x$lt_status in
12190 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12191 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12192 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12193 esac
12194 else :
12195 # compilation failed
12196 lt_cv_dlopen_self_static=no
12197 fi
12198 fi
12199 rm -fr conftest*
12200
12201
12202 fi
12203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12204 $as_echo "$lt_cv_dlopen_self_static" >&6; }
12205 fi
12206
12207 CPPFLAGS=$save_CPPFLAGS
12208 LDFLAGS=$save_LDFLAGS
12209 LIBS=$save_LIBS
12210 ;;
12211 esac
12212
12213 case $lt_cv_dlopen_self in
12214 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12215 *) enable_dlopen_self=unknown ;;
12216 esac
12217
12218 case $lt_cv_dlopen_self_static in
12219 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12220 *) enable_dlopen_self_static=unknown ;;
12221 esac
12222 fi
12223
12224
12225
12226
12227
12228
12229
12230
12231
12232
12233
12234
12235
12236
12237
12238
12239
12240 striplib=
12241 old_striplib=
12242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12243 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
12244 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12245 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12246 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12248 $as_echo "yes" >&6; }
12249 else
12250 # FIXME - insert some real tests, host_os isn't really good enough
12251 case $host_os in
12252 darwin*)
12253 if test -n "$STRIP"; then
12254 striplib="$STRIP -x"
12255 old_striplib="$STRIP -S"
12256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12257 $as_echo "yes" >&6; }
12258 else
12259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12260 $as_echo "no" >&6; }
12261 fi
12262 ;;
12263 *)
12264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12265 $as_echo "no" >&6; }
12266 ;;
12267 esac
12268 fi
12269
12270
12271
12272
12273
12274
12275
12276
12277
12278
12279
12280
12281 # Report what library types will actually be built
12282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12283 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12285 $as_echo "$can_build_shared" >&6; }
12286
12287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12288 $as_echo_n "checking whether to build shared libraries... " >&6; }
12289 test no = "$can_build_shared" && enable_shared=no
12290
12291 # On AIX, shared libraries and static libraries use the same namespace, and
12292 # are all built from PIC.
12293 case $host_os in
12294 aix3*)
12295 test yes = "$enable_shared" && enable_static=no
12296 if test -n "$RANLIB"; then
12297 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12298 postinstall_cmds='$RANLIB $lib'
12299 fi
12300 ;;
12301
12302 aix[4-9]*)
12303 if test ia64 != "$host_cpu"; then
12304 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
12305 yes,aix,yes) ;; # shared object as lib.so file only
12306 yes,svr4,*) ;; # shared object as lib.so archive member only
12307 yes,*) enable_static=no ;; # shared object in lib.a archive as well
12308 esac
12309 fi
12310 ;;
12311 esac
12312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12313 $as_echo "$enable_shared" >&6; }
12314
12315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12316 $as_echo_n "checking whether to build static libraries... " >&6; }
12317 # Make sure either enable_shared or enable_static is yes.
12318 test yes = "$enable_shared" || enable_static=yes
12319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12320 $as_echo "$enable_static" >&6; }
12321
12322
12323
12324
12325 fi
12326 ac_ext=c
12327 ac_cpp='$CPP $CPPFLAGS'
12328 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12329 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12330 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12331
12332 CC=$lt_save_CC
12333
12334
12335
12336
12337
12338
12339
12340
12341
12342
12343
12344
12345
12346
12347
12348 ac_config_commands="$ac_config_commands libtool"
12349
12350
12351
12352
12353 # Only expand once:
12354
12355
12356 # By default we simply use the C compiler to build assembly code.
12357
12358 test "${CCAS+set}" = set || CCAS=$CC
12359 test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
12360
12361
12362
12363 depcc="$CCAS" am_compiler_list=
12364
12365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
12366 $as_echo_n "checking dependency style of $depcc... " >&6; }
12367 if ${am_cv_CCAS_dependencies_compiler_type+:} false; then :
12368 $as_echo_n "(cached) " >&6
12369 else
12370 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
12371 # We make a subdir and do the tests there. Otherwise we can end up
12372 # making bogus files that we don't know about and never remove. For
12373 # instance it was reported that on HP-UX the gcc test will end up
12374 # making a dummy file named 'D' -- because '-MD' means "put the output
12375 # in D".
12376 rm -rf conftest.dir
12377 mkdir conftest.dir
12378 # Copy depcomp to subdir because otherwise we won't find it if we're
12379 # using a relative directory.
12380 cp "$am_depcomp" conftest.dir
12381 cd conftest.dir
12382 # We will build objects and dependencies in a subdirectory because
12383 # it helps to detect inapplicable dependency modes. For instance
12384 # both Tru64's cc and ICC support -MD to output dependencies as a
12385 # side effect of compilation, but ICC will put the dependencies in
12386 # the current directory while Tru64 will put them in the object
12387 # directory.
12388 mkdir sub
12389
12390 am_cv_CCAS_dependencies_compiler_type=none
12391 if test "$am_compiler_list" = ""; then
12392 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
12393 fi
12394 am__universal=false
12395
12396
12397 for depmode in $am_compiler_list; do
12398 # Setup a source with many dependencies, because some compilers
12399 # like to wrap large dependency lists on column 80 (with \), and
12400 # we should not choose a depcomp mode which is confused by this.
12401 #
12402 # We need to recreate these files for each test, as the compiler may
12403 # overwrite some of them when testing with obscure command lines.
12404 # This happens at least with the AIX C compiler.
12405 : > sub/conftest.c
12406 for i in 1 2 3 4 5 6; do
12407 echo '#include "conftst'$i'.h"' >> sub/conftest.c
12408 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
12409 # Solaris 10 /bin/sh.
12410 echo '/* dummy */' > sub/conftst$i.h
12411 done
12412 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
12413
12414 # We check with '-c' and '-o' for the sake of the "dashmstdout"
12415 # mode. It turns out that the SunPro C++ compiler does not properly
12416 # handle '-M -o', and we need to detect this. Also, some Intel
12417 # versions had trouble with output in subdirs.
12418 am__obj=sub/conftest.${OBJEXT-o}
12419 am__minus_obj="-o $am__obj"
12420 case $depmode in
12421 gcc)
12422 # This depmode causes a compiler race in universal mode.
12423 test "$am__universal" = false || continue
12424 ;;
12425 nosideeffect)
12426 # After this tag, mechanisms are not by side-effect, so they'll
12427 # only be used when explicitly requested.
12428 if test "x$enable_dependency_tracking" = xyes; then
12429 continue
12430 else
12431 break
12432 fi
12433 ;;
12434 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
12435 # This compiler won't grok '-c -o', but also, the minuso test has
12436 # not run yet. These depmodes are late enough in the game, and
12437 # so weak that their functioning should not be impacted.
12438 am__obj=conftest.${OBJEXT-o}
12439 am__minus_obj=
12440 ;;
12441 none) break ;;
12442 esac
12443 if depmode=$depmode \
12444 source=sub/conftest.c object=$am__obj \
12445 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
12446 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
12447 >/dev/null 2>conftest.err &&
12448 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
12449 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
12450 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
12451 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
12452 # icc doesn't choke on unknown options, it will just issue warnings
12453 # or remarks (even with -Werror). So we grep stderr for any message
12454 # that says an option was ignored or not supported.
12455 # When given -MP, icc 7.0 and 7.1 complain thusly:
12456 # icc: Command line warning: ignoring option '-M'; no argument required
12457 # The diagnosis changed in icc 8.0:
12458 # icc: Command line remark: option '-MP' not supported
12459 if (grep 'ignoring option' conftest.err ||
12460 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
12461 am_cv_CCAS_dependencies_compiler_type=$depmode
12462 break
12463 fi
12464 fi
12465 done
12466
12467 cd ..
12468 rm -rf conftest.dir
12469 else
12470 am_cv_CCAS_dependencies_compiler_type=none
12471 fi
12472
12473 fi
12474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CCAS_dependencies_compiler_type" >&5
12475 $as_echo "$am_cv_CCAS_dependencies_compiler_type" >&6; }
12476 CCASDEPMODE=depmode=$am_cv_CCAS_dependencies_compiler_type
12477
12478 if
12479 test "x$enable_dependency_tracking" != xno \
12480 && test "$am_cv_CCAS_dependencies_compiler_type" = gcc3; then
12481 am__fastdepCCAS_TRUE=
12482 am__fastdepCCAS_FALSE='#'
12483 else
12484 am__fastdepCCAS_TRUE='#'
12485 am__fastdepCCAS_FALSE=
12486 fi
12487
12488
12489
12490
12491
12492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking zfs author" >&5
12493 $as_echo_n "checking zfs author... " >&6; }
12494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZFS_META_AUTHOR" >&5
12495 $as_echo "$ZFS_META_AUTHOR" >&6; }
12496
12497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking zfs license" >&5
12498 $as_echo_n "checking zfs license... " >&6; }
12499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZFS_META_LICENSE" >&5
12500 $as_echo "$ZFS_META_LICENSE" >&6; }
12501
12502
12503
12504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linux distribution" >&5
12505 $as_echo_n "checking linux distribution... " >&6; }
12506 if test -f /etc/toss-release ; then
12507 VENDOR=toss ;
12508 elif test -f /etc/fedora-release ; then
12509 VENDOR=fedora ;
12510 elif test -f /etc/redhat-release ; then
12511 VENDOR=redhat ;
12512 elif test -f /etc/gentoo-release ; then
12513 VENDOR=gentoo ;
12514 elif test -f /etc/arch-release ; then
12515 VENDOR=arch ;
12516 elif test -f /etc/SuSE-release ; then
12517 VENDOR=sles ;
12518 elif test -f /etc/slackware-version ; then
12519 VENDOR=slackware ;
12520 elif test -f /etc/lunar.release ; then
12521 VENDOR=lunar ;
12522 elif test -f /etc/lsb-release ; then
12523 VENDOR=ubuntu ;
12524 elif test -f /etc/debian_version ; then
12525 VENDOR=debian ;
12526 elif test -f /etc/alpine-release ; then
12527 VENDOR=alpine ;
12528 else
12529 VENDOR= ;
12530 fi
12531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $VENDOR" >&5
12532 $as_echo "$VENDOR" >&6; }
12533
12534
12535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking default package type" >&5
12536 $as_echo_n "checking default package type... " >&6; }
12537 case "$VENDOR" in
12538 toss) DEFAULT_PACKAGE=rpm ;;
12539 redhat) DEFAULT_PACKAGE=rpm ;;
12540 fedora) DEFAULT_PACKAGE=rpm ;;
12541 gentoo) DEFAULT_PACKAGE=tgz ;;
12542 alpine) DEFAULT_PACKAGE=tgz ;;
12543 arch) DEFAULT_PACKAGE=tgz ;;
12544 sles) DEFAULT_PACKAGE=rpm ;;
12545 slackware) DEFAULT_PACKAGE=tgz ;;
12546 lunar) DEFAULT_PACKAGE=tgz ;;
12547 ubuntu) DEFAULT_PACKAGE=deb ;;
12548 debian) DEFAULT_PACKAGE=deb ;;
12549 *) DEFAULT_PACKAGE=rpm ;;
12550 esac
12551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEFAULT_PACKAGE" >&5
12552 $as_echo "$DEFAULT_PACKAGE" >&6; }
12553
12554
12555 DEFAULT_INIT_DIR=$sysconfdir/init.d
12556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking default init directory" >&5
12557 $as_echo_n "checking default init directory... " >&6; }
12558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEFAULT_INIT_DIR" >&5
12559 $as_echo "$DEFAULT_INIT_DIR" >&6; }
12560
12561
12562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking default init script type" >&5
12563 $as_echo_n "checking default init script type... " >&6; }
12564 case "$VENDOR" in
12565 toss) DEFAULT_INIT_SCRIPT=redhat ;;
12566 redhat) DEFAULT_INIT_SCRIPT=redhat ;;
12567 fedora) DEFAULT_INIT_SCRIPT=fedora ;;
12568 gentoo) DEFAULT_INIT_SCRIPT=openrc ;;
12569 alpine) DEFAULT_INIT_SCRIPT=openrc ;;
12570 arch) DEFAULT_INIT_SCRIPT=lsb ;;
12571 sles) DEFAULT_INIT_SCRIPT=lsb ;;
12572 slackware) DEFAULT_INIT_SCRIPT=lsb ;;
12573 lunar) DEFAULT_INIT_SCRIPT=lunar ;;
12574 ubuntu) DEFAULT_INIT_SCRIPT=lsb ;;
12575 debian) DEFAULT_INIT_SCRIPT=lsb ;;
12576 *) DEFAULT_INIT_SCRIPT=lsb ;;
12577 esac
12578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEFAULT_INIT_SCRIPT" >&5
12579 $as_echo "$DEFAULT_INIT_SCRIPT" >&6; }
12580
12581
12582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking default init config direectory" >&5
12583 $as_echo_n "checking default init config direectory... " >&6; }
12584 case "$VENDOR" in
12585 alpine) DEFAULT_INITCONF_DIR=/etc/conf.d ;;
12586 gentoo) DEFAULT_INITCONF_DIR=/etc/conf.d ;;
12587 toss) DEFAULT_INITCONF_DIR=/etc/sysconfig ;;
12588 redhat) DEFAULT_INITCONF_DIR=/etc/sysconfig ;;
12589 fedora) DEFAULT_INITCONF_DIR=/etc/sysconfig ;;
12590 sles) DEFAULT_INITCONF_DIR=/etc/sysconfig ;;
12591 ubuntu) DEFAULT_INITCONF_DIR=/etc/default ;;
12592 debian) DEFAULT_INITCONF_DIR=/etc/default ;;
12593 *) DEFAULT_INITCONF_DIR=/etc/default ;;
12594 esac
12595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEFAULT_INITCONF_DIR" >&5
12596 $as_echo "$DEFAULT_INITCONF_DIR" >&6; }
12597
12598
12599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether initramfs-tools is available" >&5
12600 $as_echo_n "checking whether initramfs-tools is available... " >&6; }
12601 if test -d /usr/share/initramfs-tools ; then
12602 DEFINE_INITRAMFS='--define "_initramfs 1"'
12603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12604 $as_echo "yes" >&6; }
12605 else
12606 DEFINE_INITRAMFS=''
12607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12608 $as_echo "no" >&6; }
12609 fi
12610
12611
12612
12613 RPM=rpm
12614 RPMBUILD=rpmbuild
12615
12616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $RPM is available" >&5
12617 $as_echo_n "checking whether $RPM is available... " >&6; }
12618 if tmp=$($RPM --version 2>/dev/null); then :
12619
12620 RPM_VERSION=$(echo $tmp | $AWK '/RPM/ { print $3 }')
12621 HAVE_RPM=yes
12622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_RPM ($RPM_VERSION)" >&5
12623 $as_echo "$HAVE_RPM ($RPM_VERSION)" >&6; }
12624
12625 else
12626
12627 HAVE_RPM=no
12628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_RPM" >&5
12629 $as_echo "$HAVE_RPM" >&6; }
12630
12631 fi
12632
12633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $RPMBUILD is available" >&5
12634 $as_echo_n "checking whether $RPMBUILD is available... " >&6; }
12635 if tmp=$($RPMBUILD --version 2>/dev/null); then :
12636
12637 RPMBUILD_VERSION=$(echo $tmp | $AWK '/RPM/ { print $3 }')
12638 HAVE_RPMBUILD=yes
12639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_RPMBUILD ($RPMBUILD_VERSION)" >&5
12640 $as_echo "$HAVE_RPMBUILD ($RPMBUILD_VERSION)" >&6; }
12641
12642 else
12643
12644 HAVE_RPMBUILD=no
12645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_RPMBUILD" >&5
12646 $as_echo "$HAVE_RPMBUILD" >&6; }
12647
12648 fi
12649
12650 RPM_DEFINE_COMMON='--define "$(DEBUG_ZFS) 1"'
12651 RPM_DEFINE_UTIL='--define "_dracutdir $(dracutdir)" --define "_udevdir $(udevdir)" --define "_udevruledir $(udevruledir)" --define "_initconfdir $(DEFAULT_INITCONF_DIR)" $(DEFINE_INITRAMFS)'
12652 RPM_DEFINE_KMOD='--define "kernels $(LINUX_VERSION)" --define "require_spldir $(SPL)" --define "require_splobj $(SPL_OBJ)" --define "ksrc $(LINUX)" --define "kobj $(LINUX_OBJ)"'
12653 RPM_DEFINE_DKMS=
12654
12655 SRPM_DEFINE_COMMON='--define "build_src_rpm 1"'
12656 SRPM_DEFINE_UTIL=
12657 SRPM_DEFINE_KMOD=
12658 SRPM_DEFINE_DKMS=
12659
12660 RPM_SPEC_DIR="rpm/generic"
12661
12662 # Check whether --with-spec was given.
12663 if test "${with_spec+set}" = set; then :
12664 withval=$with_spec; RPM_SPEC_DIR="rpm/$withval"
12665 fi
12666
12667
12668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether spec files are available" >&5
12669 $as_echo_n "checking whether spec files are available... " >&6; }
12670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($RPM_SPEC_DIR/*.spec.in)" >&5
12671 $as_echo "yes ($RPM_SPEC_DIR/*.spec.in)" >&6; }
12672
12673
12674
12675
12676
12677
12678
12679
12680
12681
12682
12683
12684
12685
12686
12687
12688
12689
12690
12691
12692 DPKG=dpkg
12693 DPKGBUILD=dpkg-buildpackage
12694
12695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $DPKG is available" >&5
12696 $as_echo_n "checking whether $DPKG is available... " >&6; }
12697 if tmp=$($DPKG --version 2>/dev/null); then :
12698
12699 DPKG_VERSION=$(echo $tmp | $AWK '/Debian/ { print $7 }')
12700 HAVE_DPKG=yes
12701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_DPKG ($DPKG_VERSION)" >&5
12702 $as_echo "$HAVE_DPKG ($DPKG_VERSION)" >&6; }
12703
12704 else
12705
12706 HAVE_DPKG=no
12707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_DPKG" >&5
12708 $as_echo "$HAVE_DPKG" >&6; }
12709
12710 fi
12711
12712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $DPKGBUILD is available" >&5
12713 $as_echo_n "checking whether $DPKGBUILD is available... " >&6; }
12714 if tmp=$($DPKGBUILD --version 2>/dev/null); then :
12715
12716 DPKGBUILD_VERSION=$(echo $tmp | \
12717 $AWK '/Debian/ { print $4 }' | cut -f-4 -d'.')
12718 HAVE_DPKGBUILD=yes
12719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_DPKGBUILD ($DPKGBUILD_VERSION)" >&5
12720 $as_echo "$HAVE_DPKGBUILD ($DPKGBUILD_VERSION)" >&6; }
12721
12722 else
12723
12724 HAVE_DPKGBUILD=no
12725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_DPKGBUILD" >&5
12726 $as_echo "$HAVE_DPKGBUILD" >&6; }
12727
12728 fi
12729
12730
12731
12732
12733
12734
12735
12736
12737
12738
12739 ALIEN=alien
12740
12741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ALIEN is available" >&5
12742 $as_echo_n "checking whether $ALIEN is available... " >&6; }
12743 if tmp=$($ALIEN --version 2>/dev/null); then :
12744
12745 ALIEN_VERSION=$(echo $tmp | $AWK '{ print $3 }')
12746 HAVE_ALIEN=yes
12747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_ALIEN ($ALIEN_VERSION)" >&5
12748 $as_echo "$HAVE_ALIEN ($ALIEN_VERSION)" >&6; }
12749
12750 else
12751
12752 HAVE_ALIEN=no
12753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_ALIEN" >&5
12754 $as_echo "$HAVE_ALIEN" >&6; }
12755
12756 fi
12757
12758
12759
12760
12761
12762
12763
12764 ZFS_CONFIG=all
12765
12766 # Check whether --with-config was given.
12767 if test "${with_config+set}" = set; then :
12768 withval=$with_config; ZFS_CONFIG="$withval"
12769 fi
12770
12771 # Check whether --enable-linux-builtin was given.
12772 if test "${enable_linux_builtin+set}" = set; then :
12773 enableval=$enable_linux_builtin;
12774 else
12775 enable_linux_builtin=no
12776 fi
12777
12778
12779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking zfs config" >&5
12780 $as_echo_n "checking zfs config... " >&6; }
12781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZFS_CONFIG" >&5
12782 $as_echo "$ZFS_CONFIG" >&6; };
12783
12784
12785
12786
12787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -Wno-unused-but-set-variable support" >&5
12788 $as_echo_n "checking for -Wno-unused-but-set-variable support... " >&6; }
12789
12790 saved_flags="$CFLAGS"
12791 CFLAGS="$CFLAGS -Wunused-but-set-variable"
12792
12793 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12794 /* end confdefs.h. */
12795
12796 int
12797 main ()
12798 {
12799
12800 ;
12801 return 0;
12802 }
12803 _ACEOF
12804 if ac_fn_c_try_compile "$LINENO"; then :
12805
12806 NO_UNUSED_BUT_SET_VARIABLE=-Wno-unused-but-set-variable
12807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12808 $as_echo "yes" >&6; }
12809
12810 else
12811
12812 NO_UNUSED_BUT_SET_VARIABLE=
12813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12814 $as_echo "no" >&6; }
12815
12816 fi
12817 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12818
12819 CFLAGS="$saved_flags"
12820
12821
12822
12823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -Wno-bool-compare support" >&5
12824 $as_echo_n "checking for -Wno-bool-compare support... " >&6; }
12825
12826 saved_flags="$CFLAGS"
12827 CFLAGS="$CFLAGS -Wbool-compare"
12828
12829 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12830 /* end confdefs.h. */
12831
12832 int
12833 main ()
12834 {
12835
12836 ;
12837 return 0;
12838 }
12839 _ACEOF
12840 if ac_fn_c_try_compile "$LINENO"; then :
12841
12842 NO_BOOL_COMPARE=-Wno-bool-compare
12843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12844 $as_echo "yes" >&6; }
12845
12846 else
12847
12848 NO_BOOL_COMPARE=
12849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12850 $as_echo "no" >&6; }
12851
12852 fi
12853 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12854
12855 CFLAGS="$saved_flags"
12856
12857
12858
12859 case "$host_cpu" in
12860 x86_64 | x86 | i686)
12861
12862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether host toolchain supports SSE" >&5
12863 $as_echo_n "checking whether host toolchain supports SSE... " >&6; }
12864
12865 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12866 /* end confdefs.h. */
12867
12868 void main()
12869 {
12870 __asm__ __volatile__("xorps %xmm0, %xmm1");
12871 }
12872
12873 _ACEOF
12874 if ac_fn_c_try_link "$LINENO"; then :
12875
12876
12877 $as_echo "#define HAVE_SSE 1" >>confdefs.h
12878
12879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12880 $as_echo "yes" >&6; }
12881
12882 else
12883
12884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12885 $as_echo "no" >&6; }
12886
12887 fi
12888 rm -f core conftest.err conftest.$ac_objext \
12889 conftest$ac_exeext conftest.$ac_ext
12890
12891
12892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether host toolchain supports SSE2" >&5
12893 $as_echo_n "checking whether host toolchain supports SSE2... " >&6; }
12894
12895 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12896 /* end confdefs.h. */
12897
12898 void main()
12899 {
12900 __asm__ __volatile__("pxor %xmm0, %xmm1");
12901 }
12902
12903 _ACEOF
12904 if ac_fn_c_try_link "$LINENO"; then :
12905
12906
12907 $as_echo "#define HAVE_SSE2 1" >>confdefs.h
12908
12909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12910 $as_echo "yes" >&6; }
12911
12912 else
12913
12914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12915 $as_echo "no" >&6; }
12916
12917 fi
12918 rm -f core conftest.err conftest.$ac_objext \
12919 conftest$ac_exeext conftest.$ac_ext
12920
12921
12922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether host toolchain supports SSE3" >&5
12923 $as_echo_n "checking whether host toolchain supports SSE3... " >&6; }
12924
12925 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12926 /* end confdefs.h. */
12927
12928 void main()
12929 {
12930 char v[16];
12931 __asm__ __volatile__("lddqu %0,%%xmm0" :: "m"(v[0]));
12932 }
12933
12934 _ACEOF
12935 if ac_fn_c_try_link "$LINENO"; then :
12936
12937
12938 $as_echo "#define HAVE_SSE3 1" >>confdefs.h
12939
12940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12941 $as_echo "yes" >&6; }
12942
12943 else
12944
12945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12946 $as_echo "no" >&6; }
12947
12948 fi
12949 rm -f core conftest.err conftest.$ac_objext \
12950 conftest$ac_exeext conftest.$ac_ext
12951
12952
12953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether host toolchain supports SSSE3" >&5
12954 $as_echo_n "checking whether host toolchain supports SSSE3... " >&6; }
12955
12956 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12957 /* end confdefs.h. */
12958
12959 void main()
12960 {
12961 __asm__ __volatile__("pshufb %xmm0,%xmm1");
12962 }
12963
12964 _ACEOF
12965 if ac_fn_c_try_link "$LINENO"; then :
12966
12967
12968 $as_echo "#define HAVE_SSSE3 1" >>confdefs.h
12969
12970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12971 $as_echo "yes" >&6; }
12972
12973 else
12974
12975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12976 $as_echo "no" >&6; }
12977
12978 fi
12979 rm -f core conftest.err conftest.$ac_objext \
12980 conftest$ac_exeext conftest.$ac_ext
12981
12982
12983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether host toolchain supports SSE4.1" >&5
12984 $as_echo_n "checking whether host toolchain supports SSE4.1... " >&6; }
12985
12986 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12987 /* end confdefs.h. */
12988
12989 void main()
12990 {
12991 __asm__ __volatile__("pmaxsb %xmm0,%xmm1");
12992 }
12993
12994 _ACEOF
12995 if ac_fn_c_try_link "$LINENO"; then :
12996
12997
12998 $as_echo "#define HAVE_SSE4_1 1" >>confdefs.h
12999
13000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13001 $as_echo "yes" >&6; }
13002
13003 else
13004
13005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13006 $as_echo "no" >&6; }
13007
13008 fi
13009 rm -f core conftest.err conftest.$ac_objext \
13010 conftest$ac_exeext conftest.$ac_ext
13011
13012
13013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether host toolchain supports SSE4.2" >&5
13014 $as_echo_n "checking whether host toolchain supports SSE4.2... " >&6; }
13015
13016 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13017 /* end confdefs.h. */
13018
13019 void main()
13020 {
13021 __asm__ __volatile__("pcmpgtq %xmm0, %xmm1");
13022 }
13023
13024 _ACEOF
13025 if ac_fn_c_try_link "$LINENO"; then :
13026
13027
13028 $as_echo "#define HAVE_SSE4_2 1" >>confdefs.h
13029
13030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13031 $as_echo "yes" >&6; }
13032
13033 else
13034
13035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13036 $as_echo "no" >&6; }
13037
13038 fi
13039 rm -f core conftest.err conftest.$ac_objext \
13040 conftest$ac_exeext conftest.$ac_ext
13041
13042
13043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether host toolchain supports AVX" >&5
13044 $as_echo_n "checking whether host toolchain supports AVX... " >&6; }
13045
13046 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13047 /* end confdefs.h. */
13048
13049 void main()
13050 {
13051 char v[32];
13052 __asm__ __volatile__("vmovdqa %0,%%ymm0" :: "m"(v[0]));
13053 }
13054
13055 _ACEOF
13056 if ac_fn_c_try_link "$LINENO"; then :
13057
13058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13059 $as_echo "yes" >&6; }
13060
13061 $as_echo "#define HAVE_AVX 1" >>confdefs.h
13062
13063
13064 else
13065
13066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13067 $as_echo "no" >&6; }
13068
13069 fi
13070 rm -f core conftest.err conftest.$ac_objext \
13071 conftest$ac_exeext conftest.$ac_ext
13072
13073
13074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether host toolchain supports AVX2" >&5
13075 $as_echo_n "checking whether host toolchain supports AVX2... " >&6; }
13076
13077 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13078 /* end confdefs.h. */
13079
13080
13081 void main()
13082 {
13083 __asm__ __volatile__("vpshufb %ymm0,%ymm1,%ymm2");
13084 }
13085
13086 _ACEOF
13087 if ac_fn_c_try_link "$LINENO"; then :
13088
13089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13090 $as_echo "yes" >&6; }
13091
13092 $as_echo "#define HAVE_AVX2 1" >>confdefs.h
13093
13094
13095 else
13096
13097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13098 $as_echo "no" >&6; }
13099
13100 fi
13101 rm -f core conftest.err conftest.$ac_objext \
13102 conftest$ac_exeext conftest.$ac_ext
13103
13104
13105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether host toolchain supports AVX512F" >&5
13106 $as_echo_n "checking whether host toolchain supports AVX512F... " >&6; }
13107
13108 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13109 /* end confdefs.h. */
13110
13111
13112 void main()
13113 {
13114 __asm__ __volatile__("vpandd %zmm0,%zmm1,%zmm2");
13115 }
13116
13117 _ACEOF
13118 if ac_fn_c_try_link "$LINENO"; then :
13119
13120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13121 $as_echo "yes" >&6; }
13122
13123 $as_echo "#define HAVE_AVX512F 1" >>confdefs.h
13124
13125
13126 else
13127
13128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13129 $as_echo "no" >&6; }
13130
13131 fi
13132 rm -f core conftest.err conftest.$ac_objext \
13133 conftest$ac_exeext conftest.$ac_ext
13134
13135
13136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether host toolchain supports AVX512CD" >&5
13137 $as_echo_n "checking whether host toolchain supports AVX512CD... " >&6; }
13138
13139 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13140 /* end confdefs.h. */
13141
13142
13143 void main()
13144 {
13145 __asm__ __volatile__("vplzcntd %zmm0,%zmm1");
13146 }
13147
13148 _ACEOF
13149 if ac_fn_c_try_link "$LINENO"; then :
13150
13151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13152 $as_echo "yes" >&6; }
13153
13154 $as_echo "#define HAVE_AVX512CD 1" >>confdefs.h
13155
13156
13157 else
13158
13159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13160 $as_echo "no" >&6; }
13161
13162 fi
13163 rm -f core conftest.err conftest.$ac_objext \
13164 conftest$ac_exeext conftest.$ac_ext
13165
13166
13167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether host toolchain supports AVX512DQ" >&5
13168 $as_echo_n "checking whether host toolchain supports AVX512DQ... " >&6; }
13169
13170 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13171 /* end confdefs.h. */
13172
13173
13174 void main()
13175 {
13176 __asm__ __volatile__("vandpd %zmm0,%zmm1,%zmm2");
13177 }
13178
13179 _ACEOF
13180 if ac_fn_c_try_link "$LINENO"; then :
13181
13182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13183 $as_echo "yes" >&6; }
13184
13185 $as_echo "#define HAVE_AVX512DQ 1" >>confdefs.h
13186
13187
13188 else
13189
13190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13191 $as_echo "no" >&6; }
13192
13193 fi
13194 rm -f core conftest.err conftest.$ac_objext \
13195 conftest$ac_exeext conftest.$ac_ext
13196
13197
13198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether host toolchain supports AVX512BW" >&5
13199 $as_echo_n "checking whether host toolchain supports AVX512BW... " >&6; }
13200
13201 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13202 /* end confdefs.h. */
13203
13204
13205 void main()
13206 {
13207 __asm__ __volatile__("vpshufb %zmm0,%zmm1,%zmm2");
13208 }
13209
13210 _ACEOF
13211 if ac_fn_c_try_link "$LINENO"; then :
13212
13213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13214 $as_echo "yes" >&6; }
13215
13216 $as_echo "#define HAVE_AVX512BW 1" >>confdefs.h
13217
13218
13219 else
13220
13221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13222 $as_echo "no" >&6; }
13223
13224 fi
13225 rm -f core conftest.err conftest.$ac_objext \
13226 conftest$ac_exeext conftest.$ac_ext
13227
13228
13229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether host toolchain supports AVX512IFMA" >&5
13230 $as_echo_n "checking whether host toolchain supports AVX512IFMA... " >&6; }
13231
13232 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13233 /* end confdefs.h. */
13234
13235
13236 void main()
13237 {
13238 __asm__ __volatile__("vpmadd52luq %zmm0,%zmm1,%zmm2");
13239 }
13240
13241 _ACEOF
13242 if ac_fn_c_try_link "$LINENO"; then :
13243
13244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13245 $as_echo "yes" >&6; }
13246
13247 $as_echo "#define HAVE_AVX512IFMA 1" >>confdefs.h
13248
13249
13250 else
13251
13252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13253 $as_echo "no" >&6; }
13254
13255 fi
13256 rm -f core conftest.err conftest.$ac_objext \
13257 conftest$ac_exeext conftest.$ac_ext
13258
13259
13260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether host toolchain supports AVX512VBMI" >&5
13261 $as_echo_n "checking whether host toolchain supports AVX512VBMI... " >&6; }
13262
13263 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13264 /* end confdefs.h. */
13265
13266
13267 void main()
13268 {
13269 __asm__ __volatile__("vpermb %zmm0,%zmm1,%zmm2");
13270 }
13271
13272 _ACEOF
13273 if ac_fn_c_try_link "$LINENO"; then :
13274
13275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13276 $as_echo "yes" >&6; }
13277
13278 $as_echo "#define HAVE_AVX512VBMI 1" >>confdefs.h
13279
13280
13281 else
13282
13283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13284 $as_echo "no" >&6; }
13285
13286 fi
13287 rm -f core conftest.err conftest.$ac_objext \
13288 conftest$ac_exeext conftest.$ac_ext
13289
13290
13291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether host toolchain supports AVX512PF" >&5
13292 $as_echo_n "checking whether host toolchain supports AVX512PF... " >&6; }
13293
13294 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13295 /* end confdefs.h. */
13296
13297
13298 void main()
13299 {
13300 __asm__ __volatile__("vgatherpf0dps (%rsi,%zmm0,4){%k1}");
13301 }
13302
13303 _ACEOF
13304 if ac_fn_c_try_link "$LINENO"; then :
13305
13306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13307 $as_echo "yes" >&6; }
13308
13309 $as_echo "#define HAVE_AVX512PF 1" >>confdefs.h
13310
13311
13312 else
13313
13314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13315 $as_echo "no" >&6; }
13316
13317 fi
13318 rm -f core conftest.err conftest.$ac_objext \
13319 conftest$ac_exeext conftest.$ac_ext
13320
13321
13322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether host toolchain supports AVX512ER" >&5
13323 $as_echo_n "checking whether host toolchain supports AVX512ER... " >&6; }
13324
13325 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13326 /* end confdefs.h. */
13327
13328
13329 void main()
13330 {
13331 __asm__ __volatile__("vexp2pd %zmm0,%zmm1");
13332 }
13333
13334 _ACEOF
13335 if ac_fn_c_try_link "$LINENO"; then :
13336
13337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13338 $as_echo "yes" >&6; }
13339
13340 $as_echo "#define HAVE_AVX512ER 1" >>confdefs.h
13341
13342
13343 else
13344
13345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13346 $as_echo "no" >&6; }
13347
13348 fi
13349 rm -f core conftest.err conftest.$ac_objext \
13350 conftest$ac_exeext conftest.$ac_ext
13351
13352
13353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether host toolchain supports AVX512VL" >&5
13354 $as_echo_n "checking whether host toolchain supports AVX512VL... " >&6; }
13355
13356 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13357 /* end confdefs.h. */
13358
13359
13360 void main()
13361 {
13362 __asm__ __volatile__("vpabsq %zmm0,%zmm1");
13363 }
13364
13365 _ACEOF
13366 if ac_fn_c_try_link "$LINENO"; then :
13367
13368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13369 $as_echo "yes" >&6; }
13370
13371 $as_echo "#define HAVE_AVX512VL 1" >>confdefs.h
13372
13373
13374 else
13375
13376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13377 $as_echo "no" >&6; }
13378
13379 fi
13380 rm -f core conftest.err conftest.$ac_objext \
13381 conftest$ac_exeext conftest.$ac_ext
13382
13383 ;;
13384 esac
13385
13386
13387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for target asm dir" >&5
13388 $as_echo_n "checking for target asm dir... " >&6; }
13389 TARGET_ARCH=`echo ${target_cpu} | sed -e s/i.86/i386/`
13390
13391 case $TARGET_ARCH in
13392 i386|x86_64)
13393 TARGET_ASM_DIR=asm-${TARGET_ARCH}
13394 ;;
13395 *)
13396 TARGET_ASM_DIR=asm-generic
13397 ;;
13398 esac
13399
13400
13401 if test $TARGET_ASM_DIR = asm-x86_64; then
13402 TARGET_ASM_X86_64_TRUE=
13403 TARGET_ASM_X86_64_FALSE='#'
13404 else
13405 TARGET_ASM_X86_64_TRUE='#'
13406 TARGET_ASM_X86_64_FALSE=
13407 fi
13408
13409 if test $TARGET_ASM_DIR = asm-i386; then
13410 TARGET_ASM_I386_TRUE=
13411 TARGET_ASM_I386_FALSE='#'
13412 else
13413 TARGET_ASM_I386_TRUE='#'
13414 TARGET_ASM_I386_FALSE=
13415 fi
13416
13417 if test $TARGET_ASM_DIR = asm-generic; then
13418 TARGET_ASM_GENERIC_TRUE=
13419 TARGET_ASM_GENERIC_FALSE='#'
13420 else
13421 TARGET_ASM_GENERIC_TRUE='#'
13422 TARGET_ASM_GENERIC_FALSE=
13423 fi
13424
13425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TARGET_ASM_DIR" >&5
13426 $as_echo "$TARGET_ASM_DIR" >&6; }
13427
13428
13429
13430 case "$ZFS_CONFIG" in
13431 kernel)
13432
13433
13434 # Check whether --with-linux was given.
13435 if test "${with_linux+set}" = set; then :
13436 withval=$with_linux; kernelsrc="$withval"
13437 fi
13438
13439
13440
13441 # Check whether --with-linux-obj was given.
13442 if test "${with_linux_obj+set}" = set; then :
13443 withval=$with_linux_obj; kernelbuild="$withval"
13444 fi
13445
13446
13447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking kernel source directory" >&5
13448 $as_echo_n "checking kernel source directory... " >&6; }
13449 if test -z "$kernelsrc"; then :
13450
13451 if test -e "/lib/modules/$(uname -r)/source"; then :
13452
13453 headersdir="/lib/modules/$(uname -r)/source"
13454 sourcelink=$(readlink -f "$headersdir")
13455
13456 elif test -e "/lib/modules/$(uname -r)/build"; then :
13457
13458 headersdir="/lib/modules/$(uname -r)/build"
13459 sourcelink=$(readlink -f "$headersdir")
13460
13461 else
13462
13463 sourcelink=$(ls -1d /usr/src/kernels/* \
13464 /usr/src/linux-* \
13465 2>/dev/null | grep -v obj | tail -1)
13466
13467 fi
13468
13469 if test -n "$sourcelink" && test -e ${sourcelink}; then :
13470
13471 kernelsrc=`readlink -f ${sourcelink}`
13472
13473 else
13474
13475 kernelsrc="Not found"
13476
13477 fi
13478
13479 else
13480
13481 if test "$kernelsrc" = "NONE"; then :
13482
13483 kernsrcver=NONE
13484
13485 fi
13486 withlinux=yes
13487
13488 fi
13489
13490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kernelsrc" >&5
13491 $as_echo "$kernelsrc" >&6; }
13492 if test ! -d "$kernelsrc"; then :
13493
13494 as_fn_error $? "
13495 *** Please make sure the kernel devel package for your distribution
13496 *** is installed and then try again. If that fails, you can specify the
13497 *** location of the kernel source with the '--with-linux=PATH' option." "$LINENO" 5
13498
13499 fi
13500
13501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking kernel build directory" >&5
13502 $as_echo_n "checking kernel build directory... " >&6; }
13503 if test -z "$kernelbuild"; then :
13504
13505 if test x$withlinux != xyes -a -e "/lib/modules/$(uname -r)/build"; then :
13506
13507 kernelbuild=`readlink -f /lib/modules/$(uname -r)/build`
13508
13509 elif test -d ${kernelsrc}-obj/${target_cpu}/${target_cpu}; then :
13510
13511 kernelbuild=${kernelsrc}-obj/${target_cpu}/${target_cpu}
13512
13513 elif test -d ${kernelsrc}-obj/${target_cpu}/default; then :
13514
13515 kernelbuild=${kernelsrc}-obj/${target_cpu}/default
13516
13517 elif test -d `dirname ${kernelsrc}`/build-${target_cpu}; then :
13518
13519 kernelbuild=`dirname ${kernelsrc}`/build-${target_cpu}
13520
13521 else
13522
13523 kernelbuild=${kernelsrc}
13524
13525 fi
13526
13527 fi
13528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kernelbuild" >&5
13529 $as_echo "$kernelbuild" >&6; }
13530
13531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking kernel source version" >&5
13532 $as_echo_n "checking kernel source version... " >&6; }
13533 utsrelease1=$kernelbuild/include/linux/version.h
13534 utsrelease2=$kernelbuild/include/linux/utsrelease.h
13535 utsrelease3=$kernelbuild/include/generated/utsrelease.h
13536 if test -r $utsrelease1 && fgrep -q UTS_RELEASE $utsrelease1; then :
13537
13538 utsrelease=linux/version.h
13539
13540 elif test -r $utsrelease2 && fgrep -q UTS_RELEASE $utsrelease2; then :
13541
13542 utsrelease=linux/utsrelease.h
13543
13544 elif test -r $utsrelease3 && fgrep -q UTS_RELEASE $utsrelease3; then :
13545
13546 utsrelease=generated/utsrelease.h
13547
13548 fi
13549
13550 if test "$utsrelease"; then :
13551
13552 kernsrcver=`(echo "#include <$utsrelease>";
13553 echo "kernsrcver=UTS_RELEASE") |
13554 cpp -I $kernelbuild/include |
13555 grep "^kernsrcver=" | cut -d \" -f 2`
13556
13557 if test -z "$kernsrcver"; then :
13558
13559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not found" >&5
13560 $as_echo "Not found" >&6; }
13561 as_fn_error $? "*** Cannot determine kernel version." "$LINENO" 5
13562
13563 fi
13564
13565 else
13566
13567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not found" >&5
13568 $as_echo "Not found" >&6; }
13569 if test "x$enable_linux_builtin" != xyes; then
13570 as_fn_error $? "*** Cannot find UTS_RELEASE definition." "$LINENO" 5
13571 else
13572 as_fn_error $? "
13573 *** Cannot find UTS_RELEASE definition.
13574 *** Please run 'make prepare' inside the kernel source tree." "$LINENO" 5
13575 fi
13576
13577 fi
13578
13579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kernsrcver" >&5
13580 $as_echo "$kernsrcver" >&6; }
13581
13582 LINUX=${kernelsrc}
13583 LINUX_OBJ=${kernelbuild}
13584 LINUX_VERSION=${kernsrcver}
13585
13586
13587
13588
13589
13590
13591 modpost=$LINUX/scripts/Makefile.modpost
13592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking kernel file name for module symbols" >&5
13593 $as_echo_n "checking kernel file name for module symbols... " >&6; }
13594 if test "x$enable_linux_builtin" != xyes -a -f "$modpost"; then :
13595
13596 if grep -q Modules.symvers $modpost; then :
13597
13598 LINUX_SYMBOLS=Modules.symvers
13599
13600 else
13601
13602 LINUX_SYMBOLS=Module.symvers
13603
13604 fi
13605
13606 if test ! -f "$LINUX_OBJ/$LINUX_SYMBOLS"; then :
13607
13608 as_fn_error $? "
13609 *** Please make sure the kernel devel package for your distribution
13610 *** is installed. If you are building with a custom kernel, make sure the
13611 *** kernel is configured, built, and the '--with-linux=PATH' configure
13612 *** option refers to the location of the kernel source." "$LINENO" 5
13613
13614 fi
13615
13616 else
13617
13618 LINUX_SYMBOLS=NONE
13619
13620 fi
13621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINUX_SYMBOLS" >&5
13622 $as_echo "$LINUX_SYMBOLS" >&6; }
13623
13624
13625
13626
13627
13628 # Check whether --with-spl was given.
13629 if test "${with_spl+set}" = set; then :
13630 withval=$with_spl; if test "$withval" = "yes"; then :
13631 as_fn_error $? "--with-spl=PATH requires a PATH" "$LINENO" 5
13632 else
13633 splsrc="$withval"
13634 fi
13635 fi
13636
13637
13638
13639 # Check whether --with-spl-obj was given.
13640 if test "${with_spl_obj+set}" = set; then :
13641 withval=$with_spl_obj; splbuild="$withval"
13642 fi
13643
13644
13645
13646 # Check whether --with-spl-timeout was given.
13647 if test "${with_spl_timeout+set}" = set; then :
13648 withval=$with_spl_timeout; timeout="$withval"
13649 else
13650 timeout=0
13651 fi
13652
13653
13654 splsrc0="/var/lib/dkms/spl/${VERSION}/build"
13655 splsrc1="/usr/local/src/spl-${VERSION}/${LINUX_VERSION}"
13656 splsrc2="/usr/local/src/spl-${VERSION}"
13657 splsrc3="/usr/src/spl-${VERSION}/${LINUX_VERSION}"
13658 splsrc4="/usr/src/spl-${VERSION}"
13659 splsrc5="../spl/"
13660 splsrc6="$LINUX"
13661
13662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking spl source directory" >&5
13663 $as_echo_n "checking spl source directory... " >&6; }
13664 if test -z "${splsrc}"; then :
13665
13666 all_spl_sources="
13667 ${splsrc0}
13668 ${splsrc1}
13669 ${splsrc2}
13670 ${splsrc3}
13671 ${splsrc4}
13672 ${splsrc5}
13673 ${splsrc6}",
13674 if test -e "${splsrc0}/spl.release.in"; then :
13675
13676 splsrc=${splsrc0}
13677
13678 elif test -e "${splsrc1}/spl.release.in"; then :
13679
13680 splsrc=${splsrc1}
13681
13682 elif test -e "${splsrc2}/spl.release.in"; then :
13683
13684 splsrc=${splsrc2}
13685
13686 elif test -e "${splsrc3}/spl.release.in"; then :
13687
13688 splsrc=$(readlink -f "${splsrc3}")
13689
13690 elif test -e "${splsrc4}/spl.release.in" ; then :
13691
13692 splsrc=${splsrc4}
13693
13694 elif test -e "${splsrc5}/spl.release.in"; then :
13695
13696 splsrc=$(readlink -f "${splsrc5}")
13697
13698 elif test -e "${splsrc6}/spl.release.in" ; then :
13699
13700 splsrc=${splsrc6}
13701
13702 else
13703
13704 splsrc="Not found"
13705
13706 fi
13707
13708 else
13709
13710 all_spl_sources="$withval",
13711 if test "$splsrc" = "NONE"; then :
13712
13713 splbuild=NONE
13714 splsrcver=NONE
13715
13716 fi
13717
13718 fi
13719
13720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $splsrc" >&5
13721 $as_echo "$splsrc" >&6; }
13722 if test ! -e "$splsrc/spl.release.in"; then :
13723
13724 as_fn_error $? "
13725 *** Please make sure the kmod spl devel package for your distribution
13726 *** is installed then try again. If that fails you can specify the
13727 *** location of the spl source with the '--with-spl=PATH' option.
13728 *** The spl version must match the version of ZFS you are building,
13729 *** ${VERSION}. Failed to find spl.release.in in the following:
13730 $all_spl_sources" "$LINENO" 5
13731
13732 fi
13733
13734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking spl build directory" >&5
13735 $as_echo_n "checking spl build directory... " >&6; }
13736
13737 all_spl_config_locs="${splsrc}/${LINUX_VERSION}
13738 ${splsrc}"
13739
13740 while true; do
13741 if test -z "$splbuild"; then :
13742
13743 if test -e "${splsrc}/${LINUX_VERSION}/spl_config.h" ; then :
13744
13745 splbuild="${splsrc}/${LINUX_VERSION}"
13746
13747 elif test -e "${splsrc}/spl_config.h" ; then :
13748
13749 splbuild="${splsrc}"
13750
13751 elif find -L "${splsrc}" -name spl_config.h 2> /dev/null | grep -wq spl_config.h ; then :
13752
13753 splbuild=$(find -L "${splsrc}" -name spl_config.h | sed 's,/spl_config.h,,')
13754
13755 else
13756
13757 splbuild="Not found"
13758
13759 fi
13760
13761 fi
13762 if test -e "$splbuild/spl_config.h" -o $timeout -le 0; then :
13763
13764 break;
13765
13766 else
13767
13768 sleep 1
13769 timeout=$((timeout-1))
13770
13771 fi
13772 done
13773
13774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $splbuild" >&5
13775 $as_echo "$splbuild" >&6; }
13776 if ! test -e "$splbuild/spl_config.h"; then :
13777
13778 as_fn_error $? "
13779 *** Please make sure the kmod spl devel <kernel> package for your
13780 *** distribution is installed then try again. If that fails you
13781 *** can specify the location of the spl objects with the
13782 *** '--with-spl-obj=PATH' option. Failed to find spl_config.h in
13783 *** any of the following:
13784 $all_spl_config_locs" "$LINENO" 5
13785
13786 fi
13787
13788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking spl source version" >&5
13789 $as_echo_n "checking spl source version... " >&6; }
13790 if test -r $splbuild/spl_config.h &&
13791 fgrep -q SPL_META_VERSION $splbuild/spl_config.h; then :
13792
13793
13794 splsrcver=`(echo "#include <spl_config.h>";
13795 echo "splsrcver=SPL_META_VERSION-SPL_META_RELEASE") |
13796 cpp -I $splbuild |
13797 grep "^splsrcver=" | tr -d \" | cut -d= -f2`
13798
13799 fi
13800
13801 if test -z "$splsrcver"; then :
13802
13803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not found" >&5
13804 $as_echo "Not found" >&6; }
13805 as_fn_error $? "
13806 *** Cannot determine the version of the spl source.
13807 *** Please prepare the spl source before running this script" "$LINENO" 5
13808
13809 fi
13810
13811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $splsrcver" >&5
13812 $as_echo "$splsrcver" >&6; }
13813
13814 SPL=${splsrc}
13815 SPL_OBJ=${splbuild}
13816 SPL_VERSION=${splsrcver}
13817
13818
13819
13820
13821
13822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking spl file name for module symbols" >&5
13823 $as_echo_n "checking spl file name for module symbols... " >&6; }
13824 SPL_SYMBOLS=NONE
13825
13826 while true; do
13827 if test -r $SPL_OBJ/Module.symvers; then :
13828
13829 SPL_SYMBOLS=Module.symvers
13830
13831 elif test -r $SPL_OBJ/Modules.symvers; then :
13832
13833 SPL_SYMBOLS=Modules.symvers
13834
13835 elif test -r $SPL_OBJ/module/Module.symvers; then :
13836
13837 SPL_SYMBOLS=Module.symvers
13838
13839 elif test -r $SPL_OBJ/module/Modules.symvers; then :
13840
13841 SPL_SYMBOLS=Modules.symvers
13842
13843 fi
13844
13845 if test $SPL_SYMBOLS != NONE -o $timeout -le 0; then :
13846
13847 break;
13848
13849 else
13850
13851 sleep 1
13852 timeout=$((timeout-1))
13853
13854 fi
13855 done
13856
13857 if test "$SPL_SYMBOLS" = NONE; then :
13858
13859 SPL_SYMBOLS=$LINUX_SYMBOLS
13860
13861 fi
13862
13863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SPL_SYMBOLS" >&5
13864 $as_echo "$SPL_SYMBOLS" >&6; }
13865
13866
13867
13868
13869 # Check whether --with-qat was given.
13870 if test "${with_qat+set}" = set; then :
13871 withval=$with_qat; if test "$withval" = "yes"; then :
13872 as_fn_error $? "--with-qat=PATH requires a PATH" "$LINENO" 5
13873 else
13874 qatsrc="$withval"
13875 fi
13876 fi
13877
13878
13879
13880 # Check whether --with-qat-obj was given.
13881 if test "${with_qat_obj+set}" = set; then :
13882 withval=$with_qat_obj; qatbuild="$withval"
13883 fi
13884
13885
13886 if test ! -z "${qatsrc}"; then :
13887
13888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking qat source directory" >&5
13889 $as_echo_n "checking qat source directory... " >&6; }
13890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $qatsrc" >&5
13891 $as_echo "$qatsrc" >&6; }
13892 QAT_SRC="${qatsrc}/quickassist"
13893 if test ! -e "$QAT_SRC/include/cpa.h"; then :
13894
13895 as_fn_error $? "
13896 *** Please make sure the qat driver package is installed
13897 *** and specify the location of the qat source with the
13898 *** '--with-qat=PATH' option then try again. Failed to
13899 *** find cpa.h in:
13900 ${QAT_SRC}/include" "$LINENO" 5
13901
13902 fi
13903
13904 fi
13905
13906 if test ! -z "${qatsrc}"; then :
13907
13908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking qat build directory" >&5
13909 $as_echo_n "checking qat build directory... " >&6; }
13910 if test -z "$qatbuild"; then :
13911
13912 qatbuild="${qatsrc}/build"
13913
13914 fi
13915
13916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $qatbuild" >&5
13917 $as_echo "$qatbuild" >&6; }
13918 QAT_OBJ=${qatbuild}
13919 if ! test -e "$QAT_OBJ/icp_qa_al.ko" && ! test -e "$QAT_OBJ/qat_api.ko"; then :
13920
13921 as_fn_error $? "
13922 *** Please make sure the qat driver is installed then try again.
13923 *** Failed to find icp_qa_al.ko or qat_api.ko in:
13924 $QAT_OBJ" "$LINENO" 5
13925
13926 fi
13927
13928
13929
13930
13931
13932 $as_echo "#define HAVE_QAT 1" >>confdefs.h
13933
13934
13935 fi
13936
13937 if test ! -z "${qatsrc}"; then :
13938
13939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking qat file for module symbols" >&5
13940 $as_echo_n "checking qat file for module symbols... " >&6; }
13941 QAT_SYMBOLS=$QAT_SRC/lookaside/access_layer/src/Module.symvers
13942
13943 if test -r $QAT_SYMBOLS; then :
13944
13945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $QAT_SYMBOLS" >&5
13946 $as_echo "$QAT_SYMBOLS" >&6; }
13947
13948
13949 else
13950
13951 as_fn_error $? "
13952 *** Please make sure the qat driver is installed then try again.
13953 *** Failed to find Module.symvers in:
13954 $QAT_SYMBOLS" "$LINENO" 5
13955
13956 fi
13957
13958 fi
13959
13960
13961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether modules can be built" >&5
13962 $as_echo_n "checking whether modules can be built... " >&6; }
13963
13964
13965 cat confdefs.h - <<_ACEOF >conftest.c
13966
13967
13968 int
13969 main (void)
13970 {
13971
13972 ;
13973 return 0;
13974 }
13975
13976 _ACEOF
13977
13978
13979
13980 cat - <<_ACEOF >conftest.h
13981
13982 _ACEOF
13983
13984
13985 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
13986 echo "obj-m := conftest.o" >build/Makefile
13987 modpost_flag=''
13988 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
13989 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
13990 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
13991 (eval $ac_try) 2>&5
13992 ac_status=$?
13993 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13994 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
13995 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
13996 (eval $ac_try) 2>&5
13997 ac_status=$?
13998 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13999 test $ac_status = 0; }; }; then :
14000
14001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14002 $as_echo "yes" >&6; }
14003
14004 else
14005 $as_echo "$as_me: failed program was:" >&5
14006 sed 's/^/| /' conftest.$ac_ext >&5
14007
14008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14009 $as_echo "no" >&6; }
14010 if test "x$enable_linux_builtin" != xyes; then
14011 as_fn_error $? "*** Unable to build an empty module." "$LINENO" 5
14012 else
14013 as_fn_error $? "
14014 *** Unable to build an empty module.
14015 *** Please run 'make scripts' inside the kernel source tree." "$LINENO" 5
14016 fi
14017
14018
14019
14020 fi
14021 rm -Rf build
14022
14023
14024
14025
14026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compile-time stack validation (objtool)" >&5
14027 $as_echo_n "checking for compile-time stack validation (objtool)... " >&6; }
14028
14029
14030 cat confdefs.h - <<_ACEOF >conftest.c
14031
14032
14033 #undef __ASSEMBLY__
14034 #include <asm/frame.h>
14035
14036 int
14037 main (void)
14038 {
14039
14040 #if !defined(FRAME_BEGIN)
14041 CTASSERT(1);
14042 #endif
14043
14044 ;
14045 return 0;
14046 }
14047
14048 _ACEOF
14049
14050
14051
14052 cat - <<_ACEOF >conftest.h
14053
14054 _ACEOF
14055
14056
14057 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
14058 echo "obj-m := conftest.o" >build/Makefile
14059 modpost_flag=''
14060 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
14061 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
14062 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14063 (eval $ac_try) 2>&5
14064 ac_status=$?
14065 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14066 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
14067 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14068 (eval $ac_try) 2>&5
14069 ac_status=$?
14070 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14071 test $ac_status = 0; }; }; then :
14072
14073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14074 $as_echo "yes" >&6; }
14075
14076 $as_echo "#define HAVE_KERNEL_OBJTOOL 1" >>confdefs.h
14077
14078
14079 else
14080 $as_echo "$as_me: failed program was:" >&5
14081 sed 's/^/| /' conftest.$ac_ext >&5
14082
14083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14084 $as_echo "no" >&6; }
14085
14086
14087
14088 fi
14089 rm -Rf build
14090
14091
14092
14093
14094 if test "x$cross_compiling" != xyes; then :
14095
14096 if test "$cross_compiling" = yes; then :
14097 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14098 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14099 as_fn_error $? "cannot run test program while cross compiling
14100 See \`config.log' for more details" "$LINENO" 5; }
14101 else
14102 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14103 /* end confdefs.h. */
14104
14105
14106 #include "$LINUX/include/linux/license.h"
14107
14108 int
14109 main ()
14110 {
14111
14112 return !license_is_gpl_compatible("$ZFS_META_LICENSE");
14113
14114 ;
14115 return 0;
14116 }
14117
14118 _ACEOF
14119 if ac_fn_c_try_run "$LINENO"; then :
14120
14121
14122 $as_echo "#define ZFS_IS_GPL_COMPATIBLE 1" >>confdefs.h
14123
14124
14125 fi
14126 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14127 conftest.$ac_objext conftest.beam conftest.$ac_ext
14128 fi
14129
14130
14131 fi
14132
14133
14134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether kernel was built with 16K or larger stacks" >&5
14135 $as_echo_n "checking whether kernel was built with 16K or larger stacks... " >&6; }
14136
14137
14138 cat confdefs.h - <<_ACEOF >conftest.c
14139
14140
14141 #include <linux/module.h>
14142
14143 int
14144 main (void)
14145 {
14146
14147 #if (THREAD_SIZE < 16384)
14148 #error "THREAD_SIZE is less than 16K"
14149 #endif
14150
14151 ;
14152 return 0;
14153 }
14154
14155 _ACEOF
14156
14157
14158
14159 cat - <<_ACEOF >conftest.h
14160
14161 _ACEOF
14162
14163
14164 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
14165 echo "obj-m := conftest.o" >build/Makefile
14166 modpost_flag=''
14167 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
14168 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
14169 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14170 (eval $ac_try) 2>&5
14171 ac_status=$?
14172 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14173 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
14174 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14175 (eval $ac_try) 2>&5
14176 ac_status=$?
14177 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14178 test $ac_status = 0; }; }; then :
14179
14180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14181 $as_echo "yes" >&6; }
14182
14183 $as_echo "#define HAVE_LARGE_STACKS 1" >>confdefs.h
14184
14185
14186 else
14187 $as_echo "$as_me: failed program was:" >&5
14188 sed 's/^/| /' conftest.$ac_ext >&5
14189
14190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14191 $as_echo "no" >&6; }
14192
14193
14194
14195 fi
14196 rm -Rf build
14197
14198
14199
14200
14201
14202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether kernel was built with CONFIG_DEBUG_LOCK_ALLOC" >&5
14203 $as_echo_n "checking whether kernel was built with CONFIG_DEBUG_LOCK_ALLOC... " >&6; }
14204
14205
14206 cat confdefs.h - <<_ACEOF >conftest.c
14207
14208
14209 #include <linux/module.h>
14210
14211 int
14212 main (void)
14213 {
14214
14215 #ifndef CONFIG_DEBUG_LOCK_ALLOC
14216 #error CONFIG_DEBUG_LOCK_ALLOC not #defined
14217 #endif
14218
14219 ;
14220 return 0;
14221 }
14222
14223 _ACEOF
14224
14225
14226
14227 cat - <<_ACEOF >conftest.h
14228
14229 _ACEOF
14230
14231
14232 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
14233 echo "obj-m := conftest.o" >build/Makefile
14234 modpost_flag=''
14235 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
14236 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
14237 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14238 (eval $ac_try) 2>&5
14239 ac_status=$?
14240 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14241 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
14242 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14243 (eval $ac_try) 2>&5
14244 ac_status=$?
14245 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14246 test $ac_status = 0; }; }; then :
14247
14248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14249 $as_echo "yes" >&6; }
14250
14251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mutex_lock() is GPL-only" >&5
14252 $as_echo_n "checking whether mutex_lock() is GPL-only... " >&6; }
14253 tmp_flags="$EXTRA_KCFLAGS"
14254
14255
14256 cat confdefs.h - <<_ACEOF >conftest.c
14257
14258
14259 #include <linux/module.h>
14260 #include <linux/mutex.h>
14261
14262 MODULE_LICENSE("$ZFS_META_LICENSE");
14263
14264 int
14265 main (void)
14266 {
14267
14268 struct mutex lock;
14269
14270 mutex_init(&lock);
14271 mutex_lock(&lock);
14272 mutex_unlock(&lock);
14273
14274 ;
14275 return 0;
14276 }
14277
14278 _ACEOF
14279
14280
14281
14282 cat - <<_ACEOF >conftest.h
14283
14284 _ACEOF
14285
14286
14287 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
14288 echo "obj-m := conftest.o" >build/Makefile
14289 modpost_flag=''
14290 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
14291 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
14292 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14293 (eval $ac_try) 2>&5
14294 ac_status=$?
14295 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14296 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
14297 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14298 (eval $ac_try) 2>&5
14299 ac_status=$?
14300 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14301 test $ac_status = 0; }; }; then :
14302
14303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14304 $as_echo "no" >&6; }
14305
14306 else
14307 $as_echo "$as_me: failed program was:" >&5
14308 sed 's/^/| /' conftest.$ac_ext >&5
14309
14310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14311 $as_echo "yes" >&6; }
14312 as_fn_error $? "
14313 *** Kernel built with CONFIG_DEBUG_LOCK_ALLOC which is incompatible
14314 *** with the CDDL license and will prevent the module linking stage
14315 *** from succeeding. You must rebuild your kernel without this
14316 *** option enabled." "$LINENO" 5
14317
14318
14319
14320 fi
14321 rm -Rf build
14322
14323
14324 EXTRA_KCFLAGS="$tmp_flags"
14325
14326
14327 else
14328 $as_echo "$as_me: failed program was:" >&5
14329 sed 's/^/| /' conftest.$ac_ext >&5
14330
14331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14332 $as_echo "no" >&6; }
14333
14334
14335
14336
14337 fi
14338 rm -Rf build
14339
14340
14341
14342
14343
14344
14345 tmp_flags="$EXTRA_KCFLAGS"
14346 EXTRA_KCFLAGS="-I\$(src)"
14347
14348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether DECLARE_EVENT_CLASS() is available" >&5
14349 $as_echo_n "checking whether DECLARE_EVENT_CLASS() is available... " >&6; }
14350
14351
14352 cat confdefs.h - <<_ACEOF >conftest.c
14353
14354
14355 #include <linux/module.h>
14356 MODULE_LICENSE(ZFS_META_LICENSE);
14357
14358 #define CREATE_TRACE_POINTS
14359 #include "conftest.h"
14360
14361 int
14362 main (void)
14363 {
14364
14365 trace_zfs_autoconf_event_one(1UL);
14366 trace_zfs_autoconf_event_two(2UL);
14367
14368 ;
14369 return 0;
14370 }
14371
14372 _ACEOF
14373
14374
14375
14376 cat - <<_ACEOF >conftest.h
14377
14378 #if !defined(_CONFTEST_H) || defined(TRACE_HEADER_MULTI_READ)
14379 #define _CONFTEST_H
14380
14381 #undef TRACE_SYSTEM
14382 #define TRACE_SYSTEM zfs
14383 #include <linux/tracepoint.h>
14384
14385 DECLARE_EVENT_CLASS(zfs_autoconf_event_class,
14386 TP_PROTO(unsigned long i),
14387 TP_ARGS(i),
14388 TP_STRUCT__entry(
14389 __field(unsigned long, i)
14390 ),
14391 TP_fast_assign(
14392 __entry->i = i;
14393 ),
14394 TP_printk("i = %lu", __entry->i)
14395 );
14396
14397 #define DEFINE_AUTOCONF_EVENT(name) \
14398 DEFINE_EVENT(zfs_autoconf_event_class, name, \
14399 TP_PROTO(unsigned long i), \
14400 TP_ARGS(i))
14401 DEFINE_AUTOCONF_EVENT(zfs_autoconf_event_one);
14402 DEFINE_AUTOCONF_EVENT(zfs_autoconf_event_two);
14403
14404 #endif /* _CONFTEST_H */
14405
14406 #undef TRACE_INCLUDE_PATH
14407 #define TRACE_INCLUDE_PATH .
14408 #define TRACE_INCLUDE_FILE conftest
14409 #include <trace/define_trace.h>
14410
14411 _ACEOF
14412
14413
14414 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
14415 echo "obj-m := conftest.o" >build/Makefile
14416 modpost_flag=''
14417 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
14418 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
14419 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14420 (eval $ac_try) 2>&5
14421 ac_status=$?
14422 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14423 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
14424 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14425 (eval $ac_try) 2>&5
14426 ac_status=$?
14427 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14428 test $ac_status = 0; }; }; then :
14429
14430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14431 $as_echo "yes" >&6; }
14432
14433 $as_echo "#define HAVE_DECLARE_EVENT_CLASS 1" >>confdefs.h
14434
14435
14436 else
14437 $as_echo "$as_me: failed program was:" >&5
14438 sed 's/^/| /' conftest.$ac_ext >&5
14439
14440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14441 $as_echo "no" >&6; }
14442
14443
14444
14445 fi
14446 rm -Rf build
14447
14448
14449 EXTRA_KCFLAGS="$tmp_flags"
14450
14451
14452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether current->bio_tail exists" >&5
14453 $as_echo_n "checking whether current->bio_tail exists... " >&6; }
14454
14455
14456 cat confdefs.h - <<_ACEOF >conftest.c
14457
14458
14459 #include <linux/sched.h>
14460
14461 int
14462 main (void)
14463 {
14464
14465 current->bio_tail = (struct bio **) NULL;
14466
14467 ;
14468 return 0;
14469 }
14470
14471 _ACEOF
14472
14473
14474
14475 cat - <<_ACEOF >conftest.h
14476
14477 _ACEOF
14478
14479
14480 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
14481 echo "obj-m := conftest.o" >build/Makefile
14482 modpost_flag=''
14483 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
14484 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
14485 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14486 (eval $ac_try) 2>&5
14487 ac_status=$?
14488 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14489 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
14490 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14491 (eval $ac_try) 2>&5
14492 ac_status=$?
14493 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14494 test $ac_status = 0; }; }; then :
14495
14496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14497 $as_echo "yes" >&6; }
14498
14499 $as_echo "#define HAVE_CURRENT_BIO_TAIL 1" >>confdefs.h
14500
14501
14502 else
14503 $as_echo "$as_me: failed program was:" >&5
14504 sed 's/^/| /' conftest.$ac_ext >&5
14505
14506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14507 $as_echo "no" >&6; }
14508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether current->bio_list exists" >&5
14509 $as_echo_n "checking whether current->bio_list exists... " >&6; }
14510
14511
14512 cat confdefs.h - <<_ACEOF >conftest.c
14513
14514
14515 #include <linux/sched.h>
14516
14517 int
14518 main (void)
14519 {
14520
14521 current->bio_list = (struct bio_list *) NULL;
14522
14523 ;
14524 return 0;
14525 }
14526
14527 _ACEOF
14528
14529
14530
14531 cat - <<_ACEOF >conftest.h
14532
14533 _ACEOF
14534
14535
14536 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
14537 echo "obj-m := conftest.o" >build/Makefile
14538 modpost_flag=''
14539 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
14540 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
14541 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14542 (eval $ac_try) 2>&5
14543 ac_status=$?
14544 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14545 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
14546 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14547 (eval $ac_try) 2>&5
14548 ac_status=$?
14549 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14550 test $ac_status = 0; }; }; then :
14551
14552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14553 $as_echo "yes" >&6; }
14554
14555 $as_echo "#define HAVE_CURRENT_BIO_LIST 1" >>confdefs.h
14556
14557
14558 else
14559 $as_echo "$as_me: failed program was:" >&5
14560 sed 's/^/| /' conftest.$ac_ext >&5
14561
14562 as_fn_error $? "no - Please file a bug report at
14563 https://github.com/zfsonlinux/zfs/issues/new" "$LINENO" 5
14564
14565
14566
14567 fi
14568 rm -Rf build
14569
14570
14571
14572
14573
14574 fi
14575 rm -Rf build
14576
14577
14578
14579
14580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether super_block->s_user_ns exists" >&5
14581 $as_echo_n "checking whether super_block->s_user_ns exists... " >&6; }
14582
14583
14584 cat confdefs.h - <<_ACEOF >conftest.c
14585
14586
14587 #include <linux/fs.h>
14588 #include <linux/user_namespace.h>
14589
14590 int
14591 main (void)
14592 {
14593
14594 struct super_block super;
14595 super.s_user_ns = (struct user_namespace *)NULL;
14596
14597 ;
14598 return 0;
14599 }
14600
14601 _ACEOF
14602
14603
14604
14605 cat - <<_ACEOF >conftest.h
14606
14607 _ACEOF
14608
14609
14610 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
14611 echo "obj-m := conftest.o" >build/Makefile
14612 modpost_flag=''
14613 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
14614 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
14615 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14616 (eval $ac_try) 2>&5
14617 ac_status=$?
14618 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14619 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
14620 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14621 (eval $ac_try) 2>&5
14622 ac_status=$?
14623 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14624 test $ac_status = 0; }; }; then :
14625
14626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14627 $as_echo "yes" >&6; }
14628
14629 $as_echo "#define HAVE_SUPER_USER_NS 1" >>confdefs.h
14630
14631
14632 else
14633 $as_echo "$as_me: failed program was:" >&5
14634 sed 's/^/| /' conftest.$ac_ext >&5
14635
14636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14637 $as_echo "no" >&6; }
14638
14639
14640
14641 fi
14642 rm -Rf build
14643
14644
14645
14646
14647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether submit_bio() wants 1 arg" >&5
14648 $as_echo_n "checking whether submit_bio() wants 1 arg... " >&6; }
14649
14650
14651 cat confdefs.h - <<_ACEOF >conftest.c
14652
14653
14654 #include <linux/bio.h>
14655
14656 int
14657 main (void)
14658 {
14659
14660 blk_qc_t blk_qc;
14661 struct bio *bio = NULL;
14662 blk_qc = submit_bio(bio);
14663
14664 ;
14665 return 0;
14666 }
14667
14668 _ACEOF
14669
14670
14671
14672 cat - <<_ACEOF >conftest.h
14673
14674 _ACEOF
14675
14676
14677 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
14678 echo "obj-m := conftest.o" >build/Makefile
14679 modpost_flag=''
14680 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
14681 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
14682 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14683 (eval $ac_try) 2>&5
14684 ac_status=$?
14685 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14686 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
14687 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14688 (eval $ac_try) 2>&5
14689 ac_status=$?
14690 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14691 test $ac_status = 0; }; }; then :
14692
14693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14694 $as_echo "yes" >&6; }
14695
14696 $as_echo "#define HAVE_1ARG_SUBMIT_BIO 1" >>confdefs.h
14697
14698
14699 else
14700 $as_echo "$as_me: failed program was:" >&5
14701 sed 's/^/| /' conftest.$ac_ext >&5
14702
14703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14704 $as_echo "no" >&6; }
14705
14706
14707
14708 fi
14709 rm -Rf build
14710
14711
14712
14713
14714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking block device operation prototypes" >&5
14715 $as_echo_n "checking block device operation prototypes... " >&6; }
14716 tmp_flags="$EXTRA_KCFLAGS"
14717 EXTRA_KCFLAGS="${NO_UNUSED_BUT_SET_VARIABLE}"
14718
14719
14720 cat confdefs.h - <<_ACEOF >conftest.c
14721
14722
14723 #include <linux/blkdev.h>
14724
14725 int blk_open(struct block_device *bdev, fmode_t mode)
14726 { return 0; }
14727 int blk_ioctl(struct block_device *bdev, fmode_t mode,
14728 unsigned x, unsigned long y) { return 0; }
14729 int blk_compat_ioctl(struct block_device * bdev, fmode_t mode,
14730 unsigned x, unsigned long y) { return 0; }
14731
14732 static const struct block_device_operations
14733 bops __attribute__ ((unused)) = {
14734 .open = blk_open,
14735 .release = NULL,
14736 .ioctl = blk_ioctl,
14737 .compat_ioctl = blk_compat_ioctl,
14738 };
14739
14740 int
14741 main (void)
14742 {
14743
14744
14745 ;
14746 return 0;
14747 }
14748
14749 _ACEOF
14750
14751
14752
14753 cat - <<_ACEOF >conftest.h
14754
14755 _ACEOF
14756
14757
14758 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
14759 echo "obj-m := conftest.o" >build/Makefile
14760 modpost_flag=''
14761 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
14762 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
14763 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14764 (eval $ac_try) 2>&5
14765 ac_status=$?
14766 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14767 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
14768 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14769 (eval $ac_try) 2>&5
14770 ac_status=$?
14771 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14772 test $ac_status = 0; }; }; then :
14773
14774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: struct block_device" >&5
14775 $as_echo "struct block_device" >&6; }
14776
14777 $as_echo "#define HAVE_BDEV_BLOCK_DEVICE_OPERATIONS 1" >>confdefs.h
14778
14779
14780 else
14781 $as_echo "$as_me: failed program was:" >&5
14782 sed 's/^/| /' conftest.$ac_ext >&5
14783
14784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: struct inode" >&5
14785 $as_echo "struct inode" >&6; }
14786
14787
14788
14789 fi
14790 rm -Rf build
14791
14792
14793 EXTRA_KCFLAGS="$tmp_flags"
14794
14795
14796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether block_device_operations.release is void" >&5
14797 $as_echo_n "checking whether block_device_operations.release is void... " >&6; }
14798 tmp_flags="$EXTRA_KCFLAGS"
14799 EXTRA_KCFLAGS="${NO_UNUSED_BUT_SET_VARIABLE}"
14800
14801
14802 cat confdefs.h - <<_ACEOF >conftest.c
14803
14804
14805 #include <linux/blkdev.h>
14806
14807 void blk_release(struct gendisk *g, fmode_t mode) { return; }
14808
14809 static const struct block_device_operations
14810 bops __attribute__ ((unused)) = {
14811 .open = NULL,
14812 .release = blk_release,
14813 .ioctl = NULL,
14814 .compat_ioctl = NULL,
14815 };
14816
14817 int
14818 main (void)
14819 {
14820
14821
14822 ;
14823 return 0;
14824 }
14825
14826 _ACEOF
14827
14828
14829
14830 cat - <<_ACEOF >conftest.h
14831
14832 _ACEOF
14833
14834
14835 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
14836 echo "obj-m := conftest.o" >build/Makefile
14837 modpost_flag=''
14838 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
14839 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
14840 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14841 (eval $ac_try) 2>&5
14842 ac_status=$?
14843 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14844 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
14845 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14846 (eval $ac_try) 2>&5
14847 ac_status=$?
14848 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14849 test $ac_status = 0; }; }; then :
14850
14851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: void" >&5
14852 $as_echo "void" >&6; }
14853
14854 $as_echo "#define HAVE_BLOCK_DEVICE_OPERATIONS_RELEASE_VOID 1" >>confdefs.h
14855
14856
14857 else
14858 $as_echo "$as_me: failed program was:" >&5
14859 sed 's/^/| /' conftest.$ac_ext >&5
14860
14861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: int" >&5
14862 $as_echo "int" >&6; }
14863
14864
14865
14866 fi
14867 rm -Rf build
14868
14869
14870 EXTRA_KCFLAGS="$tmp_flags"
14871
14872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether kernel defines fmode_t" >&5
14873 $as_echo_n "checking whether kernel defines fmode_t... " >&6; }
14874
14875
14876 cat confdefs.h - <<_ACEOF >conftest.c
14877
14878
14879 #include <linux/types.h>
14880
14881 int
14882 main (void)
14883 {
14884
14885 fmode_t *ptr __attribute__ ((unused));
14886
14887 ;
14888 return 0;
14889 }
14890
14891 _ACEOF
14892
14893
14894
14895 cat - <<_ACEOF >conftest.h
14896
14897 _ACEOF
14898
14899
14900 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
14901 echo "obj-m := conftest.o" >build/Makefile
14902 modpost_flag=''
14903 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
14904 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
14905 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14906 (eval $ac_try) 2>&5
14907 ac_status=$?
14908 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14909 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
14910 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14911 (eval $ac_try) 2>&5
14912 ac_status=$?
14913 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14914 test $ac_status = 0; }; }; then :
14915
14916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14917 $as_echo "yes" >&6; }
14918
14919 $as_echo "#define HAVE_FMODE_T 1" >>confdefs.h
14920
14921
14922 else
14923 $as_echo "$as_me: failed program was:" >&5
14924 sed 's/^/| /' conftest.$ac_ext >&5
14925
14926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14927 $as_echo "no" >&6; }
14928
14929
14930
14931 fi
14932 rm -Rf build
14933
14934
14935
14936
14937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether blkdev_get() wants 3 args" >&5
14938 $as_echo_n "checking whether blkdev_get() wants 3 args... " >&6; }
14939
14940
14941 cat confdefs.h - <<_ACEOF >conftest.c
14942
14943
14944 #include <linux/fs.h>
14945
14946 int
14947 main (void)
14948 {
14949
14950 struct block_device *bdev = NULL;
14951 (void) blkdev_get(bdev, 0, NULL);
14952
14953 ;
14954 return 0;
14955 }
14956
14957 _ACEOF
14958
14959
14960
14961 cat - <<_ACEOF >conftest.h
14962
14963 _ACEOF
14964
14965
14966 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
14967 echo "obj-m := conftest.o" >build/Makefile
14968 modpost_flag=''
14969 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
14970 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
14971 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14972 (eval $ac_try) 2>&5
14973 ac_status=$?
14974 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14975 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
14976 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14977 (eval $ac_try) 2>&5
14978 ac_status=$?
14979 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14980 test $ac_status = 0; }; }; then :
14981
14982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14983 $as_echo "yes" >&6; }
14984
14985 $as_echo "#define HAVE_3ARG_BLKDEV_GET 1" >>confdefs.h
14986
14987
14988 else
14989 $as_echo "$as_me: failed program was:" >&5
14990 sed 's/^/| /' conftest.$ac_ext >&5
14991
14992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14993 $as_echo "no" >&6; }
14994
14995
14996
14997 fi
14998 rm -Rf build
14999
15000
15001
15002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether blkdev_get_by_path() is available" >&5
15003 $as_echo_n "checking whether blkdev_get_by_path() is available... " >&6; }
15004
15005
15006
15007 cat confdefs.h - <<_ACEOF >conftest.c
15008
15009
15010 #include <linux/fs.h>
15011
15012 int
15013 main (void)
15014 {
15015
15016 blkdev_get_by_path(NULL, 0, NULL);
15017
15018 ;
15019 return 0;
15020 }
15021
15022 _ACEOF
15023
15024
15025
15026 cat - <<_ACEOF >conftest.h
15027
15028 _ACEOF
15029
15030
15031 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
15032 echo "obj-m := conftest.o" >build/Makefile
15033 modpost_flag=''
15034 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
15035 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
15036 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15037 (eval $ac_try) 2>&5
15038 ac_status=$?
15039 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15040 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
15041 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15042 (eval $ac_try) 2>&5
15043 ac_status=$?
15044 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15045 test $ac_status = 0; }; }; then :
15046 rc=0
15047 else
15048 $as_echo "$as_me: failed program was:" >&5
15049 sed 's/^/| /' conftest.$ac_ext >&5
15050 rc=1
15051
15052
15053 fi
15054 rm -Rf build
15055
15056
15057 if test $rc -ne 0; then :
15058
15059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15060 $as_echo "no" >&6; }
15061
15062 else
15063 if test "x$enable_linux_builtin" != xyes; then
15064
15065 grep -q -E '[[:space:]]blkdev_get_by_path[[:space:]]' \
15066 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
15067 rc=$?
15068 if test $rc -ne 0; then
15069 export=0
15070 for file in fs/block_dev.c; do
15071 grep -q -E "EXPORT_SYMBOL.*(blkdev_get_by_path)" \
15072 "$LINUX/$file" 2>/dev/null
15073 rc=$?
15074 if test $rc -eq 0; then
15075 export=1
15076 break;
15077 fi
15078 done
15079 if test $export -eq 0; then :
15080 rc=1
15081 else :
15082 rc=0
15083 fi
15084 else :
15085 rc=0
15086 fi
15087
15088 fi
15089 if test $rc -ne 0; then :
15090
15091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15092 $as_echo "no" >&6; }
15093
15094 else :
15095
15096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15097 $as_echo "yes" >&6; }
15098
15099 $as_echo "#define HAVE_BLKDEV_GET_BY_PATH 1" >>confdefs.h
15100
15101
15102 fi
15103 fi
15104
15105
15106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether open_bdev_exclusive() is available" >&5
15107 $as_echo_n "checking whether open_bdev_exclusive() is available... " >&6; }
15108
15109
15110
15111 cat confdefs.h - <<_ACEOF >conftest.c
15112
15113
15114 #include <linux/fs.h>
15115
15116 int
15117 main (void)
15118 {
15119
15120 open_bdev_exclusive(NULL, 0, NULL);
15121
15122 ;
15123 return 0;
15124 }
15125
15126 _ACEOF
15127
15128
15129
15130 cat - <<_ACEOF >conftest.h
15131
15132 _ACEOF
15133
15134
15135 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
15136 echo "obj-m := conftest.o" >build/Makefile
15137 modpost_flag=''
15138 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
15139 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
15140 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15141 (eval $ac_try) 2>&5
15142 ac_status=$?
15143 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15144 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
15145 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15146 (eval $ac_try) 2>&5
15147 ac_status=$?
15148 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15149 test $ac_status = 0; }; }; then :
15150 rc=0
15151 else
15152 $as_echo "$as_me: failed program was:" >&5
15153 sed 's/^/| /' conftest.$ac_ext >&5
15154 rc=1
15155
15156
15157 fi
15158 rm -Rf build
15159
15160
15161 if test $rc -ne 0; then :
15162
15163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15164 $as_echo "no" >&6; }
15165
15166 else
15167 if test "x$enable_linux_builtin" != xyes; then
15168
15169 grep -q -E '[[:space:]]open_bdev_exclusive[[:space:]]' \
15170 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
15171 rc=$?
15172 if test $rc -ne 0; then
15173 export=0
15174 for file in fs/block_dev.c; do
15175 grep -q -E "EXPORT_SYMBOL.*(open_bdev_exclusive)" \
15176 "$LINUX/$file" 2>/dev/null
15177 rc=$?
15178 if test $rc -eq 0; then
15179 export=1
15180 break;
15181 fi
15182 done
15183 if test $export -eq 0; then :
15184 rc=1
15185 else :
15186 rc=0
15187 fi
15188 else :
15189 rc=0
15190 fi
15191
15192 fi
15193 if test $rc -ne 0; then :
15194
15195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15196 $as_echo "no" >&6; }
15197
15198 else :
15199
15200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15201 $as_echo "yes" >&6; }
15202
15203 $as_echo "#define HAVE_OPEN_BDEV_EXCLUSIVE 1" >>confdefs.h
15204
15205
15206 fi
15207 fi
15208
15209
15210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lookup_bdev() wants 1 arg" >&5
15211 $as_echo_n "checking whether lookup_bdev() wants 1 arg... " >&6; }
15212
15213
15214
15215 cat confdefs.h - <<_ACEOF >conftest.c
15216
15217
15218 #include <linux/fs.h>
15219
15220 int
15221 main (void)
15222 {
15223
15224 lookup_bdev(NULL);
15225
15226 ;
15227 return 0;
15228 }
15229
15230 _ACEOF
15231
15232
15233
15234 cat - <<_ACEOF >conftest.h
15235
15236 _ACEOF
15237
15238
15239 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
15240 echo "obj-m := conftest.o" >build/Makefile
15241 modpost_flag=''
15242 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
15243 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
15244 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15245 (eval $ac_try) 2>&5
15246 ac_status=$?
15247 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15248 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
15249 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15250 (eval $ac_try) 2>&5
15251 ac_status=$?
15252 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15253 test $ac_status = 0; }; }; then :
15254 rc=0
15255 else
15256 $as_echo "$as_me: failed program was:" >&5
15257 sed 's/^/| /' conftest.$ac_ext >&5
15258 rc=1
15259
15260
15261 fi
15262 rm -Rf build
15263
15264
15265 if test $rc -ne 0; then :
15266
15267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15268 $as_echo "no" >&6; }
15269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lookup_bdev() wants 2 args" >&5
15270 $as_echo_n "checking whether lookup_bdev() wants 2 args... " >&6; }
15271
15272
15273
15274 cat confdefs.h - <<_ACEOF >conftest.c
15275
15276
15277 #include <linux/fs.h>
15278
15279 int
15280 main (void)
15281 {
15282
15283 lookup_bdev(NULL, FMODE_READ);
15284
15285 ;
15286 return 0;
15287 }
15288
15289 _ACEOF
15290
15291
15292
15293 cat - <<_ACEOF >conftest.h
15294
15295 _ACEOF
15296
15297
15298 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
15299 echo "obj-m := conftest.o" >build/Makefile
15300 modpost_flag=''
15301 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
15302 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
15303 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15304 (eval $ac_try) 2>&5
15305 ac_status=$?
15306 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15307 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
15308 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15309 (eval $ac_try) 2>&5
15310 ac_status=$?
15311 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15312 test $ac_status = 0; }; }; then :
15313 rc=0
15314 else
15315 $as_echo "$as_me: failed program was:" >&5
15316 sed 's/^/| /' conftest.$ac_ext >&5
15317 rc=1
15318
15319
15320 fi
15321 rm -Rf build
15322
15323
15324 if test $rc -ne 0; then :
15325
15326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15327 $as_echo "no" >&6; }
15328
15329 else
15330 if test "x$enable_linux_builtin" != xyes; then
15331
15332 grep -q -E '[[:space:]]lookup_bdev[[:space:]]' \
15333 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
15334 rc=$?
15335 if test $rc -ne 0; then
15336 export=0
15337 for file in fs/block_dev.c; do
15338 grep -q -E "EXPORT_SYMBOL.*(lookup_bdev)" \
15339 "$LINUX/$file" 2>/dev/null
15340 rc=$?
15341 if test $rc -eq 0; then
15342 export=1
15343 break;
15344 fi
15345 done
15346 if test $export -eq 0; then :
15347 rc=1
15348 else :
15349 rc=0
15350 fi
15351 else :
15352 rc=0
15353 fi
15354
15355 fi
15356 if test $rc -ne 0; then :
15357
15358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15359 $as_echo "no" >&6; }
15360
15361 else :
15362
15363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15364 $as_echo "yes" >&6; }
15365
15366 $as_echo "#define HAVE_2ARGS_LOOKUP_BDEV 1" >>confdefs.h
15367
15368
15369 fi
15370 fi
15371
15372
15373 else
15374 if test "x$enable_linux_builtin" != xyes; then
15375
15376 grep -q -E '[[:space:]]lookup_bdev[[:space:]]' \
15377 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
15378 rc=$?
15379 if test $rc -ne 0; then
15380 export=0
15381 for file in fs/block_dev.c; do
15382 grep -q -E "EXPORT_SYMBOL.*(lookup_bdev)" \
15383 "$LINUX/$file" 2>/dev/null
15384 rc=$?
15385 if test $rc -eq 0; then
15386 export=1
15387 break;
15388 fi
15389 done
15390 if test $export -eq 0; then :
15391 rc=1
15392 else :
15393 rc=0
15394 fi
15395 else :
15396 rc=0
15397 fi
15398
15399 fi
15400 if test $rc -ne 0; then :
15401
15402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15403 $as_echo "no" >&6; }
15404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lookup_bdev() wants 2 args" >&5
15405 $as_echo_n "checking whether lookup_bdev() wants 2 args... " >&6; }
15406
15407
15408
15409 cat confdefs.h - <<_ACEOF >conftest.c
15410
15411
15412 #include <linux/fs.h>
15413
15414 int
15415 main (void)
15416 {
15417
15418 lookup_bdev(NULL, FMODE_READ);
15419
15420 ;
15421 return 0;
15422 }
15423
15424 _ACEOF
15425
15426
15427
15428 cat - <<_ACEOF >conftest.h
15429
15430 _ACEOF
15431
15432
15433 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
15434 echo "obj-m := conftest.o" >build/Makefile
15435 modpost_flag=''
15436 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
15437 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
15438 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15439 (eval $ac_try) 2>&5
15440 ac_status=$?
15441 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15442 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
15443 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15444 (eval $ac_try) 2>&5
15445 ac_status=$?
15446 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15447 test $ac_status = 0; }; }; then :
15448 rc=0
15449 else
15450 $as_echo "$as_me: failed program was:" >&5
15451 sed 's/^/| /' conftest.$ac_ext >&5
15452 rc=1
15453
15454
15455 fi
15456 rm -Rf build
15457
15458
15459 if test $rc -ne 0; then :
15460
15461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15462 $as_echo "no" >&6; }
15463
15464 else
15465 if test "x$enable_linux_builtin" != xyes; then
15466
15467 grep -q -E '[[:space:]]lookup_bdev[[:space:]]' \
15468 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
15469 rc=$?
15470 if test $rc -ne 0; then
15471 export=0
15472 for file in fs/block_dev.c; do
15473 grep -q -E "EXPORT_SYMBOL.*(lookup_bdev)" \
15474 "$LINUX/$file" 2>/dev/null
15475 rc=$?
15476 if test $rc -eq 0; then
15477 export=1
15478 break;
15479 fi
15480 done
15481 if test $export -eq 0; then :
15482 rc=1
15483 else :
15484 rc=0
15485 fi
15486 else :
15487 rc=0
15488 fi
15489
15490 fi
15491 if test $rc -ne 0; then :
15492
15493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15494 $as_echo "no" >&6; }
15495
15496 else :
15497
15498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15499 $as_echo "yes" >&6; }
15500
15501 $as_echo "#define HAVE_2ARGS_LOOKUP_BDEV 1" >>confdefs.h
15502
15503
15504 fi
15505 fi
15506
15507
15508 else :
15509
15510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15511 $as_echo "yes" >&6; }
15512
15513 $as_echo "#define HAVE_1ARG_LOOKUP_BDEV 1" >>confdefs.h
15514
15515
15516 fi
15517 fi
15518
15519
15520
15521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether invalidate_bdev() wants 1 arg" >&5
15522 $as_echo_n "checking whether invalidate_bdev() wants 1 arg... " >&6; }
15523
15524
15525 cat confdefs.h - <<_ACEOF >conftest.c
15526
15527
15528 #include <linux/buffer_head.h>
15529
15530 int
15531 main (void)
15532 {
15533
15534 struct block_device *bdev = NULL;
15535 invalidate_bdev(bdev);
15536
15537 ;
15538 return 0;
15539 }
15540
15541 _ACEOF
15542
15543
15544
15545 cat - <<_ACEOF >conftest.h
15546
15547 _ACEOF
15548
15549
15550 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
15551 echo "obj-m := conftest.o" >build/Makefile
15552 modpost_flag=''
15553 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
15554 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
15555 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15556 (eval $ac_try) 2>&5
15557 ac_status=$?
15558 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15559 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
15560 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15561 (eval $ac_try) 2>&5
15562 ac_status=$?
15563 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15564 test $ac_status = 0; }; }; then :
15565
15566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15567 $as_echo "yes" >&6; }
15568
15569 $as_echo "#define HAVE_1ARG_INVALIDATE_BDEV 1" >>confdefs.h
15570
15571
15572 else
15573 $as_echo "$as_me: failed program was:" >&5
15574 sed 's/^/| /' conftest.$ac_ext >&5
15575
15576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15577 $as_echo "no" >&6; }
15578
15579
15580
15581 fi
15582 rm -Rf build
15583
15584
15585
15586
15587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether bdev_logical_block_size() is available" >&5
15588 $as_echo_n "checking whether bdev_logical_block_size() is available... " >&6; }
15589 tmp_flags="$EXTRA_KCFLAGS"
15590 EXTRA_KCFLAGS="${NO_UNUSED_BUT_SET_VARIABLE}"
15591
15592
15593 cat confdefs.h - <<_ACEOF >conftest.c
15594
15595
15596 #include <linux/blkdev.h>
15597
15598 int
15599 main (void)
15600 {
15601
15602 struct block_device *bdev = NULL;
15603 bdev_logical_block_size(bdev);
15604
15605 ;
15606 return 0;
15607 }
15608
15609 _ACEOF
15610
15611
15612
15613 cat - <<_ACEOF >conftest.h
15614
15615 _ACEOF
15616
15617
15618 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
15619 echo "obj-m := conftest.o" >build/Makefile
15620 modpost_flag=''
15621 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
15622 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
15623 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15624 (eval $ac_try) 2>&5
15625 ac_status=$?
15626 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15627 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
15628 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15629 (eval $ac_try) 2>&5
15630 ac_status=$?
15631 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15632 test $ac_status = 0; }; }; then :
15633
15634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15635 $as_echo "yes" >&6; }
15636
15637 $as_echo "#define HAVE_BDEV_LOGICAL_BLOCK_SIZE 1" >>confdefs.h
15638
15639
15640 else
15641 $as_echo "$as_me: failed program was:" >&5
15642 sed 's/^/| /' conftest.$ac_ext >&5
15643
15644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15645 $as_echo "no" >&6; }
15646
15647
15648
15649 fi
15650 rm -Rf build
15651
15652
15653 EXTRA_KCFLAGS="$tmp_flags"
15654
15655
15656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether bdev_physical_block_size() is available" >&5
15657 $as_echo_n "checking whether bdev_physical_block_size() is available... " >&6; }
15658 tmp_flags="$EXTRA_KCFLAGS"
15659 EXTRA_KCFLAGS="${NO_UNUSED_BUT_SET_VARIABLE}"
15660
15661
15662 cat confdefs.h - <<_ACEOF >conftest.c
15663
15664
15665 #include <linux/blkdev.h>
15666
15667 int
15668 main (void)
15669 {
15670
15671 struct block_device *bdev = NULL;
15672 bdev_physical_block_size(bdev);
15673
15674 ;
15675 return 0;
15676 }
15677
15678 _ACEOF
15679
15680
15681
15682 cat - <<_ACEOF >conftest.h
15683
15684 _ACEOF
15685
15686
15687 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
15688 echo "obj-m := conftest.o" >build/Makefile
15689 modpost_flag=''
15690 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
15691 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
15692 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15693 (eval $ac_try) 2>&5
15694 ac_status=$?
15695 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15696 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
15697 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15698 (eval $ac_try) 2>&5
15699 ac_status=$?
15700 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15701 test $ac_status = 0; }; }; then :
15702
15703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15704 $as_echo "yes" >&6; }
15705
15706 $as_echo "#define HAVE_BDEV_PHYSICAL_BLOCK_SIZE 1" >>confdefs.h
15707
15708
15709 else
15710 $as_echo "$as_me: failed program was:" >&5
15711 sed 's/^/| /' conftest.$ac_ext >&5
15712
15713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15714 $as_echo "no" >&6; }
15715
15716
15717
15718 fi
15719 rm -Rf build
15720
15721
15722 EXTRA_KCFLAGS="$tmp_flags"
15723
15724
15725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether bio has bi_iter" >&5
15726 $as_echo_n "checking whether bio has bi_iter... " >&6; }
15727
15728
15729 cat confdefs.h - <<_ACEOF >conftest.c
15730
15731
15732 #include <linux/bio.h>
15733
15734 int
15735 main (void)
15736 {
15737
15738 struct bio bio;
15739 bio.bi_iter.bi_sector = 0;
15740
15741 ;
15742 return 0;
15743 }
15744
15745 _ACEOF
15746
15747
15748
15749 cat - <<_ACEOF >conftest.h
15750
15751 _ACEOF
15752
15753
15754 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
15755 echo "obj-m := conftest.o" >build/Makefile
15756 modpost_flag=''
15757 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
15758 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
15759 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15760 (eval $ac_try) 2>&5
15761 ac_status=$?
15762 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15763 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
15764 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15765 (eval $ac_try) 2>&5
15766 ac_status=$?
15767 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15768 test $ac_status = 0; }; }; then :
15769
15770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15771 $as_echo "yes" >&6; }
15772
15773 $as_echo "#define HAVE_BIO_BVEC_ITER 1" >>confdefs.h
15774
15775
15776 else
15777 $as_echo "$as_me: failed program was:" >&5
15778 sed 's/^/| /' conftest.$ac_ext >&5
15779
15780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15781 $as_echo "no" >&6; }
15782
15783
15784
15785 fi
15786 rm -Rf build
15787
15788
15789
15790
15791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether BIO_RW_FAILFAST_* are defined" >&5
15792 $as_echo_n "checking whether BIO_RW_FAILFAST_* are defined... " >&6; }
15793
15794
15795 cat confdefs.h - <<_ACEOF >conftest.c
15796
15797
15798 #include <linux/bio.h>
15799
15800 int
15801 main (void)
15802 {
15803
15804 int flags __attribute__ ((unused));
15805 flags = ((1 << BIO_RW_FAILFAST_DEV) |
15806 (1 << BIO_RW_FAILFAST_TRANSPORT) |
15807 (1 << BIO_RW_FAILFAST_DRIVER));
15808
15809 ;
15810 return 0;
15811 }
15812
15813 _ACEOF
15814
15815
15816
15817 cat - <<_ACEOF >conftest.h
15818
15819 _ACEOF
15820
15821
15822 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
15823 echo "obj-m := conftest.o" >build/Makefile
15824 modpost_flag=''
15825 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
15826 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
15827 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15828 (eval $ac_try) 2>&5
15829 ac_status=$?
15830 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15831 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
15832 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15833 (eval $ac_try) 2>&5
15834 ac_status=$?
15835 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15836 test $ac_status = 0; }; }; then :
15837
15838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15839 $as_echo "yes" >&6; }
15840
15841 $as_echo "#define HAVE_BIO_RW_FAILFAST_DTD 1" >>confdefs.h
15842
15843
15844 else
15845 $as_echo "$as_me: failed program was:" >&5
15846 sed 's/^/| /' conftest.$ac_ext >&5
15847
15848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15849 $as_echo "no" >&6; }
15850
15851
15852
15853 fi
15854 rm -Rf build
15855
15856
15857
15858
15859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether bio_set_dev() exists" >&5
15860 $as_echo_n "checking whether bio_set_dev() exists... " >&6; }
15861
15862
15863 cat confdefs.h - <<_ACEOF >conftest.c
15864
15865
15866 #include <linux/bio.h>
15867 #include <linux/fs.h>
15868
15869 int
15870 main (void)
15871 {
15872
15873 struct block_device *bdev = NULL;
15874 struct bio *bio = NULL;
15875 bio_set_dev(bio, bdev);
15876
15877 ;
15878 return 0;
15879 }
15880
15881 _ACEOF
15882
15883
15884
15885 cat - <<_ACEOF >conftest.h
15886
15887 _ACEOF
15888
15889
15890 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
15891 echo "obj-m := conftest.o" >build/Makefile
15892 modpost_flag=''
15893 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
15894 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
15895 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15896 (eval $ac_try) 2>&5
15897 ac_status=$?
15898 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15899 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
15900 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15901 (eval $ac_try) 2>&5
15902 ac_status=$?
15903 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15904 test $ac_status = 0; }; }; then :
15905
15906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15907 $as_echo "yes" >&6; }
15908
15909 $as_echo "#define HAVE_BIO_SET_DEV 1" >>confdefs.h
15910
15911
15912 else
15913 $as_echo "$as_me: failed program was:" >&5
15914 sed 's/^/| /' conftest.$ac_ext >&5
15915
15916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15917 $as_echo "no" >&6; }
15918
15919
15920
15921 fi
15922 rm -Rf build
15923
15924
15925
15926
15927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether REQ_FAILFAST_MASK is defined" >&5
15928 $as_echo_n "checking whether REQ_FAILFAST_MASK is defined... " >&6; }
15929
15930
15931 cat confdefs.h - <<_ACEOF >conftest.c
15932
15933
15934 #include <linux/bio.h>
15935
15936 int
15937 main (void)
15938 {
15939
15940 int flags __attribute__ ((unused));
15941 flags = REQ_FAILFAST_MASK;
15942
15943 ;
15944 return 0;
15945 }
15946
15947 _ACEOF
15948
15949
15950
15951 cat - <<_ACEOF >conftest.h
15952
15953 _ACEOF
15954
15955
15956 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
15957 echo "obj-m := conftest.o" >build/Makefile
15958 modpost_flag=''
15959 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
15960 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
15961 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15962 (eval $ac_try) 2>&5
15963 ac_status=$?
15964 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15965 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
15966 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15967 (eval $ac_try) 2>&5
15968 ac_status=$?
15969 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15970 test $ac_status = 0; }; }; then :
15971
15972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15973 $as_echo "yes" >&6; }
15974
15975 $as_echo "#define HAVE_REQ_FAILFAST_MASK 1" >>confdefs.h
15976
15977
15978 else
15979 $as_echo "$as_me: failed program was:" >&5
15980 sed 's/^/| /' conftest.$ac_ext >&5
15981
15982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15983 $as_echo "no" >&6; }
15984
15985
15986
15987 fi
15988 rm -Rf build
15989
15990
15991
15992
15993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether REQ_OP_DISCARD is defined" >&5
15994 $as_echo_n "checking whether REQ_OP_DISCARD is defined... " >&6; }
15995
15996
15997 cat confdefs.h - <<_ACEOF >conftest.c
15998
15999
16000 #include <linux/blk_types.h>
16001
16002 int
16003 main (void)
16004 {
16005
16006 int op __attribute__ ((unused)) = REQ_OP_DISCARD;
16007
16008 ;
16009 return 0;
16010 }
16011
16012 _ACEOF
16013
16014
16015
16016 cat - <<_ACEOF >conftest.h
16017
16018 _ACEOF
16019
16020
16021 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
16022 echo "obj-m := conftest.o" >build/Makefile
16023 modpost_flag=''
16024 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
16025 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
16026 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16027 (eval $ac_try) 2>&5
16028 ac_status=$?
16029 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16030 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
16031 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16032 (eval $ac_try) 2>&5
16033 ac_status=$?
16034 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16035 test $ac_status = 0; }; }; then :
16036
16037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16038 $as_echo "yes" >&6; }
16039
16040 $as_echo "#define HAVE_REQ_OP_DISCARD 1" >>confdefs.h
16041
16042
16043 else
16044 $as_echo "$as_me: failed program was:" >&5
16045 sed 's/^/| /' conftest.$ac_ext >&5
16046
16047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16048 $as_echo "no" >&6; }
16049
16050
16051
16052 fi
16053 rm -Rf build
16054
16055
16056
16057
16058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether REQ_OP_SECURE_ERASE is defined" >&5
16059 $as_echo_n "checking whether REQ_OP_SECURE_ERASE is defined... " >&6; }
16060
16061
16062 cat confdefs.h - <<_ACEOF >conftest.c
16063
16064
16065 #include <linux/blk_types.h>
16066
16067 int
16068 main (void)
16069 {
16070
16071 int op __attribute__ ((unused)) = REQ_OP_SECURE_ERASE;
16072
16073 ;
16074 return 0;
16075 }
16076
16077 _ACEOF
16078
16079
16080
16081 cat - <<_ACEOF >conftest.h
16082
16083 _ACEOF
16084
16085
16086 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
16087 echo "obj-m := conftest.o" >build/Makefile
16088 modpost_flag=''
16089 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
16090 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
16091 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16092 (eval $ac_try) 2>&5
16093 ac_status=$?
16094 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16095 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
16096 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16097 (eval $ac_try) 2>&5
16098 ac_status=$?
16099 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16100 test $ac_status = 0; }; }; then :
16101
16102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16103 $as_echo "yes" >&6; }
16104
16105 $as_echo "#define HAVE_REQ_OP_SECURE_ERASE 1" >>confdefs.h
16106
16107
16108 else
16109 $as_echo "$as_me: failed program was:" >&5
16110 sed 's/^/| /' conftest.$ac_ext >&5
16111
16112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16113 $as_echo "no" >&6; }
16114
16115
16116
16117 fi
16118 rm -Rf build
16119
16120
16121
16122
16123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether REQ_OP_FLUSH is defined" >&5
16124 $as_echo_n "checking whether REQ_OP_FLUSH is defined... " >&6; }
16125
16126
16127 cat confdefs.h - <<_ACEOF >conftest.c
16128
16129
16130 #include <linux/blk_types.h>
16131
16132 int
16133 main (void)
16134 {
16135
16136 int op __attribute__ ((unused)) = REQ_OP_FLUSH;
16137
16138 ;
16139 return 0;
16140 }
16141
16142 _ACEOF
16143
16144
16145
16146 cat - <<_ACEOF >conftest.h
16147
16148 _ACEOF
16149
16150
16151 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
16152 echo "obj-m := conftest.o" >build/Makefile
16153 modpost_flag=''
16154 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
16155 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
16156 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16157 (eval $ac_try) 2>&5
16158 ac_status=$?
16159 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16160 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
16161 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16162 (eval $ac_try) 2>&5
16163 ac_status=$?
16164 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16165 test $ac_status = 0; }; }; then :
16166
16167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16168 $as_echo "yes" >&6; }
16169
16170 $as_echo "#define HAVE_REQ_OP_FLUSH 1" >>confdefs.h
16171
16172
16173 else
16174 $as_echo "$as_me: failed program was:" >&5
16175 sed 's/^/| /' conftest.$ac_ext >&5
16176
16177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16178 $as_echo "no" >&6; }
16179
16180
16181
16182 fi
16183 rm -Rf build
16184
16185
16186
16187
16188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether bio->bi_opf is defined" >&5
16189 $as_echo_n "checking whether bio->bi_opf is defined... " >&6; }
16190
16191
16192 cat confdefs.h - <<_ACEOF >conftest.c
16193
16194
16195 #include <linux/bio.h>
16196
16197 int
16198 main (void)
16199 {
16200
16201 struct bio bio __attribute__ ((unused));
16202 bio.bi_opf = 0;
16203
16204 ;
16205 return 0;
16206 }
16207
16208 _ACEOF
16209
16210
16211
16212 cat - <<_ACEOF >conftest.h
16213
16214 _ACEOF
16215
16216
16217 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
16218 echo "obj-m := conftest.o" >build/Makefile
16219 modpost_flag=''
16220 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
16221 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
16222 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16223 (eval $ac_try) 2>&5
16224 ac_status=$?
16225 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16226 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
16227 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16228 (eval $ac_try) 2>&5
16229 ac_status=$?
16230 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16231 test $ac_status = 0; }; }; then :
16232
16233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16234 $as_echo "yes" >&6; }
16235
16236 $as_echo "#define HAVE_BIO_BI_OPF 1" >>confdefs.h
16237
16238
16239 else
16240 $as_echo "$as_me: failed program was:" >&5
16241 sed 's/^/| /' conftest.$ac_ext >&5
16242
16243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16244 $as_echo "no" >&6; }
16245
16246
16247
16248 fi
16249 rm -Rf build
16250
16251
16252
16253
16254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether bio_end_io_t wants 1 arg" >&5
16255 $as_echo_n "checking whether bio_end_io_t wants 1 arg... " >&6; }
16256
16257
16258 cat confdefs.h - <<_ACEOF >conftest.c
16259
16260
16261 #include <linux/bio.h>
16262
16263 void wanted_end_io(struct bio *bio) { return; }
16264
16265 bio_end_io_t *end_io __attribute__ ((unused)) = wanted_end_io;
16266
16267 int
16268 main (void)
16269 {
16270
16271
16272 ;
16273 return 0;
16274 }
16275
16276 _ACEOF
16277
16278
16279
16280 cat - <<_ACEOF >conftest.h
16281
16282 _ACEOF
16283
16284
16285 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
16286 echo "obj-m := conftest.o" >build/Makefile
16287 modpost_flag=''
16288 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
16289 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
16290 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16291 (eval $ac_try) 2>&5
16292 ac_status=$?
16293 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16294 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
16295 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16296 (eval $ac_try) 2>&5
16297 ac_status=$?
16298 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16299 test $ac_status = 0; }; }; then :
16300
16301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16302 $as_echo "yes" >&6; }
16303
16304 $as_echo "#define HAVE_1ARG_BIO_END_IO_T 1" >>confdefs.h
16305
16306
16307 else
16308 $as_echo "$as_me: failed program was:" >&5
16309 sed 's/^/| /' conftest.$ac_ext >&5
16310
16311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16312 $as_echo "no" >&6; }
16313
16314
16315
16316 fi
16317 rm -Rf build
16318
16319
16320
16321
16322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether bio->bi_status exists" >&5
16323 $as_echo_n "checking whether bio->bi_status exists... " >&6; }
16324
16325
16326 cat confdefs.h - <<_ACEOF >conftest.c
16327
16328
16329 #include <linux/bio.h>
16330
16331 int
16332 main (void)
16333 {
16334
16335 struct bio bio __attribute__ ((unused));
16336 blk_status_t status __attribute__ ((unused)) = BLK_STS_OK;
16337
16338 bio.bi_status = status;
16339
16340 ;
16341 return 0;
16342 }
16343
16344 _ACEOF
16345
16346
16347
16348 cat - <<_ACEOF >conftest.h
16349
16350 _ACEOF
16351
16352
16353 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
16354 echo "obj-m := conftest.o" >build/Makefile
16355 modpost_flag=''
16356 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
16357 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
16358 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16359 (eval $ac_try) 2>&5
16360 ac_status=$?
16361 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16362 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
16363 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16364 (eval $ac_try) 2>&5
16365 ac_status=$?
16366 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16367 test $ac_status = 0; }; }; then :
16368
16369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16370 $as_echo "yes" >&6; }
16371
16372 $as_echo "#define HAVE_BIO_BI_STATUS 1" >>confdefs.h
16373
16374
16375 else
16376 $as_echo "$as_me: failed program was:" >&5
16377 sed 's/^/| /' conftest.$ac_ext >&5
16378
16379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16380 $as_echo "no" >&6; }
16381
16382
16383
16384 fi
16385 rm -Rf build
16386
16387
16388
16389
16390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether BIO_RW_BARRIER is defined" >&5
16391 $as_echo_n "checking whether BIO_RW_BARRIER is defined... " >&6; }
16392
16393
16394 cat confdefs.h - <<_ACEOF >conftest.c
16395
16396
16397 #include <linux/bio.h>
16398
16399 int
16400 main (void)
16401 {
16402
16403 int flags __attribute__ ((unused));
16404 flags = BIO_RW_BARRIER;
16405
16406 ;
16407 return 0;
16408 }
16409
16410 _ACEOF
16411
16412
16413
16414 cat - <<_ACEOF >conftest.h
16415
16416 _ACEOF
16417
16418
16419 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
16420 echo "obj-m := conftest.o" >build/Makefile
16421 modpost_flag=''
16422 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
16423 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
16424 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16425 (eval $ac_try) 2>&5
16426 ac_status=$?
16427 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16428 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
16429 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16430 (eval $ac_try) 2>&5
16431 ac_status=$?
16432 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16433 test $ac_status = 0; }; }; then :
16434
16435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16436 $as_echo "yes" >&6; }
16437
16438 $as_echo "#define HAVE_BIO_RW_BARRIER 1" >>confdefs.h
16439
16440
16441 else
16442 $as_echo "$as_me: failed program was:" >&5
16443 sed 's/^/| /' conftest.$ac_ext >&5
16444
16445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16446 $as_echo "no" >&6; }
16447
16448
16449
16450 fi
16451 rm -Rf build
16452
16453
16454
16455
16456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether BIO_RW_DISCARD is defined" >&5
16457 $as_echo_n "checking whether BIO_RW_DISCARD is defined... " >&6; }
16458
16459
16460 cat confdefs.h - <<_ACEOF >conftest.c
16461
16462
16463 #include <linux/bio.h>
16464
16465 int
16466 main (void)
16467 {
16468
16469 int flags __attribute__ ((unused));
16470 flags = BIO_RW_DISCARD;
16471
16472 ;
16473 return 0;
16474 }
16475
16476 _ACEOF
16477
16478
16479
16480 cat - <<_ACEOF >conftest.h
16481
16482 _ACEOF
16483
16484
16485 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
16486 echo "obj-m := conftest.o" >build/Makefile
16487 modpost_flag=''
16488 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
16489 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
16490 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16491 (eval $ac_try) 2>&5
16492 ac_status=$?
16493 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16494 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
16495 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16496 (eval $ac_try) 2>&5
16497 ac_status=$?
16498 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16499 test $ac_status = 0; }; }; then :
16500
16501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16502 $as_echo "yes" >&6; }
16503
16504 $as_echo "#define HAVE_BIO_RW_DISCARD 1" >>confdefs.h
16505
16506
16507 else
16508 $as_echo "$as_me: failed program was:" >&5
16509 sed 's/^/| /' conftest.$ac_ext >&5
16510
16511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16512 $as_echo "no" >&6; }
16513
16514
16515
16516 fi
16517 rm -Rf build
16518
16519
16520
16521
16522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether blk_queue bdi is dynamic" >&5
16523 $as_echo_n "checking whether blk_queue bdi is dynamic... " >&6; }
16524
16525
16526 cat confdefs.h - <<_ACEOF >conftest.c
16527
16528
16529 #include <linux/blkdev.h>
16530
16531 int
16532 main (void)
16533 {
16534
16535 struct request_queue q;
16536 struct backing_dev_info bdi;
16537 q.backing_dev_info = &bdi;
16538
16539 ;
16540 return 0;
16541 }
16542
16543 _ACEOF
16544
16545
16546
16547 cat - <<_ACEOF >conftest.h
16548
16549 _ACEOF
16550
16551
16552 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
16553 echo "obj-m := conftest.o" >build/Makefile
16554 modpost_flag=''
16555 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
16556 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
16557 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16558 (eval $ac_try) 2>&5
16559 ac_status=$?
16560 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16561 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
16562 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16563 (eval $ac_try) 2>&5
16564 ac_status=$?
16565 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16566 test $ac_status = 0; }; }; then :
16567
16568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16569 $as_echo "yes" >&6; }
16570
16571 $as_echo "#define HAVE_BLK_QUEUE_BDI_DYNAMIC 1" >>confdefs.h
16572
16573
16574 else
16575 $as_echo "$as_me: failed program was:" >&5
16576 sed 's/^/| /' conftest.$ac_ext >&5
16577
16578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16579 $as_echo "no" >&6; }
16580
16581
16582
16583 fi
16584 rm -Rf build
16585
16586
16587
16588
16589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether blk_queue_flush() is available" >&5
16590 $as_echo_n "checking whether blk_queue_flush() is available... " >&6; }
16591 tmp_flags="$EXTRA_KCFLAGS"
16592 EXTRA_KCFLAGS="${NO_UNUSED_BUT_SET_VARIABLE}"
16593
16594
16595 cat confdefs.h - <<_ACEOF >conftest.c
16596
16597
16598 #include <linux/blkdev.h>
16599
16600 int
16601 main (void)
16602 {
16603
16604 struct request_queue *q = NULL;
16605 (void) blk_queue_flush(q, REQ_FLUSH);
16606
16607 ;
16608 return 0;
16609 }
16610
16611 _ACEOF
16612
16613
16614
16615 cat - <<_ACEOF >conftest.h
16616
16617 _ACEOF
16618
16619
16620 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
16621 echo "obj-m := conftest.o" >build/Makefile
16622 modpost_flag=''
16623 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
16624 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
16625 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16626 (eval $ac_try) 2>&5
16627 ac_status=$?
16628 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16629 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
16630 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16631 (eval $ac_try) 2>&5
16632 ac_status=$?
16633 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16634 test $ac_status = 0; }; }; then :
16635
16636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16637 $as_echo "yes" >&6; }
16638
16639 $as_echo "#define HAVE_BLK_QUEUE_FLUSH 1" >>confdefs.h
16640
16641
16642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether blk_queue_flush() is GPL-only" >&5
16643 $as_echo_n "checking whether blk_queue_flush() is GPL-only... " >&6; }
16644
16645
16646 cat confdefs.h - <<_ACEOF >conftest.c
16647
16648
16649 #include <linux/module.h>
16650 #include <linux/blkdev.h>
16651
16652 MODULE_LICENSE("$ZFS_META_LICENSE");
16653
16654 int
16655 main (void)
16656 {
16657
16658 struct request_queue *q = NULL;
16659 (void) blk_queue_flush(q, REQ_FLUSH);
16660
16661 ;
16662 return 0;
16663 }
16664
16665 _ACEOF
16666
16667
16668
16669 cat - <<_ACEOF >conftest.h
16670
16671 _ACEOF
16672
16673
16674 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
16675 echo "obj-m := conftest.o" >build/Makefile
16676 modpost_flag=''
16677 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
16678 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
16679 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16680 (eval $ac_try) 2>&5
16681 ac_status=$?
16682 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16683 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
16684 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16685 (eval $ac_try) 2>&5
16686 ac_status=$?
16687 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16688 test $ac_status = 0; }; }; then :
16689
16690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16691 $as_echo "no" >&6; }
16692
16693 else
16694 $as_echo "$as_me: failed program was:" >&5
16695 sed 's/^/| /' conftest.$ac_ext >&5
16696
16697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16698 $as_echo "yes" >&6; }
16699
16700 $as_echo "#define HAVE_BLK_QUEUE_FLUSH_GPL_ONLY 1" >>confdefs.h
16701
16702
16703
16704
16705 fi
16706 rm -Rf build
16707
16708
16709
16710 else
16711 $as_echo "$as_me: failed program was:" >&5
16712 sed 's/^/| /' conftest.$ac_ext >&5
16713
16714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16715 $as_echo "no" >&6; }
16716
16717
16718
16719 fi
16720 rm -Rf build
16721
16722
16723
16724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether blk_queue_write_cache() exists" >&5
16725 $as_echo_n "checking whether blk_queue_write_cache() exists... " >&6; }
16726
16727
16728 cat confdefs.h - <<_ACEOF >conftest.c
16729
16730
16731 #include <linux/kernel.h>
16732 #include <linux/blkdev.h>
16733
16734
16735 int
16736 main (void)
16737 {
16738
16739 struct request_queue *q = NULL;
16740 blk_queue_write_cache(q, true, true);
16741
16742 ;
16743 return 0;
16744 }
16745
16746 _ACEOF
16747
16748
16749
16750 cat - <<_ACEOF >conftest.h
16751
16752 _ACEOF
16753
16754
16755 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
16756 echo "obj-m := conftest.o" >build/Makefile
16757 modpost_flag=''
16758 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
16759 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
16760 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16761 (eval $ac_try) 2>&5
16762 ac_status=$?
16763 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16764 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
16765 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16766 (eval $ac_try) 2>&5
16767 ac_status=$?
16768 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16769 test $ac_status = 0; }; }; then :
16770
16771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16772 $as_echo "yes" >&6; }
16773
16774 $as_echo "#define HAVE_BLK_QUEUE_WRITE_CACHE 1" >>confdefs.h
16775
16776
16777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether blk_queue_write_cache() is GPL-only" >&5
16778 $as_echo_n "checking whether blk_queue_write_cache() is GPL-only... " >&6; }
16779
16780
16781 cat confdefs.h - <<_ACEOF >conftest.c
16782
16783
16784 #include <linux/kernel.h>
16785 #include <linux/module.h>
16786 #include <linux/blkdev.h>
16787
16788 MODULE_LICENSE("$ZFS_META_LICENSE");
16789
16790 int
16791 main (void)
16792 {
16793
16794 struct request_queue *q = NULL;
16795 blk_queue_write_cache(q, true, true);
16796
16797 ;
16798 return 0;
16799 }
16800
16801 _ACEOF
16802
16803
16804
16805 cat - <<_ACEOF >conftest.h
16806
16807 _ACEOF
16808
16809
16810 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
16811 echo "obj-m := conftest.o" >build/Makefile
16812 modpost_flag=''
16813 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
16814 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
16815 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16816 (eval $ac_try) 2>&5
16817 ac_status=$?
16818 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16819 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
16820 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16821 (eval $ac_try) 2>&5
16822 ac_status=$?
16823 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16824 test $ac_status = 0; }; }; then :
16825
16826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16827 $as_echo "no" >&6; }
16828
16829 else
16830 $as_echo "$as_me: failed program was:" >&5
16831 sed 's/^/| /' conftest.$ac_ext >&5
16832
16833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16834 $as_echo "yes" >&6; }
16835
16836 $as_echo "#define HAVE_BLK_QUEUE_WRITE_CACHE_GPL_ONLY 1" >>confdefs.h
16837
16838
16839
16840
16841 fi
16842 rm -Rf build
16843
16844
16845
16846 else
16847 $as_echo "$as_me: failed program was:" >&5
16848 sed 's/^/| /' conftest.$ac_ext >&5
16849
16850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16851 $as_echo "no" >&6; }
16852
16853
16854
16855 fi
16856 rm -Rf build
16857
16858
16859
16860 EXTRA_KCFLAGS="$tmp_flags"
16861
16862
16863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether blk_queue_max_hw_sectors() is available" >&5
16864 $as_echo_n "checking whether blk_queue_max_hw_sectors() is available... " >&6; }
16865 tmp_flags="$EXTRA_KCFLAGS"
16866 EXTRA_KCFLAGS="${NO_UNUSED_BUT_SET_VARIABLE}"
16867
16868
16869 cat confdefs.h - <<_ACEOF >conftest.c
16870
16871
16872 #include <linux/blkdev.h>
16873
16874 int
16875 main (void)
16876 {
16877
16878 struct request_queue *q = NULL;
16879 (void) blk_queue_max_hw_sectors(q, BLK_SAFE_MAX_SECTORS);
16880
16881 ;
16882 return 0;
16883 }
16884
16885 _ACEOF
16886
16887
16888
16889 cat - <<_ACEOF >conftest.h
16890
16891 _ACEOF
16892
16893
16894 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
16895 echo "obj-m := conftest.o" >build/Makefile
16896 modpost_flag=''
16897 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
16898 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
16899 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16900 (eval $ac_try) 2>&5
16901 ac_status=$?
16902 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16903 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
16904 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16905 (eval $ac_try) 2>&5
16906 ac_status=$?
16907 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16908 test $ac_status = 0; }; }; then :
16909
16910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16911 $as_echo "yes" >&6; }
16912
16913 $as_echo "#define HAVE_BLK_QUEUE_MAX_HW_SECTORS 1" >>confdefs.h
16914
16915
16916 else
16917 $as_echo "$as_me: failed program was:" >&5
16918 sed 's/^/| /' conftest.$ac_ext >&5
16919
16920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16921 $as_echo "no" >&6; }
16922
16923
16924
16925 fi
16926 rm -Rf build
16927
16928
16929 EXTRA_KCFLAGS="$tmp_flags"
16930
16931
16932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether blk_queue_max_segments() is available" >&5
16933 $as_echo_n "checking whether blk_queue_max_segments() is available... " >&6; }
16934 tmp_flags="$EXTRA_KCFLAGS"
16935 EXTRA_KCFLAGS="${NO_UNUSED_BUT_SET_VARIABLE}"
16936
16937
16938 cat confdefs.h - <<_ACEOF >conftest.c
16939
16940
16941 #include <linux/blkdev.h>
16942
16943 int
16944 main (void)
16945 {
16946
16947 struct request_queue *q = NULL;
16948 (void) blk_queue_max_segments(q, BLK_MAX_SEGMENTS);
16949
16950 ;
16951 return 0;
16952 }
16953
16954 _ACEOF
16955
16956
16957
16958 cat - <<_ACEOF >conftest.h
16959
16960 _ACEOF
16961
16962
16963 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
16964 echo "obj-m := conftest.o" >build/Makefile
16965 modpost_flag=''
16966 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
16967 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
16968 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16969 (eval $ac_try) 2>&5
16970 ac_status=$?
16971 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16972 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
16973 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16974 (eval $ac_try) 2>&5
16975 ac_status=$?
16976 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16977 test $ac_status = 0; }; }; then :
16978
16979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16980 $as_echo "yes" >&6; }
16981
16982 $as_echo "#define HAVE_BLK_QUEUE_MAX_SEGMENTS 1" >>confdefs.h
16983
16984
16985 else
16986 $as_echo "$as_me: failed program was:" >&5
16987 sed 's/^/| /' conftest.$ac_ext >&5
16988
16989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16990 $as_echo "no" >&6; }
16991
16992
16993
16994 fi
16995 rm -Rf build
16996
16997
16998 EXTRA_KCFLAGS="$tmp_flags"
16999
17000
17001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the BIO_RW_UNPLUG enum is available" >&5
17002 $as_echo_n "checking whether the BIO_RW_UNPLUG enum is available... " >&6; }
17003 tmp_flags="$EXTRA_KCFLAGS"
17004 EXTRA_KCFLAGS="${NO_UNUSED_BUT_SET_VARIABLE}"
17005
17006
17007 cat confdefs.h - <<_ACEOF >conftest.c
17008
17009
17010 #include <linux/blkdev.h>
17011
17012 int
17013 main (void)
17014 {
17015
17016 extern enum bio_rw_flags rw;
17017
17018 rw = BIO_RW_UNPLUG;
17019
17020 ;
17021 return 0;
17022 }
17023
17024 _ACEOF
17025
17026
17027
17028 cat - <<_ACEOF >conftest.h
17029
17030 _ACEOF
17031
17032
17033 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
17034 echo "obj-m := conftest.o" >build/Makefile
17035 modpost_flag=''
17036 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
17037 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
17038 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17039 (eval $ac_try) 2>&5
17040 ac_status=$?
17041 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17042 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
17043 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17044 (eval $ac_try) 2>&5
17045 ac_status=$?
17046 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17047 test $ac_status = 0; }; }; then :
17048
17049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17050 $as_echo "yes" >&6; }
17051
17052 $as_echo "#define HAVE_BLK_QUEUE_HAVE_BIO_RW_UNPLUG 1" >>confdefs.h
17053
17054
17055 else
17056 $as_echo "$as_me: failed program was:" >&5
17057 sed 's/^/| /' conftest.$ac_ext >&5
17058
17059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17060 $as_echo "no" >&6; }
17061
17062
17063
17064 fi
17065 rm -Rf build
17066
17067
17068 EXTRA_KCFLAGS="$tmp_flags"
17069
17070
17071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct blk_plug is available" >&5
17072 $as_echo_n "checking whether struct blk_plug is available... " >&6; }
17073 tmp_flags="$EXTRA_KCFLAGS"
17074 EXTRA_KCFLAGS="${NO_UNUSED_BUT_SET_VARIABLE}"
17075
17076
17077 cat confdefs.h - <<_ACEOF >conftest.c
17078
17079
17080 #include <linux/blkdev.h>
17081
17082 int
17083 main (void)
17084 {
17085
17086 struct blk_plug plug;
17087
17088 blk_start_plug(&plug);
17089 blk_finish_plug(&plug);
17090
17091 ;
17092 return 0;
17093 }
17094
17095 _ACEOF
17096
17097
17098
17099 cat - <<_ACEOF >conftest.h
17100
17101 _ACEOF
17102
17103
17104 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
17105 echo "obj-m := conftest.o" >build/Makefile
17106 modpost_flag=''
17107 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
17108 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
17109 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17110 (eval $ac_try) 2>&5
17111 ac_status=$?
17112 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17113 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
17114 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17115 (eval $ac_try) 2>&5
17116 ac_status=$?
17117 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17118 test $ac_status = 0; }; }; then :
17119
17120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17121 $as_echo "yes" >&6; }
17122
17123 $as_echo "#define HAVE_BLK_QUEUE_HAVE_BLK_PLUG 1" >>confdefs.h
17124
17125
17126 else
17127 $as_echo "$as_me: failed program was:" >&5
17128 sed 's/^/| /' conftest.$ac_ext >&5
17129
17130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17131 $as_echo "no" >&6; }
17132
17133
17134
17135 fi
17136 rm -Rf build
17137
17138
17139 EXTRA_KCFLAGS="$tmp_flags"
17140
17141
17142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether get_disk_ro() is available" >&5
17143 $as_echo_n "checking whether get_disk_ro() is available... " >&6; }
17144 tmp_flags="$EXTRA_KCFLAGS"
17145 EXTRA_KCFLAGS="${NO_UNUSED_BUT_SET_VARIABLE}"
17146
17147
17148 cat confdefs.h - <<_ACEOF >conftest.c
17149
17150
17151 #include <linux/blkdev.h>
17152
17153 int
17154 main (void)
17155 {
17156
17157 struct gendisk *disk = NULL;
17158 (void) get_disk_ro(disk);
17159
17160 ;
17161 return 0;
17162 }
17163
17164 _ACEOF
17165
17166
17167
17168 cat - <<_ACEOF >conftest.h
17169
17170 _ACEOF
17171
17172
17173 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
17174 echo "obj-m := conftest.o" >build/Makefile
17175 modpost_flag=''
17176 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
17177 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
17178 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17179 (eval $ac_try) 2>&5
17180 ac_status=$?
17181 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17182 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
17183 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17184 (eval $ac_try) 2>&5
17185 ac_status=$?
17186 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17187 test $ac_status = 0; }; }; then :
17188
17189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17190 $as_echo "yes" >&6; }
17191
17192 $as_echo "#define HAVE_GET_DISK_RO 1" >>confdefs.h
17193
17194
17195 else
17196 $as_echo "$as_me: failed program was:" >&5
17197 sed 's/^/| /' conftest.$ac_ext >&5
17198
17199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17200 $as_echo "no" >&6; }
17201
17202
17203
17204 fi
17205 rm -Rf build
17206
17207
17208 EXTRA_KCFLAGS="$tmp_flags"
17209
17210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether get_gendisk() is available" >&5
17211 $as_echo_n "checking whether get_gendisk() is available... " >&6; }
17212
17213
17214
17215 cat confdefs.h - <<_ACEOF >conftest.c
17216
17217
17218 #include <linux/genhd.h>
17219
17220 int
17221 main (void)
17222 {
17223
17224 get_gendisk(0, NULL);
17225
17226 ;
17227 return 0;
17228 }
17229
17230 _ACEOF
17231
17232
17233
17234 cat - <<_ACEOF >conftest.h
17235
17236 _ACEOF
17237
17238
17239 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
17240 echo "obj-m := conftest.o" >build/Makefile
17241 modpost_flag=''
17242 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
17243 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
17244 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17245 (eval $ac_try) 2>&5
17246 ac_status=$?
17247 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17248 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
17249 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17250 (eval $ac_try) 2>&5
17251 ac_status=$?
17252 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17253 test $ac_status = 0; }; }; then :
17254 rc=0
17255 else
17256 $as_echo "$as_me: failed program was:" >&5
17257 sed 's/^/| /' conftest.$ac_ext >&5
17258 rc=1
17259
17260
17261 fi
17262 rm -Rf build
17263
17264
17265 if test $rc -ne 0; then :
17266
17267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17268 $as_echo "no" >&6; }
17269
17270 else
17271 if test "x$enable_linux_builtin" != xyes; then
17272
17273 grep -q -E '[[:space:]]get_gendisk[[:space:]]' \
17274 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
17275 rc=$?
17276 if test $rc -ne 0; then
17277 export=0
17278 for file in block/genhd.c; do
17279 grep -q -E "EXPORT_SYMBOL.*(get_gendisk)" \
17280 "$LINUX/$file" 2>/dev/null
17281 rc=$?
17282 if test $rc -eq 0; then
17283 export=1
17284 break;
17285 fi
17286 done
17287 if test $export -eq 0; then :
17288 rc=1
17289 else :
17290 rc=0
17291 fi
17292 else :
17293 rc=0
17294 fi
17295
17296 fi
17297 if test $rc -ne 0; then :
17298
17299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17300 $as_echo "no" >&6; }
17301
17302 else :
17303
17304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17305 $as_echo "yes" >&6; }
17306
17307 $as_echo "#define HAVE_GET_GENDISK 1" >>confdefs.h
17308
17309
17310 fi
17311 fi
17312
17313
17314
17315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether bio_set_op_attrs is available" >&5
17316 $as_echo_n "checking whether bio_set_op_attrs is available... " >&6; }
17317
17318
17319 cat confdefs.h - <<_ACEOF >conftest.c
17320
17321
17322 #include <linux/bio.h>
17323
17324 int
17325 main (void)
17326 {
17327
17328 struct bio *bio __attribute__ ((unused)) = NULL;
17329
17330 bio_set_op_attrs(bio, 0, 0);
17331
17332 ;
17333 return 0;
17334 }
17335
17336 _ACEOF
17337
17338
17339
17340 cat - <<_ACEOF >conftest.h
17341
17342 _ACEOF
17343
17344
17345 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
17346 echo "obj-m := conftest.o" >build/Makefile
17347 modpost_flag=''
17348 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
17349 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
17350 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17351 (eval $ac_try) 2>&5
17352 ac_status=$?
17353 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17354 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
17355 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17356 (eval $ac_try) 2>&5
17357 ac_status=$?
17358 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17359 test $ac_status = 0; }; }; then :
17360
17361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17362 $as_echo "yes" >&6; }
17363
17364 $as_echo "#define HAVE_BIO_SET_OP_ATTRS 1" >>confdefs.h
17365
17366
17367 else
17368 $as_echo "$as_me: failed program was:" >&5
17369 sed 's/^/| /' conftest.$ac_ext >&5
17370
17371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17372 $as_echo "no" >&6; }
17373
17374
17375
17376 fi
17377 rm -Rf build
17378
17379
17380
17381
17382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether generic_readlink is global" >&5
17383 $as_echo_n "checking whether generic_readlink is global... " >&6; }
17384
17385
17386 cat confdefs.h - <<_ACEOF >conftest.c
17387
17388
17389 #include <linux/fs.h>
17390
17391 int
17392 main (void)
17393 {
17394
17395 int i __attribute__ ((unused));
17396
17397 i = generic_readlink(NULL, NULL, 0);
17398
17399 ;
17400 return 0;
17401 }
17402
17403 _ACEOF
17404
17405
17406
17407 cat - <<_ACEOF >conftest.h
17408
17409 _ACEOF
17410
17411
17412 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
17413 echo "obj-m := conftest.o" >build/Makefile
17414 modpost_flag=''
17415 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
17416 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
17417 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17418 (eval $ac_try) 2>&5
17419 ac_status=$?
17420 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17421 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
17422 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17423 (eval $ac_try) 2>&5
17424 ac_status=$?
17425 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17426 test $ac_status = 0; }; }; then :
17427
17428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17429 $as_echo "yes" >&6; }
17430
17431 $as_echo "#define HAVE_GENERIC_READLINK 1" >>confdefs.h
17432
17433
17434 else
17435 $as_echo "$as_me: failed program was:" >&5
17436 sed 's/^/| /' conftest.$ac_ext >&5
17437
17438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17439 $as_echo "no" >&6; }
17440
17441
17442
17443 fi
17444 rm -Rf build
17445
17446
17447
17448
17449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ql->discard_granularity is available" >&5
17450 $as_echo_n "checking whether ql->discard_granularity is available... " >&6; }
17451
17452
17453 cat confdefs.h - <<_ACEOF >conftest.c
17454
17455
17456 #include <linux/blkdev.h>
17457
17458 int
17459 main (void)
17460 {
17461
17462 struct queue_limits ql __attribute__ ((unused));
17463
17464 ql.discard_granularity = 0;
17465
17466 ;
17467 return 0;
17468 }
17469
17470 _ACEOF
17471
17472
17473
17474 cat - <<_ACEOF >conftest.h
17475
17476 _ACEOF
17477
17478
17479 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
17480 echo "obj-m := conftest.o" >build/Makefile
17481 modpost_flag=''
17482 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
17483 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
17484 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17485 (eval $ac_try) 2>&5
17486 ac_status=$?
17487 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17488 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
17489 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17490 (eval $ac_try) 2>&5
17491 ac_status=$?
17492 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17493 test $ac_status = 0; }; }; then :
17494
17495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17496 $as_echo "yes" >&6; }
17497
17498 $as_echo "#define HAVE_DISCARD_GRANULARITY 1" >>confdefs.h
17499
17500
17501 else
17502 $as_echo "$as_me: failed program was:" >&5
17503 sed 's/^/| /' conftest.$ac_ext >&5
17504
17505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17506 $as_echo "no" >&6; }
17507
17508
17509
17510 fi
17511 rm -Rf build
17512
17513
17514
17515
17516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether super_block uses const struct xattr_handler" >&5
17517 $as_echo_n "checking whether super_block uses const struct xattr_handler... " >&6; }
17518
17519
17520 cat confdefs.h - <<_ACEOF >conftest.c
17521
17522
17523 #include <linux/fs.h>
17524 #include <linux/xattr.h>
17525
17526 const struct xattr_handler xattr_test_handler = {
17527 .prefix = "test",
17528 .get = NULL,
17529 .set = NULL,
17530 };
17531
17532 const struct xattr_handler *xattr_handlers[] = {
17533 &xattr_test_handler,
17534 };
17535
17536 const struct super_block sb __attribute__ ((unused)) = {
17537 .s_xattr = xattr_handlers,
17538 };
17539
17540 int
17541 main (void)
17542 {
17543
17544
17545 ;
17546 return 0;
17547 }
17548
17549 _ACEOF
17550
17551
17552
17553 cat - <<_ACEOF >conftest.h
17554
17555 _ACEOF
17556
17557
17558 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
17559 echo "obj-m := conftest.o" >build/Makefile
17560 modpost_flag=''
17561 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
17562 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
17563 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17564 (eval $ac_try) 2>&5
17565 ac_status=$?
17566 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17567 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
17568 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17569 (eval $ac_try) 2>&5
17570 ac_status=$?
17571 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17572 test $ac_status = 0; }; }; then :
17573
17574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17575 $as_echo "yes" >&6; }
17576
17577 $as_echo "#define HAVE_CONST_XATTR_HANDLER 1" >>confdefs.h
17578
17579
17580 else
17581 $as_echo "$as_me: failed program was:" >&5
17582 sed 's/^/| /' conftest.$ac_ext >&5
17583
17584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17585 $as_echo "no" >&6; }
17586
17587
17588
17589 fi
17590 rm -Rf build
17591
17592
17593
17594
17595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether xattr_handler has name" >&5
17596 $as_echo_n "checking whether xattr_handler has name... " >&6; }
17597
17598
17599 cat confdefs.h - <<_ACEOF >conftest.c
17600
17601
17602 #include <linux/xattr.h>
17603
17604 static const struct xattr_handler
17605 xops __attribute__ ((unused)) = {
17606 .name = XATTR_NAME_POSIX_ACL_ACCESS,
17607 };
17608
17609 int
17610 main (void)
17611 {
17612
17613
17614 ;
17615 return 0;
17616 }
17617
17618 _ACEOF
17619
17620
17621
17622 cat - <<_ACEOF >conftest.h
17623
17624 _ACEOF
17625
17626
17627 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
17628 echo "obj-m := conftest.o" >build/Makefile
17629 modpost_flag=''
17630 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
17631 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
17632 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17633 (eval $ac_try) 2>&5
17634 ac_status=$?
17635 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17636 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
17637 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17638 (eval $ac_try) 2>&5
17639 ac_status=$?
17640 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17641 test $ac_status = 0; }; }; then :
17642
17643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17644 $as_echo "yes" >&6; }
17645
17646 $as_echo "#define HAVE_XATTR_HANDLER_NAME 1" >>confdefs.h
17647
17648
17649 else
17650 $as_echo "$as_me: failed program was:" >&5
17651 sed 's/^/| /' conftest.$ac_ext >&5
17652
17653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17654 $as_echo "no" >&6; }
17655
17656
17657
17658 fi
17659 rm -Rf build
17660
17661
17662
17663
17664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether xattr_handler->get() wants both dentry and inode" >&5
17665 $as_echo_n "checking whether xattr_handler->get() wants both dentry and inode... " >&6; }
17666
17667
17668 cat confdefs.h - <<_ACEOF >conftest.c
17669
17670
17671 #include <linux/xattr.h>
17672
17673 int get(const struct xattr_handler *handler,
17674 struct dentry *dentry, struct inode *inode,
17675 const char *name, void *buffer, size_t size) { return 0; }
17676 static const struct xattr_handler
17677 xops __attribute__ ((unused)) = {
17678 .get = get,
17679 };
17680
17681 int
17682 main (void)
17683 {
17684
17685
17686 ;
17687 return 0;
17688 }
17689
17690 _ACEOF
17691
17692
17693
17694 cat - <<_ACEOF >conftest.h
17695
17696 _ACEOF
17697
17698
17699 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
17700 echo "obj-m := conftest.o" >build/Makefile
17701 modpost_flag=''
17702 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
17703 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
17704 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17705 (eval $ac_try) 2>&5
17706 ac_status=$?
17707 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17708 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
17709 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17710 (eval $ac_try) 2>&5
17711 ac_status=$?
17712 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17713 test $ac_status = 0; }; }; then :
17714
17715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17716 $as_echo "yes" >&6; }
17717
17718 $as_echo "#define HAVE_XATTR_GET_DENTRY_INODE 1" >>confdefs.h
17719
17720
17721 else
17722 $as_echo "$as_me: failed program was:" >&5
17723 sed 's/^/| /' conftest.$ac_ext >&5
17724
17725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17726 $as_echo "no" >&6; }
17727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether xattr_handler->get() wants xattr_handler" >&5
17728 $as_echo_n "checking whether xattr_handler->get() wants xattr_handler... " >&6; }
17729
17730
17731 cat confdefs.h - <<_ACEOF >conftest.c
17732
17733
17734 #include <linux/xattr.h>
17735
17736 int get(const struct xattr_handler *handler,
17737 struct dentry *dentry, const char *name,
17738 void *buffer, size_t size) { return 0; }
17739 static const struct xattr_handler
17740 xops __attribute__ ((unused)) = {
17741 .get = get,
17742 };
17743
17744 int
17745 main (void)
17746 {
17747
17748
17749 ;
17750 return 0;
17751 }
17752
17753 _ACEOF
17754
17755
17756
17757 cat - <<_ACEOF >conftest.h
17758
17759 _ACEOF
17760
17761
17762 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
17763 echo "obj-m := conftest.o" >build/Makefile
17764 modpost_flag=''
17765 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
17766 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
17767 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17768 (eval $ac_try) 2>&5
17769 ac_status=$?
17770 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17771 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
17772 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17773 (eval $ac_try) 2>&5
17774 ac_status=$?
17775 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17776 test $ac_status = 0; }; }; then :
17777
17778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17779 $as_echo "yes" >&6; }
17780
17781 $as_echo "#define HAVE_XATTR_GET_HANDLER 1" >>confdefs.h
17782
17783
17784 else
17785 $as_echo "$as_me: failed program was:" >&5
17786 sed 's/^/| /' conftest.$ac_ext >&5
17787
17788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17789 $as_echo "no" >&6; }
17790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether xattr_handler->get() wants dentry" >&5
17791 $as_echo_n "checking whether xattr_handler->get() wants dentry... " >&6; }
17792
17793
17794 cat confdefs.h - <<_ACEOF >conftest.c
17795
17796
17797 #include <linux/xattr.h>
17798
17799 int get(struct dentry *dentry, const char *name,
17800 void *buffer, size_t size, int handler_flags)
17801 { return 0; }
17802 static const struct xattr_handler
17803 xops __attribute__ ((unused)) = {
17804 .get = get,
17805 };
17806
17807 int
17808 main (void)
17809 {
17810
17811
17812 ;
17813 return 0;
17814 }
17815
17816 _ACEOF
17817
17818
17819
17820 cat - <<_ACEOF >conftest.h
17821
17822 _ACEOF
17823
17824
17825 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
17826 echo "obj-m := conftest.o" >build/Makefile
17827 modpost_flag=''
17828 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
17829 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
17830 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17831 (eval $ac_try) 2>&5
17832 ac_status=$?
17833 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17834 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
17835 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17836 (eval $ac_try) 2>&5
17837 ac_status=$?
17838 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17839 test $ac_status = 0; }; }; then :
17840
17841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17842 $as_echo "yes" >&6; }
17843
17844 $as_echo "#define HAVE_XATTR_GET_DENTRY 1" >>confdefs.h
17845
17846
17847 else
17848 $as_echo "$as_me: failed program was:" >&5
17849 sed 's/^/| /' conftest.$ac_ext >&5
17850
17851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17852 $as_echo "no" >&6; }
17853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether xattr_handler->get() wants inode" >&5
17854 $as_echo_n "checking whether xattr_handler->get() wants inode... " >&6; }
17855
17856
17857 cat confdefs.h - <<_ACEOF >conftest.c
17858
17859
17860 #include <linux/xattr.h>
17861
17862 int get(struct inode *ip, const char *name,
17863 void *buffer, size_t size) { return 0; }
17864 static const struct xattr_handler
17865 xops __attribute__ ((unused)) = {
17866 .get = get,
17867 };
17868
17869 int
17870 main (void)
17871 {
17872
17873
17874 ;
17875 return 0;
17876 }
17877
17878 _ACEOF
17879
17880
17881
17882 cat - <<_ACEOF >conftest.h
17883
17884 _ACEOF
17885
17886
17887 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
17888 echo "obj-m := conftest.o" >build/Makefile
17889 modpost_flag=''
17890 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
17891 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
17892 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17893 (eval $ac_try) 2>&5
17894 ac_status=$?
17895 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17896 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
17897 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17898 (eval $ac_try) 2>&5
17899 ac_status=$?
17900 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17901 test $ac_status = 0; }; }; then :
17902
17903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17904 $as_echo "yes" >&6; }
17905
17906 $as_echo "#define HAVE_XATTR_GET_INODE 1" >>confdefs.h
17907
17908
17909 else
17910 $as_echo "$as_me: failed program was:" >&5
17911 sed 's/^/| /' conftest.$ac_ext >&5
17912
17913 as_fn_error $? "no; please file a bug report" "$LINENO" 5
17914
17915
17916
17917 fi
17918 rm -Rf build
17919
17920
17921
17922
17923
17924 fi
17925 rm -Rf build
17926
17927
17928
17929
17930
17931 fi
17932 rm -Rf build
17933
17934
17935
17936
17937
17938 fi
17939 rm -Rf build
17940
17941
17942
17943
17944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether xattr_handler->set() wants both dentry and inode" >&5
17945 $as_echo_n "checking whether xattr_handler->set() wants both dentry and inode... " >&6; }
17946
17947
17948 cat confdefs.h - <<_ACEOF >conftest.c
17949
17950
17951 #include <linux/xattr.h>
17952
17953 int set(const struct xattr_handler *handler,
17954 struct dentry *dentry, struct inode *inode,
17955 const char *name, const void *buffer,
17956 size_t size, int flags)
17957 { return 0; }
17958 static const struct xattr_handler
17959 xops __attribute__ ((unused)) = {
17960 .set = set,
17961 };
17962
17963 int
17964 main (void)
17965 {
17966
17967
17968 ;
17969 return 0;
17970 }
17971
17972 _ACEOF
17973
17974
17975
17976 cat - <<_ACEOF >conftest.h
17977
17978 _ACEOF
17979
17980
17981 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
17982 echo "obj-m := conftest.o" >build/Makefile
17983 modpost_flag=''
17984 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
17985 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
17986 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17987 (eval $ac_try) 2>&5
17988 ac_status=$?
17989 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17990 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
17991 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17992 (eval $ac_try) 2>&5
17993 ac_status=$?
17994 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17995 test $ac_status = 0; }; }; then :
17996
17997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17998 $as_echo "yes" >&6; }
17999
18000 $as_echo "#define HAVE_XATTR_SET_DENTRY_INODE 1" >>confdefs.h
18001
18002
18003 else
18004 $as_echo "$as_me: failed program was:" >&5
18005 sed 's/^/| /' conftest.$ac_ext >&5
18006
18007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18008 $as_echo "no" >&6; }
18009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether xattr_handler->set() wants xattr_handler" >&5
18010 $as_echo_n "checking whether xattr_handler->set() wants xattr_handler... " >&6; }
18011
18012
18013 cat confdefs.h - <<_ACEOF >conftest.c
18014
18015
18016 #include <linux/xattr.h>
18017
18018 int set(const struct xattr_handler *handler,
18019 struct dentry *dentry, const char *name,
18020 const void *buffer, size_t size, int flags)
18021 { return 0; }
18022 static const struct xattr_handler
18023 xops __attribute__ ((unused)) = {
18024 .set = set,
18025 };
18026
18027 int
18028 main (void)
18029 {
18030
18031
18032 ;
18033 return 0;
18034 }
18035
18036 _ACEOF
18037
18038
18039
18040 cat - <<_ACEOF >conftest.h
18041
18042 _ACEOF
18043
18044
18045 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
18046 echo "obj-m := conftest.o" >build/Makefile
18047 modpost_flag=''
18048 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
18049 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
18050 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18051 (eval $ac_try) 2>&5
18052 ac_status=$?
18053 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18054 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
18055 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18056 (eval $ac_try) 2>&5
18057 ac_status=$?
18058 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18059 test $ac_status = 0; }; }; then :
18060
18061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18062 $as_echo "yes" >&6; }
18063
18064 $as_echo "#define HAVE_XATTR_SET_HANDLER 1" >>confdefs.h
18065
18066
18067 else
18068 $as_echo "$as_me: failed program was:" >&5
18069 sed 's/^/| /' conftest.$ac_ext >&5
18070
18071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18072 $as_echo "no" >&6; }
18073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether xattr_handler->set() wants dentry" >&5
18074 $as_echo_n "checking whether xattr_handler->set() wants dentry... " >&6; }
18075
18076
18077 cat confdefs.h - <<_ACEOF >conftest.c
18078
18079
18080 #include <linux/xattr.h>
18081
18082 int set(struct dentry *dentry, const char *name,
18083 const void *buffer, size_t size, int flags,
18084 int handler_flags) { return 0; }
18085 static const struct xattr_handler
18086 xops __attribute__ ((unused)) = {
18087 .set = set,
18088 };
18089
18090 int
18091 main (void)
18092 {
18093
18094
18095 ;
18096 return 0;
18097 }
18098
18099 _ACEOF
18100
18101
18102
18103 cat - <<_ACEOF >conftest.h
18104
18105 _ACEOF
18106
18107
18108 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
18109 echo "obj-m := conftest.o" >build/Makefile
18110 modpost_flag=''
18111 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
18112 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
18113 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18114 (eval $ac_try) 2>&5
18115 ac_status=$?
18116 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18117 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
18118 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18119 (eval $ac_try) 2>&5
18120 ac_status=$?
18121 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18122 test $ac_status = 0; }; }; then :
18123
18124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18125 $as_echo "yes" >&6; }
18126
18127 $as_echo "#define HAVE_XATTR_SET_DENTRY 1" >>confdefs.h
18128
18129
18130 else
18131 $as_echo "$as_me: failed program was:" >&5
18132 sed 's/^/| /' conftest.$ac_ext >&5
18133
18134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18135 $as_echo "no" >&6; }
18136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether xattr_handler->set() wants inode" >&5
18137 $as_echo_n "checking whether xattr_handler->set() wants inode... " >&6; }
18138
18139
18140 cat confdefs.h - <<_ACEOF >conftest.c
18141
18142
18143 #include <linux/xattr.h>
18144
18145 int set(struct inode *ip, const char *name,
18146 const void *buffer, size_t size, int flags)
18147 { return 0; }
18148 static const struct xattr_handler
18149 xops __attribute__ ((unused)) = {
18150 .set = set,
18151 };
18152
18153 int
18154 main (void)
18155 {
18156
18157
18158 ;
18159 return 0;
18160 }
18161
18162 _ACEOF
18163
18164
18165
18166 cat - <<_ACEOF >conftest.h
18167
18168 _ACEOF
18169
18170
18171 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
18172 echo "obj-m := conftest.o" >build/Makefile
18173 modpost_flag=''
18174 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
18175 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
18176 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18177 (eval $ac_try) 2>&5
18178 ac_status=$?
18179 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18180 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
18181 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18182 (eval $ac_try) 2>&5
18183 ac_status=$?
18184 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18185 test $ac_status = 0; }; }; then :
18186
18187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18188 $as_echo "yes" >&6; }
18189
18190 $as_echo "#define HAVE_XATTR_SET_INODE 1" >>confdefs.h
18191
18192
18193 else
18194 $as_echo "$as_me: failed program was:" >&5
18195 sed 's/^/| /' conftest.$ac_ext >&5
18196
18197 as_fn_error $? "no; please file a bug report" "$LINENO" 5
18198
18199
18200
18201 fi
18202 rm -Rf build
18203
18204
18205
18206
18207
18208 fi
18209 rm -Rf build
18210
18211
18212
18213
18214
18215 fi
18216 rm -Rf build
18217
18218
18219
18220
18221
18222 fi
18223 rm -Rf build
18224
18225
18226
18227
18228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether xattr_handler->list() wants simple" >&5
18229 $as_echo_n "checking whether xattr_handler->list() wants simple... " >&6; }
18230
18231
18232 cat confdefs.h - <<_ACEOF >conftest.c
18233
18234
18235 #include <linux/xattr.h>
18236
18237 bool list(struct dentry *dentry) { return 0; }
18238 static const struct xattr_handler
18239 xops __attribute__ ((unused)) = {
18240 .list = list,
18241 };
18242
18243 int
18244 main (void)
18245 {
18246
18247
18248 ;
18249 return 0;
18250 }
18251
18252 _ACEOF
18253
18254
18255
18256 cat - <<_ACEOF >conftest.h
18257
18258 _ACEOF
18259
18260
18261 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
18262 echo "obj-m := conftest.o" >build/Makefile
18263 modpost_flag=''
18264 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
18265 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
18266 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18267 (eval $ac_try) 2>&5
18268 ac_status=$?
18269 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18270 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
18271 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18272 (eval $ac_try) 2>&5
18273 ac_status=$?
18274 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18275 test $ac_status = 0; }; }; then :
18276
18277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18278 $as_echo "yes" >&6; }
18279
18280 $as_echo "#define HAVE_XATTR_LIST_SIMPLE 1" >>confdefs.h
18281
18282
18283 else
18284 $as_echo "$as_me: failed program was:" >&5
18285 sed 's/^/| /' conftest.$ac_ext >&5
18286
18287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18288 $as_echo "no" >&6; }
18289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether xattr_handler->list() wants xattr_handler" >&5
18290 $as_echo_n "checking whether xattr_handler->list() wants xattr_handler... " >&6; }
18291
18292
18293 cat confdefs.h - <<_ACEOF >conftest.c
18294
18295
18296 #include <linux/xattr.h>
18297
18298 size_t list(const struct xattr_handler *handler,
18299 struct dentry *dentry, char *list, size_t list_size,
18300 const char *name, size_t name_len) { return 0; }
18301 static const struct xattr_handler
18302 xops __attribute__ ((unused)) = {
18303 .list = list,
18304 };
18305
18306 int
18307 main (void)
18308 {
18309
18310
18311 ;
18312 return 0;
18313 }
18314
18315 _ACEOF
18316
18317
18318
18319 cat - <<_ACEOF >conftest.h
18320
18321 _ACEOF
18322
18323
18324 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
18325 echo "obj-m := conftest.o" >build/Makefile
18326 modpost_flag=''
18327 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
18328 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
18329 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18330 (eval $ac_try) 2>&5
18331 ac_status=$?
18332 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18333 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
18334 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18335 (eval $ac_try) 2>&5
18336 ac_status=$?
18337 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18338 test $ac_status = 0; }; }; then :
18339
18340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18341 $as_echo "yes" >&6; }
18342
18343 $as_echo "#define HAVE_XATTR_LIST_HANDLER 1" >>confdefs.h
18344
18345
18346 else
18347 $as_echo "$as_me: failed program was:" >&5
18348 sed 's/^/| /' conftest.$ac_ext >&5
18349
18350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18351 $as_echo "no" >&6; }
18352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether xattr_handler->list() wants dentry" >&5
18353 $as_echo_n "checking whether xattr_handler->list() wants dentry... " >&6; }
18354
18355
18356 cat confdefs.h - <<_ACEOF >conftest.c
18357
18358
18359 #include <linux/xattr.h>
18360
18361 size_t list(struct dentry *dentry,
18362 char *list, size_t list_size,
18363 const char *name, size_t name_len,
18364 int handler_flags) { return 0; }
18365 static const struct xattr_handler
18366 xops __attribute__ ((unused)) = {
18367 .list = list,
18368 };
18369
18370 int
18371 main (void)
18372 {
18373
18374
18375 ;
18376 return 0;
18377 }
18378
18379 _ACEOF
18380
18381
18382
18383 cat - <<_ACEOF >conftest.h
18384
18385 _ACEOF
18386
18387
18388 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
18389 echo "obj-m := conftest.o" >build/Makefile
18390 modpost_flag=''
18391 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
18392 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
18393 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18394 (eval $ac_try) 2>&5
18395 ac_status=$?
18396 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18397 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
18398 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18399 (eval $ac_try) 2>&5
18400 ac_status=$?
18401 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18402 test $ac_status = 0; }; }; then :
18403
18404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18405 $as_echo "yes" >&6; }
18406
18407 $as_echo "#define HAVE_XATTR_LIST_DENTRY 1" >>confdefs.h
18408
18409
18410 else
18411 $as_echo "$as_me: failed program was:" >&5
18412 sed 's/^/| /' conftest.$ac_ext >&5
18413
18414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18415 $as_echo "no" >&6; }
18416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether xattr_handler->list() wants inode" >&5
18417 $as_echo_n "checking whether xattr_handler->list() wants inode... " >&6; }
18418
18419
18420 cat confdefs.h - <<_ACEOF >conftest.c
18421
18422
18423 #include <linux/xattr.h>
18424
18425 size_t list(struct inode *ip, char *lst,
18426 size_t list_size, const char *name,
18427 size_t name_len) { return 0; }
18428 static const struct xattr_handler
18429 xops __attribute__ ((unused)) = {
18430 .list = list,
18431 };
18432
18433 int
18434 main (void)
18435 {
18436
18437
18438 ;
18439 return 0;
18440 }
18441
18442 _ACEOF
18443
18444
18445
18446 cat - <<_ACEOF >conftest.h
18447
18448 _ACEOF
18449
18450
18451 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
18452 echo "obj-m := conftest.o" >build/Makefile
18453 modpost_flag=''
18454 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
18455 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
18456 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18457 (eval $ac_try) 2>&5
18458 ac_status=$?
18459 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18460 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
18461 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18462 (eval $ac_try) 2>&5
18463 ac_status=$?
18464 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18465 test $ac_status = 0; }; }; then :
18466
18467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18468 $as_echo "yes" >&6; }
18469
18470 $as_echo "#define HAVE_XATTR_LIST_INODE 1" >>confdefs.h
18471
18472
18473 else
18474 $as_echo "$as_me: failed program was:" >&5
18475 sed 's/^/| /' conftest.$ac_ext >&5
18476
18477 as_fn_error $? "no; please file a bug report" "$LINENO" 5
18478
18479
18480
18481 fi
18482 rm -Rf build
18483
18484
18485
18486
18487
18488 fi
18489 rm -Rf build
18490
18491
18492
18493
18494
18495 fi
18496 rm -Rf build
18497
18498
18499
18500
18501
18502 fi
18503 rm -Rf build
18504
18505
18506
18507
18508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether inode_owner_or_capable() exists" >&5
18509 $as_echo_n "checking whether inode_owner_or_capable() exists... " >&6; }
18510
18511
18512 cat confdefs.h - <<_ACEOF >conftest.c
18513
18514
18515 #include <linux/fs.h>
18516
18517 int
18518 main (void)
18519 {
18520
18521 struct inode *ip = NULL;
18522 (void) inode_owner_or_capable(ip);
18523
18524 ;
18525 return 0;
18526 }
18527
18528 _ACEOF
18529
18530
18531
18532 cat - <<_ACEOF >conftest.h
18533
18534 _ACEOF
18535
18536
18537 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
18538 echo "obj-m := conftest.o" >build/Makefile
18539 modpost_flag=''
18540 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
18541 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
18542 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18543 (eval $ac_try) 2>&5
18544 ac_status=$?
18545 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18546 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
18547 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18548 (eval $ac_try) 2>&5
18549 ac_status=$?
18550 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18551 test $ac_status = 0; }; }; then :
18552
18553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18554 $as_echo "yes" >&6; }
18555
18556 $as_echo "#define HAVE_INODE_OWNER_OR_CAPABLE 1" >>confdefs.h
18557
18558
18559 else
18560 $as_echo "$as_me: failed program was:" >&5
18561 sed 's/^/| /' conftest.$ac_ext >&5
18562
18563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18564 $as_echo "no" >&6; }
18565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether is_owner_or_cap() exists" >&5
18566 $as_echo_n "checking whether is_owner_or_cap() exists... " >&6; }
18567
18568
18569 cat confdefs.h - <<_ACEOF >conftest.c
18570
18571
18572 #include <linux/fs.h>
18573 #include <linux/sched.h>
18574
18575 int
18576 main (void)
18577 {
18578
18579 struct inode *ip = NULL;
18580 (void) is_owner_or_cap(ip);
18581
18582 ;
18583 return 0;
18584 }
18585
18586 _ACEOF
18587
18588
18589
18590 cat - <<_ACEOF >conftest.h
18591
18592 _ACEOF
18593
18594
18595 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
18596 echo "obj-m := conftest.o" >build/Makefile
18597 modpost_flag=''
18598 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
18599 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
18600 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18601 (eval $ac_try) 2>&5
18602 ac_status=$?
18603 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18604 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
18605 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18606 (eval $ac_try) 2>&5
18607 ac_status=$?
18608 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18609 test $ac_status = 0; }; }; then :
18610
18611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18612 $as_echo "yes" >&6; }
18613
18614 $as_echo "#define HAVE_IS_OWNER_OR_CAP 1" >>confdefs.h
18615
18616
18617 else
18618 $as_echo "$as_me: failed program was:" >&5
18619 sed 's/^/| /' conftest.$ac_ext >&5
18620
18621 as_fn_error $? "no - Please file a bug report at
18622 https://github.com/zfsonlinux/zfs/issues/new" "$LINENO" 5
18623
18624
18625
18626 fi
18627 rm -Rf build
18628
18629
18630
18631
18632
18633 fi
18634 rm -Rf build
18635
18636
18637
18638
18639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether posix_acl_from_xattr() needs user_ns" >&5
18640 $as_echo_n "checking whether posix_acl_from_xattr() needs user_ns... " >&6; }
18641
18642
18643 cat confdefs.h - <<_ACEOF >conftest.c
18644
18645
18646 #include <linux/cred.h>
18647 #include <linux/fs.h>
18648 #include <linux/posix_acl_xattr.h>
18649
18650 int
18651 main (void)
18652 {
18653
18654 posix_acl_from_xattr(&init_user_ns, NULL, 0);
18655
18656 ;
18657 return 0;
18658 }
18659
18660 _ACEOF
18661
18662
18663
18664 cat - <<_ACEOF >conftest.h
18665
18666 _ACEOF
18667
18668
18669 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
18670 echo "obj-m := conftest.o" >build/Makefile
18671 modpost_flag=''
18672 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
18673 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
18674 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18675 (eval $ac_try) 2>&5
18676 ac_status=$?
18677 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18678 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
18679 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18680 (eval $ac_try) 2>&5
18681 ac_status=$?
18682 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18683 test $ac_status = 0; }; }; then :
18684
18685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18686 $as_echo "yes" >&6; }
18687
18688 $as_echo "#define HAVE_POSIX_ACL_FROM_XATTR_USERNS 1" >>confdefs.h
18689
18690
18691 else
18692 $as_echo "$as_me: failed program was:" >&5
18693 sed 's/^/| /' conftest.$ac_ext >&5
18694
18695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18696 $as_echo "no" >&6; }
18697
18698
18699
18700 fi
18701 rm -Rf build
18702
18703
18704
18705
18706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether posix_acl_release() is available" >&5
18707 $as_echo_n "checking whether posix_acl_release() is available... " >&6; }
18708
18709
18710 cat confdefs.h - <<_ACEOF >conftest.c
18711
18712
18713 #include <linux/cred.h>
18714 #include <linux/fs.h>
18715 #include <linux/posix_acl.h>
18716
18717 int
18718 main (void)
18719 {
18720
18721 struct posix_acl* tmp = posix_acl_alloc(1, 0);
18722 posix_acl_release(tmp);
18723
18724 ;
18725 return 0;
18726 }
18727
18728 _ACEOF
18729
18730
18731
18732 cat - <<_ACEOF >conftest.h
18733
18734 _ACEOF
18735
18736
18737 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
18738 echo "obj-m := conftest.o" >build/Makefile
18739 modpost_flag=''
18740 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
18741 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
18742 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18743 (eval $ac_try) 2>&5
18744 ac_status=$?
18745 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18746 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
18747 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18748 (eval $ac_try) 2>&5
18749 ac_status=$?
18750 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18751 test $ac_status = 0; }; }; then :
18752
18753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18754 $as_echo "yes" >&6; }
18755
18756 $as_echo "#define HAVE_POSIX_ACL_RELEASE 1" >>confdefs.h
18757
18758
18759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether posix_acl_release() is GPL-only" >&5
18760 $as_echo_n "checking whether posix_acl_release() is GPL-only... " >&6; }
18761
18762
18763 cat confdefs.h - <<_ACEOF >conftest.c
18764
18765
18766 #include <linux/module.h>
18767 #include <linux/cred.h>
18768 #include <linux/fs.h>
18769 #include <linux/posix_acl.h>
18770
18771 MODULE_LICENSE("$ZFS_META_LICENSE");
18772
18773 int
18774 main (void)
18775 {
18776
18777 struct posix_acl* tmp = posix_acl_alloc(1, 0);
18778 posix_acl_release(tmp);
18779
18780 ;
18781 return 0;
18782 }
18783
18784 _ACEOF
18785
18786
18787
18788 cat - <<_ACEOF >conftest.h
18789
18790 _ACEOF
18791
18792
18793 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
18794 echo "obj-m := conftest.o" >build/Makefile
18795 modpost_flag=''
18796 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
18797 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
18798 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18799 (eval $ac_try) 2>&5
18800 ac_status=$?
18801 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18802 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
18803 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18804 (eval $ac_try) 2>&5
18805 ac_status=$?
18806 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18807 test $ac_status = 0; }; }; then :
18808
18809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18810 $as_echo "no" >&6; }
18811
18812 else
18813 $as_echo "$as_me: failed program was:" >&5
18814 sed 's/^/| /' conftest.$ac_ext >&5
18815
18816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18817 $as_echo "yes" >&6; }
18818
18819 $as_echo "#define HAVE_POSIX_ACL_RELEASE_GPL_ONLY 1" >>confdefs.h
18820
18821
18822
18823
18824 fi
18825 rm -Rf build
18826
18827
18828
18829 else
18830 $as_echo "$as_me: failed program was:" >&5
18831 sed 's/^/| /' conftest.$ac_ext >&5
18832
18833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18834 $as_echo "no" >&6; }
18835
18836
18837
18838 fi
18839 rm -Rf build
18840
18841
18842
18843
18844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether set_cached_acl() is usable" >&5
18845 $as_echo_n "checking whether set_cached_acl() is usable... " >&6; }
18846
18847
18848 cat confdefs.h - <<_ACEOF >conftest.c
18849
18850
18851 #include <linux/module.h>
18852 #include <linux/cred.h>
18853 #include <linux/fs.h>
18854 #include <linux/posix_acl.h>
18855
18856 MODULE_LICENSE("$ZFS_META_LICENSE");
18857
18858 int
18859 main (void)
18860 {
18861
18862 struct inode *ip = NULL;
18863 struct posix_acl *acl = posix_acl_alloc(1, 0);
18864 set_cached_acl(ip, ACL_TYPE_ACCESS, acl);
18865 forget_cached_acl(ip, ACL_TYPE_ACCESS);
18866
18867 ;
18868 return 0;
18869 }
18870
18871 _ACEOF
18872
18873
18874
18875 cat - <<_ACEOF >conftest.h
18876
18877 _ACEOF
18878
18879
18880 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
18881 echo "obj-m := conftest.o" >build/Makefile
18882 modpost_flag=''
18883 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
18884 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
18885 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18886 (eval $ac_try) 2>&5
18887 ac_status=$?
18888 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18889 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
18890 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18891 (eval $ac_try) 2>&5
18892 ac_status=$?
18893 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18894 test $ac_status = 0; }; }; then :
18895
18896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18897 $as_echo "yes" >&6; }
18898
18899 $as_echo "#define HAVE_SET_CACHED_ACL_USABLE 1" >>confdefs.h
18900
18901
18902 else
18903 $as_echo "$as_me: failed program was:" >&5
18904 sed 's/^/| /' conftest.$ac_ext >&5
18905
18906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18907 $as_echo "no" >&6; }
18908
18909
18910
18911 fi
18912 rm -Rf build
18913
18914
18915
18916
18917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether posix_acl_chmod exists" >&5
18918 $as_echo_n "checking whether posix_acl_chmod exists... " >&6; }
18919
18920
18921 cat confdefs.h - <<_ACEOF >conftest.c
18922
18923
18924 #include <linux/fs.h>
18925 #include <linux/posix_acl.h>
18926
18927 int
18928 main (void)
18929 {
18930
18931 posix_acl_chmod(NULL, 0, 0)
18932
18933 ;
18934 return 0;
18935 }
18936
18937 _ACEOF
18938
18939
18940
18941 cat - <<_ACEOF >conftest.h
18942
18943 _ACEOF
18944
18945
18946 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
18947 echo "obj-m := conftest.o" >build/Makefile
18948 modpost_flag=''
18949 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
18950 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
18951 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18952 (eval $ac_try) 2>&5
18953 ac_status=$?
18954 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18955 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
18956 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18957 (eval $ac_try) 2>&5
18958 ac_status=$?
18959 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18960 test $ac_status = 0; }; }; then :
18961
18962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18963 $as_echo "yes" >&6; }
18964
18965 $as_echo "#define HAVE_POSIX_ACL_CHMOD 1" >>confdefs.h
18966
18967
18968 else
18969 $as_echo "$as_me: failed program was:" >&5
18970 sed 's/^/| /' conftest.$ac_ext >&5
18971
18972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18973 $as_echo "no" >&6; }
18974
18975
18976
18977 fi
18978 rm -Rf build
18979
18980
18981
18982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __posix_acl_chmod exists" >&5
18983 $as_echo_n "checking whether __posix_acl_chmod exists... " >&6; }
18984
18985
18986 cat confdefs.h - <<_ACEOF >conftest.c
18987
18988
18989 #include <linux/fs.h>
18990 #include <linux/posix_acl.h>
18991
18992 int
18993 main (void)
18994 {
18995
18996 __posix_acl_chmod(NULL, 0, 0)
18997
18998 ;
18999 return 0;
19000 }
19001
19002 _ACEOF
19003
19004
19005
19006 cat - <<_ACEOF >conftest.h
19007
19008 _ACEOF
19009
19010
19011 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
19012 echo "obj-m := conftest.o" >build/Makefile
19013 modpost_flag=''
19014 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
19015 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
19016 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19017 (eval $ac_try) 2>&5
19018 ac_status=$?
19019 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19020 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
19021 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19022 (eval $ac_try) 2>&5
19023 ac_status=$?
19024 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19025 test $ac_status = 0; }; }; then :
19026
19027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19028 $as_echo "yes" >&6; }
19029
19030 $as_echo "#define HAVE___POSIX_ACL_CHMOD 1" >>confdefs.h
19031
19032
19033 else
19034 $as_echo "$as_me: failed program was:" >&5
19035 sed 's/^/| /' conftest.$ac_ext >&5
19036
19037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19038 $as_echo "no" >&6; }
19039
19040
19041
19042 fi
19043 rm -Rf build
19044
19045
19046
19047
19048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether posix_acl_equiv_mode() wants umode_t" >&5
19049 $as_echo_n "checking whether posix_acl_equiv_mode() wants umode_t... " >&6; }
19050
19051
19052 cat confdefs.h - <<_ACEOF >conftest.c
19053
19054
19055 #include <linux/fs.h>
19056 #include <linux/posix_acl.h>
19057
19058 int
19059 main (void)
19060 {
19061
19062 umode_t tmp;
19063 posix_acl_equiv_mode(NULL,&tmp);
19064
19065 ;
19066 return 0;
19067 }
19068
19069 _ACEOF
19070
19071
19072
19073 cat - <<_ACEOF >conftest.h
19074
19075 _ACEOF
19076
19077
19078 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
19079 echo "obj-m := conftest.o" >build/Makefile
19080 modpost_flag=''
19081 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
19082 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
19083 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19084 (eval $ac_try) 2>&5
19085 ac_status=$?
19086 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19087 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
19088 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19089 (eval $ac_try) 2>&5
19090 ac_status=$?
19091 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19092 test $ac_status = 0; }; }; then :
19093
19094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19095 $as_echo "yes" >&6; }
19096
19097 $as_echo "#define HAVE_POSIX_ACL_EQUIV_MODE_UMODE_T 1" >>confdefs.h
19098
19099
19100 else
19101 $as_echo "$as_me: failed program was:" >&5
19102 sed 's/^/| /' conftest.$ac_ext >&5
19103
19104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19105 $as_echo "no" >&6; }
19106
19107
19108
19109 fi
19110 rm -Rf build
19111
19112
19113
19114
19115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether posix_acl_valid() wants user namespace" >&5
19116 $as_echo_n "checking whether posix_acl_valid() wants user namespace... " >&6; }
19117
19118
19119 cat confdefs.h - <<_ACEOF >conftest.c
19120
19121
19122 #include <linux/fs.h>
19123 #include <linux/posix_acl.h>
19124
19125 int
19126 main (void)
19127 {
19128
19129 struct user_namespace *user_ns = NULL;
19130 const struct posix_acl *acl = NULL;
19131 int error;
19132
19133 error = posix_acl_valid(user_ns, acl);
19134
19135 ;
19136 return 0;
19137 }
19138
19139 _ACEOF
19140
19141
19142
19143 cat - <<_ACEOF >conftest.h
19144
19145 _ACEOF
19146
19147
19148 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
19149 echo "obj-m := conftest.o" >build/Makefile
19150 modpost_flag=''
19151 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
19152 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
19153 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19154 (eval $ac_try) 2>&5
19155 ac_status=$?
19156 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19157 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
19158 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19159 (eval $ac_try) 2>&5
19160 ac_status=$?
19161 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19162 test $ac_status = 0; }; }; then :
19163
19164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19165 $as_echo "yes" >&6; }
19166
19167 $as_echo "#define HAVE_POSIX_ACL_VALID_WITH_NS 1" >>confdefs.h
19168
19169
19170 else
19171 $as_echo "$as_me: failed program was:" >&5
19172 sed 's/^/| /' conftest.$ac_ext >&5
19173
19174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19175 $as_echo "no" >&6; }
19176
19177
19178
19179 fi
19180 rm -Rf build
19181
19182
19183
19184
19185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->permission() exists" >&5
19186 $as_echo_n "checking whether iops->permission() exists... " >&6; }
19187
19188
19189 cat confdefs.h - <<_ACEOF >conftest.c
19190
19191
19192 #include <linux/fs.h>
19193
19194 int permission_fn(struct inode *inode, int mask) { return 0; }
19195
19196 static const struct inode_operations
19197 iops __attribute__ ((unused)) = {
19198 .permission = permission_fn,
19199 };
19200
19201 int
19202 main (void)
19203 {
19204
19205
19206 ;
19207 return 0;
19208 }
19209
19210 _ACEOF
19211
19212
19213
19214 cat - <<_ACEOF >conftest.h
19215
19216 _ACEOF
19217
19218
19219 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
19220 echo "obj-m := conftest.o" >build/Makefile
19221 modpost_flag=''
19222 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
19223 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
19224 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19225 (eval $ac_try) 2>&5
19226 ac_status=$?
19227 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19228 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
19229 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19230 (eval $ac_try) 2>&5
19231 ac_status=$?
19232 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19233 test $ac_status = 0; }; }; then :
19234
19235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19236 $as_echo "yes" >&6; }
19237
19238 $as_echo "#define HAVE_PERMISSION 1" >>confdefs.h
19239
19240
19241 else
19242 $as_echo "$as_me: failed program was:" >&5
19243 sed 's/^/| /' conftest.$ac_ext >&5
19244
19245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19246 $as_echo "no" >&6; }
19247
19248
19249
19250 fi
19251 rm -Rf build
19252
19253
19254
19255
19256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->permission() wants nameidata" >&5
19257 $as_echo_n "checking whether iops->permission() wants nameidata... " >&6; }
19258
19259
19260 cat confdefs.h - <<_ACEOF >conftest.c
19261
19262
19263 #include <linux/fs.h>
19264
19265 int permission_fn(struct inode *inode, int mask,
19266 struct nameidata *nd) { return 0; }
19267
19268 static const struct inode_operations
19269 iops __attribute__ ((unused)) = {
19270 .permission = permission_fn,
19271 };
19272
19273 int
19274 main (void)
19275 {
19276
19277
19278 ;
19279 return 0;
19280 }
19281
19282 _ACEOF
19283
19284
19285
19286 cat - <<_ACEOF >conftest.h
19287
19288 _ACEOF
19289
19290
19291 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
19292 echo "obj-m := conftest.o" >build/Makefile
19293 modpost_flag=''
19294 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
19295 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
19296 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19297 (eval $ac_try) 2>&5
19298 ac_status=$?
19299 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19300 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
19301 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19302 (eval $ac_try) 2>&5
19303 ac_status=$?
19304 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19305 test $ac_status = 0; }; }; then :
19306
19307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19308 $as_echo "yes" >&6; }
19309
19310 $as_echo "#define HAVE_PERMISSION 1" >>confdefs.h
19311
19312
19313 $as_echo "#define HAVE_PERMISSION_WITH_NAMEIDATA 1" >>confdefs.h
19314
19315
19316 else
19317 $as_echo "$as_me: failed program was:" >&5
19318 sed 's/^/| /' conftest.$ac_ext >&5
19319
19320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19321 $as_echo "no" >&6; }
19322
19323
19324
19325 fi
19326 rm -Rf build
19327
19328
19329
19330
19331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->check_acl() exists" >&5
19332 $as_echo_n "checking whether iops->check_acl() exists... " >&6; }
19333
19334
19335 cat confdefs.h - <<_ACEOF >conftest.c
19336
19337
19338 #include <linux/fs.h>
19339
19340 int check_acl_fn(struct inode *inode, int mask) { return 0; }
19341
19342 static const struct inode_operations
19343 iops __attribute__ ((unused)) = {
19344 .check_acl = check_acl_fn,
19345 };
19346
19347 int
19348 main (void)
19349 {
19350
19351
19352 ;
19353 return 0;
19354 }
19355
19356 _ACEOF
19357
19358
19359
19360 cat - <<_ACEOF >conftest.h
19361
19362 _ACEOF
19363
19364
19365 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
19366 echo "obj-m := conftest.o" >build/Makefile
19367 modpost_flag=''
19368 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
19369 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
19370 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19371 (eval $ac_try) 2>&5
19372 ac_status=$?
19373 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19374 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
19375 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19376 (eval $ac_try) 2>&5
19377 ac_status=$?
19378 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19379 test $ac_status = 0; }; }; then :
19380
19381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19382 $as_echo "yes" >&6; }
19383
19384 $as_echo "#define HAVE_CHECK_ACL 1" >>confdefs.h
19385
19386
19387 else
19388 $as_echo "$as_me: failed program was:" >&5
19389 sed 's/^/| /' conftest.$ac_ext >&5
19390
19391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19392 $as_echo "no" >&6; }
19393
19394
19395
19396 fi
19397 rm -Rf build
19398
19399
19400
19401
19402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->check_acl() wants flags" >&5
19403 $as_echo_n "checking whether iops->check_acl() wants flags... " >&6; }
19404
19405
19406 cat confdefs.h - <<_ACEOF >conftest.c
19407
19408
19409 #include <linux/fs.h>
19410
19411 int check_acl_fn(struct inode *inode, int mask,
19412 unsigned int flags) { return 0; }
19413
19414 static const struct inode_operations
19415 iops __attribute__ ((unused)) = {
19416 .check_acl = check_acl_fn,
19417 };
19418
19419 int
19420 main (void)
19421 {
19422
19423
19424 ;
19425 return 0;
19426 }
19427
19428 _ACEOF
19429
19430
19431
19432 cat - <<_ACEOF >conftest.h
19433
19434 _ACEOF
19435
19436
19437 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
19438 echo "obj-m := conftest.o" >build/Makefile
19439 modpost_flag=''
19440 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
19441 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
19442 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19443 (eval $ac_try) 2>&5
19444 ac_status=$?
19445 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19446 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
19447 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19448 (eval $ac_try) 2>&5
19449 ac_status=$?
19450 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19451 test $ac_status = 0; }; }; then :
19452
19453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19454 $as_echo "yes" >&6; }
19455
19456 $as_echo "#define HAVE_CHECK_ACL 1" >>confdefs.h
19457
19458
19459 $as_echo "#define HAVE_CHECK_ACL_WITH_FLAGS 1" >>confdefs.h
19460
19461
19462 else
19463 $as_echo "$as_me: failed program was:" >&5
19464 sed 's/^/| /' conftest.$ac_ext >&5
19465
19466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19467 $as_echo "no" >&6; }
19468
19469
19470
19471 fi
19472 rm -Rf build
19473
19474
19475
19476
19477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->get_acl() exists" >&5
19478 $as_echo_n "checking whether iops->get_acl() exists... " >&6; }
19479
19480
19481 cat confdefs.h - <<_ACEOF >conftest.c
19482
19483
19484 #include <linux/fs.h>
19485
19486 struct posix_acl *get_acl_fn(struct inode *inode, int type)
19487 { return NULL; }
19488
19489 static const struct inode_operations
19490 iops __attribute__ ((unused)) = {
19491 .get_acl = get_acl_fn,
19492 };
19493
19494 int
19495 main (void)
19496 {
19497
19498
19499 ;
19500 return 0;
19501 }
19502
19503 _ACEOF
19504
19505
19506
19507 cat - <<_ACEOF >conftest.h
19508
19509 _ACEOF
19510
19511
19512 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
19513 echo "obj-m := conftest.o" >build/Makefile
19514 modpost_flag=''
19515 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
19516 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
19517 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19518 (eval $ac_try) 2>&5
19519 ac_status=$?
19520 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19521 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
19522 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19523 (eval $ac_try) 2>&5
19524 ac_status=$?
19525 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19526 test $ac_status = 0; }; }; then :
19527
19528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19529 $as_echo "yes" >&6; }
19530
19531 $as_echo "#define HAVE_GET_ACL 1" >>confdefs.h
19532
19533
19534 else
19535 $as_echo "$as_me: failed program was:" >&5
19536 sed 's/^/| /' conftest.$ac_ext >&5
19537
19538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19539 $as_echo "no" >&6; }
19540
19541
19542
19543 fi
19544 rm -Rf build
19545
19546
19547
19548
19549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->set_acl() exists" >&5
19550 $as_echo_n "checking whether iops->set_acl() exists... " >&6; }
19551
19552
19553 cat confdefs.h - <<_ACEOF >conftest.c
19554
19555
19556 #include <linux/fs.h>
19557
19558 int set_acl_fn(struct inode *inode, struct posix_acl *acl, int type)
19559 { return 0; }
19560
19561 static const struct inode_operations
19562 iops __attribute__ ((unused)) = {
19563 .set_acl = set_acl_fn,
19564 };
19565
19566 int
19567 main (void)
19568 {
19569
19570
19571 ;
19572 return 0;
19573 }
19574
19575 _ACEOF
19576
19577
19578
19579 cat - <<_ACEOF >conftest.h
19580
19581 _ACEOF
19582
19583
19584 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
19585 echo "obj-m := conftest.o" >build/Makefile
19586 modpost_flag=''
19587 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
19588 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
19589 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19590 (eval $ac_try) 2>&5
19591 ac_status=$?
19592 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19593 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
19594 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19595 (eval $ac_try) 2>&5
19596 ac_status=$?
19597 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19598 test $ac_status = 0; }; }; then :
19599
19600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19601 $as_echo "yes" >&6; }
19602
19603 $as_echo "#define HAVE_SET_ACL 1" >>confdefs.h
19604
19605
19606 else
19607 $as_echo "$as_me: failed program was:" >&5
19608 sed 's/^/| /' conftest.$ac_ext >&5
19609
19610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19611 $as_echo "no" >&6; }
19612
19613
19614
19615 fi
19616 rm -Rf build
19617
19618
19619
19620
19621
19622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->getattr() takes a path" >&5
19623 $as_echo_n "checking whether iops->getattr() takes a path... " >&6; }
19624
19625
19626 cat confdefs.h - <<_ACEOF >conftest.c
19627
19628
19629 #include <linux/fs.h>
19630
19631 int test_getattr(
19632 const struct path *p, struct kstat *k,
19633 u32 request_mask, unsigned int query_flags)
19634 { return 0; }
19635
19636 static const struct inode_operations
19637 iops __attribute__ ((unused)) = {
19638 .getattr = test_getattr,
19639 };
19640
19641 int
19642 main (void)
19643 {
19644
19645
19646 ;
19647 return 0;
19648 }
19649
19650 _ACEOF
19651
19652
19653
19654 cat - <<_ACEOF >conftest.h
19655
19656 _ACEOF
19657
19658
19659 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
19660 echo "obj-m := conftest.o" >build/Makefile
19661 modpost_flag=''
19662 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
19663 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
19664 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19665 (eval $ac_try) 2>&5
19666 ac_status=$?
19667 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19668 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
19669 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19670 (eval $ac_try) 2>&5
19671 ac_status=$?
19672 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19673 test $ac_status = 0; }; }; then :
19674
19675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19676 $as_echo "yes" >&6; }
19677
19678 $as_echo "#define HAVE_PATH_IOPS_GETATTR 1" >>confdefs.h
19679
19680
19681 else
19682 $as_echo "$as_me: failed program was:" >&5
19683 sed 's/^/| /' conftest.$ac_ext >&5
19684
19685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19686 $as_echo "no" >&6; }
19687
19688
19689
19690 fi
19691 rm -Rf build
19692
19693
19694
19695
19696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->getattr() takes a vfsmount" >&5
19697 $as_echo_n "checking whether iops->getattr() takes a vfsmount... " >&6; }
19698
19699
19700 cat confdefs.h - <<_ACEOF >conftest.c
19701
19702
19703 #include <linux/fs.h>
19704
19705 int test_getattr(
19706 struct vfsmount *mnt, struct dentry *d,
19707 struct kstat *k)
19708 { return 0; }
19709
19710 static const struct inode_operations
19711 iops __attribute__ ((unused)) = {
19712 .getattr = test_getattr,
19713 };
19714
19715 int
19716 main (void)
19717 {
19718
19719
19720 ;
19721 return 0;
19722 }
19723
19724 _ACEOF
19725
19726
19727
19728 cat - <<_ACEOF >conftest.h
19729
19730 _ACEOF
19731
19732
19733 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
19734 echo "obj-m := conftest.o" >build/Makefile
19735 modpost_flag=''
19736 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
19737 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
19738 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19739 (eval $ac_try) 2>&5
19740 ac_status=$?
19741 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19742 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
19743 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19744 (eval $ac_try) 2>&5
19745 ac_status=$?
19746 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19747 test $ac_status = 0; }; }; then :
19748
19749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19750 $as_echo "yes" >&6; }
19751
19752 $as_echo "#define HAVE_VFSMOUNT_IOPS_GETATTR 1" >>confdefs.h
19753
19754
19755 else
19756 $as_echo "$as_me: failed program was:" >&5
19757 sed 's/^/| /' conftest.$ac_ext >&5
19758
19759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19760 $as_echo "no" >&6; }
19761
19762
19763
19764 fi
19765 rm -Rf build
19766
19767
19768
19769
19770
19771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether inode_set_flags() exists" >&5
19772 $as_echo_n "checking whether inode_set_flags() exists... " >&6; }
19773
19774
19775 cat confdefs.h - <<_ACEOF >conftest.c
19776
19777
19778 #include <linux/fs.h>
19779
19780 int
19781 main (void)
19782 {
19783
19784 struct inode inode;
19785 inode_set_flags(&inode, S_IMMUTABLE, S_IMMUTABLE);
19786
19787 ;
19788 return 0;
19789 }
19790
19791 _ACEOF
19792
19793
19794
19795 cat - <<_ACEOF >conftest.h
19796
19797 _ACEOF
19798
19799
19800 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
19801 echo "obj-m := conftest.o" >build/Makefile
19802 modpost_flag=''
19803 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
19804 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
19805 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19806 (eval $ac_try) 2>&5
19807 ac_status=$?
19808 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19809 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
19810 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19811 (eval $ac_try) 2>&5
19812 ac_status=$?
19813 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19814 test $ac_status = 0; }; }; then :
19815
19816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19817 $as_echo "yes" >&6; }
19818
19819 $as_echo "#define HAVE_INODE_SET_FLAGS 1" >>confdefs.h
19820
19821
19822 else
19823 $as_echo "$as_me: failed program was:" >&5
19824 sed 's/^/| /' conftest.$ac_ext >&5
19825
19826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19827 $as_echo "no" >&6; }
19828
19829
19830
19831 fi
19832 rm -Rf build
19833
19834
19835
19836
19837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether uncached_acl_sentinel() exists" >&5
19838 $as_echo_n "checking whether uncached_acl_sentinel() exists... " >&6; }
19839
19840
19841 cat confdefs.h - <<_ACEOF >conftest.c
19842
19843
19844 #include <linux/fs.h>
19845
19846 int
19847 main (void)
19848 {
19849
19850 void *sentinel __attribute__ ((unused)) = uncached_acl_sentinel(NULL);
19851
19852 ;
19853 return 0;
19854 }
19855
19856 _ACEOF
19857
19858
19859
19860 cat - <<_ACEOF >conftest.h
19861
19862 _ACEOF
19863
19864
19865 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
19866 echo "obj-m := conftest.o" >build/Makefile
19867 modpost_flag=''
19868 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
19869 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
19870 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19871 (eval $ac_try) 2>&5
19872 ac_status=$?
19873 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19874 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
19875 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19876 (eval $ac_try) 2>&5
19877 ac_status=$?
19878 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19879 test $ac_status = 0; }; }; then :
19880
19881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19882 $as_echo "yes" >&6; }
19883
19884 $as_echo "#define HAVE_KERNEL_GET_ACL_HANDLE_CACHE 1" >>confdefs.h
19885
19886
19887 else
19888 $as_echo "$as_me: failed program was:" >&5
19889 sed 's/^/| /' conftest.$ac_ext >&5
19890
19891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19892 $as_echo "no" >&6; }
19893
19894
19895
19896 fi
19897 rm -Rf build
19898
19899
19900
19901
19902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sops->show_options() wants dentry" >&5
19903 $as_echo_n "checking whether sops->show_options() wants dentry... " >&6; }
19904
19905
19906
19907 cat confdefs.h - <<_ACEOF >conftest.c
19908
19909
19910 #include <linux/fs.h>
19911
19912 int show_options (struct seq_file * x, struct dentry * y) { return 0; };
19913 static struct super_operations sops __attribute__ ((unused)) = {
19914 .show_options = show_options,
19915 };
19916
19917 int
19918 main (void)
19919 {
19920
19921
19922 ;
19923 return 0;
19924 }
19925
19926 _ACEOF
19927
19928
19929
19930 cat - <<_ACEOF >conftest.h
19931
19932 _ACEOF
19933
19934
19935 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
19936 echo "obj-m := conftest.o" >build/Makefile
19937 modpost_flag=''
19938 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
19939 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
19940 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19941 (eval $ac_try) 2>&5
19942 ac_status=$?
19943 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19944 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
19945 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19946 (eval $ac_try) 2>&5
19947 ac_status=$?
19948 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19949 test $ac_status = 0; }; }; then :
19950
19951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19952 $as_echo "yes" >&6; }
19953
19954 $as_echo "#define HAVE_SHOW_OPTIONS_WITH_DENTRY 1" >>confdefs.h
19955
19956
19957 else
19958 $as_echo "$as_me: failed program was:" >&5
19959 sed 's/^/| /' conftest.$ac_ext >&5
19960
19961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19962 $as_echo "no" >&6; }
19963
19964
19965
19966 fi
19967 rm -Rf build
19968
19969
19970
19971
19972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether file_inode() is available" >&5
19973 $as_echo_n "checking whether file_inode() is available... " >&6; }
19974
19975
19976 cat confdefs.h - <<_ACEOF >conftest.c
19977
19978
19979 #include <linux/fs.h>
19980
19981 int
19982 main (void)
19983 {
19984
19985 struct file *f = NULL;
19986 file_inode(f);
19987
19988 ;
19989 return 0;
19990 }
19991
19992 _ACEOF
19993
19994
19995
19996 cat - <<_ACEOF >conftest.h
19997
19998 _ACEOF
19999
20000
20001 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
20002 echo "obj-m := conftest.o" >build/Makefile
20003 modpost_flag=''
20004 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
20005 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
20006 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20007 (eval $ac_try) 2>&5
20008 ac_status=$?
20009 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20010 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
20011 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20012 (eval $ac_try) 2>&5
20013 ac_status=$?
20014 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20015 test $ac_status = 0; }; }; then :
20016
20017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20018 $as_echo "yes" >&6; }
20019
20020 $as_echo "#define HAVE_FILE_INODE 1" >>confdefs.h
20021
20022
20023 else
20024 $as_echo "$as_me: failed program was:" >&5
20025 sed 's/^/| /' conftest.$ac_ext >&5
20026
20027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20028 $as_echo "no" >&6; }
20029
20030
20031
20032 fi
20033 rm -Rf build
20034
20035
20036
20037
20038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether file_dentry() is available" >&5
20039 $as_echo_n "checking whether file_dentry() is available... " >&6; }
20040
20041
20042 cat confdefs.h - <<_ACEOF >conftest.c
20043
20044
20045 #include <linux/fs.h>
20046
20047 int
20048 main (void)
20049 {
20050
20051 struct file *f = NULL;
20052 file_dentry(f);
20053
20054 ;
20055 return 0;
20056 }
20057
20058 _ACEOF
20059
20060
20061
20062 cat - <<_ACEOF >conftest.h
20063
20064 _ACEOF
20065
20066
20067 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
20068 echo "obj-m := conftest.o" >build/Makefile
20069 modpost_flag=''
20070 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
20071 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
20072 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20073 (eval $ac_try) 2>&5
20074 ac_status=$?
20075 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20076 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
20077 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20078 (eval $ac_try) 2>&5
20079 ac_status=$?
20080 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20081 test $ac_status = 0; }; }; then :
20082
20083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20084 $as_echo "yes" >&6; }
20085
20086 $as_echo "#define HAVE_FILE_DENTRY 1" >>confdefs.h
20087
20088
20089 else
20090 $as_echo "$as_me: failed program was:" >&5
20091 sed 's/^/| /' conftest.$ac_ext >&5
20092
20093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20094 $as_echo "no" >&6; }
20095
20096
20097
20098 fi
20099 rm -Rf build
20100
20101
20102
20103
20104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fops->fsync() wants" >&5
20105 $as_echo_n "checking whether fops->fsync() wants... " >&6; }
20106
20107
20108
20109 cat confdefs.h - <<_ACEOF >conftest.c
20110
20111
20112 #include <linux/fs.h>
20113
20114 int test_fsync(struct file *f, struct dentry *dentry, int x)
20115 { return 0; }
20116
20117 static const struct file_operations
20118 fops __attribute__ ((unused)) = {
20119 .fsync = test_fsync,
20120 };
20121
20122 int
20123 main (void)
20124 {
20125
20126
20127 ;
20128 return 0;
20129 }
20130
20131 _ACEOF
20132
20133
20134
20135 cat - <<_ACEOF >conftest.h
20136
20137 _ACEOF
20138
20139
20140 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
20141 echo "obj-m := conftest.o" >build/Makefile
20142 modpost_flag=''
20143 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
20144 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
20145 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20146 (eval $ac_try) 2>&5
20147 ac_status=$?
20148 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20149 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
20150 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20151 (eval $ac_try) 2>&5
20152 ac_status=$?
20153 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20154 test $ac_status = 0; }; }; then :
20155
20156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: dentry" >&5
20157 $as_echo "dentry" >&6; }
20158
20159 $as_echo "#define HAVE_FSYNC_WITH_DENTRY 1" >>confdefs.h
20160
20161
20162 else
20163 $as_echo "$as_me: failed program was:" >&5
20164 sed 's/^/| /' conftest.$ac_ext >&5
20165
20166
20167
20168
20169 fi
20170 rm -Rf build
20171
20172
20173
20174
20175
20176
20177 cat confdefs.h - <<_ACEOF >conftest.c
20178
20179
20180 #include <linux/fs.h>
20181
20182 int test_fsync(struct file *f, int x) { return 0; }
20183
20184 static const struct file_operations
20185 fops __attribute__ ((unused)) = {
20186 .fsync = test_fsync,
20187 };
20188
20189 int
20190 main (void)
20191 {
20192
20193
20194 ;
20195 return 0;
20196 }
20197
20198 _ACEOF
20199
20200
20201
20202 cat - <<_ACEOF >conftest.h
20203
20204 _ACEOF
20205
20206
20207 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
20208 echo "obj-m := conftest.o" >build/Makefile
20209 modpost_flag=''
20210 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
20211 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
20212 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20213 (eval $ac_try) 2>&5
20214 ac_status=$?
20215 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20216 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
20217 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20218 (eval $ac_try) 2>&5
20219 ac_status=$?
20220 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20221 test $ac_status = 0; }; }; then :
20222
20223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no dentry" >&5
20224 $as_echo "no dentry" >&6; }
20225
20226 $as_echo "#define HAVE_FSYNC_WITHOUT_DENTRY 1" >>confdefs.h
20227
20228
20229 else
20230 $as_echo "$as_me: failed program was:" >&5
20231 sed 's/^/| /' conftest.$ac_ext >&5
20232
20233
20234
20235
20236 fi
20237 rm -Rf build
20238
20239
20240
20241
20242
20243
20244 cat confdefs.h - <<_ACEOF >conftest.c
20245
20246
20247 #include <linux/fs.h>
20248
20249 int test_fsync(struct file *f, loff_t a, loff_t b, int c)
20250 { return 0; }
20251
20252 static const struct file_operations
20253 fops __attribute__ ((unused)) = {
20254 .fsync = test_fsync,
20255 };
20256
20257 int
20258 main (void)
20259 {
20260
20261
20262 ;
20263 return 0;
20264 }
20265
20266 _ACEOF
20267
20268
20269
20270 cat - <<_ACEOF >conftest.h
20271
20272 _ACEOF
20273
20274
20275 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
20276 echo "obj-m := conftest.o" >build/Makefile
20277 modpost_flag=''
20278 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
20279 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
20280 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20281 (eval $ac_try) 2>&5
20282 ac_status=$?
20283 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20284 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
20285 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20286 (eval $ac_try) 2>&5
20287 ac_status=$?
20288 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20289 test $ac_status = 0; }; }; then :
20290
20291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: range" >&5
20292 $as_echo "range" >&6; }
20293
20294 $as_echo "#define HAVE_FSYNC_RANGE 1" >>confdefs.h
20295
20296
20297 else
20298 $as_echo "$as_me: failed program was:" >&5
20299 sed 's/^/| /' conftest.$ac_ext >&5
20300
20301
20302
20303
20304 fi
20305 rm -Rf build
20306
20307
20308
20309
20310
20311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sops->evict_inode() exists" >&5
20312 $as_echo_n "checking whether sops->evict_inode() exists... " >&6; }
20313
20314
20315 cat confdefs.h - <<_ACEOF >conftest.c
20316
20317
20318 #include <linux/fs.h>
20319 void evict_inode (struct inode * t) { return; }
20320 static struct super_operations sops __attribute__ ((unused)) = {
20321 .evict_inode = evict_inode,
20322 };
20323
20324 int
20325 main (void)
20326 {
20327
20328
20329 ;
20330 return 0;
20331 }
20332
20333 _ACEOF
20334
20335
20336
20337 cat - <<_ACEOF >conftest.h
20338
20339 _ACEOF
20340
20341
20342 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
20343 echo "obj-m := conftest.o" >build/Makefile
20344 modpost_flag=''
20345 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
20346 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
20347 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20348 (eval $ac_try) 2>&5
20349 ac_status=$?
20350 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20351 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
20352 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20353 (eval $ac_try) 2>&5
20354 ac_status=$?
20355 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20356 test $ac_status = 0; }; }; then :
20357
20358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20359 $as_echo "yes" >&6; }
20360
20361 $as_echo "#define HAVE_EVICT_INODE 1" >>confdefs.h
20362
20363
20364 else
20365 $as_echo "$as_me: failed program was:" >&5
20366 sed 's/^/| /' conftest.$ac_ext >&5
20367
20368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20369 $as_echo "no" >&6; }
20370
20371
20372
20373 fi
20374 rm -Rf build
20375
20376
20377
20378
20379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sops->dirty_inode() wants flags" >&5
20380 $as_echo_n "checking whether sops->dirty_inode() wants flags... " >&6; }
20381
20382
20383 cat confdefs.h - <<_ACEOF >conftest.c
20384
20385
20386 #include <linux/fs.h>
20387
20388 void dirty_inode(struct inode *a, int b) { return; }
20389
20390 static const struct super_operations
20391 sops __attribute__ ((unused)) = {
20392 .dirty_inode = dirty_inode,
20393 };
20394
20395 int
20396 main (void)
20397 {
20398
20399
20400 ;
20401 return 0;
20402 }
20403
20404 _ACEOF
20405
20406
20407
20408 cat - <<_ACEOF >conftest.h
20409
20410 _ACEOF
20411
20412
20413 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
20414 echo "obj-m := conftest.o" >build/Makefile
20415 modpost_flag=''
20416 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
20417 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
20418 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20419 (eval $ac_try) 2>&5
20420 ac_status=$?
20421 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20422 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
20423 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20424 (eval $ac_try) 2>&5
20425 ac_status=$?
20426 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20427 test $ac_status = 0; }; }; then :
20428
20429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20430 $as_echo "yes" >&6; }
20431
20432 $as_echo "#define HAVE_DIRTY_INODE_WITH_FLAGS 1" >>confdefs.h
20433
20434
20435 else
20436 $as_echo "$as_me: failed program was:" >&5
20437 sed 's/^/| /' conftest.$ac_ext >&5
20438
20439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20440 $as_echo "no" >&6; }
20441
20442
20443
20444 fi
20445 rm -Rf build
20446
20447
20448
20449
20450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sops->nr_cached_objects() exists" >&5
20451 $as_echo_n "checking whether sops->nr_cached_objects() exists... " >&6; }
20452
20453
20454 cat confdefs.h - <<_ACEOF >conftest.c
20455
20456
20457 #include <linux/fs.h>
20458
20459 int nr_cached_objects(struct super_block *sb) { return 0; }
20460
20461 static const struct super_operations
20462 sops __attribute__ ((unused)) = {
20463 .nr_cached_objects = nr_cached_objects,
20464 };
20465
20466 int
20467 main (void)
20468 {
20469
20470
20471 ;
20472 return 0;
20473 }
20474
20475 _ACEOF
20476
20477
20478
20479 cat - <<_ACEOF >conftest.h
20480
20481 _ACEOF
20482
20483
20484 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
20485 echo "obj-m := conftest.o" >build/Makefile
20486 modpost_flag=''
20487 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
20488 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
20489 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20490 (eval $ac_try) 2>&5
20491 ac_status=$?
20492 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20493 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
20494 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20495 (eval $ac_try) 2>&5
20496 ac_status=$?
20497 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20498 test $ac_status = 0; }; }; then :
20499
20500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20501 $as_echo "yes" >&6; }
20502
20503 $as_echo "#define HAVE_NR_CACHED_OBJECTS 1" >>confdefs.h
20504
20505
20506 else
20507 $as_echo "$as_me: failed program was:" >&5
20508 sed 's/^/| /' conftest.$ac_ext >&5
20509
20510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20511 $as_echo "no" >&6; }
20512
20513
20514
20515 fi
20516 rm -Rf build
20517
20518
20519
20520
20521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sops->free_cached_objects() exists" >&5
20522 $as_echo_n "checking whether sops->free_cached_objects() exists... " >&6; }
20523
20524
20525 cat confdefs.h - <<_ACEOF >conftest.c
20526
20527
20528 #include <linux/fs.h>
20529
20530 void free_cached_objects(struct super_block *sb, int x)
20531 { return; }
20532
20533 static const struct super_operations
20534 sops __attribute__ ((unused)) = {
20535 .free_cached_objects = free_cached_objects,
20536 };
20537
20538 int
20539 main (void)
20540 {
20541
20542
20543 ;
20544 return 0;
20545 }
20546
20547 _ACEOF
20548
20549
20550
20551 cat - <<_ACEOF >conftest.h
20552
20553 _ACEOF
20554
20555
20556 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
20557 echo "obj-m := conftest.o" >build/Makefile
20558 modpost_flag=''
20559 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
20560 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
20561 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20562 (eval $ac_try) 2>&5
20563 ac_status=$?
20564 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20565 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
20566 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20567 (eval $ac_try) 2>&5
20568 ac_status=$?
20569 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20570 test $ac_status = 0; }; }; then :
20571
20572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20573 $as_echo "yes" >&6; }
20574
20575 $as_echo "#define HAVE_FREE_CACHED_OBJECTS 1" >>confdefs.h
20576
20577
20578 else
20579 $as_echo "$as_me: failed program was:" >&5
20580 sed 's/^/| /' conftest.$ac_ext >&5
20581
20582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20583 $as_echo "no" >&6; }
20584
20585
20586
20587 fi
20588 rm -Rf build
20589
20590
20591
20592
20593
20594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fops->fallocate() exists" >&5
20595 $as_echo_n "checking whether fops->fallocate() exists... " >&6; }
20596
20597
20598 cat confdefs.h - <<_ACEOF >conftest.c
20599
20600
20601 #include <linux/fs.h>
20602
20603 long test_fallocate(struct file *file, int mode,
20604 loff_t offset, loff_t len) { return 0; }
20605
20606 static const struct file_operations
20607 fops __attribute__ ((unused)) = {
20608 .fallocate = test_fallocate,
20609 };
20610
20611 int
20612 main (void)
20613 {
20614
20615
20616 ;
20617 return 0;
20618 }
20619
20620 _ACEOF
20621
20622
20623
20624 cat - <<_ACEOF >conftest.h
20625
20626 _ACEOF
20627
20628
20629 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
20630 echo "obj-m := conftest.o" >build/Makefile
20631 modpost_flag=''
20632 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
20633 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
20634 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20635 (eval $ac_try) 2>&5
20636 ac_status=$?
20637 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20638 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
20639 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20640 (eval $ac_try) 2>&5
20641 ac_status=$?
20642 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20643 test $ac_status = 0; }; }; then :
20644
20645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20646 $as_echo "yes" >&6; }
20647
20648 $as_echo "#define HAVE_FILE_FALLOCATE 1" >>confdefs.h
20649
20650
20651 else
20652 $as_echo "$as_me: failed program was:" >&5
20653 sed 's/^/| /' conftest.$ac_ext >&5
20654
20655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20656 $as_echo "no" >&6; }
20657
20658
20659
20660 fi
20661 rm -Rf build
20662
20663
20664
20665
20666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->fallocate() exists" >&5
20667 $as_echo_n "checking whether iops->fallocate() exists... " >&6; }
20668
20669
20670 cat confdefs.h - <<_ACEOF >conftest.c
20671
20672
20673 #include <linux/fs.h>
20674
20675 long test_fallocate(struct inode *inode, int mode,
20676 loff_t offset, loff_t len) { return 0; }
20677
20678 static const struct inode_operations
20679 fops __attribute__ ((unused)) = {
20680 .fallocate = test_fallocate,
20681 };
20682
20683 int
20684 main (void)
20685 {
20686
20687
20688 ;
20689 return 0;
20690 }
20691
20692 _ACEOF
20693
20694
20695
20696 cat - <<_ACEOF >conftest.h
20697
20698 _ACEOF
20699
20700
20701 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
20702 echo "obj-m := conftest.o" >build/Makefile
20703 modpost_flag=''
20704 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
20705 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
20706 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20707 (eval $ac_try) 2>&5
20708 ac_status=$?
20709 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20710 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
20711 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20712 (eval $ac_try) 2>&5
20713 ac_status=$?
20714 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20715 test $ac_status = 0; }; }; then :
20716
20717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20718 $as_echo "yes" >&6; }
20719
20720 $as_echo "#define HAVE_INODE_FALLOCATE 1" >>confdefs.h
20721
20722
20723 else
20724 $as_echo "$as_me: failed program was:" >&5
20725 sed 's/^/| /' conftest.$ac_ext >&5
20726
20727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20728 $as_echo "no" >&6; }
20729
20730
20731
20732 fi
20733 rm -Rf build
20734
20735
20736
20737
20738
20739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fops->aio_fsync() exists" >&5
20740 $as_echo_n "checking whether fops->aio_fsync() exists... " >&6; }
20741
20742
20743 cat confdefs.h - <<_ACEOF >conftest.c
20744
20745
20746 #include <linux/fs.h>
20747
20748 static const struct file_operations
20749 fops __attribute__ ((unused)) = {
20750 .aio_fsync = NULL,
20751 };
20752
20753 int
20754 main (void)
20755 {
20756
20757
20758 ;
20759 return 0;
20760 }
20761
20762 _ACEOF
20763
20764
20765
20766 cat - <<_ACEOF >conftest.h
20767
20768 _ACEOF
20769
20770
20771 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
20772 echo "obj-m := conftest.o" >build/Makefile
20773 modpost_flag=''
20774 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
20775 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
20776 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20777 (eval $ac_try) 2>&5
20778 ac_status=$?
20779 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20780 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
20781 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20782 (eval $ac_try) 2>&5
20783 ac_status=$?
20784 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20785 test $ac_status = 0; }; }; then :
20786
20787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20788 $as_echo "yes" >&6; }
20789
20790 $as_echo "#define HAVE_FILE_AIO_FSYNC 1" >>confdefs.h
20791
20792
20793 else
20794 $as_echo "$as_me: failed program was:" >&5
20795 sed 's/^/| /' conftest.$ac_ext >&5
20796
20797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20798 $as_echo "no" >&6; }
20799
20800
20801
20802 fi
20803 rm -Rf build
20804
20805
20806
20807
20808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->create()/mkdir()/mknod() take umode_t" >&5
20809 $as_echo_n "checking whether iops->create()/mkdir()/mknod() take umode_t... " >&6; }
20810
20811
20812 cat confdefs.h - <<_ACEOF >conftest.c
20813
20814
20815 #include <linux/fs.h>
20816
20817 int mkdir(struct inode *inode, struct dentry *dentry,
20818 umode_t umode) { return 0; }
20819
20820 static const struct inode_operations
20821 iops __attribute__ ((unused)) = {
20822 .mkdir = mkdir,
20823 };
20824
20825 int
20826 main (void)
20827 {
20828
20829
20830 ;
20831 return 0;
20832 }
20833
20834 _ACEOF
20835
20836
20837
20838 cat - <<_ACEOF >conftest.h
20839
20840 _ACEOF
20841
20842
20843 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
20844 echo "obj-m := conftest.o" >build/Makefile
20845 modpost_flag=''
20846 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
20847 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
20848 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20849 (eval $ac_try) 2>&5
20850 ac_status=$?
20851 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20852 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
20853 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20854 (eval $ac_try) 2>&5
20855 ac_status=$?
20856 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20857 test $ac_status = 0; }; }; then :
20858
20859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20860 $as_echo "yes" >&6; }
20861
20862 $as_echo "#define HAVE_MKDIR_UMODE_T 1" >>confdefs.h
20863
20864
20865 else
20866 $as_echo "$as_me: failed program was:" >&5
20867 sed 's/^/| /' conftest.$ac_ext >&5
20868
20869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20870 $as_echo "no" >&6; }
20871
20872
20873
20874 fi
20875 rm -Rf build
20876
20877
20878
20879
20880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->lookup() passes nameidata" >&5
20881 $as_echo_n "checking whether iops->lookup() passes nameidata... " >&6; }
20882
20883
20884 cat confdefs.h - <<_ACEOF >conftest.c
20885
20886
20887 #include <linux/fs.h>
20888
20889 struct dentry *inode_lookup(struct inode *inode,
20890 struct dentry *dentry, struct nameidata *nidata)
20891 { return NULL; }
20892
20893 static const struct inode_operations iops
20894 __attribute__ ((unused)) = {
20895 .lookup = inode_lookup,
20896 };
20897
20898 int
20899 main (void)
20900 {
20901
20902
20903 ;
20904 return 0;
20905 }
20906
20907 _ACEOF
20908
20909
20910
20911 cat - <<_ACEOF >conftest.h
20912
20913 _ACEOF
20914
20915
20916 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
20917 echo "obj-m := conftest.o" >build/Makefile
20918 modpost_flag=''
20919 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
20920 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
20921 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20922 (eval $ac_try) 2>&5
20923 ac_status=$?
20924 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20925 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
20926 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20927 (eval $ac_try) 2>&5
20928 ac_status=$?
20929 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20930 test $ac_status = 0; }; }; then :
20931
20932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20933 $as_echo "yes" >&6; }
20934
20935 $as_echo "#define HAVE_LOOKUP_NAMEIDATA 1" >>confdefs.h
20936
20937
20938 else
20939 $as_echo "$as_me: failed program was:" >&5
20940 sed 's/^/| /' conftest.$ac_ext >&5
20941
20942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20943 $as_echo "no" >&6; }
20944
20945
20946
20947 fi
20948 rm -Rf build
20949
20950
20951
20952
20953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->create() passes nameidata" >&5
20954 $as_echo_n "checking whether iops->create() passes nameidata... " >&6; }
20955
20956
20957 cat confdefs.h - <<_ACEOF >conftest.c
20958
20959
20960 #include <linux/fs.h>
20961
20962 #ifdef HAVE_MKDIR_UMODE_T
20963 int inode_create(struct inode *inode ,struct dentry *dentry,
20964 umode_t umode, struct nameidata *nidata) { return 0; }
20965 #else
20966 int inode_create(struct inode *inode,struct dentry *dentry,
20967 int umode, struct nameidata * nidata) { return 0; }
20968 #endif
20969
20970 static const struct inode_operations
20971 iops __attribute__ ((unused)) = {
20972 .create = inode_create,
20973 };
20974
20975 int
20976 main (void)
20977 {
20978
20979
20980 ;
20981 return 0;
20982 }
20983
20984 _ACEOF
20985
20986
20987
20988 cat - <<_ACEOF >conftest.h
20989
20990 _ACEOF
20991
20992
20993 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
20994 echo "obj-m := conftest.o" >build/Makefile
20995 modpost_flag=''
20996 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
20997 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
20998 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20999 (eval $ac_try) 2>&5
21000 ac_status=$?
21001 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21002 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
21003 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21004 (eval $ac_try) 2>&5
21005 ac_status=$?
21006 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21007 test $ac_status = 0; }; }; then :
21008
21009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21010 $as_echo "yes" >&6; }
21011
21012 $as_echo "#define HAVE_CREATE_NAMEIDATA 1" >>confdefs.h
21013
21014
21015 else
21016 $as_echo "$as_me: failed program was:" >&5
21017 sed 's/^/| /' conftest.$ac_ext >&5
21018
21019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21020 $as_echo "no" >&6; }
21021
21022
21023
21024 fi
21025 rm -Rf build
21026
21027
21028
21029
21030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->get_link() passes delayed" >&5
21031 $as_echo_n "checking whether iops->get_link() passes delayed... " >&6; }
21032
21033
21034 cat confdefs.h - <<_ACEOF >conftest.c
21035
21036
21037 #include <linux/fs.h>
21038 const char *get_link(struct dentry *de, struct inode *ip,
21039 struct delayed_call *done) { return "symlink"; }
21040 static struct inode_operations
21041 iops __attribute__ ((unused)) = {
21042 .get_link = get_link,
21043 };
21044
21045 int
21046 main (void)
21047 {
21048
21049
21050 ;
21051 return 0;
21052 }
21053
21054 _ACEOF
21055
21056
21057
21058 cat - <<_ACEOF >conftest.h
21059
21060 _ACEOF
21061
21062
21063 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
21064 echo "obj-m := conftest.o" >build/Makefile
21065 modpost_flag=''
21066 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
21067 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
21068 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21069 (eval $ac_try) 2>&5
21070 ac_status=$?
21071 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21072 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
21073 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21074 (eval $ac_try) 2>&5
21075 ac_status=$?
21076 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21077 test $ac_status = 0; }; }; then :
21078
21079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21080 $as_echo "yes" >&6; }
21081
21082 $as_echo "#define HAVE_GET_LINK_DELAYED 1" >>confdefs.h
21083
21084
21085 else
21086 $as_echo "$as_me: failed program was:" >&5
21087 sed 's/^/| /' conftest.$ac_ext >&5
21088
21089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21090 $as_echo "no" >&6; }
21091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->get_link() passes cookie" >&5
21092 $as_echo_n "checking whether iops->get_link() passes cookie... " >&6; }
21093
21094
21095 cat confdefs.h - <<_ACEOF >conftest.c
21096
21097
21098 #include <linux/fs.h>
21099 const char *get_link(struct dentry *de, struct
21100 inode *ip, void **cookie) { return "symlink"; }
21101 static struct inode_operations
21102 iops __attribute__ ((unused)) = {
21103 .get_link = get_link,
21104 };
21105
21106 int
21107 main (void)
21108 {
21109
21110
21111 ;
21112 return 0;
21113 }
21114
21115 _ACEOF
21116
21117
21118
21119 cat - <<_ACEOF >conftest.h
21120
21121 _ACEOF
21122
21123
21124 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
21125 echo "obj-m := conftest.o" >build/Makefile
21126 modpost_flag=''
21127 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
21128 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
21129 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21130 (eval $ac_try) 2>&5
21131 ac_status=$?
21132 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21133 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
21134 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21135 (eval $ac_try) 2>&5
21136 ac_status=$?
21137 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21138 test $ac_status = 0; }; }; then :
21139
21140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21141 $as_echo "yes" >&6; }
21142
21143 $as_echo "#define HAVE_GET_LINK_COOKIE 1" >>confdefs.h
21144
21145
21146 else
21147 $as_echo "$as_me: failed program was:" >&5
21148 sed 's/^/| /' conftest.$ac_ext >&5
21149
21150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21151 $as_echo "no" >&6; }
21152
21153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->follow_link() passes cookie" >&5
21154 $as_echo_n "checking whether iops->follow_link() passes cookie... " >&6; }
21155
21156
21157 cat confdefs.h - <<_ACEOF >conftest.c
21158
21159
21160 #include <linux/fs.h>
21161 const char *follow_link(struct dentry *de,
21162 void **cookie) { return "symlink"; }
21163 static struct inode_operations
21164 iops __attribute__ ((unused)) = {
21165 .follow_link = follow_link,
21166 };
21167
21168 int
21169 main (void)
21170 {
21171
21172
21173 ;
21174 return 0;
21175 }
21176
21177 _ACEOF
21178
21179
21180
21181 cat - <<_ACEOF >conftest.h
21182
21183 _ACEOF
21184
21185
21186 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
21187 echo "obj-m := conftest.o" >build/Makefile
21188 modpost_flag=''
21189 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
21190 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
21191 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21192 (eval $ac_try) 2>&5
21193 ac_status=$?
21194 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21195 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
21196 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21197 (eval $ac_try) 2>&5
21198 ac_status=$?
21199 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21200 test $ac_status = 0; }; }; then :
21201
21202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21203 $as_echo "yes" >&6; }
21204
21205 $as_echo "#define HAVE_FOLLOW_LINK_COOKIE 1" >>confdefs.h
21206
21207
21208 else
21209 $as_echo "$as_me: failed program was:" >&5
21210 sed 's/^/| /' conftest.$ac_ext >&5
21211
21212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21213 $as_echo "no" >&6; }
21214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->follow_link() passes nameidata" >&5
21215 $as_echo_n "checking whether iops->follow_link() passes nameidata... " >&6; }
21216
21217
21218 cat confdefs.h - <<_ACEOF >conftest.c
21219
21220
21221 #include <linux/fs.h>
21222 void *follow_link(struct dentry *de, struct
21223 nameidata *nd) { return (void *)NULL; }
21224 static struct inode_operations
21225 iops __attribute__ ((unused)) = {
21226 .follow_link = follow_link,
21227 };
21228
21229 int
21230 main (void)
21231 {
21232
21233
21234 ;
21235 return 0;
21236 }
21237
21238 _ACEOF
21239
21240
21241
21242 cat - <<_ACEOF >conftest.h
21243
21244 _ACEOF
21245
21246
21247 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
21248 echo "obj-m := conftest.o" >build/Makefile
21249 modpost_flag=''
21250 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
21251 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
21252 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21253 (eval $ac_try) 2>&5
21254 ac_status=$?
21255 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21256 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
21257 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21258 (eval $ac_try) 2>&5
21259 ac_status=$?
21260 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21261 test $ac_status = 0; }; }; then :
21262
21263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21264 $as_echo "yes" >&6; }
21265
21266 $as_echo "#define HAVE_FOLLOW_LINK_NAMEIDATA 1" >>confdefs.h
21267
21268
21269 else
21270 $as_echo "$as_me: failed program was:" >&5
21271 sed 's/^/| /' conftest.$ac_ext >&5
21272
21273 as_fn_error $? "no; please file a bug report" "$LINENO" 5
21274
21275
21276
21277 fi
21278 rm -Rf build
21279
21280
21281
21282
21283
21284 fi
21285 rm -Rf build
21286
21287
21288
21289
21290
21291
21292 fi
21293 rm -Rf build
21294
21295
21296
21297
21298
21299 fi
21300 rm -Rf build
21301
21302
21303
21304
21305
21306
21307 cat confdefs.h - <<_ACEOF >conftest.c
21308
21309
21310 #if !defined(HAVE_GET_LINK_DELAYED)
21311 #error "Expecting get_link() delayed done"
21312 #endif
21313
21314 int
21315 main (void)
21316 {
21317
21318
21319 ;
21320 return 0;
21321 }
21322
21323 _ACEOF
21324
21325
21326
21327 cat - <<_ACEOF >conftest.h
21328
21329 _ACEOF
21330
21331
21332 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
21333 echo "obj-m := conftest.o" >build/Makefile
21334 modpost_flag=''
21335 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
21336 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
21337 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21338 (eval $ac_try) 2>&5
21339 ac_status=$?
21340 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21341 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
21342 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21343 (eval $ac_try) 2>&5
21344 ac_status=$?
21345 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21346 test $ac_status = 0; }; }; then :
21347
21348
21349 $as_echo "#define HAVE_PUT_LINK_DELAYED 1" >>confdefs.h
21350
21351
21352 else
21353 $as_echo "$as_me: failed program was:" >&5
21354 sed 's/^/| /' conftest.$ac_ext >&5
21355
21356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->put_link() passes cookie" >&5
21357 $as_echo_n "checking whether iops->put_link() passes cookie... " >&6; }
21358
21359
21360 cat confdefs.h - <<_ACEOF >conftest.c
21361
21362
21363 #include <linux/fs.h>
21364 void put_link(struct inode *ip, void *cookie)
21365 { return; }
21366 static struct inode_operations
21367 iops __attribute__ ((unused)) = {
21368 .put_link = put_link,
21369 };
21370
21371 int
21372 main (void)
21373 {
21374
21375
21376 ;
21377 return 0;
21378 }
21379
21380 _ACEOF
21381
21382
21383
21384 cat - <<_ACEOF >conftest.h
21385
21386 _ACEOF
21387
21388
21389 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
21390 echo "obj-m := conftest.o" >build/Makefile
21391 modpost_flag=''
21392 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
21393 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
21394 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21395 (eval $ac_try) 2>&5
21396 ac_status=$?
21397 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21398 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
21399 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21400 (eval $ac_try) 2>&5
21401 ac_status=$?
21402 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21403 test $ac_status = 0; }; }; then :
21404
21405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21406 $as_echo "yes" >&6; }
21407
21408 $as_echo "#define HAVE_PUT_LINK_COOKIE 1" >>confdefs.h
21409
21410
21411 else
21412 $as_echo "$as_me: failed program was:" >&5
21413 sed 's/^/| /' conftest.$ac_ext >&5
21414
21415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21416 $as_echo "no" >&6; }
21417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->put_link() passes nameidata" >&5
21418 $as_echo_n "checking whether iops->put_link() passes nameidata... " >&6; }
21419
21420
21421 cat confdefs.h - <<_ACEOF >conftest.c
21422
21423
21424 #include <linux/fs.h>
21425 void put_link(struct dentry *de, struct
21426 nameidata *nd, void *ptr) { return; }
21427 static struct inode_operations
21428 iops __attribute__ ((unused)) = {
21429 .put_link = put_link,
21430 };
21431
21432 int
21433 main (void)
21434 {
21435
21436
21437 ;
21438 return 0;
21439 }
21440
21441 _ACEOF
21442
21443
21444
21445 cat - <<_ACEOF >conftest.h
21446
21447 _ACEOF
21448
21449
21450 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
21451 echo "obj-m := conftest.o" >build/Makefile
21452 modpost_flag=''
21453 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
21454 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
21455 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21456 (eval $ac_try) 2>&5
21457 ac_status=$?
21458 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21459 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
21460 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21461 (eval $ac_try) 2>&5
21462 ac_status=$?
21463 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21464 test $ac_status = 0; }; }; then :
21465
21466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21467 $as_echo "yes" >&6; }
21468
21469 $as_echo "#define HAVE_PUT_LINK_NAMEIDATA 1" >>confdefs.h
21470
21471
21472 else
21473 $as_echo "$as_me: failed program was:" >&5
21474 sed 's/^/| /' conftest.$ac_ext >&5
21475
21476 as_fn_error $? "no; please file a bug report" "$LINENO" 5
21477
21478
21479
21480 fi
21481 rm -Rf build
21482
21483
21484
21485
21486
21487 fi
21488 rm -Rf build
21489
21490
21491
21492
21493
21494 fi
21495 rm -Rf build
21496
21497
21498
21499
21500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether i_op->tmpfile() exists" >&5
21501 $as_echo_n "checking whether i_op->tmpfile() exists... " >&6; }
21502
21503
21504 cat confdefs.h - <<_ACEOF >conftest.c
21505
21506
21507 #include <linux/fs.h>
21508 int tmpfile(struct inode *inode, struct dentry *dentry,
21509 umode_t mode) { return 0; }
21510 static struct inode_operations
21511 iops __attribute__ ((unused)) = {
21512 .tmpfile = tmpfile,
21513 };
21514
21515 int
21516 main (void)
21517 {
21518
21519
21520 ;
21521 return 0;
21522 }
21523
21524 _ACEOF
21525
21526
21527
21528 cat - <<_ACEOF >conftest.h
21529
21530 _ACEOF
21531
21532
21533 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
21534 echo "obj-m := conftest.o" >build/Makefile
21535 modpost_flag=''
21536 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
21537 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
21538 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21539 (eval $ac_try) 2>&5
21540 ac_status=$?
21541 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21542 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
21543 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21544 (eval $ac_try) 2>&5
21545 ac_status=$?
21546 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21547 test $ac_status = 0; }; }; then :
21548
21549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21550 $as_echo "yes" >&6; }
21551
21552 $as_echo "#define HAVE_TMPFILE 1" >>confdefs.h
21553
21554
21555 else
21556 $as_echo "$as_me: failed program was:" >&5
21557 sed 's/^/| /' conftest.$ac_ext >&5
21558
21559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21560 $as_echo "no" >&6; }
21561
21562
21563
21564 fi
21565 rm -Rf build
21566
21567
21568
21569
21570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->truncate_range() exists" >&5
21571 $as_echo_n "checking whether iops->truncate_range() exists... " >&6; }
21572
21573
21574 cat confdefs.h - <<_ACEOF >conftest.c
21575
21576
21577 #include <linux/fs.h>
21578 void truncate_range(struct inode *inode, loff_t start,
21579 loff_t end) { return; }
21580 static struct inode_operations iops __attribute__ ((unused)) = {
21581 .truncate_range = truncate_range,
21582 };
21583
21584 int
21585 main (void)
21586 {
21587
21588
21589 ;
21590 return 0;
21591 }
21592
21593 _ACEOF
21594
21595
21596
21597 cat - <<_ACEOF >conftest.h
21598
21599 _ACEOF
21600
21601
21602 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
21603 echo "obj-m := conftest.o" >build/Makefile
21604 modpost_flag=''
21605 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
21606 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
21607 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21608 (eval $ac_try) 2>&5
21609 ac_status=$?
21610 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21611 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
21612 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21613 (eval $ac_try) 2>&5
21614 ac_status=$?
21615 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21616 test $ac_status = 0; }; }; then :
21617
21618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21619 $as_echo "yes" >&6; }
21620
21621 $as_echo "#define HAVE_INODE_TRUNCATE_RANGE 1" >>confdefs.h
21622
21623
21624 else
21625 $as_echo "$as_me: failed program was:" >&5
21626 sed 's/^/| /' conftest.$ac_ext >&5
21627
21628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21629 $as_echo "no" >&6; }
21630
21631
21632
21633 fi
21634 rm -Rf build
21635
21636
21637
21638
21639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether dops->d_automount() exists" >&5
21640 $as_echo_n "checking whether dops->d_automount() exists... " >&6; }
21641
21642
21643 cat confdefs.h - <<_ACEOF >conftest.c
21644
21645
21646 #include <linux/dcache.h>
21647 struct vfsmount *d_automount(struct path *p) { return NULL; }
21648 struct dentry_operations dops __attribute__ ((unused)) = {
21649 .d_automount = d_automount,
21650 };
21651
21652 int
21653 main (void)
21654 {
21655
21656
21657 ;
21658 return 0;
21659 }
21660
21661 _ACEOF
21662
21663
21664
21665 cat - <<_ACEOF >conftest.h
21666
21667 _ACEOF
21668
21669
21670 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
21671 echo "obj-m := conftest.o" >build/Makefile
21672 modpost_flag=''
21673 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
21674 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
21675 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21676 (eval $ac_try) 2>&5
21677 ac_status=$?
21678 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21679 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
21680 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21681 (eval $ac_try) 2>&5
21682 ac_status=$?
21683 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21684 test $ac_status = 0; }; }; then :
21685
21686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21687 $as_echo "yes" >&6; }
21688
21689 $as_echo "#define HAVE_AUTOMOUNT 1" >>confdefs.h
21690
21691
21692 else
21693 $as_echo "$as_me: failed program was:" >&5
21694 sed 's/^/| /' conftest.$ac_ext >&5
21695
21696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21697 $as_echo "no" >&6; }
21698
21699
21700
21701 fi
21702 rm -Rf build
21703
21704
21705
21706
21707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether eops->encode_fh() wants inode" >&5
21708 $as_echo_n "checking whether eops->encode_fh() wants inode... " >&6; }
21709
21710
21711 cat confdefs.h - <<_ACEOF >conftest.c
21712
21713
21714 #include <linux/exportfs.h>
21715 int encode_fh(struct inode *inode, __u32 *fh, int *max_len,
21716 struct inode *parent) { return 0; }
21717 static struct export_operations eops __attribute__ ((unused))={
21718 .encode_fh = encode_fh,
21719 };
21720
21721 int
21722 main (void)
21723 {
21724
21725
21726 ;
21727 return 0;
21728 }
21729
21730 _ACEOF
21731
21732
21733
21734 cat - <<_ACEOF >conftest.h
21735
21736 _ACEOF
21737
21738
21739 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
21740 echo "obj-m := conftest.o" >build/Makefile
21741 modpost_flag=''
21742 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
21743 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
21744 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21745 (eval $ac_try) 2>&5
21746 ac_status=$?
21747 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21748 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
21749 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21750 (eval $ac_try) 2>&5
21751 ac_status=$?
21752 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21753 test $ac_status = 0; }; }; then :
21754
21755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21756 $as_echo "yes" >&6; }
21757
21758 $as_echo "#define HAVE_ENCODE_FH_WITH_INODE 1" >>confdefs.h
21759
21760
21761 else
21762 $as_echo "$as_me: failed program was:" >&5
21763 sed 's/^/| /' conftest.$ac_ext >&5
21764
21765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21766 $as_echo "no" >&6; }
21767
21768
21769
21770 fi
21771 rm -Rf build
21772
21773
21774
21775
21776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether eops->commit_metadata() exists" >&5
21777 $as_echo_n "checking whether eops->commit_metadata() exists... " >&6; }
21778
21779
21780 cat confdefs.h - <<_ACEOF >conftest.c
21781
21782
21783 #include <linux/exportfs.h>
21784 int commit_metadata(struct inode *inode) { return 0; }
21785 static struct export_operations eops __attribute__ ((unused))={
21786 .commit_metadata = commit_metadata,
21787 };
21788
21789 int
21790 main (void)
21791 {
21792
21793
21794 ;
21795 return 0;
21796 }
21797
21798 _ACEOF
21799
21800
21801
21802 cat - <<_ACEOF >conftest.h
21803
21804 _ACEOF
21805
21806
21807 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
21808 echo "obj-m := conftest.o" >build/Makefile
21809 modpost_flag=''
21810 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
21811 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
21812 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21813 (eval $ac_try) 2>&5
21814 ac_status=$?
21815 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21816 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
21817 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21818 (eval $ac_try) 2>&5
21819 ac_status=$?
21820 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21821 test $ac_status = 0; }; }; then :
21822
21823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21824 $as_echo "yes" >&6; }
21825
21826 $as_echo "#define HAVE_COMMIT_METADATA 1" >>confdefs.h
21827
21828
21829 else
21830 $as_echo "$as_me: failed program was:" >&5
21831 sed 's/^/| /' conftest.$ac_ext >&5
21832
21833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21834 $as_echo "no" >&6; }
21835
21836
21837
21838 fi
21839 rm -Rf build
21840
21841
21842
21843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether clear_inode() is available" >&5
21844 $as_echo_n "checking whether clear_inode() is available... " >&6; }
21845
21846
21847
21848 cat confdefs.h - <<_ACEOF >conftest.c
21849
21850
21851 #include <linux/fs.h>
21852
21853 int
21854 main (void)
21855 {
21856
21857 clear_inode(NULL);
21858
21859 ;
21860 return 0;
21861 }
21862
21863 _ACEOF
21864
21865
21866
21867 cat - <<_ACEOF >conftest.h
21868
21869 _ACEOF
21870
21871
21872 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
21873 echo "obj-m := conftest.o" >build/Makefile
21874 modpost_flag=''
21875 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
21876 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
21877 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21878 (eval $ac_try) 2>&5
21879 ac_status=$?
21880 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21881 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
21882 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21883 (eval $ac_try) 2>&5
21884 ac_status=$?
21885 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21886 test $ac_status = 0; }; }; then :
21887 rc=0
21888 else
21889 $as_echo "$as_me: failed program was:" >&5
21890 sed 's/^/| /' conftest.$ac_ext >&5
21891 rc=1
21892
21893
21894 fi
21895 rm -Rf build
21896
21897
21898 if test $rc -ne 0; then :
21899
21900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21901 $as_echo "no" >&6; }
21902
21903 else
21904 if test "x$enable_linux_builtin" != xyes; then
21905
21906 grep -q -E '[[:space:]]clear_inode[[:space:]]' \
21907 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
21908 rc=$?
21909 if test $rc -ne 0; then
21910 export=0
21911 for file in fs/inode.c; do
21912 grep -q -E "EXPORT_SYMBOL.*(clear_inode)" \
21913 "$LINUX/$file" 2>/dev/null
21914 rc=$?
21915 if test $rc -eq 0; then
21916 export=1
21917 break;
21918 fi
21919 done
21920 if test $export -eq 0; then :
21921 rc=1
21922 else :
21923 rc=0
21924 fi
21925 else :
21926 rc=0
21927 fi
21928
21929 fi
21930 if test $rc -ne 0; then :
21931
21932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21933 $as_echo "no" >&6; }
21934
21935 else :
21936
21937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21938 $as_echo "yes" >&6; }
21939
21940 $as_echo "#define HAVE_CLEAR_INODE 1" >>confdefs.h
21941
21942
21943 fi
21944 fi
21945
21946
21947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setattr_prepare() is available" >&5
21948 $as_echo_n "checking whether setattr_prepare() is available... " >&6; }
21949
21950
21951
21952 cat confdefs.h - <<_ACEOF >conftest.c
21953
21954
21955 #include <linux/fs.h>
21956
21957 int
21958 main (void)
21959 {
21960
21961 struct dentry *dentry = NULL;
21962 struct iattr *attr = NULL;
21963 int error;
21964
21965 error = setattr_prepare(dentry, attr);
21966
21967 ;
21968 return 0;
21969 }
21970
21971 _ACEOF
21972
21973
21974
21975 cat - <<_ACEOF >conftest.h
21976
21977 _ACEOF
21978
21979
21980 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
21981 echo "obj-m := conftest.o" >build/Makefile
21982 modpost_flag=''
21983 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
21984 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
21985 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21986 (eval $ac_try) 2>&5
21987 ac_status=$?
21988 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21989 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
21990 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21991 (eval $ac_try) 2>&5
21992 ac_status=$?
21993 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21994 test $ac_status = 0; }; }; then :
21995 rc=0
21996 else
21997 $as_echo "$as_me: failed program was:" >&5
21998 sed 's/^/| /' conftest.$ac_ext >&5
21999 rc=1
22000
22001
22002 fi
22003 rm -Rf build
22004
22005
22006 if test $rc -ne 0; then :
22007
22008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22009 $as_echo "no" >&6; }
22010
22011 else
22012 if test "x$enable_linux_builtin" != xyes; then
22013
22014 grep -q -E '[[:space:]]setattr_prepare[[:space:]]' \
22015 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
22016 rc=$?
22017 if test $rc -ne 0; then
22018 export=0
22019 for file in fs/attr.c; do
22020 grep -q -E "EXPORT_SYMBOL.*(setattr_prepare)" \
22021 "$LINUX/$file" 2>/dev/null
22022 rc=$?
22023 if test $rc -eq 0; then
22024 export=1
22025 break;
22026 fi
22027 done
22028 if test $export -eq 0; then :
22029 rc=1
22030 else :
22031 rc=0
22032 fi
22033 else :
22034 rc=0
22035 fi
22036
22037 fi
22038 if test $rc -ne 0; then :
22039
22040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22041 $as_echo "no" >&6; }
22042
22043 else :
22044
22045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22046 $as_echo "yes" >&6; }
22047
22048 $as_echo "#define HAVE_SETATTR_PREPARE 1" >>confdefs.h
22049
22050
22051 fi
22052 fi
22053
22054
22055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether insert_inode_locked() is available" >&5
22056 $as_echo_n "checking whether insert_inode_locked() is available... " >&6; }
22057
22058
22059
22060 cat confdefs.h - <<_ACEOF >conftest.c
22061
22062
22063 #include <linux/fs.h>
22064
22065 int
22066 main (void)
22067 {
22068
22069 insert_inode_locked(NULL);
22070
22071 ;
22072 return 0;
22073 }
22074
22075 _ACEOF
22076
22077
22078
22079 cat - <<_ACEOF >conftest.h
22080
22081 _ACEOF
22082
22083
22084 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
22085 echo "obj-m := conftest.o" >build/Makefile
22086 modpost_flag=''
22087 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
22088 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
22089 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22090 (eval $ac_try) 2>&5
22091 ac_status=$?
22092 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22093 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
22094 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22095 (eval $ac_try) 2>&5
22096 ac_status=$?
22097 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22098 test $ac_status = 0; }; }; then :
22099 rc=0
22100 else
22101 $as_echo "$as_me: failed program was:" >&5
22102 sed 's/^/| /' conftest.$ac_ext >&5
22103 rc=1
22104
22105
22106 fi
22107 rm -Rf build
22108
22109
22110 if test $rc -ne 0; then :
22111
22112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22113 $as_echo "no" >&6; }
22114
22115 else
22116 if test "x$enable_linux_builtin" != xyes; then
22117
22118 grep -q -E '[[:space:]]insert_inode_locked[[:space:]]' \
22119 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
22120 rc=$?
22121 if test $rc -ne 0; then
22122 export=0
22123 for file in fs/inode.c; do
22124 grep -q -E "EXPORT_SYMBOL.*(insert_inode_locked)" \
22125 "$LINUX/$file" 2>/dev/null
22126 rc=$?
22127 if test $rc -eq 0; then
22128 export=1
22129 break;
22130 fi
22131 done
22132 if test $export -eq 0; then :
22133 rc=1
22134 else :
22135 rc=0
22136 fi
22137 else :
22138 rc=0
22139 fi
22140
22141 fi
22142 if test $rc -ne 0; then :
22143
22144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22145 $as_echo "no" >&6; }
22146
22147 else :
22148
22149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22150 $as_echo "yes" >&6; }
22151
22152 $as_echo "#define HAVE_INSERT_INODE_LOCKED 1" >>confdefs.h
22153
22154
22155 fi
22156 fi
22157
22158
22159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether d_make_root() is available" >&5
22160 $as_echo_n "checking whether d_make_root() is available... " >&6; }
22161
22162
22163
22164 cat confdefs.h - <<_ACEOF >conftest.c
22165
22166
22167 #include <linux/dcache.h>
22168
22169 int
22170 main (void)
22171 {
22172
22173 d_make_root(NULL);
22174
22175 ;
22176 return 0;
22177 }
22178
22179 _ACEOF
22180
22181
22182
22183 cat - <<_ACEOF >conftest.h
22184
22185 _ACEOF
22186
22187
22188 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
22189 echo "obj-m := conftest.o" >build/Makefile
22190 modpost_flag=''
22191 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
22192 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
22193 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22194 (eval $ac_try) 2>&5
22195 ac_status=$?
22196 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22197 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
22198 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22199 (eval $ac_try) 2>&5
22200 ac_status=$?
22201 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22202 test $ac_status = 0; }; }; then :
22203 rc=0
22204 else
22205 $as_echo "$as_me: failed program was:" >&5
22206 sed 's/^/| /' conftest.$ac_ext >&5
22207 rc=1
22208
22209
22210 fi
22211 rm -Rf build
22212
22213
22214 if test $rc -ne 0; then :
22215
22216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22217 $as_echo "no" >&6; }
22218
22219 else
22220 if test "x$enable_linux_builtin" != xyes; then
22221
22222 grep -q -E '[[:space:]]d_make_root[[:space:]]' \
22223 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
22224 rc=$?
22225 if test $rc -ne 0; then
22226 export=0
22227 for file in fs/dcache.c; do
22228 grep -q -E "EXPORT_SYMBOL.*(d_make_root)" \
22229 "$LINUX/$file" 2>/dev/null
22230 rc=$?
22231 if test $rc -eq 0; then
22232 export=1
22233 break;
22234 fi
22235 done
22236 if test $export -eq 0; then :
22237 rc=1
22238 else :
22239 rc=0
22240 fi
22241 else :
22242 rc=0
22243 fi
22244
22245 fi
22246 if test $rc -ne 0; then :
22247
22248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22249 $as_echo "no" >&6; }
22250
22251 else :
22252
22253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22254 $as_echo "yes" >&6; }
22255
22256 $as_echo "#define HAVE_D_MAKE_ROOT 1" >>confdefs.h
22257
22258
22259 fi
22260 fi
22261
22262
22263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether d_obtain_alias() is available" >&5
22264 $as_echo_n "checking whether d_obtain_alias() is available... " >&6; }
22265
22266
22267
22268 cat confdefs.h - <<_ACEOF >conftest.c
22269
22270
22271 #include <linux/dcache.h>
22272
22273 int
22274 main (void)
22275 {
22276
22277 d_obtain_alias(NULL);
22278
22279 ;
22280 return 0;
22281 }
22282
22283 _ACEOF
22284
22285
22286
22287 cat - <<_ACEOF >conftest.h
22288
22289 _ACEOF
22290
22291
22292 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
22293 echo "obj-m := conftest.o" >build/Makefile
22294 modpost_flag=''
22295 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
22296 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
22297 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22298 (eval $ac_try) 2>&5
22299 ac_status=$?
22300 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22301 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
22302 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22303 (eval $ac_try) 2>&5
22304 ac_status=$?
22305 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22306 test $ac_status = 0; }; }; then :
22307 rc=0
22308 else
22309 $as_echo "$as_me: failed program was:" >&5
22310 sed 's/^/| /' conftest.$ac_ext >&5
22311 rc=1
22312
22313
22314 fi
22315 rm -Rf build
22316
22317
22318 if test $rc -ne 0; then :
22319
22320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22321 $as_echo "no" >&6; }
22322
22323 else
22324 if test "x$enable_linux_builtin" != xyes; then
22325
22326 grep -q -E '[[:space:]]d_obtain_alias[[:space:]]' \
22327 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
22328 rc=$?
22329 if test $rc -ne 0; then
22330 export=0
22331 for file in fs/dcache.c; do
22332 grep -q -E "EXPORT_SYMBOL.*(d_obtain_alias)" \
22333 "$LINUX/$file" 2>/dev/null
22334 rc=$?
22335 if test $rc -eq 0; then
22336 export=1
22337 break;
22338 fi
22339 done
22340 if test $export -eq 0; then :
22341 rc=1
22342 else :
22343 rc=0
22344 fi
22345 else :
22346 rc=0
22347 fi
22348
22349 fi
22350 if test $rc -ne 0; then :
22351
22352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22353 $as_echo "no" >&6; }
22354
22355 else :
22356
22357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22358 $as_echo "yes" >&6; }
22359
22360 $as_echo "#define HAVE_D_OBTAIN_ALIAS 1" >>confdefs.h
22361
22362
22363 fi
22364 fi
22365
22366
22367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether d_prune_aliases() is available" >&5
22368 $as_echo_n "checking whether d_prune_aliases() is available... " >&6; }
22369
22370
22371
22372 cat confdefs.h - <<_ACEOF >conftest.c
22373
22374
22375 #include <linux/dcache.h>
22376
22377 int
22378 main (void)
22379 {
22380
22381 struct inode *ip = NULL;
22382 d_prune_aliases(ip);
22383
22384 ;
22385 return 0;
22386 }
22387
22388 _ACEOF
22389
22390
22391
22392 cat - <<_ACEOF >conftest.h
22393
22394 _ACEOF
22395
22396
22397 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
22398 echo "obj-m := conftest.o" >build/Makefile
22399 modpost_flag=''
22400 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
22401 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
22402 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22403 (eval $ac_try) 2>&5
22404 ac_status=$?
22405 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22406 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
22407 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22408 (eval $ac_try) 2>&5
22409 ac_status=$?
22410 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22411 test $ac_status = 0; }; }; then :
22412 rc=0
22413 else
22414 $as_echo "$as_me: failed program was:" >&5
22415 sed 's/^/| /' conftest.$ac_ext >&5
22416 rc=1
22417
22418
22419 fi
22420 rm -Rf build
22421
22422
22423 if test $rc -ne 0; then :
22424
22425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22426 $as_echo "no" >&6; }
22427
22428 else
22429 if test "x$enable_linux_builtin" != xyes; then
22430
22431 grep -q -E '[[:space:]]d_prune_aliases[[:space:]]' \
22432 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
22433 rc=$?
22434 if test $rc -ne 0; then
22435 export=0
22436 for file in fs/dcache.c; do
22437 grep -q -E "EXPORT_SYMBOL.*(d_prune_aliases)" \
22438 "$LINUX/$file" 2>/dev/null
22439 rc=$?
22440 if test $rc -eq 0; then
22441 export=1
22442 break;
22443 fi
22444 done
22445 if test $export -eq 0; then :
22446 rc=1
22447 else :
22448 rc=0
22449 fi
22450 else :
22451 rc=0
22452 fi
22453
22454 fi
22455 if test $rc -ne 0; then :
22456
22457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22458 $as_echo "no" >&6; }
22459
22460 else :
22461
22462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22463 $as_echo "yes" >&6; }
22464
22465 $as_echo "#define HAVE_D_PRUNE_ALIASES 1" >>confdefs.h
22466
22467
22468 fi
22469 fi
22470
22471
22472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether d_set_d_op() is available" >&5
22473 $as_echo_n "checking whether d_set_d_op() is available... " >&6; }
22474
22475
22476
22477 cat confdefs.h - <<_ACEOF >conftest.c
22478
22479
22480 #include <linux/dcache.h>
22481
22482 int
22483 main (void)
22484 {
22485
22486 d_set_d_op(NULL, NULL);
22487
22488 ;
22489 return 0;
22490 }
22491
22492 _ACEOF
22493
22494
22495
22496 cat - <<_ACEOF >conftest.h
22497
22498 _ACEOF
22499
22500
22501 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
22502 echo "obj-m := conftest.o" >build/Makefile
22503 modpost_flag=''
22504 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
22505 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
22506 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22507 (eval $ac_try) 2>&5
22508 ac_status=$?
22509 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22510 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
22511 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22512 (eval $ac_try) 2>&5
22513 ac_status=$?
22514 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22515 test $ac_status = 0; }; }; then :
22516 rc=0
22517 else
22518 $as_echo "$as_me: failed program was:" >&5
22519 sed 's/^/| /' conftest.$ac_ext >&5
22520 rc=1
22521
22522
22523 fi
22524 rm -Rf build
22525
22526
22527 if test $rc -ne 0; then :
22528
22529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22530 $as_echo "no" >&6; }
22531
22532 else
22533 if test "x$enable_linux_builtin" != xyes; then
22534
22535 grep -q -E '[[:space:]]d_set_d_op[[:space:]]' \
22536 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
22537 rc=$?
22538 if test $rc -ne 0; then
22539 export=0
22540 for file in fs/dcache.c; do
22541 grep -q -E "EXPORT_SYMBOL.*(d_set_d_op)" \
22542 "$LINUX/$file" 2>/dev/null
22543 rc=$?
22544 if test $rc -eq 0; then
22545 export=1
22546 break;
22547 fi
22548 done
22549 if test $export -eq 0; then :
22550 rc=1
22551 else :
22552 rc=0
22553 fi
22554 else :
22555 rc=0
22556 fi
22557
22558 fi
22559 if test $rc -ne 0; then :
22560
22561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22562 $as_echo "no" >&6; }
22563
22564 else :
22565
22566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22567 $as_echo "yes" >&6; }
22568
22569 $as_echo "#define HAVE_D_SET_D_OP 1" >>confdefs.h
22570
22571
22572 fi
22573 fi
22574
22575
22576
22577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether dops->d_revalidate() takes struct nameidata" >&5
22578 $as_echo_n "checking whether dops->d_revalidate() takes struct nameidata... " >&6; }
22579
22580
22581 cat confdefs.h - <<_ACEOF >conftest.c
22582
22583
22584 #include <linux/dcache.h>
22585
22586 int revalidate (struct dentry *dentry,
22587 struct nameidata *nidata) { return 0; }
22588
22589 static const struct dentry_operations
22590 dops __attribute__ ((unused)) = {
22591 .d_revalidate = revalidate,
22592 };
22593
22594 int
22595 main (void)
22596 {
22597
22598
22599 ;
22600 return 0;
22601 }
22602
22603 _ACEOF
22604
22605
22606
22607 cat - <<_ACEOF >conftest.h
22608
22609 _ACEOF
22610
22611
22612 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
22613 echo "obj-m := conftest.o" >build/Makefile
22614 modpost_flag=''
22615 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
22616 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
22617 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22618 (eval $ac_try) 2>&5
22619 ac_status=$?
22620 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22621 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
22622 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22623 (eval $ac_try) 2>&5
22624 ac_status=$?
22625 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22626 test $ac_status = 0; }; }; then :
22627
22628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22629 $as_echo "yes" >&6; }
22630
22631 $as_echo "#define HAVE_D_REVALIDATE_NAMEIDATA 1" >>confdefs.h
22632
22633
22634 else
22635 $as_echo "$as_me: failed program was:" >&5
22636 sed 's/^/| /' conftest.$ac_ext >&5
22637
22638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22639 $as_echo "no" >&6; }
22640
22641
22642
22643 fi
22644 rm -Rf build
22645
22646
22647
22648
22649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether dentry uses const struct dentry_operations" >&5
22650 $as_echo_n "checking whether dentry uses const struct dentry_operations... " >&6; }
22651
22652
22653 cat confdefs.h - <<_ACEOF >conftest.c
22654
22655
22656 #include <linux/dcache.h>
22657
22658 const struct dentry_operations test_d_op = {
22659 .d_revalidate = NULL,
22660 };
22661
22662 int
22663 main (void)
22664 {
22665
22666 struct dentry d __attribute__ ((unused));
22667
22668 d.d_op = &test_d_op;
22669
22670 ;
22671 return 0;
22672 }
22673
22674 _ACEOF
22675
22676
22677
22678 cat - <<_ACEOF >conftest.h
22679
22680 _ACEOF
22681
22682
22683 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
22684 echo "obj-m := conftest.o" >build/Makefile
22685 modpost_flag=''
22686 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
22687 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
22688 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22689 (eval $ac_try) 2>&5
22690 ac_status=$?
22691 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22692 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
22693 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22694 (eval $ac_try) 2>&5
22695 ac_status=$?
22696 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22697 test $ac_status = 0; }; }; then :
22698
22699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22700 $as_echo "yes" >&6; }
22701
22702 $as_echo "#define HAVE_CONST_DENTRY_OPERATIONS 1" >>confdefs.h
22703
22704
22705 else
22706 $as_echo "$as_me: failed program was:" >&5
22707 sed 's/^/| /' conftest.$ac_ext >&5
22708
22709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22710 $as_echo "no" >&6; }
22711
22712
22713
22714 fi
22715 rm -Rf build
22716
22717
22718
22719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether truncate_setsize() is available" >&5
22720 $as_echo_n "checking whether truncate_setsize() is available... " >&6; }
22721
22722
22723
22724 cat confdefs.h - <<_ACEOF >conftest.c
22725
22726
22727 #include <linux/mm.h>
22728
22729 int
22730 main (void)
22731 {
22732
22733 truncate_setsize(NULL, 0);
22734
22735 ;
22736 return 0;
22737 }
22738
22739 _ACEOF
22740
22741
22742
22743 cat - <<_ACEOF >conftest.h
22744
22745 _ACEOF
22746
22747
22748 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
22749 echo "obj-m := conftest.o" >build/Makefile
22750 modpost_flag=''
22751 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
22752 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
22753 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22754 (eval $ac_try) 2>&5
22755 ac_status=$?
22756 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22757 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
22758 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22759 (eval $ac_try) 2>&5
22760 ac_status=$?
22761 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22762 test $ac_status = 0; }; }; then :
22763 rc=0
22764 else
22765 $as_echo "$as_me: failed program was:" >&5
22766 sed 's/^/| /' conftest.$ac_ext >&5
22767 rc=1
22768
22769
22770 fi
22771 rm -Rf build
22772
22773
22774 if test $rc -ne 0; then :
22775
22776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22777 $as_echo "no" >&6; }
22778
22779 else
22780 if test "x$enable_linux_builtin" != xyes; then
22781
22782 grep -q -E '[[:space:]]truncate_setsize[[:space:]]' \
22783 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
22784 rc=$?
22785 if test $rc -ne 0; then
22786 export=0
22787 for file in mm/truncate.c; do
22788 grep -q -E "EXPORT_SYMBOL.*(truncate_setsize)" \
22789 "$LINUX/$file" 2>/dev/null
22790 rc=$?
22791 if test $rc -eq 0; then
22792 export=1
22793 break;
22794 fi
22795 done
22796 if test $export -eq 0; then :
22797 rc=1
22798 else :
22799 rc=0
22800 fi
22801 else :
22802 rc=0
22803 fi
22804
22805 fi
22806 if test $rc -ne 0; then :
22807
22808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22809 $as_echo "no" >&6; }
22810
22811 else :
22812
22813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22814 $as_echo "yes" >&6; }
22815
22816 $as_echo "#define HAVE_TRUNCATE_SETSIZE 1" >>confdefs.h
22817
22818
22819 fi
22820 fi
22821
22822
22823
22824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether security_inode_init_security wants 6 args" >&5
22825 $as_echo_n "checking whether security_inode_init_security wants 6 args... " >&6; }
22826
22827
22828 cat confdefs.h - <<_ACEOF >conftest.c
22829
22830
22831 #include <linux/security.h>
22832
22833 int
22834 main (void)
22835 {
22836
22837 struct inode *ip __attribute__ ((unused)) = NULL;
22838 struct inode *dip __attribute__ ((unused)) = NULL;
22839 const struct qstr *str __attribute__ ((unused)) = NULL;
22840 char *name __attribute__ ((unused)) = NULL;
22841 void *value __attribute__ ((unused)) = NULL;
22842 size_t len __attribute__ ((unused)) = 0;
22843
22844 security_inode_init_security(ip, dip, str, &name, &value, &len);
22845
22846 ;
22847 return 0;
22848 }
22849
22850 _ACEOF
22851
22852
22853
22854 cat - <<_ACEOF >conftest.h
22855
22856 _ACEOF
22857
22858
22859 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
22860 echo "obj-m := conftest.o" >build/Makefile
22861 modpost_flag=''
22862 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
22863 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
22864 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22865 (eval $ac_try) 2>&5
22866 ac_status=$?
22867 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22868 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
22869 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22870 (eval $ac_try) 2>&5
22871 ac_status=$?
22872 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22873 test $ac_status = 0; }; }; then :
22874
22875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22876 $as_echo "yes" >&6; }
22877
22878 $as_echo "#define HAVE_6ARGS_SECURITY_INODE_INIT_SECURITY 1" >>confdefs.h
22879
22880
22881 else
22882 $as_echo "$as_me: failed program was:" >&5
22883 sed 's/^/| /' conftest.$ac_ext >&5
22884
22885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22886 $as_echo "no" >&6; }
22887
22888
22889
22890 fi
22891 rm -Rf build
22892
22893
22894
22895
22896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether security_inode_init_security wants callback" >&5
22897 $as_echo_n "checking whether security_inode_init_security wants callback... " >&6; }
22898
22899
22900 cat confdefs.h - <<_ACEOF >conftest.c
22901
22902
22903 #include <linux/security.h>
22904
22905 int
22906 main (void)
22907 {
22908
22909 struct inode *ip __attribute__ ((unused)) = NULL;
22910 struct inode *dip __attribute__ ((unused)) = NULL;
22911 const struct qstr *str __attribute__ ((unused)) = NULL;
22912 initxattrs func __attribute__ ((unused)) = NULL;
22913
22914 security_inode_init_security(ip, dip, str, func, NULL);
22915
22916 ;
22917 return 0;
22918 }
22919
22920 _ACEOF
22921
22922
22923
22924 cat - <<_ACEOF >conftest.h
22925
22926 _ACEOF
22927
22928
22929 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
22930 echo "obj-m := conftest.o" >build/Makefile
22931 modpost_flag=''
22932 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
22933 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
22934 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22935 (eval $ac_try) 2>&5
22936 ac_status=$?
22937 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22938 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
22939 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22940 (eval $ac_try) 2>&5
22941 ac_status=$?
22942 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22943 test $ac_status = 0; }; }; then :
22944
22945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22946 $as_echo "yes" >&6; }
22947
22948 $as_echo "#define HAVE_CALLBACK_SECURITY_INODE_INIT_SECURITY 1" >>confdefs.h
22949
22950
22951 else
22952 $as_echo "$as_me: failed program was:" >&5
22953 sed 's/^/| /' conftest.$ac_ext >&5
22954
22955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22956 $as_echo "no" >&6; }
22957
22958
22959
22960 fi
22961 rm -Rf build
22962
22963
22964
22965
22966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fst->mount() exists" >&5
22967 $as_echo_n "checking whether fst->mount() exists... " >&6; }
22968
22969
22970 cat confdefs.h - <<_ACEOF >conftest.c
22971
22972
22973 #include <linux/fs.h>
22974
22975 static struct dentry *
22976 mount(struct file_system_type *fs_type, int flags,
22977 const char *osname, void *data) {
22978 struct dentry *d = NULL;
22979 return (d);
22980 }
22981
22982 static struct file_system_type fst __attribute__ ((unused)) = {
22983 .mount = mount,
22984 };
22985
22986 int
22987 main (void)
22988 {
22989
22990
22991 ;
22992 return 0;
22993 }
22994
22995 _ACEOF
22996
22997
22998
22999 cat - <<_ACEOF >conftest.h
23000
23001 _ACEOF
23002
23003
23004 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
23005 echo "obj-m := conftest.o" >build/Makefile
23006 modpost_flag=''
23007 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
23008 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
23009 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23010 (eval $ac_try) 2>&5
23011 ac_status=$?
23012 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23013 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
23014 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23015 (eval $ac_try) 2>&5
23016 ac_status=$?
23017 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23018 test $ac_status = 0; }; }; then :
23019
23020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23021 $as_echo "yes" >&6; }
23022
23023 $as_echo "#define HAVE_FST_MOUNT 1" >>confdefs.h
23024
23025
23026 else
23027 $as_echo "$as_me: failed program was:" >&5
23028 sed 's/^/| /' conftest.$ac_ext >&5
23029
23030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23031 $as_echo "no" >&6; }
23032
23033
23034
23035 fi
23036 rm -Rf build
23037
23038
23039
23040
23041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether super_block has s_shrink" >&5
23042 $as_echo_n "checking whether super_block has s_shrink... " >&6; }
23043
23044
23045 cat confdefs.h - <<_ACEOF >conftest.c
23046
23047
23048 #include <linux/fs.h>
23049
23050 int shrink(struct shrinker *s, struct shrink_control *sc)
23051 { return 0; }
23052
23053 static const struct super_block
23054 sb __attribute__ ((unused)) = {
23055 .s_shrink.shrink = shrink,
23056 .s_shrink.seeks = DEFAULT_SEEKS,
23057 .s_shrink.batch = 0,
23058 };
23059
23060 int
23061 main (void)
23062 {
23063
23064
23065 ;
23066 return 0;
23067 }
23068
23069 _ACEOF
23070
23071
23072
23073 cat - <<_ACEOF >conftest.h
23074
23075 _ACEOF
23076
23077
23078 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
23079 echo "obj-m := conftest.o" >build/Makefile
23080 modpost_flag=''
23081 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
23082 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
23083 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23084 (eval $ac_try) 2>&5
23085 ac_status=$?
23086 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23087 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
23088 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23089 (eval $ac_try) 2>&5
23090 ac_status=$?
23091 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23092 test $ac_status = 0; }; }; then :
23093
23094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23095 $as_echo "yes" >&6; }
23096
23097 $as_echo "#define HAVE_SHRINK 1" >>confdefs.h
23098
23099
23100
23101 else
23102 $as_echo "$as_me: failed program was:" >&5
23103 sed 's/^/| /' conftest.$ac_ext >&5
23104
23105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23106 $as_echo "no" >&6; }
23107
23108
23109
23110 fi
23111 rm -Rf build
23112
23113
23114
23115
23116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether shrink_control has nid" >&5
23117 $as_echo_n "checking whether shrink_control has nid... " >&6; }
23118
23119
23120 cat confdefs.h - <<_ACEOF >conftest.c
23121
23122
23123 #include <linux/fs.h>
23124
23125 int
23126 main (void)
23127 {
23128
23129 struct shrink_control sc __attribute__ ((unused));
23130 unsigned long scnidsize __attribute__ ((unused)) =
23131 sizeof(sc.nid);
23132
23133 ;
23134 return 0;
23135 }
23136
23137 _ACEOF
23138
23139
23140
23141 cat - <<_ACEOF >conftest.h
23142
23143 _ACEOF
23144
23145
23146 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
23147 echo "obj-m := conftest.o" >build/Makefile
23148 modpost_flag=''
23149 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
23150 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
23151 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23152 (eval $ac_try) 2>&5
23153 ac_status=$?
23154 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23155 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
23156 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23157 (eval $ac_try) 2>&5
23158 ac_status=$?
23159 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23160 test $ac_status = 0; }; }; then :
23161
23162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23163 $as_echo "yes" >&6; }
23164
23165 $as_echo "#define SHRINK_CONTROL_HAS_NID 1" >>confdefs.h
23166
23167
23168 else
23169 $as_echo "$as_me: failed program was:" >&5
23170 sed 's/^/| /' conftest.$ac_ext >&5
23171
23172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23173 $as_echo "no" >&6; }
23174
23175
23176
23177 fi
23178 rm -Rf build
23179
23180
23181
23182
23183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether super_block has s_instances list_head" >&5
23184 $as_echo_n "checking whether super_block has s_instances list_head... " >&6; }
23185
23186
23187 cat confdefs.h - <<_ACEOF >conftest.c
23188
23189
23190 #include <linux/fs.h>
23191
23192 int
23193 main (void)
23194 {
23195
23196 struct super_block sb __attribute__ ((unused));
23197
23198 INIT_LIST_HEAD(&sb.s_instances);
23199
23200 ;
23201 return 0;
23202 }
23203
23204 _ACEOF
23205
23206
23207
23208 cat - <<_ACEOF >conftest.h
23209
23210 _ACEOF
23211
23212
23213 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
23214 echo "obj-m := conftest.o" >build/Makefile
23215 modpost_flag=''
23216 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
23217 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
23218 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23219 (eval $ac_try) 2>&5
23220 ac_status=$?
23221 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23222 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
23223 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23224 (eval $ac_try) 2>&5
23225 ac_status=$?
23226 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23227 test $ac_status = 0; }; }; then :
23228
23229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23230 $as_echo "yes" >&6; }
23231
23232 $as_echo "#define HAVE_S_INSTANCES_LIST_HEAD 1" >>confdefs.h
23233
23234
23235 else
23236 $as_echo "$as_me: failed program was:" >&5
23237 sed 's/^/| /' conftest.$ac_ext >&5
23238
23239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23240 $as_echo "no" >&6; }
23241
23242
23243
23244 fi
23245 rm -Rf build
23246
23247
23248
23249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether super_block has s_d_op" >&5
23250 $as_echo_n "checking whether super_block has s_d_op... " >&6; }
23251
23252
23253 cat confdefs.h - <<_ACEOF >conftest.c
23254
23255
23256 #include <linux/fs.h>
23257
23258 int
23259 main (void)
23260 {
23261
23262 struct super_block sb __attribute__ ((unused));
23263 sb.s_d_op = NULL;
23264
23265 ;
23266 return 0;
23267 }
23268
23269 _ACEOF
23270
23271
23272
23273 cat - <<_ACEOF >conftest.h
23274
23275 _ACEOF
23276
23277
23278 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
23279 echo "obj-m := conftest.o" >build/Makefile
23280 modpost_flag=''
23281 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
23282 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
23283 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23284 (eval $ac_try) 2>&5
23285 ac_status=$?
23286 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23287 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
23288 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23289 (eval $ac_try) 2>&5
23290 ac_status=$?
23291 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23292 test $ac_status = 0; }; }; then :
23293
23294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23295 $as_echo "yes" >&6; }
23296
23297 $as_echo "#define HAVE_S_D_OP 1" >>confdefs.h
23298
23299
23300 else
23301 $as_echo "$as_me: failed program was:" >&5
23302 sed 's/^/| /' conftest.$ac_ext >&5
23303
23304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23305 $as_echo "no" >&6; }
23306
23307
23308
23309 fi
23310 rm -Rf build
23311
23312
23313
23314
23315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether super_setup_bdi_name() exists" >&5
23316 $as_echo_n "checking whether super_setup_bdi_name() exists... " >&6; }
23317
23318
23319
23320 cat confdefs.h - <<_ACEOF >conftest.c
23321
23322
23323 #include <linux/fs.h>
23324 struct super_block sb;
23325
23326 int
23327 main (void)
23328 {
23329
23330 char *name = "bdi";
23331 atomic_long_t zfs_bdi_seq;
23332 int error __attribute__((unused)) =
23333 super_setup_bdi_name(&sb, "%.28s-%ld", name, atomic_long_inc_return(&zfs_bdi_seq));
23334
23335 ;
23336 return 0;
23337 }
23338
23339 _ACEOF
23340
23341
23342
23343 cat - <<_ACEOF >conftest.h
23344
23345 _ACEOF
23346
23347
23348 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
23349 echo "obj-m := conftest.o" >build/Makefile
23350 modpost_flag=''
23351 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
23352 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
23353 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23354 (eval $ac_try) 2>&5
23355 ac_status=$?
23356 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23357 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
23358 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23359 (eval $ac_try) 2>&5
23360 ac_status=$?
23361 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23362 test $ac_status = 0; }; }; then :
23363 rc=0
23364 else
23365 $as_echo "$as_me: failed program was:" >&5
23366 sed 's/^/| /' conftest.$ac_ext >&5
23367 rc=1
23368
23369
23370 fi
23371 rm -Rf build
23372
23373
23374 if test $rc -ne 0; then :
23375
23376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23377 $as_echo "no" >&6; }
23378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether bdi_setup_and_register() wants 2 args" >&5
23379 $as_echo_n "checking whether bdi_setup_and_register() wants 2 args... " >&6; }
23380
23381
23382
23383 cat confdefs.h - <<_ACEOF >conftest.c
23384
23385
23386 #include <linux/backing-dev.h>
23387 struct backing_dev_info bdi;
23388
23389 int
23390 main (void)
23391 {
23392
23393 char *name = "bdi";
23394 int error __attribute__((unused)) =
23395 bdi_setup_and_register(&bdi, name);
23396
23397 ;
23398 return 0;
23399 }
23400
23401 _ACEOF
23402
23403
23404
23405 cat - <<_ACEOF >conftest.h
23406
23407 _ACEOF
23408
23409
23410 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
23411 echo "obj-m := conftest.o" >build/Makefile
23412 modpost_flag=''
23413 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
23414 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
23415 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23416 (eval $ac_try) 2>&5
23417 ac_status=$?
23418 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23419 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
23420 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23421 (eval $ac_try) 2>&5
23422 ac_status=$?
23423 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23424 test $ac_status = 0; }; }; then :
23425 rc=0
23426 else
23427 $as_echo "$as_me: failed program was:" >&5
23428 sed 's/^/| /' conftest.$ac_ext >&5
23429 rc=1
23430
23431
23432 fi
23433 rm -Rf build
23434
23435
23436 if test $rc -ne 0; then :
23437
23438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23439 $as_echo "no" >&6; }
23440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether bdi_setup_and_register() wants 3 args" >&5
23441 $as_echo_n "checking whether bdi_setup_and_register() wants 3 args... " >&6; }
23442
23443
23444
23445 cat confdefs.h - <<_ACEOF >conftest.c
23446
23447
23448 #include <linux/backing-dev.h>
23449 struct backing_dev_info bdi;
23450
23451 int
23452 main (void)
23453 {
23454
23455 char *name = "bdi";
23456 unsigned int cap = BDI_CAP_MAP_COPY;
23457 int error __attribute__((unused)) =
23458 bdi_setup_and_register(&bdi, name, cap);
23459
23460 ;
23461 return 0;
23462 }
23463
23464 _ACEOF
23465
23466
23467
23468 cat - <<_ACEOF >conftest.h
23469
23470 _ACEOF
23471
23472
23473 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
23474 echo "obj-m := conftest.o" >build/Makefile
23475 modpost_flag=''
23476 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
23477 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
23478 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23479 (eval $ac_try) 2>&5
23480 ac_status=$?
23481 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23482 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
23483 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23484 (eval $ac_try) 2>&5
23485 ac_status=$?
23486 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23487 test $ac_status = 0; }; }; then :
23488 rc=0
23489 else
23490 $as_echo "$as_me: failed program was:" >&5
23491 sed 's/^/| /' conftest.$ac_ext >&5
23492 rc=1
23493
23494
23495 fi
23496 rm -Rf build
23497
23498
23499 if test $rc -ne 0; then :
23500
23501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23502 $as_echo "no" >&6; }
23503
23504 else
23505 if test "x$enable_linux_builtin" != xyes; then
23506
23507 grep -q -E '[[:space:]]bdi_setup_and_register[[:space:]]' \
23508 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
23509 rc=$?
23510 if test $rc -ne 0; then
23511 export=0
23512 for file in mm/backing-dev.c; do
23513 grep -q -E "EXPORT_SYMBOL.*(bdi_setup_and_register)" \
23514 "$LINUX/$file" 2>/dev/null
23515 rc=$?
23516 if test $rc -eq 0; then
23517 export=1
23518 break;
23519 fi
23520 done
23521 if test $export -eq 0; then :
23522 rc=1
23523 else :
23524 rc=0
23525 fi
23526 else :
23527 rc=0
23528 fi
23529
23530 fi
23531 if test $rc -ne 0; then :
23532
23533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23534 $as_echo "no" >&6; }
23535
23536 else :
23537
23538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23539 $as_echo "yes" >&6; }
23540
23541 $as_echo "#define HAVE_3ARGS_BDI_SETUP_AND_REGISTER 1" >>confdefs.h
23542
23543
23544 fi
23545 fi
23546
23547
23548 else
23549 if test "x$enable_linux_builtin" != xyes; then
23550
23551 grep -q -E '[[:space:]]bdi_setup_and_register[[:space:]]' \
23552 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
23553 rc=$?
23554 if test $rc -ne 0; then
23555 export=0
23556 for file in mm/backing-dev.c; do
23557 grep -q -E "EXPORT_SYMBOL.*(bdi_setup_and_register)" \
23558 "$LINUX/$file" 2>/dev/null
23559 rc=$?
23560 if test $rc -eq 0; then
23561 export=1
23562 break;
23563 fi
23564 done
23565 if test $export -eq 0; then :
23566 rc=1
23567 else :
23568 rc=0
23569 fi
23570 else :
23571 rc=0
23572 fi
23573
23574 fi
23575 if test $rc -ne 0; then :
23576
23577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23578 $as_echo "no" >&6; }
23579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether bdi_setup_and_register() wants 3 args" >&5
23580 $as_echo_n "checking whether bdi_setup_and_register() wants 3 args... " >&6; }
23581
23582
23583
23584 cat confdefs.h - <<_ACEOF >conftest.c
23585
23586
23587 #include <linux/backing-dev.h>
23588 struct backing_dev_info bdi;
23589
23590 int
23591 main (void)
23592 {
23593
23594 char *name = "bdi";
23595 unsigned int cap = BDI_CAP_MAP_COPY;
23596 int error __attribute__((unused)) =
23597 bdi_setup_and_register(&bdi, name, cap);
23598
23599 ;
23600 return 0;
23601 }
23602
23603 _ACEOF
23604
23605
23606
23607 cat - <<_ACEOF >conftest.h
23608
23609 _ACEOF
23610
23611
23612 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
23613 echo "obj-m := conftest.o" >build/Makefile
23614 modpost_flag=''
23615 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
23616 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
23617 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23618 (eval $ac_try) 2>&5
23619 ac_status=$?
23620 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23621 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
23622 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23623 (eval $ac_try) 2>&5
23624 ac_status=$?
23625 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23626 test $ac_status = 0; }; }; then :
23627 rc=0
23628 else
23629 $as_echo "$as_me: failed program was:" >&5
23630 sed 's/^/| /' conftest.$ac_ext >&5
23631 rc=1
23632
23633
23634 fi
23635 rm -Rf build
23636
23637
23638 if test $rc -ne 0; then :
23639
23640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23641 $as_echo "no" >&6; }
23642
23643 else
23644 if test "x$enable_linux_builtin" != xyes; then
23645
23646 grep -q -E '[[:space:]]bdi_setup_and_register[[:space:]]' \
23647 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
23648 rc=$?
23649 if test $rc -ne 0; then
23650 export=0
23651 for file in mm/backing-dev.c; do
23652 grep -q -E "EXPORT_SYMBOL.*(bdi_setup_and_register)" \
23653 "$LINUX/$file" 2>/dev/null
23654 rc=$?
23655 if test $rc -eq 0; then
23656 export=1
23657 break;
23658 fi
23659 done
23660 if test $export -eq 0; then :
23661 rc=1
23662 else :
23663 rc=0
23664 fi
23665 else :
23666 rc=0
23667 fi
23668
23669 fi
23670 if test $rc -ne 0; then :
23671
23672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23673 $as_echo "no" >&6; }
23674
23675 else :
23676
23677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23678 $as_echo "yes" >&6; }
23679
23680 $as_echo "#define HAVE_3ARGS_BDI_SETUP_AND_REGISTER 1" >>confdefs.h
23681
23682
23683 fi
23684 fi
23685
23686
23687 else :
23688
23689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23690 $as_echo "yes" >&6; }
23691
23692 $as_echo "#define HAVE_2ARGS_BDI_SETUP_AND_REGISTER 1" >>confdefs.h
23693
23694
23695 fi
23696 fi
23697
23698
23699 else
23700 if test "x$enable_linux_builtin" != xyes; then
23701
23702 grep -q -E '[[:space:]]super_setup_bdi_name[[:space:]]' \
23703 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
23704 rc=$?
23705 if test $rc -ne 0; then
23706 export=0
23707 for file in fs/super.c; do
23708 grep -q -E "EXPORT_SYMBOL.*(super_setup_bdi_name)" \
23709 "$LINUX/$file" 2>/dev/null
23710 rc=$?
23711 if test $rc -eq 0; then
23712 export=1
23713 break;
23714 fi
23715 done
23716 if test $export -eq 0; then :
23717 rc=1
23718 else :
23719 rc=0
23720 fi
23721 else :
23722 rc=0
23723 fi
23724
23725 fi
23726 if test $rc -ne 0; then :
23727
23728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23729 $as_echo "no" >&6; }
23730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether bdi_setup_and_register() wants 2 args" >&5
23731 $as_echo_n "checking whether bdi_setup_and_register() wants 2 args... " >&6; }
23732
23733
23734
23735 cat confdefs.h - <<_ACEOF >conftest.c
23736
23737
23738 #include <linux/backing-dev.h>
23739 struct backing_dev_info bdi;
23740
23741 int
23742 main (void)
23743 {
23744
23745 char *name = "bdi";
23746 int error __attribute__((unused)) =
23747 bdi_setup_and_register(&bdi, name);
23748
23749 ;
23750 return 0;
23751 }
23752
23753 _ACEOF
23754
23755
23756
23757 cat - <<_ACEOF >conftest.h
23758
23759 _ACEOF
23760
23761
23762 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
23763 echo "obj-m := conftest.o" >build/Makefile
23764 modpost_flag=''
23765 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
23766 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
23767 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23768 (eval $ac_try) 2>&5
23769 ac_status=$?
23770 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23771 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
23772 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23773 (eval $ac_try) 2>&5
23774 ac_status=$?
23775 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23776 test $ac_status = 0; }; }; then :
23777 rc=0
23778 else
23779 $as_echo "$as_me: failed program was:" >&5
23780 sed 's/^/| /' conftest.$ac_ext >&5
23781 rc=1
23782
23783
23784 fi
23785 rm -Rf build
23786
23787
23788 if test $rc -ne 0; then :
23789
23790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23791 $as_echo "no" >&6; }
23792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether bdi_setup_and_register() wants 3 args" >&5
23793 $as_echo_n "checking whether bdi_setup_and_register() wants 3 args... " >&6; }
23794
23795
23796
23797 cat confdefs.h - <<_ACEOF >conftest.c
23798
23799
23800 #include <linux/backing-dev.h>
23801 struct backing_dev_info bdi;
23802
23803 int
23804 main (void)
23805 {
23806
23807 char *name = "bdi";
23808 unsigned int cap = BDI_CAP_MAP_COPY;
23809 int error __attribute__((unused)) =
23810 bdi_setup_and_register(&bdi, name, cap);
23811
23812 ;
23813 return 0;
23814 }
23815
23816 _ACEOF
23817
23818
23819
23820 cat - <<_ACEOF >conftest.h
23821
23822 _ACEOF
23823
23824
23825 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
23826 echo "obj-m := conftest.o" >build/Makefile
23827 modpost_flag=''
23828 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
23829 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
23830 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23831 (eval $ac_try) 2>&5
23832 ac_status=$?
23833 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23834 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
23835 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23836 (eval $ac_try) 2>&5
23837 ac_status=$?
23838 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23839 test $ac_status = 0; }; }; then :
23840 rc=0
23841 else
23842 $as_echo "$as_me: failed program was:" >&5
23843 sed 's/^/| /' conftest.$ac_ext >&5
23844 rc=1
23845
23846
23847 fi
23848 rm -Rf build
23849
23850
23851 if test $rc -ne 0; then :
23852
23853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23854 $as_echo "no" >&6; }
23855
23856 else
23857 if test "x$enable_linux_builtin" != xyes; then
23858
23859 grep -q -E '[[:space:]]bdi_setup_and_register[[:space:]]' \
23860 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
23861 rc=$?
23862 if test $rc -ne 0; then
23863 export=0
23864 for file in mm/backing-dev.c; do
23865 grep -q -E "EXPORT_SYMBOL.*(bdi_setup_and_register)" \
23866 "$LINUX/$file" 2>/dev/null
23867 rc=$?
23868 if test $rc -eq 0; then
23869 export=1
23870 break;
23871 fi
23872 done
23873 if test $export -eq 0; then :
23874 rc=1
23875 else :
23876 rc=0
23877 fi
23878 else :
23879 rc=0
23880 fi
23881
23882 fi
23883 if test $rc -ne 0; then :
23884
23885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23886 $as_echo "no" >&6; }
23887
23888 else :
23889
23890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23891 $as_echo "yes" >&6; }
23892
23893 $as_echo "#define HAVE_3ARGS_BDI_SETUP_AND_REGISTER 1" >>confdefs.h
23894
23895
23896 fi
23897 fi
23898
23899
23900 else
23901 if test "x$enable_linux_builtin" != xyes; then
23902
23903 grep -q -E '[[:space:]]bdi_setup_and_register[[:space:]]' \
23904 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
23905 rc=$?
23906 if test $rc -ne 0; then
23907 export=0
23908 for file in mm/backing-dev.c; do
23909 grep -q -E "EXPORT_SYMBOL.*(bdi_setup_and_register)" \
23910 "$LINUX/$file" 2>/dev/null
23911 rc=$?
23912 if test $rc -eq 0; then
23913 export=1
23914 break;
23915 fi
23916 done
23917 if test $export -eq 0; then :
23918 rc=1
23919 else :
23920 rc=0
23921 fi
23922 else :
23923 rc=0
23924 fi
23925
23926 fi
23927 if test $rc -ne 0; then :
23928
23929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23930 $as_echo "no" >&6; }
23931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether bdi_setup_and_register() wants 3 args" >&5
23932 $as_echo_n "checking whether bdi_setup_and_register() wants 3 args... " >&6; }
23933
23934
23935
23936 cat confdefs.h - <<_ACEOF >conftest.c
23937
23938
23939 #include <linux/backing-dev.h>
23940 struct backing_dev_info bdi;
23941
23942 int
23943 main (void)
23944 {
23945
23946 char *name = "bdi";
23947 unsigned int cap = BDI_CAP_MAP_COPY;
23948 int error __attribute__((unused)) =
23949 bdi_setup_and_register(&bdi, name, cap);
23950
23951 ;
23952 return 0;
23953 }
23954
23955 _ACEOF
23956
23957
23958
23959 cat - <<_ACEOF >conftest.h
23960
23961 _ACEOF
23962
23963
23964 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
23965 echo "obj-m := conftest.o" >build/Makefile
23966 modpost_flag=''
23967 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
23968 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
23969 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23970 (eval $ac_try) 2>&5
23971 ac_status=$?
23972 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23973 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
23974 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23975 (eval $ac_try) 2>&5
23976 ac_status=$?
23977 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23978 test $ac_status = 0; }; }; then :
23979 rc=0
23980 else
23981 $as_echo "$as_me: failed program was:" >&5
23982 sed 's/^/| /' conftest.$ac_ext >&5
23983 rc=1
23984
23985
23986 fi
23987 rm -Rf build
23988
23989
23990 if test $rc -ne 0; then :
23991
23992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23993 $as_echo "no" >&6; }
23994
23995 else
23996 if test "x$enable_linux_builtin" != xyes; then
23997
23998 grep -q -E '[[:space:]]bdi_setup_and_register[[:space:]]' \
23999 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
24000 rc=$?
24001 if test $rc -ne 0; then
24002 export=0
24003 for file in mm/backing-dev.c; do
24004 grep -q -E "EXPORT_SYMBOL.*(bdi_setup_and_register)" \
24005 "$LINUX/$file" 2>/dev/null
24006 rc=$?
24007 if test $rc -eq 0; then
24008 export=1
24009 break;
24010 fi
24011 done
24012 if test $export -eq 0; then :
24013 rc=1
24014 else :
24015 rc=0
24016 fi
24017 else :
24018 rc=0
24019 fi
24020
24021 fi
24022 if test $rc -ne 0; then :
24023
24024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24025 $as_echo "no" >&6; }
24026
24027 else :
24028
24029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24030 $as_echo "yes" >&6; }
24031
24032 $as_echo "#define HAVE_3ARGS_BDI_SETUP_AND_REGISTER 1" >>confdefs.h
24033
24034
24035 fi
24036 fi
24037
24038
24039 else :
24040
24041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24042 $as_echo "yes" >&6; }
24043
24044 $as_echo "#define HAVE_2ARGS_BDI_SETUP_AND_REGISTER 1" >>confdefs.h
24045
24046
24047 fi
24048 fi
24049
24050
24051 else :
24052
24053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24054 $as_echo "yes" >&6; }
24055
24056 $as_echo "#define HAVE_SUPER_SETUP_BDI_NAME 1" >>confdefs.h
24057
24058
24059 fi
24060 fi
24061
24062
24063
24064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether set_nlink() is available" >&5
24065 $as_echo_n "checking whether set_nlink() is available... " >&6; }
24066
24067
24068 cat confdefs.h - <<_ACEOF >conftest.c
24069
24070
24071 #include <linux/fs.h>
24072
24073 int
24074 main (void)
24075 {
24076
24077 struct inode node;
24078 unsigned int link = 0;
24079 (void) set_nlink(&node, link);
24080
24081 ;
24082 return 0;
24083 }
24084
24085 _ACEOF
24086
24087
24088
24089 cat - <<_ACEOF >conftest.h
24090
24091 _ACEOF
24092
24093
24094 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
24095 echo "obj-m := conftest.o" >build/Makefile
24096 modpost_flag=''
24097 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
24098 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
24099 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24100 (eval $ac_try) 2>&5
24101 ac_status=$?
24102 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24103 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
24104 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24105 (eval $ac_try) 2>&5
24106 ac_status=$?
24107 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24108 test $ac_status = 0; }; }; then :
24109
24110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24111 $as_echo "yes" >&6; }
24112
24113 $as_echo "#define HAVE_SET_NLINK 1" >>confdefs.h
24114
24115
24116 else
24117 $as_echo "$as_me: failed program was:" >&5
24118 sed 's/^/| /' conftest.$ac_ext >&5
24119
24120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24121 $as_echo "no" >&6; }
24122
24123
24124
24125 fi
24126 rm -Rf build
24127
24128
24129
24130
24131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether elevator_change() is available" >&5
24132 $as_echo_n "checking whether elevator_change() is available... " >&6; }
24133 tmp_flags="$EXTRA_KCFLAGS"
24134 EXTRA_KCFLAGS="${NO_UNUSED_BUT_SET_VARIABLE}"
24135
24136
24137 cat confdefs.h - <<_ACEOF >conftest.c
24138
24139
24140 #include <linux/blkdev.h>
24141 #include <linux/elevator.h>
24142
24143 int
24144 main (void)
24145 {
24146
24147 int ret;
24148 struct request_queue *q = NULL;
24149 char *elevator = NULL;
24150 ret = elevator_change(q, elevator);
24151
24152 ;
24153 return 0;
24154 }
24155
24156 _ACEOF
24157
24158
24159
24160 cat - <<_ACEOF >conftest.h
24161
24162 _ACEOF
24163
24164
24165 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
24166 echo "obj-m := conftest.o" >build/Makefile
24167 modpost_flag=''
24168 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
24169 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
24170 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24171 (eval $ac_try) 2>&5
24172 ac_status=$?
24173 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24174 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
24175 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24176 (eval $ac_try) 2>&5
24177 ac_status=$?
24178 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24179 test $ac_status = 0; }; }; then :
24180
24181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24182 $as_echo "yes" >&6; }
24183
24184 $as_echo "#define HAVE_ELEVATOR_CHANGE 1" >>confdefs.h
24185
24186
24187 else
24188 $as_echo "$as_me: failed program was:" >&5
24189 sed 's/^/| /' conftest.$ac_ext >&5
24190
24191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24192 $as_echo "no" >&6; }
24193
24194
24195
24196 fi
24197 rm -Rf build
24198
24199
24200 EXTRA_KCFLAGS="$tmp_flags"
24201
24202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sget() wants 5 args" >&5
24203 $as_echo_n "checking whether sget() wants 5 args... " >&6; }
24204
24205
24206 cat confdefs.h - <<_ACEOF >conftest.c
24207
24208
24209 #include <linux/fs.h>
24210
24211 int
24212 main (void)
24213 {
24214
24215 struct file_system_type *type = NULL;
24216 int (*test)(struct super_block *,void *) = NULL;
24217 int (*set)(struct super_block *,void *) = NULL;
24218 int flags = 0;
24219 void *data = NULL;
24220 (void) sget(type, test, set, flags, data);
24221
24222 ;
24223 return 0;
24224 }
24225
24226 _ACEOF
24227
24228
24229
24230 cat - <<_ACEOF >conftest.h
24231
24232 _ACEOF
24233
24234
24235 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
24236 echo "obj-m := conftest.o" >build/Makefile
24237 modpost_flag=''
24238 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
24239 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
24240 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24241 (eval $ac_try) 2>&5
24242 ac_status=$?
24243 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24244 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
24245 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24246 (eval $ac_try) 2>&5
24247 ac_status=$?
24248 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24249 test $ac_status = 0; }; }; then :
24250
24251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24252 $as_echo "yes" >&6; }
24253
24254 $as_echo "#define HAVE_5ARG_SGET 1" >>confdefs.h
24255
24256
24257 else
24258 $as_echo "$as_me: failed program was:" >&5
24259 sed 's/^/| /' conftest.$ac_ext >&5
24260
24261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24262 $as_echo "no" >&6; }
24263
24264
24265
24266 fi
24267 rm -Rf build
24268
24269
24270
24271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lseek_execute() is available" >&5
24272 $as_echo_n "checking whether lseek_execute() is available... " >&6; }
24273
24274
24275
24276 cat confdefs.h - <<_ACEOF >conftest.c
24277
24278
24279 #include <linux/fs.h>
24280
24281 int
24282 main (void)
24283 {
24284
24285 struct file *fp __attribute__ ((unused)) = NULL;
24286 struct inode *ip __attribute__ ((unused)) = NULL;
24287 loff_t offset __attribute__ ((unused)) = 0;
24288 loff_t maxsize __attribute__ ((unused)) = 0;
24289
24290 lseek_execute(fp, ip, offset, maxsize);
24291
24292 ;
24293 return 0;
24294 }
24295
24296 _ACEOF
24297
24298
24299
24300 cat - <<_ACEOF >conftest.h
24301
24302 _ACEOF
24303
24304
24305 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
24306 echo "obj-m := conftest.o" >build/Makefile
24307 modpost_flag=''
24308 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
24309 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
24310 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24311 (eval $ac_try) 2>&5
24312 ac_status=$?
24313 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24314 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
24315 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24316 (eval $ac_try) 2>&5
24317 ac_status=$?
24318 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24319 test $ac_status = 0; }; }; then :
24320 rc=0
24321 else
24322 $as_echo "$as_me: failed program was:" >&5
24323 sed 's/^/| /' conftest.$ac_ext >&5
24324 rc=1
24325
24326
24327 fi
24328 rm -Rf build
24329
24330
24331 if test $rc -ne 0; then :
24332
24333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24334 $as_echo "no" >&6; }
24335
24336 else
24337 if test "x$enable_linux_builtin" != xyes; then
24338
24339 grep -q -E '[[:space:]]lseek_exclusive[[:space:]]' \
24340 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
24341 rc=$?
24342 if test $rc -ne 0; then
24343 export=0
24344 for file in fs/read_write.c; do
24345 grep -q -E "EXPORT_SYMBOL.*(lseek_exclusive)" \
24346 "$LINUX/$file" 2>/dev/null
24347 rc=$?
24348 if test $rc -eq 0; then
24349 export=1
24350 break;
24351 fi
24352 done
24353 if test $export -eq 0; then :
24354 rc=1
24355 else :
24356 rc=0
24357 fi
24358 else :
24359 rc=0
24360 fi
24361
24362 fi
24363 if test $rc -ne 0; then :
24364
24365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24366 $as_echo "no" >&6; }
24367
24368 else :
24369
24370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24371 $as_echo "yes" >&6; }
24372
24373 $as_echo "#define HAVE_LSEEK_EXECUTE 1" >>confdefs.h
24374
24375
24376 fi
24377 fi
24378
24379
24380
24381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fops->iterate_shared() is available" >&5
24382 $as_echo_n "checking whether fops->iterate_shared() is available... " >&6; }
24383
24384
24385 cat confdefs.h - <<_ACEOF >conftest.c
24386
24387
24388 #include <linux/fs.h>
24389 int iterate(struct file *filp, struct dir_context * context)
24390 { return 0; }
24391
24392 static const struct file_operations fops
24393 __attribute__ ((unused)) = {
24394 .iterate_shared = iterate,
24395 };
24396
24397 int
24398 main (void)
24399 {
24400
24401
24402 ;
24403 return 0;
24404 }
24405
24406 _ACEOF
24407
24408
24409
24410 cat - <<_ACEOF >conftest.h
24411
24412 _ACEOF
24413
24414
24415 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
24416 echo "obj-m := conftest.o" >build/Makefile
24417 modpost_flag=''
24418 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
24419 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
24420 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24421 (eval $ac_try) 2>&5
24422 ac_status=$?
24423 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24424 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
24425 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24426 (eval $ac_try) 2>&5
24427 ac_status=$?
24428 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24429 test $ac_status = 0; }; }; then :
24430
24431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24432 $as_echo "yes" >&6; }
24433
24434 $as_echo "#define HAVE_VFS_ITERATE_SHARED 1" >>confdefs.h
24435
24436
24437 else
24438 $as_echo "$as_me: failed program was:" >&5
24439 sed 's/^/| /' conftest.$ac_ext >&5
24440
24441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24442 $as_echo "no" >&6; }
24443
24444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fops->iterate() is available" >&5
24445 $as_echo_n "checking whether fops->iterate() is available... " >&6; }
24446
24447
24448 cat confdefs.h - <<_ACEOF >conftest.c
24449
24450
24451 #include <linux/fs.h>
24452 int iterate(struct file *filp, struct dir_context * context)
24453 { return 0; }
24454
24455 static const struct file_operations fops
24456 __attribute__ ((unused)) = {
24457 .iterate = iterate,
24458 };
24459
24460 int
24461 main (void)
24462 {
24463
24464
24465 ;
24466 return 0;
24467 }
24468
24469 _ACEOF
24470
24471
24472
24473 cat - <<_ACEOF >conftest.h
24474
24475 _ACEOF
24476
24477
24478 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
24479 echo "obj-m := conftest.o" >build/Makefile
24480 modpost_flag=''
24481 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
24482 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
24483 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24484 (eval $ac_try) 2>&5
24485 ac_status=$?
24486 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24487 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
24488 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24489 (eval $ac_try) 2>&5
24490 ac_status=$?
24491 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24492 test $ac_status = 0; }; }; then :
24493
24494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24495 $as_echo "yes" >&6; }
24496
24497 $as_echo "#define HAVE_VFS_ITERATE 1" >>confdefs.h
24498
24499
24500 else
24501 $as_echo "$as_me: failed program was:" >&5
24502 sed 's/^/| /' conftest.$ac_ext >&5
24503
24504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24505 $as_echo "no" >&6; }
24506
24507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fops->readdir() is available" >&5
24508 $as_echo_n "checking whether fops->readdir() is available... " >&6; }
24509
24510
24511 cat confdefs.h - <<_ACEOF >conftest.c
24512
24513
24514 #include <linux/fs.h>
24515 int readdir(struct file *filp, void *entry, filldir_t func)
24516 { return 0; }
24517
24518 static const struct file_operations fops
24519 __attribute__ ((unused)) = {
24520 .readdir = readdir,
24521 };
24522
24523 int
24524 main (void)
24525 {
24526
24527
24528 ;
24529 return 0;
24530 }
24531
24532 _ACEOF
24533
24534
24535
24536 cat - <<_ACEOF >conftest.h
24537
24538 _ACEOF
24539
24540
24541 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
24542 echo "obj-m := conftest.o" >build/Makefile
24543 modpost_flag=''
24544 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
24545 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
24546 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24547 (eval $ac_try) 2>&5
24548 ac_status=$?
24549 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24550 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
24551 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24552 (eval $ac_try) 2>&5
24553 ac_status=$?
24554 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24555 test $ac_status = 0; }; }; then :
24556
24557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24558 $as_echo "yes" >&6; }
24559
24560 $as_echo "#define HAVE_VFS_READDIR 1" >>confdefs.h
24561
24562
24563 else
24564 $as_echo "$as_me: failed program was:" >&5
24565 sed 's/^/| /' conftest.$ac_ext >&5
24566
24567 as_fn_error $? "no; file a bug report with ZFSOnLinux" "$LINENO" 5
24568
24569
24570
24571 fi
24572 rm -Rf build
24573
24574
24575
24576
24577
24578 fi
24579 rm -Rf build
24580
24581
24582
24583
24584
24585 fi
24586 rm -Rf build
24587
24588
24589
24590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fops->read/write_iter() are available" >&5
24591 $as_echo_n "checking whether fops->read/write_iter() are available... " >&6; }
24592
24593
24594 cat confdefs.h - <<_ACEOF >conftest.c
24595
24596
24597 #include <linux/fs.h>
24598
24599 ssize_t test_read(struct kiocb *kiocb, struct iov_iter *to)
24600 { return 0; }
24601 ssize_t test_write(struct kiocb *kiocb, struct iov_iter *from)
24602 { return 0; }
24603
24604 static const struct file_operations
24605 fops __attribute__ ((unused)) = {
24606 .read_iter = test_read,
24607 .write_iter = test_write,
24608 };
24609
24610 int
24611 main (void)
24612 {
24613
24614
24615 ;
24616 return 0;
24617 }
24618
24619 _ACEOF
24620
24621
24622
24623 cat - <<_ACEOF >conftest.h
24624
24625 _ACEOF
24626
24627
24628 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
24629 echo "obj-m := conftest.o" >build/Makefile
24630 modpost_flag=''
24631 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
24632 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
24633 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24634 (eval $ac_try) 2>&5
24635 ac_status=$?
24636 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24637 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
24638 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24639 (eval $ac_try) 2>&5
24640 ac_status=$?
24641 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24642 test $ac_status = 0; }; }; then :
24643
24644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24645 $as_echo "yes" >&6; }
24646
24647 $as_echo "#define HAVE_VFS_RW_ITERATE 1" >>confdefs.h
24648
24649
24650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether new_sync_read() is available" >&5
24651 $as_echo_n "checking whether new_sync_read() is available... " >&6; }
24652
24653
24654 cat confdefs.h - <<_ACEOF >conftest.c
24655
24656
24657 #include <linux/fs.h>
24658
24659 int
24660 main (void)
24661 {
24662
24663 new_sync_read(NULL, NULL, 0, NULL);
24664
24665 ;
24666 return 0;
24667 }
24668
24669 _ACEOF
24670
24671
24672
24673 cat - <<_ACEOF >conftest.h
24674
24675 _ACEOF
24676
24677
24678 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
24679 echo "obj-m := conftest.o" >build/Makefile
24680 modpost_flag=''
24681 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
24682 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
24683 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24684 (eval $ac_try) 2>&5
24685 ac_status=$?
24686 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24687 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
24688 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24689 (eval $ac_try) 2>&5
24690 ac_status=$?
24691 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24692 test $ac_status = 0; }; }; then :
24693
24694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24695 $as_echo "yes" >&6; }
24696
24697 $as_echo "#define HAVE_NEW_SYNC_READ 1" >>confdefs.h
24698
24699
24700 else
24701 $as_echo "$as_me: failed program was:" >&5
24702 sed 's/^/| /' conftest.$ac_ext >&5
24703
24704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24705 $as_echo "no" >&6; }
24706
24707
24708
24709 fi
24710 rm -Rf build
24711
24712
24713
24714
24715 else
24716 $as_echo "$as_me: failed program was:" >&5
24717 sed 's/^/| /' conftest.$ac_ext >&5
24718
24719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24720 $as_echo "no" >&6; }
24721
24722
24723
24724 fi
24725 rm -Rf build
24726
24727
24728
24729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether generic_write_checks() takes kiocb" >&5
24730 $as_echo_n "checking whether generic_write_checks() takes kiocb... " >&6; }
24731
24732
24733 cat confdefs.h - <<_ACEOF >conftest.c
24734
24735
24736 #include <linux/fs.h>
24737
24738
24739 int
24740 main (void)
24741 {
24742
24743 struct kiocb *iocb = NULL;
24744 struct iov_iter *iov = NULL;
24745 generic_write_checks(iocb, iov);
24746
24747 ;
24748 return 0;
24749 }
24750
24751 _ACEOF
24752
24753
24754
24755 cat - <<_ACEOF >conftest.h
24756
24757 _ACEOF
24758
24759
24760 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
24761 echo "obj-m := conftest.o" >build/Makefile
24762 modpost_flag=''
24763 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
24764 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
24765 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24766 (eval $ac_try) 2>&5
24767 ac_status=$?
24768 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24769 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
24770 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24771 (eval $ac_try) 2>&5
24772 ac_status=$?
24773 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24774 test $ac_status = 0; }; }; then :
24775
24776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24777 $as_echo "yes" >&6; }
24778
24779 $as_echo "#define HAVE_GENERIC_WRITE_CHECKS_KIOCB 1" >>confdefs.h
24780
24781
24782 else
24783 $as_echo "$as_me: failed program was:" >&5
24784 sed 's/^/| /' conftest.$ac_ext >&5
24785
24786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24787 $as_echo "no" >&6; }
24788
24789
24790
24791 fi
24792 rm -Rf build
24793
24794
24795
24796
24797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether kmap_atomic wants 1 args" >&5
24798 $as_echo_n "checking whether kmap_atomic wants 1 args... " >&6; }
24799
24800
24801 cat confdefs.h - <<_ACEOF >conftest.c
24802
24803
24804 #include <linux/pagemap.h>
24805
24806 int
24807 main (void)
24808 {
24809
24810 struct page page;
24811 kmap_atomic(&page);
24812
24813 ;
24814 return 0;
24815 }
24816
24817 _ACEOF
24818
24819
24820
24821 cat - <<_ACEOF >conftest.h
24822
24823 _ACEOF
24824
24825
24826 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
24827 echo "obj-m := conftest.o" >build/Makefile
24828 modpost_flag=''
24829 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
24830 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
24831 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24832 (eval $ac_try) 2>&5
24833 ac_status=$?
24834 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24835 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
24836 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24837 (eval $ac_try) 2>&5
24838 ac_status=$?
24839 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24840 test $ac_status = 0; }; }; then :
24841
24842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24843 $as_echo "yes" >&6; }
24844
24845 $as_echo "#define HAVE_1ARG_KMAP_ATOMIC 1" >>confdefs.h
24846
24847
24848 else
24849 $as_echo "$as_me: failed program was:" >&5
24850 sed 's/^/| /' conftest.$ac_ext >&5
24851
24852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24853 $as_echo "no" >&6; }
24854
24855
24856
24857 fi
24858 rm -Rf build
24859
24860
24861
24862
24863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether follow_down_one() is available" >&5
24864 $as_echo_n "checking whether follow_down_one() is available... " >&6; }
24865
24866
24867 cat confdefs.h - <<_ACEOF >conftest.c
24868
24869
24870 #include <linux/namei.h>
24871
24872 int
24873 main (void)
24874 {
24875
24876 struct path *p = NULL;
24877 follow_down_one(p);
24878
24879 ;
24880 return 0;
24881 }
24882
24883 _ACEOF
24884
24885
24886
24887 cat - <<_ACEOF >conftest.h
24888
24889 _ACEOF
24890
24891
24892 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
24893 echo "obj-m := conftest.o" >build/Makefile
24894 modpost_flag=''
24895 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
24896 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
24897 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24898 (eval $ac_try) 2>&5
24899 ac_status=$?
24900 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24901 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
24902 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24903 (eval $ac_try) 2>&5
24904 ac_status=$?
24905 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24906 test $ac_status = 0; }; }; then :
24907
24908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24909 $as_echo "yes" >&6; }
24910
24911 $as_echo "#define HAVE_FOLLOW_DOWN_ONE 1" >>confdefs.h
24912
24913
24914 else
24915 $as_echo "$as_me: failed program was:" >&5
24916 sed 's/^/| /' conftest.$ac_ext >&5
24917
24918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24919 $as_echo "no" >&6; }
24920
24921
24922
24923 fi
24924 rm -Rf build
24925
24926
24927
24928
24929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether make_request_fn() returns int" >&5
24930 $as_echo_n "checking whether make_request_fn() returns int... " >&6; }
24931
24932
24933 cat confdefs.h - <<_ACEOF >conftest.c
24934
24935
24936 #include <linux/blkdev.h>
24937
24938 int make_request(struct request_queue *q, struct bio *bio)
24939 {
24940 return (0);
24941 }
24942
24943 int
24944 main (void)
24945 {
24946
24947 blk_queue_make_request(NULL, &make_request);
24948
24949 ;
24950 return 0;
24951 }
24952
24953 _ACEOF
24954
24955
24956
24957 cat - <<_ACEOF >conftest.h
24958
24959 _ACEOF
24960
24961
24962 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
24963 echo "obj-m := conftest.o" >build/Makefile
24964 modpost_flag=''
24965 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
24966 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
24967 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24968 (eval $ac_try) 2>&5
24969 ac_status=$?
24970 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24971 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
24972 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24973 (eval $ac_try) 2>&5
24974 ac_status=$?
24975 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24976 test $ac_status = 0; }; }; then :
24977
24978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24979 $as_echo "yes" >&6; }
24980
24981 $as_echo "#define MAKE_REQUEST_FN_RET int" >>confdefs.h
24982
24983
24984 $as_echo "#define HAVE_MAKE_REQUEST_FN_RET_INT 1" >>confdefs.h
24985
24986
24987 else
24988 $as_echo "$as_me: failed program was:" >&5
24989 sed 's/^/| /' conftest.$ac_ext >&5
24990
24991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24992 $as_echo "no" >&6; }
24993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether make_request_fn() returns void" >&5
24994 $as_echo_n "checking whether make_request_fn() returns void... " >&6; }
24995
24996
24997 cat confdefs.h - <<_ACEOF >conftest.c
24998
24999
25000 #include <linux/blkdev.h>
25001
25002 void make_request(struct request_queue *q, struct bio *bio)
25003 {
25004 return;
25005 }
25006
25007 int
25008 main (void)
25009 {
25010
25011 blk_queue_make_request(NULL, &make_request);
25012
25013 ;
25014 return 0;
25015 }
25016
25017 _ACEOF
25018
25019
25020
25021 cat - <<_ACEOF >conftest.h
25022
25023 _ACEOF
25024
25025
25026 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
25027 echo "obj-m := conftest.o" >build/Makefile
25028 modpost_flag=''
25029 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
25030 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
25031 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25032 (eval $ac_try) 2>&5
25033 ac_status=$?
25034 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25035 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
25036 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25037 (eval $ac_try) 2>&5
25038 ac_status=$?
25039 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25040 test $ac_status = 0; }; }; then :
25041
25042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25043 $as_echo "yes" >&6; }
25044
25045 $as_echo "#define MAKE_REQUEST_FN_RET void" >>confdefs.h
25046
25047
25048 else
25049 $as_echo "$as_me: failed program was:" >&5
25050 sed 's/^/| /' conftest.$ac_ext >&5
25051
25052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25053 $as_echo "no" >&6; }
25054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether make_request_fn() returns blk_qc_t" >&5
25055 $as_echo_n "checking whether make_request_fn() returns blk_qc_t... " >&6; }
25056
25057
25058 cat confdefs.h - <<_ACEOF >conftest.c
25059
25060
25061 #include <linux/blkdev.h>
25062
25063 blk_qc_t make_request(struct request_queue *q, struct bio *bio)
25064 {
25065 return (BLK_QC_T_NONE);
25066 }
25067
25068 int
25069 main (void)
25070 {
25071
25072 blk_queue_make_request(NULL, &make_request);
25073
25074 ;
25075 return 0;
25076 }
25077
25078 _ACEOF
25079
25080
25081
25082 cat - <<_ACEOF >conftest.h
25083
25084 _ACEOF
25085
25086
25087 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
25088 echo "obj-m := conftest.o" >build/Makefile
25089 modpost_flag=''
25090 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
25091 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
25092 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25093 (eval $ac_try) 2>&5
25094 ac_status=$?
25095 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25096 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
25097 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25098 (eval $ac_try) 2>&5
25099 ac_status=$?
25100 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25101 test $ac_status = 0; }; }; then :
25102
25103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25104 $as_echo "yes" >&6; }
25105
25106 $as_echo "#define MAKE_REQUEST_FN_RET blk_qc_t" >>confdefs.h
25107
25108
25109 $as_echo "#define HAVE_MAKE_REQUEST_FN_RET_QC 1" >>confdefs.h
25110
25111
25112 else
25113 $as_echo "$as_me: failed program was:" >&5
25114 sed 's/^/| /' conftest.$ac_ext >&5
25115
25116 as_fn_error $? "no - Please file a bug report at
25117 https://github.com/zfsonlinux/zfs/issues/new" "$LINENO" 5
25118
25119
25120
25121 fi
25122 rm -Rf build
25123
25124
25125
25126
25127
25128 fi
25129 rm -Rf build
25130
25131
25132
25133
25134
25135 fi
25136 rm -Rf build
25137
25138
25139
25140
25141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether 3 arg generic IO accounting symbols are available" >&5
25142 $as_echo_n "checking whether 3 arg generic IO accounting symbols are available... " >&6; }
25143
25144
25145
25146 cat confdefs.h - <<_ACEOF >conftest.c
25147
25148
25149 #include <linux/bio.h>
25150
25151 void (*generic_start_io_acct_f)(int, unsigned long,
25152 struct hd_struct *) = &generic_start_io_acct;
25153 void (*generic_end_io_acct_f)(int, struct hd_struct *,
25154 unsigned long) = &generic_end_io_acct;
25155
25156 int
25157 main (void)
25158 {
25159
25160 generic_start_io_acct(0, 0, NULL);
25161 generic_end_io_acct(0, NULL, 0);
25162
25163 ;
25164 return 0;
25165 }
25166
25167 _ACEOF
25168
25169
25170
25171 cat - <<_ACEOF >conftest.h
25172
25173 _ACEOF
25174
25175
25176 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
25177 echo "obj-m := conftest.o" >build/Makefile
25178 modpost_flag=''
25179 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
25180 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
25181 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25182 (eval $ac_try) 2>&5
25183 ac_status=$?
25184 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25185 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
25186 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25187 (eval $ac_try) 2>&5
25188 ac_status=$?
25189 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25190 test $ac_status = 0; }; }; then :
25191 rc=0
25192 else
25193 $as_echo "$as_me: failed program was:" >&5
25194 sed 's/^/| /' conftest.$ac_ext >&5
25195 rc=1
25196
25197
25198 fi
25199 rm -Rf build
25200
25201
25202 if test $rc -ne 0; then :
25203
25204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25205 $as_echo "no" >&6; }
25206
25207 else
25208 if test "x$enable_linux_builtin" != xyes; then
25209
25210 grep -q -E '[[:space:]]generic_start_io_acct[[:space:]]' \
25211 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
25212 rc=$?
25213 if test $rc -ne 0; then
25214 export=0
25215 for file in block/bio.c; do
25216 grep -q -E "EXPORT_SYMBOL.*(generic_start_io_acct)" \
25217 "$LINUX/$file" 2>/dev/null
25218 rc=$?
25219 if test $rc -eq 0; then
25220 export=1
25221 break;
25222 fi
25223 done
25224 if test $export -eq 0; then :
25225 rc=1
25226 else :
25227 rc=0
25228 fi
25229 else :
25230 rc=0
25231 fi
25232
25233 fi
25234 if test $rc -ne 0; then :
25235
25236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25237 $as_echo "no" >&6; }
25238
25239 else :
25240
25241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25242 $as_echo "yes" >&6; }
25243
25244 $as_echo "#define HAVE_GENERIC_IO_ACCT_3ARG 1" >>confdefs.h
25245
25246
25247 fi
25248 fi
25249
25250
25251
25252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether 4 arg generic IO accounting symbols are available" >&5
25253 $as_echo_n "checking whether 4 arg generic IO accounting symbols are available... " >&6; }
25254
25255
25256
25257 cat confdefs.h - <<_ACEOF >conftest.c
25258
25259
25260 #include <linux/bio.h>
25261
25262 void (*generic_start_io_acct_f)(struct request_queue *, int,
25263 unsigned long, struct hd_struct *) = &generic_start_io_acct;
25264 void (*generic_end_io_acct_f)(struct request_queue *, int,
25265 struct hd_struct *, unsigned long) = &generic_end_io_acct;
25266
25267 int
25268 main (void)
25269 {
25270
25271 generic_start_io_acct(NULL, 0, 0, NULL);
25272 generic_end_io_acct(NULL, 0, NULL, 0);
25273
25274 ;
25275 return 0;
25276 }
25277
25278 _ACEOF
25279
25280
25281
25282 cat - <<_ACEOF >conftest.h
25283
25284 _ACEOF
25285
25286
25287 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
25288 echo "obj-m := conftest.o" >build/Makefile
25289 modpost_flag=''
25290 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
25291 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
25292 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25293 (eval $ac_try) 2>&5
25294 ac_status=$?
25295 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25296 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
25297 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25298 (eval $ac_try) 2>&5
25299 ac_status=$?
25300 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25301 test $ac_status = 0; }; }; then :
25302 rc=0
25303 else
25304 $as_echo "$as_me: failed program was:" >&5
25305 sed 's/^/| /' conftest.$ac_ext >&5
25306 rc=1
25307
25308
25309 fi
25310 rm -Rf build
25311
25312
25313 if test $rc -ne 0; then :
25314
25315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25316 $as_echo "no" >&6; }
25317
25318 else
25319 if test "x$enable_linux_builtin" != xyes; then
25320
25321 grep -q -E '[[:space:]]generic_start_io_acct[[:space:]]' \
25322 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
25323 rc=$?
25324 if test $rc -ne 0; then
25325 export=0
25326 for file in block/bio.c; do
25327 grep -q -E "EXPORT_SYMBOL.*(generic_start_io_acct)" \
25328 "$LINUX/$file" 2>/dev/null
25329 rc=$?
25330 if test $rc -eq 0; then
25331 export=1
25332 break;
25333 fi
25334 done
25335 if test $export -eq 0; then :
25336 rc=1
25337 else :
25338 rc=0
25339 fi
25340 else :
25341 rc=0
25342 fi
25343
25344 fi
25345 if test $rc -ne 0; then :
25346
25347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25348 $as_echo "no" >&6; }
25349
25350 else :
25351
25352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25353 $as_echo "yes" >&6; }
25354
25355 $as_echo "#define HAVE_GENERIC_IO_ACCT_4ARG 1" >>confdefs.h
25356
25357
25358 fi
25359 fi
25360
25361
25362
25363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether asm/fpu/api.h exists" >&5
25364 $as_echo_n "checking whether asm/fpu/api.h exists... " >&6; }
25365
25366
25367 cat confdefs.h - <<_ACEOF >conftest.c
25368
25369
25370 #include <linux/kernel.h>
25371 #include <asm/fpu/api.h>
25372
25373 int
25374 main (void)
25375 {
25376
25377 __kernel_fpu_begin();
25378
25379 ;
25380 return 0;
25381 }
25382
25383 _ACEOF
25384
25385
25386
25387 cat - <<_ACEOF >conftest.h
25388
25389 _ACEOF
25390
25391
25392 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
25393 echo "obj-m := conftest.o" >build/Makefile
25394 modpost_flag=''
25395 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
25396 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
25397 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25398 (eval $ac_try) 2>&5
25399 ac_status=$?
25400 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25401 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
25402 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25403 (eval $ac_try) 2>&5
25404 ac_status=$?
25405 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25406 test $ac_status = 0; }; }; then :
25407
25408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25409 $as_echo "yes" >&6; }
25410
25411 $as_echo "#define HAVE_FPU_API_H 1" >>confdefs.h
25412
25413
25414 else
25415 $as_echo "$as_me: failed program was:" >&5
25416 sed 's/^/| /' conftest.$ac_ext >&5
25417
25418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25419 $as_echo "no" >&6; }
25420
25421
25422
25423 fi
25424 rm -Rf build
25425
25426
25427
25428
25429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether i_(uid|gid)_(read|write) exist" >&5
25430 $as_echo_n "checking whether i_(uid|gid)_(read|write) exist... " >&6; }
25431
25432
25433 cat confdefs.h - <<_ACEOF >conftest.c
25434
25435
25436 #include <linux/fs.h>
25437
25438 int
25439 main (void)
25440 {
25441
25442 struct inode *ip = NULL;
25443 (void) i_uid_read(ip);
25444
25445 ;
25446 return 0;
25447 }
25448
25449 _ACEOF
25450
25451
25452
25453 cat - <<_ACEOF >conftest.h
25454
25455 _ACEOF
25456
25457
25458 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
25459 echo "obj-m := conftest.o" >build/Makefile
25460 modpost_flag=''
25461 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
25462 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
25463 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25464 (eval $ac_try) 2>&5
25465 ac_status=$?
25466 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25467 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
25468 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25469 (eval $ac_try) 2>&5
25470 ac_status=$?
25471 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25472 test $ac_status = 0; }; }; then :
25473
25474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25475 $as_echo "yes" >&6; }
25476
25477 $as_echo "#define HAVE_KUID_HELPERS 1" >>confdefs.h
25478
25479
25480 else
25481 $as_echo "$as_me: failed program was:" >&5
25482 sed 's/^/| /' conftest.$ac_ext >&5
25483
25484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25485 $as_echo "no" >&6; }
25486
25487
25488
25489 fi
25490 rm -Rf build
25491
25492
25493
25494
25495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether module_param_call() is hardened" >&5
25496 $as_echo_n "checking whether module_param_call() is hardened... " >&6; }
25497
25498
25499 cat confdefs.h - <<_ACEOF >conftest.c
25500
25501
25502 #include <linux/module.h>
25503 #include <linux/moduleparam.h>
25504
25505 int param_get(char *b, const struct kernel_param *kp)
25506 {
25507 return (0);
25508 }
25509
25510 int param_set(const char *b, const struct kernel_param *kp)
25511 {
25512 return (0);
25513 }
25514
25515 module_param_call(p, param_set, param_get, NULL, 0644);
25516
25517 int
25518 main (void)
25519 {
25520
25521
25522 ;
25523 return 0;
25524 }
25525
25526 _ACEOF
25527
25528
25529
25530 cat - <<_ACEOF >conftest.h
25531
25532 _ACEOF
25533
25534
25535 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
25536 echo "obj-m := conftest.o" >build/Makefile
25537 modpost_flag=''
25538 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
25539 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
25540 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25541 (eval $ac_try) 2>&5
25542 ac_status=$?
25543 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25544 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
25545 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25546 (eval $ac_try) 2>&5
25547 ac_status=$?
25548 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25549 test $ac_status = 0; }; }; then :
25550
25551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25552 $as_echo "yes" >&6; }
25553
25554 $as_echo "#define MODULE_PARAM_CALL_CONST 1" >>confdefs.h
25555
25556
25557 else
25558 $as_echo "$as_me: failed program was:" >&5
25559 sed 's/^/| /' conftest.$ac_ext >&5
25560
25561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25562 $as_echo "no" >&6; }
25563
25564
25565
25566 fi
25567 rm -Rf build
25568
25569
25570
25571
25572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->rename() wants flags" >&5
25573 $as_echo_n "checking whether iops->rename() wants flags... " >&6; }
25574
25575
25576 cat confdefs.h - <<_ACEOF >conftest.c
25577
25578
25579 #include <linux/fs.h>
25580 int rename_fn(struct inode *sip, struct dentry *sdp,
25581 struct inode *tip, struct dentry *tdp,
25582 unsigned int flags) { return 0; }
25583
25584 static const struct inode_operations
25585 iops __attribute__ ((unused)) = {
25586 .rename = rename_fn,
25587 };
25588
25589 int
25590 main (void)
25591 {
25592
25593
25594 ;
25595 return 0;
25596 }
25597
25598 _ACEOF
25599
25600
25601
25602 cat - <<_ACEOF >conftest.h
25603
25604 _ACEOF
25605
25606
25607 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
25608 echo "obj-m := conftest.o" >build/Makefile
25609 modpost_flag=''
25610 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
25611 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
25612 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25613 (eval $ac_try) 2>&5
25614 ac_status=$?
25615 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25616 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
25617 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25618 (eval $ac_try) 2>&5
25619 ac_status=$?
25620 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25621 test $ac_status = 0; }; }; then :
25622
25623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25624 $as_echo "yes" >&6; }
25625
25626 $as_echo "#define HAVE_RENAME_WANTS_FLAGS 1" >>confdefs.h
25627
25628
25629 else
25630 $as_echo "$as_me: failed program was:" >&5
25631 sed 's/^/| /' conftest.$ac_ext >&5
25632
25633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25634 $as_echo "no" >&6; }
25635
25636
25637
25638 fi
25639 rm -Rf build
25640
25641
25642
25643
25644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether generic_setxattr() exists" >&5
25645 $as_echo_n "checking whether generic_setxattr() exists... " >&6; }
25646
25647
25648 cat confdefs.h - <<_ACEOF >conftest.c
25649
25650
25651 #include <linux/fs.h>
25652 #include <linux/xattr.h>
25653
25654 static const struct inode_operations
25655 iops __attribute__ ((unused)) = {
25656 .setxattr = generic_setxattr
25657 };
25658
25659 int
25660 main (void)
25661 {
25662
25663
25664 ;
25665 return 0;
25666 }
25667
25668 _ACEOF
25669
25670
25671
25672 cat - <<_ACEOF >conftest.h
25673
25674 _ACEOF
25675
25676
25677 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
25678 echo "obj-m := conftest.o" >build/Makefile
25679 modpost_flag=''
25680 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
25681 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
25682 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25683 (eval $ac_try) 2>&5
25684 ac_status=$?
25685 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25686 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
25687 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25688 (eval $ac_try) 2>&5
25689 ac_status=$?
25690 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25691 test $ac_status = 0; }; }; then :
25692
25693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25694 $as_echo "yes" >&6; }
25695
25696 $as_echo "#define HAVE_GENERIC_SETXATTR 1" >>confdefs.h
25697
25698
25699 else
25700 $as_echo "$as_me: failed program was:" >&5
25701 sed 's/^/| /' conftest.$ac_ext >&5
25702
25703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25704 $as_echo "no" >&6; }
25705
25706
25707
25708 fi
25709 rm -Rf build
25710
25711
25712
25713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether current_time() exists" >&5
25714 $as_echo_n "checking whether current_time() exists... " >&6; }
25715
25716
25717
25718 cat confdefs.h - <<_ACEOF >conftest.c
25719
25720
25721 #include <linux/fs.h>
25722
25723 int
25724 main (void)
25725 {
25726
25727 struct inode ip;
25728 struct timespec now __attribute__ ((unused));
25729
25730 now = current_time(&ip);
25731
25732 ;
25733 return 0;
25734 }
25735
25736 _ACEOF
25737
25738
25739
25740 cat - <<_ACEOF >conftest.h
25741
25742 _ACEOF
25743
25744
25745 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
25746 echo "obj-m := conftest.o" >build/Makefile
25747 modpost_flag=''
25748 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
25749 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
25750 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25751 (eval $ac_try) 2>&5
25752 ac_status=$?
25753 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25754 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
25755 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25756 (eval $ac_try) 2>&5
25757 ac_status=$?
25758 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25759 test $ac_status = 0; }; }; then :
25760 rc=0
25761 else
25762 $as_echo "$as_me: failed program was:" >&5
25763 sed 's/^/| /' conftest.$ac_ext >&5
25764 rc=1
25765
25766
25767 fi
25768 rm -Rf build
25769
25770
25771 if test $rc -ne 0; then :
25772
25773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25774 $as_echo "no" >&6; }
25775
25776 else
25777 if test "x$enable_linux_builtin" != xyes; then
25778
25779 grep -q -E '[[:space:]]current_time[[:space:]]' \
25780 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
25781 rc=$?
25782 if test $rc -ne 0; then
25783 export=0
25784 for file in fs/inode.c; do
25785 grep -q -E "EXPORT_SYMBOL.*(current_time)" \
25786 "$LINUX/$file" 2>/dev/null
25787 rc=$?
25788 if test $rc -eq 0; then
25789 export=1
25790 break;
25791 fi
25792 done
25793 if test $export -eq 0; then :
25794 rc=1
25795 else :
25796 rc=0
25797 fi
25798 else :
25799 rc=0
25800 fi
25801
25802 fi
25803 if test $rc -ne 0; then :
25804
25805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25806 $as_echo "no" >&6; }
25807
25808 else :
25809
25810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25811 $as_echo "yes" >&6; }
25812
25813 $as_echo "#define HAVE_CURRENT_TIME 1" >>confdefs.h
25814
25815
25816 fi
25817 fi
25818
25819
25820
25821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use vm_node_stat based fn's" >&5
25822 $as_echo_n "checking whether to use vm_node_stat based fn's... " >&6; }
25823
25824
25825 cat confdefs.h - <<_ACEOF >conftest.c
25826
25827
25828 #include <linux/mm.h>
25829 #include <linux/vmstat.h>
25830
25831 int
25832 main (void)
25833 {
25834
25835 int a __attribute__ ((unused)) = NR_VM_NODE_STAT_ITEMS;
25836 long x __attribute__ ((unused)) =
25837 atomic_long_read(&vm_node_stat[0]);
25838 (void) global_node_page_state(0);
25839
25840 ;
25841 return 0;
25842 }
25843
25844 _ACEOF
25845
25846
25847
25848 cat - <<_ACEOF >conftest.h
25849
25850 _ACEOF
25851
25852
25853 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
25854 echo "obj-m := conftest.o" >build/Makefile
25855 modpost_flag=''
25856 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
25857 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
25858 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25859 (eval $ac_try) 2>&5
25860 ac_status=$?
25861 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25862 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
25863 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25864 (eval $ac_try) 2>&5
25865 ac_status=$?
25866 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25867 test $ac_status = 0; }; }; then :
25868
25869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25870 $as_echo "yes" >&6; }
25871
25872 $as_echo "#define ZFS_GLOBAL_NODE_PAGE_STATE 1" >>confdefs.h
25873
25874
25875 else
25876 $as_echo "$as_me: failed program was:" >&5
25877 sed 's/^/| /' conftest.$ac_ext >&5
25878
25879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25880 $as_echo "no" >&6; }
25881
25882
25883
25884 fi
25885 rm -Rf build
25886
25887
25888
25889
25890
25891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ns_capable exists" >&5
25892 $as_echo_n "checking whether ns_capable exists... " >&6; }
25893
25894
25895 cat confdefs.h - <<_ACEOF >conftest.c
25896
25897
25898 #include <linux/capability.h>
25899
25900 int
25901 main (void)
25902 {
25903
25904 ns_capable((struct user_namespace *)NULL, CAP_SYS_ADMIN);
25905
25906 ;
25907 return 0;
25908 }
25909
25910 _ACEOF
25911
25912
25913
25914 cat - <<_ACEOF >conftest.h
25915
25916 _ACEOF
25917
25918
25919 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
25920 echo "obj-m := conftest.o" >build/Makefile
25921 modpost_flag=''
25922 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
25923 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
25924 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25925 (eval $ac_try) 2>&5
25926 ac_status=$?
25927 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25928 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
25929 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25930 (eval $ac_try) 2>&5
25931 ac_status=$?
25932 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25933 test $ac_status = 0; }; }; then :
25934
25935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25936 $as_echo "yes" >&6; }
25937
25938 $as_echo "#define HAVE_NS_CAPABLE 1" >>confdefs.h
25939
25940
25941 else
25942 $as_echo "$as_me: failed program was:" >&5
25943 sed 's/^/| /' conftest.$ac_ext >&5
25944
25945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25946 $as_echo "no" >&6; }
25947
25948
25949
25950 fi
25951 rm -Rf build
25952
25953
25954
25955
25956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cred_t->user_ns exists" >&5
25957 $as_echo_n "checking whether cred_t->user_ns exists... " >&6; }
25958
25959
25960 cat confdefs.h - <<_ACEOF >conftest.c
25961
25962
25963 #include <linux/cred.h>
25964
25965 int
25966 main (void)
25967 {
25968
25969 struct cred cr;
25970 cr.user_ns = (struct user_namespace *)NULL;
25971
25972 ;
25973 return 0;
25974 }
25975
25976 _ACEOF
25977
25978
25979
25980 cat - <<_ACEOF >conftest.h
25981
25982 _ACEOF
25983
25984
25985 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
25986 echo "obj-m := conftest.o" >build/Makefile
25987 modpost_flag=''
25988 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
25989 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
25990 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25991 (eval $ac_try) 2>&5
25992 ac_status=$?
25993 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25994 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
25995 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25996 (eval $ac_try) 2>&5
25997 ac_status=$?
25998 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25999 test $ac_status = 0; }; }; then :
26000
26001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26002 $as_echo "yes" >&6; }
26003
26004 $as_echo "#define HAVE_CRED_USER_NS 1" >>confdefs.h
26005
26006
26007 else
26008 $as_echo "$as_me: failed program was:" >&5
26009 sed 's/^/| /' conftest.$ac_ext >&5
26010
26011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26012 $as_echo "no" >&6; }
26013
26014
26015
26016 fi
26017 rm -Rf build
26018
26019
26020
26021
26022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether kuid_has_mapping/kgid_has_mapping exist" >&5
26023 $as_echo_n "checking whether kuid_has_mapping/kgid_has_mapping exist... " >&6; }
26024
26025
26026 cat confdefs.h - <<_ACEOF >conftest.c
26027
26028
26029 #include <linux/uidgid.h>
26030
26031 int
26032 main (void)
26033 {
26034
26035 kuid_has_mapping((struct user_namespace *)NULL, KUIDT_INIT(0));
26036 kgid_has_mapping((struct user_namespace *)NULL, KGIDT_INIT(0));
26037
26038 ;
26039 return 0;
26040 }
26041
26042 _ACEOF
26043
26044
26045
26046 cat - <<_ACEOF >conftest.h
26047
26048 _ACEOF
26049
26050
26051 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
26052 echo "obj-m := conftest.o" >build/Makefile
26053 modpost_flag=''
26054 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
26055 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
26056 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26057 (eval $ac_try) 2>&5
26058 ac_status=$?
26059 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26060 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
26061 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26062 (eval $ac_try) 2>&5
26063 ac_status=$?
26064 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26065 test $ac_status = 0; }; }; then :
26066
26067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26068 $as_echo "yes" >&6; }
26069
26070 $as_echo "#define HAVE_KUID_HAS_MAPPING 1" >>confdefs.h
26071
26072
26073 else
26074 $as_echo "$as_me: failed program was:" >&5
26075 sed 's/^/| /' conftest.$ac_ext >&5
26076
26077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26078 $as_echo "no" >&6; }
26079
26080
26081
26082 fi
26083 rm -Rf build
26084
26085
26086
26087
26088
26089 if test "$LINUX_OBJ" != "$LINUX"; then :
26090
26091 KERNELMAKE_PARAMS="$KERNELMAKE_PARAMS O=$LINUX_OBJ"
26092
26093 fi
26094
26095
26096
26097 KERNELCPPFLAGS="$KERNELCPPFLAGS -std=gnu99"
26098 KERNELCPPFLAGS="$KERNELCPPFLAGS -Wno-declaration-after-statement"
26099 KERNELCPPFLAGS="$KERNELCPPFLAGS $NO_UNUSED_BUT_SET_VARIABLE"
26100 KERNELCPPFLAGS="$KERNELCPPFLAGS $NO_BOOL_COMPARE"
26101 KERNELCPPFLAGS="$KERNELCPPFLAGS -DHAVE_SPL -D_KERNEL"
26102 KERNELCPPFLAGS="$KERNELCPPFLAGS -DTEXT_DOMAIN=\\\"zfs-linux-kernel\\\""
26103
26104
26105 ;;
26106 user)
26107
26108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dkms.conf file" >&5
26109 $as_echo_n "checking for dkms.conf file... " >&6; }
26110 if test -e dkms.conf; then :
26111
26112 as_fn_error $? "
26113 *** ZFS should not be manually built in the DKMS source tree.
26114 *** Remove all ZFS packages before compiling the ZoL sources.
26115 *** Running \"make install\" breaks ZFS packages." "$LINENO" 5
26116
26117 else
26118
26119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
26120 $as_echo "not found" >&6; }
26121
26122 fi
26123
26124
26125
26126 # Check whether --with-mounthelperdir was given.
26127 if test "${with_mounthelperdir+set}" = set; then :
26128 withval=$with_mounthelperdir; mounthelperdir=$withval
26129 else
26130 mounthelperdir=/sbin
26131 fi
26132
26133
26134
26135
26136
26137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for udev directories" >&5
26138 $as_echo_n "checking for udev directories... " >&6; }
26139
26140 # Check whether --with-udevdir was given.
26141 if test "${with_udevdir+set}" = set; then :
26142 withval=$with_udevdir; udevdir=$withval
26143 else
26144 udevdir=check
26145 fi
26146
26147
26148 if test "x$udevdir" = xcheck; then :
26149
26150 path1=/lib/udev
26151 path2=/usr/lib/udev
26152 default=$path2
26153
26154 if test -d "$path1"; then :
26155 udevdir="$path1"
26156 else
26157
26158 if test -d "$path2"; then :
26159 udevdir="$path2"
26160 else
26161 udevdir="$default"
26162 fi
26163
26164 fi
26165
26166 fi
26167
26168
26169 # Check whether --with-udevruledir was given.
26170 if test "${with_udevruledir+set}" = set; then :
26171 withval=$with_udevruledir; udevruledir=$withval
26172 else
26173 udevruledir="${udevdir}/rules.d"
26174 fi
26175
26176
26177
26178
26179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $udevdir;$udevruledir" >&5
26180 $as_echo "$udevdir;$udevruledir" >&6; }
26181
26182
26183 # Check whether --enable-systemd was given.
26184 if test "${enable_systemd+set}" = set; then :
26185 enableval=$enable_systemd;
26186 else
26187 enable_systemd=yes
26188 fi
26189
26190
26191
26192 # Check whether --with-systemdunitdir was given.
26193 if test "${with_systemdunitdir+set}" = set; then :
26194 withval=$with_systemdunitdir; systemdunitdir=$withval
26195 else
26196 systemdunitdir=/usr/lib/systemd/system
26197 fi
26198
26199
26200
26201 # Check whether --with-systemdpresetdir was given.
26202 if test "${with_systemdpresetdir+set}" = set; then :
26203 withval=$with_systemdpresetdir; systemdpresetdir=$withval
26204 else
26205 systemdpresetdir=/usr/lib/systemd/system-preset
26206 fi
26207
26208
26209
26210 # Check whether --with-systemdmodulesloaddir was given.
26211 if test "${with_systemdmodulesloaddir+set}" = set; then :
26212 withval=$with_systemdmodulesloaddir; systemdmoduleloaddir=$withval
26213 else
26214 systemdmodulesloaddir=/usr/lib/modules-load.d
26215 fi
26216
26217
26218
26219 if test "x$enable_systemd" = xyes; then :
26220
26221 ZFS_INIT_SYSTEMD=systemd
26222 ZFS_MODULE_LOAD=modules-load.d
26223 modulesloaddir=$systemdmodulesloaddir
26224
26225 fi
26226
26227
26228
26229
26230
26231
26232
26233
26234 # Check whether --enable-sysvinit was given.
26235 if test "${enable_sysvinit+set}" = set; then :
26236 enableval=$enable_sysvinit;
26237 else
26238 enable_sysvinit=yes
26239 fi
26240
26241
26242 if test "x$enable_sysvinit" = xyes; then :
26243 ZFS_INIT_SYSV=init.d
26244 fi
26245
26246
26247
26248
26249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dracut directory" >&5
26250 $as_echo_n "checking for dracut directory... " >&6; }
26251
26252 # Check whether --with-dracutdir was given.
26253 if test "${with_dracutdir+set}" = set; then :
26254 withval=$with_dracutdir; dracutdir=$withval
26255 else
26256 dracutdir=check
26257 fi
26258
26259
26260 if test "x$dracutdir" = xcheck; then :
26261
26262 path1=/usr/share/dracut
26263 path2=/usr/lib/dracut
26264 default=$path2
26265
26266 if test -d "$path1"; then :
26267 dracutdir="$path1"
26268 else
26269
26270 if test -d "$path2"; then :
26271 dracutdir="$path2"
26272 else
26273 dracutdir="$default"
26274 fi
26275
26276 fi
26277
26278 fi
26279
26280
26281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dracutdir" >&5
26282 $as_echo "$dracutdir" >&6; }
26283
26284
26285 ZLIB=
26286
26287 ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
26288 if test "x$ac_cv_header_zlib_h" = xyes; then :
26289
26290 else
26291 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
26292 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26293 as_fn_error $? "
26294 *** zlib.h missing, zlib-devel package required
26295 See \`config.log' for more details" "$LINENO" 5; }
26296 fi
26297
26298
26299
26300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing compress2" >&5
26301 $as_echo_n "checking for library containing compress2... " >&6; }
26302 if ${ac_cv_search_compress2+:} false; then :
26303 $as_echo_n "(cached) " >&6
26304 else
26305 ac_func_search_save_LIBS=$LIBS
26306 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26307 /* end confdefs.h. */
26308
26309 /* Override any GCC internal prototype to avoid an error.
26310 Use char because int might match the return type of a GCC
26311 builtin and then its argument prototype would still apply. */
26312 #ifdef __cplusplus
26313 extern "C"
26314 #endif
26315 char compress2 ();
26316 int
26317 main ()
26318 {
26319 return compress2 ();
26320 ;
26321 return 0;
26322 }
26323 _ACEOF
26324 for ac_lib in '' z; do
26325 if test -z "$ac_lib"; then
26326 ac_res="none required"
26327 else
26328 ac_res=-l$ac_lib
26329 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
26330 fi
26331 if ac_fn_c_try_link "$LINENO"; then :
26332 ac_cv_search_compress2=$ac_res
26333 fi
26334 rm -f core conftest.err conftest.$ac_objext \
26335 conftest$ac_exeext
26336 if ${ac_cv_search_compress2+:} false; then :
26337 break
26338 fi
26339 done
26340 if ${ac_cv_search_compress2+:} false; then :
26341
26342 else
26343 ac_cv_search_compress2=no
26344 fi
26345 rm conftest.$ac_ext
26346 LIBS=$ac_func_search_save_LIBS
26347 fi
26348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_compress2" >&5
26349 $as_echo "$ac_cv_search_compress2" >&6; }
26350 ac_res=$ac_cv_search_compress2
26351 if test "$ac_res" != no; then :
26352 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
26353
26354 else
26355 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
26356 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26357 as_fn_error $? "
26358 *** compress2() missing, zlib-devel package required
26359 See \`config.log' for more details" "$LINENO" 5; }
26360 fi
26361
26362
26363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing uncompress" >&5
26364 $as_echo_n "checking for library containing uncompress... " >&6; }
26365 if ${ac_cv_search_uncompress+:} false; then :
26366 $as_echo_n "(cached) " >&6
26367 else
26368 ac_func_search_save_LIBS=$LIBS
26369 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26370 /* end confdefs.h. */
26371
26372 /* Override any GCC internal prototype to avoid an error.
26373 Use char because int might match the return type of a GCC
26374 builtin and then its argument prototype would still apply. */
26375 #ifdef __cplusplus
26376 extern "C"
26377 #endif
26378 char uncompress ();
26379 int
26380 main ()
26381 {
26382 return uncompress ();
26383 ;
26384 return 0;
26385 }
26386 _ACEOF
26387 for ac_lib in '' z; do
26388 if test -z "$ac_lib"; then
26389 ac_res="none required"
26390 else
26391 ac_res=-l$ac_lib
26392 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
26393 fi
26394 if ac_fn_c_try_link "$LINENO"; then :
26395 ac_cv_search_uncompress=$ac_res
26396 fi
26397 rm -f core conftest.err conftest.$ac_objext \
26398 conftest$ac_exeext
26399 if ${ac_cv_search_uncompress+:} false; then :
26400 break
26401 fi
26402 done
26403 if ${ac_cv_search_uncompress+:} false; then :
26404
26405 else
26406 ac_cv_search_uncompress=no
26407 fi
26408 rm conftest.$ac_ext
26409 LIBS=$ac_func_search_save_LIBS
26410 fi
26411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_uncompress" >&5
26412 $as_echo "$ac_cv_search_uncompress" >&6; }
26413 ac_res=$ac_cv_search_uncompress
26414 if test "$ac_res" != no; then :
26415 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
26416
26417 else
26418 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
26419 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26420 as_fn_error $? "
26421 *** uncompress() missing, zlib-devel package required
26422 See \`config.log' for more details" "$LINENO" 5; }
26423 fi
26424
26425
26426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing crc32" >&5
26427 $as_echo_n "checking for library containing crc32... " >&6; }
26428 if ${ac_cv_search_crc32+:} false; then :
26429 $as_echo_n "(cached) " >&6
26430 else
26431 ac_func_search_save_LIBS=$LIBS
26432 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26433 /* end confdefs.h. */
26434
26435 /* Override any GCC internal prototype to avoid an error.
26436 Use char because int might match the return type of a GCC
26437 builtin and then its argument prototype would still apply. */
26438 #ifdef __cplusplus
26439 extern "C"
26440 #endif
26441 char crc32 ();
26442 int
26443 main ()
26444 {
26445 return crc32 ();
26446 ;
26447 return 0;
26448 }
26449 _ACEOF
26450 for ac_lib in '' z; do
26451 if test -z "$ac_lib"; then
26452 ac_res="none required"
26453 else
26454 ac_res=-l$ac_lib
26455 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
26456 fi
26457 if ac_fn_c_try_link "$LINENO"; then :
26458 ac_cv_search_crc32=$ac_res
26459 fi
26460 rm -f core conftest.err conftest.$ac_objext \
26461 conftest$ac_exeext
26462 if ${ac_cv_search_crc32+:} false; then :
26463 break
26464 fi
26465 done
26466 if ${ac_cv_search_crc32+:} false; then :
26467
26468 else
26469 ac_cv_search_crc32=no
26470 fi
26471 rm conftest.$ac_ext
26472 LIBS=$ac_func_search_save_LIBS
26473 fi
26474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_crc32" >&5
26475 $as_echo "$ac_cv_search_crc32" >&6; }
26476 ac_res=$ac_cv_search_crc32
26477 if test "$ac_res" != no; then :
26478 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
26479
26480 else
26481 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
26482 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26483 as_fn_error $? "
26484 *** crc32() missing, zlib-devel package required
26485 See \`config.log' for more details" "$LINENO" 5; }
26486 fi
26487
26488
26489 ZLIB="-lz"
26490
26491
26492 $as_echo "#define HAVE_ZLIB 1" >>confdefs.h
26493
26494
26495
26496 LIBUUID=
26497
26498 ac_fn_c_check_header_mongrel "$LINENO" "uuid/uuid.h" "ac_cv_header_uuid_uuid_h" "$ac_includes_default"
26499 if test "x$ac_cv_header_uuid_uuid_h" = xyes; then :
26500
26501 else
26502 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
26503 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26504 as_fn_error $? "
26505 *** uuid/uuid.h missing, libuuid-devel package required
26506 See \`config.log' for more details" "$LINENO" 5; }
26507 fi
26508
26509
26510
26511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing uuid_generate" >&5
26512 $as_echo_n "checking for library containing uuid_generate... " >&6; }
26513 if ${ac_cv_search_uuid_generate+:} false; then :
26514 $as_echo_n "(cached) " >&6
26515 else
26516 ac_func_search_save_LIBS=$LIBS
26517 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26518 /* end confdefs.h. */
26519
26520 /* Override any GCC internal prototype to avoid an error.
26521 Use char because int might match the return type of a GCC
26522 builtin and then its argument prototype would still apply. */
26523 #ifdef __cplusplus
26524 extern "C"
26525 #endif
26526 char uuid_generate ();
26527 int
26528 main ()
26529 {
26530 return uuid_generate ();
26531 ;
26532 return 0;
26533 }
26534 _ACEOF
26535 for ac_lib in '' uuid; do
26536 if test -z "$ac_lib"; then
26537 ac_res="none required"
26538 else
26539 ac_res=-l$ac_lib
26540 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
26541 fi
26542 if ac_fn_c_try_link "$LINENO"; then :
26543 ac_cv_search_uuid_generate=$ac_res
26544 fi
26545 rm -f core conftest.err conftest.$ac_objext \
26546 conftest$ac_exeext
26547 if ${ac_cv_search_uuid_generate+:} false; then :
26548 break
26549 fi
26550 done
26551 if ${ac_cv_search_uuid_generate+:} false; then :
26552
26553 else
26554 ac_cv_search_uuid_generate=no
26555 fi
26556 rm conftest.$ac_ext
26557 LIBS=$ac_func_search_save_LIBS
26558 fi
26559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_uuid_generate" >&5
26560 $as_echo "$ac_cv_search_uuid_generate" >&6; }
26561 ac_res=$ac_cv_search_uuid_generate
26562 if test "$ac_res" != no; then :
26563 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
26564
26565 else
26566 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
26567 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26568 as_fn_error $? "
26569 *** uuid_generate() missing, libuuid-devel package required
26570 See \`config.log' for more details" "$LINENO" 5; }
26571 fi
26572
26573
26574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing uuid_is_null" >&5
26575 $as_echo_n "checking for library containing uuid_is_null... " >&6; }
26576 if ${ac_cv_search_uuid_is_null+:} false; then :
26577 $as_echo_n "(cached) " >&6
26578 else
26579 ac_func_search_save_LIBS=$LIBS
26580 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26581 /* end confdefs.h. */
26582
26583 /* Override any GCC internal prototype to avoid an error.
26584 Use char because int might match the return type of a GCC
26585 builtin and then its argument prototype would still apply. */
26586 #ifdef __cplusplus
26587 extern "C"
26588 #endif
26589 char uuid_is_null ();
26590 int
26591 main ()
26592 {
26593 return uuid_is_null ();
26594 ;
26595 return 0;
26596 }
26597 _ACEOF
26598 for ac_lib in '' uuid; do
26599 if test -z "$ac_lib"; then
26600 ac_res="none required"
26601 else
26602 ac_res=-l$ac_lib
26603 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
26604 fi
26605 if ac_fn_c_try_link "$LINENO"; then :
26606 ac_cv_search_uuid_is_null=$ac_res
26607 fi
26608 rm -f core conftest.err conftest.$ac_objext \
26609 conftest$ac_exeext
26610 if ${ac_cv_search_uuid_is_null+:} false; then :
26611 break
26612 fi
26613 done
26614 if ${ac_cv_search_uuid_is_null+:} false; then :
26615
26616 else
26617 ac_cv_search_uuid_is_null=no
26618 fi
26619 rm conftest.$ac_ext
26620 LIBS=$ac_func_search_save_LIBS
26621 fi
26622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_uuid_is_null" >&5
26623 $as_echo "$ac_cv_search_uuid_is_null" >&6; }
26624 ac_res=$ac_cv_search_uuid_is_null
26625 if test "$ac_res" != no; then :
26626 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
26627
26628 else
26629 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
26630 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26631 as_fn_error $? "
26632 *** uuid_is_null() missing, libuuid-devel package required
26633 See \`config.log' for more details" "$LINENO" 5; }
26634 fi
26635
26636
26637 LIBUUID="-luuid"
26638
26639
26640 $as_echo "#define HAVE_LIBUUID 1" >>confdefs.h
26641
26642
26643
26644
26645 # Check whether --with-tirpc was given.
26646 if test "${with_tirpc+set}" = set; then :
26647 withval=$with_tirpc;
26648 else
26649 with_tirpc=check
26650 fi
26651
26652
26653 LIBTIRPC=
26654 LIBTIRPC_CFLAGS=
26655
26656 if test "x$with_tirpc" != xno; then :
26657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xdrmem_create in -ltirpc" >&5
26658 $as_echo_n "checking for xdrmem_create in -ltirpc... " >&6; }
26659 if ${ac_cv_lib_tirpc_xdrmem_create+:} false; then :
26660 $as_echo_n "(cached) " >&6
26661 else
26662 ac_check_lib_save_LIBS=$LIBS
26663 LIBS="-ltirpc $LIBS"
26664 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26665 /* end confdefs.h. */
26666
26667 /* Override any GCC internal prototype to avoid an error.
26668 Use char because int might match the return type of a GCC
26669 builtin and then its argument prototype would still apply. */
26670 #ifdef __cplusplus
26671 extern "C"
26672 #endif
26673 char xdrmem_create ();
26674 int
26675 main ()
26676 {
26677 return xdrmem_create ();
26678 ;
26679 return 0;
26680 }
26681 _ACEOF
26682 if ac_fn_c_try_link "$LINENO"; then :
26683 ac_cv_lib_tirpc_xdrmem_create=yes
26684 else
26685 ac_cv_lib_tirpc_xdrmem_create=no
26686 fi
26687 rm -f core conftest.err conftest.$ac_objext \
26688 conftest$ac_exeext conftest.$ac_ext
26689 LIBS=$ac_check_lib_save_LIBS
26690 fi
26691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tirpc_xdrmem_create" >&5
26692 $as_echo "$ac_cv_lib_tirpc_xdrmem_create" >&6; }
26693 if test "x$ac_cv_lib_tirpc_xdrmem_create" = xyes; then :
26694 LIBTIRPC=-ltirpc
26695
26696 LIBTIRPC_CFLAGS=-I/usr/include/tirpc
26697
26698
26699 $as_echo "#define HAVE_LIBTIRPC 1" >>confdefs.h
26700
26701
26702 else
26703 if test "x$with_tirpc" != xcheck; then
26704 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
26705 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26706 as_fn_error $? "--with-tirpc was given, but test for tirpc failed
26707 See \`config.log' for more details" "$LINENO" 5; }
26708 fi
26709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing xdrmem_create" >&5
26710 $as_echo_n "checking for library containing xdrmem_create... " >&6; }
26711 if ${ac_cv_search_xdrmem_create+:} false; then :
26712 $as_echo_n "(cached) " >&6
26713 else
26714 ac_func_search_save_LIBS=$LIBS
26715 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26716 /* end confdefs.h. */
26717
26718 /* Override any GCC internal prototype to avoid an error.
26719 Use char because int might match the return type of a GCC
26720 builtin and then its argument prototype would still apply. */
26721 #ifdef __cplusplus
26722 extern "C"
26723 #endif
26724 char xdrmem_create ();
26725 int
26726 main ()
26727 {
26728 return xdrmem_create ();
26729 ;
26730 return 0;
26731 }
26732 _ACEOF
26733 for ac_lib in '' tirpc; do
26734 if test -z "$ac_lib"; then
26735 ac_res="none required"
26736 else
26737 ac_res=-l$ac_lib
26738 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
26739 fi
26740 if ac_fn_c_try_link "$LINENO"; then :
26741 ac_cv_search_xdrmem_create=$ac_res
26742 fi
26743 rm -f core conftest.err conftest.$ac_objext \
26744 conftest$ac_exeext
26745 if ${ac_cv_search_xdrmem_create+:} false; then :
26746 break
26747 fi
26748 done
26749 if ${ac_cv_search_xdrmem_create+:} false; then :
26750
26751 else
26752 ac_cv_search_xdrmem_create=no
26753 fi
26754 rm conftest.$ac_ext
26755 LIBS=$ac_func_search_save_LIBS
26756 fi
26757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_xdrmem_create" >&5
26758 $as_echo "$ac_cv_search_xdrmem_create" >&6; }
26759 ac_res=$ac_cv_search_xdrmem_create
26760 if test "$ac_res" != no; then :
26761 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
26762
26763 else
26764
26765 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
26766 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26767 as_fn_error $? "xdrmem_create() requires tirpc or libc
26768 See \`config.log' for more details" "$LINENO" 5; }
26769 fi
26770
26771
26772 fi
26773
26774 else
26775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing xdrmem_create" >&5
26776 $as_echo_n "checking for library containing xdrmem_create... " >&6; }
26777 if ${ac_cv_search_xdrmem_create+:} false; then :
26778 $as_echo_n "(cached) " >&6
26779 else
26780 ac_func_search_save_LIBS=$LIBS
26781 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26782 /* end confdefs.h. */
26783
26784 /* Override any GCC internal prototype to avoid an error.
26785 Use char because int might match the return type of a GCC
26786 builtin and then its argument prototype would still apply. */
26787 #ifdef __cplusplus
26788 extern "C"
26789 #endif
26790 char xdrmem_create ();
26791 int
26792 main ()
26793 {
26794 return xdrmem_create ();
26795 ;
26796 return 0;
26797 }
26798 _ACEOF
26799 for ac_lib in '' tirpc; do
26800 if test -z "$ac_lib"; then
26801 ac_res="none required"
26802 else
26803 ac_res=-l$ac_lib
26804 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
26805 fi
26806 if ac_fn_c_try_link "$LINENO"; then :
26807 ac_cv_search_xdrmem_create=$ac_res
26808 fi
26809 rm -f core conftest.err conftest.$ac_objext \
26810 conftest$ac_exeext
26811 if ${ac_cv_search_xdrmem_create+:} false; then :
26812 break
26813 fi
26814 done
26815 if ${ac_cv_search_xdrmem_create+:} false; then :
26816
26817 else
26818 ac_cv_search_xdrmem_create=no
26819 fi
26820 rm conftest.$ac_ext
26821 LIBS=$ac_func_search_save_LIBS
26822 fi
26823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_xdrmem_create" >&5
26824 $as_echo "$ac_cv_search_xdrmem_create" >&6; }
26825 ac_res=$ac_cv_search_xdrmem_create
26826 if test "$ac_res" != no; then :
26827 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
26828
26829 else
26830
26831 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
26832 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26833 as_fn_error $? "xdrmem_create() requires libc
26834 See \`config.log' for more details" "$LINENO" 5; }
26835 fi
26836
26837
26838 fi
26839
26840
26841 LIBBLKID=
26842
26843 ac_fn_c_check_header_mongrel "$LINENO" "blkid/blkid.h" "ac_cv_header_blkid_blkid_h" "$ac_includes_default"
26844 if test "x$ac_cv_header_blkid_blkid_h" = xyes; then :
26845
26846 else
26847 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
26848 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26849 as_fn_error $? "
26850 *** blkid.h missing, libblkid-devel package required
26851 See \`config.log' for more details" "$LINENO" 5; }
26852 fi
26853
26854
26855
26856 LIBBLKID="-lblkid"
26857
26858
26859 $as_echo "#define HAVE_LIBBLKID 1" >>confdefs.h
26860
26861
26862
26863 LIBATTR=
26864
26865 ac_fn_c_check_header_mongrel "$LINENO" "attr/xattr.h" "ac_cv_header_attr_xattr_h" "$ac_includes_default"
26866 if test "x$ac_cv_header_attr_xattr_h" = xyes; then :
26867
26868 else
26869 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
26870 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26871 as_fn_error $? "
26872 *** attr/xattr.h missing, libattr-devel package required
26873 See \`config.log' for more details" "$LINENO" 5; }
26874 fi
26875
26876
26877
26878 LIBATTR="-lattr"
26879
26880
26881 $as_echo "#define HAVE_LIBATTR 1" >>confdefs.h
26882
26883
26884
26885 LIBUDEV=
26886
26887 ac_fn_c_check_header_mongrel "$LINENO" "libudev.h" "ac_cv_header_libudev_h" "$ac_includes_default"
26888 if test "x$ac_cv_header_libudev_h" = xyes; then :
26889
26890 user_libudev=yes
26891 LIBUDEV="-ludev"
26892
26893
26894 $as_echo "#define HAVE_LIBUDEV 1" >>confdefs.h
26895
26896
26897 else
26898
26899 user_libudev=no
26900
26901 fi
26902
26903
26904
26905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing udev_device_get_is_initialized" >&5
26906 $as_echo_n "checking for library containing udev_device_get_is_initialized... " >&6; }
26907 if ${ac_cv_search_udev_device_get_is_initialized+:} false; then :
26908 $as_echo_n "(cached) " >&6
26909 else
26910 ac_func_search_save_LIBS=$LIBS
26911 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26912 /* end confdefs.h. */
26913
26914 /* Override any GCC internal prototype to avoid an error.
26915 Use char because int might match the return type of a GCC
26916 builtin and then its argument prototype would still apply. */
26917 #ifdef __cplusplus
26918 extern "C"
26919 #endif
26920 char udev_device_get_is_initialized ();
26921 int
26922 main ()
26923 {
26924 return udev_device_get_is_initialized ();
26925 ;
26926 return 0;
26927 }
26928 _ACEOF
26929 for ac_lib in '' udev; do
26930 if test -z "$ac_lib"; then
26931 ac_res="none required"
26932 else
26933 ac_res=-l$ac_lib
26934 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
26935 fi
26936 if ac_fn_c_try_link "$LINENO"; then :
26937 ac_cv_search_udev_device_get_is_initialized=$ac_res
26938 fi
26939 rm -f core conftest.err conftest.$ac_objext \
26940 conftest$ac_exeext
26941 if ${ac_cv_search_udev_device_get_is_initialized+:} false; then :
26942 break
26943 fi
26944 done
26945 if ${ac_cv_search_udev_device_get_is_initialized+:} false; then :
26946
26947 else
26948 ac_cv_search_udev_device_get_is_initialized=no
26949 fi
26950 rm conftest.$ac_ext
26951 LIBS=$ac_func_search_save_LIBS
26952 fi
26953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_udev_device_get_is_initialized" >&5
26954 $as_echo "$ac_cv_search_udev_device_get_is_initialized" >&6; }
26955 ac_res=$ac_cv_search_udev_device_get_is_initialized
26956 if test "$ac_res" != no; then :
26957 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
26958
26959
26960 $as_echo "#define HAVE_LIBUDEV_UDEV_DEVICE_GET_IS_INITIALIZED 1" >>confdefs.h
26961
26962 fi
26963
26964
26965
26966
26967 LIBAIO=
26968
26969 ac_fn_c_check_header_mongrel "$LINENO" "libaio.h" "ac_cv_header_libaio_h" "$ac_includes_default"
26970 if test "x$ac_cv_header_libaio_h" = xyes; then :
26971
26972 user_libaio=yes
26973 LIBAIO="-laio"
26974
26975
26976 $as_echo "#define HAVE_LIBAIO 1" >>confdefs.h
26977
26978
26979 else
26980
26981 user_libaio=no
26982
26983 fi
26984
26985
26986
26987
26988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -Wframe-larger-than=<size> support" >&5
26989 $as_echo_n "checking for -Wframe-larger-than=<size> support... " >&6; }
26990
26991 saved_flags="$CFLAGS"
26992 CFLAGS="$CFLAGS -Wframe-larger-than=1024"
26993
26994 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26995 /* end confdefs.h. */
26996
26997 int
26998 main ()
26999 {
27000
27001 ;
27002 return 0;
27003 }
27004 _ACEOF
27005 if ac_fn_c_try_compile "$LINENO"; then :
27006
27007 FRAME_LARGER_THAN=-Wframe-larger-than=1024
27008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27009 $as_echo "yes" >&6; }
27010
27011 else
27012
27013 FRAME_LARGER_THAN=
27014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27015 $as_echo "no" >&6; }
27016
27017 fi
27018 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27019
27020 CFLAGS="$saved_flags"
27021
27022
27023
27024 if test "x$runstatedir" = x; then
27025 runstatedir='${localstatedir}/run'
27026
27027 fi
27028
27029
27030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking makedev() is declared in sys/sysmacros.h" >&5
27031 $as_echo_n "checking makedev() is declared in sys/sysmacros.h... " >&6; }
27032 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27033 /* end confdefs.h. */
27034
27035 #include <sys/sysmacros.h>
27036
27037 int
27038 main ()
27039 {
27040
27041 int k;
27042 k = makedev(0,0);
27043
27044 ;
27045 return 0;
27046 }
27047 _ACEOF
27048 if ac_fn_c_try_compile "$LINENO"; then :
27049
27050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27051 $as_echo "yes" >&6; }
27052
27053 $as_echo "#define HAVE_MAKEDEV_IN_SYSMACROS 1" >>confdefs.h
27054
27055
27056 else
27057
27058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27059 $as_echo "no" >&6; }
27060
27061 fi
27062 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27063
27064
27065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking makedev() is declared in sys/mkdev.h" >&5
27066 $as_echo_n "checking makedev() is declared in sys/mkdev.h... " >&6; }
27067 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27068 /* end confdefs.h. */
27069
27070 #include <sys/mkdev.h>
27071
27072 int
27073 main ()
27074 {
27075
27076 int k;
27077 k = makedev(0,0);
27078
27079 ;
27080 return 0;
27081 }
27082 _ACEOF
27083 if ac_fn_c_try_compile "$LINENO"; then :
27084
27085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27086 $as_echo "yes" >&6; }
27087
27088 $as_echo "#define HAVE_MAKEDEV_IN_MKDEV 1" >>confdefs.h
27089
27090
27091 else
27092
27093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27094 $as_echo "no" >&6; }
27095
27096 fi
27097 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27098
27099
27100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -Wno-format-truncation support" >&5
27101 $as_echo_n "checking for -Wno-format-truncation support... " >&6; }
27102
27103 saved_flags="$CFLAGS"
27104 CFLAGS="$CFLAGS -Wno-format-truncation"
27105
27106 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27107 /* end confdefs.h. */
27108
27109 int
27110 main ()
27111 {
27112
27113 ;
27114 return 0;
27115 }
27116 _ACEOF
27117 if ac_fn_c_try_compile "$LINENO"; then :
27118
27119 NO_FORMAT_TRUNCATION=-Wno-format-truncation
27120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27121 $as_echo "yes" >&6; }
27122
27123 else
27124
27125 NO_FORMAT_TRUNCATION=
27126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27127 $as_echo "no" >&6; }
27128
27129 fi
27130 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27131
27132 CFLAGS="$saved_flags"
27133
27134
27135
27136
27137 ZONENAME="echo global"
27138
27139
27140
27141
27142
27143 for ac_func in mlockall
27144 do :
27145 ac_fn_c_check_func "$LINENO" "mlockall" "ac_cv_func_mlockall"
27146 if test "x$ac_cv_func_mlockall" = xyes; then :
27147 cat >>confdefs.h <<_ACEOF
27148 #define HAVE_MLOCKALL 1
27149 _ACEOF
27150
27151 fi
27152 done
27153
27154 ;;
27155 all)
27156
27157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dkms.conf file" >&5
27158 $as_echo_n "checking for dkms.conf file... " >&6; }
27159 if test -e dkms.conf; then :
27160
27161 as_fn_error $? "
27162 *** ZFS should not be manually built in the DKMS source tree.
27163 *** Remove all ZFS packages before compiling the ZoL sources.
27164 *** Running \"make install\" breaks ZFS packages." "$LINENO" 5
27165
27166 else
27167
27168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
27169 $as_echo "not found" >&6; }
27170
27171 fi
27172
27173
27174
27175 # Check whether --with-mounthelperdir was given.
27176 if test "${with_mounthelperdir+set}" = set; then :
27177 withval=$with_mounthelperdir; mounthelperdir=$withval
27178 else
27179 mounthelperdir=/sbin
27180 fi
27181
27182
27183
27184
27185
27186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for udev directories" >&5
27187 $as_echo_n "checking for udev directories... " >&6; }
27188
27189 # Check whether --with-udevdir was given.
27190 if test "${with_udevdir+set}" = set; then :
27191 withval=$with_udevdir; udevdir=$withval
27192 else
27193 udevdir=check
27194 fi
27195
27196
27197 if test "x$udevdir" = xcheck; then :
27198
27199 path1=/lib/udev
27200 path2=/usr/lib/udev
27201 default=$path2
27202
27203 if test -d "$path1"; then :
27204 udevdir="$path1"
27205 else
27206
27207 if test -d "$path2"; then :
27208 udevdir="$path2"
27209 else
27210 udevdir="$default"
27211 fi
27212
27213 fi
27214
27215 fi
27216
27217
27218 # Check whether --with-udevruledir was given.
27219 if test "${with_udevruledir+set}" = set; then :
27220 withval=$with_udevruledir; udevruledir=$withval
27221 else
27222 udevruledir="${udevdir}/rules.d"
27223 fi
27224
27225
27226
27227
27228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $udevdir;$udevruledir" >&5
27229 $as_echo "$udevdir;$udevruledir" >&6; }
27230
27231
27232 # Check whether --enable-systemd was given.
27233 if test "${enable_systemd+set}" = set; then :
27234 enableval=$enable_systemd;
27235 else
27236 enable_systemd=yes
27237 fi
27238
27239
27240
27241 # Check whether --with-systemdunitdir was given.
27242 if test "${with_systemdunitdir+set}" = set; then :
27243 withval=$with_systemdunitdir; systemdunitdir=$withval
27244 else
27245 systemdunitdir=/usr/lib/systemd/system
27246 fi
27247
27248
27249
27250 # Check whether --with-systemdpresetdir was given.
27251 if test "${with_systemdpresetdir+set}" = set; then :
27252 withval=$with_systemdpresetdir; systemdpresetdir=$withval
27253 else
27254 systemdpresetdir=/usr/lib/systemd/system-preset
27255 fi
27256
27257
27258
27259 # Check whether --with-systemdmodulesloaddir was given.
27260 if test "${with_systemdmodulesloaddir+set}" = set; then :
27261 withval=$with_systemdmodulesloaddir; systemdmoduleloaddir=$withval
27262 else
27263 systemdmodulesloaddir=/usr/lib/modules-load.d
27264 fi
27265
27266
27267
27268 if test "x$enable_systemd" = xyes; then :
27269
27270 ZFS_INIT_SYSTEMD=systemd
27271 ZFS_MODULE_LOAD=modules-load.d
27272 modulesloaddir=$systemdmodulesloaddir
27273
27274 fi
27275
27276
27277
27278
27279
27280
27281
27282
27283 # Check whether --enable-sysvinit was given.
27284 if test "${enable_sysvinit+set}" = set; then :
27285 enableval=$enable_sysvinit;
27286 else
27287 enable_sysvinit=yes
27288 fi
27289
27290
27291 if test "x$enable_sysvinit" = xyes; then :
27292 ZFS_INIT_SYSV=init.d
27293 fi
27294
27295
27296
27297
27298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dracut directory" >&5
27299 $as_echo_n "checking for dracut directory... " >&6; }
27300
27301 # Check whether --with-dracutdir was given.
27302 if test "${with_dracutdir+set}" = set; then :
27303 withval=$with_dracutdir; dracutdir=$withval
27304 else
27305 dracutdir=check
27306 fi
27307
27308
27309 if test "x$dracutdir" = xcheck; then :
27310
27311 path1=/usr/share/dracut
27312 path2=/usr/lib/dracut
27313 default=$path2
27314
27315 if test -d "$path1"; then :
27316 dracutdir="$path1"
27317 else
27318
27319 if test -d "$path2"; then :
27320 dracutdir="$path2"
27321 else
27322 dracutdir="$default"
27323 fi
27324
27325 fi
27326
27327 fi
27328
27329
27330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dracutdir" >&5
27331 $as_echo "$dracutdir" >&6; }
27332
27333
27334 ZLIB=
27335
27336 ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
27337 if test "x$ac_cv_header_zlib_h" = xyes; then :
27338
27339 else
27340 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
27341 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27342 as_fn_error $? "
27343 *** zlib.h missing, zlib-devel package required
27344 See \`config.log' for more details" "$LINENO" 5; }
27345 fi
27346
27347
27348
27349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing compress2" >&5
27350 $as_echo_n "checking for library containing compress2... " >&6; }
27351 if ${ac_cv_search_compress2+:} false; then :
27352 $as_echo_n "(cached) " >&6
27353 else
27354 ac_func_search_save_LIBS=$LIBS
27355 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27356 /* end confdefs.h. */
27357
27358 /* Override any GCC internal prototype to avoid an error.
27359 Use char because int might match the return type of a GCC
27360 builtin and then its argument prototype would still apply. */
27361 #ifdef __cplusplus
27362 extern "C"
27363 #endif
27364 char compress2 ();
27365 int
27366 main ()
27367 {
27368 return compress2 ();
27369 ;
27370 return 0;
27371 }
27372 _ACEOF
27373 for ac_lib in '' z; do
27374 if test -z "$ac_lib"; then
27375 ac_res="none required"
27376 else
27377 ac_res=-l$ac_lib
27378 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
27379 fi
27380 if ac_fn_c_try_link "$LINENO"; then :
27381 ac_cv_search_compress2=$ac_res
27382 fi
27383 rm -f core conftest.err conftest.$ac_objext \
27384 conftest$ac_exeext
27385 if ${ac_cv_search_compress2+:} false; then :
27386 break
27387 fi
27388 done
27389 if ${ac_cv_search_compress2+:} false; then :
27390
27391 else
27392 ac_cv_search_compress2=no
27393 fi
27394 rm conftest.$ac_ext
27395 LIBS=$ac_func_search_save_LIBS
27396 fi
27397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_compress2" >&5
27398 $as_echo "$ac_cv_search_compress2" >&6; }
27399 ac_res=$ac_cv_search_compress2
27400 if test "$ac_res" != no; then :
27401 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27402
27403 else
27404 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
27405 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27406 as_fn_error $? "
27407 *** compress2() missing, zlib-devel package required
27408 See \`config.log' for more details" "$LINENO" 5; }
27409 fi
27410
27411
27412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing uncompress" >&5
27413 $as_echo_n "checking for library containing uncompress... " >&6; }
27414 if ${ac_cv_search_uncompress+:} false; then :
27415 $as_echo_n "(cached) " >&6
27416 else
27417 ac_func_search_save_LIBS=$LIBS
27418 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27419 /* end confdefs.h. */
27420
27421 /* Override any GCC internal prototype to avoid an error.
27422 Use char because int might match the return type of a GCC
27423 builtin and then its argument prototype would still apply. */
27424 #ifdef __cplusplus
27425 extern "C"
27426 #endif
27427 char uncompress ();
27428 int
27429 main ()
27430 {
27431 return uncompress ();
27432 ;
27433 return 0;
27434 }
27435 _ACEOF
27436 for ac_lib in '' z; do
27437 if test -z "$ac_lib"; then
27438 ac_res="none required"
27439 else
27440 ac_res=-l$ac_lib
27441 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
27442 fi
27443 if ac_fn_c_try_link "$LINENO"; then :
27444 ac_cv_search_uncompress=$ac_res
27445 fi
27446 rm -f core conftest.err conftest.$ac_objext \
27447 conftest$ac_exeext
27448 if ${ac_cv_search_uncompress+:} false; then :
27449 break
27450 fi
27451 done
27452 if ${ac_cv_search_uncompress+:} false; then :
27453
27454 else
27455 ac_cv_search_uncompress=no
27456 fi
27457 rm conftest.$ac_ext
27458 LIBS=$ac_func_search_save_LIBS
27459 fi
27460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_uncompress" >&5
27461 $as_echo "$ac_cv_search_uncompress" >&6; }
27462 ac_res=$ac_cv_search_uncompress
27463 if test "$ac_res" != no; then :
27464 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27465
27466 else
27467 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
27468 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27469 as_fn_error $? "
27470 *** uncompress() missing, zlib-devel package required
27471 See \`config.log' for more details" "$LINENO" 5; }
27472 fi
27473
27474
27475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing crc32" >&5
27476 $as_echo_n "checking for library containing crc32... " >&6; }
27477 if ${ac_cv_search_crc32+:} false; then :
27478 $as_echo_n "(cached) " >&6
27479 else
27480 ac_func_search_save_LIBS=$LIBS
27481 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27482 /* end confdefs.h. */
27483
27484 /* Override any GCC internal prototype to avoid an error.
27485 Use char because int might match the return type of a GCC
27486 builtin and then its argument prototype would still apply. */
27487 #ifdef __cplusplus
27488 extern "C"
27489 #endif
27490 char crc32 ();
27491 int
27492 main ()
27493 {
27494 return crc32 ();
27495 ;
27496 return 0;
27497 }
27498 _ACEOF
27499 for ac_lib in '' z; do
27500 if test -z "$ac_lib"; then
27501 ac_res="none required"
27502 else
27503 ac_res=-l$ac_lib
27504 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
27505 fi
27506 if ac_fn_c_try_link "$LINENO"; then :
27507 ac_cv_search_crc32=$ac_res
27508 fi
27509 rm -f core conftest.err conftest.$ac_objext \
27510 conftest$ac_exeext
27511 if ${ac_cv_search_crc32+:} false; then :
27512 break
27513 fi
27514 done
27515 if ${ac_cv_search_crc32+:} false; then :
27516
27517 else
27518 ac_cv_search_crc32=no
27519 fi
27520 rm conftest.$ac_ext
27521 LIBS=$ac_func_search_save_LIBS
27522 fi
27523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_crc32" >&5
27524 $as_echo "$ac_cv_search_crc32" >&6; }
27525 ac_res=$ac_cv_search_crc32
27526 if test "$ac_res" != no; then :
27527 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27528
27529 else
27530 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
27531 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27532 as_fn_error $? "
27533 *** crc32() missing, zlib-devel package required
27534 See \`config.log' for more details" "$LINENO" 5; }
27535 fi
27536
27537
27538 ZLIB="-lz"
27539
27540
27541 $as_echo "#define HAVE_ZLIB 1" >>confdefs.h
27542
27543
27544
27545 LIBUUID=
27546
27547 ac_fn_c_check_header_mongrel "$LINENO" "uuid/uuid.h" "ac_cv_header_uuid_uuid_h" "$ac_includes_default"
27548 if test "x$ac_cv_header_uuid_uuid_h" = xyes; then :
27549
27550 else
27551 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
27552 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27553 as_fn_error $? "
27554 *** uuid/uuid.h missing, libuuid-devel package required
27555 See \`config.log' for more details" "$LINENO" 5; }
27556 fi
27557
27558
27559
27560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing uuid_generate" >&5
27561 $as_echo_n "checking for library containing uuid_generate... " >&6; }
27562 if ${ac_cv_search_uuid_generate+:} false; then :
27563 $as_echo_n "(cached) " >&6
27564 else
27565 ac_func_search_save_LIBS=$LIBS
27566 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27567 /* end confdefs.h. */
27568
27569 /* Override any GCC internal prototype to avoid an error.
27570 Use char because int might match the return type of a GCC
27571 builtin and then its argument prototype would still apply. */
27572 #ifdef __cplusplus
27573 extern "C"
27574 #endif
27575 char uuid_generate ();
27576 int
27577 main ()
27578 {
27579 return uuid_generate ();
27580 ;
27581 return 0;
27582 }
27583 _ACEOF
27584 for ac_lib in '' uuid; do
27585 if test -z "$ac_lib"; then
27586 ac_res="none required"
27587 else
27588 ac_res=-l$ac_lib
27589 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
27590 fi
27591 if ac_fn_c_try_link "$LINENO"; then :
27592 ac_cv_search_uuid_generate=$ac_res
27593 fi
27594 rm -f core conftest.err conftest.$ac_objext \
27595 conftest$ac_exeext
27596 if ${ac_cv_search_uuid_generate+:} false; then :
27597 break
27598 fi
27599 done
27600 if ${ac_cv_search_uuid_generate+:} false; then :
27601
27602 else
27603 ac_cv_search_uuid_generate=no
27604 fi
27605 rm conftest.$ac_ext
27606 LIBS=$ac_func_search_save_LIBS
27607 fi
27608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_uuid_generate" >&5
27609 $as_echo "$ac_cv_search_uuid_generate" >&6; }
27610 ac_res=$ac_cv_search_uuid_generate
27611 if test "$ac_res" != no; then :
27612 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27613
27614 else
27615 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
27616 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27617 as_fn_error $? "
27618 *** uuid_generate() missing, libuuid-devel package required
27619 See \`config.log' for more details" "$LINENO" 5; }
27620 fi
27621
27622
27623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing uuid_is_null" >&5
27624 $as_echo_n "checking for library containing uuid_is_null... " >&6; }
27625 if ${ac_cv_search_uuid_is_null+:} false; then :
27626 $as_echo_n "(cached) " >&6
27627 else
27628 ac_func_search_save_LIBS=$LIBS
27629 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27630 /* end confdefs.h. */
27631
27632 /* Override any GCC internal prototype to avoid an error.
27633 Use char because int might match the return type of a GCC
27634 builtin and then its argument prototype would still apply. */
27635 #ifdef __cplusplus
27636 extern "C"
27637 #endif
27638 char uuid_is_null ();
27639 int
27640 main ()
27641 {
27642 return uuid_is_null ();
27643 ;
27644 return 0;
27645 }
27646 _ACEOF
27647 for ac_lib in '' uuid; do
27648 if test -z "$ac_lib"; then
27649 ac_res="none required"
27650 else
27651 ac_res=-l$ac_lib
27652 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
27653 fi
27654 if ac_fn_c_try_link "$LINENO"; then :
27655 ac_cv_search_uuid_is_null=$ac_res
27656 fi
27657 rm -f core conftest.err conftest.$ac_objext \
27658 conftest$ac_exeext
27659 if ${ac_cv_search_uuid_is_null+:} false; then :
27660 break
27661 fi
27662 done
27663 if ${ac_cv_search_uuid_is_null+:} false; then :
27664
27665 else
27666 ac_cv_search_uuid_is_null=no
27667 fi
27668 rm conftest.$ac_ext
27669 LIBS=$ac_func_search_save_LIBS
27670 fi
27671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_uuid_is_null" >&5
27672 $as_echo "$ac_cv_search_uuid_is_null" >&6; }
27673 ac_res=$ac_cv_search_uuid_is_null
27674 if test "$ac_res" != no; then :
27675 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27676
27677 else
27678 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
27679 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27680 as_fn_error $? "
27681 *** uuid_is_null() missing, libuuid-devel package required
27682 See \`config.log' for more details" "$LINENO" 5; }
27683 fi
27684
27685
27686 LIBUUID="-luuid"
27687
27688
27689 $as_echo "#define HAVE_LIBUUID 1" >>confdefs.h
27690
27691
27692
27693
27694 # Check whether --with-tirpc was given.
27695 if test "${with_tirpc+set}" = set; then :
27696 withval=$with_tirpc;
27697 else
27698 with_tirpc=check
27699 fi
27700
27701
27702 LIBTIRPC=
27703 LIBTIRPC_CFLAGS=
27704
27705 if test "x$with_tirpc" != xno; then :
27706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xdrmem_create in -ltirpc" >&5
27707 $as_echo_n "checking for xdrmem_create in -ltirpc... " >&6; }
27708 if ${ac_cv_lib_tirpc_xdrmem_create+:} false; then :
27709 $as_echo_n "(cached) " >&6
27710 else
27711 ac_check_lib_save_LIBS=$LIBS
27712 LIBS="-ltirpc $LIBS"
27713 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27714 /* end confdefs.h. */
27715
27716 /* Override any GCC internal prototype to avoid an error.
27717 Use char because int might match the return type of a GCC
27718 builtin and then its argument prototype would still apply. */
27719 #ifdef __cplusplus
27720 extern "C"
27721 #endif
27722 char xdrmem_create ();
27723 int
27724 main ()
27725 {
27726 return xdrmem_create ();
27727 ;
27728 return 0;
27729 }
27730 _ACEOF
27731 if ac_fn_c_try_link "$LINENO"; then :
27732 ac_cv_lib_tirpc_xdrmem_create=yes
27733 else
27734 ac_cv_lib_tirpc_xdrmem_create=no
27735 fi
27736 rm -f core conftest.err conftest.$ac_objext \
27737 conftest$ac_exeext conftest.$ac_ext
27738 LIBS=$ac_check_lib_save_LIBS
27739 fi
27740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tirpc_xdrmem_create" >&5
27741 $as_echo "$ac_cv_lib_tirpc_xdrmem_create" >&6; }
27742 if test "x$ac_cv_lib_tirpc_xdrmem_create" = xyes; then :
27743 LIBTIRPC=-ltirpc
27744
27745 LIBTIRPC_CFLAGS=-I/usr/include/tirpc
27746
27747
27748 $as_echo "#define HAVE_LIBTIRPC 1" >>confdefs.h
27749
27750
27751 else
27752 if test "x$with_tirpc" != xcheck; then
27753 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
27754 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27755 as_fn_error $? "--with-tirpc was given, but test for tirpc failed
27756 See \`config.log' for more details" "$LINENO" 5; }
27757 fi
27758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing xdrmem_create" >&5
27759 $as_echo_n "checking for library containing xdrmem_create... " >&6; }
27760 if ${ac_cv_search_xdrmem_create+:} false; then :
27761 $as_echo_n "(cached) " >&6
27762 else
27763 ac_func_search_save_LIBS=$LIBS
27764 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27765 /* end confdefs.h. */
27766
27767 /* Override any GCC internal prototype to avoid an error.
27768 Use char because int might match the return type of a GCC
27769 builtin and then its argument prototype would still apply. */
27770 #ifdef __cplusplus
27771 extern "C"
27772 #endif
27773 char xdrmem_create ();
27774 int
27775 main ()
27776 {
27777 return xdrmem_create ();
27778 ;
27779 return 0;
27780 }
27781 _ACEOF
27782 for ac_lib in '' tirpc; do
27783 if test -z "$ac_lib"; then
27784 ac_res="none required"
27785 else
27786 ac_res=-l$ac_lib
27787 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
27788 fi
27789 if ac_fn_c_try_link "$LINENO"; then :
27790 ac_cv_search_xdrmem_create=$ac_res
27791 fi
27792 rm -f core conftest.err conftest.$ac_objext \
27793 conftest$ac_exeext
27794 if ${ac_cv_search_xdrmem_create+:} false; then :
27795 break
27796 fi
27797 done
27798 if ${ac_cv_search_xdrmem_create+:} false; then :
27799
27800 else
27801 ac_cv_search_xdrmem_create=no
27802 fi
27803 rm conftest.$ac_ext
27804 LIBS=$ac_func_search_save_LIBS
27805 fi
27806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_xdrmem_create" >&5
27807 $as_echo "$ac_cv_search_xdrmem_create" >&6; }
27808 ac_res=$ac_cv_search_xdrmem_create
27809 if test "$ac_res" != no; then :
27810 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27811
27812 else
27813
27814 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
27815 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27816 as_fn_error $? "xdrmem_create() requires tirpc or libc
27817 See \`config.log' for more details" "$LINENO" 5; }
27818 fi
27819
27820
27821 fi
27822
27823 else
27824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing xdrmem_create" >&5
27825 $as_echo_n "checking for library containing xdrmem_create... " >&6; }
27826 if ${ac_cv_search_xdrmem_create+:} false; then :
27827 $as_echo_n "(cached) " >&6
27828 else
27829 ac_func_search_save_LIBS=$LIBS
27830 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27831 /* end confdefs.h. */
27832
27833 /* Override any GCC internal prototype to avoid an error.
27834 Use char because int might match the return type of a GCC
27835 builtin and then its argument prototype would still apply. */
27836 #ifdef __cplusplus
27837 extern "C"
27838 #endif
27839 char xdrmem_create ();
27840 int
27841 main ()
27842 {
27843 return xdrmem_create ();
27844 ;
27845 return 0;
27846 }
27847 _ACEOF
27848 for ac_lib in '' tirpc; do
27849 if test -z "$ac_lib"; then
27850 ac_res="none required"
27851 else
27852 ac_res=-l$ac_lib
27853 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
27854 fi
27855 if ac_fn_c_try_link "$LINENO"; then :
27856 ac_cv_search_xdrmem_create=$ac_res
27857 fi
27858 rm -f core conftest.err conftest.$ac_objext \
27859 conftest$ac_exeext
27860 if ${ac_cv_search_xdrmem_create+:} false; then :
27861 break
27862 fi
27863 done
27864 if ${ac_cv_search_xdrmem_create+:} false; then :
27865
27866 else
27867 ac_cv_search_xdrmem_create=no
27868 fi
27869 rm conftest.$ac_ext
27870 LIBS=$ac_func_search_save_LIBS
27871 fi
27872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_xdrmem_create" >&5
27873 $as_echo "$ac_cv_search_xdrmem_create" >&6; }
27874 ac_res=$ac_cv_search_xdrmem_create
27875 if test "$ac_res" != no; then :
27876 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27877
27878 else
27879
27880 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
27881 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27882 as_fn_error $? "xdrmem_create() requires libc
27883 See \`config.log' for more details" "$LINENO" 5; }
27884 fi
27885
27886
27887 fi
27888
27889
27890 LIBBLKID=
27891
27892 ac_fn_c_check_header_mongrel "$LINENO" "blkid/blkid.h" "ac_cv_header_blkid_blkid_h" "$ac_includes_default"
27893 if test "x$ac_cv_header_blkid_blkid_h" = xyes; then :
27894
27895 else
27896 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
27897 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27898 as_fn_error $? "
27899 *** blkid.h missing, libblkid-devel package required
27900 See \`config.log' for more details" "$LINENO" 5; }
27901 fi
27902
27903
27904
27905 LIBBLKID="-lblkid"
27906
27907
27908 $as_echo "#define HAVE_LIBBLKID 1" >>confdefs.h
27909
27910
27911
27912 LIBATTR=
27913
27914 ac_fn_c_check_header_mongrel "$LINENO" "attr/xattr.h" "ac_cv_header_attr_xattr_h" "$ac_includes_default"
27915 if test "x$ac_cv_header_attr_xattr_h" = xyes; then :
27916
27917 else
27918 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
27919 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27920 as_fn_error $? "
27921 *** attr/xattr.h missing, libattr-devel package required
27922 See \`config.log' for more details" "$LINENO" 5; }
27923 fi
27924
27925
27926
27927 LIBATTR="-lattr"
27928
27929
27930 $as_echo "#define HAVE_LIBATTR 1" >>confdefs.h
27931
27932
27933
27934 LIBUDEV=
27935
27936 ac_fn_c_check_header_mongrel "$LINENO" "libudev.h" "ac_cv_header_libudev_h" "$ac_includes_default"
27937 if test "x$ac_cv_header_libudev_h" = xyes; then :
27938
27939 user_libudev=yes
27940 LIBUDEV="-ludev"
27941
27942
27943 $as_echo "#define HAVE_LIBUDEV 1" >>confdefs.h
27944
27945
27946 else
27947
27948 user_libudev=no
27949
27950 fi
27951
27952
27953
27954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing udev_device_get_is_initialized" >&5
27955 $as_echo_n "checking for library containing udev_device_get_is_initialized... " >&6; }
27956 if ${ac_cv_search_udev_device_get_is_initialized+:} false; then :
27957 $as_echo_n "(cached) " >&6
27958 else
27959 ac_func_search_save_LIBS=$LIBS
27960 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27961 /* end confdefs.h. */
27962
27963 /* Override any GCC internal prototype to avoid an error.
27964 Use char because int might match the return type of a GCC
27965 builtin and then its argument prototype would still apply. */
27966 #ifdef __cplusplus
27967 extern "C"
27968 #endif
27969 char udev_device_get_is_initialized ();
27970 int
27971 main ()
27972 {
27973 return udev_device_get_is_initialized ();
27974 ;
27975 return 0;
27976 }
27977 _ACEOF
27978 for ac_lib in '' udev; do
27979 if test -z "$ac_lib"; then
27980 ac_res="none required"
27981 else
27982 ac_res=-l$ac_lib
27983 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
27984 fi
27985 if ac_fn_c_try_link "$LINENO"; then :
27986 ac_cv_search_udev_device_get_is_initialized=$ac_res
27987 fi
27988 rm -f core conftest.err conftest.$ac_objext \
27989 conftest$ac_exeext
27990 if ${ac_cv_search_udev_device_get_is_initialized+:} false; then :
27991 break
27992 fi
27993 done
27994 if ${ac_cv_search_udev_device_get_is_initialized+:} false; then :
27995
27996 else
27997 ac_cv_search_udev_device_get_is_initialized=no
27998 fi
27999 rm conftest.$ac_ext
28000 LIBS=$ac_func_search_save_LIBS
28001 fi
28002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_udev_device_get_is_initialized" >&5
28003 $as_echo "$ac_cv_search_udev_device_get_is_initialized" >&6; }
28004 ac_res=$ac_cv_search_udev_device_get_is_initialized
28005 if test "$ac_res" != no; then :
28006 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28007
28008
28009 $as_echo "#define HAVE_LIBUDEV_UDEV_DEVICE_GET_IS_INITIALIZED 1" >>confdefs.h
28010
28011 fi
28012
28013
28014
28015
28016 LIBAIO=
28017
28018 ac_fn_c_check_header_mongrel "$LINENO" "libaio.h" "ac_cv_header_libaio_h" "$ac_includes_default"
28019 if test "x$ac_cv_header_libaio_h" = xyes; then :
28020
28021 user_libaio=yes
28022 LIBAIO="-laio"
28023
28024
28025 $as_echo "#define HAVE_LIBAIO 1" >>confdefs.h
28026
28027
28028 else
28029
28030 user_libaio=no
28031
28032 fi
28033
28034
28035
28036
28037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -Wframe-larger-than=<size> support" >&5
28038 $as_echo_n "checking for -Wframe-larger-than=<size> support... " >&6; }
28039
28040 saved_flags="$CFLAGS"
28041 CFLAGS="$CFLAGS -Wframe-larger-than=1024"
28042
28043 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28044 /* end confdefs.h. */
28045
28046 int
28047 main ()
28048 {
28049
28050 ;
28051 return 0;
28052 }
28053 _ACEOF
28054 if ac_fn_c_try_compile "$LINENO"; then :
28055
28056 FRAME_LARGER_THAN=-Wframe-larger-than=1024
28057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28058 $as_echo "yes" >&6; }
28059
28060 else
28061
28062 FRAME_LARGER_THAN=
28063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28064 $as_echo "no" >&6; }
28065
28066 fi
28067 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28068
28069 CFLAGS="$saved_flags"
28070
28071
28072
28073 if test "x$runstatedir" = x; then
28074 runstatedir='${localstatedir}/run'
28075
28076 fi
28077
28078
28079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking makedev() is declared in sys/sysmacros.h" >&5
28080 $as_echo_n "checking makedev() is declared in sys/sysmacros.h... " >&6; }
28081 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28082 /* end confdefs.h. */
28083
28084 #include <sys/sysmacros.h>
28085
28086 int
28087 main ()
28088 {
28089
28090 int k;
28091 k = makedev(0,0);
28092
28093 ;
28094 return 0;
28095 }
28096 _ACEOF
28097 if ac_fn_c_try_compile "$LINENO"; then :
28098
28099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28100 $as_echo "yes" >&6; }
28101
28102 $as_echo "#define HAVE_MAKEDEV_IN_SYSMACROS 1" >>confdefs.h
28103
28104
28105 else
28106
28107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28108 $as_echo "no" >&6; }
28109
28110 fi
28111 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28112
28113
28114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking makedev() is declared in sys/mkdev.h" >&5
28115 $as_echo_n "checking makedev() is declared in sys/mkdev.h... " >&6; }
28116 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28117 /* end confdefs.h. */
28118
28119 #include <sys/mkdev.h>
28120
28121 int
28122 main ()
28123 {
28124
28125 int k;
28126 k = makedev(0,0);
28127
28128 ;
28129 return 0;
28130 }
28131 _ACEOF
28132 if ac_fn_c_try_compile "$LINENO"; then :
28133
28134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28135 $as_echo "yes" >&6; }
28136
28137 $as_echo "#define HAVE_MAKEDEV_IN_MKDEV 1" >>confdefs.h
28138
28139
28140 else
28141
28142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28143 $as_echo "no" >&6; }
28144
28145 fi
28146 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28147
28148
28149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -Wno-format-truncation support" >&5
28150 $as_echo_n "checking for -Wno-format-truncation support... " >&6; }
28151
28152 saved_flags="$CFLAGS"
28153 CFLAGS="$CFLAGS -Wno-format-truncation"
28154
28155 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28156 /* end confdefs.h. */
28157
28158 int
28159 main ()
28160 {
28161
28162 ;
28163 return 0;
28164 }
28165 _ACEOF
28166 if ac_fn_c_try_compile "$LINENO"; then :
28167
28168 NO_FORMAT_TRUNCATION=-Wno-format-truncation
28169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28170 $as_echo "yes" >&6; }
28171
28172 else
28173
28174 NO_FORMAT_TRUNCATION=
28175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28176 $as_echo "no" >&6; }
28177
28178 fi
28179 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28180
28181 CFLAGS="$saved_flags"
28182
28183
28184
28185
28186 ZONENAME="echo global"
28187
28188
28189
28190
28191
28192 for ac_func in mlockall
28193 do :
28194 ac_fn_c_check_func "$LINENO" "mlockall" "ac_cv_func_mlockall"
28195 if test "x$ac_cv_func_mlockall" = xyes; then :
28196 cat >>confdefs.h <<_ACEOF
28197 #define HAVE_MLOCKALL 1
28198 _ACEOF
28199
28200 fi
28201 done
28202
28203
28204
28205
28206
28207 # Check whether --with-linux was given.
28208 if test "${with_linux+set}" = set; then :
28209 withval=$with_linux; kernelsrc="$withval"
28210 fi
28211
28212
28213
28214 # Check whether --with-linux-obj was given.
28215 if test "${with_linux_obj+set}" = set; then :
28216 withval=$with_linux_obj; kernelbuild="$withval"
28217 fi
28218
28219
28220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking kernel source directory" >&5
28221 $as_echo_n "checking kernel source directory... " >&6; }
28222 if test -z "$kernelsrc"; then :
28223
28224 if test -e "/lib/modules/$(uname -r)/source"; then :
28225
28226 headersdir="/lib/modules/$(uname -r)/source"
28227 sourcelink=$(readlink -f "$headersdir")
28228
28229 elif test -e "/lib/modules/$(uname -r)/build"; then :
28230
28231 headersdir="/lib/modules/$(uname -r)/build"
28232 sourcelink=$(readlink -f "$headersdir")
28233
28234 else
28235
28236 sourcelink=$(ls -1d /usr/src/kernels/* \
28237 /usr/src/linux-* \
28238 2>/dev/null | grep -v obj | tail -1)
28239
28240 fi
28241
28242 if test -n "$sourcelink" && test -e ${sourcelink}; then :
28243
28244 kernelsrc=`readlink -f ${sourcelink}`
28245
28246 else
28247
28248 kernelsrc="Not found"
28249
28250 fi
28251
28252 else
28253
28254 if test "$kernelsrc" = "NONE"; then :
28255
28256 kernsrcver=NONE
28257
28258 fi
28259 withlinux=yes
28260
28261 fi
28262
28263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kernelsrc" >&5
28264 $as_echo "$kernelsrc" >&6; }
28265 if test ! -d "$kernelsrc"; then :
28266
28267 as_fn_error $? "
28268 *** Please make sure the kernel devel package for your distribution
28269 *** is installed and then try again. If that fails, you can specify the
28270 *** location of the kernel source with the '--with-linux=PATH' option." "$LINENO" 5
28271
28272 fi
28273
28274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking kernel build directory" >&5
28275 $as_echo_n "checking kernel build directory... " >&6; }
28276 if test -z "$kernelbuild"; then :
28277
28278 if test x$withlinux != xyes -a -e "/lib/modules/$(uname -r)/build"; then :
28279
28280 kernelbuild=`readlink -f /lib/modules/$(uname -r)/build`
28281
28282 elif test -d ${kernelsrc}-obj/${target_cpu}/${target_cpu}; then :
28283
28284 kernelbuild=${kernelsrc}-obj/${target_cpu}/${target_cpu}
28285
28286 elif test -d ${kernelsrc}-obj/${target_cpu}/default; then :
28287
28288 kernelbuild=${kernelsrc}-obj/${target_cpu}/default
28289
28290 elif test -d `dirname ${kernelsrc}`/build-${target_cpu}; then :
28291
28292 kernelbuild=`dirname ${kernelsrc}`/build-${target_cpu}
28293
28294 else
28295
28296 kernelbuild=${kernelsrc}
28297
28298 fi
28299
28300 fi
28301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kernelbuild" >&5
28302 $as_echo "$kernelbuild" >&6; }
28303
28304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking kernel source version" >&5
28305 $as_echo_n "checking kernel source version... " >&6; }
28306 utsrelease1=$kernelbuild/include/linux/version.h
28307 utsrelease2=$kernelbuild/include/linux/utsrelease.h
28308 utsrelease3=$kernelbuild/include/generated/utsrelease.h
28309 if test -r $utsrelease1 && fgrep -q UTS_RELEASE $utsrelease1; then :
28310
28311 utsrelease=linux/version.h
28312
28313 elif test -r $utsrelease2 && fgrep -q UTS_RELEASE $utsrelease2; then :
28314
28315 utsrelease=linux/utsrelease.h
28316
28317 elif test -r $utsrelease3 && fgrep -q UTS_RELEASE $utsrelease3; then :
28318
28319 utsrelease=generated/utsrelease.h
28320
28321 fi
28322
28323 if test "$utsrelease"; then :
28324
28325 kernsrcver=`(echo "#include <$utsrelease>";
28326 echo "kernsrcver=UTS_RELEASE") |
28327 cpp -I $kernelbuild/include |
28328 grep "^kernsrcver=" | cut -d \" -f 2`
28329
28330 if test -z "$kernsrcver"; then :
28331
28332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not found" >&5
28333 $as_echo "Not found" >&6; }
28334 as_fn_error $? "*** Cannot determine kernel version." "$LINENO" 5
28335
28336 fi
28337
28338 else
28339
28340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not found" >&5
28341 $as_echo "Not found" >&6; }
28342 if test "x$enable_linux_builtin" != xyes; then
28343 as_fn_error $? "*** Cannot find UTS_RELEASE definition." "$LINENO" 5
28344 else
28345 as_fn_error $? "
28346 *** Cannot find UTS_RELEASE definition.
28347 *** Please run 'make prepare' inside the kernel source tree." "$LINENO" 5
28348 fi
28349
28350 fi
28351
28352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kernsrcver" >&5
28353 $as_echo "$kernsrcver" >&6; }
28354
28355 LINUX=${kernelsrc}
28356 LINUX_OBJ=${kernelbuild}
28357 LINUX_VERSION=${kernsrcver}
28358
28359
28360
28361
28362
28363
28364 modpost=$LINUX/scripts/Makefile.modpost
28365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking kernel file name for module symbols" >&5
28366 $as_echo_n "checking kernel file name for module symbols... " >&6; }
28367 if test "x$enable_linux_builtin" != xyes -a -f "$modpost"; then :
28368
28369 if grep -q Modules.symvers $modpost; then :
28370
28371 LINUX_SYMBOLS=Modules.symvers
28372
28373 else
28374
28375 LINUX_SYMBOLS=Module.symvers
28376
28377 fi
28378
28379 if test ! -f "$LINUX_OBJ/$LINUX_SYMBOLS"; then :
28380
28381 as_fn_error $? "
28382 *** Please make sure the kernel devel package for your distribution
28383 *** is installed. If you are building with a custom kernel, make sure the
28384 *** kernel is configured, built, and the '--with-linux=PATH' configure
28385 *** option refers to the location of the kernel source." "$LINENO" 5
28386
28387 fi
28388
28389 else
28390
28391 LINUX_SYMBOLS=NONE
28392
28393 fi
28394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINUX_SYMBOLS" >&5
28395 $as_echo "$LINUX_SYMBOLS" >&6; }
28396
28397
28398
28399
28400
28401 # Check whether --with-spl was given.
28402 if test "${with_spl+set}" = set; then :
28403 withval=$with_spl; if test "$withval" = "yes"; then :
28404 as_fn_error $? "--with-spl=PATH requires a PATH" "$LINENO" 5
28405 else
28406 splsrc="$withval"
28407 fi
28408 fi
28409
28410
28411
28412 # Check whether --with-spl-obj was given.
28413 if test "${with_spl_obj+set}" = set; then :
28414 withval=$with_spl_obj; splbuild="$withval"
28415 fi
28416
28417
28418
28419 # Check whether --with-spl-timeout was given.
28420 if test "${with_spl_timeout+set}" = set; then :
28421 withval=$with_spl_timeout; timeout="$withval"
28422 else
28423 timeout=0
28424 fi
28425
28426
28427 splsrc0="/var/lib/dkms/spl/${VERSION}/build"
28428 splsrc1="/usr/local/src/spl-${VERSION}/${LINUX_VERSION}"
28429 splsrc2="/usr/local/src/spl-${VERSION}"
28430 splsrc3="/usr/src/spl-${VERSION}/${LINUX_VERSION}"
28431 splsrc4="/usr/src/spl-${VERSION}"
28432 splsrc5="../spl/"
28433 splsrc6="$LINUX"
28434
28435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking spl source directory" >&5
28436 $as_echo_n "checking spl source directory... " >&6; }
28437 if test -z "${splsrc}"; then :
28438
28439 all_spl_sources="
28440 ${splsrc0}
28441 ${splsrc1}
28442 ${splsrc2}
28443 ${splsrc3}
28444 ${splsrc4}
28445 ${splsrc5}
28446 ${splsrc6}",
28447 if test -e "${splsrc0}/spl.release.in"; then :
28448
28449 splsrc=${splsrc0}
28450
28451 elif test -e "${splsrc1}/spl.release.in"; then :
28452
28453 splsrc=${splsrc1}
28454
28455 elif test -e "${splsrc2}/spl.release.in"; then :
28456
28457 splsrc=${splsrc2}
28458
28459 elif test -e "${splsrc3}/spl.release.in"; then :
28460
28461 splsrc=$(readlink -f "${splsrc3}")
28462
28463 elif test -e "${splsrc4}/spl.release.in" ; then :
28464
28465 splsrc=${splsrc4}
28466
28467 elif test -e "${splsrc5}/spl.release.in"; then :
28468
28469 splsrc=$(readlink -f "${splsrc5}")
28470
28471 elif test -e "${splsrc6}/spl.release.in" ; then :
28472
28473 splsrc=${splsrc6}
28474
28475 else
28476
28477 splsrc="Not found"
28478
28479 fi
28480
28481 else
28482
28483 all_spl_sources="$withval",
28484 if test "$splsrc" = "NONE"; then :
28485
28486 splbuild=NONE
28487 splsrcver=NONE
28488
28489 fi
28490
28491 fi
28492
28493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $splsrc" >&5
28494 $as_echo "$splsrc" >&6; }
28495 if test ! -e "$splsrc/spl.release.in"; then :
28496
28497 as_fn_error $? "
28498 *** Please make sure the kmod spl devel package for your distribution
28499 *** is installed then try again. If that fails you can specify the
28500 *** location of the spl source with the '--with-spl=PATH' option.
28501 *** The spl version must match the version of ZFS you are building,
28502 *** ${VERSION}. Failed to find spl.release.in in the following:
28503 $all_spl_sources" "$LINENO" 5
28504
28505 fi
28506
28507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking spl build directory" >&5
28508 $as_echo_n "checking spl build directory... " >&6; }
28509
28510 all_spl_config_locs="${splsrc}/${LINUX_VERSION}
28511 ${splsrc}"
28512
28513 while true; do
28514 if test -z "$splbuild"; then :
28515
28516 if test -e "${splsrc}/${LINUX_VERSION}/spl_config.h" ; then :
28517
28518 splbuild="${splsrc}/${LINUX_VERSION}"
28519
28520 elif test -e "${splsrc}/spl_config.h" ; then :
28521
28522 splbuild="${splsrc}"
28523
28524 elif find -L "${splsrc}" -name spl_config.h 2> /dev/null | grep -wq spl_config.h ; then :
28525
28526 splbuild=$(find -L "${splsrc}" -name spl_config.h | sed 's,/spl_config.h,,')
28527
28528 else
28529
28530 splbuild="Not found"
28531
28532 fi
28533
28534 fi
28535 if test -e "$splbuild/spl_config.h" -o $timeout -le 0; then :
28536
28537 break;
28538
28539 else
28540
28541 sleep 1
28542 timeout=$((timeout-1))
28543
28544 fi
28545 done
28546
28547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $splbuild" >&5
28548 $as_echo "$splbuild" >&6; }
28549 if ! test -e "$splbuild/spl_config.h"; then :
28550
28551 as_fn_error $? "
28552 *** Please make sure the kmod spl devel <kernel> package for your
28553 *** distribution is installed then try again. If that fails you
28554 *** can specify the location of the spl objects with the
28555 *** '--with-spl-obj=PATH' option. Failed to find spl_config.h in
28556 *** any of the following:
28557 $all_spl_config_locs" "$LINENO" 5
28558
28559 fi
28560
28561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking spl source version" >&5
28562 $as_echo_n "checking spl source version... " >&6; }
28563 if test -r $splbuild/spl_config.h &&
28564 fgrep -q SPL_META_VERSION $splbuild/spl_config.h; then :
28565
28566
28567 splsrcver=`(echo "#include <spl_config.h>";
28568 echo "splsrcver=SPL_META_VERSION-SPL_META_RELEASE") |
28569 cpp -I $splbuild |
28570 grep "^splsrcver=" | tr -d \" | cut -d= -f2`
28571
28572 fi
28573
28574 if test -z "$splsrcver"; then :
28575
28576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not found" >&5
28577 $as_echo "Not found" >&6; }
28578 as_fn_error $? "
28579 *** Cannot determine the version of the spl source.
28580 *** Please prepare the spl source before running this script" "$LINENO" 5
28581
28582 fi
28583
28584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $splsrcver" >&5
28585 $as_echo "$splsrcver" >&6; }
28586
28587 SPL=${splsrc}
28588 SPL_OBJ=${splbuild}
28589 SPL_VERSION=${splsrcver}
28590
28591
28592
28593
28594
28595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking spl file name for module symbols" >&5
28596 $as_echo_n "checking spl file name for module symbols... " >&6; }
28597 SPL_SYMBOLS=NONE
28598
28599 while true; do
28600 if test -r $SPL_OBJ/Module.symvers; then :
28601
28602 SPL_SYMBOLS=Module.symvers
28603
28604 elif test -r $SPL_OBJ/Modules.symvers; then :
28605
28606 SPL_SYMBOLS=Modules.symvers
28607
28608 elif test -r $SPL_OBJ/module/Module.symvers; then :
28609
28610 SPL_SYMBOLS=Module.symvers
28611
28612 elif test -r $SPL_OBJ/module/Modules.symvers; then :
28613
28614 SPL_SYMBOLS=Modules.symvers
28615
28616 fi
28617
28618 if test $SPL_SYMBOLS != NONE -o $timeout -le 0; then :
28619
28620 break;
28621
28622 else
28623
28624 sleep 1
28625 timeout=$((timeout-1))
28626
28627 fi
28628 done
28629
28630 if test "$SPL_SYMBOLS" = NONE; then :
28631
28632 SPL_SYMBOLS=$LINUX_SYMBOLS
28633
28634 fi
28635
28636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SPL_SYMBOLS" >&5
28637 $as_echo "$SPL_SYMBOLS" >&6; }
28638
28639
28640
28641
28642 # Check whether --with-qat was given.
28643 if test "${with_qat+set}" = set; then :
28644 withval=$with_qat; if test "$withval" = "yes"; then :
28645 as_fn_error $? "--with-qat=PATH requires a PATH" "$LINENO" 5
28646 else
28647 qatsrc="$withval"
28648 fi
28649 fi
28650
28651
28652
28653 # Check whether --with-qat-obj was given.
28654 if test "${with_qat_obj+set}" = set; then :
28655 withval=$with_qat_obj; qatbuild="$withval"
28656 fi
28657
28658
28659 if test ! -z "${qatsrc}"; then :
28660
28661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking qat source directory" >&5
28662 $as_echo_n "checking qat source directory... " >&6; }
28663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $qatsrc" >&5
28664 $as_echo "$qatsrc" >&6; }
28665 QAT_SRC="${qatsrc}/quickassist"
28666 if test ! -e "$QAT_SRC/include/cpa.h"; then :
28667
28668 as_fn_error $? "
28669 *** Please make sure the qat driver package is installed
28670 *** and specify the location of the qat source with the
28671 *** '--with-qat=PATH' option then try again. Failed to
28672 *** find cpa.h in:
28673 ${QAT_SRC}/include" "$LINENO" 5
28674
28675 fi
28676
28677 fi
28678
28679 if test ! -z "${qatsrc}"; then :
28680
28681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking qat build directory" >&5
28682 $as_echo_n "checking qat build directory... " >&6; }
28683 if test -z "$qatbuild"; then :
28684
28685 qatbuild="${qatsrc}/build"
28686
28687 fi
28688
28689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $qatbuild" >&5
28690 $as_echo "$qatbuild" >&6; }
28691 QAT_OBJ=${qatbuild}
28692 if ! test -e "$QAT_OBJ/icp_qa_al.ko" && ! test -e "$QAT_OBJ/qat_api.ko"; then :
28693
28694 as_fn_error $? "
28695 *** Please make sure the qat driver is installed then try again.
28696 *** Failed to find icp_qa_al.ko or qat_api.ko in:
28697 $QAT_OBJ" "$LINENO" 5
28698
28699 fi
28700
28701
28702
28703
28704
28705 $as_echo "#define HAVE_QAT 1" >>confdefs.h
28706
28707
28708 fi
28709
28710 if test ! -z "${qatsrc}"; then :
28711
28712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking qat file for module symbols" >&5
28713 $as_echo_n "checking qat file for module symbols... " >&6; }
28714 QAT_SYMBOLS=$QAT_SRC/lookaside/access_layer/src/Module.symvers
28715
28716 if test -r $QAT_SYMBOLS; then :
28717
28718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $QAT_SYMBOLS" >&5
28719 $as_echo "$QAT_SYMBOLS" >&6; }
28720
28721
28722 else
28723
28724 as_fn_error $? "
28725 *** Please make sure the qat driver is installed then try again.
28726 *** Failed to find Module.symvers in:
28727 $QAT_SYMBOLS" "$LINENO" 5
28728
28729 fi
28730
28731 fi
28732
28733
28734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether modules can be built" >&5
28735 $as_echo_n "checking whether modules can be built... " >&6; }
28736
28737
28738 cat confdefs.h - <<_ACEOF >conftest.c
28739
28740
28741 int
28742 main (void)
28743 {
28744
28745 ;
28746 return 0;
28747 }
28748
28749 _ACEOF
28750
28751
28752
28753 cat - <<_ACEOF >conftest.h
28754
28755 _ACEOF
28756
28757
28758 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
28759 echo "obj-m := conftest.o" >build/Makefile
28760 modpost_flag=''
28761 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
28762 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
28763 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28764 (eval $ac_try) 2>&5
28765 ac_status=$?
28766 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28767 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
28768 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28769 (eval $ac_try) 2>&5
28770 ac_status=$?
28771 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28772 test $ac_status = 0; }; }; then :
28773
28774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28775 $as_echo "yes" >&6; }
28776
28777 else
28778 $as_echo "$as_me: failed program was:" >&5
28779 sed 's/^/| /' conftest.$ac_ext >&5
28780
28781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28782 $as_echo "no" >&6; }
28783 if test "x$enable_linux_builtin" != xyes; then
28784 as_fn_error $? "*** Unable to build an empty module." "$LINENO" 5
28785 else
28786 as_fn_error $? "
28787 *** Unable to build an empty module.
28788 *** Please run 'make scripts' inside the kernel source tree." "$LINENO" 5
28789 fi
28790
28791
28792
28793 fi
28794 rm -Rf build
28795
28796
28797
28798
28799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compile-time stack validation (objtool)" >&5
28800 $as_echo_n "checking for compile-time stack validation (objtool)... " >&6; }
28801
28802
28803 cat confdefs.h - <<_ACEOF >conftest.c
28804
28805
28806 #undef __ASSEMBLY__
28807 #include <asm/frame.h>
28808
28809 int
28810 main (void)
28811 {
28812
28813 #if !defined(FRAME_BEGIN)
28814 CTASSERT(1);
28815 #endif
28816
28817 ;
28818 return 0;
28819 }
28820
28821 _ACEOF
28822
28823
28824
28825 cat - <<_ACEOF >conftest.h
28826
28827 _ACEOF
28828
28829
28830 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
28831 echo "obj-m := conftest.o" >build/Makefile
28832 modpost_flag=''
28833 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
28834 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
28835 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28836 (eval $ac_try) 2>&5
28837 ac_status=$?
28838 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28839 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
28840 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28841 (eval $ac_try) 2>&5
28842 ac_status=$?
28843 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28844 test $ac_status = 0; }; }; then :
28845
28846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28847 $as_echo "yes" >&6; }
28848
28849 $as_echo "#define HAVE_KERNEL_OBJTOOL 1" >>confdefs.h
28850
28851
28852 else
28853 $as_echo "$as_me: failed program was:" >&5
28854 sed 's/^/| /' conftest.$ac_ext >&5
28855
28856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28857 $as_echo "no" >&6; }
28858
28859
28860
28861 fi
28862 rm -Rf build
28863
28864
28865
28866
28867 if test "x$cross_compiling" != xyes; then :
28868
28869 if test "$cross_compiling" = yes; then :
28870 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
28871 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
28872 as_fn_error $? "cannot run test program while cross compiling
28873 See \`config.log' for more details" "$LINENO" 5; }
28874 else
28875 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28876 /* end confdefs.h. */
28877
28878
28879 #include "$LINUX/include/linux/license.h"
28880
28881 int
28882 main ()
28883 {
28884
28885 return !license_is_gpl_compatible("$ZFS_META_LICENSE");
28886
28887 ;
28888 return 0;
28889 }
28890
28891 _ACEOF
28892 if ac_fn_c_try_run "$LINENO"; then :
28893
28894
28895 $as_echo "#define ZFS_IS_GPL_COMPATIBLE 1" >>confdefs.h
28896
28897
28898 fi
28899 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
28900 conftest.$ac_objext conftest.beam conftest.$ac_ext
28901 fi
28902
28903
28904 fi
28905
28906
28907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether kernel was built with 16K or larger stacks" >&5
28908 $as_echo_n "checking whether kernel was built with 16K or larger stacks... " >&6; }
28909
28910
28911 cat confdefs.h - <<_ACEOF >conftest.c
28912
28913
28914 #include <linux/module.h>
28915
28916 int
28917 main (void)
28918 {
28919
28920 #if (THREAD_SIZE < 16384)
28921 #error "THREAD_SIZE is less than 16K"
28922 #endif
28923
28924 ;
28925 return 0;
28926 }
28927
28928 _ACEOF
28929
28930
28931
28932 cat - <<_ACEOF >conftest.h
28933
28934 _ACEOF
28935
28936
28937 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
28938 echo "obj-m := conftest.o" >build/Makefile
28939 modpost_flag=''
28940 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
28941 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
28942 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28943 (eval $ac_try) 2>&5
28944 ac_status=$?
28945 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28946 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
28947 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28948 (eval $ac_try) 2>&5
28949 ac_status=$?
28950 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28951 test $ac_status = 0; }; }; then :
28952
28953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28954 $as_echo "yes" >&6; }
28955
28956 $as_echo "#define HAVE_LARGE_STACKS 1" >>confdefs.h
28957
28958
28959 else
28960 $as_echo "$as_me: failed program was:" >&5
28961 sed 's/^/| /' conftest.$ac_ext >&5
28962
28963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28964 $as_echo "no" >&6; }
28965
28966
28967
28968 fi
28969 rm -Rf build
28970
28971
28972
28973
28974
28975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether kernel was built with CONFIG_DEBUG_LOCK_ALLOC" >&5
28976 $as_echo_n "checking whether kernel was built with CONFIG_DEBUG_LOCK_ALLOC... " >&6; }
28977
28978
28979 cat confdefs.h - <<_ACEOF >conftest.c
28980
28981
28982 #include <linux/module.h>
28983
28984 int
28985 main (void)
28986 {
28987
28988 #ifndef CONFIG_DEBUG_LOCK_ALLOC
28989 #error CONFIG_DEBUG_LOCK_ALLOC not #defined
28990 #endif
28991
28992 ;
28993 return 0;
28994 }
28995
28996 _ACEOF
28997
28998
28999
29000 cat - <<_ACEOF >conftest.h
29001
29002 _ACEOF
29003
29004
29005 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
29006 echo "obj-m := conftest.o" >build/Makefile
29007 modpost_flag=''
29008 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
29009 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
29010 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29011 (eval $ac_try) 2>&5
29012 ac_status=$?
29013 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29014 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
29015 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29016 (eval $ac_try) 2>&5
29017 ac_status=$?
29018 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29019 test $ac_status = 0; }; }; then :
29020
29021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29022 $as_echo "yes" >&6; }
29023
29024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mutex_lock() is GPL-only" >&5
29025 $as_echo_n "checking whether mutex_lock() is GPL-only... " >&6; }
29026 tmp_flags="$EXTRA_KCFLAGS"
29027
29028
29029 cat confdefs.h - <<_ACEOF >conftest.c
29030
29031
29032 #include <linux/module.h>
29033 #include <linux/mutex.h>
29034
29035 MODULE_LICENSE("$ZFS_META_LICENSE");
29036
29037 int
29038 main (void)
29039 {
29040
29041 struct mutex lock;
29042
29043 mutex_init(&lock);
29044 mutex_lock(&lock);
29045 mutex_unlock(&lock);
29046
29047 ;
29048 return 0;
29049 }
29050
29051 _ACEOF
29052
29053
29054
29055 cat - <<_ACEOF >conftest.h
29056
29057 _ACEOF
29058
29059
29060 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
29061 echo "obj-m := conftest.o" >build/Makefile
29062 modpost_flag=''
29063 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
29064 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
29065 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29066 (eval $ac_try) 2>&5
29067 ac_status=$?
29068 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29069 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
29070 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29071 (eval $ac_try) 2>&5
29072 ac_status=$?
29073 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29074 test $ac_status = 0; }; }; then :
29075
29076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29077 $as_echo "no" >&6; }
29078
29079 else
29080 $as_echo "$as_me: failed program was:" >&5
29081 sed 's/^/| /' conftest.$ac_ext >&5
29082
29083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29084 $as_echo "yes" >&6; }
29085 as_fn_error $? "
29086 *** Kernel built with CONFIG_DEBUG_LOCK_ALLOC which is incompatible
29087 *** with the CDDL license and will prevent the module linking stage
29088 *** from succeeding. You must rebuild your kernel without this
29089 *** option enabled." "$LINENO" 5
29090
29091
29092
29093 fi
29094 rm -Rf build
29095
29096
29097 EXTRA_KCFLAGS="$tmp_flags"
29098
29099
29100 else
29101 $as_echo "$as_me: failed program was:" >&5
29102 sed 's/^/| /' conftest.$ac_ext >&5
29103
29104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29105 $as_echo "no" >&6; }
29106
29107
29108
29109
29110 fi
29111 rm -Rf build
29112
29113
29114
29115
29116
29117
29118 tmp_flags="$EXTRA_KCFLAGS"
29119 EXTRA_KCFLAGS="-I\$(src)"
29120
29121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether DECLARE_EVENT_CLASS() is available" >&5
29122 $as_echo_n "checking whether DECLARE_EVENT_CLASS() is available... " >&6; }
29123
29124
29125 cat confdefs.h - <<_ACEOF >conftest.c
29126
29127
29128 #include <linux/module.h>
29129 MODULE_LICENSE(ZFS_META_LICENSE);
29130
29131 #define CREATE_TRACE_POINTS
29132 #include "conftest.h"
29133
29134 int
29135 main (void)
29136 {
29137
29138 trace_zfs_autoconf_event_one(1UL);
29139 trace_zfs_autoconf_event_two(2UL);
29140
29141 ;
29142 return 0;
29143 }
29144
29145 _ACEOF
29146
29147
29148
29149 cat - <<_ACEOF >conftest.h
29150
29151 #if !defined(_CONFTEST_H) || defined(TRACE_HEADER_MULTI_READ)
29152 #define _CONFTEST_H
29153
29154 #undef TRACE_SYSTEM
29155 #define TRACE_SYSTEM zfs
29156 #include <linux/tracepoint.h>
29157
29158 DECLARE_EVENT_CLASS(zfs_autoconf_event_class,
29159 TP_PROTO(unsigned long i),
29160 TP_ARGS(i),
29161 TP_STRUCT__entry(
29162 __field(unsigned long, i)
29163 ),
29164 TP_fast_assign(
29165 __entry->i = i;
29166 ),
29167 TP_printk("i = %lu", __entry->i)
29168 );
29169
29170 #define DEFINE_AUTOCONF_EVENT(name) \
29171 DEFINE_EVENT(zfs_autoconf_event_class, name, \
29172 TP_PROTO(unsigned long i), \
29173 TP_ARGS(i))
29174 DEFINE_AUTOCONF_EVENT(zfs_autoconf_event_one);
29175 DEFINE_AUTOCONF_EVENT(zfs_autoconf_event_two);
29176
29177 #endif /* _CONFTEST_H */
29178
29179 #undef TRACE_INCLUDE_PATH
29180 #define TRACE_INCLUDE_PATH .
29181 #define TRACE_INCLUDE_FILE conftest
29182 #include <trace/define_trace.h>
29183
29184 _ACEOF
29185
29186
29187 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
29188 echo "obj-m := conftest.o" >build/Makefile
29189 modpost_flag=''
29190 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
29191 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
29192 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29193 (eval $ac_try) 2>&5
29194 ac_status=$?
29195 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29196 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
29197 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29198 (eval $ac_try) 2>&5
29199 ac_status=$?
29200 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29201 test $ac_status = 0; }; }; then :
29202
29203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29204 $as_echo "yes" >&6; }
29205
29206 $as_echo "#define HAVE_DECLARE_EVENT_CLASS 1" >>confdefs.h
29207
29208
29209 else
29210 $as_echo "$as_me: failed program was:" >&5
29211 sed 's/^/| /' conftest.$ac_ext >&5
29212
29213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29214 $as_echo "no" >&6; }
29215
29216
29217
29218 fi
29219 rm -Rf build
29220
29221
29222 EXTRA_KCFLAGS="$tmp_flags"
29223
29224
29225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether current->bio_tail exists" >&5
29226 $as_echo_n "checking whether current->bio_tail exists... " >&6; }
29227
29228
29229 cat confdefs.h - <<_ACEOF >conftest.c
29230
29231
29232 #include <linux/sched.h>
29233
29234 int
29235 main (void)
29236 {
29237
29238 current->bio_tail = (struct bio **) NULL;
29239
29240 ;
29241 return 0;
29242 }
29243
29244 _ACEOF
29245
29246
29247
29248 cat - <<_ACEOF >conftest.h
29249
29250 _ACEOF
29251
29252
29253 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
29254 echo "obj-m := conftest.o" >build/Makefile
29255 modpost_flag=''
29256 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
29257 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
29258 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29259 (eval $ac_try) 2>&5
29260 ac_status=$?
29261 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29262 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
29263 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29264 (eval $ac_try) 2>&5
29265 ac_status=$?
29266 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29267 test $ac_status = 0; }; }; then :
29268
29269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29270 $as_echo "yes" >&6; }
29271
29272 $as_echo "#define HAVE_CURRENT_BIO_TAIL 1" >>confdefs.h
29273
29274
29275 else
29276 $as_echo "$as_me: failed program was:" >&5
29277 sed 's/^/| /' conftest.$ac_ext >&5
29278
29279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29280 $as_echo "no" >&6; }
29281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether current->bio_list exists" >&5
29282 $as_echo_n "checking whether current->bio_list exists... " >&6; }
29283
29284
29285 cat confdefs.h - <<_ACEOF >conftest.c
29286
29287
29288 #include <linux/sched.h>
29289
29290 int
29291 main (void)
29292 {
29293
29294 current->bio_list = (struct bio_list *) NULL;
29295
29296 ;
29297 return 0;
29298 }
29299
29300 _ACEOF
29301
29302
29303
29304 cat - <<_ACEOF >conftest.h
29305
29306 _ACEOF
29307
29308
29309 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
29310 echo "obj-m := conftest.o" >build/Makefile
29311 modpost_flag=''
29312 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
29313 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
29314 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29315 (eval $ac_try) 2>&5
29316 ac_status=$?
29317 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29318 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
29319 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29320 (eval $ac_try) 2>&5
29321 ac_status=$?
29322 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29323 test $ac_status = 0; }; }; then :
29324
29325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29326 $as_echo "yes" >&6; }
29327
29328 $as_echo "#define HAVE_CURRENT_BIO_LIST 1" >>confdefs.h
29329
29330
29331 else
29332 $as_echo "$as_me: failed program was:" >&5
29333 sed 's/^/| /' conftest.$ac_ext >&5
29334
29335 as_fn_error $? "no - Please file a bug report at
29336 https://github.com/zfsonlinux/zfs/issues/new" "$LINENO" 5
29337
29338
29339
29340 fi
29341 rm -Rf build
29342
29343
29344
29345
29346
29347 fi
29348 rm -Rf build
29349
29350
29351
29352
29353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether super_block->s_user_ns exists" >&5
29354 $as_echo_n "checking whether super_block->s_user_ns exists... " >&6; }
29355
29356
29357 cat confdefs.h - <<_ACEOF >conftest.c
29358
29359
29360 #include <linux/fs.h>
29361 #include <linux/user_namespace.h>
29362
29363 int
29364 main (void)
29365 {
29366
29367 struct super_block super;
29368 super.s_user_ns = (struct user_namespace *)NULL;
29369
29370 ;
29371 return 0;
29372 }
29373
29374 _ACEOF
29375
29376
29377
29378 cat - <<_ACEOF >conftest.h
29379
29380 _ACEOF
29381
29382
29383 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
29384 echo "obj-m := conftest.o" >build/Makefile
29385 modpost_flag=''
29386 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
29387 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
29388 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29389 (eval $ac_try) 2>&5
29390 ac_status=$?
29391 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29392 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
29393 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29394 (eval $ac_try) 2>&5
29395 ac_status=$?
29396 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29397 test $ac_status = 0; }; }; then :
29398
29399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29400 $as_echo "yes" >&6; }
29401
29402 $as_echo "#define HAVE_SUPER_USER_NS 1" >>confdefs.h
29403
29404
29405 else
29406 $as_echo "$as_me: failed program was:" >&5
29407 sed 's/^/| /' conftest.$ac_ext >&5
29408
29409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29410 $as_echo "no" >&6; }
29411
29412
29413
29414 fi
29415 rm -Rf build
29416
29417
29418
29419
29420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether submit_bio() wants 1 arg" >&5
29421 $as_echo_n "checking whether submit_bio() wants 1 arg... " >&6; }
29422
29423
29424 cat confdefs.h - <<_ACEOF >conftest.c
29425
29426
29427 #include <linux/bio.h>
29428
29429 int
29430 main (void)
29431 {
29432
29433 blk_qc_t blk_qc;
29434 struct bio *bio = NULL;
29435 blk_qc = submit_bio(bio);
29436
29437 ;
29438 return 0;
29439 }
29440
29441 _ACEOF
29442
29443
29444
29445 cat - <<_ACEOF >conftest.h
29446
29447 _ACEOF
29448
29449
29450 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
29451 echo "obj-m := conftest.o" >build/Makefile
29452 modpost_flag=''
29453 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
29454 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
29455 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29456 (eval $ac_try) 2>&5
29457 ac_status=$?
29458 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29459 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
29460 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29461 (eval $ac_try) 2>&5
29462 ac_status=$?
29463 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29464 test $ac_status = 0; }; }; then :
29465
29466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29467 $as_echo "yes" >&6; }
29468
29469 $as_echo "#define HAVE_1ARG_SUBMIT_BIO 1" >>confdefs.h
29470
29471
29472 else
29473 $as_echo "$as_me: failed program was:" >&5
29474 sed 's/^/| /' conftest.$ac_ext >&5
29475
29476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29477 $as_echo "no" >&6; }
29478
29479
29480
29481 fi
29482 rm -Rf build
29483
29484
29485
29486
29487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking block device operation prototypes" >&5
29488 $as_echo_n "checking block device operation prototypes... " >&6; }
29489 tmp_flags="$EXTRA_KCFLAGS"
29490 EXTRA_KCFLAGS="${NO_UNUSED_BUT_SET_VARIABLE}"
29491
29492
29493 cat confdefs.h - <<_ACEOF >conftest.c
29494
29495
29496 #include <linux/blkdev.h>
29497
29498 int blk_open(struct block_device *bdev, fmode_t mode)
29499 { return 0; }
29500 int blk_ioctl(struct block_device *bdev, fmode_t mode,
29501 unsigned x, unsigned long y) { return 0; }
29502 int blk_compat_ioctl(struct block_device * bdev, fmode_t mode,
29503 unsigned x, unsigned long y) { return 0; }
29504
29505 static const struct block_device_operations
29506 bops __attribute__ ((unused)) = {
29507 .open = blk_open,
29508 .release = NULL,
29509 .ioctl = blk_ioctl,
29510 .compat_ioctl = blk_compat_ioctl,
29511 };
29512
29513 int
29514 main (void)
29515 {
29516
29517
29518 ;
29519 return 0;
29520 }
29521
29522 _ACEOF
29523
29524
29525
29526 cat - <<_ACEOF >conftest.h
29527
29528 _ACEOF
29529
29530
29531 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
29532 echo "obj-m := conftest.o" >build/Makefile
29533 modpost_flag=''
29534 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
29535 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
29536 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29537 (eval $ac_try) 2>&5
29538 ac_status=$?
29539 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29540 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
29541 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29542 (eval $ac_try) 2>&5
29543 ac_status=$?
29544 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29545 test $ac_status = 0; }; }; then :
29546
29547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: struct block_device" >&5
29548 $as_echo "struct block_device" >&6; }
29549
29550 $as_echo "#define HAVE_BDEV_BLOCK_DEVICE_OPERATIONS 1" >>confdefs.h
29551
29552
29553 else
29554 $as_echo "$as_me: failed program was:" >&5
29555 sed 's/^/| /' conftest.$ac_ext >&5
29556
29557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: struct inode" >&5
29558 $as_echo "struct inode" >&6; }
29559
29560
29561
29562 fi
29563 rm -Rf build
29564
29565
29566 EXTRA_KCFLAGS="$tmp_flags"
29567
29568
29569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether block_device_operations.release is void" >&5
29570 $as_echo_n "checking whether block_device_operations.release is void... " >&6; }
29571 tmp_flags="$EXTRA_KCFLAGS"
29572 EXTRA_KCFLAGS="${NO_UNUSED_BUT_SET_VARIABLE}"
29573
29574
29575 cat confdefs.h - <<_ACEOF >conftest.c
29576
29577
29578 #include <linux/blkdev.h>
29579
29580 void blk_release(struct gendisk *g, fmode_t mode) { return; }
29581
29582 static const struct block_device_operations
29583 bops __attribute__ ((unused)) = {
29584 .open = NULL,
29585 .release = blk_release,
29586 .ioctl = NULL,
29587 .compat_ioctl = NULL,
29588 };
29589
29590 int
29591 main (void)
29592 {
29593
29594
29595 ;
29596 return 0;
29597 }
29598
29599 _ACEOF
29600
29601
29602
29603 cat - <<_ACEOF >conftest.h
29604
29605 _ACEOF
29606
29607
29608 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
29609 echo "obj-m := conftest.o" >build/Makefile
29610 modpost_flag=''
29611 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
29612 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
29613 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29614 (eval $ac_try) 2>&5
29615 ac_status=$?
29616 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29617 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
29618 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29619 (eval $ac_try) 2>&5
29620 ac_status=$?
29621 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29622 test $ac_status = 0; }; }; then :
29623
29624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: void" >&5
29625 $as_echo "void" >&6; }
29626
29627 $as_echo "#define HAVE_BLOCK_DEVICE_OPERATIONS_RELEASE_VOID 1" >>confdefs.h
29628
29629
29630 else
29631 $as_echo "$as_me: failed program was:" >&5
29632 sed 's/^/| /' conftest.$ac_ext >&5
29633
29634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: int" >&5
29635 $as_echo "int" >&6; }
29636
29637
29638
29639 fi
29640 rm -Rf build
29641
29642
29643 EXTRA_KCFLAGS="$tmp_flags"
29644
29645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether kernel defines fmode_t" >&5
29646 $as_echo_n "checking whether kernel defines fmode_t... " >&6; }
29647
29648
29649 cat confdefs.h - <<_ACEOF >conftest.c
29650
29651
29652 #include <linux/types.h>
29653
29654 int
29655 main (void)
29656 {
29657
29658 fmode_t *ptr __attribute__ ((unused));
29659
29660 ;
29661 return 0;
29662 }
29663
29664 _ACEOF
29665
29666
29667
29668 cat - <<_ACEOF >conftest.h
29669
29670 _ACEOF
29671
29672
29673 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
29674 echo "obj-m := conftest.o" >build/Makefile
29675 modpost_flag=''
29676 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
29677 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
29678 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29679 (eval $ac_try) 2>&5
29680 ac_status=$?
29681 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29682 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
29683 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29684 (eval $ac_try) 2>&5
29685 ac_status=$?
29686 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29687 test $ac_status = 0; }; }; then :
29688
29689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29690 $as_echo "yes" >&6; }
29691
29692 $as_echo "#define HAVE_FMODE_T 1" >>confdefs.h
29693
29694
29695 else
29696 $as_echo "$as_me: failed program was:" >&5
29697 sed 's/^/| /' conftest.$ac_ext >&5
29698
29699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29700 $as_echo "no" >&6; }
29701
29702
29703
29704 fi
29705 rm -Rf build
29706
29707
29708
29709
29710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether blkdev_get() wants 3 args" >&5
29711 $as_echo_n "checking whether blkdev_get() wants 3 args... " >&6; }
29712
29713
29714 cat confdefs.h - <<_ACEOF >conftest.c
29715
29716
29717 #include <linux/fs.h>
29718
29719 int
29720 main (void)
29721 {
29722
29723 struct block_device *bdev = NULL;
29724 (void) blkdev_get(bdev, 0, NULL);
29725
29726 ;
29727 return 0;
29728 }
29729
29730 _ACEOF
29731
29732
29733
29734 cat - <<_ACEOF >conftest.h
29735
29736 _ACEOF
29737
29738
29739 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
29740 echo "obj-m := conftest.o" >build/Makefile
29741 modpost_flag=''
29742 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
29743 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
29744 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29745 (eval $ac_try) 2>&5
29746 ac_status=$?
29747 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29748 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
29749 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29750 (eval $ac_try) 2>&5
29751 ac_status=$?
29752 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29753 test $ac_status = 0; }; }; then :
29754
29755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29756 $as_echo "yes" >&6; }
29757
29758 $as_echo "#define HAVE_3ARG_BLKDEV_GET 1" >>confdefs.h
29759
29760
29761 else
29762 $as_echo "$as_me: failed program was:" >&5
29763 sed 's/^/| /' conftest.$ac_ext >&5
29764
29765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29766 $as_echo "no" >&6; }
29767
29768
29769
29770 fi
29771 rm -Rf build
29772
29773
29774
29775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether blkdev_get_by_path() is available" >&5
29776 $as_echo_n "checking whether blkdev_get_by_path() is available... " >&6; }
29777
29778
29779
29780 cat confdefs.h - <<_ACEOF >conftest.c
29781
29782
29783 #include <linux/fs.h>
29784
29785 int
29786 main (void)
29787 {
29788
29789 blkdev_get_by_path(NULL, 0, NULL);
29790
29791 ;
29792 return 0;
29793 }
29794
29795 _ACEOF
29796
29797
29798
29799 cat - <<_ACEOF >conftest.h
29800
29801 _ACEOF
29802
29803
29804 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
29805 echo "obj-m := conftest.o" >build/Makefile
29806 modpost_flag=''
29807 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
29808 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
29809 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29810 (eval $ac_try) 2>&5
29811 ac_status=$?
29812 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29813 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
29814 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29815 (eval $ac_try) 2>&5
29816 ac_status=$?
29817 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29818 test $ac_status = 0; }; }; then :
29819 rc=0
29820 else
29821 $as_echo "$as_me: failed program was:" >&5
29822 sed 's/^/| /' conftest.$ac_ext >&5
29823 rc=1
29824
29825
29826 fi
29827 rm -Rf build
29828
29829
29830 if test $rc -ne 0; then :
29831
29832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29833 $as_echo "no" >&6; }
29834
29835 else
29836 if test "x$enable_linux_builtin" != xyes; then
29837
29838 grep -q -E '[[:space:]]blkdev_get_by_path[[:space:]]' \
29839 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
29840 rc=$?
29841 if test $rc -ne 0; then
29842 export=0
29843 for file in fs/block_dev.c; do
29844 grep -q -E "EXPORT_SYMBOL.*(blkdev_get_by_path)" \
29845 "$LINUX/$file" 2>/dev/null
29846 rc=$?
29847 if test $rc -eq 0; then
29848 export=1
29849 break;
29850 fi
29851 done
29852 if test $export -eq 0; then :
29853 rc=1
29854 else :
29855 rc=0
29856 fi
29857 else :
29858 rc=0
29859 fi
29860
29861 fi
29862 if test $rc -ne 0; then :
29863
29864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29865 $as_echo "no" >&6; }
29866
29867 else :
29868
29869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29870 $as_echo "yes" >&6; }
29871
29872 $as_echo "#define HAVE_BLKDEV_GET_BY_PATH 1" >>confdefs.h
29873
29874
29875 fi
29876 fi
29877
29878
29879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether open_bdev_exclusive() is available" >&5
29880 $as_echo_n "checking whether open_bdev_exclusive() is available... " >&6; }
29881
29882
29883
29884 cat confdefs.h - <<_ACEOF >conftest.c
29885
29886
29887 #include <linux/fs.h>
29888
29889 int
29890 main (void)
29891 {
29892
29893 open_bdev_exclusive(NULL, 0, NULL);
29894
29895 ;
29896 return 0;
29897 }
29898
29899 _ACEOF
29900
29901
29902
29903 cat - <<_ACEOF >conftest.h
29904
29905 _ACEOF
29906
29907
29908 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
29909 echo "obj-m := conftest.o" >build/Makefile
29910 modpost_flag=''
29911 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
29912 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
29913 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29914 (eval $ac_try) 2>&5
29915 ac_status=$?
29916 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29917 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
29918 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29919 (eval $ac_try) 2>&5
29920 ac_status=$?
29921 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29922 test $ac_status = 0; }; }; then :
29923 rc=0
29924 else
29925 $as_echo "$as_me: failed program was:" >&5
29926 sed 's/^/| /' conftest.$ac_ext >&5
29927 rc=1
29928
29929
29930 fi
29931 rm -Rf build
29932
29933
29934 if test $rc -ne 0; then :
29935
29936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29937 $as_echo "no" >&6; }
29938
29939 else
29940 if test "x$enable_linux_builtin" != xyes; then
29941
29942 grep -q -E '[[:space:]]open_bdev_exclusive[[:space:]]' \
29943 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
29944 rc=$?
29945 if test $rc -ne 0; then
29946 export=0
29947 for file in fs/block_dev.c; do
29948 grep -q -E "EXPORT_SYMBOL.*(open_bdev_exclusive)" \
29949 "$LINUX/$file" 2>/dev/null
29950 rc=$?
29951 if test $rc -eq 0; then
29952 export=1
29953 break;
29954 fi
29955 done
29956 if test $export -eq 0; then :
29957 rc=1
29958 else :
29959 rc=0
29960 fi
29961 else :
29962 rc=0
29963 fi
29964
29965 fi
29966 if test $rc -ne 0; then :
29967
29968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29969 $as_echo "no" >&6; }
29970
29971 else :
29972
29973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29974 $as_echo "yes" >&6; }
29975
29976 $as_echo "#define HAVE_OPEN_BDEV_EXCLUSIVE 1" >>confdefs.h
29977
29978
29979 fi
29980 fi
29981
29982
29983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lookup_bdev() wants 1 arg" >&5
29984 $as_echo_n "checking whether lookup_bdev() wants 1 arg... " >&6; }
29985
29986
29987
29988 cat confdefs.h - <<_ACEOF >conftest.c
29989
29990
29991 #include <linux/fs.h>
29992
29993 int
29994 main (void)
29995 {
29996
29997 lookup_bdev(NULL);
29998
29999 ;
30000 return 0;
30001 }
30002
30003 _ACEOF
30004
30005
30006
30007 cat - <<_ACEOF >conftest.h
30008
30009 _ACEOF
30010
30011
30012 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
30013 echo "obj-m := conftest.o" >build/Makefile
30014 modpost_flag=''
30015 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
30016 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
30017 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30018 (eval $ac_try) 2>&5
30019 ac_status=$?
30020 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30021 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
30022 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30023 (eval $ac_try) 2>&5
30024 ac_status=$?
30025 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30026 test $ac_status = 0; }; }; then :
30027 rc=0
30028 else
30029 $as_echo "$as_me: failed program was:" >&5
30030 sed 's/^/| /' conftest.$ac_ext >&5
30031 rc=1
30032
30033
30034 fi
30035 rm -Rf build
30036
30037
30038 if test $rc -ne 0; then :
30039
30040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30041 $as_echo "no" >&6; }
30042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lookup_bdev() wants 2 args" >&5
30043 $as_echo_n "checking whether lookup_bdev() wants 2 args... " >&6; }
30044
30045
30046
30047 cat confdefs.h - <<_ACEOF >conftest.c
30048
30049
30050 #include <linux/fs.h>
30051
30052 int
30053 main (void)
30054 {
30055
30056 lookup_bdev(NULL, FMODE_READ);
30057
30058 ;
30059 return 0;
30060 }
30061
30062 _ACEOF
30063
30064
30065
30066 cat - <<_ACEOF >conftest.h
30067
30068 _ACEOF
30069
30070
30071 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
30072 echo "obj-m := conftest.o" >build/Makefile
30073 modpost_flag=''
30074 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
30075 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
30076 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30077 (eval $ac_try) 2>&5
30078 ac_status=$?
30079 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30080 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
30081 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30082 (eval $ac_try) 2>&5
30083 ac_status=$?
30084 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30085 test $ac_status = 0; }; }; then :
30086 rc=0
30087 else
30088 $as_echo "$as_me: failed program was:" >&5
30089 sed 's/^/| /' conftest.$ac_ext >&5
30090 rc=1
30091
30092
30093 fi
30094 rm -Rf build
30095
30096
30097 if test $rc -ne 0; then :
30098
30099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30100 $as_echo "no" >&6; }
30101
30102 else
30103 if test "x$enable_linux_builtin" != xyes; then
30104
30105 grep -q -E '[[:space:]]lookup_bdev[[:space:]]' \
30106 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
30107 rc=$?
30108 if test $rc -ne 0; then
30109 export=0
30110 for file in fs/block_dev.c; do
30111 grep -q -E "EXPORT_SYMBOL.*(lookup_bdev)" \
30112 "$LINUX/$file" 2>/dev/null
30113 rc=$?
30114 if test $rc -eq 0; then
30115 export=1
30116 break;
30117 fi
30118 done
30119 if test $export -eq 0; then :
30120 rc=1
30121 else :
30122 rc=0
30123 fi
30124 else :
30125 rc=0
30126 fi
30127
30128 fi
30129 if test $rc -ne 0; then :
30130
30131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30132 $as_echo "no" >&6; }
30133
30134 else :
30135
30136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30137 $as_echo "yes" >&6; }
30138
30139 $as_echo "#define HAVE_2ARGS_LOOKUP_BDEV 1" >>confdefs.h
30140
30141
30142 fi
30143 fi
30144
30145
30146 else
30147 if test "x$enable_linux_builtin" != xyes; then
30148
30149 grep -q -E '[[:space:]]lookup_bdev[[:space:]]' \
30150 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
30151 rc=$?
30152 if test $rc -ne 0; then
30153 export=0
30154 for file in fs/block_dev.c; do
30155 grep -q -E "EXPORT_SYMBOL.*(lookup_bdev)" \
30156 "$LINUX/$file" 2>/dev/null
30157 rc=$?
30158 if test $rc -eq 0; then
30159 export=1
30160 break;
30161 fi
30162 done
30163 if test $export -eq 0; then :
30164 rc=1
30165 else :
30166 rc=0
30167 fi
30168 else :
30169 rc=0
30170 fi
30171
30172 fi
30173 if test $rc -ne 0; then :
30174
30175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30176 $as_echo "no" >&6; }
30177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lookup_bdev() wants 2 args" >&5
30178 $as_echo_n "checking whether lookup_bdev() wants 2 args... " >&6; }
30179
30180
30181
30182 cat confdefs.h - <<_ACEOF >conftest.c
30183
30184
30185 #include <linux/fs.h>
30186
30187 int
30188 main (void)
30189 {
30190
30191 lookup_bdev(NULL, FMODE_READ);
30192
30193 ;
30194 return 0;
30195 }
30196
30197 _ACEOF
30198
30199
30200
30201 cat - <<_ACEOF >conftest.h
30202
30203 _ACEOF
30204
30205
30206 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
30207 echo "obj-m := conftest.o" >build/Makefile
30208 modpost_flag=''
30209 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
30210 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
30211 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30212 (eval $ac_try) 2>&5
30213 ac_status=$?
30214 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30215 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
30216 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30217 (eval $ac_try) 2>&5
30218 ac_status=$?
30219 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30220 test $ac_status = 0; }; }; then :
30221 rc=0
30222 else
30223 $as_echo "$as_me: failed program was:" >&5
30224 sed 's/^/| /' conftest.$ac_ext >&5
30225 rc=1
30226
30227
30228 fi
30229 rm -Rf build
30230
30231
30232 if test $rc -ne 0; then :
30233
30234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30235 $as_echo "no" >&6; }
30236
30237 else
30238 if test "x$enable_linux_builtin" != xyes; then
30239
30240 grep -q -E '[[:space:]]lookup_bdev[[:space:]]' \
30241 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
30242 rc=$?
30243 if test $rc -ne 0; then
30244 export=0
30245 for file in fs/block_dev.c; do
30246 grep -q -E "EXPORT_SYMBOL.*(lookup_bdev)" \
30247 "$LINUX/$file" 2>/dev/null
30248 rc=$?
30249 if test $rc -eq 0; then
30250 export=1
30251 break;
30252 fi
30253 done
30254 if test $export -eq 0; then :
30255 rc=1
30256 else :
30257 rc=0
30258 fi
30259 else :
30260 rc=0
30261 fi
30262
30263 fi
30264 if test $rc -ne 0; then :
30265
30266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30267 $as_echo "no" >&6; }
30268
30269 else :
30270
30271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30272 $as_echo "yes" >&6; }
30273
30274 $as_echo "#define HAVE_2ARGS_LOOKUP_BDEV 1" >>confdefs.h
30275
30276
30277 fi
30278 fi
30279
30280
30281 else :
30282
30283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30284 $as_echo "yes" >&6; }
30285
30286 $as_echo "#define HAVE_1ARG_LOOKUP_BDEV 1" >>confdefs.h
30287
30288
30289 fi
30290 fi
30291
30292
30293
30294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether invalidate_bdev() wants 1 arg" >&5
30295 $as_echo_n "checking whether invalidate_bdev() wants 1 arg... " >&6; }
30296
30297
30298 cat confdefs.h - <<_ACEOF >conftest.c
30299
30300
30301 #include <linux/buffer_head.h>
30302
30303 int
30304 main (void)
30305 {
30306
30307 struct block_device *bdev = NULL;
30308 invalidate_bdev(bdev);
30309
30310 ;
30311 return 0;
30312 }
30313
30314 _ACEOF
30315
30316
30317
30318 cat - <<_ACEOF >conftest.h
30319
30320 _ACEOF
30321
30322
30323 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
30324 echo "obj-m := conftest.o" >build/Makefile
30325 modpost_flag=''
30326 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
30327 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
30328 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30329 (eval $ac_try) 2>&5
30330 ac_status=$?
30331 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30332 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
30333 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30334 (eval $ac_try) 2>&5
30335 ac_status=$?
30336 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30337 test $ac_status = 0; }; }; then :
30338
30339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30340 $as_echo "yes" >&6; }
30341
30342 $as_echo "#define HAVE_1ARG_INVALIDATE_BDEV 1" >>confdefs.h
30343
30344
30345 else
30346 $as_echo "$as_me: failed program was:" >&5
30347 sed 's/^/| /' conftest.$ac_ext >&5
30348
30349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30350 $as_echo "no" >&6; }
30351
30352
30353
30354 fi
30355 rm -Rf build
30356
30357
30358
30359
30360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether bdev_logical_block_size() is available" >&5
30361 $as_echo_n "checking whether bdev_logical_block_size() is available... " >&6; }
30362 tmp_flags="$EXTRA_KCFLAGS"
30363 EXTRA_KCFLAGS="${NO_UNUSED_BUT_SET_VARIABLE}"
30364
30365
30366 cat confdefs.h - <<_ACEOF >conftest.c
30367
30368
30369 #include <linux/blkdev.h>
30370
30371 int
30372 main (void)
30373 {
30374
30375 struct block_device *bdev = NULL;
30376 bdev_logical_block_size(bdev);
30377
30378 ;
30379 return 0;
30380 }
30381
30382 _ACEOF
30383
30384
30385
30386 cat - <<_ACEOF >conftest.h
30387
30388 _ACEOF
30389
30390
30391 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
30392 echo "obj-m := conftest.o" >build/Makefile
30393 modpost_flag=''
30394 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
30395 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
30396 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30397 (eval $ac_try) 2>&5
30398 ac_status=$?
30399 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30400 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
30401 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30402 (eval $ac_try) 2>&5
30403 ac_status=$?
30404 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30405 test $ac_status = 0; }; }; then :
30406
30407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30408 $as_echo "yes" >&6; }
30409
30410 $as_echo "#define HAVE_BDEV_LOGICAL_BLOCK_SIZE 1" >>confdefs.h
30411
30412
30413 else
30414 $as_echo "$as_me: failed program was:" >&5
30415 sed 's/^/| /' conftest.$ac_ext >&5
30416
30417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30418 $as_echo "no" >&6; }
30419
30420
30421
30422 fi
30423 rm -Rf build
30424
30425
30426 EXTRA_KCFLAGS="$tmp_flags"
30427
30428
30429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether bdev_physical_block_size() is available" >&5
30430 $as_echo_n "checking whether bdev_physical_block_size() is available... " >&6; }
30431 tmp_flags="$EXTRA_KCFLAGS"
30432 EXTRA_KCFLAGS="${NO_UNUSED_BUT_SET_VARIABLE}"
30433
30434
30435 cat confdefs.h - <<_ACEOF >conftest.c
30436
30437
30438 #include <linux/blkdev.h>
30439
30440 int
30441 main (void)
30442 {
30443
30444 struct block_device *bdev = NULL;
30445 bdev_physical_block_size(bdev);
30446
30447 ;
30448 return 0;
30449 }
30450
30451 _ACEOF
30452
30453
30454
30455 cat - <<_ACEOF >conftest.h
30456
30457 _ACEOF
30458
30459
30460 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
30461 echo "obj-m := conftest.o" >build/Makefile
30462 modpost_flag=''
30463 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
30464 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
30465 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30466 (eval $ac_try) 2>&5
30467 ac_status=$?
30468 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30469 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
30470 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30471 (eval $ac_try) 2>&5
30472 ac_status=$?
30473 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30474 test $ac_status = 0; }; }; then :
30475
30476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30477 $as_echo "yes" >&6; }
30478
30479 $as_echo "#define HAVE_BDEV_PHYSICAL_BLOCK_SIZE 1" >>confdefs.h
30480
30481
30482 else
30483 $as_echo "$as_me: failed program was:" >&5
30484 sed 's/^/| /' conftest.$ac_ext >&5
30485
30486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30487 $as_echo "no" >&6; }
30488
30489
30490
30491 fi
30492 rm -Rf build
30493
30494
30495 EXTRA_KCFLAGS="$tmp_flags"
30496
30497
30498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether bio has bi_iter" >&5
30499 $as_echo_n "checking whether bio has bi_iter... " >&6; }
30500
30501
30502 cat confdefs.h - <<_ACEOF >conftest.c
30503
30504
30505 #include <linux/bio.h>
30506
30507 int
30508 main (void)
30509 {
30510
30511 struct bio bio;
30512 bio.bi_iter.bi_sector = 0;
30513
30514 ;
30515 return 0;
30516 }
30517
30518 _ACEOF
30519
30520
30521
30522 cat - <<_ACEOF >conftest.h
30523
30524 _ACEOF
30525
30526
30527 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
30528 echo "obj-m := conftest.o" >build/Makefile
30529 modpost_flag=''
30530 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
30531 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
30532 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30533 (eval $ac_try) 2>&5
30534 ac_status=$?
30535 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30536 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
30537 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30538 (eval $ac_try) 2>&5
30539 ac_status=$?
30540 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30541 test $ac_status = 0; }; }; then :
30542
30543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30544 $as_echo "yes" >&6; }
30545
30546 $as_echo "#define HAVE_BIO_BVEC_ITER 1" >>confdefs.h
30547
30548
30549 else
30550 $as_echo "$as_me: failed program was:" >&5
30551 sed 's/^/| /' conftest.$ac_ext >&5
30552
30553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30554 $as_echo "no" >&6; }
30555
30556
30557
30558 fi
30559 rm -Rf build
30560
30561
30562
30563
30564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether BIO_RW_FAILFAST_* are defined" >&5
30565 $as_echo_n "checking whether BIO_RW_FAILFAST_* are defined... " >&6; }
30566
30567
30568 cat confdefs.h - <<_ACEOF >conftest.c
30569
30570
30571 #include <linux/bio.h>
30572
30573 int
30574 main (void)
30575 {
30576
30577 int flags __attribute__ ((unused));
30578 flags = ((1 << BIO_RW_FAILFAST_DEV) |
30579 (1 << BIO_RW_FAILFAST_TRANSPORT) |
30580 (1 << BIO_RW_FAILFAST_DRIVER));
30581
30582 ;
30583 return 0;
30584 }
30585
30586 _ACEOF
30587
30588
30589
30590 cat - <<_ACEOF >conftest.h
30591
30592 _ACEOF
30593
30594
30595 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
30596 echo "obj-m := conftest.o" >build/Makefile
30597 modpost_flag=''
30598 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
30599 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
30600 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30601 (eval $ac_try) 2>&5
30602 ac_status=$?
30603 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30604 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
30605 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30606 (eval $ac_try) 2>&5
30607 ac_status=$?
30608 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30609 test $ac_status = 0; }; }; then :
30610
30611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30612 $as_echo "yes" >&6; }
30613
30614 $as_echo "#define HAVE_BIO_RW_FAILFAST_DTD 1" >>confdefs.h
30615
30616
30617 else
30618 $as_echo "$as_me: failed program was:" >&5
30619 sed 's/^/| /' conftest.$ac_ext >&5
30620
30621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30622 $as_echo "no" >&6; }
30623
30624
30625
30626 fi
30627 rm -Rf build
30628
30629
30630
30631
30632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether bio_set_dev() exists" >&5
30633 $as_echo_n "checking whether bio_set_dev() exists... " >&6; }
30634
30635
30636 cat confdefs.h - <<_ACEOF >conftest.c
30637
30638
30639 #include <linux/bio.h>
30640 #include <linux/fs.h>
30641
30642 int
30643 main (void)
30644 {
30645
30646 struct block_device *bdev = NULL;
30647 struct bio *bio = NULL;
30648 bio_set_dev(bio, bdev);
30649
30650 ;
30651 return 0;
30652 }
30653
30654 _ACEOF
30655
30656
30657
30658 cat - <<_ACEOF >conftest.h
30659
30660 _ACEOF
30661
30662
30663 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
30664 echo "obj-m := conftest.o" >build/Makefile
30665 modpost_flag=''
30666 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
30667 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
30668 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30669 (eval $ac_try) 2>&5
30670 ac_status=$?
30671 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30672 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
30673 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30674 (eval $ac_try) 2>&5
30675 ac_status=$?
30676 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30677 test $ac_status = 0; }; }; then :
30678
30679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30680 $as_echo "yes" >&6; }
30681
30682 $as_echo "#define HAVE_BIO_SET_DEV 1" >>confdefs.h
30683
30684
30685 else
30686 $as_echo "$as_me: failed program was:" >&5
30687 sed 's/^/| /' conftest.$ac_ext >&5
30688
30689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30690 $as_echo "no" >&6; }
30691
30692
30693
30694 fi
30695 rm -Rf build
30696
30697
30698
30699
30700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether REQ_FAILFAST_MASK is defined" >&5
30701 $as_echo_n "checking whether REQ_FAILFAST_MASK is defined... " >&6; }
30702
30703
30704 cat confdefs.h - <<_ACEOF >conftest.c
30705
30706
30707 #include <linux/bio.h>
30708
30709 int
30710 main (void)
30711 {
30712
30713 int flags __attribute__ ((unused));
30714 flags = REQ_FAILFAST_MASK;
30715
30716 ;
30717 return 0;
30718 }
30719
30720 _ACEOF
30721
30722
30723
30724 cat - <<_ACEOF >conftest.h
30725
30726 _ACEOF
30727
30728
30729 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
30730 echo "obj-m := conftest.o" >build/Makefile
30731 modpost_flag=''
30732 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
30733 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
30734 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30735 (eval $ac_try) 2>&5
30736 ac_status=$?
30737 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30738 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
30739 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30740 (eval $ac_try) 2>&5
30741 ac_status=$?
30742 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30743 test $ac_status = 0; }; }; then :
30744
30745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30746 $as_echo "yes" >&6; }
30747
30748 $as_echo "#define HAVE_REQ_FAILFAST_MASK 1" >>confdefs.h
30749
30750
30751 else
30752 $as_echo "$as_me: failed program was:" >&5
30753 sed 's/^/| /' conftest.$ac_ext >&5
30754
30755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30756 $as_echo "no" >&6; }
30757
30758
30759
30760 fi
30761 rm -Rf build
30762
30763
30764
30765
30766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether REQ_OP_DISCARD is defined" >&5
30767 $as_echo_n "checking whether REQ_OP_DISCARD is defined... " >&6; }
30768
30769
30770 cat confdefs.h - <<_ACEOF >conftest.c
30771
30772
30773 #include <linux/blk_types.h>
30774
30775 int
30776 main (void)
30777 {
30778
30779 int op __attribute__ ((unused)) = REQ_OP_DISCARD;
30780
30781 ;
30782 return 0;
30783 }
30784
30785 _ACEOF
30786
30787
30788
30789 cat - <<_ACEOF >conftest.h
30790
30791 _ACEOF
30792
30793
30794 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
30795 echo "obj-m := conftest.o" >build/Makefile
30796 modpost_flag=''
30797 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
30798 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
30799 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30800 (eval $ac_try) 2>&5
30801 ac_status=$?
30802 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30803 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
30804 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30805 (eval $ac_try) 2>&5
30806 ac_status=$?
30807 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30808 test $ac_status = 0; }; }; then :
30809
30810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30811 $as_echo "yes" >&6; }
30812
30813 $as_echo "#define HAVE_REQ_OP_DISCARD 1" >>confdefs.h
30814
30815
30816 else
30817 $as_echo "$as_me: failed program was:" >&5
30818 sed 's/^/| /' conftest.$ac_ext >&5
30819
30820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30821 $as_echo "no" >&6; }
30822
30823
30824
30825 fi
30826 rm -Rf build
30827
30828
30829
30830
30831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether REQ_OP_SECURE_ERASE is defined" >&5
30832 $as_echo_n "checking whether REQ_OP_SECURE_ERASE is defined... " >&6; }
30833
30834
30835 cat confdefs.h - <<_ACEOF >conftest.c
30836
30837
30838 #include <linux/blk_types.h>
30839
30840 int
30841 main (void)
30842 {
30843
30844 int op __attribute__ ((unused)) = REQ_OP_SECURE_ERASE;
30845
30846 ;
30847 return 0;
30848 }
30849
30850 _ACEOF
30851
30852
30853
30854 cat - <<_ACEOF >conftest.h
30855
30856 _ACEOF
30857
30858
30859 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
30860 echo "obj-m := conftest.o" >build/Makefile
30861 modpost_flag=''
30862 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
30863 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
30864 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30865 (eval $ac_try) 2>&5
30866 ac_status=$?
30867 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30868 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
30869 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30870 (eval $ac_try) 2>&5
30871 ac_status=$?
30872 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30873 test $ac_status = 0; }; }; then :
30874
30875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30876 $as_echo "yes" >&6; }
30877
30878 $as_echo "#define HAVE_REQ_OP_SECURE_ERASE 1" >>confdefs.h
30879
30880
30881 else
30882 $as_echo "$as_me: failed program was:" >&5
30883 sed 's/^/| /' conftest.$ac_ext >&5
30884
30885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30886 $as_echo "no" >&6; }
30887
30888
30889
30890 fi
30891 rm -Rf build
30892
30893
30894
30895
30896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether REQ_OP_FLUSH is defined" >&5
30897 $as_echo_n "checking whether REQ_OP_FLUSH is defined... " >&6; }
30898
30899
30900 cat confdefs.h - <<_ACEOF >conftest.c
30901
30902
30903 #include <linux/blk_types.h>
30904
30905 int
30906 main (void)
30907 {
30908
30909 int op __attribute__ ((unused)) = REQ_OP_FLUSH;
30910
30911 ;
30912 return 0;
30913 }
30914
30915 _ACEOF
30916
30917
30918
30919 cat - <<_ACEOF >conftest.h
30920
30921 _ACEOF
30922
30923
30924 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
30925 echo "obj-m := conftest.o" >build/Makefile
30926 modpost_flag=''
30927 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
30928 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
30929 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30930 (eval $ac_try) 2>&5
30931 ac_status=$?
30932 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30933 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
30934 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30935 (eval $ac_try) 2>&5
30936 ac_status=$?
30937 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30938 test $ac_status = 0; }; }; then :
30939
30940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30941 $as_echo "yes" >&6; }
30942
30943 $as_echo "#define HAVE_REQ_OP_FLUSH 1" >>confdefs.h
30944
30945
30946 else
30947 $as_echo "$as_me: failed program was:" >&5
30948 sed 's/^/| /' conftest.$ac_ext >&5
30949
30950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30951 $as_echo "no" >&6; }
30952
30953
30954
30955 fi
30956 rm -Rf build
30957
30958
30959
30960
30961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether bio->bi_opf is defined" >&5
30962 $as_echo_n "checking whether bio->bi_opf is defined... " >&6; }
30963
30964
30965 cat confdefs.h - <<_ACEOF >conftest.c
30966
30967
30968 #include <linux/bio.h>
30969
30970 int
30971 main (void)
30972 {
30973
30974 struct bio bio __attribute__ ((unused));
30975 bio.bi_opf = 0;
30976
30977 ;
30978 return 0;
30979 }
30980
30981 _ACEOF
30982
30983
30984
30985 cat - <<_ACEOF >conftest.h
30986
30987 _ACEOF
30988
30989
30990 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
30991 echo "obj-m := conftest.o" >build/Makefile
30992 modpost_flag=''
30993 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
30994 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
30995 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30996 (eval $ac_try) 2>&5
30997 ac_status=$?
30998 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30999 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
31000 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31001 (eval $ac_try) 2>&5
31002 ac_status=$?
31003 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31004 test $ac_status = 0; }; }; then :
31005
31006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31007 $as_echo "yes" >&6; }
31008
31009 $as_echo "#define HAVE_BIO_BI_OPF 1" >>confdefs.h
31010
31011
31012 else
31013 $as_echo "$as_me: failed program was:" >&5
31014 sed 's/^/| /' conftest.$ac_ext >&5
31015
31016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31017 $as_echo "no" >&6; }
31018
31019
31020
31021 fi
31022 rm -Rf build
31023
31024
31025
31026
31027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether bio_end_io_t wants 1 arg" >&5
31028 $as_echo_n "checking whether bio_end_io_t wants 1 arg... " >&6; }
31029
31030
31031 cat confdefs.h - <<_ACEOF >conftest.c
31032
31033
31034 #include <linux/bio.h>
31035
31036 void wanted_end_io(struct bio *bio) { return; }
31037
31038 bio_end_io_t *end_io __attribute__ ((unused)) = wanted_end_io;
31039
31040 int
31041 main (void)
31042 {
31043
31044
31045 ;
31046 return 0;
31047 }
31048
31049 _ACEOF
31050
31051
31052
31053 cat - <<_ACEOF >conftest.h
31054
31055 _ACEOF
31056
31057
31058 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
31059 echo "obj-m := conftest.o" >build/Makefile
31060 modpost_flag=''
31061 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
31062 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
31063 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31064 (eval $ac_try) 2>&5
31065 ac_status=$?
31066 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31067 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
31068 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31069 (eval $ac_try) 2>&5
31070 ac_status=$?
31071 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31072 test $ac_status = 0; }; }; then :
31073
31074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31075 $as_echo "yes" >&6; }
31076
31077 $as_echo "#define HAVE_1ARG_BIO_END_IO_T 1" >>confdefs.h
31078
31079
31080 else
31081 $as_echo "$as_me: failed program was:" >&5
31082 sed 's/^/| /' conftest.$ac_ext >&5
31083
31084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31085 $as_echo "no" >&6; }
31086
31087
31088
31089 fi
31090 rm -Rf build
31091
31092
31093
31094
31095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether bio->bi_status exists" >&5
31096 $as_echo_n "checking whether bio->bi_status exists... " >&6; }
31097
31098
31099 cat confdefs.h - <<_ACEOF >conftest.c
31100
31101
31102 #include <linux/bio.h>
31103
31104 int
31105 main (void)
31106 {
31107
31108 struct bio bio __attribute__ ((unused));
31109 blk_status_t status __attribute__ ((unused)) = BLK_STS_OK;
31110
31111 bio.bi_status = status;
31112
31113 ;
31114 return 0;
31115 }
31116
31117 _ACEOF
31118
31119
31120
31121 cat - <<_ACEOF >conftest.h
31122
31123 _ACEOF
31124
31125
31126 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
31127 echo "obj-m := conftest.o" >build/Makefile
31128 modpost_flag=''
31129 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
31130 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
31131 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31132 (eval $ac_try) 2>&5
31133 ac_status=$?
31134 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31135 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
31136 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31137 (eval $ac_try) 2>&5
31138 ac_status=$?
31139 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31140 test $ac_status = 0; }; }; then :
31141
31142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31143 $as_echo "yes" >&6; }
31144
31145 $as_echo "#define HAVE_BIO_BI_STATUS 1" >>confdefs.h
31146
31147
31148 else
31149 $as_echo "$as_me: failed program was:" >&5
31150 sed 's/^/| /' conftest.$ac_ext >&5
31151
31152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31153 $as_echo "no" >&6; }
31154
31155
31156
31157 fi
31158 rm -Rf build
31159
31160
31161
31162
31163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether BIO_RW_BARRIER is defined" >&5
31164 $as_echo_n "checking whether BIO_RW_BARRIER is defined... " >&6; }
31165
31166
31167 cat confdefs.h - <<_ACEOF >conftest.c
31168
31169
31170 #include <linux/bio.h>
31171
31172 int
31173 main (void)
31174 {
31175
31176 int flags __attribute__ ((unused));
31177 flags = BIO_RW_BARRIER;
31178
31179 ;
31180 return 0;
31181 }
31182
31183 _ACEOF
31184
31185
31186
31187 cat - <<_ACEOF >conftest.h
31188
31189 _ACEOF
31190
31191
31192 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
31193 echo "obj-m := conftest.o" >build/Makefile
31194 modpost_flag=''
31195 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
31196 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
31197 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31198 (eval $ac_try) 2>&5
31199 ac_status=$?
31200 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31201 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
31202 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31203 (eval $ac_try) 2>&5
31204 ac_status=$?
31205 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31206 test $ac_status = 0; }; }; then :
31207
31208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31209 $as_echo "yes" >&6; }
31210
31211 $as_echo "#define HAVE_BIO_RW_BARRIER 1" >>confdefs.h
31212
31213
31214 else
31215 $as_echo "$as_me: failed program was:" >&5
31216 sed 's/^/| /' conftest.$ac_ext >&5
31217
31218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31219 $as_echo "no" >&6; }
31220
31221
31222
31223 fi
31224 rm -Rf build
31225
31226
31227
31228
31229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether BIO_RW_DISCARD is defined" >&5
31230 $as_echo_n "checking whether BIO_RW_DISCARD is defined... " >&6; }
31231
31232
31233 cat confdefs.h - <<_ACEOF >conftest.c
31234
31235
31236 #include <linux/bio.h>
31237
31238 int
31239 main (void)
31240 {
31241
31242 int flags __attribute__ ((unused));
31243 flags = BIO_RW_DISCARD;
31244
31245 ;
31246 return 0;
31247 }
31248
31249 _ACEOF
31250
31251
31252
31253 cat - <<_ACEOF >conftest.h
31254
31255 _ACEOF
31256
31257
31258 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
31259 echo "obj-m := conftest.o" >build/Makefile
31260 modpost_flag=''
31261 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
31262 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
31263 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31264 (eval $ac_try) 2>&5
31265 ac_status=$?
31266 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31267 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
31268 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31269 (eval $ac_try) 2>&5
31270 ac_status=$?
31271 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31272 test $ac_status = 0; }; }; then :
31273
31274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31275 $as_echo "yes" >&6; }
31276
31277 $as_echo "#define HAVE_BIO_RW_DISCARD 1" >>confdefs.h
31278
31279
31280 else
31281 $as_echo "$as_me: failed program was:" >&5
31282 sed 's/^/| /' conftest.$ac_ext >&5
31283
31284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31285 $as_echo "no" >&6; }
31286
31287
31288
31289 fi
31290 rm -Rf build
31291
31292
31293
31294
31295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether blk_queue bdi is dynamic" >&5
31296 $as_echo_n "checking whether blk_queue bdi is dynamic... " >&6; }
31297
31298
31299 cat confdefs.h - <<_ACEOF >conftest.c
31300
31301
31302 #include <linux/blkdev.h>
31303
31304 int
31305 main (void)
31306 {
31307
31308 struct request_queue q;
31309 struct backing_dev_info bdi;
31310 q.backing_dev_info = &bdi;
31311
31312 ;
31313 return 0;
31314 }
31315
31316 _ACEOF
31317
31318
31319
31320 cat - <<_ACEOF >conftest.h
31321
31322 _ACEOF
31323
31324
31325 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
31326 echo "obj-m := conftest.o" >build/Makefile
31327 modpost_flag=''
31328 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
31329 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
31330 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31331 (eval $ac_try) 2>&5
31332 ac_status=$?
31333 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31334 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
31335 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31336 (eval $ac_try) 2>&5
31337 ac_status=$?
31338 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31339 test $ac_status = 0; }; }; then :
31340
31341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31342 $as_echo "yes" >&6; }
31343
31344 $as_echo "#define HAVE_BLK_QUEUE_BDI_DYNAMIC 1" >>confdefs.h
31345
31346
31347 else
31348 $as_echo "$as_me: failed program was:" >&5
31349 sed 's/^/| /' conftest.$ac_ext >&5
31350
31351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31352 $as_echo "no" >&6; }
31353
31354
31355
31356 fi
31357 rm -Rf build
31358
31359
31360
31361
31362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether blk_queue_flush() is available" >&5
31363 $as_echo_n "checking whether blk_queue_flush() is available... " >&6; }
31364 tmp_flags="$EXTRA_KCFLAGS"
31365 EXTRA_KCFLAGS="${NO_UNUSED_BUT_SET_VARIABLE}"
31366
31367
31368 cat confdefs.h - <<_ACEOF >conftest.c
31369
31370
31371 #include <linux/blkdev.h>
31372
31373 int
31374 main (void)
31375 {
31376
31377 struct request_queue *q = NULL;
31378 (void) blk_queue_flush(q, REQ_FLUSH);
31379
31380 ;
31381 return 0;
31382 }
31383
31384 _ACEOF
31385
31386
31387
31388 cat - <<_ACEOF >conftest.h
31389
31390 _ACEOF
31391
31392
31393 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
31394 echo "obj-m := conftest.o" >build/Makefile
31395 modpost_flag=''
31396 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
31397 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
31398 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31399 (eval $ac_try) 2>&5
31400 ac_status=$?
31401 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31402 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
31403 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31404 (eval $ac_try) 2>&5
31405 ac_status=$?
31406 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31407 test $ac_status = 0; }; }; then :
31408
31409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31410 $as_echo "yes" >&6; }
31411
31412 $as_echo "#define HAVE_BLK_QUEUE_FLUSH 1" >>confdefs.h
31413
31414
31415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether blk_queue_flush() is GPL-only" >&5
31416 $as_echo_n "checking whether blk_queue_flush() is GPL-only... " >&6; }
31417
31418
31419 cat confdefs.h - <<_ACEOF >conftest.c
31420
31421
31422 #include <linux/module.h>
31423 #include <linux/blkdev.h>
31424
31425 MODULE_LICENSE("$ZFS_META_LICENSE");
31426
31427 int
31428 main (void)
31429 {
31430
31431 struct request_queue *q = NULL;
31432 (void) blk_queue_flush(q, REQ_FLUSH);
31433
31434 ;
31435 return 0;
31436 }
31437
31438 _ACEOF
31439
31440
31441
31442 cat - <<_ACEOF >conftest.h
31443
31444 _ACEOF
31445
31446
31447 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
31448 echo "obj-m := conftest.o" >build/Makefile
31449 modpost_flag=''
31450 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
31451 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
31452 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31453 (eval $ac_try) 2>&5
31454 ac_status=$?
31455 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31456 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
31457 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31458 (eval $ac_try) 2>&5
31459 ac_status=$?
31460 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31461 test $ac_status = 0; }; }; then :
31462
31463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31464 $as_echo "no" >&6; }
31465
31466 else
31467 $as_echo "$as_me: failed program was:" >&5
31468 sed 's/^/| /' conftest.$ac_ext >&5
31469
31470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31471 $as_echo "yes" >&6; }
31472
31473 $as_echo "#define HAVE_BLK_QUEUE_FLUSH_GPL_ONLY 1" >>confdefs.h
31474
31475
31476
31477
31478 fi
31479 rm -Rf build
31480
31481
31482
31483 else
31484 $as_echo "$as_me: failed program was:" >&5
31485 sed 's/^/| /' conftest.$ac_ext >&5
31486
31487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31488 $as_echo "no" >&6; }
31489
31490
31491
31492 fi
31493 rm -Rf build
31494
31495
31496
31497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether blk_queue_write_cache() exists" >&5
31498 $as_echo_n "checking whether blk_queue_write_cache() exists... " >&6; }
31499
31500
31501 cat confdefs.h - <<_ACEOF >conftest.c
31502
31503
31504 #include <linux/kernel.h>
31505 #include <linux/blkdev.h>
31506
31507
31508 int
31509 main (void)
31510 {
31511
31512 struct request_queue *q = NULL;
31513 blk_queue_write_cache(q, true, true);
31514
31515 ;
31516 return 0;
31517 }
31518
31519 _ACEOF
31520
31521
31522
31523 cat - <<_ACEOF >conftest.h
31524
31525 _ACEOF
31526
31527
31528 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
31529 echo "obj-m := conftest.o" >build/Makefile
31530 modpost_flag=''
31531 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
31532 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
31533 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31534 (eval $ac_try) 2>&5
31535 ac_status=$?
31536 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31537 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
31538 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31539 (eval $ac_try) 2>&5
31540 ac_status=$?
31541 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31542 test $ac_status = 0; }; }; then :
31543
31544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31545 $as_echo "yes" >&6; }
31546
31547 $as_echo "#define HAVE_BLK_QUEUE_WRITE_CACHE 1" >>confdefs.h
31548
31549
31550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether blk_queue_write_cache() is GPL-only" >&5
31551 $as_echo_n "checking whether blk_queue_write_cache() is GPL-only... " >&6; }
31552
31553
31554 cat confdefs.h - <<_ACEOF >conftest.c
31555
31556
31557 #include <linux/kernel.h>
31558 #include <linux/module.h>
31559 #include <linux/blkdev.h>
31560
31561 MODULE_LICENSE("$ZFS_META_LICENSE");
31562
31563 int
31564 main (void)
31565 {
31566
31567 struct request_queue *q = NULL;
31568 blk_queue_write_cache(q, true, true);
31569
31570 ;
31571 return 0;
31572 }
31573
31574 _ACEOF
31575
31576
31577
31578 cat - <<_ACEOF >conftest.h
31579
31580 _ACEOF
31581
31582
31583 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
31584 echo "obj-m := conftest.o" >build/Makefile
31585 modpost_flag=''
31586 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
31587 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
31588 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31589 (eval $ac_try) 2>&5
31590 ac_status=$?
31591 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31592 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
31593 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31594 (eval $ac_try) 2>&5
31595 ac_status=$?
31596 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31597 test $ac_status = 0; }; }; then :
31598
31599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31600 $as_echo "no" >&6; }
31601
31602 else
31603 $as_echo "$as_me: failed program was:" >&5
31604 sed 's/^/| /' conftest.$ac_ext >&5
31605
31606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31607 $as_echo "yes" >&6; }
31608
31609 $as_echo "#define HAVE_BLK_QUEUE_WRITE_CACHE_GPL_ONLY 1" >>confdefs.h
31610
31611
31612
31613
31614 fi
31615 rm -Rf build
31616
31617
31618
31619 else
31620 $as_echo "$as_me: failed program was:" >&5
31621 sed 's/^/| /' conftest.$ac_ext >&5
31622
31623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31624 $as_echo "no" >&6; }
31625
31626
31627
31628 fi
31629 rm -Rf build
31630
31631
31632
31633 EXTRA_KCFLAGS="$tmp_flags"
31634
31635
31636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether blk_queue_max_hw_sectors() is available" >&5
31637 $as_echo_n "checking whether blk_queue_max_hw_sectors() is available... " >&6; }
31638 tmp_flags="$EXTRA_KCFLAGS"
31639 EXTRA_KCFLAGS="${NO_UNUSED_BUT_SET_VARIABLE}"
31640
31641
31642 cat confdefs.h - <<_ACEOF >conftest.c
31643
31644
31645 #include <linux/blkdev.h>
31646
31647 int
31648 main (void)
31649 {
31650
31651 struct request_queue *q = NULL;
31652 (void) blk_queue_max_hw_sectors(q, BLK_SAFE_MAX_SECTORS);
31653
31654 ;
31655 return 0;
31656 }
31657
31658 _ACEOF
31659
31660
31661
31662 cat - <<_ACEOF >conftest.h
31663
31664 _ACEOF
31665
31666
31667 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
31668 echo "obj-m := conftest.o" >build/Makefile
31669 modpost_flag=''
31670 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
31671 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
31672 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31673 (eval $ac_try) 2>&5
31674 ac_status=$?
31675 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31676 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
31677 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31678 (eval $ac_try) 2>&5
31679 ac_status=$?
31680 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31681 test $ac_status = 0; }; }; then :
31682
31683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31684 $as_echo "yes" >&6; }
31685
31686 $as_echo "#define HAVE_BLK_QUEUE_MAX_HW_SECTORS 1" >>confdefs.h
31687
31688
31689 else
31690 $as_echo "$as_me: failed program was:" >&5
31691 sed 's/^/| /' conftest.$ac_ext >&5
31692
31693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31694 $as_echo "no" >&6; }
31695
31696
31697
31698 fi
31699 rm -Rf build
31700
31701
31702 EXTRA_KCFLAGS="$tmp_flags"
31703
31704
31705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether blk_queue_max_segments() is available" >&5
31706 $as_echo_n "checking whether blk_queue_max_segments() is available... " >&6; }
31707 tmp_flags="$EXTRA_KCFLAGS"
31708 EXTRA_KCFLAGS="${NO_UNUSED_BUT_SET_VARIABLE}"
31709
31710
31711 cat confdefs.h - <<_ACEOF >conftest.c
31712
31713
31714 #include <linux/blkdev.h>
31715
31716 int
31717 main (void)
31718 {
31719
31720 struct request_queue *q = NULL;
31721 (void) blk_queue_max_segments(q, BLK_MAX_SEGMENTS);
31722
31723 ;
31724 return 0;
31725 }
31726
31727 _ACEOF
31728
31729
31730
31731 cat - <<_ACEOF >conftest.h
31732
31733 _ACEOF
31734
31735
31736 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
31737 echo "obj-m := conftest.o" >build/Makefile
31738 modpost_flag=''
31739 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
31740 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
31741 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31742 (eval $ac_try) 2>&5
31743 ac_status=$?
31744 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31745 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
31746 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31747 (eval $ac_try) 2>&5
31748 ac_status=$?
31749 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31750 test $ac_status = 0; }; }; then :
31751
31752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31753 $as_echo "yes" >&6; }
31754
31755 $as_echo "#define HAVE_BLK_QUEUE_MAX_SEGMENTS 1" >>confdefs.h
31756
31757
31758 else
31759 $as_echo "$as_me: failed program was:" >&5
31760 sed 's/^/| /' conftest.$ac_ext >&5
31761
31762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31763 $as_echo "no" >&6; }
31764
31765
31766
31767 fi
31768 rm -Rf build
31769
31770
31771 EXTRA_KCFLAGS="$tmp_flags"
31772
31773
31774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the BIO_RW_UNPLUG enum is available" >&5
31775 $as_echo_n "checking whether the BIO_RW_UNPLUG enum is available... " >&6; }
31776 tmp_flags="$EXTRA_KCFLAGS"
31777 EXTRA_KCFLAGS="${NO_UNUSED_BUT_SET_VARIABLE}"
31778
31779
31780 cat confdefs.h - <<_ACEOF >conftest.c
31781
31782
31783 #include <linux/blkdev.h>
31784
31785 int
31786 main (void)
31787 {
31788
31789 extern enum bio_rw_flags rw;
31790
31791 rw = BIO_RW_UNPLUG;
31792
31793 ;
31794 return 0;
31795 }
31796
31797 _ACEOF
31798
31799
31800
31801 cat - <<_ACEOF >conftest.h
31802
31803 _ACEOF
31804
31805
31806 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
31807 echo "obj-m := conftest.o" >build/Makefile
31808 modpost_flag=''
31809 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
31810 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
31811 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31812 (eval $ac_try) 2>&5
31813 ac_status=$?
31814 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31815 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
31816 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31817 (eval $ac_try) 2>&5
31818 ac_status=$?
31819 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31820 test $ac_status = 0; }; }; then :
31821
31822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31823 $as_echo "yes" >&6; }
31824
31825 $as_echo "#define HAVE_BLK_QUEUE_HAVE_BIO_RW_UNPLUG 1" >>confdefs.h
31826
31827
31828 else
31829 $as_echo "$as_me: failed program was:" >&5
31830 sed 's/^/| /' conftest.$ac_ext >&5
31831
31832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31833 $as_echo "no" >&6; }
31834
31835
31836
31837 fi
31838 rm -Rf build
31839
31840
31841 EXTRA_KCFLAGS="$tmp_flags"
31842
31843
31844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct blk_plug is available" >&5
31845 $as_echo_n "checking whether struct blk_plug is available... " >&6; }
31846 tmp_flags="$EXTRA_KCFLAGS"
31847 EXTRA_KCFLAGS="${NO_UNUSED_BUT_SET_VARIABLE}"
31848
31849
31850 cat confdefs.h - <<_ACEOF >conftest.c
31851
31852
31853 #include <linux/blkdev.h>
31854
31855 int
31856 main (void)
31857 {
31858
31859 struct blk_plug plug;
31860
31861 blk_start_plug(&plug);
31862 blk_finish_plug(&plug);
31863
31864 ;
31865 return 0;
31866 }
31867
31868 _ACEOF
31869
31870
31871
31872 cat - <<_ACEOF >conftest.h
31873
31874 _ACEOF
31875
31876
31877 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
31878 echo "obj-m := conftest.o" >build/Makefile
31879 modpost_flag=''
31880 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
31881 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
31882 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31883 (eval $ac_try) 2>&5
31884 ac_status=$?
31885 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31886 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
31887 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31888 (eval $ac_try) 2>&5
31889 ac_status=$?
31890 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31891 test $ac_status = 0; }; }; then :
31892
31893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31894 $as_echo "yes" >&6; }
31895
31896 $as_echo "#define HAVE_BLK_QUEUE_HAVE_BLK_PLUG 1" >>confdefs.h
31897
31898
31899 else
31900 $as_echo "$as_me: failed program was:" >&5
31901 sed 's/^/| /' conftest.$ac_ext >&5
31902
31903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31904 $as_echo "no" >&6; }
31905
31906
31907
31908 fi
31909 rm -Rf build
31910
31911
31912 EXTRA_KCFLAGS="$tmp_flags"
31913
31914
31915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether get_disk_ro() is available" >&5
31916 $as_echo_n "checking whether get_disk_ro() is available... " >&6; }
31917 tmp_flags="$EXTRA_KCFLAGS"
31918 EXTRA_KCFLAGS="${NO_UNUSED_BUT_SET_VARIABLE}"
31919
31920
31921 cat confdefs.h - <<_ACEOF >conftest.c
31922
31923
31924 #include <linux/blkdev.h>
31925
31926 int
31927 main (void)
31928 {
31929
31930 struct gendisk *disk = NULL;
31931 (void) get_disk_ro(disk);
31932
31933 ;
31934 return 0;
31935 }
31936
31937 _ACEOF
31938
31939
31940
31941 cat - <<_ACEOF >conftest.h
31942
31943 _ACEOF
31944
31945
31946 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
31947 echo "obj-m := conftest.o" >build/Makefile
31948 modpost_flag=''
31949 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
31950 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
31951 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31952 (eval $ac_try) 2>&5
31953 ac_status=$?
31954 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31955 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
31956 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31957 (eval $ac_try) 2>&5
31958 ac_status=$?
31959 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31960 test $ac_status = 0; }; }; then :
31961
31962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31963 $as_echo "yes" >&6; }
31964
31965 $as_echo "#define HAVE_GET_DISK_RO 1" >>confdefs.h
31966
31967
31968 else
31969 $as_echo "$as_me: failed program was:" >&5
31970 sed 's/^/| /' conftest.$ac_ext >&5
31971
31972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31973 $as_echo "no" >&6; }
31974
31975
31976
31977 fi
31978 rm -Rf build
31979
31980
31981 EXTRA_KCFLAGS="$tmp_flags"
31982
31983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether get_gendisk() is available" >&5
31984 $as_echo_n "checking whether get_gendisk() is available... " >&6; }
31985
31986
31987
31988 cat confdefs.h - <<_ACEOF >conftest.c
31989
31990
31991 #include <linux/genhd.h>
31992
31993 int
31994 main (void)
31995 {
31996
31997 get_gendisk(0, NULL);
31998
31999 ;
32000 return 0;
32001 }
32002
32003 _ACEOF
32004
32005
32006
32007 cat - <<_ACEOF >conftest.h
32008
32009 _ACEOF
32010
32011
32012 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
32013 echo "obj-m := conftest.o" >build/Makefile
32014 modpost_flag=''
32015 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
32016 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
32017 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
32018 (eval $ac_try) 2>&5
32019 ac_status=$?
32020 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32021 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
32022 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
32023 (eval $ac_try) 2>&5
32024 ac_status=$?
32025 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32026 test $ac_status = 0; }; }; then :
32027 rc=0
32028 else
32029 $as_echo "$as_me: failed program was:" >&5
32030 sed 's/^/| /' conftest.$ac_ext >&5
32031 rc=1
32032
32033
32034 fi
32035 rm -Rf build
32036
32037
32038 if test $rc -ne 0; then :
32039
32040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32041 $as_echo "no" >&6; }
32042
32043 else
32044 if test "x$enable_linux_builtin" != xyes; then
32045
32046 grep -q -E '[[:space:]]get_gendisk[[:space:]]' \
32047 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
32048 rc=$?
32049 if test $rc -ne 0; then
32050 export=0
32051 for file in block/genhd.c; do
32052 grep -q -E "EXPORT_SYMBOL.*(get_gendisk)" \
32053 "$LINUX/$file" 2>/dev/null
32054 rc=$?
32055 if test $rc -eq 0; then
32056 export=1
32057 break;
32058 fi
32059 done
32060 if test $export -eq 0; then :
32061 rc=1
32062 else :
32063 rc=0
32064 fi
32065 else :
32066 rc=0
32067 fi
32068
32069 fi
32070 if test $rc -ne 0; then :
32071
32072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32073 $as_echo "no" >&6; }
32074
32075 else :
32076
32077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32078 $as_echo "yes" >&6; }
32079
32080 $as_echo "#define HAVE_GET_GENDISK 1" >>confdefs.h
32081
32082
32083 fi
32084 fi
32085
32086
32087
32088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether bio_set_op_attrs is available" >&5
32089 $as_echo_n "checking whether bio_set_op_attrs is available... " >&6; }
32090
32091
32092 cat confdefs.h - <<_ACEOF >conftest.c
32093
32094
32095 #include <linux/bio.h>
32096
32097 int
32098 main (void)
32099 {
32100
32101 struct bio *bio __attribute__ ((unused)) = NULL;
32102
32103 bio_set_op_attrs(bio, 0, 0);
32104
32105 ;
32106 return 0;
32107 }
32108
32109 _ACEOF
32110
32111
32112
32113 cat - <<_ACEOF >conftest.h
32114
32115 _ACEOF
32116
32117
32118 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
32119 echo "obj-m := conftest.o" >build/Makefile
32120 modpost_flag=''
32121 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
32122 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
32123 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
32124 (eval $ac_try) 2>&5
32125 ac_status=$?
32126 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32127 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
32128 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
32129 (eval $ac_try) 2>&5
32130 ac_status=$?
32131 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32132 test $ac_status = 0; }; }; then :
32133
32134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32135 $as_echo "yes" >&6; }
32136
32137 $as_echo "#define HAVE_BIO_SET_OP_ATTRS 1" >>confdefs.h
32138
32139
32140 else
32141 $as_echo "$as_me: failed program was:" >&5
32142 sed 's/^/| /' conftest.$ac_ext >&5
32143
32144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32145 $as_echo "no" >&6; }
32146
32147
32148
32149 fi
32150 rm -Rf build
32151
32152
32153
32154
32155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether generic_readlink is global" >&5
32156 $as_echo_n "checking whether generic_readlink is global... " >&6; }
32157
32158
32159 cat confdefs.h - <<_ACEOF >conftest.c
32160
32161
32162 #include <linux/fs.h>
32163
32164 int
32165 main (void)
32166 {
32167
32168 int i __attribute__ ((unused));
32169
32170 i = generic_readlink(NULL, NULL, 0);
32171
32172 ;
32173 return 0;
32174 }
32175
32176 _ACEOF
32177
32178
32179
32180 cat - <<_ACEOF >conftest.h
32181
32182 _ACEOF
32183
32184
32185 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
32186 echo "obj-m := conftest.o" >build/Makefile
32187 modpost_flag=''
32188 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
32189 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
32190 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
32191 (eval $ac_try) 2>&5
32192 ac_status=$?
32193 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32194 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
32195 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
32196 (eval $ac_try) 2>&5
32197 ac_status=$?
32198 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32199 test $ac_status = 0; }; }; then :
32200
32201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32202 $as_echo "yes" >&6; }
32203
32204 $as_echo "#define HAVE_GENERIC_READLINK 1" >>confdefs.h
32205
32206
32207 else
32208 $as_echo "$as_me: failed program was:" >&5
32209 sed 's/^/| /' conftest.$ac_ext >&5
32210
32211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32212 $as_echo "no" >&6; }
32213
32214
32215
32216 fi
32217 rm -Rf build
32218
32219
32220
32221
32222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ql->discard_granularity is available" >&5
32223 $as_echo_n "checking whether ql->discard_granularity is available... " >&6; }
32224
32225
32226 cat confdefs.h - <<_ACEOF >conftest.c
32227
32228
32229 #include <linux/blkdev.h>
32230
32231 int
32232 main (void)
32233 {
32234
32235 struct queue_limits ql __attribute__ ((unused));
32236
32237 ql.discard_granularity = 0;
32238
32239 ;
32240 return 0;
32241 }
32242
32243 _ACEOF
32244
32245
32246
32247 cat - <<_ACEOF >conftest.h
32248
32249 _ACEOF
32250
32251
32252 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
32253 echo "obj-m := conftest.o" >build/Makefile
32254 modpost_flag=''
32255 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
32256 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
32257 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
32258 (eval $ac_try) 2>&5
32259 ac_status=$?
32260 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32261 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
32262 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
32263 (eval $ac_try) 2>&5
32264 ac_status=$?
32265 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32266 test $ac_status = 0; }; }; then :
32267
32268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32269 $as_echo "yes" >&6; }
32270
32271 $as_echo "#define HAVE_DISCARD_GRANULARITY 1" >>confdefs.h
32272
32273
32274 else
32275 $as_echo "$as_me: failed program was:" >&5
32276 sed 's/^/| /' conftest.$ac_ext >&5
32277
32278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32279 $as_echo "no" >&6; }
32280
32281
32282
32283 fi
32284 rm -Rf build
32285
32286
32287
32288
32289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether super_block uses const struct xattr_handler" >&5
32290 $as_echo_n "checking whether super_block uses const struct xattr_handler... " >&6; }
32291
32292
32293 cat confdefs.h - <<_ACEOF >conftest.c
32294
32295
32296 #include <linux/fs.h>
32297 #include <linux/xattr.h>
32298
32299 const struct xattr_handler xattr_test_handler = {
32300 .prefix = "test",
32301 .get = NULL,
32302 .set = NULL,
32303 };
32304
32305 const struct xattr_handler *xattr_handlers[] = {
32306 &xattr_test_handler,
32307 };
32308
32309 const struct super_block sb __attribute__ ((unused)) = {
32310 .s_xattr = xattr_handlers,
32311 };
32312
32313 int
32314 main (void)
32315 {
32316
32317
32318 ;
32319 return 0;
32320 }
32321
32322 _ACEOF
32323
32324
32325
32326 cat - <<_ACEOF >conftest.h
32327
32328 _ACEOF
32329
32330
32331 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
32332 echo "obj-m := conftest.o" >build/Makefile
32333 modpost_flag=''
32334 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
32335 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
32336 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
32337 (eval $ac_try) 2>&5
32338 ac_status=$?
32339 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32340 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
32341 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
32342 (eval $ac_try) 2>&5
32343 ac_status=$?
32344 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32345 test $ac_status = 0; }; }; then :
32346
32347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32348 $as_echo "yes" >&6; }
32349
32350 $as_echo "#define HAVE_CONST_XATTR_HANDLER 1" >>confdefs.h
32351
32352
32353 else
32354 $as_echo "$as_me: failed program was:" >&5
32355 sed 's/^/| /' conftest.$ac_ext >&5
32356
32357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32358 $as_echo "no" >&6; }
32359
32360
32361
32362 fi
32363 rm -Rf build
32364
32365
32366
32367
32368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether xattr_handler has name" >&5
32369 $as_echo_n "checking whether xattr_handler has name... " >&6; }
32370
32371
32372 cat confdefs.h - <<_ACEOF >conftest.c
32373
32374
32375 #include <linux/xattr.h>
32376
32377 static const struct xattr_handler
32378 xops __attribute__ ((unused)) = {
32379 .name = XATTR_NAME_POSIX_ACL_ACCESS,
32380 };
32381
32382 int
32383 main (void)
32384 {
32385
32386
32387 ;
32388 return 0;
32389 }
32390
32391 _ACEOF
32392
32393
32394
32395 cat - <<_ACEOF >conftest.h
32396
32397 _ACEOF
32398
32399
32400 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
32401 echo "obj-m := conftest.o" >build/Makefile
32402 modpost_flag=''
32403 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
32404 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
32405 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
32406 (eval $ac_try) 2>&5
32407 ac_status=$?
32408 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32409 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
32410 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
32411 (eval $ac_try) 2>&5
32412 ac_status=$?
32413 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32414 test $ac_status = 0; }; }; then :
32415
32416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32417 $as_echo "yes" >&6; }
32418
32419 $as_echo "#define HAVE_XATTR_HANDLER_NAME 1" >>confdefs.h
32420
32421
32422 else
32423 $as_echo "$as_me: failed program was:" >&5
32424 sed 's/^/| /' conftest.$ac_ext >&5
32425
32426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32427 $as_echo "no" >&6; }
32428
32429
32430
32431 fi
32432 rm -Rf build
32433
32434
32435
32436
32437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether xattr_handler->get() wants both dentry and inode" >&5
32438 $as_echo_n "checking whether xattr_handler->get() wants both dentry and inode... " >&6; }
32439
32440
32441 cat confdefs.h - <<_ACEOF >conftest.c
32442
32443
32444 #include <linux/xattr.h>
32445
32446 int get(const struct xattr_handler *handler,
32447 struct dentry *dentry, struct inode *inode,
32448 const char *name, void *buffer, size_t size) { return 0; }
32449 static const struct xattr_handler
32450 xops __attribute__ ((unused)) = {
32451 .get = get,
32452 };
32453
32454 int
32455 main (void)
32456 {
32457
32458
32459 ;
32460 return 0;
32461 }
32462
32463 _ACEOF
32464
32465
32466
32467 cat - <<_ACEOF >conftest.h
32468
32469 _ACEOF
32470
32471
32472 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
32473 echo "obj-m := conftest.o" >build/Makefile
32474 modpost_flag=''
32475 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
32476 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
32477 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
32478 (eval $ac_try) 2>&5
32479 ac_status=$?
32480 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32481 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
32482 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
32483 (eval $ac_try) 2>&5
32484 ac_status=$?
32485 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32486 test $ac_status = 0; }; }; then :
32487
32488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32489 $as_echo "yes" >&6; }
32490
32491 $as_echo "#define HAVE_XATTR_GET_DENTRY_INODE 1" >>confdefs.h
32492
32493
32494 else
32495 $as_echo "$as_me: failed program was:" >&5
32496 sed 's/^/| /' conftest.$ac_ext >&5
32497
32498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32499 $as_echo "no" >&6; }
32500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether xattr_handler->get() wants xattr_handler" >&5
32501 $as_echo_n "checking whether xattr_handler->get() wants xattr_handler... " >&6; }
32502
32503
32504 cat confdefs.h - <<_ACEOF >conftest.c
32505
32506
32507 #include <linux/xattr.h>
32508
32509 int get(const struct xattr_handler *handler,
32510 struct dentry *dentry, const char *name,
32511 void *buffer, size_t size) { return 0; }
32512 static const struct xattr_handler
32513 xops __attribute__ ((unused)) = {
32514 .get = get,
32515 };
32516
32517 int
32518 main (void)
32519 {
32520
32521
32522 ;
32523 return 0;
32524 }
32525
32526 _ACEOF
32527
32528
32529
32530 cat - <<_ACEOF >conftest.h
32531
32532 _ACEOF
32533
32534
32535 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
32536 echo "obj-m := conftest.o" >build/Makefile
32537 modpost_flag=''
32538 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
32539 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
32540 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
32541 (eval $ac_try) 2>&5
32542 ac_status=$?
32543 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32544 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
32545 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
32546 (eval $ac_try) 2>&5
32547 ac_status=$?
32548 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32549 test $ac_status = 0; }; }; then :
32550
32551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32552 $as_echo "yes" >&6; }
32553
32554 $as_echo "#define HAVE_XATTR_GET_HANDLER 1" >>confdefs.h
32555
32556
32557 else
32558 $as_echo "$as_me: failed program was:" >&5
32559 sed 's/^/| /' conftest.$ac_ext >&5
32560
32561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32562 $as_echo "no" >&6; }
32563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether xattr_handler->get() wants dentry" >&5
32564 $as_echo_n "checking whether xattr_handler->get() wants dentry... " >&6; }
32565
32566
32567 cat confdefs.h - <<_ACEOF >conftest.c
32568
32569
32570 #include <linux/xattr.h>
32571
32572 int get(struct dentry *dentry, const char *name,
32573 void *buffer, size_t size, int handler_flags)
32574 { return 0; }
32575 static const struct xattr_handler
32576 xops __attribute__ ((unused)) = {
32577 .get = get,
32578 };
32579
32580 int
32581 main (void)
32582 {
32583
32584
32585 ;
32586 return 0;
32587 }
32588
32589 _ACEOF
32590
32591
32592
32593 cat - <<_ACEOF >conftest.h
32594
32595 _ACEOF
32596
32597
32598 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
32599 echo "obj-m := conftest.o" >build/Makefile
32600 modpost_flag=''
32601 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
32602 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
32603 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
32604 (eval $ac_try) 2>&5
32605 ac_status=$?
32606 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32607 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
32608 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
32609 (eval $ac_try) 2>&5
32610 ac_status=$?
32611 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32612 test $ac_status = 0; }; }; then :
32613
32614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32615 $as_echo "yes" >&6; }
32616
32617 $as_echo "#define HAVE_XATTR_GET_DENTRY 1" >>confdefs.h
32618
32619
32620 else
32621 $as_echo "$as_me: failed program was:" >&5
32622 sed 's/^/| /' conftest.$ac_ext >&5
32623
32624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32625 $as_echo "no" >&6; }
32626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether xattr_handler->get() wants inode" >&5
32627 $as_echo_n "checking whether xattr_handler->get() wants inode... " >&6; }
32628
32629
32630 cat confdefs.h - <<_ACEOF >conftest.c
32631
32632
32633 #include <linux/xattr.h>
32634
32635 int get(struct inode *ip, const char *name,
32636 void *buffer, size_t size) { return 0; }
32637 static const struct xattr_handler
32638 xops __attribute__ ((unused)) = {
32639 .get = get,
32640 };
32641
32642 int
32643 main (void)
32644 {
32645
32646
32647 ;
32648 return 0;
32649 }
32650
32651 _ACEOF
32652
32653
32654
32655 cat - <<_ACEOF >conftest.h
32656
32657 _ACEOF
32658
32659
32660 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
32661 echo "obj-m := conftest.o" >build/Makefile
32662 modpost_flag=''
32663 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
32664 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
32665 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
32666 (eval $ac_try) 2>&5
32667 ac_status=$?
32668 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32669 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
32670 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
32671 (eval $ac_try) 2>&5
32672 ac_status=$?
32673 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32674 test $ac_status = 0; }; }; then :
32675
32676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32677 $as_echo "yes" >&6; }
32678
32679 $as_echo "#define HAVE_XATTR_GET_INODE 1" >>confdefs.h
32680
32681
32682 else
32683 $as_echo "$as_me: failed program was:" >&5
32684 sed 's/^/| /' conftest.$ac_ext >&5
32685
32686 as_fn_error $? "no; please file a bug report" "$LINENO" 5
32687
32688
32689
32690 fi
32691 rm -Rf build
32692
32693
32694
32695
32696
32697 fi
32698 rm -Rf build
32699
32700
32701
32702
32703
32704 fi
32705 rm -Rf build
32706
32707
32708
32709
32710
32711 fi
32712 rm -Rf build
32713
32714
32715
32716
32717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether xattr_handler->set() wants both dentry and inode" >&5
32718 $as_echo_n "checking whether xattr_handler->set() wants both dentry and inode... " >&6; }
32719
32720
32721 cat confdefs.h - <<_ACEOF >conftest.c
32722
32723
32724 #include <linux/xattr.h>
32725
32726 int set(const struct xattr_handler *handler,
32727 struct dentry *dentry, struct inode *inode,
32728 const char *name, const void *buffer,
32729 size_t size, int flags)
32730 { return 0; }
32731 static const struct xattr_handler
32732 xops __attribute__ ((unused)) = {
32733 .set = set,
32734 };
32735
32736 int
32737 main (void)
32738 {
32739
32740
32741 ;
32742 return 0;
32743 }
32744
32745 _ACEOF
32746
32747
32748
32749 cat - <<_ACEOF >conftest.h
32750
32751 _ACEOF
32752
32753
32754 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
32755 echo "obj-m := conftest.o" >build/Makefile
32756 modpost_flag=''
32757 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
32758 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
32759 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
32760 (eval $ac_try) 2>&5
32761 ac_status=$?
32762 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32763 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
32764 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
32765 (eval $ac_try) 2>&5
32766 ac_status=$?
32767 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32768 test $ac_status = 0; }; }; then :
32769
32770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32771 $as_echo "yes" >&6; }
32772
32773 $as_echo "#define HAVE_XATTR_SET_DENTRY_INODE 1" >>confdefs.h
32774
32775
32776 else
32777 $as_echo "$as_me: failed program was:" >&5
32778 sed 's/^/| /' conftest.$ac_ext >&5
32779
32780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32781 $as_echo "no" >&6; }
32782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether xattr_handler->set() wants xattr_handler" >&5
32783 $as_echo_n "checking whether xattr_handler->set() wants xattr_handler... " >&6; }
32784
32785
32786 cat confdefs.h - <<_ACEOF >conftest.c
32787
32788
32789 #include <linux/xattr.h>
32790
32791 int set(const struct xattr_handler *handler,
32792 struct dentry *dentry, const char *name,
32793 const void *buffer, size_t size, int flags)
32794 { return 0; }
32795 static const struct xattr_handler
32796 xops __attribute__ ((unused)) = {
32797 .set = set,
32798 };
32799
32800 int
32801 main (void)
32802 {
32803
32804
32805 ;
32806 return 0;
32807 }
32808
32809 _ACEOF
32810
32811
32812
32813 cat - <<_ACEOF >conftest.h
32814
32815 _ACEOF
32816
32817
32818 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
32819 echo "obj-m := conftest.o" >build/Makefile
32820 modpost_flag=''
32821 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
32822 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
32823 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
32824 (eval $ac_try) 2>&5
32825 ac_status=$?
32826 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32827 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
32828 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
32829 (eval $ac_try) 2>&5
32830 ac_status=$?
32831 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32832 test $ac_status = 0; }; }; then :
32833
32834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32835 $as_echo "yes" >&6; }
32836
32837 $as_echo "#define HAVE_XATTR_SET_HANDLER 1" >>confdefs.h
32838
32839
32840 else
32841 $as_echo "$as_me: failed program was:" >&5
32842 sed 's/^/| /' conftest.$ac_ext >&5
32843
32844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32845 $as_echo "no" >&6; }
32846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether xattr_handler->set() wants dentry" >&5
32847 $as_echo_n "checking whether xattr_handler->set() wants dentry... " >&6; }
32848
32849
32850 cat confdefs.h - <<_ACEOF >conftest.c
32851
32852
32853 #include <linux/xattr.h>
32854
32855 int set(struct dentry *dentry, const char *name,
32856 const void *buffer, size_t size, int flags,
32857 int handler_flags) { return 0; }
32858 static const struct xattr_handler
32859 xops __attribute__ ((unused)) = {
32860 .set = set,
32861 };
32862
32863 int
32864 main (void)
32865 {
32866
32867
32868 ;
32869 return 0;
32870 }
32871
32872 _ACEOF
32873
32874
32875
32876 cat - <<_ACEOF >conftest.h
32877
32878 _ACEOF
32879
32880
32881 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
32882 echo "obj-m := conftest.o" >build/Makefile
32883 modpost_flag=''
32884 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
32885 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
32886 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
32887 (eval $ac_try) 2>&5
32888 ac_status=$?
32889 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32890 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
32891 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
32892 (eval $ac_try) 2>&5
32893 ac_status=$?
32894 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32895 test $ac_status = 0; }; }; then :
32896
32897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32898 $as_echo "yes" >&6; }
32899
32900 $as_echo "#define HAVE_XATTR_SET_DENTRY 1" >>confdefs.h
32901
32902
32903 else
32904 $as_echo "$as_me: failed program was:" >&5
32905 sed 's/^/| /' conftest.$ac_ext >&5
32906
32907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32908 $as_echo "no" >&6; }
32909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether xattr_handler->set() wants inode" >&5
32910 $as_echo_n "checking whether xattr_handler->set() wants inode... " >&6; }
32911
32912
32913 cat confdefs.h - <<_ACEOF >conftest.c
32914
32915
32916 #include <linux/xattr.h>
32917
32918 int set(struct inode *ip, const char *name,
32919 const void *buffer, size_t size, int flags)
32920 { return 0; }
32921 static const struct xattr_handler
32922 xops __attribute__ ((unused)) = {
32923 .set = set,
32924 };
32925
32926 int
32927 main (void)
32928 {
32929
32930
32931 ;
32932 return 0;
32933 }
32934
32935 _ACEOF
32936
32937
32938
32939 cat - <<_ACEOF >conftest.h
32940
32941 _ACEOF
32942
32943
32944 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
32945 echo "obj-m := conftest.o" >build/Makefile
32946 modpost_flag=''
32947 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
32948 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
32949 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
32950 (eval $ac_try) 2>&5
32951 ac_status=$?
32952 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32953 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
32954 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
32955 (eval $ac_try) 2>&5
32956 ac_status=$?
32957 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32958 test $ac_status = 0; }; }; then :
32959
32960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32961 $as_echo "yes" >&6; }
32962
32963 $as_echo "#define HAVE_XATTR_SET_INODE 1" >>confdefs.h
32964
32965
32966 else
32967 $as_echo "$as_me: failed program was:" >&5
32968 sed 's/^/| /' conftest.$ac_ext >&5
32969
32970 as_fn_error $? "no; please file a bug report" "$LINENO" 5
32971
32972
32973
32974 fi
32975 rm -Rf build
32976
32977
32978
32979
32980
32981 fi
32982 rm -Rf build
32983
32984
32985
32986
32987
32988 fi
32989 rm -Rf build
32990
32991
32992
32993
32994
32995 fi
32996 rm -Rf build
32997
32998
32999
33000
33001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether xattr_handler->list() wants simple" >&5
33002 $as_echo_n "checking whether xattr_handler->list() wants simple... " >&6; }
33003
33004
33005 cat confdefs.h - <<_ACEOF >conftest.c
33006
33007
33008 #include <linux/xattr.h>
33009
33010 bool list(struct dentry *dentry) { return 0; }
33011 static const struct xattr_handler
33012 xops __attribute__ ((unused)) = {
33013 .list = list,
33014 };
33015
33016 int
33017 main (void)
33018 {
33019
33020
33021 ;
33022 return 0;
33023 }
33024
33025 _ACEOF
33026
33027
33028
33029 cat - <<_ACEOF >conftest.h
33030
33031 _ACEOF
33032
33033
33034 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
33035 echo "obj-m := conftest.o" >build/Makefile
33036 modpost_flag=''
33037 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
33038 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
33039 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
33040 (eval $ac_try) 2>&5
33041 ac_status=$?
33042 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
33043 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
33044 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
33045 (eval $ac_try) 2>&5
33046 ac_status=$?
33047 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
33048 test $ac_status = 0; }; }; then :
33049
33050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33051 $as_echo "yes" >&6; }
33052
33053 $as_echo "#define HAVE_XATTR_LIST_SIMPLE 1" >>confdefs.h
33054
33055
33056 else
33057 $as_echo "$as_me: failed program was:" >&5
33058 sed 's/^/| /' conftest.$ac_ext >&5
33059
33060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33061 $as_echo "no" >&6; }
33062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether xattr_handler->list() wants xattr_handler" >&5
33063 $as_echo_n "checking whether xattr_handler->list() wants xattr_handler... " >&6; }
33064
33065
33066 cat confdefs.h - <<_ACEOF >conftest.c
33067
33068
33069 #include <linux/xattr.h>
33070
33071 size_t list(const struct xattr_handler *handler,
33072 struct dentry *dentry, char *list, size_t list_size,
33073 const char *name, size_t name_len) { return 0; }
33074 static const struct xattr_handler
33075 xops __attribute__ ((unused)) = {
33076 .list = list,
33077 };
33078
33079 int
33080 main (void)
33081 {
33082
33083
33084 ;
33085 return 0;
33086 }
33087
33088 _ACEOF
33089
33090
33091
33092 cat - <<_ACEOF >conftest.h
33093
33094 _ACEOF
33095
33096
33097 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
33098 echo "obj-m := conftest.o" >build/Makefile
33099 modpost_flag=''
33100 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
33101 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
33102 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
33103 (eval $ac_try) 2>&5
33104 ac_status=$?
33105 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
33106 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
33107 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
33108 (eval $ac_try) 2>&5
33109 ac_status=$?
33110 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
33111 test $ac_status = 0; }; }; then :
33112
33113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33114 $as_echo "yes" >&6; }
33115
33116 $as_echo "#define HAVE_XATTR_LIST_HANDLER 1" >>confdefs.h
33117
33118
33119 else
33120 $as_echo "$as_me: failed program was:" >&5
33121 sed 's/^/| /' conftest.$ac_ext >&5
33122
33123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33124 $as_echo "no" >&6; }
33125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether xattr_handler->list() wants dentry" >&5
33126 $as_echo_n "checking whether xattr_handler->list() wants dentry... " >&6; }
33127
33128
33129 cat confdefs.h - <<_ACEOF >conftest.c
33130
33131
33132 #include <linux/xattr.h>
33133
33134 size_t list(struct dentry *dentry,
33135 char *list, size_t list_size,
33136 const char *name, size_t name_len,
33137 int handler_flags) { return 0; }
33138 static const struct xattr_handler
33139 xops __attribute__ ((unused)) = {
33140 .list = list,
33141 };
33142
33143 int
33144 main (void)
33145 {
33146
33147
33148 ;
33149 return 0;
33150 }
33151
33152 _ACEOF
33153
33154
33155
33156 cat - <<_ACEOF >conftest.h
33157
33158 _ACEOF
33159
33160
33161 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
33162 echo "obj-m := conftest.o" >build/Makefile
33163 modpost_flag=''
33164 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
33165 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
33166 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
33167 (eval $ac_try) 2>&5
33168 ac_status=$?
33169 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
33170 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
33171 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
33172 (eval $ac_try) 2>&5
33173 ac_status=$?
33174 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
33175 test $ac_status = 0; }; }; then :
33176
33177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33178 $as_echo "yes" >&6; }
33179
33180 $as_echo "#define HAVE_XATTR_LIST_DENTRY 1" >>confdefs.h
33181
33182
33183 else
33184 $as_echo "$as_me: failed program was:" >&5
33185 sed 's/^/| /' conftest.$ac_ext >&5
33186
33187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33188 $as_echo "no" >&6; }
33189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether xattr_handler->list() wants inode" >&5
33190 $as_echo_n "checking whether xattr_handler->list() wants inode... " >&6; }
33191
33192
33193 cat confdefs.h - <<_ACEOF >conftest.c
33194
33195
33196 #include <linux/xattr.h>
33197
33198 size_t list(struct inode *ip, char *lst,
33199 size_t list_size, const char *name,
33200 size_t name_len) { return 0; }
33201 static const struct xattr_handler
33202 xops __attribute__ ((unused)) = {
33203 .list = list,
33204 };
33205
33206 int
33207 main (void)
33208 {
33209
33210
33211 ;
33212 return 0;
33213 }
33214
33215 _ACEOF
33216
33217
33218
33219 cat - <<_ACEOF >conftest.h
33220
33221 _ACEOF
33222
33223
33224 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
33225 echo "obj-m := conftest.o" >build/Makefile
33226 modpost_flag=''
33227 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
33228 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
33229 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
33230 (eval $ac_try) 2>&5
33231 ac_status=$?
33232 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
33233 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
33234 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
33235 (eval $ac_try) 2>&5
33236 ac_status=$?
33237 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
33238 test $ac_status = 0; }; }; then :
33239
33240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33241 $as_echo "yes" >&6; }
33242
33243 $as_echo "#define HAVE_XATTR_LIST_INODE 1" >>confdefs.h
33244
33245
33246 else
33247 $as_echo "$as_me: failed program was:" >&5
33248 sed 's/^/| /' conftest.$ac_ext >&5
33249
33250 as_fn_error $? "no; please file a bug report" "$LINENO" 5
33251
33252
33253
33254 fi
33255 rm -Rf build
33256
33257
33258
33259
33260
33261 fi
33262 rm -Rf build
33263
33264
33265
33266
33267
33268 fi
33269 rm -Rf build
33270
33271
33272
33273
33274
33275 fi
33276 rm -Rf build
33277
33278
33279
33280
33281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether inode_owner_or_capable() exists" >&5
33282 $as_echo_n "checking whether inode_owner_or_capable() exists... " >&6; }
33283
33284
33285 cat confdefs.h - <<_ACEOF >conftest.c
33286
33287
33288 #include <linux/fs.h>
33289
33290 int
33291 main (void)
33292 {
33293
33294 struct inode *ip = NULL;
33295 (void) inode_owner_or_capable(ip);
33296
33297 ;
33298 return 0;
33299 }
33300
33301 _ACEOF
33302
33303
33304
33305 cat - <<_ACEOF >conftest.h
33306
33307 _ACEOF
33308
33309
33310 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
33311 echo "obj-m := conftest.o" >build/Makefile
33312 modpost_flag=''
33313 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
33314 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
33315 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
33316 (eval $ac_try) 2>&5
33317 ac_status=$?
33318 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
33319 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
33320 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
33321 (eval $ac_try) 2>&5
33322 ac_status=$?
33323 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
33324 test $ac_status = 0; }; }; then :
33325
33326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33327 $as_echo "yes" >&6; }
33328
33329 $as_echo "#define HAVE_INODE_OWNER_OR_CAPABLE 1" >>confdefs.h
33330
33331
33332 else
33333 $as_echo "$as_me: failed program was:" >&5
33334 sed 's/^/| /' conftest.$ac_ext >&5
33335
33336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33337 $as_echo "no" >&6; }
33338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether is_owner_or_cap() exists" >&5
33339 $as_echo_n "checking whether is_owner_or_cap() exists... " >&6; }
33340
33341
33342 cat confdefs.h - <<_ACEOF >conftest.c
33343
33344
33345 #include <linux/fs.h>
33346 #include <linux/sched.h>
33347
33348 int
33349 main (void)
33350 {
33351
33352 struct inode *ip = NULL;
33353 (void) is_owner_or_cap(ip);
33354
33355 ;
33356 return 0;
33357 }
33358
33359 _ACEOF
33360
33361
33362
33363 cat - <<_ACEOF >conftest.h
33364
33365 _ACEOF
33366
33367
33368 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
33369 echo "obj-m := conftest.o" >build/Makefile
33370 modpost_flag=''
33371 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
33372 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
33373 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
33374 (eval $ac_try) 2>&5
33375 ac_status=$?
33376 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
33377 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
33378 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
33379 (eval $ac_try) 2>&5
33380 ac_status=$?
33381 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
33382 test $ac_status = 0; }; }; then :
33383
33384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33385 $as_echo "yes" >&6; }
33386
33387 $as_echo "#define HAVE_IS_OWNER_OR_CAP 1" >>confdefs.h
33388
33389
33390 else
33391 $as_echo "$as_me: failed program was:" >&5
33392 sed 's/^/| /' conftest.$ac_ext >&5
33393
33394 as_fn_error $? "no - Please file a bug report at
33395 https://github.com/zfsonlinux/zfs/issues/new" "$LINENO" 5
33396
33397
33398
33399 fi
33400 rm -Rf build
33401
33402
33403
33404
33405
33406 fi
33407 rm -Rf build
33408
33409
33410
33411
33412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether posix_acl_from_xattr() needs user_ns" >&5
33413 $as_echo_n "checking whether posix_acl_from_xattr() needs user_ns... " >&6; }
33414
33415
33416 cat confdefs.h - <<_ACEOF >conftest.c
33417
33418
33419 #include <linux/cred.h>
33420 #include <linux/fs.h>
33421 #include <linux/posix_acl_xattr.h>
33422
33423 int
33424 main (void)
33425 {
33426
33427 posix_acl_from_xattr(&init_user_ns, NULL, 0);
33428
33429 ;
33430 return 0;
33431 }
33432
33433 _ACEOF
33434
33435
33436
33437 cat - <<_ACEOF >conftest.h
33438
33439 _ACEOF
33440
33441
33442 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
33443 echo "obj-m := conftest.o" >build/Makefile
33444 modpost_flag=''
33445 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
33446 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
33447 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
33448 (eval $ac_try) 2>&5
33449 ac_status=$?
33450 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
33451 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
33452 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
33453 (eval $ac_try) 2>&5
33454 ac_status=$?
33455 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
33456 test $ac_status = 0; }; }; then :
33457
33458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33459 $as_echo "yes" >&6; }
33460
33461 $as_echo "#define HAVE_POSIX_ACL_FROM_XATTR_USERNS 1" >>confdefs.h
33462
33463
33464 else
33465 $as_echo "$as_me: failed program was:" >&5
33466 sed 's/^/| /' conftest.$ac_ext >&5
33467
33468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33469 $as_echo "no" >&6; }
33470
33471
33472
33473 fi
33474 rm -Rf build
33475
33476
33477
33478
33479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether posix_acl_release() is available" >&5
33480 $as_echo_n "checking whether posix_acl_release() is available... " >&6; }
33481
33482
33483 cat confdefs.h - <<_ACEOF >conftest.c
33484
33485
33486 #include <linux/cred.h>
33487 #include <linux/fs.h>
33488 #include <linux/posix_acl.h>
33489
33490 int
33491 main (void)
33492 {
33493
33494 struct posix_acl* tmp = posix_acl_alloc(1, 0);
33495 posix_acl_release(tmp);
33496
33497 ;
33498 return 0;
33499 }
33500
33501 _ACEOF
33502
33503
33504
33505 cat - <<_ACEOF >conftest.h
33506
33507 _ACEOF
33508
33509
33510 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
33511 echo "obj-m := conftest.o" >build/Makefile
33512 modpost_flag=''
33513 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
33514 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
33515 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
33516 (eval $ac_try) 2>&5
33517 ac_status=$?
33518 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
33519 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
33520 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
33521 (eval $ac_try) 2>&5
33522 ac_status=$?
33523 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
33524 test $ac_status = 0; }; }; then :
33525
33526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33527 $as_echo "yes" >&6; }
33528
33529 $as_echo "#define HAVE_POSIX_ACL_RELEASE 1" >>confdefs.h
33530
33531
33532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether posix_acl_release() is GPL-only" >&5
33533 $as_echo_n "checking whether posix_acl_release() is GPL-only... " >&6; }
33534
33535
33536 cat confdefs.h - <<_ACEOF >conftest.c
33537
33538
33539 #include <linux/module.h>
33540 #include <linux/cred.h>
33541 #include <linux/fs.h>
33542 #include <linux/posix_acl.h>
33543
33544 MODULE_LICENSE("$ZFS_META_LICENSE");
33545
33546 int
33547 main (void)
33548 {
33549
33550 struct posix_acl* tmp = posix_acl_alloc(1, 0);
33551 posix_acl_release(tmp);
33552
33553 ;
33554 return 0;
33555 }
33556
33557 _ACEOF
33558
33559
33560
33561 cat - <<_ACEOF >conftest.h
33562
33563 _ACEOF
33564
33565
33566 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
33567 echo "obj-m := conftest.o" >build/Makefile
33568 modpost_flag=''
33569 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
33570 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
33571 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
33572 (eval $ac_try) 2>&5
33573 ac_status=$?
33574 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
33575 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
33576 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
33577 (eval $ac_try) 2>&5
33578 ac_status=$?
33579 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
33580 test $ac_status = 0; }; }; then :
33581
33582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33583 $as_echo "no" >&6; }
33584
33585 else
33586 $as_echo "$as_me: failed program was:" >&5
33587 sed 's/^/| /' conftest.$ac_ext >&5
33588
33589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33590 $as_echo "yes" >&6; }
33591
33592 $as_echo "#define HAVE_POSIX_ACL_RELEASE_GPL_ONLY 1" >>confdefs.h
33593
33594
33595
33596
33597 fi
33598 rm -Rf build
33599
33600
33601
33602 else
33603 $as_echo "$as_me: failed program was:" >&5
33604 sed 's/^/| /' conftest.$ac_ext >&5
33605
33606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33607 $as_echo "no" >&6; }
33608
33609
33610
33611 fi
33612 rm -Rf build
33613
33614
33615
33616
33617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether set_cached_acl() is usable" >&5
33618 $as_echo_n "checking whether set_cached_acl() is usable... " >&6; }
33619
33620
33621 cat confdefs.h - <<_ACEOF >conftest.c
33622
33623
33624 #include <linux/module.h>
33625 #include <linux/cred.h>
33626 #include <linux/fs.h>
33627 #include <linux/posix_acl.h>
33628
33629 MODULE_LICENSE("$ZFS_META_LICENSE");
33630
33631 int
33632 main (void)
33633 {
33634
33635 struct inode *ip = NULL;
33636 struct posix_acl *acl = posix_acl_alloc(1, 0);
33637 set_cached_acl(ip, ACL_TYPE_ACCESS, acl);
33638 forget_cached_acl(ip, ACL_TYPE_ACCESS);
33639
33640 ;
33641 return 0;
33642 }
33643
33644 _ACEOF
33645
33646
33647
33648 cat - <<_ACEOF >conftest.h
33649
33650 _ACEOF
33651
33652
33653 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
33654 echo "obj-m := conftest.o" >build/Makefile
33655 modpost_flag=''
33656 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
33657 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
33658 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
33659 (eval $ac_try) 2>&5
33660 ac_status=$?
33661 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
33662 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
33663 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
33664 (eval $ac_try) 2>&5
33665 ac_status=$?
33666 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
33667 test $ac_status = 0; }; }; then :
33668
33669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33670 $as_echo "yes" >&6; }
33671
33672 $as_echo "#define HAVE_SET_CACHED_ACL_USABLE 1" >>confdefs.h
33673
33674
33675 else
33676 $as_echo "$as_me: failed program was:" >&5
33677 sed 's/^/| /' conftest.$ac_ext >&5
33678
33679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33680 $as_echo "no" >&6; }
33681
33682
33683
33684 fi
33685 rm -Rf build
33686
33687
33688
33689
33690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether posix_acl_chmod exists" >&5
33691 $as_echo_n "checking whether posix_acl_chmod exists... " >&6; }
33692
33693
33694 cat confdefs.h - <<_ACEOF >conftest.c
33695
33696
33697 #include <linux/fs.h>
33698 #include <linux/posix_acl.h>
33699
33700 int
33701 main (void)
33702 {
33703
33704 posix_acl_chmod(NULL, 0, 0)
33705
33706 ;
33707 return 0;
33708 }
33709
33710 _ACEOF
33711
33712
33713
33714 cat - <<_ACEOF >conftest.h
33715
33716 _ACEOF
33717
33718
33719 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
33720 echo "obj-m := conftest.o" >build/Makefile
33721 modpost_flag=''
33722 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
33723 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
33724 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
33725 (eval $ac_try) 2>&5
33726 ac_status=$?
33727 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
33728 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
33729 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
33730 (eval $ac_try) 2>&5
33731 ac_status=$?
33732 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
33733 test $ac_status = 0; }; }; then :
33734
33735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33736 $as_echo "yes" >&6; }
33737
33738 $as_echo "#define HAVE_POSIX_ACL_CHMOD 1" >>confdefs.h
33739
33740
33741 else
33742 $as_echo "$as_me: failed program was:" >&5
33743 sed 's/^/| /' conftest.$ac_ext >&5
33744
33745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33746 $as_echo "no" >&6; }
33747
33748
33749
33750 fi
33751 rm -Rf build
33752
33753
33754
33755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __posix_acl_chmod exists" >&5
33756 $as_echo_n "checking whether __posix_acl_chmod exists... " >&6; }
33757
33758
33759 cat confdefs.h - <<_ACEOF >conftest.c
33760
33761
33762 #include <linux/fs.h>
33763 #include <linux/posix_acl.h>
33764
33765 int
33766 main (void)
33767 {
33768
33769 __posix_acl_chmod(NULL, 0, 0)
33770
33771 ;
33772 return 0;
33773 }
33774
33775 _ACEOF
33776
33777
33778
33779 cat - <<_ACEOF >conftest.h
33780
33781 _ACEOF
33782
33783
33784 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
33785 echo "obj-m := conftest.o" >build/Makefile
33786 modpost_flag=''
33787 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
33788 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
33789 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
33790 (eval $ac_try) 2>&5
33791 ac_status=$?
33792 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
33793 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
33794 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
33795 (eval $ac_try) 2>&5
33796 ac_status=$?
33797 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
33798 test $ac_status = 0; }; }; then :
33799
33800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33801 $as_echo "yes" >&6; }
33802
33803 $as_echo "#define HAVE___POSIX_ACL_CHMOD 1" >>confdefs.h
33804
33805
33806 else
33807 $as_echo "$as_me: failed program was:" >&5
33808 sed 's/^/| /' conftest.$ac_ext >&5
33809
33810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33811 $as_echo "no" >&6; }
33812
33813
33814
33815 fi
33816 rm -Rf build
33817
33818
33819
33820
33821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether posix_acl_equiv_mode() wants umode_t" >&5
33822 $as_echo_n "checking whether posix_acl_equiv_mode() wants umode_t... " >&6; }
33823
33824
33825 cat confdefs.h - <<_ACEOF >conftest.c
33826
33827
33828 #include <linux/fs.h>
33829 #include <linux/posix_acl.h>
33830
33831 int
33832 main (void)
33833 {
33834
33835 umode_t tmp;
33836 posix_acl_equiv_mode(NULL,&tmp);
33837
33838 ;
33839 return 0;
33840 }
33841
33842 _ACEOF
33843
33844
33845
33846 cat - <<_ACEOF >conftest.h
33847
33848 _ACEOF
33849
33850
33851 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
33852 echo "obj-m := conftest.o" >build/Makefile
33853 modpost_flag=''
33854 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
33855 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
33856 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
33857 (eval $ac_try) 2>&5
33858 ac_status=$?
33859 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
33860 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
33861 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
33862 (eval $ac_try) 2>&5
33863 ac_status=$?
33864 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
33865 test $ac_status = 0; }; }; then :
33866
33867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33868 $as_echo "yes" >&6; }
33869
33870 $as_echo "#define HAVE_POSIX_ACL_EQUIV_MODE_UMODE_T 1" >>confdefs.h
33871
33872
33873 else
33874 $as_echo "$as_me: failed program was:" >&5
33875 sed 's/^/| /' conftest.$ac_ext >&5
33876
33877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33878 $as_echo "no" >&6; }
33879
33880
33881
33882 fi
33883 rm -Rf build
33884
33885
33886
33887
33888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether posix_acl_valid() wants user namespace" >&5
33889 $as_echo_n "checking whether posix_acl_valid() wants user namespace... " >&6; }
33890
33891
33892 cat confdefs.h - <<_ACEOF >conftest.c
33893
33894
33895 #include <linux/fs.h>
33896 #include <linux/posix_acl.h>
33897
33898 int
33899 main (void)
33900 {
33901
33902 struct user_namespace *user_ns = NULL;
33903 const struct posix_acl *acl = NULL;
33904 int error;
33905
33906 error = posix_acl_valid(user_ns, acl);
33907
33908 ;
33909 return 0;
33910 }
33911
33912 _ACEOF
33913
33914
33915
33916 cat - <<_ACEOF >conftest.h
33917
33918 _ACEOF
33919
33920
33921 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
33922 echo "obj-m := conftest.o" >build/Makefile
33923 modpost_flag=''
33924 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
33925 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
33926 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
33927 (eval $ac_try) 2>&5
33928 ac_status=$?
33929 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
33930 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
33931 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
33932 (eval $ac_try) 2>&5
33933 ac_status=$?
33934 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
33935 test $ac_status = 0; }; }; then :
33936
33937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33938 $as_echo "yes" >&6; }
33939
33940 $as_echo "#define HAVE_POSIX_ACL_VALID_WITH_NS 1" >>confdefs.h
33941
33942
33943 else
33944 $as_echo "$as_me: failed program was:" >&5
33945 sed 's/^/| /' conftest.$ac_ext >&5
33946
33947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33948 $as_echo "no" >&6; }
33949
33950
33951
33952 fi
33953 rm -Rf build
33954
33955
33956
33957
33958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->permission() exists" >&5
33959 $as_echo_n "checking whether iops->permission() exists... " >&6; }
33960
33961
33962 cat confdefs.h - <<_ACEOF >conftest.c
33963
33964
33965 #include <linux/fs.h>
33966
33967 int permission_fn(struct inode *inode, int mask) { return 0; }
33968
33969 static const struct inode_operations
33970 iops __attribute__ ((unused)) = {
33971 .permission = permission_fn,
33972 };
33973
33974 int
33975 main (void)
33976 {
33977
33978
33979 ;
33980 return 0;
33981 }
33982
33983 _ACEOF
33984
33985
33986
33987 cat - <<_ACEOF >conftest.h
33988
33989 _ACEOF
33990
33991
33992 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
33993 echo "obj-m := conftest.o" >build/Makefile
33994 modpost_flag=''
33995 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
33996 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
33997 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
33998 (eval $ac_try) 2>&5
33999 ac_status=$?
34000 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
34001 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
34002 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
34003 (eval $ac_try) 2>&5
34004 ac_status=$?
34005 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
34006 test $ac_status = 0; }; }; then :
34007
34008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34009 $as_echo "yes" >&6; }
34010
34011 $as_echo "#define HAVE_PERMISSION 1" >>confdefs.h
34012
34013
34014 else
34015 $as_echo "$as_me: failed program was:" >&5
34016 sed 's/^/| /' conftest.$ac_ext >&5
34017
34018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34019 $as_echo "no" >&6; }
34020
34021
34022
34023 fi
34024 rm -Rf build
34025
34026
34027
34028
34029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->permission() wants nameidata" >&5
34030 $as_echo_n "checking whether iops->permission() wants nameidata... " >&6; }
34031
34032
34033 cat confdefs.h - <<_ACEOF >conftest.c
34034
34035
34036 #include <linux/fs.h>
34037
34038 int permission_fn(struct inode *inode, int mask,
34039 struct nameidata *nd) { return 0; }
34040
34041 static const struct inode_operations
34042 iops __attribute__ ((unused)) = {
34043 .permission = permission_fn,
34044 };
34045
34046 int
34047 main (void)
34048 {
34049
34050
34051 ;
34052 return 0;
34053 }
34054
34055 _ACEOF
34056
34057
34058
34059 cat - <<_ACEOF >conftest.h
34060
34061 _ACEOF
34062
34063
34064 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
34065 echo "obj-m := conftest.o" >build/Makefile
34066 modpost_flag=''
34067 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
34068 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
34069 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
34070 (eval $ac_try) 2>&5
34071 ac_status=$?
34072 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
34073 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
34074 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
34075 (eval $ac_try) 2>&5
34076 ac_status=$?
34077 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
34078 test $ac_status = 0; }; }; then :
34079
34080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34081 $as_echo "yes" >&6; }
34082
34083 $as_echo "#define HAVE_PERMISSION 1" >>confdefs.h
34084
34085
34086 $as_echo "#define HAVE_PERMISSION_WITH_NAMEIDATA 1" >>confdefs.h
34087
34088
34089 else
34090 $as_echo "$as_me: failed program was:" >&5
34091 sed 's/^/| /' conftest.$ac_ext >&5
34092
34093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34094 $as_echo "no" >&6; }
34095
34096
34097
34098 fi
34099 rm -Rf build
34100
34101
34102
34103
34104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->check_acl() exists" >&5
34105 $as_echo_n "checking whether iops->check_acl() exists... " >&6; }
34106
34107
34108 cat confdefs.h - <<_ACEOF >conftest.c
34109
34110
34111 #include <linux/fs.h>
34112
34113 int check_acl_fn(struct inode *inode, int mask) { return 0; }
34114
34115 static const struct inode_operations
34116 iops __attribute__ ((unused)) = {
34117 .check_acl = check_acl_fn,
34118 };
34119
34120 int
34121 main (void)
34122 {
34123
34124
34125 ;
34126 return 0;
34127 }
34128
34129 _ACEOF
34130
34131
34132
34133 cat - <<_ACEOF >conftest.h
34134
34135 _ACEOF
34136
34137
34138 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
34139 echo "obj-m := conftest.o" >build/Makefile
34140 modpost_flag=''
34141 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
34142 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
34143 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
34144 (eval $ac_try) 2>&5
34145 ac_status=$?
34146 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
34147 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
34148 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
34149 (eval $ac_try) 2>&5
34150 ac_status=$?
34151 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
34152 test $ac_status = 0; }; }; then :
34153
34154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34155 $as_echo "yes" >&6; }
34156
34157 $as_echo "#define HAVE_CHECK_ACL 1" >>confdefs.h
34158
34159
34160 else
34161 $as_echo "$as_me: failed program was:" >&5
34162 sed 's/^/| /' conftest.$ac_ext >&5
34163
34164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34165 $as_echo "no" >&6; }
34166
34167
34168
34169 fi
34170 rm -Rf build
34171
34172
34173
34174
34175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->check_acl() wants flags" >&5
34176 $as_echo_n "checking whether iops->check_acl() wants flags... " >&6; }
34177
34178
34179 cat confdefs.h - <<_ACEOF >conftest.c
34180
34181
34182 #include <linux/fs.h>
34183
34184 int check_acl_fn(struct inode *inode, int mask,
34185 unsigned int flags) { return 0; }
34186
34187 static const struct inode_operations
34188 iops __attribute__ ((unused)) = {
34189 .check_acl = check_acl_fn,
34190 };
34191
34192 int
34193 main (void)
34194 {
34195
34196
34197 ;
34198 return 0;
34199 }
34200
34201 _ACEOF
34202
34203
34204
34205 cat - <<_ACEOF >conftest.h
34206
34207 _ACEOF
34208
34209
34210 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
34211 echo "obj-m := conftest.o" >build/Makefile
34212 modpost_flag=''
34213 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
34214 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
34215 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
34216 (eval $ac_try) 2>&5
34217 ac_status=$?
34218 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
34219 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
34220 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
34221 (eval $ac_try) 2>&5
34222 ac_status=$?
34223 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
34224 test $ac_status = 0; }; }; then :
34225
34226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34227 $as_echo "yes" >&6; }
34228
34229 $as_echo "#define HAVE_CHECK_ACL 1" >>confdefs.h
34230
34231
34232 $as_echo "#define HAVE_CHECK_ACL_WITH_FLAGS 1" >>confdefs.h
34233
34234
34235 else
34236 $as_echo "$as_me: failed program was:" >&5
34237 sed 's/^/| /' conftest.$ac_ext >&5
34238
34239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34240 $as_echo "no" >&6; }
34241
34242
34243
34244 fi
34245 rm -Rf build
34246
34247
34248
34249
34250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->get_acl() exists" >&5
34251 $as_echo_n "checking whether iops->get_acl() exists... " >&6; }
34252
34253
34254 cat confdefs.h - <<_ACEOF >conftest.c
34255
34256
34257 #include <linux/fs.h>
34258
34259 struct posix_acl *get_acl_fn(struct inode *inode, int type)
34260 { return NULL; }
34261
34262 static const struct inode_operations
34263 iops __attribute__ ((unused)) = {
34264 .get_acl = get_acl_fn,
34265 };
34266
34267 int
34268 main (void)
34269 {
34270
34271
34272 ;
34273 return 0;
34274 }
34275
34276 _ACEOF
34277
34278
34279
34280 cat - <<_ACEOF >conftest.h
34281
34282 _ACEOF
34283
34284
34285 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
34286 echo "obj-m := conftest.o" >build/Makefile
34287 modpost_flag=''
34288 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
34289 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
34290 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
34291 (eval $ac_try) 2>&5
34292 ac_status=$?
34293 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
34294 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
34295 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
34296 (eval $ac_try) 2>&5
34297 ac_status=$?
34298 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
34299 test $ac_status = 0; }; }; then :
34300
34301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34302 $as_echo "yes" >&6; }
34303
34304 $as_echo "#define HAVE_GET_ACL 1" >>confdefs.h
34305
34306
34307 else
34308 $as_echo "$as_me: failed program was:" >&5
34309 sed 's/^/| /' conftest.$ac_ext >&5
34310
34311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34312 $as_echo "no" >&6; }
34313
34314
34315
34316 fi
34317 rm -Rf build
34318
34319
34320
34321
34322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->set_acl() exists" >&5
34323 $as_echo_n "checking whether iops->set_acl() exists... " >&6; }
34324
34325
34326 cat confdefs.h - <<_ACEOF >conftest.c
34327
34328
34329 #include <linux/fs.h>
34330
34331 int set_acl_fn(struct inode *inode, struct posix_acl *acl, int type)
34332 { return 0; }
34333
34334 static const struct inode_operations
34335 iops __attribute__ ((unused)) = {
34336 .set_acl = set_acl_fn,
34337 };
34338
34339 int
34340 main (void)
34341 {
34342
34343
34344 ;
34345 return 0;
34346 }
34347
34348 _ACEOF
34349
34350
34351
34352 cat - <<_ACEOF >conftest.h
34353
34354 _ACEOF
34355
34356
34357 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
34358 echo "obj-m := conftest.o" >build/Makefile
34359 modpost_flag=''
34360 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
34361 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
34362 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
34363 (eval $ac_try) 2>&5
34364 ac_status=$?
34365 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
34366 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
34367 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
34368 (eval $ac_try) 2>&5
34369 ac_status=$?
34370 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
34371 test $ac_status = 0; }; }; then :
34372
34373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34374 $as_echo "yes" >&6; }
34375
34376 $as_echo "#define HAVE_SET_ACL 1" >>confdefs.h
34377
34378
34379 else
34380 $as_echo "$as_me: failed program was:" >&5
34381 sed 's/^/| /' conftest.$ac_ext >&5
34382
34383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34384 $as_echo "no" >&6; }
34385
34386
34387
34388 fi
34389 rm -Rf build
34390
34391
34392
34393
34394
34395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->getattr() takes a path" >&5
34396 $as_echo_n "checking whether iops->getattr() takes a path... " >&6; }
34397
34398
34399 cat confdefs.h - <<_ACEOF >conftest.c
34400
34401
34402 #include <linux/fs.h>
34403
34404 int test_getattr(
34405 const struct path *p, struct kstat *k,
34406 u32 request_mask, unsigned int query_flags)
34407 { return 0; }
34408
34409 static const struct inode_operations
34410 iops __attribute__ ((unused)) = {
34411 .getattr = test_getattr,
34412 };
34413
34414 int
34415 main (void)
34416 {
34417
34418
34419 ;
34420 return 0;
34421 }
34422
34423 _ACEOF
34424
34425
34426
34427 cat - <<_ACEOF >conftest.h
34428
34429 _ACEOF
34430
34431
34432 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
34433 echo "obj-m := conftest.o" >build/Makefile
34434 modpost_flag=''
34435 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
34436 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
34437 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
34438 (eval $ac_try) 2>&5
34439 ac_status=$?
34440 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
34441 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
34442 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
34443 (eval $ac_try) 2>&5
34444 ac_status=$?
34445 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
34446 test $ac_status = 0; }; }; then :
34447
34448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34449 $as_echo "yes" >&6; }
34450
34451 $as_echo "#define HAVE_PATH_IOPS_GETATTR 1" >>confdefs.h
34452
34453
34454 else
34455 $as_echo "$as_me: failed program was:" >&5
34456 sed 's/^/| /' conftest.$ac_ext >&5
34457
34458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34459 $as_echo "no" >&6; }
34460
34461
34462
34463 fi
34464 rm -Rf build
34465
34466
34467
34468
34469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->getattr() takes a vfsmount" >&5
34470 $as_echo_n "checking whether iops->getattr() takes a vfsmount... " >&6; }
34471
34472
34473 cat confdefs.h - <<_ACEOF >conftest.c
34474
34475
34476 #include <linux/fs.h>
34477
34478 int test_getattr(
34479 struct vfsmount *mnt, struct dentry *d,
34480 struct kstat *k)
34481 { return 0; }
34482
34483 static const struct inode_operations
34484 iops __attribute__ ((unused)) = {
34485 .getattr = test_getattr,
34486 };
34487
34488 int
34489 main (void)
34490 {
34491
34492
34493 ;
34494 return 0;
34495 }
34496
34497 _ACEOF
34498
34499
34500
34501 cat - <<_ACEOF >conftest.h
34502
34503 _ACEOF
34504
34505
34506 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
34507 echo "obj-m := conftest.o" >build/Makefile
34508 modpost_flag=''
34509 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
34510 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
34511 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
34512 (eval $ac_try) 2>&5
34513 ac_status=$?
34514 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
34515 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
34516 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
34517 (eval $ac_try) 2>&5
34518 ac_status=$?
34519 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
34520 test $ac_status = 0; }; }; then :
34521
34522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34523 $as_echo "yes" >&6; }
34524
34525 $as_echo "#define HAVE_VFSMOUNT_IOPS_GETATTR 1" >>confdefs.h
34526
34527
34528 else
34529 $as_echo "$as_me: failed program was:" >&5
34530 sed 's/^/| /' conftest.$ac_ext >&5
34531
34532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34533 $as_echo "no" >&6; }
34534
34535
34536
34537 fi
34538 rm -Rf build
34539
34540
34541
34542
34543
34544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether inode_set_flags() exists" >&5
34545 $as_echo_n "checking whether inode_set_flags() exists... " >&6; }
34546
34547
34548 cat confdefs.h - <<_ACEOF >conftest.c
34549
34550
34551 #include <linux/fs.h>
34552
34553 int
34554 main (void)
34555 {
34556
34557 struct inode inode;
34558 inode_set_flags(&inode, S_IMMUTABLE, S_IMMUTABLE);
34559
34560 ;
34561 return 0;
34562 }
34563
34564 _ACEOF
34565
34566
34567
34568 cat - <<_ACEOF >conftest.h
34569
34570 _ACEOF
34571
34572
34573 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
34574 echo "obj-m := conftest.o" >build/Makefile
34575 modpost_flag=''
34576 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
34577 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
34578 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
34579 (eval $ac_try) 2>&5
34580 ac_status=$?
34581 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
34582 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
34583 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
34584 (eval $ac_try) 2>&5
34585 ac_status=$?
34586 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
34587 test $ac_status = 0; }; }; then :
34588
34589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34590 $as_echo "yes" >&6; }
34591
34592 $as_echo "#define HAVE_INODE_SET_FLAGS 1" >>confdefs.h
34593
34594
34595 else
34596 $as_echo "$as_me: failed program was:" >&5
34597 sed 's/^/| /' conftest.$ac_ext >&5
34598
34599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34600 $as_echo "no" >&6; }
34601
34602
34603
34604 fi
34605 rm -Rf build
34606
34607
34608
34609
34610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether uncached_acl_sentinel() exists" >&5
34611 $as_echo_n "checking whether uncached_acl_sentinel() exists... " >&6; }
34612
34613
34614 cat confdefs.h - <<_ACEOF >conftest.c
34615
34616
34617 #include <linux/fs.h>
34618
34619 int
34620 main (void)
34621 {
34622
34623 void *sentinel __attribute__ ((unused)) = uncached_acl_sentinel(NULL);
34624
34625 ;
34626 return 0;
34627 }
34628
34629 _ACEOF
34630
34631
34632
34633 cat - <<_ACEOF >conftest.h
34634
34635 _ACEOF
34636
34637
34638 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
34639 echo "obj-m := conftest.o" >build/Makefile
34640 modpost_flag=''
34641 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
34642 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
34643 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
34644 (eval $ac_try) 2>&5
34645 ac_status=$?
34646 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
34647 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
34648 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
34649 (eval $ac_try) 2>&5
34650 ac_status=$?
34651 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
34652 test $ac_status = 0; }; }; then :
34653
34654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34655 $as_echo "yes" >&6; }
34656
34657 $as_echo "#define HAVE_KERNEL_GET_ACL_HANDLE_CACHE 1" >>confdefs.h
34658
34659
34660 else
34661 $as_echo "$as_me: failed program was:" >&5
34662 sed 's/^/| /' conftest.$ac_ext >&5
34663
34664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34665 $as_echo "no" >&6; }
34666
34667
34668
34669 fi
34670 rm -Rf build
34671
34672
34673
34674
34675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sops->show_options() wants dentry" >&5
34676 $as_echo_n "checking whether sops->show_options() wants dentry... " >&6; }
34677
34678
34679
34680 cat confdefs.h - <<_ACEOF >conftest.c
34681
34682
34683 #include <linux/fs.h>
34684
34685 int show_options (struct seq_file * x, struct dentry * y) { return 0; };
34686 static struct super_operations sops __attribute__ ((unused)) = {
34687 .show_options = show_options,
34688 };
34689
34690 int
34691 main (void)
34692 {
34693
34694
34695 ;
34696 return 0;
34697 }
34698
34699 _ACEOF
34700
34701
34702
34703 cat - <<_ACEOF >conftest.h
34704
34705 _ACEOF
34706
34707
34708 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
34709 echo "obj-m := conftest.o" >build/Makefile
34710 modpost_flag=''
34711 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
34712 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
34713 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
34714 (eval $ac_try) 2>&5
34715 ac_status=$?
34716 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
34717 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
34718 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
34719 (eval $ac_try) 2>&5
34720 ac_status=$?
34721 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
34722 test $ac_status = 0; }; }; then :
34723
34724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34725 $as_echo "yes" >&6; }
34726
34727 $as_echo "#define HAVE_SHOW_OPTIONS_WITH_DENTRY 1" >>confdefs.h
34728
34729
34730 else
34731 $as_echo "$as_me: failed program was:" >&5
34732 sed 's/^/| /' conftest.$ac_ext >&5
34733
34734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34735 $as_echo "no" >&6; }
34736
34737
34738
34739 fi
34740 rm -Rf build
34741
34742
34743
34744
34745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether file_inode() is available" >&5
34746 $as_echo_n "checking whether file_inode() is available... " >&6; }
34747
34748
34749 cat confdefs.h - <<_ACEOF >conftest.c
34750
34751
34752 #include <linux/fs.h>
34753
34754 int
34755 main (void)
34756 {
34757
34758 struct file *f = NULL;
34759 file_inode(f);
34760
34761 ;
34762 return 0;
34763 }
34764
34765 _ACEOF
34766
34767
34768
34769 cat - <<_ACEOF >conftest.h
34770
34771 _ACEOF
34772
34773
34774 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
34775 echo "obj-m := conftest.o" >build/Makefile
34776 modpost_flag=''
34777 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
34778 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
34779 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
34780 (eval $ac_try) 2>&5
34781 ac_status=$?
34782 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
34783 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
34784 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
34785 (eval $ac_try) 2>&5
34786 ac_status=$?
34787 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
34788 test $ac_status = 0; }; }; then :
34789
34790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34791 $as_echo "yes" >&6; }
34792
34793 $as_echo "#define HAVE_FILE_INODE 1" >>confdefs.h
34794
34795
34796 else
34797 $as_echo "$as_me: failed program was:" >&5
34798 sed 's/^/| /' conftest.$ac_ext >&5
34799
34800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34801 $as_echo "no" >&6; }
34802
34803
34804
34805 fi
34806 rm -Rf build
34807
34808
34809
34810
34811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether file_dentry() is available" >&5
34812 $as_echo_n "checking whether file_dentry() is available... " >&6; }
34813
34814
34815 cat confdefs.h - <<_ACEOF >conftest.c
34816
34817
34818 #include <linux/fs.h>
34819
34820 int
34821 main (void)
34822 {
34823
34824 struct file *f = NULL;
34825 file_dentry(f);
34826
34827 ;
34828 return 0;
34829 }
34830
34831 _ACEOF
34832
34833
34834
34835 cat - <<_ACEOF >conftest.h
34836
34837 _ACEOF
34838
34839
34840 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
34841 echo "obj-m := conftest.o" >build/Makefile
34842 modpost_flag=''
34843 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
34844 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
34845 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
34846 (eval $ac_try) 2>&5
34847 ac_status=$?
34848 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
34849 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
34850 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
34851 (eval $ac_try) 2>&5
34852 ac_status=$?
34853 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
34854 test $ac_status = 0; }; }; then :
34855
34856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34857 $as_echo "yes" >&6; }
34858
34859 $as_echo "#define HAVE_FILE_DENTRY 1" >>confdefs.h
34860
34861
34862 else
34863 $as_echo "$as_me: failed program was:" >&5
34864 sed 's/^/| /' conftest.$ac_ext >&5
34865
34866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34867 $as_echo "no" >&6; }
34868
34869
34870
34871 fi
34872 rm -Rf build
34873
34874
34875
34876
34877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fops->fsync() wants" >&5
34878 $as_echo_n "checking whether fops->fsync() wants... " >&6; }
34879
34880
34881
34882 cat confdefs.h - <<_ACEOF >conftest.c
34883
34884
34885 #include <linux/fs.h>
34886
34887 int test_fsync(struct file *f, struct dentry *dentry, int x)
34888 { return 0; }
34889
34890 static const struct file_operations
34891 fops __attribute__ ((unused)) = {
34892 .fsync = test_fsync,
34893 };
34894
34895 int
34896 main (void)
34897 {
34898
34899
34900 ;
34901 return 0;
34902 }
34903
34904 _ACEOF
34905
34906
34907
34908 cat - <<_ACEOF >conftest.h
34909
34910 _ACEOF
34911
34912
34913 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
34914 echo "obj-m := conftest.o" >build/Makefile
34915 modpost_flag=''
34916 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
34917 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
34918 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
34919 (eval $ac_try) 2>&5
34920 ac_status=$?
34921 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
34922 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
34923 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
34924 (eval $ac_try) 2>&5
34925 ac_status=$?
34926 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
34927 test $ac_status = 0; }; }; then :
34928
34929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: dentry" >&5
34930 $as_echo "dentry" >&6; }
34931
34932 $as_echo "#define HAVE_FSYNC_WITH_DENTRY 1" >>confdefs.h
34933
34934
34935 else
34936 $as_echo "$as_me: failed program was:" >&5
34937 sed 's/^/| /' conftest.$ac_ext >&5
34938
34939
34940
34941
34942 fi
34943 rm -Rf build
34944
34945
34946
34947
34948
34949
34950 cat confdefs.h - <<_ACEOF >conftest.c
34951
34952
34953 #include <linux/fs.h>
34954
34955 int test_fsync(struct file *f, int x) { return 0; }
34956
34957 static const struct file_operations
34958 fops __attribute__ ((unused)) = {
34959 .fsync = test_fsync,
34960 };
34961
34962 int
34963 main (void)
34964 {
34965
34966
34967 ;
34968 return 0;
34969 }
34970
34971 _ACEOF
34972
34973
34974
34975 cat - <<_ACEOF >conftest.h
34976
34977 _ACEOF
34978
34979
34980 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
34981 echo "obj-m := conftest.o" >build/Makefile
34982 modpost_flag=''
34983 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
34984 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
34985 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
34986 (eval $ac_try) 2>&5
34987 ac_status=$?
34988 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
34989 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
34990 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
34991 (eval $ac_try) 2>&5
34992 ac_status=$?
34993 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
34994 test $ac_status = 0; }; }; then :
34995
34996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no dentry" >&5
34997 $as_echo "no dentry" >&6; }
34998
34999 $as_echo "#define HAVE_FSYNC_WITHOUT_DENTRY 1" >>confdefs.h
35000
35001
35002 else
35003 $as_echo "$as_me: failed program was:" >&5
35004 sed 's/^/| /' conftest.$ac_ext >&5
35005
35006
35007
35008
35009 fi
35010 rm -Rf build
35011
35012
35013
35014
35015
35016
35017 cat confdefs.h - <<_ACEOF >conftest.c
35018
35019
35020 #include <linux/fs.h>
35021
35022 int test_fsync(struct file *f, loff_t a, loff_t b, int c)
35023 { return 0; }
35024
35025 static const struct file_operations
35026 fops __attribute__ ((unused)) = {
35027 .fsync = test_fsync,
35028 };
35029
35030 int
35031 main (void)
35032 {
35033
35034
35035 ;
35036 return 0;
35037 }
35038
35039 _ACEOF
35040
35041
35042
35043 cat - <<_ACEOF >conftest.h
35044
35045 _ACEOF
35046
35047
35048 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
35049 echo "obj-m := conftest.o" >build/Makefile
35050 modpost_flag=''
35051 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
35052 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
35053 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
35054 (eval $ac_try) 2>&5
35055 ac_status=$?
35056 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
35057 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
35058 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
35059 (eval $ac_try) 2>&5
35060 ac_status=$?
35061 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
35062 test $ac_status = 0; }; }; then :
35063
35064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: range" >&5
35065 $as_echo "range" >&6; }
35066
35067 $as_echo "#define HAVE_FSYNC_RANGE 1" >>confdefs.h
35068
35069
35070 else
35071 $as_echo "$as_me: failed program was:" >&5
35072 sed 's/^/| /' conftest.$ac_ext >&5
35073
35074
35075
35076
35077 fi
35078 rm -Rf build
35079
35080
35081
35082
35083
35084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sops->evict_inode() exists" >&5
35085 $as_echo_n "checking whether sops->evict_inode() exists... " >&6; }
35086
35087
35088 cat confdefs.h - <<_ACEOF >conftest.c
35089
35090
35091 #include <linux/fs.h>
35092 void evict_inode (struct inode * t) { return; }
35093 static struct super_operations sops __attribute__ ((unused)) = {
35094 .evict_inode = evict_inode,
35095 };
35096
35097 int
35098 main (void)
35099 {
35100
35101
35102 ;
35103 return 0;
35104 }
35105
35106 _ACEOF
35107
35108
35109
35110 cat - <<_ACEOF >conftest.h
35111
35112 _ACEOF
35113
35114
35115 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
35116 echo "obj-m := conftest.o" >build/Makefile
35117 modpost_flag=''
35118 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
35119 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
35120 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
35121 (eval $ac_try) 2>&5
35122 ac_status=$?
35123 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
35124 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
35125 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
35126 (eval $ac_try) 2>&5
35127 ac_status=$?
35128 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
35129 test $ac_status = 0; }; }; then :
35130
35131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35132 $as_echo "yes" >&6; }
35133
35134 $as_echo "#define HAVE_EVICT_INODE 1" >>confdefs.h
35135
35136
35137 else
35138 $as_echo "$as_me: failed program was:" >&5
35139 sed 's/^/| /' conftest.$ac_ext >&5
35140
35141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35142 $as_echo "no" >&6; }
35143
35144
35145
35146 fi
35147 rm -Rf build
35148
35149
35150
35151
35152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sops->dirty_inode() wants flags" >&5
35153 $as_echo_n "checking whether sops->dirty_inode() wants flags... " >&6; }
35154
35155
35156 cat confdefs.h - <<_ACEOF >conftest.c
35157
35158
35159 #include <linux/fs.h>
35160
35161 void dirty_inode(struct inode *a, int b) { return; }
35162
35163 static const struct super_operations
35164 sops __attribute__ ((unused)) = {
35165 .dirty_inode = dirty_inode,
35166 };
35167
35168 int
35169 main (void)
35170 {
35171
35172
35173 ;
35174 return 0;
35175 }
35176
35177 _ACEOF
35178
35179
35180
35181 cat - <<_ACEOF >conftest.h
35182
35183 _ACEOF
35184
35185
35186 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
35187 echo "obj-m := conftest.o" >build/Makefile
35188 modpost_flag=''
35189 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
35190 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
35191 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
35192 (eval $ac_try) 2>&5
35193 ac_status=$?
35194 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
35195 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
35196 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
35197 (eval $ac_try) 2>&5
35198 ac_status=$?
35199 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
35200 test $ac_status = 0; }; }; then :
35201
35202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35203 $as_echo "yes" >&6; }
35204
35205 $as_echo "#define HAVE_DIRTY_INODE_WITH_FLAGS 1" >>confdefs.h
35206
35207
35208 else
35209 $as_echo "$as_me: failed program was:" >&5
35210 sed 's/^/| /' conftest.$ac_ext >&5
35211
35212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35213 $as_echo "no" >&6; }
35214
35215
35216
35217 fi
35218 rm -Rf build
35219
35220
35221
35222
35223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sops->nr_cached_objects() exists" >&5
35224 $as_echo_n "checking whether sops->nr_cached_objects() exists... " >&6; }
35225
35226
35227 cat confdefs.h - <<_ACEOF >conftest.c
35228
35229
35230 #include <linux/fs.h>
35231
35232 int nr_cached_objects(struct super_block *sb) { return 0; }
35233
35234 static const struct super_operations
35235 sops __attribute__ ((unused)) = {
35236 .nr_cached_objects = nr_cached_objects,
35237 };
35238
35239 int
35240 main (void)
35241 {
35242
35243
35244 ;
35245 return 0;
35246 }
35247
35248 _ACEOF
35249
35250
35251
35252 cat - <<_ACEOF >conftest.h
35253
35254 _ACEOF
35255
35256
35257 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
35258 echo "obj-m := conftest.o" >build/Makefile
35259 modpost_flag=''
35260 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
35261 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
35262 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
35263 (eval $ac_try) 2>&5
35264 ac_status=$?
35265 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
35266 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
35267 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
35268 (eval $ac_try) 2>&5
35269 ac_status=$?
35270 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
35271 test $ac_status = 0; }; }; then :
35272
35273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35274 $as_echo "yes" >&6; }
35275
35276 $as_echo "#define HAVE_NR_CACHED_OBJECTS 1" >>confdefs.h
35277
35278
35279 else
35280 $as_echo "$as_me: failed program was:" >&5
35281 sed 's/^/| /' conftest.$ac_ext >&5
35282
35283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35284 $as_echo "no" >&6; }
35285
35286
35287
35288 fi
35289 rm -Rf build
35290
35291
35292
35293
35294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sops->free_cached_objects() exists" >&5
35295 $as_echo_n "checking whether sops->free_cached_objects() exists... " >&6; }
35296
35297
35298 cat confdefs.h - <<_ACEOF >conftest.c
35299
35300
35301 #include <linux/fs.h>
35302
35303 void free_cached_objects(struct super_block *sb, int x)
35304 { return; }
35305
35306 static const struct super_operations
35307 sops __attribute__ ((unused)) = {
35308 .free_cached_objects = free_cached_objects,
35309 };
35310
35311 int
35312 main (void)
35313 {
35314
35315
35316 ;
35317 return 0;
35318 }
35319
35320 _ACEOF
35321
35322
35323
35324 cat - <<_ACEOF >conftest.h
35325
35326 _ACEOF
35327
35328
35329 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
35330 echo "obj-m := conftest.o" >build/Makefile
35331 modpost_flag=''
35332 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
35333 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
35334 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
35335 (eval $ac_try) 2>&5
35336 ac_status=$?
35337 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
35338 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
35339 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
35340 (eval $ac_try) 2>&5
35341 ac_status=$?
35342 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
35343 test $ac_status = 0; }; }; then :
35344
35345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35346 $as_echo "yes" >&6; }
35347
35348 $as_echo "#define HAVE_FREE_CACHED_OBJECTS 1" >>confdefs.h
35349
35350
35351 else
35352 $as_echo "$as_me: failed program was:" >&5
35353 sed 's/^/| /' conftest.$ac_ext >&5
35354
35355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35356 $as_echo "no" >&6; }
35357
35358
35359
35360 fi
35361 rm -Rf build
35362
35363
35364
35365
35366
35367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fops->fallocate() exists" >&5
35368 $as_echo_n "checking whether fops->fallocate() exists... " >&6; }
35369
35370
35371 cat confdefs.h - <<_ACEOF >conftest.c
35372
35373
35374 #include <linux/fs.h>
35375
35376 long test_fallocate(struct file *file, int mode,
35377 loff_t offset, loff_t len) { return 0; }
35378
35379 static const struct file_operations
35380 fops __attribute__ ((unused)) = {
35381 .fallocate = test_fallocate,
35382 };
35383
35384 int
35385 main (void)
35386 {
35387
35388
35389 ;
35390 return 0;
35391 }
35392
35393 _ACEOF
35394
35395
35396
35397 cat - <<_ACEOF >conftest.h
35398
35399 _ACEOF
35400
35401
35402 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
35403 echo "obj-m := conftest.o" >build/Makefile
35404 modpost_flag=''
35405 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
35406 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
35407 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
35408 (eval $ac_try) 2>&5
35409 ac_status=$?
35410 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
35411 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
35412 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
35413 (eval $ac_try) 2>&5
35414 ac_status=$?
35415 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
35416 test $ac_status = 0; }; }; then :
35417
35418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35419 $as_echo "yes" >&6; }
35420
35421 $as_echo "#define HAVE_FILE_FALLOCATE 1" >>confdefs.h
35422
35423
35424 else
35425 $as_echo "$as_me: failed program was:" >&5
35426 sed 's/^/| /' conftest.$ac_ext >&5
35427
35428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35429 $as_echo "no" >&6; }
35430
35431
35432
35433 fi
35434 rm -Rf build
35435
35436
35437
35438
35439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->fallocate() exists" >&5
35440 $as_echo_n "checking whether iops->fallocate() exists... " >&6; }
35441
35442
35443 cat confdefs.h - <<_ACEOF >conftest.c
35444
35445
35446 #include <linux/fs.h>
35447
35448 long test_fallocate(struct inode *inode, int mode,
35449 loff_t offset, loff_t len) { return 0; }
35450
35451 static const struct inode_operations
35452 fops __attribute__ ((unused)) = {
35453 .fallocate = test_fallocate,
35454 };
35455
35456 int
35457 main (void)
35458 {
35459
35460
35461 ;
35462 return 0;
35463 }
35464
35465 _ACEOF
35466
35467
35468
35469 cat - <<_ACEOF >conftest.h
35470
35471 _ACEOF
35472
35473
35474 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
35475 echo "obj-m := conftest.o" >build/Makefile
35476 modpost_flag=''
35477 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
35478 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
35479 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
35480 (eval $ac_try) 2>&5
35481 ac_status=$?
35482 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
35483 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
35484 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
35485 (eval $ac_try) 2>&5
35486 ac_status=$?
35487 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
35488 test $ac_status = 0; }; }; then :
35489
35490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35491 $as_echo "yes" >&6; }
35492
35493 $as_echo "#define HAVE_INODE_FALLOCATE 1" >>confdefs.h
35494
35495
35496 else
35497 $as_echo "$as_me: failed program was:" >&5
35498 sed 's/^/| /' conftest.$ac_ext >&5
35499
35500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35501 $as_echo "no" >&6; }
35502
35503
35504
35505 fi
35506 rm -Rf build
35507
35508
35509
35510
35511
35512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fops->aio_fsync() exists" >&5
35513 $as_echo_n "checking whether fops->aio_fsync() exists... " >&6; }
35514
35515
35516 cat confdefs.h - <<_ACEOF >conftest.c
35517
35518
35519 #include <linux/fs.h>
35520
35521 static const struct file_operations
35522 fops __attribute__ ((unused)) = {
35523 .aio_fsync = NULL,
35524 };
35525
35526 int
35527 main (void)
35528 {
35529
35530
35531 ;
35532 return 0;
35533 }
35534
35535 _ACEOF
35536
35537
35538
35539 cat - <<_ACEOF >conftest.h
35540
35541 _ACEOF
35542
35543
35544 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
35545 echo "obj-m := conftest.o" >build/Makefile
35546 modpost_flag=''
35547 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
35548 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
35549 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
35550 (eval $ac_try) 2>&5
35551 ac_status=$?
35552 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
35553 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
35554 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
35555 (eval $ac_try) 2>&5
35556 ac_status=$?
35557 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
35558 test $ac_status = 0; }; }; then :
35559
35560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35561 $as_echo "yes" >&6; }
35562
35563 $as_echo "#define HAVE_FILE_AIO_FSYNC 1" >>confdefs.h
35564
35565
35566 else
35567 $as_echo "$as_me: failed program was:" >&5
35568 sed 's/^/| /' conftest.$ac_ext >&5
35569
35570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35571 $as_echo "no" >&6; }
35572
35573
35574
35575 fi
35576 rm -Rf build
35577
35578
35579
35580
35581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->create()/mkdir()/mknod() take umode_t" >&5
35582 $as_echo_n "checking whether iops->create()/mkdir()/mknod() take umode_t... " >&6; }
35583
35584
35585 cat confdefs.h - <<_ACEOF >conftest.c
35586
35587
35588 #include <linux/fs.h>
35589
35590 int mkdir(struct inode *inode, struct dentry *dentry,
35591 umode_t umode) { return 0; }
35592
35593 static const struct inode_operations
35594 iops __attribute__ ((unused)) = {
35595 .mkdir = mkdir,
35596 };
35597
35598 int
35599 main (void)
35600 {
35601
35602
35603 ;
35604 return 0;
35605 }
35606
35607 _ACEOF
35608
35609
35610
35611 cat - <<_ACEOF >conftest.h
35612
35613 _ACEOF
35614
35615
35616 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
35617 echo "obj-m := conftest.o" >build/Makefile
35618 modpost_flag=''
35619 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
35620 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
35621 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
35622 (eval $ac_try) 2>&5
35623 ac_status=$?
35624 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
35625 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
35626 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
35627 (eval $ac_try) 2>&5
35628 ac_status=$?
35629 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
35630 test $ac_status = 0; }; }; then :
35631
35632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35633 $as_echo "yes" >&6; }
35634
35635 $as_echo "#define HAVE_MKDIR_UMODE_T 1" >>confdefs.h
35636
35637
35638 else
35639 $as_echo "$as_me: failed program was:" >&5
35640 sed 's/^/| /' conftest.$ac_ext >&5
35641
35642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35643 $as_echo "no" >&6; }
35644
35645
35646
35647 fi
35648 rm -Rf build
35649
35650
35651
35652
35653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->lookup() passes nameidata" >&5
35654 $as_echo_n "checking whether iops->lookup() passes nameidata... " >&6; }
35655
35656
35657 cat confdefs.h - <<_ACEOF >conftest.c
35658
35659
35660 #include <linux/fs.h>
35661
35662 struct dentry *inode_lookup(struct inode *inode,
35663 struct dentry *dentry, struct nameidata *nidata)
35664 { return NULL; }
35665
35666 static const struct inode_operations iops
35667 __attribute__ ((unused)) = {
35668 .lookup = inode_lookup,
35669 };
35670
35671 int
35672 main (void)
35673 {
35674
35675
35676 ;
35677 return 0;
35678 }
35679
35680 _ACEOF
35681
35682
35683
35684 cat - <<_ACEOF >conftest.h
35685
35686 _ACEOF
35687
35688
35689 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
35690 echo "obj-m := conftest.o" >build/Makefile
35691 modpost_flag=''
35692 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
35693 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
35694 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
35695 (eval $ac_try) 2>&5
35696 ac_status=$?
35697 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
35698 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
35699 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
35700 (eval $ac_try) 2>&5
35701 ac_status=$?
35702 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
35703 test $ac_status = 0; }; }; then :
35704
35705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35706 $as_echo "yes" >&6; }
35707
35708 $as_echo "#define HAVE_LOOKUP_NAMEIDATA 1" >>confdefs.h
35709
35710
35711 else
35712 $as_echo "$as_me: failed program was:" >&5
35713 sed 's/^/| /' conftest.$ac_ext >&5
35714
35715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35716 $as_echo "no" >&6; }
35717
35718
35719
35720 fi
35721 rm -Rf build
35722
35723
35724
35725
35726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->create() passes nameidata" >&5
35727 $as_echo_n "checking whether iops->create() passes nameidata... " >&6; }
35728
35729
35730 cat confdefs.h - <<_ACEOF >conftest.c
35731
35732
35733 #include <linux/fs.h>
35734
35735 #ifdef HAVE_MKDIR_UMODE_T
35736 int inode_create(struct inode *inode ,struct dentry *dentry,
35737 umode_t umode, struct nameidata *nidata) { return 0; }
35738 #else
35739 int inode_create(struct inode *inode,struct dentry *dentry,
35740 int umode, struct nameidata * nidata) { return 0; }
35741 #endif
35742
35743 static const struct inode_operations
35744 iops __attribute__ ((unused)) = {
35745 .create = inode_create,
35746 };
35747
35748 int
35749 main (void)
35750 {
35751
35752
35753 ;
35754 return 0;
35755 }
35756
35757 _ACEOF
35758
35759
35760
35761 cat - <<_ACEOF >conftest.h
35762
35763 _ACEOF
35764
35765
35766 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
35767 echo "obj-m := conftest.o" >build/Makefile
35768 modpost_flag=''
35769 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
35770 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
35771 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
35772 (eval $ac_try) 2>&5
35773 ac_status=$?
35774 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
35775 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
35776 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
35777 (eval $ac_try) 2>&5
35778 ac_status=$?
35779 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
35780 test $ac_status = 0; }; }; then :
35781
35782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35783 $as_echo "yes" >&6; }
35784
35785 $as_echo "#define HAVE_CREATE_NAMEIDATA 1" >>confdefs.h
35786
35787
35788 else
35789 $as_echo "$as_me: failed program was:" >&5
35790 sed 's/^/| /' conftest.$ac_ext >&5
35791
35792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35793 $as_echo "no" >&6; }
35794
35795
35796
35797 fi
35798 rm -Rf build
35799
35800
35801
35802
35803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->get_link() passes delayed" >&5
35804 $as_echo_n "checking whether iops->get_link() passes delayed... " >&6; }
35805
35806
35807 cat confdefs.h - <<_ACEOF >conftest.c
35808
35809
35810 #include <linux/fs.h>
35811 const char *get_link(struct dentry *de, struct inode *ip,
35812 struct delayed_call *done) { return "symlink"; }
35813 static struct inode_operations
35814 iops __attribute__ ((unused)) = {
35815 .get_link = get_link,
35816 };
35817
35818 int
35819 main (void)
35820 {
35821
35822
35823 ;
35824 return 0;
35825 }
35826
35827 _ACEOF
35828
35829
35830
35831 cat - <<_ACEOF >conftest.h
35832
35833 _ACEOF
35834
35835
35836 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
35837 echo "obj-m := conftest.o" >build/Makefile
35838 modpost_flag=''
35839 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
35840 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
35841 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
35842 (eval $ac_try) 2>&5
35843 ac_status=$?
35844 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
35845 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
35846 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
35847 (eval $ac_try) 2>&5
35848 ac_status=$?
35849 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
35850 test $ac_status = 0; }; }; then :
35851
35852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35853 $as_echo "yes" >&6; }
35854
35855 $as_echo "#define HAVE_GET_LINK_DELAYED 1" >>confdefs.h
35856
35857
35858 else
35859 $as_echo "$as_me: failed program was:" >&5
35860 sed 's/^/| /' conftest.$ac_ext >&5
35861
35862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35863 $as_echo "no" >&6; }
35864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->get_link() passes cookie" >&5
35865 $as_echo_n "checking whether iops->get_link() passes cookie... " >&6; }
35866
35867
35868 cat confdefs.h - <<_ACEOF >conftest.c
35869
35870
35871 #include <linux/fs.h>
35872 const char *get_link(struct dentry *de, struct
35873 inode *ip, void **cookie) { return "symlink"; }
35874 static struct inode_operations
35875 iops __attribute__ ((unused)) = {
35876 .get_link = get_link,
35877 };
35878
35879 int
35880 main (void)
35881 {
35882
35883
35884 ;
35885 return 0;
35886 }
35887
35888 _ACEOF
35889
35890
35891
35892 cat - <<_ACEOF >conftest.h
35893
35894 _ACEOF
35895
35896
35897 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
35898 echo "obj-m := conftest.o" >build/Makefile
35899 modpost_flag=''
35900 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
35901 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
35902 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
35903 (eval $ac_try) 2>&5
35904 ac_status=$?
35905 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
35906 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
35907 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
35908 (eval $ac_try) 2>&5
35909 ac_status=$?
35910 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
35911 test $ac_status = 0; }; }; then :
35912
35913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35914 $as_echo "yes" >&6; }
35915
35916 $as_echo "#define HAVE_GET_LINK_COOKIE 1" >>confdefs.h
35917
35918
35919 else
35920 $as_echo "$as_me: failed program was:" >&5
35921 sed 's/^/| /' conftest.$ac_ext >&5
35922
35923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35924 $as_echo "no" >&6; }
35925
35926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->follow_link() passes cookie" >&5
35927 $as_echo_n "checking whether iops->follow_link() passes cookie... " >&6; }
35928
35929
35930 cat confdefs.h - <<_ACEOF >conftest.c
35931
35932
35933 #include <linux/fs.h>
35934 const char *follow_link(struct dentry *de,
35935 void **cookie) { return "symlink"; }
35936 static struct inode_operations
35937 iops __attribute__ ((unused)) = {
35938 .follow_link = follow_link,
35939 };
35940
35941 int
35942 main (void)
35943 {
35944
35945
35946 ;
35947 return 0;
35948 }
35949
35950 _ACEOF
35951
35952
35953
35954 cat - <<_ACEOF >conftest.h
35955
35956 _ACEOF
35957
35958
35959 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
35960 echo "obj-m := conftest.o" >build/Makefile
35961 modpost_flag=''
35962 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
35963 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
35964 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
35965 (eval $ac_try) 2>&5
35966 ac_status=$?
35967 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
35968 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
35969 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
35970 (eval $ac_try) 2>&5
35971 ac_status=$?
35972 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
35973 test $ac_status = 0; }; }; then :
35974
35975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35976 $as_echo "yes" >&6; }
35977
35978 $as_echo "#define HAVE_FOLLOW_LINK_COOKIE 1" >>confdefs.h
35979
35980
35981 else
35982 $as_echo "$as_me: failed program was:" >&5
35983 sed 's/^/| /' conftest.$ac_ext >&5
35984
35985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35986 $as_echo "no" >&6; }
35987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->follow_link() passes nameidata" >&5
35988 $as_echo_n "checking whether iops->follow_link() passes nameidata... " >&6; }
35989
35990
35991 cat confdefs.h - <<_ACEOF >conftest.c
35992
35993
35994 #include <linux/fs.h>
35995 void *follow_link(struct dentry *de, struct
35996 nameidata *nd) { return (void *)NULL; }
35997 static struct inode_operations
35998 iops __attribute__ ((unused)) = {
35999 .follow_link = follow_link,
36000 };
36001
36002 int
36003 main (void)
36004 {
36005
36006
36007 ;
36008 return 0;
36009 }
36010
36011 _ACEOF
36012
36013
36014
36015 cat - <<_ACEOF >conftest.h
36016
36017 _ACEOF
36018
36019
36020 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
36021 echo "obj-m := conftest.o" >build/Makefile
36022 modpost_flag=''
36023 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
36024 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
36025 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
36026 (eval $ac_try) 2>&5
36027 ac_status=$?
36028 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
36029 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
36030 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
36031 (eval $ac_try) 2>&5
36032 ac_status=$?
36033 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
36034 test $ac_status = 0; }; }; then :
36035
36036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36037 $as_echo "yes" >&6; }
36038
36039 $as_echo "#define HAVE_FOLLOW_LINK_NAMEIDATA 1" >>confdefs.h
36040
36041
36042 else
36043 $as_echo "$as_me: failed program was:" >&5
36044 sed 's/^/| /' conftest.$ac_ext >&5
36045
36046 as_fn_error $? "no; please file a bug report" "$LINENO" 5
36047
36048
36049
36050 fi
36051 rm -Rf build
36052
36053
36054
36055
36056
36057 fi
36058 rm -Rf build
36059
36060
36061
36062
36063
36064
36065 fi
36066 rm -Rf build
36067
36068
36069
36070
36071
36072 fi
36073 rm -Rf build
36074
36075
36076
36077
36078
36079
36080 cat confdefs.h - <<_ACEOF >conftest.c
36081
36082
36083 #if !defined(HAVE_GET_LINK_DELAYED)
36084 #error "Expecting get_link() delayed done"
36085 #endif
36086
36087 int
36088 main (void)
36089 {
36090
36091
36092 ;
36093 return 0;
36094 }
36095
36096 _ACEOF
36097
36098
36099
36100 cat - <<_ACEOF >conftest.h
36101
36102 _ACEOF
36103
36104
36105 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
36106 echo "obj-m := conftest.o" >build/Makefile
36107 modpost_flag=''
36108 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
36109 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
36110 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
36111 (eval $ac_try) 2>&5
36112 ac_status=$?
36113 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
36114 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
36115 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
36116 (eval $ac_try) 2>&5
36117 ac_status=$?
36118 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
36119 test $ac_status = 0; }; }; then :
36120
36121
36122 $as_echo "#define HAVE_PUT_LINK_DELAYED 1" >>confdefs.h
36123
36124
36125 else
36126 $as_echo "$as_me: failed program was:" >&5
36127 sed 's/^/| /' conftest.$ac_ext >&5
36128
36129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->put_link() passes cookie" >&5
36130 $as_echo_n "checking whether iops->put_link() passes cookie... " >&6; }
36131
36132
36133 cat confdefs.h - <<_ACEOF >conftest.c
36134
36135
36136 #include <linux/fs.h>
36137 void put_link(struct inode *ip, void *cookie)
36138 { return; }
36139 static struct inode_operations
36140 iops __attribute__ ((unused)) = {
36141 .put_link = put_link,
36142 };
36143
36144 int
36145 main (void)
36146 {
36147
36148
36149 ;
36150 return 0;
36151 }
36152
36153 _ACEOF
36154
36155
36156
36157 cat - <<_ACEOF >conftest.h
36158
36159 _ACEOF
36160
36161
36162 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
36163 echo "obj-m := conftest.o" >build/Makefile
36164 modpost_flag=''
36165 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
36166 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
36167 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
36168 (eval $ac_try) 2>&5
36169 ac_status=$?
36170 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
36171 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
36172 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
36173 (eval $ac_try) 2>&5
36174 ac_status=$?
36175 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
36176 test $ac_status = 0; }; }; then :
36177
36178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36179 $as_echo "yes" >&6; }
36180
36181 $as_echo "#define HAVE_PUT_LINK_COOKIE 1" >>confdefs.h
36182
36183
36184 else
36185 $as_echo "$as_me: failed program was:" >&5
36186 sed 's/^/| /' conftest.$ac_ext >&5
36187
36188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36189 $as_echo "no" >&6; }
36190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->put_link() passes nameidata" >&5
36191 $as_echo_n "checking whether iops->put_link() passes nameidata... " >&6; }
36192
36193
36194 cat confdefs.h - <<_ACEOF >conftest.c
36195
36196
36197 #include <linux/fs.h>
36198 void put_link(struct dentry *de, struct
36199 nameidata *nd, void *ptr) { return; }
36200 static struct inode_operations
36201 iops __attribute__ ((unused)) = {
36202 .put_link = put_link,
36203 };
36204
36205 int
36206 main (void)
36207 {
36208
36209
36210 ;
36211 return 0;
36212 }
36213
36214 _ACEOF
36215
36216
36217
36218 cat - <<_ACEOF >conftest.h
36219
36220 _ACEOF
36221
36222
36223 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
36224 echo "obj-m := conftest.o" >build/Makefile
36225 modpost_flag=''
36226 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
36227 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
36228 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
36229 (eval $ac_try) 2>&5
36230 ac_status=$?
36231 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
36232 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
36233 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
36234 (eval $ac_try) 2>&5
36235 ac_status=$?
36236 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
36237 test $ac_status = 0; }; }; then :
36238
36239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36240 $as_echo "yes" >&6; }
36241
36242 $as_echo "#define HAVE_PUT_LINK_NAMEIDATA 1" >>confdefs.h
36243
36244
36245 else
36246 $as_echo "$as_me: failed program was:" >&5
36247 sed 's/^/| /' conftest.$ac_ext >&5
36248
36249 as_fn_error $? "no; please file a bug report" "$LINENO" 5
36250
36251
36252
36253 fi
36254 rm -Rf build
36255
36256
36257
36258
36259
36260 fi
36261 rm -Rf build
36262
36263
36264
36265
36266
36267 fi
36268 rm -Rf build
36269
36270
36271
36272
36273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether i_op->tmpfile() exists" >&5
36274 $as_echo_n "checking whether i_op->tmpfile() exists... " >&6; }
36275
36276
36277 cat confdefs.h - <<_ACEOF >conftest.c
36278
36279
36280 #include <linux/fs.h>
36281 int tmpfile(struct inode *inode, struct dentry *dentry,
36282 umode_t mode) { return 0; }
36283 static struct inode_operations
36284 iops __attribute__ ((unused)) = {
36285 .tmpfile = tmpfile,
36286 };
36287
36288 int
36289 main (void)
36290 {
36291
36292
36293 ;
36294 return 0;
36295 }
36296
36297 _ACEOF
36298
36299
36300
36301 cat - <<_ACEOF >conftest.h
36302
36303 _ACEOF
36304
36305
36306 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
36307 echo "obj-m := conftest.o" >build/Makefile
36308 modpost_flag=''
36309 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
36310 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
36311 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
36312 (eval $ac_try) 2>&5
36313 ac_status=$?
36314 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
36315 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
36316 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
36317 (eval $ac_try) 2>&5
36318 ac_status=$?
36319 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
36320 test $ac_status = 0; }; }; then :
36321
36322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36323 $as_echo "yes" >&6; }
36324
36325 $as_echo "#define HAVE_TMPFILE 1" >>confdefs.h
36326
36327
36328 else
36329 $as_echo "$as_me: failed program was:" >&5
36330 sed 's/^/| /' conftest.$ac_ext >&5
36331
36332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36333 $as_echo "no" >&6; }
36334
36335
36336
36337 fi
36338 rm -Rf build
36339
36340
36341
36342
36343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->truncate_range() exists" >&5
36344 $as_echo_n "checking whether iops->truncate_range() exists... " >&6; }
36345
36346
36347 cat confdefs.h - <<_ACEOF >conftest.c
36348
36349
36350 #include <linux/fs.h>
36351 void truncate_range(struct inode *inode, loff_t start,
36352 loff_t end) { return; }
36353 static struct inode_operations iops __attribute__ ((unused)) = {
36354 .truncate_range = truncate_range,
36355 };
36356
36357 int
36358 main (void)
36359 {
36360
36361
36362 ;
36363 return 0;
36364 }
36365
36366 _ACEOF
36367
36368
36369
36370 cat - <<_ACEOF >conftest.h
36371
36372 _ACEOF
36373
36374
36375 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
36376 echo "obj-m := conftest.o" >build/Makefile
36377 modpost_flag=''
36378 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
36379 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
36380 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
36381 (eval $ac_try) 2>&5
36382 ac_status=$?
36383 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
36384 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
36385 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
36386 (eval $ac_try) 2>&5
36387 ac_status=$?
36388 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
36389 test $ac_status = 0; }; }; then :
36390
36391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36392 $as_echo "yes" >&6; }
36393
36394 $as_echo "#define HAVE_INODE_TRUNCATE_RANGE 1" >>confdefs.h
36395
36396
36397 else
36398 $as_echo "$as_me: failed program was:" >&5
36399 sed 's/^/| /' conftest.$ac_ext >&5
36400
36401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36402 $as_echo "no" >&6; }
36403
36404
36405
36406 fi
36407 rm -Rf build
36408
36409
36410
36411
36412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether dops->d_automount() exists" >&5
36413 $as_echo_n "checking whether dops->d_automount() exists... " >&6; }
36414
36415
36416 cat confdefs.h - <<_ACEOF >conftest.c
36417
36418
36419 #include <linux/dcache.h>
36420 struct vfsmount *d_automount(struct path *p) { return NULL; }
36421 struct dentry_operations dops __attribute__ ((unused)) = {
36422 .d_automount = d_automount,
36423 };
36424
36425 int
36426 main (void)
36427 {
36428
36429
36430 ;
36431 return 0;
36432 }
36433
36434 _ACEOF
36435
36436
36437
36438 cat - <<_ACEOF >conftest.h
36439
36440 _ACEOF
36441
36442
36443 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
36444 echo "obj-m := conftest.o" >build/Makefile
36445 modpost_flag=''
36446 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
36447 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
36448 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
36449 (eval $ac_try) 2>&5
36450 ac_status=$?
36451 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
36452 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
36453 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
36454 (eval $ac_try) 2>&5
36455 ac_status=$?
36456 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
36457 test $ac_status = 0; }; }; then :
36458
36459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36460 $as_echo "yes" >&6; }
36461
36462 $as_echo "#define HAVE_AUTOMOUNT 1" >>confdefs.h
36463
36464
36465 else
36466 $as_echo "$as_me: failed program was:" >&5
36467 sed 's/^/| /' conftest.$ac_ext >&5
36468
36469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36470 $as_echo "no" >&6; }
36471
36472
36473
36474 fi
36475 rm -Rf build
36476
36477
36478
36479
36480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether eops->encode_fh() wants inode" >&5
36481 $as_echo_n "checking whether eops->encode_fh() wants inode... " >&6; }
36482
36483
36484 cat confdefs.h - <<_ACEOF >conftest.c
36485
36486
36487 #include <linux/exportfs.h>
36488 int encode_fh(struct inode *inode, __u32 *fh, int *max_len,
36489 struct inode *parent) { return 0; }
36490 static struct export_operations eops __attribute__ ((unused))={
36491 .encode_fh = encode_fh,
36492 };
36493
36494 int
36495 main (void)
36496 {
36497
36498
36499 ;
36500 return 0;
36501 }
36502
36503 _ACEOF
36504
36505
36506
36507 cat - <<_ACEOF >conftest.h
36508
36509 _ACEOF
36510
36511
36512 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
36513 echo "obj-m := conftest.o" >build/Makefile
36514 modpost_flag=''
36515 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
36516 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
36517 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
36518 (eval $ac_try) 2>&5
36519 ac_status=$?
36520 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
36521 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
36522 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
36523 (eval $ac_try) 2>&5
36524 ac_status=$?
36525 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
36526 test $ac_status = 0; }; }; then :
36527
36528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36529 $as_echo "yes" >&6; }
36530
36531 $as_echo "#define HAVE_ENCODE_FH_WITH_INODE 1" >>confdefs.h
36532
36533
36534 else
36535 $as_echo "$as_me: failed program was:" >&5
36536 sed 's/^/| /' conftest.$ac_ext >&5
36537
36538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36539 $as_echo "no" >&6; }
36540
36541
36542
36543 fi
36544 rm -Rf build
36545
36546
36547
36548
36549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether eops->commit_metadata() exists" >&5
36550 $as_echo_n "checking whether eops->commit_metadata() exists... " >&6; }
36551
36552
36553 cat confdefs.h - <<_ACEOF >conftest.c
36554
36555
36556 #include <linux/exportfs.h>
36557 int commit_metadata(struct inode *inode) { return 0; }
36558 static struct export_operations eops __attribute__ ((unused))={
36559 .commit_metadata = commit_metadata,
36560 };
36561
36562 int
36563 main (void)
36564 {
36565
36566
36567 ;
36568 return 0;
36569 }
36570
36571 _ACEOF
36572
36573
36574
36575 cat - <<_ACEOF >conftest.h
36576
36577 _ACEOF
36578
36579
36580 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
36581 echo "obj-m := conftest.o" >build/Makefile
36582 modpost_flag=''
36583 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
36584 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
36585 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
36586 (eval $ac_try) 2>&5
36587 ac_status=$?
36588 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
36589 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
36590 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
36591 (eval $ac_try) 2>&5
36592 ac_status=$?
36593 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
36594 test $ac_status = 0; }; }; then :
36595
36596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36597 $as_echo "yes" >&6; }
36598
36599 $as_echo "#define HAVE_COMMIT_METADATA 1" >>confdefs.h
36600
36601
36602 else
36603 $as_echo "$as_me: failed program was:" >&5
36604 sed 's/^/| /' conftest.$ac_ext >&5
36605
36606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36607 $as_echo "no" >&6; }
36608
36609
36610
36611 fi
36612 rm -Rf build
36613
36614
36615
36616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether clear_inode() is available" >&5
36617 $as_echo_n "checking whether clear_inode() is available... " >&6; }
36618
36619
36620
36621 cat confdefs.h - <<_ACEOF >conftest.c
36622
36623
36624 #include <linux/fs.h>
36625
36626 int
36627 main (void)
36628 {
36629
36630 clear_inode(NULL);
36631
36632 ;
36633 return 0;
36634 }
36635
36636 _ACEOF
36637
36638
36639
36640 cat - <<_ACEOF >conftest.h
36641
36642 _ACEOF
36643
36644
36645 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
36646 echo "obj-m := conftest.o" >build/Makefile
36647 modpost_flag=''
36648 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
36649 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
36650 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
36651 (eval $ac_try) 2>&5
36652 ac_status=$?
36653 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
36654 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
36655 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
36656 (eval $ac_try) 2>&5
36657 ac_status=$?
36658 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
36659 test $ac_status = 0; }; }; then :
36660 rc=0
36661 else
36662 $as_echo "$as_me: failed program was:" >&5
36663 sed 's/^/| /' conftest.$ac_ext >&5
36664 rc=1
36665
36666
36667 fi
36668 rm -Rf build
36669
36670
36671 if test $rc -ne 0; then :
36672
36673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36674 $as_echo "no" >&6; }
36675
36676 else
36677 if test "x$enable_linux_builtin" != xyes; then
36678
36679 grep -q -E '[[:space:]]clear_inode[[:space:]]' \
36680 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
36681 rc=$?
36682 if test $rc -ne 0; then
36683 export=0
36684 for file in fs/inode.c; do
36685 grep -q -E "EXPORT_SYMBOL.*(clear_inode)" \
36686 "$LINUX/$file" 2>/dev/null
36687 rc=$?
36688 if test $rc -eq 0; then
36689 export=1
36690 break;
36691 fi
36692 done
36693 if test $export -eq 0; then :
36694 rc=1
36695 else :
36696 rc=0
36697 fi
36698 else :
36699 rc=0
36700 fi
36701
36702 fi
36703 if test $rc -ne 0; then :
36704
36705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36706 $as_echo "no" >&6; }
36707
36708 else :
36709
36710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36711 $as_echo "yes" >&6; }
36712
36713 $as_echo "#define HAVE_CLEAR_INODE 1" >>confdefs.h
36714
36715
36716 fi
36717 fi
36718
36719
36720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setattr_prepare() is available" >&5
36721 $as_echo_n "checking whether setattr_prepare() is available... " >&6; }
36722
36723
36724
36725 cat confdefs.h - <<_ACEOF >conftest.c
36726
36727
36728 #include <linux/fs.h>
36729
36730 int
36731 main (void)
36732 {
36733
36734 struct dentry *dentry = NULL;
36735 struct iattr *attr = NULL;
36736 int error;
36737
36738 error = setattr_prepare(dentry, attr);
36739
36740 ;
36741 return 0;
36742 }
36743
36744 _ACEOF
36745
36746
36747
36748 cat - <<_ACEOF >conftest.h
36749
36750 _ACEOF
36751
36752
36753 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
36754 echo "obj-m := conftest.o" >build/Makefile
36755 modpost_flag=''
36756 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
36757 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
36758 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
36759 (eval $ac_try) 2>&5
36760 ac_status=$?
36761 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
36762 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
36763 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
36764 (eval $ac_try) 2>&5
36765 ac_status=$?
36766 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
36767 test $ac_status = 0; }; }; then :
36768 rc=0
36769 else
36770 $as_echo "$as_me: failed program was:" >&5
36771 sed 's/^/| /' conftest.$ac_ext >&5
36772 rc=1
36773
36774
36775 fi
36776 rm -Rf build
36777
36778
36779 if test $rc -ne 0; then :
36780
36781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36782 $as_echo "no" >&6; }
36783
36784 else
36785 if test "x$enable_linux_builtin" != xyes; then
36786
36787 grep -q -E '[[:space:]]setattr_prepare[[:space:]]' \
36788 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
36789 rc=$?
36790 if test $rc -ne 0; then
36791 export=0
36792 for file in fs/attr.c; do
36793 grep -q -E "EXPORT_SYMBOL.*(setattr_prepare)" \
36794 "$LINUX/$file" 2>/dev/null
36795 rc=$?
36796 if test $rc -eq 0; then
36797 export=1
36798 break;
36799 fi
36800 done
36801 if test $export -eq 0; then :
36802 rc=1
36803 else :
36804 rc=0
36805 fi
36806 else :
36807 rc=0
36808 fi
36809
36810 fi
36811 if test $rc -ne 0; then :
36812
36813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36814 $as_echo "no" >&6; }
36815
36816 else :
36817
36818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36819 $as_echo "yes" >&6; }
36820
36821 $as_echo "#define HAVE_SETATTR_PREPARE 1" >>confdefs.h
36822
36823
36824 fi
36825 fi
36826
36827
36828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether insert_inode_locked() is available" >&5
36829 $as_echo_n "checking whether insert_inode_locked() is available... " >&6; }
36830
36831
36832
36833 cat confdefs.h - <<_ACEOF >conftest.c
36834
36835
36836 #include <linux/fs.h>
36837
36838 int
36839 main (void)
36840 {
36841
36842 insert_inode_locked(NULL);
36843
36844 ;
36845 return 0;
36846 }
36847
36848 _ACEOF
36849
36850
36851
36852 cat - <<_ACEOF >conftest.h
36853
36854 _ACEOF
36855
36856
36857 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
36858 echo "obj-m := conftest.o" >build/Makefile
36859 modpost_flag=''
36860 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
36861 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
36862 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
36863 (eval $ac_try) 2>&5
36864 ac_status=$?
36865 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
36866 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
36867 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
36868 (eval $ac_try) 2>&5
36869 ac_status=$?
36870 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
36871 test $ac_status = 0; }; }; then :
36872 rc=0
36873 else
36874 $as_echo "$as_me: failed program was:" >&5
36875 sed 's/^/| /' conftest.$ac_ext >&5
36876 rc=1
36877
36878
36879 fi
36880 rm -Rf build
36881
36882
36883 if test $rc -ne 0; then :
36884
36885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36886 $as_echo "no" >&6; }
36887
36888 else
36889 if test "x$enable_linux_builtin" != xyes; then
36890
36891 grep -q -E '[[:space:]]insert_inode_locked[[:space:]]' \
36892 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
36893 rc=$?
36894 if test $rc -ne 0; then
36895 export=0
36896 for file in fs/inode.c; do
36897 grep -q -E "EXPORT_SYMBOL.*(insert_inode_locked)" \
36898 "$LINUX/$file" 2>/dev/null
36899 rc=$?
36900 if test $rc -eq 0; then
36901 export=1
36902 break;
36903 fi
36904 done
36905 if test $export -eq 0; then :
36906 rc=1
36907 else :
36908 rc=0
36909 fi
36910 else :
36911 rc=0
36912 fi
36913
36914 fi
36915 if test $rc -ne 0; then :
36916
36917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36918 $as_echo "no" >&6; }
36919
36920 else :
36921
36922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36923 $as_echo "yes" >&6; }
36924
36925 $as_echo "#define HAVE_INSERT_INODE_LOCKED 1" >>confdefs.h
36926
36927
36928 fi
36929 fi
36930
36931
36932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether d_make_root() is available" >&5
36933 $as_echo_n "checking whether d_make_root() is available... " >&6; }
36934
36935
36936
36937 cat confdefs.h - <<_ACEOF >conftest.c
36938
36939
36940 #include <linux/dcache.h>
36941
36942 int
36943 main (void)
36944 {
36945
36946 d_make_root(NULL);
36947
36948 ;
36949 return 0;
36950 }
36951
36952 _ACEOF
36953
36954
36955
36956 cat - <<_ACEOF >conftest.h
36957
36958 _ACEOF
36959
36960
36961 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
36962 echo "obj-m := conftest.o" >build/Makefile
36963 modpost_flag=''
36964 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
36965 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
36966 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
36967 (eval $ac_try) 2>&5
36968 ac_status=$?
36969 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
36970 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
36971 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
36972 (eval $ac_try) 2>&5
36973 ac_status=$?
36974 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
36975 test $ac_status = 0; }; }; then :
36976 rc=0
36977 else
36978 $as_echo "$as_me: failed program was:" >&5
36979 sed 's/^/| /' conftest.$ac_ext >&5
36980 rc=1
36981
36982
36983 fi
36984 rm -Rf build
36985
36986
36987 if test $rc -ne 0; then :
36988
36989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36990 $as_echo "no" >&6; }
36991
36992 else
36993 if test "x$enable_linux_builtin" != xyes; then
36994
36995 grep -q -E '[[:space:]]d_make_root[[:space:]]' \
36996 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
36997 rc=$?
36998 if test $rc -ne 0; then
36999 export=0
37000 for file in fs/dcache.c; do
37001 grep -q -E "EXPORT_SYMBOL.*(d_make_root)" \
37002 "$LINUX/$file" 2>/dev/null
37003 rc=$?
37004 if test $rc -eq 0; then
37005 export=1
37006 break;
37007 fi
37008 done
37009 if test $export -eq 0; then :
37010 rc=1
37011 else :
37012 rc=0
37013 fi
37014 else :
37015 rc=0
37016 fi
37017
37018 fi
37019 if test $rc -ne 0; then :
37020
37021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37022 $as_echo "no" >&6; }
37023
37024 else :
37025
37026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37027 $as_echo "yes" >&6; }
37028
37029 $as_echo "#define HAVE_D_MAKE_ROOT 1" >>confdefs.h
37030
37031
37032 fi
37033 fi
37034
37035
37036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether d_obtain_alias() is available" >&5
37037 $as_echo_n "checking whether d_obtain_alias() is available... " >&6; }
37038
37039
37040
37041 cat confdefs.h - <<_ACEOF >conftest.c
37042
37043
37044 #include <linux/dcache.h>
37045
37046 int
37047 main (void)
37048 {
37049
37050 d_obtain_alias(NULL);
37051
37052 ;
37053 return 0;
37054 }
37055
37056 _ACEOF
37057
37058
37059
37060 cat - <<_ACEOF >conftest.h
37061
37062 _ACEOF
37063
37064
37065 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
37066 echo "obj-m := conftest.o" >build/Makefile
37067 modpost_flag=''
37068 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
37069 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
37070 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
37071 (eval $ac_try) 2>&5
37072 ac_status=$?
37073 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
37074 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
37075 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
37076 (eval $ac_try) 2>&5
37077 ac_status=$?
37078 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
37079 test $ac_status = 0; }; }; then :
37080 rc=0
37081 else
37082 $as_echo "$as_me: failed program was:" >&5
37083 sed 's/^/| /' conftest.$ac_ext >&5
37084 rc=1
37085
37086
37087 fi
37088 rm -Rf build
37089
37090
37091 if test $rc -ne 0; then :
37092
37093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37094 $as_echo "no" >&6; }
37095
37096 else
37097 if test "x$enable_linux_builtin" != xyes; then
37098
37099 grep -q -E '[[:space:]]d_obtain_alias[[:space:]]' \
37100 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
37101 rc=$?
37102 if test $rc -ne 0; then
37103 export=0
37104 for file in fs/dcache.c; do
37105 grep -q -E "EXPORT_SYMBOL.*(d_obtain_alias)" \
37106 "$LINUX/$file" 2>/dev/null
37107 rc=$?
37108 if test $rc -eq 0; then
37109 export=1
37110 break;
37111 fi
37112 done
37113 if test $export -eq 0; then :
37114 rc=1
37115 else :
37116 rc=0
37117 fi
37118 else :
37119 rc=0
37120 fi
37121
37122 fi
37123 if test $rc -ne 0; then :
37124
37125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37126 $as_echo "no" >&6; }
37127
37128 else :
37129
37130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37131 $as_echo "yes" >&6; }
37132
37133 $as_echo "#define HAVE_D_OBTAIN_ALIAS 1" >>confdefs.h
37134
37135
37136 fi
37137 fi
37138
37139
37140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether d_prune_aliases() is available" >&5
37141 $as_echo_n "checking whether d_prune_aliases() is available... " >&6; }
37142
37143
37144
37145 cat confdefs.h - <<_ACEOF >conftest.c
37146
37147
37148 #include <linux/dcache.h>
37149
37150 int
37151 main (void)
37152 {
37153
37154 struct inode *ip = NULL;
37155 d_prune_aliases(ip);
37156
37157 ;
37158 return 0;
37159 }
37160
37161 _ACEOF
37162
37163
37164
37165 cat - <<_ACEOF >conftest.h
37166
37167 _ACEOF
37168
37169
37170 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
37171 echo "obj-m := conftest.o" >build/Makefile
37172 modpost_flag=''
37173 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
37174 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
37175 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
37176 (eval $ac_try) 2>&5
37177 ac_status=$?
37178 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
37179 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
37180 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
37181 (eval $ac_try) 2>&5
37182 ac_status=$?
37183 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
37184 test $ac_status = 0; }; }; then :
37185 rc=0
37186 else
37187 $as_echo "$as_me: failed program was:" >&5
37188 sed 's/^/| /' conftest.$ac_ext >&5
37189 rc=1
37190
37191
37192 fi
37193 rm -Rf build
37194
37195
37196 if test $rc -ne 0; then :
37197
37198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37199 $as_echo "no" >&6; }
37200
37201 else
37202 if test "x$enable_linux_builtin" != xyes; then
37203
37204 grep -q -E '[[:space:]]d_prune_aliases[[:space:]]' \
37205 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
37206 rc=$?
37207 if test $rc -ne 0; then
37208 export=0
37209 for file in fs/dcache.c; do
37210 grep -q -E "EXPORT_SYMBOL.*(d_prune_aliases)" \
37211 "$LINUX/$file" 2>/dev/null
37212 rc=$?
37213 if test $rc -eq 0; then
37214 export=1
37215 break;
37216 fi
37217 done
37218 if test $export -eq 0; then :
37219 rc=1
37220 else :
37221 rc=0
37222 fi
37223 else :
37224 rc=0
37225 fi
37226
37227 fi
37228 if test $rc -ne 0; then :
37229
37230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37231 $as_echo "no" >&6; }
37232
37233 else :
37234
37235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37236 $as_echo "yes" >&6; }
37237
37238 $as_echo "#define HAVE_D_PRUNE_ALIASES 1" >>confdefs.h
37239
37240
37241 fi
37242 fi
37243
37244
37245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether d_set_d_op() is available" >&5
37246 $as_echo_n "checking whether d_set_d_op() is available... " >&6; }
37247
37248
37249
37250 cat confdefs.h - <<_ACEOF >conftest.c
37251
37252
37253 #include <linux/dcache.h>
37254
37255 int
37256 main (void)
37257 {
37258
37259 d_set_d_op(NULL, NULL);
37260
37261 ;
37262 return 0;
37263 }
37264
37265 _ACEOF
37266
37267
37268
37269 cat - <<_ACEOF >conftest.h
37270
37271 _ACEOF
37272
37273
37274 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
37275 echo "obj-m := conftest.o" >build/Makefile
37276 modpost_flag=''
37277 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
37278 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
37279 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
37280 (eval $ac_try) 2>&5
37281 ac_status=$?
37282 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
37283 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
37284 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
37285 (eval $ac_try) 2>&5
37286 ac_status=$?
37287 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
37288 test $ac_status = 0; }; }; then :
37289 rc=0
37290 else
37291 $as_echo "$as_me: failed program was:" >&5
37292 sed 's/^/| /' conftest.$ac_ext >&5
37293 rc=1
37294
37295
37296 fi
37297 rm -Rf build
37298
37299
37300 if test $rc -ne 0; then :
37301
37302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37303 $as_echo "no" >&6; }
37304
37305 else
37306 if test "x$enable_linux_builtin" != xyes; then
37307
37308 grep -q -E '[[:space:]]d_set_d_op[[:space:]]' \
37309 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
37310 rc=$?
37311 if test $rc -ne 0; then
37312 export=0
37313 for file in fs/dcache.c; do
37314 grep -q -E "EXPORT_SYMBOL.*(d_set_d_op)" \
37315 "$LINUX/$file" 2>/dev/null
37316 rc=$?
37317 if test $rc -eq 0; then
37318 export=1
37319 break;
37320 fi
37321 done
37322 if test $export -eq 0; then :
37323 rc=1
37324 else :
37325 rc=0
37326 fi
37327 else :
37328 rc=0
37329 fi
37330
37331 fi
37332 if test $rc -ne 0; then :
37333
37334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37335 $as_echo "no" >&6; }
37336
37337 else :
37338
37339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37340 $as_echo "yes" >&6; }
37341
37342 $as_echo "#define HAVE_D_SET_D_OP 1" >>confdefs.h
37343
37344
37345 fi
37346 fi
37347
37348
37349
37350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether dops->d_revalidate() takes struct nameidata" >&5
37351 $as_echo_n "checking whether dops->d_revalidate() takes struct nameidata... " >&6; }
37352
37353
37354 cat confdefs.h - <<_ACEOF >conftest.c
37355
37356
37357 #include <linux/dcache.h>
37358
37359 int revalidate (struct dentry *dentry,
37360 struct nameidata *nidata) { return 0; }
37361
37362 static const struct dentry_operations
37363 dops __attribute__ ((unused)) = {
37364 .d_revalidate = revalidate,
37365 };
37366
37367 int
37368 main (void)
37369 {
37370
37371
37372 ;
37373 return 0;
37374 }
37375
37376 _ACEOF
37377
37378
37379
37380 cat - <<_ACEOF >conftest.h
37381
37382 _ACEOF
37383
37384
37385 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
37386 echo "obj-m := conftest.o" >build/Makefile
37387 modpost_flag=''
37388 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
37389 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
37390 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
37391 (eval $ac_try) 2>&5
37392 ac_status=$?
37393 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
37394 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
37395 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
37396 (eval $ac_try) 2>&5
37397 ac_status=$?
37398 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
37399 test $ac_status = 0; }; }; then :
37400
37401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37402 $as_echo "yes" >&6; }
37403
37404 $as_echo "#define HAVE_D_REVALIDATE_NAMEIDATA 1" >>confdefs.h
37405
37406
37407 else
37408 $as_echo "$as_me: failed program was:" >&5
37409 sed 's/^/| /' conftest.$ac_ext >&5
37410
37411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37412 $as_echo "no" >&6; }
37413
37414
37415
37416 fi
37417 rm -Rf build
37418
37419
37420
37421
37422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether dentry uses const struct dentry_operations" >&5
37423 $as_echo_n "checking whether dentry uses const struct dentry_operations... " >&6; }
37424
37425
37426 cat confdefs.h - <<_ACEOF >conftest.c
37427
37428
37429 #include <linux/dcache.h>
37430
37431 const struct dentry_operations test_d_op = {
37432 .d_revalidate = NULL,
37433 };
37434
37435 int
37436 main (void)
37437 {
37438
37439 struct dentry d __attribute__ ((unused));
37440
37441 d.d_op = &test_d_op;
37442
37443 ;
37444 return 0;
37445 }
37446
37447 _ACEOF
37448
37449
37450
37451 cat - <<_ACEOF >conftest.h
37452
37453 _ACEOF
37454
37455
37456 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
37457 echo "obj-m := conftest.o" >build/Makefile
37458 modpost_flag=''
37459 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
37460 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
37461 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
37462 (eval $ac_try) 2>&5
37463 ac_status=$?
37464 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
37465 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
37466 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
37467 (eval $ac_try) 2>&5
37468 ac_status=$?
37469 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
37470 test $ac_status = 0; }; }; then :
37471
37472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37473 $as_echo "yes" >&6; }
37474
37475 $as_echo "#define HAVE_CONST_DENTRY_OPERATIONS 1" >>confdefs.h
37476
37477
37478 else
37479 $as_echo "$as_me: failed program was:" >&5
37480 sed 's/^/| /' conftest.$ac_ext >&5
37481
37482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37483 $as_echo "no" >&6; }
37484
37485
37486
37487 fi
37488 rm -Rf build
37489
37490
37491
37492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether truncate_setsize() is available" >&5
37493 $as_echo_n "checking whether truncate_setsize() is available... " >&6; }
37494
37495
37496
37497 cat confdefs.h - <<_ACEOF >conftest.c
37498
37499
37500 #include <linux/mm.h>
37501
37502 int
37503 main (void)
37504 {
37505
37506 truncate_setsize(NULL, 0);
37507
37508 ;
37509 return 0;
37510 }
37511
37512 _ACEOF
37513
37514
37515
37516 cat - <<_ACEOF >conftest.h
37517
37518 _ACEOF
37519
37520
37521 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
37522 echo "obj-m := conftest.o" >build/Makefile
37523 modpost_flag=''
37524 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
37525 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
37526 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
37527 (eval $ac_try) 2>&5
37528 ac_status=$?
37529 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
37530 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
37531 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
37532 (eval $ac_try) 2>&5
37533 ac_status=$?
37534 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
37535 test $ac_status = 0; }; }; then :
37536 rc=0
37537 else
37538 $as_echo "$as_me: failed program was:" >&5
37539 sed 's/^/| /' conftest.$ac_ext >&5
37540 rc=1
37541
37542
37543 fi
37544 rm -Rf build
37545
37546
37547 if test $rc -ne 0; then :
37548
37549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37550 $as_echo "no" >&6; }
37551
37552 else
37553 if test "x$enable_linux_builtin" != xyes; then
37554
37555 grep -q -E '[[:space:]]truncate_setsize[[:space:]]' \
37556 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
37557 rc=$?
37558 if test $rc -ne 0; then
37559 export=0
37560 for file in mm/truncate.c; do
37561 grep -q -E "EXPORT_SYMBOL.*(truncate_setsize)" \
37562 "$LINUX/$file" 2>/dev/null
37563 rc=$?
37564 if test $rc -eq 0; then
37565 export=1
37566 break;
37567 fi
37568 done
37569 if test $export -eq 0; then :
37570 rc=1
37571 else :
37572 rc=0
37573 fi
37574 else :
37575 rc=0
37576 fi
37577
37578 fi
37579 if test $rc -ne 0; then :
37580
37581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37582 $as_echo "no" >&6; }
37583
37584 else :
37585
37586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37587 $as_echo "yes" >&6; }
37588
37589 $as_echo "#define HAVE_TRUNCATE_SETSIZE 1" >>confdefs.h
37590
37591
37592 fi
37593 fi
37594
37595
37596
37597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether security_inode_init_security wants 6 args" >&5
37598 $as_echo_n "checking whether security_inode_init_security wants 6 args... " >&6; }
37599
37600
37601 cat confdefs.h - <<_ACEOF >conftest.c
37602
37603
37604 #include <linux/security.h>
37605
37606 int
37607 main (void)
37608 {
37609
37610 struct inode *ip __attribute__ ((unused)) = NULL;
37611 struct inode *dip __attribute__ ((unused)) = NULL;
37612 const struct qstr *str __attribute__ ((unused)) = NULL;
37613 char *name __attribute__ ((unused)) = NULL;
37614 void *value __attribute__ ((unused)) = NULL;
37615 size_t len __attribute__ ((unused)) = 0;
37616
37617 security_inode_init_security(ip, dip, str, &name, &value, &len);
37618
37619 ;
37620 return 0;
37621 }
37622
37623 _ACEOF
37624
37625
37626
37627 cat - <<_ACEOF >conftest.h
37628
37629 _ACEOF
37630
37631
37632 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
37633 echo "obj-m := conftest.o" >build/Makefile
37634 modpost_flag=''
37635 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
37636 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
37637 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
37638 (eval $ac_try) 2>&5
37639 ac_status=$?
37640 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
37641 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
37642 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
37643 (eval $ac_try) 2>&5
37644 ac_status=$?
37645 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
37646 test $ac_status = 0; }; }; then :
37647
37648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37649 $as_echo "yes" >&6; }
37650
37651 $as_echo "#define HAVE_6ARGS_SECURITY_INODE_INIT_SECURITY 1" >>confdefs.h
37652
37653
37654 else
37655 $as_echo "$as_me: failed program was:" >&5
37656 sed 's/^/| /' conftest.$ac_ext >&5
37657
37658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37659 $as_echo "no" >&6; }
37660
37661
37662
37663 fi
37664 rm -Rf build
37665
37666
37667
37668
37669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether security_inode_init_security wants callback" >&5
37670 $as_echo_n "checking whether security_inode_init_security wants callback... " >&6; }
37671
37672
37673 cat confdefs.h - <<_ACEOF >conftest.c
37674
37675
37676 #include <linux/security.h>
37677
37678 int
37679 main (void)
37680 {
37681
37682 struct inode *ip __attribute__ ((unused)) = NULL;
37683 struct inode *dip __attribute__ ((unused)) = NULL;
37684 const struct qstr *str __attribute__ ((unused)) = NULL;
37685 initxattrs func __attribute__ ((unused)) = NULL;
37686
37687 security_inode_init_security(ip, dip, str, func, NULL);
37688
37689 ;
37690 return 0;
37691 }
37692
37693 _ACEOF
37694
37695
37696
37697 cat - <<_ACEOF >conftest.h
37698
37699 _ACEOF
37700
37701
37702 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
37703 echo "obj-m := conftest.o" >build/Makefile
37704 modpost_flag=''
37705 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
37706 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
37707 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
37708 (eval $ac_try) 2>&5
37709 ac_status=$?
37710 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
37711 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
37712 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
37713 (eval $ac_try) 2>&5
37714 ac_status=$?
37715 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
37716 test $ac_status = 0; }; }; then :
37717
37718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37719 $as_echo "yes" >&6; }
37720
37721 $as_echo "#define HAVE_CALLBACK_SECURITY_INODE_INIT_SECURITY 1" >>confdefs.h
37722
37723
37724 else
37725 $as_echo "$as_me: failed program was:" >&5
37726 sed 's/^/| /' conftest.$ac_ext >&5
37727
37728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37729 $as_echo "no" >&6; }
37730
37731
37732
37733 fi
37734 rm -Rf build
37735
37736
37737
37738
37739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fst->mount() exists" >&5
37740 $as_echo_n "checking whether fst->mount() exists... " >&6; }
37741
37742
37743 cat confdefs.h - <<_ACEOF >conftest.c
37744
37745
37746 #include <linux/fs.h>
37747
37748 static struct dentry *
37749 mount(struct file_system_type *fs_type, int flags,
37750 const char *osname, void *data) {
37751 struct dentry *d = NULL;
37752 return (d);
37753 }
37754
37755 static struct file_system_type fst __attribute__ ((unused)) = {
37756 .mount = mount,
37757 };
37758
37759 int
37760 main (void)
37761 {
37762
37763
37764 ;
37765 return 0;
37766 }
37767
37768 _ACEOF
37769
37770
37771
37772 cat - <<_ACEOF >conftest.h
37773
37774 _ACEOF
37775
37776
37777 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
37778 echo "obj-m := conftest.o" >build/Makefile
37779 modpost_flag=''
37780 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
37781 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
37782 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
37783 (eval $ac_try) 2>&5
37784 ac_status=$?
37785 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
37786 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
37787 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
37788 (eval $ac_try) 2>&5
37789 ac_status=$?
37790 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
37791 test $ac_status = 0; }; }; then :
37792
37793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37794 $as_echo "yes" >&6; }
37795
37796 $as_echo "#define HAVE_FST_MOUNT 1" >>confdefs.h
37797
37798
37799 else
37800 $as_echo "$as_me: failed program was:" >&5
37801 sed 's/^/| /' conftest.$ac_ext >&5
37802
37803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37804 $as_echo "no" >&6; }
37805
37806
37807
37808 fi
37809 rm -Rf build
37810
37811
37812
37813
37814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether super_block has s_shrink" >&5
37815 $as_echo_n "checking whether super_block has s_shrink... " >&6; }
37816
37817
37818 cat confdefs.h - <<_ACEOF >conftest.c
37819
37820
37821 #include <linux/fs.h>
37822
37823 int shrink(struct shrinker *s, struct shrink_control *sc)
37824 { return 0; }
37825
37826 static const struct super_block
37827 sb __attribute__ ((unused)) = {
37828 .s_shrink.shrink = shrink,
37829 .s_shrink.seeks = DEFAULT_SEEKS,
37830 .s_shrink.batch = 0,
37831 };
37832
37833 int
37834 main (void)
37835 {
37836
37837
37838 ;
37839 return 0;
37840 }
37841
37842 _ACEOF
37843
37844
37845
37846 cat - <<_ACEOF >conftest.h
37847
37848 _ACEOF
37849
37850
37851 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
37852 echo "obj-m := conftest.o" >build/Makefile
37853 modpost_flag=''
37854 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
37855 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
37856 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
37857 (eval $ac_try) 2>&5
37858 ac_status=$?
37859 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
37860 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
37861 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
37862 (eval $ac_try) 2>&5
37863 ac_status=$?
37864 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
37865 test $ac_status = 0; }; }; then :
37866
37867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37868 $as_echo "yes" >&6; }
37869
37870 $as_echo "#define HAVE_SHRINK 1" >>confdefs.h
37871
37872
37873
37874 else
37875 $as_echo "$as_me: failed program was:" >&5
37876 sed 's/^/| /' conftest.$ac_ext >&5
37877
37878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37879 $as_echo "no" >&6; }
37880
37881
37882
37883 fi
37884 rm -Rf build
37885
37886
37887
37888
37889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether shrink_control has nid" >&5
37890 $as_echo_n "checking whether shrink_control has nid... " >&6; }
37891
37892
37893 cat confdefs.h - <<_ACEOF >conftest.c
37894
37895
37896 #include <linux/fs.h>
37897
37898 int
37899 main (void)
37900 {
37901
37902 struct shrink_control sc __attribute__ ((unused));
37903 unsigned long scnidsize __attribute__ ((unused)) =
37904 sizeof(sc.nid);
37905
37906 ;
37907 return 0;
37908 }
37909
37910 _ACEOF
37911
37912
37913
37914 cat - <<_ACEOF >conftest.h
37915
37916 _ACEOF
37917
37918
37919 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
37920 echo "obj-m := conftest.o" >build/Makefile
37921 modpost_flag=''
37922 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
37923 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
37924 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
37925 (eval $ac_try) 2>&5
37926 ac_status=$?
37927 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
37928 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
37929 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
37930 (eval $ac_try) 2>&5
37931 ac_status=$?
37932 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
37933 test $ac_status = 0; }; }; then :
37934
37935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37936 $as_echo "yes" >&6; }
37937
37938 $as_echo "#define SHRINK_CONTROL_HAS_NID 1" >>confdefs.h
37939
37940
37941 else
37942 $as_echo "$as_me: failed program was:" >&5
37943 sed 's/^/| /' conftest.$ac_ext >&5
37944
37945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37946 $as_echo "no" >&6; }
37947
37948
37949
37950 fi
37951 rm -Rf build
37952
37953
37954
37955
37956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether super_block has s_instances list_head" >&5
37957 $as_echo_n "checking whether super_block has s_instances list_head... " >&6; }
37958
37959
37960 cat confdefs.h - <<_ACEOF >conftest.c
37961
37962
37963 #include <linux/fs.h>
37964
37965 int
37966 main (void)
37967 {
37968
37969 struct super_block sb __attribute__ ((unused));
37970
37971 INIT_LIST_HEAD(&sb.s_instances);
37972
37973 ;
37974 return 0;
37975 }
37976
37977 _ACEOF
37978
37979
37980
37981 cat - <<_ACEOF >conftest.h
37982
37983 _ACEOF
37984
37985
37986 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
37987 echo "obj-m := conftest.o" >build/Makefile
37988 modpost_flag=''
37989 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
37990 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
37991 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
37992 (eval $ac_try) 2>&5
37993 ac_status=$?
37994 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
37995 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
37996 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
37997 (eval $ac_try) 2>&5
37998 ac_status=$?
37999 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
38000 test $ac_status = 0; }; }; then :
38001
38002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38003 $as_echo "yes" >&6; }
38004
38005 $as_echo "#define HAVE_S_INSTANCES_LIST_HEAD 1" >>confdefs.h
38006
38007
38008 else
38009 $as_echo "$as_me: failed program was:" >&5
38010 sed 's/^/| /' conftest.$ac_ext >&5
38011
38012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38013 $as_echo "no" >&6; }
38014
38015
38016
38017 fi
38018 rm -Rf build
38019
38020
38021
38022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether super_block has s_d_op" >&5
38023 $as_echo_n "checking whether super_block has s_d_op... " >&6; }
38024
38025
38026 cat confdefs.h - <<_ACEOF >conftest.c
38027
38028
38029 #include <linux/fs.h>
38030
38031 int
38032 main (void)
38033 {
38034
38035 struct super_block sb __attribute__ ((unused));
38036 sb.s_d_op = NULL;
38037
38038 ;
38039 return 0;
38040 }
38041
38042 _ACEOF
38043
38044
38045
38046 cat - <<_ACEOF >conftest.h
38047
38048 _ACEOF
38049
38050
38051 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
38052 echo "obj-m := conftest.o" >build/Makefile
38053 modpost_flag=''
38054 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
38055 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
38056 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
38057 (eval $ac_try) 2>&5
38058 ac_status=$?
38059 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
38060 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
38061 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
38062 (eval $ac_try) 2>&5
38063 ac_status=$?
38064 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
38065 test $ac_status = 0; }; }; then :
38066
38067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38068 $as_echo "yes" >&6; }
38069
38070 $as_echo "#define HAVE_S_D_OP 1" >>confdefs.h
38071
38072
38073 else
38074 $as_echo "$as_me: failed program was:" >&5
38075 sed 's/^/| /' conftest.$ac_ext >&5
38076
38077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38078 $as_echo "no" >&6; }
38079
38080
38081
38082 fi
38083 rm -Rf build
38084
38085
38086
38087
38088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether super_setup_bdi_name() exists" >&5
38089 $as_echo_n "checking whether super_setup_bdi_name() exists... " >&6; }
38090
38091
38092
38093 cat confdefs.h - <<_ACEOF >conftest.c
38094
38095
38096 #include <linux/fs.h>
38097 struct super_block sb;
38098
38099 int
38100 main (void)
38101 {
38102
38103 char *name = "bdi";
38104 atomic_long_t zfs_bdi_seq;
38105 int error __attribute__((unused)) =
38106 super_setup_bdi_name(&sb, "%.28s-%ld", name, atomic_long_inc_return(&zfs_bdi_seq));
38107
38108 ;
38109 return 0;
38110 }
38111
38112 _ACEOF
38113
38114
38115
38116 cat - <<_ACEOF >conftest.h
38117
38118 _ACEOF
38119
38120
38121 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
38122 echo "obj-m := conftest.o" >build/Makefile
38123 modpost_flag=''
38124 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
38125 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
38126 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
38127 (eval $ac_try) 2>&5
38128 ac_status=$?
38129 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
38130 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
38131 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
38132 (eval $ac_try) 2>&5
38133 ac_status=$?
38134 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
38135 test $ac_status = 0; }; }; then :
38136 rc=0
38137 else
38138 $as_echo "$as_me: failed program was:" >&5
38139 sed 's/^/| /' conftest.$ac_ext >&5
38140 rc=1
38141
38142
38143 fi
38144 rm -Rf build
38145
38146
38147 if test $rc -ne 0; then :
38148
38149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38150 $as_echo "no" >&6; }
38151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether bdi_setup_and_register() wants 2 args" >&5
38152 $as_echo_n "checking whether bdi_setup_and_register() wants 2 args... " >&6; }
38153
38154
38155
38156 cat confdefs.h - <<_ACEOF >conftest.c
38157
38158
38159 #include <linux/backing-dev.h>
38160 struct backing_dev_info bdi;
38161
38162 int
38163 main (void)
38164 {
38165
38166 char *name = "bdi";
38167 int error __attribute__((unused)) =
38168 bdi_setup_and_register(&bdi, name);
38169
38170 ;
38171 return 0;
38172 }
38173
38174 _ACEOF
38175
38176
38177
38178 cat - <<_ACEOF >conftest.h
38179
38180 _ACEOF
38181
38182
38183 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
38184 echo "obj-m := conftest.o" >build/Makefile
38185 modpost_flag=''
38186 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
38187 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
38188 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
38189 (eval $ac_try) 2>&5
38190 ac_status=$?
38191 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
38192 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
38193 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
38194 (eval $ac_try) 2>&5
38195 ac_status=$?
38196 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
38197 test $ac_status = 0; }; }; then :
38198 rc=0
38199 else
38200 $as_echo "$as_me: failed program was:" >&5
38201 sed 's/^/| /' conftest.$ac_ext >&5
38202 rc=1
38203
38204
38205 fi
38206 rm -Rf build
38207
38208
38209 if test $rc -ne 0; then :
38210
38211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38212 $as_echo "no" >&6; }
38213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether bdi_setup_and_register() wants 3 args" >&5
38214 $as_echo_n "checking whether bdi_setup_and_register() wants 3 args... " >&6; }
38215
38216
38217
38218 cat confdefs.h - <<_ACEOF >conftest.c
38219
38220
38221 #include <linux/backing-dev.h>
38222 struct backing_dev_info bdi;
38223
38224 int
38225 main (void)
38226 {
38227
38228 char *name = "bdi";
38229 unsigned int cap = BDI_CAP_MAP_COPY;
38230 int error __attribute__((unused)) =
38231 bdi_setup_and_register(&bdi, name, cap);
38232
38233 ;
38234 return 0;
38235 }
38236
38237 _ACEOF
38238
38239
38240
38241 cat - <<_ACEOF >conftest.h
38242
38243 _ACEOF
38244
38245
38246 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
38247 echo "obj-m := conftest.o" >build/Makefile
38248 modpost_flag=''
38249 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
38250 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
38251 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
38252 (eval $ac_try) 2>&5
38253 ac_status=$?
38254 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
38255 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
38256 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
38257 (eval $ac_try) 2>&5
38258 ac_status=$?
38259 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
38260 test $ac_status = 0; }; }; then :
38261 rc=0
38262 else
38263 $as_echo "$as_me: failed program was:" >&5
38264 sed 's/^/| /' conftest.$ac_ext >&5
38265 rc=1
38266
38267
38268 fi
38269 rm -Rf build
38270
38271
38272 if test $rc -ne 0; then :
38273
38274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38275 $as_echo "no" >&6; }
38276
38277 else
38278 if test "x$enable_linux_builtin" != xyes; then
38279
38280 grep -q -E '[[:space:]]bdi_setup_and_register[[:space:]]' \
38281 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
38282 rc=$?
38283 if test $rc -ne 0; then
38284 export=0
38285 for file in mm/backing-dev.c; do
38286 grep -q -E "EXPORT_SYMBOL.*(bdi_setup_and_register)" \
38287 "$LINUX/$file" 2>/dev/null
38288 rc=$?
38289 if test $rc -eq 0; then
38290 export=1
38291 break;
38292 fi
38293 done
38294 if test $export -eq 0; then :
38295 rc=1
38296 else :
38297 rc=0
38298 fi
38299 else :
38300 rc=0
38301 fi
38302
38303 fi
38304 if test $rc -ne 0; then :
38305
38306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38307 $as_echo "no" >&6; }
38308
38309 else :
38310
38311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38312 $as_echo "yes" >&6; }
38313
38314 $as_echo "#define HAVE_3ARGS_BDI_SETUP_AND_REGISTER 1" >>confdefs.h
38315
38316
38317 fi
38318 fi
38319
38320
38321 else
38322 if test "x$enable_linux_builtin" != xyes; then
38323
38324 grep -q -E '[[:space:]]bdi_setup_and_register[[:space:]]' \
38325 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
38326 rc=$?
38327 if test $rc -ne 0; then
38328 export=0
38329 for file in mm/backing-dev.c; do
38330 grep -q -E "EXPORT_SYMBOL.*(bdi_setup_and_register)" \
38331 "$LINUX/$file" 2>/dev/null
38332 rc=$?
38333 if test $rc -eq 0; then
38334 export=1
38335 break;
38336 fi
38337 done
38338 if test $export -eq 0; then :
38339 rc=1
38340 else :
38341 rc=0
38342 fi
38343 else :
38344 rc=0
38345 fi
38346
38347 fi
38348 if test $rc -ne 0; then :
38349
38350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38351 $as_echo "no" >&6; }
38352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether bdi_setup_and_register() wants 3 args" >&5
38353 $as_echo_n "checking whether bdi_setup_and_register() wants 3 args... " >&6; }
38354
38355
38356
38357 cat confdefs.h - <<_ACEOF >conftest.c
38358
38359
38360 #include <linux/backing-dev.h>
38361 struct backing_dev_info bdi;
38362
38363 int
38364 main (void)
38365 {
38366
38367 char *name = "bdi";
38368 unsigned int cap = BDI_CAP_MAP_COPY;
38369 int error __attribute__((unused)) =
38370 bdi_setup_and_register(&bdi, name, cap);
38371
38372 ;
38373 return 0;
38374 }
38375
38376 _ACEOF
38377
38378
38379
38380 cat - <<_ACEOF >conftest.h
38381
38382 _ACEOF
38383
38384
38385 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
38386 echo "obj-m := conftest.o" >build/Makefile
38387 modpost_flag=''
38388 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
38389 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
38390 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
38391 (eval $ac_try) 2>&5
38392 ac_status=$?
38393 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
38394 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
38395 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
38396 (eval $ac_try) 2>&5
38397 ac_status=$?
38398 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
38399 test $ac_status = 0; }; }; then :
38400 rc=0
38401 else
38402 $as_echo "$as_me: failed program was:" >&5
38403 sed 's/^/| /' conftest.$ac_ext >&5
38404 rc=1
38405
38406
38407 fi
38408 rm -Rf build
38409
38410
38411 if test $rc -ne 0; then :
38412
38413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38414 $as_echo "no" >&6; }
38415
38416 else
38417 if test "x$enable_linux_builtin" != xyes; then
38418
38419 grep -q -E '[[:space:]]bdi_setup_and_register[[:space:]]' \
38420 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
38421 rc=$?
38422 if test $rc -ne 0; then
38423 export=0
38424 for file in mm/backing-dev.c; do
38425 grep -q -E "EXPORT_SYMBOL.*(bdi_setup_and_register)" \
38426 "$LINUX/$file" 2>/dev/null
38427 rc=$?
38428 if test $rc -eq 0; then
38429 export=1
38430 break;
38431 fi
38432 done
38433 if test $export -eq 0; then :
38434 rc=1
38435 else :
38436 rc=0
38437 fi
38438 else :
38439 rc=0
38440 fi
38441
38442 fi
38443 if test $rc -ne 0; then :
38444
38445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38446 $as_echo "no" >&6; }
38447
38448 else :
38449
38450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38451 $as_echo "yes" >&6; }
38452
38453 $as_echo "#define HAVE_3ARGS_BDI_SETUP_AND_REGISTER 1" >>confdefs.h
38454
38455
38456 fi
38457 fi
38458
38459
38460 else :
38461
38462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38463 $as_echo "yes" >&6; }
38464
38465 $as_echo "#define HAVE_2ARGS_BDI_SETUP_AND_REGISTER 1" >>confdefs.h
38466
38467
38468 fi
38469 fi
38470
38471
38472 else
38473 if test "x$enable_linux_builtin" != xyes; then
38474
38475 grep -q -E '[[:space:]]super_setup_bdi_name[[:space:]]' \
38476 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
38477 rc=$?
38478 if test $rc -ne 0; then
38479 export=0
38480 for file in fs/super.c; do
38481 grep -q -E "EXPORT_SYMBOL.*(super_setup_bdi_name)" \
38482 "$LINUX/$file" 2>/dev/null
38483 rc=$?
38484 if test $rc -eq 0; then
38485 export=1
38486 break;
38487 fi
38488 done
38489 if test $export -eq 0; then :
38490 rc=1
38491 else :
38492 rc=0
38493 fi
38494 else :
38495 rc=0
38496 fi
38497
38498 fi
38499 if test $rc -ne 0; then :
38500
38501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38502 $as_echo "no" >&6; }
38503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether bdi_setup_and_register() wants 2 args" >&5
38504 $as_echo_n "checking whether bdi_setup_and_register() wants 2 args... " >&6; }
38505
38506
38507
38508 cat confdefs.h - <<_ACEOF >conftest.c
38509
38510
38511 #include <linux/backing-dev.h>
38512 struct backing_dev_info bdi;
38513
38514 int
38515 main (void)
38516 {
38517
38518 char *name = "bdi";
38519 int error __attribute__((unused)) =
38520 bdi_setup_and_register(&bdi, name);
38521
38522 ;
38523 return 0;
38524 }
38525
38526 _ACEOF
38527
38528
38529
38530 cat - <<_ACEOF >conftest.h
38531
38532 _ACEOF
38533
38534
38535 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
38536 echo "obj-m := conftest.o" >build/Makefile
38537 modpost_flag=''
38538 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
38539 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
38540 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
38541 (eval $ac_try) 2>&5
38542 ac_status=$?
38543 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
38544 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
38545 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
38546 (eval $ac_try) 2>&5
38547 ac_status=$?
38548 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
38549 test $ac_status = 0; }; }; then :
38550 rc=0
38551 else
38552 $as_echo "$as_me: failed program was:" >&5
38553 sed 's/^/| /' conftest.$ac_ext >&5
38554 rc=1
38555
38556
38557 fi
38558 rm -Rf build
38559
38560
38561 if test $rc -ne 0; then :
38562
38563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38564 $as_echo "no" >&6; }
38565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether bdi_setup_and_register() wants 3 args" >&5
38566 $as_echo_n "checking whether bdi_setup_and_register() wants 3 args... " >&6; }
38567
38568
38569
38570 cat confdefs.h - <<_ACEOF >conftest.c
38571
38572
38573 #include <linux/backing-dev.h>
38574 struct backing_dev_info bdi;
38575
38576 int
38577 main (void)
38578 {
38579
38580 char *name = "bdi";
38581 unsigned int cap = BDI_CAP_MAP_COPY;
38582 int error __attribute__((unused)) =
38583 bdi_setup_and_register(&bdi, name, cap);
38584
38585 ;
38586 return 0;
38587 }
38588
38589 _ACEOF
38590
38591
38592
38593 cat - <<_ACEOF >conftest.h
38594
38595 _ACEOF
38596
38597
38598 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
38599 echo "obj-m := conftest.o" >build/Makefile
38600 modpost_flag=''
38601 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
38602 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
38603 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
38604 (eval $ac_try) 2>&5
38605 ac_status=$?
38606 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
38607 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
38608 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
38609 (eval $ac_try) 2>&5
38610 ac_status=$?
38611 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
38612 test $ac_status = 0; }; }; then :
38613 rc=0
38614 else
38615 $as_echo "$as_me: failed program was:" >&5
38616 sed 's/^/| /' conftest.$ac_ext >&5
38617 rc=1
38618
38619
38620 fi
38621 rm -Rf build
38622
38623
38624 if test $rc -ne 0; then :
38625
38626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38627 $as_echo "no" >&6; }
38628
38629 else
38630 if test "x$enable_linux_builtin" != xyes; then
38631
38632 grep -q -E '[[:space:]]bdi_setup_and_register[[:space:]]' \
38633 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
38634 rc=$?
38635 if test $rc -ne 0; then
38636 export=0
38637 for file in mm/backing-dev.c; do
38638 grep -q -E "EXPORT_SYMBOL.*(bdi_setup_and_register)" \
38639 "$LINUX/$file" 2>/dev/null
38640 rc=$?
38641 if test $rc -eq 0; then
38642 export=1
38643 break;
38644 fi
38645 done
38646 if test $export -eq 0; then :
38647 rc=1
38648 else :
38649 rc=0
38650 fi
38651 else :
38652 rc=0
38653 fi
38654
38655 fi
38656 if test $rc -ne 0; then :
38657
38658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38659 $as_echo "no" >&6; }
38660
38661 else :
38662
38663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38664 $as_echo "yes" >&6; }
38665
38666 $as_echo "#define HAVE_3ARGS_BDI_SETUP_AND_REGISTER 1" >>confdefs.h
38667
38668
38669 fi
38670 fi
38671
38672
38673 else
38674 if test "x$enable_linux_builtin" != xyes; then
38675
38676 grep -q -E '[[:space:]]bdi_setup_and_register[[:space:]]' \
38677 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
38678 rc=$?
38679 if test $rc -ne 0; then
38680 export=0
38681 for file in mm/backing-dev.c; do
38682 grep -q -E "EXPORT_SYMBOL.*(bdi_setup_and_register)" \
38683 "$LINUX/$file" 2>/dev/null
38684 rc=$?
38685 if test $rc -eq 0; then
38686 export=1
38687 break;
38688 fi
38689 done
38690 if test $export -eq 0; then :
38691 rc=1
38692 else :
38693 rc=0
38694 fi
38695 else :
38696 rc=0
38697 fi
38698
38699 fi
38700 if test $rc -ne 0; then :
38701
38702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38703 $as_echo "no" >&6; }
38704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether bdi_setup_and_register() wants 3 args" >&5
38705 $as_echo_n "checking whether bdi_setup_and_register() wants 3 args... " >&6; }
38706
38707
38708
38709 cat confdefs.h - <<_ACEOF >conftest.c
38710
38711
38712 #include <linux/backing-dev.h>
38713 struct backing_dev_info bdi;
38714
38715 int
38716 main (void)
38717 {
38718
38719 char *name = "bdi";
38720 unsigned int cap = BDI_CAP_MAP_COPY;
38721 int error __attribute__((unused)) =
38722 bdi_setup_and_register(&bdi, name, cap);
38723
38724 ;
38725 return 0;
38726 }
38727
38728 _ACEOF
38729
38730
38731
38732 cat - <<_ACEOF >conftest.h
38733
38734 _ACEOF
38735
38736
38737 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
38738 echo "obj-m := conftest.o" >build/Makefile
38739 modpost_flag=''
38740 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
38741 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
38742 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
38743 (eval $ac_try) 2>&5
38744 ac_status=$?
38745 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
38746 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
38747 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
38748 (eval $ac_try) 2>&5
38749 ac_status=$?
38750 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
38751 test $ac_status = 0; }; }; then :
38752 rc=0
38753 else
38754 $as_echo "$as_me: failed program was:" >&5
38755 sed 's/^/| /' conftest.$ac_ext >&5
38756 rc=1
38757
38758
38759 fi
38760 rm -Rf build
38761
38762
38763 if test $rc -ne 0; then :
38764
38765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38766 $as_echo "no" >&6; }
38767
38768 else
38769 if test "x$enable_linux_builtin" != xyes; then
38770
38771 grep -q -E '[[:space:]]bdi_setup_and_register[[:space:]]' \
38772 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
38773 rc=$?
38774 if test $rc -ne 0; then
38775 export=0
38776 for file in mm/backing-dev.c; do
38777 grep -q -E "EXPORT_SYMBOL.*(bdi_setup_and_register)" \
38778 "$LINUX/$file" 2>/dev/null
38779 rc=$?
38780 if test $rc -eq 0; then
38781 export=1
38782 break;
38783 fi
38784 done
38785 if test $export -eq 0; then :
38786 rc=1
38787 else :
38788 rc=0
38789 fi
38790 else :
38791 rc=0
38792 fi
38793
38794 fi
38795 if test $rc -ne 0; then :
38796
38797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38798 $as_echo "no" >&6; }
38799
38800 else :
38801
38802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38803 $as_echo "yes" >&6; }
38804
38805 $as_echo "#define HAVE_3ARGS_BDI_SETUP_AND_REGISTER 1" >>confdefs.h
38806
38807
38808 fi
38809 fi
38810
38811
38812 else :
38813
38814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38815 $as_echo "yes" >&6; }
38816
38817 $as_echo "#define HAVE_2ARGS_BDI_SETUP_AND_REGISTER 1" >>confdefs.h
38818
38819
38820 fi
38821 fi
38822
38823
38824 else :
38825
38826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38827 $as_echo "yes" >&6; }
38828
38829 $as_echo "#define HAVE_SUPER_SETUP_BDI_NAME 1" >>confdefs.h
38830
38831
38832 fi
38833 fi
38834
38835
38836
38837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether set_nlink() is available" >&5
38838 $as_echo_n "checking whether set_nlink() is available... " >&6; }
38839
38840
38841 cat confdefs.h - <<_ACEOF >conftest.c
38842
38843
38844 #include <linux/fs.h>
38845
38846 int
38847 main (void)
38848 {
38849
38850 struct inode node;
38851 unsigned int link = 0;
38852 (void) set_nlink(&node, link);
38853
38854 ;
38855 return 0;
38856 }
38857
38858 _ACEOF
38859
38860
38861
38862 cat - <<_ACEOF >conftest.h
38863
38864 _ACEOF
38865
38866
38867 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
38868 echo "obj-m := conftest.o" >build/Makefile
38869 modpost_flag=''
38870 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
38871 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
38872 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
38873 (eval $ac_try) 2>&5
38874 ac_status=$?
38875 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
38876 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
38877 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
38878 (eval $ac_try) 2>&5
38879 ac_status=$?
38880 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
38881 test $ac_status = 0; }; }; then :
38882
38883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38884 $as_echo "yes" >&6; }
38885
38886 $as_echo "#define HAVE_SET_NLINK 1" >>confdefs.h
38887
38888
38889 else
38890 $as_echo "$as_me: failed program was:" >&5
38891 sed 's/^/| /' conftest.$ac_ext >&5
38892
38893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38894 $as_echo "no" >&6; }
38895
38896
38897
38898 fi
38899 rm -Rf build
38900
38901
38902
38903
38904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether elevator_change() is available" >&5
38905 $as_echo_n "checking whether elevator_change() is available... " >&6; }
38906 tmp_flags="$EXTRA_KCFLAGS"
38907 EXTRA_KCFLAGS="${NO_UNUSED_BUT_SET_VARIABLE}"
38908
38909
38910 cat confdefs.h - <<_ACEOF >conftest.c
38911
38912
38913 #include <linux/blkdev.h>
38914 #include <linux/elevator.h>
38915
38916 int
38917 main (void)
38918 {
38919
38920 int ret;
38921 struct request_queue *q = NULL;
38922 char *elevator = NULL;
38923 ret = elevator_change(q, elevator);
38924
38925 ;
38926 return 0;
38927 }
38928
38929 _ACEOF
38930
38931
38932
38933 cat - <<_ACEOF >conftest.h
38934
38935 _ACEOF
38936
38937
38938 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
38939 echo "obj-m := conftest.o" >build/Makefile
38940 modpost_flag=''
38941 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
38942 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
38943 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
38944 (eval $ac_try) 2>&5
38945 ac_status=$?
38946 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
38947 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
38948 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
38949 (eval $ac_try) 2>&5
38950 ac_status=$?
38951 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
38952 test $ac_status = 0; }; }; then :
38953
38954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38955 $as_echo "yes" >&6; }
38956
38957 $as_echo "#define HAVE_ELEVATOR_CHANGE 1" >>confdefs.h
38958
38959
38960 else
38961 $as_echo "$as_me: failed program was:" >&5
38962 sed 's/^/| /' conftest.$ac_ext >&5
38963
38964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38965 $as_echo "no" >&6; }
38966
38967
38968
38969 fi
38970 rm -Rf build
38971
38972
38973 EXTRA_KCFLAGS="$tmp_flags"
38974
38975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sget() wants 5 args" >&5
38976 $as_echo_n "checking whether sget() wants 5 args... " >&6; }
38977
38978
38979 cat confdefs.h - <<_ACEOF >conftest.c
38980
38981
38982 #include <linux/fs.h>
38983
38984 int
38985 main (void)
38986 {
38987
38988 struct file_system_type *type = NULL;
38989 int (*test)(struct super_block *,void *) = NULL;
38990 int (*set)(struct super_block *,void *) = NULL;
38991 int flags = 0;
38992 void *data = NULL;
38993 (void) sget(type, test, set, flags, data);
38994
38995 ;
38996 return 0;
38997 }
38998
38999 _ACEOF
39000
39001
39002
39003 cat - <<_ACEOF >conftest.h
39004
39005 _ACEOF
39006
39007
39008 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
39009 echo "obj-m := conftest.o" >build/Makefile
39010 modpost_flag=''
39011 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
39012 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
39013 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
39014 (eval $ac_try) 2>&5
39015 ac_status=$?
39016 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
39017 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
39018 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
39019 (eval $ac_try) 2>&5
39020 ac_status=$?
39021 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
39022 test $ac_status = 0; }; }; then :
39023
39024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39025 $as_echo "yes" >&6; }
39026
39027 $as_echo "#define HAVE_5ARG_SGET 1" >>confdefs.h
39028
39029
39030 else
39031 $as_echo "$as_me: failed program was:" >&5
39032 sed 's/^/| /' conftest.$ac_ext >&5
39033
39034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39035 $as_echo "no" >&6; }
39036
39037
39038
39039 fi
39040 rm -Rf build
39041
39042
39043
39044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lseek_execute() is available" >&5
39045 $as_echo_n "checking whether lseek_execute() is available... " >&6; }
39046
39047
39048
39049 cat confdefs.h - <<_ACEOF >conftest.c
39050
39051
39052 #include <linux/fs.h>
39053
39054 int
39055 main (void)
39056 {
39057
39058 struct file *fp __attribute__ ((unused)) = NULL;
39059 struct inode *ip __attribute__ ((unused)) = NULL;
39060 loff_t offset __attribute__ ((unused)) = 0;
39061 loff_t maxsize __attribute__ ((unused)) = 0;
39062
39063 lseek_execute(fp, ip, offset, maxsize);
39064
39065 ;
39066 return 0;
39067 }
39068
39069 _ACEOF
39070
39071
39072
39073 cat - <<_ACEOF >conftest.h
39074
39075 _ACEOF
39076
39077
39078 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
39079 echo "obj-m := conftest.o" >build/Makefile
39080 modpost_flag=''
39081 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
39082 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
39083 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
39084 (eval $ac_try) 2>&5
39085 ac_status=$?
39086 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
39087 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
39088 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
39089 (eval $ac_try) 2>&5
39090 ac_status=$?
39091 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
39092 test $ac_status = 0; }; }; then :
39093 rc=0
39094 else
39095 $as_echo "$as_me: failed program was:" >&5
39096 sed 's/^/| /' conftest.$ac_ext >&5
39097 rc=1
39098
39099
39100 fi
39101 rm -Rf build
39102
39103
39104 if test $rc -ne 0; then :
39105
39106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39107 $as_echo "no" >&6; }
39108
39109 else
39110 if test "x$enable_linux_builtin" != xyes; then
39111
39112 grep -q -E '[[:space:]]lseek_exclusive[[:space:]]' \
39113 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
39114 rc=$?
39115 if test $rc -ne 0; then
39116 export=0
39117 for file in fs/read_write.c; do
39118 grep -q -E "EXPORT_SYMBOL.*(lseek_exclusive)" \
39119 "$LINUX/$file" 2>/dev/null
39120 rc=$?
39121 if test $rc -eq 0; then
39122 export=1
39123 break;
39124 fi
39125 done
39126 if test $export -eq 0; then :
39127 rc=1
39128 else :
39129 rc=0
39130 fi
39131 else :
39132 rc=0
39133 fi
39134
39135 fi
39136 if test $rc -ne 0; then :
39137
39138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39139 $as_echo "no" >&6; }
39140
39141 else :
39142
39143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39144 $as_echo "yes" >&6; }
39145
39146 $as_echo "#define HAVE_LSEEK_EXECUTE 1" >>confdefs.h
39147
39148
39149 fi
39150 fi
39151
39152
39153
39154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fops->iterate_shared() is available" >&5
39155 $as_echo_n "checking whether fops->iterate_shared() is available... " >&6; }
39156
39157
39158 cat confdefs.h - <<_ACEOF >conftest.c
39159
39160
39161 #include <linux/fs.h>
39162 int iterate(struct file *filp, struct dir_context * context)
39163 { return 0; }
39164
39165 static const struct file_operations fops
39166 __attribute__ ((unused)) = {
39167 .iterate_shared = iterate,
39168 };
39169
39170 int
39171 main (void)
39172 {
39173
39174
39175 ;
39176 return 0;
39177 }
39178
39179 _ACEOF
39180
39181
39182
39183 cat - <<_ACEOF >conftest.h
39184
39185 _ACEOF
39186
39187
39188 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
39189 echo "obj-m := conftest.o" >build/Makefile
39190 modpost_flag=''
39191 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
39192 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
39193 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
39194 (eval $ac_try) 2>&5
39195 ac_status=$?
39196 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
39197 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
39198 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
39199 (eval $ac_try) 2>&5
39200 ac_status=$?
39201 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
39202 test $ac_status = 0; }; }; then :
39203
39204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39205 $as_echo "yes" >&6; }
39206
39207 $as_echo "#define HAVE_VFS_ITERATE_SHARED 1" >>confdefs.h
39208
39209
39210 else
39211 $as_echo "$as_me: failed program was:" >&5
39212 sed 's/^/| /' conftest.$ac_ext >&5
39213
39214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39215 $as_echo "no" >&6; }
39216
39217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fops->iterate() is available" >&5
39218 $as_echo_n "checking whether fops->iterate() is available... " >&6; }
39219
39220
39221 cat confdefs.h - <<_ACEOF >conftest.c
39222
39223
39224 #include <linux/fs.h>
39225 int iterate(struct file *filp, struct dir_context * context)
39226 { return 0; }
39227
39228 static const struct file_operations fops
39229 __attribute__ ((unused)) = {
39230 .iterate = iterate,
39231 };
39232
39233 int
39234 main (void)
39235 {
39236
39237
39238 ;
39239 return 0;
39240 }
39241
39242 _ACEOF
39243
39244
39245
39246 cat - <<_ACEOF >conftest.h
39247
39248 _ACEOF
39249
39250
39251 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
39252 echo "obj-m := conftest.o" >build/Makefile
39253 modpost_flag=''
39254 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
39255 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
39256 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
39257 (eval $ac_try) 2>&5
39258 ac_status=$?
39259 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
39260 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
39261 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
39262 (eval $ac_try) 2>&5
39263 ac_status=$?
39264 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
39265 test $ac_status = 0; }; }; then :
39266
39267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39268 $as_echo "yes" >&6; }
39269
39270 $as_echo "#define HAVE_VFS_ITERATE 1" >>confdefs.h
39271
39272
39273 else
39274 $as_echo "$as_me: failed program was:" >&5
39275 sed 's/^/| /' conftest.$ac_ext >&5
39276
39277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39278 $as_echo "no" >&6; }
39279
39280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fops->readdir() is available" >&5
39281 $as_echo_n "checking whether fops->readdir() is available... " >&6; }
39282
39283
39284 cat confdefs.h - <<_ACEOF >conftest.c
39285
39286
39287 #include <linux/fs.h>
39288 int readdir(struct file *filp, void *entry, filldir_t func)
39289 { return 0; }
39290
39291 static const struct file_operations fops
39292 __attribute__ ((unused)) = {
39293 .readdir = readdir,
39294 };
39295
39296 int
39297 main (void)
39298 {
39299
39300
39301 ;
39302 return 0;
39303 }
39304
39305 _ACEOF
39306
39307
39308
39309 cat - <<_ACEOF >conftest.h
39310
39311 _ACEOF
39312
39313
39314 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
39315 echo "obj-m := conftest.o" >build/Makefile
39316 modpost_flag=''
39317 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
39318 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
39319 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
39320 (eval $ac_try) 2>&5
39321 ac_status=$?
39322 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
39323 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
39324 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
39325 (eval $ac_try) 2>&5
39326 ac_status=$?
39327 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
39328 test $ac_status = 0; }; }; then :
39329
39330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39331 $as_echo "yes" >&6; }
39332
39333 $as_echo "#define HAVE_VFS_READDIR 1" >>confdefs.h
39334
39335
39336 else
39337 $as_echo "$as_me: failed program was:" >&5
39338 sed 's/^/| /' conftest.$ac_ext >&5
39339
39340 as_fn_error $? "no; file a bug report with ZFSOnLinux" "$LINENO" 5
39341
39342
39343
39344 fi
39345 rm -Rf build
39346
39347
39348
39349
39350
39351 fi
39352 rm -Rf build
39353
39354
39355
39356
39357
39358 fi
39359 rm -Rf build
39360
39361
39362
39363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fops->read/write_iter() are available" >&5
39364 $as_echo_n "checking whether fops->read/write_iter() are available... " >&6; }
39365
39366
39367 cat confdefs.h - <<_ACEOF >conftest.c
39368
39369
39370 #include <linux/fs.h>
39371
39372 ssize_t test_read(struct kiocb *kiocb, struct iov_iter *to)
39373 { return 0; }
39374 ssize_t test_write(struct kiocb *kiocb, struct iov_iter *from)
39375 { return 0; }
39376
39377 static const struct file_operations
39378 fops __attribute__ ((unused)) = {
39379 .read_iter = test_read,
39380 .write_iter = test_write,
39381 };
39382
39383 int
39384 main (void)
39385 {
39386
39387
39388 ;
39389 return 0;
39390 }
39391
39392 _ACEOF
39393
39394
39395
39396 cat - <<_ACEOF >conftest.h
39397
39398 _ACEOF
39399
39400
39401 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
39402 echo "obj-m := conftest.o" >build/Makefile
39403 modpost_flag=''
39404 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
39405 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
39406 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
39407 (eval $ac_try) 2>&5
39408 ac_status=$?
39409 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
39410 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
39411 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
39412 (eval $ac_try) 2>&5
39413 ac_status=$?
39414 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
39415 test $ac_status = 0; }; }; then :
39416
39417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39418 $as_echo "yes" >&6; }
39419
39420 $as_echo "#define HAVE_VFS_RW_ITERATE 1" >>confdefs.h
39421
39422
39423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether new_sync_read() is available" >&5
39424 $as_echo_n "checking whether new_sync_read() is available... " >&6; }
39425
39426
39427 cat confdefs.h - <<_ACEOF >conftest.c
39428
39429
39430 #include <linux/fs.h>
39431
39432 int
39433 main (void)
39434 {
39435
39436 new_sync_read(NULL, NULL, 0, NULL);
39437
39438 ;
39439 return 0;
39440 }
39441
39442 _ACEOF
39443
39444
39445
39446 cat - <<_ACEOF >conftest.h
39447
39448 _ACEOF
39449
39450
39451 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
39452 echo "obj-m := conftest.o" >build/Makefile
39453 modpost_flag=''
39454 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
39455 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
39456 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
39457 (eval $ac_try) 2>&5
39458 ac_status=$?
39459 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
39460 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
39461 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
39462 (eval $ac_try) 2>&5
39463 ac_status=$?
39464 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
39465 test $ac_status = 0; }; }; then :
39466
39467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39468 $as_echo "yes" >&6; }
39469
39470 $as_echo "#define HAVE_NEW_SYNC_READ 1" >>confdefs.h
39471
39472
39473 else
39474 $as_echo "$as_me: failed program was:" >&5
39475 sed 's/^/| /' conftest.$ac_ext >&5
39476
39477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39478 $as_echo "no" >&6; }
39479
39480
39481
39482 fi
39483 rm -Rf build
39484
39485
39486
39487
39488 else
39489 $as_echo "$as_me: failed program was:" >&5
39490 sed 's/^/| /' conftest.$ac_ext >&5
39491
39492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39493 $as_echo "no" >&6; }
39494
39495
39496
39497 fi
39498 rm -Rf build
39499
39500
39501
39502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether generic_write_checks() takes kiocb" >&5
39503 $as_echo_n "checking whether generic_write_checks() takes kiocb... " >&6; }
39504
39505
39506 cat confdefs.h - <<_ACEOF >conftest.c
39507
39508
39509 #include <linux/fs.h>
39510
39511
39512 int
39513 main (void)
39514 {
39515
39516 struct kiocb *iocb = NULL;
39517 struct iov_iter *iov = NULL;
39518 generic_write_checks(iocb, iov);
39519
39520 ;
39521 return 0;
39522 }
39523
39524 _ACEOF
39525
39526
39527
39528 cat - <<_ACEOF >conftest.h
39529
39530 _ACEOF
39531
39532
39533 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
39534 echo "obj-m := conftest.o" >build/Makefile
39535 modpost_flag=''
39536 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
39537 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
39538 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
39539 (eval $ac_try) 2>&5
39540 ac_status=$?
39541 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
39542 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
39543 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
39544 (eval $ac_try) 2>&5
39545 ac_status=$?
39546 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
39547 test $ac_status = 0; }; }; then :
39548
39549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39550 $as_echo "yes" >&6; }
39551
39552 $as_echo "#define HAVE_GENERIC_WRITE_CHECKS_KIOCB 1" >>confdefs.h
39553
39554
39555 else
39556 $as_echo "$as_me: failed program was:" >&5
39557 sed 's/^/| /' conftest.$ac_ext >&5
39558
39559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39560 $as_echo "no" >&6; }
39561
39562
39563
39564 fi
39565 rm -Rf build
39566
39567
39568
39569
39570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether kmap_atomic wants 1 args" >&5
39571 $as_echo_n "checking whether kmap_atomic wants 1 args... " >&6; }
39572
39573
39574 cat confdefs.h - <<_ACEOF >conftest.c
39575
39576
39577 #include <linux/pagemap.h>
39578
39579 int
39580 main (void)
39581 {
39582
39583 struct page page;
39584 kmap_atomic(&page);
39585
39586 ;
39587 return 0;
39588 }
39589
39590 _ACEOF
39591
39592
39593
39594 cat - <<_ACEOF >conftest.h
39595
39596 _ACEOF
39597
39598
39599 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
39600 echo "obj-m := conftest.o" >build/Makefile
39601 modpost_flag=''
39602 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
39603 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
39604 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
39605 (eval $ac_try) 2>&5
39606 ac_status=$?
39607 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
39608 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
39609 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
39610 (eval $ac_try) 2>&5
39611 ac_status=$?
39612 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
39613 test $ac_status = 0; }; }; then :
39614
39615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39616 $as_echo "yes" >&6; }
39617
39618 $as_echo "#define HAVE_1ARG_KMAP_ATOMIC 1" >>confdefs.h
39619
39620
39621 else
39622 $as_echo "$as_me: failed program was:" >&5
39623 sed 's/^/| /' conftest.$ac_ext >&5
39624
39625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39626 $as_echo "no" >&6; }
39627
39628
39629
39630 fi
39631 rm -Rf build
39632
39633
39634
39635
39636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether follow_down_one() is available" >&5
39637 $as_echo_n "checking whether follow_down_one() is available... " >&6; }
39638
39639
39640 cat confdefs.h - <<_ACEOF >conftest.c
39641
39642
39643 #include <linux/namei.h>
39644
39645 int
39646 main (void)
39647 {
39648
39649 struct path *p = NULL;
39650 follow_down_one(p);
39651
39652 ;
39653 return 0;
39654 }
39655
39656 _ACEOF
39657
39658
39659
39660 cat - <<_ACEOF >conftest.h
39661
39662 _ACEOF
39663
39664
39665 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
39666 echo "obj-m := conftest.o" >build/Makefile
39667 modpost_flag=''
39668 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
39669 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
39670 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
39671 (eval $ac_try) 2>&5
39672 ac_status=$?
39673 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
39674 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
39675 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
39676 (eval $ac_try) 2>&5
39677 ac_status=$?
39678 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
39679 test $ac_status = 0; }; }; then :
39680
39681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39682 $as_echo "yes" >&6; }
39683
39684 $as_echo "#define HAVE_FOLLOW_DOWN_ONE 1" >>confdefs.h
39685
39686
39687 else
39688 $as_echo "$as_me: failed program was:" >&5
39689 sed 's/^/| /' conftest.$ac_ext >&5
39690
39691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39692 $as_echo "no" >&6; }
39693
39694
39695
39696 fi
39697 rm -Rf build
39698
39699
39700
39701
39702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether make_request_fn() returns int" >&5
39703 $as_echo_n "checking whether make_request_fn() returns int... " >&6; }
39704
39705
39706 cat confdefs.h - <<_ACEOF >conftest.c
39707
39708
39709 #include <linux/blkdev.h>
39710
39711 int make_request(struct request_queue *q, struct bio *bio)
39712 {
39713 return (0);
39714 }
39715
39716 int
39717 main (void)
39718 {
39719
39720 blk_queue_make_request(NULL, &make_request);
39721
39722 ;
39723 return 0;
39724 }
39725
39726 _ACEOF
39727
39728
39729
39730 cat - <<_ACEOF >conftest.h
39731
39732 _ACEOF
39733
39734
39735 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
39736 echo "obj-m := conftest.o" >build/Makefile
39737 modpost_flag=''
39738 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
39739 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
39740 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
39741 (eval $ac_try) 2>&5
39742 ac_status=$?
39743 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
39744 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
39745 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
39746 (eval $ac_try) 2>&5
39747 ac_status=$?
39748 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
39749 test $ac_status = 0; }; }; then :
39750
39751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39752 $as_echo "yes" >&6; }
39753
39754 $as_echo "#define MAKE_REQUEST_FN_RET int" >>confdefs.h
39755
39756
39757 $as_echo "#define HAVE_MAKE_REQUEST_FN_RET_INT 1" >>confdefs.h
39758
39759
39760 else
39761 $as_echo "$as_me: failed program was:" >&5
39762 sed 's/^/| /' conftest.$ac_ext >&5
39763
39764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39765 $as_echo "no" >&6; }
39766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether make_request_fn() returns void" >&5
39767 $as_echo_n "checking whether make_request_fn() returns void... " >&6; }
39768
39769
39770 cat confdefs.h - <<_ACEOF >conftest.c
39771
39772
39773 #include <linux/blkdev.h>
39774
39775 void make_request(struct request_queue *q, struct bio *bio)
39776 {
39777 return;
39778 }
39779
39780 int
39781 main (void)
39782 {
39783
39784 blk_queue_make_request(NULL, &make_request);
39785
39786 ;
39787 return 0;
39788 }
39789
39790 _ACEOF
39791
39792
39793
39794 cat - <<_ACEOF >conftest.h
39795
39796 _ACEOF
39797
39798
39799 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
39800 echo "obj-m := conftest.o" >build/Makefile
39801 modpost_flag=''
39802 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
39803 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
39804 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
39805 (eval $ac_try) 2>&5
39806 ac_status=$?
39807 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
39808 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
39809 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
39810 (eval $ac_try) 2>&5
39811 ac_status=$?
39812 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
39813 test $ac_status = 0; }; }; then :
39814
39815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39816 $as_echo "yes" >&6; }
39817
39818 $as_echo "#define MAKE_REQUEST_FN_RET void" >>confdefs.h
39819
39820
39821 else
39822 $as_echo "$as_me: failed program was:" >&5
39823 sed 's/^/| /' conftest.$ac_ext >&5
39824
39825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39826 $as_echo "no" >&6; }
39827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether make_request_fn() returns blk_qc_t" >&5
39828 $as_echo_n "checking whether make_request_fn() returns blk_qc_t... " >&6; }
39829
39830
39831 cat confdefs.h - <<_ACEOF >conftest.c
39832
39833
39834 #include <linux/blkdev.h>
39835
39836 blk_qc_t make_request(struct request_queue *q, struct bio *bio)
39837 {
39838 return (BLK_QC_T_NONE);
39839 }
39840
39841 int
39842 main (void)
39843 {
39844
39845 blk_queue_make_request(NULL, &make_request);
39846
39847 ;
39848 return 0;
39849 }
39850
39851 _ACEOF
39852
39853
39854
39855 cat - <<_ACEOF >conftest.h
39856
39857 _ACEOF
39858
39859
39860 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
39861 echo "obj-m := conftest.o" >build/Makefile
39862 modpost_flag=''
39863 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
39864 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
39865 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
39866 (eval $ac_try) 2>&5
39867 ac_status=$?
39868 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
39869 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
39870 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
39871 (eval $ac_try) 2>&5
39872 ac_status=$?
39873 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
39874 test $ac_status = 0; }; }; then :
39875
39876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39877 $as_echo "yes" >&6; }
39878
39879 $as_echo "#define MAKE_REQUEST_FN_RET blk_qc_t" >>confdefs.h
39880
39881
39882 $as_echo "#define HAVE_MAKE_REQUEST_FN_RET_QC 1" >>confdefs.h
39883
39884
39885 else
39886 $as_echo "$as_me: failed program was:" >&5
39887 sed 's/^/| /' conftest.$ac_ext >&5
39888
39889 as_fn_error $? "no - Please file a bug report at
39890 https://github.com/zfsonlinux/zfs/issues/new" "$LINENO" 5
39891
39892
39893
39894 fi
39895 rm -Rf build
39896
39897
39898
39899
39900
39901 fi
39902 rm -Rf build
39903
39904
39905
39906
39907
39908 fi
39909 rm -Rf build
39910
39911
39912
39913
39914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether 3 arg generic IO accounting symbols are available" >&5
39915 $as_echo_n "checking whether 3 arg generic IO accounting symbols are available... " >&6; }
39916
39917
39918
39919 cat confdefs.h - <<_ACEOF >conftest.c
39920
39921
39922 #include <linux/bio.h>
39923
39924 void (*generic_start_io_acct_f)(int, unsigned long,
39925 struct hd_struct *) = &generic_start_io_acct;
39926 void (*generic_end_io_acct_f)(int, struct hd_struct *,
39927 unsigned long) = &generic_end_io_acct;
39928
39929 int
39930 main (void)
39931 {
39932
39933 generic_start_io_acct(0, 0, NULL);
39934 generic_end_io_acct(0, NULL, 0);
39935
39936 ;
39937 return 0;
39938 }
39939
39940 _ACEOF
39941
39942
39943
39944 cat - <<_ACEOF >conftest.h
39945
39946 _ACEOF
39947
39948
39949 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
39950 echo "obj-m := conftest.o" >build/Makefile
39951 modpost_flag=''
39952 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
39953 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
39954 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
39955 (eval $ac_try) 2>&5
39956 ac_status=$?
39957 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
39958 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
39959 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
39960 (eval $ac_try) 2>&5
39961 ac_status=$?
39962 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
39963 test $ac_status = 0; }; }; then :
39964 rc=0
39965 else
39966 $as_echo "$as_me: failed program was:" >&5
39967 sed 's/^/| /' conftest.$ac_ext >&5
39968 rc=1
39969
39970
39971 fi
39972 rm -Rf build
39973
39974
39975 if test $rc -ne 0; then :
39976
39977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39978 $as_echo "no" >&6; }
39979
39980 else
39981 if test "x$enable_linux_builtin" != xyes; then
39982
39983 grep -q -E '[[:space:]]generic_start_io_acct[[:space:]]' \
39984 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
39985 rc=$?
39986 if test $rc -ne 0; then
39987 export=0
39988 for file in block/bio.c; do
39989 grep -q -E "EXPORT_SYMBOL.*(generic_start_io_acct)" \
39990 "$LINUX/$file" 2>/dev/null
39991 rc=$?
39992 if test $rc -eq 0; then
39993 export=1
39994 break;
39995 fi
39996 done
39997 if test $export -eq 0; then :
39998 rc=1
39999 else :
40000 rc=0
40001 fi
40002 else :
40003 rc=0
40004 fi
40005
40006 fi
40007 if test $rc -ne 0; then :
40008
40009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40010 $as_echo "no" >&6; }
40011
40012 else :
40013
40014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40015 $as_echo "yes" >&6; }
40016
40017 $as_echo "#define HAVE_GENERIC_IO_ACCT_3ARG 1" >>confdefs.h
40018
40019
40020 fi
40021 fi
40022
40023
40024
40025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether 4 arg generic IO accounting symbols are available" >&5
40026 $as_echo_n "checking whether 4 arg generic IO accounting symbols are available... " >&6; }
40027
40028
40029
40030 cat confdefs.h - <<_ACEOF >conftest.c
40031
40032
40033 #include <linux/bio.h>
40034
40035 void (*generic_start_io_acct_f)(struct request_queue *, int,
40036 unsigned long, struct hd_struct *) = &generic_start_io_acct;
40037 void (*generic_end_io_acct_f)(struct request_queue *, int,
40038 struct hd_struct *, unsigned long) = &generic_end_io_acct;
40039
40040 int
40041 main (void)
40042 {
40043
40044 generic_start_io_acct(NULL, 0, 0, NULL);
40045 generic_end_io_acct(NULL, 0, NULL, 0);
40046
40047 ;
40048 return 0;
40049 }
40050
40051 _ACEOF
40052
40053
40054
40055 cat - <<_ACEOF >conftest.h
40056
40057 _ACEOF
40058
40059
40060 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
40061 echo "obj-m := conftest.o" >build/Makefile
40062 modpost_flag=''
40063 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
40064 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
40065 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
40066 (eval $ac_try) 2>&5
40067 ac_status=$?
40068 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
40069 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
40070 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
40071 (eval $ac_try) 2>&5
40072 ac_status=$?
40073 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
40074 test $ac_status = 0; }; }; then :
40075 rc=0
40076 else
40077 $as_echo "$as_me: failed program was:" >&5
40078 sed 's/^/| /' conftest.$ac_ext >&5
40079 rc=1
40080
40081
40082 fi
40083 rm -Rf build
40084
40085
40086 if test $rc -ne 0; then :
40087
40088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40089 $as_echo "no" >&6; }
40090
40091 else
40092 if test "x$enable_linux_builtin" != xyes; then
40093
40094 grep -q -E '[[:space:]]generic_start_io_acct[[:space:]]' \
40095 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
40096 rc=$?
40097 if test $rc -ne 0; then
40098 export=0
40099 for file in block/bio.c; do
40100 grep -q -E "EXPORT_SYMBOL.*(generic_start_io_acct)" \
40101 "$LINUX/$file" 2>/dev/null
40102 rc=$?
40103 if test $rc -eq 0; then
40104 export=1
40105 break;
40106 fi
40107 done
40108 if test $export -eq 0; then :
40109 rc=1
40110 else :
40111 rc=0
40112 fi
40113 else :
40114 rc=0
40115 fi
40116
40117 fi
40118 if test $rc -ne 0; then :
40119
40120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40121 $as_echo "no" >&6; }
40122
40123 else :
40124
40125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40126 $as_echo "yes" >&6; }
40127
40128 $as_echo "#define HAVE_GENERIC_IO_ACCT_4ARG 1" >>confdefs.h
40129
40130
40131 fi
40132 fi
40133
40134
40135
40136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether asm/fpu/api.h exists" >&5
40137 $as_echo_n "checking whether asm/fpu/api.h exists... " >&6; }
40138
40139
40140 cat confdefs.h - <<_ACEOF >conftest.c
40141
40142
40143 #include <linux/kernel.h>
40144 #include <asm/fpu/api.h>
40145
40146 int
40147 main (void)
40148 {
40149
40150 __kernel_fpu_begin();
40151
40152 ;
40153 return 0;
40154 }
40155
40156 _ACEOF
40157
40158
40159
40160 cat - <<_ACEOF >conftest.h
40161
40162 _ACEOF
40163
40164
40165 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
40166 echo "obj-m := conftest.o" >build/Makefile
40167 modpost_flag=''
40168 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
40169 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
40170 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
40171 (eval $ac_try) 2>&5
40172 ac_status=$?
40173 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
40174 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
40175 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
40176 (eval $ac_try) 2>&5
40177 ac_status=$?
40178 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
40179 test $ac_status = 0; }; }; then :
40180
40181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40182 $as_echo "yes" >&6; }
40183
40184 $as_echo "#define HAVE_FPU_API_H 1" >>confdefs.h
40185
40186
40187 else
40188 $as_echo "$as_me: failed program was:" >&5
40189 sed 's/^/| /' conftest.$ac_ext >&5
40190
40191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40192 $as_echo "no" >&6; }
40193
40194
40195
40196 fi
40197 rm -Rf build
40198
40199
40200
40201
40202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether i_(uid|gid)_(read|write) exist" >&5
40203 $as_echo_n "checking whether i_(uid|gid)_(read|write) exist... " >&6; }
40204
40205
40206 cat confdefs.h - <<_ACEOF >conftest.c
40207
40208
40209 #include <linux/fs.h>
40210
40211 int
40212 main (void)
40213 {
40214
40215 struct inode *ip = NULL;
40216 (void) i_uid_read(ip);
40217
40218 ;
40219 return 0;
40220 }
40221
40222 _ACEOF
40223
40224
40225
40226 cat - <<_ACEOF >conftest.h
40227
40228 _ACEOF
40229
40230
40231 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
40232 echo "obj-m := conftest.o" >build/Makefile
40233 modpost_flag=''
40234 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
40235 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
40236 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
40237 (eval $ac_try) 2>&5
40238 ac_status=$?
40239 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
40240 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
40241 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
40242 (eval $ac_try) 2>&5
40243 ac_status=$?
40244 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
40245 test $ac_status = 0; }; }; then :
40246
40247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40248 $as_echo "yes" >&6; }
40249
40250 $as_echo "#define HAVE_KUID_HELPERS 1" >>confdefs.h
40251
40252
40253 else
40254 $as_echo "$as_me: failed program was:" >&5
40255 sed 's/^/| /' conftest.$ac_ext >&5
40256
40257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40258 $as_echo "no" >&6; }
40259
40260
40261
40262 fi
40263 rm -Rf build
40264
40265
40266
40267
40268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether module_param_call() is hardened" >&5
40269 $as_echo_n "checking whether module_param_call() is hardened... " >&6; }
40270
40271
40272 cat confdefs.h - <<_ACEOF >conftest.c
40273
40274
40275 #include <linux/module.h>
40276 #include <linux/moduleparam.h>
40277
40278 int param_get(char *b, const struct kernel_param *kp)
40279 {
40280 return (0);
40281 }
40282
40283 int param_set(const char *b, const struct kernel_param *kp)
40284 {
40285 return (0);
40286 }
40287
40288 module_param_call(p, param_set, param_get, NULL, 0644);
40289
40290 int
40291 main (void)
40292 {
40293
40294
40295 ;
40296 return 0;
40297 }
40298
40299 _ACEOF
40300
40301
40302
40303 cat - <<_ACEOF >conftest.h
40304
40305 _ACEOF
40306
40307
40308 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
40309 echo "obj-m := conftest.o" >build/Makefile
40310 modpost_flag=''
40311 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
40312 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
40313 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
40314 (eval $ac_try) 2>&5
40315 ac_status=$?
40316 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
40317 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
40318 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
40319 (eval $ac_try) 2>&5
40320 ac_status=$?
40321 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
40322 test $ac_status = 0; }; }; then :
40323
40324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40325 $as_echo "yes" >&6; }
40326
40327 $as_echo "#define MODULE_PARAM_CALL_CONST 1" >>confdefs.h
40328
40329
40330 else
40331 $as_echo "$as_me: failed program was:" >&5
40332 sed 's/^/| /' conftest.$ac_ext >&5
40333
40334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40335 $as_echo "no" >&6; }
40336
40337
40338
40339 fi
40340 rm -Rf build
40341
40342
40343
40344
40345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->rename() wants flags" >&5
40346 $as_echo_n "checking whether iops->rename() wants flags... " >&6; }
40347
40348
40349 cat confdefs.h - <<_ACEOF >conftest.c
40350
40351
40352 #include <linux/fs.h>
40353 int rename_fn(struct inode *sip, struct dentry *sdp,
40354 struct inode *tip, struct dentry *tdp,
40355 unsigned int flags) { return 0; }
40356
40357 static const struct inode_operations
40358 iops __attribute__ ((unused)) = {
40359 .rename = rename_fn,
40360 };
40361
40362 int
40363 main (void)
40364 {
40365
40366
40367 ;
40368 return 0;
40369 }
40370
40371 _ACEOF
40372
40373
40374
40375 cat - <<_ACEOF >conftest.h
40376
40377 _ACEOF
40378
40379
40380 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
40381 echo "obj-m := conftest.o" >build/Makefile
40382 modpost_flag=''
40383 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
40384 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
40385 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
40386 (eval $ac_try) 2>&5
40387 ac_status=$?
40388 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
40389 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
40390 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
40391 (eval $ac_try) 2>&5
40392 ac_status=$?
40393 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
40394 test $ac_status = 0; }; }; then :
40395
40396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40397 $as_echo "yes" >&6; }
40398
40399 $as_echo "#define HAVE_RENAME_WANTS_FLAGS 1" >>confdefs.h
40400
40401
40402 else
40403 $as_echo "$as_me: failed program was:" >&5
40404 sed 's/^/| /' conftest.$ac_ext >&5
40405
40406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40407 $as_echo "no" >&6; }
40408
40409
40410
40411 fi
40412 rm -Rf build
40413
40414
40415
40416
40417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether generic_setxattr() exists" >&5
40418 $as_echo_n "checking whether generic_setxattr() exists... " >&6; }
40419
40420
40421 cat confdefs.h - <<_ACEOF >conftest.c
40422
40423
40424 #include <linux/fs.h>
40425 #include <linux/xattr.h>
40426
40427 static const struct inode_operations
40428 iops __attribute__ ((unused)) = {
40429 .setxattr = generic_setxattr
40430 };
40431
40432 int
40433 main (void)
40434 {
40435
40436
40437 ;
40438 return 0;
40439 }
40440
40441 _ACEOF
40442
40443
40444
40445 cat - <<_ACEOF >conftest.h
40446
40447 _ACEOF
40448
40449
40450 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
40451 echo "obj-m := conftest.o" >build/Makefile
40452 modpost_flag=''
40453 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
40454 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
40455 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
40456 (eval $ac_try) 2>&5
40457 ac_status=$?
40458 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
40459 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
40460 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
40461 (eval $ac_try) 2>&5
40462 ac_status=$?
40463 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
40464 test $ac_status = 0; }; }; then :
40465
40466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40467 $as_echo "yes" >&6; }
40468
40469 $as_echo "#define HAVE_GENERIC_SETXATTR 1" >>confdefs.h
40470
40471
40472 else
40473 $as_echo "$as_me: failed program was:" >&5
40474 sed 's/^/| /' conftest.$ac_ext >&5
40475
40476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40477 $as_echo "no" >&6; }
40478
40479
40480
40481 fi
40482 rm -Rf build
40483
40484
40485
40486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether current_time() exists" >&5
40487 $as_echo_n "checking whether current_time() exists... " >&6; }
40488
40489
40490
40491 cat confdefs.h - <<_ACEOF >conftest.c
40492
40493
40494 #include <linux/fs.h>
40495
40496 int
40497 main (void)
40498 {
40499
40500 struct inode ip;
40501 struct timespec now __attribute__ ((unused));
40502
40503 now = current_time(&ip);
40504
40505 ;
40506 return 0;
40507 }
40508
40509 _ACEOF
40510
40511
40512
40513 cat - <<_ACEOF >conftest.h
40514
40515 _ACEOF
40516
40517
40518 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
40519 echo "obj-m := conftest.o" >build/Makefile
40520 modpost_flag=''
40521 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
40522 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
40523 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
40524 (eval $ac_try) 2>&5
40525 ac_status=$?
40526 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
40527 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
40528 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
40529 (eval $ac_try) 2>&5
40530 ac_status=$?
40531 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
40532 test $ac_status = 0; }; }; then :
40533 rc=0
40534 else
40535 $as_echo "$as_me: failed program was:" >&5
40536 sed 's/^/| /' conftest.$ac_ext >&5
40537 rc=1
40538
40539
40540 fi
40541 rm -Rf build
40542
40543
40544 if test $rc -ne 0; then :
40545
40546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40547 $as_echo "no" >&6; }
40548
40549 else
40550 if test "x$enable_linux_builtin" != xyes; then
40551
40552 grep -q -E '[[:space:]]current_time[[:space:]]' \
40553 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
40554 rc=$?
40555 if test $rc -ne 0; then
40556 export=0
40557 for file in fs/inode.c; do
40558 grep -q -E "EXPORT_SYMBOL.*(current_time)" \
40559 "$LINUX/$file" 2>/dev/null
40560 rc=$?
40561 if test $rc -eq 0; then
40562 export=1
40563 break;
40564 fi
40565 done
40566 if test $export -eq 0; then :
40567 rc=1
40568 else :
40569 rc=0
40570 fi
40571 else :
40572 rc=0
40573 fi
40574
40575 fi
40576 if test $rc -ne 0; then :
40577
40578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40579 $as_echo "no" >&6; }
40580
40581 else :
40582
40583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40584 $as_echo "yes" >&6; }
40585
40586 $as_echo "#define HAVE_CURRENT_TIME 1" >>confdefs.h
40587
40588
40589 fi
40590 fi
40591
40592
40593
40594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use vm_node_stat based fn's" >&5
40595 $as_echo_n "checking whether to use vm_node_stat based fn's... " >&6; }
40596
40597
40598 cat confdefs.h - <<_ACEOF >conftest.c
40599
40600
40601 #include <linux/mm.h>
40602 #include <linux/vmstat.h>
40603
40604 int
40605 main (void)
40606 {
40607
40608 int a __attribute__ ((unused)) = NR_VM_NODE_STAT_ITEMS;
40609 long x __attribute__ ((unused)) =
40610 atomic_long_read(&vm_node_stat[0]);
40611 (void) global_node_page_state(0);
40612
40613 ;
40614 return 0;
40615 }
40616
40617 _ACEOF
40618
40619
40620
40621 cat - <<_ACEOF >conftest.h
40622
40623 _ACEOF
40624
40625
40626 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
40627 echo "obj-m := conftest.o" >build/Makefile
40628 modpost_flag=''
40629 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
40630 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
40631 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
40632 (eval $ac_try) 2>&5
40633 ac_status=$?
40634 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
40635 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
40636 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
40637 (eval $ac_try) 2>&5
40638 ac_status=$?
40639 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
40640 test $ac_status = 0; }; }; then :
40641
40642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40643 $as_echo "yes" >&6; }
40644
40645 $as_echo "#define ZFS_GLOBAL_NODE_PAGE_STATE 1" >>confdefs.h
40646
40647
40648 else
40649 $as_echo "$as_me: failed program was:" >&5
40650 sed 's/^/| /' conftest.$ac_ext >&5
40651
40652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40653 $as_echo "no" >&6; }
40654
40655
40656
40657 fi
40658 rm -Rf build
40659
40660
40661
40662
40663
40664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ns_capable exists" >&5
40665 $as_echo_n "checking whether ns_capable exists... " >&6; }
40666
40667
40668 cat confdefs.h - <<_ACEOF >conftest.c
40669
40670
40671 #include <linux/capability.h>
40672
40673 int
40674 main (void)
40675 {
40676
40677 ns_capable((struct user_namespace *)NULL, CAP_SYS_ADMIN);
40678
40679 ;
40680 return 0;
40681 }
40682
40683 _ACEOF
40684
40685
40686
40687 cat - <<_ACEOF >conftest.h
40688
40689 _ACEOF
40690
40691
40692 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
40693 echo "obj-m := conftest.o" >build/Makefile
40694 modpost_flag=''
40695 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
40696 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
40697 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
40698 (eval $ac_try) 2>&5
40699 ac_status=$?
40700 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
40701 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
40702 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
40703 (eval $ac_try) 2>&5
40704 ac_status=$?
40705 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
40706 test $ac_status = 0; }; }; then :
40707
40708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40709 $as_echo "yes" >&6; }
40710
40711 $as_echo "#define HAVE_NS_CAPABLE 1" >>confdefs.h
40712
40713
40714 else
40715 $as_echo "$as_me: failed program was:" >&5
40716 sed 's/^/| /' conftest.$ac_ext >&5
40717
40718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40719 $as_echo "no" >&6; }
40720
40721
40722
40723 fi
40724 rm -Rf build
40725
40726
40727
40728
40729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cred_t->user_ns exists" >&5
40730 $as_echo_n "checking whether cred_t->user_ns exists... " >&6; }
40731
40732
40733 cat confdefs.h - <<_ACEOF >conftest.c
40734
40735
40736 #include <linux/cred.h>
40737
40738 int
40739 main (void)
40740 {
40741
40742 struct cred cr;
40743 cr.user_ns = (struct user_namespace *)NULL;
40744
40745 ;
40746 return 0;
40747 }
40748
40749 _ACEOF
40750
40751
40752
40753 cat - <<_ACEOF >conftest.h
40754
40755 _ACEOF
40756
40757
40758 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
40759 echo "obj-m := conftest.o" >build/Makefile
40760 modpost_flag=''
40761 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
40762 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
40763 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
40764 (eval $ac_try) 2>&5
40765 ac_status=$?
40766 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
40767 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
40768 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
40769 (eval $ac_try) 2>&5
40770 ac_status=$?
40771 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
40772 test $ac_status = 0; }; }; then :
40773
40774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40775 $as_echo "yes" >&6; }
40776
40777 $as_echo "#define HAVE_CRED_USER_NS 1" >>confdefs.h
40778
40779
40780 else
40781 $as_echo "$as_me: failed program was:" >&5
40782 sed 's/^/| /' conftest.$ac_ext >&5
40783
40784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40785 $as_echo "no" >&6; }
40786
40787
40788
40789 fi
40790 rm -Rf build
40791
40792
40793
40794
40795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether kuid_has_mapping/kgid_has_mapping exist" >&5
40796 $as_echo_n "checking whether kuid_has_mapping/kgid_has_mapping exist... " >&6; }
40797
40798
40799 cat confdefs.h - <<_ACEOF >conftest.c
40800
40801
40802 #include <linux/uidgid.h>
40803
40804 int
40805 main (void)
40806 {
40807
40808 kuid_has_mapping((struct user_namespace *)NULL, KUIDT_INIT(0));
40809 kgid_has_mapping((struct user_namespace *)NULL, KGIDT_INIT(0));
40810
40811 ;
40812 return 0;
40813 }
40814
40815 _ACEOF
40816
40817
40818
40819 cat - <<_ACEOF >conftest.h
40820
40821 _ACEOF
40822
40823
40824 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
40825 echo "obj-m := conftest.o" >build/Makefile
40826 modpost_flag=''
40827 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
40828 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
40829 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
40830 (eval $ac_try) 2>&5
40831 ac_status=$?
40832 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
40833 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
40834 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
40835 (eval $ac_try) 2>&5
40836 ac_status=$?
40837 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
40838 test $ac_status = 0; }; }; then :
40839
40840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40841 $as_echo "yes" >&6; }
40842
40843 $as_echo "#define HAVE_KUID_HAS_MAPPING 1" >>confdefs.h
40844
40845
40846 else
40847 $as_echo "$as_me: failed program was:" >&5
40848 sed 's/^/| /' conftest.$ac_ext >&5
40849
40850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40851 $as_echo "no" >&6; }
40852
40853
40854
40855 fi
40856 rm -Rf build
40857
40858
40859
40860
40861
40862 if test "$LINUX_OBJ" != "$LINUX"; then :
40863
40864 KERNELMAKE_PARAMS="$KERNELMAKE_PARAMS O=$LINUX_OBJ"
40865
40866 fi
40867
40868
40869
40870 KERNELCPPFLAGS="$KERNELCPPFLAGS -std=gnu99"
40871 KERNELCPPFLAGS="$KERNELCPPFLAGS -Wno-declaration-after-statement"
40872 KERNELCPPFLAGS="$KERNELCPPFLAGS $NO_UNUSED_BUT_SET_VARIABLE"
40873 KERNELCPPFLAGS="$KERNELCPPFLAGS $NO_BOOL_COMPARE"
40874 KERNELCPPFLAGS="$KERNELCPPFLAGS -DHAVE_SPL -D_KERNEL"
40875 KERNELCPPFLAGS="$KERNELCPPFLAGS -DTEXT_DOMAIN=\\\"zfs-linux-kernel\\\""
40876
40877
40878 ;;
40879 srpm) ;;
40880 *)
40881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Error!" >&5
40882 $as_echo "Error!" >&6; }
40883 as_fn_error $? "Bad value \"$ZFS_CONFIG\" for --with-config,
40884 user kernel|user|all|srpm" "$LINENO" 5 ;;
40885 esac
40886
40887 if test "$ZFS_CONFIG" = user -o "$ZFS_CONFIG" = all; then
40888 CONFIG_USER_TRUE=
40889 CONFIG_USER_FALSE='#'
40890 else
40891 CONFIG_USER_TRUE='#'
40892 CONFIG_USER_FALSE=
40893 fi
40894
40895 if test "$ZFS_CONFIG" = kernel -o "$ZFS_CONFIG" = all &&
40896 test "x$enable_linux_builtin" != xyes ; then
40897 CONFIG_KERNEL_TRUE=
40898 CONFIG_KERNEL_FALSE='#'
40899 else
40900 CONFIG_KERNEL_TRUE='#'
40901 CONFIG_KERNEL_FALSE=
40902 fi
40903
40904 if test "$ZFS_CONFIG" = kernel -o "$ZFS_CONFIG" = all &&
40905 test "x$qatsrc" != x ; then
40906 CONFIG_QAT_TRUE=
40907 CONFIG_QAT_FALSE='#'
40908 else
40909 CONFIG_QAT_TRUE='#'
40910 CONFIG_QAT_FALSE=
40911 fi
40912
40913 if test "x$user_libudev" = xyes ; then
40914 WANT_DEVNAME2DEVID_TRUE=
40915 WANT_DEVNAME2DEVID_FALSE='#'
40916 else
40917 WANT_DEVNAME2DEVID_TRUE='#'
40918 WANT_DEVNAME2DEVID_FALSE=
40919 fi
40920
40921 if test "x$user_libaio" = xyes ; then
40922 WANT_MMAP_LIBAIO_TRUE=
40923 WANT_MMAP_LIBAIO_FALSE='#'
40924 else
40925 WANT_MMAP_LIBAIO_TRUE='#'
40926 WANT_MMAP_LIBAIO_FALSE=
40927 fi
40928
40929
40930
40931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether debugging is enabled" >&5
40932 $as_echo_n "checking whether debugging is enabled... " >&6; }
40933 # Check whether --enable-debug was given.
40934 if test "${enable_debug+set}" = set; then :
40935 enableval=$enable_debug;
40936 else
40937 enable_debug=no
40938 fi
40939
40940
40941 if test "x$enable_debug" = xyes; then :
40942
40943 KERNELCPPFLAGS="${KERNELCPPFLAGS} -DDEBUG -Werror"
40944 HOSTCFLAGS="${HOSTCFLAGS} -DDEBUG -Werror"
40945 DEBUG_CFLAGS="-DDEBUG -Werror"
40946 DEBUG_STACKFLAGS="-fstack-check"
40947 DEBUG_ZFS="_with_debug"
40948
40949 $as_echo "#define ZFS_DEBUG 1" >>confdefs.h
40950
40951
40952 else
40953
40954 KERNELCPPFLAGS="${KERNELCPPFLAGS} -DNDEBUG "
40955 HOSTCFLAGS="${HOSTCFLAGS} -DNDEBUG "
40956 DEBUG_CFLAGS="-DNDEBUG"
40957 DEBUG_STACKFLAGS=""
40958 DEBUG_ZFS="_without_debug"
40959
40960 fi
40961
40962
40963
40964
40965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_debug" >&5
40966 $as_echo "$enable_debug" >&6; }
40967
40968
40969 ac_config_files="$ac_config_files Makefile module/Makefile module/avl/Makefile module/nvpair/Makefile module/unicode/Makefile module/zcommon/Makefile module/zfs/Makefile module/zpios/Makefile module/icp/Makefile include/Makefile include/linux/Makefile include/sys/Makefile include/sys/fs/Makefile include/sys/fm/Makefile include/sys/fm/fs/Makefile include/sys/crypto/Makefile include/sys/sysevent/Makefile zfs.release"
40970
40971
40972
40973 cat >confcache <<\_ACEOF
40974 # This file is a shell script that caches the results of configure
40975 # tests run on this system so they can be shared between configure
40976 # scripts and configure runs, see configure's option --config-cache.
40977 # It is not useful on other systems. If it contains results you don't
40978 # want to keep, you may remove or edit it.
40979 #
40980 # config.status only pays attention to the cache file if you give it
40981 # the --recheck option to rerun configure.
40982 #
40983 # `ac_cv_env_foo' variables (set or unset) will be overridden when
40984 # loading this file, other *unset* `ac_cv_foo' will be assigned the
40985 # following values.
40986
40987 _ACEOF
40988
40989 # The following way of writing the cache mishandles newlines in values,
40990 # but we know of no workaround that is simple, portable, and efficient.
40991 # So, we kill variables containing newlines.
40992 # Ultrix sh set writes to stderr and can't be redirected directly,
40993 # and sets the high bit in the cache file unless we assign to the vars.
40994 (
40995 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
40996 eval ac_val=\$$ac_var
40997 case $ac_val in #(
40998 *${as_nl}*)
40999 case $ac_var in #(
41000 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
41001 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
41002 esac
41003 case $ac_var in #(
41004 _ | IFS | as_nl) ;; #(
41005 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
41006 *) { eval $ac_var=; unset $ac_var;} ;;
41007 esac ;;
41008 esac
41009 done
41010
41011 (set) 2>&1 |
41012 case $as_nl`(ac_space=' '; set) 2>&1` in #(
41013 *${as_nl}ac_space=\ *)
41014 # `set' does not quote correctly, so add quotes: double-quote
41015 # substitution turns \\\\ into \\, and sed turns \\ into \.
41016 sed -n \
41017 "s/'/'\\\\''/g;
41018 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
41019 ;; #(
41020 *)
41021 # `set' quotes correctly as required by POSIX, so do not add quotes.
41022 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
41023 ;;
41024 esac |
41025 sort
41026 ) |
41027 sed '
41028 /^ac_cv_env_/b end
41029 t clear
41030 :clear
41031 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
41032 t end
41033 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
41034 :end' >>confcache
41035 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
41036 if test -w "$cache_file"; then
41037 if test "x$cache_file" != "x/dev/null"; then
41038 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
41039 $as_echo "$as_me: updating cache $cache_file" >&6;}
41040 if test ! -f "$cache_file" || test -h "$cache_file"; then
41041 cat confcache >"$cache_file"
41042 else
41043 case $cache_file in #(
41044 */* | ?:*)
41045 mv -f confcache "$cache_file"$$ &&
41046 mv -f "$cache_file"$$ "$cache_file" ;; #(
41047 *)
41048 mv -f confcache "$cache_file" ;;
41049 esac
41050 fi
41051 fi
41052 else
41053 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
41054 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
41055 fi
41056 fi
41057 rm -f confcache
41058
41059 test "x$prefix" = xNONE && prefix=$ac_default_prefix
41060 # Let make expand exec_prefix.
41061 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
41062
41063 DEFS=-DHAVE_CONFIG_H
41064
41065 ac_libobjs=
41066 ac_ltlibobjs=
41067 U=
41068 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
41069 # 1. Remove the extension, and $U if already installed.
41070 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
41071 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
41072 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
41073 # will be set to the directory where LIBOBJS objects are built.
41074 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
41075 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
41076 done
41077 LIBOBJS=$ac_libobjs
41078
41079 LTLIBOBJS=$ac_ltlibobjs
41080
41081
41082 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
41083 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
41084 Usually this means the macro was only invoked conditionally." "$LINENO" 5
41085 fi
41086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
41087 $as_echo_n "checking that generated files are newer than configure... " >&6; }
41088 if test -n "$am_sleep_pid"; then
41089 # Hide warnings about reused PIDs.
41090 wait $am_sleep_pid 2>/dev/null
41091 fi
41092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
41093 $as_echo "done" >&6; }
41094 if test -n "$EXEEXT"; then
41095 am__EXEEXT_TRUE=
41096 am__EXEEXT_FALSE='#'
41097 else
41098 am__EXEEXT_TRUE='#'
41099 am__EXEEXT_FALSE=
41100 fi
41101
41102 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
41103 as_fn_error $? "conditional \"AMDEP\" was never defined.
41104 Usually this means the macro was only invoked conditionally." "$LINENO" 5
41105 fi
41106 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
41107 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
41108 Usually this means the macro was only invoked conditionally." "$LINENO" 5
41109 fi
41110 if test -z "${am__fastdepCCAS_TRUE}" && test -z "${am__fastdepCCAS_FALSE}"; then
41111 as_fn_error $? "conditional \"am__fastdepCCAS\" was never defined.
41112 Usually this means the macro was only invoked conditionally." "$LINENO" 5
41113 fi
41114 if test -z "${TARGET_ASM_X86_64_TRUE}" && test -z "${TARGET_ASM_X86_64_FALSE}"; then
41115 as_fn_error $? "conditional \"TARGET_ASM_X86_64\" was never defined.
41116 Usually this means the macro was only invoked conditionally." "$LINENO" 5
41117 fi
41118 if test -z "${TARGET_ASM_I386_TRUE}" && test -z "${TARGET_ASM_I386_FALSE}"; then
41119 as_fn_error $? "conditional \"TARGET_ASM_I386\" was never defined.
41120 Usually this means the macro was only invoked conditionally." "$LINENO" 5
41121 fi
41122 if test -z "${TARGET_ASM_GENERIC_TRUE}" && test -z "${TARGET_ASM_GENERIC_FALSE}"; then
41123 as_fn_error $? "conditional \"TARGET_ASM_GENERIC\" was never defined.
41124 Usually this means the macro was only invoked conditionally." "$LINENO" 5
41125 fi
41126 if test -z "${CONFIG_USER_TRUE}" && test -z "${CONFIG_USER_FALSE}"; then
41127 as_fn_error $? "conditional \"CONFIG_USER\" was never defined.
41128 Usually this means the macro was only invoked conditionally." "$LINENO" 5
41129 fi
41130 if test -z "${CONFIG_KERNEL_TRUE}" && test -z "${CONFIG_KERNEL_FALSE}"; then
41131 as_fn_error $? "conditional \"CONFIG_KERNEL\" was never defined.
41132 Usually this means the macro was only invoked conditionally." "$LINENO" 5
41133 fi
41134 if test -z "${CONFIG_QAT_TRUE}" && test -z "${CONFIG_QAT_FALSE}"; then
41135 as_fn_error $? "conditional \"CONFIG_QAT\" was never defined.
41136 Usually this means the macro was only invoked conditionally." "$LINENO" 5
41137 fi
41138 if test -z "${WANT_DEVNAME2DEVID_TRUE}" && test -z "${WANT_DEVNAME2DEVID_FALSE}"; then
41139 as_fn_error $? "conditional \"WANT_DEVNAME2DEVID\" was never defined.
41140 Usually this means the macro was only invoked conditionally." "$LINENO" 5
41141 fi
41142 if test -z "${WANT_MMAP_LIBAIO_TRUE}" && test -z "${WANT_MMAP_LIBAIO_FALSE}"; then
41143 as_fn_error $? "conditional \"WANT_MMAP_LIBAIO\" was never defined.
41144 Usually this means the macro was only invoked conditionally." "$LINENO" 5
41145 fi
41146
41147 : "${CONFIG_STATUS=./config.status}"
41148 ac_write_fail=0
41149 ac_clean_files_save=$ac_clean_files
41150 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
41151 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
41152 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
41153 as_write_fail=0
41154 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
41155 #! $SHELL
41156 # Generated by $as_me.
41157 # Run this file to recreate the current configuration.
41158 # Compiler output produced by configure, useful for debugging
41159 # configure, is in config.log if it exists.
41160
41161 debug=false
41162 ac_cs_recheck=false
41163 ac_cs_silent=false
41164
41165 SHELL=\${CONFIG_SHELL-$SHELL}
41166 export SHELL
41167 _ASEOF
41168 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
41169 ## -------------------- ##
41170 ## M4sh Initialization. ##
41171 ## -------------------- ##
41172
41173 # Be more Bourne compatible
41174 DUALCASE=1; export DUALCASE # for MKS sh
41175 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
41176 emulate sh
41177 NULLCMD=:
41178 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
41179 # is contrary to our usage. Disable this feature.
41180 alias -g '${1+"$@"}'='"$@"'
41181 setopt NO_GLOB_SUBST
41182 else
41183 case `(set -o) 2>/dev/null` in #(
41184 *posix*) :
41185 set -o posix ;; #(
41186 *) :
41187 ;;
41188 esac
41189 fi
41190
41191
41192 as_nl='
41193 '
41194 export as_nl
41195 # Printing a long string crashes Solaris 7 /usr/bin/printf.
41196 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41197 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
41198 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41199 # Prefer a ksh shell builtin over an external printf program on Solaris,
41200 # but without wasting forks for bash or zsh.
41201 if test -z "$BASH_VERSION$ZSH_VERSION" \
41202 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
41203 as_echo='print -r --'
41204 as_echo_n='print -rn --'
41205 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
41206 as_echo='printf %s\n'
41207 as_echo_n='printf %s'
41208 else
41209 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
41210 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
41211 as_echo_n='/usr/ucb/echo -n'
41212 else
41213 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
41214 as_echo_n_body='eval
41215 arg=$1;
41216 case $arg in #(
41217 *"$as_nl"*)
41218 expr "X$arg" : "X\\(.*\\)$as_nl";
41219 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
41220 esac;
41221 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
41222 '
41223 export as_echo_n_body
41224 as_echo_n='sh -c $as_echo_n_body as_echo'
41225 fi
41226 export as_echo_body
41227 as_echo='sh -c $as_echo_body as_echo'
41228 fi
41229
41230 # The user is always right.
41231 if test "${PATH_SEPARATOR+set}" != set; then
41232 PATH_SEPARATOR=:
41233 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
41234 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
41235 PATH_SEPARATOR=';'
41236 }
41237 fi
41238
41239
41240 # IFS
41241 # We need space, tab and new line, in precisely that order. Quoting is
41242 # there to prevent editors from complaining about space-tab.
41243 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
41244 # splitting by setting IFS to empty value.)
41245 IFS=" "" $as_nl"
41246
41247 # Find who we are. Look in the path if we contain no directory separator.
41248 as_myself=
41249 case $0 in #((
41250 *[\\/]* ) as_myself=$0 ;;
41251 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
41252 for as_dir in $PATH
41253 do
41254 IFS=$as_save_IFS
41255 test -z "$as_dir" && as_dir=.
41256 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
41257 done
41258 IFS=$as_save_IFS
41259
41260 ;;
41261 esac
41262 # We did not find ourselves, most probably we were run as `sh COMMAND'
41263 # in which case we are not to be found in the path.
41264 if test "x$as_myself" = x; then
41265 as_myself=$0
41266 fi
41267 if test ! -f "$as_myself"; then
41268 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
41269 exit 1
41270 fi
41271
41272 # Unset variables that we do not need and which cause bugs (e.g. in
41273 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
41274 # suppresses any "Segmentation fault" message there. '((' could
41275 # trigger a bug in pdksh 5.2.14.
41276 for as_var in BASH_ENV ENV MAIL MAILPATH
41277 do eval test x\${$as_var+set} = xset \
41278 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
41279 done
41280 PS1='$ '
41281 PS2='> '
41282 PS4='+ '
41283
41284 # NLS nuisances.
41285 LC_ALL=C
41286 export LC_ALL
41287 LANGUAGE=C
41288 export LANGUAGE
41289
41290 # CDPATH.
41291 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
41292
41293
41294 # as_fn_error STATUS ERROR [LINENO LOG_FD]
41295 # ----------------------------------------
41296 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
41297 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
41298 # script with STATUS, using 1 if that was 0.
41299 as_fn_error ()
41300 {
41301 as_status=$1; test $as_status -eq 0 && as_status=1
41302 if test "$4"; then
41303 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
41304 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
41305 fi
41306 $as_echo "$as_me: error: $2" >&2
41307 as_fn_exit $as_status
41308 } # as_fn_error
41309
41310
41311 # as_fn_set_status STATUS
41312 # -----------------------
41313 # Set $? to STATUS, without forking.
41314 as_fn_set_status ()
41315 {
41316 return $1
41317 } # as_fn_set_status
41318
41319 # as_fn_exit STATUS
41320 # -----------------
41321 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
41322 as_fn_exit ()
41323 {
41324 set +e
41325 as_fn_set_status $1
41326 exit $1
41327 } # as_fn_exit
41328
41329 # as_fn_unset VAR
41330 # ---------------
41331 # Portably unset VAR.
41332 as_fn_unset ()
41333 {
41334 { eval $1=; unset $1;}
41335 }
41336 as_unset=as_fn_unset
41337 # as_fn_append VAR VALUE
41338 # ----------------------
41339 # Append the text in VALUE to the end of the definition contained in VAR. Take
41340 # advantage of any shell optimizations that allow amortized linear growth over
41341 # repeated appends, instead of the typical quadratic growth present in naive
41342 # implementations.
41343 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
41344 eval 'as_fn_append ()
41345 {
41346 eval $1+=\$2
41347 }'
41348 else
41349 as_fn_append ()
41350 {
41351 eval $1=\$$1\$2
41352 }
41353 fi # as_fn_append
41354
41355 # as_fn_arith ARG...
41356 # ------------------
41357 # Perform arithmetic evaluation on the ARGs, and store the result in the
41358 # global $as_val. Take advantage of shells that can avoid forks. The arguments
41359 # must be portable across $(()) and expr.
41360 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
41361 eval 'as_fn_arith ()
41362 {
41363 as_val=$(( $* ))
41364 }'
41365 else
41366 as_fn_arith ()
41367 {
41368 as_val=`expr "$@" || test $? -eq 1`
41369 }
41370 fi # as_fn_arith
41371
41372
41373 if expr a : '\(a\)' >/dev/null 2>&1 &&
41374 test "X`expr 00001 : '.*\(...\)'`" = X001; then
41375 as_expr=expr
41376 else
41377 as_expr=false
41378 fi
41379
41380 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
41381 as_basename=basename
41382 else
41383 as_basename=false
41384 fi
41385
41386 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
41387 as_dirname=dirname
41388 else
41389 as_dirname=false
41390 fi
41391
41392 as_me=`$as_basename -- "$0" ||
41393 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
41394 X"$0" : 'X\(//\)$' \| \
41395 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
41396 $as_echo X/"$0" |
41397 sed '/^.*\/\([^/][^/]*\)\/*$/{
41398 s//\1/
41399 q
41400 }
41401 /^X\/\(\/\/\)$/{
41402 s//\1/
41403 q
41404 }
41405 /^X\/\(\/\).*/{
41406 s//\1/
41407 q
41408 }
41409 s/.*/./; q'`
41410
41411 # Avoid depending upon Character Ranges.
41412 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
41413 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
41414 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
41415 as_cr_digits='0123456789'
41416 as_cr_alnum=$as_cr_Letters$as_cr_digits
41417
41418 ECHO_C= ECHO_N= ECHO_T=
41419 case `echo -n x` in #(((((
41420 -n*)
41421 case `echo 'xy\c'` in
41422 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
41423 xy) ECHO_C='\c';;
41424 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
41425 ECHO_T=' ';;
41426 esac;;
41427 *)
41428 ECHO_N='-n';;
41429 esac
41430
41431 rm -f conf$$ conf$$.exe conf$$.file
41432 if test -d conf$$.dir; then
41433 rm -f conf$$.dir/conf$$.file
41434 else
41435 rm -f conf$$.dir
41436 mkdir conf$$.dir 2>/dev/null
41437 fi
41438 if (echo >conf$$.file) 2>/dev/null; then
41439 if ln -s conf$$.file conf$$ 2>/dev/null; then
41440 as_ln_s='ln -s'
41441 # ... but there are two gotchas:
41442 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
41443 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
41444 # In both cases, we have to default to `cp -pR'.
41445 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
41446 as_ln_s='cp -pR'
41447 elif ln conf$$.file conf$$ 2>/dev/null; then
41448 as_ln_s=ln
41449 else
41450 as_ln_s='cp -pR'
41451 fi
41452 else
41453 as_ln_s='cp -pR'
41454 fi
41455 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
41456 rmdir conf$$.dir 2>/dev/null
41457
41458
41459 # as_fn_mkdir_p
41460 # -------------
41461 # Create "$as_dir" as a directory, including parents if necessary.
41462 as_fn_mkdir_p ()
41463 {
41464
41465 case $as_dir in #(
41466 -*) as_dir=./$as_dir;;
41467 esac
41468 test -d "$as_dir" || eval $as_mkdir_p || {
41469 as_dirs=
41470 while :; do
41471 case $as_dir in #(
41472 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
41473 *) as_qdir=$as_dir;;
41474 esac
41475 as_dirs="'$as_qdir' $as_dirs"
41476 as_dir=`$as_dirname -- "$as_dir" ||
41477 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
41478 X"$as_dir" : 'X\(//\)[^/]' \| \
41479 X"$as_dir" : 'X\(//\)$' \| \
41480 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
41481 $as_echo X"$as_dir" |
41482 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
41483 s//\1/
41484 q
41485 }
41486 /^X\(\/\/\)[^/].*/{
41487 s//\1/
41488 q
41489 }
41490 /^X\(\/\/\)$/{
41491 s//\1/
41492 q
41493 }
41494 /^X\(\/\).*/{
41495 s//\1/
41496 q
41497 }
41498 s/.*/./; q'`
41499 test -d "$as_dir" && break
41500 done
41501 test -z "$as_dirs" || eval "mkdir $as_dirs"
41502 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
41503
41504
41505 } # as_fn_mkdir_p
41506 if mkdir -p . 2>/dev/null; then
41507 as_mkdir_p='mkdir -p "$as_dir"'
41508 else
41509 test -d ./-p && rmdir ./-p
41510 as_mkdir_p=false
41511 fi
41512
41513
41514 # as_fn_executable_p FILE
41515 # -----------------------
41516 # Test if FILE is an executable regular file.
41517 as_fn_executable_p ()
41518 {
41519 test -f "$1" && test -x "$1"
41520 } # as_fn_executable_p
41521 as_test_x='test -x'
41522 as_executable_p=as_fn_executable_p
41523
41524 # Sed expression to map a string onto a valid CPP name.
41525 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
41526
41527 # Sed expression to map a string onto a valid variable name.
41528 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
41529
41530
41531 exec 6>&1
41532 ## ----------------------------------- ##
41533 ## Main body of $CONFIG_STATUS script. ##
41534 ## ----------------------------------- ##
41535 _ASEOF
41536 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
41537
41538 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
41539 # Save the log message, to keep $0 and so on meaningful, and to
41540 # report actual input values of CONFIG_FILES etc. instead of their
41541 # values after options handling.
41542 ac_log="
41543 This file was extended by zfs $as_me 0.7.5, which was
41544 generated by GNU Autoconf 2.69. Invocation command line was
41545
41546 CONFIG_FILES = $CONFIG_FILES
41547 CONFIG_HEADERS = $CONFIG_HEADERS
41548 CONFIG_LINKS = $CONFIG_LINKS
41549 CONFIG_COMMANDS = $CONFIG_COMMANDS
41550 $ $0 $@
41551
41552 on `(hostname || uname -n) 2>/dev/null | sed 1q`
41553 "
41554
41555 _ACEOF
41556
41557 case $ac_config_files in *"
41558 "*) set x $ac_config_files; shift; ac_config_files=$*;;
41559 esac
41560
41561 case $ac_config_headers in *"
41562 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
41563 esac
41564
41565
41566 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
41567 # Files that config.status was made for.
41568 config_files="$ac_config_files"
41569 config_headers="$ac_config_headers"
41570 config_commands="$ac_config_commands"
41571
41572 _ACEOF
41573
41574 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
41575 ac_cs_usage="\
41576 \`$as_me' instantiates files and other configuration actions
41577 from templates according to the current configuration. Unless the files
41578 and actions are specified as TAGs, all are instantiated by default.
41579
41580 Usage: $0 [OPTION]... [TAG]...
41581
41582 -h, --help print this help, then exit
41583 -V, --version print version number and configuration settings, then exit
41584 --config print configuration, then exit
41585 -q, --quiet, --silent
41586 do not print progress messages
41587 -d, --debug don't remove temporary files
41588 --recheck update $as_me by reconfiguring in the same conditions
41589 --file=FILE[:TEMPLATE]
41590 instantiate the configuration file FILE
41591 --header=FILE[:TEMPLATE]
41592 instantiate the configuration header FILE
41593
41594 Configuration files:
41595 $config_files
41596
41597 Configuration headers:
41598 $config_headers
41599
41600 Configuration commands:
41601 $config_commands
41602
41603 Report bugs to the package provider."
41604
41605 _ACEOF
41606 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
41607 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
41608 ac_cs_version="\\
41609 zfs config.status 0.7.5
41610 configured by $0, generated by GNU Autoconf 2.69,
41611 with options \\"\$ac_cs_config\\"
41612
41613 Copyright (C) 2012 Free Software Foundation, Inc.
41614 This config.status script is free software; the Free Software Foundation
41615 gives unlimited permission to copy, distribute and modify it."
41616
41617 ac_pwd='$ac_pwd'
41618 srcdir='$srcdir'
41619 INSTALL='$INSTALL'
41620 MKDIR_P='$MKDIR_P'
41621 AWK='$AWK'
41622 test -n "\$AWK" || AWK=awk
41623 _ACEOF
41624
41625 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
41626 # The default lists apply if the user does not specify any file.
41627 ac_need_defaults=:
41628 while test $# != 0
41629 do
41630 case $1 in
41631 --*=?*)
41632 ac_option=`expr "X$1" : 'X\([^=]*\)='`
41633 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
41634 ac_shift=:
41635 ;;
41636 --*=)
41637 ac_option=`expr "X$1" : 'X\([^=]*\)='`
41638 ac_optarg=
41639 ac_shift=:
41640 ;;
41641 *)
41642 ac_option=$1
41643 ac_optarg=$2
41644 ac_shift=shift
41645 ;;
41646 esac
41647
41648 case $ac_option in
41649 # Handling of the options.
41650 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
41651 ac_cs_recheck=: ;;
41652 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
41653 $as_echo "$ac_cs_version"; exit ;;
41654 --config | --confi | --conf | --con | --co | --c )
41655 $as_echo "$ac_cs_config"; exit ;;
41656 --debug | --debu | --deb | --de | --d | -d )
41657 debug=: ;;
41658 --file | --fil | --fi | --f )
41659 $ac_shift
41660 case $ac_optarg in
41661 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
41662 '') as_fn_error $? "missing file argument" ;;
41663 esac
41664 as_fn_append CONFIG_FILES " '$ac_optarg'"
41665 ac_need_defaults=false;;
41666 --header | --heade | --head | --hea )
41667 $ac_shift
41668 case $ac_optarg in
41669 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
41670 esac
41671 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
41672 ac_need_defaults=false;;
41673 --he | --h)
41674 # Conflict between --help and --header
41675 as_fn_error $? "ambiguous option: \`$1'
41676 Try \`$0 --help' for more information.";;
41677 --help | --hel | -h )
41678 $as_echo "$ac_cs_usage"; exit ;;
41679 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
41680 | -silent | --silent | --silen | --sile | --sil | --si | --s)
41681 ac_cs_silent=: ;;
41682
41683 # This is an error.
41684 -*) as_fn_error $? "unrecognized option: \`$1'
41685 Try \`$0 --help' for more information." ;;
41686
41687 *) as_fn_append ac_config_targets " $1"
41688 ac_need_defaults=false ;;
41689
41690 esac
41691 shift
41692 done
41693
41694 ac_configure_extra_args=
41695
41696 if $ac_cs_silent; then
41697 exec 6>/dev/null
41698 ac_configure_extra_args="$ac_configure_extra_args --silent"
41699 fi
41700
41701 _ACEOF
41702 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
41703 if \$ac_cs_recheck; then
41704 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
41705 shift
41706 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
41707 CONFIG_SHELL='$SHELL'
41708 export CONFIG_SHELL
41709 exec "\$@"
41710 fi
41711
41712 _ACEOF
41713 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
41714 exec 5>>config.log
41715 {
41716 echo
41717 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
41718 ## Running $as_me. ##
41719 _ASBOX
41720 $as_echo "$ac_log"
41721 } >&5
41722
41723 _ACEOF
41724 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
41725 #
41726 # INIT-COMMANDS
41727 #
41728 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
41729
41730
41731 # The HP-UX ksh and POSIX shell print the target directory to stdout
41732 # if CDPATH is set.
41733 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
41734
41735 sed_quote_subst='$sed_quote_subst'
41736 double_quote_subst='$double_quote_subst'
41737 delay_variable_subst='$delay_variable_subst'
41738 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
41739 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
41740 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
41741 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
41742 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
41743 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
41744 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
41745 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
41746 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
41747 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
41748 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
41749 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
41750 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
41751 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
41752 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
41753 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
41754 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
41755 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
41756 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
41757 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
41758 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
41759 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
41760 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
41761 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
41762 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
41763 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
41764 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
41765 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
41766 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
41767 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
41768 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
41769 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
41770 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
41771 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
41772 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
41773 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
41774 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
41775 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
41776 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
41777 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
41778 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
41779 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
41780 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
41781 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
41782 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
41783 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
41784 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
41785 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
41786 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
41787 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
41788 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
41789 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
41790 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
41791 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
41792 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
41793 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
41794 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
41795 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
41796 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"`'
41797 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
41798 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
41799 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
41800 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
41801 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
41802 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
41803 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
41804 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
41805 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
41806 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
41807 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
41808 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
41809 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
41810 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
41811 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
41812 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
41813 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
41814 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
41815 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
41816 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
41817 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
41818 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
41819 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
41820 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
41821 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
41822 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
41823 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
41824 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
41825 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
41826 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
41827 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
41828 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
41829 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
41830 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
41831 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
41832 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
41833 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
41834 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
41835 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
41836 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
41837 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
41838 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
41839 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
41840 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
41841 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
41842 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
41843 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
41844 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
41845 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
41846 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
41847 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
41848 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
41849 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
41850 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
41851 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
41852 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
41853 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
41854 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
41855 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
41856 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
41857 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
41858 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
41859 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
41860 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
41861 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
41862 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
41863 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
41864 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
41865 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
41866 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
41867 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
41868 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
41869 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
41870 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
41871 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
41872 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
41873
41874 LTCC='$LTCC'
41875 LTCFLAGS='$LTCFLAGS'
41876 compiler='$compiler_DEFAULT'
41877
41878 # A function that is used when there is no print builtin or printf.
41879 func_fallback_echo ()
41880 {
41881 eval 'cat <<_LTECHO_EOF
41882 \$1
41883 _LTECHO_EOF'
41884 }
41885
41886 # Quote evaled strings.
41887 for var in SHELL \
41888 ECHO \
41889 PATH_SEPARATOR \
41890 SED \
41891 GREP \
41892 EGREP \
41893 FGREP \
41894 LD \
41895 NM \
41896 LN_S \
41897 lt_SP2NL \
41898 lt_NL2SP \
41899 reload_flag \
41900 OBJDUMP \
41901 deplibs_check_method \
41902 file_magic_cmd \
41903 file_magic_glob \
41904 want_nocaseglob \
41905 DLLTOOL \
41906 sharedlib_from_linklib_cmd \
41907 AR \
41908 AR_FLAGS \
41909 archiver_list_spec \
41910 STRIP \
41911 RANLIB \
41912 CC \
41913 CFLAGS \
41914 compiler \
41915 lt_cv_sys_global_symbol_pipe \
41916 lt_cv_sys_global_symbol_to_cdecl \
41917 lt_cv_sys_global_symbol_to_import \
41918 lt_cv_sys_global_symbol_to_c_name_address \
41919 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
41920 lt_cv_nm_interface \
41921 nm_file_list_spec \
41922 lt_cv_truncate_bin \
41923 lt_prog_compiler_no_builtin_flag \
41924 lt_prog_compiler_pic \
41925 lt_prog_compiler_wl \
41926 lt_prog_compiler_static \
41927 lt_cv_prog_compiler_c_o \
41928 need_locks \
41929 MANIFEST_TOOL \
41930 DSYMUTIL \
41931 NMEDIT \
41932 LIPO \
41933 OTOOL \
41934 OTOOL64 \
41935 shrext_cmds \
41936 export_dynamic_flag_spec \
41937 whole_archive_flag_spec \
41938 compiler_needs_object \
41939 with_gnu_ld \
41940 allow_undefined_flag \
41941 no_undefined_flag \
41942 hardcode_libdir_flag_spec \
41943 hardcode_libdir_separator \
41944 exclude_expsyms \
41945 include_expsyms \
41946 file_list_spec \
41947 variables_saved_for_relink \
41948 libname_spec \
41949 library_names_spec \
41950 soname_spec \
41951 install_override_mode \
41952 finish_eval \
41953 old_striplib \
41954 striplib; do
41955 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
41956 *[\\\\\\\`\\"\\\$]*)
41957 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
41958 ;;
41959 *)
41960 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
41961 ;;
41962 esac
41963 done
41964
41965 # Double-quote double-evaled strings.
41966 for var in reload_cmds \
41967 old_postinstall_cmds \
41968 old_postuninstall_cmds \
41969 old_archive_cmds \
41970 extract_expsyms_cmds \
41971 old_archive_from_new_cmds \
41972 old_archive_from_expsyms_cmds \
41973 archive_cmds \
41974 archive_expsym_cmds \
41975 module_cmds \
41976 module_expsym_cmds \
41977 export_symbols_cmds \
41978 prelink_cmds \
41979 postlink_cmds \
41980 postinstall_cmds \
41981 postuninstall_cmds \
41982 finish_cmds \
41983 sys_lib_search_path_spec \
41984 configure_time_dlsearch_path \
41985 configure_time_lt_sys_library_path; do
41986 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
41987 *[\\\\\\\`\\"\\\$]*)
41988 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
41989 ;;
41990 *)
41991 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
41992 ;;
41993 esac
41994 done
41995
41996 ac_aux_dir='$ac_aux_dir'
41997
41998 # See if we are running on zsh, and set the options that allow our
41999 # commands through without removal of \ escapes INIT.
42000 if test -n "\${ZSH_VERSION+set}"; then
42001 setopt NO_GLOB_SUBST
42002 fi
42003
42004
42005 PACKAGE='$PACKAGE'
42006 VERSION='$VERSION'
42007 RM='$RM'
42008 ofile='$ofile'
42009
42010
42011
42012
42013 _ACEOF
42014
42015 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
42016
42017 # Handling of arguments.
42018 for ac_config_target in $ac_config_targets
42019 do
42020 case $ac_config_target in
42021 "zfs_config.h") CONFIG_HEADERS="$CONFIG_HEADERS zfs_config.h" ;;
42022 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
42023 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
42024 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
42025 "module/Makefile") CONFIG_FILES="$CONFIG_FILES module/Makefile" ;;
42026 "module/avl/Makefile") CONFIG_FILES="$CONFIG_FILES module/avl/Makefile" ;;
42027 "module/nvpair/Makefile") CONFIG_FILES="$CONFIG_FILES module/nvpair/Makefile" ;;
42028 "module/unicode/Makefile") CONFIG_FILES="$CONFIG_FILES module/unicode/Makefile" ;;
42029 "module/zcommon/Makefile") CONFIG_FILES="$CONFIG_FILES module/zcommon/Makefile" ;;
42030 "module/zfs/Makefile") CONFIG_FILES="$CONFIG_FILES module/zfs/Makefile" ;;
42031 "module/zpios/Makefile") CONFIG_FILES="$CONFIG_FILES module/zpios/Makefile" ;;
42032 "module/icp/Makefile") CONFIG_FILES="$CONFIG_FILES module/icp/Makefile" ;;
42033 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
42034 "include/linux/Makefile") CONFIG_FILES="$CONFIG_FILES include/linux/Makefile" ;;
42035 "include/sys/Makefile") CONFIG_FILES="$CONFIG_FILES include/sys/Makefile" ;;
42036 "include/sys/fs/Makefile") CONFIG_FILES="$CONFIG_FILES include/sys/fs/Makefile" ;;
42037 "include/sys/fm/Makefile") CONFIG_FILES="$CONFIG_FILES include/sys/fm/Makefile" ;;
42038 "include/sys/fm/fs/Makefile") CONFIG_FILES="$CONFIG_FILES include/sys/fm/fs/Makefile" ;;
42039 "include/sys/crypto/Makefile") CONFIG_FILES="$CONFIG_FILES include/sys/crypto/Makefile" ;;
42040 "include/sys/sysevent/Makefile") CONFIG_FILES="$CONFIG_FILES include/sys/sysevent/Makefile" ;;
42041 "zfs.release") CONFIG_FILES="$CONFIG_FILES zfs.release" ;;
42042
42043 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
42044 esac
42045 done
42046
42047
42048 # If the user did not use the arguments to specify the items to instantiate,
42049 # then the envvar interface is used. Set only those that are not.
42050 # We use the long form for the default assignment because of an extremely
42051 # bizarre bug on SunOS 4.1.3.
42052 if $ac_need_defaults; then
42053 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
42054 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
42055 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
42056 fi
42057
42058 # Have a temporary directory for convenience. Make it in the build tree
42059 # simply because there is no reason against having it here, and in addition,
42060 # creating and moving files from /tmp can sometimes cause problems.
42061 # Hook for its removal unless debugging.
42062 # Note that there is a small window in which the directory will not be cleaned:
42063 # after its creation but before its name has been assigned to `$tmp'.
42064 $debug ||
42065 {
42066 tmp= ac_tmp=
42067 trap 'exit_status=$?
42068 : "${ac_tmp:=$tmp}"
42069 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
42070 ' 0
42071 trap 'as_fn_exit 1' 1 2 13 15
42072 }
42073 # Create a (secure) tmp directory for tmp files.
42074
42075 {
42076 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
42077 test -d "$tmp"
42078 } ||
42079 {
42080 tmp=./conf$$-$RANDOM
42081 (umask 077 && mkdir "$tmp")
42082 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
42083 ac_tmp=$tmp
42084
42085 # Set up the scripts for CONFIG_FILES section.
42086 # No need to generate them if there are no CONFIG_FILES.
42087 # This happens for instance with `./config.status config.h'.
42088 if test -n "$CONFIG_FILES"; then
42089
42090
42091 ac_cr=`echo X | tr X '\015'`
42092 # On cygwin, bash can eat \r inside `` if the user requested igncr.
42093 # But we know of no other shell where ac_cr would be empty at this
42094 # point, so we can use a bashism as a fallback.
42095 if test "x$ac_cr" = x; then
42096 eval ac_cr=\$\'\\r\'
42097 fi
42098 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
42099 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
42100 ac_cs_awk_cr='\\r'
42101 else
42102 ac_cs_awk_cr=$ac_cr
42103 fi
42104
42105 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
42106 _ACEOF
42107
42108
42109 {
42110 echo "cat >conf$$subs.awk <<_ACEOF" &&
42111 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
42112 echo "_ACEOF"
42113 } >conf$$subs.sh ||
42114 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
42115 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
42116 ac_delim='%!_!# '
42117 for ac_last_try in false false false false false :; do
42118 . ./conf$$subs.sh ||
42119 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
42120
42121 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
42122 if test $ac_delim_n = $ac_delim_num; then
42123 break
42124 elif $ac_last_try; then
42125 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
42126 else
42127 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
42128 fi
42129 done
42130 rm -f conf$$subs.sh
42131
42132 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
42133 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
42134 _ACEOF
42135 sed -n '
42136 h
42137 s/^/S["/; s/!.*/"]=/
42138 p
42139 g
42140 s/^[^!]*!//
42141 :repl
42142 t repl
42143 s/'"$ac_delim"'$//
42144 t delim
42145 :nl
42146 h
42147 s/\(.\{148\}\)..*/\1/
42148 t more1
42149 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
42150 p
42151 n
42152 b repl
42153 :more1
42154 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
42155 p
42156 g
42157 s/.\{148\}//
42158 t nl
42159 :delim
42160 h
42161 s/\(.\{148\}\)..*/\1/
42162 t more2
42163 s/["\\]/\\&/g; s/^/"/; s/$/"/
42164 p
42165 b
42166 :more2
42167 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
42168 p
42169 g
42170 s/.\{148\}//
42171 t delim
42172 ' <conf$$subs.awk | sed '
42173 /^[^""]/{
42174 N
42175 s/\n//
42176 }
42177 ' >>$CONFIG_STATUS || ac_write_fail=1
42178 rm -f conf$$subs.awk
42179 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
42180 _ACAWK
42181 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
42182 for (key in S) S_is_set[key] = 1
42183 FS = "\a"
42184
42185 }
42186 {
42187 line = $ 0
42188 nfields = split(line, field, "@")
42189 substed = 0
42190 len = length(field[1])
42191 for (i = 2; i < nfields; i++) {
42192 key = field[i]
42193 keylen = length(key)
42194 if (S_is_set[key]) {
42195 value = S[key]
42196 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
42197 len += length(value) + length(field[++i])
42198 substed = 1
42199 } else
42200 len += 1 + keylen
42201 }
42202
42203 print line
42204 }
42205
42206 _ACAWK
42207 _ACEOF
42208 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
42209 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
42210 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
42211 else
42212 cat
42213 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
42214 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
42215 _ACEOF
42216
42217 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
42218 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
42219 # trailing colons and then remove the whole line if VPATH becomes empty
42220 # (actually we leave an empty line to preserve line numbers).
42221 if test "x$srcdir" = x.; then
42222 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
42223 h
42224 s///
42225 s/^/:/
42226 s/[ ]*$/:/
42227 s/:\$(srcdir):/:/g
42228 s/:\${srcdir}:/:/g
42229 s/:@srcdir@:/:/g
42230 s/^:*//
42231 s/:*$//
42232 x
42233 s/\(=[ ]*\).*/\1/
42234 G
42235 s/\n//
42236 s/^[^=]*=[ ]*$//
42237 }'
42238 fi
42239
42240 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
42241 fi # test -n "$CONFIG_FILES"
42242
42243 # Set up the scripts for CONFIG_HEADERS section.
42244 # No need to generate them if there are no CONFIG_HEADERS.
42245 # This happens for instance with `./config.status Makefile'.
42246 if test -n "$CONFIG_HEADERS"; then
42247 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
42248 BEGIN {
42249 _ACEOF
42250
42251 # Transform confdefs.h into an awk script `defines.awk', embedded as
42252 # here-document in config.status, that substitutes the proper values into
42253 # config.h.in to produce config.h.
42254
42255 # Create a delimiter string that does not exist in confdefs.h, to ease
42256 # handling of long lines.
42257 ac_delim='%!_!# '
42258 for ac_last_try in false false :; do
42259 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
42260 if test -z "$ac_tt"; then
42261 break
42262 elif $ac_last_try; then
42263 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
42264 else
42265 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
42266 fi
42267 done
42268
42269 # For the awk script, D is an array of macro values keyed by name,
42270 # likewise P contains macro parameters if any. Preserve backslash
42271 # newline sequences.
42272
42273 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
42274 sed -n '
42275 s/.\{148\}/&'"$ac_delim"'/g
42276 t rset
42277 :rset
42278 s/^[ ]*#[ ]*define[ ][ ]*/ /
42279 t def
42280 d
42281 :def
42282 s/\\$//
42283 t bsnl
42284 s/["\\]/\\&/g
42285 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
42286 D["\1"]=" \3"/p
42287 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
42288 d
42289 :bsnl
42290 s/["\\]/\\&/g
42291 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
42292 D["\1"]=" \3\\\\\\n"\\/p
42293 t cont
42294 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
42295 t cont
42296 d
42297 :cont
42298 n
42299 s/.\{148\}/&'"$ac_delim"'/g
42300 t clear
42301 :clear
42302 s/\\$//
42303 t bsnlc
42304 s/["\\]/\\&/g; s/^/"/; s/$/"/p
42305 d
42306 :bsnlc
42307 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
42308 b cont
42309 ' <confdefs.h | sed '
42310 s/'"$ac_delim"'/"\\\
42311 "/g' >>$CONFIG_STATUS || ac_write_fail=1
42312
42313 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
42314 for (key in D) D_is_set[key] = 1
42315 FS = "\a"
42316 }
42317 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
42318 line = \$ 0
42319 split(line, arg, " ")
42320 if (arg[1] == "#") {
42321 defundef = arg[2]
42322 mac1 = arg[3]
42323 } else {
42324 defundef = substr(arg[1], 2)
42325 mac1 = arg[2]
42326 }
42327 split(mac1, mac2, "(") #)
42328 macro = mac2[1]
42329 prefix = substr(line, 1, index(line, defundef) - 1)
42330 if (D_is_set[macro]) {
42331 # Preserve the white space surrounding the "#".
42332 print prefix "define", macro P[macro] D[macro]
42333 next
42334 } else {
42335 # Replace #undef with comments. This is necessary, for example,
42336 # in the case of _POSIX_SOURCE, which is predefined and required
42337 # on some systems where configure will not decide to define it.
42338 if (defundef == "undef") {
42339 print "/*", prefix defundef, macro, "*/"
42340 next
42341 }
42342 }
42343 }
42344 { print }
42345 _ACAWK
42346 _ACEOF
42347 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
42348 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
42349 fi # test -n "$CONFIG_HEADERS"
42350
42351
42352 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
42353 shift
42354 for ac_tag
42355 do
42356 case $ac_tag in
42357 :[FHLC]) ac_mode=$ac_tag; continue;;
42358 esac
42359 case $ac_mode$ac_tag in
42360 :[FHL]*:*);;
42361 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
42362 :[FH]-) ac_tag=-:-;;
42363 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
42364 esac
42365 ac_save_IFS=$IFS
42366 IFS=:
42367 set x $ac_tag
42368 IFS=$ac_save_IFS
42369 shift
42370 ac_file=$1
42371 shift
42372
42373 case $ac_mode in
42374 :L) ac_source=$1;;
42375 :[FH])
42376 ac_file_inputs=
42377 for ac_f
42378 do
42379 case $ac_f in
42380 -) ac_f="$ac_tmp/stdin";;
42381 *) # Look for the file first in the build tree, then in the source tree
42382 # (if the path is not absolute). The absolute path cannot be DOS-style,
42383 # because $ac_f cannot contain `:'.
42384 test -f "$ac_f" ||
42385 case $ac_f in
42386 [\\/$]*) false;;
42387 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
42388 esac ||
42389 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
42390 esac
42391 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
42392 as_fn_append ac_file_inputs " '$ac_f'"
42393 done
42394
42395 # Let's still pretend it is `configure' which instantiates (i.e., don't
42396 # use $as_me), people would be surprised to read:
42397 # /* config.h. Generated by config.status. */
42398 configure_input='Generated from '`
42399 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
42400 `' by configure.'
42401 if test x"$ac_file" != x-; then
42402 configure_input="$ac_file. $configure_input"
42403 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
42404 $as_echo "$as_me: creating $ac_file" >&6;}
42405 fi
42406 # Neutralize special characters interpreted by sed in replacement strings.
42407 case $configure_input in #(
42408 *\&* | *\|* | *\\* )
42409 ac_sed_conf_input=`$as_echo "$configure_input" |
42410 sed 's/[\\\\&|]/\\\\&/g'`;; #(
42411 *) ac_sed_conf_input=$configure_input;;
42412 esac
42413
42414 case $ac_tag in
42415 *:-:* | *:-) cat >"$ac_tmp/stdin" \
42416 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
42417 esac
42418 ;;
42419 esac
42420
42421 ac_dir=`$as_dirname -- "$ac_file" ||
42422 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
42423 X"$ac_file" : 'X\(//\)[^/]' \| \
42424 X"$ac_file" : 'X\(//\)$' \| \
42425 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
42426 $as_echo X"$ac_file" |
42427 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
42428 s//\1/
42429 q
42430 }
42431 /^X\(\/\/\)[^/].*/{
42432 s//\1/
42433 q
42434 }
42435 /^X\(\/\/\)$/{
42436 s//\1/
42437 q
42438 }
42439 /^X\(\/\).*/{
42440 s//\1/
42441 q
42442 }
42443 s/.*/./; q'`
42444 as_dir="$ac_dir"; as_fn_mkdir_p
42445 ac_builddir=.
42446
42447 case "$ac_dir" in
42448 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
42449 *)
42450 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
42451 # A ".." for each directory in $ac_dir_suffix.
42452 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
42453 case $ac_top_builddir_sub in
42454 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
42455 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
42456 esac ;;
42457 esac
42458 ac_abs_top_builddir=$ac_pwd
42459 ac_abs_builddir=$ac_pwd$ac_dir_suffix
42460 # for backward compatibility:
42461 ac_top_builddir=$ac_top_build_prefix
42462
42463 case $srcdir in
42464 .) # We are building in place.
42465 ac_srcdir=.
42466 ac_top_srcdir=$ac_top_builddir_sub
42467 ac_abs_top_srcdir=$ac_pwd ;;
42468 [\\/]* | ?:[\\/]* ) # Absolute name.
42469 ac_srcdir=$srcdir$ac_dir_suffix;
42470 ac_top_srcdir=$srcdir
42471 ac_abs_top_srcdir=$srcdir ;;
42472 *) # Relative name.
42473 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
42474 ac_top_srcdir=$ac_top_build_prefix$srcdir
42475 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
42476 esac
42477 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
42478
42479
42480 case $ac_mode in
42481 :F)
42482 #
42483 # CONFIG_FILE
42484 #
42485
42486 case $INSTALL in
42487 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
42488 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
42489 esac
42490 ac_MKDIR_P=$MKDIR_P
42491 case $MKDIR_P in
42492 [\\/$]* | ?:[\\/]* ) ;;
42493 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
42494 esac
42495 _ACEOF
42496
42497 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
42498 # If the template does not know about datarootdir, expand it.
42499 # FIXME: This hack should be removed a few years after 2.60.
42500 ac_datarootdir_hack=; ac_datarootdir_seen=
42501 ac_sed_dataroot='
42502 /datarootdir/ {
42503 p
42504 q
42505 }
42506 /@datadir@/p
42507 /@docdir@/p
42508 /@infodir@/p
42509 /@localedir@/p
42510 /@mandir@/p'
42511 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
42512 *datarootdir*) ac_datarootdir_seen=yes;;
42513 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
42514 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
42515 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
42516 _ACEOF
42517 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
42518 ac_datarootdir_hack='
42519 s&@datadir@&$datadir&g
42520 s&@docdir@&$docdir&g
42521 s&@infodir@&$infodir&g
42522 s&@localedir@&$localedir&g
42523 s&@mandir@&$mandir&g
42524 s&\\\${datarootdir}&$datarootdir&g' ;;
42525 esac
42526 _ACEOF
42527
42528 # Neutralize VPATH when `$srcdir' = `.'.
42529 # Shell code in configure.ac might set extrasub.
42530 # FIXME: do we really want to maintain this feature?
42531 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
42532 ac_sed_extra="$ac_vpsub
42533 $extrasub
42534 _ACEOF
42535 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
42536 :t
42537 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
42538 s|@configure_input@|$ac_sed_conf_input|;t t
42539 s&@top_builddir@&$ac_top_builddir_sub&;t t
42540 s&@top_build_prefix@&$ac_top_build_prefix&;t t
42541 s&@srcdir@&$ac_srcdir&;t t
42542 s&@abs_srcdir@&$ac_abs_srcdir&;t t
42543 s&@top_srcdir@&$ac_top_srcdir&;t t
42544 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
42545 s&@builddir@&$ac_builddir&;t t
42546 s&@abs_builddir@&$ac_abs_builddir&;t t
42547 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
42548 s&@INSTALL@&$ac_INSTALL&;t t
42549 s&@MKDIR_P@&$ac_MKDIR_P&;t t
42550 $ac_datarootdir_hack
42551 "
42552 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
42553 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
42554
42555 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
42556 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
42557 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
42558 "$ac_tmp/out"`; test -z "$ac_out"; } &&
42559 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
42560 which seems to be undefined. Please make sure it is defined" >&5
42561 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
42562 which seems to be undefined. Please make sure it is defined" >&2;}
42563
42564 rm -f "$ac_tmp/stdin"
42565 case $ac_file in
42566 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
42567 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
42568 esac \
42569 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
42570 ;;
42571 :H)
42572 #
42573 # CONFIG_HEADER
42574 #
42575 if test x"$ac_file" != x-; then
42576 {
42577 $as_echo "/* $configure_input */" \
42578 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
42579 } >"$ac_tmp/config.h" \
42580 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
42581 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
42582 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
42583 $as_echo "$as_me: $ac_file is unchanged" >&6;}
42584 else
42585 rm -f "$ac_file"
42586 mv "$ac_tmp/config.h" "$ac_file" \
42587 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
42588 fi
42589 else
42590 $as_echo "/* $configure_input */" \
42591 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
42592 || as_fn_error $? "could not create -" "$LINENO" 5
42593 fi
42594 # Compute "$ac_file"'s index in $config_headers.
42595 _am_arg="$ac_file"
42596 _am_stamp_count=1
42597 for _am_header in $config_headers :; do
42598 case $_am_header in
42599 $_am_arg | $_am_arg:* )
42600 break ;;
42601 * )
42602 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
42603 esac
42604 done
42605 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
42606 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
42607 X"$_am_arg" : 'X\(//\)[^/]' \| \
42608 X"$_am_arg" : 'X\(//\)$' \| \
42609 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
42610 $as_echo X"$_am_arg" |
42611 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
42612 s//\1/
42613 q
42614 }
42615 /^X\(\/\/\)[^/].*/{
42616 s//\1/
42617 q
42618 }
42619 /^X\(\/\/\)$/{
42620 s//\1/
42621 q
42622 }
42623 /^X\(\/\).*/{
42624 s//\1/
42625 q
42626 }
42627 s/.*/./; q'`/stamp-h$_am_stamp_count
42628 ;;
42629
42630 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
42631 $as_echo "$as_me: executing $ac_file commands" >&6;}
42632 ;;
42633 esac
42634
42635
42636 case $ac_file$ac_mode in
42637 "zfs_config.h":H)
42638 (mv zfs_config.h zfs_config.h.tmp &&
42639 awk -f ${ac_srcdir}/config/config.awk zfs_config.h.tmp >zfs_config.h &&
42640 rm zfs_config.h.tmp) || exit 1 ;;
42641 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
42642 # Older Autoconf quotes --file arguments for eval, but not when files
42643 # are listed without --file. Let's play safe and only enable the eval
42644 # if we detect the quoting.
42645 case $CONFIG_FILES in
42646 *\'*) eval set x "$CONFIG_FILES" ;;
42647 *) set x $CONFIG_FILES ;;
42648 esac
42649 shift
42650 for mf
42651 do
42652 # Strip MF so we end up with the name of the file.
42653 mf=`echo "$mf" | sed -e 's/:.*$//'`
42654 # Check whether this is an Automake generated Makefile or not.
42655 # We used to match only the files named 'Makefile.in', but
42656 # some people rename them; so instead we look at the file content.
42657 # Grep'ing the first line is not enough: some people post-process
42658 # each Makefile.in and add a new line on top of each file to say so.
42659 # Grep'ing the whole file is not good either: AIX grep has a line
42660 # limit of 2048, but all sed's we know have understand at least 4000.
42661 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
42662 dirpart=`$as_dirname -- "$mf" ||
42663 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
42664 X"$mf" : 'X\(//\)[^/]' \| \
42665 X"$mf" : 'X\(//\)$' \| \
42666 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
42667 $as_echo X"$mf" |
42668 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
42669 s//\1/
42670 q
42671 }
42672 /^X\(\/\/\)[^/].*/{
42673 s//\1/
42674 q
42675 }
42676 /^X\(\/\/\)$/{
42677 s//\1/
42678 q
42679 }
42680 /^X\(\/\).*/{
42681 s//\1/
42682 q
42683 }
42684 s/.*/./; q'`
42685 else
42686 continue
42687 fi
42688 # Extract the definition of DEPDIR, am__include, and am__quote
42689 # from the Makefile without running 'make'.
42690 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
42691 test -z "$DEPDIR" && continue
42692 am__include=`sed -n 's/^am__include = //p' < "$mf"`
42693 test -z "$am__include" && continue
42694 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
42695 # Find all dependency output files, they are included files with
42696 # $(DEPDIR) in their names. We invoke sed twice because it is the
42697 # simplest approach to changing $(DEPDIR) to its actual value in the
42698 # expansion.
42699 for file in `sed -n "
42700 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
42701 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
42702 # Make sure the directory exists.
42703 test -f "$dirpart/$file" && continue
42704 fdir=`$as_dirname -- "$file" ||
42705 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
42706 X"$file" : 'X\(//\)[^/]' \| \
42707 X"$file" : 'X\(//\)$' \| \
42708 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
42709 $as_echo X"$file" |
42710 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
42711 s//\1/
42712 q
42713 }
42714 /^X\(\/\/\)[^/].*/{
42715 s//\1/
42716 q
42717 }
42718 /^X\(\/\/\)$/{
42719 s//\1/
42720 q
42721 }
42722 /^X\(\/\).*/{
42723 s//\1/
42724 q
42725 }
42726 s/.*/./; q'`
42727 as_dir=$dirpart/$fdir; as_fn_mkdir_p
42728 # echo "creating $dirpart/$file"
42729 echo '# dummy' > "$dirpart/$file"
42730 done
42731 done
42732 }
42733 ;;
42734 "libtool":C)
42735
42736 # See if we are running on zsh, and set the options that allow our
42737 # commands through without removal of \ escapes.
42738 if test -n "${ZSH_VERSION+set}"; then
42739 setopt NO_GLOB_SUBST
42740 fi
42741
42742 cfgfile=${ofile}T
42743 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
42744 $RM "$cfgfile"
42745
42746 cat <<_LT_EOF >> "$cfgfile"
42747 #! $SHELL
42748 # Generated automatically by $as_me ($PACKAGE) $VERSION
42749 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
42750
42751 # Provide generalized library-building support services.
42752 # Written by Gordon Matzigkeit, 1996
42753
42754 # Copyright (C) 2014 Free Software Foundation, Inc.
42755 # This is free software; see the source for copying conditions. There is NO
42756 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
42757
42758 # GNU Libtool is free software; you can redistribute it and/or modify
42759 # it under the terms of the GNU General Public License as published by
42760 # the Free Software Foundation; either version 2 of of the License, or
42761 # (at your option) any later version.
42762 #
42763 # As a special exception to the GNU General Public License, if you
42764 # distribute this file as part of a program or library that is built
42765 # using GNU Libtool, you may include this file under the same
42766 # distribution terms that you use for the rest of that program.
42767 #
42768 # GNU Libtool is distributed in the hope that it will be useful, but
42769 # WITHOUT ANY WARRANTY; without even the implied warranty of
42770 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
42771 # GNU General Public License for more details.
42772 #
42773 # You should have received a copy of the GNU General Public License
42774 # along with this program. If not, see <http://www.gnu.org/licenses/>.
42775
42776
42777 # The names of the tagged configurations supported by this script.
42778 available_tags=''
42779
42780 # Configured defaults for sys_lib_dlsearch_path munging.
42781 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
42782
42783 # ### BEGIN LIBTOOL CONFIG
42784
42785 # Which release of libtool.m4 was used?
42786 macro_version=$macro_version
42787 macro_revision=$macro_revision
42788
42789 # Whether or not to build shared libraries.
42790 build_libtool_libs=$enable_shared
42791
42792 # Whether or not to build static libraries.
42793 build_old_libs=$enable_static
42794
42795 # What type of objects to build.
42796 pic_mode=$pic_mode
42797
42798 # Whether or not to optimize for fast installation.
42799 fast_install=$enable_fast_install
42800
42801 # Shared archive member basename,for filename based shared library versioning on AIX.
42802 shared_archive_member_spec=$shared_archive_member_spec
42803
42804 # Shell to use when invoking shell scripts.
42805 SHELL=$lt_SHELL
42806
42807 # An echo program that protects backslashes.
42808 ECHO=$lt_ECHO
42809
42810 # The PATH separator for the build system.
42811 PATH_SEPARATOR=$lt_PATH_SEPARATOR
42812
42813 # The host system.
42814 host_alias=$host_alias
42815 host=$host
42816 host_os=$host_os
42817
42818 # The build system.
42819 build_alias=$build_alias
42820 build=$build
42821 build_os=$build_os
42822
42823 # A sed program that does not truncate output.
42824 SED=$lt_SED
42825
42826 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
42827 Xsed="\$SED -e 1s/^X//"
42828
42829 # A grep program that handles long lines.
42830 GREP=$lt_GREP
42831
42832 # An ERE matcher.
42833 EGREP=$lt_EGREP
42834
42835 # A literal string matcher.
42836 FGREP=$lt_FGREP
42837
42838 # A BSD- or MS-compatible name lister.
42839 NM=$lt_NM
42840
42841 # Whether we need soft or hard links.
42842 LN_S=$lt_LN_S
42843
42844 # What is the maximum length of a command?
42845 max_cmd_len=$max_cmd_len
42846
42847 # Object file suffix (normally "o").
42848 objext=$ac_objext
42849
42850 # Executable file suffix (normally "").
42851 exeext=$exeext
42852
42853 # whether the shell understands "unset".
42854 lt_unset=$lt_unset
42855
42856 # turn spaces into newlines.
42857 SP2NL=$lt_lt_SP2NL
42858
42859 # turn newlines into spaces.
42860 NL2SP=$lt_lt_NL2SP
42861
42862 # convert \$build file names to \$host format.
42863 to_host_file_cmd=$lt_cv_to_host_file_cmd
42864
42865 # convert \$build files to toolchain format.
42866 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
42867
42868 # An object symbol dumper.
42869 OBJDUMP=$lt_OBJDUMP
42870
42871 # Method to check whether dependent libraries are shared objects.
42872 deplibs_check_method=$lt_deplibs_check_method
42873
42874 # Command to use when deplibs_check_method = "file_magic".
42875 file_magic_cmd=$lt_file_magic_cmd
42876
42877 # How to find potential files when deplibs_check_method = "file_magic".
42878 file_magic_glob=$lt_file_magic_glob
42879
42880 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
42881 want_nocaseglob=$lt_want_nocaseglob
42882
42883 # DLL creation program.
42884 DLLTOOL=$lt_DLLTOOL
42885
42886 # Command to associate shared and link libraries.
42887 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
42888
42889 # The archiver.
42890 AR=$lt_AR
42891
42892 # Flags to create an archive.
42893 AR_FLAGS=$lt_AR_FLAGS
42894
42895 # How to feed a file listing to the archiver.
42896 archiver_list_spec=$lt_archiver_list_spec
42897
42898 # A symbol stripping program.
42899 STRIP=$lt_STRIP
42900
42901 # Commands used to install an old-style archive.
42902 RANLIB=$lt_RANLIB
42903 old_postinstall_cmds=$lt_old_postinstall_cmds
42904 old_postuninstall_cmds=$lt_old_postuninstall_cmds
42905
42906 # Whether to use a lock for old archive extraction.
42907 lock_old_archive_extraction=$lock_old_archive_extraction
42908
42909 # A C compiler.
42910 LTCC=$lt_CC
42911
42912 # LTCC compiler flags.
42913 LTCFLAGS=$lt_CFLAGS
42914
42915 # Take the output of nm and produce a listing of raw symbols and C names.
42916 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
42917
42918 # Transform the output of nm in a proper C declaration.
42919 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
42920
42921 # Transform the output of nm into a list of symbols to manually relocate.
42922 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
42923
42924 # Transform the output of nm in a C name address pair.
42925 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
42926
42927 # Transform the output of nm in a C name address pair when lib prefix is needed.
42928 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
42929
42930 # The name lister interface.
42931 nm_interface=$lt_lt_cv_nm_interface
42932
42933 # Specify filename containing input files for \$NM.
42934 nm_file_list_spec=$lt_nm_file_list_spec
42935
42936 # The root where to search for dependent libraries,and where our libraries should be installed.
42937 lt_sysroot=$lt_sysroot
42938
42939 # Command to truncate a binary pipe.
42940 lt_truncate_bin=$lt_lt_cv_truncate_bin
42941
42942 # The name of the directory that contains temporary libtool files.
42943 objdir=$objdir
42944
42945 # Used to examine libraries when file_magic_cmd begins with "file".
42946 MAGIC_CMD=$MAGIC_CMD
42947
42948 # Must we lock files when doing compilation?
42949 need_locks=$lt_need_locks
42950
42951 # Manifest tool.
42952 MANIFEST_TOOL=$lt_MANIFEST_TOOL
42953
42954 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
42955 DSYMUTIL=$lt_DSYMUTIL
42956
42957 # Tool to change global to local symbols on Mac OS X.
42958 NMEDIT=$lt_NMEDIT
42959
42960 # Tool to manipulate fat objects and archives on Mac OS X.
42961 LIPO=$lt_LIPO
42962
42963 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
42964 OTOOL=$lt_OTOOL
42965
42966 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
42967 OTOOL64=$lt_OTOOL64
42968
42969 # Old archive suffix (normally "a").
42970 libext=$libext
42971
42972 # Shared library suffix (normally ".so").
42973 shrext_cmds=$lt_shrext_cmds
42974
42975 # The commands to extract the exported symbol list from a shared archive.
42976 extract_expsyms_cmds=$lt_extract_expsyms_cmds
42977
42978 # Variables whose values should be saved in libtool wrapper scripts and
42979 # restored at link time.
42980 variables_saved_for_relink=$lt_variables_saved_for_relink
42981
42982 # Do we need the "lib" prefix for modules?
42983 need_lib_prefix=$need_lib_prefix
42984
42985 # Do we need a version for libraries?
42986 need_version=$need_version
42987
42988 # Library versioning type.
42989 version_type=$version_type
42990
42991 # Shared library runtime path variable.
42992 runpath_var=$runpath_var
42993
42994 # Shared library path variable.
42995 shlibpath_var=$shlibpath_var
42996
42997 # Is shlibpath searched before the hard-coded library search path?
42998 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
42999
43000 # Format of library name prefix.
43001 libname_spec=$lt_libname_spec
43002
43003 # List of archive names. First name is the real one, the rest are links.
43004 # The last name is the one that the linker finds with -lNAME
43005 library_names_spec=$lt_library_names_spec
43006
43007 # The coded name of the library, if different from the real name.
43008 soname_spec=$lt_soname_spec
43009
43010 # Permission mode override for installation of shared libraries.
43011 install_override_mode=$lt_install_override_mode
43012
43013 # Command to use after installation of a shared archive.
43014 postinstall_cmds=$lt_postinstall_cmds
43015
43016 # Command to use after uninstallation of a shared archive.
43017 postuninstall_cmds=$lt_postuninstall_cmds
43018
43019 # Commands used to finish a libtool library installation in a directory.
43020 finish_cmds=$lt_finish_cmds
43021
43022 # As "finish_cmds", except a single script fragment to be evaled but
43023 # not shown.
43024 finish_eval=$lt_finish_eval
43025
43026 # Whether we should hardcode library paths into libraries.
43027 hardcode_into_libs=$hardcode_into_libs
43028
43029 # Compile-time system search path for libraries.
43030 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
43031
43032 # Detected run-time system search path for libraries.
43033 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
43034
43035 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
43036 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
43037
43038 # Whether dlopen is supported.
43039 dlopen_support=$enable_dlopen
43040
43041 # Whether dlopen of programs is supported.
43042 dlopen_self=$enable_dlopen_self
43043
43044 # Whether dlopen of statically linked programs is supported.
43045 dlopen_self_static=$enable_dlopen_self_static
43046
43047 # Commands to strip libraries.
43048 old_striplib=$lt_old_striplib
43049 striplib=$lt_striplib
43050
43051
43052 # The linker used to build libraries.
43053 LD=$lt_LD
43054
43055 # How to create reloadable object files.
43056 reload_flag=$lt_reload_flag
43057 reload_cmds=$lt_reload_cmds
43058
43059 # Commands used to build an old-style archive.
43060 old_archive_cmds=$lt_old_archive_cmds
43061
43062 # A language specific compiler.
43063 CC=$lt_compiler
43064
43065 # Is the compiler the GNU compiler?
43066 with_gcc=$GCC
43067
43068 # Compiler flag to turn off builtin functions.
43069 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
43070
43071 # Additional compiler flags for building library objects.
43072 pic_flag=$lt_lt_prog_compiler_pic
43073
43074 # How to pass a linker flag through the compiler.
43075 wl=$lt_lt_prog_compiler_wl
43076
43077 # Compiler flag to prevent dynamic linking.
43078 link_static_flag=$lt_lt_prog_compiler_static
43079
43080 # Does compiler simultaneously support -c and -o options?
43081 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
43082
43083 # Whether or not to add -lc for building shared libraries.
43084 build_libtool_need_lc=$archive_cmds_need_lc
43085
43086 # Whether or not to disallow shared libs when runtime libs are static.
43087 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
43088
43089 # Compiler flag to allow reflexive dlopens.
43090 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
43091
43092 # Compiler flag to generate shared objects directly from archives.
43093 whole_archive_flag_spec=$lt_whole_archive_flag_spec
43094
43095 # Whether the compiler copes with passing no objects directly.
43096 compiler_needs_object=$lt_compiler_needs_object
43097
43098 # Create an old-style archive from a shared archive.
43099 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
43100
43101 # Create a temporary old-style archive to link instead of a shared archive.
43102 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
43103
43104 # Commands used to build a shared archive.
43105 archive_cmds=$lt_archive_cmds
43106 archive_expsym_cmds=$lt_archive_expsym_cmds
43107
43108 # Commands used to build a loadable module if different from building
43109 # a shared archive.
43110 module_cmds=$lt_module_cmds
43111 module_expsym_cmds=$lt_module_expsym_cmds
43112
43113 # Whether we are building with GNU ld or not.
43114 with_gnu_ld=$lt_with_gnu_ld
43115
43116 # Flag that allows shared libraries with undefined symbols to be built.
43117 allow_undefined_flag=$lt_allow_undefined_flag
43118
43119 # Flag that enforces no undefined symbols.
43120 no_undefined_flag=$lt_no_undefined_flag
43121
43122 # Flag to hardcode \$libdir into a binary during linking.
43123 # This must work even if \$libdir does not exist
43124 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
43125
43126 # Whether we need a single "-rpath" flag with a separated argument.
43127 hardcode_libdir_separator=$lt_hardcode_libdir_separator
43128
43129 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
43130 # DIR into the resulting binary.
43131 hardcode_direct=$hardcode_direct
43132
43133 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
43134 # DIR into the resulting binary and the resulting library dependency is
43135 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
43136 # library is relocated.
43137 hardcode_direct_absolute=$hardcode_direct_absolute
43138
43139 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
43140 # into the resulting binary.
43141 hardcode_minus_L=$hardcode_minus_L
43142
43143 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
43144 # into the resulting binary.
43145 hardcode_shlibpath_var=$hardcode_shlibpath_var
43146
43147 # Set to "yes" if building a shared library automatically hardcodes DIR
43148 # into the library and all subsequent libraries and executables linked
43149 # against it.
43150 hardcode_automatic=$hardcode_automatic
43151
43152 # Set to yes if linker adds runtime paths of dependent libraries
43153 # to runtime path list.
43154 inherit_rpath=$inherit_rpath
43155
43156 # Whether libtool must link a program against all its dependency libraries.
43157 link_all_deplibs=$link_all_deplibs
43158
43159 # Set to "yes" if exported symbols are required.
43160 always_export_symbols=$always_export_symbols
43161
43162 # The commands to list exported symbols.
43163 export_symbols_cmds=$lt_export_symbols_cmds
43164
43165 # Symbols that should not be listed in the preloaded symbols.
43166 exclude_expsyms=$lt_exclude_expsyms
43167
43168 # Symbols that must always be exported.
43169 include_expsyms=$lt_include_expsyms
43170
43171 # Commands necessary for linking programs (against libraries) with templates.
43172 prelink_cmds=$lt_prelink_cmds
43173
43174 # Commands necessary for finishing linking programs.
43175 postlink_cmds=$lt_postlink_cmds
43176
43177 # Specify filename containing input files.
43178 file_list_spec=$lt_file_list_spec
43179
43180 # How to hardcode a shared library path into an executable.
43181 hardcode_action=$hardcode_action
43182
43183 # ### END LIBTOOL CONFIG
43184
43185 _LT_EOF
43186
43187 cat <<'_LT_EOF' >> "$cfgfile"
43188
43189 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
43190
43191 # func_munge_path_list VARIABLE PATH
43192 # -----------------------------------
43193 # VARIABLE is name of variable containing _space_ separated list of
43194 # directories to be munged by the contents of PATH, which is string
43195 # having a format:
43196 # "DIR[:DIR]:"
43197 # string "DIR[ DIR]" will be prepended to VARIABLE
43198 # ":DIR[:DIR]"
43199 # string "DIR[ DIR]" will be appended to VARIABLE
43200 # "DIRP[:DIRP]::[DIRA:]DIRA"
43201 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
43202 # "DIRA[ DIRA]" will be appended to VARIABLE
43203 # "DIR[:DIR]"
43204 # VARIABLE will be replaced by "DIR[ DIR]"
43205 func_munge_path_list ()
43206 {
43207 case x$2 in
43208 x)
43209 ;;
43210 *:)
43211 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
43212 ;;
43213 x:*)
43214 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
43215 ;;
43216 *::*)
43217 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
43218 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
43219 ;;
43220 *)
43221 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
43222 ;;
43223 esac
43224 }
43225
43226
43227 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
43228 func_cc_basename ()
43229 {
43230 for cc_temp in $*""; do
43231 case $cc_temp in
43232 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
43233 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
43234 \-*) ;;
43235 *) break;;
43236 esac
43237 done
43238 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
43239 }
43240
43241
43242 # ### END FUNCTIONS SHARED WITH CONFIGURE
43243
43244 _LT_EOF
43245
43246 case $host_os in
43247 aix3*)
43248 cat <<\_LT_EOF >> "$cfgfile"
43249 # AIX sometimes has problems with the GCC collect2 program. For some
43250 # reason, if we set the COLLECT_NAMES environment variable, the problems
43251 # vanish in a puff of smoke.
43252 if test set != "${COLLECT_NAMES+set}"; then
43253 COLLECT_NAMES=
43254 export COLLECT_NAMES
43255 fi
43256 _LT_EOF
43257 ;;
43258 esac
43259
43260
43261 ltmain=$ac_aux_dir/ltmain.sh
43262
43263
43264 # We use sed instead of cat because bash on DJGPP gets confused if
43265 # if finds mixed CR/LF and LF-only lines. Since sed operates in
43266 # text mode, it properly converts lines to CR/LF. This bash problem
43267 # is reportedly fixed, but why not run on old versions too?
43268 sed '$q' "$ltmain" >> "$cfgfile" \
43269 || (rm -f "$cfgfile"; exit 1)
43270
43271 mv -f "$cfgfile" "$ofile" ||
43272 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
43273 chmod +x "$ofile"
43274
43275 ;;
43276
43277 esac
43278 done # for ac_tag
43279
43280
43281 as_fn_exit 0
43282 _ACEOF
43283 ac_clean_files=$ac_clean_files_save
43284
43285 test $ac_write_fail = 0 ||
43286 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
43287
43288
43289 # configure is writing to config.log, and then calls config.status.
43290 # config.status does its own redirection, appending to config.log.
43291 # Unfortunately, on DOS this fails, as config.log is still kept open
43292 # by configure, so config.status won't be able to write to it; its
43293 # output is simply discarded. So we exec the FD to /dev/null,
43294 # effectively closing config.log, so it can be properly (re)opened and
43295 # appended to by config.status. When coming back to configure, we
43296 # need to make the FD available again.
43297 if test "$no_create" != yes; then
43298 ac_cs_success=:
43299 ac_config_status_args=
43300 test "$silent" = yes &&
43301 ac_config_status_args="$ac_config_status_args --quiet"
43302 exec 5>/dev/null
43303 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
43304 exec 5>>config.log
43305 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
43306 # would make configure fail if this is the last instruction.
43307 $ac_cs_success || as_fn_exit 1
43308 fi
43309 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
43310 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
43311 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
43312 fi
43313