]> git.proxmox.com Git - mirror_zfs-debian.git/blob - configure
New upstream version 0.7.11
[mirror_zfs-debian.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.63 for zfs 0.7.11.
4 #
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9 ## --------------------- ##
10 ## M4sh Initialization. ##
11 ## --------------------- ##
12
13 # Be more Bourne compatible
14 DUALCASE=1; export DUALCASE # for MKS sh
15 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16 emulate sh
17 NULLCMD=:
18 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
19 # is contrary to our usage. Disable this feature.
20 alias -g '${1+"$@"}'='"$@"'
21 setopt NO_GLOB_SUBST
22 else
23 case `(set -o) 2>/dev/null` in
24 *posix*) set -o posix ;;
25 esac
26
27 fi
28
29
30
31
32 # PATH needs CR
33 # Avoid depending upon Character Ranges.
34 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37 as_cr_digits='0123456789'
38 as_cr_alnum=$as_cr_Letters$as_cr_digits
39
40 as_nl='
41 '
42 export as_nl
43 # Printing a long string crashes Solaris 7 /usr/bin/printf.
44 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
45 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
46 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
47 if (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 # Support unset when possible.
82 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
83 as_unset=unset
84 else
85 as_unset=false
86 fi
87
88
89 # IFS
90 # We need space, tab and new line, in precisely that order. Quoting is
91 # there to prevent editors from complaining about space-tab.
92 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
93 # splitting by setting IFS to empty value.)
94 IFS=" "" $as_nl"
95
96 # Find who we are. Look in the path if we contain no directory separator.
97 case $0 in
98 *[\\/]* ) as_myself=$0 ;;
99 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
100 for as_dir in $PATH
101 do
102 IFS=$as_save_IFS
103 test -z "$as_dir" && as_dir=.
104 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
105 done
106 IFS=$as_save_IFS
107
108 ;;
109 esac
110 # We did not find ourselves, most probably we were run as `sh COMMAND'
111 # in which case we are not to be found in the path.
112 if test "x$as_myself" = x; then
113 as_myself=$0
114 fi
115 if test ! -f "$as_myself"; then
116 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
117 { (exit 1); exit 1; }
118 fi
119
120 # Work around bugs in pre-3.0 UWIN ksh.
121 for as_var in ENV MAIL MAILPATH
122 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
123 done
124 PS1='$ '
125 PS2='> '
126 PS4='+ '
127
128 # NLS nuisances.
129 LC_ALL=C
130 export LC_ALL
131 LANGUAGE=C
132 export LANGUAGE
133
134 # Required to use basename.
135 if expr a : '\(a\)' >/dev/null 2>&1 &&
136 test "X`expr 00001 : '.*\(...\)'`" = X001; then
137 as_expr=expr
138 else
139 as_expr=false
140 fi
141
142 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
143 as_basename=basename
144 else
145 as_basename=false
146 fi
147
148
149 # Name of the executable.
150 as_me=`$as_basename -- "$0" ||
151 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
152 X"$0" : 'X\(//\)$' \| \
153 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
154 $as_echo X/"$0" |
155 sed '/^.*\/\([^/][^/]*\)\/*$/{
156 s//\1/
157 q
158 }
159 /^X\/\(\/\/\)$/{
160 s//\1/
161 q
162 }
163 /^X\/\(\/\).*/{
164 s//\1/
165 q
166 }
167 s/.*/./; q'`
168
169 # CDPATH.
170 $as_unset CDPATH
171
172
173 if test "x$CONFIG_SHELL" = x; then
174 if (eval ":") 2>/dev/null; then
175 as_have_required=yes
176 else
177 as_have_required=no
178 fi
179
180 if test $as_have_required = yes && (eval ":
181 (as_func_return () {
182 (exit \$1)
183 }
184 as_func_success () {
185 as_func_return 0
186 }
187 as_func_failure () {
188 as_func_return 1
189 }
190 as_func_ret_success () {
191 return 0
192 }
193 as_func_ret_failure () {
194 return 1
195 }
196
197 exitcode=0
198 if as_func_success; then
199 :
200 else
201 exitcode=1
202 echo as_func_success failed.
203 fi
204
205 if as_func_failure; then
206 exitcode=1
207 echo as_func_failure succeeded.
208 fi
209
210 if as_func_ret_success; then
211 :
212 else
213 exitcode=1
214 echo as_func_ret_success failed.
215 fi
216
217 if as_func_ret_failure; then
218 exitcode=1
219 echo as_func_ret_failure succeeded.
220 fi
221
222 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
223 :
224 else
225 exitcode=1
226 echo positional parameters were not saved.
227 fi
228
229 test \$exitcode = 0) || { (exit 1); exit 1; }
230
231 (
232 as_lineno_1=\$LINENO
233 as_lineno_2=\$LINENO
234 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
235 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
236 ") 2> /dev/null; then
237 :
238 else
239 as_candidate_shells=
240 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
241 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
242 do
243 IFS=$as_save_IFS
244 test -z "$as_dir" && as_dir=.
245 case $as_dir in
246 /*)
247 for as_base in sh bash ksh sh5; do
248 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
249 done;;
250 esac
251 done
252 IFS=$as_save_IFS
253
254
255 for as_shell in $as_candidate_shells $SHELL; do
256 # Try only shells that exist, to save several forks.
257 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
258 { ("$as_shell") 2> /dev/null <<\_ASEOF
259 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
260 emulate sh
261 NULLCMD=:
262 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
263 # is contrary to our usage. Disable this feature.
264 alias -g '${1+"$@"}'='"$@"'
265 setopt NO_GLOB_SUBST
266 else
267 case `(set -o) 2>/dev/null` in
268 *posix*) set -o posix ;;
269 esac
270
271 fi
272
273
274 :
275 _ASEOF
276 }; then
277 CONFIG_SHELL=$as_shell
278 as_have_required=yes
279 if { "$as_shell" 2> /dev/null <<\_ASEOF
280 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
281 emulate sh
282 NULLCMD=:
283 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
284 # is contrary to our usage. Disable this feature.
285 alias -g '${1+"$@"}'='"$@"'
286 setopt NO_GLOB_SUBST
287 else
288 case `(set -o) 2>/dev/null` in
289 *posix*) set -o posix ;;
290 esac
291
292 fi
293
294
295 :
296 (as_func_return () {
297 (exit $1)
298 }
299 as_func_success () {
300 as_func_return 0
301 }
302 as_func_failure () {
303 as_func_return 1
304 }
305 as_func_ret_success () {
306 return 0
307 }
308 as_func_ret_failure () {
309 return 1
310 }
311
312 exitcode=0
313 if as_func_success; then
314 :
315 else
316 exitcode=1
317 echo as_func_success failed.
318 fi
319
320 if as_func_failure; then
321 exitcode=1
322 echo as_func_failure succeeded.
323 fi
324
325 if as_func_ret_success; then
326 :
327 else
328 exitcode=1
329 echo as_func_ret_success failed.
330 fi
331
332 if as_func_ret_failure; then
333 exitcode=1
334 echo as_func_ret_failure succeeded.
335 fi
336
337 if ( set x; as_func_ret_success y && test x = "$1" ); then
338 :
339 else
340 exitcode=1
341 echo positional parameters were not saved.
342 fi
343
344 test $exitcode = 0) || { (exit 1); exit 1; }
345
346 (
347 as_lineno_1=$LINENO
348 as_lineno_2=$LINENO
349 test "x$as_lineno_1" != "x$as_lineno_2" &&
350 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
351
352 _ASEOF
353 }; then
354 break
355 fi
356
357 fi
358
359 done
360
361 if test "x$CONFIG_SHELL" != x; then
362 for as_var in BASH_ENV ENV
363 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
364 done
365 export CONFIG_SHELL
366 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
367 fi
368
369
370 if test $as_have_required = no; then
371 echo This script requires a shell more modern than all the
372 echo shells that I found on your system. Please install a
373 echo modern shell, or manually run the script under such a
374 echo shell if you do have one.
375 { (exit 1); exit 1; }
376 fi
377
378
379 fi
380
381 fi
382
383
384
385 (eval "as_func_return () {
386 (exit \$1)
387 }
388 as_func_success () {
389 as_func_return 0
390 }
391 as_func_failure () {
392 as_func_return 1
393 }
394 as_func_ret_success () {
395 return 0
396 }
397 as_func_ret_failure () {
398 return 1
399 }
400
401 exitcode=0
402 if as_func_success; then
403 :
404 else
405 exitcode=1
406 echo as_func_success failed.
407 fi
408
409 if as_func_failure; then
410 exitcode=1
411 echo as_func_failure succeeded.
412 fi
413
414 if as_func_ret_success; then
415 :
416 else
417 exitcode=1
418 echo as_func_ret_success failed.
419 fi
420
421 if as_func_ret_failure; then
422 exitcode=1
423 echo as_func_ret_failure succeeded.
424 fi
425
426 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
427 :
428 else
429 exitcode=1
430 echo positional parameters were not saved.
431 fi
432
433 test \$exitcode = 0") || {
434 echo No shell found that supports shell functions.
435 echo Please tell bug-autoconf@gnu.org about your system,
436 echo including any error possibly output before this message.
437 echo This can help us improve future autoconf versions.
438 echo Configuration will now proceed without shell functions.
439 }
440
441
442
443 as_lineno_1=$LINENO
444 as_lineno_2=$LINENO
445 test "x$as_lineno_1" != "x$as_lineno_2" &&
446 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
447
448 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
449 # uniformly replaced by the line number. The first 'sed' inserts a
450 # line-number line after each line using $LINENO; the second 'sed'
451 # does the real work. The second script uses 'N' to pair each
452 # line-number line with the line containing $LINENO, and appends
453 # trailing '-' during substitution so that $LINENO is not a special
454 # case at line end.
455 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
456 # scripts with optimization help from Paolo Bonzini. Blame Lee
457 # E. McMahon (1931-1989) for sed's syntax. :-)
458 sed -n '
459 p
460 /[$]LINENO/=
461 ' <$as_myself |
462 sed '
463 s/[$]LINENO.*/&-/
464 t lineno
465 b
466 :lineno
467 N
468 :loop
469 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
470 t loop
471 s/-\n.*//
472 ' >$as_me.lineno &&
473 chmod +x "$as_me.lineno" ||
474 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
475 { (exit 1); exit 1; }; }
476
477 # Don't try to exec as it changes $[0], causing all sort of problems
478 # (the dirname of $[0] is not the place where we might find the
479 # original and so on. Autoconf is especially sensitive to this).
480 . "./$as_me.lineno"
481 # Exit status is that of the last command.
482 exit
483 }
484
485
486 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
487 as_dirname=dirname
488 else
489 as_dirname=false
490 fi
491
492 ECHO_C= ECHO_N= ECHO_T=
493 case `echo -n x` in
494 -n*)
495 case `echo 'x\c'` in
496 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
497 *) ECHO_C='\c';;
498 esac;;
499 *)
500 ECHO_N='-n';;
501 esac
502 if expr a : '\(a\)' >/dev/null 2>&1 &&
503 test "X`expr 00001 : '.*\(...\)'`" = X001; then
504 as_expr=expr
505 else
506 as_expr=false
507 fi
508
509 rm -f conf$$ conf$$.exe conf$$.file
510 if test -d conf$$.dir; then
511 rm -f conf$$.dir/conf$$.file
512 else
513 rm -f conf$$.dir
514 mkdir conf$$.dir 2>/dev/null
515 fi
516 if (echo >conf$$.file) 2>/dev/null; then
517 if ln -s conf$$.file conf$$ 2>/dev/null; then
518 as_ln_s='ln -s'
519 # ... but there are two gotchas:
520 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
521 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
522 # In both cases, we have to default to `cp -p'.
523 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
524 as_ln_s='cp -p'
525 elif ln conf$$.file conf$$ 2>/dev/null; then
526 as_ln_s=ln
527 else
528 as_ln_s='cp -p'
529 fi
530 else
531 as_ln_s='cp -p'
532 fi
533 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
534 rmdir conf$$.dir 2>/dev/null
535
536 if mkdir -p . 2>/dev/null; then
537 as_mkdir_p=:
538 else
539 test -d ./-p && rmdir ./-p
540 as_mkdir_p=false
541 fi
542
543 if test -x / >/dev/null 2>&1; then
544 as_test_x='test -x'
545 else
546 if ls -dL / >/dev/null 2>&1; then
547 as_ls_L_option=L
548 else
549 as_ls_L_option=
550 fi
551 as_test_x='
552 eval sh -c '\''
553 if test -d "$1"; then
554 test -d "$1/.";
555 else
556 case $1 in
557 -*)set "./$1";;
558 esac;
559 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
560 ???[sx]*):;;*)false;;esac;fi
561 '\'' sh
562 '
563 fi
564 as_executable_p=$as_test_x
565
566 # Sed expression to map a string onto a valid CPP name.
567 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
568
569 # Sed expression to map a string onto a valid variable name.
570 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
571
572
573
574
575 # Check that we are running under the correct shell.
576 SHELL=${CONFIG_SHELL-/bin/sh}
577
578 case X$lt_ECHO in
579 X*--fallback-echo)
580 # Remove one level of quotation (which was required for Make).
581 ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
582 ;;
583 esac
584
585 ECHO=${lt_ECHO-echo}
586 if test "X$1" = X--no-reexec; then
587 # Discard the --no-reexec flag, and continue.
588 shift
589 elif test "X$1" = X--fallback-echo; then
590 # Avoid inline document here, it may be left over
591 :
592 elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
593 # Yippee, $ECHO works!
594 :
595 else
596 # Restart under the correct shell.
597 exec $SHELL "$0" --no-reexec ${1+"$@"}
598 fi
599
600 if test "X$1" = X--fallback-echo; then
601 # used as fallback echo
602 shift
603 cat <<_LT_EOF
604 $*
605 _LT_EOF
606 exit 0
607 fi
608
609 # The HP-UX ksh and POSIX shell print the target directory to stdout
610 # if CDPATH is set.
611 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
612
613 if test -z "$lt_ECHO"; then
614 if test "X${echo_test_string+set}" != Xset; then
615 # find a string as large as possible, as long as the shell can cope with it
616 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
617 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
618 if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
619 { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
620 then
621 break
622 fi
623 done
624 fi
625
626 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
627 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
628 test "X$echo_testing_string" = "X$echo_test_string"; then
629 :
630 else
631 # The Solaris, AIX, and Digital Unix default echo programs unquote
632 # backslashes. This makes it impossible to quote backslashes using
633 # echo "$something" | sed 's/\\/\\\\/g'
634 #
635 # So, first we look for a working echo in the user's PATH.
636
637 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
638 for dir in $PATH /usr/ucb; do
639 IFS="$lt_save_ifs"
640 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
641 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
642 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
643 test "X$echo_testing_string" = "X$echo_test_string"; then
644 ECHO="$dir/echo"
645 break
646 fi
647 done
648 IFS="$lt_save_ifs"
649
650 if test "X$ECHO" = Xecho; then
651 # We didn't find a better echo, so look for alternatives.
652 if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
653 echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
654 test "X$echo_testing_string" = "X$echo_test_string"; then
655 # This shell has a builtin print -r that does the trick.
656 ECHO='print -r'
657 elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
658 test "X$CONFIG_SHELL" != X/bin/ksh; then
659 # If we have ksh, try running configure again with it.
660 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
661 export ORIGINAL_CONFIG_SHELL
662 CONFIG_SHELL=/bin/ksh
663 export CONFIG_SHELL
664 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
665 else
666 # Try using printf.
667 ECHO='printf %s\n'
668 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
669 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
670 test "X$echo_testing_string" = "X$echo_test_string"; then
671 # Cool, printf works
672 :
673 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
674 test "X$echo_testing_string" = 'X\t' &&
675 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
676 test "X$echo_testing_string" = "X$echo_test_string"; then
677 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
678 export CONFIG_SHELL
679 SHELL="$CONFIG_SHELL"
680 export SHELL
681 ECHO="$CONFIG_SHELL $0 --fallback-echo"
682 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
683 test "X$echo_testing_string" = 'X\t' &&
684 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
685 test "X$echo_testing_string" = "X$echo_test_string"; then
686 ECHO="$CONFIG_SHELL $0 --fallback-echo"
687 else
688 # maybe with a smaller string...
689 prev=:
690
691 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
692 if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
693 then
694 break
695 fi
696 prev="$cmd"
697 done
698
699 if test "$prev" != 'sed 50q "$0"'; then
700 echo_test_string=`eval $prev`
701 export echo_test_string
702 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
703 else
704 # Oops. We lost completely, so just stick with echo.
705 ECHO=echo
706 fi
707 fi
708 fi
709 fi
710 fi
711 fi
712
713 # Copy echo and quote the copy suitably for passing to libtool from
714 # the Makefile, instead of quoting the original, which is used later.
715 lt_ECHO=$ECHO
716 if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
717 lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
718 fi
719
720
721
722
723 exec 7<&0 </dev/null 6>&1
724
725 # Name of the host.
726 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
727 # so uname gets run too.
728 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
729
730 #
731 # Initializations.
732 #
733 ac_default_prefix=/usr/local
734 ac_clean_files=
735 ac_config_libobj_dir=.
736 LIBOBJS=
737 cross_compiling=no
738 subdirs=
739 MFLAGS=
740 MAKEFLAGS=
741 SHELL=${CONFIG_SHELL-/bin/sh}
742
743 # Identity of this package.
744 PACKAGE_NAME='zfs'
745 PACKAGE_TARNAME='zfs'
746 PACKAGE_VERSION='0.7.11'
747 PACKAGE_STRING='zfs 0.7.11'
748 PACKAGE_BUGREPORT=''
749
750 # Factoring default headers for most tests.
751 ac_includes_default="\
752 #include <stdio.h>
753 #ifdef HAVE_SYS_TYPES_H
754 # include <sys/types.h>
755 #endif
756 #ifdef HAVE_SYS_STAT_H
757 # include <sys/stat.h>
758 #endif
759 #ifdef STDC_HEADERS
760 # include <stdlib.h>
761 # include <stddef.h>
762 #else
763 # ifdef HAVE_STDLIB_H
764 # include <stdlib.h>
765 # endif
766 #endif
767 #ifdef HAVE_STRING_H
768 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
769 # include <memory.h>
770 # endif
771 # include <string.h>
772 #endif
773 #ifdef HAVE_STRINGS_H
774 # include <strings.h>
775 #endif
776 #ifdef HAVE_INTTYPES_H
777 # include <inttypes.h>
778 #endif
779 #ifdef HAVE_STDINT_H
780 # include <stdint.h>
781 #endif
782 #ifdef HAVE_UNISTD_H
783 # include <unistd.h>
784 #endif"
785
786 ac_subst_vars='am__EXEEXT_FALSE
787 am__EXEEXT_TRUE
788 LTLIBOBJS
789 LIBOBJS
790 DEBUG_CFLAGS
791 DEBUG_ZFS
792 DEBUG_STACKFLAGS
793 WANT_MMAP_LIBAIO_FALSE
794 WANT_MMAP_LIBAIO_TRUE
795 WANT_DEVNAME2DEVID_FALSE
796 WANT_DEVNAME2DEVID_TRUE
797 CONFIG_QAT_FALSE
798 CONFIG_QAT_TRUE
799 CONFIG_KERNEL_FALSE
800 CONFIG_KERNEL_TRUE
801 CONFIG_USER_FALSE
802 CONFIG_USER_TRUE
803 RM
804 ZONENAME
805 NO_FORMAT_TRUNCATION
806 runstatedir
807 LIBAIO
808 FRAME_LARGER_THAN
809 LIBUDEV
810 LIBBLKID
811 LIBTIRPC_CFLAGS
812 LIBTIRPC
813 LIBUUID
814 ZLIB
815 dracutdir
816 ZFS_INIT_SYSV
817 modulesloaddir
818 systemdpresetdir
819 systemdunitdir
820 DEFINE_SYSTEMD
821 ZFS_MODULE_LOAD
822 ZFS_INIT_SYSTEMD
823 udevruledir
824 udevdir
825 mounthelperdir
826 KERNELCPPFLAGS
827 KERNELMAKE_PARAMS
828 QAT_SYMBOLS
829 QAT_OBJ
830 QAT_SRC
831 SPL_SYMBOLS
832 SPL_VERSION
833 SPL_OBJ
834 SPL
835 LINUX_SYMBOLS
836 LINUX_VERSION
837 LINUX_OBJ
838 LINUX
839 TARGET_ASM_GENERIC_FALSE
840 TARGET_ASM_GENERIC_TRUE
841 TARGET_ASM_I386_FALSE
842 TARGET_ASM_I386_TRUE
843 TARGET_ASM_X86_64_FALSE
844 TARGET_ASM_X86_64_TRUE
845 TARGET_ASM_DIR
846 NO_BOOL_COMPARE
847 NO_UNUSED_BUT_SET_VARIABLE
848 ZFS_CONFIG
849 ALIEN_VERSION
850 ALIEN
851 HAVE_ALIEN
852 DPKGBUILD_VERSION
853 DPKGBUILD
854 HAVE_DPKGBUILD
855 DPKG_VERSION
856 DPKG
857 HAVE_DPKG
858 SRPM_DEFINE_COMMON
859 SRPM_DEFINE_DKMS
860 SRPM_DEFINE_KMOD
861 SRPM_DEFINE_UTIL
862 RPM_DEFINE_COMMON
863 RPM_DEFINE_DKMS
864 RPM_DEFINE_KMOD
865 RPM_DEFINE_UTIL
866 RPM_SPEC_DIR
867 RPMBUILD_VERSION
868 RPMBUILD
869 HAVE_RPMBUILD
870 RPM_VERSION
871 RPM
872 HAVE_RPM
873 MULTIARCH_LIBDIR
874 DEFINE_INITRAMFS
875 DEFAULT_INITCONF_DIR
876 DEFAULT_INIT_SCRIPT
877 DEFAULT_INIT_DIR
878 DEFAULT_PACKAGE
879 VENDOR
880 CODE_COVERAGE_RULES
881 CODE_COVERAGE_LDFLAGS
882 CODE_COVERAGE_LIBS
883 CODE_COVERAGE_CXXFLAGS
884 CODE_COVERAGE_CFLAGS
885 CODE_COVERAGE_CPPFLAGS
886 GENHTML
887 LCOV
888 GCOV
889 CODE_COVERAGE_ENABLED
890 CODE_COVERAGE_ENABLED_FALSE
891 CODE_COVERAGE_ENABLED_TRUE
892 am__fastdepCCAS_FALSE
893 am__fastdepCCAS_TRUE
894 CCASDEPMODE
895 CCASFLAGS
896 CCAS
897 CPP
898 OTOOL64
899 OTOOL
900 LIPO
901 NMEDIT
902 DSYMUTIL
903 lt_ECHO
904 RANLIB
905 AR
906 OBJDUMP
907 LN_S
908 NM
909 ac_ct_DUMPBIN
910 DUMPBIN
911 LD
912 FGREP
913 EGREP
914 GREP
915 SED
916 LIBTOOL
917 am__fastdepCC_FALSE
918 am__fastdepCC_TRUE
919 CCDEPMODE
920 AMDEPBACKSLASH
921 AMDEP_FALSE
922 AMDEP_TRUE
923 am__quote
924 am__include
925 DEPDIR
926 OBJEXT
927 EXEEXT
928 ac_ct_CC
929 CPPFLAGS
930 LDFLAGS
931 CFLAGS
932 CC
933 am__untar
934 am__tar
935 AMTAR
936 am__leading_dot
937 SET_MAKE
938 mkdir_p
939 MKDIR_P
940 INSTALL_STRIP_PROGRAM
941 STRIP
942 install_sh
943 MAKEINFO
944 AUTOHEADER
945 AUTOMAKE
946 AUTOCONF
947 ACLOCAL
948 VERSION
949 PACKAGE
950 CYGPATH_W
951 am__isrc
952 INSTALL_DATA
953 INSTALL_SCRIPT
954 INSTALL_PROGRAM
955 AM_BACKSLASH
956 AM_DEFAULT_VERBOSITY
957 MAINT
958 MAINTAINER_MODE_FALSE
959 MAINTAINER_MODE_TRUE
960 target_os
961 target_vendor
962 target_cpu
963 target
964 host_os
965 host_vendor
966 host_cpu
967 host
968 build_os
969 build_vendor
970 build_cpu
971 build
972 ZFS_META_LT_AGE
973 ZFS_META_LT_REVISION
974 ZFS_META_LT_CURRENT
975 ZFS_META_AUTHOR
976 ZFS_META_DATA
977 ZFS_META_ALIAS
978 ZFS_META_LICENSE
979 RELEASE
980 ZFS_META_RELEASE
981 ZFS_META_VERSION
982 ZFS_META_NAME
983 AWK
984 target_alias
985 host_alias
986 build_alias
987 LIBS
988 ECHO_T
989 ECHO_N
990 ECHO_C
991 DEFS
992 mandir
993 localedir
994 libdir
995 psdir
996 pdfdir
997 dvidir
998 htmldir
999 infodir
1000 docdir
1001 oldincludedir
1002 includedir
1003 localstatedir
1004 sharedstatedir
1005 sysconfdir
1006 datadir
1007 datarootdir
1008 libexecdir
1009 sbindir
1010 bindir
1011 program_transform_name
1012 prefix
1013 exec_prefix
1014 PACKAGE_BUGREPORT
1015 PACKAGE_STRING
1016 PACKAGE_VERSION
1017 PACKAGE_TARNAME
1018 PACKAGE_NAME
1019 PATH_SEPARATOR
1020 SHELL'
1021 ac_subst_files=''
1022 ac_user_opts='
1023 enable_option_checking
1024 enable_maintainer_mode
1025 enable_silent_rules
1026 enable_dependency_tracking
1027 enable_shared
1028 enable_static
1029 with_pic
1030 enable_fast_install
1031 with_gnu_ld
1032 enable_libtool_lock
1033 with_gcov
1034 enable_code_coverage
1035 with_spec
1036 with_config
1037 enable_linux_builtin
1038 with_linux
1039 with_linux_obj
1040 with_spl
1041 with_spl_obj
1042 with_spl_timeout
1043 with_qat
1044 with_qat_obj
1045 with_mounthelperdir
1046 with_udevdir
1047 with_udevruledir
1048 enable_systemd
1049 with_systemdunitdir
1050 with_systemdpresetdir
1051 with_systemdmodulesloaddir
1052 enable_sysvinit
1053 with_dracutdir
1054 with_tirpc
1055 enable_debug
1056 enable_debuginfo
1057 '
1058 ac_precious_vars='build_alias
1059 host_alias
1060 target_alias
1061 CC
1062 CFLAGS
1063 LDFLAGS
1064 LIBS
1065 CPPFLAGS
1066 CPP
1067 CCAS
1068 CCASFLAGS'
1069
1070
1071 # Initialize some variables set by options.
1072 ac_init_help=
1073 ac_init_version=false
1074 ac_unrecognized_opts=
1075 ac_unrecognized_sep=
1076 # The variables have the same names as the options, with
1077 # dashes changed to underlines.
1078 cache_file=/dev/null
1079 exec_prefix=NONE
1080 no_create=
1081 no_recursion=
1082 prefix=NONE
1083 program_prefix=NONE
1084 program_suffix=NONE
1085 program_transform_name=s,x,x,
1086 silent=
1087 site=
1088 srcdir=
1089 verbose=
1090 x_includes=NONE
1091 x_libraries=NONE
1092
1093 # Installation directory options.
1094 # These are left unexpanded so users can "make install exec_prefix=/foo"
1095 # and all the variables that are supposed to be based on exec_prefix
1096 # by default will actually change.
1097 # Use braces instead of parens because sh, perl, etc. also accept them.
1098 # (The list follows the same order as the GNU Coding Standards.)
1099 bindir='${exec_prefix}/bin'
1100 sbindir='${exec_prefix}/sbin'
1101 libexecdir='${exec_prefix}/libexec'
1102 datarootdir='${prefix}/share'
1103 datadir='${datarootdir}'
1104 sysconfdir='${prefix}/etc'
1105 sharedstatedir='${prefix}/com'
1106 localstatedir='${prefix}/var'
1107 includedir='${prefix}/include'
1108 oldincludedir='/usr/include'
1109 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1110 infodir='${datarootdir}/info'
1111 htmldir='${docdir}'
1112 dvidir='${docdir}'
1113 pdfdir='${docdir}'
1114 psdir='${docdir}'
1115 libdir='${exec_prefix}/lib'
1116 localedir='${datarootdir}/locale'
1117 mandir='${datarootdir}/man'
1118
1119 ac_prev=
1120 ac_dashdash=
1121 for ac_option
1122 do
1123 # If the previous option needs an argument, assign it.
1124 if test -n "$ac_prev"; then
1125 eval $ac_prev=\$ac_option
1126 ac_prev=
1127 continue
1128 fi
1129
1130 case $ac_option in
1131 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1132 *) ac_optarg=yes ;;
1133 esac
1134
1135 # Accept the important Cygnus configure options, so we can diagnose typos.
1136
1137 case $ac_dashdash$ac_option in
1138 --)
1139 ac_dashdash=yes ;;
1140
1141 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1142 ac_prev=bindir ;;
1143 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1144 bindir=$ac_optarg ;;
1145
1146 -build | --build | --buil | --bui | --bu)
1147 ac_prev=build_alias ;;
1148 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1149 build_alias=$ac_optarg ;;
1150
1151 -cache-file | --cache-file | --cache-fil | --cache-fi \
1152 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1153 ac_prev=cache_file ;;
1154 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1155 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1156 cache_file=$ac_optarg ;;
1157
1158 --config-cache | -C)
1159 cache_file=config.cache ;;
1160
1161 -datadir | --datadir | --datadi | --datad)
1162 ac_prev=datadir ;;
1163 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1164 datadir=$ac_optarg ;;
1165
1166 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1167 | --dataroo | --dataro | --datar)
1168 ac_prev=datarootdir ;;
1169 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1170 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1171 datarootdir=$ac_optarg ;;
1172
1173 -disable-* | --disable-*)
1174 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1175 # Reject names that are not valid shell variable names.
1176 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1177 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1178 { (exit 1); exit 1; }; }
1179 ac_useropt_orig=$ac_useropt
1180 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1181 case $ac_user_opts in
1182 *"
1183 "enable_$ac_useropt"
1184 "*) ;;
1185 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1186 ac_unrecognized_sep=', ';;
1187 esac
1188 eval enable_$ac_useropt=no ;;
1189
1190 -docdir | --docdir | --docdi | --doc | --do)
1191 ac_prev=docdir ;;
1192 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1193 docdir=$ac_optarg ;;
1194
1195 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1196 ac_prev=dvidir ;;
1197 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1198 dvidir=$ac_optarg ;;
1199
1200 -enable-* | --enable-*)
1201 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1202 # Reject names that are not valid shell variable names.
1203 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1204 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1205 { (exit 1); exit 1; }; }
1206 ac_useropt_orig=$ac_useropt
1207 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1208 case $ac_user_opts in
1209 *"
1210 "enable_$ac_useropt"
1211 "*) ;;
1212 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1213 ac_unrecognized_sep=', ';;
1214 esac
1215 eval enable_$ac_useropt=\$ac_optarg ;;
1216
1217 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1218 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1219 | --exec | --exe | --ex)
1220 ac_prev=exec_prefix ;;
1221 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1222 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1223 | --exec=* | --exe=* | --ex=*)
1224 exec_prefix=$ac_optarg ;;
1225
1226 -gas | --gas | --ga | --g)
1227 # Obsolete; use --with-gas.
1228 with_gas=yes ;;
1229
1230 -help | --help | --hel | --he | -h)
1231 ac_init_help=long ;;
1232 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1233 ac_init_help=recursive ;;
1234 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1235 ac_init_help=short ;;
1236
1237 -host | --host | --hos | --ho)
1238 ac_prev=host_alias ;;
1239 -host=* | --host=* | --hos=* | --ho=*)
1240 host_alias=$ac_optarg ;;
1241
1242 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1243 ac_prev=htmldir ;;
1244 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1245 | --ht=*)
1246 htmldir=$ac_optarg ;;
1247
1248 -includedir | --includedir | --includedi | --included | --include \
1249 | --includ | --inclu | --incl | --inc)
1250 ac_prev=includedir ;;
1251 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1252 | --includ=* | --inclu=* | --incl=* | --inc=*)
1253 includedir=$ac_optarg ;;
1254
1255 -infodir | --infodir | --infodi | --infod | --info | --inf)
1256 ac_prev=infodir ;;
1257 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1258 infodir=$ac_optarg ;;
1259
1260 -libdir | --libdir | --libdi | --libd)
1261 ac_prev=libdir ;;
1262 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1263 libdir=$ac_optarg ;;
1264
1265 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1266 | --libexe | --libex | --libe)
1267 ac_prev=libexecdir ;;
1268 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1269 | --libexe=* | --libex=* | --libe=*)
1270 libexecdir=$ac_optarg ;;
1271
1272 -localedir | --localedir | --localedi | --localed | --locale)
1273 ac_prev=localedir ;;
1274 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1275 localedir=$ac_optarg ;;
1276
1277 -localstatedir | --localstatedir | --localstatedi | --localstated \
1278 | --localstate | --localstat | --localsta | --localst | --locals)
1279 ac_prev=localstatedir ;;
1280 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1281 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1282 localstatedir=$ac_optarg ;;
1283
1284 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1285 ac_prev=mandir ;;
1286 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1287 mandir=$ac_optarg ;;
1288
1289 -nfp | --nfp | --nf)
1290 # Obsolete; use --without-fp.
1291 with_fp=no ;;
1292
1293 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1294 | --no-cr | --no-c | -n)
1295 no_create=yes ;;
1296
1297 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1298 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1299 no_recursion=yes ;;
1300
1301 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1302 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1303 | --oldin | --oldi | --old | --ol | --o)
1304 ac_prev=oldincludedir ;;
1305 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1306 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1307 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1308 oldincludedir=$ac_optarg ;;
1309
1310 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1311 ac_prev=prefix ;;
1312 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1313 prefix=$ac_optarg ;;
1314
1315 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1316 | --program-pre | --program-pr | --program-p)
1317 ac_prev=program_prefix ;;
1318 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1319 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1320 program_prefix=$ac_optarg ;;
1321
1322 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1323 | --program-suf | --program-su | --program-s)
1324 ac_prev=program_suffix ;;
1325 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1326 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1327 program_suffix=$ac_optarg ;;
1328
1329 -program-transform-name | --program-transform-name \
1330 | --program-transform-nam | --program-transform-na \
1331 | --program-transform-n | --program-transform- \
1332 | --program-transform | --program-transfor \
1333 | --program-transfo | --program-transf \
1334 | --program-trans | --program-tran \
1335 | --progr-tra | --program-tr | --program-t)
1336 ac_prev=program_transform_name ;;
1337 -program-transform-name=* | --program-transform-name=* \
1338 | --program-transform-nam=* | --program-transform-na=* \
1339 | --program-transform-n=* | --program-transform-=* \
1340 | --program-transform=* | --program-transfor=* \
1341 | --program-transfo=* | --program-transf=* \
1342 | --program-trans=* | --program-tran=* \
1343 | --progr-tra=* | --program-tr=* | --program-t=*)
1344 program_transform_name=$ac_optarg ;;
1345
1346 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1347 ac_prev=pdfdir ;;
1348 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1349 pdfdir=$ac_optarg ;;
1350
1351 -psdir | --psdir | --psdi | --psd | --ps)
1352 ac_prev=psdir ;;
1353 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1354 psdir=$ac_optarg ;;
1355
1356 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1357 | -silent | --silent | --silen | --sile | --sil)
1358 silent=yes ;;
1359
1360 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1361 ac_prev=sbindir ;;
1362 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1363 | --sbi=* | --sb=*)
1364 sbindir=$ac_optarg ;;
1365
1366 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1367 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1368 | --sharedst | --shareds | --shared | --share | --shar \
1369 | --sha | --sh)
1370 ac_prev=sharedstatedir ;;
1371 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1372 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1373 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1374 | --sha=* | --sh=*)
1375 sharedstatedir=$ac_optarg ;;
1376
1377 -site | --site | --sit)
1378 ac_prev=site ;;
1379 -site=* | --site=* | --sit=*)
1380 site=$ac_optarg ;;
1381
1382 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1383 ac_prev=srcdir ;;
1384 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1385 srcdir=$ac_optarg ;;
1386
1387 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1388 | --syscon | --sysco | --sysc | --sys | --sy)
1389 ac_prev=sysconfdir ;;
1390 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1391 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1392 sysconfdir=$ac_optarg ;;
1393
1394 -target | --target | --targe | --targ | --tar | --ta | --t)
1395 ac_prev=target_alias ;;
1396 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1397 target_alias=$ac_optarg ;;
1398
1399 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1400 verbose=yes ;;
1401
1402 -version | --version | --versio | --versi | --vers | -V)
1403 ac_init_version=: ;;
1404
1405 -with-* | --with-*)
1406 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1407 # Reject names that are not valid shell variable names.
1408 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1409 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1410 { (exit 1); exit 1; }; }
1411 ac_useropt_orig=$ac_useropt
1412 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1413 case $ac_user_opts in
1414 *"
1415 "with_$ac_useropt"
1416 "*) ;;
1417 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1418 ac_unrecognized_sep=', ';;
1419 esac
1420 eval with_$ac_useropt=\$ac_optarg ;;
1421
1422 -without-* | --without-*)
1423 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1424 # Reject names that are not valid shell variable names.
1425 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1426 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1427 { (exit 1); exit 1; }; }
1428 ac_useropt_orig=$ac_useropt
1429 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1430 case $ac_user_opts in
1431 *"
1432 "with_$ac_useropt"
1433 "*) ;;
1434 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1435 ac_unrecognized_sep=', ';;
1436 esac
1437 eval with_$ac_useropt=no ;;
1438
1439 --x)
1440 # Obsolete; use --with-x.
1441 with_x=yes ;;
1442
1443 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1444 | --x-incl | --x-inc | --x-in | --x-i)
1445 ac_prev=x_includes ;;
1446 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1447 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1448 x_includes=$ac_optarg ;;
1449
1450 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1451 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1452 ac_prev=x_libraries ;;
1453 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1454 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1455 x_libraries=$ac_optarg ;;
1456
1457 -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1458 Try \`$0 --help' for more information." >&2
1459 { (exit 1); exit 1; }; }
1460 ;;
1461
1462 *=*)
1463 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1464 # Reject names that are not valid shell variable names.
1465 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1466 { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1467 { (exit 1); exit 1; }; }
1468 eval $ac_envvar=\$ac_optarg
1469 export $ac_envvar ;;
1470
1471 *)
1472 # FIXME: should be removed in autoconf 3.0.
1473 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1474 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1475 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1476 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1477 ;;
1478
1479 esac
1480 done
1481
1482 if test -n "$ac_prev"; then
1483 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1484 { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1485 { (exit 1); exit 1; }; }
1486 fi
1487
1488 if test -n "$ac_unrecognized_opts"; then
1489 case $enable_option_checking in
1490 no) ;;
1491 fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
1492 { (exit 1); exit 1; }; } ;;
1493 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1494 esac
1495 fi
1496
1497 # Check all directory arguments for consistency.
1498 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1499 datadir sysconfdir sharedstatedir localstatedir includedir \
1500 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1501 libdir localedir mandir
1502 do
1503 eval ac_val=\$$ac_var
1504 # Remove trailing slashes.
1505 case $ac_val in
1506 */ )
1507 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1508 eval $ac_var=\$ac_val;;
1509 esac
1510 # Be sure to have absolute directory names.
1511 case $ac_val in
1512 [\\/$]* | ?:[\\/]* ) continue;;
1513 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1514 esac
1515 { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1516 { (exit 1); exit 1; }; }
1517 done
1518
1519 # There might be people who depend on the old broken behavior: `$host'
1520 # used to hold the argument of --host etc.
1521 # FIXME: To remove some day.
1522 build=$build_alias
1523 host=$host_alias
1524 target=$target_alias
1525
1526 # FIXME: To remove some day.
1527 if test "x$host_alias" != x; then
1528 if test "x$build_alias" = x; then
1529 cross_compiling=maybe
1530 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1531 If a cross compiler is detected then cross compile mode will be used." >&2
1532 elif test "x$build_alias" != "x$host_alias"; then
1533 cross_compiling=yes
1534 fi
1535 fi
1536
1537 ac_tool_prefix=
1538 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1539
1540 test "$silent" = yes && exec 6>/dev/null
1541
1542
1543 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1544 ac_ls_di=`ls -di .` &&
1545 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1546 { $as_echo "$as_me: error: working directory cannot be determined" >&2
1547 { (exit 1); exit 1; }; }
1548 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1549 { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1550 { (exit 1); exit 1; }; }
1551
1552
1553 # Find the source files, if location was not specified.
1554 if test -z "$srcdir"; then
1555 ac_srcdir_defaulted=yes
1556 # Try the directory containing this script, then the parent directory.
1557 ac_confdir=`$as_dirname -- "$as_myself" ||
1558 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1559 X"$as_myself" : 'X\(//\)[^/]' \| \
1560 X"$as_myself" : 'X\(//\)$' \| \
1561 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1562 $as_echo X"$as_myself" |
1563 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1564 s//\1/
1565 q
1566 }
1567 /^X\(\/\/\)[^/].*/{
1568 s//\1/
1569 q
1570 }
1571 /^X\(\/\/\)$/{
1572 s//\1/
1573 q
1574 }
1575 /^X\(\/\).*/{
1576 s//\1/
1577 q
1578 }
1579 s/.*/./; q'`
1580 srcdir=$ac_confdir
1581 if test ! -r "$srcdir/$ac_unique_file"; then
1582 srcdir=..
1583 fi
1584 else
1585 ac_srcdir_defaulted=no
1586 fi
1587 if test ! -r "$srcdir/$ac_unique_file"; then
1588 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1589 { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1590 { (exit 1); exit 1; }; }
1591 fi
1592 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1593 ac_abs_confdir=`(
1594 cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1595 { (exit 1); exit 1; }; }
1596 pwd)`
1597 # When building in place, set srcdir=.
1598 if test "$ac_abs_confdir" = "$ac_pwd"; then
1599 srcdir=.
1600 fi
1601 # Remove unnecessary trailing slashes from srcdir.
1602 # Double slashes in file names in object file debugging info
1603 # mess up M-x gdb in Emacs.
1604 case $srcdir in
1605 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1606 esac
1607 for ac_var in $ac_precious_vars; do
1608 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1609 eval ac_env_${ac_var}_value=\$${ac_var}
1610 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1611 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1612 done
1613
1614 #
1615 # Report the --help message.
1616 #
1617 if test "$ac_init_help" = "long"; then
1618 # Omit some internal or obsolete options to make the list less imposing.
1619 # This message is too long to be a string in the A/UX 3.1 sh.
1620 cat <<_ACEOF
1621 \`configure' configures zfs 0.7.11 to adapt to many kinds of systems.
1622
1623 Usage: $0 [OPTION]... [VAR=VALUE]...
1624
1625 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1626 VAR=VALUE. See below for descriptions of some of the useful variables.
1627
1628 Defaults for the options are specified in brackets.
1629
1630 Configuration:
1631 -h, --help display this help and exit
1632 --help=short display options specific to this package
1633 --help=recursive display the short help of all the included packages
1634 -V, --version display version information and exit
1635 -q, --quiet, --silent do not print \`checking...' messages
1636 --cache-file=FILE cache test results in FILE [disabled]
1637 -C, --config-cache alias for \`--cache-file=config.cache'
1638 -n, --no-create do not create output files
1639 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1640
1641 Installation directories:
1642 --prefix=PREFIX install architecture-independent files in PREFIX
1643 [$ac_default_prefix]
1644 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1645 [PREFIX]
1646
1647 By default, \`make install' will install all the files in
1648 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1649 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1650 for instance \`--prefix=\$HOME'.
1651
1652 For better control, use the options below.
1653
1654 Fine tuning of the installation directories:
1655 --bindir=DIR user executables [EPREFIX/bin]
1656 --sbindir=DIR system admin executables [EPREFIX/sbin]
1657 --libexecdir=DIR program executables [EPREFIX/libexec]
1658 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1659 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1660 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1661 --libdir=DIR object code libraries [EPREFIX/lib]
1662 --includedir=DIR C header files [PREFIX/include]
1663 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1664 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1665 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1666 --infodir=DIR info documentation [DATAROOTDIR/info]
1667 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1668 --mandir=DIR man documentation [DATAROOTDIR/man]
1669 --docdir=DIR documentation root [DATAROOTDIR/doc/zfs]
1670 --htmldir=DIR html documentation [DOCDIR]
1671 --dvidir=DIR dvi documentation [DOCDIR]
1672 --pdfdir=DIR pdf documentation [DOCDIR]
1673 --psdir=DIR ps documentation [DOCDIR]
1674 _ACEOF
1675
1676 cat <<\_ACEOF
1677
1678 Program names:
1679 --program-prefix=PREFIX prepend PREFIX to installed program names
1680 --program-suffix=SUFFIX append SUFFIX to installed program names
1681 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1682
1683 System types:
1684 --build=BUILD configure for building on BUILD [guessed]
1685 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1686 --target=TARGET configure for building compilers for TARGET [HOST]
1687 _ACEOF
1688 fi
1689
1690 if test -n "$ac_init_help"; then
1691 case $ac_init_help in
1692 short | recursive ) echo "Configuration of zfs 0.7.11:";;
1693 esac
1694 cat <<\_ACEOF
1695
1696 Optional Features:
1697 --disable-option-checking ignore unrecognized --enable/--with options
1698 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1699 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1700 --enable-maintainer-mode enable make rules and dependencies not useful
1701 (and sometimes confusing) to the casual installer
1702 --enable-silent-rules less verbose build output (undo: `make V=1')
1703 --disable-silent-rules verbose build output (undo: `make V=0')
1704 --disable-dependency-tracking speeds up one-time build
1705 --enable-dependency-tracking do not reject slow dependency extractors
1706 --enable-shared[=PKGS] build shared libraries [default=yes]
1707 --enable-static[=PKGS] build static libraries [default=yes]
1708 --enable-fast-install[=PKGS]
1709 optimize for fast installation [default=yes]
1710 --disable-libtool-lock avoid locking (might break parallel builds)
1711 --enable-code-coverage Whether to enable code coverage support
1712 --enable-linux-builtin Configure for builtin in-tree kernel modules
1713 [default=no]
1714 --enable-systemd install systemd unit/preset files
1715 [default:], [yes]
1716 --enable-sysvinit install SysV init scripts default:, yes
1717 --enable-debug Enable assertion support [default=no]
1718 --enable-debuginfo Force generation of debuginfo [default=no]
1719
1720 Optional Packages:
1721 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1722 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1723 --with-pic try to use only PIC/non-PIC objects [default=use
1724 both]
1725 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1726 --with-gcov=GCOV use given GCOV for coverage (GCOV=gcov).
1727 --with-spec=SPEC Spec files 'generic|redhat'
1728 --with-config=CONFIG Config file 'kernel|user|all|srpm'
1729 --with-linux=PATH Path to kernel source
1730 --with-linux-obj=PATH Path to kernel build objects
1731 --with-spl=PATH Path to spl source
1732 --with-spl-obj=PATH Path to spl build objects
1733 --with-spl-timeout=SECS Wait SECS for SPL header and symver file [default=0]
1734 --with-qat=PATH Path to qat source
1735 --with-qat-obj=PATH Path to qat build objects
1736 --with-mounthelperdir=DIR
1737 install mount.zfs in dir [/sbin]
1738 --with-udevdir=DIR install udev helpers [default=check]
1739 --with-udevruledir=DIR install udev rules [UDEVDIR/rules.d]
1740 --with-systemdunitdir=DIR
1741 install systemd unit files in dir
1742 [/usr/lib/systemd/system]
1743 --with-systemdpresetdir=DIR
1744 install systemd preset files in dir
1745 [/usr/lib/systemd/system-preset]
1746 --with-systemdmodulesloaddir=DIR
1747 install systemd module load files into dir
1748 [/usr/lib/modules-load.d]
1749 --with-dracutdir=DIR install dracut helpers [default=check]
1750 --with-tirpc use tirpc for xdr encoding [default=check]
1751
1752 Some influential environment variables:
1753 CC C compiler command
1754 CFLAGS C compiler flags
1755 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1756 nonstandard directory <lib dir>
1757 LIBS libraries to pass to the linker, e.g. -l<library>
1758 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1759 you have headers in a nonstandard directory <include dir>
1760 CPP C preprocessor
1761 CCAS assembler compiler command (defaults to CC)
1762 CCASFLAGS assembler compiler flags (defaults to CFLAGS)
1763
1764 Use these variables to override the choices made by `configure' or to help
1765 it to find libraries and programs with nonstandard names/locations.
1766
1767 _ACEOF
1768 ac_status=$?
1769 fi
1770
1771 if test "$ac_init_help" = "recursive"; then
1772 # If there are subdirs, report their specific --help.
1773 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1774 test -d "$ac_dir" ||
1775 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1776 continue
1777 ac_builddir=.
1778
1779 case "$ac_dir" in
1780 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1781 *)
1782 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1783 # A ".." for each directory in $ac_dir_suffix.
1784 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1785 case $ac_top_builddir_sub in
1786 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1787 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1788 esac ;;
1789 esac
1790 ac_abs_top_builddir=$ac_pwd
1791 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1792 # for backward compatibility:
1793 ac_top_builddir=$ac_top_build_prefix
1794
1795 case $srcdir in
1796 .) # We are building in place.
1797 ac_srcdir=.
1798 ac_top_srcdir=$ac_top_builddir_sub
1799 ac_abs_top_srcdir=$ac_pwd ;;
1800 [\\/]* | ?:[\\/]* ) # Absolute name.
1801 ac_srcdir=$srcdir$ac_dir_suffix;
1802 ac_top_srcdir=$srcdir
1803 ac_abs_top_srcdir=$srcdir ;;
1804 *) # Relative name.
1805 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1806 ac_top_srcdir=$ac_top_build_prefix$srcdir
1807 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1808 esac
1809 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1810
1811 cd "$ac_dir" || { ac_status=$?; continue; }
1812 # Check for guested configure.
1813 if test -f "$ac_srcdir/configure.gnu"; then
1814 echo &&
1815 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1816 elif test -f "$ac_srcdir/configure"; then
1817 echo &&
1818 $SHELL "$ac_srcdir/configure" --help=recursive
1819 else
1820 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1821 fi || ac_status=$?
1822 cd "$ac_pwd" || { ac_status=$?; break; }
1823 done
1824 fi
1825
1826 test -n "$ac_init_help" && exit $ac_status
1827 if $ac_init_version; then
1828 cat <<\_ACEOF
1829 zfs configure 0.7.11
1830 generated by GNU Autoconf 2.63
1831
1832 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1833 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
1834 This configure script is free software; the Free Software Foundation
1835 gives unlimited permission to copy, distribute and modify it.
1836 _ACEOF
1837 exit
1838 fi
1839 cat >config.log <<_ACEOF
1840 This file contains any messages produced by compilers while
1841 running configure, to aid debugging if configure makes a mistake.
1842
1843 It was created by zfs $as_me 0.7.11, which was
1844 generated by GNU Autoconf 2.63. Invocation command line was
1845
1846 $ $0 $@
1847
1848 _ACEOF
1849 exec 5>>config.log
1850 {
1851 cat <<_ASUNAME
1852 ## --------- ##
1853 ## Platform. ##
1854 ## --------- ##
1855
1856 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1857 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1858 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1859 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1860 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1861
1862 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1863 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1864
1865 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1866 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1867 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1868 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1869 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1870 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1871 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1872
1873 _ASUNAME
1874
1875 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1876 for as_dir in $PATH
1877 do
1878 IFS=$as_save_IFS
1879 test -z "$as_dir" && as_dir=.
1880 $as_echo "PATH: $as_dir"
1881 done
1882 IFS=$as_save_IFS
1883
1884 } >&5
1885
1886 cat >&5 <<_ACEOF
1887
1888
1889 ## ----------- ##
1890 ## Core tests. ##
1891 ## ----------- ##
1892
1893 _ACEOF
1894
1895
1896 # Keep a trace of the command line.
1897 # Strip out --no-create and --no-recursion so they do not pile up.
1898 # Strip out --silent because we don't want to record it for future runs.
1899 # Also quote any args containing shell meta-characters.
1900 # Make two passes to allow for proper duplicate-argument suppression.
1901 ac_configure_args=
1902 ac_configure_args0=
1903 ac_configure_args1=
1904 ac_must_keep_next=false
1905 for ac_pass in 1 2
1906 do
1907 for ac_arg
1908 do
1909 case $ac_arg in
1910 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1911 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1912 | -silent | --silent | --silen | --sile | --sil)
1913 continue ;;
1914 *\'*)
1915 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1916 esac
1917 case $ac_pass in
1918 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1919 2)
1920 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1921 if test $ac_must_keep_next = true; then
1922 ac_must_keep_next=false # Got value, back to normal.
1923 else
1924 case $ac_arg in
1925 *=* | --config-cache | -C | -disable-* | --disable-* \
1926 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1927 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1928 | -with-* | --with-* | -without-* | --without-* | --x)
1929 case "$ac_configure_args0 " in
1930 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1931 esac
1932 ;;
1933 -* ) ac_must_keep_next=true ;;
1934 esac
1935 fi
1936 ac_configure_args="$ac_configure_args '$ac_arg'"
1937 ;;
1938 esac
1939 done
1940 done
1941 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1942 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1943
1944 # When interrupted or exit'd, cleanup temporary files, and complete
1945 # config.log. We remove comments because anyway the quotes in there
1946 # would cause problems or look ugly.
1947 # WARNING: Use '\'' to represent an apostrophe within the trap.
1948 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1949 trap 'exit_status=$?
1950 # Save into config.log some information that might help in debugging.
1951 {
1952 echo
1953
1954 cat <<\_ASBOX
1955 ## ---------------- ##
1956 ## Cache variables. ##
1957 ## ---------------- ##
1958 _ASBOX
1959 echo
1960 # The following way of writing the cache mishandles newlines in values,
1961 (
1962 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1963 eval ac_val=\$$ac_var
1964 case $ac_val in #(
1965 *${as_nl}*)
1966 case $ac_var in #(
1967 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
1968 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1969 esac
1970 case $ac_var in #(
1971 _ | IFS | as_nl) ;; #(
1972 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1973 *) $as_unset $ac_var ;;
1974 esac ;;
1975 esac
1976 done
1977 (set) 2>&1 |
1978 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1979 *${as_nl}ac_space=\ *)
1980 sed -n \
1981 "s/'\''/'\''\\\\'\'''\''/g;
1982 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1983 ;; #(
1984 *)
1985 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1986 ;;
1987 esac |
1988 sort
1989 )
1990 echo
1991
1992 cat <<\_ASBOX
1993 ## ----------------- ##
1994 ## Output variables. ##
1995 ## ----------------- ##
1996 _ASBOX
1997 echo
1998 for ac_var in $ac_subst_vars
1999 do
2000 eval ac_val=\$$ac_var
2001 case $ac_val in
2002 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2003 esac
2004 $as_echo "$ac_var='\''$ac_val'\''"
2005 done | sort
2006 echo
2007
2008 if test -n "$ac_subst_files"; then
2009 cat <<\_ASBOX
2010 ## ------------------- ##
2011 ## File substitutions. ##
2012 ## ------------------- ##
2013 _ASBOX
2014 echo
2015 for ac_var in $ac_subst_files
2016 do
2017 eval ac_val=\$$ac_var
2018 case $ac_val in
2019 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2020 esac
2021 $as_echo "$ac_var='\''$ac_val'\''"
2022 done | sort
2023 echo
2024 fi
2025
2026 if test -s confdefs.h; then
2027 cat <<\_ASBOX
2028 ## ----------- ##
2029 ## confdefs.h. ##
2030 ## ----------- ##
2031 _ASBOX
2032 echo
2033 cat confdefs.h
2034 echo
2035 fi
2036 test "$ac_signal" != 0 &&
2037 $as_echo "$as_me: caught signal $ac_signal"
2038 $as_echo "$as_me: exit $exit_status"
2039 } >&5
2040 rm -f core *.core core.conftest.* &&
2041 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2042 exit $exit_status
2043 ' 0
2044 for ac_signal in 1 2 13 15; do
2045 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
2046 done
2047 ac_signal=0
2048
2049 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2050 rm -f -r conftest* confdefs.h
2051
2052 # Predefined preprocessor variables.
2053
2054 cat >>confdefs.h <<_ACEOF
2055 #define PACKAGE_NAME "$PACKAGE_NAME"
2056 _ACEOF
2057
2058
2059 cat >>confdefs.h <<_ACEOF
2060 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2061 _ACEOF
2062
2063
2064 cat >>confdefs.h <<_ACEOF
2065 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2066 _ACEOF
2067
2068
2069 cat >>confdefs.h <<_ACEOF
2070 #define PACKAGE_STRING "$PACKAGE_STRING"
2071 _ACEOF
2072
2073
2074 cat >>confdefs.h <<_ACEOF
2075 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2076 _ACEOF
2077
2078
2079 # Let the site file select an alternate cache file if it wants to.
2080 # Prefer an explicitly selected file to automatically selected ones.
2081 ac_site_file1=NONE
2082 ac_site_file2=NONE
2083 if test -n "$CONFIG_SITE"; then
2084 ac_site_file1=$CONFIG_SITE
2085 elif test "x$prefix" != xNONE; then
2086 ac_site_file1=$prefix/share/config.site
2087 ac_site_file2=$prefix/etc/config.site
2088 else
2089 ac_site_file1=$ac_default_prefix/share/config.site
2090 ac_site_file2=$ac_default_prefix/etc/config.site
2091 fi
2092 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2093 do
2094 test "x$ac_site_file" = xNONE && continue
2095 if test -r "$ac_site_file"; then
2096 { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
2097 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2098 sed 's/^/| /' "$ac_site_file" >&5
2099 . "$ac_site_file"
2100 fi
2101 done
2102
2103 if test -r "$cache_file"; then
2104 # Some versions of bash will fail to source /dev/null (special
2105 # files actually), so we avoid doing that.
2106 if test -f "$cache_file"; then
2107 { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
2108 $as_echo "$as_me: loading cache $cache_file" >&6;}
2109 case $cache_file in
2110 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2111 *) . "./$cache_file";;
2112 esac
2113 fi
2114 else
2115 { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
2116 $as_echo "$as_me: creating cache $cache_file" >&6;}
2117 >$cache_file
2118 fi
2119
2120 # Check that the precious variables saved in the cache have kept the same
2121 # value.
2122 ac_cache_corrupted=false
2123 for ac_var in $ac_precious_vars; do
2124 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2125 eval ac_new_set=\$ac_env_${ac_var}_set
2126 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2127 eval ac_new_val=\$ac_env_${ac_var}_value
2128 case $ac_old_set,$ac_new_set in
2129 set,)
2130 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2131 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2132 ac_cache_corrupted=: ;;
2133 ,set)
2134 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
2135 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2136 ac_cache_corrupted=: ;;
2137 ,);;
2138 *)
2139 if test "x$ac_old_val" != "x$ac_new_val"; then
2140 # differences in whitespace do not lead to failure.
2141 ac_old_val_w=`echo x $ac_old_val`
2142 ac_new_val_w=`echo x $ac_new_val`
2143 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2144 { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
2145 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2146 ac_cache_corrupted=:
2147 else
2148 { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2149 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2150 eval $ac_var=\$ac_old_val
2151 fi
2152 { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
2153 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2154 { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
2155 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2156 fi;;
2157 esac
2158 # Pass precious variables to config.status.
2159 if test "$ac_new_set" = set; then
2160 case $ac_new_val in
2161 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2162 *) ac_arg=$ac_var=$ac_new_val ;;
2163 esac
2164 case " $ac_configure_args " in
2165 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2166 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2167 esac
2168 fi
2169 done
2170 if $ac_cache_corrupted; then
2171 { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2172 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2173 { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2174 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2175 { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2176 $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2177 { (exit 1); exit 1; }; }
2178 fi
2179
2180
2181
2182
2183
2184
2185
2186
2187
2188
2189
2190
2191
2192
2193
2194
2195
2196
2197
2198
2199
2200
2201
2202
2203
2204 ac_ext=c
2205 ac_cpp='$CPP $CPPFLAGS'
2206 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2207 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2208 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2209
2210
2211 ac_ext=c
2212 ac_cpp='$CPP $CPPFLAGS'
2213 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2214 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2215 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2216
2217
2218
2219
2220
2221
2222 for ac_prog in gawk mawk nawk awk
2223 do
2224 # Extract the first word of "$ac_prog", so it can be a program name with args.
2225 set dummy $ac_prog; ac_word=$2
2226 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2227 $as_echo_n "checking for $ac_word... " >&6; }
2228 if test "${ac_cv_prog_AWK+set}" = set; then
2229 $as_echo_n "(cached) " >&6
2230 else
2231 if test -n "$AWK"; then
2232 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2233 else
2234 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2235 for as_dir in $PATH
2236 do
2237 IFS=$as_save_IFS
2238 test -z "$as_dir" && as_dir=.
2239 for ac_exec_ext in '' $ac_executable_extensions; do
2240 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2241 ac_cv_prog_AWK="$ac_prog"
2242 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2243 break 2
2244 fi
2245 done
2246 done
2247 IFS=$as_save_IFS
2248
2249 fi
2250 fi
2251 AWK=$ac_cv_prog_AWK
2252 if test -n "$AWK"; then
2253 { $as_echo "$as_me:$LINENO: result: $AWK" >&5
2254 $as_echo "$AWK" >&6; }
2255 else
2256 { $as_echo "$as_me:$LINENO: result: no" >&5
2257 $as_echo "no" >&6; }
2258 fi
2259
2260
2261 test -n "$AWK" && break
2262 done
2263
2264 { $as_echo "$as_me:$LINENO: checking metadata" >&5
2265 $as_echo_n "checking metadata... " >&6; }
2266
2267 META="$srcdir/META"
2268 _zfs_ac_meta_type="none"
2269 if test -f "$META"; then
2270 _zfs_ac_meta_type="META file"
2271
2272 ZFS_META_NAME=`$AWK -F ':[ \t]+' '$1 ~ /^ *(Name|Project|Package)$/ { print $2; exit }' $META`;
2273 if test -n "$ZFS_META_NAME"; then
2274
2275 cat >>confdefs.h <<_ACEOF
2276 #define ZFS_META_NAME "$ZFS_META_NAME"
2277 _ACEOF
2278
2279
2280 fi
2281
2282 ZFS_META_VERSION=`$AWK -F ':[ \t]+' '$1 ~ /^ *Version$/ { print $2; exit }' $META`;
2283 if test -n "$ZFS_META_VERSION"; then
2284
2285 cat >>confdefs.h <<_ACEOF
2286 #define ZFS_META_VERSION "$ZFS_META_VERSION"
2287 _ACEOF
2288
2289
2290 fi
2291
2292 ZFS_META_RELEASE=`$AWK -F ':[ \t]+' '$1 ~ /^ *Release$/ { print $2; exit }' $META`;
2293 if test ! -f ".nogitrelease" && git rev-parse --git-dir > /dev/null 2>&1; then
2294 _match="${ZFS_META_NAME}-${ZFS_META_VERSION}"
2295 _alias=$(git describe --match=${_match} 2>/dev/null)
2296 _release=$(echo ${_alias}|cut -f3- -d'-'|sed 's/-/_/g')
2297 if test -n "${_release}"; then
2298 ZFS_META_RELEASE=${_release}
2299 _zfs_ac_meta_type="git describe"
2300 else
2301 _match="${ZFS_META_NAME}-${ZFS_META_VERSION}-${ZFS_META_RELEASE}"
2302 _alias=$(git describe --match=${_match} 2>/dev/null)
2303 _release=$(echo ${_alias}|cut -f3- -d'-'|sed 's/-/_/g')
2304 if test -n "${_release}"; then
2305 ZFS_META_RELEASE=${_release}
2306 _zfs_ac_meta_type="git describe"
2307 fi
2308 fi
2309 fi
2310
2311 if test -n "$ZFS_META_RELEASE"; then
2312
2313 cat >>confdefs.h <<_ACEOF
2314 #define ZFS_META_RELEASE "$ZFS_META_RELEASE"
2315 _ACEOF
2316
2317
2318
2319 RELEASE="$ZFS_META_RELEASE"
2320
2321 fi
2322
2323 ZFS_META_LICENSE=`$AWK -F ':[ \t]+' '$1 ~ /^ *License$/ { print $2; exit }' $META`;
2324 if test -n "$ZFS_META_LICENSE"; then
2325
2326 cat >>confdefs.h <<_ACEOF
2327 #define ZFS_META_LICENSE "$ZFS_META_LICENSE"
2328 _ACEOF
2329
2330
2331 fi
2332
2333 if test -n "$ZFS_META_NAME" -a -n "$ZFS_META_VERSION"; then
2334 ZFS_META_ALIAS="$ZFS_META_NAME-$ZFS_META_VERSION"
2335 test -n "$ZFS_META_RELEASE" &&
2336 ZFS_META_ALIAS="$ZFS_META_ALIAS-$ZFS_META_RELEASE"
2337
2338 cat >>confdefs.h <<_ACEOF
2339 #define ZFS_META_ALIAS "$ZFS_META_ALIAS"
2340 _ACEOF
2341
2342
2343 fi
2344
2345 ZFS_META_DATA=`$AWK -F ':[ \t]+' '$1 ~ /^ *Date$/ { print $2; exit }' $META`;
2346 if test -n "$ZFS_META_DATA"; then
2347
2348 cat >>confdefs.h <<_ACEOF
2349 #define ZFS_META_DATA "$ZFS_META_DATA"
2350 _ACEOF
2351
2352
2353 fi
2354
2355 ZFS_META_AUTHOR=`$AWK -F ':[ \t]+' '$1 ~ /^ *Author$/ { print $2; exit }' $META`;
2356 if test -n "$ZFS_META_AUTHOR"; then
2357
2358 cat >>confdefs.h <<_ACEOF
2359 #define ZFS_META_AUTHOR "$ZFS_META_AUTHOR"
2360 _ACEOF
2361
2362
2363 fi
2364
2365
2366 ZFS_META_LT_CURRENT=`$AWK -F ':[ \t]+' '$1 ~ /^ *LT_Current$/ { print $2; exit }' $META`;
2367 ZFS_META_LT_REVISION=`$AWK -F ':[ \t]+' '$1 ~ /^ *LT_Revision$/ { print $2; exit }' $META`;
2368 ZFS_META_LT_AGE=`$AWK -F ':[ \t]+' '$1 ~ /^ *LT_Age$/ { print $2; exit }' $META`;
2369 if test -n "$ZFS_META_LT_CURRENT" \
2370 -o -n "$ZFS_META_LT_REVISION" \
2371 -o -n "$ZFS_META_LT_AGE"; then
2372 test -n "$ZFS_META_LT_CURRENT" || ZFS_META_LT_CURRENT="0"
2373 test -n "$ZFS_META_LT_REVISION" || ZFS_META_LT_REVISION="0"
2374 test -n "$ZFS_META_LT_AGE" || ZFS_META_LT_AGE="0"
2375
2376 cat >>confdefs.h <<_ACEOF
2377 #define ZFS_META_LT_CURRENT "$ZFS_META_LT_CURRENT"
2378 _ACEOF
2379
2380
2381 cat >>confdefs.h <<_ACEOF
2382 #define ZFS_META_LT_REVISION "$ZFS_META_LT_REVISION"
2383 _ACEOF
2384
2385
2386 cat >>confdefs.h <<_ACEOF
2387 #define ZFS_META_LT_AGE "$ZFS_META_LT_AGE"
2388 _ACEOF
2389
2390
2391
2392
2393 fi
2394 fi
2395
2396 { $as_echo "$as_me:$LINENO: result: $_zfs_ac_meta_type" >&5
2397 $as_echo "$_zfs_ac_meta_type" >&6; }
2398
2399
2400 ac_aux_dir=
2401 for ac_dir in config "$srcdir"/config; do
2402 if test -f "$ac_dir/install-sh"; then
2403 ac_aux_dir=$ac_dir
2404 ac_install_sh="$ac_aux_dir/install-sh -c"
2405 break
2406 elif test -f "$ac_dir/install.sh"; then
2407 ac_aux_dir=$ac_dir
2408 ac_install_sh="$ac_aux_dir/install.sh -c"
2409 break
2410 elif test -f "$ac_dir/shtool"; then
2411 ac_aux_dir=$ac_dir
2412 ac_install_sh="$ac_aux_dir/shtool install -c"
2413 break
2414 fi
2415 done
2416 if test -z "$ac_aux_dir"; then
2417 { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&5
2418 $as_echo "$as_me: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&2;}
2419 { (exit 1); exit 1; }; }
2420 fi
2421
2422 # These three variables are undocumented and unsupported,
2423 # and are intended to be withdrawn in a future Autoconf release.
2424 # They can cause serious problems if a builder's source tree is in a directory
2425 # whose full name contains unusual characters.
2426 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2427 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2428 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2429
2430
2431
2432 # Make sure we can run config.sub.
2433 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2434 { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2435 $as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2436 { (exit 1); exit 1; }; }
2437
2438 { $as_echo "$as_me:$LINENO: checking build system type" >&5
2439 $as_echo_n "checking build system type... " >&6; }
2440 if test "${ac_cv_build+set}" = set; then
2441 $as_echo_n "(cached) " >&6
2442 else
2443 ac_build_alias=$build_alias
2444 test "x$ac_build_alias" = x &&
2445 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2446 test "x$ac_build_alias" = x &&
2447 { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2448 $as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2449 { (exit 1); exit 1; }; }
2450 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2451 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2452 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2453 { (exit 1); exit 1; }; }
2454
2455 fi
2456 { $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2457 $as_echo "$ac_cv_build" >&6; }
2458 case $ac_cv_build in
2459 *-*-*) ;;
2460 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2461 $as_echo "$as_me: error: invalid value of canonical build" >&2;}
2462 { (exit 1); exit 1; }; };;
2463 esac
2464 build=$ac_cv_build
2465 ac_save_IFS=$IFS; IFS='-'
2466 set x $ac_cv_build
2467 shift
2468 build_cpu=$1
2469 build_vendor=$2
2470 shift; shift
2471 # Remember, the first character of IFS is used to create $*,
2472 # except with old shells:
2473 build_os=$*
2474 IFS=$ac_save_IFS
2475 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2476
2477
2478 { $as_echo "$as_me:$LINENO: checking host system type" >&5
2479 $as_echo_n "checking host system type... " >&6; }
2480 if test "${ac_cv_host+set}" = set; then
2481 $as_echo_n "(cached) " >&6
2482 else
2483 if test "x$host_alias" = x; then
2484 ac_cv_host=$ac_cv_build
2485 else
2486 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2487 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2488 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2489 { (exit 1); exit 1; }; }
2490 fi
2491
2492 fi
2493 { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2494 $as_echo "$ac_cv_host" >&6; }
2495 case $ac_cv_host in
2496 *-*-*) ;;
2497 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2498 $as_echo "$as_me: error: invalid value of canonical host" >&2;}
2499 { (exit 1); exit 1; }; };;
2500 esac
2501 host=$ac_cv_host
2502 ac_save_IFS=$IFS; IFS='-'
2503 set x $ac_cv_host
2504 shift
2505 host_cpu=$1
2506 host_vendor=$2
2507 shift; shift
2508 # Remember, the first character of IFS is used to create $*,
2509 # except with old shells:
2510 host_os=$*
2511 IFS=$ac_save_IFS
2512 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2513
2514
2515 { $as_echo "$as_me:$LINENO: checking target system type" >&5
2516 $as_echo_n "checking target system type... " >&6; }
2517 if test "${ac_cv_target+set}" = set; then
2518 $as_echo_n "(cached) " >&6
2519 else
2520 if test "x$target_alias" = x; then
2521 ac_cv_target=$ac_cv_host
2522 else
2523 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2524 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2525 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2526 { (exit 1); exit 1; }; }
2527 fi
2528
2529 fi
2530 { $as_echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2531 $as_echo "$ac_cv_target" >&6; }
2532 case $ac_cv_target in
2533 *-*-*) ;;
2534 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2535 $as_echo "$as_me: error: invalid value of canonical target" >&2;}
2536 { (exit 1); exit 1; }; };;
2537 esac
2538 target=$ac_cv_target
2539 ac_save_IFS=$IFS; IFS='-'
2540 set x $ac_cv_target
2541 shift
2542 target_cpu=$1
2543 target_vendor=$2
2544 shift; shift
2545 # Remember, the first character of IFS is used to create $*,
2546 # except with old shells:
2547 target_os=$*
2548 IFS=$ac_save_IFS
2549 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2550
2551
2552 # The aliases save the names the user supplied, while $host etc.
2553 # will get canonicalized.
2554 test -n "$target_alias" &&
2555 test "$program_prefix$program_suffix$program_transform_name" = \
2556 NONENONEs,x,x, &&
2557 program_prefix=${target_alias}-
2558
2559 { $as_echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
2560 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2561 # Check whether --enable-maintainer-mode was given.
2562 if test "${enable_maintainer_mode+set}" = set; then
2563 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2564 else
2565 USE_MAINTAINER_MODE=no
2566 fi
2567
2568 { $as_echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
2569 $as_echo "$USE_MAINTAINER_MODE" >&6; }
2570 if test $USE_MAINTAINER_MODE = yes; then
2571 MAINTAINER_MODE_TRUE=
2572 MAINTAINER_MODE_FALSE='#'
2573 else
2574 MAINTAINER_MODE_TRUE='#'
2575 MAINTAINER_MODE_FALSE=
2576 fi
2577
2578 MAINT=$MAINTAINER_MODE_TRUE
2579
2580
2581 # Check whether --enable-silent-rules was given.
2582 if test "${enable_silent_rules+set}" = set; then
2583 enableval=$enable_silent_rules;
2584 fi
2585
2586 case $enable_silent_rules in
2587 yes) AM_DEFAULT_VERBOSITY=0;;
2588 no) AM_DEFAULT_VERBOSITY=1;;
2589 *) AM_DEFAULT_VERBOSITY=0;;
2590 esac
2591 AM_BACKSLASH='\'
2592
2593 am__api_version='1.11'
2594
2595 # Find a good install program. We prefer a C program (faster),
2596 # so one script is as good as another. But avoid the broken or
2597 # incompatible versions:
2598 # SysV /etc/install, /usr/sbin/install
2599 # SunOS /usr/etc/install
2600 # IRIX /sbin/install
2601 # AIX /bin/install
2602 # AmigaOS /C/install, which installs bootblocks on floppy discs
2603 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2604 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2605 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2606 # OS/2's system install, which has a completely different semantic
2607 # ./install, which can be erroneously created by make from ./install.sh.
2608 # Reject install programs that cannot install multiple files.
2609 { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2610 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2611 if test -z "$INSTALL"; then
2612 if test "${ac_cv_path_install+set}" = set; then
2613 $as_echo_n "(cached) " >&6
2614 else
2615 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2616 for as_dir in $PATH
2617 do
2618 IFS=$as_save_IFS
2619 test -z "$as_dir" && as_dir=.
2620 # Account for people who put trailing slashes in PATH elements.
2621 case $as_dir/ in
2622 ./ | .// | /cC/* | \
2623 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2624 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2625 /usr/ucb/* ) ;;
2626 *)
2627 # OSF1 and SCO ODT 3.0 have their own names for install.
2628 # Don't use installbsd from OSF since it installs stuff as root
2629 # by default.
2630 for ac_prog in ginstall scoinst install; do
2631 for ac_exec_ext in '' $ac_executable_extensions; do
2632 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2633 if test $ac_prog = install &&
2634 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2635 # AIX install. It has an incompatible calling convention.
2636 :
2637 elif test $ac_prog = install &&
2638 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2639 # program-specific install script used by HP pwplus--don't use.
2640 :
2641 else
2642 rm -rf conftest.one conftest.two conftest.dir
2643 echo one > conftest.one
2644 echo two > conftest.two
2645 mkdir conftest.dir
2646 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2647 test -s conftest.one && test -s conftest.two &&
2648 test -s conftest.dir/conftest.one &&
2649 test -s conftest.dir/conftest.two
2650 then
2651 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2652 break 3
2653 fi
2654 fi
2655 fi
2656 done
2657 done
2658 ;;
2659 esac
2660
2661 done
2662 IFS=$as_save_IFS
2663
2664 rm -rf conftest.one conftest.two conftest.dir
2665
2666 fi
2667 if test "${ac_cv_path_install+set}" = set; then
2668 INSTALL=$ac_cv_path_install
2669 else
2670 # As a last resort, use the slow shell script. Don't cache a
2671 # value for INSTALL within a source directory, because that will
2672 # break other packages using the cache if that directory is
2673 # removed, or if the value is a relative name.
2674 INSTALL=$ac_install_sh
2675 fi
2676 fi
2677 { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
2678 $as_echo "$INSTALL" >&6; }
2679
2680 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2681 # It thinks the first close brace ends the variable substitution.
2682 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2683
2684 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2685
2686 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2687
2688 { $as_echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2689 $as_echo_n "checking whether build environment is sane... " >&6; }
2690 # Just in case
2691 sleep 1
2692 echo timestamp > conftest.file
2693 # Reject unsafe characters in $srcdir or the absolute working directory
2694 # name. Accept space and tab only in the latter.
2695 am_lf='
2696 '
2697 case `pwd` in
2698 *[\\\"\#\$\&\'\`$am_lf]*)
2699 { { $as_echo "$as_me:$LINENO: error: unsafe absolute working directory name" >&5
2700 $as_echo "$as_me: error: unsafe absolute working directory name" >&2;}
2701 { (exit 1); exit 1; }; };;
2702 esac
2703 case $srcdir in
2704 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2705 { { $as_echo "$as_me:$LINENO: error: unsafe srcdir value: \`$srcdir'" >&5
2706 $as_echo "$as_me: error: unsafe srcdir value: \`$srcdir'" >&2;}
2707 { (exit 1); exit 1; }; };;
2708 esac
2709
2710 # Do `set' in a subshell so we don't clobber the current shell's
2711 # arguments. Must try -L first in case configure is actually a
2712 # symlink; some systems play weird games with the mod time of symlinks
2713 # (eg FreeBSD returns the mod time of the symlink's containing
2714 # directory).
2715 if (
2716 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2717 if test "$*" = "X"; then
2718 # -L didn't work.
2719 set X `ls -t "$srcdir/configure" conftest.file`
2720 fi
2721 rm -f conftest.file
2722 if test "$*" != "X $srcdir/configure conftest.file" \
2723 && test "$*" != "X conftest.file $srcdir/configure"; then
2724
2725 # If neither matched, then we have a broken ls. This can happen
2726 # if, for instance, CONFIG_SHELL is bash and it inherits a
2727 # broken ls alias from the environment. This has actually
2728 # happened. Such a system could not be considered "sane".
2729 { { $as_echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2730 alias in your environment" >&5
2731 $as_echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2732 alias in your environment" >&2;}
2733 { (exit 1); exit 1; }; }
2734 fi
2735
2736 test "$2" = conftest.file
2737 )
2738 then
2739 # Ok.
2740 :
2741 else
2742 { { $as_echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2743 Check your system clock" >&5
2744 $as_echo "$as_me: error: newly created file is older than distributed files!
2745 Check your system clock" >&2;}
2746 { (exit 1); exit 1; }; }
2747 fi
2748 { $as_echo "$as_me:$LINENO: result: yes" >&5
2749 $as_echo "yes" >&6; }
2750 test "$program_prefix" != NONE &&
2751 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2752 # Use a double $ so make ignores it.
2753 test "$program_suffix" != NONE &&
2754 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2755 # Double any \ or $.
2756 # By default was `s,x,x', remove it if useless.
2757 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2758 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2759
2760 # expand $ac_aux_dir to an absolute path
2761 am_aux_dir=`cd $ac_aux_dir && pwd`
2762
2763 if test x"${MISSING+set}" != xset; then
2764 case $am_aux_dir in
2765 *\ * | *\ *)
2766 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2767 *)
2768 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2769 esac
2770 fi
2771 # Use eval to expand $SHELL
2772 if eval "$MISSING --run true"; then
2773 am_missing_run="$MISSING --run "
2774 else
2775 am_missing_run=
2776 { $as_echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2777 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2778 fi
2779
2780 if test x"${install_sh}" != xset; then
2781 case $am_aux_dir in
2782 *\ * | *\ *)
2783 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2784 *)
2785 install_sh="\${SHELL} $am_aux_dir/install-sh"
2786 esac
2787 fi
2788
2789 # Installed binaries are usually stripped using `strip' when the user
2790 # run `make install-strip'. However `strip' might not be the right
2791 # tool to use in cross-compilation environments, therefore Automake
2792 # will honor the `STRIP' environment variable to overrule this program.
2793 if test "$cross_compiling" != no; then
2794 if test -n "$ac_tool_prefix"; then
2795 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2796 set dummy ${ac_tool_prefix}strip; ac_word=$2
2797 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2798 $as_echo_n "checking for $ac_word... " >&6; }
2799 if test "${ac_cv_prog_STRIP+set}" = set; then
2800 $as_echo_n "(cached) " >&6
2801 else
2802 if test -n "$STRIP"; then
2803 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2804 else
2805 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2806 for as_dir in $PATH
2807 do
2808 IFS=$as_save_IFS
2809 test -z "$as_dir" && as_dir=.
2810 for ac_exec_ext in '' $ac_executable_extensions; do
2811 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2812 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2813 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2814 break 2
2815 fi
2816 done
2817 done
2818 IFS=$as_save_IFS
2819
2820 fi
2821 fi
2822 STRIP=$ac_cv_prog_STRIP
2823 if test -n "$STRIP"; then
2824 { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
2825 $as_echo "$STRIP" >&6; }
2826 else
2827 { $as_echo "$as_me:$LINENO: result: no" >&5
2828 $as_echo "no" >&6; }
2829 fi
2830
2831
2832 fi
2833 if test -z "$ac_cv_prog_STRIP"; then
2834 ac_ct_STRIP=$STRIP
2835 # Extract the first word of "strip", so it can be a program name with args.
2836 set dummy strip; ac_word=$2
2837 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2838 $as_echo_n "checking for $ac_word... " >&6; }
2839 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2840 $as_echo_n "(cached) " >&6
2841 else
2842 if test -n "$ac_ct_STRIP"; then
2843 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2844 else
2845 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2846 for as_dir in $PATH
2847 do
2848 IFS=$as_save_IFS
2849 test -z "$as_dir" && as_dir=.
2850 for ac_exec_ext in '' $ac_executable_extensions; do
2851 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2852 ac_cv_prog_ac_ct_STRIP="strip"
2853 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2854 break 2
2855 fi
2856 done
2857 done
2858 IFS=$as_save_IFS
2859
2860 fi
2861 fi
2862 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2863 if test -n "$ac_ct_STRIP"; then
2864 { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2865 $as_echo "$ac_ct_STRIP" >&6; }
2866 else
2867 { $as_echo "$as_me:$LINENO: result: no" >&5
2868 $as_echo "no" >&6; }
2869 fi
2870
2871 if test "x$ac_ct_STRIP" = x; then
2872 STRIP=":"
2873 else
2874 case $cross_compiling:$ac_tool_warned in
2875 yes:)
2876 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2877 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2878 ac_tool_warned=yes ;;
2879 esac
2880 STRIP=$ac_ct_STRIP
2881 fi
2882 else
2883 STRIP="$ac_cv_prog_STRIP"
2884 fi
2885
2886 fi
2887 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2888
2889 { $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2890 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2891 if test -z "$MKDIR_P"; then
2892 if test "${ac_cv_path_mkdir+set}" = set; then
2893 $as_echo_n "(cached) " >&6
2894 else
2895 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2896 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2897 do
2898 IFS=$as_save_IFS
2899 test -z "$as_dir" && as_dir=.
2900 for ac_prog in mkdir gmkdir; do
2901 for ac_exec_ext in '' $ac_executable_extensions; do
2902 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2903 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2904 'mkdir (GNU coreutils) '* | \
2905 'mkdir (coreutils) '* | \
2906 'mkdir (fileutils) '4.1*)
2907 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2908 break 3;;
2909 esac
2910 done
2911 done
2912 done
2913 IFS=$as_save_IFS
2914
2915 fi
2916
2917 if test "${ac_cv_path_mkdir+set}" = set; then
2918 MKDIR_P="$ac_cv_path_mkdir -p"
2919 else
2920 # As a last resort, use the slow shell script. Don't cache a
2921 # value for MKDIR_P within a source directory, because that will
2922 # break other packages using the cache if that directory is
2923 # removed, or if the value is a relative name.
2924 test -d ./--version && rmdir ./--version
2925 MKDIR_P="$ac_install_sh -d"
2926 fi
2927 fi
2928 { $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2929 $as_echo "$MKDIR_P" >&6; }
2930
2931 mkdir_p="$MKDIR_P"
2932 case $mkdir_p in
2933 [\\/$]* | ?:[\\/]*) ;;
2934 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2935 esac
2936
2937 { $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2938 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2939 set x ${MAKE-make}
2940 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2941 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2942 $as_echo_n "(cached) " >&6
2943 else
2944 cat >conftest.make <<\_ACEOF
2945 SHELL = /bin/sh
2946 all:
2947 @echo '@@@%%%=$(MAKE)=@@@%%%'
2948 _ACEOF
2949 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2950 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2951 *@@@%%%=?*=@@@%%%*)
2952 eval ac_cv_prog_make_${ac_make}_set=yes;;
2953 *)
2954 eval ac_cv_prog_make_${ac_make}_set=no;;
2955 esac
2956 rm -f conftest.make
2957 fi
2958 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2959 { $as_echo "$as_me:$LINENO: result: yes" >&5
2960 $as_echo "yes" >&6; }
2961 SET_MAKE=
2962 else
2963 { $as_echo "$as_me:$LINENO: result: no" >&5
2964 $as_echo "no" >&6; }
2965 SET_MAKE="MAKE=${MAKE-make}"
2966 fi
2967
2968 rm -rf .tst 2>/dev/null
2969 mkdir .tst 2>/dev/null
2970 if test -d .tst; then
2971 am__leading_dot=.
2972 else
2973 am__leading_dot=_
2974 fi
2975 rmdir .tst 2>/dev/null
2976
2977 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2978 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2979 # is not polluted with repeated "-I."
2980 am__isrc=' -I$(srcdir)'
2981 # test to see if srcdir already configured
2982 if test -f $srcdir/config.status; then
2983 { { $as_echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2984 $as_echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2985 { (exit 1); exit 1; }; }
2986 fi
2987 fi
2988
2989 # test whether we have cygpath
2990 if test -z "$CYGPATH_W"; then
2991 if (cygpath --version) >/dev/null 2>/dev/null; then
2992 CYGPATH_W='cygpath -w'
2993 else
2994 CYGPATH_W=echo
2995 fi
2996 fi
2997
2998
2999 # Define the identity of the package.
3000 PACKAGE='zfs'
3001 VERSION='0.7.11'
3002
3003
3004 cat >>confdefs.h <<_ACEOF
3005 #define PACKAGE "$PACKAGE"
3006 _ACEOF
3007
3008
3009 cat >>confdefs.h <<_ACEOF
3010 #define VERSION "$VERSION"
3011 _ACEOF
3012
3013 # Some tools Automake needs.
3014
3015 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3016
3017
3018 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3019
3020
3021 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3022
3023
3024 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3025
3026
3027 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3028
3029 # We need awk for the "check" target. The system "awk" is bad on
3030 # some platforms.
3031 # Always define AMTAR for backward compatibility.
3032
3033 AMTAR=${AMTAR-"${am_missing_run}tar"}
3034
3035 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3036
3037
3038
3039
3040
3041 ac_config_headers="$ac_config_headers zfs_config.h"
3042
3043
3044 # Find a good install program. We prefer a C program (faster),
3045 # so one script is as good as another. But avoid the broken or
3046 # incompatible versions:
3047 # SysV /etc/install, /usr/sbin/install
3048 # SunOS /usr/etc/install
3049 # IRIX /sbin/install
3050 # AIX /bin/install
3051 # AmigaOS /C/install, which installs bootblocks on floppy discs
3052 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3053 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3054 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3055 # OS/2's system install, which has a completely different semantic
3056 # ./install, which can be erroneously created by make from ./install.sh.
3057 # Reject install programs that cannot install multiple files.
3058 { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3059 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3060 if test -z "$INSTALL"; then
3061 if test "${ac_cv_path_install+set}" = set; then
3062 $as_echo_n "(cached) " >&6
3063 else
3064 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3065 for as_dir in $PATH
3066 do
3067 IFS=$as_save_IFS
3068 test -z "$as_dir" && as_dir=.
3069 # Account for people who put trailing slashes in PATH elements.
3070 case $as_dir/ in
3071 ./ | .// | /cC/* | \
3072 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3073 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3074 /usr/ucb/* ) ;;
3075 *)
3076 # OSF1 and SCO ODT 3.0 have their own names for install.
3077 # Don't use installbsd from OSF since it installs stuff as root
3078 # by default.
3079 for ac_prog in ginstall scoinst install; do
3080 for ac_exec_ext in '' $ac_executable_extensions; do
3081 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3082 if test $ac_prog = install &&
3083 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3084 # AIX install. It has an incompatible calling convention.
3085 :
3086 elif test $ac_prog = install &&
3087 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3088 # program-specific install script used by HP pwplus--don't use.
3089 :
3090 else
3091 rm -rf conftest.one conftest.two conftest.dir
3092 echo one > conftest.one
3093 echo two > conftest.two
3094 mkdir conftest.dir
3095 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3096 test -s conftest.one && test -s conftest.two &&
3097 test -s conftest.dir/conftest.one &&
3098 test -s conftest.dir/conftest.two
3099 then
3100 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3101 break 3
3102 fi
3103 fi
3104 fi
3105 done
3106 done
3107 ;;
3108 esac
3109
3110 done
3111 IFS=$as_save_IFS
3112
3113 rm -rf conftest.one conftest.two conftest.dir
3114
3115 fi
3116 if test "${ac_cv_path_install+set}" = set; then
3117 INSTALL=$ac_cv_path_install
3118 else
3119 # As a last resort, use the slow shell script. Don't cache a
3120 # value for INSTALL within a source directory, because that will
3121 # break other packages using the cache if that directory is
3122 # removed, or if the value is a relative name.
3123 INSTALL=$ac_install_sh
3124 fi
3125 fi
3126 { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
3127 $as_echo "$INSTALL" >&6; }
3128
3129 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3130 # It thinks the first close brace ends the variable substitution.
3131 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3132
3133 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3134
3135 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3136
3137 ac_ext=c
3138 ac_cpp='$CPP $CPPFLAGS'
3139 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3140 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3141 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3142 if test -n "$ac_tool_prefix"; then
3143 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3144 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3145 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3146 $as_echo_n "checking for $ac_word... " >&6; }
3147 if test "${ac_cv_prog_CC+set}" = set; then
3148 $as_echo_n "(cached) " >&6
3149 else
3150 if test -n "$CC"; then
3151 ac_cv_prog_CC="$CC" # Let the user override the test.
3152 else
3153 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3154 for as_dir in $PATH
3155 do
3156 IFS=$as_save_IFS
3157 test -z "$as_dir" && as_dir=.
3158 for ac_exec_ext in '' $ac_executable_extensions; do
3159 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3160 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3161 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3162 break 2
3163 fi
3164 done
3165 done
3166 IFS=$as_save_IFS
3167
3168 fi
3169 fi
3170 CC=$ac_cv_prog_CC
3171 if test -n "$CC"; then
3172 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3173 $as_echo "$CC" >&6; }
3174 else
3175 { $as_echo "$as_me:$LINENO: result: no" >&5
3176 $as_echo "no" >&6; }
3177 fi
3178
3179
3180 fi
3181 if test -z "$ac_cv_prog_CC"; then
3182 ac_ct_CC=$CC
3183 # Extract the first word of "gcc", so it can be a program name with args.
3184 set dummy gcc; ac_word=$2
3185 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3186 $as_echo_n "checking for $ac_word... " >&6; }
3187 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3188 $as_echo_n "(cached) " >&6
3189 else
3190 if test -n "$ac_ct_CC"; then
3191 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3192 else
3193 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3194 for as_dir in $PATH
3195 do
3196 IFS=$as_save_IFS
3197 test -z "$as_dir" && as_dir=.
3198 for ac_exec_ext in '' $ac_executable_extensions; do
3199 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3200 ac_cv_prog_ac_ct_CC="gcc"
3201 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3202 break 2
3203 fi
3204 done
3205 done
3206 IFS=$as_save_IFS
3207
3208 fi
3209 fi
3210 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3211 if test -n "$ac_ct_CC"; then
3212 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3213 $as_echo "$ac_ct_CC" >&6; }
3214 else
3215 { $as_echo "$as_me:$LINENO: result: no" >&5
3216 $as_echo "no" >&6; }
3217 fi
3218
3219 if test "x$ac_ct_CC" = x; then
3220 CC=""
3221 else
3222 case $cross_compiling:$ac_tool_warned in
3223 yes:)
3224 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3225 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3226 ac_tool_warned=yes ;;
3227 esac
3228 CC=$ac_ct_CC
3229 fi
3230 else
3231 CC="$ac_cv_prog_CC"
3232 fi
3233
3234 if test -z "$CC"; then
3235 if test -n "$ac_tool_prefix"; then
3236 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3237 set dummy ${ac_tool_prefix}cc; ac_word=$2
3238 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3239 $as_echo_n "checking for $ac_word... " >&6; }
3240 if test "${ac_cv_prog_CC+set}" = set; then
3241 $as_echo_n "(cached) " >&6
3242 else
3243 if test -n "$CC"; then
3244 ac_cv_prog_CC="$CC" # Let the user override the test.
3245 else
3246 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3247 for as_dir in $PATH
3248 do
3249 IFS=$as_save_IFS
3250 test -z "$as_dir" && as_dir=.
3251 for ac_exec_ext in '' $ac_executable_extensions; do
3252 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3253 ac_cv_prog_CC="${ac_tool_prefix}cc"
3254 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3255 break 2
3256 fi
3257 done
3258 done
3259 IFS=$as_save_IFS
3260
3261 fi
3262 fi
3263 CC=$ac_cv_prog_CC
3264 if test -n "$CC"; then
3265 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3266 $as_echo "$CC" >&6; }
3267 else
3268 { $as_echo "$as_me:$LINENO: result: no" >&5
3269 $as_echo "no" >&6; }
3270 fi
3271
3272
3273 fi
3274 fi
3275 if test -z "$CC"; then
3276 # Extract the first word of "cc", so it can be a program name with args.
3277 set dummy cc; ac_word=$2
3278 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3279 $as_echo_n "checking for $ac_word... " >&6; }
3280 if test "${ac_cv_prog_CC+set}" = set; then
3281 $as_echo_n "(cached) " >&6
3282 else
3283 if test -n "$CC"; then
3284 ac_cv_prog_CC="$CC" # Let the user override the test.
3285 else
3286 ac_prog_rejected=no
3287 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3288 for as_dir in $PATH
3289 do
3290 IFS=$as_save_IFS
3291 test -z "$as_dir" && as_dir=.
3292 for ac_exec_ext in '' $ac_executable_extensions; do
3293 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3294 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3295 ac_prog_rejected=yes
3296 continue
3297 fi
3298 ac_cv_prog_CC="cc"
3299 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3300 break 2
3301 fi
3302 done
3303 done
3304 IFS=$as_save_IFS
3305
3306 if test $ac_prog_rejected = yes; then
3307 # We found a bogon in the path, so make sure we never use it.
3308 set dummy $ac_cv_prog_CC
3309 shift
3310 if test $# != 0; then
3311 # We chose a different compiler from the bogus one.
3312 # However, it has the same basename, so the bogon will be chosen
3313 # first if we set CC to just the basename; use the full file name.
3314 shift
3315 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3316 fi
3317 fi
3318 fi
3319 fi
3320 CC=$ac_cv_prog_CC
3321 if test -n "$CC"; then
3322 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3323 $as_echo "$CC" >&6; }
3324 else
3325 { $as_echo "$as_me:$LINENO: result: no" >&5
3326 $as_echo "no" >&6; }
3327 fi
3328
3329
3330 fi
3331 if test -z "$CC"; then
3332 if test -n "$ac_tool_prefix"; then
3333 for ac_prog in cl.exe
3334 do
3335 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3336 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3337 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3338 $as_echo_n "checking for $ac_word... " >&6; }
3339 if test "${ac_cv_prog_CC+set}" = set; then
3340 $as_echo_n "(cached) " >&6
3341 else
3342 if test -n "$CC"; then
3343 ac_cv_prog_CC="$CC" # Let the user override the test.
3344 else
3345 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3346 for as_dir in $PATH
3347 do
3348 IFS=$as_save_IFS
3349 test -z "$as_dir" && as_dir=.
3350 for ac_exec_ext in '' $ac_executable_extensions; do
3351 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3352 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3353 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3354 break 2
3355 fi
3356 done
3357 done
3358 IFS=$as_save_IFS
3359
3360 fi
3361 fi
3362 CC=$ac_cv_prog_CC
3363 if test -n "$CC"; then
3364 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3365 $as_echo "$CC" >&6; }
3366 else
3367 { $as_echo "$as_me:$LINENO: result: no" >&5
3368 $as_echo "no" >&6; }
3369 fi
3370
3371
3372 test -n "$CC" && break
3373 done
3374 fi
3375 if test -z "$CC"; then
3376 ac_ct_CC=$CC
3377 for ac_prog in cl.exe
3378 do
3379 # Extract the first word of "$ac_prog", so it can be a program name with args.
3380 set dummy $ac_prog; ac_word=$2
3381 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3382 $as_echo_n "checking for $ac_word... " >&6; }
3383 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3384 $as_echo_n "(cached) " >&6
3385 else
3386 if test -n "$ac_ct_CC"; then
3387 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3388 else
3389 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3390 for as_dir in $PATH
3391 do
3392 IFS=$as_save_IFS
3393 test -z "$as_dir" && as_dir=.
3394 for ac_exec_ext in '' $ac_executable_extensions; do
3395 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3396 ac_cv_prog_ac_ct_CC="$ac_prog"
3397 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3398 break 2
3399 fi
3400 done
3401 done
3402 IFS=$as_save_IFS
3403
3404 fi
3405 fi
3406 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3407 if test -n "$ac_ct_CC"; then
3408 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3409 $as_echo "$ac_ct_CC" >&6; }
3410 else
3411 { $as_echo "$as_me:$LINENO: result: no" >&5
3412 $as_echo "no" >&6; }
3413 fi
3414
3415
3416 test -n "$ac_ct_CC" && break
3417 done
3418
3419 if test "x$ac_ct_CC" = x; then
3420 CC=""
3421 else
3422 case $cross_compiling:$ac_tool_warned in
3423 yes:)
3424 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3425 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3426 ac_tool_warned=yes ;;
3427 esac
3428 CC=$ac_ct_CC
3429 fi
3430 fi
3431
3432 fi
3433
3434
3435 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3436 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3437 { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3438 See \`config.log' for more details." >&5
3439 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
3440 See \`config.log' for more details." >&2;}
3441 { (exit 1); exit 1; }; }; }
3442
3443 # Provide some information about the compiler.
3444 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
3445 set X $ac_compile
3446 ac_compiler=$2
3447 { (ac_try="$ac_compiler --version >&5"
3448 case "(($ac_try" in
3449 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3450 *) ac_try_echo=$ac_try;;
3451 esac
3452 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3453 $as_echo "$ac_try_echo") >&5
3454 (eval "$ac_compiler --version >&5") 2>&5
3455 ac_status=$?
3456 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3457 (exit $ac_status); }
3458 { (ac_try="$ac_compiler -v >&5"
3459 case "(($ac_try" in
3460 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3461 *) ac_try_echo=$ac_try;;
3462 esac
3463 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3464 $as_echo "$ac_try_echo") >&5
3465 (eval "$ac_compiler -v >&5") 2>&5
3466 ac_status=$?
3467 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3468 (exit $ac_status); }
3469 { (ac_try="$ac_compiler -V >&5"
3470 case "(($ac_try" in
3471 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3472 *) ac_try_echo=$ac_try;;
3473 esac
3474 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3475 $as_echo "$ac_try_echo") >&5
3476 (eval "$ac_compiler -V >&5") 2>&5
3477 ac_status=$?
3478 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3479 (exit $ac_status); }
3480
3481 cat >conftest.$ac_ext <<_ACEOF
3482 /* confdefs.h. */
3483 _ACEOF
3484 cat confdefs.h >>conftest.$ac_ext
3485 cat >>conftest.$ac_ext <<_ACEOF
3486 /* end confdefs.h. */
3487
3488 int
3489 main ()
3490 {
3491
3492 ;
3493 return 0;
3494 }
3495 _ACEOF
3496 ac_clean_files_save=$ac_clean_files
3497 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3498 # Try to create an executable without -o first, disregard a.out.
3499 # It will help us diagnose broken compilers, and finding out an intuition
3500 # of exeext.
3501 { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3502 $as_echo_n "checking for C compiler default output file name... " >&6; }
3503 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3504
3505 # The possible output files:
3506 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3507
3508 ac_rmfiles=
3509 for ac_file in $ac_files
3510 do
3511 case $ac_file in
3512 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3513 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3514 esac
3515 done
3516 rm -f $ac_rmfiles
3517
3518 if { (ac_try="$ac_link_default"
3519 case "(($ac_try" in
3520 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3521 *) ac_try_echo=$ac_try;;
3522 esac
3523 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3524 $as_echo "$ac_try_echo") >&5
3525 (eval "$ac_link_default") 2>&5
3526 ac_status=$?
3527 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3528 (exit $ac_status); }; then
3529 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3530 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3531 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3532 # so that the user can short-circuit this test for compilers unknown to
3533 # Autoconf.
3534 for ac_file in $ac_files ''
3535 do
3536 test -f "$ac_file" || continue
3537 case $ac_file in
3538 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3539 ;;
3540 [ab].out )
3541 # We found the default executable, but exeext='' is most
3542 # certainly right.
3543 break;;
3544 *.* )
3545 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3546 then :; else
3547 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3548 fi
3549 # We set ac_cv_exeext here because the later test for it is not
3550 # safe: cross compilers may not add the suffix if given an `-o'
3551 # argument, so we may need to know it at that point already.
3552 # Even if this section looks crufty: it has the advantage of
3553 # actually working.
3554 break;;
3555 * )
3556 break;;
3557 esac
3558 done
3559 test "$ac_cv_exeext" = no && ac_cv_exeext=
3560
3561 else
3562 ac_file=''
3563 fi
3564
3565 { $as_echo "$as_me:$LINENO: result: $ac_file" >&5
3566 $as_echo "$ac_file" >&6; }
3567 if test -z "$ac_file"; then
3568 $as_echo "$as_me: failed program was:" >&5
3569 sed 's/^/| /' conftest.$ac_ext >&5
3570
3571 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3572 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3573 { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
3574 See \`config.log' for more details." >&5
3575 $as_echo "$as_me: error: C compiler cannot create executables
3576 See \`config.log' for more details." >&2;}
3577 { (exit 77); exit 77; }; }; }
3578 fi
3579
3580 ac_exeext=$ac_cv_exeext
3581
3582 # Check that the compiler produces executables we can run. If not, either
3583 # the compiler is broken, or we cross compile.
3584 { $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3585 $as_echo_n "checking whether the C compiler works... " >&6; }
3586 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3587 # If not cross compiling, check that we can run a simple program.
3588 if test "$cross_compiling" != yes; then
3589 if { ac_try='./$ac_file'
3590 { (case "(($ac_try" in
3591 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3592 *) ac_try_echo=$ac_try;;
3593 esac
3594 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3595 $as_echo "$ac_try_echo") >&5
3596 (eval "$ac_try") 2>&5
3597 ac_status=$?
3598 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3599 (exit $ac_status); }; }; then
3600 cross_compiling=no
3601 else
3602 if test "$cross_compiling" = maybe; then
3603 cross_compiling=yes
3604 else
3605 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3606 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3607 { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
3608 If you meant to cross compile, use \`--host'.
3609 See \`config.log' for more details." >&5
3610 $as_echo "$as_me: error: cannot run C compiled programs.
3611 If you meant to cross compile, use \`--host'.
3612 See \`config.log' for more details." >&2;}
3613 { (exit 1); exit 1; }; }; }
3614 fi
3615 fi
3616 fi
3617 { $as_echo "$as_me:$LINENO: result: yes" >&5
3618 $as_echo "yes" >&6; }
3619
3620 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3621 ac_clean_files=$ac_clean_files_save
3622 # Check that the compiler produces executables we can run. If not, either
3623 # the compiler is broken, or we cross compile.
3624 { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3625 $as_echo_n "checking whether we are cross compiling... " >&6; }
3626 { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
3627 $as_echo "$cross_compiling" >&6; }
3628
3629 { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
3630 $as_echo_n "checking for suffix of executables... " >&6; }
3631 if { (ac_try="$ac_link"
3632 case "(($ac_try" in
3633 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3634 *) ac_try_echo=$ac_try;;
3635 esac
3636 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3637 $as_echo "$ac_try_echo") >&5
3638 (eval "$ac_link") 2>&5
3639 ac_status=$?
3640 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3641 (exit $ac_status); }; then
3642 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3643 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3644 # work properly (i.e., refer to `conftest.exe'), while it won't with
3645 # `rm'.
3646 for ac_file in conftest.exe conftest conftest.*; do
3647 test -f "$ac_file" || continue
3648 case $ac_file in
3649 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3650 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3651 break;;
3652 * ) break;;
3653 esac
3654 done
3655 else
3656 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3657 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3658 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3659 See \`config.log' for more details." >&5
3660 $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3661 See \`config.log' for more details." >&2;}
3662 { (exit 1); exit 1; }; }; }
3663 fi
3664
3665 rm -f conftest$ac_cv_exeext
3666 { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3667 $as_echo "$ac_cv_exeext" >&6; }
3668
3669 rm -f conftest.$ac_ext
3670 EXEEXT=$ac_cv_exeext
3671 ac_exeext=$EXEEXT
3672 { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
3673 $as_echo_n "checking for suffix of object files... " >&6; }
3674 if test "${ac_cv_objext+set}" = set; then
3675 $as_echo_n "(cached) " >&6
3676 else
3677 cat >conftest.$ac_ext <<_ACEOF
3678 /* confdefs.h. */
3679 _ACEOF
3680 cat confdefs.h >>conftest.$ac_ext
3681 cat >>conftest.$ac_ext <<_ACEOF
3682 /* end confdefs.h. */
3683
3684 int
3685 main ()
3686 {
3687
3688 ;
3689 return 0;
3690 }
3691 _ACEOF
3692 rm -f conftest.o conftest.obj
3693 if { (ac_try="$ac_compile"
3694 case "(($ac_try" in
3695 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3696 *) ac_try_echo=$ac_try;;
3697 esac
3698 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3699 $as_echo "$ac_try_echo") >&5
3700 (eval "$ac_compile") 2>&5
3701 ac_status=$?
3702 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3703 (exit $ac_status); }; then
3704 for ac_file in conftest.o conftest.obj conftest.*; do
3705 test -f "$ac_file" || continue;
3706 case $ac_file in
3707 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3708 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3709 break;;
3710 esac
3711 done
3712 else
3713 $as_echo "$as_me: failed program was:" >&5
3714 sed 's/^/| /' conftest.$ac_ext >&5
3715
3716 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3717 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3718 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3719 See \`config.log' for more details." >&5
3720 $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
3721 See \`config.log' for more details." >&2;}
3722 { (exit 1); exit 1; }; }; }
3723 fi
3724
3725 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3726 fi
3727 { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3728 $as_echo "$ac_cv_objext" >&6; }
3729 OBJEXT=$ac_cv_objext
3730 ac_objext=$OBJEXT
3731 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3732 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3733 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3734 $as_echo_n "(cached) " >&6
3735 else
3736 cat >conftest.$ac_ext <<_ACEOF
3737 /* confdefs.h. */
3738 _ACEOF
3739 cat confdefs.h >>conftest.$ac_ext
3740 cat >>conftest.$ac_ext <<_ACEOF
3741 /* end confdefs.h. */
3742
3743 int
3744 main ()
3745 {
3746 #ifndef __GNUC__
3747 choke me
3748 #endif
3749
3750 ;
3751 return 0;
3752 }
3753 _ACEOF
3754 rm -f conftest.$ac_objext
3755 if { (ac_try="$ac_compile"
3756 case "(($ac_try" in
3757 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3758 *) ac_try_echo=$ac_try;;
3759 esac
3760 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3761 $as_echo "$ac_try_echo") >&5
3762 (eval "$ac_compile") 2>conftest.er1
3763 ac_status=$?
3764 grep -v '^ *+' conftest.er1 >conftest.err
3765 rm -f conftest.er1
3766 cat conftest.err >&5
3767 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3768 (exit $ac_status); } && {
3769 test -z "$ac_c_werror_flag" ||
3770 test ! -s conftest.err
3771 } && test -s conftest.$ac_objext; then
3772 ac_compiler_gnu=yes
3773 else
3774 $as_echo "$as_me: failed program was:" >&5
3775 sed 's/^/| /' conftest.$ac_ext >&5
3776
3777 ac_compiler_gnu=no
3778 fi
3779
3780 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3781 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3782
3783 fi
3784 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3785 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3786 if test $ac_compiler_gnu = yes; then
3787 GCC=yes
3788 else
3789 GCC=
3790 fi
3791 ac_test_CFLAGS=${CFLAGS+set}
3792 ac_save_CFLAGS=$CFLAGS
3793 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3794 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3795 if test "${ac_cv_prog_cc_g+set}" = set; then
3796 $as_echo_n "(cached) " >&6
3797 else
3798 ac_save_c_werror_flag=$ac_c_werror_flag
3799 ac_c_werror_flag=yes
3800 ac_cv_prog_cc_g=no
3801 CFLAGS="-g"
3802 cat >conftest.$ac_ext <<_ACEOF
3803 /* confdefs.h. */
3804 _ACEOF
3805 cat confdefs.h >>conftest.$ac_ext
3806 cat >>conftest.$ac_ext <<_ACEOF
3807 /* end confdefs.h. */
3808
3809 int
3810 main ()
3811 {
3812
3813 ;
3814 return 0;
3815 }
3816 _ACEOF
3817 rm -f conftest.$ac_objext
3818 if { (ac_try="$ac_compile"
3819 case "(($ac_try" in
3820 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3821 *) ac_try_echo=$ac_try;;
3822 esac
3823 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3824 $as_echo "$ac_try_echo") >&5
3825 (eval "$ac_compile") 2>conftest.er1
3826 ac_status=$?
3827 grep -v '^ *+' conftest.er1 >conftest.err
3828 rm -f conftest.er1
3829 cat conftest.err >&5
3830 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3831 (exit $ac_status); } && {
3832 test -z "$ac_c_werror_flag" ||
3833 test ! -s conftest.err
3834 } && test -s conftest.$ac_objext; then
3835 ac_cv_prog_cc_g=yes
3836 else
3837 $as_echo "$as_me: failed program was:" >&5
3838 sed 's/^/| /' conftest.$ac_ext >&5
3839
3840 CFLAGS=""
3841 cat >conftest.$ac_ext <<_ACEOF
3842 /* confdefs.h. */
3843 _ACEOF
3844 cat confdefs.h >>conftest.$ac_ext
3845 cat >>conftest.$ac_ext <<_ACEOF
3846 /* end confdefs.h. */
3847
3848 int
3849 main ()
3850 {
3851
3852 ;
3853 return 0;
3854 }
3855 _ACEOF
3856 rm -f conftest.$ac_objext
3857 if { (ac_try="$ac_compile"
3858 case "(($ac_try" in
3859 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3860 *) ac_try_echo=$ac_try;;
3861 esac
3862 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3863 $as_echo "$ac_try_echo") >&5
3864 (eval "$ac_compile") 2>conftest.er1
3865 ac_status=$?
3866 grep -v '^ *+' conftest.er1 >conftest.err
3867 rm -f conftest.er1
3868 cat conftest.err >&5
3869 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3870 (exit $ac_status); } && {
3871 test -z "$ac_c_werror_flag" ||
3872 test ! -s conftest.err
3873 } && test -s conftest.$ac_objext; then
3874 :
3875 else
3876 $as_echo "$as_me: failed program was:" >&5
3877 sed 's/^/| /' conftest.$ac_ext >&5
3878
3879 ac_c_werror_flag=$ac_save_c_werror_flag
3880 CFLAGS="-g"
3881 cat >conftest.$ac_ext <<_ACEOF
3882 /* confdefs.h. */
3883 _ACEOF
3884 cat confdefs.h >>conftest.$ac_ext
3885 cat >>conftest.$ac_ext <<_ACEOF
3886 /* end confdefs.h. */
3887
3888 int
3889 main ()
3890 {
3891
3892 ;
3893 return 0;
3894 }
3895 _ACEOF
3896 rm -f conftest.$ac_objext
3897 if { (ac_try="$ac_compile"
3898 case "(($ac_try" in
3899 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3900 *) ac_try_echo=$ac_try;;
3901 esac
3902 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3903 $as_echo "$ac_try_echo") >&5
3904 (eval "$ac_compile") 2>conftest.er1
3905 ac_status=$?
3906 grep -v '^ *+' conftest.er1 >conftest.err
3907 rm -f conftest.er1
3908 cat conftest.err >&5
3909 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3910 (exit $ac_status); } && {
3911 test -z "$ac_c_werror_flag" ||
3912 test ! -s conftest.err
3913 } && test -s conftest.$ac_objext; then
3914 ac_cv_prog_cc_g=yes
3915 else
3916 $as_echo "$as_me: failed program was:" >&5
3917 sed 's/^/| /' conftest.$ac_ext >&5
3918
3919
3920 fi
3921
3922 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3923 fi
3924
3925 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3926 fi
3927
3928 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3929 ac_c_werror_flag=$ac_save_c_werror_flag
3930 fi
3931 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3932 $as_echo "$ac_cv_prog_cc_g" >&6; }
3933 if test "$ac_test_CFLAGS" = set; then
3934 CFLAGS=$ac_save_CFLAGS
3935 elif test $ac_cv_prog_cc_g = yes; then
3936 if test "$GCC" = yes; then
3937 CFLAGS="-g -O2"
3938 else
3939 CFLAGS="-g"
3940 fi
3941 else
3942 if test "$GCC" = yes; then
3943 CFLAGS="-O2"
3944 else
3945 CFLAGS=
3946 fi
3947 fi
3948 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3949 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3950 if test "${ac_cv_prog_cc_c89+set}" = set; then
3951 $as_echo_n "(cached) " >&6
3952 else
3953 ac_cv_prog_cc_c89=no
3954 ac_save_CC=$CC
3955 cat >conftest.$ac_ext <<_ACEOF
3956 /* confdefs.h. */
3957 _ACEOF
3958 cat confdefs.h >>conftest.$ac_ext
3959 cat >>conftest.$ac_ext <<_ACEOF
3960 /* end confdefs.h. */
3961 #include <stdarg.h>
3962 #include <stdio.h>
3963 #include <sys/types.h>
3964 #include <sys/stat.h>
3965 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3966 struct buf { int x; };
3967 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3968 static char *e (p, i)
3969 char **p;
3970 int i;
3971 {
3972 return p[i];
3973 }
3974 static char *f (char * (*g) (char **, int), char **p, ...)
3975 {
3976 char *s;
3977 va_list v;
3978 va_start (v,p);
3979 s = g (p, va_arg (v,int));
3980 va_end (v);
3981 return s;
3982 }
3983
3984 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3985 function prototypes and stuff, but not '\xHH' hex character constants.
3986 These don't provoke an error unfortunately, instead are silently treated
3987 as 'x'. The following induces an error, until -std is added to get
3988 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3989 array size at least. It's necessary to write '\x00'==0 to get something
3990 that's true only with -std. */
3991 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3992
3993 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3994 inside strings and character constants. */
3995 #define FOO(x) 'x'
3996 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3997
3998 int test (int i, double x);
3999 struct s1 {int (*f) (int a);};
4000 struct s2 {int (*f) (double a);};
4001 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4002 int argc;
4003 char **argv;
4004 int
4005 main ()
4006 {
4007 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4008 ;
4009 return 0;
4010 }
4011 _ACEOF
4012 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4013 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4014 do
4015 CC="$ac_save_CC $ac_arg"
4016 rm -f conftest.$ac_objext
4017 if { (ac_try="$ac_compile"
4018 case "(($ac_try" in
4019 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4020 *) ac_try_echo=$ac_try;;
4021 esac
4022 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4023 $as_echo "$ac_try_echo") >&5
4024 (eval "$ac_compile") 2>conftest.er1
4025 ac_status=$?
4026 grep -v '^ *+' conftest.er1 >conftest.err
4027 rm -f conftest.er1
4028 cat conftest.err >&5
4029 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4030 (exit $ac_status); } && {
4031 test -z "$ac_c_werror_flag" ||
4032 test ! -s conftest.err
4033 } && test -s conftest.$ac_objext; then
4034 ac_cv_prog_cc_c89=$ac_arg
4035 else
4036 $as_echo "$as_me: failed program was:" >&5
4037 sed 's/^/| /' conftest.$ac_ext >&5
4038
4039
4040 fi
4041
4042 rm -f core conftest.err conftest.$ac_objext
4043 test "x$ac_cv_prog_cc_c89" != "xno" && break
4044 done
4045 rm -f conftest.$ac_ext
4046 CC=$ac_save_CC
4047
4048 fi
4049 # AC_CACHE_VAL
4050 case "x$ac_cv_prog_cc_c89" in
4051 x)
4052 { $as_echo "$as_me:$LINENO: result: none needed" >&5
4053 $as_echo "none needed" >&6; } ;;
4054 xno)
4055 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
4056 $as_echo "unsupported" >&6; } ;;
4057 *)
4058 CC="$CC $ac_cv_prog_cc_c89"
4059 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
4060 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4061 esac
4062
4063
4064 ac_ext=c
4065 ac_cpp='$CPP $CPPFLAGS'
4066 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4067 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4068 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4069 DEPDIR="${am__leading_dot}deps"
4070
4071 ac_config_commands="$ac_config_commands depfiles"
4072
4073
4074 am_make=${MAKE-make}
4075 cat > confinc << 'END'
4076 am__doit:
4077 @echo this is the am__doit target
4078 .PHONY: am__doit
4079 END
4080 # If we don't find an include directive, just comment out the code.
4081 { $as_echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
4082 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4083 am__include="#"
4084 am__quote=
4085 _am_result=none
4086 # First try GNU make style include.
4087 echo "include confinc" > confmf
4088 # Ignore all kinds of additional output from `make'.
4089 case `$am_make -s -f confmf 2> /dev/null` in #(
4090 *the\ am__doit\ target*)
4091 am__include=include
4092 am__quote=
4093 _am_result=GNU
4094 ;;
4095 esac
4096 # Now try BSD make style include.
4097 if test "$am__include" = "#"; then
4098 echo '.include "confinc"' > confmf
4099 case `$am_make -s -f confmf 2> /dev/null` in #(
4100 *the\ am__doit\ target*)
4101 am__include=.include
4102 am__quote="\""
4103 _am_result=BSD
4104 ;;
4105 esac
4106 fi
4107
4108
4109 { $as_echo "$as_me:$LINENO: result: $_am_result" >&5
4110 $as_echo "$_am_result" >&6; }
4111 rm -f confinc confmf
4112
4113 # Check whether --enable-dependency-tracking was given.
4114 if test "${enable_dependency_tracking+set}" = set; then
4115 enableval=$enable_dependency_tracking;
4116 fi
4117
4118 if test "x$enable_dependency_tracking" != xno; then
4119 am_depcomp="$ac_aux_dir/depcomp"
4120 AMDEPBACKSLASH='\'
4121 fi
4122 if test "x$enable_dependency_tracking" != xno; then
4123 AMDEP_TRUE=
4124 AMDEP_FALSE='#'
4125 else
4126 AMDEP_TRUE='#'
4127 AMDEP_FALSE=
4128 fi
4129
4130
4131
4132 depcc="$CC" am_compiler_list=
4133
4134 { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4135 $as_echo_n "checking dependency style of $depcc... " >&6; }
4136 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
4137 $as_echo_n "(cached) " >&6
4138 else
4139 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4140 # We make a subdir and do the tests there. Otherwise we can end up
4141 # making bogus files that we don't know about and never remove. For
4142 # instance it was reported that on HP-UX the gcc test will end up
4143 # making a dummy file named `D' -- because `-MD' means `put the output
4144 # in D'.
4145 mkdir conftest.dir
4146 # Copy depcomp to subdir because otherwise we won't find it if we're
4147 # using a relative directory.
4148 cp "$am_depcomp" conftest.dir
4149 cd conftest.dir
4150 # We will build objects and dependencies in a subdirectory because
4151 # it helps to detect inapplicable dependency modes. For instance
4152 # both Tru64's cc and ICC support -MD to output dependencies as a
4153 # side effect of compilation, but ICC will put the dependencies in
4154 # the current directory while Tru64 will put them in the object
4155 # directory.
4156 mkdir sub
4157
4158 am_cv_CC_dependencies_compiler_type=none
4159 if test "$am_compiler_list" = ""; then
4160 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4161 fi
4162 am__universal=false
4163 case " $depcc " in #(
4164 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4165 esac
4166
4167 for depmode in $am_compiler_list; do
4168 # Setup a source with many dependencies, because some compilers
4169 # like to wrap large dependency lists on column 80 (with \), and
4170 # we should not choose a depcomp mode which is confused by this.
4171 #
4172 # We need to recreate these files for each test, as the compiler may
4173 # overwrite some of them when testing with obscure command lines.
4174 # This happens at least with the AIX C compiler.
4175 : > sub/conftest.c
4176 for i in 1 2 3 4 5 6; do
4177 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4178 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4179 # Solaris 8's {/usr,}/bin/sh.
4180 touch sub/conftst$i.h
4181 done
4182 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4183
4184 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4185 # mode. It turns out that the SunPro C++ compiler does not properly
4186 # handle `-M -o', and we need to detect this. Also, some Intel
4187 # versions had trouble with output in subdirs
4188 am__obj=sub/conftest.${OBJEXT-o}
4189 am__minus_obj="-o $am__obj"
4190 case $depmode in
4191 gcc)
4192 # This depmode causes a compiler race in universal mode.
4193 test "$am__universal" = false || continue
4194 ;;
4195 nosideeffect)
4196 # after this tag, mechanisms are not by side-effect, so they'll
4197 # only be used when explicitly requested
4198 if test "x$enable_dependency_tracking" = xyes; then
4199 continue
4200 else
4201 break
4202 fi
4203 ;;
4204 msvisualcpp | msvcmsys)
4205 # This compiler won't grok `-c -o', but also, the minuso test has
4206 # not run yet. These depmodes are late enough in the game, and
4207 # so weak that their functioning should not be impacted.
4208 am__obj=conftest.${OBJEXT-o}
4209 am__minus_obj=
4210 ;;
4211 none) break ;;
4212 esac
4213 if depmode=$depmode \
4214 source=sub/conftest.c object=$am__obj \
4215 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4216 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4217 >/dev/null 2>conftest.err &&
4218 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4219 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4220 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4221 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4222 # icc doesn't choke on unknown options, it will just issue warnings
4223 # or remarks (even with -Werror). So we grep stderr for any message
4224 # that says an option was ignored or not supported.
4225 # When given -MP, icc 7.0 and 7.1 complain thusly:
4226 # icc: Command line warning: ignoring option '-M'; no argument required
4227 # The diagnosis changed in icc 8.0:
4228 # icc: Command line remark: option '-MP' not supported
4229 if (grep 'ignoring option' conftest.err ||
4230 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4231 am_cv_CC_dependencies_compiler_type=$depmode
4232 break
4233 fi
4234 fi
4235 done
4236
4237 cd ..
4238 rm -rf conftest.dir
4239 else
4240 am_cv_CC_dependencies_compiler_type=none
4241 fi
4242
4243 fi
4244 { $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
4245 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4246 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4247
4248 if
4249 test "x$enable_dependency_tracking" != xno \
4250 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4251 am__fastdepCC_TRUE=
4252 am__fastdepCC_FALSE='#'
4253 else
4254 am__fastdepCC_TRUE='#'
4255 am__fastdepCC_FALSE=
4256 fi
4257
4258
4259 case `pwd` in
4260 *\ * | *\ *)
4261 { $as_echo "$as_me:$LINENO: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4262 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4263 esac
4264
4265
4266
4267 macro_version='2.2.6b'
4268 macro_revision='1.3017'
4269
4270
4271
4272
4273
4274
4275
4276
4277
4278
4279
4280
4281
4282 ltmain="$ac_aux_dir/ltmain.sh"
4283
4284 { $as_echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
4285 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4286 if test "${ac_cv_path_SED+set}" = set; then
4287 $as_echo_n "(cached) " >&6
4288 else
4289 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4290 for ac_i in 1 2 3 4 5 6 7; do
4291 ac_script="$ac_script$as_nl$ac_script"
4292 done
4293 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4294 $as_unset ac_script || ac_script=
4295 if test -z "$SED"; then
4296 ac_path_SED_found=false
4297 # Loop through the user's path and test for each of PROGNAME-LIST
4298 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4299 for as_dir in $PATH
4300 do
4301 IFS=$as_save_IFS
4302 test -z "$as_dir" && as_dir=.
4303 for ac_prog in sed gsed; do
4304 for ac_exec_ext in '' $ac_executable_extensions; do
4305 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4306 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4307 # Check for GNU ac_path_SED and select it if it is found.
4308 # Check for GNU $ac_path_SED
4309 case `"$ac_path_SED" --version 2>&1` in
4310 *GNU*)
4311 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4312 *)
4313 ac_count=0
4314 $as_echo_n 0123456789 >"conftest.in"
4315 while :
4316 do
4317 cat "conftest.in" "conftest.in" >"conftest.tmp"
4318 mv "conftest.tmp" "conftest.in"
4319 cp "conftest.in" "conftest.nl"
4320 $as_echo '' >> "conftest.nl"
4321 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4322 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4323 ac_count=`expr $ac_count + 1`
4324 if test $ac_count -gt ${ac_path_SED_max-0}; then
4325 # Best one so far, save it but keep looking for a better one
4326 ac_cv_path_SED="$ac_path_SED"
4327 ac_path_SED_max=$ac_count
4328 fi
4329 # 10*(2^10) chars as input seems more than enough
4330 test $ac_count -gt 10 && break
4331 done
4332 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4333 esac
4334
4335 $ac_path_SED_found && break 3
4336 done
4337 done
4338 done
4339 IFS=$as_save_IFS
4340 if test -z "$ac_cv_path_SED"; then
4341 { { $as_echo "$as_me:$LINENO: error: no acceptable sed could be found in \$PATH" >&5
4342 $as_echo "$as_me: error: no acceptable sed could be found in \$PATH" >&2;}
4343 { (exit 1); exit 1; }; }
4344 fi
4345 else
4346 ac_cv_path_SED=$SED
4347 fi
4348
4349 fi
4350 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5
4351 $as_echo "$ac_cv_path_SED" >&6; }
4352 SED="$ac_cv_path_SED"
4353 rm -f conftest.sed
4354
4355 test -z "$SED" && SED=sed
4356 Xsed="$SED -e 1s/^X//"
4357
4358
4359
4360
4361
4362
4363
4364
4365
4366
4367
4368 { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4369 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4370 if test "${ac_cv_path_GREP+set}" = set; then
4371 $as_echo_n "(cached) " >&6
4372 else
4373 if test -z "$GREP"; then
4374 ac_path_GREP_found=false
4375 # Loop through the user's path and test for each of PROGNAME-LIST
4376 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4377 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4378 do
4379 IFS=$as_save_IFS
4380 test -z "$as_dir" && as_dir=.
4381 for ac_prog in grep ggrep; do
4382 for ac_exec_ext in '' $ac_executable_extensions; do
4383 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4384 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4385 # Check for GNU ac_path_GREP and select it if it is found.
4386 # Check for GNU $ac_path_GREP
4387 case `"$ac_path_GREP" --version 2>&1` in
4388 *GNU*)
4389 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4390 *)
4391 ac_count=0
4392 $as_echo_n 0123456789 >"conftest.in"
4393 while :
4394 do
4395 cat "conftest.in" "conftest.in" >"conftest.tmp"
4396 mv "conftest.tmp" "conftest.in"
4397 cp "conftest.in" "conftest.nl"
4398 $as_echo 'GREP' >> "conftest.nl"
4399 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4400 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4401 ac_count=`expr $ac_count + 1`
4402 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4403 # Best one so far, save it but keep looking for a better one
4404 ac_cv_path_GREP="$ac_path_GREP"
4405 ac_path_GREP_max=$ac_count
4406 fi
4407 # 10*(2^10) chars as input seems more than enough
4408 test $ac_count -gt 10 && break
4409 done
4410 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4411 esac
4412
4413 $ac_path_GREP_found && break 3
4414 done
4415 done
4416 done
4417 IFS=$as_save_IFS
4418 if test -z "$ac_cv_path_GREP"; then
4419 { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4420 $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4421 { (exit 1); exit 1; }; }
4422 fi
4423 else
4424 ac_cv_path_GREP=$GREP
4425 fi
4426
4427 fi
4428 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4429 $as_echo "$ac_cv_path_GREP" >&6; }
4430 GREP="$ac_cv_path_GREP"
4431
4432
4433 { $as_echo "$as_me:$LINENO: checking for egrep" >&5
4434 $as_echo_n "checking for egrep... " >&6; }
4435 if test "${ac_cv_path_EGREP+set}" = set; then
4436 $as_echo_n "(cached) " >&6
4437 else
4438 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4439 then ac_cv_path_EGREP="$GREP -E"
4440 else
4441 if test -z "$EGREP"; then
4442 ac_path_EGREP_found=false
4443 # Loop through the user's path and test for each of PROGNAME-LIST
4444 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4445 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4446 do
4447 IFS=$as_save_IFS
4448 test -z "$as_dir" && as_dir=.
4449 for ac_prog in egrep; do
4450 for ac_exec_ext in '' $ac_executable_extensions; do
4451 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4452 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4453 # Check for GNU ac_path_EGREP and select it if it is found.
4454 # Check for GNU $ac_path_EGREP
4455 case `"$ac_path_EGREP" --version 2>&1` in
4456 *GNU*)
4457 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4458 *)
4459 ac_count=0
4460 $as_echo_n 0123456789 >"conftest.in"
4461 while :
4462 do
4463 cat "conftest.in" "conftest.in" >"conftest.tmp"
4464 mv "conftest.tmp" "conftest.in"
4465 cp "conftest.in" "conftest.nl"
4466 $as_echo 'EGREP' >> "conftest.nl"
4467 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4468 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4469 ac_count=`expr $ac_count + 1`
4470 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4471 # Best one so far, save it but keep looking for a better one
4472 ac_cv_path_EGREP="$ac_path_EGREP"
4473 ac_path_EGREP_max=$ac_count
4474 fi
4475 # 10*(2^10) chars as input seems more than enough
4476 test $ac_count -gt 10 && break
4477 done
4478 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4479 esac
4480
4481 $ac_path_EGREP_found && break 3
4482 done
4483 done
4484 done
4485 IFS=$as_save_IFS
4486 if test -z "$ac_cv_path_EGREP"; then
4487 { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4488 $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4489 { (exit 1); exit 1; }; }
4490 fi
4491 else
4492 ac_cv_path_EGREP=$EGREP
4493 fi
4494
4495 fi
4496 fi
4497 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4498 $as_echo "$ac_cv_path_EGREP" >&6; }
4499 EGREP="$ac_cv_path_EGREP"
4500
4501
4502 { $as_echo "$as_me:$LINENO: checking for fgrep" >&5
4503 $as_echo_n "checking for fgrep... " >&6; }
4504 if test "${ac_cv_path_FGREP+set}" = set; then
4505 $as_echo_n "(cached) " >&6
4506 else
4507 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4508 then ac_cv_path_FGREP="$GREP -F"
4509 else
4510 if test -z "$FGREP"; then
4511 ac_path_FGREP_found=false
4512 # Loop through the user's path and test for each of PROGNAME-LIST
4513 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4514 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4515 do
4516 IFS=$as_save_IFS
4517 test -z "$as_dir" && as_dir=.
4518 for ac_prog in fgrep; do
4519 for ac_exec_ext in '' $ac_executable_extensions; do
4520 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4521 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4522 # Check for GNU ac_path_FGREP and select it if it is found.
4523 # Check for GNU $ac_path_FGREP
4524 case `"$ac_path_FGREP" --version 2>&1` in
4525 *GNU*)
4526 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4527 *)
4528 ac_count=0
4529 $as_echo_n 0123456789 >"conftest.in"
4530 while :
4531 do
4532 cat "conftest.in" "conftest.in" >"conftest.tmp"
4533 mv "conftest.tmp" "conftest.in"
4534 cp "conftest.in" "conftest.nl"
4535 $as_echo 'FGREP' >> "conftest.nl"
4536 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4537 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4538 ac_count=`expr $ac_count + 1`
4539 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4540 # Best one so far, save it but keep looking for a better one
4541 ac_cv_path_FGREP="$ac_path_FGREP"
4542 ac_path_FGREP_max=$ac_count
4543 fi
4544 # 10*(2^10) chars as input seems more than enough
4545 test $ac_count -gt 10 && break
4546 done
4547 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4548 esac
4549
4550 $ac_path_FGREP_found && break 3
4551 done
4552 done
4553 done
4554 IFS=$as_save_IFS
4555 if test -z "$ac_cv_path_FGREP"; then
4556 { { $as_echo "$as_me:$LINENO: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4557 $as_echo "$as_me: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4558 { (exit 1); exit 1; }; }
4559 fi
4560 else
4561 ac_cv_path_FGREP=$FGREP
4562 fi
4563
4564 fi
4565 fi
4566 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_FGREP" >&5
4567 $as_echo "$ac_cv_path_FGREP" >&6; }
4568 FGREP="$ac_cv_path_FGREP"
4569
4570
4571 test -z "$GREP" && GREP=grep
4572
4573
4574
4575
4576
4577
4578
4579
4580
4581
4582
4583
4584
4585
4586
4587
4588
4589
4590
4591 # Check whether --with-gnu-ld was given.
4592 if test "${with_gnu_ld+set}" = set; then
4593 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4594 else
4595 with_gnu_ld=no
4596 fi
4597
4598 ac_prog=ld
4599 if test "$GCC" = yes; then
4600 # Check if gcc -print-prog-name=ld gives a path.
4601 { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4602 $as_echo_n "checking for ld used by $CC... " >&6; }
4603 case $host in
4604 *-*-mingw*)
4605 # gcc leaves a trailing carriage return which upsets mingw
4606 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4607 *)
4608 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4609 esac
4610 case $ac_prog in
4611 # Accept absolute paths.
4612 [\\/]* | ?:[\\/]*)
4613 re_direlt='/[^/][^/]*/\.\./'
4614 # Canonicalize the pathname of ld
4615 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4616 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4617 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4618 done
4619 test -z "$LD" && LD="$ac_prog"
4620 ;;
4621 "")
4622 # If it fails, then pretend we aren't using GCC.
4623 ac_prog=ld
4624 ;;
4625 *)
4626 # If it is relative, then search for the first ld in PATH.
4627 with_gnu_ld=unknown
4628 ;;
4629 esac
4630 elif test "$with_gnu_ld" = yes; then
4631 { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
4632 $as_echo_n "checking for GNU ld... " >&6; }
4633 else
4634 { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4635 $as_echo_n "checking for non-GNU ld... " >&6; }
4636 fi
4637 if test "${lt_cv_path_LD+set}" = set; then
4638 $as_echo_n "(cached) " >&6
4639 else
4640 if test -z "$LD"; then
4641 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4642 for ac_dir in $PATH; do
4643 IFS="$lt_save_ifs"
4644 test -z "$ac_dir" && ac_dir=.
4645 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4646 lt_cv_path_LD="$ac_dir/$ac_prog"
4647 # Check to see if the program is GNU ld. I'd rather use --version,
4648 # but apparently some variants of GNU ld only accept -v.
4649 # Break only if it was the GNU/non-GNU ld that we prefer.
4650 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4651 *GNU* | *'with BFD'*)
4652 test "$with_gnu_ld" != no && break
4653 ;;
4654 *)
4655 test "$with_gnu_ld" != yes && break
4656 ;;
4657 esac
4658 fi
4659 done
4660 IFS="$lt_save_ifs"
4661 else
4662 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4663 fi
4664 fi
4665
4666 LD="$lt_cv_path_LD"
4667 if test -n "$LD"; then
4668 { $as_echo "$as_me:$LINENO: result: $LD" >&5
4669 $as_echo "$LD" >&6; }
4670 else
4671 { $as_echo "$as_me:$LINENO: result: no" >&5
4672 $as_echo "no" >&6; }
4673 fi
4674 test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4675 $as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4676 { (exit 1); exit 1; }; }
4677 { $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4678 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4679 if test "${lt_cv_prog_gnu_ld+set}" = set; then
4680 $as_echo_n "(cached) " >&6
4681 else
4682 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4683 case `$LD -v 2>&1 </dev/null` in
4684 *GNU* | *'with BFD'*)
4685 lt_cv_prog_gnu_ld=yes
4686 ;;
4687 *)
4688 lt_cv_prog_gnu_ld=no
4689 ;;
4690 esac
4691 fi
4692 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4693 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4694 with_gnu_ld=$lt_cv_prog_gnu_ld
4695
4696
4697
4698
4699
4700
4701
4702
4703
4704 { $as_echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
4705 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4706 if test "${lt_cv_path_NM+set}" = set; then
4707 $as_echo_n "(cached) " >&6
4708 else
4709 if test -n "$NM"; then
4710 # Let the user override the test.
4711 lt_cv_path_NM="$NM"
4712 else
4713 lt_nm_to_check="${ac_tool_prefix}nm"
4714 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4715 lt_nm_to_check="$lt_nm_to_check nm"
4716 fi
4717 for lt_tmp_nm in $lt_nm_to_check; do
4718 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4719 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4720 IFS="$lt_save_ifs"
4721 test -z "$ac_dir" && ac_dir=.
4722 tmp_nm="$ac_dir/$lt_tmp_nm"
4723 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4724 # Check to see if the nm accepts a BSD-compat flag.
4725 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4726 # nm: unknown option "B" ignored
4727 # Tru64's nm complains that /dev/null is an invalid object file
4728 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4729 */dev/null* | *'Invalid file or object type'*)
4730 lt_cv_path_NM="$tmp_nm -B"
4731 break
4732 ;;
4733 *)
4734 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4735 */dev/null*)
4736 lt_cv_path_NM="$tmp_nm -p"
4737 break
4738 ;;
4739 *)
4740 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4741 continue # so that we can try to find one that supports BSD flags
4742 ;;
4743 esac
4744 ;;
4745 esac
4746 fi
4747 done
4748 IFS="$lt_save_ifs"
4749 done
4750 : ${lt_cv_path_NM=no}
4751 fi
4752 fi
4753 { $as_echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4754 $as_echo "$lt_cv_path_NM" >&6; }
4755 if test "$lt_cv_path_NM" != "no"; then
4756 NM="$lt_cv_path_NM"
4757 else
4758 # Didn't find any BSD compatible name lister, look for dumpbin.
4759 if test -n "$ac_tool_prefix"; then
4760 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4761 do
4762 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4763 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4764 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4765 $as_echo_n "checking for $ac_word... " >&6; }
4766 if test "${ac_cv_prog_DUMPBIN+set}" = set; then
4767 $as_echo_n "(cached) " >&6
4768 else
4769 if test -n "$DUMPBIN"; then
4770 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4771 else
4772 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4773 for as_dir in $PATH
4774 do
4775 IFS=$as_save_IFS
4776 test -z "$as_dir" && as_dir=.
4777 for ac_exec_ext in '' $ac_executable_extensions; do
4778 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4779 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4780 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4781 break 2
4782 fi
4783 done
4784 done
4785 IFS=$as_save_IFS
4786
4787 fi
4788 fi
4789 DUMPBIN=$ac_cv_prog_DUMPBIN
4790 if test -n "$DUMPBIN"; then
4791 { $as_echo "$as_me:$LINENO: result: $DUMPBIN" >&5
4792 $as_echo "$DUMPBIN" >&6; }
4793 else
4794 { $as_echo "$as_me:$LINENO: result: no" >&5
4795 $as_echo "no" >&6; }
4796 fi
4797
4798
4799 test -n "$DUMPBIN" && break
4800 done
4801 fi
4802 if test -z "$DUMPBIN"; then
4803 ac_ct_DUMPBIN=$DUMPBIN
4804 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4805 do
4806 # Extract the first word of "$ac_prog", so it can be a program name with args.
4807 set dummy $ac_prog; ac_word=$2
4808 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4809 $as_echo_n "checking for $ac_word... " >&6; }
4810 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
4811 $as_echo_n "(cached) " >&6
4812 else
4813 if test -n "$ac_ct_DUMPBIN"; then
4814 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4815 else
4816 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4817 for as_dir in $PATH
4818 do
4819 IFS=$as_save_IFS
4820 test -z "$as_dir" && as_dir=.
4821 for ac_exec_ext in '' $ac_executable_extensions; do
4822 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4823 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4824 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4825 break 2
4826 fi
4827 done
4828 done
4829 IFS=$as_save_IFS
4830
4831 fi
4832 fi
4833 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4834 if test -n "$ac_ct_DUMPBIN"; then
4835 { $as_echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
4836 $as_echo "$ac_ct_DUMPBIN" >&6; }
4837 else
4838 { $as_echo "$as_me:$LINENO: result: no" >&5
4839 $as_echo "no" >&6; }
4840 fi
4841
4842
4843 test -n "$ac_ct_DUMPBIN" && break
4844 done
4845
4846 if test "x$ac_ct_DUMPBIN" = x; then
4847 DUMPBIN=":"
4848 else
4849 case $cross_compiling:$ac_tool_warned in
4850 yes:)
4851 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
4852 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4853 ac_tool_warned=yes ;;
4854 esac
4855 DUMPBIN=$ac_ct_DUMPBIN
4856 fi
4857 fi
4858
4859
4860 if test "$DUMPBIN" != ":"; then
4861 NM="$DUMPBIN"
4862 fi
4863 fi
4864 test -z "$NM" && NM=nm
4865
4866
4867
4868
4869
4870
4871 { $as_echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
4872 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
4873 if test "${lt_cv_nm_interface+set}" = set; then
4874 $as_echo_n "(cached) " >&6
4875 else
4876 lt_cv_nm_interface="BSD nm"
4877 echo "int some_variable = 0;" > conftest.$ac_ext
4878 (eval echo "\"\$as_me:4878: $ac_compile\"" >&5)
4879 (eval "$ac_compile" 2>conftest.err)
4880 cat conftest.err >&5
4881 (eval echo "\"\$as_me:4881: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4882 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4883 cat conftest.err >&5
4884 (eval echo "\"\$as_me:4884: output\"" >&5)
4885 cat conftest.out >&5
4886 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4887 lt_cv_nm_interface="MS dumpbin"
4888 fi
4889 rm -f conftest*
4890 fi
4891 { $as_echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
4892 $as_echo "$lt_cv_nm_interface" >&6; }
4893
4894 { $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
4895 $as_echo_n "checking whether ln -s works... " >&6; }
4896 LN_S=$as_ln_s
4897 if test "$LN_S" = "ln -s"; then
4898 { $as_echo "$as_me:$LINENO: result: yes" >&5
4899 $as_echo "yes" >&6; }
4900 else
4901 { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4902 $as_echo "no, using $LN_S" >&6; }
4903 fi
4904
4905 # find the maximum length of command line arguments
4906 { $as_echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
4907 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
4908 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
4909 $as_echo_n "(cached) " >&6
4910 else
4911 i=0
4912 teststring="ABCD"
4913
4914 case $build_os in
4915 msdosdjgpp*)
4916 # On DJGPP, this test can blow up pretty badly due to problems in libc
4917 # (any single argument exceeding 2000 bytes causes a buffer overrun
4918 # during glob expansion). Even if it were fixed, the result of this
4919 # check would be larger than it should be.
4920 lt_cv_sys_max_cmd_len=12288; # 12K is about right
4921 ;;
4922
4923 gnu*)
4924 # Under GNU Hurd, this test is not required because there is
4925 # no limit to the length of command line arguments.
4926 # Libtool will interpret -1 as no limit whatsoever
4927 lt_cv_sys_max_cmd_len=-1;
4928 ;;
4929
4930 cygwin* | mingw* | cegcc*)
4931 # On Win9x/ME, this test blows up -- it succeeds, but takes
4932 # about 5 minutes as the teststring grows exponentially.
4933 # Worse, since 9x/ME are not pre-emptively multitasking,
4934 # you end up with a "frozen" computer, even though with patience
4935 # the test eventually succeeds (with a max line length of 256k).
4936 # Instead, let's just punt: use the minimum linelength reported by
4937 # all of the supported platforms: 8192 (on NT/2K/XP).
4938 lt_cv_sys_max_cmd_len=8192;
4939 ;;
4940
4941 amigaos*)
4942 # On AmigaOS with pdksh, this test takes hours, literally.
4943 # So we just punt and use a minimum line length of 8192.
4944 lt_cv_sys_max_cmd_len=8192;
4945 ;;
4946
4947 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4948 # This has been around since 386BSD, at least. Likely further.
4949 if test -x /sbin/sysctl; then
4950 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4951 elif test -x /usr/sbin/sysctl; then
4952 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4953 else
4954 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
4955 fi
4956 # And add a safety zone
4957 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4958 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4959 ;;
4960
4961 interix*)
4962 # We know the value 262144 and hardcode it with a safety zone (like BSD)
4963 lt_cv_sys_max_cmd_len=196608
4964 ;;
4965
4966 osf*)
4967 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4968 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4969 # nice to cause kernel panics so lets avoid the loop below.
4970 # First set a reasonable default.
4971 lt_cv_sys_max_cmd_len=16384
4972 #
4973 if test -x /sbin/sysconfig; then
4974 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4975 *1*) lt_cv_sys_max_cmd_len=-1 ;;
4976 esac
4977 fi
4978 ;;
4979 sco3.2v5*)
4980 lt_cv_sys_max_cmd_len=102400
4981 ;;
4982 sysv5* | sco5v6* | sysv4.2uw2*)
4983 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4984 if test -n "$kargmax"; then
4985 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
4986 else
4987 lt_cv_sys_max_cmd_len=32768
4988 fi
4989 ;;
4990 *)
4991 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4992 if test -n "$lt_cv_sys_max_cmd_len"; then
4993 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4994 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4995 else
4996 # Make teststring a little bigger before we do anything with it.
4997 # a 1K string should be a reasonable start.
4998 for i in 1 2 3 4 5 6 7 8 ; do
4999 teststring=$teststring$teststring
5000 done
5001 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5002 # If test is not a shell built-in, we'll probably end up computing a
5003 # maximum length that is only half of the actual maximum length, but
5004 # we can't tell.
5005 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
5006 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
5007 test $i != 17 # 1/2 MB should be enough
5008 do
5009 i=`expr $i + 1`
5010 teststring=$teststring$teststring
5011 done
5012 # Only check the string length outside the loop.
5013 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5014 teststring=
5015 # Add a significant safety factor because C++ compilers can tack on
5016 # massive amounts of additional arguments before passing them to the
5017 # linker. It appears as though 1/2 is a usable value.
5018 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5019 fi
5020 ;;
5021 esac
5022
5023 fi
5024
5025 if test -n $lt_cv_sys_max_cmd_len ; then
5026 { $as_echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5027 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5028 else
5029 { $as_echo "$as_me:$LINENO: result: none" >&5
5030 $as_echo "none" >&6; }
5031 fi
5032 max_cmd_len=$lt_cv_sys_max_cmd_len
5033
5034
5035
5036
5037
5038
5039 : ${CP="cp -f"}
5040 : ${MV="mv -f"}
5041 : ${RM="rm -f"}
5042
5043 { $as_echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
5044 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5045 # Try some XSI features
5046 xsi_shell=no
5047 ( _lt_dummy="a/b/c"
5048 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
5049 = c,a/b,, \
5050 && eval 'test $(( 1 + 1 )) -eq 2 \
5051 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5052 && xsi_shell=yes
5053 { $as_echo "$as_me:$LINENO: result: $xsi_shell" >&5
5054 $as_echo "$xsi_shell" >&6; }
5055
5056
5057 { $as_echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
5058 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5059 lt_shell_append=no
5060 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5061 >/dev/null 2>&1 \
5062 && lt_shell_append=yes
5063 { $as_echo "$as_me:$LINENO: result: $lt_shell_append" >&5
5064 $as_echo "$lt_shell_append" >&6; }
5065
5066
5067 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5068 lt_unset=unset
5069 else
5070 lt_unset=false
5071 fi
5072
5073
5074
5075
5076
5077 # test EBCDIC or ASCII
5078 case `echo X|tr X '\101'` in
5079 A) # ASCII based system
5080 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5081 lt_SP2NL='tr \040 \012'
5082 lt_NL2SP='tr \015\012 \040\040'
5083 ;;
5084 *) # EBCDIC based system
5085 lt_SP2NL='tr \100 \n'
5086 lt_NL2SP='tr \r\n \100\100'
5087 ;;
5088 esac
5089
5090
5091
5092
5093
5094
5095
5096
5097
5098 { $as_echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
5099 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5100 if test "${lt_cv_ld_reload_flag+set}" = set; then
5101 $as_echo_n "(cached) " >&6
5102 else
5103 lt_cv_ld_reload_flag='-r'
5104 fi
5105 { $as_echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
5106 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5107 reload_flag=$lt_cv_ld_reload_flag
5108 case $reload_flag in
5109 "" | " "*) ;;
5110 *) reload_flag=" $reload_flag" ;;
5111 esac
5112 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5113 case $host_os in
5114 darwin*)
5115 if test "$GCC" = yes; then
5116 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5117 else
5118 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5119 fi
5120 ;;
5121 esac
5122
5123
5124
5125
5126
5127
5128
5129
5130
5131 if test -n "$ac_tool_prefix"; then
5132 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5133 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5134 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5135 $as_echo_n "checking for $ac_word... " >&6; }
5136 if test "${ac_cv_prog_OBJDUMP+set}" = set; then
5137 $as_echo_n "(cached) " >&6
5138 else
5139 if test -n "$OBJDUMP"; then
5140 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5141 else
5142 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5143 for as_dir in $PATH
5144 do
5145 IFS=$as_save_IFS
5146 test -z "$as_dir" && as_dir=.
5147 for ac_exec_ext in '' $ac_executable_extensions; do
5148 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5149 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5150 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5151 break 2
5152 fi
5153 done
5154 done
5155 IFS=$as_save_IFS
5156
5157 fi
5158 fi
5159 OBJDUMP=$ac_cv_prog_OBJDUMP
5160 if test -n "$OBJDUMP"; then
5161 { $as_echo "$as_me:$LINENO: result: $OBJDUMP" >&5
5162 $as_echo "$OBJDUMP" >&6; }
5163 else
5164 { $as_echo "$as_me:$LINENO: result: no" >&5
5165 $as_echo "no" >&6; }
5166 fi
5167
5168
5169 fi
5170 if test -z "$ac_cv_prog_OBJDUMP"; then
5171 ac_ct_OBJDUMP=$OBJDUMP
5172 # Extract the first word of "objdump", so it can be a program name with args.
5173 set dummy objdump; ac_word=$2
5174 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5175 $as_echo_n "checking for $ac_word... " >&6; }
5176 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
5177 $as_echo_n "(cached) " >&6
5178 else
5179 if test -n "$ac_ct_OBJDUMP"; then
5180 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5181 else
5182 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5183 for as_dir in $PATH
5184 do
5185 IFS=$as_save_IFS
5186 test -z "$as_dir" && as_dir=.
5187 for ac_exec_ext in '' $ac_executable_extensions; do
5188 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5189 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5190 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5191 break 2
5192 fi
5193 done
5194 done
5195 IFS=$as_save_IFS
5196
5197 fi
5198 fi
5199 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5200 if test -n "$ac_ct_OBJDUMP"; then
5201 { $as_echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
5202 $as_echo "$ac_ct_OBJDUMP" >&6; }
5203 else
5204 { $as_echo "$as_me:$LINENO: result: no" >&5
5205 $as_echo "no" >&6; }
5206 fi
5207
5208 if test "x$ac_ct_OBJDUMP" = x; then
5209 OBJDUMP="false"
5210 else
5211 case $cross_compiling:$ac_tool_warned in
5212 yes:)
5213 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5214 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5215 ac_tool_warned=yes ;;
5216 esac
5217 OBJDUMP=$ac_ct_OBJDUMP
5218 fi
5219 else
5220 OBJDUMP="$ac_cv_prog_OBJDUMP"
5221 fi
5222
5223 test -z "$OBJDUMP" && OBJDUMP=objdump
5224
5225
5226
5227
5228
5229
5230
5231
5232
5233 { $as_echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
5234 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5235 if test "${lt_cv_deplibs_check_method+set}" = set; then
5236 $as_echo_n "(cached) " >&6
5237 else
5238 lt_cv_file_magic_cmd='$MAGIC_CMD'
5239 lt_cv_file_magic_test_file=
5240 lt_cv_deplibs_check_method='unknown'
5241 # Need to set the preceding variable on all platforms that support
5242 # interlibrary dependencies.
5243 # 'none' -- dependencies not supported.
5244 # `unknown' -- same as none, but documents that we really don't know.
5245 # 'pass_all' -- all dependencies passed with no checks.
5246 # 'test_compile' -- check by making test program.
5247 # 'file_magic [[regex]]' -- check by looking for files in library path
5248 # which responds to the $file_magic_cmd with a given extended regex.
5249 # If you have `file' or equivalent on your system and you're not sure
5250 # whether `pass_all' will *always* work, you probably want this one.
5251
5252 case $host_os in
5253 aix[4-9]*)
5254 lt_cv_deplibs_check_method=pass_all
5255 ;;
5256
5257 beos*)
5258 lt_cv_deplibs_check_method=pass_all
5259 ;;
5260
5261 bsdi[45]*)
5262 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5263 lt_cv_file_magic_cmd='/usr/bin/file -L'
5264 lt_cv_file_magic_test_file=/shlib/libc.so
5265 ;;
5266
5267 cygwin*)
5268 # func_win32_libid is a shell function defined in ltmain.sh
5269 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5270 lt_cv_file_magic_cmd='func_win32_libid'
5271 ;;
5272
5273 mingw* | pw32*)
5274 # Base MSYS/MinGW do not provide the 'file' command needed by
5275 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5276 # unless we find 'file', for example because we are cross-compiling.
5277 if ( file / ) >/dev/null 2>&1; then
5278 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5279 lt_cv_file_magic_cmd='func_win32_libid'
5280 else
5281 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5282 lt_cv_file_magic_cmd='$OBJDUMP -f'
5283 fi
5284 ;;
5285
5286 cegcc)
5287 # use the weaker test based on 'objdump'. See mingw*.
5288 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5289 lt_cv_file_magic_cmd='$OBJDUMP -f'
5290 ;;
5291
5292 darwin* | rhapsody*)
5293 lt_cv_deplibs_check_method=pass_all
5294 ;;
5295
5296 freebsd* | dragonfly*)
5297 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5298 case $host_cpu in
5299 i*86 )
5300 # Not sure whether the presence of OpenBSD here was a mistake.
5301 # Let's accept both of them until this is cleared up.
5302 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5303 lt_cv_file_magic_cmd=/usr/bin/file
5304 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5305 ;;
5306 esac
5307 else
5308 lt_cv_deplibs_check_method=pass_all
5309 fi
5310 ;;
5311
5312 gnu*)
5313 lt_cv_deplibs_check_method=pass_all
5314 ;;
5315
5316 hpux10.20* | hpux11*)
5317 lt_cv_file_magic_cmd=/usr/bin/file
5318 case $host_cpu in
5319 ia64*)
5320 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5321 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5322 ;;
5323 hppa*64*)
5324 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'
5325 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5326 ;;
5327 *)
5328 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5329 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5330 ;;
5331 esac
5332 ;;
5333
5334 interix[3-9]*)
5335 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5336 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5337 ;;
5338
5339 irix5* | irix6* | nonstopux*)
5340 case $LD in
5341 *-32|*"-32 ") libmagic=32-bit;;
5342 *-n32|*"-n32 ") libmagic=N32;;
5343 *-64|*"-64 ") libmagic=64-bit;;
5344 *) libmagic=never-match;;
5345 esac
5346 lt_cv_deplibs_check_method=pass_all
5347 ;;
5348
5349 # This must be Linux ELF.
5350 linux* | k*bsd*-gnu)
5351 lt_cv_deplibs_check_method=pass_all
5352 ;;
5353
5354 netbsd*)
5355 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5356 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5357 else
5358 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5359 fi
5360 ;;
5361
5362 newos6*)
5363 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5364 lt_cv_file_magic_cmd=/usr/bin/file
5365 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5366 ;;
5367
5368 *nto* | *qnx*)
5369 lt_cv_deplibs_check_method=pass_all
5370 ;;
5371
5372 openbsd*)
5373 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5374 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5375 else
5376 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5377 fi
5378 ;;
5379
5380 osf3* | osf4* | osf5*)
5381 lt_cv_deplibs_check_method=pass_all
5382 ;;
5383
5384 rdos*)
5385 lt_cv_deplibs_check_method=pass_all
5386 ;;
5387
5388 solaris*)
5389 lt_cv_deplibs_check_method=pass_all
5390 ;;
5391
5392 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5393 lt_cv_deplibs_check_method=pass_all
5394 ;;
5395
5396 sysv4 | sysv4.3*)
5397 case $host_vendor in
5398 motorola)
5399 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]'
5400 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5401 ;;
5402 ncr)
5403 lt_cv_deplibs_check_method=pass_all
5404 ;;
5405 sequent)
5406 lt_cv_file_magic_cmd='/bin/file'
5407 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5408 ;;
5409 sni)
5410 lt_cv_file_magic_cmd='/bin/file'
5411 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5412 lt_cv_file_magic_test_file=/lib/libc.so
5413 ;;
5414 siemens)
5415 lt_cv_deplibs_check_method=pass_all
5416 ;;
5417 pc)
5418 lt_cv_deplibs_check_method=pass_all
5419 ;;
5420 esac
5421 ;;
5422
5423 tpf*)
5424 lt_cv_deplibs_check_method=pass_all
5425 ;;
5426 esac
5427
5428 fi
5429 { $as_echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
5430 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5431 file_magic_cmd=$lt_cv_file_magic_cmd
5432 deplibs_check_method=$lt_cv_deplibs_check_method
5433 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5434
5435
5436
5437
5438
5439
5440
5441
5442
5443
5444
5445
5446 if test -n "$ac_tool_prefix"; then
5447 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5448 set dummy ${ac_tool_prefix}ar; ac_word=$2
5449 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5450 $as_echo_n "checking for $ac_word... " >&6; }
5451 if test "${ac_cv_prog_AR+set}" = set; then
5452 $as_echo_n "(cached) " >&6
5453 else
5454 if test -n "$AR"; then
5455 ac_cv_prog_AR="$AR" # Let the user override the test.
5456 else
5457 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5458 for as_dir in $PATH
5459 do
5460 IFS=$as_save_IFS
5461 test -z "$as_dir" && as_dir=.
5462 for ac_exec_ext in '' $ac_executable_extensions; do
5463 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5464 ac_cv_prog_AR="${ac_tool_prefix}ar"
5465 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5466 break 2
5467 fi
5468 done
5469 done
5470 IFS=$as_save_IFS
5471
5472 fi
5473 fi
5474 AR=$ac_cv_prog_AR
5475 if test -n "$AR"; then
5476 { $as_echo "$as_me:$LINENO: result: $AR" >&5
5477 $as_echo "$AR" >&6; }
5478 else
5479 { $as_echo "$as_me:$LINENO: result: no" >&5
5480 $as_echo "no" >&6; }
5481 fi
5482
5483
5484 fi
5485 if test -z "$ac_cv_prog_AR"; then
5486 ac_ct_AR=$AR
5487 # Extract the first word of "ar", so it can be a program name with args.
5488 set dummy ar; ac_word=$2
5489 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5490 $as_echo_n "checking for $ac_word... " >&6; }
5491 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5492 $as_echo_n "(cached) " >&6
5493 else
5494 if test -n "$ac_ct_AR"; then
5495 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5496 else
5497 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5498 for as_dir in $PATH
5499 do
5500 IFS=$as_save_IFS
5501 test -z "$as_dir" && as_dir=.
5502 for ac_exec_ext in '' $ac_executable_extensions; do
5503 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5504 ac_cv_prog_ac_ct_AR="ar"
5505 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5506 break 2
5507 fi
5508 done
5509 done
5510 IFS=$as_save_IFS
5511
5512 fi
5513 fi
5514 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5515 if test -n "$ac_ct_AR"; then
5516 { $as_echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5517 $as_echo "$ac_ct_AR" >&6; }
5518 else
5519 { $as_echo "$as_me:$LINENO: result: no" >&5
5520 $as_echo "no" >&6; }
5521 fi
5522
5523 if test "x$ac_ct_AR" = x; then
5524 AR="false"
5525 else
5526 case $cross_compiling:$ac_tool_warned in
5527 yes:)
5528 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5529 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5530 ac_tool_warned=yes ;;
5531 esac
5532 AR=$ac_ct_AR
5533 fi
5534 else
5535 AR="$ac_cv_prog_AR"
5536 fi
5537
5538 test -z "$AR" && AR=ar
5539 test -z "$AR_FLAGS" && AR_FLAGS=cru
5540
5541
5542
5543
5544
5545
5546
5547
5548
5549
5550
5551 if test -n "$ac_tool_prefix"; then
5552 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5553 set dummy ${ac_tool_prefix}strip; ac_word=$2
5554 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5555 $as_echo_n "checking for $ac_word... " >&6; }
5556 if test "${ac_cv_prog_STRIP+set}" = set; then
5557 $as_echo_n "(cached) " >&6
5558 else
5559 if test -n "$STRIP"; then
5560 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5561 else
5562 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5563 for as_dir in $PATH
5564 do
5565 IFS=$as_save_IFS
5566 test -z "$as_dir" && as_dir=.
5567 for ac_exec_ext in '' $ac_executable_extensions; do
5568 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5569 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5570 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5571 break 2
5572 fi
5573 done
5574 done
5575 IFS=$as_save_IFS
5576
5577 fi
5578 fi
5579 STRIP=$ac_cv_prog_STRIP
5580 if test -n "$STRIP"; then
5581 { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
5582 $as_echo "$STRIP" >&6; }
5583 else
5584 { $as_echo "$as_me:$LINENO: result: no" >&5
5585 $as_echo "no" >&6; }
5586 fi
5587
5588
5589 fi
5590 if test -z "$ac_cv_prog_STRIP"; then
5591 ac_ct_STRIP=$STRIP
5592 # Extract the first word of "strip", so it can be a program name with args.
5593 set dummy strip; ac_word=$2
5594 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5595 $as_echo_n "checking for $ac_word... " >&6; }
5596 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5597 $as_echo_n "(cached) " >&6
5598 else
5599 if test -n "$ac_ct_STRIP"; then
5600 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5601 else
5602 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5603 for as_dir in $PATH
5604 do
5605 IFS=$as_save_IFS
5606 test -z "$as_dir" && as_dir=.
5607 for ac_exec_ext in '' $ac_executable_extensions; do
5608 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5609 ac_cv_prog_ac_ct_STRIP="strip"
5610 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5611 break 2
5612 fi
5613 done
5614 done
5615 IFS=$as_save_IFS
5616
5617 fi
5618 fi
5619 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5620 if test -n "$ac_ct_STRIP"; then
5621 { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5622 $as_echo "$ac_ct_STRIP" >&6; }
5623 else
5624 { $as_echo "$as_me:$LINENO: result: no" >&5
5625 $as_echo "no" >&6; }
5626 fi
5627
5628 if test "x$ac_ct_STRIP" = x; then
5629 STRIP=":"
5630 else
5631 case $cross_compiling:$ac_tool_warned in
5632 yes:)
5633 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5634 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5635 ac_tool_warned=yes ;;
5636 esac
5637 STRIP=$ac_ct_STRIP
5638 fi
5639 else
5640 STRIP="$ac_cv_prog_STRIP"
5641 fi
5642
5643 test -z "$STRIP" && STRIP=:
5644
5645
5646
5647
5648
5649
5650 if test -n "$ac_tool_prefix"; then
5651 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5652 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5653 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5654 $as_echo_n "checking for $ac_word... " >&6; }
5655 if test "${ac_cv_prog_RANLIB+set}" = set; then
5656 $as_echo_n "(cached) " >&6
5657 else
5658 if test -n "$RANLIB"; then
5659 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5660 else
5661 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5662 for as_dir in $PATH
5663 do
5664 IFS=$as_save_IFS
5665 test -z "$as_dir" && as_dir=.
5666 for ac_exec_ext in '' $ac_executable_extensions; do
5667 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5668 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5669 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5670 break 2
5671 fi
5672 done
5673 done
5674 IFS=$as_save_IFS
5675
5676 fi
5677 fi
5678 RANLIB=$ac_cv_prog_RANLIB
5679 if test -n "$RANLIB"; then
5680 { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
5681 $as_echo "$RANLIB" >&6; }
5682 else
5683 { $as_echo "$as_me:$LINENO: result: no" >&5
5684 $as_echo "no" >&6; }
5685 fi
5686
5687
5688 fi
5689 if test -z "$ac_cv_prog_RANLIB"; then
5690 ac_ct_RANLIB=$RANLIB
5691 # Extract the first word of "ranlib", so it can be a program name with args.
5692 set dummy ranlib; ac_word=$2
5693 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5694 $as_echo_n "checking for $ac_word... " >&6; }
5695 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5696 $as_echo_n "(cached) " >&6
5697 else
5698 if test -n "$ac_ct_RANLIB"; then
5699 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5700 else
5701 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5702 for as_dir in $PATH
5703 do
5704 IFS=$as_save_IFS
5705 test -z "$as_dir" && as_dir=.
5706 for ac_exec_ext in '' $ac_executable_extensions; do
5707 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5708 ac_cv_prog_ac_ct_RANLIB="ranlib"
5709 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5710 break 2
5711 fi
5712 done
5713 done
5714 IFS=$as_save_IFS
5715
5716 fi
5717 fi
5718 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5719 if test -n "$ac_ct_RANLIB"; then
5720 { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5721 $as_echo "$ac_ct_RANLIB" >&6; }
5722 else
5723 { $as_echo "$as_me:$LINENO: result: no" >&5
5724 $as_echo "no" >&6; }
5725 fi
5726
5727 if test "x$ac_ct_RANLIB" = x; then
5728 RANLIB=":"
5729 else
5730 case $cross_compiling:$ac_tool_warned in
5731 yes:)
5732 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5733 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5734 ac_tool_warned=yes ;;
5735 esac
5736 RANLIB=$ac_ct_RANLIB
5737 fi
5738 else
5739 RANLIB="$ac_cv_prog_RANLIB"
5740 fi
5741
5742 test -z "$RANLIB" && RANLIB=:
5743
5744
5745
5746
5747
5748
5749 # Determine commands to create old-style static archives.
5750 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5751 old_postinstall_cmds='chmod 644 $oldlib'
5752 old_postuninstall_cmds=
5753
5754 if test -n "$RANLIB"; then
5755 case $host_os in
5756 openbsd*)
5757 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
5758 ;;
5759 *)
5760 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
5761 ;;
5762 esac
5763 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5764 fi
5765
5766
5767
5768
5769
5770
5771
5772
5773
5774
5775
5776
5777
5778
5779
5780
5781
5782
5783
5784
5785
5786
5787
5788
5789
5790
5791
5792
5793
5794
5795
5796
5797
5798
5799 # If no C compiler was specified, use CC.
5800 LTCC=${LTCC-"$CC"}
5801
5802 # If no C compiler flags were specified, use CFLAGS.
5803 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5804
5805 # Allow CC to be a program name with arguments.
5806 compiler=$CC
5807
5808
5809 # Check for command to grab the raw symbol name followed by C symbol from nm.
5810 { $as_echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5811 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
5812 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5813 $as_echo_n "(cached) " >&6
5814 else
5815
5816 # These are sane defaults that work on at least a few old systems.
5817 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
5818
5819 # Character class describing NM global symbol codes.
5820 symcode='[BCDEGRST]'
5821
5822 # Regexp to match symbols that can be accessed directly from C.
5823 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5824
5825 # Define system-specific variables.
5826 case $host_os in
5827 aix*)
5828 symcode='[BCDT]'
5829 ;;
5830 cygwin* | mingw* | pw32* | cegcc*)
5831 symcode='[ABCDGISTW]'
5832 ;;
5833 hpux*)
5834 if test "$host_cpu" = ia64; then
5835 symcode='[ABCDEGRST]'
5836 fi
5837 ;;
5838 irix* | nonstopux*)
5839 symcode='[BCDEGRST]'
5840 ;;
5841 osf*)
5842 symcode='[BCDEGQRST]'
5843 ;;
5844 solaris*)
5845 symcode='[BDRT]'
5846 ;;
5847 sco3.2v5*)
5848 symcode='[DT]'
5849 ;;
5850 sysv4.2uw2*)
5851 symcode='[DT]'
5852 ;;
5853 sysv5* | sco5v6* | unixware* | OpenUNIX*)
5854 symcode='[ABDT]'
5855 ;;
5856 sysv4)
5857 symcode='[DFNSTU]'
5858 ;;
5859 esac
5860
5861 # If we're using GNU nm, then use its standard symbol codes.
5862 case `$NM -V 2>&1` in
5863 *GNU* | *'with BFD'*)
5864 symcode='[ABCDGIRSTW]' ;;
5865 esac
5866
5867 # Transform an extracted symbol line into a proper C declaration.
5868 # Some systems (esp. on ia64) link data and code symbols differently,
5869 # so use this general approach.
5870 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5871
5872 # Transform an extracted symbol line into symbol name and symbol address
5873 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
5874 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
5875
5876 # Handle CRLF in mingw tool chain
5877 opt_cr=
5878 case $build_os in
5879 mingw*)
5880 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5881 ;;
5882 esac
5883
5884 # Try without a prefix underscore, then with it.
5885 for ac_symprfx in "" "_"; do
5886
5887 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5888 symxfrm="\\1 $ac_symprfx\\2 \\2"
5889
5890 # Write the raw and C identifiers.
5891 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5892 # Fake it for dumpbin and say T for any non-static function
5893 # and D for any global variable.
5894 # Also find C++ and __fastcall symbols from MSVC++,
5895 # which start with @ or ?.
5896 lt_cv_sys_global_symbol_pipe="$AWK '"\
5897 " {last_section=section; section=\$ 3};"\
5898 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5899 " \$ 0!~/External *\|/{next};"\
5900 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5901 " {if(hide[section]) next};"\
5902 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5903 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5904 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
5905 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5906 " ' prfx=^$ac_symprfx"
5907 else
5908 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5909 fi
5910
5911 # Check to see that the pipe works correctly.
5912 pipe_works=no
5913
5914 rm -f conftest*
5915 cat > conftest.$ac_ext <<_LT_EOF
5916 #ifdef __cplusplus
5917 extern "C" {
5918 #endif
5919 char nm_test_var;
5920 void nm_test_func(void);
5921 void nm_test_func(void){}
5922 #ifdef __cplusplus
5923 }
5924 #endif
5925 int main(){nm_test_var='a';nm_test_func();return(0);}
5926 _LT_EOF
5927
5928 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5929 (eval $ac_compile) 2>&5
5930 ac_status=$?
5931 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5932 (exit $ac_status); }; then
5933 # Now try to grab the symbols.
5934 nlist=conftest.nm
5935 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5936 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5937 ac_status=$?
5938 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5939 (exit $ac_status); } && test -s "$nlist"; then
5940 # Try sorting and uniquifying the output.
5941 if sort "$nlist" | uniq > "$nlist"T; then
5942 mv -f "$nlist"T "$nlist"
5943 else
5944 rm -f "$nlist"T
5945 fi
5946
5947 # Make sure that we snagged all the symbols we need.
5948 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5949 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5950 cat <<_LT_EOF > conftest.$ac_ext
5951 #ifdef __cplusplus
5952 extern "C" {
5953 #endif
5954
5955 _LT_EOF
5956 # Now generate the symbol file.
5957 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
5958
5959 cat <<_LT_EOF >> conftest.$ac_ext
5960
5961 /* The mapping between symbol names and symbols. */
5962 const struct {
5963 const char *name;
5964 void *address;
5965 }
5966 lt__PROGRAM__LTX_preloaded_symbols[] =
5967 {
5968 { "@PROGRAM@", (void *) 0 },
5969 _LT_EOF
5970 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5971 cat <<\_LT_EOF >> conftest.$ac_ext
5972 {0, (void *) 0}
5973 };
5974
5975 /* This works around a problem in FreeBSD linker */
5976 #ifdef FREEBSD_WORKAROUND
5977 static const void *lt_preloaded_setup() {
5978 return lt__PROGRAM__LTX_preloaded_symbols;
5979 }
5980 #endif
5981
5982 #ifdef __cplusplus
5983 }
5984 #endif
5985 _LT_EOF
5986 # Now try linking the two files.
5987 mv conftest.$ac_objext conftstm.$ac_objext
5988 lt_save_LIBS="$LIBS"
5989 lt_save_CFLAGS="$CFLAGS"
5990 LIBS="conftstm.$ac_objext"
5991 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5992 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5993 (eval $ac_link) 2>&5
5994 ac_status=$?
5995 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5996 (exit $ac_status); } && test -s conftest${ac_exeext}; then
5997 pipe_works=yes
5998 fi
5999 LIBS="$lt_save_LIBS"
6000 CFLAGS="$lt_save_CFLAGS"
6001 else
6002 echo "cannot find nm_test_func in $nlist" >&5
6003 fi
6004 else
6005 echo "cannot find nm_test_var in $nlist" >&5
6006 fi
6007 else
6008 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6009 fi
6010 else
6011 echo "$progname: failed program was:" >&5
6012 cat conftest.$ac_ext >&5
6013 fi
6014 rm -rf conftest* conftst*
6015
6016 # Do not use the global_symbol_pipe unless it works.
6017 if test "$pipe_works" = yes; then
6018 break
6019 else
6020 lt_cv_sys_global_symbol_pipe=
6021 fi
6022 done
6023
6024 fi
6025
6026 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6027 lt_cv_sys_global_symbol_to_cdecl=
6028 fi
6029 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6030 { $as_echo "$as_me:$LINENO: result: failed" >&5
6031 $as_echo "failed" >&6; }
6032 else
6033 { $as_echo "$as_me:$LINENO: result: ok" >&5
6034 $as_echo "ok" >&6; }
6035 fi
6036
6037
6038
6039
6040
6041
6042
6043
6044
6045
6046
6047
6048
6049
6050
6051
6052
6053
6054
6055
6056
6057
6058
6059 # Check whether --enable-libtool-lock was given.
6060 if test "${enable_libtool_lock+set}" = set; then
6061 enableval=$enable_libtool_lock;
6062 fi
6063
6064 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6065
6066 # Some flags need to be propagated to the compiler or linker for good
6067 # libtool support.
6068 case $host in
6069 ia64-*-hpux*)
6070 # Find out which ABI we are using.
6071 echo 'int i;' > conftest.$ac_ext
6072 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6073 (eval $ac_compile) 2>&5
6074 ac_status=$?
6075 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6076 (exit $ac_status); }; then
6077 case `/usr/bin/file conftest.$ac_objext` in
6078 *ELF-32*)
6079 HPUX_IA64_MODE="32"
6080 ;;
6081 *ELF-64*)
6082 HPUX_IA64_MODE="64"
6083 ;;
6084 esac
6085 fi
6086 rm -rf conftest*
6087 ;;
6088 *-*-irix6*)
6089 # Find out which ABI we are using.
6090 echo '#line 6090 "configure"' > conftest.$ac_ext
6091 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6092 (eval $ac_compile) 2>&5
6093 ac_status=$?
6094 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6095 (exit $ac_status); }; then
6096 if test "$lt_cv_prog_gnu_ld" = yes; then
6097 case `/usr/bin/file conftest.$ac_objext` in
6098 *32-bit*)
6099 LD="${LD-ld} -melf32bsmip"
6100 ;;
6101 *N32*)
6102 LD="${LD-ld} -melf32bmipn32"
6103 ;;
6104 *64-bit*)
6105 LD="${LD-ld} -melf64bmip"
6106 ;;
6107 esac
6108 else
6109 case `/usr/bin/file conftest.$ac_objext` in
6110 *32-bit*)
6111 LD="${LD-ld} -32"
6112 ;;
6113 *N32*)
6114 LD="${LD-ld} -n32"
6115 ;;
6116 *64-bit*)
6117 LD="${LD-ld} -64"
6118 ;;
6119 esac
6120 fi
6121 fi
6122 rm -rf conftest*
6123 ;;
6124
6125 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6126 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6127 # Find out which ABI we are using.
6128 echo 'int i;' > conftest.$ac_ext
6129 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6130 (eval $ac_compile) 2>&5
6131 ac_status=$?
6132 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6133 (exit $ac_status); }; then
6134 case `/usr/bin/file conftest.o` in
6135 *32-bit*)
6136 case $host in
6137 x86_64-*kfreebsd*-gnu)
6138 LD="${LD-ld} -m elf_i386_fbsd"
6139 ;;
6140 x86_64-*linux*)
6141 LD="${LD-ld} -m elf_i386"
6142 ;;
6143 ppc64-*linux*|powerpc64-*linux*)
6144 LD="${LD-ld} -m elf32ppclinux"
6145 ;;
6146 s390x-*linux*)
6147 LD="${LD-ld} -m elf_s390"
6148 ;;
6149 sparc64-*linux*)
6150 LD="${LD-ld} -m elf32_sparc"
6151 ;;
6152 esac
6153 ;;
6154 *64-bit*)
6155 case $host in
6156 x86_64-*kfreebsd*-gnu)
6157 LD="${LD-ld} -m elf_x86_64_fbsd"
6158 ;;
6159 x86_64-*linux*)
6160 LD="${LD-ld} -m elf_x86_64"
6161 ;;
6162 ppc*-*linux*|powerpc*-*linux*)
6163 LD="${LD-ld} -m elf64ppc"
6164 ;;
6165 s390*-*linux*|s390*-*tpf*)
6166 LD="${LD-ld} -m elf64_s390"
6167 ;;
6168 sparc*-*linux*)
6169 LD="${LD-ld} -m elf64_sparc"
6170 ;;
6171 esac
6172 ;;
6173 esac
6174 fi
6175 rm -rf conftest*
6176 ;;
6177
6178 *-*-sco3.2v5*)
6179 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6180 SAVE_CFLAGS="$CFLAGS"
6181 CFLAGS="$CFLAGS -belf"
6182 { $as_echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
6183 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6184 if test "${lt_cv_cc_needs_belf+set}" = set; then
6185 $as_echo_n "(cached) " >&6
6186 else
6187 ac_ext=c
6188 ac_cpp='$CPP $CPPFLAGS'
6189 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6190 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6191 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6192
6193 cat >conftest.$ac_ext <<_ACEOF
6194 /* confdefs.h. */
6195 _ACEOF
6196 cat confdefs.h >>conftest.$ac_ext
6197 cat >>conftest.$ac_ext <<_ACEOF
6198 /* end confdefs.h. */
6199
6200 int
6201 main ()
6202 {
6203
6204 ;
6205 return 0;
6206 }
6207 _ACEOF
6208 rm -f conftest.$ac_objext conftest$ac_exeext
6209 if { (ac_try="$ac_link"
6210 case "(($ac_try" in
6211 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6212 *) ac_try_echo=$ac_try;;
6213 esac
6214 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6215 $as_echo "$ac_try_echo") >&5
6216 (eval "$ac_link") 2>conftest.er1
6217 ac_status=$?
6218 grep -v '^ *+' conftest.er1 >conftest.err
6219 rm -f conftest.er1
6220 cat conftest.err >&5
6221 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6222 (exit $ac_status); } && {
6223 test -z "$ac_c_werror_flag" ||
6224 test ! -s conftest.err
6225 } && test -s conftest$ac_exeext && {
6226 test "$cross_compiling" = yes ||
6227 $as_test_x conftest$ac_exeext
6228 }; then
6229 lt_cv_cc_needs_belf=yes
6230 else
6231 $as_echo "$as_me: failed program was:" >&5
6232 sed 's/^/| /' conftest.$ac_ext >&5
6233
6234 lt_cv_cc_needs_belf=no
6235 fi
6236
6237 rm -rf conftest.dSYM
6238 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6239 conftest$ac_exeext conftest.$ac_ext
6240 ac_ext=c
6241 ac_cpp='$CPP $CPPFLAGS'
6242 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6243 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6244 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6245
6246 fi
6247 { $as_echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
6248 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6249 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6250 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6251 CFLAGS="$SAVE_CFLAGS"
6252 fi
6253 ;;
6254 sparc*-*solaris*)
6255 # Find out which ABI we are using.
6256 echo 'int i;' > conftest.$ac_ext
6257 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6258 (eval $ac_compile) 2>&5
6259 ac_status=$?
6260 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6261 (exit $ac_status); }; then
6262 case `/usr/bin/file conftest.o` in
6263 *64-bit*)
6264 case $lt_cv_prog_gnu_ld in
6265 yes*) LD="${LD-ld} -m elf64_sparc" ;;
6266 *)
6267 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6268 LD="${LD-ld} -64"
6269 fi
6270 ;;
6271 esac
6272 ;;
6273 esac
6274 fi
6275 rm -rf conftest*
6276 ;;
6277 esac
6278
6279 need_locks="$enable_libtool_lock"
6280
6281
6282 case $host_os in
6283 rhapsody* | darwin*)
6284 if test -n "$ac_tool_prefix"; then
6285 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6286 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6287 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6288 $as_echo_n "checking for $ac_word... " >&6; }
6289 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
6290 $as_echo_n "(cached) " >&6
6291 else
6292 if test -n "$DSYMUTIL"; then
6293 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6294 else
6295 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6296 for as_dir in $PATH
6297 do
6298 IFS=$as_save_IFS
6299 test -z "$as_dir" && as_dir=.
6300 for ac_exec_ext in '' $ac_executable_extensions; do
6301 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6302 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6303 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6304 break 2
6305 fi
6306 done
6307 done
6308 IFS=$as_save_IFS
6309
6310 fi
6311 fi
6312 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6313 if test -n "$DSYMUTIL"; then
6314 { $as_echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
6315 $as_echo "$DSYMUTIL" >&6; }
6316 else
6317 { $as_echo "$as_me:$LINENO: result: no" >&5
6318 $as_echo "no" >&6; }
6319 fi
6320
6321
6322 fi
6323 if test -z "$ac_cv_prog_DSYMUTIL"; then
6324 ac_ct_DSYMUTIL=$DSYMUTIL
6325 # Extract the first word of "dsymutil", so it can be a program name with args.
6326 set dummy dsymutil; ac_word=$2
6327 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6328 $as_echo_n "checking for $ac_word... " >&6; }
6329 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
6330 $as_echo_n "(cached) " >&6
6331 else
6332 if test -n "$ac_ct_DSYMUTIL"; then
6333 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6334 else
6335 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6336 for as_dir in $PATH
6337 do
6338 IFS=$as_save_IFS
6339 test -z "$as_dir" && as_dir=.
6340 for ac_exec_ext in '' $ac_executable_extensions; do
6341 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6342 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6343 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6344 break 2
6345 fi
6346 done
6347 done
6348 IFS=$as_save_IFS
6349
6350 fi
6351 fi
6352 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6353 if test -n "$ac_ct_DSYMUTIL"; then
6354 { $as_echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
6355 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6356 else
6357 { $as_echo "$as_me:$LINENO: result: no" >&5
6358 $as_echo "no" >&6; }
6359 fi
6360
6361 if test "x$ac_ct_DSYMUTIL" = x; then
6362 DSYMUTIL=":"
6363 else
6364 case $cross_compiling:$ac_tool_warned in
6365 yes:)
6366 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6367 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6368 ac_tool_warned=yes ;;
6369 esac
6370 DSYMUTIL=$ac_ct_DSYMUTIL
6371 fi
6372 else
6373 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6374 fi
6375
6376 if test -n "$ac_tool_prefix"; then
6377 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6378 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6379 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6380 $as_echo_n "checking for $ac_word... " >&6; }
6381 if test "${ac_cv_prog_NMEDIT+set}" = set; then
6382 $as_echo_n "(cached) " >&6
6383 else
6384 if test -n "$NMEDIT"; then
6385 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6386 else
6387 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6388 for as_dir in $PATH
6389 do
6390 IFS=$as_save_IFS
6391 test -z "$as_dir" && as_dir=.
6392 for ac_exec_ext in '' $ac_executable_extensions; do
6393 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6394 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6395 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6396 break 2
6397 fi
6398 done
6399 done
6400 IFS=$as_save_IFS
6401
6402 fi
6403 fi
6404 NMEDIT=$ac_cv_prog_NMEDIT
6405 if test -n "$NMEDIT"; then
6406 { $as_echo "$as_me:$LINENO: result: $NMEDIT" >&5
6407 $as_echo "$NMEDIT" >&6; }
6408 else
6409 { $as_echo "$as_me:$LINENO: result: no" >&5
6410 $as_echo "no" >&6; }
6411 fi
6412
6413
6414 fi
6415 if test -z "$ac_cv_prog_NMEDIT"; then
6416 ac_ct_NMEDIT=$NMEDIT
6417 # Extract the first word of "nmedit", so it can be a program name with args.
6418 set dummy nmedit; ac_word=$2
6419 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6420 $as_echo_n "checking for $ac_word... " >&6; }
6421 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
6422 $as_echo_n "(cached) " >&6
6423 else
6424 if test -n "$ac_ct_NMEDIT"; then
6425 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6426 else
6427 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6428 for as_dir in $PATH
6429 do
6430 IFS=$as_save_IFS
6431 test -z "$as_dir" && as_dir=.
6432 for ac_exec_ext in '' $ac_executable_extensions; do
6433 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6434 ac_cv_prog_ac_ct_NMEDIT="nmedit"
6435 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6436 break 2
6437 fi
6438 done
6439 done
6440 IFS=$as_save_IFS
6441
6442 fi
6443 fi
6444 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6445 if test -n "$ac_ct_NMEDIT"; then
6446 { $as_echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
6447 $as_echo "$ac_ct_NMEDIT" >&6; }
6448 else
6449 { $as_echo "$as_me:$LINENO: result: no" >&5
6450 $as_echo "no" >&6; }
6451 fi
6452
6453 if test "x$ac_ct_NMEDIT" = x; then
6454 NMEDIT=":"
6455 else
6456 case $cross_compiling:$ac_tool_warned in
6457 yes:)
6458 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6459 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6460 ac_tool_warned=yes ;;
6461 esac
6462 NMEDIT=$ac_ct_NMEDIT
6463 fi
6464 else
6465 NMEDIT="$ac_cv_prog_NMEDIT"
6466 fi
6467
6468 if test -n "$ac_tool_prefix"; then
6469 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6470 set dummy ${ac_tool_prefix}lipo; ac_word=$2
6471 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6472 $as_echo_n "checking for $ac_word... " >&6; }
6473 if test "${ac_cv_prog_LIPO+set}" = set; then
6474 $as_echo_n "(cached) " >&6
6475 else
6476 if test -n "$LIPO"; then
6477 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6478 else
6479 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6480 for as_dir in $PATH
6481 do
6482 IFS=$as_save_IFS
6483 test -z "$as_dir" && as_dir=.
6484 for ac_exec_ext in '' $ac_executable_extensions; do
6485 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6486 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6487 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6488 break 2
6489 fi
6490 done
6491 done
6492 IFS=$as_save_IFS
6493
6494 fi
6495 fi
6496 LIPO=$ac_cv_prog_LIPO
6497 if test -n "$LIPO"; then
6498 { $as_echo "$as_me:$LINENO: result: $LIPO" >&5
6499 $as_echo "$LIPO" >&6; }
6500 else
6501 { $as_echo "$as_me:$LINENO: result: no" >&5
6502 $as_echo "no" >&6; }
6503 fi
6504
6505
6506 fi
6507 if test -z "$ac_cv_prog_LIPO"; then
6508 ac_ct_LIPO=$LIPO
6509 # Extract the first word of "lipo", so it can be a program name with args.
6510 set dummy lipo; ac_word=$2
6511 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6512 $as_echo_n "checking for $ac_word... " >&6; }
6513 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then
6514 $as_echo_n "(cached) " >&6
6515 else
6516 if test -n "$ac_ct_LIPO"; then
6517 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6518 else
6519 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6520 for as_dir in $PATH
6521 do
6522 IFS=$as_save_IFS
6523 test -z "$as_dir" && as_dir=.
6524 for ac_exec_ext in '' $ac_executable_extensions; do
6525 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6526 ac_cv_prog_ac_ct_LIPO="lipo"
6527 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6528 break 2
6529 fi
6530 done
6531 done
6532 IFS=$as_save_IFS
6533
6534 fi
6535 fi
6536 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6537 if test -n "$ac_ct_LIPO"; then
6538 { $as_echo "$as_me:$LINENO: result: $ac_ct_LIPO" >&5
6539 $as_echo "$ac_ct_LIPO" >&6; }
6540 else
6541 { $as_echo "$as_me:$LINENO: result: no" >&5
6542 $as_echo "no" >&6; }
6543 fi
6544
6545 if test "x$ac_ct_LIPO" = x; then
6546 LIPO=":"
6547 else
6548 case $cross_compiling:$ac_tool_warned in
6549 yes:)
6550 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6551 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6552 ac_tool_warned=yes ;;
6553 esac
6554 LIPO=$ac_ct_LIPO
6555 fi
6556 else
6557 LIPO="$ac_cv_prog_LIPO"
6558 fi
6559
6560 if test -n "$ac_tool_prefix"; then
6561 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6562 set dummy ${ac_tool_prefix}otool; ac_word=$2
6563 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6564 $as_echo_n "checking for $ac_word... " >&6; }
6565 if test "${ac_cv_prog_OTOOL+set}" = set; then
6566 $as_echo_n "(cached) " >&6
6567 else
6568 if test -n "$OTOOL"; then
6569 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6570 else
6571 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6572 for as_dir in $PATH
6573 do
6574 IFS=$as_save_IFS
6575 test -z "$as_dir" && as_dir=.
6576 for ac_exec_ext in '' $ac_executable_extensions; do
6577 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6578 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6579 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6580 break 2
6581 fi
6582 done
6583 done
6584 IFS=$as_save_IFS
6585
6586 fi
6587 fi
6588 OTOOL=$ac_cv_prog_OTOOL
6589 if test -n "$OTOOL"; then
6590 { $as_echo "$as_me:$LINENO: result: $OTOOL" >&5
6591 $as_echo "$OTOOL" >&6; }
6592 else
6593 { $as_echo "$as_me:$LINENO: result: no" >&5
6594 $as_echo "no" >&6; }
6595 fi
6596
6597
6598 fi
6599 if test -z "$ac_cv_prog_OTOOL"; then
6600 ac_ct_OTOOL=$OTOOL
6601 # Extract the first word of "otool", so it can be a program name with args.
6602 set dummy otool; ac_word=$2
6603 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6604 $as_echo_n "checking for $ac_word... " >&6; }
6605 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then
6606 $as_echo_n "(cached) " >&6
6607 else
6608 if test -n "$ac_ct_OTOOL"; then
6609 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6610 else
6611 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6612 for as_dir in $PATH
6613 do
6614 IFS=$as_save_IFS
6615 test -z "$as_dir" && as_dir=.
6616 for ac_exec_ext in '' $ac_executable_extensions; do
6617 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6618 ac_cv_prog_ac_ct_OTOOL="otool"
6619 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6620 break 2
6621 fi
6622 done
6623 done
6624 IFS=$as_save_IFS
6625
6626 fi
6627 fi
6628 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6629 if test -n "$ac_ct_OTOOL"; then
6630 { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL" >&5
6631 $as_echo "$ac_ct_OTOOL" >&6; }
6632 else
6633 { $as_echo "$as_me:$LINENO: result: no" >&5
6634 $as_echo "no" >&6; }
6635 fi
6636
6637 if test "x$ac_ct_OTOOL" = x; then
6638 OTOOL=":"
6639 else
6640 case $cross_compiling:$ac_tool_warned in
6641 yes:)
6642 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6643 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6644 ac_tool_warned=yes ;;
6645 esac
6646 OTOOL=$ac_ct_OTOOL
6647 fi
6648 else
6649 OTOOL="$ac_cv_prog_OTOOL"
6650 fi
6651
6652 if test -n "$ac_tool_prefix"; then
6653 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6654 set dummy ${ac_tool_prefix}otool64; ac_word=$2
6655 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6656 $as_echo_n "checking for $ac_word... " >&6; }
6657 if test "${ac_cv_prog_OTOOL64+set}" = set; then
6658 $as_echo_n "(cached) " >&6
6659 else
6660 if test -n "$OTOOL64"; then
6661 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6662 else
6663 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6664 for as_dir in $PATH
6665 do
6666 IFS=$as_save_IFS
6667 test -z "$as_dir" && as_dir=.
6668 for ac_exec_ext in '' $ac_executable_extensions; do
6669 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6670 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6671 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6672 break 2
6673 fi
6674 done
6675 done
6676 IFS=$as_save_IFS
6677
6678 fi
6679 fi
6680 OTOOL64=$ac_cv_prog_OTOOL64
6681 if test -n "$OTOOL64"; then
6682 { $as_echo "$as_me:$LINENO: result: $OTOOL64" >&5
6683 $as_echo "$OTOOL64" >&6; }
6684 else
6685 { $as_echo "$as_me:$LINENO: result: no" >&5
6686 $as_echo "no" >&6; }
6687 fi
6688
6689
6690 fi
6691 if test -z "$ac_cv_prog_OTOOL64"; then
6692 ac_ct_OTOOL64=$OTOOL64
6693 # Extract the first word of "otool64", so it can be a program name with args.
6694 set dummy otool64; ac_word=$2
6695 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6696 $as_echo_n "checking for $ac_word... " >&6; }
6697 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then
6698 $as_echo_n "(cached) " >&6
6699 else
6700 if test -n "$ac_ct_OTOOL64"; then
6701 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6702 else
6703 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6704 for as_dir in $PATH
6705 do
6706 IFS=$as_save_IFS
6707 test -z "$as_dir" && as_dir=.
6708 for ac_exec_ext in '' $ac_executable_extensions; do
6709 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6710 ac_cv_prog_ac_ct_OTOOL64="otool64"
6711 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6712 break 2
6713 fi
6714 done
6715 done
6716 IFS=$as_save_IFS
6717
6718 fi
6719 fi
6720 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6721 if test -n "$ac_ct_OTOOL64"; then
6722 { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL64" >&5
6723 $as_echo "$ac_ct_OTOOL64" >&6; }
6724 else
6725 { $as_echo "$as_me:$LINENO: result: no" >&5
6726 $as_echo "no" >&6; }
6727 fi
6728
6729 if test "x$ac_ct_OTOOL64" = x; then
6730 OTOOL64=":"
6731 else
6732 case $cross_compiling:$ac_tool_warned in
6733 yes:)
6734 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6735 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6736 ac_tool_warned=yes ;;
6737 esac
6738 OTOOL64=$ac_ct_OTOOL64
6739 fi
6740 else
6741 OTOOL64="$ac_cv_prog_OTOOL64"
6742 fi
6743
6744
6745
6746
6747
6748
6749
6750
6751
6752
6753
6754
6755
6756
6757
6758
6759
6760
6761
6762
6763
6764
6765
6766
6767
6768
6769
6770 { $as_echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
6771 $as_echo_n "checking for -single_module linker flag... " >&6; }
6772 if test "${lt_cv_apple_cc_single_mod+set}" = set; then
6773 $as_echo_n "(cached) " >&6
6774 else
6775 lt_cv_apple_cc_single_mod=no
6776 if test -z "${LT_MULTI_MODULE}"; then
6777 # By default we will add the -single_module flag. You can override
6778 # by either setting the environment variable LT_MULTI_MODULE
6779 # non-empty at configure time, or by adding -multi_module to the
6780 # link flags.
6781 rm -rf libconftest.dylib*
6782 echo "int foo(void){return 1;}" > conftest.c
6783 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6784 -dynamiclib -Wl,-single_module conftest.c" >&5
6785 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6786 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
6787 _lt_result=$?
6788 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
6789 lt_cv_apple_cc_single_mod=yes
6790 else
6791 cat conftest.err >&5
6792 fi
6793 rm -rf libconftest.dylib*
6794 rm -f conftest.*
6795 fi
6796 fi
6797 { $as_echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
6798 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
6799 { $as_echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
6800 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
6801 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
6802 $as_echo_n "(cached) " >&6
6803 else
6804 lt_cv_ld_exported_symbols_list=no
6805 save_LDFLAGS=$LDFLAGS
6806 echo "_main" > conftest.sym
6807 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
6808 cat >conftest.$ac_ext <<_ACEOF
6809 /* confdefs.h. */
6810 _ACEOF
6811 cat confdefs.h >>conftest.$ac_ext
6812 cat >>conftest.$ac_ext <<_ACEOF
6813 /* end confdefs.h. */
6814
6815 int
6816 main ()
6817 {
6818
6819 ;
6820 return 0;
6821 }
6822 _ACEOF
6823 rm -f conftest.$ac_objext conftest$ac_exeext
6824 if { (ac_try="$ac_link"
6825 case "(($ac_try" in
6826 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6827 *) ac_try_echo=$ac_try;;
6828 esac
6829 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6830 $as_echo "$ac_try_echo") >&5
6831 (eval "$ac_link") 2>conftest.er1
6832 ac_status=$?
6833 grep -v '^ *+' conftest.er1 >conftest.err
6834 rm -f conftest.er1
6835 cat conftest.err >&5
6836 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6837 (exit $ac_status); } && {
6838 test -z "$ac_c_werror_flag" ||
6839 test ! -s conftest.err
6840 } && test -s conftest$ac_exeext && {
6841 test "$cross_compiling" = yes ||
6842 $as_test_x conftest$ac_exeext
6843 }; then
6844 lt_cv_ld_exported_symbols_list=yes
6845 else
6846 $as_echo "$as_me: failed program was:" >&5
6847 sed 's/^/| /' conftest.$ac_ext >&5
6848
6849 lt_cv_ld_exported_symbols_list=no
6850 fi
6851
6852 rm -rf conftest.dSYM
6853 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6854 conftest$ac_exeext conftest.$ac_ext
6855 LDFLAGS="$save_LDFLAGS"
6856
6857 fi
6858 { $as_echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
6859 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
6860 case $host_os in
6861 rhapsody* | darwin1.[012])
6862 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
6863 darwin1.*)
6864 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6865 darwin*) # darwin 5.x on
6866 # if running on 10.5 or later, the deployment target defaults
6867 # to the OS version, if on x86, and 10.4, the deployment
6868 # target defaults to 10.4. Don't you love it?
6869 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
6870 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
6871 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6872 10.[012]*)
6873 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6874 10.*)
6875 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6876 esac
6877 ;;
6878 esac
6879 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
6880 _lt_dar_single_mod='$single_module'
6881 fi
6882 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
6883 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
6884 else
6885 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
6886 fi
6887 if test "$DSYMUTIL" != ":"; then
6888 _lt_dsymutil='~$DSYMUTIL $lib || :'
6889 else
6890 _lt_dsymutil=
6891 fi
6892 ;;
6893 esac
6894
6895 ac_ext=c
6896 ac_cpp='$CPP $CPPFLAGS'
6897 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6898 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6899 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6900 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
6901 $as_echo_n "checking how to run the C preprocessor... " >&6; }
6902 # On Suns, sometimes $CPP names a directory.
6903 if test -n "$CPP" && test -d "$CPP"; then
6904 CPP=
6905 fi
6906 if test -z "$CPP"; then
6907 if test "${ac_cv_prog_CPP+set}" = set; then
6908 $as_echo_n "(cached) " >&6
6909 else
6910 # Double quotes because CPP needs to be expanded
6911 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6912 do
6913 ac_preproc_ok=false
6914 for ac_c_preproc_warn_flag in '' yes
6915 do
6916 # Use a header file that comes with gcc, so configuring glibc
6917 # with a fresh cross-compiler works.
6918 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6919 # <limits.h> exists even on freestanding compilers.
6920 # On the NeXT, cc -E runs the code through the compiler's parser,
6921 # not just through cpp. "Syntax error" is here to catch this case.
6922 cat >conftest.$ac_ext <<_ACEOF
6923 /* confdefs.h. */
6924 _ACEOF
6925 cat confdefs.h >>conftest.$ac_ext
6926 cat >>conftest.$ac_ext <<_ACEOF
6927 /* end confdefs.h. */
6928 #ifdef __STDC__
6929 # include <limits.h>
6930 #else
6931 # include <assert.h>
6932 #endif
6933 Syntax error
6934 _ACEOF
6935 if { (ac_try="$ac_cpp conftest.$ac_ext"
6936 case "(($ac_try" in
6937 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6938 *) ac_try_echo=$ac_try;;
6939 esac
6940 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6941 $as_echo "$ac_try_echo") >&5
6942 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6943 ac_status=$?
6944 grep -v '^ *+' conftest.er1 >conftest.err
6945 rm -f conftest.er1
6946 cat conftest.err >&5
6947 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6948 (exit $ac_status); } >/dev/null && {
6949 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6950 test ! -s conftest.err
6951 }; then
6952 :
6953 else
6954 $as_echo "$as_me: failed program was:" >&5
6955 sed 's/^/| /' conftest.$ac_ext >&5
6956
6957 # Broken: fails on valid input.
6958 continue
6959 fi
6960
6961 rm -f conftest.err conftest.$ac_ext
6962
6963 # OK, works on sane cases. Now check whether nonexistent headers
6964 # can be detected and how.
6965 cat >conftest.$ac_ext <<_ACEOF
6966 /* confdefs.h. */
6967 _ACEOF
6968 cat confdefs.h >>conftest.$ac_ext
6969 cat >>conftest.$ac_ext <<_ACEOF
6970 /* end confdefs.h. */
6971 #include <ac_nonexistent.h>
6972 _ACEOF
6973 if { (ac_try="$ac_cpp conftest.$ac_ext"
6974 case "(($ac_try" in
6975 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6976 *) ac_try_echo=$ac_try;;
6977 esac
6978 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6979 $as_echo "$ac_try_echo") >&5
6980 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6981 ac_status=$?
6982 grep -v '^ *+' conftest.er1 >conftest.err
6983 rm -f conftest.er1
6984 cat conftest.err >&5
6985 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6986 (exit $ac_status); } >/dev/null && {
6987 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6988 test ! -s conftest.err
6989 }; then
6990 # Broken: success on invalid input.
6991 continue
6992 else
6993 $as_echo "$as_me: failed program was:" >&5
6994 sed 's/^/| /' conftest.$ac_ext >&5
6995
6996 # Passes both tests.
6997 ac_preproc_ok=:
6998 break
6999 fi
7000
7001 rm -f conftest.err conftest.$ac_ext
7002
7003 done
7004 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7005 rm -f conftest.err conftest.$ac_ext
7006 if $ac_preproc_ok; then
7007 break
7008 fi
7009
7010 done
7011 ac_cv_prog_CPP=$CPP
7012
7013 fi
7014 CPP=$ac_cv_prog_CPP
7015 else
7016 ac_cv_prog_CPP=$CPP
7017 fi
7018 { $as_echo "$as_me:$LINENO: result: $CPP" >&5
7019 $as_echo "$CPP" >&6; }
7020 ac_preproc_ok=false
7021 for ac_c_preproc_warn_flag in '' yes
7022 do
7023 # Use a header file that comes with gcc, so configuring glibc
7024 # with a fresh cross-compiler works.
7025 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7026 # <limits.h> exists even on freestanding compilers.
7027 # On the NeXT, cc -E runs the code through the compiler's parser,
7028 # not just through cpp. "Syntax error" is here to catch this case.
7029 cat >conftest.$ac_ext <<_ACEOF
7030 /* confdefs.h. */
7031 _ACEOF
7032 cat confdefs.h >>conftest.$ac_ext
7033 cat >>conftest.$ac_ext <<_ACEOF
7034 /* end confdefs.h. */
7035 #ifdef __STDC__
7036 # include <limits.h>
7037 #else
7038 # include <assert.h>
7039 #endif
7040 Syntax error
7041 _ACEOF
7042 if { (ac_try="$ac_cpp conftest.$ac_ext"
7043 case "(($ac_try" in
7044 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7045 *) ac_try_echo=$ac_try;;
7046 esac
7047 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7048 $as_echo "$ac_try_echo") >&5
7049 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7050 ac_status=$?
7051 grep -v '^ *+' conftest.er1 >conftest.err
7052 rm -f conftest.er1
7053 cat conftest.err >&5
7054 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7055 (exit $ac_status); } >/dev/null && {
7056 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7057 test ! -s conftest.err
7058 }; then
7059 :
7060 else
7061 $as_echo "$as_me: failed program was:" >&5
7062 sed 's/^/| /' conftest.$ac_ext >&5
7063
7064 # Broken: fails on valid input.
7065 continue
7066 fi
7067
7068 rm -f conftest.err conftest.$ac_ext
7069
7070 # OK, works on sane cases. Now check whether nonexistent headers
7071 # can be detected and how.
7072 cat >conftest.$ac_ext <<_ACEOF
7073 /* confdefs.h. */
7074 _ACEOF
7075 cat confdefs.h >>conftest.$ac_ext
7076 cat >>conftest.$ac_ext <<_ACEOF
7077 /* end confdefs.h. */
7078 #include <ac_nonexistent.h>
7079 _ACEOF
7080 if { (ac_try="$ac_cpp conftest.$ac_ext"
7081 case "(($ac_try" in
7082 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7083 *) ac_try_echo=$ac_try;;
7084 esac
7085 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7086 $as_echo "$ac_try_echo") >&5
7087 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7088 ac_status=$?
7089 grep -v '^ *+' conftest.er1 >conftest.err
7090 rm -f conftest.er1
7091 cat conftest.err >&5
7092 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7093 (exit $ac_status); } >/dev/null && {
7094 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7095 test ! -s conftest.err
7096 }; then
7097 # Broken: success on invalid input.
7098 continue
7099 else
7100 $as_echo "$as_me: failed program was:" >&5
7101 sed 's/^/| /' conftest.$ac_ext >&5
7102
7103 # Passes both tests.
7104 ac_preproc_ok=:
7105 break
7106 fi
7107
7108 rm -f conftest.err conftest.$ac_ext
7109
7110 done
7111 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7112 rm -f conftest.err conftest.$ac_ext
7113 if $ac_preproc_ok; then
7114 :
7115 else
7116 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
7117 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7118 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
7119 See \`config.log' for more details." >&5
7120 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
7121 See \`config.log' for more details." >&2;}
7122 { (exit 1); exit 1; }; }; }
7123 fi
7124
7125 ac_ext=c
7126 ac_cpp='$CPP $CPPFLAGS'
7127 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7128 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7129 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7130
7131
7132 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7133 $as_echo_n "checking for ANSI C header files... " >&6; }
7134 if test "${ac_cv_header_stdc+set}" = set; then
7135 $as_echo_n "(cached) " >&6
7136 else
7137 cat >conftest.$ac_ext <<_ACEOF
7138 /* confdefs.h. */
7139 _ACEOF
7140 cat confdefs.h >>conftest.$ac_ext
7141 cat >>conftest.$ac_ext <<_ACEOF
7142 /* end confdefs.h. */
7143 #include <stdlib.h>
7144 #include <stdarg.h>
7145 #include <string.h>
7146 #include <float.h>
7147
7148 int
7149 main ()
7150 {
7151
7152 ;
7153 return 0;
7154 }
7155 _ACEOF
7156 rm -f conftest.$ac_objext
7157 if { (ac_try="$ac_compile"
7158 case "(($ac_try" in
7159 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7160 *) ac_try_echo=$ac_try;;
7161 esac
7162 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7163 $as_echo "$ac_try_echo") >&5
7164 (eval "$ac_compile") 2>conftest.er1
7165 ac_status=$?
7166 grep -v '^ *+' conftest.er1 >conftest.err
7167 rm -f conftest.er1
7168 cat conftest.err >&5
7169 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7170 (exit $ac_status); } && {
7171 test -z "$ac_c_werror_flag" ||
7172 test ! -s conftest.err
7173 } && test -s conftest.$ac_objext; then
7174 ac_cv_header_stdc=yes
7175 else
7176 $as_echo "$as_me: failed program was:" >&5
7177 sed 's/^/| /' conftest.$ac_ext >&5
7178
7179 ac_cv_header_stdc=no
7180 fi
7181
7182 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7183
7184 if test $ac_cv_header_stdc = yes; then
7185 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7186 cat >conftest.$ac_ext <<_ACEOF
7187 /* confdefs.h. */
7188 _ACEOF
7189 cat confdefs.h >>conftest.$ac_ext
7190 cat >>conftest.$ac_ext <<_ACEOF
7191 /* end confdefs.h. */
7192 #include <string.h>
7193
7194 _ACEOF
7195 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7196 $EGREP "memchr" >/dev/null 2>&1; then
7197 :
7198 else
7199 ac_cv_header_stdc=no
7200 fi
7201 rm -f conftest*
7202
7203 fi
7204
7205 if test $ac_cv_header_stdc = yes; then
7206 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7207 cat >conftest.$ac_ext <<_ACEOF
7208 /* confdefs.h. */
7209 _ACEOF
7210 cat confdefs.h >>conftest.$ac_ext
7211 cat >>conftest.$ac_ext <<_ACEOF
7212 /* end confdefs.h. */
7213 #include <stdlib.h>
7214
7215 _ACEOF
7216 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7217 $EGREP "free" >/dev/null 2>&1; then
7218 :
7219 else
7220 ac_cv_header_stdc=no
7221 fi
7222 rm -f conftest*
7223
7224 fi
7225
7226 if test $ac_cv_header_stdc = yes; then
7227 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7228 if test "$cross_compiling" = yes; then
7229 :
7230 else
7231 cat >conftest.$ac_ext <<_ACEOF
7232 /* confdefs.h. */
7233 _ACEOF
7234 cat confdefs.h >>conftest.$ac_ext
7235 cat >>conftest.$ac_ext <<_ACEOF
7236 /* end confdefs.h. */
7237 #include <ctype.h>
7238 #include <stdlib.h>
7239 #if ((' ' & 0x0FF) == 0x020)
7240 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7241 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7242 #else
7243 # define ISLOWER(c) \
7244 (('a' <= (c) && (c) <= 'i') \
7245 || ('j' <= (c) && (c) <= 'r') \
7246 || ('s' <= (c) && (c) <= 'z'))
7247 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7248 #endif
7249
7250 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7251 int
7252 main ()
7253 {
7254 int i;
7255 for (i = 0; i < 256; i++)
7256 if (XOR (islower (i), ISLOWER (i))
7257 || toupper (i) != TOUPPER (i))
7258 return 2;
7259 return 0;
7260 }
7261 _ACEOF
7262 rm -f conftest$ac_exeext
7263 if { (ac_try="$ac_link"
7264 case "(($ac_try" in
7265 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7266 *) ac_try_echo=$ac_try;;
7267 esac
7268 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7269 $as_echo "$ac_try_echo") >&5
7270 (eval "$ac_link") 2>&5
7271 ac_status=$?
7272 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7273 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7274 { (case "(($ac_try" in
7275 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7276 *) ac_try_echo=$ac_try;;
7277 esac
7278 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7279 $as_echo "$ac_try_echo") >&5
7280 (eval "$ac_try") 2>&5
7281 ac_status=$?
7282 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7283 (exit $ac_status); }; }; then
7284 :
7285 else
7286 $as_echo "$as_me: program exited with status $ac_status" >&5
7287 $as_echo "$as_me: failed program was:" >&5
7288 sed 's/^/| /' conftest.$ac_ext >&5
7289
7290 ( exit $ac_status )
7291 ac_cv_header_stdc=no
7292 fi
7293 rm -rf conftest.dSYM
7294 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7295 fi
7296
7297
7298 fi
7299 fi
7300 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7301 $as_echo "$ac_cv_header_stdc" >&6; }
7302 if test $ac_cv_header_stdc = yes; then
7303
7304 cat >>confdefs.h <<\_ACEOF
7305 #define STDC_HEADERS 1
7306 _ACEOF
7307
7308 fi
7309
7310 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7311
7312
7313
7314
7315
7316
7317
7318
7319
7320 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7321 inttypes.h stdint.h unistd.h
7322 do
7323 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7324 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7325 $as_echo_n "checking for $ac_header... " >&6; }
7326 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7327 $as_echo_n "(cached) " >&6
7328 else
7329 cat >conftest.$ac_ext <<_ACEOF
7330 /* confdefs.h. */
7331 _ACEOF
7332 cat confdefs.h >>conftest.$ac_ext
7333 cat >>conftest.$ac_ext <<_ACEOF
7334 /* end confdefs.h. */
7335 $ac_includes_default
7336
7337 #include <$ac_header>
7338 _ACEOF
7339 rm -f conftest.$ac_objext
7340 if { (ac_try="$ac_compile"
7341 case "(($ac_try" in
7342 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7343 *) ac_try_echo=$ac_try;;
7344 esac
7345 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7346 $as_echo "$ac_try_echo") >&5
7347 (eval "$ac_compile") 2>conftest.er1
7348 ac_status=$?
7349 grep -v '^ *+' conftest.er1 >conftest.err
7350 rm -f conftest.er1
7351 cat conftest.err >&5
7352 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7353 (exit $ac_status); } && {
7354 test -z "$ac_c_werror_flag" ||
7355 test ! -s conftest.err
7356 } && test -s conftest.$ac_objext; then
7357 eval "$as_ac_Header=yes"
7358 else
7359 $as_echo "$as_me: failed program was:" >&5
7360 sed 's/^/| /' conftest.$ac_ext >&5
7361
7362 eval "$as_ac_Header=no"
7363 fi
7364
7365 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7366 fi
7367 ac_res=`eval 'as_val=${'$as_ac_Header'}
7368 $as_echo "$as_val"'`
7369 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7370 $as_echo "$ac_res" >&6; }
7371 as_val=`eval 'as_val=${'$as_ac_Header'}
7372 $as_echo "$as_val"'`
7373 if test "x$as_val" = x""yes; then
7374 cat >>confdefs.h <<_ACEOF
7375 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7376 _ACEOF
7377
7378 fi
7379
7380 done
7381
7382
7383
7384 for ac_header in dlfcn.h
7385 do
7386 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7387 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7388 $as_echo_n "checking for $ac_header... " >&6; }
7389 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7390 $as_echo_n "(cached) " >&6
7391 else
7392 cat >conftest.$ac_ext <<_ACEOF
7393 /* confdefs.h. */
7394 _ACEOF
7395 cat confdefs.h >>conftest.$ac_ext
7396 cat >>conftest.$ac_ext <<_ACEOF
7397 /* end confdefs.h. */
7398 $ac_includes_default
7399
7400 #include <$ac_header>
7401 _ACEOF
7402 rm -f conftest.$ac_objext
7403 if { (ac_try="$ac_compile"
7404 case "(($ac_try" in
7405 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7406 *) ac_try_echo=$ac_try;;
7407 esac
7408 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7409 $as_echo "$ac_try_echo") >&5
7410 (eval "$ac_compile") 2>conftest.er1
7411 ac_status=$?
7412 grep -v '^ *+' conftest.er1 >conftest.err
7413 rm -f conftest.er1
7414 cat conftest.err >&5
7415 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7416 (exit $ac_status); } && {
7417 test -z "$ac_c_werror_flag" ||
7418 test ! -s conftest.err
7419 } && test -s conftest.$ac_objext; then
7420 eval "$as_ac_Header=yes"
7421 else
7422 $as_echo "$as_me: failed program was:" >&5
7423 sed 's/^/| /' conftest.$ac_ext >&5
7424
7425 eval "$as_ac_Header=no"
7426 fi
7427
7428 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7429 fi
7430 ac_res=`eval 'as_val=${'$as_ac_Header'}
7431 $as_echo "$as_val"'`
7432 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7433 $as_echo "$ac_res" >&6; }
7434 as_val=`eval 'as_val=${'$as_ac_Header'}
7435 $as_echo "$as_val"'`
7436 if test "x$as_val" = x""yes; then
7437 cat >>confdefs.h <<_ACEOF
7438 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7439 _ACEOF
7440
7441 fi
7442
7443 done
7444
7445
7446
7447 # Set options
7448
7449
7450
7451 enable_dlopen=no
7452
7453
7454 enable_win32_dll=no
7455
7456
7457 # Check whether --enable-shared was given.
7458 if test "${enable_shared+set}" = set; then
7459 enableval=$enable_shared; p=${PACKAGE-default}
7460 case $enableval in
7461 yes) enable_shared=yes ;;
7462 no) enable_shared=no ;;
7463 *)
7464 enable_shared=no
7465 # Look at the argument we got. We use all the common list separators.
7466 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7467 for pkg in $enableval; do
7468 IFS="$lt_save_ifs"
7469 if test "X$pkg" = "X$p"; then
7470 enable_shared=yes
7471 fi
7472 done
7473 IFS="$lt_save_ifs"
7474 ;;
7475 esac
7476 else
7477 enable_shared=yes
7478 fi
7479
7480
7481
7482
7483
7484
7485
7486
7487
7488 # Check whether --enable-static was given.
7489 if test "${enable_static+set}" = set; then
7490 enableval=$enable_static; p=${PACKAGE-default}
7491 case $enableval in
7492 yes) enable_static=yes ;;
7493 no) enable_static=no ;;
7494 *)
7495 enable_static=no
7496 # Look at the argument we got. We use all the common list separators.
7497 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7498 for pkg in $enableval; do
7499 IFS="$lt_save_ifs"
7500 if test "X$pkg" = "X$p"; then
7501 enable_static=yes
7502 fi
7503 done
7504 IFS="$lt_save_ifs"
7505 ;;
7506 esac
7507 else
7508 enable_static=yes
7509 fi
7510
7511
7512
7513
7514
7515
7516
7517
7518
7519
7520 # Check whether --with-pic was given.
7521 if test "${with_pic+set}" = set; then
7522 withval=$with_pic; pic_mode="$withval"
7523 else
7524 pic_mode=default
7525 fi
7526
7527
7528 test -z "$pic_mode" && pic_mode=default
7529
7530
7531
7532
7533
7534
7535
7536 # Check whether --enable-fast-install was given.
7537 if test "${enable_fast_install+set}" = set; then
7538 enableval=$enable_fast_install; p=${PACKAGE-default}
7539 case $enableval in
7540 yes) enable_fast_install=yes ;;
7541 no) enable_fast_install=no ;;
7542 *)
7543 enable_fast_install=no
7544 # Look at the argument we got. We use all the common list separators.
7545 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7546 for pkg in $enableval; do
7547 IFS="$lt_save_ifs"
7548 if test "X$pkg" = "X$p"; then
7549 enable_fast_install=yes
7550 fi
7551 done
7552 IFS="$lt_save_ifs"
7553 ;;
7554 esac
7555 else
7556 enable_fast_install=yes
7557 fi
7558
7559
7560
7561
7562
7563
7564
7565
7566
7567
7568
7569 # This can be used to rebuild libtool when needed
7570 LIBTOOL_DEPS="$ltmain"
7571
7572 # Always use our own libtool.
7573 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7574
7575
7576
7577
7578
7579
7580
7581
7582
7583
7584
7585
7586
7587
7588
7589
7590
7591
7592
7593
7594
7595
7596
7597
7598
7599 test -z "$LN_S" && LN_S="ln -s"
7600
7601
7602
7603
7604
7605
7606
7607
7608
7609
7610
7611
7612
7613
7614 if test -n "${ZSH_VERSION+set}" ; then
7615 setopt NO_GLOB_SUBST
7616 fi
7617
7618 { $as_echo "$as_me:$LINENO: checking for objdir" >&5
7619 $as_echo_n "checking for objdir... " >&6; }
7620 if test "${lt_cv_objdir+set}" = set; then
7621 $as_echo_n "(cached) " >&6
7622 else
7623 rm -f .libs 2>/dev/null
7624 mkdir .libs 2>/dev/null
7625 if test -d .libs; then
7626 lt_cv_objdir=.libs
7627 else
7628 # MS-DOS does not allow filenames that begin with a dot.
7629 lt_cv_objdir=_libs
7630 fi
7631 rmdir .libs 2>/dev/null
7632 fi
7633 { $as_echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
7634 $as_echo "$lt_cv_objdir" >&6; }
7635 objdir=$lt_cv_objdir
7636
7637
7638
7639
7640
7641 cat >>confdefs.h <<_ACEOF
7642 #define LT_OBJDIR "$lt_cv_objdir/"
7643 _ACEOF
7644
7645
7646
7647
7648
7649
7650
7651
7652
7653
7654
7655
7656
7657
7658
7659
7660
7661 case $host_os in
7662 aix3*)
7663 # AIX sometimes has problems with the GCC collect2 program. For some
7664 # reason, if we set the COLLECT_NAMES environment variable, the problems
7665 # vanish in a puff of smoke.
7666 if test "X${COLLECT_NAMES+set}" != Xset; then
7667 COLLECT_NAMES=
7668 export COLLECT_NAMES
7669 fi
7670 ;;
7671 esac
7672
7673 # Sed substitution that helps us do robust quoting. It backslashifies
7674 # metacharacters that are still active within double-quoted strings.
7675 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
7676
7677 # Same as above, but do not quote variable references.
7678 double_quote_subst='s/\(["`\\]\)/\\\1/g'
7679
7680 # Sed substitution to delay expansion of an escaped shell variable in a
7681 # double_quote_subst'ed string.
7682 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7683
7684 # Sed substitution to delay expansion of an escaped single quote.
7685 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
7686
7687 # Sed substitution to avoid accidental globbing in evaled expressions
7688 no_glob_subst='s/\*/\\\*/g'
7689
7690 # Global variables:
7691 ofile=libtool
7692 can_build_shared=yes
7693
7694 # All known linkers require a `.a' archive for static linking (except MSVC,
7695 # which needs '.lib').
7696 libext=a
7697
7698 with_gnu_ld="$lt_cv_prog_gnu_ld"
7699
7700 old_CC="$CC"
7701 old_CFLAGS="$CFLAGS"
7702
7703 # Set sane defaults for various variables
7704 test -z "$CC" && CC=cc
7705 test -z "$LTCC" && LTCC=$CC
7706 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7707 test -z "$LD" && LD=ld
7708 test -z "$ac_objext" && ac_objext=o
7709
7710 for cc_temp in $compiler""; do
7711 case $cc_temp in
7712 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7713 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7714 \-*) ;;
7715 *) break;;
7716 esac
7717 done
7718 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7719
7720
7721 # Only perform the check for file, if the check method requires it
7722 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7723 case $deplibs_check_method in
7724 file_magic*)
7725 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7726 { $as_echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7727 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7728 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7729 $as_echo_n "(cached) " >&6
7730 else
7731 case $MAGIC_CMD in
7732 [\\/*] | ?:[\\/]*)
7733 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7734 ;;
7735 *)
7736 lt_save_MAGIC_CMD="$MAGIC_CMD"
7737 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7738 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7739 for ac_dir in $ac_dummy; do
7740 IFS="$lt_save_ifs"
7741 test -z "$ac_dir" && ac_dir=.
7742 if test -f $ac_dir/${ac_tool_prefix}file; then
7743 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7744 if test -n "$file_magic_test_file"; then
7745 case $deplibs_check_method in
7746 "file_magic "*)
7747 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7748 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7749 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7750 $EGREP "$file_magic_regex" > /dev/null; then
7751 :
7752 else
7753 cat <<_LT_EOF 1>&2
7754
7755 *** Warning: the command libtool uses to detect shared libraries,
7756 *** $file_magic_cmd, produces output that libtool cannot recognize.
7757 *** The result is that libtool may fail to recognize shared libraries
7758 *** as such. This will affect the creation of libtool libraries that
7759 *** depend on shared libraries, but programs linked with such libtool
7760 *** libraries will work regardless of this problem. Nevertheless, you
7761 *** may want to report the problem to your system manager and/or to
7762 *** bug-libtool@gnu.org
7763
7764 _LT_EOF
7765 fi ;;
7766 esac
7767 fi
7768 break
7769 fi
7770 done
7771 IFS="$lt_save_ifs"
7772 MAGIC_CMD="$lt_save_MAGIC_CMD"
7773 ;;
7774 esac
7775 fi
7776
7777 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7778 if test -n "$MAGIC_CMD"; then
7779 { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7780 $as_echo "$MAGIC_CMD" >&6; }
7781 else
7782 { $as_echo "$as_me:$LINENO: result: no" >&5
7783 $as_echo "no" >&6; }
7784 fi
7785
7786
7787
7788
7789
7790 if test -z "$lt_cv_path_MAGIC_CMD"; then
7791 if test -n "$ac_tool_prefix"; then
7792 { $as_echo "$as_me:$LINENO: checking for file" >&5
7793 $as_echo_n "checking for file... " >&6; }
7794 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7795 $as_echo_n "(cached) " >&6
7796 else
7797 case $MAGIC_CMD in
7798 [\\/*] | ?:[\\/]*)
7799 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7800 ;;
7801 *)
7802 lt_save_MAGIC_CMD="$MAGIC_CMD"
7803 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7804 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7805 for ac_dir in $ac_dummy; do
7806 IFS="$lt_save_ifs"
7807 test -z "$ac_dir" && ac_dir=.
7808 if test -f $ac_dir/file; then
7809 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7810 if test -n "$file_magic_test_file"; then
7811 case $deplibs_check_method in
7812 "file_magic "*)
7813 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7814 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7815 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7816 $EGREP "$file_magic_regex" > /dev/null; then
7817 :
7818 else
7819 cat <<_LT_EOF 1>&2
7820
7821 *** Warning: the command libtool uses to detect shared libraries,
7822 *** $file_magic_cmd, produces output that libtool cannot recognize.
7823 *** The result is that libtool may fail to recognize shared libraries
7824 *** as such. This will affect the creation of libtool libraries that
7825 *** depend on shared libraries, but programs linked with such libtool
7826 *** libraries will work regardless of this problem. Nevertheless, you
7827 *** may want to report the problem to your system manager and/or to
7828 *** bug-libtool@gnu.org
7829
7830 _LT_EOF
7831 fi ;;
7832 esac
7833 fi
7834 break
7835 fi
7836 done
7837 IFS="$lt_save_ifs"
7838 MAGIC_CMD="$lt_save_MAGIC_CMD"
7839 ;;
7840 esac
7841 fi
7842
7843 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7844 if test -n "$MAGIC_CMD"; then
7845 { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7846 $as_echo "$MAGIC_CMD" >&6; }
7847 else
7848 { $as_echo "$as_me:$LINENO: result: no" >&5
7849 $as_echo "no" >&6; }
7850 fi
7851
7852
7853 else
7854 MAGIC_CMD=:
7855 fi
7856 fi
7857
7858 fi
7859 ;;
7860 esac
7861
7862 # Use C for the default configuration in the libtool script
7863
7864 lt_save_CC="$CC"
7865 ac_ext=c
7866 ac_cpp='$CPP $CPPFLAGS'
7867 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7868 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7869 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7870
7871
7872 # Source file extension for C test sources.
7873 ac_ext=c
7874
7875 # Object file extension for compiled C test sources.
7876 objext=o
7877 objext=$objext
7878
7879 # Code to be used in simple compile tests
7880 lt_simple_compile_test_code="int some_variable = 0;"
7881
7882 # Code to be used in simple link tests
7883 lt_simple_link_test_code='int main(){return(0);}'
7884
7885
7886
7887
7888
7889
7890
7891 # If no C compiler was specified, use CC.
7892 LTCC=${LTCC-"$CC"}
7893
7894 # If no C compiler flags were specified, use CFLAGS.
7895 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7896
7897 # Allow CC to be a program name with arguments.
7898 compiler=$CC
7899
7900 # Save the default compiler, since it gets overwritten when the other
7901 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7902 compiler_DEFAULT=$CC
7903
7904 # save warnings/boilerplate of simple test code
7905 ac_outfile=conftest.$ac_objext
7906 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7907 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7908 _lt_compiler_boilerplate=`cat conftest.err`
7909 $RM conftest*
7910
7911 ac_outfile=conftest.$ac_objext
7912 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7913 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7914 _lt_linker_boilerplate=`cat conftest.err`
7915 $RM -r conftest*
7916
7917
7918 ## CAVEAT EMPTOR:
7919 ## There is no encapsulation within the following macros, do not change
7920 ## the running order or otherwise move them around unless you know exactly
7921 ## what you are doing...
7922 if test -n "$compiler"; then
7923
7924 lt_prog_compiler_no_builtin_flag=
7925
7926 if test "$GCC" = yes; then
7927 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7928
7929 { $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7930 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7931 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7932 $as_echo_n "(cached) " >&6
7933 else
7934 lt_cv_prog_compiler_rtti_exceptions=no
7935 ac_outfile=conftest.$ac_objext
7936 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7937 lt_compiler_flag="-fno-rtti -fno-exceptions"
7938 # Insert the option either (1) after the last *FLAGS variable, or
7939 # (2) before a word containing "conftest.", or (3) at the end.
7940 # Note that $ac_compile itself does not contain backslashes and begins
7941 # with a dollar sign (not a hyphen), so the echo should work correctly.
7942 # The option is referenced via a variable to avoid confusing sed.
7943 lt_compile=`echo "$ac_compile" | $SED \
7944 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7945 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7946 -e 's:$: $lt_compiler_flag:'`
7947 (eval echo "\"\$as_me:7947: $lt_compile\"" >&5)
7948 (eval "$lt_compile" 2>conftest.err)
7949 ac_status=$?
7950 cat conftest.err >&5
7951 echo "$as_me:7951: \$? = $ac_status" >&5
7952 if (exit $ac_status) && test -s "$ac_outfile"; then
7953 # The compiler can only warn and ignore the option if not recognized
7954 # So say no if there are warnings other than the usual output.
7955 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7956 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7957 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7958 lt_cv_prog_compiler_rtti_exceptions=yes
7959 fi
7960 fi
7961 $RM conftest*
7962
7963 fi
7964 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7965 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7966
7967 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7968 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7969 else
7970 :
7971 fi
7972
7973 fi
7974
7975
7976
7977
7978
7979
7980 lt_prog_compiler_wl=
7981 lt_prog_compiler_pic=
7982 lt_prog_compiler_static=
7983
7984 { $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7985 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
7986
7987 if test "$GCC" = yes; then
7988 lt_prog_compiler_wl='-Wl,'
7989 lt_prog_compiler_static='-static'
7990
7991 case $host_os in
7992 aix*)
7993 # All AIX code is PIC.
7994 if test "$host_cpu" = ia64; then
7995 # AIX 5 now supports IA64 processor
7996 lt_prog_compiler_static='-Bstatic'
7997 fi
7998 ;;
7999
8000 amigaos*)
8001 case $host_cpu in
8002 powerpc)
8003 # see comment about AmigaOS4 .so support
8004 lt_prog_compiler_pic='-fPIC'
8005 ;;
8006 m68k)
8007 # FIXME: we need at least 68020 code to build shared libraries, but
8008 # adding the `-m68020' flag to GCC prevents building anything better,
8009 # like `-m68040'.
8010 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8011 ;;
8012 esac
8013 ;;
8014
8015 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8016 # PIC is the default for these OSes.
8017 ;;
8018
8019 mingw* | cygwin* | pw32* | os2* | cegcc*)
8020 # This hack is so that the source file can tell whether it is being
8021 # built for inclusion in a dll (and should export symbols for example).
8022 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8023 # (--disable-auto-import) libraries
8024 lt_prog_compiler_pic='-DDLL_EXPORT'
8025 ;;
8026
8027 darwin* | rhapsody*)
8028 # PIC is the default on this platform
8029 # Common symbols not allowed in MH_DYLIB files
8030 lt_prog_compiler_pic='-fno-common'
8031 ;;
8032
8033 hpux*)
8034 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8035 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8036 # sets the default TLS model and affects inlining.
8037 case $host_cpu in
8038 hppa*64*)
8039 # +Z the default
8040 ;;
8041 *)
8042 lt_prog_compiler_pic='-fPIC'
8043 ;;
8044 esac
8045 ;;
8046
8047 interix[3-9]*)
8048 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8049 # Instead, we relocate shared libraries at runtime.
8050 ;;
8051
8052 msdosdjgpp*)
8053 # Just because we use GCC doesn't mean we suddenly get shared libraries
8054 # on systems that don't support them.
8055 lt_prog_compiler_can_build_shared=no
8056 enable_shared=no
8057 ;;
8058
8059 *nto* | *qnx*)
8060 # QNX uses GNU C++, but need to define -shared option too, otherwise
8061 # it will coredump.
8062 lt_prog_compiler_pic='-fPIC -shared'
8063 ;;
8064
8065 sysv4*MP*)
8066 if test -d /usr/nec; then
8067 lt_prog_compiler_pic=-Kconform_pic
8068 fi
8069 ;;
8070
8071 *)
8072 lt_prog_compiler_pic='-fPIC'
8073 ;;
8074 esac
8075 else
8076 # PORTME Check for flag to pass linker flags through the system compiler.
8077 case $host_os in
8078 aix*)
8079 lt_prog_compiler_wl='-Wl,'
8080 if test "$host_cpu" = ia64; then
8081 # AIX 5 now supports IA64 processor
8082 lt_prog_compiler_static='-Bstatic'
8083 else
8084 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8085 fi
8086 ;;
8087
8088 mingw* | cygwin* | pw32* | os2* | cegcc*)
8089 # This hack is so that the source file can tell whether it is being
8090 # built for inclusion in a dll (and should export symbols for example).
8091 lt_prog_compiler_pic='-DDLL_EXPORT'
8092 ;;
8093
8094 hpux9* | hpux10* | hpux11*)
8095 lt_prog_compiler_wl='-Wl,'
8096 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8097 # not for PA HP-UX.
8098 case $host_cpu in
8099 hppa*64*|ia64*)
8100 # +Z the default
8101 ;;
8102 *)
8103 lt_prog_compiler_pic='+Z'
8104 ;;
8105 esac
8106 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8107 lt_prog_compiler_static='${wl}-a ${wl}archive'
8108 ;;
8109
8110 irix5* | irix6* | nonstopux*)
8111 lt_prog_compiler_wl='-Wl,'
8112 # PIC (with -KPIC) is the default.
8113 lt_prog_compiler_static='-non_shared'
8114 ;;
8115
8116 linux* | k*bsd*-gnu)
8117 case $cc_basename in
8118 # old Intel for x86_64 which still supported -KPIC.
8119 ecc*)
8120 lt_prog_compiler_wl='-Wl,'
8121 lt_prog_compiler_pic='-KPIC'
8122 lt_prog_compiler_static='-static'
8123 ;;
8124 # icc used to be incompatible with GCC.
8125 # ICC 10 doesn't accept -KPIC any more.
8126 icc* | ifort*)
8127 lt_prog_compiler_wl='-Wl,'
8128 lt_prog_compiler_pic='-fPIC'
8129 lt_prog_compiler_static='-static'
8130 ;;
8131 # Lahey Fortran 8.1.
8132 lf95*)
8133 lt_prog_compiler_wl='-Wl,'
8134 lt_prog_compiler_pic='--shared'
8135 lt_prog_compiler_static='--static'
8136 ;;
8137 pgcc* | pgf77* | pgf90* | pgf95*)
8138 # Portland Group compilers (*not* the Pentium gcc compiler,
8139 # which looks to be a dead project)
8140 lt_prog_compiler_wl='-Wl,'
8141 lt_prog_compiler_pic='-fpic'
8142 lt_prog_compiler_static='-Bstatic'
8143 ;;
8144 ccc*)
8145 lt_prog_compiler_wl='-Wl,'
8146 # All Alpha code is PIC.
8147 lt_prog_compiler_static='-non_shared'
8148 ;;
8149 xl*)
8150 # IBM XL C 8.0/Fortran 10.1 on PPC
8151 lt_prog_compiler_wl='-Wl,'
8152 lt_prog_compiler_pic='-qpic'
8153 lt_prog_compiler_static='-qstaticlink'
8154 ;;
8155 *)
8156 case `$CC -V 2>&1 | sed 5q` in
8157 *Sun\ C*)
8158 # Sun C 5.9
8159 lt_prog_compiler_pic='-KPIC'
8160 lt_prog_compiler_static='-Bstatic'
8161 lt_prog_compiler_wl='-Wl,'
8162 ;;
8163 *Sun\ F*)
8164 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8165 lt_prog_compiler_pic='-KPIC'
8166 lt_prog_compiler_static='-Bstatic'
8167 lt_prog_compiler_wl=''
8168 ;;
8169 esac
8170 ;;
8171 esac
8172 ;;
8173
8174 newsos6)
8175 lt_prog_compiler_pic='-KPIC'
8176 lt_prog_compiler_static='-Bstatic'
8177 ;;
8178
8179 *nto* | *qnx*)
8180 # QNX uses GNU C++, but need to define -shared option too, otherwise
8181 # it will coredump.
8182 lt_prog_compiler_pic='-fPIC -shared'
8183 ;;
8184
8185 osf3* | osf4* | osf5*)
8186 lt_prog_compiler_wl='-Wl,'
8187 # All OSF/1 code is PIC.
8188 lt_prog_compiler_static='-non_shared'
8189 ;;
8190
8191 rdos*)
8192 lt_prog_compiler_static='-non_shared'
8193 ;;
8194
8195 solaris*)
8196 lt_prog_compiler_pic='-KPIC'
8197 lt_prog_compiler_static='-Bstatic'
8198 case $cc_basename in
8199 f77* | f90* | f95*)
8200 lt_prog_compiler_wl='-Qoption ld ';;
8201 *)
8202 lt_prog_compiler_wl='-Wl,';;
8203 esac
8204 ;;
8205
8206 sunos4*)
8207 lt_prog_compiler_wl='-Qoption ld '
8208 lt_prog_compiler_pic='-PIC'
8209 lt_prog_compiler_static='-Bstatic'
8210 ;;
8211
8212 sysv4 | sysv4.2uw2* | sysv4.3*)
8213 lt_prog_compiler_wl='-Wl,'
8214 lt_prog_compiler_pic='-KPIC'
8215 lt_prog_compiler_static='-Bstatic'
8216 ;;
8217
8218 sysv4*MP*)
8219 if test -d /usr/nec ;then
8220 lt_prog_compiler_pic='-Kconform_pic'
8221 lt_prog_compiler_static='-Bstatic'
8222 fi
8223 ;;
8224
8225 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8226 lt_prog_compiler_wl='-Wl,'
8227 lt_prog_compiler_pic='-KPIC'
8228 lt_prog_compiler_static='-Bstatic'
8229 ;;
8230
8231 unicos*)
8232 lt_prog_compiler_wl='-Wl,'
8233 lt_prog_compiler_can_build_shared=no
8234 ;;
8235
8236 uts4*)
8237 lt_prog_compiler_pic='-pic'
8238 lt_prog_compiler_static='-Bstatic'
8239 ;;
8240
8241 *)
8242 lt_prog_compiler_can_build_shared=no
8243 ;;
8244 esac
8245 fi
8246
8247 case $host_os in
8248 # For platforms which do not support PIC, -DPIC is meaningless:
8249 *djgpp*)
8250 lt_prog_compiler_pic=
8251 ;;
8252 *)
8253 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8254 ;;
8255 esac
8256 { $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
8257 $as_echo "$lt_prog_compiler_pic" >&6; }
8258
8259
8260
8261
8262
8263
8264 #
8265 # Check to make sure the PIC flag actually works.
8266 #
8267 if test -n "$lt_prog_compiler_pic"; then
8268 { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8269 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8270 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
8271 $as_echo_n "(cached) " >&6
8272 else
8273 lt_cv_prog_compiler_pic_works=no
8274 ac_outfile=conftest.$ac_objext
8275 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8276 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8277 # Insert the option either (1) after the last *FLAGS variable, or
8278 # (2) before a word containing "conftest.", or (3) at the end.
8279 # Note that $ac_compile itself does not contain backslashes and begins
8280 # with a dollar sign (not a hyphen), so the echo should work correctly.
8281 # The option is referenced via a variable to avoid confusing sed.
8282 lt_compile=`echo "$ac_compile" | $SED \
8283 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8284 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8285 -e 's:$: $lt_compiler_flag:'`
8286 (eval echo "\"\$as_me:8286: $lt_compile\"" >&5)
8287 (eval "$lt_compile" 2>conftest.err)
8288 ac_status=$?
8289 cat conftest.err >&5
8290 echo "$as_me:8290: \$? = $ac_status" >&5
8291 if (exit $ac_status) && test -s "$ac_outfile"; then
8292 # The compiler can only warn and ignore the option if not recognized
8293 # So say no if there are warnings other than the usual output.
8294 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8295 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8296 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8297 lt_cv_prog_compiler_pic_works=yes
8298 fi
8299 fi
8300 $RM conftest*
8301
8302 fi
8303 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
8304 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8305
8306 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8307 case $lt_prog_compiler_pic in
8308 "" | " "*) ;;
8309 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8310 esac
8311 else
8312 lt_prog_compiler_pic=
8313 lt_prog_compiler_can_build_shared=no
8314 fi
8315
8316 fi
8317
8318
8319
8320
8321
8322
8323 #
8324 # Check to make sure the static flag actually works.
8325 #
8326 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8327 { $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8328 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8329 if test "${lt_cv_prog_compiler_static_works+set}" = set; then
8330 $as_echo_n "(cached) " >&6
8331 else
8332 lt_cv_prog_compiler_static_works=no
8333 save_LDFLAGS="$LDFLAGS"
8334 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8335 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8336 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8337 # The linker can only warn and ignore the option if not recognized
8338 # So say no if there are warnings
8339 if test -s conftest.err; then
8340 # Append any errors to the config.log.
8341 cat conftest.err 1>&5
8342 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
8343 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8344 if diff conftest.exp conftest.er2 >/dev/null; then
8345 lt_cv_prog_compiler_static_works=yes
8346 fi
8347 else
8348 lt_cv_prog_compiler_static_works=yes
8349 fi
8350 fi
8351 $RM -r conftest*
8352 LDFLAGS="$save_LDFLAGS"
8353
8354 fi
8355 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
8356 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8357
8358 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8359 :
8360 else
8361 lt_prog_compiler_static=
8362 fi
8363
8364
8365
8366
8367
8368
8369
8370 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8371 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8372 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8373 $as_echo_n "(cached) " >&6
8374 else
8375 lt_cv_prog_compiler_c_o=no
8376 $RM -r conftest 2>/dev/null
8377 mkdir conftest
8378 cd conftest
8379 mkdir out
8380 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8381
8382 lt_compiler_flag="-o out/conftest2.$ac_objext"
8383 # Insert the option either (1) after the last *FLAGS variable, or
8384 # (2) before a word containing "conftest.", or (3) at the end.
8385 # Note that $ac_compile itself does not contain backslashes and begins
8386 # with a dollar sign (not a hyphen), so the echo should work correctly.
8387 lt_compile=`echo "$ac_compile" | $SED \
8388 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8389 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8390 -e 's:$: $lt_compiler_flag:'`
8391 (eval echo "\"\$as_me:8391: $lt_compile\"" >&5)
8392 (eval "$lt_compile" 2>out/conftest.err)
8393 ac_status=$?
8394 cat out/conftest.err >&5
8395 echo "$as_me:8395: \$? = $ac_status" >&5
8396 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8397 then
8398 # The compiler can only warn and ignore the option if not recognized
8399 # So say no if there are warnings
8400 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8401 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8402 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8403 lt_cv_prog_compiler_c_o=yes
8404 fi
8405 fi
8406 chmod u+w . 2>&5
8407 $RM conftest*
8408 # SGI C++ compiler will create directory out/ii_files/ for
8409 # template instantiation
8410 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8411 $RM out/* && rmdir out
8412 cd ..
8413 $RM -r conftest
8414 $RM conftest*
8415
8416 fi
8417 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8418 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8419
8420
8421
8422
8423
8424
8425 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8426 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8427 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8428 $as_echo_n "(cached) " >&6
8429 else
8430 lt_cv_prog_compiler_c_o=no
8431 $RM -r conftest 2>/dev/null
8432 mkdir conftest
8433 cd conftest
8434 mkdir out
8435 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8436
8437 lt_compiler_flag="-o out/conftest2.$ac_objext"
8438 # Insert the option either (1) after the last *FLAGS variable, or
8439 # (2) before a word containing "conftest.", or (3) at the end.
8440 # Note that $ac_compile itself does not contain backslashes and begins
8441 # with a dollar sign (not a hyphen), so the echo should work correctly.
8442 lt_compile=`echo "$ac_compile" | $SED \
8443 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8444 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8445 -e 's:$: $lt_compiler_flag:'`
8446 (eval echo "\"\$as_me:8446: $lt_compile\"" >&5)
8447 (eval "$lt_compile" 2>out/conftest.err)
8448 ac_status=$?
8449 cat out/conftest.err >&5
8450 echo "$as_me:8450: \$? = $ac_status" >&5
8451 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8452 then
8453 # The compiler can only warn and ignore the option if not recognized
8454 # So say no if there are warnings
8455 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8456 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8457 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8458 lt_cv_prog_compiler_c_o=yes
8459 fi
8460 fi
8461 chmod u+w . 2>&5
8462 $RM conftest*
8463 # SGI C++ compiler will create directory out/ii_files/ for
8464 # template instantiation
8465 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8466 $RM out/* && rmdir out
8467 cd ..
8468 $RM -r conftest
8469 $RM conftest*
8470
8471 fi
8472 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8473 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8474
8475
8476
8477
8478 hard_links="nottested"
8479 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8480 # do not overwrite the value of need_locks provided by the user
8481 { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8482 $as_echo_n "checking if we can lock with hard links... " >&6; }
8483 hard_links=yes
8484 $RM conftest*
8485 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8486 touch conftest.a
8487 ln conftest.a conftest.b 2>&5 || hard_links=no
8488 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8489 { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
8490 $as_echo "$hard_links" >&6; }
8491 if test "$hard_links" = no; then
8492 { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8493 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8494 need_locks=warn
8495 fi
8496 else
8497 need_locks=no
8498 fi
8499
8500
8501
8502
8503
8504
8505 { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8506 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8507
8508 runpath_var=
8509 allow_undefined_flag=
8510 always_export_symbols=no
8511 archive_cmds=
8512 archive_expsym_cmds=
8513 compiler_needs_object=no
8514 enable_shared_with_static_runtimes=no
8515 export_dynamic_flag_spec=
8516 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8517 hardcode_automatic=no
8518 hardcode_direct=no
8519 hardcode_direct_absolute=no
8520 hardcode_libdir_flag_spec=
8521 hardcode_libdir_flag_spec_ld=
8522 hardcode_libdir_separator=
8523 hardcode_minus_L=no
8524 hardcode_shlibpath_var=unsupported
8525 inherit_rpath=no
8526 link_all_deplibs=unknown
8527 module_cmds=
8528 module_expsym_cmds=
8529 old_archive_from_new_cmds=
8530 old_archive_from_expsyms_cmds=
8531 thread_safe_flag_spec=
8532 whole_archive_flag_spec=
8533 # include_expsyms should be a list of space-separated symbols to be *always*
8534 # included in the symbol list
8535 include_expsyms=
8536 # exclude_expsyms can be an extended regexp of symbols to exclude
8537 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8538 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8539 # as well as any symbol that contains `d'.
8540 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8541 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8542 # platforms (ab)use it in PIC code, but their linkers get confused if
8543 # the symbol is explicitly referenced. Since portable code cannot
8544 # rely on this symbol name, it's probably fine to never include it in
8545 # preloaded symbol tables.
8546 # Exclude shared library initialization/finalization symbols.
8547 extract_expsyms_cmds=
8548
8549 case $host_os in
8550 cygwin* | mingw* | pw32* | cegcc*)
8551 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8552 # When not using gcc, we currently assume that we are using
8553 # Microsoft Visual C++.
8554 if test "$GCC" != yes; then
8555 with_gnu_ld=no
8556 fi
8557 ;;
8558 interix*)
8559 # we just hope/assume this is gcc and not c89 (= MSVC++)
8560 with_gnu_ld=yes
8561 ;;
8562 openbsd*)
8563 with_gnu_ld=no
8564 ;;
8565 esac
8566
8567 ld_shlibs=yes
8568 if test "$with_gnu_ld" = yes; then
8569 # If archive_cmds runs LD, not CC, wlarc should be empty
8570 wlarc='${wl}'
8571
8572 # Set some defaults for GNU ld with shared library support. These
8573 # are reset later if shared libraries are not supported. Putting them
8574 # here allows them to be overridden if necessary.
8575 runpath_var=LD_RUN_PATH
8576 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8577 export_dynamic_flag_spec='${wl}--export-dynamic'
8578 # ancient GNU ld didn't support --whole-archive et. al.
8579 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8580 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8581 else
8582 whole_archive_flag_spec=
8583 fi
8584 supports_anon_versioning=no
8585 case `$LD -v 2>&1` in
8586 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8587 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8588 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8589 *\ 2.11.*) ;; # other 2.11 versions
8590 *) supports_anon_versioning=yes ;;
8591 esac
8592
8593 # See if GNU ld supports shared libraries.
8594 case $host_os in
8595 aix[3-9]*)
8596 # On AIX/PPC, the GNU linker is very broken
8597 if test "$host_cpu" != ia64; then
8598 ld_shlibs=no
8599 cat <<_LT_EOF 1>&2
8600
8601 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
8602 *** to be unable to reliably create shared libraries on AIX.
8603 *** Therefore, libtool is disabling shared libraries support. If you
8604 *** really care for shared libraries, you may want to modify your PATH
8605 *** so that a non-GNU linker is found, and then restart.
8606
8607 _LT_EOF
8608 fi
8609 ;;
8610
8611 amigaos*)
8612 case $host_cpu in
8613 powerpc)
8614 # see comment about AmigaOS4 .so support
8615 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8616 archive_expsym_cmds=''
8617 ;;
8618 m68k)
8619 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)'
8620 hardcode_libdir_flag_spec='-L$libdir'
8621 hardcode_minus_L=yes
8622 ;;
8623 esac
8624 ;;
8625
8626 beos*)
8627 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8628 allow_undefined_flag=unsupported
8629 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8630 # support --undefined. This deserves some investigation. FIXME
8631 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8632 else
8633 ld_shlibs=no
8634 fi
8635 ;;
8636
8637 cygwin* | mingw* | pw32* | cegcc*)
8638 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8639 # as there is no search path for DLLs.
8640 hardcode_libdir_flag_spec='-L$libdir'
8641 allow_undefined_flag=unsupported
8642 always_export_symbols=no
8643 enable_shared_with_static_runtimes=yes
8644 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8645
8646 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8647 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8648 # If the export-symbols file already is a .def file (1st line
8649 # is EXPORTS), use it as is; otherwise, prepend...
8650 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8651 cp $export_symbols $output_objdir/$soname.def;
8652 else
8653 echo EXPORTS > $output_objdir/$soname.def;
8654 cat $export_symbols >> $output_objdir/$soname.def;
8655 fi~
8656 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8657 else
8658 ld_shlibs=no
8659 fi
8660 ;;
8661
8662 interix[3-9]*)
8663 hardcode_direct=no
8664 hardcode_shlibpath_var=no
8665 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8666 export_dynamic_flag_spec='${wl}-E'
8667 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8668 # Instead, shared libraries are loaded at an image base (0x10000000 by
8669 # default) and relocated if they conflict, which is a slow very memory
8670 # consuming and fragmenting process. To avoid this, we pick a random,
8671 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8672 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8673 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8674 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'
8675 ;;
8676
8677 gnu* | linux* | tpf* | k*bsd*-gnu)
8678 tmp_diet=no
8679 if test "$host_os" = linux-dietlibc; then
8680 case $cc_basename in
8681 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8682 esac
8683 fi
8684 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8685 && test "$tmp_diet" = no
8686 then
8687 tmp_addflag=
8688 tmp_sharedflag='-shared'
8689 case $cc_basename,$host_cpu in
8690 pgcc*) # Portland Group C compiler
8691 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
8692 tmp_addflag=' $pic_flag'
8693 ;;
8694 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
8695 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
8696 tmp_addflag=' $pic_flag -Mnomain' ;;
8697 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8698 tmp_addflag=' -i_dynamic' ;;
8699 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8700 tmp_addflag=' -i_dynamic -nofor_main' ;;
8701 ifc* | ifort*) # Intel Fortran compiler
8702 tmp_addflag=' -nofor_main' ;;
8703 lf95*) # Lahey Fortran 8.1
8704 whole_archive_flag_spec=
8705 tmp_sharedflag='--shared' ;;
8706 xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8707 tmp_sharedflag='-qmkshrobj'
8708 tmp_addflag= ;;
8709 esac
8710 case `$CC -V 2>&1 | sed 5q` in
8711 *Sun\ C*) # Sun C 5.9
8712 whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
8713 compiler_needs_object=yes
8714 tmp_sharedflag='-G' ;;
8715 *Sun\ F*) # Sun Fortran 8.3
8716 tmp_sharedflag='-G' ;;
8717 esac
8718 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8719
8720 if test "x$supports_anon_versioning" = xyes; then
8721 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8722 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8723 echo "local: *; };" >> $output_objdir/$libname.ver~
8724 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8725 fi
8726
8727 case $cc_basename in
8728 xlf*)
8729 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8730 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8731 hardcode_libdir_flag_spec=
8732 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8733 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
8734 if test "x$supports_anon_versioning" = xyes; then
8735 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8736 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8737 echo "local: *; };" >> $output_objdir/$libname.ver~
8738 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8739 fi
8740 ;;
8741 esac
8742 else
8743 ld_shlibs=no
8744 fi
8745 ;;
8746
8747 netbsd*)
8748 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8749 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8750 wlarc=
8751 else
8752 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8753 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8754 fi
8755 ;;
8756
8757 solaris*)
8758 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8759 ld_shlibs=no
8760 cat <<_LT_EOF 1>&2
8761
8762 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8763 *** create shared libraries on Solaris systems. Therefore, libtool
8764 *** is disabling shared libraries support. We urge you to upgrade GNU
8765 *** binutils to release 2.9.1 or newer. Another option is to modify
8766 *** your PATH or compiler configuration so that the native linker is
8767 *** used, and then restart.
8768
8769 _LT_EOF
8770 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8771 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8772 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8773 else
8774 ld_shlibs=no
8775 fi
8776 ;;
8777
8778 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8779 case `$LD -v 2>&1` in
8780 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8781 ld_shlibs=no
8782 cat <<_LT_EOF 1>&2
8783
8784 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8785 *** reliably create shared libraries on SCO systems. Therefore, libtool
8786 *** is disabling shared libraries support. We urge you to upgrade GNU
8787 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8788 *** your PATH or compiler configuration so that the native linker is
8789 *** used, and then restart.
8790
8791 _LT_EOF
8792 ;;
8793 *)
8794 # For security reasons, it is highly recommended that you always
8795 # use absolute paths for naming shared libraries, and exclude the
8796 # DT_RUNPATH tag from executables and libraries. But doing so
8797 # requires that you compile everything twice, which is a pain.
8798 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8799 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8800 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8801 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8802 else
8803 ld_shlibs=no
8804 fi
8805 ;;
8806 esac
8807 ;;
8808
8809 sunos4*)
8810 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8811 wlarc=
8812 hardcode_direct=yes
8813 hardcode_shlibpath_var=no
8814 ;;
8815
8816 *)
8817 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8818 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8819 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8820 else
8821 ld_shlibs=no
8822 fi
8823 ;;
8824 esac
8825
8826 if test "$ld_shlibs" = no; then
8827 runpath_var=
8828 hardcode_libdir_flag_spec=
8829 export_dynamic_flag_spec=
8830 whole_archive_flag_spec=
8831 fi
8832 else
8833 # PORTME fill in a description of your system's linker (not GNU ld)
8834 case $host_os in
8835 aix3*)
8836 allow_undefined_flag=unsupported
8837 always_export_symbols=yes
8838 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'
8839 # Note: this linker hardcodes the directories in LIBPATH if there
8840 # are no directories specified by -L.
8841 hardcode_minus_L=yes
8842 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8843 # Neither direct hardcoding nor static linking is supported with a
8844 # broken collect2.
8845 hardcode_direct=unsupported
8846 fi
8847 ;;
8848
8849 aix[4-9]*)
8850 if test "$host_cpu" = ia64; then
8851 # On IA64, the linker does run time linking by default, so we don't
8852 # have to do anything special.
8853 aix_use_runtimelinking=no
8854 exp_sym_flag='-Bexport'
8855 no_entry_flag=""
8856 else
8857 # If we're using GNU nm, then we don't want the "-C" option.
8858 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8859 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8860 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
8861 else
8862 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
8863 fi
8864 aix_use_runtimelinking=no
8865
8866 # Test if we are trying to use run time linking or normal
8867 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8868 # need to do runtime linking.
8869 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8870 for ld_flag in $LDFLAGS; do
8871 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8872 aix_use_runtimelinking=yes
8873 break
8874 fi
8875 done
8876 ;;
8877 esac
8878
8879 exp_sym_flag='-bexport'
8880 no_entry_flag='-bnoentry'
8881 fi
8882
8883 # When large executables or shared objects are built, AIX ld can
8884 # have problems creating the table of contents. If linking a library
8885 # or program results in "error TOC overflow" add -mminimal-toc to
8886 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8887 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8888
8889 archive_cmds=''
8890 hardcode_direct=yes
8891 hardcode_direct_absolute=yes
8892 hardcode_libdir_separator=':'
8893 link_all_deplibs=yes
8894 file_list_spec='${wl}-f,'
8895
8896 if test "$GCC" = yes; then
8897 case $host_os in aix4.[012]|aix4.[012].*)
8898 # We only want to do this on AIX 4.2 and lower, the check
8899 # below for broken collect2 doesn't work under 4.3+
8900 collect2name=`${CC} -print-prog-name=collect2`
8901 if test -f "$collect2name" &&
8902 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8903 then
8904 # We have reworked collect2
8905 :
8906 else
8907 # We have old collect2
8908 hardcode_direct=unsupported
8909 # It fails to find uninstalled libraries when the uninstalled
8910 # path is not listed in the libpath. Setting hardcode_minus_L
8911 # to unsupported forces relinking
8912 hardcode_minus_L=yes
8913 hardcode_libdir_flag_spec='-L$libdir'
8914 hardcode_libdir_separator=
8915 fi
8916 ;;
8917 esac
8918 shared_flag='-shared'
8919 if test "$aix_use_runtimelinking" = yes; then
8920 shared_flag="$shared_flag "'${wl}-G'
8921 fi
8922 else
8923 # not using gcc
8924 if test "$host_cpu" = ia64; then
8925 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8926 # chokes on -Wl,-G. The following line is correct:
8927 shared_flag='-G'
8928 else
8929 if test "$aix_use_runtimelinking" = yes; then
8930 shared_flag='${wl}-G'
8931 else
8932 shared_flag='${wl}-bM:SRE'
8933 fi
8934 fi
8935 fi
8936
8937 export_dynamic_flag_spec='${wl}-bexpall'
8938 # It seems that -bexpall does not export symbols beginning with
8939 # underscore (_), so it is better to generate a list of symbols to export.
8940 always_export_symbols=yes
8941 if test "$aix_use_runtimelinking" = yes; then
8942 # Warning - without using the other runtime loading flags (-brtl),
8943 # -berok will link without error, but may produce a broken library.
8944 allow_undefined_flag='-berok'
8945 # Determine the default libpath from the value encoded in an
8946 # empty executable.
8947 cat >conftest.$ac_ext <<_ACEOF
8948 /* confdefs.h. */
8949 _ACEOF
8950 cat confdefs.h >>conftest.$ac_ext
8951 cat >>conftest.$ac_ext <<_ACEOF
8952 /* end confdefs.h. */
8953
8954 int
8955 main ()
8956 {
8957
8958 ;
8959 return 0;
8960 }
8961 _ACEOF
8962 rm -f conftest.$ac_objext conftest$ac_exeext
8963 if { (ac_try="$ac_link"
8964 case "(($ac_try" in
8965 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8966 *) ac_try_echo=$ac_try;;
8967 esac
8968 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8969 $as_echo "$ac_try_echo") >&5
8970 (eval "$ac_link") 2>conftest.er1
8971 ac_status=$?
8972 grep -v '^ *+' conftest.er1 >conftest.err
8973 rm -f conftest.er1
8974 cat conftest.err >&5
8975 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8976 (exit $ac_status); } && {
8977 test -z "$ac_c_werror_flag" ||
8978 test ! -s conftest.err
8979 } && test -s conftest$ac_exeext && {
8980 test "$cross_compiling" = yes ||
8981 $as_test_x conftest$ac_exeext
8982 }; then
8983
8984 lt_aix_libpath_sed='
8985 /Import File Strings/,/^$/ {
8986 /^0/ {
8987 s/^0 *\(.*\)$/\1/
8988 p
8989 }
8990 }'
8991 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8992 # Check for a 64-bit object if we didn't find anything.
8993 if test -z "$aix_libpath"; then
8994 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8995 fi
8996 else
8997 $as_echo "$as_me: failed program was:" >&5
8998 sed 's/^/| /' conftest.$ac_ext >&5
8999
9000
9001 fi
9002
9003 rm -rf conftest.dSYM
9004 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9005 conftest$ac_exeext conftest.$ac_ext
9006 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9007
9008 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9009 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
9010 else
9011 if test "$host_cpu" = ia64; then
9012 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9013 allow_undefined_flag="-z nodefs"
9014 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"
9015 else
9016 # Determine the default libpath from the value encoded in an
9017 # empty executable.
9018 cat >conftest.$ac_ext <<_ACEOF
9019 /* confdefs.h. */
9020 _ACEOF
9021 cat confdefs.h >>conftest.$ac_ext
9022 cat >>conftest.$ac_ext <<_ACEOF
9023 /* end confdefs.h. */
9024
9025 int
9026 main ()
9027 {
9028
9029 ;
9030 return 0;
9031 }
9032 _ACEOF
9033 rm -f conftest.$ac_objext conftest$ac_exeext
9034 if { (ac_try="$ac_link"
9035 case "(($ac_try" in
9036 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9037 *) ac_try_echo=$ac_try;;
9038 esac
9039 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9040 $as_echo "$ac_try_echo") >&5
9041 (eval "$ac_link") 2>conftest.er1
9042 ac_status=$?
9043 grep -v '^ *+' conftest.er1 >conftest.err
9044 rm -f conftest.er1
9045 cat conftest.err >&5
9046 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9047 (exit $ac_status); } && {
9048 test -z "$ac_c_werror_flag" ||
9049 test ! -s conftest.err
9050 } && test -s conftest$ac_exeext && {
9051 test "$cross_compiling" = yes ||
9052 $as_test_x conftest$ac_exeext
9053 }; then
9054
9055 lt_aix_libpath_sed='
9056 /Import File Strings/,/^$/ {
9057 /^0/ {
9058 s/^0 *\(.*\)$/\1/
9059 p
9060 }
9061 }'
9062 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9063 # Check for a 64-bit object if we didn't find anything.
9064 if test -z "$aix_libpath"; then
9065 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9066 fi
9067 else
9068 $as_echo "$as_me: failed program was:" >&5
9069 sed 's/^/| /' conftest.$ac_ext >&5
9070
9071
9072 fi
9073
9074 rm -rf conftest.dSYM
9075 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9076 conftest$ac_exeext conftest.$ac_ext
9077 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9078
9079 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9080 # Warning - without using the other run time loading flags,
9081 # -berok will link without error, but may produce a broken library.
9082 no_undefined_flag=' ${wl}-bernotok'
9083 allow_undefined_flag=' ${wl}-berok'
9084 # Exported symbols can be pulled into shared objects from archives
9085 whole_archive_flag_spec='$convenience'
9086 archive_cmds_need_lc=yes
9087 # This is similar to how AIX traditionally builds its shared libraries.
9088 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
9089 fi
9090 fi
9091 ;;
9092
9093 amigaos*)
9094 case $host_cpu in
9095 powerpc)
9096 # see comment about AmigaOS4 .so support
9097 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9098 archive_expsym_cmds=''
9099 ;;
9100 m68k)
9101 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)'
9102 hardcode_libdir_flag_spec='-L$libdir'
9103 hardcode_minus_L=yes
9104 ;;
9105 esac
9106 ;;
9107
9108 bsdi[45]*)
9109 export_dynamic_flag_spec=-rdynamic
9110 ;;
9111
9112 cygwin* | mingw* | pw32* | cegcc*)
9113 # When not using gcc, we currently assume that we are using
9114 # Microsoft Visual C++.
9115 # hardcode_libdir_flag_spec is actually meaningless, as there is
9116 # no search path for DLLs.
9117 hardcode_libdir_flag_spec=' '
9118 allow_undefined_flag=unsupported
9119 # Tell ltmain to make .lib files, not .a files.
9120 libext=lib
9121 # Tell ltmain to make .dll files, not .so files.
9122 shrext_cmds=".dll"
9123 # FIXME: Setting linknames here is a bad hack.
9124 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
9125 # The linker will automatically build a .lib file if we build a DLL.
9126 old_archive_from_new_cmds='true'
9127 # FIXME: Should let the user specify the lib program.
9128 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9129 fix_srcfile_path='`cygpath -w "$srcfile"`'
9130 enable_shared_with_static_runtimes=yes
9131 ;;
9132
9133 darwin* | rhapsody*)
9134
9135
9136 archive_cmds_need_lc=no
9137 hardcode_direct=no
9138 hardcode_automatic=yes
9139 hardcode_shlibpath_var=unsupported
9140 whole_archive_flag_spec=''
9141 link_all_deplibs=yes
9142 allow_undefined_flag="$_lt_dar_allow_undefined"
9143 case $cc_basename in
9144 ifort*) _lt_dar_can_shared=yes ;;
9145 *) _lt_dar_can_shared=$GCC ;;
9146 esac
9147 if test "$_lt_dar_can_shared" = "yes"; then
9148 output_verbose_link_cmd=echo
9149 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9150 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9151 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}"
9152 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}"
9153
9154 else
9155 ld_shlibs=no
9156 fi
9157
9158 ;;
9159
9160 dgux*)
9161 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9162 hardcode_libdir_flag_spec='-L$libdir'
9163 hardcode_shlibpath_var=no
9164 ;;
9165
9166 freebsd1*)
9167 ld_shlibs=no
9168 ;;
9169
9170 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9171 # support. Future versions do this automatically, but an explicit c++rt0.o
9172 # does not break anything, and helps significantly (at the cost of a little
9173 # extra space).
9174 freebsd2.2*)
9175 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9176 hardcode_libdir_flag_spec='-R$libdir'
9177 hardcode_direct=yes
9178 hardcode_shlibpath_var=no
9179 ;;
9180
9181 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9182 freebsd2*)
9183 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9184 hardcode_direct=yes
9185 hardcode_minus_L=yes
9186 hardcode_shlibpath_var=no
9187 ;;
9188
9189 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9190 freebsd* | dragonfly*)
9191 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9192 hardcode_libdir_flag_spec='-R$libdir'
9193 hardcode_direct=yes
9194 hardcode_shlibpath_var=no
9195 ;;
9196
9197 hpux9*)
9198 if test "$GCC" = yes; then
9199 archive_cmds='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
9200 else
9201 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
9202 fi
9203 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9204 hardcode_libdir_separator=:
9205 hardcode_direct=yes
9206
9207 # hardcode_minus_L: Not really in the search PATH,
9208 # but as the default location of the library.
9209 hardcode_minus_L=yes
9210 export_dynamic_flag_spec='${wl}-E'
9211 ;;
9212
9213 hpux10*)
9214 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9215 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9216 else
9217 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9218 fi
9219 if test "$with_gnu_ld" = no; then
9220 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9221 hardcode_libdir_flag_spec_ld='+b $libdir'
9222 hardcode_libdir_separator=:
9223 hardcode_direct=yes
9224 hardcode_direct_absolute=yes
9225 export_dynamic_flag_spec='${wl}-E'
9226 # hardcode_minus_L: Not really in the search PATH,
9227 # but as the default location of the library.
9228 hardcode_minus_L=yes
9229 fi
9230 ;;
9231
9232 hpux11*)
9233 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9234 case $host_cpu in
9235 hppa*64*)
9236 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9237 ;;
9238 ia64*)
9239 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9240 ;;
9241 *)
9242 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9243 ;;
9244 esac
9245 else
9246 case $host_cpu in
9247 hppa*64*)
9248 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9249 ;;
9250 ia64*)
9251 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9252 ;;
9253 *)
9254 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9255 ;;
9256 esac
9257 fi
9258 if test "$with_gnu_ld" = no; then
9259 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9260 hardcode_libdir_separator=:
9261
9262 case $host_cpu in
9263 hppa*64*|ia64*)
9264 hardcode_direct=no
9265 hardcode_shlibpath_var=no
9266 ;;
9267 *)
9268 hardcode_direct=yes
9269 hardcode_direct_absolute=yes
9270 export_dynamic_flag_spec='${wl}-E'
9271
9272 # hardcode_minus_L: Not really in the search PATH,
9273 # but as the default location of the library.
9274 hardcode_minus_L=yes
9275 ;;
9276 esac
9277 fi
9278 ;;
9279
9280 irix5* | irix6* | nonstopux*)
9281 if test "$GCC" = yes; then
9282 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9283 # Try to use the -exported_symbol ld option, if it does not
9284 # work, assume that -exports_file does not work either and
9285 # implicitly export all symbols.
9286 save_LDFLAGS="$LDFLAGS"
9287 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9288 cat >conftest.$ac_ext <<_ACEOF
9289 int foo(void) {}
9290 _ACEOF
9291 rm -f conftest.$ac_objext conftest$ac_exeext
9292 if { (ac_try="$ac_link"
9293 case "(($ac_try" in
9294 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9295 *) ac_try_echo=$ac_try;;
9296 esac
9297 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9298 $as_echo "$ac_try_echo") >&5
9299 (eval "$ac_link") 2>conftest.er1
9300 ac_status=$?
9301 grep -v '^ *+' conftest.er1 >conftest.err
9302 rm -f conftest.er1
9303 cat conftest.err >&5
9304 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9305 (exit $ac_status); } && {
9306 test -z "$ac_c_werror_flag" ||
9307 test ! -s conftest.err
9308 } && test -s conftest$ac_exeext && {
9309 test "$cross_compiling" = yes ||
9310 $as_test_x conftest$ac_exeext
9311 }; then
9312 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
9313
9314 else
9315 $as_echo "$as_me: failed program was:" >&5
9316 sed 's/^/| /' conftest.$ac_ext >&5
9317
9318
9319 fi
9320
9321 rm -rf conftest.dSYM
9322 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9323 conftest$ac_exeext conftest.$ac_ext
9324 LDFLAGS="$save_LDFLAGS"
9325 else
9326 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
9327 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
9328 fi
9329 archive_cmds_need_lc='no'
9330 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9331 hardcode_libdir_separator=:
9332 inherit_rpath=yes
9333 link_all_deplibs=yes
9334 ;;
9335
9336 netbsd*)
9337 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9338 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9339 else
9340 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9341 fi
9342 hardcode_libdir_flag_spec='-R$libdir'
9343 hardcode_direct=yes
9344 hardcode_shlibpath_var=no
9345 ;;
9346
9347 newsos6)
9348 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9349 hardcode_direct=yes
9350 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9351 hardcode_libdir_separator=:
9352 hardcode_shlibpath_var=no
9353 ;;
9354
9355 *nto* | *qnx*)
9356 ;;
9357
9358 openbsd*)
9359 if test -f /usr/libexec/ld.so; then
9360 hardcode_direct=yes
9361 hardcode_shlibpath_var=no
9362 hardcode_direct_absolute=yes
9363 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9364 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9365 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9366 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9367 export_dynamic_flag_spec='${wl}-E'
9368 else
9369 case $host_os in
9370 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9371 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9372 hardcode_libdir_flag_spec='-R$libdir'
9373 ;;
9374 *)
9375 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9376 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9377 ;;
9378 esac
9379 fi
9380 else
9381 ld_shlibs=no
9382 fi
9383 ;;
9384
9385 os2*)
9386 hardcode_libdir_flag_spec='-L$libdir'
9387 hardcode_minus_L=yes
9388 allow_undefined_flag=unsupported
9389 archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$ECHO DATA >> $output_objdir/$libname.def~$ECHO " SINGLE NONSHARED" >> $output_objdir/$libname.def~$ECHO EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
9390 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9391 ;;
9392
9393 osf3*)
9394 if test "$GCC" = yes; then
9395 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9396 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9397 else
9398 allow_undefined_flag=' -expect_unresolved \*'
9399 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
9400 fi
9401 archive_cmds_need_lc='no'
9402 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9403 hardcode_libdir_separator=:
9404 ;;
9405
9406 osf4* | osf5*) # as osf3* with the addition of -msym flag
9407 if test "$GCC" = yes; then
9408 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9409 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9410 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9411 else
9412 allow_undefined_flag=' -expect_unresolved \*'
9413 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
9414 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~
9415 $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
9416
9417 # Both c and cxx compiler support -rpath directly
9418 hardcode_libdir_flag_spec='-rpath $libdir'
9419 fi
9420 archive_cmds_need_lc='no'
9421 hardcode_libdir_separator=:
9422 ;;
9423
9424 solaris*)
9425 no_undefined_flag=' -z defs'
9426 if test "$GCC" = yes; then
9427 wlarc='${wl}'
9428 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9429 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9430 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9431 else
9432 case `$CC -V 2>&1` in
9433 *"Compilers 5.0"*)
9434 wlarc=''
9435 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9436 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9437 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9438 ;;
9439 *)
9440 wlarc='${wl}'
9441 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9442 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9443 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9444 ;;
9445 esac
9446 fi
9447 hardcode_libdir_flag_spec='-R$libdir'
9448 hardcode_shlibpath_var=no
9449 case $host_os in
9450 solaris2.[0-5] | solaris2.[0-5].*) ;;
9451 *)
9452 # The compiler driver will combine and reorder linker options,
9453 # but understands `-z linker_flag'. GCC discards it without `$wl',
9454 # but is careful enough not to reorder.
9455 # Supported since Solaris 2.6 (maybe 2.5.1?)
9456 if test "$GCC" = yes; then
9457 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9458 else
9459 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9460 fi
9461 ;;
9462 esac
9463 link_all_deplibs=yes
9464 ;;
9465
9466 sunos4*)
9467 if test "x$host_vendor" = xsequent; then
9468 # Use $CC to link under sequent, because it throws in some extra .o
9469 # files that make .init and .fini sections work.
9470 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9471 else
9472 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9473 fi
9474 hardcode_libdir_flag_spec='-L$libdir'
9475 hardcode_direct=yes
9476 hardcode_minus_L=yes
9477 hardcode_shlibpath_var=no
9478 ;;
9479
9480 sysv4)
9481 case $host_vendor in
9482 sni)
9483 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9484 hardcode_direct=yes # is this really true???
9485 ;;
9486 siemens)
9487 ## LD is ld it makes a PLAMLIB
9488 ## CC just makes a GrossModule.
9489 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9490 reload_cmds='$CC -r -o $output$reload_objs'
9491 hardcode_direct=no
9492 ;;
9493 motorola)
9494 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9495 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9496 ;;
9497 esac
9498 runpath_var='LD_RUN_PATH'
9499 hardcode_shlibpath_var=no
9500 ;;
9501
9502 sysv4.3*)
9503 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9504 hardcode_shlibpath_var=no
9505 export_dynamic_flag_spec='-Bexport'
9506 ;;
9507
9508 sysv4*MP*)
9509 if test -d /usr/nec; then
9510 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9511 hardcode_shlibpath_var=no
9512 runpath_var=LD_RUN_PATH
9513 hardcode_runpath_var=yes
9514 ld_shlibs=yes
9515 fi
9516 ;;
9517
9518 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9519 no_undefined_flag='${wl}-z,text'
9520 archive_cmds_need_lc=no
9521 hardcode_shlibpath_var=no
9522 runpath_var='LD_RUN_PATH'
9523
9524 if test "$GCC" = yes; then
9525 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9526 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9527 else
9528 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9529 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9530 fi
9531 ;;
9532
9533 sysv5* | sco3.2v5* | sco5v6*)
9534 # Note: We can NOT use -z defs as we might desire, because we do not
9535 # link with -lc, and that would cause any symbols used from libc to
9536 # always be unresolved, which means just about no library would
9537 # ever link correctly. If we're not using GNU ld we use -z text
9538 # though, which does catch some bad symbols but isn't as heavy-handed
9539 # as -z defs.
9540 no_undefined_flag='${wl}-z,text'
9541 allow_undefined_flag='${wl}-z,nodefs'
9542 archive_cmds_need_lc=no
9543 hardcode_shlibpath_var=no
9544 hardcode_libdir_flag_spec='${wl}-R,$libdir'
9545 hardcode_libdir_separator=':'
9546 link_all_deplibs=yes
9547 export_dynamic_flag_spec='${wl}-Bexport'
9548 runpath_var='LD_RUN_PATH'
9549
9550 if test "$GCC" = yes; then
9551 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9552 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9553 else
9554 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9555 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9556 fi
9557 ;;
9558
9559 uts4*)
9560 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9561 hardcode_libdir_flag_spec='-L$libdir'
9562 hardcode_shlibpath_var=no
9563 ;;
9564
9565 *)
9566 ld_shlibs=no
9567 ;;
9568 esac
9569
9570 if test x$host_vendor = xsni; then
9571 case $host in
9572 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9573 export_dynamic_flag_spec='${wl}-Blargedynsym'
9574 ;;
9575 esac
9576 fi
9577 fi
9578
9579 { $as_echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9580 $as_echo "$ld_shlibs" >&6; }
9581 test "$ld_shlibs" = no && can_build_shared=no
9582
9583 with_gnu_ld=$with_gnu_ld
9584
9585
9586
9587
9588
9589
9590
9591
9592
9593
9594
9595
9596
9597
9598
9599 #
9600 # Do we need to explicitly link libc?
9601 #
9602 case "x$archive_cmds_need_lc" in
9603 x|xyes)
9604 # Assume -lc should be added
9605 archive_cmds_need_lc=yes
9606
9607 if test "$enable_shared" = yes && test "$GCC" = yes; then
9608 case $archive_cmds in
9609 *'~'*)
9610 # FIXME: we may have to deal with multi-command sequences.
9611 ;;
9612 '$CC '*)
9613 # Test whether the compiler implicitly links with -lc since on some
9614 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9615 # to ld, don't add -lc before -lgcc.
9616 { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9617 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9618 $RM conftest*
9619 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9620
9621 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9622 (eval $ac_compile) 2>&5
9623 ac_status=$?
9624 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9625 (exit $ac_status); } 2>conftest.err; then
9626 soname=conftest
9627 lib=conftest
9628 libobjs=conftest.$ac_objext
9629 deplibs=
9630 wl=$lt_prog_compiler_wl
9631 pic_flag=$lt_prog_compiler_pic
9632 compiler_flags=-v
9633 linker_flags=-v
9634 verstring=
9635 output_objdir=.
9636 libname=conftest
9637 lt_save_allow_undefined_flag=$allow_undefined_flag
9638 allow_undefined_flag=
9639 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
9640 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9641 ac_status=$?
9642 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9643 (exit $ac_status); }
9644 then
9645 archive_cmds_need_lc=no
9646 else
9647 archive_cmds_need_lc=yes
9648 fi
9649 allow_undefined_flag=$lt_save_allow_undefined_flag
9650 else
9651 cat conftest.err 1>&5
9652 fi
9653 $RM conftest*
9654 { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9655 $as_echo "$archive_cmds_need_lc" >&6; }
9656 ;;
9657 esac
9658 fi
9659 ;;
9660 esac
9661
9662
9663
9664
9665
9666
9667
9668
9669
9670
9671
9672
9673
9674
9675
9676
9677
9678
9679
9680
9681
9682
9683
9684
9685
9686
9687
9688
9689
9690
9691
9692
9693
9694
9695
9696
9697
9698
9699
9700
9701
9702
9703
9704
9705
9706
9707
9708
9709
9710
9711
9712
9713
9714
9715
9716
9717
9718
9719
9720
9721
9722
9723
9724
9725
9726
9727
9728
9729
9730
9731
9732
9733
9734
9735
9736
9737
9738
9739
9740
9741
9742
9743
9744
9745
9746
9747
9748
9749
9750
9751
9752
9753
9754
9755
9756
9757
9758
9759
9760
9761
9762
9763
9764
9765
9766
9767
9768
9769
9770
9771
9772
9773
9774
9775
9776
9777
9778
9779
9780
9781
9782
9783
9784
9785
9786
9787
9788
9789
9790
9791
9792
9793
9794
9795
9796
9797
9798
9799
9800
9801
9802
9803
9804
9805
9806
9807
9808
9809
9810
9811
9812
9813
9814
9815
9816
9817
9818 { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9819 $as_echo_n "checking dynamic linker characteristics... " >&6; }
9820
9821 if test "$GCC" = yes; then
9822 case $host_os in
9823 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9824 *) lt_awk_arg="/^libraries:/" ;;
9825 esac
9826 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9827 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
9828 # if the path contains ";" then we assume it to be the separator
9829 # otherwise default to the standard path separator (i.e. ":") - it is
9830 # assumed that no part of a normal pathname contains ";" but that should
9831 # okay in the real world where ";" in dirpaths is itself problematic.
9832 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
9833 else
9834 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9835 fi
9836 # Ok, now we have the path, separated by spaces, we can step through it
9837 # and add multilib dir if necessary.
9838 lt_tmp_lt_search_path_spec=
9839 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9840 for lt_sys_path in $lt_search_path_spec; do
9841 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9842 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9843 else
9844 test -d "$lt_sys_path" && \
9845 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9846 fi
9847 done
9848 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
9849 BEGIN {RS=" "; FS="/|\n";} {
9850 lt_foo="";
9851 lt_count=0;
9852 for (lt_i = NF; lt_i > 0; lt_i--) {
9853 if ($lt_i != "" && $lt_i != ".") {
9854 if ($lt_i == "..") {
9855 lt_count++;
9856 } else {
9857 if (lt_count == 0) {
9858 lt_foo="/" $lt_i lt_foo;
9859 } else {
9860 lt_count--;
9861 }
9862 }
9863 }
9864 }
9865 if (lt_foo != "") { lt_freq[lt_foo]++; }
9866 if (lt_freq[lt_foo] == 1) { print lt_foo; }
9867 }'`
9868 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
9869 else
9870 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9871 fi
9872 library_names_spec=
9873 libname_spec='lib$name'
9874 soname_spec=
9875 shrext_cmds=".so"
9876 postinstall_cmds=
9877 postuninstall_cmds=
9878 finish_cmds=
9879 finish_eval=
9880 shlibpath_var=
9881 shlibpath_overrides_runpath=unknown
9882 version_type=none
9883 dynamic_linker="$host_os ld.so"
9884 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9885 need_lib_prefix=unknown
9886 hardcode_into_libs=no
9887
9888 # when you set need_version to no, make sure it does not cause -set_version
9889 # flags to be left without arguments
9890 need_version=unknown
9891
9892 case $host_os in
9893 aix3*)
9894 version_type=linux
9895 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9896 shlibpath_var=LIBPATH
9897
9898 # AIX 3 has no versioning support, so we append a major version to the name.
9899 soname_spec='${libname}${release}${shared_ext}$major'
9900 ;;
9901
9902 aix[4-9]*)
9903 version_type=linux
9904 need_lib_prefix=no
9905 need_version=no
9906 hardcode_into_libs=yes
9907 if test "$host_cpu" = ia64; then
9908 # AIX 5 supports IA64
9909 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9910 shlibpath_var=LD_LIBRARY_PATH
9911 else
9912 # With GCC up to 2.95.x, collect2 would create an import file
9913 # for dependence libraries. The import file would start with
9914 # the line `#! .'. This would cause the generated library to
9915 # depend on `.', always an invalid library. This was fixed in
9916 # development snapshots of GCC prior to 3.0.
9917 case $host_os in
9918 aix4 | aix4.[01] | aix4.[01].*)
9919 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9920 echo ' yes '
9921 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9922 :
9923 else
9924 can_build_shared=no
9925 fi
9926 ;;
9927 esac
9928 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9929 # soname into executable. Probably we can add versioning support to
9930 # collect2, so additional links can be useful in future.
9931 if test "$aix_use_runtimelinking" = yes; then
9932 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9933 # instead of lib<name>.a to let people know that these are not
9934 # typical AIX shared libraries.
9935 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9936 else
9937 # We preserve .a as extension for shared libraries through AIX4.2
9938 # and later when we are not doing run time linking.
9939 library_names_spec='${libname}${release}.a $libname.a'
9940 soname_spec='${libname}${release}${shared_ext}$major'
9941 fi
9942 shlibpath_var=LIBPATH
9943 fi
9944 ;;
9945
9946 amigaos*)
9947 case $host_cpu in
9948 powerpc)
9949 # Since July 2007 AmigaOS4 officially supports .so libraries.
9950 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9951 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9952 ;;
9953 m68k)
9954 library_names_spec='$libname.ixlibrary $libname.a'
9955 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9956 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$ECHO "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
9957 ;;
9958 esac
9959 ;;
9960
9961 beos*)
9962 library_names_spec='${libname}${shared_ext}'
9963 dynamic_linker="$host_os ld.so"
9964 shlibpath_var=LIBRARY_PATH
9965 ;;
9966
9967 bsdi[45]*)
9968 version_type=linux
9969 need_version=no
9970 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9971 soname_spec='${libname}${release}${shared_ext}$major'
9972 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9973 shlibpath_var=LD_LIBRARY_PATH
9974 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9975 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9976 # the default ld.so.conf also contains /usr/contrib/lib and
9977 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9978 # libtool to hard-code these into programs
9979 ;;
9980
9981 cygwin* | mingw* | pw32* | cegcc*)
9982 version_type=windows
9983 shrext_cmds=".dll"
9984 need_version=no
9985 need_lib_prefix=no
9986
9987 case $GCC,$host_os in
9988 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
9989 library_names_spec='$libname.dll.a'
9990 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9991 postinstall_cmds='base_file=`basename \${file}`~
9992 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9993 dldir=$destdir/`dirname \$dlpath`~
9994 test -d \$dldir || mkdir -p \$dldir~
9995 $install_prog $dir/$dlname \$dldir/$dlname~
9996 chmod a+x \$dldir/$dlname~
9997 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9998 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9999 fi'
10000 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10001 dlpath=$dir/\$dldll~
10002 $RM \$dlpath'
10003 shlibpath_overrides_runpath=yes
10004
10005 case $host_os in
10006 cygwin*)
10007 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10008 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10009 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
10010 ;;
10011 mingw* | cegcc*)
10012 # MinGW DLLs use traditional 'lib' prefix
10013 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10014 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10015 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10016 # It is most probably a Windows format PATH printed by
10017 # mingw gcc, but we are running on Cygwin. Gcc prints its search
10018 # path with ; separators, and with drive letters. We can handle the
10019 # drive letters (cygwin fileutils understands them), so leave them,
10020 # especially as we might pass files found there to a mingw objdump,
10021 # which wouldn't understand a cygwinified path. Ahh.
10022 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10023 else
10024 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10025 fi
10026 ;;
10027 pw32*)
10028 # pw32 DLLs use 'pw' prefix rather than 'lib'
10029 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10030 ;;
10031 esac
10032 ;;
10033
10034 *)
10035 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10036 ;;
10037 esac
10038 dynamic_linker='Win32 ld.exe'
10039 # FIXME: first we should search . and the directory the executable is in
10040 shlibpath_var=PATH
10041 ;;
10042
10043 darwin* | rhapsody*)
10044 dynamic_linker="$host_os dyld"
10045 version_type=darwin
10046 need_lib_prefix=no
10047 need_version=no
10048 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10049 soname_spec='${libname}${release}${major}$shared_ext'
10050 shlibpath_overrides_runpath=yes
10051 shlibpath_var=DYLD_LIBRARY_PATH
10052 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10053
10054 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10055 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10056 ;;
10057
10058 dgux*)
10059 version_type=linux
10060 need_lib_prefix=no
10061 need_version=no
10062 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10063 soname_spec='${libname}${release}${shared_ext}$major'
10064 shlibpath_var=LD_LIBRARY_PATH
10065 ;;
10066
10067 freebsd1*)
10068 dynamic_linker=no
10069 ;;
10070
10071 freebsd* | dragonfly*)
10072 # DragonFly does not have aout. When/if they implement a new
10073 # versioning mechanism, adjust this.
10074 if test -x /usr/bin/objformat; then
10075 objformat=`/usr/bin/objformat`
10076 else
10077 case $host_os in
10078 freebsd[123]*) objformat=aout ;;
10079 *) objformat=elf ;;
10080 esac
10081 fi
10082 version_type=freebsd-$objformat
10083 case $version_type in
10084 freebsd-elf*)
10085 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10086 need_version=no
10087 need_lib_prefix=no
10088 ;;
10089 freebsd-*)
10090 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10091 need_version=yes
10092 ;;
10093 esac
10094 shlibpath_var=LD_LIBRARY_PATH
10095 case $host_os in
10096 freebsd2*)
10097 shlibpath_overrides_runpath=yes
10098 ;;
10099 freebsd3.[01]* | freebsdelf3.[01]*)
10100 shlibpath_overrides_runpath=yes
10101 hardcode_into_libs=yes
10102 ;;
10103 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10104 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10105 shlibpath_overrides_runpath=no
10106 hardcode_into_libs=yes
10107 ;;
10108 *) # from 4.6 on, and DragonFly
10109 shlibpath_overrides_runpath=yes
10110 hardcode_into_libs=yes
10111 ;;
10112 esac
10113 ;;
10114
10115 gnu*)
10116 version_type=linux
10117 need_lib_prefix=no
10118 need_version=no
10119 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10120 soname_spec='${libname}${release}${shared_ext}$major'
10121 shlibpath_var=LD_LIBRARY_PATH
10122 hardcode_into_libs=yes
10123 ;;
10124
10125 hpux9* | hpux10* | hpux11*)
10126 # Give a soname corresponding to the major version so that dld.sl refuses to
10127 # link against other versions.
10128 version_type=sunos
10129 need_lib_prefix=no
10130 need_version=no
10131 case $host_cpu in
10132 ia64*)
10133 shrext_cmds='.so'
10134 hardcode_into_libs=yes
10135 dynamic_linker="$host_os dld.so"
10136 shlibpath_var=LD_LIBRARY_PATH
10137 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10138 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10139 soname_spec='${libname}${release}${shared_ext}$major'
10140 if test "X$HPUX_IA64_MODE" = X32; then
10141 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10142 else
10143 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10144 fi
10145 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10146 ;;
10147 hppa*64*)
10148 shrext_cmds='.sl'
10149 hardcode_into_libs=yes
10150 dynamic_linker="$host_os dld.sl"
10151 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10152 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10153 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10154 soname_spec='${libname}${release}${shared_ext}$major'
10155 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10156 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10157 ;;
10158 *)
10159 shrext_cmds='.sl'
10160 dynamic_linker="$host_os dld.sl"
10161 shlibpath_var=SHLIB_PATH
10162 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10163 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10164 soname_spec='${libname}${release}${shared_ext}$major'
10165 ;;
10166 esac
10167 # HP-UX runs *really* slowly unless shared libraries are mode 555.
10168 postinstall_cmds='chmod 555 $lib'
10169 ;;
10170
10171 interix[3-9]*)
10172 version_type=linux
10173 need_lib_prefix=no
10174 need_version=no
10175 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10176 soname_spec='${libname}${release}${shared_ext}$major'
10177 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10178 shlibpath_var=LD_LIBRARY_PATH
10179 shlibpath_overrides_runpath=no
10180 hardcode_into_libs=yes
10181 ;;
10182
10183 irix5* | irix6* | nonstopux*)
10184 case $host_os in
10185 nonstopux*) version_type=nonstopux ;;
10186 *)
10187 if test "$lt_cv_prog_gnu_ld" = yes; then
10188 version_type=linux
10189 else
10190 version_type=irix
10191 fi ;;
10192 esac
10193 need_lib_prefix=no
10194 need_version=no
10195 soname_spec='${libname}${release}${shared_ext}$major'
10196 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10197 case $host_os in
10198 irix5* | nonstopux*)
10199 libsuff= shlibsuff=
10200 ;;
10201 *)
10202 case $LD in # libtool.m4 will add one of these switches to LD
10203 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10204 libsuff= shlibsuff= libmagic=32-bit;;
10205 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10206 libsuff=32 shlibsuff=N32 libmagic=N32;;
10207 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10208 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10209 *) libsuff= shlibsuff= libmagic=never-match;;
10210 esac
10211 ;;
10212 esac
10213 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10214 shlibpath_overrides_runpath=no
10215 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10216 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10217 hardcode_into_libs=yes
10218 ;;
10219
10220 # No shared lib support for Linux oldld, aout, or coff.
10221 linux*oldld* | linux*aout* | linux*coff*)
10222 dynamic_linker=no
10223 ;;
10224
10225 # This must be Linux ELF.
10226 linux* | k*bsd*-gnu)
10227 version_type=linux
10228 need_lib_prefix=no
10229 need_version=no
10230 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10231 soname_spec='${libname}${release}${shared_ext}$major'
10232 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10233 shlibpath_var=LD_LIBRARY_PATH
10234 shlibpath_overrides_runpath=no
10235 # Some binutils ld are patched to set DT_RUNPATH
10236 save_LDFLAGS=$LDFLAGS
10237 save_libdir=$libdir
10238 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10239 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10240 cat >conftest.$ac_ext <<_ACEOF
10241 /* confdefs.h. */
10242 _ACEOF
10243 cat confdefs.h >>conftest.$ac_ext
10244 cat >>conftest.$ac_ext <<_ACEOF
10245 /* end confdefs.h. */
10246
10247 int
10248 main ()
10249 {
10250
10251 ;
10252 return 0;
10253 }
10254 _ACEOF
10255 rm -f conftest.$ac_objext conftest$ac_exeext
10256 if { (ac_try="$ac_link"
10257 case "(($ac_try" in
10258 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10259 *) ac_try_echo=$ac_try;;
10260 esac
10261 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10262 $as_echo "$ac_try_echo") >&5
10263 (eval "$ac_link") 2>conftest.er1
10264 ac_status=$?
10265 grep -v '^ *+' conftest.er1 >conftest.err
10266 rm -f conftest.er1
10267 cat conftest.err >&5
10268 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10269 (exit $ac_status); } && {
10270 test -z "$ac_c_werror_flag" ||
10271 test ! -s conftest.err
10272 } && test -s conftest$ac_exeext && {
10273 test "$cross_compiling" = yes ||
10274 $as_test_x conftest$ac_exeext
10275 }; then
10276 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
10277 shlibpath_overrides_runpath=yes
10278 fi
10279
10280 else
10281 $as_echo "$as_me: failed program was:" >&5
10282 sed 's/^/| /' conftest.$ac_ext >&5
10283
10284
10285 fi
10286
10287 rm -rf conftest.dSYM
10288 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10289 conftest$ac_exeext conftest.$ac_ext
10290 LDFLAGS=$save_LDFLAGS
10291 libdir=$save_libdir
10292
10293 # This implies no fast_install, which is unacceptable.
10294 # Some rework will be needed to allow for fast_install
10295 # before this can be enabled.
10296 hardcode_into_libs=yes
10297
10298 # Add ABI-specific directories to the system library path.
10299 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
10300
10301 # Append ld.so.conf contents to the search path
10302 if test -f /etc/ld.so.conf; then
10303 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;/^$/d' | tr '\n' ' '`
10304 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
10305 fi
10306
10307 # We used to test for /lib/ld.so.1 and disable shared libraries on
10308 # powerpc, because MkLinux only supported shared libraries with the
10309 # GNU dynamic linker. Since this was broken with cross compilers,
10310 # most powerpc-linux boxes support dynamic linking these days and
10311 # people can always --disable-shared, the test was removed, and we
10312 # assume the GNU/Linux dynamic linker is in use.
10313 dynamic_linker='GNU/Linux ld.so'
10314 ;;
10315
10316 netbsd*)
10317 version_type=sunos
10318 need_lib_prefix=no
10319 need_version=no
10320 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10321 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10322 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10323 dynamic_linker='NetBSD (a.out) ld.so'
10324 else
10325 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10326 soname_spec='${libname}${release}${shared_ext}$major'
10327 dynamic_linker='NetBSD ld.elf_so'
10328 fi
10329 shlibpath_var=LD_LIBRARY_PATH
10330 shlibpath_overrides_runpath=yes
10331 hardcode_into_libs=yes
10332 ;;
10333
10334 newsos6)
10335 version_type=linux
10336 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10337 shlibpath_var=LD_LIBRARY_PATH
10338 shlibpath_overrides_runpath=yes
10339 ;;
10340
10341 *nto* | *qnx*)
10342 version_type=qnx
10343 need_lib_prefix=no
10344 need_version=no
10345 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10346 soname_spec='${libname}${release}${shared_ext}$major'
10347 shlibpath_var=LD_LIBRARY_PATH
10348 shlibpath_overrides_runpath=no
10349 hardcode_into_libs=yes
10350 dynamic_linker='ldqnx.so'
10351 ;;
10352
10353 openbsd*)
10354 version_type=sunos
10355 sys_lib_dlsearch_path_spec="/usr/lib"
10356 need_lib_prefix=no
10357 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10358 case $host_os in
10359 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10360 *) need_version=no ;;
10361 esac
10362 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10363 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10364 shlibpath_var=LD_LIBRARY_PATH
10365 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10366 case $host_os in
10367 openbsd2.[89] | openbsd2.[89].*)
10368 shlibpath_overrides_runpath=no
10369 ;;
10370 *)
10371 shlibpath_overrides_runpath=yes
10372 ;;
10373 esac
10374 else
10375 shlibpath_overrides_runpath=yes
10376 fi
10377 ;;
10378
10379 os2*)
10380 libname_spec='$name'
10381 shrext_cmds=".dll"
10382 need_lib_prefix=no
10383 library_names_spec='$libname${shared_ext} $libname.a'
10384 dynamic_linker='OS/2 ld.exe'
10385 shlibpath_var=LIBPATH
10386 ;;
10387
10388 osf3* | osf4* | osf5*)
10389 version_type=osf
10390 need_lib_prefix=no
10391 need_version=no
10392 soname_spec='${libname}${release}${shared_ext}$major'
10393 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10394 shlibpath_var=LD_LIBRARY_PATH
10395 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10396 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10397 ;;
10398
10399 rdos*)
10400 dynamic_linker=no
10401 ;;
10402
10403 solaris*)
10404 version_type=linux
10405 need_lib_prefix=no
10406 need_version=no
10407 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10408 soname_spec='${libname}${release}${shared_ext}$major'
10409 shlibpath_var=LD_LIBRARY_PATH
10410 shlibpath_overrides_runpath=yes
10411 hardcode_into_libs=yes
10412 # ldd complains unless libraries are executable
10413 postinstall_cmds='chmod +x $lib'
10414 ;;
10415
10416 sunos4*)
10417 version_type=sunos
10418 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10419 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10420 shlibpath_var=LD_LIBRARY_PATH
10421 shlibpath_overrides_runpath=yes
10422 if test "$with_gnu_ld" = yes; then
10423 need_lib_prefix=no
10424 fi
10425 need_version=yes
10426 ;;
10427
10428 sysv4 | sysv4.3*)
10429 version_type=linux
10430 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10431 soname_spec='${libname}${release}${shared_ext}$major'
10432 shlibpath_var=LD_LIBRARY_PATH
10433 case $host_vendor in
10434 sni)
10435 shlibpath_overrides_runpath=no
10436 need_lib_prefix=no
10437 runpath_var=LD_RUN_PATH
10438 ;;
10439 siemens)
10440 need_lib_prefix=no
10441 ;;
10442 motorola)
10443 need_lib_prefix=no
10444 need_version=no
10445 shlibpath_overrides_runpath=no
10446 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10447 ;;
10448 esac
10449 ;;
10450
10451 sysv4*MP*)
10452 if test -d /usr/nec ;then
10453 version_type=linux
10454 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10455 soname_spec='$libname${shared_ext}.$major'
10456 shlibpath_var=LD_LIBRARY_PATH
10457 fi
10458 ;;
10459
10460 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10461 version_type=freebsd-elf
10462 need_lib_prefix=no
10463 need_version=no
10464 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10465 soname_spec='${libname}${release}${shared_ext}$major'
10466 shlibpath_var=LD_LIBRARY_PATH
10467 shlibpath_overrides_runpath=yes
10468 hardcode_into_libs=yes
10469 if test "$with_gnu_ld" = yes; then
10470 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10471 else
10472 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10473 case $host_os in
10474 sco3.2v5*)
10475 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10476 ;;
10477 esac
10478 fi
10479 sys_lib_dlsearch_path_spec='/usr/lib'
10480 ;;
10481
10482 tpf*)
10483 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10484 version_type=linux
10485 need_lib_prefix=no
10486 need_version=no
10487 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10488 shlibpath_var=LD_LIBRARY_PATH
10489 shlibpath_overrides_runpath=no
10490 hardcode_into_libs=yes
10491 ;;
10492
10493 uts4*)
10494 version_type=linux
10495 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10496 soname_spec='${libname}${release}${shared_ext}$major'
10497 shlibpath_var=LD_LIBRARY_PATH
10498 ;;
10499
10500 *)
10501 dynamic_linker=no
10502 ;;
10503 esac
10504 { $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
10505 $as_echo "$dynamic_linker" >&6; }
10506 test "$dynamic_linker" = no && can_build_shared=no
10507
10508 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10509 if test "$GCC" = yes; then
10510 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10511 fi
10512
10513 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10514 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10515 fi
10516 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10517 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10518 fi
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 { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
10607 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10608 hardcode_action=
10609 if test -n "$hardcode_libdir_flag_spec" ||
10610 test -n "$runpath_var" ||
10611 test "X$hardcode_automatic" = "Xyes" ; then
10612
10613 # We can hardcode non-existent directories.
10614 if test "$hardcode_direct" != no &&
10615 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10616 # have to relink, otherwise we might link with an installed library
10617 # when we should be linking with a yet-to-be-installed one
10618 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10619 test "$hardcode_minus_L" != no; then
10620 # Linking always hardcodes the temporary library directory.
10621 hardcode_action=relink
10622 else
10623 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10624 hardcode_action=immediate
10625 fi
10626 else
10627 # We cannot hardcode anything, or else we can only hardcode existing
10628 # directories.
10629 hardcode_action=unsupported
10630 fi
10631 { $as_echo "$as_me:$LINENO: result: $hardcode_action" >&5
10632 $as_echo "$hardcode_action" >&6; }
10633
10634 if test "$hardcode_action" = relink ||
10635 test "$inherit_rpath" = yes; then
10636 # Fast installation is not supported
10637 enable_fast_install=no
10638 elif test "$shlibpath_overrides_runpath" = yes ||
10639 test "$enable_shared" = no; then
10640 # Fast installation is not necessary
10641 enable_fast_install=needless
10642 fi
10643
10644
10645
10646
10647
10648
10649 if test "x$enable_dlopen" != xyes; then
10650 enable_dlopen=unknown
10651 enable_dlopen_self=unknown
10652 enable_dlopen_self_static=unknown
10653 else
10654 lt_cv_dlopen=no
10655 lt_cv_dlopen_libs=
10656
10657 case $host_os in
10658 beos*)
10659 lt_cv_dlopen="load_add_on"
10660 lt_cv_dlopen_libs=
10661 lt_cv_dlopen_self=yes
10662 ;;
10663
10664 mingw* | pw32* | cegcc*)
10665 lt_cv_dlopen="LoadLibrary"
10666 lt_cv_dlopen_libs=
10667 ;;
10668
10669 cygwin*)
10670 lt_cv_dlopen="dlopen"
10671 lt_cv_dlopen_libs=
10672 ;;
10673
10674 darwin*)
10675 # if libdl is installed we need to link against it
10676 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10677 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10678 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10679 $as_echo_n "(cached) " >&6
10680 else
10681 ac_check_lib_save_LIBS=$LIBS
10682 LIBS="-ldl $LIBS"
10683 cat >conftest.$ac_ext <<_ACEOF
10684 /* confdefs.h. */
10685 _ACEOF
10686 cat confdefs.h >>conftest.$ac_ext
10687 cat >>conftest.$ac_ext <<_ACEOF
10688 /* end confdefs.h. */
10689
10690 /* Override any GCC internal prototype to avoid an error.
10691 Use char because int might match the return type of a GCC
10692 builtin and then its argument prototype would still apply. */
10693 #ifdef __cplusplus
10694 extern "C"
10695 #endif
10696 char dlopen ();
10697 int
10698 main ()
10699 {
10700 return dlopen ();
10701 ;
10702 return 0;
10703 }
10704 _ACEOF
10705 rm -f conftest.$ac_objext conftest$ac_exeext
10706 if { (ac_try="$ac_link"
10707 case "(($ac_try" in
10708 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10709 *) ac_try_echo=$ac_try;;
10710 esac
10711 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10712 $as_echo "$ac_try_echo") >&5
10713 (eval "$ac_link") 2>conftest.er1
10714 ac_status=$?
10715 grep -v '^ *+' conftest.er1 >conftest.err
10716 rm -f conftest.er1
10717 cat conftest.err >&5
10718 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10719 (exit $ac_status); } && {
10720 test -z "$ac_c_werror_flag" ||
10721 test ! -s conftest.err
10722 } && test -s conftest$ac_exeext && {
10723 test "$cross_compiling" = yes ||
10724 $as_test_x conftest$ac_exeext
10725 }; then
10726 ac_cv_lib_dl_dlopen=yes
10727 else
10728 $as_echo "$as_me: failed program was:" >&5
10729 sed 's/^/| /' conftest.$ac_ext >&5
10730
10731 ac_cv_lib_dl_dlopen=no
10732 fi
10733
10734 rm -rf conftest.dSYM
10735 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10736 conftest$ac_exeext conftest.$ac_ext
10737 LIBS=$ac_check_lib_save_LIBS
10738 fi
10739 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10740 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10741 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
10742 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10743 else
10744
10745 lt_cv_dlopen="dyld"
10746 lt_cv_dlopen_libs=
10747 lt_cv_dlopen_self=yes
10748
10749 fi
10750
10751 ;;
10752
10753 *)
10754 { $as_echo "$as_me:$LINENO: checking for shl_load" >&5
10755 $as_echo_n "checking for shl_load... " >&6; }
10756 if test "${ac_cv_func_shl_load+set}" = set; then
10757 $as_echo_n "(cached) " >&6
10758 else
10759 cat >conftest.$ac_ext <<_ACEOF
10760 /* confdefs.h. */
10761 _ACEOF
10762 cat confdefs.h >>conftest.$ac_ext
10763 cat >>conftest.$ac_ext <<_ACEOF
10764 /* end confdefs.h. */
10765 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10766 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10767 #define shl_load innocuous_shl_load
10768
10769 /* System header to define __stub macros and hopefully few prototypes,
10770 which can conflict with char shl_load (); below.
10771 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10772 <limits.h> exists even on freestanding compilers. */
10773
10774 #ifdef __STDC__
10775 # include <limits.h>
10776 #else
10777 # include <assert.h>
10778 #endif
10779
10780 #undef shl_load
10781
10782 /* Override any GCC internal prototype to avoid an error.
10783 Use char because int might match the return type of a GCC
10784 builtin and then its argument prototype would still apply. */
10785 #ifdef __cplusplus
10786 extern "C"
10787 #endif
10788 char shl_load ();
10789 /* The GNU C library defines this for functions which it implements
10790 to always fail with ENOSYS. Some functions are actually named
10791 something starting with __ and the normal name is an alias. */
10792 #if defined __stub_shl_load || defined __stub___shl_load
10793 choke me
10794 #endif
10795
10796 int
10797 main ()
10798 {
10799 return shl_load ();
10800 ;
10801 return 0;
10802 }
10803 _ACEOF
10804 rm -f conftest.$ac_objext conftest$ac_exeext
10805 if { (ac_try="$ac_link"
10806 case "(($ac_try" in
10807 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10808 *) ac_try_echo=$ac_try;;
10809 esac
10810 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10811 $as_echo "$ac_try_echo") >&5
10812 (eval "$ac_link") 2>conftest.er1
10813 ac_status=$?
10814 grep -v '^ *+' conftest.er1 >conftest.err
10815 rm -f conftest.er1
10816 cat conftest.err >&5
10817 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10818 (exit $ac_status); } && {
10819 test -z "$ac_c_werror_flag" ||
10820 test ! -s conftest.err
10821 } && test -s conftest$ac_exeext && {
10822 test "$cross_compiling" = yes ||
10823 $as_test_x conftest$ac_exeext
10824 }; then
10825 ac_cv_func_shl_load=yes
10826 else
10827 $as_echo "$as_me: failed program was:" >&5
10828 sed 's/^/| /' conftest.$ac_ext >&5
10829
10830 ac_cv_func_shl_load=no
10831 fi
10832
10833 rm -rf conftest.dSYM
10834 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10835 conftest$ac_exeext conftest.$ac_ext
10836 fi
10837 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10838 $as_echo "$ac_cv_func_shl_load" >&6; }
10839 if test "x$ac_cv_func_shl_load" = x""yes; then
10840 lt_cv_dlopen="shl_load"
10841 else
10842 { $as_echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10843 $as_echo_n "checking for shl_load in -ldld... " >&6; }
10844 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10845 $as_echo_n "(cached) " >&6
10846 else
10847 ac_check_lib_save_LIBS=$LIBS
10848 LIBS="-ldld $LIBS"
10849 cat >conftest.$ac_ext <<_ACEOF
10850 /* confdefs.h. */
10851 _ACEOF
10852 cat confdefs.h >>conftest.$ac_ext
10853 cat >>conftest.$ac_ext <<_ACEOF
10854 /* end confdefs.h. */
10855
10856 /* Override any GCC internal prototype to avoid an error.
10857 Use char because int might match the return type of a GCC
10858 builtin and then its argument prototype would still apply. */
10859 #ifdef __cplusplus
10860 extern "C"
10861 #endif
10862 char shl_load ();
10863 int
10864 main ()
10865 {
10866 return shl_load ();
10867 ;
10868 return 0;
10869 }
10870 _ACEOF
10871 rm -f conftest.$ac_objext conftest$ac_exeext
10872 if { (ac_try="$ac_link"
10873 case "(($ac_try" in
10874 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10875 *) ac_try_echo=$ac_try;;
10876 esac
10877 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10878 $as_echo "$ac_try_echo") >&5
10879 (eval "$ac_link") 2>conftest.er1
10880 ac_status=$?
10881 grep -v '^ *+' conftest.er1 >conftest.err
10882 rm -f conftest.er1
10883 cat conftest.err >&5
10884 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10885 (exit $ac_status); } && {
10886 test -z "$ac_c_werror_flag" ||
10887 test ! -s conftest.err
10888 } && test -s conftest$ac_exeext && {
10889 test "$cross_compiling" = yes ||
10890 $as_test_x conftest$ac_exeext
10891 }; then
10892 ac_cv_lib_dld_shl_load=yes
10893 else
10894 $as_echo "$as_me: failed program was:" >&5
10895 sed 's/^/| /' conftest.$ac_ext >&5
10896
10897 ac_cv_lib_dld_shl_load=no
10898 fi
10899
10900 rm -rf conftest.dSYM
10901 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10902 conftest$ac_exeext conftest.$ac_ext
10903 LIBS=$ac_check_lib_save_LIBS
10904 fi
10905 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10906 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10907 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then
10908 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10909 else
10910 { $as_echo "$as_me:$LINENO: checking for dlopen" >&5
10911 $as_echo_n "checking for dlopen... " >&6; }
10912 if test "${ac_cv_func_dlopen+set}" = set; then
10913 $as_echo_n "(cached) " >&6
10914 else
10915 cat >conftest.$ac_ext <<_ACEOF
10916 /* confdefs.h. */
10917 _ACEOF
10918 cat confdefs.h >>conftest.$ac_ext
10919 cat >>conftest.$ac_ext <<_ACEOF
10920 /* end confdefs.h. */
10921 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
10922 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10923 #define dlopen innocuous_dlopen
10924
10925 /* System header to define __stub macros and hopefully few prototypes,
10926 which can conflict with char dlopen (); below.
10927 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10928 <limits.h> exists even on freestanding compilers. */
10929
10930 #ifdef __STDC__
10931 # include <limits.h>
10932 #else
10933 # include <assert.h>
10934 #endif
10935
10936 #undef dlopen
10937
10938 /* Override any GCC internal prototype to avoid an error.
10939 Use char because int might match the return type of a GCC
10940 builtin and then its argument prototype would still apply. */
10941 #ifdef __cplusplus
10942 extern "C"
10943 #endif
10944 char dlopen ();
10945 /* The GNU C library defines this for functions which it implements
10946 to always fail with ENOSYS. Some functions are actually named
10947 something starting with __ and the normal name is an alias. */
10948 #if defined __stub_dlopen || defined __stub___dlopen
10949 choke me
10950 #endif
10951
10952 int
10953 main ()
10954 {
10955 return dlopen ();
10956 ;
10957 return 0;
10958 }
10959 _ACEOF
10960 rm -f conftest.$ac_objext conftest$ac_exeext
10961 if { (ac_try="$ac_link"
10962 case "(($ac_try" in
10963 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10964 *) ac_try_echo=$ac_try;;
10965 esac
10966 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10967 $as_echo "$ac_try_echo") >&5
10968 (eval "$ac_link") 2>conftest.er1
10969 ac_status=$?
10970 grep -v '^ *+' conftest.er1 >conftest.err
10971 rm -f conftest.er1
10972 cat conftest.err >&5
10973 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10974 (exit $ac_status); } && {
10975 test -z "$ac_c_werror_flag" ||
10976 test ! -s conftest.err
10977 } && test -s conftest$ac_exeext && {
10978 test "$cross_compiling" = yes ||
10979 $as_test_x conftest$ac_exeext
10980 }; then
10981 ac_cv_func_dlopen=yes
10982 else
10983 $as_echo "$as_me: failed program was:" >&5
10984 sed 's/^/| /' conftest.$ac_ext >&5
10985
10986 ac_cv_func_dlopen=no
10987 fi
10988
10989 rm -rf conftest.dSYM
10990 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10991 conftest$ac_exeext conftest.$ac_ext
10992 fi
10993 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10994 $as_echo "$ac_cv_func_dlopen" >&6; }
10995 if test "x$ac_cv_func_dlopen" = x""yes; then
10996 lt_cv_dlopen="dlopen"
10997 else
10998 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10999 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11000 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11001 $as_echo_n "(cached) " >&6
11002 else
11003 ac_check_lib_save_LIBS=$LIBS
11004 LIBS="-ldl $LIBS"
11005 cat >conftest.$ac_ext <<_ACEOF
11006 /* confdefs.h. */
11007 _ACEOF
11008 cat confdefs.h >>conftest.$ac_ext
11009 cat >>conftest.$ac_ext <<_ACEOF
11010 /* end confdefs.h. */
11011
11012 /* Override any GCC internal prototype to avoid an error.
11013 Use char because int might match the return type of a GCC
11014 builtin and then its argument prototype would still apply. */
11015 #ifdef __cplusplus
11016 extern "C"
11017 #endif
11018 char dlopen ();
11019 int
11020 main ()
11021 {
11022 return dlopen ();
11023 ;
11024 return 0;
11025 }
11026 _ACEOF
11027 rm -f conftest.$ac_objext conftest$ac_exeext
11028 if { (ac_try="$ac_link"
11029 case "(($ac_try" in
11030 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11031 *) ac_try_echo=$ac_try;;
11032 esac
11033 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11034 $as_echo "$ac_try_echo") >&5
11035 (eval "$ac_link") 2>conftest.er1
11036 ac_status=$?
11037 grep -v '^ *+' conftest.er1 >conftest.err
11038 rm -f conftest.er1
11039 cat conftest.err >&5
11040 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11041 (exit $ac_status); } && {
11042 test -z "$ac_c_werror_flag" ||
11043 test ! -s conftest.err
11044 } && test -s conftest$ac_exeext && {
11045 test "$cross_compiling" = yes ||
11046 $as_test_x conftest$ac_exeext
11047 }; then
11048 ac_cv_lib_dl_dlopen=yes
11049 else
11050 $as_echo "$as_me: failed program was:" >&5
11051 sed 's/^/| /' conftest.$ac_ext >&5
11052
11053 ac_cv_lib_dl_dlopen=no
11054 fi
11055
11056 rm -rf conftest.dSYM
11057 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11058 conftest$ac_exeext conftest.$ac_ext
11059 LIBS=$ac_check_lib_save_LIBS
11060 fi
11061 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11062 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11063 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
11064 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11065 else
11066 { $as_echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
11067 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11068 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
11069 $as_echo_n "(cached) " >&6
11070 else
11071 ac_check_lib_save_LIBS=$LIBS
11072 LIBS="-lsvld $LIBS"
11073 cat >conftest.$ac_ext <<_ACEOF
11074 /* confdefs.h. */
11075 _ACEOF
11076 cat confdefs.h >>conftest.$ac_ext
11077 cat >>conftest.$ac_ext <<_ACEOF
11078 /* end confdefs.h. */
11079
11080 /* Override any GCC internal prototype to avoid an error.
11081 Use char because int might match the return type of a GCC
11082 builtin and then its argument prototype would still apply. */
11083 #ifdef __cplusplus
11084 extern "C"
11085 #endif
11086 char dlopen ();
11087 int
11088 main ()
11089 {
11090 return dlopen ();
11091 ;
11092 return 0;
11093 }
11094 _ACEOF
11095 rm -f conftest.$ac_objext conftest$ac_exeext
11096 if { (ac_try="$ac_link"
11097 case "(($ac_try" in
11098 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11099 *) ac_try_echo=$ac_try;;
11100 esac
11101 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11102 $as_echo "$ac_try_echo") >&5
11103 (eval "$ac_link") 2>conftest.er1
11104 ac_status=$?
11105 grep -v '^ *+' conftest.er1 >conftest.err
11106 rm -f conftest.er1
11107 cat conftest.err >&5
11108 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11109 (exit $ac_status); } && {
11110 test -z "$ac_c_werror_flag" ||
11111 test ! -s conftest.err
11112 } && test -s conftest$ac_exeext && {
11113 test "$cross_compiling" = yes ||
11114 $as_test_x conftest$ac_exeext
11115 }; then
11116 ac_cv_lib_svld_dlopen=yes
11117 else
11118 $as_echo "$as_me: failed program was:" >&5
11119 sed 's/^/| /' conftest.$ac_ext >&5
11120
11121 ac_cv_lib_svld_dlopen=no
11122 fi
11123
11124 rm -rf conftest.dSYM
11125 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11126 conftest$ac_exeext conftest.$ac_ext
11127 LIBS=$ac_check_lib_save_LIBS
11128 fi
11129 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
11130 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11131 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then
11132 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11133 else
11134 { $as_echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
11135 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11136 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
11137 $as_echo_n "(cached) " >&6
11138 else
11139 ac_check_lib_save_LIBS=$LIBS
11140 LIBS="-ldld $LIBS"
11141 cat >conftest.$ac_ext <<_ACEOF
11142 /* confdefs.h. */
11143 _ACEOF
11144 cat confdefs.h >>conftest.$ac_ext
11145 cat >>conftest.$ac_ext <<_ACEOF
11146 /* end confdefs.h. */
11147
11148 /* Override any GCC internal prototype to avoid an error.
11149 Use char because int might match the return type of a GCC
11150 builtin and then its argument prototype would still apply. */
11151 #ifdef __cplusplus
11152 extern "C"
11153 #endif
11154 char dld_link ();
11155 int
11156 main ()
11157 {
11158 return dld_link ();
11159 ;
11160 return 0;
11161 }
11162 _ACEOF
11163 rm -f conftest.$ac_objext conftest$ac_exeext
11164 if { (ac_try="$ac_link"
11165 case "(($ac_try" in
11166 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11167 *) ac_try_echo=$ac_try;;
11168 esac
11169 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11170 $as_echo "$ac_try_echo") >&5
11171 (eval "$ac_link") 2>conftest.er1
11172 ac_status=$?
11173 grep -v '^ *+' conftest.er1 >conftest.err
11174 rm -f conftest.er1
11175 cat conftest.err >&5
11176 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11177 (exit $ac_status); } && {
11178 test -z "$ac_c_werror_flag" ||
11179 test ! -s conftest.err
11180 } && test -s conftest$ac_exeext && {
11181 test "$cross_compiling" = yes ||
11182 $as_test_x conftest$ac_exeext
11183 }; then
11184 ac_cv_lib_dld_dld_link=yes
11185 else
11186 $as_echo "$as_me: failed program was:" >&5
11187 sed 's/^/| /' conftest.$ac_ext >&5
11188
11189 ac_cv_lib_dld_dld_link=no
11190 fi
11191
11192 rm -rf conftest.dSYM
11193 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11194 conftest$ac_exeext conftest.$ac_ext
11195 LIBS=$ac_check_lib_save_LIBS
11196 fi
11197 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
11198 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11199 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then
11200 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11201 fi
11202
11203
11204 fi
11205
11206
11207 fi
11208
11209
11210 fi
11211
11212
11213 fi
11214
11215
11216 fi
11217
11218 ;;
11219 esac
11220
11221 if test "x$lt_cv_dlopen" != xno; then
11222 enable_dlopen=yes
11223 else
11224 enable_dlopen=no
11225 fi
11226
11227 case $lt_cv_dlopen in
11228 dlopen)
11229 save_CPPFLAGS="$CPPFLAGS"
11230 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11231
11232 save_LDFLAGS="$LDFLAGS"
11233 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11234
11235 save_LIBS="$LIBS"
11236 LIBS="$lt_cv_dlopen_libs $LIBS"
11237
11238 { $as_echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
11239 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11240 if test "${lt_cv_dlopen_self+set}" = set; then
11241 $as_echo_n "(cached) " >&6
11242 else
11243 if test "$cross_compiling" = yes; then :
11244 lt_cv_dlopen_self=cross
11245 else
11246 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11247 lt_status=$lt_dlunknown
11248 cat > conftest.$ac_ext <<_LT_EOF
11249 #line 11249 "configure"
11250 #include "confdefs.h"
11251
11252 #if HAVE_DLFCN_H
11253 #include <dlfcn.h>
11254 #endif
11255
11256 #include <stdio.h>
11257
11258 #ifdef RTLD_GLOBAL
11259 # define LT_DLGLOBAL RTLD_GLOBAL
11260 #else
11261 # ifdef DL_GLOBAL
11262 # define LT_DLGLOBAL DL_GLOBAL
11263 # else
11264 # define LT_DLGLOBAL 0
11265 # endif
11266 #endif
11267
11268 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11269 find out it does not work in some platform. */
11270 #ifndef LT_DLLAZY_OR_NOW
11271 # ifdef RTLD_LAZY
11272 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11273 # else
11274 # ifdef DL_LAZY
11275 # define LT_DLLAZY_OR_NOW DL_LAZY
11276 # else
11277 # ifdef RTLD_NOW
11278 # define LT_DLLAZY_OR_NOW RTLD_NOW
11279 # else
11280 # ifdef DL_NOW
11281 # define LT_DLLAZY_OR_NOW DL_NOW
11282 # else
11283 # define LT_DLLAZY_OR_NOW 0
11284 # endif
11285 # endif
11286 # endif
11287 # endif
11288 #endif
11289
11290 void fnord() { int i=42;}
11291 int main ()
11292 {
11293 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11294 int status = $lt_dlunknown;
11295
11296 if (self)
11297 {
11298 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11299 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11300 /* dlclose (self); */
11301 }
11302 else
11303 puts (dlerror ());
11304
11305 return status;
11306 }
11307 _LT_EOF
11308 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11309 (eval $ac_link) 2>&5
11310 ac_status=$?
11311 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11312 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11313 (./conftest; exit; ) >&5 2>/dev/null
11314 lt_status=$?
11315 case x$lt_status in
11316 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11317 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11318 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11319 esac
11320 else :
11321 # compilation failed
11322 lt_cv_dlopen_self=no
11323 fi
11324 fi
11325 rm -fr conftest*
11326
11327
11328 fi
11329 { $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
11330 $as_echo "$lt_cv_dlopen_self" >&6; }
11331
11332 if test "x$lt_cv_dlopen_self" = xyes; then
11333 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11334 { $as_echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
11335 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11336 if test "${lt_cv_dlopen_self_static+set}" = set; then
11337 $as_echo_n "(cached) " >&6
11338 else
11339 if test "$cross_compiling" = yes; then :
11340 lt_cv_dlopen_self_static=cross
11341 else
11342 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11343 lt_status=$lt_dlunknown
11344 cat > conftest.$ac_ext <<_LT_EOF
11345 #line 11345 "configure"
11346 #include "confdefs.h"
11347
11348 #if HAVE_DLFCN_H
11349 #include <dlfcn.h>
11350 #endif
11351
11352 #include <stdio.h>
11353
11354 #ifdef RTLD_GLOBAL
11355 # define LT_DLGLOBAL RTLD_GLOBAL
11356 #else
11357 # ifdef DL_GLOBAL
11358 # define LT_DLGLOBAL DL_GLOBAL
11359 # else
11360 # define LT_DLGLOBAL 0
11361 # endif
11362 #endif
11363
11364 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11365 find out it does not work in some platform. */
11366 #ifndef LT_DLLAZY_OR_NOW
11367 # ifdef RTLD_LAZY
11368 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11369 # else
11370 # ifdef DL_LAZY
11371 # define LT_DLLAZY_OR_NOW DL_LAZY
11372 # else
11373 # ifdef RTLD_NOW
11374 # define LT_DLLAZY_OR_NOW RTLD_NOW
11375 # else
11376 # ifdef DL_NOW
11377 # define LT_DLLAZY_OR_NOW DL_NOW
11378 # else
11379 # define LT_DLLAZY_OR_NOW 0
11380 # endif
11381 # endif
11382 # endif
11383 # endif
11384 #endif
11385
11386 void fnord() { int i=42;}
11387 int main ()
11388 {
11389 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11390 int status = $lt_dlunknown;
11391
11392 if (self)
11393 {
11394 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11395 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11396 /* dlclose (self); */
11397 }
11398 else
11399 puts (dlerror ());
11400
11401 return status;
11402 }
11403 _LT_EOF
11404 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11405 (eval $ac_link) 2>&5
11406 ac_status=$?
11407 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11408 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11409 (./conftest; exit; ) >&5 2>/dev/null
11410 lt_status=$?
11411 case x$lt_status in
11412 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11413 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11414 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11415 esac
11416 else :
11417 # compilation failed
11418 lt_cv_dlopen_self_static=no
11419 fi
11420 fi
11421 rm -fr conftest*
11422
11423
11424 fi
11425 { $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
11426 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11427 fi
11428
11429 CPPFLAGS="$save_CPPFLAGS"
11430 LDFLAGS="$save_LDFLAGS"
11431 LIBS="$save_LIBS"
11432 ;;
11433 esac
11434
11435 case $lt_cv_dlopen_self in
11436 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11437 *) enable_dlopen_self=unknown ;;
11438 esac
11439
11440 case $lt_cv_dlopen_self_static in
11441 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11442 *) enable_dlopen_self_static=unknown ;;
11443 esac
11444 fi
11445
11446
11447
11448
11449
11450
11451
11452
11453
11454
11455
11456
11457
11458
11459
11460
11461
11462 striplib=
11463 old_striplib=
11464 { $as_echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
11465 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11466 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11467 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11468 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11469 { $as_echo "$as_me:$LINENO: result: yes" >&5
11470 $as_echo "yes" >&6; }
11471 else
11472 # FIXME - insert some real tests, host_os isn't really good enough
11473 case $host_os in
11474 darwin*)
11475 if test -n "$STRIP" ; then
11476 striplib="$STRIP -x"
11477 old_striplib="$STRIP -S"
11478 { $as_echo "$as_me:$LINENO: result: yes" >&5
11479 $as_echo "yes" >&6; }
11480 else
11481 { $as_echo "$as_me:$LINENO: result: no" >&5
11482 $as_echo "no" >&6; }
11483 fi
11484 ;;
11485 *)
11486 { $as_echo "$as_me:$LINENO: result: no" >&5
11487 $as_echo "no" >&6; }
11488 ;;
11489 esac
11490 fi
11491
11492
11493
11494
11495
11496
11497
11498
11499
11500
11501
11502
11503 # Report which library types will actually be built
11504 { $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
11505 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11506 { $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5
11507 $as_echo "$can_build_shared" >&6; }
11508
11509 { $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
11510 $as_echo_n "checking whether to build shared libraries... " >&6; }
11511 test "$can_build_shared" = "no" && enable_shared=no
11512
11513 # On AIX, shared libraries and static libraries use the same namespace, and
11514 # are all built from PIC.
11515 case $host_os in
11516 aix3*)
11517 test "$enable_shared" = yes && enable_static=no
11518 if test -n "$RANLIB"; then
11519 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11520 postinstall_cmds='$RANLIB $lib'
11521 fi
11522 ;;
11523
11524 aix[4-9]*)
11525 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11526 test "$enable_shared" = yes && enable_static=no
11527 fi
11528 ;;
11529 esac
11530 { $as_echo "$as_me:$LINENO: result: $enable_shared" >&5
11531 $as_echo "$enable_shared" >&6; }
11532
11533 { $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5
11534 $as_echo_n "checking whether to build static libraries... " >&6; }
11535 # Make sure either enable_shared or enable_static is yes.
11536 test "$enable_shared" = yes || enable_static=yes
11537 { $as_echo "$as_me:$LINENO: result: $enable_static" >&5
11538 $as_echo "$enable_static" >&6; }
11539
11540
11541
11542
11543 fi
11544 ac_ext=c
11545 ac_cpp='$CPP $CPPFLAGS'
11546 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11547 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11548 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11549
11550 CC="$lt_save_CC"
11551
11552
11553
11554
11555
11556
11557
11558
11559
11560
11561
11562
11563
11564 ac_config_commands="$ac_config_commands libtool"
11565
11566
11567
11568
11569 # Only expand once:
11570
11571
11572 # By default we simply use the C compiler to build assembly code.
11573
11574 test "${CCAS+set}" = set || CCAS=$CC
11575 test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
11576
11577
11578
11579 depcc="$CCAS" am_compiler_list=
11580
11581 { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
11582 $as_echo_n "checking dependency style of $depcc... " >&6; }
11583 if test "${am_cv_CCAS_dependencies_compiler_type+set}" = set; then
11584 $as_echo_n "(cached) " >&6
11585 else
11586 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
11587 # We make a subdir and do the tests there. Otherwise we can end up
11588 # making bogus files that we don't know about and never remove. For
11589 # instance it was reported that on HP-UX the gcc test will end up
11590 # making a dummy file named `D' -- because `-MD' means `put the output
11591 # in D'.
11592 mkdir conftest.dir
11593 # Copy depcomp to subdir because otherwise we won't find it if we're
11594 # using a relative directory.
11595 cp "$am_depcomp" conftest.dir
11596 cd conftest.dir
11597 # We will build objects and dependencies in a subdirectory because
11598 # it helps to detect inapplicable dependency modes. For instance
11599 # both Tru64's cc and ICC support -MD to output dependencies as a
11600 # side effect of compilation, but ICC will put the dependencies in
11601 # the current directory while Tru64 will put them in the object
11602 # directory.
11603 mkdir sub
11604
11605 am_cv_CCAS_dependencies_compiler_type=none
11606 if test "$am_compiler_list" = ""; then
11607 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
11608 fi
11609 am__universal=false
11610
11611
11612 for depmode in $am_compiler_list; do
11613 # Setup a source with many dependencies, because some compilers
11614 # like to wrap large dependency lists on column 80 (with \), and
11615 # we should not choose a depcomp mode which is confused by this.
11616 #
11617 # We need to recreate these files for each test, as the compiler may
11618 # overwrite some of them when testing with obscure command lines.
11619 # This happens at least with the AIX C compiler.
11620 : > sub/conftest.c
11621 for i in 1 2 3 4 5 6; do
11622 echo '#include "conftst'$i'.h"' >> sub/conftest.c
11623 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
11624 # Solaris 8's {/usr,}/bin/sh.
11625 touch sub/conftst$i.h
11626 done
11627 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
11628
11629 # We check with `-c' and `-o' for the sake of the "dashmstdout"
11630 # mode. It turns out that the SunPro C++ compiler does not properly
11631 # handle `-M -o', and we need to detect this. Also, some Intel
11632 # versions had trouble with output in subdirs
11633 am__obj=sub/conftest.${OBJEXT-o}
11634 am__minus_obj="-o $am__obj"
11635 case $depmode in
11636 gcc)
11637 # This depmode causes a compiler race in universal mode.
11638 test "$am__universal" = false || continue
11639 ;;
11640 nosideeffect)
11641 # after this tag, mechanisms are not by side-effect, so they'll
11642 # only be used when explicitly requested
11643 if test "x$enable_dependency_tracking" = xyes; then
11644 continue
11645 else
11646 break
11647 fi
11648 ;;
11649 msvisualcpp | msvcmsys)
11650 # This compiler won't grok `-c -o', but also, the minuso test has
11651 # not run yet. These depmodes are late enough in the game, and
11652 # so weak that their functioning should not be impacted.
11653 am__obj=conftest.${OBJEXT-o}
11654 am__minus_obj=
11655 ;;
11656 none) break ;;
11657 esac
11658 if depmode=$depmode \
11659 source=sub/conftest.c object=$am__obj \
11660 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
11661 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
11662 >/dev/null 2>conftest.err &&
11663 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
11664 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
11665 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
11666 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
11667 # icc doesn't choke on unknown options, it will just issue warnings
11668 # or remarks (even with -Werror). So we grep stderr for any message
11669 # that says an option was ignored or not supported.
11670 # When given -MP, icc 7.0 and 7.1 complain thusly:
11671 # icc: Command line warning: ignoring option '-M'; no argument required
11672 # The diagnosis changed in icc 8.0:
11673 # icc: Command line remark: option '-MP' not supported
11674 if (grep 'ignoring option' conftest.err ||
11675 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
11676 am_cv_CCAS_dependencies_compiler_type=$depmode
11677 break
11678 fi
11679 fi
11680 done
11681
11682 cd ..
11683 rm -rf conftest.dir
11684 else
11685 am_cv_CCAS_dependencies_compiler_type=none
11686 fi
11687
11688 fi
11689 { $as_echo "$as_me:$LINENO: result: $am_cv_CCAS_dependencies_compiler_type" >&5
11690 $as_echo "$am_cv_CCAS_dependencies_compiler_type" >&6; }
11691 CCASDEPMODE=depmode=$am_cv_CCAS_dependencies_compiler_type
11692
11693 if
11694 test "x$enable_dependency_tracking" != xno \
11695 && test "$am_cv_CCAS_dependencies_compiler_type" = gcc3; then
11696 am__fastdepCCAS_TRUE=
11697 am__fastdepCCAS_FALSE='#'
11698 else
11699 am__fastdepCCAS_TRUE='#'
11700 am__fastdepCCAS_FALSE=
11701 fi
11702
11703
11704 if test "x$CC" != xcc; then
11705 { $as_echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
11706 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
11707 else
11708 { $as_echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
11709 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
11710 fi
11711 set dummy $CC; ac_cc=`$as_echo "$2" |
11712 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
11713 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then
11714 $as_echo_n "(cached) " >&6
11715 else
11716 cat >conftest.$ac_ext <<_ACEOF
11717 /* confdefs.h. */
11718 _ACEOF
11719 cat confdefs.h >>conftest.$ac_ext
11720 cat >>conftest.$ac_ext <<_ACEOF
11721 /* end confdefs.h. */
11722
11723 int
11724 main ()
11725 {
11726
11727 ;
11728 return 0;
11729 }
11730 _ACEOF
11731 # Make sure it works both with $CC and with simple cc.
11732 # We do the test twice because some compilers refuse to overwrite an
11733 # existing .o file with -o, though they will create one.
11734 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
11735 rm -f conftest2.*
11736 if { (case "(($ac_try" in
11737 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11738 *) ac_try_echo=$ac_try;;
11739 esac
11740 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11741 $as_echo "$ac_try_echo") >&5
11742 (eval "$ac_try") 2>&5
11743 ac_status=$?
11744 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11745 (exit $ac_status); } &&
11746 test -f conftest2.$ac_objext && { (case "(($ac_try" in
11747 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11748 *) ac_try_echo=$ac_try;;
11749 esac
11750 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11751 $as_echo "$ac_try_echo") >&5
11752 (eval "$ac_try") 2>&5
11753 ac_status=$?
11754 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11755 (exit $ac_status); };
11756 then
11757 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
11758 if test "x$CC" != xcc; then
11759 # Test first that cc exists at all.
11760 if { ac_try='cc -c conftest.$ac_ext >&5'
11761 { (case "(($ac_try" in
11762 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11763 *) ac_try_echo=$ac_try;;
11764 esac
11765 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11766 $as_echo "$ac_try_echo") >&5
11767 (eval "$ac_try") 2>&5
11768 ac_status=$?
11769 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11770 (exit $ac_status); }; }; then
11771 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
11772 rm -f conftest2.*
11773 if { (case "(($ac_try" in
11774 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11775 *) ac_try_echo=$ac_try;;
11776 esac
11777 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11778 $as_echo "$ac_try_echo") >&5
11779 (eval "$ac_try") 2>&5
11780 ac_status=$?
11781 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11782 (exit $ac_status); } &&
11783 test -f conftest2.$ac_objext && { (case "(($ac_try" in
11784 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11785 *) ac_try_echo=$ac_try;;
11786 esac
11787 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11788 $as_echo "$ac_try_echo") >&5
11789 (eval "$ac_try") 2>&5
11790 ac_status=$?
11791 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11792 (exit $ac_status); };
11793 then
11794 # cc works too.
11795 :
11796 else
11797 # cc exists but doesn't like -o.
11798 eval ac_cv_prog_cc_${ac_cc}_c_o=no
11799 fi
11800 fi
11801 fi
11802 else
11803 eval ac_cv_prog_cc_${ac_cc}_c_o=no
11804 fi
11805 rm -f core conftest*
11806
11807 fi
11808 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
11809 { $as_echo "$as_me:$LINENO: result: yes" >&5
11810 $as_echo "yes" >&6; }
11811 else
11812 { $as_echo "$as_me:$LINENO: result: no" >&5
11813 $as_echo "no" >&6; }
11814
11815 cat >>confdefs.h <<\_ACEOF
11816 #define NO_MINUS_C_MINUS_O 1
11817 _ACEOF
11818
11819 fi
11820
11821 # FIXME: we rely on the cache variable name because
11822 # there is no other way.
11823 set dummy $CC
11824 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
11825 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
11826 if test "$am_t" != yes; then
11827 # Losing compiler, so override with the script.
11828 # FIXME: It is wrong to rewrite CC.
11829 # But if we don't then we get into trouble of one sort or another.
11830 # A longer-term fix would be to have automake use am__CC in this case,
11831 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
11832 CC="$am_aux_dir/compile $CC"
11833 fi
11834
11835
11836
11837
11838
11839 # allow to override gcov location
11840
11841 # Check whether --with-gcov was given.
11842 if test "${with_gcov+set}" = set; then
11843 withval=$with_gcov; _AX_CODE_COVERAGE_GCOV_PROG_WITH=$with_gcov
11844 else
11845 _AX_CODE_COVERAGE_GCOV_PROG_WITH=gcov
11846 fi
11847
11848
11849 { $as_echo "$as_me:$LINENO: checking whether to build with code coverage support" >&5
11850 $as_echo_n "checking whether to build with code coverage support... " >&6; }
11851 # Check whether --enable-code-coverage was given.
11852 if test "${enable_code_coverage+set}" = set; then
11853 enableval=$enable_code_coverage;
11854 else
11855 enable_code_coverage=no
11856 fi
11857
11858
11859 if test x$enable_code_coverage = xyes; then
11860 CODE_COVERAGE_ENABLED_TRUE=
11861 CODE_COVERAGE_ENABLED_FALSE='#'
11862 else
11863 CODE_COVERAGE_ENABLED_TRUE='#'
11864 CODE_COVERAGE_ENABLED_FALSE=
11865 fi
11866
11867 CODE_COVERAGE_ENABLED=$enable_code_coverage
11868
11869 { $as_echo "$as_me:$LINENO: result: $enable_code_coverage" >&5
11870 $as_echo "$enable_code_coverage" >&6; }
11871
11872 if test "$enable_code_coverage" = "yes" ; then
11873
11874 # check for gcov
11875 if test -n "$ac_tool_prefix"; then
11876 # Extract the first word of "${ac_tool_prefix}$_AX_CODE_COVERAGE_GCOV_PROG_WITH", so it can be a program name with args.
11877 set dummy ${ac_tool_prefix}$_AX_CODE_COVERAGE_GCOV_PROG_WITH; ac_word=$2
11878 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11879 $as_echo_n "checking for $ac_word... " >&6; }
11880 if test "${ac_cv_prog_GCOV+set}" = set; then
11881 $as_echo_n "(cached) " >&6
11882 else
11883 if test -n "$GCOV"; then
11884 ac_cv_prog_GCOV="$GCOV" # Let the user override the test.
11885 else
11886 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11887 for as_dir in $PATH
11888 do
11889 IFS=$as_save_IFS
11890 test -z "$as_dir" && as_dir=.
11891 for ac_exec_ext in '' $ac_executable_extensions; do
11892 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11893 ac_cv_prog_GCOV="${ac_tool_prefix}$_AX_CODE_COVERAGE_GCOV_PROG_WITH"
11894 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11895 break 2
11896 fi
11897 done
11898 done
11899 IFS=$as_save_IFS
11900
11901 fi
11902 fi
11903 GCOV=$ac_cv_prog_GCOV
11904 if test -n "$GCOV"; then
11905 { $as_echo "$as_me:$LINENO: result: $GCOV" >&5
11906 $as_echo "$GCOV" >&6; }
11907 else
11908 { $as_echo "$as_me:$LINENO: result: no" >&5
11909 $as_echo "no" >&6; }
11910 fi
11911
11912
11913 fi
11914 if test -z "$ac_cv_prog_GCOV"; then
11915 ac_ct_GCOV=$GCOV
11916 # Extract the first word of "$_AX_CODE_COVERAGE_GCOV_PROG_WITH", so it can be a program name with args.
11917 set dummy $_AX_CODE_COVERAGE_GCOV_PROG_WITH; ac_word=$2
11918 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11919 $as_echo_n "checking for $ac_word... " >&6; }
11920 if test "${ac_cv_prog_ac_ct_GCOV+set}" = set; then
11921 $as_echo_n "(cached) " >&6
11922 else
11923 if test -n "$ac_ct_GCOV"; then
11924 ac_cv_prog_ac_ct_GCOV="$ac_ct_GCOV" # Let the user override the test.
11925 else
11926 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11927 for as_dir in $PATH
11928 do
11929 IFS=$as_save_IFS
11930 test -z "$as_dir" && as_dir=.
11931 for ac_exec_ext in '' $ac_executable_extensions; do
11932 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11933 ac_cv_prog_ac_ct_GCOV="$_AX_CODE_COVERAGE_GCOV_PROG_WITH"
11934 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11935 break 2
11936 fi
11937 done
11938 done
11939 IFS=$as_save_IFS
11940
11941 fi
11942 fi
11943 ac_ct_GCOV=$ac_cv_prog_ac_ct_GCOV
11944 if test -n "$ac_ct_GCOV"; then
11945 { $as_echo "$as_me:$LINENO: result: $ac_ct_GCOV" >&5
11946 $as_echo "$ac_ct_GCOV" >&6; }
11947 else
11948 { $as_echo "$as_me:$LINENO: result: no" >&5
11949 $as_echo "no" >&6; }
11950 fi
11951
11952 if test "x$ac_ct_GCOV" = x; then
11953 GCOV=":"
11954 else
11955 case $cross_compiling:$ac_tool_warned in
11956 yes:)
11957 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
11958 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11959 ac_tool_warned=yes ;;
11960 esac
11961 GCOV=$ac_ct_GCOV
11962 fi
11963 else
11964 GCOV="$ac_cv_prog_GCOV"
11965 fi
11966
11967 if test "X$GCOV" = "X:"; then
11968 { { $as_echo "$as_me:$LINENO: error: gcov is needed to do coverage" >&5
11969 $as_echo "$as_me: error: gcov is needed to do coverage" >&2;}
11970 { (exit 1); exit 1; }; }
11971 fi
11972
11973
11974
11975 if test "$GCC" = "no" ; then
11976
11977 { { $as_echo "$as_me:$LINENO: error: not compiling with gcc, which is required for gcov code coverage" >&5
11978 $as_echo "$as_me: error: not compiling with gcc, which is required for gcov code coverage" >&2;}
11979 { (exit 1); exit 1; }; }
11980
11981 fi
11982
11983
11984 # Extract the first word of "lcov", so it can be a program name with args.
11985 set dummy lcov; ac_word=$2
11986 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11987 $as_echo_n "checking for $ac_word... " >&6; }
11988 if test "${ac_cv_prog_LCOV+set}" = set; then
11989 $as_echo_n "(cached) " >&6
11990 else
11991 if test -n "$LCOV"; then
11992 ac_cv_prog_LCOV="$LCOV" # Let the user override the test.
11993 else
11994 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11995 for as_dir in $PATH
11996 do
11997 IFS=$as_save_IFS
11998 test -z "$as_dir" && as_dir=.
11999 for ac_exec_ext in '' $ac_executable_extensions; do
12000 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12001 ac_cv_prog_LCOV="lcov"
12002 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12003 break 2
12004 fi
12005 done
12006 done
12007 IFS=$as_save_IFS
12008
12009 fi
12010 fi
12011 LCOV=$ac_cv_prog_LCOV
12012 if test -n "$LCOV"; then
12013 { $as_echo "$as_me:$LINENO: result: $LCOV" >&5
12014 $as_echo "$LCOV" >&6; }
12015 else
12016 { $as_echo "$as_me:$LINENO: result: no" >&5
12017 $as_echo "no" >&6; }
12018 fi
12019
12020
12021 # Extract the first word of "genhtml", so it can be a program name with args.
12022 set dummy genhtml; ac_word=$2
12023 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
12024 $as_echo_n "checking for $ac_word... " >&6; }
12025 if test "${ac_cv_prog_GENHTML+set}" = set; then
12026 $as_echo_n "(cached) " >&6
12027 else
12028 if test -n "$GENHTML"; then
12029 ac_cv_prog_GENHTML="$GENHTML" # Let the user override the test.
12030 else
12031 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12032 for as_dir in $PATH
12033 do
12034 IFS=$as_save_IFS
12035 test -z "$as_dir" && as_dir=.
12036 for ac_exec_ext in '' $ac_executable_extensions; do
12037 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12038 ac_cv_prog_GENHTML="genhtml"
12039 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12040 break 2
12041 fi
12042 done
12043 done
12044 IFS=$as_save_IFS
12045
12046 fi
12047 fi
12048 GENHTML=$ac_cv_prog_GENHTML
12049 if test -n "$GENHTML"; then
12050 { $as_echo "$as_me:$LINENO: result: $GENHTML" >&5
12051 $as_echo "$GENHTML" >&6; }
12052 else
12053 { $as_echo "$as_me:$LINENO: result: no" >&5
12054 $as_echo "no" >&6; }
12055 fi
12056
12057
12058
12059 if test -z "$LCOV" ; then
12060
12061 { { $as_echo "$as_me:$LINENO: error: To enable code coverage reporting you must have lcov installed" >&5
12062 $as_echo "$as_me: error: To enable code coverage reporting you must have lcov installed" >&2;}
12063 { (exit 1); exit 1; }; }
12064
12065 fi
12066
12067
12068 if test -z "$GENHTML" ; then
12069
12070 { { $as_echo "$as_me:$LINENO: error: Could not find genhtml from the lcov package" >&5
12071 $as_echo "$as_me: error: Could not find genhtml from the lcov package" >&2;}
12072 { (exit 1); exit 1; }; }
12073
12074 fi
12075
12076
12077 CODE_COVERAGE_CPPFLAGS=""
12078 CODE_COVERAGE_CFLAGS="-O0 -g -fprofile-arcs -ftest-coverage"
12079 CODE_COVERAGE_CXXFLAGS="-O0 -g -fprofile-arcs -ftest-coverage"
12080 CODE_COVERAGE_LIBS="-lgcov"
12081 CODE_COVERAGE_LDFLAGS="$CODE_COVERAGE_LIBS"
12082
12083
12084
12085
12086
12087
12088
12089 CODE_COVERAGE_RULES_CHECK='
12090 -$(A''M_V_at)$(MAKE) $(AM_MAKEFLAGS) -k check
12091 $(A''M_V_at)$(MAKE) $(AM_MAKEFLAGS) code-coverage-capture
12092 '
12093 CODE_COVERAGE_RULES_CAPTURE='
12094 $(code_coverage_v_lcov_cap)$(LCOV) $(code_coverage_quiet) $(addprefix --directory ,$(CODE_COVERAGE_DIRECTORY)) --capture --output-file "$(CODE_COVERAGE_OUTPUT_FILE).tmp" --test-name "$(call code_coverage_sanitize,$(PACKAGE_NAME)-$(PACKAGE_VERSION))" --no-checksum --compat-libtool $(CODE_COVERAGE_LCOV_SHOPTS) $(CODE_COVERAGE_LCOV_OPTIONS)
12095 $(code_coverage_v_lcov_ign)$(LCOV) $(code_coverage_quiet) $(addprefix --directory ,$(CODE_COVERAGE_DIRECTORY)) --remove "$(CODE_COVERAGE_OUTPUT_FILE).tmp" "/tmp/*" $(CODE_COVERAGE_IGNORE_PATTERN) --output-file "$(CODE_COVERAGE_OUTPUT_FILE)" $(CODE_COVERAGE_LCOV_SHOPTS) $(CODE_COVERAGE_LCOV_RMOPTS)
12096 -@rm -f $(CODE_COVERAGE_OUTPUT_FILE).tmp
12097 $(code_coverage_v_genhtml)LANG=C $(GENHTML) $(code_coverage_quiet) $(addprefix --prefix ,$(CODE_COVERAGE_DIRECTORY)) --output-directory "$(CODE_COVERAGE_OUTPUT_DIRECTORY)" --title "$(PACKAGE_NAME)-$(PACKAGE_VERSION) Code Coverage" --legend --show-details "$(CODE_COVERAGE_OUTPUT_FILE)" $(CODE_COVERAGE_GENHTML_OPTIONS)
12098 @echo "file://$(abs_builddir)/$(CODE_COVERAGE_OUTPUT_DIRECTORY)/index.html"
12099 '
12100 CODE_COVERAGE_RULES_CLEAN='
12101 clean: code-coverage-clean
12102 distclean: code-coverage-clean
12103 code-coverage-clean:
12104 -$(LCOV) --directory $(top_builddir) -z
12105 -rm -rf $(CODE_COVERAGE_OUTPUT_FILE) $(CODE_COVERAGE_OUTPUT_FILE).tmp $(CODE_COVERAGE_OUTPUT_DIRECTORY)
12106 -find . \( -name "*.gcda" -o -name "*.gcno" -o -name "*.gcov" \) -delete
12107 '
12108
12109 else
12110
12111 CODE_COVERAGE_RULES_CHECK='
12112 @echo "Need to reconfigure with --enable-code-coverage"
12113 '
12114 CODE_COVERAGE_RULES_CAPTURE="$CODE_COVERAGE_RULES_CHECK"
12115 CODE_COVERAGE_RULES_CLEAN=''
12116
12117 fi
12118
12119
12120 CODE_COVERAGE_RULES='
12121 # Code coverage
12122 #
12123 # Optional:
12124 # - CODE_COVERAGE_DIRECTORY: Top-level directory for code coverage reporting.
12125 # Multiple directories may be specified, separated by whitespace.
12126 # (Default: $(top_builddir))
12127 # - CODE_COVERAGE_OUTPUT_FILE: Filename and path for the .info file generated
12128 # by lcov for code coverage. (Default:
12129 # $(PACKAGE_NAME)-$(PACKAGE_VERSION)-coverage.info)
12130 # - CODE_COVERAGE_OUTPUT_DIRECTORY: Directory for generated code coverage
12131 # reports to be created. (Default:
12132 # $(PACKAGE_NAME)-$(PACKAGE_VERSION)-coverage)
12133 # - CODE_COVERAGE_BRANCH_COVERAGE: Set to 1 to enforce branch coverage,
12134 # set to 0 to disable it and leave empty to stay with the default.
12135 # (Default: empty)
12136 # - CODE_COVERAGE_LCOV_SHOPTS_DEFAULT: Extra options shared between both lcov
12137 # instances. (Default: based on $CODE_COVERAGE_BRANCH_COVERAGE)
12138 # - CODE_COVERAGE_LCOV_SHOPTS: Extra options to shared between both lcov
12139 # instances. (Default: $CODE_COVERAGE_LCOV_SHOPTS_DEFAULT)
12140 # - CODE_COVERAGE_LCOV_OPTIONS_GCOVPATH: --gcov-tool pathtogcov
12141 # - CODE_COVERAGE_LCOV_OPTIONS_DEFAULT: Extra options to pass to the
12142 # collecting lcov instance. (Default: $CODE_COVERAGE_LCOV_OPTIONS_GCOVPATH)
12143 # - CODE_COVERAGE_LCOV_OPTIONS: Extra options to pass to the collecting lcov
12144 # instance. (Default: $CODE_COVERAGE_LCOV_OPTIONS_DEFAULT)
12145 # - CODE_COVERAGE_LCOV_RMOPTS_DEFAULT: Extra options to pass to the filtering
12146 # lcov instance. (Default: empty)
12147 # - CODE_COVERAGE_LCOV_RMOPTS: Extra options to pass to the filtering lcov
12148 # instance. (Default: $CODE_COVERAGE_LCOV_RMOPTS_DEFAULT)
12149 # - CODE_COVERAGE_GENHTML_OPTIONS_DEFAULT: Extra options to pass to the
12150 # genhtml instance. (Default: based on $CODE_COVERAGE_BRANCH_COVERAGE)
12151 # - CODE_COVERAGE_GENHTML_OPTIONS: Extra options to pass to the genhtml
12152 # instance. (Default: $CODE_COVERAGE_GENHTML_OPTIONS_DEFAULT)
12153 # - CODE_COVERAGE_IGNORE_PATTERN: Extra glob pattern of files to ignore
12154 #
12155 # The generated report will be titled using the $(PACKAGE_NAME) and
12156 # $(PACKAGE_VERSION). In order to add the current git hash to the title,
12157 # use the git-version-gen script, available online.
12158
12159 # Optional variables
12160 CODE_COVERAGE_DIRECTORY ?= $(top_builddir)
12161 CODE_COVERAGE_OUTPUT_FILE ?= $(PACKAGE_NAME)-$(PACKAGE_VERSION)-coverage.info
12162 CODE_COVERAGE_OUTPUT_DIRECTORY ?= $(PACKAGE_NAME)-$(PACKAGE_VERSION)-coverage
12163 CODE_COVERAGE_BRANCH_COVERAGE ?=
12164 CODE_COVERAGE_LCOV_SHOPTS_DEFAULT ?= $(if $(CODE_COVERAGE_BRANCH_COVERAGE),\
12165 --rc lcov_branch_coverage=$(CODE_COVERAGE_BRANCH_COVERAGE))
12166 CODE_COVERAGE_LCOV_SHOPTS ?= $(CODE_COVERAGE_LCOV_SHOPTS_DEFAULT)
12167 CODE_COVERAGE_LCOV_OPTIONS_GCOVPATH ?= --gcov-tool "$(GCOV)"
12168 CODE_COVERAGE_LCOV_OPTIONS_DEFAULT ?= $(CODE_COVERAGE_LCOV_OPTIONS_GCOVPATH)
12169 CODE_COVERAGE_LCOV_OPTIONS ?= $(CODE_COVERAGE_LCOV_OPTIONS_DEFAULT)
12170 CODE_COVERAGE_LCOV_RMOPTS_DEFAULT ?=
12171 CODE_COVERAGE_LCOV_RMOPTS ?= $(CODE_COVERAGE_LCOV_RMOPTS_DEFAULT)
12172 CODE_COVERAGE_GENHTML_OPTIONS_DEFAULT ?=\
12173 $(if $(CODE_COVERAGE_BRANCH_COVERAGE),\
12174 --rc genhtml_branch_coverage=$(CODE_COVERAGE_BRANCH_COVERAGE))
12175 CODE_COVERAGE_GENHTML_OPTIONS ?= $(CODE_COVERAGE_GENHTML_OPTIONS_DEFAULT)
12176 CODE_COVERAGE_IGNORE_PATTERN ?=
12177
12178 GITIGNOREFILES ?=
12179 GITIGNOREFILES += $(CODE_COVERAGE_OUTPUT_FILE) $(CODE_COVERAGE_OUTPUT_DIRECTORY)
12180
12181 code_coverage_v_lcov_cap = $(code_coverage_v_lcov_cap_$(V))
12182 code_coverage_v_lcov_cap_ = $(code_coverage_v_lcov_cap_$(AM_DEFAULT_VERBOSITY))
12183 code_coverage_v_lcov_cap_0 = @echo " LCOV --capture"\
12184 $(CODE_COVERAGE_OUTPUT_FILE);
12185 code_coverage_v_lcov_ign = $(code_coverage_v_lcov_ign_$(V))
12186 code_coverage_v_lcov_ign_ = $(code_coverage_v_lcov_ign_$(AM_DEFAULT_VERBOSITY))
12187 code_coverage_v_lcov_ign_0 = @echo " LCOV --remove /tmp/*"\
12188 $(CODE_COVERAGE_IGNORE_PATTERN);
12189 code_coverage_v_genhtml = $(code_coverage_v_genhtml_$(V))
12190 code_coverage_v_genhtml_ = $(code_coverage_v_genhtml_$(AM_DEFAULT_VERBOSITY))
12191 code_coverage_v_genhtml_0 = @echo " GEN " $(CODE_COVERAGE_OUTPUT_DIRECTORY);
12192 code_coverage_quiet = $(code_coverage_quiet_$(V))
12193 code_coverage_quiet_ = $(code_coverage_quiet_$(AM_DEFAULT_VERBOSITY))
12194 code_coverage_quiet_0 = --quiet
12195
12196 # sanitizes the test-name: replaces with underscores: dashes and dots
12197 code_coverage_sanitize = $(subst -,_,$(subst .,_,$(1)))
12198
12199 # Use recursive makes in order to ignore errors during check
12200 check-code-coverage:'"$CODE_COVERAGE_RULES_CHECK"'
12201
12202 # Capture code coverage data
12203 code-coverage-capture: code-coverage-capture-hook'"$CODE_COVERAGE_RULES_CAPTURE"'
12204
12205 # Hook rule executed before code-coverage-capture, overridable by the user
12206 code-coverage-capture-hook:
12207
12208 '"$CODE_COVERAGE_RULES_CLEAN"'
12209
12210 A''M_DISTCHECK_CONFIGURE_FLAGS ?=
12211 A''M_DISTCHECK_CONFIGURE_FLAGS += --disable-code-coverage
12212
12213 .PHONY: check-code-coverage code-coverage-capture code-coverage-capture-hook code-coverage-clean
12214 '
12215
12216
12217
12218
12219
12220
12221 { $as_echo "$as_me:$LINENO: checking zfs author" >&5
12222 $as_echo_n "checking zfs author... " >&6; }
12223 { $as_echo "$as_me:$LINENO: result: $ZFS_META_AUTHOR" >&5
12224 $as_echo "$ZFS_META_AUTHOR" >&6; }
12225
12226 { $as_echo "$as_me:$LINENO: checking zfs license" >&5
12227 $as_echo_n "checking zfs license... " >&6; }
12228 { $as_echo "$as_me:$LINENO: result: $ZFS_META_LICENSE" >&5
12229 $as_echo "$ZFS_META_LICENSE" >&6; }
12230
12231
12232
12233 { $as_echo "$as_me:$LINENO: checking linux distribution" >&5
12234 $as_echo_n "checking linux distribution... " >&6; }
12235 if test -f /etc/toss-release ; then
12236 VENDOR=toss ;
12237 elif test -f /etc/fedora-release ; then
12238 VENDOR=fedora ;
12239 elif test -f /etc/redhat-release ; then
12240 VENDOR=redhat ;
12241 elif test -f /etc/gentoo-release ; then
12242 VENDOR=gentoo ;
12243 elif test -f /etc/arch-release ; then
12244 VENDOR=arch ;
12245 elif test -f /etc/SuSE-release ; then
12246 VENDOR=sles ;
12247 elif test -f /etc/slackware-version ; then
12248 VENDOR=slackware ;
12249 elif test -f /etc/lunar.release ; then
12250 VENDOR=lunar ;
12251 elif test -f /etc/lsb-release ; then
12252 VENDOR=ubuntu ;
12253 elif test -f /etc/debian_version ; then
12254 VENDOR=debian ;
12255 elif test -f /etc/alpine-release ; then
12256 VENDOR=alpine ;
12257 else
12258 VENDOR= ;
12259 fi
12260 { $as_echo "$as_me:$LINENO: result: $VENDOR" >&5
12261 $as_echo "$VENDOR" >&6; }
12262
12263
12264 { $as_echo "$as_me:$LINENO: checking default package type" >&5
12265 $as_echo_n "checking default package type... " >&6; }
12266 case "$VENDOR" in
12267 toss) DEFAULT_PACKAGE=rpm ;;
12268 redhat) DEFAULT_PACKAGE=rpm ;;
12269 fedora) DEFAULT_PACKAGE=rpm ;;
12270 gentoo) DEFAULT_PACKAGE=tgz ;;
12271 alpine) DEFAULT_PACKAGE=tgz ;;
12272 arch) DEFAULT_PACKAGE=tgz ;;
12273 sles) DEFAULT_PACKAGE=rpm ;;
12274 slackware) DEFAULT_PACKAGE=tgz ;;
12275 lunar) DEFAULT_PACKAGE=tgz ;;
12276 ubuntu) DEFAULT_PACKAGE=deb ;;
12277 debian) DEFAULT_PACKAGE=deb ;;
12278 *) DEFAULT_PACKAGE=rpm ;;
12279 esac
12280 { $as_echo "$as_me:$LINENO: result: $DEFAULT_PACKAGE" >&5
12281 $as_echo "$DEFAULT_PACKAGE" >&6; }
12282
12283
12284 DEFAULT_INIT_DIR=$sysconfdir/init.d
12285 { $as_echo "$as_me:$LINENO: checking default init directory" >&5
12286 $as_echo_n "checking default init directory... " >&6; }
12287 { $as_echo "$as_me:$LINENO: result: $DEFAULT_INIT_DIR" >&5
12288 $as_echo "$DEFAULT_INIT_DIR" >&6; }
12289
12290
12291 { $as_echo "$as_me:$LINENO: checking default init script type" >&5
12292 $as_echo_n "checking default init script type... " >&6; }
12293 case "$VENDOR" in
12294 toss) DEFAULT_INIT_SCRIPT=redhat ;;
12295 redhat) DEFAULT_INIT_SCRIPT=redhat ;;
12296 fedora) DEFAULT_INIT_SCRIPT=fedora ;;
12297 gentoo) DEFAULT_INIT_SCRIPT=openrc ;;
12298 alpine) DEFAULT_INIT_SCRIPT=openrc ;;
12299 arch) DEFAULT_INIT_SCRIPT=lsb ;;
12300 sles) DEFAULT_INIT_SCRIPT=lsb ;;
12301 slackware) DEFAULT_INIT_SCRIPT=lsb ;;
12302 lunar) DEFAULT_INIT_SCRIPT=lunar ;;
12303 ubuntu) DEFAULT_INIT_SCRIPT=lsb ;;
12304 debian) DEFAULT_INIT_SCRIPT=lsb ;;
12305 *) DEFAULT_INIT_SCRIPT=lsb ;;
12306 esac
12307 { $as_echo "$as_me:$LINENO: result: $DEFAULT_INIT_SCRIPT" >&5
12308 $as_echo "$DEFAULT_INIT_SCRIPT" >&6; }
12309
12310
12311 { $as_echo "$as_me:$LINENO: checking default init config direectory" >&5
12312 $as_echo_n "checking default init config direectory... " >&6; }
12313 case "$VENDOR" in
12314 alpine) DEFAULT_INITCONF_DIR=/etc/conf.d ;;
12315 gentoo) DEFAULT_INITCONF_DIR=/etc/conf.d ;;
12316 toss) DEFAULT_INITCONF_DIR=/etc/sysconfig ;;
12317 redhat) DEFAULT_INITCONF_DIR=/etc/sysconfig ;;
12318 fedora) DEFAULT_INITCONF_DIR=/etc/sysconfig ;;
12319 sles) DEFAULT_INITCONF_DIR=/etc/sysconfig ;;
12320 ubuntu) DEFAULT_INITCONF_DIR=/etc/default ;;
12321 debian) DEFAULT_INITCONF_DIR=/etc/default ;;
12322 *) DEFAULT_INITCONF_DIR=/etc/default ;;
12323 esac
12324 { $as_echo "$as_me:$LINENO: result: $DEFAULT_INITCONF_DIR" >&5
12325 $as_echo "$DEFAULT_INITCONF_DIR" >&6; }
12326
12327
12328 { $as_echo "$as_me:$LINENO: checking whether initramfs-tools is available" >&5
12329 $as_echo_n "checking whether initramfs-tools is available... " >&6; }
12330 if test -d /usr/share/initramfs-tools ; then
12331 DEFINE_INITRAMFS='--define "_initramfs 1"'
12332 { $as_echo "$as_me:$LINENO: result: yes" >&5
12333 $as_echo "yes" >&6; }
12334 else
12335 DEFINE_INITRAMFS=''
12336 { $as_echo "$as_me:$LINENO: result: no" >&5
12337 $as_echo "no" >&6; }
12338 fi
12339
12340
12341
12342 RPM=rpm
12343 RPMBUILD=rpmbuild
12344
12345 { $as_echo "$as_me:$LINENO: checking whether $RPM is available" >&5
12346 $as_echo_n "checking whether $RPM is available... " >&6; }
12347 if tmp=$($RPM --version 2>/dev/null); then
12348
12349 RPM_VERSION=$(echo $tmp | $AWK '/RPM/ { print $3 }')
12350 HAVE_RPM=yes
12351 { $as_echo "$as_me:$LINENO: result: $HAVE_RPM ($RPM_VERSION)" >&5
12352 $as_echo "$HAVE_RPM ($RPM_VERSION)" >&6; }
12353
12354 else
12355
12356 HAVE_RPM=no
12357 { $as_echo "$as_me:$LINENO: result: $HAVE_RPM" >&5
12358 $as_echo "$HAVE_RPM" >&6; }
12359
12360 fi
12361
12362
12363 { $as_echo "$as_me:$LINENO: checking whether $RPMBUILD is available" >&5
12364 $as_echo_n "checking whether $RPMBUILD is available... " >&6; }
12365 if tmp=$($RPMBUILD --version 2>/dev/null); then
12366
12367 RPMBUILD_VERSION=$(echo $tmp | $AWK '/RPM/ { print $3 }')
12368 HAVE_RPMBUILD=yes
12369 { $as_echo "$as_me:$LINENO: result: $HAVE_RPMBUILD ($RPMBUILD_VERSION)" >&5
12370 $as_echo "$HAVE_RPMBUILD ($RPMBUILD_VERSION)" >&6; }
12371
12372 else
12373
12374 HAVE_RPMBUILD=no
12375 { $as_echo "$as_me:$LINENO: result: $HAVE_RPMBUILD" >&5
12376 $as_echo "$HAVE_RPMBUILD" >&6; }
12377
12378 fi
12379
12380
12381 RPM_DEFINE_COMMON='--define "$(DEBUG_ZFS) 1"'
12382
12383
12384 RPM_DEFINE_UTIL=' --define "_initconfdir $(DEFAULT_INITCONF_DIR)"'
12385
12386 if test -n "$dracutdir" ; then
12387
12388 RPM_DEFINE_UTIL='--define "_dracutdir $(dracutdir)"'
12389
12390 fi
12391
12392 if test -n "$udevdir" ; then
12393
12394 RPM_DEFINE_UTIL+=' --define "_udevdir $(udevdir)"'
12395
12396 fi
12397
12398 if test -n "$udevruledir" ; then
12399
12400 RPM_DEFINE_UTIL+=' --define "_udevdir $(udevruledir)"'
12401
12402 fi
12403
12404 RPM_DEFINE_UTIL+=' $(DEFINE_INITRAMFS)'
12405 RPM_DEFINE_UTIL+=' $(DEFINE_SYSTEMD)'
12406
12407 RPM_DEFINE_KMOD='--define "kernels $(LINUX_VERSION)" --define "require_spldir $(SPL)" --define "require_splobj $(SPL_OBJ)" --define "ksrc $(LINUX)" --define "kobj $(LINUX_OBJ)"'
12408 RPM_DEFINE_KMOD+=' --define "_wrong_version_format_terminate_build 0"'
12409
12410 RPM_DEFINE_DKMS=
12411
12412 if test "$DEFAULT_PACKAGE" = "deb"; then
12413
12414 MULTIARCH_LIBDIR="lib/$(dpkg-architecture -qDEB_HOST_MULTIARCH)"
12415 RPM_DEFINE_UTIL+=' --define "_lib $(MULTIARCH_LIBDIR)"'
12416
12417
12418 fi
12419
12420
12421 SRPM_DEFINE_COMMON='--define "build_src_rpm 1"'
12422 SRPM_DEFINE_UTIL=
12423 SRPM_DEFINE_KMOD=
12424 SRPM_DEFINE_DKMS=
12425
12426 RPM_SPEC_DIR="rpm/generic"
12427
12428 # Check whether --with-spec was given.
12429 if test "${with_spec+set}" = set; then
12430 withval=$with_spec; RPM_SPEC_DIR="rpm/$withval"
12431 fi
12432
12433
12434 { $as_echo "$as_me:$LINENO: checking whether spec files are available" >&5
12435 $as_echo_n "checking whether spec files are available... " >&6; }
12436 { $as_echo "$as_me:$LINENO: result: yes ($RPM_SPEC_DIR/*.spec.in)" >&5
12437 $as_echo "yes ($RPM_SPEC_DIR/*.spec.in)" >&6; }
12438
12439
12440
12441
12442
12443
12444
12445
12446
12447
12448
12449
12450
12451
12452
12453
12454
12455
12456
12457
12458 DPKG=dpkg
12459 DPKGBUILD=dpkg-buildpackage
12460
12461 { $as_echo "$as_me:$LINENO: checking whether $DPKG is available" >&5
12462 $as_echo_n "checking whether $DPKG is available... " >&6; }
12463 if tmp=$($DPKG --version 2>/dev/null); then
12464
12465 DPKG_VERSION=$(echo $tmp | $AWK '/Debian/ { print $7 }')
12466 HAVE_DPKG=yes
12467 { $as_echo "$as_me:$LINENO: result: $HAVE_DPKG ($DPKG_VERSION)" >&5
12468 $as_echo "$HAVE_DPKG ($DPKG_VERSION)" >&6; }
12469
12470 else
12471
12472 HAVE_DPKG=no
12473 { $as_echo "$as_me:$LINENO: result: $HAVE_DPKG" >&5
12474 $as_echo "$HAVE_DPKG" >&6; }
12475
12476 fi
12477
12478
12479 { $as_echo "$as_me:$LINENO: checking whether $DPKGBUILD is available" >&5
12480 $as_echo_n "checking whether $DPKGBUILD is available... " >&6; }
12481 if tmp=$($DPKGBUILD --version 2>/dev/null); then
12482
12483 DPKGBUILD_VERSION=$(echo $tmp | \
12484 $AWK '/Debian/ { print $4 }' | cut -f-4 -d'.')
12485 HAVE_DPKGBUILD=yes
12486 { $as_echo "$as_me:$LINENO: result: $HAVE_DPKGBUILD ($DPKGBUILD_VERSION)" >&5
12487 $as_echo "$HAVE_DPKGBUILD ($DPKGBUILD_VERSION)" >&6; }
12488
12489 else
12490
12491 HAVE_DPKGBUILD=no
12492 { $as_echo "$as_me:$LINENO: result: $HAVE_DPKGBUILD" >&5
12493 $as_echo "$HAVE_DPKGBUILD" >&6; }
12494
12495 fi
12496
12497
12498
12499
12500
12501
12502
12503
12504
12505
12506
12507 ALIEN=alien
12508
12509 { $as_echo "$as_me:$LINENO: checking whether $ALIEN is available" >&5
12510 $as_echo_n "checking whether $ALIEN is available... " >&6; }
12511 if tmp=$($ALIEN --version 2>/dev/null); then
12512
12513 ALIEN_VERSION=$(echo $tmp | $AWK '{ print $3 }')
12514 HAVE_ALIEN=yes
12515 { $as_echo "$as_me:$LINENO: result: $HAVE_ALIEN ($ALIEN_VERSION)" >&5
12516 $as_echo "$HAVE_ALIEN ($ALIEN_VERSION)" >&6; }
12517
12518 else
12519
12520 HAVE_ALIEN=no
12521 { $as_echo "$as_me:$LINENO: result: $HAVE_ALIEN" >&5
12522 $as_echo "$HAVE_ALIEN" >&6; }
12523
12524 fi
12525
12526
12527
12528
12529
12530
12531
12532
12533 ZFS_CONFIG=all
12534
12535 # Check whether --with-config was given.
12536 if test "${with_config+set}" = set; then
12537 withval=$with_config; ZFS_CONFIG="$withval"
12538 fi
12539
12540 # Check whether --enable-linux-builtin was given.
12541 if test "${enable_linux_builtin+set}" = set; then
12542 enableval=$enable_linux_builtin;
12543 else
12544 enable_linux_builtin=no
12545 fi
12546
12547
12548 { $as_echo "$as_me:$LINENO: checking zfs config" >&5
12549 $as_echo_n "checking zfs config... " >&6; }
12550 { $as_echo "$as_me:$LINENO: result: $ZFS_CONFIG" >&5
12551 $as_echo "$ZFS_CONFIG" >&6; };
12552
12553
12554
12555
12556 { $as_echo "$as_me:$LINENO: checking for -Wno-unused-but-set-variable support" >&5
12557 $as_echo_n "checking for -Wno-unused-but-set-variable support... " >&6; }
12558
12559 saved_flags="$CFLAGS"
12560 CFLAGS="$CFLAGS -Wunused-but-set-variable"
12561
12562 cat >conftest.$ac_ext <<_ACEOF
12563 /* confdefs.h. */
12564 _ACEOF
12565 cat confdefs.h >>conftest.$ac_ext
12566 cat >>conftest.$ac_ext <<_ACEOF
12567 /* end confdefs.h. */
12568
12569 int
12570 main ()
12571 {
12572
12573 ;
12574 return 0;
12575 }
12576 _ACEOF
12577 rm -f conftest.$ac_objext
12578 if { (ac_try="$ac_compile"
12579 case "(($ac_try" in
12580 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12581 *) ac_try_echo=$ac_try;;
12582 esac
12583 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12584 $as_echo "$ac_try_echo") >&5
12585 (eval "$ac_compile") 2>conftest.er1
12586 ac_status=$?
12587 grep -v '^ *+' conftest.er1 >conftest.err
12588 rm -f conftest.er1
12589 cat conftest.err >&5
12590 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12591 (exit $ac_status); } && {
12592 test -z "$ac_c_werror_flag" ||
12593 test ! -s conftest.err
12594 } && test -s conftest.$ac_objext; then
12595
12596 NO_UNUSED_BUT_SET_VARIABLE=-Wno-unused-but-set-variable
12597 { $as_echo "$as_me:$LINENO: result: yes" >&5
12598 $as_echo "yes" >&6; }
12599
12600 else
12601 $as_echo "$as_me: failed program was:" >&5
12602 sed 's/^/| /' conftest.$ac_ext >&5
12603
12604
12605 NO_UNUSED_BUT_SET_VARIABLE=
12606 { $as_echo "$as_me:$LINENO: result: no" >&5
12607 $as_echo "no" >&6; }
12608
12609 fi
12610
12611 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12612
12613 CFLAGS="$saved_flags"
12614
12615
12616
12617 { $as_echo "$as_me:$LINENO: checking for -Wno-bool-compare support" >&5
12618 $as_echo_n "checking for -Wno-bool-compare support... " >&6; }
12619
12620 saved_flags="$CFLAGS"
12621 CFLAGS="$CFLAGS -Wbool-compare"
12622
12623 cat >conftest.$ac_ext <<_ACEOF
12624 /* confdefs.h. */
12625 _ACEOF
12626 cat confdefs.h >>conftest.$ac_ext
12627 cat >>conftest.$ac_ext <<_ACEOF
12628 /* end confdefs.h. */
12629
12630 int
12631 main ()
12632 {
12633
12634 ;
12635 return 0;
12636 }
12637 _ACEOF
12638 rm -f conftest.$ac_objext
12639 if { (ac_try="$ac_compile"
12640 case "(($ac_try" in
12641 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12642 *) ac_try_echo=$ac_try;;
12643 esac
12644 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12645 $as_echo "$ac_try_echo") >&5
12646 (eval "$ac_compile") 2>conftest.er1
12647 ac_status=$?
12648 grep -v '^ *+' conftest.er1 >conftest.err
12649 rm -f conftest.er1
12650 cat conftest.err >&5
12651 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12652 (exit $ac_status); } && {
12653 test -z "$ac_c_werror_flag" ||
12654 test ! -s conftest.err
12655 } && test -s conftest.$ac_objext; then
12656
12657 NO_BOOL_COMPARE=-Wno-bool-compare
12658 { $as_echo "$as_me:$LINENO: result: yes" >&5
12659 $as_echo "yes" >&6; }
12660
12661 else
12662 $as_echo "$as_me: failed program was:" >&5
12663 sed 's/^/| /' conftest.$ac_ext >&5
12664
12665
12666 NO_BOOL_COMPARE=
12667 { $as_echo "$as_me:$LINENO: result: no" >&5
12668 $as_echo "no" >&6; }
12669
12670 fi
12671
12672 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12673
12674 CFLAGS="$saved_flags"
12675
12676
12677
12678 case "$host_cpu" in
12679 x86_64 | x86 | i686)
12680
12681 { $as_echo "$as_me:$LINENO: checking whether host toolchain supports SSE" >&5
12682 $as_echo_n "checking whether host toolchain supports SSE... " >&6; }
12683
12684 cat >conftest.$ac_ext <<_ACEOF
12685 /* confdefs.h. */
12686 _ACEOF
12687 cat confdefs.h >>conftest.$ac_ext
12688 cat >>conftest.$ac_ext <<_ACEOF
12689 /* end confdefs.h. */
12690
12691 void main()
12692 {
12693 __asm__ __volatile__("xorps %xmm0, %xmm1");
12694 }
12695
12696 _ACEOF
12697 rm -f conftest.$ac_objext conftest$ac_exeext
12698 if { (ac_try="$ac_link"
12699 case "(($ac_try" in
12700 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12701 *) ac_try_echo=$ac_try;;
12702 esac
12703 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12704 $as_echo "$ac_try_echo") >&5
12705 (eval "$ac_link") 2>conftest.er1
12706 ac_status=$?
12707 grep -v '^ *+' conftest.er1 >conftest.err
12708 rm -f conftest.er1
12709 cat conftest.err >&5
12710 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12711 (exit $ac_status); } && {
12712 test -z "$ac_c_werror_flag" ||
12713 test ! -s conftest.err
12714 } && test -s conftest$ac_exeext && {
12715 test "$cross_compiling" = yes ||
12716 $as_test_x conftest$ac_exeext
12717 }; then
12718
12719
12720 cat >>confdefs.h <<\_ACEOF
12721 #define HAVE_SSE 1
12722 _ACEOF
12723
12724 { $as_echo "$as_me:$LINENO: result: yes" >&5
12725 $as_echo "yes" >&6; }
12726
12727 else
12728 $as_echo "$as_me: failed program was:" >&5
12729 sed 's/^/| /' conftest.$ac_ext >&5
12730
12731
12732 { $as_echo "$as_me:$LINENO: result: no" >&5
12733 $as_echo "no" >&6; }
12734
12735 fi
12736
12737 rm -rf conftest.dSYM
12738 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12739 conftest$ac_exeext conftest.$ac_ext
12740
12741
12742 { $as_echo "$as_me:$LINENO: checking whether host toolchain supports SSE2" >&5
12743 $as_echo_n "checking whether host toolchain supports SSE2... " >&6; }
12744
12745 cat >conftest.$ac_ext <<_ACEOF
12746 /* confdefs.h. */
12747 _ACEOF
12748 cat confdefs.h >>conftest.$ac_ext
12749 cat >>conftest.$ac_ext <<_ACEOF
12750 /* end confdefs.h. */
12751
12752 void main()
12753 {
12754 __asm__ __volatile__("pxor %xmm0, %xmm1");
12755 }
12756
12757 _ACEOF
12758 rm -f conftest.$ac_objext conftest$ac_exeext
12759 if { (ac_try="$ac_link"
12760 case "(($ac_try" in
12761 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12762 *) ac_try_echo=$ac_try;;
12763 esac
12764 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12765 $as_echo "$ac_try_echo") >&5
12766 (eval "$ac_link") 2>conftest.er1
12767 ac_status=$?
12768 grep -v '^ *+' conftest.er1 >conftest.err
12769 rm -f conftest.er1
12770 cat conftest.err >&5
12771 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12772 (exit $ac_status); } && {
12773 test -z "$ac_c_werror_flag" ||
12774 test ! -s conftest.err
12775 } && test -s conftest$ac_exeext && {
12776 test "$cross_compiling" = yes ||
12777 $as_test_x conftest$ac_exeext
12778 }; then
12779
12780
12781 cat >>confdefs.h <<\_ACEOF
12782 #define HAVE_SSE2 1
12783 _ACEOF
12784
12785 { $as_echo "$as_me:$LINENO: result: yes" >&5
12786 $as_echo "yes" >&6; }
12787
12788 else
12789 $as_echo "$as_me: failed program was:" >&5
12790 sed 's/^/| /' conftest.$ac_ext >&5
12791
12792
12793 { $as_echo "$as_me:$LINENO: result: no" >&5
12794 $as_echo "no" >&6; }
12795
12796 fi
12797
12798 rm -rf conftest.dSYM
12799 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12800 conftest$ac_exeext conftest.$ac_ext
12801
12802
12803 { $as_echo "$as_me:$LINENO: checking whether host toolchain supports SSE3" >&5
12804 $as_echo_n "checking whether host toolchain supports SSE3... " >&6; }
12805
12806 cat >conftest.$ac_ext <<_ACEOF
12807 /* confdefs.h. */
12808 _ACEOF
12809 cat confdefs.h >>conftest.$ac_ext
12810 cat >>conftest.$ac_ext <<_ACEOF
12811 /* end confdefs.h. */
12812
12813 void main()
12814 {
12815 char v[16];
12816 __asm__ __volatile__("lddqu %0,%%xmm0" :: "m"(v[0]));
12817 }
12818
12819 _ACEOF
12820 rm -f conftest.$ac_objext conftest$ac_exeext
12821 if { (ac_try="$ac_link"
12822 case "(($ac_try" in
12823 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12824 *) ac_try_echo=$ac_try;;
12825 esac
12826 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12827 $as_echo "$ac_try_echo") >&5
12828 (eval "$ac_link") 2>conftest.er1
12829 ac_status=$?
12830 grep -v '^ *+' conftest.er1 >conftest.err
12831 rm -f conftest.er1
12832 cat conftest.err >&5
12833 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12834 (exit $ac_status); } && {
12835 test -z "$ac_c_werror_flag" ||
12836 test ! -s conftest.err
12837 } && test -s conftest$ac_exeext && {
12838 test "$cross_compiling" = yes ||
12839 $as_test_x conftest$ac_exeext
12840 }; then
12841
12842
12843 cat >>confdefs.h <<\_ACEOF
12844 #define HAVE_SSE3 1
12845 _ACEOF
12846
12847 { $as_echo "$as_me:$LINENO: result: yes" >&5
12848 $as_echo "yes" >&6; }
12849
12850 else
12851 $as_echo "$as_me: failed program was:" >&5
12852 sed 's/^/| /' conftest.$ac_ext >&5
12853
12854
12855 { $as_echo "$as_me:$LINENO: result: no" >&5
12856 $as_echo "no" >&6; }
12857
12858 fi
12859
12860 rm -rf conftest.dSYM
12861 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12862 conftest$ac_exeext conftest.$ac_ext
12863
12864
12865 { $as_echo "$as_me:$LINENO: checking whether host toolchain supports SSSE3" >&5
12866 $as_echo_n "checking whether host toolchain supports SSSE3... " >&6; }
12867
12868 cat >conftest.$ac_ext <<_ACEOF
12869 /* confdefs.h. */
12870 _ACEOF
12871 cat confdefs.h >>conftest.$ac_ext
12872 cat >>conftest.$ac_ext <<_ACEOF
12873 /* end confdefs.h. */
12874
12875 void main()
12876 {
12877 __asm__ __volatile__("pshufb %xmm0,%xmm1");
12878 }
12879
12880 _ACEOF
12881 rm -f conftest.$ac_objext conftest$ac_exeext
12882 if { (ac_try="$ac_link"
12883 case "(($ac_try" in
12884 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12885 *) ac_try_echo=$ac_try;;
12886 esac
12887 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12888 $as_echo "$ac_try_echo") >&5
12889 (eval "$ac_link") 2>conftest.er1
12890 ac_status=$?
12891 grep -v '^ *+' conftest.er1 >conftest.err
12892 rm -f conftest.er1
12893 cat conftest.err >&5
12894 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12895 (exit $ac_status); } && {
12896 test -z "$ac_c_werror_flag" ||
12897 test ! -s conftest.err
12898 } && test -s conftest$ac_exeext && {
12899 test "$cross_compiling" = yes ||
12900 $as_test_x conftest$ac_exeext
12901 }; then
12902
12903
12904 cat >>confdefs.h <<\_ACEOF
12905 #define HAVE_SSSE3 1
12906 _ACEOF
12907
12908 { $as_echo "$as_me:$LINENO: result: yes" >&5
12909 $as_echo "yes" >&6; }
12910
12911 else
12912 $as_echo "$as_me: failed program was:" >&5
12913 sed 's/^/| /' conftest.$ac_ext >&5
12914
12915
12916 { $as_echo "$as_me:$LINENO: result: no" >&5
12917 $as_echo "no" >&6; }
12918
12919 fi
12920
12921 rm -rf conftest.dSYM
12922 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12923 conftest$ac_exeext conftest.$ac_ext
12924
12925
12926 { $as_echo "$as_me:$LINENO: checking whether host toolchain supports SSE4.1" >&5
12927 $as_echo_n "checking whether host toolchain supports SSE4.1... " >&6; }
12928
12929 cat >conftest.$ac_ext <<_ACEOF
12930 /* confdefs.h. */
12931 _ACEOF
12932 cat confdefs.h >>conftest.$ac_ext
12933 cat >>conftest.$ac_ext <<_ACEOF
12934 /* end confdefs.h. */
12935
12936 void main()
12937 {
12938 __asm__ __volatile__("pmaxsb %xmm0,%xmm1");
12939 }
12940
12941 _ACEOF
12942 rm -f conftest.$ac_objext conftest$ac_exeext
12943 if { (ac_try="$ac_link"
12944 case "(($ac_try" in
12945 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12946 *) ac_try_echo=$ac_try;;
12947 esac
12948 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12949 $as_echo "$ac_try_echo") >&5
12950 (eval "$ac_link") 2>conftest.er1
12951 ac_status=$?
12952 grep -v '^ *+' conftest.er1 >conftest.err
12953 rm -f conftest.er1
12954 cat conftest.err >&5
12955 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12956 (exit $ac_status); } && {
12957 test -z "$ac_c_werror_flag" ||
12958 test ! -s conftest.err
12959 } && test -s conftest$ac_exeext && {
12960 test "$cross_compiling" = yes ||
12961 $as_test_x conftest$ac_exeext
12962 }; then
12963
12964
12965 cat >>confdefs.h <<\_ACEOF
12966 #define HAVE_SSE4_1 1
12967 _ACEOF
12968
12969 { $as_echo "$as_me:$LINENO: result: yes" >&5
12970 $as_echo "yes" >&6; }
12971
12972 else
12973 $as_echo "$as_me: failed program was:" >&5
12974 sed 's/^/| /' conftest.$ac_ext >&5
12975
12976
12977 { $as_echo "$as_me:$LINENO: result: no" >&5
12978 $as_echo "no" >&6; }
12979
12980 fi
12981
12982 rm -rf conftest.dSYM
12983 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12984 conftest$ac_exeext conftest.$ac_ext
12985
12986
12987 { $as_echo "$as_me:$LINENO: checking whether host toolchain supports SSE4.2" >&5
12988 $as_echo_n "checking whether host toolchain supports SSE4.2... " >&6; }
12989
12990 cat >conftest.$ac_ext <<_ACEOF
12991 /* confdefs.h. */
12992 _ACEOF
12993 cat confdefs.h >>conftest.$ac_ext
12994 cat >>conftest.$ac_ext <<_ACEOF
12995 /* end confdefs.h. */
12996
12997 void main()
12998 {
12999 __asm__ __volatile__("pcmpgtq %xmm0, %xmm1");
13000 }
13001
13002 _ACEOF
13003 rm -f conftest.$ac_objext conftest$ac_exeext
13004 if { (ac_try="$ac_link"
13005 case "(($ac_try" in
13006 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13007 *) ac_try_echo=$ac_try;;
13008 esac
13009 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13010 $as_echo "$ac_try_echo") >&5
13011 (eval "$ac_link") 2>conftest.er1
13012 ac_status=$?
13013 grep -v '^ *+' conftest.er1 >conftest.err
13014 rm -f conftest.er1
13015 cat conftest.err >&5
13016 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13017 (exit $ac_status); } && {
13018 test -z "$ac_c_werror_flag" ||
13019 test ! -s conftest.err
13020 } && test -s conftest$ac_exeext && {
13021 test "$cross_compiling" = yes ||
13022 $as_test_x conftest$ac_exeext
13023 }; then
13024
13025
13026 cat >>confdefs.h <<\_ACEOF
13027 #define HAVE_SSE4_2 1
13028 _ACEOF
13029
13030 { $as_echo "$as_me:$LINENO: result: yes" >&5
13031 $as_echo "yes" >&6; }
13032
13033 else
13034 $as_echo "$as_me: failed program was:" >&5
13035 sed 's/^/| /' conftest.$ac_ext >&5
13036
13037
13038 { $as_echo "$as_me:$LINENO: result: no" >&5
13039 $as_echo "no" >&6; }
13040
13041 fi
13042
13043 rm -rf conftest.dSYM
13044 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13045 conftest$ac_exeext conftest.$ac_ext
13046
13047
13048 { $as_echo "$as_me:$LINENO: checking whether host toolchain supports AVX" >&5
13049 $as_echo_n "checking whether host toolchain supports AVX... " >&6; }
13050
13051 cat >conftest.$ac_ext <<_ACEOF
13052 /* confdefs.h. */
13053 _ACEOF
13054 cat confdefs.h >>conftest.$ac_ext
13055 cat >>conftest.$ac_ext <<_ACEOF
13056 /* end confdefs.h. */
13057
13058 void main()
13059 {
13060 char v[32];
13061 __asm__ __volatile__("vmovdqa %0,%%ymm0" :: "m"(v[0]));
13062 }
13063
13064 _ACEOF
13065 rm -f conftest.$ac_objext conftest$ac_exeext
13066 if { (ac_try="$ac_link"
13067 case "(($ac_try" in
13068 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13069 *) ac_try_echo=$ac_try;;
13070 esac
13071 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13072 $as_echo "$ac_try_echo") >&5
13073 (eval "$ac_link") 2>conftest.er1
13074 ac_status=$?
13075 grep -v '^ *+' conftest.er1 >conftest.err
13076 rm -f conftest.er1
13077 cat conftest.err >&5
13078 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13079 (exit $ac_status); } && {
13080 test -z "$ac_c_werror_flag" ||
13081 test ! -s conftest.err
13082 } && test -s conftest$ac_exeext && {
13083 test "$cross_compiling" = yes ||
13084 $as_test_x conftest$ac_exeext
13085 }; then
13086
13087 { $as_echo "$as_me:$LINENO: result: yes" >&5
13088 $as_echo "yes" >&6; }
13089
13090 cat >>confdefs.h <<\_ACEOF
13091 #define HAVE_AVX 1
13092 _ACEOF
13093
13094
13095 else
13096 $as_echo "$as_me: failed program was:" >&5
13097 sed 's/^/| /' conftest.$ac_ext >&5
13098
13099
13100 { $as_echo "$as_me:$LINENO: result: no" >&5
13101 $as_echo "no" >&6; }
13102
13103 fi
13104
13105 rm -rf conftest.dSYM
13106 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13107 conftest$ac_exeext conftest.$ac_ext
13108
13109
13110 { $as_echo "$as_me:$LINENO: checking whether host toolchain supports AVX2" >&5
13111 $as_echo_n "checking whether host toolchain supports AVX2... " >&6; }
13112
13113 cat >conftest.$ac_ext <<_ACEOF
13114 /* confdefs.h. */
13115 _ACEOF
13116 cat confdefs.h >>conftest.$ac_ext
13117 cat >>conftest.$ac_ext <<_ACEOF
13118 /* end confdefs.h. */
13119
13120
13121 void main()
13122 {
13123 __asm__ __volatile__("vpshufb %ymm0,%ymm1,%ymm2");
13124 }
13125
13126 _ACEOF
13127 rm -f conftest.$ac_objext conftest$ac_exeext
13128 if { (ac_try="$ac_link"
13129 case "(($ac_try" in
13130 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13131 *) ac_try_echo=$ac_try;;
13132 esac
13133 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13134 $as_echo "$ac_try_echo") >&5
13135 (eval "$ac_link") 2>conftest.er1
13136 ac_status=$?
13137 grep -v '^ *+' conftest.er1 >conftest.err
13138 rm -f conftest.er1
13139 cat conftest.err >&5
13140 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13141 (exit $ac_status); } && {
13142 test -z "$ac_c_werror_flag" ||
13143 test ! -s conftest.err
13144 } && test -s conftest$ac_exeext && {
13145 test "$cross_compiling" = yes ||
13146 $as_test_x conftest$ac_exeext
13147 }; then
13148
13149 { $as_echo "$as_me:$LINENO: result: yes" >&5
13150 $as_echo "yes" >&6; }
13151
13152 cat >>confdefs.h <<\_ACEOF
13153 #define HAVE_AVX2 1
13154 _ACEOF
13155
13156
13157 else
13158 $as_echo "$as_me: failed program was:" >&5
13159 sed 's/^/| /' conftest.$ac_ext >&5
13160
13161
13162 { $as_echo "$as_me:$LINENO: result: no" >&5
13163 $as_echo "no" >&6; }
13164
13165 fi
13166
13167 rm -rf conftest.dSYM
13168 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13169 conftest$ac_exeext conftest.$ac_ext
13170
13171
13172 { $as_echo "$as_me:$LINENO: checking whether host toolchain supports AVX512F" >&5
13173 $as_echo_n "checking whether host toolchain supports AVX512F... " >&6; }
13174
13175 cat >conftest.$ac_ext <<_ACEOF
13176 /* confdefs.h. */
13177 _ACEOF
13178 cat confdefs.h >>conftest.$ac_ext
13179 cat >>conftest.$ac_ext <<_ACEOF
13180 /* end confdefs.h. */
13181
13182
13183 void main()
13184 {
13185 __asm__ __volatile__("vpandd %zmm0,%zmm1,%zmm2");
13186 }
13187
13188 _ACEOF
13189 rm -f conftest.$ac_objext conftest$ac_exeext
13190 if { (ac_try="$ac_link"
13191 case "(($ac_try" in
13192 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13193 *) ac_try_echo=$ac_try;;
13194 esac
13195 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13196 $as_echo "$ac_try_echo") >&5
13197 (eval "$ac_link") 2>conftest.er1
13198 ac_status=$?
13199 grep -v '^ *+' conftest.er1 >conftest.err
13200 rm -f conftest.er1
13201 cat conftest.err >&5
13202 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13203 (exit $ac_status); } && {
13204 test -z "$ac_c_werror_flag" ||
13205 test ! -s conftest.err
13206 } && test -s conftest$ac_exeext && {
13207 test "$cross_compiling" = yes ||
13208 $as_test_x conftest$ac_exeext
13209 }; then
13210
13211 { $as_echo "$as_me:$LINENO: result: yes" >&5
13212 $as_echo "yes" >&6; }
13213
13214 cat >>confdefs.h <<\_ACEOF
13215 #define HAVE_AVX512F 1
13216 _ACEOF
13217
13218
13219 else
13220 $as_echo "$as_me: failed program was:" >&5
13221 sed 's/^/| /' conftest.$ac_ext >&5
13222
13223
13224 { $as_echo "$as_me:$LINENO: result: no" >&5
13225 $as_echo "no" >&6; }
13226
13227 fi
13228
13229 rm -rf conftest.dSYM
13230 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13231 conftest$ac_exeext conftest.$ac_ext
13232
13233
13234 { $as_echo "$as_me:$LINENO: checking whether host toolchain supports AVX512CD" >&5
13235 $as_echo_n "checking whether host toolchain supports AVX512CD... " >&6; }
13236
13237 cat >conftest.$ac_ext <<_ACEOF
13238 /* confdefs.h. */
13239 _ACEOF
13240 cat confdefs.h >>conftest.$ac_ext
13241 cat >>conftest.$ac_ext <<_ACEOF
13242 /* end confdefs.h. */
13243
13244
13245 void main()
13246 {
13247 __asm__ __volatile__("vplzcntd %zmm0,%zmm1");
13248 }
13249
13250 _ACEOF
13251 rm -f conftest.$ac_objext conftest$ac_exeext
13252 if { (ac_try="$ac_link"
13253 case "(($ac_try" in
13254 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13255 *) ac_try_echo=$ac_try;;
13256 esac
13257 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13258 $as_echo "$ac_try_echo") >&5
13259 (eval "$ac_link") 2>conftest.er1
13260 ac_status=$?
13261 grep -v '^ *+' conftest.er1 >conftest.err
13262 rm -f conftest.er1
13263 cat conftest.err >&5
13264 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13265 (exit $ac_status); } && {
13266 test -z "$ac_c_werror_flag" ||
13267 test ! -s conftest.err
13268 } && test -s conftest$ac_exeext && {
13269 test "$cross_compiling" = yes ||
13270 $as_test_x conftest$ac_exeext
13271 }; then
13272
13273 { $as_echo "$as_me:$LINENO: result: yes" >&5
13274 $as_echo "yes" >&6; }
13275
13276 cat >>confdefs.h <<\_ACEOF
13277 #define HAVE_AVX512CD 1
13278 _ACEOF
13279
13280
13281 else
13282 $as_echo "$as_me: failed program was:" >&5
13283 sed 's/^/| /' conftest.$ac_ext >&5
13284
13285
13286 { $as_echo "$as_me:$LINENO: result: no" >&5
13287 $as_echo "no" >&6; }
13288
13289 fi
13290
13291 rm -rf conftest.dSYM
13292 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13293 conftest$ac_exeext conftest.$ac_ext
13294
13295
13296 { $as_echo "$as_me:$LINENO: checking whether host toolchain supports AVX512DQ" >&5
13297 $as_echo_n "checking whether host toolchain supports AVX512DQ... " >&6; }
13298
13299 cat >conftest.$ac_ext <<_ACEOF
13300 /* confdefs.h. */
13301 _ACEOF
13302 cat confdefs.h >>conftest.$ac_ext
13303 cat >>conftest.$ac_ext <<_ACEOF
13304 /* end confdefs.h. */
13305
13306
13307 void main()
13308 {
13309 __asm__ __volatile__("vandpd %zmm0,%zmm1,%zmm2");
13310 }
13311
13312 _ACEOF
13313 rm -f conftest.$ac_objext conftest$ac_exeext
13314 if { (ac_try="$ac_link"
13315 case "(($ac_try" in
13316 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13317 *) ac_try_echo=$ac_try;;
13318 esac
13319 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13320 $as_echo "$ac_try_echo") >&5
13321 (eval "$ac_link") 2>conftest.er1
13322 ac_status=$?
13323 grep -v '^ *+' conftest.er1 >conftest.err
13324 rm -f conftest.er1
13325 cat conftest.err >&5
13326 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13327 (exit $ac_status); } && {
13328 test -z "$ac_c_werror_flag" ||
13329 test ! -s conftest.err
13330 } && test -s conftest$ac_exeext && {
13331 test "$cross_compiling" = yes ||
13332 $as_test_x conftest$ac_exeext
13333 }; then
13334
13335 { $as_echo "$as_me:$LINENO: result: yes" >&5
13336 $as_echo "yes" >&6; }
13337
13338 cat >>confdefs.h <<\_ACEOF
13339 #define HAVE_AVX512DQ 1
13340 _ACEOF
13341
13342
13343 else
13344 $as_echo "$as_me: failed program was:" >&5
13345 sed 's/^/| /' conftest.$ac_ext >&5
13346
13347
13348 { $as_echo "$as_me:$LINENO: result: no" >&5
13349 $as_echo "no" >&6; }
13350
13351 fi
13352
13353 rm -rf conftest.dSYM
13354 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13355 conftest$ac_exeext conftest.$ac_ext
13356
13357
13358 { $as_echo "$as_me:$LINENO: checking whether host toolchain supports AVX512BW" >&5
13359 $as_echo_n "checking whether host toolchain supports AVX512BW... " >&6; }
13360
13361 cat >conftest.$ac_ext <<_ACEOF
13362 /* confdefs.h. */
13363 _ACEOF
13364 cat confdefs.h >>conftest.$ac_ext
13365 cat >>conftest.$ac_ext <<_ACEOF
13366 /* end confdefs.h. */
13367
13368
13369 void main()
13370 {
13371 __asm__ __volatile__("vpshufb %zmm0,%zmm1,%zmm2");
13372 }
13373
13374 _ACEOF
13375 rm -f conftest.$ac_objext conftest$ac_exeext
13376 if { (ac_try="$ac_link"
13377 case "(($ac_try" in
13378 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13379 *) ac_try_echo=$ac_try;;
13380 esac
13381 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13382 $as_echo "$ac_try_echo") >&5
13383 (eval "$ac_link") 2>conftest.er1
13384 ac_status=$?
13385 grep -v '^ *+' conftest.er1 >conftest.err
13386 rm -f conftest.er1
13387 cat conftest.err >&5
13388 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13389 (exit $ac_status); } && {
13390 test -z "$ac_c_werror_flag" ||
13391 test ! -s conftest.err
13392 } && test -s conftest$ac_exeext && {
13393 test "$cross_compiling" = yes ||
13394 $as_test_x conftest$ac_exeext
13395 }; then
13396
13397 { $as_echo "$as_me:$LINENO: result: yes" >&5
13398 $as_echo "yes" >&6; }
13399
13400 cat >>confdefs.h <<\_ACEOF
13401 #define HAVE_AVX512BW 1
13402 _ACEOF
13403
13404
13405 else
13406 $as_echo "$as_me: failed program was:" >&5
13407 sed 's/^/| /' conftest.$ac_ext >&5
13408
13409
13410 { $as_echo "$as_me:$LINENO: result: no" >&5
13411 $as_echo "no" >&6; }
13412
13413 fi
13414
13415 rm -rf conftest.dSYM
13416 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13417 conftest$ac_exeext conftest.$ac_ext
13418
13419
13420 { $as_echo "$as_me:$LINENO: checking whether host toolchain supports AVX512IFMA" >&5
13421 $as_echo_n "checking whether host toolchain supports AVX512IFMA... " >&6; }
13422
13423 cat >conftest.$ac_ext <<_ACEOF
13424 /* confdefs.h. */
13425 _ACEOF
13426 cat confdefs.h >>conftest.$ac_ext
13427 cat >>conftest.$ac_ext <<_ACEOF
13428 /* end confdefs.h. */
13429
13430
13431 void main()
13432 {
13433 __asm__ __volatile__("vpmadd52luq %zmm0,%zmm1,%zmm2");
13434 }
13435
13436 _ACEOF
13437 rm -f conftest.$ac_objext conftest$ac_exeext
13438 if { (ac_try="$ac_link"
13439 case "(($ac_try" in
13440 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13441 *) ac_try_echo=$ac_try;;
13442 esac
13443 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13444 $as_echo "$ac_try_echo") >&5
13445 (eval "$ac_link") 2>conftest.er1
13446 ac_status=$?
13447 grep -v '^ *+' conftest.er1 >conftest.err
13448 rm -f conftest.er1
13449 cat conftest.err >&5
13450 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13451 (exit $ac_status); } && {
13452 test -z "$ac_c_werror_flag" ||
13453 test ! -s conftest.err
13454 } && test -s conftest$ac_exeext && {
13455 test "$cross_compiling" = yes ||
13456 $as_test_x conftest$ac_exeext
13457 }; then
13458
13459 { $as_echo "$as_me:$LINENO: result: yes" >&5
13460 $as_echo "yes" >&6; }
13461
13462 cat >>confdefs.h <<\_ACEOF
13463 #define HAVE_AVX512IFMA 1
13464 _ACEOF
13465
13466
13467 else
13468 $as_echo "$as_me: failed program was:" >&5
13469 sed 's/^/| /' conftest.$ac_ext >&5
13470
13471
13472 { $as_echo "$as_me:$LINENO: result: no" >&5
13473 $as_echo "no" >&6; }
13474
13475 fi
13476
13477 rm -rf conftest.dSYM
13478 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13479 conftest$ac_exeext conftest.$ac_ext
13480
13481
13482 { $as_echo "$as_me:$LINENO: checking whether host toolchain supports AVX512VBMI" >&5
13483 $as_echo_n "checking whether host toolchain supports AVX512VBMI... " >&6; }
13484
13485 cat >conftest.$ac_ext <<_ACEOF
13486 /* confdefs.h. */
13487 _ACEOF
13488 cat confdefs.h >>conftest.$ac_ext
13489 cat >>conftest.$ac_ext <<_ACEOF
13490 /* end confdefs.h. */
13491
13492
13493 void main()
13494 {
13495 __asm__ __volatile__("vpermb %zmm0,%zmm1,%zmm2");
13496 }
13497
13498 _ACEOF
13499 rm -f conftest.$ac_objext conftest$ac_exeext
13500 if { (ac_try="$ac_link"
13501 case "(($ac_try" in
13502 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13503 *) ac_try_echo=$ac_try;;
13504 esac
13505 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13506 $as_echo "$ac_try_echo") >&5
13507 (eval "$ac_link") 2>conftest.er1
13508 ac_status=$?
13509 grep -v '^ *+' conftest.er1 >conftest.err
13510 rm -f conftest.er1
13511 cat conftest.err >&5
13512 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13513 (exit $ac_status); } && {
13514 test -z "$ac_c_werror_flag" ||
13515 test ! -s conftest.err
13516 } && test -s conftest$ac_exeext && {
13517 test "$cross_compiling" = yes ||
13518 $as_test_x conftest$ac_exeext
13519 }; then
13520
13521 { $as_echo "$as_me:$LINENO: result: yes" >&5
13522 $as_echo "yes" >&6; }
13523
13524 cat >>confdefs.h <<\_ACEOF
13525 #define HAVE_AVX512VBMI 1
13526 _ACEOF
13527
13528
13529 else
13530 $as_echo "$as_me: failed program was:" >&5
13531 sed 's/^/| /' conftest.$ac_ext >&5
13532
13533
13534 { $as_echo "$as_me:$LINENO: result: no" >&5
13535 $as_echo "no" >&6; }
13536
13537 fi
13538
13539 rm -rf conftest.dSYM
13540 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13541 conftest$ac_exeext conftest.$ac_ext
13542
13543
13544 { $as_echo "$as_me:$LINENO: checking whether host toolchain supports AVX512PF" >&5
13545 $as_echo_n "checking whether host toolchain supports AVX512PF... " >&6; }
13546
13547 cat >conftest.$ac_ext <<_ACEOF
13548 /* confdefs.h. */
13549 _ACEOF
13550 cat confdefs.h >>conftest.$ac_ext
13551 cat >>conftest.$ac_ext <<_ACEOF
13552 /* end confdefs.h. */
13553
13554
13555 void main()
13556 {
13557 __asm__ __volatile__("vgatherpf0dps (%rsi,%zmm0,4){%k1}");
13558 }
13559
13560 _ACEOF
13561 rm -f conftest.$ac_objext conftest$ac_exeext
13562 if { (ac_try="$ac_link"
13563 case "(($ac_try" in
13564 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13565 *) ac_try_echo=$ac_try;;
13566 esac
13567 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13568 $as_echo "$ac_try_echo") >&5
13569 (eval "$ac_link") 2>conftest.er1
13570 ac_status=$?
13571 grep -v '^ *+' conftest.er1 >conftest.err
13572 rm -f conftest.er1
13573 cat conftest.err >&5
13574 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13575 (exit $ac_status); } && {
13576 test -z "$ac_c_werror_flag" ||
13577 test ! -s conftest.err
13578 } && test -s conftest$ac_exeext && {
13579 test "$cross_compiling" = yes ||
13580 $as_test_x conftest$ac_exeext
13581 }; then
13582
13583 { $as_echo "$as_me:$LINENO: result: yes" >&5
13584 $as_echo "yes" >&6; }
13585
13586 cat >>confdefs.h <<\_ACEOF
13587 #define HAVE_AVX512PF 1
13588 _ACEOF
13589
13590
13591 else
13592 $as_echo "$as_me: failed program was:" >&5
13593 sed 's/^/| /' conftest.$ac_ext >&5
13594
13595
13596 { $as_echo "$as_me:$LINENO: result: no" >&5
13597 $as_echo "no" >&6; }
13598
13599 fi
13600
13601 rm -rf conftest.dSYM
13602 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13603 conftest$ac_exeext conftest.$ac_ext
13604
13605
13606 { $as_echo "$as_me:$LINENO: checking whether host toolchain supports AVX512ER" >&5
13607 $as_echo_n "checking whether host toolchain supports AVX512ER... " >&6; }
13608
13609 cat >conftest.$ac_ext <<_ACEOF
13610 /* confdefs.h. */
13611 _ACEOF
13612 cat confdefs.h >>conftest.$ac_ext
13613 cat >>conftest.$ac_ext <<_ACEOF
13614 /* end confdefs.h. */
13615
13616
13617 void main()
13618 {
13619 __asm__ __volatile__("vexp2pd %zmm0,%zmm1");
13620 }
13621
13622 _ACEOF
13623 rm -f conftest.$ac_objext conftest$ac_exeext
13624 if { (ac_try="$ac_link"
13625 case "(($ac_try" in
13626 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13627 *) ac_try_echo=$ac_try;;
13628 esac
13629 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13630 $as_echo "$ac_try_echo") >&5
13631 (eval "$ac_link") 2>conftest.er1
13632 ac_status=$?
13633 grep -v '^ *+' conftest.er1 >conftest.err
13634 rm -f conftest.er1
13635 cat conftest.err >&5
13636 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13637 (exit $ac_status); } && {
13638 test -z "$ac_c_werror_flag" ||
13639 test ! -s conftest.err
13640 } && test -s conftest$ac_exeext && {
13641 test "$cross_compiling" = yes ||
13642 $as_test_x conftest$ac_exeext
13643 }; then
13644
13645 { $as_echo "$as_me:$LINENO: result: yes" >&5
13646 $as_echo "yes" >&6; }
13647
13648 cat >>confdefs.h <<\_ACEOF
13649 #define HAVE_AVX512ER 1
13650 _ACEOF
13651
13652
13653 else
13654 $as_echo "$as_me: failed program was:" >&5
13655 sed 's/^/| /' conftest.$ac_ext >&5
13656
13657
13658 { $as_echo "$as_me:$LINENO: result: no" >&5
13659 $as_echo "no" >&6; }
13660
13661 fi
13662
13663 rm -rf conftest.dSYM
13664 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13665 conftest$ac_exeext conftest.$ac_ext
13666
13667
13668 { $as_echo "$as_me:$LINENO: checking whether host toolchain supports AVX512VL" >&5
13669 $as_echo_n "checking whether host toolchain supports AVX512VL... " >&6; }
13670
13671 cat >conftest.$ac_ext <<_ACEOF
13672 /* confdefs.h. */
13673 _ACEOF
13674 cat confdefs.h >>conftest.$ac_ext
13675 cat >>conftest.$ac_ext <<_ACEOF
13676 /* end confdefs.h. */
13677
13678
13679 void main()
13680 {
13681 __asm__ __volatile__("vpabsq %zmm0,%zmm1");
13682 }
13683
13684 _ACEOF
13685 rm -f conftest.$ac_objext conftest$ac_exeext
13686 if { (ac_try="$ac_link"
13687 case "(($ac_try" in
13688 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13689 *) ac_try_echo=$ac_try;;
13690 esac
13691 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13692 $as_echo "$ac_try_echo") >&5
13693 (eval "$ac_link") 2>conftest.er1
13694 ac_status=$?
13695 grep -v '^ *+' conftest.er1 >conftest.err
13696 rm -f conftest.er1
13697 cat conftest.err >&5
13698 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13699 (exit $ac_status); } && {
13700 test -z "$ac_c_werror_flag" ||
13701 test ! -s conftest.err
13702 } && test -s conftest$ac_exeext && {
13703 test "$cross_compiling" = yes ||
13704 $as_test_x conftest$ac_exeext
13705 }; then
13706
13707 { $as_echo "$as_me:$LINENO: result: yes" >&5
13708 $as_echo "yes" >&6; }
13709
13710 cat >>confdefs.h <<\_ACEOF
13711 #define HAVE_AVX512VL 1
13712 _ACEOF
13713
13714
13715 else
13716 $as_echo "$as_me: failed program was:" >&5
13717 sed 's/^/| /' conftest.$ac_ext >&5
13718
13719
13720 { $as_echo "$as_me:$LINENO: result: no" >&5
13721 $as_echo "no" >&6; }
13722
13723 fi
13724
13725 rm -rf conftest.dSYM
13726 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13727 conftest$ac_exeext conftest.$ac_ext
13728
13729 ;;
13730 esac
13731
13732
13733 { $as_echo "$as_me:$LINENO: checking for target asm dir" >&5
13734 $as_echo_n "checking for target asm dir... " >&6; }
13735 TARGET_ARCH=`echo ${target_cpu} | sed -e s/i.86/i386/`
13736
13737 case $TARGET_ARCH in
13738 i386|x86_64)
13739 TARGET_ASM_DIR=asm-${TARGET_ARCH}
13740 ;;
13741 *)
13742 TARGET_ASM_DIR=asm-generic
13743 ;;
13744 esac
13745
13746
13747 if test $TARGET_ASM_DIR = asm-x86_64; then
13748 TARGET_ASM_X86_64_TRUE=
13749 TARGET_ASM_X86_64_FALSE='#'
13750 else
13751 TARGET_ASM_X86_64_TRUE='#'
13752 TARGET_ASM_X86_64_FALSE=
13753 fi
13754
13755 if test $TARGET_ASM_DIR = asm-i386; then
13756 TARGET_ASM_I386_TRUE=
13757 TARGET_ASM_I386_FALSE='#'
13758 else
13759 TARGET_ASM_I386_TRUE='#'
13760 TARGET_ASM_I386_FALSE=
13761 fi
13762
13763 if test $TARGET_ASM_DIR = asm-generic; then
13764 TARGET_ASM_GENERIC_TRUE=
13765 TARGET_ASM_GENERIC_FALSE='#'
13766 else
13767 TARGET_ASM_GENERIC_TRUE='#'
13768 TARGET_ASM_GENERIC_FALSE=
13769 fi
13770
13771 { $as_echo "$as_me:$LINENO: result: $TARGET_ASM_DIR" >&5
13772 $as_echo "$TARGET_ASM_DIR" >&6; }
13773
13774
13775
13776 case "$ZFS_CONFIG" in
13777 kernel)
13778
13779
13780 # Check whether --with-linux was given.
13781 if test "${with_linux+set}" = set; then
13782 withval=$with_linux; kernelsrc="$withval"
13783 fi
13784
13785
13786
13787 # Check whether --with-linux-obj was given.
13788 if test "${with_linux_obj+set}" = set; then
13789 withval=$with_linux_obj; kernelbuild="$withval"
13790 fi
13791
13792
13793 { $as_echo "$as_me:$LINENO: checking kernel source directory" >&5
13794 $as_echo_n "checking kernel source directory... " >&6; }
13795 if test -z "$kernelsrc"; then
13796
13797 if test -e "/lib/modules/$(uname -r)/source"; then
13798
13799 headersdir="/lib/modules/$(uname -r)/source"
13800 sourcelink=$(readlink -f "$headersdir")
13801
13802 elif test -e "/lib/modules/$(uname -r)/build"; then
13803
13804 headersdir="/lib/modules/$(uname -r)/build"
13805 sourcelink=$(readlink -f "$headersdir")
13806
13807 else
13808
13809 sourcelink=$(ls -1d /usr/src/kernels/* \
13810 /usr/src/linux-* \
13811 2>/dev/null | grep -v obj | tail -1)
13812
13813 fi
13814
13815
13816 if test -n "$sourcelink" && test -e ${sourcelink}; then
13817
13818 kernelsrc=`readlink -f ${sourcelink}`
13819
13820 else
13821
13822 kernelsrc="Not found"
13823
13824 fi
13825
13826
13827 else
13828
13829 if test "$kernelsrc" = "NONE"; then
13830
13831 kernsrcver=NONE
13832
13833 fi
13834
13835 withlinux=yes
13836
13837 fi
13838
13839
13840 { $as_echo "$as_me:$LINENO: result: $kernelsrc" >&5
13841 $as_echo "$kernelsrc" >&6; }
13842 if test ! -d "$kernelsrc"; then
13843
13844 { { $as_echo "$as_me:$LINENO: error:
13845 *** Please make sure the kernel devel package for your distribution
13846 *** is installed and then try again. If that fails, you can specify the
13847 *** location of the kernel source with the '--with-linux=PATH' option." >&5
13848 $as_echo "$as_me: error:
13849 *** Please make sure the kernel devel package for your distribution
13850 *** is installed and then try again. If that fails, you can specify the
13851 *** location of the kernel source with the '--with-linux=PATH' option." >&2;}
13852 { (exit 1); exit 1; }; }
13853
13854 fi
13855
13856
13857 { $as_echo "$as_me:$LINENO: checking kernel build directory" >&5
13858 $as_echo_n "checking kernel build directory... " >&6; }
13859 if test -z "$kernelbuild"; then
13860
13861 if test x$withlinux != xyes -a -e "/lib/modules/$(uname -r)/build"; then
13862
13863 kernelbuild=`readlink -f /lib/modules/$(uname -r)/build`
13864
13865 elif test -d ${kernelsrc}-obj/${target_cpu}/${target_cpu}; then
13866
13867 kernelbuild=${kernelsrc}-obj/${target_cpu}/${target_cpu}
13868
13869 elif test -d ${kernelsrc}-obj/${target_cpu}/default; then
13870
13871 kernelbuild=${kernelsrc}-obj/${target_cpu}/default
13872
13873 elif test -d `dirname ${kernelsrc}`/build-${target_cpu}; then
13874
13875 kernelbuild=`dirname ${kernelsrc}`/build-${target_cpu}
13876
13877 else
13878
13879 kernelbuild=${kernelsrc}
13880
13881 fi
13882
13883
13884 fi
13885
13886 { $as_echo "$as_me:$LINENO: result: $kernelbuild" >&5
13887 $as_echo "$kernelbuild" >&6; }
13888
13889 { $as_echo "$as_me:$LINENO: checking kernel source version" >&5
13890 $as_echo_n "checking kernel source version... " >&6; }
13891 utsrelease1=$kernelbuild/include/linux/version.h
13892 utsrelease2=$kernelbuild/include/linux/utsrelease.h
13893 utsrelease3=$kernelbuild/include/generated/utsrelease.h
13894 if test -r $utsrelease1 && fgrep -q UTS_RELEASE $utsrelease1; then
13895
13896 utsrelease=linux/version.h
13897
13898 elif test -r $utsrelease2 && fgrep -q UTS_RELEASE $utsrelease2; then
13899
13900 utsrelease=linux/utsrelease.h
13901
13902 elif test -r $utsrelease3 && fgrep -q UTS_RELEASE $utsrelease3; then
13903
13904 utsrelease=generated/utsrelease.h
13905
13906 fi
13907
13908
13909 if test "$utsrelease"; then
13910
13911 kernsrcver=`(echo "#include <$utsrelease>";
13912 echo "kernsrcver=UTS_RELEASE") |
13913 cpp -I $kernelbuild/include |
13914 grep "^kernsrcver=" | cut -d \" -f 2`
13915
13916 if test -z "$kernsrcver"; then
13917
13918 { $as_echo "$as_me:$LINENO: result: Not found" >&5
13919 $as_echo "Not found" >&6; }
13920 { { $as_echo "$as_me:$LINENO: error: *** Cannot determine kernel version." >&5
13921 $as_echo "$as_me: error: *** Cannot determine kernel version." >&2;}
13922 { (exit 1); exit 1; }; }
13923
13924 fi
13925
13926
13927 else
13928
13929 { $as_echo "$as_me:$LINENO: result: Not found" >&5
13930 $as_echo "Not found" >&6; }
13931 if test "x$enable_linux_builtin" != xyes; then
13932 { { $as_echo "$as_me:$LINENO: error: *** Cannot find UTS_RELEASE definition." >&5
13933 $as_echo "$as_me: error: *** Cannot find UTS_RELEASE definition." >&2;}
13934 { (exit 1); exit 1; }; }
13935 else
13936 { { $as_echo "$as_me:$LINENO: error:
13937 *** Cannot find UTS_RELEASE definition.
13938 *** Please run 'make prepare' inside the kernel source tree." >&5
13939 $as_echo "$as_me: error:
13940 *** Cannot find UTS_RELEASE definition.
13941 *** Please run 'make prepare' inside the kernel source tree." >&2;}
13942 { (exit 1); exit 1; }; }
13943 fi
13944
13945 fi
13946
13947
13948 { $as_echo "$as_me:$LINENO: result: $kernsrcver" >&5
13949 $as_echo "$kernsrcver" >&6; }
13950
13951 LINUX=${kernelsrc}
13952 LINUX_OBJ=${kernelbuild}
13953 LINUX_VERSION=${kernsrcver}
13954
13955
13956
13957
13958
13959
13960 modpost=$LINUX/scripts/Makefile.modpost
13961 { $as_echo "$as_me:$LINENO: checking kernel file name for module symbols" >&5
13962 $as_echo_n "checking kernel file name for module symbols... " >&6; }
13963 if test "x$enable_linux_builtin" != xyes -a -f "$modpost"; then
13964
13965 if grep -q Modules.symvers $modpost; then
13966
13967 LINUX_SYMBOLS=Modules.symvers
13968
13969 else
13970
13971 LINUX_SYMBOLS=Module.symvers
13972
13973 fi
13974
13975
13976 if test ! -f "$LINUX_OBJ/$LINUX_SYMBOLS"; then
13977
13978 { { $as_echo "$as_me:$LINENO: error:
13979 *** Please make sure the kernel devel package for your distribution
13980 *** is installed. If you are building with a custom kernel, make sure the
13981 *** kernel is configured, built, and the '--with-linux=PATH' configure
13982 *** option refers to the location of the kernel source." >&5
13983 $as_echo "$as_me: error:
13984 *** Please make sure the kernel devel package for your distribution
13985 *** is installed. If you are building with a custom kernel, make sure the
13986 *** kernel is configured, built, and the '--with-linux=PATH' configure
13987 *** option refers to the location of the kernel source." >&2;}
13988 { (exit 1); exit 1; }; }
13989
13990 fi
13991
13992
13993 else
13994
13995 LINUX_SYMBOLS=NONE
13996
13997 fi
13998
13999 { $as_echo "$as_me:$LINENO: result: $LINUX_SYMBOLS" >&5
14000 $as_echo "$LINUX_SYMBOLS" >&6; }
14001
14002
14003
14004
14005
14006 # Check whether --with-spl was given.
14007 if test "${with_spl+set}" = set; then
14008 withval=$with_spl; if test "$withval" = "yes"; then
14009 { { $as_echo "$as_me:$LINENO: error: --with-spl=PATH requires a PATH" >&5
14010 $as_echo "$as_me: error: --with-spl=PATH requires a PATH" >&2;}
14011 { (exit 1); exit 1; }; }
14012 else
14013 splsrc="$withval"
14014 fi
14015
14016 fi
14017
14018
14019
14020 # Check whether --with-spl-obj was given.
14021 if test "${with_spl_obj+set}" = set; then
14022 withval=$with_spl_obj; splbuild="$withval"
14023 fi
14024
14025
14026
14027 # Check whether --with-spl-timeout was given.
14028 if test "${with_spl_timeout+set}" = set; then
14029 withval=$with_spl_timeout; timeout="$withval"
14030 else
14031 timeout=0
14032 fi
14033
14034
14035 splsrc0="/var/lib/dkms/spl/${VERSION}/build"
14036 splsrc1="/usr/local/src/spl-${VERSION}/${LINUX_VERSION}"
14037 splsrc2="/usr/local/src/spl-${VERSION}"
14038 splsrc3="/usr/src/spl-${VERSION}/${LINUX_VERSION}"
14039 splsrc4="/usr/src/spl-${VERSION}"
14040 splsrc5="../spl/"
14041 splsrc6="$LINUX"
14042
14043 { $as_echo "$as_me:$LINENO: checking spl source directory" >&5
14044 $as_echo_n "checking spl source directory... " >&6; }
14045 if test -z "${splsrc}"; then
14046
14047 all_spl_sources="
14048 ${splsrc0}
14049 ${splsrc1}
14050 ${splsrc2}
14051 ${splsrc3}
14052 ${splsrc4}
14053 ${splsrc5}
14054 ${splsrc6}",
14055 if test -e "${splsrc0}/spl.release.in"; then
14056
14057 splsrc=${splsrc0}
14058
14059 elif test -e "${splsrc1}/spl.release.in"; then
14060
14061 splsrc=${splsrc1}
14062
14063 elif test -e "${splsrc2}/spl.release.in"; then
14064
14065 splsrc=${splsrc2}
14066
14067 elif test -e "${splsrc3}/spl.release.in"; then
14068
14069 splsrc=$(readlink -f "${splsrc3}")
14070
14071 elif test -e "${splsrc4}/spl.release.in" ; then
14072
14073 splsrc=${splsrc4}
14074
14075 elif test -e "${splsrc5}/spl.release.in"; then
14076
14077 splsrc=$(readlink -f "${splsrc5}")
14078
14079 elif test -e "${splsrc6}/spl.release.in" ; then
14080
14081 splsrc=${splsrc6}
14082
14083 else
14084
14085 splsrc="Not found"
14086
14087 fi
14088
14089
14090 else
14091
14092 all_spl_sources="$withval",
14093 if test "$splsrc" = "NONE"; then
14094
14095 splbuild=NONE
14096 splsrcver=NONE
14097
14098 fi
14099
14100
14101 fi
14102
14103
14104 { $as_echo "$as_me:$LINENO: result: $splsrc" >&5
14105 $as_echo "$splsrc" >&6; }
14106 if test ! -e "$splsrc/spl.release.in"; then
14107
14108 { { $as_echo "$as_me:$LINENO: error:
14109 *** Please make sure the kmod spl devel package for your distribution
14110 *** is installed then try again. If that fails you can specify the
14111 *** location of the spl source with the '--with-spl=PATH' option.
14112 *** The spl version must match the version of ZFS you are building,
14113 *** ${VERSION}. Failed to find spl.release.in in the following:
14114 $all_spl_sources" >&5
14115 $as_echo "$as_me: error:
14116 *** Please make sure the kmod spl devel package for your distribution
14117 *** is installed then try again. If that fails you can specify the
14118 *** location of the spl source with the '--with-spl=PATH' option.
14119 *** The spl version must match the version of ZFS you are building,
14120 *** ${VERSION}. Failed to find spl.release.in in the following:
14121 $all_spl_sources" >&2;}
14122 { (exit 1); exit 1; }; }
14123
14124 fi
14125
14126
14127 { $as_echo "$as_me:$LINENO: checking spl build directory" >&5
14128 $as_echo_n "checking spl build directory... " >&6; }
14129
14130 all_spl_config_locs="${splsrc}/${LINUX_VERSION}
14131 ${splsrc}"
14132
14133 while true; do
14134 if test -z "$splbuild"; then
14135
14136 if test -e "${splsrc}/${LINUX_VERSION}/spl_config.h" ; then
14137
14138 splbuild="${splsrc}/${LINUX_VERSION}"
14139
14140 elif test -e "${splsrc}/spl_config.h" ; then
14141
14142 splbuild="${splsrc}"
14143
14144 elif find -L "${splsrc}" -name spl_config.h 2> /dev/null | grep -wq spl_config.h ; then
14145
14146 splbuild=$(find -L "${splsrc}" -name spl_config.h | sed 's,/spl_config.h,,')
14147
14148 else
14149
14150 splbuild="Not found"
14151
14152 fi
14153
14154
14155 fi
14156
14157 if test -e "$splbuild/spl_config.h" -o $timeout -le 0; then
14158
14159 break;
14160
14161 else
14162
14163 sleep 1
14164 timeout=$((timeout-1))
14165
14166 fi
14167
14168 done
14169
14170 { $as_echo "$as_me:$LINENO: result: $splbuild" >&5
14171 $as_echo "$splbuild" >&6; }
14172 if ! test -e "$splbuild/spl_config.h"; then
14173
14174 { { $as_echo "$as_me:$LINENO: error:
14175 *** Please make sure the kmod spl devel <kernel> package for your
14176 *** distribution is installed then try again. If that fails you
14177 *** can specify the location of the spl objects with the
14178 *** '--with-spl-obj=PATH' option. Failed to find spl_config.h in
14179 *** any of the following:
14180 $all_spl_config_locs" >&5
14181 $as_echo "$as_me: error:
14182 *** Please make sure the kmod spl devel <kernel> package for your
14183 *** distribution is installed then try again. If that fails you
14184 *** can specify the location of the spl objects with the
14185 *** '--with-spl-obj=PATH' option. Failed to find spl_config.h in
14186 *** any of the following:
14187 $all_spl_config_locs" >&2;}
14188 { (exit 1); exit 1; }; }
14189
14190 fi
14191
14192
14193 { $as_echo "$as_me:$LINENO: checking spl source version" >&5
14194 $as_echo_n "checking spl source version... " >&6; }
14195 if test -r $splbuild/spl_config.h &&
14196 fgrep -q SPL_META_VERSION $splbuild/spl_config.h; then
14197
14198
14199 splsrcver=`(echo "#include <spl_config.h>";
14200 echo "splsrcver=SPL_META_VERSION-SPL_META_RELEASE") |
14201 cpp -I $splbuild |
14202 grep "^splsrcver=" | tr -d \" | cut -d= -f2`
14203
14204 fi
14205
14206
14207 if test -z "$splsrcver"; then
14208
14209 { $as_echo "$as_me:$LINENO: result: Not found" >&5
14210 $as_echo "Not found" >&6; }
14211 { { $as_echo "$as_me:$LINENO: error:
14212 *** Cannot determine the version of the spl source.
14213 *** Please prepare the spl source before running this script" >&5
14214 $as_echo "$as_me: error:
14215 *** Cannot determine the version of the spl source.
14216 *** Please prepare the spl source before running this script" >&2;}
14217 { (exit 1); exit 1; }; }
14218
14219 fi
14220
14221
14222 { $as_echo "$as_me:$LINENO: result: $splsrcver" >&5
14223 $as_echo "$splsrcver" >&6; }
14224
14225 SPL=${splsrc}
14226 SPL_OBJ=${splbuild}
14227 SPL_VERSION=${splsrcver}
14228
14229
14230
14231
14232
14233 { $as_echo "$as_me:$LINENO: checking spl file name for module symbols" >&5
14234 $as_echo_n "checking spl file name for module symbols... " >&6; }
14235 SPL_SYMBOLS=NONE
14236
14237 while true; do
14238 if test -r $SPL_OBJ/Module.symvers; then
14239
14240 SPL_SYMBOLS=Module.symvers
14241
14242 elif test -r $SPL_OBJ/Modules.symvers; then
14243
14244 SPL_SYMBOLS=Modules.symvers
14245
14246 elif test -r $SPL_OBJ/module/Module.symvers; then
14247
14248 SPL_SYMBOLS=Module.symvers
14249
14250 elif test -r $SPL_OBJ/module/Modules.symvers; then
14251
14252 SPL_SYMBOLS=Modules.symvers
14253
14254 fi
14255
14256
14257 if test $SPL_SYMBOLS != NONE -o $timeout -le 0; then
14258
14259 break;
14260
14261 else
14262
14263 sleep 1
14264 timeout=$((timeout-1))
14265
14266 fi
14267
14268 done
14269
14270 if test "$SPL_SYMBOLS" = NONE; then
14271
14272 SPL_SYMBOLS=$LINUX_SYMBOLS
14273
14274 fi
14275
14276
14277 { $as_echo "$as_me:$LINENO: result: $SPL_SYMBOLS" >&5
14278 $as_echo "$SPL_SYMBOLS" >&6; }
14279
14280
14281
14282
14283 # Check whether --with-qat was given.
14284 if test "${with_qat+set}" = set; then
14285 withval=$with_qat; if test "$withval" = "yes"; then
14286 { { $as_echo "$as_me:$LINENO: error: --with-qat=PATH requires a PATH" >&5
14287 $as_echo "$as_me: error: --with-qat=PATH requires a PATH" >&2;}
14288 { (exit 1); exit 1; }; }
14289 else
14290 qatsrc="$withval"
14291 fi
14292
14293 fi
14294
14295
14296
14297 # Check whether --with-qat-obj was given.
14298 if test "${with_qat_obj+set}" = set; then
14299 withval=$with_qat_obj; qatbuild="$withval"
14300 fi
14301
14302
14303 if test ! -z "${qatsrc}"; then
14304
14305 { $as_echo "$as_me:$LINENO: checking qat source directory" >&5
14306 $as_echo_n "checking qat source directory... " >&6; }
14307 { $as_echo "$as_me:$LINENO: result: $qatsrc" >&5
14308 $as_echo "$qatsrc" >&6; }
14309 QAT_SRC="${qatsrc}/quickassist"
14310 if test ! -e "$QAT_SRC/include/cpa.h"; then
14311
14312 { { $as_echo "$as_me:$LINENO: error:
14313 *** Please make sure the qat driver package is installed
14314 *** and specify the location of the qat source with the
14315 *** '--with-qat=PATH' option then try again. Failed to
14316 *** find cpa.h in:
14317 ${QAT_SRC}/include" >&5
14318 $as_echo "$as_me: error:
14319 *** Please make sure the qat driver package is installed
14320 *** and specify the location of the qat source with the
14321 *** '--with-qat=PATH' option then try again. Failed to
14322 *** find cpa.h in:
14323 ${QAT_SRC}/include" >&2;}
14324 { (exit 1); exit 1; }; }
14325
14326 fi
14327
14328
14329 fi
14330
14331
14332 if test ! -z "${qatsrc}"; then
14333
14334 { $as_echo "$as_me:$LINENO: checking qat build directory" >&5
14335 $as_echo_n "checking qat build directory... " >&6; }
14336 if test -z "$qatbuild"; then
14337
14338 qatbuild="${qatsrc}/build"
14339
14340 fi
14341
14342
14343 { $as_echo "$as_me:$LINENO: result: $qatbuild" >&5
14344 $as_echo "$qatbuild" >&6; }
14345 QAT_OBJ=${qatbuild}
14346 if ! test -e "$QAT_OBJ/icp_qa_al.ko" && ! test -e "$QAT_OBJ/qat_api.ko"; then
14347
14348 { { $as_echo "$as_me:$LINENO: error:
14349 *** Please make sure the qat driver is installed then try again.
14350 *** Failed to find icp_qa_al.ko or qat_api.ko in:
14351 $QAT_OBJ" >&5
14352 $as_echo "$as_me: error:
14353 *** Please make sure the qat driver is installed then try again.
14354 *** Failed to find icp_qa_al.ko or qat_api.ko in:
14355 $QAT_OBJ" >&2;}
14356 { (exit 1); exit 1; }; }
14357
14358 fi
14359
14360
14361
14362
14363
14364
14365 cat >>confdefs.h <<\_ACEOF
14366 #define HAVE_QAT 1
14367 _ACEOF
14368
14369
14370 fi
14371
14372
14373 if test ! -z "${qatsrc}"; then
14374
14375 { $as_echo "$as_me:$LINENO: checking qat file for module symbols" >&5
14376 $as_echo_n "checking qat file for module symbols... " >&6; }
14377 QAT_SYMBOLS=$QAT_SRC/lookaside/access_layer/src/Module.symvers
14378
14379 if test -r $QAT_SYMBOLS; then
14380
14381 { $as_echo "$as_me:$LINENO: result: $QAT_SYMBOLS" >&5
14382 $as_echo "$QAT_SYMBOLS" >&6; }
14383
14384
14385 else
14386
14387 { { $as_echo "$as_me:$LINENO: error:
14388 *** Please make sure the qat driver is installed then try again.
14389 *** Failed to find Module.symvers in:
14390 $QAT_SYMBOLS" >&5
14391 $as_echo "$as_me: error:
14392 *** Please make sure the qat driver is installed then try again.
14393 *** Failed to find Module.symvers in:
14394 $QAT_SYMBOLS" >&2;}
14395 { (exit 1); exit 1; }; }
14396
14397 fi
14398
14399
14400 fi
14401
14402
14403
14404 { $as_echo "$as_me:$LINENO: checking whether modules can be built" >&5
14405 $as_echo_n "checking whether modules can be built... " >&6; }
14406
14407
14408 cat confdefs.h - <<_ACEOF >conftest.c
14409 /* confdefs.h. */
14410 _ACEOF
14411 cat confdefs.h >>conftest.$ac_ext
14412 cat >>conftest.$ac_ext <<_ACEOF
14413 /* end confdefs.h. */
14414
14415
14416 int
14417 main (void)
14418 {
14419
14420 ;
14421 return 0;
14422 }
14423
14424 _ACEOF
14425
14426
14427
14428 cat - <<_ACEOF >conftest.h
14429
14430 _ACEOF
14431
14432
14433 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
14434 echo "obj-m := conftest.o" >build/Makefile
14435 modpost_flag=''
14436 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
14437 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
14438 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14439 (eval $ac_try) 2>&5
14440 ac_status=$?
14441 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14442 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
14443 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14444 (eval $ac_try) 2>&5
14445 ac_status=$?
14446 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14447 (exit $ac_status); }; }; then
14448
14449 { $as_echo "$as_me:$LINENO: result: yes" >&5
14450 $as_echo "yes" >&6; }
14451
14452 else
14453 $as_echo "$as_me: failed program was:" >&5
14454 sed 's/^/| /' conftest.$ac_ext >&5
14455
14456 { $as_echo "$as_me:$LINENO: result: no" >&5
14457 $as_echo "no" >&6; }
14458 if test "x$enable_linux_builtin" != xyes; then
14459 { { $as_echo "$as_me:$LINENO: error: *** Unable to build an empty module." >&5
14460 $as_echo "$as_me: error: *** Unable to build an empty module." >&2;}
14461 { (exit 1); exit 1; }; }
14462 else
14463 { { $as_echo "$as_me:$LINENO: error:
14464 *** Unable to build an empty module.
14465 *** Please run 'make scripts' inside the kernel source tree." >&5
14466 $as_echo "$as_me: error:
14467 *** Unable to build an empty module.
14468 *** Please run 'make scripts' inside the kernel source tree." >&2;}
14469 { (exit 1); exit 1; }; }
14470 fi
14471
14472
14473
14474 fi
14475
14476 rm -Rf build
14477
14478
14479
14480
14481 { $as_echo "$as_me:$LINENO: checking for compile-time stack validation (objtool)" >&5
14482 $as_echo_n "checking for compile-time stack validation (objtool)... " >&6; }
14483
14484
14485 cat confdefs.h - <<_ACEOF >conftest.c
14486 /* confdefs.h. */
14487 _ACEOF
14488 cat confdefs.h >>conftest.$ac_ext
14489 cat >>conftest.$ac_ext <<_ACEOF
14490 /* end confdefs.h. */
14491
14492
14493 #undef __ASSEMBLY__
14494 #include <asm/frame.h>
14495
14496 int
14497 main (void)
14498 {
14499
14500 #if !defined(FRAME_BEGIN)
14501 CTASSERT(1);
14502 #endif
14503
14504 ;
14505 return 0;
14506 }
14507
14508 _ACEOF
14509
14510
14511
14512 cat - <<_ACEOF >conftest.h
14513
14514 _ACEOF
14515
14516
14517 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
14518 echo "obj-m := conftest.o" >build/Makefile
14519 modpost_flag=''
14520 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
14521 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
14522 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14523 (eval $ac_try) 2>&5
14524 ac_status=$?
14525 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14526 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
14527 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14528 (eval $ac_try) 2>&5
14529 ac_status=$?
14530 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14531 (exit $ac_status); }; }; then
14532
14533 { $as_echo "$as_me:$LINENO: result: yes" >&5
14534 $as_echo "yes" >&6; }
14535
14536 cat >>confdefs.h <<\_ACEOF
14537 #define HAVE_KERNEL_OBJTOOL 1
14538 _ACEOF
14539
14540
14541 else
14542 $as_echo "$as_me: failed program was:" >&5
14543 sed 's/^/| /' conftest.$ac_ext >&5
14544
14545 { $as_echo "$as_me:$LINENO: result: no" >&5
14546 $as_echo "no" >&6; }
14547
14548
14549
14550 fi
14551
14552 rm -Rf build
14553
14554
14555
14556
14557 if test "x$cross_compiling" != xyes; then
14558
14559 if test "$cross_compiling" = yes; then
14560 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
14561 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14562 { { $as_echo "$as_me:$LINENO: error: cannot run test program while cross compiling
14563 See \`config.log' for more details." >&5
14564 $as_echo "$as_me: error: cannot run test program while cross compiling
14565 See \`config.log' for more details." >&2;}
14566 { (exit 1); exit 1; }; }; }
14567 else
14568 cat >conftest.$ac_ext <<_ACEOF
14569
14570 /* confdefs.h. */
14571 _ACEOF
14572 cat confdefs.h >>conftest.$ac_ext
14573 cat >>conftest.$ac_ext <<_ACEOF
14574 /* end confdefs.h. */
14575
14576 #include "$LINUX/include/linux/license.h"
14577
14578 int
14579 main ()
14580 {
14581
14582 return !license_is_gpl_compatible("$ZFS_META_LICENSE");
14583
14584 ;
14585 return 0;
14586 }
14587
14588 _ACEOF
14589 rm -f conftest$ac_exeext
14590 if { (ac_try="$ac_link"
14591 case "(($ac_try" in
14592 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14593 *) ac_try_echo=$ac_try;;
14594 esac
14595 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14596 $as_echo "$ac_try_echo") >&5
14597 (eval "$ac_link") 2>&5
14598 ac_status=$?
14599 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14600 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14601 { (case "(($ac_try" in
14602 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14603 *) ac_try_echo=$ac_try;;
14604 esac
14605 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14606 $as_echo "$ac_try_echo") >&5
14607 (eval "$ac_try") 2>&5
14608 ac_status=$?
14609 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14610 (exit $ac_status); }; }; then
14611
14612
14613 cat >>confdefs.h <<\_ACEOF
14614 #define ZFS_IS_GPL_COMPATIBLE 1
14615 _ACEOF
14616
14617
14618 else
14619 $as_echo "$as_me: program exited with status $ac_status" >&5
14620 $as_echo "$as_me: failed program was:" >&5
14621 sed 's/^/| /' conftest.$ac_ext >&5
14622
14623 ( exit $ac_status )
14624
14625
14626 fi
14627 rm -rf conftest.dSYM
14628 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14629 fi
14630
14631
14632
14633 fi
14634
14635
14636
14637 { $as_echo "$as_me:$LINENO: checking whether kernel was built with 16K or larger stacks" >&5
14638 $as_echo_n "checking whether kernel was built with 16K or larger stacks... " >&6; }
14639
14640
14641 cat confdefs.h - <<_ACEOF >conftest.c
14642 /* confdefs.h. */
14643 _ACEOF
14644 cat confdefs.h >>conftest.$ac_ext
14645 cat >>conftest.$ac_ext <<_ACEOF
14646 /* end confdefs.h. */
14647
14648
14649 #include <linux/module.h>
14650
14651 int
14652 main (void)
14653 {
14654
14655 #if (THREAD_SIZE < 16384)
14656 #error "THREAD_SIZE is less than 16K"
14657 #endif
14658
14659 ;
14660 return 0;
14661 }
14662
14663 _ACEOF
14664
14665
14666
14667 cat - <<_ACEOF >conftest.h
14668
14669 _ACEOF
14670
14671
14672 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
14673 echo "obj-m := conftest.o" >build/Makefile
14674 modpost_flag=''
14675 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
14676 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
14677 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14678 (eval $ac_try) 2>&5
14679 ac_status=$?
14680 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14681 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
14682 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14683 (eval $ac_try) 2>&5
14684 ac_status=$?
14685 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14686 (exit $ac_status); }; }; then
14687
14688 { $as_echo "$as_me:$LINENO: result: yes" >&5
14689 $as_echo "yes" >&6; }
14690
14691 cat >>confdefs.h <<\_ACEOF
14692 #define HAVE_LARGE_STACKS 1
14693 _ACEOF
14694
14695
14696 else
14697 $as_echo "$as_me: failed program was:" >&5
14698 sed 's/^/| /' conftest.$ac_ext >&5
14699
14700 { $as_echo "$as_me:$LINENO: result: no" >&5
14701 $as_echo "no" >&6; }
14702
14703
14704
14705 fi
14706
14707 rm -Rf build
14708
14709
14710
14711
14712
14713 { $as_echo "$as_me:$LINENO: checking whether kernel was built with CONFIG_DEBUG_LOCK_ALLOC" >&5
14714 $as_echo_n "checking whether kernel was built with CONFIG_DEBUG_LOCK_ALLOC... " >&6; }
14715
14716
14717 cat confdefs.h - <<_ACEOF >conftest.c
14718 /* confdefs.h. */
14719 _ACEOF
14720 cat confdefs.h >>conftest.$ac_ext
14721 cat >>conftest.$ac_ext <<_ACEOF
14722 /* end confdefs.h. */
14723
14724
14725 #include <linux/module.h>
14726
14727 int
14728 main (void)
14729 {
14730
14731 #ifndef CONFIG_DEBUG_LOCK_ALLOC
14732 #error CONFIG_DEBUG_LOCK_ALLOC not #defined
14733 #endif
14734
14735 ;
14736 return 0;
14737 }
14738
14739 _ACEOF
14740
14741
14742
14743 cat - <<_ACEOF >conftest.h
14744
14745 _ACEOF
14746
14747
14748 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
14749 echo "obj-m := conftest.o" >build/Makefile
14750 modpost_flag=''
14751 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
14752 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
14753 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14754 (eval $ac_try) 2>&5
14755 ac_status=$?
14756 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14757 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
14758 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14759 (eval $ac_try) 2>&5
14760 ac_status=$?
14761 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14762 (exit $ac_status); }; }; then
14763
14764 { $as_echo "$as_me:$LINENO: result: yes" >&5
14765 $as_echo "yes" >&6; }
14766
14767 { $as_echo "$as_me:$LINENO: checking whether mutex_lock() is GPL-only" >&5
14768 $as_echo_n "checking whether mutex_lock() is GPL-only... " >&6; }
14769 tmp_flags="$EXTRA_KCFLAGS"
14770
14771
14772 cat confdefs.h - <<_ACEOF >conftest.c
14773 /* confdefs.h. */
14774 _ACEOF
14775 cat confdefs.h >>conftest.$ac_ext
14776 cat >>conftest.$ac_ext <<_ACEOF
14777 /* end confdefs.h. */
14778
14779
14780 #include <linux/module.h>
14781 #include <linux/mutex.h>
14782
14783 MODULE_LICENSE("$ZFS_META_LICENSE");
14784
14785 int
14786 main (void)
14787 {
14788
14789 struct mutex lock;
14790
14791 mutex_init(&lock);
14792 mutex_lock(&lock);
14793 mutex_unlock(&lock);
14794
14795 ;
14796 return 0;
14797 }
14798
14799 _ACEOF
14800
14801
14802
14803 cat - <<_ACEOF >conftest.h
14804
14805 _ACEOF
14806
14807
14808 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
14809 echo "obj-m := conftest.o" >build/Makefile
14810 modpost_flag=''
14811 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
14812 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
14813 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14814 (eval $ac_try) 2>&5
14815 ac_status=$?
14816 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14817 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
14818 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14819 (eval $ac_try) 2>&5
14820 ac_status=$?
14821 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14822 (exit $ac_status); }; }; then
14823
14824 { $as_echo "$as_me:$LINENO: result: no" >&5
14825 $as_echo "no" >&6; }
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:$LINENO: result: yes" >&5
14832 $as_echo "yes" >&6; }
14833 { { $as_echo "$as_me:$LINENO: error:
14834 *** Kernel built with CONFIG_DEBUG_LOCK_ALLOC which is incompatible
14835 *** with the CDDL license and will prevent the module linking stage
14836 *** from succeeding. You must rebuild your kernel without this
14837 *** option enabled." >&5
14838 $as_echo "$as_me: error:
14839 *** Kernel built with CONFIG_DEBUG_LOCK_ALLOC which is incompatible
14840 *** with the CDDL license and will prevent the module linking stage
14841 *** from succeeding. You must rebuild your kernel without this
14842 *** option enabled." >&2;}
14843 { (exit 1); exit 1; }; }
14844
14845
14846
14847 fi
14848
14849 rm -Rf build
14850
14851
14852 EXTRA_KCFLAGS="$tmp_flags"
14853
14854
14855 else
14856 $as_echo "$as_me: failed program was:" >&5
14857 sed 's/^/| /' conftest.$ac_ext >&5
14858
14859 { $as_echo "$as_me:$LINENO: result: no" >&5
14860 $as_echo "no" >&6; }
14861
14862
14863
14864
14865 fi
14866
14867 rm -Rf build
14868
14869
14870
14871
14872
14873
14874 tmp_flags="$EXTRA_KCFLAGS"
14875 EXTRA_KCFLAGS="-I\$(src)"
14876
14877 { $as_echo "$as_me:$LINENO: checking whether DECLARE_EVENT_CLASS() is available" >&5
14878 $as_echo_n "checking whether DECLARE_EVENT_CLASS() is available... " >&6; }
14879
14880
14881 cat confdefs.h - <<_ACEOF >conftest.c
14882 /* confdefs.h. */
14883 _ACEOF
14884 cat confdefs.h >>conftest.$ac_ext
14885 cat >>conftest.$ac_ext <<_ACEOF
14886 /* end confdefs.h. */
14887
14888
14889 #include <linux/module.h>
14890 MODULE_LICENSE(ZFS_META_LICENSE);
14891
14892 #define CREATE_TRACE_POINTS
14893 #include "conftest.h"
14894
14895 int
14896 main (void)
14897 {
14898
14899 trace_zfs_autoconf_event_one(1UL);
14900 trace_zfs_autoconf_event_two(2UL);
14901
14902 ;
14903 return 0;
14904 }
14905
14906 _ACEOF
14907
14908
14909
14910 cat - <<_ACEOF >conftest.h
14911
14912 #if !defined(_CONFTEST_H) || defined(TRACE_HEADER_MULTI_READ)
14913 #define _CONFTEST_H
14914
14915 #undef TRACE_SYSTEM
14916 #define TRACE_SYSTEM zfs
14917 #include <linux/tracepoint.h>
14918
14919 DECLARE_EVENT_CLASS(zfs_autoconf_event_class,
14920 TP_PROTO(unsigned long i),
14921 TP_ARGS(i),
14922 TP_STRUCT__entry(
14923 __field(unsigned long, i)
14924 ),
14925 TP_fast_assign(
14926 __entry->i = i;
14927 ),
14928 TP_printk("i = %lu", __entry->i)
14929 );
14930
14931 #define DEFINE_AUTOCONF_EVENT(name) \
14932 DEFINE_EVENT(zfs_autoconf_event_class, name, \
14933 TP_PROTO(unsigned long i), \
14934 TP_ARGS(i))
14935 DEFINE_AUTOCONF_EVENT(zfs_autoconf_event_one);
14936 DEFINE_AUTOCONF_EVENT(zfs_autoconf_event_two);
14937
14938 #endif /* _CONFTEST_H */
14939
14940 #undef TRACE_INCLUDE_PATH
14941 #define TRACE_INCLUDE_PATH .
14942 #define TRACE_INCLUDE_FILE conftest
14943 #include <trace/define_trace.h>
14944
14945 _ACEOF
14946
14947
14948 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
14949 echo "obj-m := conftest.o" >build/Makefile
14950 modpost_flag=''
14951 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
14952 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
14953 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14954 (eval $ac_try) 2>&5
14955 ac_status=$?
14956 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14957 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
14958 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14959 (eval $ac_try) 2>&5
14960 ac_status=$?
14961 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14962 (exit $ac_status); }; }; then
14963
14964 { $as_echo "$as_me:$LINENO: result: yes" >&5
14965 $as_echo "yes" >&6; }
14966
14967 cat >>confdefs.h <<\_ACEOF
14968 #define HAVE_DECLARE_EVENT_CLASS 1
14969 _ACEOF
14970
14971
14972 else
14973 $as_echo "$as_me: failed program was:" >&5
14974 sed 's/^/| /' conftest.$ac_ext >&5
14975
14976 { $as_echo "$as_me:$LINENO: result: no" >&5
14977 $as_echo "no" >&6; }
14978
14979
14980
14981 fi
14982
14983 rm -Rf build
14984
14985
14986 EXTRA_KCFLAGS="$tmp_flags"
14987
14988
14989 { $as_echo "$as_me:$LINENO: checking whether current->bio_tail exists" >&5
14990 $as_echo_n "checking whether current->bio_tail exists... " >&6; }
14991
14992
14993 cat confdefs.h - <<_ACEOF >conftest.c
14994 /* confdefs.h. */
14995 _ACEOF
14996 cat confdefs.h >>conftest.$ac_ext
14997 cat >>conftest.$ac_ext <<_ACEOF
14998 /* end confdefs.h. */
14999
15000
15001 #include <linux/sched.h>
15002
15003 int
15004 main (void)
15005 {
15006
15007 current->bio_tail = (struct bio **) NULL;
15008
15009 ;
15010 return 0;
15011 }
15012
15013 _ACEOF
15014
15015
15016
15017 cat - <<_ACEOF >conftest.h
15018
15019 _ACEOF
15020
15021
15022 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
15023 echo "obj-m := conftest.o" >build/Makefile
15024 modpost_flag=''
15025 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
15026 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
15027 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15028 (eval $ac_try) 2>&5
15029 ac_status=$?
15030 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15031 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
15032 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15033 (eval $ac_try) 2>&5
15034 ac_status=$?
15035 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15036 (exit $ac_status); }; }; then
15037
15038 { $as_echo "$as_me:$LINENO: result: yes" >&5
15039 $as_echo "yes" >&6; }
15040
15041 cat >>confdefs.h <<\_ACEOF
15042 #define HAVE_CURRENT_BIO_TAIL 1
15043 _ACEOF
15044
15045
15046 else
15047 $as_echo "$as_me: failed program was:" >&5
15048 sed 's/^/| /' conftest.$ac_ext >&5
15049
15050 { $as_echo "$as_me:$LINENO: result: no" >&5
15051 $as_echo "no" >&6; }
15052 { $as_echo "$as_me:$LINENO: checking whether current->bio_list exists" >&5
15053 $as_echo_n "checking whether current->bio_list exists... " >&6; }
15054
15055
15056 cat confdefs.h - <<_ACEOF >conftest.c
15057 /* confdefs.h. */
15058 _ACEOF
15059 cat confdefs.h >>conftest.$ac_ext
15060 cat >>conftest.$ac_ext <<_ACEOF
15061 /* end confdefs.h. */
15062
15063
15064 #include <linux/sched.h>
15065
15066 int
15067 main (void)
15068 {
15069
15070 current->bio_list = (struct bio_list *) NULL;
15071
15072 ;
15073 return 0;
15074 }
15075
15076 _ACEOF
15077
15078
15079
15080 cat - <<_ACEOF >conftest.h
15081
15082 _ACEOF
15083
15084
15085 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
15086 echo "obj-m := conftest.o" >build/Makefile
15087 modpost_flag=''
15088 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
15089 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
15090 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15091 (eval $ac_try) 2>&5
15092 ac_status=$?
15093 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15094 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
15095 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15096 (eval $ac_try) 2>&5
15097 ac_status=$?
15098 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15099 (exit $ac_status); }; }; then
15100
15101 { $as_echo "$as_me:$LINENO: result: yes" >&5
15102 $as_echo "yes" >&6; }
15103
15104 cat >>confdefs.h <<\_ACEOF
15105 #define HAVE_CURRENT_BIO_LIST 1
15106 _ACEOF
15107
15108
15109 else
15110 $as_echo "$as_me: failed program was:" >&5
15111 sed 's/^/| /' conftest.$ac_ext >&5
15112
15113 { { $as_echo "$as_me:$LINENO: error: no - Please file a bug report at
15114 https://github.com/zfsonlinux/zfs/issues/new" >&5
15115 $as_echo "$as_me: error: no - Please file a bug report at
15116 https://github.com/zfsonlinux/zfs/issues/new" >&2;}
15117 { (exit 1); exit 1; }; }
15118
15119
15120
15121 fi
15122
15123 rm -Rf build
15124
15125
15126
15127
15128
15129 fi
15130
15131 rm -Rf build
15132
15133
15134
15135
15136 { $as_echo "$as_me:$LINENO: checking whether super_block->s_user_ns exists" >&5
15137 $as_echo_n "checking whether super_block->s_user_ns exists... " >&6; }
15138
15139
15140 cat confdefs.h - <<_ACEOF >conftest.c
15141 /* confdefs.h. */
15142 _ACEOF
15143 cat confdefs.h >>conftest.$ac_ext
15144 cat >>conftest.$ac_ext <<_ACEOF
15145 /* end confdefs.h. */
15146
15147
15148 #include <linux/fs.h>
15149 #include <linux/user_namespace.h>
15150
15151 int
15152 main (void)
15153 {
15154
15155 struct super_block super;
15156 super.s_user_ns = (struct user_namespace *)NULL;
15157
15158 ;
15159 return 0;
15160 }
15161
15162 _ACEOF
15163
15164
15165
15166 cat - <<_ACEOF >conftest.h
15167
15168 _ACEOF
15169
15170
15171 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
15172 echo "obj-m := conftest.o" >build/Makefile
15173 modpost_flag=''
15174 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
15175 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
15176 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15177 (eval $ac_try) 2>&5
15178 ac_status=$?
15179 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15180 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
15181 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15182 (eval $ac_try) 2>&5
15183 ac_status=$?
15184 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15185 (exit $ac_status); }; }; then
15186
15187 { $as_echo "$as_me:$LINENO: result: yes" >&5
15188 $as_echo "yes" >&6; }
15189
15190 cat >>confdefs.h <<\_ACEOF
15191 #define HAVE_SUPER_USER_NS 1
15192 _ACEOF
15193
15194
15195 else
15196 $as_echo "$as_me: failed program was:" >&5
15197 sed 's/^/| /' conftest.$ac_ext >&5
15198
15199 { $as_echo "$as_me:$LINENO: result: no" >&5
15200 $as_echo "no" >&6; }
15201
15202
15203
15204 fi
15205
15206 rm -Rf build
15207
15208
15209
15210
15211 { $as_echo "$as_me:$LINENO: checking whether submit_bio() wants 1 arg" >&5
15212 $as_echo_n "checking whether submit_bio() wants 1 arg... " >&6; }
15213
15214
15215 cat confdefs.h - <<_ACEOF >conftest.c
15216 /* confdefs.h. */
15217 _ACEOF
15218 cat confdefs.h >>conftest.$ac_ext
15219 cat >>conftest.$ac_ext <<_ACEOF
15220 /* end confdefs.h. */
15221
15222
15223 #include <linux/bio.h>
15224
15225 int
15226 main (void)
15227 {
15228
15229 blk_qc_t blk_qc;
15230 struct bio *bio = NULL;
15231 blk_qc = submit_bio(bio);
15232
15233 ;
15234 return 0;
15235 }
15236
15237 _ACEOF
15238
15239
15240
15241 cat - <<_ACEOF >conftest.h
15242
15243 _ACEOF
15244
15245
15246 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
15247 echo "obj-m := conftest.o" >build/Makefile
15248 modpost_flag=''
15249 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
15250 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
15251 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15252 (eval $ac_try) 2>&5
15253 ac_status=$?
15254 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15255 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
15256 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15257 (eval $ac_try) 2>&5
15258 ac_status=$?
15259 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15260 (exit $ac_status); }; }; then
15261
15262 { $as_echo "$as_me:$LINENO: result: yes" >&5
15263 $as_echo "yes" >&6; }
15264
15265 cat >>confdefs.h <<\_ACEOF
15266 #define HAVE_1ARG_SUBMIT_BIO 1
15267 _ACEOF
15268
15269
15270 else
15271 $as_echo "$as_me: failed program was:" >&5
15272 sed 's/^/| /' conftest.$ac_ext >&5
15273
15274 { $as_echo "$as_me:$LINENO: result: no" >&5
15275 $as_echo "no" >&6; }
15276
15277
15278
15279 fi
15280
15281 rm -Rf build
15282
15283
15284
15285
15286 { $as_echo "$as_me:$LINENO: checking whether bops->check_events() exists" >&5
15287 $as_echo_n "checking whether bops->check_events() exists... " >&6; }
15288 tmp_flags="$EXTRA_KCFLAGS"
15289 EXTRA_KCFLAGS="${NO_UNUSED_BUT_SET_VARIABLE}"
15290
15291
15292 cat confdefs.h - <<_ACEOF >conftest.c
15293 /* confdefs.h. */
15294 _ACEOF
15295 cat confdefs.h >>conftest.$ac_ext
15296 cat >>conftest.$ac_ext <<_ACEOF
15297 /* end confdefs.h. */
15298
15299
15300 #include <linux/blkdev.h>
15301
15302 unsigned int blk_check_events(struct gendisk *disk,
15303 unsigned int clearing) { return (0); }
15304
15305 static const struct block_device_operations
15306 bops __attribute__ ((unused)) = {
15307 .check_events = blk_check_events,
15308 };
15309
15310 int
15311 main (void)
15312 {
15313
15314
15315 ;
15316 return 0;
15317 }
15318
15319 _ACEOF
15320
15321
15322
15323 cat - <<_ACEOF >conftest.h
15324
15325 _ACEOF
15326
15327
15328 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
15329 echo "obj-m := conftest.o" >build/Makefile
15330 modpost_flag=''
15331 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
15332 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
15333 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15334 (eval $ac_try) 2>&5
15335 ac_status=$?
15336 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15337 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
15338 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15339 (eval $ac_try) 2>&5
15340 ac_status=$?
15341 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15342 (exit $ac_status); }; }; then
15343
15344 { $as_echo "$as_me:$LINENO: result: yes" >&5
15345 $as_echo "yes" >&6; }
15346
15347 cat >>confdefs.h <<\_ACEOF
15348 #define HAVE_BLOCK_DEVICE_OPERATIONS_CHECK_EVENTS 1
15349 _ACEOF
15350
15351
15352 else
15353 $as_echo "$as_me: failed program was:" >&5
15354 sed 's/^/| /' conftest.$ac_ext >&5
15355
15356 { $as_echo "$as_me:$LINENO: result: no" >&5
15357 $as_echo "no" >&6; }
15358
15359
15360
15361 fi
15362
15363 rm -Rf build
15364
15365
15366 EXTRA_KCFLAGS="$tmp_flags"
15367
15368
15369 { $as_echo "$as_me:$LINENO: checking whether bops->release() is void" >&5
15370 $as_echo_n "checking whether bops->release() is void... " >&6; }
15371 tmp_flags="$EXTRA_KCFLAGS"
15372 EXTRA_KCFLAGS="${NO_UNUSED_BUT_SET_VARIABLE}"
15373
15374
15375 cat confdefs.h - <<_ACEOF >conftest.c
15376 /* confdefs.h. */
15377 _ACEOF
15378 cat confdefs.h >>conftest.$ac_ext
15379 cat >>conftest.$ac_ext <<_ACEOF
15380 /* end confdefs.h. */
15381
15382
15383 #include <linux/blkdev.h>
15384
15385 void blk_release(struct gendisk *g, fmode_t mode) { return; }
15386
15387 static const struct block_device_operations
15388 bops __attribute__ ((unused)) = {
15389 .open = NULL,
15390 .release = blk_release,
15391 .ioctl = NULL,
15392 .compat_ioctl = NULL,
15393 };
15394
15395 int
15396 main (void)
15397 {
15398
15399
15400 ;
15401 return 0;
15402 }
15403
15404 _ACEOF
15405
15406
15407
15408 cat - <<_ACEOF >conftest.h
15409
15410 _ACEOF
15411
15412
15413 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
15414 echo "obj-m := conftest.o" >build/Makefile
15415 modpost_flag=''
15416 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
15417 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
15418 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15419 (eval $ac_try) 2>&5
15420 ac_status=$?
15421 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15422 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
15423 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15424 (eval $ac_try) 2>&5
15425 ac_status=$?
15426 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15427 (exit $ac_status); }; }; then
15428
15429 { $as_echo "$as_me:$LINENO: result: void" >&5
15430 $as_echo "void" >&6; }
15431
15432 cat >>confdefs.h <<\_ACEOF
15433 #define HAVE_BLOCK_DEVICE_OPERATIONS_RELEASE_VOID 1
15434 _ACEOF
15435
15436
15437 else
15438 $as_echo "$as_me: failed program was:" >&5
15439 sed 's/^/| /' conftest.$ac_ext >&5
15440
15441 { $as_echo "$as_me:$LINENO: result: int" >&5
15442 $as_echo "int" >&6; }
15443
15444
15445
15446 fi
15447
15448 rm -Rf build
15449
15450
15451 EXTRA_KCFLAGS="$tmp_flags"
15452
15453 { $as_echo "$as_me:$LINENO: checking whether kernel defines fmode_t" >&5
15454 $as_echo_n "checking whether kernel defines fmode_t... " >&6; }
15455
15456
15457 cat confdefs.h - <<_ACEOF >conftest.c
15458 /* confdefs.h. */
15459 _ACEOF
15460 cat confdefs.h >>conftest.$ac_ext
15461 cat >>conftest.$ac_ext <<_ACEOF
15462 /* end confdefs.h. */
15463
15464
15465 #include <linux/types.h>
15466
15467 int
15468 main (void)
15469 {
15470
15471 fmode_t *ptr __attribute__ ((unused));
15472
15473 ;
15474 return 0;
15475 }
15476
15477 _ACEOF
15478
15479
15480
15481 cat - <<_ACEOF >conftest.h
15482
15483 _ACEOF
15484
15485
15486 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
15487 echo "obj-m := conftest.o" >build/Makefile
15488 modpost_flag=''
15489 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
15490 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
15491 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15492 (eval $ac_try) 2>&5
15493 ac_status=$?
15494 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15495 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
15496 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15497 (eval $ac_try) 2>&5
15498 ac_status=$?
15499 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15500 (exit $ac_status); }; }; then
15501
15502 { $as_echo "$as_me:$LINENO: result: yes" >&5
15503 $as_echo "yes" >&6; }
15504
15505 cat >>confdefs.h <<\_ACEOF
15506 #define HAVE_FMODE_T 1
15507 _ACEOF
15508
15509
15510 else
15511 $as_echo "$as_me: failed program was:" >&5
15512 sed 's/^/| /' conftest.$ac_ext >&5
15513
15514 { $as_echo "$as_me:$LINENO: result: no" >&5
15515 $as_echo "no" >&6; }
15516
15517
15518
15519 fi
15520
15521 rm -Rf build
15522
15523
15524
15525
15526 { $as_echo "$as_me:$LINENO: checking whether blkdev_get() wants 3 args" >&5
15527 $as_echo_n "checking whether blkdev_get() wants 3 args... " >&6; }
15528
15529
15530 cat confdefs.h - <<_ACEOF >conftest.c
15531 /* confdefs.h. */
15532 _ACEOF
15533 cat confdefs.h >>conftest.$ac_ext
15534 cat >>conftest.$ac_ext <<_ACEOF
15535 /* end confdefs.h. */
15536
15537
15538 #include <linux/fs.h>
15539
15540 int
15541 main (void)
15542 {
15543
15544 struct block_device *bdev = NULL;
15545 (void) blkdev_get(bdev, 0, NULL);
15546
15547 ;
15548 return 0;
15549 }
15550
15551 _ACEOF
15552
15553
15554
15555 cat - <<_ACEOF >conftest.h
15556
15557 _ACEOF
15558
15559
15560 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
15561 echo "obj-m := conftest.o" >build/Makefile
15562 modpost_flag=''
15563 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
15564 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
15565 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15566 (eval $ac_try) 2>&5
15567 ac_status=$?
15568 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15569 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
15570 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15571 (eval $ac_try) 2>&5
15572 ac_status=$?
15573 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15574 (exit $ac_status); }; }; then
15575
15576 { $as_echo "$as_me:$LINENO: result: yes" >&5
15577 $as_echo "yes" >&6; }
15578
15579 cat >>confdefs.h <<\_ACEOF
15580 #define HAVE_3ARG_BLKDEV_GET 1
15581 _ACEOF
15582
15583
15584 else
15585 $as_echo "$as_me: failed program was:" >&5
15586 sed 's/^/| /' conftest.$ac_ext >&5
15587
15588 { $as_echo "$as_me:$LINENO: result: no" >&5
15589 $as_echo "no" >&6; }
15590
15591
15592
15593 fi
15594
15595 rm -Rf build
15596
15597
15598
15599 { $as_echo "$as_me:$LINENO: checking whether blkdev_get_by_path() is available" >&5
15600 $as_echo_n "checking whether blkdev_get_by_path() is available... " >&6; }
15601
15602
15603
15604 cat confdefs.h - <<_ACEOF >conftest.c
15605 /* confdefs.h. */
15606 _ACEOF
15607 cat confdefs.h >>conftest.$ac_ext
15608 cat >>conftest.$ac_ext <<_ACEOF
15609 /* end confdefs.h. */
15610
15611
15612 #include <linux/fs.h>
15613
15614 int
15615 main (void)
15616 {
15617
15618 blkdev_get_by_path(NULL, 0, NULL);
15619
15620 ;
15621 return 0;
15622 }
15623
15624 _ACEOF
15625
15626
15627
15628 cat - <<_ACEOF >conftest.h
15629
15630 _ACEOF
15631
15632
15633 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
15634 echo "obj-m := conftest.o" >build/Makefile
15635 modpost_flag=''
15636 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
15637 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
15638 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15639 (eval $ac_try) 2>&5
15640 ac_status=$?
15641 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15642 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
15643 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15644 (eval $ac_try) 2>&5
15645 ac_status=$?
15646 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15647 (exit $ac_status); }; }; then
15648 rc=0
15649 else
15650 $as_echo "$as_me: failed program was:" >&5
15651 sed 's/^/| /' conftest.$ac_ext >&5
15652 rc=1
15653
15654
15655 fi
15656
15657 rm -Rf build
15658
15659
15660 if test $rc -ne 0; then :
15661
15662 { $as_echo "$as_me:$LINENO: result: no" >&5
15663 $as_echo "no" >&6; }
15664
15665 else
15666 if test "x$enable_linux_builtin" != xyes; then
15667
15668 grep -q -E '[[:space:]]blkdev_get_by_path[[:space:]]' \
15669 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
15670 rc=$?
15671 if test $rc -ne 0; then
15672 export=0
15673 for file in fs/block_dev.c; do
15674 grep -q -E "EXPORT_SYMBOL.*(blkdev_get_by_path)" \
15675 "$LINUX/$file" 2>/dev/null
15676 rc=$?
15677 if test $rc -eq 0; then
15678 export=1
15679 break;
15680 fi
15681 done
15682 if test $export -eq 0; then :
15683 rc=1
15684 else :
15685 rc=0
15686 fi
15687 else :
15688 rc=0
15689 fi
15690
15691 fi
15692 if test $rc -ne 0; then :
15693
15694 { $as_echo "$as_me:$LINENO: result: no" >&5
15695 $as_echo "no" >&6; }
15696
15697 else :
15698
15699 { $as_echo "$as_me:$LINENO: result: yes" >&5
15700 $as_echo "yes" >&6; }
15701
15702 cat >>confdefs.h <<\_ACEOF
15703 #define HAVE_BLKDEV_GET_BY_PATH 1
15704 _ACEOF
15705
15706
15707 fi
15708 fi
15709
15710
15711 { $as_echo "$as_me:$LINENO: checking whether open_bdev_exclusive() is available" >&5
15712 $as_echo_n "checking whether open_bdev_exclusive() is available... " >&6; }
15713
15714
15715
15716 cat confdefs.h - <<_ACEOF >conftest.c
15717 /* confdefs.h. */
15718 _ACEOF
15719 cat confdefs.h >>conftest.$ac_ext
15720 cat >>conftest.$ac_ext <<_ACEOF
15721 /* end confdefs.h. */
15722
15723
15724 #include <linux/fs.h>
15725
15726 int
15727 main (void)
15728 {
15729
15730 open_bdev_exclusive(NULL, 0, NULL);
15731
15732 ;
15733 return 0;
15734 }
15735
15736 _ACEOF
15737
15738
15739
15740 cat - <<_ACEOF >conftest.h
15741
15742 _ACEOF
15743
15744
15745 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
15746 echo "obj-m := conftest.o" >build/Makefile
15747 modpost_flag=''
15748 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
15749 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
15750 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15751 (eval $ac_try) 2>&5
15752 ac_status=$?
15753 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15754 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
15755 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15756 (eval $ac_try) 2>&5
15757 ac_status=$?
15758 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15759 (exit $ac_status); }; }; then
15760 rc=0
15761 else
15762 $as_echo "$as_me: failed program was:" >&5
15763 sed 's/^/| /' conftest.$ac_ext >&5
15764 rc=1
15765
15766
15767 fi
15768
15769 rm -Rf build
15770
15771
15772 if test $rc -ne 0; then :
15773
15774 { $as_echo "$as_me:$LINENO: result: no" >&5
15775 $as_echo "no" >&6; }
15776
15777 else
15778 if test "x$enable_linux_builtin" != xyes; then
15779
15780 grep -q -E '[[:space:]]open_bdev_exclusive[[:space:]]' \
15781 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
15782 rc=$?
15783 if test $rc -ne 0; then
15784 export=0
15785 for file in fs/block_dev.c; do
15786 grep -q -E "EXPORT_SYMBOL.*(open_bdev_exclusive)" \
15787 "$LINUX/$file" 2>/dev/null
15788 rc=$?
15789 if test $rc -eq 0; then
15790 export=1
15791 break;
15792 fi
15793 done
15794 if test $export -eq 0; then :
15795 rc=1
15796 else :
15797 rc=0
15798 fi
15799 else :
15800 rc=0
15801 fi
15802
15803 fi
15804 if test $rc -ne 0; then :
15805
15806 { $as_echo "$as_me:$LINENO: result: no" >&5
15807 $as_echo "no" >&6; }
15808
15809 else :
15810
15811 { $as_echo "$as_me:$LINENO: result: yes" >&5
15812 $as_echo "yes" >&6; }
15813
15814 cat >>confdefs.h <<\_ACEOF
15815 #define HAVE_OPEN_BDEV_EXCLUSIVE 1
15816 _ACEOF
15817
15818
15819 fi
15820 fi
15821
15822
15823 { $as_echo "$as_me:$LINENO: checking whether lookup_bdev() wants 1 arg" >&5
15824 $as_echo_n "checking whether lookup_bdev() wants 1 arg... " >&6; }
15825
15826
15827
15828 cat confdefs.h - <<_ACEOF >conftest.c
15829 /* confdefs.h. */
15830 _ACEOF
15831 cat confdefs.h >>conftest.$ac_ext
15832 cat >>conftest.$ac_ext <<_ACEOF
15833 /* end confdefs.h. */
15834
15835
15836 #include <linux/fs.h>
15837
15838 int
15839 main (void)
15840 {
15841
15842 lookup_bdev(NULL);
15843
15844 ;
15845 return 0;
15846 }
15847
15848 _ACEOF
15849
15850
15851
15852 cat - <<_ACEOF >conftest.h
15853
15854 _ACEOF
15855
15856
15857 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
15858 echo "obj-m := conftest.o" >build/Makefile
15859 modpost_flag=''
15860 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
15861 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
15862 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15863 (eval $ac_try) 2>&5
15864 ac_status=$?
15865 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15866 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
15867 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15868 (eval $ac_try) 2>&5
15869 ac_status=$?
15870 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15871 (exit $ac_status); }; }; then
15872 rc=0
15873 else
15874 $as_echo "$as_me: failed program was:" >&5
15875 sed 's/^/| /' conftest.$ac_ext >&5
15876 rc=1
15877
15878
15879 fi
15880
15881 rm -Rf build
15882
15883
15884 if test $rc -ne 0; then :
15885
15886 { $as_echo "$as_me:$LINENO: result: no" >&5
15887 $as_echo "no" >&6; }
15888 { $as_echo "$as_me:$LINENO: checking whether lookup_bdev() wants 2 args" >&5
15889 $as_echo_n "checking whether lookup_bdev() wants 2 args... " >&6; }
15890
15891
15892
15893 cat confdefs.h - <<_ACEOF >conftest.c
15894 /* confdefs.h. */
15895 _ACEOF
15896 cat confdefs.h >>conftest.$ac_ext
15897 cat >>conftest.$ac_ext <<_ACEOF
15898 /* end confdefs.h. */
15899
15900
15901 #include <linux/fs.h>
15902
15903 int
15904 main (void)
15905 {
15906
15907 lookup_bdev(NULL, FMODE_READ);
15908
15909 ;
15910 return 0;
15911 }
15912
15913 _ACEOF
15914
15915
15916
15917 cat - <<_ACEOF >conftest.h
15918
15919 _ACEOF
15920
15921
15922 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
15923 echo "obj-m := conftest.o" >build/Makefile
15924 modpost_flag=''
15925 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
15926 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
15927 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15928 (eval $ac_try) 2>&5
15929 ac_status=$?
15930 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15931 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
15932 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15933 (eval $ac_try) 2>&5
15934 ac_status=$?
15935 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15936 (exit $ac_status); }; }; then
15937 rc=0
15938 else
15939 $as_echo "$as_me: failed program was:" >&5
15940 sed 's/^/| /' conftest.$ac_ext >&5
15941 rc=1
15942
15943
15944 fi
15945
15946 rm -Rf build
15947
15948
15949 if test $rc -ne 0; then :
15950
15951 { $as_echo "$as_me:$LINENO: result: no" >&5
15952 $as_echo "no" >&6; }
15953
15954 else
15955 if test "x$enable_linux_builtin" != xyes; then
15956
15957 grep -q -E '[[:space:]]lookup_bdev[[:space:]]' \
15958 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
15959 rc=$?
15960 if test $rc -ne 0; then
15961 export=0
15962 for file in fs/block_dev.c; do
15963 grep -q -E "EXPORT_SYMBOL.*(lookup_bdev)" \
15964 "$LINUX/$file" 2>/dev/null
15965 rc=$?
15966 if test $rc -eq 0; then
15967 export=1
15968 break;
15969 fi
15970 done
15971 if test $export -eq 0; then :
15972 rc=1
15973 else :
15974 rc=0
15975 fi
15976 else :
15977 rc=0
15978 fi
15979
15980 fi
15981 if test $rc -ne 0; then :
15982
15983 { $as_echo "$as_me:$LINENO: result: no" >&5
15984 $as_echo "no" >&6; }
15985
15986 else :
15987
15988 { $as_echo "$as_me:$LINENO: result: yes" >&5
15989 $as_echo "yes" >&6; }
15990
15991 cat >>confdefs.h <<\_ACEOF
15992 #define HAVE_2ARGS_LOOKUP_BDEV 1
15993 _ACEOF
15994
15995
15996 fi
15997 fi
15998
15999
16000 else
16001 if test "x$enable_linux_builtin" != xyes; then
16002
16003 grep -q -E '[[:space:]]lookup_bdev[[:space:]]' \
16004 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
16005 rc=$?
16006 if test $rc -ne 0; then
16007 export=0
16008 for file in fs/block_dev.c; do
16009 grep -q -E "EXPORT_SYMBOL.*(lookup_bdev)" \
16010 "$LINUX/$file" 2>/dev/null
16011 rc=$?
16012 if test $rc -eq 0; then
16013 export=1
16014 break;
16015 fi
16016 done
16017 if test $export -eq 0; then :
16018 rc=1
16019 else :
16020 rc=0
16021 fi
16022 else :
16023 rc=0
16024 fi
16025
16026 fi
16027 if test $rc -ne 0; then :
16028
16029 { $as_echo "$as_me:$LINENO: result: no" >&5
16030 $as_echo "no" >&6; }
16031 { $as_echo "$as_me:$LINENO: checking whether lookup_bdev() wants 2 args" >&5
16032 $as_echo_n "checking whether lookup_bdev() wants 2 args... " >&6; }
16033
16034
16035
16036 cat confdefs.h - <<_ACEOF >conftest.c
16037 /* confdefs.h. */
16038 _ACEOF
16039 cat confdefs.h >>conftest.$ac_ext
16040 cat >>conftest.$ac_ext <<_ACEOF
16041 /* end confdefs.h. */
16042
16043
16044 #include <linux/fs.h>
16045
16046 int
16047 main (void)
16048 {
16049
16050 lookup_bdev(NULL, FMODE_READ);
16051
16052 ;
16053 return 0;
16054 }
16055
16056 _ACEOF
16057
16058
16059
16060 cat - <<_ACEOF >conftest.h
16061
16062 _ACEOF
16063
16064
16065 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
16066 echo "obj-m := conftest.o" >build/Makefile
16067 modpost_flag=''
16068 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
16069 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
16070 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16071 (eval $ac_try) 2>&5
16072 ac_status=$?
16073 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16074 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
16075 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16076 (eval $ac_try) 2>&5
16077 ac_status=$?
16078 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16079 (exit $ac_status); }; }; then
16080 rc=0
16081 else
16082 $as_echo "$as_me: failed program was:" >&5
16083 sed 's/^/| /' conftest.$ac_ext >&5
16084 rc=1
16085
16086
16087 fi
16088
16089 rm -Rf build
16090
16091
16092 if test $rc -ne 0; then :
16093
16094 { $as_echo "$as_me:$LINENO: result: no" >&5
16095 $as_echo "no" >&6; }
16096
16097 else
16098 if test "x$enable_linux_builtin" != xyes; then
16099
16100 grep -q -E '[[:space:]]lookup_bdev[[:space:]]' \
16101 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
16102 rc=$?
16103 if test $rc -ne 0; then
16104 export=0
16105 for file in fs/block_dev.c; do
16106 grep -q -E "EXPORT_SYMBOL.*(lookup_bdev)" \
16107 "$LINUX/$file" 2>/dev/null
16108 rc=$?
16109 if test $rc -eq 0; then
16110 export=1
16111 break;
16112 fi
16113 done
16114 if test $export -eq 0; then :
16115 rc=1
16116 else :
16117 rc=0
16118 fi
16119 else :
16120 rc=0
16121 fi
16122
16123 fi
16124 if test $rc -ne 0; then :
16125
16126 { $as_echo "$as_me:$LINENO: result: no" >&5
16127 $as_echo "no" >&6; }
16128
16129 else :
16130
16131 { $as_echo "$as_me:$LINENO: result: yes" >&5
16132 $as_echo "yes" >&6; }
16133
16134 cat >>confdefs.h <<\_ACEOF
16135 #define HAVE_2ARGS_LOOKUP_BDEV 1
16136 _ACEOF
16137
16138
16139 fi
16140 fi
16141
16142
16143 else :
16144
16145 { $as_echo "$as_me:$LINENO: result: yes" >&5
16146 $as_echo "yes" >&6; }
16147
16148 cat >>confdefs.h <<\_ACEOF
16149 #define HAVE_1ARG_LOOKUP_BDEV 1
16150 _ACEOF
16151
16152
16153 fi
16154 fi
16155
16156
16157
16158 { $as_echo "$as_me:$LINENO: checking whether invalidate_bdev() wants 1 arg" >&5
16159 $as_echo_n "checking whether invalidate_bdev() wants 1 arg... " >&6; }
16160
16161
16162 cat confdefs.h - <<_ACEOF >conftest.c
16163 /* confdefs.h. */
16164 _ACEOF
16165 cat confdefs.h >>conftest.$ac_ext
16166 cat >>conftest.$ac_ext <<_ACEOF
16167 /* end confdefs.h. */
16168
16169
16170 #include <linux/buffer_head.h>
16171
16172 int
16173 main (void)
16174 {
16175
16176 struct block_device *bdev = NULL;
16177 invalidate_bdev(bdev);
16178
16179 ;
16180 return 0;
16181 }
16182
16183 _ACEOF
16184
16185
16186
16187 cat - <<_ACEOF >conftest.h
16188
16189 _ACEOF
16190
16191
16192 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
16193 echo "obj-m := conftest.o" >build/Makefile
16194 modpost_flag=''
16195 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
16196 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
16197 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16198 (eval $ac_try) 2>&5
16199 ac_status=$?
16200 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16201 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
16202 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16203 (eval $ac_try) 2>&5
16204 ac_status=$?
16205 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16206 (exit $ac_status); }; }; then
16207
16208 { $as_echo "$as_me:$LINENO: result: yes" >&5
16209 $as_echo "yes" >&6; }
16210
16211 cat >>confdefs.h <<\_ACEOF
16212 #define HAVE_1ARG_INVALIDATE_BDEV 1
16213 _ACEOF
16214
16215
16216 else
16217 $as_echo "$as_me: failed program was:" >&5
16218 sed 's/^/| /' conftest.$ac_ext >&5
16219
16220 { $as_echo "$as_me:$LINENO: result: no" >&5
16221 $as_echo "no" >&6; }
16222
16223
16224
16225 fi
16226
16227 rm -Rf build
16228
16229
16230
16231
16232 { $as_echo "$as_me:$LINENO: checking whether bdev_logical_block_size() is available" >&5
16233 $as_echo_n "checking whether bdev_logical_block_size() is available... " >&6; }
16234 tmp_flags="$EXTRA_KCFLAGS"
16235 EXTRA_KCFLAGS="${NO_UNUSED_BUT_SET_VARIABLE}"
16236
16237
16238 cat confdefs.h - <<_ACEOF >conftest.c
16239 /* confdefs.h. */
16240 _ACEOF
16241 cat confdefs.h >>conftest.$ac_ext
16242 cat >>conftest.$ac_ext <<_ACEOF
16243 /* end confdefs.h. */
16244
16245
16246 #include <linux/blkdev.h>
16247
16248 int
16249 main (void)
16250 {
16251
16252 struct block_device *bdev = NULL;
16253 bdev_logical_block_size(bdev);
16254
16255 ;
16256 return 0;
16257 }
16258
16259 _ACEOF
16260
16261
16262
16263 cat - <<_ACEOF >conftest.h
16264
16265 _ACEOF
16266
16267
16268 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
16269 echo "obj-m := conftest.o" >build/Makefile
16270 modpost_flag=''
16271 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
16272 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
16273 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16274 (eval $ac_try) 2>&5
16275 ac_status=$?
16276 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16277 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
16278 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16279 (eval $ac_try) 2>&5
16280 ac_status=$?
16281 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16282 (exit $ac_status); }; }; then
16283
16284 { $as_echo "$as_me:$LINENO: result: yes" >&5
16285 $as_echo "yes" >&6; }
16286
16287 cat >>confdefs.h <<\_ACEOF
16288 #define HAVE_BDEV_LOGICAL_BLOCK_SIZE 1
16289 _ACEOF
16290
16291
16292 else
16293 $as_echo "$as_me: failed program was:" >&5
16294 sed 's/^/| /' conftest.$ac_ext >&5
16295
16296 { $as_echo "$as_me:$LINENO: result: no" >&5
16297 $as_echo "no" >&6; }
16298
16299
16300
16301 fi
16302
16303 rm -Rf build
16304
16305
16306 EXTRA_KCFLAGS="$tmp_flags"
16307
16308
16309 { $as_echo "$as_me:$LINENO: checking whether bdev_physical_block_size() is available" >&5
16310 $as_echo_n "checking whether bdev_physical_block_size() is available... " >&6; }
16311 tmp_flags="$EXTRA_KCFLAGS"
16312 EXTRA_KCFLAGS="${NO_UNUSED_BUT_SET_VARIABLE}"
16313
16314
16315 cat confdefs.h - <<_ACEOF >conftest.c
16316 /* confdefs.h. */
16317 _ACEOF
16318 cat confdefs.h >>conftest.$ac_ext
16319 cat >>conftest.$ac_ext <<_ACEOF
16320 /* end confdefs.h. */
16321
16322
16323 #include <linux/blkdev.h>
16324
16325 int
16326 main (void)
16327 {
16328
16329 struct block_device *bdev = NULL;
16330 bdev_physical_block_size(bdev);
16331
16332 ;
16333 return 0;
16334 }
16335
16336 _ACEOF
16337
16338
16339
16340 cat - <<_ACEOF >conftest.h
16341
16342 _ACEOF
16343
16344
16345 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
16346 echo "obj-m := conftest.o" >build/Makefile
16347 modpost_flag=''
16348 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
16349 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
16350 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16351 (eval $ac_try) 2>&5
16352 ac_status=$?
16353 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16354 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
16355 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16356 (eval $ac_try) 2>&5
16357 ac_status=$?
16358 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16359 (exit $ac_status); }; }; then
16360
16361 { $as_echo "$as_me:$LINENO: result: yes" >&5
16362 $as_echo "yes" >&6; }
16363
16364 cat >>confdefs.h <<\_ACEOF
16365 #define HAVE_BDEV_PHYSICAL_BLOCK_SIZE 1
16366 _ACEOF
16367
16368
16369 else
16370 $as_echo "$as_me: failed program was:" >&5
16371 sed 's/^/| /' conftest.$ac_ext >&5
16372
16373 { $as_echo "$as_me:$LINENO: result: no" >&5
16374 $as_echo "no" >&6; }
16375
16376
16377
16378 fi
16379
16380 rm -Rf build
16381
16382
16383 EXTRA_KCFLAGS="$tmp_flags"
16384
16385
16386 { $as_echo "$as_me:$LINENO: checking whether bio has bi_iter" >&5
16387 $as_echo_n "checking whether bio has bi_iter... " >&6; }
16388
16389
16390 cat confdefs.h - <<_ACEOF >conftest.c
16391 /* confdefs.h. */
16392 _ACEOF
16393 cat confdefs.h >>conftest.$ac_ext
16394 cat >>conftest.$ac_ext <<_ACEOF
16395 /* end confdefs.h. */
16396
16397
16398 #include <linux/bio.h>
16399
16400 int
16401 main (void)
16402 {
16403
16404 struct bio bio;
16405 bio.bi_iter.bi_sector = 0;
16406
16407 ;
16408 return 0;
16409 }
16410
16411 _ACEOF
16412
16413
16414
16415 cat - <<_ACEOF >conftest.h
16416
16417 _ACEOF
16418
16419
16420 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
16421 echo "obj-m := conftest.o" >build/Makefile
16422 modpost_flag=''
16423 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
16424 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
16425 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16426 (eval $ac_try) 2>&5
16427 ac_status=$?
16428 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16429 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
16430 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16431 (eval $ac_try) 2>&5
16432 ac_status=$?
16433 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16434 (exit $ac_status); }; }; then
16435
16436 { $as_echo "$as_me:$LINENO: result: yes" >&5
16437 $as_echo "yes" >&6; }
16438
16439 cat >>confdefs.h <<\_ACEOF
16440 #define HAVE_BIO_BVEC_ITER 1
16441 _ACEOF
16442
16443
16444 else
16445 $as_echo "$as_me: failed program was:" >&5
16446 sed 's/^/| /' conftest.$ac_ext >&5
16447
16448 { $as_echo "$as_me:$LINENO: result: no" >&5
16449 $as_echo "no" >&6; }
16450
16451
16452
16453 fi
16454
16455 rm -Rf build
16456
16457
16458
16459
16460 { $as_echo "$as_me:$LINENO: checking whether BIO_RW_FAILFAST_* are defined" >&5
16461 $as_echo_n "checking whether BIO_RW_FAILFAST_* are defined... " >&6; }
16462
16463
16464 cat confdefs.h - <<_ACEOF >conftest.c
16465 /* confdefs.h. */
16466 _ACEOF
16467 cat confdefs.h >>conftest.$ac_ext
16468 cat >>conftest.$ac_ext <<_ACEOF
16469 /* end confdefs.h. */
16470
16471
16472 #include <linux/bio.h>
16473
16474 int
16475 main (void)
16476 {
16477
16478 int flags __attribute__ ((unused));
16479 flags = ((1 << BIO_RW_FAILFAST_DEV) |
16480 (1 << BIO_RW_FAILFAST_TRANSPORT) |
16481 (1 << BIO_RW_FAILFAST_DRIVER));
16482
16483 ;
16484 return 0;
16485 }
16486
16487 _ACEOF
16488
16489
16490
16491 cat - <<_ACEOF >conftest.h
16492
16493 _ACEOF
16494
16495
16496 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
16497 echo "obj-m := conftest.o" >build/Makefile
16498 modpost_flag=''
16499 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
16500 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
16501 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16502 (eval $ac_try) 2>&5
16503 ac_status=$?
16504 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16505 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
16506 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16507 (eval $ac_try) 2>&5
16508 ac_status=$?
16509 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16510 (exit $ac_status); }; }; then
16511
16512 { $as_echo "$as_me:$LINENO: result: yes" >&5
16513 $as_echo "yes" >&6; }
16514
16515 cat >>confdefs.h <<\_ACEOF
16516 #define HAVE_BIO_RW_FAILFAST_DTD 1
16517 _ACEOF
16518
16519
16520 else
16521 $as_echo "$as_me: failed program was:" >&5
16522 sed 's/^/| /' conftest.$ac_ext >&5
16523
16524 { $as_echo "$as_me:$LINENO: result: no" >&5
16525 $as_echo "no" >&6; }
16526
16527
16528
16529 fi
16530
16531 rm -Rf build
16532
16533
16534
16535
16536 { $as_echo "$as_me:$LINENO: checking whether bio_set_dev() exists" >&5
16537 $as_echo_n "checking whether bio_set_dev() exists... " >&6; }
16538
16539
16540 cat confdefs.h - <<_ACEOF >conftest.c
16541 /* confdefs.h. */
16542 _ACEOF
16543 cat confdefs.h >>conftest.$ac_ext
16544 cat >>conftest.$ac_ext <<_ACEOF
16545 /* end confdefs.h. */
16546
16547
16548 #include <linux/bio.h>
16549 #include <linux/fs.h>
16550
16551 int
16552 main (void)
16553 {
16554
16555 struct block_device *bdev = NULL;
16556 struct bio *bio = NULL;
16557 bio_set_dev(bio, bdev);
16558
16559 ;
16560 return 0;
16561 }
16562
16563 _ACEOF
16564
16565
16566
16567 cat - <<_ACEOF >conftest.h
16568
16569 _ACEOF
16570
16571
16572 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
16573 echo "obj-m := conftest.o" >build/Makefile
16574 modpost_flag=''
16575 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
16576 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
16577 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16578 (eval $ac_try) 2>&5
16579 ac_status=$?
16580 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16581 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
16582 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16583 (eval $ac_try) 2>&5
16584 ac_status=$?
16585 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16586 (exit $ac_status); }; }; then
16587
16588 { $as_echo "$as_me:$LINENO: result: yes" >&5
16589 $as_echo "yes" >&6; }
16590
16591 cat >>confdefs.h <<\_ACEOF
16592 #define HAVE_BIO_SET_DEV 1
16593 _ACEOF
16594
16595
16596 else
16597 $as_echo "$as_me: failed program was:" >&5
16598 sed 's/^/| /' conftest.$ac_ext >&5
16599
16600 { $as_echo "$as_me:$LINENO: result: no" >&5
16601 $as_echo "no" >&6; }
16602
16603
16604
16605 fi
16606
16607 rm -Rf build
16608
16609
16610
16611
16612 { $as_echo "$as_me:$LINENO: checking whether REQ_FAILFAST_MASK is defined" >&5
16613 $as_echo_n "checking whether REQ_FAILFAST_MASK is defined... " >&6; }
16614
16615
16616 cat confdefs.h - <<_ACEOF >conftest.c
16617 /* confdefs.h. */
16618 _ACEOF
16619 cat confdefs.h >>conftest.$ac_ext
16620 cat >>conftest.$ac_ext <<_ACEOF
16621 /* end confdefs.h. */
16622
16623
16624 #include <linux/bio.h>
16625
16626 int
16627 main (void)
16628 {
16629
16630 int flags __attribute__ ((unused));
16631 flags = REQ_FAILFAST_MASK;
16632
16633 ;
16634 return 0;
16635 }
16636
16637 _ACEOF
16638
16639
16640
16641 cat - <<_ACEOF >conftest.h
16642
16643 _ACEOF
16644
16645
16646 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
16647 echo "obj-m := conftest.o" >build/Makefile
16648 modpost_flag=''
16649 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
16650 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
16651 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16652 (eval $ac_try) 2>&5
16653 ac_status=$?
16654 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16655 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
16656 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16657 (eval $ac_try) 2>&5
16658 ac_status=$?
16659 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16660 (exit $ac_status); }; }; then
16661
16662 { $as_echo "$as_me:$LINENO: result: yes" >&5
16663 $as_echo "yes" >&6; }
16664
16665 cat >>confdefs.h <<\_ACEOF
16666 #define HAVE_REQ_FAILFAST_MASK 1
16667 _ACEOF
16668
16669
16670 else
16671 $as_echo "$as_me: failed program was:" >&5
16672 sed 's/^/| /' conftest.$ac_ext >&5
16673
16674 { $as_echo "$as_me:$LINENO: result: no" >&5
16675 $as_echo "no" >&6; }
16676
16677
16678
16679 fi
16680
16681 rm -Rf build
16682
16683
16684
16685
16686 { $as_echo "$as_me:$LINENO: checking whether REQ_OP_DISCARD is defined" >&5
16687 $as_echo_n "checking whether REQ_OP_DISCARD is defined... " >&6; }
16688
16689
16690 cat confdefs.h - <<_ACEOF >conftest.c
16691 /* confdefs.h. */
16692 _ACEOF
16693 cat confdefs.h >>conftest.$ac_ext
16694 cat >>conftest.$ac_ext <<_ACEOF
16695 /* end confdefs.h. */
16696
16697
16698 #include <linux/blk_types.h>
16699
16700 int
16701 main (void)
16702 {
16703
16704 int op __attribute__ ((unused)) = REQ_OP_DISCARD;
16705
16706 ;
16707 return 0;
16708 }
16709
16710 _ACEOF
16711
16712
16713
16714 cat - <<_ACEOF >conftest.h
16715
16716 _ACEOF
16717
16718
16719 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
16720 echo "obj-m := conftest.o" >build/Makefile
16721 modpost_flag=''
16722 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
16723 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
16724 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16725 (eval $ac_try) 2>&5
16726 ac_status=$?
16727 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16728 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
16729 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16730 (eval $ac_try) 2>&5
16731 ac_status=$?
16732 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16733 (exit $ac_status); }; }; then
16734
16735 { $as_echo "$as_me:$LINENO: result: yes" >&5
16736 $as_echo "yes" >&6; }
16737
16738 cat >>confdefs.h <<\_ACEOF
16739 #define HAVE_REQ_OP_DISCARD 1
16740 _ACEOF
16741
16742
16743 else
16744 $as_echo "$as_me: failed program was:" >&5
16745 sed 's/^/| /' conftest.$ac_ext >&5
16746
16747 { $as_echo "$as_me:$LINENO: result: no" >&5
16748 $as_echo "no" >&6; }
16749
16750
16751
16752 fi
16753
16754 rm -Rf build
16755
16756
16757
16758
16759 { $as_echo "$as_me:$LINENO: checking whether REQ_OP_SECURE_ERASE is defined" >&5
16760 $as_echo_n "checking whether REQ_OP_SECURE_ERASE is defined... " >&6; }
16761
16762
16763 cat confdefs.h - <<_ACEOF >conftest.c
16764 /* confdefs.h. */
16765 _ACEOF
16766 cat confdefs.h >>conftest.$ac_ext
16767 cat >>conftest.$ac_ext <<_ACEOF
16768 /* end confdefs.h. */
16769
16770
16771 #include <linux/blk_types.h>
16772
16773 int
16774 main (void)
16775 {
16776
16777 int op __attribute__ ((unused)) = REQ_OP_SECURE_ERASE;
16778
16779 ;
16780 return 0;
16781 }
16782
16783 _ACEOF
16784
16785
16786
16787 cat - <<_ACEOF >conftest.h
16788
16789 _ACEOF
16790
16791
16792 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
16793 echo "obj-m := conftest.o" >build/Makefile
16794 modpost_flag=''
16795 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
16796 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
16797 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16798 (eval $ac_try) 2>&5
16799 ac_status=$?
16800 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16801 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
16802 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16803 (eval $ac_try) 2>&5
16804 ac_status=$?
16805 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16806 (exit $ac_status); }; }; then
16807
16808 { $as_echo "$as_me:$LINENO: result: yes" >&5
16809 $as_echo "yes" >&6; }
16810
16811 cat >>confdefs.h <<\_ACEOF
16812 #define HAVE_REQ_OP_SECURE_ERASE 1
16813 _ACEOF
16814
16815
16816 else
16817 $as_echo "$as_me: failed program was:" >&5
16818 sed 's/^/| /' conftest.$ac_ext >&5
16819
16820 { $as_echo "$as_me:$LINENO: result: no" >&5
16821 $as_echo "no" >&6; }
16822
16823
16824
16825 fi
16826
16827 rm -Rf build
16828
16829
16830
16831
16832 { $as_echo "$as_me:$LINENO: checking whether REQ_OP_FLUSH is defined" >&5
16833 $as_echo_n "checking whether REQ_OP_FLUSH is defined... " >&6; }
16834
16835
16836 cat confdefs.h - <<_ACEOF >conftest.c
16837 /* confdefs.h. */
16838 _ACEOF
16839 cat confdefs.h >>conftest.$ac_ext
16840 cat >>conftest.$ac_ext <<_ACEOF
16841 /* end confdefs.h. */
16842
16843
16844 #include <linux/blk_types.h>
16845
16846 int
16847 main (void)
16848 {
16849
16850 int op __attribute__ ((unused)) = REQ_OP_FLUSH;
16851
16852 ;
16853 return 0;
16854 }
16855
16856 _ACEOF
16857
16858
16859
16860 cat - <<_ACEOF >conftest.h
16861
16862 _ACEOF
16863
16864
16865 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
16866 echo "obj-m := conftest.o" >build/Makefile
16867 modpost_flag=''
16868 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
16869 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
16870 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16871 (eval $ac_try) 2>&5
16872 ac_status=$?
16873 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16874 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
16875 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16876 (eval $ac_try) 2>&5
16877 ac_status=$?
16878 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16879 (exit $ac_status); }; }; then
16880
16881 { $as_echo "$as_me:$LINENO: result: yes" >&5
16882 $as_echo "yes" >&6; }
16883
16884 cat >>confdefs.h <<\_ACEOF
16885 #define HAVE_REQ_OP_FLUSH 1
16886 _ACEOF
16887
16888
16889 else
16890 $as_echo "$as_me: failed program was:" >&5
16891 sed 's/^/| /' conftest.$ac_ext >&5
16892
16893 { $as_echo "$as_me:$LINENO: result: no" >&5
16894 $as_echo "no" >&6; }
16895
16896
16897
16898 fi
16899
16900 rm -Rf build
16901
16902
16903
16904
16905 { $as_echo "$as_me:$LINENO: checking whether bio->bi_opf is defined" >&5
16906 $as_echo_n "checking whether bio->bi_opf is defined... " >&6; }
16907
16908
16909 cat confdefs.h - <<_ACEOF >conftest.c
16910 /* confdefs.h. */
16911 _ACEOF
16912 cat confdefs.h >>conftest.$ac_ext
16913 cat >>conftest.$ac_ext <<_ACEOF
16914 /* end confdefs.h. */
16915
16916
16917 #include <linux/bio.h>
16918
16919 int
16920 main (void)
16921 {
16922
16923 struct bio bio __attribute__ ((unused));
16924 bio.bi_opf = 0;
16925
16926 ;
16927 return 0;
16928 }
16929
16930 _ACEOF
16931
16932
16933
16934 cat - <<_ACEOF >conftest.h
16935
16936 _ACEOF
16937
16938
16939 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
16940 echo "obj-m := conftest.o" >build/Makefile
16941 modpost_flag=''
16942 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
16943 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
16944 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16945 (eval $ac_try) 2>&5
16946 ac_status=$?
16947 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16948 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
16949 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16950 (eval $ac_try) 2>&5
16951 ac_status=$?
16952 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16953 (exit $ac_status); }; }; then
16954
16955 { $as_echo "$as_me:$LINENO: result: yes" >&5
16956 $as_echo "yes" >&6; }
16957
16958 cat >>confdefs.h <<\_ACEOF
16959 #define HAVE_BIO_BI_OPF 1
16960 _ACEOF
16961
16962
16963 else
16964 $as_echo "$as_me: failed program was:" >&5
16965 sed 's/^/| /' conftest.$ac_ext >&5
16966
16967 { $as_echo "$as_me:$LINENO: result: no" >&5
16968 $as_echo "no" >&6; }
16969
16970
16971
16972 fi
16973
16974 rm -Rf build
16975
16976
16977
16978
16979 { $as_echo "$as_me:$LINENO: checking whether bio_end_io_t wants 1 arg" >&5
16980 $as_echo_n "checking whether bio_end_io_t wants 1 arg... " >&6; }
16981
16982
16983 cat confdefs.h - <<_ACEOF >conftest.c
16984 /* confdefs.h. */
16985 _ACEOF
16986 cat confdefs.h >>conftest.$ac_ext
16987 cat >>conftest.$ac_ext <<_ACEOF
16988 /* end confdefs.h. */
16989
16990
16991 #include <linux/bio.h>
16992
16993 void wanted_end_io(struct bio *bio) { return; }
16994
16995 bio_end_io_t *end_io __attribute__ ((unused)) = wanted_end_io;
16996
16997 int
16998 main (void)
16999 {
17000
17001
17002 ;
17003 return 0;
17004 }
17005
17006 _ACEOF
17007
17008
17009
17010 cat - <<_ACEOF >conftest.h
17011
17012 _ACEOF
17013
17014
17015 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
17016 echo "obj-m := conftest.o" >build/Makefile
17017 modpost_flag=''
17018 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
17019 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
17020 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17021 (eval $ac_try) 2>&5
17022 ac_status=$?
17023 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17024 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
17025 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17026 (eval $ac_try) 2>&5
17027 ac_status=$?
17028 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17029 (exit $ac_status); }; }; then
17030
17031 { $as_echo "$as_me:$LINENO: result: yes" >&5
17032 $as_echo "yes" >&6; }
17033
17034 cat >>confdefs.h <<\_ACEOF
17035 #define HAVE_1ARG_BIO_END_IO_T 1
17036 _ACEOF
17037
17038
17039 else
17040 $as_echo "$as_me: failed program was:" >&5
17041 sed 's/^/| /' conftest.$ac_ext >&5
17042
17043 { $as_echo "$as_me:$LINENO: result: no" >&5
17044 $as_echo "no" >&6; }
17045
17046
17047
17048 fi
17049
17050 rm -Rf build
17051
17052
17053
17054
17055 { $as_echo "$as_me:$LINENO: checking whether bio->bi_status exists" >&5
17056 $as_echo_n "checking whether bio->bi_status exists... " >&6; }
17057
17058
17059 cat confdefs.h - <<_ACEOF >conftest.c
17060 /* confdefs.h. */
17061 _ACEOF
17062 cat confdefs.h >>conftest.$ac_ext
17063 cat >>conftest.$ac_ext <<_ACEOF
17064 /* end confdefs.h. */
17065
17066
17067 #include <linux/bio.h>
17068
17069 int
17070 main (void)
17071 {
17072
17073 struct bio bio __attribute__ ((unused));
17074 blk_status_t status __attribute__ ((unused)) = BLK_STS_OK;
17075
17076 bio.bi_status = status;
17077
17078 ;
17079 return 0;
17080 }
17081
17082 _ACEOF
17083
17084
17085
17086 cat - <<_ACEOF >conftest.h
17087
17088 _ACEOF
17089
17090
17091 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
17092 echo "obj-m := conftest.o" >build/Makefile
17093 modpost_flag=''
17094 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
17095 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
17096 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17097 (eval $ac_try) 2>&5
17098 ac_status=$?
17099 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17100 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
17101 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17102 (eval $ac_try) 2>&5
17103 ac_status=$?
17104 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17105 (exit $ac_status); }; }; then
17106
17107 { $as_echo "$as_me:$LINENO: result: yes" >&5
17108 $as_echo "yes" >&6; }
17109
17110 cat >>confdefs.h <<\_ACEOF
17111 #define HAVE_BIO_BI_STATUS 1
17112 _ACEOF
17113
17114
17115 else
17116 $as_echo "$as_me: failed program was:" >&5
17117 sed 's/^/| /' conftest.$ac_ext >&5
17118
17119 { $as_echo "$as_me:$LINENO: result: no" >&5
17120 $as_echo "no" >&6; }
17121
17122
17123
17124 fi
17125
17126 rm -Rf build
17127
17128
17129
17130
17131 { $as_echo "$as_me:$LINENO: checking whether BIO_RW_BARRIER is defined" >&5
17132 $as_echo_n "checking whether BIO_RW_BARRIER is defined... " >&6; }
17133
17134
17135 cat confdefs.h - <<_ACEOF >conftest.c
17136 /* confdefs.h. */
17137 _ACEOF
17138 cat confdefs.h >>conftest.$ac_ext
17139 cat >>conftest.$ac_ext <<_ACEOF
17140 /* end confdefs.h. */
17141
17142
17143 #include <linux/bio.h>
17144
17145 int
17146 main (void)
17147 {
17148
17149 int flags __attribute__ ((unused));
17150 flags = BIO_RW_BARRIER;
17151
17152 ;
17153 return 0;
17154 }
17155
17156 _ACEOF
17157
17158
17159
17160 cat - <<_ACEOF >conftest.h
17161
17162 _ACEOF
17163
17164
17165 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
17166 echo "obj-m := conftest.o" >build/Makefile
17167 modpost_flag=''
17168 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
17169 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
17170 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17171 (eval $ac_try) 2>&5
17172 ac_status=$?
17173 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17174 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
17175 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17176 (eval $ac_try) 2>&5
17177 ac_status=$?
17178 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17179 (exit $ac_status); }; }; then
17180
17181 { $as_echo "$as_me:$LINENO: result: yes" >&5
17182 $as_echo "yes" >&6; }
17183
17184 cat >>confdefs.h <<\_ACEOF
17185 #define HAVE_BIO_RW_BARRIER 1
17186 _ACEOF
17187
17188
17189 else
17190 $as_echo "$as_me: failed program was:" >&5
17191 sed 's/^/| /' conftest.$ac_ext >&5
17192
17193 { $as_echo "$as_me:$LINENO: result: no" >&5
17194 $as_echo "no" >&6; }
17195
17196
17197
17198 fi
17199
17200 rm -Rf build
17201
17202
17203
17204
17205 { $as_echo "$as_me:$LINENO: checking whether BIO_RW_DISCARD is defined" >&5
17206 $as_echo_n "checking whether BIO_RW_DISCARD is defined... " >&6; }
17207
17208
17209 cat confdefs.h - <<_ACEOF >conftest.c
17210 /* confdefs.h. */
17211 _ACEOF
17212 cat confdefs.h >>conftest.$ac_ext
17213 cat >>conftest.$ac_ext <<_ACEOF
17214 /* end confdefs.h. */
17215
17216
17217 #include <linux/bio.h>
17218
17219 int
17220 main (void)
17221 {
17222
17223 int flags __attribute__ ((unused));
17224 flags = BIO_RW_DISCARD;
17225
17226 ;
17227 return 0;
17228 }
17229
17230 _ACEOF
17231
17232
17233
17234 cat - <<_ACEOF >conftest.h
17235
17236 _ACEOF
17237
17238
17239 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
17240 echo "obj-m := conftest.o" >build/Makefile
17241 modpost_flag=''
17242 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
17243 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
17244 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17245 (eval $ac_try) 2>&5
17246 ac_status=$?
17247 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17248 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
17249 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17250 (eval $ac_try) 2>&5
17251 ac_status=$?
17252 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17253 (exit $ac_status); }; }; then
17254
17255 { $as_echo "$as_me:$LINENO: result: yes" >&5
17256 $as_echo "yes" >&6; }
17257
17258 cat >>confdefs.h <<\_ACEOF
17259 #define HAVE_BIO_RW_DISCARD 1
17260 _ACEOF
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:$LINENO: result: no" >&5
17268 $as_echo "no" >&6; }
17269
17270
17271
17272 fi
17273
17274 rm -Rf build
17275
17276
17277
17278
17279 { $as_echo "$as_me:$LINENO: checking whether blk_queue bdi is dynamic" >&5
17280 $as_echo_n "checking whether blk_queue bdi is dynamic... " >&6; }
17281
17282
17283 cat confdefs.h - <<_ACEOF >conftest.c
17284 /* confdefs.h. */
17285 _ACEOF
17286 cat confdefs.h >>conftest.$ac_ext
17287 cat >>conftest.$ac_ext <<_ACEOF
17288 /* end confdefs.h. */
17289
17290
17291 #include <linux/blkdev.h>
17292
17293 int
17294 main (void)
17295 {
17296
17297 struct request_queue q;
17298 struct backing_dev_info bdi;
17299 q.backing_dev_info = &bdi;
17300
17301 ;
17302 return 0;
17303 }
17304
17305 _ACEOF
17306
17307
17308
17309 cat - <<_ACEOF >conftest.h
17310
17311 _ACEOF
17312
17313
17314 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
17315 echo "obj-m := conftest.o" >build/Makefile
17316 modpost_flag=''
17317 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
17318 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
17319 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17320 (eval $ac_try) 2>&5
17321 ac_status=$?
17322 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17323 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
17324 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17325 (eval $ac_try) 2>&5
17326 ac_status=$?
17327 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17328 (exit $ac_status); }; }; then
17329
17330 { $as_echo "$as_me:$LINENO: result: yes" >&5
17331 $as_echo "yes" >&6; }
17332
17333 cat >>confdefs.h <<\_ACEOF
17334 #define HAVE_BLK_QUEUE_BDI_DYNAMIC 1
17335 _ACEOF
17336
17337
17338 else
17339 $as_echo "$as_me: failed program was:" >&5
17340 sed 's/^/| /' conftest.$ac_ext >&5
17341
17342 { $as_echo "$as_me:$LINENO: result: no" >&5
17343 $as_echo "no" >&6; }
17344
17345
17346
17347 fi
17348
17349 rm -Rf build
17350
17351
17352
17353
17354 { $as_echo "$as_me:$LINENO: checking whether blk_queue_flag_clear() exists" >&5
17355 $as_echo_n "checking whether blk_queue_flag_clear() exists... " >&6; }
17356
17357
17358 cat confdefs.h - <<_ACEOF >conftest.c
17359 /* confdefs.h. */
17360 _ACEOF
17361 cat confdefs.h >>conftest.$ac_ext
17362 cat >>conftest.$ac_ext <<_ACEOF
17363 /* end confdefs.h. */
17364
17365
17366 #include <linux/kernel.h>
17367 #include <linux/blkdev.h>
17368
17369 int
17370 main (void)
17371 {
17372
17373 struct request_queue *q = NULL;
17374 blk_queue_flag_clear(0, q);
17375
17376 ;
17377 return 0;
17378 }
17379
17380 _ACEOF
17381
17382
17383
17384 cat - <<_ACEOF >conftest.h
17385
17386 _ACEOF
17387
17388
17389 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
17390 echo "obj-m := conftest.o" >build/Makefile
17391 modpost_flag=''
17392 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
17393 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
17394 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17395 (eval $ac_try) 2>&5
17396 ac_status=$?
17397 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17398 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
17399 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17400 (eval $ac_try) 2>&5
17401 ac_status=$?
17402 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17403 (exit $ac_status); }; }; then
17404
17405
17406 { $as_echo "$as_me:$LINENO: result: yes" >&5
17407 $as_echo "yes" >&6; }
17408
17409 cat >>confdefs.h <<\_ACEOF
17410 #define HAVE_BLK_QUEUE_FLAG_CLEAR 1
17411 _ACEOF
17412
17413
17414 else
17415 $as_echo "$as_me: failed program was:" >&5
17416 sed 's/^/| /' conftest.$ac_ext >&5
17417
17418 { $as_echo "$as_me:$LINENO: result: no" >&5
17419 $as_echo "no" >&6; }
17420
17421
17422
17423 fi
17424
17425 rm -Rf build
17426
17427
17428
17429
17430 { $as_echo "$as_me:$LINENO: checking whether blk_queue_flag_set() exists" >&5
17431 $as_echo_n "checking whether blk_queue_flag_set() exists... " >&6; }
17432
17433
17434 cat confdefs.h - <<_ACEOF >conftest.c
17435 /* confdefs.h. */
17436 _ACEOF
17437 cat confdefs.h >>conftest.$ac_ext
17438 cat >>conftest.$ac_ext <<_ACEOF
17439 /* end confdefs.h. */
17440
17441
17442 #include <linux/kernel.h>
17443 #include <linux/blkdev.h>
17444
17445 int
17446 main (void)
17447 {
17448
17449 struct request_queue *q = NULL;
17450 blk_queue_flag_set(0, q);
17451
17452 ;
17453 return 0;
17454 }
17455
17456 _ACEOF
17457
17458
17459
17460 cat - <<_ACEOF >conftest.h
17461
17462 _ACEOF
17463
17464
17465 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
17466 echo "obj-m := conftest.o" >build/Makefile
17467 modpost_flag=''
17468 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
17469 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
17470 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17471 (eval $ac_try) 2>&5
17472 ac_status=$?
17473 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17474 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
17475 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17476 (eval $ac_try) 2>&5
17477 ac_status=$?
17478 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17479 (exit $ac_status); }; }; then
17480
17481 { $as_echo "$as_me:$LINENO: result: yes" >&5
17482 $as_echo "yes" >&6; }
17483
17484 cat >>confdefs.h <<\_ACEOF
17485 #define HAVE_BLK_QUEUE_FLAG_SET 1
17486 _ACEOF
17487
17488
17489 else
17490 $as_echo "$as_me: failed program was:" >&5
17491 sed 's/^/| /' conftest.$ac_ext >&5
17492
17493 { $as_echo "$as_me:$LINENO: result: no" >&5
17494 $as_echo "no" >&6; }
17495
17496
17497
17498 fi
17499
17500 rm -Rf build
17501
17502
17503
17504
17505 { $as_echo "$as_me:$LINENO: checking whether blk_queue_flush() is available" >&5
17506 $as_echo_n "checking whether blk_queue_flush() is available... " >&6; }
17507 tmp_flags="$EXTRA_KCFLAGS"
17508 EXTRA_KCFLAGS="${NO_UNUSED_BUT_SET_VARIABLE}"
17509
17510
17511 cat confdefs.h - <<_ACEOF >conftest.c
17512 /* confdefs.h. */
17513 _ACEOF
17514 cat confdefs.h >>conftest.$ac_ext
17515 cat >>conftest.$ac_ext <<_ACEOF
17516 /* end confdefs.h. */
17517
17518
17519 #include <linux/blkdev.h>
17520
17521 int
17522 main (void)
17523 {
17524
17525 struct request_queue *q = NULL;
17526 (void) blk_queue_flush(q, REQ_FLUSH);
17527
17528 ;
17529 return 0;
17530 }
17531
17532 _ACEOF
17533
17534
17535
17536 cat - <<_ACEOF >conftest.h
17537
17538 _ACEOF
17539
17540
17541 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
17542 echo "obj-m := conftest.o" >build/Makefile
17543 modpost_flag=''
17544 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
17545 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
17546 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17547 (eval $ac_try) 2>&5
17548 ac_status=$?
17549 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17550 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
17551 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17552 (eval $ac_try) 2>&5
17553 ac_status=$?
17554 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17555 (exit $ac_status); }; }; then
17556
17557 { $as_echo "$as_me:$LINENO: result: yes" >&5
17558 $as_echo "yes" >&6; }
17559
17560 cat >>confdefs.h <<\_ACEOF
17561 #define HAVE_BLK_QUEUE_FLUSH 1
17562 _ACEOF
17563
17564
17565 { $as_echo "$as_me:$LINENO: checking whether blk_queue_flush() is GPL-only" >&5
17566 $as_echo_n "checking whether blk_queue_flush() is GPL-only... " >&6; }
17567
17568
17569 cat confdefs.h - <<_ACEOF >conftest.c
17570 /* confdefs.h. */
17571 _ACEOF
17572 cat confdefs.h >>conftest.$ac_ext
17573 cat >>conftest.$ac_ext <<_ACEOF
17574 /* end confdefs.h. */
17575
17576
17577 #include <linux/module.h>
17578 #include <linux/blkdev.h>
17579
17580 MODULE_LICENSE("$ZFS_META_LICENSE");
17581
17582 int
17583 main (void)
17584 {
17585
17586 struct request_queue *q = NULL;
17587 (void) blk_queue_flush(q, REQ_FLUSH);
17588
17589 ;
17590 return 0;
17591 }
17592
17593 _ACEOF
17594
17595
17596
17597 cat - <<_ACEOF >conftest.h
17598
17599 _ACEOF
17600
17601
17602 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
17603 echo "obj-m := conftest.o" >build/Makefile
17604 modpost_flag=''
17605 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
17606 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
17607 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17608 (eval $ac_try) 2>&5
17609 ac_status=$?
17610 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17611 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
17612 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17613 (eval $ac_try) 2>&5
17614 ac_status=$?
17615 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17616 (exit $ac_status); }; }; then
17617
17618 { $as_echo "$as_me:$LINENO: result: no" >&5
17619 $as_echo "no" >&6; }
17620
17621 else
17622 $as_echo "$as_me: failed program was:" >&5
17623 sed 's/^/| /' conftest.$ac_ext >&5
17624
17625 { $as_echo "$as_me:$LINENO: result: yes" >&5
17626 $as_echo "yes" >&6; }
17627
17628 cat >>confdefs.h <<\_ACEOF
17629 #define HAVE_BLK_QUEUE_FLUSH_GPL_ONLY 1
17630 _ACEOF
17631
17632
17633
17634
17635 fi
17636
17637 rm -Rf build
17638
17639
17640
17641 else
17642 $as_echo "$as_me: failed program was:" >&5
17643 sed 's/^/| /' conftest.$ac_ext >&5
17644
17645 { $as_echo "$as_me:$LINENO: result: no" >&5
17646 $as_echo "no" >&6; }
17647
17648
17649
17650 fi
17651
17652 rm -Rf build
17653
17654
17655
17656 { $as_echo "$as_me:$LINENO: checking whether blk_queue_write_cache() exists" >&5
17657 $as_echo_n "checking whether blk_queue_write_cache() exists... " >&6; }
17658
17659
17660 cat confdefs.h - <<_ACEOF >conftest.c
17661 /* confdefs.h. */
17662 _ACEOF
17663 cat confdefs.h >>conftest.$ac_ext
17664 cat >>conftest.$ac_ext <<_ACEOF
17665 /* end confdefs.h. */
17666
17667
17668 #include <linux/kernel.h>
17669 #include <linux/blkdev.h>
17670
17671
17672 int
17673 main (void)
17674 {
17675
17676 struct request_queue *q = NULL;
17677 blk_queue_write_cache(q, true, true);
17678
17679 ;
17680 return 0;
17681 }
17682
17683 _ACEOF
17684
17685
17686
17687 cat - <<_ACEOF >conftest.h
17688
17689 _ACEOF
17690
17691
17692 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
17693 echo "obj-m := conftest.o" >build/Makefile
17694 modpost_flag=''
17695 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
17696 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
17697 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17698 (eval $ac_try) 2>&5
17699 ac_status=$?
17700 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17701 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
17702 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17703 (eval $ac_try) 2>&5
17704 ac_status=$?
17705 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17706 (exit $ac_status); }; }; then
17707
17708 { $as_echo "$as_me:$LINENO: result: yes" >&5
17709 $as_echo "yes" >&6; }
17710
17711 cat >>confdefs.h <<\_ACEOF
17712 #define HAVE_BLK_QUEUE_WRITE_CACHE 1
17713 _ACEOF
17714
17715
17716 { $as_echo "$as_me:$LINENO: checking whether blk_queue_write_cache() is GPL-only" >&5
17717 $as_echo_n "checking whether blk_queue_write_cache() is GPL-only... " >&6; }
17718
17719
17720 cat confdefs.h - <<_ACEOF >conftest.c
17721 /* confdefs.h. */
17722 _ACEOF
17723 cat confdefs.h >>conftest.$ac_ext
17724 cat >>conftest.$ac_ext <<_ACEOF
17725 /* end confdefs.h. */
17726
17727
17728 #include <linux/kernel.h>
17729 #include <linux/module.h>
17730 #include <linux/blkdev.h>
17731
17732 MODULE_LICENSE("$ZFS_META_LICENSE");
17733
17734 int
17735 main (void)
17736 {
17737
17738 struct request_queue *q = NULL;
17739 blk_queue_write_cache(q, true, true);
17740
17741 ;
17742 return 0;
17743 }
17744
17745 _ACEOF
17746
17747
17748
17749 cat - <<_ACEOF >conftest.h
17750
17751 _ACEOF
17752
17753
17754 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
17755 echo "obj-m := conftest.o" >build/Makefile
17756 modpost_flag=''
17757 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
17758 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
17759 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17760 (eval $ac_try) 2>&5
17761 ac_status=$?
17762 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17763 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
17764 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17765 (eval $ac_try) 2>&5
17766 ac_status=$?
17767 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17768 (exit $ac_status); }; }; then
17769
17770 { $as_echo "$as_me:$LINENO: result: no" >&5
17771 $as_echo "no" >&6; }
17772
17773 else
17774 $as_echo "$as_me: failed program was:" >&5
17775 sed 's/^/| /' conftest.$ac_ext >&5
17776
17777 { $as_echo "$as_me:$LINENO: result: yes" >&5
17778 $as_echo "yes" >&6; }
17779
17780 cat >>confdefs.h <<\_ACEOF
17781 #define HAVE_BLK_QUEUE_WRITE_CACHE_GPL_ONLY 1
17782 _ACEOF
17783
17784
17785
17786
17787 fi
17788
17789 rm -Rf build
17790
17791
17792
17793 else
17794 $as_echo "$as_me: failed program was:" >&5
17795 sed 's/^/| /' conftest.$ac_ext >&5
17796
17797 { $as_echo "$as_me:$LINENO: result: no" >&5
17798 $as_echo "no" >&6; }
17799
17800
17801
17802 fi
17803
17804 rm -Rf build
17805
17806
17807
17808 EXTRA_KCFLAGS="$tmp_flags"
17809
17810
17811 { $as_echo "$as_me:$LINENO: checking whether blk_queue_max_hw_sectors() is available" >&5
17812 $as_echo_n "checking whether blk_queue_max_hw_sectors() is available... " >&6; }
17813 tmp_flags="$EXTRA_KCFLAGS"
17814 EXTRA_KCFLAGS="${NO_UNUSED_BUT_SET_VARIABLE}"
17815
17816
17817 cat confdefs.h - <<_ACEOF >conftest.c
17818 /* confdefs.h. */
17819 _ACEOF
17820 cat confdefs.h >>conftest.$ac_ext
17821 cat >>conftest.$ac_ext <<_ACEOF
17822 /* end confdefs.h. */
17823
17824
17825 #include <linux/blkdev.h>
17826
17827 int
17828 main (void)
17829 {
17830
17831 struct request_queue *q = NULL;
17832 (void) blk_queue_max_hw_sectors(q, BLK_SAFE_MAX_SECTORS);
17833
17834 ;
17835 return 0;
17836 }
17837
17838 _ACEOF
17839
17840
17841
17842 cat - <<_ACEOF >conftest.h
17843
17844 _ACEOF
17845
17846
17847 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
17848 echo "obj-m := conftest.o" >build/Makefile
17849 modpost_flag=''
17850 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
17851 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
17852 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17853 (eval $ac_try) 2>&5
17854 ac_status=$?
17855 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17856 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
17857 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17858 (eval $ac_try) 2>&5
17859 ac_status=$?
17860 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17861 (exit $ac_status); }; }; then
17862
17863 { $as_echo "$as_me:$LINENO: result: yes" >&5
17864 $as_echo "yes" >&6; }
17865
17866 cat >>confdefs.h <<\_ACEOF
17867 #define HAVE_BLK_QUEUE_MAX_HW_SECTORS 1
17868 _ACEOF
17869
17870
17871 else
17872 $as_echo "$as_me: failed program was:" >&5
17873 sed 's/^/| /' conftest.$ac_ext >&5
17874
17875 { $as_echo "$as_me:$LINENO: result: no" >&5
17876 $as_echo "no" >&6; }
17877
17878
17879
17880 fi
17881
17882 rm -Rf build
17883
17884
17885 EXTRA_KCFLAGS="$tmp_flags"
17886
17887
17888 { $as_echo "$as_me:$LINENO: checking whether blk_queue_max_segments() is available" >&5
17889 $as_echo_n "checking whether blk_queue_max_segments() is available... " >&6; }
17890 tmp_flags="$EXTRA_KCFLAGS"
17891 EXTRA_KCFLAGS="${NO_UNUSED_BUT_SET_VARIABLE}"
17892
17893
17894 cat confdefs.h - <<_ACEOF >conftest.c
17895 /* confdefs.h. */
17896 _ACEOF
17897 cat confdefs.h >>conftest.$ac_ext
17898 cat >>conftest.$ac_ext <<_ACEOF
17899 /* end confdefs.h. */
17900
17901
17902 #include <linux/blkdev.h>
17903
17904 int
17905 main (void)
17906 {
17907
17908 struct request_queue *q = NULL;
17909 (void) blk_queue_max_segments(q, BLK_MAX_SEGMENTS);
17910
17911 ;
17912 return 0;
17913 }
17914
17915 _ACEOF
17916
17917
17918
17919 cat - <<_ACEOF >conftest.h
17920
17921 _ACEOF
17922
17923
17924 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
17925 echo "obj-m := conftest.o" >build/Makefile
17926 modpost_flag=''
17927 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
17928 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
17929 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17930 (eval $ac_try) 2>&5
17931 ac_status=$?
17932 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17933 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
17934 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17935 (eval $ac_try) 2>&5
17936 ac_status=$?
17937 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17938 (exit $ac_status); }; }; then
17939
17940 { $as_echo "$as_me:$LINENO: result: yes" >&5
17941 $as_echo "yes" >&6; }
17942
17943 cat >>confdefs.h <<\_ACEOF
17944 #define HAVE_BLK_QUEUE_MAX_SEGMENTS 1
17945 _ACEOF
17946
17947
17948 else
17949 $as_echo "$as_me: failed program was:" >&5
17950 sed 's/^/| /' conftest.$ac_ext >&5
17951
17952 { $as_echo "$as_me:$LINENO: result: no" >&5
17953 $as_echo "no" >&6; }
17954
17955
17956
17957 fi
17958
17959 rm -Rf build
17960
17961
17962 EXTRA_KCFLAGS="$tmp_flags"
17963
17964
17965 { $as_echo "$as_me:$LINENO: checking whether the BIO_RW_UNPLUG enum is available" >&5
17966 $as_echo_n "checking whether the BIO_RW_UNPLUG enum is available... " >&6; }
17967 tmp_flags="$EXTRA_KCFLAGS"
17968 EXTRA_KCFLAGS="${NO_UNUSED_BUT_SET_VARIABLE}"
17969
17970
17971 cat confdefs.h - <<_ACEOF >conftest.c
17972 /* confdefs.h. */
17973 _ACEOF
17974 cat confdefs.h >>conftest.$ac_ext
17975 cat >>conftest.$ac_ext <<_ACEOF
17976 /* end confdefs.h. */
17977
17978
17979 #include <linux/blkdev.h>
17980
17981 int
17982 main (void)
17983 {
17984
17985 extern enum bio_rw_flags rw;
17986
17987 rw = BIO_RW_UNPLUG;
17988
17989 ;
17990 return 0;
17991 }
17992
17993 _ACEOF
17994
17995
17996
17997 cat - <<_ACEOF >conftest.h
17998
17999 _ACEOF
18000
18001
18002 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
18003 echo "obj-m := conftest.o" >build/Makefile
18004 modpost_flag=''
18005 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
18006 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
18007 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18008 (eval $ac_try) 2>&5
18009 ac_status=$?
18010 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18011 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
18012 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18013 (eval $ac_try) 2>&5
18014 ac_status=$?
18015 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18016 (exit $ac_status); }; }; then
18017
18018 { $as_echo "$as_me:$LINENO: result: yes" >&5
18019 $as_echo "yes" >&6; }
18020
18021 cat >>confdefs.h <<\_ACEOF
18022 #define HAVE_BLK_QUEUE_HAVE_BIO_RW_UNPLUG 1
18023 _ACEOF
18024
18025
18026 else
18027 $as_echo "$as_me: failed program was:" >&5
18028 sed 's/^/| /' conftest.$ac_ext >&5
18029
18030 { $as_echo "$as_me:$LINENO: result: no" >&5
18031 $as_echo "no" >&6; }
18032
18033
18034
18035 fi
18036
18037 rm -Rf build
18038
18039
18040 EXTRA_KCFLAGS="$tmp_flags"
18041
18042
18043 { $as_echo "$as_me:$LINENO: checking whether struct blk_plug is available" >&5
18044 $as_echo_n "checking whether struct blk_plug is available... " >&6; }
18045 tmp_flags="$EXTRA_KCFLAGS"
18046 EXTRA_KCFLAGS="${NO_UNUSED_BUT_SET_VARIABLE}"
18047
18048
18049 cat confdefs.h - <<_ACEOF >conftest.c
18050 /* confdefs.h. */
18051 _ACEOF
18052 cat confdefs.h >>conftest.$ac_ext
18053 cat >>conftest.$ac_ext <<_ACEOF
18054 /* end confdefs.h. */
18055
18056
18057 #include <linux/blkdev.h>
18058
18059 int
18060 main (void)
18061 {
18062
18063 struct blk_plug plug;
18064
18065 blk_start_plug(&plug);
18066 blk_finish_plug(&plug);
18067
18068 ;
18069 return 0;
18070 }
18071
18072 _ACEOF
18073
18074
18075
18076 cat - <<_ACEOF >conftest.h
18077
18078 _ACEOF
18079
18080
18081 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
18082 echo "obj-m := conftest.o" >build/Makefile
18083 modpost_flag=''
18084 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
18085 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
18086 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18087 (eval $ac_try) 2>&5
18088 ac_status=$?
18089 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18090 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
18091 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18092 (eval $ac_try) 2>&5
18093 ac_status=$?
18094 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18095 (exit $ac_status); }; }; then
18096
18097 { $as_echo "$as_me:$LINENO: result: yes" >&5
18098 $as_echo "yes" >&6; }
18099
18100 cat >>confdefs.h <<\_ACEOF
18101 #define HAVE_BLK_QUEUE_HAVE_BLK_PLUG 1
18102 _ACEOF
18103
18104
18105 else
18106 $as_echo "$as_me: failed program was:" >&5
18107 sed 's/^/| /' conftest.$ac_ext >&5
18108
18109 { $as_echo "$as_me:$LINENO: result: no" >&5
18110 $as_echo "no" >&6; }
18111
18112
18113
18114 fi
18115
18116 rm -Rf build
18117
18118
18119 EXTRA_KCFLAGS="$tmp_flags"
18120
18121 { $as_echo "$as_me:$LINENO: checking whether get_disk_and_module() is available" >&5
18122 $as_echo_n "checking whether get_disk_and_module() is available... " >&6; }
18123
18124
18125
18126 cat confdefs.h - <<_ACEOF >conftest.c
18127 /* confdefs.h. */
18128 _ACEOF
18129 cat confdefs.h >>conftest.$ac_ext
18130 cat >>conftest.$ac_ext <<_ACEOF
18131 /* end confdefs.h. */
18132
18133
18134 #include <linux/genhd.h>
18135
18136 int
18137 main (void)
18138 {
18139
18140 struct gendisk *disk = NULL;
18141 (void) get_disk_and_module(disk);
18142
18143 ;
18144 return 0;
18145 }
18146
18147 _ACEOF
18148
18149
18150
18151 cat - <<_ACEOF >conftest.h
18152
18153 _ACEOF
18154
18155
18156 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
18157 echo "obj-m := conftest.o" >build/Makefile
18158 modpost_flag=''
18159 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
18160 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
18161 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18162 (eval $ac_try) 2>&5
18163 ac_status=$?
18164 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18165 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
18166 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18167 (eval $ac_try) 2>&5
18168 ac_status=$?
18169 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18170 (exit $ac_status); }; }; then
18171 rc=0
18172 else
18173 $as_echo "$as_me: failed program was:" >&5
18174 sed 's/^/| /' conftest.$ac_ext >&5
18175 rc=1
18176
18177
18178 fi
18179
18180 rm -Rf build
18181
18182
18183 if test $rc -ne 0; then :
18184
18185 { $as_echo "$as_me:$LINENO: result: no" >&5
18186 $as_echo "no" >&6; }
18187
18188 else
18189 if test "x$enable_linux_builtin" != xyes; then
18190
18191 grep -q -E '[[:space:]]get_disk_and_module[[:space:]]' \
18192 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
18193 rc=$?
18194 if test $rc -ne 0; then
18195 export=0
18196 for file in block/genhd.c; do
18197 grep -q -E "EXPORT_SYMBOL.*(get_disk_and_module)" \
18198 "$LINUX/$file" 2>/dev/null
18199 rc=$?
18200 if test $rc -eq 0; then
18201 export=1
18202 break;
18203 fi
18204 done
18205 if test $export -eq 0; then :
18206 rc=1
18207 else :
18208 rc=0
18209 fi
18210 else :
18211 rc=0
18212 fi
18213
18214 fi
18215 if test $rc -ne 0; then :
18216
18217 { $as_echo "$as_me:$LINENO: result: no" >&5
18218 $as_echo "no" >&6; }
18219
18220 else :
18221
18222 { $as_echo "$as_me:$LINENO: result: yes" >&5
18223 $as_echo "yes" >&6; }
18224
18225 cat >>confdefs.h <<\_ACEOF
18226 #define HAVE_GET_DISK_AND_MODULE 1
18227 _ACEOF
18228
18229
18230 fi
18231 fi
18232
18233
18234
18235 { $as_echo "$as_me:$LINENO: checking whether get_disk_ro() is available" >&5
18236 $as_echo_n "checking whether get_disk_ro() is available... " >&6; }
18237 tmp_flags="$EXTRA_KCFLAGS"
18238 EXTRA_KCFLAGS="${NO_UNUSED_BUT_SET_VARIABLE}"
18239
18240
18241 cat confdefs.h - <<_ACEOF >conftest.c
18242 /* confdefs.h. */
18243 _ACEOF
18244 cat confdefs.h >>conftest.$ac_ext
18245 cat >>conftest.$ac_ext <<_ACEOF
18246 /* end confdefs.h. */
18247
18248
18249 #include <linux/blkdev.h>
18250
18251 int
18252 main (void)
18253 {
18254
18255 struct gendisk *disk = NULL;
18256 (void) get_disk_ro(disk);
18257
18258 ;
18259 return 0;
18260 }
18261
18262 _ACEOF
18263
18264
18265
18266 cat - <<_ACEOF >conftest.h
18267
18268 _ACEOF
18269
18270
18271 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
18272 echo "obj-m := conftest.o" >build/Makefile
18273 modpost_flag=''
18274 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
18275 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
18276 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18277 (eval $ac_try) 2>&5
18278 ac_status=$?
18279 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18280 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
18281 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18282 (eval $ac_try) 2>&5
18283 ac_status=$?
18284 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18285 (exit $ac_status); }; }; then
18286
18287 { $as_echo "$as_me:$LINENO: result: yes" >&5
18288 $as_echo "yes" >&6; }
18289
18290 cat >>confdefs.h <<\_ACEOF
18291 #define HAVE_GET_DISK_RO 1
18292 _ACEOF
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:$LINENO: result: no" >&5
18300 $as_echo "no" >&6; }
18301
18302
18303
18304 fi
18305
18306 rm -Rf build
18307
18308
18309 EXTRA_KCFLAGS="$tmp_flags"
18310
18311 { $as_echo "$as_me:$LINENO: checking whether get_gendisk() is available" >&5
18312 $as_echo_n "checking whether get_gendisk() is available... " >&6; }
18313
18314
18315
18316 cat confdefs.h - <<_ACEOF >conftest.c
18317 /* confdefs.h. */
18318 _ACEOF
18319 cat confdefs.h >>conftest.$ac_ext
18320 cat >>conftest.$ac_ext <<_ACEOF
18321 /* end confdefs.h. */
18322
18323
18324 #include <linux/genhd.h>
18325
18326 int
18327 main (void)
18328 {
18329
18330 get_gendisk(0, NULL);
18331
18332 ;
18333 return 0;
18334 }
18335
18336 _ACEOF
18337
18338
18339
18340 cat - <<_ACEOF >conftest.h
18341
18342 _ACEOF
18343
18344
18345 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
18346 echo "obj-m := conftest.o" >build/Makefile
18347 modpost_flag=''
18348 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
18349 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
18350 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18351 (eval $ac_try) 2>&5
18352 ac_status=$?
18353 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18354 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
18355 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18356 (eval $ac_try) 2>&5
18357 ac_status=$?
18358 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18359 (exit $ac_status); }; }; then
18360 rc=0
18361 else
18362 $as_echo "$as_me: failed program was:" >&5
18363 sed 's/^/| /' conftest.$ac_ext >&5
18364 rc=1
18365
18366
18367 fi
18368
18369 rm -Rf build
18370
18371
18372 if test $rc -ne 0; then :
18373
18374 { $as_echo "$as_me:$LINENO: result: no" >&5
18375 $as_echo "no" >&6; }
18376
18377 else
18378 if test "x$enable_linux_builtin" != xyes; then
18379
18380 grep -q -E '[[:space:]]get_gendisk[[:space:]]' \
18381 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
18382 rc=$?
18383 if test $rc -ne 0; then
18384 export=0
18385 for file in block/genhd.c; do
18386 grep -q -E "EXPORT_SYMBOL.*(get_gendisk)" \
18387 "$LINUX/$file" 2>/dev/null
18388 rc=$?
18389 if test $rc -eq 0; then
18390 export=1
18391 break;
18392 fi
18393 done
18394 if test $export -eq 0; then :
18395 rc=1
18396 else :
18397 rc=0
18398 fi
18399 else :
18400 rc=0
18401 fi
18402
18403 fi
18404 if test $rc -ne 0; then :
18405
18406 { $as_echo "$as_me:$LINENO: result: no" >&5
18407 $as_echo "no" >&6; }
18408
18409 else :
18410
18411 { $as_echo "$as_me:$LINENO: result: yes" >&5
18412 $as_echo "yes" >&6; }
18413
18414 cat >>confdefs.h <<\_ACEOF
18415 #define HAVE_GET_GENDISK 1
18416 _ACEOF
18417
18418
18419 fi
18420 fi
18421
18422
18423
18424 { $as_echo "$as_me:$LINENO: checking whether bio_set_op_attrs is available" >&5
18425 $as_echo_n "checking whether bio_set_op_attrs is available... " >&6; }
18426
18427
18428 cat confdefs.h - <<_ACEOF >conftest.c
18429 /* confdefs.h. */
18430 _ACEOF
18431 cat confdefs.h >>conftest.$ac_ext
18432 cat >>conftest.$ac_ext <<_ACEOF
18433 /* end confdefs.h. */
18434
18435
18436 #include <linux/bio.h>
18437
18438 int
18439 main (void)
18440 {
18441
18442 struct bio *bio __attribute__ ((unused)) = NULL;
18443
18444 bio_set_op_attrs(bio, 0, 0);
18445
18446 ;
18447 return 0;
18448 }
18449
18450 _ACEOF
18451
18452
18453
18454 cat - <<_ACEOF >conftest.h
18455
18456 _ACEOF
18457
18458
18459 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
18460 echo "obj-m := conftest.o" >build/Makefile
18461 modpost_flag=''
18462 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
18463 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
18464 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18465 (eval $ac_try) 2>&5
18466 ac_status=$?
18467 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18468 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
18469 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18470 (eval $ac_try) 2>&5
18471 ac_status=$?
18472 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18473 (exit $ac_status); }; }; then
18474
18475 { $as_echo "$as_me:$LINENO: result: yes" >&5
18476 $as_echo "yes" >&6; }
18477
18478 cat >>confdefs.h <<\_ACEOF
18479 #define HAVE_BIO_SET_OP_ATTRS 1
18480 _ACEOF
18481
18482
18483 else
18484 $as_echo "$as_me: failed program was:" >&5
18485 sed 's/^/| /' conftest.$ac_ext >&5
18486
18487 { $as_echo "$as_me:$LINENO: result: no" >&5
18488 $as_echo "no" >&6; }
18489
18490
18491
18492 fi
18493
18494 rm -Rf build
18495
18496
18497
18498
18499 { $as_echo "$as_me:$LINENO: checking whether generic_readlink is global" >&5
18500 $as_echo_n "checking whether generic_readlink is global... " >&6; }
18501
18502
18503 cat confdefs.h - <<_ACEOF >conftest.c
18504 /* confdefs.h. */
18505 _ACEOF
18506 cat confdefs.h >>conftest.$ac_ext
18507 cat >>conftest.$ac_ext <<_ACEOF
18508 /* end confdefs.h. */
18509
18510
18511 #include <linux/fs.h>
18512
18513 int
18514 main (void)
18515 {
18516
18517 int i __attribute__ ((unused));
18518
18519 i = generic_readlink(NULL, NULL, 0);
18520
18521 ;
18522 return 0;
18523 }
18524
18525 _ACEOF
18526
18527
18528
18529 cat - <<_ACEOF >conftest.h
18530
18531 _ACEOF
18532
18533
18534 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
18535 echo "obj-m := conftest.o" >build/Makefile
18536 modpost_flag=''
18537 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
18538 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
18539 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18540 (eval $ac_try) 2>&5
18541 ac_status=$?
18542 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18543 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
18544 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18545 (eval $ac_try) 2>&5
18546 ac_status=$?
18547 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18548 (exit $ac_status); }; }; then
18549
18550 { $as_echo "$as_me:$LINENO: result: yes" >&5
18551 $as_echo "yes" >&6; }
18552
18553 cat >>confdefs.h <<\_ACEOF
18554 #define HAVE_GENERIC_READLINK 1
18555 _ACEOF
18556
18557
18558 else
18559 $as_echo "$as_me: failed program was:" >&5
18560 sed 's/^/| /' conftest.$ac_ext >&5
18561
18562 { $as_echo "$as_me:$LINENO: result: no" >&5
18563 $as_echo "no" >&6; }
18564
18565
18566
18567 fi
18568
18569 rm -Rf build
18570
18571
18572
18573
18574 { $as_echo "$as_me:$LINENO: checking whether ql->discard_granularity is available" >&5
18575 $as_echo_n "checking whether ql->discard_granularity is available... " >&6; }
18576
18577
18578 cat confdefs.h - <<_ACEOF >conftest.c
18579 /* confdefs.h. */
18580 _ACEOF
18581 cat confdefs.h >>conftest.$ac_ext
18582 cat >>conftest.$ac_ext <<_ACEOF
18583 /* end confdefs.h. */
18584
18585
18586 #include <linux/blkdev.h>
18587
18588 int
18589 main (void)
18590 {
18591
18592 struct queue_limits ql __attribute__ ((unused));
18593
18594 ql.discard_granularity = 0;
18595
18596 ;
18597 return 0;
18598 }
18599
18600 _ACEOF
18601
18602
18603
18604 cat - <<_ACEOF >conftest.h
18605
18606 _ACEOF
18607
18608
18609 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
18610 echo "obj-m := conftest.o" >build/Makefile
18611 modpost_flag=''
18612 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
18613 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
18614 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18615 (eval $ac_try) 2>&5
18616 ac_status=$?
18617 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18618 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
18619 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18620 (eval $ac_try) 2>&5
18621 ac_status=$?
18622 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18623 (exit $ac_status); }; }; then
18624
18625 { $as_echo "$as_me:$LINENO: result: yes" >&5
18626 $as_echo "yes" >&6; }
18627
18628 cat >>confdefs.h <<\_ACEOF
18629 #define HAVE_DISCARD_GRANULARITY 1
18630 _ACEOF
18631
18632
18633 else
18634 $as_echo "$as_me: failed program was:" >&5
18635 sed 's/^/| /' conftest.$ac_ext >&5
18636
18637 { $as_echo "$as_me:$LINENO: result: no" >&5
18638 $as_echo "no" >&6; }
18639
18640
18641
18642 fi
18643
18644 rm -Rf build
18645
18646
18647
18648
18649 { $as_echo "$as_me:$LINENO: checking whether super_block uses const struct xattr_handler" >&5
18650 $as_echo_n "checking whether super_block uses const struct xattr_handler... " >&6; }
18651
18652
18653 cat confdefs.h - <<_ACEOF >conftest.c
18654 /* confdefs.h. */
18655 _ACEOF
18656 cat confdefs.h >>conftest.$ac_ext
18657 cat >>conftest.$ac_ext <<_ACEOF
18658 /* end confdefs.h. */
18659
18660
18661 #include <linux/fs.h>
18662 #include <linux/xattr.h>
18663
18664 const struct xattr_handler xattr_test_handler = {
18665 .prefix = "test",
18666 .get = NULL,
18667 .set = NULL,
18668 };
18669
18670 const struct xattr_handler *xattr_handlers[] = {
18671 &xattr_test_handler,
18672 };
18673
18674 const struct super_block sb __attribute__ ((unused)) = {
18675 .s_xattr = xattr_handlers,
18676 };
18677
18678 int
18679 main (void)
18680 {
18681
18682
18683 ;
18684 return 0;
18685 }
18686
18687 _ACEOF
18688
18689
18690
18691 cat - <<_ACEOF >conftest.h
18692
18693 _ACEOF
18694
18695
18696 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
18697 echo "obj-m := conftest.o" >build/Makefile
18698 modpost_flag=''
18699 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
18700 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
18701 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18702 (eval $ac_try) 2>&5
18703 ac_status=$?
18704 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18705 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
18706 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18707 (eval $ac_try) 2>&5
18708 ac_status=$?
18709 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18710 (exit $ac_status); }; }; then
18711
18712 { $as_echo "$as_me:$LINENO: result: yes" >&5
18713 $as_echo "yes" >&6; }
18714
18715 cat >>confdefs.h <<\_ACEOF
18716 #define HAVE_CONST_XATTR_HANDLER 1
18717 _ACEOF
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:$LINENO: result: no" >&5
18725 $as_echo "no" >&6; }
18726
18727
18728
18729 fi
18730
18731 rm -Rf build
18732
18733
18734
18735
18736 { $as_echo "$as_me:$LINENO: checking whether xattr_handler has name" >&5
18737 $as_echo_n "checking whether xattr_handler has name... " >&6; }
18738
18739
18740 cat confdefs.h - <<_ACEOF >conftest.c
18741 /* confdefs.h. */
18742 _ACEOF
18743 cat confdefs.h >>conftest.$ac_ext
18744 cat >>conftest.$ac_ext <<_ACEOF
18745 /* end confdefs.h. */
18746
18747
18748 #include <linux/xattr.h>
18749
18750 static const struct xattr_handler
18751 xops __attribute__ ((unused)) = {
18752 .name = XATTR_NAME_POSIX_ACL_ACCESS,
18753 };
18754
18755 int
18756 main (void)
18757 {
18758
18759
18760 ;
18761 return 0;
18762 }
18763
18764 _ACEOF
18765
18766
18767
18768 cat - <<_ACEOF >conftest.h
18769
18770 _ACEOF
18771
18772
18773 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
18774 echo "obj-m := conftest.o" >build/Makefile
18775 modpost_flag=''
18776 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
18777 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
18778 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18779 (eval $ac_try) 2>&5
18780 ac_status=$?
18781 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18782 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
18783 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18784 (eval $ac_try) 2>&5
18785 ac_status=$?
18786 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18787 (exit $ac_status); }; }; then
18788
18789 { $as_echo "$as_me:$LINENO: result: yes" >&5
18790 $as_echo "yes" >&6; }
18791
18792 cat >>confdefs.h <<\_ACEOF
18793 #define HAVE_XATTR_HANDLER_NAME 1
18794 _ACEOF
18795
18796
18797 else
18798 $as_echo "$as_me: failed program was:" >&5
18799 sed 's/^/| /' conftest.$ac_ext >&5
18800
18801 { $as_echo "$as_me:$LINENO: result: no" >&5
18802 $as_echo "no" >&6; }
18803
18804
18805
18806 fi
18807
18808 rm -Rf build
18809
18810
18811
18812
18813 { $as_echo "$as_me:$LINENO: checking whether xattr_handler->get() wants both dentry and inode" >&5
18814 $as_echo_n "checking whether xattr_handler->get() wants both dentry and inode... " >&6; }
18815
18816
18817 cat confdefs.h - <<_ACEOF >conftest.c
18818 /* confdefs.h. */
18819 _ACEOF
18820 cat confdefs.h >>conftest.$ac_ext
18821 cat >>conftest.$ac_ext <<_ACEOF
18822 /* end confdefs.h. */
18823
18824
18825 #include <linux/xattr.h>
18826
18827 int get(const struct xattr_handler *handler,
18828 struct dentry *dentry, struct inode *inode,
18829 const char *name, void *buffer, size_t size) { return 0; }
18830 static const struct xattr_handler
18831 xops __attribute__ ((unused)) = {
18832 .get = get,
18833 };
18834
18835 int
18836 main (void)
18837 {
18838
18839
18840 ;
18841 return 0;
18842 }
18843
18844 _ACEOF
18845
18846
18847
18848 cat - <<_ACEOF >conftest.h
18849
18850 _ACEOF
18851
18852
18853 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
18854 echo "obj-m := conftest.o" >build/Makefile
18855 modpost_flag=''
18856 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
18857 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
18858 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18859 (eval $ac_try) 2>&5
18860 ac_status=$?
18861 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18862 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
18863 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18864 (eval $ac_try) 2>&5
18865 ac_status=$?
18866 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18867 (exit $ac_status); }; }; then
18868
18869 { $as_echo "$as_me:$LINENO: result: yes" >&5
18870 $as_echo "yes" >&6; }
18871
18872 cat >>confdefs.h <<\_ACEOF
18873 #define HAVE_XATTR_GET_DENTRY_INODE 1
18874 _ACEOF
18875
18876
18877 else
18878 $as_echo "$as_me: failed program was:" >&5
18879 sed 's/^/| /' conftest.$ac_ext >&5
18880
18881 { $as_echo "$as_me:$LINENO: result: no" >&5
18882 $as_echo "no" >&6; }
18883 { $as_echo "$as_me:$LINENO: checking whether xattr_handler->get() wants xattr_handler" >&5
18884 $as_echo_n "checking whether xattr_handler->get() wants xattr_handler... " >&6; }
18885
18886
18887 cat confdefs.h - <<_ACEOF >conftest.c
18888 /* confdefs.h. */
18889 _ACEOF
18890 cat confdefs.h >>conftest.$ac_ext
18891 cat >>conftest.$ac_ext <<_ACEOF
18892 /* end confdefs.h. */
18893
18894
18895 #include <linux/xattr.h>
18896
18897 int get(const struct xattr_handler *handler,
18898 struct dentry *dentry, const char *name,
18899 void *buffer, size_t size) { return 0; }
18900 static const struct xattr_handler
18901 xops __attribute__ ((unused)) = {
18902 .get = get,
18903 };
18904
18905 int
18906 main (void)
18907 {
18908
18909
18910 ;
18911 return 0;
18912 }
18913
18914 _ACEOF
18915
18916
18917
18918 cat - <<_ACEOF >conftest.h
18919
18920 _ACEOF
18921
18922
18923 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
18924 echo "obj-m := conftest.o" >build/Makefile
18925 modpost_flag=''
18926 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
18927 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
18928 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18929 (eval $ac_try) 2>&5
18930 ac_status=$?
18931 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18932 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
18933 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18934 (eval $ac_try) 2>&5
18935 ac_status=$?
18936 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18937 (exit $ac_status); }; }; then
18938
18939 { $as_echo "$as_me:$LINENO: result: yes" >&5
18940 $as_echo "yes" >&6; }
18941
18942 cat >>confdefs.h <<\_ACEOF
18943 #define HAVE_XATTR_GET_HANDLER 1
18944 _ACEOF
18945
18946
18947 else
18948 $as_echo "$as_me: failed program was:" >&5
18949 sed 's/^/| /' conftest.$ac_ext >&5
18950
18951 { $as_echo "$as_me:$LINENO: result: no" >&5
18952 $as_echo "no" >&6; }
18953 { $as_echo "$as_me:$LINENO: checking whether xattr_handler->get() wants dentry" >&5
18954 $as_echo_n "checking whether xattr_handler->get() wants dentry... " >&6; }
18955
18956
18957 cat confdefs.h - <<_ACEOF >conftest.c
18958 /* confdefs.h. */
18959 _ACEOF
18960 cat confdefs.h >>conftest.$ac_ext
18961 cat >>conftest.$ac_ext <<_ACEOF
18962 /* end confdefs.h. */
18963
18964
18965 #include <linux/xattr.h>
18966
18967 int get(struct dentry *dentry, const char *name,
18968 void *buffer, size_t size, int handler_flags)
18969 { return 0; }
18970 static const struct xattr_handler
18971 xops __attribute__ ((unused)) = {
18972 .get = get,
18973 };
18974
18975 int
18976 main (void)
18977 {
18978
18979
18980 ;
18981 return 0;
18982 }
18983
18984 _ACEOF
18985
18986
18987
18988 cat - <<_ACEOF >conftest.h
18989
18990 _ACEOF
18991
18992
18993 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
18994 echo "obj-m := conftest.o" >build/Makefile
18995 modpost_flag=''
18996 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
18997 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
18998 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18999 (eval $ac_try) 2>&5
19000 ac_status=$?
19001 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19002 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
19003 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19004 (eval $ac_try) 2>&5
19005 ac_status=$?
19006 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19007 (exit $ac_status); }; }; then
19008
19009 { $as_echo "$as_me:$LINENO: result: yes" >&5
19010 $as_echo "yes" >&6; }
19011
19012 cat >>confdefs.h <<\_ACEOF
19013 #define HAVE_XATTR_GET_DENTRY 1
19014 _ACEOF
19015
19016
19017 else
19018 $as_echo "$as_me: failed program was:" >&5
19019 sed 's/^/| /' conftest.$ac_ext >&5
19020
19021 { $as_echo "$as_me:$LINENO: result: no" >&5
19022 $as_echo "no" >&6; }
19023 { $as_echo "$as_me:$LINENO: checking whether xattr_handler->get() wants inode" >&5
19024 $as_echo_n "checking whether xattr_handler->get() wants inode... " >&6; }
19025
19026
19027 cat confdefs.h - <<_ACEOF >conftest.c
19028 /* confdefs.h. */
19029 _ACEOF
19030 cat confdefs.h >>conftest.$ac_ext
19031 cat >>conftest.$ac_ext <<_ACEOF
19032 /* end confdefs.h. */
19033
19034
19035 #include <linux/xattr.h>
19036
19037 int get(struct inode *ip, const char *name,
19038 void *buffer, size_t size) { return 0; }
19039 static const struct xattr_handler
19040 xops __attribute__ ((unused)) = {
19041 .get = get,
19042 };
19043
19044 int
19045 main (void)
19046 {
19047
19048
19049 ;
19050 return 0;
19051 }
19052
19053 _ACEOF
19054
19055
19056
19057 cat - <<_ACEOF >conftest.h
19058
19059 _ACEOF
19060
19061
19062 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
19063 echo "obj-m := conftest.o" >build/Makefile
19064 modpost_flag=''
19065 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
19066 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
19067 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19068 (eval $ac_try) 2>&5
19069 ac_status=$?
19070 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19071 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
19072 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19073 (eval $ac_try) 2>&5
19074 ac_status=$?
19075 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19076 (exit $ac_status); }; }; then
19077
19078 { $as_echo "$as_me:$LINENO: result: yes" >&5
19079 $as_echo "yes" >&6; }
19080
19081 cat >>confdefs.h <<\_ACEOF
19082 #define HAVE_XATTR_GET_INODE 1
19083 _ACEOF
19084
19085
19086 else
19087 $as_echo "$as_me: failed program was:" >&5
19088 sed 's/^/| /' conftest.$ac_ext >&5
19089
19090 { { $as_echo "$as_me:$LINENO: error: no; please file a bug report" >&5
19091 $as_echo "$as_me: error: no; please file a bug report" >&2;}
19092 { (exit 1); exit 1; }; }
19093
19094
19095
19096 fi
19097
19098 rm -Rf build
19099
19100
19101
19102
19103
19104 fi
19105
19106 rm -Rf build
19107
19108
19109
19110
19111
19112 fi
19113
19114 rm -Rf build
19115
19116
19117
19118
19119
19120 fi
19121
19122 rm -Rf build
19123
19124
19125
19126
19127 { $as_echo "$as_me:$LINENO: checking whether xattr_handler->set() wants both dentry and inode" >&5
19128 $as_echo_n "checking whether xattr_handler->set() wants both dentry and inode... " >&6; }
19129
19130
19131 cat confdefs.h - <<_ACEOF >conftest.c
19132 /* confdefs.h. */
19133 _ACEOF
19134 cat confdefs.h >>conftest.$ac_ext
19135 cat >>conftest.$ac_ext <<_ACEOF
19136 /* end confdefs.h. */
19137
19138
19139 #include <linux/xattr.h>
19140
19141 int set(const struct xattr_handler *handler,
19142 struct dentry *dentry, struct inode *inode,
19143 const char *name, const void *buffer,
19144 size_t size, int flags)
19145 { return 0; }
19146 static const struct xattr_handler
19147 xops __attribute__ ((unused)) = {
19148 .set = set,
19149 };
19150
19151 int
19152 main (void)
19153 {
19154
19155
19156 ;
19157 return 0;
19158 }
19159
19160 _ACEOF
19161
19162
19163
19164 cat - <<_ACEOF >conftest.h
19165
19166 _ACEOF
19167
19168
19169 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
19170 echo "obj-m := conftest.o" >build/Makefile
19171 modpost_flag=''
19172 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
19173 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
19174 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19175 (eval $ac_try) 2>&5
19176 ac_status=$?
19177 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19178 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
19179 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19180 (eval $ac_try) 2>&5
19181 ac_status=$?
19182 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19183 (exit $ac_status); }; }; then
19184
19185 { $as_echo "$as_me:$LINENO: result: yes" >&5
19186 $as_echo "yes" >&6; }
19187
19188 cat >>confdefs.h <<\_ACEOF
19189 #define HAVE_XATTR_SET_DENTRY_INODE 1
19190 _ACEOF
19191
19192
19193 else
19194 $as_echo "$as_me: failed program was:" >&5
19195 sed 's/^/| /' conftest.$ac_ext >&5
19196
19197 { $as_echo "$as_me:$LINENO: result: no" >&5
19198 $as_echo "no" >&6; }
19199 { $as_echo "$as_me:$LINENO: checking whether xattr_handler->set() wants xattr_handler" >&5
19200 $as_echo_n "checking whether xattr_handler->set() wants xattr_handler... " >&6; }
19201
19202
19203 cat confdefs.h - <<_ACEOF >conftest.c
19204 /* confdefs.h. */
19205 _ACEOF
19206 cat confdefs.h >>conftest.$ac_ext
19207 cat >>conftest.$ac_ext <<_ACEOF
19208 /* end confdefs.h. */
19209
19210
19211 #include <linux/xattr.h>
19212
19213 int set(const struct xattr_handler *handler,
19214 struct dentry *dentry, const char *name,
19215 const void *buffer, size_t size, int flags)
19216 { return 0; }
19217 static const struct xattr_handler
19218 xops __attribute__ ((unused)) = {
19219 .set = set,
19220 };
19221
19222 int
19223 main (void)
19224 {
19225
19226
19227 ;
19228 return 0;
19229 }
19230
19231 _ACEOF
19232
19233
19234
19235 cat - <<_ACEOF >conftest.h
19236
19237 _ACEOF
19238
19239
19240 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
19241 echo "obj-m := conftest.o" >build/Makefile
19242 modpost_flag=''
19243 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
19244 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
19245 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19246 (eval $ac_try) 2>&5
19247 ac_status=$?
19248 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19249 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
19250 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19251 (eval $ac_try) 2>&5
19252 ac_status=$?
19253 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19254 (exit $ac_status); }; }; then
19255
19256 { $as_echo "$as_me:$LINENO: result: yes" >&5
19257 $as_echo "yes" >&6; }
19258
19259 cat >>confdefs.h <<\_ACEOF
19260 #define HAVE_XATTR_SET_HANDLER 1
19261 _ACEOF
19262
19263
19264 else
19265 $as_echo "$as_me: failed program was:" >&5
19266 sed 's/^/| /' conftest.$ac_ext >&5
19267
19268 { $as_echo "$as_me:$LINENO: result: no" >&5
19269 $as_echo "no" >&6; }
19270 { $as_echo "$as_me:$LINENO: checking whether xattr_handler->set() wants dentry" >&5
19271 $as_echo_n "checking whether xattr_handler->set() wants dentry... " >&6; }
19272
19273
19274 cat confdefs.h - <<_ACEOF >conftest.c
19275 /* confdefs.h. */
19276 _ACEOF
19277 cat confdefs.h >>conftest.$ac_ext
19278 cat >>conftest.$ac_ext <<_ACEOF
19279 /* end confdefs.h. */
19280
19281
19282 #include <linux/xattr.h>
19283
19284 int set(struct dentry *dentry, const char *name,
19285 const void *buffer, size_t size, int flags,
19286 int handler_flags) { return 0; }
19287 static const struct xattr_handler
19288 xops __attribute__ ((unused)) = {
19289 .set = set,
19290 };
19291
19292 int
19293 main (void)
19294 {
19295
19296
19297 ;
19298 return 0;
19299 }
19300
19301 _ACEOF
19302
19303
19304
19305 cat - <<_ACEOF >conftest.h
19306
19307 _ACEOF
19308
19309
19310 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
19311 echo "obj-m := conftest.o" >build/Makefile
19312 modpost_flag=''
19313 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
19314 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
19315 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19316 (eval $ac_try) 2>&5
19317 ac_status=$?
19318 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19319 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
19320 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19321 (eval $ac_try) 2>&5
19322 ac_status=$?
19323 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19324 (exit $ac_status); }; }; then
19325
19326 { $as_echo "$as_me:$LINENO: result: yes" >&5
19327 $as_echo "yes" >&6; }
19328
19329 cat >>confdefs.h <<\_ACEOF
19330 #define HAVE_XATTR_SET_DENTRY 1
19331 _ACEOF
19332
19333
19334 else
19335 $as_echo "$as_me: failed program was:" >&5
19336 sed 's/^/| /' conftest.$ac_ext >&5
19337
19338 { $as_echo "$as_me:$LINENO: result: no" >&5
19339 $as_echo "no" >&6; }
19340 { $as_echo "$as_me:$LINENO: checking whether xattr_handler->set() wants inode" >&5
19341 $as_echo_n "checking whether xattr_handler->set() wants inode... " >&6; }
19342
19343
19344 cat confdefs.h - <<_ACEOF >conftest.c
19345 /* confdefs.h. */
19346 _ACEOF
19347 cat confdefs.h >>conftest.$ac_ext
19348 cat >>conftest.$ac_ext <<_ACEOF
19349 /* end confdefs.h. */
19350
19351
19352 #include <linux/xattr.h>
19353
19354 int set(struct inode *ip, const char *name,
19355 const void *buffer, size_t size, int flags)
19356 { return 0; }
19357 static const struct xattr_handler
19358 xops __attribute__ ((unused)) = {
19359 .set = set,
19360 };
19361
19362 int
19363 main (void)
19364 {
19365
19366
19367 ;
19368 return 0;
19369 }
19370
19371 _ACEOF
19372
19373
19374
19375 cat - <<_ACEOF >conftest.h
19376
19377 _ACEOF
19378
19379
19380 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
19381 echo "obj-m := conftest.o" >build/Makefile
19382 modpost_flag=''
19383 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
19384 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
19385 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19386 (eval $ac_try) 2>&5
19387 ac_status=$?
19388 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19389 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
19390 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19391 (eval $ac_try) 2>&5
19392 ac_status=$?
19393 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19394 (exit $ac_status); }; }; then
19395
19396 { $as_echo "$as_me:$LINENO: result: yes" >&5
19397 $as_echo "yes" >&6; }
19398
19399 cat >>confdefs.h <<\_ACEOF
19400 #define HAVE_XATTR_SET_INODE 1
19401 _ACEOF
19402
19403
19404 else
19405 $as_echo "$as_me: failed program was:" >&5
19406 sed 's/^/| /' conftest.$ac_ext >&5
19407
19408 { { $as_echo "$as_me:$LINENO: error: no; please file a bug report" >&5
19409 $as_echo "$as_me: error: no; please file a bug report" >&2;}
19410 { (exit 1); exit 1; }; }
19411
19412
19413
19414 fi
19415
19416 rm -Rf build
19417
19418
19419
19420
19421
19422 fi
19423
19424 rm -Rf build
19425
19426
19427
19428
19429
19430 fi
19431
19432 rm -Rf build
19433
19434
19435
19436
19437
19438 fi
19439
19440 rm -Rf build
19441
19442
19443
19444
19445 { $as_echo "$as_me:$LINENO: checking whether xattr_handler->list() wants simple" >&5
19446 $as_echo_n "checking whether xattr_handler->list() wants simple... " >&6; }
19447
19448
19449 cat confdefs.h - <<_ACEOF >conftest.c
19450 /* confdefs.h. */
19451 _ACEOF
19452 cat confdefs.h >>conftest.$ac_ext
19453 cat >>conftest.$ac_ext <<_ACEOF
19454 /* end confdefs.h. */
19455
19456
19457 #include <linux/xattr.h>
19458
19459 bool list(struct dentry *dentry) { return 0; }
19460 static const struct xattr_handler
19461 xops __attribute__ ((unused)) = {
19462 .list = list,
19463 };
19464
19465 int
19466 main (void)
19467 {
19468
19469
19470 ;
19471 return 0;
19472 }
19473
19474 _ACEOF
19475
19476
19477
19478 cat - <<_ACEOF >conftest.h
19479
19480 _ACEOF
19481
19482
19483 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
19484 echo "obj-m := conftest.o" >build/Makefile
19485 modpost_flag=''
19486 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
19487 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
19488 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19489 (eval $ac_try) 2>&5
19490 ac_status=$?
19491 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19492 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
19493 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19494 (eval $ac_try) 2>&5
19495 ac_status=$?
19496 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19497 (exit $ac_status); }; }; then
19498
19499 { $as_echo "$as_me:$LINENO: result: yes" >&5
19500 $as_echo "yes" >&6; }
19501
19502 cat >>confdefs.h <<\_ACEOF
19503 #define HAVE_XATTR_LIST_SIMPLE 1
19504 _ACEOF
19505
19506
19507 else
19508 $as_echo "$as_me: failed program was:" >&5
19509 sed 's/^/| /' conftest.$ac_ext >&5
19510
19511 { $as_echo "$as_me:$LINENO: result: no" >&5
19512 $as_echo "no" >&6; }
19513 { $as_echo "$as_me:$LINENO: checking whether xattr_handler->list() wants xattr_handler" >&5
19514 $as_echo_n "checking whether xattr_handler->list() wants xattr_handler... " >&6; }
19515
19516
19517 cat confdefs.h - <<_ACEOF >conftest.c
19518 /* confdefs.h. */
19519 _ACEOF
19520 cat confdefs.h >>conftest.$ac_ext
19521 cat >>conftest.$ac_ext <<_ACEOF
19522 /* end confdefs.h. */
19523
19524
19525 #include <linux/xattr.h>
19526
19527 size_t list(const struct xattr_handler *handler,
19528 struct dentry *dentry, char *list, size_t list_size,
19529 const char *name, size_t name_len) { return 0; }
19530 static const struct xattr_handler
19531 xops __attribute__ ((unused)) = {
19532 .list = list,
19533 };
19534
19535 int
19536 main (void)
19537 {
19538
19539
19540 ;
19541 return 0;
19542 }
19543
19544 _ACEOF
19545
19546
19547
19548 cat - <<_ACEOF >conftest.h
19549
19550 _ACEOF
19551
19552
19553 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
19554 echo "obj-m := conftest.o" >build/Makefile
19555 modpost_flag=''
19556 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
19557 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
19558 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19559 (eval $ac_try) 2>&5
19560 ac_status=$?
19561 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19562 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
19563 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19564 (eval $ac_try) 2>&5
19565 ac_status=$?
19566 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19567 (exit $ac_status); }; }; then
19568
19569 { $as_echo "$as_me:$LINENO: result: yes" >&5
19570 $as_echo "yes" >&6; }
19571
19572 cat >>confdefs.h <<\_ACEOF
19573 #define HAVE_XATTR_LIST_HANDLER 1
19574 _ACEOF
19575
19576
19577 else
19578 $as_echo "$as_me: failed program was:" >&5
19579 sed 's/^/| /' conftest.$ac_ext >&5
19580
19581 { $as_echo "$as_me:$LINENO: result: no" >&5
19582 $as_echo "no" >&6; }
19583 { $as_echo "$as_me:$LINENO: checking whether xattr_handler->list() wants dentry" >&5
19584 $as_echo_n "checking whether xattr_handler->list() wants dentry... " >&6; }
19585
19586
19587 cat confdefs.h - <<_ACEOF >conftest.c
19588 /* confdefs.h. */
19589 _ACEOF
19590 cat confdefs.h >>conftest.$ac_ext
19591 cat >>conftest.$ac_ext <<_ACEOF
19592 /* end confdefs.h. */
19593
19594
19595 #include <linux/xattr.h>
19596
19597 size_t list(struct dentry *dentry,
19598 char *list, size_t list_size,
19599 const char *name, size_t name_len,
19600 int handler_flags) { return 0; }
19601 static const struct xattr_handler
19602 xops __attribute__ ((unused)) = {
19603 .list = list,
19604 };
19605
19606 int
19607 main (void)
19608 {
19609
19610
19611 ;
19612 return 0;
19613 }
19614
19615 _ACEOF
19616
19617
19618
19619 cat - <<_ACEOF >conftest.h
19620
19621 _ACEOF
19622
19623
19624 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
19625 echo "obj-m := conftest.o" >build/Makefile
19626 modpost_flag=''
19627 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
19628 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
19629 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19630 (eval $ac_try) 2>&5
19631 ac_status=$?
19632 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19633 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
19634 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19635 (eval $ac_try) 2>&5
19636 ac_status=$?
19637 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19638 (exit $ac_status); }; }; then
19639
19640 { $as_echo "$as_me:$LINENO: result: yes" >&5
19641 $as_echo "yes" >&6; }
19642
19643 cat >>confdefs.h <<\_ACEOF
19644 #define HAVE_XATTR_LIST_DENTRY 1
19645 _ACEOF
19646
19647
19648 else
19649 $as_echo "$as_me: failed program was:" >&5
19650 sed 's/^/| /' conftest.$ac_ext >&5
19651
19652 { $as_echo "$as_me:$LINENO: result: no" >&5
19653 $as_echo "no" >&6; }
19654 { $as_echo "$as_me:$LINENO: checking whether xattr_handler->list() wants inode" >&5
19655 $as_echo_n "checking whether xattr_handler->list() wants inode... " >&6; }
19656
19657
19658 cat confdefs.h - <<_ACEOF >conftest.c
19659 /* confdefs.h. */
19660 _ACEOF
19661 cat confdefs.h >>conftest.$ac_ext
19662 cat >>conftest.$ac_ext <<_ACEOF
19663 /* end confdefs.h. */
19664
19665
19666 #include <linux/xattr.h>
19667
19668 size_t list(struct inode *ip, char *lst,
19669 size_t list_size, const char *name,
19670 size_t name_len) { return 0; }
19671 static const struct xattr_handler
19672 xops __attribute__ ((unused)) = {
19673 .list = list,
19674 };
19675
19676 int
19677 main (void)
19678 {
19679
19680
19681 ;
19682 return 0;
19683 }
19684
19685 _ACEOF
19686
19687
19688
19689 cat - <<_ACEOF >conftest.h
19690
19691 _ACEOF
19692
19693
19694 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
19695 echo "obj-m := conftest.o" >build/Makefile
19696 modpost_flag=''
19697 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
19698 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
19699 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19700 (eval $ac_try) 2>&5
19701 ac_status=$?
19702 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19703 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
19704 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19705 (eval $ac_try) 2>&5
19706 ac_status=$?
19707 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19708 (exit $ac_status); }; }; then
19709
19710 { $as_echo "$as_me:$LINENO: result: yes" >&5
19711 $as_echo "yes" >&6; }
19712
19713 cat >>confdefs.h <<\_ACEOF
19714 #define HAVE_XATTR_LIST_INODE 1
19715 _ACEOF
19716
19717
19718 else
19719 $as_echo "$as_me: failed program was:" >&5
19720 sed 's/^/| /' conftest.$ac_ext >&5
19721
19722 { { $as_echo "$as_me:$LINENO: error: no; please file a bug report" >&5
19723 $as_echo "$as_me: error: no; please file a bug report" >&2;}
19724 { (exit 1); exit 1; }; }
19725
19726
19727
19728 fi
19729
19730 rm -Rf build
19731
19732
19733
19734
19735
19736 fi
19737
19738 rm -Rf build
19739
19740
19741
19742
19743
19744 fi
19745
19746 rm -Rf build
19747
19748
19749
19750
19751
19752 fi
19753
19754 rm -Rf build
19755
19756
19757
19758
19759 { $as_echo "$as_me:$LINENO: checking whether inode_owner_or_capable() exists" >&5
19760 $as_echo_n "checking whether inode_owner_or_capable() exists... " >&6; }
19761
19762
19763 cat confdefs.h - <<_ACEOF >conftest.c
19764 /* confdefs.h. */
19765 _ACEOF
19766 cat confdefs.h >>conftest.$ac_ext
19767 cat >>conftest.$ac_ext <<_ACEOF
19768 /* end confdefs.h. */
19769
19770
19771 #include <linux/fs.h>
19772
19773 int
19774 main (void)
19775 {
19776
19777 struct inode *ip = NULL;
19778 (void) inode_owner_or_capable(ip);
19779
19780 ;
19781 return 0;
19782 }
19783
19784 _ACEOF
19785
19786
19787
19788 cat - <<_ACEOF >conftest.h
19789
19790 _ACEOF
19791
19792
19793 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
19794 echo "obj-m := conftest.o" >build/Makefile
19795 modpost_flag=''
19796 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
19797 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
19798 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19799 (eval $ac_try) 2>&5
19800 ac_status=$?
19801 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19802 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
19803 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19804 (eval $ac_try) 2>&5
19805 ac_status=$?
19806 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19807 (exit $ac_status); }; }; then
19808
19809 { $as_echo "$as_me:$LINENO: result: yes" >&5
19810 $as_echo "yes" >&6; }
19811
19812 cat >>confdefs.h <<\_ACEOF
19813 #define HAVE_INODE_OWNER_OR_CAPABLE 1
19814 _ACEOF
19815
19816
19817 else
19818 $as_echo "$as_me: failed program was:" >&5
19819 sed 's/^/| /' conftest.$ac_ext >&5
19820
19821 { $as_echo "$as_me:$LINENO: result: no" >&5
19822 $as_echo "no" >&6; }
19823 { $as_echo "$as_me:$LINENO: checking whether is_owner_or_cap() exists" >&5
19824 $as_echo_n "checking whether is_owner_or_cap() exists... " >&6; }
19825
19826
19827 cat confdefs.h - <<_ACEOF >conftest.c
19828 /* confdefs.h. */
19829 _ACEOF
19830 cat confdefs.h >>conftest.$ac_ext
19831 cat >>conftest.$ac_ext <<_ACEOF
19832 /* end confdefs.h. */
19833
19834
19835 #include <linux/fs.h>
19836 #include <linux/sched.h>
19837
19838 int
19839 main (void)
19840 {
19841
19842 struct inode *ip = NULL;
19843 (void) is_owner_or_cap(ip);
19844
19845 ;
19846 return 0;
19847 }
19848
19849 _ACEOF
19850
19851
19852
19853 cat - <<_ACEOF >conftest.h
19854
19855 _ACEOF
19856
19857
19858 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
19859 echo "obj-m := conftest.o" >build/Makefile
19860 modpost_flag=''
19861 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
19862 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
19863 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19864 (eval $ac_try) 2>&5
19865 ac_status=$?
19866 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19867 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
19868 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19869 (eval $ac_try) 2>&5
19870 ac_status=$?
19871 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19872 (exit $ac_status); }; }; then
19873
19874 { $as_echo "$as_me:$LINENO: result: yes" >&5
19875 $as_echo "yes" >&6; }
19876
19877 cat >>confdefs.h <<\_ACEOF
19878 #define HAVE_IS_OWNER_OR_CAP 1
19879 _ACEOF
19880
19881
19882 else
19883 $as_echo "$as_me: failed program was:" >&5
19884 sed 's/^/| /' conftest.$ac_ext >&5
19885
19886 { { $as_echo "$as_me:$LINENO: error: no - Please file a bug report at
19887 https://github.com/zfsonlinux/zfs/issues/new" >&5
19888 $as_echo "$as_me: error: no - Please file a bug report at
19889 https://github.com/zfsonlinux/zfs/issues/new" >&2;}
19890 { (exit 1); exit 1; }; }
19891
19892
19893
19894 fi
19895
19896 rm -Rf build
19897
19898
19899
19900
19901
19902 fi
19903
19904 rm -Rf build
19905
19906
19907
19908
19909 { $as_echo "$as_me:$LINENO: checking whether posix_acl_from_xattr() needs user_ns" >&5
19910 $as_echo_n "checking whether posix_acl_from_xattr() needs user_ns... " >&6; }
19911
19912
19913 cat confdefs.h - <<_ACEOF >conftest.c
19914 /* confdefs.h. */
19915 _ACEOF
19916 cat confdefs.h >>conftest.$ac_ext
19917 cat >>conftest.$ac_ext <<_ACEOF
19918 /* end confdefs.h. */
19919
19920
19921 #include <linux/cred.h>
19922 #include <linux/fs.h>
19923 #include <linux/posix_acl_xattr.h>
19924
19925 int
19926 main (void)
19927 {
19928
19929 posix_acl_from_xattr(&init_user_ns, NULL, 0);
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 $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
19949 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19950 (eval $ac_try) 2>&5
19951 ac_status=$?
19952 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19953 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
19954 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19955 (eval $ac_try) 2>&5
19956 ac_status=$?
19957 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19958 (exit $ac_status); }; }; then
19959
19960 { $as_echo "$as_me:$LINENO: result: yes" >&5
19961 $as_echo "yes" >&6; }
19962
19963 cat >>confdefs.h <<\_ACEOF
19964 #define HAVE_POSIX_ACL_FROM_XATTR_USERNS 1
19965 _ACEOF
19966
19967
19968 else
19969 $as_echo "$as_me: failed program was:" >&5
19970 sed 's/^/| /' conftest.$ac_ext >&5
19971
19972 { $as_echo "$as_me:$LINENO: result: no" >&5
19973 $as_echo "no" >&6; }
19974
19975
19976
19977 fi
19978
19979 rm -Rf build
19980
19981
19982
19983
19984 { $as_echo "$as_me:$LINENO: checking whether posix_acl_release() is available" >&5
19985 $as_echo_n "checking whether posix_acl_release() is available... " >&6; }
19986
19987
19988 cat confdefs.h - <<_ACEOF >conftest.c
19989 /* confdefs.h. */
19990 _ACEOF
19991 cat confdefs.h >>conftest.$ac_ext
19992 cat >>conftest.$ac_ext <<_ACEOF
19993 /* end confdefs.h. */
19994
19995
19996 #include <linux/cred.h>
19997 #include <linux/fs.h>
19998 #include <linux/posix_acl.h>
19999
20000 int
20001 main (void)
20002 {
20003
20004 struct posix_acl* tmp = posix_acl_alloc(1, 0);
20005 posix_acl_release(tmp);
20006
20007 ;
20008 return 0;
20009 }
20010
20011 _ACEOF
20012
20013
20014
20015 cat - <<_ACEOF >conftest.h
20016
20017 _ACEOF
20018
20019
20020 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
20021 echo "obj-m := conftest.o" >build/Makefile
20022 modpost_flag=''
20023 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
20024 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
20025 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20026 (eval $ac_try) 2>&5
20027 ac_status=$?
20028 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20029 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
20030 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20031 (eval $ac_try) 2>&5
20032 ac_status=$?
20033 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20034 (exit $ac_status); }; }; then
20035
20036 { $as_echo "$as_me:$LINENO: result: yes" >&5
20037 $as_echo "yes" >&6; }
20038
20039 cat >>confdefs.h <<\_ACEOF
20040 #define HAVE_POSIX_ACL_RELEASE 1
20041 _ACEOF
20042
20043
20044 { $as_echo "$as_me:$LINENO: checking whether posix_acl_release() is GPL-only" >&5
20045 $as_echo_n "checking whether posix_acl_release() is GPL-only... " >&6; }
20046
20047
20048 cat confdefs.h - <<_ACEOF >conftest.c
20049 /* confdefs.h. */
20050 _ACEOF
20051 cat confdefs.h >>conftest.$ac_ext
20052 cat >>conftest.$ac_ext <<_ACEOF
20053 /* end confdefs.h. */
20054
20055
20056 #include <linux/module.h>
20057 #include <linux/cred.h>
20058 #include <linux/fs.h>
20059 #include <linux/posix_acl.h>
20060
20061 MODULE_LICENSE("$ZFS_META_LICENSE");
20062
20063 int
20064 main (void)
20065 {
20066
20067 struct posix_acl* tmp = posix_acl_alloc(1, 0);
20068 posix_acl_release(tmp);
20069
20070 ;
20071 return 0;
20072 }
20073
20074 _ACEOF
20075
20076
20077
20078 cat - <<_ACEOF >conftest.h
20079
20080 _ACEOF
20081
20082
20083 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
20084 echo "obj-m := conftest.o" >build/Makefile
20085 modpost_flag=''
20086 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
20087 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
20088 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20089 (eval $ac_try) 2>&5
20090 ac_status=$?
20091 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20092 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
20093 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20094 (eval $ac_try) 2>&5
20095 ac_status=$?
20096 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20097 (exit $ac_status); }; }; then
20098
20099 { $as_echo "$as_me:$LINENO: result: no" >&5
20100 $as_echo "no" >&6; }
20101
20102 else
20103 $as_echo "$as_me: failed program was:" >&5
20104 sed 's/^/| /' conftest.$ac_ext >&5
20105
20106 { $as_echo "$as_me:$LINENO: result: yes" >&5
20107 $as_echo "yes" >&6; }
20108
20109 cat >>confdefs.h <<\_ACEOF
20110 #define HAVE_POSIX_ACL_RELEASE_GPL_ONLY 1
20111 _ACEOF
20112
20113
20114
20115
20116 fi
20117
20118 rm -Rf build
20119
20120
20121
20122 else
20123 $as_echo "$as_me: failed program was:" >&5
20124 sed 's/^/| /' conftest.$ac_ext >&5
20125
20126 { $as_echo "$as_me:$LINENO: result: no" >&5
20127 $as_echo "no" >&6; }
20128
20129
20130
20131 fi
20132
20133 rm -Rf build
20134
20135
20136
20137
20138 { $as_echo "$as_me:$LINENO: checking whether set_cached_acl() is usable" >&5
20139 $as_echo_n "checking whether set_cached_acl() is usable... " >&6; }
20140
20141
20142 cat confdefs.h - <<_ACEOF >conftest.c
20143 /* confdefs.h. */
20144 _ACEOF
20145 cat confdefs.h >>conftest.$ac_ext
20146 cat >>conftest.$ac_ext <<_ACEOF
20147 /* end confdefs.h. */
20148
20149
20150 #include <linux/module.h>
20151 #include <linux/cred.h>
20152 #include <linux/fs.h>
20153 #include <linux/posix_acl.h>
20154
20155 MODULE_LICENSE("$ZFS_META_LICENSE");
20156
20157 int
20158 main (void)
20159 {
20160
20161 struct inode *ip = NULL;
20162 struct posix_acl *acl = posix_acl_alloc(1, 0);
20163 set_cached_acl(ip, ACL_TYPE_ACCESS, acl);
20164 forget_cached_acl(ip, ACL_TYPE_ACCESS);
20165
20166 ;
20167 return 0;
20168 }
20169
20170 _ACEOF
20171
20172
20173
20174 cat - <<_ACEOF >conftest.h
20175
20176 _ACEOF
20177
20178
20179 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
20180 echo "obj-m := conftest.o" >build/Makefile
20181 modpost_flag=''
20182 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
20183 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
20184 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20185 (eval $ac_try) 2>&5
20186 ac_status=$?
20187 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20188 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
20189 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20190 (eval $ac_try) 2>&5
20191 ac_status=$?
20192 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20193 (exit $ac_status); }; }; then
20194
20195 { $as_echo "$as_me:$LINENO: result: yes" >&5
20196 $as_echo "yes" >&6; }
20197
20198 cat >>confdefs.h <<\_ACEOF
20199 #define HAVE_SET_CACHED_ACL_USABLE 1
20200 _ACEOF
20201
20202
20203 else
20204 $as_echo "$as_me: failed program was:" >&5
20205 sed 's/^/| /' conftest.$ac_ext >&5
20206
20207 { $as_echo "$as_me:$LINENO: result: no" >&5
20208 $as_echo "no" >&6; }
20209
20210
20211
20212 fi
20213
20214 rm -Rf build
20215
20216
20217
20218
20219 { $as_echo "$as_me:$LINENO: checking whether posix_acl_chmod exists" >&5
20220 $as_echo_n "checking whether posix_acl_chmod exists... " >&6; }
20221
20222
20223 cat confdefs.h - <<_ACEOF >conftest.c
20224 /* confdefs.h. */
20225 _ACEOF
20226 cat confdefs.h >>conftest.$ac_ext
20227 cat >>conftest.$ac_ext <<_ACEOF
20228 /* end confdefs.h. */
20229
20230
20231 #include <linux/fs.h>
20232 #include <linux/posix_acl.h>
20233
20234 int
20235 main (void)
20236 {
20237
20238 posix_acl_chmod(NULL, 0, 0)
20239
20240 ;
20241 return 0;
20242 }
20243
20244 _ACEOF
20245
20246
20247
20248 cat - <<_ACEOF >conftest.h
20249
20250 _ACEOF
20251
20252
20253 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
20254 echo "obj-m := conftest.o" >build/Makefile
20255 modpost_flag=''
20256 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
20257 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
20258 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20259 (eval $ac_try) 2>&5
20260 ac_status=$?
20261 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20262 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
20263 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20264 (eval $ac_try) 2>&5
20265 ac_status=$?
20266 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20267 (exit $ac_status); }; }; then
20268
20269 { $as_echo "$as_me:$LINENO: result: yes" >&5
20270 $as_echo "yes" >&6; }
20271
20272 cat >>confdefs.h <<\_ACEOF
20273 #define HAVE_POSIX_ACL_CHMOD 1
20274 _ACEOF
20275
20276
20277 else
20278 $as_echo "$as_me: failed program was:" >&5
20279 sed 's/^/| /' conftest.$ac_ext >&5
20280
20281 { $as_echo "$as_me:$LINENO: result: no" >&5
20282 $as_echo "no" >&6; }
20283
20284
20285
20286 fi
20287
20288 rm -Rf build
20289
20290
20291
20292 { $as_echo "$as_me:$LINENO: checking whether __posix_acl_chmod exists" >&5
20293 $as_echo_n "checking whether __posix_acl_chmod exists... " >&6; }
20294
20295
20296 cat confdefs.h - <<_ACEOF >conftest.c
20297 /* confdefs.h. */
20298 _ACEOF
20299 cat confdefs.h >>conftest.$ac_ext
20300 cat >>conftest.$ac_ext <<_ACEOF
20301 /* end confdefs.h. */
20302
20303
20304 #include <linux/fs.h>
20305 #include <linux/posix_acl.h>
20306
20307 int
20308 main (void)
20309 {
20310
20311 __posix_acl_chmod(NULL, 0, 0)
20312
20313 ;
20314 return 0;
20315 }
20316
20317 _ACEOF
20318
20319
20320
20321 cat - <<_ACEOF >conftest.h
20322
20323 _ACEOF
20324
20325
20326 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
20327 echo "obj-m := conftest.o" >build/Makefile
20328 modpost_flag=''
20329 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
20330 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
20331 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20332 (eval $ac_try) 2>&5
20333 ac_status=$?
20334 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20335 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
20336 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20337 (eval $ac_try) 2>&5
20338 ac_status=$?
20339 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20340 (exit $ac_status); }; }; then
20341
20342 { $as_echo "$as_me:$LINENO: result: yes" >&5
20343 $as_echo "yes" >&6; }
20344
20345 cat >>confdefs.h <<\_ACEOF
20346 #define HAVE___POSIX_ACL_CHMOD 1
20347 _ACEOF
20348
20349
20350 else
20351 $as_echo "$as_me: failed program was:" >&5
20352 sed 's/^/| /' conftest.$ac_ext >&5
20353
20354 { $as_echo "$as_me:$LINENO: result: no" >&5
20355 $as_echo "no" >&6; }
20356
20357
20358
20359 fi
20360
20361 rm -Rf build
20362
20363
20364
20365
20366 { $as_echo "$as_me:$LINENO: checking whether posix_acl_equiv_mode() wants umode_t" >&5
20367 $as_echo_n "checking whether posix_acl_equiv_mode() wants umode_t... " >&6; }
20368
20369
20370 cat confdefs.h - <<_ACEOF >conftest.c
20371 /* confdefs.h. */
20372 _ACEOF
20373 cat confdefs.h >>conftest.$ac_ext
20374 cat >>conftest.$ac_ext <<_ACEOF
20375 /* end confdefs.h. */
20376
20377
20378 #include <linux/fs.h>
20379 #include <linux/posix_acl.h>
20380
20381 int
20382 main (void)
20383 {
20384
20385 umode_t tmp;
20386 posix_acl_equiv_mode(NULL,&tmp);
20387
20388 ;
20389 return 0;
20390 }
20391
20392 _ACEOF
20393
20394
20395
20396 cat - <<_ACEOF >conftest.h
20397
20398 _ACEOF
20399
20400
20401 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
20402 echo "obj-m := conftest.o" >build/Makefile
20403 modpost_flag=''
20404 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
20405 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
20406 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20407 (eval $ac_try) 2>&5
20408 ac_status=$?
20409 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20410 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
20411 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20412 (eval $ac_try) 2>&5
20413 ac_status=$?
20414 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20415 (exit $ac_status); }; }; then
20416
20417 { $as_echo "$as_me:$LINENO: result: yes" >&5
20418 $as_echo "yes" >&6; }
20419
20420 cat >>confdefs.h <<\_ACEOF
20421 #define HAVE_POSIX_ACL_EQUIV_MODE_UMODE_T 1
20422 _ACEOF
20423
20424
20425 else
20426 $as_echo "$as_me: failed program was:" >&5
20427 sed 's/^/| /' conftest.$ac_ext >&5
20428
20429 { $as_echo "$as_me:$LINENO: result: no" >&5
20430 $as_echo "no" >&6; }
20431
20432
20433
20434 fi
20435
20436 rm -Rf build
20437
20438
20439
20440
20441 { $as_echo "$as_me:$LINENO: checking whether posix_acl_valid() wants user namespace" >&5
20442 $as_echo_n "checking whether posix_acl_valid() wants user namespace... " >&6; }
20443
20444
20445 cat confdefs.h - <<_ACEOF >conftest.c
20446 /* confdefs.h. */
20447 _ACEOF
20448 cat confdefs.h >>conftest.$ac_ext
20449 cat >>conftest.$ac_ext <<_ACEOF
20450 /* end confdefs.h. */
20451
20452
20453 #include <linux/fs.h>
20454 #include <linux/posix_acl.h>
20455
20456 int
20457 main (void)
20458 {
20459
20460 struct user_namespace *user_ns = NULL;
20461 const struct posix_acl *acl = NULL;
20462 int error;
20463
20464 error = posix_acl_valid(user_ns, acl);
20465
20466 ;
20467 return 0;
20468 }
20469
20470 _ACEOF
20471
20472
20473
20474 cat - <<_ACEOF >conftest.h
20475
20476 _ACEOF
20477
20478
20479 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
20480 echo "obj-m := conftest.o" >build/Makefile
20481 modpost_flag=''
20482 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
20483 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
20484 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20485 (eval $ac_try) 2>&5
20486 ac_status=$?
20487 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20488 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
20489 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20490 (eval $ac_try) 2>&5
20491 ac_status=$?
20492 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20493 (exit $ac_status); }; }; then
20494
20495 { $as_echo "$as_me:$LINENO: result: yes" >&5
20496 $as_echo "yes" >&6; }
20497
20498 cat >>confdefs.h <<\_ACEOF
20499 #define HAVE_POSIX_ACL_VALID_WITH_NS 1
20500 _ACEOF
20501
20502
20503 else
20504 $as_echo "$as_me: failed program was:" >&5
20505 sed 's/^/| /' conftest.$ac_ext >&5
20506
20507 { $as_echo "$as_me:$LINENO: result: no" >&5
20508 $as_echo "no" >&6; }
20509
20510
20511
20512 fi
20513
20514 rm -Rf build
20515
20516
20517
20518
20519 { $as_echo "$as_me:$LINENO: checking whether iops->permission() exists" >&5
20520 $as_echo_n "checking whether iops->permission() exists... " >&6; }
20521
20522
20523 cat confdefs.h - <<_ACEOF >conftest.c
20524 /* confdefs.h. */
20525 _ACEOF
20526 cat confdefs.h >>conftest.$ac_ext
20527 cat >>conftest.$ac_ext <<_ACEOF
20528 /* end confdefs.h. */
20529
20530
20531 #include <linux/fs.h>
20532
20533 int permission_fn(struct inode *inode, int mask) { return 0; }
20534
20535 static const struct inode_operations
20536 iops __attribute__ ((unused)) = {
20537 .permission = permission_fn,
20538 };
20539
20540 int
20541 main (void)
20542 {
20543
20544
20545 ;
20546 return 0;
20547 }
20548
20549 _ACEOF
20550
20551
20552
20553 cat - <<_ACEOF >conftest.h
20554
20555 _ACEOF
20556
20557
20558 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
20559 echo "obj-m := conftest.o" >build/Makefile
20560 modpost_flag=''
20561 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
20562 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
20563 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20564 (eval $ac_try) 2>&5
20565 ac_status=$?
20566 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20567 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
20568 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20569 (eval $ac_try) 2>&5
20570 ac_status=$?
20571 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20572 (exit $ac_status); }; }; then
20573
20574 { $as_echo "$as_me:$LINENO: result: yes" >&5
20575 $as_echo "yes" >&6; }
20576
20577 cat >>confdefs.h <<\_ACEOF
20578 #define HAVE_PERMISSION 1
20579 _ACEOF
20580
20581
20582 else
20583 $as_echo "$as_me: failed program was:" >&5
20584 sed 's/^/| /' conftest.$ac_ext >&5
20585
20586 { $as_echo "$as_me:$LINENO: result: no" >&5
20587 $as_echo "no" >&6; }
20588
20589
20590
20591 fi
20592
20593 rm -Rf build
20594
20595
20596
20597
20598 { $as_echo "$as_me:$LINENO: checking whether iops->permission() wants nameidata" >&5
20599 $as_echo_n "checking whether iops->permission() wants nameidata... " >&6; }
20600
20601
20602 cat confdefs.h - <<_ACEOF >conftest.c
20603 /* confdefs.h. */
20604 _ACEOF
20605 cat confdefs.h >>conftest.$ac_ext
20606 cat >>conftest.$ac_ext <<_ACEOF
20607 /* end confdefs.h. */
20608
20609
20610 #include <linux/fs.h>
20611 #include <linux/sched.h>
20612
20613 int permission_fn(struct inode *inode, int mask,
20614 struct nameidata *nd) { return 0; }
20615
20616 static const struct inode_operations
20617 iops __attribute__ ((unused)) = {
20618 .permission = permission_fn,
20619 };
20620
20621 int
20622 main (void)
20623 {
20624
20625
20626 ;
20627 return 0;
20628 }
20629
20630 _ACEOF
20631
20632
20633
20634 cat - <<_ACEOF >conftest.h
20635
20636 _ACEOF
20637
20638
20639 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
20640 echo "obj-m := conftest.o" >build/Makefile
20641 modpost_flag=''
20642 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
20643 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
20644 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20645 (eval $ac_try) 2>&5
20646 ac_status=$?
20647 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20648 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
20649 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20650 (eval $ac_try) 2>&5
20651 ac_status=$?
20652 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20653 (exit $ac_status); }; }; then
20654
20655 { $as_echo "$as_me:$LINENO: result: yes" >&5
20656 $as_echo "yes" >&6; }
20657
20658 cat >>confdefs.h <<\_ACEOF
20659 #define HAVE_PERMISSION 1
20660 _ACEOF
20661
20662
20663 cat >>confdefs.h <<\_ACEOF
20664 #define HAVE_PERMISSION_WITH_NAMEIDATA 1
20665 _ACEOF
20666
20667
20668 else
20669 $as_echo "$as_me: failed program was:" >&5
20670 sed 's/^/| /' conftest.$ac_ext >&5
20671
20672 { $as_echo "$as_me:$LINENO: result: no" >&5
20673 $as_echo "no" >&6; }
20674
20675
20676
20677 fi
20678
20679 rm -Rf build
20680
20681
20682
20683
20684 { $as_echo "$as_me:$LINENO: checking whether iops->check_acl() exists" >&5
20685 $as_echo_n "checking whether iops->check_acl() exists... " >&6; }
20686
20687
20688 cat confdefs.h - <<_ACEOF >conftest.c
20689 /* confdefs.h. */
20690 _ACEOF
20691 cat confdefs.h >>conftest.$ac_ext
20692 cat >>conftest.$ac_ext <<_ACEOF
20693 /* end confdefs.h. */
20694
20695
20696 #include <linux/fs.h>
20697
20698 int check_acl_fn(struct inode *inode, int mask) { return 0; }
20699
20700 static const struct inode_operations
20701 iops __attribute__ ((unused)) = {
20702 .check_acl = check_acl_fn,
20703 };
20704
20705 int
20706 main (void)
20707 {
20708
20709
20710 ;
20711 return 0;
20712 }
20713
20714 _ACEOF
20715
20716
20717
20718 cat - <<_ACEOF >conftest.h
20719
20720 _ACEOF
20721
20722
20723 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
20724 echo "obj-m := conftest.o" >build/Makefile
20725 modpost_flag=''
20726 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
20727 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
20728 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20729 (eval $ac_try) 2>&5
20730 ac_status=$?
20731 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20732 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
20733 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20734 (eval $ac_try) 2>&5
20735 ac_status=$?
20736 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20737 (exit $ac_status); }; }; then
20738
20739 { $as_echo "$as_me:$LINENO: result: yes" >&5
20740 $as_echo "yes" >&6; }
20741
20742 cat >>confdefs.h <<\_ACEOF
20743 #define HAVE_CHECK_ACL 1
20744 _ACEOF
20745
20746
20747 else
20748 $as_echo "$as_me: failed program was:" >&5
20749 sed 's/^/| /' conftest.$ac_ext >&5
20750
20751 { $as_echo "$as_me:$LINENO: result: no" >&5
20752 $as_echo "no" >&6; }
20753
20754
20755
20756 fi
20757
20758 rm -Rf build
20759
20760
20761
20762
20763 { $as_echo "$as_me:$LINENO: checking whether iops->check_acl() wants flags" >&5
20764 $as_echo_n "checking whether iops->check_acl() wants flags... " >&6; }
20765
20766
20767 cat confdefs.h - <<_ACEOF >conftest.c
20768 /* confdefs.h. */
20769 _ACEOF
20770 cat confdefs.h >>conftest.$ac_ext
20771 cat >>conftest.$ac_ext <<_ACEOF
20772 /* end confdefs.h. */
20773
20774
20775 #include <linux/fs.h>
20776
20777 int check_acl_fn(struct inode *inode, int mask,
20778 unsigned int flags) { return 0; }
20779
20780 static const struct inode_operations
20781 iops __attribute__ ((unused)) = {
20782 .check_acl = check_acl_fn,
20783 };
20784
20785 int
20786 main (void)
20787 {
20788
20789
20790 ;
20791 return 0;
20792 }
20793
20794 _ACEOF
20795
20796
20797
20798 cat - <<_ACEOF >conftest.h
20799
20800 _ACEOF
20801
20802
20803 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
20804 echo "obj-m := conftest.o" >build/Makefile
20805 modpost_flag=''
20806 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
20807 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
20808 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20809 (eval $ac_try) 2>&5
20810 ac_status=$?
20811 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20812 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
20813 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20814 (eval $ac_try) 2>&5
20815 ac_status=$?
20816 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20817 (exit $ac_status); }; }; then
20818
20819 { $as_echo "$as_me:$LINENO: result: yes" >&5
20820 $as_echo "yes" >&6; }
20821
20822 cat >>confdefs.h <<\_ACEOF
20823 #define HAVE_CHECK_ACL 1
20824 _ACEOF
20825
20826
20827 cat >>confdefs.h <<\_ACEOF
20828 #define HAVE_CHECK_ACL_WITH_FLAGS 1
20829 _ACEOF
20830
20831
20832 else
20833 $as_echo "$as_me: failed program was:" >&5
20834 sed 's/^/| /' conftest.$ac_ext >&5
20835
20836 { $as_echo "$as_me:$LINENO: result: no" >&5
20837 $as_echo "no" >&6; }
20838
20839
20840
20841 fi
20842
20843 rm -Rf build
20844
20845
20846
20847
20848 { $as_echo "$as_me:$LINENO: checking whether iops->get_acl() exists" >&5
20849 $as_echo_n "checking whether iops->get_acl() exists... " >&6; }
20850
20851
20852 cat confdefs.h - <<_ACEOF >conftest.c
20853 /* confdefs.h. */
20854 _ACEOF
20855 cat confdefs.h >>conftest.$ac_ext
20856 cat >>conftest.$ac_ext <<_ACEOF
20857 /* end confdefs.h. */
20858
20859
20860 #include <linux/fs.h>
20861
20862 struct posix_acl *get_acl_fn(struct inode *inode, int type)
20863 { return NULL; }
20864
20865 static const struct inode_operations
20866 iops __attribute__ ((unused)) = {
20867 .get_acl = get_acl_fn,
20868 };
20869
20870 int
20871 main (void)
20872 {
20873
20874
20875 ;
20876 return 0;
20877 }
20878
20879 _ACEOF
20880
20881
20882
20883 cat - <<_ACEOF >conftest.h
20884
20885 _ACEOF
20886
20887
20888 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
20889 echo "obj-m := conftest.o" >build/Makefile
20890 modpost_flag=''
20891 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
20892 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
20893 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20894 (eval $ac_try) 2>&5
20895 ac_status=$?
20896 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20897 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
20898 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20899 (eval $ac_try) 2>&5
20900 ac_status=$?
20901 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20902 (exit $ac_status); }; }; then
20903
20904 { $as_echo "$as_me:$LINENO: result: yes" >&5
20905 $as_echo "yes" >&6; }
20906
20907 cat >>confdefs.h <<\_ACEOF
20908 #define HAVE_GET_ACL 1
20909 _ACEOF
20910
20911
20912 else
20913 $as_echo "$as_me: failed program was:" >&5
20914 sed 's/^/| /' conftest.$ac_ext >&5
20915
20916 { $as_echo "$as_me:$LINENO: result: no" >&5
20917 $as_echo "no" >&6; }
20918
20919
20920
20921 fi
20922
20923 rm -Rf build
20924
20925
20926
20927
20928 { $as_echo "$as_me:$LINENO: checking whether iops->set_acl() exists" >&5
20929 $as_echo_n "checking whether iops->set_acl() exists... " >&6; }
20930
20931
20932 cat confdefs.h - <<_ACEOF >conftest.c
20933 /* confdefs.h. */
20934 _ACEOF
20935 cat confdefs.h >>conftest.$ac_ext
20936 cat >>conftest.$ac_ext <<_ACEOF
20937 /* end confdefs.h. */
20938
20939
20940 #include <linux/fs.h>
20941
20942 int set_acl_fn(struct inode *inode, struct posix_acl *acl, int type)
20943 { return 0; }
20944
20945 static const struct inode_operations
20946 iops __attribute__ ((unused)) = {
20947 .set_acl = set_acl_fn,
20948 };
20949
20950 int
20951 main (void)
20952 {
20953
20954
20955 ;
20956 return 0;
20957 }
20958
20959 _ACEOF
20960
20961
20962
20963 cat - <<_ACEOF >conftest.h
20964
20965 _ACEOF
20966
20967
20968 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
20969 echo "obj-m := conftest.o" >build/Makefile
20970 modpost_flag=''
20971 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
20972 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
20973 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20974 (eval $ac_try) 2>&5
20975 ac_status=$?
20976 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20977 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
20978 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20979 (eval $ac_try) 2>&5
20980 ac_status=$?
20981 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20982 (exit $ac_status); }; }; then
20983
20984 { $as_echo "$as_me:$LINENO: result: yes" >&5
20985 $as_echo "yes" >&6; }
20986
20987 cat >>confdefs.h <<\_ACEOF
20988 #define HAVE_SET_ACL 1
20989 _ACEOF
20990
20991
20992 else
20993 $as_echo "$as_me: failed program was:" >&5
20994 sed 's/^/| /' conftest.$ac_ext >&5
20995
20996 { $as_echo "$as_me:$LINENO: result: no" >&5
20997 $as_echo "no" >&6; }
20998
20999
21000
21001 fi
21002
21003 rm -Rf build
21004
21005
21006
21007
21008
21009 { $as_echo "$as_me:$LINENO: checking whether iops->getattr() takes a path" >&5
21010 $as_echo_n "checking whether iops->getattr() takes a path... " >&6; }
21011
21012
21013 cat confdefs.h - <<_ACEOF >conftest.c
21014 /* confdefs.h. */
21015 _ACEOF
21016 cat confdefs.h >>conftest.$ac_ext
21017 cat >>conftest.$ac_ext <<_ACEOF
21018 /* end confdefs.h. */
21019
21020
21021 #include <linux/fs.h>
21022
21023 int test_getattr(
21024 const struct path *p, struct kstat *k,
21025 u32 request_mask, unsigned int query_flags)
21026 { return 0; }
21027
21028 static const struct inode_operations
21029 iops __attribute__ ((unused)) = {
21030 .getattr = test_getattr,
21031 };
21032
21033 int
21034 main (void)
21035 {
21036
21037
21038 ;
21039 return 0;
21040 }
21041
21042 _ACEOF
21043
21044
21045
21046 cat - <<_ACEOF >conftest.h
21047
21048 _ACEOF
21049
21050
21051 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
21052 echo "obj-m := conftest.o" >build/Makefile
21053 modpost_flag=''
21054 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
21055 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
21056 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21057 (eval $ac_try) 2>&5
21058 ac_status=$?
21059 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21060 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
21061 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21062 (eval $ac_try) 2>&5
21063 ac_status=$?
21064 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21065 (exit $ac_status); }; }; then
21066
21067 { $as_echo "$as_me:$LINENO: result: yes" >&5
21068 $as_echo "yes" >&6; }
21069
21070 cat >>confdefs.h <<\_ACEOF
21071 #define HAVE_PATH_IOPS_GETATTR 1
21072 _ACEOF
21073
21074
21075 else
21076 $as_echo "$as_me: failed program was:" >&5
21077 sed 's/^/| /' conftest.$ac_ext >&5
21078
21079 { $as_echo "$as_me:$LINENO: result: no" >&5
21080 $as_echo "no" >&6; }
21081
21082
21083
21084 fi
21085
21086 rm -Rf build
21087
21088
21089
21090
21091 { $as_echo "$as_me:$LINENO: checking whether iops->getattr() takes a vfsmount" >&5
21092 $as_echo_n "checking whether iops->getattr() takes a vfsmount... " >&6; }
21093
21094
21095 cat confdefs.h - <<_ACEOF >conftest.c
21096 /* confdefs.h. */
21097 _ACEOF
21098 cat confdefs.h >>conftest.$ac_ext
21099 cat >>conftest.$ac_ext <<_ACEOF
21100 /* end confdefs.h. */
21101
21102
21103 #include <linux/fs.h>
21104
21105 int test_getattr(
21106 struct vfsmount *mnt, struct dentry *d,
21107 struct kstat *k)
21108 { return 0; }
21109
21110 static const struct inode_operations
21111 iops __attribute__ ((unused)) = {
21112 .getattr = test_getattr,
21113 };
21114
21115 int
21116 main (void)
21117 {
21118
21119
21120 ;
21121 return 0;
21122 }
21123
21124 _ACEOF
21125
21126
21127
21128 cat - <<_ACEOF >conftest.h
21129
21130 _ACEOF
21131
21132
21133 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
21134 echo "obj-m := conftest.o" >build/Makefile
21135 modpost_flag=''
21136 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
21137 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
21138 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21139 (eval $ac_try) 2>&5
21140 ac_status=$?
21141 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21142 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
21143 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21144 (eval $ac_try) 2>&5
21145 ac_status=$?
21146 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21147 (exit $ac_status); }; }; then
21148
21149 { $as_echo "$as_me:$LINENO: result: yes" >&5
21150 $as_echo "yes" >&6; }
21151
21152 cat >>confdefs.h <<\_ACEOF
21153 #define HAVE_VFSMOUNT_IOPS_GETATTR 1
21154 _ACEOF
21155
21156
21157 else
21158 $as_echo "$as_me: failed program was:" >&5
21159 sed 's/^/| /' conftest.$ac_ext >&5
21160
21161 { $as_echo "$as_me:$LINENO: result: no" >&5
21162 $as_echo "no" >&6; }
21163
21164
21165
21166 fi
21167
21168 rm -Rf build
21169
21170
21171
21172
21173
21174 { $as_echo "$as_me:$LINENO: checking whether inode_set_flags() exists" >&5
21175 $as_echo_n "checking whether inode_set_flags() exists... " >&6; }
21176
21177
21178 cat confdefs.h - <<_ACEOF >conftest.c
21179 /* confdefs.h. */
21180 _ACEOF
21181 cat confdefs.h >>conftest.$ac_ext
21182 cat >>conftest.$ac_ext <<_ACEOF
21183 /* end confdefs.h. */
21184
21185
21186 #include <linux/fs.h>
21187
21188 int
21189 main (void)
21190 {
21191
21192 struct inode inode;
21193 inode_set_flags(&inode, S_IMMUTABLE, S_IMMUTABLE);
21194
21195 ;
21196 return 0;
21197 }
21198
21199 _ACEOF
21200
21201
21202
21203 cat - <<_ACEOF >conftest.h
21204
21205 _ACEOF
21206
21207
21208 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
21209 echo "obj-m := conftest.o" >build/Makefile
21210 modpost_flag=''
21211 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
21212 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
21213 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21214 (eval $ac_try) 2>&5
21215 ac_status=$?
21216 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21217 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
21218 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21219 (eval $ac_try) 2>&5
21220 ac_status=$?
21221 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21222 (exit $ac_status); }; }; then
21223
21224 { $as_echo "$as_me:$LINENO: result: yes" >&5
21225 $as_echo "yes" >&6; }
21226
21227 cat >>confdefs.h <<\_ACEOF
21228 #define HAVE_INODE_SET_FLAGS 1
21229 _ACEOF
21230
21231
21232 else
21233 $as_echo "$as_me: failed program was:" >&5
21234 sed 's/^/| /' conftest.$ac_ext >&5
21235
21236 { $as_echo "$as_me:$LINENO: result: no" >&5
21237 $as_echo "no" >&6; }
21238
21239
21240
21241 fi
21242
21243 rm -Rf build
21244
21245
21246
21247
21248 { $as_echo "$as_me:$LINENO: checking whether inode_set_iversion() exists" >&5
21249 $as_echo_n "checking whether inode_set_iversion() exists... " >&6; }
21250
21251
21252 cat confdefs.h - <<_ACEOF >conftest.c
21253 /* confdefs.h. */
21254 _ACEOF
21255 cat confdefs.h >>conftest.$ac_ext
21256 cat >>conftest.$ac_ext <<_ACEOF
21257 /* end confdefs.h. */
21258
21259
21260 #include <linux/iversion.h>
21261
21262 int
21263 main (void)
21264 {
21265
21266 struct inode inode;
21267 inode_set_iversion(&inode, 1);
21268
21269 ;
21270 return 0;
21271 }
21272
21273 _ACEOF
21274
21275
21276
21277 cat - <<_ACEOF >conftest.h
21278
21279 _ACEOF
21280
21281
21282 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
21283 echo "obj-m := conftest.o" >build/Makefile
21284 modpost_flag=''
21285 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
21286 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
21287 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21288 (eval $ac_try) 2>&5
21289 ac_status=$?
21290 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21291 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
21292 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21293 (eval $ac_try) 2>&5
21294 ac_status=$?
21295 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21296 (exit $ac_status); }; }; then
21297
21298 { $as_echo "$as_me:$LINENO: result: yes" >&5
21299 $as_echo "yes" >&6; }
21300
21301 cat >>confdefs.h <<\_ACEOF
21302 #define HAVE_INODE_SET_IVERSION 1
21303 _ACEOF
21304
21305
21306 else
21307 $as_echo "$as_me: failed program was:" >&5
21308 sed 's/^/| /' conftest.$ac_ext >&5
21309
21310 { $as_echo "$as_me:$LINENO: result: no" >&5
21311 $as_echo "no" >&6; }
21312
21313
21314
21315 fi
21316
21317 rm -Rf build
21318
21319
21320
21321
21322 { $as_echo "$as_me:$LINENO: checking whether uncached_acl_sentinel() exists" >&5
21323 $as_echo_n "checking whether uncached_acl_sentinel() exists... " >&6; }
21324
21325
21326 cat confdefs.h - <<_ACEOF >conftest.c
21327 /* confdefs.h. */
21328 _ACEOF
21329 cat confdefs.h >>conftest.$ac_ext
21330 cat >>conftest.$ac_ext <<_ACEOF
21331 /* end confdefs.h. */
21332
21333
21334 #include <linux/fs.h>
21335
21336 int
21337 main (void)
21338 {
21339
21340 void *sentinel __attribute__ ((unused)) = uncached_acl_sentinel(NULL);
21341
21342 ;
21343 return 0;
21344 }
21345
21346 _ACEOF
21347
21348
21349
21350 cat - <<_ACEOF >conftest.h
21351
21352 _ACEOF
21353
21354
21355 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
21356 echo "obj-m := conftest.o" >build/Makefile
21357 modpost_flag=''
21358 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
21359 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
21360 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21361 (eval $ac_try) 2>&5
21362 ac_status=$?
21363 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21364 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
21365 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21366 (eval $ac_try) 2>&5
21367 ac_status=$?
21368 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21369 (exit $ac_status); }; }; then
21370
21371 { $as_echo "$as_me:$LINENO: result: yes" >&5
21372 $as_echo "yes" >&6; }
21373
21374 cat >>confdefs.h <<\_ACEOF
21375 #define HAVE_KERNEL_GET_ACL_HANDLE_CACHE 1
21376 _ACEOF
21377
21378
21379 else
21380 $as_echo "$as_me: failed program was:" >&5
21381 sed 's/^/| /' conftest.$ac_ext >&5
21382
21383 { $as_echo "$as_me:$LINENO: result: no" >&5
21384 $as_echo "no" >&6; }
21385
21386
21387
21388 fi
21389
21390 rm -Rf build
21391
21392
21393
21394
21395 { $as_echo "$as_me:$LINENO: checking whether sops->show_options() wants dentry" >&5
21396 $as_echo_n "checking whether sops->show_options() wants dentry... " >&6; }
21397
21398
21399
21400 cat confdefs.h - <<_ACEOF >conftest.c
21401 /* confdefs.h. */
21402 _ACEOF
21403 cat confdefs.h >>conftest.$ac_ext
21404 cat >>conftest.$ac_ext <<_ACEOF
21405 /* end confdefs.h. */
21406
21407
21408 #include <linux/fs.h>
21409
21410 int show_options (struct seq_file * x, struct dentry * y) { return 0; };
21411 static struct super_operations sops __attribute__ ((unused)) = {
21412 .show_options = show_options,
21413 };
21414
21415 int
21416 main (void)
21417 {
21418
21419
21420 ;
21421 return 0;
21422 }
21423
21424 _ACEOF
21425
21426
21427
21428 cat - <<_ACEOF >conftest.h
21429
21430 _ACEOF
21431
21432
21433 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
21434 echo "obj-m := conftest.o" >build/Makefile
21435 modpost_flag=''
21436 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
21437 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
21438 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21439 (eval $ac_try) 2>&5
21440 ac_status=$?
21441 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21442 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
21443 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21444 (eval $ac_try) 2>&5
21445 ac_status=$?
21446 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21447 (exit $ac_status); }; }; then
21448
21449 { $as_echo "$as_me:$LINENO: result: yes" >&5
21450 $as_echo "yes" >&6; }
21451
21452 cat >>confdefs.h <<\_ACEOF
21453 #define HAVE_SHOW_OPTIONS_WITH_DENTRY 1
21454 _ACEOF
21455
21456
21457 else
21458 $as_echo "$as_me: failed program was:" >&5
21459 sed 's/^/| /' conftest.$ac_ext >&5
21460
21461 { $as_echo "$as_me:$LINENO: result: no" >&5
21462 $as_echo "no" >&6; }
21463
21464
21465
21466 fi
21467
21468 rm -Rf build
21469
21470
21471
21472
21473 { $as_echo "$as_me:$LINENO: checking whether file_inode() is available" >&5
21474 $as_echo_n "checking whether file_inode() is available... " >&6; }
21475
21476
21477 cat confdefs.h - <<_ACEOF >conftest.c
21478 /* confdefs.h. */
21479 _ACEOF
21480 cat confdefs.h >>conftest.$ac_ext
21481 cat >>conftest.$ac_ext <<_ACEOF
21482 /* end confdefs.h. */
21483
21484
21485 #include <linux/fs.h>
21486
21487 int
21488 main (void)
21489 {
21490
21491 struct file *f = NULL;
21492 file_inode(f);
21493
21494 ;
21495 return 0;
21496 }
21497
21498 _ACEOF
21499
21500
21501
21502 cat - <<_ACEOF >conftest.h
21503
21504 _ACEOF
21505
21506
21507 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
21508 echo "obj-m := conftest.o" >build/Makefile
21509 modpost_flag=''
21510 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
21511 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
21512 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21513 (eval $ac_try) 2>&5
21514 ac_status=$?
21515 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21516 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
21517 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21518 (eval $ac_try) 2>&5
21519 ac_status=$?
21520 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21521 (exit $ac_status); }; }; then
21522
21523 { $as_echo "$as_me:$LINENO: result: yes" >&5
21524 $as_echo "yes" >&6; }
21525
21526 cat >>confdefs.h <<\_ACEOF
21527 #define HAVE_FILE_INODE 1
21528 _ACEOF
21529
21530
21531 else
21532 $as_echo "$as_me: failed program was:" >&5
21533 sed 's/^/| /' conftest.$ac_ext >&5
21534
21535 { $as_echo "$as_me:$LINENO: result: no" >&5
21536 $as_echo "no" >&6; }
21537
21538
21539
21540 fi
21541
21542 rm -Rf build
21543
21544
21545
21546
21547 { $as_echo "$as_me:$LINENO: checking whether file_dentry() is available" >&5
21548 $as_echo_n "checking whether file_dentry() is available... " >&6; }
21549
21550
21551 cat confdefs.h - <<_ACEOF >conftest.c
21552 /* confdefs.h. */
21553 _ACEOF
21554 cat confdefs.h >>conftest.$ac_ext
21555 cat >>conftest.$ac_ext <<_ACEOF
21556 /* end confdefs.h. */
21557
21558
21559 #include <linux/fs.h>
21560
21561 int
21562 main (void)
21563 {
21564
21565 struct file *f = NULL;
21566 file_dentry(f);
21567
21568 ;
21569 return 0;
21570 }
21571
21572 _ACEOF
21573
21574
21575
21576 cat - <<_ACEOF >conftest.h
21577
21578 _ACEOF
21579
21580
21581 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
21582 echo "obj-m := conftest.o" >build/Makefile
21583 modpost_flag=''
21584 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
21585 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
21586 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21587 (eval $ac_try) 2>&5
21588 ac_status=$?
21589 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21590 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
21591 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21592 (eval $ac_try) 2>&5
21593 ac_status=$?
21594 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21595 (exit $ac_status); }; }; then
21596
21597 { $as_echo "$as_me:$LINENO: result: yes" >&5
21598 $as_echo "yes" >&6; }
21599
21600 cat >>confdefs.h <<\_ACEOF
21601 #define HAVE_FILE_DENTRY 1
21602 _ACEOF
21603
21604
21605 else
21606 $as_echo "$as_me: failed program was:" >&5
21607 sed 's/^/| /' conftest.$ac_ext >&5
21608
21609 { $as_echo "$as_me:$LINENO: result: no" >&5
21610 $as_echo "no" >&6; }
21611
21612
21613
21614 fi
21615
21616 rm -Rf build
21617
21618
21619
21620
21621 { $as_echo "$as_me:$LINENO: checking whether fops->fsync() wants" >&5
21622 $as_echo_n "checking whether fops->fsync() wants... " >&6; }
21623
21624
21625
21626 cat confdefs.h - <<_ACEOF >conftest.c
21627 /* confdefs.h. */
21628 _ACEOF
21629 cat confdefs.h >>conftest.$ac_ext
21630 cat >>conftest.$ac_ext <<_ACEOF
21631 /* end confdefs.h. */
21632
21633
21634 #include <linux/fs.h>
21635
21636 int test_fsync(struct file *f, struct dentry *dentry, int x)
21637 { return 0; }
21638
21639 static const struct file_operations
21640 fops __attribute__ ((unused)) = {
21641 .fsync = test_fsync,
21642 };
21643
21644 int
21645 main (void)
21646 {
21647
21648
21649 ;
21650 return 0;
21651 }
21652
21653 _ACEOF
21654
21655
21656
21657 cat - <<_ACEOF >conftest.h
21658
21659 _ACEOF
21660
21661
21662 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
21663 echo "obj-m := conftest.o" >build/Makefile
21664 modpost_flag=''
21665 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
21666 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
21667 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21668 (eval $ac_try) 2>&5
21669 ac_status=$?
21670 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21671 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
21672 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21673 (eval $ac_try) 2>&5
21674 ac_status=$?
21675 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21676 (exit $ac_status); }; }; then
21677
21678 { $as_echo "$as_me:$LINENO: result: dentry" >&5
21679 $as_echo "dentry" >&6; }
21680
21681 cat >>confdefs.h <<\_ACEOF
21682 #define HAVE_FSYNC_WITH_DENTRY 1
21683 _ACEOF
21684
21685
21686 else
21687 $as_echo "$as_me: failed program was:" >&5
21688 sed 's/^/| /' conftest.$ac_ext >&5
21689
21690
21691
21692
21693 fi
21694
21695 rm -Rf build
21696
21697
21698
21699
21700
21701
21702 cat confdefs.h - <<_ACEOF >conftest.c
21703 /* confdefs.h. */
21704 _ACEOF
21705 cat confdefs.h >>conftest.$ac_ext
21706 cat >>conftest.$ac_ext <<_ACEOF
21707 /* end confdefs.h. */
21708
21709
21710 #include <linux/fs.h>
21711
21712 int test_fsync(struct file *f, int x) { return 0; }
21713
21714 static const struct file_operations
21715 fops __attribute__ ((unused)) = {
21716 .fsync = test_fsync,
21717 };
21718
21719 int
21720 main (void)
21721 {
21722
21723
21724 ;
21725 return 0;
21726 }
21727
21728 _ACEOF
21729
21730
21731
21732 cat - <<_ACEOF >conftest.h
21733
21734 _ACEOF
21735
21736
21737 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
21738 echo "obj-m := conftest.o" >build/Makefile
21739 modpost_flag=''
21740 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
21741 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
21742 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21743 (eval $ac_try) 2>&5
21744 ac_status=$?
21745 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21746 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
21747 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21748 (eval $ac_try) 2>&5
21749 ac_status=$?
21750 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21751 (exit $ac_status); }; }; then
21752
21753 { $as_echo "$as_me:$LINENO: result: no dentry" >&5
21754 $as_echo "no dentry" >&6; }
21755
21756 cat >>confdefs.h <<\_ACEOF
21757 #define HAVE_FSYNC_WITHOUT_DENTRY 1
21758 _ACEOF
21759
21760
21761 else
21762 $as_echo "$as_me: failed program was:" >&5
21763 sed 's/^/| /' conftest.$ac_ext >&5
21764
21765
21766
21767
21768 fi
21769
21770 rm -Rf build
21771
21772
21773
21774
21775
21776
21777 cat confdefs.h - <<_ACEOF >conftest.c
21778 /* confdefs.h. */
21779 _ACEOF
21780 cat confdefs.h >>conftest.$ac_ext
21781 cat >>conftest.$ac_ext <<_ACEOF
21782 /* end confdefs.h. */
21783
21784
21785 #include <linux/fs.h>
21786
21787 int test_fsync(struct file *f, loff_t a, loff_t b, int c)
21788 { return 0; }
21789
21790 static const struct file_operations
21791 fops __attribute__ ((unused)) = {
21792 .fsync = test_fsync,
21793 };
21794
21795 int
21796 main (void)
21797 {
21798
21799
21800 ;
21801 return 0;
21802 }
21803
21804 _ACEOF
21805
21806
21807
21808 cat - <<_ACEOF >conftest.h
21809
21810 _ACEOF
21811
21812
21813 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
21814 echo "obj-m := conftest.o" >build/Makefile
21815 modpost_flag=''
21816 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
21817 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
21818 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21819 (eval $ac_try) 2>&5
21820 ac_status=$?
21821 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21822 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
21823 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21824 (eval $ac_try) 2>&5
21825 ac_status=$?
21826 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21827 (exit $ac_status); }; }; then
21828
21829 { $as_echo "$as_me:$LINENO: result: range" >&5
21830 $as_echo "range" >&6; }
21831
21832 cat >>confdefs.h <<\_ACEOF
21833 #define HAVE_FSYNC_RANGE 1
21834 _ACEOF
21835
21836
21837 else
21838 $as_echo "$as_me: failed program was:" >&5
21839 sed 's/^/| /' conftest.$ac_ext >&5
21840
21841
21842
21843
21844 fi
21845
21846 rm -Rf build
21847
21848
21849
21850
21851
21852 { $as_echo "$as_me:$LINENO: checking whether sops->evict_inode() exists" >&5
21853 $as_echo_n "checking whether sops->evict_inode() exists... " >&6; }
21854
21855
21856 cat confdefs.h - <<_ACEOF >conftest.c
21857 /* confdefs.h. */
21858 _ACEOF
21859 cat confdefs.h >>conftest.$ac_ext
21860 cat >>conftest.$ac_ext <<_ACEOF
21861 /* end confdefs.h. */
21862
21863
21864 #include <linux/fs.h>
21865 void evict_inode (struct inode * t) { return; }
21866 static struct super_operations sops __attribute__ ((unused)) = {
21867 .evict_inode = evict_inode,
21868 };
21869
21870 int
21871 main (void)
21872 {
21873
21874
21875 ;
21876 return 0;
21877 }
21878
21879 _ACEOF
21880
21881
21882
21883 cat - <<_ACEOF >conftest.h
21884
21885 _ACEOF
21886
21887
21888 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
21889 echo "obj-m := conftest.o" >build/Makefile
21890 modpost_flag=''
21891 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
21892 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
21893 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21894 (eval $ac_try) 2>&5
21895 ac_status=$?
21896 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21897 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
21898 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21899 (eval $ac_try) 2>&5
21900 ac_status=$?
21901 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21902 (exit $ac_status); }; }; then
21903
21904 { $as_echo "$as_me:$LINENO: result: yes" >&5
21905 $as_echo "yes" >&6; }
21906
21907 cat >>confdefs.h <<\_ACEOF
21908 #define HAVE_EVICT_INODE 1
21909 _ACEOF
21910
21911
21912 else
21913 $as_echo "$as_me: failed program was:" >&5
21914 sed 's/^/| /' conftest.$ac_ext >&5
21915
21916 { $as_echo "$as_me:$LINENO: result: no" >&5
21917 $as_echo "no" >&6; }
21918
21919
21920
21921 fi
21922
21923 rm -Rf build
21924
21925
21926
21927
21928 { $as_echo "$as_me:$LINENO: checking whether sops->dirty_inode() wants flags" >&5
21929 $as_echo_n "checking whether sops->dirty_inode() wants flags... " >&6; }
21930
21931
21932 cat confdefs.h - <<_ACEOF >conftest.c
21933 /* confdefs.h. */
21934 _ACEOF
21935 cat confdefs.h >>conftest.$ac_ext
21936 cat >>conftest.$ac_ext <<_ACEOF
21937 /* end confdefs.h. */
21938
21939
21940 #include <linux/fs.h>
21941
21942 void dirty_inode(struct inode *a, int b) { return; }
21943
21944 static const struct super_operations
21945 sops __attribute__ ((unused)) = {
21946 .dirty_inode = dirty_inode,
21947 };
21948
21949 int
21950 main (void)
21951 {
21952
21953
21954 ;
21955 return 0;
21956 }
21957
21958 _ACEOF
21959
21960
21961
21962 cat - <<_ACEOF >conftest.h
21963
21964 _ACEOF
21965
21966
21967 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
21968 echo "obj-m := conftest.o" >build/Makefile
21969 modpost_flag=''
21970 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
21971 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
21972 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21973 (eval $ac_try) 2>&5
21974 ac_status=$?
21975 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21976 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
21977 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21978 (eval $ac_try) 2>&5
21979 ac_status=$?
21980 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21981 (exit $ac_status); }; }; then
21982
21983 { $as_echo "$as_me:$LINENO: result: yes" >&5
21984 $as_echo "yes" >&6; }
21985
21986 cat >>confdefs.h <<\_ACEOF
21987 #define HAVE_DIRTY_INODE_WITH_FLAGS 1
21988 _ACEOF
21989
21990
21991 else
21992 $as_echo "$as_me: failed program was:" >&5
21993 sed 's/^/| /' conftest.$ac_ext >&5
21994
21995 { $as_echo "$as_me:$LINENO: result: no" >&5
21996 $as_echo "no" >&6; }
21997
21998
21999
22000 fi
22001
22002 rm -Rf build
22003
22004
22005
22006
22007 { $as_echo "$as_me:$LINENO: checking whether sops->nr_cached_objects() exists" >&5
22008 $as_echo_n "checking whether sops->nr_cached_objects() exists... " >&6; }
22009
22010
22011 cat confdefs.h - <<_ACEOF >conftest.c
22012 /* confdefs.h. */
22013 _ACEOF
22014 cat confdefs.h >>conftest.$ac_ext
22015 cat >>conftest.$ac_ext <<_ACEOF
22016 /* end confdefs.h. */
22017
22018
22019 #include <linux/fs.h>
22020
22021 int nr_cached_objects(struct super_block *sb) { return 0; }
22022
22023 static const struct super_operations
22024 sops __attribute__ ((unused)) = {
22025 .nr_cached_objects = nr_cached_objects,
22026 };
22027
22028 int
22029 main (void)
22030 {
22031
22032
22033 ;
22034 return 0;
22035 }
22036
22037 _ACEOF
22038
22039
22040
22041 cat - <<_ACEOF >conftest.h
22042
22043 _ACEOF
22044
22045
22046 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
22047 echo "obj-m := conftest.o" >build/Makefile
22048 modpost_flag=''
22049 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
22050 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
22051 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22052 (eval $ac_try) 2>&5
22053 ac_status=$?
22054 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22055 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
22056 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22057 (eval $ac_try) 2>&5
22058 ac_status=$?
22059 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22060 (exit $ac_status); }; }; then
22061
22062 { $as_echo "$as_me:$LINENO: result: yes" >&5
22063 $as_echo "yes" >&6; }
22064
22065 cat >>confdefs.h <<\_ACEOF
22066 #define HAVE_NR_CACHED_OBJECTS 1
22067 _ACEOF
22068
22069
22070 else
22071 $as_echo "$as_me: failed program was:" >&5
22072 sed 's/^/| /' conftest.$ac_ext >&5
22073
22074 { $as_echo "$as_me:$LINENO: result: no" >&5
22075 $as_echo "no" >&6; }
22076
22077
22078
22079 fi
22080
22081 rm -Rf build
22082
22083
22084
22085
22086 { $as_echo "$as_me:$LINENO: checking whether sops->free_cached_objects() exists" >&5
22087 $as_echo_n "checking whether sops->free_cached_objects() exists... " >&6; }
22088
22089
22090 cat confdefs.h - <<_ACEOF >conftest.c
22091 /* confdefs.h. */
22092 _ACEOF
22093 cat confdefs.h >>conftest.$ac_ext
22094 cat >>conftest.$ac_ext <<_ACEOF
22095 /* end confdefs.h. */
22096
22097
22098 #include <linux/fs.h>
22099
22100 void free_cached_objects(struct super_block *sb, int x)
22101 { return; }
22102
22103 static const struct super_operations
22104 sops __attribute__ ((unused)) = {
22105 .free_cached_objects = free_cached_objects,
22106 };
22107
22108 int
22109 main (void)
22110 {
22111
22112
22113 ;
22114 return 0;
22115 }
22116
22117 _ACEOF
22118
22119
22120
22121 cat - <<_ACEOF >conftest.h
22122
22123 _ACEOF
22124
22125
22126 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
22127 echo "obj-m := conftest.o" >build/Makefile
22128 modpost_flag=''
22129 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
22130 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
22131 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22132 (eval $ac_try) 2>&5
22133 ac_status=$?
22134 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22135 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
22136 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22137 (eval $ac_try) 2>&5
22138 ac_status=$?
22139 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22140 (exit $ac_status); }; }; then
22141
22142 { $as_echo "$as_me:$LINENO: result: yes" >&5
22143 $as_echo "yes" >&6; }
22144
22145 cat >>confdefs.h <<\_ACEOF
22146 #define HAVE_FREE_CACHED_OBJECTS 1
22147 _ACEOF
22148
22149
22150 else
22151 $as_echo "$as_me: failed program was:" >&5
22152 sed 's/^/| /' conftest.$ac_ext >&5
22153
22154 { $as_echo "$as_me:$LINENO: result: no" >&5
22155 $as_echo "no" >&6; }
22156
22157
22158
22159 fi
22160
22161 rm -Rf build
22162
22163
22164
22165
22166
22167 { $as_echo "$as_me:$LINENO: checking whether fops->fallocate() exists" >&5
22168 $as_echo_n "checking whether fops->fallocate() exists... " >&6; }
22169
22170
22171 cat confdefs.h - <<_ACEOF >conftest.c
22172 /* confdefs.h. */
22173 _ACEOF
22174 cat confdefs.h >>conftest.$ac_ext
22175 cat >>conftest.$ac_ext <<_ACEOF
22176 /* end confdefs.h. */
22177
22178
22179 #include <linux/fs.h>
22180
22181 long test_fallocate(struct file *file, int mode,
22182 loff_t offset, loff_t len) { return 0; }
22183
22184 static const struct file_operations
22185 fops __attribute__ ((unused)) = {
22186 .fallocate = test_fallocate,
22187 };
22188
22189 int
22190 main (void)
22191 {
22192
22193
22194 ;
22195 return 0;
22196 }
22197
22198 _ACEOF
22199
22200
22201
22202 cat - <<_ACEOF >conftest.h
22203
22204 _ACEOF
22205
22206
22207 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
22208 echo "obj-m := conftest.o" >build/Makefile
22209 modpost_flag=''
22210 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
22211 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
22212 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22213 (eval $ac_try) 2>&5
22214 ac_status=$?
22215 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22216 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
22217 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22218 (eval $ac_try) 2>&5
22219 ac_status=$?
22220 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22221 (exit $ac_status); }; }; then
22222
22223 { $as_echo "$as_me:$LINENO: result: yes" >&5
22224 $as_echo "yes" >&6; }
22225
22226 cat >>confdefs.h <<\_ACEOF
22227 #define HAVE_FILE_FALLOCATE 1
22228 _ACEOF
22229
22230
22231 else
22232 $as_echo "$as_me: failed program was:" >&5
22233 sed 's/^/| /' conftest.$ac_ext >&5
22234
22235 { $as_echo "$as_me:$LINENO: result: no" >&5
22236 $as_echo "no" >&6; }
22237
22238
22239
22240 fi
22241
22242 rm -Rf build
22243
22244
22245
22246
22247 { $as_echo "$as_me:$LINENO: checking whether iops->fallocate() exists" >&5
22248 $as_echo_n "checking whether iops->fallocate() exists... " >&6; }
22249
22250
22251 cat confdefs.h - <<_ACEOF >conftest.c
22252 /* confdefs.h. */
22253 _ACEOF
22254 cat confdefs.h >>conftest.$ac_ext
22255 cat >>conftest.$ac_ext <<_ACEOF
22256 /* end confdefs.h. */
22257
22258
22259 #include <linux/fs.h>
22260
22261 long test_fallocate(struct inode *inode, int mode,
22262 loff_t offset, loff_t len) { return 0; }
22263
22264 static const struct inode_operations
22265 fops __attribute__ ((unused)) = {
22266 .fallocate = test_fallocate,
22267 };
22268
22269 int
22270 main (void)
22271 {
22272
22273
22274 ;
22275 return 0;
22276 }
22277
22278 _ACEOF
22279
22280
22281
22282 cat - <<_ACEOF >conftest.h
22283
22284 _ACEOF
22285
22286
22287 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
22288 echo "obj-m := conftest.o" >build/Makefile
22289 modpost_flag=''
22290 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
22291 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
22292 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22293 (eval $ac_try) 2>&5
22294 ac_status=$?
22295 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22296 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
22297 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22298 (eval $ac_try) 2>&5
22299 ac_status=$?
22300 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22301 (exit $ac_status); }; }; then
22302
22303 { $as_echo "$as_me:$LINENO: result: yes" >&5
22304 $as_echo "yes" >&6; }
22305
22306 cat >>confdefs.h <<\_ACEOF
22307 #define HAVE_INODE_FALLOCATE 1
22308 _ACEOF
22309
22310
22311 else
22312 $as_echo "$as_me: failed program was:" >&5
22313 sed 's/^/| /' conftest.$ac_ext >&5
22314
22315 { $as_echo "$as_me:$LINENO: result: no" >&5
22316 $as_echo "no" >&6; }
22317
22318
22319
22320 fi
22321
22322 rm -Rf build
22323
22324
22325
22326
22327
22328 { $as_echo "$as_me:$LINENO: checking whether fops->aio_fsync() exists" >&5
22329 $as_echo_n "checking whether fops->aio_fsync() exists... " >&6; }
22330
22331
22332 cat confdefs.h - <<_ACEOF >conftest.c
22333 /* confdefs.h. */
22334 _ACEOF
22335 cat confdefs.h >>conftest.$ac_ext
22336 cat >>conftest.$ac_ext <<_ACEOF
22337 /* end confdefs.h. */
22338
22339
22340 #include <linux/fs.h>
22341
22342 static const struct file_operations
22343 fops __attribute__ ((unused)) = {
22344 .aio_fsync = NULL,
22345 };
22346
22347 int
22348 main (void)
22349 {
22350
22351
22352 ;
22353 return 0;
22354 }
22355
22356 _ACEOF
22357
22358
22359
22360 cat - <<_ACEOF >conftest.h
22361
22362 _ACEOF
22363
22364
22365 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
22366 echo "obj-m := conftest.o" >build/Makefile
22367 modpost_flag=''
22368 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
22369 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
22370 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22371 (eval $ac_try) 2>&5
22372 ac_status=$?
22373 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22374 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
22375 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22376 (eval $ac_try) 2>&5
22377 ac_status=$?
22378 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22379 (exit $ac_status); }; }; then
22380
22381 { $as_echo "$as_me:$LINENO: result: yes" >&5
22382 $as_echo "yes" >&6; }
22383
22384 cat >>confdefs.h <<\_ACEOF
22385 #define HAVE_FILE_AIO_FSYNC 1
22386 _ACEOF
22387
22388
22389 else
22390 $as_echo "$as_me: failed program was:" >&5
22391 sed 's/^/| /' conftest.$ac_ext >&5
22392
22393 { $as_echo "$as_me:$LINENO: result: no" >&5
22394 $as_echo "no" >&6; }
22395
22396
22397
22398 fi
22399
22400 rm -Rf build
22401
22402
22403
22404
22405 { $as_echo "$as_me:$LINENO: checking whether iops->create()/mkdir()/mknod() take umode_t" >&5
22406 $as_echo_n "checking whether iops->create()/mkdir()/mknod() take umode_t... " >&6; }
22407
22408
22409 cat confdefs.h - <<_ACEOF >conftest.c
22410 /* confdefs.h. */
22411 _ACEOF
22412 cat confdefs.h >>conftest.$ac_ext
22413 cat >>conftest.$ac_ext <<_ACEOF
22414 /* end confdefs.h. */
22415
22416
22417 #include <linux/fs.h>
22418
22419 int mkdir(struct inode *inode, struct dentry *dentry,
22420 umode_t umode) { return 0; }
22421
22422 static const struct inode_operations
22423 iops __attribute__ ((unused)) = {
22424 .mkdir = mkdir,
22425 };
22426
22427 int
22428 main (void)
22429 {
22430
22431
22432 ;
22433 return 0;
22434 }
22435
22436 _ACEOF
22437
22438
22439
22440 cat - <<_ACEOF >conftest.h
22441
22442 _ACEOF
22443
22444
22445 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
22446 echo "obj-m := conftest.o" >build/Makefile
22447 modpost_flag=''
22448 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
22449 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
22450 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22451 (eval $ac_try) 2>&5
22452 ac_status=$?
22453 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22454 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
22455 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22456 (eval $ac_try) 2>&5
22457 ac_status=$?
22458 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22459 (exit $ac_status); }; }; then
22460
22461 { $as_echo "$as_me:$LINENO: result: yes" >&5
22462 $as_echo "yes" >&6; }
22463
22464 cat >>confdefs.h <<\_ACEOF
22465 #define HAVE_MKDIR_UMODE_T 1
22466 _ACEOF
22467
22468
22469 else
22470 $as_echo "$as_me: failed program was:" >&5
22471 sed 's/^/| /' conftest.$ac_ext >&5
22472
22473 { $as_echo "$as_me:$LINENO: result: no" >&5
22474 $as_echo "no" >&6; }
22475
22476
22477
22478 fi
22479
22480 rm -Rf build
22481
22482
22483
22484
22485 { $as_echo "$as_me:$LINENO: checking whether iops->lookup() passes nameidata" >&5
22486 $as_echo_n "checking whether iops->lookup() passes nameidata... " >&6; }
22487
22488
22489 cat confdefs.h - <<_ACEOF >conftest.c
22490 /* confdefs.h. */
22491 _ACEOF
22492 cat confdefs.h >>conftest.$ac_ext
22493 cat >>conftest.$ac_ext <<_ACEOF
22494 /* end confdefs.h. */
22495
22496
22497 #include <linux/fs.h>
22498 #include <linux/sched.h>
22499
22500 struct dentry *inode_lookup(struct inode *inode,
22501 struct dentry *dentry, struct nameidata *nidata)
22502 { return NULL; }
22503
22504 static const struct inode_operations iops
22505 __attribute__ ((unused)) = {
22506 .lookup = inode_lookup,
22507 };
22508
22509 int
22510 main (void)
22511 {
22512
22513
22514 ;
22515 return 0;
22516 }
22517
22518 _ACEOF
22519
22520
22521
22522 cat - <<_ACEOF >conftest.h
22523
22524 _ACEOF
22525
22526
22527 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
22528 echo "obj-m := conftest.o" >build/Makefile
22529 modpost_flag=''
22530 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
22531 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
22532 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22533 (eval $ac_try) 2>&5
22534 ac_status=$?
22535 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22536 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
22537 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22538 (eval $ac_try) 2>&5
22539 ac_status=$?
22540 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22541 (exit $ac_status); }; }; then
22542
22543 { $as_echo "$as_me:$LINENO: result: yes" >&5
22544 $as_echo "yes" >&6; }
22545
22546 cat >>confdefs.h <<\_ACEOF
22547 #define HAVE_LOOKUP_NAMEIDATA 1
22548 _ACEOF
22549
22550
22551 else
22552 $as_echo "$as_me: failed program was:" >&5
22553 sed 's/^/| /' conftest.$ac_ext >&5
22554
22555 { $as_echo "$as_me:$LINENO: result: no" >&5
22556 $as_echo "no" >&6; }
22557
22558
22559
22560 fi
22561
22562 rm -Rf build
22563
22564
22565
22566
22567 { $as_echo "$as_me:$LINENO: checking whether iops->create() passes nameidata" >&5
22568 $as_echo_n "checking whether iops->create() passes nameidata... " >&6; }
22569
22570
22571 cat confdefs.h - <<_ACEOF >conftest.c
22572 /* confdefs.h. */
22573 _ACEOF
22574 cat confdefs.h >>conftest.$ac_ext
22575 cat >>conftest.$ac_ext <<_ACEOF
22576 /* end confdefs.h. */
22577
22578
22579 #include <linux/fs.h>
22580 #include <linux/sched.h>
22581
22582 #ifdef HAVE_MKDIR_UMODE_T
22583 int inode_create(struct inode *inode ,struct dentry *dentry,
22584 umode_t umode, struct nameidata *nidata) { return 0; }
22585 #else
22586 int inode_create(struct inode *inode,struct dentry *dentry,
22587 int umode, struct nameidata * nidata) { return 0; }
22588 #endif
22589
22590 static const struct inode_operations
22591 iops __attribute__ ((unused)) = {
22592 .create = inode_create,
22593 };
22594
22595 int
22596 main (void)
22597 {
22598
22599
22600 ;
22601 return 0;
22602 }
22603
22604 _ACEOF
22605
22606
22607
22608 cat - <<_ACEOF >conftest.h
22609
22610 _ACEOF
22611
22612
22613 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
22614 echo "obj-m := conftest.o" >build/Makefile
22615 modpost_flag=''
22616 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
22617 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
22618 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22619 (eval $ac_try) 2>&5
22620 ac_status=$?
22621 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22622 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
22623 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22624 (eval $ac_try) 2>&5
22625 ac_status=$?
22626 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22627 (exit $ac_status); }; }; then
22628
22629 { $as_echo "$as_me:$LINENO: result: yes" >&5
22630 $as_echo "yes" >&6; }
22631
22632 cat >>confdefs.h <<\_ACEOF
22633 #define HAVE_CREATE_NAMEIDATA 1
22634 _ACEOF
22635
22636
22637 else
22638 $as_echo "$as_me: failed program was:" >&5
22639 sed 's/^/| /' conftest.$ac_ext >&5
22640
22641 { $as_echo "$as_me:$LINENO: result: no" >&5
22642 $as_echo "no" >&6; }
22643
22644
22645
22646 fi
22647
22648 rm -Rf build
22649
22650
22651
22652
22653 { $as_echo "$as_me:$LINENO: checking whether iops->get_link() passes delayed" >&5
22654 $as_echo_n "checking whether iops->get_link() passes delayed... " >&6; }
22655
22656
22657 cat confdefs.h - <<_ACEOF >conftest.c
22658 /* confdefs.h. */
22659 _ACEOF
22660 cat confdefs.h >>conftest.$ac_ext
22661 cat >>conftest.$ac_ext <<_ACEOF
22662 /* end confdefs.h. */
22663
22664
22665 #include <linux/fs.h>
22666 const char *get_link(struct dentry *de, struct inode *ip,
22667 struct delayed_call *done) { return "symlink"; }
22668 static struct inode_operations
22669 iops __attribute__ ((unused)) = {
22670 .get_link = get_link,
22671 };
22672
22673 int
22674 main (void)
22675 {
22676
22677
22678 ;
22679 return 0;
22680 }
22681
22682 _ACEOF
22683
22684
22685
22686 cat - <<_ACEOF >conftest.h
22687
22688 _ACEOF
22689
22690
22691 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
22692 echo "obj-m := conftest.o" >build/Makefile
22693 modpost_flag=''
22694 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
22695 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
22696 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22697 (eval $ac_try) 2>&5
22698 ac_status=$?
22699 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22700 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
22701 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22702 (eval $ac_try) 2>&5
22703 ac_status=$?
22704 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22705 (exit $ac_status); }; }; then
22706
22707 { $as_echo "$as_me:$LINENO: result: yes" >&5
22708 $as_echo "yes" >&6; }
22709
22710 cat >>confdefs.h <<\_ACEOF
22711 #define HAVE_GET_LINK_DELAYED 1
22712 _ACEOF
22713
22714
22715 else
22716 $as_echo "$as_me: failed program was:" >&5
22717 sed 's/^/| /' conftest.$ac_ext >&5
22718
22719 { $as_echo "$as_me:$LINENO: result: no" >&5
22720 $as_echo "no" >&6; }
22721 { $as_echo "$as_me:$LINENO: checking whether iops->get_link() passes cookie" >&5
22722 $as_echo_n "checking whether iops->get_link() passes cookie... " >&6; }
22723
22724
22725 cat confdefs.h - <<_ACEOF >conftest.c
22726 /* confdefs.h. */
22727 _ACEOF
22728 cat confdefs.h >>conftest.$ac_ext
22729 cat >>conftest.$ac_ext <<_ACEOF
22730 /* end confdefs.h. */
22731
22732
22733 #include <linux/fs.h>
22734 const char *get_link(struct dentry *de, struct
22735 inode *ip, void **cookie) { return "symlink"; }
22736 static struct inode_operations
22737 iops __attribute__ ((unused)) = {
22738 .get_link = get_link,
22739 };
22740
22741 int
22742 main (void)
22743 {
22744
22745
22746 ;
22747 return 0;
22748 }
22749
22750 _ACEOF
22751
22752
22753
22754 cat - <<_ACEOF >conftest.h
22755
22756 _ACEOF
22757
22758
22759 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
22760 echo "obj-m := conftest.o" >build/Makefile
22761 modpost_flag=''
22762 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
22763 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
22764 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22765 (eval $ac_try) 2>&5
22766 ac_status=$?
22767 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22768 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
22769 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22770 (eval $ac_try) 2>&5
22771 ac_status=$?
22772 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22773 (exit $ac_status); }; }; then
22774
22775 { $as_echo "$as_me:$LINENO: result: yes" >&5
22776 $as_echo "yes" >&6; }
22777
22778 cat >>confdefs.h <<\_ACEOF
22779 #define HAVE_GET_LINK_COOKIE 1
22780 _ACEOF
22781
22782
22783 else
22784 $as_echo "$as_me: failed program was:" >&5
22785 sed 's/^/| /' conftest.$ac_ext >&5
22786
22787 { $as_echo "$as_me:$LINENO: result: no" >&5
22788 $as_echo "no" >&6; }
22789
22790 { $as_echo "$as_me:$LINENO: checking whether iops->follow_link() passes cookie" >&5
22791 $as_echo_n "checking whether iops->follow_link() passes cookie... " >&6; }
22792
22793
22794 cat confdefs.h - <<_ACEOF >conftest.c
22795 /* confdefs.h. */
22796 _ACEOF
22797 cat confdefs.h >>conftest.$ac_ext
22798 cat >>conftest.$ac_ext <<_ACEOF
22799 /* end confdefs.h. */
22800
22801
22802 #include <linux/fs.h>
22803 const char *follow_link(struct dentry *de,
22804 void **cookie) { return "symlink"; }
22805 static struct inode_operations
22806 iops __attribute__ ((unused)) = {
22807 .follow_link = follow_link,
22808 };
22809
22810 int
22811 main (void)
22812 {
22813
22814
22815 ;
22816 return 0;
22817 }
22818
22819 _ACEOF
22820
22821
22822
22823 cat - <<_ACEOF >conftest.h
22824
22825 _ACEOF
22826
22827
22828 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
22829 echo "obj-m := conftest.o" >build/Makefile
22830 modpost_flag=''
22831 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
22832 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
22833 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22834 (eval $ac_try) 2>&5
22835 ac_status=$?
22836 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22837 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
22838 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22839 (eval $ac_try) 2>&5
22840 ac_status=$?
22841 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22842 (exit $ac_status); }; }; then
22843
22844 { $as_echo "$as_me:$LINENO: result: yes" >&5
22845 $as_echo "yes" >&6; }
22846
22847 cat >>confdefs.h <<\_ACEOF
22848 #define HAVE_FOLLOW_LINK_COOKIE 1
22849 _ACEOF
22850
22851
22852 else
22853 $as_echo "$as_me: failed program was:" >&5
22854 sed 's/^/| /' conftest.$ac_ext >&5
22855
22856 { $as_echo "$as_me:$LINENO: result: no" >&5
22857 $as_echo "no" >&6; }
22858 { $as_echo "$as_me:$LINENO: checking whether iops->follow_link() passes nameidata" >&5
22859 $as_echo_n "checking whether iops->follow_link() passes nameidata... " >&6; }
22860
22861
22862 cat confdefs.h - <<_ACEOF >conftest.c
22863 /* confdefs.h. */
22864 _ACEOF
22865 cat confdefs.h >>conftest.$ac_ext
22866 cat >>conftest.$ac_ext <<_ACEOF
22867 /* end confdefs.h. */
22868
22869
22870 #include <linux/fs.h>
22871 void *follow_link(struct dentry *de, struct
22872 nameidata *nd) { return (void *)NULL; }
22873 static struct inode_operations
22874 iops __attribute__ ((unused)) = {
22875 .follow_link = follow_link,
22876 };
22877
22878 int
22879 main (void)
22880 {
22881
22882
22883 ;
22884 return 0;
22885 }
22886
22887 _ACEOF
22888
22889
22890
22891 cat - <<_ACEOF >conftest.h
22892
22893 _ACEOF
22894
22895
22896 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
22897 echo "obj-m := conftest.o" >build/Makefile
22898 modpost_flag=''
22899 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
22900 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
22901 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22902 (eval $ac_try) 2>&5
22903 ac_status=$?
22904 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22905 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
22906 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22907 (eval $ac_try) 2>&5
22908 ac_status=$?
22909 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22910 (exit $ac_status); }; }; then
22911
22912 { $as_echo "$as_me:$LINENO: result: yes" >&5
22913 $as_echo "yes" >&6; }
22914
22915 cat >>confdefs.h <<\_ACEOF
22916 #define HAVE_FOLLOW_LINK_NAMEIDATA 1
22917 _ACEOF
22918
22919
22920 else
22921 $as_echo "$as_me: failed program was:" >&5
22922 sed 's/^/| /' conftest.$ac_ext >&5
22923
22924 { { $as_echo "$as_me:$LINENO: error: no; please file a bug report" >&5
22925 $as_echo "$as_me: error: no; please file a bug report" >&2;}
22926 { (exit 1); exit 1; }; }
22927
22928
22929
22930 fi
22931
22932 rm -Rf build
22933
22934
22935
22936
22937
22938 fi
22939
22940 rm -Rf build
22941
22942
22943
22944
22945
22946
22947 fi
22948
22949 rm -Rf build
22950
22951
22952
22953
22954
22955 fi
22956
22957 rm -Rf build
22958
22959
22960
22961
22962
22963
22964 cat confdefs.h - <<_ACEOF >conftest.c
22965 /* confdefs.h. */
22966 _ACEOF
22967 cat confdefs.h >>conftest.$ac_ext
22968 cat >>conftest.$ac_ext <<_ACEOF
22969 /* end confdefs.h. */
22970
22971
22972 #if !defined(HAVE_GET_LINK_DELAYED)
22973 #error "Expecting get_link() delayed done"
22974 #endif
22975
22976 int
22977 main (void)
22978 {
22979
22980
22981 ;
22982 return 0;
22983 }
22984
22985 _ACEOF
22986
22987
22988
22989 cat - <<_ACEOF >conftest.h
22990
22991 _ACEOF
22992
22993
22994 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
22995 echo "obj-m := conftest.o" >build/Makefile
22996 modpost_flag=''
22997 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
22998 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
22999 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23000 (eval $ac_try) 2>&5
23001 ac_status=$?
23002 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23003 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
23004 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23005 (eval $ac_try) 2>&5
23006 ac_status=$?
23007 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23008 (exit $ac_status); }; }; then
23009
23010
23011 cat >>confdefs.h <<\_ACEOF
23012 #define HAVE_PUT_LINK_DELAYED 1
23013 _ACEOF
23014
23015
23016 else
23017 $as_echo "$as_me: failed program was:" >&5
23018 sed 's/^/| /' conftest.$ac_ext >&5
23019
23020 { $as_echo "$as_me:$LINENO: checking whether iops->put_link() passes cookie" >&5
23021 $as_echo_n "checking whether iops->put_link() passes cookie... " >&6; }
23022
23023
23024 cat confdefs.h - <<_ACEOF >conftest.c
23025 /* confdefs.h. */
23026 _ACEOF
23027 cat confdefs.h >>conftest.$ac_ext
23028 cat >>conftest.$ac_ext <<_ACEOF
23029 /* end confdefs.h. */
23030
23031
23032 #include <linux/fs.h>
23033 void put_link(struct inode *ip, void *cookie)
23034 { return; }
23035 static struct inode_operations
23036 iops __attribute__ ((unused)) = {
23037 .put_link = put_link,
23038 };
23039
23040 int
23041 main (void)
23042 {
23043
23044
23045 ;
23046 return 0;
23047 }
23048
23049 _ACEOF
23050
23051
23052
23053 cat - <<_ACEOF >conftest.h
23054
23055 _ACEOF
23056
23057
23058 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
23059 echo "obj-m := conftest.o" >build/Makefile
23060 modpost_flag=''
23061 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
23062 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
23063 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23064 (eval $ac_try) 2>&5
23065 ac_status=$?
23066 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23067 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
23068 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23069 (eval $ac_try) 2>&5
23070 ac_status=$?
23071 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23072 (exit $ac_status); }; }; then
23073
23074 { $as_echo "$as_me:$LINENO: result: yes" >&5
23075 $as_echo "yes" >&6; }
23076
23077 cat >>confdefs.h <<\_ACEOF
23078 #define HAVE_PUT_LINK_COOKIE 1
23079 _ACEOF
23080
23081
23082 else
23083 $as_echo "$as_me: failed program was:" >&5
23084 sed 's/^/| /' conftest.$ac_ext >&5
23085
23086 { $as_echo "$as_me:$LINENO: result: no" >&5
23087 $as_echo "no" >&6; }
23088 { $as_echo "$as_me:$LINENO: checking whether iops->put_link() passes nameidata" >&5
23089 $as_echo_n "checking whether iops->put_link() passes nameidata... " >&6; }
23090
23091
23092 cat confdefs.h - <<_ACEOF >conftest.c
23093 /* confdefs.h. */
23094 _ACEOF
23095 cat confdefs.h >>conftest.$ac_ext
23096 cat >>conftest.$ac_ext <<_ACEOF
23097 /* end confdefs.h. */
23098
23099
23100 #include <linux/fs.h>
23101 void put_link(struct dentry *de, struct
23102 nameidata *nd, void *ptr) { return; }
23103 static struct inode_operations
23104 iops __attribute__ ((unused)) = {
23105 .put_link = put_link,
23106 };
23107
23108 int
23109 main (void)
23110 {
23111
23112
23113 ;
23114 return 0;
23115 }
23116
23117 _ACEOF
23118
23119
23120
23121 cat - <<_ACEOF >conftest.h
23122
23123 _ACEOF
23124
23125
23126 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
23127 echo "obj-m := conftest.o" >build/Makefile
23128 modpost_flag=''
23129 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
23130 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
23131 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23132 (eval $ac_try) 2>&5
23133 ac_status=$?
23134 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23135 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
23136 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23137 (eval $ac_try) 2>&5
23138 ac_status=$?
23139 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23140 (exit $ac_status); }; }; then
23141
23142 { $as_echo "$as_me:$LINENO: result: yes" >&5
23143 $as_echo "yes" >&6; }
23144
23145 cat >>confdefs.h <<\_ACEOF
23146 #define HAVE_PUT_LINK_NAMEIDATA 1
23147 _ACEOF
23148
23149
23150 else
23151 $as_echo "$as_me: failed program was:" >&5
23152 sed 's/^/| /' conftest.$ac_ext >&5
23153
23154 { { $as_echo "$as_me:$LINENO: error: no; please file a bug report" >&5
23155 $as_echo "$as_me: error: no; please file a bug report" >&2;}
23156 { (exit 1); exit 1; }; }
23157
23158
23159
23160 fi
23161
23162 rm -Rf build
23163
23164
23165
23166
23167
23168 fi
23169
23170 rm -Rf build
23171
23172
23173
23174
23175
23176 fi
23177
23178 rm -Rf build
23179
23180
23181
23182
23183 { $as_echo "$as_me:$LINENO: checking whether i_op->tmpfile() exists" >&5
23184 $as_echo_n "checking whether i_op->tmpfile() exists... " >&6; }
23185
23186
23187 cat confdefs.h - <<_ACEOF >conftest.c
23188 /* confdefs.h. */
23189 _ACEOF
23190 cat confdefs.h >>conftest.$ac_ext
23191 cat >>conftest.$ac_ext <<_ACEOF
23192 /* end confdefs.h. */
23193
23194
23195 #include <linux/fs.h>
23196 int tmpfile(struct inode *inode, struct dentry *dentry,
23197 umode_t mode) { return 0; }
23198 static struct inode_operations
23199 iops __attribute__ ((unused)) = {
23200 .tmpfile = tmpfile,
23201 };
23202
23203 int
23204 main (void)
23205 {
23206
23207
23208 ;
23209 return 0;
23210 }
23211
23212 _ACEOF
23213
23214
23215
23216 cat - <<_ACEOF >conftest.h
23217
23218 _ACEOF
23219
23220
23221 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
23222 echo "obj-m := conftest.o" >build/Makefile
23223 modpost_flag=''
23224 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
23225 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
23226 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23227 (eval $ac_try) 2>&5
23228 ac_status=$?
23229 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23230 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
23231 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23232 (eval $ac_try) 2>&5
23233 ac_status=$?
23234 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23235 (exit $ac_status); }; }; then
23236
23237 { $as_echo "$as_me:$LINENO: result: yes" >&5
23238 $as_echo "yes" >&6; }
23239
23240 cat >>confdefs.h <<\_ACEOF
23241 #define HAVE_TMPFILE 1
23242 _ACEOF
23243
23244
23245 else
23246 $as_echo "$as_me: failed program was:" >&5
23247 sed 's/^/| /' conftest.$ac_ext >&5
23248
23249 { $as_echo "$as_me:$LINENO: result: no" >&5
23250 $as_echo "no" >&6; }
23251
23252
23253
23254 fi
23255
23256 rm -Rf build
23257
23258
23259
23260
23261 { $as_echo "$as_me:$LINENO: checking whether iops->truncate_range() exists" >&5
23262 $as_echo_n "checking whether iops->truncate_range() exists... " >&6; }
23263
23264
23265 cat confdefs.h - <<_ACEOF >conftest.c
23266 /* confdefs.h. */
23267 _ACEOF
23268 cat confdefs.h >>conftest.$ac_ext
23269 cat >>conftest.$ac_ext <<_ACEOF
23270 /* end confdefs.h. */
23271
23272
23273 #include <linux/fs.h>
23274 void truncate_range(struct inode *inode, loff_t start,
23275 loff_t end) { return; }
23276 static struct inode_operations iops __attribute__ ((unused)) = {
23277 .truncate_range = truncate_range,
23278 };
23279
23280 int
23281 main (void)
23282 {
23283
23284
23285 ;
23286 return 0;
23287 }
23288
23289 _ACEOF
23290
23291
23292
23293 cat - <<_ACEOF >conftest.h
23294
23295 _ACEOF
23296
23297
23298 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
23299 echo "obj-m := conftest.o" >build/Makefile
23300 modpost_flag=''
23301 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
23302 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
23303 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23304 (eval $ac_try) 2>&5
23305 ac_status=$?
23306 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23307 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
23308 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23309 (eval $ac_try) 2>&5
23310 ac_status=$?
23311 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23312 (exit $ac_status); }; }; then
23313
23314 { $as_echo "$as_me:$LINENO: result: yes" >&5
23315 $as_echo "yes" >&6; }
23316
23317 cat >>confdefs.h <<\_ACEOF
23318 #define HAVE_INODE_TRUNCATE_RANGE 1
23319 _ACEOF
23320
23321
23322 else
23323 $as_echo "$as_me: failed program was:" >&5
23324 sed 's/^/| /' conftest.$ac_ext >&5
23325
23326 { $as_echo "$as_me:$LINENO: result: no" >&5
23327 $as_echo "no" >&6; }
23328
23329
23330
23331 fi
23332
23333 rm -Rf build
23334
23335
23336
23337
23338 { $as_echo "$as_me:$LINENO: checking whether dops->d_automount() exists" >&5
23339 $as_echo_n "checking whether dops->d_automount() exists... " >&6; }
23340
23341
23342 cat confdefs.h - <<_ACEOF >conftest.c
23343 /* confdefs.h. */
23344 _ACEOF
23345 cat confdefs.h >>conftest.$ac_ext
23346 cat >>conftest.$ac_ext <<_ACEOF
23347 /* end confdefs.h. */
23348
23349
23350 #include <linux/dcache.h>
23351 struct vfsmount *d_automount(struct path *p) { return NULL; }
23352 struct dentry_operations dops __attribute__ ((unused)) = {
23353 .d_automount = d_automount,
23354 };
23355
23356 int
23357 main (void)
23358 {
23359
23360
23361 ;
23362 return 0;
23363 }
23364
23365 _ACEOF
23366
23367
23368
23369 cat - <<_ACEOF >conftest.h
23370
23371 _ACEOF
23372
23373
23374 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
23375 echo "obj-m := conftest.o" >build/Makefile
23376 modpost_flag=''
23377 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
23378 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
23379 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23380 (eval $ac_try) 2>&5
23381 ac_status=$?
23382 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23383 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
23384 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23385 (eval $ac_try) 2>&5
23386 ac_status=$?
23387 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23388 (exit $ac_status); }; }; then
23389
23390 { $as_echo "$as_me:$LINENO: result: yes" >&5
23391 $as_echo "yes" >&6; }
23392
23393 cat >>confdefs.h <<\_ACEOF
23394 #define HAVE_AUTOMOUNT 1
23395 _ACEOF
23396
23397
23398 else
23399 $as_echo "$as_me: failed program was:" >&5
23400 sed 's/^/| /' conftest.$ac_ext >&5
23401
23402 { $as_echo "$as_me:$LINENO: result: no" >&5
23403 $as_echo "no" >&6; }
23404
23405
23406
23407 fi
23408
23409 rm -Rf build
23410
23411
23412
23413
23414 { $as_echo "$as_me:$LINENO: checking whether eops->encode_fh() wants inode" >&5
23415 $as_echo_n "checking whether eops->encode_fh() wants inode... " >&6; }
23416
23417
23418 cat confdefs.h - <<_ACEOF >conftest.c
23419 /* confdefs.h. */
23420 _ACEOF
23421 cat confdefs.h >>conftest.$ac_ext
23422 cat >>conftest.$ac_ext <<_ACEOF
23423 /* end confdefs.h. */
23424
23425
23426 #include <linux/exportfs.h>
23427 int encode_fh(struct inode *inode, __u32 *fh, int *max_len,
23428 struct inode *parent) { return 0; }
23429 static struct export_operations eops __attribute__ ((unused))={
23430 .encode_fh = encode_fh,
23431 };
23432
23433 int
23434 main (void)
23435 {
23436
23437
23438 ;
23439 return 0;
23440 }
23441
23442 _ACEOF
23443
23444
23445
23446 cat - <<_ACEOF >conftest.h
23447
23448 _ACEOF
23449
23450
23451 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
23452 echo "obj-m := conftest.o" >build/Makefile
23453 modpost_flag=''
23454 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
23455 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
23456 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23457 (eval $ac_try) 2>&5
23458 ac_status=$?
23459 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23460 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
23461 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23462 (eval $ac_try) 2>&5
23463 ac_status=$?
23464 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23465 (exit $ac_status); }; }; then
23466
23467 { $as_echo "$as_me:$LINENO: result: yes" >&5
23468 $as_echo "yes" >&6; }
23469
23470 cat >>confdefs.h <<\_ACEOF
23471 #define HAVE_ENCODE_FH_WITH_INODE 1
23472 _ACEOF
23473
23474
23475 else
23476 $as_echo "$as_me: failed program was:" >&5
23477 sed 's/^/| /' conftest.$ac_ext >&5
23478
23479 { $as_echo "$as_me:$LINENO: result: no" >&5
23480 $as_echo "no" >&6; }
23481
23482
23483
23484 fi
23485
23486 rm -Rf build
23487
23488
23489
23490
23491 { $as_echo "$as_me:$LINENO: checking whether eops->commit_metadata() exists" >&5
23492 $as_echo_n "checking whether eops->commit_metadata() exists... " >&6; }
23493
23494
23495 cat confdefs.h - <<_ACEOF >conftest.c
23496 /* confdefs.h. */
23497 _ACEOF
23498 cat confdefs.h >>conftest.$ac_ext
23499 cat >>conftest.$ac_ext <<_ACEOF
23500 /* end confdefs.h. */
23501
23502
23503 #include <linux/exportfs.h>
23504 int commit_metadata(struct inode *inode) { return 0; }
23505 static struct export_operations eops __attribute__ ((unused))={
23506 .commit_metadata = commit_metadata,
23507 };
23508
23509 int
23510 main (void)
23511 {
23512
23513
23514 ;
23515 return 0;
23516 }
23517
23518 _ACEOF
23519
23520
23521
23522 cat - <<_ACEOF >conftest.h
23523
23524 _ACEOF
23525
23526
23527 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
23528 echo "obj-m := conftest.o" >build/Makefile
23529 modpost_flag=''
23530 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
23531 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
23532 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23533 (eval $ac_try) 2>&5
23534 ac_status=$?
23535 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23536 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
23537 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23538 (eval $ac_try) 2>&5
23539 ac_status=$?
23540 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23541 (exit $ac_status); }; }; then
23542
23543 { $as_echo "$as_me:$LINENO: result: yes" >&5
23544 $as_echo "yes" >&6; }
23545
23546 cat >>confdefs.h <<\_ACEOF
23547 #define HAVE_COMMIT_METADATA 1
23548 _ACEOF
23549
23550
23551 else
23552 $as_echo "$as_me: failed program was:" >&5
23553 sed 's/^/| /' conftest.$ac_ext >&5
23554
23555 { $as_echo "$as_me:$LINENO: result: no" >&5
23556 $as_echo "no" >&6; }
23557
23558
23559
23560 fi
23561
23562 rm -Rf build
23563
23564
23565
23566 { $as_echo "$as_me:$LINENO: checking whether clear_inode() is available" >&5
23567 $as_echo_n "checking whether clear_inode() is available... " >&6; }
23568
23569
23570
23571 cat confdefs.h - <<_ACEOF >conftest.c
23572 /* confdefs.h. */
23573 _ACEOF
23574 cat confdefs.h >>conftest.$ac_ext
23575 cat >>conftest.$ac_ext <<_ACEOF
23576 /* end confdefs.h. */
23577
23578
23579 #include <linux/fs.h>
23580
23581 int
23582 main (void)
23583 {
23584
23585 clear_inode(NULL);
23586
23587 ;
23588 return 0;
23589 }
23590
23591 _ACEOF
23592
23593
23594
23595 cat - <<_ACEOF >conftest.h
23596
23597 _ACEOF
23598
23599
23600 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
23601 echo "obj-m := conftest.o" >build/Makefile
23602 modpost_flag=''
23603 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
23604 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
23605 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23606 (eval $ac_try) 2>&5
23607 ac_status=$?
23608 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23609 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
23610 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23611 (eval $ac_try) 2>&5
23612 ac_status=$?
23613 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23614 (exit $ac_status); }; }; then
23615 rc=0
23616 else
23617 $as_echo "$as_me: failed program was:" >&5
23618 sed 's/^/| /' conftest.$ac_ext >&5
23619 rc=1
23620
23621
23622 fi
23623
23624 rm -Rf build
23625
23626
23627 if test $rc -ne 0; then :
23628
23629 { $as_echo "$as_me:$LINENO: result: no" >&5
23630 $as_echo "no" >&6; }
23631
23632 else
23633 if test "x$enable_linux_builtin" != xyes; then
23634
23635 grep -q -E '[[:space:]]clear_inode[[:space:]]' \
23636 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
23637 rc=$?
23638 if test $rc -ne 0; then
23639 export=0
23640 for file in fs/inode.c; do
23641 grep -q -E "EXPORT_SYMBOL.*(clear_inode)" \
23642 "$LINUX/$file" 2>/dev/null
23643 rc=$?
23644 if test $rc -eq 0; then
23645 export=1
23646 break;
23647 fi
23648 done
23649 if test $export -eq 0; then :
23650 rc=1
23651 else :
23652 rc=0
23653 fi
23654 else :
23655 rc=0
23656 fi
23657
23658 fi
23659 if test $rc -ne 0; then :
23660
23661 { $as_echo "$as_me:$LINENO: result: no" >&5
23662 $as_echo "no" >&6; }
23663
23664 else :
23665
23666 { $as_echo "$as_me:$LINENO: result: yes" >&5
23667 $as_echo "yes" >&6; }
23668
23669 cat >>confdefs.h <<\_ACEOF
23670 #define HAVE_CLEAR_INODE 1
23671 _ACEOF
23672
23673
23674 fi
23675 fi
23676
23677
23678 { $as_echo "$as_me:$LINENO: checking whether setattr_prepare() is available" >&5
23679 $as_echo_n "checking whether setattr_prepare() is available... " >&6; }
23680
23681
23682
23683 cat confdefs.h - <<_ACEOF >conftest.c
23684 /* confdefs.h. */
23685 _ACEOF
23686 cat confdefs.h >>conftest.$ac_ext
23687 cat >>conftest.$ac_ext <<_ACEOF
23688 /* end confdefs.h. */
23689
23690
23691 #include <linux/fs.h>
23692
23693 int
23694 main (void)
23695 {
23696
23697 struct dentry *dentry = NULL;
23698 struct iattr *attr = NULL;
23699 int error;
23700
23701 error = setattr_prepare(dentry, attr);
23702
23703 ;
23704 return 0;
23705 }
23706
23707 _ACEOF
23708
23709
23710
23711 cat - <<_ACEOF >conftest.h
23712
23713 _ACEOF
23714
23715
23716 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
23717 echo "obj-m := conftest.o" >build/Makefile
23718 modpost_flag=''
23719 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
23720 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
23721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23722 (eval $ac_try) 2>&5
23723 ac_status=$?
23724 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23725 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
23726 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23727 (eval $ac_try) 2>&5
23728 ac_status=$?
23729 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23730 (exit $ac_status); }; }; then
23731 rc=0
23732 else
23733 $as_echo "$as_me: failed program was:" >&5
23734 sed 's/^/| /' conftest.$ac_ext >&5
23735 rc=1
23736
23737
23738 fi
23739
23740 rm -Rf build
23741
23742
23743 if test $rc -ne 0; then :
23744
23745 { $as_echo "$as_me:$LINENO: result: no" >&5
23746 $as_echo "no" >&6; }
23747
23748 else
23749 if test "x$enable_linux_builtin" != xyes; then
23750
23751 grep -q -E '[[:space:]]setattr_prepare[[:space:]]' \
23752 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
23753 rc=$?
23754 if test $rc -ne 0; then
23755 export=0
23756 for file in fs/attr.c; do
23757 grep -q -E "EXPORT_SYMBOL.*(setattr_prepare)" \
23758 "$LINUX/$file" 2>/dev/null
23759 rc=$?
23760 if test $rc -eq 0; then
23761 export=1
23762 break;
23763 fi
23764 done
23765 if test $export -eq 0; then :
23766 rc=1
23767 else :
23768 rc=0
23769 fi
23770 else :
23771 rc=0
23772 fi
23773
23774 fi
23775 if test $rc -ne 0; then :
23776
23777 { $as_echo "$as_me:$LINENO: result: no" >&5
23778 $as_echo "no" >&6; }
23779
23780 else :
23781
23782 { $as_echo "$as_me:$LINENO: result: yes" >&5
23783 $as_echo "yes" >&6; }
23784
23785 cat >>confdefs.h <<\_ACEOF
23786 #define HAVE_SETATTR_PREPARE 1
23787 _ACEOF
23788
23789
23790 fi
23791 fi
23792
23793
23794 { $as_echo "$as_me:$LINENO: checking whether insert_inode_locked() is available" >&5
23795 $as_echo_n "checking whether insert_inode_locked() is available... " >&6; }
23796
23797
23798
23799 cat confdefs.h - <<_ACEOF >conftest.c
23800 /* confdefs.h. */
23801 _ACEOF
23802 cat confdefs.h >>conftest.$ac_ext
23803 cat >>conftest.$ac_ext <<_ACEOF
23804 /* end confdefs.h. */
23805
23806
23807 #include <linux/fs.h>
23808
23809 int
23810 main (void)
23811 {
23812
23813 insert_inode_locked(NULL);
23814
23815 ;
23816 return 0;
23817 }
23818
23819 _ACEOF
23820
23821
23822
23823 cat - <<_ACEOF >conftest.h
23824
23825 _ACEOF
23826
23827
23828 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
23829 echo "obj-m := conftest.o" >build/Makefile
23830 modpost_flag=''
23831 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
23832 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
23833 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23834 (eval $ac_try) 2>&5
23835 ac_status=$?
23836 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23837 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
23838 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23839 (eval $ac_try) 2>&5
23840 ac_status=$?
23841 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23842 (exit $ac_status); }; }; then
23843 rc=0
23844 else
23845 $as_echo "$as_me: failed program was:" >&5
23846 sed 's/^/| /' conftest.$ac_ext >&5
23847 rc=1
23848
23849
23850 fi
23851
23852 rm -Rf build
23853
23854
23855 if test $rc -ne 0; then :
23856
23857 { $as_echo "$as_me:$LINENO: result: no" >&5
23858 $as_echo "no" >&6; }
23859
23860 else
23861 if test "x$enable_linux_builtin" != xyes; then
23862
23863 grep -q -E '[[:space:]]insert_inode_locked[[:space:]]' \
23864 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
23865 rc=$?
23866 if test $rc -ne 0; then
23867 export=0
23868 for file in fs/inode.c; do
23869 grep -q -E "EXPORT_SYMBOL.*(insert_inode_locked)" \
23870 "$LINUX/$file" 2>/dev/null
23871 rc=$?
23872 if test $rc -eq 0; then
23873 export=1
23874 break;
23875 fi
23876 done
23877 if test $export -eq 0; then :
23878 rc=1
23879 else :
23880 rc=0
23881 fi
23882 else :
23883 rc=0
23884 fi
23885
23886 fi
23887 if test $rc -ne 0; then :
23888
23889 { $as_echo "$as_me:$LINENO: result: no" >&5
23890 $as_echo "no" >&6; }
23891
23892 else :
23893
23894 { $as_echo "$as_me:$LINENO: result: yes" >&5
23895 $as_echo "yes" >&6; }
23896
23897 cat >>confdefs.h <<\_ACEOF
23898 #define HAVE_INSERT_INODE_LOCKED 1
23899 _ACEOF
23900
23901
23902 fi
23903 fi
23904
23905
23906 { $as_echo "$as_me:$LINENO: checking whether d_make_root() is available" >&5
23907 $as_echo_n "checking whether d_make_root() is available... " >&6; }
23908
23909
23910
23911 cat confdefs.h - <<_ACEOF >conftest.c
23912 /* confdefs.h. */
23913 _ACEOF
23914 cat confdefs.h >>conftest.$ac_ext
23915 cat >>conftest.$ac_ext <<_ACEOF
23916 /* end confdefs.h. */
23917
23918
23919 #include <linux/dcache.h>
23920
23921 int
23922 main (void)
23923 {
23924
23925 d_make_root(NULL);
23926
23927 ;
23928 return 0;
23929 }
23930
23931 _ACEOF
23932
23933
23934
23935 cat - <<_ACEOF >conftest.h
23936
23937 _ACEOF
23938
23939
23940 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
23941 echo "obj-m := conftest.o" >build/Makefile
23942 modpost_flag=''
23943 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
23944 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
23945 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23946 (eval $ac_try) 2>&5
23947 ac_status=$?
23948 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23949 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
23950 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23951 (eval $ac_try) 2>&5
23952 ac_status=$?
23953 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23954 (exit $ac_status); }; }; then
23955 rc=0
23956 else
23957 $as_echo "$as_me: failed program was:" >&5
23958 sed 's/^/| /' conftest.$ac_ext >&5
23959 rc=1
23960
23961
23962 fi
23963
23964 rm -Rf build
23965
23966
23967 if test $rc -ne 0; then :
23968
23969 { $as_echo "$as_me:$LINENO: result: no" >&5
23970 $as_echo "no" >&6; }
23971
23972 else
23973 if test "x$enable_linux_builtin" != xyes; then
23974
23975 grep -q -E '[[:space:]]d_make_root[[:space:]]' \
23976 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
23977 rc=$?
23978 if test $rc -ne 0; then
23979 export=0
23980 for file in fs/dcache.c; do
23981 grep -q -E "EXPORT_SYMBOL.*(d_make_root)" \
23982 "$LINUX/$file" 2>/dev/null
23983 rc=$?
23984 if test $rc -eq 0; then
23985 export=1
23986 break;
23987 fi
23988 done
23989 if test $export -eq 0; then :
23990 rc=1
23991 else :
23992 rc=0
23993 fi
23994 else :
23995 rc=0
23996 fi
23997
23998 fi
23999 if test $rc -ne 0; then :
24000
24001 { $as_echo "$as_me:$LINENO: result: no" >&5
24002 $as_echo "no" >&6; }
24003
24004 else :
24005
24006 { $as_echo "$as_me:$LINENO: result: yes" >&5
24007 $as_echo "yes" >&6; }
24008
24009 cat >>confdefs.h <<\_ACEOF
24010 #define HAVE_D_MAKE_ROOT 1
24011 _ACEOF
24012
24013
24014 fi
24015 fi
24016
24017
24018 { $as_echo "$as_me:$LINENO: checking whether d_obtain_alias() is available" >&5
24019 $as_echo_n "checking whether d_obtain_alias() is available... " >&6; }
24020
24021
24022
24023 cat confdefs.h - <<_ACEOF >conftest.c
24024 /* confdefs.h. */
24025 _ACEOF
24026 cat confdefs.h >>conftest.$ac_ext
24027 cat >>conftest.$ac_ext <<_ACEOF
24028 /* end confdefs.h. */
24029
24030
24031 #include <linux/dcache.h>
24032
24033 int
24034 main (void)
24035 {
24036
24037 d_obtain_alias(NULL);
24038
24039 ;
24040 return 0;
24041 }
24042
24043 _ACEOF
24044
24045
24046
24047 cat - <<_ACEOF >conftest.h
24048
24049 _ACEOF
24050
24051
24052 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
24053 echo "obj-m := conftest.o" >build/Makefile
24054 modpost_flag=''
24055 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
24056 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
24057 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24058 (eval $ac_try) 2>&5
24059 ac_status=$?
24060 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24061 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
24062 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24063 (eval $ac_try) 2>&5
24064 ac_status=$?
24065 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24066 (exit $ac_status); }; }; then
24067 rc=0
24068 else
24069 $as_echo "$as_me: failed program was:" >&5
24070 sed 's/^/| /' conftest.$ac_ext >&5
24071 rc=1
24072
24073
24074 fi
24075
24076 rm -Rf build
24077
24078
24079 if test $rc -ne 0; then :
24080
24081 { $as_echo "$as_me:$LINENO: result: no" >&5
24082 $as_echo "no" >&6; }
24083
24084 else
24085 if test "x$enable_linux_builtin" != xyes; then
24086
24087 grep -q -E '[[:space:]]d_obtain_alias[[:space:]]' \
24088 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
24089 rc=$?
24090 if test $rc -ne 0; then
24091 export=0
24092 for file in fs/dcache.c; do
24093 grep -q -E "EXPORT_SYMBOL.*(d_obtain_alias)" \
24094 "$LINUX/$file" 2>/dev/null
24095 rc=$?
24096 if test $rc -eq 0; then
24097 export=1
24098 break;
24099 fi
24100 done
24101 if test $export -eq 0; then :
24102 rc=1
24103 else :
24104 rc=0
24105 fi
24106 else :
24107 rc=0
24108 fi
24109
24110 fi
24111 if test $rc -ne 0; then :
24112
24113 { $as_echo "$as_me:$LINENO: result: no" >&5
24114 $as_echo "no" >&6; }
24115
24116 else :
24117
24118 { $as_echo "$as_me:$LINENO: result: yes" >&5
24119 $as_echo "yes" >&6; }
24120
24121 cat >>confdefs.h <<\_ACEOF
24122 #define HAVE_D_OBTAIN_ALIAS 1
24123 _ACEOF
24124
24125
24126 fi
24127 fi
24128
24129
24130 { $as_echo "$as_me:$LINENO: checking whether d_prune_aliases() is available" >&5
24131 $as_echo_n "checking whether d_prune_aliases() is available... " >&6; }
24132
24133
24134
24135 cat confdefs.h - <<_ACEOF >conftest.c
24136 /* confdefs.h. */
24137 _ACEOF
24138 cat confdefs.h >>conftest.$ac_ext
24139 cat >>conftest.$ac_ext <<_ACEOF
24140 /* end confdefs.h. */
24141
24142
24143 #include <linux/dcache.h>
24144
24145 int
24146 main (void)
24147 {
24148
24149 struct inode *ip = NULL;
24150 d_prune_aliases(ip);
24151
24152 ;
24153 return 0;
24154 }
24155
24156 _ACEOF
24157
24158
24159
24160 cat - <<_ACEOF >conftest.h
24161
24162 _ACEOF
24163
24164
24165 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
24166 echo "obj-m := conftest.o" >build/Makefile
24167 modpost_flag=''
24168 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
24169 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
24170 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24171 (eval $ac_try) 2>&5
24172 ac_status=$?
24173 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24174 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
24175 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24176 (eval $ac_try) 2>&5
24177 ac_status=$?
24178 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24179 (exit $ac_status); }; }; then
24180 rc=0
24181 else
24182 $as_echo "$as_me: failed program was:" >&5
24183 sed 's/^/| /' conftest.$ac_ext >&5
24184 rc=1
24185
24186
24187 fi
24188
24189 rm -Rf build
24190
24191
24192 if test $rc -ne 0; then :
24193
24194 { $as_echo "$as_me:$LINENO: result: no" >&5
24195 $as_echo "no" >&6; }
24196
24197 else
24198 if test "x$enable_linux_builtin" != xyes; then
24199
24200 grep -q -E '[[:space:]]d_prune_aliases[[:space:]]' \
24201 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
24202 rc=$?
24203 if test $rc -ne 0; then
24204 export=0
24205 for file in fs/dcache.c; do
24206 grep -q -E "EXPORT_SYMBOL.*(d_prune_aliases)" \
24207 "$LINUX/$file" 2>/dev/null
24208 rc=$?
24209 if test $rc -eq 0; then
24210 export=1
24211 break;
24212 fi
24213 done
24214 if test $export -eq 0; then :
24215 rc=1
24216 else :
24217 rc=0
24218 fi
24219 else :
24220 rc=0
24221 fi
24222
24223 fi
24224 if test $rc -ne 0; then :
24225
24226 { $as_echo "$as_me:$LINENO: result: no" >&5
24227 $as_echo "no" >&6; }
24228
24229 else :
24230
24231 { $as_echo "$as_me:$LINENO: result: yes" >&5
24232 $as_echo "yes" >&6; }
24233
24234 cat >>confdefs.h <<\_ACEOF
24235 #define HAVE_D_PRUNE_ALIASES 1
24236 _ACEOF
24237
24238
24239 fi
24240 fi
24241
24242
24243 { $as_echo "$as_me:$LINENO: checking whether d_set_d_op() is available" >&5
24244 $as_echo_n "checking whether d_set_d_op() is available... " >&6; }
24245
24246
24247
24248 cat confdefs.h - <<_ACEOF >conftest.c
24249 /* confdefs.h. */
24250 _ACEOF
24251 cat confdefs.h >>conftest.$ac_ext
24252 cat >>conftest.$ac_ext <<_ACEOF
24253 /* end confdefs.h. */
24254
24255
24256 #include <linux/dcache.h>
24257
24258 int
24259 main (void)
24260 {
24261
24262 d_set_d_op(NULL, NULL);
24263
24264 ;
24265 return 0;
24266 }
24267
24268 _ACEOF
24269
24270
24271
24272 cat - <<_ACEOF >conftest.h
24273
24274 _ACEOF
24275
24276
24277 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
24278 echo "obj-m := conftest.o" >build/Makefile
24279 modpost_flag=''
24280 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
24281 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
24282 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24283 (eval $ac_try) 2>&5
24284 ac_status=$?
24285 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24286 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
24287 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24288 (eval $ac_try) 2>&5
24289 ac_status=$?
24290 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24291 (exit $ac_status); }; }; then
24292 rc=0
24293 else
24294 $as_echo "$as_me: failed program was:" >&5
24295 sed 's/^/| /' conftest.$ac_ext >&5
24296 rc=1
24297
24298
24299 fi
24300
24301 rm -Rf build
24302
24303
24304 if test $rc -ne 0; then :
24305
24306 { $as_echo "$as_me:$LINENO: result: no" >&5
24307 $as_echo "no" >&6; }
24308
24309 else
24310 if test "x$enable_linux_builtin" != xyes; then
24311
24312 grep -q -E '[[:space:]]d_set_d_op[[:space:]]' \
24313 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
24314 rc=$?
24315 if test $rc -ne 0; then
24316 export=0
24317 for file in fs/dcache.c; do
24318 grep -q -E "EXPORT_SYMBOL.*(d_set_d_op)" \
24319 "$LINUX/$file" 2>/dev/null
24320 rc=$?
24321 if test $rc -eq 0; then
24322 export=1
24323 break;
24324 fi
24325 done
24326 if test $export -eq 0; then :
24327 rc=1
24328 else :
24329 rc=0
24330 fi
24331 else :
24332 rc=0
24333 fi
24334
24335 fi
24336 if test $rc -ne 0; then :
24337
24338 { $as_echo "$as_me:$LINENO: result: no" >&5
24339 $as_echo "no" >&6; }
24340
24341 else :
24342
24343 { $as_echo "$as_me:$LINENO: result: yes" >&5
24344 $as_echo "yes" >&6; }
24345
24346 cat >>confdefs.h <<\_ACEOF
24347 #define HAVE_D_SET_D_OP 1
24348 _ACEOF
24349
24350
24351 fi
24352 fi
24353
24354
24355
24356 { $as_echo "$as_me:$LINENO: checking whether dops->d_revalidate() takes struct nameidata" >&5
24357 $as_echo_n "checking whether dops->d_revalidate() takes struct nameidata... " >&6; }
24358
24359
24360 cat confdefs.h - <<_ACEOF >conftest.c
24361 /* confdefs.h. */
24362 _ACEOF
24363 cat confdefs.h >>conftest.$ac_ext
24364 cat >>conftest.$ac_ext <<_ACEOF
24365 /* end confdefs.h. */
24366
24367
24368 #include <linux/dcache.h>
24369 #include <linux/sched.h>
24370
24371 int revalidate (struct dentry *dentry,
24372 struct nameidata *nidata) { return 0; }
24373
24374 static const struct dentry_operations
24375 dops __attribute__ ((unused)) = {
24376 .d_revalidate = revalidate,
24377 };
24378
24379 int
24380 main (void)
24381 {
24382
24383
24384 ;
24385 return 0;
24386 }
24387
24388 _ACEOF
24389
24390
24391
24392 cat - <<_ACEOF >conftest.h
24393
24394 _ACEOF
24395
24396
24397 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
24398 echo "obj-m := conftest.o" >build/Makefile
24399 modpost_flag=''
24400 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
24401 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
24402 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24403 (eval $ac_try) 2>&5
24404 ac_status=$?
24405 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24406 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
24407 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24408 (eval $ac_try) 2>&5
24409 ac_status=$?
24410 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24411 (exit $ac_status); }; }; then
24412
24413 { $as_echo "$as_me:$LINENO: result: yes" >&5
24414 $as_echo "yes" >&6; }
24415
24416 cat >>confdefs.h <<\_ACEOF
24417 #define HAVE_D_REVALIDATE_NAMEIDATA 1
24418 _ACEOF
24419
24420
24421 else
24422 $as_echo "$as_me: failed program was:" >&5
24423 sed 's/^/| /' conftest.$ac_ext >&5
24424
24425 { $as_echo "$as_me:$LINENO: result: no" >&5
24426 $as_echo "no" >&6; }
24427
24428
24429
24430 fi
24431
24432 rm -Rf build
24433
24434
24435
24436
24437 { $as_echo "$as_me:$LINENO: checking whether dentry uses const struct dentry_operations" >&5
24438 $as_echo_n "checking whether dentry uses const struct dentry_operations... " >&6; }
24439
24440
24441 cat confdefs.h - <<_ACEOF >conftest.c
24442 /* confdefs.h. */
24443 _ACEOF
24444 cat confdefs.h >>conftest.$ac_ext
24445 cat >>conftest.$ac_ext <<_ACEOF
24446 /* end confdefs.h. */
24447
24448
24449 #include <linux/dcache.h>
24450
24451 const struct dentry_operations test_d_op = {
24452 .d_revalidate = NULL,
24453 };
24454
24455 int
24456 main (void)
24457 {
24458
24459 struct dentry d __attribute__ ((unused));
24460
24461 d.d_op = &test_d_op;
24462
24463 ;
24464 return 0;
24465 }
24466
24467 _ACEOF
24468
24469
24470
24471 cat - <<_ACEOF >conftest.h
24472
24473 _ACEOF
24474
24475
24476 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
24477 echo "obj-m := conftest.o" >build/Makefile
24478 modpost_flag=''
24479 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
24480 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
24481 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24482 (eval $ac_try) 2>&5
24483 ac_status=$?
24484 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24485 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
24486 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24487 (eval $ac_try) 2>&5
24488 ac_status=$?
24489 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24490 (exit $ac_status); }; }; then
24491
24492 { $as_echo "$as_me:$LINENO: result: yes" >&5
24493 $as_echo "yes" >&6; }
24494
24495 cat >>confdefs.h <<\_ACEOF
24496 #define HAVE_CONST_DENTRY_OPERATIONS 1
24497 _ACEOF
24498
24499
24500 else
24501 $as_echo "$as_me: failed program was:" >&5
24502 sed 's/^/| /' conftest.$ac_ext >&5
24503
24504 { $as_echo "$as_me:$LINENO: result: no" >&5
24505 $as_echo "no" >&6; }
24506
24507
24508
24509 fi
24510
24511 rm -Rf build
24512
24513
24514
24515 { $as_echo "$as_me:$LINENO: checking whether truncate_setsize() is available" >&5
24516 $as_echo_n "checking whether truncate_setsize() is available... " >&6; }
24517
24518
24519
24520 cat confdefs.h - <<_ACEOF >conftest.c
24521 /* confdefs.h. */
24522 _ACEOF
24523 cat confdefs.h >>conftest.$ac_ext
24524 cat >>conftest.$ac_ext <<_ACEOF
24525 /* end confdefs.h. */
24526
24527
24528 #include <linux/mm.h>
24529
24530 int
24531 main (void)
24532 {
24533
24534 truncate_setsize(NULL, 0);
24535
24536 ;
24537 return 0;
24538 }
24539
24540 _ACEOF
24541
24542
24543
24544 cat - <<_ACEOF >conftest.h
24545
24546 _ACEOF
24547
24548
24549 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
24550 echo "obj-m := conftest.o" >build/Makefile
24551 modpost_flag=''
24552 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
24553 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
24554 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24555 (eval $ac_try) 2>&5
24556 ac_status=$?
24557 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24558 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
24559 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24560 (eval $ac_try) 2>&5
24561 ac_status=$?
24562 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24563 (exit $ac_status); }; }; then
24564 rc=0
24565 else
24566 $as_echo "$as_me: failed program was:" >&5
24567 sed 's/^/| /' conftest.$ac_ext >&5
24568 rc=1
24569
24570
24571 fi
24572
24573 rm -Rf build
24574
24575
24576 if test $rc -ne 0; then :
24577
24578 { $as_echo "$as_me:$LINENO: result: no" >&5
24579 $as_echo "no" >&6; }
24580
24581 else
24582 if test "x$enable_linux_builtin" != xyes; then
24583
24584 grep -q -E '[[:space:]]truncate_setsize[[:space:]]' \
24585 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
24586 rc=$?
24587 if test $rc -ne 0; then
24588 export=0
24589 for file in mm/truncate.c; do
24590 grep -q -E "EXPORT_SYMBOL.*(truncate_setsize)" \
24591 "$LINUX/$file" 2>/dev/null
24592 rc=$?
24593 if test $rc -eq 0; then
24594 export=1
24595 break;
24596 fi
24597 done
24598 if test $export -eq 0; then :
24599 rc=1
24600 else :
24601 rc=0
24602 fi
24603 else :
24604 rc=0
24605 fi
24606
24607 fi
24608 if test $rc -ne 0; then :
24609
24610 { $as_echo "$as_me:$LINENO: result: no" >&5
24611 $as_echo "no" >&6; }
24612
24613 else :
24614
24615 { $as_echo "$as_me:$LINENO: result: yes" >&5
24616 $as_echo "yes" >&6; }
24617
24618 cat >>confdefs.h <<\_ACEOF
24619 #define HAVE_TRUNCATE_SETSIZE 1
24620 _ACEOF
24621
24622
24623 fi
24624 fi
24625
24626
24627
24628 { $as_echo "$as_me:$LINENO: checking whether security_inode_init_security wants 6 args" >&5
24629 $as_echo_n "checking whether security_inode_init_security wants 6 args... " >&6; }
24630
24631
24632 cat confdefs.h - <<_ACEOF >conftest.c
24633 /* confdefs.h. */
24634 _ACEOF
24635 cat confdefs.h >>conftest.$ac_ext
24636 cat >>conftest.$ac_ext <<_ACEOF
24637 /* end confdefs.h. */
24638
24639
24640 #include <linux/security.h>
24641
24642 int
24643 main (void)
24644 {
24645
24646 struct inode *ip __attribute__ ((unused)) = NULL;
24647 struct inode *dip __attribute__ ((unused)) = NULL;
24648 const struct qstr *str __attribute__ ((unused)) = NULL;
24649 char *name __attribute__ ((unused)) = NULL;
24650 void *value __attribute__ ((unused)) = NULL;
24651 size_t len __attribute__ ((unused)) = 0;
24652
24653 security_inode_init_security(ip, dip, str, &name, &value, &len);
24654
24655 ;
24656 return 0;
24657 }
24658
24659 _ACEOF
24660
24661
24662
24663 cat - <<_ACEOF >conftest.h
24664
24665 _ACEOF
24666
24667
24668 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
24669 echo "obj-m := conftest.o" >build/Makefile
24670 modpost_flag=''
24671 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
24672 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
24673 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24674 (eval $ac_try) 2>&5
24675 ac_status=$?
24676 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24677 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
24678 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24679 (eval $ac_try) 2>&5
24680 ac_status=$?
24681 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24682 (exit $ac_status); }; }; then
24683
24684 { $as_echo "$as_me:$LINENO: result: yes" >&5
24685 $as_echo "yes" >&6; }
24686
24687 cat >>confdefs.h <<\_ACEOF
24688 #define HAVE_6ARGS_SECURITY_INODE_INIT_SECURITY 1
24689 _ACEOF
24690
24691
24692 else
24693 $as_echo "$as_me: failed program was:" >&5
24694 sed 's/^/| /' conftest.$ac_ext >&5
24695
24696 { $as_echo "$as_me:$LINENO: result: no" >&5
24697 $as_echo "no" >&6; }
24698
24699
24700
24701 fi
24702
24703 rm -Rf build
24704
24705
24706
24707
24708 { $as_echo "$as_me:$LINENO: checking whether security_inode_init_security wants callback" >&5
24709 $as_echo_n "checking whether security_inode_init_security wants callback... " >&6; }
24710
24711
24712 cat confdefs.h - <<_ACEOF >conftest.c
24713 /* confdefs.h. */
24714 _ACEOF
24715 cat confdefs.h >>conftest.$ac_ext
24716 cat >>conftest.$ac_ext <<_ACEOF
24717 /* end confdefs.h. */
24718
24719
24720 #include <linux/security.h>
24721
24722 int
24723 main (void)
24724 {
24725
24726 struct inode *ip __attribute__ ((unused)) = NULL;
24727 struct inode *dip __attribute__ ((unused)) = NULL;
24728 const struct qstr *str __attribute__ ((unused)) = NULL;
24729 initxattrs func __attribute__ ((unused)) = NULL;
24730
24731 security_inode_init_security(ip, dip, str, func, NULL);
24732
24733 ;
24734 return 0;
24735 }
24736
24737 _ACEOF
24738
24739
24740
24741 cat - <<_ACEOF >conftest.h
24742
24743 _ACEOF
24744
24745
24746 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
24747 echo "obj-m := conftest.o" >build/Makefile
24748 modpost_flag=''
24749 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
24750 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
24751 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24752 (eval $ac_try) 2>&5
24753 ac_status=$?
24754 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24755 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
24756 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24757 (eval $ac_try) 2>&5
24758 ac_status=$?
24759 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24760 (exit $ac_status); }; }; then
24761
24762 { $as_echo "$as_me:$LINENO: result: yes" >&5
24763 $as_echo "yes" >&6; }
24764
24765 cat >>confdefs.h <<\_ACEOF
24766 #define HAVE_CALLBACK_SECURITY_INODE_INIT_SECURITY 1
24767 _ACEOF
24768
24769
24770 else
24771 $as_echo "$as_me: failed program was:" >&5
24772 sed 's/^/| /' conftest.$ac_ext >&5
24773
24774 { $as_echo "$as_me:$LINENO: result: no" >&5
24775 $as_echo "no" >&6; }
24776
24777
24778
24779 fi
24780
24781 rm -Rf build
24782
24783
24784
24785
24786 { $as_echo "$as_me:$LINENO: checking whether fst->mount() exists" >&5
24787 $as_echo_n "checking whether fst->mount() exists... " >&6; }
24788
24789
24790 cat confdefs.h - <<_ACEOF >conftest.c
24791 /* confdefs.h. */
24792 _ACEOF
24793 cat confdefs.h >>conftest.$ac_ext
24794 cat >>conftest.$ac_ext <<_ACEOF
24795 /* end confdefs.h. */
24796
24797
24798 #include <linux/fs.h>
24799
24800 static struct dentry *
24801 mount(struct file_system_type *fs_type, int flags,
24802 const char *osname, void *data) {
24803 struct dentry *d = NULL;
24804 return (d);
24805 }
24806
24807 static struct file_system_type fst __attribute__ ((unused)) = {
24808 .mount = mount,
24809 };
24810
24811 int
24812 main (void)
24813 {
24814
24815
24816 ;
24817 return 0;
24818 }
24819
24820 _ACEOF
24821
24822
24823
24824 cat - <<_ACEOF >conftest.h
24825
24826 _ACEOF
24827
24828
24829 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
24830 echo "obj-m := conftest.o" >build/Makefile
24831 modpost_flag=''
24832 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
24833 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
24834 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24835 (eval $ac_try) 2>&5
24836 ac_status=$?
24837 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24838 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
24839 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24840 (eval $ac_try) 2>&5
24841 ac_status=$?
24842 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24843 (exit $ac_status); }; }; then
24844
24845 { $as_echo "$as_me:$LINENO: result: yes" >&5
24846 $as_echo "yes" >&6; }
24847
24848 cat >>confdefs.h <<\_ACEOF
24849 #define HAVE_FST_MOUNT 1
24850 _ACEOF
24851
24852
24853 else
24854 $as_echo "$as_me: failed program was:" >&5
24855 sed 's/^/| /' conftest.$ac_ext >&5
24856
24857 { $as_echo "$as_me:$LINENO: result: no" >&5
24858 $as_echo "no" >&6; }
24859
24860
24861
24862 fi
24863
24864 rm -Rf build
24865
24866
24867
24868
24869 { $as_echo "$as_me:$LINENO: checking whether super_block has s_shrink" >&5
24870 $as_echo_n "checking whether super_block has s_shrink... " >&6; }
24871
24872
24873 cat confdefs.h - <<_ACEOF >conftest.c
24874 /* confdefs.h. */
24875 _ACEOF
24876 cat confdefs.h >>conftest.$ac_ext
24877 cat >>conftest.$ac_ext <<_ACEOF
24878 /* end confdefs.h. */
24879
24880
24881 #include <linux/fs.h>
24882
24883 int shrink(struct shrinker *s, struct shrink_control *sc)
24884 { return 0; }
24885
24886 static const struct super_block
24887 sb __attribute__ ((unused)) = {
24888 .s_shrink.shrink = shrink,
24889 .s_shrink.seeks = DEFAULT_SEEKS,
24890 .s_shrink.batch = 0,
24891 };
24892
24893 int
24894 main (void)
24895 {
24896
24897
24898 ;
24899 return 0;
24900 }
24901
24902 _ACEOF
24903
24904
24905
24906 cat - <<_ACEOF >conftest.h
24907
24908 _ACEOF
24909
24910
24911 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
24912 echo "obj-m := conftest.o" >build/Makefile
24913 modpost_flag=''
24914 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
24915 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
24916 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24917 (eval $ac_try) 2>&5
24918 ac_status=$?
24919 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24920 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
24921 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24922 (eval $ac_try) 2>&5
24923 ac_status=$?
24924 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24925 (exit $ac_status); }; }; then
24926
24927 { $as_echo "$as_me:$LINENO: result: yes" >&5
24928 $as_echo "yes" >&6; }
24929
24930 cat >>confdefs.h <<\_ACEOF
24931 #define HAVE_SHRINK 1
24932 _ACEOF
24933
24934
24935
24936 else
24937 $as_echo "$as_me: failed program was:" >&5
24938 sed 's/^/| /' conftest.$ac_ext >&5
24939
24940 { $as_echo "$as_me:$LINENO: result: no" >&5
24941 $as_echo "no" >&6; }
24942
24943
24944
24945 fi
24946
24947 rm -Rf build
24948
24949
24950
24951
24952 { $as_echo "$as_me:$LINENO: checking whether shrink_control has nid" >&5
24953 $as_echo_n "checking whether shrink_control has nid... " >&6; }
24954
24955
24956 cat confdefs.h - <<_ACEOF >conftest.c
24957 /* confdefs.h. */
24958 _ACEOF
24959 cat confdefs.h >>conftest.$ac_ext
24960 cat >>conftest.$ac_ext <<_ACEOF
24961 /* end confdefs.h. */
24962
24963
24964 #include <linux/fs.h>
24965
24966 int
24967 main (void)
24968 {
24969
24970 struct shrink_control sc __attribute__ ((unused));
24971 unsigned long scnidsize __attribute__ ((unused)) =
24972 sizeof(sc.nid);
24973
24974 ;
24975 return 0;
24976 }
24977
24978 _ACEOF
24979
24980
24981
24982 cat - <<_ACEOF >conftest.h
24983
24984 _ACEOF
24985
24986
24987 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
24988 echo "obj-m := conftest.o" >build/Makefile
24989 modpost_flag=''
24990 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
24991 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
24992 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24993 (eval $ac_try) 2>&5
24994 ac_status=$?
24995 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24996 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
24997 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24998 (eval $ac_try) 2>&5
24999 ac_status=$?
25000 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25001 (exit $ac_status); }; }; then
25002
25003 { $as_echo "$as_me:$LINENO: result: yes" >&5
25004 $as_echo "yes" >&6; }
25005
25006 cat >>confdefs.h <<\_ACEOF
25007 #define SHRINK_CONTROL_HAS_NID 1
25008 _ACEOF
25009
25010
25011 else
25012 $as_echo "$as_me: failed program was:" >&5
25013 sed 's/^/| /' conftest.$ac_ext >&5
25014
25015 { $as_echo "$as_me:$LINENO: result: no" >&5
25016 $as_echo "no" >&6; }
25017
25018
25019
25020 fi
25021
25022 rm -Rf build
25023
25024
25025
25026
25027 { $as_echo "$as_me:$LINENO: checking whether super_block has s_instances list_head" >&5
25028 $as_echo_n "checking whether super_block has s_instances list_head... " >&6; }
25029
25030
25031 cat confdefs.h - <<_ACEOF >conftest.c
25032 /* confdefs.h. */
25033 _ACEOF
25034 cat confdefs.h >>conftest.$ac_ext
25035 cat >>conftest.$ac_ext <<_ACEOF
25036 /* end confdefs.h. */
25037
25038
25039 #include <linux/fs.h>
25040
25041 int
25042 main (void)
25043 {
25044
25045 struct super_block sb __attribute__ ((unused));
25046
25047 INIT_LIST_HEAD(&sb.s_instances);
25048
25049 ;
25050 return 0;
25051 }
25052
25053 _ACEOF
25054
25055
25056
25057 cat - <<_ACEOF >conftest.h
25058
25059 _ACEOF
25060
25061
25062 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
25063 echo "obj-m := conftest.o" >build/Makefile
25064 modpost_flag=''
25065 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
25066 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
25067 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25068 (eval $ac_try) 2>&5
25069 ac_status=$?
25070 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25071 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
25072 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25073 (eval $ac_try) 2>&5
25074 ac_status=$?
25075 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25076 (exit $ac_status); }; }; then
25077
25078 { $as_echo "$as_me:$LINENO: result: yes" >&5
25079 $as_echo "yes" >&6; }
25080
25081 cat >>confdefs.h <<\_ACEOF
25082 #define HAVE_S_INSTANCES_LIST_HEAD 1
25083 _ACEOF
25084
25085
25086 else
25087 $as_echo "$as_me: failed program was:" >&5
25088 sed 's/^/| /' conftest.$ac_ext >&5
25089
25090 { $as_echo "$as_me:$LINENO: result: no" >&5
25091 $as_echo "no" >&6; }
25092
25093
25094
25095 fi
25096
25097 rm -Rf build
25098
25099
25100
25101 { $as_echo "$as_me:$LINENO: checking whether super_block has s_d_op" >&5
25102 $as_echo_n "checking whether super_block has s_d_op... " >&6; }
25103
25104
25105 cat confdefs.h - <<_ACEOF >conftest.c
25106 /* confdefs.h. */
25107 _ACEOF
25108 cat confdefs.h >>conftest.$ac_ext
25109 cat >>conftest.$ac_ext <<_ACEOF
25110 /* end confdefs.h. */
25111
25112
25113 #include <linux/fs.h>
25114
25115 int
25116 main (void)
25117 {
25118
25119 struct super_block sb __attribute__ ((unused));
25120 sb.s_d_op = NULL;
25121
25122 ;
25123 return 0;
25124 }
25125
25126 _ACEOF
25127
25128
25129
25130 cat - <<_ACEOF >conftest.h
25131
25132 _ACEOF
25133
25134
25135 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
25136 echo "obj-m := conftest.o" >build/Makefile
25137 modpost_flag=''
25138 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
25139 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
25140 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25141 (eval $ac_try) 2>&5
25142 ac_status=$?
25143 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25144 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
25145 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25146 (eval $ac_try) 2>&5
25147 ac_status=$?
25148 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25149 (exit $ac_status); }; }; then
25150
25151 { $as_echo "$as_me:$LINENO: result: yes" >&5
25152 $as_echo "yes" >&6; }
25153
25154 cat >>confdefs.h <<\_ACEOF
25155 #define HAVE_S_D_OP 1
25156 _ACEOF
25157
25158
25159 else
25160 $as_echo "$as_me: failed program was:" >&5
25161 sed 's/^/| /' conftest.$ac_ext >&5
25162
25163 { $as_echo "$as_me:$LINENO: result: no" >&5
25164 $as_echo "no" >&6; }
25165
25166
25167
25168 fi
25169
25170 rm -Rf build
25171
25172
25173
25174
25175 { $as_echo "$as_me:$LINENO: checking whether super_setup_bdi_name() exists" >&5
25176 $as_echo_n "checking whether super_setup_bdi_name() exists... " >&6; }
25177
25178
25179
25180 cat confdefs.h - <<_ACEOF >conftest.c
25181 /* confdefs.h. */
25182 _ACEOF
25183 cat confdefs.h >>conftest.$ac_ext
25184 cat >>conftest.$ac_ext <<_ACEOF
25185 /* end confdefs.h. */
25186
25187
25188 #include <linux/fs.h>
25189 struct super_block sb;
25190
25191 int
25192 main (void)
25193 {
25194
25195 char *name = "bdi";
25196 atomic_long_t zfs_bdi_seq;
25197 int error __attribute__((unused)) =
25198 super_setup_bdi_name(&sb, "%.28s-%ld", name, atomic_long_inc_return(&zfs_bdi_seq));
25199
25200 ;
25201 return 0;
25202 }
25203
25204 _ACEOF
25205
25206
25207
25208 cat - <<_ACEOF >conftest.h
25209
25210 _ACEOF
25211
25212
25213 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
25214 echo "obj-m := conftest.o" >build/Makefile
25215 modpost_flag=''
25216 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
25217 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
25218 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25219 (eval $ac_try) 2>&5
25220 ac_status=$?
25221 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25222 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
25223 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25224 (eval $ac_try) 2>&5
25225 ac_status=$?
25226 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25227 (exit $ac_status); }; }; then
25228 rc=0
25229 else
25230 $as_echo "$as_me: failed program was:" >&5
25231 sed 's/^/| /' conftest.$ac_ext >&5
25232 rc=1
25233
25234
25235 fi
25236
25237 rm -Rf build
25238
25239
25240 if test $rc -ne 0; then :
25241
25242 { $as_echo "$as_me:$LINENO: result: no" >&5
25243 $as_echo "no" >&6; }
25244 { $as_echo "$as_me:$LINENO: checking whether bdi_setup_and_register() wants 2 args" >&5
25245 $as_echo_n "checking whether bdi_setup_and_register() wants 2 args... " >&6; }
25246
25247
25248
25249 cat confdefs.h - <<_ACEOF >conftest.c
25250 /* confdefs.h. */
25251 _ACEOF
25252 cat confdefs.h >>conftest.$ac_ext
25253 cat >>conftest.$ac_ext <<_ACEOF
25254 /* end confdefs.h. */
25255
25256
25257 #include <linux/backing-dev.h>
25258 struct backing_dev_info bdi;
25259
25260 int
25261 main (void)
25262 {
25263
25264 char *name = "bdi";
25265 int error __attribute__((unused)) =
25266 bdi_setup_and_register(&bdi, name);
25267
25268 ;
25269 return 0;
25270 }
25271
25272 _ACEOF
25273
25274
25275
25276 cat - <<_ACEOF >conftest.h
25277
25278 _ACEOF
25279
25280
25281 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
25282 echo "obj-m := conftest.o" >build/Makefile
25283 modpost_flag=''
25284 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
25285 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
25286 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25287 (eval $ac_try) 2>&5
25288 ac_status=$?
25289 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25290 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
25291 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25292 (eval $ac_try) 2>&5
25293 ac_status=$?
25294 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25295 (exit $ac_status); }; }; then
25296 rc=0
25297 else
25298 $as_echo "$as_me: failed program was:" >&5
25299 sed 's/^/| /' conftest.$ac_ext >&5
25300 rc=1
25301
25302
25303 fi
25304
25305 rm -Rf build
25306
25307
25308 if test $rc -ne 0; then :
25309
25310 { $as_echo "$as_me:$LINENO: result: no" >&5
25311 $as_echo "no" >&6; }
25312 { $as_echo "$as_me:$LINENO: checking whether bdi_setup_and_register() wants 3 args" >&5
25313 $as_echo_n "checking whether bdi_setup_and_register() wants 3 args... " >&6; }
25314
25315
25316
25317 cat confdefs.h - <<_ACEOF >conftest.c
25318 /* confdefs.h. */
25319 _ACEOF
25320 cat confdefs.h >>conftest.$ac_ext
25321 cat >>conftest.$ac_ext <<_ACEOF
25322 /* end confdefs.h. */
25323
25324
25325 #include <linux/backing-dev.h>
25326 struct backing_dev_info bdi;
25327
25328 int
25329 main (void)
25330 {
25331
25332 char *name = "bdi";
25333 unsigned int cap = BDI_CAP_MAP_COPY;
25334 int error __attribute__((unused)) =
25335 bdi_setup_and_register(&bdi, name, cap);
25336
25337 ;
25338 return 0;
25339 }
25340
25341 _ACEOF
25342
25343
25344
25345 cat - <<_ACEOF >conftest.h
25346
25347 _ACEOF
25348
25349
25350 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
25351 echo "obj-m := conftest.o" >build/Makefile
25352 modpost_flag=''
25353 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
25354 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
25355 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25356 (eval $ac_try) 2>&5
25357 ac_status=$?
25358 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25359 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
25360 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25361 (eval $ac_try) 2>&5
25362 ac_status=$?
25363 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25364 (exit $ac_status); }; }; then
25365 rc=0
25366 else
25367 $as_echo "$as_me: failed program was:" >&5
25368 sed 's/^/| /' conftest.$ac_ext >&5
25369 rc=1
25370
25371
25372 fi
25373
25374 rm -Rf build
25375
25376
25377 if test $rc -ne 0; then :
25378
25379 { $as_echo "$as_me:$LINENO: result: no" >&5
25380 $as_echo "no" >&6; }
25381
25382 else
25383 if test "x$enable_linux_builtin" != xyes; then
25384
25385 grep -q -E '[[:space:]]bdi_setup_and_register[[:space:]]' \
25386 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
25387 rc=$?
25388 if test $rc -ne 0; then
25389 export=0
25390 for file in mm/backing-dev.c; do
25391 grep -q -E "EXPORT_SYMBOL.*(bdi_setup_and_register)" \
25392 "$LINUX/$file" 2>/dev/null
25393 rc=$?
25394 if test $rc -eq 0; then
25395 export=1
25396 break;
25397 fi
25398 done
25399 if test $export -eq 0; then :
25400 rc=1
25401 else :
25402 rc=0
25403 fi
25404 else :
25405 rc=0
25406 fi
25407
25408 fi
25409 if test $rc -ne 0; then :
25410
25411 { $as_echo "$as_me:$LINENO: result: no" >&5
25412 $as_echo "no" >&6; }
25413
25414 else :
25415
25416 { $as_echo "$as_me:$LINENO: result: yes" >&5
25417 $as_echo "yes" >&6; }
25418
25419 cat >>confdefs.h <<\_ACEOF
25420 #define HAVE_3ARGS_BDI_SETUP_AND_REGISTER 1
25421 _ACEOF
25422
25423
25424 fi
25425 fi
25426
25427
25428 else
25429 if test "x$enable_linux_builtin" != xyes; then
25430
25431 grep -q -E '[[:space:]]bdi_setup_and_register[[:space:]]' \
25432 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
25433 rc=$?
25434 if test $rc -ne 0; then
25435 export=0
25436 for file in mm/backing-dev.c; do
25437 grep -q -E "EXPORT_SYMBOL.*(bdi_setup_and_register)" \
25438 "$LINUX/$file" 2>/dev/null
25439 rc=$?
25440 if test $rc -eq 0; then
25441 export=1
25442 break;
25443 fi
25444 done
25445 if test $export -eq 0; then :
25446 rc=1
25447 else :
25448 rc=0
25449 fi
25450 else :
25451 rc=0
25452 fi
25453
25454 fi
25455 if test $rc -ne 0; then :
25456
25457 { $as_echo "$as_me:$LINENO: result: no" >&5
25458 $as_echo "no" >&6; }
25459 { $as_echo "$as_me:$LINENO: checking whether bdi_setup_and_register() wants 3 args" >&5
25460 $as_echo_n "checking whether bdi_setup_and_register() wants 3 args... " >&6; }
25461
25462
25463
25464 cat confdefs.h - <<_ACEOF >conftest.c
25465 /* confdefs.h. */
25466 _ACEOF
25467 cat confdefs.h >>conftest.$ac_ext
25468 cat >>conftest.$ac_ext <<_ACEOF
25469 /* end confdefs.h. */
25470
25471
25472 #include <linux/backing-dev.h>
25473 struct backing_dev_info bdi;
25474
25475 int
25476 main (void)
25477 {
25478
25479 char *name = "bdi";
25480 unsigned int cap = BDI_CAP_MAP_COPY;
25481 int error __attribute__((unused)) =
25482 bdi_setup_and_register(&bdi, name, cap);
25483
25484 ;
25485 return 0;
25486 }
25487
25488 _ACEOF
25489
25490
25491
25492 cat - <<_ACEOF >conftest.h
25493
25494 _ACEOF
25495
25496
25497 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
25498 echo "obj-m := conftest.o" >build/Makefile
25499 modpost_flag=''
25500 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
25501 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
25502 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25503 (eval $ac_try) 2>&5
25504 ac_status=$?
25505 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25506 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
25507 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25508 (eval $ac_try) 2>&5
25509 ac_status=$?
25510 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25511 (exit $ac_status); }; }; then
25512 rc=0
25513 else
25514 $as_echo "$as_me: failed program was:" >&5
25515 sed 's/^/| /' conftest.$ac_ext >&5
25516 rc=1
25517
25518
25519 fi
25520
25521 rm -Rf build
25522
25523
25524 if test $rc -ne 0; then :
25525
25526 { $as_echo "$as_me:$LINENO: result: no" >&5
25527 $as_echo "no" >&6; }
25528
25529 else
25530 if test "x$enable_linux_builtin" != xyes; then
25531
25532 grep -q -E '[[:space:]]bdi_setup_and_register[[:space:]]' \
25533 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
25534 rc=$?
25535 if test $rc -ne 0; then
25536 export=0
25537 for file in mm/backing-dev.c; do
25538 grep -q -E "EXPORT_SYMBOL.*(bdi_setup_and_register)" \
25539 "$LINUX/$file" 2>/dev/null
25540 rc=$?
25541 if test $rc -eq 0; then
25542 export=1
25543 break;
25544 fi
25545 done
25546 if test $export -eq 0; then :
25547 rc=1
25548 else :
25549 rc=0
25550 fi
25551 else :
25552 rc=0
25553 fi
25554
25555 fi
25556 if test $rc -ne 0; then :
25557
25558 { $as_echo "$as_me:$LINENO: result: no" >&5
25559 $as_echo "no" >&6; }
25560
25561 else :
25562
25563 { $as_echo "$as_me:$LINENO: result: yes" >&5
25564 $as_echo "yes" >&6; }
25565
25566 cat >>confdefs.h <<\_ACEOF
25567 #define HAVE_3ARGS_BDI_SETUP_AND_REGISTER 1
25568 _ACEOF
25569
25570
25571 fi
25572 fi
25573
25574
25575 else :
25576
25577 { $as_echo "$as_me:$LINENO: result: yes" >&5
25578 $as_echo "yes" >&6; }
25579
25580 cat >>confdefs.h <<\_ACEOF
25581 #define HAVE_2ARGS_BDI_SETUP_AND_REGISTER 1
25582 _ACEOF
25583
25584
25585 fi
25586 fi
25587
25588
25589 else
25590 if test "x$enable_linux_builtin" != xyes; then
25591
25592 grep -q -E '[[:space:]]super_setup_bdi_name[[:space:]]' \
25593 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
25594 rc=$?
25595 if test $rc -ne 0; then
25596 export=0
25597 for file in fs/super.c; do
25598 grep -q -E "EXPORT_SYMBOL.*(super_setup_bdi_name)" \
25599 "$LINUX/$file" 2>/dev/null
25600 rc=$?
25601 if test $rc -eq 0; then
25602 export=1
25603 break;
25604 fi
25605 done
25606 if test $export -eq 0; then :
25607 rc=1
25608 else :
25609 rc=0
25610 fi
25611 else :
25612 rc=0
25613 fi
25614
25615 fi
25616 if test $rc -ne 0; then :
25617
25618 { $as_echo "$as_me:$LINENO: result: no" >&5
25619 $as_echo "no" >&6; }
25620 { $as_echo "$as_me:$LINENO: checking whether bdi_setup_and_register() wants 2 args" >&5
25621 $as_echo_n "checking whether bdi_setup_and_register() wants 2 args... " >&6; }
25622
25623
25624
25625 cat confdefs.h - <<_ACEOF >conftest.c
25626 /* confdefs.h. */
25627 _ACEOF
25628 cat confdefs.h >>conftest.$ac_ext
25629 cat >>conftest.$ac_ext <<_ACEOF
25630 /* end confdefs.h. */
25631
25632
25633 #include <linux/backing-dev.h>
25634 struct backing_dev_info bdi;
25635
25636 int
25637 main (void)
25638 {
25639
25640 char *name = "bdi";
25641 int error __attribute__((unused)) =
25642 bdi_setup_and_register(&bdi, name);
25643
25644 ;
25645 return 0;
25646 }
25647
25648 _ACEOF
25649
25650
25651
25652 cat - <<_ACEOF >conftest.h
25653
25654 _ACEOF
25655
25656
25657 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
25658 echo "obj-m := conftest.o" >build/Makefile
25659 modpost_flag=''
25660 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
25661 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
25662 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25663 (eval $ac_try) 2>&5
25664 ac_status=$?
25665 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25666 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
25667 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25668 (eval $ac_try) 2>&5
25669 ac_status=$?
25670 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25671 (exit $ac_status); }; }; then
25672 rc=0
25673 else
25674 $as_echo "$as_me: failed program was:" >&5
25675 sed 's/^/| /' conftest.$ac_ext >&5
25676 rc=1
25677
25678
25679 fi
25680
25681 rm -Rf build
25682
25683
25684 if test $rc -ne 0; then :
25685
25686 { $as_echo "$as_me:$LINENO: result: no" >&5
25687 $as_echo "no" >&6; }
25688 { $as_echo "$as_me:$LINENO: checking whether bdi_setup_and_register() wants 3 args" >&5
25689 $as_echo_n "checking whether bdi_setup_and_register() wants 3 args... " >&6; }
25690
25691
25692
25693 cat confdefs.h - <<_ACEOF >conftest.c
25694 /* confdefs.h. */
25695 _ACEOF
25696 cat confdefs.h >>conftest.$ac_ext
25697 cat >>conftest.$ac_ext <<_ACEOF
25698 /* end confdefs.h. */
25699
25700
25701 #include <linux/backing-dev.h>
25702 struct backing_dev_info bdi;
25703
25704 int
25705 main (void)
25706 {
25707
25708 char *name = "bdi";
25709 unsigned int cap = BDI_CAP_MAP_COPY;
25710 int error __attribute__((unused)) =
25711 bdi_setup_and_register(&bdi, name, cap);
25712
25713 ;
25714 return 0;
25715 }
25716
25717 _ACEOF
25718
25719
25720
25721 cat - <<_ACEOF >conftest.h
25722
25723 _ACEOF
25724
25725
25726 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
25727 echo "obj-m := conftest.o" >build/Makefile
25728 modpost_flag=''
25729 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
25730 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
25731 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25732 (eval $ac_try) 2>&5
25733 ac_status=$?
25734 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25735 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
25736 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25737 (eval $ac_try) 2>&5
25738 ac_status=$?
25739 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25740 (exit $ac_status); }; }; then
25741 rc=0
25742 else
25743 $as_echo "$as_me: failed program was:" >&5
25744 sed 's/^/| /' conftest.$ac_ext >&5
25745 rc=1
25746
25747
25748 fi
25749
25750 rm -Rf build
25751
25752
25753 if test $rc -ne 0; then :
25754
25755 { $as_echo "$as_me:$LINENO: result: no" >&5
25756 $as_echo "no" >&6; }
25757
25758 else
25759 if test "x$enable_linux_builtin" != xyes; then
25760
25761 grep -q -E '[[:space:]]bdi_setup_and_register[[:space:]]' \
25762 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
25763 rc=$?
25764 if test $rc -ne 0; then
25765 export=0
25766 for file in mm/backing-dev.c; do
25767 grep -q -E "EXPORT_SYMBOL.*(bdi_setup_and_register)" \
25768 "$LINUX/$file" 2>/dev/null
25769 rc=$?
25770 if test $rc -eq 0; then
25771 export=1
25772 break;
25773 fi
25774 done
25775 if test $export -eq 0; then :
25776 rc=1
25777 else :
25778 rc=0
25779 fi
25780 else :
25781 rc=0
25782 fi
25783
25784 fi
25785 if test $rc -ne 0; then :
25786
25787 { $as_echo "$as_me:$LINENO: result: no" >&5
25788 $as_echo "no" >&6; }
25789
25790 else :
25791
25792 { $as_echo "$as_me:$LINENO: result: yes" >&5
25793 $as_echo "yes" >&6; }
25794
25795 cat >>confdefs.h <<\_ACEOF
25796 #define HAVE_3ARGS_BDI_SETUP_AND_REGISTER 1
25797 _ACEOF
25798
25799
25800 fi
25801 fi
25802
25803
25804 else
25805 if test "x$enable_linux_builtin" != xyes; then
25806
25807 grep -q -E '[[:space:]]bdi_setup_and_register[[:space:]]' \
25808 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
25809 rc=$?
25810 if test $rc -ne 0; then
25811 export=0
25812 for file in mm/backing-dev.c; do
25813 grep -q -E "EXPORT_SYMBOL.*(bdi_setup_and_register)" \
25814 "$LINUX/$file" 2>/dev/null
25815 rc=$?
25816 if test $rc -eq 0; then
25817 export=1
25818 break;
25819 fi
25820 done
25821 if test $export -eq 0; then :
25822 rc=1
25823 else :
25824 rc=0
25825 fi
25826 else :
25827 rc=0
25828 fi
25829
25830 fi
25831 if test $rc -ne 0; then :
25832
25833 { $as_echo "$as_me:$LINENO: result: no" >&5
25834 $as_echo "no" >&6; }
25835 { $as_echo "$as_me:$LINENO: checking whether bdi_setup_and_register() wants 3 args" >&5
25836 $as_echo_n "checking whether bdi_setup_and_register() wants 3 args... " >&6; }
25837
25838
25839
25840 cat confdefs.h - <<_ACEOF >conftest.c
25841 /* confdefs.h. */
25842 _ACEOF
25843 cat confdefs.h >>conftest.$ac_ext
25844 cat >>conftest.$ac_ext <<_ACEOF
25845 /* end confdefs.h. */
25846
25847
25848 #include <linux/backing-dev.h>
25849 struct backing_dev_info bdi;
25850
25851 int
25852 main (void)
25853 {
25854
25855 char *name = "bdi";
25856 unsigned int cap = BDI_CAP_MAP_COPY;
25857 int error __attribute__((unused)) =
25858 bdi_setup_and_register(&bdi, name, cap);
25859
25860 ;
25861 return 0;
25862 }
25863
25864 _ACEOF
25865
25866
25867
25868 cat - <<_ACEOF >conftest.h
25869
25870 _ACEOF
25871
25872
25873 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
25874 echo "obj-m := conftest.o" >build/Makefile
25875 modpost_flag=''
25876 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
25877 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
25878 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25879 (eval $ac_try) 2>&5
25880 ac_status=$?
25881 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25882 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
25883 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25884 (eval $ac_try) 2>&5
25885 ac_status=$?
25886 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25887 (exit $ac_status); }; }; then
25888 rc=0
25889 else
25890 $as_echo "$as_me: failed program was:" >&5
25891 sed 's/^/| /' conftest.$ac_ext >&5
25892 rc=1
25893
25894
25895 fi
25896
25897 rm -Rf build
25898
25899
25900 if test $rc -ne 0; then :
25901
25902 { $as_echo "$as_me:$LINENO: result: no" >&5
25903 $as_echo "no" >&6; }
25904
25905 else
25906 if test "x$enable_linux_builtin" != xyes; then
25907
25908 grep -q -E '[[:space:]]bdi_setup_and_register[[:space:]]' \
25909 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
25910 rc=$?
25911 if test $rc -ne 0; then
25912 export=0
25913 for file in mm/backing-dev.c; do
25914 grep -q -E "EXPORT_SYMBOL.*(bdi_setup_and_register)" \
25915 "$LINUX/$file" 2>/dev/null
25916 rc=$?
25917 if test $rc -eq 0; then
25918 export=1
25919 break;
25920 fi
25921 done
25922 if test $export -eq 0; then :
25923 rc=1
25924 else :
25925 rc=0
25926 fi
25927 else :
25928 rc=0
25929 fi
25930
25931 fi
25932 if test $rc -ne 0; then :
25933
25934 { $as_echo "$as_me:$LINENO: result: no" >&5
25935 $as_echo "no" >&6; }
25936
25937 else :
25938
25939 { $as_echo "$as_me:$LINENO: result: yes" >&5
25940 $as_echo "yes" >&6; }
25941
25942 cat >>confdefs.h <<\_ACEOF
25943 #define HAVE_3ARGS_BDI_SETUP_AND_REGISTER 1
25944 _ACEOF
25945
25946
25947 fi
25948 fi
25949
25950
25951 else :
25952
25953 { $as_echo "$as_me:$LINENO: result: yes" >&5
25954 $as_echo "yes" >&6; }
25955
25956 cat >>confdefs.h <<\_ACEOF
25957 #define HAVE_2ARGS_BDI_SETUP_AND_REGISTER 1
25958 _ACEOF
25959
25960
25961 fi
25962 fi
25963
25964
25965 else :
25966
25967 { $as_echo "$as_me:$LINENO: result: yes" >&5
25968 $as_echo "yes" >&6; }
25969
25970 cat >>confdefs.h <<\_ACEOF
25971 #define HAVE_SUPER_SETUP_BDI_NAME 1
25972 _ACEOF
25973
25974
25975 fi
25976 fi
25977
25978
25979
25980 { $as_echo "$as_me:$LINENO: checking whether set_nlink() is available" >&5
25981 $as_echo_n "checking whether set_nlink() is available... " >&6; }
25982
25983
25984 cat confdefs.h - <<_ACEOF >conftest.c
25985 /* confdefs.h. */
25986 _ACEOF
25987 cat confdefs.h >>conftest.$ac_ext
25988 cat >>conftest.$ac_ext <<_ACEOF
25989 /* end confdefs.h. */
25990
25991
25992 #include <linux/fs.h>
25993
25994 int
25995 main (void)
25996 {
25997
25998 struct inode node;
25999 unsigned int link = 0;
26000 (void) set_nlink(&node, link);
26001
26002 ;
26003 return 0;
26004 }
26005
26006 _ACEOF
26007
26008
26009
26010 cat - <<_ACEOF >conftest.h
26011
26012 _ACEOF
26013
26014
26015 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
26016 echo "obj-m := conftest.o" >build/Makefile
26017 modpost_flag=''
26018 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
26019 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
26020 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26021 (eval $ac_try) 2>&5
26022 ac_status=$?
26023 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26024 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
26025 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26026 (eval $ac_try) 2>&5
26027 ac_status=$?
26028 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26029 (exit $ac_status); }; }; then
26030
26031 { $as_echo "$as_me:$LINENO: result: yes" >&5
26032 $as_echo "yes" >&6; }
26033
26034 cat >>confdefs.h <<\_ACEOF
26035 #define HAVE_SET_NLINK 1
26036 _ACEOF
26037
26038
26039 else
26040 $as_echo "$as_me: failed program was:" >&5
26041 sed 's/^/| /' conftest.$ac_ext >&5
26042
26043 { $as_echo "$as_me:$LINENO: result: no" >&5
26044 $as_echo "no" >&6; }
26045
26046
26047
26048 fi
26049
26050 rm -Rf build
26051
26052
26053
26054
26055 { $as_echo "$as_me:$LINENO: checking whether elevator_change() is available" >&5
26056 $as_echo_n "checking whether elevator_change() is available... " >&6; }
26057 tmp_flags="$EXTRA_KCFLAGS"
26058 EXTRA_KCFLAGS="${NO_UNUSED_BUT_SET_VARIABLE}"
26059
26060
26061 cat confdefs.h - <<_ACEOF >conftest.c
26062 /* confdefs.h. */
26063 _ACEOF
26064 cat confdefs.h >>conftest.$ac_ext
26065 cat >>conftest.$ac_ext <<_ACEOF
26066 /* end confdefs.h. */
26067
26068
26069 #include <linux/blkdev.h>
26070 #include <linux/elevator.h>
26071
26072 int
26073 main (void)
26074 {
26075
26076 int ret;
26077 struct request_queue *q = NULL;
26078 char *elevator = NULL;
26079 ret = elevator_change(q, elevator);
26080
26081 ;
26082 return 0;
26083 }
26084
26085 _ACEOF
26086
26087
26088
26089 cat - <<_ACEOF >conftest.h
26090
26091 _ACEOF
26092
26093
26094 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
26095 echo "obj-m := conftest.o" >build/Makefile
26096 modpost_flag=''
26097 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
26098 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
26099 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26100 (eval $ac_try) 2>&5
26101 ac_status=$?
26102 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26103 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
26104 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26105 (eval $ac_try) 2>&5
26106 ac_status=$?
26107 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26108 (exit $ac_status); }; }; then
26109
26110 { $as_echo "$as_me:$LINENO: result: yes" >&5
26111 $as_echo "yes" >&6; }
26112
26113 cat >>confdefs.h <<\_ACEOF
26114 #define HAVE_ELEVATOR_CHANGE 1
26115 _ACEOF
26116
26117
26118 else
26119 $as_echo "$as_me: failed program was:" >&5
26120 sed 's/^/| /' conftest.$ac_ext >&5
26121
26122 { $as_echo "$as_me:$LINENO: result: no" >&5
26123 $as_echo "no" >&6; }
26124
26125
26126
26127 fi
26128
26129 rm -Rf build
26130
26131
26132 EXTRA_KCFLAGS="$tmp_flags"
26133
26134 { $as_echo "$as_me:$LINENO: checking whether sget() wants 5 args" >&5
26135 $as_echo_n "checking whether sget() wants 5 args... " >&6; }
26136
26137
26138 cat confdefs.h - <<_ACEOF >conftest.c
26139 /* confdefs.h. */
26140 _ACEOF
26141 cat confdefs.h >>conftest.$ac_ext
26142 cat >>conftest.$ac_ext <<_ACEOF
26143 /* end confdefs.h. */
26144
26145
26146 #include <linux/fs.h>
26147
26148 int
26149 main (void)
26150 {
26151
26152 struct file_system_type *type = NULL;
26153 int (*test)(struct super_block *,void *) = NULL;
26154 int (*set)(struct super_block *,void *) = NULL;
26155 int flags = 0;
26156 void *data = NULL;
26157 (void) sget(type, test, set, flags, data);
26158
26159 ;
26160 return 0;
26161 }
26162
26163 _ACEOF
26164
26165
26166
26167 cat - <<_ACEOF >conftest.h
26168
26169 _ACEOF
26170
26171
26172 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
26173 echo "obj-m := conftest.o" >build/Makefile
26174 modpost_flag=''
26175 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
26176 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
26177 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26178 (eval $ac_try) 2>&5
26179 ac_status=$?
26180 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26181 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
26182 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26183 (eval $ac_try) 2>&5
26184 ac_status=$?
26185 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26186 (exit $ac_status); }; }; then
26187
26188 { $as_echo "$as_me:$LINENO: result: yes" >&5
26189 $as_echo "yes" >&6; }
26190
26191 cat >>confdefs.h <<\_ACEOF
26192 #define HAVE_5ARG_SGET 1
26193 _ACEOF
26194
26195
26196 else
26197 $as_echo "$as_me: failed program was:" >&5
26198 sed 's/^/| /' conftest.$ac_ext >&5
26199
26200 { $as_echo "$as_me:$LINENO: result: no" >&5
26201 $as_echo "no" >&6; }
26202
26203
26204
26205 fi
26206
26207 rm -Rf build
26208
26209
26210
26211 { $as_echo "$as_me:$LINENO: checking whether lseek_execute() is available" >&5
26212 $as_echo_n "checking whether lseek_execute() is available... " >&6; }
26213
26214
26215
26216 cat confdefs.h - <<_ACEOF >conftest.c
26217 /* confdefs.h. */
26218 _ACEOF
26219 cat confdefs.h >>conftest.$ac_ext
26220 cat >>conftest.$ac_ext <<_ACEOF
26221 /* end confdefs.h. */
26222
26223
26224 #include <linux/fs.h>
26225
26226 int
26227 main (void)
26228 {
26229
26230 struct file *fp __attribute__ ((unused)) = NULL;
26231 struct inode *ip __attribute__ ((unused)) = NULL;
26232 loff_t offset __attribute__ ((unused)) = 0;
26233 loff_t maxsize __attribute__ ((unused)) = 0;
26234
26235 lseek_execute(fp, ip, offset, maxsize);
26236
26237 ;
26238 return 0;
26239 }
26240
26241 _ACEOF
26242
26243
26244
26245 cat - <<_ACEOF >conftest.h
26246
26247 _ACEOF
26248
26249
26250 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
26251 echo "obj-m := conftest.o" >build/Makefile
26252 modpost_flag=''
26253 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
26254 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
26255 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26256 (eval $ac_try) 2>&5
26257 ac_status=$?
26258 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26259 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
26260 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26261 (eval $ac_try) 2>&5
26262 ac_status=$?
26263 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26264 (exit $ac_status); }; }; then
26265 rc=0
26266 else
26267 $as_echo "$as_me: failed program was:" >&5
26268 sed 's/^/| /' conftest.$ac_ext >&5
26269 rc=1
26270
26271
26272 fi
26273
26274 rm -Rf build
26275
26276
26277 if test $rc -ne 0; then :
26278
26279 { $as_echo "$as_me:$LINENO: result: no" >&5
26280 $as_echo "no" >&6; }
26281
26282 else
26283 if test "x$enable_linux_builtin" != xyes; then
26284
26285 grep -q -E '[[:space:]]lseek_exclusive[[:space:]]' \
26286 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
26287 rc=$?
26288 if test $rc -ne 0; then
26289 export=0
26290 for file in fs/read_write.c; do
26291 grep -q -E "EXPORT_SYMBOL.*(lseek_exclusive)" \
26292 "$LINUX/$file" 2>/dev/null
26293 rc=$?
26294 if test $rc -eq 0; then
26295 export=1
26296 break;
26297 fi
26298 done
26299 if test $export -eq 0; then :
26300 rc=1
26301 else :
26302 rc=0
26303 fi
26304 else :
26305 rc=0
26306 fi
26307
26308 fi
26309 if test $rc -ne 0; then :
26310
26311 { $as_echo "$as_me:$LINENO: result: no" >&5
26312 $as_echo "no" >&6; }
26313
26314 else :
26315
26316 { $as_echo "$as_me:$LINENO: result: yes" >&5
26317 $as_echo "yes" >&6; }
26318
26319 cat >>confdefs.h <<\_ACEOF
26320 #define HAVE_LSEEK_EXECUTE 1
26321 _ACEOF
26322
26323
26324 fi
26325 fi
26326
26327
26328
26329 { $as_echo "$as_me:$LINENO: checking whether fops->iterate_shared() is available" >&5
26330 $as_echo_n "checking whether fops->iterate_shared() is available... " >&6; }
26331
26332
26333 cat confdefs.h - <<_ACEOF >conftest.c
26334 /* confdefs.h. */
26335 _ACEOF
26336 cat confdefs.h >>conftest.$ac_ext
26337 cat >>conftest.$ac_ext <<_ACEOF
26338 /* end confdefs.h. */
26339
26340
26341 #include <linux/fs.h>
26342 int iterate(struct file *filp, struct dir_context * context)
26343 { return 0; }
26344
26345 static const struct file_operations fops
26346 __attribute__ ((unused)) = {
26347 .iterate_shared = iterate,
26348 };
26349
26350 int
26351 main (void)
26352 {
26353
26354
26355 ;
26356 return 0;
26357 }
26358
26359 _ACEOF
26360
26361
26362
26363 cat - <<_ACEOF >conftest.h
26364
26365 _ACEOF
26366
26367
26368 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
26369 echo "obj-m := conftest.o" >build/Makefile
26370 modpost_flag=''
26371 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
26372 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
26373 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26374 (eval $ac_try) 2>&5
26375 ac_status=$?
26376 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26377 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
26378 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26379 (eval $ac_try) 2>&5
26380 ac_status=$?
26381 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26382 (exit $ac_status); }; }; then
26383
26384 { $as_echo "$as_me:$LINENO: result: yes" >&5
26385 $as_echo "yes" >&6; }
26386
26387 cat >>confdefs.h <<\_ACEOF
26388 #define HAVE_VFS_ITERATE_SHARED 1
26389 _ACEOF
26390
26391
26392 else
26393 $as_echo "$as_me: failed program was:" >&5
26394 sed 's/^/| /' conftest.$ac_ext >&5
26395
26396 { $as_echo "$as_me:$LINENO: result: no" >&5
26397 $as_echo "no" >&6; }
26398
26399 { $as_echo "$as_me:$LINENO: checking whether fops->iterate() is available" >&5
26400 $as_echo_n "checking whether fops->iterate() is available... " >&6; }
26401
26402
26403 cat confdefs.h - <<_ACEOF >conftest.c
26404 /* confdefs.h. */
26405 _ACEOF
26406 cat confdefs.h >>conftest.$ac_ext
26407 cat >>conftest.$ac_ext <<_ACEOF
26408 /* end confdefs.h. */
26409
26410
26411 #include <linux/fs.h>
26412 int iterate(struct file *filp,
26413 struct dir_context *context) { return 0; }
26414
26415 static const struct file_operations fops
26416 __attribute__ ((unused)) = {
26417 .iterate = iterate,
26418 };
26419
26420 #if defined(FMODE_KABI_ITERATE)
26421 #error "RHEL 7.5, FMODE_KABI_ITERATE interface"
26422 #endif
26423
26424 int
26425 main (void)
26426 {
26427
26428
26429 ;
26430 return 0;
26431 }
26432
26433 _ACEOF
26434
26435
26436
26437 cat - <<_ACEOF >conftest.h
26438
26439 _ACEOF
26440
26441
26442 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
26443 echo "obj-m := conftest.o" >build/Makefile
26444 modpost_flag=''
26445 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
26446 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
26447 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26448 (eval $ac_try) 2>&5
26449 ac_status=$?
26450 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26451 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
26452 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26453 (eval $ac_try) 2>&5
26454 ac_status=$?
26455 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26456 (exit $ac_status); }; }; then
26457
26458 { $as_echo "$as_me:$LINENO: result: yes" >&5
26459 $as_echo "yes" >&6; }
26460
26461 cat >>confdefs.h <<\_ACEOF
26462 #define HAVE_VFS_ITERATE 1
26463 _ACEOF
26464
26465
26466 else
26467 $as_echo "$as_me: failed program was:" >&5
26468 sed 's/^/| /' conftest.$ac_ext >&5
26469
26470 { $as_echo "$as_me:$LINENO: result: no" >&5
26471 $as_echo "no" >&6; }
26472
26473 { $as_echo "$as_me:$LINENO: checking whether fops->readdir() is available" >&5
26474 $as_echo_n "checking whether fops->readdir() is available... " >&6; }
26475
26476
26477 cat confdefs.h - <<_ACEOF >conftest.c
26478 /* confdefs.h. */
26479 _ACEOF
26480 cat confdefs.h >>conftest.$ac_ext
26481 cat >>conftest.$ac_ext <<_ACEOF
26482 /* end confdefs.h. */
26483
26484
26485 #include <linux/fs.h>
26486 int readdir(struct file *filp, void *entry,
26487 filldir_t func) { return 0; }
26488
26489 static const struct file_operations fops
26490 __attribute__ ((unused)) = {
26491 .readdir = readdir,
26492 };
26493
26494 int
26495 main (void)
26496 {
26497
26498
26499 ;
26500 return 0;
26501 }
26502
26503 _ACEOF
26504
26505
26506
26507 cat - <<_ACEOF >conftest.h
26508
26509 _ACEOF
26510
26511
26512 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
26513 echo "obj-m := conftest.o" >build/Makefile
26514 modpost_flag=''
26515 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
26516 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
26517 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26518 (eval $ac_try) 2>&5
26519 ac_status=$?
26520 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26521 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
26522 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26523 (eval $ac_try) 2>&5
26524 ac_status=$?
26525 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26526 (exit $ac_status); }; }; then
26527
26528 { $as_echo "$as_me:$LINENO: result: yes" >&5
26529 $as_echo "yes" >&6; }
26530
26531 cat >>confdefs.h <<\_ACEOF
26532 #define HAVE_VFS_READDIR 1
26533 _ACEOF
26534
26535
26536 else
26537 $as_echo "$as_me: failed program was:" >&5
26538 sed 's/^/| /' conftest.$ac_ext >&5
26539
26540 { { $as_echo "$as_me:$LINENO: error: no; file a bug report with ZoL" >&5
26541 $as_echo "$as_me: error: no; file a bug report with ZoL" >&2;}
26542 { (exit 1); exit 1; }; }
26543
26544
26545
26546 fi
26547
26548 rm -Rf build
26549
26550
26551
26552
26553
26554 fi
26555
26556 rm -Rf build
26557
26558
26559
26560
26561
26562 fi
26563
26564 rm -Rf build
26565
26566
26567
26568 { $as_echo "$as_me:$LINENO: checking whether fops->read/write_iter() are available" >&5
26569 $as_echo_n "checking whether fops->read/write_iter() are available... " >&6; }
26570
26571
26572 cat confdefs.h - <<_ACEOF >conftest.c
26573 /* confdefs.h. */
26574 _ACEOF
26575 cat confdefs.h >>conftest.$ac_ext
26576 cat >>conftest.$ac_ext <<_ACEOF
26577 /* end confdefs.h. */
26578
26579
26580 #include <linux/fs.h>
26581
26582 ssize_t test_read(struct kiocb *kiocb, struct iov_iter *to)
26583 { return 0; }
26584 ssize_t test_write(struct kiocb *kiocb, struct iov_iter *from)
26585 { return 0; }
26586
26587 static const struct file_operations
26588 fops __attribute__ ((unused)) = {
26589 .read_iter = test_read,
26590 .write_iter = test_write,
26591 };
26592
26593 int
26594 main (void)
26595 {
26596
26597
26598 ;
26599 return 0;
26600 }
26601
26602 _ACEOF
26603
26604
26605
26606 cat - <<_ACEOF >conftest.h
26607
26608 _ACEOF
26609
26610
26611 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
26612 echo "obj-m := conftest.o" >build/Makefile
26613 modpost_flag=''
26614 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
26615 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
26616 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26617 (eval $ac_try) 2>&5
26618 ac_status=$?
26619 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26620 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
26621 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26622 (eval $ac_try) 2>&5
26623 ac_status=$?
26624 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26625 (exit $ac_status); }; }; then
26626
26627 { $as_echo "$as_me:$LINENO: result: yes" >&5
26628 $as_echo "yes" >&6; }
26629
26630 cat >>confdefs.h <<\_ACEOF
26631 #define HAVE_VFS_RW_ITERATE 1
26632 _ACEOF
26633
26634
26635 { $as_echo "$as_me:$LINENO: checking whether new_sync_read/write() are available" >&5
26636 $as_echo_n "checking whether new_sync_read/write() are available... " >&6; }
26637
26638
26639 cat confdefs.h - <<_ACEOF >conftest.c
26640 /* confdefs.h. */
26641 _ACEOF
26642 cat confdefs.h >>conftest.$ac_ext
26643 cat >>conftest.$ac_ext <<_ACEOF
26644 /* end confdefs.h. */
26645
26646
26647 #include <linux/fs.h>
26648
26649 int
26650 main (void)
26651 {
26652
26653 ssize_t ret __attribute__ ((unused));
26654 struct file *filp = NULL;
26655 char __user *rbuf = NULL;
26656 const char __user *wbuf = NULL;
26657 size_t len = 0;
26658 loff_t ppos;
26659
26660 ret = new_sync_read(filp, rbuf, len, &ppos);
26661 ret = new_sync_write(filp, wbuf, len, &ppos);
26662
26663 ;
26664 return 0;
26665 }
26666
26667 _ACEOF
26668
26669
26670
26671 cat - <<_ACEOF >conftest.h
26672
26673 _ACEOF
26674
26675
26676 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
26677 echo "obj-m := conftest.o" >build/Makefile
26678 modpost_flag=''
26679 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
26680 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
26681 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26682 (eval $ac_try) 2>&5
26683 ac_status=$?
26684 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26685 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
26686 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26687 (eval $ac_try) 2>&5
26688 ac_status=$?
26689 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26690 (exit $ac_status); }; }; then
26691
26692 { $as_echo "$as_me:$LINENO: result: yes" >&5
26693 $as_echo "yes" >&6; }
26694
26695 cat >>confdefs.h <<\_ACEOF
26696 #define HAVE_NEW_SYNC_READ 1
26697 _ACEOF
26698
26699
26700 else
26701 $as_echo "$as_me: failed program was:" >&5
26702 sed 's/^/| /' conftest.$ac_ext >&5
26703
26704 { $as_echo "$as_me:$LINENO: result: no" >&5
26705 $as_echo "no" >&6; }
26706
26707
26708
26709 fi
26710
26711 rm -Rf build
26712
26713
26714
26715
26716 else
26717 $as_echo "$as_me: failed program was:" >&5
26718 sed 's/^/| /' conftest.$ac_ext >&5
26719
26720 { $as_echo "$as_me:$LINENO: result: no" >&5
26721 $as_echo "no" >&6; }
26722
26723
26724
26725 fi
26726
26727 rm -Rf build
26728
26729
26730
26731 { $as_echo "$as_me:$LINENO: checking whether generic_write_checks() takes kiocb" >&5
26732 $as_echo_n "checking whether generic_write_checks() takes kiocb... " >&6; }
26733
26734
26735 cat confdefs.h - <<_ACEOF >conftest.c
26736 /* confdefs.h. */
26737 _ACEOF
26738 cat confdefs.h >>conftest.$ac_ext
26739 cat >>conftest.$ac_ext <<_ACEOF
26740 /* end confdefs.h. */
26741
26742
26743 #include <linux/fs.h>
26744
26745
26746 int
26747 main (void)
26748 {
26749
26750 struct kiocb *iocb = NULL;
26751 struct iov_iter *iov = NULL;
26752 generic_write_checks(iocb, iov);
26753
26754 ;
26755 return 0;
26756 }
26757
26758 _ACEOF
26759
26760
26761
26762 cat - <<_ACEOF >conftest.h
26763
26764 _ACEOF
26765
26766
26767 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
26768 echo "obj-m := conftest.o" >build/Makefile
26769 modpost_flag=''
26770 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
26771 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
26772 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26773 (eval $ac_try) 2>&5
26774 ac_status=$?
26775 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26776 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
26777 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26778 (eval $ac_try) 2>&5
26779 ac_status=$?
26780 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26781 (exit $ac_status); }; }; then
26782
26783 { $as_echo "$as_me:$LINENO: result: yes" >&5
26784 $as_echo "yes" >&6; }
26785
26786 cat >>confdefs.h <<\_ACEOF
26787 #define HAVE_GENERIC_WRITE_CHECKS_KIOCB 1
26788 _ACEOF
26789
26790
26791 else
26792 $as_echo "$as_me: failed program was:" >&5
26793 sed 's/^/| /' conftest.$ac_ext >&5
26794
26795 { $as_echo "$as_me:$LINENO: result: no" >&5
26796 $as_echo "no" >&6; }
26797
26798
26799
26800 fi
26801
26802 rm -Rf build
26803
26804
26805
26806
26807 { $as_echo "$as_me:$LINENO: checking whether kmap_atomic wants 1 args" >&5
26808 $as_echo_n "checking whether kmap_atomic wants 1 args... " >&6; }
26809
26810
26811 cat confdefs.h - <<_ACEOF >conftest.c
26812 /* confdefs.h. */
26813 _ACEOF
26814 cat confdefs.h >>conftest.$ac_ext
26815 cat >>conftest.$ac_ext <<_ACEOF
26816 /* end confdefs.h. */
26817
26818
26819 #include <linux/pagemap.h>
26820
26821 int
26822 main (void)
26823 {
26824
26825 struct page page;
26826 kmap_atomic(&page);
26827
26828 ;
26829 return 0;
26830 }
26831
26832 _ACEOF
26833
26834
26835
26836 cat - <<_ACEOF >conftest.h
26837
26838 _ACEOF
26839
26840
26841 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
26842 echo "obj-m := conftest.o" >build/Makefile
26843 modpost_flag=''
26844 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
26845 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
26846 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26847 (eval $ac_try) 2>&5
26848 ac_status=$?
26849 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26850 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
26851 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26852 (eval $ac_try) 2>&5
26853 ac_status=$?
26854 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26855 (exit $ac_status); }; }; then
26856
26857 { $as_echo "$as_me:$LINENO: result: yes" >&5
26858 $as_echo "yes" >&6; }
26859
26860 cat >>confdefs.h <<\_ACEOF
26861 #define HAVE_1ARG_KMAP_ATOMIC 1
26862 _ACEOF
26863
26864
26865 else
26866 $as_echo "$as_me: failed program was:" >&5
26867 sed 's/^/| /' conftest.$ac_ext >&5
26868
26869 { $as_echo "$as_me:$LINENO: result: no" >&5
26870 $as_echo "no" >&6; }
26871
26872
26873
26874 fi
26875
26876 rm -Rf build
26877
26878
26879
26880
26881 { $as_echo "$as_me:$LINENO: checking whether follow_down_one() is available" >&5
26882 $as_echo_n "checking whether follow_down_one() is available... " >&6; }
26883
26884
26885 cat confdefs.h - <<_ACEOF >conftest.c
26886 /* confdefs.h. */
26887 _ACEOF
26888 cat confdefs.h >>conftest.$ac_ext
26889 cat >>conftest.$ac_ext <<_ACEOF
26890 /* end confdefs.h. */
26891
26892
26893 #include <linux/namei.h>
26894
26895 int
26896 main (void)
26897 {
26898
26899 struct path *p = NULL;
26900 follow_down_one(p);
26901
26902 ;
26903 return 0;
26904 }
26905
26906 _ACEOF
26907
26908
26909
26910 cat - <<_ACEOF >conftest.h
26911
26912 _ACEOF
26913
26914
26915 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
26916 echo "obj-m := conftest.o" >build/Makefile
26917 modpost_flag=''
26918 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
26919 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
26920 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26921 (eval $ac_try) 2>&5
26922 ac_status=$?
26923 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26924 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
26925 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26926 (eval $ac_try) 2>&5
26927 ac_status=$?
26928 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26929 (exit $ac_status); }; }; then
26930
26931 { $as_echo "$as_me:$LINENO: result: yes" >&5
26932 $as_echo "yes" >&6; }
26933
26934 cat >>confdefs.h <<\_ACEOF
26935 #define HAVE_FOLLOW_DOWN_ONE 1
26936 _ACEOF
26937
26938
26939 else
26940 $as_echo "$as_me: failed program was:" >&5
26941 sed 's/^/| /' conftest.$ac_ext >&5
26942
26943 { $as_echo "$as_me:$LINENO: result: no" >&5
26944 $as_echo "no" >&6; }
26945
26946
26947
26948 fi
26949
26950 rm -Rf build
26951
26952
26953
26954
26955 { $as_echo "$as_me:$LINENO: checking whether make_request_fn() returns int" >&5
26956 $as_echo_n "checking whether make_request_fn() returns int... " >&6; }
26957
26958
26959 cat confdefs.h - <<_ACEOF >conftest.c
26960 /* confdefs.h. */
26961 _ACEOF
26962 cat confdefs.h >>conftest.$ac_ext
26963 cat >>conftest.$ac_ext <<_ACEOF
26964 /* end confdefs.h. */
26965
26966
26967 #include <linux/blkdev.h>
26968
26969 int make_request(struct request_queue *q, struct bio *bio)
26970 {
26971 return (0);
26972 }
26973
26974 int
26975 main (void)
26976 {
26977
26978 blk_queue_make_request(NULL, &make_request);
26979
26980 ;
26981 return 0;
26982 }
26983
26984 _ACEOF
26985
26986
26987
26988 cat - <<_ACEOF >conftest.h
26989
26990 _ACEOF
26991
26992
26993 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
26994 echo "obj-m := conftest.o" >build/Makefile
26995 modpost_flag=''
26996 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
26997 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
26998 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26999 (eval $ac_try) 2>&5
27000 ac_status=$?
27001 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27002 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
27003 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27004 (eval $ac_try) 2>&5
27005 ac_status=$?
27006 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27007 (exit $ac_status); }; }; then
27008
27009 { $as_echo "$as_me:$LINENO: result: yes" >&5
27010 $as_echo "yes" >&6; }
27011
27012 cat >>confdefs.h <<\_ACEOF
27013 #define MAKE_REQUEST_FN_RET int
27014 _ACEOF
27015
27016
27017 cat >>confdefs.h <<\_ACEOF
27018 #define HAVE_MAKE_REQUEST_FN_RET_INT 1
27019 _ACEOF
27020
27021
27022 else
27023 $as_echo "$as_me: failed program was:" >&5
27024 sed 's/^/| /' conftest.$ac_ext >&5
27025
27026 { $as_echo "$as_me:$LINENO: result: no" >&5
27027 $as_echo "no" >&6; }
27028 { $as_echo "$as_me:$LINENO: checking whether make_request_fn() returns void" >&5
27029 $as_echo_n "checking whether make_request_fn() returns void... " >&6; }
27030
27031
27032 cat confdefs.h - <<_ACEOF >conftest.c
27033 /* confdefs.h. */
27034 _ACEOF
27035 cat confdefs.h >>conftest.$ac_ext
27036 cat >>conftest.$ac_ext <<_ACEOF
27037 /* end confdefs.h. */
27038
27039
27040 #include <linux/blkdev.h>
27041
27042 void make_request(struct request_queue *q, struct bio *bio)
27043 {
27044 return;
27045 }
27046
27047 int
27048 main (void)
27049 {
27050
27051 blk_queue_make_request(NULL, &make_request);
27052
27053 ;
27054 return 0;
27055 }
27056
27057 _ACEOF
27058
27059
27060
27061 cat - <<_ACEOF >conftest.h
27062
27063 _ACEOF
27064
27065
27066 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
27067 echo "obj-m := conftest.o" >build/Makefile
27068 modpost_flag=''
27069 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
27070 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
27071 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27072 (eval $ac_try) 2>&5
27073 ac_status=$?
27074 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27075 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
27076 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27077 (eval $ac_try) 2>&5
27078 ac_status=$?
27079 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27080 (exit $ac_status); }; }; then
27081
27082 { $as_echo "$as_me:$LINENO: result: yes" >&5
27083 $as_echo "yes" >&6; }
27084
27085 cat >>confdefs.h <<\_ACEOF
27086 #define MAKE_REQUEST_FN_RET void
27087 _ACEOF
27088
27089
27090 else
27091 $as_echo "$as_me: failed program was:" >&5
27092 sed 's/^/| /' conftest.$ac_ext >&5
27093
27094 { $as_echo "$as_me:$LINENO: result: no" >&5
27095 $as_echo "no" >&6; }
27096 { $as_echo "$as_me:$LINENO: checking whether make_request_fn() returns blk_qc_t" >&5
27097 $as_echo_n "checking whether make_request_fn() returns blk_qc_t... " >&6; }
27098
27099
27100 cat confdefs.h - <<_ACEOF >conftest.c
27101 /* confdefs.h. */
27102 _ACEOF
27103 cat confdefs.h >>conftest.$ac_ext
27104 cat >>conftest.$ac_ext <<_ACEOF
27105 /* end confdefs.h. */
27106
27107
27108 #include <linux/blkdev.h>
27109
27110 blk_qc_t make_request(struct request_queue *q, struct bio *bio)
27111 {
27112 return (BLK_QC_T_NONE);
27113 }
27114
27115 int
27116 main (void)
27117 {
27118
27119 blk_queue_make_request(NULL, &make_request);
27120
27121 ;
27122 return 0;
27123 }
27124
27125 _ACEOF
27126
27127
27128
27129 cat - <<_ACEOF >conftest.h
27130
27131 _ACEOF
27132
27133
27134 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
27135 echo "obj-m := conftest.o" >build/Makefile
27136 modpost_flag=''
27137 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
27138 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
27139 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27140 (eval $ac_try) 2>&5
27141 ac_status=$?
27142 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27143 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
27144 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27145 (eval $ac_try) 2>&5
27146 ac_status=$?
27147 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27148 (exit $ac_status); }; }; then
27149
27150 { $as_echo "$as_me:$LINENO: result: yes" >&5
27151 $as_echo "yes" >&6; }
27152
27153 cat >>confdefs.h <<\_ACEOF
27154 #define MAKE_REQUEST_FN_RET blk_qc_t
27155 _ACEOF
27156
27157
27158 cat >>confdefs.h <<\_ACEOF
27159 #define HAVE_MAKE_REQUEST_FN_RET_QC 1
27160 _ACEOF
27161
27162
27163 else
27164 $as_echo "$as_me: failed program was:" >&5
27165 sed 's/^/| /' conftest.$ac_ext >&5
27166
27167 { { $as_echo "$as_me:$LINENO: error: no - Please file a bug report at
27168 https://github.com/zfsonlinux/zfs/issues/new" >&5
27169 $as_echo "$as_me: error: no - Please file a bug report at
27170 https://github.com/zfsonlinux/zfs/issues/new" >&2;}
27171 { (exit 1); exit 1; }; }
27172
27173
27174
27175 fi
27176
27177 rm -Rf build
27178
27179
27180
27181
27182
27183 fi
27184
27185 rm -Rf build
27186
27187
27188
27189
27190
27191 fi
27192
27193 rm -Rf build
27194
27195
27196
27197
27198 { $as_echo "$as_me:$LINENO: checking whether 3 arg generic IO accounting symbols are available" >&5
27199 $as_echo_n "checking whether 3 arg generic IO accounting symbols are available... " >&6; }
27200
27201
27202
27203 cat confdefs.h - <<_ACEOF >conftest.c
27204 /* confdefs.h. */
27205 _ACEOF
27206 cat confdefs.h >>conftest.$ac_ext
27207 cat >>conftest.$ac_ext <<_ACEOF
27208 /* end confdefs.h. */
27209
27210
27211 #include <linux/bio.h>
27212
27213 void (*generic_start_io_acct_f)(int, unsigned long,
27214 struct hd_struct *) = &generic_start_io_acct;
27215 void (*generic_end_io_acct_f)(int, struct hd_struct *,
27216 unsigned long) = &generic_end_io_acct;
27217
27218 int
27219 main (void)
27220 {
27221
27222 generic_start_io_acct(0, 0, NULL);
27223 generic_end_io_acct(0, NULL, 0);
27224
27225 ;
27226 return 0;
27227 }
27228
27229 _ACEOF
27230
27231
27232
27233 cat - <<_ACEOF >conftest.h
27234
27235 _ACEOF
27236
27237
27238 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
27239 echo "obj-m := conftest.o" >build/Makefile
27240 modpost_flag=''
27241 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
27242 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
27243 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27244 (eval $ac_try) 2>&5
27245 ac_status=$?
27246 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27247 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
27248 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27249 (eval $ac_try) 2>&5
27250 ac_status=$?
27251 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27252 (exit $ac_status); }; }; then
27253 rc=0
27254 else
27255 $as_echo "$as_me: failed program was:" >&5
27256 sed 's/^/| /' conftest.$ac_ext >&5
27257 rc=1
27258
27259
27260 fi
27261
27262 rm -Rf build
27263
27264
27265 if test $rc -ne 0; then :
27266
27267 { $as_echo "$as_me:$LINENO: result: no" >&5
27268 $as_echo "no" >&6; }
27269
27270 else
27271 if test "x$enable_linux_builtin" != xyes; then
27272
27273 grep -q -E '[[:space:]]generic_start_io_acct[[:space:]]' \
27274 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
27275 rc=$?
27276 if test $rc -ne 0; then
27277 export=0
27278 for file in block/bio.c; do
27279 grep -q -E "EXPORT_SYMBOL.*(generic_start_io_acct)" \
27280 "$LINUX/$file" 2>/dev/null
27281 rc=$?
27282 if test $rc -eq 0; then
27283 export=1
27284 break;
27285 fi
27286 done
27287 if test $export -eq 0; then :
27288 rc=1
27289 else :
27290 rc=0
27291 fi
27292 else :
27293 rc=0
27294 fi
27295
27296 fi
27297 if test $rc -ne 0; then :
27298
27299 { $as_echo "$as_me:$LINENO: result: no" >&5
27300 $as_echo "no" >&6; }
27301
27302 else :
27303
27304 { $as_echo "$as_me:$LINENO: result: yes" >&5
27305 $as_echo "yes" >&6; }
27306
27307 cat >>confdefs.h <<\_ACEOF
27308 #define HAVE_GENERIC_IO_ACCT_3ARG 1
27309 _ACEOF
27310
27311
27312 fi
27313 fi
27314
27315
27316
27317 { $as_echo "$as_me:$LINENO: checking whether 4 arg generic IO accounting symbols are available" >&5
27318 $as_echo_n "checking whether 4 arg generic IO accounting symbols are available... " >&6; }
27319
27320
27321
27322 cat confdefs.h - <<_ACEOF >conftest.c
27323 /* confdefs.h. */
27324 _ACEOF
27325 cat confdefs.h >>conftest.$ac_ext
27326 cat >>conftest.$ac_ext <<_ACEOF
27327 /* end confdefs.h. */
27328
27329
27330 #include <linux/bio.h>
27331
27332 void (*generic_start_io_acct_f)(struct request_queue *, int,
27333 unsigned long, struct hd_struct *) = &generic_start_io_acct;
27334 void (*generic_end_io_acct_f)(struct request_queue *, int,
27335 struct hd_struct *, unsigned long) = &generic_end_io_acct;
27336
27337 int
27338 main (void)
27339 {
27340
27341 generic_start_io_acct(NULL, 0, 0, NULL);
27342 generic_end_io_acct(NULL, 0, NULL, 0);
27343
27344 ;
27345 return 0;
27346 }
27347
27348 _ACEOF
27349
27350
27351
27352 cat - <<_ACEOF >conftest.h
27353
27354 _ACEOF
27355
27356
27357 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
27358 echo "obj-m := conftest.o" >build/Makefile
27359 modpost_flag=''
27360 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
27361 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
27362 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27363 (eval $ac_try) 2>&5
27364 ac_status=$?
27365 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27366 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
27367 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27368 (eval $ac_try) 2>&5
27369 ac_status=$?
27370 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27371 (exit $ac_status); }; }; then
27372 rc=0
27373 else
27374 $as_echo "$as_me: failed program was:" >&5
27375 sed 's/^/| /' conftest.$ac_ext >&5
27376 rc=1
27377
27378
27379 fi
27380
27381 rm -Rf build
27382
27383
27384 if test $rc -ne 0; then :
27385
27386 { $as_echo "$as_me:$LINENO: result: no" >&5
27387 $as_echo "no" >&6; }
27388
27389 else
27390 if test "x$enable_linux_builtin" != xyes; then
27391
27392 grep -q -E '[[:space:]]generic_start_io_acct[[:space:]]' \
27393 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
27394 rc=$?
27395 if test $rc -ne 0; then
27396 export=0
27397 for file in block/bio.c; do
27398 grep -q -E "EXPORT_SYMBOL.*(generic_start_io_acct)" \
27399 "$LINUX/$file" 2>/dev/null
27400 rc=$?
27401 if test $rc -eq 0; then
27402 export=1
27403 break;
27404 fi
27405 done
27406 if test $export -eq 0; then :
27407 rc=1
27408 else :
27409 rc=0
27410 fi
27411 else :
27412 rc=0
27413 fi
27414
27415 fi
27416 if test $rc -ne 0; then :
27417
27418 { $as_echo "$as_me:$LINENO: result: no" >&5
27419 $as_echo "no" >&6; }
27420
27421 else :
27422
27423 { $as_echo "$as_me:$LINENO: result: yes" >&5
27424 $as_echo "yes" >&6; }
27425
27426 cat >>confdefs.h <<\_ACEOF
27427 #define HAVE_GENERIC_IO_ACCT_4ARG 1
27428 _ACEOF
27429
27430
27431 fi
27432 fi
27433
27434
27435
27436 { $as_echo "$as_me:$LINENO: checking whether asm/fpu/api.h exists" >&5
27437 $as_echo_n "checking whether asm/fpu/api.h exists... " >&6; }
27438
27439
27440 cat confdefs.h - <<_ACEOF >conftest.c
27441 /* confdefs.h. */
27442 _ACEOF
27443 cat confdefs.h >>conftest.$ac_ext
27444 cat >>conftest.$ac_ext <<_ACEOF
27445 /* end confdefs.h. */
27446
27447
27448 #include <linux/kernel.h>
27449 #include <asm/fpu/api.h>
27450
27451 int
27452 main (void)
27453 {
27454
27455 __kernel_fpu_begin();
27456
27457 ;
27458 return 0;
27459 }
27460
27461 _ACEOF
27462
27463
27464
27465 cat - <<_ACEOF >conftest.h
27466
27467 _ACEOF
27468
27469
27470 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
27471 echo "obj-m := conftest.o" >build/Makefile
27472 modpost_flag=''
27473 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
27474 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
27475 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27476 (eval $ac_try) 2>&5
27477 ac_status=$?
27478 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27479 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
27480 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27481 (eval $ac_try) 2>&5
27482 ac_status=$?
27483 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27484 (exit $ac_status); }; }; then
27485
27486 { $as_echo "$as_me:$LINENO: result: yes" >&5
27487 $as_echo "yes" >&6; }
27488
27489 cat >>confdefs.h <<\_ACEOF
27490 #define HAVE_FPU_API_H 1
27491 _ACEOF
27492
27493
27494 else
27495 $as_echo "$as_me: failed program was:" >&5
27496 sed 's/^/| /' conftest.$ac_ext >&5
27497
27498 { $as_echo "$as_me:$LINENO: result: no" >&5
27499 $as_echo "no" >&6; }
27500
27501
27502
27503 fi
27504
27505 rm -Rf build
27506
27507
27508
27509
27510 { $as_echo "$as_me:$LINENO: checking whether i_(uid|gid)_(read|write) exist" >&5
27511 $as_echo_n "checking whether i_(uid|gid)_(read|write) exist... " >&6; }
27512
27513
27514 cat confdefs.h - <<_ACEOF >conftest.c
27515 /* confdefs.h. */
27516 _ACEOF
27517 cat confdefs.h >>conftest.$ac_ext
27518 cat >>conftest.$ac_ext <<_ACEOF
27519 /* end confdefs.h. */
27520
27521
27522 #include <linux/fs.h>
27523
27524 int
27525 main (void)
27526 {
27527
27528 struct inode *ip = NULL;
27529 (void) i_uid_read(ip);
27530
27531 ;
27532 return 0;
27533 }
27534
27535 _ACEOF
27536
27537
27538
27539 cat - <<_ACEOF >conftest.h
27540
27541 _ACEOF
27542
27543
27544 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
27545 echo "obj-m := conftest.o" >build/Makefile
27546 modpost_flag=''
27547 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
27548 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
27549 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27550 (eval $ac_try) 2>&5
27551 ac_status=$?
27552 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27553 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
27554 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27555 (eval $ac_try) 2>&5
27556 ac_status=$?
27557 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27558 (exit $ac_status); }; }; then
27559
27560 { $as_echo "$as_me:$LINENO: result: yes" >&5
27561 $as_echo "yes" >&6; }
27562
27563 cat >>confdefs.h <<\_ACEOF
27564 #define HAVE_KUID_HELPERS 1
27565 _ACEOF
27566
27567
27568 else
27569 $as_echo "$as_me: failed program was:" >&5
27570 sed 's/^/| /' conftest.$ac_ext >&5
27571
27572 { $as_echo "$as_me:$LINENO: result: no" >&5
27573 $as_echo "no" >&6; }
27574
27575
27576
27577 fi
27578
27579 rm -Rf build
27580
27581
27582
27583
27584 { $as_echo "$as_me:$LINENO: checking whether module_param_call() is hardened" >&5
27585 $as_echo_n "checking whether module_param_call() is hardened... " >&6; }
27586
27587
27588 cat confdefs.h - <<_ACEOF >conftest.c
27589 /* confdefs.h. */
27590 _ACEOF
27591 cat confdefs.h >>conftest.$ac_ext
27592 cat >>conftest.$ac_ext <<_ACEOF
27593 /* end confdefs.h. */
27594
27595
27596 #include <linux/module.h>
27597 #include <linux/moduleparam.h>
27598
27599 int param_get(char *b, const struct kernel_param *kp)
27600 {
27601 return (0);
27602 }
27603
27604 int param_set(const char *b, const struct kernel_param *kp)
27605 {
27606 return (0);
27607 }
27608
27609 module_param_call(p, param_set, param_get, NULL, 0644);
27610
27611 int
27612 main (void)
27613 {
27614
27615
27616 ;
27617 return 0;
27618 }
27619
27620 _ACEOF
27621
27622
27623
27624 cat - <<_ACEOF >conftest.h
27625
27626 _ACEOF
27627
27628
27629 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
27630 echo "obj-m := conftest.o" >build/Makefile
27631 modpost_flag=''
27632 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
27633 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
27634 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27635 (eval $ac_try) 2>&5
27636 ac_status=$?
27637 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27638 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
27639 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27640 (eval $ac_try) 2>&5
27641 ac_status=$?
27642 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27643 (exit $ac_status); }; }; then
27644
27645 { $as_echo "$as_me:$LINENO: result: yes" >&5
27646 $as_echo "yes" >&6; }
27647
27648 cat >>confdefs.h <<\_ACEOF
27649 #define MODULE_PARAM_CALL_CONST 1
27650 _ACEOF
27651
27652
27653 else
27654 $as_echo "$as_me: failed program was:" >&5
27655 sed 's/^/| /' conftest.$ac_ext >&5
27656
27657 { $as_echo "$as_me:$LINENO: result: no" >&5
27658 $as_echo "no" >&6; }
27659
27660
27661
27662 fi
27663
27664 rm -Rf build
27665
27666
27667
27668
27669 { $as_echo "$as_me:$LINENO: checking whether iops->rename() wants flags" >&5
27670 $as_echo_n "checking whether iops->rename() wants flags... " >&6; }
27671
27672
27673 cat confdefs.h - <<_ACEOF >conftest.c
27674 /* confdefs.h. */
27675 _ACEOF
27676 cat confdefs.h >>conftest.$ac_ext
27677 cat >>conftest.$ac_ext <<_ACEOF
27678 /* end confdefs.h. */
27679
27680
27681 #include <linux/fs.h>
27682 int rename_fn(struct inode *sip, struct dentry *sdp,
27683 struct inode *tip, struct dentry *tdp,
27684 unsigned int flags) { return 0; }
27685
27686 static const struct inode_operations
27687 iops __attribute__ ((unused)) = {
27688 .rename = rename_fn,
27689 };
27690
27691 int
27692 main (void)
27693 {
27694
27695
27696 ;
27697 return 0;
27698 }
27699
27700 _ACEOF
27701
27702
27703
27704 cat - <<_ACEOF >conftest.h
27705
27706 _ACEOF
27707
27708
27709 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
27710 echo "obj-m := conftest.o" >build/Makefile
27711 modpost_flag=''
27712 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
27713 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
27714 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27715 (eval $ac_try) 2>&5
27716 ac_status=$?
27717 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27718 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
27719 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27720 (eval $ac_try) 2>&5
27721 ac_status=$?
27722 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27723 (exit $ac_status); }; }; then
27724
27725 { $as_echo "$as_me:$LINENO: result: yes" >&5
27726 $as_echo "yes" >&6; }
27727
27728 cat >>confdefs.h <<\_ACEOF
27729 #define HAVE_RENAME_WANTS_FLAGS 1
27730 _ACEOF
27731
27732
27733 else
27734 $as_echo "$as_me: failed program was:" >&5
27735 sed 's/^/| /' conftest.$ac_ext >&5
27736
27737 { $as_echo "$as_me:$LINENO: result: no" >&5
27738 $as_echo "no" >&6; }
27739
27740
27741
27742 fi
27743
27744 rm -Rf build
27745
27746
27747
27748
27749 { $as_echo "$as_me:$LINENO: checking whether generic_setxattr() exists" >&5
27750 $as_echo_n "checking whether generic_setxattr() exists... " >&6; }
27751
27752
27753 cat confdefs.h - <<_ACEOF >conftest.c
27754 /* confdefs.h. */
27755 _ACEOF
27756 cat confdefs.h >>conftest.$ac_ext
27757 cat >>conftest.$ac_ext <<_ACEOF
27758 /* end confdefs.h. */
27759
27760
27761 #include <linux/fs.h>
27762 #include <linux/xattr.h>
27763
27764 static const struct inode_operations
27765 iops __attribute__ ((unused)) = {
27766 .setxattr = generic_setxattr
27767 };
27768
27769 int
27770 main (void)
27771 {
27772
27773
27774 ;
27775 return 0;
27776 }
27777
27778 _ACEOF
27779
27780
27781
27782 cat - <<_ACEOF >conftest.h
27783
27784 _ACEOF
27785
27786
27787 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
27788 echo "obj-m := conftest.o" >build/Makefile
27789 modpost_flag=''
27790 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
27791 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
27792 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27793 (eval $ac_try) 2>&5
27794 ac_status=$?
27795 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27796 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
27797 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27798 (eval $ac_try) 2>&5
27799 ac_status=$?
27800 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27801 (exit $ac_status); }; }; then
27802
27803 { $as_echo "$as_me:$LINENO: result: yes" >&5
27804 $as_echo "yes" >&6; }
27805
27806 cat >>confdefs.h <<\_ACEOF
27807 #define HAVE_GENERIC_SETXATTR 1
27808 _ACEOF
27809
27810
27811 else
27812 $as_echo "$as_me: failed program was:" >&5
27813 sed 's/^/| /' conftest.$ac_ext >&5
27814
27815 { $as_echo "$as_me:$LINENO: result: no" >&5
27816 $as_echo "no" >&6; }
27817
27818
27819
27820 fi
27821
27822 rm -Rf build
27823
27824
27825
27826 { $as_echo "$as_me:$LINENO: checking whether current_time() exists" >&5
27827 $as_echo_n "checking whether current_time() exists... " >&6; }
27828
27829
27830
27831 cat confdefs.h - <<_ACEOF >conftest.c
27832 /* confdefs.h. */
27833 _ACEOF
27834 cat confdefs.h >>conftest.$ac_ext
27835 cat >>conftest.$ac_ext <<_ACEOF
27836 /* end confdefs.h. */
27837
27838
27839 #include <linux/fs.h>
27840
27841 int
27842 main (void)
27843 {
27844
27845 struct inode ip __attribute__ ((unused));
27846 ip.i_atime = current_time(&ip);
27847
27848 ;
27849 return 0;
27850 }
27851
27852 _ACEOF
27853
27854
27855
27856 cat - <<_ACEOF >conftest.h
27857
27858 _ACEOF
27859
27860
27861 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
27862 echo "obj-m := conftest.o" >build/Makefile
27863 modpost_flag=''
27864 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
27865 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
27866 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27867 (eval $ac_try) 2>&5
27868 ac_status=$?
27869 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27870 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
27871 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27872 (eval $ac_try) 2>&5
27873 ac_status=$?
27874 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27875 (exit $ac_status); }; }; then
27876 rc=0
27877 else
27878 $as_echo "$as_me: failed program was:" >&5
27879 sed 's/^/| /' conftest.$ac_ext >&5
27880 rc=1
27881
27882
27883 fi
27884
27885 rm -Rf build
27886
27887
27888 if test $rc -ne 0; then :
27889
27890 { $as_echo "$as_me:$LINENO: result: no" >&5
27891 $as_echo "no" >&6; }
27892
27893 else
27894 if test "x$enable_linux_builtin" != xyes; then
27895
27896 grep -q -E '[[:space:]]current_time[[:space:]]' \
27897 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
27898 rc=$?
27899 if test $rc -ne 0; then
27900 export=0
27901 for file in fs/inode.c; do
27902 grep -q -E "EXPORT_SYMBOL.*(current_time)" \
27903 "$LINUX/$file" 2>/dev/null
27904 rc=$?
27905 if test $rc -eq 0; then
27906 export=1
27907 break;
27908 fi
27909 done
27910 if test $export -eq 0; then :
27911 rc=1
27912 else :
27913 rc=0
27914 fi
27915 else :
27916 rc=0
27917 fi
27918
27919 fi
27920 if test $rc -ne 0; then :
27921
27922 { $as_echo "$as_me:$LINENO: result: no" >&5
27923 $as_echo "no" >&6; }
27924
27925 else :
27926
27927 { $as_echo "$as_me:$LINENO: result: yes" >&5
27928 $as_echo "yes" >&6; }
27929
27930 cat >>confdefs.h <<\_ACEOF
27931 #define HAVE_CURRENT_TIME 1
27932 _ACEOF
27933
27934
27935 fi
27936 fi
27937
27938
27939
27940
27941 { $as_echo "$as_me:$LINENO: checking whether global_node_page_state() exists" >&5
27942 $as_echo_n "checking whether global_node_page_state() exists... " >&6; }
27943
27944
27945 cat confdefs.h - <<_ACEOF >conftest.c
27946 /* confdefs.h. */
27947 _ACEOF
27948 cat confdefs.h >>conftest.$ac_ext
27949 cat >>conftest.$ac_ext <<_ACEOF
27950 /* end confdefs.h. */
27951
27952
27953 #include <linux/mm.h>
27954 #include <linux/vmstat.h>
27955
27956 int
27957 main (void)
27958 {
27959
27960 (void) global_node_page_state(0);
27961
27962 ;
27963 return 0;
27964 }
27965
27966 _ACEOF
27967
27968
27969
27970 cat - <<_ACEOF >conftest.h
27971
27972 _ACEOF
27973
27974
27975 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
27976 echo "obj-m := conftest.o" >build/Makefile
27977 modpost_flag=''
27978 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
27979 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
27980 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27981 (eval $ac_try) 2>&5
27982 ac_status=$?
27983 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27984 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
27985 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27986 (eval $ac_try) 2>&5
27987 ac_status=$?
27988 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27989 (exit $ac_status); }; }; then
27990
27991 { $as_echo "$as_me:$LINENO: result: yes" >&5
27992 $as_echo "yes" >&6; }
27993
27994 cat >>confdefs.h <<\_ACEOF
27995 #define ZFS_GLOBAL_NODE_PAGE_STATE 1
27996 _ACEOF
27997
27998
27999 else
28000 $as_echo "$as_me: failed program was:" >&5
28001 sed 's/^/| /' conftest.$ac_ext >&5
28002
28003 { $as_echo "$as_me:$LINENO: result: no" >&5
28004 $as_echo "no" >&6; }
28005
28006
28007
28008 fi
28009
28010 rm -Rf build
28011
28012
28013
28014
28015 { $as_echo "$as_me:$LINENO: checking whether global_zone_page_state() exists" >&5
28016 $as_echo_n "checking whether global_zone_page_state() exists... " >&6; }
28017
28018
28019 cat confdefs.h - <<_ACEOF >conftest.c
28020 /* confdefs.h. */
28021 _ACEOF
28022 cat confdefs.h >>conftest.$ac_ext
28023 cat >>conftest.$ac_ext <<_ACEOF
28024 /* end confdefs.h. */
28025
28026
28027 #include <linux/mm.h>
28028 #include <linux/vmstat.h>
28029
28030 int
28031 main (void)
28032 {
28033
28034 (void) global_zone_page_state(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 $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
28054 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28055 (eval $ac_try) 2>&5
28056 ac_status=$?
28057 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28058 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
28059 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28060 (eval $ac_try) 2>&5
28061 ac_status=$?
28062 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28063 (exit $ac_status); }; }; then
28064
28065 { $as_echo "$as_me:$LINENO: result: yes" >&5
28066 $as_echo "yes" >&6; }
28067
28068 cat >>confdefs.h <<\_ACEOF
28069 #define ZFS_GLOBAL_ZONE_PAGE_STATE 1
28070 _ACEOF
28071
28072
28073 else
28074 $as_echo "$as_me: failed program was:" >&5
28075 sed 's/^/| /' conftest.$ac_ext >&5
28076
28077 { $as_echo "$as_me:$LINENO: result: no" >&5
28078 $as_echo "no" >&6; }
28079
28080
28081
28082 fi
28083
28084 rm -Rf build
28085
28086
28087
28088
28089
28090 { $as_echo "$as_me:$LINENO: checking whether enum node_stat_item contains NR_FILE_PAGES" >&5
28091 $as_echo_n "checking whether enum node_stat_item contains NR_FILE_PAGES... " >&6; }
28092 if { ac_try='"${srcdir}/scripts/enum-extract.pl" "node_stat_item" "$LINUX/include/linux/mmzone.h" | egrep -qx NR_FILE_PAGES'
28093 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28094 (eval $ac_try) 2>&5
28095 ac_status=$?
28096 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28097 (exit $ac_status); }; }; then
28098
28099 { $as_echo "$as_me:$LINENO: result: yes" >&5
28100 $as_echo "yes" >&6; }
28101
28102 cat >>confdefs.h <<\_ACEOF
28103 #define ZFS_ENUM_NODE_STAT_ITEM_NR_FILE_PAGES 1
28104 _ACEOF
28105
28106 ZFS_ENUM_NODE_STAT_ITEM_NR_FILE_PAGES=1
28107
28108 else
28109
28110 { $as_echo "$as_me:$LINENO: result: no" >&5
28111 $as_echo "no" >&6; }
28112
28113 fi
28114
28115
28116
28117 { $as_echo "$as_me:$LINENO: checking whether enum node_stat_item contains NR_INACTIVE_ANON" >&5
28118 $as_echo_n "checking whether enum node_stat_item contains NR_INACTIVE_ANON... " >&6; }
28119 if { ac_try='"${srcdir}/scripts/enum-extract.pl" "node_stat_item" "$LINUX/include/linux/mmzone.h" | egrep -qx NR_INACTIVE_ANON'
28120 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28121 (eval $ac_try) 2>&5
28122 ac_status=$?
28123 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28124 (exit $ac_status); }; }; then
28125
28126 { $as_echo "$as_me:$LINENO: result: yes" >&5
28127 $as_echo "yes" >&6; }
28128
28129 cat >>confdefs.h <<\_ACEOF
28130 #define ZFS_ENUM_NODE_STAT_ITEM_NR_INACTIVE_ANON 1
28131 _ACEOF
28132
28133 ZFS_ENUM_NODE_STAT_ITEM_NR_INACTIVE_ANON=1
28134
28135 else
28136
28137 { $as_echo "$as_me:$LINENO: result: no" >&5
28138 $as_echo "no" >&6; }
28139
28140 fi
28141
28142
28143
28144 { $as_echo "$as_me:$LINENO: checking whether enum node_stat_item contains NR_INACTIVE_FILE" >&5
28145 $as_echo_n "checking whether enum node_stat_item contains NR_INACTIVE_FILE... " >&6; }
28146 if { ac_try='"${srcdir}/scripts/enum-extract.pl" "node_stat_item" "$LINUX/include/linux/mmzone.h" | egrep -qx NR_INACTIVE_FILE'
28147 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28148 (eval $ac_try) 2>&5
28149 ac_status=$?
28150 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28151 (exit $ac_status); }; }; then
28152
28153 { $as_echo "$as_me:$LINENO: result: yes" >&5
28154 $as_echo "yes" >&6; }
28155
28156 cat >>confdefs.h <<\_ACEOF
28157 #define ZFS_ENUM_NODE_STAT_ITEM_NR_INACTIVE_FILE 1
28158 _ACEOF
28159
28160 ZFS_ENUM_NODE_STAT_ITEM_NR_INACTIVE_FILE=1
28161
28162 else
28163
28164 { $as_echo "$as_me:$LINENO: result: no" >&5
28165 $as_echo "no" >&6; }
28166
28167 fi
28168
28169
28170
28171 { $as_echo "$as_me:$LINENO: checking whether enum node_stat_item contains NR_SLAB_RECLAIMABLE" >&5
28172 $as_echo_n "checking whether enum node_stat_item contains NR_SLAB_RECLAIMABLE... " >&6; }
28173 if { ac_try='"${srcdir}/scripts/enum-extract.pl" "node_stat_item" "$LINUX/include/linux/mmzone.h" | egrep -qx NR_SLAB_RECLAIMABLE'
28174 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28175 (eval $ac_try) 2>&5
28176 ac_status=$?
28177 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28178 (exit $ac_status); }; }; then
28179
28180 { $as_echo "$as_me:$LINENO: result: yes" >&5
28181 $as_echo "yes" >&6; }
28182
28183 cat >>confdefs.h <<\_ACEOF
28184 #define ZFS_ENUM_NODE_STAT_ITEM_NR_SLAB_RECLAIMABLE 1
28185 _ACEOF
28186
28187 ZFS_ENUM_NODE_STAT_ITEM_NR_SLAB_RECLAIMABLE=1
28188
28189 else
28190
28191 { $as_echo "$as_me:$LINENO: result: no" >&5
28192 $as_echo "no" >&6; }
28193
28194 fi
28195
28196
28197
28198
28199 { $as_echo "$as_me:$LINENO: checking whether enum zone_stat_item contains NR_FILE_PAGES" >&5
28200 $as_echo_n "checking whether enum zone_stat_item contains NR_FILE_PAGES... " >&6; }
28201 if { ac_try='"${srcdir}/scripts/enum-extract.pl" "zone_stat_item" "$LINUX/include/linux/mmzone.h" | egrep -qx NR_FILE_PAGES'
28202 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28203 (eval $ac_try) 2>&5
28204 ac_status=$?
28205 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28206 (exit $ac_status); }; }; then
28207
28208 { $as_echo "$as_me:$LINENO: result: yes" >&5
28209 $as_echo "yes" >&6; }
28210
28211 cat >>confdefs.h <<\_ACEOF
28212 #define ZFS_ENUM_ZONE_STAT_ITEM_NR_FILE_PAGES 1
28213 _ACEOF
28214
28215 ZFS_ENUM_ZONE_STAT_ITEM_NR_FILE_PAGES=1
28216
28217 else
28218
28219 { $as_echo "$as_me:$LINENO: result: no" >&5
28220 $as_echo "no" >&6; }
28221
28222 fi
28223
28224
28225
28226 { $as_echo "$as_me:$LINENO: checking whether enum zone_stat_item contains NR_INACTIVE_ANON" >&5
28227 $as_echo_n "checking whether enum zone_stat_item contains NR_INACTIVE_ANON... " >&6; }
28228 if { ac_try='"${srcdir}/scripts/enum-extract.pl" "zone_stat_item" "$LINUX/include/linux/mmzone.h" | egrep -qx NR_INACTIVE_ANON'
28229 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28230 (eval $ac_try) 2>&5
28231 ac_status=$?
28232 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28233 (exit $ac_status); }; }; then
28234
28235 { $as_echo "$as_me:$LINENO: result: yes" >&5
28236 $as_echo "yes" >&6; }
28237
28238 cat >>confdefs.h <<\_ACEOF
28239 #define ZFS_ENUM_ZONE_STAT_ITEM_NR_INACTIVE_ANON 1
28240 _ACEOF
28241
28242 ZFS_ENUM_ZONE_STAT_ITEM_NR_INACTIVE_ANON=1
28243
28244 else
28245
28246 { $as_echo "$as_me:$LINENO: result: no" >&5
28247 $as_echo "no" >&6; }
28248
28249 fi
28250
28251
28252
28253 { $as_echo "$as_me:$LINENO: checking whether enum zone_stat_item contains NR_INACTIVE_FILE" >&5
28254 $as_echo_n "checking whether enum zone_stat_item contains NR_INACTIVE_FILE... " >&6; }
28255 if { ac_try='"${srcdir}/scripts/enum-extract.pl" "zone_stat_item" "$LINUX/include/linux/mmzone.h" | egrep -qx NR_INACTIVE_FILE'
28256 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28257 (eval $ac_try) 2>&5
28258 ac_status=$?
28259 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28260 (exit $ac_status); }; }; then
28261
28262 { $as_echo "$as_me:$LINENO: result: yes" >&5
28263 $as_echo "yes" >&6; }
28264
28265 cat >>confdefs.h <<\_ACEOF
28266 #define ZFS_ENUM_ZONE_STAT_ITEM_NR_INACTIVE_FILE 1
28267 _ACEOF
28268
28269 ZFS_ENUM_ZONE_STAT_ITEM_NR_INACTIVE_FILE=1
28270
28271 else
28272
28273 { $as_echo "$as_me:$LINENO: result: no" >&5
28274 $as_echo "no" >&6; }
28275
28276 fi
28277
28278
28279
28280 { $as_echo "$as_me:$LINENO: checking whether enum zone_stat_item contains NR_SLAB_RECLAIMABLE" >&5
28281 $as_echo_n "checking whether enum zone_stat_item contains NR_SLAB_RECLAIMABLE... " >&6; }
28282 if { ac_try='"${srcdir}/scripts/enum-extract.pl" "zone_stat_item" "$LINUX/include/linux/mmzone.h" | egrep -qx NR_SLAB_RECLAIMABLE'
28283 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28284 (eval $ac_try) 2>&5
28285 ac_status=$?
28286 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28287 (exit $ac_status); }; }; then
28288
28289 { $as_echo "$as_me:$LINENO: result: yes" >&5
28290 $as_echo "yes" >&6; }
28291
28292 cat >>confdefs.h <<\_ACEOF
28293 #define ZFS_ENUM_ZONE_STAT_ITEM_NR_SLAB_RECLAIMABLE 1
28294 _ACEOF
28295
28296 ZFS_ENUM_ZONE_STAT_ITEM_NR_SLAB_RECLAIMABLE=1
28297
28298 else
28299
28300 { $as_echo "$as_me:$LINENO: result: no" >&5
28301 $as_echo "no" >&6; }
28302
28303 fi
28304
28305
28306
28307
28308 { $as_echo "$as_me:$LINENO: checking global_page_state enums are sane" >&5
28309 $as_echo_n "checking global_page_state enums are sane... " >&6; }
28310
28311
28312 enum_check_a="$ZFS_ENUM_NODE_STAT_ITEM_NR_FILE_PAGES"
28313 enum_check_b="$ZFS_ENUM_ZONE_STAT_ITEM_NR_FILE_PAGES"
28314 if test -n "$enum_check_a" -a -n "$enum_check_b"; then
28315
28316
28317 { $as_echo "$as_me:$LINENO: result: no" >&5
28318 $as_echo "no" >&6; }
28319 { $as_echo "$as_me:$LINENO: result: NR_FILE_PAGES in either node_stat_item or zone_stat_item: DUPLICATE" >&5
28320 $as_echo "NR_FILE_PAGES in either node_stat_item or zone_stat_item: DUPLICATE" >&6; }
28321 { $as_echo "$as_me:$LINENO: result: configure needs updating, see: config/kernel-global_page_state.m4" >&5
28322 $as_echo "configure needs updating, see: config/kernel-global_page_state.m4" >&6; }
28323 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
28324 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
28325 { { $as_echo "$as_me:$LINENO: error: SHUT 'ER DOWN CLANCY, SHE'S PUMPIN' MUD!
28326 See \`config.log' for more details." >&5
28327 $as_echo "$as_me: error: SHUT 'ER DOWN CLANCY, SHE'S PUMPIN' MUD!
28328 See \`config.log' for more details." >&2;}
28329 { (exit 1); exit 1; }; }; }
28330
28331
28332 fi
28333
28334 if test -z "$enum_check_a" -a -z "$enum_check_b"; then
28335
28336
28337 { $as_echo "$as_me:$LINENO: result: no" >&5
28338 $as_echo "no" >&6; }
28339 { $as_echo "$as_me:$LINENO: result: NR_FILE_PAGES in either node_stat_item or zone_stat_item: NOT FOUND" >&5
28340 $as_echo "NR_FILE_PAGES in either node_stat_item or zone_stat_item: NOT FOUND" >&6; }
28341 { $as_echo "$as_me:$LINENO: result: configure needs updating, see: config/kernel-global_page_state.m4" >&5
28342 $as_echo "configure needs updating, see: config/kernel-global_page_state.m4" >&6; }
28343 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
28344 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
28345 { { $as_echo "$as_me:$LINENO: error: SHUT 'ER DOWN CLANCY, SHE'S PUMPIN' MUD!
28346 See \`config.log' for more details." >&5
28347 $as_echo "$as_me: error: SHUT 'ER DOWN CLANCY, SHE'S PUMPIN' MUD!
28348 See \`config.log' for more details." >&2;}
28349 { (exit 1); exit 1; }; }; }
28350
28351
28352 fi
28353
28354
28355
28356 enum_check_a="$ZFS_ENUM_NODE_STAT_ITEM_NR_INACTIVE_ANON"
28357 enum_check_b="$ZFS_ENUM_ZONE_STAT_ITEM_NR_INACTIVE_ANON"
28358 if test -n "$enum_check_a" -a -n "$enum_check_b"; then
28359
28360
28361 { $as_echo "$as_me:$LINENO: result: no" >&5
28362 $as_echo "no" >&6; }
28363 { $as_echo "$as_me:$LINENO: result: NR_INACTIVE_ANON in either node_stat_item or zone_stat_item: DUPLICATE" >&5
28364 $as_echo "NR_INACTIVE_ANON in either node_stat_item or zone_stat_item: DUPLICATE" >&6; }
28365 { $as_echo "$as_me:$LINENO: result: configure needs updating, see: config/kernel-global_page_state.m4" >&5
28366 $as_echo "configure needs updating, see: config/kernel-global_page_state.m4" >&6; }
28367 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
28368 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
28369 { { $as_echo "$as_me:$LINENO: error: SHUT 'ER DOWN CLANCY, SHE'S PUMPIN' MUD!
28370 See \`config.log' for more details." >&5
28371 $as_echo "$as_me: error: SHUT 'ER DOWN CLANCY, SHE'S PUMPIN' MUD!
28372 See \`config.log' for more details." >&2;}
28373 { (exit 1); exit 1; }; }; }
28374
28375
28376 fi
28377
28378 if test -z "$enum_check_a" -a -z "$enum_check_b"; then
28379
28380
28381 { $as_echo "$as_me:$LINENO: result: no" >&5
28382 $as_echo "no" >&6; }
28383 { $as_echo "$as_me:$LINENO: result: NR_INACTIVE_ANON in either node_stat_item or zone_stat_item: NOT FOUND" >&5
28384 $as_echo "NR_INACTIVE_ANON in either node_stat_item or zone_stat_item: NOT FOUND" >&6; }
28385 { $as_echo "$as_me:$LINENO: result: configure needs updating, see: config/kernel-global_page_state.m4" >&5
28386 $as_echo "configure needs updating, see: config/kernel-global_page_state.m4" >&6; }
28387 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
28388 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
28389 { { $as_echo "$as_me:$LINENO: error: SHUT 'ER DOWN CLANCY, SHE'S PUMPIN' MUD!
28390 See \`config.log' for more details." >&5
28391 $as_echo "$as_me: error: SHUT 'ER DOWN CLANCY, SHE'S PUMPIN' MUD!
28392 See \`config.log' for more details." >&2;}
28393 { (exit 1); exit 1; }; }; }
28394
28395
28396 fi
28397
28398
28399
28400 enum_check_a="$ZFS_ENUM_NODE_STAT_ITEM_NR_INACTIVE_FILE"
28401 enum_check_b="$ZFS_ENUM_ZONE_STAT_ITEM_NR_INACTIVE_FILE"
28402 if test -n "$enum_check_a" -a -n "$enum_check_b"; then
28403
28404
28405 { $as_echo "$as_me:$LINENO: result: no" >&5
28406 $as_echo "no" >&6; }
28407 { $as_echo "$as_me:$LINENO: result: NR_INACTIVE_FILE in either node_stat_item or zone_stat_item: DUPLICATE" >&5
28408 $as_echo "NR_INACTIVE_FILE in either node_stat_item or zone_stat_item: DUPLICATE" >&6; }
28409 { $as_echo "$as_me:$LINENO: result: configure needs updating, see: config/kernel-global_page_state.m4" >&5
28410 $as_echo "configure needs updating, see: config/kernel-global_page_state.m4" >&6; }
28411 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
28412 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
28413 { { $as_echo "$as_me:$LINENO: error: SHUT 'ER DOWN CLANCY, SHE'S PUMPIN' MUD!
28414 See \`config.log' for more details." >&5
28415 $as_echo "$as_me: error: SHUT 'ER DOWN CLANCY, SHE'S PUMPIN' MUD!
28416 See \`config.log' for more details." >&2;}
28417 { (exit 1); exit 1; }; }; }
28418
28419
28420 fi
28421
28422 if test -z "$enum_check_a" -a -z "$enum_check_b"; then
28423
28424
28425 { $as_echo "$as_me:$LINENO: result: no" >&5
28426 $as_echo "no" >&6; }
28427 { $as_echo "$as_me:$LINENO: result: NR_INACTIVE_FILE in either node_stat_item or zone_stat_item: NOT FOUND" >&5
28428 $as_echo "NR_INACTIVE_FILE in either node_stat_item or zone_stat_item: NOT FOUND" >&6; }
28429 { $as_echo "$as_me:$LINENO: result: configure needs updating, see: config/kernel-global_page_state.m4" >&5
28430 $as_echo "configure needs updating, see: config/kernel-global_page_state.m4" >&6; }
28431 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
28432 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
28433 { { $as_echo "$as_me:$LINENO: error: SHUT 'ER DOWN CLANCY, SHE'S PUMPIN' MUD!
28434 See \`config.log' for more details." >&5
28435 $as_echo "$as_me: error: SHUT 'ER DOWN CLANCY, SHE'S PUMPIN' MUD!
28436 See \`config.log' for more details." >&2;}
28437 { (exit 1); exit 1; }; }; }
28438
28439
28440 fi
28441
28442
28443
28444 enum_check_a="$ZFS_ENUM_NODE_STAT_ITEM_NR_SLAB_RECLAIMABLE"
28445 enum_check_b="$ZFS_ENUM_ZONE_STAT_ITEM_NR_SLAB_RECLAIMABLE"
28446 if test -n "$enum_check_a" -a -n "$enum_check_b"; then
28447
28448
28449 { $as_echo "$as_me:$LINENO: result: no" >&5
28450 $as_echo "no" >&6; }
28451 { $as_echo "$as_me:$LINENO: result: NR_SLAB_RECLAIMABLE in either node_stat_item or zone_stat_item: DUPLICATE" >&5
28452 $as_echo "NR_SLAB_RECLAIMABLE in either node_stat_item or zone_stat_item: DUPLICATE" >&6; }
28453 { $as_echo "$as_me:$LINENO: result: configure needs updating, see: config/kernel-global_page_state.m4" >&5
28454 $as_echo "configure needs updating, see: config/kernel-global_page_state.m4" >&6; }
28455 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
28456 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
28457 { { $as_echo "$as_me:$LINENO: error: SHUT 'ER DOWN CLANCY, SHE'S PUMPIN' MUD!
28458 See \`config.log' for more details." >&5
28459 $as_echo "$as_me: error: SHUT 'ER DOWN CLANCY, SHE'S PUMPIN' MUD!
28460 See \`config.log' for more details." >&2;}
28461 { (exit 1); exit 1; }; }; }
28462
28463
28464 fi
28465
28466 if test -z "$enum_check_a" -a -z "$enum_check_b"; then
28467
28468
28469 { $as_echo "$as_me:$LINENO: result: no" >&5
28470 $as_echo "no" >&6; }
28471 { $as_echo "$as_me:$LINENO: result: NR_SLAB_RECLAIMABLE in either node_stat_item or zone_stat_item: NOT FOUND" >&5
28472 $as_echo "NR_SLAB_RECLAIMABLE in either node_stat_item or zone_stat_item: NOT FOUND" >&6; }
28473 { $as_echo "$as_me:$LINENO: result: configure needs updating, see: config/kernel-global_page_state.m4" >&5
28474 $as_echo "configure needs updating, see: config/kernel-global_page_state.m4" >&6; }
28475 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
28476 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
28477 { { $as_echo "$as_me:$LINENO: error: SHUT 'ER DOWN CLANCY, SHE'S PUMPIN' MUD!
28478 See \`config.log' for more details." >&5
28479 $as_echo "$as_me: error: SHUT 'ER DOWN CLANCY, SHE'S PUMPIN' MUD!
28480 See \`config.log' for more details." >&2;}
28481 { (exit 1); exit 1; }; }; }
28482
28483
28484 fi
28485
28486
28487
28488 { $as_echo "$as_me:$LINENO: result: yes" >&5
28489 $as_echo "yes" >&6; }
28490
28491
28492
28493 { $as_echo "$as_me:$LINENO: checking whether posix_acl has refcount_t" >&5
28494 $as_echo_n "checking whether posix_acl has refcount_t... " >&6; }
28495
28496
28497 cat confdefs.h - <<_ACEOF >conftest.c
28498 /* confdefs.h. */
28499 _ACEOF
28500 cat confdefs.h >>conftest.$ac_ext
28501 cat >>conftest.$ac_ext <<_ACEOF
28502 /* end confdefs.h. */
28503
28504
28505 #include <linux/backing-dev.h>
28506 #include <linux/refcount.h>
28507 #include <linux/posix_acl.h>
28508
28509 int
28510 main (void)
28511 {
28512
28513 struct posix_acl acl;
28514 refcount_t *r __attribute__ ((unused)) = &acl.a_refcount;
28515
28516 ;
28517 return 0;
28518 }
28519
28520 _ACEOF
28521
28522
28523
28524 cat - <<_ACEOF >conftest.h
28525
28526 _ACEOF
28527
28528
28529 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
28530 echo "obj-m := conftest.o" >build/Makefile
28531 modpost_flag=''
28532 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
28533 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
28534 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28535 (eval $ac_try) 2>&5
28536 ac_status=$?
28537 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28538 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
28539 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28540 (eval $ac_try) 2>&5
28541 ac_status=$?
28542 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28543 (exit $ac_status); }; }; then
28544
28545 { $as_echo "$as_me:$LINENO: result: yes" >&5
28546 $as_echo "yes" >&6; }
28547
28548 cat >>confdefs.h <<\_ACEOF
28549 #define HAVE_ACL_REFCOUNT 1
28550 _ACEOF
28551
28552
28553 else
28554 $as_echo "$as_me: failed program was:" >&5
28555 sed 's/^/| /' conftest.$ac_ext >&5
28556
28557 { $as_echo "$as_me:$LINENO: result: no" >&5
28558 $as_echo "no" >&6; }
28559
28560
28561
28562 fi
28563
28564 rm -Rf build
28565
28566
28567
28568
28569
28570 { $as_echo "$as_me:$LINENO: checking whether ns_capable exists" >&5
28571 $as_echo_n "checking whether ns_capable exists... " >&6; }
28572
28573
28574 cat confdefs.h - <<_ACEOF >conftest.c
28575 /* confdefs.h. */
28576 _ACEOF
28577 cat confdefs.h >>conftest.$ac_ext
28578 cat >>conftest.$ac_ext <<_ACEOF
28579 /* end confdefs.h. */
28580
28581
28582 #include <linux/capability.h>
28583
28584 int
28585 main (void)
28586 {
28587
28588 ns_capable((struct user_namespace *)NULL, CAP_SYS_ADMIN);
28589
28590 ;
28591 return 0;
28592 }
28593
28594 _ACEOF
28595
28596
28597
28598 cat - <<_ACEOF >conftest.h
28599
28600 _ACEOF
28601
28602
28603 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
28604 echo "obj-m := conftest.o" >build/Makefile
28605 modpost_flag=''
28606 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
28607 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
28608 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28609 (eval $ac_try) 2>&5
28610 ac_status=$?
28611 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28612 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
28613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28614 (eval $ac_try) 2>&5
28615 ac_status=$?
28616 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28617 (exit $ac_status); }; }; then
28618
28619 { $as_echo "$as_me:$LINENO: result: yes" >&5
28620 $as_echo "yes" >&6; }
28621
28622 cat >>confdefs.h <<\_ACEOF
28623 #define HAVE_NS_CAPABLE 1
28624 _ACEOF
28625
28626
28627 else
28628 $as_echo "$as_me: failed program was:" >&5
28629 sed 's/^/| /' conftest.$ac_ext >&5
28630
28631 { $as_echo "$as_me:$LINENO: result: no" >&5
28632 $as_echo "no" >&6; }
28633
28634
28635
28636 fi
28637
28638 rm -Rf build
28639
28640
28641
28642
28643 { $as_echo "$as_me:$LINENO: checking whether cred_t->user_ns exists" >&5
28644 $as_echo_n "checking whether cred_t->user_ns exists... " >&6; }
28645
28646
28647 cat confdefs.h - <<_ACEOF >conftest.c
28648 /* confdefs.h. */
28649 _ACEOF
28650 cat confdefs.h >>conftest.$ac_ext
28651 cat >>conftest.$ac_ext <<_ACEOF
28652 /* end confdefs.h. */
28653
28654
28655 #include <linux/cred.h>
28656
28657 int
28658 main (void)
28659 {
28660
28661 struct cred cr;
28662 cr.user_ns = (struct user_namespace *)NULL;
28663
28664 ;
28665 return 0;
28666 }
28667
28668 _ACEOF
28669
28670
28671
28672 cat - <<_ACEOF >conftest.h
28673
28674 _ACEOF
28675
28676
28677 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
28678 echo "obj-m := conftest.o" >build/Makefile
28679 modpost_flag=''
28680 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
28681 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
28682 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28683 (eval $ac_try) 2>&5
28684 ac_status=$?
28685 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28686 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
28687 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28688 (eval $ac_try) 2>&5
28689 ac_status=$?
28690 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28691 (exit $ac_status); }; }; then
28692
28693 { $as_echo "$as_me:$LINENO: result: yes" >&5
28694 $as_echo "yes" >&6; }
28695
28696 cat >>confdefs.h <<\_ACEOF
28697 #define HAVE_CRED_USER_NS 1
28698 _ACEOF
28699
28700
28701 else
28702 $as_echo "$as_me: failed program was:" >&5
28703 sed 's/^/| /' conftest.$ac_ext >&5
28704
28705 { $as_echo "$as_me:$LINENO: result: no" >&5
28706 $as_echo "no" >&6; }
28707
28708
28709
28710 fi
28711
28712 rm -Rf build
28713
28714
28715
28716
28717 { $as_echo "$as_me:$LINENO: checking whether kuid_has_mapping/kgid_has_mapping exist" >&5
28718 $as_echo_n "checking whether kuid_has_mapping/kgid_has_mapping exist... " >&6; }
28719
28720
28721 cat confdefs.h - <<_ACEOF >conftest.c
28722 /* confdefs.h. */
28723 _ACEOF
28724 cat confdefs.h >>conftest.$ac_ext
28725 cat >>conftest.$ac_ext <<_ACEOF
28726 /* end confdefs.h. */
28727
28728
28729 #include <linux/uidgid.h>
28730
28731 int
28732 main (void)
28733 {
28734
28735 kuid_has_mapping((struct user_namespace *)NULL, KUIDT_INIT(0));
28736 kgid_has_mapping((struct user_namespace *)NULL, KGIDT_INIT(0));
28737
28738 ;
28739 return 0;
28740 }
28741
28742 _ACEOF
28743
28744
28745
28746 cat - <<_ACEOF >conftest.h
28747
28748 _ACEOF
28749
28750
28751 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
28752 echo "obj-m := conftest.o" >build/Makefile
28753 modpost_flag=''
28754 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
28755 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
28756 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28757 (eval $ac_try) 2>&5
28758 ac_status=$?
28759 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28760 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
28761 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28762 (eval $ac_try) 2>&5
28763 ac_status=$?
28764 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28765 (exit $ac_status); }; }; then
28766
28767 { $as_echo "$as_me:$LINENO: result: yes" >&5
28768 $as_echo "yes" >&6; }
28769
28770 cat >>confdefs.h <<\_ACEOF
28771 #define HAVE_KUID_HAS_MAPPING 1
28772 _ACEOF
28773
28774
28775 else
28776 $as_echo "$as_me: failed program was:" >&5
28777 sed 's/^/| /' conftest.$ac_ext >&5
28778
28779 { $as_echo "$as_me:$LINENO: result: no" >&5
28780 $as_echo "no" >&6; }
28781
28782
28783
28784 fi
28785
28786 rm -Rf build
28787
28788
28789
28790
28791
28792 if test "$LINUX_OBJ" != "$LINUX"; then
28793
28794 KERNELMAKE_PARAMS="$KERNELMAKE_PARAMS O=$LINUX_OBJ"
28795
28796 fi
28797
28798
28799
28800
28801 KERNELCPPFLAGS="$KERNELCPPFLAGS -std=gnu99"
28802 KERNELCPPFLAGS="$KERNELCPPFLAGS -Wno-declaration-after-statement"
28803 KERNELCPPFLAGS="$KERNELCPPFLAGS $NO_UNUSED_BUT_SET_VARIABLE"
28804 KERNELCPPFLAGS="$KERNELCPPFLAGS $NO_BOOL_COMPARE"
28805 KERNELCPPFLAGS="$KERNELCPPFLAGS -DHAVE_SPL -D_KERNEL"
28806 KERNELCPPFLAGS="$KERNELCPPFLAGS -DTEXT_DOMAIN=\\\"zfs-linux-kernel\\\""
28807
28808
28809 ;;
28810 user)
28811
28812
28813 # Check whether --with-mounthelperdir was given.
28814 if test "${with_mounthelperdir+set}" = set; then
28815 withval=$with_mounthelperdir; mounthelperdir=$withval
28816 else
28817 mounthelperdir=/sbin
28818 fi
28819
28820
28821
28822
28823
28824 { $as_echo "$as_me:$LINENO: checking for udev directories" >&5
28825 $as_echo_n "checking for udev directories... " >&6; }
28826
28827 # Check whether --with-udevdir was given.
28828 if test "${with_udevdir+set}" = set; then
28829 withval=$with_udevdir; udevdir=$withval
28830 else
28831 udevdir=check
28832 fi
28833
28834
28835 if test "x$udevdir" = xcheck; then
28836
28837 path1=/lib/udev
28838 path2=/usr/lib/udev
28839 default=$path2
28840
28841 if test -d "$path1"; then
28842 udevdir="$path1"
28843 else
28844
28845 if test -d "$path2"; then
28846 udevdir="$path2"
28847 else
28848 udevdir="$default"
28849 fi
28850
28851
28852 fi
28853
28854
28855 fi
28856
28857
28858
28859 # Check whether --with-udevruledir was given.
28860 if test "${with_udevruledir+set}" = set; then
28861 withval=$with_udevruledir; udevruledir=$withval
28862 else
28863 udevruledir="${udevdir}/rules.d"
28864 fi
28865
28866
28867
28868
28869 { $as_echo "$as_me:$LINENO: result: $udevdir;$udevruledir" >&5
28870 $as_echo "$udevdir;$udevruledir" >&6; }
28871
28872
28873 # Check whether --enable-systemd was given.
28874 if test "${enable_systemd+set}" = set; then
28875 enableval=$enable_systemd; enable_systemd=$enableval
28876 else
28877 enable_systemd=check
28878 fi
28879
28880
28881
28882 # Check whether --with-systemdunitdir was given.
28883 if test "${with_systemdunitdir+set}" = set; then
28884 withval=$with_systemdunitdir; systemdunitdir=$withval
28885 else
28886 systemdunitdir=/usr/lib/systemd/system
28887 fi
28888
28889
28890
28891 # Check whether --with-systemdpresetdir was given.
28892 if test "${with_systemdpresetdir+set}" = set; then
28893 withval=$with_systemdpresetdir; systemdpresetdir=$withval
28894 else
28895 systemdpresetdir=/usr/lib/systemd/system-preset
28896 fi
28897
28898
28899
28900 # Check whether --with-systemdmodulesloaddir was given.
28901 if test "${with_systemdmodulesloaddir+set}" = set; then
28902 withval=$with_systemdmodulesloaddir; systemdmoduleloaddir=$withval
28903 else
28904 systemdmodulesloaddir=/usr/lib/modules-load.d
28905 fi
28906
28907
28908 if test "x$enable_systemd" = xcheck; then
28909
28910 if systemctl --version >/dev/null 2>&1; then
28911 enable_systemd=yes
28912 else
28913 enable_systemd=no
28914 fi
28915
28916
28917 fi
28918
28919
28920 { $as_echo "$as_me:$LINENO: checking for systemd support" >&5
28921 $as_echo_n "checking for systemd support... " >&6; }
28922 { $as_echo "$as_me:$LINENO: result: $enable_systemd" >&5
28923 $as_echo "$enable_systemd" >&6; }
28924
28925 if test "x$enable_systemd" = xyes; then
28926
28927 ZFS_INIT_SYSTEMD=systemd
28928 ZFS_MODULE_LOAD=modules-load.d
28929 DEFINE_SYSTEMD='--with systemd --define "_unitdir $(systemdunitdir)" --define "_presetdir $(systemdpresetdir)"'
28930 modulesloaddir=$systemdmodulesloaddir
28931
28932 else
28933
28934 DEFINE_SYSTEMD='--without systemd'
28935
28936 fi
28937
28938
28939
28940
28941
28942
28943
28944
28945
28946
28947 # Check whether --enable-sysvinit was given.
28948 if test "${enable_sysvinit+set}" = set; then
28949 enableval=$enable_sysvinit;
28950 else
28951 enable_sysvinit=yes
28952 fi
28953
28954
28955 if test "x$enable_sysvinit" = xyes; then
28956 ZFS_INIT_SYSV=init.d
28957 fi
28958
28959
28960
28961
28962
28963 { $as_echo "$as_me:$LINENO: checking for dracut directory" >&5
28964 $as_echo_n "checking for dracut directory... " >&6; }
28965
28966 # Check whether --with-dracutdir was given.
28967 if test "${with_dracutdir+set}" = set; then
28968 withval=$with_dracutdir; dracutdir=$withval
28969 else
28970 dracutdir=check
28971 fi
28972
28973
28974 if test "x$dracutdir" = xcheck; then
28975
28976 path1=/usr/share/dracut
28977 path2=/usr/lib/dracut
28978 default=$path2
28979
28980 if test -d "$path1"; then
28981 dracutdir="$path1"
28982 else
28983
28984 if test -d "$path2"; then
28985 dracutdir="$path2"
28986 else
28987 dracutdir="$default"
28988 fi
28989
28990
28991 fi
28992
28993
28994 fi
28995
28996
28997
28998 { $as_echo "$as_me:$LINENO: result: $dracutdir" >&5
28999 $as_echo "$dracutdir" >&6; }
29000
29001
29002 ZLIB=
29003
29004 if test "${ac_cv_header_zlib_h+set}" = set; then
29005 { $as_echo "$as_me:$LINENO: checking for zlib.h" >&5
29006 $as_echo_n "checking for zlib.h... " >&6; }
29007 if test "${ac_cv_header_zlib_h+set}" = set; then
29008 $as_echo_n "(cached) " >&6
29009 fi
29010 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
29011 $as_echo "$ac_cv_header_zlib_h" >&6; }
29012 else
29013 # Is the header compilable?
29014 { $as_echo "$as_me:$LINENO: checking zlib.h usability" >&5
29015 $as_echo_n "checking zlib.h usability... " >&6; }
29016 cat >conftest.$ac_ext <<_ACEOF
29017 /* confdefs.h. */
29018 _ACEOF
29019 cat confdefs.h >>conftest.$ac_ext
29020 cat >>conftest.$ac_ext <<_ACEOF
29021 /* end confdefs.h. */
29022 $ac_includes_default
29023 #include <zlib.h>
29024 _ACEOF
29025 rm -f conftest.$ac_objext
29026 if { (ac_try="$ac_compile"
29027 case "(($ac_try" in
29028 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29029 *) ac_try_echo=$ac_try;;
29030 esac
29031 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29032 $as_echo "$ac_try_echo") >&5
29033 (eval "$ac_compile") 2>conftest.er1
29034 ac_status=$?
29035 grep -v '^ *+' conftest.er1 >conftest.err
29036 rm -f conftest.er1
29037 cat conftest.err >&5
29038 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29039 (exit $ac_status); } && {
29040 test -z "$ac_c_werror_flag" ||
29041 test ! -s conftest.err
29042 } && test -s conftest.$ac_objext; then
29043 ac_header_compiler=yes
29044 else
29045 $as_echo "$as_me: failed program was:" >&5
29046 sed 's/^/| /' conftest.$ac_ext >&5
29047
29048 ac_header_compiler=no
29049 fi
29050
29051 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29052 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29053 $as_echo "$ac_header_compiler" >&6; }
29054
29055 # Is the header present?
29056 { $as_echo "$as_me:$LINENO: checking zlib.h presence" >&5
29057 $as_echo_n "checking zlib.h presence... " >&6; }
29058 cat >conftest.$ac_ext <<_ACEOF
29059 /* confdefs.h. */
29060 _ACEOF
29061 cat confdefs.h >>conftest.$ac_ext
29062 cat >>conftest.$ac_ext <<_ACEOF
29063 /* end confdefs.h. */
29064 #include <zlib.h>
29065 _ACEOF
29066 if { (ac_try="$ac_cpp conftest.$ac_ext"
29067 case "(($ac_try" in
29068 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29069 *) ac_try_echo=$ac_try;;
29070 esac
29071 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29072 $as_echo "$ac_try_echo") >&5
29073 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29074 ac_status=$?
29075 grep -v '^ *+' conftest.er1 >conftest.err
29076 rm -f conftest.er1
29077 cat conftest.err >&5
29078 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29079 (exit $ac_status); } >/dev/null && {
29080 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
29081 test ! -s conftest.err
29082 }; then
29083 ac_header_preproc=yes
29084 else
29085 $as_echo "$as_me: failed program was:" >&5
29086 sed 's/^/| /' conftest.$ac_ext >&5
29087
29088 ac_header_preproc=no
29089 fi
29090
29091 rm -f conftest.err conftest.$ac_ext
29092 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29093 $as_echo "$ac_header_preproc" >&6; }
29094
29095 # So? What about this header?
29096 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29097 yes:no: )
29098 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
29099 $as_echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
29100 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result" >&5
29101 $as_echo "$as_me: WARNING: zlib.h: proceeding with the compiler's result" >&2;}
29102 ac_header_preproc=yes
29103 ;;
29104 no:yes:* )
29105 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
29106 $as_echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
29107 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5
29108 $as_echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;}
29109 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5
29110 $as_echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;}
29111 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&5
29112 $as_echo "$as_me: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
29113 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
29114 $as_echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;}
29115 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5
29116 $as_echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;}
29117
29118 ;;
29119 esac
29120 { $as_echo "$as_me:$LINENO: checking for zlib.h" >&5
29121 $as_echo_n "checking for zlib.h... " >&6; }
29122 if test "${ac_cv_header_zlib_h+set}" = set; then
29123 $as_echo_n "(cached) " >&6
29124 else
29125 ac_cv_header_zlib_h=$ac_header_preproc
29126 fi
29127 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
29128 $as_echo "$ac_cv_header_zlib_h" >&6; }
29129
29130 fi
29131 if test "x$ac_cv_header_zlib_h" = x""yes; then
29132 :
29133 else
29134 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
29135 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
29136 { { $as_echo "$as_me:$LINENO: error:
29137 *** zlib.h missing, zlib-devel package required
29138 See \`config.log' for more details." >&5
29139 $as_echo "$as_me: error:
29140 *** zlib.h missing, zlib-devel package required
29141 See \`config.log' for more details." >&2;}
29142 { (exit 1); exit 1; }; }; }
29143 fi
29144
29145
29146
29147 { $as_echo "$as_me:$LINENO: checking for library containing compress2" >&5
29148 $as_echo_n "checking for library containing compress2... " >&6; }
29149 if test "${ac_cv_search_compress2+set}" = set; then
29150 $as_echo_n "(cached) " >&6
29151 else
29152 ac_func_search_save_LIBS=$LIBS
29153 cat >conftest.$ac_ext <<_ACEOF
29154 /* confdefs.h. */
29155 _ACEOF
29156 cat confdefs.h >>conftest.$ac_ext
29157 cat >>conftest.$ac_ext <<_ACEOF
29158 /* end confdefs.h. */
29159
29160 /* Override any GCC internal prototype to avoid an error.
29161 Use char because int might match the return type of a GCC
29162 builtin and then its argument prototype would still apply. */
29163 #ifdef __cplusplus
29164 extern "C"
29165 #endif
29166 char compress2 ();
29167 int
29168 main ()
29169 {
29170 return compress2 ();
29171 ;
29172 return 0;
29173 }
29174 _ACEOF
29175 for ac_lib in '' z; do
29176 if test -z "$ac_lib"; then
29177 ac_res="none required"
29178 else
29179 ac_res=-l$ac_lib
29180 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
29181 fi
29182 rm -f conftest.$ac_objext conftest$ac_exeext
29183 if { (ac_try="$ac_link"
29184 case "(($ac_try" in
29185 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29186 *) ac_try_echo=$ac_try;;
29187 esac
29188 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29189 $as_echo "$ac_try_echo") >&5
29190 (eval "$ac_link") 2>conftest.er1
29191 ac_status=$?
29192 grep -v '^ *+' conftest.er1 >conftest.err
29193 rm -f conftest.er1
29194 cat conftest.err >&5
29195 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29196 (exit $ac_status); } && {
29197 test -z "$ac_c_werror_flag" ||
29198 test ! -s conftest.err
29199 } && test -s conftest$ac_exeext && {
29200 test "$cross_compiling" = yes ||
29201 $as_test_x conftest$ac_exeext
29202 }; then
29203 ac_cv_search_compress2=$ac_res
29204 else
29205 $as_echo "$as_me: failed program was:" >&5
29206 sed 's/^/| /' conftest.$ac_ext >&5
29207
29208
29209 fi
29210
29211 rm -rf conftest.dSYM
29212 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29213 conftest$ac_exeext
29214 if test "${ac_cv_search_compress2+set}" = set; then
29215 break
29216 fi
29217 done
29218 if test "${ac_cv_search_compress2+set}" = set; then
29219 :
29220 else
29221 ac_cv_search_compress2=no
29222 fi
29223 rm conftest.$ac_ext
29224 LIBS=$ac_func_search_save_LIBS
29225 fi
29226 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_compress2" >&5
29227 $as_echo "$ac_cv_search_compress2" >&6; }
29228 ac_res=$ac_cv_search_compress2
29229 if test "$ac_res" != no; then
29230 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
29231
29232 else
29233 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
29234 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
29235 { { $as_echo "$as_me:$LINENO: error:
29236 *** compress2() missing, zlib-devel package required
29237 See \`config.log' for more details." >&5
29238 $as_echo "$as_me: error:
29239 *** compress2() missing, zlib-devel package required
29240 See \`config.log' for more details." >&2;}
29241 { (exit 1); exit 1; }; }; }
29242 fi
29243
29244
29245 { $as_echo "$as_me:$LINENO: checking for library containing uncompress" >&5
29246 $as_echo_n "checking for library containing uncompress... " >&6; }
29247 if test "${ac_cv_search_uncompress+set}" = set; then
29248 $as_echo_n "(cached) " >&6
29249 else
29250 ac_func_search_save_LIBS=$LIBS
29251 cat >conftest.$ac_ext <<_ACEOF
29252 /* confdefs.h. */
29253 _ACEOF
29254 cat confdefs.h >>conftest.$ac_ext
29255 cat >>conftest.$ac_ext <<_ACEOF
29256 /* end confdefs.h. */
29257
29258 /* Override any GCC internal prototype to avoid an error.
29259 Use char because int might match the return type of a GCC
29260 builtin and then its argument prototype would still apply. */
29261 #ifdef __cplusplus
29262 extern "C"
29263 #endif
29264 char uncompress ();
29265 int
29266 main ()
29267 {
29268 return uncompress ();
29269 ;
29270 return 0;
29271 }
29272 _ACEOF
29273 for ac_lib in '' z; do
29274 if test -z "$ac_lib"; then
29275 ac_res="none required"
29276 else
29277 ac_res=-l$ac_lib
29278 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
29279 fi
29280 rm -f conftest.$ac_objext conftest$ac_exeext
29281 if { (ac_try="$ac_link"
29282 case "(($ac_try" in
29283 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29284 *) ac_try_echo=$ac_try;;
29285 esac
29286 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29287 $as_echo "$ac_try_echo") >&5
29288 (eval "$ac_link") 2>conftest.er1
29289 ac_status=$?
29290 grep -v '^ *+' conftest.er1 >conftest.err
29291 rm -f conftest.er1
29292 cat conftest.err >&5
29293 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29294 (exit $ac_status); } && {
29295 test -z "$ac_c_werror_flag" ||
29296 test ! -s conftest.err
29297 } && test -s conftest$ac_exeext && {
29298 test "$cross_compiling" = yes ||
29299 $as_test_x conftest$ac_exeext
29300 }; then
29301 ac_cv_search_uncompress=$ac_res
29302 else
29303 $as_echo "$as_me: failed program was:" >&5
29304 sed 's/^/| /' conftest.$ac_ext >&5
29305
29306
29307 fi
29308
29309 rm -rf conftest.dSYM
29310 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29311 conftest$ac_exeext
29312 if test "${ac_cv_search_uncompress+set}" = set; then
29313 break
29314 fi
29315 done
29316 if test "${ac_cv_search_uncompress+set}" = set; then
29317 :
29318 else
29319 ac_cv_search_uncompress=no
29320 fi
29321 rm conftest.$ac_ext
29322 LIBS=$ac_func_search_save_LIBS
29323 fi
29324 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_uncompress" >&5
29325 $as_echo "$ac_cv_search_uncompress" >&6; }
29326 ac_res=$ac_cv_search_uncompress
29327 if test "$ac_res" != no; then
29328 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
29329
29330 else
29331 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
29332 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
29333 { { $as_echo "$as_me:$LINENO: error:
29334 *** uncompress() missing, zlib-devel package required
29335 See \`config.log' for more details." >&5
29336 $as_echo "$as_me: error:
29337 *** uncompress() missing, zlib-devel package required
29338 See \`config.log' for more details." >&2;}
29339 { (exit 1); exit 1; }; }; }
29340 fi
29341
29342
29343 { $as_echo "$as_me:$LINENO: checking for library containing crc32" >&5
29344 $as_echo_n "checking for library containing crc32... " >&6; }
29345 if test "${ac_cv_search_crc32+set}" = set; then
29346 $as_echo_n "(cached) " >&6
29347 else
29348 ac_func_search_save_LIBS=$LIBS
29349 cat >conftest.$ac_ext <<_ACEOF
29350 /* confdefs.h. */
29351 _ACEOF
29352 cat confdefs.h >>conftest.$ac_ext
29353 cat >>conftest.$ac_ext <<_ACEOF
29354 /* end confdefs.h. */
29355
29356 /* Override any GCC internal prototype to avoid an error.
29357 Use char because int might match the return type of a GCC
29358 builtin and then its argument prototype would still apply. */
29359 #ifdef __cplusplus
29360 extern "C"
29361 #endif
29362 char crc32 ();
29363 int
29364 main ()
29365 {
29366 return crc32 ();
29367 ;
29368 return 0;
29369 }
29370 _ACEOF
29371 for ac_lib in '' z; do
29372 if test -z "$ac_lib"; then
29373 ac_res="none required"
29374 else
29375 ac_res=-l$ac_lib
29376 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
29377 fi
29378 rm -f conftest.$ac_objext conftest$ac_exeext
29379 if { (ac_try="$ac_link"
29380 case "(($ac_try" in
29381 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29382 *) ac_try_echo=$ac_try;;
29383 esac
29384 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29385 $as_echo "$ac_try_echo") >&5
29386 (eval "$ac_link") 2>conftest.er1
29387 ac_status=$?
29388 grep -v '^ *+' conftest.er1 >conftest.err
29389 rm -f conftest.er1
29390 cat conftest.err >&5
29391 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29392 (exit $ac_status); } && {
29393 test -z "$ac_c_werror_flag" ||
29394 test ! -s conftest.err
29395 } && test -s conftest$ac_exeext && {
29396 test "$cross_compiling" = yes ||
29397 $as_test_x conftest$ac_exeext
29398 }; then
29399 ac_cv_search_crc32=$ac_res
29400 else
29401 $as_echo "$as_me: failed program was:" >&5
29402 sed 's/^/| /' conftest.$ac_ext >&5
29403
29404
29405 fi
29406
29407 rm -rf conftest.dSYM
29408 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29409 conftest$ac_exeext
29410 if test "${ac_cv_search_crc32+set}" = set; then
29411 break
29412 fi
29413 done
29414 if test "${ac_cv_search_crc32+set}" = set; then
29415 :
29416 else
29417 ac_cv_search_crc32=no
29418 fi
29419 rm conftest.$ac_ext
29420 LIBS=$ac_func_search_save_LIBS
29421 fi
29422 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_crc32" >&5
29423 $as_echo "$ac_cv_search_crc32" >&6; }
29424 ac_res=$ac_cv_search_crc32
29425 if test "$ac_res" != no; then
29426 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
29427
29428 else
29429 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
29430 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
29431 { { $as_echo "$as_me:$LINENO: error:
29432 *** crc32() missing, zlib-devel package required
29433 See \`config.log' for more details." >&5
29434 $as_echo "$as_me: error:
29435 *** crc32() missing, zlib-devel package required
29436 See \`config.log' for more details." >&2;}
29437 { (exit 1); exit 1; }; }; }
29438 fi
29439
29440
29441 ZLIB="-lz"
29442
29443
29444 cat >>confdefs.h <<\_ACEOF
29445 #define HAVE_ZLIB 1
29446 _ACEOF
29447
29448
29449
29450 LIBUUID=
29451
29452 if test "${ac_cv_header_uuid_uuid_h+set}" = set; then
29453 { $as_echo "$as_me:$LINENO: checking for uuid/uuid.h" >&5
29454 $as_echo_n "checking for uuid/uuid.h... " >&6; }
29455 if test "${ac_cv_header_uuid_uuid_h+set}" = set; then
29456 $as_echo_n "(cached) " >&6
29457 fi
29458 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_uuid_uuid_h" >&5
29459 $as_echo "$ac_cv_header_uuid_uuid_h" >&6; }
29460 else
29461 # Is the header compilable?
29462 { $as_echo "$as_me:$LINENO: checking uuid/uuid.h usability" >&5
29463 $as_echo_n "checking uuid/uuid.h usability... " >&6; }
29464 cat >conftest.$ac_ext <<_ACEOF
29465 /* confdefs.h. */
29466 _ACEOF
29467 cat confdefs.h >>conftest.$ac_ext
29468 cat >>conftest.$ac_ext <<_ACEOF
29469 /* end confdefs.h. */
29470 $ac_includes_default
29471 #include <uuid/uuid.h>
29472 _ACEOF
29473 rm -f conftest.$ac_objext
29474 if { (ac_try="$ac_compile"
29475 case "(($ac_try" in
29476 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29477 *) ac_try_echo=$ac_try;;
29478 esac
29479 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29480 $as_echo "$ac_try_echo") >&5
29481 (eval "$ac_compile") 2>conftest.er1
29482 ac_status=$?
29483 grep -v '^ *+' conftest.er1 >conftest.err
29484 rm -f conftest.er1
29485 cat conftest.err >&5
29486 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29487 (exit $ac_status); } && {
29488 test -z "$ac_c_werror_flag" ||
29489 test ! -s conftest.err
29490 } && test -s conftest.$ac_objext; then
29491 ac_header_compiler=yes
29492 else
29493 $as_echo "$as_me: failed program was:" >&5
29494 sed 's/^/| /' conftest.$ac_ext >&5
29495
29496 ac_header_compiler=no
29497 fi
29498
29499 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29500 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29501 $as_echo "$ac_header_compiler" >&6; }
29502
29503 # Is the header present?
29504 { $as_echo "$as_me:$LINENO: checking uuid/uuid.h presence" >&5
29505 $as_echo_n "checking uuid/uuid.h presence... " >&6; }
29506 cat >conftest.$ac_ext <<_ACEOF
29507 /* confdefs.h. */
29508 _ACEOF
29509 cat confdefs.h >>conftest.$ac_ext
29510 cat >>conftest.$ac_ext <<_ACEOF
29511 /* end confdefs.h. */
29512 #include <uuid/uuid.h>
29513 _ACEOF
29514 if { (ac_try="$ac_cpp conftest.$ac_ext"
29515 case "(($ac_try" in
29516 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29517 *) ac_try_echo=$ac_try;;
29518 esac
29519 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29520 $as_echo "$ac_try_echo") >&5
29521 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29522 ac_status=$?
29523 grep -v '^ *+' conftest.er1 >conftest.err
29524 rm -f conftest.er1
29525 cat conftest.err >&5
29526 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29527 (exit $ac_status); } >/dev/null && {
29528 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
29529 test ! -s conftest.err
29530 }; then
29531 ac_header_preproc=yes
29532 else
29533 $as_echo "$as_me: failed program was:" >&5
29534 sed 's/^/| /' conftest.$ac_ext >&5
29535
29536 ac_header_preproc=no
29537 fi
29538
29539 rm -f conftest.err conftest.$ac_ext
29540 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29541 $as_echo "$ac_header_preproc" >&6; }
29542
29543 # So? What about this header?
29544 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29545 yes:no: )
29546 { $as_echo "$as_me:$LINENO: WARNING: uuid/uuid.h: accepted by the compiler, rejected by the preprocessor!" >&5
29547 $as_echo "$as_me: WARNING: uuid/uuid.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
29548 { $as_echo "$as_me:$LINENO: WARNING: uuid/uuid.h: proceeding with the compiler's result" >&5
29549 $as_echo "$as_me: WARNING: uuid/uuid.h: proceeding with the compiler's result" >&2;}
29550 ac_header_preproc=yes
29551 ;;
29552 no:yes:* )
29553 { $as_echo "$as_me:$LINENO: WARNING: uuid/uuid.h: present but cannot be compiled" >&5
29554 $as_echo "$as_me: WARNING: uuid/uuid.h: present but cannot be compiled" >&2;}
29555 { $as_echo "$as_me:$LINENO: WARNING: uuid/uuid.h: check for missing prerequisite headers?" >&5
29556 $as_echo "$as_me: WARNING: uuid/uuid.h: check for missing prerequisite headers?" >&2;}
29557 { $as_echo "$as_me:$LINENO: WARNING: uuid/uuid.h: see the Autoconf documentation" >&5
29558 $as_echo "$as_me: WARNING: uuid/uuid.h: see the Autoconf documentation" >&2;}
29559 { $as_echo "$as_me:$LINENO: WARNING: uuid/uuid.h: section \"Present But Cannot Be Compiled\"" >&5
29560 $as_echo "$as_me: WARNING: uuid/uuid.h: section \"Present But Cannot Be Compiled\"" >&2;}
29561 { $as_echo "$as_me:$LINENO: WARNING: uuid/uuid.h: proceeding with the preprocessor's result" >&5
29562 $as_echo "$as_me: WARNING: uuid/uuid.h: proceeding with the preprocessor's result" >&2;}
29563 { $as_echo "$as_me:$LINENO: WARNING: uuid/uuid.h: in the future, the compiler will take precedence" >&5
29564 $as_echo "$as_me: WARNING: uuid/uuid.h: in the future, the compiler will take precedence" >&2;}
29565
29566 ;;
29567 esac
29568 { $as_echo "$as_me:$LINENO: checking for uuid/uuid.h" >&5
29569 $as_echo_n "checking for uuid/uuid.h... " >&6; }
29570 if test "${ac_cv_header_uuid_uuid_h+set}" = set; then
29571 $as_echo_n "(cached) " >&6
29572 else
29573 ac_cv_header_uuid_uuid_h=$ac_header_preproc
29574 fi
29575 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_uuid_uuid_h" >&5
29576 $as_echo "$ac_cv_header_uuid_uuid_h" >&6; }
29577
29578 fi
29579 if test "x$ac_cv_header_uuid_uuid_h" = x""yes; then
29580 :
29581 else
29582 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
29583 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
29584 { { $as_echo "$as_me:$LINENO: error:
29585 *** uuid/uuid.h missing, libuuid-devel package required
29586 See \`config.log' for more details." >&5
29587 $as_echo "$as_me: error:
29588 *** uuid/uuid.h missing, libuuid-devel package required
29589 See \`config.log' for more details." >&2;}
29590 { (exit 1); exit 1; }; }; }
29591 fi
29592
29593
29594
29595 { $as_echo "$as_me:$LINENO: checking for library containing uuid_generate" >&5
29596 $as_echo_n "checking for library containing uuid_generate... " >&6; }
29597 if test "${ac_cv_search_uuid_generate+set}" = set; then
29598 $as_echo_n "(cached) " >&6
29599 else
29600 ac_func_search_save_LIBS=$LIBS
29601 cat >conftest.$ac_ext <<_ACEOF
29602 /* confdefs.h. */
29603 _ACEOF
29604 cat confdefs.h >>conftest.$ac_ext
29605 cat >>conftest.$ac_ext <<_ACEOF
29606 /* end confdefs.h. */
29607
29608 /* Override any GCC internal prototype to avoid an error.
29609 Use char because int might match the return type of a GCC
29610 builtin and then its argument prototype would still apply. */
29611 #ifdef __cplusplus
29612 extern "C"
29613 #endif
29614 char uuid_generate ();
29615 int
29616 main ()
29617 {
29618 return uuid_generate ();
29619 ;
29620 return 0;
29621 }
29622 _ACEOF
29623 for ac_lib in '' uuid; do
29624 if test -z "$ac_lib"; then
29625 ac_res="none required"
29626 else
29627 ac_res=-l$ac_lib
29628 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
29629 fi
29630 rm -f conftest.$ac_objext conftest$ac_exeext
29631 if { (ac_try="$ac_link"
29632 case "(($ac_try" in
29633 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29634 *) ac_try_echo=$ac_try;;
29635 esac
29636 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29637 $as_echo "$ac_try_echo") >&5
29638 (eval "$ac_link") 2>conftest.er1
29639 ac_status=$?
29640 grep -v '^ *+' conftest.er1 >conftest.err
29641 rm -f conftest.er1
29642 cat conftest.err >&5
29643 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29644 (exit $ac_status); } && {
29645 test -z "$ac_c_werror_flag" ||
29646 test ! -s conftest.err
29647 } && test -s conftest$ac_exeext && {
29648 test "$cross_compiling" = yes ||
29649 $as_test_x conftest$ac_exeext
29650 }; then
29651 ac_cv_search_uuid_generate=$ac_res
29652 else
29653 $as_echo "$as_me: failed program was:" >&5
29654 sed 's/^/| /' conftest.$ac_ext >&5
29655
29656
29657 fi
29658
29659 rm -rf conftest.dSYM
29660 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29661 conftest$ac_exeext
29662 if test "${ac_cv_search_uuid_generate+set}" = set; then
29663 break
29664 fi
29665 done
29666 if test "${ac_cv_search_uuid_generate+set}" = set; then
29667 :
29668 else
29669 ac_cv_search_uuid_generate=no
29670 fi
29671 rm conftest.$ac_ext
29672 LIBS=$ac_func_search_save_LIBS
29673 fi
29674 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_uuid_generate" >&5
29675 $as_echo "$ac_cv_search_uuid_generate" >&6; }
29676 ac_res=$ac_cv_search_uuid_generate
29677 if test "$ac_res" != no; then
29678 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
29679
29680 else
29681 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
29682 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
29683 { { $as_echo "$as_me:$LINENO: error:
29684 *** uuid_generate() missing, libuuid-devel package required
29685 See \`config.log' for more details." >&5
29686 $as_echo "$as_me: error:
29687 *** uuid_generate() missing, libuuid-devel package required
29688 See \`config.log' for more details." >&2;}
29689 { (exit 1); exit 1; }; }; }
29690 fi
29691
29692
29693 { $as_echo "$as_me:$LINENO: checking for library containing uuid_is_null" >&5
29694 $as_echo_n "checking for library containing uuid_is_null... " >&6; }
29695 if test "${ac_cv_search_uuid_is_null+set}" = set; then
29696 $as_echo_n "(cached) " >&6
29697 else
29698 ac_func_search_save_LIBS=$LIBS
29699 cat >conftest.$ac_ext <<_ACEOF
29700 /* confdefs.h. */
29701 _ACEOF
29702 cat confdefs.h >>conftest.$ac_ext
29703 cat >>conftest.$ac_ext <<_ACEOF
29704 /* end confdefs.h. */
29705
29706 /* Override any GCC internal prototype to avoid an error.
29707 Use char because int might match the return type of a GCC
29708 builtin and then its argument prototype would still apply. */
29709 #ifdef __cplusplus
29710 extern "C"
29711 #endif
29712 char uuid_is_null ();
29713 int
29714 main ()
29715 {
29716 return uuid_is_null ();
29717 ;
29718 return 0;
29719 }
29720 _ACEOF
29721 for ac_lib in '' uuid; do
29722 if test -z "$ac_lib"; then
29723 ac_res="none required"
29724 else
29725 ac_res=-l$ac_lib
29726 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
29727 fi
29728 rm -f conftest.$ac_objext conftest$ac_exeext
29729 if { (ac_try="$ac_link"
29730 case "(($ac_try" in
29731 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29732 *) ac_try_echo=$ac_try;;
29733 esac
29734 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29735 $as_echo "$ac_try_echo") >&5
29736 (eval "$ac_link") 2>conftest.er1
29737 ac_status=$?
29738 grep -v '^ *+' conftest.er1 >conftest.err
29739 rm -f conftest.er1
29740 cat conftest.err >&5
29741 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29742 (exit $ac_status); } && {
29743 test -z "$ac_c_werror_flag" ||
29744 test ! -s conftest.err
29745 } && test -s conftest$ac_exeext && {
29746 test "$cross_compiling" = yes ||
29747 $as_test_x conftest$ac_exeext
29748 }; then
29749 ac_cv_search_uuid_is_null=$ac_res
29750 else
29751 $as_echo "$as_me: failed program was:" >&5
29752 sed 's/^/| /' conftest.$ac_ext >&5
29753
29754
29755 fi
29756
29757 rm -rf conftest.dSYM
29758 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29759 conftest$ac_exeext
29760 if test "${ac_cv_search_uuid_is_null+set}" = set; then
29761 break
29762 fi
29763 done
29764 if test "${ac_cv_search_uuid_is_null+set}" = set; then
29765 :
29766 else
29767 ac_cv_search_uuid_is_null=no
29768 fi
29769 rm conftest.$ac_ext
29770 LIBS=$ac_func_search_save_LIBS
29771 fi
29772 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_uuid_is_null" >&5
29773 $as_echo "$ac_cv_search_uuid_is_null" >&6; }
29774 ac_res=$ac_cv_search_uuid_is_null
29775 if test "$ac_res" != no; then
29776 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
29777
29778 else
29779 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
29780 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
29781 { { $as_echo "$as_me:$LINENO: error:
29782 *** uuid_is_null() missing, libuuid-devel package required
29783 See \`config.log' for more details." >&5
29784 $as_echo "$as_me: error:
29785 *** uuid_is_null() missing, libuuid-devel package required
29786 See \`config.log' for more details." >&2;}
29787 { (exit 1); exit 1; }; }; }
29788 fi
29789
29790
29791 LIBUUID="-luuid"
29792
29793
29794 cat >>confdefs.h <<\_ACEOF
29795 #define HAVE_LIBUUID 1
29796 _ACEOF
29797
29798
29799
29800
29801 # Check whether --with-tirpc was given.
29802 if test "${with_tirpc+set}" = set; then
29803 withval=$with_tirpc;
29804 else
29805 with_tirpc=check
29806 fi
29807
29808
29809 LIBTIRPC=
29810 LIBTIRPC_CFLAGS=
29811
29812 if test "x$with_tirpc" != xno; then
29813 { $as_echo "$as_me:$LINENO: checking for xdrmem_create in -ltirpc" >&5
29814 $as_echo_n "checking for xdrmem_create in -ltirpc... " >&6; }
29815 if test "${ac_cv_lib_tirpc_xdrmem_create+set}" = set; then
29816 $as_echo_n "(cached) " >&6
29817 else
29818 ac_check_lib_save_LIBS=$LIBS
29819 LIBS="-ltirpc $LIBS"
29820 cat >conftest.$ac_ext <<_ACEOF
29821 /* confdefs.h. */
29822 _ACEOF
29823 cat confdefs.h >>conftest.$ac_ext
29824 cat >>conftest.$ac_ext <<_ACEOF
29825 /* end confdefs.h. */
29826
29827 /* Override any GCC internal prototype to avoid an error.
29828 Use char because int might match the return type of a GCC
29829 builtin and then its argument prototype would still apply. */
29830 #ifdef __cplusplus
29831 extern "C"
29832 #endif
29833 char xdrmem_create ();
29834 int
29835 main ()
29836 {
29837 return xdrmem_create ();
29838 ;
29839 return 0;
29840 }
29841 _ACEOF
29842 rm -f conftest.$ac_objext conftest$ac_exeext
29843 if { (ac_try="$ac_link"
29844 case "(($ac_try" in
29845 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29846 *) ac_try_echo=$ac_try;;
29847 esac
29848 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29849 $as_echo "$ac_try_echo") >&5
29850 (eval "$ac_link") 2>conftest.er1
29851 ac_status=$?
29852 grep -v '^ *+' conftest.er1 >conftest.err
29853 rm -f conftest.er1
29854 cat conftest.err >&5
29855 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29856 (exit $ac_status); } && {
29857 test -z "$ac_c_werror_flag" ||
29858 test ! -s conftest.err
29859 } && test -s conftest$ac_exeext && {
29860 test "$cross_compiling" = yes ||
29861 $as_test_x conftest$ac_exeext
29862 }; then
29863 ac_cv_lib_tirpc_xdrmem_create=yes
29864 else
29865 $as_echo "$as_me: failed program was:" >&5
29866 sed 's/^/| /' conftest.$ac_ext >&5
29867
29868 ac_cv_lib_tirpc_xdrmem_create=no
29869 fi
29870
29871 rm -rf conftest.dSYM
29872 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29873 conftest$ac_exeext conftest.$ac_ext
29874 LIBS=$ac_check_lib_save_LIBS
29875 fi
29876 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_tirpc_xdrmem_create" >&5
29877 $as_echo "$ac_cv_lib_tirpc_xdrmem_create" >&6; }
29878 if test "x$ac_cv_lib_tirpc_xdrmem_create" = x""yes; then
29879 LIBTIRPC=-ltirpc
29880
29881 LIBTIRPC_CFLAGS=-I/usr/include/tirpc
29882
29883
29884 cat >>confdefs.h <<\_ACEOF
29885 #define HAVE_LIBTIRPC 1
29886 _ACEOF
29887
29888
29889 else
29890 if test "x$with_tirpc" != xcheck; then
29891 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
29892 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
29893 { { $as_echo "$as_me:$LINENO: error: --with-tirpc was given, but test for tirpc failed
29894 See \`config.log' for more details." >&5
29895 $as_echo "$as_me: error: --with-tirpc was given, but test for tirpc failed
29896 See \`config.log' for more details." >&2;}
29897 { (exit 1); exit 1; }; }; }
29898 fi
29899 { $as_echo "$as_me:$LINENO: checking for library containing xdrmem_create" >&5
29900 $as_echo_n "checking for library containing xdrmem_create... " >&6; }
29901 if test "${ac_cv_search_xdrmem_create+set}" = set; then
29902 $as_echo_n "(cached) " >&6
29903 else
29904 ac_func_search_save_LIBS=$LIBS
29905 cat >conftest.$ac_ext <<_ACEOF
29906 /* confdefs.h. */
29907 _ACEOF
29908 cat confdefs.h >>conftest.$ac_ext
29909 cat >>conftest.$ac_ext <<_ACEOF
29910 /* end confdefs.h. */
29911
29912 /* Override any GCC internal prototype to avoid an error.
29913 Use char because int might match the return type of a GCC
29914 builtin and then its argument prototype would still apply. */
29915 #ifdef __cplusplus
29916 extern "C"
29917 #endif
29918 char xdrmem_create ();
29919 int
29920 main ()
29921 {
29922 return xdrmem_create ();
29923 ;
29924 return 0;
29925 }
29926 _ACEOF
29927 for ac_lib in '' tirpc; do
29928 if test -z "$ac_lib"; then
29929 ac_res="none required"
29930 else
29931 ac_res=-l$ac_lib
29932 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
29933 fi
29934 rm -f conftest.$ac_objext conftest$ac_exeext
29935 if { (ac_try="$ac_link"
29936 case "(($ac_try" in
29937 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29938 *) ac_try_echo=$ac_try;;
29939 esac
29940 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29941 $as_echo "$ac_try_echo") >&5
29942 (eval "$ac_link") 2>conftest.er1
29943 ac_status=$?
29944 grep -v '^ *+' conftest.er1 >conftest.err
29945 rm -f conftest.er1
29946 cat conftest.err >&5
29947 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29948 (exit $ac_status); } && {
29949 test -z "$ac_c_werror_flag" ||
29950 test ! -s conftest.err
29951 } && test -s conftest$ac_exeext && {
29952 test "$cross_compiling" = yes ||
29953 $as_test_x conftest$ac_exeext
29954 }; then
29955 ac_cv_search_xdrmem_create=$ac_res
29956 else
29957 $as_echo "$as_me: failed program was:" >&5
29958 sed 's/^/| /' conftest.$ac_ext >&5
29959
29960
29961 fi
29962
29963 rm -rf conftest.dSYM
29964 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29965 conftest$ac_exeext
29966 if test "${ac_cv_search_xdrmem_create+set}" = set; then
29967 break
29968 fi
29969 done
29970 if test "${ac_cv_search_xdrmem_create+set}" = set; then
29971 :
29972 else
29973 ac_cv_search_xdrmem_create=no
29974 fi
29975 rm conftest.$ac_ext
29976 LIBS=$ac_func_search_save_LIBS
29977 fi
29978 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_xdrmem_create" >&5
29979 $as_echo "$ac_cv_search_xdrmem_create" >&6; }
29980 ac_res=$ac_cv_search_xdrmem_create
29981 if test "$ac_res" != no; then
29982 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
29983
29984 else
29985
29986 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
29987 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
29988 { { $as_echo "$as_me:$LINENO: error: xdrmem_create() requires tirpc or libc
29989 See \`config.log' for more details." >&5
29990 $as_echo "$as_me: error: xdrmem_create() requires tirpc or libc
29991 See \`config.log' for more details." >&2;}
29992 { (exit 1); exit 1; }; }; }
29993 fi
29994
29995
29996 fi
29997
29998 else
29999 { $as_echo "$as_me:$LINENO: checking for library containing xdrmem_create" >&5
30000 $as_echo_n "checking for library containing xdrmem_create... " >&6; }
30001 if test "${ac_cv_search_xdrmem_create+set}" = set; then
30002 $as_echo_n "(cached) " >&6
30003 else
30004 ac_func_search_save_LIBS=$LIBS
30005 cat >conftest.$ac_ext <<_ACEOF
30006 /* confdefs.h. */
30007 _ACEOF
30008 cat confdefs.h >>conftest.$ac_ext
30009 cat >>conftest.$ac_ext <<_ACEOF
30010 /* end confdefs.h. */
30011
30012 /* Override any GCC internal prototype to avoid an error.
30013 Use char because int might match the return type of a GCC
30014 builtin and then its argument prototype would still apply. */
30015 #ifdef __cplusplus
30016 extern "C"
30017 #endif
30018 char xdrmem_create ();
30019 int
30020 main ()
30021 {
30022 return xdrmem_create ();
30023 ;
30024 return 0;
30025 }
30026 _ACEOF
30027 for ac_lib in '' tirpc; do
30028 if test -z "$ac_lib"; then
30029 ac_res="none required"
30030 else
30031 ac_res=-l$ac_lib
30032 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
30033 fi
30034 rm -f conftest.$ac_objext conftest$ac_exeext
30035 if { (ac_try="$ac_link"
30036 case "(($ac_try" in
30037 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30038 *) ac_try_echo=$ac_try;;
30039 esac
30040 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30041 $as_echo "$ac_try_echo") >&5
30042 (eval "$ac_link") 2>conftest.er1
30043 ac_status=$?
30044 grep -v '^ *+' conftest.er1 >conftest.err
30045 rm -f conftest.er1
30046 cat conftest.err >&5
30047 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30048 (exit $ac_status); } && {
30049 test -z "$ac_c_werror_flag" ||
30050 test ! -s conftest.err
30051 } && test -s conftest$ac_exeext && {
30052 test "$cross_compiling" = yes ||
30053 $as_test_x conftest$ac_exeext
30054 }; then
30055 ac_cv_search_xdrmem_create=$ac_res
30056 else
30057 $as_echo "$as_me: failed program was:" >&5
30058 sed 's/^/| /' conftest.$ac_ext >&5
30059
30060
30061 fi
30062
30063 rm -rf conftest.dSYM
30064 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30065 conftest$ac_exeext
30066 if test "${ac_cv_search_xdrmem_create+set}" = set; then
30067 break
30068 fi
30069 done
30070 if test "${ac_cv_search_xdrmem_create+set}" = set; then
30071 :
30072 else
30073 ac_cv_search_xdrmem_create=no
30074 fi
30075 rm conftest.$ac_ext
30076 LIBS=$ac_func_search_save_LIBS
30077 fi
30078 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_xdrmem_create" >&5
30079 $as_echo "$ac_cv_search_xdrmem_create" >&6; }
30080 ac_res=$ac_cv_search_xdrmem_create
30081 if test "$ac_res" != no; then
30082 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
30083
30084 else
30085
30086 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
30087 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
30088 { { $as_echo "$as_me:$LINENO: error: xdrmem_create() requires libc
30089 See \`config.log' for more details." >&5
30090 $as_echo "$as_me: error: xdrmem_create() requires libc
30091 See \`config.log' for more details." >&2;}
30092 { (exit 1); exit 1; }; }; }
30093 fi
30094
30095
30096 fi
30097
30098
30099
30100 LIBBLKID=
30101
30102 if test "${ac_cv_header_blkid_blkid_h+set}" = set; then
30103 { $as_echo "$as_me:$LINENO: checking for blkid/blkid.h" >&5
30104 $as_echo_n "checking for blkid/blkid.h... " >&6; }
30105 if test "${ac_cv_header_blkid_blkid_h+set}" = set; then
30106 $as_echo_n "(cached) " >&6
30107 fi
30108 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_blkid_blkid_h" >&5
30109 $as_echo "$ac_cv_header_blkid_blkid_h" >&6; }
30110 else
30111 # Is the header compilable?
30112 { $as_echo "$as_me:$LINENO: checking blkid/blkid.h usability" >&5
30113 $as_echo_n "checking blkid/blkid.h usability... " >&6; }
30114 cat >conftest.$ac_ext <<_ACEOF
30115 /* confdefs.h. */
30116 _ACEOF
30117 cat confdefs.h >>conftest.$ac_ext
30118 cat >>conftest.$ac_ext <<_ACEOF
30119 /* end confdefs.h. */
30120 $ac_includes_default
30121 #include <blkid/blkid.h>
30122 _ACEOF
30123 rm -f conftest.$ac_objext
30124 if { (ac_try="$ac_compile"
30125 case "(($ac_try" in
30126 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30127 *) ac_try_echo=$ac_try;;
30128 esac
30129 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30130 $as_echo "$ac_try_echo") >&5
30131 (eval "$ac_compile") 2>conftest.er1
30132 ac_status=$?
30133 grep -v '^ *+' conftest.er1 >conftest.err
30134 rm -f conftest.er1
30135 cat conftest.err >&5
30136 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30137 (exit $ac_status); } && {
30138 test -z "$ac_c_werror_flag" ||
30139 test ! -s conftest.err
30140 } && test -s conftest.$ac_objext; then
30141 ac_header_compiler=yes
30142 else
30143 $as_echo "$as_me: failed program was:" >&5
30144 sed 's/^/| /' conftest.$ac_ext >&5
30145
30146 ac_header_compiler=no
30147 fi
30148
30149 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30150 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30151 $as_echo "$ac_header_compiler" >&6; }
30152
30153 # Is the header present?
30154 { $as_echo "$as_me:$LINENO: checking blkid/blkid.h presence" >&5
30155 $as_echo_n "checking blkid/blkid.h presence... " >&6; }
30156 cat >conftest.$ac_ext <<_ACEOF
30157 /* confdefs.h. */
30158 _ACEOF
30159 cat confdefs.h >>conftest.$ac_ext
30160 cat >>conftest.$ac_ext <<_ACEOF
30161 /* end confdefs.h. */
30162 #include <blkid/blkid.h>
30163 _ACEOF
30164 if { (ac_try="$ac_cpp conftest.$ac_ext"
30165 case "(($ac_try" in
30166 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30167 *) ac_try_echo=$ac_try;;
30168 esac
30169 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30170 $as_echo "$ac_try_echo") >&5
30171 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30172 ac_status=$?
30173 grep -v '^ *+' conftest.er1 >conftest.err
30174 rm -f conftest.er1
30175 cat conftest.err >&5
30176 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30177 (exit $ac_status); } >/dev/null && {
30178 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
30179 test ! -s conftest.err
30180 }; then
30181 ac_header_preproc=yes
30182 else
30183 $as_echo "$as_me: failed program was:" >&5
30184 sed 's/^/| /' conftest.$ac_ext >&5
30185
30186 ac_header_preproc=no
30187 fi
30188
30189 rm -f conftest.err conftest.$ac_ext
30190 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30191 $as_echo "$ac_header_preproc" >&6; }
30192
30193 # So? What about this header?
30194 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30195 yes:no: )
30196 { $as_echo "$as_me:$LINENO: WARNING: blkid/blkid.h: accepted by the compiler, rejected by the preprocessor!" >&5
30197 $as_echo "$as_me: WARNING: blkid/blkid.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
30198 { $as_echo "$as_me:$LINENO: WARNING: blkid/blkid.h: proceeding with the compiler's result" >&5
30199 $as_echo "$as_me: WARNING: blkid/blkid.h: proceeding with the compiler's result" >&2;}
30200 ac_header_preproc=yes
30201 ;;
30202 no:yes:* )
30203 { $as_echo "$as_me:$LINENO: WARNING: blkid/blkid.h: present but cannot be compiled" >&5
30204 $as_echo "$as_me: WARNING: blkid/blkid.h: present but cannot be compiled" >&2;}
30205 { $as_echo "$as_me:$LINENO: WARNING: blkid/blkid.h: check for missing prerequisite headers?" >&5
30206 $as_echo "$as_me: WARNING: blkid/blkid.h: check for missing prerequisite headers?" >&2;}
30207 { $as_echo "$as_me:$LINENO: WARNING: blkid/blkid.h: see the Autoconf documentation" >&5
30208 $as_echo "$as_me: WARNING: blkid/blkid.h: see the Autoconf documentation" >&2;}
30209 { $as_echo "$as_me:$LINENO: WARNING: blkid/blkid.h: section \"Present But Cannot Be Compiled\"" >&5
30210 $as_echo "$as_me: WARNING: blkid/blkid.h: section \"Present But Cannot Be Compiled\"" >&2;}
30211 { $as_echo "$as_me:$LINENO: WARNING: blkid/blkid.h: proceeding with the preprocessor's result" >&5
30212 $as_echo "$as_me: WARNING: blkid/blkid.h: proceeding with the preprocessor's result" >&2;}
30213 { $as_echo "$as_me:$LINENO: WARNING: blkid/blkid.h: in the future, the compiler will take precedence" >&5
30214 $as_echo "$as_me: WARNING: blkid/blkid.h: in the future, the compiler will take precedence" >&2;}
30215
30216 ;;
30217 esac
30218 { $as_echo "$as_me:$LINENO: checking for blkid/blkid.h" >&5
30219 $as_echo_n "checking for blkid/blkid.h... " >&6; }
30220 if test "${ac_cv_header_blkid_blkid_h+set}" = set; then
30221 $as_echo_n "(cached) " >&6
30222 else
30223 ac_cv_header_blkid_blkid_h=$ac_header_preproc
30224 fi
30225 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_blkid_blkid_h" >&5
30226 $as_echo "$ac_cv_header_blkid_blkid_h" >&6; }
30227
30228 fi
30229 if test "x$ac_cv_header_blkid_blkid_h" = x""yes; then
30230 :
30231 else
30232 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
30233 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
30234 { { $as_echo "$as_me:$LINENO: error:
30235 *** blkid.h missing, libblkid-devel package required
30236 See \`config.log' for more details." >&5
30237 $as_echo "$as_me: error:
30238 *** blkid.h missing, libblkid-devel package required
30239 See \`config.log' for more details." >&2;}
30240 { (exit 1); exit 1; }; }; }
30241 fi
30242
30243
30244
30245 LIBBLKID="-lblkid"
30246
30247
30248 cat >>confdefs.h <<\_ACEOF
30249 #define HAVE_LIBBLKID 1
30250 _ACEOF
30251
30252
30253
30254 LIBUDEV=
30255
30256 if test "${ac_cv_header_libudev_h+set}" = set; then
30257 { $as_echo "$as_me:$LINENO: checking for libudev.h" >&5
30258 $as_echo_n "checking for libudev.h... " >&6; }
30259 if test "${ac_cv_header_libudev_h+set}" = set; then
30260 $as_echo_n "(cached) " >&6
30261 fi
30262 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_libudev_h" >&5
30263 $as_echo "$ac_cv_header_libudev_h" >&6; }
30264 else
30265 # Is the header compilable?
30266 { $as_echo "$as_me:$LINENO: checking libudev.h usability" >&5
30267 $as_echo_n "checking libudev.h usability... " >&6; }
30268 cat >conftest.$ac_ext <<_ACEOF
30269 /* confdefs.h. */
30270 _ACEOF
30271 cat confdefs.h >>conftest.$ac_ext
30272 cat >>conftest.$ac_ext <<_ACEOF
30273 /* end confdefs.h. */
30274 $ac_includes_default
30275 #include <libudev.h>
30276 _ACEOF
30277 rm -f conftest.$ac_objext
30278 if { (ac_try="$ac_compile"
30279 case "(($ac_try" in
30280 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30281 *) ac_try_echo=$ac_try;;
30282 esac
30283 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30284 $as_echo "$ac_try_echo") >&5
30285 (eval "$ac_compile") 2>conftest.er1
30286 ac_status=$?
30287 grep -v '^ *+' conftest.er1 >conftest.err
30288 rm -f conftest.er1
30289 cat conftest.err >&5
30290 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30291 (exit $ac_status); } && {
30292 test -z "$ac_c_werror_flag" ||
30293 test ! -s conftest.err
30294 } && test -s conftest.$ac_objext; then
30295 ac_header_compiler=yes
30296 else
30297 $as_echo "$as_me: failed program was:" >&5
30298 sed 's/^/| /' conftest.$ac_ext >&5
30299
30300 ac_header_compiler=no
30301 fi
30302
30303 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30304 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30305 $as_echo "$ac_header_compiler" >&6; }
30306
30307 # Is the header present?
30308 { $as_echo "$as_me:$LINENO: checking libudev.h presence" >&5
30309 $as_echo_n "checking libudev.h presence... " >&6; }
30310 cat >conftest.$ac_ext <<_ACEOF
30311 /* confdefs.h. */
30312 _ACEOF
30313 cat confdefs.h >>conftest.$ac_ext
30314 cat >>conftest.$ac_ext <<_ACEOF
30315 /* end confdefs.h. */
30316 #include <libudev.h>
30317 _ACEOF
30318 if { (ac_try="$ac_cpp conftest.$ac_ext"
30319 case "(($ac_try" in
30320 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30321 *) ac_try_echo=$ac_try;;
30322 esac
30323 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30324 $as_echo "$ac_try_echo") >&5
30325 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30326 ac_status=$?
30327 grep -v '^ *+' conftest.er1 >conftest.err
30328 rm -f conftest.er1
30329 cat conftest.err >&5
30330 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30331 (exit $ac_status); } >/dev/null && {
30332 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
30333 test ! -s conftest.err
30334 }; then
30335 ac_header_preproc=yes
30336 else
30337 $as_echo "$as_me: failed program was:" >&5
30338 sed 's/^/| /' conftest.$ac_ext >&5
30339
30340 ac_header_preproc=no
30341 fi
30342
30343 rm -f conftest.err conftest.$ac_ext
30344 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30345 $as_echo "$ac_header_preproc" >&6; }
30346
30347 # So? What about this header?
30348 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30349 yes:no: )
30350 { $as_echo "$as_me:$LINENO: WARNING: libudev.h: accepted by the compiler, rejected by the preprocessor!" >&5
30351 $as_echo "$as_me: WARNING: libudev.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
30352 { $as_echo "$as_me:$LINENO: WARNING: libudev.h: proceeding with the compiler's result" >&5
30353 $as_echo "$as_me: WARNING: libudev.h: proceeding with the compiler's result" >&2;}
30354 ac_header_preproc=yes
30355 ;;
30356 no:yes:* )
30357 { $as_echo "$as_me:$LINENO: WARNING: libudev.h: present but cannot be compiled" >&5
30358 $as_echo "$as_me: WARNING: libudev.h: present but cannot be compiled" >&2;}
30359 { $as_echo "$as_me:$LINENO: WARNING: libudev.h: check for missing prerequisite headers?" >&5
30360 $as_echo "$as_me: WARNING: libudev.h: check for missing prerequisite headers?" >&2;}
30361 { $as_echo "$as_me:$LINENO: WARNING: libudev.h: see the Autoconf documentation" >&5
30362 $as_echo "$as_me: WARNING: libudev.h: see the Autoconf documentation" >&2;}
30363 { $as_echo "$as_me:$LINENO: WARNING: libudev.h: section \"Present But Cannot Be Compiled\"" >&5
30364 $as_echo "$as_me: WARNING: libudev.h: section \"Present But Cannot Be Compiled\"" >&2;}
30365 { $as_echo "$as_me:$LINENO: WARNING: libudev.h: proceeding with the preprocessor's result" >&5
30366 $as_echo "$as_me: WARNING: libudev.h: proceeding with the preprocessor's result" >&2;}
30367 { $as_echo "$as_me:$LINENO: WARNING: libudev.h: in the future, the compiler will take precedence" >&5
30368 $as_echo "$as_me: WARNING: libudev.h: in the future, the compiler will take precedence" >&2;}
30369
30370 ;;
30371 esac
30372 { $as_echo "$as_me:$LINENO: checking for libudev.h" >&5
30373 $as_echo_n "checking for libudev.h... " >&6; }
30374 if test "${ac_cv_header_libudev_h+set}" = set; then
30375 $as_echo_n "(cached) " >&6
30376 else
30377 ac_cv_header_libudev_h=$ac_header_preproc
30378 fi
30379 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_libudev_h" >&5
30380 $as_echo "$ac_cv_header_libudev_h" >&6; }
30381
30382 fi
30383 if test "x$ac_cv_header_libudev_h" = x""yes; then
30384
30385 user_libudev=yes
30386 LIBUDEV="-ludev"
30387
30388
30389 cat >>confdefs.h <<\_ACEOF
30390 #define HAVE_LIBUDEV 1
30391 _ACEOF
30392
30393
30394 else
30395
30396 user_libudev=no
30397
30398 fi
30399
30400
30401
30402 { $as_echo "$as_me:$LINENO: checking for library containing udev_device_get_is_initialized" >&5
30403 $as_echo_n "checking for library containing udev_device_get_is_initialized... " >&6; }
30404 if test "${ac_cv_search_udev_device_get_is_initialized+set}" = set; then
30405 $as_echo_n "(cached) " >&6
30406 else
30407 ac_func_search_save_LIBS=$LIBS
30408 cat >conftest.$ac_ext <<_ACEOF
30409 /* confdefs.h. */
30410 _ACEOF
30411 cat confdefs.h >>conftest.$ac_ext
30412 cat >>conftest.$ac_ext <<_ACEOF
30413 /* end confdefs.h. */
30414
30415 /* Override any GCC internal prototype to avoid an error.
30416 Use char because int might match the return type of a GCC
30417 builtin and then its argument prototype would still apply. */
30418 #ifdef __cplusplus
30419 extern "C"
30420 #endif
30421 char udev_device_get_is_initialized ();
30422 int
30423 main ()
30424 {
30425 return udev_device_get_is_initialized ();
30426 ;
30427 return 0;
30428 }
30429 _ACEOF
30430 for ac_lib in '' udev; do
30431 if test -z "$ac_lib"; then
30432 ac_res="none required"
30433 else
30434 ac_res=-l$ac_lib
30435 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
30436 fi
30437 rm -f conftest.$ac_objext conftest$ac_exeext
30438 if { (ac_try="$ac_link"
30439 case "(($ac_try" in
30440 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30441 *) ac_try_echo=$ac_try;;
30442 esac
30443 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30444 $as_echo "$ac_try_echo") >&5
30445 (eval "$ac_link") 2>conftest.er1
30446 ac_status=$?
30447 grep -v '^ *+' conftest.er1 >conftest.err
30448 rm -f conftest.er1
30449 cat conftest.err >&5
30450 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30451 (exit $ac_status); } && {
30452 test -z "$ac_c_werror_flag" ||
30453 test ! -s conftest.err
30454 } && test -s conftest$ac_exeext && {
30455 test "$cross_compiling" = yes ||
30456 $as_test_x conftest$ac_exeext
30457 }; then
30458 ac_cv_search_udev_device_get_is_initialized=$ac_res
30459 else
30460 $as_echo "$as_me: failed program was:" >&5
30461 sed 's/^/| /' conftest.$ac_ext >&5
30462
30463
30464 fi
30465
30466 rm -rf conftest.dSYM
30467 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30468 conftest$ac_exeext
30469 if test "${ac_cv_search_udev_device_get_is_initialized+set}" = set; then
30470 break
30471 fi
30472 done
30473 if test "${ac_cv_search_udev_device_get_is_initialized+set}" = set; then
30474 :
30475 else
30476 ac_cv_search_udev_device_get_is_initialized=no
30477 fi
30478 rm conftest.$ac_ext
30479 LIBS=$ac_func_search_save_LIBS
30480 fi
30481 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_udev_device_get_is_initialized" >&5
30482 $as_echo "$ac_cv_search_udev_device_get_is_initialized" >&6; }
30483 ac_res=$ac_cv_search_udev_device_get_is_initialized
30484 if test "$ac_res" != no; then
30485 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
30486
30487
30488 cat >>confdefs.h <<\_ACEOF
30489 #define HAVE_LIBUDEV_UDEV_DEVICE_GET_IS_INITIALIZED 1
30490 _ACEOF
30491
30492 fi
30493
30494
30495
30496
30497 { $as_echo "$as_me:$LINENO: checking for -Wframe-larger-than=<size> support" >&5
30498 $as_echo_n "checking for -Wframe-larger-than=<size> support... " >&6; }
30499
30500 saved_flags="$CFLAGS"
30501 CFLAGS="$CFLAGS -Wframe-larger-than=1024"
30502
30503 cat >conftest.$ac_ext <<_ACEOF
30504 /* confdefs.h. */
30505 _ACEOF
30506 cat confdefs.h >>conftest.$ac_ext
30507 cat >>conftest.$ac_ext <<_ACEOF
30508 /* end confdefs.h. */
30509
30510 int
30511 main ()
30512 {
30513
30514 ;
30515 return 0;
30516 }
30517 _ACEOF
30518 rm -f conftest.$ac_objext
30519 if { (ac_try="$ac_compile"
30520 case "(($ac_try" in
30521 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30522 *) ac_try_echo=$ac_try;;
30523 esac
30524 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30525 $as_echo "$ac_try_echo") >&5
30526 (eval "$ac_compile") 2>conftest.er1
30527 ac_status=$?
30528 grep -v '^ *+' conftest.er1 >conftest.err
30529 rm -f conftest.er1
30530 cat conftest.err >&5
30531 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30532 (exit $ac_status); } && {
30533 test -z "$ac_c_werror_flag" ||
30534 test ! -s conftest.err
30535 } && test -s conftest.$ac_objext; then
30536
30537 FRAME_LARGER_THAN=-Wframe-larger-than=1024
30538 { $as_echo "$as_me:$LINENO: result: yes" >&5
30539 $as_echo "yes" >&6; }
30540
30541 else
30542 $as_echo "$as_me: failed program was:" >&5
30543 sed 's/^/| /' conftest.$ac_ext >&5
30544
30545
30546 FRAME_LARGER_THAN=
30547 { $as_echo "$as_me:$LINENO: result: no" >&5
30548 $as_echo "no" >&6; }
30549
30550 fi
30551
30552 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30553
30554 CFLAGS="$saved_flags"
30555
30556
30557
30558 LIBAIO=
30559
30560 if test "${ac_cv_header_libaio_h+set}" = set; then
30561 { $as_echo "$as_me:$LINENO: checking for libaio.h" >&5
30562 $as_echo_n "checking for libaio.h... " >&6; }
30563 if test "${ac_cv_header_libaio_h+set}" = set; then
30564 $as_echo_n "(cached) " >&6
30565 fi
30566 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_libaio_h" >&5
30567 $as_echo "$ac_cv_header_libaio_h" >&6; }
30568 else
30569 # Is the header compilable?
30570 { $as_echo "$as_me:$LINENO: checking libaio.h usability" >&5
30571 $as_echo_n "checking libaio.h usability... " >&6; }
30572 cat >conftest.$ac_ext <<_ACEOF
30573 /* confdefs.h. */
30574 _ACEOF
30575 cat confdefs.h >>conftest.$ac_ext
30576 cat >>conftest.$ac_ext <<_ACEOF
30577 /* end confdefs.h. */
30578 $ac_includes_default
30579 #include <libaio.h>
30580 _ACEOF
30581 rm -f conftest.$ac_objext
30582 if { (ac_try="$ac_compile"
30583 case "(($ac_try" in
30584 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30585 *) ac_try_echo=$ac_try;;
30586 esac
30587 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30588 $as_echo "$ac_try_echo") >&5
30589 (eval "$ac_compile") 2>conftest.er1
30590 ac_status=$?
30591 grep -v '^ *+' conftest.er1 >conftest.err
30592 rm -f conftest.er1
30593 cat conftest.err >&5
30594 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30595 (exit $ac_status); } && {
30596 test -z "$ac_c_werror_flag" ||
30597 test ! -s conftest.err
30598 } && test -s conftest.$ac_objext; then
30599 ac_header_compiler=yes
30600 else
30601 $as_echo "$as_me: failed program was:" >&5
30602 sed 's/^/| /' conftest.$ac_ext >&5
30603
30604 ac_header_compiler=no
30605 fi
30606
30607 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30608 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30609 $as_echo "$ac_header_compiler" >&6; }
30610
30611 # Is the header present?
30612 { $as_echo "$as_me:$LINENO: checking libaio.h presence" >&5
30613 $as_echo_n "checking libaio.h presence... " >&6; }
30614 cat >conftest.$ac_ext <<_ACEOF
30615 /* confdefs.h. */
30616 _ACEOF
30617 cat confdefs.h >>conftest.$ac_ext
30618 cat >>conftest.$ac_ext <<_ACEOF
30619 /* end confdefs.h. */
30620 #include <libaio.h>
30621 _ACEOF
30622 if { (ac_try="$ac_cpp conftest.$ac_ext"
30623 case "(($ac_try" in
30624 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30625 *) ac_try_echo=$ac_try;;
30626 esac
30627 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30628 $as_echo "$ac_try_echo") >&5
30629 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30630 ac_status=$?
30631 grep -v '^ *+' conftest.er1 >conftest.err
30632 rm -f conftest.er1
30633 cat conftest.err >&5
30634 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30635 (exit $ac_status); } >/dev/null && {
30636 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
30637 test ! -s conftest.err
30638 }; then
30639 ac_header_preproc=yes
30640 else
30641 $as_echo "$as_me: failed program was:" >&5
30642 sed 's/^/| /' conftest.$ac_ext >&5
30643
30644 ac_header_preproc=no
30645 fi
30646
30647 rm -f conftest.err conftest.$ac_ext
30648 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30649 $as_echo "$ac_header_preproc" >&6; }
30650
30651 # So? What about this header?
30652 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30653 yes:no: )
30654 { $as_echo "$as_me:$LINENO: WARNING: libaio.h: accepted by the compiler, rejected by the preprocessor!" >&5
30655 $as_echo "$as_me: WARNING: libaio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
30656 { $as_echo "$as_me:$LINENO: WARNING: libaio.h: proceeding with the compiler's result" >&5
30657 $as_echo "$as_me: WARNING: libaio.h: proceeding with the compiler's result" >&2;}
30658 ac_header_preproc=yes
30659 ;;
30660 no:yes:* )
30661 { $as_echo "$as_me:$LINENO: WARNING: libaio.h: present but cannot be compiled" >&5
30662 $as_echo "$as_me: WARNING: libaio.h: present but cannot be compiled" >&2;}
30663 { $as_echo "$as_me:$LINENO: WARNING: libaio.h: check for missing prerequisite headers?" >&5
30664 $as_echo "$as_me: WARNING: libaio.h: check for missing prerequisite headers?" >&2;}
30665 { $as_echo "$as_me:$LINENO: WARNING: libaio.h: see the Autoconf documentation" >&5
30666 $as_echo "$as_me: WARNING: libaio.h: see the Autoconf documentation" >&2;}
30667 { $as_echo "$as_me:$LINENO: WARNING: libaio.h: section \"Present But Cannot Be Compiled\"" >&5
30668 $as_echo "$as_me: WARNING: libaio.h: section \"Present But Cannot Be Compiled\"" >&2;}
30669 { $as_echo "$as_me:$LINENO: WARNING: libaio.h: proceeding with the preprocessor's result" >&5
30670 $as_echo "$as_me: WARNING: libaio.h: proceeding with the preprocessor's result" >&2;}
30671 { $as_echo "$as_me:$LINENO: WARNING: libaio.h: in the future, the compiler will take precedence" >&5
30672 $as_echo "$as_me: WARNING: libaio.h: in the future, the compiler will take precedence" >&2;}
30673
30674 ;;
30675 esac
30676 { $as_echo "$as_me:$LINENO: checking for libaio.h" >&5
30677 $as_echo_n "checking for libaio.h... " >&6; }
30678 if test "${ac_cv_header_libaio_h+set}" = set; then
30679 $as_echo_n "(cached) " >&6
30680 else
30681 ac_cv_header_libaio_h=$ac_header_preproc
30682 fi
30683 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_libaio_h" >&5
30684 $as_echo "$ac_cv_header_libaio_h" >&6; }
30685
30686 fi
30687 if test "x$ac_cv_header_libaio_h" = x""yes; then
30688
30689 user_libaio=yes
30690 LIBAIO="-laio"
30691
30692
30693 cat >>confdefs.h <<\_ACEOF
30694 #define HAVE_LIBAIO 1
30695 _ACEOF
30696
30697
30698 else
30699
30700 user_libaio=no
30701
30702 fi
30703
30704
30705
30706
30707 if test "x$runstatedir" = x; then
30708 runstatedir='${localstatedir}/run'
30709
30710 fi
30711
30712
30713 { $as_echo "$as_me:$LINENO: checking makedev() is declared in sys/sysmacros.h" >&5
30714 $as_echo_n "checking makedev() is declared in sys/sysmacros.h... " >&6; }
30715 cat >conftest.$ac_ext <<_ACEOF
30716 /* confdefs.h. */
30717 _ACEOF
30718 cat confdefs.h >>conftest.$ac_ext
30719 cat >>conftest.$ac_ext <<_ACEOF
30720 /* end confdefs.h. */
30721
30722 #include <sys/sysmacros.h>
30723
30724 int
30725 main ()
30726 {
30727
30728 int k;
30729 k = makedev(0,0);
30730
30731 ;
30732 return 0;
30733 }
30734 _ACEOF
30735 rm -f conftest.$ac_objext
30736 if { (ac_try="$ac_compile"
30737 case "(($ac_try" in
30738 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30739 *) ac_try_echo=$ac_try;;
30740 esac
30741 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30742 $as_echo "$ac_try_echo") >&5
30743 (eval "$ac_compile") 2>conftest.er1
30744 ac_status=$?
30745 grep -v '^ *+' conftest.er1 >conftest.err
30746 rm -f conftest.er1
30747 cat conftest.err >&5
30748 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30749 (exit $ac_status); } && {
30750 test -z "$ac_c_werror_flag" ||
30751 test ! -s conftest.err
30752 } && test -s conftest.$ac_objext; then
30753
30754 { $as_echo "$as_me:$LINENO: result: yes" >&5
30755 $as_echo "yes" >&6; }
30756
30757 cat >>confdefs.h <<\_ACEOF
30758 #define HAVE_MAKEDEV_IN_SYSMACROS 1
30759 _ACEOF
30760
30761
30762 else
30763 $as_echo "$as_me: failed program was:" >&5
30764 sed 's/^/| /' conftest.$ac_ext >&5
30765
30766
30767 { $as_echo "$as_me:$LINENO: result: no" >&5
30768 $as_echo "no" >&6; }
30769
30770 fi
30771
30772 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30773
30774
30775 { $as_echo "$as_me:$LINENO: checking makedev() is declared in sys/mkdev.h" >&5
30776 $as_echo_n "checking makedev() is declared in sys/mkdev.h... " >&6; }
30777 cat >conftest.$ac_ext <<_ACEOF
30778 /* confdefs.h. */
30779 _ACEOF
30780 cat confdefs.h >>conftest.$ac_ext
30781 cat >>conftest.$ac_ext <<_ACEOF
30782 /* end confdefs.h. */
30783
30784 #include <sys/mkdev.h>
30785
30786 int
30787 main ()
30788 {
30789
30790 int k;
30791 k = makedev(0,0);
30792
30793 ;
30794 return 0;
30795 }
30796 _ACEOF
30797 rm -f conftest.$ac_objext
30798 if { (ac_try="$ac_compile"
30799 case "(($ac_try" in
30800 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30801 *) ac_try_echo=$ac_try;;
30802 esac
30803 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30804 $as_echo "$ac_try_echo") >&5
30805 (eval "$ac_compile") 2>conftest.er1
30806 ac_status=$?
30807 grep -v '^ *+' conftest.er1 >conftest.err
30808 rm -f conftest.er1
30809 cat conftest.err >&5
30810 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30811 (exit $ac_status); } && {
30812 test -z "$ac_c_werror_flag" ||
30813 test ! -s conftest.err
30814 } && test -s conftest.$ac_objext; then
30815
30816 { $as_echo "$as_me:$LINENO: result: yes" >&5
30817 $as_echo "yes" >&6; }
30818
30819 cat >>confdefs.h <<\_ACEOF
30820 #define HAVE_MAKEDEV_IN_MKDEV 1
30821 _ACEOF
30822
30823
30824 else
30825 $as_echo "$as_me: failed program was:" >&5
30826 sed 's/^/| /' conftest.$ac_ext >&5
30827
30828
30829 { $as_echo "$as_me:$LINENO: result: no" >&5
30830 $as_echo "no" >&6; }
30831
30832 fi
30833
30834 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30835
30836
30837 { $as_echo "$as_me:$LINENO: checking for -Wno-format-truncation support" >&5
30838 $as_echo_n "checking for -Wno-format-truncation support... " >&6; }
30839
30840 saved_flags="$CFLAGS"
30841 CFLAGS="$CFLAGS -Wno-format-truncation"
30842
30843 cat >conftest.$ac_ext <<_ACEOF
30844 /* confdefs.h. */
30845 _ACEOF
30846 cat confdefs.h >>conftest.$ac_ext
30847 cat >>conftest.$ac_ext <<_ACEOF
30848 /* end confdefs.h. */
30849
30850 int
30851 main ()
30852 {
30853
30854 ;
30855 return 0;
30856 }
30857 _ACEOF
30858 rm -f conftest.$ac_objext
30859 if { (ac_try="$ac_compile"
30860 case "(($ac_try" in
30861 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30862 *) ac_try_echo=$ac_try;;
30863 esac
30864 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30865 $as_echo "$ac_try_echo") >&5
30866 (eval "$ac_compile") 2>conftest.er1
30867 ac_status=$?
30868 grep -v '^ *+' conftest.er1 >conftest.err
30869 rm -f conftest.er1
30870 cat conftest.err >&5
30871 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30872 (exit $ac_status); } && {
30873 test -z "$ac_c_werror_flag" ||
30874 test ! -s conftest.err
30875 } && test -s conftest.$ac_objext; then
30876
30877 NO_FORMAT_TRUNCATION=-Wno-format-truncation
30878 { $as_echo "$as_me:$LINENO: result: yes" >&5
30879 $as_echo "yes" >&6; }
30880
30881 else
30882 $as_echo "$as_me: failed program was:" >&5
30883 sed 's/^/| /' conftest.$ac_ext >&5
30884
30885
30886 NO_FORMAT_TRUNCATION=
30887 { $as_echo "$as_me:$LINENO: result: no" >&5
30888 $as_echo "no" >&6; }
30889
30890 fi
30891
30892 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30893
30894 CFLAGS="$saved_flags"
30895
30896
30897
30898
30899 ZONENAME="echo global"
30900
30901
30902
30903
30904
30905
30906 for ac_func in mlockall
30907 do
30908 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
30909 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
30910 $as_echo_n "checking for $ac_func... " >&6; }
30911 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30912 $as_echo_n "(cached) " >&6
30913 else
30914 cat >conftest.$ac_ext <<_ACEOF
30915 /* confdefs.h. */
30916 _ACEOF
30917 cat confdefs.h >>conftest.$ac_ext
30918 cat >>conftest.$ac_ext <<_ACEOF
30919 /* end confdefs.h. */
30920 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30921 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30922 #define $ac_func innocuous_$ac_func
30923
30924 /* System header to define __stub macros and hopefully few prototypes,
30925 which can conflict with char $ac_func (); below.
30926 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30927 <limits.h> exists even on freestanding compilers. */
30928
30929 #ifdef __STDC__
30930 # include <limits.h>
30931 #else
30932 # include <assert.h>
30933 #endif
30934
30935 #undef $ac_func
30936
30937 /* Override any GCC internal prototype to avoid an error.
30938 Use char because int might match the return type of a GCC
30939 builtin and then its argument prototype would still apply. */
30940 #ifdef __cplusplus
30941 extern "C"
30942 #endif
30943 char $ac_func ();
30944 /* The GNU C library defines this for functions which it implements
30945 to always fail with ENOSYS. Some functions are actually named
30946 something starting with __ and the normal name is an alias. */
30947 #if defined __stub_$ac_func || defined __stub___$ac_func
30948 choke me
30949 #endif
30950
30951 int
30952 main ()
30953 {
30954 return $ac_func ();
30955 ;
30956 return 0;
30957 }
30958 _ACEOF
30959 rm -f conftest.$ac_objext conftest$ac_exeext
30960 if { (ac_try="$ac_link"
30961 case "(($ac_try" in
30962 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30963 *) ac_try_echo=$ac_try;;
30964 esac
30965 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30966 $as_echo "$ac_try_echo") >&5
30967 (eval "$ac_link") 2>conftest.er1
30968 ac_status=$?
30969 grep -v '^ *+' conftest.er1 >conftest.err
30970 rm -f conftest.er1
30971 cat conftest.err >&5
30972 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30973 (exit $ac_status); } && {
30974 test -z "$ac_c_werror_flag" ||
30975 test ! -s conftest.err
30976 } && test -s conftest$ac_exeext && {
30977 test "$cross_compiling" = yes ||
30978 $as_test_x conftest$ac_exeext
30979 }; then
30980 eval "$as_ac_var=yes"
30981 else
30982 $as_echo "$as_me: failed program was:" >&5
30983 sed 's/^/| /' conftest.$ac_ext >&5
30984
30985 eval "$as_ac_var=no"
30986 fi
30987
30988 rm -rf conftest.dSYM
30989 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30990 conftest$ac_exeext conftest.$ac_ext
30991 fi
30992 ac_res=`eval 'as_val=${'$as_ac_var'}
30993 $as_echo "$as_val"'`
30994 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
30995 $as_echo "$ac_res" >&6; }
30996 as_val=`eval 'as_val=${'$as_ac_var'}
30997 $as_echo "$as_val"'`
30998 if test "x$as_val" = x""yes; then
30999 cat >>confdefs.h <<_ACEOF
31000 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
31001 _ACEOF
31002
31003 fi
31004 done
31005
31006 ;;
31007 all)
31008
31009
31010 # Check whether --with-mounthelperdir was given.
31011 if test "${with_mounthelperdir+set}" = set; then
31012 withval=$with_mounthelperdir; mounthelperdir=$withval
31013 else
31014 mounthelperdir=/sbin
31015 fi
31016
31017
31018
31019
31020
31021 { $as_echo "$as_me:$LINENO: checking for udev directories" >&5
31022 $as_echo_n "checking for udev directories... " >&6; }
31023
31024 # Check whether --with-udevdir was given.
31025 if test "${with_udevdir+set}" = set; then
31026 withval=$with_udevdir; udevdir=$withval
31027 else
31028 udevdir=check
31029 fi
31030
31031
31032 if test "x$udevdir" = xcheck; then
31033
31034 path1=/lib/udev
31035 path2=/usr/lib/udev
31036 default=$path2
31037
31038 if test -d "$path1"; then
31039 udevdir="$path1"
31040 else
31041
31042 if test -d "$path2"; then
31043 udevdir="$path2"
31044 else
31045 udevdir="$default"
31046 fi
31047
31048
31049 fi
31050
31051
31052 fi
31053
31054
31055
31056 # Check whether --with-udevruledir was given.
31057 if test "${with_udevruledir+set}" = set; then
31058 withval=$with_udevruledir; udevruledir=$withval
31059 else
31060 udevruledir="${udevdir}/rules.d"
31061 fi
31062
31063
31064
31065
31066 { $as_echo "$as_me:$LINENO: result: $udevdir;$udevruledir" >&5
31067 $as_echo "$udevdir;$udevruledir" >&6; }
31068
31069
31070 # Check whether --enable-systemd was given.
31071 if test "${enable_systemd+set}" = set; then
31072 enableval=$enable_systemd; enable_systemd=$enableval
31073 else
31074 enable_systemd=check
31075 fi
31076
31077
31078
31079 # Check whether --with-systemdunitdir was given.
31080 if test "${with_systemdunitdir+set}" = set; then
31081 withval=$with_systemdunitdir; systemdunitdir=$withval
31082 else
31083 systemdunitdir=/usr/lib/systemd/system
31084 fi
31085
31086
31087
31088 # Check whether --with-systemdpresetdir was given.
31089 if test "${with_systemdpresetdir+set}" = set; then
31090 withval=$with_systemdpresetdir; systemdpresetdir=$withval
31091 else
31092 systemdpresetdir=/usr/lib/systemd/system-preset
31093 fi
31094
31095
31096
31097 # Check whether --with-systemdmodulesloaddir was given.
31098 if test "${with_systemdmodulesloaddir+set}" = set; then
31099 withval=$with_systemdmodulesloaddir; systemdmoduleloaddir=$withval
31100 else
31101 systemdmodulesloaddir=/usr/lib/modules-load.d
31102 fi
31103
31104
31105 if test "x$enable_systemd" = xcheck; then
31106
31107 if systemctl --version >/dev/null 2>&1; then
31108 enable_systemd=yes
31109 else
31110 enable_systemd=no
31111 fi
31112
31113
31114 fi
31115
31116
31117 { $as_echo "$as_me:$LINENO: checking for systemd support" >&5
31118 $as_echo_n "checking for systemd support... " >&6; }
31119 { $as_echo "$as_me:$LINENO: result: $enable_systemd" >&5
31120 $as_echo "$enable_systemd" >&6; }
31121
31122 if test "x$enable_systemd" = xyes; then
31123
31124 ZFS_INIT_SYSTEMD=systemd
31125 ZFS_MODULE_LOAD=modules-load.d
31126 DEFINE_SYSTEMD='--with systemd --define "_unitdir $(systemdunitdir)" --define "_presetdir $(systemdpresetdir)"'
31127 modulesloaddir=$systemdmodulesloaddir
31128
31129 else
31130
31131 DEFINE_SYSTEMD='--without systemd'
31132
31133 fi
31134
31135
31136
31137
31138
31139
31140
31141
31142
31143
31144 # Check whether --enable-sysvinit was given.
31145 if test "${enable_sysvinit+set}" = set; then
31146 enableval=$enable_sysvinit;
31147 else
31148 enable_sysvinit=yes
31149 fi
31150
31151
31152 if test "x$enable_sysvinit" = xyes; then
31153 ZFS_INIT_SYSV=init.d
31154 fi
31155
31156
31157
31158
31159
31160 { $as_echo "$as_me:$LINENO: checking for dracut directory" >&5
31161 $as_echo_n "checking for dracut directory... " >&6; }
31162
31163 # Check whether --with-dracutdir was given.
31164 if test "${with_dracutdir+set}" = set; then
31165 withval=$with_dracutdir; dracutdir=$withval
31166 else
31167 dracutdir=check
31168 fi
31169
31170
31171 if test "x$dracutdir" = xcheck; then
31172
31173 path1=/usr/share/dracut
31174 path2=/usr/lib/dracut
31175 default=$path2
31176
31177 if test -d "$path1"; then
31178 dracutdir="$path1"
31179 else
31180
31181 if test -d "$path2"; then
31182 dracutdir="$path2"
31183 else
31184 dracutdir="$default"
31185 fi
31186
31187
31188 fi
31189
31190
31191 fi
31192
31193
31194
31195 { $as_echo "$as_me:$LINENO: result: $dracutdir" >&5
31196 $as_echo "$dracutdir" >&6; }
31197
31198
31199 ZLIB=
31200
31201 if test "${ac_cv_header_zlib_h+set}" = set; then
31202 { $as_echo "$as_me:$LINENO: checking for zlib.h" >&5
31203 $as_echo_n "checking for zlib.h... " >&6; }
31204 if test "${ac_cv_header_zlib_h+set}" = set; then
31205 $as_echo_n "(cached) " >&6
31206 fi
31207 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
31208 $as_echo "$ac_cv_header_zlib_h" >&6; }
31209 else
31210 # Is the header compilable?
31211 { $as_echo "$as_me:$LINENO: checking zlib.h usability" >&5
31212 $as_echo_n "checking zlib.h usability... " >&6; }
31213 cat >conftest.$ac_ext <<_ACEOF
31214 /* confdefs.h. */
31215 _ACEOF
31216 cat confdefs.h >>conftest.$ac_ext
31217 cat >>conftest.$ac_ext <<_ACEOF
31218 /* end confdefs.h. */
31219 $ac_includes_default
31220 #include <zlib.h>
31221 _ACEOF
31222 rm -f conftest.$ac_objext
31223 if { (ac_try="$ac_compile"
31224 case "(($ac_try" in
31225 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31226 *) ac_try_echo=$ac_try;;
31227 esac
31228 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31229 $as_echo "$ac_try_echo") >&5
31230 (eval "$ac_compile") 2>conftest.er1
31231 ac_status=$?
31232 grep -v '^ *+' conftest.er1 >conftest.err
31233 rm -f conftest.er1
31234 cat conftest.err >&5
31235 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31236 (exit $ac_status); } && {
31237 test -z "$ac_c_werror_flag" ||
31238 test ! -s conftest.err
31239 } && test -s conftest.$ac_objext; then
31240 ac_header_compiler=yes
31241 else
31242 $as_echo "$as_me: failed program was:" >&5
31243 sed 's/^/| /' conftest.$ac_ext >&5
31244
31245 ac_header_compiler=no
31246 fi
31247
31248 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31249 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31250 $as_echo "$ac_header_compiler" >&6; }
31251
31252 # Is the header present?
31253 { $as_echo "$as_me:$LINENO: checking zlib.h presence" >&5
31254 $as_echo_n "checking zlib.h presence... " >&6; }
31255 cat >conftest.$ac_ext <<_ACEOF
31256 /* confdefs.h. */
31257 _ACEOF
31258 cat confdefs.h >>conftest.$ac_ext
31259 cat >>conftest.$ac_ext <<_ACEOF
31260 /* end confdefs.h. */
31261 #include <zlib.h>
31262 _ACEOF
31263 if { (ac_try="$ac_cpp conftest.$ac_ext"
31264 case "(($ac_try" in
31265 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31266 *) ac_try_echo=$ac_try;;
31267 esac
31268 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31269 $as_echo "$ac_try_echo") >&5
31270 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
31271 ac_status=$?
31272 grep -v '^ *+' conftest.er1 >conftest.err
31273 rm -f conftest.er1
31274 cat conftest.err >&5
31275 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31276 (exit $ac_status); } >/dev/null && {
31277 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
31278 test ! -s conftest.err
31279 }; then
31280 ac_header_preproc=yes
31281 else
31282 $as_echo "$as_me: failed program was:" >&5
31283 sed 's/^/| /' conftest.$ac_ext >&5
31284
31285 ac_header_preproc=no
31286 fi
31287
31288 rm -f conftest.err conftest.$ac_ext
31289 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31290 $as_echo "$ac_header_preproc" >&6; }
31291
31292 # So? What about this header?
31293 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31294 yes:no: )
31295 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
31296 $as_echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
31297 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result" >&5
31298 $as_echo "$as_me: WARNING: zlib.h: proceeding with the compiler's result" >&2;}
31299 ac_header_preproc=yes
31300 ;;
31301 no:yes:* )
31302 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
31303 $as_echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
31304 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5
31305 $as_echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;}
31306 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5
31307 $as_echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;}
31308 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&5
31309 $as_echo "$as_me: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
31310 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
31311 $as_echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;}
31312 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5
31313 $as_echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;}
31314
31315 ;;
31316 esac
31317 { $as_echo "$as_me:$LINENO: checking for zlib.h" >&5
31318 $as_echo_n "checking for zlib.h... " >&6; }
31319 if test "${ac_cv_header_zlib_h+set}" = set; then
31320 $as_echo_n "(cached) " >&6
31321 else
31322 ac_cv_header_zlib_h=$ac_header_preproc
31323 fi
31324 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
31325 $as_echo "$ac_cv_header_zlib_h" >&6; }
31326
31327 fi
31328 if test "x$ac_cv_header_zlib_h" = x""yes; then
31329 :
31330 else
31331 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
31332 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
31333 { { $as_echo "$as_me:$LINENO: error:
31334 *** zlib.h missing, zlib-devel package required
31335 See \`config.log' for more details." >&5
31336 $as_echo "$as_me: error:
31337 *** zlib.h missing, zlib-devel package required
31338 See \`config.log' for more details." >&2;}
31339 { (exit 1); exit 1; }; }; }
31340 fi
31341
31342
31343
31344 { $as_echo "$as_me:$LINENO: checking for library containing compress2" >&5
31345 $as_echo_n "checking for library containing compress2... " >&6; }
31346 if test "${ac_cv_search_compress2+set}" = set; then
31347 $as_echo_n "(cached) " >&6
31348 else
31349 ac_func_search_save_LIBS=$LIBS
31350 cat >conftest.$ac_ext <<_ACEOF
31351 /* confdefs.h. */
31352 _ACEOF
31353 cat confdefs.h >>conftest.$ac_ext
31354 cat >>conftest.$ac_ext <<_ACEOF
31355 /* end confdefs.h. */
31356
31357 /* Override any GCC internal prototype to avoid an error.
31358 Use char because int might match the return type of a GCC
31359 builtin and then its argument prototype would still apply. */
31360 #ifdef __cplusplus
31361 extern "C"
31362 #endif
31363 char compress2 ();
31364 int
31365 main ()
31366 {
31367 return compress2 ();
31368 ;
31369 return 0;
31370 }
31371 _ACEOF
31372 for ac_lib in '' z; do
31373 if test -z "$ac_lib"; then
31374 ac_res="none required"
31375 else
31376 ac_res=-l$ac_lib
31377 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
31378 fi
31379 rm -f conftest.$ac_objext conftest$ac_exeext
31380 if { (ac_try="$ac_link"
31381 case "(($ac_try" in
31382 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31383 *) ac_try_echo=$ac_try;;
31384 esac
31385 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31386 $as_echo "$ac_try_echo") >&5
31387 (eval "$ac_link") 2>conftest.er1
31388 ac_status=$?
31389 grep -v '^ *+' conftest.er1 >conftest.err
31390 rm -f conftest.er1
31391 cat conftest.err >&5
31392 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31393 (exit $ac_status); } && {
31394 test -z "$ac_c_werror_flag" ||
31395 test ! -s conftest.err
31396 } && test -s conftest$ac_exeext && {
31397 test "$cross_compiling" = yes ||
31398 $as_test_x conftest$ac_exeext
31399 }; then
31400 ac_cv_search_compress2=$ac_res
31401 else
31402 $as_echo "$as_me: failed program was:" >&5
31403 sed 's/^/| /' conftest.$ac_ext >&5
31404
31405
31406 fi
31407
31408 rm -rf conftest.dSYM
31409 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31410 conftest$ac_exeext
31411 if test "${ac_cv_search_compress2+set}" = set; then
31412 break
31413 fi
31414 done
31415 if test "${ac_cv_search_compress2+set}" = set; then
31416 :
31417 else
31418 ac_cv_search_compress2=no
31419 fi
31420 rm conftest.$ac_ext
31421 LIBS=$ac_func_search_save_LIBS
31422 fi
31423 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_compress2" >&5
31424 $as_echo "$ac_cv_search_compress2" >&6; }
31425 ac_res=$ac_cv_search_compress2
31426 if test "$ac_res" != no; then
31427 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
31428
31429 else
31430 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
31431 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
31432 { { $as_echo "$as_me:$LINENO: error:
31433 *** compress2() missing, zlib-devel package required
31434 See \`config.log' for more details." >&5
31435 $as_echo "$as_me: error:
31436 *** compress2() missing, zlib-devel package required
31437 See \`config.log' for more details." >&2;}
31438 { (exit 1); exit 1; }; }; }
31439 fi
31440
31441
31442 { $as_echo "$as_me:$LINENO: checking for library containing uncompress" >&5
31443 $as_echo_n "checking for library containing uncompress... " >&6; }
31444 if test "${ac_cv_search_uncompress+set}" = set; then
31445 $as_echo_n "(cached) " >&6
31446 else
31447 ac_func_search_save_LIBS=$LIBS
31448 cat >conftest.$ac_ext <<_ACEOF
31449 /* confdefs.h. */
31450 _ACEOF
31451 cat confdefs.h >>conftest.$ac_ext
31452 cat >>conftest.$ac_ext <<_ACEOF
31453 /* end confdefs.h. */
31454
31455 /* Override any GCC internal prototype to avoid an error.
31456 Use char because int might match the return type of a GCC
31457 builtin and then its argument prototype would still apply. */
31458 #ifdef __cplusplus
31459 extern "C"
31460 #endif
31461 char uncompress ();
31462 int
31463 main ()
31464 {
31465 return uncompress ();
31466 ;
31467 return 0;
31468 }
31469 _ACEOF
31470 for ac_lib in '' z; do
31471 if test -z "$ac_lib"; then
31472 ac_res="none required"
31473 else
31474 ac_res=-l$ac_lib
31475 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
31476 fi
31477 rm -f conftest.$ac_objext conftest$ac_exeext
31478 if { (ac_try="$ac_link"
31479 case "(($ac_try" in
31480 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31481 *) ac_try_echo=$ac_try;;
31482 esac
31483 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31484 $as_echo "$ac_try_echo") >&5
31485 (eval "$ac_link") 2>conftest.er1
31486 ac_status=$?
31487 grep -v '^ *+' conftest.er1 >conftest.err
31488 rm -f conftest.er1
31489 cat conftest.err >&5
31490 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31491 (exit $ac_status); } && {
31492 test -z "$ac_c_werror_flag" ||
31493 test ! -s conftest.err
31494 } && test -s conftest$ac_exeext && {
31495 test "$cross_compiling" = yes ||
31496 $as_test_x conftest$ac_exeext
31497 }; then
31498 ac_cv_search_uncompress=$ac_res
31499 else
31500 $as_echo "$as_me: failed program was:" >&5
31501 sed 's/^/| /' conftest.$ac_ext >&5
31502
31503
31504 fi
31505
31506 rm -rf conftest.dSYM
31507 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31508 conftest$ac_exeext
31509 if test "${ac_cv_search_uncompress+set}" = set; then
31510 break
31511 fi
31512 done
31513 if test "${ac_cv_search_uncompress+set}" = set; then
31514 :
31515 else
31516 ac_cv_search_uncompress=no
31517 fi
31518 rm conftest.$ac_ext
31519 LIBS=$ac_func_search_save_LIBS
31520 fi
31521 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_uncompress" >&5
31522 $as_echo "$ac_cv_search_uncompress" >&6; }
31523 ac_res=$ac_cv_search_uncompress
31524 if test "$ac_res" != no; then
31525 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
31526
31527 else
31528 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
31529 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
31530 { { $as_echo "$as_me:$LINENO: error:
31531 *** uncompress() missing, zlib-devel package required
31532 See \`config.log' for more details." >&5
31533 $as_echo "$as_me: error:
31534 *** uncompress() missing, zlib-devel package required
31535 See \`config.log' for more details." >&2;}
31536 { (exit 1); exit 1; }; }; }
31537 fi
31538
31539
31540 { $as_echo "$as_me:$LINENO: checking for library containing crc32" >&5
31541 $as_echo_n "checking for library containing crc32... " >&6; }
31542 if test "${ac_cv_search_crc32+set}" = set; then
31543 $as_echo_n "(cached) " >&6
31544 else
31545 ac_func_search_save_LIBS=$LIBS
31546 cat >conftest.$ac_ext <<_ACEOF
31547 /* confdefs.h. */
31548 _ACEOF
31549 cat confdefs.h >>conftest.$ac_ext
31550 cat >>conftest.$ac_ext <<_ACEOF
31551 /* end confdefs.h. */
31552
31553 /* Override any GCC internal prototype to avoid an error.
31554 Use char because int might match the return type of a GCC
31555 builtin and then its argument prototype would still apply. */
31556 #ifdef __cplusplus
31557 extern "C"
31558 #endif
31559 char crc32 ();
31560 int
31561 main ()
31562 {
31563 return crc32 ();
31564 ;
31565 return 0;
31566 }
31567 _ACEOF
31568 for ac_lib in '' z; do
31569 if test -z "$ac_lib"; then
31570 ac_res="none required"
31571 else
31572 ac_res=-l$ac_lib
31573 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
31574 fi
31575 rm -f conftest.$ac_objext conftest$ac_exeext
31576 if { (ac_try="$ac_link"
31577 case "(($ac_try" in
31578 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31579 *) ac_try_echo=$ac_try;;
31580 esac
31581 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31582 $as_echo "$ac_try_echo") >&5
31583 (eval "$ac_link") 2>conftest.er1
31584 ac_status=$?
31585 grep -v '^ *+' conftest.er1 >conftest.err
31586 rm -f conftest.er1
31587 cat conftest.err >&5
31588 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31589 (exit $ac_status); } && {
31590 test -z "$ac_c_werror_flag" ||
31591 test ! -s conftest.err
31592 } && test -s conftest$ac_exeext && {
31593 test "$cross_compiling" = yes ||
31594 $as_test_x conftest$ac_exeext
31595 }; then
31596 ac_cv_search_crc32=$ac_res
31597 else
31598 $as_echo "$as_me: failed program was:" >&5
31599 sed 's/^/| /' conftest.$ac_ext >&5
31600
31601
31602 fi
31603
31604 rm -rf conftest.dSYM
31605 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31606 conftest$ac_exeext
31607 if test "${ac_cv_search_crc32+set}" = set; then
31608 break
31609 fi
31610 done
31611 if test "${ac_cv_search_crc32+set}" = set; then
31612 :
31613 else
31614 ac_cv_search_crc32=no
31615 fi
31616 rm conftest.$ac_ext
31617 LIBS=$ac_func_search_save_LIBS
31618 fi
31619 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_crc32" >&5
31620 $as_echo "$ac_cv_search_crc32" >&6; }
31621 ac_res=$ac_cv_search_crc32
31622 if test "$ac_res" != no; then
31623 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
31624
31625 else
31626 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
31627 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
31628 { { $as_echo "$as_me:$LINENO: error:
31629 *** crc32() missing, zlib-devel package required
31630 See \`config.log' for more details." >&5
31631 $as_echo "$as_me: error:
31632 *** crc32() missing, zlib-devel package required
31633 See \`config.log' for more details." >&2;}
31634 { (exit 1); exit 1; }; }; }
31635 fi
31636
31637
31638 ZLIB="-lz"
31639
31640
31641 cat >>confdefs.h <<\_ACEOF
31642 #define HAVE_ZLIB 1
31643 _ACEOF
31644
31645
31646
31647 LIBUUID=
31648
31649 if test "${ac_cv_header_uuid_uuid_h+set}" = set; then
31650 { $as_echo "$as_me:$LINENO: checking for uuid/uuid.h" >&5
31651 $as_echo_n "checking for uuid/uuid.h... " >&6; }
31652 if test "${ac_cv_header_uuid_uuid_h+set}" = set; then
31653 $as_echo_n "(cached) " >&6
31654 fi
31655 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_uuid_uuid_h" >&5
31656 $as_echo "$ac_cv_header_uuid_uuid_h" >&6; }
31657 else
31658 # Is the header compilable?
31659 { $as_echo "$as_me:$LINENO: checking uuid/uuid.h usability" >&5
31660 $as_echo_n "checking uuid/uuid.h usability... " >&6; }
31661 cat >conftest.$ac_ext <<_ACEOF
31662 /* confdefs.h. */
31663 _ACEOF
31664 cat confdefs.h >>conftest.$ac_ext
31665 cat >>conftest.$ac_ext <<_ACEOF
31666 /* end confdefs.h. */
31667 $ac_includes_default
31668 #include <uuid/uuid.h>
31669 _ACEOF
31670 rm -f conftest.$ac_objext
31671 if { (ac_try="$ac_compile"
31672 case "(($ac_try" in
31673 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31674 *) ac_try_echo=$ac_try;;
31675 esac
31676 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31677 $as_echo "$ac_try_echo") >&5
31678 (eval "$ac_compile") 2>conftest.er1
31679 ac_status=$?
31680 grep -v '^ *+' conftest.er1 >conftest.err
31681 rm -f conftest.er1
31682 cat conftest.err >&5
31683 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31684 (exit $ac_status); } && {
31685 test -z "$ac_c_werror_flag" ||
31686 test ! -s conftest.err
31687 } && test -s conftest.$ac_objext; then
31688 ac_header_compiler=yes
31689 else
31690 $as_echo "$as_me: failed program was:" >&5
31691 sed 's/^/| /' conftest.$ac_ext >&5
31692
31693 ac_header_compiler=no
31694 fi
31695
31696 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31697 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31698 $as_echo "$ac_header_compiler" >&6; }
31699
31700 # Is the header present?
31701 { $as_echo "$as_me:$LINENO: checking uuid/uuid.h presence" >&5
31702 $as_echo_n "checking uuid/uuid.h presence... " >&6; }
31703 cat >conftest.$ac_ext <<_ACEOF
31704 /* confdefs.h. */
31705 _ACEOF
31706 cat confdefs.h >>conftest.$ac_ext
31707 cat >>conftest.$ac_ext <<_ACEOF
31708 /* end confdefs.h. */
31709 #include <uuid/uuid.h>
31710 _ACEOF
31711 if { (ac_try="$ac_cpp conftest.$ac_ext"
31712 case "(($ac_try" in
31713 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31714 *) ac_try_echo=$ac_try;;
31715 esac
31716 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31717 $as_echo "$ac_try_echo") >&5
31718 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
31719 ac_status=$?
31720 grep -v '^ *+' conftest.er1 >conftest.err
31721 rm -f conftest.er1
31722 cat conftest.err >&5
31723 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31724 (exit $ac_status); } >/dev/null && {
31725 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
31726 test ! -s conftest.err
31727 }; then
31728 ac_header_preproc=yes
31729 else
31730 $as_echo "$as_me: failed program was:" >&5
31731 sed 's/^/| /' conftest.$ac_ext >&5
31732
31733 ac_header_preproc=no
31734 fi
31735
31736 rm -f conftest.err conftest.$ac_ext
31737 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31738 $as_echo "$ac_header_preproc" >&6; }
31739
31740 # So? What about this header?
31741 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31742 yes:no: )
31743 { $as_echo "$as_me:$LINENO: WARNING: uuid/uuid.h: accepted by the compiler, rejected by the preprocessor!" >&5
31744 $as_echo "$as_me: WARNING: uuid/uuid.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
31745 { $as_echo "$as_me:$LINENO: WARNING: uuid/uuid.h: proceeding with the compiler's result" >&5
31746 $as_echo "$as_me: WARNING: uuid/uuid.h: proceeding with the compiler's result" >&2;}
31747 ac_header_preproc=yes
31748 ;;
31749 no:yes:* )
31750 { $as_echo "$as_me:$LINENO: WARNING: uuid/uuid.h: present but cannot be compiled" >&5
31751 $as_echo "$as_me: WARNING: uuid/uuid.h: present but cannot be compiled" >&2;}
31752 { $as_echo "$as_me:$LINENO: WARNING: uuid/uuid.h: check for missing prerequisite headers?" >&5
31753 $as_echo "$as_me: WARNING: uuid/uuid.h: check for missing prerequisite headers?" >&2;}
31754 { $as_echo "$as_me:$LINENO: WARNING: uuid/uuid.h: see the Autoconf documentation" >&5
31755 $as_echo "$as_me: WARNING: uuid/uuid.h: see the Autoconf documentation" >&2;}
31756 { $as_echo "$as_me:$LINENO: WARNING: uuid/uuid.h: section \"Present But Cannot Be Compiled\"" >&5
31757 $as_echo "$as_me: WARNING: uuid/uuid.h: section \"Present But Cannot Be Compiled\"" >&2;}
31758 { $as_echo "$as_me:$LINENO: WARNING: uuid/uuid.h: proceeding with the preprocessor's result" >&5
31759 $as_echo "$as_me: WARNING: uuid/uuid.h: proceeding with the preprocessor's result" >&2;}
31760 { $as_echo "$as_me:$LINENO: WARNING: uuid/uuid.h: in the future, the compiler will take precedence" >&5
31761 $as_echo "$as_me: WARNING: uuid/uuid.h: in the future, the compiler will take precedence" >&2;}
31762
31763 ;;
31764 esac
31765 { $as_echo "$as_me:$LINENO: checking for uuid/uuid.h" >&5
31766 $as_echo_n "checking for uuid/uuid.h... " >&6; }
31767 if test "${ac_cv_header_uuid_uuid_h+set}" = set; then
31768 $as_echo_n "(cached) " >&6
31769 else
31770 ac_cv_header_uuid_uuid_h=$ac_header_preproc
31771 fi
31772 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_uuid_uuid_h" >&5
31773 $as_echo "$ac_cv_header_uuid_uuid_h" >&6; }
31774
31775 fi
31776 if test "x$ac_cv_header_uuid_uuid_h" = x""yes; then
31777 :
31778 else
31779 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
31780 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
31781 { { $as_echo "$as_me:$LINENO: error:
31782 *** uuid/uuid.h missing, libuuid-devel package required
31783 See \`config.log' for more details." >&5
31784 $as_echo "$as_me: error:
31785 *** uuid/uuid.h missing, libuuid-devel package required
31786 See \`config.log' for more details." >&2;}
31787 { (exit 1); exit 1; }; }; }
31788 fi
31789
31790
31791
31792 { $as_echo "$as_me:$LINENO: checking for library containing uuid_generate" >&5
31793 $as_echo_n "checking for library containing uuid_generate... " >&6; }
31794 if test "${ac_cv_search_uuid_generate+set}" = set; then
31795 $as_echo_n "(cached) " >&6
31796 else
31797 ac_func_search_save_LIBS=$LIBS
31798 cat >conftest.$ac_ext <<_ACEOF
31799 /* confdefs.h. */
31800 _ACEOF
31801 cat confdefs.h >>conftest.$ac_ext
31802 cat >>conftest.$ac_ext <<_ACEOF
31803 /* end confdefs.h. */
31804
31805 /* Override any GCC internal prototype to avoid an error.
31806 Use char because int might match the return type of a GCC
31807 builtin and then its argument prototype would still apply. */
31808 #ifdef __cplusplus
31809 extern "C"
31810 #endif
31811 char uuid_generate ();
31812 int
31813 main ()
31814 {
31815 return uuid_generate ();
31816 ;
31817 return 0;
31818 }
31819 _ACEOF
31820 for ac_lib in '' uuid; do
31821 if test -z "$ac_lib"; then
31822 ac_res="none required"
31823 else
31824 ac_res=-l$ac_lib
31825 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
31826 fi
31827 rm -f conftest.$ac_objext conftest$ac_exeext
31828 if { (ac_try="$ac_link"
31829 case "(($ac_try" in
31830 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31831 *) ac_try_echo=$ac_try;;
31832 esac
31833 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31834 $as_echo "$ac_try_echo") >&5
31835 (eval "$ac_link") 2>conftest.er1
31836 ac_status=$?
31837 grep -v '^ *+' conftest.er1 >conftest.err
31838 rm -f conftest.er1
31839 cat conftest.err >&5
31840 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31841 (exit $ac_status); } && {
31842 test -z "$ac_c_werror_flag" ||
31843 test ! -s conftest.err
31844 } && test -s conftest$ac_exeext && {
31845 test "$cross_compiling" = yes ||
31846 $as_test_x conftest$ac_exeext
31847 }; then
31848 ac_cv_search_uuid_generate=$ac_res
31849 else
31850 $as_echo "$as_me: failed program was:" >&5
31851 sed 's/^/| /' conftest.$ac_ext >&5
31852
31853
31854 fi
31855
31856 rm -rf conftest.dSYM
31857 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31858 conftest$ac_exeext
31859 if test "${ac_cv_search_uuid_generate+set}" = set; then
31860 break
31861 fi
31862 done
31863 if test "${ac_cv_search_uuid_generate+set}" = set; then
31864 :
31865 else
31866 ac_cv_search_uuid_generate=no
31867 fi
31868 rm conftest.$ac_ext
31869 LIBS=$ac_func_search_save_LIBS
31870 fi
31871 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_uuid_generate" >&5
31872 $as_echo "$ac_cv_search_uuid_generate" >&6; }
31873 ac_res=$ac_cv_search_uuid_generate
31874 if test "$ac_res" != no; then
31875 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
31876
31877 else
31878 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
31879 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
31880 { { $as_echo "$as_me:$LINENO: error:
31881 *** uuid_generate() missing, libuuid-devel package required
31882 See \`config.log' for more details." >&5
31883 $as_echo "$as_me: error:
31884 *** uuid_generate() missing, libuuid-devel package required
31885 See \`config.log' for more details." >&2;}
31886 { (exit 1); exit 1; }; }; }
31887 fi
31888
31889
31890 { $as_echo "$as_me:$LINENO: checking for library containing uuid_is_null" >&5
31891 $as_echo_n "checking for library containing uuid_is_null... " >&6; }
31892 if test "${ac_cv_search_uuid_is_null+set}" = set; then
31893 $as_echo_n "(cached) " >&6
31894 else
31895 ac_func_search_save_LIBS=$LIBS
31896 cat >conftest.$ac_ext <<_ACEOF
31897 /* confdefs.h. */
31898 _ACEOF
31899 cat confdefs.h >>conftest.$ac_ext
31900 cat >>conftest.$ac_ext <<_ACEOF
31901 /* end confdefs.h. */
31902
31903 /* Override any GCC internal prototype to avoid an error.
31904 Use char because int might match the return type of a GCC
31905 builtin and then its argument prototype would still apply. */
31906 #ifdef __cplusplus
31907 extern "C"
31908 #endif
31909 char uuid_is_null ();
31910 int
31911 main ()
31912 {
31913 return uuid_is_null ();
31914 ;
31915 return 0;
31916 }
31917 _ACEOF
31918 for ac_lib in '' uuid; do
31919 if test -z "$ac_lib"; then
31920 ac_res="none required"
31921 else
31922 ac_res=-l$ac_lib
31923 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
31924 fi
31925 rm -f conftest.$ac_objext conftest$ac_exeext
31926 if { (ac_try="$ac_link"
31927 case "(($ac_try" in
31928 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31929 *) ac_try_echo=$ac_try;;
31930 esac
31931 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31932 $as_echo "$ac_try_echo") >&5
31933 (eval "$ac_link") 2>conftest.er1
31934 ac_status=$?
31935 grep -v '^ *+' conftest.er1 >conftest.err
31936 rm -f conftest.er1
31937 cat conftest.err >&5
31938 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31939 (exit $ac_status); } && {
31940 test -z "$ac_c_werror_flag" ||
31941 test ! -s conftest.err
31942 } && test -s conftest$ac_exeext && {
31943 test "$cross_compiling" = yes ||
31944 $as_test_x conftest$ac_exeext
31945 }; then
31946 ac_cv_search_uuid_is_null=$ac_res
31947 else
31948 $as_echo "$as_me: failed program was:" >&5
31949 sed 's/^/| /' conftest.$ac_ext >&5
31950
31951
31952 fi
31953
31954 rm -rf conftest.dSYM
31955 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31956 conftest$ac_exeext
31957 if test "${ac_cv_search_uuid_is_null+set}" = set; then
31958 break
31959 fi
31960 done
31961 if test "${ac_cv_search_uuid_is_null+set}" = set; then
31962 :
31963 else
31964 ac_cv_search_uuid_is_null=no
31965 fi
31966 rm conftest.$ac_ext
31967 LIBS=$ac_func_search_save_LIBS
31968 fi
31969 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_uuid_is_null" >&5
31970 $as_echo "$ac_cv_search_uuid_is_null" >&6; }
31971 ac_res=$ac_cv_search_uuid_is_null
31972 if test "$ac_res" != no; then
31973 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
31974
31975 else
31976 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
31977 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
31978 { { $as_echo "$as_me:$LINENO: error:
31979 *** uuid_is_null() missing, libuuid-devel package required
31980 See \`config.log' for more details." >&5
31981 $as_echo "$as_me: error:
31982 *** uuid_is_null() missing, libuuid-devel package required
31983 See \`config.log' for more details." >&2;}
31984 { (exit 1); exit 1; }; }; }
31985 fi
31986
31987
31988 LIBUUID="-luuid"
31989
31990
31991 cat >>confdefs.h <<\_ACEOF
31992 #define HAVE_LIBUUID 1
31993 _ACEOF
31994
31995
31996
31997
31998 # Check whether --with-tirpc was given.
31999 if test "${with_tirpc+set}" = set; then
32000 withval=$with_tirpc;
32001 else
32002 with_tirpc=check
32003 fi
32004
32005
32006 LIBTIRPC=
32007 LIBTIRPC_CFLAGS=
32008
32009 if test "x$with_tirpc" != xno; then
32010 { $as_echo "$as_me:$LINENO: checking for xdrmem_create in -ltirpc" >&5
32011 $as_echo_n "checking for xdrmem_create in -ltirpc... " >&6; }
32012 if test "${ac_cv_lib_tirpc_xdrmem_create+set}" = set; then
32013 $as_echo_n "(cached) " >&6
32014 else
32015 ac_check_lib_save_LIBS=$LIBS
32016 LIBS="-ltirpc $LIBS"
32017 cat >conftest.$ac_ext <<_ACEOF
32018 /* confdefs.h. */
32019 _ACEOF
32020 cat confdefs.h >>conftest.$ac_ext
32021 cat >>conftest.$ac_ext <<_ACEOF
32022 /* end confdefs.h. */
32023
32024 /* Override any GCC internal prototype to avoid an error.
32025 Use char because int might match the return type of a GCC
32026 builtin and then its argument prototype would still apply. */
32027 #ifdef __cplusplus
32028 extern "C"
32029 #endif
32030 char xdrmem_create ();
32031 int
32032 main ()
32033 {
32034 return xdrmem_create ();
32035 ;
32036 return 0;
32037 }
32038 _ACEOF
32039 rm -f conftest.$ac_objext conftest$ac_exeext
32040 if { (ac_try="$ac_link"
32041 case "(($ac_try" in
32042 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32043 *) ac_try_echo=$ac_try;;
32044 esac
32045 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32046 $as_echo "$ac_try_echo") >&5
32047 (eval "$ac_link") 2>conftest.er1
32048 ac_status=$?
32049 grep -v '^ *+' conftest.er1 >conftest.err
32050 rm -f conftest.er1
32051 cat conftest.err >&5
32052 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32053 (exit $ac_status); } && {
32054 test -z "$ac_c_werror_flag" ||
32055 test ! -s conftest.err
32056 } && test -s conftest$ac_exeext && {
32057 test "$cross_compiling" = yes ||
32058 $as_test_x conftest$ac_exeext
32059 }; then
32060 ac_cv_lib_tirpc_xdrmem_create=yes
32061 else
32062 $as_echo "$as_me: failed program was:" >&5
32063 sed 's/^/| /' conftest.$ac_ext >&5
32064
32065 ac_cv_lib_tirpc_xdrmem_create=no
32066 fi
32067
32068 rm -rf conftest.dSYM
32069 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32070 conftest$ac_exeext conftest.$ac_ext
32071 LIBS=$ac_check_lib_save_LIBS
32072 fi
32073 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_tirpc_xdrmem_create" >&5
32074 $as_echo "$ac_cv_lib_tirpc_xdrmem_create" >&6; }
32075 if test "x$ac_cv_lib_tirpc_xdrmem_create" = x""yes; then
32076 LIBTIRPC=-ltirpc
32077
32078 LIBTIRPC_CFLAGS=-I/usr/include/tirpc
32079
32080
32081 cat >>confdefs.h <<\_ACEOF
32082 #define HAVE_LIBTIRPC 1
32083 _ACEOF
32084
32085
32086 else
32087 if test "x$with_tirpc" != xcheck; then
32088 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
32089 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
32090 { { $as_echo "$as_me:$LINENO: error: --with-tirpc was given, but test for tirpc failed
32091 See \`config.log' for more details." >&5
32092 $as_echo "$as_me: error: --with-tirpc was given, but test for tirpc failed
32093 See \`config.log' for more details." >&2;}
32094 { (exit 1); exit 1; }; }; }
32095 fi
32096 { $as_echo "$as_me:$LINENO: checking for library containing xdrmem_create" >&5
32097 $as_echo_n "checking for library containing xdrmem_create... " >&6; }
32098 if test "${ac_cv_search_xdrmem_create+set}" = set; then
32099 $as_echo_n "(cached) " >&6
32100 else
32101 ac_func_search_save_LIBS=$LIBS
32102 cat >conftest.$ac_ext <<_ACEOF
32103 /* confdefs.h. */
32104 _ACEOF
32105 cat confdefs.h >>conftest.$ac_ext
32106 cat >>conftest.$ac_ext <<_ACEOF
32107 /* end confdefs.h. */
32108
32109 /* Override any GCC internal prototype to avoid an error.
32110 Use char because int might match the return type of a GCC
32111 builtin and then its argument prototype would still apply. */
32112 #ifdef __cplusplus
32113 extern "C"
32114 #endif
32115 char xdrmem_create ();
32116 int
32117 main ()
32118 {
32119 return xdrmem_create ();
32120 ;
32121 return 0;
32122 }
32123 _ACEOF
32124 for ac_lib in '' tirpc; do
32125 if test -z "$ac_lib"; then
32126 ac_res="none required"
32127 else
32128 ac_res=-l$ac_lib
32129 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
32130 fi
32131 rm -f conftest.$ac_objext conftest$ac_exeext
32132 if { (ac_try="$ac_link"
32133 case "(($ac_try" in
32134 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32135 *) ac_try_echo=$ac_try;;
32136 esac
32137 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32138 $as_echo "$ac_try_echo") >&5
32139 (eval "$ac_link") 2>conftest.er1
32140 ac_status=$?
32141 grep -v '^ *+' conftest.er1 >conftest.err
32142 rm -f conftest.er1
32143 cat conftest.err >&5
32144 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32145 (exit $ac_status); } && {
32146 test -z "$ac_c_werror_flag" ||
32147 test ! -s conftest.err
32148 } && test -s conftest$ac_exeext && {
32149 test "$cross_compiling" = yes ||
32150 $as_test_x conftest$ac_exeext
32151 }; then
32152 ac_cv_search_xdrmem_create=$ac_res
32153 else
32154 $as_echo "$as_me: failed program was:" >&5
32155 sed 's/^/| /' conftest.$ac_ext >&5
32156
32157
32158 fi
32159
32160 rm -rf conftest.dSYM
32161 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32162 conftest$ac_exeext
32163 if test "${ac_cv_search_xdrmem_create+set}" = set; then
32164 break
32165 fi
32166 done
32167 if test "${ac_cv_search_xdrmem_create+set}" = set; then
32168 :
32169 else
32170 ac_cv_search_xdrmem_create=no
32171 fi
32172 rm conftest.$ac_ext
32173 LIBS=$ac_func_search_save_LIBS
32174 fi
32175 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_xdrmem_create" >&5
32176 $as_echo "$ac_cv_search_xdrmem_create" >&6; }
32177 ac_res=$ac_cv_search_xdrmem_create
32178 if test "$ac_res" != no; then
32179 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
32180
32181 else
32182
32183 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
32184 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
32185 { { $as_echo "$as_me:$LINENO: error: xdrmem_create() requires tirpc or libc
32186 See \`config.log' for more details." >&5
32187 $as_echo "$as_me: error: xdrmem_create() requires tirpc or libc
32188 See \`config.log' for more details." >&2;}
32189 { (exit 1); exit 1; }; }; }
32190 fi
32191
32192
32193 fi
32194
32195 else
32196 { $as_echo "$as_me:$LINENO: checking for library containing xdrmem_create" >&5
32197 $as_echo_n "checking for library containing xdrmem_create... " >&6; }
32198 if test "${ac_cv_search_xdrmem_create+set}" = set; then
32199 $as_echo_n "(cached) " >&6
32200 else
32201 ac_func_search_save_LIBS=$LIBS
32202 cat >conftest.$ac_ext <<_ACEOF
32203 /* confdefs.h. */
32204 _ACEOF
32205 cat confdefs.h >>conftest.$ac_ext
32206 cat >>conftest.$ac_ext <<_ACEOF
32207 /* end confdefs.h. */
32208
32209 /* Override any GCC internal prototype to avoid an error.
32210 Use char because int might match the return type of a GCC
32211 builtin and then its argument prototype would still apply. */
32212 #ifdef __cplusplus
32213 extern "C"
32214 #endif
32215 char xdrmem_create ();
32216 int
32217 main ()
32218 {
32219 return xdrmem_create ();
32220 ;
32221 return 0;
32222 }
32223 _ACEOF
32224 for ac_lib in '' tirpc; do
32225 if test -z "$ac_lib"; then
32226 ac_res="none required"
32227 else
32228 ac_res=-l$ac_lib
32229 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
32230 fi
32231 rm -f conftest.$ac_objext conftest$ac_exeext
32232 if { (ac_try="$ac_link"
32233 case "(($ac_try" in
32234 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32235 *) ac_try_echo=$ac_try;;
32236 esac
32237 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32238 $as_echo "$ac_try_echo") >&5
32239 (eval "$ac_link") 2>conftest.er1
32240 ac_status=$?
32241 grep -v '^ *+' conftest.er1 >conftest.err
32242 rm -f conftest.er1
32243 cat conftest.err >&5
32244 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32245 (exit $ac_status); } && {
32246 test -z "$ac_c_werror_flag" ||
32247 test ! -s conftest.err
32248 } && test -s conftest$ac_exeext && {
32249 test "$cross_compiling" = yes ||
32250 $as_test_x conftest$ac_exeext
32251 }; then
32252 ac_cv_search_xdrmem_create=$ac_res
32253 else
32254 $as_echo "$as_me: failed program was:" >&5
32255 sed 's/^/| /' conftest.$ac_ext >&5
32256
32257
32258 fi
32259
32260 rm -rf conftest.dSYM
32261 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32262 conftest$ac_exeext
32263 if test "${ac_cv_search_xdrmem_create+set}" = set; then
32264 break
32265 fi
32266 done
32267 if test "${ac_cv_search_xdrmem_create+set}" = set; then
32268 :
32269 else
32270 ac_cv_search_xdrmem_create=no
32271 fi
32272 rm conftest.$ac_ext
32273 LIBS=$ac_func_search_save_LIBS
32274 fi
32275 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_xdrmem_create" >&5
32276 $as_echo "$ac_cv_search_xdrmem_create" >&6; }
32277 ac_res=$ac_cv_search_xdrmem_create
32278 if test "$ac_res" != no; then
32279 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
32280
32281 else
32282
32283 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
32284 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
32285 { { $as_echo "$as_me:$LINENO: error: xdrmem_create() requires libc
32286 See \`config.log' for more details." >&5
32287 $as_echo "$as_me: error: xdrmem_create() requires libc
32288 See \`config.log' for more details." >&2;}
32289 { (exit 1); exit 1; }; }; }
32290 fi
32291
32292
32293 fi
32294
32295
32296
32297 LIBBLKID=
32298
32299 if test "${ac_cv_header_blkid_blkid_h+set}" = set; then
32300 { $as_echo "$as_me:$LINENO: checking for blkid/blkid.h" >&5
32301 $as_echo_n "checking for blkid/blkid.h... " >&6; }
32302 if test "${ac_cv_header_blkid_blkid_h+set}" = set; then
32303 $as_echo_n "(cached) " >&6
32304 fi
32305 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_blkid_blkid_h" >&5
32306 $as_echo "$ac_cv_header_blkid_blkid_h" >&6; }
32307 else
32308 # Is the header compilable?
32309 { $as_echo "$as_me:$LINENO: checking blkid/blkid.h usability" >&5
32310 $as_echo_n "checking blkid/blkid.h usability... " >&6; }
32311 cat >conftest.$ac_ext <<_ACEOF
32312 /* confdefs.h. */
32313 _ACEOF
32314 cat confdefs.h >>conftest.$ac_ext
32315 cat >>conftest.$ac_ext <<_ACEOF
32316 /* end confdefs.h. */
32317 $ac_includes_default
32318 #include <blkid/blkid.h>
32319 _ACEOF
32320 rm -f conftest.$ac_objext
32321 if { (ac_try="$ac_compile"
32322 case "(($ac_try" in
32323 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32324 *) ac_try_echo=$ac_try;;
32325 esac
32326 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32327 $as_echo "$ac_try_echo") >&5
32328 (eval "$ac_compile") 2>conftest.er1
32329 ac_status=$?
32330 grep -v '^ *+' conftest.er1 >conftest.err
32331 rm -f conftest.er1
32332 cat conftest.err >&5
32333 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32334 (exit $ac_status); } && {
32335 test -z "$ac_c_werror_flag" ||
32336 test ! -s conftest.err
32337 } && test -s conftest.$ac_objext; then
32338 ac_header_compiler=yes
32339 else
32340 $as_echo "$as_me: failed program was:" >&5
32341 sed 's/^/| /' conftest.$ac_ext >&5
32342
32343 ac_header_compiler=no
32344 fi
32345
32346 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32347 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
32348 $as_echo "$ac_header_compiler" >&6; }
32349
32350 # Is the header present?
32351 { $as_echo "$as_me:$LINENO: checking blkid/blkid.h presence" >&5
32352 $as_echo_n "checking blkid/blkid.h presence... " >&6; }
32353 cat >conftest.$ac_ext <<_ACEOF
32354 /* confdefs.h. */
32355 _ACEOF
32356 cat confdefs.h >>conftest.$ac_ext
32357 cat >>conftest.$ac_ext <<_ACEOF
32358 /* end confdefs.h. */
32359 #include <blkid/blkid.h>
32360 _ACEOF
32361 if { (ac_try="$ac_cpp conftest.$ac_ext"
32362 case "(($ac_try" in
32363 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32364 *) ac_try_echo=$ac_try;;
32365 esac
32366 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32367 $as_echo "$ac_try_echo") >&5
32368 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
32369 ac_status=$?
32370 grep -v '^ *+' conftest.er1 >conftest.err
32371 rm -f conftest.er1
32372 cat conftest.err >&5
32373 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32374 (exit $ac_status); } >/dev/null && {
32375 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
32376 test ! -s conftest.err
32377 }; then
32378 ac_header_preproc=yes
32379 else
32380 $as_echo "$as_me: failed program was:" >&5
32381 sed 's/^/| /' conftest.$ac_ext >&5
32382
32383 ac_header_preproc=no
32384 fi
32385
32386 rm -f conftest.err conftest.$ac_ext
32387 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
32388 $as_echo "$ac_header_preproc" >&6; }
32389
32390 # So? What about this header?
32391 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
32392 yes:no: )
32393 { $as_echo "$as_me:$LINENO: WARNING: blkid/blkid.h: accepted by the compiler, rejected by the preprocessor!" >&5
32394 $as_echo "$as_me: WARNING: blkid/blkid.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
32395 { $as_echo "$as_me:$LINENO: WARNING: blkid/blkid.h: proceeding with the compiler's result" >&5
32396 $as_echo "$as_me: WARNING: blkid/blkid.h: proceeding with the compiler's result" >&2;}
32397 ac_header_preproc=yes
32398 ;;
32399 no:yes:* )
32400 { $as_echo "$as_me:$LINENO: WARNING: blkid/blkid.h: present but cannot be compiled" >&5
32401 $as_echo "$as_me: WARNING: blkid/blkid.h: present but cannot be compiled" >&2;}
32402 { $as_echo "$as_me:$LINENO: WARNING: blkid/blkid.h: check for missing prerequisite headers?" >&5
32403 $as_echo "$as_me: WARNING: blkid/blkid.h: check for missing prerequisite headers?" >&2;}
32404 { $as_echo "$as_me:$LINENO: WARNING: blkid/blkid.h: see the Autoconf documentation" >&5
32405 $as_echo "$as_me: WARNING: blkid/blkid.h: see the Autoconf documentation" >&2;}
32406 { $as_echo "$as_me:$LINENO: WARNING: blkid/blkid.h: section \"Present But Cannot Be Compiled\"" >&5
32407 $as_echo "$as_me: WARNING: blkid/blkid.h: section \"Present But Cannot Be Compiled\"" >&2;}
32408 { $as_echo "$as_me:$LINENO: WARNING: blkid/blkid.h: proceeding with the preprocessor's result" >&5
32409 $as_echo "$as_me: WARNING: blkid/blkid.h: proceeding with the preprocessor's result" >&2;}
32410 { $as_echo "$as_me:$LINENO: WARNING: blkid/blkid.h: in the future, the compiler will take precedence" >&5
32411 $as_echo "$as_me: WARNING: blkid/blkid.h: in the future, the compiler will take precedence" >&2;}
32412
32413 ;;
32414 esac
32415 { $as_echo "$as_me:$LINENO: checking for blkid/blkid.h" >&5
32416 $as_echo_n "checking for blkid/blkid.h... " >&6; }
32417 if test "${ac_cv_header_blkid_blkid_h+set}" = set; then
32418 $as_echo_n "(cached) " >&6
32419 else
32420 ac_cv_header_blkid_blkid_h=$ac_header_preproc
32421 fi
32422 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_blkid_blkid_h" >&5
32423 $as_echo "$ac_cv_header_blkid_blkid_h" >&6; }
32424
32425 fi
32426 if test "x$ac_cv_header_blkid_blkid_h" = x""yes; then
32427 :
32428 else
32429 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
32430 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
32431 { { $as_echo "$as_me:$LINENO: error:
32432 *** blkid.h missing, libblkid-devel package required
32433 See \`config.log' for more details." >&5
32434 $as_echo "$as_me: error:
32435 *** blkid.h missing, libblkid-devel package required
32436 See \`config.log' for more details." >&2;}
32437 { (exit 1); exit 1; }; }; }
32438 fi
32439
32440
32441
32442 LIBBLKID="-lblkid"
32443
32444
32445 cat >>confdefs.h <<\_ACEOF
32446 #define HAVE_LIBBLKID 1
32447 _ACEOF
32448
32449
32450
32451 LIBUDEV=
32452
32453 if test "${ac_cv_header_libudev_h+set}" = set; then
32454 { $as_echo "$as_me:$LINENO: checking for libudev.h" >&5
32455 $as_echo_n "checking for libudev.h... " >&6; }
32456 if test "${ac_cv_header_libudev_h+set}" = set; then
32457 $as_echo_n "(cached) " >&6
32458 fi
32459 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_libudev_h" >&5
32460 $as_echo "$ac_cv_header_libudev_h" >&6; }
32461 else
32462 # Is the header compilable?
32463 { $as_echo "$as_me:$LINENO: checking libudev.h usability" >&5
32464 $as_echo_n "checking libudev.h usability... " >&6; }
32465 cat >conftest.$ac_ext <<_ACEOF
32466 /* confdefs.h. */
32467 _ACEOF
32468 cat confdefs.h >>conftest.$ac_ext
32469 cat >>conftest.$ac_ext <<_ACEOF
32470 /* end confdefs.h. */
32471 $ac_includes_default
32472 #include <libudev.h>
32473 _ACEOF
32474 rm -f conftest.$ac_objext
32475 if { (ac_try="$ac_compile"
32476 case "(($ac_try" in
32477 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32478 *) ac_try_echo=$ac_try;;
32479 esac
32480 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32481 $as_echo "$ac_try_echo") >&5
32482 (eval "$ac_compile") 2>conftest.er1
32483 ac_status=$?
32484 grep -v '^ *+' conftest.er1 >conftest.err
32485 rm -f conftest.er1
32486 cat conftest.err >&5
32487 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32488 (exit $ac_status); } && {
32489 test -z "$ac_c_werror_flag" ||
32490 test ! -s conftest.err
32491 } && test -s conftest.$ac_objext; then
32492 ac_header_compiler=yes
32493 else
32494 $as_echo "$as_me: failed program was:" >&5
32495 sed 's/^/| /' conftest.$ac_ext >&5
32496
32497 ac_header_compiler=no
32498 fi
32499
32500 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32501 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
32502 $as_echo "$ac_header_compiler" >&6; }
32503
32504 # Is the header present?
32505 { $as_echo "$as_me:$LINENO: checking libudev.h presence" >&5
32506 $as_echo_n "checking libudev.h presence... " >&6; }
32507 cat >conftest.$ac_ext <<_ACEOF
32508 /* confdefs.h. */
32509 _ACEOF
32510 cat confdefs.h >>conftest.$ac_ext
32511 cat >>conftest.$ac_ext <<_ACEOF
32512 /* end confdefs.h. */
32513 #include <libudev.h>
32514 _ACEOF
32515 if { (ac_try="$ac_cpp conftest.$ac_ext"
32516 case "(($ac_try" in
32517 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32518 *) ac_try_echo=$ac_try;;
32519 esac
32520 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32521 $as_echo "$ac_try_echo") >&5
32522 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
32523 ac_status=$?
32524 grep -v '^ *+' conftest.er1 >conftest.err
32525 rm -f conftest.er1
32526 cat conftest.err >&5
32527 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32528 (exit $ac_status); } >/dev/null && {
32529 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
32530 test ! -s conftest.err
32531 }; then
32532 ac_header_preproc=yes
32533 else
32534 $as_echo "$as_me: failed program was:" >&5
32535 sed 's/^/| /' conftest.$ac_ext >&5
32536
32537 ac_header_preproc=no
32538 fi
32539
32540 rm -f conftest.err conftest.$ac_ext
32541 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
32542 $as_echo "$ac_header_preproc" >&6; }
32543
32544 # So? What about this header?
32545 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
32546 yes:no: )
32547 { $as_echo "$as_me:$LINENO: WARNING: libudev.h: accepted by the compiler, rejected by the preprocessor!" >&5
32548 $as_echo "$as_me: WARNING: libudev.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
32549 { $as_echo "$as_me:$LINENO: WARNING: libudev.h: proceeding with the compiler's result" >&5
32550 $as_echo "$as_me: WARNING: libudev.h: proceeding with the compiler's result" >&2;}
32551 ac_header_preproc=yes
32552 ;;
32553 no:yes:* )
32554 { $as_echo "$as_me:$LINENO: WARNING: libudev.h: present but cannot be compiled" >&5
32555 $as_echo "$as_me: WARNING: libudev.h: present but cannot be compiled" >&2;}
32556 { $as_echo "$as_me:$LINENO: WARNING: libudev.h: check for missing prerequisite headers?" >&5
32557 $as_echo "$as_me: WARNING: libudev.h: check for missing prerequisite headers?" >&2;}
32558 { $as_echo "$as_me:$LINENO: WARNING: libudev.h: see the Autoconf documentation" >&5
32559 $as_echo "$as_me: WARNING: libudev.h: see the Autoconf documentation" >&2;}
32560 { $as_echo "$as_me:$LINENO: WARNING: libudev.h: section \"Present But Cannot Be Compiled\"" >&5
32561 $as_echo "$as_me: WARNING: libudev.h: section \"Present But Cannot Be Compiled\"" >&2;}
32562 { $as_echo "$as_me:$LINENO: WARNING: libudev.h: proceeding with the preprocessor's result" >&5
32563 $as_echo "$as_me: WARNING: libudev.h: proceeding with the preprocessor's result" >&2;}
32564 { $as_echo "$as_me:$LINENO: WARNING: libudev.h: in the future, the compiler will take precedence" >&5
32565 $as_echo "$as_me: WARNING: libudev.h: in the future, the compiler will take precedence" >&2;}
32566
32567 ;;
32568 esac
32569 { $as_echo "$as_me:$LINENO: checking for libudev.h" >&5
32570 $as_echo_n "checking for libudev.h... " >&6; }
32571 if test "${ac_cv_header_libudev_h+set}" = set; then
32572 $as_echo_n "(cached) " >&6
32573 else
32574 ac_cv_header_libudev_h=$ac_header_preproc
32575 fi
32576 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_libudev_h" >&5
32577 $as_echo "$ac_cv_header_libudev_h" >&6; }
32578
32579 fi
32580 if test "x$ac_cv_header_libudev_h" = x""yes; then
32581
32582 user_libudev=yes
32583 LIBUDEV="-ludev"
32584
32585
32586 cat >>confdefs.h <<\_ACEOF
32587 #define HAVE_LIBUDEV 1
32588 _ACEOF
32589
32590
32591 else
32592
32593 user_libudev=no
32594
32595 fi
32596
32597
32598
32599 { $as_echo "$as_me:$LINENO: checking for library containing udev_device_get_is_initialized" >&5
32600 $as_echo_n "checking for library containing udev_device_get_is_initialized... " >&6; }
32601 if test "${ac_cv_search_udev_device_get_is_initialized+set}" = set; then
32602 $as_echo_n "(cached) " >&6
32603 else
32604 ac_func_search_save_LIBS=$LIBS
32605 cat >conftest.$ac_ext <<_ACEOF
32606 /* confdefs.h. */
32607 _ACEOF
32608 cat confdefs.h >>conftest.$ac_ext
32609 cat >>conftest.$ac_ext <<_ACEOF
32610 /* end confdefs.h. */
32611
32612 /* Override any GCC internal prototype to avoid an error.
32613 Use char because int might match the return type of a GCC
32614 builtin and then its argument prototype would still apply. */
32615 #ifdef __cplusplus
32616 extern "C"
32617 #endif
32618 char udev_device_get_is_initialized ();
32619 int
32620 main ()
32621 {
32622 return udev_device_get_is_initialized ();
32623 ;
32624 return 0;
32625 }
32626 _ACEOF
32627 for ac_lib in '' udev; do
32628 if test -z "$ac_lib"; then
32629 ac_res="none required"
32630 else
32631 ac_res=-l$ac_lib
32632 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
32633 fi
32634 rm -f conftest.$ac_objext conftest$ac_exeext
32635 if { (ac_try="$ac_link"
32636 case "(($ac_try" in
32637 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32638 *) ac_try_echo=$ac_try;;
32639 esac
32640 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32641 $as_echo "$ac_try_echo") >&5
32642 (eval "$ac_link") 2>conftest.er1
32643 ac_status=$?
32644 grep -v '^ *+' conftest.er1 >conftest.err
32645 rm -f conftest.er1
32646 cat conftest.err >&5
32647 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32648 (exit $ac_status); } && {
32649 test -z "$ac_c_werror_flag" ||
32650 test ! -s conftest.err
32651 } && test -s conftest$ac_exeext && {
32652 test "$cross_compiling" = yes ||
32653 $as_test_x conftest$ac_exeext
32654 }; then
32655 ac_cv_search_udev_device_get_is_initialized=$ac_res
32656 else
32657 $as_echo "$as_me: failed program was:" >&5
32658 sed 's/^/| /' conftest.$ac_ext >&5
32659
32660
32661 fi
32662
32663 rm -rf conftest.dSYM
32664 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32665 conftest$ac_exeext
32666 if test "${ac_cv_search_udev_device_get_is_initialized+set}" = set; then
32667 break
32668 fi
32669 done
32670 if test "${ac_cv_search_udev_device_get_is_initialized+set}" = set; then
32671 :
32672 else
32673 ac_cv_search_udev_device_get_is_initialized=no
32674 fi
32675 rm conftest.$ac_ext
32676 LIBS=$ac_func_search_save_LIBS
32677 fi
32678 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_udev_device_get_is_initialized" >&5
32679 $as_echo "$ac_cv_search_udev_device_get_is_initialized" >&6; }
32680 ac_res=$ac_cv_search_udev_device_get_is_initialized
32681 if test "$ac_res" != no; then
32682 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
32683
32684
32685 cat >>confdefs.h <<\_ACEOF
32686 #define HAVE_LIBUDEV_UDEV_DEVICE_GET_IS_INITIALIZED 1
32687 _ACEOF
32688
32689 fi
32690
32691
32692
32693
32694 { $as_echo "$as_me:$LINENO: checking for -Wframe-larger-than=<size> support" >&5
32695 $as_echo_n "checking for -Wframe-larger-than=<size> support... " >&6; }
32696
32697 saved_flags="$CFLAGS"
32698 CFLAGS="$CFLAGS -Wframe-larger-than=1024"
32699
32700 cat >conftest.$ac_ext <<_ACEOF
32701 /* confdefs.h. */
32702 _ACEOF
32703 cat confdefs.h >>conftest.$ac_ext
32704 cat >>conftest.$ac_ext <<_ACEOF
32705 /* end confdefs.h. */
32706
32707 int
32708 main ()
32709 {
32710
32711 ;
32712 return 0;
32713 }
32714 _ACEOF
32715 rm -f conftest.$ac_objext
32716 if { (ac_try="$ac_compile"
32717 case "(($ac_try" in
32718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32719 *) ac_try_echo=$ac_try;;
32720 esac
32721 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32722 $as_echo "$ac_try_echo") >&5
32723 (eval "$ac_compile") 2>conftest.er1
32724 ac_status=$?
32725 grep -v '^ *+' conftest.er1 >conftest.err
32726 rm -f conftest.er1
32727 cat conftest.err >&5
32728 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32729 (exit $ac_status); } && {
32730 test -z "$ac_c_werror_flag" ||
32731 test ! -s conftest.err
32732 } && test -s conftest.$ac_objext; then
32733
32734 FRAME_LARGER_THAN=-Wframe-larger-than=1024
32735 { $as_echo "$as_me:$LINENO: result: yes" >&5
32736 $as_echo "yes" >&6; }
32737
32738 else
32739 $as_echo "$as_me: failed program was:" >&5
32740 sed 's/^/| /' conftest.$ac_ext >&5
32741
32742
32743 FRAME_LARGER_THAN=
32744 { $as_echo "$as_me:$LINENO: result: no" >&5
32745 $as_echo "no" >&6; }
32746
32747 fi
32748
32749 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32750
32751 CFLAGS="$saved_flags"
32752
32753
32754
32755 LIBAIO=
32756
32757 if test "${ac_cv_header_libaio_h+set}" = set; then
32758 { $as_echo "$as_me:$LINENO: checking for libaio.h" >&5
32759 $as_echo_n "checking for libaio.h... " >&6; }
32760 if test "${ac_cv_header_libaio_h+set}" = set; then
32761 $as_echo_n "(cached) " >&6
32762 fi
32763 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_libaio_h" >&5
32764 $as_echo "$ac_cv_header_libaio_h" >&6; }
32765 else
32766 # Is the header compilable?
32767 { $as_echo "$as_me:$LINENO: checking libaio.h usability" >&5
32768 $as_echo_n "checking libaio.h usability... " >&6; }
32769 cat >conftest.$ac_ext <<_ACEOF
32770 /* confdefs.h. */
32771 _ACEOF
32772 cat confdefs.h >>conftest.$ac_ext
32773 cat >>conftest.$ac_ext <<_ACEOF
32774 /* end confdefs.h. */
32775 $ac_includes_default
32776 #include <libaio.h>
32777 _ACEOF
32778 rm -f conftest.$ac_objext
32779 if { (ac_try="$ac_compile"
32780 case "(($ac_try" in
32781 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32782 *) ac_try_echo=$ac_try;;
32783 esac
32784 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32785 $as_echo "$ac_try_echo") >&5
32786 (eval "$ac_compile") 2>conftest.er1
32787 ac_status=$?
32788 grep -v '^ *+' conftest.er1 >conftest.err
32789 rm -f conftest.er1
32790 cat conftest.err >&5
32791 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32792 (exit $ac_status); } && {
32793 test -z "$ac_c_werror_flag" ||
32794 test ! -s conftest.err
32795 } && test -s conftest.$ac_objext; then
32796 ac_header_compiler=yes
32797 else
32798 $as_echo "$as_me: failed program was:" >&5
32799 sed 's/^/| /' conftest.$ac_ext >&5
32800
32801 ac_header_compiler=no
32802 fi
32803
32804 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32805 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
32806 $as_echo "$ac_header_compiler" >&6; }
32807
32808 # Is the header present?
32809 { $as_echo "$as_me:$LINENO: checking libaio.h presence" >&5
32810 $as_echo_n "checking libaio.h presence... " >&6; }
32811 cat >conftest.$ac_ext <<_ACEOF
32812 /* confdefs.h. */
32813 _ACEOF
32814 cat confdefs.h >>conftest.$ac_ext
32815 cat >>conftest.$ac_ext <<_ACEOF
32816 /* end confdefs.h. */
32817 #include <libaio.h>
32818 _ACEOF
32819 if { (ac_try="$ac_cpp conftest.$ac_ext"
32820 case "(($ac_try" in
32821 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32822 *) ac_try_echo=$ac_try;;
32823 esac
32824 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32825 $as_echo "$ac_try_echo") >&5
32826 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
32827 ac_status=$?
32828 grep -v '^ *+' conftest.er1 >conftest.err
32829 rm -f conftest.er1
32830 cat conftest.err >&5
32831 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32832 (exit $ac_status); } >/dev/null && {
32833 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
32834 test ! -s conftest.err
32835 }; then
32836 ac_header_preproc=yes
32837 else
32838 $as_echo "$as_me: failed program was:" >&5
32839 sed 's/^/| /' conftest.$ac_ext >&5
32840
32841 ac_header_preproc=no
32842 fi
32843
32844 rm -f conftest.err conftest.$ac_ext
32845 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
32846 $as_echo "$ac_header_preproc" >&6; }
32847
32848 # So? What about this header?
32849 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
32850 yes:no: )
32851 { $as_echo "$as_me:$LINENO: WARNING: libaio.h: accepted by the compiler, rejected by the preprocessor!" >&5
32852 $as_echo "$as_me: WARNING: libaio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
32853 { $as_echo "$as_me:$LINENO: WARNING: libaio.h: proceeding with the compiler's result" >&5
32854 $as_echo "$as_me: WARNING: libaio.h: proceeding with the compiler's result" >&2;}
32855 ac_header_preproc=yes
32856 ;;
32857 no:yes:* )
32858 { $as_echo "$as_me:$LINENO: WARNING: libaio.h: present but cannot be compiled" >&5
32859 $as_echo "$as_me: WARNING: libaio.h: present but cannot be compiled" >&2;}
32860 { $as_echo "$as_me:$LINENO: WARNING: libaio.h: check for missing prerequisite headers?" >&5
32861 $as_echo "$as_me: WARNING: libaio.h: check for missing prerequisite headers?" >&2;}
32862 { $as_echo "$as_me:$LINENO: WARNING: libaio.h: see the Autoconf documentation" >&5
32863 $as_echo "$as_me: WARNING: libaio.h: see the Autoconf documentation" >&2;}
32864 { $as_echo "$as_me:$LINENO: WARNING: libaio.h: section \"Present But Cannot Be Compiled\"" >&5
32865 $as_echo "$as_me: WARNING: libaio.h: section \"Present But Cannot Be Compiled\"" >&2;}
32866 { $as_echo "$as_me:$LINENO: WARNING: libaio.h: proceeding with the preprocessor's result" >&5
32867 $as_echo "$as_me: WARNING: libaio.h: proceeding with the preprocessor's result" >&2;}
32868 { $as_echo "$as_me:$LINENO: WARNING: libaio.h: in the future, the compiler will take precedence" >&5
32869 $as_echo "$as_me: WARNING: libaio.h: in the future, the compiler will take precedence" >&2;}
32870
32871 ;;
32872 esac
32873 { $as_echo "$as_me:$LINENO: checking for libaio.h" >&5
32874 $as_echo_n "checking for libaio.h... " >&6; }
32875 if test "${ac_cv_header_libaio_h+set}" = set; then
32876 $as_echo_n "(cached) " >&6
32877 else
32878 ac_cv_header_libaio_h=$ac_header_preproc
32879 fi
32880 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_libaio_h" >&5
32881 $as_echo "$ac_cv_header_libaio_h" >&6; }
32882
32883 fi
32884 if test "x$ac_cv_header_libaio_h" = x""yes; then
32885
32886 user_libaio=yes
32887 LIBAIO="-laio"
32888
32889
32890 cat >>confdefs.h <<\_ACEOF
32891 #define HAVE_LIBAIO 1
32892 _ACEOF
32893
32894
32895 else
32896
32897 user_libaio=no
32898
32899 fi
32900
32901
32902
32903
32904 if test "x$runstatedir" = x; then
32905 runstatedir='${localstatedir}/run'
32906
32907 fi
32908
32909
32910 { $as_echo "$as_me:$LINENO: checking makedev() is declared in sys/sysmacros.h" >&5
32911 $as_echo_n "checking makedev() is declared in sys/sysmacros.h... " >&6; }
32912 cat >conftest.$ac_ext <<_ACEOF
32913 /* confdefs.h. */
32914 _ACEOF
32915 cat confdefs.h >>conftest.$ac_ext
32916 cat >>conftest.$ac_ext <<_ACEOF
32917 /* end confdefs.h. */
32918
32919 #include <sys/sysmacros.h>
32920
32921 int
32922 main ()
32923 {
32924
32925 int k;
32926 k = makedev(0,0);
32927
32928 ;
32929 return 0;
32930 }
32931 _ACEOF
32932 rm -f conftest.$ac_objext
32933 if { (ac_try="$ac_compile"
32934 case "(($ac_try" in
32935 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32936 *) ac_try_echo=$ac_try;;
32937 esac
32938 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32939 $as_echo "$ac_try_echo") >&5
32940 (eval "$ac_compile") 2>conftest.er1
32941 ac_status=$?
32942 grep -v '^ *+' conftest.er1 >conftest.err
32943 rm -f conftest.er1
32944 cat conftest.err >&5
32945 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32946 (exit $ac_status); } && {
32947 test -z "$ac_c_werror_flag" ||
32948 test ! -s conftest.err
32949 } && test -s conftest.$ac_objext; then
32950
32951 { $as_echo "$as_me:$LINENO: result: yes" >&5
32952 $as_echo "yes" >&6; }
32953
32954 cat >>confdefs.h <<\_ACEOF
32955 #define HAVE_MAKEDEV_IN_SYSMACROS 1
32956 _ACEOF
32957
32958
32959 else
32960 $as_echo "$as_me: failed program was:" >&5
32961 sed 's/^/| /' conftest.$ac_ext >&5
32962
32963
32964 { $as_echo "$as_me:$LINENO: result: no" >&5
32965 $as_echo "no" >&6; }
32966
32967 fi
32968
32969 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32970
32971
32972 { $as_echo "$as_me:$LINENO: checking makedev() is declared in sys/mkdev.h" >&5
32973 $as_echo_n "checking makedev() is declared in sys/mkdev.h... " >&6; }
32974 cat >conftest.$ac_ext <<_ACEOF
32975 /* confdefs.h. */
32976 _ACEOF
32977 cat confdefs.h >>conftest.$ac_ext
32978 cat >>conftest.$ac_ext <<_ACEOF
32979 /* end confdefs.h. */
32980
32981 #include <sys/mkdev.h>
32982
32983 int
32984 main ()
32985 {
32986
32987 int k;
32988 k = makedev(0,0);
32989
32990 ;
32991 return 0;
32992 }
32993 _ACEOF
32994 rm -f conftest.$ac_objext
32995 if { (ac_try="$ac_compile"
32996 case "(($ac_try" in
32997 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32998 *) ac_try_echo=$ac_try;;
32999 esac
33000 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
33001 $as_echo "$ac_try_echo") >&5
33002 (eval "$ac_compile") 2>conftest.er1
33003 ac_status=$?
33004 grep -v '^ *+' conftest.er1 >conftest.err
33005 rm -f conftest.er1
33006 cat conftest.err >&5
33007 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33008 (exit $ac_status); } && {
33009 test -z "$ac_c_werror_flag" ||
33010 test ! -s conftest.err
33011 } && test -s conftest.$ac_objext; then
33012
33013 { $as_echo "$as_me:$LINENO: result: yes" >&5
33014 $as_echo "yes" >&6; }
33015
33016 cat >>confdefs.h <<\_ACEOF
33017 #define HAVE_MAKEDEV_IN_MKDEV 1
33018 _ACEOF
33019
33020
33021 else
33022 $as_echo "$as_me: failed program was:" >&5
33023 sed 's/^/| /' conftest.$ac_ext >&5
33024
33025
33026 { $as_echo "$as_me:$LINENO: result: no" >&5
33027 $as_echo "no" >&6; }
33028
33029 fi
33030
33031 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33032
33033
33034 { $as_echo "$as_me:$LINENO: checking for -Wno-format-truncation support" >&5
33035 $as_echo_n "checking for -Wno-format-truncation support... " >&6; }
33036
33037 saved_flags="$CFLAGS"
33038 CFLAGS="$CFLAGS -Wno-format-truncation"
33039
33040 cat >conftest.$ac_ext <<_ACEOF
33041 /* confdefs.h. */
33042 _ACEOF
33043 cat confdefs.h >>conftest.$ac_ext
33044 cat >>conftest.$ac_ext <<_ACEOF
33045 /* end confdefs.h. */
33046
33047 int
33048 main ()
33049 {
33050
33051 ;
33052 return 0;
33053 }
33054 _ACEOF
33055 rm -f conftest.$ac_objext
33056 if { (ac_try="$ac_compile"
33057 case "(($ac_try" in
33058 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33059 *) ac_try_echo=$ac_try;;
33060 esac
33061 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
33062 $as_echo "$ac_try_echo") >&5
33063 (eval "$ac_compile") 2>conftest.er1
33064 ac_status=$?
33065 grep -v '^ *+' conftest.er1 >conftest.err
33066 rm -f conftest.er1
33067 cat conftest.err >&5
33068 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33069 (exit $ac_status); } && {
33070 test -z "$ac_c_werror_flag" ||
33071 test ! -s conftest.err
33072 } && test -s conftest.$ac_objext; then
33073
33074 NO_FORMAT_TRUNCATION=-Wno-format-truncation
33075 { $as_echo "$as_me:$LINENO: result: yes" >&5
33076 $as_echo "yes" >&6; }
33077
33078 else
33079 $as_echo "$as_me: failed program was:" >&5
33080 sed 's/^/| /' conftest.$ac_ext >&5
33081
33082
33083 NO_FORMAT_TRUNCATION=
33084 { $as_echo "$as_me:$LINENO: result: no" >&5
33085 $as_echo "no" >&6; }
33086
33087 fi
33088
33089 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33090
33091 CFLAGS="$saved_flags"
33092
33093
33094
33095
33096 ZONENAME="echo global"
33097
33098
33099
33100
33101
33102
33103 for ac_func in mlockall
33104 do
33105 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
33106 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
33107 $as_echo_n "checking for $ac_func... " >&6; }
33108 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
33109 $as_echo_n "(cached) " >&6
33110 else
33111 cat >conftest.$ac_ext <<_ACEOF
33112 /* confdefs.h. */
33113 _ACEOF
33114 cat confdefs.h >>conftest.$ac_ext
33115 cat >>conftest.$ac_ext <<_ACEOF
33116 /* end confdefs.h. */
33117 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33118 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33119 #define $ac_func innocuous_$ac_func
33120
33121 /* System header to define __stub macros and hopefully few prototypes,
33122 which can conflict with char $ac_func (); below.
33123 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33124 <limits.h> exists even on freestanding compilers. */
33125
33126 #ifdef __STDC__
33127 # include <limits.h>
33128 #else
33129 # include <assert.h>
33130 #endif
33131
33132 #undef $ac_func
33133
33134 /* Override any GCC internal prototype to avoid an error.
33135 Use char because int might match the return type of a GCC
33136 builtin and then its argument prototype would still apply. */
33137 #ifdef __cplusplus
33138 extern "C"
33139 #endif
33140 char $ac_func ();
33141 /* The GNU C library defines this for functions which it implements
33142 to always fail with ENOSYS. Some functions are actually named
33143 something starting with __ and the normal name is an alias. */
33144 #if defined __stub_$ac_func || defined __stub___$ac_func
33145 choke me
33146 #endif
33147
33148 int
33149 main ()
33150 {
33151 return $ac_func ();
33152 ;
33153 return 0;
33154 }
33155 _ACEOF
33156 rm -f conftest.$ac_objext conftest$ac_exeext
33157 if { (ac_try="$ac_link"
33158 case "(($ac_try" in
33159 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33160 *) ac_try_echo=$ac_try;;
33161 esac
33162 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
33163 $as_echo "$ac_try_echo") >&5
33164 (eval "$ac_link") 2>conftest.er1
33165 ac_status=$?
33166 grep -v '^ *+' conftest.er1 >conftest.err
33167 rm -f conftest.er1
33168 cat conftest.err >&5
33169 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33170 (exit $ac_status); } && {
33171 test -z "$ac_c_werror_flag" ||
33172 test ! -s conftest.err
33173 } && test -s conftest$ac_exeext && {
33174 test "$cross_compiling" = yes ||
33175 $as_test_x conftest$ac_exeext
33176 }; then
33177 eval "$as_ac_var=yes"
33178 else
33179 $as_echo "$as_me: failed program was:" >&5
33180 sed 's/^/| /' conftest.$ac_ext >&5
33181
33182 eval "$as_ac_var=no"
33183 fi
33184
33185 rm -rf conftest.dSYM
33186 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33187 conftest$ac_exeext conftest.$ac_ext
33188 fi
33189 ac_res=`eval 'as_val=${'$as_ac_var'}
33190 $as_echo "$as_val"'`
33191 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
33192 $as_echo "$ac_res" >&6; }
33193 as_val=`eval 'as_val=${'$as_ac_var'}
33194 $as_echo "$as_val"'`
33195 if test "x$as_val" = x""yes; then
33196 cat >>confdefs.h <<_ACEOF
33197 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
33198 _ACEOF
33199
33200 fi
33201 done
33202
33203
33204
33205
33206
33207 # Check whether --with-linux was given.
33208 if test "${with_linux+set}" = set; then
33209 withval=$with_linux; kernelsrc="$withval"
33210 fi
33211
33212
33213
33214 # Check whether --with-linux-obj was given.
33215 if test "${with_linux_obj+set}" = set; then
33216 withval=$with_linux_obj; kernelbuild="$withval"
33217 fi
33218
33219
33220 { $as_echo "$as_me:$LINENO: checking kernel source directory" >&5
33221 $as_echo_n "checking kernel source directory... " >&6; }
33222 if test -z "$kernelsrc"; then
33223
33224 if test -e "/lib/modules/$(uname -r)/source"; then
33225
33226 headersdir="/lib/modules/$(uname -r)/source"
33227 sourcelink=$(readlink -f "$headersdir")
33228
33229 elif test -e "/lib/modules/$(uname -r)/build"; then
33230
33231 headersdir="/lib/modules/$(uname -r)/build"
33232 sourcelink=$(readlink -f "$headersdir")
33233
33234 else
33235
33236 sourcelink=$(ls -1d /usr/src/kernels/* \
33237 /usr/src/linux-* \
33238 2>/dev/null | grep -v obj | tail -1)
33239
33240 fi
33241
33242
33243 if test -n "$sourcelink" && test -e ${sourcelink}; then
33244
33245 kernelsrc=`readlink -f ${sourcelink}`
33246
33247 else
33248
33249 kernelsrc="Not found"
33250
33251 fi
33252
33253
33254 else
33255
33256 if test "$kernelsrc" = "NONE"; then
33257
33258 kernsrcver=NONE
33259
33260 fi
33261
33262 withlinux=yes
33263
33264 fi
33265
33266
33267 { $as_echo "$as_me:$LINENO: result: $kernelsrc" >&5
33268 $as_echo "$kernelsrc" >&6; }
33269 if test ! -d "$kernelsrc"; then
33270
33271 { { $as_echo "$as_me:$LINENO: error:
33272 *** Please make sure the kernel devel package for your distribution
33273 *** is installed and then try again. If that fails, you can specify the
33274 *** location of the kernel source with the '--with-linux=PATH' option." >&5
33275 $as_echo "$as_me: error:
33276 *** Please make sure the kernel devel package for your distribution
33277 *** is installed and then try again. If that fails, you can specify the
33278 *** location of the kernel source with the '--with-linux=PATH' option." >&2;}
33279 { (exit 1); exit 1; }; }
33280
33281 fi
33282
33283
33284 { $as_echo "$as_me:$LINENO: checking kernel build directory" >&5
33285 $as_echo_n "checking kernel build directory... " >&6; }
33286 if test -z "$kernelbuild"; then
33287
33288 if test x$withlinux != xyes -a -e "/lib/modules/$(uname -r)/build"; then
33289
33290 kernelbuild=`readlink -f /lib/modules/$(uname -r)/build`
33291
33292 elif test -d ${kernelsrc}-obj/${target_cpu}/${target_cpu}; then
33293
33294 kernelbuild=${kernelsrc}-obj/${target_cpu}/${target_cpu}
33295
33296 elif test -d ${kernelsrc}-obj/${target_cpu}/default; then
33297
33298 kernelbuild=${kernelsrc}-obj/${target_cpu}/default
33299
33300 elif test -d `dirname ${kernelsrc}`/build-${target_cpu}; then
33301
33302 kernelbuild=`dirname ${kernelsrc}`/build-${target_cpu}
33303
33304 else
33305
33306 kernelbuild=${kernelsrc}
33307
33308 fi
33309
33310
33311 fi
33312
33313 { $as_echo "$as_me:$LINENO: result: $kernelbuild" >&5
33314 $as_echo "$kernelbuild" >&6; }
33315
33316 { $as_echo "$as_me:$LINENO: checking kernel source version" >&5
33317 $as_echo_n "checking kernel source version... " >&6; }
33318 utsrelease1=$kernelbuild/include/linux/version.h
33319 utsrelease2=$kernelbuild/include/linux/utsrelease.h
33320 utsrelease3=$kernelbuild/include/generated/utsrelease.h
33321 if test -r $utsrelease1 && fgrep -q UTS_RELEASE $utsrelease1; then
33322
33323 utsrelease=linux/version.h
33324
33325 elif test -r $utsrelease2 && fgrep -q UTS_RELEASE $utsrelease2; then
33326
33327 utsrelease=linux/utsrelease.h
33328
33329 elif test -r $utsrelease3 && fgrep -q UTS_RELEASE $utsrelease3; then
33330
33331 utsrelease=generated/utsrelease.h
33332
33333 fi
33334
33335
33336 if test "$utsrelease"; then
33337
33338 kernsrcver=`(echo "#include <$utsrelease>";
33339 echo "kernsrcver=UTS_RELEASE") |
33340 cpp -I $kernelbuild/include |
33341 grep "^kernsrcver=" | cut -d \" -f 2`
33342
33343 if test -z "$kernsrcver"; then
33344
33345 { $as_echo "$as_me:$LINENO: result: Not found" >&5
33346 $as_echo "Not found" >&6; }
33347 { { $as_echo "$as_me:$LINENO: error: *** Cannot determine kernel version." >&5
33348 $as_echo "$as_me: error: *** Cannot determine kernel version." >&2;}
33349 { (exit 1); exit 1; }; }
33350
33351 fi
33352
33353
33354 else
33355
33356 { $as_echo "$as_me:$LINENO: result: Not found" >&5
33357 $as_echo "Not found" >&6; }
33358 if test "x$enable_linux_builtin" != xyes; then
33359 { { $as_echo "$as_me:$LINENO: error: *** Cannot find UTS_RELEASE definition." >&5
33360 $as_echo "$as_me: error: *** Cannot find UTS_RELEASE definition." >&2;}
33361 { (exit 1); exit 1; }; }
33362 else
33363 { { $as_echo "$as_me:$LINENO: error:
33364 *** Cannot find UTS_RELEASE definition.
33365 *** Please run 'make prepare' inside the kernel source tree." >&5
33366 $as_echo "$as_me: error:
33367 *** Cannot find UTS_RELEASE definition.
33368 *** Please run 'make prepare' inside the kernel source tree." >&2;}
33369 { (exit 1); exit 1; }; }
33370 fi
33371
33372 fi
33373
33374
33375 { $as_echo "$as_me:$LINENO: result: $kernsrcver" >&5
33376 $as_echo "$kernsrcver" >&6; }
33377
33378 LINUX=${kernelsrc}
33379 LINUX_OBJ=${kernelbuild}
33380 LINUX_VERSION=${kernsrcver}
33381
33382
33383
33384
33385
33386
33387 modpost=$LINUX/scripts/Makefile.modpost
33388 { $as_echo "$as_me:$LINENO: checking kernel file name for module symbols" >&5
33389 $as_echo_n "checking kernel file name for module symbols... " >&6; }
33390 if test "x$enable_linux_builtin" != xyes -a -f "$modpost"; then
33391
33392 if grep -q Modules.symvers $modpost; then
33393
33394 LINUX_SYMBOLS=Modules.symvers
33395
33396 else
33397
33398 LINUX_SYMBOLS=Module.symvers
33399
33400 fi
33401
33402
33403 if test ! -f "$LINUX_OBJ/$LINUX_SYMBOLS"; then
33404
33405 { { $as_echo "$as_me:$LINENO: error:
33406 *** Please make sure the kernel devel package for your distribution
33407 *** is installed. If you are building with a custom kernel, make sure the
33408 *** kernel is configured, built, and the '--with-linux=PATH' configure
33409 *** option refers to the location of the kernel source." >&5
33410 $as_echo "$as_me: error:
33411 *** Please make sure the kernel devel package for your distribution
33412 *** is installed. If you are building with a custom kernel, make sure the
33413 *** kernel is configured, built, and the '--with-linux=PATH' configure
33414 *** option refers to the location of the kernel source." >&2;}
33415 { (exit 1); exit 1; }; }
33416
33417 fi
33418
33419
33420 else
33421
33422 LINUX_SYMBOLS=NONE
33423
33424 fi
33425
33426 { $as_echo "$as_me:$LINENO: result: $LINUX_SYMBOLS" >&5
33427 $as_echo "$LINUX_SYMBOLS" >&6; }
33428
33429
33430
33431
33432
33433 # Check whether --with-spl was given.
33434 if test "${with_spl+set}" = set; then
33435 withval=$with_spl; if test "$withval" = "yes"; then
33436 { { $as_echo "$as_me:$LINENO: error: --with-spl=PATH requires a PATH" >&5
33437 $as_echo "$as_me: error: --with-spl=PATH requires a PATH" >&2;}
33438 { (exit 1); exit 1; }; }
33439 else
33440 splsrc="$withval"
33441 fi
33442
33443 fi
33444
33445
33446
33447 # Check whether --with-spl-obj was given.
33448 if test "${with_spl_obj+set}" = set; then
33449 withval=$with_spl_obj; splbuild="$withval"
33450 fi
33451
33452
33453
33454 # Check whether --with-spl-timeout was given.
33455 if test "${with_spl_timeout+set}" = set; then
33456 withval=$with_spl_timeout; timeout="$withval"
33457 else
33458 timeout=0
33459 fi
33460
33461
33462 splsrc0="/var/lib/dkms/spl/${VERSION}/build"
33463 splsrc1="/usr/local/src/spl-${VERSION}/${LINUX_VERSION}"
33464 splsrc2="/usr/local/src/spl-${VERSION}"
33465 splsrc3="/usr/src/spl-${VERSION}/${LINUX_VERSION}"
33466 splsrc4="/usr/src/spl-${VERSION}"
33467 splsrc5="../spl/"
33468 splsrc6="$LINUX"
33469
33470 { $as_echo "$as_me:$LINENO: checking spl source directory" >&5
33471 $as_echo_n "checking spl source directory... " >&6; }
33472 if test -z "${splsrc}"; then
33473
33474 all_spl_sources="
33475 ${splsrc0}
33476 ${splsrc1}
33477 ${splsrc2}
33478 ${splsrc3}
33479 ${splsrc4}
33480 ${splsrc5}
33481 ${splsrc6}",
33482 if test -e "${splsrc0}/spl.release.in"; then
33483
33484 splsrc=${splsrc0}
33485
33486 elif test -e "${splsrc1}/spl.release.in"; then
33487
33488 splsrc=${splsrc1}
33489
33490 elif test -e "${splsrc2}/spl.release.in"; then
33491
33492 splsrc=${splsrc2}
33493
33494 elif test -e "${splsrc3}/spl.release.in"; then
33495
33496 splsrc=$(readlink -f "${splsrc3}")
33497
33498 elif test -e "${splsrc4}/spl.release.in" ; then
33499
33500 splsrc=${splsrc4}
33501
33502 elif test -e "${splsrc5}/spl.release.in"; then
33503
33504 splsrc=$(readlink -f "${splsrc5}")
33505
33506 elif test -e "${splsrc6}/spl.release.in" ; then
33507
33508 splsrc=${splsrc6}
33509
33510 else
33511
33512 splsrc="Not found"
33513
33514 fi
33515
33516
33517 else
33518
33519 all_spl_sources="$withval",
33520 if test "$splsrc" = "NONE"; then
33521
33522 splbuild=NONE
33523 splsrcver=NONE
33524
33525 fi
33526
33527
33528 fi
33529
33530
33531 { $as_echo "$as_me:$LINENO: result: $splsrc" >&5
33532 $as_echo "$splsrc" >&6; }
33533 if test ! -e "$splsrc/spl.release.in"; then
33534
33535 { { $as_echo "$as_me:$LINENO: error:
33536 *** Please make sure the kmod spl devel package for your distribution
33537 *** is installed then try again. If that fails you can specify the
33538 *** location of the spl source with the '--with-spl=PATH' option.
33539 *** The spl version must match the version of ZFS you are building,
33540 *** ${VERSION}. Failed to find spl.release.in in the following:
33541 $all_spl_sources" >&5
33542 $as_echo "$as_me: error:
33543 *** Please make sure the kmod spl devel package for your distribution
33544 *** is installed then try again. If that fails you can specify the
33545 *** location of the spl source with the '--with-spl=PATH' option.
33546 *** The spl version must match the version of ZFS you are building,
33547 *** ${VERSION}. Failed to find spl.release.in in the following:
33548 $all_spl_sources" >&2;}
33549 { (exit 1); exit 1; }; }
33550
33551 fi
33552
33553
33554 { $as_echo "$as_me:$LINENO: checking spl build directory" >&5
33555 $as_echo_n "checking spl build directory... " >&6; }
33556
33557 all_spl_config_locs="${splsrc}/${LINUX_VERSION}
33558 ${splsrc}"
33559
33560 while true; do
33561 if test -z "$splbuild"; then
33562
33563 if test -e "${splsrc}/${LINUX_VERSION}/spl_config.h" ; then
33564
33565 splbuild="${splsrc}/${LINUX_VERSION}"
33566
33567 elif test -e "${splsrc}/spl_config.h" ; then
33568
33569 splbuild="${splsrc}"
33570
33571 elif find -L "${splsrc}" -name spl_config.h 2> /dev/null | grep -wq spl_config.h ; then
33572
33573 splbuild=$(find -L "${splsrc}" -name spl_config.h | sed 's,/spl_config.h,,')
33574
33575 else
33576
33577 splbuild="Not found"
33578
33579 fi
33580
33581
33582 fi
33583
33584 if test -e "$splbuild/spl_config.h" -o $timeout -le 0; then
33585
33586 break;
33587
33588 else
33589
33590 sleep 1
33591 timeout=$((timeout-1))
33592
33593 fi
33594
33595 done
33596
33597 { $as_echo "$as_me:$LINENO: result: $splbuild" >&5
33598 $as_echo "$splbuild" >&6; }
33599 if ! test -e "$splbuild/spl_config.h"; then
33600
33601 { { $as_echo "$as_me:$LINENO: error:
33602 *** Please make sure the kmod spl devel <kernel> package for your
33603 *** distribution is installed then try again. If that fails you
33604 *** can specify the location of the spl objects with the
33605 *** '--with-spl-obj=PATH' option. Failed to find spl_config.h in
33606 *** any of the following:
33607 $all_spl_config_locs" >&5
33608 $as_echo "$as_me: error:
33609 *** Please make sure the kmod spl devel <kernel> package for your
33610 *** distribution is installed then try again. If that fails you
33611 *** can specify the location of the spl objects with the
33612 *** '--with-spl-obj=PATH' option. Failed to find spl_config.h in
33613 *** any of the following:
33614 $all_spl_config_locs" >&2;}
33615 { (exit 1); exit 1; }; }
33616
33617 fi
33618
33619
33620 { $as_echo "$as_me:$LINENO: checking spl source version" >&5
33621 $as_echo_n "checking spl source version... " >&6; }
33622 if test -r $splbuild/spl_config.h &&
33623 fgrep -q SPL_META_VERSION $splbuild/spl_config.h; then
33624
33625
33626 splsrcver=`(echo "#include <spl_config.h>";
33627 echo "splsrcver=SPL_META_VERSION-SPL_META_RELEASE") |
33628 cpp -I $splbuild |
33629 grep "^splsrcver=" | tr -d \" | cut -d= -f2`
33630
33631 fi
33632
33633
33634 if test -z "$splsrcver"; then
33635
33636 { $as_echo "$as_me:$LINENO: result: Not found" >&5
33637 $as_echo "Not found" >&6; }
33638 { { $as_echo "$as_me:$LINENO: error:
33639 *** Cannot determine the version of the spl source.
33640 *** Please prepare the spl source before running this script" >&5
33641 $as_echo "$as_me: error:
33642 *** Cannot determine the version of the spl source.
33643 *** Please prepare the spl source before running this script" >&2;}
33644 { (exit 1); exit 1; }; }
33645
33646 fi
33647
33648
33649 { $as_echo "$as_me:$LINENO: result: $splsrcver" >&5
33650 $as_echo "$splsrcver" >&6; }
33651
33652 SPL=${splsrc}
33653 SPL_OBJ=${splbuild}
33654 SPL_VERSION=${splsrcver}
33655
33656
33657
33658
33659
33660 { $as_echo "$as_me:$LINENO: checking spl file name for module symbols" >&5
33661 $as_echo_n "checking spl file name for module symbols... " >&6; }
33662 SPL_SYMBOLS=NONE
33663
33664 while true; do
33665 if test -r $SPL_OBJ/Module.symvers; then
33666
33667 SPL_SYMBOLS=Module.symvers
33668
33669 elif test -r $SPL_OBJ/Modules.symvers; then
33670
33671 SPL_SYMBOLS=Modules.symvers
33672
33673 elif test -r $SPL_OBJ/module/Module.symvers; then
33674
33675 SPL_SYMBOLS=Module.symvers
33676
33677 elif test -r $SPL_OBJ/module/Modules.symvers; then
33678
33679 SPL_SYMBOLS=Modules.symvers
33680
33681 fi
33682
33683
33684 if test $SPL_SYMBOLS != NONE -o $timeout -le 0; then
33685
33686 break;
33687
33688 else
33689
33690 sleep 1
33691 timeout=$((timeout-1))
33692
33693 fi
33694
33695 done
33696
33697 if test "$SPL_SYMBOLS" = NONE; then
33698
33699 SPL_SYMBOLS=$LINUX_SYMBOLS
33700
33701 fi
33702
33703
33704 { $as_echo "$as_me:$LINENO: result: $SPL_SYMBOLS" >&5
33705 $as_echo "$SPL_SYMBOLS" >&6; }
33706
33707
33708
33709
33710 # Check whether --with-qat was given.
33711 if test "${with_qat+set}" = set; then
33712 withval=$with_qat; if test "$withval" = "yes"; then
33713 { { $as_echo "$as_me:$LINENO: error: --with-qat=PATH requires a PATH" >&5
33714 $as_echo "$as_me: error: --with-qat=PATH requires a PATH" >&2;}
33715 { (exit 1); exit 1; }; }
33716 else
33717 qatsrc="$withval"
33718 fi
33719
33720 fi
33721
33722
33723
33724 # Check whether --with-qat-obj was given.
33725 if test "${with_qat_obj+set}" = set; then
33726 withval=$with_qat_obj; qatbuild="$withval"
33727 fi
33728
33729
33730 if test ! -z "${qatsrc}"; then
33731
33732 { $as_echo "$as_me:$LINENO: checking qat source directory" >&5
33733 $as_echo_n "checking qat source directory... " >&6; }
33734 { $as_echo "$as_me:$LINENO: result: $qatsrc" >&5
33735 $as_echo "$qatsrc" >&6; }
33736 QAT_SRC="${qatsrc}/quickassist"
33737 if test ! -e "$QAT_SRC/include/cpa.h"; then
33738
33739 { { $as_echo "$as_me:$LINENO: error:
33740 *** Please make sure the qat driver package is installed
33741 *** and specify the location of the qat source with the
33742 *** '--with-qat=PATH' option then try again. Failed to
33743 *** find cpa.h in:
33744 ${QAT_SRC}/include" >&5
33745 $as_echo "$as_me: error:
33746 *** Please make sure the qat driver package is installed
33747 *** and specify the location of the qat source with the
33748 *** '--with-qat=PATH' option then try again. Failed to
33749 *** find cpa.h in:
33750 ${QAT_SRC}/include" >&2;}
33751 { (exit 1); exit 1; }; }
33752
33753 fi
33754
33755
33756 fi
33757
33758
33759 if test ! -z "${qatsrc}"; then
33760
33761 { $as_echo "$as_me:$LINENO: checking qat build directory" >&5
33762 $as_echo_n "checking qat build directory... " >&6; }
33763 if test -z "$qatbuild"; then
33764
33765 qatbuild="${qatsrc}/build"
33766
33767 fi
33768
33769
33770 { $as_echo "$as_me:$LINENO: result: $qatbuild" >&5
33771 $as_echo "$qatbuild" >&6; }
33772 QAT_OBJ=${qatbuild}
33773 if ! test -e "$QAT_OBJ/icp_qa_al.ko" && ! test -e "$QAT_OBJ/qat_api.ko"; then
33774
33775 { { $as_echo "$as_me:$LINENO: error:
33776 *** Please make sure the qat driver is installed then try again.
33777 *** Failed to find icp_qa_al.ko or qat_api.ko in:
33778 $QAT_OBJ" >&5
33779 $as_echo "$as_me: error:
33780 *** Please make sure the qat driver is installed then try again.
33781 *** Failed to find icp_qa_al.ko or qat_api.ko in:
33782 $QAT_OBJ" >&2;}
33783 { (exit 1); exit 1; }; }
33784
33785 fi
33786
33787
33788
33789
33790
33791
33792 cat >>confdefs.h <<\_ACEOF
33793 #define HAVE_QAT 1
33794 _ACEOF
33795
33796
33797 fi
33798
33799
33800 if test ! -z "${qatsrc}"; then
33801
33802 { $as_echo "$as_me:$LINENO: checking qat file for module symbols" >&5
33803 $as_echo_n "checking qat file for module symbols... " >&6; }
33804 QAT_SYMBOLS=$QAT_SRC/lookaside/access_layer/src/Module.symvers
33805
33806 if test -r $QAT_SYMBOLS; then
33807
33808 { $as_echo "$as_me:$LINENO: result: $QAT_SYMBOLS" >&5
33809 $as_echo "$QAT_SYMBOLS" >&6; }
33810
33811
33812 else
33813
33814 { { $as_echo "$as_me:$LINENO: error:
33815 *** Please make sure the qat driver is installed then try again.
33816 *** Failed to find Module.symvers in:
33817 $QAT_SYMBOLS" >&5
33818 $as_echo "$as_me: error:
33819 *** Please make sure the qat driver is installed then try again.
33820 *** Failed to find Module.symvers in:
33821 $QAT_SYMBOLS" >&2;}
33822 { (exit 1); exit 1; }; }
33823
33824 fi
33825
33826
33827 fi
33828
33829
33830
33831 { $as_echo "$as_me:$LINENO: checking whether modules can be built" >&5
33832 $as_echo_n "checking whether modules can be built... " >&6; }
33833
33834
33835 cat confdefs.h - <<_ACEOF >conftest.c
33836 /* confdefs.h. */
33837 _ACEOF
33838 cat confdefs.h >>conftest.$ac_ext
33839 cat >>conftest.$ac_ext <<_ACEOF
33840 /* end confdefs.h. */
33841
33842
33843 int
33844 main (void)
33845 {
33846
33847 ;
33848 return 0;
33849 }
33850
33851 _ACEOF
33852
33853
33854
33855 cat - <<_ACEOF >conftest.h
33856
33857 _ACEOF
33858
33859
33860 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
33861 echo "obj-m := conftest.o" >build/Makefile
33862 modpost_flag=''
33863 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
33864 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
33865 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33866 (eval $ac_try) 2>&5
33867 ac_status=$?
33868 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33869 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
33870 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33871 (eval $ac_try) 2>&5
33872 ac_status=$?
33873 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33874 (exit $ac_status); }; }; then
33875
33876 { $as_echo "$as_me:$LINENO: result: yes" >&5
33877 $as_echo "yes" >&6; }
33878
33879 else
33880 $as_echo "$as_me: failed program was:" >&5
33881 sed 's/^/| /' conftest.$ac_ext >&5
33882
33883 { $as_echo "$as_me:$LINENO: result: no" >&5
33884 $as_echo "no" >&6; }
33885 if test "x$enable_linux_builtin" != xyes; then
33886 { { $as_echo "$as_me:$LINENO: error: *** Unable to build an empty module." >&5
33887 $as_echo "$as_me: error: *** Unable to build an empty module." >&2;}
33888 { (exit 1); exit 1; }; }
33889 else
33890 { { $as_echo "$as_me:$LINENO: error:
33891 *** Unable to build an empty module.
33892 *** Please run 'make scripts' inside the kernel source tree." >&5
33893 $as_echo "$as_me: error:
33894 *** Unable to build an empty module.
33895 *** Please run 'make scripts' inside the kernel source tree." >&2;}
33896 { (exit 1); exit 1; }; }
33897 fi
33898
33899
33900
33901 fi
33902
33903 rm -Rf build
33904
33905
33906
33907
33908 { $as_echo "$as_me:$LINENO: checking for compile-time stack validation (objtool)" >&5
33909 $as_echo_n "checking for compile-time stack validation (objtool)... " >&6; }
33910
33911
33912 cat confdefs.h - <<_ACEOF >conftest.c
33913 /* confdefs.h. */
33914 _ACEOF
33915 cat confdefs.h >>conftest.$ac_ext
33916 cat >>conftest.$ac_ext <<_ACEOF
33917 /* end confdefs.h. */
33918
33919
33920 #undef __ASSEMBLY__
33921 #include <asm/frame.h>
33922
33923 int
33924 main (void)
33925 {
33926
33927 #if !defined(FRAME_BEGIN)
33928 CTASSERT(1);
33929 #endif
33930
33931 ;
33932 return 0;
33933 }
33934
33935 _ACEOF
33936
33937
33938
33939 cat - <<_ACEOF >conftest.h
33940
33941 _ACEOF
33942
33943
33944 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
33945 echo "obj-m := conftest.o" >build/Makefile
33946 modpost_flag=''
33947 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
33948 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
33949 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33950 (eval $ac_try) 2>&5
33951 ac_status=$?
33952 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33953 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
33954 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33955 (eval $ac_try) 2>&5
33956 ac_status=$?
33957 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33958 (exit $ac_status); }; }; then
33959
33960 { $as_echo "$as_me:$LINENO: result: yes" >&5
33961 $as_echo "yes" >&6; }
33962
33963 cat >>confdefs.h <<\_ACEOF
33964 #define HAVE_KERNEL_OBJTOOL 1
33965 _ACEOF
33966
33967
33968 else
33969 $as_echo "$as_me: failed program was:" >&5
33970 sed 's/^/| /' conftest.$ac_ext >&5
33971
33972 { $as_echo "$as_me:$LINENO: result: no" >&5
33973 $as_echo "no" >&6; }
33974
33975
33976
33977 fi
33978
33979 rm -Rf build
33980
33981
33982
33983
33984 if test "x$cross_compiling" != xyes; then
33985
33986 if test "$cross_compiling" = yes; then
33987 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
33988 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
33989 { { $as_echo "$as_me:$LINENO: error: cannot run test program while cross compiling
33990 See \`config.log' for more details." >&5
33991 $as_echo "$as_me: error: cannot run test program while cross compiling
33992 See \`config.log' for more details." >&2;}
33993 { (exit 1); exit 1; }; }; }
33994 else
33995 cat >conftest.$ac_ext <<_ACEOF
33996
33997 /* confdefs.h. */
33998 _ACEOF
33999 cat confdefs.h >>conftest.$ac_ext
34000 cat >>conftest.$ac_ext <<_ACEOF
34001 /* end confdefs.h. */
34002
34003 #include "$LINUX/include/linux/license.h"
34004
34005 int
34006 main ()
34007 {
34008
34009 return !license_is_gpl_compatible("$ZFS_META_LICENSE");
34010
34011 ;
34012 return 0;
34013 }
34014
34015 _ACEOF
34016 rm -f conftest$ac_exeext
34017 if { (ac_try="$ac_link"
34018 case "(($ac_try" in
34019 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34020 *) ac_try_echo=$ac_try;;
34021 esac
34022 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
34023 $as_echo "$ac_try_echo") >&5
34024 (eval "$ac_link") 2>&5
34025 ac_status=$?
34026 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34027 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
34028 { (case "(($ac_try" in
34029 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34030 *) ac_try_echo=$ac_try;;
34031 esac
34032 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
34033 $as_echo "$ac_try_echo") >&5
34034 (eval "$ac_try") 2>&5
34035 ac_status=$?
34036 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34037 (exit $ac_status); }; }; then
34038
34039
34040 cat >>confdefs.h <<\_ACEOF
34041 #define ZFS_IS_GPL_COMPATIBLE 1
34042 _ACEOF
34043
34044
34045 else
34046 $as_echo "$as_me: program exited with status $ac_status" >&5
34047 $as_echo "$as_me: failed program was:" >&5
34048 sed 's/^/| /' conftest.$ac_ext >&5
34049
34050 ( exit $ac_status )
34051
34052
34053 fi
34054 rm -rf conftest.dSYM
34055 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
34056 fi
34057
34058
34059
34060 fi
34061
34062
34063
34064 { $as_echo "$as_me:$LINENO: checking whether kernel was built with 16K or larger stacks" >&5
34065 $as_echo_n "checking whether kernel was built with 16K or larger stacks... " >&6; }
34066
34067
34068 cat confdefs.h - <<_ACEOF >conftest.c
34069 /* confdefs.h. */
34070 _ACEOF
34071 cat confdefs.h >>conftest.$ac_ext
34072 cat >>conftest.$ac_ext <<_ACEOF
34073 /* end confdefs.h. */
34074
34075
34076 #include <linux/module.h>
34077
34078 int
34079 main (void)
34080 {
34081
34082 #if (THREAD_SIZE < 16384)
34083 #error "THREAD_SIZE is less than 16K"
34084 #endif
34085
34086 ;
34087 return 0;
34088 }
34089
34090 _ACEOF
34091
34092
34093
34094 cat - <<_ACEOF >conftest.h
34095
34096 _ACEOF
34097
34098
34099 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
34100 echo "obj-m := conftest.o" >build/Makefile
34101 modpost_flag=''
34102 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
34103 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
34104 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34105 (eval $ac_try) 2>&5
34106 ac_status=$?
34107 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34108 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
34109 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34110 (eval $ac_try) 2>&5
34111 ac_status=$?
34112 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34113 (exit $ac_status); }; }; then
34114
34115 { $as_echo "$as_me:$LINENO: result: yes" >&5
34116 $as_echo "yes" >&6; }
34117
34118 cat >>confdefs.h <<\_ACEOF
34119 #define HAVE_LARGE_STACKS 1
34120 _ACEOF
34121
34122
34123 else
34124 $as_echo "$as_me: failed program was:" >&5
34125 sed 's/^/| /' conftest.$ac_ext >&5
34126
34127 { $as_echo "$as_me:$LINENO: result: no" >&5
34128 $as_echo "no" >&6; }
34129
34130
34131
34132 fi
34133
34134 rm -Rf build
34135
34136
34137
34138
34139
34140 { $as_echo "$as_me:$LINENO: checking whether kernel was built with CONFIG_DEBUG_LOCK_ALLOC" >&5
34141 $as_echo_n "checking whether kernel was built with CONFIG_DEBUG_LOCK_ALLOC... " >&6; }
34142
34143
34144 cat confdefs.h - <<_ACEOF >conftest.c
34145 /* confdefs.h. */
34146 _ACEOF
34147 cat confdefs.h >>conftest.$ac_ext
34148 cat >>conftest.$ac_ext <<_ACEOF
34149 /* end confdefs.h. */
34150
34151
34152 #include <linux/module.h>
34153
34154 int
34155 main (void)
34156 {
34157
34158 #ifndef CONFIG_DEBUG_LOCK_ALLOC
34159 #error CONFIG_DEBUG_LOCK_ALLOC not #defined
34160 #endif
34161
34162 ;
34163 return 0;
34164 }
34165
34166 _ACEOF
34167
34168
34169
34170 cat - <<_ACEOF >conftest.h
34171
34172 _ACEOF
34173
34174
34175 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
34176 echo "obj-m := conftest.o" >build/Makefile
34177 modpost_flag=''
34178 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
34179 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
34180 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34181 (eval $ac_try) 2>&5
34182 ac_status=$?
34183 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34184 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
34185 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34186 (eval $ac_try) 2>&5
34187 ac_status=$?
34188 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34189 (exit $ac_status); }; }; then
34190
34191 { $as_echo "$as_me:$LINENO: result: yes" >&5
34192 $as_echo "yes" >&6; }
34193
34194 { $as_echo "$as_me:$LINENO: checking whether mutex_lock() is GPL-only" >&5
34195 $as_echo_n "checking whether mutex_lock() is GPL-only... " >&6; }
34196 tmp_flags="$EXTRA_KCFLAGS"
34197
34198
34199 cat confdefs.h - <<_ACEOF >conftest.c
34200 /* confdefs.h. */
34201 _ACEOF
34202 cat confdefs.h >>conftest.$ac_ext
34203 cat >>conftest.$ac_ext <<_ACEOF
34204 /* end confdefs.h. */
34205
34206
34207 #include <linux/module.h>
34208 #include <linux/mutex.h>
34209
34210 MODULE_LICENSE("$ZFS_META_LICENSE");
34211
34212 int
34213 main (void)
34214 {
34215
34216 struct mutex lock;
34217
34218 mutex_init(&lock);
34219 mutex_lock(&lock);
34220 mutex_unlock(&lock);
34221
34222 ;
34223 return 0;
34224 }
34225
34226 _ACEOF
34227
34228
34229
34230 cat - <<_ACEOF >conftest.h
34231
34232 _ACEOF
34233
34234
34235 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
34236 echo "obj-m := conftest.o" >build/Makefile
34237 modpost_flag=''
34238 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
34239 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
34240 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34241 (eval $ac_try) 2>&5
34242 ac_status=$?
34243 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34244 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
34245 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34246 (eval $ac_try) 2>&5
34247 ac_status=$?
34248 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34249 (exit $ac_status); }; }; then
34250
34251 { $as_echo "$as_me:$LINENO: result: no" >&5
34252 $as_echo "no" >&6; }
34253
34254 else
34255 $as_echo "$as_me: failed program was:" >&5
34256 sed 's/^/| /' conftest.$ac_ext >&5
34257
34258 { $as_echo "$as_me:$LINENO: result: yes" >&5
34259 $as_echo "yes" >&6; }
34260 { { $as_echo "$as_me:$LINENO: error:
34261 *** Kernel built with CONFIG_DEBUG_LOCK_ALLOC which is incompatible
34262 *** with the CDDL license and will prevent the module linking stage
34263 *** from succeeding. You must rebuild your kernel without this
34264 *** option enabled." >&5
34265 $as_echo "$as_me: error:
34266 *** Kernel built with CONFIG_DEBUG_LOCK_ALLOC which is incompatible
34267 *** with the CDDL license and will prevent the module linking stage
34268 *** from succeeding. You must rebuild your kernel without this
34269 *** option enabled." >&2;}
34270 { (exit 1); exit 1; }; }
34271
34272
34273
34274 fi
34275
34276 rm -Rf build
34277
34278
34279 EXTRA_KCFLAGS="$tmp_flags"
34280
34281
34282 else
34283 $as_echo "$as_me: failed program was:" >&5
34284 sed 's/^/| /' conftest.$ac_ext >&5
34285
34286 { $as_echo "$as_me:$LINENO: result: no" >&5
34287 $as_echo "no" >&6; }
34288
34289
34290
34291
34292 fi
34293
34294 rm -Rf build
34295
34296
34297
34298
34299
34300
34301 tmp_flags="$EXTRA_KCFLAGS"
34302 EXTRA_KCFLAGS="-I\$(src)"
34303
34304 { $as_echo "$as_me:$LINENO: checking whether DECLARE_EVENT_CLASS() is available" >&5
34305 $as_echo_n "checking whether DECLARE_EVENT_CLASS() is available... " >&6; }
34306
34307
34308 cat confdefs.h - <<_ACEOF >conftest.c
34309 /* confdefs.h. */
34310 _ACEOF
34311 cat confdefs.h >>conftest.$ac_ext
34312 cat >>conftest.$ac_ext <<_ACEOF
34313 /* end confdefs.h. */
34314
34315
34316 #include <linux/module.h>
34317 MODULE_LICENSE(ZFS_META_LICENSE);
34318
34319 #define CREATE_TRACE_POINTS
34320 #include "conftest.h"
34321
34322 int
34323 main (void)
34324 {
34325
34326 trace_zfs_autoconf_event_one(1UL);
34327 trace_zfs_autoconf_event_two(2UL);
34328
34329 ;
34330 return 0;
34331 }
34332
34333 _ACEOF
34334
34335
34336
34337 cat - <<_ACEOF >conftest.h
34338
34339 #if !defined(_CONFTEST_H) || defined(TRACE_HEADER_MULTI_READ)
34340 #define _CONFTEST_H
34341
34342 #undef TRACE_SYSTEM
34343 #define TRACE_SYSTEM zfs
34344 #include <linux/tracepoint.h>
34345
34346 DECLARE_EVENT_CLASS(zfs_autoconf_event_class,
34347 TP_PROTO(unsigned long i),
34348 TP_ARGS(i),
34349 TP_STRUCT__entry(
34350 __field(unsigned long, i)
34351 ),
34352 TP_fast_assign(
34353 __entry->i = i;
34354 ),
34355 TP_printk("i = %lu", __entry->i)
34356 );
34357
34358 #define DEFINE_AUTOCONF_EVENT(name) \
34359 DEFINE_EVENT(zfs_autoconf_event_class, name, \
34360 TP_PROTO(unsigned long i), \
34361 TP_ARGS(i))
34362 DEFINE_AUTOCONF_EVENT(zfs_autoconf_event_one);
34363 DEFINE_AUTOCONF_EVENT(zfs_autoconf_event_two);
34364
34365 #endif /* _CONFTEST_H */
34366
34367 #undef TRACE_INCLUDE_PATH
34368 #define TRACE_INCLUDE_PATH .
34369 #define TRACE_INCLUDE_FILE conftest
34370 #include <trace/define_trace.h>
34371
34372 _ACEOF
34373
34374
34375 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
34376 echo "obj-m := conftest.o" >build/Makefile
34377 modpost_flag=''
34378 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
34379 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
34380 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34381 (eval $ac_try) 2>&5
34382 ac_status=$?
34383 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34384 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
34385 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34386 (eval $ac_try) 2>&5
34387 ac_status=$?
34388 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34389 (exit $ac_status); }; }; then
34390
34391 { $as_echo "$as_me:$LINENO: result: yes" >&5
34392 $as_echo "yes" >&6; }
34393
34394 cat >>confdefs.h <<\_ACEOF
34395 #define HAVE_DECLARE_EVENT_CLASS 1
34396 _ACEOF
34397
34398
34399 else
34400 $as_echo "$as_me: failed program was:" >&5
34401 sed 's/^/| /' conftest.$ac_ext >&5
34402
34403 { $as_echo "$as_me:$LINENO: result: no" >&5
34404 $as_echo "no" >&6; }
34405
34406
34407
34408 fi
34409
34410 rm -Rf build
34411
34412
34413 EXTRA_KCFLAGS="$tmp_flags"
34414
34415
34416 { $as_echo "$as_me:$LINENO: checking whether current->bio_tail exists" >&5
34417 $as_echo_n "checking whether current->bio_tail exists... " >&6; }
34418
34419
34420 cat confdefs.h - <<_ACEOF >conftest.c
34421 /* confdefs.h. */
34422 _ACEOF
34423 cat confdefs.h >>conftest.$ac_ext
34424 cat >>conftest.$ac_ext <<_ACEOF
34425 /* end confdefs.h. */
34426
34427
34428 #include <linux/sched.h>
34429
34430 int
34431 main (void)
34432 {
34433
34434 current->bio_tail = (struct bio **) NULL;
34435
34436 ;
34437 return 0;
34438 }
34439
34440 _ACEOF
34441
34442
34443
34444 cat - <<_ACEOF >conftest.h
34445
34446 _ACEOF
34447
34448
34449 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
34450 echo "obj-m := conftest.o" >build/Makefile
34451 modpost_flag=''
34452 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
34453 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
34454 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34455 (eval $ac_try) 2>&5
34456 ac_status=$?
34457 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34458 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
34459 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34460 (eval $ac_try) 2>&5
34461 ac_status=$?
34462 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34463 (exit $ac_status); }; }; then
34464
34465 { $as_echo "$as_me:$LINENO: result: yes" >&5
34466 $as_echo "yes" >&6; }
34467
34468 cat >>confdefs.h <<\_ACEOF
34469 #define HAVE_CURRENT_BIO_TAIL 1
34470 _ACEOF
34471
34472
34473 else
34474 $as_echo "$as_me: failed program was:" >&5
34475 sed 's/^/| /' conftest.$ac_ext >&5
34476
34477 { $as_echo "$as_me:$LINENO: result: no" >&5
34478 $as_echo "no" >&6; }
34479 { $as_echo "$as_me:$LINENO: checking whether current->bio_list exists" >&5
34480 $as_echo_n "checking whether current->bio_list exists... " >&6; }
34481
34482
34483 cat confdefs.h - <<_ACEOF >conftest.c
34484 /* confdefs.h. */
34485 _ACEOF
34486 cat confdefs.h >>conftest.$ac_ext
34487 cat >>conftest.$ac_ext <<_ACEOF
34488 /* end confdefs.h. */
34489
34490
34491 #include <linux/sched.h>
34492
34493 int
34494 main (void)
34495 {
34496
34497 current->bio_list = (struct bio_list *) NULL;
34498
34499 ;
34500 return 0;
34501 }
34502
34503 _ACEOF
34504
34505
34506
34507 cat - <<_ACEOF >conftest.h
34508
34509 _ACEOF
34510
34511
34512 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
34513 echo "obj-m := conftest.o" >build/Makefile
34514 modpost_flag=''
34515 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
34516 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
34517 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34518 (eval $ac_try) 2>&5
34519 ac_status=$?
34520 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34521 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
34522 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34523 (eval $ac_try) 2>&5
34524 ac_status=$?
34525 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34526 (exit $ac_status); }; }; then
34527
34528 { $as_echo "$as_me:$LINENO: result: yes" >&5
34529 $as_echo "yes" >&6; }
34530
34531 cat >>confdefs.h <<\_ACEOF
34532 #define HAVE_CURRENT_BIO_LIST 1
34533 _ACEOF
34534
34535
34536 else
34537 $as_echo "$as_me: failed program was:" >&5
34538 sed 's/^/| /' conftest.$ac_ext >&5
34539
34540 { { $as_echo "$as_me:$LINENO: error: no - Please file a bug report at
34541 https://github.com/zfsonlinux/zfs/issues/new" >&5
34542 $as_echo "$as_me: error: no - Please file a bug report at
34543 https://github.com/zfsonlinux/zfs/issues/new" >&2;}
34544 { (exit 1); exit 1; }; }
34545
34546
34547
34548 fi
34549
34550 rm -Rf build
34551
34552
34553
34554
34555
34556 fi
34557
34558 rm -Rf build
34559
34560
34561
34562
34563 { $as_echo "$as_me:$LINENO: checking whether super_block->s_user_ns exists" >&5
34564 $as_echo_n "checking whether super_block->s_user_ns exists... " >&6; }
34565
34566
34567 cat confdefs.h - <<_ACEOF >conftest.c
34568 /* confdefs.h. */
34569 _ACEOF
34570 cat confdefs.h >>conftest.$ac_ext
34571 cat >>conftest.$ac_ext <<_ACEOF
34572 /* end confdefs.h. */
34573
34574
34575 #include <linux/fs.h>
34576 #include <linux/user_namespace.h>
34577
34578 int
34579 main (void)
34580 {
34581
34582 struct super_block super;
34583 super.s_user_ns = (struct user_namespace *)NULL;
34584
34585 ;
34586 return 0;
34587 }
34588
34589 _ACEOF
34590
34591
34592
34593 cat - <<_ACEOF >conftest.h
34594
34595 _ACEOF
34596
34597
34598 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
34599 echo "obj-m := conftest.o" >build/Makefile
34600 modpost_flag=''
34601 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
34602 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
34603 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34604 (eval $ac_try) 2>&5
34605 ac_status=$?
34606 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34607 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
34608 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34609 (eval $ac_try) 2>&5
34610 ac_status=$?
34611 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34612 (exit $ac_status); }; }; then
34613
34614 { $as_echo "$as_me:$LINENO: result: yes" >&5
34615 $as_echo "yes" >&6; }
34616
34617 cat >>confdefs.h <<\_ACEOF
34618 #define HAVE_SUPER_USER_NS 1
34619 _ACEOF
34620
34621
34622 else
34623 $as_echo "$as_me: failed program was:" >&5
34624 sed 's/^/| /' conftest.$ac_ext >&5
34625
34626 { $as_echo "$as_me:$LINENO: result: no" >&5
34627 $as_echo "no" >&6; }
34628
34629
34630
34631 fi
34632
34633 rm -Rf build
34634
34635
34636
34637
34638 { $as_echo "$as_me:$LINENO: checking whether submit_bio() wants 1 arg" >&5
34639 $as_echo_n "checking whether submit_bio() wants 1 arg... " >&6; }
34640
34641
34642 cat confdefs.h - <<_ACEOF >conftest.c
34643 /* confdefs.h. */
34644 _ACEOF
34645 cat confdefs.h >>conftest.$ac_ext
34646 cat >>conftest.$ac_ext <<_ACEOF
34647 /* end confdefs.h. */
34648
34649
34650 #include <linux/bio.h>
34651
34652 int
34653 main (void)
34654 {
34655
34656 blk_qc_t blk_qc;
34657 struct bio *bio = NULL;
34658 blk_qc = submit_bio(bio);
34659
34660 ;
34661 return 0;
34662 }
34663
34664 _ACEOF
34665
34666
34667
34668 cat - <<_ACEOF >conftest.h
34669
34670 _ACEOF
34671
34672
34673 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
34674 echo "obj-m := conftest.o" >build/Makefile
34675 modpost_flag=''
34676 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
34677 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
34678 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34679 (eval $ac_try) 2>&5
34680 ac_status=$?
34681 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34682 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
34683 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34684 (eval $ac_try) 2>&5
34685 ac_status=$?
34686 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34687 (exit $ac_status); }; }; then
34688
34689 { $as_echo "$as_me:$LINENO: result: yes" >&5
34690 $as_echo "yes" >&6; }
34691
34692 cat >>confdefs.h <<\_ACEOF
34693 #define HAVE_1ARG_SUBMIT_BIO 1
34694 _ACEOF
34695
34696
34697 else
34698 $as_echo "$as_me: failed program was:" >&5
34699 sed 's/^/| /' conftest.$ac_ext >&5
34700
34701 { $as_echo "$as_me:$LINENO: result: no" >&5
34702 $as_echo "no" >&6; }
34703
34704
34705
34706 fi
34707
34708 rm -Rf build
34709
34710
34711
34712
34713 { $as_echo "$as_me:$LINENO: checking whether bops->check_events() exists" >&5
34714 $as_echo_n "checking whether bops->check_events() exists... " >&6; }
34715 tmp_flags="$EXTRA_KCFLAGS"
34716 EXTRA_KCFLAGS="${NO_UNUSED_BUT_SET_VARIABLE}"
34717
34718
34719 cat confdefs.h - <<_ACEOF >conftest.c
34720 /* confdefs.h. */
34721 _ACEOF
34722 cat confdefs.h >>conftest.$ac_ext
34723 cat >>conftest.$ac_ext <<_ACEOF
34724 /* end confdefs.h. */
34725
34726
34727 #include <linux/blkdev.h>
34728
34729 unsigned int blk_check_events(struct gendisk *disk,
34730 unsigned int clearing) { return (0); }
34731
34732 static const struct block_device_operations
34733 bops __attribute__ ((unused)) = {
34734 .check_events = blk_check_events,
34735 };
34736
34737 int
34738 main (void)
34739 {
34740
34741
34742 ;
34743 return 0;
34744 }
34745
34746 _ACEOF
34747
34748
34749
34750 cat - <<_ACEOF >conftest.h
34751
34752 _ACEOF
34753
34754
34755 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
34756 echo "obj-m := conftest.o" >build/Makefile
34757 modpost_flag=''
34758 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
34759 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
34760 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34761 (eval $ac_try) 2>&5
34762 ac_status=$?
34763 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34764 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
34765 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34766 (eval $ac_try) 2>&5
34767 ac_status=$?
34768 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34769 (exit $ac_status); }; }; then
34770
34771 { $as_echo "$as_me:$LINENO: result: yes" >&5
34772 $as_echo "yes" >&6; }
34773
34774 cat >>confdefs.h <<\_ACEOF
34775 #define HAVE_BLOCK_DEVICE_OPERATIONS_CHECK_EVENTS 1
34776 _ACEOF
34777
34778
34779 else
34780 $as_echo "$as_me: failed program was:" >&5
34781 sed 's/^/| /' conftest.$ac_ext >&5
34782
34783 { $as_echo "$as_me:$LINENO: result: no" >&5
34784 $as_echo "no" >&6; }
34785
34786
34787
34788 fi
34789
34790 rm -Rf build
34791
34792
34793 EXTRA_KCFLAGS="$tmp_flags"
34794
34795
34796 { $as_echo "$as_me:$LINENO: checking whether bops->release() is void" >&5
34797 $as_echo_n "checking whether bops->release() is void... " >&6; }
34798 tmp_flags="$EXTRA_KCFLAGS"
34799 EXTRA_KCFLAGS="${NO_UNUSED_BUT_SET_VARIABLE}"
34800
34801
34802 cat confdefs.h - <<_ACEOF >conftest.c
34803 /* confdefs.h. */
34804 _ACEOF
34805 cat confdefs.h >>conftest.$ac_ext
34806 cat >>conftest.$ac_ext <<_ACEOF
34807 /* end confdefs.h. */
34808
34809
34810 #include <linux/blkdev.h>
34811
34812 void blk_release(struct gendisk *g, fmode_t mode) { return; }
34813
34814 static const struct block_device_operations
34815 bops __attribute__ ((unused)) = {
34816 .open = NULL,
34817 .release = blk_release,
34818 .ioctl = NULL,
34819 .compat_ioctl = NULL,
34820 };
34821
34822 int
34823 main (void)
34824 {
34825
34826
34827 ;
34828 return 0;
34829 }
34830
34831 _ACEOF
34832
34833
34834
34835 cat - <<_ACEOF >conftest.h
34836
34837 _ACEOF
34838
34839
34840 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
34841 echo "obj-m := conftest.o" >build/Makefile
34842 modpost_flag=''
34843 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
34844 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
34845 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34846 (eval $ac_try) 2>&5
34847 ac_status=$?
34848 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34849 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
34850 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34851 (eval $ac_try) 2>&5
34852 ac_status=$?
34853 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34854 (exit $ac_status); }; }; then
34855
34856 { $as_echo "$as_me:$LINENO: result: void" >&5
34857 $as_echo "void" >&6; }
34858
34859 cat >>confdefs.h <<\_ACEOF
34860 #define HAVE_BLOCK_DEVICE_OPERATIONS_RELEASE_VOID 1
34861 _ACEOF
34862
34863
34864 else
34865 $as_echo "$as_me: failed program was:" >&5
34866 sed 's/^/| /' conftest.$ac_ext >&5
34867
34868 { $as_echo "$as_me:$LINENO: result: int" >&5
34869 $as_echo "int" >&6; }
34870
34871
34872
34873 fi
34874
34875 rm -Rf build
34876
34877
34878 EXTRA_KCFLAGS="$tmp_flags"
34879
34880 { $as_echo "$as_me:$LINENO: checking whether kernel defines fmode_t" >&5
34881 $as_echo_n "checking whether kernel defines fmode_t... " >&6; }
34882
34883
34884 cat confdefs.h - <<_ACEOF >conftest.c
34885 /* confdefs.h. */
34886 _ACEOF
34887 cat confdefs.h >>conftest.$ac_ext
34888 cat >>conftest.$ac_ext <<_ACEOF
34889 /* end confdefs.h. */
34890
34891
34892 #include <linux/types.h>
34893
34894 int
34895 main (void)
34896 {
34897
34898 fmode_t *ptr __attribute__ ((unused));
34899
34900 ;
34901 return 0;
34902 }
34903
34904 _ACEOF
34905
34906
34907
34908 cat - <<_ACEOF >conftest.h
34909
34910 _ACEOF
34911
34912
34913 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
34914 echo "obj-m := conftest.o" >build/Makefile
34915 modpost_flag=''
34916 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
34917 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
34918 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34919 (eval $ac_try) 2>&5
34920 ac_status=$?
34921 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34922 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
34923 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34924 (eval $ac_try) 2>&5
34925 ac_status=$?
34926 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34927 (exit $ac_status); }; }; then
34928
34929 { $as_echo "$as_me:$LINENO: result: yes" >&5
34930 $as_echo "yes" >&6; }
34931
34932 cat >>confdefs.h <<\_ACEOF
34933 #define HAVE_FMODE_T 1
34934 _ACEOF
34935
34936
34937 else
34938 $as_echo "$as_me: failed program was:" >&5
34939 sed 's/^/| /' conftest.$ac_ext >&5
34940
34941 { $as_echo "$as_me:$LINENO: result: no" >&5
34942 $as_echo "no" >&6; }
34943
34944
34945
34946 fi
34947
34948 rm -Rf build
34949
34950
34951
34952
34953 { $as_echo "$as_me:$LINENO: checking whether blkdev_get() wants 3 args" >&5
34954 $as_echo_n "checking whether blkdev_get() wants 3 args... " >&6; }
34955
34956
34957 cat confdefs.h - <<_ACEOF >conftest.c
34958 /* confdefs.h. */
34959 _ACEOF
34960 cat confdefs.h >>conftest.$ac_ext
34961 cat >>conftest.$ac_ext <<_ACEOF
34962 /* end confdefs.h. */
34963
34964
34965 #include <linux/fs.h>
34966
34967 int
34968 main (void)
34969 {
34970
34971 struct block_device *bdev = NULL;
34972 (void) blkdev_get(bdev, 0, NULL);
34973
34974 ;
34975 return 0;
34976 }
34977
34978 _ACEOF
34979
34980
34981
34982 cat - <<_ACEOF >conftest.h
34983
34984 _ACEOF
34985
34986
34987 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
34988 echo "obj-m := conftest.o" >build/Makefile
34989 modpost_flag=''
34990 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
34991 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
34992 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34993 (eval $ac_try) 2>&5
34994 ac_status=$?
34995 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34996 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
34997 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34998 (eval $ac_try) 2>&5
34999 ac_status=$?
35000 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35001 (exit $ac_status); }; }; then
35002
35003 { $as_echo "$as_me:$LINENO: result: yes" >&5
35004 $as_echo "yes" >&6; }
35005
35006 cat >>confdefs.h <<\_ACEOF
35007 #define HAVE_3ARG_BLKDEV_GET 1
35008 _ACEOF
35009
35010
35011 else
35012 $as_echo "$as_me: failed program was:" >&5
35013 sed 's/^/| /' conftest.$ac_ext >&5
35014
35015 { $as_echo "$as_me:$LINENO: result: no" >&5
35016 $as_echo "no" >&6; }
35017
35018
35019
35020 fi
35021
35022 rm -Rf build
35023
35024
35025
35026 { $as_echo "$as_me:$LINENO: checking whether blkdev_get_by_path() is available" >&5
35027 $as_echo_n "checking whether blkdev_get_by_path() is available... " >&6; }
35028
35029
35030
35031 cat confdefs.h - <<_ACEOF >conftest.c
35032 /* confdefs.h. */
35033 _ACEOF
35034 cat confdefs.h >>conftest.$ac_ext
35035 cat >>conftest.$ac_ext <<_ACEOF
35036 /* end confdefs.h. */
35037
35038
35039 #include <linux/fs.h>
35040
35041 int
35042 main (void)
35043 {
35044
35045 blkdev_get_by_path(NULL, 0, NULL);
35046
35047 ;
35048 return 0;
35049 }
35050
35051 _ACEOF
35052
35053
35054
35055 cat - <<_ACEOF >conftest.h
35056
35057 _ACEOF
35058
35059
35060 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
35061 echo "obj-m := conftest.o" >build/Makefile
35062 modpost_flag=''
35063 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
35064 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
35065 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35066 (eval $ac_try) 2>&5
35067 ac_status=$?
35068 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35069 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
35070 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35071 (eval $ac_try) 2>&5
35072 ac_status=$?
35073 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35074 (exit $ac_status); }; }; then
35075 rc=0
35076 else
35077 $as_echo "$as_me: failed program was:" >&5
35078 sed 's/^/| /' conftest.$ac_ext >&5
35079 rc=1
35080
35081
35082 fi
35083
35084 rm -Rf build
35085
35086
35087 if test $rc -ne 0; then :
35088
35089 { $as_echo "$as_me:$LINENO: result: no" >&5
35090 $as_echo "no" >&6; }
35091
35092 else
35093 if test "x$enable_linux_builtin" != xyes; then
35094
35095 grep -q -E '[[:space:]]blkdev_get_by_path[[:space:]]' \
35096 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
35097 rc=$?
35098 if test $rc -ne 0; then
35099 export=0
35100 for file in fs/block_dev.c; do
35101 grep -q -E "EXPORT_SYMBOL.*(blkdev_get_by_path)" \
35102 "$LINUX/$file" 2>/dev/null
35103 rc=$?
35104 if test $rc -eq 0; then
35105 export=1
35106 break;
35107 fi
35108 done
35109 if test $export -eq 0; then :
35110 rc=1
35111 else :
35112 rc=0
35113 fi
35114 else :
35115 rc=0
35116 fi
35117
35118 fi
35119 if test $rc -ne 0; then :
35120
35121 { $as_echo "$as_me:$LINENO: result: no" >&5
35122 $as_echo "no" >&6; }
35123
35124 else :
35125
35126 { $as_echo "$as_me:$LINENO: result: yes" >&5
35127 $as_echo "yes" >&6; }
35128
35129 cat >>confdefs.h <<\_ACEOF
35130 #define HAVE_BLKDEV_GET_BY_PATH 1
35131 _ACEOF
35132
35133
35134 fi
35135 fi
35136
35137
35138 { $as_echo "$as_me:$LINENO: checking whether open_bdev_exclusive() is available" >&5
35139 $as_echo_n "checking whether open_bdev_exclusive() is available... " >&6; }
35140
35141
35142
35143 cat confdefs.h - <<_ACEOF >conftest.c
35144 /* confdefs.h. */
35145 _ACEOF
35146 cat confdefs.h >>conftest.$ac_ext
35147 cat >>conftest.$ac_ext <<_ACEOF
35148 /* end confdefs.h. */
35149
35150
35151 #include <linux/fs.h>
35152
35153 int
35154 main (void)
35155 {
35156
35157 open_bdev_exclusive(NULL, 0, NULL);
35158
35159 ;
35160 return 0;
35161 }
35162
35163 _ACEOF
35164
35165
35166
35167 cat - <<_ACEOF >conftest.h
35168
35169 _ACEOF
35170
35171
35172 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
35173 echo "obj-m := conftest.o" >build/Makefile
35174 modpost_flag=''
35175 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
35176 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
35177 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35178 (eval $ac_try) 2>&5
35179 ac_status=$?
35180 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35181 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
35182 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35183 (eval $ac_try) 2>&5
35184 ac_status=$?
35185 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35186 (exit $ac_status); }; }; then
35187 rc=0
35188 else
35189 $as_echo "$as_me: failed program was:" >&5
35190 sed 's/^/| /' conftest.$ac_ext >&5
35191 rc=1
35192
35193
35194 fi
35195
35196 rm -Rf build
35197
35198
35199 if test $rc -ne 0; then :
35200
35201 { $as_echo "$as_me:$LINENO: result: no" >&5
35202 $as_echo "no" >&6; }
35203
35204 else
35205 if test "x$enable_linux_builtin" != xyes; then
35206
35207 grep -q -E '[[:space:]]open_bdev_exclusive[[:space:]]' \
35208 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
35209 rc=$?
35210 if test $rc -ne 0; then
35211 export=0
35212 for file in fs/block_dev.c; do
35213 grep -q -E "EXPORT_SYMBOL.*(open_bdev_exclusive)" \
35214 "$LINUX/$file" 2>/dev/null
35215 rc=$?
35216 if test $rc -eq 0; then
35217 export=1
35218 break;
35219 fi
35220 done
35221 if test $export -eq 0; then :
35222 rc=1
35223 else :
35224 rc=0
35225 fi
35226 else :
35227 rc=0
35228 fi
35229
35230 fi
35231 if test $rc -ne 0; then :
35232
35233 { $as_echo "$as_me:$LINENO: result: no" >&5
35234 $as_echo "no" >&6; }
35235
35236 else :
35237
35238 { $as_echo "$as_me:$LINENO: result: yes" >&5
35239 $as_echo "yes" >&6; }
35240
35241 cat >>confdefs.h <<\_ACEOF
35242 #define HAVE_OPEN_BDEV_EXCLUSIVE 1
35243 _ACEOF
35244
35245
35246 fi
35247 fi
35248
35249
35250 { $as_echo "$as_me:$LINENO: checking whether lookup_bdev() wants 1 arg" >&5
35251 $as_echo_n "checking whether lookup_bdev() wants 1 arg... " >&6; }
35252
35253
35254
35255 cat confdefs.h - <<_ACEOF >conftest.c
35256 /* confdefs.h. */
35257 _ACEOF
35258 cat confdefs.h >>conftest.$ac_ext
35259 cat >>conftest.$ac_ext <<_ACEOF
35260 /* end confdefs.h. */
35261
35262
35263 #include <linux/fs.h>
35264
35265 int
35266 main (void)
35267 {
35268
35269 lookup_bdev(NULL);
35270
35271 ;
35272 return 0;
35273 }
35274
35275 _ACEOF
35276
35277
35278
35279 cat - <<_ACEOF >conftest.h
35280
35281 _ACEOF
35282
35283
35284 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
35285 echo "obj-m := conftest.o" >build/Makefile
35286 modpost_flag=''
35287 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
35288 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
35289 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35290 (eval $ac_try) 2>&5
35291 ac_status=$?
35292 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35293 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
35294 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35295 (eval $ac_try) 2>&5
35296 ac_status=$?
35297 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35298 (exit $ac_status); }; }; then
35299 rc=0
35300 else
35301 $as_echo "$as_me: failed program was:" >&5
35302 sed 's/^/| /' conftest.$ac_ext >&5
35303 rc=1
35304
35305
35306 fi
35307
35308 rm -Rf build
35309
35310
35311 if test $rc -ne 0; then :
35312
35313 { $as_echo "$as_me:$LINENO: result: no" >&5
35314 $as_echo "no" >&6; }
35315 { $as_echo "$as_me:$LINENO: checking whether lookup_bdev() wants 2 args" >&5
35316 $as_echo_n "checking whether lookup_bdev() wants 2 args... " >&6; }
35317
35318
35319
35320 cat confdefs.h - <<_ACEOF >conftest.c
35321 /* confdefs.h. */
35322 _ACEOF
35323 cat confdefs.h >>conftest.$ac_ext
35324 cat >>conftest.$ac_ext <<_ACEOF
35325 /* end confdefs.h. */
35326
35327
35328 #include <linux/fs.h>
35329
35330 int
35331 main (void)
35332 {
35333
35334 lookup_bdev(NULL, FMODE_READ);
35335
35336 ;
35337 return 0;
35338 }
35339
35340 _ACEOF
35341
35342
35343
35344 cat - <<_ACEOF >conftest.h
35345
35346 _ACEOF
35347
35348
35349 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
35350 echo "obj-m := conftest.o" >build/Makefile
35351 modpost_flag=''
35352 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
35353 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
35354 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35355 (eval $ac_try) 2>&5
35356 ac_status=$?
35357 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35358 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
35359 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35360 (eval $ac_try) 2>&5
35361 ac_status=$?
35362 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35363 (exit $ac_status); }; }; then
35364 rc=0
35365 else
35366 $as_echo "$as_me: failed program was:" >&5
35367 sed 's/^/| /' conftest.$ac_ext >&5
35368 rc=1
35369
35370
35371 fi
35372
35373 rm -Rf build
35374
35375
35376 if test $rc -ne 0; then :
35377
35378 { $as_echo "$as_me:$LINENO: result: no" >&5
35379 $as_echo "no" >&6; }
35380
35381 else
35382 if test "x$enable_linux_builtin" != xyes; then
35383
35384 grep -q -E '[[:space:]]lookup_bdev[[:space:]]' \
35385 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
35386 rc=$?
35387 if test $rc -ne 0; then
35388 export=0
35389 for file in fs/block_dev.c; do
35390 grep -q -E "EXPORT_SYMBOL.*(lookup_bdev)" \
35391 "$LINUX/$file" 2>/dev/null
35392 rc=$?
35393 if test $rc -eq 0; then
35394 export=1
35395 break;
35396 fi
35397 done
35398 if test $export -eq 0; then :
35399 rc=1
35400 else :
35401 rc=0
35402 fi
35403 else :
35404 rc=0
35405 fi
35406
35407 fi
35408 if test $rc -ne 0; then :
35409
35410 { $as_echo "$as_me:$LINENO: result: no" >&5
35411 $as_echo "no" >&6; }
35412
35413 else :
35414
35415 { $as_echo "$as_me:$LINENO: result: yes" >&5
35416 $as_echo "yes" >&6; }
35417
35418 cat >>confdefs.h <<\_ACEOF
35419 #define HAVE_2ARGS_LOOKUP_BDEV 1
35420 _ACEOF
35421
35422
35423 fi
35424 fi
35425
35426
35427 else
35428 if test "x$enable_linux_builtin" != xyes; then
35429
35430 grep -q -E '[[:space:]]lookup_bdev[[:space:]]' \
35431 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
35432 rc=$?
35433 if test $rc -ne 0; then
35434 export=0
35435 for file in fs/block_dev.c; do
35436 grep -q -E "EXPORT_SYMBOL.*(lookup_bdev)" \
35437 "$LINUX/$file" 2>/dev/null
35438 rc=$?
35439 if test $rc -eq 0; then
35440 export=1
35441 break;
35442 fi
35443 done
35444 if test $export -eq 0; then :
35445 rc=1
35446 else :
35447 rc=0
35448 fi
35449 else :
35450 rc=0
35451 fi
35452
35453 fi
35454 if test $rc -ne 0; then :
35455
35456 { $as_echo "$as_me:$LINENO: result: no" >&5
35457 $as_echo "no" >&6; }
35458 { $as_echo "$as_me:$LINENO: checking whether lookup_bdev() wants 2 args" >&5
35459 $as_echo_n "checking whether lookup_bdev() wants 2 args... " >&6; }
35460
35461
35462
35463 cat confdefs.h - <<_ACEOF >conftest.c
35464 /* confdefs.h. */
35465 _ACEOF
35466 cat confdefs.h >>conftest.$ac_ext
35467 cat >>conftest.$ac_ext <<_ACEOF
35468 /* end confdefs.h. */
35469
35470
35471 #include <linux/fs.h>
35472
35473 int
35474 main (void)
35475 {
35476
35477 lookup_bdev(NULL, FMODE_READ);
35478
35479 ;
35480 return 0;
35481 }
35482
35483 _ACEOF
35484
35485
35486
35487 cat - <<_ACEOF >conftest.h
35488
35489 _ACEOF
35490
35491
35492 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
35493 echo "obj-m := conftest.o" >build/Makefile
35494 modpost_flag=''
35495 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
35496 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
35497 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35498 (eval $ac_try) 2>&5
35499 ac_status=$?
35500 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35501 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
35502 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35503 (eval $ac_try) 2>&5
35504 ac_status=$?
35505 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35506 (exit $ac_status); }; }; then
35507 rc=0
35508 else
35509 $as_echo "$as_me: failed program was:" >&5
35510 sed 's/^/| /' conftest.$ac_ext >&5
35511 rc=1
35512
35513
35514 fi
35515
35516 rm -Rf build
35517
35518
35519 if test $rc -ne 0; then :
35520
35521 { $as_echo "$as_me:$LINENO: result: no" >&5
35522 $as_echo "no" >&6; }
35523
35524 else
35525 if test "x$enable_linux_builtin" != xyes; then
35526
35527 grep -q -E '[[:space:]]lookup_bdev[[:space:]]' \
35528 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
35529 rc=$?
35530 if test $rc -ne 0; then
35531 export=0
35532 for file in fs/block_dev.c; do
35533 grep -q -E "EXPORT_SYMBOL.*(lookup_bdev)" \
35534 "$LINUX/$file" 2>/dev/null
35535 rc=$?
35536 if test $rc -eq 0; then
35537 export=1
35538 break;
35539 fi
35540 done
35541 if test $export -eq 0; then :
35542 rc=1
35543 else :
35544 rc=0
35545 fi
35546 else :
35547 rc=0
35548 fi
35549
35550 fi
35551 if test $rc -ne 0; then :
35552
35553 { $as_echo "$as_me:$LINENO: result: no" >&5
35554 $as_echo "no" >&6; }
35555
35556 else :
35557
35558 { $as_echo "$as_me:$LINENO: result: yes" >&5
35559 $as_echo "yes" >&6; }
35560
35561 cat >>confdefs.h <<\_ACEOF
35562 #define HAVE_2ARGS_LOOKUP_BDEV 1
35563 _ACEOF
35564
35565
35566 fi
35567 fi
35568
35569
35570 else :
35571
35572 { $as_echo "$as_me:$LINENO: result: yes" >&5
35573 $as_echo "yes" >&6; }
35574
35575 cat >>confdefs.h <<\_ACEOF
35576 #define HAVE_1ARG_LOOKUP_BDEV 1
35577 _ACEOF
35578
35579
35580 fi
35581 fi
35582
35583
35584
35585 { $as_echo "$as_me:$LINENO: checking whether invalidate_bdev() wants 1 arg" >&5
35586 $as_echo_n "checking whether invalidate_bdev() wants 1 arg... " >&6; }
35587
35588
35589 cat confdefs.h - <<_ACEOF >conftest.c
35590 /* confdefs.h. */
35591 _ACEOF
35592 cat confdefs.h >>conftest.$ac_ext
35593 cat >>conftest.$ac_ext <<_ACEOF
35594 /* end confdefs.h. */
35595
35596
35597 #include <linux/buffer_head.h>
35598
35599 int
35600 main (void)
35601 {
35602
35603 struct block_device *bdev = NULL;
35604 invalidate_bdev(bdev);
35605
35606 ;
35607 return 0;
35608 }
35609
35610 _ACEOF
35611
35612
35613
35614 cat - <<_ACEOF >conftest.h
35615
35616 _ACEOF
35617
35618
35619 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
35620 echo "obj-m := conftest.o" >build/Makefile
35621 modpost_flag=''
35622 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
35623 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
35624 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35625 (eval $ac_try) 2>&5
35626 ac_status=$?
35627 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35628 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
35629 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35630 (eval $ac_try) 2>&5
35631 ac_status=$?
35632 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35633 (exit $ac_status); }; }; then
35634
35635 { $as_echo "$as_me:$LINENO: result: yes" >&5
35636 $as_echo "yes" >&6; }
35637
35638 cat >>confdefs.h <<\_ACEOF
35639 #define HAVE_1ARG_INVALIDATE_BDEV 1
35640 _ACEOF
35641
35642
35643 else
35644 $as_echo "$as_me: failed program was:" >&5
35645 sed 's/^/| /' conftest.$ac_ext >&5
35646
35647 { $as_echo "$as_me:$LINENO: result: no" >&5
35648 $as_echo "no" >&6; }
35649
35650
35651
35652 fi
35653
35654 rm -Rf build
35655
35656
35657
35658
35659 { $as_echo "$as_me:$LINENO: checking whether bdev_logical_block_size() is available" >&5
35660 $as_echo_n "checking whether bdev_logical_block_size() is available... " >&6; }
35661 tmp_flags="$EXTRA_KCFLAGS"
35662 EXTRA_KCFLAGS="${NO_UNUSED_BUT_SET_VARIABLE}"
35663
35664
35665 cat confdefs.h - <<_ACEOF >conftest.c
35666 /* confdefs.h. */
35667 _ACEOF
35668 cat confdefs.h >>conftest.$ac_ext
35669 cat >>conftest.$ac_ext <<_ACEOF
35670 /* end confdefs.h. */
35671
35672
35673 #include <linux/blkdev.h>
35674
35675 int
35676 main (void)
35677 {
35678
35679 struct block_device *bdev = NULL;
35680 bdev_logical_block_size(bdev);
35681
35682 ;
35683 return 0;
35684 }
35685
35686 _ACEOF
35687
35688
35689
35690 cat - <<_ACEOF >conftest.h
35691
35692 _ACEOF
35693
35694
35695 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
35696 echo "obj-m := conftest.o" >build/Makefile
35697 modpost_flag=''
35698 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
35699 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
35700 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35701 (eval $ac_try) 2>&5
35702 ac_status=$?
35703 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35704 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
35705 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35706 (eval $ac_try) 2>&5
35707 ac_status=$?
35708 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35709 (exit $ac_status); }; }; then
35710
35711 { $as_echo "$as_me:$LINENO: result: yes" >&5
35712 $as_echo "yes" >&6; }
35713
35714 cat >>confdefs.h <<\_ACEOF
35715 #define HAVE_BDEV_LOGICAL_BLOCK_SIZE 1
35716 _ACEOF
35717
35718
35719 else
35720 $as_echo "$as_me: failed program was:" >&5
35721 sed 's/^/| /' conftest.$ac_ext >&5
35722
35723 { $as_echo "$as_me:$LINENO: result: no" >&5
35724 $as_echo "no" >&6; }
35725
35726
35727
35728 fi
35729
35730 rm -Rf build
35731
35732
35733 EXTRA_KCFLAGS="$tmp_flags"
35734
35735
35736 { $as_echo "$as_me:$LINENO: checking whether bdev_physical_block_size() is available" >&5
35737 $as_echo_n "checking whether bdev_physical_block_size() is available... " >&6; }
35738 tmp_flags="$EXTRA_KCFLAGS"
35739 EXTRA_KCFLAGS="${NO_UNUSED_BUT_SET_VARIABLE}"
35740
35741
35742 cat confdefs.h - <<_ACEOF >conftest.c
35743 /* confdefs.h. */
35744 _ACEOF
35745 cat confdefs.h >>conftest.$ac_ext
35746 cat >>conftest.$ac_ext <<_ACEOF
35747 /* end confdefs.h. */
35748
35749
35750 #include <linux/blkdev.h>
35751
35752 int
35753 main (void)
35754 {
35755
35756 struct block_device *bdev = NULL;
35757 bdev_physical_block_size(bdev);
35758
35759 ;
35760 return 0;
35761 }
35762
35763 _ACEOF
35764
35765
35766
35767 cat - <<_ACEOF >conftest.h
35768
35769 _ACEOF
35770
35771
35772 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
35773 echo "obj-m := conftest.o" >build/Makefile
35774 modpost_flag=''
35775 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
35776 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
35777 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35778 (eval $ac_try) 2>&5
35779 ac_status=$?
35780 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35781 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
35782 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35783 (eval $ac_try) 2>&5
35784 ac_status=$?
35785 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35786 (exit $ac_status); }; }; then
35787
35788 { $as_echo "$as_me:$LINENO: result: yes" >&5
35789 $as_echo "yes" >&6; }
35790
35791 cat >>confdefs.h <<\_ACEOF
35792 #define HAVE_BDEV_PHYSICAL_BLOCK_SIZE 1
35793 _ACEOF
35794
35795
35796 else
35797 $as_echo "$as_me: failed program was:" >&5
35798 sed 's/^/| /' conftest.$ac_ext >&5
35799
35800 { $as_echo "$as_me:$LINENO: result: no" >&5
35801 $as_echo "no" >&6; }
35802
35803
35804
35805 fi
35806
35807 rm -Rf build
35808
35809
35810 EXTRA_KCFLAGS="$tmp_flags"
35811
35812
35813 { $as_echo "$as_me:$LINENO: checking whether bio has bi_iter" >&5
35814 $as_echo_n "checking whether bio has bi_iter... " >&6; }
35815
35816
35817 cat confdefs.h - <<_ACEOF >conftest.c
35818 /* confdefs.h. */
35819 _ACEOF
35820 cat confdefs.h >>conftest.$ac_ext
35821 cat >>conftest.$ac_ext <<_ACEOF
35822 /* end confdefs.h. */
35823
35824
35825 #include <linux/bio.h>
35826
35827 int
35828 main (void)
35829 {
35830
35831 struct bio bio;
35832 bio.bi_iter.bi_sector = 0;
35833
35834 ;
35835 return 0;
35836 }
35837
35838 _ACEOF
35839
35840
35841
35842 cat - <<_ACEOF >conftest.h
35843
35844 _ACEOF
35845
35846
35847 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
35848 echo "obj-m := conftest.o" >build/Makefile
35849 modpost_flag=''
35850 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
35851 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
35852 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35853 (eval $ac_try) 2>&5
35854 ac_status=$?
35855 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35856 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
35857 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35858 (eval $ac_try) 2>&5
35859 ac_status=$?
35860 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35861 (exit $ac_status); }; }; then
35862
35863 { $as_echo "$as_me:$LINENO: result: yes" >&5
35864 $as_echo "yes" >&6; }
35865
35866 cat >>confdefs.h <<\_ACEOF
35867 #define HAVE_BIO_BVEC_ITER 1
35868 _ACEOF
35869
35870
35871 else
35872 $as_echo "$as_me: failed program was:" >&5
35873 sed 's/^/| /' conftest.$ac_ext >&5
35874
35875 { $as_echo "$as_me:$LINENO: result: no" >&5
35876 $as_echo "no" >&6; }
35877
35878
35879
35880 fi
35881
35882 rm -Rf build
35883
35884
35885
35886
35887 { $as_echo "$as_me:$LINENO: checking whether BIO_RW_FAILFAST_* are defined" >&5
35888 $as_echo_n "checking whether BIO_RW_FAILFAST_* are defined... " >&6; }
35889
35890
35891 cat confdefs.h - <<_ACEOF >conftest.c
35892 /* confdefs.h. */
35893 _ACEOF
35894 cat confdefs.h >>conftest.$ac_ext
35895 cat >>conftest.$ac_ext <<_ACEOF
35896 /* end confdefs.h. */
35897
35898
35899 #include <linux/bio.h>
35900
35901 int
35902 main (void)
35903 {
35904
35905 int flags __attribute__ ((unused));
35906 flags = ((1 << BIO_RW_FAILFAST_DEV) |
35907 (1 << BIO_RW_FAILFAST_TRANSPORT) |
35908 (1 << BIO_RW_FAILFAST_DRIVER));
35909
35910 ;
35911 return 0;
35912 }
35913
35914 _ACEOF
35915
35916
35917
35918 cat - <<_ACEOF >conftest.h
35919
35920 _ACEOF
35921
35922
35923 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
35924 echo "obj-m := conftest.o" >build/Makefile
35925 modpost_flag=''
35926 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
35927 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
35928 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35929 (eval $ac_try) 2>&5
35930 ac_status=$?
35931 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35932 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
35933 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35934 (eval $ac_try) 2>&5
35935 ac_status=$?
35936 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35937 (exit $ac_status); }; }; then
35938
35939 { $as_echo "$as_me:$LINENO: result: yes" >&5
35940 $as_echo "yes" >&6; }
35941
35942 cat >>confdefs.h <<\_ACEOF
35943 #define HAVE_BIO_RW_FAILFAST_DTD 1
35944 _ACEOF
35945
35946
35947 else
35948 $as_echo "$as_me: failed program was:" >&5
35949 sed 's/^/| /' conftest.$ac_ext >&5
35950
35951 { $as_echo "$as_me:$LINENO: result: no" >&5
35952 $as_echo "no" >&6; }
35953
35954
35955
35956 fi
35957
35958 rm -Rf build
35959
35960
35961
35962
35963 { $as_echo "$as_me:$LINENO: checking whether bio_set_dev() exists" >&5
35964 $as_echo_n "checking whether bio_set_dev() exists... " >&6; }
35965
35966
35967 cat confdefs.h - <<_ACEOF >conftest.c
35968 /* confdefs.h. */
35969 _ACEOF
35970 cat confdefs.h >>conftest.$ac_ext
35971 cat >>conftest.$ac_ext <<_ACEOF
35972 /* end confdefs.h. */
35973
35974
35975 #include <linux/bio.h>
35976 #include <linux/fs.h>
35977
35978 int
35979 main (void)
35980 {
35981
35982 struct block_device *bdev = NULL;
35983 struct bio *bio = NULL;
35984 bio_set_dev(bio, bdev);
35985
35986 ;
35987 return 0;
35988 }
35989
35990 _ACEOF
35991
35992
35993
35994 cat - <<_ACEOF >conftest.h
35995
35996 _ACEOF
35997
35998
35999 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
36000 echo "obj-m := conftest.o" >build/Makefile
36001 modpost_flag=''
36002 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
36003 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
36004 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36005 (eval $ac_try) 2>&5
36006 ac_status=$?
36007 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36008 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
36009 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36010 (eval $ac_try) 2>&5
36011 ac_status=$?
36012 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36013 (exit $ac_status); }; }; then
36014
36015 { $as_echo "$as_me:$LINENO: result: yes" >&5
36016 $as_echo "yes" >&6; }
36017
36018 cat >>confdefs.h <<\_ACEOF
36019 #define HAVE_BIO_SET_DEV 1
36020 _ACEOF
36021
36022
36023 else
36024 $as_echo "$as_me: failed program was:" >&5
36025 sed 's/^/| /' conftest.$ac_ext >&5
36026
36027 { $as_echo "$as_me:$LINENO: result: no" >&5
36028 $as_echo "no" >&6; }
36029
36030
36031
36032 fi
36033
36034 rm -Rf build
36035
36036
36037
36038
36039 { $as_echo "$as_me:$LINENO: checking whether REQ_FAILFAST_MASK is defined" >&5
36040 $as_echo_n "checking whether REQ_FAILFAST_MASK is defined... " >&6; }
36041
36042
36043 cat confdefs.h - <<_ACEOF >conftest.c
36044 /* confdefs.h. */
36045 _ACEOF
36046 cat confdefs.h >>conftest.$ac_ext
36047 cat >>conftest.$ac_ext <<_ACEOF
36048 /* end confdefs.h. */
36049
36050
36051 #include <linux/bio.h>
36052
36053 int
36054 main (void)
36055 {
36056
36057 int flags __attribute__ ((unused));
36058 flags = REQ_FAILFAST_MASK;
36059
36060 ;
36061 return 0;
36062 }
36063
36064 _ACEOF
36065
36066
36067
36068 cat - <<_ACEOF >conftest.h
36069
36070 _ACEOF
36071
36072
36073 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
36074 echo "obj-m := conftest.o" >build/Makefile
36075 modpost_flag=''
36076 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
36077 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
36078 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36079 (eval $ac_try) 2>&5
36080 ac_status=$?
36081 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36082 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
36083 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36084 (eval $ac_try) 2>&5
36085 ac_status=$?
36086 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36087 (exit $ac_status); }; }; then
36088
36089 { $as_echo "$as_me:$LINENO: result: yes" >&5
36090 $as_echo "yes" >&6; }
36091
36092 cat >>confdefs.h <<\_ACEOF
36093 #define HAVE_REQ_FAILFAST_MASK 1
36094 _ACEOF
36095
36096
36097 else
36098 $as_echo "$as_me: failed program was:" >&5
36099 sed 's/^/| /' conftest.$ac_ext >&5
36100
36101 { $as_echo "$as_me:$LINENO: result: no" >&5
36102 $as_echo "no" >&6; }
36103
36104
36105
36106 fi
36107
36108 rm -Rf build
36109
36110
36111
36112
36113 { $as_echo "$as_me:$LINENO: checking whether REQ_OP_DISCARD is defined" >&5
36114 $as_echo_n "checking whether REQ_OP_DISCARD is defined... " >&6; }
36115
36116
36117 cat confdefs.h - <<_ACEOF >conftest.c
36118 /* confdefs.h. */
36119 _ACEOF
36120 cat confdefs.h >>conftest.$ac_ext
36121 cat >>conftest.$ac_ext <<_ACEOF
36122 /* end confdefs.h. */
36123
36124
36125 #include <linux/blk_types.h>
36126
36127 int
36128 main (void)
36129 {
36130
36131 int op __attribute__ ((unused)) = REQ_OP_DISCARD;
36132
36133 ;
36134 return 0;
36135 }
36136
36137 _ACEOF
36138
36139
36140
36141 cat - <<_ACEOF >conftest.h
36142
36143 _ACEOF
36144
36145
36146 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
36147 echo "obj-m := conftest.o" >build/Makefile
36148 modpost_flag=''
36149 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
36150 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
36151 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36152 (eval $ac_try) 2>&5
36153 ac_status=$?
36154 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36155 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
36156 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36157 (eval $ac_try) 2>&5
36158 ac_status=$?
36159 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36160 (exit $ac_status); }; }; then
36161
36162 { $as_echo "$as_me:$LINENO: result: yes" >&5
36163 $as_echo "yes" >&6; }
36164
36165 cat >>confdefs.h <<\_ACEOF
36166 #define HAVE_REQ_OP_DISCARD 1
36167 _ACEOF
36168
36169
36170 else
36171 $as_echo "$as_me: failed program was:" >&5
36172 sed 's/^/| /' conftest.$ac_ext >&5
36173
36174 { $as_echo "$as_me:$LINENO: result: no" >&5
36175 $as_echo "no" >&6; }
36176
36177
36178
36179 fi
36180
36181 rm -Rf build
36182
36183
36184
36185
36186 { $as_echo "$as_me:$LINENO: checking whether REQ_OP_SECURE_ERASE is defined" >&5
36187 $as_echo_n "checking whether REQ_OP_SECURE_ERASE is defined... " >&6; }
36188
36189
36190 cat confdefs.h - <<_ACEOF >conftest.c
36191 /* confdefs.h. */
36192 _ACEOF
36193 cat confdefs.h >>conftest.$ac_ext
36194 cat >>conftest.$ac_ext <<_ACEOF
36195 /* end confdefs.h. */
36196
36197
36198 #include <linux/blk_types.h>
36199
36200 int
36201 main (void)
36202 {
36203
36204 int op __attribute__ ((unused)) = REQ_OP_SECURE_ERASE;
36205
36206 ;
36207 return 0;
36208 }
36209
36210 _ACEOF
36211
36212
36213
36214 cat - <<_ACEOF >conftest.h
36215
36216 _ACEOF
36217
36218
36219 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
36220 echo "obj-m := conftest.o" >build/Makefile
36221 modpost_flag=''
36222 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
36223 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
36224 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36225 (eval $ac_try) 2>&5
36226 ac_status=$?
36227 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36228 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
36229 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36230 (eval $ac_try) 2>&5
36231 ac_status=$?
36232 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36233 (exit $ac_status); }; }; then
36234
36235 { $as_echo "$as_me:$LINENO: result: yes" >&5
36236 $as_echo "yes" >&6; }
36237
36238 cat >>confdefs.h <<\_ACEOF
36239 #define HAVE_REQ_OP_SECURE_ERASE 1
36240 _ACEOF
36241
36242
36243 else
36244 $as_echo "$as_me: failed program was:" >&5
36245 sed 's/^/| /' conftest.$ac_ext >&5
36246
36247 { $as_echo "$as_me:$LINENO: result: no" >&5
36248 $as_echo "no" >&6; }
36249
36250
36251
36252 fi
36253
36254 rm -Rf build
36255
36256
36257
36258
36259 { $as_echo "$as_me:$LINENO: checking whether REQ_OP_FLUSH is defined" >&5
36260 $as_echo_n "checking whether REQ_OP_FLUSH is defined... " >&6; }
36261
36262
36263 cat confdefs.h - <<_ACEOF >conftest.c
36264 /* confdefs.h. */
36265 _ACEOF
36266 cat confdefs.h >>conftest.$ac_ext
36267 cat >>conftest.$ac_ext <<_ACEOF
36268 /* end confdefs.h. */
36269
36270
36271 #include <linux/blk_types.h>
36272
36273 int
36274 main (void)
36275 {
36276
36277 int op __attribute__ ((unused)) = REQ_OP_FLUSH;
36278
36279 ;
36280 return 0;
36281 }
36282
36283 _ACEOF
36284
36285
36286
36287 cat - <<_ACEOF >conftest.h
36288
36289 _ACEOF
36290
36291
36292 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
36293 echo "obj-m := conftest.o" >build/Makefile
36294 modpost_flag=''
36295 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
36296 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
36297 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36298 (eval $ac_try) 2>&5
36299 ac_status=$?
36300 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36301 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
36302 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36303 (eval $ac_try) 2>&5
36304 ac_status=$?
36305 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36306 (exit $ac_status); }; }; then
36307
36308 { $as_echo "$as_me:$LINENO: result: yes" >&5
36309 $as_echo "yes" >&6; }
36310
36311 cat >>confdefs.h <<\_ACEOF
36312 #define HAVE_REQ_OP_FLUSH 1
36313 _ACEOF
36314
36315
36316 else
36317 $as_echo "$as_me: failed program was:" >&5
36318 sed 's/^/| /' conftest.$ac_ext >&5
36319
36320 { $as_echo "$as_me:$LINENO: result: no" >&5
36321 $as_echo "no" >&6; }
36322
36323
36324
36325 fi
36326
36327 rm -Rf build
36328
36329
36330
36331
36332 { $as_echo "$as_me:$LINENO: checking whether bio->bi_opf is defined" >&5
36333 $as_echo_n "checking whether bio->bi_opf is defined... " >&6; }
36334
36335
36336 cat confdefs.h - <<_ACEOF >conftest.c
36337 /* confdefs.h. */
36338 _ACEOF
36339 cat confdefs.h >>conftest.$ac_ext
36340 cat >>conftest.$ac_ext <<_ACEOF
36341 /* end confdefs.h. */
36342
36343
36344 #include <linux/bio.h>
36345
36346 int
36347 main (void)
36348 {
36349
36350 struct bio bio __attribute__ ((unused));
36351 bio.bi_opf = 0;
36352
36353 ;
36354 return 0;
36355 }
36356
36357 _ACEOF
36358
36359
36360
36361 cat - <<_ACEOF >conftest.h
36362
36363 _ACEOF
36364
36365
36366 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
36367 echo "obj-m := conftest.o" >build/Makefile
36368 modpost_flag=''
36369 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
36370 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
36371 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36372 (eval $ac_try) 2>&5
36373 ac_status=$?
36374 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36375 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
36376 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36377 (eval $ac_try) 2>&5
36378 ac_status=$?
36379 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36380 (exit $ac_status); }; }; then
36381
36382 { $as_echo "$as_me:$LINENO: result: yes" >&5
36383 $as_echo "yes" >&6; }
36384
36385 cat >>confdefs.h <<\_ACEOF
36386 #define HAVE_BIO_BI_OPF 1
36387 _ACEOF
36388
36389
36390 else
36391 $as_echo "$as_me: failed program was:" >&5
36392 sed 's/^/| /' conftest.$ac_ext >&5
36393
36394 { $as_echo "$as_me:$LINENO: result: no" >&5
36395 $as_echo "no" >&6; }
36396
36397
36398
36399 fi
36400
36401 rm -Rf build
36402
36403
36404
36405
36406 { $as_echo "$as_me:$LINENO: checking whether bio_end_io_t wants 1 arg" >&5
36407 $as_echo_n "checking whether bio_end_io_t wants 1 arg... " >&6; }
36408
36409
36410 cat confdefs.h - <<_ACEOF >conftest.c
36411 /* confdefs.h. */
36412 _ACEOF
36413 cat confdefs.h >>conftest.$ac_ext
36414 cat >>conftest.$ac_ext <<_ACEOF
36415 /* end confdefs.h. */
36416
36417
36418 #include <linux/bio.h>
36419
36420 void wanted_end_io(struct bio *bio) { return; }
36421
36422 bio_end_io_t *end_io __attribute__ ((unused)) = wanted_end_io;
36423
36424 int
36425 main (void)
36426 {
36427
36428
36429 ;
36430 return 0;
36431 }
36432
36433 _ACEOF
36434
36435
36436
36437 cat - <<_ACEOF >conftest.h
36438
36439 _ACEOF
36440
36441
36442 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
36443 echo "obj-m := conftest.o" >build/Makefile
36444 modpost_flag=''
36445 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
36446 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
36447 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36448 (eval $ac_try) 2>&5
36449 ac_status=$?
36450 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36451 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
36452 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36453 (eval $ac_try) 2>&5
36454 ac_status=$?
36455 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36456 (exit $ac_status); }; }; then
36457
36458 { $as_echo "$as_me:$LINENO: result: yes" >&5
36459 $as_echo "yes" >&6; }
36460
36461 cat >>confdefs.h <<\_ACEOF
36462 #define HAVE_1ARG_BIO_END_IO_T 1
36463 _ACEOF
36464
36465
36466 else
36467 $as_echo "$as_me: failed program was:" >&5
36468 sed 's/^/| /' conftest.$ac_ext >&5
36469
36470 { $as_echo "$as_me:$LINENO: result: no" >&5
36471 $as_echo "no" >&6; }
36472
36473
36474
36475 fi
36476
36477 rm -Rf build
36478
36479
36480
36481
36482 { $as_echo "$as_me:$LINENO: checking whether bio->bi_status exists" >&5
36483 $as_echo_n "checking whether bio->bi_status exists... " >&6; }
36484
36485
36486 cat confdefs.h - <<_ACEOF >conftest.c
36487 /* confdefs.h. */
36488 _ACEOF
36489 cat confdefs.h >>conftest.$ac_ext
36490 cat >>conftest.$ac_ext <<_ACEOF
36491 /* end confdefs.h. */
36492
36493
36494 #include <linux/bio.h>
36495
36496 int
36497 main (void)
36498 {
36499
36500 struct bio bio __attribute__ ((unused));
36501 blk_status_t status __attribute__ ((unused)) = BLK_STS_OK;
36502
36503 bio.bi_status = status;
36504
36505 ;
36506 return 0;
36507 }
36508
36509 _ACEOF
36510
36511
36512
36513 cat - <<_ACEOF >conftest.h
36514
36515 _ACEOF
36516
36517
36518 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
36519 echo "obj-m := conftest.o" >build/Makefile
36520 modpost_flag=''
36521 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
36522 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
36523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36524 (eval $ac_try) 2>&5
36525 ac_status=$?
36526 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36527 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
36528 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36529 (eval $ac_try) 2>&5
36530 ac_status=$?
36531 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36532 (exit $ac_status); }; }; then
36533
36534 { $as_echo "$as_me:$LINENO: result: yes" >&5
36535 $as_echo "yes" >&6; }
36536
36537 cat >>confdefs.h <<\_ACEOF
36538 #define HAVE_BIO_BI_STATUS 1
36539 _ACEOF
36540
36541
36542 else
36543 $as_echo "$as_me: failed program was:" >&5
36544 sed 's/^/| /' conftest.$ac_ext >&5
36545
36546 { $as_echo "$as_me:$LINENO: result: no" >&5
36547 $as_echo "no" >&6; }
36548
36549
36550
36551 fi
36552
36553 rm -Rf build
36554
36555
36556
36557
36558 { $as_echo "$as_me:$LINENO: checking whether BIO_RW_BARRIER is defined" >&5
36559 $as_echo_n "checking whether BIO_RW_BARRIER is defined... " >&6; }
36560
36561
36562 cat confdefs.h - <<_ACEOF >conftest.c
36563 /* confdefs.h. */
36564 _ACEOF
36565 cat confdefs.h >>conftest.$ac_ext
36566 cat >>conftest.$ac_ext <<_ACEOF
36567 /* end confdefs.h. */
36568
36569
36570 #include <linux/bio.h>
36571
36572 int
36573 main (void)
36574 {
36575
36576 int flags __attribute__ ((unused));
36577 flags = BIO_RW_BARRIER;
36578
36579 ;
36580 return 0;
36581 }
36582
36583 _ACEOF
36584
36585
36586
36587 cat - <<_ACEOF >conftest.h
36588
36589 _ACEOF
36590
36591
36592 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
36593 echo "obj-m := conftest.o" >build/Makefile
36594 modpost_flag=''
36595 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
36596 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
36597 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36598 (eval $ac_try) 2>&5
36599 ac_status=$?
36600 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36601 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
36602 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36603 (eval $ac_try) 2>&5
36604 ac_status=$?
36605 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36606 (exit $ac_status); }; }; then
36607
36608 { $as_echo "$as_me:$LINENO: result: yes" >&5
36609 $as_echo "yes" >&6; }
36610
36611 cat >>confdefs.h <<\_ACEOF
36612 #define HAVE_BIO_RW_BARRIER 1
36613 _ACEOF
36614
36615
36616 else
36617 $as_echo "$as_me: failed program was:" >&5
36618 sed 's/^/| /' conftest.$ac_ext >&5
36619
36620 { $as_echo "$as_me:$LINENO: result: no" >&5
36621 $as_echo "no" >&6; }
36622
36623
36624
36625 fi
36626
36627 rm -Rf build
36628
36629
36630
36631
36632 { $as_echo "$as_me:$LINENO: checking whether BIO_RW_DISCARD is defined" >&5
36633 $as_echo_n "checking whether BIO_RW_DISCARD is defined... " >&6; }
36634
36635
36636 cat confdefs.h - <<_ACEOF >conftest.c
36637 /* confdefs.h. */
36638 _ACEOF
36639 cat confdefs.h >>conftest.$ac_ext
36640 cat >>conftest.$ac_ext <<_ACEOF
36641 /* end confdefs.h. */
36642
36643
36644 #include <linux/bio.h>
36645
36646 int
36647 main (void)
36648 {
36649
36650 int flags __attribute__ ((unused));
36651 flags = BIO_RW_DISCARD;
36652
36653 ;
36654 return 0;
36655 }
36656
36657 _ACEOF
36658
36659
36660
36661 cat - <<_ACEOF >conftest.h
36662
36663 _ACEOF
36664
36665
36666 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
36667 echo "obj-m := conftest.o" >build/Makefile
36668 modpost_flag=''
36669 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
36670 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
36671 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36672 (eval $ac_try) 2>&5
36673 ac_status=$?
36674 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36675 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
36676 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36677 (eval $ac_try) 2>&5
36678 ac_status=$?
36679 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36680 (exit $ac_status); }; }; then
36681
36682 { $as_echo "$as_me:$LINENO: result: yes" >&5
36683 $as_echo "yes" >&6; }
36684
36685 cat >>confdefs.h <<\_ACEOF
36686 #define HAVE_BIO_RW_DISCARD 1
36687 _ACEOF
36688
36689
36690 else
36691 $as_echo "$as_me: failed program was:" >&5
36692 sed 's/^/| /' conftest.$ac_ext >&5
36693
36694 { $as_echo "$as_me:$LINENO: result: no" >&5
36695 $as_echo "no" >&6; }
36696
36697
36698
36699 fi
36700
36701 rm -Rf build
36702
36703
36704
36705
36706 { $as_echo "$as_me:$LINENO: checking whether blk_queue bdi is dynamic" >&5
36707 $as_echo_n "checking whether blk_queue bdi is dynamic... " >&6; }
36708
36709
36710 cat confdefs.h - <<_ACEOF >conftest.c
36711 /* confdefs.h. */
36712 _ACEOF
36713 cat confdefs.h >>conftest.$ac_ext
36714 cat >>conftest.$ac_ext <<_ACEOF
36715 /* end confdefs.h. */
36716
36717
36718 #include <linux/blkdev.h>
36719
36720 int
36721 main (void)
36722 {
36723
36724 struct request_queue q;
36725 struct backing_dev_info bdi;
36726 q.backing_dev_info = &bdi;
36727
36728 ;
36729 return 0;
36730 }
36731
36732 _ACEOF
36733
36734
36735
36736 cat - <<_ACEOF >conftest.h
36737
36738 _ACEOF
36739
36740
36741 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
36742 echo "obj-m := conftest.o" >build/Makefile
36743 modpost_flag=''
36744 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
36745 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
36746 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36747 (eval $ac_try) 2>&5
36748 ac_status=$?
36749 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36750 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
36751 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36752 (eval $ac_try) 2>&5
36753 ac_status=$?
36754 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36755 (exit $ac_status); }; }; then
36756
36757 { $as_echo "$as_me:$LINENO: result: yes" >&5
36758 $as_echo "yes" >&6; }
36759
36760 cat >>confdefs.h <<\_ACEOF
36761 #define HAVE_BLK_QUEUE_BDI_DYNAMIC 1
36762 _ACEOF
36763
36764
36765 else
36766 $as_echo "$as_me: failed program was:" >&5
36767 sed 's/^/| /' conftest.$ac_ext >&5
36768
36769 { $as_echo "$as_me:$LINENO: result: no" >&5
36770 $as_echo "no" >&6; }
36771
36772
36773
36774 fi
36775
36776 rm -Rf build
36777
36778
36779
36780
36781 { $as_echo "$as_me:$LINENO: checking whether blk_queue_flag_clear() exists" >&5
36782 $as_echo_n "checking whether blk_queue_flag_clear() exists... " >&6; }
36783
36784
36785 cat confdefs.h - <<_ACEOF >conftest.c
36786 /* confdefs.h. */
36787 _ACEOF
36788 cat confdefs.h >>conftest.$ac_ext
36789 cat >>conftest.$ac_ext <<_ACEOF
36790 /* end confdefs.h. */
36791
36792
36793 #include <linux/kernel.h>
36794 #include <linux/blkdev.h>
36795
36796 int
36797 main (void)
36798 {
36799
36800 struct request_queue *q = NULL;
36801 blk_queue_flag_clear(0, q);
36802
36803 ;
36804 return 0;
36805 }
36806
36807 _ACEOF
36808
36809
36810
36811 cat - <<_ACEOF >conftest.h
36812
36813 _ACEOF
36814
36815
36816 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
36817 echo "obj-m := conftest.o" >build/Makefile
36818 modpost_flag=''
36819 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
36820 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
36821 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36822 (eval $ac_try) 2>&5
36823 ac_status=$?
36824 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36825 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
36826 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36827 (eval $ac_try) 2>&5
36828 ac_status=$?
36829 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36830 (exit $ac_status); }; }; then
36831
36832
36833 { $as_echo "$as_me:$LINENO: result: yes" >&5
36834 $as_echo "yes" >&6; }
36835
36836 cat >>confdefs.h <<\_ACEOF
36837 #define HAVE_BLK_QUEUE_FLAG_CLEAR 1
36838 _ACEOF
36839
36840
36841 else
36842 $as_echo "$as_me: failed program was:" >&5
36843 sed 's/^/| /' conftest.$ac_ext >&5
36844
36845 { $as_echo "$as_me:$LINENO: result: no" >&5
36846 $as_echo "no" >&6; }
36847
36848
36849
36850 fi
36851
36852 rm -Rf build
36853
36854
36855
36856
36857 { $as_echo "$as_me:$LINENO: checking whether blk_queue_flag_set() exists" >&5
36858 $as_echo_n "checking whether blk_queue_flag_set() exists... " >&6; }
36859
36860
36861 cat confdefs.h - <<_ACEOF >conftest.c
36862 /* confdefs.h. */
36863 _ACEOF
36864 cat confdefs.h >>conftest.$ac_ext
36865 cat >>conftest.$ac_ext <<_ACEOF
36866 /* end confdefs.h. */
36867
36868
36869 #include <linux/kernel.h>
36870 #include <linux/blkdev.h>
36871
36872 int
36873 main (void)
36874 {
36875
36876 struct request_queue *q = NULL;
36877 blk_queue_flag_set(0, q);
36878
36879 ;
36880 return 0;
36881 }
36882
36883 _ACEOF
36884
36885
36886
36887 cat - <<_ACEOF >conftest.h
36888
36889 _ACEOF
36890
36891
36892 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
36893 echo "obj-m := conftest.o" >build/Makefile
36894 modpost_flag=''
36895 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
36896 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
36897 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36898 (eval $ac_try) 2>&5
36899 ac_status=$?
36900 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36901 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
36902 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36903 (eval $ac_try) 2>&5
36904 ac_status=$?
36905 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36906 (exit $ac_status); }; }; then
36907
36908 { $as_echo "$as_me:$LINENO: result: yes" >&5
36909 $as_echo "yes" >&6; }
36910
36911 cat >>confdefs.h <<\_ACEOF
36912 #define HAVE_BLK_QUEUE_FLAG_SET 1
36913 _ACEOF
36914
36915
36916 else
36917 $as_echo "$as_me: failed program was:" >&5
36918 sed 's/^/| /' conftest.$ac_ext >&5
36919
36920 { $as_echo "$as_me:$LINENO: result: no" >&5
36921 $as_echo "no" >&6; }
36922
36923
36924
36925 fi
36926
36927 rm -Rf build
36928
36929
36930
36931
36932 { $as_echo "$as_me:$LINENO: checking whether blk_queue_flush() is available" >&5
36933 $as_echo_n "checking whether blk_queue_flush() is available... " >&6; }
36934 tmp_flags="$EXTRA_KCFLAGS"
36935 EXTRA_KCFLAGS="${NO_UNUSED_BUT_SET_VARIABLE}"
36936
36937
36938 cat confdefs.h - <<_ACEOF >conftest.c
36939 /* confdefs.h. */
36940 _ACEOF
36941 cat confdefs.h >>conftest.$ac_ext
36942 cat >>conftest.$ac_ext <<_ACEOF
36943 /* end confdefs.h. */
36944
36945
36946 #include <linux/blkdev.h>
36947
36948 int
36949 main (void)
36950 {
36951
36952 struct request_queue *q = NULL;
36953 (void) blk_queue_flush(q, REQ_FLUSH);
36954
36955 ;
36956 return 0;
36957 }
36958
36959 _ACEOF
36960
36961
36962
36963 cat - <<_ACEOF >conftest.h
36964
36965 _ACEOF
36966
36967
36968 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
36969 echo "obj-m := conftest.o" >build/Makefile
36970 modpost_flag=''
36971 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
36972 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
36973 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36974 (eval $ac_try) 2>&5
36975 ac_status=$?
36976 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36977 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
36978 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36979 (eval $ac_try) 2>&5
36980 ac_status=$?
36981 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36982 (exit $ac_status); }; }; then
36983
36984 { $as_echo "$as_me:$LINENO: result: yes" >&5
36985 $as_echo "yes" >&6; }
36986
36987 cat >>confdefs.h <<\_ACEOF
36988 #define HAVE_BLK_QUEUE_FLUSH 1
36989 _ACEOF
36990
36991
36992 { $as_echo "$as_me:$LINENO: checking whether blk_queue_flush() is GPL-only" >&5
36993 $as_echo_n "checking whether blk_queue_flush() is GPL-only... " >&6; }
36994
36995
36996 cat confdefs.h - <<_ACEOF >conftest.c
36997 /* confdefs.h. */
36998 _ACEOF
36999 cat confdefs.h >>conftest.$ac_ext
37000 cat >>conftest.$ac_ext <<_ACEOF
37001 /* end confdefs.h. */
37002
37003
37004 #include <linux/module.h>
37005 #include <linux/blkdev.h>
37006
37007 MODULE_LICENSE("$ZFS_META_LICENSE");
37008
37009 int
37010 main (void)
37011 {
37012
37013 struct request_queue *q = NULL;
37014 (void) blk_queue_flush(q, REQ_FLUSH);
37015
37016 ;
37017 return 0;
37018 }
37019
37020 _ACEOF
37021
37022
37023
37024 cat - <<_ACEOF >conftest.h
37025
37026 _ACEOF
37027
37028
37029 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
37030 echo "obj-m := conftest.o" >build/Makefile
37031 modpost_flag=''
37032 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
37033 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
37034 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37035 (eval $ac_try) 2>&5
37036 ac_status=$?
37037 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37038 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
37039 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37040 (eval $ac_try) 2>&5
37041 ac_status=$?
37042 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37043 (exit $ac_status); }; }; then
37044
37045 { $as_echo "$as_me:$LINENO: result: no" >&5
37046 $as_echo "no" >&6; }
37047
37048 else
37049 $as_echo "$as_me: failed program was:" >&5
37050 sed 's/^/| /' conftest.$ac_ext >&5
37051
37052 { $as_echo "$as_me:$LINENO: result: yes" >&5
37053 $as_echo "yes" >&6; }
37054
37055 cat >>confdefs.h <<\_ACEOF
37056 #define HAVE_BLK_QUEUE_FLUSH_GPL_ONLY 1
37057 _ACEOF
37058
37059
37060
37061
37062 fi
37063
37064 rm -Rf build
37065
37066
37067
37068 else
37069 $as_echo "$as_me: failed program was:" >&5
37070 sed 's/^/| /' conftest.$ac_ext >&5
37071
37072 { $as_echo "$as_me:$LINENO: result: no" >&5
37073 $as_echo "no" >&6; }
37074
37075
37076
37077 fi
37078
37079 rm -Rf build
37080
37081
37082
37083 { $as_echo "$as_me:$LINENO: checking whether blk_queue_write_cache() exists" >&5
37084 $as_echo_n "checking whether blk_queue_write_cache() exists... " >&6; }
37085
37086
37087 cat confdefs.h - <<_ACEOF >conftest.c
37088 /* confdefs.h. */
37089 _ACEOF
37090 cat confdefs.h >>conftest.$ac_ext
37091 cat >>conftest.$ac_ext <<_ACEOF
37092 /* end confdefs.h. */
37093
37094
37095 #include <linux/kernel.h>
37096 #include <linux/blkdev.h>
37097
37098
37099 int
37100 main (void)
37101 {
37102
37103 struct request_queue *q = NULL;
37104 blk_queue_write_cache(q, true, true);
37105
37106 ;
37107 return 0;
37108 }
37109
37110 _ACEOF
37111
37112
37113
37114 cat - <<_ACEOF >conftest.h
37115
37116 _ACEOF
37117
37118
37119 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
37120 echo "obj-m := conftest.o" >build/Makefile
37121 modpost_flag=''
37122 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
37123 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
37124 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37125 (eval $ac_try) 2>&5
37126 ac_status=$?
37127 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37128 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
37129 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37130 (eval $ac_try) 2>&5
37131 ac_status=$?
37132 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37133 (exit $ac_status); }; }; then
37134
37135 { $as_echo "$as_me:$LINENO: result: yes" >&5
37136 $as_echo "yes" >&6; }
37137
37138 cat >>confdefs.h <<\_ACEOF
37139 #define HAVE_BLK_QUEUE_WRITE_CACHE 1
37140 _ACEOF
37141
37142
37143 { $as_echo "$as_me:$LINENO: checking whether blk_queue_write_cache() is GPL-only" >&5
37144 $as_echo_n "checking whether blk_queue_write_cache() is GPL-only... " >&6; }
37145
37146
37147 cat confdefs.h - <<_ACEOF >conftest.c
37148 /* confdefs.h. */
37149 _ACEOF
37150 cat confdefs.h >>conftest.$ac_ext
37151 cat >>conftest.$ac_ext <<_ACEOF
37152 /* end confdefs.h. */
37153
37154
37155 #include <linux/kernel.h>
37156 #include <linux/module.h>
37157 #include <linux/blkdev.h>
37158
37159 MODULE_LICENSE("$ZFS_META_LICENSE");
37160
37161 int
37162 main (void)
37163 {
37164
37165 struct request_queue *q = NULL;
37166 blk_queue_write_cache(q, true, true);
37167
37168 ;
37169 return 0;
37170 }
37171
37172 _ACEOF
37173
37174
37175
37176 cat - <<_ACEOF >conftest.h
37177
37178 _ACEOF
37179
37180
37181 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
37182 echo "obj-m := conftest.o" >build/Makefile
37183 modpost_flag=''
37184 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
37185 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
37186 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37187 (eval $ac_try) 2>&5
37188 ac_status=$?
37189 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37190 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
37191 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37192 (eval $ac_try) 2>&5
37193 ac_status=$?
37194 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37195 (exit $ac_status); }; }; then
37196
37197 { $as_echo "$as_me:$LINENO: result: no" >&5
37198 $as_echo "no" >&6; }
37199
37200 else
37201 $as_echo "$as_me: failed program was:" >&5
37202 sed 's/^/| /' conftest.$ac_ext >&5
37203
37204 { $as_echo "$as_me:$LINENO: result: yes" >&5
37205 $as_echo "yes" >&6; }
37206
37207 cat >>confdefs.h <<\_ACEOF
37208 #define HAVE_BLK_QUEUE_WRITE_CACHE_GPL_ONLY 1
37209 _ACEOF
37210
37211
37212
37213
37214 fi
37215
37216 rm -Rf build
37217
37218
37219
37220 else
37221 $as_echo "$as_me: failed program was:" >&5
37222 sed 's/^/| /' conftest.$ac_ext >&5
37223
37224 { $as_echo "$as_me:$LINENO: result: no" >&5
37225 $as_echo "no" >&6; }
37226
37227
37228
37229 fi
37230
37231 rm -Rf build
37232
37233
37234
37235 EXTRA_KCFLAGS="$tmp_flags"
37236
37237
37238 { $as_echo "$as_me:$LINENO: checking whether blk_queue_max_hw_sectors() is available" >&5
37239 $as_echo_n "checking whether blk_queue_max_hw_sectors() is available... " >&6; }
37240 tmp_flags="$EXTRA_KCFLAGS"
37241 EXTRA_KCFLAGS="${NO_UNUSED_BUT_SET_VARIABLE}"
37242
37243
37244 cat confdefs.h - <<_ACEOF >conftest.c
37245 /* confdefs.h. */
37246 _ACEOF
37247 cat confdefs.h >>conftest.$ac_ext
37248 cat >>conftest.$ac_ext <<_ACEOF
37249 /* end confdefs.h. */
37250
37251
37252 #include <linux/blkdev.h>
37253
37254 int
37255 main (void)
37256 {
37257
37258 struct request_queue *q = NULL;
37259 (void) blk_queue_max_hw_sectors(q, BLK_SAFE_MAX_SECTORS);
37260
37261 ;
37262 return 0;
37263 }
37264
37265 _ACEOF
37266
37267
37268
37269 cat - <<_ACEOF >conftest.h
37270
37271 _ACEOF
37272
37273
37274 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
37275 echo "obj-m := conftest.o" >build/Makefile
37276 modpost_flag=''
37277 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
37278 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
37279 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37280 (eval $ac_try) 2>&5
37281 ac_status=$?
37282 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37283 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
37284 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37285 (eval $ac_try) 2>&5
37286 ac_status=$?
37287 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37288 (exit $ac_status); }; }; then
37289
37290 { $as_echo "$as_me:$LINENO: result: yes" >&5
37291 $as_echo "yes" >&6; }
37292
37293 cat >>confdefs.h <<\_ACEOF
37294 #define HAVE_BLK_QUEUE_MAX_HW_SECTORS 1
37295 _ACEOF
37296
37297
37298 else
37299 $as_echo "$as_me: failed program was:" >&5
37300 sed 's/^/| /' conftest.$ac_ext >&5
37301
37302 { $as_echo "$as_me:$LINENO: result: no" >&5
37303 $as_echo "no" >&6; }
37304
37305
37306
37307 fi
37308
37309 rm -Rf build
37310
37311
37312 EXTRA_KCFLAGS="$tmp_flags"
37313
37314
37315 { $as_echo "$as_me:$LINENO: checking whether blk_queue_max_segments() is available" >&5
37316 $as_echo_n "checking whether blk_queue_max_segments() is available... " >&6; }
37317 tmp_flags="$EXTRA_KCFLAGS"
37318 EXTRA_KCFLAGS="${NO_UNUSED_BUT_SET_VARIABLE}"
37319
37320
37321 cat confdefs.h - <<_ACEOF >conftest.c
37322 /* confdefs.h. */
37323 _ACEOF
37324 cat confdefs.h >>conftest.$ac_ext
37325 cat >>conftest.$ac_ext <<_ACEOF
37326 /* end confdefs.h. */
37327
37328
37329 #include <linux/blkdev.h>
37330
37331 int
37332 main (void)
37333 {
37334
37335 struct request_queue *q = NULL;
37336 (void) blk_queue_max_segments(q, BLK_MAX_SEGMENTS);
37337
37338 ;
37339 return 0;
37340 }
37341
37342 _ACEOF
37343
37344
37345
37346 cat - <<_ACEOF >conftest.h
37347
37348 _ACEOF
37349
37350
37351 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
37352 echo "obj-m := conftest.o" >build/Makefile
37353 modpost_flag=''
37354 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
37355 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
37356 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37357 (eval $ac_try) 2>&5
37358 ac_status=$?
37359 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37360 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
37361 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37362 (eval $ac_try) 2>&5
37363 ac_status=$?
37364 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37365 (exit $ac_status); }; }; then
37366
37367 { $as_echo "$as_me:$LINENO: result: yes" >&5
37368 $as_echo "yes" >&6; }
37369
37370 cat >>confdefs.h <<\_ACEOF
37371 #define HAVE_BLK_QUEUE_MAX_SEGMENTS 1
37372 _ACEOF
37373
37374
37375 else
37376 $as_echo "$as_me: failed program was:" >&5
37377 sed 's/^/| /' conftest.$ac_ext >&5
37378
37379 { $as_echo "$as_me:$LINENO: result: no" >&5
37380 $as_echo "no" >&6; }
37381
37382
37383
37384 fi
37385
37386 rm -Rf build
37387
37388
37389 EXTRA_KCFLAGS="$tmp_flags"
37390
37391
37392 { $as_echo "$as_me:$LINENO: checking whether the BIO_RW_UNPLUG enum is available" >&5
37393 $as_echo_n "checking whether the BIO_RW_UNPLUG enum is available... " >&6; }
37394 tmp_flags="$EXTRA_KCFLAGS"
37395 EXTRA_KCFLAGS="${NO_UNUSED_BUT_SET_VARIABLE}"
37396
37397
37398 cat confdefs.h - <<_ACEOF >conftest.c
37399 /* confdefs.h. */
37400 _ACEOF
37401 cat confdefs.h >>conftest.$ac_ext
37402 cat >>conftest.$ac_ext <<_ACEOF
37403 /* end confdefs.h. */
37404
37405
37406 #include <linux/blkdev.h>
37407
37408 int
37409 main (void)
37410 {
37411
37412 extern enum bio_rw_flags rw;
37413
37414 rw = BIO_RW_UNPLUG;
37415
37416 ;
37417 return 0;
37418 }
37419
37420 _ACEOF
37421
37422
37423
37424 cat - <<_ACEOF >conftest.h
37425
37426 _ACEOF
37427
37428
37429 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
37430 echo "obj-m := conftest.o" >build/Makefile
37431 modpost_flag=''
37432 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
37433 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
37434 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37435 (eval $ac_try) 2>&5
37436 ac_status=$?
37437 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37438 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
37439 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37440 (eval $ac_try) 2>&5
37441 ac_status=$?
37442 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37443 (exit $ac_status); }; }; then
37444
37445 { $as_echo "$as_me:$LINENO: result: yes" >&5
37446 $as_echo "yes" >&6; }
37447
37448 cat >>confdefs.h <<\_ACEOF
37449 #define HAVE_BLK_QUEUE_HAVE_BIO_RW_UNPLUG 1
37450 _ACEOF
37451
37452
37453 else
37454 $as_echo "$as_me: failed program was:" >&5
37455 sed 's/^/| /' conftest.$ac_ext >&5
37456
37457 { $as_echo "$as_me:$LINENO: result: no" >&5
37458 $as_echo "no" >&6; }
37459
37460
37461
37462 fi
37463
37464 rm -Rf build
37465
37466
37467 EXTRA_KCFLAGS="$tmp_flags"
37468
37469
37470 { $as_echo "$as_me:$LINENO: checking whether struct blk_plug is available" >&5
37471 $as_echo_n "checking whether struct blk_plug is available... " >&6; }
37472 tmp_flags="$EXTRA_KCFLAGS"
37473 EXTRA_KCFLAGS="${NO_UNUSED_BUT_SET_VARIABLE}"
37474
37475
37476 cat confdefs.h - <<_ACEOF >conftest.c
37477 /* confdefs.h. */
37478 _ACEOF
37479 cat confdefs.h >>conftest.$ac_ext
37480 cat >>conftest.$ac_ext <<_ACEOF
37481 /* end confdefs.h. */
37482
37483
37484 #include <linux/blkdev.h>
37485
37486 int
37487 main (void)
37488 {
37489
37490 struct blk_plug plug;
37491
37492 blk_start_plug(&plug);
37493 blk_finish_plug(&plug);
37494
37495 ;
37496 return 0;
37497 }
37498
37499 _ACEOF
37500
37501
37502
37503 cat - <<_ACEOF >conftest.h
37504
37505 _ACEOF
37506
37507
37508 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
37509 echo "obj-m := conftest.o" >build/Makefile
37510 modpost_flag=''
37511 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
37512 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
37513 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37514 (eval $ac_try) 2>&5
37515 ac_status=$?
37516 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37517 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
37518 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37519 (eval $ac_try) 2>&5
37520 ac_status=$?
37521 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37522 (exit $ac_status); }; }; then
37523
37524 { $as_echo "$as_me:$LINENO: result: yes" >&5
37525 $as_echo "yes" >&6; }
37526
37527 cat >>confdefs.h <<\_ACEOF
37528 #define HAVE_BLK_QUEUE_HAVE_BLK_PLUG 1
37529 _ACEOF
37530
37531
37532 else
37533 $as_echo "$as_me: failed program was:" >&5
37534 sed 's/^/| /' conftest.$ac_ext >&5
37535
37536 { $as_echo "$as_me:$LINENO: result: no" >&5
37537 $as_echo "no" >&6; }
37538
37539
37540
37541 fi
37542
37543 rm -Rf build
37544
37545
37546 EXTRA_KCFLAGS="$tmp_flags"
37547
37548 { $as_echo "$as_me:$LINENO: checking whether get_disk_and_module() is available" >&5
37549 $as_echo_n "checking whether get_disk_and_module() is available... " >&6; }
37550
37551
37552
37553 cat confdefs.h - <<_ACEOF >conftest.c
37554 /* confdefs.h. */
37555 _ACEOF
37556 cat confdefs.h >>conftest.$ac_ext
37557 cat >>conftest.$ac_ext <<_ACEOF
37558 /* end confdefs.h. */
37559
37560
37561 #include <linux/genhd.h>
37562
37563 int
37564 main (void)
37565 {
37566
37567 struct gendisk *disk = NULL;
37568 (void) get_disk_and_module(disk);
37569
37570 ;
37571 return 0;
37572 }
37573
37574 _ACEOF
37575
37576
37577
37578 cat - <<_ACEOF >conftest.h
37579
37580 _ACEOF
37581
37582
37583 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
37584 echo "obj-m := conftest.o" >build/Makefile
37585 modpost_flag=''
37586 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
37587 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
37588 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37589 (eval $ac_try) 2>&5
37590 ac_status=$?
37591 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37592 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
37593 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37594 (eval $ac_try) 2>&5
37595 ac_status=$?
37596 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37597 (exit $ac_status); }; }; then
37598 rc=0
37599 else
37600 $as_echo "$as_me: failed program was:" >&5
37601 sed 's/^/| /' conftest.$ac_ext >&5
37602 rc=1
37603
37604
37605 fi
37606
37607 rm -Rf build
37608
37609
37610 if test $rc -ne 0; then :
37611
37612 { $as_echo "$as_me:$LINENO: result: no" >&5
37613 $as_echo "no" >&6; }
37614
37615 else
37616 if test "x$enable_linux_builtin" != xyes; then
37617
37618 grep -q -E '[[:space:]]get_disk_and_module[[:space:]]' \
37619 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
37620 rc=$?
37621 if test $rc -ne 0; then
37622 export=0
37623 for file in block/genhd.c; do
37624 grep -q -E "EXPORT_SYMBOL.*(get_disk_and_module)" \
37625 "$LINUX/$file" 2>/dev/null
37626 rc=$?
37627 if test $rc -eq 0; then
37628 export=1
37629 break;
37630 fi
37631 done
37632 if test $export -eq 0; then :
37633 rc=1
37634 else :
37635 rc=0
37636 fi
37637 else :
37638 rc=0
37639 fi
37640
37641 fi
37642 if test $rc -ne 0; then :
37643
37644 { $as_echo "$as_me:$LINENO: result: no" >&5
37645 $as_echo "no" >&6; }
37646
37647 else :
37648
37649 { $as_echo "$as_me:$LINENO: result: yes" >&5
37650 $as_echo "yes" >&6; }
37651
37652 cat >>confdefs.h <<\_ACEOF
37653 #define HAVE_GET_DISK_AND_MODULE 1
37654 _ACEOF
37655
37656
37657 fi
37658 fi
37659
37660
37661
37662 { $as_echo "$as_me:$LINENO: checking whether get_disk_ro() is available" >&5
37663 $as_echo_n "checking whether get_disk_ro() is available... " >&6; }
37664 tmp_flags="$EXTRA_KCFLAGS"
37665 EXTRA_KCFLAGS="${NO_UNUSED_BUT_SET_VARIABLE}"
37666
37667
37668 cat confdefs.h - <<_ACEOF >conftest.c
37669 /* confdefs.h. */
37670 _ACEOF
37671 cat confdefs.h >>conftest.$ac_ext
37672 cat >>conftest.$ac_ext <<_ACEOF
37673 /* end confdefs.h. */
37674
37675
37676 #include <linux/blkdev.h>
37677
37678 int
37679 main (void)
37680 {
37681
37682 struct gendisk *disk = NULL;
37683 (void) get_disk_ro(disk);
37684
37685 ;
37686 return 0;
37687 }
37688
37689 _ACEOF
37690
37691
37692
37693 cat - <<_ACEOF >conftest.h
37694
37695 _ACEOF
37696
37697
37698 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
37699 echo "obj-m := conftest.o" >build/Makefile
37700 modpost_flag=''
37701 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
37702 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
37703 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37704 (eval $ac_try) 2>&5
37705 ac_status=$?
37706 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37707 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
37708 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37709 (eval $ac_try) 2>&5
37710 ac_status=$?
37711 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37712 (exit $ac_status); }; }; then
37713
37714 { $as_echo "$as_me:$LINENO: result: yes" >&5
37715 $as_echo "yes" >&6; }
37716
37717 cat >>confdefs.h <<\_ACEOF
37718 #define HAVE_GET_DISK_RO 1
37719 _ACEOF
37720
37721
37722 else
37723 $as_echo "$as_me: failed program was:" >&5
37724 sed 's/^/| /' conftest.$ac_ext >&5
37725
37726 { $as_echo "$as_me:$LINENO: result: no" >&5
37727 $as_echo "no" >&6; }
37728
37729
37730
37731 fi
37732
37733 rm -Rf build
37734
37735
37736 EXTRA_KCFLAGS="$tmp_flags"
37737
37738 { $as_echo "$as_me:$LINENO: checking whether get_gendisk() is available" >&5
37739 $as_echo_n "checking whether get_gendisk() is available... " >&6; }
37740
37741
37742
37743 cat confdefs.h - <<_ACEOF >conftest.c
37744 /* confdefs.h. */
37745 _ACEOF
37746 cat confdefs.h >>conftest.$ac_ext
37747 cat >>conftest.$ac_ext <<_ACEOF
37748 /* end confdefs.h. */
37749
37750
37751 #include <linux/genhd.h>
37752
37753 int
37754 main (void)
37755 {
37756
37757 get_gendisk(0, NULL);
37758
37759 ;
37760 return 0;
37761 }
37762
37763 _ACEOF
37764
37765
37766
37767 cat - <<_ACEOF >conftest.h
37768
37769 _ACEOF
37770
37771
37772 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
37773 echo "obj-m := conftest.o" >build/Makefile
37774 modpost_flag=''
37775 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
37776 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
37777 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37778 (eval $ac_try) 2>&5
37779 ac_status=$?
37780 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37781 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
37782 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37783 (eval $ac_try) 2>&5
37784 ac_status=$?
37785 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37786 (exit $ac_status); }; }; then
37787 rc=0
37788 else
37789 $as_echo "$as_me: failed program was:" >&5
37790 sed 's/^/| /' conftest.$ac_ext >&5
37791 rc=1
37792
37793
37794 fi
37795
37796 rm -Rf build
37797
37798
37799 if test $rc -ne 0; then :
37800
37801 { $as_echo "$as_me:$LINENO: result: no" >&5
37802 $as_echo "no" >&6; }
37803
37804 else
37805 if test "x$enable_linux_builtin" != xyes; then
37806
37807 grep -q -E '[[:space:]]get_gendisk[[:space:]]' \
37808 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
37809 rc=$?
37810 if test $rc -ne 0; then
37811 export=0
37812 for file in block/genhd.c; do
37813 grep -q -E "EXPORT_SYMBOL.*(get_gendisk)" \
37814 "$LINUX/$file" 2>/dev/null
37815 rc=$?
37816 if test $rc -eq 0; then
37817 export=1
37818 break;
37819 fi
37820 done
37821 if test $export -eq 0; then :
37822 rc=1
37823 else :
37824 rc=0
37825 fi
37826 else :
37827 rc=0
37828 fi
37829
37830 fi
37831 if test $rc -ne 0; then :
37832
37833 { $as_echo "$as_me:$LINENO: result: no" >&5
37834 $as_echo "no" >&6; }
37835
37836 else :
37837
37838 { $as_echo "$as_me:$LINENO: result: yes" >&5
37839 $as_echo "yes" >&6; }
37840
37841 cat >>confdefs.h <<\_ACEOF
37842 #define HAVE_GET_GENDISK 1
37843 _ACEOF
37844
37845
37846 fi
37847 fi
37848
37849
37850
37851 { $as_echo "$as_me:$LINENO: checking whether bio_set_op_attrs is available" >&5
37852 $as_echo_n "checking whether bio_set_op_attrs is available... " >&6; }
37853
37854
37855 cat confdefs.h - <<_ACEOF >conftest.c
37856 /* confdefs.h. */
37857 _ACEOF
37858 cat confdefs.h >>conftest.$ac_ext
37859 cat >>conftest.$ac_ext <<_ACEOF
37860 /* end confdefs.h. */
37861
37862
37863 #include <linux/bio.h>
37864
37865 int
37866 main (void)
37867 {
37868
37869 struct bio *bio __attribute__ ((unused)) = NULL;
37870
37871 bio_set_op_attrs(bio, 0, 0);
37872
37873 ;
37874 return 0;
37875 }
37876
37877 _ACEOF
37878
37879
37880
37881 cat - <<_ACEOF >conftest.h
37882
37883 _ACEOF
37884
37885
37886 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
37887 echo "obj-m := conftest.o" >build/Makefile
37888 modpost_flag=''
37889 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
37890 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
37891 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37892 (eval $ac_try) 2>&5
37893 ac_status=$?
37894 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37895 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
37896 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37897 (eval $ac_try) 2>&5
37898 ac_status=$?
37899 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37900 (exit $ac_status); }; }; then
37901
37902 { $as_echo "$as_me:$LINENO: result: yes" >&5
37903 $as_echo "yes" >&6; }
37904
37905 cat >>confdefs.h <<\_ACEOF
37906 #define HAVE_BIO_SET_OP_ATTRS 1
37907 _ACEOF
37908
37909
37910 else
37911 $as_echo "$as_me: failed program was:" >&5
37912 sed 's/^/| /' conftest.$ac_ext >&5
37913
37914 { $as_echo "$as_me:$LINENO: result: no" >&5
37915 $as_echo "no" >&6; }
37916
37917
37918
37919 fi
37920
37921 rm -Rf build
37922
37923
37924
37925
37926 { $as_echo "$as_me:$LINENO: checking whether generic_readlink is global" >&5
37927 $as_echo_n "checking whether generic_readlink is global... " >&6; }
37928
37929
37930 cat confdefs.h - <<_ACEOF >conftest.c
37931 /* confdefs.h. */
37932 _ACEOF
37933 cat confdefs.h >>conftest.$ac_ext
37934 cat >>conftest.$ac_ext <<_ACEOF
37935 /* end confdefs.h. */
37936
37937
37938 #include <linux/fs.h>
37939
37940 int
37941 main (void)
37942 {
37943
37944 int i __attribute__ ((unused));
37945
37946 i = generic_readlink(NULL, NULL, 0);
37947
37948 ;
37949 return 0;
37950 }
37951
37952 _ACEOF
37953
37954
37955
37956 cat - <<_ACEOF >conftest.h
37957
37958 _ACEOF
37959
37960
37961 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
37962 echo "obj-m := conftest.o" >build/Makefile
37963 modpost_flag=''
37964 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
37965 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
37966 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37967 (eval $ac_try) 2>&5
37968 ac_status=$?
37969 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37970 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
37971 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37972 (eval $ac_try) 2>&5
37973 ac_status=$?
37974 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37975 (exit $ac_status); }; }; then
37976
37977 { $as_echo "$as_me:$LINENO: result: yes" >&5
37978 $as_echo "yes" >&6; }
37979
37980 cat >>confdefs.h <<\_ACEOF
37981 #define HAVE_GENERIC_READLINK 1
37982 _ACEOF
37983
37984
37985 else
37986 $as_echo "$as_me: failed program was:" >&5
37987 sed 's/^/| /' conftest.$ac_ext >&5
37988
37989 { $as_echo "$as_me:$LINENO: result: no" >&5
37990 $as_echo "no" >&6; }
37991
37992
37993
37994 fi
37995
37996 rm -Rf build
37997
37998
37999
38000
38001 { $as_echo "$as_me:$LINENO: checking whether ql->discard_granularity is available" >&5
38002 $as_echo_n "checking whether ql->discard_granularity is available... " >&6; }
38003
38004
38005 cat confdefs.h - <<_ACEOF >conftest.c
38006 /* confdefs.h. */
38007 _ACEOF
38008 cat confdefs.h >>conftest.$ac_ext
38009 cat >>conftest.$ac_ext <<_ACEOF
38010 /* end confdefs.h. */
38011
38012
38013 #include <linux/blkdev.h>
38014
38015 int
38016 main (void)
38017 {
38018
38019 struct queue_limits ql __attribute__ ((unused));
38020
38021 ql.discard_granularity = 0;
38022
38023 ;
38024 return 0;
38025 }
38026
38027 _ACEOF
38028
38029
38030
38031 cat - <<_ACEOF >conftest.h
38032
38033 _ACEOF
38034
38035
38036 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
38037 echo "obj-m := conftest.o" >build/Makefile
38038 modpost_flag=''
38039 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
38040 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
38041 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38042 (eval $ac_try) 2>&5
38043 ac_status=$?
38044 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38045 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
38046 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38047 (eval $ac_try) 2>&5
38048 ac_status=$?
38049 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38050 (exit $ac_status); }; }; then
38051
38052 { $as_echo "$as_me:$LINENO: result: yes" >&5
38053 $as_echo "yes" >&6; }
38054
38055 cat >>confdefs.h <<\_ACEOF
38056 #define HAVE_DISCARD_GRANULARITY 1
38057 _ACEOF
38058
38059
38060 else
38061 $as_echo "$as_me: failed program was:" >&5
38062 sed 's/^/| /' conftest.$ac_ext >&5
38063
38064 { $as_echo "$as_me:$LINENO: result: no" >&5
38065 $as_echo "no" >&6; }
38066
38067
38068
38069 fi
38070
38071 rm -Rf build
38072
38073
38074
38075
38076 { $as_echo "$as_me:$LINENO: checking whether super_block uses const struct xattr_handler" >&5
38077 $as_echo_n "checking whether super_block uses const struct xattr_handler... " >&6; }
38078
38079
38080 cat confdefs.h - <<_ACEOF >conftest.c
38081 /* confdefs.h. */
38082 _ACEOF
38083 cat confdefs.h >>conftest.$ac_ext
38084 cat >>conftest.$ac_ext <<_ACEOF
38085 /* end confdefs.h. */
38086
38087
38088 #include <linux/fs.h>
38089 #include <linux/xattr.h>
38090
38091 const struct xattr_handler xattr_test_handler = {
38092 .prefix = "test",
38093 .get = NULL,
38094 .set = NULL,
38095 };
38096
38097 const struct xattr_handler *xattr_handlers[] = {
38098 &xattr_test_handler,
38099 };
38100
38101 const struct super_block sb __attribute__ ((unused)) = {
38102 .s_xattr = xattr_handlers,
38103 };
38104
38105 int
38106 main (void)
38107 {
38108
38109
38110 ;
38111 return 0;
38112 }
38113
38114 _ACEOF
38115
38116
38117
38118 cat - <<_ACEOF >conftest.h
38119
38120 _ACEOF
38121
38122
38123 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
38124 echo "obj-m := conftest.o" >build/Makefile
38125 modpost_flag=''
38126 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
38127 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
38128 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38129 (eval $ac_try) 2>&5
38130 ac_status=$?
38131 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38132 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
38133 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38134 (eval $ac_try) 2>&5
38135 ac_status=$?
38136 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38137 (exit $ac_status); }; }; then
38138
38139 { $as_echo "$as_me:$LINENO: result: yes" >&5
38140 $as_echo "yes" >&6; }
38141
38142 cat >>confdefs.h <<\_ACEOF
38143 #define HAVE_CONST_XATTR_HANDLER 1
38144 _ACEOF
38145
38146
38147 else
38148 $as_echo "$as_me: failed program was:" >&5
38149 sed 's/^/| /' conftest.$ac_ext >&5
38150
38151 { $as_echo "$as_me:$LINENO: result: no" >&5
38152 $as_echo "no" >&6; }
38153
38154
38155
38156 fi
38157
38158 rm -Rf build
38159
38160
38161
38162
38163 { $as_echo "$as_me:$LINENO: checking whether xattr_handler has name" >&5
38164 $as_echo_n "checking whether xattr_handler has name... " >&6; }
38165
38166
38167 cat confdefs.h - <<_ACEOF >conftest.c
38168 /* confdefs.h. */
38169 _ACEOF
38170 cat confdefs.h >>conftest.$ac_ext
38171 cat >>conftest.$ac_ext <<_ACEOF
38172 /* end confdefs.h. */
38173
38174
38175 #include <linux/xattr.h>
38176
38177 static const struct xattr_handler
38178 xops __attribute__ ((unused)) = {
38179 .name = XATTR_NAME_POSIX_ACL_ACCESS,
38180 };
38181
38182 int
38183 main (void)
38184 {
38185
38186
38187 ;
38188 return 0;
38189 }
38190
38191 _ACEOF
38192
38193
38194
38195 cat - <<_ACEOF >conftest.h
38196
38197 _ACEOF
38198
38199
38200 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
38201 echo "obj-m := conftest.o" >build/Makefile
38202 modpost_flag=''
38203 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
38204 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
38205 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38206 (eval $ac_try) 2>&5
38207 ac_status=$?
38208 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38209 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
38210 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38211 (eval $ac_try) 2>&5
38212 ac_status=$?
38213 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38214 (exit $ac_status); }; }; then
38215
38216 { $as_echo "$as_me:$LINENO: result: yes" >&5
38217 $as_echo "yes" >&6; }
38218
38219 cat >>confdefs.h <<\_ACEOF
38220 #define HAVE_XATTR_HANDLER_NAME 1
38221 _ACEOF
38222
38223
38224 else
38225 $as_echo "$as_me: failed program was:" >&5
38226 sed 's/^/| /' conftest.$ac_ext >&5
38227
38228 { $as_echo "$as_me:$LINENO: result: no" >&5
38229 $as_echo "no" >&6; }
38230
38231
38232
38233 fi
38234
38235 rm -Rf build
38236
38237
38238
38239
38240 { $as_echo "$as_me:$LINENO: checking whether xattr_handler->get() wants both dentry and inode" >&5
38241 $as_echo_n "checking whether xattr_handler->get() wants both dentry and inode... " >&6; }
38242
38243
38244 cat confdefs.h - <<_ACEOF >conftest.c
38245 /* confdefs.h. */
38246 _ACEOF
38247 cat confdefs.h >>conftest.$ac_ext
38248 cat >>conftest.$ac_ext <<_ACEOF
38249 /* end confdefs.h. */
38250
38251
38252 #include <linux/xattr.h>
38253
38254 int get(const struct xattr_handler *handler,
38255 struct dentry *dentry, struct inode *inode,
38256 const char *name, void *buffer, size_t size) { return 0; }
38257 static const struct xattr_handler
38258 xops __attribute__ ((unused)) = {
38259 .get = get,
38260 };
38261
38262 int
38263 main (void)
38264 {
38265
38266
38267 ;
38268 return 0;
38269 }
38270
38271 _ACEOF
38272
38273
38274
38275 cat - <<_ACEOF >conftest.h
38276
38277 _ACEOF
38278
38279
38280 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
38281 echo "obj-m := conftest.o" >build/Makefile
38282 modpost_flag=''
38283 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
38284 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
38285 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38286 (eval $ac_try) 2>&5
38287 ac_status=$?
38288 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38289 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
38290 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38291 (eval $ac_try) 2>&5
38292 ac_status=$?
38293 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38294 (exit $ac_status); }; }; then
38295
38296 { $as_echo "$as_me:$LINENO: result: yes" >&5
38297 $as_echo "yes" >&6; }
38298
38299 cat >>confdefs.h <<\_ACEOF
38300 #define HAVE_XATTR_GET_DENTRY_INODE 1
38301 _ACEOF
38302
38303
38304 else
38305 $as_echo "$as_me: failed program was:" >&5
38306 sed 's/^/| /' conftest.$ac_ext >&5
38307
38308 { $as_echo "$as_me:$LINENO: result: no" >&5
38309 $as_echo "no" >&6; }
38310 { $as_echo "$as_me:$LINENO: checking whether xattr_handler->get() wants xattr_handler" >&5
38311 $as_echo_n "checking whether xattr_handler->get() wants xattr_handler... " >&6; }
38312
38313
38314 cat confdefs.h - <<_ACEOF >conftest.c
38315 /* confdefs.h. */
38316 _ACEOF
38317 cat confdefs.h >>conftest.$ac_ext
38318 cat >>conftest.$ac_ext <<_ACEOF
38319 /* end confdefs.h. */
38320
38321
38322 #include <linux/xattr.h>
38323
38324 int get(const struct xattr_handler *handler,
38325 struct dentry *dentry, const char *name,
38326 void *buffer, size_t size) { return 0; }
38327 static const struct xattr_handler
38328 xops __attribute__ ((unused)) = {
38329 .get = get,
38330 };
38331
38332 int
38333 main (void)
38334 {
38335
38336
38337 ;
38338 return 0;
38339 }
38340
38341 _ACEOF
38342
38343
38344
38345 cat - <<_ACEOF >conftest.h
38346
38347 _ACEOF
38348
38349
38350 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
38351 echo "obj-m := conftest.o" >build/Makefile
38352 modpost_flag=''
38353 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
38354 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
38355 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38356 (eval $ac_try) 2>&5
38357 ac_status=$?
38358 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38359 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
38360 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38361 (eval $ac_try) 2>&5
38362 ac_status=$?
38363 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38364 (exit $ac_status); }; }; then
38365
38366 { $as_echo "$as_me:$LINENO: result: yes" >&5
38367 $as_echo "yes" >&6; }
38368
38369 cat >>confdefs.h <<\_ACEOF
38370 #define HAVE_XATTR_GET_HANDLER 1
38371 _ACEOF
38372
38373
38374 else
38375 $as_echo "$as_me: failed program was:" >&5
38376 sed 's/^/| /' conftest.$ac_ext >&5
38377
38378 { $as_echo "$as_me:$LINENO: result: no" >&5
38379 $as_echo "no" >&6; }
38380 { $as_echo "$as_me:$LINENO: checking whether xattr_handler->get() wants dentry" >&5
38381 $as_echo_n "checking whether xattr_handler->get() wants dentry... " >&6; }
38382
38383
38384 cat confdefs.h - <<_ACEOF >conftest.c
38385 /* confdefs.h. */
38386 _ACEOF
38387 cat confdefs.h >>conftest.$ac_ext
38388 cat >>conftest.$ac_ext <<_ACEOF
38389 /* end confdefs.h. */
38390
38391
38392 #include <linux/xattr.h>
38393
38394 int get(struct dentry *dentry, const char *name,
38395 void *buffer, size_t size, int handler_flags)
38396 { return 0; }
38397 static const struct xattr_handler
38398 xops __attribute__ ((unused)) = {
38399 .get = get,
38400 };
38401
38402 int
38403 main (void)
38404 {
38405
38406
38407 ;
38408 return 0;
38409 }
38410
38411 _ACEOF
38412
38413
38414
38415 cat - <<_ACEOF >conftest.h
38416
38417 _ACEOF
38418
38419
38420 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
38421 echo "obj-m := conftest.o" >build/Makefile
38422 modpost_flag=''
38423 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
38424 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
38425 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38426 (eval $ac_try) 2>&5
38427 ac_status=$?
38428 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38429 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
38430 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38431 (eval $ac_try) 2>&5
38432 ac_status=$?
38433 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38434 (exit $ac_status); }; }; then
38435
38436 { $as_echo "$as_me:$LINENO: result: yes" >&5
38437 $as_echo "yes" >&6; }
38438
38439 cat >>confdefs.h <<\_ACEOF
38440 #define HAVE_XATTR_GET_DENTRY 1
38441 _ACEOF
38442
38443
38444 else
38445 $as_echo "$as_me: failed program was:" >&5
38446 sed 's/^/| /' conftest.$ac_ext >&5
38447
38448 { $as_echo "$as_me:$LINENO: result: no" >&5
38449 $as_echo "no" >&6; }
38450 { $as_echo "$as_me:$LINENO: checking whether xattr_handler->get() wants inode" >&5
38451 $as_echo_n "checking whether xattr_handler->get() wants inode... " >&6; }
38452
38453
38454 cat confdefs.h - <<_ACEOF >conftest.c
38455 /* confdefs.h. */
38456 _ACEOF
38457 cat confdefs.h >>conftest.$ac_ext
38458 cat >>conftest.$ac_ext <<_ACEOF
38459 /* end confdefs.h. */
38460
38461
38462 #include <linux/xattr.h>
38463
38464 int get(struct inode *ip, const char *name,
38465 void *buffer, size_t size) { return 0; }
38466 static const struct xattr_handler
38467 xops __attribute__ ((unused)) = {
38468 .get = get,
38469 };
38470
38471 int
38472 main (void)
38473 {
38474
38475
38476 ;
38477 return 0;
38478 }
38479
38480 _ACEOF
38481
38482
38483
38484 cat - <<_ACEOF >conftest.h
38485
38486 _ACEOF
38487
38488
38489 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
38490 echo "obj-m := conftest.o" >build/Makefile
38491 modpost_flag=''
38492 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
38493 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
38494 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38495 (eval $ac_try) 2>&5
38496 ac_status=$?
38497 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38498 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
38499 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38500 (eval $ac_try) 2>&5
38501 ac_status=$?
38502 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38503 (exit $ac_status); }; }; then
38504
38505 { $as_echo "$as_me:$LINENO: result: yes" >&5
38506 $as_echo "yes" >&6; }
38507
38508 cat >>confdefs.h <<\_ACEOF
38509 #define HAVE_XATTR_GET_INODE 1
38510 _ACEOF
38511
38512
38513 else
38514 $as_echo "$as_me: failed program was:" >&5
38515 sed 's/^/| /' conftest.$ac_ext >&5
38516
38517 { { $as_echo "$as_me:$LINENO: error: no; please file a bug report" >&5
38518 $as_echo "$as_me: error: no; please file a bug report" >&2;}
38519 { (exit 1); exit 1; }; }
38520
38521
38522
38523 fi
38524
38525 rm -Rf build
38526
38527
38528
38529
38530
38531 fi
38532
38533 rm -Rf build
38534
38535
38536
38537
38538
38539 fi
38540
38541 rm -Rf build
38542
38543
38544
38545
38546
38547 fi
38548
38549 rm -Rf build
38550
38551
38552
38553
38554 { $as_echo "$as_me:$LINENO: checking whether xattr_handler->set() wants both dentry and inode" >&5
38555 $as_echo_n "checking whether xattr_handler->set() wants both dentry and inode... " >&6; }
38556
38557
38558 cat confdefs.h - <<_ACEOF >conftest.c
38559 /* confdefs.h. */
38560 _ACEOF
38561 cat confdefs.h >>conftest.$ac_ext
38562 cat >>conftest.$ac_ext <<_ACEOF
38563 /* end confdefs.h. */
38564
38565
38566 #include <linux/xattr.h>
38567
38568 int set(const struct xattr_handler *handler,
38569 struct dentry *dentry, struct inode *inode,
38570 const char *name, const void *buffer,
38571 size_t size, int flags)
38572 { return 0; }
38573 static const struct xattr_handler
38574 xops __attribute__ ((unused)) = {
38575 .set = set,
38576 };
38577
38578 int
38579 main (void)
38580 {
38581
38582
38583 ;
38584 return 0;
38585 }
38586
38587 _ACEOF
38588
38589
38590
38591 cat - <<_ACEOF >conftest.h
38592
38593 _ACEOF
38594
38595
38596 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
38597 echo "obj-m := conftest.o" >build/Makefile
38598 modpost_flag=''
38599 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
38600 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
38601 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38602 (eval $ac_try) 2>&5
38603 ac_status=$?
38604 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38605 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
38606 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38607 (eval $ac_try) 2>&5
38608 ac_status=$?
38609 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38610 (exit $ac_status); }; }; then
38611
38612 { $as_echo "$as_me:$LINENO: result: yes" >&5
38613 $as_echo "yes" >&6; }
38614
38615 cat >>confdefs.h <<\_ACEOF
38616 #define HAVE_XATTR_SET_DENTRY_INODE 1
38617 _ACEOF
38618
38619
38620 else
38621 $as_echo "$as_me: failed program was:" >&5
38622 sed 's/^/| /' conftest.$ac_ext >&5
38623
38624 { $as_echo "$as_me:$LINENO: result: no" >&5
38625 $as_echo "no" >&6; }
38626 { $as_echo "$as_me:$LINENO: checking whether xattr_handler->set() wants xattr_handler" >&5
38627 $as_echo_n "checking whether xattr_handler->set() wants xattr_handler... " >&6; }
38628
38629
38630 cat confdefs.h - <<_ACEOF >conftest.c
38631 /* confdefs.h. */
38632 _ACEOF
38633 cat confdefs.h >>conftest.$ac_ext
38634 cat >>conftest.$ac_ext <<_ACEOF
38635 /* end confdefs.h. */
38636
38637
38638 #include <linux/xattr.h>
38639
38640 int set(const struct xattr_handler *handler,
38641 struct dentry *dentry, const char *name,
38642 const void *buffer, size_t size, int flags)
38643 { return 0; }
38644 static const struct xattr_handler
38645 xops __attribute__ ((unused)) = {
38646 .set = set,
38647 };
38648
38649 int
38650 main (void)
38651 {
38652
38653
38654 ;
38655 return 0;
38656 }
38657
38658 _ACEOF
38659
38660
38661
38662 cat - <<_ACEOF >conftest.h
38663
38664 _ACEOF
38665
38666
38667 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
38668 echo "obj-m := conftest.o" >build/Makefile
38669 modpost_flag=''
38670 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
38671 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
38672 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38673 (eval $ac_try) 2>&5
38674 ac_status=$?
38675 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38676 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
38677 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38678 (eval $ac_try) 2>&5
38679 ac_status=$?
38680 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38681 (exit $ac_status); }; }; then
38682
38683 { $as_echo "$as_me:$LINENO: result: yes" >&5
38684 $as_echo "yes" >&6; }
38685
38686 cat >>confdefs.h <<\_ACEOF
38687 #define HAVE_XATTR_SET_HANDLER 1
38688 _ACEOF
38689
38690
38691 else
38692 $as_echo "$as_me: failed program was:" >&5
38693 sed 's/^/| /' conftest.$ac_ext >&5
38694
38695 { $as_echo "$as_me:$LINENO: result: no" >&5
38696 $as_echo "no" >&6; }
38697 { $as_echo "$as_me:$LINENO: checking whether xattr_handler->set() wants dentry" >&5
38698 $as_echo_n "checking whether xattr_handler->set() wants dentry... " >&6; }
38699
38700
38701 cat confdefs.h - <<_ACEOF >conftest.c
38702 /* confdefs.h. */
38703 _ACEOF
38704 cat confdefs.h >>conftest.$ac_ext
38705 cat >>conftest.$ac_ext <<_ACEOF
38706 /* end confdefs.h. */
38707
38708
38709 #include <linux/xattr.h>
38710
38711 int set(struct dentry *dentry, const char *name,
38712 const void *buffer, size_t size, int flags,
38713 int handler_flags) { return 0; }
38714 static const struct xattr_handler
38715 xops __attribute__ ((unused)) = {
38716 .set = set,
38717 };
38718
38719 int
38720 main (void)
38721 {
38722
38723
38724 ;
38725 return 0;
38726 }
38727
38728 _ACEOF
38729
38730
38731
38732 cat - <<_ACEOF >conftest.h
38733
38734 _ACEOF
38735
38736
38737 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
38738 echo "obj-m := conftest.o" >build/Makefile
38739 modpost_flag=''
38740 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
38741 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
38742 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38743 (eval $ac_try) 2>&5
38744 ac_status=$?
38745 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38746 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
38747 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38748 (eval $ac_try) 2>&5
38749 ac_status=$?
38750 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38751 (exit $ac_status); }; }; then
38752
38753 { $as_echo "$as_me:$LINENO: result: yes" >&5
38754 $as_echo "yes" >&6; }
38755
38756 cat >>confdefs.h <<\_ACEOF
38757 #define HAVE_XATTR_SET_DENTRY 1
38758 _ACEOF
38759
38760
38761 else
38762 $as_echo "$as_me: failed program was:" >&5
38763 sed 's/^/| /' conftest.$ac_ext >&5
38764
38765 { $as_echo "$as_me:$LINENO: result: no" >&5
38766 $as_echo "no" >&6; }
38767 { $as_echo "$as_me:$LINENO: checking whether xattr_handler->set() wants inode" >&5
38768 $as_echo_n "checking whether xattr_handler->set() wants inode... " >&6; }
38769
38770
38771 cat confdefs.h - <<_ACEOF >conftest.c
38772 /* confdefs.h. */
38773 _ACEOF
38774 cat confdefs.h >>conftest.$ac_ext
38775 cat >>conftest.$ac_ext <<_ACEOF
38776 /* end confdefs.h. */
38777
38778
38779 #include <linux/xattr.h>
38780
38781 int set(struct inode *ip, const char *name,
38782 const void *buffer, size_t size, int flags)
38783 { return 0; }
38784 static const struct xattr_handler
38785 xops __attribute__ ((unused)) = {
38786 .set = set,
38787 };
38788
38789 int
38790 main (void)
38791 {
38792
38793
38794 ;
38795 return 0;
38796 }
38797
38798 _ACEOF
38799
38800
38801
38802 cat - <<_ACEOF >conftest.h
38803
38804 _ACEOF
38805
38806
38807 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
38808 echo "obj-m := conftest.o" >build/Makefile
38809 modpost_flag=''
38810 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
38811 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
38812 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38813 (eval $ac_try) 2>&5
38814 ac_status=$?
38815 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38816 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
38817 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38818 (eval $ac_try) 2>&5
38819 ac_status=$?
38820 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38821 (exit $ac_status); }; }; then
38822
38823 { $as_echo "$as_me:$LINENO: result: yes" >&5
38824 $as_echo "yes" >&6; }
38825
38826 cat >>confdefs.h <<\_ACEOF
38827 #define HAVE_XATTR_SET_INODE 1
38828 _ACEOF
38829
38830
38831 else
38832 $as_echo "$as_me: failed program was:" >&5
38833 sed 's/^/| /' conftest.$ac_ext >&5
38834
38835 { { $as_echo "$as_me:$LINENO: error: no; please file a bug report" >&5
38836 $as_echo "$as_me: error: no; please file a bug report" >&2;}
38837 { (exit 1); exit 1; }; }
38838
38839
38840
38841 fi
38842
38843 rm -Rf build
38844
38845
38846
38847
38848
38849 fi
38850
38851 rm -Rf build
38852
38853
38854
38855
38856
38857 fi
38858
38859 rm -Rf build
38860
38861
38862
38863
38864
38865 fi
38866
38867 rm -Rf build
38868
38869
38870
38871
38872 { $as_echo "$as_me:$LINENO: checking whether xattr_handler->list() wants simple" >&5
38873 $as_echo_n "checking whether xattr_handler->list() wants simple... " >&6; }
38874
38875
38876 cat confdefs.h - <<_ACEOF >conftest.c
38877 /* confdefs.h. */
38878 _ACEOF
38879 cat confdefs.h >>conftest.$ac_ext
38880 cat >>conftest.$ac_ext <<_ACEOF
38881 /* end confdefs.h. */
38882
38883
38884 #include <linux/xattr.h>
38885
38886 bool list(struct dentry *dentry) { return 0; }
38887 static const struct xattr_handler
38888 xops __attribute__ ((unused)) = {
38889 .list = list,
38890 };
38891
38892 int
38893 main (void)
38894 {
38895
38896
38897 ;
38898 return 0;
38899 }
38900
38901 _ACEOF
38902
38903
38904
38905 cat - <<_ACEOF >conftest.h
38906
38907 _ACEOF
38908
38909
38910 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
38911 echo "obj-m := conftest.o" >build/Makefile
38912 modpost_flag=''
38913 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
38914 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
38915 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38916 (eval $ac_try) 2>&5
38917 ac_status=$?
38918 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38919 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
38920 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38921 (eval $ac_try) 2>&5
38922 ac_status=$?
38923 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38924 (exit $ac_status); }; }; then
38925
38926 { $as_echo "$as_me:$LINENO: result: yes" >&5
38927 $as_echo "yes" >&6; }
38928
38929 cat >>confdefs.h <<\_ACEOF
38930 #define HAVE_XATTR_LIST_SIMPLE 1
38931 _ACEOF
38932
38933
38934 else
38935 $as_echo "$as_me: failed program was:" >&5
38936 sed 's/^/| /' conftest.$ac_ext >&5
38937
38938 { $as_echo "$as_me:$LINENO: result: no" >&5
38939 $as_echo "no" >&6; }
38940 { $as_echo "$as_me:$LINENO: checking whether xattr_handler->list() wants xattr_handler" >&5
38941 $as_echo_n "checking whether xattr_handler->list() wants xattr_handler... " >&6; }
38942
38943
38944 cat confdefs.h - <<_ACEOF >conftest.c
38945 /* confdefs.h. */
38946 _ACEOF
38947 cat confdefs.h >>conftest.$ac_ext
38948 cat >>conftest.$ac_ext <<_ACEOF
38949 /* end confdefs.h. */
38950
38951
38952 #include <linux/xattr.h>
38953
38954 size_t list(const struct xattr_handler *handler,
38955 struct dentry *dentry, char *list, size_t list_size,
38956 const char *name, size_t name_len) { return 0; }
38957 static const struct xattr_handler
38958 xops __attribute__ ((unused)) = {
38959 .list = list,
38960 };
38961
38962 int
38963 main (void)
38964 {
38965
38966
38967 ;
38968 return 0;
38969 }
38970
38971 _ACEOF
38972
38973
38974
38975 cat - <<_ACEOF >conftest.h
38976
38977 _ACEOF
38978
38979
38980 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
38981 echo "obj-m := conftest.o" >build/Makefile
38982 modpost_flag=''
38983 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
38984 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
38985 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38986 (eval $ac_try) 2>&5
38987 ac_status=$?
38988 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38989 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
38990 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38991 (eval $ac_try) 2>&5
38992 ac_status=$?
38993 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38994 (exit $ac_status); }; }; then
38995
38996 { $as_echo "$as_me:$LINENO: result: yes" >&5
38997 $as_echo "yes" >&6; }
38998
38999 cat >>confdefs.h <<\_ACEOF
39000 #define HAVE_XATTR_LIST_HANDLER 1
39001 _ACEOF
39002
39003
39004 else
39005 $as_echo "$as_me: failed program was:" >&5
39006 sed 's/^/| /' conftest.$ac_ext >&5
39007
39008 { $as_echo "$as_me:$LINENO: result: no" >&5
39009 $as_echo "no" >&6; }
39010 { $as_echo "$as_me:$LINENO: checking whether xattr_handler->list() wants dentry" >&5
39011 $as_echo_n "checking whether xattr_handler->list() wants dentry... " >&6; }
39012
39013
39014 cat confdefs.h - <<_ACEOF >conftest.c
39015 /* confdefs.h. */
39016 _ACEOF
39017 cat confdefs.h >>conftest.$ac_ext
39018 cat >>conftest.$ac_ext <<_ACEOF
39019 /* end confdefs.h. */
39020
39021
39022 #include <linux/xattr.h>
39023
39024 size_t list(struct dentry *dentry,
39025 char *list, size_t list_size,
39026 const char *name, size_t name_len,
39027 int handler_flags) { return 0; }
39028 static const struct xattr_handler
39029 xops __attribute__ ((unused)) = {
39030 .list = list,
39031 };
39032
39033 int
39034 main (void)
39035 {
39036
39037
39038 ;
39039 return 0;
39040 }
39041
39042 _ACEOF
39043
39044
39045
39046 cat - <<_ACEOF >conftest.h
39047
39048 _ACEOF
39049
39050
39051 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
39052 echo "obj-m := conftest.o" >build/Makefile
39053 modpost_flag=''
39054 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
39055 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
39056 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39057 (eval $ac_try) 2>&5
39058 ac_status=$?
39059 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39060 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
39061 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39062 (eval $ac_try) 2>&5
39063 ac_status=$?
39064 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39065 (exit $ac_status); }; }; then
39066
39067 { $as_echo "$as_me:$LINENO: result: yes" >&5
39068 $as_echo "yes" >&6; }
39069
39070 cat >>confdefs.h <<\_ACEOF
39071 #define HAVE_XATTR_LIST_DENTRY 1
39072 _ACEOF
39073
39074
39075 else
39076 $as_echo "$as_me: failed program was:" >&5
39077 sed 's/^/| /' conftest.$ac_ext >&5
39078
39079 { $as_echo "$as_me:$LINENO: result: no" >&5
39080 $as_echo "no" >&6; }
39081 { $as_echo "$as_me:$LINENO: checking whether xattr_handler->list() wants inode" >&5
39082 $as_echo_n "checking whether xattr_handler->list() wants inode... " >&6; }
39083
39084
39085 cat confdefs.h - <<_ACEOF >conftest.c
39086 /* confdefs.h. */
39087 _ACEOF
39088 cat confdefs.h >>conftest.$ac_ext
39089 cat >>conftest.$ac_ext <<_ACEOF
39090 /* end confdefs.h. */
39091
39092
39093 #include <linux/xattr.h>
39094
39095 size_t list(struct inode *ip, char *lst,
39096 size_t list_size, const char *name,
39097 size_t name_len) { return 0; }
39098 static const struct xattr_handler
39099 xops __attribute__ ((unused)) = {
39100 .list = list,
39101 };
39102
39103 int
39104 main (void)
39105 {
39106
39107
39108 ;
39109 return 0;
39110 }
39111
39112 _ACEOF
39113
39114
39115
39116 cat - <<_ACEOF >conftest.h
39117
39118 _ACEOF
39119
39120
39121 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
39122 echo "obj-m := conftest.o" >build/Makefile
39123 modpost_flag=''
39124 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
39125 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
39126 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39127 (eval $ac_try) 2>&5
39128 ac_status=$?
39129 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39130 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
39131 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39132 (eval $ac_try) 2>&5
39133 ac_status=$?
39134 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39135 (exit $ac_status); }; }; then
39136
39137 { $as_echo "$as_me:$LINENO: result: yes" >&5
39138 $as_echo "yes" >&6; }
39139
39140 cat >>confdefs.h <<\_ACEOF
39141 #define HAVE_XATTR_LIST_INODE 1
39142 _ACEOF
39143
39144
39145 else
39146 $as_echo "$as_me: failed program was:" >&5
39147 sed 's/^/| /' conftest.$ac_ext >&5
39148
39149 { { $as_echo "$as_me:$LINENO: error: no; please file a bug report" >&5
39150 $as_echo "$as_me: error: no; please file a bug report" >&2;}
39151 { (exit 1); exit 1; }; }
39152
39153
39154
39155 fi
39156
39157 rm -Rf build
39158
39159
39160
39161
39162
39163 fi
39164
39165 rm -Rf build
39166
39167
39168
39169
39170
39171 fi
39172
39173 rm -Rf build
39174
39175
39176
39177
39178
39179 fi
39180
39181 rm -Rf build
39182
39183
39184
39185
39186 { $as_echo "$as_me:$LINENO: checking whether inode_owner_or_capable() exists" >&5
39187 $as_echo_n "checking whether inode_owner_or_capable() exists... " >&6; }
39188
39189
39190 cat confdefs.h - <<_ACEOF >conftest.c
39191 /* confdefs.h. */
39192 _ACEOF
39193 cat confdefs.h >>conftest.$ac_ext
39194 cat >>conftest.$ac_ext <<_ACEOF
39195 /* end confdefs.h. */
39196
39197
39198 #include <linux/fs.h>
39199
39200 int
39201 main (void)
39202 {
39203
39204 struct inode *ip = NULL;
39205 (void) inode_owner_or_capable(ip);
39206
39207 ;
39208 return 0;
39209 }
39210
39211 _ACEOF
39212
39213
39214
39215 cat - <<_ACEOF >conftest.h
39216
39217 _ACEOF
39218
39219
39220 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
39221 echo "obj-m := conftest.o" >build/Makefile
39222 modpost_flag=''
39223 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
39224 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
39225 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39226 (eval $ac_try) 2>&5
39227 ac_status=$?
39228 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39229 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
39230 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39231 (eval $ac_try) 2>&5
39232 ac_status=$?
39233 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39234 (exit $ac_status); }; }; then
39235
39236 { $as_echo "$as_me:$LINENO: result: yes" >&5
39237 $as_echo "yes" >&6; }
39238
39239 cat >>confdefs.h <<\_ACEOF
39240 #define HAVE_INODE_OWNER_OR_CAPABLE 1
39241 _ACEOF
39242
39243
39244 else
39245 $as_echo "$as_me: failed program was:" >&5
39246 sed 's/^/| /' conftest.$ac_ext >&5
39247
39248 { $as_echo "$as_me:$LINENO: result: no" >&5
39249 $as_echo "no" >&6; }
39250 { $as_echo "$as_me:$LINENO: checking whether is_owner_or_cap() exists" >&5
39251 $as_echo_n "checking whether is_owner_or_cap() exists... " >&6; }
39252
39253
39254 cat confdefs.h - <<_ACEOF >conftest.c
39255 /* confdefs.h. */
39256 _ACEOF
39257 cat confdefs.h >>conftest.$ac_ext
39258 cat >>conftest.$ac_ext <<_ACEOF
39259 /* end confdefs.h. */
39260
39261
39262 #include <linux/fs.h>
39263 #include <linux/sched.h>
39264
39265 int
39266 main (void)
39267 {
39268
39269 struct inode *ip = NULL;
39270 (void) is_owner_or_cap(ip);
39271
39272 ;
39273 return 0;
39274 }
39275
39276 _ACEOF
39277
39278
39279
39280 cat - <<_ACEOF >conftest.h
39281
39282 _ACEOF
39283
39284
39285 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
39286 echo "obj-m := conftest.o" >build/Makefile
39287 modpost_flag=''
39288 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
39289 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
39290 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39291 (eval $ac_try) 2>&5
39292 ac_status=$?
39293 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39294 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
39295 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39296 (eval $ac_try) 2>&5
39297 ac_status=$?
39298 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39299 (exit $ac_status); }; }; then
39300
39301 { $as_echo "$as_me:$LINENO: result: yes" >&5
39302 $as_echo "yes" >&6; }
39303
39304 cat >>confdefs.h <<\_ACEOF
39305 #define HAVE_IS_OWNER_OR_CAP 1
39306 _ACEOF
39307
39308
39309 else
39310 $as_echo "$as_me: failed program was:" >&5
39311 sed 's/^/| /' conftest.$ac_ext >&5
39312
39313 { { $as_echo "$as_me:$LINENO: error: no - Please file a bug report at
39314 https://github.com/zfsonlinux/zfs/issues/new" >&5
39315 $as_echo "$as_me: error: no - Please file a bug report at
39316 https://github.com/zfsonlinux/zfs/issues/new" >&2;}
39317 { (exit 1); exit 1; }; }
39318
39319
39320
39321 fi
39322
39323 rm -Rf build
39324
39325
39326
39327
39328
39329 fi
39330
39331 rm -Rf build
39332
39333
39334
39335
39336 { $as_echo "$as_me:$LINENO: checking whether posix_acl_from_xattr() needs user_ns" >&5
39337 $as_echo_n "checking whether posix_acl_from_xattr() needs user_ns... " >&6; }
39338
39339
39340 cat confdefs.h - <<_ACEOF >conftest.c
39341 /* confdefs.h. */
39342 _ACEOF
39343 cat confdefs.h >>conftest.$ac_ext
39344 cat >>conftest.$ac_ext <<_ACEOF
39345 /* end confdefs.h. */
39346
39347
39348 #include <linux/cred.h>
39349 #include <linux/fs.h>
39350 #include <linux/posix_acl_xattr.h>
39351
39352 int
39353 main (void)
39354 {
39355
39356 posix_acl_from_xattr(&init_user_ns, NULL, 0);
39357
39358 ;
39359 return 0;
39360 }
39361
39362 _ACEOF
39363
39364
39365
39366 cat - <<_ACEOF >conftest.h
39367
39368 _ACEOF
39369
39370
39371 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
39372 echo "obj-m := conftest.o" >build/Makefile
39373 modpost_flag=''
39374 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
39375 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
39376 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39377 (eval $ac_try) 2>&5
39378 ac_status=$?
39379 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39380 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
39381 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39382 (eval $ac_try) 2>&5
39383 ac_status=$?
39384 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39385 (exit $ac_status); }; }; then
39386
39387 { $as_echo "$as_me:$LINENO: result: yes" >&5
39388 $as_echo "yes" >&6; }
39389
39390 cat >>confdefs.h <<\_ACEOF
39391 #define HAVE_POSIX_ACL_FROM_XATTR_USERNS 1
39392 _ACEOF
39393
39394
39395 else
39396 $as_echo "$as_me: failed program was:" >&5
39397 sed 's/^/| /' conftest.$ac_ext >&5
39398
39399 { $as_echo "$as_me:$LINENO: result: no" >&5
39400 $as_echo "no" >&6; }
39401
39402
39403
39404 fi
39405
39406 rm -Rf build
39407
39408
39409
39410
39411 { $as_echo "$as_me:$LINENO: checking whether posix_acl_release() is available" >&5
39412 $as_echo_n "checking whether posix_acl_release() is available... " >&6; }
39413
39414
39415 cat confdefs.h - <<_ACEOF >conftest.c
39416 /* confdefs.h. */
39417 _ACEOF
39418 cat confdefs.h >>conftest.$ac_ext
39419 cat >>conftest.$ac_ext <<_ACEOF
39420 /* end confdefs.h. */
39421
39422
39423 #include <linux/cred.h>
39424 #include <linux/fs.h>
39425 #include <linux/posix_acl.h>
39426
39427 int
39428 main (void)
39429 {
39430
39431 struct posix_acl* tmp = posix_acl_alloc(1, 0);
39432 posix_acl_release(tmp);
39433
39434 ;
39435 return 0;
39436 }
39437
39438 _ACEOF
39439
39440
39441
39442 cat - <<_ACEOF >conftest.h
39443
39444 _ACEOF
39445
39446
39447 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
39448 echo "obj-m := conftest.o" >build/Makefile
39449 modpost_flag=''
39450 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
39451 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
39452 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39453 (eval $ac_try) 2>&5
39454 ac_status=$?
39455 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39456 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
39457 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39458 (eval $ac_try) 2>&5
39459 ac_status=$?
39460 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39461 (exit $ac_status); }; }; then
39462
39463 { $as_echo "$as_me:$LINENO: result: yes" >&5
39464 $as_echo "yes" >&6; }
39465
39466 cat >>confdefs.h <<\_ACEOF
39467 #define HAVE_POSIX_ACL_RELEASE 1
39468 _ACEOF
39469
39470
39471 { $as_echo "$as_me:$LINENO: checking whether posix_acl_release() is GPL-only" >&5
39472 $as_echo_n "checking whether posix_acl_release() is GPL-only... " >&6; }
39473
39474
39475 cat confdefs.h - <<_ACEOF >conftest.c
39476 /* confdefs.h. */
39477 _ACEOF
39478 cat confdefs.h >>conftest.$ac_ext
39479 cat >>conftest.$ac_ext <<_ACEOF
39480 /* end confdefs.h. */
39481
39482
39483 #include <linux/module.h>
39484 #include <linux/cred.h>
39485 #include <linux/fs.h>
39486 #include <linux/posix_acl.h>
39487
39488 MODULE_LICENSE("$ZFS_META_LICENSE");
39489
39490 int
39491 main (void)
39492 {
39493
39494 struct posix_acl* tmp = posix_acl_alloc(1, 0);
39495 posix_acl_release(tmp);
39496
39497 ;
39498 return 0;
39499 }
39500
39501 _ACEOF
39502
39503
39504
39505 cat - <<_ACEOF >conftest.h
39506
39507 _ACEOF
39508
39509
39510 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
39511 echo "obj-m := conftest.o" >build/Makefile
39512 modpost_flag=''
39513 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
39514 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
39515 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39516 (eval $ac_try) 2>&5
39517 ac_status=$?
39518 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39519 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
39520 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39521 (eval $ac_try) 2>&5
39522 ac_status=$?
39523 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39524 (exit $ac_status); }; }; then
39525
39526 { $as_echo "$as_me:$LINENO: result: no" >&5
39527 $as_echo "no" >&6; }
39528
39529 else
39530 $as_echo "$as_me: failed program was:" >&5
39531 sed 's/^/| /' conftest.$ac_ext >&5
39532
39533 { $as_echo "$as_me:$LINENO: result: yes" >&5
39534 $as_echo "yes" >&6; }
39535
39536 cat >>confdefs.h <<\_ACEOF
39537 #define HAVE_POSIX_ACL_RELEASE_GPL_ONLY 1
39538 _ACEOF
39539
39540
39541
39542
39543 fi
39544
39545 rm -Rf build
39546
39547
39548
39549 else
39550 $as_echo "$as_me: failed program was:" >&5
39551 sed 's/^/| /' conftest.$ac_ext >&5
39552
39553 { $as_echo "$as_me:$LINENO: result: no" >&5
39554 $as_echo "no" >&6; }
39555
39556
39557
39558 fi
39559
39560 rm -Rf build
39561
39562
39563
39564
39565 { $as_echo "$as_me:$LINENO: checking whether set_cached_acl() is usable" >&5
39566 $as_echo_n "checking whether set_cached_acl() is usable... " >&6; }
39567
39568
39569 cat confdefs.h - <<_ACEOF >conftest.c
39570 /* confdefs.h. */
39571 _ACEOF
39572 cat confdefs.h >>conftest.$ac_ext
39573 cat >>conftest.$ac_ext <<_ACEOF
39574 /* end confdefs.h. */
39575
39576
39577 #include <linux/module.h>
39578 #include <linux/cred.h>
39579 #include <linux/fs.h>
39580 #include <linux/posix_acl.h>
39581
39582 MODULE_LICENSE("$ZFS_META_LICENSE");
39583
39584 int
39585 main (void)
39586 {
39587
39588 struct inode *ip = NULL;
39589 struct posix_acl *acl = posix_acl_alloc(1, 0);
39590 set_cached_acl(ip, ACL_TYPE_ACCESS, acl);
39591 forget_cached_acl(ip, ACL_TYPE_ACCESS);
39592
39593 ;
39594 return 0;
39595 }
39596
39597 _ACEOF
39598
39599
39600
39601 cat - <<_ACEOF >conftest.h
39602
39603 _ACEOF
39604
39605
39606 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
39607 echo "obj-m := conftest.o" >build/Makefile
39608 modpost_flag=''
39609 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
39610 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
39611 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39612 (eval $ac_try) 2>&5
39613 ac_status=$?
39614 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39615 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
39616 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39617 (eval $ac_try) 2>&5
39618 ac_status=$?
39619 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39620 (exit $ac_status); }; }; then
39621
39622 { $as_echo "$as_me:$LINENO: result: yes" >&5
39623 $as_echo "yes" >&6; }
39624
39625 cat >>confdefs.h <<\_ACEOF
39626 #define HAVE_SET_CACHED_ACL_USABLE 1
39627 _ACEOF
39628
39629
39630 else
39631 $as_echo "$as_me: failed program was:" >&5
39632 sed 's/^/| /' conftest.$ac_ext >&5
39633
39634 { $as_echo "$as_me:$LINENO: result: no" >&5
39635 $as_echo "no" >&6; }
39636
39637
39638
39639 fi
39640
39641 rm -Rf build
39642
39643
39644
39645
39646 { $as_echo "$as_me:$LINENO: checking whether posix_acl_chmod exists" >&5
39647 $as_echo_n "checking whether posix_acl_chmod exists... " >&6; }
39648
39649
39650 cat confdefs.h - <<_ACEOF >conftest.c
39651 /* confdefs.h. */
39652 _ACEOF
39653 cat confdefs.h >>conftest.$ac_ext
39654 cat >>conftest.$ac_ext <<_ACEOF
39655 /* end confdefs.h. */
39656
39657
39658 #include <linux/fs.h>
39659 #include <linux/posix_acl.h>
39660
39661 int
39662 main (void)
39663 {
39664
39665 posix_acl_chmod(NULL, 0, 0)
39666
39667 ;
39668 return 0;
39669 }
39670
39671 _ACEOF
39672
39673
39674
39675 cat - <<_ACEOF >conftest.h
39676
39677 _ACEOF
39678
39679
39680 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
39681 echo "obj-m := conftest.o" >build/Makefile
39682 modpost_flag=''
39683 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
39684 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
39685 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39686 (eval $ac_try) 2>&5
39687 ac_status=$?
39688 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39689 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
39690 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39691 (eval $ac_try) 2>&5
39692 ac_status=$?
39693 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39694 (exit $ac_status); }; }; then
39695
39696 { $as_echo "$as_me:$LINENO: result: yes" >&5
39697 $as_echo "yes" >&6; }
39698
39699 cat >>confdefs.h <<\_ACEOF
39700 #define HAVE_POSIX_ACL_CHMOD 1
39701 _ACEOF
39702
39703
39704 else
39705 $as_echo "$as_me: failed program was:" >&5
39706 sed 's/^/| /' conftest.$ac_ext >&5
39707
39708 { $as_echo "$as_me:$LINENO: result: no" >&5
39709 $as_echo "no" >&6; }
39710
39711
39712
39713 fi
39714
39715 rm -Rf build
39716
39717
39718
39719 { $as_echo "$as_me:$LINENO: checking whether __posix_acl_chmod exists" >&5
39720 $as_echo_n "checking whether __posix_acl_chmod exists... " >&6; }
39721
39722
39723 cat confdefs.h - <<_ACEOF >conftest.c
39724 /* confdefs.h. */
39725 _ACEOF
39726 cat confdefs.h >>conftest.$ac_ext
39727 cat >>conftest.$ac_ext <<_ACEOF
39728 /* end confdefs.h. */
39729
39730
39731 #include <linux/fs.h>
39732 #include <linux/posix_acl.h>
39733
39734 int
39735 main (void)
39736 {
39737
39738 __posix_acl_chmod(NULL, 0, 0)
39739
39740 ;
39741 return 0;
39742 }
39743
39744 _ACEOF
39745
39746
39747
39748 cat - <<_ACEOF >conftest.h
39749
39750 _ACEOF
39751
39752
39753 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
39754 echo "obj-m := conftest.o" >build/Makefile
39755 modpost_flag=''
39756 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
39757 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
39758 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39759 (eval $ac_try) 2>&5
39760 ac_status=$?
39761 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39762 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
39763 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39764 (eval $ac_try) 2>&5
39765 ac_status=$?
39766 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39767 (exit $ac_status); }; }; then
39768
39769 { $as_echo "$as_me:$LINENO: result: yes" >&5
39770 $as_echo "yes" >&6; }
39771
39772 cat >>confdefs.h <<\_ACEOF
39773 #define HAVE___POSIX_ACL_CHMOD 1
39774 _ACEOF
39775
39776
39777 else
39778 $as_echo "$as_me: failed program was:" >&5
39779 sed 's/^/| /' conftest.$ac_ext >&5
39780
39781 { $as_echo "$as_me:$LINENO: result: no" >&5
39782 $as_echo "no" >&6; }
39783
39784
39785
39786 fi
39787
39788 rm -Rf build
39789
39790
39791
39792
39793 { $as_echo "$as_me:$LINENO: checking whether posix_acl_equiv_mode() wants umode_t" >&5
39794 $as_echo_n "checking whether posix_acl_equiv_mode() wants umode_t... " >&6; }
39795
39796
39797 cat confdefs.h - <<_ACEOF >conftest.c
39798 /* confdefs.h. */
39799 _ACEOF
39800 cat confdefs.h >>conftest.$ac_ext
39801 cat >>conftest.$ac_ext <<_ACEOF
39802 /* end confdefs.h. */
39803
39804
39805 #include <linux/fs.h>
39806 #include <linux/posix_acl.h>
39807
39808 int
39809 main (void)
39810 {
39811
39812 umode_t tmp;
39813 posix_acl_equiv_mode(NULL,&tmp);
39814
39815 ;
39816 return 0;
39817 }
39818
39819 _ACEOF
39820
39821
39822
39823 cat - <<_ACEOF >conftest.h
39824
39825 _ACEOF
39826
39827
39828 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
39829 echo "obj-m := conftest.o" >build/Makefile
39830 modpost_flag=''
39831 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
39832 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
39833 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39834 (eval $ac_try) 2>&5
39835 ac_status=$?
39836 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39837 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
39838 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39839 (eval $ac_try) 2>&5
39840 ac_status=$?
39841 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39842 (exit $ac_status); }; }; then
39843
39844 { $as_echo "$as_me:$LINENO: result: yes" >&5
39845 $as_echo "yes" >&6; }
39846
39847 cat >>confdefs.h <<\_ACEOF
39848 #define HAVE_POSIX_ACL_EQUIV_MODE_UMODE_T 1
39849 _ACEOF
39850
39851
39852 else
39853 $as_echo "$as_me: failed program was:" >&5
39854 sed 's/^/| /' conftest.$ac_ext >&5
39855
39856 { $as_echo "$as_me:$LINENO: result: no" >&5
39857 $as_echo "no" >&6; }
39858
39859
39860
39861 fi
39862
39863 rm -Rf build
39864
39865
39866
39867
39868 { $as_echo "$as_me:$LINENO: checking whether posix_acl_valid() wants user namespace" >&5
39869 $as_echo_n "checking whether posix_acl_valid() wants user namespace... " >&6; }
39870
39871
39872 cat confdefs.h - <<_ACEOF >conftest.c
39873 /* confdefs.h. */
39874 _ACEOF
39875 cat confdefs.h >>conftest.$ac_ext
39876 cat >>conftest.$ac_ext <<_ACEOF
39877 /* end confdefs.h. */
39878
39879
39880 #include <linux/fs.h>
39881 #include <linux/posix_acl.h>
39882
39883 int
39884 main (void)
39885 {
39886
39887 struct user_namespace *user_ns = NULL;
39888 const struct posix_acl *acl = NULL;
39889 int error;
39890
39891 error = posix_acl_valid(user_ns, acl);
39892
39893 ;
39894 return 0;
39895 }
39896
39897 _ACEOF
39898
39899
39900
39901 cat - <<_ACEOF >conftest.h
39902
39903 _ACEOF
39904
39905
39906 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
39907 echo "obj-m := conftest.o" >build/Makefile
39908 modpost_flag=''
39909 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
39910 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
39911 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39912 (eval $ac_try) 2>&5
39913 ac_status=$?
39914 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39915 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
39916 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39917 (eval $ac_try) 2>&5
39918 ac_status=$?
39919 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39920 (exit $ac_status); }; }; then
39921
39922 { $as_echo "$as_me:$LINENO: result: yes" >&5
39923 $as_echo "yes" >&6; }
39924
39925 cat >>confdefs.h <<\_ACEOF
39926 #define HAVE_POSIX_ACL_VALID_WITH_NS 1
39927 _ACEOF
39928
39929
39930 else
39931 $as_echo "$as_me: failed program was:" >&5
39932 sed 's/^/| /' conftest.$ac_ext >&5
39933
39934 { $as_echo "$as_me:$LINENO: result: no" >&5
39935 $as_echo "no" >&6; }
39936
39937
39938
39939 fi
39940
39941 rm -Rf build
39942
39943
39944
39945
39946 { $as_echo "$as_me:$LINENO: checking whether iops->permission() exists" >&5
39947 $as_echo_n "checking whether iops->permission() exists... " >&6; }
39948
39949
39950 cat confdefs.h - <<_ACEOF >conftest.c
39951 /* confdefs.h. */
39952 _ACEOF
39953 cat confdefs.h >>conftest.$ac_ext
39954 cat >>conftest.$ac_ext <<_ACEOF
39955 /* end confdefs.h. */
39956
39957
39958 #include <linux/fs.h>
39959
39960 int permission_fn(struct inode *inode, int mask) { return 0; }
39961
39962 static const struct inode_operations
39963 iops __attribute__ ((unused)) = {
39964 .permission = permission_fn,
39965 };
39966
39967 int
39968 main (void)
39969 {
39970
39971
39972 ;
39973 return 0;
39974 }
39975
39976 _ACEOF
39977
39978
39979
39980 cat - <<_ACEOF >conftest.h
39981
39982 _ACEOF
39983
39984
39985 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
39986 echo "obj-m := conftest.o" >build/Makefile
39987 modpost_flag=''
39988 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
39989 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
39990 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39991 (eval $ac_try) 2>&5
39992 ac_status=$?
39993 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39994 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
39995 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39996 (eval $ac_try) 2>&5
39997 ac_status=$?
39998 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39999 (exit $ac_status); }; }; then
40000
40001 { $as_echo "$as_me:$LINENO: result: yes" >&5
40002 $as_echo "yes" >&6; }
40003
40004 cat >>confdefs.h <<\_ACEOF
40005 #define HAVE_PERMISSION 1
40006 _ACEOF
40007
40008
40009 else
40010 $as_echo "$as_me: failed program was:" >&5
40011 sed 's/^/| /' conftest.$ac_ext >&5
40012
40013 { $as_echo "$as_me:$LINENO: result: no" >&5
40014 $as_echo "no" >&6; }
40015
40016
40017
40018 fi
40019
40020 rm -Rf build
40021
40022
40023
40024
40025 { $as_echo "$as_me:$LINENO: checking whether iops->permission() wants nameidata" >&5
40026 $as_echo_n "checking whether iops->permission() wants nameidata... " >&6; }
40027
40028
40029 cat confdefs.h - <<_ACEOF >conftest.c
40030 /* confdefs.h. */
40031 _ACEOF
40032 cat confdefs.h >>conftest.$ac_ext
40033 cat >>conftest.$ac_ext <<_ACEOF
40034 /* end confdefs.h. */
40035
40036
40037 #include <linux/fs.h>
40038 #include <linux/sched.h>
40039
40040 int permission_fn(struct inode *inode, int mask,
40041 struct nameidata *nd) { return 0; }
40042
40043 static const struct inode_operations
40044 iops __attribute__ ((unused)) = {
40045 .permission = permission_fn,
40046 };
40047
40048 int
40049 main (void)
40050 {
40051
40052
40053 ;
40054 return 0;
40055 }
40056
40057 _ACEOF
40058
40059
40060
40061 cat - <<_ACEOF >conftest.h
40062
40063 _ACEOF
40064
40065
40066 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
40067 echo "obj-m := conftest.o" >build/Makefile
40068 modpost_flag=''
40069 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
40070 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
40071 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40072 (eval $ac_try) 2>&5
40073 ac_status=$?
40074 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
40075 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
40076 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40077 (eval $ac_try) 2>&5
40078 ac_status=$?
40079 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
40080 (exit $ac_status); }; }; then
40081
40082 { $as_echo "$as_me:$LINENO: result: yes" >&5
40083 $as_echo "yes" >&6; }
40084
40085 cat >>confdefs.h <<\_ACEOF
40086 #define HAVE_PERMISSION 1
40087 _ACEOF
40088
40089
40090 cat >>confdefs.h <<\_ACEOF
40091 #define HAVE_PERMISSION_WITH_NAMEIDATA 1
40092 _ACEOF
40093
40094
40095 else
40096 $as_echo "$as_me: failed program was:" >&5
40097 sed 's/^/| /' conftest.$ac_ext >&5
40098
40099 { $as_echo "$as_me:$LINENO: result: no" >&5
40100 $as_echo "no" >&6; }
40101
40102
40103
40104 fi
40105
40106 rm -Rf build
40107
40108
40109
40110
40111 { $as_echo "$as_me:$LINENO: checking whether iops->check_acl() exists" >&5
40112 $as_echo_n "checking whether iops->check_acl() exists... " >&6; }
40113
40114
40115 cat confdefs.h - <<_ACEOF >conftest.c
40116 /* confdefs.h. */
40117 _ACEOF
40118 cat confdefs.h >>conftest.$ac_ext
40119 cat >>conftest.$ac_ext <<_ACEOF
40120 /* end confdefs.h. */
40121
40122
40123 #include <linux/fs.h>
40124
40125 int check_acl_fn(struct inode *inode, int mask) { return 0; }
40126
40127 static const struct inode_operations
40128 iops __attribute__ ((unused)) = {
40129 .check_acl = check_acl_fn,
40130 };
40131
40132 int
40133 main (void)
40134 {
40135
40136
40137 ;
40138 return 0;
40139 }
40140
40141 _ACEOF
40142
40143
40144
40145 cat - <<_ACEOF >conftest.h
40146
40147 _ACEOF
40148
40149
40150 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
40151 echo "obj-m := conftest.o" >build/Makefile
40152 modpost_flag=''
40153 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
40154 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
40155 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40156 (eval $ac_try) 2>&5
40157 ac_status=$?
40158 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
40159 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
40160 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40161 (eval $ac_try) 2>&5
40162 ac_status=$?
40163 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
40164 (exit $ac_status); }; }; then
40165
40166 { $as_echo "$as_me:$LINENO: result: yes" >&5
40167 $as_echo "yes" >&6; }
40168
40169 cat >>confdefs.h <<\_ACEOF
40170 #define HAVE_CHECK_ACL 1
40171 _ACEOF
40172
40173
40174 else
40175 $as_echo "$as_me: failed program was:" >&5
40176 sed 's/^/| /' conftest.$ac_ext >&5
40177
40178 { $as_echo "$as_me:$LINENO: result: no" >&5
40179 $as_echo "no" >&6; }
40180
40181
40182
40183 fi
40184
40185 rm -Rf build
40186
40187
40188
40189
40190 { $as_echo "$as_me:$LINENO: checking whether iops->check_acl() wants flags" >&5
40191 $as_echo_n "checking whether iops->check_acl() wants flags... " >&6; }
40192
40193
40194 cat confdefs.h - <<_ACEOF >conftest.c
40195 /* confdefs.h. */
40196 _ACEOF
40197 cat confdefs.h >>conftest.$ac_ext
40198 cat >>conftest.$ac_ext <<_ACEOF
40199 /* end confdefs.h. */
40200
40201
40202 #include <linux/fs.h>
40203
40204 int check_acl_fn(struct inode *inode, int mask,
40205 unsigned int flags) { return 0; }
40206
40207 static const struct inode_operations
40208 iops __attribute__ ((unused)) = {
40209 .check_acl = check_acl_fn,
40210 };
40211
40212 int
40213 main (void)
40214 {
40215
40216
40217 ;
40218 return 0;
40219 }
40220
40221 _ACEOF
40222
40223
40224
40225 cat - <<_ACEOF >conftest.h
40226
40227 _ACEOF
40228
40229
40230 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
40231 echo "obj-m := conftest.o" >build/Makefile
40232 modpost_flag=''
40233 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
40234 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
40235 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40236 (eval $ac_try) 2>&5
40237 ac_status=$?
40238 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
40239 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
40240 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40241 (eval $ac_try) 2>&5
40242 ac_status=$?
40243 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
40244 (exit $ac_status); }; }; then
40245
40246 { $as_echo "$as_me:$LINENO: result: yes" >&5
40247 $as_echo "yes" >&6; }
40248
40249 cat >>confdefs.h <<\_ACEOF
40250 #define HAVE_CHECK_ACL 1
40251 _ACEOF
40252
40253
40254 cat >>confdefs.h <<\_ACEOF
40255 #define HAVE_CHECK_ACL_WITH_FLAGS 1
40256 _ACEOF
40257
40258
40259 else
40260 $as_echo "$as_me: failed program was:" >&5
40261 sed 's/^/| /' conftest.$ac_ext >&5
40262
40263 { $as_echo "$as_me:$LINENO: result: no" >&5
40264 $as_echo "no" >&6; }
40265
40266
40267
40268 fi
40269
40270 rm -Rf build
40271
40272
40273
40274
40275 { $as_echo "$as_me:$LINENO: checking whether iops->get_acl() exists" >&5
40276 $as_echo_n "checking whether iops->get_acl() exists... " >&6; }
40277
40278
40279 cat confdefs.h - <<_ACEOF >conftest.c
40280 /* confdefs.h. */
40281 _ACEOF
40282 cat confdefs.h >>conftest.$ac_ext
40283 cat >>conftest.$ac_ext <<_ACEOF
40284 /* end confdefs.h. */
40285
40286
40287 #include <linux/fs.h>
40288
40289 struct posix_acl *get_acl_fn(struct inode *inode, int type)
40290 { return NULL; }
40291
40292 static const struct inode_operations
40293 iops __attribute__ ((unused)) = {
40294 .get_acl = get_acl_fn,
40295 };
40296
40297 int
40298 main (void)
40299 {
40300
40301
40302 ;
40303 return 0;
40304 }
40305
40306 _ACEOF
40307
40308
40309
40310 cat - <<_ACEOF >conftest.h
40311
40312 _ACEOF
40313
40314
40315 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
40316 echo "obj-m := conftest.o" >build/Makefile
40317 modpost_flag=''
40318 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
40319 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
40320 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40321 (eval $ac_try) 2>&5
40322 ac_status=$?
40323 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
40324 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
40325 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40326 (eval $ac_try) 2>&5
40327 ac_status=$?
40328 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
40329 (exit $ac_status); }; }; then
40330
40331 { $as_echo "$as_me:$LINENO: result: yes" >&5
40332 $as_echo "yes" >&6; }
40333
40334 cat >>confdefs.h <<\_ACEOF
40335 #define HAVE_GET_ACL 1
40336 _ACEOF
40337
40338
40339 else
40340 $as_echo "$as_me: failed program was:" >&5
40341 sed 's/^/| /' conftest.$ac_ext >&5
40342
40343 { $as_echo "$as_me:$LINENO: result: no" >&5
40344 $as_echo "no" >&6; }
40345
40346
40347
40348 fi
40349
40350 rm -Rf build
40351
40352
40353
40354
40355 { $as_echo "$as_me:$LINENO: checking whether iops->set_acl() exists" >&5
40356 $as_echo_n "checking whether iops->set_acl() exists... " >&6; }
40357
40358
40359 cat confdefs.h - <<_ACEOF >conftest.c
40360 /* confdefs.h. */
40361 _ACEOF
40362 cat confdefs.h >>conftest.$ac_ext
40363 cat >>conftest.$ac_ext <<_ACEOF
40364 /* end confdefs.h. */
40365
40366
40367 #include <linux/fs.h>
40368
40369 int set_acl_fn(struct inode *inode, struct posix_acl *acl, int type)
40370 { return 0; }
40371
40372 static const struct inode_operations
40373 iops __attribute__ ((unused)) = {
40374 .set_acl = set_acl_fn,
40375 };
40376
40377 int
40378 main (void)
40379 {
40380
40381
40382 ;
40383 return 0;
40384 }
40385
40386 _ACEOF
40387
40388
40389
40390 cat - <<_ACEOF >conftest.h
40391
40392 _ACEOF
40393
40394
40395 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
40396 echo "obj-m := conftest.o" >build/Makefile
40397 modpost_flag=''
40398 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
40399 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
40400 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40401 (eval $ac_try) 2>&5
40402 ac_status=$?
40403 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
40404 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
40405 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40406 (eval $ac_try) 2>&5
40407 ac_status=$?
40408 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
40409 (exit $ac_status); }; }; then
40410
40411 { $as_echo "$as_me:$LINENO: result: yes" >&5
40412 $as_echo "yes" >&6; }
40413
40414 cat >>confdefs.h <<\_ACEOF
40415 #define HAVE_SET_ACL 1
40416 _ACEOF
40417
40418
40419 else
40420 $as_echo "$as_me: failed program was:" >&5
40421 sed 's/^/| /' conftest.$ac_ext >&5
40422
40423 { $as_echo "$as_me:$LINENO: result: no" >&5
40424 $as_echo "no" >&6; }
40425
40426
40427
40428 fi
40429
40430 rm -Rf build
40431
40432
40433
40434
40435
40436 { $as_echo "$as_me:$LINENO: checking whether iops->getattr() takes a path" >&5
40437 $as_echo_n "checking whether iops->getattr() takes a path... " >&6; }
40438
40439
40440 cat confdefs.h - <<_ACEOF >conftest.c
40441 /* confdefs.h. */
40442 _ACEOF
40443 cat confdefs.h >>conftest.$ac_ext
40444 cat >>conftest.$ac_ext <<_ACEOF
40445 /* end confdefs.h. */
40446
40447
40448 #include <linux/fs.h>
40449
40450 int test_getattr(
40451 const struct path *p, struct kstat *k,
40452 u32 request_mask, unsigned int query_flags)
40453 { return 0; }
40454
40455 static const struct inode_operations
40456 iops __attribute__ ((unused)) = {
40457 .getattr = test_getattr,
40458 };
40459
40460 int
40461 main (void)
40462 {
40463
40464
40465 ;
40466 return 0;
40467 }
40468
40469 _ACEOF
40470
40471
40472
40473 cat - <<_ACEOF >conftest.h
40474
40475 _ACEOF
40476
40477
40478 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
40479 echo "obj-m := conftest.o" >build/Makefile
40480 modpost_flag=''
40481 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
40482 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
40483 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40484 (eval $ac_try) 2>&5
40485 ac_status=$?
40486 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
40487 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
40488 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40489 (eval $ac_try) 2>&5
40490 ac_status=$?
40491 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
40492 (exit $ac_status); }; }; then
40493
40494 { $as_echo "$as_me:$LINENO: result: yes" >&5
40495 $as_echo "yes" >&6; }
40496
40497 cat >>confdefs.h <<\_ACEOF
40498 #define HAVE_PATH_IOPS_GETATTR 1
40499 _ACEOF
40500
40501
40502 else
40503 $as_echo "$as_me: failed program was:" >&5
40504 sed 's/^/| /' conftest.$ac_ext >&5
40505
40506 { $as_echo "$as_me:$LINENO: result: no" >&5
40507 $as_echo "no" >&6; }
40508
40509
40510
40511 fi
40512
40513 rm -Rf build
40514
40515
40516
40517
40518 { $as_echo "$as_me:$LINENO: checking whether iops->getattr() takes a vfsmount" >&5
40519 $as_echo_n "checking whether iops->getattr() takes a vfsmount... " >&6; }
40520
40521
40522 cat confdefs.h - <<_ACEOF >conftest.c
40523 /* confdefs.h. */
40524 _ACEOF
40525 cat confdefs.h >>conftest.$ac_ext
40526 cat >>conftest.$ac_ext <<_ACEOF
40527 /* end confdefs.h. */
40528
40529
40530 #include <linux/fs.h>
40531
40532 int test_getattr(
40533 struct vfsmount *mnt, struct dentry *d,
40534 struct kstat *k)
40535 { return 0; }
40536
40537 static const struct inode_operations
40538 iops __attribute__ ((unused)) = {
40539 .getattr = test_getattr,
40540 };
40541
40542 int
40543 main (void)
40544 {
40545
40546
40547 ;
40548 return 0;
40549 }
40550
40551 _ACEOF
40552
40553
40554
40555 cat - <<_ACEOF >conftest.h
40556
40557 _ACEOF
40558
40559
40560 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
40561 echo "obj-m := conftest.o" >build/Makefile
40562 modpost_flag=''
40563 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
40564 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
40565 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40566 (eval $ac_try) 2>&5
40567 ac_status=$?
40568 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
40569 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
40570 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40571 (eval $ac_try) 2>&5
40572 ac_status=$?
40573 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
40574 (exit $ac_status); }; }; then
40575
40576 { $as_echo "$as_me:$LINENO: result: yes" >&5
40577 $as_echo "yes" >&6; }
40578
40579 cat >>confdefs.h <<\_ACEOF
40580 #define HAVE_VFSMOUNT_IOPS_GETATTR 1
40581 _ACEOF
40582
40583
40584 else
40585 $as_echo "$as_me: failed program was:" >&5
40586 sed 's/^/| /' conftest.$ac_ext >&5
40587
40588 { $as_echo "$as_me:$LINENO: result: no" >&5
40589 $as_echo "no" >&6; }
40590
40591
40592
40593 fi
40594
40595 rm -Rf build
40596
40597
40598
40599
40600
40601 { $as_echo "$as_me:$LINENO: checking whether inode_set_flags() exists" >&5
40602 $as_echo_n "checking whether inode_set_flags() exists... " >&6; }
40603
40604
40605 cat confdefs.h - <<_ACEOF >conftest.c
40606 /* confdefs.h. */
40607 _ACEOF
40608 cat confdefs.h >>conftest.$ac_ext
40609 cat >>conftest.$ac_ext <<_ACEOF
40610 /* end confdefs.h. */
40611
40612
40613 #include <linux/fs.h>
40614
40615 int
40616 main (void)
40617 {
40618
40619 struct inode inode;
40620 inode_set_flags(&inode, S_IMMUTABLE, S_IMMUTABLE);
40621
40622 ;
40623 return 0;
40624 }
40625
40626 _ACEOF
40627
40628
40629
40630 cat - <<_ACEOF >conftest.h
40631
40632 _ACEOF
40633
40634
40635 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
40636 echo "obj-m := conftest.o" >build/Makefile
40637 modpost_flag=''
40638 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
40639 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
40640 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40641 (eval $ac_try) 2>&5
40642 ac_status=$?
40643 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
40644 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
40645 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40646 (eval $ac_try) 2>&5
40647 ac_status=$?
40648 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
40649 (exit $ac_status); }; }; then
40650
40651 { $as_echo "$as_me:$LINENO: result: yes" >&5
40652 $as_echo "yes" >&6; }
40653
40654 cat >>confdefs.h <<\_ACEOF
40655 #define HAVE_INODE_SET_FLAGS 1
40656 _ACEOF
40657
40658
40659 else
40660 $as_echo "$as_me: failed program was:" >&5
40661 sed 's/^/| /' conftest.$ac_ext >&5
40662
40663 { $as_echo "$as_me:$LINENO: result: no" >&5
40664 $as_echo "no" >&6; }
40665
40666
40667
40668 fi
40669
40670 rm -Rf build
40671
40672
40673
40674
40675 { $as_echo "$as_me:$LINENO: checking whether inode_set_iversion() exists" >&5
40676 $as_echo_n "checking whether inode_set_iversion() exists... " >&6; }
40677
40678
40679 cat confdefs.h - <<_ACEOF >conftest.c
40680 /* confdefs.h. */
40681 _ACEOF
40682 cat confdefs.h >>conftest.$ac_ext
40683 cat >>conftest.$ac_ext <<_ACEOF
40684 /* end confdefs.h. */
40685
40686
40687 #include <linux/iversion.h>
40688
40689 int
40690 main (void)
40691 {
40692
40693 struct inode inode;
40694 inode_set_iversion(&inode, 1);
40695
40696 ;
40697 return 0;
40698 }
40699
40700 _ACEOF
40701
40702
40703
40704 cat - <<_ACEOF >conftest.h
40705
40706 _ACEOF
40707
40708
40709 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
40710 echo "obj-m := conftest.o" >build/Makefile
40711 modpost_flag=''
40712 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
40713 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
40714 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40715 (eval $ac_try) 2>&5
40716 ac_status=$?
40717 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
40718 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
40719 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40720 (eval $ac_try) 2>&5
40721 ac_status=$?
40722 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
40723 (exit $ac_status); }; }; then
40724
40725 { $as_echo "$as_me:$LINENO: result: yes" >&5
40726 $as_echo "yes" >&6; }
40727
40728 cat >>confdefs.h <<\_ACEOF
40729 #define HAVE_INODE_SET_IVERSION 1
40730 _ACEOF
40731
40732
40733 else
40734 $as_echo "$as_me: failed program was:" >&5
40735 sed 's/^/| /' conftest.$ac_ext >&5
40736
40737 { $as_echo "$as_me:$LINENO: result: no" >&5
40738 $as_echo "no" >&6; }
40739
40740
40741
40742 fi
40743
40744 rm -Rf build
40745
40746
40747
40748
40749 { $as_echo "$as_me:$LINENO: checking whether uncached_acl_sentinel() exists" >&5
40750 $as_echo_n "checking whether uncached_acl_sentinel() exists... " >&6; }
40751
40752
40753 cat confdefs.h - <<_ACEOF >conftest.c
40754 /* confdefs.h. */
40755 _ACEOF
40756 cat confdefs.h >>conftest.$ac_ext
40757 cat >>conftest.$ac_ext <<_ACEOF
40758 /* end confdefs.h. */
40759
40760
40761 #include <linux/fs.h>
40762
40763 int
40764 main (void)
40765 {
40766
40767 void *sentinel __attribute__ ((unused)) = uncached_acl_sentinel(NULL);
40768
40769 ;
40770 return 0;
40771 }
40772
40773 _ACEOF
40774
40775
40776
40777 cat - <<_ACEOF >conftest.h
40778
40779 _ACEOF
40780
40781
40782 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
40783 echo "obj-m := conftest.o" >build/Makefile
40784 modpost_flag=''
40785 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
40786 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
40787 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40788 (eval $ac_try) 2>&5
40789 ac_status=$?
40790 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
40791 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
40792 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40793 (eval $ac_try) 2>&5
40794 ac_status=$?
40795 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
40796 (exit $ac_status); }; }; then
40797
40798 { $as_echo "$as_me:$LINENO: result: yes" >&5
40799 $as_echo "yes" >&6; }
40800
40801 cat >>confdefs.h <<\_ACEOF
40802 #define HAVE_KERNEL_GET_ACL_HANDLE_CACHE 1
40803 _ACEOF
40804
40805
40806 else
40807 $as_echo "$as_me: failed program was:" >&5
40808 sed 's/^/| /' conftest.$ac_ext >&5
40809
40810 { $as_echo "$as_me:$LINENO: result: no" >&5
40811 $as_echo "no" >&6; }
40812
40813
40814
40815 fi
40816
40817 rm -Rf build
40818
40819
40820
40821
40822 { $as_echo "$as_me:$LINENO: checking whether sops->show_options() wants dentry" >&5
40823 $as_echo_n "checking whether sops->show_options() wants dentry... " >&6; }
40824
40825
40826
40827 cat confdefs.h - <<_ACEOF >conftest.c
40828 /* confdefs.h. */
40829 _ACEOF
40830 cat confdefs.h >>conftest.$ac_ext
40831 cat >>conftest.$ac_ext <<_ACEOF
40832 /* end confdefs.h. */
40833
40834
40835 #include <linux/fs.h>
40836
40837 int show_options (struct seq_file * x, struct dentry * y) { return 0; };
40838 static struct super_operations sops __attribute__ ((unused)) = {
40839 .show_options = show_options,
40840 };
40841
40842 int
40843 main (void)
40844 {
40845
40846
40847 ;
40848 return 0;
40849 }
40850
40851 _ACEOF
40852
40853
40854
40855 cat - <<_ACEOF >conftest.h
40856
40857 _ACEOF
40858
40859
40860 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
40861 echo "obj-m := conftest.o" >build/Makefile
40862 modpost_flag=''
40863 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
40864 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
40865 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40866 (eval $ac_try) 2>&5
40867 ac_status=$?
40868 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
40869 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
40870 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40871 (eval $ac_try) 2>&5
40872 ac_status=$?
40873 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
40874 (exit $ac_status); }; }; then
40875
40876 { $as_echo "$as_me:$LINENO: result: yes" >&5
40877 $as_echo "yes" >&6; }
40878
40879 cat >>confdefs.h <<\_ACEOF
40880 #define HAVE_SHOW_OPTIONS_WITH_DENTRY 1
40881 _ACEOF
40882
40883
40884 else
40885 $as_echo "$as_me: failed program was:" >&5
40886 sed 's/^/| /' conftest.$ac_ext >&5
40887
40888 { $as_echo "$as_me:$LINENO: result: no" >&5
40889 $as_echo "no" >&6; }
40890
40891
40892
40893 fi
40894
40895 rm -Rf build
40896
40897
40898
40899
40900 { $as_echo "$as_me:$LINENO: checking whether file_inode() is available" >&5
40901 $as_echo_n "checking whether file_inode() is available... " >&6; }
40902
40903
40904 cat confdefs.h - <<_ACEOF >conftest.c
40905 /* confdefs.h. */
40906 _ACEOF
40907 cat confdefs.h >>conftest.$ac_ext
40908 cat >>conftest.$ac_ext <<_ACEOF
40909 /* end confdefs.h. */
40910
40911
40912 #include <linux/fs.h>
40913
40914 int
40915 main (void)
40916 {
40917
40918 struct file *f = NULL;
40919 file_inode(f);
40920
40921 ;
40922 return 0;
40923 }
40924
40925 _ACEOF
40926
40927
40928
40929 cat - <<_ACEOF >conftest.h
40930
40931 _ACEOF
40932
40933
40934 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
40935 echo "obj-m := conftest.o" >build/Makefile
40936 modpost_flag=''
40937 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
40938 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
40939 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40940 (eval $ac_try) 2>&5
40941 ac_status=$?
40942 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
40943 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
40944 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40945 (eval $ac_try) 2>&5
40946 ac_status=$?
40947 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
40948 (exit $ac_status); }; }; then
40949
40950 { $as_echo "$as_me:$LINENO: result: yes" >&5
40951 $as_echo "yes" >&6; }
40952
40953 cat >>confdefs.h <<\_ACEOF
40954 #define HAVE_FILE_INODE 1
40955 _ACEOF
40956
40957
40958 else
40959 $as_echo "$as_me: failed program was:" >&5
40960 sed 's/^/| /' conftest.$ac_ext >&5
40961
40962 { $as_echo "$as_me:$LINENO: result: no" >&5
40963 $as_echo "no" >&6; }
40964
40965
40966
40967 fi
40968
40969 rm -Rf build
40970
40971
40972
40973
40974 { $as_echo "$as_me:$LINENO: checking whether file_dentry() is available" >&5
40975 $as_echo_n "checking whether file_dentry() is available... " >&6; }
40976
40977
40978 cat confdefs.h - <<_ACEOF >conftest.c
40979 /* confdefs.h. */
40980 _ACEOF
40981 cat confdefs.h >>conftest.$ac_ext
40982 cat >>conftest.$ac_ext <<_ACEOF
40983 /* end confdefs.h. */
40984
40985
40986 #include <linux/fs.h>
40987
40988 int
40989 main (void)
40990 {
40991
40992 struct file *f = NULL;
40993 file_dentry(f);
40994
40995 ;
40996 return 0;
40997 }
40998
40999 _ACEOF
41000
41001
41002
41003 cat - <<_ACEOF >conftest.h
41004
41005 _ACEOF
41006
41007
41008 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
41009 echo "obj-m := conftest.o" >build/Makefile
41010 modpost_flag=''
41011 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
41012 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
41013 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41014 (eval $ac_try) 2>&5
41015 ac_status=$?
41016 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
41017 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
41018 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41019 (eval $ac_try) 2>&5
41020 ac_status=$?
41021 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
41022 (exit $ac_status); }; }; then
41023
41024 { $as_echo "$as_me:$LINENO: result: yes" >&5
41025 $as_echo "yes" >&6; }
41026
41027 cat >>confdefs.h <<\_ACEOF
41028 #define HAVE_FILE_DENTRY 1
41029 _ACEOF
41030
41031
41032 else
41033 $as_echo "$as_me: failed program was:" >&5
41034 sed 's/^/| /' conftest.$ac_ext >&5
41035
41036 { $as_echo "$as_me:$LINENO: result: no" >&5
41037 $as_echo "no" >&6; }
41038
41039
41040
41041 fi
41042
41043 rm -Rf build
41044
41045
41046
41047
41048 { $as_echo "$as_me:$LINENO: checking whether fops->fsync() wants" >&5
41049 $as_echo_n "checking whether fops->fsync() wants... " >&6; }
41050
41051
41052
41053 cat confdefs.h - <<_ACEOF >conftest.c
41054 /* confdefs.h. */
41055 _ACEOF
41056 cat confdefs.h >>conftest.$ac_ext
41057 cat >>conftest.$ac_ext <<_ACEOF
41058 /* end confdefs.h. */
41059
41060
41061 #include <linux/fs.h>
41062
41063 int test_fsync(struct file *f, struct dentry *dentry, int x)
41064 { return 0; }
41065
41066 static const struct file_operations
41067 fops __attribute__ ((unused)) = {
41068 .fsync = test_fsync,
41069 };
41070
41071 int
41072 main (void)
41073 {
41074
41075
41076 ;
41077 return 0;
41078 }
41079
41080 _ACEOF
41081
41082
41083
41084 cat - <<_ACEOF >conftest.h
41085
41086 _ACEOF
41087
41088
41089 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
41090 echo "obj-m := conftest.o" >build/Makefile
41091 modpost_flag=''
41092 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
41093 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
41094 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41095 (eval $ac_try) 2>&5
41096 ac_status=$?
41097 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
41098 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
41099 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41100 (eval $ac_try) 2>&5
41101 ac_status=$?
41102 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
41103 (exit $ac_status); }; }; then
41104
41105 { $as_echo "$as_me:$LINENO: result: dentry" >&5
41106 $as_echo "dentry" >&6; }
41107
41108 cat >>confdefs.h <<\_ACEOF
41109 #define HAVE_FSYNC_WITH_DENTRY 1
41110 _ACEOF
41111
41112
41113 else
41114 $as_echo "$as_me: failed program was:" >&5
41115 sed 's/^/| /' conftest.$ac_ext >&5
41116
41117
41118
41119
41120 fi
41121
41122 rm -Rf build
41123
41124
41125
41126
41127
41128
41129 cat confdefs.h - <<_ACEOF >conftest.c
41130 /* confdefs.h. */
41131 _ACEOF
41132 cat confdefs.h >>conftest.$ac_ext
41133 cat >>conftest.$ac_ext <<_ACEOF
41134 /* end confdefs.h. */
41135
41136
41137 #include <linux/fs.h>
41138
41139 int test_fsync(struct file *f, int x) { return 0; }
41140
41141 static const struct file_operations
41142 fops __attribute__ ((unused)) = {
41143 .fsync = test_fsync,
41144 };
41145
41146 int
41147 main (void)
41148 {
41149
41150
41151 ;
41152 return 0;
41153 }
41154
41155 _ACEOF
41156
41157
41158
41159 cat - <<_ACEOF >conftest.h
41160
41161 _ACEOF
41162
41163
41164 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
41165 echo "obj-m := conftest.o" >build/Makefile
41166 modpost_flag=''
41167 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
41168 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
41169 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41170 (eval $ac_try) 2>&5
41171 ac_status=$?
41172 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
41173 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
41174 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41175 (eval $ac_try) 2>&5
41176 ac_status=$?
41177 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
41178 (exit $ac_status); }; }; then
41179
41180 { $as_echo "$as_me:$LINENO: result: no dentry" >&5
41181 $as_echo "no dentry" >&6; }
41182
41183 cat >>confdefs.h <<\_ACEOF
41184 #define HAVE_FSYNC_WITHOUT_DENTRY 1
41185 _ACEOF
41186
41187
41188 else
41189 $as_echo "$as_me: failed program was:" >&5
41190 sed 's/^/| /' conftest.$ac_ext >&5
41191
41192
41193
41194
41195 fi
41196
41197 rm -Rf build
41198
41199
41200
41201
41202
41203
41204 cat confdefs.h - <<_ACEOF >conftest.c
41205 /* confdefs.h. */
41206 _ACEOF
41207 cat confdefs.h >>conftest.$ac_ext
41208 cat >>conftest.$ac_ext <<_ACEOF
41209 /* end confdefs.h. */
41210
41211
41212 #include <linux/fs.h>
41213
41214 int test_fsync(struct file *f, loff_t a, loff_t b, int c)
41215 { return 0; }
41216
41217 static const struct file_operations
41218 fops __attribute__ ((unused)) = {
41219 .fsync = test_fsync,
41220 };
41221
41222 int
41223 main (void)
41224 {
41225
41226
41227 ;
41228 return 0;
41229 }
41230
41231 _ACEOF
41232
41233
41234
41235 cat - <<_ACEOF >conftest.h
41236
41237 _ACEOF
41238
41239
41240 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
41241 echo "obj-m := conftest.o" >build/Makefile
41242 modpost_flag=''
41243 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
41244 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
41245 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41246 (eval $ac_try) 2>&5
41247 ac_status=$?
41248 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
41249 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
41250 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41251 (eval $ac_try) 2>&5
41252 ac_status=$?
41253 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
41254 (exit $ac_status); }; }; then
41255
41256 { $as_echo "$as_me:$LINENO: result: range" >&5
41257 $as_echo "range" >&6; }
41258
41259 cat >>confdefs.h <<\_ACEOF
41260 #define HAVE_FSYNC_RANGE 1
41261 _ACEOF
41262
41263
41264 else
41265 $as_echo "$as_me: failed program was:" >&5
41266 sed 's/^/| /' conftest.$ac_ext >&5
41267
41268
41269
41270
41271 fi
41272
41273 rm -Rf build
41274
41275
41276
41277
41278
41279 { $as_echo "$as_me:$LINENO: checking whether sops->evict_inode() exists" >&5
41280 $as_echo_n "checking whether sops->evict_inode() exists... " >&6; }
41281
41282
41283 cat confdefs.h - <<_ACEOF >conftest.c
41284 /* confdefs.h. */
41285 _ACEOF
41286 cat confdefs.h >>conftest.$ac_ext
41287 cat >>conftest.$ac_ext <<_ACEOF
41288 /* end confdefs.h. */
41289
41290
41291 #include <linux/fs.h>
41292 void evict_inode (struct inode * t) { return; }
41293 static struct super_operations sops __attribute__ ((unused)) = {
41294 .evict_inode = evict_inode,
41295 };
41296
41297 int
41298 main (void)
41299 {
41300
41301
41302 ;
41303 return 0;
41304 }
41305
41306 _ACEOF
41307
41308
41309
41310 cat - <<_ACEOF >conftest.h
41311
41312 _ACEOF
41313
41314
41315 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
41316 echo "obj-m := conftest.o" >build/Makefile
41317 modpost_flag=''
41318 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
41319 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
41320 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41321 (eval $ac_try) 2>&5
41322 ac_status=$?
41323 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
41324 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
41325 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41326 (eval $ac_try) 2>&5
41327 ac_status=$?
41328 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
41329 (exit $ac_status); }; }; then
41330
41331 { $as_echo "$as_me:$LINENO: result: yes" >&5
41332 $as_echo "yes" >&6; }
41333
41334 cat >>confdefs.h <<\_ACEOF
41335 #define HAVE_EVICT_INODE 1
41336 _ACEOF
41337
41338
41339 else
41340 $as_echo "$as_me: failed program was:" >&5
41341 sed 's/^/| /' conftest.$ac_ext >&5
41342
41343 { $as_echo "$as_me:$LINENO: result: no" >&5
41344 $as_echo "no" >&6; }
41345
41346
41347
41348 fi
41349
41350 rm -Rf build
41351
41352
41353
41354
41355 { $as_echo "$as_me:$LINENO: checking whether sops->dirty_inode() wants flags" >&5
41356 $as_echo_n "checking whether sops->dirty_inode() wants flags... " >&6; }
41357
41358
41359 cat confdefs.h - <<_ACEOF >conftest.c
41360 /* confdefs.h. */
41361 _ACEOF
41362 cat confdefs.h >>conftest.$ac_ext
41363 cat >>conftest.$ac_ext <<_ACEOF
41364 /* end confdefs.h. */
41365
41366
41367 #include <linux/fs.h>
41368
41369 void dirty_inode(struct inode *a, int b) { return; }
41370
41371 static const struct super_operations
41372 sops __attribute__ ((unused)) = {
41373 .dirty_inode = dirty_inode,
41374 };
41375
41376 int
41377 main (void)
41378 {
41379
41380
41381 ;
41382 return 0;
41383 }
41384
41385 _ACEOF
41386
41387
41388
41389 cat - <<_ACEOF >conftest.h
41390
41391 _ACEOF
41392
41393
41394 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
41395 echo "obj-m := conftest.o" >build/Makefile
41396 modpost_flag=''
41397 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
41398 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
41399 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41400 (eval $ac_try) 2>&5
41401 ac_status=$?
41402 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
41403 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
41404 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41405 (eval $ac_try) 2>&5
41406 ac_status=$?
41407 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
41408 (exit $ac_status); }; }; then
41409
41410 { $as_echo "$as_me:$LINENO: result: yes" >&5
41411 $as_echo "yes" >&6; }
41412
41413 cat >>confdefs.h <<\_ACEOF
41414 #define HAVE_DIRTY_INODE_WITH_FLAGS 1
41415 _ACEOF
41416
41417
41418 else
41419 $as_echo "$as_me: failed program was:" >&5
41420 sed 's/^/| /' conftest.$ac_ext >&5
41421
41422 { $as_echo "$as_me:$LINENO: result: no" >&5
41423 $as_echo "no" >&6; }
41424
41425
41426
41427 fi
41428
41429 rm -Rf build
41430
41431
41432
41433
41434 { $as_echo "$as_me:$LINENO: checking whether sops->nr_cached_objects() exists" >&5
41435 $as_echo_n "checking whether sops->nr_cached_objects() exists... " >&6; }
41436
41437
41438 cat confdefs.h - <<_ACEOF >conftest.c
41439 /* confdefs.h. */
41440 _ACEOF
41441 cat confdefs.h >>conftest.$ac_ext
41442 cat >>conftest.$ac_ext <<_ACEOF
41443 /* end confdefs.h. */
41444
41445
41446 #include <linux/fs.h>
41447
41448 int nr_cached_objects(struct super_block *sb) { return 0; }
41449
41450 static const struct super_operations
41451 sops __attribute__ ((unused)) = {
41452 .nr_cached_objects = nr_cached_objects,
41453 };
41454
41455 int
41456 main (void)
41457 {
41458
41459
41460 ;
41461 return 0;
41462 }
41463
41464 _ACEOF
41465
41466
41467
41468 cat - <<_ACEOF >conftest.h
41469
41470 _ACEOF
41471
41472
41473 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
41474 echo "obj-m := conftest.o" >build/Makefile
41475 modpost_flag=''
41476 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
41477 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
41478 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41479 (eval $ac_try) 2>&5
41480 ac_status=$?
41481 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
41482 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
41483 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41484 (eval $ac_try) 2>&5
41485 ac_status=$?
41486 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
41487 (exit $ac_status); }; }; then
41488
41489 { $as_echo "$as_me:$LINENO: result: yes" >&5
41490 $as_echo "yes" >&6; }
41491
41492 cat >>confdefs.h <<\_ACEOF
41493 #define HAVE_NR_CACHED_OBJECTS 1
41494 _ACEOF
41495
41496
41497 else
41498 $as_echo "$as_me: failed program was:" >&5
41499 sed 's/^/| /' conftest.$ac_ext >&5
41500
41501 { $as_echo "$as_me:$LINENO: result: no" >&5
41502 $as_echo "no" >&6; }
41503
41504
41505
41506 fi
41507
41508 rm -Rf build
41509
41510
41511
41512
41513 { $as_echo "$as_me:$LINENO: checking whether sops->free_cached_objects() exists" >&5
41514 $as_echo_n "checking whether sops->free_cached_objects() exists... " >&6; }
41515
41516
41517 cat confdefs.h - <<_ACEOF >conftest.c
41518 /* confdefs.h. */
41519 _ACEOF
41520 cat confdefs.h >>conftest.$ac_ext
41521 cat >>conftest.$ac_ext <<_ACEOF
41522 /* end confdefs.h. */
41523
41524
41525 #include <linux/fs.h>
41526
41527 void free_cached_objects(struct super_block *sb, int x)
41528 { return; }
41529
41530 static const struct super_operations
41531 sops __attribute__ ((unused)) = {
41532 .free_cached_objects = free_cached_objects,
41533 };
41534
41535 int
41536 main (void)
41537 {
41538
41539
41540 ;
41541 return 0;
41542 }
41543
41544 _ACEOF
41545
41546
41547
41548 cat - <<_ACEOF >conftest.h
41549
41550 _ACEOF
41551
41552
41553 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
41554 echo "obj-m := conftest.o" >build/Makefile
41555 modpost_flag=''
41556 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
41557 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
41558 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41559 (eval $ac_try) 2>&5
41560 ac_status=$?
41561 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
41562 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
41563 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41564 (eval $ac_try) 2>&5
41565 ac_status=$?
41566 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
41567 (exit $ac_status); }; }; then
41568
41569 { $as_echo "$as_me:$LINENO: result: yes" >&5
41570 $as_echo "yes" >&6; }
41571
41572 cat >>confdefs.h <<\_ACEOF
41573 #define HAVE_FREE_CACHED_OBJECTS 1
41574 _ACEOF
41575
41576
41577 else
41578 $as_echo "$as_me: failed program was:" >&5
41579 sed 's/^/| /' conftest.$ac_ext >&5
41580
41581 { $as_echo "$as_me:$LINENO: result: no" >&5
41582 $as_echo "no" >&6; }
41583
41584
41585
41586 fi
41587
41588 rm -Rf build
41589
41590
41591
41592
41593
41594 { $as_echo "$as_me:$LINENO: checking whether fops->fallocate() exists" >&5
41595 $as_echo_n "checking whether fops->fallocate() exists... " >&6; }
41596
41597
41598 cat confdefs.h - <<_ACEOF >conftest.c
41599 /* confdefs.h. */
41600 _ACEOF
41601 cat confdefs.h >>conftest.$ac_ext
41602 cat >>conftest.$ac_ext <<_ACEOF
41603 /* end confdefs.h. */
41604
41605
41606 #include <linux/fs.h>
41607
41608 long test_fallocate(struct file *file, int mode,
41609 loff_t offset, loff_t len) { return 0; }
41610
41611 static const struct file_operations
41612 fops __attribute__ ((unused)) = {
41613 .fallocate = test_fallocate,
41614 };
41615
41616 int
41617 main (void)
41618 {
41619
41620
41621 ;
41622 return 0;
41623 }
41624
41625 _ACEOF
41626
41627
41628
41629 cat - <<_ACEOF >conftest.h
41630
41631 _ACEOF
41632
41633
41634 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
41635 echo "obj-m := conftest.o" >build/Makefile
41636 modpost_flag=''
41637 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
41638 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
41639 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41640 (eval $ac_try) 2>&5
41641 ac_status=$?
41642 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
41643 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
41644 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41645 (eval $ac_try) 2>&5
41646 ac_status=$?
41647 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
41648 (exit $ac_status); }; }; then
41649
41650 { $as_echo "$as_me:$LINENO: result: yes" >&5
41651 $as_echo "yes" >&6; }
41652
41653 cat >>confdefs.h <<\_ACEOF
41654 #define HAVE_FILE_FALLOCATE 1
41655 _ACEOF
41656
41657
41658 else
41659 $as_echo "$as_me: failed program was:" >&5
41660 sed 's/^/| /' conftest.$ac_ext >&5
41661
41662 { $as_echo "$as_me:$LINENO: result: no" >&5
41663 $as_echo "no" >&6; }
41664
41665
41666
41667 fi
41668
41669 rm -Rf build
41670
41671
41672
41673
41674 { $as_echo "$as_me:$LINENO: checking whether iops->fallocate() exists" >&5
41675 $as_echo_n "checking whether iops->fallocate() exists... " >&6; }
41676
41677
41678 cat confdefs.h - <<_ACEOF >conftest.c
41679 /* confdefs.h. */
41680 _ACEOF
41681 cat confdefs.h >>conftest.$ac_ext
41682 cat >>conftest.$ac_ext <<_ACEOF
41683 /* end confdefs.h. */
41684
41685
41686 #include <linux/fs.h>
41687
41688 long test_fallocate(struct inode *inode, int mode,
41689 loff_t offset, loff_t len) { return 0; }
41690
41691 static const struct inode_operations
41692 fops __attribute__ ((unused)) = {
41693 .fallocate = test_fallocate,
41694 };
41695
41696 int
41697 main (void)
41698 {
41699
41700
41701 ;
41702 return 0;
41703 }
41704
41705 _ACEOF
41706
41707
41708
41709 cat - <<_ACEOF >conftest.h
41710
41711 _ACEOF
41712
41713
41714 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
41715 echo "obj-m := conftest.o" >build/Makefile
41716 modpost_flag=''
41717 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
41718 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
41719 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41720 (eval $ac_try) 2>&5
41721 ac_status=$?
41722 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
41723 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
41724 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41725 (eval $ac_try) 2>&5
41726 ac_status=$?
41727 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
41728 (exit $ac_status); }; }; then
41729
41730 { $as_echo "$as_me:$LINENO: result: yes" >&5
41731 $as_echo "yes" >&6; }
41732
41733 cat >>confdefs.h <<\_ACEOF
41734 #define HAVE_INODE_FALLOCATE 1
41735 _ACEOF
41736
41737
41738 else
41739 $as_echo "$as_me: failed program was:" >&5
41740 sed 's/^/| /' conftest.$ac_ext >&5
41741
41742 { $as_echo "$as_me:$LINENO: result: no" >&5
41743 $as_echo "no" >&6; }
41744
41745
41746
41747 fi
41748
41749 rm -Rf build
41750
41751
41752
41753
41754
41755 { $as_echo "$as_me:$LINENO: checking whether fops->aio_fsync() exists" >&5
41756 $as_echo_n "checking whether fops->aio_fsync() exists... " >&6; }
41757
41758
41759 cat confdefs.h - <<_ACEOF >conftest.c
41760 /* confdefs.h. */
41761 _ACEOF
41762 cat confdefs.h >>conftest.$ac_ext
41763 cat >>conftest.$ac_ext <<_ACEOF
41764 /* end confdefs.h. */
41765
41766
41767 #include <linux/fs.h>
41768
41769 static const struct file_operations
41770 fops __attribute__ ((unused)) = {
41771 .aio_fsync = NULL,
41772 };
41773
41774 int
41775 main (void)
41776 {
41777
41778
41779 ;
41780 return 0;
41781 }
41782
41783 _ACEOF
41784
41785
41786
41787 cat - <<_ACEOF >conftest.h
41788
41789 _ACEOF
41790
41791
41792 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
41793 echo "obj-m := conftest.o" >build/Makefile
41794 modpost_flag=''
41795 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
41796 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
41797 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41798 (eval $ac_try) 2>&5
41799 ac_status=$?
41800 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
41801 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
41802 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41803 (eval $ac_try) 2>&5
41804 ac_status=$?
41805 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
41806 (exit $ac_status); }; }; then
41807
41808 { $as_echo "$as_me:$LINENO: result: yes" >&5
41809 $as_echo "yes" >&6; }
41810
41811 cat >>confdefs.h <<\_ACEOF
41812 #define HAVE_FILE_AIO_FSYNC 1
41813 _ACEOF
41814
41815
41816 else
41817 $as_echo "$as_me: failed program was:" >&5
41818 sed 's/^/| /' conftest.$ac_ext >&5
41819
41820 { $as_echo "$as_me:$LINENO: result: no" >&5
41821 $as_echo "no" >&6; }
41822
41823
41824
41825 fi
41826
41827 rm -Rf build
41828
41829
41830
41831
41832 { $as_echo "$as_me:$LINENO: checking whether iops->create()/mkdir()/mknod() take umode_t" >&5
41833 $as_echo_n "checking whether iops->create()/mkdir()/mknod() take umode_t... " >&6; }
41834
41835
41836 cat confdefs.h - <<_ACEOF >conftest.c
41837 /* confdefs.h. */
41838 _ACEOF
41839 cat confdefs.h >>conftest.$ac_ext
41840 cat >>conftest.$ac_ext <<_ACEOF
41841 /* end confdefs.h. */
41842
41843
41844 #include <linux/fs.h>
41845
41846 int mkdir(struct inode *inode, struct dentry *dentry,
41847 umode_t umode) { return 0; }
41848
41849 static const struct inode_operations
41850 iops __attribute__ ((unused)) = {
41851 .mkdir = mkdir,
41852 };
41853
41854 int
41855 main (void)
41856 {
41857
41858
41859 ;
41860 return 0;
41861 }
41862
41863 _ACEOF
41864
41865
41866
41867 cat - <<_ACEOF >conftest.h
41868
41869 _ACEOF
41870
41871
41872 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
41873 echo "obj-m := conftest.o" >build/Makefile
41874 modpost_flag=''
41875 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
41876 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
41877 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41878 (eval $ac_try) 2>&5
41879 ac_status=$?
41880 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
41881 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
41882 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41883 (eval $ac_try) 2>&5
41884 ac_status=$?
41885 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
41886 (exit $ac_status); }; }; then
41887
41888 { $as_echo "$as_me:$LINENO: result: yes" >&5
41889 $as_echo "yes" >&6; }
41890
41891 cat >>confdefs.h <<\_ACEOF
41892 #define HAVE_MKDIR_UMODE_T 1
41893 _ACEOF
41894
41895
41896 else
41897 $as_echo "$as_me: failed program was:" >&5
41898 sed 's/^/| /' conftest.$ac_ext >&5
41899
41900 { $as_echo "$as_me:$LINENO: result: no" >&5
41901 $as_echo "no" >&6; }
41902
41903
41904
41905 fi
41906
41907 rm -Rf build
41908
41909
41910
41911
41912 { $as_echo "$as_me:$LINENO: checking whether iops->lookup() passes nameidata" >&5
41913 $as_echo_n "checking whether iops->lookup() passes nameidata... " >&6; }
41914
41915
41916 cat confdefs.h - <<_ACEOF >conftest.c
41917 /* confdefs.h. */
41918 _ACEOF
41919 cat confdefs.h >>conftest.$ac_ext
41920 cat >>conftest.$ac_ext <<_ACEOF
41921 /* end confdefs.h. */
41922
41923
41924 #include <linux/fs.h>
41925 #include <linux/sched.h>
41926
41927 struct dentry *inode_lookup(struct inode *inode,
41928 struct dentry *dentry, struct nameidata *nidata)
41929 { return NULL; }
41930
41931 static const struct inode_operations iops
41932 __attribute__ ((unused)) = {
41933 .lookup = inode_lookup,
41934 };
41935
41936 int
41937 main (void)
41938 {
41939
41940
41941 ;
41942 return 0;
41943 }
41944
41945 _ACEOF
41946
41947
41948
41949 cat - <<_ACEOF >conftest.h
41950
41951 _ACEOF
41952
41953
41954 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
41955 echo "obj-m := conftest.o" >build/Makefile
41956 modpost_flag=''
41957 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
41958 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
41959 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41960 (eval $ac_try) 2>&5
41961 ac_status=$?
41962 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
41963 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
41964 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41965 (eval $ac_try) 2>&5
41966 ac_status=$?
41967 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
41968 (exit $ac_status); }; }; then
41969
41970 { $as_echo "$as_me:$LINENO: result: yes" >&5
41971 $as_echo "yes" >&6; }
41972
41973 cat >>confdefs.h <<\_ACEOF
41974 #define HAVE_LOOKUP_NAMEIDATA 1
41975 _ACEOF
41976
41977
41978 else
41979 $as_echo "$as_me: failed program was:" >&5
41980 sed 's/^/| /' conftest.$ac_ext >&5
41981
41982 { $as_echo "$as_me:$LINENO: result: no" >&5
41983 $as_echo "no" >&6; }
41984
41985
41986
41987 fi
41988
41989 rm -Rf build
41990
41991
41992
41993
41994 { $as_echo "$as_me:$LINENO: checking whether iops->create() passes nameidata" >&5
41995 $as_echo_n "checking whether iops->create() passes nameidata... " >&6; }
41996
41997
41998 cat confdefs.h - <<_ACEOF >conftest.c
41999 /* confdefs.h. */
42000 _ACEOF
42001 cat confdefs.h >>conftest.$ac_ext
42002 cat >>conftest.$ac_ext <<_ACEOF
42003 /* end confdefs.h. */
42004
42005
42006 #include <linux/fs.h>
42007 #include <linux/sched.h>
42008
42009 #ifdef HAVE_MKDIR_UMODE_T
42010 int inode_create(struct inode *inode ,struct dentry *dentry,
42011 umode_t umode, struct nameidata *nidata) { return 0; }
42012 #else
42013 int inode_create(struct inode *inode,struct dentry *dentry,
42014 int umode, struct nameidata * nidata) { return 0; }
42015 #endif
42016
42017 static const struct inode_operations
42018 iops __attribute__ ((unused)) = {
42019 .create = inode_create,
42020 };
42021
42022 int
42023 main (void)
42024 {
42025
42026
42027 ;
42028 return 0;
42029 }
42030
42031 _ACEOF
42032
42033
42034
42035 cat - <<_ACEOF >conftest.h
42036
42037 _ACEOF
42038
42039
42040 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
42041 echo "obj-m := conftest.o" >build/Makefile
42042 modpost_flag=''
42043 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
42044 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
42045 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42046 (eval $ac_try) 2>&5
42047 ac_status=$?
42048 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
42049 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
42050 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42051 (eval $ac_try) 2>&5
42052 ac_status=$?
42053 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
42054 (exit $ac_status); }; }; then
42055
42056 { $as_echo "$as_me:$LINENO: result: yes" >&5
42057 $as_echo "yes" >&6; }
42058
42059 cat >>confdefs.h <<\_ACEOF
42060 #define HAVE_CREATE_NAMEIDATA 1
42061 _ACEOF
42062
42063
42064 else
42065 $as_echo "$as_me: failed program was:" >&5
42066 sed 's/^/| /' conftest.$ac_ext >&5
42067
42068 { $as_echo "$as_me:$LINENO: result: no" >&5
42069 $as_echo "no" >&6; }
42070
42071
42072
42073 fi
42074
42075 rm -Rf build
42076
42077
42078
42079
42080 { $as_echo "$as_me:$LINENO: checking whether iops->get_link() passes delayed" >&5
42081 $as_echo_n "checking whether iops->get_link() passes delayed... " >&6; }
42082
42083
42084 cat confdefs.h - <<_ACEOF >conftest.c
42085 /* confdefs.h. */
42086 _ACEOF
42087 cat confdefs.h >>conftest.$ac_ext
42088 cat >>conftest.$ac_ext <<_ACEOF
42089 /* end confdefs.h. */
42090
42091
42092 #include <linux/fs.h>
42093 const char *get_link(struct dentry *de, struct inode *ip,
42094 struct delayed_call *done) { return "symlink"; }
42095 static struct inode_operations
42096 iops __attribute__ ((unused)) = {
42097 .get_link = get_link,
42098 };
42099
42100 int
42101 main (void)
42102 {
42103
42104
42105 ;
42106 return 0;
42107 }
42108
42109 _ACEOF
42110
42111
42112
42113 cat - <<_ACEOF >conftest.h
42114
42115 _ACEOF
42116
42117
42118 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
42119 echo "obj-m := conftest.o" >build/Makefile
42120 modpost_flag=''
42121 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
42122 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
42123 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42124 (eval $ac_try) 2>&5
42125 ac_status=$?
42126 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
42127 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
42128 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42129 (eval $ac_try) 2>&5
42130 ac_status=$?
42131 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
42132 (exit $ac_status); }; }; then
42133
42134 { $as_echo "$as_me:$LINENO: result: yes" >&5
42135 $as_echo "yes" >&6; }
42136
42137 cat >>confdefs.h <<\_ACEOF
42138 #define HAVE_GET_LINK_DELAYED 1
42139 _ACEOF
42140
42141
42142 else
42143 $as_echo "$as_me: failed program was:" >&5
42144 sed 's/^/| /' conftest.$ac_ext >&5
42145
42146 { $as_echo "$as_me:$LINENO: result: no" >&5
42147 $as_echo "no" >&6; }
42148 { $as_echo "$as_me:$LINENO: checking whether iops->get_link() passes cookie" >&5
42149 $as_echo_n "checking whether iops->get_link() passes cookie... " >&6; }
42150
42151
42152 cat confdefs.h - <<_ACEOF >conftest.c
42153 /* confdefs.h. */
42154 _ACEOF
42155 cat confdefs.h >>conftest.$ac_ext
42156 cat >>conftest.$ac_ext <<_ACEOF
42157 /* end confdefs.h. */
42158
42159
42160 #include <linux/fs.h>
42161 const char *get_link(struct dentry *de, struct
42162 inode *ip, void **cookie) { return "symlink"; }
42163 static struct inode_operations
42164 iops __attribute__ ((unused)) = {
42165 .get_link = get_link,
42166 };
42167
42168 int
42169 main (void)
42170 {
42171
42172
42173 ;
42174 return 0;
42175 }
42176
42177 _ACEOF
42178
42179
42180
42181 cat - <<_ACEOF >conftest.h
42182
42183 _ACEOF
42184
42185
42186 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
42187 echo "obj-m := conftest.o" >build/Makefile
42188 modpost_flag=''
42189 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
42190 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
42191 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42192 (eval $ac_try) 2>&5
42193 ac_status=$?
42194 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
42195 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
42196 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42197 (eval $ac_try) 2>&5
42198 ac_status=$?
42199 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
42200 (exit $ac_status); }; }; then
42201
42202 { $as_echo "$as_me:$LINENO: result: yes" >&5
42203 $as_echo "yes" >&6; }
42204
42205 cat >>confdefs.h <<\_ACEOF
42206 #define HAVE_GET_LINK_COOKIE 1
42207 _ACEOF
42208
42209
42210 else
42211 $as_echo "$as_me: failed program was:" >&5
42212 sed 's/^/| /' conftest.$ac_ext >&5
42213
42214 { $as_echo "$as_me:$LINENO: result: no" >&5
42215 $as_echo "no" >&6; }
42216
42217 { $as_echo "$as_me:$LINENO: checking whether iops->follow_link() passes cookie" >&5
42218 $as_echo_n "checking whether iops->follow_link() passes cookie... " >&6; }
42219
42220
42221 cat confdefs.h - <<_ACEOF >conftest.c
42222 /* confdefs.h. */
42223 _ACEOF
42224 cat confdefs.h >>conftest.$ac_ext
42225 cat >>conftest.$ac_ext <<_ACEOF
42226 /* end confdefs.h. */
42227
42228
42229 #include <linux/fs.h>
42230 const char *follow_link(struct dentry *de,
42231 void **cookie) { return "symlink"; }
42232 static struct inode_operations
42233 iops __attribute__ ((unused)) = {
42234 .follow_link = follow_link,
42235 };
42236
42237 int
42238 main (void)
42239 {
42240
42241
42242 ;
42243 return 0;
42244 }
42245
42246 _ACEOF
42247
42248
42249
42250 cat - <<_ACEOF >conftest.h
42251
42252 _ACEOF
42253
42254
42255 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
42256 echo "obj-m := conftest.o" >build/Makefile
42257 modpost_flag=''
42258 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
42259 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
42260 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42261 (eval $ac_try) 2>&5
42262 ac_status=$?
42263 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
42264 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
42265 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42266 (eval $ac_try) 2>&5
42267 ac_status=$?
42268 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
42269 (exit $ac_status); }; }; then
42270
42271 { $as_echo "$as_me:$LINENO: result: yes" >&5
42272 $as_echo "yes" >&6; }
42273
42274 cat >>confdefs.h <<\_ACEOF
42275 #define HAVE_FOLLOW_LINK_COOKIE 1
42276 _ACEOF
42277
42278
42279 else
42280 $as_echo "$as_me: failed program was:" >&5
42281 sed 's/^/| /' conftest.$ac_ext >&5
42282
42283 { $as_echo "$as_me:$LINENO: result: no" >&5
42284 $as_echo "no" >&6; }
42285 { $as_echo "$as_me:$LINENO: checking whether iops->follow_link() passes nameidata" >&5
42286 $as_echo_n "checking whether iops->follow_link() passes nameidata... " >&6; }
42287
42288
42289 cat confdefs.h - <<_ACEOF >conftest.c
42290 /* confdefs.h. */
42291 _ACEOF
42292 cat confdefs.h >>conftest.$ac_ext
42293 cat >>conftest.$ac_ext <<_ACEOF
42294 /* end confdefs.h. */
42295
42296
42297 #include <linux/fs.h>
42298 void *follow_link(struct dentry *de, struct
42299 nameidata *nd) { return (void *)NULL; }
42300 static struct inode_operations
42301 iops __attribute__ ((unused)) = {
42302 .follow_link = follow_link,
42303 };
42304
42305 int
42306 main (void)
42307 {
42308
42309
42310 ;
42311 return 0;
42312 }
42313
42314 _ACEOF
42315
42316
42317
42318 cat - <<_ACEOF >conftest.h
42319
42320 _ACEOF
42321
42322
42323 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
42324 echo "obj-m := conftest.o" >build/Makefile
42325 modpost_flag=''
42326 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
42327 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
42328 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42329 (eval $ac_try) 2>&5
42330 ac_status=$?
42331 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
42332 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
42333 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42334 (eval $ac_try) 2>&5
42335 ac_status=$?
42336 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
42337 (exit $ac_status); }; }; then
42338
42339 { $as_echo "$as_me:$LINENO: result: yes" >&5
42340 $as_echo "yes" >&6; }
42341
42342 cat >>confdefs.h <<\_ACEOF
42343 #define HAVE_FOLLOW_LINK_NAMEIDATA 1
42344 _ACEOF
42345
42346
42347 else
42348 $as_echo "$as_me: failed program was:" >&5
42349 sed 's/^/| /' conftest.$ac_ext >&5
42350
42351 { { $as_echo "$as_me:$LINENO: error: no; please file a bug report" >&5
42352 $as_echo "$as_me: error: no; please file a bug report" >&2;}
42353 { (exit 1); exit 1; }; }
42354
42355
42356
42357 fi
42358
42359 rm -Rf build
42360
42361
42362
42363
42364
42365 fi
42366
42367 rm -Rf build
42368
42369
42370
42371
42372
42373
42374 fi
42375
42376 rm -Rf build
42377
42378
42379
42380
42381
42382 fi
42383
42384 rm -Rf build
42385
42386
42387
42388
42389
42390
42391 cat confdefs.h - <<_ACEOF >conftest.c
42392 /* confdefs.h. */
42393 _ACEOF
42394 cat confdefs.h >>conftest.$ac_ext
42395 cat >>conftest.$ac_ext <<_ACEOF
42396 /* end confdefs.h. */
42397
42398
42399 #if !defined(HAVE_GET_LINK_DELAYED)
42400 #error "Expecting get_link() delayed done"
42401 #endif
42402
42403 int
42404 main (void)
42405 {
42406
42407
42408 ;
42409 return 0;
42410 }
42411
42412 _ACEOF
42413
42414
42415
42416 cat - <<_ACEOF >conftest.h
42417
42418 _ACEOF
42419
42420
42421 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
42422 echo "obj-m := conftest.o" >build/Makefile
42423 modpost_flag=''
42424 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
42425 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
42426 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42427 (eval $ac_try) 2>&5
42428 ac_status=$?
42429 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
42430 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
42431 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42432 (eval $ac_try) 2>&5
42433 ac_status=$?
42434 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
42435 (exit $ac_status); }; }; then
42436
42437
42438 cat >>confdefs.h <<\_ACEOF
42439 #define HAVE_PUT_LINK_DELAYED 1
42440 _ACEOF
42441
42442
42443 else
42444 $as_echo "$as_me: failed program was:" >&5
42445 sed 's/^/| /' conftest.$ac_ext >&5
42446
42447 { $as_echo "$as_me:$LINENO: checking whether iops->put_link() passes cookie" >&5
42448 $as_echo_n "checking whether iops->put_link() passes cookie... " >&6; }
42449
42450
42451 cat confdefs.h - <<_ACEOF >conftest.c
42452 /* confdefs.h. */
42453 _ACEOF
42454 cat confdefs.h >>conftest.$ac_ext
42455 cat >>conftest.$ac_ext <<_ACEOF
42456 /* end confdefs.h. */
42457
42458
42459 #include <linux/fs.h>
42460 void put_link(struct inode *ip, void *cookie)
42461 { return; }
42462 static struct inode_operations
42463 iops __attribute__ ((unused)) = {
42464 .put_link = put_link,
42465 };
42466
42467 int
42468 main (void)
42469 {
42470
42471
42472 ;
42473 return 0;
42474 }
42475
42476 _ACEOF
42477
42478
42479
42480 cat - <<_ACEOF >conftest.h
42481
42482 _ACEOF
42483
42484
42485 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
42486 echo "obj-m := conftest.o" >build/Makefile
42487 modpost_flag=''
42488 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
42489 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
42490 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42491 (eval $ac_try) 2>&5
42492 ac_status=$?
42493 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
42494 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
42495 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42496 (eval $ac_try) 2>&5
42497 ac_status=$?
42498 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
42499 (exit $ac_status); }; }; then
42500
42501 { $as_echo "$as_me:$LINENO: result: yes" >&5
42502 $as_echo "yes" >&6; }
42503
42504 cat >>confdefs.h <<\_ACEOF
42505 #define HAVE_PUT_LINK_COOKIE 1
42506 _ACEOF
42507
42508
42509 else
42510 $as_echo "$as_me: failed program was:" >&5
42511 sed 's/^/| /' conftest.$ac_ext >&5
42512
42513 { $as_echo "$as_me:$LINENO: result: no" >&5
42514 $as_echo "no" >&6; }
42515 { $as_echo "$as_me:$LINENO: checking whether iops->put_link() passes nameidata" >&5
42516 $as_echo_n "checking whether iops->put_link() passes nameidata... " >&6; }
42517
42518
42519 cat confdefs.h - <<_ACEOF >conftest.c
42520 /* confdefs.h. */
42521 _ACEOF
42522 cat confdefs.h >>conftest.$ac_ext
42523 cat >>conftest.$ac_ext <<_ACEOF
42524 /* end confdefs.h. */
42525
42526
42527 #include <linux/fs.h>
42528 void put_link(struct dentry *de, struct
42529 nameidata *nd, void *ptr) { return; }
42530 static struct inode_operations
42531 iops __attribute__ ((unused)) = {
42532 .put_link = put_link,
42533 };
42534
42535 int
42536 main (void)
42537 {
42538
42539
42540 ;
42541 return 0;
42542 }
42543
42544 _ACEOF
42545
42546
42547
42548 cat - <<_ACEOF >conftest.h
42549
42550 _ACEOF
42551
42552
42553 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
42554 echo "obj-m := conftest.o" >build/Makefile
42555 modpost_flag=''
42556 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
42557 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
42558 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42559 (eval $ac_try) 2>&5
42560 ac_status=$?
42561 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
42562 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
42563 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42564 (eval $ac_try) 2>&5
42565 ac_status=$?
42566 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
42567 (exit $ac_status); }; }; then
42568
42569 { $as_echo "$as_me:$LINENO: result: yes" >&5
42570 $as_echo "yes" >&6; }
42571
42572 cat >>confdefs.h <<\_ACEOF
42573 #define HAVE_PUT_LINK_NAMEIDATA 1
42574 _ACEOF
42575
42576
42577 else
42578 $as_echo "$as_me: failed program was:" >&5
42579 sed 's/^/| /' conftest.$ac_ext >&5
42580
42581 { { $as_echo "$as_me:$LINENO: error: no; please file a bug report" >&5
42582 $as_echo "$as_me: error: no; please file a bug report" >&2;}
42583 { (exit 1); exit 1; }; }
42584
42585
42586
42587 fi
42588
42589 rm -Rf build
42590
42591
42592
42593
42594
42595 fi
42596
42597 rm -Rf build
42598
42599
42600
42601
42602
42603 fi
42604
42605 rm -Rf build
42606
42607
42608
42609
42610 { $as_echo "$as_me:$LINENO: checking whether i_op->tmpfile() exists" >&5
42611 $as_echo_n "checking whether i_op->tmpfile() exists... " >&6; }
42612
42613
42614 cat confdefs.h - <<_ACEOF >conftest.c
42615 /* confdefs.h. */
42616 _ACEOF
42617 cat confdefs.h >>conftest.$ac_ext
42618 cat >>conftest.$ac_ext <<_ACEOF
42619 /* end confdefs.h. */
42620
42621
42622 #include <linux/fs.h>
42623 int tmpfile(struct inode *inode, struct dentry *dentry,
42624 umode_t mode) { return 0; }
42625 static struct inode_operations
42626 iops __attribute__ ((unused)) = {
42627 .tmpfile = tmpfile,
42628 };
42629
42630 int
42631 main (void)
42632 {
42633
42634
42635 ;
42636 return 0;
42637 }
42638
42639 _ACEOF
42640
42641
42642
42643 cat - <<_ACEOF >conftest.h
42644
42645 _ACEOF
42646
42647
42648 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
42649 echo "obj-m := conftest.o" >build/Makefile
42650 modpost_flag=''
42651 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
42652 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
42653 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42654 (eval $ac_try) 2>&5
42655 ac_status=$?
42656 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
42657 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
42658 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42659 (eval $ac_try) 2>&5
42660 ac_status=$?
42661 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
42662 (exit $ac_status); }; }; then
42663
42664 { $as_echo "$as_me:$LINENO: result: yes" >&5
42665 $as_echo "yes" >&6; }
42666
42667 cat >>confdefs.h <<\_ACEOF
42668 #define HAVE_TMPFILE 1
42669 _ACEOF
42670
42671
42672 else
42673 $as_echo "$as_me: failed program was:" >&5
42674 sed 's/^/| /' conftest.$ac_ext >&5
42675
42676 { $as_echo "$as_me:$LINENO: result: no" >&5
42677 $as_echo "no" >&6; }
42678
42679
42680
42681 fi
42682
42683 rm -Rf build
42684
42685
42686
42687
42688 { $as_echo "$as_me:$LINENO: checking whether iops->truncate_range() exists" >&5
42689 $as_echo_n "checking whether iops->truncate_range() exists... " >&6; }
42690
42691
42692 cat confdefs.h - <<_ACEOF >conftest.c
42693 /* confdefs.h. */
42694 _ACEOF
42695 cat confdefs.h >>conftest.$ac_ext
42696 cat >>conftest.$ac_ext <<_ACEOF
42697 /* end confdefs.h. */
42698
42699
42700 #include <linux/fs.h>
42701 void truncate_range(struct inode *inode, loff_t start,
42702 loff_t end) { return; }
42703 static struct inode_operations iops __attribute__ ((unused)) = {
42704 .truncate_range = truncate_range,
42705 };
42706
42707 int
42708 main (void)
42709 {
42710
42711
42712 ;
42713 return 0;
42714 }
42715
42716 _ACEOF
42717
42718
42719
42720 cat - <<_ACEOF >conftest.h
42721
42722 _ACEOF
42723
42724
42725 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
42726 echo "obj-m := conftest.o" >build/Makefile
42727 modpost_flag=''
42728 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
42729 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
42730 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42731 (eval $ac_try) 2>&5
42732 ac_status=$?
42733 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
42734 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
42735 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42736 (eval $ac_try) 2>&5
42737 ac_status=$?
42738 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
42739 (exit $ac_status); }; }; then
42740
42741 { $as_echo "$as_me:$LINENO: result: yes" >&5
42742 $as_echo "yes" >&6; }
42743
42744 cat >>confdefs.h <<\_ACEOF
42745 #define HAVE_INODE_TRUNCATE_RANGE 1
42746 _ACEOF
42747
42748
42749 else
42750 $as_echo "$as_me: failed program was:" >&5
42751 sed 's/^/| /' conftest.$ac_ext >&5
42752
42753 { $as_echo "$as_me:$LINENO: result: no" >&5
42754 $as_echo "no" >&6; }
42755
42756
42757
42758 fi
42759
42760 rm -Rf build
42761
42762
42763
42764
42765 { $as_echo "$as_me:$LINENO: checking whether dops->d_automount() exists" >&5
42766 $as_echo_n "checking whether dops->d_automount() exists... " >&6; }
42767
42768
42769 cat confdefs.h - <<_ACEOF >conftest.c
42770 /* confdefs.h. */
42771 _ACEOF
42772 cat confdefs.h >>conftest.$ac_ext
42773 cat >>conftest.$ac_ext <<_ACEOF
42774 /* end confdefs.h. */
42775
42776
42777 #include <linux/dcache.h>
42778 struct vfsmount *d_automount(struct path *p) { return NULL; }
42779 struct dentry_operations dops __attribute__ ((unused)) = {
42780 .d_automount = d_automount,
42781 };
42782
42783 int
42784 main (void)
42785 {
42786
42787
42788 ;
42789 return 0;
42790 }
42791
42792 _ACEOF
42793
42794
42795
42796 cat - <<_ACEOF >conftest.h
42797
42798 _ACEOF
42799
42800
42801 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
42802 echo "obj-m := conftest.o" >build/Makefile
42803 modpost_flag=''
42804 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
42805 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
42806 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42807 (eval $ac_try) 2>&5
42808 ac_status=$?
42809 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
42810 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
42811 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42812 (eval $ac_try) 2>&5
42813 ac_status=$?
42814 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
42815 (exit $ac_status); }; }; then
42816
42817 { $as_echo "$as_me:$LINENO: result: yes" >&5
42818 $as_echo "yes" >&6; }
42819
42820 cat >>confdefs.h <<\_ACEOF
42821 #define HAVE_AUTOMOUNT 1
42822 _ACEOF
42823
42824
42825 else
42826 $as_echo "$as_me: failed program was:" >&5
42827 sed 's/^/| /' conftest.$ac_ext >&5
42828
42829 { $as_echo "$as_me:$LINENO: result: no" >&5
42830 $as_echo "no" >&6; }
42831
42832
42833
42834 fi
42835
42836 rm -Rf build
42837
42838
42839
42840
42841 { $as_echo "$as_me:$LINENO: checking whether eops->encode_fh() wants inode" >&5
42842 $as_echo_n "checking whether eops->encode_fh() wants inode... " >&6; }
42843
42844
42845 cat confdefs.h - <<_ACEOF >conftest.c
42846 /* confdefs.h. */
42847 _ACEOF
42848 cat confdefs.h >>conftest.$ac_ext
42849 cat >>conftest.$ac_ext <<_ACEOF
42850 /* end confdefs.h. */
42851
42852
42853 #include <linux/exportfs.h>
42854 int encode_fh(struct inode *inode, __u32 *fh, int *max_len,
42855 struct inode *parent) { return 0; }
42856 static struct export_operations eops __attribute__ ((unused))={
42857 .encode_fh = encode_fh,
42858 };
42859
42860 int
42861 main (void)
42862 {
42863
42864
42865 ;
42866 return 0;
42867 }
42868
42869 _ACEOF
42870
42871
42872
42873 cat - <<_ACEOF >conftest.h
42874
42875 _ACEOF
42876
42877
42878 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
42879 echo "obj-m := conftest.o" >build/Makefile
42880 modpost_flag=''
42881 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
42882 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
42883 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42884 (eval $ac_try) 2>&5
42885 ac_status=$?
42886 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
42887 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
42888 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42889 (eval $ac_try) 2>&5
42890 ac_status=$?
42891 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
42892 (exit $ac_status); }; }; then
42893
42894 { $as_echo "$as_me:$LINENO: result: yes" >&5
42895 $as_echo "yes" >&6; }
42896
42897 cat >>confdefs.h <<\_ACEOF
42898 #define HAVE_ENCODE_FH_WITH_INODE 1
42899 _ACEOF
42900
42901
42902 else
42903 $as_echo "$as_me: failed program was:" >&5
42904 sed 's/^/| /' conftest.$ac_ext >&5
42905
42906 { $as_echo "$as_me:$LINENO: result: no" >&5
42907 $as_echo "no" >&6; }
42908
42909
42910
42911 fi
42912
42913 rm -Rf build
42914
42915
42916
42917
42918 { $as_echo "$as_me:$LINENO: checking whether eops->commit_metadata() exists" >&5
42919 $as_echo_n "checking whether eops->commit_metadata() exists... " >&6; }
42920
42921
42922 cat confdefs.h - <<_ACEOF >conftest.c
42923 /* confdefs.h. */
42924 _ACEOF
42925 cat confdefs.h >>conftest.$ac_ext
42926 cat >>conftest.$ac_ext <<_ACEOF
42927 /* end confdefs.h. */
42928
42929
42930 #include <linux/exportfs.h>
42931 int commit_metadata(struct inode *inode) { return 0; }
42932 static struct export_operations eops __attribute__ ((unused))={
42933 .commit_metadata = commit_metadata,
42934 };
42935
42936 int
42937 main (void)
42938 {
42939
42940
42941 ;
42942 return 0;
42943 }
42944
42945 _ACEOF
42946
42947
42948
42949 cat - <<_ACEOF >conftest.h
42950
42951 _ACEOF
42952
42953
42954 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
42955 echo "obj-m := conftest.o" >build/Makefile
42956 modpost_flag=''
42957 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
42958 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
42959 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42960 (eval $ac_try) 2>&5
42961 ac_status=$?
42962 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
42963 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
42964 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42965 (eval $ac_try) 2>&5
42966 ac_status=$?
42967 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
42968 (exit $ac_status); }; }; then
42969
42970 { $as_echo "$as_me:$LINENO: result: yes" >&5
42971 $as_echo "yes" >&6; }
42972
42973 cat >>confdefs.h <<\_ACEOF
42974 #define HAVE_COMMIT_METADATA 1
42975 _ACEOF
42976
42977
42978 else
42979 $as_echo "$as_me: failed program was:" >&5
42980 sed 's/^/| /' conftest.$ac_ext >&5
42981
42982 { $as_echo "$as_me:$LINENO: result: no" >&5
42983 $as_echo "no" >&6; }
42984
42985
42986
42987 fi
42988
42989 rm -Rf build
42990
42991
42992
42993 { $as_echo "$as_me:$LINENO: checking whether clear_inode() is available" >&5
42994 $as_echo_n "checking whether clear_inode() is available... " >&6; }
42995
42996
42997
42998 cat confdefs.h - <<_ACEOF >conftest.c
42999 /* confdefs.h. */
43000 _ACEOF
43001 cat confdefs.h >>conftest.$ac_ext
43002 cat >>conftest.$ac_ext <<_ACEOF
43003 /* end confdefs.h. */
43004
43005
43006 #include <linux/fs.h>
43007
43008 int
43009 main (void)
43010 {
43011
43012 clear_inode(NULL);
43013
43014 ;
43015 return 0;
43016 }
43017
43018 _ACEOF
43019
43020
43021
43022 cat - <<_ACEOF >conftest.h
43023
43024 _ACEOF
43025
43026
43027 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
43028 echo "obj-m := conftest.o" >build/Makefile
43029 modpost_flag=''
43030 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
43031 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
43032 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43033 (eval $ac_try) 2>&5
43034 ac_status=$?
43035 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
43036 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
43037 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43038 (eval $ac_try) 2>&5
43039 ac_status=$?
43040 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
43041 (exit $ac_status); }; }; then
43042 rc=0
43043 else
43044 $as_echo "$as_me: failed program was:" >&5
43045 sed 's/^/| /' conftest.$ac_ext >&5
43046 rc=1
43047
43048
43049 fi
43050
43051 rm -Rf build
43052
43053
43054 if test $rc -ne 0; then :
43055
43056 { $as_echo "$as_me:$LINENO: result: no" >&5
43057 $as_echo "no" >&6; }
43058
43059 else
43060 if test "x$enable_linux_builtin" != xyes; then
43061
43062 grep -q -E '[[:space:]]clear_inode[[:space:]]' \
43063 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
43064 rc=$?
43065 if test $rc -ne 0; then
43066 export=0
43067 for file in fs/inode.c; do
43068 grep -q -E "EXPORT_SYMBOL.*(clear_inode)" \
43069 "$LINUX/$file" 2>/dev/null
43070 rc=$?
43071 if test $rc -eq 0; then
43072 export=1
43073 break;
43074 fi
43075 done
43076 if test $export -eq 0; then :
43077 rc=1
43078 else :
43079 rc=0
43080 fi
43081 else :
43082 rc=0
43083 fi
43084
43085 fi
43086 if test $rc -ne 0; then :
43087
43088 { $as_echo "$as_me:$LINENO: result: no" >&5
43089 $as_echo "no" >&6; }
43090
43091 else :
43092
43093 { $as_echo "$as_me:$LINENO: result: yes" >&5
43094 $as_echo "yes" >&6; }
43095
43096 cat >>confdefs.h <<\_ACEOF
43097 #define HAVE_CLEAR_INODE 1
43098 _ACEOF
43099
43100
43101 fi
43102 fi
43103
43104
43105 { $as_echo "$as_me:$LINENO: checking whether setattr_prepare() is available" >&5
43106 $as_echo_n "checking whether setattr_prepare() is available... " >&6; }
43107
43108
43109
43110 cat confdefs.h - <<_ACEOF >conftest.c
43111 /* confdefs.h. */
43112 _ACEOF
43113 cat confdefs.h >>conftest.$ac_ext
43114 cat >>conftest.$ac_ext <<_ACEOF
43115 /* end confdefs.h. */
43116
43117
43118 #include <linux/fs.h>
43119
43120 int
43121 main (void)
43122 {
43123
43124 struct dentry *dentry = NULL;
43125 struct iattr *attr = NULL;
43126 int error;
43127
43128 error = setattr_prepare(dentry, attr);
43129
43130 ;
43131 return 0;
43132 }
43133
43134 _ACEOF
43135
43136
43137
43138 cat - <<_ACEOF >conftest.h
43139
43140 _ACEOF
43141
43142
43143 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
43144 echo "obj-m := conftest.o" >build/Makefile
43145 modpost_flag=''
43146 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
43147 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
43148 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43149 (eval $ac_try) 2>&5
43150 ac_status=$?
43151 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
43152 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
43153 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43154 (eval $ac_try) 2>&5
43155 ac_status=$?
43156 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
43157 (exit $ac_status); }; }; then
43158 rc=0
43159 else
43160 $as_echo "$as_me: failed program was:" >&5
43161 sed 's/^/| /' conftest.$ac_ext >&5
43162 rc=1
43163
43164
43165 fi
43166
43167 rm -Rf build
43168
43169
43170 if test $rc -ne 0; then :
43171
43172 { $as_echo "$as_me:$LINENO: result: no" >&5
43173 $as_echo "no" >&6; }
43174
43175 else
43176 if test "x$enable_linux_builtin" != xyes; then
43177
43178 grep -q -E '[[:space:]]setattr_prepare[[:space:]]' \
43179 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
43180 rc=$?
43181 if test $rc -ne 0; then
43182 export=0
43183 for file in fs/attr.c; do
43184 grep -q -E "EXPORT_SYMBOL.*(setattr_prepare)" \
43185 "$LINUX/$file" 2>/dev/null
43186 rc=$?
43187 if test $rc -eq 0; then
43188 export=1
43189 break;
43190 fi
43191 done
43192 if test $export -eq 0; then :
43193 rc=1
43194 else :
43195 rc=0
43196 fi
43197 else :
43198 rc=0
43199 fi
43200
43201 fi
43202 if test $rc -ne 0; then :
43203
43204 { $as_echo "$as_me:$LINENO: result: no" >&5
43205 $as_echo "no" >&6; }
43206
43207 else :
43208
43209 { $as_echo "$as_me:$LINENO: result: yes" >&5
43210 $as_echo "yes" >&6; }
43211
43212 cat >>confdefs.h <<\_ACEOF
43213 #define HAVE_SETATTR_PREPARE 1
43214 _ACEOF
43215
43216
43217 fi
43218 fi
43219
43220
43221 { $as_echo "$as_me:$LINENO: checking whether insert_inode_locked() is available" >&5
43222 $as_echo_n "checking whether insert_inode_locked() is available... " >&6; }
43223
43224
43225
43226 cat confdefs.h - <<_ACEOF >conftest.c
43227 /* confdefs.h. */
43228 _ACEOF
43229 cat confdefs.h >>conftest.$ac_ext
43230 cat >>conftest.$ac_ext <<_ACEOF
43231 /* end confdefs.h. */
43232
43233
43234 #include <linux/fs.h>
43235
43236 int
43237 main (void)
43238 {
43239
43240 insert_inode_locked(NULL);
43241
43242 ;
43243 return 0;
43244 }
43245
43246 _ACEOF
43247
43248
43249
43250 cat - <<_ACEOF >conftest.h
43251
43252 _ACEOF
43253
43254
43255 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
43256 echo "obj-m := conftest.o" >build/Makefile
43257 modpost_flag=''
43258 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
43259 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
43260 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43261 (eval $ac_try) 2>&5
43262 ac_status=$?
43263 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
43264 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
43265 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43266 (eval $ac_try) 2>&5
43267 ac_status=$?
43268 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
43269 (exit $ac_status); }; }; then
43270 rc=0
43271 else
43272 $as_echo "$as_me: failed program was:" >&5
43273 sed 's/^/| /' conftest.$ac_ext >&5
43274 rc=1
43275
43276
43277 fi
43278
43279 rm -Rf build
43280
43281
43282 if test $rc -ne 0; then :
43283
43284 { $as_echo "$as_me:$LINENO: result: no" >&5
43285 $as_echo "no" >&6; }
43286
43287 else
43288 if test "x$enable_linux_builtin" != xyes; then
43289
43290 grep -q -E '[[:space:]]insert_inode_locked[[:space:]]' \
43291 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
43292 rc=$?
43293 if test $rc -ne 0; then
43294 export=0
43295 for file in fs/inode.c; do
43296 grep -q -E "EXPORT_SYMBOL.*(insert_inode_locked)" \
43297 "$LINUX/$file" 2>/dev/null
43298 rc=$?
43299 if test $rc -eq 0; then
43300 export=1
43301 break;
43302 fi
43303 done
43304 if test $export -eq 0; then :
43305 rc=1
43306 else :
43307 rc=0
43308 fi
43309 else :
43310 rc=0
43311 fi
43312
43313 fi
43314 if test $rc -ne 0; then :
43315
43316 { $as_echo "$as_me:$LINENO: result: no" >&5
43317 $as_echo "no" >&6; }
43318
43319 else :
43320
43321 { $as_echo "$as_me:$LINENO: result: yes" >&5
43322 $as_echo "yes" >&6; }
43323
43324 cat >>confdefs.h <<\_ACEOF
43325 #define HAVE_INSERT_INODE_LOCKED 1
43326 _ACEOF
43327
43328
43329 fi
43330 fi
43331
43332
43333 { $as_echo "$as_me:$LINENO: checking whether d_make_root() is available" >&5
43334 $as_echo_n "checking whether d_make_root() is available... " >&6; }
43335
43336
43337
43338 cat confdefs.h - <<_ACEOF >conftest.c
43339 /* confdefs.h. */
43340 _ACEOF
43341 cat confdefs.h >>conftest.$ac_ext
43342 cat >>conftest.$ac_ext <<_ACEOF
43343 /* end confdefs.h. */
43344
43345
43346 #include <linux/dcache.h>
43347
43348 int
43349 main (void)
43350 {
43351
43352 d_make_root(NULL);
43353
43354 ;
43355 return 0;
43356 }
43357
43358 _ACEOF
43359
43360
43361
43362 cat - <<_ACEOF >conftest.h
43363
43364 _ACEOF
43365
43366
43367 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
43368 echo "obj-m := conftest.o" >build/Makefile
43369 modpost_flag=''
43370 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
43371 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
43372 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43373 (eval $ac_try) 2>&5
43374 ac_status=$?
43375 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
43376 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
43377 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43378 (eval $ac_try) 2>&5
43379 ac_status=$?
43380 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
43381 (exit $ac_status); }; }; then
43382 rc=0
43383 else
43384 $as_echo "$as_me: failed program was:" >&5
43385 sed 's/^/| /' conftest.$ac_ext >&5
43386 rc=1
43387
43388
43389 fi
43390
43391 rm -Rf build
43392
43393
43394 if test $rc -ne 0; then :
43395
43396 { $as_echo "$as_me:$LINENO: result: no" >&5
43397 $as_echo "no" >&6; }
43398
43399 else
43400 if test "x$enable_linux_builtin" != xyes; then
43401
43402 grep -q -E '[[:space:]]d_make_root[[:space:]]' \
43403 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
43404 rc=$?
43405 if test $rc -ne 0; then
43406 export=0
43407 for file in fs/dcache.c; do
43408 grep -q -E "EXPORT_SYMBOL.*(d_make_root)" \
43409 "$LINUX/$file" 2>/dev/null
43410 rc=$?
43411 if test $rc -eq 0; then
43412 export=1
43413 break;
43414 fi
43415 done
43416 if test $export -eq 0; then :
43417 rc=1
43418 else :
43419 rc=0
43420 fi
43421 else :
43422 rc=0
43423 fi
43424
43425 fi
43426 if test $rc -ne 0; then :
43427
43428 { $as_echo "$as_me:$LINENO: result: no" >&5
43429 $as_echo "no" >&6; }
43430
43431 else :
43432
43433 { $as_echo "$as_me:$LINENO: result: yes" >&5
43434 $as_echo "yes" >&6; }
43435
43436 cat >>confdefs.h <<\_ACEOF
43437 #define HAVE_D_MAKE_ROOT 1
43438 _ACEOF
43439
43440
43441 fi
43442 fi
43443
43444
43445 { $as_echo "$as_me:$LINENO: checking whether d_obtain_alias() is available" >&5
43446 $as_echo_n "checking whether d_obtain_alias() is available... " >&6; }
43447
43448
43449
43450 cat confdefs.h - <<_ACEOF >conftest.c
43451 /* confdefs.h. */
43452 _ACEOF
43453 cat confdefs.h >>conftest.$ac_ext
43454 cat >>conftest.$ac_ext <<_ACEOF
43455 /* end confdefs.h. */
43456
43457
43458 #include <linux/dcache.h>
43459
43460 int
43461 main (void)
43462 {
43463
43464 d_obtain_alias(NULL);
43465
43466 ;
43467 return 0;
43468 }
43469
43470 _ACEOF
43471
43472
43473
43474 cat - <<_ACEOF >conftest.h
43475
43476 _ACEOF
43477
43478
43479 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
43480 echo "obj-m := conftest.o" >build/Makefile
43481 modpost_flag=''
43482 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
43483 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
43484 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43485 (eval $ac_try) 2>&5
43486 ac_status=$?
43487 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
43488 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
43489 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43490 (eval $ac_try) 2>&5
43491 ac_status=$?
43492 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
43493 (exit $ac_status); }; }; then
43494 rc=0
43495 else
43496 $as_echo "$as_me: failed program was:" >&5
43497 sed 's/^/| /' conftest.$ac_ext >&5
43498 rc=1
43499
43500
43501 fi
43502
43503 rm -Rf build
43504
43505
43506 if test $rc -ne 0; then :
43507
43508 { $as_echo "$as_me:$LINENO: result: no" >&5
43509 $as_echo "no" >&6; }
43510
43511 else
43512 if test "x$enable_linux_builtin" != xyes; then
43513
43514 grep -q -E '[[:space:]]d_obtain_alias[[:space:]]' \
43515 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
43516 rc=$?
43517 if test $rc -ne 0; then
43518 export=0
43519 for file in fs/dcache.c; do
43520 grep -q -E "EXPORT_SYMBOL.*(d_obtain_alias)" \
43521 "$LINUX/$file" 2>/dev/null
43522 rc=$?
43523 if test $rc -eq 0; then
43524 export=1
43525 break;
43526 fi
43527 done
43528 if test $export -eq 0; then :
43529 rc=1
43530 else :
43531 rc=0
43532 fi
43533 else :
43534 rc=0
43535 fi
43536
43537 fi
43538 if test $rc -ne 0; then :
43539
43540 { $as_echo "$as_me:$LINENO: result: no" >&5
43541 $as_echo "no" >&6; }
43542
43543 else :
43544
43545 { $as_echo "$as_me:$LINENO: result: yes" >&5
43546 $as_echo "yes" >&6; }
43547
43548 cat >>confdefs.h <<\_ACEOF
43549 #define HAVE_D_OBTAIN_ALIAS 1
43550 _ACEOF
43551
43552
43553 fi
43554 fi
43555
43556
43557 { $as_echo "$as_me:$LINENO: checking whether d_prune_aliases() is available" >&5
43558 $as_echo_n "checking whether d_prune_aliases() is available... " >&6; }
43559
43560
43561
43562 cat confdefs.h - <<_ACEOF >conftest.c
43563 /* confdefs.h. */
43564 _ACEOF
43565 cat confdefs.h >>conftest.$ac_ext
43566 cat >>conftest.$ac_ext <<_ACEOF
43567 /* end confdefs.h. */
43568
43569
43570 #include <linux/dcache.h>
43571
43572 int
43573 main (void)
43574 {
43575
43576 struct inode *ip = NULL;
43577 d_prune_aliases(ip);
43578
43579 ;
43580 return 0;
43581 }
43582
43583 _ACEOF
43584
43585
43586
43587 cat - <<_ACEOF >conftest.h
43588
43589 _ACEOF
43590
43591
43592 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
43593 echo "obj-m := conftest.o" >build/Makefile
43594 modpost_flag=''
43595 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
43596 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
43597 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43598 (eval $ac_try) 2>&5
43599 ac_status=$?
43600 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
43601 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
43602 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43603 (eval $ac_try) 2>&5
43604 ac_status=$?
43605 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
43606 (exit $ac_status); }; }; then
43607 rc=0
43608 else
43609 $as_echo "$as_me: failed program was:" >&5
43610 sed 's/^/| /' conftest.$ac_ext >&5
43611 rc=1
43612
43613
43614 fi
43615
43616 rm -Rf build
43617
43618
43619 if test $rc -ne 0; then :
43620
43621 { $as_echo "$as_me:$LINENO: result: no" >&5
43622 $as_echo "no" >&6; }
43623
43624 else
43625 if test "x$enable_linux_builtin" != xyes; then
43626
43627 grep -q -E '[[:space:]]d_prune_aliases[[:space:]]' \
43628 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
43629 rc=$?
43630 if test $rc -ne 0; then
43631 export=0
43632 for file in fs/dcache.c; do
43633 grep -q -E "EXPORT_SYMBOL.*(d_prune_aliases)" \
43634 "$LINUX/$file" 2>/dev/null
43635 rc=$?
43636 if test $rc -eq 0; then
43637 export=1
43638 break;
43639 fi
43640 done
43641 if test $export -eq 0; then :
43642 rc=1
43643 else :
43644 rc=0
43645 fi
43646 else :
43647 rc=0
43648 fi
43649
43650 fi
43651 if test $rc -ne 0; then :
43652
43653 { $as_echo "$as_me:$LINENO: result: no" >&5
43654 $as_echo "no" >&6; }
43655
43656 else :
43657
43658 { $as_echo "$as_me:$LINENO: result: yes" >&5
43659 $as_echo "yes" >&6; }
43660
43661 cat >>confdefs.h <<\_ACEOF
43662 #define HAVE_D_PRUNE_ALIASES 1
43663 _ACEOF
43664
43665
43666 fi
43667 fi
43668
43669
43670 { $as_echo "$as_me:$LINENO: checking whether d_set_d_op() is available" >&5
43671 $as_echo_n "checking whether d_set_d_op() is available... " >&6; }
43672
43673
43674
43675 cat confdefs.h - <<_ACEOF >conftest.c
43676 /* confdefs.h. */
43677 _ACEOF
43678 cat confdefs.h >>conftest.$ac_ext
43679 cat >>conftest.$ac_ext <<_ACEOF
43680 /* end confdefs.h. */
43681
43682
43683 #include <linux/dcache.h>
43684
43685 int
43686 main (void)
43687 {
43688
43689 d_set_d_op(NULL, NULL);
43690
43691 ;
43692 return 0;
43693 }
43694
43695 _ACEOF
43696
43697
43698
43699 cat - <<_ACEOF >conftest.h
43700
43701 _ACEOF
43702
43703
43704 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
43705 echo "obj-m := conftest.o" >build/Makefile
43706 modpost_flag=''
43707 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
43708 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
43709 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43710 (eval $ac_try) 2>&5
43711 ac_status=$?
43712 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
43713 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
43714 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43715 (eval $ac_try) 2>&5
43716 ac_status=$?
43717 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
43718 (exit $ac_status); }; }; then
43719 rc=0
43720 else
43721 $as_echo "$as_me: failed program was:" >&5
43722 sed 's/^/| /' conftest.$ac_ext >&5
43723 rc=1
43724
43725
43726 fi
43727
43728 rm -Rf build
43729
43730
43731 if test $rc -ne 0; then :
43732
43733 { $as_echo "$as_me:$LINENO: result: no" >&5
43734 $as_echo "no" >&6; }
43735
43736 else
43737 if test "x$enable_linux_builtin" != xyes; then
43738
43739 grep -q -E '[[:space:]]d_set_d_op[[:space:]]' \
43740 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
43741 rc=$?
43742 if test $rc -ne 0; then
43743 export=0
43744 for file in fs/dcache.c; do
43745 grep -q -E "EXPORT_SYMBOL.*(d_set_d_op)" \
43746 "$LINUX/$file" 2>/dev/null
43747 rc=$?
43748 if test $rc -eq 0; then
43749 export=1
43750 break;
43751 fi
43752 done
43753 if test $export -eq 0; then :
43754 rc=1
43755 else :
43756 rc=0
43757 fi
43758 else :
43759 rc=0
43760 fi
43761
43762 fi
43763 if test $rc -ne 0; then :
43764
43765 { $as_echo "$as_me:$LINENO: result: no" >&5
43766 $as_echo "no" >&6; }
43767
43768 else :
43769
43770 { $as_echo "$as_me:$LINENO: result: yes" >&5
43771 $as_echo "yes" >&6; }
43772
43773 cat >>confdefs.h <<\_ACEOF
43774 #define HAVE_D_SET_D_OP 1
43775 _ACEOF
43776
43777
43778 fi
43779 fi
43780
43781
43782
43783 { $as_echo "$as_me:$LINENO: checking whether dops->d_revalidate() takes struct nameidata" >&5
43784 $as_echo_n "checking whether dops->d_revalidate() takes struct nameidata... " >&6; }
43785
43786
43787 cat confdefs.h - <<_ACEOF >conftest.c
43788 /* confdefs.h. */
43789 _ACEOF
43790 cat confdefs.h >>conftest.$ac_ext
43791 cat >>conftest.$ac_ext <<_ACEOF
43792 /* end confdefs.h. */
43793
43794
43795 #include <linux/dcache.h>
43796 #include <linux/sched.h>
43797
43798 int revalidate (struct dentry *dentry,
43799 struct nameidata *nidata) { return 0; }
43800
43801 static const struct dentry_operations
43802 dops __attribute__ ((unused)) = {
43803 .d_revalidate = revalidate,
43804 };
43805
43806 int
43807 main (void)
43808 {
43809
43810
43811 ;
43812 return 0;
43813 }
43814
43815 _ACEOF
43816
43817
43818
43819 cat - <<_ACEOF >conftest.h
43820
43821 _ACEOF
43822
43823
43824 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
43825 echo "obj-m := conftest.o" >build/Makefile
43826 modpost_flag=''
43827 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
43828 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
43829 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43830 (eval $ac_try) 2>&5
43831 ac_status=$?
43832 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
43833 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
43834 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43835 (eval $ac_try) 2>&5
43836 ac_status=$?
43837 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
43838 (exit $ac_status); }; }; then
43839
43840 { $as_echo "$as_me:$LINENO: result: yes" >&5
43841 $as_echo "yes" >&6; }
43842
43843 cat >>confdefs.h <<\_ACEOF
43844 #define HAVE_D_REVALIDATE_NAMEIDATA 1
43845 _ACEOF
43846
43847
43848 else
43849 $as_echo "$as_me: failed program was:" >&5
43850 sed 's/^/| /' conftest.$ac_ext >&5
43851
43852 { $as_echo "$as_me:$LINENO: result: no" >&5
43853 $as_echo "no" >&6; }
43854
43855
43856
43857 fi
43858
43859 rm -Rf build
43860
43861
43862
43863
43864 { $as_echo "$as_me:$LINENO: checking whether dentry uses const struct dentry_operations" >&5
43865 $as_echo_n "checking whether dentry uses const struct dentry_operations... " >&6; }
43866
43867
43868 cat confdefs.h - <<_ACEOF >conftest.c
43869 /* confdefs.h. */
43870 _ACEOF
43871 cat confdefs.h >>conftest.$ac_ext
43872 cat >>conftest.$ac_ext <<_ACEOF
43873 /* end confdefs.h. */
43874
43875
43876 #include <linux/dcache.h>
43877
43878 const struct dentry_operations test_d_op = {
43879 .d_revalidate = NULL,
43880 };
43881
43882 int
43883 main (void)
43884 {
43885
43886 struct dentry d __attribute__ ((unused));
43887
43888 d.d_op = &test_d_op;
43889
43890 ;
43891 return 0;
43892 }
43893
43894 _ACEOF
43895
43896
43897
43898 cat - <<_ACEOF >conftest.h
43899
43900 _ACEOF
43901
43902
43903 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
43904 echo "obj-m := conftest.o" >build/Makefile
43905 modpost_flag=''
43906 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
43907 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
43908 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43909 (eval $ac_try) 2>&5
43910 ac_status=$?
43911 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
43912 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
43913 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43914 (eval $ac_try) 2>&5
43915 ac_status=$?
43916 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
43917 (exit $ac_status); }; }; then
43918
43919 { $as_echo "$as_me:$LINENO: result: yes" >&5
43920 $as_echo "yes" >&6; }
43921
43922 cat >>confdefs.h <<\_ACEOF
43923 #define HAVE_CONST_DENTRY_OPERATIONS 1
43924 _ACEOF
43925
43926
43927 else
43928 $as_echo "$as_me: failed program was:" >&5
43929 sed 's/^/| /' conftest.$ac_ext >&5
43930
43931 { $as_echo "$as_me:$LINENO: result: no" >&5
43932 $as_echo "no" >&6; }
43933
43934
43935
43936 fi
43937
43938 rm -Rf build
43939
43940
43941
43942 { $as_echo "$as_me:$LINENO: checking whether truncate_setsize() is available" >&5
43943 $as_echo_n "checking whether truncate_setsize() is available... " >&6; }
43944
43945
43946
43947 cat confdefs.h - <<_ACEOF >conftest.c
43948 /* confdefs.h. */
43949 _ACEOF
43950 cat confdefs.h >>conftest.$ac_ext
43951 cat >>conftest.$ac_ext <<_ACEOF
43952 /* end confdefs.h. */
43953
43954
43955 #include <linux/mm.h>
43956
43957 int
43958 main (void)
43959 {
43960
43961 truncate_setsize(NULL, 0);
43962
43963 ;
43964 return 0;
43965 }
43966
43967 _ACEOF
43968
43969
43970
43971 cat - <<_ACEOF >conftest.h
43972
43973 _ACEOF
43974
43975
43976 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
43977 echo "obj-m := conftest.o" >build/Makefile
43978 modpost_flag=''
43979 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
43980 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
43981 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43982 (eval $ac_try) 2>&5
43983 ac_status=$?
43984 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
43985 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
43986 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43987 (eval $ac_try) 2>&5
43988 ac_status=$?
43989 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
43990 (exit $ac_status); }; }; then
43991 rc=0
43992 else
43993 $as_echo "$as_me: failed program was:" >&5
43994 sed 's/^/| /' conftest.$ac_ext >&5
43995 rc=1
43996
43997
43998 fi
43999
44000 rm -Rf build
44001
44002
44003 if test $rc -ne 0; then :
44004
44005 { $as_echo "$as_me:$LINENO: result: no" >&5
44006 $as_echo "no" >&6; }
44007
44008 else
44009 if test "x$enable_linux_builtin" != xyes; then
44010
44011 grep -q -E '[[:space:]]truncate_setsize[[:space:]]' \
44012 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
44013 rc=$?
44014 if test $rc -ne 0; then
44015 export=0
44016 for file in mm/truncate.c; do
44017 grep -q -E "EXPORT_SYMBOL.*(truncate_setsize)" \
44018 "$LINUX/$file" 2>/dev/null
44019 rc=$?
44020 if test $rc -eq 0; then
44021 export=1
44022 break;
44023 fi
44024 done
44025 if test $export -eq 0; then :
44026 rc=1
44027 else :
44028 rc=0
44029 fi
44030 else :
44031 rc=0
44032 fi
44033
44034 fi
44035 if test $rc -ne 0; then :
44036
44037 { $as_echo "$as_me:$LINENO: result: no" >&5
44038 $as_echo "no" >&6; }
44039
44040 else :
44041
44042 { $as_echo "$as_me:$LINENO: result: yes" >&5
44043 $as_echo "yes" >&6; }
44044
44045 cat >>confdefs.h <<\_ACEOF
44046 #define HAVE_TRUNCATE_SETSIZE 1
44047 _ACEOF
44048
44049
44050 fi
44051 fi
44052
44053
44054
44055 { $as_echo "$as_me:$LINENO: checking whether security_inode_init_security wants 6 args" >&5
44056 $as_echo_n "checking whether security_inode_init_security wants 6 args... " >&6; }
44057
44058
44059 cat confdefs.h - <<_ACEOF >conftest.c
44060 /* confdefs.h. */
44061 _ACEOF
44062 cat confdefs.h >>conftest.$ac_ext
44063 cat >>conftest.$ac_ext <<_ACEOF
44064 /* end confdefs.h. */
44065
44066
44067 #include <linux/security.h>
44068
44069 int
44070 main (void)
44071 {
44072
44073 struct inode *ip __attribute__ ((unused)) = NULL;
44074 struct inode *dip __attribute__ ((unused)) = NULL;
44075 const struct qstr *str __attribute__ ((unused)) = NULL;
44076 char *name __attribute__ ((unused)) = NULL;
44077 void *value __attribute__ ((unused)) = NULL;
44078 size_t len __attribute__ ((unused)) = 0;
44079
44080 security_inode_init_security(ip, dip, str, &name, &value, &len);
44081
44082 ;
44083 return 0;
44084 }
44085
44086 _ACEOF
44087
44088
44089
44090 cat - <<_ACEOF >conftest.h
44091
44092 _ACEOF
44093
44094
44095 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
44096 echo "obj-m := conftest.o" >build/Makefile
44097 modpost_flag=''
44098 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
44099 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
44100 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44101 (eval $ac_try) 2>&5
44102 ac_status=$?
44103 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
44104 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
44105 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44106 (eval $ac_try) 2>&5
44107 ac_status=$?
44108 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
44109 (exit $ac_status); }; }; then
44110
44111 { $as_echo "$as_me:$LINENO: result: yes" >&5
44112 $as_echo "yes" >&6; }
44113
44114 cat >>confdefs.h <<\_ACEOF
44115 #define HAVE_6ARGS_SECURITY_INODE_INIT_SECURITY 1
44116 _ACEOF
44117
44118
44119 else
44120 $as_echo "$as_me: failed program was:" >&5
44121 sed 's/^/| /' conftest.$ac_ext >&5
44122
44123 { $as_echo "$as_me:$LINENO: result: no" >&5
44124 $as_echo "no" >&6; }
44125
44126
44127
44128 fi
44129
44130 rm -Rf build
44131
44132
44133
44134
44135 { $as_echo "$as_me:$LINENO: checking whether security_inode_init_security wants callback" >&5
44136 $as_echo_n "checking whether security_inode_init_security wants callback... " >&6; }
44137
44138
44139 cat confdefs.h - <<_ACEOF >conftest.c
44140 /* confdefs.h. */
44141 _ACEOF
44142 cat confdefs.h >>conftest.$ac_ext
44143 cat >>conftest.$ac_ext <<_ACEOF
44144 /* end confdefs.h. */
44145
44146
44147 #include <linux/security.h>
44148
44149 int
44150 main (void)
44151 {
44152
44153 struct inode *ip __attribute__ ((unused)) = NULL;
44154 struct inode *dip __attribute__ ((unused)) = NULL;
44155 const struct qstr *str __attribute__ ((unused)) = NULL;
44156 initxattrs func __attribute__ ((unused)) = NULL;
44157
44158 security_inode_init_security(ip, dip, str, func, NULL);
44159
44160 ;
44161 return 0;
44162 }
44163
44164 _ACEOF
44165
44166
44167
44168 cat - <<_ACEOF >conftest.h
44169
44170 _ACEOF
44171
44172
44173 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
44174 echo "obj-m := conftest.o" >build/Makefile
44175 modpost_flag=''
44176 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
44177 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
44178 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44179 (eval $ac_try) 2>&5
44180 ac_status=$?
44181 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
44182 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
44183 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44184 (eval $ac_try) 2>&5
44185 ac_status=$?
44186 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
44187 (exit $ac_status); }; }; then
44188
44189 { $as_echo "$as_me:$LINENO: result: yes" >&5
44190 $as_echo "yes" >&6; }
44191
44192 cat >>confdefs.h <<\_ACEOF
44193 #define HAVE_CALLBACK_SECURITY_INODE_INIT_SECURITY 1
44194 _ACEOF
44195
44196
44197 else
44198 $as_echo "$as_me: failed program was:" >&5
44199 sed 's/^/| /' conftest.$ac_ext >&5
44200
44201 { $as_echo "$as_me:$LINENO: result: no" >&5
44202 $as_echo "no" >&6; }
44203
44204
44205
44206 fi
44207
44208 rm -Rf build
44209
44210
44211
44212
44213 { $as_echo "$as_me:$LINENO: checking whether fst->mount() exists" >&5
44214 $as_echo_n "checking whether fst->mount() exists... " >&6; }
44215
44216
44217 cat confdefs.h - <<_ACEOF >conftest.c
44218 /* confdefs.h. */
44219 _ACEOF
44220 cat confdefs.h >>conftest.$ac_ext
44221 cat >>conftest.$ac_ext <<_ACEOF
44222 /* end confdefs.h. */
44223
44224
44225 #include <linux/fs.h>
44226
44227 static struct dentry *
44228 mount(struct file_system_type *fs_type, int flags,
44229 const char *osname, void *data) {
44230 struct dentry *d = NULL;
44231 return (d);
44232 }
44233
44234 static struct file_system_type fst __attribute__ ((unused)) = {
44235 .mount = mount,
44236 };
44237
44238 int
44239 main (void)
44240 {
44241
44242
44243 ;
44244 return 0;
44245 }
44246
44247 _ACEOF
44248
44249
44250
44251 cat - <<_ACEOF >conftest.h
44252
44253 _ACEOF
44254
44255
44256 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
44257 echo "obj-m := conftest.o" >build/Makefile
44258 modpost_flag=''
44259 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
44260 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
44261 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44262 (eval $ac_try) 2>&5
44263 ac_status=$?
44264 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
44265 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
44266 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44267 (eval $ac_try) 2>&5
44268 ac_status=$?
44269 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
44270 (exit $ac_status); }; }; then
44271
44272 { $as_echo "$as_me:$LINENO: result: yes" >&5
44273 $as_echo "yes" >&6; }
44274
44275 cat >>confdefs.h <<\_ACEOF
44276 #define HAVE_FST_MOUNT 1
44277 _ACEOF
44278
44279
44280 else
44281 $as_echo "$as_me: failed program was:" >&5
44282 sed 's/^/| /' conftest.$ac_ext >&5
44283
44284 { $as_echo "$as_me:$LINENO: result: no" >&5
44285 $as_echo "no" >&6; }
44286
44287
44288
44289 fi
44290
44291 rm -Rf build
44292
44293
44294
44295
44296 { $as_echo "$as_me:$LINENO: checking whether super_block has s_shrink" >&5
44297 $as_echo_n "checking whether super_block has s_shrink... " >&6; }
44298
44299
44300 cat confdefs.h - <<_ACEOF >conftest.c
44301 /* confdefs.h. */
44302 _ACEOF
44303 cat confdefs.h >>conftest.$ac_ext
44304 cat >>conftest.$ac_ext <<_ACEOF
44305 /* end confdefs.h. */
44306
44307
44308 #include <linux/fs.h>
44309
44310 int shrink(struct shrinker *s, struct shrink_control *sc)
44311 { return 0; }
44312
44313 static const struct super_block
44314 sb __attribute__ ((unused)) = {
44315 .s_shrink.shrink = shrink,
44316 .s_shrink.seeks = DEFAULT_SEEKS,
44317 .s_shrink.batch = 0,
44318 };
44319
44320 int
44321 main (void)
44322 {
44323
44324
44325 ;
44326 return 0;
44327 }
44328
44329 _ACEOF
44330
44331
44332
44333 cat - <<_ACEOF >conftest.h
44334
44335 _ACEOF
44336
44337
44338 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
44339 echo "obj-m := conftest.o" >build/Makefile
44340 modpost_flag=''
44341 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
44342 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
44343 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44344 (eval $ac_try) 2>&5
44345 ac_status=$?
44346 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
44347 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
44348 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44349 (eval $ac_try) 2>&5
44350 ac_status=$?
44351 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
44352 (exit $ac_status); }; }; then
44353
44354 { $as_echo "$as_me:$LINENO: result: yes" >&5
44355 $as_echo "yes" >&6; }
44356
44357 cat >>confdefs.h <<\_ACEOF
44358 #define HAVE_SHRINK 1
44359 _ACEOF
44360
44361
44362
44363 else
44364 $as_echo "$as_me: failed program was:" >&5
44365 sed 's/^/| /' conftest.$ac_ext >&5
44366
44367 { $as_echo "$as_me:$LINENO: result: no" >&5
44368 $as_echo "no" >&6; }
44369
44370
44371
44372 fi
44373
44374 rm -Rf build
44375
44376
44377
44378
44379 { $as_echo "$as_me:$LINENO: checking whether shrink_control has nid" >&5
44380 $as_echo_n "checking whether shrink_control has nid... " >&6; }
44381
44382
44383 cat confdefs.h - <<_ACEOF >conftest.c
44384 /* confdefs.h. */
44385 _ACEOF
44386 cat confdefs.h >>conftest.$ac_ext
44387 cat >>conftest.$ac_ext <<_ACEOF
44388 /* end confdefs.h. */
44389
44390
44391 #include <linux/fs.h>
44392
44393 int
44394 main (void)
44395 {
44396
44397 struct shrink_control sc __attribute__ ((unused));
44398 unsigned long scnidsize __attribute__ ((unused)) =
44399 sizeof(sc.nid);
44400
44401 ;
44402 return 0;
44403 }
44404
44405 _ACEOF
44406
44407
44408
44409 cat - <<_ACEOF >conftest.h
44410
44411 _ACEOF
44412
44413
44414 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
44415 echo "obj-m := conftest.o" >build/Makefile
44416 modpost_flag=''
44417 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
44418 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
44419 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44420 (eval $ac_try) 2>&5
44421 ac_status=$?
44422 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
44423 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
44424 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44425 (eval $ac_try) 2>&5
44426 ac_status=$?
44427 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
44428 (exit $ac_status); }; }; then
44429
44430 { $as_echo "$as_me:$LINENO: result: yes" >&5
44431 $as_echo "yes" >&6; }
44432
44433 cat >>confdefs.h <<\_ACEOF
44434 #define SHRINK_CONTROL_HAS_NID 1
44435 _ACEOF
44436
44437
44438 else
44439 $as_echo "$as_me: failed program was:" >&5
44440 sed 's/^/| /' conftest.$ac_ext >&5
44441
44442 { $as_echo "$as_me:$LINENO: result: no" >&5
44443 $as_echo "no" >&6; }
44444
44445
44446
44447 fi
44448
44449 rm -Rf build
44450
44451
44452
44453
44454 { $as_echo "$as_me:$LINENO: checking whether super_block has s_instances list_head" >&5
44455 $as_echo_n "checking whether super_block has s_instances list_head... " >&6; }
44456
44457
44458 cat confdefs.h - <<_ACEOF >conftest.c
44459 /* confdefs.h. */
44460 _ACEOF
44461 cat confdefs.h >>conftest.$ac_ext
44462 cat >>conftest.$ac_ext <<_ACEOF
44463 /* end confdefs.h. */
44464
44465
44466 #include <linux/fs.h>
44467
44468 int
44469 main (void)
44470 {
44471
44472 struct super_block sb __attribute__ ((unused));
44473
44474 INIT_LIST_HEAD(&sb.s_instances);
44475
44476 ;
44477 return 0;
44478 }
44479
44480 _ACEOF
44481
44482
44483
44484 cat - <<_ACEOF >conftest.h
44485
44486 _ACEOF
44487
44488
44489 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
44490 echo "obj-m := conftest.o" >build/Makefile
44491 modpost_flag=''
44492 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
44493 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
44494 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44495 (eval $ac_try) 2>&5
44496 ac_status=$?
44497 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
44498 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
44499 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44500 (eval $ac_try) 2>&5
44501 ac_status=$?
44502 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
44503 (exit $ac_status); }; }; then
44504
44505 { $as_echo "$as_me:$LINENO: result: yes" >&5
44506 $as_echo "yes" >&6; }
44507
44508 cat >>confdefs.h <<\_ACEOF
44509 #define HAVE_S_INSTANCES_LIST_HEAD 1
44510 _ACEOF
44511
44512
44513 else
44514 $as_echo "$as_me: failed program was:" >&5
44515 sed 's/^/| /' conftest.$ac_ext >&5
44516
44517 { $as_echo "$as_me:$LINENO: result: no" >&5
44518 $as_echo "no" >&6; }
44519
44520
44521
44522 fi
44523
44524 rm -Rf build
44525
44526
44527
44528 { $as_echo "$as_me:$LINENO: checking whether super_block has s_d_op" >&5
44529 $as_echo_n "checking whether super_block has s_d_op... " >&6; }
44530
44531
44532 cat confdefs.h - <<_ACEOF >conftest.c
44533 /* confdefs.h. */
44534 _ACEOF
44535 cat confdefs.h >>conftest.$ac_ext
44536 cat >>conftest.$ac_ext <<_ACEOF
44537 /* end confdefs.h. */
44538
44539
44540 #include <linux/fs.h>
44541
44542 int
44543 main (void)
44544 {
44545
44546 struct super_block sb __attribute__ ((unused));
44547 sb.s_d_op = NULL;
44548
44549 ;
44550 return 0;
44551 }
44552
44553 _ACEOF
44554
44555
44556
44557 cat - <<_ACEOF >conftest.h
44558
44559 _ACEOF
44560
44561
44562 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
44563 echo "obj-m := conftest.o" >build/Makefile
44564 modpost_flag=''
44565 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
44566 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
44567 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44568 (eval $ac_try) 2>&5
44569 ac_status=$?
44570 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
44571 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
44572 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44573 (eval $ac_try) 2>&5
44574 ac_status=$?
44575 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
44576 (exit $ac_status); }; }; then
44577
44578 { $as_echo "$as_me:$LINENO: result: yes" >&5
44579 $as_echo "yes" >&6; }
44580
44581 cat >>confdefs.h <<\_ACEOF
44582 #define HAVE_S_D_OP 1
44583 _ACEOF
44584
44585
44586 else
44587 $as_echo "$as_me: failed program was:" >&5
44588 sed 's/^/| /' conftest.$ac_ext >&5
44589
44590 { $as_echo "$as_me:$LINENO: result: no" >&5
44591 $as_echo "no" >&6; }
44592
44593
44594
44595 fi
44596
44597 rm -Rf build
44598
44599
44600
44601
44602 { $as_echo "$as_me:$LINENO: checking whether super_setup_bdi_name() exists" >&5
44603 $as_echo_n "checking whether super_setup_bdi_name() exists... " >&6; }
44604
44605
44606
44607 cat confdefs.h - <<_ACEOF >conftest.c
44608 /* confdefs.h. */
44609 _ACEOF
44610 cat confdefs.h >>conftest.$ac_ext
44611 cat >>conftest.$ac_ext <<_ACEOF
44612 /* end confdefs.h. */
44613
44614
44615 #include <linux/fs.h>
44616 struct super_block sb;
44617
44618 int
44619 main (void)
44620 {
44621
44622 char *name = "bdi";
44623 atomic_long_t zfs_bdi_seq;
44624 int error __attribute__((unused)) =
44625 super_setup_bdi_name(&sb, "%.28s-%ld", name, atomic_long_inc_return(&zfs_bdi_seq));
44626
44627 ;
44628 return 0;
44629 }
44630
44631 _ACEOF
44632
44633
44634
44635 cat - <<_ACEOF >conftest.h
44636
44637 _ACEOF
44638
44639
44640 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
44641 echo "obj-m := conftest.o" >build/Makefile
44642 modpost_flag=''
44643 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
44644 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
44645 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44646 (eval $ac_try) 2>&5
44647 ac_status=$?
44648 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
44649 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
44650 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44651 (eval $ac_try) 2>&5
44652 ac_status=$?
44653 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
44654 (exit $ac_status); }; }; then
44655 rc=0
44656 else
44657 $as_echo "$as_me: failed program was:" >&5
44658 sed 's/^/| /' conftest.$ac_ext >&5
44659 rc=1
44660
44661
44662 fi
44663
44664 rm -Rf build
44665
44666
44667 if test $rc -ne 0; then :
44668
44669 { $as_echo "$as_me:$LINENO: result: no" >&5
44670 $as_echo "no" >&6; }
44671 { $as_echo "$as_me:$LINENO: checking whether bdi_setup_and_register() wants 2 args" >&5
44672 $as_echo_n "checking whether bdi_setup_and_register() wants 2 args... " >&6; }
44673
44674
44675
44676 cat confdefs.h - <<_ACEOF >conftest.c
44677 /* confdefs.h. */
44678 _ACEOF
44679 cat confdefs.h >>conftest.$ac_ext
44680 cat >>conftest.$ac_ext <<_ACEOF
44681 /* end confdefs.h. */
44682
44683
44684 #include <linux/backing-dev.h>
44685 struct backing_dev_info bdi;
44686
44687 int
44688 main (void)
44689 {
44690
44691 char *name = "bdi";
44692 int error __attribute__((unused)) =
44693 bdi_setup_and_register(&bdi, name);
44694
44695 ;
44696 return 0;
44697 }
44698
44699 _ACEOF
44700
44701
44702
44703 cat - <<_ACEOF >conftest.h
44704
44705 _ACEOF
44706
44707
44708 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
44709 echo "obj-m := conftest.o" >build/Makefile
44710 modpost_flag=''
44711 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
44712 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
44713 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44714 (eval $ac_try) 2>&5
44715 ac_status=$?
44716 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
44717 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
44718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44719 (eval $ac_try) 2>&5
44720 ac_status=$?
44721 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
44722 (exit $ac_status); }; }; then
44723 rc=0
44724 else
44725 $as_echo "$as_me: failed program was:" >&5
44726 sed 's/^/| /' conftest.$ac_ext >&5
44727 rc=1
44728
44729
44730 fi
44731
44732 rm -Rf build
44733
44734
44735 if test $rc -ne 0; then :
44736
44737 { $as_echo "$as_me:$LINENO: result: no" >&5
44738 $as_echo "no" >&6; }
44739 { $as_echo "$as_me:$LINENO: checking whether bdi_setup_and_register() wants 3 args" >&5
44740 $as_echo_n "checking whether bdi_setup_and_register() wants 3 args... " >&6; }
44741
44742
44743
44744 cat confdefs.h - <<_ACEOF >conftest.c
44745 /* confdefs.h. */
44746 _ACEOF
44747 cat confdefs.h >>conftest.$ac_ext
44748 cat >>conftest.$ac_ext <<_ACEOF
44749 /* end confdefs.h. */
44750
44751
44752 #include <linux/backing-dev.h>
44753 struct backing_dev_info bdi;
44754
44755 int
44756 main (void)
44757 {
44758
44759 char *name = "bdi";
44760 unsigned int cap = BDI_CAP_MAP_COPY;
44761 int error __attribute__((unused)) =
44762 bdi_setup_and_register(&bdi, name, cap);
44763
44764 ;
44765 return 0;
44766 }
44767
44768 _ACEOF
44769
44770
44771
44772 cat - <<_ACEOF >conftest.h
44773
44774 _ACEOF
44775
44776
44777 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
44778 echo "obj-m := conftest.o" >build/Makefile
44779 modpost_flag=''
44780 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
44781 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
44782 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44783 (eval $ac_try) 2>&5
44784 ac_status=$?
44785 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
44786 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
44787 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44788 (eval $ac_try) 2>&5
44789 ac_status=$?
44790 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
44791 (exit $ac_status); }; }; then
44792 rc=0
44793 else
44794 $as_echo "$as_me: failed program was:" >&5
44795 sed 's/^/| /' conftest.$ac_ext >&5
44796 rc=1
44797
44798
44799 fi
44800
44801 rm -Rf build
44802
44803
44804 if test $rc -ne 0; then :
44805
44806 { $as_echo "$as_me:$LINENO: result: no" >&5
44807 $as_echo "no" >&6; }
44808
44809 else
44810 if test "x$enable_linux_builtin" != xyes; then
44811
44812 grep -q -E '[[:space:]]bdi_setup_and_register[[:space:]]' \
44813 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
44814 rc=$?
44815 if test $rc -ne 0; then
44816 export=0
44817 for file in mm/backing-dev.c; do
44818 grep -q -E "EXPORT_SYMBOL.*(bdi_setup_and_register)" \
44819 "$LINUX/$file" 2>/dev/null
44820 rc=$?
44821 if test $rc -eq 0; then
44822 export=1
44823 break;
44824 fi
44825 done
44826 if test $export -eq 0; then :
44827 rc=1
44828 else :
44829 rc=0
44830 fi
44831 else :
44832 rc=0
44833 fi
44834
44835 fi
44836 if test $rc -ne 0; then :
44837
44838 { $as_echo "$as_me:$LINENO: result: no" >&5
44839 $as_echo "no" >&6; }
44840
44841 else :
44842
44843 { $as_echo "$as_me:$LINENO: result: yes" >&5
44844 $as_echo "yes" >&6; }
44845
44846 cat >>confdefs.h <<\_ACEOF
44847 #define HAVE_3ARGS_BDI_SETUP_AND_REGISTER 1
44848 _ACEOF
44849
44850
44851 fi
44852 fi
44853
44854
44855 else
44856 if test "x$enable_linux_builtin" != xyes; then
44857
44858 grep -q -E '[[:space:]]bdi_setup_and_register[[:space:]]' \
44859 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
44860 rc=$?
44861 if test $rc -ne 0; then
44862 export=0
44863 for file in mm/backing-dev.c; do
44864 grep -q -E "EXPORT_SYMBOL.*(bdi_setup_and_register)" \
44865 "$LINUX/$file" 2>/dev/null
44866 rc=$?
44867 if test $rc -eq 0; then
44868 export=1
44869 break;
44870 fi
44871 done
44872 if test $export -eq 0; then :
44873 rc=1
44874 else :
44875 rc=0
44876 fi
44877 else :
44878 rc=0
44879 fi
44880
44881 fi
44882 if test $rc -ne 0; then :
44883
44884 { $as_echo "$as_me:$LINENO: result: no" >&5
44885 $as_echo "no" >&6; }
44886 { $as_echo "$as_me:$LINENO: checking whether bdi_setup_and_register() wants 3 args" >&5
44887 $as_echo_n "checking whether bdi_setup_and_register() wants 3 args... " >&6; }
44888
44889
44890
44891 cat confdefs.h - <<_ACEOF >conftest.c
44892 /* confdefs.h. */
44893 _ACEOF
44894 cat confdefs.h >>conftest.$ac_ext
44895 cat >>conftest.$ac_ext <<_ACEOF
44896 /* end confdefs.h. */
44897
44898
44899 #include <linux/backing-dev.h>
44900 struct backing_dev_info bdi;
44901
44902 int
44903 main (void)
44904 {
44905
44906 char *name = "bdi";
44907 unsigned int cap = BDI_CAP_MAP_COPY;
44908 int error __attribute__((unused)) =
44909 bdi_setup_and_register(&bdi, name, cap);
44910
44911 ;
44912 return 0;
44913 }
44914
44915 _ACEOF
44916
44917
44918
44919 cat - <<_ACEOF >conftest.h
44920
44921 _ACEOF
44922
44923
44924 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
44925 echo "obj-m := conftest.o" >build/Makefile
44926 modpost_flag=''
44927 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
44928 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
44929 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44930 (eval $ac_try) 2>&5
44931 ac_status=$?
44932 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
44933 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
44934 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44935 (eval $ac_try) 2>&5
44936 ac_status=$?
44937 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
44938 (exit $ac_status); }; }; then
44939 rc=0
44940 else
44941 $as_echo "$as_me: failed program was:" >&5
44942 sed 's/^/| /' conftest.$ac_ext >&5
44943 rc=1
44944
44945
44946 fi
44947
44948 rm -Rf build
44949
44950
44951 if test $rc -ne 0; then :
44952
44953 { $as_echo "$as_me:$LINENO: result: no" >&5
44954 $as_echo "no" >&6; }
44955
44956 else
44957 if test "x$enable_linux_builtin" != xyes; then
44958
44959 grep -q -E '[[:space:]]bdi_setup_and_register[[:space:]]' \
44960 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
44961 rc=$?
44962 if test $rc -ne 0; then
44963 export=0
44964 for file in mm/backing-dev.c; do
44965 grep -q -E "EXPORT_SYMBOL.*(bdi_setup_and_register)" \
44966 "$LINUX/$file" 2>/dev/null
44967 rc=$?
44968 if test $rc -eq 0; then
44969 export=1
44970 break;
44971 fi
44972 done
44973 if test $export -eq 0; then :
44974 rc=1
44975 else :
44976 rc=0
44977 fi
44978 else :
44979 rc=0
44980 fi
44981
44982 fi
44983 if test $rc -ne 0; then :
44984
44985 { $as_echo "$as_me:$LINENO: result: no" >&5
44986 $as_echo "no" >&6; }
44987
44988 else :
44989
44990 { $as_echo "$as_me:$LINENO: result: yes" >&5
44991 $as_echo "yes" >&6; }
44992
44993 cat >>confdefs.h <<\_ACEOF
44994 #define HAVE_3ARGS_BDI_SETUP_AND_REGISTER 1
44995 _ACEOF
44996
44997
44998 fi
44999 fi
45000
45001
45002 else :
45003
45004 { $as_echo "$as_me:$LINENO: result: yes" >&5
45005 $as_echo "yes" >&6; }
45006
45007 cat >>confdefs.h <<\_ACEOF
45008 #define HAVE_2ARGS_BDI_SETUP_AND_REGISTER 1
45009 _ACEOF
45010
45011
45012 fi
45013 fi
45014
45015
45016 else
45017 if test "x$enable_linux_builtin" != xyes; then
45018
45019 grep -q -E '[[:space:]]super_setup_bdi_name[[:space:]]' \
45020 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
45021 rc=$?
45022 if test $rc -ne 0; then
45023 export=0
45024 for file in fs/super.c; do
45025 grep -q -E "EXPORT_SYMBOL.*(super_setup_bdi_name)" \
45026 "$LINUX/$file" 2>/dev/null
45027 rc=$?
45028 if test $rc -eq 0; then
45029 export=1
45030 break;
45031 fi
45032 done
45033 if test $export -eq 0; then :
45034 rc=1
45035 else :
45036 rc=0
45037 fi
45038 else :
45039 rc=0
45040 fi
45041
45042 fi
45043 if test $rc -ne 0; then :
45044
45045 { $as_echo "$as_me:$LINENO: result: no" >&5
45046 $as_echo "no" >&6; }
45047 { $as_echo "$as_me:$LINENO: checking whether bdi_setup_and_register() wants 2 args" >&5
45048 $as_echo_n "checking whether bdi_setup_and_register() wants 2 args... " >&6; }
45049
45050
45051
45052 cat confdefs.h - <<_ACEOF >conftest.c
45053 /* confdefs.h. */
45054 _ACEOF
45055 cat confdefs.h >>conftest.$ac_ext
45056 cat >>conftest.$ac_ext <<_ACEOF
45057 /* end confdefs.h. */
45058
45059
45060 #include <linux/backing-dev.h>
45061 struct backing_dev_info bdi;
45062
45063 int
45064 main (void)
45065 {
45066
45067 char *name = "bdi";
45068 int error __attribute__((unused)) =
45069 bdi_setup_and_register(&bdi, name);
45070
45071 ;
45072 return 0;
45073 }
45074
45075 _ACEOF
45076
45077
45078
45079 cat - <<_ACEOF >conftest.h
45080
45081 _ACEOF
45082
45083
45084 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
45085 echo "obj-m := conftest.o" >build/Makefile
45086 modpost_flag=''
45087 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
45088 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
45089 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45090 (eval $ac_try) 2>&5
45091 ac_status=$?
45092 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
45093 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
45094 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45095 (eval $ac_try) 2>&5
45096 ac_status=$?
45097 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
45098 (exit $ac_status); }; }; then
45099 rc=0
45100 else
45101 $as_echo "$as_me: failed program was:" >&5
45102 sed 's/^/| /' conftest.$ac_ext >&5
45103 rc=1
45104
45105
45106 fi
45107
45108 rm -Rf build
45109
45110
45111 if test $rc -ne 0; then :
45112
45113 { $as_echo "$as_me:$LINENO: result: no" >&5
45114 $as_echo "no" >&6; }
45115 { $as_echo "$as_me:$LINENO: checking whether bdi_setup_and_register() wants 3 args" >&5
45116 $as_echo_n "checking whether bdi_setup_and_register() wants 3 args... " >&6; }
45117
45118
45119
45120 cat confdefs.h - <<_ACEOF >conftest.c
45121 /* confdefs.h. */
45122 _ACEOF
45123 cat confdefs.h >>conftest.$ac_ext
45124 cat >>conftest.$ac_ext <<_ACEOF
45125 /* end confdefs.h. */
45126
45127
45128 #include <linux/backing-dev.h>
45129 struct backing_dev_info bdi;
45130
45131 int
45132 main (void)
45133 {
45134
45135 char *name = "bdi";
45136 unsigned int cap = BDI_CAP_MAP_COPY;
45137 int error __attribute__((unused)) =
45138 bdi_setup_and_register(&bdi, name, cap);
45139
45140 ;
45141 return 0;
45142 }
45143
45144 _ACEOF
45145
45146
45147
45148 cat - <<_ACEOF >conftest.h
45149
45150 _ACEOF
45151
45152
45153 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
45154 echo "obj-m := conftest.o" >build/Makefile
45155 modpost_flag=''
45156 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
45157 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
45158 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45159 (eval $ac_try) 2>&5
45160 ac_status=$?
45161 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
45162 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
45163 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45164 (eval $ac_try) 2>&5
45165 ac_status=$?
45166 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
45167 (exit $ac_status); }; }; then
45168 rc=0
45169 else
45170 $as_echo "$as_me: failed program was:" >&5
45171 sed 's/^/| /' conftest.$ac_ext >&5
45172 rc=1
45173
45174
45175 fi
45176
45177 rm -Rf build
45178
45179
45180 if test $rc -ne 0; then :
45181
45182 { $as_echo "$as_me:$LINENO: result: no" >&5
45183 $as_echo "no" >&6; }
45184
45185 else
45186 if test "x$enable_linux_builtin" != xyes; then
45187
45188 grep -q -E '[[:space:]]bdi_setup_and_register[[:space:]]' \
45189 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
45190 rc=$?
45191 if test $rc -ne 0; then
45192 export=0
45193 for file in mm/backing-dev.c; do
45194 grep -q -E "EXPORT_SYMBOL.*(bdi_setup_and_register)" \
45195 "$LINUX/$file" 2>/dev/null
45196 rc=$?
45197 if test $rc -eq 0; then
45198 export=1
45199 break;
45200 fi
45201 done
45202 if test $export -eq 0; then :
45203 rc=1
45204 else :
45205 rc=0
45206 fi
45207 else :
45208 rc=0
45209 fi
45210
45211 fi
45212 if test $rc -ne 0; then :
45213
45214 { $as_echo "$as_me:$LINENO: result: no" >&5
45215 $as_echo "no" >&6; }
45216
45217 else :
45218
45219 { $as_echo "$as_me:$LINENO: result: yes" >&5
45220 $as_echo "yes" >&6; }
45221
45222 cat >>confdefs.h <<\_ACEOF
45223 #define HAVE_3ARGS_BDI_SETUP_AND_REGISTER 1
45224 _ACEOF
45225
45226
45227 fi
45228 fi
45229
45230
45231 else
45232 if test "x$enable_linux_builtin" != xyes; then
45233
45234 grep -q -E '[[:space:]]bdi_setup_and_register[[:space:]]' \
45235 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
45236 rc=$?
45237 if test $rc -ne 0; then
45238 export=0
45239 for file in mm/backing-dev.c; do
45240 grep -q -E "EXPORT_SYMBOL.*(bdi_setup_and_register)" \
45241 "$LINUX/$file" 2>/dev/null
45242 rc=$?
45243 if test $rc -eq 0; then
45244 export=1
45245 break;
45246 fi
45247 done
45248 if test $export -eq 0; then :
45249 rc=1
45250 else :
45251 rc=0
45252 fi
45253 else :
45254 rc=0
45255 fi
45256
45257 fi
45258 if test $rc -ne 0; then :
45259
45260 { $as_echo "$as_me:$LINENO: result: no" >&5
45261 $as_echo "no" >&6; }
45262 { $as_echo "$as_me:$LINENO: checking whether bdi_setup_and_register() wants 3 args" >&5
45263 $as_echo_n "checking whether bdi_setup_and_register() wants 3 args... " >&6; }
45264
45265
45266
45267 cat confdefs.h - <<_ACEOF >conftest.c
45268 /* confdefs.h. */
45269 _ACEOF
45270 cat confdefs.h >>conftest.$ac_ext
45271 cat >>conftest.$ac_ext <<_ACEOF
45272 /* end confdefs.h. */
45273
45274
45275 #include <linux/backing-dev.h>
45276 struct backing_dev_info bdi;
45277
45278 int
45279 main (void)
45280 {
45281
45282 char *name = "bdi";
45283 unsigned int cap = BDI_CAP_MAP_COPY;
45284 int error __attribute__((unused)) =
45285 bdi_setup_and_register(&bdi, name, cap);
45286
45287 ;
45288 return 0;
45289 }
45290
45291 _ACEOF
45292
45293
45294
45295 cat - <<_ACEOF >conftest.h
45296
45297 _ACEOF
45298
45299
45300 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
45301 echo "obj-m := conftest.o" >build/Makefile
45302 modpost_flag=''
45303 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
45304 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
45305 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45306 (eval $ac_try) 2>&5
45307 ac_status=$?
45308 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
45309 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
45310 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45311 (eval $ac_try) 2>&5
45312 ac_status=$?
45313 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
45314 (exit $ac_status); }; }; then
45315 rc=0
45316 else
45317 $as_echo "$as_me: failed program was:" >&5
45318 sed 's/^/| /' conftest.$ac_ext >&5
45319 rc=1
45320
45321
45322 fi
45323
45324 rm -Rf build
45325
45326
45327 if test $rc -ne 0; then :
45328
45329 { $as_echo "$as_me:$LINENO: result: no" >&5
45330 $as_echo "no" >&6; }
45331
45332 else
45333 if test "x$enable_linux_builtin" != xyes; then
45334
45335 grep -q -E '[[:space:]]bdi_setup_and_register[[:space:]]' \
45336 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
45337 rc=$?
45338 if test $rc -ne 0; then
45339 export=0
45340 for file in mm/backing-dev.c; do
45341 grep -q -E "EXPORT_SYMBOL.*(bdi_setup_and_register)" \
45342 "$LINUX/$file" 2>/dev/null
45343 rc=$?
45344 if test $rc -eq 0; then
45345 export=1
45346 break;
45347 fi
45348 done
45349 if test $export -eq 0; then :
45350 rc=1
45351 else :
45352 rc=0
45353 fi
45354 else :
45355 rc=0
45356 fi
45357
45358 fi
45359 if test $rc -ne 0; then :
45360
45361 { $as_echo "$as_me:$LINENO: result: no" >&5
45362 $as_echo "no" >&6; }
45363
45364 else :
45365
45366 { $as_echo "$as_me:$LINENO: result: yes" >&5
45367 $as_echo "yes" >&6; }
45368
45369 cat >>confdefs.h <<\_ACEOF
45370 #define HAVE_3ARGS_BDI_SETUP_AND_REGISTER 1
45371 _ACEOF
45372
45373
45374 fi
45375 fi
45376
45377
45378 else :
45379
45380 { $as_echo "$as_me:$LINENO: result: yes" >&5
45381 $as_echo "yes" >&6; }
45382
45383 cat >>confdefs.h <<\_ACEOF
45384 #define HAVE_2ARGS_BDI_SETUP_AND_REGISTER 1
45385 _ACEOF
45386
45387
45388 fi
45389 fi
45390
45391
45392 else :
45393
45394 { $as_echo "$as_me:$LINENO: result: yes" >&5
45395 $as_echo "yes" >&6; }
45396
45397 cat >>confdefs.h <<\_ACEOF
45398 #define HAVE_SUPER_SETUP_BDI_NAME 1
45399 _ACEOF
45400
45401
45402 fi
45403 fi
45404
45405
45406
45407 { $as_echo "$as_me:$LINENO: checking whether set_nlink() is available" >&5
45408 $as_echo_n "checking whether set_nlink() is available... " >&6; }
45409
45410
45411 cat confdefs.h - <<_ACEOF >conftest.c
45412 /* confdefs.h. */
45413 _ACEOF
45414 cat confdefs.h >>conftest.$ac_ext
45415 cat >>conftest.$ac_ext <<_ACEOF
45416 /* end confdefs.h. */
45417
45418
45419 #include <linux/fs.h>
45420
45421 int
45422 main (void)
45423 {
45424
45425 struct inode node;
45426 unsigned int link = 0;
45427 (void) set_nlink(&node, link);
45428
45429 ;
45430 return 0;
45431 }
45432
45433 _ACEOF
45434
45435
45436
45437 cat - <<_ACEOF >conftest.h
45438
45439 _ACEOF
45440
45441
45442 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
45443 echo "obj-m := conftest.o" >build/Makefile
45444 modpost_flag=''
45445 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
45446 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
45447 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45448 (eval $ac_try) 2>&5
45449 ac_status=$?
45450 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
45451 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
45452 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45453 (eval $ac_try) 2>&5
45454 ac_status=$?
45455 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
45456 (exit $ac_status); }; }; then
45457
45458 { $as_echo "$as_me:$LINENO: result: yes" >&5
45459 $as_echo "yes" >&6; }
45460
45461 cat >>confdefs.h <<\_ACEOF
45462 #define HAVE_SET_NLINK 1
45463 _ACEOF
45464
45465
45466 else
45467 $as_echo "$as_me: failed program was:" >&5
45468 sed 's/^/| /' conftest.$ac_ext >&5
45469
45470 { $as_echo "$as_me:$LINENO: result: no" >&5
45471 $as_echo "no" >&6; }
45472
45473
45474
45475 fi
45476
45477 rm -Rf build
45478
45479
45480
45481
45482 { $as_echo "$as_me:$LINENO: checking whether elevator_change() is available" >&5
45483 $as_echo_n "checking whether elevator_change() is available... " >&6; }
45484 tmp_flags="$EXTRA_KCFLAGS"
45485 EXTRA_KCFLAGS="${NO_UNUSED_BUT_SET_VARIABLE}"
45486
45487
45488 cat confdefs.h - <<_ACEOF >conftest.c
45489 /* confdefs.h. */
45490 _ACEOF
45491 cat confdefs.h >>conftest.$ac_ext
45492 cat >>conftest.$ac_ext <<_ACEOF
45493 /* end confdefs.h. */
45494
45495
45496 #include <linux/blkdev.h>
45497 #include <linux/elevator.h>
45498
45499 int
45500 main (void)
45501 {
45502
45503 int ret;
45504 struct request_queue *q = NULL;
45505 char *elevator = NULL;
45506 ret = elevator_change(q, elevator);
45507
45508 ;
45509 return 0;
45510 }
45511
45512 _ACEOF
45513
45514
45515
45516 cat - <<_ACEOF >conftest.h
45517
45518 _ACEOF
45519
45520
45521 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
45522 echo "obj-m := conftest.o" >build/Makefile
45523 modpost_flag=''
45524 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
45525 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
45526 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45527 (eval $ac_try) 2>&5
45528 ac_status=$?
45529 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
45530 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
45531 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45532 (eval $ac_try) 2>&5
45533 ac_status=$?
45534 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
45535 (exit $ac_status); }; }; then
45536
45537 { $as_echo "$as_me:$LINENO: result: yes" >&5
45538 $as_echo "yes" >&6; }
45539
45540 cat >>confdefs.h <<\_ACEOF
45541 #define HAVE_ELEVATOR_CHANGE 1
45542 _ACEOF
45543
45544
45545 else
45546 $as_echo "$as_me: failed program was:" >&5
45547 sed 's/^/| /' conftest.$ac_ext >&5
45548
45549 { $as_echo "$as_me:$LINENO: result: no" >&5
45550 $as_echo "no" >&6; }
45551
45552
45553
45554 fi
45555
45556 rm -Rf build
45557
45558
45559 EXTRA_KCFLAGS="$tmp_flags"
45560
45561 { $as_echo "$as_me:$LINENO: checking whether sget() wants 5 args" >&5
45562 $as_echo_n "checking whether sget() wants 5 args... " >&6; }
45563
45564
45565 cat confdefs.h - <<_ACEOF >conftest.c
45566 /* confdefs.h. */
45567 _ACEOF
45568 cat confdefs.h >>conftest.$ac_ext
45569 cat >>conftest.$ac_ext <<_ACEOF
45570 /* end confdefs.h. */
45571
45572
45573 #include <linux/fs.h>
45574
45575 int
45576 main (void)
45577 {
45578
45579 struct file_system_type *type = NULL;
45580 int (*test)(struct super_block *,void *) = NULL;
45581 int (*set)(struct super_block *,void *) = NULL;
45582 int flags = 0;
45583 void *data = NULL;
45584 (void) sget(type, test, set, flags, data);
45585
45586 ;
45587 return 0;
45588 }
45589
45590 _ACEOF
45591
45592
45593
45594 cat - <<_ACEOF >conftest.h
45595
45596 _ACEOF
45597
45598
45599 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
45600 echo "obj-m := conftest.o" >build/Makefile
45601 modpost_flag=''
45602 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
45603 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
45604 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45605 (eval $ac_try) 2>&5
45606 ac_status=$?
45607 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
45608 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
45609 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45610 (eval $ac_try) 2>&5
45611 ac_status=$?
45612 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
45613 (exit $ac_status); }; }; then
45614
45615 { $as_echo "$as_me:$LINENO: result: yes" >&5
45616 $as_echo "yes" >&6; }
45617
45618 cat >>confdefs.h <<\_ACEOF
45619 #define HAVE_5ARG_SGET 1
45620 _ACEOF
45621
45622
45623 else
45624 $as_echo "$as_me: failed program was:" >&5
45625 sed 's/^/| /' conftest.$ac_ext >&5
45626
45627 { $as_echo "$as_me:$LINENO: result: no" >&5
45628 $as_echo "no" >&6; }
45629
45630
45631
45632 fi
45633
45634 rm -Rf build
45635
45636
45637
45638 { $as_echo "$as_me:$LINENO: checking whether lseek_execute() is available" >&5
45639 $as_echo_n "checking whether lseek_execute() is available... " >&6; }
45640
45641
45642
45643 cat confdefs.h - <<_ACEOF >conftest.c
45644 /* confdefs.h. */
45645 _ACEOF
45646 cat confdefs.h >>conftest.$ac_ext
45647 cat >>conftest.$ac_ext <<_ACEOF
45648 /* end confdefs.h. */
45649
45650
45651 #include <linux/fs.h>
45652
45653 int
45654 main (void)
45655 {
45656
45657 struct file *fp __attribute__ ((unused)) = NULL;
45658 struct inode *ip __attribute__ ((unused)) = NULL;
45659 loff_t offset __attribute__ ((unused)) = 0;
45660 loff_t maxsize __attribute__ ((unused)) = 0;
45661
45662 lseek_execute(fp, ip, offset, maxsize);
45663
45664 ;
45665 return 0;
45666 }
45667
45668 _ACEOF
45669
45670
45671
45672 cat - <<_ACEOF >conftest.h
45673
45674 _ACEOF
45675
45676
45677 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
45678 echo "obj-m := conftest.o" >build/Makefile
45679 modpost_flag=''
45680 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
45681 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
45682 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45683 (eval $ac_try) 2>&5
45684 ac_status=$?
45685 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
45686 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
45687 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45688 (eval $ac_try) 2>&5
45689 ac_status=$?
45690 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
45691 (exit $ac_status); }; }; then
45692 rc=0
45693 else
45694 $as_echo "$as_me: failed program was:" >&5
45695 sed 's/^/| /' conftest.$ac_ext >&5
45696 rc=1
45697
45698
45699 fi
45700
45701 rm -Rf build
45702
45703
45704 if test $rc -ne 0; then :
45705
45706 { $as_echo "$as_me:$LINENO: result: no" >&5
45707 $as_echo "no" >&6; }
45708
45709 else
45710 if test "x$enable_linux_builtin" != xyes; then
45711
45712 grep -q -E '[[:space:]]lseek_exclusive[[:space:]]' \
45713 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
45714 rc=$?
45715 if test $rc -ne 0; then
45716 export=0
45717 for file in fs/read_write.c; do
45718 grep -q -E "EXPORT_SYMBOL.*(lseek_exclusive)" \
45719 "$LINUX/$file" 2>/dev/null
45720 rc=$?
45721 if test $rc -eq 0; then
45722 export=1
45723 break;
45724 fi
45725 done
45726 if test $export -eq 0; then :
45727 rc=1
45728 else :
45729 rc=0
45730 fi
45731 else :
45732 rc=0
45733 fi
45734
45735 fi
45736 if test $rc -ne 0; then :
45737
45738 { $as_echo "$as_me:$LINENO: result: no" >&5
45739 $as_echo "no" >&6; }
45740
45741 else :
45742
45743 { $as_echo "$as_me:$LINENO: result: yes" >&5
45744 $as_echo "yes" >&6; }
45745
45746 cat >>confdefs.h <<\_ACEOF
45747 #define HAVE_LSEEK_EXECUTE 1
45748 _ACEOF
45749
45750
45751 fi
45752 fi
45753
45754
45755
45756 { $as_echo "$as_me:$LINENO: checking whether fops->iterate_shared() is available" >&5
45757 $as_echo_n "checking whether fops->iterate_shared() is available... " >&6; }
45758
45759
45760 cat confdefs.h - <<_ACEOF >conftest.c
45761 /* confdefs.h. */
45762 _ACEOF
45763 cat confdefs.h >>conftest.$ac_ext
45764 cat >>conftest.$ac_ext <<_ACEOF
45765 /* end confdefs.h. */
45766
45767
45768 #include <linux/fs.h>
45769 int iterate(struct file *filp, struct dir_context * context)
45770 { return 0; }
45771
45772 static const struct file_operations fops
45773 __attribute__ ((unused)) = {
45774 .iterate_shared = iterate,
45775 };
45776
45777 int
45778 main (void)
45779 {
45780
45781
45782 ;
45783 return 0;
45784 }
45785
45786 _ACEOF
45787
45788
45789
45790 cat - <<_ACEOF >conftest.h
45791
45792 _ACEOF
45793
45794
45795 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
45796 echo "obj-m := conftest.o" >build/Makefile
45797 modpost_flag=''
45798 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
45799 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
45800 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45801 (eval $ac_try) 2>&5
45802 ac_status=$?
45803 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
45804 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
45805 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45806 (eval $ac_try) 2>&5
45807 ac_status=$?
45808 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
45809 (exit $ac_status); }; }; then
45810
45811 { $as_echo "$as_me:$LINENO: result: yes" >&5
45812 $as_echo "yes" >&6; }
45813
45814 cat >>confdefs.h <<\_ACEOF
45815 #define HAVE_VFS_ITERATE_SHARED 1
45816 _ACEOF
45817
45818
45819 else
45820 $as_echo "$as_me: failed program was:" >&5
45821 sed 's/^/| /' conftest.$ac_ext >&5
45822
45823 { $as_echo "$as_me:$LINENO: result: no" >&5
45824 $as_echo "no" >&6; }
45825
45826 { $as_echo "$as_me:$LINENO: checking whether fops->iterate() is available" >&5
45827 $as_echo_n "checking whether fops->iterate() is available... " >&6; }
45828
45829
45830 cat confdefs.h - <<_ACEOF >conftest.c
45831 /* confdefs.h. */
45832 _ACEOF
45833 cat confdefs.h >>conftest.$ac_ext
45834 cat >>conftest.$ac_ext <<_ACEOF
45835 /* end confdefs.h. */
45836
45837
45838 #include <linux/fs.h>
45839 int iterate(struct file *filp,
45840 struct dir_context *context) { return 0; }
45841
45842 static const struct file_operations fops
45843 __attribute__ ((unused)) = {
45844 .iterate = iterate,
45845 };
45846
45847 #if defined(FMODE_KABI_ITERATE)
45848 #error "RHEL 7.5, FMODE_KABI_ITERATE interface"
45849 #endif
45850
45851 int
45852 main (void)
45853 {
45854
45855
45856 ;
45857 return 0;
45858 }
45859
45860 _ACEOF
45861
45862
45863
45864 cat - <<_ACEOF >conftest.h
45865
45866 _ACEOF
45867
45868
45869 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
45870 echo "obj-m := conftest.o" >build/Makefile
45871 modpost_flag=''
45872 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
45873 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
45874 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45875 (eval $ac_try) 2>&5
45876 ac_status=$?
45877 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
45878 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
45879 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45880 (eval $ac_try) 2>&5
45881 ac_status=$?
45882 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
45883 (exit $ac_status); }; }; then
45884
45885 { $as_echo "$as_me:$LINENO: result: yes" >&5
45886 $as_echo "yes" >&6; }
45887
45888 cat >>confdefs.h <<\_ACEOF
45889 #define HAVE_VFS_ITERATE 1
45890 _ACEOF
45891
45892
45893 else
45894 $as_echo "$as_me: failed program was:" >&5
45895 sed 's/^/| /' conftest.$ac_ext >&5
45896
45897 { $as_echo "$as_me:$LINENO: result: no" >&5
45898 $as_echo "no" >&6; }
45899
45900 { $as_echo "$as_me:$LINENO: checking whether fops->readdir() is available" >&5
45901 $as_echo_n "checking whether fops->readdir() is available... " >&6; }
45902
45903
45904 cat confdefs.h - <<_ACEOF >conftest.c
45905 /* confdefs.h. */
45906 _ACEOF
45907 cat confdefs.h >>conftest.$ac_ext
45908 cat >>conftest.$ac_ext <<_ACEOF
45909 /* end confdefs.h. */
45910
45911
45912 #include <linux/fs.h>
45913 int readdir(struct file *filp, void *entry,
45914 filldir_t func) { return 0; }
45915
45916 static const struct file_operations fops
45917 __attribute__ ((unused)) = {
45918 .readdir = readdir,
45919 };
45920
45921 int
45922 main (void)
45923 {
45924
45925
45926 ;
45927 return 0;
45928 }
45929
45930 _ACEOF
45931
45932
45933
45934 cat - <<_ACEOF >conftest.h
45935
45936 _ACEOF
45937
45938
45939 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
45940 echo "obj-m := conftest.o" >build/Makefile
45941 modpost_flag=''
45942 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
45943 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
45944 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45945 (eval $ac_try) 2>&5
45946 ac_status=$?
45947 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
45948 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
45949 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45950 (eval $ac_try) 2>&5
45951 ac_status=$?
45952 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
45953 (exit $ac_status); }; }; then
45954
45955 { $as_echo "$as_me:$LINENO: result: yes" >&5
45956 $as_echo "yes" >&6; }
45957
45958 cat >>confdefs.h <<\_ACEOF
45959 #define HAVE_VFS_READDIR 1
45960 _ACEOF
45961
45962
45963 else
45964 $as_echo "$as_me: failed program was:" >&5
45965 sed 's/^/| /' conftest.$ac_ext >&5
45966
45967 { { $as_echo "$as_me:$LINENO: error: no; file a bug report with ZoL" >&5
45968 $as_echo "$as_me: error: no; file a bug report with ZoL" >&2;}
45969 { (exit 1); exit 1; }; }
45970
45971
45972
45973 fi
45974
45975 rm -Rf build
45976
45977
45978
45979
45980
45981 fi
45982
45983 rm -Rf build
45984
45985
45986
45987
45988
45989 fi
45990
45991 rm -Rf build
45992
45993
45994
45995 { $as_echo "$as_me:$LINENO: checking whether fops->read/write_iter() are available" >&5
45996 $as_echo_n "checking whether fops->read/write_iter() are available... " >&6; }
45997
45998
45999 cat confdefs.h - <<_ACEOF >conftest.c
46000 /* confdefs.h. */
46001 _ACEOF
46002 cat confdefs.h >>conftest.$ac_ext
46003 cat >>conftest.$ac_ext <<_ACEOF
46004 /* end confdefs.h. */
46005
46006
46007 #include <linux/fs.h>
46008
46009 ssize_t test_read(struct kiocb *kiocb, struct iov_iter *to)
46010 { return 0; }
46011 ssize_t test_write(struct kiocb *kiocb, struct iov_iter *from)
46012 { return 0; }
46013
46014 static const struct file_operations
46015 fops __attribute__ ((unused)) = {
46016 .read_iter = test_read,
46017 .write_iter = test_write,
46018 };
46019
46020 int
46021 main (void)
46022 {
46023
46024
46025 ;
46026 return 0;
46027 }
46028
46029 _ACEOF
46030
46031
46032
46033 cat - <<_ACEOF >conftest.h
46034
46035 _ACEOF
46036
46037
46038 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
46039 echo "obj-m := conftest.o" >build/Makefile
46040 modpost_flag=''
46041 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
46042 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
46043 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46044 (eval $ac_try) 2>&5
46045 ac_status=$?
46046 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
46047 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
46048 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46049 (eval $ac_try) 2>&5
46050 ac_status=$?
46051 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
46052 (exit $ac_status); }; }; then
46053
46054 { $as_echo "$as_me:$LINENO: result: yes" >&5
46055 $as_echo "yes" >&6; }
46056
46057 cat >>confdefs.h <<\_ACEOF
46058 #define HAVE_VFS_RW_ITERATE 1
46059 _ACEOF
46060
46061
46062 { $as_echo "$as_me:$LINENO: checking whether new_sync_read/write() are available" >&5
46063 $as_echo_n "checking whether new_sync_read/write() are available... " >&6; }
46064
46065
46066 cat confdefs.h - <<_ACEOF >conftest.c
46067 /* confdefs.h. */
46068 _ACEOF
46069 cat confdefs.h >>conftest.$ac_ext
46070 cat >>conftest.$ac_ext <<_ACEOF
46071 /* end confdefs.h. */
46072
46073
46074 #include <linux/fs.h>
46075
46076 int
46077 main (void)
46078 {
46079
46080 ssize_t ret __attribute__ ((unused));
46081 struct file *filp = NULL;
46082 char __user *rbuf = NULL;
46083 const char __user *wbuf = NULL;
46084 size_t len = 0;
46085 loff_t ppos;
46086
46087 ret = new_sync_read(filp, rbuf, len, &ppos);
46088 ret = new_sync_write(filp, wbuf, len, &ppos);
46089
46090 ;
46091 return 0;
46092 }
46093
46094 _ACEOF
46095
46096
46097
46098 cat - <<_ACEOF >conftest.h
46099
46100 _ACEOF
46101
46102
46103 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
46104 echo "obj-m := conftest.o" >build/Makefile
46105 modpost_flag=''
46106 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
46107 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
46108 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46109 (eval $ac_try) 2>&5
46110 ac_status=$?
46111 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
46112 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
46113 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46114 (eval $ac_try) 2>&5
46115 ac_status=$?
46116 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
46117 (exit $ac_status); }; }; then
46118
46119 { $as_echo "$as_me:$LINENO: result: yes" >&5
46120 $as_echo "yes" >&6; }
46121
46122 cat >>confdefs.h <<\_ACEOF
46123 #define HAVE_NEW_SYNC_READ 1
46124 _ACEOF
46125
46126
46127 else
46128 $as_echo "$as_me: failed program was:" >&5
46129 sed 's/^/| /' conftest.$ac_ext >&5
46130
46131 { $as_echo "$as_me:$LINENO: result: no" >&5
46132 $as_echo "no" >&6; }
46133
46134
46135
46136 fi
46137
46138 rm -Rf build
46139
46140
46141
46142
46143 else
46144 $as_echo "$as_me: failed program was:" >&5
46145 sed 's/^/| /' conftest.$ac_ext >&5
46146
46147 { $as_echo "$as_me:$LINENO: result: no" >&5
46148 $as_echo "no" >&6; }
46149
46150
46151
46152 fi
46153
46154 rm -Rf build
46155
46156
46157
46158 { $as_echo "$as_me:$LINENO: checking whether generic_write_checks() takes kiocb" >&5
46159 $as_echo_n "checking whether generic_write_checks() takes kiocb... " >&6; }
46160
46161
46162 cat confdefs.h - <<_ACEOF >conftest.c
46163 /* confdefs.h. */
46164 _ACEOF
46165 cat confdefs.h >>conftest.$ac_ext
46166 cat >>conftest.$ac_ext <<_ACEOF
46167 /* end confdefs.h. */
46168
46169
46170 #include <linux/fs.h>
46171
46172
46173 int
46174 main (void)
46175 {
46176
46177 struct kiocb *iocb = NULL;
46178 struct iov_iter *iov = NULL;
46179 generic_write_checks(iocb, iov);
46180
46181 ;
46182 return 0;
46183 }
46184
46185 _ACEOF
46186
46187
46188
46189 cat - <<_ACEOF >conftest.h
46190
46191 _ACEOF
46192
46193
46194 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
46195 echo "obj-m := conftest.o" >build/Makefile
46196 modpost_flag=''
46197 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
46198 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
46199 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46200 (eval $ac_try) 2>&5
46201 ac_status=$?
46202 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
46203 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
46204 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46205 (eval $ac_try) 2>&5
46206 ac_status=$?
46207 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
46208 (exit $ac_status); }; }; then
46209
46210 { $as_echo "$as_me:$LINENO: result: yes" >&5
46211 $as_echo "yes" >&6; }
46212
46213 cat >>confdefs.h <<\_ACEOF
46214 #define HAVE_GENERIC_WRITE_CHECKS_KIOCB 1
46215 _ACEOF
46216
46217
46218 else
46219 $as_echo "$as_me: failed program was:" >&5
46220 sed 's/^/| /' conftest.$ac_ext >&5
46221
46222 { $as_echo "$as_me:$LINENO: result: no" >&5
46223 $as_echo "no" >&6; }
46224
46225
46226
46227 fi
46228
46229 rm -Rf build
46230
46231
46232
46233
46234 { $as_echo "$as_me:$LINENO: checking whether kmap_atomic wants 1 args" >&5
46235 $as_echo_n "checking whether kmap_atomic wants 1 args... " >&6; }
46236
46237
46238 cat confdefs.h - <<_ACEOF >conftest.c
46239 /* confdefs.h. */
46240 _ACEOF
46241 cat confdefs.h >>conftest.$ac_ext
46242 cat >>conftest.$ac_ext <<_ACEOF
46243 /* end confdefs.h. */
46244
46245
46246 #include <linux/pagemap.h>
46247
46248 int
46249 main (void)
46250 {
46251
46252 struct page page;
46253 kmap_atomic(&page);
46254
46255 ;
46256 return 0;
46257 }
46258
46259 _ACEOF
46260
46261
46262
46263 cat - <<_ACEOF >conftest.h
46264
46265 _ACEOF
46266
46267
46268 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
46269 echo "obj-m := conftest.o" >build/Makefile
46270 modpost_flag=''
46271 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
46272 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
46273 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46274 (eval $ac_try) 2>&5
46275 ac_status=$?
46276 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
46277 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
46278 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46279 (eval $ac_try) 2>&5
46280 ac_status=$?
46281 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
46282 (exit $ac_status); }; }; then
46283
46284 { $as_echo "$as_me:$LINENO: result: yes" >&5
46285 $as_echo "yes" >&6; }
46286
46287 cat >>confdefs.h <<\_ACEOF
46288 #define HAVE_1ARG_KMAP_ATOMIC 1
46289 _ACEOF
46290
46291
46292 else
46293 $as_echo "$as_me: failed program was:" >&5
46294 sed 's/^/| /' conftest.$ac_ext >&5
46295
46296 { $as_echo "$as_me:$LINENO: result: no" >&5
46297 $as_echo "no" >&6; }
46298
46299
46300
46301 fi
46302
46303 rm -Rf build
46304
46305
46306
46307
46308 { $as_echo "$as_me:$LINENO: checking whether follow_down_one() is available" >&5
46309 $as_echo_n "checking whether follow_down_one() is available... " >&6; }
46310
46311
46312 cat confdefs.h - <<_ACEOF >conftest.c
46313 /* confdefs.h. */
46314 _ACEOF
46315 cat confdefs.h >>conftest.$ac_ext
46316 cat >>conftest.$ac_ext <<_ACEOF
46317 /* end confdefs.h. */
46318
46319
46320 #include <linux/namei.h>
46321
46322 int
46323 main (void)
46324 {
46325
46326 struct path *p = NULL;
46327 follow_down_one(p);
46328
46329 ;
46330 return 0;
46331 }
46332
46333 _ACEOF
46334
46335
46336
46337 cat - <<_ACEOF >conftest.h
46338
46339 _ACEOF
46340
46341
46342 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
46343 echo "obj-m := conftest.o" >build/Makefile
46344 modpost_flag=''
46345 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
46346 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
46347 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46348 (eval $ac_try) 2>&5
46349 ac_status=$?
46350 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
46351 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
46352 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46353 (eval $ac_try) 2>&5
46354 ac_status=$?
46355 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
46356 (exit $ac_status); }; }; then
46357
46358 { $as_echo "$as_me:$LINENO: result: yes" >&5
46359 $as_echo "yes" >&6; }
46360
46361 cat >>confdefs.h <<\_ACEOF
46362 #define HAVE_FOLLOW_DOWN_ONE 1
46363 _ACEOF
46364
46365
46366 else
46367 $as_echo "$as_me: failed program was:" >&5
46368 sed 's/^/| /' conftest.$ac_ext >&5
46369
46370 { $as_echo "$as_me:$LINENO: result: no" >&5
46371 $as_echo "no" >&6; }
46372
46373
46374
46375 fi
46376
46377 rm -Rf build
46378
46379
46380
46381
46382 { $as_echo "$as_me:$LINENO: checking whether make_request_fn() returns int" >&5
46383 $as_echo_n "checking whether make_request_fn() returns int... " >&6; }
46384
46385
46386 cat confdefs.h - <<_ACEOF >conftest.c
46387 /* confdefs.h. */
46388 _ACEOF
46389 cat confdefs.h >>conftest.$ac_ext
46390 cat >>conftest.$ac_ext <<_ACEOF
46391 /* end confdefs.h. */
46392
46393
46394 #include <linux/blkdev.h>
46395
46396 int make_request(struct request_queue *q, struct bio *bio)
46397 {
46398 return (0);
46399 }
46400
46401 int
46402 main (void)
46403 {
46404
46405 blk_queue_make_request(NULL, &make_request);
46406
46407 ;
46408 return 0;
46409 }
46410
46411 _ACEOF
46412
46413
46414
46415 cat - <<_ACEOF >conftest.h
46416
46417 _ACEOF
46418
46419
46420 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
46421 echo "obj-m := conftest.o" >build/Makefile
46422 modpost_flag=''
46423 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
46424 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
46425 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46426 (eval $ac_try) 2>&5
46427 ac_status=$?
46428 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
46429 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
46430 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46431 (eval $ac_try) 2>&5
46432 ac_status=$?
46433 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
46434 (exit $ac_status); }; }; then
46435
46436 { $as_echo "$as_me:$LINENO: result: yes" >&5
46437 $as_echo "yes" >&6; }
46438
46439 cat >>confdefs.h <<\_ACEOF
46440 #define MAKE_REQUEST_FN_RET int
46441 _ACEOF
46442
46443
46444 cat >>confdefs.h <<\_ACEOF
46445 #define HAVE_MAKE_REQUEST_FN_RET_INT 1
46446 _ACEOF
46447
46448
46449 else
46450 $as_echo "$as_me: failed program was:" >&5
46451 sed 's/^/| /' conftest.$ac_ext >&5
46452
46453 { $as_echo "$as_me:$LINENO: result: no" >&5
46454 $as_echo "no" >&6; }
46455 { $as_echo "$as_me:$LINENO: checking whether make_request_fn() returns void" >&5
46456 $as_echo_n "checking whether make_request_fn() returns void... " >&6; }
46457
46458
46459 cat confdefs.h - <<_ACEOF >conftest.c
46460 /* confdefs.h. */
46461 _ACEOF
46462 cat confdefs.h >>conftest.$ac_ext
46463 cat >>conftest.$ac_ext <<_ACEOF
46464 /* end confdefs.h. */
46465
46466
46467 #include <linux/blkdev.h>
46468
46469 void make_request(struct request_queue *q, struct bio *bio)
46470 {
46471 return;
46472 }
46473
46474 int
46475 main (void)
46476 {
46477
46478 blk_queue_make_request(NULL, &make_request);
46479
46480 ;
46481 return 0;
46482 }
46483
46484 _ACEOF
46485
46486
46487
46488 cat - <<_ACEOF >conftest.h
46489
46490 _ACEOF
46491
46492
46493 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
46494 echo "obj-m := conftest.o" >build/Makefile
46495 modpost_flag=''
46496 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
46497 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
46498 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46499 (eval $ac_try) 2>&5
46500 ac_status=$?
46501 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
46502 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
46503 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46504 (eval $ac_try) 2>&5
46505 ac_status=$?
46506 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
46507 (exit $ac_status); }; }; then
46508
46509 { $as_echo "$as_me:$LINENO: result: yes" >&5
46510 $as_echo "yes" >&6; }
46511
46512 cat >>confdefs.h <<\_ACEOF
46513 #define MAKE_REQUEST_FN_RET void
46514 _ACEOF
46515
46516
46517 else
46518 $as_echo "$as_me: failed program was:" >&5
46519 sed 's/^/| /' conftest.$ac_ext >&5
46520
46521 { $as_echo "$as_me:$LINENO: result: no" >&5
46522 $as_echo "no" >&6; }
46523 { $as_echo "$as_me:$LINENO: checking whether make_request_fn() returns blk_qc_t" >&5
46524 $as_echo_n "checking whether make_request_fn() returns blk_qc_t... " >&6; }
46525
46526
46527 cat confdefs.h - <<_ACEOF >conftest.c
46528 /* confdefs.h. */
46529 _ACEOF
46530 cat confdefs.h >>conftest.$ac_ext
46531 cat >>conftest.$ac_ext <<_ACEOF
46532 /* end confdefs.h. */
46533
46534
46535 #include <linux/blkdev.h>
46536
46537 blk_qc_t make_request(struct request_queue *q, struct bio *bio)
46538 {
46539 return (BLK_QC_T_NONE);
46540 }
46541
46542 int
46543 main (void)
46544 {
46545
46546 blk_queue_make_request(NULL, &make_request);
46547
46548 ;
46549 return 0;
46550 }
46551
46552 _ACEOF
46553
46554
46555
46556 cat - <<_ACEOF >conftest.h
46557
46558 _ACEOF
46559
46560
46561 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
46562 echo "obj-m := conftest.o" >build/Makefile
46563 modpost_flag=''
46564 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
46565 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
46566 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46567 (eval $ac_try) 2>&5
46568 ac_status=$?
46569 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
46570 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
46571 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46572 (eval $ac_try) 2>&5
46573 ac_status=$?
46574 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
46575 (exit $ac_status); }; }; then
46576
46577 { $as_echo "$as_me:$LINENO: result: yes" >&5
46578 $as_echo "yes" >&6; }
46579
46580 cat >>confdefs.h <<\_ACEOF
46581 #define MAKE_REQUEST_FN_RET blk_qc_t
46582 _ACEOF
46583
46584
46585 cat >>confdefs.h <<\_ACEOF
46586 #define HAVE_MAKE_REQUEST_FN_RET_QC 1
46587 _ACEOF
46588
46589
46590 else
46591 $as_echo "$as_me: failed program was:" >&5
46592 sed 's/^/| /' conftest.$ac_ext >&5
46593
46594 { { $as_echo "$as_me:$LINENO: error: no - Please file a bug report at
46595 https://github.com/zfsonlinux/zfs/issues/new" >&5
46596 $as_echo "$as_me: error: no - Please file a bug report at
46597 https://github.com/zfsonlinux/zfs/issues/new" >&2;}
46598 { (exit 1); exit 1; }; }
46599
46600
46601
46602 fi
46603
46604 rm -Rf build
46605
46606
46607
46608
46609
46610 fi
46611
46612 rm -Rf build
46613
46614
46615
46616
46617
46618 fi
46619
46620 rm -Rf build
46621
46622
46623
46624
46625 { $as_echo "$as_me:$LINENO: checking whether 3 arg generic IO accounting symbols are available" >&5
46626 $as_echo_n "checking whether 3 arg generic IO accounting symbols are available... " >&6; }
46627
46628
46629
46630 cat confdefs.h - <<_ACEOF >conftest.c
46631 /* confdefs.h. */
46632 _ACEOF
46633 cat confdefs.h >>conftest.$ac_ext
46634 cat >>conftest.$ac_ext <<_ACEOF
46635 /* end confdefs.h. */
46636
46637
46638 #include <linux/bio.h>
46639
46640 void (*generic_start_io_acct_f)(int, unsigned long,
46641 struct hd_struct *) = &generic_start_io_acct;
46642 void (*generic_end_io_acct_f)(int, struct hd_struct *,
46643 unsigned long) = &generic_end_io_acct;
46644
46645 int
46646 main (void)
46647 {
46648
46649 generic_start_io_acct(0, 0, NULL);
46650 generic_end_io_acct(0, NULL, 0);
46651
46652 ;
46653 return 0;
46654 }
46655
46656 _ACEOF
46657
46658
46659
46660 cat - <<_ACEOF >conftest.h
46661
46662 _ACEOF
46663
46664
46665 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
46666 echo "obj-m := conftest.o" >build/Makefile
46667 modpost_flag=''
46668 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
46669 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
46670 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46671 (eval $ac_try) 2>&5
46672 ac_status=$?
46673 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
46674 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
46675 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46676 (eval $ac_try) 2>&5
46677 ac_status=$?
46678 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
46679 (exit $ac_status); }; }; then
46680 rc=0
46681 else
46682 $as_echo "$as_me: failed program was:" >&5
46683 sed 's/^/| /' conftest.$ac_ext >&5
46684 rc=1
46685
46686
46687 fi
46688
46689 rm -Rf build
46690
46691
46692 if test $rc -ne 0; then :
46693
46694 { $as_echo "$as_me:$LINENO: result: no" >&5
46695 $as_echo "no" >&6; }
46696
46697 else
46698 if test "x$enable_linux_builtin" != xyes; then
46699
46700 grep -q -E '[[:space:]]generic_start_io_acct[[:space:]]' \
46701 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
46702 rc=$?
46703 if test $rc -ne 0; then
46704 export=0
46705 for file in block/bio.c; do
46706 grep -q -E "EXPORT_SYMBOL.*(generic_start_io_acct)" \
46707 "$LINUX/$file" 2>/dev/null
46708 rc=$?
46709 if test $rc -eq 0; then
46710 export=1
46711 break;
46712 fi
46713 done
46714 if test $export -eq 0; then :
46715 rc=1
46716 else :
46717 rc=0
46718 fi
46719 else :
46720 rc=0
46721 fi
46722
46723 fi
46724 if test $rc -ne 0; then :
46725
46726 { $as_echo "$as_me:$LINENO: result: no" >&5
46727 $as_echo "no" >&6; }
46728
46729 else :
46730
46731 { $as_echo "$as_me:$LINENO: result: yes" >&5
46732 $as_echo "yes" >&6; }
46733
46734 cat >>confdefs.h <<\_ACEOF
46735 #define HAVE_GENERIC_IO_ACCT_3ARG 1
46736 _ACEOF
46737
46738
46739 fi
46740 fi
46741
46742
46743
46744 { $as_echo "$as_me:$LINENO: checking whether 4 arg generic IO accounting symbols are available" >&5
46745 $as_echo_n "checking whether 4 arg generic IO accounting symbols are available... " >&6; }
46746
46747
46748
46749 cat confdefs.h - <<_ACEOF >conftest.c
46750 /* confdefs.h. */
46751 _ACEOF
46752 cat confdefs.h >>conftest.$ac_ext
46753 cat >>conftest.$ac_ext <<_ACEOF
46754 /* end confdefs.h. */
46755
46756
46757 #include <linux/bio.h>
46758
46759 void (*generic_start_io_acct_f)(struct request_queue *, int,
46760 unsigned long, struct hd_struct *) = &generic_start_io_acct;
46761 void (*generic_end_io_acct_f)(struct request_queue *, int,
46762 struct hd_struct *, unsigned long) = &generic_end_io_acct;
46763
46764 int
46765 main (void)
46766 {
46767
46768 generic_start_io_acct(NULL, 0, 0, NULL);
46769 generic_end_io_acct(NULL, 0, NULL, 0);
46770
46771 ;
46772 return 0;
46773 }
46774
46775 _ACEOF
46776
46777
46778
46779 cat - <<_ACEOF >conftest.h
46780
46781 _ACEOF
46782
46783
46784 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
46785 echo "obj-m := conftest.o" >build/Makefile
46786 modpost_flag=''
46787 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
46788 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
46789 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46790 (eval $ac_try) 2>&5
46791 ac_status=$?
46792 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
46793 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
46794 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46795 (eval $ac_try) 2>&5
46796 ac_status=$?
46797 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
46798 (exit $ac_status); }; }; then
46799 rc=0
46800 else
46801 $as_echo "$as_me: failed program was:" >&5
46802 sed 's/^/| /' conftest.$ac_ext >&5
46803 rc=1
46804
46805
46806 fi
46807
46808 rm -Rf build
46809
46810
46811 if test $rc -ne 0; then :
46812
46813 { $as_echo "$as_me:$LINENO: result: no" >&5
46814 $as_echo "no" >&6; }
46815
46816 else
46817 if test "x$enable_linux_builtin" != xyes; then
46818
46819 grep -q -E '[[:space:]]generic_start_io_acct[[:space:]]' \
46820 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
46821 rc=$?
46822 if test $rc -ne 0; then
46823 export=0
46824 for file in block/bio.c; do
46825 grep -q -E "EXPORT_SYMBOL.*(generic_start_io_acct)" \
46826 "$LINUX/$file" 2>/dev/null
46827 rc=$?
46828 if test $rc -eq 0; then
46829 export=1
46830 break;
46831 fi
46832 done
46833 if test $export -eq 0; then :
46834 rc=1
46835 else :
46836 rc=0
46837 fi
46838 else :
46839 rc=0
46840 fi
46841
46842 fi
46843 if test $rc -ne 0; then :
46844
46845 { $as_echo "$as_me:$LINENO: result: no" >&5
46846 $as_echo "no" >&6; }
46847
46848 else :
46849
46850 { $as_echo "$as_me:$LINENO: result: yes" >&5
46851 $as_echo "yes" >&6; }
46852
46853 cat >>confdefs.h <<\_ACEOF
46854 #define HAVE_GENERIC_IO_ACCT_4ARG 1
46855 _ACEOF
46856
46857
46858 fi
46859 fi
46860
46861
46862
46863 { $as_echo "$as_me:$LINENO: checking whether asm/fpu/api.h exists" >&5
46864 $as_echo_n "checking whether asm/fpu/api.h exists... " >&6; }
46865
46866
46867 cat confdefs.h - <<_ACEOF >conftest.c
46868 /* confdefs.h. */
46869 _ACEOF
46870 cat confdefs.h >>conftest.$ac_ext
46871 cat >>conftest.$ac_ext <<_ACEOF
46872 /* end confdefs.h. */
46873
46874
46875 #include <linux/kernel.h>
46876 #include <asm/fpu/api.h>
46877
46878 int
46879 main (void)
46880 {
46881
46882 __kernel_fpu_begin();
46883
46884 ;
46885 return 0;
46886 }
46887
46888 _ACEOF
46889
46890
46891
46892 cat - <<_ACEOF >conftest.h
46893
46894 _ACEOF
46895
46896
46897 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
46898 echo "obj-m := conftest.o" >build/Makefile
46899 modpost_flag=''
46900 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
46901 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
46902 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46903 (eval $ac_try) 2>&5
46904 ac_status=$?
46905 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
46906 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
46907 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46908 (eval $ac_try) 2>&5
46909 ac_status=$?
46910 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
46911 (exit $ac_status); }; }; then
46912
46913 { $as_echo "$as_me:$LINENO: result: yes" >&5
46914 $as_echo "yes" >&6; }
46915
46916 cat >>confdefs.h <<\_ACEOF
46917 #define HAVE_FPU_API_H 1
46918 _ACEOF
46919
46920
46921 else
46922 $as_echo "$as_me: failed program was:" >&5
46923 sed 's/^/| /' conftest.$ac_ext >&5
46924
46925 { $as_echo "$as_me:$LINENO: result: no" >&5
46926 $as_echo "no" >&6; }
46927
46928
46929
46930 fi
46931
46932 rm -Rf build
46933
46934
46935
46936
46937 { $as_echo "$as_me:$LINENO: checking whether i_(uid|gid)_(read|write) exist" >&5
46938 $as_echo_n "checking whether i_(uid|gid)_(read|write) exist... " >&6; }
46939
46940
46941 cat confdefs.h - <<_ACEOF >conftest.c
46942 /* confdefs.h. */
46943 _ACEOF
46944 cat confdefs.h >>conftest.$ac_ext
46945 cat >>conftest.$ac_ext <<_ACEOF
46946 /* end confdefs.h. */
46947
46948
46949 #include <linux/fs.h>
46950
46951 int
46952 main (void)
46953 {
46954
46955 struct inode *ip = NULL;
46956 (void) i_uid_read(ip);
46957
46958 ;
46959 return 0;
46960 }
46961
46962 _ACEOF
46963
46964
46965
46966 cat - <<_ACEOF >conftest.h
46967
46968 _ACEOF
46969
46970
46971 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
46972 echo "obj-m := conftest.o" >build/Makefile
46973 modpost_flag=''
46974 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
46975 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
46976 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46977 (eval $ac_try) 2>&5
46978 ac_status=$?
46979 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
46980 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
46981 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46982 (eval $ac_try) 2>&5
46983 ac_status=$?
46984 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
46985 (exit $ac_status); }; }; then
46986
46987 { $as_echo "$as_me:$LINENO: result: yes" >&5
46988 $as_echo "yes" >&6; }
46989
46990 cat >>confdefs.h <<\_ACEOF
46991 #define HAVE_KUID_HELPERS 1
46992 _ACEOF
46993
46994
46995 else
46996 $as_echo "$as_me: failed program was:" >&5
46997 sed 's/^/| /' conftest.$ac_ext >&5
46998
46999 { $as_echo "$as_me:$LINENO: result: no" >&5
47000 $as_echo "no" >&6; }
47001
47002
47003
47004 fi
47005
47006 rm -Rf build
47007
47008
47009
47010
47011 { $as_echo "$as_me:$LINENO: checking whether module_param_call() is hardened" >&5
47012 $as_echo_n "checking whether module_param_call() is hardened... " >&6; }
47013
47014
47015 cat confdefs.h - <<_ACEOF >conftest.c
47016 /* confdefs.h. */
47017 _ACEOF
47018 cat confdefs.h >>conftest.$ac_ext
47019 cat >>conftest.$ac_ext <<_ACEOF
47020 /* end confdefs.h. */
47021
47022
47023 #include <linux/module.h>
47024 #include <linux/moduleparam.h>
47025
47026 int param_get(char *b, const struct kernel_param *kp)
47027 {
47028 return (0);
47029 }
47030
47031 int param_set(const char *b, const struct kernel_param *kp)
47032 {
47033 return (0);
47034 }
47035
47036 module_param_call(p, param_set, param_get, NULL, 0644);
47037
47038 int
47039 main (void)
47040 {
47041
47042
47043 ;
47044 return 0;
47045 }
47046
47047 _ACEOF
47048
47049
47050
47051 cat - <<_ACEOF >conftest.h
47052
47053 _ACEOF
47054
47055
47056 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
47057 echo "obj-m := conftest.o" >build/Makefile
47058 modpost_flag=''
47059 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
47060 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
47061 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47062 (eval $ac_try) 2>&5
47063 ac_status=$?
47064 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
47065 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
47066 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47067 (eval $ac_try) 2>&5
47068 ac_status=$?
47069 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
47070 (exit $ac_status); }; }; then
47071
47072 { $as_echo "$as_me:$LINENO: result: yes" >&5
47073 $as_echo "yes" >&6; }
47074
47075 cat >>confdefs.h <<\_ACEOF
47076 #define MODULE_PARAM_CALL_CONST 1
47077 _ACEOF
47078
47079
47080 else
47081 $as_echo "$as_me: failed program was:" >&5
47082 sed 's/^/| /' conftest.$ac_ext >&5
47083
47084 { $as_echo "$as_me:$LINENO: result: no" >&5
47085 $as_echo "no" >&6; }
47086
47087
47088
47089 fi
47090
47091 rm -Rf build
47092
47093
47094
47095
47096 { $as_echo "$as_me:$LINENO: checking whether iops->rename() wants flags" >&5
47097 $as_echo_n "checking whether iops->rename() wants flags... " >&6; }
47098
47099
47100 cat confdefs.h - <<_ACEOF >conftest.c
47101 /* confdefs.h. */
47102 _ACEOF
47103 cat confdefs.h >>conftest.$ac_ext
47104 cat >>conftest.$ac_ext <<_ACEOF
47105 /* end confdefs.h. */
47106
47107
47108 #include <linux/fs.h>
47109 int rename_fn(struct inode *sip, struct dentry *sdp,
47110 struct inode *tip, struct dentry *tdp,
47111 unsigned int flags) { return 0; }
47112
47113 static const struct inode_operations
47114 iops __attribute__ ((unused)) = {
47115 .rename = rename_fn,
47116 };
47117
47118 int
47119 main (void)
47120 {
47121
47122
47123 ;
47124 return 0;
47125 }
47126
47127 _ACEOF
47128
47129
47130
47131 cat - <<_ACEOF >conftest.h
47132
47133 _ACEOF
47134
47135
47136 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
47137 echo "obj-m := conftest.o" >build/Makefile
47138 modpost_flag=''
47139 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
47140 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
47141 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47142 (eval $ac_try) 2>&5
47143 ac_status=$?
47144 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
47145 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
47146 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47147 (eval $ac_try) 2>&5
47148 ac_status=$?
47149 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
47150 (exit $ac_status); }; }; then
47151
47152 { $as_echo "$as_me:$LINENO: result: yes" >&5
47153 $as_echo "yes" >&6; }
47154
47155 cat >>confdefs.h <<\_ACEOF
47156 #define HAVE_RENAME_WANTS_FLAGS 1
47157 _ACEOF
47158
47159
47160 else
47161 $as_echo "$as_me: failed program was:" >&5
47162 sed 's/^/| /' conftest.$ac_ext >&5
47163
47164 { $as_echo "$as_me:$LINENO: result: no" >&5
47165 $as_echo "no" >&6; }
47166
47167
47168
47169 fi
47170
47171 rm -Rf build
47172
47173
47174
47175
47176 { $as_echo "$as_me:$LINENO: checking whether generic_setxattr() exists" >&5
47177 $as_echo_n "checking whether generic_setxattr() exists... " >&6; }
47178
47179
47180 cat confdefs.h - <<_ACEOF >conftest.c
47181 /* confdefs.h. */
47182 _ACEOF
47183 cat confdefs.h >>conftest.$ac_ext
47184 cat >>conftest.$ac_ext <<_ACEOF
47185 /* end confdefs.h. */
47186
47187
47188 #include <linux/fs.h>
47189 #include <linux/xattr.h>
47190
47191 static const struct inode_operations
47192 iops __attribute__ ((unused)) = {
47193 .setxattr = generic_setxattr
47194 };
47195
47196 int
47197 main (void)
47198 {
47199
47200
47201 ;
47202 return 0;
47203 }
47204
47205 _ACEOF
47206
47207
47208
47209 cat - <<_ACEOF >conftest.h
47210
47211 _ACEOF
47212
47213
47214 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
47215 echo "obj-m := conftest.o" >build/Makefile
47216 modpost_flag=''
47217 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
47218 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
47219 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47220 (eval $ac_try) 2>&5
47221 ac_status=$?
47222 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
47223 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
47224 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47225 (eval $ac_try) 2>&5
47226 ac_status=$?
47227 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
47228 (exit $ac_status); }; }; then
47229
47230 { $as_echo "$as_me:$LINENO: result: yes" >&5
47231 $as_echo "yes" >&6; }
47232
47233 cat >>confdefs.h <<\_ACEOF
47234 #define HAVE_GENERIC_SETXATTR 1
47235 _ACEOF
47236
47237
47238 else
47239 $as_echo "$as_me: failed program was:" >&5
47240 sed 's/^/| /' conftest.$ac_ext >&5
47241
47242 { $as_echo "$as_me:$LINENO: result: no" >&5
47243 $as_echo "no" >&6; }
47244
47245
47246
47247 fi
47248
47249 rm -Rf build
47250
47251
47252
47253 { $as_echo "$as_me:$LINENO: checking whether current_time() exists" >&5
47254 $as_echo_n "checking whether current_time() exists... " >&6; }
47255
47256
47257
47258 cat confdefs.h - <<_ACEOF >conftest.c
47259 /* confdefs.h. */
47260 _ACEOF
47261 cat confdefs.h >>conftest.$ac_ext
47262 cat >>conftest.$ac_ext <<_ACEOF
47263 /* end confdefs.h. */
47264
47265
47266 #include <linux/fs.h>
47267
47268 int
47269 main (void)
47270 {
47271
47272 struct inode ip __attribute__ ((unused));
47273 ip.i_atime = current_time(&ip);
47274
47275 ;
47276 return 0;
47277 }
47278
47279 _ACEOF
47280
47281
47282
47283 cat - <<_ACEOF >conftest.h
47284
47285 _ACEOF
47286
47287
47288 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
47289 echo "obj-m := conftest.o" >build/Makefile
47290 modpost_flag=''
47291 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
47292 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
47293 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47294 (eval $ac_try) 2>&5
47295 ac_status=$?
47296 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
47297 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
47298 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47299 (eval $ac_try) 2>&5
47300 ac_status=$?
47301 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
47302 (exit $ac_status); }; }; then
47303 rc=0
47304 else
47305 $as_echo "$as_me: failed program was:" >&5
47306 sed 's/^/| /' conftest.$ac_ext >&5
47307 rc=1
47308
47309
47310 fi
47311
47312 rm -Rf build
47313
47314
47315 if test $rc -ne 0; then :
47316
47317 { $as_echo "$as_me:$LINENO: result: no" >&5
47318 $as_echo "no" >&6; }
47319
47320 else
47321 if test "x$enable_linux_builtin" != xyes; then
47322
47323 grep -q -E '[[:space:]]current_time[[:space:]]' \
47324 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
47325 rc=$?
47326 if test $rc -ne 0; then
47327 export=0
47328 for file in fs/inode.c; do
47329 grep -q -E "EXPORT_SYMBOL.*(current_time)" \
47330 "$LINUX/$file" 2>/dev/null
47331 rc=$?
47332 if test $rc -eq 0; then
47333 export=1
47334 break;
47335 fi
47336 done
47337 if test $export -eq 0; then :
47338 rc=1
47339 else :
47340 rc=0
47341 fi
47342 else :
47343 rc=0
47344 fi
47345
47346 fi
47347 if test $rc -ne 0; then :
47348
47349 { $as_echo "$as_me:$LINENO: result: no" >&5
47350 $as_echo "no" >&6; }
47351
47352 else :
47353
47354 { $as_echo "$as_me:$LINENO: result: yes" >&5
47355 $as_echo "yes" >&6; }
47356
47357 cat >>confdefs.h <<\_ACEOF
47358 #define HAVE_CURRENT_TIME 1
47359 _ACEOF
47360
47361
47362 fi
47363 fi
47364
47365
47366
47367
47368 { $as_echo "$as_me:$LINENO: checking whether global_node_page_state() exists" >&5
47369 $as_echo_n "checking whether global_node_page_state() exists... " >&6; }
47370
47371
47372 cat confdefs.h - <<_ACEOF >conftest.c
47373 /* confdefs.h. */
47374 _ACEOF
47375 cat confdefs.h >>conftest.$ac_ext
47376 cat >>conftest.$ac_ext <<_ACEOF
47377 /* end confdefs.h. */
47378
47379
47380 #include <linux/mm.h>
47381 #include <linux/vmstat.h>
47382
47383 int
47384 main (void)
47385 {
47386
47387 (void) global_node_page_state(0);
47388
47389 ;
47390 return 0;
47391 }
47392
47393 _ACEOF
47394
47395
47396
47397 cat - <<_ACEOF >conftest.h
47398
47399 _ACEOF
47400
47401
47402 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
47403 echo "obj-m := conftest.o" >build/Makefile
47404 modpost_flag=''
47405 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
47406 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
47407 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47408 (eval $ac_try) 2>&5
47409 ac_status=$?
47410 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
47411 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
47412 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47413 (eval $ac_try) 2>&5
47414 ac_status=$?
47415 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
47416 (exit $ac_status); }; }; then
47417
47418 { $as_echo "$as_me:$LINENO: result: yes" >&5
47419 $as_echo "yes" >&6; }
47420
47421 cat >>confdefs.h <<\_ACEOF
47422 #define ZFS_GLOBAL_NODE_PAGE_STATE 1
47423 _ACEOF
47424
47425
47426 else
47427 $as_echo "$as_me: failed program was:" >&5
47428 sed 's/^/| /' conftest.$ac_ext >&5
47429
47430 { $as_echo "$as_me:$LINENO: result: no" >&5
47431 $as_echo "no" >&6; }
47432
47433
47434
47435 fi
47436
47437 rm -Rf build
47438
47439
47440
47441
47442 { $as_echo "$as_me:$LINENO: checking whether global_zone_page_state() exists" >&5
47443 $as_echo_n "checking whether global_zone_page_state() exists... " >&6; }
47444
47445
47446 cat confdefs.h - <<_ACEOF >conftest.c
47447 /* confdefs.h. */
47448 _ACEOF
47449 cat confdefs.h >>conftest.$ac_ext
47450 cat >>conftest.$ac_ext <<_ACEOF
47451 /* end confdefs.h. */
47452
47453
47454 #include <linux/mm.h>
47455 #include <linux/vmstat.h>
47456
47457 int
47458 main (void)
47459 {
47460
47461 (void) global_zone_page_state(0);
47462
47463 ;
47464 return 0;
47465 }
47466
47467 _ACEOF
47468
47469
47470
47471 cat - <<_ACEOF >conftest.h
47472
47473 _ACEOF
47474
47475
47476 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
47477 echo "obj-m := conftest.o" >build/Makefile
47478 modpost_flag=''
47479 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
47480 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
47481 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47482 (eval $ac_try) 2>&5
47483 ac_status=$?
47484 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
47485 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
47486 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47487 (eval $ac_try) 2>&5
47488 ac_status=$?
47489 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
47490 (exit $ac_status); }; }; then
47491
47492 { $as_echo "$as_me:$LINENO: result: yes" >&5
47493 $as_echo "yes" >&6; }
47494
47495 cat >>confdefs.h <<\_ACEOF
47496 #define ZFS_GLOBAL_ZONE_PAGE_STATE 1
47497 _ACEOF
47498
47499
47500 else
47501 $as_echo "$as_me: failed program was:" >&5
47502 sed 's/^/| /' conftest.$ac_ext >&5
47503
47504 { $as_echo "$as_me:$LINENO: result: no" >&5
47505 $as_echo "no" >&6; }
47506
47507
47508
47509 fi
47510
47511 rm -Rf build
47512
47513
47514
47515
47516
47517 { $as_echo "$as_me:$LINENO: checking whether enum node_stat_item contains NR_FILE_PAGES" >&5
47518 $as_echo_n "checking whether enum node_stat_item contains NR_FILE_PAGES... " >&6; }
47519 if { ac_try='"${srcdir}/scripts/enum-extract.pl" "node_stat_item" "$LINUX/include/linux/mmzone.h" | egrep -qx NR_FILE_PAGES'
47520 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47521 (eval $ac_try) 2>&5
47522 ac_status=$?
47523 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
47524 (exit $ac_status); }; }; then
47525
47526 { $as_echo "$as_me:$LINENO: result: yes" >&5
47527 $as_echo "yes" >&6; }
47528
47529 cat >>confdefs.h <<\_ACEOF
47530 #define ZFS_ENUM_NODE_STAT_ITEM_NR_FILE_PAGES 1
47531 _ACEOF
47532
47533 ZFS_ENUM_NODE_STAT_ITEM_NR_FILE_PAGES=1
47534
47535 else
47536
47537 { $as_echo "$as_me:$LINENO: result: no" >&5
47538 $as_echo "no" >&6; }
47539
47540 fi
47541
47542
47543
47544 { $as_echo "$as_me:$LINENO: checking whether enum node_stat_item contains NR_INACTIVE_ANON" >&5
47545 $as_echo_n "checking whether enum node_stat_item contains NR_INACTIVE_ANON... " >&6; }
47546 if { ac_try='"${srcdir}/scripts/enum-extract.pl" "node_stat_item" "$LINUX/include/linux/mmzone.h" | egrep -qx NR_INACTIVE_ANON'
47547 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47548 (eval $ac_try) 2>&5
47549 ac_status=$?
47550 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
47551 (exit $ac_status); }; }; then
47552
47553 { $as_echo "$as_me:$LINENO: result: yes" >&5
47554 $as_echo "yes" >&6; }
47555
47556 cat >>confdefs.h <<\_ACEOF
47557 #define ZFS_ENUM_NODE_STAT_ITEM_NR_INACTIVE_ANON 1
47558 _ACEOF
47559
47560 ZFS_ENUM_NODE_STAT_ITEM_NR_INACTIVE_ANON=1
47561
47562 else
47563
47564 { $as_echo "$as_me:$LINENO: result: no" >&5
47565 $as_echo "no" >&6; }
47566
47567 fi
47568
47569
47570
47571 { $as_echo "$as_me:$LINENO: checking whether enum node_stat_item contains NR_INACTIVE_FILE" >&5
47572 $as_echo_n "checking whether enum node_stat_item contains NR_INACTIVE_FILE... " >&6; }
47573 if { ac_try='"${srcdir}/scripts/enum-extract.pl" "node_stat_item" "$LINUX/include/linux/mmzone.h" | egrep -qx NR_INACTIVE_FILE'
47574 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47575 (eval $ac_try) 2>&5
47576 ac_status=$?
47577 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
47578 (exit $ac_status); }; }; then
47579
47580 { $as_echo "$as_me:$LINENO: result: yes" >&5
47581 $as_echo "yes" >&6; }
47582
47583 cat >>confdefs.h <<\_ACEOF
47584 #define ZFS_ENUM_NODE_STAT_ITEM_NR_INACTIVE_FILE 1
47585 _ACEOF
47586
47587 ZFS_ENUM_NODE_STAT_ITEM_NR_INACTIVE_FILE=1
47588
47589 else
47590
47591 { $as_echo "$as_me:$LINENO: result: no" >&5
47592 $as_echo "no" >&6; }
47593
47594 fi
47595
47596
47597
47598 { $as_echo "$as_me:$LINENO: checking whether enum node_stat_item contains NR_SLAB_RECLAIMABLE" >&5
47599 $as_echo_n "checking whether enum node_stat_item contains NR_SLAB_RECLAIMABLE... " >&6; }
47600 if { ac_try='"${srcdir}/scripts/enum-extract.pl" "node_stat_item" "$LINUX/include/linux/mmzone.h" | egrep -qx NR_SLAB_RECLAIMABLE'
47601 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47602 (eval $ac_try) 2>&5
47603 ac_status=$?
47604 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
47605 (exit $ac_status); }; }; then
47606
47607 { $as_echo "$as_me:$LINENO: result: yes" >&5
47608 $as_echo "yes" >&6; }
47609
47610 cat >>confdefs.h <<\_ACEOF
47611 #define ZFS_ENUM_NODE_STAT_ITEM_NR_SLAB_RECLAIMABLE 1
47612 _ACEOF
47613
47614 ZFS_ENUM_NODE_STAT_ITEM_NR_SLAB_RECLAIMABLE=1
47615
47616 else
47617
47618 { $as_echo "$as_me:$LINENO: result: no" >&5
47619 $as_echo "no" >&6; }
47620
47621 fi
47622
47623
47624
47625
47626 { $as_echo "$as_me:$LINENO: checking whether enum zone_stat_item contains NR_FILE_PAGES" >&5
47627 $as_echo_n "checking whether enum zone_stat_item contains NR_FILE_PAGES... " >&6; }
47628 if { ac_try='"${srcdir}/scripts/enum-extract.pl" "zone_stat_item" "$LINUX/include/linux/mmzone.h" | egrep -qx NR_FILE_PAGES'
47629 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47630 (eval $ac_try) 2>&5
47631 ac_status=$?
47632 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
47633 (exit $ac_status); }; }; then
47634
47635 { $as_echo "$as_me:$LINENO: result: yes" >&5
47636 $as_echo "yes" >&6; }
47637
47638 cat >>confdefs.h <<\_ACEOF
47639 #define ZFS_ENUM_ZONE_STAT_ITEM_NR_FILE_PAGES 1
47640 _ACEOF
47641
47642 ZFS_ENUM_ZONE_STAT_ITEM_NR_FILE_PAGES=1
47643
47644 else
47645
47646 { $as_echo "$as_me:$LINENO: result: no" >&5
47647 $as_echo "no" >&6; }
47648
47649 fi
47650
47651
47652
47653 { $as_echo "$as_me:$LINENO: checking whether enum zone_stat_item contains NR_INACTIVE_ANON" >&5
47654 $as_echo_n "checking whether enum zone_stat_item contains NR_INACTIVE_ANON... " >&6; }
47655 if { ac_try='"${srcdir}/scripts/enum-extract.pl" "zone_stat_item" "$LINUX/include/linux/mmzone.h" | egrep -qx NR_INACTIVE_ANON'
47656 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47657 (eval $ac_try) 2>&5
47658 ac_status=$?
47659 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
47660 (exit $ac_status); }; }; then
47661
47662 { $as_echo "$as_me:$LINENO: result: yes" >&5
47663 $as_echo "yes" >&6; }
47664
47665 cat >>confdefs.h <<\_ACEOF
47666 #define ZFS_ENUM_ZONE_STAT_ITEM_NR_INACTIVE_ANON 1
47667 _ACEOF
47668
47669 ZFS_ENUM_ZONE_STAT_ITEM_NR_INACTIVE_ANON=1
47670
47671 else
47672
47673 { $as_echo "$as_me:$LINENO: result: no" >&5
47674 $as_echo "no" >&6; }
47675
47676 fi
47677
47678
47679
47680 { $as_echo "$as_me:$LINENO: checking whether enum zone_stat_item contains NR_INACTIVE_FILE" >&5
47681 $as_echo_n "checking whether enum zone_stat_item contains NR_INACTIVE_FILE... " >&6; }
47682 if { ac_try='"${srcdir}/scripts/enum-extract.pl" "zone_stat_item" "$LINUX/include/linux/mmzone.h" | egrep -qx NR_INACTIVE_FILE'
47683 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47684 (eval $ac_try) 2>&5
47685 ac_status=$?
47686 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
47687 (exit $ac_status); }; }; then
47688
47689 { $as_echo "$as_me:$LINENO: result: yes" >&5
47690 $as_echo "yes" >&6; }
47691
47692 cat >>confdefs.h <<\_ACEOF
47693 #define ZFS_ENUM_ZONE_STAT_ITEM_NR_INACTIVE_FILE 1
47694 _ACEOF
47695
47696 ZFS_ENUM_ZONE_STAT_ITEM_NR_INACTIVE_FILE=1
47697
47698 else
47699
47700 { $as_echo "$as_me:$LINENO: result: no" >&5
47701 $as_echo "no" >&6; }
47702
47703 fi
47704
47705
47706
47707 { $as_echo "$as_me:$LINENO: checking whether enum zone_stat_item contains NR_SLAB_RECLAIMABLE" >&5
47708 $as_echo_n "checking whether enum zone_stat_item contains NR_SLAB_RECLAIMABLE... " >&6; }
47709 if { ac_try='"${srcdir}/scripts/enum-extract.pl" "zone_stat_item" "$LINUX/include/linux/mmzone.h" | egrep -qx NR_SLAB_RECLAIMABLE'
47710 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47711 (eval $ac_try) 2>&5
47712 ac_status=$?
47713 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
47714 (exit $ac_status); }; }; then
47715
47716 { $as_echo "$as_me:$LINENO: result: yes" >&5
47717 $as_echo "yes" >&6; }
47718
47719 cat >>confdefs.h <<\_ACEOF
47720 #define ZFS_ENUM_ZONE_STAT_ITEM_NR_SLAB_RECLAIMABLE 1
47721 _ACEOF
47722
47723 ZFS_ENUM_ZONE_STAT_ITEM_NR_SLAB_RECLAIMABLE=1
47724
47725 else
47726
47727 { $as_echo "$as_me:$LINENO: result: no" >&5
47728 $as_echo "no" >&6; }
47729
47730 fi
47731
47732
47733
47734
47735 { $as_echo "$as_me:$LINENO: checking global_page_state enums are sane" >&5
47736 $as_echo_n "checking global_page_state enums are sane... " >&6; }
47737
47738
47739 enum_check_a="$ZFS_ENUM_NODE_STAT_ITEM_NR_FILE_PAGES"
47740 enum_check_b="$ZFS_ENUM_ZONE_STAT_ITEM_NR_FILE_PAGES"
47741 if test -n "$enum_check_a" -a -n "$enum_check_b"; then
47742
47743
47744 { $as_echo "$as_me:$LINENO: result: no" >&5
47745 $as_echo "no" >&6; }
47746 { $as_echo "$as_me:$LINENO: result: NR_FILE_PAGES in either node_stat_item or zone_stat_item: DUPLICATE" >&5
47747 $as_echo "NR_FILE_PAGES in either node_stat_item or zone_stat_item: DUPLICATE" >&6; }
47748 { $as_echo "$as_me:$LINENO: result: configure needs updating, see: config/kernel-global_page_state.m4" >&5
47749 $as_echo "configure needs updating, see: config/kernel-global_page_state.m4" >&6; }
47750 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
47751 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
47752 { { $as_echo "$as_me:$LINENO: error: SHUT 'ER DOWN CLANCY, SHE'S PUMPIN' MUD!
47753 See \`config.log' for more details." >&5
47754 $as_echo "$as_me: error: SHUT 'ER DOWN CLANCY, SHE'S PUMPIN' MUD!
47755 See \`config.log' for more details." >&2;}
47756 { (exit 1); exit 1; }; }; }
47757
47758
47759 fi
47760
47761 if test -z "$enum_check_a" -a -z "$enum_check_b"; then
47762
47763
47764 { $as_echo "$as_me:$LINENO: result: no" >&5
47765 $as_echo "no" >&6; }
47766 { $as_echo "$as_me:$LINENO: result: NR_FILE_PAGES in either node_stat_item or zone_stat_item: NOT FOUND" >&5
47767 $as_echo "NR_FILE_PAGES in either node_stat_item or zone_stat_item: NOT FOUND" >&6; }
47768 { $as_echo "$as_me:$LINENO: result: configure needs updating, see: config/kernel-global_page_state.m4" >&5
47769 $as_echo "configure needs updating, see: config/kernel-global_page_state.m4" >&6; }
47770 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
47771 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
47772 { { $as_echo "$as_me:$LINENO: error: SHUT 'ER DOWN CLANCY, SHE'S PUMPIN' MUD!
47773 See \`config.log' for more details." >&5
47774 $as_echo "$as_me: error: SHUT 'ER DOWN CLANCY, SHE'S PUMPIN' MUD!
47775 See \`config.log' for more details." >&2;}
47776 { (exit 1); exit 1; }; }; }
47777
47778
47779 fi
47780
47781
47782
47783 enum_check_a="$ZFS_ENUM_NODE_STAT_ITEM_NR_INACTIVE_ANON"
47784 enum_check_b="$ZFS_ENUM_ZONE_STAT_ITEM_NR_INACTIVE_ANON"
47785 if test -n "$enum_check_a" -a -n "$enum_check_b"; then
47786
47787
47788 { $as_echo "$as_me:$LINENO: result: no" >&5
47789 $as_echo "no" >&6; }
47790 { $as_echo "$as_me:$LINENO: result: NR_INACTIVE_ANON in either node_stat_item or zone_stat_item: DUPLICATE" >&5
47791 $as_echo "NR_INACTIVE_ANON in either node_stat_item or zone_stat_item: DUPLICATE" >&6; }
47792 { $as_echo "$as_me:$LINENO: result: configure needs updating, see: config/kernel-global_page_state.m4" >&5
47793 $as_echo "configure needs updating, see: config/kernel-global_page_state.m4" >&6; }
47794 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
47795 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
47796 { { $as_echo "$as_me:$LINENO: error: SHUT 'ER DOWN CLANCY, SHE'S PUMPIN' MUD!
47797 See \`config.log' for more details." >&5
47798 $as_echo "$as_me: error: SHUT 'ER DOWN CLANCY, SHE'S PUMPIN' MUD!
47799 See \`config.log' for more details." >&2;}
47800 { (exit 1); exit 1; }; }; }
47801
47802
47803 fi
47804
47805 if test -z "$enum_check_a" -a -z "$enum_check_b"; then
47806
47807
47808 { $as_echo "$as_me:$LINENO: result: no" >&5
47809 $as_echo "no" >&6; }
47810 { $as_echo "$as_me:$LINENO: result: NR_INACTIVE_ANON in either node_stat_item or zone_stat_item: NOT FOUND" >&5
47811 $as_echo "NR_INACTIVE_ANON in either node_stat_item or zone_stat_item: NOT FOUND" >&6; }
47812 { $as_echo "$as_me:$LINENO: result: configure needs updating, see: config/kernel-global_page_state.m4" >&5
47813 $as_echo "configure needs updating, see: config/kernel-global_page_state.m4" >&6; }
47814 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
47815 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
47816 { { $as_echo "$as_me:$LINENO: error: SHUT 'ER DOWN CLANCY, SHE'S PUMPIN' MUD!
47817 See \`config.log' for more details." >&5
47818 $as_echo "$as_me: error: SHUT 'ER DOWN CLANCY, SHE'S PUMPIN' MUD!
47819 See \`config.log' for more details." >&2;}
47820 { (exit 1); exit 1; }; }; }
47821
47822
47823 fi
47824
47825
47826
47827 enum_check_a="$ZFS_ENUM_NODE_STAT_ITEM_NR_INACTIVE_FILE"
47828 enum_check_b="$ZFS_ENUM_ZONE_STAT_ITEM_NR_INACTIVE_FILE"
47829 if test -n "$enum_check_a" -a -n "$enum_check_b"; then
47830
47831
47832 { $as_echo "$as_me:$LINENO: result: no" >&5
47833 $as_echo "no" >&6; }
47834 { $as_echo "$as_me:$LINENO: result: NR_INACTIVE_FILE in either node_stat_item or zone_stat_item: DUPLICATE" >&5
47835 $as_echo "NR_INACTIVE_FILE in either node_stat_item or zone_stat_item: DUPLICATE" >&6; }
47836 { $as_echo "$as_me:$LINENO: result: configure needs updating, see: config/kernel-global_page_state.m4" >&5
47837 $as_echo "configure needs updating, see: config/kernel-global_page_state.m4" >&6; }
47838 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
47839 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
47840 { { $as_echo "$as_me:$LINENO: error: SHUT 'ER DOWN CLANCY, SHE'S PUMPIN' MUD!
47841 See \`config.log' for more details." >&5
47842 $as_echo "$as_me: error: SHUT 'ER DOWN CLANCY, SHE'S PUMPIN' MUD!
47843 See \`config.log' for more details." >&2;}
47844 { (exit 1); exit 1; }; }; }
47845
47846
47847 fi
47848
47849 if test -z "$enum_check_a" -a -z "$enum_check_b"; then
47850
47851
47852 { $as_echo "$as_me:$LINENO: result: no" >&5
47853 $as_echo "no" >&6; }
47854 { $as_echo "$as_me:$LINENO: result: NR_INACTIVE_FILE in either node_stat_item or zone_stat_item: NOT FOUND" >&5
47855 $as_echo "NR_INACTIVE_FILE in either node_stat_item or zone_stat_item: NOT FOUND" >&6; }
47856 { $as_echo "$as_me:$LINENO: result: configure needs updating, see: config/kernel-global_page_state.m4" >&5
47857 $as_echo "configure needs updating, see: config/kernel-global_page_state.m4" >&6; }
47858 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
47859 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
47860 { { $as_echo "$as_me:$LINENO: error: SHUT 'ER DOWN CLANCY, SHE'S PUMPIN' MUD!
47861 See \`config.log' for more details." >&5
47862 $as_echo "$as_me: error: SHUT 'ER DOWN CLANCY, SHE'S PUMPIN' MUD!
47863 See \`config.log' for more details." >&2;}
47864 { (exit 1); exit 1; }; }; }
47865
47866
47867 fi
47868
47869
47870
47871 enum_check_a="$ZFS_ENUM_NODE_STAT_ITEM_NR_SLAB_RECLAIMABLE"
47872 enum_check_b="$ZFS_ENUM_ZONE_STAT_ITEM_NR_SLAB_RECLAIMABLE"
47873 if test -n "$enum_check_a" -a -n "$enum_check_b"; then
47874
47875
47876 { $as_echo "$as_me:$LINENO: result: no" >&5
47877 $as_echo "no" >&6; }
47878 { $as_echo "$as_me:$LINENO: result: NR_SLAB_RECLAIMABLE in either node_stat_item or zone_stat_item: DUPLICATE" >&5
47879 $as_echo "NR_SLAB_RECLAIMABLE in either node_stat_item or zone_stat_item: DUPLICATE" >&6; }
47880 { $as_echo "$as_me:$LINENO: result: configure needs updating, see: config/kernel-global_page_state.m4" >&5
47881 $as_echo "configure needs updating, see: config/kernel-global_page_state.m4" >&6; }
47882 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
47883 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
47884 { { $as_echo "$as_me:$LINENO: error: SHUT 'ER DOWN CLANCY, SHE'S PUMPIN' MUD!
47885 See \`config.log' for more details." >&5
47886 $as_echo "$as_me: error: SHUT 'ER DOWN CLANCY, SHE'S PUMPIN' MUD!
47887 See \`config.log' for more details." >&2;}
47888 { (exit 1); exit 1; }; }; }
47889
47890
47891 fi
47892
47893 if test -z "$enum_check_a" -a -z "$enum_check_b"; then
47894
47895
47896 { $as_echo "$as_me:$LINENO: result: no" >&5
47897 $as_echo "no" >&6; }
47898 { $as_echo "$as_me:$LINENO: result: NR_SLAB_RECLAIMABLE in either node_stat_item or zone_stat_item: NOT FOUND" >&5
47899 $as_echo "NR_SLAB_RECLAIMABLE in either node_stat_item or zone_stat_item: NOT FOUND" >&6; }
47900 { $as_echo "$as_me:$LINENO: result: configure needs updating, see: config/kernel-global_page_state.m4" >&5
47901 $as_echo "configure needs updating, see: config/kernel-global_page_state.m4" >&6; }
47902 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
47903 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
47904 { { $as_echo "$as_me:$LINENO: error: SHUT 'ER DOWN CLANCY, SHE'S PUMPIN' MUD!
47905 See \`config.log' for more details." >&5
47906 $as_echo "$as_me: error: SHUT 'ER DOWN CLANCY, SHE'S PUMPIN' MUD!
47907 See \`config.log' for more details." >&2;}
47908 { (exit 1); exit 1; }; }; }
47909
47910
47911 fi
47912
47913
47914
47915 { $as_echo "$as_me:$LINENO: result: yes" >&5
47916 $as_echo "yes" >&6; }
47917
47918
47919
47920 { $as_echo "$as_me:$LINENO: checking whether posix_acl has refcount_t" >&5
47921 $as_echo_n "checking whether posix_acl has refcount_t... " >&6; }
47922
47923
47924 cat confdefs.h - <<_ACEOF >conftest.c
47925 /* confdefs.h. */
47926 _ACEOF
47927 cat confdefs.h >>conftest.$ac_ext
47928 cat >>conftest.$ac_ext <<_ACEOF
47929 /* end confdefs.h. */
47930
47931
47932 #include <linux/backing-dev.h>
47933 #include <linux/refcount.h>
47934 #include <linux/posix_acl.h>
47935
47936 int
47937 main (void)
47938 {
47939
47940 struct posix_acl acl;
47941 refcount_t *r __attribute__ ((unused)) = &acl.a_refcount;
47942
47943 ;
47944 return 0;
47945 }
47946
47947 _ACEOF
47948
47949
47950
47951 cat - <<_ACEOF >conftest.h
47952
47953 _ACEOF
47954
47955
47956 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
47957 echo "obj-m := conftest.o" >build/Makefile
47958 modpost_flag=''
47959 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
47960 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
47961 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47962 (eval $ac_try) 2>&5
47963 ac_status=$?
47964 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
47965 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
47966 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47967 (eval $ac_try) 2>&5
47968 ac_status=$?
47969 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
47970 (exit $ac_status); }; }; then
47971
47972 { $as_echo "$as_me:$LINENO: result: yes" >&5
47973 $as_echo "yes" >&6; }
47974
47975 cat >>confdefs.h <<\_ACEOF
47976 #define HAVE_ACL_REFCOUNT 1
47977 _ACEOF
47978
47979
47980 else
47981 $as_echo "$as_me: failed program was:" >&5
47982 sed 's/^/| /' conftest.$ac_ext >&5
47983
47984 { $as_echo "$as_me:$LINENO: result: no" >&5
47985 $as_echo "no" >&6; }
47986
47987
47988
47989 fi
47990
47991 rm -Rf build
47992
47993
47994
47995
47996
47997 { $as_echo "$as_me:$LINENO: checking whether ns_capable exists" >&5
47998 $as_echo_n "checking whether ns_capable exists... " >&6; }
47999
48000
48001 cat confdefs.h - <<_ACEOF >conftest.c
48002 /* confdefs.h. */
48003 _ACEOF
48004 cat confdefs.h >>conftest.$ac_ext
48005 cat >>conftest.$ac_ext <<_ACEOF
48006 /* end confdefs.h. */
48007
48008
48009 #include <linux/capability.h>
48010
48011 int
48012 main (void)
48013 {
48014
48015 ns_capable((struct user_namespace *)NULL, CAP_SYS_ADMIN);
48016
48017 ;
48018 return 0;
48019 }
48020
48021 _ACEOF
48022
48023
48024
48025 cat - <<_ACEOF >conftest.h
48026
48027 _ACEOF
48028
48029
48030 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
48031 echo "obj-m := conftest.o" >build/Makefile
48032 modpost_flag=''
48033 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
48034 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
48035 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48036 (eval $ac_try) 2>&5
48037 ac_status=$?
48038 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
48039 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
48040 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48041 (eval $ac_try) 2>&5
48042 ac_status=$?
48043 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
48044 (exit $ac_status); }; }; then
48045
48046 { $as_echo "$as_me:$LINENO: result: yes" >&5
48047 $as_echo "yes" >&6; }
48048
48049 cat >>confdefs.h <<\_ACEOF
48050 #define HAVE_NS_CAPABLE 1
48051 _ACEOF
48052
48053
48054 else
48055 $as_echo "$as_me: failed program was:" >&5
48056 sed 's/^/| /' conftest.$ac_ext >&5
48057
48058 { $as_echo "$as_me:$LINENO: result: no" >&5
48059 $as_echo "no" >&6; }
48060
48061
48062
48063 fi
48064
48065 rm -Rf build
48066
48067
48068
48069
48070 { $as_echo "$as_me:$LINENO: checking whether cred_t->user_ns exists" >&5
48071 $as_echo_n "checking whether cred_t->user_ns exists... " >&6; }
48072
48073
48074 cat confdefs.h - <<_ACEOF >conftest.c
48075 /* confdefs.h. */
48076 _ACEOF
48077 cat confdefs.h >>conftest.$ac_ext
48078 cat >>conftest.$ac_ext <<_ACEOF
48079 /* end confdefs.h. */
48080
48081
48082 #include <linux/cred.h>
48083
48084 int
48085 main (void)
48086 {
48087
48088 struct cred cr;
48089 cr.user_ns = (struct user_namespace *)NULL;
48090
48091 ;
48092 return 0;
48093 }
48094
48095 _ACEOF
48096
48097
48098
48099 cat - <<_ACEOF >conftest.h
48100
48101 _ACEOF
48102
48103
48104 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
48105 echo "obj-m := conftest.o" >build/Makefile
48106 modpost_flag=''
48107 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
48108 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
48109 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48110 (eval $ac_try) 2>&5
48111 ac_status=$?
48112 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
48113 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
48114 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48115 (eval $ac_try) 2>&5
48116 ac_status=$?
48117 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
48118 (exit $ac_status); }; }; then
48119
48120 { $as_echo "$as_me:$LINENO: result: yes" >&5
48121 $as_echo "yes" >&6; }
48122
48123 cat >>confdefs.h <<\_ACEOF
48124 #define HAVE_CRED_USER_NS 1
48125 _ACEOF
48126
48127
48128 else
48129 $as_echo "$as_me: failed program was:" >&5
48130 sed 's/^/| /' conftest.$ac_ext >&5
48131
48132 { $as_echo "$as_me:$LINENO: result: no" >&5
48133 $as_echo "no" >&6; }
48134
48135
48136
48137 fi
48138
48139 rm -Rf build
48140
48141
48142
48143
48144 { $as_echo "$as_me:$LINENO: checking whether kuid_has_mapping/kgid_has_mapping exist" >&5
48145 $as_echo_n "checking whether kuid_has_mapping/kgid_has_mapping exist... " >&6; }
48146
48147
48148 cat confdefs.h - <<_ACEOF >conftest.c
48149 /* confdefs.h. */
48150 _ACEOF
48151 cat confdefs.h >>conftest.$ac_ext
48152 cat >>conftest.$ac_ext <<_ACEOF
48153 /* end confdefs.h. */
48154
48155
48156 #include <linux/uidgid.h>
48157
48158 int
48159 main (void)
48160 {
48161
48162 kuid_has_mapping((struct user_namespace *)NULL, KUIDT_INIT(0));
48163 kgid_has_mapping((struct user_namespace *)NULL, KGIDT_INIT(0));
48164
48165 ;
48166 return 0;
48167 }
48168
48169 _ACEOF
48170
48171
48172
48173 cat - <<_ACEOF >conftest.h
48174
48175 _ACEOF
48176
48177
48178 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
48179 echo "obj-m := conftest.o" >build/Makefile
48180 modpost_flag=''
48181 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
48182 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
48183 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48184 (eval $ac_try) 2>&5
48185 ac_status=$?
48186 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
48187 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
48188 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48189 (eval $ac_try) 2>&5
48190 ac_status=$?
48191 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
48192 (exit $ac_status); }; }; then
48193
48194 { $as_echo "$as_me:$LINENO: result: yes" >&5
48195 $as_echo "yes" >&6; }
48196
48197 cat >>confdefs.h <<\_ACEOF
48198 #define HAVE_KUID_HAS_MAPPING 1
48199 _ACEOF
48200
48201
48202 else
48203 $as_echo "$as_me: failed program was:" >&5
48204 sed 's/^/| /' conftest.$ac_ext >&5
48205
48206 { $as_echo "$as_me:$LINENO: result: no" >&5
48207 $as_echo "no" >&6; }
48208
48209
48210
48211 fi
48212
48213 rm -Rf build
48214
48215
48216
48217
48218
48219 if test "$LINUX_OBJ" != "$LINUX"; then
48220
48221 KERNELMAKE_PARAMS="$KERNELMAKE_PARAMS O=$LINUX_OBJ"
48222
48223 fi
48224
48225
48226
48227
48228 KERNELCPPFLAGS="$KERNELCPPFLAGS -std=gnu99"
48229 KERNELCPPFLAGS="$KERNELCPPFLAGS -Wno-declaration-after-statement"
48230 KERNELCPPFLAGS="$KERNELCPPFLAGS $NO_UNUSED_BUT_SET_VARIABLE"
48231 KERNELCPPFLAGS="$KERNELCPPFLAGS $NO_BOOL_COMPARE"
48232 KERNELCPPFLAGS="$KERNELCPPFLAGS -DHAVE_SPL -D_KERNEL"
48233 KERNELCPPFLAGS="$KERNELCPPFLAGS -DTEXT_DOMAIN=\\\"zfs-linux-kernel\\\""
48234
48235
48236 ;;
48237 srpm) ;;
48238 *)
48239 { $as_echo "$as_me:$LINENO: result: Error!" >&5
48240 $as_echo "Error!" >&6; }
48241 { { $as_echo "$as_me:$LINENO: error: Bad value \"$ZFS_CONFIG\" for --with-config,
48242 user kernel|user|all|srpm" >&5
48243 $as_echo "$as_me: error: Bad value \"$ZFS_CONFIG\" for --with-config,
48244 user kernel|user|all|srpm" >&2;}
48245 { (exit 1); exit 1; }; } ;;
48246 esac
48247
48248 if test "$ZFS_CONFIG" = user -o "$ZFS_CONFIG" = all; then
48249 CONFIG_USER_TRUE=
48250 CONFIG_USER_FALSE='#'
48251 else
48252 CONFIG_USER_TRUE='#'
48253 CONFIG_USER_FALSE=
48254 fi
48255
48256 if test "$ZFS_CONFIG" = kernel -o "$ZFS_CONFIG" = all &&
48257 test "x$enable_linux_builtin" != xyes ; then
48258 CONFIG_KERNEL_TRUE=
48259 CONFIG_KERNEL_FALSE='#'
48260 else
48261 CONFIG_KERNEL_TRUE='#'
48262 CONFIG_KERNEL_FALSE=
48263 fi
48264
48265 if test "$ZFS_CONFIG" = kernel -o "$ZFS_CONFIG" = all &&
48266 test "x$qatsrc" != x ; then
48267 CONFIG_QAT_TRUE=
48268 CONFIG_QAT_FALSE='#'
48269 else
48270 CONFIG_QAT_TRUE='#'
48271 CONFIG_QAT_FALSE=
48272 fi
48273
48274 if test "x$user_libudev" = xyes ; then
48275 WANT_DEVNAME2DEVID_TRUE=
48276 WANT_DEVNAME2DEVID_FALSE='#'
48277 else
48278 WANT_DEVNAME2DEVID_TRUE='#'
48279 WANT_DEVNAME2DEVID_FALSE=
48280 fi
48281
48282 if test "x$user_libaio" = xyes ; then
48283 WANT_MMAP_LIBAIO_TRUE=
48284 WANT_MMAP_LIBAIO_FALSE='#'
48285 else
48286 WANT_MMAP_LIBAIO_TRUE='#'
48287 WANT_MMAP_LIBAIO_FALSE=
48288 fi
48289
48290
48291
48292 { $as_echo "$as_me:$LINENO: checking whether assertion support will be enabled" >&5
48293 $as_echo_n "checking whether assertion support will be enabled... " >&6; }
48294 # Check whether --enable-debug was given.
48295 if test "${enable_debug+set}" = set; then
48296 enableval=$enable_debug;
48297 else
48298 enable_debug=no
48299 fi
48300
48301
48302 case "x$enable_debug" in
48303 "xyes")
48304 KERNELCPPFLAGS="${KERNELCPPFLAGS} -DDEBUG -Werror"
48305 HOSTCFLAGS="${HOSTCFLAGS} -DDEBUG -Werror"
48306 DEBUG_CFLAGS="-DDEBUG -Werror"
48307 DEBUG_ZFS="_with_debug"
48308
48309 cat >>confdefs.h <<\_ACEOF
48310 #define ZFS_DEBUG 1
48311 _ACEOF
48312
48313 ;;
48314 "xno")
48315 KERNELCPPFLAGS="${KERNELCPPFLAGS} -DNDEBUG "
48316 HOSTCFLAGS="${HOSTCFLAGS} -DNDEBUG "
48317 DEBUG_CFLAGS="-DNDEBUG"
48318 DEBUG_STACKFLAGS=""
48319 DEBUG_ZFS="_without_debug"
48320 ;;
48321 *) { { $as_echo "$as_me:$LINENO: error: Unknown option $enable_debug" >&5
48322 $as_echo "$as_me: error: Unknown option $enable_debug" >&2;}
48323 { (exit 1); exit 1; }; } ;;
48324 esac
48325
48326
48327
48328
48329 { $as_echo "$as_me:$LINENO: result: $enable_debug" >&5
48330 $as_echo "$enable_debug" >&6; }
48331
48332
48333 { $as_echo "$as_me:$LINENO: checking whether debuginfo support will be forced" >&5
48334 $as_echo_n "checking whether debuginfo support will be forced... " >&6; }
48335 # Check whether --enable-debuginfo was given.
48336 if test "${enable_debuginfo+set}" = set; then
48337 enableval=$enable_debuginfo;
48338 else
48339 enable_debuginfo=no
48340 fi
48341
48342
48343 case "x$enable_debuginfo" in
48344 "xyes")
48345 KERNELMAKE_PARAMS="$KERNELMAKE_PARAMS CONFIG_DEBUG_INFO=y"
48346 KERNELCPPFLAGS="${KERNELCPPFLAGS} -fno-inline"
48347
48348
48349 DEBUG_CFLAGS="${DEBUG_CFLAGS} -g -fno-inline"
48350 ;;
48351 "xkernel")
48352 KERNELMAKE_PARAMS="$KERNELMAKE_PARAMS CONFIG_DEBUG_INFO=y"
48353 KERNELCPPFLAGS="${KERNELCPPFLAGS} -fno-inline"
48354 ;;
48355 "xuser")
48356 DEBUG_CFLAGS="${DEBUG_CFLAGS} -g -fno-inline"
48357 ;;
48358 "xno") : ;;
48359 *) { { $as_echo "$as_me:$LINENO: error: Unknown option $enable_debug" >&5
48360 $as_echo "$as_me: error: Unknown option $enable_debug" >&2;}
48361 { (exit 1); exit 1; }; } ;;
48362 esac
48363
48364
48365
48366 { $as_echo "$as_me:$LINENO: result: $enable_debuginfo" >&5
48367 $as_echo "$enable_debuginfo" >&6; }
48368
48369
48370 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/sudoers.d/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/dktp/Makefile lib/libspl/include/util/Makefile lib/libavl/Makefile lib/libefi/Makefile lib/libicp/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 cmd/raidz_test/Makefile cmd/zgenhostid/Makefile contrib/Makefile contrib/bash_completion.d/Makefile contrib/dracut/Makefile contrib/dracut/02zfsexpandknowledge/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 module/icp/Makefile include/Makefile include/linux/Makefile include/sys/Makefile include/sys/fs/Makefile include/sys/fm/Makefile include/sys/fm/fs/Makefile include/sys/crypto/Makefile include/sys/sysevent/Makefile scripts/Makefile scripts/zpios-profile/Makefile scripts/zpios-test/Makefile scripts/zpool-config/Makefile scripts/common.sh tests/Makefile tests/test-runner/Makefile tests/test-runner/cmd/Makefile tests/test-runner/include/Makefile tests/test-runner/man/Makefile tests/runfiles/Makefile tests/zfs-tests/Makefile tests/zfs-tests/callbacks/Makefile tests/zfs-tests/cmd/Makefile tests/zfs-tests/cmd/chg_usr_exec/Makefile tests/zfs-tests/cmd/user_ns_exec/Makefile tests/zfs-tests/cmd/devname2devid/Makefile tests/zfs-tests/cmd/dir_rd_update/Makefile tests/zfs-tests/cmd/file_check/Makefile tests/zfs-tests/cmd/file_trunc/Makefile tests/zfs-tests/cmd/file_write/Makefile tests/zfs-tests/cmd/largest_file/Makefile tests/zfs-tests/cmd/mkbusy/Makefile tests/zfs-tests/cmd/mkfile/Makefile tests/zfs-tests/cmd/mkfiles/Makefile tests/zfs-tests/cmd/mktree/Makefile tests/zfs-tests/cmd/mmap_exec/Makefile tests/zfs-tests/cmd/mmap_libaio/Makefile tests/zfs-tests/cmd/mmapwrite/Makefile tests/zfs-tests/cmd/randfree_file/Makefile tests/zfs-tests/cmd/readmmap/Makefile tests/zfs-tests/cmd/rename_dir/Makefile tests/zfs-tests/cmd/rm_lnkcnt_zero_file/Makefile tests/zfs-tests/cmd/threadsappend/Makefile tests/zfs-tests/cmd/xattrtest/Makefile tests/zfs-tests/include/Makefile tests/zfs-tests/include/default.cfg tests/zfs-tests/tests/Makefile tests/zfs-tests/tests/functional/Makefile tests/zfs-tests/tests/functional/acl/Makefile tests/zfs-tests/tests/functional/acl/posix/Makefile tests/zfs-tests/tests/functional/atime/Makefile tests/zfs-tests/tests/functional/bootfs/Makefile tests/zfs-tests/tests/functional/cache/Makefile tests/zfs-tests/tests/functional/cachefile/Makefile tests/zfs-tests/tests/functional/casenorm/Makefile tests/zfs-tests/tests/functional/checksum/Makefile tests/zfs-tests/tests/functional/chattr/Makefile tests/zfs-tests/tests/functional/clean_mirror/Makefile tests/zfs-tests/tests/functional/cli_root/Makefile tests/zfs-tests/tests/functional/cli_root/zdb/Makefile tests/zfs-tests/tests/functional/cli_root/zfs_clone/Makefile tests/zfs-tests/tests/functional/cli_root/zfs_copies/Makefile tests/zfs-tests/tests/functional/cli_root/zfs_create/Makefile tests/zfs-tests/tests/functional/cli_root/zfs_destroy/Makefile tests/zfs-tests/tests/functional/cli_root/zfs_get/Makefile tests/zfs-tests/tests/functional/cli_root/zfs_inherit/Makefile tests/zfs-tests/tests/functional/cli_root/zfs/Makefile tests/zfs-tests/tests/functional/cli_root/zfs_mount/Makefile tests/zfs-tests/tests/functional/cli_root/zfs_promote/Makefile tests/zfs-tests/tests/functional/cli_root/zfs_property/Makefile tests/zfs-tests/tests/functional/cli_root/zfs_receive/Makefile tests/zfs-tests/tests/functional/cli_root/zfs_rename/Makefile tests/zfs-tests/tests/functional/cli_root/zfs_reservation/Makefile tests/zfs-tests/tests/functional/cli_root/zfs_rollback/Makefile tests/zfs-tests/tests/functional/cli_root/zfs_send/Makefile tests/zfs-tests/tests/functional/cli_root/zfs_set/Makefile tests/zfs-tests/tests/functional/cli_root/zfs_share/Makefile tests/zfs-tests/tests/functional/cli_root/zfs_snapshot/Makefile tests/zfs-tests/tests/functional/cli_root/zfs_unmount/Makefile tests/zfs-tests/tests/functional/cli_root/zfs_unshare/Makefile tests/zfs-tests/tests/functional/cli_root/zfs_upgrade/Makefile tests/zfs-tests/tests/functional/cli_root/zpool_add/Makefile tests/zfs-tests/tests/functional/cli_root/zpool_attach/Makefile tests/zfs-tests/tests/functional/cli_root/zpool_clear/Makefile tests/zfs-tests/tests/functional/cli_root/zpool_create/Makefile tests/zfs-tests/tests/functional/cli_root/zpool_destroy/Makefile tests/zfs-tests/tests/functional/cli_root/zpool_detach/Makefile tests/zfs-tests/tests/functional/cli_root/zpool_expand/Makefile tests/zfs-tests/tests/functional/cli_root/zpool_export/Makefile tests/zfs-tests/tests/functional/cli_root/zpool_get/Makefile tests/zfs-tests/tests/functional/cli_root/zpool_history/Makefile tests/zfs-tests/tests/functional/cli_root/zpool_import/Makefile tests/zfs-tests/tests/functional/cli_root/zpool_labelclear/Makefile tests/zfs-tests/tests/functional/cli_root/zpool/Makefile tests/zfs-tests/tests/functional/cli_root/zpool_offline/Makefile tests/zfs-tests/tests/functional/cli_root/zpool_online/Makefile tests/zfs-tests/tests/functional/cli_root/zpool_remove/Makefile tests/zfs-tests/tests/functional/cli_root/zpool_replace/Makefile tests/zfs-tests/tests/functional/cli_root/zpool_scrub/Makefile tests/zfs-tests/tests/functional/cli_root/zpool_set/Makefile tests/zfs-tests/tests/functional/cli_root/zpool_status/Makefile tests/zfs-tests/tests/functional/cli_root/zpool_sync/Makefile tests/zfs-tests/tests/functional/cli_root/zpool_upgrade/Makefile tests/zfs-tests/tests/functional/cli_user/Makefile tests/zfs-tests/tests/functional/cli_user/misc/Makefile tests/zfs-tests/tests/functional/cli_user/zfs_list/Makefile tests/zfs-tests/tests/functional/cli_user/zpool_iostat/Makefile tests/zfs-tests/tests/functional/cli_user/zpool_list/Makefile tests/zfs-tests/tests/functional/compression/Makefile tests/zfs-tests/tests/functional/cp_files/Makefile tests/zfs-tests/tests/functional/ctime/Makefile tests/zfs-tests/tests/functional/delegate/Makefile tests/zfs-tests/tests/functional/devices/Makefile tests/zfs-tests/tests/functional/events/Makefile tests/zfs-tests/tests/functional/exec/Makefile tests/zfs-tests/tests/functional/fault/Makefile tests/zfs-tests/tests/functional/features/async_destroy/Makefile tests/zfs-tests/tests/functional/features/large_dnode/Makefile tests/zfs-tests/tests/functional/features/Makefile tests/zfs-tests/tests/functional/grow_pool/Makefile tests/zfs-tests/tests/functional/grow_replicas/Makefile tests/zfs-tests/tests/functional/history/Makefile tests/zfs-tests/tests/functional/inheritance/Makefile tests/zfs-tests/tests/functional/inuse/Makefile tests/zfs-tests/tests/functional/kstat/Makefile tests/zfs-tests/tests/functional/large_files/Makefile tests/zfs-tests/tests/functional/largest_pool/Makefile tests/zfs-tests/tests/functional/link_count/Makefile tests/zfs-tests/tests/functional/libzfs/Makefile tests/zfs-tests/tests/functional/migration/Makefile tests/zfs-tests/tests/functional/mmap/Makefile tests/zfs-tests/tests/functional/mmp/Makefile tests/zfs-tests/tests/functional/mount/Makefile tests/zfs-tests/tests/functional/mv_files/Makefile tests/zfs-tests/tests/functional/nestedfs/Makefile tests/zfs-tests/tests/functional/no_space/Makefile tests/zfs-tests/tests/functional/nopwrite/Makefile tests/zfs-tests/tests/functional/online_offline/Makefile tests/zfs-tests/tests/functional/pool_names/Makefile tests/zfs-tests/tests/functional/poolversion/Makefile tests/zfs-tests/tests/functional/privilege/Makefile tests/zfs-tests/tests/functional/quota/Makefile tests/zfs-tests/tests/functional/raidz/Makefile tests/zfs-tests/tests/functional/redundancy/Makefile tests/zfs-tests/tests/functional/refquota/Makefile tests/zfs-tests/tests/functional/refreserv/Makefile tests/zfs-tests/tests/functional/rename_dirs/Makefile tests/zfs-tests/tests/functional/replacement/Makefile tests/zfs-tests/tests/functional/reservation/Makefile tests/zfs-tests/tests/functional/rootpool/Makefile tests/zfs-tests/tests/functional/rsend/Makefile tests/zfs-tests/tests/functional/scrub_mirror/Makefile tests/zfs-tests/tests/functional/slog/Makefile tests/zfs-tests/tests/functional/snapshot/Makefile tests/zfs-tests/tests/functional/snapused/Makefile tests/zfs-tests/tests/functional/sparse/Makefile tests/zfs-tests/tests/functional/threadsappend/Makefile tests/zfs-tests/tests/functional/tmpfile/Makefile tests/zfs-tests/tests/functional/truncate/Makefile tests/zfs-tests/tests/functional/user_namespace/Makefile tests/zfs-tests/tests/functional/userquota/Makefile tests/zfs-tests/tests/functional/upgrade/Makefile tests/zfs-tests/tests/functional/vdev_zaps/Makefile tests/zfs-tests/tests/functional/write_dirs/Makefile tests/zfs-tests/tests/functional/xattr/Makefile tests/zfs-tests/tests/functional/zvol/Makefile tests/zfs-tests/tests/functional/zvol/zvol_cli/Makefile tests/zfs-tests/tests/functional/zvol/zvol_ENOSPC/Makefile tests/zfs-tests/tests/functional/zvol/zvol_misc/Makefile tests/zfs-tests/tests/functional/zvol/zvol_swap/Makefile tests/zfs-tests/tests/perf/Makefile tests/zfs-tests/tests/perf/fio/Makefile tests/zfs-tests/tests/perf/regression/Makefile tests/zfs-tests/tests/perf/scripts/Makefile tests/zfs-tests/tests/stress/Makefile 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"
48371
48372
48373
48374 cat >confcache <<\_ACEOF
48375 # This file is a shell script that caches the results of configure
48376 # tests run on this system so they can be shared between configure
48377 # scripts and configure runs, see configure's option --config-cache.
48378 # It is not useful on other systems. If it contains results you don't
48379 # want to keep, you may remove or edit it.
48380 #
48381 # config.status only pays attention to the cache file if you give it
48382 # the --recheck option to rerun configure.
48383 #
48384 # `ac_cv_env_foo' variables (set or unset) will be overridden when
48385 # loading this file, other *unset* `ac_cv_foo' will be assigned the
48386 # following values.
48387
48388 _ACEOF
48389
48390 # The following way of writing the cache mishandles newlines in values,
48391 # but we know of no workaround that is simple, portable, and efficient.
48392 # So, we kill variables containing newlines.
48393 # Ultrix sh set writes to stderr and can't be redirected directly,
48394 # and sets the high bit in the cache file unless we assign to the vars.
48395 (
48396 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
48397 eval ac_val=\$$ac_var
48398 case $ac_val in #(
48399 *${as_nl}*)
48400 case $ac_var in #(
48401 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
48402 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
48403 esac
48404 case $ac_var in #(
48405 _ | IFS | as_nl) ;; #(
48406 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
48407 *) $as_unset $ac_var ;;
48408 esac ;;
48409 esac
48410 done
48411
48412 (set) 2>&1 |
48413 case $as_nl`(ac_space=' '; set) 2>&1` in #(
48414 *${as_nl}ac_space=\ *)
48415 # `set' does not quote correctly, so add quotes (double-quote
48416 # substitution turns \\\\ into \\, and sed turns \\ into \).
48417 sed -n \
48418 "s/'/'\\\\''/g;
48419 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
48420 ;; #(
48421 *)
48422 # `set' quotes correctly as required by POSIX, so do not add quotes.
48423 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
48424 ;;
48425 esac |
48426 sort
48427 ) |
48428 sed '
48429 /^ac_cv_env_/b end
48430 t clear
48431 :clear
48432 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
48433 t end
48434 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
48435 :end' >>confcache
48436 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
48437 if test -w "$cache_file"; then
48438 test "x$cache_file" != "x/dev/null" &&
48439 { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
48440 $as_echo "$as_me: updating cache $cache_file" >&6;}
48441 cat confcache >$cache_file
48442 else
48443 { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
48444 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
48445 fi
48446 fi
48447 rm -f confcache
48448
48449 test "x$prefix" = xNONE && prefix=$ac_default_prefix
48450 # Let make expand exec_prefix.
48451 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
48452
48453 DEFS=-DHAVE_CONFIG_H
48454
48455 ac_libobjs=
48456 ac_ltlibobjs=
48457 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
48458 # 1. Remove the extension, and $U if already installed.
48459 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
48460 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
48461 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
48462 # will be set to the directory where LIBOBJS objects are built.
48463 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
48464 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
48465 done
48466 LIBOBJS=$ac_libobjs
48467
48468 LTLIBOBJS=$ac_ltlibobjs
48469
48470
48471 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
48472 { { $as_echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
48473 Usually this means the macro was only invoked conditionally." >&5
48474 $as_echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
48475 Usually this means the macro was only invoked conditionally." >&2;}
48476 { (exit 1); exit 1; }; }
48477 fi
48478 if test -n "$EXEEXT"; then
48479 am__EXEEXT_TRUE=
48480 am__EXEEXT_FALSE='#'
48481 else
48482 am__EXEEXT_TRUE='#'
48483 am__EXEEXT_FALSE=
48484 fi
48485
48486 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
48487 { { $as_echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
48488 Usually this means the macro was only invoked conditionally." >&5
48489 $as_echo "$as_me: error: conditional \"AMDEP\" was never defined.
48490 Usually this means the macro was only invoked conditionally." >&2;}
48491 { (exit 1); exit 1; }; }
48492 fi
48493 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
48494 { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
48495 Usually this means the macro was only invoked conditionally." >&5
48496 $as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
48497 Usually this means the macro was only invoked conditionally." >&2;}
48498 { (exit 1); exit 1; }; }
48499 fi
48500 if test -z "${am__fastdepCCAS_TRUE}" && test -z "${am__fastdepCCAS_FALSE}"; then
48501 { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCCAS\" was never defined.
48502 Usually this means the macro was only invoked conditionally." >&5
48503 $as_echo "$as_me: error: conditional \"am__fastdepCCAS\" was never defined.
48504 Usually this means the macro was only invoked conditionally." >&2;}
48505 { (exit 1); exit 1; }; }
48506 fi
48507 if test -z "${CODE_COVERAGE_ENABLED_TRUE}" && test -z "${CODE_COVERAGE_ENABLED_FALSE}"; then
48508 { { $as_echo "$as_me:$LINENO: error: conditional \"CODE_COVERAGE_ENABLED\" was never defined.
48509 Usually this means the macro was only invoked conditionally." >&5
48510 $as_echo "$as_me: error: conditional \"CODE_COVERAGE_ENABLED\" was never defined.
48511 Usually this means the macro was only invoked conditionally." >&2;}
48512 { (exit 1); exit 1; }; }
48513 fi
48514 if test -z "${TARGET_ASM_X86_64_TRUE}" && test -z "${TARGET_ASM_X86_64_FALSE}"; then
48515 { { $as_echo "$as_me:$LINENO: error: conditional \"TARGET_ASM_X86_64\" was never defined.
48516 Usually this means the macro was only invoked conditionally." >&5
48517 $as_echo "$as_me: error: conditional \"TARGET_ASM_X86_64\" was never defined.
48518 Usually this means the macro was only invoked conditionally." >&2;}
48519 { (exit 1); exit 1; }; }
48520 fi
48521 if test -z "${TARGET_ASM_I386_TRUE}" && test -z "${TARGET_ASM_I386_FALSE}"; then
48522 { { $as_echo "$as_me:$LINENO: error: conditional \"TARGET_ASM_I386\" was never defined.
48523 Usually this means the macro was only invoked conditionally." >&5
48524 $as_echo "$as_me: error: conditional \"TARGET_ASM_I386\" was never defined.
48525 Usually this means the macro was only invoked conditionally." >&2;}
48526 { (exit 1); exit 1; }; }
48527 fi
48528 if test -z "${TARGET_ASM_GENERIC_TRUE}" && test -z "${TARGET_ASM_GENERIC_FALSE}"; then
48529 { { $as_echo "$as_me:$LINENO: error: conditional \"TARGET_ASM_GENERIC\" was never defined.
48530 Usually this means the macro was only invoked conditionally." >&5
48531 $as_echo "$as_me: error: conditional \"TARGET_ASM_GENERIC\" was never defined.
48532 Usually this means the macro was only invoked conditionally." >&2;}
48533 { (exit 1); exit 1; }; }
48534 fi
48535 if test -z "${CONFIG_USER_TRUE}" && test -z "${CONFIG_USER_FALSE}"; then
48536 { { $as_echo "$as_me:$LINENO: error: conditional \"CONFIG_USER\" was never defined.
48537 Usually this means the macro was only invoked conditionally." >&5
48538 $as_echo "$as_me: error: conditional \"CONFIG_USER\" was never defined.
48539 Usually this means the macro was only invoked conditionally." >&2;}
48540 { (exit 1); exit 1; }; }
48541 fi
48542 if test -z "${CONFIG_KERNEL_TRUE}" && test -z "${CONFIG_KERNEL_FALSE}"; then
48543 { { $as_echo "$as_me:$LINENO: error: conditional \"CONFIG_KERNEL\" was never defined.
48544 Usually this means the macro was only invoked conditionally." >&5
48545 $as_echo "$as_me: error: conditional \"CONFIG_KERNEL\" was never defined.
48546 Usually this means the macro was only invoked conditionally." >&2;}
48547 { (exit 1); exit 1; }; }
48548 fi
48549 if test -z "${CONFIG_QAT_TRUE}" && test -z "${CONFIG_QAT_FALSE}"; then
48550 { { $as_echo "$as_me:$LINENO: error: conditional \"CONFIG_QAT\" was never defined.
48551 Usually this means the macro was only invoked conditionally." >&5
48552 $as_echo "$as_me: error: conditional \"CONFIG_QAT\" was never defined.
48553 Usually this means the macro was only invoked conditionally." >&2;}
48554 { (exit 1); exit 1; }; }
48555 fi
48556 if test -z "${WANT_DEVNAME2DEVID_TRUE}" && test -z "${WANT_DEVNAME2DEVID_FALSE}"; then
48557 { { $as_echo "$as_me:$LINENO: error: conditional \"WANT_DEVNAME2DEVID\" was never defined.
48558 Usually this means the macro was only invoked conditionally." >&5
48559 $as_echo "$as_me: error: conditional \"WANT_DEVNAME2DEVID\" was never defined.
48560 Usually this means the macro was only invoked conditionally." >&2;}
48561 { (exit 1); exit 1; }; }
48562 fi
48563 if test -z "${WANT_MMAP_LIBAIO_TRUE}" && test -z "${WANT_MMAP_LIBAIO_FALSE}"; then
48564 { { $as_echo "$as_me:$LINENO: error: conditional \"WANT_MMAP_LIBAIO\" was never defined.
48565 Usually this means the macro was only invoked conditionally." >&5
48566 $as_echo "$as_me: error: conditional \"WANT_MMAP_LIBAIO\" was never defined.
48567 Usually this means the macro was only invoked conditionally." >&2;}
48568 { (exit 1); exit 1; }; }
48569 fi
48570
48571 : ${CONFIG_STATUS=./config.status}
48572 ac_write_fail=0
48573 ac_clean_files_save=$ac_clean_files
48574 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
48575 { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
48576 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
48577 cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
48578 #! $SHELL
48579 # Generated by $as_me.
48580 # Run this file to recreate the current configuration.
48581 # Compiler output produced by configure, useful for debugging
48582 # configure, is in config.log if it exists.
48583
48584 debug=false
48585 ac_cs_recheck=false
48586 ac_cs_silent=false
48587 SHELL=\${CONFIG_SHELL-$SHELL}
48588 _ACEOF
48589
48590 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
48591 ## --------------------- ##
48592 ## M4sh Initialization. ##
48593 ## --------------------- ##
48594
48595 # Be more Bourne compatible
48596 DUALCASE=1; export DUALCASE # for MKS sh
48597 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
48598 emulate sh
48599 NULLCMD=:
48600 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
48601 # is contrary to our usage. Disable this feature.
48602 alias -g '${1+"$@"}'='"$@"'
48603 setopt NO_GLOB_SUBST
48604 else
48605 case `(set -o) 2>/dev/null` in
48606 *posix*) set -o posix ;;
48607 esac
48608
48609 fi
48610
48611
48612
48613
48614 # PATH needs CR
48615 # Avoid depending upon Character Ranges.
48616 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
48617 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
48618 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
48619 as_cr_digits='0123456789'
48620 as_cr_alnum=$as_cr_Letters$as_cr_digits
48621
48622 as_nl='
48623 '
48624 export as_nl
48625 # Printing a long string crashes Solaris 7 /usr/bin/printf.
48626 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
48627 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
48628 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
48629 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48630 as_echo='printf %s\n'
48631 as_echo_n='printf %s'
48632 else
48633 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
48634 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
48635 as_echo_n='/usr/ucb/echo -n'
48636 else
48637 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
48638 as_echo_n_body='eval
48639 arg=$1;
48640 case $arg in
48641 *"$as_nl"*)
48642 expr "X$arg" : "X\\(.*\\)$as_nl";
48643 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
48644 esac;
48645 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
48646 '
48647 export as_echo_n_body
48648 as_echo_n='sh -c $as_echo_n_body as_echo'
48649 fi
48650 export as_echo_body
48651 as_echo='sh -c $as_echo_body as_echo'
48652 fi
48653
48654 # The user is always right.
48655 if test "${PATH_SEPARATOR+set}" != set; then
48656 PATH_SEPARATOR=:
48657 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
48658 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
48659 PATH_SEPARATOR=';'
48660 }
48661 fi
48662
48663 # Support unset when possible.
48664 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
48665 as_unset=unset
48666 else
48667 as_unset=false
48668 fi
48669
48670
48671 # IFS
48672 # We need space, tab and new line, in precisely that order. Quoting is
48673 # there to prevent editors from complaining about space-tab.
48674 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
48675 # splitting by setting IFS to empty value.)
48676 IFS=" "" $as_nl"
48677
48678 # Find who we are. Look in the path if we contain no directory separator.
48679 case $0 in
48680 *[\\/]* ) as_myself=$0 ;;
48681 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
48682 for as_dir in $PATH
48683 do
48684 IFS=$as_save_IFS
48685 test -z "$as_dir" && as_dir=.
48686 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
48687 done
48688 IFS=$as_save_IFS
48689
48690 ;;
48691 esac
48692 # We did not find ourselves, most probably we were run as `sh COMMAND'
48693 # in which case we are not to be found in the path.
48694 if test "x$as_myself" = x; then
48695 as_myself=$0
48696 fi
48697 if test ! -f "$as_myself"; then
48698 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
48699 { (exit 1); exit 1; }
48700 fi
48701
48702 # Work around bugs in pre-3.0 UWIN ksh.
48703 for as_var in ENV MAIL MAILPATH
48704 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
48705 done
48706 PS1='$ '
48707 PS2='> '
48708 PS4='+ '
48709
48710 # NLS nuisances.
48711 LC_ALL=C
48712 export LC_ALL
48713 LANGUAGE=C
48714 export LANGUAGE
48715
48716 # Required to use basename.
48717 if expr a : '\(a\)' >/dev/null 2>&1 &&
48718 test "X`expr 00001 : '.*\(...\)'`" = X001; then
48719 as_expr=expr
48720 else
48721 as_expr=false
48722 fi
48723
48724 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
48725 as_basename=basename
48726 else
48727 as_basename=false
48728 fi
48729
48730
48731 # Name of the executable.
48732 as_me=`$as_basename -- "$0" ||
48733 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
48734 X"$0" : 'X\(//\)$' \| \
48735 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
48736 $as_echo X/"$0" |
48737 sed '/^.*\/\([^/][^/]*\)\/*$/{
48738 s//\1/
48739 q
48740 }
48741 /^X\/\(\/\/\)$/{
48742 s//\1/
48743 q
48744 }
48745 /^X\/\(\/\).*/{
48746 s//\1/
48747 q
48748 }
48749 s/.*/./; q'`
48750
48751 # CDPATH.
48752 $as_unset CDPATH
48753
48754
48755
48756 as_lineno_1=$LINENO
48757 as_lineno_2=$LINENO
48758 test "x$as_lineno_1" != "x$as_lineno_2" &&
48759 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
48760
48761 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
48762 # uniformly replaced by the line number. The first 'sed' inserts a
48763 # line-number line after each line using $LINENO; the second 'sed'
48764 # does the real work. The second script uses 'N' to pair each
48765 # line-number line with the line containing $LINENO, and appends
48766 # trailing '-' during substitution so that $LINENO is not a special
48767 # case at line end.
48768 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
48769 # scripts with optimization help from Paolo Bonzini. Blame Lee
48770 # E. McMahon (1931-1989) for sed's syntax. :-)
48771 sed -n '
48772 p
48773 /[$]LINENO/=
48774 ' <$as_myself |
48775 sed '
48776 s/[$]LINENO.*/&-/
48777 t lineno
48778 b
48779 :lineno
48780 N
48781 :loop
48782 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
48783 t loop
48784 s/-\n.*//
48785 ' >$as_me.lineno &&
48786 chmod +x "$as_me.lineno" ||
48787 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
48788 { (exit 1); exit 1; }; }
48789
48790 # Don't try to exec as it changes $[0], causing all sort of problems
48791 # (the dirname of $[0] is not the place where we might find the
48792 # original and so on. Autoconf is especially sensitive to this).
48793 . "./$as_me.lineno"
48794 # Exit status is that of the last command.
48795 exit
48796 }
48797
48798
48799 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
48800 as_dirname=dirname
48801 else
48802 as_dirname=false
48803 fi
48804
48805 ECHO_C= ECHO_N= ECHO_T=
48806 case `echo -n x` in
48807 -n*)
48808 case `echo 'x\c'` in
48809 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
48810 *) ECHO_C='\c';;
48811 esac;;
48812 *)
48813 ECHO_N='-n';;
48814 esac
48815 if expr a : '\(a\)' >/dev/null 2>&1 &&
48816 test "X`expr 00001 : '.*\(...\)'`" = X001; then
48817 as_expr=expr
48818 else
48819 as_expr=false
48820 fi
48821
48822 rm -f conf$$ conf$$.exe conf$$.file
48823 if test -d conf$$.dir; then
48824 rm -f conf$$.dir/conf$$.file
48825 else
48826 rm -f conf$$.dir
48827 mkdir conf$$.dir 2>/dev/null
48828 fi
48829 if (echo >conf$$.file) 2>/dev/null; then
48830 if ln -s conf$$.file conf$$ 2>/dev/null; then
48831 as_ln_s='ln -s'
48832 # ... but there are two gotchas:
48833 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
48834 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
48835 # In both cases, we have to default to `cp -p'.
48836 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
48837 as_ln_s='cp -p'
48838 elif ln conf$$.file conf$$ 2>/dev/null; then
48839 as_ln_s=ln
48840 else
48841 as_ln_s='cp -p'
48842 fi
48843 else
48844 as_ln_s='cp -p'
48845 fi
48846 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
48847 rmdir conf$$.dir 2>/dev/null
48848
48849 if mkdir -p . 2>/dev/null; then
48850 as_mkdir_p=:
48851 else
48852 test -d ./-p && rmdir ./-p
48853 as_mkdir_p=false
48854 fi
48855
48856 if test -x / >/dev/null 2>&1; then
48857 as_test_x='test -x'
48858 else
48859 if ls -dL / >/dev/null 2>&1; then
48860 as_ls_L_option=L
48861 else
48862 as_ls_L_option=
48863 fi
48864 as_test_x='
48865 eval sh -c '\''
48866 if test -d "$1"; then
48867 test -d "$1/.";
48868 else
48869 case $1 in
48870 -*)set "./$1";;
48871 esac;
48872 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
48873 ???[sx]*):;;*)false;;esac;fi
48874 '\'' sh
48875 '
48876 fi
48877 as_executable_p=$as_test_x
48878
48879 # Sed expression to map a string onto a valid CPP name.
48880 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
48881
48882 # Sed expression to map a string onto a valid variable name.
48883 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
48884
48885
48886 exec 6>&1
48887
48888 # Save the log message, to keep $[0] and so on meaningful, and to
48889 # report actual input values of CONFIG_FILES etc. instead of their
48890 # values after options handling.
48891 ac_log="
48892 This file was extended by zfs $as_me 0.7.11, which was
48893 generated by GNU Autoconf 2.63. Invocation command line was
48894
48895 CONFIG_FILES = $CONFIG_FILES
48896 CONFIG_HEADERS = $CONFIG_HEADERS
48897 CONFIG_LINKS = $CONFIG_LINKS
48898 CONFIG_COMMANDS = $CONFIG_COMMANDS
48899 $ $0 $@
48900
48901 on `(hostname || uname -n) 2>/dev/null | sed 1q`
48902 "
48903
48904 _ACEOF
48905
48906 case $ac_config_files in *"
48907 "*) set x $ac_config_files; shift; ac_config_files=$*;;
48908 esac
48909
48910 case $ac_config_headers in *"
48911 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
48912 esac
48913
48914
48915 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
48916 # Files that config.status was made for.
48917 config_files="$ac_config_files"
48918 config_headers="$ac_config_headers"
48919 config_commands="$ac_config_commands"
48920
48921 _ACEOF
48922
48923 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
48924 ac_cs_usage="\
48925 \`$as_me' instantiates files from templates according to the
48926 current configuration.
48927
48928 Usage: $0 [OPTION]... [FILE]...
48929
48930 -h, --help print this help, then exit
48931 -V, --version print version number and configuration settings, then exit
48932 -q, --quiet, --silent
48933 do not print progress messages
48934 -d, --debug don't remove temporary files
48935 --recheck update $as_me by reconfiguring in the same conditions
48936 --file=FILE[:TEMPLATE]
48937 instantiate the configuration file FILE
48938 --header=FILE[:TEMPLATE]
48939 instantiate the configuration header FILE
48940
48941 Configuration files:
48942 $config_files
48943
48944 Configuration headers:
48945 $config_headers
48946
48947 Configuration commands:
48948 $config_commands
48949
48950 Report bugs to <bug-autoconf@gnu.org>."
48951
48952 _ACEOF
48953 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
48954 ac_cs_version="\\
48955 zfs config.status 0.7.11
48956 configured by $0, generated by GNU Autoconf 2.63,
48957 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
48958
48959 Copyright (C) 2008 Free Software Foundation, Inc.
48960 This config.status script is free software; the Free Software Foundation
48961 gives unlimited permission to copy, distribute and modify it."
48962
48963 ac_pwd='$ac_pwd'
48964 srcdir='$srcdir'
48965 INSTALL='$INSTALL'
48966 MKDIR_P='$MKDIR_P'
48967 AWK='$AWK'
48968 test -n "\$AWK" || AWK=awk
48969 _ACEOF
48970
48971 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
48972 # The default lists apply if the user does not specify any file.
48973 ac_need_defaults=:
48974 while test $# != 0
48975 do
48976 case $1 in
48977 --*=*)
48978 ac_option=`expr "X$1" : 'X\([^=]*\)='`
48979 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
48980 ac_shift=:
48981 ;;
48982 *)
48983 ac_option=$1
48984 ac_optarg=$2
48985 ac_shift=shift
48986 ;;
48987 esac
48988
48989 case $ac_option in
48990 # Handling of the options.
48991 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
48992 ac_cs_recheck=: ;;
48993 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
48994 $as_echo "$ac_cs_version"; exit ;;
48995 --debug | --debu | --deb | --de | --d | -d )
48996 debug=: ;;
48997 --file | --fil | --fi | --f )
48998 $ac_shift
48999 case $ac_optarg in
49000 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
49001 esac
49002 CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
49003 ac_need_defaults=false;;
49004 --header | --heade | --head | --hea )
49005 $ac_shift
49006 case $ac_optarg in
49007 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
49008 esac
49009 CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
49010 ac_need_defaults=false;;
49011 --he | --h)
49012 # Conflict between --help and --header
49013 { $as_echo "$as_me: error: ambiguous option: $1
49014 Try \`$0 --help' for more information." >&2
49015 { (exit 1); exit 1; }; };;
49016 --help | --hel | -h )
49017 $as_echo "$ac_cs_usage"; exit ;;
49018 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
49019 | -silent | --silent | --silen | --sile | --sil | --si | --s)
49020 ac_cs_silent=: ;;
49021
49022 # This is an error.
49023 -*) { $as_echo "$as_me: error: unrecognized option: $1
49024 Try \`$0 --help' for more information." >&2
49025 { (exit 1); exit 1; }; } ;;
49026
49027 *) ac_config_targets="$ac_config_targets $1"
49028 ac_need_defaults=false ;;
49029
49030 esac
49031 shift
49032 done
49033
49034 ac_configure_extra_args=
49035
49036 if $ac_cs_silent; then
49037 exec 6>/dev/null
49038 ac_configure_extra_args="$ac_configure_extra_args --silent"
49039 fi
49040
49041 _ACEOF
49042 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
49043 if \$ac_cs_recheck; then
49044 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
49045 shift
49046 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
49047 CONFIG_SHELL='$SHELL'
49048 export CONFIG_SHELL
49049 exec "\$@"
49050 fi
49051
49052 _ACEOF
49053 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
49054 exec 5>>config.log
49055 {
49056 echo
49057 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
49058 ## Running $as_me. ##
49059 _ASBOX
49060 $as_echo "$ac_log"
49061 } >&5
49062
49063 _ACEOF
49064 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
49065 #
49066 # INIT-COMMANDS
49067 #
49068 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
49069
49070
49071 # The HP-UX ksh and POSIX shell print the target directory to stdout
49072 # if CDPATH is set.
49073 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
49074
49075 sed_quote_subst='$sed_quote_subst'
49076 double_quote_subst='$double_quote_subst'
49077 delay_variable_subst='$delay_variable_subst'
49078 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
49079 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
49080 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
49081 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
49082 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
49083 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
49084 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
49085 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
49086 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
49087 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
49088 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
49089 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
49090 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
49091 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
49092 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
49093 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
49094 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
49095 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
49096 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
49097 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
49098 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
49099 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
49100 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
49101 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
49102 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
49103 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
49104 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
49105 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
49106 OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
49107 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
49108 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
49109 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
49110 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
49111 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
49112 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
49113 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
49114 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
49115 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
49116 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
49117 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
49118 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
49119 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
49120 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
49121 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
49122 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address" | $Xsed -e "$delay_single_quote_subst"`'
49123 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
49124 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
49125 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
49126 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
49127 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
49128 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
49129 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
49130 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
49131 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
49132 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
49133 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
49134 DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
49135 NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
49136 LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
49137 OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
49138 OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
49139 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
49140 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
49141 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
49142 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
49143 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
49144 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
49145 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
49146 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
49147 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
49148 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
49149 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
49150 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
49151 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
49152 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
49153 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
49154 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
49155 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
49156 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
49157 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
49158 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
49159 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
49160 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
49161 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
49162 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
49163 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
49164 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
49165 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
49166 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
49167 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
49168 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
49169 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
49170 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
49171 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
49172 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
49173 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
49174 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
49175 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
49176 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
49177 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
49178 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
49179 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
49180 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
49181 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
49182 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
49183 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
49184 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
49185 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
49186 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
49187 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
49188 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
49189 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
49190 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
49191 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
49192 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
49193 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
49194 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
49195 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
49196
49197 LTCC='$LTCC'
49198 LTCFLAGS='$LTCFLAGS'
49199 compiler='$compiler_DEFAULT'
49200
49201 # Quote evaled strings.
49202 for var in SED \
49203 GREP \
49204 EGREP \
49205 FGREP \
49206 LD \
49207 NM \
49208 LN_S \
49209 lt_SP2NL \
49210 lt_NL2SP \
49211 reload_flag \
49212 OBJDUMP \
49213 deplibs_check_method \
49214 file_magic_cmd \
49215 AR \
49216 AR_FLAGS \
49217 STRIP \
49218 RANLIB \
49219 CC \
49220 CFLAGS \
49221 compiler \
49222 lt_cv_sys_global_symbol_pipe \
49223 lt_cv_sys_global_symbol_to_cdecl \
49224 lt_cv_sys_global_symbol_to_c_name_address \
49225 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
49226 SHELL \
49227 ECHO \
49228 lt_prog_compiler_no_builtin_flag \
49229 lt_prog_compiler_wl \
49230 lt_prog_compiler_pic \
49231 lt_prog_compiler_static \
49232 lt_cv_prog_compiler_c_o \
49233 need_locks \
49234 DSYMUTIL \
49235 NMEDIT \
49236 LIPO \
49237 OTOOL \
49238 OTOOL64 \
49239 shrext_cmds \
49240 export_dynamic_flag_spec \
49241 whole_archive_flag_spec \
49242 compiler_needs_object \
49243 with_gnu_ld \
49244 allow_undefined_flag \
49245 no_undefined_flag \
49246 hardcode_libdir_flag_spec \
49247 hardcode_libdir_flag_spec_ld \
49248 hardcode_libdir_separator \
49249 fix_srcfile_path \
49250 exclude_expsyms \
49251 include_expsyms \
49252 file_list_spec \
49253 variables_saved_for_relink \
49254 libname_spec \
49255 library_names_spec \
49256 soname_spec \
49257 finish_eval \
49258 old_striplib \
49259 striplib; do
49260 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
49261 *[\\\\\\\`\\"\\\$]*)
49262 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
49263 ;;
49264 *)
49265 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
49266 ;;
49267 esac
49268 done
49269
49270 # Double-quote double-evaled strings.
49271 for var in reload_cmds \
49272 old_postinstall_cmds \
49273 old_postuninstall_cmds \
49274 old_archive_cmds \
49275 extract_expsyms_cmds \
49276 old_archive_from_new_cmds \
49277 old_archive_from_expsyms_cmds \
49278 archive_cmds \
49279 archive_expsym_cmds \
49280 module_cmds \
49281 module_expsym_cmds \
49282 export_symbols_cmds \
49283 prelink_cmds \
49284 postinstall_cmds \
49285 postuninstall_cmds \
49286 finish_cmds \
49287 sys_lib_search_path_spec \
49288 sys_lib_dlsearch_path_spec; do
49289 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
49290 *[\\\\\\\`\\"\\\$]*)
49291 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
49292 ;;
49293 *)
49294 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
49295 ;;
49296 esac
49297 done
49298
49299 # Fix-up fallback echo if it was mangled by the above quoting rules.
49300 case \$lt_ECHO in
49301 *'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
49302 ;;
49303 esac
49304
49305 ac_aux_dir='$ac_aux_dir'
49306 xsi_shell='$xsi_shell'
49307 lt_shell_append='$lt_shell_append'
49308
49309 # See if we are running on zsh, and set the options which allow our
49310 # commands through without removal of \ escapes INIT.
49311 if test -n "\${ZSH_VERSION+set}" ; then
49312 setopt NO_GLOB_SUBST
49313 fi
49314
49315
49316 PACKAGE='$PACKAGE'
49317 VERSION='$VERSION'
49318 TIMESTAMP='$TIMESTAMP'
49319 RM='$RM'
49320 ofile='$ofile'
49321
49322
49323
49324
49325 _ACEOF
49326
49327 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
49328
49329 # Handling of arguments.
49330 for ac_config_target in $ac_config_targets
49331 do
49332 case $ac_config_target in
49333 "zfs_config.h") CONFIG_HEADERS="$CONFIG_HEADERS zfs_config.h" ;;
49334 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
49335 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
49336 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
49337 "udev/Makefile") CONFIG_FILES="$CONFIG_FILES udev/Makefile" ;;
49338 "udev/rules.d/Makefile") CONFIG_FILES="$CONFIG_FILES udev/rules.d/Makefile" ;;
49339 "etc/Makefile") CONFIG_FILES="$CONFIG_FILES etc/Makefile" ;;
49340 "etc/init.d/Makefile") CONFIG_FILES="$CONFIG_FILES etc/init.d/Makefile" ;;
49341 "etc/zfs/Makefile") CONFIG_FILES="$CONFIG_FILES etc/zfs/Makefile" ;;
49342 "etc/systemd/Makefile") CONFIG_FILES="$CONFIG_FILES etc/systemd/Makefile" ;;
49343 "etc/systemd/system/Makefile") CONFIG_FILES="$CONFIG_FILES etc/systemd/system/Makefile" ;;
49344 "etc/sudoers.d/Makefile") CONFIG_FILES="$CONFIG_FILES etc/sudoers.d/Makefile" ;;
49345 "etc/modules-load.d/Makefile") CONFIG_FILES="$CONFIG_FILES etc/modules-load.d/Makefile" ;;
49346 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
49347 "man/man1/Makefile") CONFIG_FILES="$CONFIG_FILES man/man1/Makefile" ;;
49348 "man/man5/Makefile") CONFIG_FILES="$CONFIG_FILES man/man5/Makefile" ;;
49349 "man/man8/Makefile") CONFIG_FILES="$CONFIG_FILES man/man8/Makefile" ;;
49350 "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
49351 "lib/libspl/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libspl/Makefile" ;;
49352 "lib/libspl/asm-generic/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libspl/asm-generic/Makefile" ;;
49353 "lib/libspl/asm-i386/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libspl/asm-i386/Makefile" ;;
49354 "lib/libspl/asm-x86_64/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libspl/asm-x86_64/Makefile" ;;
49355 "lib/libspl/include/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libspl/include/Makefile" ;;
49356 "lib/libspl/include/ia32/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libspl/include/ia32/Makefile" ;;
49357 "lib/libspl/include/ia32/sys/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libspl/include/ia32/sys/Makefile" ;;
49358 "lib/libspl/include/rpc/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libspl/include/rpc/Makefile" ;;
49359 "lib/libspl/include/sys/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libspl/include/sys/Makefile" ;;
49360 "lib/libspl/include/sys/dktp/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libspl/include/sys/dktp/Makefile" ;;
49361 "lib/libspl/include/util/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libspl/include/util/Makefile" ;;
49362 "lib/libavl/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libavl/Makefile" ;;
49363 "lib/libefi/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libefi/Makefile" ;;
49364 "lib/libicp/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libicp/Makefile" ;;
49365 "lib/libnvpair/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libnvpair/Makefile" ;;
49366 "lib/libunicode/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libunicode/Makefile" ;;
49367 "lib/libuutil/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libuutil/Makefile" ;;
49368 "lib/libzpool/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libzpool/Makefile" ;;
49369 "lib/libzfs/libzfs.pc") CONFIG_FILES="$CONFIG_FILES lib/libzfs/libzfs.pc" ;;
49370 "lib/libzfs/libzfs_core.pc") CONFIG_FILES="$CONFIG_FILES lib/libzfs/libzfs_core.pc" ;;
49371 "lib/libzfs/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libzfs/Makefile" ;;
49372 "lib/libzfs_core/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libzfs_core/Makefile" ;;
49373 "lib/libshare/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libshare/Makefile" ;;
49374 "cmd/Makefile") CONFIG_FILES="$CONFIG_FILES cmd/Makefile" ;;
49375 "cmd/zdb/Makefile") CONFIG_FILES="$CONFIG_FILES cmd/zdb/Makefile" ;;
49376 "cmd/zhack/Makefile") CONFIG_FILES="$CONFIG_FILES cmd/zhack/Makefile" ;;
49377 "cmd/zfs/Makefile") CONFIG_FILES="$CONFIG_FILES cmd/zfs/Makefile" ;;
49378 "cmd/zinject/Makefile") CONFIG_FILES="$CONFIG_FILES cmd/zinject/Makefile" ;;
49379 "cmd/zpool/Makefile") CONFIG_FILES="$CONFIG_FILES cmd/zpool/Makefile" ;;
49380 "cmd/zstreamdump/Makefile") CONFIG_FILES="$CONFIG_FILES cmd/zstreamdump/Makefile" ;;
49381 "cmd/ztest/Makefile") CONFIG_FILES="$CONFIG_FILES cmd/ztest/Makefile" ;;
49382 "cmd/zpios/Makefile") CONFIG_FILES="$CONFIG_FILES cmd/zpios/Makefile" ;;
49383 "cmd/mount_zfs/Makefile") CONFIG_FILES="$CONFIG_FILES cmd/mount_zfs/Makefile" ;;
49384 "cmd/fsck_zfs/Makefile") CONFIG_FILES="$CONFIG_FILES cmd/fsck_zfs/Makefile" ;;
49385 "cmd/zvol_id/Makefile") CONFIG_FILES="$CONFIG_FILES cmd/zvol_id/Makefile" ;;
49386 "cmd/vdev_id/Makefile") CONFIG_FILES="$CONFIG_FILES cmd/vdev_id/Makefile" ;;
49387 "cmd/arcstat/Makefile") CONFIG_FILES="$CONFIG_FILES cmd/arcstat/Makefile" ;;
49388 "cmd/dbufstat/Makefile") CONFIG_FILES="$CONFIG_FILES cmd/dbufstat/Makefile" ;;
49389 "cmd/arc_summary/Makefile") CONFIG_FILES="$CONFIG_FILES cmd/arc_summary/Makefile" ;;
49390 "cmd/zed/Makefile") CONFIG_FILES="$CONFIG_FILES cmd/zed/Makefile" ;;
49391 "cmd/raidz_test/Makefile") CONFIG_FILES="$CONFIG_FILES cmd/raidz_test/Makefile" ;;
49392 "cmd/zgenhostid/Makefile") CONFIG_FILES="$CONFIG_FILES cmd/zgenhostid/Makefile" ;;
49393 "contrib/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/Makefile" ;;
49394 "contrib/bash_completion.d/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/bash_completion.d/Makefile" ;;
49395 "contrib/dracut/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/dracut/Makefile" ;;
49396 "contrib/dracut/02zfsexpandknowledge/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/dracut/02zfsexpandknowledge/Makefile" ;;
49397 "contrib/dracut/90zfs/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/dracut/90zfs/Makefile" ;;
49398 "contrib/initramfs/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/initramfs/Makefile" ;;
49399 "module/Makefile") CONFIG_FILES="$CONFIG_FILES module/Makefile" ;;
49400 "module/avl/Makefile") CONFIG_FILES="$CONFIG_FILES module/avl/Makefile" ;;
49401 "module/nvpair/Makefile") CONFIG_FILES="$CONFIG_FILES module/nvpair/Makefile" ;;
49402 "module/unicode/Makefile") CONFIG_FILES="$CONFIG_FILES module/unicode/Makefile" ;;
49403 "module/zcommon/Makefile") CONFIG_FILES="$CONFIG_FILES module/zcommon/Makefile" ;;
49404 "module/zfs/Makefile") CONFIG_FILES="$CONFIG_FILES module/zfs/Makefile" ;;
49405 "module/zpios/Makefile") CONFIG_FILES="$CONFIG_FILES module/zpios/Makefile" ;;
49406 "module/icp/Makefile") CONFIG_FILES="$CONFIG_FILES module/icp/Makefile" ;;
49407 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
49408 "include/linux/Makefile") CONFIG_FILES="$CONFIG_FILES include/linux/Makefile" ;;
49409 "include/sys/Makefile") CONFIG_FILES="$CONFIG_FILES include/sys/Makefile" ;;
49410 "include/sys/fs/Makefile") CONFIG_FILES="$CONFIG_FILES include/sys/fs/Makefile" ;;
49411 "include/sys/fm/Makefile") CONFIG_FILES="$CONFIG_FILES include/sys/fm/Makefile" ;;
49412 "include/sys/fm/fs/Makefile") CONFIG_FILES="$CONFIG_FILES include/sys/fm/fs/Makefile" ;;
49413 "include/sys/crypto/Makefile") CONFIG_FILES="$CONFIG_FILES include/sys/crypto/Makefile" ;;
49414 "include/sys/sysevent/Makefile") CONFIG_FILES="$CONFIG_FILES include/sys/sysevent/Makefile" ;;
49415 "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
49416 "scripts/zpios-profile/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/zpios-profile/Makefile" ;;
49417 "scripts/zpios-test/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/zpios-test/Makefile" ;;
49418 "scripts/zpool-config/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/zpool-config/Makefile" ;;
49419 "scripts/common.sh") CONFIG_FILES="$CONFIG_FILES scripts/common.sh" ;;
49420 "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
49421 "tests/test-runner/Makefile") CONFIG_FILES="$CONFIG_FILES tests/test-runner/Makefile" ;;
49422 "tests/test-runner/cmd/Makefile") CONFIG_FILES="$CONFIG_FILES tests/test-runner/cmd/Makefile" ;;
49423 "tests/test-runner/include/Makefile") CONFIG_FILES="$CONFIG_FILES tests/test-runner/include/Makefile" ;;
49424 "tests/test-runner/man/Makefile") CONFIG_FILES="$CONFIG_FILES tests/test-runner/man/Makefile" ;;
49425 "tests/runfiles/Makefile") CONFIG_FILES="$CONFIG_FILES tests/runfiles/Makefile" ;;
49426 "tests/zfs-tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/Makefile" ;;
49427 "tests/zfs-tests/callbacks/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/callbacks/Makefile" ;;
49428 "tests/zfs-tests/cmd/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/cmd/Makefile" ;;
49429 "tests/zfs-tests/cmd/chg_usr_exec/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/cmd/chg_usr_exec/Makefile" ;;
49430 "tests/zfs-tests/cmd/user_ns_exec/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/cmd/user_ns_exec/Makefile" ;;
49431 "tests/zfs-tests/cmd/devname2devid/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/cmd/devname2devid/Makefile" ;;
49432 "tests/zfs-tests/cmd/dir_rd_update/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/cmd/dir_rd_update/Makefile" ;;
49433 "tests/zfs-tests/cmd/file_check/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/cmd/file_check/Makefile" ;;
49434 "tests/zfs-tests/cmd/file_trunc/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/cmd/file_trunc/Makefile" ;;
49435 "tests/zfs-tests/cmd/file_write/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/cmd/file_write/Makefile" ;;
49436 "tests/zfs-tests/cmd/largest_file/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/cmd/largest_file/Makefile" ;;
49437 "tests/zfs-tests/cmd/mkbusy/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/cmd/mkbusy/Makefile" ;;
49438 "tests/zfs-tests/cmd/mkfile/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/cmd/mkfile/Makefile" ;;
49439 "tests/zfs-tests/cmd/mkfiles/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/cmd/mkfiles/Makefile" ;;
49440 "tests/zfs-tests/cmd/mktree/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/cmd/mktree/Makefile" ;;
49441 "tests/zfs-tests/cmd/mmap_exec/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/cmd/mmap_exec/Makefile" ;;
49442 "tests/zfs-tests/cmd/mmap_libaio/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/cmd/mmap_libaio/Makefile" ;;
49443 "tests/zfs-tests/cmd/mmapwrite/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/cmd/mmapwrite/Makefile" ;;
49444 "tests/zfs-tests/cmd/randfree_file/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/cmd/randfree_file/Makefile" ;;
49445 "tests/zfs-tests/cmd/readmmap/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/cmd/readmmap/Makefile" ;;
49446 "tests/zfs-tests/cmd/rename_dir/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/cmd/rename_dir/Makefile" ;;
49447 "tests/zfs-tests/cmd/rm_lnkcnt_zero_file/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/cmd/rm_lnkcnt_zero_file/Makefile" ;;
49448 "tests/zfs-tests/cmd/threadsappend/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/cmd/threadsappend/Makefile" ;;
49449 "tests/zfs-tests/cmd/xattrtest/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/cmd/xattrtest/Makefile" ;;
49450 "tests/zfs-tests/include/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/include/Makefile" ;;
49451 "tests/zfs-tests/include/default.cfg") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/include/default.cfg" ;;
49452 "tests/zfs-tests/tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/Makefile" ;;
49453 "tests/zfs-tests/tests/functional/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/Makefile" ;;
49454 "tests/zfs-tests/tests/functional/acl/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/acl/Makefile" ;;
49455 "tests/zfs-tests/tests/functional/acl/posix/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/acl/posix/Makefile" ;;
49456 "tests/zfs-tests/tests/functional/atime/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/atime/Makefile" ;;
49457 "tests/zfs-tests/tests/functional/bootfs/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/bootfs/Makefile" ;;
49458 "tests/zfs-tests/tests/functional/cache/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/cache/Makefile" ;;
49459 "tests/zfs-tests/tests/functional/cachefile/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/cachefile/Makefile" ;;
49460 "tests/zfs-tests/tests/functional/casenorm/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/casenorm/Makefile" ;;
49461 "tests/zfs-tests/tests/functional/checksum/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/checksum/Makefile" ;;
49462 "tests/zfs-tests/tests/functional/chattr/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/chattr/Makefile" ;;
49463 "tests/zfs-tests/tests/functional/clean_mirror/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/clean_mirror/Makefile" ;;
49464 "tests/zfs-tests/tests/functional/cli_root/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/cli_root/Makefile" ;;
49465 "tests/zfs-tests/tests/functional/cli_root/zdb/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/cli_root/zdb/Makefile" ;;
49466 "tests/zfs-tests/tests/functional/cli_root/zfs_clone/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/cli_root/zfs_clone/Makefile" ;;
49467 "tests/zfs-tests/tests/functional/cli_root/zfs_copies/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/cli_root/zfs_copies/Makefile" ;;
49468 "tests/zfs-tests/tests/functional/cli_root/zfs_create/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/cli_root/zfs_create/Makefile" ;;
49469 "tests/zfs-tests/tests/functional/cli_root/zfs_destroy/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/cli_root/zfs_destroy/Makefile" ;;
49470 "tests/zfs-tests/tests/functional/cli_root/zfs_get/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/cli_root/zfs_get/Makefile" ;;
49471 "tests/zfs-tests/tests/functional/cli_root/zfs_inherit/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/cli_root/zfs_inherit/Makefile" ;;
49472 "tests/zfs-tests/tests/functional/cli_root/zfs/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/cli_root/zfs/Makefile" ;;
49473 "tests/zfs-tests/tests/functional/cli_root/zfs_mount/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/cli_root/zfs_mount/Makefile" ;;
49474 "tests/zfs-tests/tests/functional/cli_root/zfs_promote/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/cli_root/zfs_promote/Makefile" ;;
49475 "tests/zfs-tests/tests/functional/cli_root/zfs_property/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/cli_root/zfs_property/Makefile" ;;
49476 "tests/zfs-tests/tests/functional/cli_root/zfs_receive/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/cli_root/zfs_receive/Makefile" ;;
49477 "tests/zfs-tests/tests/functional/cli_root/zfs_rename/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/cli_root/zfs_rename/Makefile" ;;
49478 "tests/zfs-tests/tests/functional/cli_root/zfs_reservation/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/cli_root/zfs_reservation/Makefile" ;;
49479 "tests/zfs-tests/tests/functional/cli_root/zfs_rollback/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/cli_root/zfs_rollback/Makefile" ;;
49480 "tests/zfs-tests/tests/functional/cli_root/zfs_send/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/cli_root/zfs_send/Makefile" ;;
49481 "tests/zfs-tests/tests/functional/cli_root/zfs_set/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/cli_root/zfs_set/Makefile" ;;
49482 "tests/zfs-tests/tests/functional/cli_root/zfs_share/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/cli_root/zfs_share/Makefile" ;;
49483 "tests/zfs-tests/tests/functional/cli_root/zfs_snapshot/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/cli_root/zfs_snapshot/Makefile" ;;
49484 "tests/zfs-tests/tests/functional/cli_root/zfs_unmount/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/cli_root/zfs_unmount/Makefile" ;;
49485 "tests/zfs-tests/tests/functional/cli_root/zfs_unshare/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/cli_root/zfs_unshare/Makefile" ;;
49486 "tests/zfs-tests/tests/functional/cli_root/zfs_upgrade/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/cli_root/zfs_upgrade/Makefile" ;;
49487 "tests/zfs-tests/tests/functional/cli_root/zpool_add/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/cli_root/zpool_add/Makefile" ;;
49488 "tests/zfs-tests/tests/functional/cli_root/zpool_attach/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/cli_root/zpool_attach/Makefile" ;;
49489 "tests/zfs-tests/tests/functional/cli_root/zpool_clear/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/cli_root/zpool_clear/Makefile" ;;
49490 "tests/zfs-tests/tests/functional/cli_root/zpool_create/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/cli_root/zpool_create/Makefile" ;;
49491 "tests/zfs-tests/tests/functional/cli_root/zpool_destroy/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/cli_root/zpool_destroy/Makefile" ;;
49492 "tests/zfs-tests/tests/functional/cli_root/zpool_detach/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/cli_root/zpool_detach/Makefile" ;;
49493 "tests/zfs-tests/tests/functional/cli_root/zpool_expand/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/cli_root/zpool_expand/Makefile" ;;
49494 "tests/zfs-tests/tests/functional/cli_root/zpool_export/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/cli_root/zpool_export/Makefile" ;;
49495 "tests/zfs-tests/tests/functional/cli_root/zpool_get/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/cli_root/zpool_get/Makefile" ;;
49496 "tests/zfs-tests/tests/functional/cli_root/zpool_history/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/cli_root/zpool_history/Makefile" ;;
49497 "tests/zfs-tests/tests/functional/cli_root/zpool_import/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/cli_root/zpool_import/Makefile" ;;
49498 "tests/zfs-tests/tests/functional/cli_root/zpool_labelclear/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/cli_root/zpool_labelclear/Makefile" ;;
49499 "tests/zfs-tests/tests/functional/cli_root/zpool/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/cli_root/zpool/Makefile" ;;
49500 "tests/zfs-tests/tests/functional/cli_root/zpool_offline/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/cli_root/zpool_offline/Makefile" ;;
49501 "tests/zfs-tests/tests/functional/cli_root/zpool_online/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/cli_root/zpool_online/Makefile" ;;
49502 "tests/zfs-tests/tests/functional/cli_root/zpool_remove/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/cli_root/zpool_remove/Makefile" ;;
49503 "tests/zfs-tests/tests/functional/cli_root/zpool_replace/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/cli_root/zpool_replace/Makefile" ;;
49504 "tests/zfs-tests/tests/functional/cli_root/zpool_scrub/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/cli_root/zpool_scrub/Makefile" ;;
49505 "tests/zfs-tests/tests/functional/cli_root/zpool_set/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/cli_root/zpool_set/Makefile" ;;
49506 "tests/zfs-tests/tests/functional/cli_root/zpool_status/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/cli_root/zpool_status/Makefile" ;;
49507 "tests/zfs-tests/tests/functional/cli_root/zpool_sync/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/cli_root/zpool_sync/Makefile" ;;
49508 "tests/zfs-tests/tests/functional/cli_root/zpool_upgrade/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/cli_root/zpool_upgrade/Makefile" ;;
49509 "tests/zfs-tests/tests/functional/cli_user/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/cli_user/Makefile" ;;
49510 "tests/zfs-tests/tests/functional/cli_user/misc/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/cli_user/misc/Makefile" ;;
49511 "tests/zfs-tests/tests/functional/cli_user/zfs_list/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/cli_user/zfs_list/Makefile" ;;
49512 "tests/zfs-tests/tests/functional/cli_user/zpool_iostat/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/cli_user/zpool_iostat/Makefile" ;;
49513 "tests/zfs-tests/tests/functional/cli_user/zpool_list/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/cli_user/zpool_list/Makefile" ;;
49514 "tests/zfs-tests/tests/functional/compression/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/compression/Makefile" ;;
49515 "tests/zfs-tests/tests/functional/cp_files/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/cp_files/Makefile" ;;
49516 "tests/zfs-tests/tests/functional/ctime/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/ctime/Makefile" ;;
49517 "tests/zfs-tests/tests/functional/delegate/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/delegate/Makefile" ;;
49518 "tests/zfs-tests/tests/functional/devices/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/devices/Makefile" ;;
49519 "tests/zfs-tests/tests/functional/events/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/events/Makefile" ;;
49520 "tests/zfs-tests/tests/functional/exec/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/exec/Makefile" ;;
49521 "tests/zfs-tests/tests/functional/fault/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/fault/Makefile" ;;
49522 "tests/zfs-tests/tests/functional/features/async_destroy/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/features/async_destroy/Makefile" ;;
49523 "tests/zfs-tests/tests/functional/features/large_dnode/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/features/large_dnode/Makefile" ;;
49524 "tests/zfs-tests/tests/functional/features/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/features/Makefile" ;;
49525 "tests/zfs-tests/tests/functional/grow_pool/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/grow_pool/Makefile" ;;
49526 "tests/zfs-tests/tests/functional/grow_replicas/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/grow_replicas/Makefile" ;;
49527 "tests/zfs-tests/tests/functional/history/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/history/Makefile" ;;
49528 "tests/zfs-tests/tests/functional/inheritance/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/inheritance/Makefile" ;;
49529 "tests/zfs-tests/tests/functional/inuse/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/inuse/Makefile" ;;
49530 "tests/zfs-tests/tests/functional/kstat/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/kstat/Makefile" ;;
49531 "tests/zfs-tests/tests/functional/large_files/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/large_files/Makefile" ;;
49532 "tests/zfs-tests/tests/functional/largest_pool/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/largest_pool/Makefile" ;;
49533 "tests/zfs-tests/tests/functional/link_count/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/link_count/Makefile" ;;
49534 "tests/zfs-tests/tests/functional/libzfs/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/libzfs/Makefile" ;;
49535 "tests/zfs-tests/tests/functional/migration/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/migration/Makefile" ;;
49536 "tests/zfs-tests/tests/functional/mmap/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/mmap/Makefile" ;;
49537 "tests/zfs-tests/tests/functional/mmp/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/mmp/Makefile" ;;
49538 "tests/zfs-tests/tests/functional/mount/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/mount/Makefile" ;;
49539 "tests/zfs-tests/tests/functional/mv_files/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/mv_files/Makefile" ;;
49540 "tests/zfs-tests/tests/functional/nestedfs/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/nestedfs/Makefile" ;;
49541 "tests/zfs-tests/tests/functional/no_space/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/no_space/Makefile" ;;
49542 "tests/zfs-tests/tests/functional/nopwrite/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/nopwrite/Makefile" ;;
49543 "tests/zfs-tests/tests/functional/online_offline/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/online_offline/Makefile" ;;
49544 "tests/zfs-tests/tests/functional/pool_names/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/pool_names/Makefile" ;;
49545 "tests/zfs-tests/tests/functional/poolversion/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/poolversion/Makefile" ;;
49546 "tests/zfs-tests/tests/functional/privilege/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/privilege/Makefile" ;;
49547 "tests/zfs-tests/tests/functional/quota/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/quota/Makefile" ;;
49548 "tests/zfs-tests/tests/functional/raidz/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/raidz/Makefile" ;;
49549 "tests/zfs-tests/tests/functional/redundancy/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/redundancy/Makefile" ;;
49550 "tests/zfs-tests/tests/functional/refquota/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/refquota/Makefile" ;;
49551 "tests/zfs-tests/tests/functional/refreserv/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/refreserv/Makefile" ;;
49552 "tests/zfs-tests/tests/functional/rename_dirs/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/rename_dirs/Makefile" ;;
49553 "tests/zfs-tests/tests/functional/replacement/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/replacement/Makefile" ;;
49554 "tests/zfs-tests/tests/functional/reservation/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/reservation/Makefile" ;;
49555 "tests/zfs-tests/tests/functional/rootpool/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/rootpool/Makefile" ;;
49556 "tests/zfs-tests/tests/functional/rsend/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/rsend/Makefile" ;;
49557 "tests/zfs-tests/tests/functional/scrub_mirror/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/scrub_mirror/Makefile" ;;
49558 "tests/zfs-tests/tests/functional/slog/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/slog/Makefile" ;;
49559 "tests/zfs-tests/tests/functional/snapshot/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/snapshot/Makefile" ;;
49560 "tests/zfs-tests/tests/functional/snapused/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/snapused/Makefile" ;;
49561 "tests/zfs-tests/tests/functional/sparse/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/sparse/Makefile" ;;
49562 "tests/zfs-tests/tests/functional/threadsappend/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/threadsappend/Makefile" ;;
49563 "tests/zfs-tests/tests/functional/tmpfile/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/tmpfile/Makefile" ;;
49564 "tests/zfs-tests/tests/functional/truncate/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/truncate/Makefile" ;;
49565 "tests/zfs-tests/tests/functional/user_namespace/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/user_namespace/Makefile" ;;
49566 "tests/zfs-tests/tests/functional/userquota/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/userquota/Makefile" ;;
49567 "tests/zfs-tests/tests/functional/upgrade/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/upgrade/Makefile" ;;
49568 "tests/zfs-tests/tests/functional/vdev_zaps/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/vdev_zaps/Makefile" ;;
49569 "tests/zfs-tests/tests/functional/write_dirs/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/write_dirs/Makefile" ;;
49570 "tests/zfs-tests/tests/functional/xattr/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/xattr/Makefile" ;;
49571 "tests/zfs-tests/tests/functional/zvol/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/zvol/Makefile" ;;
49572 "tests/zfs-tests/tests/functional/zvol/zvol_cli/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/zvol/zvol_cli/Makefile" ;;
49573 "tests/zfs-tests/tests/functional/zvol/zvol_ENOSPC/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/zvol/zvol_ENOSPC/Makefile" ;;
49574 "tests/zfs-tests/tests/functional/zvol/zvol_misc/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/zvol/zvol_misc/Makefile" ;;
49575 "tests/zfs-tests/tests/functional/zvol/zvol_swap/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/zvol/zvol_swap/Makefile" ;;
49576 "tests/zfs-tests/tests/perf/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/perf/Makefile" ;;
49577 "tests/zfs-tests/tests/perf/fio/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/perf/fio/Makefile" ;;
49578 "tests/zfs-tests/tests/perf/regression/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/perf/regression/Makefile" ;;
49579 "tests/zfs-tests/tests/perf/scripts/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/perf/scripts/Makefile" ;;
49580 "tests/zfs-tests/tests/stress/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/stress/Makefile" ;;
49581 "rpm/Makefile") CONFIG_FILES="$CONFIG_FILES rpm/Makefile" ;;
49582 "rpm/redhat/Makefile") CONFIG_FILES="$CONFIG_FILES rpm/redhat/Makefile" ;;
49583 "rpm/redhat/zfs.spec") CONFIG_FILES="$CONFIG_FILES rpm/redhat/zfs.spec" ;;
49584 "rpm/redhat/zfs-kmod.spec") CONFIG_FILES="$CONFIG_FILES rpm/redhat/zfs-kmod.spec" ;;
49585 "rpm/redhat/zfs-dkms.spec") CONFIG_FILES="$CONFIG_FILES rpm/redhat/zfs-dkms.spec" ;;
49586 "rpm/generic/Makefile") CONFIG_FILES="$CONFIG_FILES rpm/generic/Makefile" ;;
49587 "rpm/generic/zfs.spec") CONFIG_FILES="$CONFIG_FILES rpm/generic/zfs.spec" ;;
49588 "rpm/generic/zfs-kmod.spec") CONFIG_FILES="$CONFIG_FILES rpm/generic/zfs-kmod.spec" ;;
49589 "rpm/generic/zfs-dkms.spec") CONFIG_FILES="$CONFIG_FILES rpm/generic/zfs-dkms.spec" ;;
49590 "zfs-script-config.sh") CONFIG_FILES="$CONFIG_FILES zfs-script-config.sh" ;;
49591 "zfs.release") CONFIG_FILES="$CONFIG_FILES zfs.release" ;;
49592
49593 *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
49594 $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
49595 { (exit 1); exit 1; }; };;
49596 esac
49597 done
49598
49599
49600 # If the user did not use the arguments to specify the items to instantiate,
49601 # then the envvar interface is used. Set only those that are not.
49602 # We use the long form for the default assignment because of an extremely
49603 # bizarre bug on SunOS 4.1.3.
49604 if $ac_need_defaults; then
49605 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
49606 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
49607 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
49608 fi
49609
49610 # Have a temporary directory for convenience. Make it in the build tree
49611 # simply because there is no reason against having it here, and in addition,
49612 # creating and moving files from /tmp can sometimes cause problems.
49613 # Hook for its removal unless debugging.
49614 # Note that there is a small window in which the directory will not be cleaned:
49615 # after its creation but before its name has been assigned to `$tmp'.
49616 $debug ||
49617 {
49618 tmp=
49619 trap 'exit_status=$?
49620 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
49621 ' 0
49622 trap '{ (exit 1); exit 1; }' 1 2 13 15
49623 }
49624 # Create a (secure) tmp directory for tmp files.
49625
49626 {
49627 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
49628 test -n "$tmp" && test -d "$tmp"
49629 } ||
49630 {
49631 tmp=./conf$$-$RANDOM
49632 (umask 077 && mkdir "$tmp")
49633 } ||
49634 {
49635 $as_echo "$as_me: cannot create a temporary directory in ." >&2
49636 { (exit 1); exit 1; }
49637 }
49638
49639 # Set up the scripts for CONFIG_FILES section.
49640 # No need to generate them if there are no CONFIG_FILES.
49641 # This happens for instance with `./config.status config.h'.
49642 if test -n "$CONFIG_FILES"; then
49643
49644
49645 ac_cr=' '
49646 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
49647 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
49648 ac_cs_awk_cr='\\r'
49649 else
49650 ac_cs_awk_cr=$ac_cr
49651 fi
49652
49653 echo 'BEGIN {' >"$tmp/subs1.awk" &&
49654 _ACEOF
49655
49656
49657 {
49658 echo "cat >conf$$subs.awk <<_ACEOF" &&
49659 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
49660 echo "_ACEOF"
49661 } >conf$$subs.sh ||
49662 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
49663 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
49664 { (exit 1); exit 1; }; }
49665 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
49666 ac_delim='%!_!# '
49667 for ac_last_try in false false false false false :; do
49668 . ./conf$$subs.sh ||
49669 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
49670 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
49671 { (exit 1); exit 1; }; }
49672
49673 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
49674 if test $ac_delim_n = $ac_delim_num; then
49675 break
49676 elif $ac_last_try; then
49677 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
49678 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
49679 { (exit 1); exit 1; }; }
49680 else
49681 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
49682 fi
49683 done
49684 rm -f conf$$subs.sh
49685
49686 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
49687 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
49688 _ACEOF
49689 sed -n '
49690 h
49691 s/^/S["/; s/!.*/"]=/
49692 p
49693 g
49694 s/^[^!]*!//
49695 :repl
49696 t repl
49697 s/'"$ac_delim"'$//
49698 t delim
49699 :nl
49700 h
49701 s/\(.\{148\}\).*/\1/
49702 t more1
49703 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
49704 p
49705 n
49706 b repl
49707 :more1
49708 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
49709 p
49710 g
49711 s/.\{148\}//
49712 t nl
49713 :delim
49714 h
49715 s/\(.\{148\}\).*/\1/
49716 t more2
49717 s/["\\]/\\&/g; s/^/"/; s/$/"/
49718 p
49719 b
49720 :more2
49721 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
49722 p
49723 g
49724 s/.\{148\}//
49725 t delim
49726 ' <conf$$subs.awk | sed '
49727 /^[^""]/{
49728 N
49729 s/\n//
49730 }
49731 ' >>$CONFIG_STATUS || ac_write_fail=1
49732 rm -f conf$$subs.awk
49733 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
49734 _ACAWK
49735 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
49736 for (key in S) S_is_set[key] = 1
49737 FS = "\a"
49738
49739 }
49740 {
49741 line = $ 0
49742 nfields = split(line, field, "@")
49743 substed = 0
49744 len = length(field[1])
49745 for (i = 2; i < nfields; i++) {
49746 key = field[i]
49747 keylen = length(key)
49748 if (S_is_set[key]) {
49749 value = S[key]
49750 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
49751 len += length(value) + length(field[++i])
49752 substed = 1
49753 } else
49754 len += 1 + keylen
49755 }
49756
49757 print line
49758 }
49759
49760 _ACAWK
49761 _ACEOF
49762 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
49763 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
49764 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
49765 else
49766 cat
49767 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
49768 || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
49769 $as_echo "$as_me: error: could not setup config files machinery" >&2;}
49770 { (exit 1); exit 1; }; }
49771 _ACEOF
49772
49773 # VPATH may cause trouble with some makes, so we remove $(srcdir),
49774 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
49775 # trailing colons and then remove the whole line if VPATH becomes empty
49776 # (actually we leave an empty line to preserve line numbers).
49777 if test "x$srcdir" = x.; then
49778 ac_vpsub='/^[ ]*VPATH[ ]*=/{
49779 s/:*\$(srcdir):*/:/
49780 s/:*\${srcdir}:*/:/
49781 s/:*@srcdir@:*/:/
49782 s/^\([^=]*=[ ]*\):*/\1/
49783 s/:*$//
49784 s/^[^=]*=[ ]*$//
49785 }'
49786 fi
49787
49788 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
49789 fi # test -n "$CONFIG_FILES"
49790
49791 # Set up the scripts for CONFIG_HEADERS section.
49792 # No need to generate them if there are no CONFIG_HEADERS.
49793 # This happens for instance with `./config.status Makefile'.
49794 if test -n "$CONFIG_HEADERS"; then
49795 cat >"$tmp/defines.awk" <<\_ACAWK ||
49796 BEGIN {
49797 _ACEOF
49798
49799 # Transform confdefs.h into an awk script `defines.awk', embedded as
49800 # here-document in config.status, that substitutes the proper values into
49801 # config.h.in to produce config.h.
49802
49803 # Create a delimiter string that does not exist in confdefs.h, to ease
49804 # handling of long lines.
49805 ac_delim='%!_!# '
49806 for ac_last_try in false false :; do
49807 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
49808 if test -z "$ac_t"; then
49809 break
49810 elif $ac_last_try; then
49811 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
49812 $as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
49813 { (exit 1); exit 1; }; }
49814 else
49815 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
49816 fi
49817 done
49818
49819 # For the awk script, D is an array of macro values keyed by name,
49820 # likewise P contains macro parameters if any. Preserve backslash
49821 # newline sequences.
49822
49823 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
49824 sed -n '
49825 s/.\{148\}/&'"$ac_delim"'/g
49826 t rset
49827 :rset
49828 s/^[ ]*#[ ]*define[ ][ ]*/ /
49829 t def
49830 d
49831 :def
49832 s/\\$//
49833 t bsnl
49834 s/["\\]/\\&/g
49835 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
49836 D["\1"]=" \3"/p
49837 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
49838 d
49839 :bsnl
49840 s/["\\]/\\&/g
49841 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
49842 D["\1"]=" \3\\\\\\n"\\/p
49843 t cont
49844 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
49845 t cont
49846 d
49847 :cont
49848 n
49849 s/.\{148\}/&'"$ac_delim"'/g
49850 t clear
49851 :clear
49852 s/\\$//
49853 t bsnlc
49854 s/["\\]/\\&/g; s/^/"/; s/$/"/p
49855 d
49856 :bsnlc
49857 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
49858 b cont
49859 ' <confdefs.h | sed '
49860 s/'"$ac_delim"'/"\\\
49861 "/g' >>$CONFIG_STATUS || ac_write_fail=1
49862
49863 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
49864 for (key in D) D_is_set[key] = 1
49865 FS = "\a"
49866 }
49867 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
49868 line = \$ 0
49869 split(line, arg, " ")
49870 if (arg[1] == "#") {
49871 defundef = arg[2]
49872 mac1 = arg[3]
49873 } else {
49874 defundef = substr(arg[1], 2)
49875 mac1 = arg[2]
49876 }
49877 split(mac1, mac2, "(") #)
49878 macro = mac2[1]
49879 prefix = substr(line, 1, index(line, defundef) - 1)
49880 if (D_is_set[macro]) {
49881 # Preserve the white space surrounding the "#".
49882 print prefix "define", macro P[macro] D[macro]
49883 next
49884 } else {
49885 # Replace #undef with comments. This is necessary, for example,
49886 # in the case of _POSIX_SOURCE, which is predefined and required
49887 # on some systems where configure will not decide to define it.
49888 if (defundef == "undef") {
49889 print "/*", prefix defundef, macro, "*/"
49890 next
49891 }
49892 }
49893 }
49894 { print }
49895 _ACAWK
49896 _ACEOF
49897 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
49898 { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
49899 $as_echo "$as_me: error: could not setup config headers machinery" >&2;}
49900 { (exit 1); exit 1; }; }
49901 fi # test -n "$CONFIG_HEADERS"
49902
49903
49904 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
49905 shift
49906 for ac_tag
49907 do
49908 case $ac_tag in
49909 :[FHLC]) ac_mode=$ac_tag; continue;;
49910 esac
49911 case $ac_mode$ac_tag in
49912 :[FHL]*:*);;
49913 :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
49914 $as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
49915 { (exit 1); exit 1; }; };;
49916 :[FH]-) ac_tag=-:-;;
49917 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
49918 esac
49919 ac_save_IFS=$IFS
49920 IFS=:
49921 set x $ac_tag
49922 IFS=$ac_save_IFS
49923 shift
49924 ac_file=$1
49925 shift
49926
49927 case $ac_mode in
49928 :L) ac_source=$1;;
49929 :[FH])
49930 ac_file_inputs=
49931 for ac_f
49932 do
49933 case $ac_f in
49934 -) ac_f="$tmp/stdin";;
49935 *) # Look for the file first in the build tree, then in the source tree
49936 # (if the path is not absolute). The absolute path cannot be DOS-style,
49937 # because $ac_f cannot contain `:'.
49938 test -f "$ac_f" ||
49939 case $ac_f in
49940 [\\/$]*) false;;
49941 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
49942 esac ||
49943 { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
49944 $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
49945 { (exit 1); exit 1; }; };;
49946 esac
49947 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
49948 ac_file_inputs="$ac_file_inputs '$ac_f'"
49949 done
49950
49951 # Let's still pretend it is `configure' which instantiates (i.e., don't
49952 # use $as_me), people would be surprised to read:
49953 # /* config.h. Generated by config.status. */
49954 configure_input='Generated from '`
49955 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
49956 `' by configure.'
49957 if test x"$ac_file" != x-; then
49958 configure_input="$ac_file. $configure_input"
49959 { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
49960 $as_echo "$as_me: creating $ac_file" >&6;}
49961 fi
49962 # Neutralize special characters interpreted by sed in replacement strings.
49963 case $configure_input in #(
49964 *\&* | *\|* | *\\* )
49965 ac_sed_conf_input=`$as_echo "$configure_input" |
49966 sed 's/[\\\\&|]/\\\\&/g'`;; #(
49967 *) ac_sed_conf_input=$configure_input;;
49968 esac
49969
49970 case $ac_tag in
49971 *:-:* | *:-) cat >"$tmp/stdin" \
49972 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
49973 $as_echo "$as_me: error: could not create $ac_file" >&2;}
49974 { (exit 1); exit 1; }; } ;;
49975 esac
49976 ;;
49977 esac
49978
49979 ac_dir=`$as_dirname -- "$ac_file" ||
49980 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
49981 X"$ac_file" : 'X\(//\)[^/]' \| \
49982 X"$ac_file" : 'X\(//\)$' \| \
49983 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
49984 $as_echo X"$ac_file" |
49985 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
49986 s//\1/
49987 q
49988 }
49989 /^X\(\/\/\)[^/].*/{
49990 s//\1/
49991 q
49992 }
49993 /^X\(\/\/\)$/{
49994 s//\1/
49995 q
49996 }
49997 /^X\(\/\).*/{
49998 s//\1/
49999 q
50000 }
50001 s/.*/./; q'`
50002 { as_dir="$ac_dir"
50003 case $as_dir in #(
50004 -*) as_dir=./$as_dir;;
50005 esac
50006 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
50007 as_dirs=
50008 while :; do
50009 case $as_dir in #(
50010 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
50011 *) as_qdir=$as_dir;;
50012 esac
50013 as_dirs="'$as_qdir' $as_dirs"
50014 as_dir=`$as_dirname -- "$as_dir" ||
50015 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
50016 X"$as_dir" : 'X\(//\)[^/]' \| \
50017 X"$as_dir" : 'X\(//\)$' \| \
50018 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
50019 $as_echo X"$as_dir" |
50020 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
50021 s//\1/
50022 q
50023 }
50024 /^X\(\/\/\)[^/].*/{
50025 s//\1/
50026 q
50027 }
50028 /^X\(\/\/\)$/{
50029 s//\1/
50030 q
50031 }
50032 /^X\(\/\).*/{
50033 s//\1/
50034 q
50035 }
50036 s/.*/./; q'`
50037 test -d "$as_dir" && break
50038 done
50039 test -z "$as_dirs" || eval "mkdir $as_dirs"
50040 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
50041 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
50042 { (exit 1); exit 1; }; }; }
50043 ac_builddir=.
50044
50045 case "$ac_dir" in
50046 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
50047 *)
50048 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
50049 # A ".." for each directory in $ac_dir_suffix.
50050 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
50051 case $ac_top_builddir_sub in
50052 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
50053 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
50054 esac ;;
50055 esac
50056 ac_abs_top_builddir=$ac_pwd
50057 ac_abs_builddir=$ac_pwd$ac_dir_suffix
50058 # for backward compatibility:
50059 ac_top_builddir=$ac_top_build_prefix
50060
50061 case $srcdir in
50062 .) # We are building in place.
50063 ac_srcdir=.
50064 ac_top_srcdir=$ac_top_builddir_sub
50065 ac_abs_top_srcdir=$ac_pwd ;;
50066 [\\/]* | ?:[\\/]* ) # Absolute name.
50067 ac_srcdir=$srcdir$ac_dir_suffix;
50068 ac_top_srcdir=$srcdir
50069 ac_abs_top_srcdir=$srcdir ;;
50070 *) # Relative name.
50071 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
50072 ac_top_srcdir=$ac_top_build_prefix$srcdir
50073 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
50074 esac
50075 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
50076
50077
50078 case $ac_mode in
50079 :F)
50080 #
50081 # CONFIG_FILE
50082 #
50083
50084 case $INSTALL in
50085 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
50086 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
50087 esac
50088 ac_MKDIR_P=$MKDIR_P
50089 case $MKDIR_P in
50090 [\\/$]* | ?:[\\/]* ) ;;
50091 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
50092 esac
50093 _ACEOF
50094
50095 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
50096 # If the template does not know about datarootdir, expand it.
50097 # FIXME: This hack should be removed a few years after 2.60.
50098 ac_datarootdir_hack=; ac_datarootdir_seen=
50099
50100 ac_sed_dataroot='
50101 /datarootdir/ {
50102 p
50103 q
50104 }
50105 /@datadir@/p
50106 /@docdir@/p
50107 /@infodir@/p
50108 /@localedir@/p
50109 /@mandir@/p
50110 '
50111 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
50112 *datarootdir*) ac_datarootdir_seen=yes;;
50113 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
50114 { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
50115 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
50116 _ACEOF
50117 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
50118 ac_datarootdir_hack='
50119 s&@datadir@&$datadir&g
50120 s&@docdir@&$docdir&g
50121 s&@infodir@&$infodir&g
50122 s&@localedir@&$localedir&g
50123 s&@mandir@&$mandir&g
50124 s&\\\${datarootdir}&$datarootdir&g' ;;
50125 esac
50126 _ACEOF
50127
50128 # Neutralize VPATH when `$srcdir' = `.'.
50129 # Shell code in configure.ac might set extrasub.
50130 # FIXME: do we really want to maintain this feature?
50131 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
50132 ac_sed_extra="$ac_vpsub
50133 $extrasub
50134 _ACEOF
50135 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
50136 :t
50137 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
50138 s|@configure_input@|$ac_sed_conf_input|;t t
50139 s&@top_builddir@&$ac_top_builddir_sub&;t t
50140 s&@top_build_prefix@&$ac_top_build_prefix&;t t
50141 s&@srcdir@&$ac_srcdir&;t t
50142 s&@abs_srcdir@&$ac_abs_srcdir&;t t
50143 s&@top_srcdir@&$ac_top_srcdir&;t t
50144 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
50145 s&@builddir@&$ac_builddir&;t t
50146 s&@abs_builddir@&$ac_abs_builddir&;t t
50147 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
50148 s&@INSTALL@&$ac_INSTALL&;t t
50149 s&@MKDIR_P@&$ac_MKDIR_P&;t t
50150 $ac_datarootdir_hack
50151 "
50152 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
50153 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
50154 $as_echo "$as_me: error: could not create $ac_file" >&2;}
50155 { (exit 1); exit 1; }; }
50156
50157 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
50158 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
50159 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
50160 { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
50161 which seems to be undefined. Please make sure it is defined." >&5
50162 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
50163 which seems to be undefined. Please make sure it is defined." >&2;}
50164
50165 rm -f "$tmp/stdin"
50166 case $ac_file in
50167 -) cat "$tmp/out" && rm -f "$tmp/out";;
50168 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
50169 esac \
50170 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
50171 $as_echo "$as_me: error: could not create $ac_file" >&2;}
50172 { (exit 1); exit 1; }; }
50173 ;;
50174 :H)
50175 #
50176 # CONFIG_HEADER
50177 #
50178 if test x"$ac_file" != x-; then
50179 {
50180 $as_echo "/* $configure_input */" \
50181 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
50182 } >"$tmp/config.h" \
50183 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
50184 $as_echo "$as_me: error: could not create $ac_file" >&2;}
50185 { (exit 1); exit 1; }; }
50186 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
50187 { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
50188 $as_echo "$as_me: $ac_file is unchanged" >&6;}
50189 else
50190 rm -f "$ac_file"
50191 mv "$tmp/config.h" "$ac_file" \
50192 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
50193 $as_echo "$as_me: error: could not create $ac_file" >&2;}
50194 { (exit 1); exit 1; }; }
50195 fi
50196 else
50197 $as_echo "/* $configure_input */" \
50198 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
50199 || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
50200 $as_echo "$as_me: error: could not create -" >&2;}
50201 { (exit 1); exit 1; }; }
50202 fi
50203 # Compute "$ac_file"'s index in $config_headers.
50204 _am_arg="$ac_file"
50205 _am_stamp_count=1
50206 for _am_header in $config_headers :; do
50207 case $_am_header in
50208 $_am_arg | $_am_arg:* )
50209 break ;;
50210 * )
50211 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
50212 esac
50213 done
50214 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
50215 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
50216 X"$_am_arg" : 'X\(//\)[^/]' \| \
50217 X"$_am_arg" : 'X\(//\)$' \| \
50218 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
50219 $as_echo X"$_am_arg" |
50220 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
50221 s//\1/
50222 q
50223 }
50224 /^X\(\/\/\)[^/].*/{
50225 s//\1/
50226 q
50227 }
50228 /^X\(\/\/\)$/{
50229 s//\1/
50230 q
50231 }
50232 /^X\(\/\).*/{
50233 s//\1/
50234 q
50235 }
50236 s/.*/./; q'`/stamp-h$_am_stamp_count
50237 ;;
50238
50239 :C) { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
50240 $as_echo "$as_me: executing $ac_file commands" >&6;}
50241 ;;
50242 esac
50243
50244
50245 case $ac_file$ac_mode in
50246 "zfs_config.h":H)
50247 (mv zfs_config.h zfs_config.h.tmp &&
50248 awk -f ${ac_srcdir}/config/config.awk zfs_config.h.tmp >zfs_config.h &&
50249 rm zfs_config.h.tmp) || exit 1 ;;
50250 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
50251 # Autoconf 2.62 quotes --file arguments for eval, but not when files
50252 # are listed without --file. Let's play safe and only enable the eval
50253 # if we detect the quoting.
50254 case $CONFIG_FILES in
50255 *\'*) eval set x "$CONFIG_FILES" ;;
50256 *) set x $CONFIG_FILES ;;
50257 esac
50258 shift
50259 for mf
50260 do
50261 # Strip MF so we end up with the name of the file.
50262 mf=`echo "$mf" | sed -e 's/:.*$//'`
50263 # Check whether this is an Automake generated Makefile or not.
50264 # We used to match only the files named `Makefile.in', but
50265 # some people rename them; so instead we look at the file content.
50266 # Grep'ing the first line is not enough: some people post-process
50267 # each Makefile.in and add a new line on top of each file to say so.
50268 # Grep'ing the whole file is not good either: AIX grep has a line
50269 # limit of 2048, but all sed's we know have understand at least 4000.
50270 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
50271 dirpart=`$as_dirname -- "$mf" ||
50272 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
50273 X"$mf" : 'X\(//\)[^/]' \| \
50274 X"$mf" : 'X\(//\)$' \| \
50275 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
50276 $as_echo X"$mf" |
50277 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
50278 s//\1/
50279 q
50280 }
50281 /^X\(\/\/\)[^/].*/{
50282 s//\1/
50283 q
50284 }
50285 /^X\(\/\/\)$/{
50286 s//\1/
50287 q
50288 }
50289 /^X\(\/\).*/{
50290 s//\1/
50291 q
50292 }
50293 s/.*/./; q'`
50294 else
50295 continue
50296 fi
50297 # Extract the definition of DEPDIR, am__include, and am__quote
50298 # from the Makefile without running `make'.
50299 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
50300 test -z "$DEPDIR" && continue
50301 am__include=`sed -n 's/^am__include = //p' < "$mf"`
50302 test -z "am__include" && continue
50303 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
50304 # When using ansi2knr, U may be empty or an underscore; expand it
50305 U=`sed -n 's/^U = //p' < "$mf"`
50306 # Find all dependency output files, they are included files with
50307 # $(DEPDIR) in their names. We invoke sed twice because it is the
50308 # simplest approach to changing $(DEPDIR) to its actual value in the
50309 # expansion.
50310 for file in `sed -n "
50311 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
50312 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
50313 # Make sure the directory exists.
50314 test -f "$dirpart/$file" && continue
50315 fdir=`$as_dirname -- "$file" ||
50316 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
50317 X"$file" : 'X\(//\)[^/]' \| \
50318 X"$file" : 'X\(//\)$' \| \
50319 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
50320 $as_echo X"$file" |
50321 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
50322 s//\1/
50323 q
50324 }
50325 /^X\(\/\/\)[^/].*/{
50326 s//\1/
50327 q
50328 }
50329 /^X\(\/\/\)$/{
50330 s//\1/
50331 q
50332 }
50333 /^X\(\/\).*/{
50334 s//\1/
50335 q
50336 }
50337 s/.*/./; q'`
50338 { as_dir=$dirpart/$fdir
50339 case $as_dir in #(
50340 -*) as_dir=./$as_dir;;
50341 esac
50342 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
50343 as_dirs=
50344 while :; do
50345 case $as_dir in #(
50346 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
50347 *) as_qdir=$as_dir;;
50348 esac
50349 as_dirs="'$as_qdir' $as_dirs"
50350 as_dir=`$as_dirname -- "$as_dir" ||
50351 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
50352 X"$as_dir" : 'X\(//\)[^/]' \| \
50353 X"$as_dir" : 'X\(//\)$' \| \
50354 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
50355 $as_echo X"$as_dir" |
50356 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
50357 s//\1/
50358 q
50359 }
50360 /^X\(\/\/\)[^/].*/{
50361 s//\1/
50362 q
50363 }
50364 /^X\(\/\/\)$/{
50365 s//\1/
50366 q
50367 }
50368 /^X\(\/\).*/{
50369 s//\1/
50370 q
50371 }
50372 s/.*/./; q'`
50373 test -d "$as_dir" && break
50374 done
50375 test -z "$as_dirs" || eval "mkdir $as_dirs"
50376 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
50377 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
50378 { (exit 1); exit 1; }; }; }
50379 # echo "creating $dirpart/$file"
50380 echo '# dummy' > "$dirpart/$file"
50381 done
50382 done
50383 }
50384 ;;
50385 "libtool":C)
50386
50387 # See if we are running on zsh, and set the options which allow our
50388 # commands through without removal of \ escapes.
50389 if test -n "${ZSH_VERSION+set}" ; then
50390 setopt NO_GLOB_SUBST
50391 fi
50392
50393 cfgfile="${ofile}T"
50394 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
50395 $RM "$cfgfile"
50396
50397 cat <<_LT_EOF >> "$cfgfile"
50398 #! $SHELL
50399
50400 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
50401 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
50402 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
50403 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
50404 #
50405 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
50406 # 2006, 2007, 2008 Free Software Foundation, Inc.
50407 # Written by Gordon Matzigkeit, 1996
50408 #
50409 # This file is part of GNU Libtool.
50410 #
50411 # GNU Libtool is free software; you can redistribute it and/or
50412 # modify it under the terms of the GNU General Public License as
50413 # published by the Free Software Foundation; either version 2 of
50414 # the License, or (at your option) any later version.
50415 #
50416 # As a special exception to the GNU General Public License,
50417 # if you distribute this file as part of a program or library that
50418 # is built using GNU Libtool, you may include this file under the
50419 # same distribution terms that you use for the rest of that program.
50420 #
50421 # GNU Libtool is distributed in the hope that it will be useful,
50422 # but WITHOUT ANY WARRANTY; without even the implied warranty of
50423 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
50424 # GNU General Public License for more details.
50425 #
50426 # You should have received a copy of the GNU General Public License
50427 # along with GNU Libtool; see the file COPYING. If not, a copy
50428 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
50429 # obtained by writing to the Free Software Foundation, Inc.,
50430 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
50431
50432
50433 # The names of the tagged configurations supported by this script.
50434 available_tags=""
50435
50436 # ### BEGIN LIBTOOL CONFIG
50437
50438 # Which release of libtool.m4 was used?
50439 macro_version=$macro_version
50440 macro_revision=$macro_revision
50441
50442 # Whether or not to build shared libraries.
50443 build_libtool_libs=$enable_shared
50444
50445 # Whether or not to build static libraries.
50446 build_old_libs=$enable_static
50447
50448 # What type of objects to build.
50449 pic_mode=$pic_mode
50450
50451 # Whether or not to optimize for fast installation.
50452 fast_install=$enable_fast_install
50453
50454 # The host system.
50455 host_alias=$host_alias
50456 host=$host
50457 host_os=$host_os
50458
50459 # The build system.
50460 build_alias=$build_alias
50461 build=$build
50462 build_os=$build_os
50463
50464 # A sed program that does not truncate output.
50465 SED=$lt_SED
50466
50467 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
50468 Xsed="\$SED -e 1s/^X//"
50469
50470 # A grep program that handles long lines.
50471 GREP=$lt_GREP
50472
50473 # An ERE matcher.
50474 EGREP=$lt_EGREP
50475
50476 # A literal string matcher.
50477 FGREP=$lt_FGREP
50478
50479 # A BSD- or MS-compatible name lister.
50480 NM=$lt_NM
50481
50482 # Whether we need soft or hard links.
50483 LN_S=$lt_LN_S
50484
50485 # What is the maximum length of a command?
50486 max_cmd_len=$max_cmd_len
50487
50488 # Object file suffix (normally "o").
50489 objext=$ac_objext
50490
50491 # Executable file suffix (normally "").
50492 exeext=$exeext
50493
50494 # whether the shell understands "unset".
50495 lt_unset=$lt_unset
50496
50497 # turn spaces into newlines.
50498 SP2NL=$lt_lt_SP2NL
50499
50500 # turn newlines into spaces.
50501 NL2SP=$lt_lt_NL2SP
50502
50503 # How to create reloadable object files.
50504 reload_flag=$lt_reload_flag
50505 reload_cmds=$lt_reload_cmds
50506
50507 # An object symbol dumper.
50508 OBJDUMP=$lt_OBJDUMP
50509
50510 # Method to check whether dependent libraries are shared objects.
50511 deplibs_check_method=$lt_deplibs_check_method
50512
50513 # Command to use when deplibs_check_method == "file_magic".
50514 file_magic_cmd=$lt_file_magic_cmd
50515
50516 # The archiver.
50517 AR=$lt_AR
50518 AR_FLAGS=$lt_AR_FLAGS
50519
50520 # A symbol stripping program.
50521 STRIP=$lt_STRIP
50522
50523 # Commands used to install an old-style archive.
50524 RANLIB=$lt_RANLIB
50525 old_postinstall_cmds=$lt_old_postinstall_cmds
50526 old_postuninstall_cmds=$lt_old_postuninstall_cmds
50527
50528 # A C compiler.
50529 LTCC=$lt_CC
50530
50531 # LTCC compiler flags.
50532 LTCFLAGS=$lt_CFLAGS
50533
50534 # Take the output of nm and produce a listing of raw symbols and C names.
50535 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
50536
50537 # Transform the output of nm in a proper C declaration.
50538 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
50539
50540 # Transform the output of nm in a C name address pair.
50541 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
50542
50543 # Transform the output of nm in a C name address pair when lib prefix is needed.
50544 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
50545
50546 # The name of the directory that contains temporary libtool files.
50547 objdir=$objdir
50548
50549 # Shell to use when invoking shell scripts.
50550 SHELL=$lt_SHELL
50551
50552 # An echo program that does not interpret backslashes.
50553 ECHO=$lt_ECHO
50554
50555 # Used to examine libraries when file_magic_cmd begins with "file".
50556 MAGIC_CMD=$MAGIC_CMD
50557
50558 # Must we lock files when doing compilation?
50559 need_locks=$lt_need_locks
50560
50561 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
50562 DSYMUTIL=$lt_DSYMUTIL
50563
50564 # Tool to change global to local symbols on Mac OS X.
50565 NMEDIT=$lt_NMEDIT
50566
50567 # Tool to manipulate fat objects and archives on Mac OS X.
50568 LIPO=$lt_LIPO
50569
50570 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
50571 OTOOL=$lt_OTOOL
50572
50573 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
50574 OTOOL64=$lt_OTOOL64
50575
50576 # Old archive suffix (normally "a").
50577 libext=$libext
50578
50579 # Shared library suffix (normally ".so").
50580 shrext_cmds=$lt_shrext_cmds
50581
50582 # The commands to extract the exported symbol list from a shared archive.
50583 extract_expsyms_cmds=$lt_extract_expsyms_cmds
50584
50585 # Variables whose values should be saved in libtool wrapper scripts and
50586 # restored at link time.
50587 variables_saved_for_relink=$lt_variables_saved_for_relink
50588
50589 # Do we need the "lib" prefix for modules?
50590 need_lib_prefix=$need_lib_prefix
50591
50592 # Do we need a version for libraries?
50593 need_version=$need_version
50594
50595 # Library versioning type.
50596 version_type=$version_type
50597
50598 # Shared library runtime path variable.
50599 runpath_var=$runpath_var
50600
50601 # Shared library path variable.
50602 shlibpath_var=$shlibpath_var
50603
50604 # Is shlibpath searched before the hard-coded library search path?
50605 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
50606
50607 # Format of library name prefix.
50608 libname_spec=$lt_libname_spec
50609
50610 # List of archive names. First name is the real one, the rest are links.
50611 # The last name is the one that the linker finds with -lNAME
50612 library_names_spec=$lt_library_names_spec
50613
50614 # The coded name of the library, if different from the real name.
50615 soname_spec=$lt_soname_spec
50616
50617 # Command to use after installation of a shared archive.
50618 postinstall_cmds=$lt_postinstall_cmds
50619
50620 # Command to use after uninstallation of a shared archive.
50621 postuninstall_cmds=$lt_postuninstall_cmds
50622
50623 # Commands used to finish a libtool library installation in a directory.
50624 finish_cmds=$lt_finish_cmds
50625
50626 # As "finish_cmds", except a single script fragment to be evaled but
50627 # not shown.
50628 finish_eval=$lt_finish_eval
50629
50630 # Whether we should hardcode library paths into libraries.
50631 hardcode_into_libs=$hardcode_into_libs
50632
50633 # Compile-time system search path for libraries.
50634 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
50635
50636 # Run-time system search path for libraries.
50637 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
50638
50639 # Whether dlopen is supported.
50640 dlopen_support=$enable_dlopen
50641
50642 # Whether dlopen of programs is supported.
50643 dlopen_self=$enable_dlopen_self
50644
50645 # Whether dlopen of statically linked programs is supported.
50646 dlopen_self_static=$enable_dlopen_self_static
50647
50648 # Commands to strip libraries.
50649 old_striplib=$lt_old_striplib
50650 striplib=$lt_striplib
50651
50652
50653 # The linker used to build libraries.
50654 LD=$lt_LD
50655
50656 # Commands used to build an old-style archive.
50657 old_archive_cmds=$lt_old_archive_cmds
50658
50659 # A language specific compiler.
50660 CC=$lt_compiler
50661
50662 # Is the compiler the GNU compiler?
50663 with_gcc=$GCC
50664
50665 # Compiler flag to turn off builtin functions.
50666 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
50667
50668 # How to pass a linker flag through the compiler.
50669 wl=$lt_lt_prog_compiler_wl
50670
50671 # Additional compiler flags for building library objects.
50672 pic_flag=$lt_lt_prog_compiler_pic
50673
50674 # Compiler flag to prevent dynamic linking.
50675 link_static_flag=$lt_lt_prog_compiler_static
50676
50677 # Does compiler simultaneously support -c and -o options?
50678 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
50679
50680 # Whether or not to add -lc for building shared libraries.
50681 build_libtool_need_lc=$archive_cmds_need_lc
50682
50683 # Whether or not to disallow shared libs when runtime libs are static.
50684 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
50685
50686 # Compiler flag to allow reflexive dlopens.
50687 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
50688
50689 # Compiler flag to generate shared objects directly from archives.
50690 whole_archive_flag_spec=$lt_whole_archive_flag_spec
50691
50692 # Whether the compiler copes with passing no objects directly.
50693 compiler_needs_object=$lt_compiler_needs_object
50694
50695 # Create an old-style archive from a shared archive.
50696 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
50697
50698 # Create a temporary old-style archive to link instead of a shared archive.
50699 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
50700
50701 # Commands used to build a shared archive.
50702 archive_cmds=$lt_archive_cmds
50703 archive_expsym_cmds=$lt_archive_expsym_cmds
50704
50705 # Commands used to build a loadable module if different from building
50706 # a shared archive.
50707 module_cmds=$lt_module_cmds
50708 module_expsym_cmds=$lt_module_expsym_cmds
50709
50710 # Whether we are building with GNU ld or not.
50711 with_gnu_ld=$lt_with_gnu_ld
50712
50713 # Flag that allows shared libraries with undefined symbols to be built.
50714 allow_undefined_flag=$lt_allow_undefined_flag
50715
50716 # Flag that enforces no undefined symbols.
50717 no_undefined_flag=$lt_no_undefined_flag
50718
50719 # Flag to hardcode \$libdir into a binary during linking.
50720 # This must work even if \$libdir does not exist
50721 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
50722
50723 # If ld is used when linking, flag to hardcode \$libdir into a binary
50724 # during linking. This must work even if \$libdir does not exist.
50725 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
50726
50727 # Whether we need a single "-rpath" flag with a separated argument.
50728 hardcode_libdir_separator=$lt_hardcode_libdir_separator
50729
50730 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
50731 # DIR into the resulting binary.
50732 hardcode_direct=$hardcode_direct
50733
50734 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
50735 # DIR into the resulting binary and the resulting library dependency is
50736 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
50737 # library is relocated.
50738 hardcode_direct_absolute=$hardcode_direct_absolute
50739
50740 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
50741 # into the resulting binary.
50742 hardcode_minus_L=$hardcode_minus_L
50743
50744 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
50745 # into the resulting binary.
50746 hardcode_shlibpath_var=$hardcode_shlibpath_var
50747
50748 # Set to "yes" if building a shared library automatically hardcodes DIR
50749 # into the library and all subsequent libraries and executables linked
50750 # against it.
50751 hardcode_automatic=$hardcode_automatic
50752
50753 # Set to yes if linker adds runtime paths of dependent libraries
50754 # to runtime path list.
50755 inherit_rpath=$inherit_rpath
50756
50757 # Whether libtool must link a program against all its dependency libraries.
50758 link_all_deplibs=$link_all_deplibs
50759
50760 # Fix the shell variable \$srcfile for the compiler.
50761 fix_srcfile_path=$lt_fix_srcfile_path
50762
50763 # Set to "yes" if exported symbols are required.
50764 always_export_symbols=$always_export_symbols
50765
50766 # The commands to list exported symbols.
50767 export_symbols_cmds=$lt_export_symbols_cmds
50768
50769 # Symbols that should not be listed in the preloaded symbols.
50770 exclude_expsyms=$lt_exclude_expsyms
50771
50772 # Symbols that must always be exported.
50773 include_expsyms=$lt_include_expsyms
50774
50775 # Commands necessary for linking programs (against libraries) with templates.
50776 prelink_cmds=$lt_prelink_cmds
50777
50778 # Specify filename containing input files.
50779 file_list_spec=$lt_file_list_spec
50780
50781 # How to hardcode a shared library path into an executable.
50782 hardcode_action=$hardcode_action
50783
50784 # ### END LIBTOOL CONFIG
50785
50786 _LT_EOF
50787
50788 case $host_os in
50789 aix3*)
50790 cat <<\_LT_EOF >> "$cfgfile"
50791 # AIX sometimes has problems with the GCC collect2 program. For some
50792 # reason, if we set the COLLECT_NAMES environment variable, the problems
50793 # vanish in a puff of smoke.
50794 if test "X${COLLECT_NAMES+set}" != Xset; then
50795 COLLECT_NAMES=
50796 export COLLECT_NAMES
50797 fi
50798 _LT_EOF
50799 ;;
50800 esac
50801
50802
50803 ltmain="$ac_aux_dir/ltmain.sh"
50804
50805
50806 # We use sed instead of cat because bash on DJGPP gets confused if
50807 # if finds mixed CR/LF and LF-only lines. Since sed operates in
50808 # text mode, it properly converts lines to CR/LF. This bash problem
50809 # is reportedly fixed, but why not run on old versions too?
50810 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
50811 || (rm -f "$cfgfile"; exit 1)
50812
50813 case $xsi_shell in
50814 yes)
50815 cat << \_LT_EOF >> "$cfgfile"
50816
50817 # func_dirname file append nondir_replacement
50818 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
50819 # otherwise set result to NONDIR_REPLACEMENT.
50820 func_dirname ()
50821 {
50822 case ${1} in
50823 */*) func_dirname_result="${1%/*}${2}" ;;
50824 * ) func_dirname_result="${3}" ;;
50825 esac
50826 }
50827
50828 # func_basename file
50829 func_basename ()
50830 {
50831 func_basename_result="${1##*/}"
50832 }
50833
50834 # func_dirname_and_basename file append nondir_replacement
50835 # perform func_basename and func_dirname in a single function
50836 # call:
50837 # dirname: Compute the dirname of FILE. If nonempty,
50838 # add APPEND to the result, otherwise set result
50839 # to NONDIR_REPLACEMENT.
50840 # value returned in "$func_dirname_result"
50841 # basename: Compute filename of FILE.
50842 # value retuned in "$func_basename_result"
50843 # Implementation must be kept synchronized with func_dirname
50844 # and func_basename. For efficiency, we do not delegate to
50845 # those functions but instead duplicate the functionality here.
50846 func_dirname_and_basename ()
50847 {
50848 case ${1} in
50849 */*) func_dirname_result="${1%/*}${2}" ;;
50850 * ) func_dirname_result="${3}" ;;
50851 esac
50852 func_basename_result="${1##*/}"
50853 }
50854
50855 # func_stripname prefix suffix name
50856 # strip PREFIX and SUFFIX off of NAME.
50857 # PREFIX and SUFFIX must not contain globbing or regex special
50858 # characters, hashes, percent signs, but SUFFIX may contain a leading
50859 # dot (in which case that matches only a dot).
50860 func_stripname ()
50861 {
50862 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
50863 # positional parameters, so assign one to ordinary parameter first.
50864 func_stripname_result=${3}
50865 func_stripname_result=${func_stripname_result#"${1}"}
50866 func_stripname_result=${func_stripname_result%"${2}"}
50867 }
50868
50869 # func_opt_split
50870 func_opt_split ()
50871 {
50872 func_opt_split_opt=${1%%=*}
50873 func_opt_split_arg=${1#*=}
50874 }
50875
50876 # func_lo2o object
50877 func_lo2o ()
50878 {
50879 case ${1} in
50880 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
50881 *) func_lo2o_result=${1} ;;
50882 esac
50883 }
50884
50885 # func_xform libobj-or-source
50886 func_xform ()
50887 {
50888 func_xform_result=${1%.*}.lo
50889 }
50890
50891 # func_arith arithmetic-term...
50892 func_arith ()
50893 {
50894 func_arith_result=$(( $* ))
50895 }
50896
50897 # func_len string
50898 # STRING may not start with a hyphen.
50899 func_len ()
50900 {
50901 func_len_result=${#1}
50902 }
50903
50904 _LT_EOF
50905 ;;
50906 *) # Bourne compatible functions.
50907 cat << \_LT_EOF >> "$cfgfile"
50908
50909 # func_dirname file append nondir_replacement
50910 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
50911 # otherwise set result to NONDIR_REPLACEMENT.
50912 func_dirname ()
50913 {
50914 # Extract subdirectory from the argument.
50915 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
50916 if test "X$func_dirname_result" = "X${1}"; then
50917 func_dirname_result="${3}"
50918 else
50919 func_dirname_result="$func_dirname_result${2}"
50920 fi
50921 }
50922
50923 # func_basename file
50924 func_basename ()
50925 {
50926 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
50927 }
50928
50929
50930 # func_stripname prefix suffix name
50931 # strip PREFIX and SUFFIX off of NAME.
50932 # PREFIX and SUFFIX must not contain globbing or regex special
50933 # characters, hashes, percent signs, but SUFFIX may contain a leading
50934 # dot (in which case that matches only a dot).
50935 # func_strip_suffix prefix name
50936 func_stripname ()
50937 {
50938 case ${2} in
50939 .*) func_stripname_result=`$ECHO "X${3}" \
50940 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
50941 *) func_stripname_result=`$ECHO "X${3}" \
50942 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
50943 esac
50944 }
50945
50946 # sed scripts:
50947 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
50948 my_sed_long_arg='1s/^-[^=]*=//'
50949
50950 # func_opt_split
50951 func_opt_split ()
50952 {
50953 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
50954 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
50955 }
50956
50957 # func_lo2o object
50958 func_lo2o ()
50959 {
50960 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
50961 }
50962
50963 # func_xform libobj-or-source
50964 func_xform ()
50965 {
50966 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
50967 }
50968
50969 # func_arith arithmetic-term...
50970 func_arith ()
50971 {
50972 func_arith_result=`expr "$@"`
50973 }
50974
50975 # func_len string
50976 # STRING may not start with a hyphen.
50977 func_len ()
50978 {
50979 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
50980 }
50981
50982 _LT_EOF
50983 esac
50984
50985 case $lt_shell_append in
50986 yes)
50987 cat << \_LT_EOF >> "$cfgfile"
50988
50989 # func_append var value
50990 # Append VALUE to the end of shell variable VAR.
50991 func_append ()
50992 {
50993 eval "$1+=\$2"
50994 }
50995 _LT_EOF
50996 ;;
50997 *)
50998 cat << \_LT_EOF >> "$cfgfile"
50999
51000 # func_append var value
51001 # Append VALUE to the end of shell variable VAR.
51002 func_append ()
51003 {
51004 eval "$1=\$$1\$2"
51005 }
51006
51007 _LT_EOF
51008 ;;
51009 esac
51010
51011
51012 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
51013 || (rm -f "$cfgfile"; exit 1)
51014
51015 mv -f "$cfgfile" "$ofile" ||
51016 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
51017 chmod +x "$ofile"
51018
51019 ;;
51020
51021 esac
51022 done # for ac_tag
51023
51024
51025 { (exit 0); exit 0; }
51026 _ACEOF
51027 chmod +x $CONFIG_STATUS
51028 ac_clean_files=$ac_clean_files_save
51029
51030 test $ac_write_fail = 0 ||
51031 { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
51032 $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
51033 { (exit 1); exit 1; }; }
51034
51035
51036 # configure is writing to config.log, and then calls config.status.
51037 # config.status does its own redirection, appending to config.log.
51038 # Unfortunately, on DOS this fails, as config.log is still kept open
51039 # by configure, so config.status won't be able to write to it; its
51040 # output is simply discarded. So we exec the FD to /dev/null,
51041 # effectively closing config.log, so it can be properly (re)opened and
51042 # appended to by config.status. When coming back to configure, we
51043 # need to make the FD available again.
51044 if test "$no_create" != yes; then
51045 ac_cs_success=:
51046 ac_config_status_args=
51047 test "$silent" = yes &&
51048 ac_config_status_args="$ac_config_status_args --quiet"
51049 exec 5>/dev/null
51050 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
51051 exec 5>>config.log
51052 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
51053 # would make configure fail if this is the last instruction.
51054 $ac_cs_success || { (exit 1); exit 1; }
51055 fi
51056 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
51057 { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
51058 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
51059 fi
51060