]> git.proxmox.com Git - mirror_zfs-debian.git/blob - configure
Imported Upstream version 0.6.5.9
[mirror_zfs-debian.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for zfs 0.6.5.9.
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.6.5.9'
591 PACKAGE_STRING='zfs 0.6.5.9'
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_DMU_TX
636 DEBUG_ZFS
637 DEBUG_STACKFLAGS
638 DEBUG_CFLAGS
639 CONFIG_KERNEL_FALSE
640 CONFIG_KERNEL_TRUE
641 CONFIG_USER_FALSE
642 CONFIG_USER_TRUE
643 FRAME_LARGER_THAN
644 LIBBLKID
645 LIBUUID
646 ZLIB
647 dracutdir
648 ZFS_INIT_SYSV
649 modulesloaddir
650 systemdpresetdir
651 systemdunitdir
652 ZFS_MODULE_LOAD
653 ZFS_INIT_SYSTEMD
654 udevruledir
655 udevdir
656 mounthelperdir
657 KERNELCPPFLAGS
658 KERNELMAKE_PARAMS
659 SPL_SYMBOLS
660 SPL_VERSION
661 SPL_OBJ
662 SPL
663 LINUX_SYMBOLS
664 LINUX_VERSION
665 LINUX_OBJ
666 LINUX
667 NO_BOOL_COMPARE
668 NO_UNUSED_BUT_SET_VARIABLE
669 ZFS_CONFIG
670 TARGET_ASM_DIR
671 ALIEN_VERSION
672 ALIEN
673 HAVE_ALIEN
674 DPKGBUILD_VERSION
675 DPKGBUILD
676 HAVE_DPKGBUILD
677 DPKG_VERSION
678 DPKG
679 HAVE_DPKG
680 SRPM_DEFINE_COMMON
681 SRPM_DEFINE_DKMS
682 SRPM_DEFINE_KMOD
683 SRPM_DEFINE_UTIL
684 RPM_DEFINE_COMMON
685 RPM_DEFINE_DKMS
686 RPM_DEFINE_KMOD
687 RPM_DEFINE_UTIL
688 RPM_SPEC_DIR
689 RPMBUILD_VERSION
690 RPMBUILD
691 HAVE_RPMBUILD
692 RPM_VERSION
693 RPM
694 HAVE_RPM
695 DEFINE_INITRAMFS
696 DEFAULT_INITCONF_DIR
697 DEFAULT_INIT_SCRIPT
698 DEFAULT_INIT_DIR
699 DEFAULT_PACKAGE
700 VENDOR
701 am__fastdepCCAS_FALSE
702 am__fastdepCCAS_TRUE
703 CCASDEPMODE
704 CCASFLAGS
705 CCAS
706 CPP
707 LT_SYS_LIBRARY_PATH
708 OTOOL64
709 OTOOL
710 LIPO
711 NMEDIT
712 DSYMUTIL
713 MANIFEST_TOOL
714 RANLIB
715 ac_ct_AR
716 AR
717 DLLTOOL
718 OBJDUMP
719 LN_S
720 NM
721 ac_ct_DUMPBIN
722 DUMPBIN
723 LD
724 FGREP
725 EGREP
726 GREP
727 SED
728 LIBTOOL
729 am__fastdepCC_FALSE
730 am__fastdepCC_TRUE
731 CCDEPMODE
732 am__nodep
733 AMDEPBACKSLASH
734 AMDEP_FALSE
735 AMDEP_TRUE
736 am__quote
737 am__include
738 DEPDIR
739 OBJEXT
740 EXEEXT
741 ac_ct_CC
742 CPPFLAGS
743 LDFLAGS
744 CFLAGS
745 CC
746 am__untar
747 am__tar
748 AMTAR
749 am__leading_dot
750 SET_MAKE
751 mkdir_p
752 MKDIR_P
753 INSTALL_STRIP_PROGRAM
754 STRIP
755 install_sh
756 MAKEINFO
757 AUTOHEADER
758 AUTOMAKE
759 AUTOCONF
760 ACLOCAL
761 VERSION
762 PACKAGE
763 CYGPATH_W
764 am__isrc
765 INSTALL_DATA
766 INSTALL_SCRIPT
767 INSTALL_PROGRAM
768 AM_BACKSLASH
769 AM_DEFAULT_VERBOSITY
770 AM_DEFAULT_V
771 AM_V
772 MAINT
773 MAINTAINER_MODE_FALSE
774 MAINTAINER_MODE_TRUE
775 target_os
776 target_vendor
777 target_cpu
778 target
779 host_os
780 host_vendor
781 host_cpu
782 host
783 build_os
784 build_vendor
785 build_cpu
786 build
787 ZFS_META_LT_AGE
788 ZFS_META_LT_REVISION
789 ZFS_META_LT_CURRENT
790 ZFS_META_AUTHOR
791 ZFS_META_DATA
792 ZFS_META_ALIAS
793 ZFS_META_LICENSE
794 RELEASE
795 ZFS_META_RELEASE
796 ZFS_META_VERSION
797 ZFS_META_NAME
798 AWK
799 target_alias
800 host_alias
801 build_alias
802 LIBS
803 ECHO_T
804 ECHO_N
805 ECHO_C
806 DEFS
807 mandir
808 localedir
809 libdir
810 psdir
811 pdfdir
812 dvidir
813 htmldir
814 infodir
815 docdir
816 oldincludedir
817 includedir
818 runstatedir
819 localstatedir
820 sharedstatedir
821 sysconfdir
822 datadir
823 datarootdir
824 libexecdir
825 sbindir
826 bindir
827 program_transform_name
828 prefix
829 exec_prefix
830 PACKAGE_URL
831 PACKAGE_BUGREPORT
832 PACKAGE_STRING
833 PACKAGE_VERSION
834 PACKAGE_TARNAME
835 PACKAGE_NAME
836 PATH_SEPARATOR
837 SHELL'
838 ac_subst_files=''
839 ac_user_opts='
840 enable_option_checking
841 enable_maintainer_mode
842 enable_silent_rules
843 enable_dependency_tracking
844 enable_shared
845 enable_static
846 with_pic
847 enable_fast_install
848 with_aix_soname
849 with_gnu_ld
850 with_sysroot
851 enable_libtool_lock
852 with_spec
853 with_config
854 enable_linux_builtin
855 with_linux
856 with_linux_obj
857 with_spl
858 with_spl_obj
859 with_spl_timeout
860 with_mounthelperdir
861 with_udevdir
862 with_udevruledir
863 enable_systemd
864 with_systemdunitdir
865 with_systemdpresetdir
866 with_systemdmodulesloaddir
867 enable_sysvinit
868 with_dracutdir
869 with_blkid
870 enable_debug
871 enable_debug_dmu_tx
872 '
873 ac_precious_vars='build_alias
874 host_alias
875 target_alias
876 CC
877 CFLAGS
878 LDFLAGS
879 LIBS
880 CPPFLAGS
881 LT_SYS_LIBRARY_PATH
882 CPP
883 CCAS
884 CCASFLAGS'
885
886
887 # Initialize some variables set by options.
888 ac_init_help=
889 ac_init_version=false
890 ac_unrecognized_opts=
891 ac_unrecognized_sep=
892 # The variables have the same names as the options, with
893 # dashes changed to underlines.
894 cache_file=/dev/null
895 exec_prefix=NONE
896 no_create=
897 no_recursion=
898 prefix=NONE
899 program_prefix=NONE
900 program_suffix=NONE
901 program_transform_name=s,x,x,
902 silent=
903 site=
904 srcdir=
905 verbose=
906 x_includes=NONE
907 x_libraries=NONE
908
909 # Installation directory options.
910 # These are left unexpanded so users can "make install exec_prefix=/foo"
911 # and all the variables that are supposed to be based on exec_prefix
912 # by default will actually change.
913 # Use braces instead of parens because sh, perl, etc. also accept them.
914 # (The list follows the same order as the GNU Coding Standards.)
915 bindir='${exec_prefix}/bin'
916 sbindir='${exec_prefix}/sbin'
917 libexecdir='${exec_prefix}/libexec'
918 datarootdir='${prefix}/share'
919 datadir='${datarootdir}'
920 sysconfdir='${prefix}/etc'
921 sharedstatedir='${prefix}/com'
922 localstatedir='${prefix}/var'
923 runstatedir='${localstatedir}/run'
924 includedir='${prefix}/include'
925 oldincludedir='/usr/include'
926 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
927 infodir='${datarootdir}/info'
928 htmldir='${docdir}'
929 dvidir='${docdir}'
930 pdfdir='${docdir}'
931 psdir='${docdir}'
932 libdir='${exec_prefix}/lib'
933 localedir='${datarootdir}/locale'
934 mandir='${datarootdir}/man'
935
936 ac_prev=
937 ac_dashdash=
938 for ac_option
939 do
940 # If the previous option needs an argument, assign it.
941 if test -n "$ac_prev"; then
942 eval $ac_prev=\$ac_option
943 ac_prev=
944 continue
945 fi
946
947 case $ac_option in
948 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
949 *=) ac_optarg= ;;
950 *) ac_optarg=yes ;;
951 esac
952
953 # Accept the important Cygnus configure options, so we can diagnose typos.
954
955 case $ac_dashdash$ac_option in
956 --)
957 ac_dashdash=yes ;;
958
959 -bindir | --bindir | --bindi | --bind | --bin | --bi)
960 ac_prev=bindir ;;
961 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
962 bindir=$ac_optarg ;;
963
964 -build | --build | --buil | --bui | --bu)
965 ac_prev=build_alias ;;
966 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
967 build_alias=$ac_optarg ;;
968
969 -cache-file | --cache-file | --cache-fil | --cache-fi \
970 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
971 ac_prev=cache_file ;;
972 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
973 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
974 cache_file=$ac_optarg ;;
975
976 --config-cache | -C)
977 cache_file=config.cache ;;
978
979 -datadir | --datadir | --datadi | --datad)
980 ac_prev=datadir ;;
981 -datadir=* | --datadir=* | --datadi=* | --datad=*)
982 datadir=$ac_optarg ;;
983
984 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
985 | --dataroo | --dataro | --datar)
986 ac_prev=datarootdir ;;
987 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
988 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
989 datarootdir=$ac_optarg ;;
990
991 -disable-* | --disable-*)
992 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
993 # Reject names that are not valid shell variable names.
994 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
995 as_fn_error $? "invalid feature name: $ac_useropt"
996 ac_useropt_orig=$ac_useropt
997 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
998 case $ac_user_opts in
999 *"
1000 "enable_$ac_useropt"
1001 "*) ;;
1002 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1003 ac_unrecognized_sep=', ';;
1004 esac
1005 eval enable_$ac_useropt=no ;;
1006
1007 -docdir | --docdir | --docdi | --doc | --do)
1008 ac_prev=docdir ;;
1009 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1010 docdir=$ac_optarg ;;
1011
1012 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1013 ac_prev=dvidir ;;
1014 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1015 dvidir=$ac_optarg ;;
1016
1017 -enable-* | --enable-*)
1018 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1019 # Reject names that are not valid shell variable names.
1020 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1021 as_fn_error $? "invalid feature name: $ac_useropt"
1022 ac_useropt_orig=$ac_useropt
1023 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1024 case $ac_user_opts in
1025 *"
1026 "enable_$ac_useropt"
1027 "*) ;;
1028 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1029 ac_unrecognized_sep=', ';;
1030 esac
1031 eval enable_$ac_useropt=\$ac_optarg ;;
1032
1033 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1034 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1035 | --exec | --exe | --ex)
1036 ac_prev=exec_prefix ;;
1037 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1038 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1039 | --exec=* | --exe=* | --ex=*)
1040 exec_prefix=$ac_optarg ;;
1041
1042 -gas | --gas | --ga | --g)
1043 # Obsolete; use --with-gas.
1044 with_gas=yes ;;
1045
1046 -help | --help | --hel | --he | -h)
1047 ac_init_help=long ;;
1048 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1049 ac_init_help=recursive ;;
1050 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1051 ac_init_help=short ;;
1052
1053 -host | --host | --hos | --ho)
1054 ac_prev=host_alias ;;
1055 -host=* | --host=* | --hos=* | --ho=*)
1056 host_alias=$ac_optarg ;;
1057
1058 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1059 ac_prev=htmldir ;;
1060 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1061 | --ht=*)
1062 htmldir=$ac_optarg ;;
1063
1064 -includedir | --includedir | --includedi | --included | --include \
1065 | --includ | --inclu | --incl | --inc)
1066 ac_prev=includedir ;;
1067 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1068 | --includ=* | --inclu=* | --incl=* | --inc=*)
1069 includedir=$ac_optarg ;;
1070
1071 -infodir | --infodir | --infodi | --infod | --info | --inf)
1072 ac_prev=infodir ;;
1073 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1074 infodir=$ac_optarg ;;
1075
1076 -libdir | --libdir | --libdi | --libd)
1077 ac_prev=libdir ;;
1078 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1079 libdir=$ac_optarg ;;
1080
1081 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1082 | --libexe | --libex | --libe)
1083 ac_prev=libexecdir ;;
1084 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1085 | --libexe=* | --libex=* | --libe=*)
1086 libexecdir=$ac_optarg ;;
1087
1088 -localedir | --localedir | --localedi | --localed | --locale)
1089 ac_prev=localedir ;;
1090 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1091 localedir=$ac_optarg ;;
1092
1093 -localstatedir | --localstatedir | --localstatedi | --localstated \
1094 | --localstate | --localstat | --localsta | --localst | --locals)
1095 ac_prev=localstatedir ;;
1096 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1097 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1098 localstatedir=$ac_optarg ;;
1099
1100 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1101 ac_prev=mandir ;;
1102 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1103 mandir=$ac_optarg ;;
1104
1105 -nfp | --nfp | --nf)
1106 # Obsolete; use --without-fp.
1107 with_fp=no ;;
1108
1109 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1110 | --no-cr | --no-c | -n)
1111 no_create=yes ;;
1112
1113 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1114 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1115 no_recursion=yes ;;
1116
1117 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1118 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1119 | --oldin | --oldi | --old | --ol | --o)
1120 ac_prev=oldincludedir ;;
1121 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1122 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1123 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1124 oldincludedir=$ac_optarg ;;
1125
1126 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1127 ac_prev=prefix ;;
1128 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1129 prefix=$ac_optarg ;;
1130
1131 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1132 | --program-pre | --program-pr | --program-p)
1133 ac_prev=program_prefix ;;
1134 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1135 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1136 program_prefix=$ac_optarg ;;
1137
1138 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1139 | --program-suf | --program-su | --program-s)
1140 ac_prev=program_suffix ;;
1141 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1142 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1143 program_suffix=$ac_optarg ;;
1144
1145 -program-transform-name | --program-transform-name \
1146 | --program-transform-nam | --program-transform-na \
1147 | --program-transform-n | --program-transform- \
1148 | --program-transform | --program-transfor \
1149 | --program-transfo | --program-transf \
1150 | --program-trans | --program-tran \
1151 | --progr-tra | --program-tr | --program-t)
1152 ac_prev=program_transform_name ;;
1153 -program-transform-name=* | --program-transform-name=* \
1154 | --program-transform-nam=* | --program-transform-na=* \
1155 | --program-transform-n=* | --program-transform-=* \
1156 | --program-transform=* | --program-transfor=* \
1157 | --program-transfo=* | --program-transf=* \
1158 | --program-trans=* | --program-tran=* \
1159 | --progr-tra=* | --program-tr=* | --program-t=*)
1160 program_transform_name=$ac_optarg ;;
1161
1162 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1163 ac_prev=pdfdir ;;
1164 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1165 pdfdir=$ac_optarg ;;
1166
1167 -psdir | --psdir | --psdi | --psd | --ps)
1168 ac_prev=psdir ;;
1169 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1170 psdir=$ac_optarg ;;
1171
1172 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1173 | -silent | --silent | --silen | --sile | --sil)
1174 silent=yes ;;
1175
1176 -runstatedir | --runstatedir | --runstatedi | --runstated \
1177 | --runstate | --runstat | --runsta | --runst | --runs \
1178 | --run | --ru | --r)
1179 ac_prev=runstatedir ;;
1180 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1181 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1182 | --run=* | --ru=* | --r=*)
1183 runstatedir=$ac_optarg ;;
1184
1185 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1186 ac_prev=sbindir ;;
1187 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1188 | --sbi=* | --sb=*)
1189 sbindir=$ac_optarg ;;
1190
1191 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1192 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1193 | --sharedst | --shareds | --shared | --share | --shar \
1194 | --sha | --sh)
1195 ac_prev=sharedstatedir ;;
1196 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1197 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1198 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1199 | --sha=* | --sh=*)
1200 sharedstatedir=$ac_optarg ;;
1201
1202 -site | --site | --sit)
1203 ac_prev=site ;;
1204 -site=* | --site=* | --sit=*)
1205 site=$ac_optarg ;;
1206
1207 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1208 ac_prev=srcdir ;;
1209 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1210 srcdir=$ac_optarg ;;
1211
1212 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1213 | --syscon | --sysco | --sysc | --sys | --sy)
1214 ac_prev=sysconfdir ;;
1215 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1216 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1217 sysconfdir=$ac_optarg ;;
1218
1219 -target | --target | --targe | --targ | --tar | --ta | --t)
1220 ac_prev=target_alias ;;
1221 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1222 target_alias=$ac_optarg ;;
1223
1224 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1225 verbose=yes ;;
1226
1227 -version | --version | --versio | --versi | --vers | -V)
1228 ac_init_version=: ;;
1229
1230 -with-* | --with-*)
1231 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1232 # Reject names that are not valid shell variable names.
1233 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1234 as_fn_error $? "invalid package name: $ac_useropt"
1235 ac_useropt_orig=$ac_useropt
1236 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1237 case $ac_user_opts in
1238 *"
1239 "with_$ac_useropt"
1240 "*) ;;
1241 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1242 ac_unrecognized_sep=', ';;
1243 esac
1244 eval with_$ac_useropt=\$ac_optarg ;;
1245
1246 -without-* | --without-*)
1247 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1248 # Reject names that are not valid shell variable names.
1249 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1250 as_fn_error $? "invalid package name: $ac_useropt"
1251 ac_useropt_orig=$ac_useropt
1252 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1253 case $ac_user_opts in
1254 *"
1255 "with_$ac_useropt"
1256 "*) ;;
1257 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1258 ac_unrecognized_sep=', ';;
1259 esac
1260 eval with_$ac_useropt=no ;;
1261
1262 --x)
1263 # Obsolete; use --with-x.
1264 with_x=yes ;;
1265
1266 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1267 | --x-incl | --x-inc | --x-in | --x-i)
1268 ac_prev=x_includes ;;
1269 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1270 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1271 x_includes=$ac_optarg ;;
1272
1273 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1274 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1275 ac_prev=x_libraries ;;
1276 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1277 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1278 x_libraries=$ac_optarg ;;
1279
1280 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1281 Try \`$0 --help' for more information"
1282 ;;
1283
1284 *=*)
1285 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1286 # Reject names that are not valid shell variable names.
1287 case $ac_envvar in #(
1288 '' | [0-9]* | *[!_$as_cr_alnum]* )
1289 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1290 esac
1291 eval $ac_envvar=\$ac_optarg
1292 export $ac_envvar ;;
1293
1294 *)
1295 # FIXME: should be removed in autoconf 3.0.
1296 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1297 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1298 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1299 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1300 ;;
1301
1302 esac
1303 done
1304
1305 if test -n "$ac_prev"; then
1306 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1307 as_fn_error $? "missing argument to $ac_option"
1308 fi
1309
1310 if test -n "$ac_unrecognized_opts"; then
1311 case $enable_option_checking in
1312 no) ;;
1313 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1314 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1315 esac
1316 fi
1317
1318 # Check all directory arguments for consistency.
1319 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1320 datadir sysconfdir sharedstatedir localstatedir includedir \
1321 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1322 libdir localedir mandir runstatedir
1323 do
1324 eval ac_val=\$$ac_var
1325 # Remove trailing slashes.
1326 case $ac_val in
1327 */ )
1328 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1329 eval $ac_var=\$ac_val;;
1330 esac
1331 # Be sure to have absolute directory names.
1332 case $ac_val in
1333 [\\/$]* | ?:[\\/]* ) continue;;
1334 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1335 esac
1336 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1337 done
1338
1339 # There might be people who depend on the old broken behavior: `$host'
1340 # used to hold the argument of --host etc.
1341 # FIXME: To remove some day.
1342 build=$build_alias
1343 host=$host_alias
1344 target=$target_alias
1345
1346 # FIXME: To remove some day.
1347 if test "x$host_alias" != x; then
1348 if test "x$build_alias" = x; then
1349 cross_compiling=maybe
1350 elif test "x$build_alias" != "x$host_alias"; then
1351 cross_compiling=yes
1352 fi
1353 fi
1354
1355 ac_tool_prefix=
1356 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1357
1358 test "$silent" = yes && exec 6>/dev/null
1359
1360
1361 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1362 ac_ls_di=`ls -di .` &&
1363 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1364 as_fn_error $? "working directory cannot be determined"
1365 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1366 as_fn_error $? "pwd does not report name of working directory"
1367
1368
1369 # Find the source files, if location was not specified.
1370 if test -z "$srcdir"; then
1371 ac_srcdir_defaulted=yes
1372 # Try the directory containing this script, then the parent directory.
1373 ac_confdir=`$as_dirname -- "$as_myself" ||
1374 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1375 X"$as_myself" : 'X\(//\)[^/]' \| \
1376 X"$as_myself" : 'X\(//\)$' \| \
1377 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1378 $as_echo X"$as_myself" |
1379 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1380 s//\1/
1381 q
1382 }
1383 /^X\(\/\/\)[^/].*/{
1384 s//\1/
1385 q
1386 }
1387 /^X\(\/\/\)$/{
1388 s//\1/
1389 q
1390 }
1391 /^X\(\/\).*/{
1392 s//\1/
1393 q
1394 }
1395 s/.*/./; q'`
1396 srcdir=$ac_confdir
1397 if test ! -r "$srcdir/$ac_unique_file"; then
1398 srcdir=..
1399 fi
1400 else
1401 ac_srcdir_defaulted=no
1402 fi
1403 if test ! -r "$srcdir/$ac_unique_file"; then
1404 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1405 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1406 fi
1407 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1408 ac_abs_confdir=`(
1409 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1410 pwd)`
1411 # When building in place, set srcdir=.
1412 if test "$ac_abs_confdir" = "$ac_pwd"; then
1413 srcdir=.
1414 fi
1415 # Remove unnecessary trailing slashes from srcdir.
1416 # Double slashes in file names in object file debugging info
1417 # mess up M-x gdb in Emacs.
1418 case $srcdir in
1419 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1420 esac
1421 for ac_var in $ac_precious_vars; do
1422 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1423 eval ac_env_${ac_var}_value=\$${ac_var}
1424 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1425 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1426 done
1427
1428 #
1429 # Report the --help message.
1430 #
1431 if test "$ac_init_help" = "long"; then
1432 # Omit some internal or obsolete options to make the list less imposing.
1433 # This message is too long to be a string in the A/UX 3.1 sh.
1434 cat <<_ACEOF
1435 \`configure' configures zfs 0.6.5.9 to adapt to many kinds of systems.
1436
1437 Usage: $0 [OPTION]... [VAR=VALUE]...
1438
1439 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1440 VAR=VALUE. See below for descriptions of some of the useful variables.
1441
1442 Defaults for the options are specified in brackets.
1443
1444 Configuration:
1445 -h, --help display this help and exit
1446 --help=short display options specific to this package
1447 --help=recursive display the short help of all the included packages
1448 -V, --version display version information and exit
1449 -q, --quiet, --silent do not print \`checking ...' messages
1450 --cache-file=FILE cache test results in FILE [disabled]
1451 -C, --config-cache alias for \`--cache-file=config.cache'
1452 -n, --no-create do not create output files
1453 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1454
1455 Installation directories:
1456 --prefix=PREFIX install architecture-independent files in PREFIX
1457 [$ac_default_prefix]
1458 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1459 [PREFIX]
1460
1461 By default, \`make install' will install all the files in
1462 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1463 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1464 for instance \`--prefix=\$HOME'.
1465
1466 For better control, use the options below.
1467
1468 Fine tuning of the installation directories:
1469 --bindir=DIR user executables [EPREFIX/bin]
1470 --sbindir=DIR system admin executables [EPREFIX/sbin]
1471 --libexecdir=DIR program executables [EPREFIX/libexec]
1472 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1473 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1474 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1475 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1476 --libdir=DIR object code libraries [EPREFIX/lib]
1477 --includedir=DIR C header files [PREFIX/include]
1478 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1479 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1480 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1481 --infodir=DIR info documentation [DATAROOTDIR/info]
1482 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1483 --mandir=DIR man documentation [DATAROOTDIR/man]
1484 --docdir=DIR documentation root [DATAROOTDIR/doc/zfs]
1485 --htmldir=DIR html documentation [DOCDIR]
1486 --dvidir=DIR dvi documentation [DOCDIR]
1487 --pdfdir=DIR pdf documentation [DOCDIR]
1488 --psdir=DIR ps documentation [DOCDIR]
1489 _ACEOF
1490
1491 cat <<\_ACEOF
1492
1493 Program names:
1494 --program-prefix=PREFIX prepend PREFIX to installed program names
1495 --program-suffix=SUFFIX append SUFFIX to installed program names
1496 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1497
1498 System types:
1499 --build=BUILD configure for building on BUILD [guessed]
1500 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1501 --target=TARGET configure for building compilers for TARGET [HOST]
1502 _ACEOF
1503 fi
1504
1505 if test -n "$ac_init_help"; then
1506 case $ac_init_help in
1507 short | recursive ) echo "Configuration of zfs 0.6.5.9:";;
1508 esac
1509 cat <<\_ACEOF
1510
1511 Optional Features:
1512 --disable-option-checking ignore unrecognized --enable/--with options
1513 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1514 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1515 --enable-maintainer-mode
1516 enable make rules and dependencies not useful (and
1517 sometimes confusing) to the casual installer
1518 --enable-silent-rules less verbose build output (undo: "make V=1")
1519 --disable-silent-rules verbose build output (undo: "make V=0")
1520 --enable-dependency-tracking
1521 do not reject slow dependency extractors
1522 --disable-dependency-tracking
1523 speeds up one-time build
1524 --enable-shared[=PKGS] build shared libraries [default=yes]
1525 --enable-static[=PKGS] build static libraries [default=yes]
1526 --enable-fast-install[=PKGS]
1527 optimize for fast installation [default=yes]
1528 --disable-libtool-lock avoid locking (might break parallel builds)
1529 --enable-linux-builtin Configure for builtin in-tree kernel modules
1530 [default=no]
1531 --enable-systemd install systemd unit/preset files [[default: yes]]
1532 --enable-sysvinit install SysV init scripts [default: yes]
1533 --enable-debug Enable generic debug support [default=no]
1534 --enable-debug-dmu-tx Enable dmu tx validation [default=no]
1535
1536 Optional Packages:
1537 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1538 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1539 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1540 both]
1541 --with-aix-soname=aix|svr4|both
1542 shared library versioning (aka "SONAME") variant to
1543 provide on AIX, [default=aix].
1544 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1545 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
1546 compiler's sysroot if not specified).
1547 --with-spec=SPEC Spec files 'generic|redhat'
1548 --with-config=CONFIG Config file 'kernel|user|all|srpm'
1549 --with-linux=PATH Path to kernel source
1550 --with-linux-obj=PATH Path to kernel build objects
1551 --with-spl=PATH Path to spl source
1552 --with-spl-obj=PATH Path to spl build objects
1553 --with-spl-timeout=SECS Wait SECS for SPL header and symver file [default=0]
1554 --with-mounthelperdir=DIR
1555 install mount.zfs in dir [[/sbin]]
1556 --with-udevdir=DIR install udev helpers [default=check]
1557 --with-udevruledir=DIR install udev rules [[UDEVDIR/rules.d]]
1558 --with-systemdunitdir=DIR
1559 install systemd unit files in dir
1560 [[/usr/lib/systemd/system]]
1561 --with-systemdpresetdir=DIR
1562 install systemd preset files in dir
1563 [[/usr/lib/systemd/system-preset]]
1564 --with-systemdmodulesloaddir=DIR
1565 install systemd module load files into dir
1566 [[/usr/lib/modules-load.d]]
1567 --with-dracutdir=DIR install dracut helpers [default=check]
1568 --with-blkid support blkid caching [default=check]
1569
1570 Some influential environment variables:
1571 CC C compiler command
1572 CFLAGS C compiler flags
1573 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1574 nonstandard directory <lib dir>
1575 LIBS libraries to pass to the linker, e.g. -l<library>
1576 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1577 you have headers in a nonstandard directory <include dir>
1578 LT_SYS_LIBRARY_PATH
1579 User-defined run-time library search path.
1580 CPP C preprocessor
1581 CCAS assembler compiler command (defaults to CC)
1582 CCASFLAGS assembler compiler flags (defaults to CFLAGS)
1583
1584 Use these variables to override the choices made by `configure' or to help
1585 it to find libraries and programs with nonstandard names/locations.
1586
1587 Report bugs to the package provider.
1588 _ACEOF
1589 ac_status=$?
1590 fi
1591
1592 if test "$ac_init_help" = "recursive"; then
1593 # If there are subdirs, report their specific --help.
1594 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1595 test -d "$ac_dir" ||
1596 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1597 continue
1598 ac_builddir=.
1599
1600 case "$ac_dir" in
1601 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1602 *)
1603 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1604 # A ".." for each directory in $ac_dir_suffix.
1605 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1606 case $ac_top_builddir_sub in
1607 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1608 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1609 esac ;;
1610 esac
1611 ac_abs_top_builddir=$ac_pwd
1612 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1613 # for backward compatibility:
1614 ac_top_builddir=$ac_top_build_prefix
1615
1616 case $srcdir in
1617 .) # We are building in place.
1618 ac_srcdir=.
1619 ac_top_srcdir=$ac_top_builddir_sub
1620 ac_abs_top_srcdir=$ac_pwd ;;
1621 [\\/]* | ?:[\\/]* ) # Absolute name.
1622 ac_srcdir=$srcdir$ac_dir_suffix;
1623 ac_top_srcdir=$srcdir
1624 ac_abs_top_srcdir=$srcdir ;;
1625 *) # Relative name.
1626 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1627 ac_top_srcdir=$ac_top_build_prefix$srcdir
1628 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1629 esac
1630 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1631
1632 cd "$ac_dir" || { ac_status=$?; continue; }
1633 # Check for guested configure.
1634 if test -f "$ac_srcdir/configure.gnu"; then
1635 echo &&
1636 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1637 elif test -f "$ac_srcdir/configure"; then
1638 echo &&
1639 $SHELL "$ac_srcdir/configure" --help=recursive
1640 else
1641 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1642 fi || ac_status=$?
1643 cd "$ac_pwd" || { ac_status=$?; break; }
1644 done
1645 fi
1646
1647 test -n "$ac_init_help" && exit $ac_status
1648 if $ac_init_version; then
1649 cat <<\_ACEOF
1650 zfs configure 0.6.5.9
1651 generated by GNU Autoconf 2.69
1652
1653 Copyright (C) 2012 Free Software Foundation, Inc.
1654 This configure script is free software; the Free Software Foundation
1655 gives unlimited permission to copy, distribute and modify it.
1656 _ACEOF
1657 exit
1658 fi
1659
1660 ## ------------------------ ##
1661 ## Autoconf initialization. ##
1662 ## ------------------------ ##
1663
1664 # ac_fn_c_try_compile LINENO
1665 # --------------------------
1666 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1667 ac_fn_c_try_compile ()
1668 {
1669 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1670 rm -f conftest.$ac_objext
1671 if { { ac_try="$ac_compile"
1672 case "(($ac_try" in
1673 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1674 *) ac_try_echo=$ac_try;;
1675 esac
1676 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1677 $as_echo "$ac_try_echo"; } >&5
1678 (eval "$ac_compile") 2>conftest.err
1679 ac_status=$?
1680 if test -s conftest.err; then
1681 grep -v '^ *+' conftest.err >conftest.er1
1682 cat conftest.er1 >&5
1683 mv -f conftest.er1 conftest.err
1684 fi
1685 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1686 test $ac_status = 0; } && {
1687 test -z "$ac_c_werror_flag" ||
1688 test ! -s conftest.err
1689 } && test -s conftest.$ac_objext; then :
1690 ac_retval=0
1691 else
1692 $as_echo "$as_me: failed program was:" >&5
1693 sed 's/^/| /' conftest.$ac_ext >&5
1694
1695 ac_retval=1
1696 fi
1697 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1698 as_fn_set_status $ac_retval
1699
1700 } # ac_fn_c_try_compile
1701
1702 # ac_fn_c_try_link LINENO
1703 # -----------------------
1704 # Try to link conftest.$ac_ext, and return whether this succeeded.
1705 ac_fn_c_try_link ()
1706 {
1707 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1708 rm -f conftest.$ac_objext conftest$ac_exeext
1709 if { { ac_try="$ac_link"
1710 case "(($ac_try" in
1711 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1712 *) ac_try_echo=$ac_try;;
1713 esac
1714 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1715 $as_echo "$ac_try_echo"; } >&5
1716 (eval "$ac_link") 2>conftest.err
1717 ac_status=$?
1718 if test -s conftest.err; then
1719 grep -v '^ *+' conftest.err >conftest.er1
1720 cat conftest.er1 >&5
1721 mv -f conftest.er1 conftest.err
1722 fi
1723 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1724 test $ac_status = 0; } && {
1725 test -z "$ac_c_werror_flag" ||
1726 test ! -s conftest.err
1727 } && test -s conftest$ac_exeext && {
1728 test "$cross_compiling" = yes ||
1729 test -x conftest$ac_exeext
1730 }; then :
1731 ac_retval=0
1732 else
1733 $as_echo "$as_me: failed program was:" >&5
1734 sed 's/^/| /' conftest.$ac_ext >&5
1735
1736 ac_retval=1
1737 fi
1738 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1739 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1740 # interfere with the next link command; also delete a directory that is
1741 # left behind by Apple's compiler. We do this before executing the actions.
1742 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1743 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1744 as_fn_set_status $ac_retval
1745
1746 } # ac_fn_c_try_link
1747
1748 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1749 # -------------------------------------------------------
1750 # Tests whether HEADER exists and can be compiled using the include files in
1751 # INCLUDES, setting the cache variable VAR accordingly.
1752 ac_fn_c_check_header_compile ()
1753 {
1754 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1756 $as_echo_n "checking for $2... " >&6; }
1757 if eval \${$3+:} false; then :
1758 $as_echo_n "(cached) " >&6
1759 else
1760 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1761 /* end confdefs.h. */
1762 $4
1763 #include <$2>
1764 _ACEOF
1765 if ac_fn_c_try_compile "$LINENO"; then :
1766 eval "$3=yes"
1767 else
1768 eval "$3=no"
1769 fi
1770 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1771 fi
1772 eval ac_res=\$$3
1773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1774 $as_echo "$ac_res" >&6; }
1775 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1776
1777 } # ac_fn_c_check_header_compile
1778
1779 # ac_fn_c_try_cpp LINENO
1780 # ----------------------
1781 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1782 ac_fn_c_try_cpp ()
1783 {
1784 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1785 if { { ac_try="$ac_cpp conftest.$ac_ext"
1786 case "(($ac_try" in
1787 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1788 *) ac_try_echo=$ac_try;;
1789 esac
1790 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1791 $as_echo "$ac_try_echo"; } >&5
1792 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1793 ac_status=$?
1794 if test -s conftest.err; then
1795 grep -v '^ *+' conftest.err >conftest.er1
1796 cat conftest.er1 >&5
1797 mv -f conftest.er1 conftest.err
1798 fi
1799 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1800 test $ac_status = 0; } > conftest.i && {
1801 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1802 test ! -s conftest.err
1803 }; then :
1804 ac_retval=0
1805 else
1806 $as_echo "$as_me: failed program was:" >&5
1807 sed 's/^/| /' conftest.$ac_ext >&5
1808
1809 ac_retval=1
1810 fi
1811 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1812 as_fn_set_status $ac_retval
1813
1814 } # ac_fn_c_try_cpp
1815
1816 # ac_fn_c_try_run LINENO
1817 # ----------------------
1818 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1819 # that executables *can* be run.
1820 ac_fn_c_try_run ()
1821 {
1822 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1823 if { { ac_try="$ac_link"
1824 case "(($ac_try" in
1825 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1826 *) ac_try_echo=$ac_try;;
1827 esac
1828 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1829 $as_echo "$ac_try_echo"; } >&5
1830 (eval "$ac_link") 2>&5
1831 ac_status=$?
1832 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1833 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1834 { { case "(($ac_try" in
1835 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1836 *) ac_try_echo=$ac_try;;
1837 esac
1838 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1839 $as_echo "$ac_try_echo"; } >&5
1840 (eval "$ac_try") 2>&5
1841 ac_status=$?
1842 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1843 test $ac_status = 0; }; }; then :
1844 ac_retval=0
1845 else
1846 $as_echo "$as_me: program exited with status $ac_status" >&5
1847 $as_echo "$as_me: failed program was:" >&5
1848 sed 's/^/| /' conftest.$ac_ext >&5
1849
1850 ac_retval=$ac_status
1851 fi
1852 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1853 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1854 as_fn_set_status $ac_retval
1855
1856 } # ac_fn_c_try_run
1857
1858 # ac_fn_c_check_func LINENO FUNC VAR
1859 # ----------------------------------
1860 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1861 ac_fn_c_check_func ()
1862 {
1863 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1865 $as_echo_n "checking for $2... " >&6; }
1866 if eval \${$3+:} false; then :
1867 $as_echo_n "(cached) " >&6
1868 else
1869 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1870 /* end confdefs.h. */
1871 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1872 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1873 #define $2 innocuous_$2
1874
1875 /* System header to define __stub macros and hopefully few prototypes,
1876 which can conflict with char $2 (); below.
1877 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1878 <limits.h> exists even on freestanding compilers. */
1879
1880 #ifdef __STDC__
1881 # include <limits.h>
1882 #else
1883 # include <assert.h>
1884 #endif
1885
1886 #undef $2
1887
1888 /* Override any GCC internal prototype to avoid an error.
1889 Use char because int might match the return type of a GCC
1890 builtin and then its argument prototype would still apply. */
1891 #ifdef __cplusplus
1892 extern "C"
1893 #endif
1894 char $2 ();
1895 /* The GNU C library defines this for functions which it implements
1896 to always fail with ENOSYS. Some functions are actually named
1897 something starting with __ and the normal name is an alias. */
1898 #if defined __stub_$2 || defined __stub___$2
1899 choke me
1900 #endif
1901
1902 int
1903 main ()
1904 {
1905 return $2 ();
1906 ;
1907 return 0;
1908 }
1909 _ACEOF
1910 if ac_fn_c_try_link "$LINENO"; then :
1911 eval "$3=yes"
1912 else
1913 eval "$3=no"
1914 fi
1915 rm -f core conftest.err conftest.$ac_objext \
1916 conftest$ac_exeext conftest.$ac_ext
1917 fi
1918 eval ac_res=\$$3
1919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1920 $as_echo "$ac_res" >&6; }
1921 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1922
1923 } # ac_fn_c_check_func
1924
1925 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1926 # -------------------------------------------------------
1927 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1928 # the include files in INCLUDES and setting the cache variable VAR
1929 # accordingly.
1930 ac_fn_c_check_header_mongrel ()
1931 {
1932 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1933 if eval \${$3+:} false; then :
1934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1935 $as_echo_n "checking for $2... " >&6; }
1936 if eval \${$3+:} false; then :
1937 $as_echo_n "(cached) " >&6
1938 fi
1939 eval ac_res=\$$3
1940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1941 $as_echo "$ac_res" >&6; }
1942 else
1943 # Is the header compilable?
1944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1945 $as_echo_n "checking $2 usability... " >&6; }
1946 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1947 /* end confdefs.h. */
1948 $4
1949 #include <$2>
1950 _ACEOF
1951 if ac_fn_c_try_compile "$LINENO"; then :
1952 ac_header_compiler=yes
1953 else
1954 ac_header_compiler=no
1955 fi
1956 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1958 $as_echo "$ac_header_compiler" >&6; }
1959
1960 # Is the header present?
1961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1962 $as_echo_n "checking $2 presence... " >&6; }
1963 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1964 /* end confdefs.h. */
1965 #include <$2>
1966 _ACEOF
1967 if ac_fn_c_try_cpp "$LINENO"; then :
1968 ac_header_preproc=yes
1969 else
1970 ac_header_preproc=no
1971 fi
1972 rm -f conftest.err conftest.i conftest.$ac_ext
1973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1974 $as_echo "$ac_header_preproc" >&6; }
1975
1976 # So? What about this header?
1977 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1978 yes:no: )
1979 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1980 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1981 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1982 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1983 ;;
1984 no:yes:* )
1985 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1986 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1987 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1988 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1989 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1990 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1991 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1992 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1993 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1994 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1995 ;;
1996 esac
1997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1998 $as_echo_n "checking for $2... " >&6; }
1999 if eval \${$3+:} false; then :
2000 $as_echo_n "(cached) " >&6
2001 else
2002 eval "$3=\$ac_header_compiler"
2003 fi
2004 eval ac_res=\$$3
2005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2006 $as_echo "$ac_res" >&6; }
2007 fi
2008 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2009
2010 } # ac_fn_c_check_header_mongrel
2011 cat >config.log <<_ACEOF
2012 This file contains any messages produced by compilers while
2013 running configure, to aid debugging if configure makes a mistake.
2014
2015 It was created by zfs $as_me 0.6.5.9, which was
2016 generated by GNU Autoconf 2.69. Invocation command line was
2017
2018 $ $0 $@
2019
2020 _ACEOF
2021 exec 5>>config.log
2022 {
2023 cat <<_ASUNAME
2024 ## --------- ##
2025 ## Platform. ##
2026 ## --------- ##
2027
2028 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2029 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2030 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2031 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2032 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2033
2034 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2035 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2036
2037 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2038 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2039 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2040 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2041 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2042 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2043 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2044
2045 _ASUNAME
2046
2047 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2048 for as_dir in $PATH
2049 do
2050 IFS=$as_save_IFS
2051 test -z "$as_dir" && as_dir=.
2052 $as_echo "PATH: $as_dir"
2053 done
2054 IFS=$as_save_IFS
2055
2056 } >&5
2057
2058 cat >&5 <<_ACEOF
2059
2060
2061 ## ----------- ##
2062 ## Core tests. ##
2063 ## ----------- ##
2064
2065 _ACEOF
2066
2067
2068 # Keep a trace of the command line.
2069 # Strip out --no-create and --no-recursion so they do not pile up.
2070 # Strip out --silent because we don't want to record it for future runs.
2071 # Also quote any args containing shell meta-characters.
2072 # Make two passes to allow for proper duplicate-argument suppression.
2073 ac_configure_args=
2074 ac_configure_args0=
2075 ac_configure_args1=
2076 ac_must_keep_next=false
2077 for ac_pass in 1 2
2078 do
2079 for ac_arg
2080 do
2081 case $ac_arg in
2082 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2083 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2084 | -silent | --silent | --silen | --sile | --sil)
2085 continue ;;
2086 *\'*)
2087 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2088 esac
2089 case $ac_pass in
2090 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2091 2)
2092 as_fn_append ac_configure_args1 " '$ac_arg'"
2093 if test $ac_must_keep_next = true; then
2094 ac_must_keep_next=false # Got value, back to normal.
2095 else
2096 case $ac_arg in
2097 *=* | --config-cache | -C | -disable-* | --disable-* \
2098 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2099 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2100 | -with-* | --with-* | -without-* | --without-* | --x)
2101 case "$ac_configure_args0 " in
2102 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2103 esac
2104 ;;
2105 -* ) ac_must_keep_next=true ;;
2106 esac
2107 fi
2108 as_fn_append ac_configure_args " '$ac_arg'"
2109 ;;
2110 esac
2111 done
2112 done
2113 { ac_configure_args0=; unset ac_configure_args0;}
2114 { ac_configure_args1=; unset ac_configure_args1;}
2115
2116 # When interrupted or exit'd, cleanup temporary files, and complete
2117 # config.log. We remove comments because anyway the quotes in there
2118 # would cause problems or look ugly.
2119 # WARNING: Use '\'' to represent an apostrophe within the trap.
2120 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2121 trap 'exit_status=$?
2122 # Save into config.log some information that might help in debugging.
2123 {
2124 echo
2125
2126 $as_echo "## ---------------- ##
2127 ## Cache variables. ##
2128 ## ---------------- ##"
2129 echo
2130 # The following way of writing the cache mishandles newlines in values,
2131 (
2132 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2133 eval ac_val=\$$ac_var
2134 case $ac_val in #(
2135 *${as_nl}*)
2136 case $ac_var in #(
2137 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2138 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2139 esac
2140 case $ac_var in #(
2141 _ | IFS | as_nl) ;; #(
2142 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2143 *) { eval $ac_var=; unset $ac_var;} ;;
2144 esac ;;
2145 esac
2146 done
2147 (set) 2>&1 |
2148 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2149 *${as_nl}ac_space=\ *)
2150 sed -n \
2151 "s/'\''/'\''\\\\'\'''\''/g;
2152 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2153 ;; #(
2154 *)
2155 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2156 ;;
2157 esac |
2158 sort
2159 )
2160 echo
2161
2162 $as_echo "## ----------------- ##
2163 ## Output variables. ##
2164 ## ----------------- ##"
2165 echo
2166 for ac_var in $ac_subst_vars
2167 do
2168 eval ac_val=\$$ac_var
2169 case $ac_val in
2170 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2171 esac
2172 $as_echo "$ac_var='\''$ac_val'\''"
2173 done | sort
2174 echo
2175
2176 if test -n "$ac_subst_files"; then
2177 $as_echo "## ------------------- ##
2178 ## File substitutions. ##
2179 ## ------------------- ##"
2180 echo
2181 for ac_var in $ac_subst_files
2182 do
2183 eval ac_val=\$$ac_var
2184 case $ac_val in
2185 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2186 esac
2187 $as_echo "$ac_var='\''$ac_val'\''"
2188 done | sort
2189 echo
2190 fi
2191
2192 if test -s confdefs.h; then
2193 $as_echo "## ----------- ##
2194 ## confdefs.h. ##
2195 ## ----------- ##"
2196 echo
2197 cat confdefs.h
2198 echo
2199 fi
2200 test "$ac_signal" != 0 &&
2201 $as_echo "$as_me: caught signal $ac_signal"
2202 $as_echo "$as_me: exit $exit_status"
2203 } >&5
2204 rm -f core *.core core.conftest.* &&
2205 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2206 exit $exit_status
2207 ' 0
2208 for ac_signal in 1 2 13 15; do
2209 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2210 done
2211 ac_signal=0
2212
2213 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2214 rm -f -r conftest* confdefs.h
2215
2216 $as_echo "/* confdefs.h */" > confdefs.h
2217
2218 # Predefined preprocessor variables.
2219
2220 cat >>confdefs.h <<_ACEOF
2221 #define PACKAGE_NAME "$PACKAGE_NAME"
2222 _ACEOF
2223
2224 cat >>confdefs.h <<_ACEOF
2225 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2226 _ACEOF
2227
2228 cat >>confdefs.h <<_ACEOF
2229 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2230 _ACEOF
2231
2232 cat >>confdefs.h <<_ACEOF
2233 #define PACKAGE_STRING "$PACKAGE_STRING"
2234 _ACEOF
2235
2236 cat >>confdefs.h <<_ACEOF
2237 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2238 _ACEOF
2239
2240 cat >>confdefs.h <<_ACEOF
2241 #define PACKAGE_URL "$PACKAGE_URL"
2242 _ACEOF
2243
2244
2245 # Let the site file select an alternate cache file if it wants to.
2246 # Prefer an explicitly selected file to automatically selected ones.
2247 ac_site_file1=NONE
2248 ac_site_file2=NONE
2249 if test -n "$CONFIG_SITE"; then
2250 # We do not want a PATH search for config.site.
2251 case $CONFIG_SITE in #((
2252 -*) ac_site_file1=./$CONFIG_SITE;;
2253 */*) ac_site_file1=$CONFIG_SITE;;
2254 *) ac_site_file1=./$CONFIG_SITE;;
2255 esac
2256 elif test "x$prefix" != xNONE; then
2257 ac_site_file1=$prefix/share/config.site
2258 ac_site_file2=$prefix/etc/config.site
2259 else
2260 ac_site_file1=$ac_default_prefix/share/config.site
2261 ac_site_file2=$ac_default_prefix/etc/config.site
2262 fi
2263 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2264 do
2265 test "x$ac_site_file" = xNONE && continue
2266 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2267 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2268 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2269 sed 's/^/| /' "$ac_site_file" >&5
2270 . "$ac_site_file" \
2271 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2272 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2273 as_fn_error $? "failed to load site script $ac_site_file
2274 See \`config.log' for more details" "$LINENO" 5; }
2275 fi
2276 done
2277
2278 if test -r "$cache_file"; then
2279 # Some versions of bash will fail to source /dev/null (special files
2280 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2281 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2282 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2283 $as_echo "$as_me: loading cache $cache_file" >&6;}
2284 case $cache_file in
2285 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2286 *) . "./$cache_file";;
2287 esac
2288 fi
2289 else
2290 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2291 $as_echo "$as_me: creating cache $cache_file" >&6;}
2292 >$cache_file
2293 fi
2294
2295 # Check that the precious variables saved in the cache have kept the same
2296 # value.
2297 ac_cache_corrupted=false
2298 for ac_var in $ac_precious_vars; do
2299 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2300 eval ac_new_set=\$ac_env_${ac_var}_set
2301 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2302 eval ac_new_val=\$ac_env_${ac_var}_value
2303 case $ac_old_set,$ac_new_set in
2304 set,)
2305 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2306 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2307 ac_cache_corrupted=: ;;
2308 ,set)
2309 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2310 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2311 ac_cache_corrupted=: ;;
2312 ,);;
2313 *)
2314 if test "x$ac_old_val" != "x$ac_new_val"; then
2315 # differences in whitespace do not lead to failure.
2316 ac_old_val_w=`echo x $ac_old_val`
2317 ac_new_val_w=`echo x $ac_new_val`
2318 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2319 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2320 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2321 ac_cache_corrupted=:
2322 else
2323 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2324 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2325 eval $ac_var=\$ac_old_val
2326 fi
2327 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2328 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2329 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2330 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2331 fi;;
2332 esac
2333 # Pass precious variables to config.status.
2334 if test "$ac_new_set" = set; then
2335 case $ac_new_val in
2336 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2337 *) ac_arg=$ac_var=$ac_new_val ;;
2338 esac
2339 case " $ac_configure_args " in
2340 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2341 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2342 esac
2343 fi
2344 done
2345 if $ac_cache_corrupted; then
2346 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2347 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2348 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2349 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2350 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2351 fi
2352 ## -------------------- ##
2353 ## Main body of script. ##
2354 ## -------------------- ##
2355
2356 ac_ext=c
2357 ac_cpp='$CPP $CPPFLAGS'
2358 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2359 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2360 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2361
2362
2363 ac_ext=c
2364 ac_cpp='$CPP $CPPFLAGS'
2365 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2366 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2367 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2368
2369
2370
2371
2372
2373 for ac_prog in gawk mawk nawk awk
2374 do
2375 # Extract the first word of "$ac_prog", so it can be a program name with args.
2376 set dummy $ac_prog; ac_word=$2
2377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2378 $as_echo_n "checking for $ac_word... " >&6; }
2379 if ${ac_cv_prog_AWK+:} false; then :
2380 $as_echo_n "(cached) " >&6
2381 else
2382 if test -n "$AWK"; then
2383 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2384 else
2385 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2386 for as_dir in $PATH
2387 do
2388 IFS=$as_save_IFS
2389 test -z "$as_dir" && as_dir=.
2390 for ac_exec_ext in '' $ac_executable_extensions; do
2391 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2392 ac_cv_prog_AWK="$ac_prog"
2393 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2394 break 2
2395 fi
2396 done
2397 done
2398 IFS=$as_save_IFS
2399
2400 fi
2401 fi
2402 AWK=$ac_cv_prog_AWK
2403 if test -n "$AWK"; then
2404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2405 $as_echo "$AWK" >&6; }
2406 else
2407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2408 $as_echo "no" >&6; }
2409 fi
2410
2411
2412 test -n "$AWK" && break
2413 done
2414
2415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking metadata" >&5
2416 $as_echo_n "checking metadata... " >&6; }
2417
2418 META="$srcdir/META"
2419 _zfs_ac_meta_type="none"
2420 if test -f "$META"; then
2421 _zfs_ac_meta_type="META file"
2422
2423 ZFS_META_NAME=`$AWK -F ':[ \t]+' '$1 ~ /^ *(Name|Project|Package)$/ { print $2; exit }' $META`;
2424 if test -n "$ZFS_META_NAME"; then
2425
2426 cat >>confdefs.h <<_ACEOF
2427 #define ZFS_META_NAME "$ZFS_META_NAME"
2428 _ACEOF
2429
2430
2431 fi
2432
2433 ZFS_META_VERSION=`$AWK -F ':[ \t]+' '$1 ~ /^ *Version$/ { print $2; exit }' $META`;
2434 if test -n "$ZFS_META_VERSION"; then
2435
2436 cat >>confdefs.h <<_ACEOF
2437 #define ZFS_META_VERSION "$ZFS_META_VERSION"
2438 _ACEOF
2439
2440
2441 fi
2442
2443 ZFS_META_RELEASE=`$AWK -F ':[ \t]+' '$1 ~ /^ *Release$/ { print $2; exit }' $META`;
2444 if test ! -f ".nogitrelease" && git rev-parse --git-dir > /dev/null 2>&1; then
2445 _match="${ZFS_META_NAME}-${ZFS_META_VERSION}"
2446 _alias=$(git describe --match=${_match} 2>/dev/null)
2447 _release=$(echo ${_alias}|cut -f3- -d'-'|sed 's/-/_/g')
2448 if test -n "${_release}"; then
2449 ZFS_META_RELEASE=${_release}
2450 _zfs_ac_meta_type="git describe"
2451 fi
2452 fi
2453
2454 if test -n "$ZFS_META_RELEASE"; then
2455
2456 cat >>confdefs.h <<_ACEOF
2457 #define ZFS_META_RELEASE "$ZFS_META_RELEASE"
2458 _ACEOF
2459
2460
2461
2462 RELEASE="$ZFS_META_RELEASE"
2463
2464 fi
2465
2466 ZFS_META_LICENSE=`$AWK -F ':[ \t]+' '$1 ~ /^ *License$/ { print $2; exit }' $META`;
2467 if test -n "$ZFS_META_LICENSE"; then
2468
2469 cat >>confdefs.h <<_ACEOF
2470 #define ZFS_META_LICENSE "$ZFS_META_LICENSE"
2471 _ACEOF
2472
2473
2474 fi
2475
2476 if test -n "$ZFS_META_NAME" -a -n "$ZFS_META_VERSION"; then
2477 ZFS_META_ALIAS="$ZFS_META_NAME-$ZFS_META_VERSION"
2478 test -n "$ZFS_META_RELEASE" &&
2479 ZFS_META_ALIAS="$ZFS_META_ALIAS-$ZFS_META_RELEASE"
2480
2481 cat >>confdefs.h <<_ACEOF
2482 #define ZFS_META_ALIAS "$ZFS_META_ALIAS"
2483 _ACEOF
2484
2485
2486 fi
2487
2488 ZFS_META_DATA=`$AWK -F ':[ \t]+' '$1 ~ /^ *Date$/ { print $2; exit }' $META`;
2489 if test -n "$ZFS_META_DATA"; then
2490
2491 cat >>confdefs.h <<_ACEOF
2492 #define ZFS_META_DATA "$ZFS_META_DATA"
2493 _ACEOF
2494
2495
2496 fi
2497
2498 ZFS_META_AUTHOR=`$AWK -F ':[ \t]+' '$1 ~ /^ *Author$/ { print $2; exit }' $META`;
2499 if test -n "$ZFS_META_AUTHOR"; then
2500
2501 cat >>confdefs.h <<_ACEOF
2502 #define ZFS_META_AUTHOR "$ZFS_META_AUTHOR"
2503 _ACEOF
2504
2505
2506 fi
2507
2508
2509 ZFS_META_LT_CURRENT=`$AWK -F ':[ \t]+' '$1 ~ /^ *LT_Current$/ { print $2; exit }' $META`;
2510 ZFS_META_LT_REVISION=`$AWK -F ':[ \t]+' '$1 ~ /^ *LT_Revision$/ { print $2; exit }' $META`;
2511 ZFS_META_LT_AGE=`$AWK -F ':[ \t]+' '$1 ~ /^ *LT_Age$/ { print $2; exit }' $META`;
2512 if test -n "$ZFS_META_LT_CURRENT" \
2513 -o -n "$ZFS_META_LT_REVISION" \
2514 -o -n "$ZFS_META_LT_AGE"; then
2515 test -n "$ZFS_META_LT_CURRENT" || ZFS_META_LT_CURRENT="0"
2516 test -n "$ZFS_META_LT_REVISION" || ZFS_META_LT_REVISION="0"
2517 test -n "$ZFS_META_LT_AGE" || ZFS_META_LT_AGE="0"
2518
2519 cat >>confdefs.h <<_ACEOF
2520 #define ZFS_META_LT_CURRENT "$ZFS_META_LT_CURRENT"
2521 _ACEOF
2522
2523
2524 cat >>confdefs.h <<_ACEOF
2525 #define ZFS_META_LT_REVISION "$ZFS_META_LT_REVISION"
2526 _ACEOF
2527
2528
2529 cat >>confdefs.h <<_ACEOF
2530 #define ZFS_META_LT_AGE "$ZFS_META_LT_AGE"
2531 _ACEOF
2532
2533
2534
2535
2536 fi
2537 fi
2538
2539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_zfs_ac_meta_type" >&5
2540 $as_echo "$_zfs_ac_meta_type" >&6; }
2541
2542
2543 ac_aux_dir=
2544 for ac_dir in config "$srcdir"/config; do
2545 if test -f "$ac_dir/install-sh"; then
2546 ac_aux_dir=$ac_dir
2547 ac_install_sh="$ac_aux_dir/install-sh -c"
2548 break
2549 elif test -f "$ac_dir/install.sh"; then
2550 ac_aux_dir=$ac_dir
2551 ac_install_sh="$ac_aux_dir/install.sh -c"
2552 break
2553 elif test -f "$ac_dir/shtool"; then
2554 ac_aux_dir=$ac_dir
2555 ac_install_sh="$ac_aux_dir/shtool install -c"
2556 break
2557 fi
2558 done
2559 if test -z "$ac_aux_dir"; then
2560 as_fn_error $? "cannot find install-sh, install.sh, or shtool in config \"$srcdir\"/config" "$LINENO" 5
2561 fi
2562
2563 # These three variables are undocumented and unsupported,
2564 # and are intended to be withdrawn in a future Autoconf release.
2565 # They can cause serious problems if a builder's source tree is in a directory
2566 # whose full name contains unusual characters.
2567 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2568 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2569 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2570
2571
2572
2573 # Make sure we can run config.sub.
2574 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2575 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2576
2577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2578 $as_echo_n "checking build system type... " >&6; }
2579 if ${ac_cv_build+:} false; then :
2580 $as_echo_n "(cached) " >&6
2581 else
2582 ac_build_alias=$build_alias
2583 test "x$ac_build_alias" = x &&
2584 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2585 test "x$ac_build_alias" = x &&
2586 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2587 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2588 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2589
2590 fi
2591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2592 $as_echo "$ac_cv_build" >&6; }
2593 case $ac_cv_build in
2594 *-*-*) ;;
2595 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2596 esac
2597 build=$ac_cv_build
2598 ac_save_IFS=$IFS; IFS='-'
2599 set x $ac_cv_build
2600 shift
2601 build_cpu=$1
2602 build_vendor=$2
2603 shift; shift
2604 # Remember, the first character of IFS is used to create $*,
2605 # except with old shells:
2606 build_os=$*
2607 IFS=$ac_save_IFS
2608 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2609
2610
2611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2612 $as_echo_n "checking host system type... " >&6; }
2613 if ${ac_cv_host+:} false; then :
2614 $as_echo_n "(cached) " >&6
2615 else
2616 if test "x$host_alias" = x; then
2617 ac_cv_host=$ac_cv_build
2618 else
2619 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2620 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2621 fi
2622
2623 fi
2624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2625 $as_echo "$ac_cv_host" >&6; }
2626 case $ac_cv_host in
2627 *-*-*) ;;
2628 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2629 esac
2630 host=$ac_cv_host
2631 ac_save_IFS=$IFS; IFS='-'
2632 set x $ac_cv_host
2633 shift
2634 host_cpu=$1
2635 host_vendor=$2
2636 shift; shift
2637 # Remember, the first character of IFS is used to create $*,
2638 # except with old shells:
2639 host_os=$*
2640 IFS=$ac_save_IFS
2641 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2642
2643
2644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2645 $as_echo_n "checking target system type... " >&6; }
2646 if ${ac_cv_target+:} false; then :
2647 $as_echo_n "(cached) " >&6
2648 else
2649 if test "x$target_alias" = x; then
2650 ac_cv_target=$ac_cv_host
2651 else
2652 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2653 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2654 fi
2655
2656 fi
2657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2658 $as_echo "$ac_cv_target" >&6; }
2659 case $ac_cv_target in
2660 *-*-*) ;;
2661 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2662 esac
2663 target=$ac_cv_target
2664 ac_save_IFS=$IFS; IFS='-'
2665 set x $ac_cv_target
2666 shift
2667 target_cpu=$1
2668 target_vendor=$2
2669 shift; shift
2670 # Remember, the first character of IFS is used to create $*,
2671 # except with old shells:
2672 target_os=$*
2673 IFS=$ac_save_IFS
2674 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2675
2676
2677 # The aliases save the names the user supplied, while $host etc.
2678 # will get canonicalized.
2679 test -n "$target_alias" &&
2680 test "$program_prefix$program_suffix$program_transform_name" = \
2681 NONENONEs,x,x, &&
2682 program_prefix=${target_alias}-
2683
2684
2685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2686 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2687 # Check whether --enable-maintainer-mode was given.
2688 if test "${enable_maintainer_mode+set}" = set; then :
2689 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2690 else
2691 USE_MAINTAINER_MODE=no
2692 fi
2693
2694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2695 $as_echo "$USE_MAINTAINER_MODE" >&6; }
2696 if test $USE_MAINTAINER_MODE = yes; then
2697 MAINTAINER_MODE_TRUE=
2698 MAINTAINER_MODE_FALSE='#'
2699 else
2700 MAINTAINER_MODE_TRUE='#'
2701 MAINTAINER_MODE_FALSE=
2702 fi
2703
2704 MAINT=$MAINTAINER_MODE_TRUE
2705
2706
2707 # Check whether --enable-silent-rules was given.
2708 if test "${enable_silent_rules+set}" = set; then :
2709 enableval=$enable_silent_rules;
2710 fi
2711
2712 case $enable_silent_rules in # (((
2713 yes) AM_DEFAULT_VERBOSITY=0;;
2714 no) AM_DEFAULT_VERBOSITY=1;;
2715 *) AM_DEFAULT_VERBOSITY=0;;
2716 esac
2717 am_make=${MAKE-make}
2718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2719 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2720 if ${am_cv_make_support_nested_variables+:} false; then :
2721 $as_echo_n "(cached) " >&6
2722 else
2723 if $as_echo 'TRUE=$(BAR$(V))
2724 BAR0=false
2725 BAR1=true
2726 V=1
2727 am__doit:
2728 @$(TRUE)
2729 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2730 am_cv_make_support_nested_variables=yes
2731 else
2732 am_cv_make_support_nested_variables=no
2733 fi
2734 fi
2735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2736 $as_echo "$am_cv_make_support_nested_variables" >&6; }
2737 if test $am_cv_make_support_nested_variables = yes; then
2738 AM_V='$(V)'
2739 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2740 else
2741 AM_V=$AM_DEFAULT_VERBOSITY
2742 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2743 fi
2744 AM_BACKSLASH='\'
2745
2746 am__api_version='1.15'
2747
2748 # Find a good install program. We prefer a C program (faster),
2749 # so one script is as good as another. But avoid the broken or
2750 # incompatible versions:
2751 # SysV /etc/install, /usr/sbin/install
2752 # SunOS /usr/etc/install
2753 # IRIX /sbin/install
2754 # AIX /bin/install
2755 # AmigaOS /C/install, which installs bootblocks on floppy discs
2756 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2757 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2758 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2759 # OS/2's system install, which has a completely different semantic
2760 # ./install, which can be erroneously created by make from ./install.sh.
2761 # Reject install programs that cannot install multiple files.
2762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2763 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2764 if test -z "$INSTALL"; then
2765 if ${ac_cv_path_install+:} false; then :
2766 $as_echo_n "(cached) " >&6
2767 else
2768 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2769 for as_dir in $PATH
2770 do
2771 IFS=$as_save_IFS
2772 test -z "$as_dir" && as_dir=.
2773 # Account for people who put trailing slashes in PATH elements.
2774 case $as_dir/ in #((
2775 ./ | .// | /[cC]/* | \
2776 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2777 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2778 /usr/ucb/* ) ;;
2779 *)
2780 # OSF1 and SCO ODT 3.0 have their own names for install.
2781 # Don't use installbsd from OSF since it installs stuff as root
2782 # by default.
2783 for ac_prog in ginstall scoinst install; do
2784 for ac_exec_ext in '' $ac_executable_extensions; do
2785 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2786 if test $ac_prog = install &&
2787 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2788 # AIX install. It has an incompatible calling convention.
2789 :
2790 elif test $ac_prog = install &&
2791 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2792 # program-specific install script used by HP pwplus--don't use.
2793 :
2794 else
2795 rm -rf conftest.one conftest.two conftest.dir
2796 echo one > conftest.one
2797 echo two > conftest.two
2798 mkdir conftest.dir
2799 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2800 test -s conftest.one && test -s conftest.two &&
2801 test -s conftest.dir/conftest.one &&
2802 test -s conftest.dir/conftest.two
2803 then
2804 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2805 break 3
2806 fi
2807 fi
2808 fi
2809 done
2810 done
2811 ;;
2812 esac
2813
2814 done
2815 IFS=$as_save_IFS
2816
2817 rm -rf conftest.one conftest.two conftest.dir
2818
2819 fi
2820 if test "${ac_cv_path_install+set}" = set; then
2821 INSTALL=$ac_cv_path_install
2822 else
2823 # As a last resort, use the slow shell script. Don't cache a
2824 # value for INSTALL within a source directory, because that will
2825 # break other packages using the cache if that directory is
2826 # removed, or if the value is a relative name.
2827 INSTALL=$ac_install_sh
2828 fi
2829 fi
2830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2831 $as_echo "$INSTALL" >&6; }
2832
2833 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2834 # It thinks the first close brace ends the variable substitution.
2835 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2836
2837 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2838
2839 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2840
2841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2842 $as_echo_n "checking whether build environment is sane... " >&6; }
2843 # Reject unsafe characters in $srcdir or the absolute working directory
2844 # name. Accept space and tab only in the latter.
2845 am_lf='
2846 '
2847 case `pwd` in
2848 *[\\\"\#\$\&\'\`$am_lf]*)
2849 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2850 esac
2851 case $srcdir in
2852 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2853 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2854 esac
2855
2856 # Do 'set' in a subshell so we don't clobber the current shell's
2857 # arguments. Must try -L first in case configure is actually a
2858 # symlink; some systems play weird games with the mod time of symlinks
2859 # (eg FreeBSD returns the mod time of the symlink's containing
2860 # directory).
2861 if (
2862 am_has_slept=no
2863 for am_try in 1 2; do
2864 echo "timestamp, slept: $am_has_slept" > conftest.file
2865 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2866 if test "$*" = "X"; then
2867 # -L didn't work.
2868 set X `ls -t "$srcdir/configure" conftest.file`
2869 fi
2870 if test "$*" != "X $srcdir/configure conftest.file" \
2871 && test "$*" != "X conftest.file $srcdir/configure"; then
2872
2873 # If neither matched, then we have a broken ls. This can happen
2874 # if, for instance, CONFIG_SHELL is bash and it inherits a
2875 # broken ls alias from the environment. This has actually
2876 # happened. Such a system could not be considered "sane".
2877 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2878 alias in your environment" "$LINENO" 5
2879 fi
2880 if test "$2" = conftest.file || test $am_try -eq 2; then
2881 break
2882 fi
2883 # Just in case.
2884 sleep 1
2885 am_has_slept=yes
2886 done
2887 test "$2" = conftest.file
2888 )
2889 then
2890 # Ok.
2891 :
2892 else
2893 as_fn_error $? "newly created file is older than distributed files!
2894 Check your system clock" "$LINENO" 5
2895 fi
2896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2897 $as_echo "yes" >&6; }
2898 # If we didn't sleep, we still need to ensure time stamps of config.status and
2899 # generated files are strictly newer.
2900 am_sleep_pid=
2901 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2902 ( sleep 1 ) &
2903 am_sleep_pid=$!
2904 fi
2905
2906 rm -f conftest.file
2907
2908 test "$program_prefix" != NONE &&
2909 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2910 # Use a double $ so make ignores it.
2911 test "$program_suffix" != NONE &&
2912 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2913 # Double any \ or $.
2914 # By default was `s,x,x', remove it if useless.
2915 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2916 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2917
2918 # Expand $ac_aux_dir to an absolute path.
2919 am_aux_dir=`cd "$ac_aux_dir" && pwd`
2920
2921 if test x"${MISSING+set}" != xset; then
2922 case $am_aux_dir in
2923 *\ * | *\ *)
2924 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2925 *)
2926 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2927 esac
2928 fi
2929 # Use eval to expand $SHELL
2930 if eval "$MISSING --is-lightweight"; then
2931 am_missing_run="$MISSING "
2932 else
2933 am_missing_run=
2934 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2935 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2936 fi
2937
2938 if test x"${install_sh+set}" != xset; then
2939 case $am_aux_dir in
2940 *\ * | *\ *)
2941 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2942 *)
2943 install_sh="\${SHELL} $am_aux_dir/install-sh"
2944 esac
2945 fi
2946
2947 # Installed binaries are usually stripped using 'strip' when the user
2948 # run "make install-strip". However 'strip' might not be the right
2949 # tool to use in cross-compilation environments, therefore Automake
2950 # will honor the 'STRIP' environment variable to overrule this program.
2951 if test "$cross_compiling" != no; then
2952 if test -n "$ac_tool_prefix"; then
2953 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2954 set dummy ${ac_tool_prefix}strip; ac_word=$2
2955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2956 $as_echo_n "checking for $ac_word... " >&6; }
2957 if ${ac_cv_prog_STRIP+:} false; then :
2958 $as_echo_n "(cached) " >&6
2959 else
2960 if test -n "$STRIP"; then
2961 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2962 else
2963 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2964 for as_dir in $PATH
2965 do
2966 IFS=$as_save_IFS
2967 test -z "$as_dir" && as_dir=.
2968 for ac_exec_ext in '' $ac_executable_extensions; do
2969 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2970 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2971 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2972 break 2
2973 fi
2974 done
2975 done
2976 IFS=$as_save_IFS
2977
2978 fi
2979 fi
2980 STRIP=$ac_cv_prog_STRIP
2981 if test -n "$STRIP"; then
2982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2983 $as_echo "$STRIP" >&6; }
2984 else
2985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2986 $as_echo "no" >&6; }
2987 fi
2988
2989
2990 fi
2991 if test -z "$ac_cv_prog_STRIP"; then
2992 ac_ct_STRIP=$STRIP
2993 # Extract the first word of "strip", so it can be a program name with args.
2994 set dummy strip; ac_word=$2
2995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2996 $as_echo_n "checking for $ac_word... " >&6; }
2997 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2998 $as_echo_n "(cached) " >&6
2999 else
3000 if test -n "$ac_ct_STRIP"; then
3001 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3002 else
3003 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3004 for as_dir in $PATH
3005 do
3006 IFS=$as_save_IFS
3007 test -z "$as_dir" && as_dir=.
3008 for ac_exec_ext in '' $ac_executable_extensions; do
3009 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3010 ac_cv_prog_ac_ct_STRIP="strip"
3011 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3012 break 2
3013 fi
3014 done
3015 done
3016 IFS=$as_save_IFS
3017
3018 fi
3019 fi
3020 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3021 if test -n "$ac_ct_STRIP"; then
3022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3023 $as_echo "$ac_ct_STRIP" >&6; }
3024 else
3025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3026 $as_echo "no" >&6; }
3027 fi
3028
3029 if test "x$ac_ct_STRIP" = x; then
3030 STRIP=":"
3031 else
3032 case $cross_compiling:$ac_tool_warned in
3033 yes:)
3034 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3035 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3036 ac_tool_warned=yes ;;
3037 esac
3038 STRIP=$ac_ct_STRIP
3039 fi
3040 else
3041 STRIP="$ac_cv_prog_STRIP"
3042 fi
3043
3044 fi
3045 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3046
3047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3048 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3049 if test -z "$MKDIR_P"; then
3050 if ${ac_cv_path_mkdir+:} false; then :
3051 $as_echo_n "(cached) " >&6
3052 else
3053 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3054 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3055 do
3056 IFS=$as_save_IFS
3057 test -z "$as_dir" && as_dir=.
3058 for ac_prog in mkdir gmkdir; do
3059 for ac_exec_ext in '' $ac_executable_extensions; do
3060 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
3061 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3062 'mkdir (GNU coreutils) '* | \
3063 'mkdir (coreutils) '* | \
3064 'mkdir (fileutils) '4.1*)
3065 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3066 break 3;;
3067 esac
3068 done
3069 done
3070 done
3071 IFS=$as_save_IFS
3072
3073 fi
3074
3075 test -d ./--version && rmdir ./--version
3076 if test "${ac_cv_path_mkdir+set}" = set; then
3077 MKDIR_P="$ac_cv_path_mkdir -p"
3078 else
3079 # As a last resort, use the slow shell script. Don't cache a
3080 # value for MKDIR_P within a source directory, because that will
3081 # break other packages using the cache if that directory is
3082 # removed, or if the value is a relative name.
3083 MKDIR_P="$ac_install_sh -d"
3084 fi
3085 fi
3086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3087 $as_echo "$MKDIR_P" >&6; }
3088
3089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3090 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3091 set x ${MAKE-make}
3092 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3093 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3094 $as_echo_n "(cached) " >&6
3095 else
3096 cat >conftest.make <<\_ACEOF
3097 SHELL = /bin/sh
3098 all:
3099 @echo '@@@%%%=$(MAKE)=@@@%%%'
3100 _ACEOF
3101 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3102 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3103 *@@@%%%=?*=@@@%%%*)
3104 eval ac_cv_prog_make_${ac_make}_set=yes;;
3105 *)
3106 eval ac_cv_prog_make_${ac_make}_set=no;;
3107 esac
3108 rm -f conftest.make
3109 fi
3110 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3112 $as_echo "yes" >&6; }
3113 SET_MAKE=
3114 else
3115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3116 $as_echo "no" >&6; }
3117 SET_MAKE="MAKE=${MAKE-make}"
3118 fi
3119
3120 rm -rf .tst 2>/dev/null
3121 mkdir .tst 2>/dev/null
3122 if test -d .tst; then
3123 am__leading_dot=.
3124 else
3125 am__leading_dot=_
3126 fi
3127 rmdir .tst 2>/dev/null
3128
3129 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3130 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3131 # is not polluted with repeated "-I."
3132 am__isrc=' -I$(srcdir)'
3133 # test to see if srcdir already configured
3134 if test -f $srcdir/config.status; then
3135 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3136 fi
3137 fi
3138
3139 # test whether we have cygpath
3140 if test -z "$CYGPATH_W"; then
3141 if (cygpath --version) >/dev/null 2>/dev/null; then
3142 CYGPATH_W='cygpath -w'
3143 else
3144 CYGPATH_W=echo
3145 fi
3146 fi
3147
3148
3149 # Define the identity of the package.
3150 PACKAGE='zfs'
3151 VERSION='0.6.5.9'
3152
3153
3154 cat >>confdefs.h <<_ACEOF
3155 #define PACKAGE "$PACKAGE"
3156 _ACEOF
3157
3158
3159 cat >>confdefs.h <<_ACEOF
3160 #define VERSION "$VERSION"
3161 _ACEOF
3162
3163 # Some tools Automake needs.
3164
3165 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3166
3167
3168 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3169
3170
3171 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3172
3173
3174 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3175
3176
3177 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3178
3179 # For better backward compatibility. To be removed once Automake 1.9.x
3180 # dies out for good. For more background, see:
3181 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3182 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3183 mkdir_p='$(MKDIR_P)'
3184
3185 # We need awk for the "check" target (and possibly the TAP driver). The
3186 # system "awk" is bad on some platforms.
3187 # Always define AMTAR for backward compatibility. Yes, it's still used
3188 # in the wild :-( We should find a proper way to deprecate it ...
3189 AMTAR='$${TAR-tar}'
3190
3191
3192 # We'll loop over all known methods to create a tar archive until one works.
3193 _am_tools='gnutar pax cpio none'
3194
3195 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3196
3197
3198
3199
3200
3201
3202 # POSIX will say in a future version that running "rm -f" with no argument
3203 # is OK; and we want to be able to make that assumption in our Makefile
3204 # recipes. So use an aggressive probe to check that the usage we want is
3205 # actually supported "in the wild" to an acceptable degree.
3206 # See automake bug#10828.
3207 # To make any issue more visible, cause the running configure to be aborted
3208 # by default if the 'rm' program in use doesn't match our expectations; the
3209 # user can still override this though.
3210 if rm -f && rm -fr && rm -rf; then : OK; else
3211 cat >&2 <<'END'
3212 Oops!
3213
3214 Your 'rm' program seems unable to run without file operands specified
3215 on the command line, even when the '-f' option is present. This is contrary
3216 to the behaviour of most rm programs out there, and not conforming with
3217 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3218
3219 Please tell bug-automake@gnu.org about your system, including the value
3220 of your $PATH and any error possibly output before this message. This
3221 can help us improve future automake versions.
3222
3223 END
3224 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3225 echo 'Configuration will proceed anyway, since you have set the' >&2
3226 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3227 echo >&2
3228 else
3229 cat >&2 <<'END'
3230 Aborting the configuration process, to ensure you take notice of the issue.
3231
3232 You can download and install GNU coreutils to get an 'rm' implementation
3233 that behaves properly: <http://www.gnu.org/software/coreutils/>.
3234
3235 If you want to complete the configuration process using your problematic
3236 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3237 to "yes", and re-run configure.
3238
3239 END
3240 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3241 fi
3242 fi
3243
3244 ac_config_headers="$ac_config_headers zfs_config.h"
3245
3246
3247
3248 ac_ext=c
3249 ac_cpp='$CPP $CPPFLAGS'
3250 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3251 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3252 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3253 if test -n "$ac_tool_prefix"; then
3254 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3255 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3257 $as_echo_n "checking for $ac_word... " >&6; }
3258 if ${ac_cv_prog_CC+:} false; then :
3259 $as_echo_n "(cached) " >&6
3260 else
3261 if test -n "$CC"; then
3262 ac_cv_prog_CC="$CC" # Let the user override the test.
3263 else
3264 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3265 for as_dir in $PATH
3266 do
3267 IFS=$as_save_IFS
3268 test -z "$as_dir" && as_dir=.
3269 for ac_exec_ext in '' $ac_executable_extensions; do
3270 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3271 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3272 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3273 break 2
3274 fi
3275 done
3276 done
3277 IFS=$as_save_IFS
3278
3279 fi
3280 fi
3281 CC=$ac_cv_prog_CC
3282 if test -n "$CC"; then
3283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3284 $as_echo "$CC" >&6; }
3285 else
3286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3287 $as_echo "no" >&6; }
3288 fi
3289
3290
3291 fi
3292 if test -z "$ac_cv_prog_CC"; then
3293 ac_ct_CC=$CC
3294 # Extract the first word of "gcc", so it can be a program name with args.
3295 set dummy gcc; ac_word=$2
3296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3297 $as_echo_n "checking for $ac_word... " >&6; }
3298 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3299 $as_echo_n "(cached) " >&6
3300 else
3301 if test -n "$ac_ct_CC"; then
3302 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3303 else
3304 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3305 for as_dir in $PATH
3306 do
3307 IFS=$as_save_IFS
3308 test -z "$as_dir" && as_dir=.
3309 for ac_exec_ext in '' $ac_executable_extensions; do
3310 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3311 ac_cv_prog_ac_ct_CC="gcc"
3312 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3313 break 2
3314 fi
3315 done
3316 done
3317 IFS=$as_save_IFS
3318
3319 fi
3320 fi
3321 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3322 if test -n "$ac_ct_CC"; then
3323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3324 $as_echo "$ac_ct_CC" >&6; }
3325 else
3326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3327 $as_echo "no" >&6; }
3328 fi
3329
3330 if test "x$ac_ct_CC" = x; then
3331 CC=""
3332 else
3333 case $cross_compiling:$ac_tool_warned in
3334 yes:)
3335 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3336 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3337 ac_tool_warned=yes ;;
3338 esac
3339 CC=$ac_ct_CC
3340 fi
3341 else
3342 CC="$ac_cv_prog_CC"
3343 fi
3344
3345 if test -z "$CC"; then
3346 if test -n "$ac_tool_prefix"; then
3347 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3348 set dummy ${ac_tool_prefix}cc; ac_word=$2
3349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3350 $as_echo_n "checking for $ac_word... " >&6; }
3351 if ${ac_cv_prog_CC+:} false; then :
3352 $as_echo_n "(cached) " >&6
3353 else
3354 if test -n "$CC"; then
3355 ac_cv_prog_CC="$CC" # Let the user override the test.
3356 else
3357 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3358 for as_dir in $PATH
3359 do
3360 IFS=$as_save_IFS
3361 test -z "$as_dir" && as_dir=.
3362 for ac_exec_ext in '' $ac_executable_extensions; do
3363 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3364 ac_cv_prog_CC="${ac_tool_prefix}cc"
3365 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3366 break 2
3367 fi
3368 done
3369 done
3370 IFS=$as_save_IFS
3371
3372 fi
3373 fi
3374 CC=$ac_cv_prog_CC
3375 if test -n "$CC"; then
3376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3377 $as_echo "$CC" >&6; }
3378 else
3379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3380 $as_echo "no" >&6; }
3381 fi
3382
3383
3384 fi
3385 fi
3386 if test -z "$CC"; then
3387 # Extract the first word of "cc", so it can be a program name with args.
3388 set dummy cc; ac_word=$2
3389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3390 $as_echo_n "checking for $ac_word... " >&6; }
3391 if ${ac_cv_prog_CC+:} false; then :
3392 $as_echo_n "(cached) " >&6
3393 else
3394 if test -n "$CC"; then
3395 ac_cv_prog_CC="$CC" # Let the user override the test.
3396 else
3397 ac_prog_rejected=no
3398 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3399 for as_dir in $PATH
3400 do
3401 IFS=$as_save_IFS
3402 test -z "$as_dir" && as_dir=.
3403 for ac_exec_ext in '' $ac_executable_extensions; do
3404 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3405 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3406 ac_prog_rejected=yes
3407 continue
3408 fi
3409 ac_cv_prog_CC="cc"
3410 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3411 break 2
3412 fi
3413 done
3414 done
3415 IFS=$as_save_IFS
3416
3417 if test $ac_prog_rejected = yes; then
3418 # We found a bogon in the path, so make sure we never use it.
3419 set dummy $ac_cv_prog_CC
3420 shift
3421 if test $# != 0; then
3422 # We chose a different compiler from the bogus one.
3423 # However, it has the same basename, so the bogon will be chosen
3424 # first if we set CC to just the basename; use the full file name.
3425 shift
3426 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3427 fi
3428 fi
3429 fi
3430 fi
3431 CC=$ac_cv_prog_CC
3432 if test -n "$CC"; then
3433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3434 $as_echo "$CC" >&6; }
3435 else
3436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3437 $as_echo "no" >&6; }
3438 fi
3439
3440
3441 fi
3442 if test -z "$CC"; then
3443 if test -n "$ac_tool_prefix"; then
3444 for ac_prog in cl.exe
3445 do
3446 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3447 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3449 $as_echo_n "checking for $ac_word... " >&6; }
3450 if ${ac_cv_prog_CC+:} false; then :
3451 $as_echo_n "(cached) " >&6
3452 else
3453 if test -n "$CC"; then
3454 ac_cv_prog_CC="$CC" # Let the user override the test.
3455 else
3456 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3457 for as_dir in $PATH
3458 do
3459 IFS=$as_save_IFS
3460 test -z "$as_dir" && as_dir=.
3461 for ac_exec_ext in '' $ac_executable_extensions; do
3462 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3463 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3464 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3465 break 2
3466 fi
3467 done
3468 done
3469 IFS=$as_save_IFS
3470
3471 fi
3472 fi
3473 CC=$ac_cv_prog_CC
3474 if test -n "$CC"; then
3475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3476 $as_echo "$CC" >&6; }
3477 else
3478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3479 $as_echo "no" >&6; }
3480 fi
3481
3482
3483 test -n "$CC" && break
3484 done
3485 fi
3486 if test -z "$CC"; then
3487 ac_ct_CC=$CC
3488 for ac_prog in cl.exe
3489 do
3490 # Extract the first word of "$ac_prog", so it can be a program name with args.
3491 set dummy $ac_prog; ac_word=$2
3492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3493 $as_echo_n "checking for $ac_word... " >&6; }
3494 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3495 $as_echo_n "(cached) " >&6
3496 else
3497 if test -n "$ac_ct_CC"; then
3498 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3499 else
3500 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3501 for as_dir in $PATH
3502 do
3503 IFS=$as_save_IFS
3504 test -z "$as_dir" && as_dir=.
3505 for ac_exec_ext in '' $ac_executable_extensions; do
3506 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3507 ac_cv_prog_ac_ct_CC="$ac_prog"
3508 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3509 break 2
3510 fi
3511 done
3512 done
3513 IFS=$as_save_IFS
3514
3515 fi
3516 fi
3517 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3518 if test -n "$ac_ct_CC"; then
3519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3520 $as_echo "$ac_ct_CC" >&6; }
3521 else
3522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3523 $as_echo "no" >&6; }
3524 fi
3525
3526
3527 test -n "$ac_ct_CC" && break
3528 done
3529
3530 if test "x$ac_ct_CC" = x; then
3531 CC=""
3532 else
3533 case $cross_compiling:$ac_tool_warned in
3534 yes:)
3535 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3536 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3537 ac_tool_warned=yes ;;
3538 esac
3539 CC=$ac_ct_CC
3540 fi
3541 fi
3542
3543 fi
3544
3545
3546 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3547 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3548 as_fn_error $? "no acceptable C compiler found in \$PATH
3549 See \`config.log' for more details" "$LINENO" 5; }
3550
3551 # Provide some information about the compiler.
3552 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3553 set X $ac_compile
3554 ac_compiler=$2
3555 for ac_option in --version -v -V -qversion; do
3556 { { ac_try="$ac_compiler $ac_option >&5"
3557 case "(($ac_try" in
3558 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3559 *) ac_try_echo=$ac_try;;
3560 esac
3561 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3562 $as_echo "$ac_try_echo"; } >&5
3563 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3564 ac_status=$?
3565 if test -s conftest.err; then
3566 sed '10a\
3567 ... rest of stderr output deleted ...
3568 10q' conftest.err >conftest.er1
3569 cat conftest.er1 >&5
3570 fi
3571 rm -f conftest.er1 conftest.err
3572 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3573 test $ac_status = 0; }
3574 done
3575
3576 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3577 /* end confdefs.h. */
3578
3579 int
3580 main ()
3581 {
3582
3583 ;
3584 return 0;
3585 }
3586 _ACEOF
3587 ac_clean_files_save=$ac_clean_files
3588 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3589 # Try to create an executable without -o first, disregard a.out.
3590 # It will help us diagnose broken compilers, and finding out an intuition
3591 # of exeext.
3592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3593 $as_echo_n "checking whether the C compiler works... " >&6; }
3594 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3595
3596 # The possible output files:
3597 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3598
3599 ac_rmfiles=
3600 for ac_file in $ac_files
3601 do
3602 case $ac_file in
3603 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3604 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3605 esac
3606 done
3607 rm -f $ac_rmfiles
3608
3609 if { { ac_try="$ac_link_default"
3610 case "(($ac_try" in
3611 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3612 *) ac_try_echo=$ac_try;;
3613 esac
3614 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3615 $as_echo "$ac_try_echo"; } >&5
3616 (eval "$ac_link_default") 2>&5
3617 ac_status=$?
3618 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3619 test $ac_status = 0; }; then :
3620 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3621 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3622 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3623 # so that the user can short-circuit this test for compilers unknown to
3624 # Autoconf.
3625 for ac_file in $ac_files ''
3626 do
3627 test -f "$ac_file" || continue
3628 case $ac_file in
3629 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3630 ;;
3631 [ab].out )
3632 # We found the default executable, but exeext='' is most
3633 # certainly right.
3634 break;;
3635 *.* )
3636 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3637 then :; else
3638 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3639 fi
3640 # We set ac_cv_exeext here because the later test for it is not
3641 # safe: cross compilers may not add the suffix if given an `-o'
3642 # argument, so we may need to know it at that point already.
3643 # Even if this section looks crufty: it has the advantage of
3644 # actually working.
3645 break;;
3646 * )
3647 break;;
3648 esac
3649 done
3650 test "$ac_cv_exeext" = no && ac_cv_exeext=
3651
3652 else
3653 ac_file=''
3654 fi
3655 if test -z "$ac_file"; then :
3656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3657 $as_echo "no" >&6; }
3658 $as_echo "$as_me: failed program was:" >&5
3659 sed 's/^/| /' conftest.$ac_ext >&5
3660
3661 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3662 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3663 as_fn_error 77 "C compiler cannot create executables
3664 See \`config.log' for more details" "$LINENO" 5; }
3665 else
3666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3667 $as_echo "yes" >&6; }
3668 fi
3669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3670 $as_echo_n "checking for C compiler default output file name... " >&6; }
3671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3672 $as_echo "$ac_file" >&6; }
3673 ac_exeext=$ac_cv_exeext
3674
3675 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3676 ac_clean_files=$ac_clean_files_save
3677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3678 $as_echo_n "checking for suffix of executables... " >&6; }
3679 if { { ac_try="$ac_link"
3680 case "(($ac_try" in
3681 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3682 *) ac_try_echo=$ac_try;;
3683 esac
3684 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3685 $as_echo "$ac_try_echo"; } >&5
3686 (eval "$ac_link") 2>&5
3687 ac_status=$?
3688 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3689 test $ac_status = 0; }; then :
3690 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3691 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3692 # work properly (i.e., refer to `conftest.exe'), while it won't with
3693 # `rm'.
3694 for ac_file in conftest.exe conftest conftest.*; do
3695 test -f "$ac_file" || continue
3696 case $ac_file in
3697 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3698 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3699 break;;
3700 * ) break;;
3701 esac
3702 done
3703 else
3704 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3705 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3706 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3707 See \`config.log' for more details" "$LINENO" 5; }
3708 fi
3709 rm -f conftest conftest$ac_cv_exeext
3710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3711 $as_echo "$ac_cv_exeext" >&6; }
3712
3713 rm -f conftest.$ac_ext
3714 EXEEXT=$ac_cv_exeext
3715 ac_exeext=$EXEEXT
3716 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3717 /* end confdefs.h. */
3718 #include <stdio.h>
3719 int
3720 main ()
3721 {
3722 FILE *f = fopen ("conftest.out", "w");
3723 return ferror (f) || fclose (f) != 0;
3724
3725 ;
3726 return 0;
3727 }
3728 _ACEOF
3729 ac_clean_files="$ac_clean_files conftest.out"
3730 # Check that the compiler produces executables we can run. If not, either
3731 # the compiler is broken, or we cross compile.
3732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3733 $as_echo_n "checking whether we are cross compiling... " >&6; }
3734 if test "$cross_compiling" != yes; then
3735 { { ac_try="$ac_link"
3736 case "(($ac_try" in
3737 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3738 *) ac_try_echo=$ac_try;;
3739 esac
3740 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3741 $as_echo "$ac_try_echo"; } >&5
3742 (eval "$ac_link") 2>&5
3743 ac_status=$?
3744 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3745 test $ac_status = 0; }
3746 if { ac_try='./conftest$ac_cv_exeext'
3747 { { case "(($ac_try" in
3748 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3749 *) ac_try_echo=$ac_try;;
3750 esac
3751 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3752 $as_echo "$ac_try_echo"; } >&5
3753 (eval "$ac_try") 2>&5
3754 ac_status=$?
3755 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3756 test $ac_status = 0; }; }; then
3757 cross_compiling=no
3758 else
3759 if test "$cross_compiling" = maybe; then
3760 cross_compiling=yes
3761 else
3762 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3763 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3764 as_fn_error $? "cannot run C compiled programs.
3765 If you meant to cross compile, use \`--host'.
3766 See \`config.log' for more details" "$LINENO" 5; }
3767 fi
3768 fi
3769 fi
3770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3771 $as_echo "$cross_compiling" >&6; }
3772
3773 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3774 ac_clean_files=$ac_clean_files_save
3775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3776 $as_echo_n "checking for suffix of object files... " >&6; }
3777 if ${ac_cv_objext+:} false; then :
3778 $as_echo_n "(cached) " >&6
3779 else
3780 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3781 /* end confdefs.h. */
3782
3783 int
3784 main ()
3785 {
3786
3787 ;
3788 return 0;
3789 }
3790 _ACEOF
3791 rm -f conftest.o conftest.obj
3792 if { { ac_try="$ac_compile"
3793 case "(($ac_try" in
3794 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3795 *) ac_try_echo=$ac_try;;
3796 esac
3797 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3798 $as_echo "$ac_try_echo"; } >&5
3799 (eval "$ac_compile") 2>&5
3800 ac_status=$?
3801 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3802 test $ac_status = 0; }; then :
3803 for ac_file in conftest.o conftest.obj conftest.*; do
3804 test -f "$ac_file" || continue;
3805 case $ac_file in
3806 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3807 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3808 break;;
3809 esac
3810 done
3811 else
3812 $as_echo "$as_me: failed program was:" >&5
3813 sed 's/^/| /' conftest.$ac_ext >&5
3814
3815 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3816 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3817 as_fn_error $? "cannot compute suffix of object files: cannot compile
3818 See \`config.log' for more details" "$LINENO" 5; }
3819 fi
3820 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3821 fi
3822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3823 $as_echo "$ac_cv_objext" >&6; }
3824 OBJEXT=$ac_cv_objext
3825 ac_objext=$OBJEXT
3826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3827 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3828 if ${ac_cv_c_compiler_gnu+:} false; then :
3829 $as_echo_n "(cached) " >&6
3830 else
3831 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3832 /* end confdefs.h. */
3833
3834 int
3835 main ()
3836 {
3837 #ifndef __GNUC__
3838 choke me
3839 #endif
3840
3841 ;
3842 return 0;
3843 }
3844 _ACEOF
3845 if ac_fn_c_try_compile "$LINENO"; then :
3846 ac_compiler_gnu=yes
3847 else
3848 ac_compiler_gnu=no
3849 fi
3850 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3851 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3852
3853 fi
3854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3855 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3856 if test $ac_compiler_gnu = yes; then
3857 GCC=yes
3858 else
3859 GCC=
3860 fi
3861 ac_test_CFLAGS=${CFLAGS+set}
3862 ac_save_CFLAGS=$CFLAGS
3863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3864 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3865 if ${ac_cv_prog_cc_g+:} false; then :
3866 $as_echo_n "(cached) " >&6
3867 else
3868 ac_save_c_werror_flag=$ac_c_werror_flag
3869 ac_c_werror_flag=yes
3870 ac_cv_prog_cc_g=no
3871 CFLAGS="-g"
3872 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3873 /* end confdefs.h. */
3874
3875 int
3876 main ()
3877 {
3878
3879 ;
3880 return 0;
3881 }
3882 _ACEOF
3883 if ac_fn_c_try_compile "$LINENO"; then :
3884 ac_cv_prog_cc_g=yes
3885 else
3886 CFLAGS=""
3887 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3888 /* end confdefs.h. */
3889
3890 int
3891 main ()
3892 {
3893
3894 ;
3895 return 0;
3896 }
3897 _ACEOF
3898 if ac_fn_c_try_compile "$LINENO"; then :
3899
3900 else
3901 ac_c_werror_flag=$ac_save_c_werror_flag
3902 CFLAGS="-g"
3903 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3904 /* end confdefs.h. */
3905
3906 int
3907 main ()
3908 {
3909
3910 ;
3911 return 0;
3912 }
3913 _ACEOF
3914 if ac_fn_c_try_compile "$LINENO"; then :
3915 ac_cv_prog_cc_g=yes
3916 fi
3917 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3918 fi
3919 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3920 fi
3921 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3922 ac_c_werror_flag=$ac_save_c_werror_flag
3923 fi
3924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3925 $as_echo "$ac_cv_prog_cc_g" >&6; }
3926 if test "$ac_test_CFLAGS" = set; then
3927 CFLAGS=$ac_save_CFLAGS
3928 elif test $ac_cv_prog_cc_g = yes; then
3929 if test "$GCC" = yes; then
3930 CFLAGS="-g -O2"
3931 else
3932 CFLAGS="-g"
3933 fi
3934 else
3935 if test "$GCC" = yes; then
3936 CFLAGS="-O2"
3937 else
3938 CFLAGS=
3939 fi
3940 fi
3941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3942 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3943 if ${ac_cv_prog_cc_c89+:} false; then :
3944 $as_echo_n "(cached) " >&6
3945 else
3946 ac_cv_prog_cc_c89=no
3947 ac_save_CC=$CC
3948 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3949 /* end confdefs.h. */
3950 #include <stdarg.h>
3951 #include <stdio.h>
3952 struct stat;
3953 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3954 struct buf { int x; };
3955 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3956 static char *e (p, i)
3957 char **p;
3958 int i;
3959 {
3960 return p[i];
3961 }
3962 static char *f (char * (*g) (char **, int), char **p, ...)
3963 {
3964 char *s;
3965 va_list v;
3966 va_start (v,p);
3967 s = g (p, va_arg (v,int));
3968 va_end (v);
3969 return s;
3970 }
3971
3972 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3973 function prototypes and stuff, but not '\xHH' hex character constants.
3974 These don't provoke an error unfortunately, instead are silently treated
3975 as 'x'. The following induces an error, until -std is added to get
3976 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3977 array size at least. It's necessary to write '\x00'==0 to get something
3978 that's true only with -std. */
3979 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3980
3981 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3982 inside strings and character constants. */
3983 #define FOO(x) 'x'
3984 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3985
3986 int test (int i, double x);
3987 struct s1 {int (*f) (int a);};
3988 struct s2 {int (*f) (double a);};
3989 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3990 int argc;
3991 char **argv;
3992 int
3993 main ()
3994 {
3995 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3996 ;
3997 return 0;
3998 }
3999 _ACEOF
4000 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4001 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4002 do
4003 CC="$ac_save_CC $ac_arg"
4004 if ac_fn_c_try_compile "$LINENO"; then :
4005 ac_cv_prog_cc_c89=$ac_arg
4006 fi
4007 rm -f core conftest.err conftest.$ac_objext
4008 test "x$ac_cv_prog_cc_c89" != "xno" && break
4009 done
4010 rm -f conftest.$ac_ext
4011 CC=$ac_save_CC
4012
4013 fi
4014 # AC_CACHE_VAL
4015 case "x$ac_cv_prog_cc_c89" in
4016 x)
4017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4018 $as_echo "none needed" >&6; } ;;
4019 xno)
4020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4021 $as_echo "unsupported" >&6; } ;;
4022 *)
4023 CC="$CC $ac_cv_prog_cc_c89"
4024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4025 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4026 esac
4027 if test "x$ac_cv_prog_cc_c89" != xno; then :
4028
4029 fi
4030
4031 ac_ext=c
4032 ac_cpp='$CPP $CPPFLAGS'
4033 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4034 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4035 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4036
4037 ac_ext=c
4038 ac_cpp='$CPP $CPPFLAGS'
4039 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4040 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4041 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4043 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4044 if ${am_cv_prog_cc_c_o+:} false; then :
4045 $as_echo_n "(cached) " >&6
4046 else
4047 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4048 /* end confdefs.h. */
4049
4050 int
4051 main ()
4052 {
4053
4054 ;
4055 return 0;
4056 }
4057 _ACEOF
4058 # Make sure it works both with $CC and with simple cc.
4059 # Following AC_PROG_CC_C_O, we do the test twice because some
4060 # compilers refuse to overwrite an existing .o file with -o,
4061 # though they will create one.
4062 am_cv_prog_cc_c_o=yes
4063 for am_i in 1 2; do
4064 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4065 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4066 ac_status=$?
4067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4068 (exit $ac_status); } \
4069 && test -f conftest2.$ac_objext; then
4070 : OK
4071 else
4072 am_cv_prog_cc_c_o=no
4073 break
4074 fi
4075 done
4076 rm -f core conftest*
4077 unset am_i
4078 fi
4079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4080 $as_echo "$am_cv_prog_cc_c_o" >&6; }
4081 if test "$am_cv_prog_cc_c_o" != yes; then
4082 # Losing compiler, so override with the script.
4083 # FIXME: It is wrong to rewrite CC.
4084 # But if we don't then we get into trouble of one sort or another.
4085 # A longer-term fix would be to have automake use am__CC in this case,
4086 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4087 CC="$am_aux_dir/compile $CC"
4088 fi
4089 ac_ext=c
4090 ac_cpp='$CPP $CPPFLAGS'
4091 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4092 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4093 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4094
4095 DEPDIR="${am__leading_dot}deps"
4096
4097 ac_config_commands="$ac_config_commands depfiles"
4098
4099
4100 am_make=${MAKE-make}
4101 cat > confinc << 'END'
4102 am__doit:
4103 @echo this is the am__doit target
4104 .PHONY: am__doit
4105 END
4106 # If we don't find an include directive, just comment out the code.
4107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4108 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4109 am__include="#"
4110 am__quote=
4111 _am_result=none
4112 # First try GNU make style include.
4113 echo "include confinc" > confmf
4114 # Ignore all kinds of additional output from 'make'.
4115 case `$am_make -s -f confmf 2> /dev/null` in #(
4116 *the\ am__doit\ target*)
4117 am__include=include
4118 am__quote=
4119 _am_result=GNU
4120 ;;
4121 esac
4122 # Now try BSD make style include.
4123 if test "$am__include" = "#"; then
4124 echo '.include "confinc"' > confmf
4125 case `$am_make -s -f confmf 2> /dev/null` in #(
4126 *the\ am__doit\ target*)
4127 am__include=.include
4128 am__quote="\""
4129 _am_result=BSD
4130 ;;
4131 esac
4132 fi
4133
4134
4135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4136 $as_echo "$_am_result" >&6; }
4137 rm -f confinc confmf
4138
4139 # Check whether --enable-dependency-tracking was given.
4140 if test "${enable_dependency_tracking+set}" = set; then :
4141 enableval=$enable_dependency_tracking;
4142 fi
4143
4144 if test "x$enable_dependency_tracking" != xno; then
4145 am_depcomp="$ac_aux_dir/depcomp"
4146 AMDEPBACKSLASH='\'
4147 am__nodep='_no'
4148 fi
4149 if test "x$enable_dependency_tracking" != xno; then
4150 AMDEP_TRUE=
4151 AMDEP_FALSE='#'
4152 else
4153 AMDEP_TRUE='#'
4154 AMDEP_FALSE=
4155 fi
4156
4157
4158
4159 depcc="$CC" am_compiler_list=
4160
4161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4162 $as_echo_n "checking dependency style of $depcc... " >&6; }
4163 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4164 $as_echo_n "(cached) " >&6
4165 else
4166 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4167 # We make a subdir and do the tests there. Otherwise we can end up
4168 # making bogus files that we don't know about and never remove. For
4169 # instance it was reported that on HP-UX the gcc test will end up
4170 # making a dummy file named 'D' -- because '-MD' means "put the output
4171 # in D".
4172 rm -rf conftest.dir
4173 mkdir conftest.dir
4174 # Copy depcomp to subdir because otherwise we won't find it if we're
4175 # using a relative directory.
4176 cp "$am_depcomp" conftest.dir
4177 cd conftest.dir
4178 # We will build objects and dependencies in a subdirectory because
4179 # it helps to detect inapplicable dependency modes. For instance
4180 # both Tru64's cc and ICC support -MD to output dependencies as a
4181 # side effect of compilation, but ICC will put the dependencies in
4182 # the current directory while Tru64 will put them in the object
4183 # directory.
4184 mkdir sub
4185
4186 am_cv_CC_dependencies_compiler_type=none
4187 if test "$am_compiler_list" = ""; then
4188 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4189 fi
4190 am__universal=false
4191 case " $depcc " in #(
4192 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4193 esac
4194
4195 for depmode in $am_compiler_list; do
4196 # Setup a source with many dependencies, because some compilers
4197 # like to wrap large dependency lists on column 80 (with \), and
4198 # we should not choose a depcomp mode which is confused by this.
4199 #
4200 # We need to recreate these files for each test, as the compiler may
4201 # overwrite some of them when testing with obscure command lines.
4202 # This happens at least with the AIX C compiler.
4203 : > sub/conftest.c
4204 for i in 1 2 3 4 5 6; do
4205 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4206 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4207 # Solaris 10 /bin/sh.
4208 echo '/* dummy */' > sub/conftst$i.h
4209 done
4210 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4211
4212 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4213 # mode. It turns out that the SunPro C++ compiler does not properly
4214 # handle '-M -o', and we need to detect this. Also, some Intel
4215 # versions had trouble with output in subdirs.
4216 am__obj=sub/conftest.${OBJEXT-o}
4217 am__minus_obj="-o $am__obj"
4218 case $depmode in
4219 gcc)
4220 # This depmode causes a compiler race in universal mode.
4221 test "$am__universal" = false || continue
4222 ;;
4223 nosideeffect)
4224 # After this tag, mechanisms are not by side-effect, so they'll
4225 # only be used when explicitly requested.
4226 if test "x$enable_dependency_tracking" = xyes; then
4227 continue
4228 else
4229 break
4230 fi
4231 ;;
4232 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4233 # This compiler won't grok '-c -o', but also, the minuso test has
4234 # not run yet. These depmodes are late enough in the game, and
4235 # so weak that their functioning should not be impacted.
4236 am__obj=conftest.${OBJEXT-o}
4237 am__minus_obj=
4238 ;;
4239 none) break ;;
4240 esac
4241 if depmode=$depmode \
4242 source=sub/conftest.c object=$am__obj \
4243 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4244 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4245 >/dev/null 2>conftest.err &&
4246 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4247 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4248 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4249 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4250 # icc doesn't choke on unknown options, it will just issue warnings
4251 # or remarks (even with -Werror). So we grep stderr for any message
4252 # that says an option was ignored or not supported.
4253 # When given -MP, icc 7.0 and 7.1 complain thusly:
4254 # icc: Command line warning: ignoring option '-M'; no argument required
4255 # The diagnosis changed in icc 8.0:
4256 # icc: Command line remark: option '-MP' not supported
4257 if (grep 'ignoring option' conftest.err ||
4258 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4259 am_cv_CC_dependencies_compiler_type=$depmode
4260 break
4261 fi
4262 fi
4263 done
4264
4265 cd ..
4266 rm -rf conftest.dir
4267 else
4268 am_cv_CC_dependencies_compiler_type=none
4269 fi
4270
4271 fi
4272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4273 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4274 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4275
4276 if
4277 test "x$enable_dependency_tracking" != xno \
4278 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4279 am__fastdepCC_TRUE=
4280 am__fastdepCC_FALSE='#'
4281 else
4282 am__fastdepCC_TRUE='#'
4283 am__fastdepCC_FALSE=
4284 fi
4285
4286
4287 case `pwd` in
4288 *\ * | *\ *)
4289 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4290 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4291 esac
4292
4293
4294
4295 macro_version='2.4.6'
4296 macro_revision='2.4.6'
4297
4298
4299
4300
4301
4302
4303
4304
4305
4306
4307
4308
4309
4310 ltmain=$ac_aux_dir/ltmain.sh
4311
4312 # Backslashify metacharacters that are still active within
4313 # double-quoted strings.
4314 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4315
4316 # Same as above, but do not quote variable references.
4317 double_quote_subst='s/\(["`\\]\)/\\\1/g'
4318
4319 # Sed substitution to delay expansion of an escaped shell variable in a
4320 # double_quote_subst'ed string.
4321 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4322
4323 # Sed substitution to delay expansion of an escaped single quote.
4324 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4325
4326 # Sed substitution to avoid accidental globbing in evaled expressions
4327 no_glob_subst='s/\*/\\\*/g'
4328
4329 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4330 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4331 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4332
4333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4334 $as_echo_n "checking how to print strings... " >&6; }
4335 # Test print first, because it will be a builtin if present.
4336 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
4337 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4338 ECHO='print -r --'
4339 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4340 ECHO='printf %s\n'
4341 else
4342 # Use this function as a fallback that always works.
4343 func_fallback_echo ()
4344 {
4345 eval 'cat <<_LTECHO_EOF
4346 $1
4347 _LTECHO_EOF'
4348 }
4349 ECHO='func_fallback_echo'
4350 fi
4351
4352 # func_echo_all arg...
4353 # Invoke $ECHO with all args, space-separated.
4354 func_echo_all ()
4355 {
4356 $ECHO ""
4357 }
4358
4359 case $ECHO in
4360 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4361 $as_echo "printf" >&6; } ;;
4362 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4363 $as_echo "print -r" >&6; } ;;
4364 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4365 $as_echo "cat" >&6; } ;;
4366 esac
4367
4368
4369
4370
4371
4372
4373
4374
4375
4376
4377
4378
4379
4380
4381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4382 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4383 if ${ac_cv_path_SED+:} false; then :
4384 $as_echo_n "(cached) " >&6
4385 else
4386 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4387 for ac_i in 1 2 3 4 5 6 7; do
4388 ac_script="$ac_script$as_nl$ac_script"
4389 done
4390 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4391 { ac_script=; unset ac_script;}
4392 if test -z "$SED"; then
4393 ac_path_SED_found=false
4394 # Loop through the user's path and test for each of PROGNAME-LIST
4395 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4396 for as_dir in $PATH
4397 do
4398 IFS=$as_save_IFS
4399 test -z "$as_dir" && as_dir=.
4400 for ac_prog in sed gsed; do
4401 for ac_exec_ext in '' $ac_executable_extensions; do
4402 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4403 as_fn_executable_p "$ac_path_SED" || continue
4404 # Check for GNU ac_path_SED and select it if it is found.
4405 # Check for GNU $ac_path_SED
4406 case `"$ac_path_SED" --version 2>&1` in
4407 *GNU*)
4408 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4409 *)
4410 ac_count=0
4411 $as_echo_n 0123456789 >"conftest.in"
4412 while :
4413 do
4414 cat "conftest.in" "conftest.in" >"conftest.tmp"
4415 mv "conftest.tmp" "conftest.in"
4416 cp "conftest.in" "conftest.nl"
4417 $as_echo '' >> "conftest.nl"
4418 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4419 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4420 as_fn_arith $ac_count + 1 && ac_count=$as_val
4421 if test $ac_count -gt ${ac_path_SED_max-0}; then
4422 # Best one so far, save it but keep looking for a better one
4423 ac_cv_path_SED="$ac_path_SED"
4424 ac_path_SED_max=$ac_count
4425 fi
4426 # 10*(2^10) chars as input seems more than enough
4427 test $ac_count -gt 10 && break
4428 done
4429 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4430 esac
4431
4432 $ac_path_SED_found && break 3
4433 done
4434 done
4435 done
4436 IFS=$as_save_IFS
4437 if test -z "$ac_cv_path_SED"; then
4438 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4439 fi
4440 else
4441 ac_cv_path_SED=$SED
4442 fi
4443
4444 fi
4445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4446 $as_echo "$ac_cv_path_SED" >&6; }
4447 SED="$ac_cv_path_SED"
4448 rm -f conftest.sed
4449
4450 test -z "$SED" && SED=sed
4451 Xsed="$SED -e 1s/^X//"
4452
4453
4454
4455
4456
4457
4458
4459
4460
4461
4462
4463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4464 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4465 if ${ac_cv_path_GREP+:} false; then :
4466 $as_echo_n "(cached) " >&6
4467 else
4468 if test -z "$GREP"; then
4469 ac_path_GREP_found=false
4470 # Loop through the user's path and test for each of PROGNAME-LIST
4471 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4472 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4473 do
4474 IFS=$as_save_IFS
4475 test -z "$as_dir" && as_dir=.
4476 for ac_prog in grep ggrep; do
4477 for ac_exec_ext in '' $ac_executable_extensions; do
4478 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4479 as_fn_executable_p "$ac_path_GREP" || continue
4480 # Check for GNU ac_path_GREP and select it if it is found.
4481 # Check for GNU $ac_path_GREP
4482 case `"$ac_path_GREP" --version 2>&1` in
4483 *GNU*)
4484 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4485 *)
4486 ac_count=0
4487 $as_echo_n 0123456789 >"conftest.in"
4488 while :
4489 do
4490 cat "conftest.in" "conftest.in" >"conftest.tmp"
4491 mv "conftest.tmp" "conftest.in"
4492 cp "conftest.in" "conftest.nl"
4493 $as_echo 'GREP' >> "conftest.nl"
4494 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4495 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4496 as_fn_arith $ac_count + 1 && ac_count=$as_val
4497 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4498 # Best one so far, save it but keep looking for a better one
4499 ac_cv_path_GREP="$ac_path_GREP"
4500 ac_path_GREP_max=$ac_count
4501 fi
4502 # 10*(2^10) chars as input seems more than enough
4503 test $ac_count -gt 10 && break
4504 done
4505 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4506 esac
4507
4508 $ac_path_GREP_found && break 3
4509 done
4510 done
4511 done
4512 IFS=$as_save_IFS
4513 if test -z "$ac_cv_path_GREP"; then
4514 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4515 fi
4516 else
4517 ac_cv_path_GREP=$GREP
4518 fi
4519
4520 fi
4521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4522 $as_echo "$ac_cv_path_GREP" >&6; }
4523 GREP="$ac_cv_path_GREP"
4524
4525
4526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4527 $as_echo_n "checking for egrep... " >&6; }
4528 if ${ac_cv_path_EGREP+:} false; then :
4529 $as_echo_n "(cached) " >&6
4530 else
4531 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4532 then ac_cv_path_EGREP="$GREP -E"
4533 else
4534 if test -z "$EGREP"; then
4535 ac_path_EGREP_found=false
4536 # Loop through the user's path and test for each of PROGNAME-LIST
4537 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4538 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4539 do
4540 IFS=$as_save_IFS
4541 test -z "$as_dir" && as_dir=.
4542 for ac_prog in egrep; do
4543 for ac_exec_ext in '' $ac_executable_extensions; do
4544 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4545 as_fn_executable_p "$ac_path_EGREP" || continue
4546 # Check for GNU ac_path_EGREP and select it if it is found.
4547 # Check for GNU $ac_path_EGREP
4548 case `"$ac_path_EGREP" --version 2>&1` in
4549 *GNU*)
4550 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4551 *)
4552 ac_count=0
4553 $as_echo_n 0123456789 >"conftest.in"
4554 while :
4555 do
4556 cat "conftest.in" "conftest.in" >"conftest.tmp"
4557 mv "conftest.tmp" "conftest.in"
4558 cp "conftest.in" "conftest.nl"
4559 $as_echo 'EGREP' >> "conftest.nl"
4560 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4561 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4562 as_fn_arith $ac_count + 1 && ac_count=$as_val
4563 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4564 # Best one so far, save it but keep looking for a better one
4565 ac_cv_path_EGREP="$ac_path_EGREP"
4566 ac_path_EGREP_max=$ac_count
4567 fi
4568 # 10*(2^10) chars as input seems more than enough
4569 test $ac_count -gt 10 && break
4570 done
4571 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4572 esac
4573
4574 $ac_path_EGREP_found && break 3
4575 done
4576 done
4577 done
4578 IFS=$as_save_IFS
4579 if test -z "$ac_cv_path_EGREP"; then
4580 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4581 fi
4582 else
4583 ac_cv_path_EGREP=$EGREP
4584 fi
4585
4586 fi
4587 fi
4588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4589 $as_echo "$ac_cv_path_EGREP" >&6; }
4590 EGREP="$ac_cv_path_EGREP"
4591
4592
4593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4594 $as_echo_n "checking for fgrep... " >&6; }
4595 if ${ac_cv_path_FGREP+:} false; then :
4596 $as_echo_n "(cached) " >&6
4597 else
4598 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4599 then ac_cv_path_FGREP="$GREP -F"
4600 else
4601 if test -z "$FGREP"; then
4602 ac_path_FGREP_found=false
4603 # Loop through the user's path and test for each of PROGNAME-LIST
4604 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4605 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4606 do
4607 IFS=$as_save_IFS
4608 test -z "$as_dir" && as_dir=.
4609 for ac_prog in fgrep; do
4610 for ac_exec_ext in '' $ac_executable_extensions; do
4611 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4612 as_fn_executable_p "$ac_path_FGREP" || continue
4613 # Check for GNU ac_path_FGREP and select it if it is found.
4614 # Check for GNU $ac_path_FGREP
4615 case `"$ac_path_FGREP" --version 2>&1` in
4616 *GNU*)
4617 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4618 *)
4619 ac_count=0
4620 $as_echo_n 0123456789 >"conftest.in"
4621 while :
4622 do
4623 cat "conftest.in" "conftest.in" >"conftest.tmp"
4624 mv "conftest.tmp" "conftest.in"
4625 cp "conftest.in" "conftest.nl"
4626 $as_echo 'FGREP' >> "conftest.nl"
4627 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4628 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4629 as_fn_arith $ac_count + 1 && ac_count=$as_val
4630 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4631 # Best one so far, save it but keep looking for a better one
4632 ac_cv_path_FGREP="$ac_path_FGREP"
4633 ac_path_FGREP_max=$ac_count
4634 fi
4635 # 10*(2^10) chars as input seems more than enough
4636 test $ac_count -gt 10 && break
4637 done
4638 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4639 esac
4640
4641 $ac_path_FGREP_found && break 3
4642 done
4643 done
4644 done
4645 IFS=$as_save_IFS
4646 if test -z "$ac_cv_path_FGREP"; then
4647 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4648 fi
4649 else
4650 ac_cv_path_FGREP=$FGREP
4651 fi
4652
4653 fi
4654 fi
4655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4656 $as_echo "$ac_cv_path_FGREP" >&6; }
4657 FGREP="$ac_cv_path_FGREP"
4658
4659
4660 test -z "$GREP" && GREP=grep
4661
4662
4663
4664
4665
4666
4667
4668
4669
4670
4671
4672
4673
4674
4675
4676
4677
4678
4679
4680 # Check whether --with-gnu-ld was given.
4681 if test "${with_gnu_ld+set}" = set; then :
4682 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
4683 else
4684 with_gnu_ld=no
4685 fi
4686
4687 ac_prog=ld
4688 if test yes = "$GCC"; then
4689 # Check if gcc -print-prog-name=ld gives a path.
4690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4691 $as_echo_n "checking for ld used by $CC... " >&6; }
4692 case $host in
4693 *-*-mingw*)
4694 # gcc leaves a trailing carriage return, which upsets mingw
4695 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4696 *)
4697 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4698 esac
4699 case $ac_prog in
4700 # Accept absolute paths.
4701 [\\/]* | ?:[\\/]*)
4702 re_direlt='/[^/][^/]*/\.\./'
4703 # Canonicalize the pathname of ld
4704 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4705 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4706 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4707 done
4708 test -z "$LD" && LD=$ac_prog
4709 ;;
4710 "")
4711 # If it fails, then pretend we aren't using GCC.
4712 ac_prog=ld
4713 ;;
4714 *)
4715 # If it is relative, then search for the first ld in PATH.
4716 with_gnu_ld=unknown
4717 ;;
4718 esac
4719 elif test yes = "$with_gnu_ld"; then
4720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4721 $as_echo_n "checking for GNU ld... " >&6; }
4722 else
4723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4724 $as_echo_n "checking for non-GNU ld... " >&6; }
4725 fi
4726 if ${lt_cv_path_LD+:} false; then :
4727 $as_echo_n "(cached) " >&6
4728 else
4729 if test -z "$LD"; then
4730 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
4731 for ac_dir in $PATH; do
4732 IFS=$lt_save_ifs
4733 test -z "$ac_dir" && ac_dir=.
4734 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4735 lt_cv_path_LD=$ac_dir/$ac_prog
4736 # Check to see if the program is GNU ld. I'd rather use --version,
4737 # but apparently some variants of GNU ld only accept -v.
4738 # Break only if it was the GNU/non-GNU ld that we prefer.
4739 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4740 *GNU* | *'with BFD'*)
4741 test no != "$with_gnu_ld" && break
4742 ;;
4743 *)
4744 test yes != "$with_gnu_ld" && break
4745 ;;
4746 esac
4747 fi
4748 done
4749 IFS=$lt_save_ifs
4750 else
4751 lt_cv_path_LD=$LD # Let the user override the test with a path.
4752 fi
4753 fi
4754
4755 LD=$lt_cv_path_LD
4756 if test -n "$LD"; then
4757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4758 $as_echo "$LD" >&6; }
4759 else
4760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4761 $as_echo "no" >&6; }
4762 fi
4763 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4765 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4766 if ${lt_cv_prog_gnu_ld+:} false; then :
4767 $as_echo_n "(cached) " >&6
4768 else
4769 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4770 case `$LD -v 2>&1 </dev/null` in
4771 *GNU* | *'with BFD'*)
4772 lt_cv_prog_gnu_ld=yes
4773 ;;
4774 *)
4775 lt_cv_prog_gnu_ld=no
4776 ;;
4777 esac
4778 fi
4779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4780 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4781 with_gnu_ld=$lt_cv_prog_gnu_ld
4782
4783
4784
4785
4786
4787
4788
4789
4790
4791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4792 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4793 if ${lt_cv_path_NM+:} false; then :
4794 $as_echo_n "(cached) " >&6
4795 else
4796 if test -n "$NM"; then
4797 # Let the user override the test.
4798 lt_cv_path_NM=$NM
4799 else
4800 lt_nm_to_check=${ac_tool_prefix}nm
4801 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4802 lt_nm_to_check="$lt_nm_to_check nm"
4803 fi
4804 for lt_tmp_nm in $lt_nm_to_check; do
4805 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
4806 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4807 IFS=$lt_save_ifs
4808 test -z "$ac_dir" && ac_dir=.
4809 tmp_nm=$ac_dir/$lt_tmp_nm
4810 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
4811 # Check to see if the nm accepts a BSD-compat flag.
4812 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
4813 # nm: unknown option "B" ignored
4814 # Tru64's nm complains that /dev/null is an invalid object file
4815 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
4816 case $build_os in
4817 mingw*) lt_bad_file=conftest.nm/nofile ;;
4818 *) lt_bad_file=/dev/null ;;
4819 esac
4820 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
4821 *$lt_bad_file* | *'Invalid file or object type'*)
4822 lt_cv_path_NM="$tmp_nm -B"
4823 break 2
4824 ;;
4825 *)
4826 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4827 */dev/null*)
4828 lt_cv_path_NM="$tmp_nm -p"
4829 break 2
4830 ;;
4831 *)
4832 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4833 continue # so that we can try to find one that supports BSD flags
4834 ;;
4835 esac
4836 ;;
4837 esac
4838 fi
4839 done
4840 IFS=$lt_save_ifs
4841 done
4842 : ${lt_cv_path_NM=no}
4843 fi
4844 fi
4845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4846 $as_echo "$lt_cv_path_NM" >&6; }
4847 if test no != "$lt_cv_path_NM"; then
4848 NM=$lt_cv_path_NM
4849 else
4850 # Didn't find any BSD compatible name lister, look for dumpbin.
4851 if test -n "$DUMPBIN"; then :
4852 # Let the user override the test.
4853 else
4854 if test -n "$ac_tool_prefix"; then
4855 for ac_prog in dumpbin "link -dump"
4856 do
4857 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4858 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4860 $as_echo_n "checking for $ac_word... " >&6; }
4861 if ${ac_cv_prog_DUMPBIN+:} false; then :
4862 $as_echo_n "(cached) " >&6
4863 else
4864 if test -n "$DUMPBIN"; then
4865 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4866 else
4867 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4868 for as_dir in $PATH
4869 do
4870 IFS=$as_save_IFS
4871 test -z "$as_dir" && as_dir=.
4872 for ac_exec_ext in '' $ac_executable_extensions; do
4873 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4874 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4875 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4876 break 2
4877 fi
4878 done
4879 done
4880 IFS=$as_save_IFS
4881
4882 fi
4883 fi
4884 DUMPBIN=$ac_cv_prog_DUMPBIN
4885 if test -n "$DUMPBIN"; then
4886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4887 $as_echo "$DUMPBIN" >&6; }
4888 else
4889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4890 $as_echo "no" >&6; }
4891 fi
4892
4893
4894 test -n "$DUMPBIN" && break
4895 done
4896 fi
4897 if test -z "$DUMPBIN"; then
4898 ac_ct_DUMPBIN=$DUMPBIN
4899 for ac_prog in dumpbin "link -dump"
4900 do
4901 # Extract the first word of "$ac_prog", so it can be a program name with args.
4902 set dummy $ac_prog; ac_word=$2
4903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4904 $as_echo_n "checking for $ac_word... " >&6; }
4905 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
4906 $as_echo_n "(cached) " >&6
4907 else
4908 if test -n "$ac_ct_DUMPBIN"; then
4909 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4910 else
4911 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4912 for as_dir in $PATH
4913 do
4914 IFS=$as_save_IFS
4915 test -z "$as_dir" && as_dir=.
4916 for ac_exec_ext in '' $ac_executable_extensions; do
4917 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4918 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4919 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4920 break 2
4921 fi
4922 done
4923 done
4924 IFS=$as_save_IFS
4925
4926 fi
4927 fi
4928 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4929 if test -n "$ac_ct_DUMPBIN"; then
4930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4931 $as_echo "$ac_ct_DUMPBIN" >&6; }
4932 else
4933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4934 $as_echo "no" >&6; }
4935 fi
4936
4937
4938 test -n "$ac_ct_DUMPBIN" && break
4939 done
4940
4941 if test "x$ac_ct_DUMPBIN" = x; then
4942 DUMPBIN=":"
4943 else
4944 case $cross_compiling:$ac_tool_warned in
4945 yes:)
4946 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4947 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4948 ac_tool_warned=yes ;;
4949 esac
4950 DUMPBIN=$ac_ct_DUMPBIN
4951 fi
4952 fi
4953
4954 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
4955 *COFF*)
4956 DUMPBIN="$DUMPBIN -symbols -headers"
4957 ;;
4958 *)
4959 DUMPBIN=:
4960 ;;
4961 esac
4962 fi
4963
4964 if test : != "$DUMPBIN"; then
4965 NM=$DUMPBIN
4966 fi
4967 fi
4968 test -z "$NM" && NM=nm
4969
4970
4971
4972
4973
4974
4975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4976 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
4977 if ${lt_cv_nm_interface+:} false; then :
4978 $as_echo_n "(cached) " >&6
4979 else
4980 lt_cv_nm_interface="BSD nm"
4981 echo "int some_variable = 0;" > conftest.$ac_ext
4982 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
4983 (eval "$ac_compile" 2>conftest.err)
4984 cat conftest.err >&5
4985 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4986 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4987 cat conftest.err >&5
4988 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
4989 cat conftest.out >&5
4990 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4991 lt_cv_nm_interface="MS dumpbin"
4992 fi
4993 rm -f conftest*
4994 fi
4995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4996 $as_echo "$lt_cv_nm_interface" >&6; }
4997
4998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4999 $as_echo_n "checking whether ln -s works... " >&6; }
5000 LN_S=$as_ln_s
5001 if test "$LN_S" = "ln -s"; then
5002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5003 $as_echo "yes" >&6; }
5004 else
5005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5006 $as_echo "no, using $LN_S" >&6; }
5007 fi
5008
5009 # find the maximum length of command line arguments
5010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5011 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5012 if ${lt_cv_sys_max_cmd_len+:} false; then :
5013 $as_echo_n "(cached) " >&6
5014 else
5015 i=0
5016 teststring=ABCD
5017
5018 case $build_os in
5019 msdosdjgpp*)
5020 # On DJGPP, this test can blow up pretty badly due to problems in libc
5021 # (any single argument exceeding 2000 bytes causes a buffer overrun
5022 # during glob expansion). Even if it were fixed, the result of this
5023 # check would be larger than it should be.
5024 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5025 ;;
5026
5027 gnu*)
5028 # Under GNU Hurd, this test is not required because there is
5029 # no limit to the length of command line arguments.
5030 # Libtool will interpret -1 as no limit whatsoever
5031 lt_cv_sys_max_cmd_len=-1;
5032 ;;
5033
5034 cygwin* | mingw* | cegcc*)
5035 # On Win9x/ME, this test blows up -- it succeeds, but takes
5036 # about 5 minutes as the teststring grows exponentially.
5037 # Worse, since 9x/ME are not pre-emptively multitasking,
5038 # you end up with a "frozen" computer, even though with patience
5039 # the test eventually succeeds (with a max line length of 256k).
5040 # Instead, let's just punt: use the minimum linelength reported by
5041 # all of the supported platforms: 8192 (on NT/2K/XP).
5042 lt_cv_sys_max_cmd_len=8192;
5043 ;;
5044
5045 mint*)
5046 # On MiNT this can take a long time and run out of memory.
5047 lt_cv_sys_max_cmd_len=8192;
5048 ;;
5049
5050 amigaos*)
5051 # On AmigaOS with pdksh, this test takes hours, literally.
5052 # So we just punt and use a minimum line length of 8192.
5053 lt_cv_sys_max_cmd_len=8192;
5054 ;;
5055
5056 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
5057 # This has been around since 386BSD, at least. Likely further.
5058 if test -x /sbin/sysctl; then
5059 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5060 elif test -x /usr/sbin/sysctl; then
5061 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5062 else
5063 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5064 fi
5065 # And add a safety zone
5066 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5067 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5068 ;;
5069
5070 interix*)
5071 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5072 lt_cv_sys_max_cmd_len=196608
5073 ;;
5074
5075 os2*)
5076 # The test takes a long time on OS/2.
5077 lt_cv_sys_max_cmd_len=8192
5078 ;;
5079
5080 osf*)
5081 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5082 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5083 # nice to cause kernel panics so lets avoid the loop below.
5084 # First set a reasonable default.
5085 lt_cv_sys_max_cmd_len=16384
5086 #
5087 if test -x /sbin/sysconfig; then
5088 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5089 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5090 esac
5091 fi
5092 ;;
5093 sco3.2v5*)
5094 lt_cv_sys_max_cmd_len=102400
5095 ;;
5096 sysv5* | sco5v6* | sysv4.2uw2*)
5097 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5098 if test -n "$kargmax"; then
5099 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5100 else
5101 lt_cv_sys_max_cmd_len=32768
5102 fi
5103 ;;
5104 *)
5105 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5106 if test -n "$lt_cv_sys_max_cmd_len" && \
5107 test undefined != "$lt_cv_sys_max_cmd_len"; then
5108 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5109 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5110 else
5111 # Make teststring a little bigger before we do anything with it.
5112 # a 1K string should be a reasonable start.
5113 for i in 1 2 3 4 5 6 7 8; do
5114 teststring=$teststring$teststring
5115 done
5116 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5117 # If test is not a shell built-in, we'll probably end up computing a
5118 # maximum length that is only half of the actual maximum length, but
5119 # we can't tell.
5120 while { test X`env echo "$teststring$teststring" 2>/dev/null` \
5121 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5122 test 17 != "$i" # 1/2 MB should be enough
5123 do
5124 i=`expr $i + 1`
5125 teststring=$teststring$teststring
5126 done
5127 # Only check the string length outside the loop.
5128 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5129 teststring=
5130 # Add a significant safety factor because C++ compilers can tack on
5131 # massive amounts of additional arguments before passing them to the
5132 # linker. It appears as though 1/2 is a usable value.
5133 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5134 fi
5135 ;;
5136 esac
5137
5138 fi
5139
5140 if test -n "$lt_cv_sys_max_cmd_len"; then
5141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5142 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5143 else
5144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5145 $as_echo "none" >&6; }
5146 fi
5147 max_cmd_len=$lt_cv_sys_max_cmd_len
5148
5149
5150
5151
5152
5153
5154 : ${CP="cp -f"}
5155 : ${MV="mv -f"}
5156 : ${RM="rm -f"}
5157
5158 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5159 lt_unset=unset
5160 else
5161 lt_unset=false
5162 fi
5163
5164
5165
5166
5167
5168 # test EBCDIC or ASCII
5169 case `echo X|tr X '\101'` in
5170 A) # ASCII based system
5171 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5172 lt_SP2NL='tr \040 \012'
5173 lt_NL2SP='tr \015\012 \040\040'
5174 ;;
5175 *) # EBCDIC based system
5176 lt_SP2NL='tr \100 \n'
5177 lt_NL2SP='tr \r\n \100\100'
5178 ;;
5179 esac
5180
5181
5182
5183
5184
5185
5186
5187
5188
5189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5190 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5191 if ${lt_cv_to_host_file_cmd+:} false; then :
5192 $as_echo_n "(cached) " >&6
5193 else
5194 case $host in
5195 *-*-mingw* )
5196 case $build in
5197 *-*-mingw* ) # actually msys
5198 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5199 ;;
5200 *-*-cygwin* )
5201 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5202 ;;
5203 * ) # otherwise, assume *nix
5204 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5205 ;;
5206 esac
5207 ;;
5208 *-*-cygwin* )
5209 case $build in
5210 *-*-mingw* ) # actually msys
5211 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5212 ;;
5213 *-*-cygwin* )
5214 lt_cv_to_host_file_cmd=func_convert_file_noop
5215 ;;
5216 * ) # otherwise, assume *nix
5217 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5218 ;;
5219 esac
5220 ;;
5221 * ) # unhandled hosts (and "normal" native builds)
5222 lt_cv_to_host_file_cmd=func_convert_file_noop
5223 ;;
5224 esac
5225
5226 fi
5227
5228 to_host_file_cmd=$lt_cv_to_host_file_cmd
5229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5230 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
5231
5232
5233
5234
5235
5236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5237 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5238 if ${lt_cv_to_tool_file_cmd+:} false; then :
5239 $as_echo_n "(cached) " >&6
5240 else
5241 #assume ordinary cross tools, or native build.
5242 lt_cv_to_tool_file_cmd=func_convert_file_noop
5243 case $host in
5244 *-*-mingw* )
5245 case $build in
5246 *-*-mingw* ) # actually msys
5247 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5248 ;;
5249 esac
5250 ;;
5251 esac
5252
5253 fi
5254
5255 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5257 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5258
5259
5260
5261
5262
5263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5264 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5265 if ${lt_cv_ld_reload_flag+:} false; then :
5266 $as_echo_n "(cached) " >&6
5267 else
5268 lt_cv_ld_reload_flag='-r'
5269 fi
5270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5271 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5272 reload_flag=$lt_cv_ld_reload_flag
5273 case $reload_flag in
5274 "" | " "*) ;;
5275 *) reload_flag=" $reload_flag" ;;
5276 esac
5277 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5278 case $host_os in
5279 cygwin* | mingw* | pw32* | cegcc*)
5280 if test yes != "$GCC"; then
5281 reload_cmds=false
5282 fi
5283 ;;
5284 darwin*)
5285 if test yes = "$GCC"; then
5286 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
5287 else
5288 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5289 fi
5290 ;;
5291 esac
5292
5293
5294
5295
5296
5297
5298
5299
5300
5301 if test -n "$ac_tool_prefix"; then
5302 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5303 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5305 $as_echo_n "checking for $ac_word... " >&6; }
5306 if ${ac_cv_prog_OBJDUMP+:} false; then :
5307 $as_echo_n "(cached) " >&6
5308 else
5309 if test -n "$OBJDUMP"; then
5310 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5311 else
5312 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5313 for as_dir in $PATH
5314 do
5315 IFS=$as_save_IFS
5316 test -z "$as_dir" && as_dir=.
5317 for ac_exec_ext in '' $ac_executable_extensions; do
5318 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5319 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5320 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5321 break 2
5322 fi
5323 done
5324 done
5325 IFS=$as_save_IFS
5326
5327 fi
5328 fi
5329 OBJDUMP=$ac_cv_prog_OBJDUMP
5330 if test -n "$OBJDUMP"; then
5331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5332 $as_echo "$OBJDUMP" >&6; }
5333 else
5334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5335 $as_echo "no" >&6; }
5336 fi
5337
5338
5339 fi
5340 if test -z "$ac_cv_prog_OBJDUMP"; then
5341 ac_ct_OBJDUMP=$OBJDUMP
5342 # Extract the first word of "objdump", so it can be a program name with args.
5343 set dummy objdump; ac_word=$2
5344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5345 $as_echo_n "checking for $ac_word... " >&6; }
5346 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5347 $as_echo_n "(cached) " >&6
5348 else
5349 if test -n "$ac_ct_OBJDUMP"; then
5350 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5351 else
5352 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5353 for as_dir in $PATH
5354 do
5355 IFS=$as_save_IFS
5356 test -z "$as_dir" && as_dir=.
5357 for ac_exec_ext in '' $ac_executable_extensions; do
5358 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5359 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5360 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5361 break 2
5362 fi
5363 done
5364 done
5365 IFS=$as_save_IFS
5366
5367 fi
5368 fi
5369 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5370 if test -n "$ac_ct_OBJDUMP"; then
5371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5372 $as_echo "$ac_ct_OBJDUMP" >&6; }
5373 else
5374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5375 $as_echo "no" >&6; }
5376 fi
5377
5378 if test "x$ac_ct_OBJDUMP" = x; then
5379 OBJDUMP="false"
5380 else
5381 case $cross_compiling:$ac_tool_warned in
5382 yes:)
5383 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5384 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5385 ac_tool_warned=yes ;;
5386 esac
5387 OBJDUMP=$ac_ct_OBJDUMP
5388 fi
5389 else
5390 OBJDUMP="$ac_cv_prog_OBJDUMP"
5391 fi
5392
5393 test -z "$OBJDUMP" && OBJDUMP=objdump
5394
5395
5396
5397
5398
5399
5400
5401
5402
5403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5404 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5405 if ${lt_cv_deplibs_check_method+:} false; then :
5406 $as_echo_n "(cached) " >&6
5407 else
5408 lt_cv_file_magic_cmd='$MAGIC_CMD'
5409 lt_cv_file_magic_test_file=
5410 lt_cv_deplibs_check_method='unknown'
5411 # Need to set the preceding variable on all platforms that support
5412 # interlibrary dependencies.
5413 # 'none' -- dependencies not supported.
5414 # 'unknown' -- same as none, but documents that we really don't know.
5415 # 'pass_all' -- all dependencies passed with no checks.
5416 # 'test_compile' -- check by making test program.
5417 # 'file_magic [[regex]]' -- check by looking for files in library path
5418 # that responds to the $file_magic_cmd with a given extended regex.
5419 # If you have 'file' or equivalent on your system and you're not sure
5420 # whether 'pass_all' will *always* work, you probably want this one.
5421
5422 case $host_os in
5423 aix[4-9]*)
5424 lt_cv_deplibs_check_method=pass_all
5425 ;;
5426
5427 beos*)
5428 lt_cv_deplibs_check_method=pass_all
5429 ;;
5430
5431 bsdi[45]*)
5432 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5433 lt_cv_file_magic_cmd='/usr/bin/file -L'
5434 lt_cv_file_magic_test_file=/shlib/libc.so
5435 ;;
5436
5437 cygwin*)
5438 # func_win32_libid is a shell function defined in ltmain.sh
5439 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5440 lt_cv_file_magic_cmd='func_win32_libid'
5441 ;;
5442
5443 mingw* | pw32*)
5444 # Base MSYS/MinGW do not provide the 'file' command needed by
5445 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5446 # unless we find 'file', for example because we are cross-compiling.
5447 if ( file / ) >/dev/null 2>&1; then
5448 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5449 lt_cv_file_magic_cmd='func_win32_libid'
5450 else
5451 # Keep this pattern in sync with the one in func_win32_libid.
5452 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5453 lt_cv_file_magic_cmd='$OBJDUMP -f'
5454 fi
5455 ;;
5456
5457 cegcc*)
5458 # use the weaker test based on 'objdump'. See mingw*.
5459 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5460 lt_cv_file_magic_cmd='$OBJDUMP -f'
5461 ;;
5462
5463 darwin* | rhapsody*)
5464 lt_cv_deplibs_check_method=pass_all
5465 ;;
5466
5467 freebsd* | dragonfly*)
5468 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5469 case $host_cpu in
5470 i*86 )
5471 # Not sure whether the presence of OpenBSD here was a mistake.
5472 # Let's accept both of them until this is cleared up.
5473 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5474 lt_cv_file_magic_cmd=/usr/bin/file
5475 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5476 ;;
5477 esac
5478 else
5479 lt_cv_deplibs_check_method=pass_all
5480 fi
5481 ;;
5482
5483 haiku*)
5484 lt_cv_deplibs_check_method=pass_all
5485 ;;
5486
5487 hpux10.20* | hpux11*)
5488 lt_cv_file_magic_cmd=/usr/bin/file
5489 case $host_cpu in
5490 ia64*)
5491 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5492 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5493 ;;
5494 hppa*64*)
5495 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]'
5496 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5497 ;;
5498 *)
5499 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5500 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5501 ;;
5502 esac
5503 ;;
5504
5505 interix[3-9]*)
5506 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5507 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5508 ;;
5509
5510 irix5* | irix6* | nonstopux*)
5511 case $LD in
5512 *-32|*"-32 ") libmagic=32-bit;;
5513 *-n32|*"-n32 ") libmagic=N32;;
5514 *-64|*"-64 ") libmagic=64-bit;;
5515 *) libmagic=never-match;;
5516 esac
5517 lt_cv_deplibs_check_method=pass_all
5518 ;;
5519
5520 # This must be glibc/ELF.
5521 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
5522 lt_cv_deplibs_check_method=pass_all
5523 ;;
5524
5525 netbsd* | netbsdelf*-gnu)
5526 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5527 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5528 else
5529 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5530 fi
5531 ;;
5532
5533 newos6*)
5534 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5535 lt_cv_file_magic_cmd=/usr/bin/file
5536 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5537 ;;
5538
5539 *nto* | *qnx*)
5540 lt_cv_deplibs_check_method=pass_all
5541 ;;
5542
5543 openbsd* | bitrig*)
5544 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
5545 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5546 else
5547 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5548 fi
5549 ;;
5550
5551 osf3* | osf4* | osf5*)
5552 lt_cv_deplibs_check_method=pass_all
5553 ;;
5554
5555 rdos*)
5556 lt_cv_deplibs_check_method=pass_all
5557 ;;
5558
5559 solaris*)
5560 lt_cv_deplibs_check_method=pass_all
5561 ;;
5562
5563 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5564 lt_cv_deplibs_check_method=pass_all
5565 ;;
5566
5567 sysv4 | sysv4.3*)
5568 case $host_vendor in
5569 motorola)
5570 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]'
5571 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5572 ;;
5573 ncr)
5574 lt_cv_deplibs_check_method=pass_all
5575 ;;
5576 sequent)
5577 lt_cv_file_magic_cmd='/bin/file'
5578 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5579 ;;
5580 sni)
5581 lt_cv_file_magic_cmd='/bin/file'
5582 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5583 lt_cv_file_magic_test_file=/lib/libc.so
5584 ;;
5585 siemens)
5586 lt_cv_deplibs_check_method=pass_all
5587 ;;
5588 pc)
5589 lt_cv_deplibs_check_method=pass_all
5590 ;;
5591 esac
5592 ;;
5593
5594 tpf*)
5595 lt_cv_deplibs_check_method=pass_all
5596 ;;
5597 os2*)
5598 lt_cv_deplibs_check_method=pass_all
5599 ;;
5600 esac
5601
5602 fi
5603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5604 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5605
5606 file_magic_glob=
5607 want_nocaseglob=no
5608 if test "$build" = "$host"; then
5609 case $host_os in
5610 mingw* | pw32*)
5611 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5612 want_nocaseglob=yes
5613 else
5614 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5615 fi
5616 ;;
5617 esac
5618 fi
5619
5620 file_magic_cmd=$lt_cv_file_magic_cmd
5621 deplibs_check_method=$lt_cv_deplibs_check_method
5622 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5623
5624
5625
5626
5627
5628
5629
5630
5631
5632
5633
5634
5635
5636
5637
5638
5639
5640
5641
5642
5643
5644
5645 if test -n "$ac_tool_prefix"; then
5646 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5647 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5649 $as_echo_n "checking for $ac_word... " >&6; }
5650 if ${ac_cv_prog_DLLTOOL+:} false; then :
5651 $as_echo_n "(cached) " >&6
5652 else
5653 if test -n "$DLLTOOL"; then
5654 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5655 else
5656 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5657 for as_dir in $PATH
5658 do
5659 IFS=$as_save_IFS
5660 test -z "$as_dir" && as_dir=.
5661 for ac_exec_ext in '' $ac_executable_extensions; do
5662 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5663 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5664 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5665 break 2
5666 fi
5667 done
5668 done
5669 IFS=$as_save_IFS
5670
5671 fi
5672 fi
5673 DLLTOOL=$ac_cv_prog_DLLTOOL
5674 if test -n "$DLLTOOL"; then
5675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5676 $as_echo "$DLLTOOL" >&6; }
5677 else
5678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5679 $as_echo "no" >&6; }
5680 fi
5681
5682
5683 fi
5684 if test -z "$ac_cv_prog_DLLTOOL"; then
5685 ac_ct_DLLTOOL=$DLLTOOL
5686 # Extract the first word of "dlltool", so it can be a program name with args.
5687 set dummy dlltool; ac_word=$2
5688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5689 $as_echo_n "checking for $ac_word... " >&6; }
5690 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5691 $as_echo_n "(cached) " >&6
5692 else
5693 if test -n "$ac_ct_DLLTOOL"; then
5694 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5695 else
5696 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5697 for as_dir in $PATH
5698 do
5699 IFS=$as_save_IFS
5700 test -z "$as_dir" && as_dir=.
5701 for ac_exec_ext in '' $ac_executable_extensions; do
5702 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5703 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5704 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5705 break 2
5706 fi
5707 done
5708 done
5709 IFS=$as_save_IFS
5710
5711 fi
5712 fi
5713 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5714 if test -n "$ac_ct_DLLTOOL"; then
5715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5716 $as_echo "$ac_ct_DLLTOOL" >&6; }
5717 else
5718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5719 $as_echo "no" >&6; }
5720 fi
5721
5722 if test "x$ac_ct_DLLTOOL" = x; then
5723 DLLTOOL="false"
5724 else
5725 case $cross_compiling:$ac_tool_warned in
5726 yes:)
5727 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5728 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5729 ac_tool_warned=yes ;;
5730 esac
5731 DLLTOOL=$ac_ct_DLLTOOL
5732 fi
5733 else
5734 DLLTOOL="$ac_cv_prog_DLLTOOL"
5735 fi
5736
5737 test -z "$DLLTOOL" && DLLTOOL=dlltool
5738
5739
5740
5741
5742
5743
5744
5745
5746
5747
5748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5749 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
5750 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
5751 $as_echo_n "(cached) " >&6
5752 else
5753 lt_cv_sharedlib_from_linklib_cmd='unknown'
5754
5755 case $host_os in
5756 cygwin* | mingw* | pw32* | cegcc*)
5757 # two different shell functions defined in ltmain.sh;
5758 # decide which one to use based on capabilities of $DLLTOOL
5759 case `$DLLTOOL --help 2>&1` in
5760 *--identify-strict*)
5761 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5762 ;;
5763 *)
5764 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5765 ;;
5766 esac
5767 ;;
5768 *)
5769 # fallback: assume linklib IS sharedlib
5770 lt_cv_sharedlib_from_linklib_cmd=$ECHO
5771 ;;
5772 esac
5773
5774 fi
5775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
5776 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
5777 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
5778 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
5779
5780
5781
5782
5783
5784
5785
5786
5787 if test -n "$ac_tool_prefix"; then
5788 for ac_prog in ar
5789 do
5790 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5791 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5793 $as_echo_n "checking for $ac_word... " >&6; }
5794 if ${ac_cv_prog_AR+:} false; then :
5795 $as_echo_n "(cached) " >&6
5796 else
5797 if test -n "$AR"; then
5798 ac_cv_prog_AR="$AR" # Let the user override the test.
5799 else
5800 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5801 for as_dir in $PATH
5802 do
5803 IFS=$as_save_IFS
5804 test -z "$as_dir" && as_dir=.
5805 for ac_exec_ext in '' $ac_executable_extensions; do
5806 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5807 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5808 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5809 break 2
5810 fi
5811 done
5812 done
5813 IFS=$as_save_IFS
5814
5815 fi
5816 fi
5817 AR=$ac_cv_prog_AR
5818 if test -n "$AR"; then
5819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5820 $as_echo "$AR" >&6; }
5821 else
5822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5823 $as_echo "no" >&6; }
5824 fi
5825
5826
5827 test -n "$AR" && break
5828 done
5829 fi
5830 if test -z "$AR"; then
5831 ac_ct_AR=$AR
5832 for ac_prog in ar
5833 do
5834 # Extract the first word of "$ac_prog", so it can be a program name with args.
5835 set dummy $ac_prog; ac_word=$2
5836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5837 $as_echo_n "checking for $ac_word... " >&6; }
5838 if ${ac_cv_prog_ac_ct_AR+:} false; then :
5839 $as_echo_n "(cached) " >&6
5840 else
5841 if test -n "$ac_ct_AR"; then
5842 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5843 else
5844 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5845 for as_dir in $PATH
5846 do
5847 IFS=$as_save_IFS
5848 test -z "$as_dir" && as_dir=.
5849 for ac_exec_ext in '' $ac_executable_extensions; do
5850 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5851 ac_cv_prog_ac_ct_AR="$ac_prog"
5852 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5853 break 2
5854 fi
5855 done
5856 done
5857 IFS=$as_save_IFS
5858
5859 fi
5860 fi
5861 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5862 if test -n "$ac_ct_AR"; then
5863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5864 $as_echo "$ac_ct_AR" >&6; }
5865 else
5866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5867 $as_echo "no" >&6; }
5868 fi
5869
5870
5871 test -n "$ac_ct_AR" && break
5872 done
5873
5874 if test "x$ac_ct_AR" = x; then
5875 AR="false"
5876 else
5877 case $cross_compiling:$ac_tool_warned in
5878 yes:)
5879 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5880 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5881 ac_tool_warned=yes ;;
5882 esac
5883 AR=$ac_ct_AR
5884 fi
5885 fi
5886
5887 : ${AR=ar}
5888 : ${AR_FLAGS=cru}
5889
5890
5891
5892
5893
5894
5895
5896
5897
5898
5899
5900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
5901 $as_echo_n "checking for archiver @FILE support... " >&6; }
5902 if ${lt_cv_ar_at_file+:} false; then :
5903 $as_echo_n "(cached) " >&6
5904 else
5905 lt_cv_ar_at_file=no
5906 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5907 /* end confdefs.h. */
5908
5909 int
5910 main ()
5911 {
5912
5913 ;
5914 return 0;
5915 }
5916 _ACEOF
5917 if ac_fn_c_try_compile "$LINENO"; then :
5918 echo conftest.$ac_objext > conftest.lst
5919 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
5920 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5921 (eval $lt_ar_try) 2>&5
5922 ac_status=$?
5923 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5924 test $ac_status = 0; }
5925 if test 0 -eq "$ac_status"; then
5926 # Ensure the archiver fails upon bogus file names.
5927 rm -f conftest.$ac_objext libconftest.a
5928 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5929 (eval $lt_ar_try) 2>&5
5930 ac_status=$?
5931 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5932 test $ac_status = 0; }
5933 if test 0 -ne "$ac_status"; then
5934 lt_cv_ar_at_file=@
5935 fi
5936 fi
5937 rm -f conftest.* libconftest.a
5938
5939 fi
5940 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5941
5942 fi
5943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
5944 $as_echo "$lt_cv_ar_at_file" >&6; }
5945
5946 if test no = "$lt_cv_ar_at_file"; then
5947 archiver_list_spec=
5948 else
5949 archiver_list_spec=$lt_cv_ar_at_file
5950 fi
5951
5952
5953
5954
5955
5956
5957
5958 if test -n "$ac_tool_prefix"; then
5959 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5960 set dummy ${ac_tool_prefix}strip; ac_word=$2
5961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5962 $as_echo_n "checking for $ac_word... " >&6; }
5963 if ${ac_cv_prog_STRIP+:} false; then :
5964 $as_echo_n "(cached) " >&6
5965 else
5966 if test -n "$STRIP"; then
5967 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5968 else
5969 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5970 for as_dir in $PATH
5971 do
5972 IFS=$as_save_IFS
5973 test -z "$as_dir" && as_dir=.
5974 for ac_exec_ext in '' $ac_executable_extensions; do
5975 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5976 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5977 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5978 break 2
5979 fi
5980 done
5981 done
5982 IFS=$as_save_IFS
5983
5984 fi
5985 fi
5986 STRIP=$ac_cv_prog_STRIP
5987 if test -n "$STRIP"; then
5988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5989 $as_echo "$STRIP" >&6; }
5990 else
5991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5992 $as_echo "no" >&6; }
5993 fi
5994
5995
5996 fi
5997 if test -z "$ac_cv_prog_STRIP"; then
5998 ac_ct_STRIP=$STRIP
5999 # Extract the first word of "strip", so it can be a program name with args.
6000 set dummy strip; ac_word=$2
6001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6002 $as_echo_n "checking for $ac_word... " >&6; }
6003 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6004 $as_echo_n "(cached) " >&6
6005 else
6006 if test -n "$ac_ct_STRIP"; then
6007 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6008 else
6009 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6010 for as_dir in $PATH
6011 do
6012 IFS=$as_save_IFS
6013 test -z "$as_dir" && as_dir=.
6014 for ac_exec_ext in '' $ac_executable_extensions; do
6015 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6016 ac_cv_prog_ac_ct_STRIP="strip"
6017 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6018 break 2
6019 fi
6020 done
6021 done
6022 IFS=$as_save_IFS
6023
6024 fi
6025 fi
6026 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6027 if test -n "$ac_ct_STRIP"; then
6028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6029 $as_echo "$ac_ct_STRIP" >&6; }
6030 else
6031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6032 $as_echo "no" >&6; }
6033 fi
6034
6035 if test "x$ac_ct_STRIP" = x; then
6036 STRIP=":"
6037 else
6038 case $cross_compiling:$ac_tool_warned in
6039 yes:)
6040 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6041 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6042 ac_tool_warned=yes ;;
6043 esac
6044 STRIP=$ac_ct_STRIP
6045 fi
6046 else
6047 STRIP="$ac_cv_prog_STRIP"
6048 fi
6049
6050 test -z "$STRIP" && STRIP=:
6051
6052
6053
6054
6055
6056
6057 if test -n "$ac_tool_prefix"; then
6058 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6059 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6061 $as_echo_n "checking for $ac_word... " >&6; }
6062 if ${ac_cv_prog_RANLIB+:} false; then :
6063 $as_echo_n "(cached) " >&6
6064 else
6065 if test -n "$RANLIB"; then
6066 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6067 else
6068 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6069 for as_dir in $PATH
6070 do
6071 IFS=$as_save_IFS
6072 test -z "$as_dir" && as_dir=.
6073 for ac_exec_ext in '' $ac_executable_extensions; do
6074 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6075 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6076 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6077 break 2
6078 fi
6079 done
6080 done
6081 IFS=$as_save_IFS
6082
6083 fi
6084 fi
6085 RANLIB=$ac_cv_prog_RANLIB
6086 if test -n "$RANLIB"; then
6087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6088 $as_echo "$RANLIB" >&6; }
6089 else
6090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6091 $as_echo "no" >&6; }
6092 fi
6093
6094
6095 fi
6096 if test -z "$ac_cv_prog_RANLIB"; then
6097 ac_ct_RANLIB=$RANLIB
6098 # Extract the first word of "ranlib", so it can be a program name with args.
6099 set dummy ranlib; ac_word=$2
6100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6101 $as_echo_n "checking for $ac_word... " >&6; }
6102 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6103 $as_echo_n "(cached) " >&6
6104 else
6105 if test -n "$ac_ct_RANLIB"; then
6106 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6107 else
6108 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6109 for as_dir in $PATH
6110 do
6111 IFS=$as_save_IFS
6112 test -z "$as_dir" && as_dir=.
6113 for ac_exec_ext in '' $ac_executable_extensions; do
6114 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6115 ac_cv_prog_ac_ct_RANLIB="ranlib"
6116 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6117 break 2
6118 fi
6119 done
6120 done
6121 IFS=$as_save_IFS
6122
6123 fi
6124 fi
6125 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6126 if test -n "$ac_ct_RANLIB"; then
6127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6128 $as_echo "$ac_ct_RANLIB" >&6; }
6129 else
6130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6131 $as_echo "no" >&6; }
6132 fi
6133
6134 if test "x$ac_ct_RANLIB" = x; then
6135 RANLIB=":"
6136 else
6137 case $cross_compiling:$ac_tool_warned in
6138 yes:)
6139 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6140 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6141 ac_tool_warned=yes ;;
6142 esac
6143 RANLIB=$ac_ct_RANLIB
6144 fi
6145 else
6146 RANLIB="$ac_cv_prog_RANLIB"
6147 fi
6148
6149 test -z "$RANLIB" && RANLIB=:
6150
6151
6152
6153
6154
6155
6156 # Determine commands to create old-style static archives.
6157 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6158 old_postinstall_cmds='chmod 644 $oldlib'
6159 old_postuninstall_cmds=
6160
6161 if test -n "$RANLIB"; then
6162 case $host_os in
6163 bitrig* | openbsd*)
6164 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6165 ;;
6166 *)
6167 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6168 ;;
6169 esac
6170 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6171 fi
6172
6173 case $host_os in
6174 darwin*)
6175 lock_old_archive_extraction=yes ;;
6176 *)
6177 lock_old_archive_extraction=no ;;
6178 esac
6179
6180
6181
6182
6183
6184
6185
6186
6187
6188
6189
6190
6191
6192
6193
6194
6195
6196
6197
6198
6199
6200
6201
6202
6203
6204
6205
6206
6207
6208
6209
6210
6211
6212
6213
6214
6215
6216
6217
6218 # If no C compiler was specified, use CC.
6219 LTCC=${LTCC-"$CC"}
6220
6221 # If no C compiler flags were specified, use CFLAGS.
6222 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6223
6224 # Allow CC to be a program name with arguments.
6225 compiler=$CC
6226
6227
6228 # Check for command to grab the raw symbol name followed by C symbol from nm.
6229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6230 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6231 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6232 $as_echo_n "(cached) " >&6
6233 else
6234
6235 # These are sane defaults that work on at least a few old systems.
6236 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6237
6238 # Character class describing NM global symbol codes.
6239 symcode='[BCDEGRST]'
6240
6241 # Regexp to match symbols that can be accessed directly from C.
6242 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6243
6244 # Define system-specific variables.
6245 case $host_os in
6246 aix*)
6247 symcode='[BCDT]'
6248 ;;
6249 cygwin* | mingw* | pw32* | cegcc*)
6250 symcode='[ABCDGISTW]'
6251 ;;
6252 hpux*)
6253 if test ia64 = "$host_cpu"; then
6254 symcode='[ABCDEGRST]'
6255 fi
6256 ;;
6257 irix* | nonstopux*)
6258 symcode='[BCDEGRST]'
6259 ;;
6260 osf*)
6261 symcode='[BCDEGQRST]'
6262 ;;
6263 solaris*)
6264 symcode='[BDRT]'
6265 ;;
6266 sco3.2v5*)
6267 symcode='[DT]'
6268 ;;
6269 sysv4.2uw2*)
6270 symcode='[DT]'
6271 ;;
6272 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6273 symcode='[ABDT]'
6274 ;;
6275 sysv4)
6276 symcode='[DFNSTU]'
6277 ;;
6278 esac
6279
6280 # If we're using GNU nm, then use its standard symbol codes.
6281 case `$NM -V 2>&1` in
6282 *GNU* | *'with BFD'*)
6283 symcode='[ABCDGIRSTW]' ;;
6284 esac
6285
6286 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6287 # Gets list of data symbols to import.
6288 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
6289 # Adjust the below global symbol transforms to fixup imported variables.
6290 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
6291 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
6292 lt_c_name_lib_hook="\
6293 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
6294 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
6295 else
6296 # Disable hooks by default.
6297 lt_cv_sys_global_symbol_to_import=
6298 lt_cdecl_hook=
6299 lt_c_name_hook=
6300 lt_c_name_lib_hook=
6301 fi
6302
6303 # Transform an extracted symbol line into a proper C declaration.
6304 # Some systems (esp. on ia64) link data and code symbols differently,
6305 # so use this general approach.
6306 lt_cv_sys_global_symbol_to_cdecl="sed -n"\
6307 $lt_cdecl_hook\
6308 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
6309 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
6310
6311 # Transform an extracted symbol line into symbol name and symbol address
6312 lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
6313 $lt_c_name_hook\
6314 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
6315 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
6316
6317 # Transform an extracted symbol line into symbol name with lib prefix and
6318 # symbol address.
6319 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
6320 $lt_c_name_lib_hook\
6321 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
6322 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
6323 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
6324
6325 # Handle CRLF in mingw tool chain
6326 opt_cr=
6327 case $build_os in
6328 mingw*)
6329 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6330 ;;
6331 esac
6332
6333 # Try without a prefix underscore, then with it.
6334 for ac_symprfx in "" "_"; do
6335
6336 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6337 symxfrm="\\1 $ac_symprfx\\2 \\2"
6338
6339 # Write the raw and C identifiers.
6340 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6341 # Fake it for dumpbin and say T for any non-static function,
6342 # D for any global variable and I for any imported variable.
6343 # Also find C++ and __fastcall symbols from MSVC++,
6344 # which start with @ or ?.
6345 lt_cv_sys_global_symbol_pipe="$AWK '"\
6346 " {last_section=section; section=\$ 3};"\
6347 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6348 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6349 " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
6350 " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
6351 " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
6352 " \$ 0!~/External *\|/{next};"\
6353 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6354 " {if(hide[section]) next};"\
6355 " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
6356 " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
6357 " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
6358 " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
6359 " ' prfx=^$ac_symprfx"
6360 else
6361 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6362 fi
6363 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6364
6365 # Check to see that the pipe works correctly.
6366 pipe_works=no
6367
6368 rm -f conftest*
6369 cat > conftest.$ac_ext <<_LT_EOF
6370 #ifdef __cplusplus
6371 extern "C" {
6372 #endif
6373 char nm_test_var;
6374 void nm_test_func(void);
6375 void nm_test_func(void){}
6376 #ifdef __cplusplus
6377 }
6378 #endif
6379 int main(){nm_test_var='a';nm_test_func();return(0);}
6380 _LT_EOF
6381
6382 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6383 (eval $ac_compile) 2>&5
6384 ac_status=$?
6385 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6386 test $ac_status = 0; }; then
6387 # Now try to grab the symbols.
6388 nlist=conftest.nm
6389 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6390 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6391 ac_status=$?
6392 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6393 test $ac_status = 0; } && test -s "$nlist"; then
6394 # Try sorting and uniquifying the output.
6395 if sort "$nlist" | uniq > "$nlist"T; then
6396 mv -f "$nlist"T "$nlist"
6397 else
6398 rm -f "$nlist"T
6399 fi
6400
6401 # Make sure that we snagged all the symbols we need.
6402 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6403 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6404 cat <<_LT_EOF > conftest.$ac_ext
6405 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
6406 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
6407 /* DATA imports from DLLs on WIN32 can't be const, because runtime
6408 relocations are performed -- see ld's documentation on pseudo-relocs. */
6409 # define LT_DLSYM_CONST
6410 #elif defined __osf__
6411 /* This system does not cope well with relocations in const data. */
6412 # define LT_DLSYM_CONST
6413 #else
6414 # define LT_DLSYM_CONST const
6415 #endif
6416
6417 #ifdef __cplusplus
6418 extern "C" {
6419 #endif
6420
6421 _LT_EOF
6422 # Now generate the symbol file.
6423 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6424
6425 cat <<_LT_EOF >> conftest.$ac_ext
6426
6427 /* The mapping between symbol names and symbols. */
6428 LT_DLSYM_CONST struct {
6429 const char *name;
6430 void *address;
6431 }
6432 lt__PROGRAM__LTX_preloaded_symbols[] =
6433 {
6434 { "@PROGRAM@", (void *) 0 },
6435 _LT_EOF
6436 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6437 cat <<\_LT_EOF >> conftest.$ac_ext
6438 {0, (void *) 0}
6439 };
6440
6441 /* This works around a problem in FreeBSD linker */
6442 #ifdef FREEBSD_WORKAROUND
6443 static const void *lt_preloaded_setup() {
6444 return lt__PROGRAM__LTX_preloaded_symbols;
6445 }
6446 #endif
6447
6448 #ifdef __cplusplus
6449 }
6450 #endif
6451 _LT_EOF
6452 # Now try linking the two files.
6453 mv conftest.$ac_objext conftstm.$ac_objext
6454 lt_globsym_save_LIBS=$LIBS
6455 lt_globsym_save_CFLAGS=$CFLAGS
6456 LIBS=conftstm.$ac_objext
6457 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6458 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6459 (eval $ac_link) 2>&5
6460 ac_status=$?
6461 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6462 test $ac_status = 0; } && test -s conftest$ac_exeext; then
6463 pipe_works=yes
6464 fi
6465 LIBS=$lt_globsym_save_LIBS
6466 CFLAGS=$lt_globsym_save_CFLAGS
6467 else
6468 echo "cannot find nm_test_func in $nlist" >&5
6469 fi
6470 else
6471 echo "cannot find nm_test_var in $nlist" >&5
6472 fi
6473 else
6474 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6475 fi
6476 else
6477 echo "$progname: failed program was:" >&5
6478 cat conftest.$ac_ext >&5
6479 fi
6480 rm -rf conftest* conftst*
6481
6482 # Do not use the global_symbol_pipe unless it works.
6483 if test yes = "$pipe_works"; then
6484 break
6485 else
6486 lt_cv_sys_global_symbol_pipe=
6487 fi
6488 done
6489
6490 fi
6491
6492 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6493 lt_cv_sys_global_symbol_to_cdecl=
6494 fi
6495 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6497 $as_echo "failed" >&6; }
6498 else
6499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6500 $as_echo "ok" >&6; }
6501 fi
6502
6503 # Response file support.
6504 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6505 nm_file_list_spec='@'
6506 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6507 nm_file_list_spec='@'
6508 fi
6509
6510
6511
6512
6513
6514
6515
6516
6517
6518
6519
6520
6521
6522
6523
6524
6525
6526
6527
6528
6529
6530
6531
6532
6533
6534
6535
6536
6537
6538
6539
6540
6541
6542
6543
6544
6545
6546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6547 $as_echo_n "checking for sysroot... " >&6; }
6548
6549 # Check whether --with-sysroot was given.
6550 if test "${with_sysroot+set}" = set; then :
6551 withval=$with_sysroot;
6552 else
6553 with_sysroot=no
6554 fi
6555
6556
6557 lt_sysroot=
6558 case $with_sysroot in #(
6559 yes)
6560 if test yes = "$GCC"; then
6561 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6562 fi
6563 ;; #(
6564 /*)
6565 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6566 ;; #(
6567 no|'')
6568 ;; #(
6569 *)
6570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
6571 $as_echo "$with_sysroot" >&6; }
6572 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6573 ;;
6574 esac
6575
6576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6577 $as_echo "${lt_sysroot:-no}" >&6; }
6578
6579
6580
6581
6582
6583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
6584 $as_echo_n "checking for a working dd... " >&6; }
6585 if ${ac_cv_path_lt_DD+:} false; then :
6586 $as_echo_n "(cached) " >&6
6587 else
6588 printf 0123456789abcdef0123456789abcdef >conftest.i
6589 cat conftest.i conftest.i >conftest2.i
6590 : ${lt_DD:=$DD}
6591 if test -z "$lt_DD"; then
6592 ac_path_lt_DD_found=false
6593 # Loop through the user's path and test for each of PROGNAME-LIST
6594 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6595 for as_dir in $PATH
6596 do
6597 IFS=$as_save_IFS
6598 test -z "$as_dir" && as_dir=.
6599 for ac_prog in dd; do
6600 for ac_exec_ext in '' $ac_executable_extensions; do
6601 ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
6602 as_fn_executable_p "$ac_path_lt_DD" || continue
6603 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
6604 cmp -s conftest.i conftest.out \
6605 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
6606 fi
6607 $ac_path_lt_DD_found && break 3
6608 done
6609 done
6610 done
6611 IFS=$as_save_IFS
6612 if test -z "$ac_cv_path_lt_DD"; then
6613 :
6614 fi
6615 else
6616 ac_cv_path_lt_DD=$lt_DD
6617 fi
6618
6619 rm -f conftest.i conftest2.i conftest.out
6620 fi
6621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
6622 $as_echo "$ac_cv_path_lt_DD" >&6; }
6623
6624
6625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
6626 $as_echo_n "checking how to truncate binary pipes... " >&6; }
6627 if ${lt_cv_truncate_bin+:} false; then :
6628 $as_echo_n "(cached) " >&6
6629 else
6630 printf 0123456789abcdef0123456789abcdef >conftest.i
6631 cat conftest.i conftest.i >conftest2.i
6632 lt_cv_truncate_bin=
6633 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
6634 cmp -s conftest.i conftest.out \
6635 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
6636 fi
6637 rm -f conftest.i conftest2.i conftest.out
6638 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
6639 fi
6640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
6641 $as_echo "$lt_cv_truncate_bin" >&6; }
6642
6643
6644
6645
6646
6647
6648
6649 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
6650 func_cc_basename ()
6651 {
6652 for cc_temp in $*""; do
6653 case $cc_temp in
6654 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6655 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6656 \-*) ;;
6657 *) break;;
6658 esac
6659 done
6660 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
6661 }
6662
6663 # Check whether --enable-libtool-lock was given.
6664 if test "${enable_libtool_lock+set}" = set; then :
6665 enableval=$enable_libtool_lock;
6666 fi
6667
6668 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
6669
6670 # Some flags need to be propagated to the compiler or linker for good
6671 # libtool support.
6672 case $host in
6673 ia64-*-hpux*)
6674 # Find out what ABI is being produced by ac_compile, and set mode
6675 # options accordingly.
6676 echo 'int i;' > conftest.$ac_ext
6677 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6678 (eval $ac_compile) 2>&5
6679 ac_status=$?
6680 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6681 test $ac_status = 0; }; then
6682 case `/usr/bin/file conftest.$ac_objext` in
6683 *ELF-32*)
6684 HPUX_IA64_MODE=32
6685 ;;
6686 *ELF-64*)
6687 HPUX_IA64_MODE=64
6688 ;;
6689 esac
6690 fi
6691 rm -rf conftest*
6692 ;;
6693 *-*-irix6*)
6694 # Find out what ABI is being produced by ac_compile, and set linker
6695 # options accordingly.
6696 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6697 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6698 (eval $ac_compile) 2>&5
6699 ac_status=$?
6700 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6701 test $ac_status = 0; }; then
6702 if test yes = "$lt_cv_prog_gnu_ld"; then
6703 case `/usr/bin/file conftest.$ac_objext` in
6704 *32-bit*)
6705 LD="${LD-ld} -melf32bsmip"
6706 ;;
6707 *N32*)
6708 LD="${LD-ld} -melf32bmipn32"
6709 ;;
6710 *64-bit*)
6711 LD="${LD-ld} -melf64bmip"
6712 ;;
6713 esac
6714 else
6715 case `/usr/bin/file conftest.$ac_objext` in
6716 *32-bit*)
6717 LD="${LD-ld} -32"
6718 ;;
6719 *N32*)
6720 LD="${LD-ld} -n32"
6721 ;;
6722 *64-bit*)
6723 LD="${LD-ld} -64"
6724 ;;
6725 esac
6726 fi
6727 fi
6728 rm -rf conftest*
6729 ;;
6730
6731 mips64*-*linux*)
6732 # Find out what ABI is being produced by ac_compile, and set linker
6733 # options accordingly.
6734 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6735 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6736 (eval $ac_compile) 2>&5
6737 ac_status=$?
6738 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6739 test $ac_status = 0; }; then
6740 emul=elf
6741 case `/usr/bin/file conftest.$ac_objext` in
6742 *32-bit*)
6743 emul="${emul}32"
6744 ;;
6745 *64-bit*)
6746 emul="${emul}64"
6747 ;;
6748 esac
6749 case `/usr/bin/file conftest.$ac_objext` in
6750 *MSB*)
6751 emul="${emul}btsmip"
6752 ;;
6753 *LSB*)
6754 emul="${emul}ltsmip"
6755 ;;
6756 esac
6757 case `/usr/bin/file conftest.$ac_objext` in
6758 *N32*)
6759 emul="${emul}n32"
6760 ;;
6761 esac
6762 LD="${LD-ld} -m $emul"
6763 fi
6764 rm -rf conftest*
6765 ;;
6766
6767 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
6768 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6769 # Find out what ABI is being produced by ac_compile, and set linker
6770 # options accordingly. Note that the listed cases only cover the
6771 # situations where additional linker options are needed (such as when
6772 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
6773 # vice versa); the common cases where no linker options are needed do
6774 # not appear in the list.
6775 echo 'int i;' > conftest.$ac_ext
6776 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6777 (eval $ac_compile) 2>&5
6778 ac_status=$?
6779 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6780 test $ac_status = 0; }; then
6781 case `/usr/bin/file conftest.o` in
6782 *32-bit*)
6783 case $host in
6784 x86_64-*kfreebsd*-gnu)
6785 LD="${LD-ld} -m elf_i386_fbsd"
6786 ;;
6787 x86_64-*linux*)
6788 case `/usr/bin/file conftest.o` in
6789 *x86-64*)
6790 LD="${LD-ld} -m elf32_x86_64"
6791 ;;
6792 *)
6793 LD="${LD-ld} -m elf_i386"
6794 ;;
6795 esac
6796 ;;
6797 powerpc64le-*linux*)
6798 LD="${LD-ld} -m elf32lppclinux"
6799 ;;
6800 powerpc64-*linux*)
6801 LD="${LD-ld} -m elf32ppclinux"
6802 ;;
6803 s390x-*linux*)
6804 LD="${LD-ld} -m elf_s390"
6805 ;;
6806 sparc64-*linux*)
6807 LD="${LD-ld} -m elf32_sparc"
6808 ;;
6809 esac
6810 ;;
6811 *64-bit*)
6812 case $host in
6813 x86_64-*kfreebsd*-gnu)
6814 LD="${LD-ld} -m elf_x86_64_fbsd"
6815 ;;
6816 x86_64-*linux*)
6817 LD="${LD-ld} -m elf_x86_64"
6818 ;;
6819 powerpcle-*linux*)
6820 LD="${LD-ld} -m elf64lppc"
6821 ;;
6822 powerpc-*linux*)
6823 LD="${LD-ld} -m elf64ppc"
6824 ;;
6825 s390*-*linux*|s390*-*tpf*)
6826 LD="${LD-ld} -m elf64_s390"
6827 ;;
6828 sparc*-*linux*)
6829 LD="${LD-ld} -m elf64_sparc"
6830 ;;
6831 esac
6832 ;;
6833 esac
6834 fi
6835 rm -rf conftest*
6836 ;;
6837
6838 *-*-sco3.2v5*)
6839 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6840 SAVE_CFLAGS=$CFLAGS
6841 CFLAGS="$CFLAGS -belf"
6842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6843 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6844 if ${lt_cv_cc_needs_belf+:} false; then :
6845 $as_echo_n "(cached) " >&6
6846 else
6847 ac_ext=c
6848 ac_cpp='$CPP $CPPFLAGS'
6849 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6850 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6851 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6852
6853 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6854 /* end confdefs.h. */
6855
6856 int
6857 main ()
6858 {
6859
6860 ;
6861 return 0;
6862 }
6863 _ACEOF
6864 if ac_fn_c_try_link "$LINENO"; then :
6865 lt_cv_cc_needs_belf=yes
6866 else
6867 lt_cv_cc_needs_belf=no
6868 fi
6869 rm -f core conftest.err conftest.$ac_objext \
6870 conftest$ac_exeext conftest.$ac_ext
6871 ac_ext=c
6872 ac_cpp='$CPP $CPPFLAGS'
6873 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6874 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6875 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6876
6877 fi
6878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6879 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6880 if test yes != "$lt_cv_cc_needs_belf"; then
6881 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6882 CFLAGS=$SAVE_CFLAGS
6883 fi
6884 ;;
6885 *-*solaris*)
6886 # Find out what ABI is being produced by ac_compile, and set linker
6887 # options accordingly.
6888 echo 'int i;' > conftest.$ac_ext
6889 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6890 (eval $ac_compile) 2>&5
6891 ac_status=$?
6892 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6893 test $ac_status = 0; }; then
6894 case `/usr/bin/file conftest.o` in
6895 *64-bit*)
6896 case $lt_cv_prog_gnu_ld in
6897 yes*)
6898 case $host in
6899 i?86-*-solaris*|x86_64-*-solaris*)
6900 LD="${LD-ld} -m elf_x86_64"
6901 ;;
6902 sparc*-*-solaris*)
6903 LD="${LD-ld} -m elf64_sparc"
6904 ;;
6905 esac
6906 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
6907 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
6908 LD=${LD-ld}_sol2
6909 fi
6910 ;;
6911 *)
6912 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6913 LD="${LD-ld} -64"
6914 fi
6915 ;;
6916 esac
6917 ;;
6918 esac
6919 fi
6920 rm -rf conftest*
6921 ;;
6922 esac
6923
6924 need_locks=$enable_libtool_lock
6925
6926 if test -n "$ac_tool_prefix"; then
6927 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
6928 set dummy ${ac_tool_prefix}mt; ac_word=$2
6929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6930 $as_echo_n "checking for $ac_word... " >&6; }
6931 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
6932 $as_echo_n "(cached) " >&6
6933 else
6934 if test -n "$MANIFEST_TOOL"; then
6935 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
6936 else
6937 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6938 for as_dir in $PATH
6939 do
6940 IFS=$as_save_IFS
6941 test -z "$as_dir" && as_dir=.
6942 for ac_exec_ext in '' $ac_executable_extensions; do
6943 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6944 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
6945 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6946 break 2
6947 fi
6948 done
6949 done
6950 IFS=$as_save_IFS
6951
6952 fi
6953 fi
6954 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
6955 if test -n "$MANIFEST_TOOL"; then
6956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
6957 $as_echo "$MANIFEST_TOOL" >&6; }
6958 else
6959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6960 $as_echo "no" >&6; }
6961 fi
6962
6963
6964 fi
6965 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
6966 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
6967 # Extract the first word of "mt", so it can be a program name with args.
6968 set dummy mt; ac_word=$2
6969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6970 $as_echo_n "checking for $ac_word... " >&6; }
6971 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
6972 $as_echo_n "(cached) " >&6
6973 else
6974 if test -n "$ac_ct_MANIFEST_TOOL"; then
6975 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
6976 else
6977 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6978 for as_dir in $PATH
6979 do
6980 IFS=$as_save_IFS
6981 test -z "$as_dir" && as_dir=.
6982 for ac_exec_ext in '' $ac_executable_extensions; do
6983 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6984 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
6985 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6986 break 2
6987 fi
6988 done
6989 done
6990 IFS=$as_save_IFS
6991
6992 fi
6993 fi
6994 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
6995 if test -n "$ac_ct_MANIFEST_TOOL"; then
6996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
6997 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
6998 else
6999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7000 $as_echo "no" >&6; }
7001 fi
7002
7003 if test "x$ac_ct_MANIFEST_TOOL" = x; then
7004 MANIFEST_TOOL=":"
7005 else
7006 case $cross_compiling:$ac_tool_warned in
7007 yes:)
7008 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7009 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7010 ac_tool_warned=yes ;;
7011 esac
7012 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7013 fi
7014 else
7015 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7016 fi
7017
7018 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7020 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7021 if ${lt_cv_path_mainfest_tool+:} false; then :
7022 $as_echo_n "(cached) " >&6
7023 else
7024 lt_cv_path_mainfest_tool=no
7025 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7026 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7027 cat conftest.err >&5
7028 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7029 lt_cv_path_mainfest_tool=yes
7030 fi
7031 rm -f conftest*
7032 fi
7033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7034 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
7035 if test yes != "$lt_cv_path_mainfest_tool"; then
7036 MANIFEST_TOOL=:
7037 fi
7038
7039
7040
7041
7042
7043
7044 case $host_os in
7045 rhapsody* | darwin*)
7046 if test -n "$ac_tool_prefix"; then
7047 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7048 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7050 $as_echo_n "checking for $ac_word... " >&6; }
7051 if ${ac_cv_prog_DSYMUTIL+:} false; then :
7052 $as_echo_n "(cached) " >&6
7053 else
7054 if test -n "$DSYMUTIL"; then
7055 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7056 else
7057 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7058 for as_dir in $PATH
7059 do
7060 IFS=$as_save_IFS
7061 test -z "$as_dir" && as_dir=.
7062 for ac_exec_ext in '' $ac_executable_extensions; do
7063 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7064 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7065 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7066 break 2
7067 fi
7068 done
7069 done
7070 IFS=$as_save_IFS
7071
7072 fi
7073 fi
7074 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7075 if test -n "$DSYMUTIL"; then
7076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7077 $as_echo "$DSYMUTIL" >&6; }
7078 else
7079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7080 $as_echo "no" >&6; }
7081 fi
7082
7083
7084 fi
7085 if test -z "$ac_cv_prog_DSYMUTIL"; then
7086 ac_ct_DSYMUTIL=$DSYMUTIL
7087 # Extract the first word of "dsymutil", so it can be a program name with args.
7088 set dummy dsymutil; ac_word=$2
7089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7090 $as_echo_n "checking for $ac_word... " >&6; }
7091 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7092 $as_echo_n "(cached) " >&6
7093 else
7094 if test -n "$ac_ct_DSYMUTIL"; then
7095 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7096 else
7097 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7098 for as_dir in $PATH
7099 do
7100 IFS=$as_save_IFS
7101 test -z "$as_dir" && as_dir=.
7102 for ac_exec_ext in '' $ac_executable_extensions; do
7103 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7104 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7105 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7106 break 2
7107 fi
7108 done
7109 done
7110 IFS=$as_save_IFS
7111
7112 fi
7113 fi
7114 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7115 if test -n "$ac_ct_DSYMUTIL"; then
7116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7117 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7118 else
7119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7120 $as_echo "no" >&6; }
7121 fi
7122
7123 if test "x$ac_ct_DSYMUTIL" = x; then
7124 DSYMUTIL=":"
7125 else
7126 case $cross_compiling:$ac_tool_warned in
7127 yes:)
7128 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7129 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7130 ac_tool_warned=yes ;;
7131 esac
7132 DSYMUTIL=$ac_ct_DSYMUTIL
7133 fi
7134 else
7135 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7136 fi
7137
7138 if test -n "$ac_tool_prefix"; then
7139 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7140 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7142 $as_echo_n "checking for $ac_word... " >&6; }
7143 if ${ac_cv_prog_NMEDIT+:} false; then :
7144 $as_echo_n "(cached) " >&6
7145 else
7146 if test -n "$NMEDIT"; then
7147 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7148 else
7149 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7150 for as_dir in $PATH
7151 do
7152 IFS=$as_save_IFS
7153 test -z "$as_dir" && as_dir=.
7154 for ac_exec_ext in '' $ac_executable_extensions; do
7155 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7156 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7157 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7158 break 2
7159 fi
7160 done
7161 done
7162 IFS=$as_save_IFS
7163
7164 fi
7165 fi
7166 NMEDIT=$ac_cv_prog_NMEDIT
7167 if test -n "$NMEDIT"; then
7168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7169 $as_echo "$NMEDIT" >&6; }
7170 else
7171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7172 $as_echo "no" >&6; }
7173 fi
7174
7175
7176 fi
7177 if test -z "$ac_cv_prog_NMEDIT"; then
7178 ac_ct_NMEDIT=$NMEDIT
7179 # Extract the first word of "nmedit", so it can be a program name with args.
7180 set dummy nmedit; ac_word=$2
7181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7182 $as_echo_n "checking for $ac_word... " >&6; }
7183 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7184 $as_echo_n "(cached) " >&6
7185 else
7186 if test -n "$ac_ct_NMEDIT"; then
7187 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7188 else
7189 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7190 for as_dir in $PATH
7191 do
7192 IFS=$as_save_IFS
7193 test -z "$as_dir" && as_dir=.
7194 for ac_exec_ext in '' $ac_executable_extensions; do
7195 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7196 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7197 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7198 break 2
7199 fi
7200 done
7201 done
7202 IFS=$as_save_IFS
7203
7204 fi
7205 fi
7206 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7207 if test -n "$ac_ct_NMEDIT"; then
7208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7209 $as_echo "$ac_ct_NMEDIT" >&6; }
7210 else
7211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7212 $as_echo "no" >&6; }
7213 fi
7214
7215 if test "x$ac_ct_NMEDIT" = x; then
7216 NMEDIT=":"
7217 else
7218 case $cross_compiling:$ac_tool_warned in
7219 yes:)
7220 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7221 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7222 ac_tool_warned=yes ;;
7223 esac
7224 NMEDIT=$ac_ct_NMEDIT
7225 fi
7226 else
7227 NMEDIT="$ac_cv_prog_NMEDIT"
7228 fi
7229
7230 if test -n "$ac_tool_prefix"; then
7231 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7232 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7234 $as_echo_n "checking for $ac_word... " >&6; }
7235 if ${ac_cv_prog_LIPO+:} false; then :
7236 $as_echo_n "(cached) " >&6
7237 else
7238 if test -n "$LIPO"; then
7239 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7240 else
7241 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7242 for as_dir in $PATH
7243 do
7244 IFS=$as_save_IFS
7245 test -z "$as_dir" && as_dir=.
7246 for ac_exec_ext in '' $ac_executable_extensions; do
7247 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7248 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7249 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7250 break 2
7251 fi
7252 done
7253 done
7254 IFS=$as_save_IFS
7255
7256 fi
7257 fi
7258 LIPO=$ac_cv_prog_LIPO
7259 if test -n "$LIPO"; then
7260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7261 $as_echo "$LIPO" >&6; }
7262 else
7263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7264 $as_echo "no" >&6; }
7265 fi
7266
7267
7268 fi
7269 if test -z "$ac_cv_prog_LIPO"; then
7270 ac_ct_LIPO=$LIPO
7271 # Extract the first word of "lipo", so it can be a program name with args.
7272 set dummy lipo; ac_word=$2
7273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7274 $as_echo_n "checking for $ac_word... " >&6; }
7275 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7276 $as_echo_n "(cached) " >&6
7277 else
7278 if test -n "$ac_ct_LIPO"; then
7279 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7280 else
7281 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7282 for as_dir in $PATH
7283 do
7284 IFS=$as_save_IFS
7285 test -z "$as_dir" && as_dir=.
7286 for ac_exec_ext in '' $ac_executable_extensions; do
7287 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7288 ac_cv_prog_ac_ct_LIPO="lipo"
7289 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7290 break 2
7291 fi
7292 done
7293 done
7294 IFS=$as_save_IFS
7295
7296 fi
7297 fi
7298 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7299 if test -n "$ac_ct_LIPO"; then
7300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7301 $as_echo "$ac_ct_LIPO" >&6; }
7302 else
7303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7304 $as_echo "no" >&6; }
7305 fi
7306
7307 if test "x$ac_ct_LIPO" = x; then
7308 LIPO=":"
7309 else
7310 case $cross_compiling:$ac_tool_warned in
7311 yes:)
7312 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7313 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7314 ac_tool_warned=yes ;;
7315 esac
7316 LIPO=$ac_ct_LIPO
7317 fi
7318 else
7319 LIPO="$ac_cv_prog_LIPO"
7320 fi
7321
7322 if test -n "$ac_tool_prefix"; then
7323 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7324 set dummy ${ac_tool_prefix}otool; ac_word=$2
7325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7326 $as_echo_n "checking for $ac_word... " >&6; }
7327 if ${ac_cv_prog_OTOOL+:} false; then :
7328 $as_echo_n "(cached) " >&6
7329 else
7330 if test -n "$OTOOL"; then
7331 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7332 else
7333 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7334 for as_dir in $PATH
7335 do
7336 IFS=$as_save_IFS
7337 test -z "$as_dir" && as_dir=.
7338 for ac_exec_ext in '' $ac_executable_extensions; do
7339 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7340 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7341 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7342 break 2
7343 fi
7344 done
7345 done
7346 IFS=$as_save_IFS
7347
7348 fi
7349 fi
7350 OTOOL=$ac_cv_prog_OTOOL
7351 if test -n "$OTOOL"; then
7352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7353 $as_echo "$OTOOL" >&6; }
7354 else
7355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7356 $as_echo "no" >&6; }
7357 fi
7358
7359
7360 fi
7361 if test -z "$ac_cv_prog_OTOOL"; then
7362 ac_ct_OTOOL=$OTOOL
7363 # Extract the first word of "otool", so it can be a program name with args.
7364 set dummy otool; ac_word=$2
7365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7366 $as_echo_n "checking for $ac_word... " >&6; }
7367 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7368 $as_echo_n "(cached) " >&6
7369 else
7370 if test -n "$ac_ct_OTOOL"; then
7371 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7372 else
7373 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7374 for as_dir in $PATH
7375 do
7376 IFS=$as_save_IFS
7377 test -z "$as_dir" && as_dir=.
7378 for ac_exec_ext in '' $ac_executable_extensions; do
7379 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7380 ac_cv_prog_ac_ct_OTOOL="otool"
7381 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7382 break 2
7383 fi
7384 done
7385 done
7386 IFS=$as_save_IFS
7387
7388 fi
7389 fi
7390 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7391 if test -n "$ac_ct_OTOOL"; then
7392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7393 $as_echo "$ac_ct_OTOOL" >&6; }
7394 else
7395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7396 $as_echo "no" >&6; }
7397 fi
7398
7399 if test "x$ac_ct_OTOOL" = x; then
7400 OTOOL=":"
7401 else
7402 case $cross_compiling:$ac_tool_warned in
7403 yes:)
7404 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7405 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7406 ac_tool_warned=yes ;;
7407 esac
7408 OTOOL=$ac_ct_OTOOL
7409 fi
7410 else
7411 OTOOL="$ac_cv_prog_OTOOL"
7412 fi
7413
7414 if test -n "$ac_tool_prefix"; then
7415 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7416 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7418 $as_echo_n "checking for $ac_word... " >&6; }
7419 if ${ac_cv_prog_OTOOL64+:} false; then :
7420 $as_echo_n "(cached) " >&6
7421 else
7422 if test -n "$OTOOL64"; then
7423 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7424 else
7425 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7426 for as_dir in $PATH
7427 do
7428 IFS=$as_save_IFS
7429 test -z "$as_dir" && as_dir=.
7430 for ac_exec_ext in '' $ac_executable_extensions; do
7431 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7432 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7433 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7434 break 2
7435 fi
7436 done
7437 done
7438 IFS=$as_save_IFS
7439
7440 fi
7441 fi
7442 OTOOL64=$ac_cv_prog_OTOOL64
7443 if test -n "$OTOOL64"; then
7444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7445 $as_echo "$OTOOL64" >&6; }
7446 else
7447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7448 $as_echo "no" >&6; }
7449 fi
7450
7451
7452 fi
7453 if test -z "$ac_cv_prog_OTOOL64"; then
7454 ac_ct_OTOOL64=$OTOOL64
7455 # Extract the first word of "otool64", so it can be a program name with args.
7456 set dummy otool64; ac_word=$2
7457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7458 $as_echo_n "checking for $ac_word... " >&6; }
7459 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7460 $as_echo_n "(cached) " >&6
7461 else
7462 if test -n "$ac_ct_OTOOL64"; then
7463 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7464 else
7465 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7466 for as_dir in $PATH
7467 do
7468 IFS=$as_save_IFS
7469 test -z "$as_dir" && as_dir=.
7470 for ac_exec_ext in '' $ac_executable_extensions; do
7471 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7472 ac_cv_prog_ac_ct_OTOOL64="otool64"
7473 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7474 break 2
7475 fi
7476 done
7477 done
7478 IFS=$as_save_IFS
7479
7480 fi
7481 fi
7482 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7483 if test -n "$ac_ct_OTOOL64"; then
7484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7485 $as_echo "$ac_ct_OTOOL64" >&6; }
7486 else
7487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7488 $as_echo "no" >&6; }
7489 fi
7490
7491 if test "x$ac_ct_OTOOL64" = x; then
7492 OTOOL64=":"
7493 else
7494 case $cross_compiling:$ac_tool_warned in
7495 yes:)
7496 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7497 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7498 ac_tool_warned=yes ;;
7499 esac
7500 OTOOL64=$ac_ct_OTOOL64
7501 fi
7502 else
7503 OTOOL64="$ac_cv_prog_OTOOL64"
7504 fi
7505
7506
7507
7508
7509
7510
7511
7512
7513
7514
7515
7516
7517
7518
7519
7520
7521
7522
7523
7524
7525
7526
7527
7528
7529
7530
7531
7532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7533 $as_echo_n "checking for -single_module linker flag... " >&6; }
7534 if ${lt_cv_apple_cc_single_mod+:} false; then :
7535 $as_echo_n "(cached) " >&6
7536 else
7537 lt_cv_apple_cc_single_mod=no
7538 if test -z "$LT_MULTI_MODULE"; then
7539 # By default we will add the -single_module flag. You can override
7540 # by either setting the environment variable LT_MULTI_MODULE
7541 # non-empty at configure time, or by adding -multi_module to the
7542 # link flags.
7543 rm -rf libconftest.dylib*
7544 echo "int foo(void){return 1;}" > conftest.c
7545 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7546 -dynamiclib -Wl,-single_module conftest.c" >&5
7547 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7548 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7549 _lt_result=$?
7550 # If there is a non-empty error log, and "single_module"
7551 # appears in it, assume the flag caused a linker warning
7552 if test -s conftest.err && $GREP single_module conftest.err; then
7553 cat conftest.err >&5
7554 # Otherwise, if the output was created with a 0 exit code from
7555 # the compiler, it worked.
7556 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
7557 lt_cv_apple_cc_single_mod=yes
7558 else
7559 cat conftest.err >&5
7560 fi
7561 rm -rf libconftest.dylib*
7562 rm -f conftest.*
7563 fi
7564 fi
7565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7566 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7567
7568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7569 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7570 if ${lt_cv_ld_exported_symbols_list+:} false; then :
7571 $as_echo_n "(cached) " >&6
7572 else
7573 lt_cv_ld_exported_symbols_list=no
7574 save_LDFLAGS=$LDFLAGS
7575 echo "_main" > conftest.sym
7576 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7577 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7578 /* end confdefs.h. */
7579
7580 int
7581 main ()
7582 {
7583
7584 ;
7585 return 0;
7586 }
7587 _ACEOF
7588 if ac_fn_c_try_link "$LINENO"; then :
7589 lt_cv_ld_exported_symbols_list=yes
7590 else
7591 lt_cv_ld_exported_symbols_list=no
7592 fi
7593 rm -f core conftest.err conftest.$ac_objext \
7594 conftest$ac_exeext conftest.$ac_ext
7595 LDFLAGS=$save_LDFLAGS
7596
7597 fi
7598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7599 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7600
7601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7602 $as_echo_n "checking for -force_load linker flag... " >&6; }
7603 if ${lt_cv_ld_force_load+:} false; then :
7604 $as_echo_n "(cached) " >&6
7605 else
7606 lt_cv_ld_force_load=no
7607 cat > conftest.c << _LT_EOF
7608 int forced_loaded() { return 2;}
7609 _LT_EOF
7610 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7611 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7612 echo "$AR cru libconftest.a conftest.o" >&5
7613 $AR cru libconftest.a conftest.o 2>&5
7614 echo "$RANLIB libconftest.a" >&5
7615 $RANLIB libconftest.a 2>&5
7616 cat > conftest.c << _LT_EOF
7617 int main() { return 0;}
7618 _LT_EOF
7619 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7620 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7621 _lt_result=$?
7622 if test -s conftest.err && $GREP force_load conftest.err; then
7623 cat conftest.err >&5
7624 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
7625 lt_cv_ld_force_load=yes
7626 else
7627 cat conftest.err >&5
7628 fi
7629 rm -f conftest.err libconftest.a conftest conftest.c
7630 rm -rf conftest.dSYM
7631
7632 fi
7633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7634 $as_echo "$lt_cv_ld_force_load" >&6; }
7635 case $host_os in
7636 rhapsody* | darwin1.[012])
7637 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
7638 darwin1.*)
7639 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
7640 darwin*) # darwin 5.x on
7641 # if running on 10.5 or later, the deployment target defaults
7642 # to the OS version, if on x86, and 10.4, the deployment
7643 # target defaults to 10.4. Don't you love it?
7644 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7645 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7646 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
7647 10.[012][,.]*)
7648 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
7649 10.*)
7650 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
7651 esac
7652 ;;
7653 esac
7654 if test yes = "$lt_cv_apple_cc_single_mod"; then
7655 _lt_dar_single_mod='$single_module'
7656 fi
7657 if test yes = "$lt_cv_ld_exported_symbols_list"; then
7658 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
7659 else
7660 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
7661 fi
7662 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
7663 _lt_dsymutil='~$DSYMUTIL $lib || :'
7664 else
7665 _lt_dsymutil=
7666 fi
7667 ;;
7668 esac
7669
7670 # func_munge_path_list VARIABLE PATH
7671 # -----------------------------------
7672 # VARIABLE is name of variable containing _space_ separated list of
7673 # directories to be munged by the contents of PATH, which is string
7674 # having a format:
7675 # "DIR[:DIR]:"
7676 # string "DIR[ DIR]" will be prepended to VARIABLE
7677 # ":DIR[:DIR]"
7678 # string "DIR[ DIR]" will be appended to VARIABLE
7679 # "DIRP[:DIRP]::[DIRA:]DIRA"
7680 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
7681 # "DIRA[ DIRA]" will be appended to VARIABLE
7682 # "DIR[:DIR]"
7683 # VARIABLE will be replaced by "DIR[ DIR]"
7684 func_munge_path_list ()
7685 {
7686 case x$2 in
7687 x)
7688 ;;
7689 *:)
7690 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
7691 ;;
7692 x:*)
7693 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
7694 ;;
7695 *::*)
7696 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
7697 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
7698 ;;
7699 *)
7700 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
7701 ;;
7702 esac
7703 }
7704
7705 ac_ext=c
7706 ac_cpp='$CPP $CPPFLAGS'
7707 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7708 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7709 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7711 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7712 # On Suns, sometimes $CPP names a directory.
7713 if test -n "$CPP" && test -d "$CPP"; then
7714 CPP=
7715 fi
7716 if test -z "$CPP"; then
7717 if ${ac_cv_prog_CPP+:} false; then :
7718 $as_echo_n "(cached) " >&6
7719 else
7720 # Double quotes because CPP needs to be expanded
7721 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7722 do
7723 ac_preproc_ok=false
7724 for ac_c_preproc_warn_flag in '' yes
7725 do
7726 # Use a header file that comes with gcc, so configuring glibc
7727 # with a fresh cross-compiler works.
7728 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7729 # <limits.h> exists even on freestanding compilers.
7730 # On the NeXT, cc -E runs the code through the compiler's parser,
7731 # not just through cpp. "Syntax error" is here to catch this case.
7732 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7733 /* end confdefs.h. */
7734 #ifdef __STDC__
7735 # include <limits.h>
7736 #else
7737 # include <assert.h>
7738 #endif
7739 Syntax error
7740 _ACEOF
7741 if ac_fn_c_try_cpp "$LINENO"; then :
7742
7743 else
7744 # Broken: fails on valid input.
7745 continue
7746 fi
7747 rm -f conftest.err conftest.i conftest.$ac_ext
7748
7749 # OK, works on sane cases. Now check whether nonexistent headers
7750 # can be detected and how.
7751 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7752 /* end confdefs.h. */
7753 #include <ac_nonexistent.h>
7754 _ACEOF
7755 if ac_fn_c_try_cpp "$LINENO"; then :
7756 # Broken: success on invalid input.
7757 continue
7758 else
7759 # Passes both tests.
7760 ac_preproc_ok=:
7761 break
7762 fi
7763 rm -f conftest.err conftest.i conftest.$ac_ext
7764
7765 done
7766 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7767 rm -f conftest.i conftest.err conftest.$ac_ext
7768 if $ac_preproc_ok; then :
7769 break
7770 fi
7771
7772 done
7773 ac_cv_prog_CPP=$CPP
7774
7775 fi
7776 CPP=$ac_cv_prog_CPP
7777 else
7778 ac_cv_prog_CPP=$CPP
7779 fi
7780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7781 $as_echo "$CPP" >&6; }
7782 ac_preproc_ok=false
7783 for ac_c_preproc_warn_flag in '' yes
7784 do
7785 # Use a header file that comes with gcc, so configuring glibc
7786 # with a fresh cross-compiler works.
7787 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7788 # <limits.h> exists even on freestanding compilers.
7789 # On the NeXT, cc -E runs the code through the compiler's parser,
7790 # not just through cpp. "Syntax error" is here to catch this case.
7791 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7792 /* end confdefs.h. */
7793 #ifdef __STDC__
7794 # include <limits.h>
7795 #else
7796 # include <assert.h>
7797 #endif
7798 Syntax error
7799 _ACEOF
7800 if ac_fn_c_try_cpp "$LINENO"; then :
7801
7802 else
7803 # Broken: fails on valid input.
7804 continue
7805 fi
7806 rm -f conftest.err conftest.i conftest.$ac_ext
7807
7808 # OK, works on sane cases. Now check whether nonexistent headers
7809 # can be detected and how.
7810 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7811 /* end confdefs.h. */
7812 #include <ac_nonexistent.h>
7813 _ACEOF
7814 if ac_fn_c_try_cpp "$LINENO"; then :
7815 # Broken: success on invalid input.
7816 continue
7817 else
7818 # Passes both tests.
7819 ac_preproc_ok=:
7820 break
7821 fi
7822 rm -f conftest.err conftest.i conftest.$ac_ext
7823
7824 done
7825 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7826 rm -f conftest.i conftest.err conftest.$ac_ext
7827 if $ac_preproc_ok; then :
7828
7829 else
7830 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7831 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7832 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7833 See \`config.log' for more details" "$LINENO" 5; }
7834 fi
7835
7836 ac_ext=c
7837 ac_cpp='$CPP $CPPFLAGS'
7838 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7839 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7840 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7841
7842
7843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7844 $as_echo_n "checking for ANSI C header files... " >&6; }
7845 if ${ac_cv_header_stdc+:} false; then :
7846 $as_echo_n "(cached) " >&6
7847 else
7848 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7849 /* end confdefs.h. */
7850 #include <stdlib.h>
7851 #include <stdarg.h>
7852 #include <string.h>
7853 #include <float.h>
7854
7855 int
7856 main ()
7857 {
7858
7859 ;
7860 return 0;
7861 }
7862 _ACEOF
7863 if ac_fn_c_try_compile "$LINENO"; then :
7864 ac_cv_header_stdc=yes
7865 else
7866 ac_cv_header_stdc=no
7867 fi
7868 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7869
7870 if test $ac_cv_header_stdc = yes; then
7871 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7872 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7873 /* end confdefs.h. */
7874 #include <string.h>
7875
7876 _ACEOF
7877 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7878 $EGREP "memchr" >/dev/null 2>&1; then :
7879
7880 else
7881 ac_cv_header_stdc=no
7882 fi
7883 rm -f conftest*
7884
7885 fi
7886
7887 if test $ac_cv_header_stdc = yes; then
7888 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7889 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7890 /* end confdefs.h. */
7891 #include <stdlib.h>
7892
7893 _ACEOF
7894 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7895 $EGREP "free" >/dev/null 2>&1; then :
7896
7897 else
7898 ac_cv_header_stdc=no
7899 fi
7900 rm -f conftest*
7901
7902 fi
7903
7904 if test $ac_cv_header_stdc = yes; then
7905 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7906 if test "$cross_compiling" = yes; then :
7907 :
7908 else
7909 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7910 /* end confdefs.h. */
7911 #include <ctype.h>
7912 #include <stdlib.h>
7913 #if ((' ' & 0x0FF) == 0x020)
7914 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7915 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7916 #else
7917 # define ISLOWER(c) \
7918 (('a' <= (c) && (c) <= 'i') \
7919 || ('j' <= (c) && (c) <= 'r') \
7920 || ('s' <= (c) && (c) <= 'z'))
7921 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7922 #endif
7923
7924 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7925 int
7926 main ()
7927 {
7928 int i;
7929 for (i = 0; i < 256; i++)
7930 if (XOR (islower (i), ISLOWER (i))
7931 || toupper (i) != TOUPPER (i))
7932 return 2;
7933 return 0;
7934 }
7935 _ACEOF
7936 if ac_fn_c_try_run "$LINENO"; then :
7937
7938 else
7939 ac_cv_header_stdc=no
7940 fi
7941 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7942 conftest.$ac_objext conftest.beam conftest.$ac_ext
7943 fi
7944
7945 fi
7946 fi
7947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7948 $as_echo "$ac_cv_header_stdc" >&6; }
7949 if test $ac_cv_header_stdc = yes; then
7950
7951 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7952
7953 fi
7954
7955 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7956 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7957 inttypes.h stdint.h unistd.h
7958 do :
7959 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7960 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7961 "
7962 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7963 cat >>confdefs.h <<_ACEOF
7964 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7965 _ACEOF
7966
7967 fi
7968
7969 done
7970
7971
7972 for ac_header in dlfcn.h
7973 do :
7974 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7975 "
7976 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7977 cat >>confdefs.h <<_ACEOF
7978 #define HAVE_DLFCN_H 1
7979 _ACEOF
7980
7981 fi
7982
7983 done
7984
7985
7986
7987
7988
7989 # Set options
7990
7991
7992
7993 enable_dlopen=no
7994
7995
7996 enable_win32_dll=no
7997
7998
7999 # Check whether --enable-shared was given.
8000 if test "${enable_shared+set}" = set; then :
8001 enableval=$enable_shared; p=${PACKAGE-default}
8002 case $enableval in
8003 yes) enable_shared=yes ;;
8004 no) enable_shared=no ;;
8005 *)
8006 enable_shared=no
8007 # Look at the argument we got. We use all the common list separators.
8008 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8009 for pkg in $enableval; do
8010 IFS=$lt_save_ifs
8011 if test "X$pkg" = "X$p"; then
8012 enable_shared=yes
8013 fi
8014 done
8015 IFS=$lt_save_ifs
8016 ;;
8017 esac
8018 else
8019 enable_shared=yes
8020 fi
8021
8022
8023
8024
8025
8026
8027
8028
8029
8030 # Check whether --enable-static was given.
8031 if test "${enable_static+set}" = set; then :
8032 enableval=$enable_static; p=${PACKAGE-default}
8033 case $enableval in
8034 yes) enable_static=yes ;;
8035 no) enable_static=no ;;
8036 *)
8037 enable_static=no
8038 # Look at the argument we got. We use all the common list separators.
8039 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8040 for pkg in $enableval; do
8041 IFS=$lt_save_ifs
8042 if test "X$pkg" = "X$p"; then
8043 enable_static=yes
8044 fi
8045 done
8046 IFS=$lt_save_ifs
8047 ;;
8048 esac
8049 else
8050 enable_static=yes
8051 fi
8052
8053
8054
8055
8056
8057
8058
8059
8060
8061
8062 # Check whether --with-pic was given.
8063 if test "${with_pic+set}" = set; then :
8064 withval=$with_pic; lt_p=${PACKAGE-default}
8065 case $withval in
8066 yes|no) pic_mode=$withval ;;
8067 *)
8068 pic_mode=default
8069 # Look at the argument we got. We use all the common list separators.
8070 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8071 for lt_pkg in $withval; do
8072 IFS=$lt_save_ifs
8073 if test "X$lt_pkg" = "X$lt_p"; then
8074 pic_mode=yes
8075 fi
8076 done
8077 IFS=$lt_save_ifs
8078 ;;
8079 esac
8080 else
8081 pic_mode=default
8082 fi
8083
8084
8085
8086
8087
8088
8089
8090
8091 # Check whether --enable-fast-install was given.
8092 if test "${enable_fast_install+set}" = set; then :
8093 enableval=$enable_fast_install; p=${PACKAGE-default}
8094 case $enableval in
8095 yes) enable_fast_install=yes ;;
8096 no) enable_fast_install=no ;;
8097 *)
8098 enable_fast_install=no
8099 # Look at the argument we got. We use all the common list separators.
8100 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8101 for pkg in $enableval; do
8102 IFS=$lt_save_ifs
8103 if test "X$pkg" = "X$p"; then
8104 enable_fast_install=yes
8105 fi
8106 done
8107 IFS=$lt_save_ifs
8108 ;;
8109 esac
8110 else
8111 enable_fast_install=yes
8112 fi
8113
8114
8115
8116
8117
8118
8119
8120
8121 shared_archive_member_spec=
8122 case $host,$enable_shared in
8123 power*-*-aix[5-9]*,yes)
8124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
8125 $as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
8126
8127 # Check whether --with-aix-soname was given.
8128 if test "${with_aix_soname+set}" = set; then :
8129 withval=$with_aix_soname; case $withval in
8130 aix|svr4|both)
8131 ;;
8132 *)
8133 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
8134 ;;
8135 esac
8136 lt_cv_with_aix_soname=$with_aix_soname
8137 else
8138 if ${lt_cv_with_aix_soname+:} false; then :
8139 $as_echo_n "(cached) " >&6
8140 else
8141 lt_cv_with_aix_soname=aix
8142 fi
8143
8144 with_aix_soname=$lt_cv_with_aix_soname
8145 fi
8146
8147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
8148 $as_echo "$with_aix_soname" >&6; }
8149 if test aix != "$with_aix_soname"; then
8150 # For the AIX way of multilib, we name the shared archive member
8151 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
8152 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
8153 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
8154 # the AIX toolchain works better with OBJECT_MODE set (default 32).
8155 if test 64 = "${OBJECT_MODE-32}"; then
8156 shared_archive_member_spec=shr_64
8157 else
8158 shared_archive_member_spec=shr
8159 fi
8160 fi
8161 ;;
8162 *)
8163 with_aix_soname=aix
8164 ;;
8165 esac
8166
8167
8168
8169
8170
8171
8172
8173
8174
8175
8176 # This can be used to rebuild libtool when needed
8177 LIBTOOL_DEPS=$ltmain
8178
8179 # Always use our own libtool.
8180 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8181
8182
8183
8184
8185
8186
8187
8188
8189
8190
8191
8192
8193
8194
8195
8196
8197
8198
8199
8200
8201
8202
8203
8204
8205
8206
8207
8208
8209
8210
8211 test -z "$LN_S" && LN_S="ln -s"
8212
8213
8214
8215
8216
8217
8218
8219
8220
8221
8222
8223
8224
8225
8226 if test -n "${ZSH_VERSION+set}"; then
8227 setopt NO_GLOB_SUBST
8228 fi
8229
8230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8231 $as_echo_n "checking for objdir... " >&6; }
8232 if ${lt_cv_objdir+:} false; then :
8233 $as_echo_n "(cached) " >&6
8234 else
8235 rm -f .libs 2>/dev/null
8236 mkdir .libs 2>/dev/null
8237 if test -d .libs; then
8238 lt_cv_objdir=.libs
8239 else
8240 # MS-DOS does not allow filenames that begin with a dot.
8241 lt_cv_objdir=_libs
8242 fi
8243 rmdir .libs 2>/dev/null
8244 fi
8245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8246 $as_echo "$lt_cv_objdir" >&6; }
8247 objdir=$lt_cv_objdir
8248
8249
8250
8251
8252
8253 cat >>confdefs.h <<_ACEOF
8254 #define LT_OBJDIR "$lt_cv_objdir/"
8255 _ACEOF
8256
8257
8258
8259
8260 case $host_os in
8261 aix3*)
8262 # AIX sometimes has problems with the GCC collect2 program. For some
8263 # reason, if we set the COLLECT_NAMES environment variable, the problems
8264 # vanish in a puff of smoke.
8265 if test set != "${COLLECT_NAMES+set}"; then
8266 COLLECT_NAMES=
8267 export COLLECT_NAMES
8268 fi
8269 ;;
8270 esac
8271
8272 # Global variables:
8273 ofile=libtool
8274 can_build_shared=yes
8275
8276 # All known linkers require a '.a' archive for static linking (except MSVC,
8277 # which needs '.lib').
8278 libext=a
8279
8280 with_gnu_ld=$lt_cv_prog_gnu_ld
8281
8282 old_CC=$CC
8283 old_CFLAGS=$CFLAGS
8284
8285 # Set sane defaults for various variables
8286 test -z "$CC" && CC=cc
8287 test -z "$LTCC" && LTCC=$CC
8288 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8289 test -z "$LD" && LD=ld
8290 test -z "$ac_objext" && ac_objext=o
8291
8292 func_cc_basename $compiler
8293 cc_basename=$func_cc_basename_result
8294
8295
8296 # Only perform the check for file, if the check method requires it
8297 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8298 case $deplibs_check_method in
8299 file_magic*)
8300 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8302 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8303 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8304 $as_echo_n "(cached) " >&6
8305 else
8306 case $MAGIC_CMD in
8307 [\\/*] | ?:[\\/]*)
8308 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8309 ;;
8310 *)
8311 lt_save_MAGIC_CMD=$MAGIC_CMD
8312 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8313 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8314 for ac_dir in $ac_dummy; do
8315 IFS=$lt_save_ifs
8316 test -z "$ac_dir" && ac_dir=.
8317 if test -f "$ac_dir/${ac_tool_prefix}file"; then
8318 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
8319 if test -n "$file_magic_test_file"; then
8320 case $deplibs_check_method in
8321 "file_magic "*)
8322 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8323 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8324 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8325 $EGREP "$file_magic_regex" > /dev/null; then
8326 :
8327 else
8328 cat <<_LT_EOF 1>&2
8329
8330 *** Warning: the command libtool uses to detect shared libraries,
8331 *** $file_magic_cmd, produces output that libtool cannot recognize.
8332 *** The result is that libtool may fail to recognize shared libraries
8333 *** as such. This will affect the creation of libtool libraries that
8334 *** depend on shared libraries, but programs linked with such libtool
8335 *** libraries will work regardless of this problem. Nevertheless, you
8336 *** may want to report the problem to your system manager and/or to
8337 *** bug-libtool@gnu.org
8338
8339 _LT_EOF
8340 fi ;;
8341 esac
8342 fi
8343 break
8344 fi
8345 done
8346 IFS=$lt_save_ifs
8347 MAGIC_CMD=$lt_save_MAGIC_CMD
8348 ;;
8349 esac
8350 fi
8351
8352 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8353 if test -n "$MAGIC_CMD"; then
8354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8355 $as_echo "$MAGIC_CMD" >&6; }
8356 else
8357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8358 $as_echo "no" >&6; }
8359 fi
8360
8361
8362
8363
8364
8365 if test -z "$lt_cv_path_MAGIC_CMD"; then
8366 if test -n "$ac_tool_prefix"; then
8367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8368 $as_echo_n "checking for file... " >&6; }
8369 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8370 $as_echo_n "(cached) " >&6
8371 else
8372 case $MAGIC_CMD in
8373 [\\/*] | ?:[\\/]*)
8374 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8375 ;;
8376 *)
8377 lt_save_MAGIC_CMD=$MAGIC_CMD
8378 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8379 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8380 for ac_dir in $ac_dummy; do
8381 IFS=$lt_save_ifs
8382 test -z "$ac_dir" && ac_dir=.
8383 if test -f "$ac_dir/file"; then
8384 lt_cv_path_MAGIC_CMD=$ac_dir/"file"
8385 if test -n "$file_magic_test_file"; then
8386 case $deplibs_check_method in
8387 "file_magic "*)
8388 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8389 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8390 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8391 $EGREP "$file_magic_regex" > /dev/null; then
8392 :
8393 else
8394 cat <<_LT_EOF 1>&2
8395
8396 *** Warning: the command libtool uses to detect shared libraries,
8397 *** $file_magic_cmd, produces output that libtool cannot recognize.
8398 *** The result is that libtool may fail to recognize shared libraries
8399 *** as such. This will affect the creation of libtool libraries that
8400 *** depend on shared libraries, but programs linked with such libtool
8401 *** libraries will work regardless of this problem. Nevertheless, you
8402 *** may want to report the problem to your system manager and/or to
8403 *** bug-libtool@gnu.org
8404
8405 _LT_EOF
8406 fi ;;
8407 esac
8408 fi
8409 break
8410 fi
8411 done
8412 IFS=$lt_save_ifs
8413 MAGIC_CMD=$lt_save_MAGIC_CMD
8414 ;;
8415 esac
8416 fi
8417
8418 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8419 if test -n "$MAGIC_CMD"; then
8420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8421 $as_echo "$MAGIC_CMD" >&6; }
8422 else
8423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8424 $as_echo "no" >&6; }
8425 fi
8426
8427
8428 else
8429 MAGIC_CMD=:
8430 fi
8431 fi
8432
8433 fi
8434 ;;
8435 esac
8436
8437 # Use C for the default configuration in the libtool script
8438
8439 lt_save_CC=$CC
8440 ac_ext=c
8441 ac_cpp='$CPP $CPPFLAGS'
8442 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8443 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8444 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8445
8446
8447 # Source file extension for C test sources.
8448 ac_ext=c
8449
8450 # Object file extension for compiled C test sources.
8451 objext=o
8452 objext=$objext
8453
8454 # Code to be used in simple compile tests
8455 lt_simple_compile_test_code="int some_variable = 0;"
8456
8457 # Code to be used in simple link tests
8458 lt_simple_link_test_code='int main(){return(0);}'
8459
8460
8461
8462
8463
8464
8465
8466 # If no C compiler was specified, use CC.
8467 LTCC=${LTCC-"$CC"}
8468
8469 # If no C compiler flags were specified, use CFLAGS.
8470 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8471
8472 # Allow CC to be a program name with arguments.
8473 compiler=$CC
8474
8475 # Save the default compiler, since it gets overwritten when the other
8476 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8477 compiler_DEFAULT=$CC
8478
8479 # save warnings/boilerplate of simple test code
8480 ac_outfile=conftest.$ac_objext
8481 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8482 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8483 _lt_compiler_boilerplate=`cat conftest.err`
8484 $RM conftest*
8485
8486 ac_outfile=conftest.$ac_objext
8487 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8488 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8489 _lt_linker_boilerplate=`cat conftest.err`
8490 $RM -r conftest*
8491
8492
8493 ## CAVEAT EMPTOR:
8494 ## There is no encapsulation within the following macros, do not change
8495 ## the running order or otherwise move them around unless you know exactly
8496 ## what you are doing...
8497 if test -n "$compiler"; then
8498
8499 lt_prog_compiler_no_builtin_flag=
8500
8501 if test yes = "$GCC"; then
8502 case $cc_basename in
8503 nvcc*)
8504 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8505 *)
8506 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8507 esac
8508
8509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8510 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8511 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8512 $as_echo_n "(cached) " >&6
8513 else
8514 lt_cv_prog_compiler_rtti_exceptions=no
8515 ac_outfile=conftest.$ac_objext
8516 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8517 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
8518 # Insert the option either (1) after the last *FLAGS variable, or
8519 # (2) before a word containing "conftest.", or (3) at the end.
8520 # Note that $ac_compile itself does not contain backslashes and begins
8521 # with a dollar sign (not a hyphen), so the echo should work correctly.
8522 # The option is referenced via a variable to avoid confusing sed.
8523 lt_compile=`echo "$ac_compile" | $SED \
8524 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8525 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8526 -e 's:$: $lt_compiler_flag:'`
8527 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8528 (eval "$lt_compile" 2>conftest.err)
8529 ac_status=$?
8530 cat conftest.err >&5
8531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8532 if (exit $ac_status) && test -s "$ac_outfile"; then
8533 # The compiler can only warn and ignore the option if not recognized
8534 # So say no if there are warnings other than the usual output.
8535 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8536 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8537 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8538 lt_cv_prog_compiler_rtti_exceptions=yes
8539 fi
8540 fi
8541 $RM conftest*
8542
8543 fi
8544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8545 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8546
8547 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
8548 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8549 else
8550 :
8551 fi
8552
8553 fi
8554
8555
8556
8557
8558
8559
8560 lt_prog_compiler_wl=
8561 lt_prog_compiler_pic=
8562 lt_prog_compiler_static=
8563
8564
8565 if test yes = "$GCC"; then
8566 lt_prog_compiler_wl='-Wl,'
8567 lt_prog_compiler_static='-static'
8568
8569 case $host_os in
8570 aix*)
8571 # All AIX code is PIC.
8572 if test ia64 = "$host_cpu"; then
8573 # AIX 5 now supports IA64 processor
8574 lt_prog_compiler_static='-Bstatic'
8575 fi
8576 lt_prog_compiler_pic='-fPIC'
8577 ;;
8578
8579 amigaos*)
8580 case $host_cpu in
8581 powerpc)
8582 # see comment about AmigaOS4 .so support
8583 lt_prog_compiler_pic='-fPIC'
8584 ;;
8585 m68k)
8586 # FIXME: we need at least 68020 code to build shared libraries, but
8587 # adding the '-m68020' flag to GCC prevents building anything better,
8588 # like '-m68040'.
8589 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8590 ;;
8591 esac
8592 ;;
8593
8594 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8595 # PIC is the default for these OSes.
8596 ;;
8597
8598 mingw* | cygwin* | pw32* | os2* | cegcc*)
8599 # This hack is so that the source file can tell whether it is being
8600 # built for inclusion in a dll (and should export symbols for example).
8601 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8602 # (--disable-auto-import) libraries
8603 lt_prog_compiler_pic='-DDLL_EXPORT'
8604 case $host_os in
8605 os2*)
8606 lt_prog_compiler_static='$wl-static'
8607 ;;
8608 esac
8609 ;;
8610
8611 darwin* | rhapsody*)
8612 # PIC is the default on this platform
8613 # Common symbols not allowed in MH_DYLIB files
8614 lt_prog_compiler_pic='-fno-common'
8615 ;;
8616
8617 haiku*)
8618 # PIC is the default for Haiku.
8619 # The "-static" flag exists, but is broken.
8620 lt_prog_compiler_static=
8621 ;;
8622
8623 hpux*)
8624 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8625 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8626 # sets the default TLS model and affects inlining.
8627 case $host_cpu in
8628 hppa*64*)
8629 # +Z the default
8630 ;;
8631 *)
8632 lt_prog_compiler_pic='-fPIC'
8633 ;;
8634 esac
8635 ;;
8636
8637 interix[3-9]*)
8638 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8639 # Instead, we relocate shared libraries at runtime.
8640 ;;
8641
8642 msdosdjgpp*)
8643 # Just because we use GCC doesn't mean we suddenly get shared libraries
8644 # on systems that don't support them.
8645 lt_prog_compiler_can_build_shared=no
8646 enable_shared=no
8647 ;;
8648
8649 *nto* | *qnx*)
8650 # QNX uses GNU C++, but need to define -shared option too, otherwise
8651 # it will coredump.
8652 lt_prog_compiler_pic='-fPIC -shared'
8653 ;;
8654
8655 sysv4*MP*)
8656 if test -d /usr/nec; then
8657 lt_prog_compiler_pic=-Kconform_pic
8658 fi
8659 ;;
8660
8661 *)
8662 lt_prog_compiler_pic='-fPIC'
8663 ;;
8664 esac
8665
8666 case $cc_basename in
8667 nvcc*) # Cuda Compiler Driver 2.2
8668 lt_prog_compiler_wl='-Xlinker '
8669 if test -n "$lt_prog_compiler_pic"; then
8670 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8671 fi
8672 ;;
8673 esac
8674 else
8675 # PORTME Check for flag to pass linker flags through the system compiler.
8676 case $host_os in
8677 aix*)
8678 lt_prog_compiler_wl='-Wl,'
8679 if test ia64 = "$host_cpu"; then
8680 # AIX 5 now supports IA64 processor
8681 lt_prog_compiler_static='-Bstatic'
8682 else
8683 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8684 fi
8685 ;;
8686
8687 darwin* | rhapsody*)
8688 # PIC is the default on this platform
8689 # Common symbols not allowed in MH_DYLIB files
8690 lt_prog_compiler_pic='-fno-common'
8691 case $cc_basename in
8692 nagfor*)
8693 # NAG Fortran compiler
8694 lt_prog_compiler_wl='-Wl,-Wl,,'
8695 lt_prog_compiler_pic='-PIC'
8696 lt_prog_compiler_static='-Bstatic'
8697 ;;
8698 esac
8699 ;;
8700
8701 mingw* | cygwin* | pw32* | os2* | cegcc*)
8702 # This hack is so that the source file can tell whether it is being
8703 # built for inclusion in a dll (and should export symbols for example).
8704 lt_prog_compiler_pic='-DDLL_EXPORT'
8705 case $host_os in
8706 os2*)
8707 lt_prog_compiler_static='$wl-static'
8708 ;;
8709 esac
8710 ;;
8711
8712 hpux9* | hpux10* | hpux11*)
8713 lt_prog_compiler_wl='-Wl,'
8714 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8715 # not for PA HP-UX.
8716 case $host_cpu in
8717 hppa*64*|ia64*)
8718 # +Z the default
8719 ;;
8720 *)
8721 lt_prog_compiler_pic='+Z'
8722 ;;
8723 esac
8724 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8725 lt_prog_compiler_static='$wl-a ${wl}archive'
8726 ;;
8727
8728 irix5* | irix6* | nonstopux*)
8729 lt_prog_compiler_wl='-Wl,'
8730 # PIC (with -KPIC) is the default.
8731 lt_prog_compiler_static='-non_shared'
8732 ;;
8733
8734 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
8735 case $cc_basename in
8736 # old Intel for x86_64, which still supported -KPIC.
8737 ecc*)
8738 lt_prog_compiler_wl='-Wl,'
8739 lt_prog_compiler_pic='-KPIC'
8740 lt_prog_compiler_static='-static'
8741 ;;
8742 # icc used to be incompatible with GCC.
8743 # ICC 10 doesn't accept -KPIC any more.
8744 icc* | ifort*)
8745 lt_prog_compiler_wl='-Wl,'
8746 lt_prog_compiler_pic='-fPIC'
8747 lt_prog_compiler_static='-static'
8748 ;;
8749 # Lahey Fortran 8.1.
8750 lf95*)
8751 lt_prog_compiler_wl='-Wl,'
8752 lt_prog_compiler_pic='--shared'
8753 lt_prog_compiler_static='--static'
8754 ;;
8755 nagfor*)
8756 # NAG Fortran compiler
8757 lt_prog_compiler_wl='-Wl,-Wl,,'
8758 lt_prog_compiler_pic='-PIC'
8759 lt_prog_compiler_static='-Bstatic'
8760 ;;
8761 tcc*)
8762 # Fabrice Bellard et al's Tiny C Compiler
8763 lt_prog_compiler_wl='-Wl,'
8764 lt_prog_compiler_pic='-fPIC'
8765 lt_prog_compiler_static='-static'
8766 ;;
8767 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8768 # Portland Group compilers (*not* the Pentium gcc compiler,
8769 # which looks to be a dead project)
8770 lt_prog_compiler_wl='-Wl,'
8771 lt_prog_compiler_pic='-fpic'
8772 lt_prog_compiler_static='-Bstatic'
8773 ;;
8774 ccc*)
8775 lt_prog_compiler_wl='-Wl,'
8776 # All Alpha code is PIC.
8777 lt_prog_compiler_static='-non_shared'
8778 ;;
8779 xl* | bgxl* | bgf* | mpixl*)
8780 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8781 lt_prog_compiler_wl='-Wl,'
8782 lt_prog_compiler_pic='-qpic'
8783 lt_prog_compiler_static='-qstaticlink'
8784 ;;
8785 *)
8786 case `$CC -V 2>&1 | sed 5q` in
8787 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8788 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8789 lt_prog_compiler_pic='-KPIC'
8790 lt_prog_compiler_static='-Bstatic'
8791 lt_prog_compiler_wl=''
8792 ;;
8793 *Sun\ F* | *Sun*Fortran*)
8794 lt_prog_compiler_pic='-KPIC'
8795 lt_prog_compiler_static='-Bstatic'
8796 lt_prog_compiler_wl='-Qoption ld '
8797 ;;
8798 *Sun\ C*)
8799 # Sun C 5.9
8800 lt_prog_compiler_pic='-KPIC'
8801 lt_prog_compiler_static='-Bstatic'
8802 lt_prog_compiler_wl='-Wl,'
8803 ;;
8804 *Intel*\ [CF]*Compiler*)
8805 lt_prog_compiler_wl='-Wl,'
8806 lt_prog_compiler_pic='-fPIC'
8807 lt_prog_compiler_static='-static'
8808 ;;
8809 *Portland\ Group*)
8810 lt_prog_compiler_wl='-Wl,'
8811 lt_prog_compiler_pic='-fpic'
8812 lt_prog_compiler_static='-Bstatic'
8813 ;;
8814 esac
8815 ;;
8816 esac
8817 ;;
8818
8819 newsos6)
8820 lt_prog_compiler_pic='-KPIC'
8821 lt_prog_compiler_static='-Bstatic'
8822 ;;
8823
8824 *nto* | *qnx*)
8825 # QNX uses GNU C++, but need to define -shared option too, otherwise
8826 # it will coredump.
8827 lt_prog_compiler_pic='-fPIC -shared'
8828 ;;
8829
8830 osf3* | osf4* | osf5*)
8831 lt_prog_compiler_wl='-Wl,'
8832 # All OSF/1 code is PIC.
8833 lt_prog_compiler_static='-non_shared'
8834 ;;
8835
8836 rdos*)
8837 lt_prog_compiler_static='-non_shared'
8838 ;;
8839
8840 solaris*)
8841 lt_prog_compiler_pic='-KPIC'
8842 lt_prog_compiler_static='-Bstatic'
8843 case $cc_basename in
8844 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8845 lt_prog_compiler_wl='-Qoption ld ';;
8846 *)
8847 lt_prog_compiler_wl='-Wl,';;
8848 esac
8849 ;;
8850
8851 sunos4*)
8852 lt_prog_compiler_wl='-Qoption ld '
8853 lt_prog_compiler_pic='-PIC'
8854 lt_prog_compiler_static='-Bstatic'
8855 ;;
8856
8857 sysv4 | sysv4.2uw2* | sysv4.3*)
8858 lt_prog_compiler_wl='-Wl,'
8859 lt_prog_compiler_pic='-KPIC'
8860 lt_prog_compiler_static='-Bstatic'
8861 ;;
8862
8863 sysv4*MP*)
8864 if test -d /usr/nec; then
8865 lt_prog_compiler_pic='-Kconform_pic'
8866 lt_prog_compiler_static='-Bstatic'
8867 fi
8868 ;;
8869
8870 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8871 lt_prog_compiler_wl='-Wl,'
8872 lt_prog_compiler_pic='-KPIC'
8873 lt_prog_compiler_static='-Bstatic'
8874 ;;
8875
8876 unicos*)
8877 lt_prog_compiler_wl='-Wl,'
8878 lt_prog_compiler_can_build_shared=no
8879 ;;
8880
8881 uts4*)
8882 lt_prog_compiler_pic='-pic'
8883 lt_prog_compiler_static='-Bstatic'
8884 ;;
8885
8886 *)
8887 lt_prog_compiler_can_build_shared=no
8888 ;;
8889 esac
8890 fi
8891
8892 case $host_os in
8893 # For platforms that do not support PIC, -DPIC is meaningless:
8894 *djgpp*)
8895 lt_prog_compiler_pic=
8896 ;;
8897 *)
8898 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8899 ;;
8900 esac
8901
8902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8903 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8904 if ${lt_cv_prog_compiler_pic+:} false; then :
8905 $as_echo_n "(cached) " >&6
8906 else
8907 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8908 fi
8909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8910 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
8911 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8912
8913 #
8914 # Check to make sure the PIC flag actually works.
8915 #
8916 if test -n "$lt_prog_compiler_pic"; then
8917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8918 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8919 if ${lt_cv_prog_compiler_pic_works+:} false; then :
8920 $as_echo_n "(cached) " >&6
8921 else
8922 lt_cv_prog_compiler_pic_works=no
8923 ac_outfile=conftest.$ac_objext
8924 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8925 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
8926 # Insert the option either (1) after the last *FLAGS variable, or
8927 # (2) before a word containing "conftest.", or (3) at the end.
8928 # Note that $ac_compile itself does not contain backslashes and begins
8929 # with a dollar sign (not a hyphen), so the echo should work correctly.
8930 # The option is referenced via a variable to avoid confusing sed.
8931 lt_compile=`echo "$ac_compile" | $SED \
8932 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8933 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8934 -e 's:$: $lt_compiler_flag:'`
8935 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8936 (eval "$lt_compile" 2>conftest.err)
8937 ac_status=$?
8938 cat conftest.err >&5
8939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8940 if (exit $ac_status) && test -s "$ac_outfile"; then
8941 # The compiler can only warn and ignore the option if not recognized
8942 # So say no if there are warnings other than the usual output.
8943 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8944 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8945 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8946 lt_cv_prog_compiler_pic_works=yes
8947 fi
8948 fi
8949 $RM conftest*
8950
8951 fi
8952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8953 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8954
8955 if test yes = "$lt_cv_prog_compiler_pic_works"; then
8956 case $lt_prog_compiler_pic in
8957 "" | " "*) ;;
8958 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8959 esac
8960 else
8961 lt_prog_compiler_pic=
8962 lt_prog_compiler_can_build_shared=no
8963 fi
8964
8965 fi
8966
8967
8968
8969
8970
8971
8972
8973
8974
8975
8976
8977 #
8978 # Check to make sure the static flag actually works.
8979 #
8980 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8982 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8983 if ${lt_cv_prog_compiler_static_works+:} false; then :
8984 $as_echo_n "(cached) " >&6
8985 else
8986 lt_cv_prog_compiler_static_works=no
8987 save_LDFLAGS=$LDFLAGS
8988 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8989 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8990 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8991 # The linker can only warn and ignore the option if not recognized
8992 # So say no if there are warnings
8993 if test -s conftest.err; then
8994 # Append any errors to the config.log.
8995 cat conftest.err 1>&5
8996 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8997 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8998 if diff conftest.exp conftest.er2 >/dev/null; then
8999 lt_cv_prog_compiler_static_works=yes
9000 fi
9001 else
9002 lt_cv_prog_compiler_static_works=yes
9003 fi
9004 fi
9005 $RM -r conftest*
9006 LDFLAGS=$save_LDFLAGS
9007
9008 fi
9009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9010 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9011
9012 if test yes = "$lt_cv_prog_compiler_static_works"; then
9013 :
9014 else
9015 lt_prog_compiler_static=
9016 fi
9017
9018
9019
9020
9021
9022
9023
9024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9025 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9026 if ${lt_cv_prog_compiler_c_o+:} false; then :
9027 $as_echo_n "(cached) " >&6
9028 else
9029 lt_cv_prog_compiler_c_o=no
9030 $RM -r conftest 2>/dev/null
9031 mkdir conftest
9032 cd conftest
9033 mkdir out
9034 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9035
9036 lt_compiler_flag="-o out/conftest2.$ac_objext"
9037 # Insert the option either (1) after the last *FLAGS variable, or
9038 # (2) before a word containing "conftest.", or (3) at the end.
9039 # Note that $ac_compile itself does not contain backslashes and begins
9040 # with a dollar sign (not a hyphen), so the echo should work correctly.
9041 lt_compile=`echo "$ac_compile" | $SED \
9042 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9043 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9044 -e 's:$: $lt_compiler_flag:'`
9045 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9046 (eval "$lt_compile" 2>out/conftest.err)
9047 ac_status=$?
9048 cat out/conftest.err >&5
9049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9050 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9051 then
9052 # The compiler can only warn and ignore the option if not recognized
9053 # So say no if there are warnings
9054 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9055 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9056 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9057 lt_cv_prog_compiler_c_o=yes
9058 fi
9059 fi
9060 chmod u+w . 2>&5
9061 $RM conftest*
9062 # SGI C++ compiler will create directory out/ii_files/ for
9063 # template instantiation
9064 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9065 $RM out/* && rmdir out
9066 cd ..
9067 $RM -r conftest
9068 $RM conftest*
9069
9070 fi
9071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9072 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
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 hard_links=nottested
9133 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
9134 # do not overwrite the value of need_locks provided by the user
9135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9136 $as_echo_n "checking if we can lock with hard links... " >&6; }
9137 hard_links=yes
9138 $RM conftest*
9139 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9140 touch conftest.a
9141 ln conftest.a conftest.b 2>&5 || hard_links=no
9142 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9144 $as_echo "$hard_links" >&6; }
9145 if test no = "$hard_links"; then
9146 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
9147 $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
9148 need_locks=warn
9149 fi
9150 else
9151 need_locks=no
9152 fi
9153
9154
9155
9156
9157
9158
9159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9160 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9161
9162 runpath_var=
9163 allow_undefined_flag=
9164 always_export_symbols=no
9165 archive_cmds=
9166 archive_expsym_cmds=
9167 compiler_needs_object=no
9168 enable_shared_with_static_runtimes=no
9169 export_dynamic_flag_spec=
9170 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9171 hardcode_automatic=no
9172 hardcode_direct=no
9173 hardcode_direct_absolute=no
9174 hardcode_libdir_flag_spec=
9175 hardcode_libdir_separator=
9176 hardcode_minus_L=no
9177 hardcode_shlibpath_var=unsupported
9178 inherit_rpath=no
9179 link_all_deplibs=unknown
9180 module_cmds=
9181 module_expsym_cmds=
9182 old_archive_from_new_cmds=
9183 old_archive_from_expsyms_cmds=
9184 thread_safe_flag_spec=
9185 whole_archive_flag_spec=
9186 # include_expsyms should be a list of space-separated symbols to be *always*
9187 # included in the symbol list
9188 include_expsyms=
9189 # exclude_expsyms can be an extended regexp of symbols to exclude
9190 # it will be wrapped by ' (' and ')$', so one must not match beginning or
9191 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
9192 # as well as any symbol that contains 'd'.
9193 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9194 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9195 # platforms (ab)use it in PIC code, but their linkers get confused if
9196 # the symbol is explicitly referenced. Since portable code cannot
9197 # rely on this symbol name, it's probably fine to never include it in
9198 # preloaded symbol tables.
9199 # Exclude shared library initialization/finalization symbols.
9200 extract_expsyms_cmds=
9201
9202 case $host_os in
9203 cygwin* | mingw* | pw32* | cegcc*)
9204 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9205 # When not using gcc, we currently assume that we are using
9206 # Microsoft Visual C++.
9207 if test yes != "$GCC"; then
9208 with_gnu_ld=no
9209 fi
9210 ;;
9211 interix*)
9212 # we just hope/assume this is gcc and not c89 (= MSVC++)
9213 with_gnu_ld=yes
9214 ;;
9215 openbsd* | bitrig*)
9216 with_gnu_ld=no
9217 ;;
9218 linux* | k*bsd*-gnu | gnu*)
9219 link_all_deplibs=no
9220 ;;
9221 esac
9222
9223 ld_shlibs=yes
9224
9225 # On some targets, GNU ld is compatible enough with the native linker
9226 # that we're better off using the native interface for both.
9227 lt_use_gnu_ld_interface=no
9228 if test yes = "$with_gnu_ld"; then
9229 case $host_os in
9230 aix*)
9231 # The AIX port of GNU ld has always aspired to compatibility
9232 # with the native linker. However, as the warning in the GNU ld
9233 # block says, versions before 2.19.5* couldn't really create working
9234 # shared libraries, regardless of the interface used.
9235 case `$LD -v 2>&1` in
9236 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9237 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9238 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9239 *)
9240 lt_use_gnu_ld_interface=yes
9241 ;;
9242 esac
9243 ;;
9244 *)
9245 lt_use_gnu_ld_interface=yes
9246 ;;
9247 esac
9248 fi
9249
9250 if test yes = "$lt_use_gnu_ld_interface"; then
9251 # If archive_cmds runs LD, not CC, wlarc should be empty
9252 wlarc='$wl'
9253
9254 # Set some defaults for GNU ld with shared library support. These
9255 # are reset later if shared libraries are not supported. Putting them
9256 # here allows them to be overridden if necessary.
9257 runpath_var=LD_RUN_PATH
9258 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9259 export_dynamic_flag_spec='$wl--export-dynamic'
9260 # ancient GNU ld didn't support --whole-archive et. al.
9261 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9262 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
9263 else
9264 whole_archive_flag_spec=
9265 fi
9266 supports_anon_versioning=no
9267 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
9268 *GNU\ gold*) supports_anon_versioning=yes ;;
9269 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9270 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9271 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9272 *\ 2.11.*) ;; # other 2.11 versions
9273 *) supports_anon_versioning=yes ;;
9274 esac
9275
9276 # See if GNU ld supports shared libraries.
9277 case $host_os in
9278 aix[3-9]*)
9279 # On AIX/PPC, the GNU linker is very broken
9280 if test ia64 != "$host_cpu"; then
9281 ld_shlibs=no
9282 cat <<_LT_EOF 1>&2
9283
9284 *** Warning: the GNU linker, at least up to release 2.19, is reported
9285 *** to be unable to reliably create shared libraries on AIX.
9286 *** Therefore, libtool is disabling shared libraries support. If you
9287 *** really care for shared libraries, you may want to install binutils
9288 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9289 *** You will then need to restart the configuration process.
9290
9291 _LT_EOF
9292 fi
9293 ;;
9294
9295 amigaos*)
9296 case $host_cpu in
9297 powerpc)
9298 # see comment about AmigaOS4 .so support
9299 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9300 archive_expsym_cmds=''
9301 ;;
9302 m68k)
9303 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)'
9304 hardcode_libdir_flag_spec='-L$libdir'
9305 hardcode_minus_L=yes
9306 ;;
9307 esac
9308 ;;
9309
9310 beos*)
9311 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9312 allow_undefined_flag=unsupported
9313 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9314 # support --undefined. This deserves some investigation. FIXME
9315 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9316 else
9317 ld_shlibs=no
9318 fi
9319 ;;
9320
9321 cygwin* | mingw* | pw32* | cegcc*)
9322 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9323 # as there is no search path for DLLs.
9324 hardcode_libdir_flag_spec='-L$libdir'
9325 export_dynamic_flag_spec='$wl--export-all-symbols'
9326 allow_undefined_flag=unsupported
9327 always_export_symbols=no
9328 enable_shared_with_static_runtimes=yes
9329 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'
9330 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9331
9332 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9333 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9334 # If the export-symbols file already is a .def file, use it as
9335 # is; otherwise, prepend EXPORTS...
9336 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
9337 cp $export_symbols $output_objdir/$soname.def;
9338 else
9339 echo EXPORTS > $output_objdir/$soname.def;
9340 cat $export_symbols >> $output_objdir/$soname.def;
9341 fi~
9342 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9343 else
9344 ld_shlibs=no
9345 fi
9346 ;;
9347
9348 haiku*)
9349 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9350 link_all_deplibs=yes
9351 ;;
9352
9353 os2*)
9354 hardcode_libdir_flag_spec='-L$libdir'
9355 hardcode_minus_L=yes
9356 allow_undefined_flag=unsupported
9357 shrext_cmds=.dll
9358 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9359 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9360 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9361 $ECHO EXPORTS >> $output_objdir/$libname.def~
9362 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
9363 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9364 emximp -o $lib $output_objdir/$libname.def'
9365 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9366 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9367 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9368 $ECHO EXPORTS >> $output_objdir/$libname.def~
9369 prefix_cmds="$SED"~
9370 if test EXPORTS = "`$SED 1q $export_symbols`"; then
9371 prefix_cmds="$prefix_cmds -e 1d";
9372 fi~
9373 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
9374 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
9375 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9376 emximp -o $lib $output_objdir/$libname.def'
9377 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
9378 enable_shared_with_static_runtimes=yes
9379 ;;
9380
9381 interix[3-9]*)
9382 hardcode_direct=no
9383 hardcode_shlibpath_var=no
9384 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
9385 export_dynamic_flag_spec='$wl-E'
9386 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9387 # Instead, shared libraries are loaded at an image base (0x10000000 by
9388 # default) and relocated if they conflict, which is a slow very memory
9389 # consuming and fragmenting process. To avoid this, we pick a random,
9390 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9391 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9392 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9393 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'
9394 ;;
9395
9396 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9397 tmp_diet=no
9398 if test linux-dietlibc = "$host_os"; then
9399 case $cc_basename in
9400 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9401 esac
9402 fi
9403 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9404 && test no = "$tmp_diet"
9405 then
9406 tmp_addflag=' $pic_flag'
9407 tmp_sharedflag='-shared'
9408 case $cc_basename,$host_cpu in
9409 pgcc*) # Portland Group C compiler
9410 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'
9411 tmp_addflag=' $pic_flag'
9412 ;;
9413 pgf77* | pgf90* | pgf95* | pgfortran*)
9414 # Portland Group f77 and f90 compilers
9415 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'
9416 tmp_addflag=' $pic_flag -Mnomain' ;;
9417 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9418 tmp_addflag=' -i_dynamic' ;;
9419 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9420 tmp_addflag=' -i_dynamic -nofor_main' ;;
9421 ifc* | ifort*) # Intel Fortran compiler
9422 tmp_addflag=' -nofor_main' ;;
9423 lf95*) # Lahey Fortran 8.1
9424 whole_archive_flag_spec=
9425 tmp_sharedflag='--shared' ;;
9426 nagfor*) # NAGFOR 5.3
9427 tmp_sharedflag='-Wl,-shared' ;;
9428 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9429 tmp_sharedflag='-qmkshrobj'
9430 tmp_addflag= ;;
9431 nvcc*) # Cuda Compiler Driver 2.2
9432 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'
9433 compiler_needs_object=yes
9434 ;;
9435 esac
9436 case `$CC -V 2>&1 | sed 5q` in
9437 *Sun\ C*) # Sun C 5.9
9438 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'
9439 compiler_needs_object=yes
9440 tmp_sharedflag='-G' ;;
9441 *Sun\ F*) # Sun Fortran 8.3
9442 tmp_sharedflag='-G' ;;
9443 esac
9444 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9445
9446 if test yes = "$supports_anon_versioning"; then
9447 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9448 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9449 echo "local: *; };" >> $output_objdir/$libname.ver~
9450 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
9451 fi
9452
9453 case $cc_basename in
9454 tcc*)
9455 export_dynamic_flag_spec='-rdynamic'
9456 ;;
9457 xlf* | bgf* | bgxlf* | mpixlf*)
9458 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9459 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9460 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9461 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9462 if test yes = "$supports_anon_versioning"; then
9463 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9464 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9465 echo "local: *; };" >> $output_objdir/$libname.ver~
9466 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9467 fi
9468 ;;
9469 esac
9470 else
9471 ld_shlibs=no
9472 fi
9473 ;;
9474
9475 netbsd* | netbsdelf*-gnu)
9476 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9477 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9478 wlarc=
9479 else
9480 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9481 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9482 fi
9483 ;;
9484
9485 solaris*)
9486 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9487 ld_shlibs=no
9488 cat <<_LT_EOF 1>&2
9489
9490 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9491 *** create shared libraries on Solaris systems. Therefore, libtool
9492 *** is disabling shared libraries support. We urge you to upgrade GNU
9493 *** binutils to release 2.9.1 or newer. Another option is to modify
9494 *** your PATH or compiler configuration so that the native linker is
9495 *** used, and then restart.
9496
9497 _LT_EOF
9498 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9499 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9500 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9501 else
9502 ld_shlibs=no
9503 fi
9504 ;;
9505
9506 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9507 case `$LD -v 2>&1` in
9508 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9509 ld_shlibs=no
9510 cat <<_LT_EOF 1>&2
9511
9512 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
9513 *** reliably create shared libraries on SCO systems. Therefore, libtool
9514 *** is disabling shared libraries support. We urge you to upgrade GNU
9515 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9516 *** your PATH or compiler configuration so that the native linker is
9517 *** used, and then restart.
9518
9519 _LT_EOF
9520 ;;
9521 *)
9522 # For security reasons, it is highly recommended that you always
9523 # use absolute paths for naming shared libraries, and exclude the
9524 # DT_RUNPATH tag from executables and libraries. But doing so
9525 # requires that you compile everything twice, which is a pain.
9526 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9527 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9528 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9529 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9530 else
9531 ld_shlibs=no
9532 fi
9533 ;;
9534 esac
9535 ;;
9536
9537 sunos4*)
9538 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9539 wlarc=
9540 hardcode_direct=yes
9541 hardcode_shlibpath_var=no
9542 ;;
9543
9544 *)
9545 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9546 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9547 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9548 else
9549 ld_shlibs=no
9550 fi
9551 ;;
9552 esac
9553
9554 if test no = "$ld_shlibs"; then
9555 runpath_var=
9556 hardcode_libdir_flag_spec=
9557 export_dynamic_flag_spec=
9558 whole_archive_flag_spec=
9559 fi
9560 else
9561 # PORTME fill in a description of your system's linker (not GNU ld)
9562 case $host_os in
9563 aix3*)
9564 allow_undefined_flag=unsupported
9565 always_export_symbols=yes
9566 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'
9567 # Note: this linker hardcodes the directories in LIBPATH if there
9568 # are no directories specified by -L.
9569 hardcode_minus_L=yes
9570 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
9571 # Neither direct hardcoding nor static linking is supported with a
9572 # broken collect2.
9573 hardcode_direct=unsupported
9574 fi
9575 ;;
9576
9577 aix[4-9]*)
9578 if test ia64 = "$host_cpu"; then
9579 # On IA64, the linker does run time linking by default, so we don't
9580 # have to do anything special.
9581 aix_use_runtimelinking=no
9582 exp_sym_flag='-Bexport'
9583 no_entry_flag=
9584 else
9585 # If we're using GNU nm, then we don't want the "-C" option.
9586 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
9587 # Without the "-l" option, or with the "-B" option, AIX nm treats
9588 # weak defined symbols like other global defined symbols, whereas
9589 # GNU nm marks them as "W".
9590 # While the 'weak' keyword is ignored in the Export File, we need
9591 # it in the Import File for the 'aix-soname' feature, so we have
9592 # to replace the "-B" option with "-P" for AIX nm.
9593 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9594 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'
9595 else
9596 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'
9597 fi
9598 aix_use_runtimelinking=no
9599
9600 # Test if we are trying to use run time linking or normal
9601 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9602 # have runtime linking enabled, and use it for executables.
9603 # For shared libraries, we enable/disable runtime linking
9604 # depending on the kind of the shared library created -
9605 # when "with_aix_soname,aix_use_runtimelinking" is:
9606 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
9607 # "aix,yes" lib.so shared, rtl:yes, for executables
9608 # lib.a static archive
9609 # "both,no" lib.so.V(shr.o) shared, rtl:yes
9610 # lib.a(lib.so.V) shared, rtl:no, for executables
9611 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
9612 # lib.a(lib.so.V) shared, rtl:no
9613 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
9614 # lib.a static archive
9615 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9616 for ld_flag in $LDFLAGS; do
9617 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
9618 aix_use_runtimelinking=yes
9619 break
9620 fi
9621 done
9622 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
9623 # With aix-soname=svr4, we create the lib.so.V shared archives only,
9624 # so we don't have lib.a shared libs to link our executables.
9625 # We have to force runtime linking in this case.
9626 aix_use_runtimelinking=yes
9627 LDFLAGS="$LDFLAGS -Wl,-brtl"
9628 fi
9629 ;;
9630 esac
9631
9632 exp_sym_flag='-bexport'
9633 no_entry_flag='-bnoentry'
9634 fi
9635
9636 # When large executables or shared objects are built, AIX ld can
9637 # have problems creating the table of contents. If linking a library
9638 # or program results in "error TOC overflow" add -mminimal-toc to
9639 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9640 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9641
9642 archive_cmds=''
9643 hardcode_direct=yes
9644 hardcode_direct_absolute=yes
9645 hardcode_libdir_separator=':'
9646 link_all_deplibs=yes
9647 file_list_spec='$wl-f,'
9648 case $with_aix_soname,$aix_use_runtimelinking in
9649 aix,*) ;; # traditional, no import file
9650 svr4,* | *,yes) # use import file
9651 # The Import File defines what to hardcode.
9652 hardcode_direct=no
9653 hardcode_direct_absolute=no
9654 ;;
9655 esac
9656
9657 if test yes = "$GCC"; then
9658 case $host_os in aix4.[012]|aix4.[012].*)
9659 # We only want to do this on AIX 4.2 and lower, the check
9660 # below for broken collect2 doesn't work under 4.3+
9661 collect2name=`$CC -print-prog-name=collect2`
9662 if test -f "$collect2name" &&
9663 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9664 then
9665 # We have reworked collect2
9666 :
9667 else
9668 # We have old collect2
9669 hardcode_direct=unsupported
9670 # It fails to find uninstalled libraries when the uninstalled
9671 # path is not listed in the libpath. Setting hardcode_minus_L
9672 # to unsupported forces relinking
9673 hardcode_minus_L=yes
9674 hardcode_libdir_flag_spec='-L$libdir'
9675 hardcode_libdir_separator=
9676 fi
9677 ;;
9678 esac
9679 shared_flag='-shared'
9680 if test yes = "$aix_use_runtimelinking"; then
9681 shared_flag="$shared_flag "'$wl-G'
9682 fi
9683 # Need to ensure runtime linking is disabled for the traditional
9684 # shared library, or the linker may eventually find shared libraries
9685 # /with/ Import File - we do not want to mix them.
9686 shared_flag_aix='-shared'
9687 shared_flag_svr4='-shared $wl-G'
9688 else
9689 # not using gcc
9690 if test ia64 = "$host_cpu"; then
9691 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9692 # chokes on -Wl,-G. The following line is correct:
9693 shared_flag='-G'
9694 else
9695 if test yes = "$aix_use_runtimelinking"; then
9696 shared_flag='$wl-G'
9697 else
9698 shared_flag='$wl-bM:SRE'
9699 fi
9700 shared_flag_aix='$wl-bM:SRE'
9701 shared_flag_svr4='$wl-G'
9702 fi
9703 fi
9704
9705 export_dynamic_flag_spec='$wl-bexpall'
9706 # It seems that -bexpall does not export symbols beginning with
9707 # underscore (_), so it is better to generate a list of symbols to export.
9708 always_export_symbols=yes
9709 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
9710 # Warning - without using the other runtime loading flags (-brtl),
9711 # -berok will link without error, but may produce a broken library.
9712 allow_undefined_flag='-berok'
9713 # Determine the default libpath from the value encoded in an
9714 # empty executable.
9715 if test set = "${lt_cv_aix_libpath+set}"; then
9716 aix_libpath=$lt_cv_aix_libpath
9717 else
9718 if ${lt_cv_aix_libpath_+:} false; then :
9719 $as_echo_n "(cached) " >&6
9720 else
9721 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9722 /* end confdefs.h. */
9723
9724 int
9725 main ()
9726 {
9727
9728 ;
9729 return 0;
9730 }
9731 _ACEOF
9732 if ac_fn_c_try_link "$LINENO"; then :
9733
9734 lt_aix_libpath_sed='
9735 /Import File Strings/,/^$/ {
9736 /^0/ {
9737 s/^0 *\([^ ]*\) *$/\1/
9738 p
9739 }
9740 }'
9741 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9742 # Check for a 64-bit object if we didn't find anything.
9743 if test -z "$lt_cv_aix_libpath_"; then
9744 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9745 fi
9746 fi
9747 rm -f core conftest.err conftest.$ac_objext \
9748 conftest$ac_exeext conftest.$ac_ext
9749 if test -z "$lt_cv_aix_libpath_"; then
9750 lt_cv_aix_libpath_=/usr/lib:/lib
9751 fi
9752
9753 fi
9754
9755 aix_libpath=$lt_cv_aix_libpath_
9756 fi
9757
9758 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
9759 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
9760 else
9761 if test ia64 = "$host_cpu"; then
9762 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
9763 allow_undefined_flag="-z nodefs"
9764 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"
9765 else
9766 # Determine the default libpath from the value encoded in an
9767 # empty executable.
9768 if test set = "${lt_cv_aix_libpath+set}"; then
9769 aix_libpath=$lt_cv_aix_libpath
9770 else
9771 if ${lt_cv_aix_libpath_+:} false; then :
9772 $as_echo_n "(cached) " >&6
9773 else
9774 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9775 /* end confdefs.h. */
9776
9777 int
9778 main ()
9779 {
9780
9781 ;
9782 return 0;
9783 }
9784 _ACEOF
9785 if ac_fn_c_try_link "$LINENO"; then :
9786
9787 lt_aix_libpath_sed='
9788 /Import File Strings/,/^$/ {
9789 /^0/ {
9790 s/^0 *\([^ ]*\) *$/\1/
9791 p
9792 }
9793 }'
9794 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9795 # Check for a 64-bit object if we didn't find anything.
9796 if test -z "$lt_cv_aix_libpath_"; then
9797 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9798 fi
9799 fi
9800 rm -f core conftest.err conftest.$ac_objext \
9801 conftest$ac_exeext conftest.$ac_ext
9802 if test -z "$lt_cv_aix_libpath_"; then
9803 lt_cv_aix_libpath_=/usr/lib:/lib
9804 fi
9805
9806 fi
9807
9808 aix_libpath=$lt_cv_aix_libpath_
9809 fi
9810
9811 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
9812 # Warning - without using the other run time loading flags,
9813 # -berok will link without error, but may produce a broken library.
9814 no_undefined_flag=' $wl-bernotok'
9815 allow_undefined_flag=' $wl-berok'
9816 if test yes = "$with_gnu_ld"; then
9817 # We only use this code for GNU lds that support --whole-archive.
9818 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
9819 else
9820 # Exported symbols can be pulled into shared objects from archives
9821 whole_archive_flag_spec='$convenience'
9822 fi
9823 archive_cmds_need_lc=yes
9824 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
9825 # -brtl affects multiple linker settings, -berok does not and is overridden later
9826 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
9827 if test svr4 != "$with_aix_soname"; then
9828 # This is similar to how AIX traditionally builds its shared libraries.
9829 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'
9830 fi
9831 if test aix != "$with_aix_soname"; then
9832 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'
9833 else
9834 # used by -dlpreopen to get the symbols
9835 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
9836 fi
9837 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
9838 fi
9839 fi
9840 ;;
9841
9842 amigaos*)
9843 case $host_cpu in
9844 powerpc)
9845 # see comment about AmigaOS4 .so support
9846 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9847 archive_expsym_cmds=''
9848 ;;
9849 m68k)
9850 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)'
9851 hardcode_libdir_flag_spec='-L$libdir'
9852 hardcode_minus_L=yes
9853 ;;
9854 esac
9855 ;;
9856
9857 bsdi[45]*)
9858 export_dynamic_flag_spec=-rdynamic
9859 ;;
9860
9861 cygwin* | mingw* | pw32* | cegcc*)
9862 # When not using gcc, we currently assume that we are using
9863 # Microsoft Visual C++.
9864 # hardcode_libdir_flag_spec is actually meaningless, as there is
9865 # no search path for DLLs.
9866 case $cc_basename in
9867 cl*)
9868 # Native MSVC
9869 hardcode_libdir_flag_spec=' '
9870 allow_undefined_flag=unsupported
9871 always_export_symbols=yes
9872 file_list_spec='@'
9873 # Tell ltmain to make .lib files, not .a files.
9874 libext=lib
9875 # Tell ltmain to make .dll files, not .so files.
9876 shrext_cmds=.dll
9877 # FIXME: Setting linknames here is a bad hack.
9878 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
9879 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
9880 cp "$export_symbols" "$output_objdir/$soname.def";
9881 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
9882 else
9883 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
9884 fi~
9885 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9886 linknames='
9887 # The linker will not automatically build a static lib if we build a DLL.
9888 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9889 enable_shared_with_static_runtimes=yes
9890 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9891 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9892 # Don't use ranlib
9893 old_postinstall_cmds='chmod 644 $oldlib'
9894 postlink_cmds='lt_outputfile="@OUTPUT@"~
9895 lt_tool_outputfile="@TOOL_OUTPUT@"~
9896 case $lt_outputfile in
9897 *.exe|*.EXE) ;;
9898 *)
9899 lt_outputfile=$lt_outputfile.exe
9900 lt_tool_outputfile=$lt_tool_outputfile.exe
9901 ;;
9902 esac~
9903 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
9904 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9905 $RM "$lt_outputfile.manifest";
9906 fi'
9907 ;;
9908 *)
9909 # Assume MSVC wrapper
9910 hardcode_libdir_flag_spec=' '
9911 allow_undefined_flag=unsupported
9912 # Tell ltmain to make .lib files, not .a files.
9913 libext=lib
9914 # Tell ltmain to make .dll files, not .so files.
9915 shrext_cmds=.dll
9916 # FIXME: Setting linknames here is a bad hack.
9917 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9918 # The linker will automatically build a .lib file if we build a DLL.
9919 old_archive_from_new_cmds='true'
9920 # FIXME: Should let the user specify the lib program.
9921 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9922 enable_shared_with_static_runtimes=yes
9923 ;;
9924 esac
9925 ;;
9926
9927 darwin* | rhapsody*)
9928
9929
9930 archive_cmds_need_lc=no
9931 hardcode_direct=no
9932 hardcode_automatic=yes
9933 hardcode_shlibpath_var=unsupported
9934 if test yes = "$lt_cv_ld_force_load"; then
9935 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\"`'
9936
9937 else
9938 whole_archive_flag_spec=''
9939 fi
9940 link_all_deplibs=yes
9941 allow_undefined_flag=$_lt_dar_allow_undefined
9942 case $cc_basename in
9943 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
9944 *) _lt_dar_can_shared=$GCC ;;
9945 esac
9946 if test yes = "$_lt_dar_can_shared"; then
9947 output_verbose_link_cmd=func_echo_all
9948 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
9949 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
9950 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"
9951 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"
9952
9953 else
9954 ld_shlibs=no
9955 fi
9956
9957 ;;
9958
9959 dgux*)
9960 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9961 hardcode_libdir_flag_spec='-L$libdir'
9962 hardcode_shlibpath_var=no
9963 ;;
9964
9965 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9966 # support. Future versions do this automatically, but an explicit c++rt0.o
9967 # does not break anything, and helps significantly (at the cost of a little
9968 # extra space).
9969 freebsd2.2*)
9970 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9971 hardcode_libdir_flag_spec='-R$libdir'
9972 hardcode_direct=yes
9973 hardcode_shlibpath_var=no
9974 ;;
9975
9976 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9977 freebsd2.*)
9978 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9979 hardcode_direct=yes
9980 hardcode_minus_L=yes
9981 hardcode_shlibpath_var=no
9982 ;;
9983
9984 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9985 freebsd* | dragonfly*)
9986 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9987 hardcode_libdir_flag_spec='-R$libdir'
9988 hardcode_direct=yes
9989 hardcode_shlibpath_var=no
9990 ;;
9991
9992 hpux9*)
9993 if test yes = "$GCC"; then
9994 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'
9995 else
9996 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'
9997 fi
9998 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
9999 hardcode_libdir_separator=:
10000 hardcode_direct=yes
10001
10002 # hardcode_minus_L: Not really in the search PATH,
10003 # but as the default location of the library.
10004 hardcode_minus_L=yes
10005 export_dynamic_flag_spec='$wl-E'
10006 ;;
10007
10008 hpux10*)
10009 if test yes,no = "$GCC,$with_gnu_ld"; then
10010 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10011 else
10012 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10013 fi
10014 if test no = "$with_gnu_ld"; then
10015 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10016 hardcode_libdir_separator=:
10017 hardcode_direct=yes
10018 hardcode_direct_absolute=yes
10019 export_dynamic_flag_spec='$wl-E'
10020 # hardcode_minus_L: Not really in the search PATH,
10021 # but as the default location of the library.
10022 hardcode_minus_L=yes
10023 fi
10024 ;;
10025
10026 hpux11*)
10027 if test yes,no = "$GCC,$with_gnu_ld"; then
10028 case $host_cpu in
10029 hppa*64*)
10030 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10031 ;;
10032 ia64*)
10033 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10034 ;;
10035 *)
10036 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10037 ;;
10038 esac
10039 else
10040 case $host_cpu in
10041 hppa*64*)
10042 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10043 ;;
10044 ia64*)
10045 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10046 ;;
10047 *)
10048
10049 # Older versions of the 11.00 compiler do not understand -b yet
10050 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10052 $as_echo_n "checking if $CC understands -b... " >&6; }
10053 if ${lt_cv_prog_compiler__b+:} false; then :
10054 $as_echo_n "(cached) " >&6
10055 else
10056 lt_cv_prog_compiler__b=no
10057 save_LDFLAGS=$LDFLAGS
10058 LDFLAGS="$LDFLAGS -b"
10059 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10060 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10061 # The linker can only warn and ignore the option if not recognized
10062 # So say no if there are warnings
10063 if test -s conftest.err; then
10064 # Append any errors to the config.log.
10065 cat conftest.err 1>&5
10066 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10067 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10068 if diff conftest.exp conftest.er2 >/dev/null; then
10069 lt_cv_prog_compiler__b=yes
10070 fi
10071 else
10072 lt_cv_prog_compiler__b=yes
10073 fi
10074 fi
10075 $RM -r conftest*
10076 LDFLAGS=$save_LDFLAGS
10077
10078 fi
10079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10080 $as_echo "$lt_cv_prog_compiler__b" >&6; }
10081
10082 if test yes = "$lt_cv_prog_compiler__b"; then
10083 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10084 else
10085 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10086 fi
10087
10088 ;;
10089 esac
10090 fi
10091 if test no = "$with_gnu_ld"; then
10092 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10093 hardcode_libdir_separator=:
10094
10095 case $host_cpu in
10096 hppa*64*|ia64*)
10097 hardcode_direct=no
10098 hardcode_shlibpath_var=no
10099 ;;
10100 *)
10101 hardcode_direct=yes
10102 hardcode_direct_absolute=yes
10103 export_dynamic_flag_spec='$wl-E'
10104
10105 # hardcode_minus_L: Not really in the search PATH,
10106 # but as the default location of the library.
10107 hardcode_minus_L=yes
10108 ;;
10109 esac
10110 fi
10111 ;;
10112
10113 irix5* | irix6* | nonstopux*)
10114 if test yes = "$GCC"; then
10115 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'
10116 # Try to use the -exported_symbol ld option, if it does not
10117 # work, assume that -exports_file does not work either and
10118 # implicitly export all symbols.
10119 # This should be the same for all languages, so no per-tag cache variable.
10120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10121 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10122 if ${lt_cv_irix_exported_symbol+:} false; then :
10123 $as_echo_n "(cached) " >&6
10124 else
10125 save_LDFLAGS=$LDFLAGS
10126 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
10127 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10128 /* end confdefs.h. */
10129 int foo (void) { return 0; }
10130 _ACEOF
10131 if ac_fn_c_try_link "$LINENO"; then :
10132 lt_cv_irix_exported_symbol=yes
10133 else
10134 lt_cv_irix_exported_symbol=no
10135 fi
10136 rm -f core conftest.err conftest.$ac_objext \
10137 conftest$ac_exeext conftest.$ac_ext
10138 LDFLAGS=$save_LDFLAGS
10139 fi
10140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10141 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
10142 if test yes = "$lt_cv_irix_exported_symbol"; then
10143 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'
10144 fi
10145 link_all_deplibs=no
10146 else
10147 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'
10148 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'
10149 fi
10150 archive_cmds_need_lc='no'
10151 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10152 hardcode_libdir_separator=:
10153 inherit_rpath=yes
10154 link_all_deplibs=yes
10155 ;;
10156
10157 linux*)
10158 case $cc_basename in
10159 tcc*)
10160 # Fabrice Bellard et al's Tiny C Compiler
10161 ld_shlibs=yes
10162 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10163 ;;
10164 esac
10165 ;;
10166
10167 netbsd* | netbsdelf*-gnu)
10168 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10169 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10170 else
10171 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10172 fi
10173 hardcode_libdir_flag_spec='-R$libdir'
10174 hardcode_direct=yes
10175 hardcode_shlibpath_var=no
10176 ;;
10177
10178 newsos6)
10179 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10180 hardcode_direct=yes
10181 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10182 hardcode_libdir_separator=:
10183 hardcode_shlibpath_var=no
10184 ;;
10185
10186 *nto* | *qnx*)
10187 ;;
10188
10189 openbsd* | bitrig*)
10190 if test -f /usr/libexec/ld.so; then
10191 hardcode_direct=yes
10192 hardcode_shlibpath_var=no
10193 hardcode_direct_absolute=yes
10194 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
10195 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10196 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
10197 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10198 export_dynamic_flag_spec='$wl-E'
10199 else
10200 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10201 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10202 fi
10203 else
10204 ld_shlibs=no
10205 fi
10206 ;;
10207
10208 os2*)
10209 hardcode_libdir_flag_spec='-L$libdir'
10210 hardcode_minus_L=yes
10211 allow_undefined_flag=unsupported
10212 shrext_cmds=.dll
10213 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10214 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10215 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10216 $ECHO EXPORTS >> $output_objdir/$libname.def~
10217 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
10218 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10219 emximp -o $lib $output_objdir/$libname.def'
10220 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10221 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10222 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10223 $ECHO EXPORTS >> $output_objdir/$libname.def~
10224 prefix_cmds="$SED"~
10225 if test EXPORTS = "`$SED 1q $export_symbols`"; then
10226 prefix_cmds="$prefix_cmds -e 1d";
10227 fi~
10228 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10229 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
10230 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10231 emximp -o $lib $output_objdir/$libname.def'
10232 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10233 enable_shared_with_static_runtimes=yes
10234 ;;
10235
10236 osf3*)
10237 if test yes = "$GCC"; then
10238 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10239 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'
10240 else
10241 allow_undefined_flag=' -expect_unresolved \*'
10242 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'
10243 fi
10244 archive_cmds_need_lc='no'
10245 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10246 hardcode_libdir_separator=:
10247 ;;
10248
10249 osf4* | osf5*) # as osf3* with the addition of -msym flag
10250 if test yes = "$GCC"; then
10251 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10252 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'
10253 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10254 else
10255 allow_undefined_flag=' -expect_unresolved \*'
10256 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'
10257 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~
10258 $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'
10259
10260 # Both c and cxx compiler support -rpath directly
10261 hardcode_libdir_flag_spec='-rpath $libdir'
10262 fi
10263 archive_cmds_need_lc='no'
10264 hardcode_libdir_separator=:
10265 ;;
10266
10267 solaris*)
10268 no_undefined_flag=' -z defs'
10269 if test yes = "$GCC"; then
10270 wlarc='$wl'
10271 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10272 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10273 $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'
10274 else
10275 case `$CC -V 2>&1` in
10276 *"Compilers 5.0"*)
10277 wlarc=''
10278 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
10279 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10280 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10281 ;;
10282 *)
10283 wlarc='$wl'
10284 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10285 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10286 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10287 ;;
10288 esac
10289 fi
10290 hardcode_libdir_flag_spec='-R$libdir'
10291 hardcode_shlibpath_var=no
10292 case $host_os in
10293 solaris2.[0-5] | solaris2.[0-5].*) ;;
10294 *)
10295 # The compiler driver will combine and reorder linker options,
10296 # but understands '-z linker_flag'. GCC discards it without '$wl',
10297 # but is careful enough not to reorder.
10298 # Supported since Solaris 2.6 (maybe 2.5.1?)
10299 if test yes = "$GCC"; then
10300 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
10301 else
10302 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10303 fi
10304 ;;
10305 esac
10306 link_all_deplibs=yes
10307 ;;
10308
10309 sunos4*)
10310 if test sequent = "$host_vendor"; then
10311 # Use $CC to link under sequent, because it throws in some extra .o
10312 # files that make .init and .fini sections work.
10313 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10314 else
10315 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10316 fi
10317 hardcode_libdir_flag_spec='-L$libdir'
10318 hardcode_direct=yes
10319 hardcode_minus_L=yes
10320 hardcode_shlibpath_var=no
10321 ;;
10322
10323 sysv4)
10324 case $host_vendor in
10325 sni)
10326 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10327 hardcode_direct=yes # is this really true???
10328 ;;
10329 siemens)
10330 ## LD is ld it makes a PLAMLIB
10331 ## CC just makes a GrossModule.
10332 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10333 reload_cmds='$CC -r -o $output$reload_objs'
10334 hardcode_direct=no
10335 ;;
10336 motorola)
10337 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10338 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10339 ;;
10340 esac
10341 runpath_var='LD_RUN_PATH'
10342 hardcode_shlibpath_var=no
10343 ;;
10344
10345 sysv4.3*)
10346 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10347 hardcode_shlibpath_var=no
10348 export_dynamic_flag_spec='-Bexport'
10349 ;;
10350
10351 sysv4*MP*)
10352 if test -d /usr/nec; then
10353 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10354 hardcode_shlibpath_var=no
10355 runpath_var=LD_RUN_PATH
10356 hardcode_runpath_var=yes
10357 ld_shlibs=yes
10358 fi
10359 ;;
10360
10361 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10362 no_undefined_flag='$wl-z,text'
10363 archive_cmds_need_lc=no
10364 hardcode_shlibpath_var=no
10365 runpath_var='LD_RUN_PATH'
10366
10367 if test yes = "$GCC"; then
10368 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10369 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10370 else
10371 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10372 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10373 fi
10374 ;;
10375
10376 sysv5* | sco3.2v5* | sco5v6*)
10377 # Note: We CANNOT use -z defs as we might desire, because we do not
10378 # link with -lc, and that would cause any symbols used from libc to
10379 # always be unresolved, which means just about no library would
10380 # ever link correctly. If we're not using GNU ld we use -z text
10381 # though, which does catch some bad symbols but isn't as heavy-handed
10382 # as -z defs.
10383 no_undefined_flag='$wl-z,text'
10384 allow_undefined_flag='$wl-z,nodefs'
10385 archive_cmds_need_lc=no
10386 hardcode_shlibpath_var=no
10387 hardcode_libdir_flag_spec='$wl-R,$libdir'
10388 hardcode_libdir_separator=':'
10389 link_all_deplibs=yes
10390 export_dynamic_flag_spec='$wl-Bexport'
10391 runpath_var='LD_RUN_PATH'
10392
10393 if test yes = "$GCC"; then
10394 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10395 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10396 else
10397 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10398 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10399 fi
10400 ;;
10401
10402 uts4*)
10403 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10404 hardcode_libdir_flag_spec='-L$libdir'
10405 hardcode_shlibpath_var=no
10406 ;;
10407
10408 *)
10409 ld_shlibs=no
10410 ;;
10411 esac
10412
10413 if test sni = "$host_vendor"; then
10414 case $host in
10415 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10416 export_dynamic_flag_spec='$wl-Blargedynsym'
10417 ;;
10418 esac
10419 fi
10420 fi
10421
10422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10423 $as_echo "$ld_shlibs" >&6; }
10424 test no = "$ld_shlibs" && can_build_shared=no
10425
10426 with_gnu_ld=$with_gnu_ld
10427
10428
10429
10430
10431
10432
10433
10434
10435
10436
10437
10438
10439
10440
10441
10442 #
10443 # Do we need to explicitly link libc?
10444 #
10445 case "x$archive_cmds_need_lc" in
10446 x|xyes)
10447 # Assume -lc should be added
10448 archive_cmds_need_lc=yes
10449
10450 if test yes,yes = "$GCC,$enable_shared"; then
10451 case $archive_cmds in
10452 *'~'*)
10453 # FIXME: we may have to deal with multi-command sequences.
10454 ;;
10455 '$CC '*)
10456 # Test whether the compiler implicitly links with -lc since on some
10457 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10458 # to ld, don't add -lc before -lgcc.
10459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10460 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10461 if ${lt_cv_archive_cmds_need_lc+:} false; then :
10462 $as_echo_n "(cached) " >&6
10463 else
10464 $RM conftest*
10465 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10466
10467 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10468 (eval $ac_compile) 2>&5
10469 ac_status=$?
10470 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10471 test $ac_status = 0; } 2>conftest.err; then
10472 soname=conftest
10473 lib=conftest
10474 libobjs=conftest.$ac_objext
10475 deplibs=
10476 wl=$lt_prog_compiler_wl
10477 pic_flag=$lt_prog_compiler_pic
10478 compiler_flags=-v
10479 linker_flags=-v
10480 verstring=
10481 output_objdir=.
10482 libname=conftest
10483 lt_save_allow_undefined_flag=$allow_undefined_flag
10484 allow_undefined_flag=
10485 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10486 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10487 ac_status=$?
10488 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10489 test $ac_status = 0; }
10490 then
10491 lt_cv_archive_cmds_need_lc=no
10492 else
10493 lt_cv_archive_cmds_need_lc=yes
10494 fi
10495 allow_undefined_flag=$lt_save_allow_undefined_flag
10496 else
10497 cat conftest.err 1>&5
10498 fi
10499 $RM conftest*
10500
10501 fi
10502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10503 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10504 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10505 ;;
10506 esac
10507 fi
10508 ;;
10509 esac
10510
10511
10512
10513
10514
10515
10516
10517
10518
10519
10520
10521
10522
10523
10524
10525
10526
10527
10528
10529
10530
10531
10532
10533
10534
10535
10536
10537
10538
10539
10540
10541
10542
10543
10544
10545
10546
10547
10548
10549
10550
10551
10552
10553
10554
10555
10556
10557
10558
10559
10560
10561
10562
10563
10564
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 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10663 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10664
10665 if test yes = "$GCC"; then
10666 case $host_os in
10667 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
10668 *) lt_awk_arg='/^libraries:/' ;;
10669 esac
10670 case $host_os in
10671 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
10672 *) lt_sed_strip_eq='s|=/|/|g' ;;
10673 esac
10674 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10675 case $lt_search_path_spec in
10676 *\;*)
10677 # if the path contains ";" then we assume it to be the separator
10678 # otherwise default to the standard path separator (i.e. ":") - it is
10679 # assumed that no part of a normal pathname contains ";" but that should
10680 # okay in the real world where ";" in dirpaths is itself problematic.
10681 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10682 ;;
10683 *)
10684 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10685 ;;
10686 esac
10687 # Ok, now we have the path, separated by spaces, we can step through it
10688 # and add multilib dir if necessary...
10689 lt_tmp_lt_search_path_spec=
10690 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10691 # ...but if some path component already ends with the multilib dir we assume
10692 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
10693 case "$lt_multi_os_dir; $lt_search_path_spec " in
10694 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
10695 lt_multi_os_dir=
10696 ;;
10697 esac
10698 for lt_sys_path in $lt_search_path_spec; do
10699 if test -d "$lt_sys_path$lt_multi_os_dir"; then
10700 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
10701 elif test -n "$lt_multi_os_dir"; then
10702 test -d "$lt_sys_path" && \
10703 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10704 fi
10705 done
10706 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10707 BEGIN {RS = " "; FS = "/|\n";} {
10708 lt_foo = "";
10709 lt_count = 0;
10710 for (lt_i = NF; lt_i > 0; lt_i--) {
10711 if ($lt_i != "" && $lt_i != ".") {
10712 if ($lt_i == "..") {
10713 lt_count++;
10714 } else {
10715 if (lt_count == 0) {
10716 lt_foo = "/" $lt_i lt_foo;
10717 } else {
10718 lt_count--;
10719 }
10720 }
10721 }
10722 }
10723 if (lt_foo != "") { lt_freq[lt_foo]++; }
10724 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10725 }'`
10726 # AWK program above erroneously prepends '/' to C:/dos/paths
10727 # for these hosts.
10728 case $host_os in
10729 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10730 $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
10731 esac
10732 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10733 else
10734 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10735 fi
10736 library_names_spec=
10737 libname_spec='lib$name'
10738 soname_spec=
10739 shrext_cmds=.so
10740 postinstall_cmds=
10741 postuninstall_cmds=
10742 finish_cmds=
10743 finish_eval=
10744 shlibpath_var=
10745 shlibpath_overrides_runpath=unknown
10746 version_type=none
10747 dynamic_linker="$host_os ld.so"
10748 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10749 need_lib_prefix=unknown
10750 hardcode_into_libs=no
10751
10752 # when you set need_version to no, make sure it does not cause -set_version
10753 # flags to be left without arguments
10754 need_version=unknown
10755
10756
10757
10758 case $host_os in
10759 aix3*)
10760 version_type=linux # correct to gnu/linux during the next big refactor
10761 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
10762 shlibpath_var=LIBPATH
10763
10764 # AIX 3 has no versioning support, so we append a major version to the name.
10765 soname_spec='$libname$release$shared_ext$major'
10766 ;;
10767
10768 aix[4-9]*)
10769 version_type=linux # correct to gnu/linux during the next big refactor
10770 need_lib_prefix=no
10771 need_version=no
10772 hardcode_into_libs=yes
10773 if test ia64 = "$host_cpu"; then
10774 # AIX 5 supports IA64
10775 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
10776 shlibpath_var=LD_LIBRARY_PATH
10777 else
10778 # With GCC up to 2.95.x, collect2 would create an import file
10779 # for dependence libraries. The import file would start with
10780 # the line '#! .'. This would cause the generated library to
10781 # depend on '.', always an invalid library. This was fixed in
10782 # development snapshots of GCC prior to 3.0.
10783 case $host_os in
10784 aix4 | aix4.[01] | aix4.[01].*)
10785 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10786 echo ' yes '
10787 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
10788 :
10789 else
10790 can_build_shared=no
10791 fi
10792 ;;
10793 esac
10794 # Using Import Files as archive members, it is possible to support
10795 # filename-based versioning of shared library archives on AIX. While
10796 # this would work for both with and without runtime linking, it will
10797 # prevent static linking of such archives. So we do filename-based
10798 # shared library versioning with .so extension only, which is used
10799 # when both runtime linking and shared linking is enabled.
10800 # Unfortunately, runtime linking may impact performance, so we do
10801 # not want this to be the default eventually. Also, we use the
10802 # versioned .so libs for executables only if there is the -brtl
10803 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
10804 # To allow for filename-based versioning support, we need to create
10805 # libNAME.so.V as an archive file, containing:
10806 # *) an Import File, referring to the versioned filename of the
10807 # archive as well as the shared archive member, telling the
10808 # bitwidth (32 or 64) of that shared object, and providing the
10809 # list of exported symbols of that shared object, eventually
10810 # decorated with the 'weak' keyword
10811 # *) the shared object with the F_LOADONLY flag set, to really avoid
10812 # it being seen by the linker.
10813 # At run time we better use the real file rather than another symlink,
10814 # but for link time we create the symlink libNAME.so -> libNAME.so.V
10815
10816 case $with_aix_soname,$aix_use_runtimelinking in
10817 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
10818 # soname into executable. Probably we can add versioning support to
10819 # collect2, so additional links can be useful in future.
10820 aix,yes) # traditional libtool
10821 dynamic_linker='AIX unversionable lib.so'
10822 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10823 # instead of lib<name>.a to let people know that these are not
10824 # typical AIX shared libraries.
10825 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10826 ;;
10827 aix,no) # traditional AIX only
10828 dynamic_linker='AIX lib.a(lib.so.V)'
10829 # We preserve .a as extension for shared libraries through AIX4.2
10830 # and later when we are not doing run time linking.
10831 library_names_spec='$libname$release.a $libname.a'
10832 soname_spec='$libname$release$shared_ext$major'
10833 ;;
10834 svr4,*) # full svr4 only
10835 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
10836 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
10837 # We do not specify a path in Import Files, so LIBPATH fires.
10838 shlibpath_overrides_runpath=yes
10839 ;;
10840 *,yes) # both, prefer svr4
10841 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
10842 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
10843 # unpreferred sharedlib libNAME.a needs extra handling
10844 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"'
10845 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"'
10846 # We do not specify a path in Import Files, so LIBPATH fires.
10847 shlibpath_overrides_runpath=yes
10848 ;;
10849 *,no) # both, prefer aix
10850 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
10851 library_names_spec='$libname$release.a $libname.a'
10852 soname_spec='$libname$release$shared_ext$major'
10853 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
10854 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)'
10855 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"'
10856 ;;
10857 esac
10858 shlibpath_var=LIBPATH
10859 fi
10860 ;;
10861
10862 amigaos*)
10863 case $host_cpu in
10864 powerpc)
10865 # Since July 2007 AmigaOS4 officially supports .so libraries.
10866 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10867 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10868 ;;
10869 m68k)
10870 library_names_spec='$libname.ixlibrary $libname.a'
10871 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10872 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'
10873 ;;
10874 esac
10875 ;;
10876
10877 beos*)
10878 library_names_spec='$libname$shared_ext'
10879 dynamic_linker="$host_os ld.so"
10880 shlibpath_var=LIBRARY_PATH
10881 ;;
10882
10883 bsdi[45]*)
10884 version_type=linux # correct to gnu/linux during the next big refactor
10885 need_version=no
10886 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10887 soname_spec='$libname$release$shared_ext$major'
10888 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10889 shlibpath_var=LD_LIBRARY_PATH
10890 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10891 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10892 # the default ld.so.conf also contains /usr/contrib/lib and
10893 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10894 # libtool to hard-code these into programs
10895 ;;
10896
10897 cygwin* | mingw* | pw32* | cegcc*)
10898 version_type=windows
10899 shrext_cmds=.dll
10900 need_version=no
10901 need_lib_prefix=no
10902
10903 case $GCC,$cc_basename in
10904 yes,*)
10905 # gcc
10906 library_names_spec='$libname.dll.a'
10907 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10908 postinstall_cmds='base_file=`basename \$file`~
10909 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
10910 dldir=$destdir/`dirname \$dlpath`~
10911 test -d \$dldir || mkdir -p \$dldir~
10912 $install_prog $dir/$dlname \$dldir/$dlname~
10913 chmod a+x \$dldir/$dlname~
10914 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10915 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10916 fi'
10917 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10918 dlpath=$dir/\$dldll~
10919 $RM \$dlpath'
10920 shlibpath_overrides_runpath=yes
10921
10922 case $host_os in
10923 cygwin*)
10924 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10925 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10926
10927 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10928 ;;
10929 mingw* | cegcc*)
10930 # MinGW DLLs use traditional 'lib' prefix
10931 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10932 ;;
10933 pw32*)
10934 # pw32 DLLs use 'pw' prefix rather than 'lib'
10935 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10936 ;;
10937 esac
10938 dynamic_linker='Win32 ld.exe'
10939 ;;
10940
10941 *,cl*)
10942 # Native MSVC
10943 libname_spec='$name'
10944 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10945 library_names_spec='$libname.dll.lib'
10946
10947 case $build_os in
10948 mingw*)
10949 sys_lib_search_path_spec=
10950 lt_save_ifs=$IFS
10951 IFS=';'
10952 for lt_path in $LIB
10953 do
10954 IFS=$lt_save_ifs
10955 # Let DOS variable expansion print the short 8.3 style file name.
10956 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10957 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10958 done
10959 IFS=$lt_save_ifs
10960 # Convert to MSYS style.
10961 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10962 ;;
10963 cygwin*)
10964 # Convert to unix form, then to dos form, then back to unix form
10965 # but this time dos style (no spaces!) so that the unix form looks
10966 # like /cygdrive/c/PROGRA~1:/cygdr...
10967 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10968 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10969 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10970 ;;
10971 *)
10972 sys_lib_search_path_spec=$LIB
10973 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10974 # It is most probably a Windows format PATH.
10975 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10976 else
10977 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10978 fi
10979 # FIXME: find the short name or the path components, as spaces are
10980 # common. (e.g. "Program Files" -> "PROGRA~1")
10981 ;;
10982 esac
10983
10984 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10985 postinstall_cmds='base_file=`basename \$file`~
10986 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
10987 dldir=$destdir/`dirname \$dlpath`~
10988 test -d \$dldir || mkdir -p \$dldir~
10989 $install_prog $dir/$dlname \$dldir/$dlname'
10990 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10991 dlpath=$dir/\$dldll~
10992 $RM \$dlpath'
10993 shlibpath_overrides_runpath=yes
10994 dynamic_linker='Win32 link.exe'
10995 ;;
10996
10997 *)
10998 # Assume MSVC wrapper
10999 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
11000 dynamic_linker='Win32 ld.exe'
11001 ;;
11002 esac
11003 # FIXME: first we should search . and the directory the executable is in
11004 shlibpath_var=PATH
11005 ;;
11006
11007 darwin* | rhapsody*)
11008 dynamic_linker="$host_os dyld"
11009 version_type=darwin
11010 need_lib_prefix=no
11011 need_version=no
11012 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
11013 soname_spec='$libname$release$major$shared_ext'
11014 shlibpath_overrides_runpath=yes
11015 shlibpath_var=DYLD_LIBRARY_PATH
11016 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11017
11018 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11019 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11020 ;;
11021
11022 dgux*)
11023 version_type=linux # correct to gnu/linux during the next big refactor
11024 need_lib_prefix=no
11025 need_version=no
11026 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11027 soname_spec='$libname$release$shared_ext$major'
11028 shlibpath_var=LD_LIBRARY_PATH
11029 ;;
11030
11031 freebsd* | dragonfly*)
11032 # DragonFly does not have aout. When/if they implement a new
11033 # versioning mechanism, adjust this.
11034 if test -x /usr/bin/objformat; then
11035 objformat=`/usr/bin/objformat`
11036 else
11037 case $host_os in
11038 freebsd[23].*) objformat=aout ;;
11039 *) objformat=elf ;;
11040 esac
11041 fi
11042 version_type=freebsd-$objformat
11043 case $version_type in
11044 freebsd-elf*)
11045 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11046 soname_spec='$libname$release$shared_ext$major'
11047 need_version=no
11048 need_lib_prefix=no
11049 ;;
11050 freebsd-*)
11051 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11052 need_version=yes
11053 ;;
11054 esac
11055 shlibpath_var=LD_LIBRARY_PATH
11056 case $host_os in
11057 freebsd2.*)
11058 shlibpath_overrides_runpath=yes
11059 ;;
11060 freebsd3.[01]* | freebsdelf3.[01]*)
11061 shlibpath_overrides_runpath=yes
11062 hardcode_into_libs=yes
11063 ;;
11064 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11065 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11066 shlibpath_overrides_runpath=no
11067 hardcode_into_libs=yes
11068 ;;
11069 *) # from 4.6 on, and DragonFly
11070 shlibpath_overrides_runpath=yes
11071 hardcode_into_libs=yes
11072 ;;
11073 esac
11074 ;;
11075
11076 haiku*)
11077 version_type=linux # correct to gnu/linux during the next big refactor
11078 need_lib_prefix=no
11079 need_version=no
11080 dynamic_linker="$host_os runtime_loader"
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=LIBRARY_PATH
11084 shlibpath_overrides_runpath=no
11085 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
11086 hardcode_into_libs=yes
11087 ;;
11088
11089 hpux9* | hpux10* | hpux11*)
11090 # Give a soname corresponding to the major version so that dld.sl refuses to
11091 # link against other versions.
11092 version_type=sunos
11093 need_lib_prefix=no
11094 need_version=no
11095 case $host_cpu in
11096 ia64*)
11097 shrext_cmds='.so'
11098 hardcode_into_libs=yes
11099 dynamic_linker="$host_os dld.so"
11100 shlibpath_var=LD_LIBRARY_PATH
11101 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11102 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11103 soname_spec='$libname$release$shared_ext$major'
11104 if test 32 = "$HPUX_IA64_MODE"; then
11105 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11106 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
11107 else
11108 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11109 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
11110 fi
11111 ;;
11112 hppa*64*)
11113 shrext_cmds='.sl'
11114 hardcode_into_libs=yes
11115 dynamic_linker="$host_os dld.sl"
11116 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11117 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11118 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11119 soname_spec='$libname$release$shared_ext$major'
11120 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11121 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11122 ;;
11123 *)
11124 shrext_cmds='.sl'
11125 dynamic_linker="$host_os dld.sl"
11126 shlibpath_var=SHLIB_PATH
11127 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11128 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11129 soname_spec='$libname$release$shared_ext$major'
11130 ;;
11131 esac
11132 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11133 postinstall_cmds='chmod 555 $lib'
11134 # or fails outright, so override atomically:
11135 install_override_mode=555
11136 ;;
11137
11138 interix[3-9]*)
11139 version_type=linux # correct to gnu/linux during the next big refactor
11140 need_lib_prefix=no
11141 need_version=no
11142 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11143 soname_spec='$libname$release$shared_ext$major'
11144 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11145 shlibpath_var=LD_LIBRARY_PATH
11146 shlibpath_overrides_runpath=no
11147 hardcode_into_libs=yes
11148 ;;
11149
11150 irix5* | irix6* | nonstopux*)
11151 case $host_os in
11152 nonstopux*) version_type=nonstopux ;;
11153 *)
11154 if test yes = "$lt_cv_prog_gnu_ld"; then
11155 version_type=linux # correct to gnu/linux during the next big refactor
11156 else
11157 version_type=irix
11158 fi ;;
11159 esac
11160 need_lib_prefix=no
11161 need_version=no
11162 soname_spec='$libname$release$shared_ext$major'
11163 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
11164 case $host_os in
11165 irix5* | nonstopux*)
11166 libsuff= shlibsuff=
11167 ;;
11168 *)
11169 case $LD in # libtool.m4 will add one of these switches to LD
11170 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11171 libsuff= shlibsuff= libmagic=32-bit;;
11172 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11173 libsuff=32 shlibsuff=N32 libmagic=N32;;
11174 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11175 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11176 *) libsuff= shlibsuff= libmagic=never-match;;
11177 esac
11178 ;;
11179 esac
11180 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11181 shlibpath_overrides_runpath=no
11182 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
11183 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
11184 hardcode_into_libs=yes
11185 ;;
11186
11187 # No shared lib support for Linux oldld, aout, or coff.
11188 linux*oldld* | linux*aout* | linux*coff*)
11189 dynamic_linker=no
11190 ;;
11191
11192 linux*android*)
11193 version_type=none # Android doesn't support versioned libraries.
11194 need_lib_prefix=no
11195 need_version=no
11196 library_names_spec='$libname$release$shared_ext'
11197 soname_spec='$libname$release$shared_ext'
11198 finish_cmds=
11199 shlibpath_var=LD_LIBRARY_PATH
11200 shlibpath_overrides_runpath=yes
11201
11202 # This implies no fast_install, which is unacceptable.
11203 # Some rework will be needed to allow for fast_install
11204 # before this can be enabled.
11205 hardcode_into_libs=yes
11206
11207 dynamic_linker='Android linker'
11208 # Don't embed -rpath directories since the linker doesn't support them.
11209 hardcode_libdir_flag_spec='-L$libdir'
11210 ;;
11211
11212 # This must be glibc/ELF.
11213 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
11214 version_type=linux # correct to gnu/linux during the next big refactor
11215 need_lib_prefix=no
11216 need_version=no
11217 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11218 soname_spec='$libname$release$shared_ext$major'
11219 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11220 shlibpath_var=LD_LIBRARY_PATH
11221 shlibpath_overrides_runpath=no
11222
11223 # Some binutils ld are patched to set DT_RUNPATH
11224 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11225 $as_echo_n "(cached) " >&6
11226 else
11227 lt_cv_shlibpath_overrides_runpath=no
11228 save_LDFLAGS=$LDFLAGS
11229 save_libdir=$libdir
11230 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11231 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11232 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11233 /* end confdefs.h. */
11234
11235 int
11236 main ()
11237 {
11238
11239 ;
11240 return 0;
11241 }
11242 _ACEOF
11243 if ac_fn_c_try_link "$LINENO"; then :
11244 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11245 lt_cv_shlibpath_overrides_runpath=yes
11246 fi
11247 fi
11248 rm -f core conftest.err conftest.$ac_objext \
11249 conftest$ac_exeext conftest.$ac_ext
11250 LDFLAGS=$save_LDFLAGS
11251 libdir=$save_libdir
11252
11253 fi
11254
11255 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
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 # Ideally, we could use ldconfig to report *all* directores which are
11263 # searched for libraries, however this is still not possible. Aside from not
11264 # being certain /sbin/ldconfig is available, command
11265 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
11266 # even though it is searched at run-time. Try to do the best guess by
11267 # appending ld.so.conf contents (and includes) to the search path.
11268 if test -f /etc/ld.so.conf; then
11269 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' ' '`
11270 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11271 fi
11272
11273 # We used to test for /lib/ld.so.1 and disable shared libraries on
11274 # powerpc, because MkLinux only supported shared libraries with the
11275 # GNU dynamic linker. Since this was broken with cross compilers,
11276 # most powerpc-linux boxes support dynamic linking these days and
11277 # people can always --disable-shared, the test was removed, and we
11278 # assume the GNU/Linux dynamic linker is in use.
11279 dynamic_linker='GNU/Linux ld.so'
11280 ;;
11281
11282 netbsdelf*-gnu)
11283 version_type=linux
11284 need_lib_prefix=no
11285 need_version=no
11286 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11287 soname_spec='${libname}${release}${shared_ext}$major'
11288 shlibpath_var=LD_LIBRARY_PATH
11289 shlibpath_overrides_runpath=no
11290 hardcode_into_libs=yes
11291 dynamic_linker='NetBSD ld.elf_so'
11292 ;;
11293
11294 netbsd*)
11295 version_type=sunos
11296 need_lib_prefix=no
11297 need_version=no
11298 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11299 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11300 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11301 dynamic_linker='NetBSD (a.out) ld.so'
11302 else
11303 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11304 soname_spec='$libname$release$shared_ext$major'
11305 dynamic_linker='NetBSD ld.elf_so'
11306 fi
11307 shlibpath_var=LD_LIBRARY_PATH
11308 shlibpath_overrides_runpath=yes
11309 hardcode_into_libs=yes
11310 ;;
11311
11312 newsos6)
11313 version_type=linux # correct to gnu/linux during the next big refactor
11314 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11315 shlibpath_var=LD_LIBRARY_PATH
11316 shlibpath_overrides_runpath=yes
11317 ;;
11318
11319 *nto* | *qnx*)
11320 version_type=qnx
11321 need_lib_prefix=no
11322 need_version=no
11323 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11324 soname_spec='$libname$release$shared_ext$major'
11325 shlibpath_var=LD_LIBRARY_PATH
11326 shlibpath_overrides_runpath=no
11327 hardcode_into_libs=yes
11328 dynamic_linker='ldqnx.so'
11329 ;;
11330
11331 openbsd* | bitrig*)
11332 version_type=sunos
11333 sys_lib_dlsearch_path_spec=/usr/lib
11334 need_lib_prefix=no
11335 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
11336 need_version=no
11337 else
11338 need_version=yes
11339 fi
11340 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11341 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11342 shlibpath_var=LD_LIBRARY_PATH
11343 shlibpath_overrides_runpath=yes
11344 ;;
11345
11346 os2*)
11347 libname_spec='$name'
11348 version_type=windows
11349 shrext_cmds=.dll
11350 need_version=no
11351 need_lib_prefix=no
11352 # OS/2 can only load a DLL with a base name of 8 characters or less.
11353 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
11354 v=$($ECHO $release$versuffix | tr -d .-);
11355 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
11356 $ECHO $n$v`$shared_ext'
11357 library_names_spec='${libname}_dll.$libext'
11358 dynamic_linker='OS/2 ld.exe'
11359 shlibpath_var=BEGINLIBPATH
11360 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11361 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11362 postinstall_cmds='base_file=`basename \$file`~
11363 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
11364 dldir=$destdir/`dirname \$dlpath`~
11365 test -d \$dldir || mkdir -p \$dldir~
11366 $install_prog $dir/$dlname \$dldir/$dlname~
11367 chmod a+x \$dldir/$dlname~
11368 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11369 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11370 fi'
11371 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
11372 dlpath=$dir/\$dldll~
11373 $RM \$dlpath'
11374 ;;
11375
11376 osf3* | osf4* | osf5*)
11377 version_type=osf
11378 need_lib_prefix=no
11379 need_version=no
11380 soname_spec='$libname$release$shared_ext$major'
11381 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11382 shlibpath_var=LD_LIBRARY_PATH
11383 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11384 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11385 ;;
11386
11387 rdos*)
11388 dynamic_linker=no
11389 ;;
11390
11391 solaris*)
11392 version_type=linux # correct to gnu/linux during the next big refactor
11393 need_lib_prefix=no
11394 need_version=no
11395 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11396 soname_spec='$libname$release$shared_ext$major'
11397 shlibpath_var=LD_LIBRARY_PATH
11398 shlibpath_overrides_runpath=yes
11399 hardcode_into_libs=yes
11400 # ldd complains unless libraries are executable
11401 postinstall_cmds='chmod +x $lib'
11402 ;;
11403
11404 sunos4*)
11405 version_type=sunos
11406 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11407 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11408 shlibpath_var=LD_LIBRARY_PATH
11409 shlibpath_overrides_runpath=yes
11410 if test yes = "$with_gnu_ld"; then
11411 need_lib_prefix=no
11412 fi
11413 need_version=yes
11414 ;;
11415
11416 sysv4 | sysv4.3*)
11417 version_type=linux # correct to gnu/linux during the next big refactor
11418 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11419 soname_spec='$libname$release$shared_ext$major'
11420 shlibpath_var=LD_LIBRARY_PATH
11421 case $host_vendor in
11422 sni)
11423 shlibpath_overrides_runpath=no
11424 need_lib_prefix=no
11425 runpath_var=LD_RUN_PATH
11426 ;;
11427 siemens)
11428 need_lib_prefix=no
11429 ;;
11430 motorola)
11431 need_lib_prefix=no
11432 need_version=no
11433 shlibpath_overrides_runpath=no
11434 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11435 ;;
11436 esac
11437 ;;
11438
11439 sysv4*MP*)
11440 if test -d /usr/nec; then
11441 version_type=linux # correct to gnu/linux during the next big refactor
11442 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
11443 soname_spec='$libname$shared_ext.$major'
11444 shlibpath_var=LD_LIBRARY_PATH
11445 fi
11446 ;;
11447
11448 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11449 version_type=sco
11450 need_lib_prefix=no
11451 need_version=no
11452 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
11453 soname_spec='$libname$release$shared_ext$major'
11454 shlibpath_var=LD_LIBRARY_PATH
11455 shlibpath_overrides_runpath=yes
11456 hardcode_into_libs=yes
11457 if test yes = "$with_gnu_ld"; then
11458 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11459 else
11460 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11461 case $host_os in
11462 sco3.2v5*)
11463 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11464 ;;
11465 esac
11466 fi
11467 sys_lib_dlsearch_path_spec='/usr/lib'
11468 ;;
11469
11470 tpf*)
11471 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11472 version_type=linux # correct to gnu/linux during the next big refactor
11473 need_lib_prefix=no
11474 need_version=no
11475 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11476 shlibpath_var=LD_LIBRARY_PATH
11477 shlibpath_overrides_runpath=no
11478 hardcode_into_libs=yes
11479 ;;
11480
11481 uts4*)
11482 version_type=linux # correct to gnu/linux during the next big refactor
11483 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11484 soname_spec='$libname$release$shared_ext$major'
11485 shlibpath_var=LD_LIBRARY_PATH
11486 ;;
11487
11488 *)
11489 dynamic_linker=no
11490 ;;
11491 esac
11492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11493 $as_echo "$dynamic_linker" >&6; }
11494 test no = "$dynamic_linker" && can_build_shared=no
11495
11496 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11497 if test yes = "$GCC"; then
11498 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11499 fi
11500
11501 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
11502 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
11503 fi
11504
11505 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
11506 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
11507 fi
11508
11509 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
11510 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
11511
11512 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
11513 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
11514
11515 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
11516 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
11517
11518
11519
11520
11521
11522
11523
11524
11525
11526
11527
11528
11529
11530
11531
11532
11533
11534
11535
11536
11537
11538
11539
11540
11541
11542
11543
11544
11545
11546
11547
11548
11549
11550
11551
11552
11553
11554
11555
11556
11557
11558
11559
11560
11561
11562
11563
11564
11565
11566
11567
11568
11569
11570
11571
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 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11615 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11616 hardcode_action=
11617 if test -n "$hardcode_libdir_flag_spec" ||
11618 test -n "$runpath_var" ||
11619 test yes = "$hardcode_automatic"; then
11620
11621 # We can hardcode non-existent directories.
11622 if test no != "$hardcode_direct" &&
11623 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11624 # have to relink, otherwise we might link with an installed library
11625 # when we should be linking with a yet-to-be-installed one
11626 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
11627 test no != "$hardcode_minus_L"; then
11628 # Linking always hardcodes the temporary library directory.
11629 hardcode_action=relink
11630 else
11631 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11632 hardcode_action=immediate
11633 fi
11634 else
11635 # We cannot hardcode anything, or else we can only hardcode existing
11636 # directories.
11637 hardcode_action=unsupported
11638 fi
11639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11640 $as_echo "$hardcode_action" >&6; }
11641
11642 if test relink = "$hardcode_action" ||
11643 test yes = "$inherit_rpath"; then
11644 # Fast installation is not supported
11645 enable_fast_install=no
11646 elif test yes = "$shlibpath_overrides_runpath" ||
11647 test no = "$enable_shared"; then
11648 # Fast installation is not necessary
11649 enable_fast_install=needless
11650 fi
11651
11652
11653
11654
11655
11656
11657 if test yes != "$enable_dlopen"; then
11658 enable_dlopen=unknown
11659 enable_dlopen_self=unknown
11660 enable_dlopen_self_static=unknown
11661 else
11662 lt_cv_dlopen=no
11663 lt_cv_dlopen_libs=
11664
11665 case $host_os in
11666 beos*)
11667 lt_cv_dlopen=load_add_on
11668 lt_cv_dlopen_libs=
11669 lt_cv_dlopen_self=yes
11670 ;;
11671
11672 mingw* | pw32* | cegcc*)
11673 lt_cv_dlopen=LoadLibrary
11674 lt_cv_dlopen_libs=
11675 ;;
11676
11677 cygwin*)
11678 lt_cv_dlopen=dlopen
11679 lt_cv_dlopen_libs=
11680 ;;
11681
11682 darwin*)
11683 # if libdl is installed we need to link against it
11684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11685 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11686 if ${ac_cv_lib_dl_dlopen+:} false; then :
11687 $as_echo_n "(cached) " >&6
11688 else
11689 ac_check_lib_save_LIBS=$LIBS
11690 LIBS="-ldl $LIBS"
11691 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11692 /* end confdefs.h. */
11693
11694 /* Override any GCC internal prototype to avoid an error.
11695 Use char because int might match the return type of a GCC
11696 builtin and then its argument prototype would still apply. */
11697 #ifdef __cplusplus
11698 extern "C"
11699 #endif
11700 char dlopen ();
11701 int
11702 main ()
11703 {
11704 return dlopen ();
11705 ;
11706 return 0;
11707 }
11708 _ACEOF
11709 if ac_fn_c_try_link "$LINENO"; then :
11710 ac_cv_lib_dl_dlopen=yes
11711 else
11712 ac_cv_lib_dl_dlopen=no
11713 fi
11714 rm -f core conftest.err conftest.$ac_objext \
11715 conftest$ac_exeext conftest.$ac_ext
11716 LIBS=$ac_check_lib_save_LIBS
11717 fi
11718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11719 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11720 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11721 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
11722 else
11723
11724 lt_cv_dlopen=dyld
11725 lt_cv_dlopen_libs=
11726 lt_cv_dlopen_self=yes
11727
11728 fi
11729
11730 ;;
11731
11732 tpf*)
11733 # Don't try to run any link tests for TPF. We know it's impossible
11734 # because TPF is a cross-compiler, and we know how we open DSOs.
11735 lt_cv_dlopen=dlopen
11736 lt_cv_dlopen_libs=
11737 lt_cv_dlopen_self=no
11738 ;;
11739
11740 *)
11741 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11742 if test "x$ac_cv_func_shl_load" = xyes; then :
11743 lt_cv_dlopen=shl_load
11744 else
11745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11746 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11747 if ${ac_cv_lib_dld_shl_load+:} false; then :
11748 $as_echo_n "(cached) " >&6
11749 else
11750 ac_check_lib_save_LIBS=$LIBS
11751 LIBS="-ldld $LIBS"
11752 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11753 /* end confdefs.h. */
11754
11755 /* Override any GCC internal prototype to avoid an error.
11756 Use char because int might match the return type of a GCC
11757 builtin and then its argument prototype would still apply. */
11758 #ifdef __cplusplus
11759 extern "C"
11760 #endif
11761 char shl_load ();
11762 int
11763 main ()
11764 {
11765 return shl_load ();
11766 ;
11767 return 0;
11768 }
11769 _ACEOF
11770 if ac_fn_c_try_link "$LINENO"; then :
11771 ac_cv_lib_dld_shl_load=yes
11772 else
11773 ac_cv_lib_dld_shl_load=no
11774 fi
11775 rm -f core conftest.err conftest.$ac_objext \
11776 conftest$ac_exeext conftest.$ac_ext
11777 LIBS=$ac_check_lib_save_LIBS
11778 fi
11779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11780 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11781 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11782 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
11783 else
11784 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11785 if test "x$ac_cv_func_dlopen" = xyes; then :
11786 lt_cv_dlopen=dlopen
11787 else
11788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11789 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11790 if ${ac_cv_lib_dl_dlopen+:} false; then :
11791 $as_echo_n "(cached) " >&6
11792 else
11793 ac_check_lib_save_LIBS=$LIBS
11794 LIBS="-ldl $LIBS"
11795 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11796 /* end confdefs.h. */
11797
11798 /* Override any GCC internal prototype to avoid an error.
11799 Use char because int might match the return type of a GCC
11800 builtin and then its argument prototype would still apply. */
11801 #ifdef __cplusplus
11802 extern "C"
11803 #endif
11804 char dlopen ();
11805 int
11806 main ()
11807 {
11808 return dlopen ();
11809 ;
11810 return 0;
11811 }
11812 _ACEOF
11813 if ac_fn_c_try_link "$LINENO"; then :
11814 ac_cv_lib_dl_dlopen=yes
11815 else
11816 ac_cv_lib_dl_dlopen=no
11817 fi
11818 rm -f core conftest.err conftest.$ac_objext \
11819 conftest$ac_exeext conftest.$ac_ext
11820 LIBS=$ac_check_lib_save_LIBS
11821 fi
11822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11823 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11824 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11825 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
11826 else
11827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11828 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11829 if ${ac_cv_lib_svld_dlopen+:} false; then :
11830 $as_echo_n "(cached) " >&6
11831 else
11832 ac_check_lib_save_LIBS=$LIBS
11833 LIBS="-lsvld $LIBS"
11834 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11835 /* end confdefs.h. */
11836
11837 /* Override any GCC internal prototype to avoid an error.
11838 Use char because int might match the return type of a GCC
11839 builtin and then its argument prototype would still apply. */
11840 #ifdef __cplusplus
11841 extern "C"
11842 #endif
11843 char dlopen ();
11844 int
11845 main ()
11846 {
11847 return dlopen ();
11848 ;
11849 return 0;
11850 }
11851 _ACEOF
11852 if ac_fn_c_try_link "$LINENO"; then :
11853 ac_cv_lib_svld_dlopen=yes
11854 else
11855 ac_cv_lib_svld_dlopen=no
11856 fi
11857 rm -f core conftest.err conftest.$ac_objext \
11858 conftest$ac_exeext conftest.$ac_ext
11859 LIBS=$ac_check_lib_save_LIBS
11860 fi
11861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11862 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11863 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11864 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
11865 else
11866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11867 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11868 if ${ac_cv_lib_dld_dld_link+:} false; then :
11869 $as_echo_n "(cached) " >&6
11870 else
11871 ac_check_lib_save_LIBS=$LIBS
11872 LIBS="-ldld $LIBS"
11873 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11874 /* end confdefs.h. */
11875
11876 /* Override any GCC internal prototype to avoid an error.
11877 Use char because int might match the return type of a GCC
11878 builtin and then its argument prototype would still apply. */
11879 #ifdef __cplusplus
11880 extern "C"
11881 #endif
11882 char dld_link ();
11883 int
11884 main ()
11885 {
11886 return dld_link ();
11887 ;
11888 return 0;
11889 }
11890 _ACEOF
11891 if ac_fn_c_try_link "$LINENO"; then :
11892 ac_cv_lib_dld_dld_link=yes
11893 else
11894 ac_cv_lib_dld_dld_link=no
11895 fi
11896 rm -f core conftest.err conftest.$ac_objext \
11897 conftest$ac_exeext conftest.$ac_ext
11898 LIBS=$ac_check_lib_save_LIBS
11899 fi
11900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11901 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11902 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11903 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
11904 fi
11905
11906
11907 fi
11908
11909
11910 fi
11911
11912
11913 fi
11914
11915
11916 fi
11917
11918
11919 fi
11920
11921 ;;
11922 esac
11923
11924 if test no = "$lt_cv_dlopen"; then
11925 enable_dlopen=no
11926 else
11927 enable_dlopen=yes
11928 fi
11929
11930 case $lt_cv_dlopen in
11931 dlopen)
11932 save_CPPFLAGS=$CPPFLAGS
11933 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11934
11935 save_LDFLAGS=$LDFLAGS
11936 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11937
11938 save_LIBS=$LIBS
11939 LIBS="$lt_cv_dlopen_libs $LIBS"
11940
11941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11942 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11943 if ${lt_cv_dlopen_self+:} false; then :
11944 $as_echo_n "(cached) " >&6
11945 else
11946 if test yes = "$cross_compiling"; then :
11947 lt_cv_dlopen_self=cross
11948 else
11949 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11950 lt_status=$lt_dlunknown
11951 cat > conftest.$ac_ext <<_LT_EOF
11952 #line $LINENO "configure"
11953 #include "confdefs.h"
11954
11955 #if HAVE_DLFCN_H
11956 #include <dlfcn.h>
11957 #endif
11958
11959 #include <stdio.h>
11960
11961 #ifdef RTLD_GLOBAL
11962 # define LT_DLGLOBAL RTLD_GLOBAL
11963 #else
11964 # ifdef DL_GLOBAL
11965 # define LT_DLGLOBAL DL_GLOBAL
11966 # else
11967 # define LT_DLGLOBAL 0
11968 # endif
11969 #endif
11970
11971 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11972 find out it does not work in some platform. */
11973 #ifndef LT_DLLAZY_OR_NOW
11974 # ifdef RTLD_LAZY
11975 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11976 # else
11977 # ifdef DL_LAZY
11978 # define LT_DLLAZY_OR_NOW DL_LAZY
11979 # else
11980 # ifdef RTLD_NOW
11981 # define LT_DLLAZY_OR_NOW RTLD_NOW
11982 # else
11983 # ifdef DL_NOW
11984 # define LT_DLLAZY_OR_NOW DL_NOW
11985 # else
11986 # define LT_DLLAZY_OR_NOW 0
11987 # endif
11988 # endif
11989 # endif
11990 # endif
11991 #endif
11992
11993 /* When -fvisibility=hidden is used, assume the code has been annotated
11994 correspondingly for the symbols needed. */
11995 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11996 int fnord () __attribute__((visibility("default")));
11997 #endif
11998
11999 int fnord () { return 42; }
12000 int main ()
12001 {
12002 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12003 int status = $lt_dlunknown;
12004
12005 if (self)
12006 {
12007 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12008 else
12009 {
12010 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12011 else puts (dlerror ());
12012 }
12013 /* dlclose (self); */
12014 }
12015 else
12016 puts (dlerror ());
12017
12018 return status;
12019 }
12020 _LT_EOF
12021 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12022 (eval $ac_link) 2>&5
12023 ac_status=$?
12024 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12025 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12026 (./conftest; exit; ) >&5 2>/dev/null
12027 lt_status=$?
12028 case x$lt_status in
12029 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12030 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12031 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12032 esac
12033 else :
12034 # compilation failed
12035 lt_cv_dlopen_self=no
12036 fi
12037 fi
12038 rm -fr conftest*
12039
12040
12041 fi
12042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12043 $as_echo "$lt_cv_dlopen_self" >&6; }
12044
12045 if test yes = "$lt_cv_dlopen_self"; then
12046 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12048 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12049 if ${lt_cv_dlopen_self_static+:} false; then :
12050 $as_echo_n "(cached) " >&6
12051 else
12052 if test yes = "$cross_compiling"; then :
12053 lt_cv_dlopen_self_static=cross
12054 else
12055 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12056 lt_status=$lt_dlunknown
12057 cat > conftest.$ac_ext <<_LT_EOF
12058 #line $LINENO "configure"
12059 #include "confdefs.h"
12060
12061 #if HAVE_DLFCN_H
12062 #include <dlfcn.h>
12063 #endif
12064
12065 #include <stdio.h>
12066
12067 #ifdef RTLD_GLOBAL
12068 # define LT_DLGLOBAL RTLD_GLOBAL
12069 #else
12070 # ifdef DL_GLOBAL
12071 # define LT_DLGLOBAL DL_GLOBAL
12072 # else
12073 # define LT_DLGLOBAL 0
12074 # endif
12075 #endif
12076
12077 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12078 find out it does not work in some platform. */
12079 #ifndef LT_DLLAZY_OR_NOW
12080 # ifdef RTLD_LAZY
12081 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12082 # else
12083 # ifdef DL_LAZY
12084 # define LT_DLLAZY_OR_NOW DL_LAZY
12085 # else
12086 # ifdef RTLD_NOW
12087 # define LT_DLLAZY_OR_NOW RTLD_NOW
12088 # else
12089 # ifdef DL_NOW
12090 # define LT_DLLAZY_OR_NOW DL_NOW
12091 # else
12092 # define LT_DLLAZY_OR_NOW 0
12093 # endif
12094 # endif
12095 # endif
12096 # endif
12097 #endif
12098
12099 /* When -fvisibility=hidden is used, assume the code has been annotated
12100 correspondingly for the symbols needed. */
12101 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12102 int fnord () __attribute__((visibility("default")));
12103 #endif
12104
12105 int fnord () { return 42; }
12106 int main ()
12107 {
12108 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12109 int status = $lt_dlunknown;
12110
12111 if (self)
12112 {
12113 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12114 else
12115 {
12116 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12117 else puts (dlerror ());
12118 }
12119 /* dlclose (self); */
12120 }
12121 else
12122 puts (dlerror ());
12123
12124 return status;
12125 }
12126 _LT_EOF
12127 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12128 (eval $ac_link) 2>&5
12129 ac_status=$?
12130 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12131 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12132 (./conftest; exit; ) >&5 2>/dev/null
12133 lt_status=$?
12134 case x$lt_status in
12135 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12136 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12137 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12138 esac
12139 else :
12140 # compilation failed
12141 lt_cv_dlopen_self_static=no
12142 fi
12143 fi
12144 rm -fr conftest*
12145
12146
12147 fi
12148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12149 $as_echo "$lt_cv_dlopen_self_static" >&6; }
12150 fi
12151
12152 CPPFLAGS=$save_CPPFLAGS
12153 LDFLAGS=$save_LDFLAGS
12154 LIBS=$save_LIBS
12155 ;;
12156 esac
12157
12158 case $lt_cv_dlopen_self in
12159 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12160 *) enable_dlopen_self=unknown ;;
12161 esac
12162
12163 case $lt_cv_dlopen_self_static in
12164 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12165 *) enable_dlopen_self_static=unknown ;;
12166 esac
12167 fi
12168
12169
12170
12171
12172
12173
12174
12175
12176
12177
12178
12179
12180
12181
12182
12183
12184
12185 striplib=
12186 old_striplib=
12187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12188 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
12189 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12190 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12191 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12193 $as_echo "yes" >&6; }
12194 else
12195 # FIXME - insert some real tests, host_os isn't really good enough
12196 case $host_os in
12197 darwin*)
12198 if test -n "$STRIP"; then
12199 striplib="$STRIP -x"
12200 old_striplib="$STRIP -S"
12201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12202 $as_echo "yes" >&6; }
12203 else
12204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12205 $as_echo "no" >&6; }
12206 fi
12207 ;;
12208 *)
12209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12210 $as_echo "no" >&6; }
12211 ;;
12212 esac
12213 fi
12214
12215
12216
12217
12218
12219
12220
12221
12222
12223
12224
12225
12226 # Report what library types will actually be built
12227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12228 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12230 $as_echo "$can_build_shared" >&6; }
12231
12232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12233 $as_echo_n "checking whether to build shared libraries... " >&6; }
12234 test no = "$can_build_shared" && enable_shared=no
12235
12236 # On AIX, shared libraries and static libraries use the same namespace, and
12237 # are all built from PIC.
12238 case $host_os in
12239 aix3*)
12240 test yes = "$enable_shared" && enable_static=no
12241 if test -n "$RANLIB"; then
12242 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12243 postinstall_cmds='$RANLIB $lib'
12244 fi
12245 ;;
12246
12247 aix[4-9]*)
12248 if test ia64 != "$host_cpu"; then
12249 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
12250 yes,aix,yes) ;; # shared object as lib.so file only
12251 yes,svr4,*) ;; # shared object as lib.so archive member only
12252 yes,*) enable_static=no ;; # shared object in lib.a archive as well
12253 esac
12254 fi
12255 ;;
12256 esac
12257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12258 $as_echo "$enable_shared" >&6; }
12259
12260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12261 $as_echo_n "checking whether to build static libraries... " >&6; }
12262 # Make sure either enable_shared or enable_static is yes.
12263 test yes = "$enable_shared" || enable_static=yes
12264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12265 $as_echo "$enable_static" >&6; }
12266
12267
12268
12269
12270 fi
12271 ac_ext=c
12272 ac_cpp='$CPP $CPPFLAGS'
12273 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12274 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12275 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12276
12277 CC=$lt_save_CC
12278
12279
12280
12281
12282
12283
12284
12285
12286
12287
12288
12289
12290
12291
12292
12293 ac_config_commands="$ac_config_commands libtool"
12294
12295
12296
12297
12298 # Only expand once:
12299
12300
12301 # By default we simply use the C compiler to build assembly code.
12302
12303 test "${CCAS+set}" = set || CCAS=$CC
12304 test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
12305
12306
12307
12308 depcc="$CCAS" am_compiler_list=
12309
12310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
12311 $as_echo_n "checking dependency style of $depcc... " >&6; }
12312 if ${am_cv_CCAS_dependencies_compiler_type+:} false; then :
12313 $as_echo_n "(cached) " >&6
12314 else
12315 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
12316 # We make a subdir and do the tests there. Otherwise we can end up
12317 # making bogus files that we don't know about and never remove. For
12318 # instance it was reported that on HP-UX the gcc test will end up
12319 # making a dummy file named 'D' -- because '-MD' means "put the output
12320 # in D".
12321 rm -rf conftest.dir
12322 mkdir conftest.dir
12323 # Copy depcomp to subdir because otherwise we won't find it if we're
12324 # using a relative directory.
12325 cp "$am_depcomp" conftest.dir
12326 cd conftest.dir
12327 # We will build objects and dependencies in a subdirectory because
12328 # it helps to detect inapplicable dependency modes. For instance
12329 # both Tru64's cc and ICC support -MD to output dependencies as a
12330 # side effect of compilation, but ICC will put the dependencies in
12331 # the current directory while Tru64 will put them in the object
12332 # directory.
12333 mkdir sub
12334
12335 am_cv_CCAS_dependencies_compiler_type=none
12336 if test "$am_compiler_list" = ""; then
12337 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
12338 fi
12339 am__universal=false
12340
12341
12342 for depmode in $am_compiler_list; do
12343 # Setup a source with many dependencies, because some compilers
12344 # like to wrap large dependency lists on column 80 (with \), and
12345 # we should not choose a depcomp mode which is confused by this.
12346 #
12347 # We need to recreate these files for each test, as the compiler may
12348 # overwrite some of them when testing with obscure command lines.
12349 # This happens at least with the AIX C compiler.
12350 : > sub/conftest.c
12351 for i in 1 2 3 4 5 6; do
12352 echo '#include "conftst'$i'.h"' >> sub/conftest.c
12353 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
12354 # Solaris 10 /bin/sh.
12355 echo '/* dummy */' > sub/conftst$i.h
12356 done
12357 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
12358
12359 # We check with '-c' and '-o' for the sake of the "dashmstdout"
12360 # mode. It turns out that the SunPro C++ compiler does not properly
12361 # handle '-M -o', and we need to detect this. Also, some Intel
12362 # versions had trouble with output in subdirs.
12363 am__obj=sub/conftest.${OBJEXT-o}
12364 am__minus_obj="-o $am__obj"
12365 case $depmode in
12366 gcc)
12367 # This depmode causes a compiler race in universal mode.
12368 test "$am__universal" = false || continue
12369 ;;
12370 nosideeffect)
12371 # After this tag, mechanisms are not by side-effect, so they'll
12372 # only be used when explicitly requested.
12373 if test "x$enable_dependency_tracking" = xyes; then
12374 continue
12375 else
12376 break
12377 fi
12378 ;;
12379 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
12380 # This compiler won't grok '-c -o', but also, the minuso test has
12381 # not run yet. These depmodes are late enough in the game, and
12382 # so weak that their functioning should not be impacted.
12383 am__obj=conftest.${OBJEXT-o}
12384 am__minus_obj=
12385 ;;
12386 none) break ;;
12387 esac
12388 if depmode=$depmode \
12389 source=sub/conftest.c object=$am__obj \
12390 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
12391 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
12392 >/dev/null 2>conftest.err &&
12393 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
12394 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
12395 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
12396 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
12397 # icc doesn't choke on unknown options, it will just issue warnings
12398 # or remarks (even with -Werror). So we grep stderr for any message
12399 # that says an option was ignored or not supported.
12400 # When given -MP, icc 7.0 and 7.1 complain thusly:
12401 # icc: Command line warning: ignoring option '-M'; no argument required
12402 # The diagnosis changed in icc 8.0:
12403 # icc: Command line remark: option '-MP' not supported
12404 if (grep 'ignoring option' conftest.err ||
12405 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
12406 am_cv_CCAS_dependencies_compiler_type=$depmode
12407 break
12408 fi
12409 fi
12410 done
12411
12412 cd ..
12413 rm -rf conftest.dir
12414 else
12415 am_cv_CCAS_dependencies_compiler_type=none
12416 fi
12417
12418 fi
12419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CCAS_dependencies_compiler_type" >&5
12420 $as_echo "$am_cv_CCAS_dependencies_compiler_type" >&6; }
12421 CCASDEPMODE=depmode=$am_cv_CCAS_dependencies_compiler_type
12422
12423 if
12424 test "x$enable_dependency_tracking" != xno \
12425 && test "$am_cv_CCAS_dependencies_compiler_type" = gcc3; then
12426 am__fastdepCCAS_TRUE=
12427 am__fastdepCCAS_FALSE='#'
12428 else
12429 am__fastdepCCAS_TRUE='#'
12430 am__fastdepCCAS_FALSE=
12431 fi
12432
12433
12434
12435
12436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking zfs author" >&5
12437 $as_echo_n "checking zfs author... " >&6; }
12438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZFS_META_AUTHOR" >&5
12439 $as_echo "$ZFS_META_AUTHOR" >&6; }
12440
12441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking zfs license" >&5
12442 $as_echo_n "checking zfs license... " >&6; }
12443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZFS_META_LICENSE" >&5
12444 $as_echo "$ZFS_META_LICENSE" >&6; }
12445
12446
12447
12448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linux distribution" >&5
12449 $as_echo_n "checking linux distribution... " >&6; }
12450 if test -f /etc/toss-release ; then
12451 VENDOR=toss ;
12452 elif test -f /etc/fedora-release ; then
12453 VENDOR=fedora ;
12454 elif test -f /etc/redhat-release ; then
12455 VENDOR=redhat ;
12456 elif test -f /etc/gentoo-release ; then
12457 VENDOR=gentoo ;
12458 elif test -f /etc/arch-release ; then
12459 VENDOR=arch ;
12460 elif test -f /etc/SuSE-release ; then
12461 VENDOR=sles ;
12462 elif test -f /etc/slackware-version ; then
12463 VENDOR=slackware ;
12464 elif test -f /etc/lunar.release ; then
12465 VENDOR=lunar ;
12466 elif test -f /etc/lsb-release ; then
12467 VENDOR=ubuntu ;
12468 elif test -f /etc/debian_version ; then
12469 VENDOR=debian ;
12470 else
12471 VENDOR= ;
12472 fi
12473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $VENDOR" >&5
12474 $as_echo "$VENDOR" >&6; }
12475
12476
12477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking default package type" >&5
12478 $as_echo_n "checking default package type... " >&6; }
12479 case "$VENDOR" in
12480 toss) DEFAULT_PACKAGE=rpm ;;
12481 redhat) DEFAULT_PACKAGE=rpm ;;
12482 fedora) DEFAULT_PACKAGE=rpm ;;
12483 gentoo) DEFAULT_PACKAGE=tgz ;;
12484 arch) DEFAULT_PACKAGE=tgz ;;
12485 sles) DEFAULT_PACKAGE=rpm ;;
12486 slackware) DEFAULT_PACKAGE=tgz ;;
12487 lunar) DEFAULT_PACKAGE=tgz ;;
12488 ubuntu) DEFAULT_PACKAGE=deb ;;
12489 debian) DEFAULT_PACKAGE=deb ;;
12490 *) DEFAULT_PACKAGE=rpm ;;
12491 esac
12492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEFAULT_PACKAGE" >&5
12493 $as_echo "$DEFAULT_PACKAGE" >&6; }
12494
12495
12496 DEFAULT_INIT_DIR=$sysconfdir/init.d
12497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking default init directory" >&5
12498 $as_echo_n "checking default init directory... " >&6; }
12499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEFAULT_INIT_DIR" >&5
12500 $as_echo "$DEFAULT_INIT_DIR" >&6; }
12501
12502
12503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking default init script type" >&5
12504 $as_echo_n "checking default init script type... " >&6; }
12505 case "$VENDOR" in
12506 toss) DEFAULT_INIT_SCRIPT=redhat ;;
12507 redhat) DEFAULT_INIT_SCRIPT=redhat ;;
12508 fedora) DEFAULT_INIT_SCRIPT=fedora ;;
12509 gentoo) DEFAULT_INIT_SCRIPT=gentoo ;;
12510 arch) DEFAULT_INIT_SCRIPT=lsb ;;
12511 sles) DEFAULT_INIT_SCRIPT=lsb ;;
12512 slackware) DEFAULT_INIT_SCRIPT=lsb ;;
12513 lunar) DEFAULT_INIT_SCRIPT=lunar ;;
12514 ubuntu) DEFAULT_INIT_SCRIPT=lsb ;;
12515 debian) DEFAULT_INIT_SCRIPT=lsb ;;
12516 *) DEFAULT_INIT_SCRIPT=lsb ;;
12517 esac
12518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEFAULT_INIT_SCRIPT" >&5
12519 $as_echo "$DEFAULT_INIT_SCRIPT" >&6; }
12520
12521
12522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking default init config direectory" >&5
12523 $as_echo_n "checking default init config direectory... " >&6; }
12524 case "$VENDOR" in
12525 gentoo) DEFAULT_INITCONF_DIR=/etc/conf.d ;;
12526 toss) DEFAULT_INITCONF_DIR=/etc/sysconfig ;;
12527 redhat) DEFAULT_INITCONF_DIR=/etc/sysconfig ;;
12528 fedora) DEFAULT_INITCONF_DIR=/etc/sysconfig ;;
12529 sles) DEFAULT_INITCONF_DIR=/etc/sysconfig ;;
12530 ubuntu) DEFAULT_INITCONF_DIR=/etc/default ;;
12531 debian) DEFAULT_INITCONF_DIR=/etc/default ;;
12532 *) DEFAULT_INITCONF_DIR=/etc/default ;;
12533 esac
12534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEFAULT_INITCONF_DIR" >&5
12535 $as_echo "$DEFAULT_INITCONF_DIR" >&6; }
12536
12537
12538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether initramfs-tools is available" >&5
12539 $as_echo_n "checking whether initramfs-tools is available... " >&6; }
12540 if test -d /usr/share/initramfs-tools ; then
12541 DEFINE_INITRAMFS='--define "_initramfs 1"'
12542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12543 $as_echo "yes" >&6; }
12544 else
12545 DEFINE_INITRAMFS=''
12546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12547 $as_echo "no" >&6; }
12548 fi
12549
12550
12551
12552 RPM=rpm
12553 RPMBUILD=rpmbuild
12554
12555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $RPM is available" >&5
12556 $as_echo_n "checking whether $RPM is available... " >&6; }
12557 if tmp=$($RPM --version 2>/dev/null); then :
12558
12559 RPM_VERSION=$(echo $tmp | $AWK '/RPM/ { print $3 }')
12560 HAVE_RPM=yes
12561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_RPM ($RPM_VERSION)" >&5
12562 $as_echo "$HAVE_RPM ($RPM_VERSION)" >&6; }
12563
12564 else
12565
12566 HAVE_RPM=no
12567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_RPM" >&5
12568 $as_echo "$HAVE_RPM" >&6; }
12569
12570 fi
12571
12572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $RPMBUILD is available" >&5
12573 $as_echo_n "checking whether $RPMBUILD is available... " >&6; }
12574 if tmp=$($RPMBUILD --version 2>/dev/null); then :
12575
12576 RPMBUILD_VERSION=$(echo $tmp | $AWK '/RPM/ { print $3 }')
12577 HAVE_RPMBUILD=yes
12578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_RPMBUILD ($RPMBUILD_VERSION)" >&5
12579 $as_echo "$HAVE_RPMBUILD ($RPMBUILD_VERSION)" >&6; }
12580
12581 else
12582
12583 HAVE_RPMBUILD=no
12584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_RPMBUILD" >&5
12585 $as_echo "$HAVE_RPMBUILD" >&6; }
12586
12587 fi
12588
12589 RPM_DEFINE_COMMON='--define "$(DEBUG_ZFS) 1" --define "$(DEBUG_DMU_TX) 1"'
12590 RPM_DEFINE_UTIL='--define "_dracutdir $(dracutdir)" --define "_udevdir $(udevdir)" --define "_udevruledir $(udevruledir)" --define "_initconfdir $(DEFAULT_INITCONF_DIR)" $(DEFINE_INITRAMFS)'
12591 RPM_DEFINE_KMOD='--define "kernels $(LINUX_VERSION)" --define "require_spldir $(SPL)" --define "require_splobj $(SPL_OBJ)" --define "ksrc $(LINUX)" --define "kobj $(LINUX_OBJ)"'
12592 RPM_DEFINE_DKMS=
12593
12594 SRPM_DEFINE_COMMON='--define "build_src_rpm 1"'
12595 SRPM_DEFINE_UTIL=
12596 SRPM_DEFINE_KMOD=
12597 SRPM_DEFINE_DKMS=
12598
12599 RPM_SPEC_DIR="rpm/generic"
12600
12601 # Check whether --with-spec was given.
12602 if test "${with_spec+set}" = set; then :
12603 withval=$with_spec; RPM_SPEC_DIR="rpm/$withval"
12604 fi
12605
12606
12607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether spec files are available" >&5
12608 $as_echo_n "checking whether spec files are available... " >&6; }
12609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($RPM_SPEC_DIR/*.spec.in)" >&5
12610 $as_echo "yes ($RPM_SPEC_DIR/*.spec.in)" >&6; }
12611
12612
12613
12614
12615
12616
12617
12618
12619
12620
12621
12622
12623
12624
12625
12626
12627
12628
12629
12630
12631 DPKG=dpkg
12632 DPKGBUILD=dpkg-buildpackage
12633
12634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $DPKG is available" >&5
12635 $as_echo_n "checking whether $DPKG is available... " >&6; }
12636 if tmp=$($DPKG --version 2>/dev/null); then :
12637
12638 DPKG_VERSION=$(echo $tmp | $AWK '/Debian/ { print $7 }')
12639 HAVE_DPKG=yes
12640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_DPKG ($DPKG_VERSION)" >&5
12641 $as_echo "$HAVE_DPKG ($DPKG_VERSION)" >&6; }
12642
12643 else
12644
12645 HAVE_DPKG=no
12646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_DPKG" >&5
12647 $as_echo "$HAVE_DPKG" >&6; }
12648
12649 fi
12650
12651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $DPKGBUILD is available" >&5
12652 $as_echo_n "checking whether $DPKGBUILD is available... " >&6; }
12653 if tmp=$($DPKGBUILD --version 2>/dev/null); then :
12654
12655 DPKGBUILD_VERSION=$(echo $tmp | \
12656 $AWK '/Debian/ { print $4 }' | cut -f-4 -d'.')
12657 HAVE_DPKGBUILD=yes
12658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_DPKGBUILD ($DPKGBUILD_VERSION)" >&5
12659 $as_echo "$HAVE_DPKGBUILD ($DPKGBUILD_VERSION)" >&6; }
12660
12661 else
12662
12663 HAVE_DPKGBUILD=no
12664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_DPKGBUILD" >&5
12665 $as_echo "$HAVE_DPKGBUILD" >&6; }
12666
12667 fi
12668
12669
12670
12671
12672
12673
12674
12675
12676
12677
12678 ALIEN=alien
12679
12680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ALIEN is available" >&5
12681 $as_echo_n "checking whether $ALIEN is available... " >&6; }
12682 if tmp=$($ALIEN --version 2>/dev/null); then :
12683
12684 ALIEN_VERSION=$(echo $tmp | $AWK '{ print $3 }')
12685 HAVE_ALIEN=yes
12686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_ALIEN ($ALIEN_VERSION)" >&5
12687 $as_echo "$HAVE_ALIEN ($ALIEN_VERSION)" >&6; }
12688
12689 else
12690
12691 HAVE_ALIEN=no
12692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_ALIEN" >&5
12693 $as_echo "$HAVE_ALIEN" >&6; }
12694
12695 fi
12696
12697
12698
12699
12700
12701
12702
12703 TARGET_ASM_DIR=asm-generic
12704
12705
12706 ZFS_CONFIG=all
12707
12708 # Check whether --with-config was given.
12709 if test "${with_config+set}" = set; then :
12710 withval=$with_config; ZFS_CONFIG="$withval"
12711 fi
12712
12713 # Check whether --enable-linux-builtin was given.
12714 if test "${enable_linux_builtin+set}" = set; then :
12715 enableval=$enable_linux_builtin;
12716 else
12717 enable_linux_builtin=no
12718 fi
12719
12720
12721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking zfs config" >&5
12722 $as_echo_n "checking zfs config... " >&6; }
12723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZFS_CONFIG" >&5
12724 $as_echo "$ZFS_CONFIG" >&6; };
12725
12726
12727
12728
12729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -Wno-unused-but-set-variable support" >&5
12730 $as_echo_n "checking for -Wno-unused-but-set-variable support... " >&6; }
12731
12732 saved_flags="$CFLAGS"
12733 CFLAGS="$CFLAGS -Wunused-but-set-variable"
12734
12735 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12736 /* end confdefs.h. */
12737
12738 int
12739 main ()
12740 {
12741
12742 ;
12743 return 0;
12744 }
12745 _ACEOF
12746 if ac_fn_c_try_compile "$LINENO"; then :
12747
12748 NO_UNUSED_BUT_SET_VARIABLE=-Wno-unused-but-set-variable
12749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12750 $as_echo "yes" >&6; }
12751
12752 else
12753
12754 NO_UNUSED_BUT_SET_VARIABLE=
12755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12756 $as_echo "no" >&6; }
12757
12758 fi
12759 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12760
12761 CFLAGS="$saved_flags"
12762
12763
12764
12765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -Wno-bool-compare support" >&5
12766 $as_echo_n "checking for -Wno-bool-compare support... " >&6; }
12767
12768 saved_flags="$CFLAGS"
12769 CFLAGS="$CFLAGS -Wbool-compare"
12770
12771 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12772 /* end confdefs.h. */
12773
12774 int
12775 main ()
12776 {
12777
12778 ;
12779 return 0;
12780 }
12781 _ACEOF
12782 if ac_fn_c_try_compile "$LINENO"; then :
12783
12784 NO_BOOL_COMPARE=-Wno-bool-compare
12785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12786 $as_echo "yes" >&6; }
12787
12788 else
12789
12790 NO_BOOL_COMPARE=
12791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12792 $as_echo "no" >&6; }
12793
12794 fi
12795 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12796
12797 CFLAGS="$saved_flags"
12798
12799
12800
12801
12802 case "$ZFS_CONFIG" in
12803 kernel)
12804
12805
12806 # Check whether --with-linux was given.
12807 if test "${with_linux+set}" = set; then :
12808 withval=$with_linux; kernelsrc="$withval"
12809 fi
12810
12811
12812
12813 # Check whether --with-linux-obj was given.
12814 if test "${with_linux_obj+set}" = set; then :
12815 withval=$with_linux_obj; kernelbuild="$withval"
12816 fi
12817
12818
12819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking kernel source directory" >&5
12820 $as_echo_n "checking kernel source directory... " >&6; }
12821 if test -z "$kernelsrc"; then :
12822
12823 if test -e "/lib/modules/$(uname -r)/source"; then :
12824
12825 headersdir="/lib/modules/$(uname -r)/source"
12826 sourcelink=$(readlink -f "$headersdir")
12827
12828 elif test -e "/lib/modules/$(uname -r)/build"; then :
12829
12830 headersdir="/lib/modules/$(uname -r)/build"
12831 sourcelink=$(readlink -f "$headersdir")
12832
12833 else
12834
12835 sourcelink=$(ls -1d /usr/src/kernels/* \
12836 /usr/src/linux-* \
12837 2>/dev/null | grep -v obj | tail -1)
12838
12839 fi
12840
12841 if test -n "$sourcelink" && test -e ${sourcelink}; then :
12842
12843 kernelsrc=`readlink -f ${sourcelink}`
12844
12845 else
12846
12847 kernelsrc="Not found"
12848
12849 fi
12850
12851 else
12852
12853 if test "$kernelsrc" = "NONE"; then :
12854
12855 kernsrcver=NONE
12856
12857 fi
12858
12859 fi
12860
12861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kernelsrc" >&5
12862 $as_echo "$kernelsrc" >&6; }
12863 if test ! -d "$kernelsrc"; then :
12864
12865 as_fn_error $? "
12866 *** Please make sure the kernel devel package for your distribution
12867 *** is installed and then try again. If that fails, you can specify the
12868 *** location of the kernel source with the '--with-linux=PATH' option." "$LINENO" 5
12869
12870 fi
12871
12872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking kernel build directory" >&5
12873 $as_echo_n "checking kernel build directory... " >&6; }
12874 if test -z "$kernelbuild"; then :
12875
12876 if test -e "/lib/modules/$(uname -r)/build"; then :
12877
12878 kernelbuild=`readlink -f /lib/modules/$(uname -r)/build`
12879
12880 elif test -d ${kernelsrc}-obj/${target_cpu}/${target_cpu}; then :
12881
12882 kernelbuild=${kernelsrc}-obj/${target_cpu}/${target_cpu}
12883
12884 elif test -d ${kernelsrc}-obj/${target_cpu}/default; then :
12885
12886 kernelbuild=${kernelsrc}-obj/${target_cpu}/default
12887
12888 elif test -d `dirname ${kernelsrc}`/build-${target_cpu}; then :
12889
12890 kernelbuild=`dirname ${kernelsrc}`/build-${target_cpu}
12891
12892 else
12893
12894 kernelbuild=${kernelsrc}
12895
12896 fi
12897
12898 fi
12899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kernelbuild" >&5
12900 $as_echo "$kernelbuild" >&6; }
12901
12902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking kernel source version" >&5
12903 $as_echo_n "checking kernel source version... " >&6; }
12904 utsrelease1=$kernelbuild/include/linux/version.h
12905 utsrelease2=$kernelbuild/include/linux/utsrelease.h
12906 utsrelease3=$kernelbuild/include/generated/utsrelease.h
12907 if test -r $utsrelease1 && fgrep -q UTS_RELEASE $utsrelease1; then :
12908
12909 utsrelease=linux/version.h
12910
12911 elif test -r $utsrelease2 && fgrep -q UTS_RELEASE $utsrelease2; then :
12912
12913 utsrelease=linux/utsrelease.h
12914
12915 elif test -r $utsrelease3 && fgrep -q UTS_RELEASE $utsrelease3; then :
12916
12917 utsrelease=generated/utsrelease.h
12918
12919 fi
12920
12921 if test "$utsrelease"; then :
12922
12923 kernsrcver=`(echo "#include <$utsrelease>";
12924 echo "kernsrcver=UTS_RELEASE") |
12925 cpp -I $kernelbuild/include |
12926 grep "^kernsrcver=" | cut -d \" -f 2`
12927
12928 if test -z "$kernsrcver"; then :
12929
12930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not found" >&5
12931 $as_echo "Not found" >&6; }
12932 as_fn_error $? "*** Cannot determine kernel version." "$LINENO" 5
12933
12934 fi
12935
12936 else
12937
12938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not found" >&5
12939 $as_echo "Not found" >&6; }
12940 if test "x$enable_linux_builtin" != xyes; then
12941 as_fn_error $? "*** Cannot find UTS_RELEASE definition." "$LINENO" 5
12942 else
12943 as_fn_error $? "
12944 *** Cannot find UTS_RELEASE definition.
12945 *** Please run 'make prepare' inside the kernel source tree." "$LINENO" 5
12946 fi
12947
12948 fi
12949
12950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kernsrcver" >&5
12951 $as_echo "$kernsrcver" >&6; }
12952
12953 LINUX=${kernelsrc}
12954 LINUX_OBJ=${kernelbuild}
12955 LINUX_VERSION=${kernsrcver}
12956
12957
12958
12959
12960
12961
12962 modpost=$LINUX/scripts/Makefile.modpost
12963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking kernel file name for module symbols" >&5
12964 $as_echo_n "checking kernel file name for module symbols... " >&6; }
12965 if test "x$enable_linux_builtin" != xyes -a -f "$modpost"; then :
12966
12967 if grep -q Modules.symvers $modpost; then :
12968
12969 LINUX_SYMBOLS=Modules.symvers
12970
12971 else
12972
12973 LINUX_SYMBOLS=Module.symvers
12974
12975 fi
12976
12977 if test ! -f "$LINUX_OBJ/$LINUX_SYMBOLS"; then :
12978
12979 as_fn_error $? "
12980 *** Please make sure the kernel devel package for your distribution
12981 *** is installed. If you are building with a custom kernel, make sure the
12982 *** kernel is configured, built, and the '--with-linux=PATH' configure
12983 *** option refers to the location of the kernel source." "$LINENO" 5
12984
12985 fi
12986
12987 else
12988
12989 LINUX_SYMBOLS=NONE
12990
12991 fi
12992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINUX_SYMBOLS" >&5
12993 $as_echo "$LINUX_SYMBOLS" >&6; }
12994
12995
12996
12997
12998
12999 # Check whether --with-spl was given.
13000 if test "${with_spl+set}" = set; then :
13001 withval=$with_spl; splsrc="$withval"
13002 fi
13003
13004
13005
13006 # Check whether --with-spl-obj was given.
13007 if test "${with_spl_obj+set}" = set; then :
13008 withval=$with_spl_obj; splbuild="$withval"
13009 fi
13010
13011
13012
13013 # Check whether --with-spl-timeout was given.
13014 if test "${with_spl_timeout+set}" = set; then :
13015 withval=$with_spl_timeout; timeout="$withval"
13016 else
13017 timeout=0
13018 fi
13019
13020
13021 splsrc0="/var/lib/dkms/spl/${VERSION}/build"
13022 splsrc1="/usr/local/src/spl-${VERSION}/${LINUX_VERSION}"
13023 splsrc2="/usr/local/src/spl-${VERSION}"
13024 splsrc3="/usr/src/spl-${VERSION}/${LINUX_VERSION}"
13025 splsrc4="/usr/src/spl-${VERSION}"
13026 splsrc5="../spl/"
13027 splsrc6="$LINUX"
13028
13029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking spl source directory" >&5
13030 $as_echo_n "checking spl source directory... " >&6; }
13031 if test -z "${splsrc}"; then :
13032
13033 if test -e "${splsrc0}/spl.release.in"; then :
13034
13035 splsrc=${splsrc0}
13036
13037 elif test -e "${splsrc1}/spl.release.in"; then :
13038
13039 splsrc=${splsrc1}
13040
13041 elif test -e "${splsrc2}/spl.release.in"; then :
13042
13043 splsrc=${splsrc2}
13044
13045 elif test -e "${splsrc3}/spl.release.in"; then :
13046
13047 splsrc=$(readlink -f "${splsrc3}")
13048
13049 elif test -e "${splsrc4}/spl.release.in" ; then :
13050
13051 splsrc=${splsrc4}
13052
13053 elif test -e "${splsrc5}/spl.release.in"; then :
13054
13055 splsrc=$(readlink -f "${splsrc5}")
13056
13057 elif test -e "${splsrc6}/spl.release.in" ; then :
13058
13059 splsrc=${splsrc6}
13060
13061 else
13062
13063 splsrc="Not found"
13064
13065 fi
13066
13067 else
13068
13069 if test "$splsrc" = "NONE"; then :
13070
13071 splbuild=NONE
13072 splsrcver=NONE
13073
13074 fi
13075
13076 fi
13077
13078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $splsrc" >&5
13079 $as_echo "$splsrc" >&6; }
13080 if test ! -e "$splsrc/spl.release.in"; then :
13081
13082 as_fn_error $? "
13083 *** Please make sure the kmod spl devel package for your distribution
13084 *** is installed then try again. If that fails you can specify the
13085 *** location of the spl source with the '--with-spl=PATH' option." "$LINENO" 5
13086
13087 fi
13088
13089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking spl build directory" >&5
13090 $as_echo_n "checking spl build directory... " >&6; }
13091 while true; do
13092 if test -z "$splbuild"; then :
13093
13094 if test -e "${splsrc}/${LINUX_VERSION}/spl_config.h" ; then :
13095
13096 splbuild="${splsrc}/${LINUX_VERSION}"
13097
13098 elif test -e "${splsrc}/spl_config.h" ; then :
13099
13100 splbuild="${splsrc}"
13101
13102 elif find -L "${splsrc}" -name spl_config.h 2> /dev/null | grep -wq spl_config.h ; then :
13103
13104 splbuild=$(find -L "${splsrc}" -name spl_config.h | sed 's,/spl_config.h,,')
13105
13106 else
13107
13108 splbuild="Not found"
13109
13110 fi
13111
13112 fi
13113 if test -e "$splbuild/spl_config.h" -o $timeout -le 0; then :
13114
13115 break;
13116
13117 else
13118
13119 sleep 1
13120 timeout=$((timeout-1))
13121
13122 fi
13123 done
13124
13125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $splbuild" >&5
13126 $as_echo "$splbuild" >&6; }
13127 if ! test -e "$splbuild/spl_config.h"; then :
13128
13129 as_fn_error $? "
13130 *** Please make sure the kmod spl devel <kernel> package for your
13131 *** distribution is installed then try again. If that fails you
13132 *** can specify the location of the spl objects with the
13133 *** '--with-spl-obj=PATH' option." "$LINENO" 5
13134
13135 fi
13136
13137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking spl source version" >&5
13138 $as_echo_n "checking spl source version... " >&6; }
13139 if test -r $splbuild/spl_config.h &&
13140 fgrep -q SPL_META_VERSION $splbuild/spl_config.h; then :
13141
13142
13143 splsrcver=`(echo "#include <spl_config.h>";
13144 echo "splsrcver=SPL_META_VERSION-SPL_META_RELEASE") |
13145 cpp -I $splbuild |
13146 grep "^splsrcver=" | tr -d \" | cut -d= -f2`
13147
13148 fi
13149
13150 if test -z "$splsrcver"; then :
13151
13152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not found" >&5
13153 $as_echo "Not found" >&6; }
13154 as_fn_error $? "
13155 *** Cannot determine the version of the spl source.
13156 *** Please prepare the spl source before running this script" "$LINENO" 5
13157
13158 fi
13159
13160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $splsrcver" >&5
13161 $as_echo "$splsrcver" >&6; }
13162
13163 SPL=${splsrc}
13164 SPL_OBJ=${splbuild}
13165 SPL_VERSION=${splsrcver}
13166
13167
13168
13169
13170
13171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking spl file name for module symbols" >&5
13172 $as_echo_n "checking spl file name for module symbols... " >&6; }
13173 SPL_SYMBOLS=NONE
13174
13175 while true; do
13176 if test -r $SPL_OBJ/Module.symvers; then :
13177
13178 SPL_SYMBOLS=Module.symvers
13179
13180 elif test -r $SPL_OBJ/Modules.symvers; then :
13181
13182 SPL_SYMBOLS=Modules.symvers
13183
13184 elif test -r $SPL_OBJ/module/Module.symvers; then :
13185
13186 SPL_SYMBOLS=Module.symvers
13187
13188 elif test -r $SPL_OBJ/module/Modules.symvers; then :
13189
13190 SPL_SYMBOLS=Modules.symvers
13191
13192 fi
13193
13194 if test $SPL_SYMBOLS != NONE -o $timeout -le 0; then :
13195
13196 break;
13197
13198 else
13199
13200 sleep 1
13201 timeout=$((timeout-1))
13202
13203 fi
13204 done
13205
13206 if test "$SPL_SYMBOLS" = NONE; then :
13207
13208 SPL_SYMBOLS=$LINUX_SYMBOLS
13209
13210 fi
13211
13212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SPL_SYMBOLS" >&5
13213 $as_echo "$SPL_SYMBOLS" >&6; }
13214
13215
13216
13217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether modules can be built" >&5
13218 $as_echo_n "checking whether modules can be built... " >&6; }
13219
13220
13221 cat confdefs.h - <<_ACEOF >conftest.c
13222
13223
13224 int
13225 main (void)
13226 {
13227
13228 ;
13229 return 0;
13230 }
13231
13232 _ACEOF
13233
13234
13235
13236 cat - <<_ACEOF >conftest.h
13237
13238 _ACEOF
13239
13240
13241 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
13242 echo "obj-m := conftest.o" >build/Makefile
13243 modpost_flag=''
13244 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
13245 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
13246 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
13247 (eval $ac_try) 2>&5
13248 ac_status=$?
13249 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13250 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
13251 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
13252 (eval $ac_try) 2>&5
13253 ac_status=$?
13254 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13255 test $ac_status = 0; }; }; then :
13256
13257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13258 $as_echo "yes" >&6; }
13259
13260 else
13261 $as_echo "$as_me: failed program was:" >&5
13262 sed 's/^/| /' conftest.$ac_ext >&5
13263
13264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13265 $as_echo "no" >&6; }
13266 if test "x$enable_linux_builtin" != xyes; then
13267 as_fn_error $? "*** Unable to build an empty module." "$LINENO" 5
13268 else
13269 as_fn_error $? "
13270 *** Unable to build an empty module.
13271 *** Please run 'make scripts' inside the kernel source tree." "$LINENO" 5
13272 fi
13273
13274
13275
13276 fi
13277 rm -Rf build
13278
13279
13280
13281
13282 if test "x$cross_compiling" != xyes; then :
13283
13284 if test "$cross_compiling" = yes; then :
13285 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13286 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13287 as_fn_error $? "cannot run test program while cross compiling
13288 See \`config.log' for more details" "$LINENO" 5; }
13289 else
13290 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13291 /* end confdefs.h. */
13292
13293
13294 #include "$LINUX/include/linux/license.h"
13295
13296 int
13297 main ()
13298 {
13299
13300 return !license_is_gpl_compatible("$ZFS_META_LICENSE");
13301
13302 ;
13303 return 0;
13304 }
13305
13306 _ACEOF
13307 if ac_fn_c_try_run "$LINENO"; then :
13308
13309
13310 $as_echo "#define ZFS_IS_GPL_COMPATIBLE 1" >>confdefs.h
13311
13312
13313 fi
13314 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13315 conftest.$ac_objext conftest.beam conftest.$ac_ext
13316 fi
13317
13318
13319 fi
13320
13321
13322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether kernel was built with 16K or larger stacks" >&5
13323 $as_echo_n "checking whether kernel was built with 16K or larger stacks... " >&6; }
13324
13325
13326 cat confdefs.h - <<_ACEOF >conftest.c
13327
13328
13329 #include <linux/module.h>
13330
13331 int
13332 main (void)
13333 {
13334
13335 #if (THREAD_SIZE < 16384)
13336 #error "THREAD_SIZE is less than 16K"
13337 #endif
13338
13339 ;
13340 return 0;
13341 }
13342
13343 _ACEOF
13344
13345
13346
13347 cat - <<_ACEOF >conftest.h
13348
13349 _ACEOF
13350
13351
13352 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
13353 echo "obj-m := conftest.o" >build/Makefile
13354 modpost_flag=''
13355 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
13356 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
13357 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
13358 (eval $ac_try) 2>&5
13359 ac_status=$?
13360 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13361 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
13362 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
13363 (eval $ac_try) 2>&5
13364 ac_status=$?
13365 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13366 test $ac_status = 0; }; }; then :
13367
13368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13369 $as_echo "yes" >&6; }
13370
13371 $as_echo "#define HAVE_LARGE_STACKS 1" >>confdefs.h
13372
13373
13374 else
13375 $as_echo "$as_me: failed program was:" >&5
13376 sed 's/^/| /' conftest.$ac_ext >&5
13377
13378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13379 $as_echo "no" >&6; }
13380
13381
13382
13383 fi
13384 rm -Rf build
13385
13386
13387
13388
13389
13390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether kernel was built with CONFIG_DEBUG_LOCK_ALLOC" >&5
13391 $as_echo_n "checking whether kernel was built with CONFIG_DEBUG_LOCK_ALLOC... " >&6; }
13392
13393
13394 cat confdefs.h - <<_ACEOF >conftest.c
13395
13396
13397 #include <linux/module.h>
13398
13399 int
13400 main (void)
13401 {
13402
13403 #ifndef CONFIG_DEBUG_LOCK_ALLOC
13404 #error CONFIG_DEBUG_LOCK_ALLOC not #defined
13405 #endif
13406
13407 ;
13408 return 0;
13409 }
13410
13411 _ACEOF
13412
13413
13414
13415 cat - <<_ACEOF >conftest.h
13416
13417 _ACEOF
13418
13419
13420 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
13421 echo "obj-m := conftest.o" >build/Makefile
13422 modpost_flag=''
13423 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
13424 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
13425 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
13426 (eval $ac_try) 2>&5
13427 ac_status=$?
13428 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13429 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
13430 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
13431 (eval $ac_try) 2>&5
13432 ac_status=$?
13433 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13434 test $ac_status = 0; }; }; then :
13435
13436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13437 $as_echo "yes" >&6; }
13438
13439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mutex_lock() is GPL-only" >&5
13440 $as_echo_n "checking whether mutex_lock() is GPL-only... " >&6; }
13441 tmp_flags="$EXTRA_KCFLAGS"
13442
13443
13444 cat confdefs.h - <<_ACEOF >conftest.c
13445
13446
13447 #include <linux/module.h>
13448 #include <linux/mutex.h>
13449
13450 MODULE_LICENSE("$ZFS_META_LICENSE");
13451
13452 int
13453 main (void)
13454 {
13455
13456 struct mutex lock;
13457
13458 mutex_init(&lock);
13459 mutex_lock(&lock);
13460 mutex_unlock(&lock);
13461
13462 ;
13463 return 0;
13464 }
13465
13466 _ACEOF
13467
13468
13469
13470 cat - <<_ACEOF >conftest.h
13471
13472 _ACEOF
13473
13474
13475 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
13476 echo "obj-m := conftest.o" >build/Makefile
13477 modpost_flag=''
13478 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
13479 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
13480 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
13481 (eval $ac_try) 2>&5
13482 ac_status=$?
13483 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13484 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
13485 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
13486 (eval $ac_try) 2>&5
13487 ac_status=$?
13488 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13489 test $ac_status = 0; }; }; then :
13490
13491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13492 $as_echo "no" >&6; }
13493
13494 else
13495 $as_echo "$as_me: failed program was:" >&5
13496 sed 's/^/| /' conftest.$ac_ext >&5
13497
13498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13499 $as_echo "yes" >&6; }
13500 as_fn_error $? "
13501 *** Kernel built with CONFIG_DEBUG_LOCK_ALLOC which is incompatible
13502 *** with the CDDL license and will prevent the module linking stage
13503 *** from succeeding. You must rebuild your kernel without this
13504 *** option enabled." "$LINENO" 5
13505
13506
13507
13508 fi
13509 rm -Rf build
13510
13511
13512 EXTRA_KCFLAGS="$tmp_flags"
13513
13514
13515 else
13516 $as_echo "$as_me: failed program was:" >&5
13517 sed 's/^/| /' conftest.$ac_ext >&5
13518
13519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13520 $as_echo "no" >&6; }
13521
13522
13523
13524
13525 fi
13526 rm -Rf build
13527
13528
13529
13530
13531
13532
13533 tmp_flags="$EXTRA_KCFLAGS"
13534 EXTRA_KCFLAGS="-I\$(src)"
13535
13536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether DECLARE_EVENT_CLASS() is available" >&5
13537 $as_echo_n "checking whether DECLARE_EVENT_CLASS() is available... " >&6; }
13538
13539
13540 cat confdefs.h - <<_ACEOF >conftest.c
13541
13542
13543 #include <linux/module.h>
13544 MODULE_LICENSE(ZFS_META_LICENSE);
13545
13546 #define CREATE_TRACE_POINTS
13547 #include "conftest.h"
13548
13549 int
13550 main (void)
13551 {
13552
13553 trace_zfs_autoconf_event_one(1UL);
13554 trace_zfs_autoconf_event_two(2UL);
13555
13556 ;
13557 return 0;
13558 }
13559
13560 _ACEOF
13561
13562
13563
13564 cat - <<_ACEOF >conftest.h
13565
13566 #if !defined(_CONFTEST_H) || defined(TRACE_HEADER_MULTI_READ)
13567 #define _CONFTEST_H
13568
13569 #undef TRACE_SYSTEM
13570 #define TRACE_SYSTEM zfs
13571 #include <linux/tracepoint.h>
13572
13573 DECLARE_EVENT_CLASS(zfs_autoconf_event_class,
13574 TP_PROTO(unsigned long i),
13575 TP_ARGS(i),
13576 TP_STRUCT__entry(
13577 __field(unsigned long, i)
13578 ),
13579 TP_fast_assign(
13580 __entry->i = i;
13581 ),
13582 TP_printk("i = %lu", __entry->i)
13583 );
13584
13585 #define DEFINE_AUTOCONF_EVENT(name) \
13586 DEFINE_EVENT(zfs_autoconf_event_class, name, \
13587 TP_PROTO(unsigned long i), \
13588 TP_ARGS(i))
13589 DEFINE_AUTOCONF_EVENT(zfs_autoconf_event_one);
13590 DEFINE_AUTOCONF_EVENT(zfs_autoconf_event_two);
13591
13592 #endif /* _CONFTEST_H */
13593
13594 #undef TRACE_INCLUDE_PATH
13595 #define TRACE_INCLUDE_PATH .
13596 #define TRACE_INCLUDE_FILE conftest
13597 #include <trace/define_trace.h>
13598
13599 _ACEOF
13600
13601
13602 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
13603 echo "obj-m := conftest.o" >build/Makefile
13604 modpost_flag=''
13605 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
13606 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
13607 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
13608 (eval $ac_try) 2>&5
13609 ac_status=$?
13610 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13611 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
13612 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
13613 (eval $ac_try) 2>&5
13614 ac_status=$?
13615 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13616 test $ac_status = 0; }; }; then :
13617
13618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13619 $as_echo "yes" >&6; }
13620
13621 $as_echo "#define HAVE_DECLARE_EVENT_CLASS 1" >>confdefs.h
13622
13623
13624 else
13625 $as_echo "$as_me: failed program was:" >&5
13626 sed 's/^/| /' conftest.$ac_ext >&5
13627
13628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13629 $as_echo "no" >&6; }
13630
13631
13632
13633 fi
13634 rm -Rf build
13635
13636
13637 EXTRA_KCFLAGS="$tmp_flags"
13638
13639
13640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether current->bio_tail exists" >&5
13641 $as_echo_n "checking whether current->bio_tail exists... " >&6; }
13642
13643
13644 cat confdefs.h - <<_ACEOF >conftest.c
13645
13646
13647 #include <linux/sched.h>
13648
13649 int
13650 main (void)
13651 {
13652
13653 current->bio_tail = (struct bio **) NULL;
13654
13655 ;
13656 return 0;
13657 }
13658
13659 _ACEOF
13660
13661
13662
13663 cat - <<_ACEOF >conftest.h
13664
13665 _ACEOF
13666
13667
13668 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
13669 echo "obj-m := conftest.o" >build/Makefile
13670 modpost_flag=''
13671 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
13672 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
13673 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
13674 (eval $ac_try) 2>&5
13675 ac_status=$?
13676 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13677 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
13678 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
13679 (eval $ac_try) 2>&5
13680 ac_status=$?
13681 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13682 test $ac_status = 0; }; }; then :
13683
13684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13685 $as_echo "yes" >&6; }
13686
13687 $as_echo "#define HAVE_CURRENT_BIO_TAIL 1" >>confdefs.h
13688
13689
13690 else
13691 $as_echo "$as_me: failed program was:" >&5
13692 sed 's/^/| /' conftest.$ac_ext >&5
13693
13694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13695 $as_echo "no" >&6; }
13696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether current->bio_list exists" >&5
13697 $as_echo_n "checking whether current->bio_list exists... " >&6; }
13698
13699
13700 cat confdefs.h - <<_ACEOF >conftest.c
13701
13702
13703 #include <linux/sched.h>
13704
13705 int
13706 main (void)
13707 {
13708
13709 current->bio_list = (struct bio_list *) NULL;
13710
13711 ;
13712 return 0;
13713 }
13714
13715 _ACEOF
13716
13717
13718
13719 cat - <<_ACEOF >conftest.h
13720
13721 _ACEOF
13722
13723
13724 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
13725 echo "obj-m := conftest.o" >build/Makefile
13726 modpost_flag=''
13727 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
13728 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
13729 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
13730 (eval $ac_try) 2>&5
13731 ac_status=$?
13732 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13733 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
13734 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
13735 (eval $ac_try) 2>&5
13736 ac_status=$?
13737 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13738 test $ac_status = 0; }; }; then :
13739
13740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13741 $as_echo "yes" >&6; }
13742
13743 $as_echo "#define HAVE_CURRENT_BIO_LIST 1" >>confdefs.h
13744
13745
13746 else
13747 $as_echo "$as_me: failed program was:" >&5
13748 sed 's/^/| /' conftest.$ac_ext >&5
13749
13750 as_fn_error $? "no - Please file a bug report at
13751 https://github.com/zfsonlinux/zfs/issues/new" "$LINENO" 5
13752
13753
13754
13755 fi
13756 rm -Rf build
13757
13758
13759
13760
13761
13762 fi
13763 rm -Rf build
13764
13765
13766
13767
13768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether submit_bio() wants 1 arg" >&5
13769 $as_echo_n "checking whether submit_bio() wants 1 arg... " >&6; }
13770
13771
13772 cat confdefs.h - <<_ACEOF >conftest.c
13773
13774
13775 #include <linux/bio.h>
13776
13777 int
13778 main (void)
13779 {
13780
13781 blk_qc_t blk_qc;
13782 struct bio *bio = NULL;
13783 blk_qc = submit_bio(bio);
13784
13785 ;
13786 return 0;
13787 }
13788
13789 _ACEOF
13790
13791
13792
13793 cat - <<_ACEOF >conftest.h
13794
13795 _ACEOF
13796
13797
13798 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
13799 echo "obj-m := conftest.o" >build/Makefile
13800 modpost_flag=''
13801 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
13802 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
13803 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
13804 (eval $ac_try) 2>&5
13805 ac_status=$?
13806 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13807 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
13808 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
13809 (eval $ac_try) 2>&5
13810 ac_status=$?
13811 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13812 test $ac_status = 0; }; }; then :
13813
13814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13815 $as_echo "yes" >&6; }
13816
13817 $as_echo "#define HAVE_1ARG_SUBMIT_BIO 1" >>confdefs.h
13818
13819
13820 else
13821 $as_echo "$as_me: failed program was:" >&5
13822 sed 's/^/| /' conftest.$ac_ext >&5
13823
13824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13825 $as_echo "no" >&6; }
13826
13827
13828
13829 fi
13830 rm -Rf build
13831
13832
13833
13834
13835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking block device operation prototypes" >&5
13836 $as_echo_n "checking block device operation prototypes... " >&6; }
13837 tmp_flags="$EXTRA_KCFLAGS"
13838 EXTRA_KCFLAGS="${NO_UNUSED_BUT_SET_VARIABLE}"
13839
13840
13841 cat confdefs.h - <<_ACEOF >conftest.c
13842
13843
13844 #include <linux/blkdev.h>
13845
13846 int blk_open(struct block_device *bdev, fmode_t mode)
13847 { return 0; }
13848 int blk_ioctl(struct block_device *bdev, fmode_t mode,
13849 unsigned x, unsigned long y) { return 0; }
13850 int blk_compat_ioctl(struct block_device * bdev, fmode_t mode,
13851 unsigned x, unsigned long y) { return 0; }
13852
13853 static const struct block_device_operations
13854 bops __attribute__ ((unused)) = {
13855 .open = blk_open,
13856 .release = NULL,
13857 .ioctl = blk_ioctl,
13858 .compat_ioctl = blk_compat_ioctl,
13859 };
13860
13861 int
13862 main (void)
13863 {
13864
13865
13866 ;
13867 return 0;
13868 }
13869
13870 _ACEOF
13871
13872
13873
13874 cat - <<_ACEOF >conftest.h
13875
13876 _ACEOF
13877
13878
13879 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
13880 echo "obj-m := conftest.o" >build/Makefile
13881 modpost_flag=''
13882 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
13883 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
13884 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
13885 (eval $ac_try) 2>&5
13886 ac_status=$?
13887 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13888 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
13889 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
13890 (eval $ac_try) 2>&5
13891 ac_status=$?
13892 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13893 test $ac_status = 0; }; }; then :
13894
13895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: struct block_device" >&5
13896 $as_echo "struct block_device" >&6; }
13897
13898 $as_echo "#define HAVE_BDEV_BLOCK_DEVICE_OPERATIONS 1" >>confdefs.h
13899
13900
13901 else
13902 $as_echo "$as_me: failed program was:" >&5
13903 sed 's/^/| /' conftest.$ac_ext >&5
13904
13905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: struct inode" >&5
13906 $as_echo "struct inode" >&6; }
13907
13908
13909
13910 fi
13911 rm -Rf build
13912
13913
13914 EXTRA_KCFLAGS="$tmp_flags"
13915
13916
13917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether block_device_operations.release is void" >&5
13918 $as_echo_n "checking whether block_device_operations.release is void... " >&6; }
13919 tmp_flags="$EXTRA_KCFLAGS"
13920 EXTRA_KCFLAGS="${NO_UNUSED_BUT_SET_VARIABLE}"
13921
13922
13923 cat confdefs.h - <<_ACEOF >conftest.c
13924
13925
13926 #include <linux/blkdev.h>
13927
13928 void blk_release(struct gendisk *g, fmode_t mode) { return; }
13929
13930 static const struct block_device_operations
13931 bops __attribute__ ((unused)) = {
13932 .open = NULL,
13933 .release = blk_release,
13934 .ioctl = NULL,
13935 .compat_ioctl = NULL,
13936 };
13937
13938 int
13939 main (void)
13940 {
13941
13942
13943 ;
13944 return 0;
13945 }
13946
13947 _ACEOF
13948
13949
13950
13951 cat - <<_ACEOF >conftest.h
13952
13953 _ACEOF
13954
13955
13956 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
13957 echo "obj-m := conftest.o" >build/Makefile
13958 modpost_flag=''
13959 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
13960 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
13961 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
13962 (eval $ac_try) 2>&5
13963 ac_status=$?
13964 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13965 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
13966 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
13967 (eval $ac_try) 2>&5
13968 ac_status=$?
13969 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13970 test $ac_status = 0; }; }; then :
13971
13972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: void" >&5
13973 $as_echo "void" >&6; }
13974
13975 $as_echo "#define HAVE_BLOCK_DEVICE_OPERATIONS_RELEASE_VOID 1" >>confdefs.h
13976
13977
13978 else
13979 $as_echo "$as_me: failed program was:" >&5
13980 sed 's/^/| /' conftest.$ac_ext >&5
13981
13982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: int" >&5
13983 $as_echo "int" >&6; }
13984
13985
13986
13987 fi
13988 rm -Rf build
13989
13990
13991 EXTRA_KCFLAGS="$tmp_flags"
13992
13993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether kernel defines fmode_t" >&5
13994 $as_echo_n "checking whether kernel defines fmode_t... " >&6; }
13995
13996
13997 cat confdefs.h - <<_ACEOF >conftest.c
13998
13999
14000 #include <linux/types.h>
14001
14002 int
14003 main (void)
14004 {
14005
14006 fmode_t *ptr __attribute__ ((unused));
14007
14008 ;
14009 return 0;
14010 }
14011
14012 _ACEOF
14013
14014
14015
14016 cat - <<_ACEOF >conftest.h
14017
14018 _ACEOF
14019
14020
14021 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
14022 echo "obj-m := conftest.o" >build/Makefile
14023 modpost_flag=''
14024 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
14025 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
14026 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14027 (eval $ac_try) 2>&5
14028 ac_status=$?
14029 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14030 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
14031 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14032 (eval $ac_try) 2>&5
14033 ac_status=$?
14034 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14035 test $ac_status = 0; }; }; then :
14036
14037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14038 $as_echo "yes" >&6; }
14039
14040 $as_echo "#define HAVE_FMODE_T 1" >>confdefs.h
14041
14042
14043 else
14044 $as_echo "$as_me: failed program was:" >&5
14045 sed 's/^/| /' conftest.$ac_ext >&5
14046
14047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14048 $as_echo "no" >&6; }
14049
14050
14051
14052 fi
14053 rm -Rf build
14054
14055
14056
14057
14058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether kernel defines KOBJ_NAME_LEN" >&5
14059 $as_echo_n "checking whether kernel defines KOBJ_NAME_LEN... " >&6; }
14060
14061
14062 cat confdefs.h - <<_ACEOF >conftest.c
14063
14064
14065 #include <linux/kobject.h>
14066
14067 int
14068 main (void)
14069 {
14070
14071 int val __attribute__ ((unused));
14072 val = KOBJ_NAME_LEN;
14073
14074 ;
14075 return 0;
14076 }
14077
14078 _ACEOF
14079
14080
14081
14082 cat - <<_ACEOF >conftest.h
14083
14084 _ACEOF
14085
14086
14087 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
14088 echo "obj-m := conftest.o" >build/Makefile
14089 modpost_flag=''
14090 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
14091 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
14092 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14093 (eval $ac_try) 2>&5
14094 ac_status=$?
14095 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14096 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
14097 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14098 (eval $ac_try) 2>&5
14099 ac_status=$?
14100 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14101 test $ac_status = 0; }; }; then :
14102
14103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14104 $as_echo "yes" >&6; }
14105
14106 $as_echo "#define HAVE_KOBJ_NAME_LEN 1" >>confdefs.h
14107
14108
14109 else
14110 $as_echo "$as_me: failed program was:" >&5
14111 sed 's/^/| /' conftest.$ac_ext >&5
14112
14113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14114 $as_echo "no" >&6; }
14115
14116
14117
14118 fi
14119 rm -Rf build
14120
14121
14122
14123
14124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether blkdev_get() wants 3 args" >&5
14125 $as_echo_n "checking whether blkdev_get() wants 3 args... " >&6; }
14126
14127
14128 cat confdefs.h - <<_ACEOF >conftest.c
14129
14130
14131 #include <linux/fs.h>
14132
14133 int
14134 main (void)
14135 {
14136
14137 struct block_device *bdev = NULL;
14138 (void) blkdev_get(bdev, 0, NULL);
14139
14140 ;
14141 return 0;
14142 }
14143
14144 _ACEOF
14145
14146
14147
14148 cat - <<_ACEOF >conftest.h
14149
14150 _ACEOF
14151
14152
14153 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
14154 echo "obj-m := conftest.o" >build/Makefile
14155 modpost_flag=''
14156 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
14157 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
14158 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14159 (eval $ac_try) 2>&5
14160 ac_status=$?
14161 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14162 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
14163 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14164 (eval $ac_try) 2>&5
14165 ac_status=$?
14166 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14167 test $ac_status = 0; }; }; then :
14168
14169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14170 $as_echo "yes" >&6; }
14171
14172 $as_echo "#define HAVE_3ARG_BLKDEV_GET 1" >>confdefs.h
14173
14174
14175 else
14176 $as_echo "$as_me: failed program was:" >&5
14177 sed 's/^/| /' conftest.$ac_ext >&5
14178
14179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14180 $as_echo "no" >&6; }
14181
14182
14183
14184 fi
14185 rm -Rf build
14186
14187
14188
14189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether blkdev_get_by_path() is available" >&5
14190 $as_echo_n "checking whether blkdev_get_by_path() is available... " >&6; }
14191
14192
14193
14194 cat confdefs.h - <<_ACEOF >conftest.c
14195
14196
14197 #include <linux/fs.h>
14198
14199 int
14200 main (void)
14201 {
14202
14203 blkdev_get_by_path(NULL, 0, NULL);
14204
14205 ;
14206 return 0;
14207 }
14208
14209 _ACEOF
14210
14211
14212
14213 cat - <<_ACEOF >conftest.h
14214
14215 _ACEOF
14216
14217
14218 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
14219 echo "obj-m := conftest.o" >build/Makefile
14220 modpost_flag=''
14221 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
14222 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
14223 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14224 (eval $ac_try) 2>&5
14225 ac_status=$?
14226 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14227 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
14228 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14229 (eval $ac_try) 2>&5
14230 ac_status=$?
14231 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14232 test $ac_status = 0; }; }; then :
14233 rc=0
14234 else
14235 $as_echo "$as_me: failed program was:" >&5
14236 sed 's/^/| /' conftest.$ac_ext >&5
14237 rc=1
14238
14239
14240 fi
14241 rm -Rf build
14242
14243
14244 if test $rc -ne 0; then :
14245
14246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14247 $as_echo "no" >&6; }
14248
14249 else
14250 if test "x$enable_linux_builtin" != xyes; then
14251
14252 grep -q -E '[[:space:]]blkdev_get_by_path[[:space:]]' \
14253 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
14254 rc=$?
14255 if test $rc -ne 0; then
14256 export=0
14257 for file in fs/block_dev.c; do
14258 grep -q -E "EXPORT_SYMBOL.*(blkdev_get_by_path)" \
14259 "$LINUX/$file" 2>/dev/null
14260 rc=$?
14261 if test $rc -eq 0; then
14262 export=1
14263 break;
14264 fi
14265 done
14266 if test $export -eq 0; then :
14267 rc=1
14268 else :
14269 rc=0
14270 fi
14271 else :
14272 rc=0
14273 fi
14274
14275 fi
14276 if test $rc -ne 0; then :
14277
14278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14279 $as_echo "no" >&6; }
14280
14281 else :
14282
14283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14284 $as_echo "yes" >&6; }
14285
14286 $as_echo "#define HAVE_BLKDEV_GET_BY_PATH 1" >>confdefs.h
14287
14288
14289 fi
14290 fi
14291
14292
14293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether open_bdev_exclusive() is available" >&5
14294 $as_echo_n "checking whether open_bdev_exclusive() is available... " >&6; }
14295
14296
14297
14298 cat confdefs.h - <<_ACEOF >conftest.c
14299
14300
14301 #include <linux/fs.h>
14302
14303 int
14304 main (void)
14305 {
14306
14307 open_bdev_exclusive(NULL, 0, NULL);
14308
14309 ;
14310 return 0;
14311 }
14312
14313 _ACEOF
14314
14315
14316
14317 cat - <<_ACEOF >conftest.h
14318
14319 _ACEOF
14320
14321
14322 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
14323 echo "obj-m := conftest.o" >build/Makefile
14324 modpost_flag=''
14325 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
14326 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
14327 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14328 (eval $ac_try) 2>&5
14329 ac_status=$?
14330 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14331 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
14332 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14333 (eval $ac_try) 2>&5
14334 ac_status=$?
14335 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14336 test $ac_status = 0; }; }; then :
14337 rc=0
14338 else
14339 $as_echo "$as_me: failed program was:" >&5
14340 sed 's/^/| /' conftest.$ac_ext >&5
14341 rc=1
14342
14343
14344 fi
14345 rm -Rf build
14346
14347
14348 if test $rc -ne 0; then :
14349
14350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14351 $as_echo "no" >&6; }
14352
14353 else
14354 if test "x$enable_linux_builtin" != xyes; then
14355
14356 grep -q -E '[[:space:]]open_bdev_exclusive[[:space:]]' \
14357 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
14358 rc=$?
14359 if test $rc -ne 0; then
14360 export=0
14361 for file in fs/block_dev.c; do
14362 grep -q -E "EXPORT_SYMBOL.*(open_bdev_exclusive)" \
14363 "$LINUX/$file" 2>/dev/null
14364 rc=$?
14365 if test $rc -eq 0; then
14366 export=1
14367 break;
14368 fi
14369 done
14370 if test $export -eq 0; then :
14371 rc=1
14372 else :
14373 rc=0
14374 fi
14375 else :
14376 rc=0
14377 fi
14378
14379 fi
14380 if test $rc -ne 0; then :
14381
14382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14383 $as_echo "no" >&6; }
14384
14385 else :
14386
14387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14388 $as_echo "yes" >&6; }
14389
14390 $as_echo "#define HAVE_OPEN_BDEV_EXCLUSIVE 1" >>confdefs.h
14391
14392
14393 fi
14394 fi
14395
14396
14397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lookup_bdev() wants 1 arg" >&5
14398 $as_echo_n "checking whether lookup_bdev() wants 1 arg... " >&6; }
14399
14400
14401
14402 cat confdefs.h - <<_ACEOF >conftest.c
14403
14404
14405 #include <linux/fs.h>
14406
14407 int
14408 main (void)
14409 {
14410
14411 lookup_bdev(NULL);
14412
14413 ;
14414 return 0;
14415 }
14416
14417 _ACEOF
14418
14419
14420
14421 cat - <<_ACEOF >conftest.h
14422
14423 _ACEOF
14424
14425
14426 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
14427 echo "obj-m := conftest.o" >build/Makefile
14428 modpost_flag=''
14429 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
14430 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
14431 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14432 (eval $ac_try) 2>&5
14433 ac_status=$?
14434 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14435 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
14436 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14437 (eval $ac_try) 2>&5
14438 ac_status=$?
14439 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14440 test $ac_status = 0; }; }; then :
14441 rc=0
14442 else
14443 $as_echo "$as_me: failed program was:" >&5
14444 sed 's/^/| /' conftest.$ac_ext >&5
14445 rc=1
14446
14447
14448 fi
14449 rm -Rf build
14450
14451
14452 if test $rc -ne 0; then :
14453
14454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14455 $as_echo "no" >&6; }
14456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lookup_bdev() wants 2 args" >&5
14457 $as_echo_n "checking whether lookup_bdev() wants 2 args... " >&6; }
14458
14459
14460
14461 cat confdefs.h - <<_ACEOF >conftest.c
14462
14463
14464 #include <linux/fs.h>
14465
14466 int
14467 main (void)
14468 {
14469
14470 lookup_bdev(NULL, FMODE_READ);
14471
14472 ;
14473 return 0;
14474 }
14475
14476 _ACEOF
14477
14478
14479
14480 cat - <<_ACEOF >conftest.h
14481
14482 _ACEOF
14483
14484
14485 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
14486 echo "obj-m := conftest.o" >build/Makefile
14487 modpost_flag=''
14488 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
14489 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
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; }; } >/dev/null && { ac_try='test -s build/conftest.o'
14495 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14496 (eval $ac_try) 2>&5
14497 ac_status=$?
14498 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14499 test $ac_status = 0; }; }; then :
14500 rc=0
14501 else
14502 $as_echo "$as_me: failed program was:" >&5
14503 sed 's/^/| /' conftest.$ac_ext >&5
14504 rc=1
14505
14506
14507 fi
14508 rm -Rf build
14509
14510
14511 if test $rc -ne 0; then :
14512
14513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14514 $as_echo "no" >&6; }
14515
14516 else
14517 if test "x$enable_linux_builtin" != xyes; then
14518
14519 grep -q -E '[[:space:]]lookup_bdev[[:space:]]' \
14520 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
14521 rc=$?
14522 if test $rc -ne 0; then
14523 export=0
14524 for file in fs/block_dev.c; do
14525 grep -q -E "EXPORT_SYMBOL.*(lookup_bdev)" \
14526 "$LINUX/$file" 2>/dev/null
14527 rc=$?
14528 if test $rc -eq 0; then
14529 export=1
14530 break;
14531 fi
14532 done
14533 if test $export -eq 0; then :
14534 rc=1
14535 else :
14536 rc=0
14537 fi
14538 else :
14539 rc=0
14540 fi
14541
14542 fi
14543 if test $rc -ne 0; then :
14544
14545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14546 $as_echo "no" >&6; }
14547
14548 else :
14549
14550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14551 $as_echo "yes" >&6; }
14552
14553 $as_echo "#define HAVE_2ARGS_LOOKUP_BDEV 1" >>confdefs.h
14554
14555
14556 fi
14557 fi
14558
14559
14560 else
14561 if test "x$enable_linux_builtin" != xyes; then
14562
14563 grep -q -E '[[:space:]]lookup_bdev[[:space:]]' \
14564 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
14565 rc=$?
14566 if test $rc -ne 0; then
14567 export=0
14568 for file in fs/block_dev.c; do
14569 grep -q -E "EXPORT_SYMBOL.*(lookup_bdev)" \
14570 "$LINUX/$file" 2>/dev/null
14571 rc=$?
14572 if test $rc -eq 0; then
14573 export=1
14574 break;
14575 fi
14576 done
14577 if test $export -eq 0; then :
14578 rc=1
14579 else :
14580 rc=0
14581 fi
14582 else :
14583 rc=0
14584 fi
14585
14586 fi
14587 if test $rc -ne 0; then :
14588
14589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14590 $as_echo "no" >&6; }
14591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lookup_bdev() wants 2 args" >&5
14592 $as_echo_n "checking whether lookup_bdev() wants 2 args... " >&6; }
14593
14594
14595
14596 cat confdefs.h - <<_ACEOF >conftest.c
14597
14598
14599 #include <linux/fs.h>
14600
14601 int
14602 main (void)
14603 {
14604
14605 lookup_bdev(NULL, FMODE_READ);
14606
14607 ;
14608 return 0;
14609 }
14610
14611 _ACEOF
14612
14613
14614
14615 cat - <<_ACEOF >conftest.h
14616
14617 _ACEOF
14618
14619
14620 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
14621 echo "obj-m := conftest.o" >build/Makefile
14622 modpost_flag=''
14623 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
14624 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
14625 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14626 (eval $ac_try) 2>&5
14627 ac_status=$?
14628 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14629 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
14630 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14631 (eval $ac_try) 2>&5
14632 ac_status=$?
14633 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14634 test $ac_status = 0; }; }; then :
14635 rc=0
14636 else
14637 $as_echo "$as_me: failed program was:" >&5
14638 sed 's/^/| /' conftest.$ac_ext >&5
14639 rc=1
14640
14641
14642 fi
14643 rm -Rf build
14644
14645
14646 if test $rc -ne 0; then :
14647
14648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14649 $as_echo "no" >&6; }
14650
14651 else
14652 if test "x$enable_linux_builtin" != xyes; then
14653
14654 grep -q -E '[[:space:]]lookup_bdev[[:space:]]' \
14655 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
14656 rc=$?
14657 if test $rc -ne 0; then
14658 export=0
14659 for file in fs/block_dev.c; do
14660 grep -q -E "EXPORT_SYMBOL.*(lookup_bdev)" \
14661 "$LINUX/$file" 2>/dev/null
14662 rc=$?
14663 if test $rc -eq 0; then
14664 export=1
14665 break;
14666 fi
14667 done
14668 if test $export -eq 0; then :
14669 rc=1
14670 else :
14671 rc=0
14672 fi
14673 else :
14674 rc=0
14675 fi
14676
14677 fi
14678 if test $rc -ne 0; then :
14679
14680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14681 $as_echo "no" >&6; }
14682
14683 else :
14684
14685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14686 $as_echo "yes" >&6; }
14687
14688 $as_echo "#define HAVE_2ARGS_LOOKUP_BDEV 1" >>confdefs.h
14689
14690
14691 fi
14692 fi
14693
14694
14695 else :
14696
14697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14698 $as_echo "yes" >&6; }
14699
14700 $as_echo "#define HAVE_1ARG_LOOKUP_BDEV 1" >>confdefs.h
14701
14702
14703 fi
14704 fi
14705
14706
14707
14708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether invalidate_bdev() wants 1 arg" >&5
14709 $as_echo_n "checking whether invalidate_bdev() wants 1 arg... " >&6; }
14710
14711
14712 cat confdefs.h - <<_ACEOF >conftest.c
14713
14714
14715 #include <linux/buffer_head.h>
14716
14717 int
14718 main (void)
14719 {
14720
14721 struct block_device *bdev = NULL;
14722 invalidate_bdev(bdev);
14723
14724 ;
14725 return 0;
14726 }
14727
14728 _ACEOF
14729
14730
14731
14732 cat - <<_ACEOF >conftest.h
14733
14734 _ACEOF
14735
14736
14737 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
14738 echo "obj-m := conftest.o" >build/Makefile
14739 modpost_flag=''
14740 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
14741 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
14742 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14743 (eval $ac_try) 2>&5
14744 ac_status=$?
14745 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14746 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
14747 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14748 (eval $ac_try) 2>&5
14749 ac_status=$?
14750 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14751 test $ac_status = 0; }; }; then :
14752
14753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14754 $as_echo "yes" >&6; }
14755
14756 $as_echo "#define HAVE_1ARG_INVALIDATE_BDEV 1" >>confdefs.h
14757
14758
14759 else
14760 $as_echo "$as_me: failed program was:" >&5
14761 sed 's/^/| /' conftest.$ac_ext >&5
14762
14763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14764 $as_echo "no" >&6; }
14765
14766
14767
14768 fi
14769 rm -Rf build
14770
14771
14772
14773
14774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether bdev_logical_block_size() is available" >&5
14775 $as_echo_n "checking whether bdev_logical_block_size() is available... " >&6; }
14776 tmp_flags="$EXTRA_KCFLAGS"
14777 EXTRA_KCFLAGS="${NO_UNUSED_BUT_SET_VARIABLE}"
14778
14779
14780 cat confdefs.h - <<_ACEOF >conftest.c
14781
14782
14783 #include <linux/blkdev.h>
14784
14785 int
14786 main (void)
14787 {
14788
14789 struct block_device *bdev = NULL;
14790 bdev_logical_block_size(bdev);
14791
14792 ;
14793 return 0;
14794 }
14795
14796 _ACEOF
14797
14798
14799
14800 cat - <<_ACEOF >conftest.h
14801
14802 _ACEOF
14803
14804
14805 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
14806 echo "obj-m := conftest.o" >build/Makefile
14807 modpost_flag=''
14808 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
14809 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
14810 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14811 (eval $ac_try) 2>&5
14812 ac_status=$?
14813 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14814 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
14815 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14816 (eval $ac_try) 2>&5
14817 ac_status=$?
14818 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14819 test $ac_status = 0; }; }; then :
14820
14821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14822 $as_echo "yes" >&6; }
14823
14824 $as_echo "#define HAVE_BDEV_LOGICAL_BLOCK_SIZE 1" >>confdefs.h
14825
14826
14827 else
14828 $as_echo "$as_me: failed program was:" >&5
14829 sed 's/^/| /' conftest.$ac_ext >&5
14830
14831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14832 $as_echo "no" >&6; }
14833
14834
14835
14836 fi
14837 rm -Rf build
14838
14839
14840 EXTRA_KCFLAGS="$tmp_flags"
14841
14842
14843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether bdev_physical_block_size() is available" >&5
14844 $as_echo_n "checking whether bdev_physical_block_size() is available... " >&6; }
14845 tmp_flags="$EXTRA_KCFLAGS"
14846 EXTRA_KCFLAGS="${NO_UNUSED_BUT_SET_VARIABLE}"
14847
14848
14849 cat confdefs.h - <<_ACEOF >conftest.c
14850
14851
14852 #include <linux/blkdev.h>
14853
14854 int
14855 main (void)
14856 {
14857
14858 struct block_device *bdev = NULL;
14859 bdev_physical_block_size(bdev);
14860
14861 ;
14862 return 0;
14863 }
14864
14865 _ACEOF
14866
14867
14868
14869 cat - <<_ACEOF >conftest.h
14870
14871 _ACEOF
14872
14873
14874 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
14875 echo "obj-m := conftest.o" >build/Makefile
14876 modpost_flag=''
14877 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
14878 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
14879 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14880 (eval $ac_try) 2>&5
14881 ac_status=$?
14882 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14883 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
14884 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14885 (eval $ac_try) 2>&5
14886 ac_status=$?
14887 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14888 test $ac_status = 0; }; }; then :
14889
14890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14891 $as_echo "yes" >&6; }
14892
14893 $as_echo "#define HAVE_BDEV_PHYSICAL_BLOCK_SIZE 1" >>confdefs.h
14894
14895
14896 else
14897 $as_echo "$as_me: failed program was:" >&5
14898 sed 's/^/| /' conftest.$ac_ext >&5
14899
14900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14901 $as_echo "no" >&6; }
14902
14903
14904
14905 fi
14906 rm -Rf build
14907
14908
14909 EXTRA_KCFLAGS="$tmp_flags"
14910
14911
14912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether bio has bi_iter" >&5
14913 $as_echo_n "checking whether bio has bi_iter... " >&6; }
14914
14915
14916 cat confdefs.h - <<_ACEOF >conftest.c
14917
14918
14919 #include <linux/bio.h>
14920
14921 int
14922 main (void)
14923 {
14924
14925 struct bio bio;
14926 bio.bi_iter.bi_sector = 0;
14927
14928 ;
14929 return 0;
14930 }
14931
14932 _ACEOF
14933
14934
14935
14936 cat - <<_ACEOF >conftest.h
14937
14938 _ACEOF
14939
14940
14941 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
14942 echo "obj-m := conftest.o" >build/Makefile
14943 modpost_flag=''
14944 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
14945 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
14946 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14947 (eval $ac_try) 2>&5
14948 ac_status=$?
14949 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14950 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
14951 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14952 (eval $ac_try) 2>&5
14953 ac_status=$?
14954 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14955 test $ac_status = 0; }; }; then :
14956
14957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14958 $as_echo "yes" >&6; }
14959
14960 $as_echo "#define HAVE_BIO_BVEC_ITER 1" >>confdefs.h
14961
14962
14963 else
14964 $as_echo "$as_me: failed program was:" >&5
14965 sed 's/^/| /' conftest.$ac_ext >&5
14966
14967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14968 $as_echo "no" >&6; }
14969
14970
14971
14972 fi
14973 rm -Rf build
14974
14975
14976
14977
14978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether BIO_RW_FAILFAST_* are defined" >&5
14979 $as_echo_n "checking whether BIO_RW_FAILFAST_* are defined... " >&6; }
14980
14981
14982 cat confdefs.h - <<_ACEOF >conftest.c
14983
14984
14985 #include <linux/bio.h>
14986
14987 int
14988 main (void)
14989 {
14990
14991 int flags __attribute__ ((unused));
14992 flags = ((1 << BIO_RW_FAILFAST_DEV) |
14993 (1 << BIO_RW_FAILFAST_TRANSPORT) |
14994 (1 << BIO_RW_FAILFAST_DRIVER));
14995
14996 ;
14997 return 0;
14998 }
14999
15000 _ACEOF
15001
15002
15003
15004 cat - <<_ACEOF >conftest.h
15005
15006 _ACEOF
15007
15008
15009 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
15010 echo "obj-m := conftest.o" >build/Makefile
15011 modpost_flag=''
15012 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
15013 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
15014 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15015 (eval $ac_try) 2>&5
15016 ac_status=$?
15017 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15018 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
15019 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15020 (eval $ac_try) 2>&5
15021 ac_status=$?
15022 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15023 test $ac_status = 0; }; }; then :
15024
15025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15026 $as_echo "yes" >&6; }
15027
15028 $as_echo "#define HAVE_BIO_RW_FAILFAST_DTD 1" >>confdefs.h
15029
15030
15031 else
15032 $as_echo "$as_me: failed program was:" >&5
15033 sed 's/^/| /' conftest.$ac_ext >&5
15034
15035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15036 $as_echo "no" >&6; }
15037
15038
15039
15040 fi
15041 rm -Rf build
15042
15043
15044
15045
15046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether REQ_FAILFAST_MASK is defined" >&5
15047 $as_echo_n "checking whether REQ_FAILFAST_MASK is defined... " >&6; }
15048
15049
15050 cat confdefs.h - <<_ACEOF >conftest.c
15051
15052
15053 #include <linux/bio.h>
15054
15055 int
15056 main (void)
15057 {
15058
15059 int flags __attribute__ ((unused));
15060 flags = REQ_FAILFAST_MASK;
15061
15062 ;
15063 return 0;
15064 }
15065
15066 _ACEOF
15067
15068
15069
15070 cat - <<_ACEOF >conftest.h
15071
15072 _ACEOF
15073
15074
15075 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
15076 echo "obj-m := conftest.o" >build/Makefile
15077 modpost_flag=''
15078 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
15079 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
15080 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15081 (eval $ac_try) 2>&5
15082 ac_status=$?
15083 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15084 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
15085 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15086 (eval $ac_try) 2>&5
15087 ac_status=$?
15088 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15089 test $ac_status = 0; }; }; then :
15090
15091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15092 $as_echo "yes" >&6; }
15093
15094 $as_echo "#define HAVE_REQ_FAILFAST_MASK 1" >>confdefs.h
15095
15096
15097 else
15098 $as_echo "$as_me: failed program was:" >&5
15099 sed 's/^/| /' conftest.$ac_ext >&5
15100
15101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15102 $as_echo "no" >&6; }
15103
15104
15105
15106 fi
15107 rm -Rf build
15108
15109
15110
15111
15112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether REQ_OP_DISCARD is defined" >&5
15113 $as_echo_n "checking whether REQ_OP_DISCARD is defined... " >&6; }
15114
15115
15116 cat confdefs.h - <<_ACEOF >conftest.c
15117
15118
15119 #include <linux/blk_types.h>
15120
15121 int
15122 main (void)
15123 {
15124
15125 int op __attribute__ ((unused)) = REQ_OP_DISCARD;
15126
15127 ;
15128 return 0;
15129 }
15130
15131 _ACEOF
15132
15133
15134
15135 cat - <<_ACEOF >conftest.h
15136
15137 _ACEOF
15138
15139
15140 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
15141 echo "obj-m := conftest.o" >build/Makefile
15142 modpost_flag=''
15143 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
15144 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
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; }; } >/dev/null && { ac_try='test -s build/conftest.o'
15150 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15151 (eval $ac_try) 2>&5
15152 ac_status=$?
15153 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15154 test $ac_status = 0; }; }; then :
15155
15156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15157 $as_echo "yes" >&6; }
15158
15159 $as_echo "#define HAVE_REQ_OP_DISCARD 1" >>confdefs.h
15160
15161
15162 else
15163 $as_echo "$as_me: failed program was:" >&5
15164 sed 's/^/| /' conftest.$ac_ext >&5
15165
15166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15167 $as_echo "no" >&6; }
15168
15169
15170
15171 fi
15172 rm -Rf build
15173
15174
15175
15176
15177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether REQ_OP_SECURE_ERASE is defined" >&5
15178 $as_echo_n "checking whether REQ_OP_SECURE_ERASE is defined... " >&6; }
15179
15180
15181 cat confdefs.h - <<_ACEOF >conftest.c
15182
15183
15184 #include <linux/blk_types.h>
15185
15186 int
15187 main (void)
15188 {
15189
15190 int op __attribute__ ((unused)) = REQ_OP_SECURE_ERASE;
15191
15192 ;
15193 return 0;
15194 }
15195
15196 _ACEOF
15197
15198
15199
15200 cat - <<_ACEOF >conftest.h
15201
15202 _ACEOF
15203
15204
15205 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
15206 echo "obj-m := conftest.o" >build/Makefile
15207 modpost_flag=''
15208 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
15209 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
15210 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15211 (eval $ac_try) 2>&5
15212 ac_status=$?
15213 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15214 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
15215 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15216 (eval $ac_try) 2>&5
15217 ac_status=$?
15218 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15219 test $ac_status = 0; }; }; then :
15220
15221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15222 $as_echo "yes" >&6; }
15223
15224 $as_echo "#define HAVE_REQ_OP_SECURE_ERASE 1" >>confdefs.h
15225
15226
15227 else
15228 $as_echo "$as_me: failed program was:" >&5
15229 sed 's/^/| /' conftest.$ac_ext >&5
15230
15231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15232 $as_echo "no" >&6; }
15233
15234
15235
15236 fi
15237 rm -Rf build
15238
15239
15240
15241
15242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether REQ_OP_FLUSH is defined" >&5
15243 $as_echo_n "checking whether REQ_OP_FLUSH is defined... " >&6; }
15244
15245
15246 cat confdefs.h - <<_ACEOF >conftest.c
15247
15248
15249 #include <linux/blk_types.h>
15250
15251 int
15252 main (void)
15253 {
15254
15255 int op __attribute__ ((unused)) = REQ_OP_FLUSH;
15256
15257 ;
15258 return 0;
15259 }
15260
15261 _ACEOF
15262
15263
15264
15265 cat - <<_ACEOF >conftest.h
15266
15267 _ACEOF
15268
15269
15270 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
15271 echo "obj-m := conftest.o" >build/Makefile
15272 modpost_flag=''
15273 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
15274 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
15275 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15276 (eval $ac_try) 2>&5
15277 ac_status=$?
15278 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15279 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
15280 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15281 (eval $ac_try) 2>&5
15282 ac_status=$?
15283 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15284 test $ac_status = 0; }; }; then :
15285
15286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15287 $as_echo "yes" >&6; }
15288
15289 $as_echo "#define HAVE_REQ_OP_FLUSH 1" >>confdefs.h
15290
15291
15292 else
15293 $as_echo "$as_me: failed program was:" >&5
15294 sed 's/^/| /' conftest.$ac_ext >&5
15295
15296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15297 $as_echo "no" >&6; }
15298
15299
15300
15301 fi
15302 rm -Rf build
15303
15304
15305
15306
15307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether bio->bi_opf is defined" >&5
15308 $as_echo_n "checking whether bio->bi_opf is defined... " >&6; }
15309
15310
15311 cat confdefs.h - <<_ACEOF >conftest.c
15312
15313
15314 #include <linux/bio.h>
15315
15316 int
15317 main (void)
15318 {
15319
15320 struct bio bio __attribute__ ((unused));
15321 bio.bi_opf = 0;
15322
15323 ;
15324 return 0;
15325 }
15326
15327 _ACEOF
15328
15329
15330
15331 cat - <<_ACEOF >conftest.h
15332
15333 _ACEOF
15334
15335
15336 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
15337 echo "obj-m := conftest.o" >build/Makefile
15338 modpost_flag=''
15339 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
15340 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
15341 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15342 (eval $ac_try) 2>&5
15343 ac_status=$?
15344 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15345 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
15346 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15347 (eval $ac_try) 2>&5
15348 ac_status=$?
15349 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15350 test $ac_status = 0; }; }; then :
15351
15352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15353 $as_echo "yes" >&6; }
15354
15355 $as_echo "#define HAVE_BIO_BI_OPF 1" >>confdefs.h
15356
15357
15358 else
15359 $as_echo "$as_me: failed program was:" >&5
15360 sed 's/^/| /' conftest.$ac_ext >&5
15361
15362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15363 $as_echo "no" >&6; }
15364
15365
15366
15367 fi
15368 rm -Rf build
15369
15370
15371
15372
15373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether bio_end_io_t wants 1 arg" >&5
15374 $as_echo_n "checking whether bio_end_io_t wants 1 arg... " >&6; }
15375
15376
15377 cat confdefs.h - <<_ACEOF >conftest.c
15378
15379
15380 #include <linux/bio.h>
15381
15382 void wanted_end_io(struct bio *bio) { return; }
15383
15384 bio_end_io_t *end_io __attribute__ ((unused)) = wanted_end_io;
15385
15386 int
15387 main (void)
15388 {
15389
15390
15391 ;
15392 return 0;
15393 }
15394
15395 _ACEOF
15396
15397
15398
15399 cat - <<_ACEOF >conftest.h
15400
15401 _ACEOF
15402
15403
15404 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
15405 echo "obj-m := conftest.o" >build/Makefile
15406 modpost_flag=''
15407 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
15408 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
15409 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15410 (eval $ac_try) 2>&5
15411 ac_status=$?
15412 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15413 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
15414 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15415 (eval $ac_try) 2>&5
15416 ac_status=$?
15417 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15418 test $ac_status = 0; }; }; then :
15419
15420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15421 $as_echo "yes" >&6; }
15422
15423 $as_echo "#define HAVE_1ARG_BIO_END_IO_T 1" >>confdefs.h
15424
15425
15426 else
15427 $as_echo "$as_me: failed program was:" >&5
15428 sed 's/^/| /' conftest.$ac_ext >&5
15429
15430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15431 $as_echo "no" >&6; }
15432
15433
15434
15435 fi
15436 rm -Rf build
15437
15438
15439
15440
15441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether BIO_RW_BARRIER is defined" >&5
15442 $as_echo_n "checking whether BIO_RW_BARRIER is defined... " >&6; }
15443
15444
15445 cat confdefs.h - <<_ACEOF >conftest.c
15446
15447
15448 #include <linux/bio.h>
15449
15450 int
15451 main (void)
15452 {
15453
15454 int flags __attribute__ ((unused));
15455 flags = BIO_RW_BARRIER;
15456
15457 ;
15458 return 0;
15459 }
15460
15461 _ACEOF
15462
15463
15464
15465 cat - <<_ACEOF >conftest.h
15466
15467 _ACEOF
15468
15469
15470 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
15471 echo "obj-m := conftest.o" >build/Makefile
15472 modpost_flag=''
15473 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
15474 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
15475 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15476 (eval $ac_try) 2>&5
15477 ac_status=$?
15478 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15479 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
15480 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15481 (eval $ac_try) 2>&5
15482 ac_status=$?
15483 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15484 test $ac_status = 0; }; }; then :
15485
15486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15487 $as_echo "yes" >&6; }
15488
15489 $as_echo "#define HAVE_BIO_RW_BARRIER 1" >>confdefs.h
15490
15491
15492 else
15493 $as_echo "$as_me: failed program was:" >&5
15494 sed 's/^/| /' conftest.$ac_ext >&5
15495
15496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15497 $as_echo "no" >&6; }
15498
15499
15500
15501 fi
15502 rm -Rf build
15503
15504
15505
15506
15507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether BIO_RW_DISCARD is defined" >&5
15508 $as_echo_n "checking whether BIO_RW_DISCARD is defined... " >&6; }
15509
15510
15511 cat confdefs.h - <<_ACEOF >conftest.c
15512
15513
15514 #include <linux/bio.h>
15515
15516 int
15517 main (void)
15518 {
15519
15520 int flags __attribute__ ((unused));
15521 flags = BIO_RW_DISCARD;
15522
15523 ;
15524 return 0;
15525 }
15526
15527 _ACEOF
15528
15529
15530
15531 cat - <<_ACEOF >conftest.h
15532
15533 _ACEOF
15534
15535
15536 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
15537 echo "obj-m := conftest.o" >build/Makefile
15538 modpost_flag=''
15539 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
15540 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
15541 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15542 (eval $ac_try) 2>&5
15543 ac_status=$?
15544 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15545 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
15546 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15547 (eval $ac_try) 2>&5
15548 ac_status=$?
15549 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15550 test $ac_status = 0; }; }; then :
15551
15552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15553 $as_echo "yes" >&6; }
15554
15555 $as_echo "#define HAVE_BIO_RW_DISCARD 1" >>confdefs.h
15556
15557
15558 else
15559 $as_echo "$as_me: failed program was:" >&5
15560 sed 's/^/| /' conftest.$ac_ext >&5
15561
15562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15563 $as_echo "no" >&6; }
15564
15565
15566
15567 fi
15568 rm -Rf build
15569
15570
15571
15572
15573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether blk_queue_flush() is available" >&5
15574 $as_echo_n "checking whether blk_queue_flush() is available... " >&6; }
15575 tmp_flags="$EXTRA_KCFLAGS"
15576 EXTRA_KCFLAGS="${NO_UNUSED_BUT_SET_VARIABLE}"
15577
15578
15579 cat confdefs.h - <<_ACEOF >conftest.c
15580
15581
15582 #include <linux/blkdev.h>
15583
15584 int
15585 main (void)
15586 {
15587
15588 struct request_queue *q = NULL;
15589 (void) blk_queue_flush(q, REQ_FLUSH);
15590
15591 ;
15592 return 0;
15593 }
15594
15595 _ACEOF
15596
15597
15598
15599 cat - <<_ACEOF >conftest.h
15600
15601 _ACEOF
15602
15603
15604 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
15605 echo "obj-m := conftest.o" >build/Makefile
15606 modpost_flag=''
15607 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
15608 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
15609 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15610 (eval $ac_try) 2>&5
15611 ac_status=$?
15612 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15613 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
15614 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15615 (eval $ac_try) 2>&5
15616 ac_status=$?
15617 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15618 test $ac_status = 0; }; }; then :
15619
15620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15621 $as_echo "yes" >&6; }
15622
15623 $as_echo "#define HAVE_BLK_QUEUE_FLUSH 1" >>confdefs.h
15624
15625
15626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether blk_queue_flush() is GPL-only" >&5
15627 $as_echo_n "checking whether blk_queue_flush() is GPL-only... " >&6; }
15628
15629
15630 cat confdefs.h - <<_ACEOF >conftest.c
15631
15632
15633 #include <linux/module.h>
15634 #include <linux/blkdev.h>
15635
15636 MODULE_LICENSE("$ZFS_META_LICENSE");
15637
15638 int
15639 main (void)
15640 {
15641
15642 struct request_queue *q = NULL;
15643 (void) blk_queue_flush(q, REQ_FLUSH);
15644
15645 ;
15646 return 0;
15647 }
15648
15649 _ACEOF
15650
15651
15652
15653 cat - <<_ACEOF >conftest.h
15654
15655 _ACEOF
15656
15657
15658 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
15659 echo "obj-m := conftest.o" >build/Makefile
15660 modpost_flag=''
15661 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
15662 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
15663 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15664 (eval $ac_try) 2>&5
15665 ac_status=$?
15666 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15667 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
15668 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15669 (eval $ac_try) 2>&5
15670 ac_status=$?
15671 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15672 test $ac_status = 0; }; }; then :
15673
15674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15675 $as_echo "no" >&6; }
15676
15677 else
15678 $as_echo "$as_me: failed program was:" >&5
15679 sed 's/^/| /' conftest.$ac_ext >&5
15680
15681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15682 $as_echo "yes" >&6; }
15683
15684 $as_echo "#define HAVE_BLK_QUEUE_FLUSH_GPL_ONLY 1" >>confdefs.h
15685
15686
15687
15688
15689 fi
15690 rm -Rf build
15691
15692
15693
15694 else
15695 $as_echo "$as_me: failed program was:" >&5
15696 sed 's/^/| /' conftest.$ac_ext >&5
15697
15698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15699 $as_echo "no" >&6; }
15700
15701
15702
15703 fi
15704 rm -Rf build
15705
15706
15707
15708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether blk_queue_write_cache() exists" >&5
15709 $as_echo_n "checking whether blk_queue_write_cache() exists... " >&6; }
15710
15711
15712 cat confdefs.h - <<_ACEOF >conftest.c
15713
15714
15715 #include <linux/kernel.h>
15716 #include <linux/blkdev.h>
15717
15718
15719 int
15720 main (void)
15721 {
15722
15723 struct request_queue *q = NULL;
15724 blk_queue_write_cache(q, true, true);
15725
15726 ;
15727 return 0;
15728 }
15729
15730 _ACEOF
15731
15732
15733
15734 cat - <<_ACEOF >conftest.h
15735
15736 _ACEOF
15737
15738
15739 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
15740 echo "obj-m := conftest.o" >build/Makefile
15741 modpost_flag=''
15742 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
15743 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
15744 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15745 (eval $ac_try) 2>&5
15746 ac_status=$?
15747 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15748 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
15749 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15750 (eval $ac_try) 2>&5
15751 ac_status=$?
15752 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15753 test $ac_status = 0; }; }; then :
15754
15755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15756 $as_echo "yes" >&6; }
15757
15758 $as_echo "#define HAVE_BLK_QUEUE_WRITE_CACHE 1" >>confdefs.h
15759
15760
15761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether blk_queue_write_cache() is GPL-only" >&5
15762 $as_echo_n "checking whether blk_queue_write_cache() is GPL-only... " >&6; }
15763
15764
15765 cat confdefs.h - <<_ACEOF >conftest.c
15766
15767
15768 #include <linux/kernel.h>
15769 #include <linux/module.h>
15770 #include <linux/blkdev.h>
15771
15772 MODULE_LICENSE("$ZFS_META_LICENSE");
15773
15774 int
15775 main (void)
15776 {
15777
15778 struct request_queue *q = NULL;
15779 blk_queue_write_cache(q, true, true);
15780
15781 ;
15782 return 0;
15783 }
15784
15785 _ACEOF
15786
15787
15788
15789 cat - <<_ACEOF >conftest.h
15790
15791 _ACEOF
15792
15793
15794 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
15795 echo "obj-m := conftest.o" >build/Makefile
15796 modpost_flag=''
15797 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
15798 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
15799 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15800 (eval $ac_try) 2>&5
15801 ac_status=$?
15802 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15803 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
15804 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15805 (eval $ac_try) 2>&5
15806 ac_status=$?
15807 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15808 test $ac_status = 0; }; }; then :
15809
15810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15811 $as_echo "no" >&6; }
15812
15813 else
15814 $as_echo "$as_me: failed program was:" >&5
15815 sed 's/^/| /' conftest.$ac_ext >&5
15816
15817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15818 $as_echo "yes" >&6; }
15819
15820 $as_echo "#define HAVE_BLK_QUEUE_WRITE_CACHE_GPL_ONLY 1" >>confdefs.h
15821
15822
15823
15824
15825 fi
15826 rm -Rf build
15827
15828
15829
15830 else
15831 $as_echo "$as_me: failed program was:" >&5
15832 sed 's/^/| /' conftest.$ac_ext >&5
15833
15834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15835 $as_echo "no" >&6; }
15836
15837
15838
15839 fi
15840 rm -Rf build
15841
15842
15843
15844 EXTRA_KCFLAGS="$tmp_flags"
15845
15846
15847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether blk_queue_max_hw_sectors() is available" >&5
15848 $as_echo_n "checking whether blk_queue_max_hw_sectors() is available... " >&6; }
15849 tmp_flags="$EXTRA_KCFLAGS"
15850 EXTRA_KCFLAGS="${NO_UNUSED_BUT_SET_VARIABLE}"
15851
15852
15853 cat confdefs.h - <<_ACEOF >conftest.c
15854
15855
15856 #include <linux/blkdev.h>
15857
15858 int
15859 main (void)
15860 {
15861
15862 struct request_queue *q = NULL;
15863 (void) blk_queue_max_hw_sectors(q, BLK_SAFE_MAX_SECTORS);
15864
15865 ;
15866 return 0;
15867 }
15868
15869 _ACEOF
15870
15871
15872
15873 cat - <<_ACEOF >conftest.h
15874
15875 _ACEOF
15876
15877
15878 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
15879 echo "obj-m := conftest.o" >build/Makefile
15880 modpost_flag=''
15881 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
15882 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
15883 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15884 (eval $ac_try) 2>&5
15885 ac_status=$?
15886 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15887 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
15888 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15889 (eval $ac_try) 2>&5
15890 ac_status=$?
15891 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15892 test $ac_status = 0; }; }; then :
15893
15894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15895 $as_echo "yes" >&6; }
15896
15897 $as_echo "#define HAVE_BLK_QUEUE_MAX_HW_SECTORS 1" >>confdefs.h
15898
15899
15900 else
15901 $as_echo "$as_me: failed program was:" >&5
15902 sed 's/^/| /' conftest.$ac_ext >&5
15903
15904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15905 $as_echo "no" >&6; }
15906
15907
15908
15909 fi
15910 rm -Rf build
15911
15912
15913 EXTRA_KCFLAGS="$tmp_flags"
15914
15915
15916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether blk_queue_max_segments() is available" >&5
15917 $as_echo_n "checking whether blk_queue_max_segments() is available... " >&6; }
15918 tmp_flags="$EXTRA_KCFLAGS"
15919 EXTRA_KCFLAGS="${NO_UNUSED_BUT_SET_VARIABLE}"
15920
15921
15922 cat confdefs.h - <<_ACEOF >conftest.c
15923
15924
15925 #include <linux/blkdev.h>
15926
15927 int
15928 main (void)
15929 {
15930
15931 struct request_queue *q = NULL;
15932 (void) blk_queue_max_segments(q, BLK_MAX_SEGMENTS);
15933
15934 ;
15935 return 0;
15936 }
15937
15938 _ACEOF
15939
15940
15941
15942 cat - <<_ACEOF >conftest.h
15943
15944 _ACEOF
15945
15946
15947 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
15948 echo "obj-m := conftest.o" >build/Makefile
15949 modpost_flag=''
15950 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
15951 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
15952 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15953 (eval $ac_try) 2>&5
15954 ac_status=$?
15955 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15956 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
15957 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15958 (eval $ac_try) 2>&5
15959 ac_status=$?
15960 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15961 test $ac_status = 0; }; }; then :
15962
15963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15964 $as_echo "yes" >&6; }
15965
15966 $as_echo "#define HAVE_BLK_QUEUE_MAX_SEGMENTS 1" >>confdefs.h
15967
15968
15969 else
15970 $as_echo "$as_me: failed program was:" >&5
15971 sed 's/^/| /' conftest.$ac_ext >&5
15972
15973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15974 $as_echo "no" >&6; }
15975
15976
15977
15978 fi
15979 rm -Rf build
15980
15981
15982 EXTRA_KCFLAGS="$tmp_flags"
15983
15984
15985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the BIO_RW_UNPLUG enum is available" >&5
15986 $as_echo_n "checking whether the BIO_RW_UNPLUG enum is available... " >&6; }
15987 tmp_flags="$EXTRA_KCFLAGS"
15988 EXTRA_KCFLAGS="${NO_UNUSED_BUT_SET_VARIABLE}"
15989
15990
15991 cat confdefs.h - <<_ACEOF >conftest.c
15992
15993
15994 #include <linux/blkdev.h>
15995
15996 int
15997 main (void)
15998 {
15999
16000 extern enum bio_rw_flags rw;
16001
16002 rw = BIO_RW_UNPLUG;
16003
16004 ;
16005 return 0;
16006 }
16007
16008 _ACEOF
16009
16010
16011
16012 cat - <<_ACEOF >conftest.h
16013
16014 _ACEOF
16015
16016
16017 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
16018 echo "obj-m := conftest.o" >build/Makefile
16019 modpost_flag=''
16020 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
16021 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
16022 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16023 (eval $ac_try) 2>&5
16024 ac_status=$?
16025 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16026 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
16027 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16028 (eval $ac_try) 2>&5
16029 ac_status=$?
16030 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16031 test $ac_status = 0; }; }; then :
16032
16033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16034 $as_echo "yes" >&6; }
16035
16036 $as_echo "#define HAVE_BLK_QUEUE_HAVE_BIO_RW_UNPLUG 1" >>confdefs.h
16037
16038
16039 else
16040 $as_echo "$as_me: failed program was:" >&5
16041 sed 's/^/| /' conftest.$ac_ext >&5
16042
16043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16044 $as_echo "no" >&6; }
16045
16046
16047
16048 fi
16049 rm -Rf build
16050
16051
16052 EXTRA_KCFLAGS="$tmp_flags"
16053
16054
16055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct blk_plug is available" >&5
16056 $as_echo_n "checking whether struct blk_plug is available... " >&6; }
16057 tmp_flags="$EXTRA_KCFLAGS"
16058 EXTRA_KCFLAGS="${NO_UNUSED_BUT_SET_VARIABLE}"
16059
16060
16061 cat confdefs.h - <<_ACEOF >conftest.c
16062
16063
16064 #include <linux/blkdev.h>
16065
16066 int
16067 main (void)
16068 {
16069
16070 struct blk_plug plug;
16071
16072 blk_start_plug(&plug);
16073 blk_finish_plug(&plug);
16074
16075 ;
16076 return 0;
16077 }
16078
16079 _ACEOF
16080
16081
16082
16083 cat - <<_ACEOF >conftest.h
16084
16085 _ACEOF
16086
16087
16088 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
16089 echo "obj-m := conftest.o" >build/Makefile
16090 modpost_flag=''
16091 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
16092 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
16093 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16094 (eval $ac_try) 2>&5
16095 ac_status=$?
16096 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16097 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
16098 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16099 (eval $ac_try) 2>&5
16100 ac_status=$?
16101 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16102 test $ac_status = 0; }; }; then :
16103
16104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16105 $as_echo "yes" >&6; }
16106
16107 $as_echo "#define HAVE_BLK_QUEUE_HAVE_BLK_PLUG 1" >>confdefs.h
16108
16109
16110 else
16111 $as_echo "$as_me: failed program was:" >&5
16112 sed 's/^/| /' conftest.$ac_ext >&5
16113
16114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16115 $as_echo "no" >&6; }
16116
16117
16118
16119 fi
16120 rm -Rf build
16121
16122
16123 EXTRA_KCFLAGS="$tmp_flags"
16124
16125
16126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether get_disk_ro() is available" >&5
16127 $as_echo_n "checking whether get_disk_ro() is available... " >&6; }
16128 tmp_flags="$EXTRA_KCFLAGS"
16129 EXTRA_KCFLAGS="${NO_UNUSED_BUT_SET_VARIABLE}"
16130
16131
16132 cat confdefs.h - <<_ACEOF >conftest.c
16133
16134
16135 #include <linux/blkdev.h>
16136
16137 int
16138 main (void)
16139 {
16140
16141 struct gendisk *disk = NULL;
16142 (void) get_disk_ro(disk);
16143
16144 ;
16145 return 0;
16146 }
16147
16148 _ACEOF
16149
16150
16151
16152 cat - <<_ACEOF >conftest.h
16153
16154 _ACEOF
16155
16156
16157 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
16158 echo "obj-m := conftest.o" >build/Makefile
16159 modpost_flag=''
16160 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
16161 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
16162 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16163 (eval $ac_try) 2>&5
16164 ac_status=$?
16165 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16166 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
16167 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16168 (eval $ac_try) 2>&5
16169 ac_status=$?
16170 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16171 test $ac_status = 0; }; }; then :
16172
16173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16174 $as_echo "yes" >&6; }
16175
16176 $as_echo "#define HAVE_GET_DISK_RO 1" >>confdefs.h
16177
16178
16179 else
16180 $as_echo "$as_me: failed program was:" >&5
16181 sed 's/^/| /' conftest.$ac_ext >&5
16182
16183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16184 $as_echo "no" >&6; }
16185
16186
16187
16188 fi
16189 rm -Rf build
16190
16191
16192 EXTRA_KCFLAGS="$tmp_flags"
16193
16194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether get_gendisk() is available" >&5
16195 $as_echo_n "checking whether get_gendisk() is available... " >&6; }
16196
16197
16198
16199 cat confdefs.h - <<_ACEOF >conftest.c
16200
16201
16202 #include <linux/genhd.h>
16203
16204 int
16205 main (void)
16206 {
16207
16208 get_gendisk(0, NULL);
16209
16210 ;
16211 return 0;
16212 }
16213
16214 _ACEOF
16215
16216
16217
16218 cat - <<_ACEOF >conftest.h
16219
16220 _ACEOF
16221
16222
16223 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
16224 echo "obj-m := conftest.o" >build/Makefile
16225 modpost_flag=''
16226 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
16227 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
16228 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16229 (eval $ac_try) 2>&5
16230 ac_status=$?
16231 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16232 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
16233 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16234 (eval $ac_try) 2>&5
16235 ac_status=$?
16236 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16237 test $ac_status = 0; }; }; then :
16238 rc=0
16239 else
16240 $as_echo "$as_me: failed program was:" >&5
16241 sed 's/^/| /' conftest.$ac_ext >&5
16242 rc=1
16243
16244
16245 fi
16246 rm -Rf build
16247
16248
16249 if test $rc -ne 0; then :
16250
16251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16252 $as_echo "no" >&6; }
16253
16254 else
16255 if test "x$enable_linux_builtin" != xyes; then
16256
16257 grep -q -E '[[:space:]]get_gendisk[[:space:]]' \
16258 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
16259 rc=$?
16260 if test $rc -ne 0; then
16261 export=0
16262 for file in block/genhd.c; do
16263 grep -q -E "EXPORT_SYMBOL.*(get_gendisk)" \
16264 "$LINUX/$file" 2>/dev/null
16265 rc=$?
16266 if test $rc -eq 0; then
16267 export=1
16268 break;
16269 fi
16270 done
16271 if test $export -eq 0; then :
16272 rc=1
16273 else :
16274 rc=0
16275 fi
16276 else :
16277 rc=0
16278 fi
16279
16280 fi
16281 if test $rc -ne 0; then :
16282
16283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16284 $as_echo "no" >&6; }
16285
16286 else :
16287
16288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16289 $as_echo "yes" >&6; }
16290
16291 $as_echo "#define HAVE_GET_GENDISK 1" >>confdefs.h
16292
16293
16294 fi
16295 fi
16296
16297
16298
16299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether bio_set_op_attrs is available" >&5
16300 $as_echo_n "checking whether bio_set_op_attrs is available... " >&6; }
16301
16302
16303 cat confdefs.h - <<_ACEOF >conftest.c
16304
16305
16306 #include <linux/blk_types.h>
16307
16308 int
16309 main (void)
16310 {
16311
16312 struct bio *bio __attribute__ ((unused)) = NULL;
16313
16314 bio_set_op_attrs(bio, 0, 0);
16315
16316 ;
16317 return 0;
16318 }
16319
16320 _ACEOF
16321
16322
16323
16324 cat - <<_ACEOF >conftest.h
16325
16326 _ACEOF
16327
16328
16329 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
16330 echo "obj-m := conftest.o" >build/Makefile
16331 modpost_flag=''
16332 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
16333 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
16334 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16335 (eval $ac_try) 2>&5
16336 ac_status=$?
16337 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16338 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
16339 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16340 (eval $ac_try) 2>&5
16341 ac_status=$?
16342 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16343 test $ac_status = 0; }; }; then :
16344
16345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16346 $as_echo "yes" >&6; }
16347
16348 $as_echo "#define HAVE_BIO_SET_OP_ATTRS 1" >>confdefs.h
16349
16350
16351 else
16352 $as_echo "$as_me: failed program was:" >&5
16353 sed 's/^/| /' conftest.$ac_ext >&5
16354
16355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16356 $as_echo "no" >&6; }
16357
16358
16359
16360 fi
16361 rm -Rf build
16362
16363
16364
16365
16366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether generic_readlink is global" >&5
16367 $as_echo_n "checking whether generic_readlink is global... " >&6; }
16368
16369
16370 cat confdefs.h - <<_ACEOF >conftest.c
16371
16372
16373 #include <linux/fs.h>
16374
16375 int
16376 main (void)
16377 {
16378
16379 int i __attribute__ ((unused));
16380
16381 i = generic_readlink(NULL, NULL, 0);
16382
16383 ;
16384 return 0;
16385 }
16386
16387 _ACEOF
16388
16389
16390
16391 cat - <<_ACEOF >conftest.h
16392
16393 _ACEOF
16394
16395
16396 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
16397 echo "obj-m := conftest.o" >build/Makefile
16398 modpost_flag=''
16399 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
16400 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
16401 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16402 (eval $ac_try) 2>&5
16403 ac_status=$?
16404 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16405 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
16406 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16407 (eval $ac_try) 2>&5
16408 ac_status=$?
16409 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16410 test $ac_status = 0; }; }; then :
16411
16412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16413 $as_echo "yes" >&6; }
16414
16415 $as_echo "#define HAVE_GENERIC_READLINK 1" >>confdefs.h
16416
16417
16418 else
16419 $as_echo "$as_me: failed program was:" >&5
16420 sed 's/^/| /' conftest.$ac_ext >&5
16421
16422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16423 $as_echo "no" >&6; }
16424
16425
16426
16427 fi
16428 rm -Rf build
16429
16430
16431
16432
16433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ql->discard_granularity is available" >&5
16434 $as_echo_n "checking whether ql->discard_granularity is available... " >&6; }
16435
16436
16437 cat confdefs.h - <<_ACEOF >conftest.c
16438
16439
16440 #include <linux/blkdev.h>
16441
16442 int
16443 main (void)
16444 {
16445
16446 struct queue_limits ql __attribute__ ((unused));
16447
16448 ql.discard_granularity = 0;
16449
16450 ;
16451 return 0;
16452 }
16453
16454 _ACEOF
16455
16456
16457
16458 cat - <<_ACEOF >conftest.h
16459
16460 _ACEOF
16461
16462
16463 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
16464 echo "obj-m := conftest.o" >build/Makefile
16465 modpost_flag=''
16466 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
16467 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
16468 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16469 (eval $ac_try) 2>&5
16470 ac_status=$?
16471 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16472 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
16473 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16474 (eval $ac_try) 2>&5
16475 ac_status=$?
16476 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16477 test $ac_status = 0; }; }; then :
16478
16479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16480 $as_echo "yes" >&6; }
16481
16482 $as_echo "#define HAVE_DISCARD_GRANULARITY 1" >>confdefs.h
16483
16484
16485 else
16486 $as_echo "$as_me: failed program was:" >&5
16487 sed 's/^/| /' conftest.$ac_ext >&5
16488
16489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16490 $as_echo "no" >&6; }
16491
16492
16493
16494 fi
16495 rm -Rf build
16496
16497
16498
16499
16500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether super_block uses const struct xattr_handler" >&5
16501 $as_echo_n "checking whether super_block uses const struct xattr_handler... " >&6; }
16502
16503
16504 cat confdefs.h - <<_ACEOF >conftest.c
16505
16506
16507 #include <linux/fs.h>
16508 #include <linux/xattr.h>
16509
16510 const struct xattr_handler xattr_test_handler = {
16511 .prefix = "test",
16512 .get = NULL,
16513 .set = NULL,
16514 };
16515
16516 const struct xattr_handler *xattr_handlers[] = {
16517 &xattr_test_handler,
16518 };
16519
16520 const struct super_block sb __attribute__ ((unused)) = {
16521 .s_xattr = xattr_handlers,
16522 };
16523
16524 int
16525 main (void)
16526 {
16527
16528
16529 ;
16530 return 0;
16531 }
16532
16533 _ACEOF
16534
16535
16536
16537 cat - <<_ACEOF >conftest.h
16538
16539 _ACEOF
16540
16541
16542 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
16543 echo "obj-m := conftest.o" >build/Makefile
16544 modpost_flag=''
16545 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
16546 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
16547 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16548 (eval $ac_try) 2>&5
16549 ac_status=$?
16550 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16551 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
16552 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16553 (eval $ac_try) 2>&5
16554 ac_status=$?
16555 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16556 test $ac_status = 0; }; }; then :
16557
16558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16559 $as_echo "yes" >&6; }
16560
16561 $as_echo "#define HAVE_CONST_XATTR_HANDLER 1" >>confdefs.h
16562
16563
16564 else
16565 $as_echo "$as_me: failed program was:" >&5
16566 sed 's/^/| /' conftest.$ac_ext >&5
16567
16568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16569 $as_echo "no" >&6; }
16570
16571
16572
16573 fi
16574 rm -Rf build
16575
16576
16577
16578
16579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether xattr_handler has name" >&5
16580 $as_echo_n "checking whether xattr_handler has name... " >&6; }
16581
16582
16583 cat confdefs.h - <<_ACEOF >conftest.c
16584
16585
16586 #include <linux/xattr.h>
16587
16588 static const struct xattr_handler
16589 xops __attribute__ ((unused)) = {
16590 .name = XATTR_NAME_POSIX_ACL_ACCESS,
16591 };
16592
16593 int
16594 main (void)
16595 {
16596
16597
16598 ;
16599 return 0;
16600 }
16601
16602 _ACEOF
16603
16604
16605
16606 cat - <<_ACEOF >conftest.h
16607
16608 _ACEOF
16609
16610
16611 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
16612 echo "obj-m := conftest.o" >build/Makefile
16613 modpost_flag=''
16614 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
16615 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
16616 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16617 (eval $ac_try) 2>&5
16618 ac_status=$?
16619 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16620 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
16621 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16622 (eval $ac_try) 2>&5
16623 ac_status=$?
16624 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16625 test $ac_status = 0; }; }; then :
16626
16627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16628 $as_echo "yes" >&6; }
16629
16630 $as_echo "#define HAVE_XATTR_HANDLER_NAME 1" >>confdefs.h
16631
16632
16633 else
16634 $as_echo "$as_me: failed program was:" >&5
16635 sed 's/^/| /' conftest.$ac_ext >&5
16636
16637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16638 $as_echo "no" >&6; }
16639
16640
16641
16642 fi
16643 rm -Rf build
16644
16645
16646
16647
16648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether xattr_handler->get() wants both dentry and inode" >&5
16649 $as_echo_n "checking whether xattr_handler->get() wants both dentry and inode... " >&6; }
16650
16651
16652 cat confdefs.h - <<_ACEOF >conftest.c
16653
16654
16655 #include <linux/xattr.h>
16656
16657 int get(const struct xattr_handler *handler,
16658 struct dentry *dentry, struct inode *inode,
16659 const char *name, void *buffer, size_t size) { return 0; }
16660 static const struct xattr_handler
16661 xops __attribute__ ((unused)) = {
16662 .get = get,
16663 };
16664
16665 int
16666 main (void)
16667 {
16668
16669
16670 ;
16671 return 0;
16672 }
16673
16674 _ACEOF
16675
16676
16677
16678 cat - <<_ACEOF >conftest.h
16679
16680 _ACEOF
16681
16682
16683 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
16684 echo "obj-m := conftest.o" >build/Makefile
16685 modpost_flag=''
16686 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
16687 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
16688 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16689 (eval $ac_try) 2>&5
16690 ac_status=$?
16691 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16692 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
16693 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16694 (eval $ac_try) 2>&5
16695 ac_status=$?
16696 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16697 test $ac_status = 0; }; }; then :
16698
16699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16700 $as_echo "yes" >&6; }
16701
16702 $as_echo "#define HAVE_XATTR_GET_DENTRY_INODE 1" >>confdefs.h
16703
16704
16705 else
16706 $as_echo "$as_me: failed program was:" >&5
16707 sed 's/^/| /' conftest.$ac_ext >&5
16708
16709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether xattr_handler->get() wants xattr_handler" >&5
16710 $as_echo_n "checking whether xattr_handler->get() wants xattr_handler... " >&6; }
16711
16712
16713 cat confdefs.h - <<_ACEOF >conftest.c
16714
16715
16716 #include <linux/xattr.h>
16717
16718 int get(const struct xattr_handler *handler,
16719 struct dentry *dentry, const char *name,
16720 void *buffer, size_t size) { return 0; }
16721 static const struct xattr_handler
16722 xops __attribute__ ((unused)) = {
16723 .get = get,
16724 };
16725
16726 int
16727 main (void)
16728 {
16729
16730
16731 ;
16732 return 0;
16733 }
16734
16735 _ACEOF
16736
16737
16738
16739 cat - <<_ACEOF >conftest.h
16740
16741 _ACEOF
16742
16743
16744 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
16745 echo "obj-m := conftest.o" >build/Makefile
16746 modpost_flag=''
16747 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
16748 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
16749 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16750 (eval $ac_try) 2>&5
16751 ac_status=$?
16752 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16753 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
16754 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16755 (eval $ac_try) 2>&5
16756 ac_status=$?
16757 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16758 test $ac_status = 0; }; }; then :
16759
16760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16761 $as_echo "yes" >&6; }
16762
16763 $as_echo "#define HAVE_XATTR_GET_HANDLER 1" >>confdefs.h
16764
16765
16766 else
16767 $as_echo "$as_me: failed program was:" >&5
16768 sed 's/^/| /' conftest.$ac_ext >&5
16769
16770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16771 $as_echo "no" >&6; }
16772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether xattr_handler->get() wants dentry" >&5
16773 $as_echo_n "checking whether xattr_handler->get() wants dentry... " >&6; }
16774
16775
16776 cat confdefs.h - <<_ACEOF >conftest.c
16777
16778
16779 #include <linux/xattr.h>
16780
16781 int get(struct dentry *dentry, const char *name,
16782 void *buffer, size_t size, int handler_flags)
16783 { return 0; }
16784 static const struct xattr_handler
16785 xops __attribute__ ((unused)) = {
16786 .get = get,
16787 };
16788
16789 int
16790 main (void)
16791 {
16792
16793
16794 ;
16795 return 0;
16796 }
16797
16798 _ACEOF
16799
16800
16801
16802 cat - <<_ACEOF >conftest.h
16803
16804 _ACEOF
16805
16806
16807 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
16808 echo "obj-m := conftest.o" >build/Makefile
16809 modpost_flag=''
16810 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
16811 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
16812 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16813 (eval $ac_try) 2>&5
16814 ac_status=$?
16815 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16816 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
16817 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16818 (eval $ac_try) 2>&5
16819 ac_status=$?
16820 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16821 test $ac_status = 0; }; }; then :
16822
16823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16824 $as_echo "yes" >&6; }
16825
16826 $as_echo "#define HAVE_XATTR_GET_DENTRY 1" >>confdefs.h
16827
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: no" >&5
16834 $as_echo "no" >&6; }
16835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether xattr_handler->get() wants inode" >&5
16836 $as_echo_n "checking whether xattr_handler->get() wants inode... " >&6; }
16837
16838
16839 cat confdefs.h - <<_ACEOF >conftest.c
16840
16841
16842 #include <linux/xattr.h>
16843
16844 int get(struct inode *ip, const char *name,
16845 void *buffer, size_t size) { return 0; }
16846 static const struct xattr_handler
16847 xops __attribute__ ((unused)) = {
16848 .get = get,
16849 };
16850
16851 int
16852 main (void)
16853 {
16854
16855
16856 ;
16857 return 0;
16858 }
16859
16860 _ACEOF
16861
16862
16863
16864 cat - <<_ACEOF >conftest.h
16865
16866 _ACEOF
16867
16868
16869 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
16870 echo "obj-m := conftest.o" >build/Makefile
16871 modpost_flag=''
16872 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
16873 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
16874 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16875 (eval $ac_try) 2>&5
16876 ac_status=$?
16877 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16878 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
16879 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16880 (eval $ac_try) 2>&5
16881 ac_status=$?
16882 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16883 test $ac_status = 0; }; }; then :
16884
16885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16886 $as_echo "yes" >&6; }
16887
16888 $as_echo "#define HAVE_XATTR_GET_INODE 1" >>confdefs.h
16889
16890
16891 else
16892 $as_echo "$as_me: failed program was:" >&5
16893 sed 's/^/| /' conftest.$ac_ext >&5
16894
16895 as_fn_error $? "no; please file a bug report" "$LINENO" 5
16896
16897
16898
16899 fi
16900 rm -Rf build
16901
16902
16903
16904
16905
16906 fi
16907 rm -Rf build
16908
16909
16910
16911
16912
16913 fi
16914 rm -Rf build
16915
16916
16917
16918
16919
16920 fi
16921 rm -Rf build
16922
16923
16924
16925
16926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether xattr_handler->set() wants both dentry and inode" >&5
16927 $as_echo_n "checking whether xattr_handler->set() wants both dentry and inode... " >&6; }
16928
16929
16930 cat confdefs.h - <<_ACEOF >conftest.c
16931
16932
16933 #include <linux/xattr.h>
16934
16935 int set(const struct xattr_handler *handler,
16936 struct dentry *dentry, struct inode *inode,
16937 const char *name, const void *buffer,
16938 size_t size, int flags)
16939 { return 0; }
16940 static const struct xattr_handler
16941 xops __attribute__ ((unused)) = {
16942 .set = set,
16943 };
16944
16945 int
16946 main (void)
16947 {
16948
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_XATTR_SET_DENTRY_INODE 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}: checking whether xattr_handler->set() wants xattr_handler" >&5
16990 $as_echo_n "checking whether xattr_handler->set() wants xattr_handler... " >&6; }
16991
16992
16993 cat confdefs.h - <<_ACEOF >conftest.c
16994
16995
16996 #include <linux/xattr.h>
16997
16998 int set(const struct xattr_handler *handler,
16999 struct dentry *dentry, const char *name,
17000 const void *buffer, size_t size, int flags)
17001 { return 0; }
17002 static const struct xattr_handler
17003 xops __attribute__ ((unused)) = {
17004 .set = set,
17005 };
17006
17007 int
17008 main (void)
17009 {
17010
17011
17012 ;
17013 return 0;
17014 }
17015
17016 _ACEOF
17017
17018
17019
17020 cat - <<_ACEOF >conftest.h
17021
17022 _ACEOF
17023
17024
17025 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
17026 echo "obj-m := conftest.o" >build/Makefile
17027 modpost_flag=''
17028 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
17029 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
17030 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17031 (eval $ac_try) 2>&5
17032 ac_status=$?
17033 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17034 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
17035 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17036 (eval $ac_try) 2>&5
17037 ac_status=$?
17038 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17039 test $ac_status = 0; }; }; then :
17040
17041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17042 $as_echo "yes" >&6; }
17043
17044 $as_echo "#define HAVE_XATTR_SET_HANDLER 1" >>confdefs.h
17045
17046
17047 else
17048 $as_echo "$as_me: failed program was:" >&5
17049 sed 's/^/| /' conftest.$ac_ext >&5
17050
17051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17052 $as_echo "no" >&6; }
17053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether xattr_handler->set() wants dentry" >&5
17054 $as_echo_n "checking whether xattr_handler->set() wants dentry... " >&6; }
17055
17056
17057 cat confdefs.h - <<_ACEOF >conftest.c
17058
17059
17060 #include <linux/xattr.h>
17061
17062 int set(struct dentry *dentry, const char *name,
17063 const void *buffer, size_t size, int flags,
17064 int handler_flags) { return 0; }
17065 static const struct xattr_handler
17066 xops __attribute__ ((unused)) = {
17067 .set = set,
17068 };
17069
17070 int
17071 main (void)
17072 {
17073
17074
17075 ;
17076 return 0;
17077 }
17078
17079 _ACEOF
17080
17081
17082
17083 cat - <<_ACEOF >conftest.h
17084
17085 _ACEOF
17086
17087
17088 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
17089 echo "obj-m := conftest.o" >build/Makefile
17090 modpost_flag=''
17091 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
17092 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
17093 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17094 (eval $ac_try) 2>&5
17095 ac_status=$?
17096 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17097 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
17098 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17099 (eval $ac_try) 2>&5
17100 ac_status=$?
17101 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17102 test $ac_status = 0; }; }; then :
17103
17104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17105 $as_echo "yes" >&6; }
17106
17107 $as_echo "#define HAVE_XATTR_SET_DENTRY 1" >>confdefs.h
17108
17109
17110 else
17111 $as_echo "$as_me: failed program was:" >&5
17112 sed 's/^/| /' conftest.$ac_ext >&5
17113
17114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17115 $as_echo "no" >&6; }
17116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether xattr_handler->set() wants inode" >&5
17117 $as_echo_n "checking whether xattr_handler->set() wants inode... " >&6; }
17118
17119
17120 cat confdefs.h - <<_ACEOF >conftest.c
17121
17122
17123 #include <linux/xattr.h>
17124
17125 int set(struct inode *ip, const char *name,
17126 const void *buffer, size_t size, int flags)
17127 { return 0; }
17128 static const struct xattr_handler
17129 xops __attribute__ ((unused)) = {
17130 .set = set,
17131 };
17132
17133 int
17134 main (void)
17135 {
17136
17137
17138 ;
17139 return 0;
17140 }
17141
17142 _ACEOF
17143
17144
17145
17146 cat - <<_ACEOF >conftest.h
17147
17148 _ACEOF
17149
17150
17151 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
17152 echo "obj-m := conftest.o" >build/Makefile
17153 modpost_flag=''
17154 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
17155 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
17156 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17157 (eval $ac_try) 2>&5
17158 ac_status=$?
17159 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17160 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
17161 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17162 (eval $ac_try) 2>&5
17163 ac_status=$?
17164 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17165 test $ac_status = 0; }; }; then :
17166
17167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17168 $as_echo "yes" >&6; }
17169
17170 $as_echo "#define HAVE_XATTR_SET_INODE 1" >>confdefs.h
17171
17172
17173 else
17174 $as_echo "$as_me: failed program was:" >&5
17175 sed 's/^/| /' conftest.$ac_ext >&5
17176
17177 as_fn_error $? "no; please file a bug report" "$LINENO" 5
17178
17179
17180
17181 fi
17182 rm -Rf build
17183
17184
17185
17186
17187
17188 fi
17189 rm -Rf build
17190
17191
17192
17193
17194
17195 fi
17196 rm -Rf build
17197
17198
17199
17200
17201
17202 fi
17203 rm -Rf build
17204
17205
17206
17207
17208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether xattr_handler->list() wants simple" >&5
17209 $as_echo_n "checking whether xattr_handler->list() wants simple... " >&6; }
17210
17211
17212 cat confdefs.h - <<_ACEOF >conftest.c
17213
17214
17215 #include <linux/xattr.h>
17216
17217 bool list(struct dentry *dentry) { return 0; }
17218 static const struct xattr_handler
17219 xops __attribute__ ((unused)) = {
17220 .list = list,
17221 };
17222
17223 int
17224 main (void)
17225 {
17226
17227
17228 ;
17229 return 0;
17230 }
17231
17232 _ACEOF
17233
17234
17235
17236 cat - <<_ACEOF >conftest.h
17237
17238 _ACEOF
17239
17240
17241 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
17242 echo "obj-m := conftest.o" >build/Makefile
17243 modpost_flag=''
17244 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
17245 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
17246 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17247 (eval $ac_try) 2>&5
17248 ac_status=$?
17249 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17250 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
17251 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17252 (eval $ac_try) 2>&5
17253 ac_status=$?
17254 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17255 test $ac_status = 0; }; }; then :
17256
17257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17258 $as_echo "yes" >&6; }
17259
17260 $as_echo "#define HAVE_XATTR_LIST_SIMPLE 1" >>confdefs.h
17261
17262
17263 else
17264 $as_echo "$as_me: failed program was:" >&5
17265 sed 's/^/| /' conftest.$ac_ext >&5
17266
17267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17268 $as_echo "no" >&6; }
17269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether xattr_handler->list() wants xattr_handler" >&5
17270 $as_echo_n "checking whether xattr_handler->list() wants xattr_handler... " >&6; }
17271
17272
17273 cat confdefs.h - <<_ACEOF >conftest.c
17274
17275
17276 #include <linux/xattr.h>
17277
17278 size_t list(const struct xattr_handler *handler,
17279 struct dentry *dentry, char *list, size_t list_size,
17280 const char *name, size_t name_len) { return 0; }
17281 static const struct xattr_handler
17282 xops __attribute__ ((unused)) = {
17283 .list = list,
17284 };
17285
17286 int
17287 main (void)
17288 {
17289
17290
17291 ;
17292 return 0;
17293 }
17294
17295 _ACEOF
17296
17297
17298
17299 cat - <<_ACEOF >conftest.h
17300
17301 _ACEOF
17302
17303
17304 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
17305 echo "obj-m := conftest.o" >build/Makefile
17306 modpost_flag=''
17307 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
17308 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
17309 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17310 (eval $ac_try) 2>&5
17311 ac_status=$?
17312 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17313 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
17314 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17315 (eval $ac_try) 2>&5
17316 ac_status=$?
17317 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17318 test $ac_status = 0; }; }; then :
17319
17320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17321 $as_echo "yes" >&6; }
17322
17323 $as_echo "#define HAVE_XATTR_LIST_HANDLER 1" >>confdefs.h
17324
17325
17326 else
17327 $as_echo "$as_me: failed program was:" >&5
17328 sed 's/^/| /' conftest.$ac_ext >&5
17329
17330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17331 $as_echo "no" >&6; }
17332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether xattr_handler->list() wants dentry" >&5
17333 $as_echo_n "checking whether xattr_handler->list() wants dentry... " >&6; }
17334
17335
17336 cat confdefs.h - <<_ACEOF >conftest.c
17337
17338
17339 #include <linux/xattr.h>
17340
17341 size_t list(struct dentry *dentry,
17342 char *list, size_t list_size,
17343 const char *name, size_t name_len,
17344 int handler_flags) { return 0; }
17345 static const struct xattr_handler
17346 xops __attribute__ ((unused)) = {
17347 .list = list,
17348 };
17349
17350 int
17351 main (void)
17352 {
17353
17354
17355 ;
17356 return 0;
17357 }
17358
17359 _ACEOF
17360
17361
17362
17363 cat - <<_ACEOF >conftest.h
17364
17365 _ACEOF
17366
17367
17368 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
17369 echo "obj-m := conftest.o" >build/Makefile
17370 modpost_flag=''
17371 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
17372 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
17373 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17374 (eval $ac_try) 2>&5
17375 ac_status=$?
17376 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17377 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
17378 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17379 (eval $ac_try) 2>&5
17380 ac_status=$?
17381 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17382 test $ac_status = 0; }; }; then :
17383
17384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17385 $as_echo "yes" >&6; }
17386
17387 $as_echo "#define HAVE_XATTR_LIST_DENTRY 1" >>confdefs.h
17388
17389
17390 else
17391 $as_echo "$as_me: failed program was:" >&5
17392 sed 's/^/| /' conftest.$ac_ext >&5
17393
17394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17395 $as_echo "no" >&6; }
17396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether xattr_handler->list() wants inode" >&5
17397 $as_echo_n "checking whether xattr_handler->list() wants inode... " >&6; }
17398
17399
17400 cat confdefs.h - <<_ACEOF >conftest.c
17401
17402
17403 #include <linux/xattr.h>
17404
17405 size_t list(struct inode *ip, char *lst,
17406 size_t list_size, const char *name,
17407 size_t name_len) { return 0; }
17408 static const struct xattr_handler
17409 xops __attribute__ ((unused)) = {
17410 .list = list,
17411 };
17412
17413 int
17414 main (void)
17415 {
17416
17417
17418 ;
17419 return 0;
17420 }
17421
17422 _ACEOF
17423
17424
17425
17426 cat - <<_ACEOF >conftest.h
17427
17428 _ACEOF
17429
17430
17431 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
17432 echo "obj-m := conftest.o" >build/Makefile
17433 modpost_flag=''
17434 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
17435 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
17436 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17437 (eval $ac_try) 2>&5
17438 ac_status=$?
17439 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17440 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
17441 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17442 (eval $ac_try) 2>&5
17443 ac_status=$?
17444 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17445 test $ac_status = 0; }; }; then :
17446
17447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17448 $as_echo "yes" >&6; }
17449
17450 $as_echo "#define HAVE_XATTR_LIST_INODE 1" >>confdefs.h
17451
17452
17453 else
17454 $as_echo "$as_me: failed program was:" >&5
17455 sed 's/^/| /' conftest.$ac_ext >&5
17456
17457 as_fn_error $? "no; please file a bug report" "$LINENO" 5
17458
17459
17460
17461 fi
17462 rm -Rf build
17463
17464
17465
17466
17467
17468 fi
17469 rm -Rf build
17470
17471
17472
17473
17474
17475 fi
17476 rm -Rf build
17477
17478
17479
17480
17481
17482 fi
17483 rm -Rf build
17484
17485
17486
17487
17488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether inode_owner_or_capable() exists" >&5
17489 $as_echo_n "checking whether inode_owner_or_capable() exists... " >&6; }
17490
17491
17492 cat confdefs.h - <<_ACEOF >conftest.c
17493
17494
17495 #include <linux/fs.h>
17496
17497 int
17498 main (void)
17499 {
17500
17501 struct inode *ip = NULL;
17502 (void) inode_owner_or_capable(ip);
17503
17504 ;
17505 return 0;
17506 }
17507
17508 _ACEOF
17509
17510
17511
17512 cat - <<_ACEOF >conftest.h
17513
17514 _ACEOF
17515
17516
17517 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
17518 echo "obj-m := conftest.o" >build/Makefile
17519 modpost_flag=''
17520 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
17521 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
17522 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17523 (eval $ac_try) 2>&5
17524 ac_status=$?
17525 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17526 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
17527 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17528 (eval $ac_try) 2>&5
17529 ac_status=$?
17530 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17531 test $ac_status = 0; }; }; then :
17532
17533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17534 $as_echo "yes" >&6; }
17535
17536 $as_echo "#define HAVE_INODE_OWNER_OR_CAPABLE 1" >>confdefs.h
17537
17538
17539 else
17540 $as_echo "$as_me: failed program was:" >&5
17541 sed 's/^/| /' conftest.$ac_ext >&5
17542
17543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17544 $as_echo "no" >&6; }
17545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether is_owner_or_cap() exists" >&5
17546 $as_echo_n "checking whether is_owner_or_cap() exists... " >&6; }
17547
17548
17549 cat confdefs.h - <<_ACEOF >conftest.c
17550
17551
17552 #include <linux/fs.h>
17553 #include <linux/sched.h>
17554
17555 int
17556 main (void)
17557 {
17558
17559 struct inode *ip = NULL;
17560 (void) is_owner_or_cap(ip);
17561
17562 ;
17563 return 0;
17564 }
17565
17566 _ACEOF
17567
17568
17569
17570 cat - <<_ACEOF >conftest.h
17571
17572 _ACEOF
17573
17574
17575 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
17576 echo "obj-m := conftest.o" >build/Makefile
17577 modpost_flag=''
17578 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
17579 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
17580 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17581 (eval $ac_try) 2>&5
17582 ac_status=$?
17583 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17584 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
17585 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17586 (eval $ac_try) 2>&5
17587 ac_status=$?
17588 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17589 test $ac_status = 0; }; }; then :
17590
17591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17592 $as_echo "yes" >&6; }
17593
17594 $as_echo "#define HAVE_IS_OWNER_OR_CAP 1" >>confdefs.h
17595
17596
17597 else
17598 $as_echo "$as_me: failed program was:" >&5
17599 sed 's/^/| /' conftest.$ac_ext >&5
17600
17601 as_fn_error $? "no - Please file a bug report at
17602 https://github.com/zfsonlinux/zfs/issues/new" "$LINENO" 5
17603
17604
17605
17606 fi
17607 rm -Rf build
17608
17609
17610
17611
17612
17613 fi
17614 rm -Rf build
17615
17616
17617
17618
17619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether posix_acl_from_xattr() needs user_ns" >&5
17620 $as_echo_n "checking whether posix_acl_from_xattr() needs user_ns... " >&6; }
17621
17622
17623 cat confdefs.h - <<_ACEOF >conftest.c
17624
17625
17626 #include <linux/cred.h>
17627 #include <linux/fs.h>
17628 #include <linux/posix_acl_xattr.h>
17629
17630 int
17631 main (void)
17632 {
17633
17634 posix_acl_from_xattr(&init_user_ns, NULL, 0);
17635
17636 ;
17637 return 0;
17638 }
17639
17640 _ACEOF
17641
17642
17643
17644 cat - <<_ACEOF >conftest.h
17645
17646 _ACEOF
17647
17648
17649 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
17650 echo "obj-m := conftest.o" >build/Makefile
17651 modpost_flag=''
17652 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
17653 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
17654 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17655 (eval $ac_try) 2>&5
17656 ac_status=$?
17657 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17658 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
17659 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17660 (eval $ac_try) 2>&5
17661 ac_status=$?
17662 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17663 test $ac_status = 0; }; }; then :
17664
17665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17666 $as_echo "yes" >&6; }
17667
17668 $as_echo "#define HAVE_POSIX_ACL_FROM_XATTR_USERNS 1" >>confdefs.h
17669
17670
17671 else
17672 $as_echo "$as_me: failed program was:" >&5
17673 sed 's/^/| /' conftest.$ac_ext >&5
17674
17675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17676 $as_echo "no" >&6; }
17677
17678
17679
17680 fi
17681 rm -Rf build
17682
17683
17684
17685
17686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether posix_acl_release() is available" >&5
17687 $as_echo_n "checking whether posix_acl_release() is available... " >&6; }
17688
17689
17690 cat confdefs.h - <<_ACEOF >conftest.c
17691
17692
17693 #include <linux/cred.h>
17694 #include <linux/fs.h>
17695 #include <linux/posix_acl.h>
17696
17697 int
17698 main (void)
17699 {
17700
17701 struct posix_acl* tmp = posix_acl_alloc(1, 0);
17702 posix_acl_release(tmp);
17703
17704 ;
17705 return 0;
17706 }
17707
17708 _ACEOF
17709
17710
17711
17712 cat - <<_ACEOF >conftest.h
17713
17714 _ACEOF
17715
17716
17717 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
17718 echo "obj-m := conftest.o" >build/Makefile
17719 modpost_flag=''
17720 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
17721 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
17722 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17723 (eval $ac_try) 2>&5
17724 ac_status=$?
17725 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17726 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
17727 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17728 (eval $ac_try) 2>&5
17729 ac_status=$?
17730 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17731 test $ac_status = 0; }; }; then :
17732
17733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17734 $as_echo "yes" >&6; }
17735
17736 $as_echo "#define HAVE_POSIX_ACL_RELEASE 1" >>confdefs.h
17737
17738
17739 else
17740 $as_echo "$as_me: failed program was:" >&5
17741 sed 's/^/| /' conftest.$ac_ext >&5
17742
17743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17744 $as_echo "no" >&6; }
17745
17746
17747
17748 fi
17749 rm -Rf build
17750
17751
17752
17753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether posix_acl_release() is GPL-only" >&5
17754 $as_echo_n "checking whether posix_acl_release() is GPL-only... " >&6; }
17755
17756
17757 cat confdefs.h - <<_ACEOF >conftest.c
17758
17759
17760 #include <linux/cred.h>
17761 #include <linux/fs.h>
17762 #include <linux/posix_acl.h>
17763
17764 MODULE_LICENSE("$ZFS_META_LICENSE");
17765
17766 int
17767 main (void)
17768 {
17769
17770 struct posix_acl* tmp = posix_acl_alloc(1, 0);
17771 posix_acl_release(tmp);
17772
17773 ;
17774 return 0;
17775 }
17776
17777 _ACEOF
17778
17779
17780
17781 cat - <<_ACEOF >conftest.h
17782
17783 _ACEOF
17784
17785
17786 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
17787 echo "obj-m := conftest.o" >build/Makefile
17788 modpost_flag=''
17789 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
17790 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
17791 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17792 (eval $ac_try) 2>&5
17793 ac_status=$?
17794 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17795 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
17796 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17797 (eval $ac_try) 2>&5
17798 ac_status=$?
17799 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17800 test $ac_status = 0; }; }; then :
17801
17802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17803 $as_echo "no" >&6; }
17804
17805 else
17806 $as_echo "$as_me: failed program was:" >&5
17807 sed 's/^/| /' conftest.$ac_ext >&5
17808
17809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17810 $as_echo "yes" >&6; }
17811
17812 $as_echo "#define HAVE_POSIX_ACL_RELEASE_GPL_ONLY 1" >>confdefs.h
17813
17814
17815
17816
17817 fi
17818 rm -Rf build
17819
17820
17821
17822
17823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether set_cached_acl() is usable" >&5
17824 $as_echo_n "checking whether set_cached_acl() is usable... " >&6; }
17825
17826
17827 cat confdefs.h - <<_ACEOF >conftest.c
17828
17829
17830 #include <linux/module.h>
17831 #include <linux/cred.h>
17832 #include <linux/fs.h>
17833 #include <linux/posix_acl.h>
17834
17835 MODULE_LICENSE("$ZFS_META_LICENSE");
17836
17837 int
17838 main (void)
17839 {
17840
17841 struct inode *ip = NULL;
17842 struct posix_acl *acl = posix_acl_alloc(1, 0);
17843 set_cached_acl(ip, ACL_TYPE_ACCESS, acl);
17844 forget_cached_acl(ip, ACL_TYPE_ACCESS);
17845
17846 ;
17847 return 0;
17848 }
17849
17850 _ACEOF
17851
17852
17853
17854 cat - <<_ACEOF >conftest.h
17855
17856 _ACEOF
17857
17858
17859 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
17860 echo "obj-m := conftest.o" >build/Makefile
17861 modpost_flag=''
17862 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
17863 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
17864 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17865 (eval $ac_try) 2>&5
17866 ac_status=$?
17867 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17868 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
17869 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17870 (eval $ac_try) 2>&5
17871 ac_status=$?
17872 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17873 test $ac_status = 0; }; }; then :
17874
17875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17876 $as_echo "yes" >&6; }
17877
17878 $as_echo "#define HAVE_SET_CACHED_ACL_USABLE 1" >>confdefs.h
17879
17880
17881 else
17882 $as_echo "$as_me: failed program was:" >&5
17883 sed 's/^/| /' conftest.$ac_ext >&5
17884
17885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17886 $as_echo "no" >&6; }
17887
17888
17889
17890 fi
17891 rm -Rf build
17892
17893
17894
17895
17896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether posix_acl_chmod exists" >&5
17897 $as_echo_n "checking whether posix_acl_chmod exists... " >&6; }
17898
17899
17900 cat confdefs.h - <<_ACEOF >conftest.c
17901
17902
17903 #include <linux/fs.h>
17904 #include <linux/posix_acl.h>
17905
17906 int
17907 main (void)
17908 {
17909
17910 posix_acl_chmod(NULL, 0, 0)
17911
17912 ;
17913 return 0;
17914 }
17915
17916 _ACEOF
17917
17918
17919
17920 cat - <<_ACEOF >conftest.h
17921
17922 _ACEOF
17923
17924
17925 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
17926 echo "obj-m := conftest.o" >build/Makefile
17927 modpost_flag=''
17928 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
17929 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
17930 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17931 (eval $ac_try) 2>&5
17932 ac_status=$?
17933 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17934 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
17935 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17936 (eval $ac_try) 2>&5
17937 ac_status=$?
17938 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17939 test $ac_status = 0; }; }; then :
17940
17941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17942 $as_echo "yes" >&6; }
17943
17944 $as_echo "#define HAVE_POSIX_ACL_CHMOD 1" >>confdefs.h
17945
17946
17947 else
17948 $as_echo "$as_me: failed program was:" >&5
17949 sed 's/^/| /' conftest.$ac_ext >&5
17950
17951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17952 $as_echo "no" >&6; }
17953
17954
17955
17956 fi
17957 rm -Rf build
17958
17959
17960
17961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __posix_acl_chmod exists" >&5
17962 $as_echo_n "checking whether __posix_acl_chmod exists... " >&6; }
17963
17964
17965 cat confdefs.h - <<_ACEOF >conftest.c
17966
17967
17968 #include <linux/fs.h>
17969 #include <linux/posix_acl.h>
17970
17971 int
17972 main (void)
17973 {
17974
17975 __posix_acl_chmod(NULL, 0, 0)
17976
17977 ;
17978 return 0;
17979 }
17980
17981 _ACEOF
17982
17983
17984
17985 cat - <<_ACEOF >conftest.h
17986
17987 _ACEOF
17988
17989
17990 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
17991 echo "obj-m := conftest.o" >build/Makefile
17992 modpost_flag=''
17993 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
17994 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
17995 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17996 (eval $ac_try) 2>&5
17997 ac_status=$?
17998 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17999 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
18000 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18001 (eval $ac_try) 2>&5
18002 ac_status=$?
18003 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18004 test $ac_status = 0; }; }; then :
18005
18006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18007 $as_echo "yes" >&6; }
18008
18009 $as_echo "#define HAVE___POSIX_ACL_CHMOD 1" >>confdefs.h
18010
18011
18012 else
18013 $as_echo "$as_me: failed program was:" >&5
18014 sed 's/^/| /' conftest.$ac_ext >&5
18015
18016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18017 $as_echo "no" >&6; }
18018
18019
18020
18021 fi
18022 rm -Rf build
18023
18024
18025
18026
18027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether posix_acl_equiv_mode() wants umode_t" >&5
18028 $as_echo_n "checking whether posix_acl_equiv_mode() wants umode_t... " >&6; }
18029
18030
18031 cat confdefs.h - <<_ACEOF >conftest.c
18032
18033
18034 #include <linux/fs.h>
18035 #include <linux/posix_acl.h>
18036
18037 int
18038 main (void)
18039 {
18040
18041 umode_t tmp;
18042 posix_acl_equiv_mode(NULL,&tmp);
18043
18044 ;
18045 return 0;
18046 }
18047
18048 _ACEOF
18049
18050
18051
18052 cat - <<_ACEOF >conftest.h
18053
18054 _ACEOF
18055
18056
18057 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
18058 echo "obj-m := conftest.o" >build/Makefile
18059 modpost_flag=''
18060 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
18061 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
18062 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18063 (eval $ac_try) 2>&5
18064 ac_status=$?
18065 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18066 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
18067 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18068 (eval $ac_try) 2>&5
18069 ac_status=$?
18070 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18071 test $ac_status = 0; }; }; then :
18072
18073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18074 $as_echo "yes" >&6; }
18075
18076 $as_echo "#define HAVE_POSIX_ACL_EQUIV_MODE_UMODE_T 1" >>confdefs.h
18077
18078
18079 else
18080 $as_echo "$as_me: failed program was:" >&5
18081 sed 's/^/| /' conftest.$ac_ext >&5
18082
18083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18084 $as_echo "no" >&6; }
18085
18086
18087
18088 fi
18089 rm -Rf build
18090
18091
18092
18093
18094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether posix_acl_valid() wants user namespace" >&5
18095 $as_echo_n "checking whether posix_acl_valid() wants user namespace... " >&6; }
18096
18097
18098 cat confdefs.h - <<_ACEOF >conftest.c
18099
18100
18101 #include <linux/fs.h>
18102 #include <linux/posix_acl.h>
18103
18104 int
18105 main (void)
18106 {
18107
18108 struct user_namespace *user_ns = NULL;
18109 const struct posix_acl *acl = NULL;
18110 int error;
18111
18112 error = posix_acl_valid(user_ns, acl);
18113
18114 ;
18115 return 0;
18116 }
18117
18118 _ACEOF
18119
18120
18121
18122 cat - <<_ACEOF >conftest.h
18123
18124 _ACEOF
18125
18126
18127 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
18128 echo "obj-m := conftest.o" >build/Makefile
18129 modpost_flag=''
18130 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
18131 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
18132 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18133 (eval $ac_try) 2>&5
18134 ac_status=$?
18135 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18136 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
18137 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18138 (eval $ac_try) 2>&5
18139 ac_status=$?
18140 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18141 test $ac_status = 0; }; }; then :
18142
18143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18144 $as_echo "yes" >&6; }
18145
18146 $as_echo "#define HAVE_POSIX_ACL_VALID_WITH_NS 1" >>confdefs.h
18147
18148
18149 else
18150 $as_echo "$as_me: failed program was:" >&5
18151 sed 's/^/| /' conftest.$ac_ext >&5
18152
18153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18154 $as_echo "no" >&6; }
18155
18156
18157
18158 fi
18159 rm -Rf build
18160
18161
18162
18163
18164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->permission() exists" >&5
18165 $as_echo_n "checking whether iops->permission() exists... " >&6; }
18166
18167
18168 cat confdefs.h - <<_ACEOF >conftest.c
18169
18170
18171 #include <linux/fs.h>
18172
18173 int permission_fn(struct inode *inode, int mask) { return 0; }
18174
18175 static const struct inode_operations
18176 iops __attribute__ ((unused)) = {
18177 .permission = permission_fn,
18178 };
18179
18180 int
18181 main (void)
18182 {
18183
18184
18185 ;
18186 return 0;
18187 }
18188
18189 _ACEOF
18190
18191
18192
18193 cat - <<_ACEOF >conftest.h
18194
18195 _ACEOF
18196
18197
18198 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
18199 echo "obj-m := conftest.o" >build/Makefile
18200 modpost_flag=''
18201 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
18202 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
18203 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18204 (eval $ac_try) 2>&5
18205 ac_status=$?
18206 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18207 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
18208 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18209 (eval $ac_try) 2>&5
18210 ac_status=$?
18211 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18212 test $ac_status = 0; }; }; then :
18213
18214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18215 $as_echo "yes" >&6; }
18216
18217 $as_echo "#define HAVE_PERMISSION 1" >>confdefs.h
18218
18219
18220 else
18221 $as_echo "$as_me: failed program was:" >&5
18222 sed 's/^/| /' conftest.$ac_ext >&5
18223
18224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18225 $as_echo "no" >&6; }
18226
18227
18228
18229 fi
18230 rm -Rf build
18231
18232
18233
18234
18235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->permission() wants nameidata" >&5
18236 $as_echo_n "checking whether iops->permission() wants nameidata... " >&6; }
18237
18238
18239 cat confdefs.h - <<_ACEOF >conftest.c
18240
18241
18242 #include <linux/fs.h>
18243
18244 int permission_fn(struct inode *inode, int mask,
18245 struct nameidata *nd) { return 0; }
18246
18247 static const struct inode_operations
18248 iops __attribute__ ((unused)) = {
18249 .permission = permission_fn,
18250 };
18251
18252 int
18253 main (void)
18254 {
18255
18256
18257 ;
18258 return 0;
18259 }
18260
18261 _ACEOF
18262
18263
18264
18265 cat - <<_ACEOF >conftest.h
18266
18267 _ACEOF
18268
18269
18270 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
18271 echo "obj-m := conftest.o" >build/Makefile
18272 modpost_flag=''
18273 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
18274 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
18275 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18276 (eval $ac_try) 2>&5
18277 ac_status=$?
18278 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18279 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
18280 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18281 (eval $ac_try) 2>&5
18282 ac_status=$?
18283 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18284 test $ac_status = 0; }; }; then :
18285
18286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18287 $as_echo "yes" >&6; }
18288
18289 $as_echo "#define HAVE_PERMISSION 1" >>confdefs.h
18290
18291
18292 $as_echo "#define HAVE_PERMISSION_WITH_NAMEIDATA 1" >>confdefs.h
18293
18294
18295 else
18296 $as_echo "$as_me: failed program was:" >&5
18297 sed 's/^/| /' conftest.$ac_ext >&5
18298
18299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18300 $as_echo "no" >&6; }
18301
18302
18303
18304 fi
18305 rm -Rf build
18306
18307
18308
18309
18310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->check_acl() exists" >&5
18311 $as_echo_n "checking whether iops->check_acl() exists... " >&6; }
18312
18313
18314 cat confdefs.h - <<_ACEOF >conftest.c
18315
18316
18317 #include <linux/fs.h>
18318
18319 int check_acl_fn(struct inode *inode, int mask) { return 0; }
18320
18321 static const struct inode_operations
18322 iops __attribute__ ((unused)) = {
18323 .check_acl = check_acl_fn,
18324 };
18325
18326 int
18327 main (void)
18328 {
18329
18330
18331 ;
18332 return 0;
18333 }
18334
18335 _ACEOF
18336
18337
18338
18339 cat - <<_ACEOF >conftest.h
18340
18341 _ACEOF
18342
18343
18344 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
18345 echo "obj-m := conftest.o" >build/Makefile
18346 modpost_flag=''
18347 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
18348 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
18349 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18350 (eval $ac_try) 2>&5
18351 ac_status=$?
18352 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18353 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
18354 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18355 (eval $ac_try) 2>&5
18356 ac_status=$?
18357 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18358 test $ac_status = 0; }; }; then :
18359
18360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18361 $as_echo "yes" >&6; }
18362
18363 $as_echo "#define HAVE_CHECK_ACL 1" >>confdefs.h
18364
18365
18366 else
18367 $as_echo "$as_me: failed program was:" >&5
18368 sed 's/^/| /' conftest.$ac_ext >&5
18369
18370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18371 $as_echo "no" >&6; }
18372
18373
18374
18375 fi
18376 rm -Rf build
18377
18378
18379
18380
18381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->check_acl() wants flags" >&5
18382 $as_echo_n "checking whether iops->check_acl() wants flags... " >&6; }
18383
18384
18385 cat confdefs.h - <<_ACEOF >conftest.c
18386
18387
18388 #include <linux/fs.h>
18389
18390 int check_acl_fn(struct inode *inode, int mask,
18391 unsigned int flags) { return 0; }
18392
18393 static const struct inode_operations
18394 iops __attribute__ ((unused)) = {
18395 .check_acl = check_acl_fn,
18396 };
18397
18398 int
18399 main (void)
18400 {
18401
18402
18403 ;
18404 return 0;
18405 }
18406
18407 _ACEOF
18408
18409
18410
18411 cat - <<_ACEOF >conftest.h
18412
18413 _ACEOF
18414
18415
18416 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
18417 echo "obj-m := conftest.o" >build/Makefile
18418 modpost_flag=''
18419 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
18420 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
18421 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18422 (eval $ac_try) 2>&5
18423 ac_status=$?
18424 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18425 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
18426 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18427 (eval $ac_try) 2>&5
18428 ac_status=$?
18429 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18430 test $ac_status = 0; }; }; then :
18431
18432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18433 $as_echo "yes" >&6; }
18434
18435 $as_echo "#define HAVE_CHECK_ACL 1" >>confdefs.h
18436
18437
18438 $as_echo "#define HAVE_CHECK_ACL_WITH_FLAGS 1" >>confdefs.h
18439
18440
18441 else
18442 $as_echo "$as_me: failed program was:" >&5
18443 sed 's/^/| /' conftest.$ac_ext >&5
18444
18445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18446 $as_echo "no" >&6; }
18447
18448
18449
18450 fi
18451 rm -Rf build
18452
18453
18454
18455
18456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->get_acl() exists" >&5
18457 $as_echo_n "checking whether iops->get_acl() exists... " >&6; }
18458
18459
18460 cat confdefs.h - <<_ACEOF >conftest.c
18461
18462
18463 #include <linux/fs.h>
18464
18465 struct posix_acl *get_acl_fn(struct inode *inode, int type)
18466 { return NULL; }
18467
18468 static const struct inode_operations
18469 iops __attribute__ ((unused)) = {
18470 .get_acl = get_acl_fn,
18471 };
18472
18473 int
18474 main (void)
18475 {
18476
18477
18478 ;
18479 return 0;
18480 }
18481
18482 _ACEOF
18483
18484
18485
18486 cat - <<_ACEOF >conftest.h
18487
18488 _ACEOF
18489
18490
18491 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
18492 echo "obj-m := conftest.o" >build/Makefile
18493 modpost_flag=''
18494 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
18495 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
18496 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18497 (eval $ac_try) 2>&5
18498 ac_status=$?
18499 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18500 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
18501 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18502 (eval $ac_try) 2>&5
18503 ac_status=$?
18504 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18505 test $ac_status = 0; }; }; then :
18506
18507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18508 $as_echo "yes" >&6; }
18509
18510 $as_echo "#define HAVE_GET_ACL 1" >>confdefs.h
18511
18512
18513 else
18514 $as_echo "$as_me: failed program was:" >&5
18515 sed 's/^/| /' conftest.$ac_ext >&5
18516
18517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18518 $as_echo "no" >&6; }
18519
18520
18521
18522 fi
18523 rm -Rf build
18524
18525
18526
18527
18528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->set_acl() exists" >&5
18529 $as_echo_n "checking whether iops->set_acl() exists... " >&6; }
18530
18531
18532 cat confdefs.h - <<_ACEOF >conftest.c
18533
18534
18535 #include <linux/fs.h>
18536
18537 int set_acl_fn(struct inode *inode, struct posix_acl *acl, int type)
18538 { return 0; }
18539
18540 static const struct inode_operations
18541 iops __attribute__ ((unused)) = {
18542 .set_acl = set_acl_fn,
18543 };
18544
18545 int
18546 main (void)
18547 {
18548
18549
18550 ;
18551 return 0;
18552 }
18553
18554 _ACEOF
18555
18556
18557
18558 cat - <<_ACEOF >conftest.h
18559
18560 _ACEOF
18561
18562
18563 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
18564 echo "obj-m := conftest.o" >build/Makefile
18565 modpost_flag=''
18566 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
18567 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
18568 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18569 (eval $ac_try) 2>&5
18570 ac_status=$?
18571 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18572 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
18573 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18574 (eval $ac_try) 2>&5
18575 ac_status=$?
18576 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18577 test $ac_status = 0; }; }; then :
18578
18579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18580 $as_echo "yes" >&6; }
18581
18582 $as_echo "#define HAVE_SET_ACL 1" >>confdefs.h
18583
18584
18585 else
18586 $as_echo "$as_me: failed program was:" >&5
18587 sed 's/^/| /' conftest.$ac_ext >&5
18588
18589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18590 $as_echo "no" >&6; }
18591
18592
18593
18594 fi
18595 rm -Rf build
18596
18597
18598
18599
18600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether uncached_acl_sentinel() exists" >&5
18601 $as_echo_n "checking whether uncached_acl_sentinel() exists... " >&6; }
18602
18603
18604 cat confdefs.h - <<_ACEOF >conftest.c
18605
18606
18607 #include <linux/fs.h>
18608
18609 int
18610 main (void)
18611 {
18612
18613 void *sentinel __attribute__ ((unused)) = uncached_acl_sentinel(NULL);
18614
18615 ;
18616 return 0;
18617 }
18618
18619 _ACEOF
18620
18621
18622
18623 cat - <<_ACEOF >conftest.h
18624
18625 _ACEOF
18626
18627
18628 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
18629 echo "obj-m := conftest.o" >build/Makefile
18630 modpost_flag=''
18631 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
18632 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
18633 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18634 (eval $ac_try) 2>&5
18635 ac_status=$?
18636 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18637 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
18638 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18639 (eval $ac_try) 2>&5
18640 ac_status=$?
18641 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18642 test $ac_status = 0; }; }; then :
18643
18644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18645 $as_echo "yes" >&6; }
18646
18647 $as_echo "#define HAVE_KERNEL_GET_ACL_HANDLE_CACHE 1" >>confdefs.h
18648
18649
18650 else
18651 $as_echo "$as_me: failed program was:" >&5
18652 sed 's/^/| /' conftest.$ac_ext >&5
18653
18654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18655 $as_echo "no" >&6; }
18656
18657
18658
18659 fi
18660 rm -Rf build
18661
18662
18663
18664
18665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sops->show_options() wants dentry" >&5
18666 $as_echo_n "checking whether sops->show_options() wants dentry... " >&6; }
18667
18668
18669
18670 cat confdefs.h - <<_ACEOF >conftest.c
18671
18672
18673 #include <linux/fs.h>
18674
18675 int show_options (struct seq_file * x, struct dentry * y) { return 0; };
18676 static struct super_operations sops __attribute__ ((unused)) = {
18677 .show_options = show_options,
18678 };
18679
18680 int
18681 main (void)
18682 {
18683
18684
18685 ;
18686 return 0;
18687 }
18688
18689 _ACEOF
18690
18691
18692
18693 cat - <<_ACEOF >conftest.h
18694
18695 _ACEOF
18696
18697
18698 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
18699 echo "obj-m := conftest.o" >build/Makefile
18700 modpost_flag=''
18701 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
18702 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
18703 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18704 (eval $ac_try) 2>&5
18705 ac_status=$?
18706 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18707 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
18708 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18709 (eval $ac_try) 2>&5
18710 ac_status=$?
18711 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18712 test $ac_status = 0; }; }; then :
18713
18714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18715 $as_echo "yes" >&6; }
18716
18717 $as_echo "#define HAVE_SHOW_OPTIONS_WITH_DENTRY 1" >>confdefs.h
18718
18719
18720 else
18721 $as_echo "$as_me: failed program was:" >&5
18722 sed 's/^/| /' conftest.$ac_ext >&5
18723
18724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18725 $as_echo "no" >&6; }
18726
18727
18728
18729 fi
18730 rm -Rf build
18731
18732
18733
18734
18735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether file_inode() is available" >&5
18736 $as_echo_n "checking whether file_inode() is available... " >&6; }
18737
18738
18739 cat confdefs.h - <<_ACEOF >conftest.c
18740
18741
18742 #include <linux/fs.h>
18743
18744 int
18745 main (void)
18746 {
18747
18748 struct file *f = NULL;
18749 file_inode(f);
18750
18751 ;
18752 return 0;
18753 }
18754
18755 _ACEOF
18756
18757
18758
18759 cat - <<_ACEOF >conftest.h
18760
18761 _ACEOF
18762
18763
18764 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
18765 echo "obj-m := conftest.o" >build/Makefile
18766 modpost_flag=''
18767 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
18768 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
18769 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18770 (eval $ac_try) 2>&5
18771 ac_status=$?
18772 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18773 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
18774 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18775 (eval $ac_try) 2>&5
18776 ac_status=$?
18777 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18778 test $ac_status = 0; }; }; then :
18779
18780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18781 $as_echo "yes" >&6; }
18782
18783 $as_echo "#define HAVE_FILE_INODE 1" >>confdefs.h
18784
18785
18786 else
18787 $as_echo "$as_me: failed program was:" >&5
18788 sed 's/^/| /' conftest.$ac_ext >&5
18789
18790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18791 $as_echo "no" >&6; }
18792
18793
18794
18795 fi
18796 rm -Rf build
18797
18798
18799
18800
18801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fops->fsync() wants" >&5
18802 $as_echo_n "checking whether fops->fsync() wants... " >&6; }
18803
18804
18805
18806 cat confdefs.h - <<_ACEOF >conftest.c
18807
18808
18809 #include <linux/fs.h>
18810
18811 int test_fsync(struct file *f, struct dentry *dentry, int x)
18812 { return 0; }
18813
18814 static const struct file_operations
18815 fops __attribute__ ((unused)) = {
18816 .fsync = test_fsync,
18817 };
18818
18819 int
18820 main (void)
18821 {
18822
18823
18824 ;
18825 return 0;
18826 }
18827
18828 _ACEOF
18829
18830
18831
18832 cat - <<_ACEOF >conftest.h
18833
18834 _ACEOF
18835
18836
18837 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
18838 echo "obj-m := conftest.o" >build/Makefile
18839 modpost_flag=''
18840 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
18841 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
18842 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18843 (eval $ac_try) 2>&5
18844 ac_status=$?
18845 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18846 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
18847 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18848 (eval $ac_try) 2>&5
18849 ac_status=$?
18850 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18851 test $ac_status = 0; }; }; then :
18852
18853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: dentry" >&5
18854 $as_echo "dentry" >&6; }
18855
18856 $as_echo "#define HAVE_FSYNC_WITH_DENTRY 1" >>confdefs.h
18857
18858
18859 else
18860 $as_echo "$as_me: failed program was:" >&5
18861 sed 's/^/| /' conftest.$ac_ext >&5
18862
18863
18864
18865
18866 fi
18867 rm -Rf build
18868
18869
18870
18871
18872
18873
18874 cat confdefs.h - <<_ACEOF >conftest.c
18875
18876
18877 #include <linux/fs.h>
18878
18879 int test_fsync(struct file *f, int x) { return 0; }
18880
18881 static const struct file_operations
18882 fops __attribute__ ((unused)) = {
18883 .fsync = test_fsync,
18884 };
18885
18886 int
18887 main (void)
18888 {
18889
18890
18891 ;
18892 return 0;
18893 }
18894
18895 _ACEOF
18896
18897
18898
18899 cat - <<_ACEOF >conftest.h
18900
18901 _ACEOF
18902
18903
18904 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
18905 echo "obj-m := conftest.o" >build/Makefile
18906 modpost_flag=''
18907 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
18908 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
18909 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18910 (eval $ac_try) 2>&5
18911 ac_status=$?
18912 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18913 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
18914 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18915 (eval $ac_try) 2>&5
18916 ac_status=$?
18917 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18918 test $ac_status = 0; }; }; then :
18919
18920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no dentry" >&5
18921 $as_echo "no dentry" >&6; }
18922
18923 $as_echo "#define HAVE_FSYNC_WITHOUT_DENTRY 1" >>confdefs.h
18924
18925
18926 else
18927 $as_echo "$as_me: failed program was:" >&5
18928 sed 's/^/| /' conftest.$ac_ext >&5
18929
18930
18931
18932
18933 fi
18934 rm -Rf build
18935
18936
18937
18938
18939
18940
18941 cat confdefs.h - <<_ACEOF >conftest.c
18942
18943
18944 #include <linux/fs.h>
18945
18946 int test_fsync(struct file *f, loff_t a, loff_t b, int c)
18947 { return 0; }
18948
18949 static const struct file_operations
18950 fops __attribute__ ((unused)) = {
18951 .fsync = test_fsync,
18952 };
18953
18954 int
18955 main (void)
18956 {
18957
18958
18959 ;
18960 return 0;
18961 }
18962
18963 _ACEOF
18964
18965
18966
18967 cat - <<_ACEOF >conftest.h
18968
18969 _ACEOF
18970
18971
18972 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
18973 echo "obj-m := conftest.o" >build/Makefile
18974 modpost_flag=''
18975 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
18976 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
18977 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18978 (eval $ac_try) 2>&5
18979 ac_status=$?
18980 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18981 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
18982 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18983 (eval $ac_try) 2>&5
18984 ac_status=$?
18985 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18986 test $ac_status = 0; }; }; then :
18987
18988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: range" >&5
18989 $as_echo "range" >&6; }
18990
18991 $as_echo "#define HAVE_FSYNC_RANGE 1" >>confdefs.h
18992
18993
18994 else
18995 $as_echo "$as_me: failed program was:" >&5
18996 sed 's/^/| /' conftest.$ac_ext >&5
18997
18998
18999
19000
19001 fi
19002 rm -Rf build
19003
19004
19005
19006
19007
19008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sops->evict_inode() exists" >&5
19009 $as_echo_n "checking whether sops->evict_inode() exists... " >&6; }
19010
19011
19012 cat confdefs.h - <<_ACEOF >conftest.c
19013
19014
19015 #include <linux/fs.h>
19016 void evict_inode (struct inode * t) { return; }
19017 static struct super_operations sops __attribute__ ((unused)) = {
19018 .evict_inode = evict_inode,
19019 };
19020
19021 int
19022 main (void)
19023 {
19024
19025
19026 ;
19027 return 0;
19028 }
19029
19030 _ACEOF
19031
19032
19033
19034 cat - <<_ACEOF >conftest.h
19035
19036 _ACEOF
19037
19038
19039 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
19040 echo "obj-m := conftest.o" >build/Makefile
19041 modpost_flag=''
19042 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
19043 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
19044 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19045 (eval $ac_try) 2>&5
19046 ac_status=$?
19047 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19048 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
19049 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19050 (eval $ac_try) 2>&5
19051 ac_status=$?
19052 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19053 test $ac_status = 0; }; }; then :
19054
19055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19056 $as_echo "yes" >&6; }
19057
19058 $as_echo "#define HAVE_EVICT_INODE 1" >>confdefs.h
19059
19060
19061 else
19062 $as_echo "$as_me: failed program was:" >&5
19063 sed 's/^/| /' conftest.$ac_ext >&5
19064
19065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19066 $as_echo "no" >&6; }
19067
19068
19069
19070 fi
19071 rm -Rf build
19072
19073
19074
19075
19076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sops->dirty_inode() wants flags" >&5
19077 $as_echo_n "checking whether sops->dirty_inode() wants flags... " >&6; }
19078
19079
19080 cat confdefs.h - <<_ACEOF >conftest.c
19081
19082
19083 #include <linux/fs.h>
19084
19085 void dirty_inode(struct inode *a, int b) { return; }
19086
19087 static const struct super_operations
19088 sops __attribute__ ((unused)) = {
19089 .dirty_inode = dirty_inode,
19090 };
19091
19092 int
19093 main (void)
19094 {
19095
19096
19097 ;
19098 return 0;
19099 }
19100
19101 _ACEOF
19102
19103
19104
19105 cat - <<_ACEOF >conftest.h
19106
19107 _ACEOF
19108
19109
19110 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
19111 echo "obj-m := conftest.o" >build/Makefile
19112 modpost_flag=''
19113 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
19114 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
19115 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19116 (eval $ac_try) 2>&5
19117 ac_status=$?
19118 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19119 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
19120 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19121 (eval $ac_try) 2>&5
19122 ac_status=$?
19123 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19124 test $ac_status = 0; }; }; then :
19125
19126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19127 $as_echo "yes" >&6; }
19128
19129 $as_echo "#define HAVE_DIRTY_INODE_WITH_FLAGS 1" >>confdefs.h
19130
19131
19132 else
19133 $as_echo "$as_me: failed program was:" >&5
19134 sed 's/^/| /' conftest.$ac_ext >&5
19135
19136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19137 $as_echo "no" >&6; }
19138
19139
19140
19141 fi
19142 rm -Rf build
19143
19144
19145
19146
19147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sops->nr_cached_objects() exists" >&5
19148 $as_echo_n "checking whether sops->nr_cached_objects() exists... " >&6; }
19149
19150
19151 cat confdefs.h - <<_ACEOF >conftest.c
19152
19153
19154 #include <linux/fs.h>
19155
19156 int nr_cached_objects(struct super_block *sb) { return 0; }
19157
19158 static const struct super_operations
19159 sops __attribute__ ((unused)) = {
19160 .nr_cached_objects = nr_cached_objects,
19161 };
19162
19163 int
19164 main (void)
19165 {
19166
19167
19168 ;
19169 return 0;
19170 }
19171
19172 _ACEOF
19173
19174
19175
19176 cat - <<_ACEOF >conftest.h
19177
19178 _ACEOF
19179
19180
19181 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
19182 echo "obj-m := conftest.o" >build/Makefile
19183 modpost_flag=''
19184 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
19185 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
19186 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19187 (eval $ac_try) 2>&5
19188 ac_status=$?
19189 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19190 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
19191 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19192 (eval $ac_try) 2>&5
19193 ac_status=$?
19194 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19195 test $ac_status = 0; }; }; then :
19196
19197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19198 $as_echo "yes" >&6; }
19199
19200 $as_echo "#define HAVE_NR_CACHED_OBJECTS 1" >>confdefs.h
19201
19202
19203 else
19204 $as_echo "$as_me: failed program was:" >&5
19205 sed 's/^/| /' conftest.$ac_ext >&5
19206
19207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19208 $as_echo "no" >&6; }
19209
19210
19211
19212 fi
19213 rm -Rf build
19214
19215
19216
19217
19218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sops->free_cached_objects() exists" >&5
19219 $as_echo_n "checking whether sops->free_cached_objects() exists... " >&6; }
19220
19221
19222 cat confdefs.h - <<_ACEOF >conftest.c
19223
19224
19225 #include <linux/fs.h>
19226
19227 void free_cached_objects(struct super_block *sb, int x)
19228 { return; }
19229
19230 static const struct super_operations
19231 sops __attribute__ ((unused)) = {
19232 .free_cached_objects = free_cached_objects,
19233 };
19234
19235 int
19236 main (void)
19237 {
19238
19239
19240 ;
19241 return 0;
19242 }
19243
19244 _ACEOF
19245
19246
19247
19248 cat - <<_ACEOF >conftest.h
19249
19250 _ACEOF
19251
19252
19253 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
19254 echo "obj-m := conftest.o" >build/Makefile
19255 modpost_flag=''
19256 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
19257 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
19258 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19259 (eval $ac_try) 2>&5
19260 ac_status=$?
19261 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19262 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
19263 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19264 (eval $ac_try) 2>&5
19265 ac_status=$?
19266 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19267 test $ac_status = 0; }; }; then :
19268
19269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19270 $as_echo "yes" >&6; }
19271
19272 $as_echo "#define HAVE_FREE_CACHED_OBJECTS 1" >>confdefs.h
19273
19274
19275 else
19276 $as_echo "$as_me: failed program was:" >&5
19277 sed 's/^/| /' conftest.$ac_ext >&5
19278
19279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19280 $as_echo "no" >&6; }
19281
19282
19283
19284 fi
19285 rm -Rf build
19286
19287
19288
19289
19290
19291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fops->fallocate() exists" >&5
19292 $as_echo_n "checking whether fops->fallocate() exists... " >&6; }
19293
19294
19295 cat confdefs.h - <<_ACEOF >conftest.c
19296
19297
19298 #include <linux/fs.h>
19299
19300 long test_fallocate(struct file *file, int mode,
19301 loff_t offset, loff_t len) { return 0; }
19302
19303 static const struct file_operations
19304 fops __attribute__ ((unused)) = {
19305 .fallocate = test_fallocate,
19306 };
19307
19308 int
19309 main (void)
19310 {
19311
19312
19313 ;
19314 return 0;
19315 }
19316
19317 _ACEOF
19318
19319
19320
19321 cat - <<_ACEOF >conftest.h
19322
19323 _ACEOF
19324
19325
19326 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
19327 echo "obj-m := conftest.o" >build/Makefile
19328 modpost_flag=''
19329 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
19330 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
19331 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19332 (eval $ac_try) 2>&5
19333 ac_status=$?
19334 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19335 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
19336 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19337 (eval $ac_try) 2>&5
19338 ac_status=$?
19339 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19340 test $ac_status = 0; }; }; then :
19341
19342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19343 $as_echo "yes" >&6; }
19344
19345 $as_echo "#define HAVE_FILE_FALLOCATE 1" >>confdefs.h
19346
19347
19348 else
19349 $as_echo "$as_me: failed program was:" >&5
19350 sed 's/^/| /' conftest.$ac_ext >&5
19351
19352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19353 $as_echo "no" >&6; }
19354
19355
19356
19357 fi
19358 rm -Rf build
19359
19360
19361
19362
19363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->fallocate() exists" >&5
19364 $as_echo_n "checking whether iops->fallocate() exists... " >&6; }
19365
19366
19367 cat confdefs.h - <<_ACEOF >conftest.c
19368
19369
19370 #include <linux/fs.h>
19371
19372 long test_fallocate(struct inode *inode, int mode,
19373 loff_t offset, loff_t len) { return 0; }
19374
19375 static const struct inode_operations
19376 fops __attribute__ ((unused)) = {
19377 .fallocate = test_fallocate,
19378 };
19379
19380 int
19381 main (void)
19382 {
19383
19384
19385 ;
19386 return 0;
19387 }
19388
19389 _ACEOF
19390
19391
19392
19393 cat - <<_ACEOF >conftest.h
19394
19395 _ACEOF
19396
19397
19398 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
19399 echo "obj-m := conftest.o" >build/Makefile
19400 modpost_flag=''
19401 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
19402 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
19403 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19404 (eval $ac_try) 2>&5
19405 ac_status=$?
19406 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19407 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
19408 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19409 (eval $ac_try) 2>&5
19410 ac_status=$?
19411 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19412 test $ac_status = 0; }; }; then :
19413
19414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19415 $as_echo "yes" >&6; }
19416
19417 $as_echo "#define HAVE_INODE_FALLOCATE 1" >>confdefs.h
19418
19419
19420 else
19421 $as_echo "$as_me: failed program was:" >&5
19422 sed 's/^/| /' conftest.$ac_ext >&5
19423
19424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19425 $as_echo "no" >&6; }
19426
19427
19428
19429 fi
19430 rm -Rf build
19431
19432
19433
19434
19435
19436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fops->aio_fsync() exists" >&5
19437 $as_echo_n "checking whether fops->aio_fsync() exists... " >&6; }
19438
19439
19440 cat confdefs.h - <<_ACEOF >conftest.c
19441
19442
19443 #include <linux/fs.h>
19444
19445 static const struct file_operations
19446 fops __attribute__ ((unused)) = {
19447 .aio_fsync = NULL,
19448 };
19449
19450 int
19451 main (void)
19452 {
19453
19454
19455 ;
19456 return 0;
19457 }
19458
19459 _ACEOF
19460
19461
19462
19463 cat - <<_ACEOF >conftest.h
19464
19465 _ACEOF
19466
19467
19468 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
19469 echo "obj-m := conftest.o" >build/Makefile
19470 modpost_flag=''
19471 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
19472 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
19473 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19474 (eval $ac_try) 2>&5
19475 ac_status=$?
19476 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19477 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
19478 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19479 (eval $ac_try) 2>&5
19480 ac_status=$?
19481 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19482 test $ac_status = 0; }; }; then :
19483
19484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19485 $as_echo "yes" >&6; }
19486
19487 $as_echo "#define HAVE_FILE_AIO_FSYNC 1" >>confdefs.h
19488
19489
19490 else
19491 $as_echo "$as_me: failed program was:" >&5
19492 sed 's/^/| /' conftest.$ac_ext >&5
19493
19494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19495 $as_echo "no" >&6; }
19496
19497
19498
19499 fi
19500 rm -Rf build
19501
19502
19503
19504
19505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->create()/mkdir()/mknod() take umode_t" >&5
19506 $as_echo_n "checking whether iops->create()/mkdir()/mknod() take umode_t... " >&6; }
19507
19508
19509 cat confdefs.h - <<_ACEOF >conftest.c
19510
19511
19512 #include <linux/fs.h>
19513
19514 int mkdir(struct inode *inode, struct dentry *dentry,
19515 umode_t umode) { return 0; }
19516
19517 static const struct inode_operations
19518 iops __attribute__ ((unused)) = {
19519 .mkdir = mkdir,
19520 };
19521
19522 int
19523 main (void)
19524 {
19525
19526
19527 ;
19528 return 0;
19529 }
19530
19531 _ACEOF
19532
19533
19534
19535 cat - <<_ACEOF >conftest.h
19536
19537 _ACEOF
19538
19539
19540 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
19541 echo "obj-m := conftest.o" >build/Makefile
19542 modpost_flag=''
19543 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
19544 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
19545 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19546 (eval $ac_try) 2>&5
19547 ac_status=$?
19548 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19549 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
19550 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19551 (eval $ac_try) 2>&5
19552 ac_status=$?
19553 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19554 test $ac_status = 0; }; }; then :
19555
19556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19557 $as_echo "yes" >&6; }
19558
19559 $as_echo "#define HAVE_MKDIR_UMODE_T 1" >>confdefs.h
19560
19561
19562 else
19563 $as_echo "$as_me: failed program was:" >&5
19564 sed 's/^/| /' conftest.$ac_ext >&5
19565
19566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19567 $as_echo "no" >&6; }
19568
19569
19570
19571 fi
19572 rm -Rf build
19573
19574
19575
19576
19577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->lookup() passes nameidata" >&5
19578 $as_echo_n "checking whether iops->lookup() passes nameidata... " >&6; }
19579
19580
19581 cat confdefs.h - <<_ACEOF >conftest.c
19582
19583
19584 #include <linux/fs.h>
19585
19586 struct dentry *inode_lookup(struct inode *inode,
19587 struct dentry *dentry, struct nameidata *nidata)
19588 { return NULL; }
19589
19590 static const struct inode_operations iops
19591 __attribute__ ((unused)) = {
19592 .lookup = inode_lookup,
19593 };
19594
19595 int
19596 main (void)
19597 {
19598
19599
19600 ;
19601 return 0;
19602 }
19603
19604 _ACEOF
19605
19606
19607
19608 cat - <<_ACEOF >conftest.h
19609
19610 _ACEOF
19611
19612
19613 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
19614 echo "obj-m := conftest.o" >build/Makefile
19615 modpost_flag=''
19616 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
19617 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
19618 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19619 (eval $ac_try) 2>&5
19620 ac_status=$?
19621 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19622 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
19623 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19624 (eval $ac_try) 2>&5
19625 ac_status=$?
19626 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19627 test $ac_status = 0; }; }; then :
19628
19629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19630 $as_echo "yes" >&6; }
19631
19632 $as_echo "#define HAVE_LOOKUP_NAMEIDATA 1" >>confdefs.h
19633
19634
19635 else
19636 $as_echo "$as_me: failed program was:" >&5
19637 sed 's/^/| /' conftest.$ac_ext >&5
19638
19639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19640 $as_echo "no" >&6; }
19641
19642
19643
19644 fi
19645 rm -Rf build
19646
19647
19648
19649
19650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->create() passes nameidata" >&5
19651 $as_echo_n "checking whether iops->create() passes nameidata... " >&6; }
19652
19653
19654 cat confdefs.h - <<_ACEOF >conftest.c
19655
19656
19657 #include <linux/fs.h>
19658
19659 #ifdef HAVE_MKDIR_UMODE_T
19660 int inode_create(struct inode *inode ,struct dentry *dentry,
19661 umode_t umode, struct nameidata *nidata) { return 0; }
19662 #else
19663 int inode_create(struct inode *inode,struct dentry *dentry,
19664 int umode, struct nameidata * nidata) { return 0; }
19665 #endif
19666
19667 static const struct inode_operations
19668 iops __attribute__ ((unused)) = {
19669 .create = inode_create,
19670 };
19671
19672 int
19673 main (void)
19674 {
19675
19676
19677 ;
19678 return 0;
19679 }
19680
19681 _ACEOF
19682
19683
19684
19685 cat - <<_ACEOF >conftest.h
19686
19687 _ACEOF
19688
19689
19690 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
19691 echo "obj-m := conftest.o" >build/Makefile
19692 modpost_flag=''
19693 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
19694 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
19695 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19696 (eval $ac_try) 2>&5
19697 ac_status=$?
19698 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19699 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
19700 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19701 (eval $ac_try) 2>&5
19702 ac_status=$?
19703 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19704 test $ac_status = 0; }; }; then :
19705
19706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19707 $as_echo "yes" >&6; }
19708
19709 $as_echo "#define HAVE_CREATE_NAMEIDATA 1" >>confdefs.h
19710
19711
19712 else
19713 $as_echo "$as_me: failed program was:" >&5
19714 sed 's/^/| /' conftest.$ac_ext >&5
19715
19716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19717 $as_echo "no" >&6; }
19718
19719
19720
19721 fi
19722 rm -Rf build
19723
19724
19725
19726
19727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->get_link() passes delayed" >&5
19728 $as_echo_n "checking whether iops->get_link() passes delayed... " >&6; }
19729
19730
19731 cat confdefs.h - <<_ACEOF >conftest.c
19732
19733
19734 #include <linux/fs.h>
19735 const char *get_link(struct dentry *de, struct inode *ip,
19736 struct delayed_call *done) { return "symlink"; }
19737 static struct inode_operations
19738 iops __attribute__ ((unused)) = {
19739 .get_link = get_link,
19740 };
19741
19742 int
19743 main (void)
19744 {
19745
19746
19747 ;
19748 return 0;
19749 }
19750
19751 _ACEOF
19752
19753
19754
19755 cat - <<_ACEOF >conftest.h
19756
19757 _ACEOF
19758
19759
19760 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
19761 echo "obj-m := conftest.o" >build/Makefile
19762 modpost_flag=''
19763 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
19764 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
19765 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19766 (eval $ac_try) 2>&5
19767 ac_status=$?
19768 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19769 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
19770 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19771 (eval $ac_try) 2>&5
19772 ac_status=$?
19773 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19774 test $ac_status = 0; }; }; then :
19775
19776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19777 $as_echo "yes" >&6; }
19778
19779 $as_echo "#define HAVE_GET_LINK_DELAYED 1" >>confdefs.h
19780
19781
19782 else
19783 $as_echo "$as_me: failed program was:" >&5
19784 sed 's/^/| /' conftest.$ac_ext >&5
19785
19786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19787 $as_echo "no" >&6; }
19788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->get_link() passes cookie" >&5
19789 $as_echo_n "checking whether iops->get_link() passes cookie... " >&6; }
19790
19791
19792 cat confdefs.h - <<_ACEOF >conftest.c
19793
19794
19795 #include <linux/fs.h>
19796 const char *get_link(struct dentry *de, struct
19797 inode *ip, void **cookie) { return "symlink"; }
19798 static struct inode_operations
19799 iops __attribute__ ((unused)) = {
19800 .get_link = get_link,
19801 };
19802
19803 int
19804 main (void)
19805 {
19806
19807
19808 ;
19809 return 0;
19810 }
19811
19812 _ACEOF
19813
19814
19815
19816 cat - <<_ACEOF >conftest.h
19817
19818 _ACEOF
19819
19820
19821 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
19822 echo "obj-m := conftest.o" >build/Makefile
19823 modpost_flag=''
19824 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
19825 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
19826 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19827 (eval $ac_try) 2>&5
19828 ac_status=$?
19829 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19830 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
19831 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19832 (eval $ac_try) 2>&5
19833 ac_status=$?
19834 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19835 test $ac_status = 0; }; }; then :
19836
19837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19838 $as_echo "yes" >&6; }
19839
19840 $as_echo "#define HAVE_GET_LINK_COOKIE 1" >>confdefs.h
19841
19842
19843 else
19844 $as_echo "$as_me: failed program was:" >&5
19845 sed 's/^/| /' conftest.$ac_ext >&5
19846
19847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19848 $as_echo "no" >&6; }
19849
19850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->follow_link() passes cookie" >&5
19851 $as_echo_n "checking whether iops->follow_link() passes cookie... " >&6; }
19852
19853
19854 cat confdefs.h - <<_ACEOF >conftest.c
19855
19856
19857 #include <linux/fs.h>
19858 const char *follow_link(struct dentry *de,
19859 void **cookie) { return "symlink"; }
19860 static struct inode_operations
19861 iops __attribute__ ((unused)) = {
19862 .follow_link = follow_link,
19863 };
19864
19865 int
19866 main (void)
19867 {
19868
19869
19870 ;
19871 return 0;
19872 }
19873
19874 _ACEOF
19875
19876
19877
19878 cat - <<_ACEOF >conftest.h
19879
19880 _ACEOF
19881
19882
19883 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
19884 echo "obj-m := conftest.o" >build/Makefile
19885 modpost_flag=''
19886 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
19887 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
19888 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19889 (eval $ac_try) 2>&5
19890 ac_status=$?
19891 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19892 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
19893 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19894 (eval $ac_try) 2>&5
19895 ac_status=$?
19896 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19897 test $ac_status = 0; }; }; then :
19898
19899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19900 $as_echo "yes" >&6; }
19901
19902 $as_echo "#define HAVE_FOLLOW_LINK_COOKIE 1" >>confdefs.h
19903
19904
19905 else
19906 $as_echo "$as_me: failed program was:" >&5
19907 sed 's/^/| /' conftest.$ac_ext >&5
19908
19909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19910 $as_echo "no" >&6; }
19911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->follow_link() passes nameidata" >&5
19912 $as_echo_n "checking whether iops->follow_link() passes nameidata... " >&6; }
19913
19914
19915 cat confdefs.h - <<_ACEOF >conftest.c
19916
19917
19918 #include <linux/fs.h>
19919 void *follow_link(struct dentry *de, struct
19920 nameidata *nd) { return (void *)NULL; }
19921 static struct inode_operations
19922 iops __attribute__ ((unused)) = {
19923 .follow_link = follow_link,
19924 };
19925
19926 int
19927 main (void)
19928 {
19929
19930
19931 ;
19932 return 0;
19933 }
19934
19935 _ACEOF
19936
19937
19938
19939 cat - <<_ACEOF >conftest.h
19940
19941 _ACEOF
19942
19943
19944 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
19945 echo "obj-m := conftest.o" >build/Makefile
19946 modpost_flag=''
19947 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
19948 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
19949 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19950 (eval $ac_try) 2>&5
19951 ac_status=$?
19952 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19953 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
19954 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19955 (eval $ac_try) 2>&5
19956 ac_status=$?
19957 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19958 test $ac_status = 0; }; }; then :
19959
19960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19961 $as_echo "yes" >&6; }
19962
19963 $as_echo "#define HAVE_FOLLOW_LINK_NAMEIDATA 1" >>confdefs.h
19964
19965
19966 else
19967 $as_echo "$as_me: failed program was:" >&5
19968 sed 's/^/| /' conftest.$ac_ext >&5
19969
19970 as_fn_error $? "no; please file a bug report" "$LINENO" 5
19971
19972
19973
19974 fi
19975 rm -Rf build
19976
19977
19978
19979
19980
19981 fi
19982 rm -Rf build
19983
19984
19985
19986
19987
19988
19989 fi
19990 rm -Rf build
19991
19992
19993
19994
19995
19996 fi
19997 rm -Rf build
19998
19999
20000
20001
20002
20003
20004 cat confdefs.h - <<_ACEOF >conftest.c
20005
20006
20007 #if !defined(HAVE_GET_LINK_DELAYED)
20008 #error "Expecting get_link() delayed done"
20009 #endif
20010
20011 int
20012 main (void)
20013 {
20014
20015
20016 ;
20017 return 0;
20018 }
20019
20020 _ACEOF
20021
20022
20023
20024 cat - <<_ACEOF >conftest.h
20025
20026 _ACEOF
20027
20028
20029 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
20030 echo "obj-m := conftest.o" >build/Makefile
20031 modpost_flag=''
20032 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
20033 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
20034 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20035 (eval $ac_try) 2>&5
20036 ac_status=$?
20037 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20038 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
20039 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20040 (eval $ac_try) 2>&5
20041 ac_status=$?
20042 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20043 test $ac_status = 0; }; }; then :
20044
20045
20046 $as_echo "#define HAVE_PUT_LINK_DELAYED 1" >>confdefs.h
20047
20048
20049 else
20050 $as_echo "$as_me: failed program was:" >&5
20051 sed 's/^/| /' conftest.$ac_ext >&5
20052
20053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->put_link() passes cookie" >&5
20054 $as_echo_n "checking whether iops->put_link() passes cookie... " >&6; }
20055
20056
20057 cat confdefs.h - <<_ACEOF >conftest.c
20058
20059
20060 #include <linux/fs.h>
20061 void put_link(struct inode *ip, void *cookie)
20062 { return; }
20063 static struct inode_operations
20064 iops __attribute__ ((unused)) = {
20065 .put_link = put_link,
20066 };
20067
20068 int
20069 main (void)
20070 {
20071
20072
20073 ;
20074 return 0;
20075 }
20076
20077 _ACEOF
20078
20079
20080
20081 cat - <<_ACEOF >conftest.h
20082
20083 _ACEOF
20084
20085
20086 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
20087 echo "obj-m := conftest.o" >build/Makefile
20088 modpost_flag=''
20089 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
20090 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
20091 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20092 (eval $ac_try) 2>&5
20093 ac_status=$?
20094 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20095 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
20096 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20097 (eval $ac_try) 2>&5
20098 ac_status=$?
20099 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20100 test $ac_status = 0; }; }; then :
20101
20102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20103 $as_echo "yes" >&6; }
20104
20105 $as_echo "#define HAVE_PUT_LINK_COOKIE 1" >>confdefs.h
20106
20107
20108 else
20109 $as_echo "$as_me: failed program was:" >&5
20110 sed 's/^/| /' conftest.$ac_ext >&5
20111
20112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20113 $as_echo "no" >&6; }
20114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->put_link() passes nameidata" >&5
20115 $as_echo_n "checking whether iops->put_link() passes nameidata... " >&6; }
20116
20117
20118 cat confdefs.h - <<_ACEOF >conftest.c
20119
20120
20121 #include <linux/fs.h>
20122 void put_link(struct dentry *de, struct
20123 nameidata *nd, void *ptr) { return; }
20124 static struct inode_operations
20125 iops __attribute__ ((unused)) = {
20126 .put_link = put_link,
20127 };
20128
20129 int
20130 main (void)
20131 {
20132
20133
20134 ;
20135 return 0;
20136 }
20137
20138 _ACEOF
20139
20140
20141
20142 cat - <<_ACEOF >conftest.h
20143
20144 _ACEOF
20145
20146
20147 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
20148 echo "obj-m := conftest.o" >build/Makefile
20149 modpost_flag=''
20150 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
20151 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
20152 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20153 (eval $ac_try) 2>&5
20154 ac_status=$?
20155 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20156 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
20157 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20158 (eval $ac_try) 2>&5
20159 ac_status=$?
20160 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20161 test $ac_status = 0; }; }; then :
20162
20163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20164 $as_echo "yes" >&6; }
20165
20166 $as_echo "#define HAVE_PUT_LINK_NAMEIDATA 1" >>confdefs.h
20167
20168
20169 else
20170 $as_echo "$as_me: failed program was:" >&5
20171 sed 's/^/| /' conftest.$ac_ext >&5
20172
20173 as_fn_error $? "no; please file a bug report" "$LINENO" 5
20174
20175
20176
20177 fi
20178 rm -Rf build
20179
20180
20181
20182
20183
20184 fi
20185 rm -Rf build
20186
20187
20188
20189
20190
20191 fi
20192 rm -Rf build
20193
20194
20195
20196
20197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->truncate_range() exists" >&5
20198 $as_echo_n "checking whether iops->truncate_range() exists... " >&6; }
20199
20200
20201 cat confdefs.h - <<_ACEOF >conftest.c
20202
20203
20204 #include <linux/fs.h>
20205 void truncate_range(struct inode *inode, loff_t start,
20206 loff_t end) { return; }
20207 static struct inode_operations iops __attribute__ ((unused)) = {
20208 .truncate_range = truncate_range,
20209 };
20210
20211 int
20212 main (void)
20213 {
20214
20215
20216 ;
20217 return 0;
20218 }
20219
20220 _ACEOF
20221
20222
20223
20224 cat - <<_ACEOF >conftest.h
20225
20226 _ACEOF
20227
20228
20229 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
20230 echo "obj-m := conftest.o" >build/Makefile
20231 modpost_flag=''
20232 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
20233 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
20234 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20235 (eval $ac_try) 2>&5
20236 ac_status=$?
20237 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20238 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
20239 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20240 (eval $ac_try) 2>&5
20241 ac_status=$?
20242 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20243 test $ac_status = 0; }; }; then :
20244
20245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20246 $as_echo "yes" >&6; }
20247
20248 $as_echo "#define HAVE_INODE_TRUNCATE_RANGE 1" >>confdefs.h
20249
20250
20251 else
20252 $as_echo "$as_me: failed program was:" >&5
20253 sed 's/^/| /' conftest.$ac_ext >&5
20254
20255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20256 $as_echo "no" >&6; }
20257
20258
20259
20260 fi
20261 rm -Rf build
20262
20263
20264
20265
20266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether dops->d_automount() exists" >&5
20267 $as_echo_n "checking whether dops->d_automount() exists... " >&6; }
20268
20269
20270 cat confdefs.h - <<_ACEOF >conftest.c
20271
20272
20273 #include <linux/dcache.h>
20274 struct vfsmount *d_automount(struct path *p) { return NULL; }
20275 struct dentry_operations dops __attribute__ ((unused)) = {
20276 .d_automount = d_automount,
20277 };
20278
20279 int
20280 main (void)
20281 {
20282
20283
20284 ;
20285 return 0;
20286 }
20287
20288 _ACEOF
20289
20290
20291
20292 cat - <<_ACEOF >conftest.h
20293
20294 _ACEOF
20295
20296
20297 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
20298 echo "obj-m := conftest.o" >build/Makefile
20299 modpost_flag=''
20300 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
20301 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
20302 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20303 (eval $ac_try) 2>&5
20304 ac_status=$?
20305 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20306 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
20307 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20308 (eval $ac_try) 2>&5
20309 ac_status=$?
20310 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20311 test $ac_status = 0; }; }; then :
20312
20313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20314 $as_echo "yes" >&6; }
20315
20316 $as_echo "#define HAVE_AUTOMOUNT 1" >>confdefs.h
20317
20318
20319 else
20320 $as_echo "$as_me: failed program was:" >&5
20321 sed 's/^/| /' conftest.$ac_ext >&5
20322
20323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20324 $as_echo "no" >&6; }
20325
20326
20327
20328 fi
20329 rm -Rf build
20330
20331
20332
20333
20334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether eops->encode_fh() wants inode" >&5
20335 $as_echo_n "checking whether eops->encode_fh() wants inode... " >&6; }
20336
20337
20338 cat confdefs.h - <<_ACEOF >conftest.c
20339
20340
20341 #include <linux/exportfs.h>
20342 int encode_fh(struct inode *inode, __u32 *fh, int *max_len,
20343 struct inode *parent) { return 0; }
20344 static struct export_operations eops __attribute__ ((unused))={
20345 .encode_fh = encode_fh,
20346 };
20347
20348 int
20349 main (void)
20350 {
20351
20352
20353 ;
20354 return 0;
20355 }
20356
20357 _ACEOF
20358
20359
20360
20361 cat - <<_ACEOF >conftest.h
20362
20363 _ACEOF
20364
20365
20366 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
20367 echo "obj-m := conftest.o" >build/Makefile
20368 modpost_flag=''
20369 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
20370 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
20371 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20372 (eval $ac_try) 2>&5
20373 ac_status=$?
20374 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20375 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
20376 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20377 (eval $ac_try) 2>&5
20378 ac_status=$?
20379 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20380 test $ac_status = 0; }; }; then :
20381
20382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20383 $as_echo "yes" >&6; }
20384
20385 $as_echo "#define HAVE_ENCODE_FH_WITH_INODE 1" >>confdefs.h
20386
20387
20388 else
20389 $as_echo "$as_me: failed program was:" >&5
20390 sed 's/^/| /' conftest.$ac_ext >&5
20391
20392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20393 $as_echo "no" >&6; }
20394
20395
20396
20397 fi
20398 rm -Rf build
20399
20400
20401
20402
20403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether eops->commit_metadata() exists" >&5
20404 $as_echo_n "checking whether eops->commit_metadata() exists... " >&6; }
20405
20406
20407 cat confdefs.h - <<_ACEOF >conftest.c
20408
20409
20410 #include <linux/exportfs.h>
20411 int commit_metadata(struct inode *inode) { return 0; }
20412 static struct export_operations eops __attribute__ ((unused))={
20413 .commit_metadata = commit_metadata,
20414 };
20415
20416 int
20417 main (void)
20418 {
20419
20420
20421 ;
20422 return 0;
20423 }
20424
20425 _ACEOF
20426
20427
20428
20429 cat - <<_ACEOF >conftest.h
20430
20431 _ACEOF
20432
20433
20434 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
20435 echo "obj-m := conftest.o" >build/Makefile
20436 modpost_flag=''
20437 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
20438 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
20439 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20440 (eval $ac_try) 2>&5
20441 ac_status=$?
20442 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20443 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
20444 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20445 (eval $ac_try) 2>&5
20446 ac_status=$?
20447 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20448 test $ac_status = 0; }; }; then :
20449
20450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20451 $as_echo "yes" >&6; }
20452
20453 $as_echo "#define HAVE_COMMIT_METADATA 1" >>confdefs.h
20454
20455
20456 else
20457 $as_echo "$as_me: failed program was:" >&5
20458 sed 's/^/| /' conftest.$ac_ext >&5
20459
20460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20461 $as_echo "no" >&6; }
20462
20463
20464
20465 fi
20466 rm -Rf build
20467
20468
20469
20470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether clear_inode() is available" >&5
20471 $as_echo_n "checking whether clear_inode() is available... " >&6; }
20472
20473
20474
20475 cat confdefs.h - <<_ACEOF >conftest.c
20476
20477
20478 #include <linux/fs.h>
20479
20480 int
20481 main (void)
20482 {
20483
20484 clear_inode(NULL);
20485
20486 ;
20487 return 0;
20488 }
20489
20490 _ACEOF
20491
20492
20493
20494 cat - <<_ACEOF >conftest.h
20495
20496 _ACEOF
20497
20498
20499 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
20500 echo "obj-m := conftest.o" >build/Makefile
20501 modpost_flag=''
20502 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
20503 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
20504 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20505 (eval $ac_try) 2>&5
20506 ac_status=$?
20507 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20508 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
20509 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20510 (eval $ac_try) 2>&5
20511 ac_status=$?
20512 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20513 test $ac_status = 0; }; }; then :
20514 rc=0
20515 else
20516 $as_echo "$as_me: failed program was:" >&5
20517 sed 's/^/| /' conftest.$ac_ext >&5
20518 rc=1
20519
20520
20521 fi
20522 rm -Rf build
20523
20524
20525 if test $rc -ne 0; then :
20526
20527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20528 $as_echo "no" >&6; }
20529
20530 else
20531 if test "x$enable_linux_builtin" != xyes; then
20532
20533 grep -q -E '[[:space:]]clear_inode[[:space:]]' \
20534 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
20535 rc=$?
20536 if test $rc -ne 0; then
20537 export=0
20538 for file in fs/inode.c; do
20539 grep -q -E "EXPORT_SYMBOL.*(clear_inode)" \
20540 "$LINUX/$file" 2>/dev/null
20541 rc=$?
20542 if test $rc -eq 0; then
20543 export=1
20544 break;
20545 fi
20546 done
20547 if test $export -eq 0; then :
20548 rc=1
20549 else :
20550 rc=0
20551 fi
20552 else :
20553 rc=0
20554 fi
20555
20556 fi
20557 if test $rc -ne 0; then :
20558
20559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20560 $as_echo "no" >&6; }
20561
20562 else :
20563
20564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20565 $as_echo "yes" >&6; }
20566
20567 $as_echo "#define HAVE_CLEAR_INODE 1" >>confdefs.h
20568
20569
20570 fi
20571 fi
20572
20573
20574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setattr_prepare() is available" >&5
20575 $as_echo_n "checking whether setattr_prepare() is available... " >&6; }
20576
20577
20578
20579 cat confdefs.h - <<_ACEOF >conftest.c
20580
20581
20582 #include <linux/fs.h>
20583
20584 int
20585 main (void)
20586 {
20587
20588 struct dentry *dentry = NULL;
20589 struct iattr *attr = NULL;
20590 int error;
20591
20592 error = setattr_prepare(dentry, attr);
20593
20594 ;
20595 return 0;
20596 }
20597
20598 _ACEOF
20599
20600
20601
20602 cat - <<_ACEOF >conftest.h
20603
20604 _ACEOF
20605
20606
20607 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
20608 echo "obj-m := conftest.o" >build/Makefile
20609 modpost_flag=''
20610 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
20611 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
20612 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20613 (eval $ac_try) 2>&5
20614 ac_status=$?
20615 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20616 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
20617 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20618 (eval $ac_try) 2>&5
20619 ac_status=$?
20620 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20621 test $ac_status = 0; }; }; then :
20622 rc=0
20623 else
20624 $as_echo "$as_me: failed program was:" >&5
20625 sed 's/^/| /' conftest.$ac_ext >&5
20626 rc=1
20627
20628
20629 fi
20630 rm -Rf build
20631
20632
20633 if test $rc -ne 0; then :
20634
20635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20636 $as_echo "no" >&6; }
20637
20638 else
20639 if test "x$enable_linux_builtin" != xyes; then
20640
20641 grep -q -E '[[:space:]]setattr_prepare[[:space:]]' \
20642 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
20643 rc=$?
20644 if test $rc -ne 0; then
20645 export=0
20646 for file in fs/attr.c; do
20647 grep -q -E "EXPORT_SYMBOL.*(setattr_prepare)" \
20648 "$LINUX/$file" 2>/dev/null
20649 rc=$?
20650 if test $rc -eq 0; then
20651 export=1
20652 break;
20653 fi
20654 done
20655 if test $export -eq 0; then :
20656 rc=1
20657 else :
20658 rc=0
20659 fi
20660 else :
20661 rc=0
20662 fi
20663
20664 fi
20665 if test $rc -ne 0; then :
20666
20667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20668 $as_echo "no" >&6; }
20669
20670 else :
20671
20672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20673 $as_echo "yes" >&6; }
20674
20675 $as_echo "#define HAVE_SETATTR_PREPARE 1" >>confdefs.h
20676
20677
20678 fi
20679 fi
20680
20681
20682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether insert_inode_locked() is available" >&5
20683 $as_echo_n "checking whether insert_inode_locked() is available... " >&6; }
20684
20685
20686
20687 cat confdefs.h - <<_ACEOF >conftest.c
20688
20689
20690 #include <linux/fs.h>
20691
20692 int
20693 main (void)
20694 {
20695
20696 insert_inode_locked(NULL);
20697
20698 ;
20699 return 0;
20700 }
20701
20702 _ACEOF
20703
20704
20705
20706 cat - <<_ACEOF >conftest.h
20707
20708 _ACEOF
20709
20710
20711 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
20712 echo "obj-m := conftest.o" >build/Makefile
20713 modpost_flag=''
20714 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
20715 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
20716 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20717 (eval $ac_try) 2>&5
20718 ac_status=$?
20719 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20720 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
20721 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20722 (eval $ac_try) 2>&5
20723 ac_status=$?
20724 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20725 test $ac_status = 0; }; }; then :
20726 rc=0
20727 else
20728 $as_echo "$as_me: failed program was:" >&5
20729 sed 's/^/| /' conftest.$ac_ext >&5
20730 rc=1
20731
20732
20733 fi
20734 rm -Rf build
20735
20736
20737 if test $rc -ne 0; then :
20738
20739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20740 $as_echo "no" >&6; }
20741
20742 else
20743 if test "x$enable_linux_builtin" != xyes; then
20744
20745 grep -q -E '[[:space:]]insert_inode_locked[[:space:]]' \
20746 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
20747 rc=$?
20748 if test $rc -ne 0; then
20749 export=0
20750 for file in fs/inode.c; do
20751 grep -q -E "EXPORT_SYMBOL.*(insert_inode_locked)" \
20752 "$LINUX/$file" 2>/dev/null
20753 rc=$?
20754 if test $rc -eq 0; then
20755 export=1
20756 break;
20757 fi
20758 done
20759 if test $export -eq 0; then :
20760 rc=1
20761 else :
20762 rc=0
20763 fi
20764 else :
20765 rc=0
20766 fi
20767
20768 fi
20769 if test $rc -ne 0; then :
20770
20771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20772 $as_echo "no" >&6; }
20773
20774 else :
20775
20776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20777 $as_echo "yes" >&6; }
20778
20779 $as_echo "#define HAVE_INSERT_INODE_LOCKED 1" >>confdefs.h
20780
20781
20782 fi
20783 fi
20784
20785
20786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether d_make_root() is available" >&5
20787 $as_echo_n "checking whether d_make_root() is available... " >&6; }
20788
20789
20790
20791 cat confdefs.h - <<_ACEOF >conftest.c
20792
20793
20794 #include <linux/dcache.h>
20795
20796 int
20797 main (void)
20798 {
20799
20800 d_make_root(NULL);
20801
20802 ;
20803 return 0;
20804 }
20805
20806 _ACEOF
20807
20808
20809
20810 cat - <<_ACEOF >conftest.h
20811
20812 _ACEOF
20813
20814
20815 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
20816 echo "obj-m := conftest.o" >build/Makefile
20817 modpost_flag=''
20818 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
20819 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
20820 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20821 (eval $ac_try) 2>&5
20822 ac_status=$?
20823 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20824 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
20825 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20826 (eval $ac_try) 2>&5
20827 ac_status=$?
20828 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20829 test $ac_status = 0; }; }; then :
20830 rc=0
20831 else
20832 $as_echo "$as_me: failed program was:" >&5
20833 sed 's/^/| /' conftest.$ac_ext >&5
20834 rc=1
20835
20836
20837 fi
20838 rm -Rf build
20839
20840
20841 if test $rc -ne 0; then :
20842
20843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20844 $as_echo "no" >&6; }
20845
20846 else
20847 if test "x$enable_linux_builtin" != xyes; then
20848
20849 grep -q -E '[[:space:]]d_make_root[[:space:]]' \
20850 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
20851 rc=$?
20852 if test $rc -ne 0; then
20853 export=0
20854 for file in fs/dcache.c; do
20855 grep -q -E "EXPORT_SYMBOL.*(d_make_root)" \
20856 "$LINUX/$file" 2>/dev/null
20857 rc=$?
20858 if test $rc -eq 0; then
20859 export=1
20860 break;
20861 fi
20862 done
20863 if test $export -eq 0; then :
20864 rc=1
20865 else :
20866 rc=0
20867 fi
20868 else :
20869 rc=0
20870 fi
20871
20872 fi
20873 if test $rc -ne 0; then :
20874
20875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20876 $as_echo "no" >&6; }
20877
20878 else :
20879
20880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20881 $as_echo "yes" >&6; }
20882
20883 $as_echo "#define HAVE_D_MAKE_ROOT 1" >>confdefs.h
20884
20885
20886 fi
20887 fi
20888
20889
20890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether d_obtain_alias() is available" >&5
20891 $as_echo_n "checking whether d_obtain_alias() is available... " >&6; }
20892
20893
20894
20895 cat confdefs.h - <<_ACEOF >conftest.c
20896
20897
20898 #include <linux/dcache.h>
20899
20900 int
20901 main (void)
20902 {
20903
20904 d_obtain_alias(NULL);
20905
20906 ;
20907 return 0;
20908 }
20909
20910 _ACEOF
20911
20912
20913
20914 cat - <<_ACEOF >conftest.h
20915
20916 _ACEOF
20917
20918
20919 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
20920 echo "obj-m := conftest.o" >build/Makefile
20921 modpost_flag=''
20922 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
20923 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
20924 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20925 (eval $ac_try) 2>&5
20926 ac_status=$?
20927 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20928 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
20929 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20930 (eval $ac_try) 2>&5
20931 ac_status=$?
20932 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20933 test $ac_status = 0; }; }; then :
20934 rc=0
20935 else
20936 $as_echo "$as_me: failed program was:" >&5
20937 sed 's/^/| /' conftest.$ac_ext >&5
20938 rc=1
20939
20940
20941 fi
20942 rm -Rf build
20943
20944
20945 if test $rc -ne 0; then :
20946
20947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20948 $as_echo "no" >&6; }
20949
20950 else
20951 if test "x$enable_linux_builtin" != xyes; then
20952
20953 grep -q -E '[[:space:]]d_obtain_alias[[:space:]]' \
20954 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
20955 rc=$?
20956 if test $rc -ne 0; then
20957 export=0
20958 for file in fs/dcache.c; do
20959 grep -q -E "EXPORT_SYMBOL.*(d_obtain_alias)" \
20960 "$LINUX/$file" 2>/dev/null
20961 rc=$?
20962 if test $rc -eq 0; then
20963 export=1
20964 break;
20965 fi
20966 done
20967 if test $export -eq 0; then :
20968 rc=1
20969 else :
20970 rc=0
20971 fi
20972 else :
20973 rc=0
20974 fi
20975
20976 fi
20977 if test $rc -ne 0; then :
20978
20979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20980 $as_echo "no" >&6; }
20981
20982 else :
20983
20984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20985 $as_echo "yes" >&6; }
20986
20987 $as_echo "#define HAVE_D_OBTAIN_ALIAS 1" >>confdefs.h
20988
20989
20990 fi
20991 fi
20992
20993
20994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether d_prune_aliases() is available" >&5
20995 $as_echo_n "checking whether d_prune_aliases() is available... " >&6; }
20996
20997
20998
20999 cat confdefs.h - <<_ACEOF >conftest.c
21000
21001
21002 #include <linux/dcache.h>
21003
21004 int
21005 main (void)
21006 {
21007
21008 struct inode *ip = NULL;
21009 d_prune_aliases(ip);
21010
21011 ;
21012 return 0;
21013 }
21014
21015 _ACEOF
21016
21017
21018
21019 cat - <<_ACEOF >conftest.h
21020
21021 _ACEOF
21022
21023
21024 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
21025 echo "obj-m := conftest.o" >build/Makefile
21026 modpost_flag=''
21027 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
21028 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
21029 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21030 (eval $ac_try) 2>&5
21031 ac_status=$?
21032 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21033 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
21034 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21035 (eval $ac_try) 2>&5
21036 ac_status=$?
21037 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21038 test $ac_status = 0; }; }; then :
21039 rc=0
21040 else
21041 $as_echo "$as_me: failed program was:" >&5
21042 sed 's/^/| /' conftest.$ac_ext >&5
21043 rc=1
21044
21045
21046 fi
21047 rm -Rf build
21048
21049
21050 if test $rc -ne 0; then :
21051
21052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21053 $as_echo "no" >&6; }
21054
21055 else
21056 if test "x$enable_linux_builtin" != xyes; then
21057
21058 grep -q -E '[[:space:]]d_prune_aliases[[:space:]]' \
21059 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
21060 rc=$?
21061 if test $rc -ne 0; then
21062 export=0
21063 for file in fs/dcache.c; do
21064 grep -q -E "EXPORT_SYMBOL.*(d_prune_aliases)" \
21065 "$LINUX/$file" 2>/dev/null
21066 rc=$?
21067 if test $rc -eq 0; then
21068 export=1
21069 break;
21070 fi
21071 done
21072 if test $export -eq 0; then :
21073 rc=1
21074 else :
21075 rc=0
21076 fi
21077 else :
21078 rc=0
21079 fi
21080
21081 fi
21082 if test $rc -ne 0; then :
21083
21084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21085 $as_echo "no" >&6; }
21086
21087 else :
21088
21089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21090 $as_echo "yes" >&6; }
21091
21092 $as_echo "#define HAVE_D_PRUNE_ALIASES 1" >>confdefs.h
21093
21094
21095 fi
21096 fi
21097
21098
21099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether d_set_d_op() is available" >&5
21100 $as_echo_n "checking whether d_set_d_op() is available... " >&6; }
21101
21102
21103
21104 cat confdefs.h - <<_ACEOF >conftest.c
21105
21106
21107 #include <linux/dcache.h>
21108
21109 int
21110 main (void)
21111 {
21112
21113 d_set_d_op(NULL, NULL);
21114
21115 ;
21116 return 0;
21117 }
21118
21119 _ACEOF
21120
21121
21122
21123 cat - <<_ACEOF >conftest.h
21124
21125 _ACEOF
21126
21127
21128 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
21129 echo "obj-m := conftest.o" >build/Makefile
21130 modpost_flag=''
21131 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
21132 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
21133 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21134 (eval $ac_try) 2>&5
21135 ac_status=$?
21136 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21137 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
21138 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21139 (eval $ac_try) 2>&5
21140 ac_status=$?
21141 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21142 test $ac_status = 0; }; }; then :
21143 rc=0
21144 else
21145 $as_echo "$as_me: failed program was:" >&5
21146 sed 's/^/| /' conftest.$ac_ext >&5
21147 rc=1
21148
21149
21150 fi
21151 rm -Rf build
21152
21153
21154 if test $rc -ne 0; then :
21155
21156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21157 $as_echo "no" >&6; }
21158
21159 else
21160 if test "x$enable_linux_builtin" != xyes; then
21161
21162 grep -q -E '[[:space:]]d_set_d_op[[:space:]]' \
21163 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
21164 rc=$?
21165 if test $rc -ne 0; then
21166 export=0
21167 for file in fs/dcache.c; do
21168 grep -q -E "EXPORT_SYMBOL.*(d_set_d_op)" \
21169 "$LINUX/$file" 2>/dev/null
21170 rc=$?
21171 if test $rc -eq 0; then
21172 export=1
21173 break;
21174 fi
21175 done
21176 if test $export -eq 0; then :
21177 rc=1
21178 else :
21179 rc=0
21180 fi
21181 else :
21182 rc=0
21183 fi
21184
21185 fi
21186 if test $rc -ne 0; then :
21187
21188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21189 $as_echo "no" >&6; }
21190
21191 else :
21192
21193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21194 $as_echo "yes" >&6; }
21195
21196 $as_echo "#define HAVE_D_SET_D_OP 1" >>confdefs.h
21197
21198
21199 fi
21200 fi
21201
21202
21203
21204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether dops->d_revalidate() takes struct nameidata" >&5
21205 $as_echo_n "checking whether dops->d_revalidate() takes struct nameidata... " >&6; }
21206
21207
21208 cat confdefs.h - <<_ACEOF >conftest.c
21209
21210
21211 #include <linux/dcache.h>
21212
21213 int revalidate (struct dentry *dentry,
21214 struct nameidata *nidata) { return 0; }
21215
21216 static const struct dentry_operations
21217 dops __attribute__ ((unused)) = {
21218 .d_revalidate = revalidate,
21219 };
21220
21221 int
21222 main (void)
21223 {
21224
21225
21226 ;
21227 return 0;
21228 }
21229
21230 _ACEOF
21231
21232
21233
21234 cat - <<_ACEOF >conftest.h
21235
21236 _ACEOF
21237
21238
21239 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
21240 echo "obj-m := conftest.o" >build/Makefile
21241 modpost_flag=''
21242 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
21243 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
21244 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21245 (eval $ac_try) 2>&5
21246 ac_status=$?
21247 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21248 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
21249 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21250 (eval $ac_try) 2>&5
21251 ac_status=$?
21252 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21253 test $ac_status = 0; }; }; then :
21254
21255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21256 $as_echo "yes" >&6; }
21257
21258 $as_echo "#define HAVE_D_REVALIDATE_NAMEIDATA 1" >>confdefs.h
21259
21260
21261 else
21262 $as_echo "$as_me: failed program was:" >&5
21263 sed 's/^/| /' conftest.$ac_ext >&5
21264
21265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21266 $as_echo "no" >&6; }
21267
21268
21269
21270 fi
21271 rm -Rf build
21272
21273
21274
21275
21276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether dentry uses const struct dentry_operations" >&5
21277 $as_echo_n "checking whether dentry uses const struct dentry_operations... " >&6; }
21278
21279
21280 cat confdefs.h - <<_ACEOF >conftest.c
21281
21282
21283 #include <linux/dcache.h>
21284
21285 const struct dentry_operations test_d_op = {
21286 .d_revalidate = NULL,
21287 };
21288
21289 int
21290 main (void)
21291 {
21292
21293 struct dentry d __attribute__ ((unused));
21294
21295 d.d_op = &test_d_op;
21296
21297 ;
21298 return 0;
21299 }
21300
21301 _ACEOF
21302
21303
21304
21305 cat - <<_ACEOF >conftest.h
21306
21307 _ACEOF
21308
21309
21310 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
21311 echo "obj-m := conftest.o" >build/Makefile
21312 modpost_flag=''
21313 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
21314 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
21315 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21316 (eval $ac_try) 2>&5
21317 ac_status=$?
21318 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21319 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
21320 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21321 (eval $ac_try) 2>&5
21322 ac_status=$?
21323 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21324 test $ac_status = 0; }; }; then :
21325
21326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21327 $as_echo "yes" >&6; }
21328
21329 $as_echo "#define HAVE_CONST_DENTRY_OPERATIONS 1" >>confdefs.h
21330
21331
21332 else
21333 $as_echo "$as_me: failed program was:" >&5
21334 sed 's/^/| /' conftest.$ac_ext >&5
21335
21336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21337 $as_echo "no" >&6; }
21338
21339
21340
21341 fi
21342 rm -Rf build
21343
21344
21345
21346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether check_disk_size_change() is available" >&5
21347 $as_echo_n "checking whether check_disk_size_change() is available... " >&6; }
21348
21349
21350
21351 cat confdefs.h - <<_ACEOF >conftest.c
21352
21353
21354 #include <linux/fs.h>
21355
21356 int
21357 main (void)
21358 {
21359
21360 check_disk_size_change(NULL, NULL);
21361
21362 ;
21363 return 0;
21364 }
21365
21366 _ACEOF
21367
21368
21369
21370 cat - <<_ACEOF >conftest.h
21371
21372 _ACEOF
21373
21374
21375 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
21376 echo "obj-m := conftest.o" >build/Makefile
21377 modpost_flag=''
21378 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
21379 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
21380 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21381 (eval $ac_try) 2>&5
21382 ac_status=$?
21383 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21384 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
21385 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21386 (eval $ac_try) 2>&5
21387 ac_status=$?
21388 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21389 test $ac_status = 0; }; }; then :
21390 rc=0
21391 else
21392 $as_echo "$as_me: failed program was:" >&5
21393 sed 's/^/| /' conftest.$ac_ext >&5
21394 rc=1
21395
21396
21397 fi
21398 rm -Rf build
21399
21400
21401 if test $rc -ne 0; then :
21402
21403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21404 $as_echo "no" >&6; }
21405
21406 else
21407 if test "x$enable_linux_builtin" != xyes; then
21408
21409 grep -q -E '[[:space:]]check_disk_size_change[[:space:]]' \
21410 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
21411 rc=$?
21412 if test $rc -ne 0; then
21413 export=0
21414 for file in fs/block_dev.c; do
21415 grep -q -E "EXPORT_SYMBOL.*(check_disk_size_change)" \
21416 "$LINUX/$file" 2>/dev/null
21417 rc=$?
21418 if test $rc -eq 0; then
21419 export=1
21420 break;
21421 fi
21422 done
21423 if test $export -eq 0; then :
21424 rc=1
21425 else :
21426 rc=0
21427 fi
21428 else :
21429 rc=0
21430 fi
21431
21432 fi
21433 if test $rc -ne 0; then :
21434
21435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21436 $as_echo "no" >&6; }
21437
21438 else :
21439
21440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21441 $as_echo "yes" >&6; }
21442
21443 $as_echo "#define HAVE_CHECK_DISK_SIZE_CHANGE 1" >>confdefs.h
21444
21445
21446 fi
21447 fi
21448
21449
21450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether truncate_setsize() is available" >&5
21451 $as_echo_n "checking whether truncate_setsize() is available... " >&6; }
21452
21453
21454
21455 cat confdefs.h - <<_ACEOF >conftest.c
21456
21457
21458 #include <linux/mm.h>
21459
21460 int
21461 main (void)
21462 {
21463
21464 truncate_setsize(NULL, 0);
21465
21466 ;
21467 return 0;
21468 }
21469
21470 _ACEOF
21471
21472
21473
21474 cat - <<_ACEOF >conftest.h
21475
21476 _ACEOF
21477
21478
21479 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
21480 echo "obj-m := conftest.o" >build/Makefile
21481 modpost_flag=''
21482 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
21483 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
21484 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21485 (eval $ac_try) 2>&5
21486 ac_status=$?
21487 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21488 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
21489 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21490 (eval $ac_try) 2>&5
21491 ac_status=$?
21492 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21493 test $ac_status = 0; }; }; then :
21494 rc=0
21495 else
21496 $as_echo "$as_me: failed program was:" >&5
21497 sed 's/^/| /' conftest.$ac_ext >&5
21498 rc=1
21499
21500
21501 fi
21502 rm -Rf build
21503
21504
21505 if test $rc -ne 0; then :
21506
21507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21508 $as_echo "no" >&6; }
21509
21510 else
21511 if test "x$enable_linux_builtin" != xyes; then
21512
21513 grep -q -E '[[:space:]]truncate_setsize[[:space:]]' \
21514 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
21515 rc=$?
21516 if test $rc -ne 0; then
21517 export=0
21518 for file in mm/truncate.c; do
21519 grep -q -E "EXPORT_SYMBOL.*(truncate_setsize)" \
21520 "$LINUX/$file" 2>/dev/null
21521 rc=$?
21522 if test $rc -eq 0; then
21523 export=1
21524 break;
21525 fi
21526 done
21527 if test $export -eq 0; then :
21528 rc=1
21529 else :
21530 rc=0
21531 fi
21532 else :
21533 rc=0
21534 fi
21535
21536 fi
21537 if test $rc -ne 0; then :
21538
21539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21540 $as_echo "no" >&6; }
21541
21542 else :
21543
21544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21545 $as_echo "yes" >&6; }
21546
21547 $as_echo "#define HAVE_TRUNCATE_SETSIZE 1" >>confdefs.h
21548
21549
21550 fi
21551 fi
21552
21553
21554
21555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether security_inode_init_security wants 6 args" >&5
21556 $as_echo_n "checking whether security_inode_init_security wants 6 args... " >&6; }
21557
21558
21559 cat confdefs.h - <<_ACEOF >conftest.c
21560
21561
21562 #include <linux/security.h>
21563
21564 int
21565 main (void)
21566 {
21567
21568 struct inode *ip __attribute__ ((unused)) = NULL;
21569 struct inode *dip __attribute__ ((unused)) = NULL;
21570 const struct qstr *str __attribute__ ((unused)) = NULL;
21571 char *name __attribute__ ((unused)) = NULL;
21572 void *value __attribute__ ((unused)) = NULL;
21573 size_t len __attribute__ ((unused)) = 0;
21574
21575 security_inode_init_security(ip, dip, str, &name, &value, &len);
21576
21577 ;
21578 return 0;
21579 }
21580
21581 _ACEOF
21582
21583
21584
21585 cat - <<_ACEOF >conftest.h
21586
21587 _ACEOF
21588
21589
21590 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
21591 echo "obj-m := conftest.o" >build/Makefile
21592 modpost_flag=''
21593 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
21594 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
21595 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21596 (eval $ac_try) 2>&5
21597 ac_status=$?
21598 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21599 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
21600 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21601 (eval $ac_try) 2>&5
21602 ac_status=$?
21603 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21604 test $ac_status = 0; }; }; then :
21605
21606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21607 $as_echo "yes" >&6; }
21608
21609 $as_echo "#define HAVE_6ARGS_SECURITY_INODE_INIT_SECURITY 1" >>confdefs.h
21610
21611
21612 else
21613 $as_echo "$as_me: failed program was:" >&5
21614 sed 's/^/| /' conftest.$ac_ext >&5
21615
21616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21617 $as_echo "no" >&6; }
21618
21619
21620
21621 fi
21622 rm -Rf build
21623
21624
21625
21626
21627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether security_inode_init_security wants callback" >&5
21628 $as_echo_n "checking whether security_inode_init_security wants callback... " >&6; }
21629
21630
21631 cat confdefs.h - <<_ACEOF >conftest.c
21632
21633
21634 #include <linux/security.h>
21635
21636 int
21637 main (void)
21638 {
21639
21640 struct inode *ip __attribute__ ((unused)) = NULL;
21641 struct inode *dip __attribute__ ((unused)) = NULL;
21642 const struct qstr *str __attribute__ ((unused)) = NULL;
21643 initxattrs func __attribute__ ((unused)) = NULL;
21644
21645 security_inode_init_security(ip, dip, str, func, NULL);
21646
21647 ;
21648 return 0;
21649 }
21650
21651 _ACEOF
21652
21653
21654
21655 cat - <<_ACEOF >conftest.h
21656
21657 _ACEOF
21658
21659
21660 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
21661 echo "obj-m := conftest.o" >build/Makefile
21662 modpost_flag=''
21663 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
21664 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
21665 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21666 (eval $ac_try) 2>&5
21667 ac_status=$?
21668 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21669 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
21670 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21671 (eval $ac_try) 2>&5
21672 ac_status=$?
21673 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21674 test $ac_status = 0; }; }; then :
21675
21676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21677 $as_echo "yes" >&6; }
21678
21679 $as_echo "#define HAVE_CALLBACK_SECURITY_INODE_INIT_SECURITY 1" >>confdefs.h
21680
21681
21682 else
21683 $as_echo "$as_me: failed program was:" >&5
21684 sed 's/^/| /' conftest.$ac_ext >&5
21685
21686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21687 $as_echo "no" >&6; }
21688
21689
21690
21691 fi
21692 rm -Rf build
21693
21694
21695
21696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mount_nodev() is available" >&5
21697 $as_echo_n "checking whether mount_nodev() is available... " >&6; }
21698
21699
21700
21701 cat confdefs.h - <<_ACEOF >conftest.c
21702
21703
21704 #include <linux/fs.h>
21705
21706 int
21707 main (void)
21708 {
21709
21710 mount_nodev(NULL, 0, NULL, NULL);
21711
21712 ;
21713 return 0;
21714 }
21715
21716 _ACEOF
21717
21718
21719
21720 cat - <<_ACEOF >conftest.h
21721
21722 _ACEOF
21723
21724
21725 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
21726 echo "obj-m := conftest.o" >build/Makefile
21727 modpost_flag=''
21728 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
21729 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
21730 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21731 (eval $ac_try) 2>&5
21732 ac_status=$?
21733 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21734 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
21735 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21736 (eval $ac_try) 2>&5
21737 ac_status=$?
21738 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21739 test $ac_status = 0; }; }; then :
21740 rc=0
21741 else
21742 $as_echo "$as_me: failed program was:" >&5
21743 sed 's/^/| /' conftest.$ac_ext >&5
21744 rc=1
21745
21746
21747 fi
21748 rm -Rf build
21749
21750
21751 if test $rc -ne 0; then :
21752
21753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21754 $as_echo "no" >&6; }
21755
21756 else
21757 if test "x$enable_linux_builtin" != xyes; then
21758
21759 grep -q -E '[[:space:]]mount_nodev[[:space:]]' \
21760 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
21761 rc=$?
21762 if test $rc -ne 0; then
21763 export=0
21764 for file in fs/super.c; do
21765 grep -q -E "EXPORT_SYMBOL.*(mount_nodev)" \
21766 "$LINUX/$file" 2>/dev/null
21767 rc=$?
21768 if test $rc -eq 0; then
21769 export=1
21770 break;
21771 fi
21772 done
21773 if test $export -eq 0; then :
21774 rc=1
21775 else :
21776 rc=0
21777 fi
21778 else :
21779 rc=0
21780 fi
21781
21782 fi
21783 if test $rc -ne 0; then :
21784
21785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21786 $as_echo "no" >&6; }
21787
21788 else :
21789
21790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21791 $as_echo "yes" >&6; }
21792
21793 $as_echo "#define HAVE_MOUNT_NODEV 1" >>confdefs.h
21794
21795
21796 fi
21797 fi
21798
21799
21800
21801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether super_block has s_shrink" >&5
21802 $as_echo_n "checking whether super_block has s_shrink... " >&6; }
21803
21804
21805 cat confdefs.h - <<_ACEOF >conftest.c
21806
21807
21808 #include <linux/fs.h>
21809
21810 int shrink(struct shrinker *s, struct shrink_control *sc)
21811 { return 0; }
21812
21813 static const struct super_block
21814 sb __attribute__ ((unused)) = {
21815 .s_shrink.shrink = shrink,
21816 .s_shrink.seeks = DEFAULT_SEEKS,
21817 .s_shrink.batch = 0,
21818 };
21819
21820 int
21821 main (void)
21822 {
21823
21824
21825 ;
21826 return 0;
21827 }
21828
21829 _ACEOF
21830
21831
21832
21833 cat - <<_ACEOF >conftest.h
21834
21835 _ACEOF
21836
21837
21838 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
21839 echo "obj-m := conftest.o" >build/Makefile
21840 modpost_flag=''
21841 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
21842 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
21843 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21844 (eval $ac_try) 2>&5
21845 ac_status=$?
21846 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21847 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
21848 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21849 (eval $ac_try) 2>&5
21850 ac_status=$?
21851 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21852 test $ac_status = 0; }; }; then :
21853
21854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21855 $as_echo "yes" >&6; }
21856
21857 $as_echo "#define HAVE_SHRINK 1" >>confdefs.h
21858
21859
21860
21861 else
21862 $as_echo "$as_me: failed program was:" >&5
21863 sed 's/^/| /' conftest.$ac_ext >&5
21864
21865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21866 $as_echo "no" >&6; }
21867
21868
21869
21870 fi
21871 rm -Rf build
21872
21873
21874
21875
21876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether shrink_control has nid" >&5
21877 $as_echo_n "checking whether shrink_control has nid... " >&6; }
21878
21879
21880 cat confdefs.h - <<_ACEOF >conftest.c
21881
21882
21883 #include <linux/fs.h>
21884
21885 int
21886 main (void)
21887 {
21888
21889 struct shrink_control sc __attribute__ ((unused));
21890 unsigned long scnidsize __attribute__ ((unused)) =
21891 sizeof(sc.nid);
21892
21893 ;
21894 return 0;
21895 }
21896
21897 _ACEOF
21898
21899
21900
21901 cat - <<_ACEOF >conftest.h
21902
21903 _ACEOF
21904
21905
21906 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
21907 echo "obj-m := conftest.o" >build/Makefile
21908 modpost_flag=''
21909 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
21910 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
21911 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21912 (eval $ac_try) 2>&5
21913 ac_status=$?
21914 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21915 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
21916 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21917 (eval $ac_try) 2>&5
21918 ac_status=$?
21919 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21920 test $ac_status = 0; }; }; then :
21921
21922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21923 $as_echo "yes" >&6; }
21924
21925 $as_echo "#define SHRINK_CONTROL_HAS_NID 1" >>confdefs.h
21926
21927
21928 else
21929 $as_echo "$as_me: failed program was:" >&5
21930 sed 's/^/| /' conftest.$ac_ext >&5
21931
21932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21933 $as_echo "no" >&6; }
21934
21935
21936
21937 fi
21938 rm -Rf build
21939
21940
21941
21942
21943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether super_block has s_instances list_head" >&5
21944 $as_echo_n "checking whether super_block has s_instances list_head... " >&6; }
21945
21946
21947 cat confdefs.h - <<_ACEOF >conftest.c
21948
21949
21950 #include <linux/fs.h>
21951
21952 int
21953 main (void)
21954 {
21955
21956 struct super_block sb __attribute__ ((unused));
21957
21958 INIT_LIST_HEAD(&sb.s_instances);
21959
21960 ;
21961 return 0;
21962 }
21963
21964 _ACEOF
21965
21966
21967
21968 cat - <<_ACEOF >conftest.h
21969
21970 _ACEOF
21971
21972
21973 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
21974 echo "obj-m := conftest.o" >build/Makefile
21975 modpost_flag=''
21976 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
21977 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
21978 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21979 (eval $ac_try) 2>&5
21980 ac_status=$?
21981 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21982 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
21983 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21984 (eval $ac_try) 2>&5
21985 ac_status=$?
21986 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21987 test $ac_status = 0; }; }; then :
21988
21989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21990 $as_echo "yes" >&6; }
21991
21992 $as_echo "#define HAVE_S_INSTANCES_LIST_HEAD 1" >>confdefs.h
21993
21994
21995 else
21996 $as_echo "$as_me: failed program was:" >&5
21997 sed 's/^/| /' conftest.$ac_ext >&5
21998
21999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22000 $as_echo "no" >&6; }
22001
22002
22003
22004 fi
22005 rm -Rf build
22006
22007
22008
22009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether super_block has s_d_op" >&5
22010 $as_echo_n "checking whether super_block has s_d_op... " >&6; }
22011
22012
22013 cat confdefs.h - <<_ACEOF >conftest.c
22014
22015
22016 #include <linux/fs.h>
22017
22018 int
22019 main (void)
22020 {
22021
22022 struct super_block sb __attribute__ ((unused));
22023 sb.s_d_op = NULL;
22024
22025 ;
22026 return 0;
22027 }
22028
22029 _ACEOF
22030
22031
22032
22033 cat - <<_ACEOF >conftest.h
22034
22035 _ACEOF
22036
22037
22038 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
22039 echo "obj-m := conftest.o" >build/Makefile
22040 modpost_flag=''
22041 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
22042 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
22043 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22044 (eval $ac_try) 2>&5
22045 ac_status=$?
22046 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22047 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
22048 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22049 (eval $ac_try) 2>&5
22050 ac_status=$?
22051 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22052 test $ac_status = 0; }; }; then :
22053
22054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22055 $as_echo "yes" >&6; }
22056
22057 $as_echo "#define HAVE_S_D_OP 1" >>confdefs.h
22058
22059
22060 else
22061 $as_echo "$as_me: failed program was:" >&5
22062 sed 's/^/| /' conftest.$ac_ext >&5
22063
22064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22065 $as_echo "no" >&6; }
22066
22067
22068
22069 fi
22070 rm -Rf build
22071
22072
22073
22074
22075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether bdi_setup_and_register() wants 2 args" >&5
22076 $as_echo_n "checking whether bdi_setup_and_register() wants 2 args... " >&6; }
22077
22078
22079
22080 cat confdefs.h - <<_ACEOF >conftest.c
22081
22082
22083 #include <linux/backing-dev.h>
22084 struct backing_dev_info bdi;
22085
22086 int
22087 main (void)
22088 {
22089
22090 char *name = "bdi";
22091 int error __attribute__((unused)) =
22092 bdi_setup_and_register(&bdi, name);
22093
22094 ;
22095 return 0;
22096 }
22097
22098 _ACEOF
22099
22100
22101
22102 cat - <<_ACEOF >conftest.h
22103
22104 _ACEOF
22105
22106
22107 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
22108 echo "obj-m := conftest.o" >build/Makefile
22109 modpost_flag=''
22110 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
22111 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
22112 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22113 (eval $ac_try) 2>&5
22114 ac_status=$?
22115 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22116 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
22117 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22118 (eval $ac_try) 2>&5
22119 ac_status=$?
22120 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22121 test $ac_status = 0; }; }; then :
22122 rc=0
22123 else
22124 $as_echo "$as_me: failed program was:" >&5
22125 sed 's/^/| /' conftest.$ac_ext >&5
22126 rc=1
22127
22128
22129 fi
22130 rm -Rf build
22131
22132
22133 if test $rc -ne 0; then :
22134
22135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22136 $as_echo "no" >&6; }
22137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether bdi_setup_and_register() wants 3 args" >&5
22138 $as_echo_n "checking whether bdi_setup_and_register() wants 3 args... " >&6; }
22139
22140
22141
22142 cat confdefs.h - <<_ACEOF >conftest.c
22143
22144
22145 #include <linux/backing-dev.h>
22146 struct backing_dev_info bdi;
22147
22148 int
22149 main (void)
22150 {
22151
22152 char *name = "bdi";
22153 unsigned int cap = BDI_CAP_MAP_COPY;
22154 int error __attribute__((unused)) =
22155 bdi_setup_and_register(&bdi, name, cap);
22156
22157 ;
22158 return 0;
22159 }
22160
22161 _ACEOF
22162
22163
22164
22165 cat - <<_ACEOF >conftest.h
22166
22167 _ACEOF
22168
22169
22170 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
22171 echo "obj-m := conftest.o" >build/Makefile
22172 modpost_flag=''
22173 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
22174 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
22175 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22176 (eval $ac_try) 2>&5
22177 ac_status=$?
22178 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22179 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
22180 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22181 (eval $ac_try) 2>&5
22182 ac_status=$?
22183 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22184 test $ac_status = 0; }; }; then :
22185 rc=0
22186 else
22187 $as_echo "$as_me: failed program was:" >&5
22188 sed 's/^/| /' conftest.$ac_ext >&5
22189 rc=1
22190
22191
22192 fi
22193 rm -Rf build
22194
22195
22196 if test $rc -ne 0; then :
22197
22198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22199 $as_echo "no" >&6; }
22200
22201 else
22202 if test "x$enable_linux_builtin" != xyes; then
22203
22204 grep -q -E '[[:space:]]bdi_setup_and_register[[:space:]]' \
22205 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
22206 rc=$?
22207 if test $rc -ne 0; then
22208 export=0
22209 for file in mm/backing-dev.c; do
22210 grep -q -E "EXPORT_SYMBOL.*(bdi_setup_and_register)" \
22211 "$LINUX/$file" 2>/dev/null
22212 rc=$?
22213 if test $rc -eq 0; then
22214 export=1
22215 break;
22216 fi
22217 done
22218 if test $export -eq 0; then :
22219 rc=1
22220 else :
22221 rc=0
22222 fi
22223 else :
22224 rc=0
22225 fi
22226
22227 fi
22228 if test $rc -ne 0; then :
22229
22230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22231 $as_echo "no" >&6; }
22232
22233 else :
22234
22235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22236 $as_echo "yes" >&6; }
22237
22238 $as_echo "#define HAVE_3ARGS_BDI_SETUP_AND_REGISTER 1" >>confdefs.h
22239
22240
22241 fi
22242 fi
22243
22244
22245 else
22246 if test "x$enable_linux_builtin" != xyes; then
22247
22248 grep -q -E '[[:space:]]bdi_setup_and_register[[:space:]]' \
22249 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
22250 rc=$?
22251 if test $rc -ne 0; then
22252 export=0
22253 for file in mm/backing-dev.c; do
22254 grep -q -E "EXPORT_SYMBOL.*(bdi_setup_and_register)" \
22255 "$LINUX/$file" 2>/dev/null
22256 rc=$?
22257 if test $rc -eq 0; then
22258 export=1
22259 break;
22260 fi
22261 done
22262 if test $export -eq 0; then :
22263 rc=1
22264 else :
22265 rc=0
22266 fi
22267 else :
22268 rc=0
22269 fi
22270
22271 fi
22272 if test $rc -ne 0; then :
22273
22274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22275 $as_echo "no" >&6; }
22276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether bdi_setup_and_register() wants 3 args" >&5
22277 $as_echo_n "checking whether bdi_setup_and_register() wants 3 args... " >&6; }
22278
22279
22280
22281 cat confdefs.h - <<_ACEOF >conftest.c
22282
22283
22284 #include <linux/backing-dev.h>
22285 struct backing_dev_info bdi;
22286
22287 int
22288 main (void)
22289 {
22290
22291 char *name = "bdi";
22292 unsigned int cap = BDI_CAP_MAP_COPY;
22293 int error __attribute__((unused)) =
22294 bdi_setup_and_register(&bdi, name, cap);
22295
22296 ;
22297 return 0;
22298 }
22299
22300 _ACEOF
22301
22302
22303
22304 cat - <<_ACEOF >conftest.h
22305
22306 _ACEOF
22307
22308
22309 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
22310 echo "obj-m := conftest.o" >build/Makefile
22311 modpost_flag=''
22312 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
22313 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
22314 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22315 (eval $ac_try) 2>&5
22316 ac_status=$?
22317 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22318 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
22319 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22320 (eval $ac_try) 2>&5
22321 ac_status=$?
22322 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22323 test $ac_status = 0; }; }; then :
22324 rc=0
22325 else
22326 $as_echo "$as_me: failed program was:" >&5
22327 sed 's/^/| /' conftest.$ac_ext >&5
22328 rc=1
22329
22330
22331 fi
22332 rm -Rf build
22333
22334
22335 if test $rc -ne 0; then :
22336
22337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22338 $as_echo "no" >&6; }
22339
22340 else
22341 if test "x$enable_linux_builtin" != xyes; then
22342
22343 grep -q -E '[[:space:]]bdi_setup_and_register[[:space:]]' \
22344 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
22345 rc=$?
22346 if test $rc -ne 0; then
22347 export=0
22348 for file in mm/backing-dev.c; do
22349 grep -q -E "EXPORT_SYMBOL.*(bdi_setup_and_register)" \
22350 "$LINUX/$file" 2>/dev/null
22351 rc=$?
22352 if test $rc -eq 0; then
22353 export=1
22354 break;
22355 fi
22356 done
22357 if test $export -eq 0; then :
22358 rc=1
22359 else :
22360 rc=0
22361 fi
22362 else :
22363 rc=0
22364 fi
22365
22366 fi
22367 if test $rc -ne 0; then :
22368
22369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22370 $as_echo "no" >&6; }
22371
22372 else :
22373
22374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22375 $as_echo "yes" >&6; }
22376
22377 $as_echo "#define HAVE_3ARGS_BDI_SETUP_AND_REGISTER 1" >>confdefs.h
22378
22379
22380 fi
22381 fi
22382
22383
22384 else :
22385
22386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22387 $as_echo "yes" >&6; }
22388
22389 $as_echo "#define HAVE_2ARGS_BDI_SETUP_AND_REGISTER 1" >>confdefs.h
22390
22391
22392 fi
22393 fi
22394
22395
22396
22397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether set_nlink() is available" >&5
22398 $as_echo_n "checking whether set_nlink() is available... " >&6; }
22399
22400
22401 cat confdefs.h - <<_ACEOF >conftest.c
22402
22403
22404 #include <linux/fs.h>
22405
22406 int
22407 main (void)
22408 {
22409
22410 struct inode node;
22411 unsigned int link = 0;
22412 (void) set_nlink(&node, link);
22413
22414 ;
22415 return 0;
22416 }
22417
22418 _ACEOF
22419
22420
22421
22422 cat - <<_ACEOF >conftest.h
22423
22424 _ACEOF
22425
22426
22427 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
22428 echo "obj-m := conftest.o" >build/Makefile
22429 modpost_flag=''
22430 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
22431 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
22432 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22433 (eval $ac_try) 2>&5
22434 ac_status=$?
22435 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22436 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
22437 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22438 (eval $ac_try) 2>&5
22439 ac_status=$?
22440 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22441 test $ac_status = 0; }; }; then :
22442
22443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22444 $as_echo "yes" >&6; }
22445
22446 $as_echo "#define HAVE_SET_NLINK 1" >>confdefs.h
22447
22448
22449 else
22450 $as_echo "$as_me: failed program was:" >&5
22451 sed 's/^/| /' conftest.$ac_ext >&5
22452
22453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22454 $as_echo "no" >&6; }
22455
22456
22457
22458 fi
22459 rm -Rf build
22460
22461
22462
22463
22464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether elevator_change() is available" >&5
22465 $as_echo_n "checking whether elevator_change() is available... " >&6; }
22466 tmp_flags="$EXTRA_KCFLAGS"
22467 EXTRA_KCFLAGS="${NO_UNUSED_BUT_SET_VARIABLE}"
22468
22469
22470 cat confdefs.h - <<_ACEOF >conftest.c
22471
22472
22473 #include <linux/blkdev.h>
22474 #include <linux/elevator.h>
22475
22476 int
22477 main (void)
22478 {
22479
22480 int ret;
22481 struct request_queue *q = NULL;
22482 char *elevator = NULL;
22483 ret = elevator_change(q, elevator);
22484
22485 ;
22486 return 0;
22487 }
22488
22489 _ACEOF
22490
22491
22492
22493 cat - <<_ACEOF >conftest.h
22494
22495 _ACEOF
22496
22497
22498 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
22499 echo "obj-m := conftest.o" >build/Makefile
22500 modpost_flag=''
22501 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
22502 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
22503 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22504 (eval $ac_try) 2>&5
22505 ac_status=$?
22506 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22507 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
22508 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22509 (eval $ac_try) 2>&5
22510 ac_status=$?
22511 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22512 test $ac_status = 0; }; }; then :
22513
22514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22515 $as_echo "yes" >&6; }
22516
22517 $as_echo "#define HAVE_ELEVATOR_CHANGE 1" >>confdefs.h
22518
22519
22520 else
22521 $as_echo "$as_me: failed program was:" >&5
22522 sed 's/^/| /' conftest.$ac_ext >&5
22523
22524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22525 $as_echo "no" >&6; }
22526
22527
22528
22529 fi
22530 rm -Rf build
22531
22532
22533 EXTRA_KCFLAGS="$tmp_flags"
22534
22535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sget() wants 5 args" >&5
22536 $as_echo_n "checking whether sget() wants 5 args... " >&6; }
22537
22538
22539 cat confdefs.h - <<_ACEOF >conftest.c
22540
22541
22542 #include <linux/fs.h>
22543
22544 int
22545 main (void)
22546 {
22547
22548 struct file_system_type *type = NULL;
22549 int (*test)(struct super_block *,void *) = NULL;
22550 int (*set)(struct super_block *,void *) = NULL;
22551 int flags = 0;
22552 void *data = NULL;
22553 (void) sget(type, test, set, flags, data);
22554
22555 ;
22556 return 0;
22557 }
22558
22559 _ACEOF
22560
22561
22562
22563 cat - <<_ACEOF >conftest.h
22564
22565 _ACEOF
22566
22567
22568 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
22569 echo "obj-m := conftest.o" >build/Makefile
22570 modpost_flag=''
22571 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
22572 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
22573 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22574 (eval $ac_try) 2>&5
22575 ac_status=$?
22576 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22577 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
22578 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22579 (eval $ac_try) 2>&5
22580 ac_status=$?
22581 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22582 test $ac_status = 0; }; }; then :
22583
22584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22585 $as_echo "yes" >&6; }
22586
22587 $as_echo "#define HAVE_5ARG_SGET 1" >>confdefs.h
22588
22589
22590 else
22591 $as_echo "$as_me: failed program was:" >&5
22592 sed 's/^/| /' conftest.$ac_ext >&5
22593
22594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22595 $as_echo "no" >&6; }
22596
22597
22598
22599 fi
22600 rm -Rf build
22601
22602
22603
22604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lseek_execute() is available" >&5
22605 $as_echo_n "checking whether lseek_execute() is available... " >&6; }
22606
22607
22608
22609 cat confdefs.h - <<_ACEOF >conftest.c
22610
22611
22612 #include <linux/fs.h>
22613
22614 int
22615 main (void)
22616 {
22617
22618 struct file *fp __attribute__ ((unused)) = NULL;
22619 struct inode *ip __attribute__ ((unused)) = NULL;
22620 loff_t offset __attribute__ ((unused)) = 0;
22621 loff_t maxsize __attribute__ ((unused)) = 0;
22622
22623 lseek_execute(fp, ip, offset, maxsize);
22624
22625 ;
22626 return 0;
22627 }
22628
22629 _ACEOF
22630
22631
22632
22633 cat - <<_ACEOF >conftest.h
22634
22635 _ACEOF
22636
22637
22638 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
22639 echo "obj-m := conftest.o" >build/Makefile
22640 modpost_flag=''
22641 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
22642 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
22643 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22644 (eval $ac_try) 2>&5
22645 ac_status=$?
22646 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22647 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
22648 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22649 (eval $ac_try) 2>&5
22650 ac_status=$?
22651 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22652 test $ac_status = 0; }; }; then :
22653 rc=0
22654 else
22655 $as_echo "$as_me: failed program was:" >&5
22656 sed 's/^/| /' conftest.$ac_ext >&5
22657 rc=1
22658
22659
22660 fi
22661 rm -Rf build
22662
22663
22664 if test $rc -ne 0; then :
22665
22666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22667 $as_echo "no" >&6; }
22668
22669 else
22670 if test "x$enable_linux_builtin" != xyes; then
22671
22672 grep -q -E '[[:space:]]lseek_exclusive[[:space:]]' \
22673 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
22674 rc=$?
22675 if test $rc -ne 0; then
22676 export=0
22677 for file in fs/read_write.c; do
22678 grep -q -E "EXPORT_SYMBOL.*(lseek_exclusive)" \
22679 "$LINUX/$file" 2>/dev/null
22680 rc=$?
22681 if test $rc -eq 0; then
22682 export=1
22683 break;
22684 fi
22685 done
22686 if test $export -eq 0; then :
22687 rc=1
22688 else :
22689 rc=0
22690 fi
22691 else :
22692 rc=0
22693 fi
22694
22695 fi
22696 if test $rc -ne 0; then :
22697
22698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22699 $as_echo "no" >&6; }
22700
22701 else :
22702
22703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22704 $as_echo "yes" >&6; }
22705
22706 $as_echo "#define HAVE_LSEEK_EXECUTE 1" >>confdefs.h
22707
22708
22709 fi
22710 fi
22711
22712
22713
22714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fops->iterate_shared() is available" >&5
22715 $as_echo_n "checking whether fops->iterate_shared() is available... " >&6; }
22716
22717
22718 cat confdefs.h - <<_ACEOF >conftest.c
22719
22720
22721 #include <linux/fs.h>
22722 int iterate(struct file *filp, struct dir_context * context)
22723 { return 0; }
22724
22725 static const struct file_operations fops
22726 __attribute__ ((unused)) = {
22727 .iterate_shared = iterate,
22728 };
22729
22730 int
22731 main (void)
22732 {
22733
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
22764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22765 $as_echo "yes" >&6; }
22766
22767 $as_echo "#define HAVE_VFS_ITERATE_SHARED 1" >>confdefs.h
22768
22769
22770 else
22771 $as_echo "$as_me: failed program was:" >&5
22772 sed 's/^/| /' conftest.$ac_ext >&5
22773
22774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22775 $as_echo "no" >&6; }
22776
22777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fops->iterate() is available" >&5
22778 $as_echo_n "checking whether fops->iterate() is available... " >&6; }
22779
22780
22781 cat confdefs.h - <<_ACEOF >conftest.c
22782
22783
22784 #include <linux/fs.h>
22785 int iterate(struct file *filp, struct dir_context * context)
22786 { return 0; }
22787
22788 static const struct file_operations fops
22789 __attribute__ ((unused)) = {
22790 .iterate = iterate,
22791 };
22792
22793 int
22794 main (void)
22795 {
22796
22797
22798 ;
22799 return 0;
22800 }
22801
22802 _ACEOF
22803
22804
22805
22806 cat - <<_ACEOF >conftest.h
22807
22808 _ACEOF
22809
22810
22811 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
22812 echo "obj-m := conftest.o" >build/Makefile
22813 modpost_flag=''
22814 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
22815 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
22816 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22817 (eval $ac_try) 2>&5
22818 ac_status=$?
22819 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22820 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
22821 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22822 (eval $ac_try) 2>&5
22823 ac_status=$?
22824 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22825 test $ac_status = 0; }; }; then :
22826
22827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22828 $as_echo "yes" >&6; }
22829
22830 $as_echo "#define HAVE_VFS_ITERATE 1" >>confdefs.h
22831
22832
22833 else
22834 $as_echo "$as_me: failed program was:" >&5
22835 sed 's/^/| /' conftest.$ac_ext >&5
22836
22837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22838 $as_echo "no" >&6; }
22839
22840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fops->readdir() is available" >&5
22841 $as_echo_n "checking whether fops->readdir() is available... " >&6; }
22842
22843
22844 cat confdefs.h - <<_ACEOF >conftest.c
22845
22846
22847 #include <linux/fs.h>
22848 int readdir(struct file *filp, void *entry, filldir_t func)
22849 { return 0; }
22850
22851 static const struct file_operations fops
22852 __attribute__ ((unused)) = {
22853 .readdir = readdir,
22854 };
22855
22856 int
22857 main (void)
22858 {
22859
22860
22861 ;
22862 return 0;
22863 }
22864
22865 _ACEOF
22866
22867
22868
22869 cat - <<_ACEOF >conftest.h
22870
22871 _ACEOF
22872
22873
22874 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
22875 echo "obj-m := conftest.o" >build/Makefile
22876 modpost_flag=''
22877 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
22878 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
22879 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22880 (eval $ac_try) 2>&5
22881 ac_status=$?
22882 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22883 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
22884 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22885 (eval $ac_try) 2>&5
22886 ac_status=$?
22887 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22888 test $ac_status = 0; }; }; then :
22889
22890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22891 $as_echo "yes" >&6; }
22892
22893 $as_echo "#define HAVE_VFS_READDIR 1" >>confdefs.h
22894
22895
22896 else
22897 $as_echo "$as_me: failed program was:" >&5
22898 sed 's/^/| /' conftest.$ac_ext >&5
22899
22900 as_fn_error $? "no; file a bug report with ZFSOnLinux" "$LINENO" 5
22901
22902
22903
22904 fi
22905 rm -Rf build
22906
22907
22908
22909
22910
22911 fi
22912 rm -Rf build
22913
22914
22915
22916
22917
22918 fi
22919 rm -Rf build
22920
22921
22922
22923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fops->read/write_iter() are available" >&5
22924 $as_echo_n "checking whether fops->read/write_iter() are available... " >&6; }
22925
22926
22927 cat confdefs.h - <<_ACEOF >conftest.c
22928
22929
22930 #include <linux/fs.h>
22931
22932 ssize_t test_read(struct kiocb *kiocb, struct iov_iter *to)
22933 { return 0; }
22934 ssize_t test_write(struct kiocb *kiocb, struct iov_iter *from)
22935 { return 0; }
22936
22937 static const struct file_operations
22938 fops __attribute__ ((unused)) = {
22939 .read_iter = test_read,
22940 .write_iter = test_write,
22941 };
22942
22943 int
22944 main (void)
22945 {
22946
22947
22948 ;
22949 return 0;
22950 }
22951
22952 _ACEOF
22953
22954
22955
22956 cat - <<_ACEOF >conftest.h
22957
22958 _ACEOF
22959
22960
22961 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
22962 echo "obj-m := conftest.o" >build/Makefile
22963 modpost_flag=''
22964 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
22965 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
22966 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22967 (eval $ac_try) 2>&5
22968 ac_status=$?
22969 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22970 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
22971 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22972 (eval $ac_try) 2>&5
22973 ac_status=$?
22974 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22975 test $ac_status = 0; }; }; then :
22976
22977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22978 $as_echo "yes" >&6; }
22979
22980 $as_echo "#define HAVE_VFS_RW_ITERATE 1" >>confdefs.h
22981
22982
22983 else
22984 $as_echo "$as_me: failed program was:" >&5
22985 sed 's/^/| /' conftest.$ac_ext >&5
22986
22987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22988 $as_echo "no" >&6; }
22989
22990
22991
22992 fi
22993 rm -Rf build
22994
22995
22996
22997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether generic_write_checks() takes kiocb" >&5
22998 $as_echo_n "checking whether generic_write_checks() takes kiocb... " >&6; }
22999
23000
23001 cat confdefs.h - <<_ACEOF >conftest.c
23002
23003
23004 #include <linux/fs.h>
23005
23006
23007 int
23008 main (void)
23009 {
23010
23011 struct kiocb *iocb = NULL;
23012 struct iov_iter *iov = NULL;
23013 generic_write_checks(iocb, iov);
23014
23015 ;
23016 return 0;
23017 }
23018
23019 _ACEOF
23020
23021
23022
23023 cat - <<_ACEOF >conftest.h
23024
23025 _ACEOF
23026
23027
23028 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
23029 echo "obj-m := conftest.o" >build/Makefile
23030 modpost_flag=''
23031 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
23032 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
23033 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23034 (eval $ac_try) 2>&5
23035 ac_status=$?
23036 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23037 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
23038 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23039 (eval $ac_try) 2>&5
23040 ac_status=$?
23041 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23042 test $ac_status = 0; }; }; then :
23043
23044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23045 $as_echo "yes" >&6; }
23046
23047 $as_echo "#define HAVE_GENERIC_WRITE_CHECKS_KIOCB 1" >>confdefs.h
23048
23049
23050 else
23051 $as_echo "$as_me: failed program was:" >&5
23052 sed 's/^/| /' conftest.$ac_ext >&5
23053
23054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23055 $as_echo "no" >&6; }
23056
23057
23058
23059 fi
23060 rm -Rf build
23061
23062
23063
23064
23065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether kmap_atomic wants 1 args" >&5
23066 $as_echo_n "checking whether kmap_atomic wants 1 args... " >&6; }
23067
23068
23069 cat confdefs.h - <<_ACEOF >conftest.c
23070
23071
23072 #include <linux/pagemap.h>
23073
23074 int
23075 main (void)
23076 {
23077
23078 struct page page;
23079 kmap_atomic(&page);
23080
23081 ;
23082 return 0;
23083 }
23084
23085 _ACEOF
23086
23087
23088
23089 cat - <<_ACEOF >conftest.h
23090
23091 _ACEOF
23092
23093
23094 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
23095 echo "obj-m := conftest.o" >build/Makefile
23096 modpost_flag=''
23097 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
23098 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
23099 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23100 (eval $ac_try) 2>&5
23101 ac_status=$?
23102 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23103 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
23104 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23105 (eval $ac_try) 2>&5
23106 ac_status=$?
23107 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23108 test $ac_status = 0; }; }; then :
23109
23110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23111 $as_echo "yes" >&6; }
23112
23113 $as_echo "#define HAVE_1ARG_KMAP_ATOMIC 1" >>confdefs.h
23114
23115
23116 else
23117 $as_echo "$as_me: failed program was:" >&5
23118 sed 's/^/| /' conftest.$ac_ext >&5
23119
23120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23121 $as_echo "no" >&6; }
23122
23123
23124
23125 fi
23126 rm -Rf build
23127
23128
23129
23130
23131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether follow_down_one() is available" >&5
23132 $as_echo_n "checking whether follow_down_one() is available... " >&6; }
23133
23134
23135 cat confdefs.h - <<_ACEOF >conftest.c
23136
23137
23138 #include <linux/namei.h>
23139
23140 int
23141 main (void)
23142 {
23143
23144 struct path *p = NULL;
23145 follow_down_one(p);
23146
23147 ;
23148 return 0;
23149 }
23150
23151 _ACEOF
23152
23153
23154
23155 cat - <<_ACEOF >conftest.h
23156
23157 _ACEOF
23158
23159
23160 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
23161 echo "obj-m := conftest.o" >build/Makefile
23162 modpost_flag=''
23163 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
23164 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
23165 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23166 (eval $ac_try) 2>&5
23167 ac_status=$?
23168 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23169 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
23170 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23171 (eval $ac_try) 2>&5
23172 ac_status=$?
23173 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23174 test $ac_status = 0; }; }; then :
23175
23176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23177 $as_echo "yes" >&6; }
23178
23179 $as_echo "#define HAVE_FOLLOW_DOWN_ONE 1" >>confdefs.h
23180
23181
23182 else
23183 $as_echo "$as_me: failed program was:" >&5
23184 sed 's/^/| /' conftest.$ac_ext >&5
23185
23186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23187 $as_echo "no" >&6; }
23188
23189
23190
23191 fi
23192 rm -Rf build
23193
23194
23195
23196
23197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether make_request_fn() returns int" >&5
23198 $as_echo_n "checking whether make_request_fn() returns int... " >&6; }
23199
23200
23201 cat confdefs.h - <<_ACEOF >conftest.c
23202
23203
23204 #include <linux/blkdev.h>
23205
23206 int make_request(struct request_queue *q, struct bio *bio)
23207 {
23208 return (0);
23209 }
23210
23211 int
23212 main (void)
23213 {
23214
23215 blk_queue_make_request(NULL, &make_request);
23216
23217 ;
23218 return 0;
23219 }
23220
23221 _ACEOF
23222
23223
23224
23225 cat - <<_ACEOF >conftest.h
23226
23227 _ACEOF
23228
23229
23230 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
23231 echo "obj-m := conftest.o" >build/Makefile
23232 modpost_flag=''
23233 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
23234 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
23235 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23236 (eval $ac_try) 2>&5
23237 ac_status=$?
23238 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23239 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
23240 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23241 (eval $ac_try) 2>&5
23242 ac_status=$?
23243 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23244 test $ac_status = 0; }; }; then :
23245
23246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23247 $as_echo "yes" >&6; }
23248
23249 $as_echo "#define MAKE_REQUEST_FN_RET int" >>confdefs.h
23250
23251
23252 $as_echo "#define HAVE_MAKE_REQUEST_FN_RET_INT 1" >>confdefs.h
23253
23254
23255 else
23256 $as_echo "$as_me: failed program was:" >&5
23257 sed 's/^/| /' conftest.$ac_ext >&5
23258
23259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23260 $as_echo "no" >&6; }
23261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether make_request_fn() returns void" >&5
23262 $as_echo_n "checking whether make_request_fn() returns void... " >&6; }
23263
23264
23265 cat confdefs.h - <<_ACEOF >conftest.c
23266
23267
23268 #include <linux/blkdev.h>
23269
23270 void make_request(struct request_queue *q, struct bio *bio)
23271 {
23272 return;
23273 }
23274
23275 int
23276 main (void)
23277 {
23278
23279 blk_queue_make_request(NULL, &make_request);
23280
23281 ;
23282 return 0;
23283 }
23284
23285 _ACEOF
23286
23287
23288
23289 cat - <<_ACEOF >conftest.h
23290
23291 _ACEOF
23292
23293
23294 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
23295 echo "obj-m := conftest.o" >build/Makefile
23296 modpost_flag=''
23297 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
23298 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
23299 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23300 (eval $ac_try) 2>&5
23301 ac_status=$?
23302 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23303 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
23304 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23305 (eval $ac_try) 2>&5
23306 ac_status=$?
23307 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23308 test $ac_status = 0; }; }; then :
23309
23310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23311 $as_echo "yes" >&6; }
23312
23313 $as_echo "#define MAKE_REQUEST_FN_RET void" >>confdefs.h
23314
23315
23316 else
23317 $as_echo "$as_me: failed program was:" >&5
23318 sed 's/^/| /' conftest.$ac_ext >&5
23319
23320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23321 $as_echo "no" >&6; }
23322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether make_request_fn() returns blk_qc_t" >&5
23323 $as_echo_n "checking whether make_request_fn() returns blk_qc_t... " >&6; }
23324
23325
23326 cat confdefs.h - <<_ACEOF >conftest.c
23327
23328
23329 #include <linux/blkdev.h>
23330
23331 blk_qc_t make_request(struct request_queue *q, struct bio *bio)
23332 {
23333 return (BLK_QC_T_NONE);
23334 }
23335
23336 int
23337 main (void)
23338 {
23339
23340 blk_queue_make_request(NULL, &make_request);
23341
23342 ;
23343 return 0;
23344 }
23345
23346 _ACEOF
23347
23348
23349
23350 cat - <<_ACEOF >conftest.h
23351
23352 _ACEOF
23353
23354
23355 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
23356 echo "obj-m := conftest.o" >build/Makefile
23357 modpost_flag=''
23358 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
23359 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
23360 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23361 (eval $ac_try) 2>&5
23362 ac_status=$?
23363 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23364 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
23365 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23366 (eval $ac_try) 2>&5
23367 ac_status=$?
23368 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23369 test $ac_status = 0; }; }; then :
23370
23371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23372 $as_echo "yes" >&6; }
23373
23374 $as_echo "#define MAKE_REQUEST_FN_RET blk_qc_t" >>confdefs.h
23375
23376
23377 $as_echo "#define HAVE_MAKE_REQUEST_FN_RET_QC 1" >>confdefs.h
23378
23379
23380 else
23381 $as_echo "$as_me: failed program was:" >&5
23382 sed 's/^/| /' conftest.$ac_ext >&5
23383
23384 as_fn_error $? "no - Please file a bug report at
23385 https://github.com/zfsonlinux/zfs/issues/new" "$LINENO" 5
23386
23387
23388
23389 fi
23390 rm -Rf build
23391
23392
23393
23394
23395
23396 fi
23397 rm -Rf build
23398
23399
23400
23401
23402
23403 fi
23404 rm -Rf build
23405
23406
23407
23408
23409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether generic IO accounting symbols are avaliable" >&5
23410 $as_echo_n "checking whether generic IO accounting symbols are avaliable... " >&6; }
23411
23412
23413
23414 cat confdefs.h - <<_ACEOF >conftest.c
23415
23416
23417 #include <linux/bio.h>
23418
23419 void (*generic_start_io_acct_f)(int, unsigned long,
23420 struct hd_struct *) = &generic_start_io_acct;
23421 void (*generic_end_io_acct_f)(int, struct hd_struct *,
23422 unsigned long) = &generic_end_io_acct;
23423
23424 int
23425 main (void)
23426 {
23427
23428 generic_start_io_acct(0, 0, NULL);
23429 generic_end_io_acct(0, NULL, 0);
23430
23431 ;
23432 return 0;
23433 }
23434
23435 _ACEOF
23436
23437
23438
23439 cat - <<_ACEOF >conftest.h
23440
23441 _ACEOF
23442
23443
23444 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
23445 echo "obj-m := conftest.o" >build/Makefile
23446 modpost_flag=''
23447 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
23448 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
23449 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23450 (eval $ac_try) 2>&5
23451 ac_status=$?
23452 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23453 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
23454 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23455 (eval $ac_try) 2>&5
23456 ac_status=$?
23457 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23458 test $ac_status = 0; }; }; then :
23459 rc=0
23460 else
23461 $as_echo "$as_me: failed program was:" >&5
23462 sed 's/^/| /' conftest.$ac_ext >&5
23463 rc=1
23464
23465
23466 fi
23467 rm -Rf build
23468
23469
23470 if test $rc -ne 0; then :
23471
23472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23473 $as_echo "no" >&6; }
23474
23475 else
23476 if test "x$enable_linux_builtin" != xyes; then
23477
23478 grep -q -E '[[:space:]]generic_start_io_acct[[:space:]]' \
23479 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
23480 rc=$?
23481 if test $rc -ne 0; then
23482 export=0
23483 for file in block/bio.c; do
23484 grep -q -E "EXPORT_SYMBOL.*(generic_start_io_acct)" \
23485 "$LINUX/$file" 2>/dev/null
23486 rc=$?
23487 if test $rc -eq 0; then
23488 export=1
23489 break;
23490 fi
23491 done
23492 if test $export -eq 0; then :
23493 rc=1
23494 else :
23495 rc=0
23496 fi
23497 else :
23498 rc=0
23499 fi
23500
23501 fi
23502 if test $rc -ne 0; then :
23503
23504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23505 $as_echo "no" >&6; }
23506
23507 else :
23508
23509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23510 $as_echo "yes" >&6; }
23511
23512 $as_echo "#define HAVE_GENERIC_IO_ACCT 1" >>confdefs.h
23513
23514
23515 fi
23516 fi
23517
23518
23519
23520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->rename() wants flags" >&5
23521 $as_echo_n "checking whether iops->rename() wants flags... " >&6; }
23522
23523
23524 cat confdefs.h - <<_ACEOF >conftest.c
23525
23526
23527 #include <linux/fs.h>
23528 int rename_fn(struct inode *sip, struct dentry *sdp,
23529 struct inode *tip, struct dentry *tdp,
23530 unsigned int flags) { return 0; }
23531
23532 static const struct inode_operations
23533 iops __attribute__ ((unused)) = {
23534 .rename = rename_fn,
23535 };
23536
23537 int
23538 main (void)
23539 {
23540
23541
23542 ;
23543 return 0;
23544 }
23545
23546 _ACEOF
23547
23548
23549
23550 cat - <<_ACEOF >conftest.h
23551
23552 _ACEOF
23553
23554
23555 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
23556 echo "obj-m := conftest.o" >build/Makefile
23557 modpost_flag=''
23558 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
23559 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
23560 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23561 (eval $ac_try) 2>&5
23562 ac_status=$?
23563 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23564 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
23565 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23566 (eval $ac_try) 2>&5
23567 ac_status=$?
23568 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23569 test $ac_status = 0; }; }; then :
23570
23571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23572 $as_echo "yes" >&6; }
23573
23574 $as_echo "#define HAVE_RENAME_WANTS_FLAGS 1" >>confdefs.h
23575
23576
23577 else
23578 $as_echo "$as_me: failed program was:" >&5
23579 sed 's/^/| /' conftest.$ac_ext >&5
23580
23581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23582 $as_echo "no" >&6; }
23583
23584
23585
23586 fi
23587 rm -Rf build
23588
23589
23590
23591
23592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether generic_setxattr() exists" >&5
23593 $as_echo_n "checking whether generic_setxattr() exists... " >&6; }
23594
23595
23596 cat confdefs.h - <<_ACEOF >conftest.c
23597
23598
23599 #include <linux/fs.h>
23600 #include <linux/xattr.h>
23601
23602 static const struct inode_operations
23603 iops __attribute__ ((unused)) = {
23604 .setxattr = generic_setxattr
23605 };
23606
23607 int
23608 main (void)
23609 {
23610
23611
23612 ;
23613 return 0;
23614 }
23615
23616 _ACEOF
23617
23618
23619
23620 cat - <<_ACEOF >conftest.h
23621
23622 _ACEOF
23623
23624
23625 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
23626 echo "obj-m := conftest.o" >build/Makefile
23627 modpost_flag=''
23628 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
23629 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
23630 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23631 (eval $ac_try) 2>&5
23632 ac_status=$?
23633 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23634 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
23635 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23636 (eval $ac_try) 2>&5
23637 ac_status=$?
23638 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23639 test $ac_status = 0; }; }; then :
23640
23641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23642 $as_echo "yes" >&6; }
23643
23644 $as_echo "#define HAVE_GENERIC_SETXATTR 1" >>confdefs.h
23645
23646
23647 else
23648 $as_echo "$as_me: failed program was:" >&5
23649 sed 's/^/| /' conftest.$ac_ext >&5
23650
23651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23652 $as_echo "no" >&6; }
23653
23654
23655
23656 fi
23657 rm -Rf build
23658
23659
23660
23661
23662 if test "$LINUX_OBJ" != "$LINUX"; then :
23663
23664 KERNELMAKE_PARAMS="$KERNELMAKE_PARAMS O=$LINUX_OBJ"
23665
23666 fi
23667
23668
23669
23670 KERNELCPPFLAGS="$KERNELCPPFLAGS $NO_UNUSED_BUT_SET_VARIABLE"
23671 KERNELCPPFLAGS="$KERNELCPPFLAGS $NO_BOOL_COMPARE"
23672 KERNELCPPFLAGS="$KERNELCPPFLAGS -DHAVE_SPL -D_KERNEL"
23673 KERNELCPPFLAGS="$KERNELCPPFLAGS -DTEXT_DOMAIN=\\\"zfs-linux-kernel\\\""
23674
23675
23676 ;;
23677 user)
23678
23679
23680 # Check whether --with-mounthelperdir was given.
23681 if test "${with_mounthelperdir+set}" = set; then :
23682 withval=$with_mounthelperdir; mounthelperdir=$withval
23683 else
23684 mounthelperdir=/sbin
23685 fi
23686
23687
23688
23689
23690
23691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for udev directories" >&5
23692 $as_echo_n "checking for udev directories... " >&6; }
23693
23694 # Check whether --with-udevdir was given.
23695 if test "${with_udevdir+set}" = set; then :
23696 withval=$with_udevdir; udevdir=$withval
23697 else
23698 udevdir=check
23699 fi
23700
23701
23702 if test "x$udevdir" = xcheck; then :
23703
23704 path1=/lib/udev
23705 path2=/usr/lib/udev
23706 default=$path2
23707
23708 if test -d "$path1"; then :
23709 udevdir="$path1"
23710 else
23711
23712 if test -d "$path2"; then :
23713 udevdir="$path2"
23714 else
23715 udevdir="$default"
23716 fi
23717
23718 fi
23719
23720 fi
23721
23722
23723 # Check whether --with-udevruledir was given.
23724 if test "${with_udevruledir+set}" = set; then :
23725 withval=$with_udevruledir; udevruledir=$withval
23726 else
23727 udevruledir="${udevdir}/rules.d"
23728 fi
23729
23730
23731
23732
23733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $udevdir;$udevruledir" >&5
23734 $as_echo "$udevdir;$udevruledir" >&6; }
23735
23736
23737 # Check whether --enable-systemd was given.
23738 if test "${enable_systemd+set}" = set; then :
23739 enableval=$enable_systemd;
23740 else
23741 enable_systemd=yes
23742 fi
23743
23744
23745
23746 # Check whether --with-systemdunitdir was given.
23747 if test "${with_systemdunitdir+set}" = set; then :
23748 withval=$with_systemdunitdir; systemdunitdir=$withval
23749 else
23750 systemdunitdir=/usr/lib/systemd/system
23751 fi
23752
23753
23754
23755 # Check whether --with-systemdpresetdir was given.
23756 if test "${with_systemdpresetdir+set}" = set; then :
23757 withval=$with_systemdpresetdir; systemdpresetdir=$withval
23758 else
23759 systemdpresetdir=/usr/lib/systemd/system-preset
23760 fi
23761
23762
23763
23764 # Check whether --with-systemdmodulesloaddir was given.
23765 if test "${with_systemdmodulesloaddir+set}" = set; then :
23766 withval=$with_systemdmodulesloaddir; systemdmoduleloaddir=$withval
23767 else
23768 systemdmodulesloaddir=/usr/lib/modules-load.d
23769 fi
23770
23771
23772
23773 if test "x$enable_systemd" = xyes; then :
23774
23775 ZFS_INIT_SYSTEMD=systemd
23776 ZFS_MODULE_LOAD=modules-load.d
23777 modulesloaddir=$systemdmodulesloaddir
23778
23779 fi
23780
23781
23782
23783
23784
23785
23786
23787
23788 # Check whether --enable-sysvinit was given.
23789 if test "${enable_sysvinit+set}" = set; then :
23790 enableval=$enable_sysvinit;
23791 else
23792 enable_sysvinit=yes
23793 fi
23794
23795
23796 if test "x$enable_sysvinit" = xyes; then :
23797 ZFS_INIT_SYSV=init.d
23798 fi
23799
23800
23801
23802
23803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dracut directory" >&5
23804 $as_echo_n "checking for dracut directory... " >&6; }
23805
23806 # Check whether --with-dracutdir was given.
23807 if test "${with_dracutdir+set}" = set; then :
23808 withval=$with_dracutdir; dracutdir=$withval
23809 else
23810 dracutdir=check
23811 fi
23812
23813
23814 if test "x$dracutdir" = xcheck; then :
23815
23816 path1=/usr/share/dracut
23817 path2=/usr/lib/dracut
23818 default=$path2
23819
23820 if test -d "$path1"; then :
23821 dracutdir="$path1"
23822 else
23823
23824 if test -d "$path2"; then :
23825 dracutdir="$path2"
23826 else
23827 dracutdir="$default"
23828 fi
23829
23830 fi
23831
23832 fi
23833
23834
23835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dracutdir" >&5
23836 $as_echo "$dracutdir" >&6; }
23837
23838
23839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for target asm dir" >&5
23840 $as_echo_n "checking for target asm dir... " >&6; }
23841 TARGET_ARCH=`echo ${target_cpu} | sed -e s/i.86/i386/`
23842
23843 case $TARGET_ARCH in
23844 i386|x86_64)
23845 TARGET_ASM_DIR=asm-${TARGET_ARCH}
23846 ;;
23847 *)
23848 TARGET_ASM_DIR=asm-generic
23849 ;;
23850 esac
23851
23852
23853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TARGET_ASM_DIR" >&5
23854 $as_echo "$TARGET_ASM_DIR" >&6; }
23855
23856
23857 ZLIB=
23858
23859 ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
23860 if test "x$ac_cv_header_zlib_h" = xyes; then :
23861
23862 else
23863 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23864 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23865 as_fn_error $? "
23866 *** zlib.h missing, zlib-devel package required
23867 See \`config.log' for more details" "$LINENO" 5; }
23868 fi
23869
23870
23871
23872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compress2 in -lz" >&5
23873 $as_echo_n "checking for compress2 in -lz... " >&6; }
23874 if ${ac_cv_lib_z_compress2+:} false; then :
23875 $as_echo_n "(cached) " >&6
23876 else
23877 ac_check_lib_save_LIBS=$LIBS
23878 LIBS="-lz $LIBS"
23879 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23880 /* end confdefs.h. */
23881
23882 /* Override any GCC internal prototype to avoid an error.
23883 Use char because int might match the return type of a GCC
23884 builtin and then its argument prototype would still apply. */
23885 #ifdef __cplusplus
23886 extern "C"
23887 #endif
23888 char compress2 ();
23889 int
23890 main ()
23891 {
23892 return compress2 ();
23893 ;
23894 return 0;
23895 }
23896 _ACEOF
23897 if ac_fn_c_try_link "$LINENO"; then :
23898 ac_cv_lib_z_compress2=yes
23899 else
23900 ac_cv_lib_z_compress2=no
23901 fi
23902 rm -f core conftest.err conftest.$ac_objext \
23903 conftest$ac_exeext conftest.$ac_ext
23904 LIBS=$ac_check_lib_save_LIBS
23905 fi
23906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_compress2" >&5
23907 $as_echo "$ac_cv_lib_z_compress2" >&6; }
23908 if test "x$ac_cv_lib_z_compress2" = xyes; then :
23909 cat >>confdefs.h <<_ACEOF
23910 #define HAVE_LIBZ 1
23911 _ACEOF
23912
23913 LIBS="-lz $LIBS"
23914
23915 else
23916 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23917 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23918 as_fn_error $? "
23919 *** compress2() missing, zlib-devel package required
23920 See \`config.log' for more details" "$LINENO" 5; }
23921 fi
23922
23923
23924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uncompress in -lz" >&5
23925 $as_echo_n "checking for uncompress in -lz... " >&6; }
23926 if ${ac_cv_lib_z_uncompress+:} false; then :
23927 $as_echo_n "(cached) " >&6
23928 else
23929 ac_check_lib_save_LIBS=$LIBS
23930 LIBS="-lz $LIBS"
23931 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23932 /* end confdefs.h. */
23933
23934 /* Override any GCC internal prototype to avoid an error.
23935 Use char because int might match the return type of a GCC
23936 builtin and then its argument prototype would still apply. */
23937 #ifdef __cplusplus
23938 extern "C"
23939 #endif
23940 char uncompress ();
23941 int
23942 main ()
23943 {
23944 return uncompress ();
23945 ;
23946 return 0;
23947 }
23948 _ACEOF
23949 if ac_fn_c_try_link "$LINENO"; then :
23950 ac_cv_lib_z_uncompress=yes
23951 else
23952 ac_cv_lib_z_uncompress=no
23953 fi
23954 rm -f core conftest.err conftest.$ac_objext \
23955 conftest$ac_exeext conftest.$ac_ext
23956 LIBS=$ac_check_lib_save_LIBS
23957 fi
23958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_uncompress" >&5
23959 $as_echo "$ac_cv_lib_z_uncompress" >&6; }
23960 if test "x$ac_cv_lib_z_uncompress" = xyes; then :
23961 cat >>confdefs.h <<_ACEOF
23962 #define HAVE_LIBZ 1
23963 _ACEOF
23964
23965 LIBS="-lz $LIBS"
23966
23967 else
23968 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23969 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23970 as_fn_error $? "
23971 *** uncompress() missing, zlib-devel package required
23972 See \`config.log' for more details" "$LINENO" 5; }
23973 fi
23974
23975
23976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for crc32 in -lz" >&5
23977 $as_echo_n "checking for crc32 in -lz... " >&6; }
23978 if ${ac_cv_lib_z_crc32+:} false; then :
23979 $as_echo_n "(cached) " >&6
23980 else
23981 ac_check_lib_save_LIBS=$LIBS
23982 LIBS="-lz $LIBS"
23983 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23984 /* end confdefs.h. */
23985
23986 /* Override any GCC internal prototype to avoid an error.
23987 Use char because int might match the return type of a GCC
23988 builtin and then its argument prototype would still apply. */
23989 #ifdef __cplusplus
23990 extern "C"
23991 #endif
23992 char crc32 ();
23993 int
23994 main ()
23995 {
23996 return crc32 ();
23997 ;
23998 return 0;
23999 }
24000 _ACEOF
24001 if ac_fn_c_try_link "$LINENO"; then :
24002 ac_cv_lib_z_crc32=yes
24003 else
24004 ac_cv_lib_z_crc32=no
24005 fi
24006 rm -f core conftest.err conftest.$ac_objext \
24007 conftest$ac_exeext conftest.$ac_ext
24008 LIBS=$ac_check_lib_save_LIBS
24009 fi
24010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_crc32" >&5
24011 $as_echo "$ac_cv_lib_z_crc32" >&6; }
24012 if test "x$ac_cv_lib_z_crc32" = xyes; then :
24013 cat >>confdefs.h <<_ACEOF
24014 #define HAVE_LIBZ 1
24015 _ACEOF
24016
24017 LIBS="-lz $LIBS"
24018
24019 else
24020 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
24021 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24022 as_fn_error $? "
24023 *** crc32() missing, zlib-devel package required
24024 See \`config.log' for more details" "$LINENO" 5; }
24025 fi
24026
24027
24028 ZLIB="-lz"
24029
24030
24031 $as_echo "#define HAVE_ZLIB 1" >>confdefs.h
24032
24033
24034
24035 LIBUUID=
24036
24037 ac_fn_c_check_header_mongrel "$LINENO" "uuid/uuid.h" "ac_cv_header_uuid_uuid_h" "$ac_includes_default"
24038 if test "x$ac_cv_header_uuid_uuid_h" = xyes; then :
24039
24040 else
24041 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
24042 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24043 as_fn_error $? "
24044 *** uuid/uuid.h missing, libuuid-devel package required
24045 See \`config.log' for more details" "$LINENO" 5; }
24046 fi
24047
24048
24049
24050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uuid_generate in -luuid" >&5
24051 $as_echo_n "checking for uuid_generate in -luuid... " >&6; }
24052 if ${ac_cv_lib_uuid_uuid_generate+:} false; then :
24053 $as_echo_n "(cached) " >&6
24054 else
24055 ac_check_lib_save_LIBS=$LIBS
24056 LIBS="-luuid $LIBS"
24057 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24058 /* end confdefs.h. */
24059
24060 /* Override any GCC internal prototype to avoid an error.
24061 Use char because int might match the return type of a GCC
24062 builtin and then its argument prototype would still apply. */
24063 #ifdef __cplusplus
24064 extern "C"
24065 #endif
24066 char uuid_generate ();
24067 int
24068 main ()
24069 {
24070 return uuid_generate ();
24071 ;
24072 return 0;
24073 }
24074 _ACEOF
24075 if ac_fn_c_try_link "$LINENO"; then :
24076 ac_cv_lib_uuid_uuid_generate=yes
24077 else
24078 ac_cv_lib_uuid_uuid_generate=no
24079 fi
24080 rm -f core conftest.err conftest.$ac_objext \
24081 conftest$ac_exeext conftest.$ac_ext
24082 LIBS=$ac_check_lib_save_LIBS
24083 fi
24084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_uuid_uuid_generate" >&5
24085 $as_echo "$ac_cv_lib_uuid_uuid_generate" >&6; }
24086 if test "x$ac_cv_lib_uuid_uuid_generate" = xyes; then :
24087 cat >>confdefs.h <<_ACEOF
24088 #define HAVE_LIBUUID 1
24089 _ACEOF
24090
24091 LIBS="-luuid $LIBS"
24092
24093 else
24094 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
24095 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24096 as_fn_error $? "
24097 *** uuid_generate() missing, libuuid-devel package required
24098 See \`config.log' for more details" "$LINENO" 5; }
24099 fi
24100
24101
24102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uuid_is_null in -luuid" >&5
24103 $as_echo_n "checking for uuid_is_null in -luuid... " >&6; }
24104 if ${ac_cv_lib_uuid_uuid_is_null+:} false; then :
24105 $as_echo_n "(cached) " >&6
24106 else
24107 ac_check_lib_save_LIBS=$LIBS
24108 LIBS="-luuid $LIBS"
24109 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24110 /* end confdefs.h. */
24111
24112 /* Override any GCC internal prototype to avoid an error.
24113 Use char because int might match the return type of a GCC
24114 builtin and then its argument prototype would still apply. */
24115 #ifdef __cplusplus
24116 extern "C"
24117 #endif
24118 char uuid_is_null ();
24119 int
24120 main ()
24121 {
24122 return uuid_is_null ();
24123 ;
24124 return 0;
24125 }
24126 _ACEOF
24127 if ac_fn_c_try_link "$LINENO"; then :
24128 ac_cv_lib_uuid_uuid_is_null=yes
24129 else
24130 ac_cv_lib_uuid_uuid_is_null=no
24131 fi
24132 rm -f core conftest.err conftest.$ac_objext \
24133 conftest$ac_exeext conftest.$ac_ext
24134 LIBS=$ac_check_lib_save_LIBS
24135 fi
24136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_uuid_uuid_is_null" >&5
24137 $as_echo "$ac_cv_lib_uuid_uuid_is_null" >&6; }
24138 if test "x$ac_cv_lib_uuid_uuid_is_null" = xyes; then :
24139 cat >>confdefs.h <<_ACEOF
24140 #define HAVE_LIBUUID 1
24141 _ACEOF
24142
24143 LIBS="-luuid $LIBS"
24144
24145 else
24146 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
24147 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24148 as_fn_error $? "
24149 *** uuid_is_null() missing, libuuid-devel package required
24150 See \`config.log' for more details" "$LINENO" 5; }
24151 fi
24152
24153
24154 LIBUUID="-luuid"
24155
24156
24157 $as_echo "#define HAVE_LIBUUID 1" >>confdefs.h
24158
24159
24160
24161
24162 # Check whether --with-blkid was given.
24163 if test "${with_blkid+set}" = set; then :
24164 withval=$with_blkid;
24165 else
24166 with_blkid=check
24167 fi
24168
24169
24170 LIBBLKID=
24171 if test "x$with_blkid" = xyes; then :
24172
24173 LIBBLKID="-lblkid"
24174
24175
24176 $as_echo "#define HAVE_LIBBLKID 1" >>confdefs.h
24177
24178
24179 fi
24180
24181 if test "x$with_blkid" = xcheck; then :
24182
24183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for blkid_get_cache in -lblkid" >&5
24184 $as_echo_n "checking for blkid_get_cache in -lblkid... " >&6; }
24185 if ${ac_cv_lib_blkid_blkid_get_cache+:} false; then :
24186 $as_echo_n "(cached) " >&6
24187 else
24188 ac_check_lib_save_LIBS=$LIBS
24189 LIBS="-lblkid $LIBS"
24190 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24191 /* end confdefs.h. */
24192
24193 /* Override any GCC internal prototype to avoid an error.
24194 Use char because int might match the return type of a GCC
24195 builtin and then its argument prototype would still apply. */
24196 #ifdef __cplusplus
24197 extern "C"
24198 #endif
24199 char blkid_get_cache ();
24200 int
24201 main ()
24202 {
24203 return blkid_get_cache ();
24204 ;
24205 return 0;
24206 }
24207 _ACEOF
24208 if ac_fn_c_try_link "$LINENO"; then :
24209 ac_cv_lib_blkid_blkid_get_cache=yes
24210 else
24211 ac_cv_lib_blkid_blkid_get_cache=no
24212 fi
24213 rm -f core conftest.err conftest.$ac_objext \
24214 conftest$ac_exeext conftest.$ac_ext
24215 LIBS=$ac_check_lib_save_LIBS
24216 fi
24217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_blkid_blkid_get_cache" >&5
24218 $as_echo "$ac_cv_lib_blkid_blkid_get_cache" >&6; }
24219 if test "x$ac_cv_lib_blkid_blkid_get_cache" = xyes; then :
24220
24221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for blkid zfs support" >&5
24222 $as_echo_n "checking for blkid zfs support... " >&6; }
24223
24224 ZFS_DEV=`mktemp`
24225 truncate -s 64M $ZFS_DEV
24226 echo -en "\x0c\xb1\xba\0\0\0\0\0" | \
24227 dd of=$ZFS_DEV bs=1k count=8 \
24228 seek=128 conv=notrunc &>/dev/null \
24229 >/dev/null 2>/dev/null
24230 echo -en "\x0c\xb1\xba\0\0\0\0\0" | \
24231 dd of=$ZFS_DEV bs=1k count=8 \
24232 seek=132 conv=notrunc &>/dev/null \
24233 >/dev/null 2>/dev/null
24234 echo -en "\x0c\xb1\xba\0\0\0\0\0" | \
24235 dd of=$ZFS_DEV bs=1k count=8 \
24236 seek=136 conv=notrunc &>/dev/null \
24237 >/dev/null 2>/dev/null
24238 echo -en "\x0c\xb1\xba\0\0\0\0\0" | \
24239 dd of=$ZFS_DEV bs=1k count=8 \
24240 seek=140 conv=notrunc &>/dev/null \
24241 >/dev/null 2>/dev/null
24242
24243 saved_LIBS="$LIBS"
24244 LIBS="-lblkid"
24245
24246 if test "$cross_compiling" = yes; then :
24247 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
24248 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24249 as_fn_error $? "cannot run test program while cross compiling
24250 See \`config.log' for more details" "$LINENO" 5; }
24251 else
24252 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24253 /* end confdefs.h. */
24254
24255 #include <stdio.h>
24256 #include <stdlib.h>
24257 #include <blkid/blkid.h>
24258
24259 int
24260 main ()
24261 {
24262
24263 blkid_cache cache;
24264 char *value;
24265
24266 if (blkid_get_cache(&cache, NULL) < 0)
24267 return 1;
24268
24269 value = blkid_get_tag_value(cache, "TYPE",
24270 "$ZFS_DEV");
24271 if (!value) {
24272 blkid_put_cache(cache);
24273 return 2;
24274 }
24275
24276 if (strcmp(value, "zfs_member")) {
24277 free(value);
24278 blkid_put_cache(cache);
24279 return 0;
24280 }
24281
24282 free(value);
24283 blkid_put_cache(cache);
24284
24285 ;
24286 return 0;
24287 }
24288 _ACEOF
24289 if ac_fn_c_try_run "$LINENO"; then :
24290
24291 rm -f $ZFS_DEV
24292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24293 $as_echo "yes" >&6; }
24294 LIBBLKID="-lblkid"
24295
24296
24297 $as_echo "#define HAVE_LIBBLKID 1" >>confdefs.h
24298
24299
24300 else
24301
24302 rm -f $ZFS_DEV
24303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24304 $as_echo "no" >&6; }
24305 if test "x$with_blkid" != xcheck; then :
24306 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
24307 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24308 as_fn_error $? "--with-blkid given but unavailable
24309 See \`config.log' for more details" "$LINENO" 5; }
24310 fi
24311
24312 fi
24313 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24314 conftest.$ac_objext conftest.beam conftest.$ac_ext
24315 fi
24316
24317
24318 LIBS="$saved_LIBS"
24319
24320 else
24321
24322 if test "x$with_blkid" != xcheck; then :
24323 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
24324 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24325 as_fn_error $? "--with-blkid given but unavailable
24326 See \`config.log' for more details" "$LINENO" 5; }
24327 fi
24328
24329
24330 fi
24331
24332
24333 fi
24334
24335
24336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -Wframe-larger-than=<size> support" >&5
24337 $as_echo_n "checking for -Wframe-larger-than=<size> support... " >&6; }
24338
24339 saved_flags="$CFLAGS"
24340 CFLAGS="$CFLAGS -Wframe-larger-than=1024"
24341
24342 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24343 /* end confdefs.h. */
24344
24345 int
24346 main ()
24347 {
24348
24349 ;
24350 return 0;
24351 }
24352 _ACEOF
24353 if ac_fn_c_try_compile "$LINENO"; then :
24354
24355 FRAME_LARGER_THAN=-Wframe-larger-than=1024
24356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24357 $as_echo "yes" >&6; }
24358
24359 else
24360
24361 FRAME_LARGER_THAN=
24362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24363 $as_echo "no" >&6; }
24364
24365 fi
24366 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24367
24368 CFLAGS="$saved_flags"
24369
24370
24371
24372 if test "x$runstatedir" = x; then
24373 runstatedir='${localstatedir}/run'
24374
24375 fi
24376
24377 for ac_func in mlockall
24378 do :
24379 ac_fn_c_check_func "$LINENO" "mlockall" "ac_cv_func_mlockall"
24380 if test "x$ac_cv_func_mlockall" = xyes; then :
24381 cat >>confdefs.h <<_ACEOF
24382 #define HAVE_MLOCKALL 1
24383 _ACEOF
24384
24385 fi
24386 done
24387
24388 ;;
24389 all)
24390
24391
24392 # Check whether --with-linux was given.
24393 if test "${with_linux+set}" = set; then :
24394 withval=$with_linux; kernelsrc="$withval"
24395 fi
24396
24397
24398
24399 # Check whether --with-linux-obj was given.
24400 if test "${with_linux_obj+set}" = set; then :
24401 withval=$with_linux_obj; kernelbuild="$withval"
24402 fi
24403
24404
24405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking kernel source directory" >&5
24406 $as_echo_n "checking kernel source directory... " >&6; }
24407 if test -z "$kernelsrc"; then :
24408
24409 if test -e "/lib/modules/$(uname -r)/source"; then :
24410
24411 headersdir="/lib/modules/$(uname -r)/source"
24412 sourcelink=$(readlink -f "$headersdir")
24413
24414 elif test -e "/lib/modules/$(uname -r)/build"; then :
24415
24416 headersdir="/lib/modules/$(uname -r)/build"
24417 sourcelink=$(readlink -f "$headersdir")
24418
24419 else
24420
24421 sourcelink=$(ls -1d /usr/src/kernels/* \
24422 /usr/src/linux-* \
24423 2>/dev/null | grep -v obj | tail -1)
24424
24425 fi
24426
24427 if test -n "$sourcelink" && test -e ${sourcelink}; then :
24428
24429 kernelsrc=`readlink -f ${sourcelink}`
24430
24431 else
24432
24433 kernelsrc="Not found"
24434
24435 fi
24436
24437 else
24438
24439 if test "$kernelsrc" = "NONE"; then :
24440
24441 kernsrcver=NONE
24442
24443 fi
24444
24445 fi
24446
24447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kernelsrc" >&5
24448 $as_echo "$kernelsrc" >&6; }
24449 if test ! -d "$kernelsrc"; then :
24450
24451 as_fn_error $? "
24452 *** Please make sure the kernel devel package for your distribution
24453 *** is installed and then try again. If that fails, you can specify the
24454 *** location of the kernel source with the '--with-linux=PATH' option." "$LINENO" 5
24455
24456 fi
24457
24458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking kernel build directory" >&5
24459 $as_echo_n "checking kernel build directory... " >&6; }
24460 if test -z "$kernelbuild"; then :
24461
24462 if test -e "/lib/modules/$(uname -r)/build"; then :
24463
24464 kernelbuild=`readlink -f /lib/modules/$(uname -r)/build`
24465
24466 elif test -d ${kernelsrc}-obj/${target_cpu}/${target_cpu}; then :
24467
24468 kernelbuild=${kernelsrc}-obj/${target_cpu}/${target_cpu}
24469
24470 elif test -d ${kernelsrc}-obj/${target_cpu}/default; then :
24471
24472 kernelbuild=${kernelsrc}-obj/${target_cpu}/default
24473
24474 elif test -d `dirname ${kernelsrc}`/build-${target_cpu}; then :
24475
24476 kernelbuild=`dirname ${kernelsrc}`/build-${target_cpu}
24477
24478 else
24479
24480 kernelbuild=${kernelsrc}
24481
24482 fi
24483
24484 fi
24485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kernelbuild" >&5
24486 $as_echo "$kernelbuild" >&6; }
24487
24488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking kernel source version" >&5
24489 $as_echo_n "checking kernel source version... " >&6; }
24490 utsrelease1=$kernelbuild/include/linux/version.h
24491 utsrelease2=$kernelbuild/include/linux/utsrelease.h
24492 utsrelease3=$kernelbuild/include/generated/utsrelease.h
24493 if test -r $utsrelease1 && fgrep -q UTS_RELEASE $utsrelease1; then :
24494
24495 utsrelease=linux/version.h
24496
24497 elif test -r $utsrelease2 && fgrep -q UTS_RELEASE $utsrelease2; then :
24498
24499 utsrelease=linux/utsrelease.h
24500
24501 elif test -r $utsrelease3 && fgrep -q UTS_RELEASE $utsrelease3; then :
24502
24503 utsrelease=generated/utsrelease.h
24504
24505 fi
24506
24507 if test "$utsrelease"; then :
24508
24509 kernsrcver=`(echo "#include <$utsrelease>";
24510 echo "kernsrcver=UTS_RELEASE") |
24511 cpp -I $kernelbuild/include |
24512 grep "^kernsrcver=" | cut -d \" -f 2`
24513
24514 if test -z "$kernsrcver"; then :
24515
24516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not found" >&5
24517 $as_echo "Not found" >&6; }
24518 as_fn_error $? "*** Cannot determine kernel version." "$LINENO" 5
24519
24520 fi
24521
24522 else
24523
24524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not found" >&5
24525 $as_echo "Not found" >&6; }
24526 if test "x$enable_linux_builtin" != xyes; then
24527 as_fn_error $? "*** Cannot find UTS_RELEASE definition." "$LINENO" 5
24528 else
24529 as_fn_error $? "
24530 *** Cannot find UTS_RELEASE definition.
24531 *** Please run 'make prepare' inside the kernel source tree." "$LINENO" 5
24532 fi
24533
24534 fi
24535
24536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kernsrcver" >&5
24537 $as_echo "$kernsrcver" >&6; }
24538
24539 LINUX=${kernelsrc}
24540 LINUX_OBJ=${kernelbuild}
24541 LINUX_VERSION=${kernsrcver}
24542
24543
24544
24545
24546
24547
24548 modpost=$LINUX/scripts/Makefile.modpost
24549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking kernel file name for module symbols" >&5
24550 $as_echo_n "checking kernel file name for module symbols... " >&6; }
24551 if test "x$enable_linux_builtin" != xyes -a -f "$modpost"; then :
24552
24553 if grep -q Modules.symvers $modpost; then :
24554
24555 LINUX_SYMBOLS=Modules.symvers
24556
24557 else
24558
24559 LINUX_SYMBOLS=Module.symvers
24560
24561 fi
24562
24563 if test ! -f "$LINUX_OBJ/$LINUX_SYMBOLS"; then :
24564
24565 as_fn_error $? "
24566 *** Please make sure the kernel devel package for your distribution
24567 *** is installed. If you are building with a custom kernel, make sure the
24568 *** kernel is configured, built, and the '--with-linux=PATH' configure
24569 *** option refers to the location of the kernel source." "$LINENO" 5
24570
24571 fi
24572
24573 else
24574
24575 LINUX_SYMBOLS=NONE
24576
24577 fi
24578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINUX_SYMBOLS" >&5
24579 $as_echo "$LINUX_SYMBOLS" >&6; }
24580
24581
24582
24583
24584
24585 # Check whether --with-spl was given.
24586 if test "${with_spl+set}" = set; then :
24587 withval=$with_spl; splsrc="$withval"
24588 fi
24589
24590
24591
24592 # Check whether --with-spl-obj was given.
24593 if test "${with_spl_obj+set}" = set; then :
24594 withval=$with_spl_obj; splbuild="$withval"
24595 fi
24596
24597
24598
24599 # Check whether --with-spl-timeout was given.
24600 if test "${with_spl_timeout+set}" = set; then :
24601 withval=$with_spl_timeout; timeout="$withval"
24602 else
24603 timeout=0
24604 fi
24605
24606
24607 splsrc0="/var/lib/dkms/spl/${VERSION}/build"
24608 splsrc1="/usr/local/src/spl-${VERSION}/${LINUX_VERSION}"
24609 splsrc2="/usr/local/src/spl-${VERSION}"
24610 splsrc3="/usr/src/spl-${VERSION}/${LINUX_VERSION}"
24611 splsrc4="/usr/src/spl-${VERSION}"
24612 splsrc5="../spl/"
24613 splsrc6="$LINUX"
24614
24615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking spl source directory" >&5
24616 $as_echo_n "checking spl source directory... " >&6; }
24617 if test -z "${splsrc}"; then :
24618
24619 if test -e "${splsrc0}/spl.release.in"; then :
24620
24621 splsrc=${splsrc0}
24622
24623 elif test -e "${splsrc1}/spl.release.in"; then :
24624
24625 splsrc=${splsrc1}
24626
24627 elif test -e "${splsrc2}/spl.release.in"; then :
24628
24629 splsrc=${splsrc2}
24630
24631 elif test -e "${splsrc3}/spl.release.in"; then :
24632
24633 splsrc=$(readlink -f "${splsrc3}")
24634
24635 elif test -e "${splsrc4}/spl.release.in" ; then :
24636
24637 splsrc=${splsrc4}
24638
24639 elif test -e "${splsrc5}/spl.release.in"; then :
24640
24641 splsrc=$(readlink -f "${splsrc5}")
24642
24643 elif test -e "${splsrc6}/spl.release.in" ; then :
24644
24645 splsrc=${splsrc6}
24646
24647 else
24648
24649 splsrc="Not found"
24650
24651 fi
24652
24653 else
24654
24655 if test "$splsrc" = "NONE"; then :
24656
24657 splbuild=NONE
24658 splsrcver=NONE
24659
24660 fi
24661
24662 fi
24663
24664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $splsrc" >&5
24665 $as_echo "$splsrc" >&6; }
24666 if test ! -e "$splsrc/spl.release.in"; then :
24667
24668 as_fn_error $? "
24669 *** Please make sure the kmod spl devel package for your distribution
24670 *** is installed then try again. If that fails you can specify the
24671 *** location of the spl source with the '--with-spl=PATH' option." "$LINENO" 5
24672
24673 fi
24674
24675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking spl build directory" >&5
24676 $as_echo_n "checking spl build directory... " >&6; }
24677 while true; do
24678 if test -z "$splbuild"; then :
24679
24680 if test -e "${splsrc}/${LINUX_VERSION}/spl_config.h" ; then :
24681
24682 splbuild="${splsrc}/${LINUX_VERSION}"
24683
24684 elif test -e "${splsrc}/spl_config.h" ; then :
24685
24686 splbuild="${splsrc}"
24687
24688 elif find -L "${splsrc}" -name spl_config.h 2> /dev/null | grep -wq spl_config.h ; then :
24689
24690 splbuild=$(find -L "${splsrc}" -name spl_config.h | sed 's,/spl_config.h,,')
24691
24692 else
24693
24694 splbuild="Not found"
24695
24696 fi
24697
24698 fi
24699 if test -e "$splbuild/spl_config.h" -o $timeout -le 0; then :
24700
24701 break;
24702
24703 else
24704
24705 sleep 1
24706 timeout=$((timeout-1))
24707
24708 fi
24709 done
24710
24711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $splbuild" >&5
24712 $as_echo "$splbuild" >&6; }
24713 if ! test -e "$splbuild/spl_config.h"; then :
24714
24715 as_fn_error $? "
24716 *** Please make sure the kmod spl devel <kernel> package for your
24717 *** distribution is installed then try again. If that fails you
24718 *** can specify the location of the spl objects with the
24719 *** '--with-spl-obj=PATH' option." "$LINENO" 5
24720
24721 fi
24722
24723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking spl source version" >&5
24724 $as_echo_n "checking spl source version... " >&6; }
24725 if test -r $splbuild/spl_config.h &&
24726 fgrep -q SPL_META_VERSION $splbuild/spl_config.h; then :
24727
24728
24729 splsrcver=`(echo "#include <spl_config.h>";
24730 echo "splsrcver=SPL_META_VERSION-SPL_META_RELEASE") |
24731 cpp -I $splbuild |
24732 grep "^splsrcver=" | tr -d \" | cut -d= -f2`
24733
24734 fi
24735
24736 if test -z "$splsrcver"; then :
24737
24738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not found" >&5
24739 $as_echo "Not found" >&6; }
24740 as_fn_error $? "
24741 *** Cannot determine the version of the spl source.
24742 *** Please prepare the spl source before running this script" "$LINENO" 5
24743
24744 fi
24745
24746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $splsrcver" >&5
24747 $as_echo "$splsrcver" >&6; }
24748
24749 SPL=${splsrc}
24750 SPL_OBJ=${splbuild}
24751 SPL_VERSION=${splsrcver}
24752
24753
24754
24755
24756
24757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking spl file name for module symbols" >&5
24758 $as_echo_n "checking spl file name for module symbols... " >&6; }
24759 SPL_SYMBOLS=NONE
24760
24761 while true; do
24762 if test -r $SPL_OBJ/Module.symvers; then :
24763
24764 SPL_SYMBOLS=Module.symvers
24765
24766 elif test -r $SPL_OBJ/Modules.symvers; then :
24767
24768 SPL_SYMBOLS=Modules.symvers
24769
24770 elif test -r $SPL_OBJ/module/Module.symvers; then :
24771
24772 SPL_SYMBOLS=Module.symvers
24773
24774 elif test -r $SPL_OBJ/module/Modules.symvers; then :
24775
24776 SPL_SYMBOLS=Modules.symvers
24777
24778 fi
24779
24780 if test $SPL_SYMBOLS != NONE -o $timeout -le 0; then :
24781
24782 break;
24783
24784 else
24785
24786 sleep 1
24787 timeout=$((timeout-1))
24788
24789 fi
24790 done
24791
24792 if test "$SPL_SYMBOLS" = NONE; then :
24793
24794 SPL_SYMBOLS=$LINUX_SYMBOLS
24795
24796 fi
24797
24798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SPL_SYMBOLS" >&5
24799 $as_echo "$SPL_SYMBOLS" >&6; }
24800
24801
24802
24803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether modules can be built" >&5
24804 $as_echo_n "checking whether modules can be built... " >&6; }
24805
24806
24807 cat confdefs.h - <<_ACEOF >conftest.c
24808
24809
24810 int
24811 main (void)
24812 {
24813
24814 ;
24815 return 0;
24816 }
24817
24818 _ACEOF
24819
24820
24821
24822 cat - <<_ACEOF >conftest.h
24823
24824 _ACEOF
24825
24826
24827 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
24828 echo "obj-m := conftest.o" >build/Makefile
24829 modpost_flag=''
24830 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
24831 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
24832 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24833 (eval $ac_try) 2>&5
24834 ac_status=$?
24835 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24836 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
24837 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24838 (eval $ac_try) 2>&5
24839 ac_status=$?
24840 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24841 test $ac_status = 0; }; }; then :
24842
24843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24844 $as_echo "yes" >&6; }
24845
24846 else
24847 $as_echo "$as_me: failed program was:" >&5
24848 sed 's/^/| /' conftest.$ac_ext >&5
24849
24850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24851 $as_echo "no" >&6; }
24852 if test "x$enable_linux_builtin" != xyes; then
24853 as_fn_error $? "*** Unable to build an empty module." "$LINENO" 5
24854 else
24855 as_fn_error $? "
24856 *** Unable to build an empty module.
24857 *** Please run 'make scripts' inside the kernel source tree." "$LINENO" 5
24858 fi
24859
24860
24861
24862 fi
24863 rm -Rf build
24864
24865
24866
24867
24868 if test "x$cross_compiling" != xyes; then :
24869
24870 if test "$cross_compiling" = yes; then :
24871 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
24872 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24873 as_fn_error $? "cannot run test program while cross compiling
24874 See \`config.log' for more details" "$LINENO" 5; }
24875 else
24876 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24877 /* end confdefs.h. */
24878
24879
24880 #include "$LINUX/include/linux/license.h"
24881
24882 int
24883 main ()
24884 {
24885
24886 return !license_is_gpl_compatible("$ZFS_META_LICENSE");
24887
24888 ;
24889 return 0;
24890 }
24891
24892 _ACEOF
24893 if ac_fn_c_try_run "$LINENO"; then :
24894
24895
24896 $as_echo "#define ZFS_IS_GPL_COMPATIBLE 1" >>confdefs.h
24897
24898
24899 fi
24900 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24901 conftest.$ac_objext conftest.beam conftest.$ac_ext
24902 fi
24903
24904
24905 fi
24906
24907
24908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether kernel was built with 16K or larger stacks" >&5
24909 $as_echo_n "checking whether kernel was built with 16K or larger stacks... " >&6; }
24910
24911
24912 cat confdefs.h - <<_ACEOF >conftest.c
24913
24914
24915 #include <linux/module.h>
24916
24917 int
24918 main (void)
24919 {
24920
24921 #if (THREAD_SIZE < 16384)
24922 #error "THREAD_SIZE is less than 16K"
24923 #endif
24924
24925 ;
24926 return 0;
24927 }
24928
24929 _ACEOF
24930
24931
24932
24933 cat - <<_ACEOF >conftest.h
24934
24935 _ACEOF
24936
24937
24938 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
24939 echo "obj-m := conftest.o" >build/Makefile
24940 modpost_flag=''
24941 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
24942 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
24943 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24944 (eval $ac_try) 2>&5
24945 ac_status=$?
24946 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24947 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
24948 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24949 (eval $ac_try) 2>&5
24950 ac_status=$?
24951 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24952 test $ac_status = 0; }; }; then :
24953
24954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24955 $as_echo "yes" >&6; }
24956
24957 $as_echo "#define HAVE_LARGE_STACKS 1" >>confdefs.h
24958
24959
24960 else
24961 $as_echo "$as_me: failed program was:" >&5
24962 sed 's/^/| /' conftest.$ac_ext >&5
24963
24964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24965 $as_echo "no" >&6; }
24966
24967
24968
24969 fi
24970 rm -Rf build
24971
24972
24973
24974
24975
24976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether kernel was built with CONFIG_DEBUG_LOCK_ALLOC" >&5
24977 $as_echo_n "checking whether kernel was built with CONFIG_DEBUG_LOCK_ALLOC... " >&6; }
24978
24979
24980 cat confdefs.h - <<_ACEOF >conftest.c
24981
24982
24983 #include <linux/module.h>
24984
24985 int
24986 main (void)
24987 {
24988
24989 #ifndef CONFIG_DEBUG_LOCK_ALLOC
24990 #error CONFIG_DEBUG_LOCK_ALLOC not #defined
24991 #endif
24992
24993 ;
24994 return 0;
24995 }
24996
24997 _ACEOF
24998
24999
25000
25001 cat - <<_ACEOF >conftest.h
25002
25003 _ACEOF
25004
25005
25006 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
25007 echo "obj-m := conftest.o" >build/Makefile
25008 modpost_flag=''
25009 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
25010 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
25011 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25012 (eval $ac_try) 2>&5
25013 ac_status=$?
25014 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25015 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
25016 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25017 (eval $ac_try) 2>&5
25018 ac_status=$?
25019 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25020 test $ac_status = 0; }; }; then :
25021
25022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25023 $as_echo "yes" >&6; }
25024
25025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mutex_lock() is GPL-only" >&5
25026 $as_echo_n "checking whether mutex_lock() is GPL-only... " >&6; }
25027 tmp_flags="$EXTRA_KCFLAGS"
25028
25029
25030 cat confdefs.h - <<_ACEOF >conftest.c
25031
25032
25033 #include <linux/module.h>
25034 #include <linux/mutex.h>
25035
25036 MODULE_LICENSE("$ZFS_META_LICENSE");
25037
25038 int
25039 main (void)
25040 {
25041
25042 struct mutex lock;
25043
25044 mutex_init(&lock);
25045 mutex_lock(&lock);
25046 mutex_unlock(&lock);
25047
25048 ;
25049 return 0;
25050 }
25051
25052 _ACEOF
25053
25054
25055
25056 cat - <<_ACEOF >conftest.h
25057
25058 _ACEOF
25059
25060
25061 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
25062 echo "obj-m := conftest.o" >build/Makefile
25063 modpost_flag=''
25064 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
25065 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
25066 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25067 (eval $ac_try) 2>&5
25068 ac_status=$?
25069 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25070 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
25071 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25072 (eval $ac_try) 2>&5
25073 ac_status=$?
25074 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25075 test $ac_status = 0; }; }; then :
25076
25077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25078 $as_echo "no" >&6; }
25079
25080 else
25081 $as_echo "$as_me: failed program was:" >&5
25082 sed 's/^/| /' conftest.$ac_ext >&5
25083
25084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25085 $as_echo "yes" >&6; }
25086 as_fn_error $? "
25087 *** Kernel built with CONFIG_DEBUG_LOCK_ALLOC which is incompatible
25088 *** with the CDDL license and will prevent the module linking stage
25089 *** from succeeding. You must rebuild your kernel without this
25090 *** option enabled." "$LINENO" 5
25091
25092
25093
25094 fi
25095 rm -Rf build
25096
25097
25098 EXTRA_KCFLAGS="$tmp_flags"
25099
25100
25101 else
25102 $as_echo "$as_me: failed program was:" >&5
25103 sed 's/^/| /' conftest.$ac_ext >&5
25104
25105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25106 $as_echo "no" >&6; }
25107
25108
25109
25110
25111 fi
25112 rm -Rf build
25113
25114
25115
25116
25117
25118
25119 tmp_flags="$EXTRA_KCFLAGS"
25120 EXTRA_KCFLAGS="-I\$(src)"
25121
25122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether DECLARE_EVENT_CLASS() is available" >&5
25123 $as_echo_n "checking whether DECLARE_EVENT_CLASS() is available... " >&6; }
25124
25125
25126 cat confdefs.h - <<_ACEOF >conftest.c
25127
25128
25129 #include <linux/module.h>
25130 MODULE_LICENSE(ZFS_META_LICENSE);
25131
25132 #define CREATE_TRACE_POINTS
25133 #include "conftest.h"
25134
25135 int
25136 main (void)
25137 {
25138
25139 trace_zfs_autoconf_event_one(1UL);
25140 trace_zfs_autoconf_event_two(2UL);
25141
25142 ;
25143 return 0;
25144 }
25145
25146 _ACEOF
25147
25148
25149
25150 cat - <<_ACEOF >conftest.h
25151
25152 #if !defined(_CONFTEST_H) || defined(TRACE_HEADER_MULTI_READ)
25153 #define _CONFTEST_H
25154
25155 #undef TRACE_SYSTEM
25156 #define TRACE_SYSTEM zfs
25157 #include <linux/tracepoint.h>
25158
25159 DECLARE_EVENT_CLASS(zfs_autoconf_event_class,
25160 TP_PROTO(unsigned long i),
25161 TP_ARGS(i),
25162 TP_STRUCT__entry(
25163 __field(unsigned long, i)
25164 ),
25165 TP_fast_assign(
25166 __entry->i = i;
25167 ),
25168 TP_printk("i = %lu", __entry->i)
25169 );
25170
25171 #define DEFINE_AUTOCONF_EVENT(name) \
25172 DEFINE_EVENT(zfs_autoconf_event_class, name, \
25173 TP_PROTO(unsigned long i), \
25174 TP_ARGS(i))
25175 DEFINE_AUTOCONF_EVENT(zfs_autoconf_event_one);
25176 DEFINE_AUTOCONF_EVENT(zfs_autoconf_event_two);
25177
25178 #endif /* _CONFTEST_H */
25179
25180 #undef TRACE_INCLUDE_PATH
25181 #define TRACE_INCLUDE_PATH .
25182 #define TRACE_INCLUDE_FILE conftest
25183 #include <trace/define_trace.h>
25184
25185 _ACEOF
25186
25187
25188 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
25189 echo "obj-m := conftest.o" >build/Makefile
25190 modpost_flag=''
25191 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
25192 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
25193 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25194 (eval $ac_try) 2>&5
25195 ac_status=$?
25196 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25197 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
25198 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25199 (eval $ac_try) 2>&5
25200 ac_status=$?
25201 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25202 test $ac_status = 0; }; }; then :
25203
25204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25205 $as_echo "yes" >&6; }
25206
25207 $as_echo "#define HAVE_DECLARE_EVENT_CLASS 1" >>confdefs.h
25208
25209
25210 else
25211 $as_echo "$as_me: failed program was:" >&5
25212 sed 's/^/| /' conftest.$ac_ext >&5
25213
25214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25215 $as_echo "no" >&6; }
25216
25217
25218
25219 fi
25220 rm -Rf build
25221
25222
25223 EXTRA_KCFLAGS="$tmp_flags"
25224
25225
25226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether current->bio_tail exists" >&5
25227 $as_echo_n "checking whether current->bio_tail exists... " >&6; }
25228
25229
25230 cat confdefs.h - <<_ACEOF >conftest.c
25231
25232
25233 #include <linux/sched.h>
25234
25235 int
25236 main (void)
25237 {
25238
25239 current->bio_tail = (struct bio **) NULL;
25240
25241 ;
25242 return 0;
25243 }
25244
25245 _ACEOF
25246
25247
25248
25249 cat - <<_ACEOF >conftest.h
25250
25251 _ACEOF
25252
25253
25254 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
25255 echo "obj-m := conftest.o" >build/Makefile
25256 modpost_flag=''
25257 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
25258 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
25259 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25260 (eval $ac_try) 2>&5
25261 ac_status=$?
25262 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25263 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
25264 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25265 (eval $ac_try) 2>&5
25266 ac_status=$?
25267 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25268 test $ac_status = 0; }; }; then :
25269
25270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25271 $as_echo "yes" >&6; }
25272
25273 $as_echo "#define HAVE_CURRENT_BIO_TAIL 1" >>confdefs.h
25274
25275
25276 else
25277 $as_echo "$as_me: failed program was:" >&5
25278 sed 's/^/| /' conftest.$ac_ext >&5
25279
25280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25281 $as_echo "no" >&6; }
25282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether current->bio_list exists" >&5
25283 $as_echo_n "checking whether current->bio_list exists... " >&6; }
25284
25285
25286 cat confdefs.h - <<_ACEOF >conftest.c
25287
25288
25289 #include <linux/sched.h>
25290
25291 int
25292 main (void)
25293 {
25294
25295 current->bio_list = (struct bio_list *) NULL;
25296
25297 ;
25298 return 0;
25299 }
25300
25301 _ACEOF
25302
25303
25304
25305 cat - <<_ACEOF >conftest.h
25306
25307 _ACEOF
25308
25309
25310 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
25311 echo "obj-m := conftest.o" >build/Makefile
25312 modpost_flag=''
25313 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
25314 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
25315 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25316 (eval $ac_try) 2>&5
25317 ac_status=$?
25318 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25319 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
25320 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25321 (eval $ac_try) 2>&5
25322 ac_status=$?
25323 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25324 test $ac_status = 0; }; }; then :
25325
25326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25327 $as_echo "yes" >&6; }
25328
25329 $as_echo "#define HAVE_CURRENT_BIO_LIST 1" >>confdefs.h
25330
25331
25332 else
25333 $as_echo "$as_me: failed program was:" >&5
25334 sed 's/^/| /' conftest.$ac_ext >&5
25335
25336 as_fn_error $? "no - Please file a bug report at
25337 https://github.com/zfsonlinux/zfs/issues/new" "$LINENO" 5
25338
25339
25340
25341 fi
25342 rm -Rf build
25343
25344
25345
25346
25347
25348 fi
25349 rm -Rf build
25350
25351
25352
25353
25354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether submit_bio() wants 1 arg" >&5
25355 $as_echo_n "checking whether submit_bio() wants 1 arg... " >&6; }
25356
25357
25358 cat confdefs.h - <<_ACEOF >conftest.c
25359
25360
25361 #include <linux/bio.h>
25362
25363 int
25364 main (void)
25365 {
25366
25367 blk_qc_t blk_qc;
25368 struct bio *bio = NULL;
25369 blk_qc = submit_bio(bio);
25370
25371 ;
25372 return 0;
25373 }
25374
25375 _ACEOF
25376
25377
25378
25379 cat - <<_ACEOF >conftest.h
25380
25381 _ACEOF
25382
25383
25384 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
25385 echo "obj-m := conftest.o" >build/Makefile
25386 modpost_flag=''
25387 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
25388 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
25389 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25390 (eval $ac_try) 2>&5
25391 ac_status=$?
25392 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25393 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
25394 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25395 (eval $ac_try) 2>&5
25396 ac_status=$?
25397 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25398 test $ac_status = 0; }; }; then :
25399
25400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25401 $as_echo "yes" >&6; }
25402
25403 $as_echo "#define HAVE_1ARG_SUBMIT_BIO 1" >>confdefs.h
25404
25405
25406 else
25407 $as_echo "$as_me: failed program was:" >&5
25408 sed 's/^/| /' conftest.$ac_ext >&5
25409
25410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25411 $as_echo "no" >&6; }
25412
25413
25414
25415 fi
25416 rm -Rf build
25417
25418
25419
25420
25421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking block device operation prototypes" >&5
25422 $as_echo_n "checking block device operation prototypes... " >&6; }
25423 tmp_flags="$EXTRA_KCFLAGS"
25424 EXTRA_KCFLAGS="${NO_UNUSED_BUT_SET_VARIABLE}"
25425
25426
25427 cat confdefs.h - <<_ACEOF >conftest.c
25428
25429
25430 #include <linux/blkdev.h>
25431
25432 int blk_open(struct block_device *bdev, fmode_t mode)
25433 { return 0; }
25434 int blk_ioctl(struct block_device *bdev, fmode_t mode,
25435 unsigned x, unsigned long y) { return 0; }
25436 int blk_compat_ioctl(struct block_device * bdev, fmode_t mode,
25437 unsigned x, unsigned long y) { return 0; }
25438
25439 static const struct block_device_operations
25440 bops __attribute__ ((unused)) = {
25441 .open = blk_open,
25442 .release = NULL,
25443 .ioctl = blk_ioctl,
25444 .compat_ioctl = blk_compat_ioctl,
25445 };
25446
25447 int
25448 main (void)
25449 {
25450
25451
25452 ;
25453 return 0;
25454 }
25455
25456 _ACEOF
25457
25458
25459
25460 cat - <<_ACEOF >conftest.h
25461
25462 _ACEOF
25463
25464
25465 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
25466 echo "obj-m := conftest.o" >build/Makefile
25467 modpost_flag=''
25468 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
25469 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
25470 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25471 (eval $ac_try) 2>&5
25472 ac_status=$?
25473 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25474 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
25475 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25476 (eval $ac_try) 2>&5
25477 ac_status=$?
25478 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25479 test $ac_status = 0; }; }; then :
25480
25481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: struct block_device" >&5
25482 $as_echo "struct block_device" >&6; }
25483
25484 $as_echo "#define HAVE_BDEV_BLOCK_DEVICE_OPERATIONS 1" >>confdefs.h
25485
25486
25487 else
25488 $as_echo "$as_me: failed program was:" >&5
25489 sed 's/^/| /' conftest.$ac_ext >&5
25490
25491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: struct inode" >&5
25492 $as_echo "struct inode" >&6; }
25493
25494
25495
25496 fi
25497 rm -Rf build
25498
25499
25500 EXTRA_KCFLAGS="$tmp_flags"
25501
25502
25503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether block_device_operations.release is void" >&5
25504 $as_echo_n "checking whether block_device_operations.release is void... " >&6; }
25505 tmp_flags="$EXTRA_KCFLAGS"
25506 EXTRA_KCFLAGS="${NO_UNUSED_BUT_SET_VARIABLE}"
25507
25508
25509 cat confdefs.h - <<_ACEOF >conftest.c
25510
25511
25512 #include <linux/blkdev.h>
25513
25514 void blk_release(struct gendisk *g, fmode_t mode) { return; }
25515
25516 static const struct block_device_operations
25517 bops __attribute__ ((unused)) = {
25518 .open = NULL,
25519 .release = blk_release,
25520 .ioctl = NULL,
25521 .compat_ioctl = NULL,
25522 };
25523
25524 int
25525 main (void)
25526 {
25527
25528
25529 ;
25530 return 0;
25531 }
25532
25533 _ACEOF
25534
25535
25536
25537 cat - <<_ACEOF >conftest.h
25538
25539 _ACEOF
25540
25541
25542 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
25543 echo "obj-m := conftest.o" >build/Makefile
25544 modpost_flag=''
25545 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
25546 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
25547 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25548 (eval $ac_try) 2>&5
25549 ac_status=$?
25550 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25551 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
25552 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25553 (eval $ac_try) 2>&5
25554 ac_status=$?
25555 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25556 test $ac_status = 0; }; }; then :
25557
25558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: void" >&5
25559 $as_echo "void" >&6; }
25560
25561 $as_echo "#define HAVE_BLOCK_DEVICE_OPERATIONS_RELEASE_VOID 1" >>confdefs.h
25562
25563
25564 else
25565 $as_echo "$as_me: failed program was:" >&5
25566 sed 's/^/| /' conftest.$ac_ext >&5
25567
25568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: int" >&5
25569 $as_echo "int" >&6; }
25570
25571
25572
25573 fi
25574 rm -Rf build
25575
25576
25577 EXTRA_KCFLAGS="$tmp_flags"
25578
25579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether kernel defines fmode_t" >&5
25580 $as_echo_n "checking whether kernel defines fmode_t... " >&6; }
25581
25582
25583 cat confdefs.h - <<_ACEOF >conftest.c
25584
25585
25586 #include <linux/types.h>
25587
25588 int
25589 main (void)
25590 {
25591
25592 fmode_t *ptr __attribute__ ((unused));
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_FMODE_T 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 kernel defines KOBJ_NAME_LEN" >&5
25645 $as_echo_n "checking whether kernel defines KOBJ_NAME_LEN... " >&6; }
25646
25647
25648 cat confdefs.h - <<_ACEOF >conftest.c
25649
25650
25651 #include <linux/kobject.h>
25652
25653 int
25654 main (void)
25655 {
25656
25657 int val __attribute__ ((unused));
25658 val = KOBJ_NAME_LEN;
25659
25660 ;
25661 return 0;
25662 }
25663
25664 _ACEOF
25665
25666
25667
25668 cat - <<_ACEOF >conftest.h
25669
25670 _ACEOF
25671
25672
25673 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
25674 echo "obj-m := conftest.o" >build/Makefile
25675 modpost_flag=''
25676 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
25677 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
25678 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25679 (eval $ac_try) 2>&5
25680 ac_status=$?
25681 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25682 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
25683 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25684 (eval $ac_try) 2>&5
25685 ac_status=$?
25686 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25687 test $ac_status = 0; }; }; then :
25688
25689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25690 $as_echo "yes" >&6; }
25691
25692 $as_echo "#define HAVE_KOBJ_NAME_LEN 1" >>confdefs.h
25693
25694
25695 else
25696 $as_echo "$as_me: failed program was:" >&5
25697 sed 's/^/| /' conftest.$ac_ext >&5
25698
25699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25700 $as_echo "no" >&6; }
25701
25702
25703
25704 fi
25705 rm -Rf build
25706
25707
25708
25709
25710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether blkdev_get() wants 3 args" >&5
25711 $as_echo_n "checking whether blkdev_get() wants 3 args... " >&6; }
25712
25713
25714 cat confdefs.h - <<_ACEOF >conftest.c
25715
25716
25717 #include <linux/fs.h>
25718
25719 int
25720 main (void)
25721 {
25722
25723 struct block_device *bdev = NULL;
25724 (void) blkdev_get(bdev, 0, NULL);
25725
25726 ;
25727 return 0;
25728 }
25729
25730 _ACEOF
25731
25732
25733
25734 cat - <<_ACEOF >conftest.h
25735
25736 _ACEOF
25737
25738
25739 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
25740 echo "obj-m := conftest.o" >build/Makefile
25741 modpost_flag=''
25742 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
25743 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
25744 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25745 (eval $ac_try) 2>&5
25746 ac_status=$?
25747 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25748 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
25749 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25750 (eval $ac_try) 2>&5
25751 ac_status=$?
25752 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25753 test $ac_status = 0; }; }; then :
25754
25755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25756 $as_echo "yes" >&6; }
25757
25758 $as_echo "#define HAVE_3ARG_BLKDEV_GET 1" >>confdefs.h
25759
25760
25761 else
25762 $as_echo "$as_me: failed program was:" >&5
25763 sed 's/^/| /' conftest.$ac_ext >&5
25764
25765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25766 $as_echo "no" >&6; }
25767
25768
25769
25770 fi
25771 rm -Rf build
25772
25773
25774
25775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether blkdev_get_by_path() is available" >&5
25776 $as_echo_n "checking whether blkdev_get_by_path() is available... " >&6; }
25777
25778
25779
25780 cat confdefs.h - <<_ACEOF >conftest.c
25781
25782
25783 #include <linux/fs.h>
25784
25785 int
25786 main (void)
25787 {
25788
25789 blkdev_get_by_path(NULL, 0, NULL);
25790
25791 ;
25792 return 0;
25793 }
25794
25795 _ACEOF
25796
25797
25798
25799 cat - <<_ACEOF >conftest.h
25800
25801 _ACEOF
25802
25803
25804 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
25805 echo "obj-m := conftest.o" >build/Makefile
25806 modpost_flag=''
25807 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
25808 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
25809 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25810 (eval $ac_try) 2>&5
25811 ac_status=$?
25812 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25813 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
25814 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25815 (eval $ac_try) 2>&5
25816 ac_status=$?
25817 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25818 test $ac_status = 0; }; }; then :
25819 rc=0
25820 else
25821 $as_echo "$as_me: failed program was:" >&5
25822 sed 's/^/| /' conftest.$ac_ext >&5
25823 rc=1
25824
25825
25826 fi
25827 rm -Rf build
25828
25829
25830 if test $rc -ne 0; then :
25831
25832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25833 $as_echo "no" >&6; }
25834
25835 else
25836 if test "x$enable_linux_builtin" != xyes; then
25837
25838 grep -q -E '[[:space:]]blkdev_get_by_path[[:space:]]' \
25839 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
25840 rc=$?
25841 if test $rc -ne 0; then
25842 export=0
25843 for file in fs/block_dev.c; do
25844 grep -q -E "EXPORT_SYMBOL.*(blkdev_get_by_path)" \
25845 "$LINUX/$file" 2>/dev/null
25846 rc=$?
25847 if test $rc -eq 0; then
25848 export=1
25849 break;
25850 fi
25851 done
25852 if test $export -eq 0; then :
25853 rc=1
25854 else :
25855 rc=0
25856 fi
25857 else :
25858 rc=0
25859 fi
25860
25861 fi
25862 if test $rc -ne 0; then :
25863
25864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25865 $as_echo "no" >&6; }
25866
25867 else :
25868
25869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25870 $as_echo "yes" >&6; }
25871
25872 $as_echo "#define HAVE_BLKDEV_GET_BY_PATH 1" >>confdefs.h
25873
25874
25875 fi
25876 fi
25877
25878
25879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether open_bdev_exclusive() is available" >&5
25880 $as_echo_n "checking whether open_bdev_exclusive() is available... " >&6; }
25881
25882
25883
25884 cat confdefs.h - <<_ACEOF >conftest.c
25885
25886
25887 #include <linux/fs.h>
25888
25889 int
25890 main (void)
25891 {
25892
25893 open_bdev_exclusive(NULL, 0, NULL);
25894
25895 ;
25896 return 0;
25897 }
25898
25899 _ACEOF
25900
25901
25902
25903 cat - <<_ACEOF >conftest.h
25904
25905 _ACEOF
25906
25907
25908 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
25909 echo "obj-m := conftest.o" >build/Makefile
25910 modpost_flag=''
25911 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
25912 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
25913 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25914 (eval $ac_try) 2>&5
25915 ac_status=$?
25916 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25917 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
25918 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25919 (eval $ac_try) 2>&5
25920 ac_status=$?
25921 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25922 test $ac_status = 0; }; }; then :
25923 rc=0
25924 else
25925 $as_echo "$as_me: failed program was:" >&5
25926 sed 's/^/| /' conftest.$ac_ext >&5
25927 rc=1
25928
25929
25930 fi
25931 rm -Rf build
25932
25933
25934 if test $rc -ne 0; then :
25935
25936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25937 $as_echo "no" >&6; }
25938
25939 else
25940 if test "x$enable_linux_builtin" != xyes; then
25941
25942 grep -q -E '[[:space:]]open_bdev_exclusive[[:space:]]' \
25943 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
25944 rc=$?
25945 if test $rc -ne 0; then
25946 export=0
25947 for file in fs/block_dev.c; do
25948 grep -q -E "EXPORT_SYMBOL.*(open_bdev_exclusive)" \
25949 "$LINUX/$file" 2>/dev/null
25950 rc=$?
25951 if test $rc -eq 0; then
25952 export=1
25953 break;
25954 fi
25955 done
25956 if test $export -eq 0; then :
25957 rc=1
25958 else :
25959 rc=0
25960 fi
25961 else :
25962 rc=0
25963 fi
25964
25965 fi
25966 if test $rc -ne 0; then :
25967
25968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25969 $as_echo "no" >&6; }
25970
25971 else :
25972
25973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25974 $as_echo "yes" >&6; }
25975
25976 $as_echo "#define HAVE_OPEN_BDEV_EXCLUSIVE 1" >>confdefs.h
25977
25978
25979 fi
25980 fi
25981
25982
25983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lookup_bdev() wants 1 arg" >&5
25984 $as_echo_n "checking whether lookup_bdev() wants 1 arg... " >&6; }
25985
25986
25987
25988 cat confdefs.h - <<_ACEOF >conftest.c
25989
25990
25991 #include <linux/fs.h>
25992
25993 int
25994 main (void)
25995 {
25996
25997 lookup_bdev(NULL);
25998
25999 ;
26000 return 0;
26001 }
26002
26003 _ACEOF
26004
26005
26006
26007 cat - <<_ACEOF >conftest.h
26008
26009 _ACEOF
26010
26011
26012 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
26013 echo "obj-m := conftest.o" >build/Makefile
26014 modpost_flag=''
26015 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
26016 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
26017 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26018 (eval $ac_try) 2>&5
26019 ac_status=$?
26020 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26021 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
26022 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26023 (eval $ac_try) 2>&5
26024 ac_status=$?
26025 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26026 test $ac_status = 0; }; }; then :
26027 rc=0
26028 else
26029 $as_echo "$as_me: failed program was:" >&5
26030 sed 's/^/| /' conftest.$ac_ext >&5
26031 rc=1
26032
26033
26034 fi
26035 rm -Rf build
26036
26037
26038 if test $rc -ne 0; then :
26039
26040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26041 $as_echo "no" >&6; }
26042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lookup_bdev() wants 2 args" >&5
26043 $as_echo_n "checking whether lookup_bdev() wants 2 args... " >&6; }
26044
26045
26046
26047 cat confdefs.h - <<_ACEOF >conftest.c
26048
26049
26050 #include <linux/fs.h>
26051
26052 int
26053 main (void)
26054 {
26055
26056 lookup_bdev(NULL, FMODE_READ);
26057
26058 ;
26059 return 0;
26060 }
26061
26062 _ACEOF
26063
26064
26065
26066 cat - <<_ACEOF >conftest.h
26067
26068 _ACEOF
26069
26070
26071 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
26072 echo "obj-m := conftest.o" >build/Makefile
26073 modpost_flag=''
26074 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
26075 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
26076 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26077 (eval $ac_try) 2>&5
26078 ac_status=$?
26079 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26080 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
26081 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26082 (eval $ac_try) 2>&5
26083 ac_status=$?
26084 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26085 test $ac_status = 0; }; }; then :
26086 rc=0
26087 else
26088 $as_echo "$as_me: failed program was:" >&5
26089 sed 's/^/| /' conftest.$ac_ext >&5
26090 rc=1
26091
26092
26093 fi
26094 rm -Rf build
26095
26096
26097 if test $rc -ne 0; then :
26098
26099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26100 $as_echo "no" >&6; }
26101
26102 else
26103 if test "x$enable_linux_builtin" != xyes; then
26104
26105 grep -q -E '[[:space:]]lookup_bdev[[:space:]]' \
26106 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
26107 rc=$?
26108 if test $rc -ne 0; then
26109 export=0
26110 for file in fs/block_dev.c; do
26111 grep -q -E "EXPORT_SYMBOL.*(lookup_bdev)" \
26112 "$LINUX/$file" 2>/dev/null
26113 rc=$?
26114 if test $rc -eq 0; then
26115 export=1
26116 break;
26117 fi
26118 done
26119 if test $export -eq 0; then :
26120 rc=1
26121 else :
26122 rc=0
26123 fi
26124 else :
26125 rc=0
26126 fi
26127
26128 fi
26129 if test $rc -ne 0; then :
26130
26131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26132 $as_echo "no" >&6; }
26133
26134 else :
26135
26136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26137 $as_echo "yes" >&6; }
26138
26139 $as_echo "#define HAVE_2ARGS_LOOKUP_BDEV 1" >>confdefs.h
26140
26141
26142 fi
26143 fi
26144
26145
26146 else
26147 if test "x$enable_linux_builtin" != xyes; then
26148
26149 grep -q -E '[[:space:]]lookup_bdev[[:space:]]' \
26150 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
26151 rc=$?
26152 if test $rc -ne 0; then
26153 export=0
26154 for file in fs/block_dev.c; do
26155 grep -q -E "EXPORT_SYMBOL.*(lookup_bdev)" \
26156 "$LINUX/$file" 2>/dev/null
26157 rc=$?
26158 if test $rc -eq 0; then
26159 export=1
26160 break;
26161 fi
26162 done
26163 if test $export -eq 0; then :
26164 rc=1
26165 else :
26166 rc=0
26167 fi
26168 else :
26169 rc=0
26170 fi
26171
26172 fi
26173 if test $rc -ne 0; then :
26174
26175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26176 $as_echo "no" >&6; }
26177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lookup_bdev() wants 2 args" >&5
26178 $as_echo_n "checking whether lookup_bdev() wants 2 args... " >&6; }
26179
26180
26181
26182 cat confdefs.h - <<_ACEOF >conftest.c
26183
26184
26185 #include <linux/fs.h>
26186
26187 int
26188 main (void)
26189 {
26190
26191 lookup_bdev(NULL, FMODE_READ);
26192
26193 ;
26194 return 0;
26195 }
26196
26197 _ACEOF
26198
26199
26200
26201 cat - <<_ACEOF >conftest.h
26202
26203 _ACEOF
26204
26205
26206 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
26207 echo "obj-m := conftest.o" >build/Makefile
26208 modpost_flag=''
26209 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
26210 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
26211 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26212 (eval $ac_try) 2>&5
26213 ac_status=$?
26214 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26215 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
26216 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26217 (eval $ac_try) 2>&5
26218 ac_status=$?
26219 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26220 test $ac_status = 0; }; }; then :
26221 rc=0
26222 else
26223 $as_echo "$as_me: failed program was:" >&5
26224 sed 's/^/| /' conftest.$ac_ext >&5
26225 rc=1
26226
26227
26228 fi
26229 rm -Rf build
26230
26231
26232 if test $rc -ne 0; then :
26233
26234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26235 $as_echo "no" >&6; }
26236
26237 else
26238 if test "x$enable_linux_builtin" != xyes; then
26239
26240 grep -q -E '[[:space:]]lookup_bdev[[:space:]]' \
26241 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
26242 rc=$?
26243 if test $rc -ne 0; then
26244 export=0
26245 for file in fs/block_dev.c; do
26246 grep -q -E "EXPORT_SYMBOL.*(lookup_bdev)" \
26247 "$LINUX/$file" 2>/dev/null
26248 rc=$?
26249 if test $rc -eq 0; then
26250 export=1
26251 break;
26252 fi
26253 done
26254 if test $export -eq 0; then :
26255 rc=1
26256 else :
26257 rc=0
26258 fi
26259 else :
26260 rc=0
26261 fi
26262
26263 fi
26264 if test $rc -ne 0; then :
26265
26266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26267 $as_echo "no" >&6; }
26268
26269 else :
26270
26271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26272 $as_echo "yes" >&6; }
26273
26274 $as_echo "#define HAVE_2ARGS_LOOKUP_BDEV 1" >>confdefs.h
26275
26276
26277 fi
26278 fi
26279
26280
26281 else :
26282
26283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26284 $as_echo "yes" >&6; }
26285
26286 $as_echo "#define HAVE_1ARG_LOOKUP_BDEV 1" >>confdefs.h
26287
26288
26289 fi
26290 fi
26291
26292
26293
26294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether invalidate_bdev() wants 1 arg" >&5
26295 $as_echo_n "checking whether invalidate_bdev() wants 1 arg... " >&6; }
26296
26297
26298 cat confdefs.h - <<_ACEOF >conftest.c
26299
26300
26301 #include <linux/buffer_head.h>
26302
26303 int
26304 main (void)
26305 {
26306
26307 struct block_device *bdev = NULL;
26308 invalidate_bdev(bdev);
26309
26310 ;
26311 return 0;
26312 }
26313
26314 _ACEOF
26315
26316
26317
26318 cat - <<_ACEOF >conftest.h
26319
26320 _ACEOF
26321
26322
26323 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
26324 echo "obj-m := conftest.o" >build/Makefile
26325 modpost_flag=''
26326 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
26327 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
26328 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26329 (eval $ac_try) 2>&5
26330 ac_status=$?
26331 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26332 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
26333 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26334 (eval $ac_try) 2>&5
26335 ac_status=$?
26336 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26337 test $ac_status = 0; }; }; then :
26338
26339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26340 $as_echo "yes" >&6; }
26341
26342 $as_echo "#define HAVE_1ARG_INVALIDATE_BDEV 1" >>confdefs.h
26343
26344
26345 else
26346 $as_echo "$as_me: failed program was:" >&5
26347 sed 's/^/| /' conftest.$ac_ext >&5
26348
26349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26350 $as_echo "no" >&6; }
26351
26352
26353
26354 fi
26355 rm -Rf build
26356
26357
26358
26359
26360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether bdev_logical_block_size() is available" >&5
26361 $as_echo_n "checking whether bdev_logical_block_size() is available... " >&6; }
26362 tmp_flags="$EXTRA_KCFLAGS"
26363 EXTRA_KCFLAGS="${NO_UNUSED_BUT_SET_VARIABLE}"
26364
26365
26366 cat confdefs.h - <<_ACEOF >conftest.c
26367
26368
26369 #include <linux/blkdev.h>
26370
26371 int
26372 main (void)
26373 {
26374
26375 struct block_device *bdev = NULL;
26376 bdev_logical_block_size(bdev);
26377
26378 ;
26379 return 0;
26380 }
26381
26382 _ACEOF
26383
26384
26385
26386 cat - <<_ACEOF >conftest.h
26387
26388 _ACEOF
26389
26390
26391 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
26392 echo "obj-m := conftest.o" >build/Makefile
26393 modpost_flag=''
26394 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
26395 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
26396 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26397 (eval $ac_try) 2>&5
26398 ac_status=$?
26399 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26400 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
26401 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26402 (eval $ac_try) 2>&5
26403 ac_status=$?
26404 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26405 test $ac_status = 0; }; }; then :
26406
26407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26408 $as_echo "yes" >&6; }
26409
26410 $as_echo "#define HAVE_BDEV_LOGICAL_BLOCK_SIZE 1" >>confdefs.h
26411
26412
26413 else
26414 $as_echo "$as_me: failed program was:" >&5
26415 sed 's/^/| /' conftest.$ac_ext >&5
26416
26417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26418 $as_echo "no" >&6; }
26419
26420
26421
26422 fi
26423 rm -Rf build
26424
26425
26426 EXTRA_KCFLAGS="$tmp_flags"
26427
26428
26429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether bdev_physical_block_size() is available" >&5
26430 $as_echo_n "checking whether bdev_physical_block_size() is available... " >&6; }
26431 tmp_flags="$EXTRA_KCFLAGS"
26432 EXTRA_KCFLAGS="${NO_UNUSED_BUT_SET_VARIABLE}"
26433
26434
26435 cat confdefs.h - <<_ACEOF >conftest.c
26436
26437
26438 #include <linux/blkdev.h>
26439
26440 int
26441 main (void)
26442 {
26443
26444 struct block_device *bdev = NULL;
26445 bdev_physical_block_size(bdev);
26446
26447 ;
26448 return 0;
26449 }
26450
26451 _ACEOF
26452
26453
26454
26455 cat - <<_ACEOF >conftest.h
26456
26457 _ACEOF
26458
26459
26460 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
26461 echo "obj-m := conftest.o" >build/Makefile
26462 modpost_flag=''
26463 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
26464 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
26465 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26466 (eval $ac_try) 2>&5
26467 ac_status=$?
26468 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26469 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
26470 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26471 (eval $ac_try) 2>&5
26472 ac_status=$?
26473 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26474 test $ac_status = 0; }; }; then :
26475
26476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26477 $as_echo "yes" >&6; }
26478
26479 $as_echo "#define HAVE_BDEV_PHYSICAL_BLOCK_SIZE 1" >>confdefs.h
26480
26481
26482 else
26483 $as_echo "$as_me: failed program was:" >&5
26484 sed 's/^/| /' conftest.$ac_ext >&5
26485
26486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26487 $as_echo "no" >&6; }
26488
26489
26490
26491 fi
26492 rm -Rf build
26493
26494
26495 EXTRA_KCFLAGS="$tmp_flags"
26496
26497
26498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether bio has bi_iter" >&5
26499 $as_echo_n "checking whether bio has bi_iter... " >&6; }
26500
26501
26502 cat confdefs.h - <<_ACEOF >conftest.c
26503
26504
26505 #include <linux/bio.h>
26506
26507 int
26508 main (void)
26509 {
26510
26511 struct bio bio;
26512 bio.bi_iter.bi_sector = 0;
26513
26514 ;
26515 return 0;
26516 }
26517
26518 _ACEOF
26519
26520
26521
26522 cat - <<_ACEOF >conftest.h
26523
26524 _ACEOF
26525
26526
26527 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
26528 echo "obj-m := conftest.o" >build/Makefile
26529 modpost_flag=''
26530 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
26531 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
26532 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26533 (eval $ac_try) 2>&5
26534 ac_status=$?
26535 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26536 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
26537 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26538 (eval $ac_try) 2>&5
26539 ac_status=$?
26540 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26541 test $ac_status = 0; }; }; then :
26542
26543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26544 $as_echo "yes" >&6; }
26545
26546 $as_echo "#define HAVE_BIO_BVEC_ITER 1" >>confdefs.h
26547
26548
26549 else
26550 $as_echo "$as_me: failed program was:" >&5
26551 sed 's/^/| /' conftest.$ac_ext >&5
26552
26553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26554 $as_echo "no" >&6; }
26555
26556
26557
26558 fi
26559 rm -Rf build
26560
26561
26562
26563
26564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether BIO_RW_FAILFAST_* are defined" >&5
26565 $as_echo_n "checking whether BIO_RW_FAILFAST_* are defined... " >&6; }
26566
26567
26568 cat confdefs.h - <<_ACEOF >conftest.c
26569
26570
26571 #include <linux/bio.h>
26572
26573 int
26574 main (void)
26575 {
26576
26577 int flags __attribute__ ((unused));
26578 flags = ((1 << BIO_RW_FAILFAST_DEV) |
26579 (1 << BIO_RW_FAILFAST_TRANSPORT) |
26580 (1 << BIO_RW_FAILFAST_DRIVER));
26581
26582 ;
26583 return 0;
26584 }
26585
26586 _ACEOF
26587
26588
26589
26590 cat - <<_ACEOF >conftest.h
26591
26592 _ACEOF
26593
26594
26595 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
26596 echo "obj-m := conftest.o" >build/Makefile
26597 modpost_flag=''
26598 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
26599 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
26600 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26601 (eval $ac_try) 2>&5
26602 ac_status=$?
26603 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26604 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
26605 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26606 (eval $ac_try) 2>&5
26607 ac_status=$?
26608 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26609 test $ac_status = 0; }; }; then :
26610
26611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26612 $as_echo "yes" >&6; }
26613
26614 $as_echo "#define HAVE_BIO_RW_FAILFAST_DTD 1" >>confdefs.h
26615
26616
26617 else
26618 $as_echo "$as_me: failed program was:" >&5
26619 sed 's/^/| /' conftest.$ac_ext >&5
26620
26621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26622 $as_echo "no" >&6; }
26623
26624
26625
26626 fi
26627 rm -Rf build
26628
26629
26630
26631
26632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether REQ_FAILFAST_MASK is defined" >&5
26633 $as_echo_n "checking whether REQ_FAILFAST_MASK is defined... " >&6; }
26634
26635
26636 cat confdefs.h - <<_ACEOF >conftest.c
26637
26638
26639 #include <linux/bio.h>
26640
26641 int
26642 main (void)
26643 {
26644
26645 int flags __attribute__ ((unused));
26646 flags = REQ_FAILFAST_MASK;
26647
26648 ;
26649 return 0;
26650 }
26651
26652 _ACEOF
26653
26654
26655
26656 cat - <<_ACEOF >conftest.h
26657
26658 _ACEOF
26659
26660
26661 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
26662 echo "obj-m := conftest.o" >build/Makefile
26663 modpost_flag=''
26664 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
26665 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
26666 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26667 (eval $ac_try) 2>&5
26668 ac_status=$?
26669 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26670 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
26671 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26672 (eval $ac_try) 2>&5
26673 ac_status=$?
26674 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26675 test $ac_status = 0; }; }; then :
26676
26677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26678 $as_echo "yes" >&6; }
26679
26680 $as_echo "#define HAVE_REQ_FAILFAST_MASK 1" >>confdefs.h
26681
26682
26683 else
26684 $as_echo "$as_me: failed program was:" >&5
26685 sed 's/^/| /' conftest.$ac_ext >&5
26686
26687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26688 $as_echo "no" >&6; }
26689
26690
26691
26692 fi
26693 rm -Rf build
26694
26695
26696
26697
26698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether REQ_OP_DISCARD is defined" >&5
26699 $as_echo_n "checking whether REQ_OP_DISCARD is defined... " >&6; }
26700
26701
26702 cat confdefs.h - <<_ACEOF >conftest.c
26703
26704
26705 #include <linux/blk_types.h>
26706
26707 int
26708 main (void)
26709 {
26710
26711 int op __attribute__ ((unused)) = REQ_OP_DISCARD;
26712
26713 ;
26714 return 0;
26715 }
26716
26717 _ACEOF
26718
26719
26720
26721 cat - <<_ACEOF >conftest.h
26722
26723 _ACEOF
26724
26725
26726 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
26727 echo "obj-m := conftest.o" >build/Makefile
26728 modpost_flag=''
26729 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
26730 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
26731 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26732 (eval $ac_try) 2>&5
26733 ac_status=$?
26734 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26735 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
26736 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26737 (eval $ac_try) 2>&5
26738 ac_status=$?
26739 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26740 test $ac_status = 0; }; }; then :
26741
26742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26743 $as_echo "yes" >&6; }
26744
26745 $as_echo "#define HAVE_REQ_OP_DISCARD 1" >>confdefs.h
26746
26747
26748 else
26749 $as_echo "$as_me: failed program was:" >&5
26750 sed 's/^/| /' conftest.$ac_ext >&5
26751
26752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26753 $as_echo "no" >&6; }
26754
26755
26756
26757 fi
26758 rm -Rf build
26759
26760
26761
26762
26763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether REQ_OP_SECURE_ERASE is defined" >&5
26764 $as_echo_n "checking whether REQ_OP_SECURE_ERASE is defined... " >&6; }
26765
26766
26767 cat confdefs.h - <<_ACEOF >conftest.c
26768
26769
26770 #include <linux/blk_types.h>
26771
26772 int
26773 main (void)
26774 {
26775
26776 int op __attribute__ ((unused)) = REQ_OP_SECURE_ERASE;
26777
26778 ;
26779 return 0;
26780 }
26781
26782 _ACEOF
26783
26784
26785
26786 cat - <<_ACEOF >conftest.h
26787
26788 _ACEOF
26789
26790
26791 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
26792 echo "obj-m := conftest.o" >build/Makefile
26793 modpost_flag=''
26794 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
26795 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
26796 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26797 (eval $ac_try) 2>&5
26798 ac_status=$?
26799 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26800 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
26801 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26802 (eval $ac_try) 2>&5
26803 ac_status=$?
26804 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26805 test $ac_status = 0; }; }; then :
26806
26807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26808 $as_echo "yes" >&6; }
26809
26810 $as_echo "#define HAVE_REQ_OP_SECURE_ERASE 1" >>confdefs.h
26811
26812
26813 else
26814 $as_echo "$as_me: failed program was:" >&5
26815 sed 's/^/| /' conftest.$ac_ext >&5
26816
26817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26818 $as_echo "no" >&6; }
26819
26820
26821
26822 fi
26823 rm -Rf build
26824
26825
26826
26827
26828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether REQ_OP_FLUSH is defined" >&5
26829 $as_echo_n "checking whether REQ_OP_FLUSH is defined... " >&6; }
26830
26831
26832 cat confdefs.h - <<_ACEOF >conftest.c
26833
26834
26835 #include <linux/blk_types.h>
26836
26837 int
26838 main (void)
26839 {
26840
26841 int op __attribute__ ((unused)) = REQ_OP_FLUSH;
26842
26843 ;
26844 return 0;
26845 }
26846
26847 _ACEOF
26848
26849
26850
26851 cat - <<_ACEOF >conftest.h
26852
26853 _ACEOF
26854
26855
26856 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
26857 echo "obj-m := conftest.o" >build/Makefile
26858 modpost_flag=''
26859 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
26860 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
26861 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26862 (eval $ac_try) 2>&5
26863 ac_status=$?
26864 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26865 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
26866 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26867 (eval $ac_try) 2>&5
26868 ac_status=$?
26869 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26870 test $ac_status = 0; }; }; then :
26871
26872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26873 $as_echo "yes" >&6; }
26874
26875 $as_echo "#define HAVE_REQ_OP_FLUSH 1" >>confdefs.h
26876
26877
26878 else
26879 $as_echo "$as_me: failed program was:" >&5
26880 sed 's/^/| /' conftest.$ac_ext >&5
26881
26882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26883 $as_echo "no" >&6; }
26884
26885
26886
26887 fi
26888 rm -Rf build
26889
26890
26891
26892
26893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether bio->bi_opf is defined" >&5
26894 $as_echo_n "checking whether bio->bi_opf is defined... " >&6; }
26895
26896
26897 cat confdefs.h - <<_ACEOF >conftest.c
26898
26899
26900 #include <linux/bio.h>
26901
26902 int
26903 main (void)
26904 {
26905
26906 struct bio bio __attribute__ ((unused));
26907 bio.bi_opf = 0;
26908
26909 ;
26910 return 0;
26911 }
26912
26913 _ACEOF
26914
26915
26916
26917 cat - <<_ACEOF >conftest.h
26918
26919 _ACEOF
26920
26921
26922 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
26923 echo "obj-m := conftest.o" >build/Makefile
26924 modpost_flag=''
26925 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
26926 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
26927 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26928 (eval $ac_try) 2>&5
26929 ac_status=$?
26930 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26931 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
26932 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26933 (eval $ac_try) 2>&5
26934 ac_status=$?
26935 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26936 test $ac_status = 0; }; }; then :
26937
26938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26939 $as_echo "yes" >&6; }
26940
26941 $as_echo "#define HAVE_BIO_BI_OPF 1" >>confdefs.h
26942
26943
26944 else
26945 $as_echo "$as_me: failed program was:" >&5
26946 sed 's/^/| /' conftest.$ac_ext >&5
26947
26948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26949 $as_echo "no" >&6; }
26950
26951
26952
26953 fi
26954 rm -Rf build
26955
26956
26957
26958
26959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether bio_end_io_t wants 1 arg" >&5
26960 $as_echo_n "checking whether bio_end_io_t wants 1 arg... " >&6; }
26961
26962
26963 cat confdefs.h - <<_ACEOF >conftest.c
26964
26965
26966 #include <linux/bio.h>
26967
26968 void wanted_end_io(struct bio *bio) { return; }
26969
26970 bio_end_io_t *end_io __attribute__ ((unused)) = wanted_end_io;
26971
26972 int
26973 main (void)
26974 {
26975
26976
26977 ;
26978 return 0;
26979 }
26980
26981 _ACEOF
26982
26983
26984
26985 cat - <<_ACEOF >conftest.h
26986
26987 _ACEOF
26988
26989
26990 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
26991 echo "obj-m := conftest.o" >build/Makefile
26992 modpost_flag=''
26993 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
26994 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
26995 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26996 (eval $ac_try) 2>&5
26997 ac_status=$?
26998 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26999 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
27000 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27001 (eval $ac_try) 2>&5
27002 ac_status=$?
27003 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27004 test $ac_status = 0; }; }; then :
27005
27006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27007 $as_echo "yes" >&6; }
27008
27009 $as_echo "#define HAVE_1ARG_BIO_END_IO_T 1" >>confdefs.h
27010
27011
27012 else
27013 $as_echo "$as_me: failed program was:" >&5
27014 sed 's/^/| /' conftest.$ac_ext >&5
27015
27016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27017 $as_echo "no" >&6; }
27018
27019
27020
27021 fi
27022 rm -Rf build
27023
27024
27025
27026
27027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether BIO_RW_BARRIER is defined" >&5
27028 $as_echo_n "checking whether BIO_RW_BARRIER is defined... " >&6; }
27029
27030
27031 cat confdefs.h - <<_ACEOF >conftest.c
27032
27033
27034 #include <linux/bio.h>
27035
27036 int
27037 main (void)
27038 {
27039
27040 int flags __attribute__ ((unused));
27041 flags = BIO_RW_BARRIER;
27042
27043 ;
27044 return 0;
27045 }
27046
27047 _ACEOF
27048
27049
27050
27051 cat - <<_ACEOF >conftest.h
27052
27053 _ACEOF
27054
27055
27056 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
27057 echo "obj-m := conftest.o" >build/Makefile
27058 modpost_flag=''
27059 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
27060 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
27061 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27062 (eval $ac_try) 2>&5
27063 ac_status=$?
27064 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27065 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
27066 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27067 (eval $ac_try) 2>&5
27068 ac_status=$?
27069 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27070 test $ac_status = 0; }; }; then :
27071
27072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27073 $as_echo "yes" >&6; }
27074
27075 $as_echo "#define HAVE_BIO_RW_BARRIER 1" >>confdefs.h
27076
27077
27078 else
27079 $as_echo "$as_me: failed program was:" >&5
27080 sed 's/^/| /' conftest.$ac_ext >&5
27081
27082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27083 $as_echo "no" >&6; }
27084
27085
27086
27087 fi
27088 rm -Rf build
27089
27090
27091
27092
27093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether BIO_RW_DISCARD is defined" >&5
27094 $as_echo_n "checking whether BIO_RW_DISCARD is defined... " >&6; }
27095
27096
27097 cat confdefs.h - <<_ACEOF >conftest.c
27098
27099
27100 #include <linux/bio.h>
27101
27102 int
27103 main (void)
27104 {
27105
27106 int flags __attribute__ ((unused));
27107 flags = BIO_RW_DISCARD;
27108
27109 ;
27110 return 0;
27111 }
27112
27113 _ACEOF
27114
27115
27116
27117 cat - <<_ACEOF >conftest.h
27118
27119 _ACEOF
27120
27121
27122 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
27123 echo "obj-m := conftest.o" >build/Makefile
27124 modpost_flag=''
27125 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
27126 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
27127 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27128 (eval $ac_try) 2>&5
27129 ac_status=$?
27130 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27131 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
27132 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27133 (eval $ac_try) 2>&5
27134 ac_status=$?
27135 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27136 test $ac_status = 0; }; }; then :
27137
27138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27139 $as_echo "yes" >&6; }
27140
27141 $as_echo "#define HAVE_BIO_RW_DISCARD 1" >>confdefs.h
27142
27143
27144 else
27145 $as_echo "$as_me: failed program was:" >&5
27146 sed 's/^/| /' conftest.$ac_ext >&5
27147
27148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27149 $as_echo "no" >&6; }
27150
27151
27152
27153 fi
27154 rm -Rf build
27155
27156
27157
27158
27159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether blk_queue_flush() is available" >&5
27160 $as_echo_n "checking whether blk_queue_flush() is available... " >&6; }
27161 tmp_flags="$EXTRA_KCFLAGS"
27162 EXTRA_KCFLAGS="${NO_UNUSED_BUT_SET_VARIABLE}"
27163
27164
27165 cat confdefs.h - <<_ACEOF >conftest.c
27166
27167
27168 #include <linux/blkdev.h>
27169
27170 int
27171 main (void)
27172 {
27173
27174 struct request_queue *q = NULL;
27175 (void) blk_queue_flush(q, REQ_FLUSH);
27176
27177 ;
27178 return 0;
27179 }
27180
27181 _ACEOF
27182
27183
27184
27185 cat - <<_ACEOF >conftest.h
27186
27187 _ACEOF
27188
27189
27190 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
27191 echo "obj-m := conftest.o" >build/Makefile
27192 modpost_flag=''
27193 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
27194 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
27195 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27196 (eval $ac_try) 2>&5
27197 ac_status=$?
27198 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27199 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
27200 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27201 (eval $ac_try) 2>&5
27202 ac_status=$?
27203 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27204 test $ac_status = 0; }; }; then :
27205
27206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27207 $as_echo "yes" >&6; }
27208
27209 $as_echo "#define HAVE_BLK_QUEUE_FLUSH 1" >>confdefs.h
27210
27211
27212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether blk_queue_flush() is GPL-only" >&5
27213 $as_echo_n "checking whether blk_queue_flush() is GPL-only... " >&6; }
27214
27215
27216 cat confdefs.h - <<_ACEOF >conftest.c
27217
27218
27219 #include <linux/module.h>
27220 #include <linux/blkdev.h>
27221
27222 MODULE_LICENSE("$ZFS_META_LICENSE");
27223
27224 int
27225 main (void)
27226 {
27227
27228 struct request_queue *q = NULL;
27229 (void) blk_queue_flush(q, REQ_FLUSH);
27230
27231 ;
27232 return 0;
27233 }
27234
27235 _ACEOF
27236
27237
27238
27239 cat - <<_ACEOF >conftest.h
27240
27241 _ACEOF
27242
27243
27244 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
27245 echo "obj-m := conftest.o" >build/Makefile
27246 modpost_flag=''
27247 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
27248 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
27249 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27250 (eval $ac_try) 2>&5
27251 ac_status=$?
27252 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27253 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
27254 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27255 (eval $ac_try) 2>&5
27256 ac_status=$?
27257 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27258 test $ac_status = 0; }; }; then :
27259
27260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27261 $as_echo "no" >&6; }
27262
27263 else
27264 $as_echo "$as_me: failed program was:" >&5
27265 sed 's/^/| /' conftest.$ac_ext >&5
27266
27267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27268 $as_echo "yes" >&6; }
27269
27270 $as_echo "#define HAVE_BLK_QUEUE_FLUSH_GPL_ONLY 1" >>confdefs.h
27271
27272
27273
27274
27275 fi
27276 rm -Rf build
27277
27278
27279
27280 else
27281 $as_echo "$as_me: failed program was:" >&5
27282 sed 's/^/| /' conftest.$ac_ext >&5
27283
27284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27285 $as_echo "no" >&6; }
27286
27287
27288
27289 fi
27290 rm -Rf build
27291
27292
27293
27294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether blk_queue_write_cache() exists" >&5
27295 $as_echo_n "checking whether blk_queue_write_cache() exists... " >&6; }
27296
27297
27298 cat confdefs.h - <<_ACEOF >conftest.c
27299
27300
27301 #include <linux/kernel.h>
27302 #include <linux/blkdev.h>
27303
27304
27305 int
27306 main (void)
27307 {
27308
27309 struct request_queue *q = NULL;
27310 blk_queue_write_cache(q, true, true);
27311
27312 ;
27313 return 0;
27314 }
27315
27316 _ACEOF
27317
27318
27319
27320 cat - <<_ACEOF >conftest.h
27321
27322 _ACEOF
27323
27324
27325 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
27326 echo "obj-m := conftest.o" >build/Makefile
27327 modpost_flag=''
27328 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
27329 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
27330 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27331 (eval $ac_try) 2>&5
27332 ac_status=$?
27333 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27334 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
27335 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27336 (eval $ac_try) 2>&5
27337 ac_status=$?
27338 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27339 test $ac_status = 0; }; }; then :
27340
27341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27342 $as_echo "yes" >&6; }
27343
27344 $as_echo "#define HAVE_BLK_QUEUE_WRITE_CACHE 1" >>confdefs.h
27345
27346
27347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether blk_queue_write_cache() is GPL-only" >&5
27348 $as_echo_n "checking whether blk_queue_write_cache() is GPL-only... " >&6; }
27349
27350
27351 cat confdefs.h - <<_ACEOF >conftest.c
27352
27353
27354 #include <linux/kernel.h>
27355 #include <linux/module.h>
27356 #include <linux/blkdev.h>
27357
27358 MODULE_LICENSE("$ZFS_META_LICENSE");
27359
27360 int
27361 main (void)
27362 {
27363
27364 struct request_queue *q = NULL;
27365 blk_queue_write_cache(q, true, true);
27366
27367 ;
27368 return 0;
27369 }
27370
27371 _ACEOF
27372
27373
27374
27375 cat - <<_ACEOF >conftest.h
27376
27377 _ACEOF
27378
27379
27380 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
27381 echo "obj-m := conftest.o" >build/Makefile
27382 modpost_flag=''
27383 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
27384 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
27385 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27386 (eval $ac_try) 2>&5
27387 ac_status=$?
27388 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27389 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
27390 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27391 (eval $ac_try) 2>&5
27392 ac_status=$?
27393 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27394 test $ac_status = 0; }; }; then :
27395
27396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27397 $as_echo "no" >&6; }
27398
27399 else
27400 $as_echo "$as_me: failed program was:" >&5
27401 sed 's/^/| /' conftest.$ac_ext >&5
27402
27403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27404 $as_echo "yes" >&6; }
27405
27406 $as_echo "#define HAVE_BLK_QUEUE_WRITE_CACHE_GPL_ONLY 1" >>confdefs.h
27407
27408
27409
27410
27411 fi
27412 rm -Rf build
27413
27414
27415
27416 else
27417 $as_echo "$as_me: failed program was:" >&5
27418 sed 's/^/| /' conftest.$ac_ext >&5
27419
27420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27421 $as_echo "no" >&6; }
27422
27423
27424
27425 fi
27426 rm -Rf build
27427
27428
27429
27430 EXTRA_KCFLAGS="$tmp_flags"
27431
27432
27433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether blk_queue_max_hw_sectors() is available" >&5
27434 $as_echo_n "checking whether blk_queue_max_hw_sectors() is available... " >&6; }
27435 tmp_flags="$EXTRA_KCFLAGS"
27436 EXTRA_KCFLAGS="${NO_UNUSED_BUT_SET_VARIABLE}"
27437
27438
27439 cat confdefs.h - <<_ACEOF >conftest.c
27440
27441
27442 #include <linux/blkdev.h>
27443
27444 int
27445 main (void)
27446 {
27447
27448 struct request_queue *q = NULL;
27449 (void) blk_queue_max_hw_sectors(q, BLK_SAFE_MAX_SECTORS);
27450
27451 ;
27452 return 0;
27453 }
27454
27455 _ACEOF
27456
27457
27458
27459 cat - <<_ACEOF >conftest.h
27460
27461 _ACEOF
27462
27463
27464 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
27465 echo "obj-m := conftest.o" >build/Makefile
27466 modpost_flag=''
27467 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
27468 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
27469 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27470 (eval $ac_try) 2>&5
27471 ac_status=$?
27472 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27473 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
27474 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27475 (eval $ac_try) 2>&5
27476 ac_status=$?
27477 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27478 test $ac_status = 0; }; }; then :
27479
27480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27481 $as_echo "yes" >&6; }
27482
27483 $as_echo "#define HAVE_BLK_QUEUE_MAX_HW_SECTORS 1" >>confdefs.h
27484
27485
27486 else
27487 $as_echo "$as_me: failed program was:" >&5
27488 sed 's/^/| /' conftest.$ac_ext >&5
27489
27490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27491 $as_echo "no" >&6; }
27492
27493
27494
27495 fi
27496 rm -Rf build
27497
27498
27499 EXTRA_KCFLAGS="$tmp_flags"
27500
27501
27502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether blk_queue_max_segments() is available" >&5
27503 $as_echo_n "checking whether blk_queue_max_segments() is available... " >&6; }
27504 tmp_flags="$EXTRA_KCFLAGS"
27505 EXTRA_KCFLAGS="${NO_UNUSED_BUT_SET_VARIABLE}"
27506
27507
27508 cat confdefs.h - <<_ACEOF >conftest.c
27509
27510
27511 #include <linux/blkdev.h>
27512
27513 int
27514 main (void)
27515 {
27516
27517 struct request_queue *q = NULL;
27518 (void) blk_queue_max_segments(q, BLK_MAX_SEGMENTS);
27519
27520 ;
27521 return 0;
27522 }
27523
27524 _ACEOF
27525
27526
27527
27528 cat - <<_ACEOF >conftest.h
27529
27530 _ACEOF
27531
27532
27533 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
27534 echo "obj-m := conftest.o" >build/Makefile
27535 modpost_flag=''
27536 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
27537 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
27538 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27539 (eval $ac_try) 2>&5
27540 ac_status=$?
27541 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27542 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
27543 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27544 (eval $ac_try) 2>&5
27545 ac_status=$?
27546 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27547 test $ac_status = 0; }; }; then :
27548
27549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27550 $as_echo "yes" >&6; }
27551
27552 $as_echo "#define HAVE_BLK_QUEUE_MAX_SEGMENTS 1" >>confdefs.h
27553
27554
27555 else
27556 $as_echo "$as_me: failed program was:" >&5
27557 sed 's/^/| /' conftest.$ac_ext >&5
27558
27559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27560 $as_echo "no" >&6; }
27561
27562
27563
27564 fi
27565 rm -Rf build
27566
27567
27568 EXTRA_KCFLAGS="$tmp_flags"
27569
27570
27571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the BIO_RW_UNPLUG enum is available" >&5
27572 $as_echo_n "checking whether the BIO_RW_UNPLUG enum is available... " >&6; }
27573 tmp_flags="$EXTRA_KCFLAGS"
27574 EXTRA_KCFLAGS="${NO_UNUSED_BUT_SET_VARIABLE}"
27575
27576
27577 cat confdefs.h - <<_ACEOF >conftest.c
27578
27579
27580 #include <linux/blkdev.h>
27581
27582 int
27583 main (void)
27584 {
27585
27586 extern enum bio_rw_flags rw;
27587
27588 rw = BIO_RW_UNPLUG;
27589
27590 ;
27591 return 0;
27592 }
27593
27594 _ACEOF
27595
27596
27597
27598 cat - <<_ACEOF >conftest.h
27599
27600 _ACEOF
27601
27602
27603 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
27604 echo "obj-m := conftest.o" >build/Makefile
27605 modpost_flag=''
27606 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
27607 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
27608 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27609 (eval $ac_try) 2>&5
27610 ac_status=$?
27611 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27612 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
27613 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27614 (eval $ac_try) 2>&5
27615 ac_status=$?
27616 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27617 test $ac_status = 0; }; }; then :
27618
27619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27620 $as_echo "yes" >&6; }
27621
27622 $as_echo "#define HAVE_BLK_QUEUE_HAVE_BIO_RW_UNPLUG 1" >>confdefs.h
27623
27624
27625 else
27626 $as_echo "$as_me: failed program was:" >&5
27627 sed 's/^/| /' conftest.$ac_ext >&5
27628
27629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27630 $as_echo "no" >&6; }
27631
27632
27633
27634 fi
27635 rm -Rf build
27636
27637
27638 EXTRA_KCFLAGS="$tmp_flags"
27639
27640
27641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct blk_plug is available" >&5
27642 $as_echo_n "checking whether struct blk_plug is available... " >&6; }
27643 tmp_flags="$EXTRA_KCFLAGS"
27644 EXTRA_KCFLAGS="${NO_UNUSED_BUT_SET_VARIABLE}"
27645
27646
27647 cat confdefs.h - <<_ACEOF >conftest.c
27648
27649
27650 #include <linux/blkdev.h>
27651
27652 int
27653 main (void)
27654 {
27655
27656 struct blk_plug plug;
27657
27658 blk_start_plug(&plug);
27659 blk_finish_plug(&plug);
27660
27661 ;
27662 return 0;
27663 }
27664
27665 _ACEOF
27666
27667
27668
27669 cat - <<_ACEOF >conftest.h
27670
27671 _ACEOF
27672
27673
27674 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
27675 echo "obj-m := conftest.o" >build/Makefile
27676 modpost_flag=''
27677 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
27678 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
27679 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27680 (eval $ac_try) 2>&5
27681 ac_status=$?
27682 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27683 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
27684 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27685 (eval $ac_try) 2>&5
27686 ac_status=$?
27687 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27688 test $ac_status = 0; }; }; then :
27689
27690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27691 $as_echo "yes" >&6; }
27692
27693 $as_echo "#define HAVE_BLK_QUEUE_HAVE_BLK_PLUG 1" >>confdefs.h
27694
27695
27696 else
27697 $as_echo "$as_me: failed program was:" >&5
27698 sed 's/^/| /' conftest.$ac_ext >&5
27699
27700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27701 $as_echo "no" >&6; }
27702
27703
27704
27705 fi
27706 rm -Rf build
27707
27708
27709 EXTRA_KCFLAGS="$tmp_flags"
27710
27711
27712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether get_disk_ro() is available" >&5
27713 $as_echo_n "checking whether get_disk_ro() is available... " >&6; }
27714 tmp_flags="$EXTRA_KCFLAGS"
27715 EXTRA_KCFLAGS="${NO_UNUSED_BUT_SET_VARIABLE}"
27716
27717
27718 cat confdefs.h - <<_ACEOF >conftest.c
27719
27720
27721 #include <linux/blkdev.h>
27722
27723 int
27724 main (void)
27725 {
27726
27727 struct gendisk *disk = NULL;
27728 (void) get_disk_ro(disk);
27729
27730 ;
27731 return 0;
27732 }
27733
27734 _ACEOF
27735
27736
27737
27738 cat - <<_ACEOF >conftest.h
27739
27740 _ACEOF
27741
27742
27743 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
27744 echo "obj-m := conftest.o" >build/Makefile
27745 modpost_flag=''
27746 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
27747 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
27748 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27749 (eval $ac_try) 2>&5
27750 ac_status=$?
27751 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27752 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
27753 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27754 (eval $ac_try) 2>&5
27755 ac_status=$?
27756 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27757 test $ac_status = 0; }; }; then :
27758
27759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27760 $as_echo "yes" >&6; }
27761
27762 $as_echo "#define HAVE_GET_DISK_RO 1" >>confdefs.h
27763
27764
27765 else
27766 $as_echo "$as_me: failed program was:" >&5
27767 sed 's/^/| /' conftest.$ac_ext >&5
27768
27769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27770 $as_echo "no" >&6; }
27771
27772
27773
27774 fi
27775 rm -Rf build
27776
27777
27778 EXTRA_KCFLAGS="$tmp_flags"
27779
27780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether get_gendisk() is available" >&5
27781 $as_echo_n "checking whether get_gendisk() is available... " >&6; }
27782
27783
27784
27785 cat confdefs.h - <<_ACEOF >conftest.c
27786
27787
27788 #include <linux/genhd.h>
27789
27790 int
27791 main (void)
27792 {
27793
27794 get_gendisk(0, NULL);
27795
27796 ;
27797 return 0;
27798 }
27799
27800 _ACEOF
27801
27802
27803
27804 cat - <<_ACEOF >conftest.h
27805
27806 _ACEOF
27807
27808
27809 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
27810 echo "obj-m := conftest.o" >build/Makefile
27811 modpost_flag=''
27812 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
27813 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
27814 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27815 (eval $ac_try) 2>&5
27816 ac_status=$?
27817 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27818 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
27819 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27820 (eval $ac_try) 2>&5
27821 ac_status=$?
27822 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27823 test $ac_status = 0; }; }; then :
27824 rc=0
27825 else
27826 $as_echo "$as_me: failed program was:" >&5
27827 sed 's/^/| /' conftest.$ac_ext >&5
27828 rc=1
27829
27830
27831 fi
27832 rm -Rf build
27833
27834
27835 if test $rc -ne 0; then :
27836
27837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27838 $as_echo "no" >&6; }
27839
27840 else
27841 if test "x$enable_linux_builtin" != xyes; then
27842
27843 grep -q -E '[[:space:]]get_gendisk[[:space:]]' \
27844 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
27845 rc=$?
27846 if test $rc -ne 0; then
27847 export=0
27848 for file in block/genhd.c; do
27849 grep -q -E "EXPORT_SYMBOL.*(get_gendisk)" \
27850 "$LINUX/$file" 2>/dev/null
27851 rc=$?
27852 if test $rc -eq 0; then
27853 export=1
27854 break;
27855 fi
27856 done
27857 if test $export -eq 0; then :
27858 rc=1
27859 else :
27860 rc=0
27861 fi
27862 else :
27863 rc=0
27864 fi
27865
27866 fi
27867 if test $rc -ne 0; then :
27868
27869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27870 $as_echo "no" >&6; }
27871
27872 else :
27873
27874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27875 $as_echo "yes" >&6; }
27876
27877 $as_echo "#define HAVE_GET_GENDISK 1" >>confdefs.h
27878
27879
27880 fi
27881 fi
27882
27883
27884
27885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether bio_set_op_attrs is available" >&5
27886 $as_echo_n "checking whether bio_set_op_attrs is available... " >&6; }
27887
27888
27889 cat confdefs.h - <<_ACEOF >conftest.c
27890
27891
27892 #include <linux/blk_types.h>
27893
27894 int
27895 main (void)
27896 {
27897
27898 struct bio *bio __attribute__ ((unused)) = NULL;
27899
27900 bio_set_op_attrs(bio, 0, 0);
27901
27902 ;
27903 return 0;
27904 }
27905
27906 _ACEOF
27907
27908
27909
27910 cat - <<_ACEOF >conftest.h
27911
27912 _ACEOF
27913
27914
27915 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
27916 echo "obj-m := conftest.o" >build/Makefile
27917 modpost_flag=''
27918 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
27919 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
27920 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27921 (eval $ac_try) 2>&5
27922 ac_status=$?
27923 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27924 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
27925 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27926 (eval $ac_try) 2>&5
27927 ac_status=$?
27928 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27929 test $ac_status = 0; }; }; then :
27930
27931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27932 $as_echo "yes" >&6; }
27933
27934 $as_echo "#define HAVE_BIO_SET_OP_ATTRS 1" >>confdefs.h
27935
27936
27937 else
27938 $as_echo "$as_me: failed program was:" >&5
27939 sed 's/^/| /' conftest.$ac_ext >&5
27940
27941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27942 $as_echo "no" >&6; }
27943
27944
27945
27946 fi
27947 rm -Rf build
27948
27949
27950
27951
27952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether generic_readlink is global" >&5
27953 $as_echo_n "checking whether generic_readlink is global... " >&6; }
27954
27955
27956 cat confdefs.h - <<_ACEOF >conftest.c
27957
27958
27959 #include <linux/fs.h>
27960
27961 int
27962 main (void)
27963 {
27964
27965 int i __attribute__ ((unused));
27966
27967 i = generic_readlink(NULL, NULL, 0);
27968
27969 ;
27970 return 0;
27971 }
27972
27973 _ACEOF
27974
27975
27976
27977 cat - <<_ACEOF >conftest.h
27978
27979 _ACEOF
27980
27981
27982 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
27983 echo "obj-m := conftest.o" >build/Makefile
27984 modpost_flag=''
27985 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
27986 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
27987 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27988 (eval $ac_try) 2>&5
27989 ac_status=$?
27990 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27991 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
27992 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27993 (eval $ac_try) 2>&5
27994 ac_status=$?
27995 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27996 test $ac_status = 0; }; }; then :
27997
27998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27999 $as_echo "yes" >&6; }
28000
28001 $as_echo "#define HAVE_GENERIC_READLINK 1" >>confdefs.h
28002
28003
28004 else
28005 $as_echo "$as_me: failed program was:" >&5
28006 sed 's/^/| /' conftest.$ac_ext >&5
28007
28008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28009 $as_echo "no" >&6; }
28010
28011
28012
28013 fi
28014 rm -Rf build
28015
28016
28017
28018
28019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ql->discard_granularity is available" >&5
28020 $as_echo_n "checking whether ql->discard_granularity is available... " >&6; }
28021
28022
28023 cat confdefs.h - <<_ACEOF >conftest.c
28024
28025
28026 #include <linux/blkdev.h>
28027
28028 int
28029 main (void)
28030 {
28031
28032 struct queue_limits ql __attribute__ ((unused));
28033
28034 ql.discard_granularity = 0;
28035
28036 ;
28037 return 0;
28038 }
28039
28040 _ACEOF
28041
28042
28043
28044 cat - <<_ACEOF >conftest.h
28045
28046 _ACEOF
28047
28048
28049 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
28050 echo "obj-m := conftest.o" >build/Makefile
28051 modpost_flag=''
28052 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
28053 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
28054 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28055 (eval $ac_try) 2>&5
28056 ac_status=$?
28057 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28058 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
28059 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28060 (eval $ac_try) 2>&5
28061 ac_status=$?
28062 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28063 test $ac_status = 0; }; }; then :
28064
28065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28066 $as_echo "yes" >&6; }
28067
28068 $as_echo "#define HAVE_DISCARD_GRANULARITY 1" >>confdefs.h
28069
28070
28071 else
28072 $as_echo "$as_me: failed program was:" >&5
28073 sed 's/^/| /' conftest.$ac_ext >&5
28074
28075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28076 $as_echo "no" >&6; }
28077
28078
28079
28080 fi
28081 rm -Rf build
28082
28083
28084
28085
28086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether super_block uses const struct xattr_handler" >&5
28087 $as_echo_n "checking whether super_block uses const struct xattr_handler... " >&6; }
28088
28089
28090 cat confdefs.h - <<_ACEOF >conftest.c
28091
28092
28093 #include <linux/fs.h>
28094 #include <linux/xattr.h>
28095
28096 const struct xattr_handler xattr_test_handler = {
28097 .prefix = "test",
28098 .get = NULL,
28099 .set = NULL,
28100 };
28101
28102 const struct xattr_handler *xattr_handlers[] = {
28103 &xattr_test_handler,
28104 };
28105
28106 const struct super_block sb __attribute__ ((unused)) = {
28107 .s_xattr = xattr_handlers,
28108 };
28109
28110 int
28111 main (void)
28112 {
28113
28114
28115 ;
28116 return 0;
28117 }
28118
28119 _ACEOF
28120
28121
28122
28123 cat - <<_ACEOF >conftest.h
28124
28125 _ACEOF
28126
28127
28128 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
28129 echo "obj-m := conftest.o" >build/Makefile
28130 modpost_flag=''
28131 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
28132 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
28133 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28134 (eval $ac_try) 2>&5
28135 ac_status=$?
28136 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28137 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
28138 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28139 (eval $ac_try) 2>&5
28140 ac_status=$?
28141 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28142 test $ac_status = 0; }; }; then :
28143
28144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28145 $as_echo "yes" >&6; }
28146
28147 $as_echo "#define HAVE_CONST_XATTR_HANDLER 1" >>confdefs.h
28148
28149
28150 else
28151 $as_echo "$as_me: failed program was:" >&5
28152 sed 's/^/| /' conftest.$ac_ext >&5
28153
28154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28155 $as_echo "no" >&6; }
28156
28157
28158
28159 fi
28160 rm -Rf build
28161
28162
28163
28164
28165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether xattr_handler has name" >&5
28166 $as_echo_n "checking whether xattr_handler has name... " >&6; }
28167
28168
28169 cat confdefs.h - <<_ACEOF >conftest.c
28170
28171
28172 #include <linux/xattr.h>
28173
28174 static const struct xattr_handler
28175 xops __attribute__ ((unused)) = {
28176 .name = XATTR_NAME_POSIX_ACL_ACCESS,
28177 };
28178
28179 int
28180 main (void)
28181 {
28182
28183
28184 ;
28185 return 0;
28186 }
28187
28188 _ACEOF
28189
28190
28191
28192 cat - <<_ACEOF >conftest.h
28193
28194 _ACEOF
28195
28196
28197 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
28198 echo "obj-m := conftest.o" >build/Makefile
28199 modpost_flag=''
28200 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
28201 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
28202 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28203 (eval $ac_try) 2>&5
28204 ac_status=$?
28205 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28206 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
28207 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28208 (eval $ac_try) 2>&5
28209 ac_status=$?
28210 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28211 test $ac_status = 0; }; }; then :
28212
28213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28214 $as_echo "yes" >&6; }
28215
28216 $as_echo "#define HAVE_XATTR_HANDLER_NAME 1" >>confdefs.h
28217
28218
28219 else
28220 $as_echo "$as_me: failed program was:" >&5
28221 sed 's/^/| /' conftest.$ac_ext >&5
28222
28223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28224 $as_echo "no" >&6; }
28225
28226
28227
28228 fi
28229 rm -Rf build
28230
28231
28232
28233
28234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether xattr_handler->get() wants both dentry and inode" >&5
28235 $as_echo_n "checking whether xattr_handler->get() wants both dentry and inode... " >&6; }
28236
28237
28238 cat confdefs.h - <<_ACEOF >conftest.c
28239
28240
28241 #include <linux/xattr.h>
28242
28243 int get(const struct xattr_handler *handler,
28244 struct dentry *dentry, struct inode *inode,
28245 const char *name, void *buffer, size_t size) { return 0; }
28246 static const struct xattr_handler
28247 xops __attribute__ ((unused)) = {
28248 .get = get,
28249 };
28250
28251 int
28252 main (void)
28253 {
28254
28255
28256 ;
28257 return 0;
28258 }
28259
28260 _ACEOF
28261
28262
28263
28264 cat - <<_ACEOF >conftest.h
28265
28266 _ACEOF
28267
28268
28269 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
28270 echo "obj-m := conftest.o" >build/Makefile
28271 modpost_flag=''
28272 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
28273 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
28274 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28275 (eval $ac_try) 2>&5
28276 ac_status=$?
28277 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28278 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
28279 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28280 (eval $ac_try) 2>&5
28281 ac_status=$?
28282 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28283 test $ac_status = 0; }; }; then :
28284
28285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28286 $as_echo "yes" >&6; }
28287
28288 $as_echo "#define HAVE_XATTR_GET_DENTRY_INODE 1" >>confdefs.h
28289
28290
28291 else
28292 $as_echo "$as_me: failed program was:" >&5
28293 sed 's/^/| /' conftest.$ac_ext >&5
28294
28295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether xattr_handler->get() wants xattr_handler" >&5
28296 $as_echo_n "checking whether xattr_handler->get() wants xattr_handler... " >&6; }
28297
28298
28299 cat confdefs.h - <<_ACEOF >conftest.c
28300
28301
28302 #include <linux/xattr.h>
28303
28304 int get(const struct xattr_handler *handler,
28305 struct dentry *dentry, const char *name,
28306 void *buffer, size_t size) { return 0; }
28307 static const struct xattr_handler
28308 xops __attribute__ ((unused)) = {
28309 .get = get,
28310 };
28311
28312 int
28313 main (void)
28314 {
28315
28316
28317 ;
28318 return 0;
28319 }
28320
28321 _ACEOF
28322
28323
28324
28325 cat - <<_ACEOF >conftest.h
28326
28327 _ACEOF
28328
28329
28330 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
28331 echo "obj-m := conftest.o" >build/Makefile
28332 modpost_flag=''
28333 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
28334 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
28335 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28336 (eval $ac_try) 2>&5
28337 ac_status=$?
28338 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28339 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
28340 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28341 (eval $ac_try) 2>&5
28342 ac_status=$?
28343 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28344 test $ac_status = 0; }; }; then :
28345
28346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28347 $as_echo "yes" >&6; }
28348
28349 $as_echo "#define HAVE_XATTR_GET_HANDLER 1" >>confdefs.h
28350
28351
28352 else
28353 $as_echo "$as_me: failed program was:" >&5
28354 sed 's/^/| /' conftest.$ac_ext >&5
28355
28356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28357 $as_echo "no" >&6; }
28358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether xattr_handler->get() wants dentry" >&5
28359 $as_echo_n "checking whether xattr_handler->get() wants dentry... " >&6; }
28360
28361
28362 cat confdefs.h - <<_ACEOF >conftest.c
28363
28364
28365 #include <linux/xattr.h>
28366
28367 int get(struct dentry *dentry, const char *name,
28368 void *buffer, size_t size, int handler_flags)
28369 { return 0; }
28370 static const struct xattr_handler
28371 xops __attribute__ ((unused)) = {
28372 .get = get,
28373 };
28374
28375 int
28376 main (void)
28377 {
28378
28379
28380 ;
28381 return 0;
28382 }
28383
28384 _ACEOF
28385
28386
28387
28388 cat - <<_ACEOF >conftest.h
28389
28390 _ACEOF
28391
28392
28393 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
28394 echo "obj-m := conftest.o" >build/Makefile
28395 modpost_flag=''
28396 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
28397 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
28398 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28399 (eval $ac_try) 2>&5
28400 ac_status=$?
28401 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28402 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
28403 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28404 (eval $ac_try) 2>&5
28405 ac_status=$?
28406 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28407 test $ac_status = 0; }; }; then :
28408
28409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28410 $as_echo "yes" >&6; }
28411
28412 $as_echo "#define HAVE_XATTR_GET_DENTRY 1" >>confdefs.h
28413
28414
28415 else
28416 $as_echo "$as_me: failed program was:" >&5
28417 sed 's/^/| /' conftest.$ac_ext >&5
28418
28419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28420 $as_echo "no" >&6; }
28421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether xattr_handler->get() wants inode" >&5
28422 $as_echo_n "checking whether xattr_handler->get() wants inode... " >&6; }
28423
28424
28425 cat confdefs.h - <<_ACEOF >conftest.c
28426
28427
28428 #include <linux/xattr.h>
28429
28430 int get(struct inode *ip, const char *name,
28431 void *buffer, size_t size) { return 0; }
28432 static const struct xattr_handler
28433 xops __attribute__ ((unused)) = {
28434 .get = get,
28435 };
28436
28437 int
28438 main (void)
28439 {
28440
28441
28442 ;
28443 return 0;
28444 }
28445
28446 _ACEOF
28447
28448
28449
28450 cat - <<_ACEOF >conftest.h
28451
28452 _ACEOF
28453
28454
28455 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
28456 echo "obj-m := conftest.o" >build/Makefile
28457 modpost_flag=''
28458 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
28459 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
28460 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28461 (eval $ac_try) 2>&5
28462 ac_status=$?
28463 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28464 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
28465 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28466 (eval $ac_try) 2>&5
28467 ac_status=$?
28468 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28469 test $ac_status = 0; }; }; then :
28470
28471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28472 $as_echo "yes" >&6; }
28473
28474 $as_echo "#define HAVE_XATTR_GET_INODE 1" >>confdefs.h
28475
28476
28477 else
28478 $as_echo "$as_me: failed program was:" >&5
28479 sed 's/^/| /' conftest.$ac_ext >&5
28480
28481 as_fn_error $? "no; please file a bug report" "$LINENO" 5
28482
28483
28484
28485 fi
28486 rm -Rf build
28487
28488
28489
28490
28491
28492 fi
28493 rm -Rf build
28494
28495
28496
28497
28498
28499 fi
28500 rm -Rf build
28501
28502
28503
28504
28505
28506 fi
28507 rm -Rf build
28508
28509
28510
28511
28512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether xattr_handler->set() wants both dentry and inode" >&5
28513 $as_echo_n "checking whether xattr_handler->set() wants both dentry and inode... " >&6; }
28514
28515
28516 cat confdefs.h - <<_ACEOF >conftest.c
28517
28518
28519 #include <linux/xattr.h>
28520
28521 int set(const struct xattr_handler *handler,
28522 struct dentry *dentry, struct inode *inode,
28523 const char *name, const void *buffer,
28524 size_t size, int flags)
28525 { return 0; }
28526 static const struct xattr_handler
28527 xops __attribute__ ((unused)) = {
28528 .set = set,
28529 };
28530
28531 int
28532 main (void)
28533 {
28534
28535
28536 ;
28537 return 0;
28538 }
28539
28540 _ACEOF
28541
28542
28543
28544 cat - <<_ACEOF >conftest.h
28545
28546 _ACEOF
28547
28548
28549 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
28550 echo "obj-m := conftest.o" >build/Makefile
28551 modpost_flag=''
28552 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
28553 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
28554 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28555 (eval $ac_try) 2>&5
28556 ac_status=$?
28557 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28558 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
28559 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28560 (eval $ac_try) 2>&5
28561 ac_status=$?
28562 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28563 test $ac_status = 0; }; }; then :
28564
28565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28566 $as_echo "yes" >&6; }
28567
28568 $as_echo "#define HAVE_XATTR_SET_DENTRY_INODE 1" >>confdefs.h
28569
28570
28571 else
28572 $as_echo "$as_me: failed program was:" >&5
28573 sed 's/^/| /' conftest.$ac_ext >&5
28574
28575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether xattr_handler->set() wants xattr_handler" >&5
28576 $as_echo_n "checking whether xattr_handler->set() wants xattr_handler... " >&6; }
28577
28578
28579 cat confdefs.h - <<_ACEOF >conftest.c
28580
28581
28582 #include <linux/xattr.h>
28583
28584 int set(const struct xattr_handler *handler,
28585 struct dentry *dentry, const char *name,
28586 const void *buffer, size_t size, int flags)
28587 { return 0; }
28588 static const struct xattr_handler
28589 xops __attribute__ ((unused)) = {
28590 .set = set,
28591 };
28592
28593 int
28594 main (void)
28595 {
28596
28597
28598 ;
28599 return 0;
28600 }
28601
28602 _ACEOF
28603
28604
28605
28606 cat - <<_ACEOF >conftest.h
28607
28608 _ACEOF
28609
28610
28611 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
28612 echo "obj-m := conftest.o" >build/Makefile
28613 modpost_flag=''
28614 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
28615 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
28616 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28617 (eval $ac_try) 2>&5
28618 ac_status=$?
28619 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28620 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
28621 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28622 (eval $ac_try) 2>&5
28623 ac_status=$?
28624 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28625 test $ac_status = 0; }; }; then :
28626
28627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28628 $as_echo "yes" >&6; }
28629
28630 $as_echo "#define HAVE_XATTR_SET_HANDLER 1" >>confdefs.h
28631
28632
28633 else
28634 $as_echo "$as_me: failed program was:" >&5
28635 sed 's/^/| /' conftest.$ac_ext >&5
28636
28637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28638 $as_echo "no" >&6; }
28639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether xattr_handler->set() wants dentry" >&5
28640 $as_echo_n "checking whether xattr_handler->set() wants dentry... " >&6; }
28641
28642
28643 cat confdefs.h - <<_ACEOF >conftest.c
28644
28645
28646 #include <linux/xattr.h>
28647
28648 int set(struct dentry *dentry, const char *name,
28649 const void *buffer, size_t size, int flags,
28650 int handler_flags) { return 0; }
28651 static const struct xattr_handler
28652 xops __attribute__ ((unused)) = {
28653 .set = set,
28654 };
28655
28656 int
28657 main (void)
28658 {
28659
28660
28661 ;
28662 return 0;
28663 }
28664
28665 _ACEOF
28666
28667
28668
28669 cat - <<_ACEOF >conftest.h
28670
28671 _ACEOF
28672
28673
28674 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
28675 echo "obj-m := conftest.o" >build/Makefile
28676 modpost_flag=''
28677 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
28678 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
28679 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28680 (eval $ac_try) 2>&5
28681 ac_status=$?
28682 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28683 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
28684 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28685 (eval $ac_try) 2>&5
28686 ac_status=$?
28687 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28688 test $ac_status = 0; }; }; then :
28689
28690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28691 $as_echo "yes" >&6; }
28692
28693 $as_echo "#define HAVE_XATTR_SET_DENTRY 1" >>confdefs.h
28694
28695
28696 else
28697 $as_echo "$as_me: failed program was:" >&5
28698 sed 's/^/| /' conftest.$ac_ext >&5
28699
28700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28701 $as_echo "no" >&6; }
28702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether xattr_handler->set() wants inode" >&5
28703 $as_echo_n "checking whether xattr_handler->set() wants inode... " >&6; }
28704
28705
28706 cat confdefs.h - <<_ACEOF >conftest.c
28707
28708
28709 #include <linux/xattr.h>
28710
28711 int set(struct inode *ip, const char *name,
28712 const void *buffer, size_t size, int flags)
28713 { return 0; }
28714 static const struct xattr_handler
28715 xops __attribute__ ((unused)) = {
28716 .set = set,
28717 };
28718
28719 int
28720 main (void)
28721 {
28722
28723
28724 ;
28725 return 0;
28726 }
28727
28728 _ACEOF
28729
28730
28731
28732 cat - <<_ACEOF >conftest.h
28733
28734 _ACEOF
28735
28736
28737 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
28738 echo "obj-m := conftest.o" >build/Makefile
28739 modpost_flag=''
28740 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
28741 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
28742 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28743 (eval $ac_try) 2>&5
28744 ac_status=$?
28745 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28746 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
28747 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28748 (eval $ac_try) 2>&5
28749 ac_status=$?
28750 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28751 test $ac_status = 0; }; }; then :
28752
28753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28754 $as_echo "yes" >&6; }
28755
28756 $as_echo "#define HAVE_XATTR_SET_INODE 1" >>confdefs.h
28757
28758
28759 else
28760 $as_echo "$as_me: failed program was:" >&5
28761 sed 's/^/| /' conftest.$ac_ext >&5
28762
28763 as_fn_error $? "no; please file a bug report" "$LINENO" 5
28764
28765
28766
28767 fi
28768 rm -Rf build
28769
28770
28771
28772
28773
28774 fi
28775 rm -Rf build
28776
28777
28778
28779
28780
28781 fi
28782 rm -Rf build
28783
28784
28785
28786
28787
28788 fi
28789 rm -Rf build
28790
28791
28792
28793
28794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether xattr_handler->list() wants simple" >&5
28795 $as_echo_n "checking whether xattr_handler->list() wants simple... " >&6; }
28796
28797
28798 cat confdefs.h - <<_ACEOF >conftest.c
28799
28800
28801 #include <linux/xattr.h>
28802
28803 bool list(struct dentry *dentry) { return 0; }
28804 static const struct xattr_handler
28805 xops __attribute__ ((unused)) = {
28806 .list = list,
28807 };
28808
28809 int
28810 main (void)
28811 {
28812
28813
28814 ;
28815 return 0;
28816 }
28817
28818 _ACEOF
28819
28820
28821
28822 cat - <<_ACEOF >conftest.h
28823
28824 _ACEOF
28825
28826
28827 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
28828 echo "obj-m := conftest.o" >build/Makefile
28829 modpost_flag=''
28830 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
28831 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
28832 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28833 (eval $ac_try) 2>&5
28834 ac_status=$?
28835 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28836 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
28837 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28838 (eval $ac_try) 2>&5
28839 ac_status=$?
28840 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28841 test $ac_status = 0; }; }; then :
28842
28843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28844 $as_echo "yes" >&6; }
28845
28846 $as_echo "#define HAVE_XATTR_LIST_SIMPLE 1" >>confdefs.h
28847
28848
28849 else
28850 $as_echo "$as_me: failed program was:" >&5
28851 sed 's/^/| /' conftest.$ac_ext >&5
28852
28853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28854 $as_echo "no" >&6; }
28855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether xattr_handler->list() wants xattr_handler" >&5
28856 $as_echo_n "checking whether xattr_handler->list() wants xattr_handler... " >&6; }
28857
28858
28859 cat confdefs.h - <<_ACEOF >conftest.c
28860
28861
28862 #include <linux/xattr.h>
28863
28864 size_t list(const struct xattr_handler *handler,
28865 struct dentry *dentry, char *list, size_t list_size,
28866 const char *name, size_t name_len) { return 0; }
28867 static const struct xattr_handler
28868 xops __attribute__ ((unused)) = {
28869 .list = list,
28870 };
28871
28872 int
28873 main (void)
28874 {
28875
28876
28877 ;
28878 return 0;
28879 }
28880
28881 _ACEOF
28882
28883
28884
28885 cat - <<_ACEOF >conftest.h
28886
28887 _ACEOF
28888
28889
28890 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
28891 echo "obj-m := conftest.o" >build/Makefile
28892 modpost_flag=''
28893 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
28894 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
28895 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28896 (eval $ac_try) 2>&5
28897 ac_status=$?
28898 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28899 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
28900 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28901 (eval $ac_try) 2>&5
28902 ac_status=$?
28903 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28904 test $ac_status = 0; }; }; then :
28905
28906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28907 $as_echo "yes" >&6; }
28908
28909 $as_echo "#define HAVE_XATTR_LIST_HANDLER 1" >>confdefs.h
28910
28911
28912 else
28913 $as_echo "$as_me: failed program was:" >&5
28914 sed 's/^/| /' conftest.$ac_ext >&5
28915
28916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28917 $as_echo "no" >&6; }
28918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether xattr_handler->list() wants dentry" >&5
28919 $as_echo_n "checking whether xattr_handler->list() wants dentry... " >&6; }
28920
28921
28922 cat confdefs.h - <<_ACEOF >conftest.c
28923
28924
28925 #include <linux/xattr.h>
28926
28927 size_t list(struct dentry *dentry,
28928 char *list, size_t list_size,
28929 const char *name, size_t name_len,
28930 int handler_flags) { return 0; }
28931 static const struct xattr_handler
28932 xops __attribute__ ((unused)) = {
28933 .list = list,
28934 };
28935
28936 int
28937 main (void)
28938 {
28939
28940
28941 ;
28942 return 0;
28943 }
28944
28945 _ACEOF
28946
28947
28948
28949 cat - <<_ACEOF >conftest.h
28950
28951 _ACEOF
28952
28953
28954 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
28955 echo "obj-m := conftest.o" >build/Makefile
28956 modpost_flag=''
28957 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
28958 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
28959 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28960 (eval $ac_try) 2>&5
28961 ac_status=$?
28962 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28963 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
28964 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28965 (eval $ac_try) 2>&5
28966 ac_status=$?
28967 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28968 test $ac_status = 0; }; }; then :
28969
28970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28971 $as_echo "yes" >&6; }
28972
28973 $as_echo "#define HAVE_XATTR_LIST_DENTRY 1" >>confdefs.h
28974
28975
28976 else
28977 $as_echo "$as_me: failed program was:" >&5
28978 sed 's/^/| /' conftest.$ac_ext >&5
28979
28980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28981 $as_echo "no" >&6; }
28982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether xattr_handler->list() wants inode" >&5
28983 $as_echo_n "checking whether xattr_handler->list() wants inode... " >&6; }
28984
28985
28986 cat confdefs.h - <<_ACEOF >conftest.c
28987
28988
28989 #include <linux/xattr.h>
28990
28991 size_t list(struct inode *ip, char *lst,
28992 size_t list_size, const char *name,
28993 size_t name_len) { return 0; }
28994 static const struct xattr_handler
28995 xops __attribute__ ((unused)) = {
28996 .list = list,
28997 };
28998
28999 int
29000 main (void)
29001 {
29002
29003
29004 ;
29005 return 0;
29006 }
29007
29008 _ACEOF
29009
29010
29011
29012 cat - <<_ACEOF >conftest.h
29013
29014 _ACEOF
29015
29016
29017 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
29018 echo "obj-m := conftest.o" >build/Makefile
29019 modpost_flag=''
29020 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
29021 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
29022 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29023 (eval $ac_try) 2>&5
29024 ac_status=$?
29025 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29026 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
29027 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29028 (eval $ac_try) 2>&5
29029 ac_status=$?
29030 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29031 test $ac_status = 0; }; }; then :
29032
29033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29034 $as_echo "yes" >&6; }
29035
29036 $as_echo "#define HAVE_XATTR_LIST_INODE 1" >>confdefs.h
29037
29038
29039 else
29040 $as_echo "$as_me: failed program was:" >&5
29041 sed 's/^/| /' conftest.$ac_ext >&5
29042
29043 as_fn_error $? "no; please file a bug report" "$LINENO" 5
29044
29045
29046
29047 fi
29048 rm -Rf build
29049
29050
29051
29052
29053
29054 fi
29055 rm -Rf build
29056
29057
29058
29059
29060
29061 fi
29062 rm -Rf build
29063
29064
29065
29066
29067
29068 fi
29069 rm -Rf build
29070
29071
29072
29073
29074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether inode_owner_or_capable() exists" >&5
29075 $as_echo_n "checking whether inode_owner_or_capable() exists... " >&6; }
29076
29077
29078 cat confdefs.h - <<_ACEOF >conftest.c
29079
29080
29081 #include <linux/fs.h>
29082
29083 int
29084 main (void)
29085 {
29086
29087 struct inode *ip = NULL;
29088 (void) inode_owner_or_capable(ip);
29089
29090 ;
29091 return 0;
29092 }
29093
29094 _ACEOF
29095
29096
29097
29098 cat - <<_ACEOF >conftest.h
29099
29100 _ACEOF
29101
29102
29103 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
29104 echo "obj-m := conftest.o" >build/Makefile
29105 modpost_flag=''
29106 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
29107 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
29108 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29109 (eval $ac_try) 2>&5
29110 ac_status=$?
29111 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29112 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
29113 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29114 (eval $ac_try) 2>&5
29115 ac_status=$?
29116 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29117 test $ac_status = 0; }; }; then :
29118
29119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29120 $as_echo "yes" >&6; }
29121
29122 $as_echo "#define HAVE_INODE_OWNER_OR_CAPABLE 1" >>confdefs.h
29123
29124
29125 else
29126 $as_echo "$as_me: failed program was:" >&5
29127 sed 's/^/| /' conftest.$ac_ext >&5
29128
29129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29130 $as_echo "no" >&6; }
29131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether is_owner_or_cap() exists" >&5
29132 $as_echo_n "checking whether is_owner_or_cap() exists... " >&6; }
29133
29134
29135 cat confdefs.h - <<_ACEOF >conftest.c
29136
29137
29138 #include <linux/fs.h>
29139 #include <linux/sched.h>
29140
29141 int
29142 main (void)
29143 {
29144
29145 struct inode *ip = NULL;
29146 (void) is_owner_or_cap(ip);
29147
29148 ;
29149 return 0;
29150 }
29151
29152 _ACEOF
29153
29154
29155
29156 cat - <<_ACEOF >conftest.h
29157
29158 _ACEOF
29159
29160
29161 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
29162 echo "obj-m := conftest.o" >build/Makefile
29163 modpost_flag=''
29164 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
29165 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
29166 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29167 (eval $ac_try) 2>&5
29168 ac_status=$?
29169 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29170 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
29171 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29172 (eval $ac_try) 2>&5
29173 ac_status=$?
29174 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29175 test $ac_status = 0; }; }; then :
29176
29177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29178 $as_echo "yes" >&6; }
29179
29180 $as_echo "#define HAVE_IS_OWNER_OR_CAP 1" >>confdefs.h
29181
29182
29183 else
29184 $as_echo "$as_me: failed program was:" >&5
29185 sed 's/^/| /' conftest.$ac_ext >&5
29186
29187 as_fn_error $? "no - Please file a bug report at
29188 https://github.com/zfsonlinux/zfs/issues/new" "$LINENO" 5
29189
29190
29191
29192 fi
29193 rm -Rf build
29194
29195
29196
29197
29198
29199 fi
29200 rm -Rf build
29201
29202
29203
29204
29205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether posix_acl_from_xattr() needs user_ns" >&5
29206 $as_echo_n "checking whether posix_acl_from_xattr() needs user_ns... " >&6; }
29207
29208
29209 cat confdefs.h - <<_ACEOF >conftest.c
29210
29211
29212 #include <linux/cred.h>
29213 #include <linux/fs.h>
29214 #include <linux/posix_acl_xattr.h>
29215
29216 int
29217 main (void)
29218 {
29219
29220 posix_acl_from_xattr(&init_user_ns, NULL, 0);
29221
29222 ;
29223 return 0;
29224 }
29225
29226 _ACEOF
29227
29228
29229
29230 cat - <<_ACEOF >conftest.h
29231
29232 _ACEOF
29233
29234
29235 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
29236 echo "obj-m := conftest.o" >build/Makefile
29237 modpost_flag=''
29238 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
29239 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
29240 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29241 (eval $ac_try) 2>&5
29242 ac_status=$?
29243 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29244 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
29245 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29246 (eval $ac_try) 2>&5
29247 ac_status=$?
29248 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29249 test $ac_status = 0; }; }; then :
29250
29251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29252 $as_echo "yes" >&6; }
29253
29254 $as_echo "#define HAVE_POSIX_ACL_FROM_XATTR_USERNS 1" >>confdefs.h
29255
29256
29257 else
29258 $as_echo "$as_me: failed program was:" >&5
29259 sed 's/^/| /' conftest.$ac_ext >&5
29260
29261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29262 $as_echo "no" >&6; }
29263
29264
29265
29266 fi
29267 rm -Rf build
29268
29269
29270
29271
29272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether posix_acl_release() is available" >&5
29273 $as_echo_n "checking whether posix_acl_release() is available... " >&6; }
29274
29275
29276 cat confdefs.h - <<_ACEOF >conftest.c
29277
29278
29279 #include <linux/cred.h>
29280 #include <linux/fs.h>
29281 #include <linux/posix_acl.h>
29282
29283 int
29284 main (void)
29285 {
29286
29287 struct posix_acl* tmp = posix_acl_alloc(1, 0);
29288 posix_acl_release(tmp);
29289
29290 ;
29291 return 0;
29292 }
29293
29294 _ACEOF
29295
29296
29297
29298 cat - <<_ACEOF >conftest.h
29299
29300 _ACEOF
29301
29302
29303 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
29304 echo "obj-m := conftest.o" >build/Makefile
29305 modpost_flag=''
29306 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
29307 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
29308 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29309 (eval $ac_try) 2>&5
29310 ac_status=$?
29311 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29312 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
29313 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29314 (eval $ac_try) 2>&5
29315 ac_status=$?
29316 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29317 test $ac_status = 0; }; }; then :
29318
29319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29320 $as_echo "yes" >&6; }
29321
29322 $as_echo "#define HAVE_POSIX_ACL_RELEASE 1" >>confdefs.h
29323
29324
29325 else
29326 $as_echo "$as_me: failed program was:" >&5
29327 sed 's/^/| /' conftest.$ac_ext >&5
29328
29329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29330 $as_echo "no" >&6; }
29331
29332
29333
29334 fi
29335 rm -Rf build
29336
29337
29338
29339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether posix_acl_release() is GPL-only" >&5
29340 $as_echo_n "checking whether posix_acl_release() is GPL-only... " >&6; }
29341
29342
29343 cat confdefs.h - <<_ACEOF >conftest.c
29344
29345
29346 #include <linux/cred.h>
29347 #include <linux/fs.h>
29348 #include <linux/posix_acl.h>
29349
29350 MODULE_LICENSE("$ZFS_META_LICENSE");
29351
29352 int
29353 main (void)
29354 {
29355
29356 struct posix_acl* tmp = posix_acl_alloc(1, 0);
29357 posix_acl_release(tmp);
29358
29359 ;
29360 return 0;
29361 }
29362
29363 _ACEOF
29364
29365
29366
29367 cat - <<_ACEOF >conftest.h
29368
29369 _ACEOF
29370
29371
29372 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
29373 echo "obj-m := conftest.o" >build/Makefile
29374 modpost_flag=''
29375 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
29376 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
29377 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29378 (eval $ac_try) 2>&5
29379 ac_status=$?
29380 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29381 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
29382 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29383 (eval $ac_try) 2>&5
29384 ac_status=$?
29385 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29386 test $ac_status = 0; }; }; then :
29387
29388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29389 $as_echo "no" >&6; }
29390
29391 else
29392 $as_echo "$as_me: failed program was:" >&5
29393 sed 's/^/| /' conftest.$ac_ext >&5
29394
29395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29396 $as_echo "yes" >&6; }
29397
29398 $as_echo "#define HAVE_POSIX_ACL_RELEASE_GPL_ONLY 1" >>confdefs.h
29399
29400
29401
29402
29403 fi
29404 rm -Rf build
29405
29406
29407
29408
29409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether set_cached_acl() is usable" >&5
29410 $as_echo_n "checking whether set_cached_acl() is usable... " >&6; }
29411
29412
29413 cat confdefs.h - <<_ACEOF >conftest.c
29414
29415
29416 #include <linux/module.h>
29417 #include <linux/cred.h>
29418 #include <linux/fs.h>
29419 #include <linux/posix_acl.h>
29420
29421 MODULE_LICENSE("$ZFS_META_LICENSE");
29422
29423 int
29424 main (void)
29425 {
29426
29427 struct inode *ip = NULL;
29428 struct posix_acl *acl = posix_acl_alloc(1, 0);
29429 set_cached_acl(ip, ACL_TYPE_ACCESS, acl);
29430 forget_cached_acl(ip, ACL_TYPE_ACCESS);
29431
29432 ;
29433 return 0;
29434 }
29435
29436 _ACEOF
29437
29438
29439
29440 cat - <<_ACEOF >conftest.h
29441
29442 _ACEOF
29443
29444
29445 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
29446 echo "obj-m := conftest.o" >build/Makefile
29447 modpost_flag=''
29448 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
29449 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
29450 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29451 (eval $ac_try) 2>&5
29452 ac_status=$?
29453 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29454 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
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; }; }; then :
29460
29461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29462 $as_echo "yes" >&6; }
29463
29464 $as_echo "#define HAVE_SET_CACHED_ACL_USABLE 1" >>confdefs.h
29465
29466
29467 else
29468 $as_echo "$as_me: failed program was:" >&5
29469 sed 's/^/| /' conftest.$ac_ext >&5
29470
29471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29472 $as_echo "no" >&6; }
29473
29474
29475
29476 fi
29477 rm -Rf build
29478
29479
29480
29481
29482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether posix_acl_chmod exists" >&5
29483 $as_echo_n "checking whether posix_acl_chmod exists... " >&6; }
29484
29485
29486 cat confdefs.h - <<_ACEOF >conftest.c
29487
29488
29489 #include <linux/fs.h>
29490 #include <linux/posix_acl.h>
29491
29492 int
29493 main (void)
29494 {
29495
29496 posix_acl_chmod(NULL, 0, 0)
29497
29498 ;
29499 return 0;
29500 }
29501
29502 _ACEOF
29503
29504
29505
29506 cat - <<_ACEOF >conftest.h
29507
29508 _ACEOF
29509
29510
29511 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
29512 echo "obj-m := conftest.o" >build/Makefile
29513 modpost_flag=''
29514 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
29515 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
29516 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29517 (eval $ac_try) 2>&5
29518 ac_status=$?
29519 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29520 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
29521 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29522 (eval $ac_try) 2>&5
29523 ac_status=$?
29524 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29525 test $ac_status = 0; }; }; then :
29526
29527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29528 $as_echo "yes" >&6; }
29529
29530 $as_echo "#define HAVE_POSIX_ACL_CHMOD 1" >>confdefs.h
29531
29532
29533 else
29534 $as_echo "$as_me: failed program was:" >&5
29535 sed 's/^/| /' conftest.$ac_ext >&5
29536
29537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29538 $as_echo "no" >&6; }
29539
29540
29541
29542 fi
29543 rm -Rf build
29544
29545
29546
29547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __posix_acl_chmod exists" >&5
29548 $as_echo_n "checking whether __posix_acl_chmod exists... " >&6; }
29549
29550
29551 cat confdefs.h - <<_ACEOF >conftest.c
29552
29553
29554 #include <linux/fs.h>
29555 #include <linux/posix_acl.h>
29556
29557 int
29558 main (void)
29559 {
29560
29561 __posix_acl_chmod(NULL, 0, 0)
29562
29563 ;
29564 return 0;
29565 }
29566
29567 _ACEOF
29568
29569
29570
29571 cat - <<_ACEOF >conftest.h
29572
29573 _ACEOF
29574
29575
29576 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
29577 echo "obj-m := conftest.o" >build/Makefile
29578 modpost_flag=''
29579 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
29580 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
29581 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29582 (eval $ac_try) 2>&5
29583 ac_status=$?
29584 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29585 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
29586 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29587 (eval $ac_try) 2>&5
29588 ac_status=$?
29589 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29590 test $ac_status = 0; }; }; then :
29591
29592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29593 $as_echo "yes" >&6; }
29594
29595 $as_echo "#define HAVE___POSIX_ACL_CHMOD 1" >>confdefs.h
29596
29597
29598 else
29599 $as_echo "$as_me: failed program was:" >&5
29600 sed 's/^/| /' conftest.$ac_ext >&5
29601
29602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29603 $as_echo "no" >&6; }
29604
29605
29606
29607 fi
29608 rm -Rf build
29609
29610
29611
29612
29613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether posix_acl_equiv_mode() wants umode_t" >&5
29614 $as_echo_n "checking whether posix_acl_equiv_mode() wants umode_t... " >&6; }
29615
29616
29617 cat confdefs.h - <<_ACEOF >conftest.c
29618
29619
29620 #include <linux/fs.h>
29621 #include <linux/posix_acl.h>
29622
29623 int
29624 main (void)
29625 {
29626
29627 umode_t tmp;
29628 posix_acl_equiv_mode(NULL,&tmp);
29629
29630 ;
29631 return 0;
29632 }
29633
29634 _ACEOF
29635
29636
29637
29638 cat - <<_ACEOF >conftest.h
29639
29640 _ACEOF
29641
29642
29643 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
29644 echo "obj-m := conftest.o" >build/Makefile
29645 modpost_flag=''
29646 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
29647 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
29648 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29649 (eval $ac_try) 2>&5
29650 ac_status=$?
29651 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29652 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
29653 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29654 (eval $ac_try) 2>&5
29655 ac_status=$?
29656 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29657 test $ac_status = 0; }; }; then :
29658
29659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29660 $as_echo "yes" >&6; }
29661
29662 $as_echo "#define HAVE_POSIX_ACL_EQUIV_MODE_UMODE_T 1" >>confdefs.h
29663
29664
29665 else
29666 $as_echo "$as_me: failed program was:" >&5
29667 sed 's/^/| /' conftest.$ac_ext >&5
29668
29669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29670 $as_echo "no" >&6; }
29671
29672
29673
29674 fi
29675 rm -Rf build
29676
29677
29678
29679
29680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether posix_acl_valid() wants user namespace" >&5
29681 $as_echo_n "checking whether posix_acl_valid() wants user namespace... " >&6; }
29682
29683
29684 cat confdefs.h - <<_ACEOF >conftest.c
29685
29686
29687 #include <linux/fs.h>
29688 #include <linux/posix_acl.h>
29689
29690 int
29691 main (void)
29692 {
29693
29694 struct user_namespace *user_ns = NULL;
29695 const struct posix_acl *acl = NULL;
29696 int error;
29697
29698 error = posix_acl_valid(user_ns, acl);
29699
29700 ;
29701 return 0;
29702 }
29703
29704 _ACEOF
29705
29706
29707
29708 cat - <<_ACEOF >conftest.h
29709
29710 _ACEOF
29711
29712
29713 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
29714 echo "obj-m := conftest.o" >build/Makefile
29715 modpost_flag=''
29716 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
29717 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
29718 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29719 (eval $ac_try) 2>&5
29720 ac_status=$?
29721 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29722 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
29723 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29724 (eval $ac_try) 2>&5
29725 ac_status=$?
29726 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29727 test $ac_status = 0; }; }; then :
29728
29729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29730 $as_echo "yes" >&6; }
29731
29732 $as_echo "#define HAVE_POSIX_ACL_VALID_WITH_NS 1" >>confdefs.h
29733
29734
29735 else
29736 $as_echo "$as_me: failed program was:" >&5
29737 sed 's/^/| /' conftest.$ac_ext >&5
29738
29739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29740 $as_echo "no" >&6; }
29741
29742
29743
29744 fi
29745 rm -Rf build
29746
29747
29748
29749
29750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->permission() exists" >&5
29751 $as_echo_n "checking whether iops->permission() exists... " >&6; }
29752
29753
29754 cat confdefs.h - <<_ACEOF >conftest.c
29755
29756
29757 #include <linux/fs.h>
29758
29759 int permission_fn(struct inode *inode, int mask) { return 0; }
29760
29761 static const struct inode_operations
29762 iops __attribute__ ((unused)) = {
29763 .permission = permission_fn,
29764 };
29765
29766 int
29767 main (void)
29768 {
29769
29770
29771 ;
29772 return 0;
29773 }
29774
29775 _ACEOF
29776
29777
29778
29779 cat - <<_ACEOF >conftest.h
29780
29781 _ACEOF
29782
29783
29784 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
29785 echo "obj-m := conftest.o" >build/Makefile
29786 modpost_flag=''
29787 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
29788 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
29789 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29790 (eval $ac_try) 2>&5
29791 ac_status=$?
29792 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29793 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
29794 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29795 (eval $ac_try) 2>&5
29796 ac_status=$?
29797 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29798 test $ac_status = 0; }; }; then :
29799
29800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29801 $as_echo "yes" >&6; }
29802
29803 $as_echo "#define HAVE_PERMISSION 1" >>confdefs.h
29804
29805
29806 else
29807 $as_echo "$as_me: failed program was:" >&5
29808 sed 's/^/| /' conftest.$ac_ext >&5
29809
29810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29811 $as_echo "no" >&6; }
29812
29813
29814
29815 fi
29816 rm -Rf build
29817
29818
29819
29820
29821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->permission() wants nameidata" >&5
29822 $as_echo_n "checking whether iops->permission() wants nameidata... " >&6; }
29823
29824
29825 cat confdefs.h - <<_ACEOF >conftest.c
29826
29827
29828 #include <linux/fs.h>
29829
29830 int permission_fn(struct inode *inode, int mask,
29831 struct nameidata *nd) { return 0; }
29832
29833 static const struct inode_operations
29834 iops __attribute__ ((unused)) = {
29835 .permission = permission_fn,
29836 };
29837
29838 int
29839 main (void)
29840 {
29841
29842
29843 ;
29844 return 0;
29845 }
29846
29847 _ACEOF
29848
29849
29850
29851 cat - <<_ACEOF >conftest.h
29852
29853 _ACEOF
29854
29855
29856 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
29857 echo "obj-m := conftest.o" >build/Makefile
29858 modpost_flag=''
29859 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
29860 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
29861 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29862 (eval $ac_try) 2>&5
29863 ac_status=$?
29864 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29865 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
29866 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29867 (eval $ac_try) 2>&5
29868 ac_status=$?
29869 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29870 test $ac_status = 0; }; }; then :
29871
29872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29873 $as_echo "yes" >&6; }
29874
29875 $as_echo "#define HAVE_PERMISSION 1" >>confdefs.h
29876
29877
29878 $as_echo "#define HAVE_PERMISSION_WITH_NAMEIDATA 1" >>confdefs.h
29879
29880
29881 else
29882 $as_echo "$as_me: failed program was:" >&5
29883 sed 's/^/| /' conftest.$ac_ext >&5
29884
29885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29886 $as_echo "no" >&6; }
29887
29888
29889
29890 fi
29891 rm -Rf build
29892
29893
29894
29895
29896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->check_acl() exists" >&5
29897 $as_echo_n "checking whether iops->check_acl() exists... " >&6; }
29898
29899
29900 cat confdefs.h - <<_ACEOF >conftest.c
29901
29902
29903 #include <linux/fs.h>
29904
29905 int check_acl_fn(struct inode *inode, int mask) { return 0; }
29906
29907 static const struct inode_operations
29908 iops __attribute__ ((unused)) = {
29909 .check_acl = check_acl_fn,
29910 };
29911
29912 int
29913 main (void)
29914 {
29915
29916
29917 ;
29918 return 0;
29919 }
29920
29921 _ACEOF
29922
29923
29924
29925 cat - <<_ACEOF >conftest.h
29926
29927 _ACEOF
29928
29929
29930 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
29931 echo "obj-m := conftest.o" >build/Makefile
29932 modpost_flag=''
29933 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
29934 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
29935 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29936 (eval $ac_try) 2>&5
29937 ac_status=$?
29938 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29939 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
29940 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29941 (eval $ac_try) 2>&5
29942 ac_status=$?
29943 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29944 test $ac_status = 0; }; }; then :
29945
29946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29947 $as_echo "yes" >&6; }
29948
29949 $as_echo "#define HAVE_CHECK_ACL 1" >>confdefs.h
29950
29951
29952 else
29953 $as_echo "$as_me: failed program was:" >&5
29954 sed 's/^/| /' conftest.$ac_ext >&5
29955
29956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29957 $as_echo "no" >&6; }
29958
29959
29960
29961 fi
29962 rm -Rf build
29963
29964
29965
29966
29967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->check_acl() wants flags" >&5
29968 $as_echo_n "checking whether iops->check_acl() wants flags... " >&6; }
29969
29970
29971 cat confdefs.h - <<_ACEOF >conftest.c
29972
29973
29974 #include <linux/fs.h>
29975
29976 int check_acl_fn(struct inode *inode, int mask,
29977 unsigned int flags) { return 0; }
29978
29979 static const struct inode_operations
29980 iops __attribute__ ((unused)) = {
29981 .check_acl = check_acl_fn,
29982 };
29983
29984 int
29985 main (void)
29986 {
29987
29988
29989 ;
29990 return 0;
29991 }
29992
29993 _ACEOF
29994
29995
29996
29997 cat - <<_ACEOF >conftest.h
29998
29999 _ACEOF
30000
30001
30002 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
30003 echo "obj-m := conftest.o" >build/Makefile
30004 modpost_flag=''
30005 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
30006 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
30007 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30008 (eval $ac_try) 2>&5
30009 ac_status=$?
30010 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30011 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
30012 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30013 (eval $ac_try) 2>&5
30014 ac_status=$?
30015 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30016 test $ac_status = 0; }; }; then :
30017
30018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30019 $as_echo "yes" >&6; }
30020
30021 $as_echo "#define HAVE_CHECK_ACL 1" >>confdefs.h
30022
30023
30024 $as_echo "#define HAVE_CHECK_ACL_WITH_FLAGS 1" >>confdefs.h
30025
30026
30027 else
30028 $as_echo "$as_me: failed program was:" >&5
30029 sed 's/^/| /' conftest.$ac_ext >&5
30030
30031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30032 $as_echo "no" >&6; }
30033
30034
30035
30036 fi
30037 rm -Rf build
30038
30039
30040
30041
30042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->get_acl() exists" >&5
30043 $as_echo_n "checking whether iops->get_acl() exists... " >&6; }
30044
30045
30046 cat confdefs.h - <<_ACEOF >conftest.c
30047
30048
30049 #include <linux/fs.h>
30050
30051 struct posix_acl *get_acl_fn(struct inode *inode, int type)
30052 { return NULL; }
30053
30054 static const struct inode_operations
30055 iops __attribute__ ((unused)) = {
30056 .get_acl = get_acl_fn,
30057 };
30058
30059 int
30060 main (void)
30061 {
30062
30063
30064 ;
30065 return 0;
30066 }
30067
30068 _ACEOF
30069
30070
30071
30072 cat - <<_ACEOF >conftest.h
30073
30074 _ACEOF
30075
30076
30077 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
30078 echo "obj-m := conftest.o" >build/Makefile
30079 modpost_flag=''
30080 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
30081 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
30082 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30083 (eval $ac_try) 2>&5
30084 ac_status=$?
30085 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30086 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
30087 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30088 (eval $ac_try) 2>&5
30089 ac_status=$?
30090 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30091 test $ac_status = 0; }; }; then :
30092
30093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30094 $as_echo "yes" >&6; }
30095
30096 $as_echo "#define HAVE_GET_ACL 1" >>confdefs.h
30097
30098
30099 else
30100 $as_echo "$as_me: failed program was:" >&5
30101 sed 's/^/| /' conftest.$ac_ext >&5
30102
30103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30104 $as_echo "no" >&6; }
30105
30106
30107
30108 fi
30109 rm -Rf build
30110
30111
30112
30113
30114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->set_acl() exists" >&5
30115 $as_echo_n "checking whether iops->set_acl() exists... " >&6; }
30116
30117
30118 cat confdefs.h - <<_ACEOF >conftest.c
30119
30120
30121 #include <linux/fs.h>
30122
30123 int set_acl_fn(struct inode *inode, struct posix_acl *acl, int type)
30124 { return 0; }
30125
30126 static const struct inode_operations
30127 iops __attribute__ ((unused)) = {
30128 .set_acl = set_acl_fn,
30129 };
30130
30131 int
30132 main (void)
30133 {
30134
30135
30136 ;
30137 return 0;
30138 }
30139
30140 _ACEOF
30141
30142
30143
30144 cat - <<_ACEOF >conftest.h
30145
30146 _ACEOF
30147
30148
30149 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
30150 echo "obj-m := conftest.o" >build/Makefile
30151 modpost_flag=''
30152 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
30153 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
30154 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30155 (eval $ac_try) 2>&5
30156 ac_status=$?
30157 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30158 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
30159 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30160 (eval $ac_try) 2>&5
30161 ac_status=$?
30162 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30163 test $ac_status = 0; }; }; then :
30164
30165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30166 $as_echo "yes" >&6; }
30167
30168 $as_echo "#define HAVE_SET_ACL 1" >>confdefs.h
30169
30170
30171 else
30172 $as_echo "$as_me: failed program was:" >&5
30173 sed 's/^/| /' conftest.$ac_ext >&5
30174
30175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30176 $as_echo "no" >&6; }
30177
30178
30179
30180 fi
30181 rm -Rf build
30182
30183
30184
30185
30186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether uncached_acl_sentinel() exists" >&5
30187 $as_echo_n "checking whether uncached_acl_sentinel() exists... " >&6; }
30188
30189
30190 cat confdefs.h - <<_ACEOF >conftest.c
30191
30192
30193 #include <linux/fs.h>
30194
30195 int
30196 main (void)
30197 {
30198
30199 void *sentinel __attribute__ ((unused)) = uncached_acl_sentinel(NULL);
30200
30201 ;
30202 return 0;
30203 }
30204
30205 _ACEOF
30206
30207
30208
30209 cat - <<_ACEOF >conftest.h
30210
30211 _ACEOF
30212
30213
30214 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
30215 echo "obj-m := conftest.o" >build/Makefile
30216 modpost_flag=''
30217 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
30218 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
30219 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30220 (eval $ac_try) 2>&5
30221 ac_status=$?
30222 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30223 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
30224 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30225 (eval $ac_try) 2>&5
30226 ac_status=$?
30227 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30228 test $ac_status = 0; }; }; then :
30229
30230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30231 $as_echo "yes" >&6; }
30232
30233 $as_echo "#define HAVE_KERNEL_GET_ACL_HANDLE_CACHE 1" >>confdefs.h
30234
30235
30236 else
30237 $as_echo "$as_me: failed program was:" >&5
30238 sed 's/^/| /' conftest.$ac_ext >&5
30239
30240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30241 $as_echo "no" >&6; }
30242
30243
30244
30245 fi
30246 rm -Rf build
30247
30248
30249
30250
30251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sops->show_options() wants dentry" >&5
30252 $as_echo_n "checking whether sops->show_options() wants dentry... " >&6; }
30253
30254
30255
30256 cat confdefs.h - <<_ACEOF >conftest.c
30257
30258
30259 #include <linux/fs.h>
30260
30261 int show_options (struct seq_file * x, struct dentry * y) { return 0; };
30262 static struct super_operations sops __attribute__ ((unused)) = {
30263 .show_options = show_options,
30264 };
30265
30266 int
30267 main (void)
30268 {
30269
30270
30271 ;
30272 return 0;
30273 }
30274
30275 _ACEOF
30276
30277
30278
30279 cat - <<_ACEOF >conftest.h
30280
30281 _ACEOF
30282
30283
30284 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
30285 echo "obj-m := conftest.o" >build/Makefile
30286 modpost_flag=''
30287 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
30288 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
30289 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30290 (eval $ac_try) 2>&5
30291 ac_status=$?
30292 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30293 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
30294 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30295 (eval $ac_try) 2>&5
30296 ac_status=$?
30297 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30298 test $ac_status = 0; }; }; then :
30299
30300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30301 $as_echo "yes" >&6; }
30302
30303 $as_echo "#define HAVE_SHOW_OPTIONS_WITH_DENTRY 1" >>confdefs.h
30304
30305
30306 else
30307 $as_echo "$as_me: failed program was:" >&5
30308 sed 's/^/| /' conftest.$ac_ext >&5
30309
30310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30311 $as_echo "no" >&6; }
30312
30313
30314
30315 fi
30316 rm -Rf build
30317
30318
30319
30320
30321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether file_inode() is available" >&5
30322 $as_echo_n "checking whether file_inode() is available... " >&6; }
30323
30324
30325 cat confdefs.h - <<_ACEOF >conftest.c
30326
30327
30328 #include <linux/fs.h>
30329
30330 int
30331 main (void)
30332 {
30333
30334 struct file *f = NULL;
30335 file_inode(f);
30336
30337 ;
30338 return 0;
30339 }
30340
30341 _ACEOF
30342
30343
30344
30345 cat - <<_ACEOF >conftest.h
30346
30347 _ACEOF
30348
30349
30350 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
30351 echo "obj-m := conftest.o" >build/Makefile
30352 modpost_flag=''
30353 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
30354 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
30355 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30356 (eval $ac_try) 2>&5
30357 ac_status=$?
30358 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30359 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
30360 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30361 (eval $ac_try) 2>&5
30362 ac_status=$?
30363 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30364 test $ac_status = 0; }; }; then :
30365
30366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30367 $as_echo "yes" >&6; }
30368
30369 $as_echo "#define HAVE_FILE_INODE 1" >>confdefs.h
30370
30371
30372 else
30373 $as_echo "$as_me: failed program was:" >&5
30374 sed 's/^/| /' conftest.$ac_ext >&5
30375
30376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30377 $as_echo "no" >&6; }
30378
30379
30380
30381 fi
30382 rm -Rf build
30383
30384
30385
30386
30387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fops->fsync() wants" >&5
30388 $as_echo_n "checking whether fops->fsync() wants... " >&6; }
30389
30390
30391
30392 cat confdefs.h - <<_ACEOF >conftest.c
30393
30394
30395 #include <linux/fs.h>
30396
30397 int test_fsync(struct file *f, struct dentry *dentry, int x)
30398 { return 0; }
30399
30400 static const struct file_operations
30401 fops __attribute__ ((unused)) = {
30402 .fsync = test_fsync,
30403 };
30404
30405 int
30406 main (void)
30407 {
30408
30409
30410 ;
30411 return 0;
30412 }
30413
30414 _ACEOF
30415
30416
30417
30418 cat - <<_ACEOF >conftest.h
30419
30420 _ACEOF
30421
30422
30423 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
30424 echo "obj-m := conftest.o" >build/Makefile
30425 modpost_flag=''
30426 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
30427 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
30428 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30429 (eval $ac_try) 2>&5
30430 ac_status=$?
30431 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30432 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
30433 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30434 (eval $ac_try) 2>&5
30435 ac_status=$?
30436 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30437 test $ac_status = 0; }; }; then :
30438
30439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: dentry" >&5
30440 $as_echo "dentry" >&6; }
30441
30442 $as_echo "#define HAVE_FSYNC_WITH_DENTRY 1" >>confdefs.h
30443
30444
30445 else
30446 $as_echo "$as_me: failed program was:" >&5
30447 sed 's/^/| /' conftest.$ac_ext >&5
30448
30449
30450
30451
30452 fi
30453 rm -Rf build
30454
30455
30456
30457
30458
30459
30460 cat confdefs.h - <<_ACEOF >conftest.c
30461
30462
30463 #include <linux/fs.h>
30464
30465 int test_fsync(struct file *f, int x) { return 0; }
30466
30467 static const struct file_operations
30468 fops __attribute__ ((unused)) = {
30469 .fsync = test_fsync,
30470 };
30471
30472 int
30473 main (void)
30474 {
30475
30476
30477 ;
30478 return 0;
30479 }
30480
30481 _ACEOF
30482
30483
30484
30485 cat - <<_ACEOF >conftest.h
30486
30487 _ACEOF
30488
30489
30490 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
30491 echo "obj-m := conftest.o" >build/Makefile
30492 modpost_flag=''
30493 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
30494 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
30495 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30496 (eval $ac_try) 2>&5
30497 ac_status=$?
30498 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30499 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
30500 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30501 (eval $ac_try) 2>&5
30502 ac_status=$?
30503 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30504 test $ac_status = 0; }; }; then :
30505
30506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no dentry" >&5
30507 $as_echo "no dentry" >&6; }
30508
30509 $as_echo "#define HAVE_FSYNC_WITHOUT_DENTRY 1" >>confdefs.h
30510
30511
30512 else
30513 $as_echo "$as_me: failed program was:" >&5
30514 sed 's/^/| /' conftest.$ac_ext >&5
30515
30516
30517
30518
30519 fi
30520 rm -Rf build
30521
30522
30523
30524
30525
30526
30527 cat confdefs.h - <<_ACEOF >conftest.c
30528
30529
30530 #include <linux/fs.h>
30531
30532 int test_fsync(struct file *f, loff_t a, loff_t b, int c)
30533 { return 0; }
30534
30535 static const struct file_operations
30536 fops __attribute__ ((unused)) = {
30537 .fsync = test_fsync,
30538 };
30539
30540 int
30541 main (void)
30542 {
30543
30544
30545 ;
30546 return 0;
30547 }
30548
30549 _ACEOF
30550
30551
30552
30553 cat - <<_ACEOF >conftest.h
30554
30555 _ACEOF
30556
30557
30558 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
30559 echo "obj-m := conftest.o" >build/Makefile
30560 modpost_flag=''
30561 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
30562 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
30563 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30564 (eval $ac_try) 2>&5
30565 ac_status=$?
30566 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30567 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
30568 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30569 (eval $ac_try) 2>&5
30570 ac_status=$?
30571 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30572 test $ac_status = 0; }; }; then :
30573
30574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: range" >&5
30575 $as_echo "range" >&6; }
30576
30577 $as_echo "#define HAVE_FSYNC_RANGE 1" >>confdefs.h
30578
30579
30580 else
30581 $as_echo "$as_me: failed program was:" >&5
30582 sed 's/^/| /' conftest.$ac_ext >&5
30583
30584
30585
30586
30587 fi
30588 rm -Rf build
30589
30590
30591
30592
30593
30594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sops->evict_inode() exists" >&5
30595 $as_echo_n "checking whether sops->evict_inode() exists... " >&6; }
30596
30597
30598 cat confdefs.h - <<_ACEOF >conftest.c
30599
30600
30601 #include <linux/fs.h>
30602 void evict_inode (struct inode * t) { return; }
30603 static struct super_operations sops __attribute__ ((unused)) = {
30604 .evict_inode = evict_inode,
30605 };
30606
30607 int
30608 main (void)
30609 {
30610
30611
30612 ;
30613 return 0;
30614 }
30615
30616 _ACEOF
30617
30618
30619
30620 cat - <<_ACEOF >conftest.h
30621
30622 _ACEOF
30623
30624
30625 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
30626 echo "obj-m := conftest.o" >build/Makefile
30627 modpost_flag=''
30628 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
30629 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
30630 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30631 (eval $ac_try) 2>&5
30632 ac_status=$?
30633 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30634 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
30635 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30636 (eval $ac_try) 2>&5
30637 ac_status=$?
30638 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30639 test $ac_status = 0; }; }; then :
30640
30641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30642 $as_echo "yes" >&6; }
30643
30644 $as_echo "#define HAVE_EVICT_INODE 1" >>confdefs.h
30645
30646
30647 else
30648 $as_echo "$as_me: failed program was:" >&5
30649 sed 's/^/| /' conftest.$ac_ext >&5
30650
30651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30652 $as_echo "no" >&6; }
30653
30654
30655
30656 fi
30657 rm -Rf build
30658
30659
30660
30661
30662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sops->dirty_inode() wants flags" >&5
30663 $as_echo_n "checking whether sops->dirty_inode() wants flags... " >&6; }
30664
30665
30666 cat confdefs.h - <<_ACEOF >conftest.c
30667
30668
30669 #include <linux/fs.h>
30670
30671 void dirty_inode(struct inode *a, int b) { return; }
30672
30673 static const struct super_operations
30674 sops __attribute__ ((unused)) = {
30675 .dirty_inode = dirty_inode,
30676 };
30677
30678 int
30679 main (void)
30680 {
30681
30682
30683 ;
30684 return 0;
30685 }
30686
30687 _ACEOF
30688
30689
30690
30691 cat - <<_ACEOF >conftest.h
30692
30693 _ACEOF
30694
30695
30696 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
30697 echo "obj-m := conftest.o" >build/Makefile
30698 modpost_flag=''
30699 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
30700 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
30701 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30702 (eval $ac_try) 2>&5
30703 ac_status=$?
30704 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30705 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
30706 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30707 (eval $ac_try) 2>&5
30708 ac_status=$?
30709 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30710 test $ac_status = 0; }; }; then :
30711
30712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30713 $as_echo "yes" >&6; }
30714
30715 $as_echo "#define HAVE_DIRTY_INODE_WITH_FLAGS 1" >>confdefs.h
30716
30717
30718 else
30719 $as_echo "$as_me: failed program was:" >&5
30720 sed 's/^/| /' conftest.$ac_ext >&5
30721
30722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30723 $as_echo "no" >&6; }
30724
30725
30726
30727 fi
30728 rm -Rf build
30729
30730
30731
30732
30733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sops->nr_cached_objects() exists" >&5
30734 $as_echo_n "checking whether sops->nr_cached_objects() exists... " >&6; }
30735
30736
30737 cat confdefs.h - <<_ACEOF >conftest.c
30738
30739
30740 #include <linux/fs.h>
30741
30742 int nr_cached_objects(struct super_block *sb) { return 0; }
30743
30744 static const struct super_operations
30745 sops __attribute__ ((unused)) = {
30746 .nr_cached_objects = nr_cached_objects,
30747 };
30748
30749 int
30750 main (void)
30751 {
30752
30753
30754 ;
30755 return 0;
30756 }
30757
30758 _ACEOF
30759
30760
30761
30762 cat - <<_ACEOF >conftest.h
30763
30764 _ACEOF
30765
30766
30767 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
30768 echo "obj-m := conftest.o" >build/Makefile
30769 modpost_flag=''
30770 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
30771 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
30772 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30773 (eval $ac_try) 2>&5
30774 ac_status=$?
30775 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30776 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
30777 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30778 (eval $ac_try) 2>&5
30779 ac_status=$?
30780 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30781 test $ac_status = 0; }; }; then :
30782
30783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30784 $as_echo "yes" >&6; }
30785
30786 $as_echo "#define HAVE_NR_CACHED_OBJECTS 1" >>confdefs.h
30787
30788
30789 else
30790 $as_echo "$as_me: failed program was:" >&5
30791 sed 's/^/| /' conftest.$ac_ext >&5
30792
30793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30794 $as_echo "no" >&6; }
30795
30796
30797
30798 fi
30799 rm -Rf build
30800
30801
30802
30803
30804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sops->free_cached_objects() exists" >&5
30805 $as_echo_n "checking whether sops->free_cached_objects() exists... " >&6; }
30806
30807
30808 cat confdefs.h - <<_ACEOF >conftest.c
30809
30810
30811 #include <linux/fs.h>
30812
30813 void free_cached_objects(struct super_block *sb, int x)
30814 { return; }
30815
30816 static const struct super_operations
30817 sops __attribute__ ((unused)) = {
30818 .free_cached_objects = free_cached_objects,
30819 };
30820
30821 int
30822 main (void)
30823 {
30824
30825
30826 ;
30827 return 0;
30828 }
30829
30830 _ACEOF
30831
30832
30833
30834 cat - <<_ACEOF >conftest.h
30835
30836 _ACEOF
30837
30838
30839 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
30840 echo "obj-m := conftest.o" >build/Makefile
30841 modpost_flag=''
30842 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
30843 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
30844 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30845 (eval $ac_try) 2>&5
30846 ac_status=$?
30847 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30848 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
30849 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30850 (eval $ac_try) 2>&5
30851 ac_status=$?
30852 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30853 test $ac_status = 0; }; }; then :
30854
30855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30856 $as_echo "yes" >&6; }
30857
30858 $as_echo "#define HAVE_FREE_CACHED_OBJECTS 1" >>confdefs.h
30859
30860
30861 else
30862 $as_echo "$as_me: failed program was:" >&5
30863 sed 's/^/| /' conftest.$ac_ext >&5
30864
30865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30866 $as_echo "no" >&6; }
30867
30868
30869
30870 fi
30871 rm -Rf build
30872
30873
30874
30875
30876
30877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fops->fallocate() exists" >&5
30878 $as_echo_n "checking whether fops->fallocate() exists... " >&6; }
30879
30880
30881 cat confdefs.h - <<_ACEOF >conftest.c
30882
30883
30884 #include <linux/fs.h>
30885
30886 long test_fallocate(struct file *file, int mode,
30887 loff_t offset, loff_t len) { return 0; }
30888
30889 static const struct file_operations
30890 fops __attribute__ ((unused)) = {
30891 .fallocate = test_fallocate,
30892 };
30893
30894 int
30895 main (void)
30896 {
30897
30898
30899 ;
30900 return 0;
30901 }
30902
30903 _ACEOF
30904
30905
30906
30907 cat - <<_ACEOF >conftest.h
30908
30909 _ACEOF
30910
30911
30912 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
30913 echo "obj-m := conftest.o" >build/Makefile
30914 modpost_flag=''
30915 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
30916 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
30917 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30918 (eval $ac_try) 2>&5
30919 ac_status=$?
30920 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30921 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
30922 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30923 (eval $ac_try) 2>&5
30924 ac_status=$?
30925 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30926 test $ac_status = 0; }; }; then :
30927
30928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30929 $as_echo "yes" >&6; }
30930
30931 $as_echo "#define HAVE_FILE_FALLOCATE 1" >>confdefs.h
30932
30933
30934 else
30935 $as_echo "$as_me: failed program was:" >&5
30936 sed 's/^/| /' conftest.$ac_ext >&5
30937
30938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30939 $as_echo "no" >&6; }
30940
30941
30942
30943 fi
30944 rm -Rf build
30945
30946
30947
30948
30949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->fallocate() exists" >&5
30950 $as_echo_n "checking whether iops->fallocate() exists... " >&6; }
30951
30952
30953 cat confdefs.h - <<_ACEOF >conftest.c
30954
30955
30956 #include <linux/fs.h>
30957
30958 long test_fallocate(struct inode *inode, int mode,
30959 loff_t offset, loff_t len) { return 0; }
30960
30961 static const struct inode_operations
30962 fops __attribute__ ((unused)) = {
30963 .fallocate = test_fallocate,
30964 };
30965
30966 int
30967 main (void)
30968 {
30969
30970
30971 ;
30972 return 0;
30973 }
30974
30975 _ACEOF
30976
30977
30978
30979 cat - <<_ACEOF >conftest.h
30980
30981 _ACEOF
30982
30983
30984 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
30985 echo "obj-m := conftest.o" >build/Makefile
30986 modpost_flag=''
30987 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
30988 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
30989 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30990 (eval $ac_try) 2>&5
30991 ac_status=$?
30992 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30993 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
30994 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30995 (eval $ac_try) 2>&5
30996 ac_status=$?
30997 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30998 test $ac_status = 0; }; }; then :
30999
31000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31001 $as_echo "yes" >&6; }
31002
31003 $as_echo "#define HAVE_INODE_FALLOCATE 1" >>confdefs.h
31004
31005
31006 else
31007 $as_echo "$as_me: failed program was:" >&5
31008 sed 's/^/| /' conftest.$ac_ext >&5
31009
31010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31011 $as_echo "no" >&6; }
31012
31013
31014
31015 fi
31016 rm -Rf build
31017
31018
31019
31020
31021
31022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fops->aio_fsync() exists" >&5
31023 $as_echo_n "checking whether fops->aio_fsync() exists... " >&6; }
31024
31025
31026 cat confdefs.h - <<_ACEOF >conftest.c
31027
31028
31029 #include <linux/fs.h>
31030
31031 static const struct file_operations
31032 fops __attribute__ ((unused)) = {
31033 .aio_fsync = NULL,
31034 };
31035
31036 int
31037 main (void)
31038 {
31039
31040
31041 ;
31042 return 0;
31043 }
31044
31045 _ACEOF
31046
31047
31048
31049 cat - <<_ACEOF >conftest.h
31050
31051 _ACEOF
31052
31053
31054 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
31055 echo "obj-m := conftest.o" >build/Makefile
31056 modpost_flag=''
31057 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
31058 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
31059 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31060 (eval $ac_try) 2>&5
31061 ac_status=$?
31062 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31063 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
31064 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31065 (eval $ac_try) 2>&5
31066 ac_status=$?
31067 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31068 test $ac_status = 0; }; }; then :
31069
31070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31071 $as_echo "yes" >&6; }
31072
31073 $as_echo "#define HAVE_FILE_AIO_FSYNC 1" >>confdefs.h
31074
31075
31076 else
31077 $as_echo "$as_me: failed program was:" >&5
31078 sed 's/^/| /' conftest.$ac_ext >&5
31079
31080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31081 $as_echo "no" >&6; }
31082
31083
31084
31085 fi
31086 rm -Rf build
31087
31088
31089
31090
31091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->create()/mkdir()/mknod() take umode_t" >&5
31092 $as_echo_n "checking whether iops->create()/mkdir()/mknod() take umode_t... " >&6; }
31093
31094
31095 cat confdefs.h - <<_ACEOF >conftest.c
31096
31097
31098 #include <linux/fs.h>
31099
31100 int mkdir(struct inode *inode, struct dentry *dentry,
31101 umode_t umode) { return 0; }
31102
31103 static const struct inode_operations
31104 iops __attribute__ ((unused)) = {
31105 .mkdir = mkdir,
31106 };
31107
31108 int
31109 main (void)
31110 {
31111
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_MKDIR_UMODE_T 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 iops->lookup() passes nameidata" >&5
31164 $as_echo_n "checking whether iops->lookup() passes nameidata... " >&6; }
31165
31166
31167 cat confdefs.h - <<_ACEOF >conftest.c
31168
31169
31170 #include <linux/fs.h>
31171
31172 struct dentry *inode_lookup(struct inode *inode,
31173 struct dentry *dentry, struct nameidata *nidata)
31174 { return NULL; }
31175
31176 static const struct inode_operations iops
31177 __attribute__ ((unused)) = {
31178 .lookup = inode_lookup,
31179 };
31180
31181 int
31182 main (void)
31183 {
31184
31185
31186 ;
31187 return 0;
31188 }
31189
31190 _ACEOF
31191
31192
31193
31194 cat - <<_ACEOF >conftest.h
31195
31196 _ACEOF
31197
31198
31199 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
31200 echo "obj-m := conftest.o" >build/Makefile
31201 modpost_flag=''
31202 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
31203 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
31204 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31205 (eval $ac_try) 2>&5
31206 ac_status=$?
31207 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31208 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
31209 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31210 (eval $ac_try) 2>&5
31211 ac_status=$?
31212 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31213 test $ac_status = 0; }; }; then :
31214
31215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31216 $as_echo "yes" >&6; }
31217
31218 $as_echo "#define HAVE_LOOKUP_NAMEIDATA 1" >>confdefs.h
31219
31220
31221 else
31222 $as_echo "$as_me: failed program was:" >&5
31223 sed 's/^/| /' conftest.$ac_ext >&5
31224
31225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31226 $as_echo "no" >&6; }
31227
31228
31229
31230 fi
31231 rm -Rf build
31232
31233
31234
31235
31236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->create() passes nameidata" >&5
31237 $as_echo_n "checking whether iops->create() passes nameidata... " >&6; }
31238
31239
31240 cat confdefs.h - <<_ACEOF >conftest.c
31241
31242
31243 #include <linux/fs.h>
31244
31245 #ifdef HAVE_MKDIR_UMODE_T
31246 int inode_create(struct inode *inode ,struct dentry *dentry,
31247 umode_t umode, struct nameidata *nidata) { return 0; }
31248 #else
31249 int inode_create(struct inode *inode,struct dentry *dentry,
31250 int umode, struct nameidata * nidata) { return 0; }
31251 #endif
31252
31253 static const struct inode_operations
31254 iops __attribute__ ((unused)) = {
31255 .create = inode_create,
31256 };
31257
31258 int
31259 main (void)
31260 {
31261
31262
31263 ;
31264 return 0;
31265 }
31266
31267 _ACEOF
31268
31269
31270
31271 cat - <<_ACEOF >conftest.h
31272
31273 _ACEOF
31274
31275
31276 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
31277 echo "obj-m := conftest.o" >build/Makefile
31278 modpost_flag=''
31279 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
31280 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
31281 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31282 (eval $ac_try) 2>&5
31283 ac_status=$?
31284 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31285 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
31286 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31287 (eval $ac_try) 2>&5
31288 ac_status=$?
31289 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31290 test $ac_status = 0; }; }; then :
31291
31292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31293 $as_echo "yes" >&6; }
31294
31295 $as_echo "#define HAVE_CREATE_NAMEIDATA 1" >>confdefs.h
31296
31297
31298 else
31299 $as_echo "$as_me: failed program was:" >&5
31300 sed 's/^/| /' conftest.$ac_ext >&5
31301
31302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31303 $as_echo "no" >&6; }
31304
31305
31306
31307 fi
31308 rm -Rf build
31309
31310
31311
31312
31313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->get_link() passes delayed" >&5
31314 $as_echo_n "checking whether iops->get_link() passes delayed... " >&6; }
31315
31316
31317 cat confdefs.h - <<_ACEOF >conftest.c
31318
31319
31320 #include <linux/fs.h>
31321 const char *get_link(struct dentry *de, struct inode *ip,
31322 struct delayed_call *done) { return "symlink"; }
31323 static struct inode_operations
31324 iops __attribute__ ((unused)) = {
31325 .get_link = get_link,
31326 };
31327
31328 int
31329 main (void)
31330 {
31331
31332
31333 ;
31334 return 0;
31335 }
31336
31337 _ACEOF
31338
31339
31340
31341 cat - <<_ACEOF >conftest.h
31342
31343 _ACEOF
31344
31345
31346 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
31347 echo "obj-m := conftest.o" >build/Makefile
31348 modpost_flag=''
31349 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
31350 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
31351 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31352 (eval $ac_try) 2>&5
31353 ac_status=$?
31354 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31355 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
31356 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31357 (eval $ac_try) 2>&5
31358 ac_status=$?
31359 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31360 test $ac_status = 0; }; }; then :
31361
31362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31363 $as_echo "yes" >&6; }
31364
31365 $as_echo "#define HAVE_GET_LINK_DELAYED 1" >>confdefs.h
31366
31367
31368 else
31369 $as_echo "$as_me: failed program was:" >&5
31370 sed 's/^/| /' conftest.$ac_ext >&5
31371
31372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31373 $as_echo "no" >&6; }
31374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->get_link() passes cookie" >&5
31375 $as_echo_n "checking whether iops->get_link() passes cookie... " >&6; }
31376
31377
31378 cat confdefs.h - <<_ACEOF >conftest.c
31379
31380
31381 #include <linux/fs.h>
31382 const char *get_link(struct dentry *de, struct
31383 inode *ip, void **cookie) { return "symlink"; }
31384 static struct inode_operations
31385 iops __attribute__ ((unused)) = {
31386 .get_link = get_link,
31387 };
31388
31389 int
31390 main (void)
31391 {
31392
31393
31394 ;
31395 return 0;
31396 }
31397
31398 _ACEOF
31399
31400
31401
31402 cat - <<_ACEOF >conftest.h
31403
31404 _ACEOF
31405
31406
31407 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
31408 echo "obj-m := conftest.o" >build/Makefile
31409 modpost_flag=''
31410 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
31411 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
31412 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31413 (eval $ac_try) 2>&5
31414 ac_status=$?
31415 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31416 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
31417 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31418 (eval $ac_try) 2>&5
31419 ac_status=$?
31420 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31421 test $ac_status = 0; }; }; then :
31422
31423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31424 $as_echo "yes" >&6; }
31425
31426 $as_echo "#define HAVE_GET_LINK_COOKIE 1" >>confdefs.h
31427
31428
31429 else
31430 $as_echo "$as_me: failed program was:" >&5
31431 sed 's/^/| /' conftest.$ac_ext >&5
31432
31433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31434 $as_echo "no" >&6; }
31435
31436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->follow_link() passes cookie" >&5
31437 $as_echo_n "checking whether iops->follow_link() passes cookie... " >&6; }
31438
31439
31440 cat confdefs.h - <<_ACEOF >conftest.c
31441
31442
31443 #include <linux/fs.h>
31444 const char *follow_link(struct dentry *de,
31445 void **cookie) { return "symlink"; }
31446 static struct inode_operations
31447 iops __attribute__ ((unused)) = {
31448 .follow_link = follow_link,
31449 };
31450
31451 int
31452 main (void)
31453 {
31454
31455
31456 ;
31457 return 0;
31458 }
31459
31460 _ACEOF
31461
31462
31463
31464 cat - <<_ACEOF >conftest.h
31465
31466 _ACEOF
31467
31468
31469 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
31470 echo "obj-m := conftest.o" >build/Makefile
31471 modpost_flag=''
31472 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
31473 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
31474 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31475 (eval $ac_try) 2>&5
31476 ac_status=$?
31477 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31478 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
31479 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31480 (eval $ac_try) 2>&5
31481 ac_status=$?
31482 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31483 test $ac_status = 0; }; }; then :
31484
31485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31486 $as_echo "yes" >&6; }
31487
31488 $as_echo "#define HAVE_FOLLOW_LINK_COOKIE 1" >>confdefs.h
31489
31490
31491 else
31492 $as_echo "$as_me: failed program was:" >&5
31493 sed 's/^/| /' conftest.$ac_ext >&5
31494
31495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31496 $as_echo "no" >&6; }
31497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->follow_link() passes nameidata" >&5
31498 $as_echo_n "checking whether iops->follow_link() passes nameidata... " >&6; }
31499
31500
31501 cat confdefs.h - <<_ACEOF >conftest.c
31502
31503
31504 #include <linux/fs.h>
31505 void *follow_link(struct dentry *de, struct
31506 nameidata *nd) { return (void *)NULL; }
31507 static struct inode_operations
31508 iops __attribute__ ((unused)) = {
31509 .follow_link = follow_link,
31510 };
31511
31512 int
31513 main (void)
31514 {
31515
31516
31517 ;
31518 return 0;
31519 }
31520
31521 _ACEOF
31522
31523
31524
31525 cat - <<_ACEOF >conftest.h
31526
31527 _ACEOF
31528
31529
31530 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
31531 echo "obj-m := conftest.o" >build/Makefile
31532 modpost_flag=''
31533 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
31534 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
31535 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31536 (eval $ac_try) 2>&5
31537 ac_status=$?
31538 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31539 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
31540 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31541 (eval $ac_try) 2>&5
31542 ac_status=$?
31543 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31544 test $ac_status = 0; }; }; then :
31545
31546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31547 $as_echo "yes" >&6; }
31548
31549 $as_echo "#define HAVE_FOLLOW_LINK_NAMEIDATA 1" >>confdefs.h
31550
31551
31552 else
31553 $as_echo "$as_me: failed program was:" >&5
31554 sed 's/^/| /' conftest.$ac_ext >&5
31555
31556 as_fn_error $? "no; please file a bug report" "$LINENO" 5
31557
31558
31559
31560 fi
31561 rm -Rf build
31562
31563
31564
31565
31566
31567 fi
31568 rm -Rf build
31569
31570
31571
31572
31573
31574
31575 fi
31576 rm -Rf build
31577
31578
31579
31580
31581
31582 fi
31583 rm -Rf build
31584
31585
31586
31587
31588
31589
31590 cat confdefs.h - <<_ACEOF >conftest.c
31591
31592
31593 #if !defined(HAVE_GET_LINK_DELAYED)
31594 #error "Expecting get_link() delayed done"
31595 #endif
31596
31597 int
31598 main (void)
31599 {
31600
31601
31602 ;
31603 return 0;
31604 }
31605
31606 _ACEOF
31607
31608
31609
31610 cat - <<_ACEOF >conftest.h
31611
31612 _ACEOF
31613
31614
31615 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
31616 echo "obj-m := conftest.o" >build/Makefile
31617 modpost_flag=''
31618 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
31619 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
31620 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31621 (eval $ac_try) 2>&5
31622 ac_status=$?
31623 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31624 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
31625 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31626 (eval $ac_try) 2>&5
31627 ac_status=$?
31628 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31629 test $ac_status = 0; }; }; then :
31630
31631
31632 $as_echo "#define HAVE_PUT_LINK_DELAYED 1" >>confdefs.h
31633
31634
31635 else
31636 $as_echo "$as_me: failed program was:" >&5
31637 sed 's/^/| /' conftest.$ac_ext >&5
31638
31639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->put_link() passes cookie" >&5
31640 $as_echo_n "checking whether iops->put_link() passes cookie... " >&6; }
31641
31642
31643 cat confdefs.h - <<_ACEOF >conftest.c
31644
31645
31646 #include <linux/fs.h>
31647 void put_link(struct inode *ip, void *cookie)
31648 { return; }
31649 static struct inode_operations
31650 iops __attribute__ ((unused)) = {
31651 .put_link = put_link,
31652 };
31653
31654 int
31655 main (void)
31656 {
31657
31658
31659 ;
31660 return 0;
31661 }
31662
31663 _ACEOF
31664
31665
31666
31667 cat - <<_ACEOF >conftest.h
31668
31669 _ACEOF
31670
31671
31672 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
31673 echo "obj-m := conftest.o" >build/Makefile
31674 modpost_flag=''
31675 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
31676 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
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; }; } >/dev/null && { ac_try='test -s build/conftest.o'
31682 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31683 (eval $ac_try) 2>&5
31684 ac_status=$?
31685 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31686 test $ac_status = 0; }; }; then :
31687
31688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31689 $as_echo "yes" >&6; }
31690
31691 $as_echo "#define HAVE_PUT_LINK_COOKIE 1" >>confdefs.h
31692
31693
31694 else
31695 $as_echo "$as_me: failed program was:" >&5
31696 sed 's/^/| /' conftest.$ac_ext >&5
31697
31698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31699 $as_echo "no" >&6; }
31700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->put_link() passes nameidata" >&5
31701 $as_echo_n "checking whether iops->put_link() passes nameidata... " >&6; }
31702
31703
31704 cat confdefs.h - <<_ACEOF >conftest.c
31705
31706
31707 #include <linux/fs.h>
31708 void put_link(struct dentry *de, struct
31709 nameidata *nd, void *ptr) { return; }
31710 static struct inode_operations
31711 iops __attribute__ ((unused)) = {
31712 .put_link = put_link,
31713 };
31714
31715 int
31716 main (void)
31717 {
31718
31719
31720 ;
31721 return 0;
31722 }
31723
31724 _ACEOF
31725
31726
31727
31728 cat - <<_ACEOF >conftest.h
31729
31730 _ACEOF
31731
31732
31733 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
31734 echo "obj-m := conftest.o" >build/Makefile
31735 modpost_flag=''
31736 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
31737 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
31738 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31739 (eval $ac_try) 2>&5
31740 ac_status=$?
31741 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31742 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
31743 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31744 (eval $ac_try) 2>&5
31745 ac_status=$?
31746 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31747 test $ac_status = 0; }; }; then :
31748
31749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31750 $as_echo "yes" >&6; }
31751
31752 $as_echo "#define HAVE_PUT_LINK_NAMEIDATA 1" >>confdefs.h
31753
31754
31755 else
31756 $as_echo "$as_me: failed program was:" >&5
31757 sed 's/^/| /' conftest.$ac_ext >&5
31758
31759 as_fn_error $? "no; please file a bug report" "$LINENO" 5
31760
31761
31762
31763 fi
31764 rm -Rf build
31765
31766
31767
31768
31769
31770 fi
31771 rm -Rf build
31772
31773
31774
31775
31776
31777 fi
31778 rm -Rf build
31779
31780
31781
31782
31783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->truncate_range() exists" >&5
31784 $as_echo_n "checking whether iops->truncate_range() exists... " >&6; }
31785
31786
31787 cat confdefs.h - <<_ACEOF >conftest.c
31788
31789
31790 #include <linux/fs.h>
31791 void truncate_range(struct inode *inode, loff_t start,
31792 loff_t end) { return; }
31793 static struct inode_operations iops __attribute__ ((unused)) = {
31794 .truncate_range = truncate_range,
31795 };
31796
31797 int
31798 main (void)
31799 {
31800
31801
31802 ;
31803 return 0;
31804 }
31805
31806 _ACEOF
31807
31808
31809
31810 cat - <<_ACEOF >conftest.h
31811
31812 _ACEOF
31813
31814
31815 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
31816 echo "obj-m := conftest.o" >build/Makefile
31817 modpost_flag=''
31818 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
31819 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
31820 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31821 (eval $ac_try) 2>&5
31822 ac_status=$?
31823 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31824 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
31825 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31826 (eval $ac_try) 2>&5
31827 ac_status=$?
31828 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31829 test $ac_status = 0; }; }; then :
31830
31831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31832 $as_echo "yes" >&6; }
31833
31834 $as_echo "#define HAVE_INODE_TRUNCATE_RANGE 1" >>confdefs.h
31835
31836
31837 else
31838 $as_echo "$as_me: failed program was:" >&5
31839 sed 's/^/| /' conftest.$ac_ext >&5
31840
31841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31842 $as_echo "no" >&6; }
31843
31844
31845
31846 fi
31847 rm -Rf build
31848
31849
31850
31851
31852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether dops->d_automount() exists" >&5
31853 $as_echo_n "checking whether dops->d_automount() exists... " >&6; }
31854
31855
31856 cat confdefs.h - <<_ACEOF >conftest.c
31857
31858
31859 #include <linux/dcache.h>
31860 struct vfsmount *d_automount(struct path *p) { return NULL; }
31861 struct dentry_operations dops __attribute__ ((unused)) = {
31862 .d_automount = d_automount,
31863 };
31864
31865 int
31866 main (void)
31867 {
31868
31869
31870 ;
31871 return 0;
31872 }
31873
31874 _ACEOF
31875
31876
31877
31878 cat - <<_ACEOF >conftest.h
31879
31880 _ACEOF
31881
31882
31883 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
31884 echo "obj-m := conftest.o" >build/Makefile
31885 modpost_flag=''
31886 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
31887 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
31888 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31889 (eval $ac_try) 2>&5
31890 ac_status=$?
31891 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31892 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
31893 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31894 (eval $ac_try) 2>&5
31895 ac_status=$?
31896 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31897 test $ac_status = 0; }; }; then :
31898
31899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31900 $as_echo "yes" >&6; }
31901
31902 $as_echo "#define HAVE_AUTOMOUNT 1" >>confdefs.h
31903
31904
31905 else
31906 $as_echo "$as_me: failed program was:" >&5
31907 sed 's/^/| /' conftest.$ac_ext >&5
31908
31909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31910 $as_echo "no" >&6; }
31911
31912
31913
31914 fi
31915 rm -Rf build
31916
31917
31918
31919
31920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether eops->encode_fh() wants inode" >&5
31921 $as_echo_n "checking whether eops->encode_fh() wants inode... " >&6; }
31922
31923
31924 cat confdefs.h - <<_ACEOF >conftest.c
31925
31926
31927 #include <linux/exportfs.h>
31928 int encode_fh(struct inode *inode, __u32 *fh, int *max_len,
31929 struct inode *parent) { return 0; }
31930 static struct export_operations eops __attribute__ ((unused))={
31931 .encode_fh = encode_fh,
31932 };
31933
31934 int
31935 main (void)
31936 {
31937
31938
31939 ;
31940 return 0;
31941 }
31942
31943 _ACEOF
31944
31945
31946
31947 cat - <<_ACEOF >conftest.h
31948
31949 _ACEOF
31950
31951
31952 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
31953 echo "obj-m := conftest.o" >build/Makefile
31954 modpost_flag=''
31955 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
31956 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
31957 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31958 (eval $ac_try) 2>&5
31959 ac_status=$?
31960 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31961 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
31962 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31963 (eval $ac_try) 2>&5
31964 ac_status=$?
31965 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31966 test $ac_status = 0; }; }; then :
31967
31968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31969 $as_echo "yes" >&6; }
31970
31971 $as_echo "#define HAVE_ENCODE_FH_WITH_INODE 1" >>confdefs.h
31972
31973
31974 else
31975 $as_echo "$as_me: failed program was:" >&5
31976 sed 's/^/| /' conftest.$ac_ext >&5
31977
31978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31979 $as_echo "no" >&6; }
31980
31981
31982
31983 fi
31984 rm -Rf build
31985
31986
31987
31988
31989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether eops->commit_metadata() exists" >&5
31990 $as_echo_n "checking whether eops->commit_metadata() exists... " >&6; }
31991
31992
31993 cat confdefs.h - <<_ACEOF >conftest.c
31994
31995
31996 #include <linux/exportfs.h>
31997 int commit_metadata(struct inode *inode) { return 0; }
31998 static struct export_operations eops __attribute__ ((unused))={
31999 .commit_metadata = commit_metadata,
32000 };
32001
32002 int
32003 main (void)
32004 {
32005
32006
32007 ;
32008 return 0;
32009 }
32010
32011 _ACEOF
32012
32013
32014
32015 cat - <<_ACEOF >conftest.h
32016
32017 _ACEOF
32018
32019
32020 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
32021 echo "obj-m := conftest.o" >build/Makefile
32022 modpost_flag=''
32023 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
32024 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
32025 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
32026 (eval $ac_try) 2>&5
32027 ac_status=$?
32028 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32029 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
32030 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
32031 (eval $ac_try) 2>&5
32032 ac_status=$?
32033 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32034 test $ac_status = 0; }; }; then :
32035
32036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32037 $as_echo "yes" >&6; }
32038
32039 $as_echo "#define HAVE_COMMIT_METADATA 1" >>confdefs.h
32040
32041
32042 else
32043 $as_echo "$as_me: failed program was:" >&5
32044 sed 's/^/| /' conftest.$ac_ext >&5
32045
32046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32047 $as_echo "no" >&6; }
32048
32049
32050
32051 fi
32052 rm -Rf build
32053
32054
32055
32056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether clear_inode() is available" >&5
32057 $as_echo_n "checking whether clear_inode() is available... " >&6; }
32058
32059
32060
32061 cat confdefs.h - <<_ACEOF >conftest.c
32062
32063
32064 #include <linux/fs.h>
32065
32066 int
32067 main (void)
32068 {
32069
32070 clear_inode(NULL);
32071
32072 ;
32073 return 0;
32074 }
32075
32076 _ACEOF
32077
32078
32079
32080 cat - <<_ACEOF >conftest.h
32081
32082 _ACEOF
32083
32084
32085 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
32086 echo "obj-m := conftest.o" >build/Makefile
32087 modpost_flag=''
32088 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
32089 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
32090 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
32091 (eval $ac_try) 2>&5
32092 ac_status=$?
32093 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32094 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
32095 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
32096 (eval $ac_try) 2>&5
32097 ac_status=$?
32098 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32099 test $ac_status = 0; }; }; then :
32100 rc=0
32101 else
32102 $as_echo "$as_me: failed program was:" >&5
32103 sed 's/^/| /' conftest.$ac_ext >&5
32104 rc=1
32105
32106
32107 fi
32108 rm -Rf build
32109
32110
32111 if test $rc -ne 0; then :
32112
32113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32114 $as_echo "no" >&6; }
32115
32116 else
32117 if test "x$enable_linux_builtin" != xyes; then
32118
32119 grep -q -E '[[:space:]]clear_inode[[:space:]]' \
32120 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
32121 rc=$?
32122 if test $rc -ne 0; then
32123 export=0
32124 for file in fs/inode.c; do
32125 grep -q -E "EXPORT_SYMBOL.*(clear_inode)" \
32126 "$LINUX/$file" 2>/dev/null
32127 rc=$?
32128 if test $rc -eq 0; then
32129 export=1
32130 break;
32131 fi
32132 done
32133 if test $export -eq 0; then :
32134 rc=1
32135 else :
32136 rc=0
32137 fi
32138 else :
32139 rc=0
32140 fi
32141
32142 fi
32143 if test $rc -ne 0; then :
32144
32145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32146 $as_echo "no" >&6; }
32147
32148 else :
32149
32150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32151 $as_echo "yes" >&6; }
32152
32153 $as_echo "#define HAVE_CLEAR_INODE 1" >>confdefs.h
32154
32155
32156 fi
32157 fi
32158
32159
32160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setattr_prepare() is available" >&5
32161 $as_echo_n "checking whether setattr_prepare() is available... " >&6; }
32162
32163
32164
32165 cat confdefs.h - <<_ACEOF >conftest.c
32166
32167
32168 #include <linux/fs.h>
32169
32170 int
32171 main (void)
32172 {
32173
32174 struct dentry *dentry = NULL;
32175 struct iattr *attr = NULL;
32176 int error;
32177
32178 error = setattr_prepare(dentry, attr);
32179
32180 ;
32181 return 0;
32182 }
32183
32184 _ACEOF
32185
32186
32187
32188 cat - <<_ACEOF >conftest.h
32189
32190 _ACEOF
32191
32192
32193 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
32194 echo "obj-m := conftest.o" >build/Makefile
32195 modpost_flag=''
32196 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
32197 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
32198 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
32199 (eval $ac_try) 2>&5
32200 ac_status=$?
32201 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32202 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
32203 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
32204 (eval $ac_try) 2>&5
32205 ac_status=$?
32206 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32207 test $ac_status = 0; }; }; then :
32208 rc=0
32209 else
32210 $as_echo "$as_me: failed program was:" >&5
32211 sed 's/^/| /' conftest.$ac_ext >&5
32212 rc=1
32213
32214
32215 fi
32216 rm -Rf build
32217
32218
32219 if test $rc -ne 0; then :
32220
32221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32222 $as_echo "no" >&6; }
32223
32224 else
32225 if test "x$enable_linux_builtin" != xyes; then
32226
32227 grep -q -E '[[:space:]]setattr_prepare[[:space:]]' \
32228 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
32229 rc=$?
32230 if test $rc -ne 0; then
32231 export=0
32232 for file in fs/attr.c; do
32233 grep -q -E "EXPORT_SYMBOL.*(setattr_prepare)" \
32234 "$LINUX/$file" 2>/dev/null
32235 rc=$?
32236 if test $rc -eq 0; then
32237 export=1
32238 break;
32239 fi
32240 done
32241 if test $export -eq 0; then :
32242 rc=1
32243 else :
32244 rc=0
32245 fi
32246 else :
32247 rc=0
32248 fi
32249
32250 fi
32251 if test $rc -ne 0; then :
32252
32253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32254 $as_echo "no" >&6; }
32255
32256 else :
32257
32258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32259 $as_echo "yes" >&6; }
32260
32261 $as_echo "#define HAVE_SETATTR_PREPARE 1" >>confdefs.h
32262
32263
32264 fi
32265 fi
32266
32267
32268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether insert_inode_locked() is available" >&5
32269 $as_echo_n "checking whether insert_inode_locked() is available... " >&6; }
32270
32271
32272
32273 cat confdefs.h - <<_ACEOF >conftest.c
32274
32275
32276 #include <linux/fs.h>
32277
32278 int
32279 main (void)
32280 {
32281
32282 insert_inode_locked(NULL);
32283
32284 ;
32285 return 0;
32286 }
32287
32288 _ACEOF
32289
32290
32291
32292 cat - <<_ACEOF >conftest.h
32293
32294 _ACEOF
32295
32296
32297 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
32298 echo "obj-m := conftest.o" >build/Makefile
32299 modpost_flag=''
32300 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
32301 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
32302 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
32303 (eval $ac_try) 2>&5
32304 ac_status=$?
32305 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32306 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
32307 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
32308 (eval $ac_try) 2>&5
32309 ac_status=$?
32310 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32311 test $ac_status = 0; }; }; then :
32312 rc=0
32313 else
32314 $as_echo "$as_me: failed program was:" >&5
32315 sed 's/^/| /' conftest.$ac_ext >&5
32316 rc=1
32317
32318
32319 fi
32320 rm -Rf build
32321
32322
32323 if test $rc -ne 0; then :
32324
32325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32326 $as_echo "no" >&6; }
32327
32328 else
32329 if test "x$enable_linux_builtin" != xyes; then
32330
32331 grep -q -E '[[:space:]]insert_inode_locked[[:space:]]' \
32332 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
32333 rc=$?
32334 if test $rc -ne 0; then
32335 export=0
32336 for file in fs/inode.c; do
32337 grep -q -E "EXPORT_SYMBOL.*(insert_inode_locked)" \
32338 "$LINUX/$file" 2>/dev/null
32339 rc=$?
32340 if test $rc -eq 0; then
32341 export=1
32342 break;
32343 fi
32344 done
32345 if test $export -eq 0; then :
32346 rc=1
32347 else :
32348 rc=0
32349 fi
32350 else :
32351 rc=0
32352 fi
32353
32354 fi
32355 if test $rc -ne 0; then :
32356
32357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32358 $as_echo "no" >&6; }
32359
32360 else :
32361
32362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32363 $as_echo "yes" >&6; }
32364
32365 $as_echo "#define HAVE_INSERT_INODE_LOCKED 1" >>confdefs.h
32366
32367
32368 fi
32369 fi
32370
32371
32372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether d_make_root() is available" >&5
32373 $as_echo_n "checking whether d_make_root() is available... " >&6; }
32374
32375
32376
32377 cat confdefs.h - <<_ACEOF >conftest.c
32378
32379
32380 #include <linux/dcache.h>
32381
32382 int
32383 main (void)
32384 {
32385
32386 d_make_root(NULL);
32387
32388 ;
32389 return 0;
32390 }
32391
32392 _ACEOF
32393
32394
32395
32396 cat - <<_ACEOF >conftest.h
32397
32398 _ACEOF
32399
32400
32401 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
32402 echo "obj-m := conftest.o" >build/Makefile
32403 modpost_flag=''
32404 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
32405 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
32406 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
32407 (eval $ac_try) 2>&5
32408 ac_status=$?
32409 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32410 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
32411 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
32412 (eval $ac_try) 2>&5
32413 ac_status=$?
32414 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32415 test $ac_status = 0; }; }; then :
32416 rc=0
32417 else
32418 $as_echo "$as_me: failed program was:" >&5
32419 sed 's/^/| /' conftest.$ac_ext >&5
32420 rc=1
32421
32422
32423 fi
32424 rm -Rf build
32425
32426
32427 if test $rc -ne 0; then :
32428
32429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32430 $as_echo "no" >&6; }
32431
32432 else
32433 if test "x$enable_linux_builtin" != xyes; then
32434
32435 grep -q -E '[[:space:]]d_make_root[[:space:]]' \
32436 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
32437 rc=$?
32438 if test $rc -ne 0; then
32439 export=0
32440 for file in fs/dcache.c; do
32441 grep -q -E "EXPORT_SYMBOL.*(d_make_root)" \
32442 "$LINUX/$file" 2>/dev/null
32443 rc=$?
32444 if test $rc -eq 0; then
32445 export=1
32446 break;
32447 fi
32448 done
32449 if test $export -eq 0; then :
32450 rc=1
32451 else :
32452 rc=0
32453 fi
32454 else :
32455 rc=0
32456 fi
32457
32458 fi
32459 if test $rc -ne 0; then :
32460
32461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32462 $as_echo "no" >&6; }
32463
32464 else :
32465
32466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32467 $as_echo "yes" >&6; }
32468
32469 $as_echo "#define HAVE_D_MAKE_ROOT 1" >>confdefs.h
32470
32471
32472 fi
32473 fi
32474
32475
32476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether d_obtain_alias() is available" >&5
32477 $as_echo_n "checking whether d_obtain_alias() is available... " >&6; }
32478
32479
32480
32481 cat confdefs.h - <<_ACEOF >conftest.c
32482
32483
32484 #include <linux/dcache.h>
32485
32486 int
32487 main (void)
32488 {
32489
32490 d_obtain_alias(NULL);
32491
32492 ;
32493 return 0;
32494 }
32495
32496 _ACEOF
32497
32498
32499
32500 cat - <<_ACEOF >conftest.h
32501
32502 _ACEOF
32503
32504
32505 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
32506 echo "obj-m := conftest.o" >build/Makefile
32507 modpost_flag=''
32508 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
32509 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
32510 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
32511 (eval $ac_try) 2>&5
32512 ac_status=$?
32513 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32514 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
32515 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
32516 (eval $ac_try) 2>&5
32517 ac_status=$?
32518 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32519 test $ac_status = 0; }; }; then :
32520 rc=0
32521 else
32522 $as_echo "$as_me: failed program was:" >&5
32523 sed 's/^/| /' conftest.$ac_ext >&5
32524 rc=1
32525
32526
32527 fi
32528 rm -Rf build
32529
32530
32531 if test $rc -ne 0; then :
32532
32533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32534 $as_echo "no" >&6; }
32535
32536 else
32537 if test "x$enable_linux_builtin" != xyes; then
32538
32539 grep -q -E '[[:space:]]d_obtain_alias[[:space:]]' \
32540 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
32541 rc=$?
32542 if test $rc -ne 0; then
32543 export=0
32544 for file in fs/dcache.c; do
32545 grep -q -E "EXPORT_SYMBOL.*(d_obtain_alias)" \
32546 "$LINUX/$file" 2>/dev/null
32547 rc=$?
32548 if test $rc -eq 0; then
32549 export=1
32550 break;
32551 fi
32552 done
32553 if test $export -eq 0; then :
32554 rc=1
32555 else :
32556 rc=0
32557 fi
32558 else :
32559 rc=0
32560 fi
32561
32562 fi
32563 if test $rc -ne 0; then :
32564
32565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32566 $as_echo "no" >&6; }
32567
32568 else :
32569
32570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32571 $as_echo "yes" >&6; }
32572
32573 $as_echo "#define HAVE_D_OBTAIN_ALIAS 1" >>confdefs.h
32574
32575
32576 fi
32577 fi
32578
32579
32580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether d_prune_aliases() is available" >&5
32581 $as_echo_n "checking whether d_prune_aliases() is available... " >&6; }
32582
32583
32584
32585 cat confdefs.h - <<_ACEOF >conftest.c
32586
32587
32588 #include <linux/dcache.h>
32589
32590 int
32591 main (void)
32592 {
32593
32594 struct inode *ip = NULL;
32595 d_prune_aliases(ip);
32596
32597 ;
32598 return 0;
32599 }
32600
32601 _ACEOF
32602
32603
32604
32605 cat - <<_ACEOF >conftest.h
32606
32607 _ACEOF
32608
32609
32610 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
32611 echo "obj-m := conftest.o" >build/Makefile
32612 modpost_flag=''
32613 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
32614 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
32615 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
32616 (eval $ac_try) 2>&5
32617 ac_status=$?
32618 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32619 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
32620 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
32621 (eval $ac_try) 2>&5
32622 ac_status=$?
32623 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32624 test $ac_status = 0; }; }; then :
32625 rc=0
32626 else
32627 $as_echo "$as_me: failed program was:" >&5
32628 sed 's/^/| /' conftest.$ac_ext >&5
32629 rc=1
32630
32631
32632 fi
32633 rm -Rf build
32634
32635
32636 if test $rc -ne 0; then :
32637
32638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32639 $as_echo "no" >&6; }
32640
32641 else
32642 if test "x$enable_linux_builtin" != xyes; then
32643
32644 grep -q -E '[[:space:]]d_prune_aliases[[:space:]]' \
32645 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
32646 rc=$?
32647 if test $rc -ne 0; then
32648 export=0
32649 for file in fs/dcache.c; do
32650 grep -q -E "EXPORT_SYMBOL.*(d_prune_aliases)" \
32651 "$LINUX/$file" 2>/dev/null
32652 rc=$?
32653 if test $rc -eq 0; then
32654 export=1
32655 break;
32656 fi
32657 done
32658 if test $export -eq 0; then :
32659 rc=1
32660 else :
32661 rc=0
32662 fi
32663 else :
32664 rc=0
32665 fi
32666
32667 fi
32668 if test $rc -ne 0; then :
32669
32670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32671 $as_echo "no" >&6; }
32672
32673 else :
32674
32675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32676 $as_echo "yes" >&6; }
32677
32678 $as_echo "#define HAVE_D_PRUNE_ALIASES 1" >>confdefs.h
32679
32680
32681 fi
32682 fi
32683
32684
32685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether d_set_d_op() is available" >&5
32686 $as_echo_n "checking whether d_set_d_op() is available... " >&6; }
32687
32688
32689
32690 cat confdefs.h - <<_ACEOF >conftest.c
32691
32692
32693 #include <linux/dcache.h>
32694
32695 int
32696 main (void)
32697 {
32698
32699 d_set_d_op(NULL, NULL);
32700
32701 ;
32702 return 0;
32703 }
32704
32705 _ACEOF
32706
32707
32708
32709 cat - <<_ACEOF >conftest.h
32710
32711 _ACEOF
32712
32713
32714 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
32715 echo "obj-m := conftest.o" >build/Makefile
32716 modpost_flag=''
32717 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
32718 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
32719 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
32720 (eval $ac_try) 2>&5
32721 ac_status=$?
32722 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32723 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
32724 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
32725 (eval $ac_try) 2>&5
32726 ac_status=$?
32727 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32728 test $ac_status = 0; }; }; then :
32729 rc=0
32730 else
32731 $as_echo "$as_me: failed program was:" >&5
32732 sed 's/^/| /' conftest.$ac_ext >&5
32733 rc=1
32734
32735
32736 fi
32737 rm -Rf build
32738
32739
32740 if test $rc -ne 0; then :
32741
32742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32743 $as_echo "no" >&6; }
32744
32745 else
32746 if test "x$enable_linux_builtin" != xyes; then
32747
32748 grep -q -E '[[:space:]]d_set_d_op[[:space:]]' \
32749 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
32750 rc=$?
32751 if test $rc -ne 0; then
32752 export=0
32753 for file in fs/dcache.c; do
32754 grep -q -E "EXPORT_SYMBOL.*(d_set_d_op)" \
32755 "$LINUX/$file" 2>/dev/null
32756 rc=$?
32757 if test $rc -eq 0; then
32758 export=1
32759 break;
32760 fi
32761 done
32762 if test $export -eq 0; then :
32763 rc=1
32764 else :
32765 rc=0
32766 fi
32767 else :
32768 rc=0
32769 fi
32770
32771 fi
32772 if test $rc -ne 0; then :
32773
32774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32775 $as_echo "no" >&6; }
32776
32777 else :
32778
32779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32780 $as_echo "yes" >&6; }
32781
32782 $as_echo "#define HAVE_D_SET_D_OP 1" >>confdefs.h
32783
32784
32785 fi
32786 fi
32787
32788
32789
32790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether dops->d_revalidate() takes struct nameidata" >&5
32791 $as_echo_n "checking whether dops->d_revalidate() takes struct nameidata... " >&6; }
32792
32793
32794 cat confdefs.h - <<_ACEOF >conftest.c
32795
32796
32797 #include <linux/dcache.h>
32798
32799 int revalidate (struct dentry *dentry,
32800 struct nameidata *nidata) { return 0; }
32801
32802 static const struct dentry_operations
32803 dops __attribute__ ((unused)) = {
32804 .d_revalidate = revalidate,
32805 };
32806
32807 int
32808 main (void)
32809 {
32810
32811
32812 ;
32813 return 0;
32814 }
32815
32816 _ACEOF
32817
32818
32819
32820 cat - <<_ACEOF >conftest.h
32821
32822 _ACEOF
32823
32824
32825 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
32826 echo "obj-m := conftest.o" >build/Makefile
32827 modpost_flag=''
32828 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
32829 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
32830 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
32831 (eval $ac_try) 2>&5
32832 ac_status=$?
32833 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32834 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
32835 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
32836 (eval $ac_try) 2>&5
32837 ac_status=$?
32838 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32839 test $ac_status = 0; }; }; then :
32840
32841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32842 $as_echo "yes" >&6; }
32843
32844 $as_echo "#define HAVE_D_REVALIDATE_NAMEIDATA 1" >>confdefs.h
32845
32846
32847 else
32848 $as_echo "$as_me: failed program was:" >&5
32849 sed 's/^/| /' conftest.$ac_ext >&5
32850
32851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32852 $as_echo "no" >&6; }
32853
32854
32855
32856 fi
32857 rm -Rf build
32858
32859
32860
32861
32862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether dentry uses const struct dentry_operations" >&5
32863 $as_echo_n "checking whether dentry uses const struct dentry_operations... " >&6; }
32864
32865
32866 cat confdefs.h - <<_ACEOF >conftest.c
32867
32868
32869 #include <linux/dcache.h>
32870
32871 const struct dentry_operations test_d_op = {
32872 .d_revalidate = NULL,
32873 };
32874
32875 int
32876 main (void)
32877 {
32878
32879 struct dentry d __attribute__ ((unused));
32880
32881 d.d_op = &test_d_op;
32882
32883 ;
32884 return 0;
32885 }
32886
32887 _ACEOF
32888
32889
32890
32891 cat - <<_ACEOF >conftest.h
32892
32893 _ACEOF
32894
32895
32896 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
32897 echo "obj-m := conftest.o" >build/Makefile
32898 modpost_flag=''
32899 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
32900 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
32901 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
32902 (eval $ac_try) 2>&5
32903 ac_status=$?
32904 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32905 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
32906 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
32907 (eval $ac_try) 2>&5
32908 ac_status=$?
32909 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32910 test $ac_status = 0; }; }; then :
32911
32912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32913 $as_echo "yes" >&6; }
32914
32915 $as_echo "#define HAVE_CONST_DENTRY_OPERATIONS 1" >>confdefs.h
32916
32917
32918 else
32919 $as_echo "$as_me: failed program was:" >&5
32920 sed 's/^/| /' conftest.$ac_ext >&5
32921
32922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32923 $as_echo "no" >&6; }
32924
32925
32926
32927 fi
32928 rm -Rf build
32929
32930
32931
32932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether check_disk_size_change() is available" >&5
32933 $as_echo_n "checking whether check_disk_size_change() is available... " >&6; }
32934
32935
32936
32937 cat confdefs.h - <<_ACEOF >conftest.c
32938
32939
32940 #include <linux/fs.h>
32941
32942 int
32943 main (void)
32944 {
32945
32946 check_disk_size_change(NULL, NULL);
32947
32948 ;
32949 return 0;
32950 }
32951
32952 _ACEOF
32953
32954
32955
32956 cat - <<_ACEOF >conftest.h
32957
32958 _ACEOF
32959
32960
32961 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
32962 echo "obj-m := conftest.o" >build/Makefile
32963 modpost_flag=''
32964 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
32965 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
32966 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
32967 (eval $ac_try) 2>&5
32968 ac_status=$?
32969 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32970 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
32971 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
32972 (eval $ac_try) 2>&5
32973 ac_status=$?
32974 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32975 test $ac_status = 0; }; }; then :
32976 rc=0
32977 else
32978 $as_echo "$as_me: failed program was:" >&5
32979 sed 's/^/| /' conftest.$ac_ext >&5
32980 rc=1
32981
32982
32983 fi
32984 rm -Rf build
32985
32986
32987 if test $rc -ne 0; then :
32988
32989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32990 $as_echo "no" >&6; }
32991
32992 else
32993 if test "x$enable_linux_builtin" != xyes; then
32994
32995 grep -q -E '[[:space:]]check_disk_size_change[[:space:]]' \
32996 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
32997 rc=$?
32998 if test $rc -ne 0; then
32999 export=0
33000 for file in fs/block_dev.c; do
33001 grep -q -E "EXPORT_SYMBOL.*(check_disk_size_change)" \
33002 "$LINUX/$file" 2>/dev/null
33003 rc=$?
33004 if test $rc -eq 0; then
33005 export=1
33006 break;
33007 fi
33008 done
33009 if test $export -eq 0; then :
33010 rc=1
33011 else :
33012 rc=0
33013 fi
33014 else :
33015 rc=0
33016 fi
33017
33018 fi
33019 if test $rc -ne 0; then :
33020
33021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33022 $as_echo "no" >&6; }
33023
33024 else :
33025
33026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33027 $as_echo "yes" >&6; }
33028
33029 $as_echo "#define HAVE_CHECK_DISK_SIZE_CHANGE 1" >>confdefs.h
33030
33031
33032 fi
33033 fi
33034
33035
33036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether truncate_setsize() is available" >&5
33037 $as_echo_n "checking whether truncate_setsize() is available... " >&6; }
33038
33039
33040
33041 cat confdefs.h - <<_ACEOF >conftest.c
33042
33043
33044 #include <linux/mm.h>
33045
33046 int
33047 main (void)
33048 {
33049
33050 truncate_setsize(NULL, 0);
33051
33052 ;
33053 return 0;
33054 }
33055
33056 _ACEOF
33057
33058
33059
33060 cat - <<_ACEOF >conftest.h
33061
33062 _ACEOF
33063
33064
33065 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
33066 echo "obj-m := conftest.o" >build/Makefile
33067 modpost_flag=''
33068 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
33069 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
33070 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
33071 (eval $ac_try) 2>&5
33072 ac_status=$?
33073 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
33074 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
33075 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
33076 (eval $ac_try) 2>&5
33077 ac_status=$?
33078 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
33079 test $ac_status = 0; }; }; then :
33080 rc=0
33081 else
33082 $as_echo "$as_me: failed program was:" >&5
33083 sed 's/^/| /' conftest.$ac_ext >&5
33084 rc=1
33085
33086
33087 fi
33088 rm -Rf build
33089
33090
33091 if test $rc -ne 0; then :
33092
33093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33094 $as_echo "no" >&6; }
33095
33096 else
33097 if test "x$enable_linux_builtin" != xyes; then
33098
33099 grep -q -E '[[:space:]]truncate_setsize[[:space:]]' \
33100 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
33101 rc=$?
33102 if test $rc -ne 0; then
33103 export=0
33104 for file in mm/truncate.c; do
33105 grep -q -E "EXPORT_SYMBOL.*(truncate_setsize)" \
33106 "$LINUX/$file" 2>/dev/null
33107 rc=$?
33108 if test $rc -eq 0; then
33109 export=1
33110 break;
33111 fi
33112 done
33113 if test $export -eq 0; then :
33114 rc=1
33115 else :
33116 rc=0
33117 fi
33118 else :
33119 rc=0
33120 fi
33121
33122 fi
33123 if test $rc -ne 0; then :
33124
33125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33126 $as_echo "no" >&6; }
33127
33128 else :
33129
33130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33131 $as_echo "yes" >&6; }
33132
33133 $as_echo "#define HAVE_TRUNCATE_SETSIZE 1" >>confdefs.h
33134
33135
33136 fi
33137 fi
33138
33139
33140
33141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether security_inode_init_security wants 6 args" >&5
33142 $as_echo_n "checking whether security_inode_init_security wants 6 args... " >&6; }
33143
33144
33145 cat confdefs.h - <<_ACEOF >conftest.c
33146
33147
33148 #include <linux/security.h>
33149
33150 int
33151 main (void)
33152 {
33153
33154 struct inode *ip __attribute__ ((unused)) = NULL;
33155 struct inode *dip __attribute__ ((unused)) = NULL;
33156 const struct qstr *str __attribute__ ((unused)) = NULL;
33157 char *name __attribute__ ((unused)) = NULL;
33158 void *value __attribute__ ((unused)) = NULL;
33159 size_t len __attribute__ ((unused)) = 0;
33160
33161 security_inode_init_security(ip, dip, str, &name, &value, &len);
33162
33163 ;
33164 return 0;
33165 }
33166
33167 _ACEOF
33168
33169
33170
33171 cat - <<_ACEOF >conftest.h
33172
33173 _ACEOF
33174
33175
33176 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
33177 echo "obj-m := conftest.o" >build/Makefile
33178 modpost_flag=''
33179 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
33180 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
33181 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
33182 (eval $ac_try) 2>&5
33183 ac_status=$?
33184 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
33185 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
33186 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
33187 (eval $ac_try) 2>&5
33188 ac_status=$?
33189 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
33190 test $ac_status = 0; }; }; then :
33191
33192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33193 $as_echo "yes" >&6; }
33194
33195 $as_echo "#define HAVE_6ARGS_SECURITY_INODE_INIT_SECURITY 1" >>confdefs.h
33196
33197
33198 else
33199 $as_echo "$as_me: failed program was:" >&5
33200 sed 's/^/| /' conftest.$ac_ext >&5
33201
33202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33203 $as_echo "no" >&6; }
33204
33205
33206
33207 fi
33208 rm -Rf build
33209
33210
33211
33212
33213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether security_inode_init_security wants callback" >&5
33214 $as_echo_n "checking whether security_inode_init_security wants callback... " >&6; }
33215
33216
33217 cat confdefs.h - <<_ACEOF >conftest.c
33218
33219
33220 #include <linux/security.h>
33221
33222 int
33223 main (void)
33224 {
33225
33226 struct inode *ip __attribute__ ((unused)) = NULL;
33227 struct inode *dip __attribute__ ((unused)) = NULL;
33228 const struct qstr *str __attribute__ ((unused)) = NULL;
33229 initxattrs func __attribute__ ((unused)) = NULL;
33230
33231 security_inode_init_security(ip, dip, str, func, NULL);
33232
33233 ;
33234 return 0;
33235 }
33236
33237 _ACEOF
33238
33239
33240
33241 cat - <<_ACEOF >conftest.h
33242
33243 _ACEOF
33244
33245
33246 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
33247 echo "obj-m := conftest.o" >build/Makefile
33248 modpost_flag=''
33249 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
33250 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
33251 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
33252 (eval $ac_try) 2>&5
33253 ac_status=$?
33254 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
33255 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
33256 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
33257 (eval $ac_try) 2>&5
33258 ac_status=$?
33259 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
33260 test $ac_status = 0; }; }; then :
33261
33262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33263 $as_echo "yes" >&6; }
33264
33265 $as_echo "#define HAVE_CALLBACK_SECURITY_INODE_INIT_SECURITY 1" >>confdefs.h
33266
33267
33268 else
33269 $as_echo "$as_me: failed program was:" >&5
33270 sed 's/^/| /' conftest.$ac_ext >&5
33271
33272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33273 $as_echo "no" >&6; }
33274
33275
33276
33277 fi
33278 rm -Rf build
33279
33280
33281
33282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mount_nodev() is available" >&5
33283 $as_echo_n "checking whether mount_nodev() is available... " >&6; }
33284
33285
33286
33287 cat confdefs.h - <<_ACEOF >conftest.c
33288
33289
33290 #include <linux/fs.h>
33291
33292 int
33293 main (void)
33294 {
33295
33296 mount_nodev(NULL, 0, NULL, NULL);
33297
33298 ;
33299 return 0;
33300 }
33301
33302 _ACEOF
33303
33304
33305
33306 cat - <<_ACEOF >conftest.h
33307
33308 _ACEOF
33309
33310
33311 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
33312 echo "obj-m := conftest.o" >build/Makefile
33313 modpost_flag=''
33314 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
33315 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
33316 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
33317 (eval $ac_try) 2>&5
33318 ac_status=$?
33319 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
33320 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
33321 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
33322 (eval $ac_try) 2>&5
33323 ac_status=$?
33324 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
33325 test $ac_status = 0; }; }; then :
33326 rc=0
33327 else
33328 $as_echo "$as_me: failed program was:" >&5
33329 sed 's/^/| /' conftest.$ac_ext >&5
33330 rc=1
33331
33332
33333 fi
33334 rm -Rf build
33335
33336
33337 if test $rc -ne 0; then :
33338
33339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33340 $as_echo "no" >&6; }
33341
33342 else
33343 if test "x$enable_linux_builtin" != xyes; then
33344
33345 grep -q -E '[[:space:]]mount_nodev[[:space:]]' \
33346 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
33347 rc=$?
33348 if test $rc -ne 0; then
33349 export=0
33350 for file in fs/super.c; do
33351 grep -q -E "EXPORT_SYMBOL.*(mount_nodev)" \
33352 "$LINUX/$file" 2>/dev/null
33353 rc=$?
33354 if test $rc -eq 0; then
33355 export=1
33356 break;
33357 fi
33358 done
33359 if test $export -eq 0; then :
33360 rc=1
33361 else :
33362 rc=0
33363 fi
33364 else :
33365 rc=0
33366 fi
33367
33368 fi
33369 if test $rc -ne 0; then :
33370
33371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33372 $as_echo "no" >&6; }
33373
33374 else :
33375
33376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33377 $as_echo "yes" >&6; }
33378
33379 $as_echo "#define HAVE_MOUNT_NODEV 1" >>confdefs.h
33380
33381
33382 fi
33383 fi
33384
33385
33386
33387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether super_block has s_shrink" >&5
33388 $as_echo_n "checking whether super_block has s_shrink... " >&6; }
33389
33390
33391 cat confdefs.h - <<_ACEOF >conftest.c
33392
33393
33394 #include <linux/fs.h>
33395
33396 int shrink(struct shrinker *s, struct shrink_control *sc)
33397 { return 0; }
33398
33399 static const struct super_block
33400 sb __attribute__ ((unused)) = {
33401 .s_shrink.shrink = shrink,
33402 .s_shrink.seeks = DEFAULT_SEEKS,
33403 .s_shrink.batch = 0,
33404 };
33405
33406 int
33407 main (void)
33408 {
33409
33410
33411 ;
33412 return 0;
33413 }
33414
33415 _ACEOF
33416
33417
33418
33419 cat - <<_ACEOF >conftest.h
33420
33421 _ACEOF
33422
33423
33424 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
33425 echo "obj-m := conftest.o" >build/Makefile
33426 modpost_flag=''
33427 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
33428 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
33429 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
33430 (eval $ac_try) 2>&5
33431 ac_status=$?
33432 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
33433 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
33434 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
33435 (eval $ac_try) 2>&5
33436 ac_status=$?
33437 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
33438 test $ac_status = 0; }; }; then :
33439
33440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33441 $as_echo "yes" >&6; }
33442
33443 $as_echo "#define HAVE_SHRINK 1" >>confdefs.h
33444
33445
33446
33447 else
33448 $as_echo "$as_me: failed program was:" >&5
33449 sed 's/^/| /' conftest.$ac_ext >&5
33450
33451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33452 $as_echo "no" >&6; }
33453
33454
33455
33456 fi
33457 rm -Rf build
33458
33459
33460
33461
33462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether shrink_control has nid" >&5
33463 $as_echo_n "checking whether shrink_control has nid... " >&6; }
33464
33465
33466 cat confdefs.h - <<_ACEOF >conftest.c
33467
33468
33469 #include <linux/fs.h>
33470
33471 int
33472 main (void)
33473 {
33474
33475 struct shrink_control sc __attribute__ ((unused));
33476 unsigned long scnidsize __attribute__ ((unused)) =
33477 sizeof(sc.nid);
33478
33479 ;
33480 return 0;
33481 }
33482
33483 _ACEOF
33484
33485
33486
33487 cat - <<_ACEOF >conftest.h
33488
33489 _ACEOF
33490
33491
33492 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
33493 echo "obj-m := conftest.o" >build/Makefile
33494 modpost_flag=''
33495 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
33496 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
33497 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
33498 (eval $ac_try) 2>&5
33499 ac_status=$?
33500 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
33501 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
33502 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
33503 (eval $ac_try) 2>&5
33504 ac_status=$?
33505 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
33506 test $ac_status = 0; }; }; then :
33507
33508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33509 $as_echo "yes" >&6; }
33510
33511 $as_echo "#define SHRINK_CONTROL_HAS_NID 1" >>confdefs.h
33512
33513
33514 else
33515 $as_echo "$as_me: failed program was:" >&5
33516 sed 's/^/| /' conftest.$ac_ext >&5
33517
33518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33519 $as_echo "no" >&6; }
33520
33521
33522
33523 fi
33524 rm -Rf build
33525
33526
33527
33528
33529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether super_block has s_instances list_head" >&5
33530 $as_echo_n "checking whether super_block has s_instances list_head... " >&6; }
33531
33532
33533 cat confdefs.h - <<_ACEOF >conftest.c
33534
33535
33536 #include <linux/fs.h>
33537
33538 int
33539 main (void)
33540 {
33541
33542 struct super_block sb __attribute__ ((unused));
33543
33544 INIT_LIST_HEAD(&sb.s_instances);
33545
33546 ;
33547 return 0;
33548 }
33549
33550 _ACEOF
33551
33552
33553
33554 cat - <<_ACEOF >conftest.h
33555
33556 _ACEOF
33557
33558
33559 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
33560 echo "obj-m := conftest.o" >build/Makefile
33561 modpost_flag=''
33562 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
33563 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
33564 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
33565 (eval $ac_try) 2>&5
33566 ac_status=$?
33567 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
33568 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
33569 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
33570 (eval $ac_try) 2>&5
33571 ac_status=$?
33572 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
33573 test $ac_status = 0; }; }; then :
33574
33575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33576 $as_echo "yes" >&6; }
33577
33578 $as_echo "#define HAVE_S_INSTANCES_LIST_HEAD 1" >>confdefs.h
33579
33580
33581 else
33582 $as_echo "$as_me: failed program was:" >&5
33583 sed 's/^/| /' conftest.$ac_ext >&5
33584
33585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33586 $as_echo "no" >&6; }
33587
33588
33589
33590 fi
33591 rm -Rf build
33592
33593
33594
33595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether super_block has s_d_op" >&5
33596 $as_echo_n "checking whether super_block has s_d_op... " >&6; }
33597
33598
33599 cat confdefs.h - <<_ACEOF >conftest.c
33600
33601
33602 #include <linux/fs.h>
33603
33604 int
33605 main (void)
33606 {
33607
33608 struct super_block sb __attribute__ ((unused));
33609 sb.s_d_op = NULL;
33610
33611 ;
33612 return 0;
33613 }
33614
33615 _ACEOF
33616
33617
33618
33619 cat - <<_ACEOF >conftest.h
33620
33621 _ACEOF
33622
33623
33624 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
33625 echo "obj-m := conftest.o" >build/Makefile
33626 modpost_flag=''
33627 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
33628 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
33629 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
33630 (eval $ac_try) 2>&5
33631 ac_status=$?
33632 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
33633 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
33634 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
33635 (eval $ac_try) 2>&5
33636 ac_status=$?
33637 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
33638 test $ac_status = 0; }; }; then :
33639
33640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33641 $as_echo "yes" >&6; }
33642
33643 $as_echo "#define HAVE_S_D_OP 1" >>confdefs.h
33644
33645
33646 else
33647 $as_echo "$as_me: failed program was:" >&5
33648 sed 's/^/| /' conftest.$ac_ext >&5
33649
33650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33651 $as_echo "no" >&6; }
33652
33653
33654
33655 fi
33656 rm -Rf build
33657
33658
33659
33660
33661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether bdi_setup_and_register() wants 2 args" >&5
33662 $as_echo_n "checking whether bdi_setup_and_register() wants 2 args... " >&6; }
33663
33664
33665
33666 cat confdefs.h - <<_ACEOF >conftest.c
33667
33668
33669 #include <linux/backing-dev.h>
33670 struct backing_dev_info bdi;
33671
33672 int
33673 main (void)
33674 {
33675
33676 char *name = "bdi";
33677 int error __attribute__((unused)) =
33678 bdi_setup_and_register(&bdi, name);
33679
33680 ;
33681 return 0;
33682 }
33683
33684 _ACEOF
33685
33686
33687
33688 cat - <<_ACEOF >conftest.h
33689
33690 _ACEOF
33691
33692
33693 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
33694 echo "obj-m := conftest.o" >build/Makefile
33695 modpost_flag=''
33696 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
33697 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
33698 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
33699 (eval $ac_try) 2>&5
33700 ac_status=$?
33701 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
33702 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
33703 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
33704 (eval $ac_try) 2>&5
33705 ac_status=$?
33706 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
33707 test $ac_status = 0; }; }; then :
33708 rc=0
33709 else
33710 $as_echo "$as_me: failed program was:" >&5
33711 sed 's/^/| /' conftest.$ac_ext >&5
33712 rc=1
33713
33714
33715 fi
33716 rm -Rf build
33717
33718
33719 if test $rc -ne 0; then :
33720
33721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33722 $as_echo "no" >&6; }
33723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether bdi_setup_and_register() wants 3 args" >&5
33724 $as_echo_n "checking whether bdi_setup_and_register() wants 3 args... " >&6; }
33725
33726
33727
33728 cat confdefs.h - <<_ACEOF >conftest.c
33729
33730
33731 #include <linux/backing-dev.h>
33732 struct backing_dev_info bdi;
33733
33734 int
33735 main (void)
33736 {
33737
33738 char *name = "bdi";
33739 unsigned int cap = BDI_CAP_MAP_COPY;
33740 int error __attribute__((unused)) =
33741 bdi_setup_and_register(&bdi, name, cap);
33742
33743 ;
33744 return 0;
33745 }
33746
33747 _ACEOF
33748
33749
33750
33751 cat - <<_ACEOF >conftest.h
33752
33753 _ACEOF
33754
33755
33756 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
33757 echo "obj-m := conftest.o" >build/Makefile
33758 modpost_flag=''
33759 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
33760 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
33761 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
33762 (eval $ac_try) 2>&5
33763 ac_status=$?
33764 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
33765 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
33766 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
33767 (eval $ac_try) 2>&5
33768 ac_status=$?
33769 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
33770 test $ac_status = 0; }; }; then :
33771 rc=0
33772 else
33773 $as_echo "$as_me: failed program was:" >&5
33774 sed 's/^/| /' conftest.$ac_ext >&5
33775 rc=1
33776
33777
33778 fi
33779 rm -Rf build
33780
33781
33782 if test $rc -ne 0; then :
33783
33784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33785 $as_echo "no" >&6; }
33786
33787 else
33788 if test "x$enable_linux_builtin" != xyes; then
33789
33790 grep -q -E '[[:space:]]bdi_setup_and_register[[:space:]]' \
33791 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
33792 rc=$?
33793 if test $rc -ne 0; then
33794 export=0
33795 for file in mm/backing-dev.c; do
33796 grep -q -E "EXPORT_SYMBOL.*(bdi_setup_and_register)" \
33797 "$LINUX/$file" 2>/dev/null
33798 rc=$?
33799 if test $rc -eq 0; then
33800 export=1
33801 break;
33802 fi
33803 done
33804 if test $export -eq 0; then :
33805 rc=1
33806 else :
33807 rc=0
33808 fi
33809 else :
33810 rc=0
33811 fi
33812
33813 fi
33814 if test $rc -ne 0; then :
33815
33816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33817 $as_echo "no" >&6; }
33818
33819 else :
33820
33821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33822 $as_echo "yes" >&6; }
33823
33824 $as_echo "#define HAVE_3ARGS_BDI_SETUP_AND_REGISTER 1" >>confdefs.h
33825
33826
33827 fi
33828 fi
33829
33830
33831 else
33832 if test "x$enable_linux_builtin" != xyes; then
33833
33834 grep -q -E '[[:space:]]bdi_setup_and_register[[:space:]]' \
33835 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
33836 rc=$?
33837 if test $rc -ne 0; then
33838 export=0
33839 for file in mm/backing-dev.c; do
33840 grep -q -E "EXPORT_SYMBOL.*(bdi_setup_and_register)" \
33841 "$LINUX/$file" 2>/dev/null
33842 rc=$?
33843 if test $rc -eq 0; then
33844 export=1
33845 break;
33846 fi
33847 done
33848 if test $export -eq 0; then :
33849 rc=1
33850 else :
33851 rc=0
33852 fi
33853 else :
33854 rc=0
33855 fi
33856
33857 fi
33858 if test $rc -ne 0; then :
33859
33860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33861 $as_echo "no" >&6; }
33862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether bdi_setup_and_register() wants 3 args" >&5
33863 $as_echo_n "checking whether bdi_setup_and_register() wants 3 args... " >&6; }
33864
33865
33866
33867 cat confdefs.h - <<_ACEOF >conftest.c
33868
33869
33870 #include <linux/backing-dev.h>
33871 struct backing_dev_info bdi;
33872
33873 int
33874 main (void)
33875 {
33876
33877 char *name = "bdi";
33878 unsigned int cap = BDI_CAP_MAP_COPY;
33879 int error __attribute__((unused)) =
33880 bdi_setup_and_register(&bdi, name, cap);
33881
33882 ;
33883 return 0;
33884 }
33885
33886 _ACEOF
33887
33888
33889
33890 cat - <<_ACEOF >conftest.h
33891
33892 _ACEOF
33893
33894
33895 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
33896 echo "obj-m := conftest.o" >build/Makefile
33897 modpost_flag=''
33898 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
33899 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
33900 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
33901 (eval $ac_try) 2>&5
33902 ac_status=$?
33903 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
33904 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
33905 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
33906 (eval $ac_try) 2>&5
33907 ac_status=$?
33908 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
33909 test $ac_status = 0; }; }; then :
33910 rc=0
33911 else
33912 $as_echo "$as_me: failed program was:" >&5
33913 sed 's/^/| /' conftest.$ac_ext >&5
33914 rc=1
33915
33916
33917 fi
33918 rm -Rf build
33919
33920
33921 if test $rc -ne 0; then :
33922
33923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33924 $as_echo "no" >&6; }
33925
33926 else
33927 if test "x$enable_linux_builtin" != xyes; then
33928
33929 grep -q -E '[[:space:]]bdi_setup_and_register[[:space:]]' \
33930 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
33931 rc=$?
33932 if test $rc -ne 0; then
33933 export=0
33934 for file in mm/backing-dev.c; do
33935 grep -q -E "EXPORT_SYMBOL.*(bdi_setup_and_register)" \
33936 "$LINUX/$file" 2>/dev/null
33937 rc=$?
33938 if test $rc -eq 0; then
33939 export=1
33940 break;
33941 fi
33942 done
33943 if test $export -eq 0; then :
33944 rc=1
33945 else :
33946 rc=0
33947 fi
33948 else :
33949 rc=0
33950 fi
33951
33952 fi
33953 if test $rc -ne 0; then :
33954
33955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33956 $as_echo "no" >&6; }
33957
33958 else :
33959
33960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33961 $as_echo "yes" >&6; }
33962
33963 $as_echo "#define HAVE_3ARGS_BDI_SETUP_AND_REGISTER 1" >>confdefs.h
33964
33965
33966 fi
33967 fi
33968
33969
33970 else :
33971
33972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33973 $as_echo "yes" >&6; }
33974
33975 $as_echo "#define HAVE_2ARGS_BDI_SETUP_AND_REGISTER 1" >>confdefs.h
33976
33977
33978 fi
33979 fi
33980
33981
33982
33983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether set_nlink() is available" >&5
33984 $as_echo_n "checking whether set_nlink() is available... " >&6; }
33985
33986
33987 cat confdefs.h - <<_ACEOF >conftest.c
33988
33989
33990 #include <linux/fs.h>
33991
33992 int
33993 main (void)
33994 {
33995
33996 struct inode node;
33997 unsigned int link = 0;
33998 (void) set_nlink(&node, link);
33999
34000 ;
34001 return 0;
34002 }
34003
34004 _ACEOF
34005
34006
34007
34008 cat - <<_ACEOF >conftest.h
34009
34010 _ACEOF
34011
34012
34013 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
34014 echo "obj-m := conftest.o" >build/Makefile
34015 modpost_flag=''
34016 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
34017 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
34018 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
34019 (eval $ac_try) 2>&5
34020 ac_status=$?
34021 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
34022 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
34023 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
34024 (eval $ac_try) 2>&5
34025 ac_status=$?
34026 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
34027 test $ac_status = 0; }; }; then :
34028
34029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34030 $as_echo "yes" >&6; }
34031
34032 $as_echo "#define HAVE_SET_NLINK 1" >>confdefs.h
34033
34034
34035 else
34036 $as_echo "$as_me: failed program was:" >&5
34037 sed 's/^/| /' conftest.$ac_ext >&5
34038
34039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34040 $as_echo "no" >&6; }
34041
34042
34043
34044 fi
34045 rm -Rf build
34046
34047
34048
34049
34050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether elevator_change() is available" >&5
34051 $as_echo_n "checking whether elevator_change() is available... " >&6; }
34052 tmp_flags="$EXTRA_KCFLAGS"
34053 EXTRA_KCFLAGS="${NO_UNUSED_BUT_SET_VARIABLE}"
34054
34055
34056 cat confdefs.h - <<_ACEOF >conftest.c
34057
34058
34059 #include <linux/blkdev.h>
34060 #include <linux/elevator.h>
34061
34062 int
34063 main (void)
34064 {
34065
34066 int ret;
34067 struct request_queue *q = NULL;
34068 char *elevator = NULL;
34069 ret = elevator_change(q, elevator);
34070
34071 ;
34072 return 0;
34073 }
34074
34075 _ACEOF
34076
34077
34078
34079 cat - <<_ACEOF >conftest.h
34080
34081 _ACEOF
34082
34083
34084 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
34085 echo "obj-m := conftest.o" >build/Makefile
34086 modpost_flag=''
34087 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
34088 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
34089 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
34090 (eval $ac_try) 2>&5
34091 ac_status=$?
34092 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
34093 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
34094 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
34095 (eval $ac_try) 2>&5
34096 ac_status=$?
34097 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
34098 test $ac_status = 0; }; }; then :
34099
34100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34101 $as_echo "yes" >&6; }
34102
34103 $as_echo "#define HAVE_ELEVATOR_CHANGE 1" >>confdefs.h
34104
34105
34106 else
34107 $as_echo "$as_me: failed program was:" >&5
34108 sed 's/^/| /' conftest.$ac_ext >&5
34109
34110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34111 $as_echo "no" >&6; }
34112
34113
34114
34115 fi
34116 rm -Rf build
34117
34118
34119 EXTRA_KCFLAGS="$tmp_flags"
34120
34121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sget() wants 5 args" >&5
34122 $as_echo_n "checking whether sget() wants 5 args... " >&6; }
34123
34124
34125 cat confdefs.h - <<_ACEOF >conftest.c
34126
34127
34128 #include <linux/fs.h>
34129
34130 int
34131 main (void)
34132 {
34133
34134 struct file_system_type *type = NULL;
34135 int (*test)(struct super_block *,void *) = NULL;
34136 int (*set)(struct super_block *,void *) = NULL;
34137 int flags = 0;
34138 void *data = NULL;
34139 (void) sget(type, test, set, flags, data);
34140
34141 ;
34142 return 0;
34143 }
34144
34145 _ACEOF
34146
34147
34148
34149 cat - <<_ACEOF >conftest.h
34150
34151 _ACEOF
34152
34153
34154 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
34155 echo "obj-m := conftest.o" >build/Makefile
34156 modpost_flag=''
34157 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
34158 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
34159 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
34160 (eval $ac_try) 2>&5
34161 ac_status=$?
34162 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
34163 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
34164 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
34165 (eval $ac_try) 2>&5
34166 ac_status=$?
34167 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
34168 test $ac_status = 0; }; }; then :
34169
34170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34171 $as_echo "yes" >&6; }
34172
34173 $as_echo "#define HAVE_5ARG_SGET 1" >>confdefs.h
34174
34175
34176 else
34177 $as_echo "$as_me: failed program was:" >&5
34178 sed 's/^/| /' conftest.$ac_ext >&5
34179
34180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34181 $as_echo "no" >&6; }
34182
34183
34184
34185 fi
34186 rm -Rf build
34187
34188
34189
34190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lseek_execute() is available" >&5
34191 $as_echo_n "checking whether lseek_execute() is available... " >&6; }
34192
34193
34194
34195 cat confdefs.h - <<_ACEOF >conftest.c
34196
34197
34198 #include <linux/fs.h>
34199
34200 int
34201 main (void)
34202 {
34203
34204 struct file *fp __attribute__ ((unused)) = NULL;
34205 struct inode *ip __attribute__ ((unused)) = NULL;
34206 loff_t offset __attribute__ ((unused)) = 0;
34207 loff_t maxsize __attribute__ ((unused)) = 0;
34208
34209 lseek_execute(fp, ip, offset, maxsize);
34210
34211 ;
34212 return 0;
34213 }
34214
34215 _ACEOF
34216
34217
34218
34219 cat - <<_ACEOF >conftest.h
34220
34221 _ACEOF
34222
34223
34224 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
34225 echo "obj-m := conftest.o" >build/Makefile
34226 modpost_flag=''
34227 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
34228 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
34229 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
34230 (eval $ac_try) 2>&5
34231 ac_status=$?
34232 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
34233 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
34234 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
34235 (eval $ac_try) 2>&5
34236 ac_status=$?
34237 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
34238 test $ac_status = 0; }; }; then :
34239 rc=0
34240 else
34241 $as_echo "$as_me: failed program was:" >&5
34242 sed 's/^/| /' conftest.$ac_ext >&5
34243 rc=1
34244
34245
34246 fi
34247 rm -Rf build
34248
34249
34250 if test $rc -ne 0; then :
34251
34252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34253 $as_echo "no" >&6; }
34254
34255 else
34256 if test "x$enable_linux_builtin" != xyes; then
34257
34258 grep -q -E '[[:space:]]lseek_exclusive[[:space:]]' \
34259 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
34260 rc=$?
34261 if test $rc -ne 0; then
34262 export=0
34263 for file in fs/read_write.c; do
34264 grep -q -E "EXPORT_SYMBOL.*(lseek_exclusive)" \
34265 "$LINUX/$file" 2>/dev/null
34266 rc=$?
34267 if test $rc -eq 0; then
34268 export=1
34269 break;
34270 fi
34271 done
34272 if test $export -eq 0; then :
34273 rc=1
34274 else :
34275 rc=0
34276 fi
34277 else :
34278 rc=0
34279 fi
34280
34281 fi
34282 if test $rc -ne 0; then :
34283
34284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34285 $as_echo "no" >&6; }
34286
34287 else :
34288
34289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34290 $as_echo "yes" >&6; }
34291
34292 $as_echo "#define HAVE_LSEEK_EXECUTE 1" >>confdefs.h
34293
34294
34295 fi
34296 fi
34297
34298
34299
34300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fops->iterate_shared() is available" >&5
34301 $as_echo_n "checking whether fops->iterate_shared() is available... " >&6; }
34302
34303
34304 cat confdefs.h - <<_ACEOF >conftest.c
34305
34306
34307 #include <linux/fs.h>
34308 int iterate(struct file *filp, struct dir_context * context)
34309 { return 0; }
34310
34311 static const struct file_operations fops
34312 __attribute__ ((unused)) = {
34313 .iterate_shared = iterate,
34314 };
34315
34316 int
34317 main (void)
34318 {
34319
34320
34321 ;
34322 return 0;
34323 }
34324
34325 _ACEOF
34326
34327
34328
34329 cat - <<_ACEOF >conftest.h
34330
34331 _ACEOF
34332
34333
34334 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
34335 echo "obj-m := conftest.o" >build/Makefile
34336 modpost_flag=''
34337 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
34338 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
34339 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
34340 (eval $ac_try) 2>&5
34341 ac_status=$?
34342 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
34343 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
34344 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
34345 (eval $ac_try) 2>&5
34346 ac_status=$?
34347 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
34348 test $ac_status = 0; }; }; then :
34349
34350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34351 $as_echo "yes" >&6; }
34352
34353 $as_echo "#define HAVE_VFS_ITERATE_SHARED 1" >>confdefs.h
34354
34355
34356 else
34357 $as_echo "$as_me: failed program was:" >&5
34358 sed 's/^/| /' conftest.$ac_ext >&5
34359
34360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34361 $as_echo "no" >&6; }
34362
34363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fops->iterate() is available" >&5
34364 $as_echo_n "checking whether fops->iterate() is available... " >&6; }
34365
34366
34367 cat confdefs.h - <<_ACEOF >conftest.c
34368
34369
34370 #include <linux/fs.h>
34371 int iterate(struct file *filp, struct dir_context * context)
34372 { return 0; }
34373
34374 static const struct file_operations fops
34375 __attribute__ ((unused)) = {
34376 .iterate = iterate,
34377 };
34378
34379 int
34380 main (void)
34381 {
34382
34383
34384 ;
34385 return 0;
34386 }
34387
34388 _ACEOF
34389
34390
34391
34392 cat - <<_ACEOF >conftest.h
34393
34394 _ACEOF
34395
34396
34397 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
34398 echo "obj-m := conftest.o" >build/Makefile
34399 modpost_flag=''
34400 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
34401 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
34402 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
34403 (eval $ac_try) 2>&5
34404 ac_status=$?
34405 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
34406 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
34407 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
34408 (eval $ac_try) 2>&5
34409 ac_status=$?
34410 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
34411 test $ac_status = 0; }; }; then :
34412
34413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34414 $as_echo "yes" >&6; }
34415
34416 $as_echo "#define HAVE_VFS_ITERATE 1" >>confdefs.h
34417
34418
34419 else
34420 $as_echo "$as_me: failed program was:" >&5
34421 sed 's/^/| /' conftest.$ac_ext >&5
34422
34423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34424 $as_echo "no" >&6; }
34425
34426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fops->readdir() is available" >&5
34427 $as_echo_n "checking whether fops->readdir() is available... " >&6; }
34428
34429
34430 cat confdefs.h - <<_ACEOF >conftest.c
34431
34432
34433 #include <linux/fs.h>
34434 int readdir(struct file *filp, void *entry, filldir_t func)
34435 { return 0; }
34436
34437 static const struct file_operations fops
34438 __attribute__ ((unused)) = {
34439 .readdir = readdir,
34440 };
34441
34442 int
34443 main (void)
34444 {
34445
34446
34447 ;
34448 return 0;
34449 }
34450
34451 _ACEOF
34452
34453
34454
34455 cat - <<_ACEOF >conftest.h
34456
34457 _ACEOF
34458
34459
34460 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
34461 echo "obj-m := conftest.o" >build/Makefile
34462 modpost_flag=''
34463 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
34464 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
34465 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
34466 (eval $ac_try) 2>&5
34467 ac_status=$?
34468 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
34469 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
34470 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
34471 (eval $ac_try) 2>&5
34472 ac_status=$?
34473 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
34474 test $ac_status = 0; }; }; then :
34475
34476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34477 $as_echo "yes" >&6; }
34478
34479 $as_echo "#define HAVE_VFS_READDIR 1" >>confdefs.h
34480
34481
34482 else
34483 $as_echo "$as_me: failed program was:" >&5
34484 sed 's/^/| /' conftest.$ac_ext >&5
34485
34486 as_fn_error $? "no; file a bug report with ZFSOnLinux" "$LINENO" 5
34487
34488
34489
34490 fi
34491 rm -Rf build
34492
34493
34494
34495
34496
34497 fi
34498 rm -Rf build
34499
34500
34501
34502
34503
34504 fi
34505 rm -Rf build
34506
34507
34508
34509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fops->read/write_iter() are available" >&5
34510 $as_echo_n "checking whether fops->read/write_iter() are available... " >&6; }
34511
34512
34513 cat confdefs.h - <<_ACEOF >conftest.c
34514
34515
34516 #include <linux/fs.h>
34517
34518 ssize_t test_read(struct kiocb *kiocb, struct iov_iter *to)
34519 { return 0; }
34520 ssize_t test_write(struct kiocb *kiocb, struct iov_iter *from)
34521 { return 0; }
34522
34523 static const struct file_operations
34524 fops __attribute__ ((unused)) = {
34525 .read_iter = test_read,
34526 .write_iter = test_write,
34527 };
34528
34529 int
34530 main (void)
34531 {
34532
34533
34534 ;
34535 return 0;
34536 }
34537
34538 _ACEOF
34539
34540
34541
34542 cat - <<_ACEOF >conftest.h
34543
34544 _ACEOF
34545
34546
34547 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
34548 echo "obj-m := conftest.o" >build/Makefile
34549 modpost_flag=''
34550 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
34551 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
34552 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
34553 (eval $ac_try) 2>&5
34554 ac_status=$?
34555 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
34556 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
34557 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
34558 (eval $ac_try) 2>&5
34559 ac_status=$?
34560 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
34561 test $ac_status = 0; }; }; then :
34562
34563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34564 $as_echo "yes" >&6; }
34565
34566 $as_echo "#define HAVE_VFS_RW_ITERATE 1" >>confdefs.h
34567
34568
34569 else
34570 $as_echo "$as_me: failed program was:" >&5
34571 sed 's/^/| /' conftest.$ac_ext >&5
34572
34573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34574 $as_echo "no" >&6; }
34575
34576
34577
34578 fi
34579 rm -Rf build
34580
34581
34582
34583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether generic_write_checks() takes kiocb" >&5
34584 $as_echo_n "checking whether generic_write_checks() takes kiocb... " >&6; }
34585
34586
34587 cat confdefs.h - <<_ACEOF >conftest.c
34588
34589
34590 #include <linux/fs.h>
34591
34592
34593 int
34594 main (void)
34595 {
34596
34597 struct kiocb *iocb = NULL;
34598 struct iov_iter *iov = NULL;
34599 generic_write_checks(iocb, iov);
34600
34601 ;
34602 return 0;
34603 }
34604
34605 _ACEOF
34606
34607
34608
34609 cat - <<_ACEOF >conftest.h
34610
34611 _ACEOF
34612
34613
34614 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
34615 echo "obj-m := conftest.o" >build/Makefile
34616 modpost_flag=''
34617 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
34618 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
34619 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
34620 (eval $ac_try) 2>&5
34621 ac_status=$?
34622 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
34623 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
34624 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
34625 (eval $ac_try) 2>&5
34626 ac_status=$?
34627 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
34628 test $ac_status = 0; }; }; then :
34629
34630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34631 $as_echo "yes" >&6; }
34632
34633 $as_echo "#define HAVE_GENERIC_WRITE_CHECKS_KIOCB 1" >>confdefs.h
34634
34635
34636 else
34637 $as_echo "$as_me: failed program was:" >&5
34638 sed 's/^/| /' conftest.$ac_ext >&5
34639
34640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34641 $as_echo "no" >&6; }
34642
34643
34644
34645 fi
34646 rm -Rf build
34647
34648
34649
34650
34651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether kmap_atomic wants 1 args" >&5
34652 $as_echo_n "checking whether kmap_atomic wants 1 args... " >&6; }
34653
34654
34655 cat confdefs.h - <<_ACEOF >conftest.c
34656
34657
34658 #include <linux/pagemap.h>
34659
34660 int
34661 main (void)
34662 {
34663
34664 struct page page;
34665 kmap_atomic(&page);
34666
34667 ;
34668 return 0;
34669 }
34670
34671 _ACEOF
34672
34673
34674
34675 cat - <<_ACEOF >conftest.h
34676
34677 _ACEOF
34678
34679
34680 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
34681 echo "obj-m := conftest.o" >build/Makefile
34682 modpost_flag=''
34683 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
34684 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
34685 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
34686 (eval $ac_try) 2>&5
34687 ac_status=$?
34688 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
34689 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
34690 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
34691 (eval $ac_try) 2>&5
34692 ac_status=$?
34693 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
34694 test $ac_status = 0; }; }; then :
34695
34696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34697 $as_echo "yes" >&6; }
34698
34699 $as_echo "#define HAVE_1ARG_KMAP_ATOMIC 1" >>confdefs.h
34700
34701
34702 else
34703 $as_echo "$as_me: failed program was:" >&5
34704 sed 's/^/| /' conftest.$ac_ext >&5
34705
34706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34707 $as_echo "no" >&6; }
34708
34709
34710
34711 fi
34712 rm -Rf build
34713
34714
34715
34716
34717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether follow_down_one() is available" >&5
34718 $as_echo_n "checking whether follow_down_one() is available... " >&6; }
34719
34720
34721 cat confdefs.h - <<_ACEOF >conftest.c
34722
34723
34724 #include <linux/namei.h>
34725
34726 int
34727 main (void)
34728 {
34729
34730 struct path *p = NULL;
34731 follow_down_one(p);
34732
34733 ;
34734 return 0;
34735 }
34736
34737 _ACEOF
34738
34739
34740
34741 cat - <<_ACEOF >conftest.h
34742
34743 _ACEOF
34744
34745
34746 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
34747 echo "obj-m := conftest.o" >build/Makefile
34748 modpost_flag=''
34749 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
34750 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
34751 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
34752 (eval $ac_try) 2>&5
34753 ac_status=$?
34754 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
34755 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
34756 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
34757 (eval $ac_try) 2>&5
34758 ac_status=$?
34759 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
34760 test $ac_status = 0; }; }; then :
34761
34762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34763 $as_echo "yes" >&6; }
34764
34765 $as_echo "#define HAVE_FOLLOW_DOWN_ONE 1" >>confdefs.h
34766
34767
34768 else
34769 $as_echo "$as_me: failed program was:" >&5
34770 sed 's/^/| /' conftest.$ac_ext >&5
34771
34772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34773 $as_echo "no" >&6; }
34774
34775
34776
34777 fi
34778 rm -Rf build
34779
34780
34781
34782
34783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether make_request_fn() returns int" >&5
34784 $as_echo_n "checking whether make_request_fn() returns int... " >&6; }
34785
34786
34787 cat confdefs.h - <<_ACEOF >conftest.c
34788
34789
34790 #include <linux/blkdev.h>
34791
34792 int make_request(struct request_queue *q, struct bio *bio)
34793 {
34794 return (0);
34795 }
34796
34797 int
34798 main (void)
34799 {
34800
34801 blk_queue_make_request(NULL, &make_request);
34802
34803 ;
34804 return 0;
34805 }
34806
34807 _ACEOF
34808
34809
34810
34811 cat - <<_ACEOF >conftest.h
34812
34813 _ACEOF
34814
34815
34816 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
34817 echo "obj-m := conftest.o" >build/Makefile
34818 modpost_flag=''
34819 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
34820 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
34821 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
34822 (eval $ac_try) 2>&5
34823 ac_status=$?
34824 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
34825 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
34826 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
34827 (eval $ac_try) 2>&5
34828 ac_status=$?
34829 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
34830 test $ac_status = 0; }; }; then :
34831
34832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34833 $as_echo "yes" >&6; }
34834
34835 $as_echo "#define MAKE_REQUEST_FN_RET int" >>confdefs.h
34836
34837
34838 $as_echo "#define HAVE_MAKE_REQUEST_FN_RET_INT 1" >>confdefs.h
34839
34840
34841 else
34842 $as_echo "$as_me: failed program was:" >&5
34843 sed 's/^/| /' conftest.$ac_ext >&5
34844
34845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34846 $as_echo "no" >&6; }
34847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether make_request_fn() returns void" >&5
34848 $as_echo_n "checking whether make_request_fn() returns void... " >&6; }
34849
34850
34851 cat confdefs.h - <<_ACEOF >conftest.c
34852
34853
34854 #include <linux/blkdev.h>
34855
34856 void make_request(struct request_queue *q, struct bio *bio)
34857 {
34858 return;
34859 }
34860
34861 int
34862 main (void)
34863 {
34864
34865 blk_queue_make_request(NULL, &make_request);
34866
34867 ;
34868 return 0;
34869 }
34870
34871 _ACEOF
34872
34873
34874
34875 cat - <<_ACEOF >conftest.h
34876
34877 _ACEOF
34878
34879
34880 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
34881 echo "obj-m := conftest.o" >build/Makefile
34882 modpost_flag=''
34883 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
34884 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
34885 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
34886 (eval $ac_try) 2>&5
34887 ac_status=$?
34888 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
34889 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
34890 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
34891 (eval $ac_try) 2>&5
34892 ac_status=$?
34893 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
34894 test $ac_status = 0; }; }; then :
34895
34896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34897 $as_echo "yes" >&6; }
34898
34899 $as_echo "#define MAKE_REQUEST_FN_RET void" >>confdefs.h
34900
34901
34902 else
34903 $as_echo "$as_me: failed program was:" >&5
34904 sed 's/^/| /' conftest.$ac_ext >&5
34905
34906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34907 $as_echo "no" >&6; }
34908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether make_request_fn() returns blk_qc_t" >&5
34909 $as_echo_n "checking whether make_request_fn() returns blk_qc_t... " >&6; }
34910
34911
34912 cat confdefs.h - <<_ACEOF >conftest.c
34913
34914
34915 #include <linux/blkdev.h>
34916
34917 blk_qc_t make_request(struct request_queue *q, struct bio *bio)
34918 {
34919 return (BLK_QC_T_NONE);
34920 }
34921
34922 int
34923 main (void)
34924 {
34925
34926 blk_queue_make_request(NULL, &make_request);
34927
34928 ;
34929 return 0;
34930 }
34931
34932 _ACEOF
34933
34934
34935
34936 cat - <<_ACEOF >conftest.h
34937
34938 _ACEOF
34939
34940
34941 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
34942 echo "obj-m := conftest.o" >build/Makefile
34943 modpost_flag=''
34944 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
34945 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
34946 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
34947 (eval $ac_try) 2>&5
34948 ac_status=$?
34949 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
34950 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
34951 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
34952 (eval $ac_try) 2>&5
34953 ac_status=$?
34954 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
34955 test $ac_status = 0; }; }; then :
34956
34957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34958 $as_echo "yes" >&6; }
34959
34960 $as_echo "#define MAKE_REQUEST_FN_RET blk_qc_t" >>confdefs.h
34961
34962
34963 $as_echo "#define HAVE_MAKE_REQUEST_FN_RET_QC 1" >>confdefs.h
34964
34965
34966 else
34967 $as_echo "$as_me: failed program was:" >&5
34968 sed 's/^/| /' conftest.$ac_ext >&5
34969
34970 as_fn_error $? "no - Please file a bug report at
34971 https://github.com/zfsonlinux/zfs/issues/new" "$LINENO" 5
34972
34973
34974
34975 fi
34976 rm -Rf build
34977
34978
34979
34980
34981
34982 fi
34983 rm -Rf build
34984
34985
34986
34987
34988
34989 fi
34990 rm -Rf build
34991
34992
34993
34994
34995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether generic IO accounting symbols are avaliable" >&5
34996 $as_echo_n "checking whether generic IO accounting symbols are avaliable... " >&6; }
34997
34998
34999
35000 cat confdefs.h - <<_ACEOF >conftest.c
35001
35002
35003 #include <linux/bio.h>
35004
35005 void (*generic_start_io_acct_f)(int, unsigned long,
35006 struct hd_struct *) = &generic_start_io_acct;
35007 void (*generic_end_io_acct_f)(int, struct hd_struct *,
35008 unsigned long) = &generic_end_io_acct;
35009
35010 int
35011 main (void)
35012 {
35013
35014 generic_start_io_acct(0, 0, NULL);
35015 generic_end_io_acct(0, NULL, 0);
35016
35017 ;
35018 return 0;
35019 }
35020
35021 _ACEOF
35022
35023
35024
35025 cat - <<_ACEOF >conftest.h
35026
35027 _ACEOF
35028
35029
35030 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
35031 echo "obj-m := conftest.o" >build/Makefile
35032 modpost_flag=''
35033 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
35034 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
35035 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
35036 (eval $ac_try) 2>&5
35037 ac_status=$?
35038 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
35039 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
35040 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
35041 (eval $ac_try) 2>&5
35042 ac_status=$?
35043 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
35044 test $ac_status = 0; }; }; then :
35045 rc=0
35046 else
35047 $as_echo "$as_me: failed program was:" >&5
35048 sed 's/^/| /' conftest.$ac_ext >&5
35049 rc=1
35050
35051
35052 fi
35053 rm -Rf build
35054
35055
35056 if test $rc -ne 0; then :
35057
35058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35059 $as_echo "no" >&6; }
35060
35061 else
35062 if test "x$enable_linux_builtin" != xyes; then
35063
35064 grep -q -E '[[:space:]]generic_start_io_acct[[:space:]]' \
35065 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
35066 rc=$?
35067 if test $rc -ne 0; then
35068 export=0
35069 for file in block/bio.c; do
35070 grep -q -E "EXPORT_SYMBOL.*(generic_start_io_acct)" \
35071 "$LINUX/$file" 2>/dev/null
35072 rc=$?
35073 if test $rc -eq 0; then
35074 export=1
35075 break;
35076 fi
35077 done
35078 if test $export -eq 0; then :
35079 rc=1
35080 else :
35081 rc=0
35082 fi
35083 else :
35084 rc=0
35085 fi
35086
35087 fi
35088 if test $rc -ne 0; then :
35089
35090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35091 $as_echo "no" >&6; }
35092
35093 else :
35094
35095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35096 $as_echo "yes" >&6; }
35097
35098 $as_echo "#define HAVE_GENERIC_IO_ACCT 1" >>confdefs.h
35099
35100
35101 fi
35102 fi
35103
35104
35105
35106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->rename() wants flags" >&5
35107 $as_echo_n "checking whether iops->rename() wants flags... " >&6; }
35108
35109
35110 cat confdefs.h - <<_ACEOF >conftest.c
35111
35112
35113 #include <linux/fs.h>
35114 int rename_fn(struct inode *sip, struct dentry *sdp,
35115 struct inode *tip, struct dentry *tdp,
35116 unsigned int flags) { return 0; }
35117
35118 static const struct inode_operations
35119 iops __attribute__ ((unused)) = {
35120 .rename = rename_fn,
35121 };
35122
35123 int
35124 main (void)
35125 {
35126
35127
35128 ;
35129 return 0;
35130 }
35131
35132 _ACEOF
35133
35134
35135
35136 cat - <<_ACEOF >conftest.h
35137
35138 _ACEOF
35139
35140
35141 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
35142 echo "obj-m := conftest.o" >build/Makefile
35143 modpost_flag=''
35144 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
35145 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
35146 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
35147 (eval $ac_try) 2>&5
35148 ac_status=$?
35149 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
35150 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
35151 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
35152 (eval $ac_try) 2>&5
35153 ac_status=$?
35154 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
35155 test $ac_status = 0; }; }; then :
35156
35157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35158 $as_echo "yes" >&6; }
35159
35160 $as_echo "#define HAVE_RENAME_WANTS_FLAGS 1" >>confdefs.h
35161
35162
35163 else
35164 $as_echo "$as_me: failed program was:" >&5
35165 sed 's/^/| /' conftest.$ac_ext >&5
35166
35167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35168 $as_echo "no" >&6; }
35169
35170
35171
35172 fi
35173 rm -Rf build
35174
35175
35176
35177
35178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether generic_setxattr() exists" >&5
35179 $as_echo_n "checking whether generic_setxattr() exists... " >&6; }
35180
35181
35182 cat confdefs.h - <<_ACEOF >conftest.c
35183
35184
35185 #include <linux/fs.h>
35186 #include <linux/xattr.h>
35187
35188 static const struct inode_operations
35189 iops __attribute__ ((unused)) = {
35190 .setxattr = generic_setxattr
35191 };
35192
35193 int
35194 main (void)
35195 {
35196
35197
35198 ;
35199 return 0;
35200 }
35201
35202 _ACEOF
35203
35204
35205
35206 cat - <<_ACEOF >conftest.h
35207
35208 _ACEOF
35209
35210
35211 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
35212 echo "obj-m := conftest.o" >build/Makefile
35213 modpost_flag=''
35214 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
35215 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
35216 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
35217 (eval $ac_try) 2>&5
35218 ac_status=$?
35219 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
35220 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
35221 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
35222 (eval $ac_try) 2>&5
35223 ac_status=$?
35224 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
35225 test $ac_status = 0; }; }; then :
35226
35227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35228 $as_echo "yes" >&6; }
35229
35230 $as_echo "#define HAVE_GENERIC_SETXATTR 1" >>confdefs.h
35231
35232
35233 else
35234 $as_echo "$as_me: failed program was:" >&5
35235 sed 's/^/| /' conftest.$ac_ext >&5
35236
35237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35238 $as_echo "no" >&6; }
35239
35240
35241
35242 fi
35243 rm -Rf build
35244
35245
35246
35247
35248 if test "$LINUX_OBJ" != "$LINUX"; then :
35249
35250 KERNELMAKE_PARAMS="$KERNELMAKE_PARAMS O=$LINUX_OBJ"
35251
35252 fi
35253
35254
35255
35256 KERNELCPPFLAGS="$KERNELCPPFLAGS $NO_UNUSED_BUT_SET_VARIABLE"
35257 KERNELCPPFLAGS="$KERNELCPPFLAGS $NO_BOOL_COMPARE"
35258 KERNELCPPFLAGS="$KERNELCPPFLAGS -DHAVE_SPL -D_KERNEL"
35259 KERNELCPPFLAGS="$KERNELCPPFLAGS -DTEXT_DOMAIN=\\\"zfs-linux-kernel\\\""
35260
35261
35262
35263
35264
35265
35266 # Check whether --with-mounthelperdir was given.
35267 if test "${with_mounthelperdir+set}" = set; then :
35268 withval=$with_mounthelperdir; mounthelperdir=$withval
35269 else
35270 mounthelperdir=/sbin
35271 fi
35272
35273
35274
35275
35276
35277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for udev directories" >&5
35278 $as_echo_n "checking for udev directories... " >&6; }
35279
35280 # Check whether --with-udevdir was given.
35281 if test "${with_udevdir+set}" = set; then :
35282 withval=$with_udevdir; udevdir=$withval
35283 else
35284 udevdir=check
35285 fi
35286
35287
35288 if test "x$udevdir" = xcheck; then :
35289
35290 path1=/lib/udev
35291 path2=/usr/lib/udev
35292 default=$path2
35293
35294 if test -d "$path1"; then :
35295 udevdir="$path1"
35296 else
35297
35298 if test -d "$path2"; then :
35299 udevdir="$path2"
35300 else
35301 udevdir="$default"
35302 fi
35303
35304 fi
35305
35306 fi
35307
35308
35309 # Check whether --with-udevruledir was given.
35310 if test "${with_udevruledir+set}" = set; then :
35311 withval=$with_udevruledir; udevruledir=$withval
35312 else
35313 udevruledir="${udevdir}/rules.d"
35314 fi
35315
35316
35317
35318
35319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $udevdir;$udevruledir" >&5
35320 $as_echo "$udevdir;$udevruledir" >&6; }
35321
35322
35323 # Check whether --enable-systemd was given.
35324 if test "${enable_systemd+set}" = set; then :
35325 enableval=$enable_systemd;
35326 else
35327 enable_systemd=yes
35328 fi
35329
35330
35331
35332 # Check whether --with-systemdunitdir was given.
35333 if test "${with_systemdunitdir+set}" = set; then :
35334 withval=$with_systemdunitdir; systemdunitdir=$withval
35335 else
35336 systemdunitdir=/usr/lib/systemd/system
35337 fi
35338
35339
35340
35341 # Check whether --with-systemdpresetdir was given.
35342 if test "${with_systemdpresetdir+set}" = set; then :
35343 withval=$with_systemdpresetdir; systemdpresetdir=$withval
35344 else
35345 systemdpresetdir=/usr/lib/systemd/system-preset
35346 fi
35347
35348
35349
35350 # Check whether --with-systemdmodulesloaddir was given.
35351 if test "${with_systemdmodulesloaddir+set}" = set; then :
35352 withval=$with_systemdmodulesloaddir; systemdmoduleloaddir=$withval
35353 else
35354 systemdmodulesloaddir=/usr/lib/modules-load.d
35355 fi
35356
35357
35358
35359 if test "x$enable_systemd" = xyes; then :
35360
35361 ZFS_INIT_SYSTEMD=systemd
35362 ZFS_MODULE_LOAD=modules-load.d
35363 modulesloaddir=$systemdmodulesloaddir
35364
35365 fi
35366
35367
35368
35369
35370
35371
35372
35373
35374 # Check whether --enable-sysvinit was given.
35375 if test "${enable_sysvinit+set}" = set; then :
35376 enableval=$enable_sysvinit;
35377 else
35378 enable_sysvinit=yes
35379 fi
35380
35381
35382 if test "x$enable_sysvinit" = xyes; then :
35383 ZFS_INIT_SYSV=init.d
35384 fi
35385
35386
35387
35388
35389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dracut directory" >&5
35390 $as_echo_n "checking for dracut directory... " >&6; }
35391
35392 # Check whether --with-dracutdir was given.
35393 if test "${with_dracutdir+set}" = set; then :
35394 withval=$with_dracutdir; dracutdir=$withval
35395 else
35396 dracutdir=check
35397 fi
35398
35399
35400 if test "x$dracutdir" = xcheck; then :
35401
35402 path1=/usr/share/dracut
35403 path2=/usr/lib/dracut
35404 default=$path2
35405
35406 if test -d "$path1"; then :
35407 dracutdir="$path1"
35408 else
35409
35410 if test -d "$path2"; then :
35411 dracutdir="$path2"
35412 else
35413 dracutdir="$default"
35414 fi
35415
35416 fi
35417
35418 fi
35419
35420
35421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dracutdir" >&5
35422 $as_echo "$dracutdir" >&6; }
35423
35424
35425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for target asm dir" >&5
35426 $as_echo_n "checking for target asm dir... " >&6; }
35427 TARGET_ARCH=`echo ${target_cpu} | sed -e s/i.86/i386/`
35428
35429 case $TARGET_ARCH in
35430 i386|x86_64)
35431 TARGET_ASM_DIR=asm-${TARGET_ARCH}
35432 ;;
35433 *)
35434 TARGET_ASM_DIR=asm-generic
35435 ;;
35436 esac
35437
35438
35439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TARGET_ASM_DIR" >&5
35440 $as_echo "$TARGET_ASM_DIR" >&6; }
35441
35442
35443 ZLIB=
35444
35445 ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
35446 if test "x$ac_cv_header_zlib_h" = xyes; then :
35447
35448 else
35449 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
35450 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
35451 as_fn_error $? "
35452 *** zlib.h missing, zlib-devel package required
35453 See \`config.log' for more details" "$LINENO" 5; }
35454 fi
35455
35456
35457
35458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compress2 in -lz" >&5
35459 $as_echo_n "checking for compress2 in -lz... " >&6; }
35460 if ${ac_cv_lib_z_compress2+:} false; then :
35461 $as_echo_n "(cached) " >&6
35462 else
35463 ac_check_lib_save_LIBS=$LIBS
35464 LIBS="-lz $LIBS"
35465 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35466 /* end confdefs.h. */
35467
35468 /* Override any GCC internal prototype to avoid an error.
35469 Use char because int might match the return type of a GCC
35470 builtin and then its argument prototype would still apply. */
35471 #ifdef __cplusplus
35472 extern "C"
35473 #endif
35474 char compress2 ();
35475 int
35476 main ()
35477 {
35478 return compress2 ();
35479 ;
35480 return 0;
35481 }
35482 _ACEOF
35483 if ac_fn_c_try_link "$LINENO"; then :
35484 ac_cv_lib_z_compress2=yes
35485 else
35486 ac_cv_lib_z_compress2=no
35487 fi
35488 rm -f core conftest.err conftest.$ac_objext \
35489 conftest$ac_exeext conftest.$ac_ext
35490 LIBS=$ac_check_lib_save_LIBS
35491 fi
35492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_compress2" >&5
35493 $as_echo "$ac_cv_lib_z_compress2" >&6; }
35494 if test "x$ac_cv_lib_z_compress2" = xyes; then :
35495 cat >>confdefs.h <<_ACEOF
35496 #define HAVE_LIBZ 1
35497 _ACEOF
35498
35499 LIBS="-lz $LIBS"
35500
35501 else
35502 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
35503 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
35504 as_fn_error $? "
35505 *** compress2() missing, zlib-devel package required
35506 See \`config.log' for more details" "$LINENO" 5; }
35507 fi
35508
35509
35510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uncompress in -lz" >&5
35511 $as_echo_n "checking for uncompress in -lz... " >&6; }
35512 if ${ac_cv_lib_z_uncompress+:} false; then :
35513 $as_echo_n "(cached) " >&6
35514 else
35515 ac_check_lib_save_LIBS=$LIBS
35516 LIBS="-lz $LIBS"
35517 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35518 /* end confdefs.h. */
35519
35520 /* Override any GCC internal prototype to avoid an error.
35521 Use char because int might match the return type of a GCC
35522 builtin and then its argument prototype would still apply. */
35523 #ifdef __cplusplus
35524 extern "C"
35525 #endif
35526 char uncompress ();
35527 int
35528 main ()
35529 {
35530 return uncompress ();
35531 ;
35532 return 0;
35533 }
35534 _ACEOF
35535 if ac_fn_c_try_link "$LINENO"; then :
35536 ac_cv_lib_z_uncompress=yes
35537 else
35538 ac_cv_lib_z_uncompress=no
35539 fi
35540 rm -f core conftest.err conftest.$ac_objext \
35541 conftest$ac_exeext conftest.$ac_ext
35542 LIBS=$ac_check_lib_save_LIBS
35543 fi
35544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_uncompress" >&5
35545 $as_echo "$ac_cv_lib_z_uncompress" >&6; }
35546 if test "x$ac_cv_lib_z_uncompress" = xyes; then :
35547 cat >>confdefs.h <<_ACEOF
35548 #define HAVE_LIBZ 1
35549 _ACEOF
35550
35551 LIBS="-lz $LIBS"
35552
35553 else
35554 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
35555 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
35556 as_fn_error $? "
35557 *** uncompress() missing, zlib-devel package required
35558 See \`config.log' for more details" "$LINENO" 5; }
35559 fi
35560
35561
35562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for crc32 in -lz" >&5
35563 $as_echo_n "checking for crc32 in -lz... " >&6; }
35564 if ${ac_cv_lib_z_crc32+:} false; then :
35565 $as_echo_n "(cached) " >&6
35566 else
35567 ac_check_lib_save_LIBS=$LIBS
35568 LIBS="-lz $LIBS"
35569 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35570 /* end confdefs.h. */
35571
35572 /* Override any GCC internal prototype to avoid an error.
35573 Use char because int might match the return type of a GCC
35574 builtin and then its argument prototype would still apply. */
35575 #ifdef __cplusplus
35576 extern "C"
35577 #endif
35578 char crc32 ();
35579 int
35580 main ()
35581 {
35582 return crc32 ();
35583 ;
35584 return 0;
35585 }
35586 _ACEOF
35587 if ac_fn_c_try_link "$LINENO"; then :
35588 ac_cv_lib_z_crc32=yes
35589 else
35590 ac_cv_lib_z_crc32=no
35591 fi
35592 rm -f core conftest.err conftest.$ac_objext \
35593 conftest$ac_exeext conftest.$ac_ext
35594 LIBS=$ac_check_lib_save_LIBS
35595 fi
35596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_crc32" >&5
35597 $as_echo "$ac_cv_lib_z_crc32" >&6; }
35598 if test "x$ac_cv_lib_z_crc32" = xyes; then :
35599 cat >>confdefs.h <<_ACEOF
35600 #define HAVE_LIBZ 1
35601 _ACEOF
35602
35603 LIBS="-lz $LIBS"
35604
35605 else
35606 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
35607 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
35608 as_fn_error $? "
35609 *** crc32() missing, zlib-devel package required
35610 See \`config.log' for more details" "$LINENO" 5; }
35611 fi
35612
35613
35614 ZLIB="-lz"
35615
35616
35617 $as_echo "#define HAVE_ZLIB 1" >>confdefs.h
35618
35619
35620
35621 LIBUUID=
35622
35623 ac_fn_c_check_header_mongrel "$LINENO" "uuid/uuid.h" "ac_cv_header_uuid_uuid_h" "$ac_includes_default"
35624 if test "x$ac_cv_header_uuid_uuid_h" = xyes; then :
35625
35626 else
35627 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
35628 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
35629 as_fn_error $? "
35630 *** uuid/uuid.h missing, libuuid-devel package required
35631 See \`config.log' for more details" "$LINENO" 5; }
35632 fi
35633
35634
35635
35636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uuid_generate in -luuid" >&5
35637 $as_echo_n "checking for uuid_generate in -luuid... " >&6; }
35638 if ${ac_cv_lib_uuid_uuid_generate+:} false; then :
35639 $as_echo_n "(cached) " >&6
35640 else
35641 ac_check_lib_save_LIBS=$LIBS
35642 LIBS="-luuid $LIBS"
35643 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35644 /* end confdefs.h. */
35645
35646 /* Override any GCC internal prototype to avoid an error.
35647 Use char because int might match the return type of a GCC
35648 builtin and then its argument prototype would still apply. */
35649 #ifdef __cplusplus
35650 extern "C"
35651 #endif
35652 char uuid_generate ();
35653 int
35654 main ()
35655 {
35656 return uuid_generate ();
35657 ;
35658 return 0;
35659 }
35660 _ACEOF
35661 if ac_fn_c_try_link "$LINENO"; then :
35662 ac_cv_lib_uuid_uuid_generate=yes
35663 else
35664 ac_cv_lib_uuid_uuid_generate=no
35665 fi
35666 rm -f core conftest.err conftest.$ac_objext \
35667 conftest$ac_exeext conftest.$ac_ext
35668 LIBS=$ac_check_lib_save_LIBS
35669 fi
35670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_uuid_uuid_generate" >&5
35671 $as_echo "$ac_cv_lib_uuid_uuid_generate" >&6; }
35672 if test "x$ac_cv_lib_uuid_uuid_generate" = xyes; then :
35673 cat >>confdefs.h <<_ACEOF
35674 #define HAVE_LIBUUID 1
35675 _ACEOF
35676
35677 LIBS="-luuid $LIBS"
35678
35679 else
35680 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
35681 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
35682 as_fn_error $? "
35683 *** uuid_generate() missing, libuuid-devel package required
35684 See \`config.log' for more details" "$LINENO" 5; }
35685 fi
35686
35687
35688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uuid_is_null in -luuid" >&5
35689 $as_echo_n "checking for uuid_is_null in -luuid... " >&6; }
35690 if ${ac_cv_lib_uuid_uuid_is_null+:} false; then :
35691 $as_echo_n "(cached) " >&6
35692 else
35693 ac_check_lib_save_LIBS=$LIBS
35694 LIBS="-luuid $LIBS"
35695 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35696 /* end confdefs.h. */
35697
35698 /* Override any GCC internal prototype to avoid an error.
35699 Use char because int might match the return type of a GCC
35700 builtin and then its argument prototype would still apply. */
35701 #ifdef __cplusplus
35702 extern "C"
35703 #endif
35704 char uuid_is_null ();
35705 int
35706 main ()
35707 {
35708 return uuid_is_null ();
35709 ;
35710 return 0;
35711 }
35712 _ACEOF
35713 if ac_fn_c_try_link "$LINENO"; then :
35714 ac_cv_lib_uuid_uuid_is_null=yes
35715 else
35716 ac_cv_lib_uuid_uuid_is_null=no
35717 fi
35718 rm -f core conftest.err conftest.$ac_objext \
35719 conftest$ac_exeext conftest.$ac_ext
35720 LIBS=$ac_check_lib_save_LIBS
35721 fi
35722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_uuid_uuid_is_null" >&5
35723 $as_echo "$ac_cv_lib_uuid_uuid_is_null" >&6; }
35724 if test "x$ac_cv_lib_uuid_uuid_is_null" = xyes; then :
35725 cat >>confdefs.h <<_ACEOF
35726 #define HAVE_LIBUUID 1
35727 _ACEOF
35728
35729 LIBS="-luuid $LIBS"
35730
35731 else
35732 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
35733 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
35734 as_fn_error $? "
35735 *** uuid_is_null() missing, libuuid-devel package required
35736 See \`config.log' for more details" "$LINENO" 5; }
35737 fi
35738
35739
35740 LIBUUID="-luuid"
35741
35742
35743 $as_echo "#define HAVE_LIBUUID 1" >>confdefs.h
35744
35745
35746
35747
35748 # Check whether --with-blkid was given.
35749 if test "${with_blkid+set}" = set; then :
35750 withval=$with_blkid;
35751 else
35752 with_blkid=check
35753 fi
35754
35755
35756 LIBBLKID=
35757 if test "x$with_blkid" = xyes; then :
35758
35759 LIBBLKID="-lblkid"
35760
35761
35762 $as_echo "#define HAVE_LIBBLKID 1" >>confdefs.h
35763
35764
35765 fi
35766
35767 if test "x$with_blkid" = xcheck; then :
35768
35769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for blkid_get_cache in -lblkid" >&5
35770 $as_echo_n "checking for blkid_get_cache in -lblkid... " >&6; }
35771 if ${ac_cv_lib_blkid_blkid_get_cache+:} false; then :
35772 $as_echo_n "(cached) " >&6
35773 else
35774 ac_check_lib_save_LIBS=$LIBS
35775 LIBS="-lblkid $LIBS"
35776 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35777 /* end confdefs.h. */
35778
35779 /* Override any GCC internal prototype to avoid an error.
35780 Use char because int might match the return type of a GCC
35781 builtin and then its argument prototype would still apply. */
35782 #ifdef __cplusplus
35783 extern "C"
35784 #endif
35785 char blkid_get_cache ();
35786 int
35787 main ()
35788 {
35789 return blkid_get_cache ();
35790 ;
35791 return 0;
35792 }
35793 _ACEOF
35794 if ac_fn_c_try_link "$LINENO"; then :
35795 ac_cv_lib_blkid_blkid_get_cache=yes
35796 else
35797 ac_cv_lib_blkid_blkid_get_cache=no
35798 fi
35799 rm -f core conftest.err conftest.$ac_objext \
35800 conftest$ac_exeext conftest.$ac_ext
35801 LIBS=$ac_check_lib_save_LIBS
35802 fi
35803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_blkid_blkid_get_cache" >&5
35804 $as_echo "$ac_cv_lib_blkid_blkid_get_cache" >&6; }
35805 if test "x$ac_cv_lib_blkid_blkid_get_cache" = xyes; then :
35806
35807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for blkid zfs support" >&5
35808 $as_echo_n "checking for blkid zfs support... " >&6; }
35809
35810 ZFS_DEV=`mktemp`
35811 truncate -s 64M $ZFS_DEV
35812 echo -en "\x0c\xb1\xba\0\0\0\0\0" | \
35813 dd of=$ZFS_DEV bs=1k count=8 \
35814 seek=128 conv=notrunc &>/dev/null \
35815 >/dev/null 2>/dev/null
35816 echo -en "\x0c\xb1\xba\0\0\0\0\0" | \
35817 dd of=$ZFS_DEV bs=1k count=8 \
35818 seek=132 conv=notrunc &>/dev/null \
35819 >/dev/null 2>/dev/null
35820 echo -en "\x0c\xb1\xba\0\0\0\0\0" | \
35821 dd of=$ZFS_DEV bs=1k count=8 \
35822 seek=136 conv=notrunc &>/dev/null \
35823 >/dev/null 2>/dev/null
35824 echo -en "\x0c\xb1\xba\0\0\0\0\0" | \
35825 dd of=$ZFS_DEV bs=1k count=8 \
35826 seek=140 conv=notrunc &>/dev/null \
35827 >/dev/null 2>/dev/null
35828
35829 saved_LIBS="$LIBS"
35830 LIBS="-lblkid"
35831
35832 if test "$cross_compiling" = yes; then :
35833 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
35834 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
35835 as_fn_error $? "cannot run test program while cross compiling
35836 See \`config.log' for more details" "$LINENO" 5; }
35837 else
35838 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35839 /* end confdefs.h. */
35840
35841 #include <stdio.h>
35842 #include <stdlib.h>
35843 #include <blkid/blkid.h>
35844
35845 int
35846 main ()
35847 {
35848
35849 blkid_cache cache;
35850 char *value;
35851
35852 if (blkid_get_cache(&cache, NULL) < 0)
35853 return 1;
35854
35855 value = blkid_get_tag_value(cache, "TYPE",
35856 "$ZFS_DEV");
35857 if (!value) {
35858 blkid_put_cache(cache);
35859 return 2;
35860 }
35861
35862 if (strcmp(value, "zfs_member")) {
35863 free(value);
35864 blkid_put_cache(cache);
35865 return 0;
35866 }
35867
35868 free(value);
35869 blkid_put_cache(cache);
35870
35871 ;
35872 return 0;
35873 }
35874 _ACEOF
35875 if ac_fn_c_try_run "$LINENO"; then :
35876
35877 rm -f $ZFS_DEV
35878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35879 $as_echo "yes" >&6; }
35880 LIBBLKID="-lblkid"
35881
35882
35883 $as_echo "#define HAVE_LIBBLKID 1" >>confdefs.h
35884
35885
35886 else
35887
35888 rm -f $ZFS_DEV
35889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35890 $as_echo "no" >&6; }
35891 if test "x$with_blkid" != xcheck; then :
35892 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
35893 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
35894 as_fn_error $? "--with-blkid given but unavailable
35895 See \`config.log' for more details" "$LINENO" 5; }
35896 fi
35897
35898 fi
35899 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
35900 conftest.$ac_objext conftest.beam conftest.$ac_ext
35901 fi
35902
35903
35904 LIBS="$saved_LIBS"
35905
35906 else
35907
35908 if test "x$with_blkid" != xcheck; then :
35909 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
35910 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
35911 as_fn_error $? "--with-blkid given but unavailable
35912 See \`config.log' for more details" "$LINENO" 5; }
35913 fi
35914
35915
35916 fi
35917
35918
35919 fi
35920
35921
35922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -Wframe-larger-than=<size> support" >&5
35923 $as_echo_n "checking for -Wframe-larger-than=<size> support... " >&6; }
35924
35925 saved_flags="$CFLAGS"
35926 CFLAGS="$CFLAGS -Wframe-larger-than=1024"
35927
35928 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35929 /* end confdefs.h. */
35930
35931 int
35932 main ()
35933 {
35934
35935 ;
35936 return 0;
35937 }
35938 _ACEOF
35939 if ac_fn_c_try_compile "$LINENO"; then :
35940
35941 FRAME_LARGER_THAN=-Wframe-larger-than=1024
35942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35943 $as_echo "yes" >&6; }
35944
35945 else
35946
35947 FRAME_LARGER_THAN=
35948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35949 $as_echo "no" >&6; }
35950
35951 fi
35952 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35953
35954 CFLAGS="$saved_flags"
35955
35956
35957
35958 if test "x$runstatedir" = x; then
35959 runstatedir='${localstatedir}/run'
35960
35961 fi
35962
35963 for ac_func in mlockall
35964 do :
35965 ac_fn_c_check_func "$LINENO" "mlockall" "ac_cv_func_mlockall"
35966 if test "x$ac_cv_func_mlockall" = xyes; then :
35967 cat >>confdefs.h <<_ACEOF
35968 #define HAVE_MLOCKALL 1
35969 _ACEOF
35970
35971 fi
35972 done
35973
35974 ;;
35975 srpm) ;;
35976 *)
35977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Error!" >&5
35978 $as_echo "Error!" >&6; }
35979 as_fn_error $? "Bad value \"$ZFS_CONFIG\" for --with-config,
35980 user kernel|user|all|srpm" "$LINENO" 5 ;;
35981 esac
35982
35983 if test "$ZFS_CONFIG" = user -o "$ZFS_CONFIG" = all; then
35984 CONFIG_USER_TRUE=
35985 CONFIG_USER_FALSE='#'
35986 else
35987 CONFIG_USER_TRUE='#'
35988 CONFIG_USER_FALSE=
35989 fi
35990
35991 if test "$ZFS_CONFIG" = kernel -o "$ZFS_CONFIG" = all &&
35992 test "x$enable_linux_builtin" != xyes ; then
35993 CONFIG_KERNEL_TRUE=
35994 CONFIG_KERNEL_FALSE='#'
35995 else
35996 CONFIG_KERNEL_TRUE='#'
35997 CONFIG_KERNEL_FALSE=
35998 fi
35999
36000
36001
36002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether debugging is enabled" >&5
36003 $as_echo_n "checking whether debugging is enabled... " >&6; }
36004 # Check whether --enable-debug was given.
36005 if test "${enable_debug+set}" = set; then :
36006 enableval=$enable_debug;
36007 else
36008 enable_debug=no
36009 fi
36010
36011
36012 if test "x$enable_debug" = xyes; then :
36013
36014 KERNELCPPFLAGS="${KERNELCPPFLAGS} -DDEBUG -Werror"
36015 HOSTCFLAGS="${HOSTCFLAGS} -DDEBUG -Werror"
36016 DEBUG_CFLAGS="-DDEBUG -Werror"
36017 DEBUG_STACKFLAGS="-fstack-check"
36018 DEBUG_ZFS="_with_debug"
36019
36020 $as_echo "#define ZFS_DEBUG 1" >>confdefs.h
36021
36022
36023 else
36024
36025 KERNELCPPFLAGS="${KERNELCPPFLAGS} -DNDEBUG "
36026 HOSTCFLAGS="${HOSTCFLAGS} -DNDEBUG "
36027 DEBUG_CFLAGS="-DNDEBUG"
36028 DEBUG_STACKFLAGS=""
36029 DEBUG_ZFS="_without_debug"
36030
36031 fi
36032
36033
36034
36035
36036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_debug" >&5
36037 $as_echo "$enable_debug" >&6; }
36038
36039
36040 # Check whether --enable-debug-dmu-tx was given.
36041 if test "${enable_debug_dmu_tx+set}" = set; then :
36042 enableval=$enable_debug_dmu_tx;
36043 else
36044 enable_debug_dmu_tx=no
36045 fi
36046
36047
36048 if test "x$enable_debug_dmu_tx" = xyes; then :
36049
36050 KERNELCPPFLAGS="${KERNELCPPFLAGS} -DDEBUG_DMU_TX"
36051 DEBUG_DMU_TX="_with_debug_dmu_tx"
36052
36053 $as_echo "#define DEBUG_DMU_TX 1" >>confdefs.h
36054
36055
36056 else
36057
36058 DEBUG_DMU_TX="_without_debug_dmu_tx"
36059
36060 fi
36061
36062
36063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether dmu tx validation is enabled" >&5
36064 $as_echo_n "checking whether dmu tx validation is enabled... " >&6; }
36065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_debug_dmu_tx" >&5
36066 $as_echo "$enable_debug_dmu_tx" >&6; }
36067
36068
36069 ac_config_files="$ac_config_files Makefile udev/Makefile udev/rules.d/Makefile etc/Makefile etc/init.d/Makefile etc/zfs/Makefile etc/systemd/Makefile etc/systemd/system/Makefile etc/modules-load.d/Makefile man/Makefile man/man1/Makefile man/man5/Makefile man/man8/Makefile lib/Makefile lib/libspl/Makefile lib/libspl/asm-generic/Makefile lib/libspl/asm-i386/Makefile lib/libspl/asm-x86_64/Makefile lib/libspl/include/Makefile lib/libspl/include/ia32/Makefile lib/libspl/include/ia32/sys/Makefile lib/libspl/include/rpc/Makefile lib/libspl/include/sys/Makefile lib/libspl/include/sys/sysevent/Makefile lib/libspl/include/sys/dktp/Makefile lib/libspl/include/util/Makefile lib/libavl/Makefile lib/libefi/Makefile lib/libnvpair/Makefile lib/libunicode/Makefile lib/libuutil/Makefile lib/libzpool/Makefile lib/libzfs/libzfs.pc lib/libzfs/libzfs_core.pc lib/libzfs/Makefile lib/libzfs_core/Makefile lib/libshare/Makefile cmd/Makefile cmd/zdb/Makefile cmd/zhack/Makefile cmd/zfs/Makefile cmd/zinject/Makefile cmd/zpool/Makefile cmd/zstreamdump/Makefile cmd/ztest/Makefile cmd/zpios/Makefile cmd/mount_zfs/Makefile cmd/fsck_zfs/Makefile cmd/zvol_id/Makefile cmd/vdev_id/Makefile cmd/arcstat/Makefile cmd/dbufstat/Makefile cmd/arc_summary/Makefile cmd/zed/Makefile contrib/Makefile contrib/bash_completion.d/Makefile contrib/dracut/Makefile contrib/dracut/90zfs/Makefile contrib/initramfs/Makefile module/Makefile module/avl/Makefile module/nvpair/Makefile module/unicode/Makefile module/zcommon/Makefile module/zfs/Makefile module/zpios/Makefile include/Makefile include/linux/Makefile include/sys/Makefile include/sys/fs/Makefile include/sys/fm/Makefile include/sys/fm/fs/Makefile scripts/Makefile scripts/zpios-profile/Makefile scripts/zpios-test/Makefile scripts/zpool-config/Makefile scripts/common.sh rpm/Makefile rpm/redhat/Makefile rpm/redhat/zfs.spec rpm/redhat/zfs-kmod.spec rpm/redhat/zfs-dkms.spec rpm/generic/Makefile rpm/generic/zfs.spec rpm/generic/zfs-kmod.spec rpm/generic/zfs-dkms.spec zfs-script-config.sh zfs.release"
36070
36071
36072 cat >confcache <<\_ACEOF
36073 # This file is a shell script that caches the results of configure
36074 # tests run on this system so they can be shared between configure
36075 # scripts and configure runs, see configure's option --config-cache.
36076 # It is not useful on other systems. If it contains results you don't
36077 # want to keep, you may remove or edit it.
36078 #
36079 # config.status only pays attention to the cache file if you give it
36080 # the --recheck option to rerun configure.
36081 #
36082 # `ac_cv_env_foo' variables (set or unset) will be overridden when
36083 # loading this file, other *unset* `ac_cv_foo' will be assigned the
36084 # following values.
36085
36086 _ACEOF
36087
36088 # The following way of writing the cache mishandles newlines in values,
36089 # but we know of no workaround that is simple, portable, and efficient.
36090 # So, we kill variables containing newlines.
36091 # Ultrix sh set writes to stderr and can't be redirected directly,
36092 # and sets the high bit in the cache file unless we assign to the vars.
36093 (
36094 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
36095 eval ac_val=\$$ac_var
36096 case $ac_val in #(
36097 *${as_nl}*)
36098 case $ac_var in #(
36099 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
36100 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
36101 esac
36102 case $ac_var in #(
36103 _ | IFS | as_nl) ;; #(
36104 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
36105 *) { eval $ac_var=; unset $ac_var;} ;;
36106 esac ;;
36107 esac
36108 done
36109
36110 (set) 2>&1 |
36111 case $as_nl`(ac_space=' '; set) 2>&1` in #(
36112 *${as_nl}ac_space=\ *)
36113 # `set' does not quote correctly, so add quotes: double-quote
36114 # substitution turns \\\\ into \\, and sed turns \\ into \.
36115 sed -n \
36116 "s/'/'\\\\''/g;
36117 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
36118 ;; #(
36119 *)
36120 # `set' quotes correctly as required by POSIX, so do not add quotes.
36121 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
36122 ;;
36123 esac |
36124 sort
36125 ) |
36126 sed '
36127 /^ac_cv_env_/b end
36128 t clear
36129 :clear
36130 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
36131 t end
36132 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
36133 :end' >>confcache
36134 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
36135 if test -w "$cache_file"; then
36136 if test "x$cache_file" != "x/dev/null"; then
36137 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
36138 $as_echo "$as_me: updating cache $cache_file" >&6;}
36139 if test ! -f "$cache_file" || test -h "$cache_file"; then
36140 cat confcache >"$cache_file"
36141 else
36142 case $cache_file in #(
36143 */* | ?:*)
36144 mv -f confcache "$cache_file"$$ &&
36145 mv -f "$cache_file"$$ "$cache_file" ;; #(
36146 *)
36147 mv -f confcache "$cache_file" ;;
36148 esac
36149 fi
36150 fi
36151 else
36152 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
36153 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
36154 fi
36155 fi
36156 rm -f confcache
36157
36158 test "x$prefix" = xNONE && prefix=$ac_default_prefix
36159 # Let make expand exec_prefix.
36160 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
36161
36162 DEFS=-DHAVE_CONFIG_H
36163
36164 ac_libobjs=
36165 ac_ltlibobjs=
36166 U=
36167 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
36168 # 1. Remove the extension, and $U if already installed.
36169 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
36170 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
36171 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
36172 # will be set to the directory where LIBOBJS objects are built.
36173 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
36174 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
36175 done
36176 LIBOBJS=$ac_libobjs
36177
36178 LTLIBOBJS=$ac_ltlibobjs
36179
36180
36181 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
36182 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
36183 Usually this means the macro was only invoked conditionally." "$LINENO" 5
36184 fi
36185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
36186 $as_echo_n "checking that generated files are newer than configure... " >&6; }
36187 if test -n "$am_sleep_pid"; then
36188 # Hide warnings about reused PIDs.
36189 wait $am_sleep_pid 2>/dev/null
36190 fi
36191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
36192 $as_echo "done" >&6; }
36193 if test -n "$EXEEXT"; then
36194 am__EXEEXT_TRUE=
36195 am__EXEEXT_FALSE='#'
36196 else
36197 am__EXEEXT_TRUE='#'
36198 am__EXEEXT_FALSE=
36199 fi
36200
36201 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
36202 as_fn_error $? "conditional \"AMDEP\" was never defined.
36203 Usually this means the macro was only invoked conditionally." "$LINENO" 5
36204 fi
36205 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
36206 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
36207 Usually this means the macro was only invoked conditionally." "$LINENO" 5
36208 fi
36209 if test -z "${am__fastdepCCAS_TRUE}" && test -z "${am__fastdepCCAS_FALSE}"; then
36210 as_fn_error $? "conditional \"am__fastdepCCAS\" was never defined.
36211 Usually this means the macro was only invoked conditionally." "$LINENO" 5
36212 fi
36213 if test -z "${CONFIG_USER_TRUE}" && test -z "${CONFIG_USER_FALSE}"; then
36214 as_fn_error $? "conditional \"CONFIG_USER\" was never defined.
36215 Usually this means the macro was only invoked conditionally." "$LINENO" 5
36216 fi
36217 if test -z "${CONFIG_KERNEL_TRUE}" && test -z "${CONFIG_KERNEL_FALSE}"; then
36218 as_fn_error $? "conditional \"CONFIG_KERNEL\" was never defined.
36219 Usually this means the macro was only invoked conditionally." "$LINENO" 5
36220 fi
36221
36222 : "${CONFIG_STATUS=./config.status}"
36223 ac_write_fail=0
36224 ac_clean_files_save=$ac_clean_files
36225 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
36226 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
36227 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
36228 as_write_fail=0
36229 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
36230 #! $SHELL
36231 # Generated by $as_me.
36232 # Run this file to recreate the current configuration.
36233 # Compiler output produced by configure, useful for debugging
36234 # configure, is in config.log if it exists.
36235
36236 debug=false
36237 ac_cs_recheck=false
36238 ac_cs_silent=false
36239
36240 SHELL=\${CONFIG_SHELL-$SHELL}
36241 export SHELL
36242 _ASEOF
36243 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
36244 ## -------------------- ##
36245 ## M4sh Initialization. ##
36246 ## -------------------- ##
36247
36248 # Be more Bourne compatible
36249 DUALCASE=1; export DUALCASE # for MKS sh
36250 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
36251 emulate sh
36252 NULLCMD=:
36253 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
36254 # is contrary to our usage. Disable this feature.
36255 alias -g '${1+"$@"}'='"$@"'
36256 setopt NO_GLOB_SUBST
36257 else
36258 case `(set -o) 2>/dev/null` in #(
36259 *posix*) :
36260 set -o posix ;; #(
36261 *) :
36262 ;;
36263 esac
36264 fi
36265
36266
36267 as_nl='
36268 '
36269 export as_nl
36270 # Printing a long string crashes Solaris 7 /usr/bin/printf.
36271 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
36272 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
36273 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
36274 # Prefer a ksh shell builtin over an external printf program on Solaris,
36275 # but without wasting forks for bash or zsh.
36276 if test -z "$BASH_VERSION$ZSH_VERSION" \
36277 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
36278 as_echo='print -r --'
36279 as_echo_n='print -rn --'
36280 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
36281 as_echo='printf %s\n'
36282 as_echo_n='printf %s'
36283 else
36284 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
36285 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
36286 as_echo_n='/usr/ucb/echo -n'
36287 else
36288 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
36289 as_echo_n_body='eval
36290 arg=$1;
36291 case $arg in #(
36292 *"$as_nl"*)
36293 expr "X$arg" : "X\\(.*\\)$as_nl";
36294 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
36295 esac;
36296 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
36297 '
36298 export as_echo_n_body
36299 as_echo_n='sh -c $as_echo_n_body as_echo'
36300 fi
36301 export as_echo_body
36302 as_echo='sh -c $as_echo_body as_echo'
36303 fi
36304
36305 # The user is always right.
36306 if test "${PATH_SEPARATOR+set}" != set; then
36307 PATH_SEPARATOR=:
36308 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
36309 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
36310 PATH_SEPARATOR=';'
36311 }
36312 fi
36313
36314
36315 # IFS
36316 # We need space, tab and new line, in precisely that order. Quoting is
36317 # there to prevent editors from complaining about space-tab.
36318 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
36319 # splitting by setting IFS to empty value.)
36320 IFS=" "" $as_nl"
36321
36322 # Find who we are. Look in the path if we contain no directory separator.
36323 as_myself=
36324 case $0 in #((
36325 *[\\/]* ) as_myself=$0 ;;
36326 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
36327 for as_dir in $PATH
36328 do
36329 IFS=$as_save_IFS
36330 test -z "$as_dir" && as_dir=.
36331 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
36332 done
36333 IFS=$as_save_IFS
36334
36335 ;;
36336 esac
36337 # We did not find ourselves, most probably we were run as `sh COMMAND'
36338 # in which case we are not to be found in the path.
36339 if test "x$as_myself" = x; then
36340 as_myself=$0
36341 fi
36342 if test ! -f "$as_myself"; then
36343 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
36344 exit 1
36345 fi
36346
36347 # Unset variables that we do not need and which cause bugs (e.g. in
36348 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
36349 # suppresses any "Segmentation fault" message there. '((' could
36350 # trigger a bug in pdksh 5.2.14.
36351 for as_var in BASH_ENV ENV MAIL MAILPATH
36352 do eval test x\${$as_var+set} = xset \
36353 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
36354 done
36355 PS1='$ '
36356 PS2='> '
36357 PS4='+ '
36358
36359 # NLS nuisances.
36360 LC_ALL=C
36361 export LC_ALL
36362 LANGUAGE=C
36363 export LANGUAGE
36364
36365 # CDPATH.
36366 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
36367
36368
36369 # as_fn_error STATUS ERROR [LINENO LOG_FD]
36370 # ----------------------------------------
36371 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
36372 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
36373 # script with STATUS, using 1 if that was 0.
36374 as_fn_error ()
36375 {
36376 as_status=$1; test $as_status -eq 0 && as_status=1
36377 if test "$4"; then
36378 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
36379 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
36380 fi
36381 $as_echo "$as_me: error: $2" >&2
36382 as_fn_exit $as_status
36383 } # as_fn_error
36384
36385
36386 # as_fn_set_status STATUS
36387 # -----------------------
36388 # Set $? to STATUS, without forking.
36389 as_fn_set_status ()
36390 {
36391 return $1
36392 } # as_fn_set_status
36393
36394 # as_fn_exit STATUS
36395 # -----------------
36396 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
36397 as_fn_exit ()
36398 {
36399 set +e
36400 as_fn_set_status $1
36401 exit $1
36402 } # as_fn_exit
36403
36404 # as_fn_unset VAR
36405 # ---------------
36406 # Portably unset VAR.
36407 as_fn_unset ()
36408 {
36409 { eval $1=; unset $1;}
36410 }
36411 as_unset=as_fn_unset
36412 # as_fn_append VAR VALUE
36413 # ----------------------
36414 # Append the text in VALUE to the end of the definition contained in VAR. Take
36415 # advantage of any shell optimizations that allow amortized linear growth over
36416 # repeated appends, instead of the typical quadratic growth present in naive
36417 # implementations.
36418 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
36419 eval 'as_fn_append ()
36420 {
36421 eval $1+=\$2
36422 }'
36423 else
36424 as_fn_append ()
36425 {
36426 eval $1=\$$1\$2
36427 }
36428 fi # as_fn_append
36429
36430 # as_fn_arith ARG...
36431 # ------------------
36432 # Perform arithmetic evaluation on the ARGs, and store the result in the
36433 # global $as_val. Take advantage of shells that can avoid forks. The arguments
36434 # must be portable across $(()) and expr.
36435 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
36436 eval 'as_fn_arith ()
36437 {
36438 as_val=$(( $* ))
36439 }'
36440 else
36441 as_fn_arith ()
36442 {
36443 as_val=`expr "$@" || test $? -eq 1`
36444 }
36445 fi # as_fn_arith
36446
36447
36448 if expr a : '\(a\)' >/dev/null 2>&1 &&
36449 test "X`expr 00001 : '.*\(...\)'`" = X001; then
36450 as_expr=expr
36451 else
36452 as_expr=false
36453 fi
36454
36455 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
36456 as_basename=basename
36457 else
36458 as_basename=false
36459 fi
36460
36461 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
36462 as_dirname=dirname
36463 else
36464 as_dirname=false
36465 fi
36466
36467 as_me=`$as_basename -- "$0" ||
36468 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
36469 X"$0" : 'X\(//\)$' \| \
36470 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
36471 $as_echo X/"$0" |
36472 sed '/^.*\/\([^/][^/]*\)\/*$/{
36473 s//\1/
36474 q
36475 }
36476 /^X\/\(\/\/\)$/{
36477 s//\1/
36478 q
36479 }
36480 /^X\/\(\/\).*/{
36481 s//\1/
36482 q
36483 }
36484 s/.*/./; q'`
36485
36486 # Avoid depending upon Character Ranges.
36487 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
36488 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36489 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
36490 as_cr_digits='0123456789'
36491 as_cr_alnum=$as_cr_Letters$as_cr_digits
36492
36493 ECHO_C= ECHO_N= ECHO_T=
36494 case `echo -n x` in #(((((
36495 -n*)
36496 case `echo 'xy\c'` in
36497 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
36498 xy) ECHO_C='\c';;
36499 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
36500 ECHO_T=' ';;
36501 esac;;
36502 *)
36503 ECHO_N='-n';;
36504 esac
36505
36506 rm -f conf$$ conf$$.exe conf$$.file
36507 if test -d conf$$.dir; then
36508 rm -f conf$$.dir/conf$$.file
36509 else
36510 rm -f conf$$.dir
36511 mkdir conf$$.dir 2>/dev/null
36512 fi
36513 if (echo >conf$$.file) 2>/dev/null; then
36514 if ln -s conf$$.file conf$$ 2>/dev/null; then
36515 as_ln_s='ln -s'
36516 # ... but there are two gotchas:
36517 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
36518 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
36519 # In both cases, we have to default to `cp -pR'.
36520 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
36521 as_ln_s='cp -pR'
36522 elif ln conf$$.file conf$$ 2>/dev/null; then
36523 as_ln_s=ln
36524 else
36525 as_ln_s='cp -pR'
36526 fi
36527 else
36528 as_ln_s='cp -pR'
36529 fi
36530 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
36531 rmdir conf$$.dir 2>/dev/null
36532
36533
36534 # as_fn_mkdir_p
36535 # -------------
36536 # Create "$as_dir" as a directory, including parents if necessary.
36537 as_fn_mkdir_p ()
36538 {
36539
36540 case $as_dir in #(
36541 -*) as_dir=./$as_dir;;
36542 esac
36543 test -d "$as_dir" || eval $as_mkdir_p || {
36544 as_dirs=
36545 while :; do
36546 case $as_dir in #(
36547 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
36548 *) as_qdir=$as_dir;;
36549 esac
36550 as_dirs="'$as_qdir' $as_dirs"
36551 as_dir=`$as_dirname -- "$as_dir" ||
36552 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
36553 X"$as_dir" : 'X\(//\)[^/]' \| \
36554 X"$as_dir" : 'X\(//\)$' \| \
36555 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
36556 $as_echo X"$as_dir" |
36557 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
36558 s//\1/
36559 q
36560 }
36561 /^X\(\/\/\)[^/].*/{
36562 s//\1/
36563 q
36564 }
36565 /^X\(\/\/\)$/{
36566 s//\1/
36567 q
36568 }
36569 /^X\(\/\).*/{
36570 s//\1/
36571 q
36572 }
36573 s/.*/./; q'`
36574 test -d "$as_dir" && break
36575 done
36576 test -z "$as_dirs" || eval "mkdir $as_dirs"
36577 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
36578
36579
36580 } # as_fn_mkdir_p
36581 if mkdir -p . 2>/dev/null; then
36582 as_mkdir_p='mkdir -p "$as_dir"'
36583 else
36584 test -d ./-p && rmdir ./-p
36585 as_mkdir_p=false
36586 fi
36587
36588
36589 # as_fn_executable_p FILE
36590 # -----------------------
36591 # Test if FILE is an executable regular file.
36592 as_fn_executable_p ()
36593 {
36594 test -f "$1" && test -x "$1"
36595 } # as_fn_executable_p
36596 as_test_x='test -x'
36597 as_executable_p=as_fn_executable_p
36598
36599 # Sed expression to map a string onto a valid CPP name.
36600 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
36601
36602 # Sed expression to map a string onto a valid variable name.
36603 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
36604
36605
36606 exec 6>&1
36607 ## ----------------------------------- ##
36608 ## Main body of $CONFIG_STATUS script. ##
36609 ## ----------------------------------- ##
36610 _ASEOF
36611 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
36612
36613 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
36614 # Save the log message, to keep $0 and so on meaningful, and to
36615 # report actual input values of CONFIG_FILES etc. instead of their
36616 # values after options handling.
36617 ac_log="
36618 This file was extended by zfs $as_me 0.6.5.9, which was
36619 generated by GNU Autoconf 2.69. Invocation command line was
36620
36621 CONFIG_FILES = $CONFIG_FILES
36622 CONFIG_HEADERS = $CONFIG_HEADERS
36623 CONFIG_LINKS = $CONFIG_LINKS
36624 CONFIG_COMMANDS = $CONFIG_COMMANDS
36625 $ $0 $@
36626
36627 on `(hostname || uname -n) 2>/dev/null | sed 1q`
36628 "
36629
36630 _ACEOF
36631
36632 case $ac_config_files in *"
36633 "*) set x $ac_config_files; shift; ac_config_files=$*;;
36634 esac
36635
36636 case $ac_config_headers in *"
36637 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
36638 esac
36639
36640
36641 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
36642 # Files that config.status was made for.
36643 config_files="$ac_config_files"
36644 config_headers="$ac_config_headers"
36645 config_commands="$ac_config_commands"
36646
36647 _ACEOF
36648
36649 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
36650 ac_cs_usage="\
36651 \`$as_me' instantiates files and other configuration actions
36652 from templates according to the current configuration. Unless the files
36653 and actions are specified as TAGs, all are instantiated by default.
36654
36655 Usage: $0 [OPTION]... [TAG]...
36656
36657 -h, --help print this help, then exit
36658 -V, --version print version number and configuration settings, then exit
36659 --config print configuration, then exit
36660 -q, --quiet, --silent
36661 do not print progress messages
36662 -d, --debug don't remove temporary files
36663 --recheck update $as_me by reconfiguring in the same conditions
36664 --file=FILE[:TEMPLATE]
36665 instantiate the configuration file FILE
36666 --header=FILE[:TEMPLATE]
36667 instantiate the configuration header FILE
36668
36669 Configuration files:
36670 $config_files
36671
36672 Configuration headers:
36673 $config_headers
36674
36675 Configuration commands:
36676 $config_commands
36677
36678 Report bugs to the package provider."
36679
36680 _ACEOF
36681 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
36682 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
36683 ac_cs_version="\\
36684 zfs config.status 0.6.5.9
36685 configured by $0, generated by GNU Autoconf 2.69,
36686 with options \\"\$ac_cs_config\\"
36687
36688 Copyright (C) 2012 Free Software Foundation, Inc.
36689 This config.status script is free software; the Free Software Foundation
36690 gives unlimited permission to copy, distribute and modify it."
36691
36692 ac_pwd='$ac_pwd'
36693 srcdir='$srcdir'
36694 INSTALL='$INSTALL'
36695 MKDIR_P='$MKDIR_P'
36696 AWK='$AWK'
36697 test -n "\$AWK" || AWK=awk
36698 _ACEOF
36699
36700 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
36701 # The default lists apply if the user does not specify any file.
36702 ac_need_defaults=:
36703 while test $# != 0
36704 do
36705 case $1 in
36706 --*=?*)
36707 ac_option=`expr "X$1" : 'X\([^=]*\)='`
36708 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
36709 ac_shift=:
36710 ;;
36711 --*=)
36712 ac_option=`expr "X$1" : 'X\([^=]*\)='`
36713 ac_optarg=
36714 ac_shift=:
36715 ;;
36716 *)
36717 ac_option=$1
36718 ac_optarg=$2
36719 ac_shift=shift
36720 ;;
36721 esac
36722
36723 case $ac_option in
36724 # Handling of the options.
36725 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
36726 ac_cs_recheck=: ;;
36727 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
36728 $as_echo "$ac_cs_version"; exit ;;
36729 --config | --confi | --conf | --con | --co | --c )
36730 $as_echo "$ac_cs_config"; exit ;;
36731 --debug | --debu | --deb | --de | --d | -d )
36732 debug=: ;;
36733 --file | --fil | --fi | --f )
36734 $ac_shift
36735 case $ac_optarg in
36736 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
36737 '') as_fn_error $? "missing file argument" ;;
36738 esac
36739 as_fn_append CONFIG_FILES " '$ac_optarg'"
36740 ac_need_defaults=false;;
36741 --header | --heade | --head | --hea )
36742 $ac_shift
36743 case $ac_optarg in
36744 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
36745 esac
36746 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
36747 ac_need_defaults=false;;
36748 --he | --h)
36749 # Conflict between --help and --header
36750 as_fn_error $? "ambiguous option: \`$1'
36751 Try \`$0 --help' for more information.";;
36752 --help | --hel | -h )
36753 $as_echo "$ac_cs_usage"; exit ;;
36754 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
36755 | -silent | --silent | --silen | --sile | --sil | --si | --s)
36756 ac_cs_silent=: ;;
36757
36758 # This is an error.
36759 -*) as_fn_error $? "unrecognized option: \`$1'
36760 Try \`$0 --help' for more information." ;;
36761
36762 *) as_fn_append ac_config_targets " $1"
36763 ac_need_defaults=false ;;
36764
36765 esac
36766 shift
36767 done
36768
36769 ac_configure_extra_args=
36770
36771 if $ac_cs_silent; then
36772 exec 6>/dev/null
36773 ac_configure_extra_args="$ac_configure_extra_args --silent"
36774 fi
36775
36776 _ACEOF
36777 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
36778 if \$ac_cs_recheck; then
36779 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
36780 shift
36781 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
36782 CONFIG_SHELL='$SHELL'
36783 export CONFIG_SHELL
36784 exec "\$@"
36785 fi
36786
36787 _ACEOF
36788 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
36789 exec 5>>config.log
36790 {
36791 echo
36792 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
36793 ## Running $as_me. ##
36794 _ASBOX
36795 $as_echo "$ac_log"
36796 } >&5
36797
36798 _ACEOF
36799 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
36800 #
36801 # INIT-COMMANDS
36802 #
36803 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
36804
36805
36806 # The HP-UX ksh and POSIX shell print the target directory to stdout
36807 # if CDPATH is set.
36808 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
36809
36810 sed_quote_subst='$sed_quote_subst'
36811 double_quote_subst='$double_quote_subst'
36812 delay_variable_subst='$delay_variable_subst'
36813 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
36814 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
36815 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
36816 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
36817 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
36818 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
36819 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
36820 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
36821 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
36822 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
36823 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
36824 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
36825 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
36826 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
36827 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
36828 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
36829 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
36830 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
36831 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
36832 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
36833 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
36834 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
36835 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
36836 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
36837 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
36838 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
36839 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
36840 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
36841 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
36842 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
36843 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
36844 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
36845 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
36846 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
36847 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
36848 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
36849 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
36850 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
36851 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
36852 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
36853 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
36854 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
36855 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
36856 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
36857 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
36858 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
36859 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
36860 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
36861 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
36862 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
36863 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
36864 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
36865 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
36866 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
36867 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
36868 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
36869 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
36870 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
36871 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"`'
36872 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
36873 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
36874 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
36875 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
36876 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
36877 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
36878 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
36879 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
36880 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
36881 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
36882 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
36883 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
36884 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
36885 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
36886 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
36887 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
36888 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
36889 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
36890 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
36891 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
36892 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
36893 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
36894 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
36895 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
36896 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
36897 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
36898 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
36899 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
36900 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
36901 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
36902 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
36903 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
36904 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
36905 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
36906 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
36907 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
36908 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
36909 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
36910 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
36911 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
36912 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
36913 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
36914 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
36915 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
36916 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
36917 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
36918 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
36919 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
36920 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
36921 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
36922 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
36923 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
36924 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
36925 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
36926 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
36927 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
36928 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
36929 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
36930 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
36931 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
36932 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
36933 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
36934 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
36935 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
36936 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
36937 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
36938 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
36939 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
36940 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
36941 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
36942 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
36943 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
36944 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
36945 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
36946 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
36947 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
36948
36949 LTCC='$LTCC'
36950 LTCFLAGS='$LTCFLAGS'
36951 compiler='$compiler_DEFAULT'
36952
36953 # A function that is used when there is no print builtin or printf.
36954 func_fallback_echo ()
36955 {
36956 eval 'cat <<_LTECHO_EOF
36957 \$1
36958 _LTECHO_EOF'
36959 }
36960
36961 # Quote evaled strings.
36962 for var in SHELL \
36963 ECHO \
36964 PATH_SEPARATOR \
36965 SED \
36966 GREP \
36967 EGREP \
36968 FGREP \
36969 LD \
36970 NM \
36971 LN_S \
36972 lt_SP2NL \
36973 lt_NL2SP \
36974 reload_flag \
36975 OBJDUMP \
36976 deplibs_check_method \
36977 file_magic_cmd \
36978 file_magic_glob \
36979 want_nocaseglob \
36980 DLLTOOL \
36981 sharedlib_from_linklib_cmd \
36982 AR \
36983 AR_FLAGS \
36984 archiver_list_spec \
36985 STRIP \
36986 RANLIB \
36987 CC \
36988 CFLAGS \
36989 compiler \
36990 lt_cv_sys_global_symbol_pipe \
36991 lt_cv_sys_global_symbol_to_cdecl \
36992 lt_cv_sys_global_symbol_to_import \
36993 lt_cv_sys_global_symbol_to_c_name_address \
36994 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
36995 lt_cv_nm_interface \
36996 nm_file_list_spec \
36997 lt_cv_truncate_bin \
36998 lt_prog_compiler_no_builtin_flag \
36999 lt_prog_compiler_pic \
37000 lt_prog_compiler_wl \
37001 lt_prog_compiler_static \
37002 lt_cv_prog_compiler_c_o \
37003 need_locks \
37004 MANIFEST_TOOL \
37005 DSYMUTIL \
37006 NMEDIT \
37007 LIPO \
37008 OTOOL \
37009 OTOOL64 \
37010 shrext_cmds \
37011 export_dynamic_flag_spec \
37012 whole_archive_flag_spec \
37013 compiler_needs_object \
37014 with_gnu_ld \
37015 allow_undefined_flag \
37016 no_undefined_flag \
37017 hardcode_libdir_flag_spec \
37018 hardcode_libdir_separator \
37019 exclude_expsyms \
37020 include_expsyms \
37021 file_list_spec \
37022 variables_saved_for_relink \
37023 libname_spec \
37024 library_names_spec \
37025 soname_spec \
37026 install_override_mode \
37027 finish_eval \
37028 old_striplib \
37029 striplib; do
37030 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
37031 *[\\\\\\\`\\"\\\$]*)
37032 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
37033 ;;
37034 *)
37035 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
37036 ;;
37037 esac
37038 done
37039
37040 # Double-quote double-evaled strings.
37041 for var in reload_cmds \
37042 old_postinstall_cmds \
37043 old_postuninstall_cmds \
37044 old_archive_cmds \
37045 extract_expsyms_cmds \
37046 old_archive_from_new_cmds \
37047 old_archive_from_expsyms_cmds \
37048 archive_cmds \
37049 archive_expsym_cmds \
37050 module_cmds \
37051 module_expsym_cmds \
37052 export_symbols_cmds \
37053 prelink_cmds \
37054 postlink_cmds \
37055 postinstall_cmds \
37056 postuninstall_cmds \
37057 finish_cmds \
37058 sys_lib_search_path_spec \
37059 configure_time_dlsearch_path \
37060 configure_time_lt_sys_library_path; do
37061 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
37062 *[\\\\\\\`\\"\\\$]*)
37063 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
37064 ;;
37065 *)
37066 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
37067 ;;
37068 esac
37069 done
37070
37071 ac_aux_dir='$ac_aux_dir'
37072
37073 # See if we are running on zsh, and set the options that allow our
37074 # commands through without removal of \ escapes INIT.
37075 if test -n "\${ZSH_VERSION+set}"; then
37076 setopt NO_GLOB_SUBST
37077 fi
37078
37079
37080 PACKAGE='$PACKAGE'
37081 VERSION='$VERSION'
37082 RM='$RM'
37083 ofile='$ofile'
37084
37085
37086
37087
37088 _ACEOF
37089
37090 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
37091
37092 # Handling of arguments.
37093 for ac_config_target in $ac_config_targets
37094 do
37095 case $ac_config_target in
37096 "zfs_config.h") CONFIG_HEADERS="$CONFIG_HEADERS zfs_config.h" ;;
37097 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
37098 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
37099 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
37100 "udev/Makefile") CONFIG_FILES="$CONFIG_FILES udev/Makefile" ;;
37101 "udev/rules.d/Makefile") CONFIG_FILES="$CONFIG_FILES udev/rules.d/Makefile" ;;
37102 "etc/Makefile") CONFIG_FILES="$CONFIG_FILES etc/Makefile" ;;
37103 "etc/init.d/Makefile") CONFIG_FILES="$CONFIG_FILES etc/init.d/Makefile" ;;
37104 "etc/zfs/Makefile") CONFIG_FILES="$CONFIG_FILES etc/zfs/Makefile" ;;
37105 "etc/systemd/Makefile") CONFIG_FILES="$CONFIG_FILES etc/systemd/Makefile" ;;
37106 "etc/systemd/system/Makefile") CONFIG_FILES="$CONFIG_FILES etc/systemd/system/Makefile" ;;
37107 "etc/modules-load.d/Makefile") CONFIG_FILES="$CONFIG_FILES etc/modules-load.d/Makefile" ;;
37108 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
37109 "man/man1/Makefile") CONFIG_FILES="$CONFIG_FILES man/man1/Makefile" ;;
37110 "man/man5/Makefile") CONFIG_FILES="$CONFIG_FILES man/man5/Makefile" ;;
37111 "man/man8/Makefile") CONFIG_FILES="$CONFIG_FILES man/man8/Makefile" ;;
37112 "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
37113 "lib/libspl/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libspl/Makefile" ;;
37114 "lib/libspl/asm-generic/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libspl/asm-generic/Makefile" ;;
37115 "lib/libspl/asm-i386/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libspl/asm-i386/Makefile" ;;
37116 "lib/libspl/asm-x86_64/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libspl/asm-x86_64/Makefile" ;;
37117 "lib/libspl/include/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libspl/include/Makefile" ;;
37118 "lib/libspl/include/ia32/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libspl/include/ia32/Makefile" ;;
37119 "lib/libspl/include/ia32/sys/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libspl/include/ia32/sys/Makefile" ;;
37120 "lib/libspl/include/rpc/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libspl/include/rpc/Makefile" ;;
37121 "lib/libspl/include/sys/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libspl/include/sys/Makefile" ;;
37122 "lib/libspl/include/sys/sysevent/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libspl/include/sys/sysevent/Makefile" ;;
37123 "lib/libspl/include/sys/dktp/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libspl/include/sys/dktp/Makefile" ;;
37124 "lib/libspl/include/util/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libspl/include/util/Makefile" ;;
37125 "lib/libavl/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libavl/Makefile" ;;
37126 "lib/libefi/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libefi/Makefile" ;;
37127 "lib/libnvpair/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libnvpair/Makefile" ;;
37128 "lib/libunicode/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libunicode/Makefile" ;;
37129 "lib/libuutil/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libuutil/Makefile" ;;
37130 "lib/libzpool/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libzpool/Makefile" ;;
37131 "lib/libzfs/libzfs.pc") CONFIG_FILES="$CONFIG_FILES lib/libzfs/libzfs.pc" ;;
37132 "lib/libzfs/libzfs_core.pc") CONFIG_FILES="$CONFIG_FILES lib/libzfs/libzfs_core.pc" ;;
37133 "lib/libzfs/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libzfs/Makefile" ;;
37134 "lib/libzfs_core/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libzfs_core/Makefile" ;;
37135 "lib/libshare/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libshare/Makefile" ;;
37136 "cmd/Makefile") CONFIG_FILES="$CONFIG_FILES cmd/Makefile" ;;
37137 "cmd/zdb/Makefile") CONFIG_FILES="$CONFIG_FILES cmd/zdb/Makefile" ;;
37138 "cmd/zhack/Makefile") CONFIG_FILES="$CONFIG_FILES cmd/zhack/Makefile" ;;
37139 "cmd/zfs/Makefile") CONFIG_FILES="$CONFIG_FILES cmd/zfs/Makefile" ;;
37140 "cmd/zinject/Makefile") CONFIG_FILES="$CONFIG_FILES cmd/zinject/Makefile" ;;
37141 "cmd/zpool/Makefile") CONFIG_FILES="$CONFIG_FILES cmd/zpool/Makefile" ;;
37142 "cmd/zstreamdump/Makefile") CONFIG_FILES="$CONFIG_FILES cmd/zstreamdump/Makefile" ;;
37143 "cmd/ztest/Makefile") CONFIG_FILES="$CONFIG_FILES cmd/ztest/Makefile" ;;
37144 "cmd/zpios/Makefile") CONFIG_FILES="$CONFIG_FILES cmd/zpios/Makefile" ;;
37145 "cmd/mount_zfs/Makefile") CONFIG_FILES="$CONFIG_FILES cmd/mount_zfs/Makefile" ;;
37146 "cmd/fsck_zfs/Makefile") CONFIG_FILES="$CONFIG_FILES cmd/fsck_zfs/Makefile" ;;
37147 "cmd/zvol_id/Makefile") CONFIG_FILES="$CONFIG_FILES cmd/zvol_id/Makefile" ;;
37148 "cmd/vdev_id/Makefile") CONFIG_FILES="$CONFIG_FILES cmd/vdev_id/Makefile" ;;
37149 "cmd/arcstat/Makefile") CONFIG_FILES="$CONFIG_FILES cmd/arcstat/Makefile" ;;
37150 "cmd/dbufstat/Makefile") CONFIG_FILES="$CONFIG_FILES cmd/dbufstat/Makefile" ;;
37151 "cmd/arc_summary/Makefile") CONFIG_FILES="$CONFIG_FILES cmd/arc_summary/Makefile" ;;
37152 "cmd/zed/Makefile") CONFIG_FILES="$CONFIG_FILES cmd/zed/Makefile" ;;
37153 "contrib/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/Makefile" ;;
37154 "contrib/bash_completion.d/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/bash_completion.d/Makefile" ;;
37155 "contrib/dracut/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/dracut/Makefile" ;;
37156 "contrib/dracut/90zfs/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/dracut/90zfs/Makefile" ;;
37157 "contrib/initramfs/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/initramfs/Makefile" ;;
37158 "module/Makefile") CONFIG_FILES="$CONFIG_FILES module/Makefile" ;;
37159 "module/avl/Makefile") CONFIG_FILES="$CONFIG_FILES module/avl/Makefile" ;;
37160 "module/nvpair/Makefile") CONFIG_FILES="$CONFIG_FILES module/nvpair/Makefile" ;;
37161 "module/unicode/Makefile") CONFIG_FILES="$CONFIG_FILES module/unicode/Makefile" ;;
37162 "module/zcommon/Makefile") CONFIG_FILES="$CONFIG_FILES module/zcommon/Makefile" ;;
37163 "module/zfs/Makefile") CONFIG_FILES="$CONFIG_FILES module/zfs/Makefile" ;;
37164 "module/zpios/Makefile") CONFIG_FILES="$CONFIG_FILES module/zpios/Makefile" ;;
37165 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
37166 "include/linux/Makefile") CONFIG_FILES="$CONFIG_FILES include/linux/Makefile" ;;
37167 "include/sys/Makefile") CONFIG_FILES="$CONFIG_FILES include/sys/Makefile" ;;
37168 "include/sys/fs/Makefile") CONFIG_FILES="$CONFIG_FILES include/sys/fs/Makefile" ;;
37169 "include/sys/fm/Makefile") CONFIG_FILES="$CONFIG_FILES include/sys/fm/Makefile" ;;
37170 "include/sys/fm/fs/Makefile") CONFIG_FILES="$CONFIG_FILES include/sys/fm/fs/Makefile" ;;
37171 "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
37172 "scripts/zpios-profile/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/zpios-profile/Makefile" ;;
37173 "scripts/zpios-test/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/zpios-test/Makefile" ;;
37174 "scripts/zpool-config/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/zpool-config/Makefile" ;;
37175 "scripts/common.sh") CONFIG_FILES="$CONFIG_FILES scripts/common.sh" ;;
37176 "rpm/Makefile") CONFIG_FILES="$CONFIG_FILES rpm/Makefile" ;;
37177 "rpm/redhat/Makefile") CONFIG_FILES="$CONFIG_FILES rpm/redhat/Makefile" ;;
37178 "rpm/redhat/zfs.spec") CONFIG_FILES="$CONFIG_FILES rpm/redhat/zfs.spec" ;;
37179 "rpm/redhat/zfs-kmod.spec") CONFIG_FILES="$CONFIG_FILES rpm/redhat/zfs-kmod.spec" ;;
37180 "rpm/redhat/zfs-dkms.spec") CONFIG_FILES="$CONFIG_FILES rpm/redhat/zfs-dkms.spec" ;;
37181 "rpm/generic/Makefile") CONFIG_FILES="$CONFIG_FILES rpm/generic/Makefile" ;;
37182 "rpm/generic/zfs.spec") CONFIG_FILES="$CONFIG_FILES rpm/generic/zfs.spec" ;;
37183 "rpm/generic/zfs-kmod.spec") CONFIG_FILES="$CONFIG_FILES rpm/generic/zfs-kmod.spec" ;;
37184 "rpm/generic/zfs-dkms.spec") CONFIG_FILES="$CONFIG_FILES rpm/generic/zfs-dkms.spec" ;;
37185 "zfs-script-config.sh") CONFIG_FILES="$CONFIG_FILES zfs-script-config.sh" ;;
37186 "zfs.release") CONFIG_FILES="$CONFIG_FILES zfs.release" ;;
37187
37188 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
37189 esac
37190 done
37191
37192
37193 # If the user did not use the arguments to specify the items to instantiate,
37194 # then the envvar interface is used. Set only those that are not.
37195 # We use the long form for the default assignment because of an extremely
37196 # bizarre bug on SunOS 4.1.3.
37197 if $ac_need_defaults; then
37198 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
37199 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
37200 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
37201 fi
37202
37203 # Have a temporary directory for convenience. Make it in the build tree
37204 # simply because there is no reason against having it here, and in addition,
37205 # creating and moving files from /tmp can sometimes cause problems.
37206 # Hook for its removal unless debugging.
37207 # Note that there is a small window in which the directory will not be cleaned:
37208 # after its creation but before its name has been assigned to `$tmp'.
37209 $debug ||
37210 {
37211 tmp= ac_tmp=
37212 trap 'exit_status=$?
37213 : "${ac_tmp:=$tmp}"
37214 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
37215 ' 0
37216 trap 'as_fn_exit 1' 1 2 13 15
37217 }
37218 # Create a (secure) tmp directory for tmp files.
37219
37220 {
37221 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
37222 test -d "$tmp"
37223 } ||
37224 {
37225 tmp=./conf$$-$RANDOM
37226 (umask 077 && mkdir "$tmp")
37227 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
37228 ac_tmp=$tmp
37229
37230 # Set up the scripts for CONFIG_FILES section.
37231 # No need to generate them if there are no CONFIG_FILES.
37232 # This happens for instance with `./config.status config.h'.
37233 if test -n "$CONFIG_FILES"; then
37234
37235
37236 ac_cr=`echo X | tr X '\015'`
37237 # On cygwin, bash can eat \r inside `` if the user requested igncr.
37238 # But we know of no other shell where ac_cr would be empty at this
37239 # point, so we can use a bashism as a fallback.
37240 if test "x$ac_cr" = x; then
37241 eval ac_cr=\$\'\\r\'
37242 fi
37243 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
37244 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
37245 ac_cs_awk_cr='\\r'
37246 else
37247 ac_cs_awk_cr=$ac_cr
37248 fi
37249
37250 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
37251 _ACEOF
37252
37253
37254 {
37255 echo "cat >conf$$subs.awk <<_ACEOF" &&
37256 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
37257 echo "_ACEOF"
37258 } >conf$$subs.sh ||
37259 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
37260 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
37261 ac_delim='%!_!# '
37262 for ac_last_try in false false false false false :; do
37263 . ./conf$$subs.sh ||
37264 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
37265
37266 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
37267 if test $ac_delim_n = $ac_delim_num; then
37268 break
37269 elif $ac_last_try; then
37270 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
37271 else
37272 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
37273 fi
37274 done
37275 rm -f conf$$subs.sh
37276
37277 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
37278 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
37279 _ACEOF
37280 sed -n '
37281 h
37282 s/^/S["/; s/!.*/"]=/
37283 p
37284 g
37285 s/^[^!]*!//
37286 :repl
37287 t repl
37288 s/'"$ac_delim"'$//
37289 t delim
37290 :nl
37291 h
37292 s/\(.\{148\}\)..*/\1/
37293 t more1
37294 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
37295 p
37296 n
37297 b repl
37298 :more1
37299 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
37300 p
37301 g
37302 s/.\{148\}//
37303 t nl
37304 :delim
37305 h
37306 s/\(.\{148\}\)..*/\1/
37307 t more2
37308 s/["\\]/\\&/g; s/^/"/; s/$/"/
37309 p
37310 b
37311 :more2
37312 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
37313 p
37314 g
37315 s/.\{148\}//
37316 t delim
37317 ' <conf$$subs.awk | sed '
37318 /^[^""]/{
37319 N
37320 s/\n//
37321 }
37322 ' >>$CONFIG_STATUS || ac_write_fail=1
37323 rm -f conf$$subs.awk
37324 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
37325 _ACAWK
37326 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
37327 for (key in S) S_is_set[key] = 1
37328 FS = "\a"
37329
37330 }
37331 {
37332 line = $ 0
37333 nfields = split(line, field, "@")
37334 substed = 0
37335 len = length(field[1])
37336 for (i = 2; i < nfields; i++) {
37337 key = field[i]
37338 keylen = length(key)
37339 if (S_is_set[key]) {
37340 value = S[key]
37341 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
37342 len += length(value) + length(field[++i])
37343 substed = 1
37344 } else
37345 len += 1 + keylen
37346 }
37347
37348 print line
37349 }
37350
37351 _ACAWK
37352 _ACEOF
37353 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
37354 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
37355 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
37356 else
37357 cat
37358 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
37359 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
37360 _ACEOF
37361
37362 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
37363 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
37364 # trailing colons and then remove the whole line if VPATH becomes empty
37365 # (actually we leave an empty line to preserve line numbers).
37366 if test "x$srcdir" = x.; then
37367 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
37368 h
37369 s///
37370 s/^/:/
37371 s/[ ]*$/:/
37372 s/:\$(srcdir):/:/g
37373 s/:\${srcdir}:/:/g
37374 s/:@srcdir@:/:/g
37375 s/^:*//
37376 s/:*$//
37377 x
37378 s/\(=[ ]*\).*/\1/
37379 G
37380 s/\n//
37381 s/^[^=]*=[ ]*$//
37382 }'
37383 fi
37384
37385 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
37386 fi # test -n "$CONFIG_FILES"
37387
37388 # Set up the scripts for CONFIG_HEADERS section.
37389 # No need to generate them if there are no CONFIG_HEADERS.
37390 # This happens for instance with `./config.status Makefile'.
37391 if test -n "$CONFIG_HEADERS"; then
37392 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
37393 BEGIN {
37394 _ACEOF
37395
37396 # Transform confdefs.h into an awk script `defines.awk', embedded as
37397 # here-document in config.status, that substitutes the proper values into
37398 # config.h.in to produce config.h.
37399
37400 # Create a delimiter string that does not exist in confdefs.h, to ease
37401 # handling of long lines.
37402 ac_delim='%!_!# '
37403 for ac_last_try in false false :; do
37404 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
37405 if test -z "$ac_tt"; then
37406 break
37407 elif $ac_last_try; then
37408 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
37409 else
37410 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
37411 fi
37412 done
37413
37414 # For the awk script, D is an array of macro values keyed by name,
37415 # likewise P contains macro parameters if any. Preserve backslash
37416 # newline sequences.
37417
37418 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
37419 sed -n '
37420 s/.\{148\}/&'"$ac_delim"'/g
37421 t rset
37422 :rset
37423 s/^[ ]*#[ ]*define[ ][ ]*/ /
37424 t def
37425 d
37426 :def
37427 s/\\$//
37428 t bsnl
37429 s/["\\]/\\&/g
37430 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
37431 D["\1"]=" \3"/p
37432 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
37433 d
37434 :bsnl
37435 s/["\\]/\\&/g
37436 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
37437 D["\1"]=" \3\\\\\\n"\\/p
37438 t cont
37439 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
37440 t cont
37441 d
37442 :cont
37443 n
37444 s/.\{148\}/&'"$ac_delim"'/g
37445 t clear
37446 :clear
37447 s/\\$//
37448 t bsnlc
37449 s/["\\]/\\&/g; s/^/"/; s/$/"/p
37450 d
37451 :bsnlc
37452 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
37453 b cont
37454 ' <confdefs.h | sed '
37455 s/'"$ac_delim"'/"\\\
37456 "/g' >>$CONFIG_STATUS || ac_write_fail=1
37457
37458 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
37459 for (key in D) D_is_set[key] = 1
37460 FS = "\a"
37461 }
37462 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
37463 line = \$ 0
37464 split(line, arg, " ")
37465 if (arg[1] == "#") {
37466 defundef = arg[2]
37467 mac1 = arg[3]
37468 } else {
37469 defundef = substr(arg[1], 2)
37470 mac1 = arg[2]
37471 }
37472 split(mac1, mac2, "(") #)
37473 macro = mac2[1]
37474 prefix = substr(line, 1, index(line, defundef) - 1)
37475 if (D_is_set[macro]) {
37476 # Preserve the white space surrounding the "#".
37477 print prefix "define", macro P[macro] D[macro]
37478 next
37479 } else {
37480 # Replace #undef with comments. This is necessary, for example,
37481 # in the case of _POSIX_SOURCE, which is predefined and required
37482 # on some systems where configure will not decide to define it.
37483 if (defundef == "undef") {
37484 print "/*", prefix defundef, macro, "*/"
37485 next
37486 }
37487 }
37488 }
37489 { print }
37490 _ACAWK
37491 _ACEOF
37492 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
37493 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
37494 fi # test -n "$CONFIG_HEADERS"
37495
37496
37497 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
37498 shift
37499 for ac_tag
37500 do
37501 case $ac_tag in
37502 :[FHLC]) ac_mode=$ac_tag; continue;;
37503 esac
37504 case $ac_mode$ac_tag in
37505 :[FHL]*:*);;
37506 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
37507 :[FH]-) ac_tag=-:-;;
37508 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
37509 esac
37510 ac_save_IFS=$IFS
37511 IFS=:
37512 set x $ac_tag
37513 IFS=$ac_save_IFS
37514 shift
37515 ac_file=$1
37516 shift
37517
37518 case $ac_mode in
37519 :L) ac_source=$1;;
37520 :[FH])
37521 ac_file_inputs=
37522 for ac_f
37523 do
37524 case $ac_f in
37525 -) ac_f="$ac_tmp/stdin";;
37526 *) # Look for the file first in the build tree, then in the source tree
37527 # (if the path is not absolute). The absolute path cannot be DOS-style,
37528 # because $ac_f cannot contain `:'.
37529 test -f "$ac_f" ||
37530 case $ac_f in
37531 [\\/$]*) false;;
37532 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
37533 esac ||
37534 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
37535 esac
37536 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
37537 as_fn_append ac_file_inputs " '$ac_f'"
37538 done
37539
37540 # Let's still pretend it is `configure' which instantiates (i.e., don't
37541 # use $as_me), people would be surprised to read:
37542 # /* config.h. Generated by config.status. */
37543 configure_input='Generated from '`
37544 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
37545 `' by configure.'
37546 if test x"$ac_file" != x-; then
37547 configure_input="$ac_file. $configure_input"
37548 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
37549 $as_echo "$as_me: creating $ac_file" >&6;}
37550 fi
37551 # Neutralize special characters interpreted by sed in replacement strings.
37552 case $configure_input in #(
37553 *\&* | *\|* | *\\* )
37554 ac_sed_conf_input=`$as_echo "$configure_input" |
37555 sed 's/[\\\\&|]/\\\\&/g'`;; #(
37556 *) ac_sed_conf_input=$configure_input;;
37557 esac
37558
37559 case $ac_tag in
37560 *:-:* | *:-) cat >"$ac_tmp/stdin" \
37561 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
37562 esac
37563 ;;
37564 esac
37565
37566 ac_dir=`$as_dirname -- "$ac_file" ||
37567 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
37568 X"$ac_file" : 'X\(//\)[^/]' \| \
37569 X"$ac_file" : 'X\(//\)$' \| \
37570 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
37571 $as_echo X"$ac_file" |
37572 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
37573 s//\1/
37574 q
37575 }
37576 /^X\(\/\/\)[^/].*/{
37577 s//\1/
37578 q
37579 }
37580 /^X\(\/\/\)$/{
37581 s//\1/
37582 q
37583 }
37584 /^X\(\/\).*/{
37585 s//\1/
37586 q
37587 }
37588 s/.*/./; q'`
37589 as_dir="$ac_dir"; as_fn_mkdir_p
37590 ac_builddir=.
37591
37592 case "$ac_dir" in
37593 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
37594 *)
37595 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
37596 # A ".." for each directory in $ac_dir_suffix.
37597 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
37598 case $ac_top_builddir_sub in
37599 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
37600 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
37601 esac ;;
37602 esac
37603 ac_abs_top_builddir=$ac_pwd
37604 ac_abs_builddir=$ac_pwd$ac_dir_suffix
37605 # for backward compatibility:
37606 ac_top_builddir=$ac_top_build_prefix
37607
37608 case $srcdir in
37609 .) # We are building in place.
37610 ac_srcdir=.
37611 ac_top_srcdir=$ac_top_builddir_sub
37612 ac_abs_top_srcdir=$ac_pwd ;;
37613 [\\/]* | ?:[\\/]* ) # Absolute name.
37614 ac_srcdir=$srcdir$ac_dir_suffix;
37615 ac_top_srcdir=$srcdir
37616 ac_abs_top_srcdir=$srcdir ;;
37617 *) # Relative name.
37618 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
37619 ac_top_srcdir=$ac_top_build_prefix$srcdir
37620 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
37621 esac
37622 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
37623
37624
37625 case $ac_mode in
37626 :F)
37627 #
37628 # CONFIG_FILE
37629 #
37630
37631 case $INSTALL in
37632 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
37633 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
37634 esac
37635 ac_MKDIR_P=$MKDIR_P
37636 case $MKDIR_P in
37637 [\\/$]* | ?:[\\/]* ) ;;
37638 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
37639 esac
37640 _ACEOF
37641
37642 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
37643 # If the template does not know about datarootdir, expand it.
37644 # FIXME: This hack should be removed a few years after 2.60.
37645 ac_datarootdir_hack=; ac_datarootdir_seen=
37646 ac_sed_dataroot='
37647 /datarootdir/ {
37648 p
37649 q
37650 }
37651 /@datadir@/p
37652 /@docdir@/p
37653 /@infodir@/p
37654 /@localedir@/p
37655 /@mandir@/p'
37656 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
37657 *datarootdir*) ac_datarootdir_seen=yes;;
37658 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
37659 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
37660 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
37661 _ACEOF
37662 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
37663 ac_datarootdir_hack='
37664 s&@datadir@&$datadir&g
37665 s&@docdir@&$docdir&g
37666 s&@infodir@&$infodir&g
37667 s&@localedir@&$localedir&g
37668 s&@mandir@&$mandir&g
37669 s&\\\${datarootdir}&$datarootdir&g' ;;
37670 esac
37671 _ACEOF
37672
37673 # Neutralize VPATH when `$srcdir' = `.'.
37674 # Shell code in configure.ac might set extrasub.
37675 # FIXME: do we really want to maintain this feature?
37676 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
37677 ac_sed_extra="$ac_vpsub
37678 $extrasub
37679 _ACEOF
37680 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
37681 :t
37682 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
37683 s|@configure_input@|$ac_sed_conf_input|;t t
37684 s&@top_builddir@&$ac_top_builddir_sub&;t t
37685 s&@top_build_prefix@&$ac_top_build_prefix&;t t
37686 s&@srcdir@&$ac_srcdir&;t t
37687 s&@abs_srcdir@&$ac_abs_srcdir&;t t
37688 s&@top_srcdir@&$ac_top_srcdir&;t t
37689 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
37690 s&@builddir@&$ac_builddir&;t t
37691 s&@abs_builddir@&$ac_abs_builddir&;t t
37692 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
37693 s&@INSTALL@&$ac_INSTALL&;t t
37694 s&@MKDIR_P@&$ac_MKDIR_P&;t t
37695 $ac_datarootdir_hack
37696 "
37697 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
37698 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
37699
37700 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
37701 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
37702 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
37703 "$ac_tmp/out"`; test -z "$ac_out"; } &&
37704 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
37705 which seems to be undefined. Please make sure it is defined" >&5
37706 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
37707 which seems to be undefined. Please make sure it is defined" >&2;}
37708
37709 rm -f "$ac_tmp/stdin"
37710 case $ac_file in
37711 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
37712 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
37713 esac \
37714 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
37715 ;;
37716 :H)
37717 #
37718 # CONFIG_HEADER
37719 #
37720 if test x"$ac_file" != x-; then
37721 {
37722 $as_echo "/* $configure_input */" \
37723 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
37724 } >"$ac_tmp/config.h" \
37725 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
37726 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
37727 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
37728 $as_echo "$as_me: $ac_file is unchanged" >&6;}
37729 else
37730 rm -f "$ac_file"
37731 mv "$ac_tmp/config.h" "$ac_file" \
37732 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
37733 fi
37734 else
37735 $as_echo "/* $configure_input */" \
37736 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
37737 || as_fn_error $? "could not create -" "$LINENO" 5
37738 fi
37739 # Compute "$ac_file"'s index in $config_headers.
37740 _am_arg="$ac_file"
37741 _am_stamp_count=1
37742 for _am_header in $config_headers :; do
37743 case $_am_header in
37744 $_am_arg | $_am_arg:* )
37745 break ;;
37746 * )
37747 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
37748 esac
37749 done
37750 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
37751 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
37752 X"$_am_arg" : 'X\(//\)[^/]' \| \
37753 X"$_am_arg" : 'X\(//\)$' \| \
37754 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
37755 $as_echo X"$_am_arg" |
37756 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
37757 s//\1/
37758 q
37759 }
37760 /^X\(\/\/\)[^/].*/{
37761 s//\1/
37762 q
37763 }
37764 /^X\(\/\/\)$/{
37765 s//\1/
37766 q
37767 }
37768 /^X\(\/\).*/{
37769 s//\1/
37770 q
37771 }
37772 s/.*/./; q'`/stamp-h$_am_stamp_count
37773 ;;
37774
37775 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
37776 $as_echo "$as_me: executing $ac_file commands" >&6;}
37777 ;;
37778 esac
37779
37780
37781 case $ac_file$ac_mode in
37782 "zfs_config.h":H)
37783 (mv zfs_config.h zfs_config.h.tmp &&
37784 awk -f ${ac_srcdir}/config/config.awk zfs_config.h.tmp >zfs_config.h &&
37785 rm zfs_config.h.tmp) || exit 1 ;;
37786 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
37787 # Older Autoconf quotes --file arguments for eval, but not when files
37788 # are listed without --file. Let's play safe and only enable the eval
37789 # if we detect the quoting.
37790 case $CONFIG_FILES in
37791 *\'*) eval set x "$CONFIG_FILES" ;;
37792 *) set x $CONFIG_FILES ;;
37793 esac
37794 shift
37795 for mf
37796 do
37797 # Strip MF so we end up with the name of the file.
37798 mf=`echo "$mf" | sed -e 's/:.*$//'`
37799 # Check whether this is an Automake generated Makefile or not.
37800 # We used to match only the files named 'Makefile.in', but
37801 # some people rename them; so instead we look at the file content.
37802 # Grep'ing the first line is not enough: some people post-process
37803 # each Makefile.in and add a new line on top of each file to say so.
37804 # Grep'ing the whole file is not good either: AIX grep has a line
37805 # limit of 2048, but all sed's we know have understand at least 4000.
37806 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
37807 dirpart=`$as_dirname -- "$mf" ||
37808 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
37809 X"$mf" : 'X\(//\)[^/]' \| \
37810 X"$mf" : 'X\(//\)$' \| \
37811 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
37812 $as_echo X"$mf" |
37813 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
37814 s//\1/
37815 q
37816 }
37817 /^X\(\/\/\)[^/].*/{
37818 s//\1/
37819 q
37820 }
37821 /^X\(\/\/\)$/{
37822 s//\1/
37823 q
37824 }
37825 /^X\(\/\).*/{
37826 s//\1/
37827 q
37828 }
37829 s/.*/./; q'`
37830 else
37831 continue
37832 fi
37833 # Extract the definition of DEPDIR, am__include, and am__quote
37834 # from the Makefile without running 'make'.
37835 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
37836 test -z "$DEPDIR" && continue
37837 am__include=`sed -n 's/^am__include = //p' < "$mf"`
37838 test -z "$am__include" && continue
37839 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
37840 # Find all dependency output files, they are included files with
37841 # $(DEPDIR) in their names. We invoke sed twice because it is the
37842 # simplest approach to changing $(DEPDIR) to its actual value in the
37843 # expansion.
37844 for file in `sed -n "
37845 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
37846 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
37847 # Make sure the directory exists.
37848 test -f "$dirpart/$file" && continue
37849 fdir=`$as_dirname -- "$file" ||
37850 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
37851 X"$file" : 'X\(//\)[^/]' \| \
37852 X"$file" : 'X\(//\)$' \| \
37853 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
37854 $as_echo X"$file" |
37855 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
37856 s//\1/
37857 q
37858 }
37859 /^X\(\/\/\)[^/].*/{
37860 s//\1/
37861 q
37862 }
37863 /^X\(\/\/\)$/{
37864 s//\1/
37865 q
37866 }
37867 /^X\(\/\).*/{
37868 s//\1/
37869 q
37870 }
37871 s/.*/./; q'`
37872 as_dir=$dirpart/$fdir; as_fn_mkdir_p
37873 # echo "creating $dirpart/$file"
37874 echo '# dummy' > "$dirpart/$file"
37875 done
37876 done
37877 }
37878 ;;
37879 "libtool":C)
37880
37881 # See if we are running on zsh, and set the options that allow our
37882 # commands through without removal of \ escapes.
37883 if test -n "${ZSH_VERSION+set}"; then
37884 setopt NO_GLOB_SUBST
37885 fi
37886
37887 cfgfile=${ofile}T
37888 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
37889 $RM "$cfgfile"
37890
37891 cat <<_LT_EOF >> "$cfgfile"
37892 #! $SHELL
37893 # Generated automatically by $as_me ($PACKAGE) $VERSION
37894 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
37895 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
37896
37897 # Provide generalized library-building support services.
37898 # Written by Gordon Matzigkeit, 1996
37899
37900 # Copyright (C) 2014 Free Software Foundation, Inc.
37901 # This is free software; see the source for copying conditions. There is NO
37902 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
37903
37904 # GNU Libtool is free software; you can redistribute it and/or modify
37905 # it under the terms of the GNU General Public License as published by
37906 # the Free Software Foundation; either version 2 of of the License, or
37907 # (at your option) any later version.
37908 #
37909 # As a special exception to the GNU General Public License, if you
37910 # distribute this file as part of a program or library that is built
37911 # using GNU Libtool, you may include this file under the same
37912 # distribution terms that you use for the rest of that program.
37913 #
37914 # GNU Libtool is distributed in the hope that it will be useful, but
37915 # WITHOUT ANY WARRANTY; without even the implied warranty of
37916 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
37917 # GNU General Public License for more details.
37918 #
37919 # You should have received a copy of the GNU General Public License
37920 # along with this program. If not, see <http://www.gnu.org/licenses/>.
37921
37922
37923 # The names of the tagged configurations supported by this script.
37924 available_tags=''
37925
37926 # Configured defaults for sys_lib_dlsearch_path munging.
37927 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
37928
37929 # ### BEGIN LIBTOOL CONFIG
37930
37931 # Which release of libtool.m4 was used?
37932 macro_version=$macro_version
37933 macro_revision=$macro_revision
37934
37935 # Whether or not to build shared libraries.
37936 build_libtool_libs=$enable_shared
37937
37938 # Whether or not to build static libraries.
37939 build_old_libs=$enable_static
37940
37941 # What type of objects to build.
37942 pic_mode=$pic_mode
37943
37944 # Whether or not to optimize for fast installation.
37945 fast_install=$enable_fast_install
37946
37947 # Shared archive member basename,for filename based shared library versioning on AIX.
37948 shared_archive_member_spec=$shared_archive_member_spec
37949
37950 # Shell to use when invoking shell scripts.
37951 SHELL=$lt_SHELL
37952
37953 # An echo program that protects backslashes.
37954 ECHO=$lt_ECHO
37955
37956 # The PATH separator for the build system.
37957 PATH_SEPARATOR=$lt_PATH_SEPARATOR
37958
37959 # The host system.
37960 host_alias=$host_alias
37961 host=$host
37962 host_os=$host_os
37963
37964 # The build system.
37965 build_alias=$build_alias
37966 build=$build
37967 build_os=$build_os
37968
37969 # A sed program that does not truncate output.
37970 SED=$lt_SED
37971
37972 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
37973 Xsed="\$SED -e 1s/^X//"
37974
37975 # A grep program that handles long lines.
37976 GREP=$lt_GREP
37977
37978 # An ERE matcher.
37979 EGREP=$lt_EGREP
37980
37981 # A literal string matcher.
37982 FGREP=$lt_FGREP
37983
37984 # A BSD- or MS-compatible name lister.
37985 NM=$lt_NM
37986
37987 # Whether we need soft or hard links.
37988 LN_S=$lt_LN_S
37989
37990 # What is the maximum length of a command?
37991 max_cmd_len=$max_cmd_len
37992
37993 # Object file suffix (normally "o").
37994 objext=$ac_objext
37995
37996 # Executable file suffix (normally "").
37997 exeext=$exeext
37998
37999 # whether the shell understands "unset".
38000 lt_unset=$lt_unset
38001
38002 # turn spaces into newlines.
38003 SP2NL=$lt_lt_SP2NL
38004
38005 # turn newlines into spaces.
38006 NL2SP=$lt_lt_NL2SP
38007
38008 # convert \$build file names to \$host format.
38009 to_host_file_cmd=$lt_cv_to_host_file_cmd
38010
38011 # convert \$build files to toolchain format.
38012 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
38013
38014 # An object symbol dumper.
38015 OBJDUMP=$lt_OBJDUMP
38016
38017 # Method to check whether dependent libraries are shared objects.
38018 deplibs_check_method=$lt_deplibs_check_method
38019
38020 # Command to use when deplibs_check_method = "file_magic".
38021 file_magic_cmd=$lt_file_magic_cmd
38022
38023 # How to find potential files when deplibs_check_method = "file_magic".
38024 file_magic_glob=$lt_file_magic_glob
38025
38026 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
38027 want_nocaseglob=$lt_want_nocaseglob
38028
38029 # DLL creation program.
38030 DLLTOOL=$lt_DLLTOOL
38031
38032 # Command to associate shared and link libraries.
38033 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
38034
38035 # The archiver.
38036 AR=$lt_AR
38037
38038 # Flags to create an archive.
38039 AR_FLAGS=$lt_AR_FLAGS
38040
38041 # How to feed a file listing to the archiver.
38042 archiver_list_spec=$lt_archiver_list_spec
38043
38044 # A symbol stripping program.
38045 STRIP=$lt_STRIP
38046
38047 # Commands used to install an old-style archive.
38048 RANLIB=$lt_RANLIB
38049 old_postinstall_cmds=$lt_old_postinstall_cmds
38050 old_postuninstall_cmds=$lt_old_postuninstall_cmds
38051
38052 # Whether to use a lock for old archive extraction.
38053 lock_old_archive_extraction=$lock_old_archive_extraction
38054
38055 # A C compiler.
38056 LTCC=$lt_CC
38057
38058 # LTCC compiler flags.
38059 LTCFLAGS=$lt_CFLAGS
38060
38061 # Take the output of nm and produce a listing of raw symbols and C names.
38062 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
38063
38064 # Transform the output of nm in a proper C declaration.
38065 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
38066
38067 # Transform the output of nm into a list of symbols to manually relocate.
38068 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
38069
38070 # Transform the output of nm in a C name address pair.
38071 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
38072
38073 # Transform the output of nm in a C name address pair when lib prefix is needed.
38074 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
38075
38076 # The name lister interface.
38077 nm_interface=$lt_lt_cv_nm_interface
38078
38079 # Specify filename containing input files for \$NM.
38080 nm_file_list_spec=$lt_nm_file_list_spec
38081
38082 # The root where to search for dependent libraries,and where our libraries should be installed.
38083 lt_sysroot=$lt_sysroot
38084
38085 # Command to truncate a binary pipe.
38086 lt_truncate_bin=$lt_lt_cv_truncate_bin
38087
38088 # The name of the directory that contains temporary libtool files.
38089 objdir=$objdir
38090
38091 # Used to examine libraries when file_magic_cmd begins with "file".
38092 MAGIC_CMD=$MAGIC_CMD
38093
38094 # Must we lock files when doing compilation?
38095 need_locks=$lt_need_locks
38096
38097 # Manifest tool.
38098 MANIFEST_TOOL=$lt_MANIFEST_TOOL
38099
38100 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
38101 DSYMUTIL=$lt_DSYMUTIL
38102
38103 # Tool to change global to local symbols on Mac OS X.
38104 NMEDIT=$lt_NMEDIT
38105
38106 # Tool to manipulate fat objects and archives on Mac OS X.
38107 LIPO=$lt_LIPO
38108
38109 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
38110 OTOOL=$lt_OTOOL
38111
38112 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
38113 OTOOL64=$lt_OTOOL64
38114
38115 # Old archive suffix (normally "a").
38116 libext=$libext
38117
38118 # Shared library suffix (normally ".so").
38119 shrext_cmds=$lt_shrext_cmds
38120
38121 # The commands to extract the exported symbol list from a shared archive.
38122 extract_expsyms_cmds=$lt_extract_expsyms_cmds
38123
38124 # Variables whose values should be saved in libtool wrapper scripts and
38125 # restored at link time.
38126 variables_saved_for_relink=$lt_variables_saved_for_relink
38127
38128 # Do we need the "lib" prefix for modules?
38129 need_lib_prefix=$need_lib_prefix
38130
38131 # Do we need a version for libraries?
38132 need_version=$need_version
38133
38134 # Library versioning type.
38135 version_type=$version_type
38136
38137 # Shared library runtime path variable.
38138 runpath_var=$runpath_var
38139
38140 # Shared library path variable.
38141 shlibpath_var=$shlibpath_var
38142
38143 # Is shlibpath searched before the hard-coded library search path?
38144 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
38145
38146 # Format of library name prefix.
38147 libname_spec=$lt_libname_spec
38148
38149 # List of archive names. First name is the real one, the rest are links.
38150 # The last name is the one that the linker finds with -lNAME
38151 library_names_spec=$lt_library_names_spec
38152
38153 # The coded name of the library, if different from the real name.
38154 soname_spec=$lt_soname_spec
38155
38156 # Permission mode override for installation of shared libraries.
38157 install_override_mode=$lt_install_override_mode
38158
38159 # Command to use after installation of a shared archive.
38160 postinstall_cmds=$lt_postinstall_cmds
38161
38162 # Command to use after uninstallation of a shared archive.
38163 postuninstall_cmds=$lt_postuninstall_cmds
38164
38165 # Commands used to finish a libtool library installation in a directory.
38166 finish_cmds=$lt_finish_cmds
38167
38168 # As "finish_cmds", except a single script fragment to be evaled but
38169 # not shown.
38170 finish_eval=$lt_finish_eval
38171
38172 # Whether we should hardcode library paths into libraries.
38173 hardcode_into_libs=$hardcode_into_libs
38174
38175 # Compile-time system search path for libraries.
38176 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
38177
38178 # Detected run-time system search path for libraries.
38179 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
38180
38181 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
38182 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
38183
38184 # Whether dlopen is supported.
38185 dlopen_support=$enable_dlopen
38186
38187 # Whether dlopen of programs is supported.
38188 dlopen_self=$enable_dlopen_self
38189
38190 # Whether dlopen of statically linked programs is supported.
38191 dlopen_self_static=$enable_dlopen_self_static
38192
38193 # Commands to strip libraries.
38194 old_striplib=$lt_old_striplib
38195 striplib=$lt_striplib
38196
38197
38198 # The linker used to build libraries.
38199 LD=$lt_LD
38200
38201 # How to create reloadable object files.
38202 reload_flag=$lt_reload_flag
38203 reload_cmds=$lt_reload_cmds
38204
38205 # Commands used to build an old-style archive.
38206 old_archive_cmds=$lt_old_archive_cmds
38207
38208 # A language specific compiler.
38209 CC=$lt_compiler
38210
38211 # Is the compiler the GNU compiler?
38212 with_gcc=$GCC
38213
38214 # Compiler flag to turn off builtin functions.
38215 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
38216
38217 # Additional compiler flags for building library objects.
38218 pic_flag=$lt_lt_prog_compiler_pic
38219
38220 # How to pass a linker flag through the compiler.
38221 wl=$lt_lt_prog_compiler_wl
38222
38223 # Compiler flag to prevent dynamic linking.
38224 link_static_flag=$lt_lt_prog_compiler_static
38225
38226 # Does compiler simultaneously support -c and -o options?
38227 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
38228
38229 # Whether or not to add -lc for building shared libraries.
38230 build_libtool_need_lc=$archive_cmds_need_lc
38231
38232 # Whether or not to disallow shared libs when runtime libs are static.
38233 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
38234
38235 # Compiler flag to allow reflexive dlopens.
38236 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
38237
38238 # Compiler flag to generate shared objects directly from archives.
38239 whole_archive_flag_spec=$lt_whole_archive_flag_spec
38240
38241 # Whether the compiler copes with passing no objects directly.
38242 compiler_needs_object=$lt_compiler_needs_object
38243
38244 # Create an old-style archive from a shared archive.
38245 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
38246
38247 # Create a temporary old-style archive to link instead of a shared archive.
38248 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
38249
38250 # Commands used to build a shared archive.
38251 archive_cmds=$lt_archive_cmds
38252 archive_expsym_cmds=$lt_archive_expsym_cmds
38253
38254 # Commands used to build a loadable module if different from building
38255 # a shared archive.
38256 module_cmds=$lt_module_cmds
38257 module_expsym_cmds=$lt_module_expsym_cmds
38258
38259 # Whether we are building with GNU ld or not.
38260 with_gnu_ld=$lt_with_gnu_ld
38261
38262 # Flag that allows shared libraries with undefined symbols to be built.
38263 allow_undefined_flag=$lt_allow_undefined_flag
38264
38265 # Flag that enforces no undefined symbols.
38266 no_undefined_flag=$lt_no_undefined_flag
38267
38268 # Flag to hardcode \$libdir into a binary during linking.
38269 # This must work even if \$libdir does not exist
38270 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
38271
38272 # Whether we need a single "-rpath" flag with a separated argument.
38273 hardcode_libdir_separator=$lt_hardcode_libdir_separator
38274
38275 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
38276 # DIR into the resulting binary.
38277 hardcode_direct=$hardcode_direct
38278
38279 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
38280 # DIR into the resulting binary and the resulting library dependency is
38281 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
38282 # library is relocated.
38283 hardcode_direct_absolute=$hardcode_direct_absolute
38284
38285 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
38286 # into the resulting binary.
38287 hardcode_minus_L=$hardcode_minus_L
38288
38289 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
38290 # into the resulting binary.
38291 hardcode_shlibpath_var=$hardcode_shlibpath_var
38292
38293 # Set to "yes" if building a shared library automatically hardcodes DIR
38294 # into the library and all subsequent libraries and executables linked
38295 # against it.
38296 hardcode_automatic=$hardcode_automatic
38297
38298 # Set to yes if linker adds runtime paths of dependent libraries
38299 # to runtime path list.
38300 inherit_rpath=$inherit_rpath
38301
38302 # Whether libtool must link a program against all its dependency libraries.
38303 link_all_deplibs=$link_all_deplibs
38304
38305 # Set to "yes" if exported symbols are required.
38306 always_export_symbols=$always_export_symbols
38307
38308 # The commands to list exported symbols.
38309 export_symbols_cmds=$lt_export_symbols_cmds
38310
38311 # Symbols that should not be listed in the preloaded symbols.
38312 exclude_expsyms=$lt_exclude_expsyms
38313
38314 # Symbols that must always be exported.
38315 include_expsyms=$lt_include_expsyms
38316
38317 # Commands necessary for linking programs (against libraries) with templates.
38318 prelink_cmds=$lt_prelink_cmds
38319
38320 # Commands necessary for finishing linking programs.
38321 postlink_cmds=$lt_postlink_cmds
38322
38323 # Specify filename containing input files.
38324 file_list_spec=$lt_file_list_spec
38325
38326 # How to hardcode a shared library path into an executable.
38327 hardcode_action=$hardcode_action
38328
38329 # ### END LIBTOOL CONFIG
38330
38331 _LT_EOF
38332
38333 cat <<'_LT_EOF' >> "$cfgfile"
38334
38335 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
38336
38337 # func_munge_path_list VARIABLE PATH
38338 # -----------------------------------
38339 # VARIABLE is name of variable containing _space_ separated list of
38340 # directories to be munged by the contents of PATH, which is string
38341 # having a format:
38342 # "DIR[:DIR]:"
38343 # string "DIR[ DIR]" will be prepended to VARIABLE
38344 # ":DIR[:DIR]"
38345 # string "DIR[ DIR]" will be appended to VARIABLE
38346 # "DIRP[:DIRP]::[DIRA:]DIRA"
38347 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
38348 # "DIRA[ DIRA]" will be appended to VARIABLE
38349 # "DIR[:DIR]"
38350 # VARIABLE will be replaced by "DIR[ DIR]"
38351 func_munge_path_list ()
38352 {
38353 case x$2 in
38354 x)
38355 ;;
38356 *:)
38357 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
38358 ;;
38359 x:*)
38360 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
38361 ;;
38362 *::*)
38363 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
38364 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
38365 ;;
38366 *)
38367 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
38368 ;;
38369 esac
38370 }
38371
38372
38373 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
38374 func_cc_basename ()
38375 {
38376 for cc_temp in $*""; do
38377 case $cc_temp in
38378 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
38379 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
38380 \-*) ;;
38381 *) break;;
38382 esac
38383 done
38384 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
38385 }
38386
38387
38388 # ### END FUNCTIONS SHARED WITH CONFIGURE
38389
38390 _LT_EOF
38391
38392 case $host_os in
38393 aix3*)
38394 cat <<\_LT_EOF >> "$cfgfile"
38395 # AIX sometimes has problems with the GCC collect2 program. For some
38396 # reason, if we set the COLLECT_NAMES environment variable, the problems
38397 # vanish in a puff of smoke.
38398 if test set != "${COLLECT_NAMES+set}"; then
38399 COLLECT_NAMES=
38400 export COLLECT_NAMES
38401 fi
38402 _LT_EOF
38403 ;;
38404 esac
38405
38406
38407 ltmain=$ac_aux_dir/ltmain.sh
38408
38409
38410 # We use sed instead of cat because bash on DJGPP gets confused if
38411 # if finds mixed CR/LF and LF-only lines. Since sed operates in
38412 # text mode, it properly converts lines to CR/LF. This bash problem
38413 # is reportedly fixed, but why not run on old versions too?
38414 sed '$q' "$ltmain" >> "$cfgfile" \
38415 || (rm -f "$cfgfile"; exit 1)
38416
38417 mv -f "$cfgfile" "$ofile" ||
38418 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
38419 chmod +x "$ofile"
38420
38421 ;;
38422
38423 esac
38424 done # for ac_tag
38425
38426
38427 as_fn_exit 0
38428 _ACEOF
38429 ac_clean_files=$ac_clean_files_save
38430
38431 test $ac_write_fail = 0 ||
38432 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
38433
38434
38435 # configure is writing to config.log, and then calls config.status.
38436 # config.status does its own redirection, appending to config.log.
38437 # Unfortunately, on DOS this fails, as config.log is still kept open
38438 # by configure, so config.status won't be able to write to it; its
38439 # output is simply discarded. So we exec the FD to /dev/null,
38440 # effectively closing config.log, so it can be properly (re)opened and
38441 # appended to by config.status. When coming back to configure, we
38442 # need to make the FD available again.
38443 if test "$no_create" != yes; then
38444 ac_cs_success=:
38445 ac_config_status_args=
38446 test "$silent" = yes &&
38447 ac_config_status_args="$ac_config_status_args --quiet"
38448 exec 5>/dev/null
38449 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
38450 exec 5>>config.log
38451 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
38452 # would make configure fail if this is the last instruction.
38453 $ac_cs_success || as_fn_exit 1
38454 fi
38455 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
38456 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
38457 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
38458 fi
38459