]> git.proxmox.com Git - mirror_zfs-debian.git/blob - configure
Release 0.7.9-2
[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.9.
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.9'
747 PACKAGE_STRING='zfs 0.7.9'
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.9 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.9:";;
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.9
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.9, 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.9'
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 block device operation prototypes" >&5
15287 $as_echo_n "checking block device operation prototypes... " >&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 int blk_open(struct block_device *bdev, fmode_t mode)
15303 { return 0; }
15304 int blk_ioctl(struct block_device *bdev, fmode_t mode,
15305 unsigned x, unsigned long y) { return 0; }
15306 int blk_compat_ioctl(struct block_device * bdev, fmode_t mode,
15307 unsigned x, unsigned long y) { return 0; }
15308
15309 static const struct block_device_operations
15310 bops __attribute__ ((unused)) = {
15311 .open = blk_open,
15312 .release = NULL,
15313 .ioctl = blk_ioctl,
15314 .compat_ioctl = blk_compat_ioctl,
15315 };
15316
15317 int
15318 main (void)
15319 {
15320
15321
15322 ;
15323 return 0;
15324 }
15325
15326 _ACEOF
15327
15328
15329
15330 cat - <<_ACEOF >conftest.h
15331
15332 _ACEOF
15333
15334
15335 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
15336 echo "obj-m := conftest.o" >build/Makefile
15337 modpost_flag=''
15338 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
15339 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
15340 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15341 (eval $ac_try) 2>&5
15342 ac_status=$?
15343 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15344 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
15345 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15346 (eval $ac_try) 2>&5
15347 ac_status=$?
15348 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15349 (exit $ac_status); }; }; then
15350
15351 { $as_echo "$as_me:$LINENO: result: struct block_device" >&5
15352 $as_echo "struct block_device" >&6; }
15353
15354 cat >>confdefs.h <<\_ACEOF
15355 #define HAVE_BDEV_BLOCK_DEVICE_OPERATIONS 1
15356 _ACEOF
15357
15358
15359 else
15360 $as_echo "$as_me: failed program was:" >&5
15361 sed 's/^/| /' conftest.$ac_ext >&5
15362
15363 { $as_echo "$as_me:$LINENO: result: struct inode" >&5
15364 $as_echo "struct inode" >&6; }
15365
15366
15367
15368 fi
15369
15370 rm -Rf build
15371
15372
15373 EXTRA_KCFLAGS="$tmp_flags"
15374
15375
15376 { $as_echo "$as_me:$LINENO: checking whether block_device_operations.release is void" >&5
15377 $as_echo_n "checking whether block_device_operations.release is void... " >&6; }
15378 tmp_flags="$EXTRA_KCFLAGS"
15379 EXTRA_KCFLAGS="${NO_UNUSED_BUT_SET_VARIABLE}"
15380
15381
15382 cat confdefs.h - <<_ACEOF >conftest.c
15383 /* confdefs.h. */
15384 _ACEOF
15385 cat confdefs.h >>conftest.$ac_ext
15386 cat >>conftest.$ac_ext <<_ACEOF
15387 /* end confdefs.h. */
15388
15389
15390 #include <linux/blkdev.h>
15391
15392 void blk_release(struct gendisk *g, fmode_t mode) { return; }
15393
15394 static const struct block_device_operations
15395 bops __attribute__ ((unused)) = {
15396 .open = NULL,
15397 .release = blk_release,
15398 .ioctl = NULL,
15399 .compat_ioctl = NULL,
15400 };
15401
15402 int
15403 main (void)
15404 {
15405
15406
15407 ;
15408 return 0;
15409 }
15410
15411 _ACEOF
15412
15413
15414
15415 cat - <<_ACEOF >conftest.h
15416
15417 _ACEOF
15418
15419
15420 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
15421 echo "obj-m := conftest.o" >build/Makefile
15422 modpost_flag=''
15423 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
15424 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
15425 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15426 (eval $ac_try) 2>&5
15427 ac_status=$?
15428 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15429 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
15430 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15431 (eval $ac_try) 2>&5
15432 ac_status=$?
15433 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15434 (exit $ac_status); }; }; then
15435
15436 { $as_echo "$as_me:$LINENO: result: void" >&5
15437 $as_echo "void" >&6; }
15438
15439 cat >>confdefs.h <<\_ACEOF
15440 #define HAVE_BLOCK_DEVICE_OPERATIONS_RELEASE_VOID 1
15441 _ACEOF
15442
15443
15444 else
15445 $as_echo "$as_me: failed program was:" >&5
15446 sed 's/^/| /' conftest.$ac_ext >&5
15447
15448 { $as_echo "$as_me:$LINENO: result: int" >&5
15449 $as_echo "int" >&6; }
15450
15451
15452
15453 fi
15454
15455 rm -Rf build
15456
15457
15458 EXTRA_KCFLAGS="$tmp_flags"
15459
15460 { $as_echo "$as_me:$LINENO: checking whether kernel defines fmode_t" >&5
15461 $as_echo_n "checking whether kernel defines fmode_t... " >&6; }
15462
15463
15464 cat confdefs.h - <<_ACEOF >conftest.c
15465 /* confdefs.h. */
15466 _ACEOF
15467 cat confdefs.h >>conftest.$ac_ext
15468 cat >>conftest.$ac_ext <<_ACEOF
15469 /* end confdefs.h. */
15470
15471
15472 #include <linux/types.h>
15473
15474 int
15475 main (void)
15476 {
15477
15478 fmode_t *ptr __attribute__ ((unused));
15479
15480 ;
15481 return 0;
15482 }
15483
15484 _ACEOF
15485
15486
15487
15488 cat - <<_ACEOF >conftest.h
15489
15490 _ACEOF
15491
15492
15493 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
15494 echo "obj-m := conftest.o" >build/Makefile
15495 modpost_flag=''
15496 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
15497 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
15498 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15499 (eval $ac_try) 2>&5
15500 ac_status=$?
15501 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15502 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
15503 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15504 (eval $ac_try) 2>&5
15505 ac_status=$?
15506 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15507 (exit $ac_status); }; }; then
15508
15509 { $as_echo "$as_me:$LINENO: result: yes" >&5
15510 $as_echo "yes" >&6; }
15511
15512 cat >>confdefs.h <<\_ACEOF
15513 #define HAVE_FMODE_T 1
15514 _ACEOF
15515
15516
15517 else
15518 $as_echo "$as_me: failed program was:" >&5
15519 sed 's/^/| /' conftest.$ac_ext >&5
15520
15521 { $as_echo "$as_me:$LINENO: result: no" >&5
15522 $as_echo "no" >&6; }
15523
15524
15525
15526 fi
15527
15528 rm -Rf build
15529
15530
15531
15532
15533 { $as_echo "$as_me:$LINENO: checking whether blkdev_get() wants 3 args" >&5
15534 $as_echo_n "checking whether blkdev_get() wants 3 args... " >&6; }
15535
15536
15537 cat confdefs.h - <<_ACEOF >conftest.c
15538 /* confdefs.h. */
15539 _ACEOF
15540 cat confdefs.h >>conftest.$ac_ext
15541 cat >>conftest.$ac_ext <<_ACEOF
15542 /* end confdefs.h. */
15543
15544
15545 #include <linux/fs.h>
15546
15547 int
15548 main (void)
15549 {
15550
15551 struct block_device *bdev = NULL;
15552 (void) blkdev_get(bdev, 0, NULL);
15553
15554 ;
15555 return 0;
15556 }
15557
15558 _ACEOF
15559
15560
15561
15562 cat - <<_ACEOF >conftest.h
15563
15564 _ACEOF
15565
15566
15567 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
15568 echo "obj-m := conftest.o" >build/Makefile
15569 modpost_flag=''
15570 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
15571 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
15572 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15573 (eval $ac_try) 2>&5
15574 ac_status=$?
15575 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15576 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
15577 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15578 (eval $ac_try) 2>&5
15579 ac_status=$?
15580 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15581 (exit $ac_status); }; }; then
15582
15583 { $as_echo "$as_me:$LINENO: result: yes" >&5
15584 $as_echo "yes" >&6; }
15585
15586 cat >>confdefs.h <<\_ACEOF
15587 #define HAVE_3ARG_BLKDEV_GET 1
15588 _ACEOF
15589
15590
15591 else
15592 $as_echo "$as_me: failed program was:" >&5
15593 sed 's/^/| /' conftest.$ac_ext >&5
15594
15595 { $as_echo "$as_me:$LINENO: result: no" >&5
15596 $as_echo "no" >&6; }
15597
15598
15599
15600 fi
15601
15602 rm -Rf build
15603
15604
15605
15606 { $as_echo "$as_me:$LINENO: checking whether blkdev_get_by_path() is available" >&5
15607 $as_echo_n "checking whether blkdev_get_by_path() is available... " >&6; }
15608
15609
15610
15611 cat confdefs.h - <<_ACEOF >conftest.c
15612 /* confdefs.h. */
15613 _ACEOF
15614 cat confdefs.h >>conftest.$ac_ext
15615 cat >>conftest.$ac_ext <<_ACEOF
15616 /* end confdefs.h. */
15617
15618
15619 #include <linux/fs.h>
15620
15621 int
15622 main (void)
15623 {
15624
15625 blkdev_get_by_path(NULL, 0, NULL);
15626
15627 ;
15628 return 0;
15629 }
15630
15631 _ACEOF
15632
15633
15634
15635 cat - <<_ACEOF >conftest.h
15636
15637 _ACEOF
15638
15639
15640 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
15641 echo "obj-m := conftest.o" >build/Makefile
15642 modpost_flag=''
15643 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
15644 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
15645 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15646 (eval $ac_try) 2>&5
15647 ac_status=$?
15648 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15649 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
15650 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15651 (eval $ac_try) 2>&5
15652 ac_status=$?
15653 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15654 (exit $ac_status); }; }; then
15655 rc=0
15656 else
15657 $as_echo "$as_me: failed program was:" >&5
15658 sed 's/^/| /' conftest.$ac_ext >&5
15659 rc=1
15660
15661
15662 fi
15663
15664 rm -Rf build
15665
15666
15667 if test $rc -ne 0; then :
15668
15669 { $as_echo "$as_me:$LINENO: result: no" >&5
15670 $as_echo "no" >&6; }
15671
15672 else
15673 if test "x$enable_linux_builtin" != xyes; then
15674
15675 grep -q -E '[[:space:]]blkdev_get_by_path[[:space:]]' \
15676 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
15677 rc=$?
15678 if test $rc -ne 0; then
15679 export=0
15680 for file in fs/block_dev.c; do
15681 grep -q -E "EXPORT_SYMBOL.*(blkdev_get_by_path)" \
15682 "$LINUX/$file" 2>/dev/null
15683 rc=$?
15684 if test $rc -eq 0; then
15685 export=1
15686 break;
15687 fi
15688 done
15689 if test $export -eq 0; then :
15690 rc=1
15691 else :
15692 rc=0
15693 fi
15694 else :
15695 rc=0
15696 fi
15697
15698 fi
15699 if test $rc -ne 0; then :
15700
15701 { $as_echo "$as_me:$LINENO: result: no" >&5
15702 $as_echo "no" >&6; }
15703
15704 else :
15705
15706 { $as_echo "$as_me:$LINENO: result: yes" >&5
15707 $as_echo "yes" >&6; }
15708
15709 cat >>confdefs.h <<\_ACEOF
15710 #define HAVE_BLKDEV_GET_BY_PATH 1
15711 _ACEOF
15712
15713
15714 fi
15715 fi
15716
15717
15718 { $as_echo "$as_me:$LINENO: checking whether open_bdev_exclusive() is available" >&5
15719 $as_echo_n "checking whether open_bdev_exclusive() is available... " >&6; }
15720
15721
15722
15723 cat confdefs.h - <<_ACEOF >conftest.c
15724 /* confdefs.h. */
15725 _ACEOF
15726 cat confdefs.h >>conftest.$ac_ext
15727 cat >>conftest.$ac_ext <<_ACEOF
15728 /* end confdefs.h. */
15729
15730
15731 #include <linux/fs.h>
15732
15733 int
15734 main (void)
15735 {
15736
15737 open_bdev_exclusive(NULL, 0, NULL);
15738
15739 ;
15740 return 0;
15741 }
15742
15743 _ACEOF
15744
15745
15746
15747 cat - <<_ACEOF >conftest.h
15748
15749 _ACEOF
15750
15751
15752 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
15753 echo "obj-m := conftest.o" >build/Makefile
15754 modpost_flag=''
15755 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
15756 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
15757 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15758 (eval $ac_try) 2>&5
15759 ac_status=$?
15760 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15761 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
15762 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15763 (eval $ac_try) 2>&5
15764 ac_status=$?
15765 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15766 (exit $ac_status); }; }; then
15767 rc=0
15768 else
15769 $as_echo "$as_me: failed program was:" >&5
15770 sed 's/^/| /' conftest.$ac_ext >&5
15771 rc=1
15772
15773
15774 fi
15775
15776 rm -Rf build
15777
15778
15779 if test $rc -ne 0; then :
15780
15781 { $as_echo "$as_me:$LINENO: result: no" >&5
15782 $as_echo "no" >&6; }
15783
15784 else
15785 if test "x$enable_linux_builtin" != xyes; then
15786
15787 grep -q -E '[[:space:]]open_bdev_exclusive[[:space:]]' \
15788 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
15789 rc=$?
15790 if test $rc -ne 0; then
15791 export=0
15792 for file in fs/block_dev.c; do
15793 grep -q -E "EXPORT_SYMBOL.*(open_bdev_exclusive)" \
15794 "$LINUX/$file" 2>/dev/null
15795 rc=$?
15796 if test $rc -eq 0; then
15797 export=1
15798 break;
15799 fi
15800 done
15801 if test $export -eq 0; then :
15802 rc=1
15803 else :
15804 rc=0
15805 fi
15806 else :
15807 rc=0
15808 fi
15809
15810 fi
15811 if test $rc -ne 0; then :
15812
15813 { $as_echo "$as_me:$LINENO: result: no" >&5
15814 $as_echo "no" >&6; }
15815
15816 else :
15817
15818 { $as_echo "$as_me:$LINENO: result: yes" >&5
15819 $as_echo "yes" >&6; }
15820
15821 cat >>confdefs.h <<\_ACEOF
15822 #define HAVE_OPEN_BDEV_EXCLUSIVE 1
15823 _ACEOF
15824
15825
15826 fi
15827 fi
15828
15829
15830 { $as_echo "$as_me:$LINENO: checking whether lookup_bdev() wants 1 arg" >&5
15831 $as_echo_n "checking whether lookup_bdev() wants 1 arg... " >&6; }
15832
15833
15834
15835 cat confdefs.h - <<_ACEOF >conftest.c
15836 /* confdefs.h. */
15837 _ACEOF
15838 cat confdefs.h >>conftest.$ac_ext
15839 cat >>conftest.$ac_ext <<_ACEOF
15840 /* end confdefs.h. */
15841
15842
15843 #include <linux/fs.h>
15844
15845 int
15846 main (void)
15847 {
15848
15849 lookup_bdev(NULL);
15850
15851 ;
15852 return 0;
15853 }
15854
15855 _ACEOF
15856
15857
15858
15859 cat - <<_ACEOF >conftest.h
15860
15861 _ACEOF
15862
15863
15864 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
15865 echo "obj-m := conftest.o" >build/Makefile
15866 modpost_flag=''
15867 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
15868 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
15869 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15870 (eval $ac_try) 2>&5
15871 ac_status=$?
15872 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15873 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
15874 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15875 (eval $ac_try) 2>&5
15876 ac_status=$?
15877 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15878 (exit $ac_status); }; }; then
15879 rc=0
15880 else
15881 $as_echo "$as_me: failed program was:" >&5
15882 sed 's/^/| /' conftest.$ac_ext >&5
15883 rc=1
15884
15885
15886 fi
15887
15888 rm -Rf build
15889
15890
15891 if test $rc -ne 0; then :
15892
15893 { $as_echo "$as_me:$LINENO: result: no" >&5
15894 $as_echo "no" >&6; }
15895 { $as_echo "$as_me:$LINENO: checking whether lookup_bdev() wants 2 args" >&5
15896 $as_echo_n "checking whether lookup_bdev() wants 2 args... " >&6; }
15897
15898
15899
15900 cat confdefs.h - <<_ACEOF >conftest.c
15901 /* confdefs.h. */
15902 _ACEOF
15903 cat confdefs.h >>conftest.$ac_ext
15904 cat >>conftest.$ac_ext <<_ACEOF
15905 /* end confdefs.h. */
15906
15907
15908 #include <linux/fs.h>
15909
15910 int
15911 main (void)
15912 {
15913
15914 lookup_bdev(NULL, FMODE_READ);
15915
15916 ;
15917 return 0;
15918 }
15919
15920 _ACEOF
15921
15922
15923
15924 cat - <<_ACEOF >conftest.h
15925
15926 _ACEOF
15927
15928
15929 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
15930 echo "obj-m := conftest.o" >build/Makefile
15931 modpost_flag=''
15932 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
15933 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
15934 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15935 (eval $ac_try) 2>&5
15936 ac_status=$?
15937 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15938 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
15939 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15940 (eval $ac_try) 2>&5
15941 ac_status=$?
15942 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15943 (exit $ac_status); }; }; then
15944 rc=0
15945 else
15946 $as_echo "$as_me: failed program was:" >&5
15947 sed 's/^/| /' conftest.$ac_ext >&5
15948 rc=1
15949
15950
15951 fi
15952
15953 rm -Rf build
15954
15955
15956 if test $rc -ne 0; then :
15957
15958 { $as_echo "$as_me:$LINENO: result: no" >&5
15959 $as_echo "no" >&6; }
15960
15961 else
15962 if test "x$enable_linux_builtin" != xyes; then
15963
15964 grep -q -E '[[:space:]]lookup_bdev[[:space:]]' \
15965 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
15966 rc=$?
15967 if test $rc -ne 0; then
15968 export=0
15969 for file in fs/block_dev.c; do
15970 grep -q -E "EXPORT_SYMBOL.*(lookup_bdev)" \
15971 "$LINUX/$file" 2>/dev/null
15972 rc=$?
15973 if test $rc -eq 0; then
15974 export=1
15975 break;
15976 fi
15977 done
15978 if test $export -eq 0; then :
15979 rc=1
15980 else :
15981 rc=0
15982 fi
15983 else :
15984 rc=0
15985 fi
15986
15987 fi
15988 if test $rc -ne 0; then :
15989
15990 { $as_echo "$as_me:$LINENO: result: no" >&5
15991 $as_echo "no" >&6; }
15992
15993 else :
15994
15995 { $as_echo "$as_me:$LINENO: result: yes" >&5
15996 $as_echo "yes" >&6; }
15997
15998 cat >>confdefs.h <<\_ACEOF
15999 #define HAVE_2ARGS_LOOKUP_BDEV 1
16000 _ACEOF
16001
16002
16003 fi
16004 fi
16005
16006
16007 else
16008 if test "x$enable_linux_builtin" != xyes; then
16009
16010 grep -q -E '[[:space:]]lookup_bdev[[:space:]]' \
16011 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
16012 rc=$?
16013 if test $rc -ne 0; then
16014 export=0
16015 for file in fs/block_dev.c; do
16016 grep -q -E "EXPORT_SYMBOL.*(lookup_bdev)" \
16017 "$LINUX/$file" 2>/dev/null
16018 rc=$?
16019 if test $rc -eq 0; then
16020 export=1
16021 break;
16022 fi
16023 done
16024 if test $export -eq 0; then :
16025 rc=1
16026 else :
16027 rc=0
16028 fi
16029 else :
16030 rc=0
16031 fi
16032
16033 fi
16034 if test $rc -ne 0; then :
16035
16036 { $as_echo "$as_me:$LINENO: result: no" >&5
16037 $as_echo "no" >&6; }
16038 { $as_echo "$as_me:$LINENO: checking whether lookup_bdev() wants 2 args" >&5
16039 $as_echo_n "checking whether lookup_bdev() wants 2 args... " >&6; }
16040
16041
16042
16043 cat confdefs.h - <<_ACEOF >conftest.c
16044 /* confdefs.h. */
16045 _ACEOF
16046 cat confdefs.h >>conftest.$ac_ext
16047 cat >>conftest.$ac_ext <<_ACEOF
16048 /* end confdefs.h. */
16049
16050
16051 #include <linux/fs.h>
16052
16053 int
16054 main (void)
16055 {
16056
16057 lookup_bdev(NULL, FMODE_READ);
16058
16059 ;
16060 return 0;
16061 }
16062
16063 _ACEOF
16064
16065
16066
16067 cat - <<_ACEOF >conftest.h
16068
16069 _ACEOF
16070
16071
16072 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
16073 echo "obj-m := conftest.o" >build/Makefile
16074 modpost_flag=''
16075 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
16076 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
16077 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16078 (eval $ac_try) 2>&5
16079 ac_status=$?
16080 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16081 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
16082 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16083 (eval $ac_try) 2>&5
16084 ac_status=$?
16085 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16086 (exit $ac_status); }; }; then
16087 rc=0
16088 else
16089 $as_echo "$as_me: failed program was:" >&5
16090 sed 's/^/| /' conftest.$ac_ext >&5
16091 rc=1
16092
16093
16094 fi
16095
16096 rm -Rf build
16097
16098
16099 if test $rc -ne 0; then :
16100
16101 { $as_echo "$as_me:$LINENO: result: no" >&5
16102 $as_echo "no" >&6; }
16103
16104 else
16105 if test "x$enable_linux_builtin" != xyes; then
16106
16107 grep -q -E '[[:space:]]lookup_bdev[[:space:]]' \
16108 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
16109 rc=$?
16110 if test $rc -ne 0; then
16111 export=0
16112 for file in fs/block_dev.c; do
16113 grep -q -E "EXPORT_SYMBOL.*(lookup_bdev)" \
16114 "$LINUX/$file" 2>/dev/null
16115 rc=$?
16116 if test $rc -eq 0; then
16117 export=1
16118 break;
16119 fi
16120 done
16121 if test $export -eq 0; then :
16122 rc=1
16123 else :
16124 rc=0
16125 fi
16126 else :
16127 rc=0
16128 fi
16129
16130 fi
16131 if test $rc -ne 0; then :
16132
16133 { $as_echo "$as_me:$LINENO: result: no" >&5
16134 $as_echo "no" >&6; }
16135
16136 else :
16137
16138 { $as_echo "$as_me:$LINENO: result: yes" >&5
16139 $as_echo "yes" >&6; }
16140
16141 cat >>confdefs.h <<\_ACEOF
16142 #define HAVE_2ARGS_LOOKUP_BDEV 1
16143 _ACEOF
16144
16145
16146 fi
16147 fi
16148
16149
16150 else :
16151
16152 { $as_echo "$as_me:$LINENO: result: yes" >&5
16153 $as_echo "yes" >&6; }
16154
16155 cat >>confdefs.h <<\_ACEOF
16156 #define HAVE_1ARG_LOOKUP_BDEV 1
16157 _ACEOF
16158
16159
16160 fi
16161 fi
16162
16163
16164
16165 { $as_echo "$as_me:$LINENO: checking whether invalidate_bdev() wants 1 arg" >&5
16166 $as_echo_n "checking whether invalidate_bdev() wants 1 arg... " >&6; }
16167
16168
16169 cat confdefs.h - <<_ACEOF >conftest.c
16170 /* confdefs.h. */
16171 _ACEOF
16172 cat confdefs.h >>conftest.$ac_ext
16173 cat >>conftest.$ac_ext <<_ACEOF
16174 /* end confdefs.h. */
16175
16176
16177 #include <linux/buffer_head.h>
16178
16179 int
16180 main (void)
16181 {
16182
16183 struct block_device *bdev = NULL;
16184 invalidate_bdev(bdev);
16185
16186 ;
16187 return 0;
16188 }
16189
16190 _ACEOF
16191
16192
16193
16194 cat - <<_ACEOF >conftest.h
16195
16196 _ACEOF
16197
16198
16199 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
16200 echo "obj-m := conftest.o" >build/Makefile
16201 modpost_flag=''
16202 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
16203 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
16204 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16205 (eval $ac_try) 2>&5
16206 ac_status=$?
16207 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16208 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
16209 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16210 (eval $ac_try) 2>&5
16211 ac_status=$?
16212 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16213 (exit $ac_status); }; }; then
16214
16215 { $as_echo "$as_me:$LINENO: result: yes" >&5
16216 $as_echo "yes" >&6; }
16217
16218 cat >>confdefs.h <<\_ACEOF
16219 #define HAVE_1ARG_INVALIDATE_BDEV 1
16220 _ACEOF
16221
16222
16223 else
16224 $as_echo "$as_me: failed program was:" >&5
16225 sed 's/^/| /' conftest.$ac_ext >&5
16226
16227 { $as_echo "$as_me:$LINENO: result: no" >&5
16228 $as_echo "no" >&6; }
16229
16230
16231
16232 fi
16233
16234 rm -Rf build
16235
16236
16237
16238
16239 { $as_echo "$as_me:$LINENO: checking whether bdev_logical_block_size() is available" >&5
16240 $as_echo_n "checking whether bdev_logical_block_size() is available... " >&6; }
16241 tmp_flags="$EXTRA_KCFLAGS"
16242 EXTRA_KCFLAGS="${NO_UNUSED_BUT_SET_VARIABLE}"
16243
16244
16245 cat confdefs.h - <<_ACEOF >conftest.c
16246 /* confdefs.h. */
16247 _ACEOF
16248 cat confdefs.h >>conftest.$ac_ext
16249 cat >>conftest.$ac_ext <<_ACEOF
16250 /* end confdefs.h. */
16251
16252
16253 #include <linux/blkdev.h>
16254
16255 int
16256 main (void)
16257 {
16258
16259 struct block_device *bdev = NULL;
16260 bdev_logical_block_size(bdev);
16261
16262 ;
16263 return 0;
16264 }
16265
16266 _ACEOF
16267
16268
16269
16270 cat - <<_ACEOF >conftest.h
16271
16272 _ACEOF
16273
16274
16275 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
16276 echo "obj-m := conftest.o" >build/Makefile
16277 modpost_flag=''
16278 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
16279 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
16280 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16281 (eval $ac_try) 2>&5
16282 ac_status=$?
16283 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16284 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
16285 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16286 (eval $ac_try) 2>&5
16287 ac_status=$?
16288 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16289 (exit $ac_status); }; }; then
16290
16291 { $as_echo "$as_me:$LINENO: result: yes" >&5
16292 $as_echo "yes" >&6; }
16293
16294 cat >>confdefs.h <<\_ACEOF
16295 #define HAVE_BDEV_LOGICAL_BLOCK_SIZE 1
16296 _ACEOF
16297
16298
16299 else
16300 $as_echo "$as_me: failed program was:" >&5
16301 sed 's/^/| /' conftest.$ac_ext >&5
16302
16303 { $as_echo "$as_me:$LINENO: result: no" >&5
16304 $as_echo "no" >&6; }
16305
16306
16307
16308 fi
16309
16310 rm -Rf build
16311
16312
16313 EXTRA_KCFLAGS="$tmp_flags"
16314
16315
16316 { $as_echo "$as_me:$LINENO: checking whether bdev_physical_block_size() is available" >&5
16317 $as_echo_n "checking whether bdev_physical_block_size() is available... " >&6; }
16318 tmp_flags="$EXTRA_KCFLAGS"
16319 EXTRA_KCFLAGS="${NO_UNUSED_BUT_SET_VARIABLE}"
16320
16321
16322 cat confdefs.h - <<_ACEOF >conftest.c
16323 /* confdefs.h. */
16324 _ACEOF
16325 cat confdefs.h >>conftest.$ac_ext
16326 cat >>conftest.$ac_ext <<_ACEOF
16327 /* end confdefs.h. */
16328
16329
16330 #include <linux/blkdev.h>
16331
16332 int
16333 main (void)
16334 {
16335
16336 struct block_device *bdev = NULL;
16337 bdev_physical_block_size(bdev);
16338
16339 ;
16340 return 0;
16341 }
16342
16343 _ACEOF
16344
16345
16346
16347 cat - <<_ACEOF >conftest.h
16348
16349 _ACEOF
16350
16351
16352 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
16353 echo "obj-m := conftest.o" >build/Makefile
16354 modpost_flag=''
16355 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
16356 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
16357 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16358 (eval $ac_try) 2>&5
16359 ac_status=$?
16360 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16361 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
16362 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16363 (eval $ac_try) 2>&5
16364 ac_status=$?
16365 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16366 (exit $ac_status); }; }; then
16367
16368 { $as_echo "$as_me:$LINENO: result: yes" >&5
16369 $as_echo "yes" >&6; }
16370
16371 cat >>confdefs.h <<\_ACEOF
16372 #define HAVE_BDEV_PHYSICAL_BLOCK_SIZE 1
16373 _ACEOF
16374
16375
16376 else
16377 $as_echo "$as_me: failed program was:" >&5
16378 sed 's/^/| /' conftest.$ac_ext >&5
16379
16380 { $as_echo "$as_me:$LINENO: result: no" >&5
16381 $as_echo "no" >&6; }
16382
16383
16384
16385 fi
16386
16387 rm -Rf build
16388
16389
16390 EXTRA_KCFLAGS="$tmp_flags"
16391
16392
16393 { $as_echo "$as_me:$LINENO: checking whether bio has bi_iter" >&5
16394 $as_echo_n "checking whether bio has bi_iter... " >&6; }
16395
16396
16397 cat confdefs.h - <<_ACEOF >conftest.c
16398 /* confdefs.h. */
16399 _ACEOF
16400 cat confdefs.h >>conftest.$ac_ext
16401 cat >>conftest.$ac_ext <<_ACEOF
16402 /* end confdefs.h. */
16403
16404
16405 #include <linux/bio.h>
16406
16407 int
16408 main (void)
16409 {
16410
16411 struct bio bio;
16412 bio.bi_iter.bi_sector = 0;
16413
16414 ;
16415 return 0;
16416 }
16417
16418 _ACEOF
16419
16420
16421
16422 cat - <<_ACEOF >conftest.h
16423
16424 _ACEOF
16425
16426
16427 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
16428 echo "obj-m := conftest.o" >build/Makefile
16429 modpost_flag=''
16430 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
16431 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
16432 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16433 (eval $ac_try) 2>&5
16434 ac_status=$?
16435 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16436 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
16437 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16438 (eval $ac_try) 2>&5
16439 ac_status=$?
16440 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16441 (exit $ac_status); }; }; then
16442
16443 { $as_echo "$as_me:$LINENO: result: yes" >&5
16444 $as_echo "yes" >&6; }
16445
16446 cat >>confdefs.h <<\_ACEOF
16447 #define HAVE_BIO_BVEC_ITER 1
16448 _ACEOF
16449
16450
16451 else
16452 $as_echo "$as_me: failed program was:" >&5
16453 sed 's/^/| /' conftest.$ac_ext >&5
16454
16455 { $as_echo "$as_me:$LINENO: result: no" >&5
16456 $as_echo "no" >&6; }
16457
16458
16459
16460 fi
16461
16462 rm -Rf build
16463
16464
16465
16466
16467 { $as_echo "$as_me:$LINENO: checking whether BIO_RW_FAILFAST_* are defined" >&5
16468 $as_echo_n "checking whether BIO_RW_FAILFAST_* are defined... " >&6; }
16469
16470
16471 cat confdefs.h - <<_ACEOF >conftest.c
16472 /* confdefs.h. */
16473 _ACEOF
16474 cat confdefs.h >>conftest.$ac_ext
16475 cat >>conftest.$ac_ext <<_ACEOF
16476 /* end confdefs.h. */
16477
16478
16479 #include <linux/bio.h>
16480
16481 int
16482 main (void)
16483 {
16484
16485 int flags __attribute__ ((unused));
16486 flags = ((1 << BIO_RW_FAILFAST_DEV) |
16487 (1 << BIO_RW_FAILFAST_TRANSPORT) |
16488 (1 << BIO_RW_FAILFAST_DRIVER));
16489
16490 ;
16491 return 0;
16492 }
16493
16494 _ACEOF
16495
16496
16497
16498 cat - <<_ACEOF >conftest.h
16499
16500 _ACEOF
16501
16502
16503 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
16504 echo "obj-m := conftest.o" >build/Makefile
16505 modpost_flag=''
16506 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
16507 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
16508 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16509 (eval $ac_try) 2>&5
16510 ac_status=$?
16511 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16512 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
16513 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16514 (eval $ac_try) 2>&5
16515 ac_status=$?
16516 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16517 (exit $ac_status); }; }; then
16518
16519 { $as_echo "$as_me:$LINENO: result: yes" >&5
16520 $as_echo "yes" >&6; }
16521
16522 cat >>confdefs.h <<\_ACEOF
16523 #define HAVE_BIO_RW_FAILFAST_DTD 1
16524 _ACEOF
16525
16526
16527 else
16528 $as_echo "$as_me: failed program was:" >&5
16529 sed 's/^/| /' conftest.$ac_ext >&5
16530
16531 { $as_echo "$as_me:$LINENO: result: no" >&5
16532 $as_echo "no" >&6; }
16533
16534
16535
16536 fi
16537
16538 rm -Rf build
16539
16540
16541
16542
16543 { $as_echo "$as_me:$LINENO: checking whether bio_set_dev() exists" >&5
16544 $as_echo_n "checking whether bio_set_dev() exists... " >&6; }
16545
16546
16547 cat confdefs.h - <<_ACEOF >conftest.c
16548 /* confdefs.h. */
16549 _ACEOF
16550 cat confdefs.h >>conftest.$ac_ext
16551 cat >>conftest.$ac_ext <<_ACEOF
16552 /* end confdefs.h. */
16553
16554
16555 #include <linux/bio.h>
16556 #include <linux/fs.h>
16557
16558 int
16559 main (void)
16560 {
16561
16562 struct block_device *bdev = NULL;
16563 struct bio *bio = NULL;
16564 bio_set_dev(bio, bdev);
16565
16566 ;
16567 return 0;
16568 }
16569
16570 _ACEOF
16571
16572
16573
16574 cat - <<_ACEOF >conftest.h
16575
16576 _ACEOF
16577
16578
16579 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
16580 echo "obj-m := conftest.o" >build/Makefile
16581 modpost_flag=''
16582 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
16583 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
16584 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16585 (eval $ac_try) 2>&5
16586 ac_status=$?
16587 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16588 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
16589 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16590 (eval $ac_try) 2>&5
16591 ac_status=$?
16592 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16593 (exit $ac_status); }; }; then
16594
16595 { $as_echo "$as_me:$LINENO: result: yes" >&5
16596 $as_echo "yes" >&6; }
16597
16598 cat >>confdefs.h <<\_ACEOF
16599 #define HAVE_BIO_SET_DEV 1
16600 _ACEOF
16601
16602
16603 else
16604 $as_echo "$as_me: failed program was:" >&5
16605 sed 's/^/| /' conftest.$ac_ext >&5
16606
16607 { $as_echo "$as_me:$LINENO: result: no" >&5
16608 $as_echo "no" >&6; }
16609
16610
16611
16612 fi
16613
16614 rm -Rf build
16615
16616
16617
16618
16619 { $as_echo "$as_me:$LINENO: checking whether REQ_FAILFAST_MASK is defined" >&5
16620 $as_echo_n "checking whether REQ_FAILFAST_MASK is defined... " >&6; }
16621
16622
16623 cat confdefs.h - <<_ACEOF >conftest.c
16624 /* confdefs.h. */
16625 _ACEOF
16626 cat confdefs.h >>conftest.$ac_ext
16627 cat >>conftest.$ac_ext <<_ACEOF
16628 /* end confdefs.h. */
16629
16630
16631 #include <linux/bio.h>
16632
16633 int
16634 main (void)
16635 {
16636
16637 int flags __attribute__ ((unused));
16638 flags = REQ_FAILFAST_MASK;
16639
16640 ;
16641 return 0;
16642 }
16643
16644 _ACEOF
16645
16646
16647
16648 cat - <<_ACEOF >conftest.h
16649
16650 _ACEOF
16651
16652
16653 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
16654 echo "obj-m := conftest.o" >build/Makefile
16655 modpost_flag=''
16656 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
16657 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
16658 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16659 (eval $ac_try) 2>&5
16660 ac_status=$?
16661 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16662 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
16663 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16664 (eval $ac_try) 2>&5
16665 ac_status=$?
16666 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16667 (exit $ac_status); }; }; then
16668
16669 { $as_echo "$as_me:$LINENO: result: yes" >&5
16670 $as_echo "yes" >&6; }
16671
16672 cat >>confdefs.h <<\_ACEOF
16673 #define HAVE_REQ_FAILFAST_MASK 1
16674 _ACEOF
16675
16676
16677 else
16678 $as_echo "$as_me: failed program was:" >&5
16679 sed 's/^/| /' conftest.$ac_ext >&5
16680
16681 { $as_echo "$as_me:$LINENO: result: no" >&5
16682 $as_echo "no" >&6; }
16683
16684
16685
16686 fi
16687
16688 rm -Rf build
16689
16690
16691
16692
16693 { $as_echo "$as_me:$LINENO: checking whether REQ_OP_DISCARD is defined" >&5
16694 $as_echo_n "checking whether REQ_OP_DISCARD is defined... " >&6; }
16695
16696
16697 cat confdefs.h - <<_ACEOF >conftest.c
16698 /* confdefs.h. */
16699 _ACEOF
16700 cat confdefs.h >>conftest.$ac_ext
16701 cat >>conftest.$ac_ext <<_ACEOF
16702 /* end confdefs.h. */
16703
16704
16705 #include <linux/blk_types.h>
16706
16707 int
16708 main (void)
16709 {
16710
16711 int op __attribute__ ((unused)) = REQ_OP_DISCARD;
16712
16713 ;
16714 return 0;
16715 }
16716
16717 _ACEOF
16718
16719
16720
16721 cat - <<_ACEOF >conftest.h
16722
16723 _ACEOF
16724
16725
16726 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
16727 echo "obj-m := conftest.o" >build/Makefile
16728 modpost_flag=''
16729 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
16730 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
16731 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16732 (eval $ac_try) 2>&5
16733 ac_status=$?
16734 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16735 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
16736 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16737 (eval $ac_try) 2>&5
16738 ac_status=$?
16739 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16740 (exit $ac_status); }; }; then
16741
16742 { $as_echo "$as_me:$LINENO: result: yes" >&5
16743 $as_echo "yes" >&6; }
16744
16745 cat >>confdefs.h <<\_ACEOF
16746 #define HAVE_REQ_OP_DISCARD 1
16747 _ACEOF
16748
16749
16750 else
16751 $as_echo "$as_me: failed program was:" >&5
16752 sed 's/^/| /' conftest.$ac_ext >&5
16753
16754 { $as_echo "$as_me:$LINENO: result: no" >&5
16755 $as_echo "no" >&6; }
16756
16757
16758
16759 fi
16760
16761 rm -Rf build
16762
16763
16764
16765
16766 { $as_echo "$as_me:$LINENO: checking whether REQ_OP_SECURE_ERASE is defined" >&5
16767 $as_echo_n "checking whether REQ_OP_SECURE_ERASE is defined... " >&6; }
16768
16769
16770 cat confdefs.h - <<_ACEOF >conftest.c
16771 /* confdefs.h. */
16772 _ACEOF
16773 cat confdefs.h >>conftest.$ac_ext
16774 cat >>conftest.$ac_ext <<_ACEOF
16775 /* end confdefs.h. */
16776
16777
16778 #include <linux/blk_types.h>
16779
16780 int
16781 main (void)
16782 {
16783
16784 int op __attribute__ ((unused)) = REQ_OP_SECURE_ERASE;
16785
16786 ;
16787 return 0;
16788 }
16789
16790 _ACEOF
16791
16792
16793
16794 cat - <<_ACEOF >conftest.h
16795
16796 _ACEOF
16797
16798
16799 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
16800 echo "obj-m := conftest.o" >build/Makefile
16801 modpost_flag=''
16802 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
16803 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
16804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16805 (eval $ac_try) 2>&5
16806 ac_status=$?
16807 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16808 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
16809 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16810 (eval $ac_try) 2>&5
16811 ac_status=$?
16812 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16813 (exit $ac_status); }; }; then
16814
16815 { $as_echo "$as_me:$LINENO: result: yes" >&5
16816 $as_echo "yes" >&6; }
16817
16818 cat >>confdefs.h <<\_ACEOF
16819 #define HAVE_REQ_OP_SECURE_ERASE 1
16820 _ACEOF
16821
16822
16823 else
16824 $as_echo "$as_me: failed program was:" >&5
16825 sed 's/^/| /' conftest.$ac_ext >&5
16826
16827 { $as_echo "$as_me:$LINENO: result: no" >&5
16828 $as_echo "no" >&6; }
16829
16830
16831
16832 fi
16833
16834 rm -Rf build
16835
16836
16837
16838
16839 { $as_echo "$as_me:$LINENO: checking whether REQ_OP_FLUSH is defined" >&5
16840 $as_echo_n "checking whether REQ_OP_FLUSH is defined... " >&6; }
16841
16842
16843 cat confdefs.h - <<_ACEOF >conftest.c
16844 /* confdefs.h. */
16845 _ACEOF
16846 cat confdefs.h >>conftest.$ac_ext
16847 cat >>conftest.$ac_ext <<_ACEOF
16848 /* end confdefs.h. */
16849
16850
16851 #include <linux/blk_types.h>
16852
16853 int
16854 main (void)
16855 {
16856
16857 int op __attribute__ ((unused)) = REQ_OP_FLUSH;
16858
16859 ;
16860 return 0;
16861 }
16862
16863 _ACEOF
16864
16865
16866
16867 cat - <<_ACEOF >conftest.h
16868
16869 _ACEOF
16870
16871
16872 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
16873 echo "obj-m := conftest.o" >build/Makefile
16874 modpost_flag=''
16875 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
16876 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
16877 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16878 (eval $ac_try) 2>&5
16879 ac_status=$?
16880 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16881 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
16882 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16883 (eval $ac_try) 2>&5
16884 ac_status=$?
16885 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16886 (exit $ac_status); }; }; then
16887
16888 { $as_echo "$as_me:$LINENO: result: yes" >&5
16889 $as_echo "yes" >&6; }
16890
16891 cat >>confdefs.h <<\_ACEOF
16892 #define HAVE_REQ_OP_FLUSH 1
16893 _ACEOF
16894
16895
16896 else
16897 $as_echo "$as_me: failed program was:" >&5
16898 sed 's/^/| /' conftest.$ac_ext >&5
16899
16900 { $as_echo "$as_me:$LINENO: result: no" >&5
16901 $as_echo "no" >&6; }
16902
16903
16904
16905 fi
16906
16907 rm -Rf build
16908
16909
16910
16911
16912 { $as_echo "$as_me:$LINENO: checking whether bio->bi_opf is defined" >&5
16913 $as_echo_n "checking whether bio->bi_opf is defined... " >&6; }
16914
16915
16916 cat confdefs.h - <<_ACEOF >conftest.c
16917 /* confdefs.h. */
16918 _ACEOF
16919 cat confdefs.h >>conftest.$ac_ext
16920 cat >>conftest.$ac_ext <<_ACEOF
16921 /* end confdefs.h. */
16922
16923
16924 #include <linux/bio.h>
16925
16926 int
16927 main (void)
16928 {
16929
16930 struct bio bio __attribute__ ((unused));
16931 bio.bi_opf = 0;
16932
16933 ;
16934 return 0;
16935 }
16936
16937 _ACEOF
16938
16939
16940
16941 cat - <<_ACEOF >conftest.h
16942
16943 _ACEOF
16944
16945
16946 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
16947 echo "obj-m := conftest.o" >build/Makefile
16948 modpost_flag=''
16949 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
16950 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
16951 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16952 (eval $ac_try) 2>&5
16953 ac_status=$?
16954 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16955 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
16956 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16957 (eval $ac_try) 2>&5
16958 ac_status=$?
16959 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16960 (exit $ac_status); }; }; then
16961
16962 { $as_echo "$as_me:$LINENO: result: yes" >&5
16963 $as_echo "yes" >&6; }
16964
16965 cat >>confdefs.h <<\_ACEOF
16966 #define HAVE_BIO_BI_OPF 1
16967 _ACEOF
16968
16969
16970 else
16971 $as_echo "$as_me: failed program was:" >&5
16972 sed 's/^/| /' conftest.$ac_ext >&5
16973
16974 { $as_echo "$as_me:$LINENO: result: no" >&5
16975 $as_echo "no" >&6; }
16976
16977
16978
16979 fi
16980
16981 rm -Rf build
16982
16983
16984
16985
16986 { $as_echo "$as_me:$LINENO: checking whether bio_end_io_t wants 1 arg" >&5
16987 $as_echo_n "checking whether bio_end_io_t wants 1 arg... " >&6; }
16988
16989
16990 cat confdefs.h - <<_ACEOF >conftest.c
16991 /* confdefs.h. */
16992 _ACEOF
16993 cat confdefs.h >>conftest.$ac_ext
16994 cat >>conftest.$ac_ext <<_ACEOF
16995 /* end confdefs.h. */
16996
16997
16998 #include <linux/bio.h>
16999
17000 void wanted_end_io(struct bio *bio) { return; }
17001
17002 bio_end_io_t *end_io __attribute__ ((unused)) = wanted_end_io;
17003
17004 int
17005 main (void)
17006 {
17007
17008
17009 ;
17010 return 0;
17011 }
17012
17013 _ACEOF
17014
17015
17016
17017 cat - <<_ACEOF >conftest.h
17018
17019 _ACEOF
17020
17021
17022 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
17023 echo "obj-m := conftest.o" >build/Makefile
17024 modpost_flag=''
17025 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
17026 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
17027 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17028 (eval $ac_try) 2>&5
17029 ac_status=$?
17030 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17031 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
17032 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17033 (eval $ac_try) 2>&5
17034 ac_status=$?
17035 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17036 (exit $ac_status); }; }; then
17037
17038 { $as_echo "$as_me:$LINENO: result: yes" >&5
17039 $as_echo "yes" >&6; }
17040
17041 cat >>confdefs.h <<\_ACEOF
17042 #define HAVE_1ARG_BIO_END_IO_T 1
17043 _ACEOF
17044
17045
17046 else
17047 $as_echo "$as_me: failed program was:" >&5
17048 sed 's/^/| /' conftest.$ac_ext >&5
17049
17050 { $as_echo "$as_me:$LINENO: result: no" >&5
17051 $as_echo "no" >&6; }
17052
17053
17054
17055 fi
17056
17057 rm -Rf build
17058
17059
17060
17061
17062 { $as_echo "$as_me:$LINENO: checking whether bio->bi_status exists" >&5
17063 $as_echo_n "checking whether bio->bi_status exists... " >&6; }
17064
17065
17066 cat confdefs.h - <<_ACEOF >conftest.c
17067 /* confdefs.h. */
17068 _ACEOF
17069 cat confdefs.h >>conftest.$ac_ext
17070 cat >>conftest.$ac_ext <<_ACEOF
17071 /* end confdefs.h. */
17072
17073
17074 #include <linux/bio.h>
17075
17076 int
17077 main (void)
17078 {
17079
17080 struct bio bio __attribute__ ((unused));
17081 blk_status_t status __attribute__ ((unused)) = BLK_STS_OK;
17082
17083 bio.bi_status = status;
17084
17085 ;
17086 return 0;
17087 }
17088
17089 _ACEOF
17090
17091
17092
17093 cat - <<_ACEOF >conftest.h
17094
17095 _ACEOF
17096
17097
17098 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
17099 echo "obj-m := conftest.o" >build/Makefile
17100 modpost_flag=''
17101 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
17102 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
17103 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17104 (eval $ac_try) 2>&5
17105 ac_status=$?
17106 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17107 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
17108 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17109 (eval $ac_try) 2>&5
17110 ac_status=$?
17111 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17112 (exit $ac_status); }; }; then
17113
17114 { $as_echo "$as_me:$LINENO: result: yes" >&5
17115 $as_echo "yes" >&6; }
17116
17117 cat >>confdefs.h <<\_ACEOF
17118 #define HAVE_BIO_BI_STATUS 1
17119 _ACEOF
17120
17121
17122 else
17123 $as_echo "$as_me: failed program was:" >&5
17124 sed 's/^/| /' conftest.$ac_ext >&5
17125
17126 { $as_echo "$as_me:$LINENO: result: no" >&5
17127 $as_echo "no" >&6; }
17128
17129
17130
17131 fi
17132
17133 rm -Rf build
17134
17135
17136
17137
17138 { $as_echo "$as_me:$LINENO: checking whether BIO_RW_BARRIER is defined" >&5
17139 $as_echo_n "checking whether BIO_RW_BARRIER is defined... " >&6; }
17140
17141
17142 cat confdefs.h - <<_ACEOF >conftest.c
17143 /* confdefs.h. */
17144 _ACEOF
17145 cat confdefs.h >>conftest.$ac_ext
17146 cat >>conftest.$ac_ext <<_ACEOF
17147 /* end confdefs.h. */
17148
17149
17150 #include <linux/bio.h>
17151
17152 int
17153 main (void)
17154 {
17155
17156 int flags __attribute__ ((unused));
17157 flags = BIO_RW_BARRIER;
17158
17159 ;
17160 return 0;
17161 }
17162
17163 _ACEOF
17164
17165
17166
17167 cat - <<_ACEOF >conftest.h
17168
17169 _ACEOF
17170
17171
17172 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
17173 echo "obj-m := conftest.o" >build/Makefile
17174 modpost_flag=''
17175 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
17176 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
17177 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17178 (eval $ac_try) 2>&5
17179 ac_status=$?
17180 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17181 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
17182 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17183 (eval $ac_try) 2>&5
17184 ac_status=$?
17185 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17186 (exit $ac_status); }; }; then
17187
17188 { $as_echo "$as_me:$LINENO: result: yes" >&5
17189 $as_echo "yes" >&6; }
17190
17191 cat >>confdefs.h <<\_ACEOF
17192 #define HAVE_BIO_RW_BARRIER 1
17193 _ACEOF
17194
17195
17196 else
17197 $as_echo "$as_me: failed program was:" >&5
17198 sed 's/^/| /' conftest.$ac_ext >&5
17199
17200 { $as_echo "$as_me:$LINENO: result: no" >&5
17201 $as_echo "no" >&6; }
17202
17203
17204
17205 fi
17206
17207 rm -Rf build
17208
17209
17210
17211
17212 { $as_echo "$as_me:$LINENO: checking whether BIO_RW_DISCARD is defined" >&5
17213 $as_echo_n "checking whether BIO_RW_DISCARD is defined... " >&6; }
17214
17215
17216 cat confdefs.h - <<_ACEOF >conftest.c
17217 /* confdefs.h. */
17218 _ACEOF
17219 cat confdefs.h >>conftest.$ac_ext
17220 cat >>conftest.$ac_ext <<_ACEOF
17221 /* end confdefs.h. */
17222
17223
17224 #include <linux/bio.h>
17225
17226 int
17227 main (void)
17228 {
17229
17230 int flags __attribute__ ((unused));
17231 flags = BIO_RW_DISCARD;
17232
17233 ;
17234 return 0;
17235 }
17236
17237 _ACEOF
17238
17239
17240
17241 cat - <<_ACEOF >conftest.h
17242
17243 _ACEOF
17244
17245
17246 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
17247 echo "obj-m := conftest.o" >build/Makefile
17248 modpost_flag=''
17249 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
17250 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
17251 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17252 (eval $ac_try) 2>&5
17253 ac_status=$?
17254 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17255 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
17256 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17257 (eval $ac_try) 2>&5
17258 ac_status=$?
17259 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17260 (exit $ac_status); }; }; then
17261
17262 { $as_echo "$as_me:$LINENO: result: yes" >&5
17263 $as_echo "yes" >&6; }
17264
17265 cat >>confdefs.h <<\_ACEOF
17266 #define HAVE_BIO_RW_DISCARD 1
17267 _ACEOF
17268
17269
17270 else
17271 $as_echo "$as_me: failed program was:" >&5
17272 sed 's/^/| /' conftest.$ac_ext >&5
17273
17274 { $as_echo "$as_me:$LINENO: result: no" >&5
17275 $as_echo "no" >&6; }
17276
17277
17278
17279 fi
17280
17281 rm -Rf build
17282
17283
17284
17285
17286 { $as_echo "$as_me:$LINENO: checking whether blk_queue bdi is dynamic" >&5
17287 $as_echo_n "checking whether blk_queue bdi is dynamic... " >&6; }
17288
17289
17290 cat confdefs.h - <<_ACEOF >conftest.c
17291 /* confdefs.h. */
17292 _ACEOF
17293 cat confdefs.h >>conftest.$ac_ext
17294 cat >>conftest.$ac_ext <<_ACEOF
17295 /* end confdefs.h. */
17296
17297
17298 #include <linux/blkdev.h>
17299
17300 int
17301 main (void)
17302 {
17303
17304 struct request_queue q;
17305 struct backing_dev_info bdi;
17306 q.backing_dev_info = &bdi;
17307
17308 ;
17309 return 0;
17310 }
17311
17312 _ACEOF
17313
17314
17315
17316 cat - <<_ACEOF >conftest.h
17317
17318 _ACEOF
17319
17320
17321 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
17322 echo "obj-m := conftest.o" >build/Makefile
17323 modpost_flag=''
17324 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
17325 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
17326 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17327 (eval $ac_try) 2>&5
17328 ac_status=$?
17329 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17330 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
17331 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17332 (eval $ac_try) 2>&5
17333 ac_status=$?
17334 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17335 (exit $ac_status); }; }; then
17336
17337 { $as_echo "$as_me:$LINENO: result: yes" >&5
17338 $as_echo "yes" >&6; }
17339
17340 cat >>confdefs.h <<\_ACEOF
17341 #define HAVE_BLK_QUEUE_BDI_DYNAMIC 1
17342 _ACEOF
17343
17344
17345 else
17346 $as_echo "$as_me: failed program was:" >&5
17347 sed 's/^/| /' conftest.$ac_ext >&5
17348
17349 { $as_echo "$as_me:$LINENO: result: no" >&5
17350 $as_echo "no" >&6; }
17351
17352
17353
17354 fi
17355
17356 rm -Rf build
17357
17358
17359
17360
17361 { $as_echo "$as_me:$LINENO: checking whether blk_queue_flag_clear() exists" >&5
17362 $as_echo_n "checking whether blk_queue_flag_clear() exists... " >&6; }
17363
17364
17365 cat confdefs.h - <<_ACEOF >conftest.c
17366 /* confdefs.h. */
17367 _ACEOF
17368 cat confdefs.h >>conftest.$ac_ext
17369 cat >>conftest.$ac_ext <<_ACEOF
17370 /* end confdefs.h. */
17371
17372
17373 #include <linux/kernel.h>
17374 #include <linux/blkdev.h>
17375
17376 int
17377 main (void)
17378 {
17379
17380 struct request_queue *q = NULL;
17381 blk_queue_flag_clear(0, q);
17382
17383 ;
17384 return 0;
17385 }
17386
17387 _ACEOF
17388
17389
17390
17391 cat - <<_ACEOF >conftest.h
17392
17393 _ACEOF
17394
17395
17396 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
17397 echo "obj-m := conftest.o" >build/Makefile
17398 modpost_flag=''
17399 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
17400 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
17401 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17402 (eval $ac_try) 2>&5
17403 ac_status=$?
17404 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17405 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
17406 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17407 (eval $ac_try) 2>&5
17408 ac_status=$?
17409 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17410 (exit $ac_status); }; }; then
17411
17412
17413 { $as_echo "$as_me:$LINENO: result: yes" >&5
17414 $as_echo "yes" >&6; }
17415
17416 cat >>confdefs.h <<\_ACEOF
17417 #define HAVE_BLK_QUEUE_FLAG_CLEAR 1
17418 _ACEOF
17419
17420
17421 else
17422 $as_echo "$as_me: failed program was:" >&5
17423 sed 's/^/| /' conftest.$ac_ext >&5
17424
17425 { $as_echo "$as_me:$LINENO: result: no" >&5
17426 $as_echo "no" >&6; }
17427
17428
17429
17430 fi
17431
17432 rm -Rf build
17433
17434
17435
17436
17437 { $as_echo "$as_me:$LINENO: checking whether blk_queue_flag_set() exists" >&5
17438 $as_echo_n "checking whether blk_queue_flag_set() exists... " >&6; }
17439
17440
17441 cat confdefs.h - <<_ACEOF >conftest.c
17442 /* confdefs.h. */
17443 _ACEOF
17444 cat confdefs.h >>conftest.$ac_ext
17445 cat >>conftest.$ac_ext <<_ACEOF
17446 /* end confdefs.h. */
17447
17448
17449 #include <linux/kernel.h>
17450 #include <linux/blkdev.h>
17451
17452 int
17453 main (void)
17454 {
17455
17456 struct request_queue *q = NULL;
17457 blk_queue_flag_set(0, q);
17458
17459 ;
17460 return 0;
17461 }
17462
17463 _ACEOF
17464
17465
17466
17467 cat - <<_ACEOF >conftest.h
17468
17469 _ACEOF
17470
17471
17472 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
17473 echo "obj-m := conftest.o" >build/Makefile
17474 modpost_flag=''
17475 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
17476 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
17477 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17478 (eval $ac_try) 2>&5
17479 ac_status=$?
17480 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17481 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
17482 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17483 (eval $ac_try) 2>&5
17484 ac_status=$?
17485 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17486 (exit $ac_status); }; }; then
17487
17488 { $as_echo "$as_me:$LINENO: result: yes" >&5
17489 $as_echo "yes" >&6; }
17490
17491 cat >>confdefs.h <<\_ACEOF
17492 #define HAVE_BLK_QUEUE_FLAG_SET 1
17493 _ACEOF
17494
17495
17496 else
17497 $as_echo "$as_me: failed program was:" >&5
17498 sed 's/^/| /' conftest.$ac_ext >&5
17499
17500 { $as_echo "$as_me:$LINENO: result: no" >&5
17501 $as_echo "no" >&6; }
17502
17503
17504
17505 fi
17506
17507 rm -Rf build
17508
17509
17510
17511
17512 { $as_echo "$as_me:$LINENO: checking whether blk_queue_flush() is available" >&5
17513 $as_echo_n "checking whether blk_queue_flush() is available... " >&6; }
17514 tmp_flags="$EXTRA_KCFLAGS"
17515 EXTRA_KCFLAGS="${NO_UNUSED_BUT_SET_VARIABLE}"
17516
17517
17518 cat confdefs.h - <<_ACEOF >conftest.c
17519 /* confdefs.h. */
17520 _ACEOF
17521 cat confdefs.h >>conftest.$ac_ext
17522 cat >>conftest.$ac_ext <<_ACEOF
17523 /* end confdefs.h. */
17524
17525
17526 #include <linux/blkdev.h>
17527
17528 int
17529 main (void)
17530 {
17531
17532 struct request_queue *q = NULL;
17533 (void) blk_queue_flush(q, REQ_FLUSH);
17534
17535 ;
17536 return 0;
17537 }
17538
17539 _ACEOF
17540
17541
17542
17543 cat - <<_ACEOF >conftest.h
17544
17545 _ACEOF
17546
17547
17548 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
17549 echo "obj-m := conftest.o" >build/Makefile
17550 modpost_flag=''
17551 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
17552 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
17553 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17554 (eval $ac_try) 2>&5
17555 ac_status=$?
17556 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17557 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
17558 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17559 (eval $ac_try) 2>&5
17560 ac_status=$?
17561 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17562 (exit $ac_status); }; }; then
17563
17564 { $as_echo "$as_me:$LINENO: result: yes" >&5
17565 $as_echo "yes" >&6; }
17566
17567 cat >>confdefs.h <<\_ACEOF
17568 #define HAVE_BLK_QUEUE_FLUSH 1
17569 _ACEOF
17570
17571
17572 { $as_echo "$as_me:$LINENO: checking whether blk_queue_flush() is GPL-only" >&5
17573 $as_echo_n "checking whether blk_queue_flush() is GPL-only... " >&6; }
17574
17575
17576 cat confdefs.h - <<_ACEOF >conftest.c
17577 /* confdefs.h. */
17578 _ACEOF
17579 cat confdefs.h >>conftest.$ac_ext
17580 cat >>conftest.$ac_ext <<_ACEOF
17581 /* end confdefs.h. */
17582
17583
17584 #include <linux/module.h>
17585 #include <linux/blkdev.h>
17586
17587 MODULE_LICENSE("$ZFS_META_LICENSE");
17588
17589 int
17590 main (void)
17591 {
17592
17593 struct request_queue *q = NULL;
17594 (void) blk_queue_flush(q, REQ_FLUSH);
17595
17596 ;
17597 return 0;
17598 }
17599
17600 _ACEOF
17601
17602
17603
17604 cat - <<_ACEOF >conftest.h
17605
17606 _ACEOF
17607
17608
17609 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
17610 echo "obj-m := conftest.o" >build/Makefile
17611 modpost_flag=''
17612 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
17613 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
17614 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17615 (eval $ac_try) 2>&5
17616 ac_status=$?
17617 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17618 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
17619 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17620 (eval $ac_try) 2>&5
17621 ac_status=$?
17622 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17623 (exit $ac_status); }; }; then
17624
17625 { $as_echo "$as_me:$LINENO: result: no" >&5
17626 $as_echo "no" >&6; }
17627
17628 else
17629 $as_echo "$as_me: failed program was:" >&5
17630 sed 's/^/| /' conftest.$ac_ext >&5
17631
17632 { $as_echo "$as_me:$LINENO: result: yes" >&5
17633 $as_echo "yes" >&6; }
17634
17635 cat >>confdefs.h <<\_ACEOF
17636 #define HAVE_BLK_QUEUE_FLUSH_GPL_ONLY 1
17637 _ACEOF
17638
17639
17640
17641
17642 fi
17643
17644 rm -Rf build
17645
17646
17647
17648 else
17649 $as_echo "$as_me: failed program was:" >&5
17650 sed 's/^/| /' conftest.$ac_ext >&5
17651
17652 { $as_echo "$as_me:$LINENO: result: no" >&5
17653 $as_echo "no" >&6; }
17654
17655
17656
17657 fi
17658
17659 rm -Rf build
17660
17661
17662
17663 { $as_echo "$as_me:$LINENO: checking whether blk_queue_write_cache() exists" >&5
17664 $as_echo_n "checking whether blk_queue_write_cache() exists... " >&6; }
17665
17666
17667 cat confdefs.h - <<_ACEOF >conftest.c
17668 /* confdefs.h. */
17669 _ACEOF
17670 cat confdefs.h >>conftest.$ac_ext
17671 cat >>conftest.$ac_ext <<_ACEOF
17672 /* end confdefs.h. */
17673
17674
17675 #include <linux/kernel.h>
17676 #include <linux/blkdev.h>
17677
17678
17679 int
17680 main (void)
17681 {
17682
17683 struct request_queue *q = NULL;
17684 blk_queue_write_cache(q, true, true);
17685
17686 ;
17687 return 0;
17688 }
17689
17690 _ACEOF
17691
17692
17693
17694 cat - <<_ACEOF >conftest.h
17695
17696 _ACEOF
17697
17698
17699 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
17700 echo "obj-m := conftest.o" >build/Makefile
17701 modpost_flag=''
17702 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
17703 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
17704 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17705 (eval $ac_try) 2>&5
17706 ac_status=$?
17707 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17708 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
17709 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17710 (eval $ac_try) 2>&5
17711 ac_status=$?
17712 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17713 (exit $ac_status); }; }; then
17714
17715 { $as_echo "$as_me:$LINENO: result: yes" >&5
17716 $as_echo "yes" >&6; }
17717
17718 cat >>confdefs.h <<\_ACEOF
17719 #define HAVE_BLK_QUEUE_WRITE_CACHE 1
17720 _ACEOF
17721
17722
17723 { $as_echo "$as_me:$LINENO: checking whether blk_queue_write_cache() is GPL-only" >&5
17724 $as_echo_n "checking whether blk_queue_write_cache() is GPL-only... " >&6; }
17725
17726
17727 cat confdefs.h - <<_ACEOF >conftest.c
17728 /* confdefs.h. */
17729 _ACEOF
17730 cat confdefs.h >>conftest.$ac_ext
17731 cat >>conftest.$ac_ext <<_ACEOF
17732 /* end confdefs.h. */
17733
17734
17735 #include <linux/kernel.h>
17736 #include <linux/module.h>
17737 #include <linux/blkdev.h>
17738
17739 MODULE_LICENSE("$ZFS_META_LICENSE");
17740
17741 int
17742 main (void)
17743 {
17744
17745 struct request_queue *q = NULL;
17746 blk_queue_write_cache(q, true, true);
17747
17748 ;
17749 return 0;
17750 }
17751
17752 _ACEOF
17753
17754
17755
17756 cat - <<_ACEOF >conftest.h
17757
17758 _ACEOF
17759
17760
17761 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
17762 echo "obj-m := conftest.o" >build/Makefile
17763 modpost_flag=''
17764 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
17765 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
17766 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17767 (eval $ac_try) 2>&5
17768 ac_status=$?
17769 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17770 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
17771 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17772 (eval $ac_try) 2>&5
17773 ac_status=$?
17774 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17775 (exit $ac_status); }; }; then
17776
17777 { $as_echo "$as_me:$LINENO: result: no" >&5
17778 $as_echo "no" >&6; }
17779
17780 else
17781 $as_echo "$as_me: failed program was:" >&5
17782 sed 's/^/| /' conftest.$ac_ext >&5
17783
17784 { $as_echo "$as_me:$LINENO: result: yes" >&5
17785 $as_echo "yes" >&6; }
17786
17787 cat >>confdefs.h <<\_ACEOF
17788 #define HAVE_BLK_QUEUE_WRITE_CACHE_GPL_ONLY 1
17789 _ACEOF
17790
17791
17792
17793
17794 fi
17795
17796 rm -Rf build
17797
17798
17799
17800 else
17801 $as_echo "$as_me: failed program was:" >&5
17802 sed 's/^/| /' conftest.$ac_ext >&5
17803
17804 { $as_echo "$as_me:$LINENO: result: no" >&5
17805 $as_echo "no" >&6; }
17806
17807
17808
17809 fi
17810
17811 rm -Rf build
17812
17813
17814
17815 EXTRA_KCFLAGS="$tmp_flags"
17816
17817
17818 { $as_echo "$as_me:$LINENO: checking whether blk_queue_max_hw_sectors() is available" >&5
17819 $as_echo_n "checking whether blk_queue_max_hw_sectors() is available... " >&6; }
17820 tmp_flags="$EXTRA_KCFLAGS"
17821 EXTRA_KCFLAGS="${NO_UNUSED_BUT_SET_VARIABLE}"
17822
17823
17824 cat confdefs.h - <<_ACEOF >conftest.c
17825 /* confdefs.h. */
17826 _ACEOF
17827 cat confdefs.h >>conftest.$ac_ext
17828 cat >>conftest.$ac_ext <<_ACEOF
17829 /* end confdefs.h. */
17830
17831
17832 #include <linux/blkdev.h>
17833
17834 int
17835 main (void)
17836 {
17837
17838 struct request_queue *q = NULL;
17839 (void) blk_queue_max_hw_sectors(q, BLK_SAFE_MAX_SECTORS);
17840
17841 ;
17842 return 0;
17843 }
17844
17845 _ACEOF
17846
17847
17848
17849 cat - <<_ACEOF >conftest.h
17850
17851 _ACEOF
17852
17853
17854 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
17855 echo "obj-m := conftest.o" >build/Makefile
17856 modpost_flag=''
17857 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
17858 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
17859 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17860 (eval $ac_try) 2>&5
17861 ac_status=$?
17862 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17863 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
17864 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17865 (eval $ac_try) 2>&5
17866 ac_status=$?
17867 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17868 (exit $ac_status); }; }; then
17869
17870 { $as_echo "$as_me:$LINENO: result: yes" >&5
17871 $as_echo "yes" >&6; }
17872
17873 cat >>confdefs.h <<\_ACEOF
17874 #define HAVE_BLK_QUEUE_MAX_HW_SECTORS 1
17875 _ACEOF
17876
17877
17878 else
17879 $as_echo "$as_me: failed program was:" >&5
17880 sed 's/^/| /' conftest.$ac_ext >&5
17881
17882 { $as_echo "$as_me:$LINENO: result: no" >&5
17883 $as_echo "no" >&6; }
17884
17885
17886
17887 fi
17888
17889 rm -Rf build
17890
17891
17892 EXTRA_KCFLAGS="$tmp_flags"
17893
17894
17895 { $as_echo "$as_me:$LINENO: checking whether blk_queue_max_segments() is available" >&5
17896 $as_echo_n "checking whether blk_queue_max_segments() is available... " >&6; }
17897 tmp_flags="$EXTRA_KCFLAGS"
17898 EXTRA_KCFLAGS="${NO_UNUSED_BUT_SET_VARIABLE}"
17899
17900
17901 cat confdefs.h - <<_ACEOF >conftest.c
17902 /* confdefs.h. */
17903 _ACEOF
17904 cat confdefs.h >>conftest.$ac_ext
17905 cat >>conftest.$ac_ext <<_ACEOF
17906 /* end confdefs.h. */
17907
17908
17909 #include <linux/blkdev.h>
17910
17911 int
17912 main (void)
17913 {
17914
17915 struct request_queue *q = NULL;
17916 (void) blk_queue_max_segments(q, BLK_MAX_SEGMENTS);
17917
17918 ;
17919 return 0;
17920 }
17921
17922 _ACEOF
17923
17924
17925
17926 cat - <<_ACEOF >conftest.h
17927
17928 _ACEOF
17929
17930
17931 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
17932 echo "obj-m := conftest.o" >build/Makefile
17933 modpost_flag=''
17934 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
17935 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
17936 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17937 (eval $ac_try) 2>&5
17938 ac_status=$?
17939 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17940 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
17941 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17942 (eval $ac_try) 2>&5
17943 ac_status=$?
17944 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17945 (exit $ac_status); }; }; then
17946
17947 { $as_echo "$as_me:$LINENO: result: yes" >&5
17948 $as_echo "yes" >&6; }
17949
17950 cat >>confdefs.h <<\_ACEOF
17951 #define HAVE_BLK_QUEUE_MAX_SEGMENTS 1
17952 _ACEOF
17953
17954
17955 else
17956 $as_echo "$as_me: failed program was:" >&5
17957 sed 's/^/| /' conftest.$ac_ext >&5
17958
17959 { $as_echo "$as_me:$LINENO: result: no" >&5
17960 $as_echo "no" >&6; }
17961
17962
17963
17964 fi
17965
17966 rm -Rf build
17967
17968
17969 EXTRA_KCFLAGS="$tmp_flags"
17970
17971
17972 { $as_echo "$as_me:$LINENO: checking whether the BIO_RW_UNPLUG enum is available" >&5
17973 $as_echo_n "checking whether the BIO_RW_UNPLUG enum is available... " >&6; }
17974 tmp_flags="$EXTRA_KCFLAGS"
17975 EXTRA_KCFLAGS="${NO_UNUSED_BUT_SET_VARIABLE}"
17976
17977
17978 cat confdefs.h - <<_ACEOF >conftest.c
17979 /* confdefs.h. */
17980 _ACEOF
17981 cat confdefs.h >>conftest.$ac_ext
17982 cat >>conftest.$ac_ext <<_ACEOF
17983 /* end confdefs.h. */
17984
17985
17986 #include <linux/blkdev.h>
17987
17988 int
17989 main (void)
17990 {
17991
17992 extern enum bio_rw_flags rw;
17993
17994 rw = BIO_RW_UNPLUG;
17995
17996 ;
17997 return 0;
17998 }
17999
18000 _ACEOF
18001
18002
18003
18004 cat - <<_ACEOF >conftest.h
18005
18006 _ACEOF
18007
18008
18009 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
18010 echo "obj-m := conftest.o" >build/Makefile
18011 modpost_flag=''
18012 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
18013 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
18014 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18015 (eval $ac_try) 2>&5
18016 ac_status=$?
18017 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18018 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
18019 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18020 (eval $ac_try) 2>&5
18021 ac_status=$?
18022 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18023 (exit $ac_status); }; }; then
18024
18025 { $as_echo "$as_me:$LINENO: result: yes" >&5
18026 $as_echo "yes" >&6; }
18027
18028 cat >>confdefs.h <<\_ACEOF
18029 #define HAVE_BLK_QUEUE_HAVE_BIO_RW_UNPLUG 1
18030 _ACEOF
18031
18032
18033 else
18034 $as_echo "$as_me: failed program was:" >&5
18035 sed 's/^/| /' conftest.$ac_ext >&5
18036
18037 { $as_echo "$as_me:$LINENO: result: no" >&5
18038 $as_echo "no" >&6; }
18039
18040
18041
18042 fi
18043
18044 rm -Rf build
18045
18046
18047 EXTRA_KCFLAGS="$tmp_flags"
18048
18049
18050 { $as_echo "$as_me:$LINENO: checking whether struct blk_plug is available" >&5
18051 $as_echo_n "checking whether struct blk_plug is available... " >&6; }
18052 tmp_flags="$EXTRA_KCFLAGS"
18053 EXTRA_KCFLAGS="${NO_UNUSED_BUT_SET_VARIABLE}"
18054
18055
18056 cat confdefs.h - <<_ACEOF >conftest.c
18057 /* confdefs.h. */
18058 _ACEOF
18059 cat confdefs.h >>conftest.$ac_ext
18060 cat >>conftest.$ac_ext <<_ACEOF
18061 /* end confdefs.h. */
18062
18063
18064 #include <linux/blkdev.h>
18065
18066 int
18067 main (void)
18068 {
18069
18070 struct blk_plug plug;
18071
18072 blk_start_plug(&plug);
18073 blk_finish_plug(&plug);
18074
18075 ;
18076 return 0;
18077 }
18078
18079 _ACEOF
18080
18081
18082
18083 cat - <<_ACEOF >conftest.h
18084
18085 _ACEOF
18086
18087
18088 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
18089 echo "obj-m := conftest.o" >build/Makefile
18090 modpost_flag=''
18091 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
18092 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
18093 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18094 (eval $ac_try) 2>&5
18095 ac_status=$?
18096 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18097 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
18098 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18099 (eval $ac_try) 2>&5
18100 ac_status=$?
18101 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18102 (exit $ac_status); }; }; then
18103
18104 { $as_echo "$as_me:$LINENO: result: yes" >&5
18105 $as_echo "yes" >&6; }
18106
18107 cat >>confdefs.h <<\_ACEOF
18108 #define HAVE_BLK_QUEUE_HAVE_BLK_PLUG 1
18109 _ACEOF
18110
18111
18112 else
18113 $as_echo "$as_me: failed program was:" >&5
18114 sed 's/^/| /' conftest.$ac_ext >&5
18115
18116 { $as_echo "$as_me:$LINENO: result: no" >&5
18117 $as_echo "no" >&6; }
18118
18119
18120
18121 fi
18122
18123 rm -Rf build
18124
18125
18126 EXTRA_KCFLAGS="$tmp_flags"
18127
18128 { $as_echo "$as_me:$LINENO: checking whether get_disk_and_module() is available" >&5
18129 $as_echo_n "checking whether get_disk_and_module() is available... " >&6; }
18130
18131
18132
18133 cat confdefs.h - <<_ACEOF >conftest.c
18134 /* confdefs.h. */
18135 _ACEOF
18136 cat confdefs.h >>conftest.$ac_ext
18137 cat >>conftest.$ac_ext <<_ACEOF
18138 /* end confdefs.h. */
18139
18140
18141 #include <linux/genhd.h>
18142
18143 int
18144 main (void)
18145 {
18146
18147 struct gendisk *disk = NULL;
18148 (void) get_disk_and_module(disk);
18149
18150 ;
18151 return 0;
18152 }
18153
18154 _ACEOF
18155
18156
18157
18158 cat - <<_ACEOF >conftest.h
18159
18160 _ACEOF
18161
18162
18163 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
18164 echo "obj-m := conftest.o" >build/Makefile
18165 modpost_flag=''
18166 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
18167 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
18168 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18169 (eval $ac_try) 2>&5
18170 ac_status=$?
18171 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18172 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
18173 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18174 (eval $ac_try) 2>&5
18175 ac_status=$?
18176 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18177 (exit $ac_status); }; }; then
18178 rc=0
18179 else
18180 $as_echo "$as_me: failed program was:" >&5
18181 sed 's/^/| /' conftest.$ac_ext >&5
18182 rc=1
18183
18184
18185 fi
18186
18187 rm -Rf build
18188
18189
18190 if test $rc -ne 0; then :
18191
18192 { $as_echo "$as_me:$LINENO: result: no" >&5
18193 $as_echo "no" >&6; }
18194
18195 else
18196 if test "x$enable_linux_builtin" != xyes; then
18197
18198 grep -q -E '[[:space:]]get_disk_and_module[[:space:]]' \
18199 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
18200 rc=$?
18201 if test $rc -ne 0; then
18202 export=0
18203 for file in block/genhd.c; do
18204 grep -q -E "EXPORT_SYMBOL.*(get_disk_and_module)" \
18205 "$LINUX/$file" 2>/dev/null
18206 rc=$?
18207 if test $rc -eq 0; then
18208 export=1
18209 break;
18210 fi
18211 done
18212 if test $export -eq 0; then :
18213 rc=1
18214 else :
18215 rc=0
18216 fi
18217 else :
18218 rc=0
18219 fi
18220
18221 fi
18222 if test $rc -ne 0; then :
18223
18224 { $as_echo "$as_me:$LINENO: result: no" >&5
18225 $as_echo "no" >&6; }
18226
18227 else :
18228
18229 { $as_echo "$as_me:$LINENO: result: yes" >&5
18230 $as_echo "yes" >&6; }
18231
18232 cat >>confdefs.h <<\_ACEOF
18233 #define HAVE_GET_DISK_AND_MODULE 1
18234 _ACEOF
18235
18236
18237 fi
18238 fi
18239
18240
18241
18242 { $as_echo "$as_me:$LINENO: checking whether get_disk_ro() is available" >&5
18243 $as_echo_n "checking whether get_disk_ro() is available... " >&6; }
18244 tmp_flags="$EXTRA_KCFLAGS"
18245 EXTRA_KCFLAGS="${NO_UNUSED_BUT_SET_VARIABLE}"
18246
18247
18248 cat confdefs.h - <<_ACEOF >conftest.c
18249 /* confdefs.h. */
18250 _ACEOF
18251 cat confdefs.h >>conftest.$ac_ext
18252 cat >>conftest.$ac_ext <<_ACEOF
18253 /* end confdefs.h. */
18254
18255
18256 #include <linux/blkdev.h>
18257
18258 int
18259 main (void)
18260 {
18261
18262 struct gendisk *disk = NULL;
18263 (void) get_disk_ro(disk);
18264
18265 ;
18266 return 0;
18267 }
18268
18269 _ACEOF
18270
18271
18272
18273 cat - <<_ACEOF >conftest.h
18274
18275 _ACEOF
18276
18277
18278 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
18279 echo "obj-m := conftest.o" >build/Makefile
18280 modpost_flag=''
18281 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
18282 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
18283 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18284 (eval $ac_try) 2>&5
18285 ac_status=$?
18286 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18287 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
18288 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18289 (eval $ac_try) 2>&5
18290 ac_status=$?
18291 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18292 (exit $ac_status); }; }; then
18293
18294 { $as_echo "$as_me:$LINENO: result: yes" >&5
18295 $as_echo "yes" >&6; }
18296
18297 cat >>confdefs.h <<\_ACEOF
18298 #define HAVE_GET_DISK_RO 1
18299 _ACEOF
18300
18301
18302 else
18303 $as_echo "$as_me: failed program was:" >&5
18304 sed 's/^/| /' conftest.$ac_ext >&5
18305
18306 { $as_echo "$as_me:$LINENO: result: no" >&5
18307 $as_echo "no" >&6; }
18308
18309
18310
18311 fi
18312
18313 rm -Rf build
18314
18315
18316 EXTRA_KCFLAGS="$tmp_flags"
18317
18318 { $as_echo "$as_me:$LINENO: checking whether get_gendisk() is available" >&5
18319 $as_echo_n "checking whether get_gendisk() is available... " >&6; }
18320
18321
18322
18323 cat confdefs.h - <<_ACEOF >conftest.c
18324 /* confdefs.h. */
18325 _ACEOF
18326 cat confdefs.h >>conftest.$ac_ext
18327 cat >>conftest.$ac_ext <<_ACEOF
18328 /* end confdefs.h. */
18329
18330
18331 #include <linux/genhd.h>
18332
18333 int
18334 main (void)
18335 {
18336
18337 get_gendisk(0, NULL);
18338
18339 ;
18340 return 0;
18341 }
18342
18343 _ACEOF
18344
18345
18346
18347 cat - <<_ACEOF >conftest.h
18348
18349 _ACEOF
18350
18351
18352 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
18353 echo "obj-m := conftest.o" >build/Makefile
18354 modpost_flag=''
18355 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
18356 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
18357 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18358 (eval $ac_try) 2>&5
18359 ac_status=$?
18360 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18361 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
18362 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18363 (eval $ac_try) 2>&5
18364 ac_status=$?
18365 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18366 (exit $ac_status); }; }; then
18367 rc=0
18368 else
18369 $as_echo "$as_me: failed program was:" >&5
18370 sed 's/^/| /' conftest.$ac_ext >&5
18371 rc=1
18372
18373
18374 fi
18375
18376 rm -Rf build
18377
18378
18379 if test $rc -ne 0; then :
18380
18381 { $as_echo "$as_me:$LINENO: result: no" >&5
18382 $as_echo "no" >&6; }
18383
18384 else
18385 if test "x$enable_linux_builtin" != xyes; then
18386
18387 grep -q -E '[[:space:]]get_gendisk[[:space:]]' \
18388 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
18389 rc=$?
18390 if test $rc -ne 0; then
18391 export=0
18392 for file in block/genhd.c; do
18393 grep -q -E "EXPORT_SYMBOL.*(get_gendisk)" \
18394 "$LINUX/$file" 2>/dev/null
18395 rc=$?
18396 if test $rc -eq 0; then
18397 export=1
18398 break;
18399 fi
18400 done
18401 if test $export -eq 0; then :
18402 rc=1
18403 else :
18404 rc=0
18405 fi
18406 else :
18407 rc=0
18408 fi
18409
18410 fi
18411 if test $rc -ne 0; then :
18412
18413 { $as_echo "$as_me:$LINENO: result: no" >&5
18414 $as_echo "no" >&6; }
18415
18416 else :
18417
18418 { $as_echo "$as_me:$LINENO: result: yes" >&5
18419 $as_echo "yes" >&6; }
18420
18421 cat >>confdefs.h <<\_ACEOF
18422 #define HAVE_GET_GENDISK 1
18423 _ACEOF
18424
18425
18426 fi
18427 fi
18428
18429
18430
18431 { $as_echo "$as_me:$LINENO: checking whether bio_set_op_attrs is available" >&5
18432 $as_echo_n "checking whether bio_set_op_attrs is available... " >&6; }
18433
18434
18435 cat confdefs.h - <<_ACEOF >conftest.c
18436 /* confdefs.h. */
18437 _ACEOF
18438 cat confdefs.h >>conftest.$ac_ext
18439 cat >>conftest.$ac_ext <<_ACEOF
18440 /* end confdefs.h. */
18441
18442
18443 #include <linux/bio.h>
18444
18445 int
18446 main (void)
18447 {
18448
18449 struct bio *bio __attribute__ ((unused)) = NULL;
18450
18451 bio_set_op_attrs(bio, 0, 0);
18452
18453 ;
18454 return 0;
18455 }
18456
18457 _ACEOF
18458
18459
18460
18461 cat - <<_ACEOF >conftest.h
18462
18463 _ACEOF
18464
18465
18466 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
18467 echo "obj-m := conftest.o" >build/Makefile
18468 modpost_flag=''
18469 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
18470 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
18471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18472 (eval $ac_try) 2>&5
18473 ac_status=$?
18474 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18475 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
18476 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18477 (eval $ac_try) 2>&5
18478 ac_status=$?
18479 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18480 (exit $ac_status); }; }; then
18481
18482 { $as_echo "$as_me:$LINENO: result: yes" >&5
18483 $as_echo "yes" >&6; }
18484
18485 cat >>confdefs.h <<\_ACEOF
18486 #define HAVE_BIO_SET_OP_ATTRS 1
18487 _ACEOF
18488
18489
18490 else
18491 $as_echo "$as_me: failed program was:" >&5
18492 sed 's/^/| /' conftest.$ac_ext >&5
18493
18494 { $as_echo "$as_me:$LINENO: result: no" >&5
18495 $as_echo "no" >&6; }
18496
18497
18498
18499 fi
18500
18501 rm -Rf build
18502
18503
18504
18505
18506 { $as_echo "$as_me:$LINENO: checking whether generic_readlink is global" >&5
18507 $as_echo_n "checking whether generic_readlink is global... " >&6; }
18508
18509
18510 cat confdefs.h - <<_ACEOF >conftest.c
18511 /* confdefs.h. */
18512 _ACEOF
18513 cat confdefs.h >>conftest.$ac_ext
18514 cat >>conftest.$ac_ext <<_ACEOF
18515 /* end confdefs.h. */
18516
18517
18518 #include <linux/fs.h>
18519
18520 int
18521 main (void)
18522 {
18523
18524 int i __attribute__ ((unused));
18525
18526 i = generic_readlink(NULL, NULL, 0);
18527
18528 ;
18529 return 0;
18530 }
18531
18532 _ACEOF
18533
18534
18535
18536 cat - <<_ACEOF >conftest.h
18537
18538 _ACEOF
18539
18540
18541 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
18542 echo "obj-m := conftest.o" >build/Makefile
18543 modpost_flag=''
18544 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
18545 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
18546 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18547 (eval $ac_try) 2>&5
18548 ac_status=$?
18549 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18550 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
18551 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18552 (eval $ac_try) 2>&5
18553 ac_status=$?
18554 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18555 (exit $ac_status); }; }; then
18556
18557 { $as_echo "$as_me:$LINENO: result: yes" >&5
18558 $as_echo "yes" >&6; }
18559
18560 cat >>confdefs.h <<\_ACEOF
18561 #define HAVE_GENERIC_READLINK 1
18562 _ACEOF
18563
18564
18565 else
18566 $as_echo "$as_me: failed program was:" >&5
18567 sed 's/^/| /' conftest.$ac_ext >&5
18568
18569 { $as_echo "$as_me:$LINENO: result: no" >&5
18570 $as_echo "no" >&6; }
18571
18572
18573
18574 fi
18575
18576 rm -Rf build
18577
18578
18579
18580
18581 { $as_echo "$as_me:$LINENO: checking whether ql->discard_granularity is available" >&5
18582 $as_echo_n "checking whether ql->discard_granularity is available... " >&6; }
18583
18584
18585 cat confdefs.h - <<_ACEOF >conftest.c
18586 /* confdefs.h. */
18587 _ACEOF
18588 cat confdefs.h >>conftest.$ac_ext
18589 cat >>conftest.$ac_ext <<_ACEOF
18590 /* end confdefs.h. */
18591
18592
18593 #include <linux/blkdev.h>
18594
18595 int
18596 main (void)
18597 {
18598
18599 struct queue_limits ql __attribute__ ((unused));
18600
18601 ql.discard_granularity = 0;
18602
18603 ;
18604 return 0;
18605 }
18606
18607 _ACEOF
18608
18609
18610
18611 cat - <<_ACEOF >conftest.h
18612
18613 _ACEOF
18614
18615
18616 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
18617 echo "obj-m := conftest.o" >build/Makefile
18618 modpost_flag=''
18619 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
18620 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
18621 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18622 (eval $ac_try) 2>&5
18623 ac_status=$?
18624 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18625 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
18626 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18627 (eval $ac_try) 2>&5
18628 ac_status=$?
18629 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18630 (exit $ac_status); }; }; then
18631
18632 { $as_echo "$as_me:$LINENO: result: yes" >&5
18633 $as_echo "yes" >&6; }
18634
18635 cat >>confdefs.h <<\_ACEOF
18636 #define HAVE_DISCARD_GRANULARITY 1
18637 _ACEOF
18638
18639
18640 else
18641 $as_echo "$as_me: failed program was:" >&5
18642 sed 's/^/| /' conftest.$ac_ext >&5
18643
18644 { $as_echo "$as_me:$LINENO: result: no" >&5
18645 $as_echo "no" >&6; }
18646
18647
18648
18649 fi
18650
18651 rm -Rf build
18652
18653
18654
18655
18656 { $as_echo "$as_me:$LINENO: checking whether super_block uses const struct xattr_handler" >&5
18657 $as_echo_n "checking whether super_block uses const struct xattr_handler... " >&6; }
18658
18659
18660 cat confdefs.h - <<_ACEOF >conftest.c
18661 /* confdefs.h. */
18662 _ACEOF
18663 cat confdefs.h >>conftest.$ac_ext
18664 cat >>conftest.$ac_ext <<_ACEOF
18665 /* end confdefs.h. */
18666
18667
18668 #include <linux/fs.h>
18669 #include <linux/xattr.h>
18670
18671 const struct xattr_handler xattr_test_handler = {
18672 .prefix = "test",
18673 .get = NULL,
18674 .set = NULL,
18675 };
18676
18677 const struct xattr_handler *xattr_handlers[] = {
18678 &xattr_test_handler,
18679 };
18680
18681 const struct super_block sb __attribute__ ((unused)) = {
18682 .s_xattr = xattr_handlers,
18683 };
18684
18685 int
18686 main (void)
18687 {
18688
18689
18690 ;
18691 return 0;
18692 }
18693
18694 _ACEOF
18695
18696
18697
18698 cat - <<_ACEOF >conftest.h
18699
18700 _ACEOF
18701
18702
18703 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
18704 echo "obj-m := conftest.o" >build/Makefile
18705 modpost_flag=''
18706 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
18707 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
18708 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18709 (eval $ac_try) 2>&5
18710 ac_status=$?
18711 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18712 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
18713 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18714 (eval $ac_try) 2>&5
18715 ac_status=$?
18716 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18717 (exit $ac_status); }; }; then
18718
18719 { $as_echo "$as_me:$LINENO: result: yes" >&5
18720 $as_echo "yes" >&6; }
18721
18722 cat >>confdefs.h <<\_ACEOF
18723 #define HAVE_CONST_XATTR_HANDLER 1
18724 _ACEOF
18725
18726
18727 else
18728 $as_echo "$as_me: failed program was:" >&5
18729 sed 's/^/| /' conftest.$ac_ext >&5
18730
18731 { $as_echo "$as_me:$LINENO: result: no" >&5
18732 $as_echo "no" >&6; }
18733
18734
18735
18736 fi
18737
18738 rm -Rf build
18739
18740
18741
18742
18743 { $as_echo "$as_me:$LINENO: checking whether xattr_handler has name" >&5
18744 $as_echo_n "checking whether xattr_handler has name... " >&6; }
18745
18746
18747 cat confdefs.h - <<_ACEOF >conftest.c
18748 /* confdefs.h. */
18749 _ACEOF
18750 cat confdefs.h >>conftest.$ac_ext
18751 cat >>conftest.$ac_ext <<_ACEOF
18752 /* end confdefs.h. */
18753
18754
18755 #include <linux/xattr.h>
18756
18757 static const struct xattr_handler
18758 xops __attribute__ ((unused)) = {
18759 .name = XATTR_NAME_POSIX_ACL_ACCESS,
18760 };
18761
18762 int
18763 main (void)
18764 {
18765
18766
18767 ;
18768 return 0;
18769 }
18770
18771 _ACEOF
18772
18773
18774
18775 cat - <<_ACEOF >conftest.h
18776
18777 _ACEOF
18778
18779
18780 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
18781 echo "obj-m := conftest.o" >build/Makefile
18782 modpost_flag=''
18783 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
18784 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
18785 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18786 (eval $ac_try) 2>&5
18787 ac_status=$?
18788 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18789 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
18790 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18791 (eval $ac_try) 2>&5
18792 ac_status=$?
18793 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18794 (exit $ac_status); }; }; then
18795
18796 { $as_echo "$as_me:$LINENO: result: yes" >&5
18797 $as_echo "yes" >&6; }
18798
18799 cat >>confdefs.h <<\_ACEOF
18800 #define HAVE_XATTR_HANDLER_NAME 1
18801 _ACEOF
18802
18803
18804 else
18805 $as_echo "$as_me: failed program was:" >&5
18806 sed 's/^/| /' conftest.$ac_ext >&5
18807
18808 { $as_echo "$as_me:$LINENO: result: no" >&5
18809 $as_echo "no" >&6; }
18810
18811
18812
18813 fi
18814
18815 rm -Rf build
18816
18817
18818
18819
18820 { $as_echo "$as_me:$LINENO: checking whether xattr_handler->get() wants both dentry and inode" >&5
18821 $as_echo_n "checking whether xattr_handler->get() wants both dentry and inode... " >&6; }
18822
18823
18824 cat confdefs.h - <<_ACEOF >conftest.c
18825 /* confdefs.h. */
18826 _ACEOF
18827 cat confdefs.h >>conftest.$ac_ext
18828 cat >>conftest.$ac_ext <<_ACEOF
18829 /* end confdefs.h. */
18830
18831
18832 #include <linux/xattr.h>
18833
18834 int get(const struct xattr_handler *handler,
18835 struct dentry *dentry, struct inode *inode,
18836 const char *name, void *buffer, size_t size) { return 0; }
18837 static const struct xattr_handler
18838 xops __attribute__ ((unused)) = {
18839 .get = get,
18840 };
18841
18842 int
18843 main (void)
18844 {
18845
18846
18847 ;
18848 return 0;
18849 }
18850
18851 _ACEOF
18852
18853
18854
18855 cat - <<_ACEOF >conftest.h
18856
18857 _ACEOF
18858
18859
18860 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
18861 echo "obj-m := conftest.o" >build/Makefile
18862 modpost_flag=''
18863 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
18864 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
18865 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18866 (eval $ac_try) 2>&5
18867 ac_status=$?
18868 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18869 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
18870 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18871 (eval $ac_try) 2>&5
18872 ac_status=$?
18873 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18874 (exit $ac_status); }; }; then
18875
18876 { $as_echo "$as_me:$LINENO: result: yes" >&5
18877 $as_echo "yes" >&6; }
18878
18879 cat >>confdefs.h <<\_ACEOF
18880 #define HAVE_XATTR_GET_DENTRY_INODE 1
18881 _ACEOF
18882
18883
18884 else
18885 $as_echo "$as_me: failed program was:" >&5
18886 sed 's/^/| /' conftest.$ac_ext >&5
18887
18888 { $as_echo "$as_me:$LINENO: result: no" >&5
18889 $as_echo "no" >&6; }
18890 { $as_echo "$as_me:$LINENO: checking whether xattr_handler->get() wants xattr_handler" >&5
18891 $as_echo_n "checking whether xattr_handler->get() wants xattr_handler... " >&6; }
18892
18893
18894 cat confdefs.h - <<_ACEOF >conftest.c
18895 /* confdefs.h. */
18896 _ACEOF
18897 cat confdefs.h >>conftest.$ac_ext
18898 cat >>conftest.$ac_ext <<_ACEOF
18899 /* end confdefs.h. */
18900
18901
18902 #include <linux/xattr.h>
18903
18904 int get(const struct xattr_handler *handler,
18905 struct dentry *dentry, const char *name,
18906 void *buffer, size_t size) { return 0; }
18907 static const struct xattr_handler
18908 xops __attribute__ ((unused)) = {
18909 .get = get,
18910 };
18911
18912 int
18913 main (void)
18914 {
18915
18916
18917 ;
18918 return 0;
18919 }
18920
18921 _ACEOF
18922
18923
18924
18925 cat - <<_ACEOF >conftest.h
18926
18927 _ACEOF
18928
18929
18930 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
18931 echo "obj-m := conftest.o" >build/Makefile
18932 modpost_flag=''
18933 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
18934 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
18935 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18936 (eval $ac_try) 2>&5
18937 ac_status=$?
18938 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18939 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
18940 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18941 (eval $ac_try) 2>&5
18942 ac_status=$?
18943 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18944 (exit $ac_status); }; }; then
18945
18946 { $as_echo "$as_me:$LINENO: result: yes" >&5
18947 $as_echo "yes" >&6; }
18948
18949 cat >>confdefs.h <<\_ACEOF
18950 #define HAVE_XATTR_GET_HANDLER 1
18951 _ACEOF
18952
18953
18954 else
18955 $as_echo "$as_me: failed program was:" >&5
18956 sed 's/^/| /' conftest.$ac_ext >&5
18957
18958 { $as_echo "$as_me:$LINENO: result: no" >&5
18959 $as_echo "no" >&6; }
18960 { $as_echo "$as_me:$LINENO: checking whether xattr_handler->get() wants dentry" >&5
18961 $as_echo_n "checking whether xattr_handler->get() wants dentry... " >&6; }
18962
18963
18964 cat confdefs.h - <<_ACEOF >conftest.c
18965 /* confdefs.h. */
18966 _ACEOF
18967 cat confdefs.h >>conftest.$ac_ext
18968 cat >>conftest.$ac_ext <<_ACEOF
18969 /* end confdefs.h. */
18970
18971
18972 #include <linux/xattr.h>
18973
18974 int get(struct dentry *dentry, const char *name,
18975 void *buffer, size_t size, int handler_flags)
18976 { return 0; }
18977 static const struct xattr_handler
18978 xops __attribute__ ((unused)) = {
18979 .get = get,
18980 };
18981
18982 int
18983 main (void)
18984 {
18985
18986
18987 ;
18988 return 0;
18989 }
18990
18991 _ACEOF
18992
18993
18994
18995 cat - <<_ACEOF >conftest.h
18996
18997 _ACEOF
18998
18999
19000 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
19001 echo "obj-m := conftest.o" >build/Makefile
19002 modpost_flag=''
19003 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
19004 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
19005 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19006 (eval $ac_try) 2>&5
19007 ac_status=$?
19008 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19009 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
19010 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19011 (eval $ac_try) 2>&5
19012 ac_status=$?
19013 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19014 (exit $ac_status); }; }; then
19015
19016 { $as_echo "$as_me:$LINENO: result: yes" >&5
19017 $as_echo "yes" >&6; }
19018
19019 cat >>confdefs.h <<\_ACEOF
19020 #define HAVE_XATTR_GET_DENTRY 1
19021 _ACEOF
19022
19023
19024 else
19025 $as_echo "$as_me: failed program was:" >&5
19026 sed 's/^/| /' conftest.$ac_ext >&5
19027
19028 { $as_echo "$as_me:$LINENO: result: no" >&5
19029 $as_echo "no" >&6; }
19030 { $as_echo "$as_me:$LINENO: checking whether xattr_handler->get() wants inode" >&5
19031 $as_echo_n "checking whether xattr_handler->get() wants inode... " >&6; }
19032
19033
19034 cat confdefs.h - <<_ACEOF >conftest.c
19035 /* confdefs.h. */
19036 _ACEOF
19037 cat confdefs.h >>conftest.$ac_ext
19038 cat >>conftest.$ac_ext <<_ACEOF
19039 /* end confdefs.h. */
19040
19041
19042 #include <linux/xattr.h>
19043
19044 int get(struct inode *ip, const char *name,
19045 void *buffer, size_t size) { return 0; }
19046 static const struct xattr_handler
19047 xops __attribute__ ((unused)) = {
19048 .get = get,
19049 };
19050
19051 int
19052 main (void)
19053 {
19054
19055
19056 ;
19057 return 0;
19058 }
19059
19060 _ACEOF
19061
19062
19063
19064 cat - <<_ACEOF >conftest.h
19065
19066 _ACEOF
19067
19068
19069 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
19070 echo "obj-m := conftest.o" >build/Makefile
19071 modpost_flag=''
19072 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
19073 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
19074 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19075 (eval $ac_try) 2>&5
19076 ac_status=$?
19077 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19078 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
19079 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19080 (eval $ac_try) 2>&5
19081 ac_status=$?
19082 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19083 (exit $ac_status); }; }; then
19084
19085 { $as_echo "$as_me:$LINENO: result: yes" >&5
19086 $as_echo "yes" >&6; }
19087
19088 cat >>confdefs.h <<\_ACEOF
19089 #define HAVE_XATTR_GET_INODE 1
19090 _ACEOF
19091
19092
19093 else
19094 $as_echo "$as_me: failed program was:" >&5
19095 sed 's/^/| /' conftest.$ac_ext >&5
19096
19097 { { $as_echo "$as_me:$LINENO: error: no; please file a bug report" >&5
19098 $as_echo "$as_me: error: no; please file a bug report" >&2;}
19099 { (exit 1); exit 1; }; }
19100
19101
19102
19103 fi
19104
19105 rm -Rf build
19106
19107
19108
19109
19110
19111 fi
19112
19113 rm -Rf build
19114
19115
19116
19117
19118
19119 fi
19120
19121 rm -Rf build
19122
19123
19124
19125
19126
19127 fi
19128
19129 rm -Rf build
19130
19131
19132
19133
19134 { $as_echo "$as_me:$LINENO: checking whether xattr_handler->set() wants both dentry and inode" >&5
19135 $as_echo_n "checking whether xattr_handler->set() wants both dentry and inode... " >&6; }
19136
19137
19138 cat confdefs.h - <<_ACEOF >conftest.c
19139 /* confdefs.h. */
19140 _ACEOF
19141 cat confdefs.h >>conftest.$ac_ext
19142 cat >>conftest.$ac_ext <<_ACEOF
19143 /* end confdefs.h. */
19144
19145
19146 #include <linux/xattr.h>
19147
19148 int set(const struct xattr_handler *handler,
19149 struct dentry *dentry, struct inode *inode,
19150 const char *name, const void *buffer,
19151 size_t size, int flags)
19152 { return 0; }
19153 static const struct xattr_handler
19154 xops __attribute__ ((unused)) = {
19155 .set = set,
19156 };
19157
19158 int
19159 main (void)
19160 {
19161
19162
19163 ;
19164 return 0;
19165 }
19166
19167 _ACEOF
19168
19169
19170
19171 cat - <<_ACEOF >conftest.h
19172
19173 _ACEOF
19174
19175
19176 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
19177 echo "obj-m := conftest.o" >build/Makefile
19178 modpost_flag=''
19179 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
19180 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
19181 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19182 (eval $ac_try) 2>&5
19183 ac_status=$?
19184 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19185 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
19186 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19187 (eval $ac_try) 2>&5
19188 ac_status=$?
19189 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19190 (exit $ac_status); }; }; then
19191
19192 { $as_echo "$as_me:$LINENO: result: yes" >&5
19193 $as_echo "yes" >&6; }
19194
19195 cat >>confdefs.h <<\_ACEOF
19196 #define HAVE_XATTR_SET_DENTRY_INODE 1
19197 _ACEOF
19198
19199
19200 else
19201 $as_echo "$as_me: failed program was:" >&5
19202 sed 's/^/| /' conftest.$ac_ext >&5
19203
19204 { $as_echo "$as_me:$LINENO: result: no" >&5
19205 $as_echo "no" >&6; }
19206 { $as_echo "$as_me:$LINENO: checking whether xattr_handler->set() wants xattr_handler" >&5
19207 $as_echo_n "checking whether xattr_handler->set() wants xattr_handler... " >&6; }
19208
19209
19210 cat confdefs.h - <<_ACEOF >conftest.c
19211 /* confdefs.h. */
19212 _ACEOF
19213 cat confdefs.h >>conftest.$ac_ext
19214 cat >>conftest.$ac_ext <<_ACEOF
19215 /* end confdefs.h. */
19216
19217
19218 #include <linux/xattr.h>
19219
19220 int set(const struct xattr_handler *handler,
19221 struct dentry *dentry, const char *name,
19222 const void *buffer, size_t size, int flags)
19223 { return 0; }
19224 static const struct xattr_handler
19225 xops __attribute__ ((unused)) = {
19226 .set = set,
19227 };
19228
19229 int
19230 main (void)
19231 {
19232
19233
19234 ;
19235 return 0;
19236 }
19237
19238 _ACEOF
19239
19240
19241
19242 cat - <<_ACEOF >conftest.h
19243
19244 _ACEOF
19245
19246
19247 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
19248 echo "obj-m := conftest.o" >build/Makefile
19249 modpost_flag=''
19250 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
19251 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
19252 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19253 (eval $ac_try) 2>&5
19254 ac_status=$?
19255 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19256 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
19257 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19258 (eval $ac_try) 2>&5
19259 ac_status=$?
19260 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19261 (exit $ac_status); }; }; then
19262
19263 { $as_echo "$as_me:$LINENO: result: yes" >&5
19264 $as_echo "yes" >&6; }
19265
19266 cat >>confdefs.h <<\_ACEOF
19267 #define HAVE_XATTR_SET_HANDLER 1
19268 _ACEOF
19269
19270
19271 else
19272 $as_echo "$as_me: failed program was:" >&5
19273 sed 's/^/| /' conftest.$ac_ext >&5
19274
19275 { $as_echo "$as_me:$LINENO: result: no" >&5
19276 $as_echo "no" >&6; }
19277 { $as_echo "$as_me:$LINENO: checking whether xattr_handler->set() wants dentry" >&5
19278 $as_echo_n "checking whether xattr_handler->set() wants dentry... " >&6; }
19279
19280
19281 cat confdefs.h - <<_ACEOF >conftest.c
19282 /* confdefs.h. */
19283 _ACEOF
19284 cat confdefs.h >>conftest.$ac_ext
19285 cat >>conftest.$ac_ext <<_ACEOF
19286 /* end confdefs.h. */
19287
19288
19289 #include <linux/xattr.h>
19290
19291 int set(struct dentry *dentry, const char *name,
19292 const void *buffer, size_t size, int flags,
19293 int handler_flags) { return 0; }
19294 static const struct xattr_handler
19295 xops __attribute__ ((unused)) = {
19296 .set = set,
19297 };
19298
19299 int
19300 main (void)
19301 {
19302
19303
19304 ;
19305 return 0;
19306 }
19307
19308 _ACEOF
19309
19310
19311
19312 cat - <<_ACEOF >conftest.h
19313
19314 _ACEOF
19315
19316
19317 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
19318 echo "obj-m := conftest.o" >build/Makefile
19319 modpost_flag=''
19320 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
19321 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
19322 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19323 (eval $ac_try) 2>&5
19324 ac_status=$?
19325 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19326 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
19327 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19328 (eval $ac_try) 2>&5
19329 ac_status=$?
19330 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19331 (exit $ac_status); }; }; then
19332
19333 { $as_echo "$as_me:$LINENO: result: yes" >&5
19334 $as_echo "yes" >&6; }
19335
19336 cat >>confdefs.h <<\_ACEOF
19337 #define HAVE_XATTR_SET_DENTRY 1
19338 _ACEOF
19339
19340
19341 else
19342 $as_echo "$as_me: failed program was:" >&5
19343 sed 's/^/| /' conftest.$ac_ext >&5
19344
19345 { $as_echo "$as_me:$LINENO: result: no" >&5
19346 $as_echo "no" >&6; }
19347 { $as_echo "$as_me:$LINENO: checking whether xattr_handler->set() wants inode" >&5
19348 $as_echo_n "checking whether xattr_handler->set() wants inode... " >&6; }
19349
19350
19351 cat confdefs.h - <<_ACEOF >conftest.c
19352 /* confdefs.h. */
19353 _ACEOF
19354 cat confdefs.h >>conftest.$ac_ext
19355 cat >>conftest.$ac_ext <<_ACEOF
19356 /* end confdefs.h. */
19357
19358
19359 #include <linux/xattr.h>
19360
19361 int set(struct inode *ip, const char *name,
19362 const void *buffer, size_t size, int flags)
19363 { return 0; }
19364 static const struct xattr_handler
19365 xops __attribute__ ((unused)) = {
19366 .set = set,
19367 };
19368
19369 int
19370 main (void)
19371 {
19372
19373
19374 ;
19375 return 0;
19376 }
19377
19378 _ACEOF
19379
19380
19381
19382 cat - <<_ACEOF >conftest.h
19383
19384 _ACEOF
19385
19386
19387 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
19388 echo "obj-m := conftest.o" >build/Makefile
19389 modpost_flag=''
19390 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
19391 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
19392 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19393 (eval $ac_try) 2>&5
19394 ac_status=$?
19395 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19396 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
19397 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19398 (eval $ac_try) 2>&5
19399 ac_status=$?
19400 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19401 (exit $ac_status); }; }; then
19402
19403 { $as_echo "$as_me:$LINENO: result: yes" >&5
19404 $as_echo "yes" >&6; }
19405
19406 cat >>confdefs.h <<\_ACEOF
19407 #define HAVE_XATTR_SET_INODE 1
19408 _ACEOF
19409
19410
19411 else
19412 $as_echo "$as_me: failed program was:" >&5
19413 sed 's/^/| /' conftest.$ac_ext >&5
19414
19415 { { $as_echo "$as_me:$LINENO: error: no; please file a bug report" >&5
19416 $as_echo "$as_me: error: no; please file a bug report" >&2;}
19417 { (exit 1); exit 1; }; }
19418
19419
19420
19421 fi
19422
19423 rm -Rf build
19424
19425
19426
19427
19428
19429 fi
19430
19431 rm -Rf build
19432
19433
19434
19435
19436
19437 fi
19438
19439 rm -Rf build
19440
19441
19442
19443
19444
19445 fi
19446
19447 rm -Rf build
19448
19449
19450
19451
19452 { $as_echo "$as_me:$LINENO: checking whether xattr_handler->list() wants simple" >&5
19453 $as_echo_n "checking whether xattr_handler->list() wants simple... " >&6; }
19454
19455
19456 cat confdefs.h - <<_ACEOF >conftest.c
19457 /* confdefs.h. */
19458 _ACEOF
19459 cat confdefs.h >>conftest.$ac_ext
19460 cat >>conftest.$ac_ext <<_ACEOF
19461 /* end confdefs.h. */
19462
19463
19464 #include <linux/xattr.h>
19465
19466 bool list(struct dentry *dentry) { return 0; }
19467 static const struct xattr_handler
19468 xops __attribute__ ((unused)) = {
19469 .list = list,
19470 };
19471
19472 int
19473 main (void)
19474 {
19475
19476
19477 ;
19478 return 0;
19479 }
19480
19481 _ACEOF
19482
19483
19484
19485 cat - <<_ACEOF >conftest.h
19486
19487 _ACEOF
19488
19489
19490 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
19491 echo "obj-m := conftest.o" >build/Makefile
19492 modpost_flag=''
19493 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
19494 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
19495 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19496 (eval $ac_try) 2>&5
19497 ac_status=$?
19498 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19499 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
19500 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19501 (eval $ac_try) 2>&5
19502 ac_status=$?
19503 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19504 (exit $ac_status); }; }; then
19505
19506 { $as_echo "$as_me:$LINENO: result: yes" >&5
19507 $as_echo "yes" >&6; }
19508
19509 cat >>confdefs.h <<\_ACEOF
19510 #define HAVE_XATTR_LIST_SIMPLE 1
19511 _ACEOF
19512
19513
19514 else
19515 $as_echo "$as_me: failed program was:" >&5
19516 sed 's/^/| /' conftest.$ac_ext >&5
19517
19518 { $as_echo "$as_me:$LINENO: result: no" >&5
19519 $as_echo "no" >&6; }
19520 { $as_echo "$as_me:$LINENO: checking whether xattr_handler->list() wants xattr_handler" >&5
19521 $as_echo_n "checking whether xattr_handler->list() wants xattr_handler... " >&6; }
19522
19523
19524 cat confdefs.h - <<_ACEOF >conftest.c
19525 /* confdefs.h. */
19526 _ACEOF
19527 cat confdefs.h >>conftest.$ac_ext
19528 cat >>conftest.$ac_ext <<_ACEOF
19529 /* end confdefs.h. */
19530
19531
19532 #include <linux/xattr.h>
19533
19534 size_t list(const struct xattr_handler *handler,
19535 struct dentry *dentry, char *list, size_t list_size,
19536 const char *name, size_t name_len) { return 0; }
19537 static const struct xattr_handler
19538 xops __attribute__ ((unused)) = {
19539 .list = list,
19540 };
19541
19542 int
19543 main (void)
19544 {
19545
19546
19547 ;
19548 return 0;
19549 }
19550
19551 _ACEOF
19552
19553
19554
19555 cat - <<_ACEOF >conftest.h
19556
19557 _ACEOF
19558
19559
19560 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
19561 echo "obj-m := conftest.o" >build/Makefile
19562 modpost_flag=''
19563 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
19564 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
19565 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19566 (eval $ac_try) 2>&5
19567 ac_status=$?
19568 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19569 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
19570 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19571 (eval $ac_try) 2>&5
19572 ac_status=$?
19573 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19574 (exit $ac_status); }; }; then
19575
19576 { $as_echo "$as_me:$LINENO: result: yes" >&5
19577 $as_echo "yes" >&6; }
19578
19579 cat >>confdefs.h <<\_ACEOF
19580 #define HAVE_XATTR_LIST_HANDLER 1
19581 _ACEOF
19582
19583
19584 else
19585 $as_echo "$as_me: failed program was:" >&5
19586 sed 's/^/| /' conftest.$ac_ext >&5
19587
19588 { $as_echo "$as_me:$LINENO: result: no" >&5
19589 $as_echo "no" >&6; }
19590 { $as_echo "$as_me:$LINENO: checking whether xattr_handler->list() wants dentry" >&5
19591 $as_echo_n "checking whether xattr_handler->list() wants dentry... " >&6; }
19592
19593
19594 cat confdefs.h - <<_ACEOF >conftest.c
19595 /* confdefs.h. */
19596 _ACEOF
19597 cat confdefs.h >>conftest.$ac_ext
19598 cat >>conftest.$ac_ext <<_ACEOF
19599 /* end confdefs.h. */
19600
19601
19602 #include <linux/xattr.h>
19603
19604 size_t list(struct dentry *dentry,
19605 char *list, size_t list_size,
19606 const char *name, size_t name_len,
19607 int handler_flags) { return 0; }
19608 static const struct xattr_handler
19609 xops __attribute__ ((unused)) = {
19610 .list = list,
19611 };
19612
19613 int
19614 main (void)
19615 {
19616
19617
19618 ;
19619 return 0;
19620 }
19621
19622 _ACEOF
19623
19624
19625
19626 cat - <<_ACEOF >conftest.h
19627
19628 _ACEOF
19629
19630
19631 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
19632 echo "obj-m := conftest.o" >build/Makefile
19633 modpost_flag=''
19634 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
19635 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
19636 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19637 (eval $ac_try) 2>&5
19638 ac_status=$?
19639 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19640 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
19641 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19642 (eval $ac_try) 2>&5
19643 ac_status=$?
19644 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19645 (exit $ac_status); }; }; then
19646
19647 { $as_echo "$as_me:$LINENO: result: yes" >&5
19648 $as_echo "yes" >&6; }
19649
19650 cat >>confdefs.h <<\_ACEOF
19651 #define HAVE_XATTR_LIST_DENTRY 1
19652 _ACEOF
19653
19654
19655 else
19656 $as_echo "$as_me: failed program was:" >&5
19657 sed 's/^/| /' conftest.$ac_ext >&5
19658
19659 { $as_echo "$as_me:$LINENO: result: no" >&5
19660 $as_echo "no" >&6; }
19661 { $as_echo "$as_me:$LINENO: checking whether xattr_handler->list() wants inode" >&5
19662 $as_echo_n "checking whether xattr_handler->list() wants inode... " >&6; }
19663
19664
19665 cat confdefs.h - <<_ACEOF >conftest.c
19666 /* confdefs.h. */
19667 _ACEOF
19668 cat confdefs.h >>conftest.$ac_ext
19669 cat >>conftest.$ac_ext <<_ACEOF
19670 /* end confdefs.h. */
19671
19672
19673 #include <linux/xattr.h>
19674
19675 size_t list(struct inode *ip, char *lst,
19676 size_t list_size, const char *name,
19677 size_t name_len) { return 0; }
19678 static const struct xattr_handler
19679 xops __attribute__ ((unused)) = {
19680 .list = list,
19681 };
19682
19683 int
19684 main (void)
19685 {
19686
19687
19688 ;
19689 return 0;
19690 }
19691
19692 _ACEOF
19693
19694
19695
19696 cat - <<_ACEOF >conftest.h
19697
19698 _ACEOF
19699
19700
19701 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
19702 echo "obj-m := conftest.o" >build/Makefile
19703 modpost_flag=''
19704 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
19705 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
19706 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19707 (eval $ac_try) 2>&5
19708 ac_status=$?
19709 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19710 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
19711 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19712 (eval $ac_try) 2>&5
19713 ac_status=$?
19714 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19715 (exit $ac_status); }; }; then
19716
19717 { $as_echo "$as_me:$LINENO: result: yes" >&5
19718 $as_echo "yes" >&6; }
19719
19720 cat >>confdefs.h <<\_ACEOF
19721 #define HAVE_XATTR_LIST_INODE 1
19722 _ACEOF
19723
19724
19725 else
19726 $as_echo "$as_me: failed program was:" >&5
19727 sed 's/^/| /' conftest.$ac_ext >&5
19728
19729 { { $as_echo "$as_me:$LINENO: error: no; please file a bug report" >&5
19730 $as_echo "$as_me: error: no; please file a bug report" >&2;}
19731 { (exit 1); exit 1; }; }
19732
19733
19734
19735 fi
19736
19737 rm -Rf build
19738
19739
19740
19741
19742
19743 fi
19744
19745 rm -Rf build
19746
19747
19748
19749
19750
19751 fi
19752
19753 rm -Rf build
19754
19755
19756
19757
19758
19759 fi
19760
19761 rm -Rf build
19762
19763
19764
19765
19766 { $as_echo "$as_me:$LINENO: checking whether inode_owner_or_capable() exists" >&5
19767 $as_echo_n "checking whether inode_owner_or_capable() exists... " >&6; }
19768
19769
19770 cat confdefs.h - <<_ACEOF >conftest.c
19771 /* confdefs.h. */
19772 _ACEOF
19773 cat confdefs.h >>conftest.$ac_ext
19774 cat >>conftest.$ac_ext <<_ACEOF
19775 /* end confdefs.h. */
19776
19777
19778 #include <linux/fs.h>
19779
19780 int
19781 main (void)
19782 {
19783
19784 struct inode *ip = NULL;
19785 (void) inode_owner_or_capable(ip);
19786
19787 ;
19788 return 0;
19789 }
19790
19791 _ACEOF
19792
19793
19794
19795 cat - <<_ACEOF >conftest.h
19796
19797 _ACEOF
19798
19799
19800 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
19801 echo "obj-m := conftest.o" >build/Makefile
19802 modpost_flag=''
19803 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
19804 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
19805 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19806 (eval $ac_try) 2>&5
19807 ac_status=$?
19808 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19809 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
19810 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19811 (eval $ac_try) 2>&5
19812 ac_status=$?
19813 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19814 (exit $ac_status); }; }; then
19815
19816 { $as_echo "$as_me:$LINENO: result: yes" >&5
19817 $as_echo "yes" >&6; }
19818
19819 cat >>confdefs.h <<\_ACEOF
19820 #define HAVE_INODE_OWNER_OR_CAPABLE 1
19821 _ACEOF
19822
19823
19824 else
19825 $as_echo "$as_me: failed program was:" >&5
19826 sed 's/^/| /' conftest.$ac_ext >&5
19827
19828 { $as_echo "$as_me:$LINENO: result: no" >&5
19829 $as_echo "no" >&6; }
19830 { $as_echo "$as_me:$LINENO: checking whether is_owner_or_cap() exists" >&5
19831 $as_echo_n "checking whether is_owner_or_cap() exists... " >&6; }
19832
19833
19834 cat confdefs.h - <<_ACEOF >conftest.c
19835 /* confdefs.h. */
19836 _ACEOF
19837 cat confdefs.h >>conftest.$ac_ext
19838 cat >>conftest.$ac_ext <<_ACEOF
19839 /* end confdefs.h. */
19840
19841
19842 #include <linux/fs.h>
19843 #include <linux/sched.h>
19844
19845 int
19846 main (void)
19847 {
19848
19849 struct inode *ip = NULL;
19850 (void) is_owner_or_cap(ip);
19851
19852 ;
19853 return 0;
19854 }
19855
19856 _ACEOF
19857
19858
19859
19860 cat - <<_ACEOF >conftest.h
19861
19862 _ACEOF
19863
19864
19865 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
19866 echo "obj-m := conftest.o" >build/Makefile
19867 modpost_flag=''
19868 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
19869 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
19870 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19871 (eval $ac_try) 2>&5
19872 ac_status=$?
19873 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19874 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
19875 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19876 (eval $ac_try) 2>&5
19877 ac_status=$?
19878 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19879 (exit $ac_status); }; }; then
19880
19881 { $as_echo "$as_me:$LINENO: result: yes" >&5
19882 $as_echo "yes" >&6; }
19883
19884 cat >>confdefs.h <<\_ACEOF
19885 #define HAVE_IS_OWNER_OR_CAP 1
19886 _ACEOF
19887
19888
19889 else
19890 $as_echo "$as_me: failed program was:" >&5
19891 sed 's/^/| /' conftest.$ac_ext >&5
19892
19893 { { $as_echo "$as_me:$LINENO: error: no - Please file a bug report at
19894 https://github.com/zfsonlinux/zfs/issues/new" >&5
19895 $as_echo "$as_me: error: no - Please file a bug report at
19896 https://github.com/zfsonlinux/zfs/issues/new" >&2;}
19897 { (exit 1); exit 1; }; }
19898
19899
19900
19901 fi
19902
19903 rm -Rf build
19904
19905
19906
19907
19908
19909 fi
19910
19911 rm -Rf build
19912
19913
19914
19915
19916 { $as_echo "$as_me:$LINENO: checking whether posix_acl_from_xattr() needs user_ns" >&5
19917 $as_echo_n "checking whether posix_acl_from_xattr() needs user_ns... " >&6; }
19918
19919
19920 cat confdefs.h - <<_ACEOF >conftest.c
19921 /* confdefs.h. */
19922 _ACEOF
19923 cat confdefs.h >>conftest.$ac_ext
19924 cat >>conftest.$ac_ext <<_ACEOF
19925 /* end confdefs.h. */
19926
19927
19928 #include <linux/cred.h>
19929 #include <linux/fs.h>
19930 #include <linux/posix_acl_xattr.h>
19931
19932 int
19933 main (void)
19934 {
19935
19936 posix_acl_from_xattr(&init_user_ns, NULL, 0);
19937
19938 ;
19939 return 0;
19940 }
19941
19942 _ACEOF
19943
19944
19945
19946 cat - <<_ACEOF >conftest.h
19947
19948 _ACEOF
19949
19950
19951 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
19952 echo "obj-m := conftest.o" >build/Makefile
19953 modpost_flag=''
19954 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
19955 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
19956 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19957 (eval $ac_try) 2>&5
19958 ac_status=$?
19959 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19960 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
19961 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19962 (eval $ac_try) 2>&5
19963 ac_status=$?
19964 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19965 (exit $ac_status); }; }; then
19966
19967 { $as_echo "$as_me:$LINENO: result: yes" >&5
19968 $as_echo "yes" >&6; }
19969
19970 cat >>confdefs.h <<\_ACEOF
19971 #define HAVE_POSIX_ACL_FROM_XATTR_USERNS 1
19972 _ACEOF
19973
19974
19975 else
19976 $as_echo "$as_me: failed program was:" >&5
19977 sed 's/^/| /' conftest.$ac_ext >&5
19978
19979 { $as_echo "$as_me:$LINENO: result: no" >&5
19980 $as_echo "no" >&6; }
19981
19982
19983
19984 fi
19985
19986 rm -Rf build
19987
19988
19989
19990
19991 { $as_echo "$as_me:$LINENO: checking whether posix_acl_release() is available" >&5
19992 $as_echo_n "checking whether posix_acl_release() is available... " >&6; }
19993
19994
19995 cat confdefs.h - <<_ACEOF >conftest.c
19996 /* confdefs.h. */
19997 _ACEOF
19998 cat confdefs.h >>conftest.$ac_ext
19999 cat >>conftest.$ac_ext <<_ACEOF
20000 /* end confdefs.h. */
20001
20002
20003 #include <linux/cred.h>
20004 #include <linux/fs.h>
20005 #include <linux/posix_acl.h>
20006
20007 int
20008 main (void)
20009 {
20010
20011 struct posix_acl* tmp = posix_acl_alloc(1, 0);
20012 posix_acl_release(tmp);
20013
20014 ;
20015 return 0;
20016 }
20017
20018 _ACEOF
20019
20020
20021
20022 cat - <<_ACEOF >conftest.h
20023
20024 _ACEOF
20025
20026
20027 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
20028 echo "obj-m := conftest.o" >build/Makefile
20029 modpost_flag=''
20030 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
20031 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
20032 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20033 (eval $ac_try) 2>&5
20034 ac_status=$?
20035 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20036 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
20037 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20038 (eval $ac_try) 2>&5
20039 ac_status=$?
20040 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20041 (exit $ac_status); }; }; then
20042
20043 { $as_echo "$as_me:$LINENO: result: yes" >&5
20044 $as_echo "yes" >&6; }
20045
20046 cat >>confdefs.h <<\_ACEOF
20047 #define HAVE_POSIX_ACL_RELEASE 1
20048 _ACEOF
20049
20050
20051 { $as_echo "$as_me:$LINENO: checking whether posix_acl_release() is GPL-only" >&5
20052 $as_echo_n "checking whether posix_acl_release() is GPL-only... " >&6; }
20053
20054
20055 cat confdefs.h - <<_ACEOF >conftest.c
20056 /* confdefs.h. */
20057 _ACEOF
20058 cat confdefs.h >>conftest.$ac_ext
20059 cat >>conftest.$ac_ext <<_ACEOF
20060 /* end confdefs.h. */
20061
20062
20063 #include <linux/module.h>
20064 #include <linux/cred.h>
20065 #include <linux/fs.h>
20066 #include <linux/posix_acl.h>
20067
20068 MODULE_LICENSE("$ZFS_META_LICENSE");
20069
20070 int
20071 main (void)
20072 {
20073
20074 struct posix_acl* tmp = posix_acl_alloc(1, 0);
20075 posix_acl_release(tmp);
20076
20077 ;
20078 return 0;
20079 }
20080
20081 _ACEOF
20082
20083
20084
20085 cat - <<_ACEOF >conftest.h
20086
20087 _ACEOF
20088
20089
20090 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
20091 echo "obj-m := conftest.o" >build/Makefile
20092 modpost_flag=''
20093 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
20094 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
20095 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20096 (eval $ac_try) 2>&5
20097 ac_status=$?
20098 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20099 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
20100 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20101 (eval $ac_try) 2>&5
20102 ac_status=$?
20103 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20104 (exit $ac_status); }; }; then
20105
20106 { $as_echo "$as_me:$LINENO: result: no" >&5
20107 $as_echo "no" >&6; }
20108
20109 else
20110 $as_echo "$as_me: failed program was:" >&5
20111 sed 's/^/| /' conftest.$ac_ext >&5
20112
20113 { $as_echo "$as_me:$LINENO: result: yes" >&5
20114 $as_echo "yes" >&6; }
20115
20116 cat >>confdefs.h <<\_ACEOF
20117 #define HAVE_POSIX_ACL_RELEASE_GPL_ONLY 1
20118 _ACEOF
20119
20120
20121
20122
20123 fi
20124
20125 rm -Rf build
20126
20127
20128
20129 else
20130 $as_echo "$as_me: failed program was:" >&5
20131 sed 's/^/| /' conftest.$ac_ext >&5
20132
20133 { $as_echo "$as_me:$LINENO: result: no" >&5
20134 $as_echo "no" >&6; }
20135
20136
20137
20138 fi
20139
20140 rm -Rf build
20141
20142
20143
20144
20145 { $as_echo "$as_me:$LINENO: checking whether set_cached_acl() is usable" >&5
20146 $as_echo_n "checking whether set_cached_acl() is usable... " >&6; }
20147
20148
20149 cat confdefs.h - <<_ACEOF >conftest.c
20150 /* confdefs.h. */
20151 _ACEOF
20152 cat confdefs.h >>conftest.$ac_ext
20153 cat >>conftest.$ac_ext <<_ACEOF
20154 /* end confdefs.h. */
20155
20156
20157 #include <linux/module.h>
20158 #include <linux/cred.h>
20159 #include <linux/fs.h>
20160 #include <linux/posix_acl.h>
20161
20162 MODULE_LICENSE("$ZFS_META_LICENSE");
20163
20164 int
20165 main (void)
20166 {
20167
20168 struct inode *ip = NULL;
20169 struct posix_acl *acl = posix_acl_alloc(1, 0);
20170 set_cached_acl(ip, ACL_TYPE_ACCESS, acl);
20171 forget_cached_acl(ip, ACL_TYPE_ACCESS);
20172
20173 ;
20174 return 0;
20175 }
20176
20177 _ACEOF
20178
20179
20180
20181 cat - <<_ACEOF >conftest.h
20182
20183 _ACEOF
20184
20185
20186 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
20187 echo "obj-m := conftest.o" >build/Makefile
20188 modpost_flag=''
20189 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
20190 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
20191 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20192 (eval $ac_try) 2>&5
20193 ac_status=$?
20194 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20195 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
20196 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20197 (eval $ac_try) 2>&5
20198 ac_status=$?
20199 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20200 (exit $ac_status); }; }; then
20201
20202 { $as_echo "$as_me:$LINENO: result: yes" >&5
20203 $as_echo "yes" >&6; }
20204
20205 cat >>confdefs.h <<\_ACEOF
20206 #define HAVE_SET_CACHED_ACL_USABLE 1
20207 _ACEOF
20208
20209
20210 else
20211 $as_echo "$as_me: failed program was:" >&5
20212 sed 's/^/| /' conftest.$ac_ext >&5
20213
20214 { $as_echo "$as_me:$LINENO: result: no" >&5
20215 $as_echo "no" >&6; }
20216
20217
20218
20219 fi
20220
20221 rm -Rf build
20222
20223
20224
20225
20226 { $as_echo "$as_me:$LINENO: checking whether posix_acl_chmod exists" >&5
20227 $as_echo_n "checking whether posix_acl_chmod exists... " >&6; }
20228
20229
20230 cat confdefs.h - <<_ACEOF >conftest.c
20231 /* confdefs.h. */
20232 _ACEOF
20233 cat confdefs.h >>conftest.$ac_ext
20234 cat >>conftest.$ac_ext <<_ACEOF
20235 /* end confdefs.h. */
20236
20237
20238 #include <linux/fs.h>
20239 #include <linux/posix_acl.h>
20240
20241 int
20242 main (void)
20243 {
20244
20245 posix_acl_chmod(NULL, 0, 0)
20246
20247 ;
20248 return 0;
20249 }
20250
20251 _ACEOF
20252
20253
20254
20255 cat - <<_ACEOF >conftest.h
20256
20257 _ACEOF
20258
20259
20260 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
20261 echo "obj-m := conftest.o" >build/Makefile
20262 modpost_flag=''
20263 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
20264 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
20265 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20266 (eval $ac_try) 2>&5
20267 ac_status=$?
20268 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20269 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
20270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20271 (eval $ac_try) 2>&5
20272 ac_status=$?
20273 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20274 (exit $ac_status); }; }; then
20275
20276 { $as_echo "$as_me:$LINENO: result: yes" >&5
20277 $as_echo "yes" >&6; }
20278
20279 cat >>confdefs.h <<\_ACEOF
20280 #define HAVE_POSIX_ACL_CHMOD 1
20281 _ACEOF
20282
20283
20284 else
20285 $as_echo "$as_me: failed program was:" >&5
20286 sed 's/^/| /' conftest.$ac_ext >&5
20287
20288 { $as_echo "$as_me:$LINENO: result: no" >&5
20289 $as_echo "no" >&6; }
20290
20291
20292
20293 fi
20294
20295 rm -Rf build
20296
20297
20298
20299 { $as_echo "$as_me:$LINENO: checking whether __posix_acl_chmod exists" >&5
20300 $as_echo_n "checking whether __posix_acl_chmod exists... " >&6; }
20301
20302
20303 cat confdefs.h - <<_ACEOF >conftest.c
20304 /* confdefs.h. */
20305 _ACEOF
20306 cat confdefs.h >>conftest.$ac_ext
20307 cat >>conftest.$ac_ext <<_ACEOF
20308 /* end confdefs.h. */
20309
20310
20311 #include <linux/fs.h>
20312 #include <linux/posix_acl.h>
20313
20314 int
20315 main (void)
20316 {
20317
20318 __posix_acl_chmod(NULL, 0, 0)
20319
20320 ;
20321 return 0;
20322 }
20323
20324 _ACEOF
20325
20326
20327
20328 cat - <<_ACEOF >conftest.h
20329
20330 _ACEOF
20331
20332
20333 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
20334 echo "obj-m := conftest.o" >build/Makefile
20335 modpost_flag=''
20336 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
20337 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
20338 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20339 (eval $ac_try) 2>&5
20340 ac_status=$?
20341 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20342 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
20343 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20344 (eval $ac_try) 2>&5
20345 ac_status=$?
20346 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20347 (exit $ac_status); }; }; then
20348
20349 { $as_echo "$as_me:$LINENO: result: yes" >&5
20350 $as_echo "yes" >&6; }
20351
20352 cat >>confdefs.h <<\_ACEOF
20353 #define HAVE___POSIX_ACL_CHMOD 1
20354 _ACEOF
20355
20356
20357 else
20358 $as_echo "$as_me: failed program was:" >&5
20359 sed 's/^/| /' conftest.$ac_ext >&5
20360
20361 { $as_echo "$as_me:$LINENO: result: no" >&5
20362 $as_echo "no" >&6; }
20363
20364
20365
20366 fi
20367
20368 rm -Rf build
20369
20370
20371
20372
20373 { $as_echo "$as_me:$LINENO: checking whether posix_acl_equiv_mode() wants umode_t" >&5
20374 $as_echo_n "checking whether posix_acl_equiv_mode() wants umode_t... " >&6; }
20375
20376
20377 cat confdefs.h - <<_ACEOF >conftest.c
20378 /* confdefs.h. */
20379 _ACEOF
20380 cat confdefs.h >>conftest.$ac_ext
20381 cat >>conftest.$ac_ext <<_ACEOF
20382 /* end confdefs.h. */
20383
20384
20385 #include <linux/fs.h>
20386 #include <linux/posix_acl.h>
20387
20388 int
20389 main (void)
20390 {
20391
20392 umode_t tmp;
20393 posix_acl_equiv_mode(NULL,&tmp);
20394
20395 ;
20396 return 0;
20397 }
20398
20399 _ACEOF
20400
20401
20402
20403 cat - <<_ACEOF >conftest.h
20404
20405 _ACEOF
20406
20407
20408 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
20409 echo "obj-m := conftest.o" >build/Makefile
20410 modpost_flag=''
20411 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
20412 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
20413 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20414 (eval $ac_try) 2>&5
20415 ac_status=$?
20416 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20417 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
20418 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20419 (eval $ac_try) 2>&5
20420 ac_status=$?
20421 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20422 (exit $ac_status); }; }; then
20423
20424 { $as_echo "$as_me:$LINENO: result: yes" >&5
20425 $as_echo "yes" >&6; }
20426
20427 cat >>confdefs.h <<\_ACEOF
20428 #define HAVE_POSIX_ACL_EQUIV_MODE_UMODE_T 1
20429 _ACEOF
20430
20431
20432 else
20433 $as_echo "$as_me: failed program was:" >&5
20434 sed 's/^/| /' conftest.$ac_ext >&5
20435
20436 { $as_echo "$as_me:$LINENO: result: no" >&5
20437 $as_echo "no" >&6; }
20438
20439
20440
20441 fi
20442
20443 rm -Rf build
20444
20445
20446
20447
20448 { $as_echo "$as_me:$LINENO: checking whether posix_acl_valid() wants user namespace" >&5
20449 $as_echo_n "checking whether posix_acl_valid() wants user namespace... " >&6; }
20450
20451
20452 cat confdefs.h - <<_ACEOF >conftest.c
20453 /* confdefs.h. */
20454 _ACEOF
20455 cat confdefs.h >>conftest.$ac_ext
20456 cat >>conftest.$ac_ext <<_ACEOF
20457 /* end confdefs.h. */
20458
20459
20460 #include <linux/fs.h>
20461 #include <linux/posix_acl.h>
20462
20463 int
20464 main (void)
20465 {
20466
20467 struct user_namespace *user_ns = NULL;
20468 const struct posix_acl *acl = NULL;
20469 int error;
20470
20471 error = posix_acl_valid(user_ns, acl);
20472
20473 ;
20474 return 0;
20475 }
20476
20477 _ACEOF
20478
20479
20480
20481 cat - <<_ACEOF >conftest.h
20482
20483 _ACEOF
20484
20485
20486 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
20487 echo "obj-m := conftest.o" >build/Makefile
20488 modpost_flag=''
20489 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
20490 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
20491 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20492 (eval $ac_try) 2>&5
20493 ac_status=$?
20494 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20495 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
20496 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20497 (eval $ac_try) 2>&5
20498 ac_status=$?
20499 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20500 (exit $ac_status); }; }; then
20501
20502 { $as_echo "$as_me:$LINENO: result: yes" >&5
20503 $as_echo "yes" >&6; }
20504
20505 cat >>confdefs.h <<\_ACEOF
20506 #define HAVE_POSIX_ACL_VALID_WITH_NS 1
20507 _ACEOF
20508
20509
20510 else
20511 $as_echo "$as_me: failed program was:" >&5
20512 sed 's/^/| /' conftest.$ac_ext >&5
20513
20514 { $as_echo "$as_me:$LINENO: result: no" >&5
20515 $as_echo "no" >&6; }
20516
20517
20518
20519 fi
20520
20521 rm -Rf build
20522
20523
20524
20525
20526 { $as_echo "$as_me:$LINENO: checking whether iops->permission() exists" >&5
20527 $as_echo_n "checking whether iops->permission() exists... " >&6; }
20528
20529
20530 cat confdefs.h - <<_ACEOF >conftest.c
20531 /* confdefs.h. */
20532 _ACEOF
20533 cat confdefs.h >>conftest.$ac_ext
20534 cat >>conftest.$ac_ext <<_ACEOF
20535 /* end confdefs.h. */
20536
20537
20538 #include <linux/fs.h>
20539
20540 int permission_fn(struct inode *inode, int mask) { return 0; }
20541
20542 static const struct inode_operations
20543 iops __attribute__ ((unused)) = {
20544 .permission = permission_fn,
20545 };
20546
20547 int
20548 main (void)
20549 {
20550
20551
20552 ;
20553 return 0;
20554 }
20555
20556 _ACEOF
20557
20558
20559
20560 cat - <<_ACEOF >conftest.h
20561
20562 _ACEOF
20563
20564
20565 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
20566 echo "obj-m := conftest.o" >build/Makefile
20567 modpost_flag=''
20568 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
20569 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
20570 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20571 (eval $ac_try) 2>&5
20572 ac_status=$?
20573 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20574 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
20575 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20576 (eval $ac_try) 2>&5
20577 ac_status=$?
20578 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20579 (exit $ac_status); }; }; then
20580
20581 { $as_echo "$as_me:$LINENO: result: yes" >&5
20582 $as_echo "yes" >&6; }
20583
20584 cat >>confdefs.h <<\_ACEOF
20585 #define HAVE_PERMISSION 1
20586 _ACEOF
20587
20588
20589 else
20590 $as_echo "$as_me: failed program was:" >&5
20591 sed 's/^/| /' conftest.$ac_ext >&5
20592
20593 { $as_echo "$as_me:$LINENO: result: no" >&5
20594 $as_echo "no" >&6; }
20595
20596
20597
20598 fi
20599
20600 rm -Rf build
20601
20602
20603
20604
20605 { $as_echo "$as_me:$LINENO: checking whether iops->permission() wants nameidata" >&5
20606 $as_echo_n "checking whether iops->permission() wants nameidata... " >&6; }
20607
20608
20609 cat confdefs.h - <<_ACEOF >conftest.c
20610 /* confdefs.h. */
20611 _ACEOF
20612 cat confdefs.h >>conftest.$ac_ext
20613 cat >>conftest.$ac_ext <<_ACEOF
20614 /* end confdefs.h. */
20615
20616
20617 #include <linux/fs.h>
20618 #include <linux/sched.h>
20619
20620 int permission_fn(struct inode *inode, int mask,
20621 struct nameidata *nd) { return 0; }
20622
20623 static const struct inode_operations
20624 iops __attribute__ ((unused)) = {
20625 .permission = permission_fn,
20626 };
20627
20628 int
20629 main (void)
20630 {
20631
20632
20633 ;
20634 return 0;
20635 }
20636
20637 _ACEOF
20638
20639
20640
20641 cat - <<_ACEOF >conftest.h
20642
20643 _ACEOF
20644
20645
20646 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
20647 echo "obj-m := conftest.o" >build/Makefile
20648 modpost_flag=''
20649 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
20650 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
20651 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20652 (eval $ac_try) 2>&5
20653 ac_status=$?
20654 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20655 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
20656 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20657 (eval $ac_try) 2>&5
20658 ac_status=$?
20659 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20660 (exit $ac_status); }; }; then
20661
20662 { $as_echo "$as_me:$LINENO: result: yes" >&5
20663 $as_echo "yes" >&6; }
20664
20665 cat >>confdefs.h <<\_ACEOF
20666 #define HAVE_PERMISSION 1
20667 _ACEOF
20668
20669
20670 cat >>confdefs.h <<\_ACEOF
20671 #define HAVE_PERMISSION_WITH_NAMEIDATA 1
20672 _ACEOF
20673
20674
20675 else
20676 $as_echo "$as_me: failed program was:" >&5
20677 sed 's/^/| /' conftest.$ac_ext >&5
20678
20679 { $as_echo "$as_me:$LINENO: result: no" >&5
20680 $as_echo "no" >&6; }
20681
20682
20683
20684 fi
20685
20686 rm -Rf build
20687
20688
20689
20690
20691 { $as_echo "$as_me:$LINENO: checking whether iops->check_acl() exists" >&5
20692 $as_echo_n "checking whether iops->check_acl() exists... " >&6; }
20693
20694
20695 cat confdefs.h - <<_ACEOF >conftest.c
20696 /* confdefs.h. */
20697 _ACEOF
20698 cat confdefs.h >>conftest.$ac_ext
20699 cat >>conftest.$ac_ext <<_ACEOF
20700 /* end confdefs.h. */
20701
20702
20703 #include <linux/fs.h>
20704
20705 int check_acl_fn(struct inode *inode, int mask) { return 0; }
20706
20707 static const struct inode_operations
20708 iops __attribute__ ((unused)) = {
20709 .check_acl = check_acl_fn,
20710 };
20711
20712 int
20713 main (void)
20714 {
20715
20716
20717 ;
20718 return 0;
20719 }
20720
20721 _ACEOF
20722
20723
20724
20725 cat - <<_ACEOF >conftest.h
20726
20727 _ACEOF
20728
20729
20730 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
20731 echo "obj-m := conftest.o" >build/Makefile
20732 modpost_flag=''
20733 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
20734 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
20735 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20736 (eval $ac_try) 2>&5
20737 ac_status=$?
20738 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20739 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
20740 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20741 (eval $ac_try) 2>&5
20742 ac_status=$?
20743 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20744 (exit $ac_status); }; }; then
20745
20746 { $as_echo "$as_me:$LINENO: result: yes" >&5
20747 $as_echo "yes" >&6; }
20748
20749 cat >>confdefs.h <<\_ACEOF
20750 #define HAVE_CHECK_ACL 1
20751 _ACEOF
20752
20753
20754 else
20755 $as_echo "$as_me: failed program was:" >&5
20756 sed 's/^/| /' conftest.$ac_ext >&5
20757
20758 { $as_echo "$as_me:$LINENO: result: no" >&5
20759 $as_echo "no" >&6; }
20760
20761
20762
20763 fi
20764
20765 rm -Rf build
20766
20767
20768
20769
20770 { $as_echo "$as_me:$LINENO: checking whether iops->check_acl() wants flags" >&5
20771 $as_echo_n "checking whether iops->check_acl() wants flags... " >&6; }
20772
20773
20774 cat confdefs.h - <<_ACEOF >conftest.c
20775 /* confdefs.h. */
20776 _ACEOF
20777 cat confdefs.h >>conftest.$ac_ext
20778 cat >>conftest.$ac_ext <<_ACEOF
20779 /* end confdefs.h. */
20780
20781
20782 #include <linux/fs.h>
20783
20784 int check_acl_fn(struct inode *inode, int mask,
20785 unsigned int flags) { return 0; }
20786
20787 static const struct inode_operations
20788 iops __attribute__ ((unused)) = {
20789 .check_acl = check_acl_fn,
20790 };
20791
20792 int
20793 main (void)
20794 {
20795
20796
20797 ;
20798 return 0;
20799 }
20800
20801 _ACEOF
20802
20803
20804
20805 cat - <<_ACEOF >conftest.h
20806
20807 _ACEOF
20808
20809
20810 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
20811 echo "obj-m := conftest.o" >build/Makefile
20812 modpost_flag=''
20813 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
20814 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
20815 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20816 (eval $ac_try) 2>&5
20817 ac_status=$?
20818 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20819 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
20820 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20821 (eval $ac_try) 2>&5
20822 ac_status=$?
20823 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20824 (exit $ac_status); }; }; then
20825
20826 { $as_echo "$as_me:$LINENO: result: yes" >&5
20827 $as_echo "yes" >&6; }
20828
20829 cat >>confdefs.h <<\_ACEOF
20830 #define HAVE_CHECK_ACL 1
20831 _ACEOF
20832
20833
20834 cat >>confdefs.h <<\_ACEOF
20835 #define HAVE_CHECK_ACL_WITH_FLAGS 1
20836 _ACEOF
20837
20838
20839 else
20840 $as_echo "$as_me: failed program was:" >&5
20841 sed 's/^/| /' conftest.$ac_ext >&5
20842
20843 { $as_echo "$as_me:$LINENO: result: no" >&5
20844 $as_echo "no" >&6; }
20845
20846
20847
20848 fi
20849
20850 rm -Rf build
20851
20852
20853
20854
20855 { $as_echo "$as_me:$LINENO: checking whether iops->get_acl() exists" >&5
20856 $as_echo_n "checking whether iops->get_acl() exists... " >&6; }
20857
20858
20859 cat confdefs.h - <<_ACEOF >conftest.c
20860 /* confdefs.h. */
20861 _ACEOF
20862 cat confdefs.h >>conftest.$ac_ext
20863 cat >>conftest.$ac_ext <<_ACEOF
20864 /* end confdefs.h. */
20865
20866
20867 #include <linux/fs.h>
20868
20869 struct posix_acl *get_acl_fn(struct inode *inode, int type)
20870 { return NULL; }
20871
20872 static const struct inode_operations
20873 iops __attribute__ ((unused)) = {
20874 .get_acl = get_acl_fn,
20875 };
20876
20877 int
20878 main (void)
20879 {
20880
20881
20882 ;
20883 return 0;
20884 }
20885
20886 _ACEOF
20887
20888
20889
20890 cat - <<_ACEOF >conftest.h
20891
20892 _ACEOF
20893
20894
20895 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
20896 echo "obj-m := conftest.o" >build/Makefile
20897 modpost_flag=''
20898 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
20899 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
20900 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20901 (eval $ac_try) 2>&5
20902 ac_status=$?
20903 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20904 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
20905 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20906 (eval $ac_try) 2>&5
20907 ac_status=$?
20908 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20909 (exit $ac_status); }; }; then
20910
20911 { $as_echo "$as_me:$LINENO: result: yes" >&5
20912 $as_echo "yes" >&6; }
20913
20914 cat >>confdefs.h <<\_ACEOF
20915 #define HAVE_GET_ACL 1
20916 _ACEOF
20917
20918
20919 else
20920 $as_echo "$as_me: failed program was:" >&5
20921 sed 's/^/| /' conftest.$ac_ext >&5
20922
20923 { $as_echo "$as_me:$LINENO: result: no" >&5
20924 $as_echo "no" >&6; }
20925
20926
20927
20928 fi
20929
20930 rm -Rf build
20931
20932
20933
20934
20935 { $as_echo "$as_me:$LINENO: checking whether iops->set_acl() exists" >&5
20936 $as_echo_n "checking whether iops->set_acl() exists... " >&6; }
20937
20938
20939 cat confdefs.h - <<_ACEOF >conftest.c
20940 /* confdefs.h. */
20941 _ACEOF
20942 cat confdefs.h >>conftest.$ac_ext
20943 cat >>conftest.$ac_ext <<_ACEOF
20944 /* end confdefs.h. */
20945
20946
20947 #include <linux/fs.h>
20948
20949 int set_acl_fn(struct inode *inode, struct posix_acl *acl, int type)
20950 { return 0; }
20951
20952 static const struct inode_operations
20953 iops __attribute__ ((unused)) = {
20954 .set_acl = set_acl_fn,
20955 };
20956
20957 int
20958 main (void)
20959 {
20960
20961
20962 ;
20963 return 0;
20964 }
20965
20966 _ACEOF
20967
20968
20969
20970 cat - <<_ACEOF >conftest.h
20971
20972 _ACEOF
20973
20974
20975 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
20976 echo "obj-m := conftest.o" >build/Makefile
20977 modpost_flag=''
20978 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
20979 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
20980 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20981 (eval $ac_try) 2>&5
20982 ac_status=$?
20983 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20984 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
20985 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20986 (eval $ac_try) 2>&5
20987 ac_status=$?
20988 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20989 (exit $ac_status); }; }; then
20990
20991 { $as_echo "$as_me:$LINENO: result: yes" >&5
20992 $as_echo "yes" >&6; }
20993
20994 cat >>confdefs.h <<\_ACEOF
20995 #define HAVE_SET_ACL 1
20996 _ACEOF
20997
20998
20999 else
21000 $as_echo "$as_me: failed program was:" >&5
21001 sed 's/^/| /' conftest.$ac_ext >&5
21002
21003 { $as_echo "$as_me:$LINENO: result: no" >&5
21004 $as_echo "no" >&6; }
21005
21006
21007
21008 fi
21009
21010 rm -Rf build
21011
21012
21013
21014
21015
21016 { $as_echo "$as_me:$LINENO: checking whether iops->getattr() takes a path" >&5
21017 $as_echo_n "checking whether iops->getattr() takes a path... " >&6; }
21018
21019
21020 cat confdefs.h - <<_ACEOF >conftest.c
21021 /* confdefs.h. */
21022 _ACEOF
21023 cat confdefs.h >>conftest.$ac_ext
21024 cat >>conftest.$ac_ext <<_ACEOF
21025 /* end confdefs.h. */
21026
21027
21028 #include <linux/fs.h>
21029
21030 int test_getattr(
21031 const struct path *p, struct kstat *k,
21032 u32 request_mask, unsigned int query_flags)
21033 { return 0; }
21034
21035 static const struct inode_operations
21036 iops __attribute__ ((unused)) = {
21037 .getattr = test_getattr,
21038 };
21039
21040 int
21041 main (void)
21042 {
21043
21044
21045 ;
21046 return 0;
21047 }
21048
21049 _ACEOF
21050
21051
21052
21053 cat - <<_ACEOF >conftest.h
21054
21055 _ACEOF
21056
21057
21058 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
21059 echo "obj-m := conftest.o" >build/Makefile
21060 modpost_flag=''
21061 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
21062 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
21063 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21064 (eval $ac_try) 2>&5
21065 ac_status=$?
21066 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21067 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
21068 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21069 (eval $ac_try) 2>&5
21070 ac_status=$?
21071 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21072 (exit $ac_status); }; }; then
21073
21074 { $as_echo "$as_me:$LINENO: result: yes" >&5
21075 $as_echo "yes" >&6; }
21076
21077 cat >>confdefs.h <<\_ACEOF
21078 #define HAVE_PATH_IOPS_GETATTR 1
21079 _ACEOF
21080
21081
21082 else
21083 $as_echo "$as_me: failed program was:" >&5
21084 sed 's/^/| /' conftest.$ac_ext >&5
21085
21086 { $as_echo "$as_me:$LINENO: result: no" >&5
21087 $as_echo "no" >&6; }
21088
21089
21090
21091 fi
21092
21093 rm -Rf build
21094
21095
21096
21097
21098 { $as_echo "$as_me:$LINENO: checking whether iops->getattr() takes a vfsmount" >&5
21099 $as_echo_n "checking whether iops->getattr() takes a vfsmount... " >&6; }
21100
21101
21102 cat confdefs.h - <<_ACEOF >conftest.c
21103 /* confdefs.h. */
21104 _ACEOF
21105 cat confdefs.h >>conftest.$ac_ext
21106 cat >>conftest.$ac_ext <<_ACEOF
21107 /* end confdefs.h. */
21108
21109
21110 #include <linux/fs.h>
21111
21112 int test_getattr(
21113 struct vfsmount *mnt, struct dentry *d,
21114 struct kstat *k)
21115 { return 0; }
21116
21117 static const struct inode_operations
21118 iops __attribute__ ((unused)) = {
21119 .getattr = test_getattr,
21120 };
21121
21122 int
21123 main (void)
21124 {
21125
21126
21127 ;
21128 return 0;
21129 }
21130
21131 _ACEOF
21132
21133
21134
21135 cat - <<_ACEOF >conftest.h
21136
21137 _ACEOF
21138
21139
21140 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
21141 echo "obj-m := conftest.o" >build/Makefile
21142 modpost_flag=''
21143 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
21144 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
21145 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21146 (eval $ac_try) 2>&5
21147 ac_status=$?
21148 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21149 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
21150 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21151 (eval $ac_try) 2>&5
21152 ac_status=$?
21153 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21154 (exit $ac_status); }; }; then
21155
21156 { $as_echo "$as_me:$LINENO: result: yes" >&5
21157 $as_echo "yes" >&6; }
21158
21159 cat >>confdefs.h <<\_ACEOF
21160 #define HAVE_VFSMOUNT_IOPS_GETATTR 1
21161 _ACEOF
21162
21163
21164 else
21165 $as_echo "$as_me: failed program was:" >&5
21166 sed 's/^/| /' conftest.$ac_ext >&5
21167
21168 { $as_echo "$as_me:$LINENO: result: no" >&5
21169 $as_echo "no" >&6; }
21170
21171
21172
21173 fi
21174
21175 rm -Rf build
21176
21177
21178
21179
21180
21181 { $as_echo "$as_me:$LINENO: checking whether inode_set_flags() exists" >&5
21182 $as_echo_n "checking whether inode_set_flags() exists... " >&6; }
21183
21184
21185 cat confdefs.h - <<_ACEOF >conftest.c
21186 /* confdefs.h. */
21187 _ACEOF
21188 cat confdefs.h >>conftest.$ac_ext
21189 cat >>conftest.$ac_ext <<_ACEOF
21190 /* end confdefs.h. */
21191
21192
21193 #include <linux/fs.h>
21194
21195 int
21196 main (void)
21197 {
21198
21199 struct inode inode;
21200 inode_set_flags(&inode, S_IMMUTABLE, S_IMMUTABLE);
21201
21202 ;
21203 return 0;
21204 }
21205
21206 _ACEOF
21207
21208
21209
21210 cat - <<_ACEOF >conftest.h
21211
21212 _ACEOF
21213
21214
21215 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
21216 echo "obj-m := conftest.o" >build/Makefile
21217 modpost_flag=''
21218 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
21219 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
21220 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21221 (eval $ac_try) 2>&5
21222 ac_status=$?
21223 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21224 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
21225 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21226 (eval $ac_try) 2>&5
21227 ac_status=$?
21228 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21229 (exit $ac_status); }; }; then
21230
21231 { $as_echo "$as_me:$LINENO: result: yes" >&5
21232 $as_echo "yes" >&6; }
21233
21234 cat >>confdefs.h <<\_ACEOF
21235 #define HAVE_INODE_SET_FLAGS 1
21236 _ACEOF
21237
21238
21239 else
21240 $as_echo "$as_me: failed program was:" >&5
21241 sed 's/^/| /' conftest.$ac_ext >&5
21242
21243 { $as_echo "$as_me:$LINENO: result: no" >&5
21244 $as_echo "no" >&6; }
21245
21246
21247
21248 fi
21249
21250 rm -Rf build
21251
21252
21253
21254
21255 { $as_echo "$as_me:$LINENO: checking whether inode_set_iversion() exists" >&5
21256 $as_echo_n "checking whether inode_set_iversion() exists... " >&6; }
21257
21258
21259 cat confdefs.h - <<_ACEOF >conftest.c
21260 /* confdefs.h. */
21261 _ACEOF
21262 cat confdefs.h >>conftest.$ac_ext
21263 cat >>conftest.$ac_ext <<_ACEOF
21264 /* end confdefs.h. */
21265
21266
21267 #include <linux/iversion.h>
21268
21269 int
21270 main (void)
21271 {
21272
21273 struct inode inode;
21274 inode_set_iversion(&inode, 1);
21275
21276 ;
21277 return 0;
21278 }
21279
21280 _ACEOF
21281
21282
21283
21284 cat - <<_ACEOF >conftest.h
21285
21286 _ACEOF
21287
21288
21289 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
21290 echo "obj-m := conftest.o" >build/Makefile
21291 modpost_flag=''
21292 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
21293 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
21294 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21295 (eval $ac_try) 2>&5
21296 ac_status=$?
21297 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21298 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
21299 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21300 (eval $ac_try) 2>&5
21301 ac_status=$?
21302 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21303 (exit $ac_status); }; }; then
21304
21305 { $as_echo "$as_me:$LINENO: result: yes" >&5
21306 $as_echo "yes" >&6; }
21307
21308 cat >>confdefs.h <<\_ACEOF
21309 #define HAVE_INODE_SET_IVERSION 1
21310 _ACEOF
21311
21312
21313 else
21314 $as_echo "$as_me: failed program was:" >&5
21315 sed 's/^/| /' conftest.$ac_ext >&5
21316
21317 { $as_echo "$as_me:$LINENO: result: no" >&5
21318 $as_echo "no" >&6; }
21319
21320
21321
21322 fi
21323
21324 rm -Rf build
21325
21326
21327
21328
21329 { $as_echo "$as_me:$LINENO: checking whether uncached_acl_sentinel() exists" >&5
21330 $as_echo_n "checking whether uncached_acl_sentinel() exists... " >&6; }
21331
21332
21333 cat confdefs.h - <<_ACEOF >conftest.c
21334 /* confdefs.h. */
21335 _ACEOF
21336 cat confdefs.h >>conftest.$ac_ext
21337 cat >>conftest.$ac_ext <<_ACEOF
21338 /* end confdefs.h. */
21339
21340
21341 #include <linux/fs.h>
21342
21343 int
21344 main (void)
21345 {
21346
21347 void *sentinel __attribute__ ((unused)) = uncached_acl_sentinel(NULL);
21348
21349 ;
21350 return 0;
21351 }
21352
21353 _ACEOF
21354
21355
21356
21357 cat - <<_ACEOF >conftest.h
21358
21359 _ACEOF
21360
21361
21362 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
21363 echo "obj-m := conftest.o" >build/Makefile
21364 modpost_flag=''
21365 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
21366 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
21367 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21368 (eval $ac_try) 2>&5
21369 ac_status=$?
21370 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21371 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
21372 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21373 (eval $ac_try) 2>&5
21374 ac_status=$?
21375 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21376 (exit $ac_status); }; }; then
21377
21378 { $as_echo "$as_me:$LINENO: result: yes" >&5
21379 $as_echo "yes" >&6; }
21380
21381 cat >>confdefs.h <<\_ACEOF
21382 #define HAVE_KERNEL_GET_ACL_HANDLE_CACHE 1
21383 _ACEOF
21384
21385
21386 else
21387 $as_echo "$as_me: failed program was:" >&5
21388 sed 's/^/| /' conftest.$ac_ext >&5
21389
21390 { $as_echo "$as_me:$LINENO: result: no" >&5
21391 $as_echo "no" >&6; }
21392
21393
21394
21395 fi
21396
21397 rm -Rf build
21398
21399
21400
21401
21402 { $as_echo "$as_me:$LINENO: checking whether sops->show_options() wants dentry" >&5
21403 $as_echo_n "checking whether sops->show_options() wants dentry... " >&6; }
21404
21405
21406
21407 cat confdefs.h - <<_ACEOF >conftest.c
21408 /* confdefs.h. */
21409 _ACEOF
21410 cat confdefs.h >>conftest.$ac_ext
21411 cat >>conftest.$ac_ext <<_ACEOF
21412 /* end confdefs.h. */
21413
21414
21415 #include <linux/fs.h>
21416
21417 int show_options (struct seq_file * x, struct dentry * y) { return 0; };
21418 static struct super_operations sops __attribute__ ((unused)) = {
21419 .show_options = show_options,
21420 };
21421
21422 int
21423 main (void)
21424 {
21425
21426
21427 ;
21428 return 0;
21429 }
21430
21431 _ACEOF
21432
21433
21434
21435 cat - <<_ACEOF >conftest.h
21436
21437 _ACEOF
21438
21439
21440 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
21441 echo "obj-m := conftest.o" >build/Makefile
21442 modpost_flag=''
21443 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
21444 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
21445 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21446 (eval $ac_try) 2>&5
21447 ac_status=$?
21448 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21449 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
21450 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21451 (eval $ac_try) 2>&5
21452 ac_status=$?
21453 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21454 (exit $ac_status); }; }; then
21455
21456 { $as_echo "$as_me:$LINENO: result: yes" >&5
21457 $as_echo "yes" >&6; }
21458
21459 cat >>confdefs.h <<\_ACEOF
21460 #define HAVE_SHOW_OPTIONS_WITH_DENTRY 1
21461 _ACEOF
21462
21463
21464 else
21465 $as_echo "$as_me: failed program was:" >&5
21466 sed 's/^/| /' conftest.$ac_ext >&5
21467
21468 { $as_echo "$as_me:$LINENO: result: no" >&5
21469 $as_echo "no" >&6; }
21470
21471
21472
21473 fi
21474
21475 rm -Rf build
21476
21477
21478
21479
21480 { $as_echo "$as_me:$LINENO: checking whether file_inode() is available" >&5
21481 $as_echo_n "checking whether file_inode() is available... " >&6; }
21482
21483
21484 cat confdefs.h - <<_ACEOF >conftest.c
21485 /* confdefs.h. */
21486 _ACEOF
21487 cat confdefs.h >>conftest.$ac_ext
21488 cat >>conftest.$ac_ext <<_ACEOF
21489 /* end confdefs.h. */
21490
21491
21492 #include <linux/fs.h>
21493
21494 int
21495 main (void)
21496 {
21497
21498 struct file *f = NULL;
21499 file_inode(f);
21500
21501 ;
21502 return 0;
21503 }
21504
21505 _ACEOF
21506
21507
21508
21509 cat - <<_ACEOF >conftest.h
21510
21511 _ACEOF
21512
21513
21514 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
21515 echo "obj-m := conftest.o" >build/Makefile
21516 modpost_flag=''
21517 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
21518 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
21519 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21520 (eval $ac_try) 2>&5
21521 ac_status=$?
21522 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21523 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
21524 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21525 (eval $ac_try) 2>&5
21526 ac_status=$?
21527 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21528 (exit $ac_status); }; }; then
21529
21530 { $as_echo "$as_me:$LINENO: result: yes" >&5
21531 $as_echo "yes" >&6; }
21532
21533 cat >>confdefs.h <<\_ACEOF
21534 #define HAVE_FILE_INODE 1
21535 _ACEOF
21536
21537
21538 else
21539 $as_echo "$as_me: failed program was:" >&5
21540 sed 's/^/| /' conftest.$ac_ext >&5
21541
21542 { $as_echo "$as_me:$LINENO: result: no" >&5
21543 $as_echo "no" >&6; }
21544
21545
21546
21547 fi
21548
21549 rm -Rf build
21550
21551
21552
21553
21554 { $as_echo "$as_me:$LINENO: checking whether file_dentry() is available" >&5
21555 $as_echo_n "checking whether file_dentry() is available... " >&6; }
21556
21557
21558 cat confdefs.h - <<_ACEOF >conftest.c
21559 /* confdefs.h. */
21560 _ACEOF
21561 cat confdefs.h >>conftest.$ac_ext
21562 cat >>conftest.$ac_ext <<_ACEOF
21563 /* end confdefs.h. */
21564
21565
21566 #include <linux/fs.h>
21567
21568 int
21569 main (void)
21570 {
21571
21572 struct file *f = NULL;
21573 file_dentry(f);
21574
21575 ;
21576 return 0;
21577 }
21578
21579 _ACEOF
21580
21581
21582
21583 cat - <<_ACEOF >conftest.h
21584
21585 _ACEOF
21586
21587
21588 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
21589 echo "obj-m := conftest.o" >build/Makefile
21590 modpost_flag=''
21591 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
21592 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
21593 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21594 (eval $ac_try) 2>&5
21595 ac_status=$?
21596 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21597 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
21598 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21599 (eval $ac_try) 2>&5
21600 ac_status=$?
21601 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21602 (exit $ac_status); }; }; then
21603
21604 { $as_echo "$as_me:$LINENO: result: yes" >&5
21605 $as_echo "yes" >&6; }
21606
21607 cat >>confdefs.h <<\_ACEOF
21608 #define HAVE_FILE_DENTRY 1
21609 _ACEOF
21610
21611
21612 else
21613 $as_echo "$as_me: failed program was:" >&5
21614 sed 's/^/| /' conftest.$ac_ext >&5
21615
21616 { $as_echo "$as_me:$LINENO: result: no" >&5
21617 $as_echo "no" >&6; }
21618
21619
21620
21621 fi
21622
21623 rm -Rf build
21624
21625
21626
21627
21628 { $as_echo "$as_me:$LINENO: checking whether fops->fsync() wants" >&5
21629 $as_echo_n "checking whether fops->fsync() wants... " >&6; }
21630
21631
21632
21633 cat confdefs.h - <<_ACEOF >conftest.c
21634 /* confdefs.h. */
21635 _ACEOF
21636 cat confdefs.h >>conftest.$ac_ext
21637 cat >>conftest.$ac_ext <<_ACEOF
21638 /* end confdefs.h. */
21639
21640
21641 #include <linux/fs.h>
21642
21643 int test_fsync(struct file *f, struct dentry *dentry, int x)
21644 { return 0; }
21645
21646 static const struct file_operations
21647 fops __attribute__ ((unused)) = {
21648 .fsync = test_fsync,
21649 };
21650
21651 int
21652 main (void)
21653 {
21654
21655
21656 ;
21657 return 0;
21658 }
21659
21660 _ACEOF
21661
21662
21663
21664 cat - <<_ACEOF >conftest.h
21665
21666 _ACEOF
21667
21668
21669 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
21670 echo "obj-m := conftest.o" >build/Makefile
21671 modpost_flag=''
21672 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
21673 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
21674 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21675 (eval $ac_try) 2>&5
21676 ac_status=$?
21677 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21678 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
21679 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21680 (eval $ac_try) 2>&5
21681 ac_status=$?
21682 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21683 (exit $ac_status); }; }; then
21684
21685 { $as_echo "$as_me:$LINENO: result: dentry" >&5
21686 $as_echo "dentry" >&6; }
21687
21688 cat >>confdefs.h <<\_ACEOF
21689 #define HAVE_FSYNC_WITH_DENTRY 1
21690 _ACEOF
21691
21692
21693 else
21694 $as_echo "$as_me: failed program was:" >&5
21695 sed 's/^/| /' conftest.$ac_ext >&5
21696
21697
21698
21699
21700 fi
21701
21702 rm -Rf build
21703
21704
21705
21706
21707
21708
21709 cat confdefs.h - <<_ACEOF >conftest.c
21710 /* confdefs.h. */
21711 _ACEOF
21712 cat confdefs.h >>conftest.$ac_ext
21713 cat >>conftest.$ac_ext <<_ACEOF
21714 /* end confdefs.h. */
21715
21716
21717 #include <linux/fs.h>
21718
21719 int test_fsync(struct file *f, int x) { return 0; }
21720
21721 static const struct file_operations
21722 fops __attribute__ ((unused)) = {
21723 .fsync = test_fsync,
21724 };
21725
21726 int
21727 main (void)
21728 {
21729
21730
21731 ;
21732 return 0;
21733 }
21734
21735 _ACEOF
21736
21737
21738
21739 cat - <<_ACEOF >conftest.h
21740
21741 _ACEOF
21742
21743
21744 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
21745 echo "obj-m := conftest.o" >build/Makefile
21746 modpost_flag=''
21747 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
21748 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
21749 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21750 (eval $ac_try) 2>&5
21751 ac_status=$?
21752 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21753 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
21754 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21755 (eval $ac_try) 2>&5
21756 ac_status=$?
21757 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21758 (exit $ac_status); }; }; then
21759
21760 { $as_echo "$as_me:$LINENO: result: no dentry" >&5
21761 $as_echo "no dentry" >&6; }
21762
21763 cat >>confdefs.h <<\_ACEOF
21764 #define HAVE_FSYNC_WITHOUT_DENTRY 1
21765 _ACEOF
21766
21767
21768 else
21769 $as_echo "$as_me: failed program was:" >&5
21770 sed 's/^/| /' conftest.$ac_ext >&5
21771
21772
21773
21774
21775 fi
21776
21777 rm -Rf build
21778
21779
21780
21781
21782
21783
21784 cat confdefs.h - <<_ACEOF >conftest.c
21785 /* confdefs.h. */
21786 _ACEOF
21787 cat confdefs.h >>conftest.$ac_ext
21788 cat >>conftest.$ac_ext <<_ACEOF
21789 /* end confdefs.h. */
21790
21791
21792 #include <linux/fs.h>
21793
21794 int test_fsync(struct file *f, loff_t a, loff_t b, int c)
21795 { return 0; }
21796
21797 static const struct file_operations
21798 fops __attribute__ ((unused)) = {
21799 .fsync = test_fsync,
21800 };
21801
21802 int
21803 main (void)
21804 {
21805
21806
21807 ;
21808 return 0;
21809 }
21810
21811 _ACEOF
21812
21813
21814
21815 cat - <<_ACEOF >conftest.h
21816
21817 _ACEOF
21818
21819
21820 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
21821 echo "obj-m := conftest.o" >build/Makefile
21822 modpost_flag=''
21823 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
21824 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
21825 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21826 (eval $ac_try) 2>&5
21827 ac_status=$?
21828 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21829 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
21830 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21831 (eval $ac_try) 2>&5
21832 ac_status=$?
21833 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21834 (exit $ac_status); }; }; then
21835
21836 { $as_echo "$as_me:$LINENO: result: range" >&5
21837 $as_echo "range" >&6; }
21838
21839 cat >>confdefs.h <<\_ACEOF
21840 #define HAVE_FSYNC_RANGE 1
21841 _ACEOF
21842
21843
21844 else
21845 $as_echo "$as_me: failed program was:" >&5
21846 sed 's/^/| /' conftest.$ac_ext >&5
21847
21848
21849
21850
21851 fi
21852
21853 rm -Rf build
21854
21855
21856
21857
21858
21859 { $as_echo "$as_me:$LINENO: checking whether sops->evict_inode() exists" >&5
21860 $as_echo_n "checking whether sops->evict_inode() exists... " >&6; }
21861
21862
21863 cat confdefs.h - <<_ACEOF >conftest.c
21864 /* confdefs.h. */
21865 _ACEOF
21866 cat confdefs.h >>conftest.$ac_ext
21867 cat >>conftest.$ac_ext <<_ACEOF
21868 /* end confdefs.h. */
21869
21870
21871 #include <linux/fs.h>
21872 void evict_inode (struct inode * t) { return; }
21873 static struct super_operations sops __attribute__ ((unused)) = {
21874 .evict_inode = evict_inode,
21875 };
21876
21877 int
21878 main (void)
21879 {
21880
21881
21882 ;
21883 return 0;
21884 }
21885
21886 _ACEOF
21887
21888
21889
21890 cat - <<_ACEOF >conftest.h
21891
21892 _ACEOF
21893
21894
21895 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
21896 echo "obj-m := conftest.o" >build/Makefile
21897 modpost_flag=''
21898 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
21899 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
21900 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21901 (eval $ac_try) 2>&5
21902 ac_status=$?
21903 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21904 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
21905 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21906 (eval $ac_try) 2>&5
21907 ac_status=$?
21908 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21909 (exit $ac_status); }; }; then
21910
21911 { $as_echo "$as_me:$LINENO: result: yes" >&5
21912 $as_echo "yes" >&6; }
21913
21914 cat >>confdefs.h <<\_ACEOF
21915 #define HAVE_EVICT_INODE 1
21916 _ACEOF
21917
21918
21919 else
21920 $as_echo "$as_me: failed program was:" >&5
21921 sed 's/^/| /' conftest.$ac_ext >&5
21922
21923 { $as_echo "$as_me:$LINENO: result: no" >&5
21924 $as_echo "no" >&6; }
21925
21926
21927
21928 fi
21929
21930 rm -Rf build
21931
21932
21933
21934
21935 { $as_echo "$as_me:$LINENO: checking whether sops->dirty_inode() wants flags" >&5
21936 $as_echo_n "checking whether sops->dirty_inode() wants flags... " >&6; }
21937
21938
21939 cat confdefs.h - <<_ACEOF >conftest.c
21940 /* confdefs.h. */
21941 _ACEOF
21942 cat confdefs.h >>conftest.$ac_ext
21943 cat >>conftest.$ac_ext <<_ACEOF
21944 /* end confdefs.h. */
21945
21946
21947 #include <linux/fs.h>
21948
21949 void dirty_inode(struct inode *a, int b) { return; }
21950
21951 static const struct super_operations
21952 sops __attribute__ ((unused)) = {
21953 .dirty_inode = dirty_inode,
21954 };
21955
21956 int
21957 main (void)
21958 {
21959
21960
21961 ;
21962 return 0;
21963 }
21964
21965 _ACEOF
21966
21967
21968
21969 cat - <<_ACEOF >conftest.h
21970
21971 _ACEOF
21972
21973
21974 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
21975 echo "obj-m := conftest.o" >build/Makefile
21976 modpost_flag=''
21977 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
21978 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
21979 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21980 (eval $ac_try) 2>&5
21981 ac_status=$?
21982 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21983 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
21984 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21985 (eval $ac_try) 2>&5
21986 ac_status=$?
21987 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21988 (exit $ac_status); }; }; then
21989
21990 { $as_echo "$as_me:$LINENO: result: yes" >&5
21991 $as_echo "yes" >&6; }
21992
21993 cat >>confdefs.h <<\_ACEOF
21994 #define HAVE_DIRTY_INODE_WITH_FLAGS 1
21995 _ACEOF
21996
21997
21998 else
21999 $as_echo "$as_me: failed program was:" >&5
22000 sed 's/^/| /' conftest.$ac_ext >&5
22001
22002 { $as_echo "$as_me:$LINENO: result: no" >&5
22003 $as_echo "no" >&6; }
22004
22005
22006
22007 fi
22008
22009 rm -Rf build
22010
22011
22012
22013
22014 { $as_echo "$as_me:$LINENO: checking whether sops->nr_cached_objects() exists" >&5
22015 $as_echo_n "checking whether sops->nr_cached_objects() exists... " >&6; }
22016
22017
22018 cat confdefs.h - <<_ACEOF >conftest.c
22019 /* confdefs.h. */
22020 _ACEOF
22021 cat confdefs.h >>conftest.$ac_ext
22022 cat >>conftest.$ac_ext <<_ACEOF
22023 /* end confdefs.h. */
22024
22025
22026 #include <linux/fs.h>
22027
22028 int nr_cached_objects(struct super_block *sb) { return 0; }
22029
22030 static const struct super_operations
22031 sops __attribute__ ((unused)) = {
22032 .nr_cached_objects = nr_cached_objects,
22033 };
22034
22035 int
22036 main (void)
22037 {
22038
22039
22040 ;
22041 return 0;
22042 }
22043
22044 _ACEOF
22045
22046
22047
22048 cat - <<_ACEOF >conftest.h
22049
22050 _ACEOF
22051
22052
22053 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
22054 echo "obj-m := conftest.o" >build/Makefile
22055 modpost_flag=''
22056 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
22057 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
22058 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22059 (eval $ac_try) 2>&5
22060 ac_status=$?
22061 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22062 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
22063 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22064 (eval $ac_try) 2>&5
22065 ac_status=$?
22066 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22067 (exit $ac_status); }; }; then
22068
22069 { $as_echo "$as_me:$LINENO: result: yes" >&5
22070 $as_echo "yes" >&6; }
22071
22072 cat >>confdefs.h <<\_ACEOF
22073 #define HAVE_NR_CACHED_OBJECTS 1
22074 _ACEOF
22075
22076
22077 else
22078 $as_echo "$as_me: failed program was:" >&5
22079 sed 's/^/| /' conftest.$ac_ext >&5
22080
22081 { $as_echo "$as_me:$LINENO: result: no" >&5
22082 $as_echo "no" >&6; }
22083
22084
22085
22086 fi
22087
22088 rm -Rf build
22089
22090
22091
22092
22093 { $as_echo "$as_me:$LINENO: checking whether sops->free_cached_objects() exists" >&5
22094 $as_echo_n "checking whether sops->free_cached_objects() exists... " >&6; }
22095
22096
22097 cat confdefs.h - <<_ACEOF >conftest.c
22098 /* confdefs.h. */
22099 _ACEOF
22100 cat confdefs.h >>conftest.$ac_ext
22101 cat >>conftest.$ac_ext <<_ACEOF
22102 /* end confdefs.h. */
22103
22104
22105 #include <linux/fs.h>
22106
22107 void free_cached_objects(struct super_block *sb, int x)
22108 { return; }
22109
22110 static const struct super_operations
22111 sops __attribute__ ((unused)) = {
22112 .free_cached_objects = free_cached_objects,
22113 };
22114
22115 int
22116 main (void)
22117 {
22118
22119
22120 ;
22121 return 0;
22122 }
22123
22124 _ACEOF
22125
22126
22127
22128 cat - <<_ACEOF >conftest.h
22129
22130 _ACEOF
22131
22132
22133 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
22134 echo "obj-m := conftest.o" >build/Makefile
22135 modpost_flag=''
22136 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
22137 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
22138 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22139 (eval $ac_try) 2>&5
22140 ac_status=$?
22141 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22142 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
22143 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22144 (eval $ac_try) 2>&5
22145 ac_status=$?
22146 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22147 (exit $ac_status); }; }; then
22148
22149 { $as_echo "$as_me:$LINENO: result: yes" >&5
22150 $as_echo "yes" >&6; }
22151
22152 cat >>confdefs.h <<\_ACEOF
22153 #define HAVE_FREE_CACHED_OBJECTS 1
22154 _ACEOF
22155
22156
22157 else
22158 $as_echo "$as_me: failed program was:" >&5
22159 sed 's/^/| /' conftest.$ac_ext >&5
22160
22161 { $as_echo "$as_me:$LINENO: result: no" >&5
22162 $as_echo "no" >&6; }
22163
22164
22165
22166 fi
22167
22168 rm -Rf build
22169
22170
22171
22172
22173
22174 { $as_echo "$as_me:$LINENO: checking whether fops->fallocate() exists" >&5
22175 $as_echo_n "checking whether fops->fallocate() exists... " >&6; }
22176
22177
22178 cat confdefs.h - <<_ACEOF >conftest.c
22179 /* confdefs.h. */
22180 _ACEOF
22181 cat confdefs.h >>conftest.$ac_ext
22182 cat >>conftest.$ac_ext <<_ACEOF
22183 /* end confdefs.h. */
22184
22185
22186 #include <linux/fs.h>
22187
22188 long test_fallocate(struct file *file, int mode,
22189 loff_t offset, loff_t len) { return 0; }
22190
22191 static const struct file_operations
22192 fops __attribute__ ((unused)) = {
22193 .fallocate = test_fallocate,
22194 };
22195
22196 int
22197 main (void)
22198 {
22199
22200
22201 ;
22202 return 0;
22203 }
22204
22205 _ACEOF
22206
22207
22208
22209 cat - <<_ACEOF >conftest.h
22210
22211 _ACEOF
22212
22213
22214 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
22215 echo "obj-m := conftest.o" >build/Makefile
22216 modpost_flag=''
22217 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
22218 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
22219 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22220 (eval $ac_try) 2>&5
22221 ac_status=$?
22222 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22223 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
22224 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22225 (eval $ac_try) 2>&5
22226 ac_status=$?
22227 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22228 (exit $ac_status); }; }; then
22229
22230 { $as_echo "$as_me:$LINENO: result: yes" >&5
22231 $as_echo "yes" >&6; }
22232
22233 cat >>confdefs.h <<\_ACEOF
22234 #define HAVE_FILE_FALLOCATE 1
22235 _ACEOF
22236
22237
22238 else
22239 $as_echo "$as_me: failed program was:" >&5
22240 sed 's/^/| /' conftest.$ac_ext >&5
22241
22242 { $as_echo "$as_me:$LINENO: result: no" >&5
22243 $as_echo "no" >&6; }
22244
22245
22246
22247 fi
22248
22249 rm -Rf build
22250
22251
22252
22253
22254 { $as_echo "$as_me:$LINENO: checking whether iops->fallocate() exists" >&5
22255 $as_echo_n "checking whether iops->fallocate() exists... " >&6; }
22256
22257
22258 cat confdefs.h - <<_ACEOF >conftest.c
22259 /* confdefs.h. */
22260 _ACEOF
22261 cat confdefs.h >>conftest.$ac_ext
22262 cat >>conftest.$ac_ext <<_ACEOF
22263 /* end confdefs.h. */
22264
22265
22266 #include <linux/fs.h>
22267
22268 long test_fallocate(struct inode *inode, int mode,
22269 loff_t offset, loff_t len) { return 0; }
22270
22271 static const struct inode_operations
22272 fops __attribute__ ((unused)) = {
22273 .fallocate = test_fallocate,
22274 };
22275
22276 int
22277 main (void)
22278 {
22279
22280
22281 ;
22282 return 0;
22283 }
22284
22285 _ACEOF
22286
22287
22288
22289 cat - <<_ACEOF >conftest.h
22290
22291 _ACEOF
22292
22293
22294 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
22295 echo "obj-m := conftest.o" >build/Makefile
22296 modpost_flag=''
22297 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
22298 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
22299 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22300 (eval $ac_try) 2>&5
22301 ac_status=$?
22302 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22303 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
22304 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22305 (eval $ac_try) 2>&5
22306 ac_status=$?
22307 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22308 (exit $ac_status); }; }; then
22309
22310 { $as_echo "$as_me:$LINENO: result: yes" >&5
22311 $as_echo "yes" >&6; }
22312
22313 cat >>confdefs.h <<\_ACEOF
22314 #define HAVE_INODE_FALLOCATE 1
22315 _ACEOF
22316
22317
22318 else
22319 $as_echo "$as_me: failed program was:" >&5
22320 sed 's/^/| /' conftest.$ac_ext >&5
22321
22322 { $as_echo "$as_me:$LINENO: result: no" >&5
22323 $as_echo "no" >&6; }
22324
22325
22326
22327 fi
22328
22329 rm -Rf build
22330
22331
22332
22333
22334
22335 { $as_echo "$as_me:$LINENO: checking whether fops->aio_fsync() exists" >&5
22336 $as_echo_n "checking whether fops->aio_fsync() exists... " >&6; }
22337
22338
22339 cat confdefs.h - <<_ACEOF >conftest.c
22340 /* confdefs.h. */
22341 _ACEOF
22342 cat confdefs.h >>conftest.$ac_ext
22343 cat >>conftest.$ac_ext <<_ACEOF
22344 /* end confdefs.h. */
22345
22346
22347 #include <linux/fs.h>
22348
22349 static const struct file_operations
22350 fops __attribute__ ((unused)) = {
22351 .aio_fsync = NULL,
22352 };
22353
22354 int
22355 main (void)
22356 {
22357
22358
22359 ;
22360 return 0;
22361 }
22362
22363 _ACEOF
22364
22365
22366
22367 cat - <<_ACEOF >conftest.h
22368
22369 _ACEOF
22370
22371
22372 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
22373 echo "obj-m := conftest.o" >build/Makefile
22374 modpost_flag=''
22375 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
22376 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
22377 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22378 (eval $ac_try) 2>&5
22379 ac_status=$?
22380 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22381 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
22382 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22383 (eval $ac_try) 2>&5
22384 ac_status=$?
22385 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22386 (exit $ac_status); }; }; then
22387
22388 { $as_echo "$as_me:$LINENO: result: yes" >&5
22389 $as_echo "yes" >&6; }
22390
22391 cat >>confdefs.h <<\_ACEOF
22392 #define HAVE_FILE_AIO_FSYNC 1
22393 _ACEOF
22394
22395
22396 else
22397 $as_echo "$as_me: failed program was:" >&5
22398 sed 's/^/| /' conftest.$ac_ext >&5
22399
22400 { $as_echo "$as_me:$LINENO: result: no" >&5
22401 $as_echo "no" >&6; }
22402
22403
22404
22405 fi
22406
22407 rm -Rf build
22408
22409
22410
22411
22412 { $as_echo "$as_me:$LINENO: checking whether iops->create()/mkdir()/mknod() take umode_t" >&5
22413 $as_echo_n "checking whether iops->create()/mkdir()/mknod() take umode_t... " >&6; }
22414
22415
22416 cat confdefs.h - <<_ACEOF >conftest.c
22417 /* confdefs.h. */
22418 _ACEOF
22419 cat confdefs.h >>conftest.$ac_ext
22420 cat >>conftest.$ac_ext <<_ACEOF
22421 /* end confdefs.h. */
22422
22423
22424 #include <linux/fs.h>
22425
22426 int mkdir(struct inode *inode, struct dentry *dentry,
22427 umode_t umode) { return 0; }
22428
22429 static const struct inode_operations
22430 iops __attribute__ ((unused)) = {
22431 .mkdir = mkdir,
22432 };
22433
22434 int
22435 main (void)
22436 {
22437
22438
22439 ;
22440 return 0;
22441 }
22442
22443 _ACEOF
22444
22445
22446
22447 cat - <<_ACEOF >conftest.h
22448
22449 _ACEOF
22450
22451
22452 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
22453 echo "obj-m := conftest.o" >build/Makefile
22454 modpost_flag=''
22455 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
22456 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
22457 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22458 (eval $ac_try) 2>&5
22459 ac_status=$?
22460 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22461 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
22462 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22463 (eval $ac_try) 2>&5
22464 ac_status=$?
22465 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22466 (exit $ac_status); }; }; then
22467
22468 { $as_echo "$as_me:$LINENO: result: yes" >&5
22469 $as_echo "yes" >&6; }
22470
22471 cat >>confdefs.h <<\_ACEOF
22472 #define HAVE_MKDIR_UMODE_T 1
22473 _ACEOF
22474
22475
22476 else
22477 $as_echo "$as_me: failed program was:" >&5
22478 sed 's/^/| /' conftest.$ac_ext >&5
22479
22480 { $as_echo "$as_me:$LINENO: result: no" >&5
22481 $as_echo "no" >&6; }
22482
22483
22484
22485 fi
22486
22487 rm -Rf build
22488
22489
22490
22491
22492 { $as_echo "$as_me:$LINENO: checking whether iops->lookup() passes nameidata" >&5
22493 $as_echo_n "checking whether iops->lookup() passes nameidata... " >&6; }
22494
22495
22496 cat confdefs.h - <<_ACEOF >conftest.c
22497 /* confdefs.h. */
22498 _ACEOF
22499 cat confdefs.h >>conftest.$ac_ext
22500 cat >>conftest.$ac_ext <<_ACEOF
22501 /* end confdefs.h. */
22502
22503
22504 #include <linux/fs.h>
22505 #include <linux/sched.h>
22506
22507 struct dentry *inode_lookup(struct inode *inode,
22508 struct dentry *dentry, struct nameidata *nidata)
22509 { return NULL; }
22510
22511 static const struct inode_operations iops
22512 __attribute__ ((unused)) = {
22513 .lookup = inode_lookup,
22514 };
22515
22516 int
22517 main (void)
22518 {
22519
22520
22521 ;
22522 return 0;
22523 }
22524
22525 _ACEOF
22526
22527
22528
22529 cat - <<_ACEOF >conftest.h
22530
22531 _ACEOF
22532
22533
22534 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
22535 echo "obj-m := conftest.o" >build/Makefile
22536 modpost_flag=''
22537 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
22538 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
22539 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22540 (eval $ac_try) 2>&5
22541 ac_status=$?
22542 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22543 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
22544 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22545 (eval $ac_try) 2>&5
22546 ac_status=$?
22547 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22548 (exit $ac_status); }; }; then
22549
22550 { $as_echo "$as_me:$LINENO: result: yes" >&5
22551 $as_echo "yes" >&6; }
22552
22553 cat >>confdefs.h <<\_ACEOF
22554 #define HAVE_LOOKUP_NAMEIDATA 1
22555 _ACEOF
22556
22557
22558 else
22559 $as_echo "$as_me: failed program was:" >&5
22560 sed 's/^/| /' conftest.$ac_ext >&5
22561
22562 { $as_echo "$as_me:$LINENO: result: no" >&5
22563 $as_echo "no" >&6; }
22564
22565
22566
22567 fi
22568
22569 rm -Rf build
22570
22571
22572
22573
22574 { $as_echo "$as_me:$LINENO: checking whether iops->create() passes nameidata" >&5
22575 $as_echo_n "checking whether iops->create() passes nameidata... " >&6; }
22576
22577
22578 cat confdefs.h - <<_ACEOF >conftest.c
22579 /* confdefs.h. */
22580 _ACEOF
22581 cat confdefs.h >>conftest.$ac_ext
22582 cat >>conftest.$ac_ext <<_ACEOF
22583 /* end confdefs.h. */
22584
22585
22586 #include <linux/fs.h>
22587 #include <linux/sched.h>
22588
22589 #ifdef HAVE_MKDIR_UMODE_T
22590 int inode_create(struct inode *inode ,struct dentry *dentry,
22591 umode_t umode, struct nameidata *nidata) { return 0; }
22592 #else
22593 int inode_create(struct inode *inode,struct dentry *dentry,
22594 int umode, struct nameidata * nidata) { return 0; }
22595 #endif
22596
22597 static const struct inode_operations
22598 iops __attribute__ ((unused)) = {
22599 .create = inode_create,
22600 };
22601
22602 int
22603 main (void)
22604 {
22605
22606
22607 ;
22608 return 0;
22609 }
22610
22611 _ACEOF
22612
22613
22614
22615 cat - <<_ACEOF >conftest.h
22616
22617 _ACEOF
22618
22619
22620 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
22621 echo "obj-m := conftest.o" >build/Makefile
22622 modpost_flag=''
22623 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
22624 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
22625 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22626 (eval $ac_try) 2>&5
22627 ac_status=$?
22628 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22629 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
22630 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22631 (eval $ac_try) 2>&5
22632 ac_status=$?
22633 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22634 (exit $ac_status); }; }; then
22635
22636 { $as_echo "$as_me:$LINENO: result: yes" >&5
22637 $as_echo "yes" >&6; }
22638
22639 cat >>confdefs.h <<\_ACEOF
22640 #define HAVE_CREATE_NAMEIDATA 1
22641 _ACEOF
22642
22643
22644 else
22645 $as_echo "$as_me: failed program was:" >&5
22646 sed 's/^/| /' conftest.$ac_ext >&5
22647
22648 { $as_echo "$as_me:$LINENO: result: no" >&5
22649 $as_echo "no" >&6; }
22650
22651
22652
22653 fi
22654
22655 rm -Rf build
22656
22657
22658
22659
22660 { $as_echo "$as_me:$LINENO: checking whether iops->get_link() passes delayed" >&5
22661 $as_echo_n "checking whether iops->get_link() passes delayed... " >&6; }
22662
22663
22664 cat confdefs.h - <<_ACEOF >conftest.c
22665 /* confdefs.h. */
22666 _ACEOF
22667 cat confdefs.h >>conftest.$ac_ext
22668 cat >>conftest.$ac_ext <<_ACEOF
22669 /* end confdefs.h. */
22670
22671
22672 #include <linux/fs.h>
22673 const char *get_link(struct dentry *de, struct inode *ip,
22674 struct delayed_call *done) { return "symlink"; }
22675 static struct inode_operations
22676 iops __attribute__ ((unused)) = {
22677 .get_link = get_link,
22678 };
22679
22680 int
22681 main (void)
22682 {
22683
22684
22685 ;
22686 return 0;
22687 }
22688
22689 _ACEOF
22690
22691
22692
22693 cat - <<_ACEOF >conftest.h
22694
22695 _ACEOF
22696
22697
22698 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
22699 echo "obj-m := conftest.o" >build/Makefile
22700 modpost_flag=''
22701 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
22702 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
22703 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22704 (eval $ac_try) 2>&5
22705 ac_status=$?
22706 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22707 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
22708 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22709 (eval $ac_try) 2>&5
22710 ac_status=$?
22711 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22712 (exit $ac_status); }; }; then
22713
22714 { $as_echo "$as_me:$LINENO: result: yes" >&5
22715 $as_echo "yes" >&6; }
22716
22717 cat >>confdefs.h <<\_ACEOF
22718 #define HAVE_GET_LINK_DELAYED 1
22719 _ACEOF
22720
22721
22722 else
22723 $as_echo "$as_me: failed program was:" >&5
22724 sed 's/^/| /' conftest.$ac_ext >&5
22725
22726 { $as_echo "$as_me:$LINENO: result: no" >&5
22727 $as_echo "no" >&6; }
22728 { $as_echo "$as_me:$LINENO: checking whether iops->get_link() passes cookie" >&5
22729 $as_echo_n "checking whether iops->get_link() passes cookie... " >&6; }
22730
22731
22732 cat confdefs.h - <<_ACEOF >conftest.c
22733 /* confdefs.h. */
22734 _ACEOF
22735 cat confdefs.h >>conftest.$ac_ext
22736 cat >>conftest.$ac_ext <<_ACEOF
22737 /* end confdefs.h. */
22738
22739
22740 #include <linux/fs.h>
22741 const char *get_link(struct dentry *de, struct
22742 inode *ip, void **cookie) { return "symlink"; }
22743 static struct inode_operations
22744 iops __attribute__ ((unused)) = {
22745 .get_link = get_link,
22746 };
22747
22748 int
22749 main (void)
22750 {
22751
22752
22753 ;
22754 return 0;
22755 }
22756
22757 _ACEOF
22758
22759
22760
22761 cat - <<_ACEOF >conftest.h
22762
22763 _ACEOF
22764
22765
22766 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
22767 echo "obj-m := conftest.o" >build/Makefile
22768 modpost_flag=''
22769 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
22770 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
22771 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22772 (eval $ac_try) 2>&5
22773 ac_status=$?
22774 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22775 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
22776 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22777 (eval $ac_try) 2>&5
22778 ac_status=$?
22779 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22780 (exit $ac_status); }; }; then
22781
22782 { $as_echo "$as_me:$LINENO: result: yes" >&5
22783 $as_echo "yes" >&6; }
22784
22785 cat >>confdefs.h <<\_ACEOF
22786 #define HAVE_GET_LINK_COOKIE 1
22787 _ACEOF
22788
22789
22790 else
22791 $as_echo "$as_me: failed program was:" >&5
22792 sed 's/^/| /' conftest.$ac_ext >&5
22793
22794 { $as_echo "$as_me:$LINENO: result: no" >&5
22795 $as_echo "no" >&6; }
22796
22797 { $as_echo "$as_me:$LINENO: checking whether iops->follow_link() passes cookie" >&5
22798 $as_echo_n "checking whether iops->follow_link() passes cookie... " >&6; }
22799
22800
22801 cat confdefs.h - <<_ACEOF >conftest.c
22802 /* confdefs.h. */
22803 _ACEOF
22804 cat confdefs.h >>conftest.$ac_ext
22805 cat >>conftest.$ac_ext <<_ACEOF
22806 /* end confdefs.h. */
22807
22808
22809 #include <linux/fs.h>
22810 const char *follow_link(struct dentry *de,
22811 void **cookie) { return "symlink"; }
22812 static struct inode_operations
22813 iops __attribute__ ((unused)) = {
22814 .follow_link = follow_link,
22815 };
22816
22817 int
22818 main (void)
22819 {
22820
22821
22822 ;
22823 return 0;
22824 }
22825
22826 _ACEOF
22827
22828
22829
22830 cat - <<_ACEOF >conftest.h
22831
22832 _ACEOF
22833
22834
22835 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
22836 echo "obj-m := conftest.o" >build/Makefile
22837 modpost_flag=''
22838 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
22839 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
22840 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22841 (eval $ac_try) 2>&5
22842 ac_status=$?
22843 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22844 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
22845 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22846 (eval $ac_try) 2>&5
22847 ac_status=$?
22848 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22849 (exit $ac_status); }; }; then
22850
22851 { $as_echo "$as_me:$LINENO: result: yes" >&5
22852 $as_echo "yes" >&6; }
22853
22854 cat >>confdefs.h <<\_ACEOF
22855 #define HAVE_FOLLOW_LINK_COOKIE 1
22856 _ACEOF
22857
22858
22859 else
22860 $as_echo "$as_me: failed program was:" >&5
22861 sed 's/^/| /' conftest.$ac_ext >&5
22862
22863 { $as_echo "$as_me:$LINENO: result: no" >&5
22864 $as_echo "no" >&6; }
22865 { $as_echo "$as_me:$LINENO: checking whether iops->follow_link() passes nameidata" >&5
22866 $as_echo_n "checking whether iops->follow_link() passes nameidata... " >&6; }
22867
22868
22869 cat confdefs.h - <<_ACEOF >conftest.c
22870 /* confdefs.h. */
22871 _ACEOF
22872 cat confdefs.h >>conftest.$ac_ext
22873 cat >>conftest.$ac_ext <<_ACEOF
22874 /* end confdefs.h. */
22875
22876
22877 #include <linux/fs.h>
22878 void *follow_link(struct dentry *de, struct
22879 nameidata *nd) { return (void *)NULL; }
22880 static struct inode_operations
22881 iops __attribute__ ((unused)) = {
22882 .follow_link = follow_link,
22883 };
22884
22885 int
22886 main (void)
22887 {
22888
22889
22890 ;
22891 return 0;
22892 }
22893
22894 _ACEOF
22895
22896
22897
22898 cat - <<_ACEOF >conftest.h
22899
22900 _ACEOF
22901
22902
22903 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
22904 echo "obj-m := conftest.o" >build/Makefile
22905 modpost_flag=''
22906 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
22907 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
22908 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22909 (eval $ac_try) 2>&5
22910 ac_status=$?
22911 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22912 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
22913 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22914 (eval $ac_try) 2>&5
22915 ac_status=$?
22916 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22917 (exit $ac_status); }; }; then
22918
22919 { $as_echo "$as_me:$LINENO: result: yes" >&5
22920 $as_echo "yes" >&6; }
22921
22922 cat >>confdefs.h <<\_ACEOF
22923 #define HAVE_FOLLOW_LINK_NAMEIDATA 1
22924 _ACEOF
22925
22926
22927 else
22928 $as_echo "$as_me: failed program was:" >&5
22929 sed 's/^/| /' conftest.$ac_ext >&5
22930
22931 { { $as_echo "$as_me:$LINENO: error: no; please file a bug report" >&5
22932 $as_echo "$as_me: error: no; please file a bug report" >&2;}
22933 { (exit 1); exit 1; }; }
22934
22935
22936
22937 fi
22938
22939 rm -Rf build
22940
22941
22942
22943
22944
22945 fi
22946
22947 rm -Rf build
22948
22949
22950
22951
22952
22953
22954 fi
22955
22956 rm -Rf build
22957
22958
22959
22960
22961
22962 fi
22963
22964 rm -Rf build
22965
22966
22967
22968
22969
22970
22971 cat confdefs.h - <<_ACEOF >conftest.c
22972 /* confdefs.h. */
22973 _ACEOF
22974 cat confdefs.h >>conftest.$ac_ext
22975 cat >>conftest.$ac_ext <<_ACEOF
22976 /* end confdefs.h. */
22977
22978
22979 #if !defined(HAVE_GET_LINK_DELAYED)
22980 #error "Expecting get_link() delayed done"
22981 #endif
22982
22983 int
22984 main (void)
22985 {
22986
22987
22988 ;
22989 return 0;
22990 }
22991
22992 _ACEOF
22993
22994
22995
22996 cat - <<_ACEOF >conftest.h
22997
22998 _ACEOF
22999
23000
23001 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
23002 echo "obj-m := conftest.o" >build/Makefile
23003 modpost_flag=''
23004 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
23005 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
23006 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23007 (eval $ac_try) 2>&5
23008 ac_status=$?
23009 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23010 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
23011 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23012 (eval $ac_try) 2>&5
23013 ac_status=$?
23014 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23015 (exit $ac_status); }; }; then
23016
23017
23018 cat >>confdefs.h <<\_ACEOF
23019 #define HAVE_PUT_LINK_DELAYED 1
23020 _ACEOF
23021
23022
23023 else
23024 $as_echo "$as_me: failed program was:" >&5
23025 sed 's/^/| /' conftest.$ac_ext >&5
23026
23027 { $as_echo "$as_me:$LINENO: checking whether iops->put_link() passes cookie" >&5
23028 $as_echo_n "checking whether iops->put_link() passes cookie... " >&6; }
23029
23030
23031 cat confdefs.h - <<_ACEOF >conftest.c
23032 /* confdefs.h. */
23033 _ACEOF
23034 cat confdefs.h >>conftest.$ac_ext
23035 cat >>conftest.$ac_ext <<_ACEOF
23036 /* end confdefs.h. */
23037
23038
23039 #include <linux/fs.h>
23040 void put_link(struct inode *ip, void *cookie)
23041 { return; }
23042 static struct inode_operations
23043 iops __attribute__ ((unused)) = {
23044 .put_link = put_link,
23045 };
23046
23047 int
23048 main (void)
23049 {
23050
23051
23052 ;
23053 return 0;
23054 }
23055
23056 _ACEOF
23057
23058
23059
23060 cat - <<_ACEOF >conftest.h
23061
23062 _ACEOF
23063
23064
23065 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
23066 echo "obj-m := conftest.o" >build/Makefile
23067 modpost_flag=''
23068 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
23069 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
23070 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23071 (eval $ac_try) 2>&5
23072 ac_status=$?
23073 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23074 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
23075 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23076 (eval $ac_try) 2>&5
23077 ac_status=$?
23078 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23079 (exit $ac_status); }; }; then
23080
23081 { $as_echo "$as_me:$LINENO: result: yes" >&5
23082 $as_echo "yes" >&6; }
23083
23084 cat >>confdefs.h <<\_ACEOF
23085 #define HAVE_PUT_LINK_COOKIE 1
23086 _ACEOF
23087
23088
23089 else
23090 $as_echo "$as_me: failed program was:" >&5
23091 sed 's/^/| /' conftest.$ac_ext >&5
23092
23093 { $as_echo "$as_me:$LINENO: result: no" >&5
23094 $as_echo "no" >&6; }
23095 { $as_echo "$as_me:$LINENO: checking whether iops->put_link() passes nameidata" >&5
23096 $as_echo_n "checking whether iops->put_link() passes nameidata... " >&6; }
23097
23098
23099 cat confdefs.h - <<_ACEOF >conftest.c
23100 /* confdefs.h. */
23101 _ACEOF
23102 cat confdefs.h >>conftest.$ac_ext
23103 cat >>conftest.$ac_ext <<_ACEOF
23104 /* end confdefs.h. */
23105
23106
23107 #include <linux/fs.h>
23108 void put_link(struct dentry *de, struct
23109 nameidata *nd, void *ptr) { return; }
23110 static struct inode_operations
23111 iops __attribute__ ((unused)) = {
23112 .put_link = put_link,
23113 };
23114
23115 int
23116 main (void)
23117 {
23118
23119
23120 ;
23121 return 0;
23122 }
23123
23124 _ACEOF
23125
23126
23127
23128 cat - <<_ACEOF >conftest.h
23129
23130 _ACEOF
23131
23132
23133 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
23134 echo "obj-m := conftest.o" >build/Makefile
23135 modpost_flag=''
23136 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
23137 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
23138 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23139 (eval $ac_try) 2>&5
23140 ac_status=$?
23141 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23142 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
23143 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23144 (eval $ac_try) 2>&5
23145 ac_status=$?
23146 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23147 (exit $ac_status); }; }; then
23148
23149 { $as_echo "$as_me:$LINENO: result: yes" >&5
23150 $as_echo "yes" >&6; }
23151
23152 cat >>confdefs.h <<\_ACEOF
23153 #define HAVE_PUT_LINK_NAMEIDATA 1
23154 _ACEOF
23155
23156
23157 else
23158 $as_echo "$as_me: failed program was:" >&5
23159 sed 's/^/| /' conftest.$ac_ext >&5
23160
23161 { { $as_echo "$as_me:$LINENO: error: no; please file a bug report" >&5
23162 $as_echo "$as_me: error: no; please file a bug report" >&2;}
23163 { (exit 1); exit 1; }; }
23164
23165
23166
23167 fi
23168
23169 rm -Rf build
23170
23171
23172
23173
23174
23175 fi
23176
23177 rm -Rf build
23178
23179
23180
23181
23182
23183 fi
23184
23185 rm -Rf build
23186
23187
23188
23189
23190 { $as_echo "$as_me:$LINENO: checking whether i_op->tmpfile() exists" >&5
23191 $as_echo_n "checking whether i_op->tmpfile() exists... " >&6; }
23192
23193
23194 cat confdefs.h - <<_ACEOF >conftest.c
23195 /* confdefs.h. */
23196 _ACEOF
23197 cat confdefs.h >>conftest.$ac_ext
23198 cat >>conftest.$ac_ext <<_ACEOF
23199 /* end confdefs.h. */
23200
23201
23202 #include <linux/fs.h>
23203 int tmpfile(struct inode *inode, struct dentry *dentry,
23204 umode_t mode) { return 0; }
23205 static struct inode_operations
23206 iops __attribute__ ((unused)) = {
23207 .tmpfile = tmpfile,
23208 };
23209
23210 int
23211 main (void)
23212 {
23213
23214
23215 ;
23216 return 0;
23217 }
23218
23219 _ACEOF
23220
23221
23222
23223 cat - <<_ACEOF >conftest.h
23224
23225 _ACEOF
23226
23227
23228 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
23229 echo "obj-m := conftest.o" >build/Makefile
23230 modpost_flag=''
23231 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
23232 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
23233 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23234 (eval $ac_try) 2>&5
23235 ac_status=$?
23236 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23237 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
23238 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23239 (eval $ac_try) 2>&5
23240 ac_status=$?
23241 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23242 (exit $ac_status); }; }; then
23243
23244 { $as_echo "$as_me:$LINENO: result: yes" >&5
23245 $as_echo "yes" >&6; }
23246
23247 cat >>confdefs.h <<\_ACEOF
23248 #define HAVE_TMPFILE 1
23249 _ACEOF
23250
23251
23252 else
23253 $as_echo "$as_me: failed program was:" >&5
23254 sed 's/^/| /' conftest.$ac_ext >&5
23255
23256 { $as_echo "$as_me:$LINENO: result: no" >&5
23257 $as_echo "no" >&6; }
23258
23259
23260
23261 fi
23262
23263 rm -Rf build
23264
23265
23266
23267
23268 { $as_echo "$as_me:$LINENO: checking whether iops->truncate_range() exists" >&5
23269 $as_echo_n "checking whether iops->truncate_range() exists... " >&6; }
23270
23271
23272 cat confdefs.h - <<_ACEOF >conftest.c
23273 /* confdefs.h. */
23274 _ACEOF
23275 cat confdefs.h >>conftest.$ac_ext
23276 cat >>conftest.$ac_ext <<_ACEOF
23277 /* end confdefs.h. */
23278
23279
23280 #include <linux/fs.h>
23281 void truncate_range(struct inode *inode, loff_t start,
23282 loff_t end) { return; }
23283 static struct inode_operations iops __attribute__ ((unused)) = {
23284 .truncate_range = truncate_range,
23285 };
23286
23287 int
23288 main (void)
23289 {
23290
23291
23292 ;
23293 return 0;
23294 }
23295
23296 _ACEOF
23297
23298
23299
23300 cat - <<_ACEOF >conftest.h
23301
23302 _ACEOF
23303
23304
23305 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
23306 echo "obj-m := conftest.o" >build/Makefile
23307 modpost_flag=''
23308 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
23309 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
23310 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23311 (eval $ac_try) 2>&5
23312 ac_status=$?
23313 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23314 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
23315 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23316 (eval $ac_try) 2>&5
23317 ac_status=$?
23318 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23319 (exit $ac_status); }; }; then
23320
23321 { $as_echo "$as_me:$LINENO: result: yes" >&5
23322 $as_echo "yes" >&6; }
23323
23324 cat >>confdefs.h <<\_ACEOF
23325 #define HAVE_INODE_TRUNCATE_RANGE 1
23326 _ACEOF
23327
23328
23329 else
23330 $as_echo "$as_me: failed program was:" >&5
23331 sed 's/^/| /' conftest.$ac_ext >&5
23332
23333 { $as_echo "$as_me:$LINENO: result: no" >&5
23334 $as_echo "no" >&6; }
23335
23336
23337
23338 fi
23339
23340 rm -Rf build
23341
23342
23343
23344
23345 { $as_echo "$as_me:$LINENO: checking whether dops->d_automount() exists" >&5
23346 $as_echo_n "checking whether dops->d_automount() exists... " >&6; }
23347
23348
23349 cat confdefs.h - <<_ACEOF >conftest.c
23350 /* confdefs.h. */
23351 _ACEOF
23352 cat confdefs.h >>conftest.$ac_ext
23353 cat >>conftest.$ac_ext <<_ACEOF
23354 /* end confdefs.h. */
23355
23356
23357 #include <linux/dcache.h>
23358 struct vfsmount *d_automount(struct path *p) { return NULL; }
23359 struct dentry_operations dops __attribute__ ((unused)) = {
23360 .d_automount = d_automount,
23361 };
23362
23363 int
23364 main (void)
23365 {
23366
23367
23368 ;
23369 return 0;
23370 }
23371
23372 _ACEOF
23373
23374
23375
23376 cat - <<_ACEOF >conftest.h
23377
23378 _ACEOF
23379
23380
23381 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
23382 echo "obj-m := conftest.o" >build/Makefile
23383 modpost_flag=''
23384 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
23385 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
23386 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23387 (eval $ac_try) 2>&5
23388 ac_status=$?
23389 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23390 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
23391 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23392 (eval $ac_try) 2>&5
23393 ac_status=$?
23394 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23395 (exit $ac_status); }; }; then
23396
23397 { $as_echo "$as_me:$LINENO: result: yes" >&5
23398 $as_echo "yes" >&6; }
23399
23400 cat >>confdefs.h <<\_ACEOF
23401 #define HAVE_AUTOMOUNT 1
23402 _ACEOF
23403
23404
23405 else
23406 $as_echo "$as_me: failed program was:" >&5
23407 sed 's/^/| /' conftest.$ac_ext >&5
23408
23409 { $as_echo "$as_me:$LINENO: result: no" >&5
23410 $as_echo "no" >&6; }
23411
23412
23413
23414 fi
23415
23416 rm -Rf build
23417
23418
23419
23420
23421 { $as_echo "$as_me:$LINENO: checking whether eops->encode_fh() wants inode" >&5
23422 $as_echo_n "checking whether eops->encode_fh() wants inode... " >&6; }
23423
23424
23425 cat confdefs.h - <<_ACEOF >conftest.c
23426 /* confdefs.h. */
23427 _ACEOF
23428 cat confdefs.h >>conftest.$ac_ext
23429 cat >>conftest.$ac_ext <<_ACEOF
23430 /* end confdefs.h. */
23431
23432
23433 #include <linux/exportfs.h>
23434 int encode_fh(struct inode *inode, __u32 *fh, int *max_len,
23435 struct inode *parent) { return 0; }
23436 static struct export_operations eops __attribute__ ((unused))={
23437 .encode_fh = encode_fh,
23438 };
23439
23440 int
23441 main (void)
23442 {
23443
23444
23445 ;
23446 return 0;
23447 }
23448
23449 _ACEOF
23450
23451
23452
23453 cat - <<_ACEOF >conftest.h
23454
23455 _ACEOF
23456
23457
23458 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
23459 echo "obj-m := conftest.o" >build/Makefile
23460 modpost_flag=''
23461 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
23462 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
23463 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23464 (eval $ac_try) 2>&5
23465 ac_status=$?
23466 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23467 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
23468 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23469 (eval $ac_try) 2>&5
23470 ac_status=$?
23471 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23472 (exit $ac_status); }; }; then
23473
23474 { $as_echo "$as_me:$LINENO: result: yes" >&5
23475 $as_echo "yes" >&6; }
23476
23477 cat >>confdefs.h <<\_ACEOF
23478 #define HAVE_ENCODE_FH_WITH_INODE 1
23479 _ACEOF
23480
23481
23482 else
23483 $as_echo "$as_me: failed program was:" >&5
23484 sed 's/^/| /' conftest.$ac_ext >&5
23485
23486 { $as_echo "$as_me:$LINENO: result: no" >&5
23487 $as_echo "no" >&6; }
23488
23489
23490
23491 fi
23492
23493 rm -Rf build
23494
23495
23496
23497
23498 { $as_echo "$as_me:$LINENO: checking whether eops->commit_metadata() exists" >&5
23499 $as_echo_n "checking whether eops->commit_metadata() exists... " >&6; }
23500
23501
23502 cat confdefs.h - <<_ACEOF >conftest.c
23503 /* confdefs.h. */
23504 _ACEOF
23505 cat confdefs.h >>conftest.$ac_ext
23506 cat >>conftest.$ac_ext <<_ACEOF
23507 /* end confdefs.h. */
23508
23509
23510 #include <linux/exportfs.h>
23511 int commit_metadata(struct inode *inode) { return 0; }
23512 static struct export_operations eops __attribute__ ((unused))={
23513 .commit_metadata = commit_metadata,
23514 };
23515
23516 int
23517 main (void)
23518 {
23519
23520
23521 ;
23522 return 0;
23523 }
23524
23525 _ACEOF
23526
23527
23528
23529 cat - <<_ACEOF >conftest.h
23530
23531 _ACEOF
23532
23533
23534 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
23535 echo "obj-m := conftest.o" >build/Makefile
23536 modpost_flag=''
23537 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
23538 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
23539 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23540 (eval $ac_try) 2>&5
23541 ac_status=$?
23542 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23543 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
23544 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23545 (eval $ac_try) 2>&5
23546 ac_status=$?
23547 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23548 (exit $ac_status); }; }; then
23549
23550 { $as_echo "$as_me:$LINENO: result: yes" >&5
23551 $as_echo "yes" >&6; }
23552
23553 cat >>confdefs.h <<\_ACEOF
23554 #define HAVE_COMMIT_METADATA 1
23555 _ACEOF
23556
23557
23558 else
23559 $as_echo "$as_me: failed program was:" >&5
23560 sed 's/^/| /' conftest.$ac_ext >&5
23561
23562 { $as_echo "$as_me:$LINENO: result: no" >&5
23563 $as_echo "no" >&6; }
23564
23565
23566
23567 fi
23568
23569 rm -Rf build
23570
23571
23572
23573 { $as_echo "$as_me:$LINENO: checking whether clear_inode() is available" >&5
23574 $as_echo_n "checking whether clear_inode() is available... " >&6; }
23575
23576
23577
23578 cat confdefs.h - <<_ACEOF >conftest.c
23579 /* confdefs.h. */
23580 _ACEOF
23581 cat confdefs.h >>conftest.$ac_ext
23582 cat >>conftest.$ac_ext <<_ACEOF
23583 /* end confdefs.h. */
23584
23585
23586 #include <linux/fs.h>
23587
23588 int
23589 main (void)
23590 {
23591
23592 clear_inode(NULL);
23593
23594 ;
23595 return 0;
23596 }
23597
23598 _ACEOF
23599
23600
23601
23602 cat - <<_ACEOF >conftest.h
23603
23604 _ACEOF
23605
23606
23607 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
23608 echo "obj-m := conftest.o" >build/Makefile
23609 modpost_flag=''
23610 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
23611 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
23612 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23613 (eval $ac_try) 2>&5
23614 ac_status=$?
23615 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23616 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
23617 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23618 (eval $ac_try) 2>&5
23619 ac_status=$?
23620 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23621 (exit $ac_status); }; }; then
23622 rc=0
23623 else
23624 $as_echo "$as_me: failed program was:" >&5
23625 sed 's/^/| /' conftest.$ac_ext >&5
23626 rc=1
23627
23628
23629 fi
23630
23631 rm -Rf build
23632
23633
23634 if test $rc -ne 0; then :
23635
23636 { $as_echo "$as_me:$LINENO: result: no" >&5
23637 $as_echo "no" >&6; }
23638
23639 else
23640 if test "x$enable_linux_builtin" != xyes; then
23641
23642 grep -q -E '[[:space:]]clear_inode[[:space:]]' \
23643 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
23644 rc=$?
23645 if test $rc -ne 0; then
23646 export=0
23647 for file in fs/inode.c; do
23648 grep -q -E "EXPORT_SYMBOL.*(clear_inode)" \
23649 "$LINUX/$file" 2>/dev/null
23650 rc=$?
23651 if test $rc -eq 0; then
23652 export=1
23653 break;
23654 fi
23655 done
23656 if test $export -eq 0; then :
23657 rc=1
23658 else :
23659 rc=0
23660 fi
23661 else :
23662 rc=0
23663 fi
23664
23665 fi
23666 if test $rc -ne 0; then :
23667
23668 { $as_echo "$as_me:$LINENO: result: no" >&5
23669 $as_echo "no" >&6; }
23670
23671 else :
23672
23673 { $as_echo "$as_me:$LINENO: result: yes" >&5
23674 $as_echo "yes" >&6; }
23675
23676 cat >>confdefs.h <<\_ACEOF
23677 #define HAVE_CLEAR_INODE 1
23678 _ACEOF
23679
23680
23681 fi
23682 fi
23683
23684
23685 { $as_echo "$as_me:$LINENO: checking whether setattr_prepare() is available" >&5
23686 $as_echo_n "checking whether setattr_prepare() is available... " >&6; }
23687
23688
23689
23690 cat confdefs.h - <<_ACEOF >conftest.c
23691 /* confdefs.h. */
23692 _ACEOF
23693 cat confdefs.h >>conftest.$ac_ext
23694 cat >>conftest.$ac_ext <<_ACEOF
23695 /* end confdefs.h. */
23696
23697
23698 #include <linux/fs.h>
23699
23700 int
23701 main (void)
23702 {
23703
23704 struct dentry *dentry = NULL;
23705 struct iattr *attr = NULL;
23706 int error;
23707
23708 error = setattr_prepare(dentry, attr);
23709
23710 ;
23711 return 0;
23712 }
23713
23714 _ACEOF
23715
23716
23717
23718 cat - <<_ACEOF >conftest.h
23719
23720 _ACEOF
23721
23722
23723 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
23724 echo "obj-m := conftest.o" >build/Makefile
23725 modpost_flag=''
23726 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
23727 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
23728 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23729 (eval $ac_try) 2>&5
23730 ac_status=$?
23731 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23732 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
23733 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23734 (eval $ac_try) 2>&5
23735 ac_status=$?
23736 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23737 (exit $ac_status); }; }; then
23738 rc=0
23739 else
23740 $as_echo "$as_me: failed program was:" >&5
23741 sed 's/^/| /' conftest.$ac_ext >&5
23742 rc=1
23743
23744
23745 fi
23746
23747 rm -Rf build
23748
23749
23750 if test $rc -ne 0; then :
23751
23752 { $as_echo "$as_me:$LINENO: result: no" >&5
23753 $as_echo "no" >&6; }
23754
23755 else
23756 if test "x$enable_linux_builtin" != xyes; then
23757
23758 grep -q -E '[[:space:]]setattr_prepare[[:space:]]' \
23759 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
23760 rc=$?
23761 if test $rc -ne 0; then
23762 export=0
23763 for file in fs/attr.c; do
23764 grep -q -E "EXPORT_SYMBOL.*(setattr_prepare)" \
23765 "$LINUX/$file" 2>/dev/null
23766 rc=$?
23767 if test $rc -eq 0; then
23768 export=1
23769 break;
23770 fi
23771 done
23772 if test $export -eq 0; then :
23773 rc=1
23774 else :
23775 rc=0
23776 fi
23777 else :
23778 rc=0
23779 fi
23780
23781 fi
23782 if test $rc -ne 0; then :
23783
23784 { $as_echo "$as_me:$LINENO: result: no" >&5
23785 $as_echo "no" >&6; }
23786
23787 else :
23788
23789 { $as_echo "$as_me:$LINENO: result: yes" >&5
23790 $as_echo "yes" >&6; }
23791
23792 cat >>confdefs.h <<\_ACEOF
23793 #define HAVE_SETATTR_PREPARE 1
23794 _ACEOF
23795
23796
23797 fi
23798 fi
23799
23800
23801 { $as_echo "$as_me:$LINENO: checking whether insert_inode_locked() is available" >&5
23802 $as_echo_n "checking whether insert_inode_locked() is available... " >&6; }
23803
23804
23805
23806 cat confdefs.h - <<_ACEOF >conftest.c
23807 /* confdefs.h. */
23808 _ACEOF
23809 cat confdefs.h >>conftest.$ac_ext
23810 cat >>conftest.$ac_ext <<_ACEOF
23811 /* end confdefs.h. */
23812
23813
23814 #include <linux/fs.h>
23815
23816 int
23817 main (void)
23818 {
23819
23820 insert_inode_locked(NULL);
23821
23822 ;
23823 return 0;
23824 }
23825
23826 _ACEOF
23827
23828
23829
23830 cat - <<_ACEOF >conftest.h
23831
23832 _ACEOF
23833
23834
23835 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
23836 echo "obj-m := conftest.o" >build/Makefile
23837 modpost_flag=''
23838 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
23839 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
23840 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23841 (eval $ac_try) 2>&5
23842 ac_status=$?
23843 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23844 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
23845 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23846 (eval $ac_try) 2>&5
23847 ac_status=$?
23848 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23849 (exit $ac_status); }; }; then
23850 rc=0
23851 else
23852 $as_echo "$as_me: failed program was:" >&5
23853 sed 's/^/| /' conftest.$ac_ext >&5
23854 rc=1
23855
23856
23857 fi
23858
23859 rm -Rf build
23860
23861
23862 if test $rc -ne 0; then :
23863
23864 { $as_echo "$as_me:$LINENO: result: no" >&5
23865 $as_echo "no" >&6; }
23866
23867 else
23868 if test "x$enable_linux_builtin" != xyes; then
23869
23870 grep -q -E '[[:space:]]insert_inode_locked[[:space:]]' \
23871 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
23872 rc=$?
23873 if test $rc -ne 0; then
23874 export=0
23875 for file in fs/inode.c; do
23876 grep -q -E "EXPORT_SYMBOL.*(insert_inode_locked)" \
23877 "$LINUX/$file" 2>/dev/null
23878 rc=$?
23879 if test $rc -eq 0; then
23880 export=1
23881 break;
23882 fi
23883 done
23884 if test $export -eq 0; then :
23885 rc=1
23886 else :
23887 rc=0
23888 fi
23889 else :
23890 rc=0
23891 fi
23892
23893 fi
23894 if test $rc -ne 0; then :
23895
23896 { $as_echo "$as_me:$LINENO: result: no" >&5
23897 $as_echo "no" >&6; }
23898
23899 else :
23900
23901 { $as_echo "$as_me:$LINENO: result: yes" >&5
23902 $as_echo "yes" >&6; }
23903
23904 cat >>confdefs.h <<\_ACEOF
23905 #define HAVE_INSERT_INODE_LOCKED 1
23906 _ACEOF
23907
23908
23909 fi
23910 fi
23911
23912
23913 { $as_echo "$as_me:$LINENO: checking whether d_make_root() is available" >&5
23914 $as_echo_n "checking whether d_make_root() is available... " >&6; }
23915
23916
23917
23918 cat confdefs.h - <<_ACEOF >conftest.c
23919 /* confdefs.h. */
23920 _ACEOF
23921 cat confdefs.h >>conftest.$ac_ext
23922 cat >>conftest.$ac_ext <<_ACEOF
23923 /* end confdefs.h. */
23924
23925
23926 #include <linux/dcache.h>
23927
23928 int
23929 main (void)
23930 {
23931
23932 d_make_root(NULL);
23933
23934 ;
23935 return 0;
23936 }
23937
23938 _ACEOF
23939
23940
23941
23942 cat - <<_ACEOF >conftest.h
23943
23944 _ACEOF
23945
23946
23947 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
23948 echo "obj-m := conftest.o" >build/Makefile
23949 modpost_flag=''
23950 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
23951 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
23952 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23953 (eval $ac_try) 2>&5
23954 ac_status=$?
23955 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23956 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
23957 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23958 (eval $ac_try) 2>&5
23959 ac_status=$?
23960 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23961 (exit $ac_status); }; }; then
23962 rc=0
23963 else
23964 $as_echo "$as_me: failed program was:" >&5
23965 sed 's/^/| /' conftest.$ac_ext >&5
23966 rc=1
23967
23968
23969 fi
23970
23971 rm -Rf build
23972
23973
23974 if test $rc -ne 0; then :
23975
23976 { $as_echo "$as_me:$LINENO: result: no" >&5
23977 $as_echo "no" >&6; }
23978
23979 else
23980 if test "x$enable_linux_builtin" != xyes; then
23981
23982 grep -q -E '[[:space:]]d_make_root[[:space:]]' \
23983 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
23984 rc=$?
23985 if test $rc -ne 0; then
23986 export=0
23987 for file in fs/dcache.c; do
23988 grep -q -E "EXPORT_SYMBOL.*(d_make_root)" \
23989 "$LINUX/$file" 2>/dev/null
23990 rc=$?
23991 if test $rc -eq 0; then
23992 export=1
23993 break;
23994 fi
23995 done
23996 if test $export -eq 0; then :
23997 rc=1
23998 else :
23999 rc=0
24000 fi
24001 else :
24002 rc=0
24003 fi
24004
24005 fi
24006 if test $rc -ne 0; then :
24007
24008 { $as_echo "$as_me:$LINENO: result: no" >&5
24009 $as_echo "no" >&6; }
24010
24011 else :
24012
24013 { $as_echo "$as_me:$LINENO: result: yes" >&5
24014 $as_echo "yes" >&6; }
24015
24016 cat >>confdefs.h <<\_ACEOF
24017 #define HAVE_D_MAKE_ROOT 1
24018 _ACEOF
24019
24020
24021 fi
24022 fi
24023
24024
24025 { $as_echo "$as_me:$LINENO: checking whether d_obtain_alias() is available" >&5
24026 $as_echo_n "checking whether d_obtain_alias() is available... " >&6; }
24027
24028
24029
24030 cat confdefs.h - <<_ACEOF >conftest.c
24031 /* confdefs.h. */
24032 _ACEOF
24033 cat confdefs.h >>conftest.$ac_ext
24034 cat >>conftest.$ac_ext <<_ACEOF
24035 /* end confdefs.h. */
24036
24037
24038 #include <linux/dcache.h>
24039
24040 int
24041 main (void)
24042 {
24043
24044 d_obtain_alias(NULL);
24045
24046 ;
24047 return 0;
24048 }
24049
24050 _ACEOF
24051
24052
24053
24054 cat - <<_ACEOF >conftest.h
24055
24056 _ACEOF
24057
24058
24059 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
24060 echo "obj-m := conftest.o" >build/Makefile
24061 modpost_flag=''
24062 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
24063 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
24064 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24065 (eval $ac_try) 2>&5
24066 ac_status=$?
24067 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24068 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
24069 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24070 (eval $ac_try) 2>&5
24071 ac_status=$?
24072 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24073 (exit $ac_status); }; }; then
24074 rc=0
24075 else
24076 $as_echo "$as_me: failed program was:" >&5
24077 sed 's/^/| /' conftest.$ac_ext >&5
24078 rc=1
24079
24080
24081 fi
24082
24083 rm -Rf build
24084
24085
24086 if test $rc -ne 0; then :
24087
24088 { $as_echo "$as_me:$LINENO: result: no" >&5
24089 $as_echo "no" >&6; }
24090
24091 else
24092 if test "x$enable_linux_builtin" != xyes; then
24093
24094 grep -q -E '[[:space:]]d_obtain_alias[[:space:]]' \
24095 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
24096 rc=$?
24097 if test $rc -ne 0; then
24098 export=0
24099 for file in fs/dcache.c; do
24100 grep -q -E "EXPORT_SYMBOL.*(d_obtain_alias)" \
24101 "$LINUX/$file" 2>/dev/null
24102 rc=$?
24103 if test $rc -eq 0; then
24104 export=1
24105 break;
24106 fi
24107 done
24108 if test $export -eq 0; then :
24109 rc=1
24110 else :
24111 rc=0
24112 fi
24113 else :
24114 rc=0
24115 fi
24116
24117 fi
24118 if test $rc -ne 0; then :
24119
24120 { $as_echo "$as_me:$LINENO: result: no" >&5
24121 $as_echo "no" >&6; }
24122
24123 else :
24124
24125 { $as_echo "$as_me:$LINENO: result: yes" >&5
24126 $as_echo "yes" >&6; }
24127
24128 cat >>confdefs.h <<\_ACEOF
24129 #define HAVE_D_OBTAIN_ALIAS 1
24130 _ACEOF
24131
24132
24133 fi
24134 fi
24135
24136
24137 { $as_echo "$as_me:$LINENO: checking whether d_prune_aliases() is available" >&5
24138 $as_echo_n "checking whether d_prune_aliases() is available... " >&6; }
24139
24140
24141
24142 cat confdefs.h - <<_ACEOF >conftest.c
24143 /* confdefs.h. */
24144 _ACEOF
24145 cat confdefs.h >>conftest.$ac_ext
24146 cat >>conftest.$ac_ext <<_ACEOF
24147 /* end confdefs.h. */
24148
24149
24150 #include <linux/dcache.h>
24151
24152 int
24153 main (void)
24154 {
24155
24156 struct inode *ip = NULL;
24157 d_prune_aliases(ip);
24158
24159 ;
24160 return 0;
24161 }
24162
24163 _ACEOF
24164
24165
24166
24167 cat - <<_ACEOF >conftest.h
24168
24169 _ACEOF
24170
24171
24172 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
24173 echo "obj-m := conftest.o" >build/Makefile
24174 modpost_flag=''
24175 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
24176 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
24177 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24178 (eval $ac_try) 2>&5
24179 ac_status=$?
24180 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24181 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
24182 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24183 (eval $ac_try) 2>&5
24184 ac_status=$?
24185 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24186 (exit $ac_status); }; }; then
24187 rc=0
24188 else
24189 $as_echo "$as_me: failed program was:" >&5
24190 sed 's/^/| /' conftest.$ac_ext >&5
24191 rc=1
24192
24193
24194 fi
24195
24196 rm -Rf build
24197
24198
24199 if test $rc -ne 0; then :
24200
24201 { $as_echo "$as_me:$LINENO: result: no" >&5
24202 $as_echo "no" >&6; }
24203
24204 else
24205 if test "x$enable_linux_builtin" != xyes; then
24206
24207 grep -q -E '[[:space:]]d_prune_aliases[[:space:]]' \
24208 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
24209 rc=$?
24210 if test $rc -ne 0; then
24211 export=0
24212 for file in fs/dcache.c; do
24213 grep -q -E "EXPORT_SYMBOL.*(d_prune_aliases)" \
24214 "$LINUX/$file" 2>/dev/null
24215 rc=$?
24216 if test $rc -eq 0; then
24217 export=1
24218 break;
24219 fi
24220 done
24221 if test $export -eq 0; then :
24222 rc=1
24223 else :
24224 rc=0
24225 fi
24226 else :
24227 rc=0
24228 fi
24229
24230 fi
24231 if test $rc -ne 0; then :
24232
24233 { $as_echo "$as_me:$LINENO: result: no" >&5
24234 $as_echo "no" >&6; }
24235
24236 else :
24237
24238 { $as_echo "$as_me:$LINENO: result: yes" >&5
24239 $as_echo "yes" >&6; }
24240
24241 cat >>confdefs.h <<\_ACEOF
24242 #define HAVE_D_PRUNE_ALIASES 1
24243 _ACEOF
24244
24245
24246 fi
24247 fi
24248
24249
24250 { $as_echo "$as_me:$LINENO: checking whether d_set_d_op() is available" >&5
24251 $as_echo_n "checking whether d_set_d_op() is available... " >&6; }
24252
24253
24254
24255 cat confdefs.h - <<_ACEOF >conftest.c
24256 /* confdefs.h. */
24257 _ACEOF
24258 cat confdefs.h >>conftest.$ac_ext
24259 cat >>conftest.$ac_ext <<_ACEOF
24260 /* end confdefs.h. */
24261
24262
24263 #include <linux/dcache.h>
24264
24265 int
24266 main (void)
24267 {
24268
24269 d_set_d_op(NULL, NULL);
24270
24271 ;
24272 return 0;
24273 }
24274
24275 _ACEOF
24276
24277
24278
24279 cat - <<_ACEOF >conftest.h
24280
24281 _ACEOF
24282
24283
24284 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
24285 echo "obj-m := conftest.o" >build/Makefile
24286 modpost_flag=''
24287 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
24288 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
24289 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24290 (eval $ac_try) 2>&5
24291 ac_status=$?
24292 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24293 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
24294 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24295 (eval $ac_try) 2>&5
24296 ac_status=$?
24297 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24298 (exit $ac_status); }; }; then
24299 rc=0
24300 else
24301 $as_echo "$as_me: failed program was:" >&5
24302 sed 's/^/| /' conftest.$ac_ext >&5
24303 rc=1
24304
24305
24306 fi
24307
24308 rm -Rf build
24309
24310
24311 if test $rc -ne 0; then :
24312
24313 { $as_echo "$as_me:$LINENO: result: no" >&5
24314 $as_echo "no" >&6; }
24315
24316 else
24317 if test "x$enable_linux_builtin" != xyes; then
24318
24319 grep -q -E '[[:space:]]d_set_d_op[[:space:]]' \
24320 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
24321 rc=$?
24322 if test $rc -ne 0; then
24323 export=0
24324 for file in fs/dcache.c; do
24325 grep -q -E "EXPORT_SYMBOL.*(d_set_d_op)" \
24326 "$LINUX/$file" 2>/dev/null
24327 rc=$?
24328 if test $rc -eq 0; then
24329 export=1
24330 break;
24331 fi
24332 done
24333 if test $export -eq 0; then :
24334 rc=1
24335 else :
24336 rc=0
24337 fi
24338 else :
24339 rc=0
24340 fi
24341
24342 fi
24343 if test $rc -ne 0; then :
24344
24345 { $as_echo "$as_me:$LINENO: result: no" >&5
24346 $as_echo "no" >&6; }
24347
24348 else :
24349
24350 { $as_echo "$as_me:$LINENO: result: yes" >&5
24351 $as_echo "yes" >&6; }
24352
24353 cat >>confdefs.h <<\_ACEOF
24354 #define HAVE_D_SET_D_OP 1
24355 _ACEOF
24356
24357
24358 fi
24359 fi
24360
24361
24362
24363 { $as_echo "$as_me:$LINENO: checking whether dops->d_revalidate() takes struct nameidata" >&5
24364 $as_echo_n "checking whether dops->d_revalidate() takes struct nameidata... " >&6; }
24365
24366
24367 cat confdefs.h - <<_ACEOF >conftest.c
24368 /* confdefs.h. */
24369 _ACEOF
24370 cat confdefs.h >>conftest.$ac_ext
24371 cat >>conftest.$ac_ext <<_ACEOF
24372 /* end confdefs.h. */
24373
24374
24375 #include <linux/dcache.h>
24376 #include <linux/sched.h>
24377
24378 int revalidate (struct dentry *dentry,
24379 struct nameidata *nidata) { return 0; }
24380
24381 static const struct dentry_operations
24382 dops __attribute__ ((unused)) = {
24383 .d_revalidate = revalidate,
24384 };
24385
24386 int
24387 main (void)
24388 {
24389
24390
24391 ;
24392 return 0;
24393 }
24394
24395 _ACEOF
24396
24397
24398
24399 cat - <<_ACEOF >conftest.h
24400
24401 _ACEOF
24402
24403
24404 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
24405 echo "obj-m := conftest.o" >build/Makefile
24406 modpost_flag=''
24407 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
24408 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
24409 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24410 (eval $ac_try) 2>&5
24411 ac_status=$?
24412 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24413 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
24414 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24415 (eval $ac_try) 2>&5
24416 ac_status=$?
24417 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24418 (exit $ac_status); }; }; then
24419
24420 { $as_echo "$as_me:$LINENO: result: yes" >&5
24421 $as_echo "yes" >&6; }
24422
24423 cat >>confdefs.h <<\_ACEOF
24424 #define HAVE_D_REVALIDATE_NAMEIDATA 1
24425 _ACEOF
24426
24427
24428 else
24429 $as_echo "$as_me: failed program was:" >&5
24430 sed 's/^/| /' conftest.$ac_ext >&5
24431
24432 { $as_echo "$as_me:$LINENO: result: no" >&5
24433 $as_echo "no" >&6; }
24434
24435
24436
24437 fi
24438
24439 rm -Rf build
24440
24441
24442
24443
24444 { $as_echo "$as_me:$LINENO: checking whether dentry uses const struct dentry_operations" >&5
24445 $as_echo_n "checking whether dentry uses const struct dentry_operations... " >&6; }
24446
24447
24448 cat confdefs.h - <<_ACEOF >conftest.c
24449 /* confdefs.h. */
24450 _ACEOF
24451 cat confdefs.h >>conftest.$ac_ext
24452 cat >>conftest.$ac_ext <<_ACEOF
24453 /* end confdefs.h. */
24454
24455
24456 #include <linux/dcache.h>
24457
24458 const struct dentry_operations test_d_op = {
24459 .d_revalidate = NULL,
24460 };
24461
24462 int
24463 main (void)
24464 {
24465
24466 struct dentry d __attribute__ ((unused));
24467
24468 d.d_op = &test_d_op;
24469
24470 ;
24471 return 0;
24472 }
24473
24474 _ACEOF
24475
24476
24477
24478 cat - <<_ACEOF >conftest.h
24479
24480 _ACEOF
24481
24482
24483 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
24484 echo "obj-m := conftest.o" >build/Makefile
24485 modpost_flag=''
24486 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
24487 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
24488 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24489 (eval $ac_try) 2>&5
24490 ac_status=$?
24491 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24492 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
24493 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24494 (eval $ac_try) 2>&5
24495 ac_status=$?
24496 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24497 (exit $ac_status); }; }; then
24498
24499 { $as_echo "$as_me:$LINENO: result: yes" >&5
24500 $as_echo "yes" >&6; }
24501
24502 cat >>confdefs.h <<\_ACEOF
24503 #define HAVE_CONST_DENTRY_OPERATIONS 1
24504 _ACEOF
24505
24506
24507 else
24508 $as_echo "$as_me: failed program was:" >&5
24509 sed 's/^/| /' conftest.$ac_ext >&5
24510
24511 { $as_echo "$as_me:$LINENO: result: no" >&5
24512 $as_echo "no" >&6; }
24513
24514
24515
24516 fi
24517
24518 rm -Rf build
24519
24520
24521
24522 { $as_echo "$as_me:$LINENO: checking whether truncate_setsize() is available" >&5
24523 $as_echo_n "checking whether truncate_setsize() is available... " >&6; }
24524
24525
24526
24527 cat confdefs.h - <<_ACEOF >conftest.c
24528 /* confdefs.h. */
24529 _ACEOF
24530 cat confdefs.h >>conftest.$ac_ext
24531 cat >>conftest.$ac_ext <<_ACEOF
24532 /* end confdefs.h. */
24533
24534
24535 #include <linux/mm.h>
24536
24537 int
24538 main (void)
24539 {
24540
24541 truncate_setsize(NULL, 0);
24542
24543 ;
24544 return 0;
24545 }
24546
24547 _ACEOF
24548
24549
24550
24551 cat - <<_ACEOF >conftest.h
24552
24553 _ACEOF
24554
24555
24556 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
24557 echo "obj-m := conftest.o" >build/Makefile
24558 modpost_flag=''
24559 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
24560 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
24561 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24562 (eval $ac_try) 2>&5
24563 ac_status=$?
24564 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24565 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
24566 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24567 (eval $ac_try) 2>&5
24568 ac_status=$?
24569 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24570 (exit $ac_status); }; }; then
24571 rc=0
24572 else
24573 $as_echo "$as_me: failed program was:" >&5
24574 sed 's/^/| /' conftest.$ac_ext >&5
24575 rc=1
24576
24577
24578 fi
24579
24580 rm -Rf build
24581
24582
24583 if test $rc -ne 0; then :
24584
24585 { $as_echo "$as_me:$LINENO: result: no" >&5
24586 $as_echo "no" >&6; }
24587
24588 else
24589 if test "x$enable_linux_builtin" != xyes; then
24590
24591 grep -q -E '[[:space:]]truncate_setsize[[:space:]]' \
24592 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
24593 rc=$?
24594 if test $rc -ne 0; then
24595 export=0
24596 for file in mm/truncate.c; do
24597 grep -q -E "EXPORT_SYMBOL.*(truncate_setsize)" \
24598 "$LINUX/$file" 2>/dev/null
24599 rc=$?
24600 if test $rc -eq 0; then
24601 export=1
24602 break;
24603 fi
24604 done
24605 if test $export -eq 0; then :
24606 rc=1
24607 else :
24608 rc=0
24609 fi
24610 else :
24611 rc=0
24612 fi
24613
24614 fi
24615 if test $rc -ne 0; then :
24616
24617 { $as_echo "$as_me:$LINENO: result: no" >&5
24618 $as_echo "no" >&6; }
24619
24620 else :
24621
24622 { $as_echo "$as_me:$LINENO: result: yes" >&5
24623 $as_echo "yes" >&6; }
24624
24625 cat >>confdefs.h <<\_ACEOF
24626 #define HAVE_TRUNCATE_SETSIZE 1
24627 _ACEOF
24628
24629
24630 fi
24631 fi
24632
24633
24634
24635 { $as_echo "$as_me:$LINENO: checking whether security_inode_init_security wants 6 args" >&5
24636 $as_echo_n "checking whether security_inode_init_security wants 6 args... " >&6; }
24637
24638
24639 cat confdefs.h - <<_ACEOF >conftest.c
24640 /* confdefs.h. */
24641 _ACEOF
24642 cat confdefs.h >>conftest.$ac_ext
24643 cat >>conftest.$ac_ext <<_ACEOF
24644 /* end confdefs.h. */
24645
24646
24647 #include <linux/security.h>
24648
24649 int
24650 main (void)
24651 {
24652
24653 struct inode *ip __attribute__ ((unused)) = NULL;
24654 struct inode *dip __attribute__ ((unused)) = NULL;
24655 const struct qstr *str __attribute__ ((unused)) = NULL;
24656 char *name __attribute__ ((unused)) = NULL;
24657 void *value __attribute__ ((unused)) = NULL;
24658 size_t len __attribute__ ((unused)) = 0;
24659
24660 security_inode_init_security(ip, dip, str, &name, &value, &len);
24661
24662 ;
24663 return 0;
24664 }
24665
24666 _ACEOF
24667
24668
24669
24670 cat - <<_ACEOF >conftest.h
24671
24672 _ACEOF
24673
24674
24675 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
24676 echo "obj-m := conftest.o" >build/Makefile
24677 modpost_flag=''
24678 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
24679 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
24680 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24681 (eval $ac_try) 2>&5
24682 ac_status=$?
24683 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24684 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
24685 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24686 (eval $ac_try) 2>&5
24687 ac_status=$?
24688 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24689 (exit $ac_status); }; }; then
24690
24691 { $as_echo "$as_me:$LINENO: result: yes" >&5
24692 $as_echo "yes" >&6; }
24693
24694 cat >>confdefs.h <<\_ACEOF
24695 #define HAVE_6ARGS_SECURITY_INODE_INIT_SECURITY 1
24696 _ACEOF
24697
24698
24699 else
24700 $as_echo "$as_me: failed program was:" >&5
24701 sed 's/^/| /' conftest.$ac_ext >&5
24702
24703 { $as_echo "$as_me:$LINENO: result: no" >&5
24704 $as_echo "no" >&6; }
24705
24706
24707
24708 fi
24709
24710 rm -Rf build
24711
24712
24713
24714
24715 { $as_echo "$as_me:$LINENO: checking whether security_inode_init_security wants callback" >&5
24716 $as_echo_n "checking whether security_inode_init_security wants callback... " >&6; }
24717
24718
24719 cat confdefs.h - <<_ACEOF >conftest.c
24720 /* confdefs.h. */
24721 _ACEOF
24722 cat confdefs.h >>conftest.$ac_ext
24723 cat >>conftest.$ac_ext <<_ACEOF
24724 /* end confdefs.h. */
24725
24726
24727 #include <linux/security.h>
24728
24729 int
24730 main (void)
24731 {
24732
24733 struct inode *ip __attribute__ ((unused)) = NULL;
24734 struct inode *dip __attribute__ ((unused)) = NULL;
24735 const struct qstr *str __attribute__ ((unused)) = NULL;
24736 initxattrs func __attribute__ ((unused)) = NULL;
24737
24738 security_inode_init_security(ip, dip, str, func, NULL);
24739
24740 ;
24741 return 0;
24742 }
24743
24744 _ACEOF
24745
24746
24747
24748 cat - <<_ACEOF >conftest.h
24749
24750 _ACEOF
24751
24752
24753 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
24754 echo "obj-m := conftest.o" >build/Makefile
24755 modpost_flag=''
24756 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
24757 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
24758 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24759 (eval $ac_try) 2>&5
24760 ac_status=$?
24761 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24762 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
24763 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24764 (eval $ac_try) 2>&5
24765 ac_status=$?
24766 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24767 (exit $ac_status); }; }; then
24768
24769 { $as_echo "$as_me:$LINENO: result: yes" >&5
24770 $as_echo "yes" >&6; }
24771
24772 cat >>confdefs.h <<\_ACEOF
24773 #define HAVE_CALLBACK_SECURITY_INODE_INIT_SECURITY 1
24774 _ACEOF
24775
24776
24777 else
24778 $as_echo "$as_me: failed program was:" >&5
24779 sed 's/^/| /' conftest.$ac_ext >&5
24780
24781 { $as_echo "$as_me:$LINENO: result: no" >&5
24782 $as_echo "no" >&6; }
24783
24784
24785
24786 fi
24787
24788 rm -Rf build
24789
24790
24791
24792
24793 { $as_echo "$as_me:$LINENO: checking whether fst->mount() exists" >&5
24794 $as_echo_n "checking whether fst->mount() exists... " >&6; }
24795
24796
24797 cat confdefs.h - <<_ACEOF >conftest.c
24798 /* confdefs.h. */
24799 _ACEOF
24800 cat confdefs.h >>conftest.$ac_ext
24801 cat >>conftest.$ac_ext <<_ACEOF
24802 /* end confdefs.h. */
24803
24804
24805 #include <linux/fs.h>
24806
24807 static struct dentry *
24808 mount(struct file_system_type *fs_type, int flags,
24809 const char *osname, void *data) {
24810 struct dentry *d = NULL;
24811 return (d);
24812 }
24813
24814 static struct file_system_type fst __attribute__ ((unused)) = {
24815 .mount = mount,
24816 };
24817
24818 int
24819 main (void)
24820 {
24821
24822
24823 ;
24824 return 0;
24825 }
24826
24827 _ACEOF
24828
24829
24830
24831 cat - <<_ACEOF >conftest.h
24832
24833 _ACEOF
24834
24835
24836 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
24837 echo "obj-m := conftest.o" >build/Makefile
24838 modpost_flag=''
24839 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
24840 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
24841 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24842 (eval $ac_try) 2>&5
24843 ac_status=$?
24844 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24845 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
24846 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24847 (eval $ac_try) 2>&5
24848 ac_status=$?
24849 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24850 (exit $ac_status); }; }; then
24851
24852 { $as_echo "$as_me:$LINENO: result: yes" >&5
24853 $as_echo "yes" >&6; }
24854
24855 cat >>confdefs.h <<\_ACEOF
24856 #define HAVE_FST_MOUNT 1
24857 _ACEOF
24858
24859
24860 else
24861 $as_echo "$as_me: failed program was:" >&5
24862 sed 's/^/| /' conftest.$ac_ext >&5
24863
24864 { $as_echo "$as_me:$LINENO: result: no" >&5
24865 $as_echo "no" >&6; }
24866
24867
24868
24869 fi
24870
24871 rm -Rf build
24872
24873
24874
24875
24876 { $as_echo "$as_me:$LINENO: checking whether super_block has s_shrink" >&5
24877 $as_echo_n "checking whether super_block has s_shrink... " >&6; }
24878
24879
24880 cat confdefs.h - <<_ACEOF >conftest.c
24881 /* confdefs.h. */
24882 _ACEOF
24883 cat confdefs.h >>conftest.$ac_ext
24884 cat >>conftest.$ac_ext <<_ACEOF
24885 /* end confdefs.h. */
24886
24887
24888 #include <linux/fs.h>
24889
24890 int shrink(struct shrinker *s, struct shrink_control *sc)
24891 { return 0; }
24892
24893 static const struct super_block
24894 sb __attribute__ ((unused)) = {
24895 .s_shrink.shrink = shrink,
24896 .s_shrink.seeks = DEFAULT_SEEKS,
24897 .s_shrink.batch = 0,
24898 };
24899
24900 int
24901 main (void)
24902 {
24903
24904
24905 ;
24906 return 0;
24907 }
24908
24909 _ACEOF
24910
24911
24912
24913 cat - <<_ACEOF >conftest.h
24914
24915 _ACEOF
24916
24917
24918 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
24919 echo "obj-m := conftest.o" >build/Makefile
24920 modpost_flag=''
24921 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
24922 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
24923 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24924 (eval $ac_try) 2>&5
24925 ac_status=$?
24926 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24927 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
24928 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24929 (eval $ac_try) 2>&5
24930 ac_status=$?
24931 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24932 (exit $ac_status); }; }; then
24933
24934 { $as_echo "$as_me:$LINENO: result: yes" >&5
24935 $as_echo "yes" >&6; }
24936
24937 cat >>confdefs.h <<\_ACEOF
24938 #define HAVE_SHRINK 1
24939 _ACEOF
24940
24941
24942
24943 else
24944 $as_echo "$as_me: failed program was:" >&5
24945 sed 's/^/| /' conftest.$ac_ext >&5
24946
24947 { $as_echo "$as_me:$LINENO: result: no" >&5
24948 $as_echo "no" >&6; }
24949
24950
24951
24952 fi
24953
24954 rm -Rf build
24955
24956
24957
24958
24959 { $as_echo "$as_me:$LINENO: checking whether shrink_control has nid" >&5
24960 $as_echo_n "checking whether shrink_control has nid... " >&6; }
24961
24962
24963 cat confdefs.h - <<_ACEOF >conftest.c
24964 /* confdefs.h. */
24965 _ACEOF
24966 cat confdefs.h >>conftest.$ac_ext
24967 cat >>conftest.$ac_ext <<_ACEOF
24968 /* end confdefs.h. */
24969
24970
24971 #include <linux/fs.h>
24972
24973 int
24974 main (void)
24975 {
24976
24977 struct shrink_control sc __attribute__ ((unused));
24978 unsigned long scnidsize __attribute__ ((unused)) =
24979 sizeof(sc.nid);
24980
24981 ;
24982 return 0;
24983 }
24984
24985 _ACEOF
24986
24987
24988
24989 cat - <<_ACEOF >conftest.h
24990
24991 _ACEOF
24992
24993
24994 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
24995 echo "obj-m := conftest.o" >build/Makefile
24996 modpost_flag=''
24997 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
24998 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
24999 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25000 (eval $ac_try) 2>&5
25001 ac_status=$?
25002 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25003 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
25004 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25005 (eval $ac_try) 2>&5
25006 ac_status=$?
25007 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25008 (exit $ac_status); }; }; then
25009
25010 { $as_echo "$as_me:$LINENO: result: yes" >&5
25011 $as_echo "yes" >&6; }
25012
25013 cat >>confdefs.h <<\_ACEOF
25014 #define SHRINK_CONTROL_HAS_NID 1
25015 _ACEOF
25016
25017
25018 else
25019 $as_echo "$as_me: failed program was:" >&5
25020 sed 's/^/| /' conftest.$ac_ext >&5
25021
25022 { $as_echo "$as_me:$LINENO: result: no" >&5
25023 $as_echo "no" >&6; }
25024
25025
25026
25027 fi
25028
25029 rm -Rf build
25030
25031
25032
25033
25034 { $as_echo "$as_me:$LINENO: checking whether super_block has s_instances list_head" >&5
25035 $as_echo_n "checking whether super_block has s_instances list_head... " >&6; }
25036
25037
25038 cat confdefs.h - <<_ACEOF >conftest.c
25039 /* confdefs.h. */
25040 _ACEOF
25041 cat confdefs.h >>conftest.$ac_ext
25042 cat >>conftest.$ac_ext <<_ACEOF
25043 /* end confdefs.h. */
25044
25045
25046 #include <linux/fs.h>
25047
25048 int
25049 main (void)
25050 {
25051
25052 struct super_block sb __attribute__ ((unused));
25053
25054 INIT_LIST_HEAD(&sb.s_instances);
25055
25056 ;
25057 return 0;
25058 }
25059
25060 _ACEOF
25061
25062
25063
25064 cat - <<_ACEOF >conftest.h
25065
25066 _ACEOF
25067
25068
25069 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
25070 echo "obj-m := conftest.o" >build/Makefile
25071 modpost_flag=''
25072 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
25073 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
25074 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25075 (eval $ac_try) 2>&5
25076 ac_status=$?
25077 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25078 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
25079 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25080 (eval $ac_try) 2>&5
25081 ac_status=$?
25082 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25083 (exit $ac_status); }; }; then
25084
25085 { $as_echo "$as_me:$LINENO: result: yes" >&5
25086 $as_echo "yes" >&6; }
25087
25088 cat >>confdefs.h <<\_ACEOF
25089 #define HAVE_S_INSTANCES_LIST_HEAD 1
25090 _ACEOF
25091
25092
25093 else
25094 $as_echo "$as_me: failed program was:" >&5
25095 sed 's/^/| /' conftest.$ac_ext >&5
25096
25097 { $as_echo "$as_me:$LINENO: result: no" >&5
25098 $as_echo "no" >&6; }
25099
25100
25101
25102 fi
25103
25104 rm -Rf build
25105
25106
25107
25108 { $as_echo "$as_me:$LINENO: checking whether super_block has s_d_op" >&5
25109 $as_echo_n "checking whether super_block has s_d_op... " >&6; }
25110
25111
25112 cat confdefs.h - <<_ACEOF >conftest.c
25113 /* confdefs.h. */
25114 _ACEOF
25115 cat confdefs.h >>conftest.$ac_ext
25116 cat >>conftest.$ac_ext <<_ACEOF
25117 /* end confdefs.h. */
25118
25119
25120 #include <linux/fs.h>
25121
25122 int
25123 main (void)
25124 {
25125
25126 struct super_block sb __attribute__ ((unused));
25127 sb.s_d_op = NULL;
25128
25129 ;
25130 return 0;
25131 }
25132
25133 _ACEOF
25134
25135
25136
25137 cat - <<_ACEOF >conftest.h
25138
25139 _ACEOF
25140
25141
25142 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
25143 echo "obj-m := conftest.o" >build/Makefile
25144 modpost_flag=''
25145 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
25146 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
25147 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25148 (eval $ac_try) 2>&5
25149 ac_status=$?
25150 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25151 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
25152 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25153 (eval $ac_try) 2>&5
25154 ac_status=$?
25155 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25156 (exit $ac_status); }; }; then
25157
25158 { $as_echo "$as_me:$LINENO: result: yes" >&5
25159 $as_echo "yes" >&6; }
25160
25161 cat >>confdefs.h <<\_ACEOF
25162 #define HAVE_S_D_OP 1
25163 _ACEOF
25164
25165
25166 else
25167 $as_echo "$as_me: failed program was:" >&5
25168 sed 's/^/| /' conftest.$ac_ext >&5
25169
25170 { $as_echo "$as_me:$LINENO: result: no" >&5
25171 $as_echo "no" >&6; }
25172
25173
25174
25175 fi
25176
25177 rm -Rf build
25178
25179
25180
25181
25182 { $as_echo "$as_me:$LINENO: checking whether super_setup_bdi_name() exists" >&5
25183 $as_echo_n "checking whether super_setup_bdi_name() exists... " >&6; }
25184
25185
25186
25187 cat confdefs.h - <<_ACEOF >conftest.c
25188 /* confdefs.h. */
25189 _ACEOF
25190 cat confdefs.h >>conftest.$ac_ext
25191 cat >>conftest.$ac_ext <<_ACEOF
25192 /* end confdefs.h. */
25193
25194
25195 #include <linux/fs.h>
25196 struct super_block sb;
25197
25198 int
25199 main (void)
25200 {
25201
25202 char *name = "bdi";
25203 atomic_long_t zfs_bdi_seq;
25204 int error __attribute__((unused)) =
25205 super_setup_bdi_name(&sb, "%.28s-%ld", name, atomic_long_inc_return(&zfs_bdi_seq));
25206
25207 ;
25208 return 0;
25209 }
25210
25211 _ACEOF
25212
25213
25214
25215 cat - <<_ACEOF >conftest.h
25216
25217 _ACEOF
25218
25219
25220 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
25221 echo "obj-m := conftest.o" >build/Makefile
25222 modpost_flag=''
25223 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
25224 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
25225 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25226 (eval $ac_try) 2>&5
25227 ac_status=$?
25228 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25229 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
25230 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25231 (eval $ac_try) 2>&5
25232 ac_status=$?
25233 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25234 (exit $ac_status); }; }; then
25235 rc=0
25236 else
25237 $as_echo "$as_me: failed program was:" >&5
25238 sed 's/^/| /' conftest.$ac_ext >&5
25239 rc=1
25240
25241
25242 fi
25243
25244 rm -Rf build
25245
25246
25247 if test $rc -ne 0; then :
25248
25249 { $as_echo "$as_me:$LINENO: result: no" >&5
25250 $as_echo "no" >&6; }
25251 { $as_echo "$as_me:$LINENO: checking whether bdi_setup_and_register() wants 2 args" >&5
25252 $as_echo_n "checking whether bdi_setup_and_register() wants 2 args... " >&6; }
25253
25254
25255
25256 cat confdefs.h - <<_ACEOF >conftest.c
25257 /* confdefs.h. */
25258 _ACEOF
25259 cat confdefs.h >>conftest.$ac_ext
25260 cat >>conftest.$ac_ext <<_ACEOF
25261 /* end confdefs.h. */
25262
25263
25264 #include <linux/backing-dev.h>
25265 struct backing_dev_info bdi;
25266
25267 int
25268 main (void)
25269 {
25270
25271 char *name = "bdi";
25272 int error __attribute__((unused)) =
25273 bdi_setup_and_register(&bdi, name);
25274
25275 ;
25276 return 0;
25277 }
25278
25279 _ACEOF
25280
25281
25282
25283 cat - <<_ACEOF >conftest.h
25284
25285 _ACEOF
25286
25287
25288 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
25289 echo "obj-m := conftest.o" >build/Makefile
25290 modpost_flag=''
25291 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
25292 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
25293 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25294 (eval $ac_try) 2>&5
25295 ac_status=$?
25296 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25297 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
25298 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25299 (eval $ac_try) 2>&5
25300 ac_status=$?
25301 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25302 (exit $ac_status); }; }; then
25303 rc=0
25304 else
25305 $as_echo "$as_me: failed program was:" >&5
25306 sed 's/^/| /' conftest.$ac_ext >&5
25307 rc=1
25308
25309
25310 fi
25311
25312 rm -Rf build
25313
25314
25315 if test $rc -ne 0; then :
25316
25317 { $as_echo "$as_me:$LINENO: result: no" >&5
25318 $as_echo "no" >&6; }
25319 { $as_echo "$as_me:$LINENO: checking whether bdi_setup_and_register() wants 3 args" >&5
25320 $as_echo_n "checking whether bdi_setup_and_register() wants 3 args... " >&6; }
25321
25322
25323
25324 cat confdefs.h - <<_ACEOF >conftest.c
25325 /* confdefs.h. */
25326 _ACEOF
25327 cat confdefs.h >>conftest.$ac_ext
25328 cat >>conftest.$ac_ext <<_ACEOF
25329 /* end confdefs.h. */
25330
25331
25332 #include <linux/backing-dev.h>
25333 struct backing_dev_info bdi;
25334
25335 int
25336 main (void)
25337 {
25338
25339 char *name = "bdi";
25340 unsigned int cap = BDI_CAP_MAP_COPY;
25341 int error __attribute__((unused)) =
25342 bdi_setup_and_register(&bdi, name, cap);
25343
25344 ;
25345 return 0;
25346 }
25347
25348 _ACEOF
25349
25350
25351
25352 cat - <<_ACEOF >conftest.h
25353
25354 _ACEOF
25355
25356
25357 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
25358 echo "obj-m := conftest.o" >build/Makefile
25359 modpost_flag=''
25360 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
25361 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
25362 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25363 (eval $ac_try) 2>&5
25364 ac_status=$?
25365 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25366 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
25367 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25368 (eval $ac_try) 2>&5
25369 ac_status=$?
25370 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25371 (exit $ac_status); }; }; then
25372 rc=0
25373 else
25374 $as_echo "$as_me: failed program was:" >&5
25375 sed 's/^/| /' conftest.$ac_ext >&5
25376 rc=1
25377
25378
25379 fi
25380
25381 rm -Rf build
25382
25383
25384 if test $rc -ne 0; then :
25385
25386 { $as_echo "$as_me:$LINENO: result: no" >&5
25387 $as_echo "no" >&6; }
25388
25389 else
25390 if test "x$enable_linux_builtin" != xyes; then
25391
25392 grep -q -E '[[:space:]]bdi_setup_and_register[[:space:]]' \
25393 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
25394 rc=$?
25395 if test $rc -ne 0; then
25396 export=0
25397 for file in mm/backing-dev.c; do
25398 grep -q -E "EXPORT_SYMBOL.*(bdi_setup_and_register)" \
25399 "$LINUX/$file" 2>/dev/null
25400 rc=$?
25401 if test $rc -eq 0; then
25402 export=1
25403 break;
25404 fi
25405 done
25406 if test $export -eq 0; then :
25407 rc=1
25408 else :
25409 rc=0
25410 fi
25411 else :
25412 rc=0
25413 fi
25414
25415 fi
25416 if test $rc -ne 0; then :
25417
25418 { $as_echo "$as_me:$LINENO: result: no" >&5
25419 $as_echo "no" >&6; }
25420
25421 else :
25422
25423 { $as_echo "$as_me:$LINENO: result: yes" >&5
25424 $as_echo "yes" >&6; }
25425
25426 cat >>confdefs.h <<\_ACEOF
25427 #define HAVE_3ARGS_BDI_SETUP_AND_REGISTER 1
25428 _ACEOF
25429
25430
25431 fi
25432 fi
25433
25434
25435 else
25436 if test "x$enable_linux_builtin" != xyes; then
25437
25438 grep -q -E '[[:space:]]bdi_setup_and_register[[:space:]]' \
25439 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
25440 rc=$?
25441 if test $rc -ne 0; then
25442 export=0
25443 for file in mm/backing-dev.c; do
25444 grep -q -E "EXPORT_SYMBOL.*(bdi_setup_and_register)" \
25445 "$LINUX/$file" 2>/dev/null
25446 rc=$?
25447 if test $rc -eq 0; then
25448 export=1
25449 break;
25450 fi
25451 done
25452 if test $export -eq 0; then :
25453 rc=1
25454 else :
25455 rc=0
25456 fi
25457 else :
25458 rc=0
25459 fi
25460
25461 fi
25462 if test $rc -ne 0; then :
25463
25464 { $as_echo "$as_me:$LINENO: result: no" >&5
25465 $as_echo "no" >&6; }
25466 { $as_echo "$as_me:$LINENO: checking whether bdi_setup_and_register() wants 3 args" >&5
25467 $as_echo_n "checking whether bdi_setup_and_register() wants 3 args... " >&6; }
25468
25469
25470
25471 cat confdefs.h - <<_ACEOF >conftest.c
25472 /* confdefs.h. */
25473 _ACEOF
25474 cat confdefs.h >>conftest.$ac_ext
25475 cat >>conftest.$ac_ext <<_ACEOF
25476 /* end confdefs.h. */
25477
25478
25479 #include <linux/backing-dev.h>
25480 struct backing_dev_info bdi;
25481
25482 int
25483 main (void)
25484 {
25485
25486 char *name = "bdi";
25487 unsigned int cap = BDI_CAP_MAP_COPY;
25488 int error __attribute__((unused)) =
25489 bdi_setup_and_register(&bdi, name, cap);
25490
25491 ;
25492 return 0;
25493 }
25494
25495 _ACEOF
25496
25497
25498
25499 cat - <<_ACEOF >conftest.h
25500
25501 _ACEOF
25502
25503
25504 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
25505 echo "obj-m := conftest.o" >build/Makefile
25506 modpost_flag=''
25507 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
25508 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
25509 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25510 (eval $ac_try) 2>&5
25511 ac_status=$?
25512 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25513 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
25514 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25515 (eval $ac_try) 2>&5
25516 ac_status=$?
25517 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25518 (exit $ac_status); }; }; then
25519 rc=0
25520 else
25521 $as_echo "$as_me: failed program was:" >&5
25522 sed 's/^/| /' conftest.$ac_ext >&5
25523 rc=1
25524
25525
25526 fi
25527
25528 rm -Rf build
25529
25530
25531 if test $rc -ne 0; then :
25532
25533 { $as_echo "$as_me:$LINENO: result: no" >&5
25534 $as_echo "no" >&6; }
25535
25536 else
25537 if test "x$enable_linux_builtin" != xyes; then
25538
25539 grep -q -E '[[:space:]]bdi_setup_and_register[[:space:]]' \
25540 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
25541 rc=$?
25542 if test $rc -ne 0; then
25543 export=0
25544 for file in mm/backing-dev.c; do
25545 grep -q -E "EXPORT_SYMBOL.*(bdi_setup_and_register)" \
25546 "$LINUX/$file" 2>/dev/null
25547 rc=$?
25548 if test $rc -eq 0; then
25549 export=1
25550 break;
25551 fi
25552 done
25553 if test $export -eq 0; then :
25554 rc=1
25555 else :
25556 rc=0
25557 fi
25558 else :
25559 rc=0
25560 fi
25561
25562 fi
25563 if test $rc -ne 0; then :
25564
25565 { $as_echo "$as_me:$LINENO: result: no" >&5
25566 $as_echo "no" >&6; }
25567
25568 else :
25569
25570 { $as_echo "$as_me:$LINENO: result: yes" >&5
25571 $as_echo "yes" >&6; }
25572
25573 cat >>confdefs.h <<\_ACEOF
25574 #define HAVE_3ARGS_BDI_SETUP_AND_REGISTER 1
25575 _ACEOF
25576
25577
25578 fi
25579 fi
25580
25581
25582 else :
25583
25584 { $as_echo "$as_me:$LINENO: result: yes" >&5
25585 $as_echo "yes" >&6; }
25586
25587 cat >>confdefs.h <<\_ACEOF
25588 #define HAVE_2ARGS_BDI_SETUP_AND_REGISTER 1
25589 _ACEOF
25590
25591
25592 fi
25593 fi
25594
25595
25596 else
25597 if test "x$enable_linux_builtin" != xyes; then
25598
25599 grep -q -E '[[:space:]]super_setup_bdi_name[[:space:]]' \
25600 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
25601 rc=$?
25602 if test $rc -ne 0; then
25603 export=0
25604 for file in fs/super.c; do
25605 grep -q -E "EXPORT_SYMBOL.*(super_setup_bdi_name)" \
25606 "$LINUX/$file" 2>/dev/null
25607 rc=$?
25608 if test $rc -eq 0; then
25609 export=1
25610 break;
25611 fi
25612 done
25613 if test $export -eq 0; then :
25614 rc=1
25615 else :
25616 rc=0
25617 fi
25618 else :
25619 rc=0
25620 fi
25621
25622 fi
25623 if test $rc -ne 0; then :
25624
25625 { $as_echo "$as_me:$LINENO: result: no" >&5
25626 $as_echo "no" >&6; }
25627 { $as_echo "$as_me:$LINENO: checking whether bdi_setup_and_register() wants 2 args" >&5
25628 $as_echo_n "checking whether bdi_setup_and_register() wants 2 args... " >&6; }
25629
25630
25631
25632 cat confdefs.h - <<_ACEOF >conftest.c
25633 /* confdefs.h. */
25634 _ACEOF
25635 cat confdefs.h >>conftest.$ac_ext
25636 cat >>conftest.$ac_ext <<_ACEOF
25637 /* end confdefs.h. */
25638
25639
25640 #include <linux/backing-dev.h>
25641 struct backing_dev_info bdi;
25642
25643 int
25644 main (void)
25645 {
25646
25647 char *name = "bdi";
25648 int error __attribute__((unused)) =
25649 bdi_setup_and_register(&bdi, name);
25650
25651 ;
25652 return 0;
25653 }
25654
25655 _ACEOF
25656
25657
25658
25659 cat - <<_ACEOF >conftest.h
25660
25661 _ACEOF
25662
25663
25664 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
25665 echo "obj-m := conftest.o" >build/Makefile
25666 modpost_flag=''
25667 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
25668 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
25669 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25670 (eval $ac_try) 2>&5
25671 ac_status=$?
25672 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25673 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
25674 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25675 (eval $ac_try) 2>&5
25676 ac_status=$?
25677 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25678 (exit $ac_status); }; }; then
25679 rc=0
25680 else
25681 $as_echo "$as_me: failed program was:" >&5
25682 sed 's/^/| /' conftest.$ac_ext >&5
25683 rc=1
25684
25685
25686 fi
25687
25688 rm -Rf build
25689
25690
25691 if test $rc -ne 0; then :
25692
25693 { $as_echo "$as_me:$LINENO: result: no" >&5
25694 $as_echo "no" >&6; }
25695 { $as_echo "$as_me:$LINENO: checking whether bdi_setup_and_register() wants 3 args" >&5
25696 $as_echo_n "checking whether bdi_setup_and_register() wants 3 args... " >&6; }
25697
25698
25699
25700 cat confdefs.h - <<_ACEOF >conftest.c
25701 /* confdefs.h. */
25702 _ACEOF
25703 cat confdefs.h >>conftest.$ac_ext
25704 cat >>conftest.$ac_ext <<_ACEOF
25705 /* end confdefs.h. */
25706
25707
25708 #include <linux/backing-dev.h>
25709 struct backing_dev_info bdi;
25710
25711 int
25712 main (void)
25713 {
25714
25715 char *name = "bdi";
25716 unsigned int cap = BDI_CAP_MAP_COPY;
25717 int error __attribute__((unused)) =
25718 bdi_setup_and_register(&bdi, name, cap);
25719
25720 ;
25721 return 0;
25722 }
25723
25724 _ACEOF
25725
25726
25727
25728 cat - <<_ACEOF >conftest.h
25729
25730 _ACEOF
25731
25732
25733 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
25734 echo "obj-m := conftest.o" >build/Makefile
25735 modpost_flag=''
25736 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
25737 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
25738 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25739 (eval $ac_try) 2>&5
25740 ac_status=$?
25741 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25742 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
25743 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25744 (eval $ac_try) 2>&5
25745 ac_status=$?
25746 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25747 (exit $ac_status); }; }; then
25748 rc=0
25749 else
25750 $as_echo "$as_me: failed program was:" >&5
25751 sed 's/^/| /' conftest.$ac_ext >&5
25752 rc=1
25753
25754
25755 fi
25756
25757 rm -Rf build
25758
25759
25760 if test $rc -ne 0; then :
25761
25762 { $as_echo "$as_me:$LINENO: result: no" >&5
25763 $as_echo "no" >&6; }
25764
25765 else
25766 if test "x$enable_linux_builtin" != xyes; then
25767
25768 grep -q -E '[[:space:]]bdi_setup_and_register[[:space:]]' \
25769 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
25770 rc=$?
25771 if test $rc -ne 0; then
25772 export=0
25773 for file in mm/backing-dev.c; do
25774 grep -q -E "EXPORT_SYMBOL.*(bdi_setup_and_register)" \
25775 "$LINUX/$file" 2>/dev/null
25776 rc=$?
25777 if test $rc -eq 0; then
25778 export=1
25779 break;
25780 fi
25781 done
25782 if test $export -eq 0; then :
25783 rc=1
25784 else :
25785 rc=0
25786 fi
25787 else :
25788 rc=0
25789 fi
25790
25791 fi
25792 if test $rc -ne 0; then :
25793
25794 { $as_echo "$as_me:$LINENO: result: no" >&5
25795 $as_echo "no" >&6; }
25796
25797 else :
25798
25799 { $as_echo "$as_me:$LINENO: result: yes" >&5
25800 $as_echo "yes" >&6; }
25801
25802 cat >>confdefs.h <<\_ACEOF
25803 #define HAVE_3ARGS_BDI_SETUP_AND_REGISTER 1
25804 _ACEOF
25805
25806
25807 fi
25808 fi
25809
25810
25811 else
25812 if test "x$enable_linux_builtin" != xyes; then
25813
25814 grep -q -E '[[:space:]]bdi_setup_and_register[[:space:]]' \
25815 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
25816 rc=$?
25817 if test $rc -ne 0; then
25818 export=0
25819 for file in mm/backing-dev.c; do
25820 grep -q -E "EXPORT_SYMBOL.*(bdi_setup_and_register)" \
25821 "$LINUX/$file" 2>/dev/null
25822 rc=$?
25823 if test $rc -eq 0; then
25824 export=1
25825 break;
25826 fi
25827 done
25828 if test $export -eq 0; then :
25829 rc=1
25830 else :
25831 rc=0
25832 fi
25833 else :
25834 rc=0
25835 fi
25836
25837 fi
25838 if test $rc -ne 0; then :
25839
25840 { $as_echo "$as_me:$LINENO: result: no" >&5
25841 $as_echo "no" >&6; }
25842 { $as_echo "$as_me:$LINENO: checking whether bdi_setup_and_register() wants 3 args" >&5
25843 $as_echo_n "checking whether bdi_setup_and_register() wants 3 args... " >&6; }
25844
25845
25846
25847 cat confdefs.h - <<_ACEOF >conftest.c
25848 /* confdefs.h. */
25849 _ACEOF
25850 cat confdefs.h >>conftest.$ac_ext
25851 cat >>conftest.$ac_ext <<_ACEOF
25852 /* end confdefs.h. */
25853
25854
25855 #include <linux/backing-dev.h>
25856 struct backing_dev_info bdi;
25857
25858 int
25859 main (void)
25860 {
25861
25862 char *name = "bdi";
25863 unsigned int cap = BDI_CAP_MAP_COPY;
25864 int error __attribute__((unused)) =
25865 bdi_setup_and_register(&bdi, name, cap);
25866
25867 ;
25868 return 0;
25869 }
25870
25871 _ACEOF
25872
25873
25874
25875 cat - <<_ACEOF >conftest.h
25876
25877 _ACEOF
25878
25879
25880 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
25881 echo "obj-m := conftest.o" >build/Makefile
25882 modpost_flag=''
25883 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
25884 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
25885 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25886 (eval $ac_try) 2>&5
25887 ac_status=$?
25888 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25889 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
25890 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25891 (eval $ac_try) 2>&5
25892 ac_status=$?
25893 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25894 (exit $ac_status); }; }; then
25895 rc=0
25896 else
25897 $as_echo "$as_me: failed program was:" >&5
25898 sed 's/^/| /' conftest.$ac_ext >&5
25899 rc=1
25900
25901
25902 fi
25903
25904 rm -Rf build
25905
25906
25907 if test $rc -ne 0; then :
25908
25909 { $as_echo "$as_me:$LINENO: result: no" >&5
25910 $as_echo "no" >&6; }
25911
25912 else
25913 if test "x$enable_linux_builtin" != xyes; then
25914
25915 grep -q -E '[[:space:]]bdi_setup_and_register[[:space:]]' \
25916 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
25917 rc=$?
25918 if test $rc -ne 0; then
25919 export=0
25920 for file in mm/backing-dev.c; do
25921 grep -q -E "EXPORT_SYMBOL.*(bdi_setup_and_register)" \
25922 "$LINUX/$file" 2>/dev/null
25923 rc=$?
25924 if test $rc -eq 0; then
25925 export=1
25926 break;
25927 fi
25928 done
25929 if test $export -eq 0; then :
25930 rc=1
25931 else :
25932 rc=0
25933 fi
25934 else :
25935 rc=0
25936 fi
25937
25938 fi
25939 if test $rc -ne 0; then :
25940
25941 { $as_echo "$as_me:$LINENO: result: no" >&5
25942 $as_echo "no" >&6; }
25943
25944 else :
25945
25946 { $as_echo "$as_me:$LINENO: result: yes" >&5
25947 $as_echo "yes" >&6; }
25948
25949 cat >>confdefs.h <<\_ACEOF
25950 #define HAVE_3ARGS_BDI_SETUP_AND_REGISTER 1
25951 _ACEOF
25952
25953
25954 fi
25955 fi
25956
25957
25958 else :
25959
25960 { $as_echo "$as_me:$LINENO: result: yes" >&5
25961 $as_echo "yes" >&6; }
25962
25963 cat >>confdefs.h <<\_ACEOF
25964 #define HAVE_2ARGS_BDI_SETUP_AND_REGISTER 1
25965 _ACEOF
25966
25967
25968 fi
25969 fi
25970
25971
25972 else :
25973
25974 { $as_echo "$as_me:$LINENO: result: yes" >&5
25975 $as_echo "yes" >&6; }
25976
25977 cat >>confdefs.h <<\_ACEOF
25978 #define HAVE_SUPER_SETUP_BDI_NAME 1
25979 _ACEOF
25980
25981
25982 fi
25983 fi
25984
25985
25986
25987 { $as_echo "$as_me:$LINENO: checking whether set_nlink() is available" >&5
25988 $as_echo_n "checking whether set_nlink() is available... " >&6; }
25989
25990
25991 cat confdefs.h - <<_ACEOF >conftest.c
25992 /* confdefs.h. */
25993 _ACEOF
25994 cat confdefs.h >>conftest.$ac_ext
25995 cat >>conftest.$ac_ext <<_ACEOF
25996 /* end confdefs.h. */
25997
25998
25999 #include <linux/fs.h>
26000
26001 int
26002 main (void)
26003 {
26004
26005 struct inode node;
26006 unsigned int link = 0;
26007 (void) set_nlink(&node, link);
26008
26009 ;
26010 return 0;
26011 }
26012
26013 _ACEOF
26014
26015
26016
26017 cat - <<_ACEOF >conftest.h
26018
26019 _ACEOF
26020
26021
26022 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
26023 echo "obj-m := conftest.o" >build/Makefile
26024 modpost_flag=''
26025 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
26026 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
26027 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26028 (eval $ac_try) 2>&5
26029 ac_status=$?
26030 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26031 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
26032 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26033 (eval $ac_try) 2>&5
26034 ac_status=$?
26035 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26036 (exit $ac_status); }; }; then
26037
26038 { $as_echo "$as_me:$LINENO: result: yes" >&5
26039 $as_echo "yes" >&6; }
26040
26041 cat >>confdefs.h <<\_ACEOF
26042 #define HAVE_SET_NLINK 1
26043 _ACEOF
26044
26045
26046 else
26047 $as_echo "$as_me: failed program was:" >&5
26048 sed 's/^/| /' conftest.$ac_ext >&5
26049
26050 { $as_echo "$as_me:$LINENO: result: no" >&5
26051 $as_echo "no" >&6; }
26052
26053
26054
26055 fi
26056
26057 rm -Rf build
26058
26059
26060
26061
26062 { $as_echo "$as_me:$LINENO: checking whether elevator_change() is available" >&5
26063 $as_echo_n "checking whether elevator_change() is available... " >&6; }
26064 tmp_flags="$EXTRA_KCFLAGS"
26065 EXTRA_KCFLAGS="${NO_UNUSED_BUT_SET_VARIABLE}"
26066
26067
26068 cat confdefs.h - <<_ACEOF >conftest.c
26069 /* confdefs.h. */
26070 _ACEOF
26071 cat confdefs.h >>conftest.$ac_ext
26072 cat >>conftest.$ac_ext <<_ACEOF
26073 /* end confdefs.h. */
26074
26075
26076 #include <linux/blkdev.h>
26077 #include <linux/elevator.h>
26078
26079 int
26080 main (void)
26081 {
26082
26083 int ret;
26084 struct request_queue *q = NULL;
26085 char *elevator = NULL;
26086 ret = elevator_change(q, elevator);
26087
26088 ;
26089 return 0;
26090 }
26091
26092 _ACEOF
26093
26094
26095
26096 cat - <<_ACEOF >conftest.h
26097
26098 _ACEOF
26099
26100
26101 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
26102 echo "obj-m := conftest.o" >build/Makefile
26103 modpost_flag=''
26104 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
26105 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
26106 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26107 (eval $ac_try) 2>&5
26108 ac_status=$?
26109 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26110 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
26111 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26112 (eval $ac_try) 2>&5
26113 ac_status=$?
26114 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26115 (exit $ac_status); }; }; then
26116
26117 { $as_echo "$as_me:$LINENO: result: yes" >&5
26118 $as_echo "yes" >&6; }
26119
26120 cat >>confdefs.h <<\_ACEOF
26121 #define HAVE_ELEVATOR_CHANGE 1
26122 _ACEOF
26123
26124
26125 else
26126 $as_echo "$as_me: failed program was:" >&5
26127 sed 's/^/| /' conftest.$ac_ext >&5
26128
26129 { $as_echo "$as_me:$LINENO: result: no" >&5
26130 $as_echo "no" >&6; }
26131
26132
26133
26134 fi
26135
26136 rm -Rf build
26137
26138
26139 EXTRA_KCFLAGS="$tmp_flags"
26140
26141 { $as_echo "$as_me:$LINENO: checking whether sget() wants 5 args" >&5
26142 $as_echo_n "checking whether sget() wants 5 args... " >&6; }
26143
26144
26145 cat confdefs.h - <<_ACEOF >conftest.c
26146 /* confdefs.h. */
26147 _ACEOF
26148 cat confdefs.h >>conftest.$ac_ext
26149 cat >>conftest.$ac_ext <<_ACEOF
26150 /* end confdefs.h. */
26151
26152
26153 #include <linux/fs.h>
26154
26155 int
26156 main (void)
26157 {
26158
26159 struct file_system_type *type = NULL;
26160 int (*test)(struct super_block *,void *) = NULL;
26161 int (*set)(struct super_block *,void *) = NULL;
26162 int flags = 0;
26163 void *data = NULL;
26164 (void) sget(type, test, set, flags, data);
26165
26166 ;
26167 return 0;
26168 }
26169
26170 _ACEOF
26171
26172
26173
26174 cat - <<_ACEOF >conftest.h
26175
26176 _ACEOF
26177
26178
26179 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
26180 echo "obj-m := conftest.o" >build/Makefile
26181 modpost_flag=''
26182 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
26183 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
26184 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26185 (eval $ac_try) 2>&5
26186 ac_status=$?
26187 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26188 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
26189 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26190 (eval $ac_try) 2>&5
26191 ac_status=$?
26192 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26193 (exit $ac_status); }; }; then
26194
26195 { $as_echo "$as_me:$LINENO: result: yes" >&5
26196 $as_echo "yes" >&6; }
26197
26198 cat >>confdefs.h <<\_ACEOF
26199 #define HAVE_5ARG_SGET 1
26200 _ACEOF
26201
26202
26203 else
26204 $as_echo "$as_me: failed program was:" >&5
26205 sed 's/^/| /' conftest.$ac_ext >&5
26206
26207 { $as_echo "$as_me:$LINENO: result: no" >&5
26208 $as_echo "no" >&6; }
26209
26210
26211
26212 fi
26213
26214 rm -Rf build
26215
26216
26217
26218 { $as_echo "$as_me:$LINENO: checking whether lseek_execute() is available" >&5
26219 $as_echo_n "checking whether lseek_execute() is available... " >&6; }
26220
26221
26222
26223 cat confdefs.h - <<_ACEOF >conftest.c
26224 /* confdefs.h. */
26225 _ACEOF
26226 cat confdefs.h >>conftest.$ac_ext
26227 cat >>conftest.$ac_ext <<_ACEOF
26228 /* end confdefs.h. */
26229
26230
26231 #include <linux/fs.h>
26232
26233 int
26234 main (void)
26235 {
26236
26237 struct file *fp __attribute__ ((unused)) = NULL;
26238 struct inode *ip __attribute__ ((unused)) = NULL;
26239 loff_t offset __attribute__ ((unused)) = 0;
26240 loff_t maxsize __attribute__ ((unused)) = 0;
26241
26242 lseek_execute(fp, ip, offset, maxsize);
26243
26244 ;
26245 return 0;
26246 }
26247
26248 _ACEOF
26249
26250
26251
26252 cat - <<_ACEOF >conftest.h
26253
26254 _ACEOF
26255
26256
26257 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
26258 echo "obj-m := conftest.o" >build/Makefile
26259 modpost_flag=''
26260 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
26261 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
26262 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26263 (eval $ac_try) 2>&5
26264 ac_status=$?
26265 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26266 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
26267 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26268 (eval $ac_try) 2>&5
26269 ac_status=$?
26270 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26271 (exit $ac_status); }; }; then
26272 rc=0
26273 else
26274 $as_echo "$as_me: failed program was:" >&5
26275 sed 's/^/| /' conftest.$ac_ext >&5
26276 rc=1
26277
26278
26279 fi
26280
26281 rm -Rf build
26282
26283
26284 if test $rc -ne 0; then :
26285
26286 { $as_echo "$as_me:$LINENO: result: no" >&5
26287 $as_echo "no" >&6; }
26288
26289 else
26290 if test "x$enable_linux_builtin" != xyes; then
26291
26292 grep -q -E '[[:space:]]lseek_exclusive[[:space:]]' \
26293 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
26294 rc=$?
26295 if test $rc -ne 0; then
26296 export=0
26297 for file in fs/read_write.c; do
26298 grep -q -E "EXPORT_SYMBOL.*(lseek_exclusive)" \
26299 "$LINUX/$file" 2>/dev/null
26300 rc=$?
26301 if test $rc -eq 0; then
26302 export=1
26303 break;
26304 fi
26305 done
26306 if test $export -eq 0; then :
26307 rc=1
26308 else :
26309 rc=0
26310 fi
26311 else :
26312 rc=0
26313 fi
26314
26315 fi
26316 if test $rc -ne 0; then :
26317
26318 { $as_echo "$as_me:$LINENO: result: no" >&5
26319 $as_echo "no" >&6; }
26320
26321 else :
26322
26323 { $as_echo "$as_me:$LINENO: result: yes" >&5
26324 $as_echo "yes" >&6; }
26325
26326 cat >>confdefs.h <<\_ACEOF
26327 #define HAVE_LSEEK_EXECUTE 1
26328 _ACEOF
26329
26330
26331 fi
26332 fi
26333
26334
26335
26336 { $as_echo "$as_me:$LINENO: checking whether fops->iterate_shared() is available" >&5
26337 $as_echo_n "checking whether fops->iterate_shared() is available... " >&6; }
26338
26339
26340 cat confdefs.h - <<_ACEOF >conftest.c
26341 /* confdefs.h. */
26342 _ACEOF
26343 cat confdefs.h >>conftest.$ac_ext
26344 cat >>conftest.$ac_ext <<_ACEOF
26345 /* end confdefs.h. */
26346
26347
26348 #include <linux/fs.h>
26349 int iterate(struct file *filp, struct dir_context * context)
26350 { return 0; }
26351
26352 static const struct file_operations fops
26353 __attribute__ ((unused)) = {
26354 .iterate_shared = iterate,
26355 };
26356
26357 int
26358 main (void)
26359 {
26360
26361
26362 ;
26363 return 0;
26364 }
26365
26366 _ACEOF
26367
26368
26369
26370 cat - <<_ACEOF >conftest.h
26371
26372 _ACEOF
26373
26374
26375 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
26376 echo "obj-m := conftest.o" >build/Makefile
26377 modpost_flag=''
26378 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
26379 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
26380 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26381 (eval $ac_try) 2>&5
26382 ac_status=$?
26383 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26384 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
26385 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26386 (eval $ac_try) 2>&5
26387 ac_status=$?
26388 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26389 (exit $ac_status); }; }; then
26390
26391 { $as_echo "$as_me:$LINENO: result: yes" >&5
26392 $as_echo "yes" >&6; }
26393
26394 cat >>confdefs.h <<\_ACEOF
26395 #define HAVE_VFS_ITERATE_SHARED 1
26396 _ACEOF
26397
26398
26399 else
26400 $as_echo "$as_me: failed program was:" >&5
26401 sed 's/^/| /' conftest.$ac_ext >&5
26402
26403 { $as_echo "$as_me:$LINENO: result: no" >&5
26404 $as_echo "no" >&6; }
26405
26406 { $as_echo "$as_me:$LINENO: checking whether fops->iterate() is available" >&5
26407 $as_echo_n "checking whether fops->iterate() is available... " >&6; }
26408
26409
26410 cat confdefs.h - <<_ACEOF >conftest.c
26411 /* confdefs.h. */
26412 _ACEOF
26413 cat confdefs.h >>conftest.$ac_ext
26414 cat >>conftest.$ac_ext <<_ACEOF
26415 /* end confdefs.h. */
26416
26417
26418 #include <linux/fs.h>
26419 int iterate(struct file *filp,
26420 struct dir_context *context) { return 0; }
26421
26422 static const struct file_operations fops
26423 __attribute__ ((unused)) = {
26424 .iterate = iterate,
26425 };
26426
26427 #if defined(FMODE_KABI_ITERATE)
26428 #error "RHEL 7.5, FMODE_KABI_ITERATE interface"
26429 #endif
26430
26431 int
26432 main (void)
26433 {
26434
26435
26436 ;
26437 return 0;
26438 }
26439
26440 _ACEOF
26441
26442
26443
26444 cat - <<_ACEOF >conftest.h
26445
26446 _ACEOF
26447
26448
26449 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
26450 echo "obj-m := conftest.o" >build/Makefile
26451 modpost_flag=''
26452 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
26453 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
26454 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26455 (eval $ac_try) 2>&5
26456 ac_status=$?
26457 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26458 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
26459 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26460 (eval $ac_try) 2>&5
26461 ac_status=$?
26462 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26463 (exit $ac_status); }; }; then
26464
26465 { $as_echo "$as_me:$LINENO: result: yes" >&5
26466 $as_echo "yes" >&6; }
26467
26468 cat >>confdefs.h <<\_ACEOF
26469 #define HAVE_VFS_ITERATE 1
26470 _ACEOF
26471
26472
26473 else
26474 $as_echo "$as_me: failed program was:" >&5
26475 sed 's/^/| /' conftest.$ac_ext >&5
26476
26477 { $as_echo "$as_me:$LINENO: result: no" >&5
26478 $as_echo "no" >&6; }
26479
26480 { $as_echo "$as_me:$LINENO: checking whether fops->readdir() is available" >&5
26481 $as_echo_n "checking whether fops->readdir() is available... " >&6; }
26482
26483
26484 cat confdefs.h - <<_ACEOF >conftest.c
26485 /* confdefs.h. */
26486 _ACEOF
26487 cat confdefs.h >>conftest.$ac_ext
26488 cat >>conftest.$ac_ext <<_ACEOF
26489 /* end confdefs.h. */
26490
26491
26492 #include <linux/fs.h>
26493 int readdir(struct file *filp, void *entry,
26494 filldir_t func) { return 0; }
26495
26496 static const struct file_operations fops
26497 __attribute__ ((unused)) = {
26498 .readdir = readdir,
26499 };
26500
26501 int
26502 main (void)
26503 {
26504
26505
26506 ;
26507 return 0;
26508 }
26509
26510 _ACEOF
26511
26512
26513
26514 cat - <<_ACEOF >conftest.h
26515
26516 _ACEOF
26517
26518
26519 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
26520 echo "obj-m := conftest.o" >build/Makefile
26521 modpost_flag=''
26522 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
26523 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
26524 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26525 (eval $ac_try) 2>&5
26526 ac_status=$?
26527 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26528 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
26529 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26530 (eval $ac_try) 2>&5
26531 ac_status=$?
26532 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26533 (exit $ac_status); }; }; then
26534
26535 { $as_echo "$as_me:$LINENO: result: yes" >&5
26536 $as_echo "yes" >&6; }
26537
26538 cat >>confdefs.h <<\_ACEOF
26539 #define HAVE_VFS_READDIR 1
26540 _ACEOF
26541
26542
26543 else
26544 $as_echo "$as_me: failed program was:" >&5
26545 sed 's/^/| /' conftest.$ac_ext >&5
26546
26547 { { $as_echo "$as_me:$LINENO: error: no; file a bug report with ZoL" >&5
26548 $as_echo "$as_me: error: no; file a bug report with ZoL" >&2;}
26549 { (exit 1); exit 1; }; }
26550
26551
26552
26553 fi
26554
26555 rm -Rf build
26556
26557
26558
26559
26560
26561 fi
26562
26563 rm -Rf build
26564
26565
26566
26567
26568
26569 fi
26570
26571 rm -Rf build
26572
26573
26574
26575 { $as_echo "$as_me:$LINENO: checking whether fops->read/write_iter() are available" >&5
26576 $as_echo_n "checking whether fops->read/write_iter() are available... " >&6; }
26577
26578
26579 cat confdefs.h - <<_ACEOF >conftest.c
26580 /* confdefs.h. */
26581 _ACEOF
26582 cat confdefs.h >>conftest.$ac_ext
26583 cat >>conftest.$ac_ext <<_ACEOF
26584 /* end confdefs.h. */
26585
26586
26587 #include <linux/fs.h>
26588
26589 ssize_t test_read(struct kiocb *kiocb, struct iov_iter *to)
26590 { return 0; }
26591 ssize_t test_write(struct kiocb *kiocb, struct iov_iter *from)
26592 { return 0; }
26593
26594 static const struct file_operations
26595 fops __attribute__ ((unused)) = {
26596 .read_iter = test_read,
26597 .write_iter = test_write,
26598 };
26599
26600 int
26601 main (void)
26602 {
26603
26604
26605 ;
26606 return 0;
26607 }
26608
26609 _ACEOF
26610
26611
26612
26613 cat - <<_ACEOF >conftest.h
26614
26615 _ACEOF
26616
26617
26618 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
26619 echo "obj-m := conftest.o" >build/Makefile
26620 modpost_flag=''
26621 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
26622 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
26623 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26624 (eval $ac_try) 2>&5
26625 ac_status=$?
26626 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26627 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
26628 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26629 (eval $ac_try) 2>&5
26630 ac_status=$?
26631 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26632 (exit $ac_status); }; }; then
26633
26634 { $as_echo "$as_me:$LINENO: result: yes" >&5
26635 $as_echo "yes" >&6; }
26636
26637 cat >>confdefs.h <<\_ACEOF
26638 #define HAVE_VFS_RW_ITERATE 1
26639 _ACEOF
26640
26641
26642 { $as_echo "$as_me:$LINENO: checking whether new_sync_read/write() are available" >&5
26643 $as_echo_n "checking whether new_sync_read/write() are available... " >&6; }
26644
26645
26646 cat confdefs.h - <<_ACEOF >conftest.c
26647 /* confdefs.h. */
26648 _ACEOF
26649 cat confdefs.h >>conftest.$ac_ext
26650 cat >>conftest.$ac_ext <<_ACEOF
26651 /* end confdefs.h. */
26652
26653
26654 #include <linux/fs.h>
26655
26656 int
26657 main (void)
26658 {
26659
26660 ssize_t ret __attribute__ ((unused));
26661 struct file *filp = NULL;
26662 char __user *rbuf = NULL;
26663 const char __user *wbuf = NULL;
26664 size_t len = 0;
26665 loff_t ppos;
26666
26667 ret = new_sync_read(filp, rbuf, len, &ppos);
26668 ret = new_sync_write(filp, wbuf, len, &ppos);
26669
26670 ;
26671 return 0;
26672 }
26673
26674 _ACEOF
26675
26676
26677
26678 cat - <<_ACEOF >conftest.h
26679
26680 _ACEOF
26681
26682
26683 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
26684 echo "obj-m := conftest.o" >build/Makefile
26685 modpost_flag=''
26686 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
26687 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
26688 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26689 (eval $ac_try) 2>&5
26690 ac_status=$?
26691 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26692 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
26693 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26694 (eval $ac_try) 2>&5
26695 ac_status=$?
26696 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26697 (exit $ac_status); }; }; then
26698
26699 { $as_echo "$as_me:$LINENO: result: yes" >&5
26700 $as_echo "yes" >&6; }
26701
26702 cat >>confdefs.h <<\_ACEOF
26703 #define HAVE_NEW_SYNC_READ 1
26704 _ACEOF
26705
26706
26707 else
26708 $as_echo "$as_me: failed program was:" >&5
26709 sed 's/^/| /' conftest.$ac_ext >&5
26710
26711 { $as_echo "$as_me:$LINENO: result: no" >&5
26712 $as_echo "no" >&6; }
26713
26714
26715
26716 fi
26717
26718 rm -Rf build
26719
26720
26721
26722
26723 else
26724 $as_echo "$as_me: failed program was:" >&5
26725 sed 's/^/| /' conftest.$ac_ext >&5
26726
26727 { $as_echo "$as_me:$LINENO: result: no" >&5
26728 $as_echo "no" >&6; }
26729
26730
26731
26732 fi
26733
26734 rm -Rf build
26735
26736
26737
26738 { $as_echo "$as_me:$LINENO: checking whether generic_write_checks() takes kiocb" >&5
26739 $as_echo_n "checking whether generic_write_checks() takes kiocb... " >&6; }
26740
26741
26742 cat confdefs.h - <<_ACEOF >conftest.c
26743 /* confdefs.h. */
26744 _ACEOF
26745 cat confdefs.h >>conftest.$ac_ext
26746 cat >>conftest.$ac_ext <<_ACEOF
26747 /* end confdefs.h. */
26748
26749
26750 #include <linux/fs.h>
26751
26752
26753 int
26754 main (void)
26755 {
26756
26757 struct kiocb *iocb = NULL;
26758 struct iov_iter *iov = NULL;
26759 generic_write_checks(iocb, iov);
26760
26761 ;
26762 return 0;
26763 }
26764
26765 _ACEOF
26766
26767
26768
26769 cat - <<_ACEOF >conftest.h
26770
26771 _ACEOF
26772
26773
26774 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
26775 echo "obj-m := conftest.o" >build/Makefile
26776 modpost_flag=''
26777 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
26778 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
26779 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26780 (eval $ac_try) 2>&5
26781 ac_status=$?
26782 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26783 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
26784 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26785 (eval $ac_try) 2>&5
26786 ac_status=$?
26787 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26788 (exit $ac_status); }; }; then
26789
26790 { $as_echo "$as_me:$LINENO: result: yes" >&5
26791 $as_echo "yes" >&6; }
26792
26793 cat >>confdefs.h <<\_ACEOF
26794 #define HAVE_GENERIC_WRITE_CHECKS_KIOCB 1
26795 _ACEOF
26796
26797
26798 else
26799 $as_echo "$as_me: failed program was:" >&5
26800 sed 's/^/| /' conftest.$ac_ext >&5
26801
26802 { $as_echo "$as_me:$LINENO: result: no" >&5
26803 $as_echo "no" >&6; }
26804
26805
26806
26807 fi
26808
26809 rm -Rf build
26810
26811
26812
26813
26814 { $as_echo "$as_me:$LINENO: checking whether kmap_atomic wants 1 args" >&5
26815 $as_echo_n "checking whether kmap_atomic wants 1 args... " >&6; }
26816
26817
26818 cat confdefs.h - <<_ACEOF >conftest.c
26819 /* confdefs.h. */
26820 _ACEOF
26821 cat confdefs.h >>conftest.$ac_ext
26822 cat >>conftest.$ac_ext <<_ACEOF
26823 /* end confdefs.h. */
26824
26825
26826 #include <linux/pagemap.h>
26827
26828 int
26829 main (void)
26830 {
26831
26832 struct page page;
26833 kmap_atomic(&page);
26834
26835 ;
26836 return 0;
26837 }
26838
26839 _ACEOF
26840
26841
26842
26843 cat - <<_ACEOF >conftest.h
26844
26845 _ACEOF
26846
26847
26848 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
26849 echo "obj-m := conftest.o" >build/Makefile
26850 modpost_flag=''
26851 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
26852 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
26853 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26854 (eval $ac_try) 2>&5
26855 ac_status=$?
26856 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26857 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
26858 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26859 (eval $ac_try) 2>&5
26860 ac_status=$?
26861 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26862 (exit $ac_status); }; }; then
26863
26864 { $as_echo "$as_me:$LINENO: result: yes" >&5
26865 $as_echo "yes" >&6; }
26866
26867 cat >>confdefs.h <<\_ACEOF
26868 #define HAVE_1ARG_KMAP_ATOMIC 1
26869 _ACEOF
26870
26871
26872 else
26873 $as_echo "$as_me: failed program was:" >&5
26874 sed 's/^/| /' conftest.$ac_ext >&5
26875
26876 { $as_echo "$as_me:$LINENO: result: no" >&5
26877 $as_echo "no" >&6; }
26878
26879
26880
26881 fi
26882
26883 rm -Rf build
26884
26885
26886
26887
26888 { $as_echo "$as_me:$LINENO: checking whether follow_down_one() is available" >&5
26889 $as_echo_n "checking whether follow_down_one() is available... " >&6; }
26890
26891
26892 cat confdefs.h - <<_ACEOF >conftest.c
26893 /* confdefs.h. */
26894 _ACEOF
26895 cat confdefs.h >>conftest.$ac_ext
26896 cat >>conftest.$ac_ext <<_ACEOF
26897 /* end confdefs.h. */
26898
26899
26900 #include <linux/namei.h>
26901
26902 int
26903 main (void)
26904 {
26905
26906 struct path *p = NULL;
26907 follow_down_one(p);
26908
26909 ;
26910 return 0;
26911 }
26912
26913 _ACEOF
26914
26915
26916
26917 cat - <<_ACEOF >conftest.h
26918
26919 _ACEOF
26920
26921
26922 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
26923 echo "obj-m := conftest.o" >build/Makefile
26924 modpost_flag=''
26925 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
26926 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
26927 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26928 (eval $ac_try) 2>&5
26929 ac_status=$?
26930 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26931 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
26932 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26933 (eval $ac_try) 2>&5
26934 ac_status=$?
26935 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26936 (exit $ac_status); }; }; then
26937
26938 { $as_echo "$as_me:$LINENO: result: yes" >&5
26939 $as_echo "yes" >&6; }
26940
26941 cat >>confdefs.h <<\_ACEOF
26942 #define HAVE_FOLLOW_DOWN_ONE 1
26943 _ACEOF
26944
26945
26946 else
26947 $as_echo "$as_me: failed program was:" >&5
26948 sed 's/^/| /' conftest.$ac_ext >&5
26949
26950 { $as_echo "$as_me:$LINENO: result: no" >&5
26951 $as_echo "no" >&6; }
26952
26953
26954
26955 fi
26956
26957 rm -Rf build
26958
26959
26960
26961
26962 { $as_echo "$as_me:$LINENO: checking whether make_request_fn() returns int" >&5
26963 $as_echo_n "checking whether make_request_fn() returns int... " >&6; }
26964
26965
26966 cat confdefs.h - <<_ACEOF >conftest.c
26967 /* confdefs.h. */
26968 _ACEOF
26969 cat confdefs.h >>conftest.$ac_ext
26970 cat >>conftest.$ac_ext <<_ACEOF
26971 /* end confdefs.h. */
26972
26973
26974 #include <linux/blkdev.h>
26975
26976 int make_request(struct request_queue *q, struct bio *bio)
26977 {
26978 return (0);
26979 }
26980
26981 int
26982 main (void)
26983 {
26984
26985 blk_queue_make_request(NULL, &make_request);
26986
26987 ;
26988 return 0;
26989 }
26990
26991 _ACEOF
26992
26993
26994
26995 cat - <<_ACEOF >conftest.h
26996
26997 _ACEOF
26998
26999
27000 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
27001 echo "obj-m := conftest.o" >build/Makefile
27002 modpost_flag=''
27003 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
27004 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
27005 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27006 (eval $ac_try) 2>&5
27007 ac_status=$?
27008 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27009 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
27010 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27011 (eval $ac_try) 2>&5
27012 ac_status=$?
27013 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27014 (exit $ac_status); }; }; then
27015
27016 { $as_echo "$as_me:$LINENO: result: yes" >&5
27017 $as_echo "yes" >&6; }
27018
27019 cat >>confdefs.h <<\_ACEOF
27020 #define MAKE_REQUEST_FN_RET int
27021 _ACEOF
27022
27023
27024 cat >>confdefs.h <<\_ACEOF
27025 #define HAVE_MAKE_REQUEST_FN_RET_INT 1
27026 _ACEOF
27027
27028
27029 else
27030 $as_echo "$as_me: failed program was:" >&5
27031 sed 's/^/| /' conftest.$ac_ext >&5
27032
27033 { $as_echo "$as_me:$LINENO: result: no" >&5
27034 $as_echo "no" >&6; }
27035 { $as_echo "$as_me:$LINENO: checking whether make_request_fn() returns void" >&5
27036 $as_echo_n "checking whether make_request_fn() returns void... " >&6; }
27037
27038
27039 cat confdefs.h - <<_ACEOF >conftest.c
27040 /* confdefs.h. */
27041 _ACEOF
27042 cat confdefs.h >>conftest.$ac_ext
27043 cat >>conftest.$ac_ext <<_ACEOF
27044 /* end confdefs.h. */
27045
27046
27047 #include <linux/blkdev.h>
27048
27049 void make_request(struct request_queue *q, struct bio *bio)
27050 {
27051 return;
27052 }
27053
27054 int
27055 main (void)
27056 {
27057
27058 blk_queue_make_request(NULL, &make_request);
27059
27060 ;
27061 return 0;
27062 }
27063
27064 _ACEOF
27065
27066
27067
27068 cat - <<_ACEOF >conftest.h
27069
27070 _ACEOF
27071
27072
27073 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
27074 echo "obj-m := conftest.o" >build/Makefile
27075 modpost_flag=''
27076 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
27077 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
27078 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27079 (eval $ac_try) 2>&5
27080 ac_status=$?
27081 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27082 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
27083 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27084 (eval $ac_try) 2>&5
27085 ac_status=$?
27086 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27087 (exit $ac_status); }; }; then
27088
27089 { $as_echo "$as_me:$LINENO: result: yes" >&5
27090 $as_echo "yes" >&6; }
27091
27092 cat >>confdefs.h <<\_ACEOF
27093 #define MAKE_REQUEST_FN_RET void
27094 _ACEOF
27095
27096
27097 else
27098 $as_echo "$as_me: failed program was:" >&5
27099 sed 's/^/| /' conftest.$ac_ext >&5
27100
27101 { $as_echo "$as_me:$LINENO: result: no" >&5
27102 $as_echo "no" >&6; }
27103 { $as_echo "$as_me:$LINENO: checking whether make_request_fn() returns blk_qc_t" >&5
27104 $as_echo_n "checking whether make_request_fn() returns blk_qc_t... " >&6; }
27105
27106
27107 cat confdefs.h - <<_ACEOF >conftest.c
27108 /* confdefs.h. */
27109 _ACEOF
27110 cat confdefs.h >>conftest.$ac_ext
27111 cat >>conftest.$ac_ext <<_ACEOF
27112 /* end confdefs.h. */
27113
27114
27115 #include <linux/blkdev.h>
27116
27117 blk_qc_t make_request(struct request_queue *q, struct bio *bio)
27118 {
27119 return (BLK_QC_T_NONE);
27120 }
27121
27122 int
27123 main (void)
27124 {
27125
27126 blk_queue_make_request(NULL, &make_request);
27127
27128 ;
27129 return 0;
27130 }
27131
27132 _ACEOF
27133
27134
27135
27136 cat - <<_ACEOF >conftest.h
27137
27138 _ACEOF
27139
27140
27141 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
27142 echo "obj-m := conftest.o" >build/Makefile
27143 modpost_flag=''
27144 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
27145 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
27146 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27147 (eval $ac_try) 2>&5
27148 ac_status=$?
27149 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27150 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
27151 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27152 (eval $ac_try) 2>&5
27153 ac_status=$?
27154 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27155 (exit $ac_status); }; }; then
27156
27157 { $as_echo "$as_me:$LINENO: result: yes" >&5
27158 $as_echo "yes" >&6; }
27159
27160 cat >>confdefs.h <<\_ACEOF
27161 #define MAKE_REQUEST_FN_RET blk_qc_t
27162 _ACEOF
27163
27164
27165 cat >>confdefs.h <<\_ACEOF
27166 #define HAVE_MAKE_REQUEST_FN_RET_QC 1
27167 _ACEOF
27168
27169
27170 else
27171 $as_echo "$as_me: failed program was:" >&5
27172 sed 's/^/| /' conftest.$ac_ext >&5
27173
27174 { { $as_echo "$as_me:$LINENO: error: no - Please file a bug report at
27175 https://github.com/zfsonlinux/zfs/issues/new" >&5
27176 $as_echo "$as_me: error: no - Please file a bug report at
27177 https://github.com/zfsonlinux/zfs/issues/new" >&2;}
27178 { (exit 1); exit 1; }; }
27179
27180
27181
27182 fi
27183
27184 rm -Rf build
27185
27186
27187
27188
27189
27190 fi
27191
27192 rm -Rf build
27193
27194
27195
27196
27197
27198 fi
27199
27200 rm -Rf build
27201
27202
27203
27204
27205 { $as_echo "$as_me:$LINENO: checking whether 3 arg generic IO accounting symbols are available" >&5
27206 $as_echo_n "checking whether 3 arg generic IO accounting symbols are available... " >&6; }
27207
27208
27209
27210 cat confdefs.h - <<_ACEOF >conftest.c
27211 /* confdefs.h. */
27212 _ACEOF
27213 cat confdefs.h >>conftest.$ac_ext
27214 cat >>conftest.$ac_ext <<_ACEOF
27215 /* end confdefs.h. */
27216
27217
27218 #include <linux/bio.h>
27219
27220 void (*generic_start_io_acct_f)(int, unsigned long,
27221 struct hd_struct *) = &generic_start_io_acct;
27222 void (*generic_end_io_acct_f)(int, struct hd_struct *,
27223 unsigned long) = &generic_end_io_acct;
27224
27225 int
27226 main (void)
27227 {
27228
27229 generic_start_io_acct(0, 0, NULL);
27230 generic_end_io_acct(0, NULL, 0);
27231
27232 ;
27233 return 0;
27234 }
27235
27236 _ACEOF
27237
27238
27239
27240 cat - <<_ACEOF >conftest.h
27241
27242 _ACEOF
27243
27244
27245 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
27246 echo "obj-m := conftest.o" >build/Makefile
27247 modpost_flag=''
27248 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
27249 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
27250 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27251 (eval $ac_try) 2>&5
27252 ac_status=$?
27253 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27254 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
27255 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27256 (eval $ac_try) 2>&5
27257 ac_status=$?
27258 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27259 (exit $ac_status); }; }; then
27260 rc=0
27261 else
27262 $as_echo "$as_me: failed program was:" >&5
27263 sed 's/^/| /' conftest.$ac_ext >&5
27264 rc=1
27265
27266
27267 fi
27268
27269 rm -Rf build
27270
27271
27272 if test $rc -ne 0; then :
27273
27274 { $as_echo "$as_me:$LINENO: result: no" >&5
27275 $as_echo "no" >&6; }
27276
27277 else
27278 if test "x$enable_linux_builtin" != xyes; then
27279
27280 grep -q -E '[[:space:]]generic_start_io_acct[[:space:]]' \
27281 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
27282 rc=$?
27283 if test $rc -ne 0; then
27284 export=0
27285 for file in block/bio.c; do
27286 grep -q -E "EXPORT_SYMBOL.*(generic_start_io_acct)" \
27287 "$LINUX/$file" 2>/dev/null
27288 rc=$?
27289 if test $rc -eq 0; then
27290 export=1
27291 break;
27292 fi
27293 done
27294 if test $export -eq 0; then :
27295 rc=1
27296 else :
27297 rc=0
27298 fi
27299 else :
27300 rc=0
27301 fi
27302
27303 fi
27304 if test $rc -ne 0; then :
27305
27306 { $as_echo "$as_me:$LINENO: result: no" >&5
27307 $as_echo "no" >&6; }
27308
27309 else :
27310
27311 { $as_echo "$as_me:$LINENO: result: yes" >&5
27312 $as_echo "yes" >&6; }
27313
27314 cat >>confdefs.h <<\_ACEOF
27315 #define HAVE_GENERIC_IO_ACCT_3ARG 1
27316 _ACEOF
27317
27318
27319 fi
27320 fi
27321
27322
27323
27324 { $as_echo "$as_me:$LINENO: checking whether 4 arg generic IO accounting symbols are available" >&5
27325 $as_echo_n "checking whether 4 arg generic IO accounting symbols are available... " >&6; }
27326
27327
27328
27329 cat confdefs.h - <<_ACEOF >conftest.c
27330 /* confdefs.h. */
27331 _ACEOF
27332 cat confdefs.h >>conftest.$ac_ext
27333 cat >>conftest.$ac_ext <<_ACEOF
27334 /* end confdefs.h. */
27335
27336
27337 #include <linux/bio.h>
27338
27339 void (*generic_start_io_acct_f)(struct request_queue *, int,
27340 unsigned long, struct hd_struct *) = &generic_start_io_acct;
27341 void (*generic_end_io_acct_f)(struct request_queue *, int,
27342 struct hd_struct *, unsigned long) = &generic_end_io_acct;
27343
27344 int
27345 main (void)
27346 {
27347
27348 generic_start_io_acct(NULL, 0, 0, NULL);
27349 generic_end_io_acct(NULL, 0, NULL, 0);
27350
27351 ;
27352 return 0;
27353 }
27354
27355 _ACEOF
27356
27357
27358
27359 cat - <<_ACEOF >conftest.h
27360
27361 _ACEOF
27362
27363
27364 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
27365 echo "obj-m := conftest.o" >build/Makefile
27366 modpost_flag=''
27367 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
27368 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
27369 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27370 (eval $ac_try) 2>&5
27371 ac_status=$?
27372 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27373 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
27374 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27375 (eval $ac_try) 2>&5
27376 ac_status=$?
27377 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27378 (exit $ac_status); }; }; then
27379 rc=0
27380 else
27381 $as_echo "$as_me: failed program was:" >&5
27382 sed 's/^/| /' conftest.$ac_ext >&5
27383 rc=1
27384
27385
27386 fi
27387
27388 rm -Rf build
27389
27390
27391 if test $rc -ne 0; then :
27392
27393 { $as_echo "$as_me:$LINENO: result: no" >&5
27394 $as_echo "no" >&6; }
27395
27396 else
27397 if test "x$enable_linux_builtin" != xyes; then
27398
27399 grep -q -E '[[:space:]]generic_start_io_acct[[:space:]]' \
27400 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
27401 rc=$?
27402 if test $rc -ne 0; then
27403 export=0
27404 for file in block/bio.c; do
27405 grep -q -E "EXPORT_SYMBOL.*(generic_start_io_acct)" \
27406 "$LINUX/$file" 2>/dev/null
27407 rc=$?
27408 if test $rc -eq 0; then
27409 export=1
27410 break;
27411 fi
27412 done
27413 if test $export -eq 0; then :
27414 rc=1
27415 else :
27416 rc=0
27417 fi
27418 else :
27419 rc=0
27420 fi
27421
27422 fi
27423 if test $rc -ne 0; then :
27424
27425 { $as_echo "$as_me:$LINENO: result: no" >&5
27426 $as_echo "no" >&6; }
27427
27428 else :
27429
27430 { $as_echo "$as_me:$LINENO: result: yes" >&5
27431 $as_echo "yes" >&6; }
27432
27433 cat >>confdefs.h <<\_ACEOF
27434 #define HAVE_GENERIC_IO_ACCT_4ARG 1
27435 _ACEOF
27436
27437
27438 fi
27439 fi
27440
27441
27442
27443 { $as_echo "$as_me:$LINENO: checking whether asm/fpu/api.h exists" >&5
27444 $as_echo_n "checking whether asm/fpu/api.h exists... " >&6; }
27445
27446
27447 cat confdefs.h - <<_ACEOF >conftest.c
27448 /* confdefs.h. */
27449 _ACEOF
27450 cat confdefs.h >>conftest.$ac_ext
27451 cat >>conftest.$ac_ext <<_ACEOF
27452 /* end confdefs.h. */
27453
27454
27455 #include <linux/kernel.h>
27456 #include <asm/fpu/api.h>
27457
27458 int
27459 main (void)
27460 {
27461
27462 __kernel_fpu_begin();
27463
27464 ;
27465 return 0;
27466 }
27467
27468 _ACEOF
27469
27470
27471
27472 cat - <<_ACEOF >conftest.h
27473
27474 _ACEOF
27475
27476
27477 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
27478 echo "obj-m := conftest.o" >build/Makefile
27479 modpost_flag=''
27480 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
27481 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
27482 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27483 (eval $ac_try) 2>&5
27484 ac_status=$?
27485 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27486 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
27487 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27488 (eval $ac_try) 2>&5
27489 ac_status=$?
27490 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27491 (exit $ac_status); }; }; then
27492
27493 { $as_echo "$as_me:$LINENO: result: yes" >&5
27494 $as_echo "yes" >&6; }
27495
27496 cat >>confdefs.h <<\_ACEOF
27497 #define HAVE_FPU_API_H 1
27498 _ACEOF
27499
27500
27501 else
27502 $as_echo "$as_me: failed program was:" >&5
27503 sed 's/^/| /' conftest.$ac_ext >&5
27504
27505 { $as_echo "$as_me:$LINENO: result: no" >&5
27506 $as_echo "no" >&6; }
27507
27508
27509
27510 fi
27511
27512 rm -Rf build
27513
27514
27515
27516
27517 { $as_echo "$as_me:$LINENO: checking whether i_(uid|gid)_(read|write) exist" >&5
27518 $as_echo_n "checking whether i_(uid|gid)_(read|write) exist... " >&6; }
27519
27520
27521 cat confdefs.h - <<_ACEOF >conftest.c
27522 /* confdefs.h. */
27523 _ACEOF
27524 cat confdefs.h >>conftest.$ac_ext
27525 cat >>conftest.$ac_ext <<_ACEOF
27526 /* end confdefs.h. */
27527
27528
27529 #include <linux/fs.h>
27530
27531 int
27532 main (void)
27533 {
27534
27535 struct inode *ip = NULL;
27536 (void) i_uid_read(ip);
27537
27538 ;
27539 return 0;
27540 }
27541
27542 _ACEOF
27543
27544
27545
27546 cat - <<_ACEOF >conftest.h
27547
27548 _ACEOF
27549
27550
27551 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
27552 echo "obj-m := conftest.o" >build/Makefile
27553 modpost_flag=''
27554 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
27555 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
27556 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27557 (eval $ac_try) 2>&5
27558 ac_status=$?
27559 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27560 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
27561 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27562 (eval $ac_try) 2>&5
27563 ac_status=$?
27564 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27565 (exit $ac_status); }; }; then
27566
27567 { $as_echo "$as_me:$LINENO: result: yes" >&5
27568 $as_echo "yes" >&6; }
27569
27570 cat >>confdefs.h <<\_ACEOF
27571 #define HAVE_KUID_HELPERS 1
27572 _ACEOF
27573
27574
27575 else
27576 $as_echo "$as_me: failed program was:" >&5
27577 sed 's/^/| /' conftest.$ac_ext >&5
27578
27579 { $as_echo "$as_me:$LINENO: result: no" >&5
27580 $as_echo "no" >&6; }
27581
27582
27583
27584 fi
27585
27586 rm -Rf build
27587
27588
27589
27590
27591 { $as_echo "$as_me:$LINENO: checking whether module_param_call() is hardened" >&5
27592 $as_echo_n "checking whether module_param_call() is hardened... " >&6; }
27593
27594
27595 cat confdefs.h - <<_ACEOF >conftest.c
27596 /* confdefs.h. */
27597 _ACEOF
27598 cat confdefs.h >>conftest.$ac_ext
27599 cat >>conftest.$ac_ext <<_ACEOF
27600 /* end confdefs.h. */
27601
27602
27603 #include <linux/module.h>
27604 #include <linux/moduleparam.h>
27605
27606 int param_get(char *b, const struct kernel_param *kp)
27607 {
27608 return (0);
27609 }
27610
27611 int param_set(const char *b, const struct kernel_param *kp)
27612 {
27613 return (0);
27614 }
27615
27616 module_param_call(p, param_set, param_get, NULL, 0644);
27617
27618 int
27619 main (void)
27620 {
27621
27622
27623 ;
27624 return 0;
27625 }
27626
27627 _ACEOF
27628
27629
27630
27631 cat - <<_ACEOF >conftest.h
27632
27633 _ACEOF
27634
27635
27636 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
27637 echo "obj-m := conftest.o" >build/Makefile
27638 modpost_flag=''
27639 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
27640 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
27641 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27642 (eval $ac_try) 2>&5
27643 ac_status=$?
27644 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27645 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
27646 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27647 (eval $ac_try) 2>&5
27648 ac_status=$?
27649 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27650 (exit $ac_status); }; }; then
27651
27652 { $as_echo "$as_me:$LINENO: result: yes" >&5
27653 $as_echo "yes" >&6; }
27654
27655 cat >>confdefs.h <<\_ACEOF
27656 #define MODULE_PARAM_CALL_CONST 1
27657 _ACEOF
27658
27659
27660 else
27661 $as_echo "$as_me: failed program was:" >&5
27662 sed 's/^/| /' conftest.$ac_ext >&5
27663
27664 { $as_echo "$as_me:$LINENO: result: no" >&5
27665 $as_echo "no" >&6; }
27666
27667
27668
27669 fi
27670
27671 rm -Rf build
27672
27673
27674
27675
27676 { $as_echo "$as_me:$LINENO: checking whether iops->rename() wants flags" >&5
27677 $as_echo_n "checking whether iops->rename() wants flags... " >&6; }
27678
27679
27680 cat confdefs.h - <<_ACEOF >conftest.c
27681 /* confdefs.h. */
27682 _ACEOF
27683 cat confdefs.h >>conftest.$ac_ext
27684 cat >>conftest.$ac_ext <<_ACEOF
27685 /* end confdefs.h. */
27686
27687
27688 #include <linux/fs.h>
27689 int rename_fn(struct inode *sip, struct dentry *sdp,
27690 struct inode *tip, struct dentry *tdp,
27691 unsigned int flags) { return 0; }
27692
27693 static const struct inode_operations
27694 iops __attribute__ ((unused)) = {
27695 .rename = rename_fn,
27696 };
27697
27698 int
27699 main (void)
27700 {
27701
27702
27703 ;
27704 return 0;
27705 }
27706
27707 _ACEOF
27708
27709
27710
27711 cat - <<_ACEOF >conftest.h
27712
27713 _ACEOF
27714
27715
27716 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
27717 echo "obj-m := conftest.o" >build/Makefile
27718 modpost_flag=''
27719 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
27720 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
27721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27722 (eval $ac_try) 2>&5
27723 ac_status=$?
27724 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27725 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
27726 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27727 (eval $ac_try) 2>&5
27728 ac_status=$?
27729 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27730 (exit $ac_status); }; }; then
27731
27732 { $as_echo "$as_me:$LINENO: result: yes" >&5
27733 $as_echo "yes" >&6; }
27734
27735 cat >>confdefs.h <<\_ACEOF
27736 #define HAVE_RENAME_WANTS_FLAGS 1
27737 _ACEOF
27738
27739
27740 else
27741 $as_echo "$as_me: failed program was:" >&5
27742 sed 's/^/| /' conftest.$ac_ext >&5
27743
27744 { $as_echo "$as_me:$LINENO: result: no" >&5
27745 $as_echo "no" >&6; }
27746
27747
27748
27749 fi
27750
27751 rm -Rf build
27752
27753
27754
27755
27756 { $as_echo "$as_me:$LINENO: checking whether generic_setxattr() exists" >&5
27757 $as_echo_n "checking whether generic_setxattr() exists... " >&6; }
27758
27759
27760 cat confdefs.h - <<_ACEOF >conftest.c
27761 /* confdefs.h. */
27762 _ACEOF
27763 cat confdefs.h >>conftest.$ac_ext
27764 cat >>conftest.$ac_ext <<_ACEOF
27765 /* end confdefs.h. */
27766
27767
27768 #include <linux/fs.h>
27769 #include <linux/xattr.h>
27770
27771 static const struct inode_operations
27772 iops __attribute__ ((unused)) = {
27773 .setxattr = generic_setxattr
27774 };
27775
27776 int
27777 main (void)
27778 {
27779
27780
27781 ;
27782 return 0;
27783 }
27784
27785 _ACEOF
27786
27787
27788
27789 cat - <<_ACEOF >conftest.h
27790
27791 _ACEOF
27792
27793
27794 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
27795 echo "obj-m := conftest.o" >build/Makefile
27796 modpost_flag=''
27797 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
27798 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
27799 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27800 (eval $ac_try) 2>&5
27801 ac_status=$?
27802 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27803 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
27804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27805 (eval $ac_try) 2>&5
27806 ac_status=$?
27807 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27808 (exit $ac_status); }; }; then
27809
27810 { $as_echo "$as_me:$LINENO: result: yes" >&5
27811 $as_echo "yes" >&6; }
27812
27813 cat >>confdefs.h <<\_ACEOF
27814 #define HAVE_GENERIC_SETXATTR 1
27815 _ACEOF
27816
27817
27818 else
27819 $as_echo "$as_me: failed program was:" >&5
27820 sed 's/^/| /' conftest.$ac_ext >&5
27821
27822 { $as_echo "$as_me:$LINENO: result: no" >&5
27823 $as_echo "no" >&6; }
27824
27825
27826
27827 fi
27828
27829 rm -Rf build
27830
27831
27832
27833 { $as_echo "$as_me:$LINENO: checking whether current_time() exists" >&5
27834 $as_echo_n "checking whether current_time() exists... " >&6; }
27835
27836
27837
27838 cat confdefs.h - <<_ACEOF >conftest.c
27839 /* confdefs.h. */
27840 _ACEOF
27841 cat confdefs.h >>conftest.$ac_ext
27842 cat >>conftest.$ac_ext <<_ACEOF
27843 /* end confdefs.h. */
27844
27845
27846 #include <linux/fs.h>
27847
27848 int
27849 main (void)
27850 {
27851
27852 struct inode ip;
27853 struct timespec now __attribute__ ((unused));
27854
27855 now = current_time(&ip);
27856
27857 ;
27858 return 0;
27859 }
27860
27861 _ACEOF
27862
27863
27864
27865 cat - <<_ACEOF >conftest.h
27866
27867 _ACEOF
27868
27869
27870 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
27871 echo "obj-m := conftest.o" >build/Makefile
27872 modpost_flag=''
27873 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
27874 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
27875 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27876 (eval $ac_try) 2>&5
27877 ac_status=$?
27878 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27879 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
27880 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27881 (eval $ac_try) 2>&5
27882 ac_status=$?
27883 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27884 (exit $ac_status); }; }; then
27885 rc=0
27886 else
27887 $as_echo "$as_me: failed program was:" >&5
27888 sed 's/^/| /' conftest.$ac_ext >&5
27889 rc=1
27890
27891
27892 fi
27893
27894 rm -Rf build
27895
27896
27897 if test $rc -ne 0; then :
27898
27899 { $as_echo "$as_me:$LINENO: result: no" >&5
27900 $as_echo "no" >&6; }
27901
27902 else
27903 if test "x$enable_linux_builtin" != xyes; then
27904
27905 grep -q -E '[[:space:]]current_time[[:space:]]' \
27906 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
27907 rc=$?
27908 if test $rc -ne 0; then
27909 export=0
27910 for file in fs/inode.c; do
27911 grep -q -E "EXPORT_SYMBOL.*(current_time)" \
27912 "$LINUX/$file" 2>/dev/null
27913 rc=$?
27914 if test $rc -eq 0; then
27915 export=1
27916 break;
27917 fi
27918 done
27919 if test $export -eq 0; then :
27920 rc=1
27921 else :
27922 rc=0
27923 fi
27924 else :
27925 rc=0
27926 fi
27927
27928 fi
27929 if test $rc -ne 0; then :
27930
27931 { $as_echo "$as_me:$LINENO: result: no" >&5
27932 $as_echo "no" >&6; }
27933
27934 else :
27935
27936 { $as_echo "$as_me:$LINENO: result: yes" >&5
27937 $as_echo "yes" >&6; }
27938
27939 cat >>confdefs.h <<\_ACEOF
27940 #define HAVE_CURRENT_TIME 1
27941 _ACEOF
27942
27943
27944 fi
27945 fi
27946
27947
27948
27949
27950 { $as_echo "$as_me:$LINENO: checking whether global_node_page_state() exists" >&5
27951 $as_echo_n "checking whether global_node_page_state() exists... " >&6; }
27952
27953
27954 cat confdefs.h - <<_ACEOF >conftest.c
27955 /* confdefs.h. */
27956 _ACEOF
27957 cat confdefs.h >>conftest.$ac_ext
27958 cat >>conftest.$ac_ext <<_ACEOF
27959 /* end confdefs.h. */
27960
27961
27962 #include <linux/mm.h>
27963 #include <linux/vmstat.h>
27964
27965 int
27966 main (void)
27967 {
27968
27969 (void) global_node_page_state(0);
27970
27971 ;
27972 return 0;
27973 }
27974
27975 _ACEOF
27976
27977
27978
27979 cat - <<_ACEOF >conftest.h
27980
27981 _ACEOF
27982
27983
27984 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
27985 echo "obj-m := conftest.o" >build/Makefile
27986 modpost_flag=''
27987 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
27988 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
27989 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27990 (eval $ac_try) 2>&5
27991 ac_status=$?
27992 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27993 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
27994 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27995 (eval $ac_try) 2>&5
27996 ac_status=$?
27997 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27998 (exit $ac_status); }; }; then
27999
28000 { $as_echo "$as_me:$LINENO: result: yes" >&5
28001 $as_echo "yes" >&6; }
28002
28003 cat >>confdefs.h <<\_ACEOF
28004 #define ZFS_GLOBAL_NODE_PAGE_STATE 1
28005 _ACEOF
28006
28007
28008 else
28009 $as_echo "$as_me: failed program was:" >&5
28010 sed 's/^/| /' conftest.$ac_ext >&5
28011
28012 { $as_echo "$as_me:$LINENO: result: no" >&5
28013 $as_echo "no" >&6; }
28014
28015
28016
28017 fi
28018
28019 rm -Rf build
28020
28021
28022
28023
28024 { $as_echo "$as_me:$LINENO: checking whether global_zone_page_state() exists" >&5
28025 $as_echo_n "checking whether global_zone_page_state() exists... " >&6; }
28026
28027
28028 cat confdefs.h - <<_ACEOF >conftest.c
28029 /* confdefs.h. */
28030 _ACEOF
28031 cat confdefs.h >>conftest.$ac_ext
28032 cat >>conftest.$ac_ext <<_ACEOF
28033 /* end confdefs.h. */
28034
28035
28036 #include <linux/mm.h>
28037 #include <linux/vmstat.h>
28038
28039 int
28040 main (void)
28041 {
28042
28043 (void) global_zone_page_state(0);
28044
28045 ;
28046 return 0;
28047 }
28048
28049 _ACEOF
28050
28051
28052
28053 cat - <<_ACEOF >conftest.h
28054
28055 _ACEOF
28056
28057
28058 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
28059 echo "obj-m := conftest.o" >build/Makefile
28060 modpost_flag=''
28061 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
28062 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
28063 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28064 (eval $ac_try) 2>&5
28065 ac_status=$?
28066 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28067 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
28068 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28069 (eval $ac_try) 2>&5
28070 ac_status=$?
28071 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28072 (exit $ac_status); }; }; then
28073
28074 { $as_echo "$as_me:$LINENO: result: yes" >&5
28075 $as_echo "yes" >&6; }
28076
28077 cat >>confdefs.h <<\_ACEOF
28078 #define ZFS_GLOBAL_ZONE_PAGE_STATE 1
28079 _ACEOF
28080
28081
28082 else
28083 $as_echo "$as_me: failed program was:" >&5
28084 sed 's/^/| /' conftest.$ac_ext >&5
28085
28086 { $as_echo "$as_me:$LINENO: result: no" >&5
28087 $as_echo "no" >&6; }
28088
28089
28090
28091 fi
28092
28093 rm -Rf build
28094
28095
28096
28097
28098
28099 { $as_echo "$as_me:$LINENO: checking whether enum node_stat_item contains NR_FILE_PAGES" >&5
28100 $as_echo_n "checking whether enum node_stat_item contains NR_FILE_PAGES... " >&6; }
28101 if { ac_try='"${srcdir}/scripts/enum-extract.pl" "node_stat_item" "$LINUX/include/linux/mmzone.h" | egrep -qx NR_FILE_PAGES'
28102 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28103 (eval $ac_try) 2>&5
28104 ac_status=$?
28105 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28106 (exit $ac_status); }; }; then
28107
28108 { $as_echo "$as_me:$LINENO: result: yes" >&5
28109 $as_echo "yes" >&6; }
28110
28111 cat >>confdefs.h <<\_ACEOF
28112 #define ZFS_ENUM_NODE_STAT_ITEM_NR_FILE_PAGES 1
28113 _ACEOF
28114
28115 ZFS_ENUM_NODE_STAT_ITEM_NR_FILE_PAGES=1
28116
28117 else
28118
28119 { $as_echo "$as_me:$LINENO: result: no" >&5
28120 $as_echo "no" >&6; }
28121
28122 fi
28123
28124
28125
28126 { $as_echo "$as_me:$LINENO: checking whether enum node_stat_item contains NR_INACTIVE_ANON" >&5
28127 $as_echo_n "checking whether enum node_stat_item contains NR_INACTIVE_ANON... " >&6; }
28128 if { ac_try='"${srcdir}/scripts/enum-extract.pl" "node_stat_item" "$LINUX/include/linux/mmzone.h" | egrep -qx NR_INACTIVE_ANON'
28129 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28130 (eval $ac_try) 2>&5
28131 ac_status=$?
28132 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28133 (exit $ac_status); }; }; then
28134
28135 { $as_echo "$as_me:$LINENO: result: yes" >&5
28136 $as_echo "yes" >&6; }
28137
28138 cat >>confdefs.h <<\_ACEOF
28139 #define ZFS_ENUM_NODE_STAT_ITEM_NR_INACTIVE_ANON 1
28140 _ACEOF
28141
28142 ZFS_ENUM_NODE_STAT_ITEM_NR_INACTIVE_ANON=1
28143
28144 else
28145
28146 { $as_echo "$as_me:$LINENO: result: no" >&5
28147 $as_echo "no" >&6; }
28148
28149 fi
28150
28151
28152
28153 { $as_echo "$as_me:$LINENO: checking whether enum node_stat_item contains NR_INACTIVE_FILE" >&5
28154 $as_echo_n "checking whether enum node_stat_item contains NR_INACTIVE_FILE... " >&6; }
28155 if { ac_try='"${srcdir}/scripts/enum-extract.pl" "node_stat_item" "$LINUX/include/linux/mmzone.h" | egrep -qx NR_INACTIVE_FILE'
28156 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28157 (eval $ac_try) 2>&5
28158 ac_status=$?
28159 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28160 (exit $ac_status); }; }; then
28161
28162 { $as_echo "$as_me:$LINENO: result: yes" >&5
28163 $as_echo "yes" >&6; }
28164
28165 cat >>confdefs.h <<\_ACEOF
28166 #define ZFS_ENUM_NODE_STAT_ITEM_NR_INACTIVE_FILE 1
28167 _ACEOF
28168
28169 ZFS_ENUM_NODE_STAT_ITEM_NR_INACTIVE_FILE=1
28170
28171 else
28172
28173 { $as_echo "$as_me:$LINENO: result: no" >&5
28174 $as_echo "no" >&6; }
28175
28176 fi
28177
28178
28179
28180 { $as_echo "$as_me:$LINENO: checking whether enum node_stat_item contains NR_SLAB_RECLAIMABLE" >&5
28181 $as_echo_n "checking whether enum node_stat_item contains NR_SLAB_RECLAIMABLE... " >&6; }
28182 if { ac_try='"${srcdir}/scripts/enum-extract.pl" "node_stat_item" "$LINUX/include/linux/mmzone.h" | egrep -qx NR_SLAB_RECLAIMABLE'
28183 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28184 (eval $ac_try) 2>&5
28185 ac_status=$?
28186 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28187 (exit $ac_status); }; }; then
28188
28189 { $as_echo "$as_me:$LINENO: result: yes" >&5
28190 $as_echo "yes" >&6; }
28191
28192 cat >>confdefs.h <<\_ACEOF
28193 #define ZFS_ENUM_NODE_STAT_ITEM_NR_SLAB_RECLAIMABLE 1
28194 _ACEOF
28195
28196 ZFS_ENUM_NODE_STAT_ITEM_NR_SLAB_RECLAIMABLE=1
28197
28198 else
28199
28200 { $as_echo "$as_me:$LINENO: result: no" >&5
28201 $as_echo "no" >&6; }
28202
28203 fi
28204
28205
28206
28207
28208 { $as_echo "$as_me:$LINENO: checking whether enum zone_stat_item contains NR_FILE_PAGES" >&5
28209 $as_echo_n "checking whether enum zone_stat_item contains NR_FILE_PAGES... " >&6; }
28210 if { ac_try='"${srcdir}/scripts/enum-extract.pl" "zone_stat_item" "$LINUX/include/linux/mmzone.h" | egrep -qx NR_FILE_PAGES'
28211 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28212 (eval $ac_try) 2>&5
28213 ac_status=$?
28214 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28215 (exit $ac_status); }; }; then
28216
28217 { $as_echo "$as_me:$LINENO: result: yes" >&5
28218 $as_echo "yes" >&6; }
28219
28220 cat >>confdefs.h <<\_ACEOF
28221 #define ZFS_ENUM_ZONE_STAT_ITEM_NR_FILE_PAGES 1
28222 _ACEOF
28223
28224 ZFS_ENUM_ZONE_STAT_ITEM_NR_FILE_PAGES=1
28225
28226 else
28227
28228 { $as_echo "$as_me:$LINENO: result: no" >&5
28229 $as_echo "no" >&6; }
28230
28231 fi
28232
28233
28234
28235 { $as_echo "$as_me:$LINENO: checking whether enum zone_stat_item contains NR_INACTIVE_ANON" >&5
28236 $as_echo_n "checking whether enum zone_stat_item contains NR_INACTIVE_ANON... " >&6; }
28237 if { ac_try='"${srcdir}/scripts/enum-extract.pl" "zone_stat_item" "$LINUX/include/linux/mmzone.h" | egrep -qx NR_INACTIVE_ANON'
28238 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28239 (eval $ac_try) 2>&5
28240 ac_status=$?
28241 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28242 (exit $ac_status); }; }; then
28243
28244 { $as_echo "$as_me:$LINENO: result: yes" >&5
28245 $as_echo "yes" >&6; }
28246
28247 cat >>confdefs.h <<\_ACEOF
28248 #define ZFS_ENUM_ZONE_STAT_ITEM_NR_INACTIVE_ANON 1
28249 _ACEOF
28250
28251 ZFS_ENUM_ZONE_STAT_ITEM_NR_INACTIVE_ANON=1
28252
28253 else
28254
28255 { $as_echo "$as_me:$LINENO: result: no" >&5
28256 $as_echo "no" >&6; }
28257
28258 fi
28259
28260
28261
28262 { $as_echo "$as_me:$LINENO: checking whether enum zone_stat_item contains NR_INACTIVE_FILE" >&5
28263 $as_echo_n "checking whether enum zone_stat_item contains NR_INACTIVE_FILE... " >&6; }
28264 if { ac_try='"${srcdir}/scripts/enum-extract.pl" "zone_stat_item" "$LINUX/include/linux/mmzone.h" | egrep -qx NR_INACTIVE_FILE'
28265 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28266 (eval $ac_try) 2>&5
28267 ac_status=$?
28268 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28269 (exit $ac_status); }; }; then
28270
28271 { $as_echo "$as_me:$LINENO: result: yes" >&5
28272 $as_echo "yes" >&6; }
28273
28274 cat >>confdefs.h <<\_ACEOF
28275 #define ZFS_ENUM_ZONE_STAT_ITEM_NR_INACTIVE_FILE 1
28276 _ACEOF
28277
28278 ZFS_ENUM_ZONE_STAT_ITEM_NR_INACTIVE_FILE=1
28279
28280 else
28281
28282 { $as_echo "$as_me:$LINENO: result: no" >&5
28283 $as_echo "no" >&6; }
28284
28285 fi
28286
28287
28288
28289 { $as_echo "$as_me:$LINENO: checking whether enum zone_stat_item contains NR_SLAB_RECLAIMABLE" >&5
28290 $as_echo_n "checking whether enum zone_stat_item contains NR_SLAB_RECLAIMABLE... " >&6; }
28291 if { ac_try='"${srcdir}/scripts/enum-extract.pl" "zone_stat_item" "$LINUX/include/linux/mmzone.h" | egrep -qx NR_SLAB_RECLAIMABLE'
28292 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28293 (eval $ac_try) 2>&5
28294 ac_status=$?
28295 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28296 (exit $ac_status); }; }; then
28297
28298 { $as_echo "$as_me:$LINENO: result: yes" >&5
28299 $as_echo "yes" >&6; }
28300
28301 cat >>confdefs.h <<\_ACEOF
28302 #define ZFS_ENUM_ZONE_STAT_ITEM_NR_SLAB_RECLAIMABLE 1
28303 _ACEOF
28304
28305 ZFS_ENUM_ZONE_STAT_ITEM_NR_SLAB_RECLAIMABLE=1
28306
28307 else
28308
28309 { $as_echo "$as_me:$LINENO: result: no" >&5
28310 $as_echo "no" >&6; }
28311
28312 fi
28313
28314
28315
28316
28317 { $as_echo "$as_me:$LINENO: checking global_page_state enums are sane" >&5
28318 $as_echo_n "checking global_page_state enums are sane... " >&6; }
28319
28320
28321 enum_check_a="$ZFS_ENUM_NODE_STAT_ITEM_NR_FILE_PAGES"
28322 enum_check_b="$ZFS_ENUM_ZONE_STAT_ITEM_NR_FILE_PAGES"
28323 if test -n "$enum_check_a" -a -n "$enum_check_b"; then
28324
28325
28326 { $as_echo "$as_me:$LINENO: result: no" >&5
28327 $as_echo "no" >&6; }
28328 { $as_echo "$as_me:$LINENO: result: NR_FILE_PAGES in either node_stat_item or zone_stat_item: DUPLICATE" >&5
28329 $as_echo "NR_FILE_PAGES in either node_stat_item or zone_stat_item: DUPLICATE" >&6; }
28330 { $as_echo "$as_me:$LINENO: result: configure needs updating, see: config/kernel-global_page_state.m4" >&5
28331 $as_echo "configure needs updating, see: config/kernel-global_page_state.m4" >&6; }
28332 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
28333 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
28334 { { $as_echo "$as_me:$LINENO: error: SHUT 'ER DOWN CLANCY, SHE'S PUMPIN' MUD!
28335 See \`config.log' for more details." >&5
28336 $as_echo "$as_me: error: SHUT 'ER DOWN CLANCY, SHE'S PUMPIN' MUD!
28337 See \`config.log' for more details." >&2;}
28338 { (exit 1); exit 1; }; }; }
28339
28340
28341 fi
28342
28343 if test -z "$enum_check_a" -a -z "$enum_check_b"; then
28344
28345
28346 { $as_echo "$as_me:$LINENO: result: no" >&5
28347 $as_echo "no" >&6; }
28348 { $as_echo "$as_me:$LINENO: result: NR_FILE_PAGES in either node_stat_item or zone_stat_item: NOT FOUND" >&5
28349 $as_echo "NR_FILE_PAGES in either node_stat_item or zone_stat_item: NOT FOUND" >&6; }
28350 { $as_echo "$as_me:$LINENO: result: configure needs updating, see: config/kernel-global_page_state.m4" >&5
28351 $as_echo "configure needs updating, see: config/kernel-global_page_state.m4" >&6; }
28352 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
28353 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
28354 { { $as_echo "$as_me:$LINENO: error: SHUT 'ER DOWN CLANCY, SHE'S PUMPIN' MUD!
28355 See \`config.log' for more details." >&5
28356 $as_echo "$as_me: error: SHUT 'ER DOWN CLANCY, SHE'S PUMPIN' MUD!
28357 See \`config.log' for more details." >&2;}
28358 { (exit 1); exit 1; }; }; }
28359
28360
28361 fi
28362
28363
28364
28365 enum_check_a="$ZFS_ENUM_NODE_STAT_ITEM_NR_INACTIVE_ANON"
28366 enum_check_b="$ZFS_ENUM_ZONE_STAT_ITEM_NR_INACTIVE_ANON"
28367 if test -n "$enum_check_a" -a -n "$enum_check_b"; then
28368
28369
28370 { $as_echo "$as_me:$LINENO: result: no" >&5
28371 $as_echo "no" >&6; }
28372 { $as_echo "$as_me:$LINENO: result: NR_INACTIVE_ANON in either node_stat_item or zone_stat_item: DUPLICATE" >&5
28373 $as_echo "NR_INACTIVE_ANON in either node_stat_item or zone_stat_item: DUPLICATE" >&6; }
28374 { $as_echo "$as_me:$LINENO: result: configure needs updating, see: config/kernel-global_page_state.m4" >&5
28375 $as_echo "configure needs updating, see: config/kernel-global_page_state.m4" >&6; }
28376 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
28377 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
28378 { { $as_echo "$as_me:$LINENO: error: SHUT 'ER DOWN CLANCY, SHE'S PUMPIN' MUD!
28379 See \`config.log' for more details." >&5
28380 $as_echo "$as_me: error: SHUT 'ER DOWN CLANCY, SHE'S PUMPIN' MUD!
28381 See \`config.log' for more details." >&2;}
28382 { (exit 1); exit 1; }; }; }
28383
28384
28385 fi
28386
28387 if test -z "$enum_check_a" -a -z "$enum_check_b"; then
28388
28389
28390 { $as_echo "$as_me:$LINENO: result: no" >&5
28391 $as_echo "no" >&6; }
28392 { $as_echo "$as_me:$LINENO: result: NR_INACTIVE_ANON in either node_stat_item or zone_stat_item: NOT FOUND" >&5
28393 $as_echo "NR_INACTIVE_ANON in either node_stat_item or zone_stat_item: NOT FOUND" >&6; }
28394 { $as_echo "$as_me:$LINENO: result: configure needs updating, see: config/kernel-global_page_state.m4" >&5
28395 $as_echo "configure needs updating, see: config/kernel-global_page_state.m4" >&6; }
28396 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
28397 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
28398 { { $as_echo "$as_me:$LINENO: error: SHUT 'ER DOWN CLANCY, SHE'S PUMPIN' MUD!
28399 See \`config.log' for more details." >&5
28400 $as_echo "$as_me: error: SHUT 'ER DOWN CLANCY, SHE'S PUMPIN' MUD!
28401 See \`config.log' for more details." >&2;}
28402 { (exit 1); exit 1; }; }; }
28403
28404
28405 fi
28406
28407
28408
28409 enum_check_a="$ZFS_ENUM_NODE_STAT_ITEM_NR_INACTIVE_FILE"
28410 enum_check_b="$ZFS_ENUM_ZONE_STAT_ITEM_NR_INACTIVE_FILE"
28411 if test -n "$enum_check_a" -a -n "$enum_check_b"; then
28412
28413
28414 { $as_echo "$as_me:$LINENO: result: no" >&5
28415 $as_echo "no" >&6; }
28416 { $as_echo "$as_me:$LINENO: result: NR_INACTIVE_FILE in either node_stat_item or zone_stat_item: DUPLICATE" >&5
28417 $as_echo "NR_INACTIVE_FILE in either node_stat_item or zone_stat_item: DUPLICATE" >&6; }
28418 { $as_echo "$as_me:$LINENO: result: configure needs updating, see: config/kernel-global_page_state.m4" >&5
28419 $as_echo "configure needs updating, see: config/kernel-global_page_state.m4" >&6; }
28420 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
28421 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
28422 { { $as_echo "$as_me:$LINENO: error: SHUT 'ER DOWN CLANCY, SHE'S PUMPIN' MUD!
28423 See \`config.log' for more details." >&5
28424 $as_echo "$as_me: error: SHUT 'ER DOWN CLANCY, SHE'S PUMPIN' MUD!
28425 See \`config.log' for more details." >&2;}
28426 { (exit 1); exit 1; }; }; }
28427
28428
28429 fi
28430
28431 if test -z "$enum_check_a" -a -z "$enum_check_b"; then
28432
28433
28434 { $as_echo "$as_me:$LINENO: result: no" >&5
28435 $as_echo "no" >&6; }
28436 { $as_echo "$as_me:$LINENO: result: NR_INACTIVE_FILE in either node_stat_item or zone_stat_item: NOT FOUND" >&5
28437 $as_echo "NR_INACTIVE_FILE in either node_stat_item or zone_stat_item: NOT FOUND" >&6; }
28438 { $as_echo "$as_me:$LINENO: result: configure needs updating, see: config/kernel-global_page_state.m4" >&5
28439 $as_echo "configure needs updating, see: config/kernel-global_page_state.m4" >&6; }
28440 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
28441 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
28442 { { $as_echo "$as_me:$LINENO: error: SHUT 'ER DOWN CLANCY, SHE'S PUMPIN' MUD!
28443 See \`config.log' for more details." >&5
28444 $as_echo "$as_me: error: SHUT 'ER DOWN CLANCY, SHE'S PUMPIN' MUD!
28445 See \`config.log' for more details." >&2;}
28446 { (exit 1); exit 1; }; }; }
28447
28448
28449 fi
28450
28451
28452
28453 enum_check_a="$ZFS_ENUM_NODE_STAT_ITEM_NR_SLAB_RECLAIMABLE"
28454 enum_check_b="$ZFS_ENUM_ZONE_STAT_ITEM_NR_SLAB_RECLAIMABLE"
28455 if test -n "$enum_check_a" -a -n "$enum_check_b"; then
28456
28457
28458 { $as_echo "$as_me:$LINENO: result: no" >&5
28459 $as_echo "no" >&6; }
28460 { $as_echo "$as_me:$LINENO: result: NR_SLAB_RECLAIMABLE in either node_stat_item or zone_stat_item: DUPLICATE" >&5
28461 $as_echo "NR_SLAB_RECLAIMABLE in either node_stat_item or zone_stat_item: DUPLICATE" >&6; }
28462 { $as_echo "$as_me:$LINENO: result: configure needs updating, see: config/kernel-global_page_state.m4" >&5
28463 $as_echo "configure needs updating, see: config/kernel-global_page_state.m4" >&6; }
28464 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
28465 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
28466 { { $as_echo "$as_me:$LINENO: error: SHUT 'ER DOWN CLANCY, SHE'S PUMPIN' MUD!
28467 See \`config.log' for more details." >&5
28468 $as_echo "$as_me: error: SHUT 'ER DOWN CLANCY, SHE'S PUMPIN' MUD!
28469 See \`config.log' for more details." >&2;}
28470 { (exit 1); exit 1; }; }; }
28471
28472
28473 fi
28474
28475 if test -z "$enum_check_a" -a -z "$enum_check_b"; then
28476
28477
28478 { $as_echo "$as_me:$LINENO: result: no" >&5
28479 $as_echo "no" >&6; }
28480 { $as_echo "$as_me:$LINENO: result: NR_SLAB_RECLAIMABLE in either node_stat_item or zone_stat_item: NOT FOUND" >&5
28481 $as_echo "NR_SLAB_RECLAIMABLE in either node_stat_item or zone_stat_item: NOT FOUND" >&6; }
28482 { $as_echo "$as_me:$LINENO: result: configure needs updating, see: config/kernel-global_page_state.m4" >&5
28483 $as_echo "configure needs updating, see: config/kernel-global_page_state.m4" >&6; }
28484 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
28485 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
28486 { { $as_echo "$as_me:$LINENO: error: SHUT 'ER DOWN CLANCY, SHE'S PUMPIN' MUD!
28487 See \`config.log' for more details." >&5
28488 $as_echo "$as_me: error: SHUT 'ER DOWN CLANCY, SHE'S PUMPIN' MUD!
28489 See \`config.log' for more details." >&2;}
28490 { (exit 1); exit 1; }; }; }
28491
28492
28493 fi
28494
28495
28496
28497 { $as_echo "$as_me:$LINENO: result: yes" >&5
28498 $as_echo "yes" >&6; }
28499
28500
28501
28502 { $as_echo "$as_me:$LINENO: checking whether posix_acl has refcount_t" >&5
28503 $as_echo_n "checking whether posix_acl has refcount_t... " >&6; }
28504
28505
28506 cat confdefs.h - <<_ACEOF >conftest.c
28507 /* confdefs.h. */
28508 _ACEOF
28509 cat confdefs.h >>conftest.$ac_ext
28510 cat >>conftest.$ac_ext <<_ACEOF
28511 /* end confdefs.h. */
28512
28513
28514 #include <linux/backing-dev.h>
28515 #include <linux/refcount.h>
28516 #include <linux/posix_acl.h>
28517
28518 int
28519 main (void)
28520 {
28521
28522 struct posix_acl acl;
28523 refcount_t *r __attribute__ ((unused)) = &acl.a_refcount;
28524
28525 ;
28526 return 0;
28527 }
28528
28529 _ACEOF
28530
28531
28532
28533 cat - <<_ACEOF >conftest.h
28534
28535 _ACEOF
28536
28537
28538 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
28539 echo "obj-m := conftest.o" >build/Makefile
28540 modpost_flag=''
28541 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
28542 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
28543 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28544 (eval $ac_try) 2>&5
28545 ac_status=$?
28546 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28547 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
28548 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28549 (eval $ac_try) 2>&5
28550 ac_status=$?
28551 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28552 (exit $ac_status); }; }; then
28553
28554 { $as_echo "$as_me:$LINENO: result: yes" >&5
28555 $as_echo "yes" >&6; }
28556
28557 cat >>confdefs.h <<\_ACEOF
28558 #define HAVE_ACL_REFCOUNT 1
28559 _ACEOF
28560
28561
28562 else
28563 $as_echo "$as_me: failed program was:" >&5
28564 sed 's/^/| /' conftest.$ac_ext >&5
28565
28566 { $as_echo "$as_me:$LINENO: result: no" >&5
28567 $as_echo "no" >&6; }
28568
28569
28570
28571 fi
28572
28573 rm -Rf build
28574
28575
28576
28577
28578
28579 { $as_echo "$as_me:$LINENO: checking whether ns_capable exists" >&5
28580 $as_echo_n "checking whether ns_capable exists... " >&6; }
28581
28582
28583 cat confdefs.h - <<_ACEOF >conftest.c
28584 /* confdefs.h. */
28585 _ACEOF
28586 cat confdefs.h >>conftest.$ac_ext
28587 cat >>conftest.$ac_ext <<_ACEOF
28588 /* end confdefs.h. */
28589
28590
28591 #include <linux/capability.h>
28592
28593 int
28594 main (void)
28595 {
28596
28597 ns_capable((struct user_namespace *)NULL, CAP_SYS_ADMIN);
28598
28599 ;
28600 return 0;
28601 }
28602
28603 _ACEOF
28604
28605
28606
28607 cat - <<_ACEOF >conftest.h
28608
28609 _ACEOF
28610
28611
28612 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
28613 echo "obj-m := conftest.o" >build/Makefile
28614 modpost_flag=''
28615 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
28616 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
28617 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28618 (eval $ac_try) 2>&5
28619 ac_status=$?
28620 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28621 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
28622 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28623 (eval $ac_try) 2>&5
28624 ac_status=$?
28625 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28626 (exit $ac_status); }; }; then
28627
28628 { $as_echo "$as_me:$LINENO: result: yes" >&5
28629 $as_echo "yes" >&6; }
28630
28631 cat >>confdefs.h <<\_ACEOF
28632 #define HAVE_NS_CAPABLE 1
28633 _ACEOF
28634
28635
28636 else
28637 $as_echo "$as_me: failed program was:" >&5
28638 sed 's/^/| /' conftest.$ac_ext >&5
28639
28640 { $as_echo "$as_me:$LINENO: result: no" >&5
28641 $as_echo "no" >&6; }
28642
28643
28644
28645 fi
28646
28647 rm -Rf build
28648
28649
28650
28651
28652 { $as_echo "$as_me:$LINENO: checking whether cred_t->user_ns exists" >&5
28653 $as_echo_n "checking whether cred_t->user_ns exists... " >&6; }
28654
28655
28656 cat confdefs.h - <<_ACEOF >conftest.c
28657 /* confdefs.h. */
28658 _ACEOF
28659 cat confdefs.h >>conftest.$ac_ext
28660 cat >>conftest.$ac_ext <<_ACEOF
28661 /* end confdefs.h. */
28662
28663
28664 #include <linux/cred.h>
28665
28666 int
28667 main (void)
28668 {
28669
28670 struct cred cr;
28671 cr.user_ns = (struct user_namespace *)NULL;
28672
28673 ;
28674 return 0;
28675 }
28676
28677 _ACEOF
28678
28679
28680
28681 cat - <<_ACEOF >conftest.h
28682
28683 _ACEOF
28684
28685
28686 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
28687 echo "obj-m := conftest.o" >build/Makefile
28688 modpost_flag=''
28689 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
28690 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
28691 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28692 (eval $ac_try) 2>&5
28693 ac_status=$?
28694 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28695 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
28696 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28697 (eval $ac_try) 2>&5
28698 ac_status=$?
28699 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28700 (exit $ac_status); }; }; then
28701
28702 { $as_echo "$as_me:$LINENO: result: yes" >&5
28703 $as_echo "yes" >&6; }
28704
28705 cat >>confdefs.h <<\_ACEOF
28706 #define HAVE_CRED_USER_NS 1
28707 _ACEOF
28708
28709
28710 else
28711 $as_echo "$as_me: failed program was:" >&5
28712 sed 's/^/| /' conftest.$ac_ext >&5
28713
28714 { $as_echo "$as_me:$LINENO: result: no" >&5
28715 $as_echo "no" >&6; }
28716
28717
28718
28719 fi
28720
28721 rm -Rf build
28722
28723
28724
28725
28726 { $as_echo "$as_me:$LINENO: checking whether kuid_has_mapping/kgid_has_mapping exist" >&5
28727 $as_echo_n "checking whether kuid_has_mapping/kgid_has_mapping exist... " >&6; }
28728
28729
28730 cat confdefs.h - <<_ACEOF >conftest.c
28731 /* confdefs.h. */
28732 _ACEOF
28733 cat confdefs.h >>conftest.$ac_ext
28734 cat >>conftest.$ac_ext <<_ACEOF
28735 /* end confdefs.h. */
28736
28737
28738 #include <linux/uidgid.h>
28739
28740 int
28741 main (void)
28742 {
28743
28744 kuid_has_mapping((struct user_namespace *)NULL, KUIDT_INIT(0));
28745 kgid_has_mapping((struct user_namespace *)NULL, KGIDT_INIT(0));
28746
28747 ;
28748 return 0;
28749 }
28750
28751 _ACEOF
28752
28753
28754
28755 cat - <<_ACEOF >conftest.h
28756
28757 _ACEOF
28758
28759
28760 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
28761 echo "obj-m := conftest.o" >build/Makefile
28762 modpost_flag=''
28763 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
28764 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
28765 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28766 (eval $ac_try) 2>&5
28767 ac_status=$?
28768 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28769 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
28770 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28771 (eval $ac_try) 2>&5
28772 ac_status=$?
28773 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28774 (exit $ac_status); }; }; then
28775
28776 { $as_echo "$as_me:$LINENO: result: yes" >&5
28777 $as_echo "yes" >&6; }
28778
28779 cat >>confdefs.h <<\_ACEOF
28780 #define HAVE_KUID_HAS_MAPPING 1
28781 _ACEOF
28782
28783
28784 else
28785 $as_echo "$as_me: failed program was:" >&5
28786 sed 's/^/| /' conftest.$ac_ext >&5
28787
28788 { $as_echo "$as_me:$LINENO: result: no" >&5
28789 $as_echo "no" >&6; }
28790
28791
28792
28793 fi
28794
28795 rm -Rf build
28796
28797
28798
28799
28800
28801 if test "$LINUX_OBJ" != "$LINUX"; then
28802
28803 KERNELMAKE_PARAMS="$KERNELMAKE_PARAMS O=$LINUX_OBJ"
28804
28805 fi
28806
28807
28808
28809
28810 KERNELCPPFLAGS="$KERNELCPPFLAGS -std=gnu99"
28811 KERNELCPPFLAGS="$KERNELCPPFLAGS -Wno-declaration-after-statement"
28812 KERNELCPPFLAGS="$KERNELCPPFLAGS $NO_UNUSED_BUT_SET_VARIABLE"
28813 KERNELCPPFLAGS="$KERNELCPPFLAGS $NO_BOOL_COMPARE"
28814 KERNELCPPFLAGS="$KERNELCPPFLAGS -DHAVE_SPL -D_KERNEL"
28815 KERNELCPPFLAGS="$KERNELCPPFLAGS -DTEXT_DOMAIN=\\\"zfs-linux-kernel\\\""
28816
28817
28818 ;;
28819 user)
28820
28821
28822 # Check whether --with-mounthelperdir was given.
28823 if test "${with_mounthelperdir+set}" = set; then
28824 withval=$with_mounthelperdir; mounthelperdir=$withval
28825 else
28826 mounthelperdir=/sbin
28827 fi
28828
28829
28830
28831
28832
28833 { $as_echo "$as_me:$LINENO: checking for udev directories" >&5
28834 $as_echo_n "checking for udev directories... " >&6; }
28835
28836 # Check whether --with-udevdir was given.
28837 if test "${with_udevdir+set}" = set; then
28838 withval=$with_udevdir; udevdir=$withval
28839 else
28840 udevdir=check
28841 fi
28842
28843
28844 if test "x$udevdir" = xcheck; then
28845
28846 path1=/lib/udev
28847 path2=/usr/lib/udev
28848 default=$path2
28849
28850 if test -d "$path1"; then
28851 udevdir="$path1"
28852 else
28853
28854 if test -d "$path2"; then
28855 udevdir="$path2"
28856 else
28857 udevdir="$default"
28858 fi
28859
28860
28861 fi
28862
28863
28864 fi
28865
28866
28867
28868 # Check whether --with-udevruledir was given.
28869 if test "${with_udevruledir+set}" = set; then
28870 withval=$with_udevruledir; udevruledir=$withval
28871 else
28872 udevruledir="${udevdir}/rules.d"
28873 fi
28874
28875
28876
28877
28878 { $as_echo "$as_me:$LINENO: result: $udevdir;$udevruledir" >&5
28879 $as_echo "$udevdir;$udevruledir" >&6; }
28880
28881
28882 # Check whether --enable-systemd was given.
28883 if test "${enable_systemd+set}" = set; then
28884 enableval=$enable_systemd; enable_systemd=$enableval
28885 else
28886 enable_systemd=check
28887 fi
28888
28889
28890
28891 # Check whether --with-systemdunitdir was given.
28892 if test "${with_systemdunitdir+set}" = set; then
28893 withval=$with_systemdunitdir; systemdunitdir=$withval
28894 else
28895 systemdunitdir=/usr/lib/systemd/system
28896 fi
28897
28898
28899
28900 # Check whether --with-systemdpresetdir was given.
28901 if test "${with_systemdpresetdir+set}" = set; then
28902 withval=$with_systemdpresetdir; systemdpresetdir=$withval
28903 else
28904 systemdpresetdir=/usr/lib/systemd/system-preset
28905 fi
28906
28907
28908
28909 # Check whether --with-systemdmodulesloaddir was given.
28910 if test "${with_systemdmodulesloaddir+set}" = set; then
28911 withval=$with_systemdmodulesloaddir; systemdmoduleloaddir=$withval
28912 else
28913 systemdmodulesloaddir=/usr/lib/modules-load.d
28914 fi
28915
28916
28917 if test "x$enable_systemd" = xcheck; then
28918
28919 if systemctl --version >/dev/null 2>&1; then
28920 enable_systemd=yes
28921 else
28922 enable_systemd=no
28923 fi
28924
28925
28926 fi
28927
28928
28929 { $as_echo "$as_me:$LINENO: checking for systemd support" >&5
28930 $as_echo_n "checking for systemd support... " >&6; }
28931 { $as_echo "$as_me:$LINENO: result: $enable_systemd" >&5
28932 $as_echo "$enable_systemd" >&6; }
28933
28934 if test "x$enable_systemd" = xyes; then
28935
28936 ZFS_INIT_SYSTEMD=systemd
28937 ZFS_MODULE_LOAD=modules-load.d
28938 DEFINE_SYSTEMD='--with systemd --define "_unitdir $(systemdunitdir)" --define "_presetdir $(systemdpresetdir)"'
28939 modulesloaddir=$systemdmodulesloaddir
28940
28941 else
28942
28943 DEFINE_SYSTEMD='--without systemd'
28944
28945 fi
28946
28947
28948
28949
28950
28951
28952
28953
28954
28955
28956 # Check whether --enable-sysvinit was given.
28957 if test "${enable_sysvinit+set}" = set; then
28958 enableval=$enable_sysvinit;
28959 else
28960 enable_sysvinit=yes
28961 fi
28962
28963
28964 if test "x$enable_sysvinit" = xyes; then
28965 ZFS_INIT_SYSV=init.d
28966 fi
28967
28968
28969
28970
28971
28972 { $as_echo "$as_me:$LINENO: checking for dracut directory" >&5
28973 $as_echo_n "checking for dracut directory... " >&6; }
28974
28975 # Check whether --with-dracutdir was given.
28976 if test "${with_dracutdir+set}" = set; then
28977 withval=$with_dracutdir; dracutdir=$withval
28978 else
28979 dracutdir=check
28980 fi
28981
28982
28983 if test "x$dracutdir" = xcheck; then
28984
28985 path1=/usr/share/dracut
28986 path2=/usr/lib/dracut
28987 default=$path2
28988
28989 if test -d "$path1"; then
28990 dracutdir="$path1"
28991 else
28992
28993 if test -d "$path2"; then
28994 dracutdir="$path2"
28995 else
28996 dracutdir="$default"
28997 fi
28998
28999
29000 fi
29001
29002
29003 fi
29004
29005
29006
29007 { $as_echo "$as_me:$LINENO: result: $dracutdir" >&5
29008 $as_echo "$dracutdir" >&6; }
29009
29010
29011 ZLIB=
29012
29013 if test "${ac_cv_header_zlib_h+set}" = set; then
29014 { $as_echo "$as_me:$LINENO: checking for zlib.h" >&5
29015 $as_echo_n "checking for zlib.h... " >&6; }
29016 if test "${ac_cv_header_zlib_h+set}" = set; then
29017 $as_echo_n "(cached) " >&6
29018 fi
29019 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
29020 $as_echo "$ac_cv_header_zlib_h" >&6; }
29021 else
29022 # Is the header compilable?
29023 { $as_echo "$as_me:$LINENO: checking zlib.h usability" >&5
29024 $as_echo_n "checking zlib.h usability... " >&6; }
29025 cat >conftest.$ac_ext <<_ACEOF
29026 /* confdefs.h. */
29027 _ACEOF
29028 cat confdefs.h >>conftest.$ac_ext
29029 cat >>conftest.$ac_ext <<_ACEOF
29030 /* end confdefs.h. */
29031 $ac_includes_default
29032 #include <zlib.h>
29033 _ACEOF
29034 rm -f conftest.$ac_objext
29035 if { (ac_try="$ac_compile"
29036 case "(($ac_try" in
29037 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29038 *) ac_try_echo=$ac_try;;
29039 esac
29040 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29041 $as_echo "$ac_try_echo") >&5
29042 (eval "$ac_compile") 2>conftest.er1
29043 ac_status=$?
29044 grep -v '^ *+' conftest.er1 >conftest.err
29045 rm -f conftest.er1
29046 cat conftest.err >&5
29047 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29048 (exit $ac_status); } && {
29049 test -z "$ac_c_werror_flag" ||
29050 test ! -s conftest.err
29051 } && test -s conftest.$ac_objext; then
29052 ac_header_compiler=yes
29053 else
29054 $as_echo "$as_me: failed program was:" >&5
29055 sed 's/^/| /' conftest.$ac_ext >&5
29056
29057 ac_header_compiler=no
29058 fi
29059
29060 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29061 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29062 $as_echo "$ac_header_compiler" >&6; }
29063
29064 # Is the header present?
29065 { $as_echo "$as_me:$LINENO: checking zlib.h presence" >&5
29066 $as_echo_n "checking zlib.h presence... " >&6; }
29067 cat >conftest.$ac_ext <<_ACEOF
29068 /* confdefs.h. */
29069 _ACEOF
29070 cat confdefs.h >>conftest.$ac_ext
29071 cat >>conftest.$ac_ext <<_ACEOF
29072 /* end confdefs.h. */
29073 #include <zlib.h>
29074 _ACEOF
29075 if { (ac_try="$ac_cpp conftest.$ac_ext"
29076 case "(($ac_try" in
29077 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29078 *) ac_try_echo=$ac_try;;
29079 esac
29080 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29081 $as_echo "$ac_try_echo") >&5
29082 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29083 ac_status=$?
29084 grep -v '^ *+' conftest.er1 >conftest.err
29085 rm -f conftest.er1
29086 cat conftest.err >&5
29087 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29088 (exit $ac_status); } >/dev/null && {
29089 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
29090 test ! -s conftest.err
29091 }; then
29092 ac_header_preproc=yes
29093 else
29094 $as_echo "$as_me: failed program was:" >&5
29095 sed 's/^/| /' conftest.$ac_ext >&5
29096
29097 ac_header_preproc=no
29098 fi
29099
29100 rm -f conftest.err conftest.$ac_ext
29101 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29102 $as_echo "$ac_header_preproc" >&6; }
29103
29104 # So? What about this header?
29105 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29106 yes:no: )
29107 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
29108 $as_echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
29109 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result" >&5
29110 $as_echo "$as_me: WARNING: zlib.h: proceeding with the compiler's result" >&2;}
29111 ac_header_preproc=yes
29112 ;;
29113 no:yes:* )
29114 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
29115 $as_echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
29116 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5
29117 $as_echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;}
29118 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5
29119 $as_echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;}
29120 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&5
29121 $as_echo "$as_me: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
29122 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
29123 $as_echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;}
29124 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5
29125 $as_echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;}
29126
29127 ;;
29128 esac
29129 { $as_echo "$as_me:$LINENO: checking for zlib.h" >&5
29130 $as_echo_n "checking for zlib.h... " >&6; }
29131 if test "${ac_cv_header_zlib_h+set}" = set; then
29132 $as_echo_n "(cached) " >&6
29133 else
29134 ac_cv_header_zlib_h=$ac_header_preproc
29135 fi
29136 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
29137 $as_echo "$ac_cv_header_zlib_h" >&6; }
29138
29139 fi
29140 if test "x$ac_cv_header_zlib_h" = x""yes; then
29141 :
29142 else
29143 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
29144 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
29145 { { $as_echo "$as_me:$LINENO: error:
29146 *** zlib.h missing, zlib-devel package required
29147 See \`config.log' for more details." >&5
29148 $as_echo "$as_me: error:
29149 *** zlib.h missing, zlib-devel package required
29150 See \`config.log' for more details." >&2;}
29151 { (exit 1); exit 1; }; }; }
29152 fi
29153
29154
29155
29156 { $as_echo "$as_me:$LINENO: checking for library containing compress2" >&5
29157 $as_echo_n "checking for library containing compress2... " >&6; }
29158 if test "${ac_cv_search_compress2+set}" = set; then
29159 $as_echo_n "(cached) " >&6
29160 else
29161 ac_func_search_save_LIBS=$LIBS
29162 cat >conftest.$ac_ext <<_ACEOF
29163 /* confdefs.h. */
29164 _ACEOF
29165 cat confdefs.h >>conftest.$ac_ext
29166 cat >>conftest.$ac_ext <<_ACEOF
29167 /* end confdefs.h. */
29168
29169 /* Override any GCC internal prototype to avoid an error.
29170 Use char because int might match the return type of a GCC
29171 builtin and then its argument prototype would still apply. */
29172 #ifdef __cplusplus
29173 extern "C"
29174 #endif
29175 char compress2 ();
29176 int
29177 main ()
29178 {
29179 return compress2 ();
29180 ;
29181 return 0;
29182 }
29183 _ACEOF
29184 for ac_lib in '' z; do
29185 if test -z "$ac_lib"; then
29186 ac_res="none required"
29187 else
29188 ac_res=-l$ac_lib
29189 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
29190 fi
29191 rm -f conftest.$ac_objext conftest$ac_exeext
29192 if { (ac_try="$ac_link"
29193 case "(($ac_try" in
29194 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29195 *) ac_try_echo=$ac_try;;
29196 esac
29197 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29198 $as_echo "$ac_try_echo") >&5
29199 (eval "$ac_link") 2>conftest.er1
29200 ac_status=$?
29201 grep -v '^ *+' conftest.er1 >conftest.err
29202 rm -f conftest.er1
29203 cat conftest.err >&5
29204 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29205 (exit $ac_status); } && {
29206 test -z "$ac_c_werror_flag" ||
29207 test ! -s conftest.err
29208 } && test -s conftest$ac_exeext && {
29209 test "$cross_compiling" = yes ||
29210 $as_test_x conftest$ac_exeext
29211 }; then
29212 ac_cv_search_compress2=$ac_res
29213 else
29214 $as_echo "$as_me: failed program was:" >&5
29215 sed 's/^/| /' conftest.$ac_ext >&5
29216
29217
29218 fi
29219
29220 rm -rf conftest.dSYM
29221 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29222 conftest$ac_exeext
29223 if test "${ac_cv_search_compress2+set}" = set; then
29224 break
29225 fi
29226 done
29227 if test "${ac_cv_search_compress2+set}" = set; then
29228 :
29229 else
29230 ac_cv_search_compress2=no
29231 fi
29232 rm conftest.$ac_ext
29233 LIBS=$ac_func_search_save_LIBS
29234 fi
29235 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_compress2" >&5
29236 $as_echo "$ac_cv_search_compress2" >&6; }
29237 ac_res=$ac_cv_search_compress2
29238 if test "$ac_res" != no; then
29239 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
29240
29241 else
29242 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
29243 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
29244 { { $as_echo "$as_me:$LINENO: error:
29245 *** compress2() missing, zlib-devel package required
29246 See \`config.log' for more details." >&5
29247 $as_echo "$as_me: error:
29248 *** compress2() missing, zlib-devel package required
29249 See \`config.log' for more details." >&2;}
29250 { (exit 1); exit 1; }; }; }
29251 fi
29252
29253
29254 { $as_echo "$as_me:$LINENO: checking for library containing uncompress" >&5
29255 $as_echo_n "checking for library containing uncompress... " >&6; }
29256 if test "${ac_cv_search_uncompress+set}" = set; then
29257 $as_echo_n "(cached) " >&6
29258 else
29259 ac_func_search_save_LIBS=$LIBS
29260 cat >conftest.$ac_ext <<_ACEOF
29261 /* confdefs.h. */
29262 _ACEOF
29263 cat confdefs.h >>conftest.$ac_ext
29264 cat >>conftest.$ac_ext <<_ACEOF
29265 /* end confdefs.h. */
29266
29267 /* Override any GCC internal prototype to avoid an error.
29268 Use char because int might match the return type of a GCC
29269 builtin and then its argument prototype would still apply. */
29270 #ifdef __cplusplus
29271 extern "C"
29272 #endif
29273 char uncompress ();
29274 int
29275 main ()
29276 {
29277 return uncompress ();
29278 ;
29279 return 0;
29280 }
29281 _ACEOF
29282 for ac_lib in '' z; do
29283 if test -z "$ac_lib"; then
29284 ac_res="none required"
29285 else
29286 ac_res=-l$ac_lib
29287 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
29288 fi
29289 rm -f conftest.$ac_objext conftest$ac_exeext
29290 if { (ac_try="$ac_link"
29291 case "(($ac_try" in
29292 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29293 *) ac_try_echo=$ac_try;;
29294 esac
29295 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29296 $as_echo "$ac_try_echo") >&5
29297 (eval "$ac_link") 2>conftest.er1
29298 ac_status=$?
29299 grep -v '^ *+' conftest.er1 >conftest.err
29300 rm -f conftest.er1
29301 cat conftest.err >&5
29302 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29303 (exit $ac_status); } && {
29304 test -z "$ac_c_werror_flag" ||
29305 test ! -s conftest.err
29306 } && test -s conftest$ac_exeext && {
29307 test "$cross_compiling" = yes ||
29308 $as_test_x conftest$ac_exeext
29309 }; then
29310 ac_cv_search_uncompress=$ac_res
29311 else
29312 $as_echo "$as_me: failed program was:" >&5
29313 sed 's/^/| /' conftest.$ac_ext >&5
29314
29315
29316 fi
29317
29318 rm -rf conftest.dSYM
29319 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29320 conftest$ac_exeext
29321 if test "${ac_cv_search_uncompress+set}" = set; then
29322 break
29323 fi
29324 done
29325 if test "${ac_cv_search_uncompress+set}" = set; then
29326 :
29327 else
29328 ac_cv_search_uncompress=no
29329 fi
29330 rm conftest.$ac_ext
29331 LIBS=$ac_func_search_save_LIBS
29332 fi
29333 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_uncompress" >&5
29334 $as_echo "$ac_cv_search_uncompress" >&6; }
29335 ac_res=$ac_cv_search_uncompress
29336 if test "$ac_res" != no; then
29337 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
29338
29339 else
29340 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
29341 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
29342 { { $as_echo "$as_me:$LINENO: error:
29343 *** uncompress() missing, zlib-devel package required
29344 See \`config.log' for more details." >&5
29345 $as_echo "$as_me: error:
29346 *** uncompress() missing, zlib-devel package required
29347 See \`config.log' for more details." >&2;}
29348 { (exit 1); exit 1; }; }; }
29349 fi
29350
29351
29352 { $as_echo "$as_me:$LINENO: checking for library containing crc32" >&5
29353 $as_echo_n "checking for library containing crc32... " >&6; }
29354 if test "${ac_cv_search_crc32+set}" = set; then
29355 $as_echo_n "(cached) " >&6
29356 else
29357 ac_func_search_save_LIBS=$LIBS
29358 cat >conftest.$ac_ext <<_ACEOF
29359 /* confdefs.h. */
29360 _ACEOF
29361 cat confdefs.h >>conftest.$ac_ext
29362 cat >>conftest.$ac_ext <<_ACEOF
29363 /* end confdefs.h. */
29364
29365 /* Override any GCC internal prototype to avoid an error.
29366 Use char because int might match the return type of a GCC
29367 builtin and then its argument prototype would still apply. */
29368 #ifdef __cplusplus
29369 extern "C"
29370 #endif
29371 char crc32 ();
29372 int
29373 main ()
29374 {
29375 return crc32 ();
29376 ;
29377 return 0;
29378 }
29379 _ACEOF
29380 for ac_lib in '' z; do
29381 if test -z "$ac_lib"; then
29382 ac_res="none required"
29383 else
29384 ac_res=-l$ac_lib
29385 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
29386 fi
29387 rm -f conftest.$ac_objext conftest$ac_exeext
29388 if { (ac_try="$ac_link"
29389 case "(($ac_try" in
29390 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29391 *) ac_try_echo=$ac_try;;
29392 esac
29393 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29394 $as_echo "$ac_try_echo") >&5
29395 (eval "$ac_link") 2>conftest.er1
29396 ac_status=$?
29397 grep -v '^ *+' conftest.er1 >conftest.err
29398 rm -f conftest.er1
29399 cat conftest.err >&5
29400 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29401 (exit $ac_status); } && {
29402 test -z "$ac_c_werror_flag" ||
29403 test ! -s conftest.err
29404 } && test -s conftest$ac_exeext && {
29405 test "$cross_compiling" = yes ||
29406 $as_test_x conftest$ac_exeext
29407 }; then
29408 ac_cv_search_crc32=$ac_res
29409 else
29410 $as_echo "$as_me: failed program was:" >&5
29411 sed 's/^/| /' conftest.$ac_ext >&5
29412
29413
29414 fi
29415
29416 rm -rf conftest.dSYM
29417 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29418 conftest$ac_exeext
29419 if test "${ac_cv_search_crc32+set}" = set; then
29420 break
29421 fi
29422 done
29423 if test "${ac_cv_search_crc32+set}" = set; then
29424 :
29425 else
29426 ac_cv_search_crc32=no
29427 fi
29428 rm conftest.$ac_ext
29429 LIBS=$ac_func_search_save_LIBS
29430 fi
29431 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_crc32" >&5
29432 $as_echo "$ac_cv_search_crc32" >&6; }
29433 ac_res=$ac_cv_search_crc32
29434 if test "$ac_res" != no; then
29435 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
29436
29437 else
29438 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
29439 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
29440 { { $as_echo "$as_me:$LINENO: error:
29441 *** crc32() missing, zlib-devel package required
29442 See \`config.log' for more details." >&5
29443 $as_echo "$as_me: error:
29444 *** crc32() missing, zlib-devel package required
29445 See \`config.log' for more details." >&2;}
29446 { (exit 1); exit 1; }; }; }
29447 fi
29448
29449
29450 ZLIB="-lz"
29451
29452
29453 cat >>confdefs.h <<\_ACEOF
29454 #define HAVE_ZLIB 1
29455 _ACEOF
29456
29457
29458
29459 LIBUUID=
29460
29461 if test "${ac_cv_header_uuid_uuid_h+set}" = set; then
29462 { $as_echo "$as_me:$LINENO: checking for uuid/uuid.h" >&5
29463 $as_echo_n "checking for uuid/uuid.h... " >&6; }
29464 if test "${ac_cv_header_uuid_uuid_h+set}" = set; then
29465 $as_echo_n "(cached) " >&6
29466 fi
29467 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_uuid_uuid_h" >&5
29468 $as_echo "$ac_cv_header_uuid_uuid_h" >&6; }
29469 else
29470 # Is the header compilable?
29471 { $as_echo "$as_me:$LINENO: checking uuid/uuid.h usability" >&5
29472 $as_echo_n "checking uuid/uuid.h usability... " >&6; }
29473 cat >conftest.$ac_ext <<_ACEOF
29474 /* confdefs.h. */
29475 _ACEOF
29476 cat confdefs.h >>conftest.$ac_ext
29477 cat >>conftest.$ac_ext <<_ACEOF
29478 /* end confdefs.h. */
29479 $ac_includes_default
29480 #include <uuid/uuid.h>
29481 _ACEOF
29482 rm -f conftest.$ac_objext
29483 if { (ac_try="$ac_compile"
29484 case "(($ac_try" in
29485 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29486 *) ac_try_echo=$ac_try;;
29487 esac
29488 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29489 $as_echo "$ac_try_echo") >&5
29490 (eval "$ac_compile") 2>conftest.er1
29491 ac_status=$?
29492 grep -v '^ *+' conftest.er1 >conftest.err
29493 rm -f conftest.er1
29494 cat conftest.err >&5
29495 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29496 (exit $ac_status); } && {
29497 test -z "$ac_c_werror_flag" ||
29498 test ! -s conftest.err
29499 } && test -s conftest.$ac_objext; then
29500 ac_header_compiler=yes
29501 else
29502 $as_echo "$as_me: failed program was:" >&5
29503 sed 's/^/| /' conftest.$ac_ext >&5
29504
29505 ac_header_compiler=no
29506 fi
29507
29508 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29509 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29510 $as_echo "$ac_header_compiler" >&6; }
29511
29512 # Is the header present?
29513 { $as_echo "$as_me:$LINENO: checking uuid/uuid.h presence" >&5
29514 $as_echo_n "checking uuid/uuid.h presence... " >&6; }
29515 cat >conftest.$ac_ext <<_ACEOF
29516 /* confdefs.h. */
29517 _ACEOF
29518 cat confdefs.h >>conftest.$ac_ext
29519 cat >>conftest.$ac_ext <<_ACEOF
29520 /* end confdefs.h. */
29521 #include <uuid/uuid.h>
29522 _ACEOF
29523 if { (ac_try="$ac_cpp conftest.$ac_ext"
29524 case "(($ac_try" in
29525 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29526 *) ac_try_echo=$ac_try;;
29527 esac
29528 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29529 $as_echo "$ac_try_echo") >&5
29530 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29531 ac_status=$?
29532 grep -v '^ *+' conftest.er1 >conftest.err
29533 rm -f conftest.er1
29534 cat conftest.err >&5
29535 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29536 (exit $ac_status); } >/dev/null && {
29537 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
29538 test ! -s conftest.err
29539 }; then
29540 ac_header_preproc=yes
29541 else
29542 $as_echo "$as_me: failed program was:" >&5
29543 sed 's/^/| /' conftest.$ac_ext >&5
29544
29545 ac_header_preproc=no
29546 fi
29547
29548 rm -f conftest.err conftest.$ac_ext
29549 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29550 $as_echo "$ac_header_preproc" >&6; }
29551
29552 # So? What about this header?
29553 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29554 yes:no: )
29555 { $as_echo "$as_me:$LINENO: WARNING: uuid/uuid.h: accepted by the compiler, rejected by the preprocessor!" >&5
29556 $as_echo "$as_me: WARNING: uuid/uuid.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
29557 { $as_echo "$as_me:$LINENO: WARNING: uuid/uuid.h: proceeding with the compiler's result" >&5
29558 $as_echo "$as_me: WARNING: uuid/uuid.h: proceeding with the compiler's result" >&2;}
29559 ac_header_preproc=yes
29560 ;;
29561 no:yes:* )
29562 { $as_echo "$as_me:$LINENO: WARNING: uuid/uuid.h: present but cannot be compiled" >&5
29563 $as_echo "$as_me: WARNING: uuid/uuid.h: present but cannot be compiled" >&2;}
29564 { $as_echo "$as_me:$LINENO: WARNING: uuid/uuid.h: check for missing prerequisite headers?" >&5
29565 $as_echo "$as_me: WARNING: uuid/uuid.h: check for missing prerequisite headers?" >&2;}
29566 { $as_echo "$as_me:$LINENO: WARNING: uuid/uuid.h: see the Autoconf documentation" >&5
29567 $as_echo "$as_me: WARNING: uuid/uuid.h: see the Autoconf documentation" >&2;}
29568 { $as_echo "$as_me:$LINENO: WARNING: uuid/uuid.h: section \"Present But Cannot Be Compiled\"" >&5
29569 $as_echo "$as_me: WARNING: uuid/uuid.h: section \"Present But Cannot Be Compiled\"" >&2;}
29570 { $as_echo "$as_me:$LINENO: WARNING: uuid/uuid.h: proceeding with the preprocessor's result" >&5
29571 $as_echo "$as_me: WARNING: uuid/uuid.h: proceeding with the preprocessor's result" >&2;}
29572 { $as_echo "$as_me:$LINENO: WARNING: uuid/uuid.h: in the future, the compiler will take precedence" >&5
29573 $as_echo "$as_me: WARNING: uuid/uuid.h: in the future, the compiler will take precedence" >&2;}
29574
29575 ;;
29576 esac
29577 { $as_echo "$as_me:$LINENO: checking for uuid/uuid.h" >&5
29578 $as_echo_n "checking for uuid/uuid.h... " >&6; }
29579 if test "${ac_cv_header_uuid_uuid_h+set}" = set; then
29580 $as_echo_n "(cached) " >&6
29581 else
29582 ac_cv_header_uuid_uuid_h=$ac_header_preproc
29583 fi
29584 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_uuid_uuid_h" >&5
29585 $as_echo "$ac_cv_header_uuid_uuid_h" >&6; }
29586
29587 fi
29588 if test "x$ac_cv_header_uuid_uuid_h" = x""yes; then
29589 :
29590 else
29591 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
29592 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
29593 { { $as_echo "$as_me:$LINENO: error:
29594 *** uuid/uuid.h missing, libuuid-devel package required
29595 See \`config.log' for more details." >&5
29596 $as_echo "$as_me: error:
29597 *** uuid/uuid.h missing, libuuid-devel package required
29598 See \`config.log' for more details." >&2;}
29599 { (exit 1); exit 1; }; }; }
29600 fi
29601
29602
29603
29604 { $as_echo "$as_me:$LINENO: checking for library containing uuid_generate" >&5
29605 $as_echo_n "checking for library containing uuid_generate... " >&6; }
29606 if test "${ac_cv_search_uuid_generate+set}" = set; then
29607 $as_echo_n "(cached) " >&6
29608 else
29609 ac_func_search_save_LIBS=$LIBS
29610 cat >conftest.$ac_ext <<_ACEOF
29611 /* confdefs.h. */
29612 _ACEOF
29613 cat confdefs.h >>conftest.$ac_ext
29614 cat >>conftest.$ac_ext <<_ACEOF
29615 /* end confdefs.h. */
29616
29617 /* Override any GCC internal prototype to avoid an error.
29618 Use char because int might match the return type of a GCC
29619 builtin and then its argument prototype would still apply. */
29620 #ifdef __cplusplus
29621 extern "C"
29622 #endif
29623 char uuid_generate ();
29624 int
29625 main ()
29626 {
29627 return uuid_generate ();
29628 ;
29629 return 0;
29630 }
29631 _ACEOF
29632 for ac_lib in '' uuid; do
29633 if test -z "$ac_lib"; then
29634 ac_res="none required"
29635 else
29636 ac_res=-l$ac_lib
29637 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
29638 fi
29639 rm -f conftest.$ac_objext conftest$ac_exeext
29640 if { (ac_try="$ac_link"
29641 case "(($ac_try" in
29642 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29643 *) ac_try_echo=$ac_try;;
29644 esac
29645 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29646 $as_echo "$ac_try_echo") >&5
29647 (eval "$ac_link") 2>conftest.er1
29648 ac_status=$?
29649 grep -v '^ *+' conftest.er1 >conftest.err
29650 rm -f conftest.er1
29651 cat conftest.err >&5
29652 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29653 (exit $ac_status); } && {
29654 test -z "$ac_c_werror_flag" ||
29655 test ! -s conftest.err
29656 } && test -s conftest$ac_exeext && {
29657 test "$cross_compiling" = yes ||
29658 $as_test_x conftest$ac_exeext
29659 }; then
29660 ac_cv_search_uuid_generate=$ac_res
29661 else
29662 $as_echo "$as_me: failed program was:" >&5
29663 sed 's/^/| /' conftest.$ac_ext >&5
29664
29665
29666 fi
29667
29668 rm -rf conftest.dSYM
29669 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29670 conftest$ac_exeext
29671 if test "${ac_cv_search_uuid_generate+set}" = set; then
29672 break
29673 fi
29674 done
29675 if test "${ac_cv_search_uuid_generate+set}" = set; then
29676 :
29677 else
29678 ac_cv_search_uuid_generate=no
29679 fi
29680 rm conftest.$ac_ext
29681 LIBS=$ac_func_search_save_LIBS
29682 fi
29683 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_uuid_generate" >&5
29684 $as_echo "$ac_cv_search_uuid_generate" >&6; }
29685 ac_res=$ac_cv_search_uuid_generate
29686 if test "$ac_res" != no; then
29687 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
29688
29689 else
29690 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
29691 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
29692 { { $as_echo "$as_me:$LINENO: error:
29693 *** uuid_generate() missing, libuuid-devel package required
29694 See \`config.log' for more details." >&5
29695 $as_echo "$as_me: error:
29696 *** uuid_generate() missing, libuuid-devel package required
29697 See \`config.log' for more details." >&2;}
29698 { (exit 1); exit 1; }; }; }
29699 fi
29700
29701
29702 { $as_echo "$as_me:$LINENO: checking for library containing uuid_is_null" >&5
29703 $as_echo_n "checking for library containing uuid_is_null... " >&6; }
29704 if test "${ac_cv_search_uuid_is_null+set}" = set; then
29705 $as_echo_n "(cached) " >&6
29706 else
29707 ac_func_search_save_LIBS=$LIBS
29708 cat >conftest.$ac_ext <<_ACEOF
29709 /* confdefs.h. */
29710 _ACEOF
29711 cat confdefs.h >>conftest.$ac_ext
29712 cat >>conftest.$ac_ext <<_ACEOF
29713 /* end confdefs.h. */
29714
29715 /* Override any GCC internal prototype to avoid an error.
29716 Use char because int might match the return type of a GCC
29717 builtin and then its argument prototype would still apply. */
29718 #ifdef __cplusplus
29719 extern "C"
29720 #endif
29721 char uuid_is_null ();
29722 int
29723 main ()
29724 {
29725 return uuid_is_null ();
29726 ;
29727 return 0;
29728 }
29729 _ACEOF
29730 for ac_lib in '' uuid; do
29731 if test -z "$ac_lib"; then
29732 ac_res="none required"
29733 else
29734 ac_res=-l$ac_lib
29735 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
29736 fi
29737 rm -f conftest.$ac_objext conftest$ac_exeext
29738 if { (ac_try="$ac_link"
29739 case "(($ac_try" in
29740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29741 *) ac_try_echo=$ac_try;;
29742 esac
29743 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29744 $as_echo "$ac_try_echo") >&5
29745 (eval "$ac_link") 2>conftest.er1
29746 ac_status=$?
29747 grep -v '^ *+' conftest.er1 >conftest.err
29748 rm -f conftest.er1
29749 cat conftest.err >&5
29750 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29751 (exit $ac_status); } && {
29752 test -z "$ac_c_werror_flag" ||
29753 test ! -s conftest.err
29754 } && test -s conftest$ac_exeext && {
29755 test "$cross_compiling" = yes ||
29756 $as_test_x conftest$ac_exeext
29757 }; then
29758 ac_cv_search_uuid_is_null=$ac_res
29759 else
29760 $as_echo "$as_me: failed program was:" >&5
29761 sed 's/^/| /' conftest.$ac_ext >&5
29762
29763
29764 fi
29765
29766 rm -rf conftest.dSYM
29767 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29768 conftest$ac_exeext
29769 if test "${ac_cv_search_uuid_is_null+set}" = set; then
29770 break
29771 fi
29772 done
29773 if test "${ac_cv_search_uuid_is_null+set}" = set; then
29774 :
29775 else
29776 ac_cv_search_uuid_is_null=no
29777 fi
29778 rm conftest.$ac_ext
29779 LIBS=$ac_func_search_save_LIBS
29780 fi
29781 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_uuid_is_null" >&5
29782 $as_echo "$ac_cv_search_uuid_is_null" >&6; }
29783 ac_res=$ac_cv_search_uuid_is_null
29784 if test "$ac_res" != no; then
29785 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
29786
29787 else
29788 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
29789 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
29790 { { $as_echo "$as_me:$LINENO: error:
29791 *** uuid_is_null() missing, libuuid-devel package required
29792 See \`config.log' for more details." >&5
29793 $as_echo "$as_me: error:
29794 *** uuid_is_null() missing, libuuid-devel package required
29795 See \`config.log' for more details." >&2;}
29796 { (exit 1); exit 1; }; }; }
29797 fi
29798
29799
29800 LIBUUID="-luuid"
29801
29802
29803 cat >>confdefs.h <<\_ACEOF
29804 #define HAVE_LIBUUID 1
29805 _ACEOF
29806
29807
29808
29809
29810 # Check whether --with-tirpc was given.
29811 if test "${with_tirpc+set}" = set; then
29812 withval=$with_tirpc;
29813 else
29814 with_tirpc=check
29815 fi
29816
29817
29818 LIBTIRPC=
29819 LIBTIRPC_CFLAGS=
29820
29821 if test "x$with_tirpc" != xno; then
29822 { $as_echo "$as_me:$LINENO: checking for xdrmem_create in -ltirpc" >&5
29823 $as_echo_n "checking for xdrmem_create in -ltirpc... " >&6; }
29824 if test "${ac_cv_lib_tirpc_xdrmem_create+set}" = set; then
29825 $as_echo_n "(cached) " >&6
29826 else
29827 ac_check_lib_save_LIBS=$LIBS
29828 LIBS="-ltirpc $LIBS"
29829 cat >conftest.$ac_ext <<_ACEOF
29830 /* confdefs.h. */
29831 _ACEOF
29832 cat confdefs.h >>conftest.$ac_ext
29833 cat >>conftest.$ac_ext <<_ACEOF
29834 /* end confdefs.h. */
29835
29836 /* Override any GCC internal prototype to avoid an error.
29837 Use char because int might match the return type of a GCC
29838 builtin and then its argument prototype would still apply. */
29839 #ifdef __cplusplus
29840 extern "C"
29841 #endif
29842 char xdrmem_create ();
29843 int
29844 main ()
29845 {
29846 return xdrmem_create ();
29847 ;
29848 return 0;
29849 }
29850 _ACEOF
29851 rm -f conftest.$ac_objext conftest$ac_exeext
29852 if { (ac_try="$ac_link"
29853 case "(($ac_try" in
29854 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29855 *) ac_try_echo=$ac_try;;
29856 esac
29857 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29858 $as_echo "$ac_try_echo") >&5
29859 (eval "$ac_link") 2>conftest.er1
29860 ac_status=$?
29861 grep -v '^ *+' conftest.er1 >conftest.err
29862 rm -f conftest.er1
29863 cat conftest.err >&5
29864 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29865 (exit $ac_status); } && {
29866 test -z "$ac_c_werror_flag" ||
29867 test ! -s conftest.err
29868 } && test -s conftest$ac_exeext && {
29869 test "$cross_compiling" = yes ||
29870 $as_test_x conftest$ac_exeext
29871 }; then
29872 ac_cv_lib_tirpc_xdrmem_create=yes
29873 else
29874 $as_echo "$as_me: failed program was:" >&5
29875 sed 's/^/| /' conftest.$ac_ext >&5
29876
29877 ac_cv_lib_tirpc_xdrmem_create=no
29878 fi
29879
29880 rm -rf conftest.dSYM
29881 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29882 conftest$ac_exeext conftest.$ac_ext
29883 LIBS=$ac_check_lib_save_LIBS
29884 fi
29885 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_tirpc_xdrmem_create" >&5
29886 $as_echo "$ac_cv_lib_tirpc_xdrmem_create" >&6; }
29887 if test "x$ac_cv_lib_tirpc_xdrmem_create" = x""yes; then
29888 LIBTIRPC=-ltirpc
29889
29890 LIBTIRPC_CFLAGS=-I/usr/include/tirpc
29891
29892
29893 cat >>confdefs.h <<\_ACEOF
29894 #define HAVE_LIBTIRPC 1
29895 _ACEOF
29896
29897
29898 else
29899 if test "x$with_tirpc" != xcheck; then
29900 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
29901 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
29902 { { $as_echo "$as_me:$LINENO: error: --with-tirpc was given, but test for tirpc failed
29903 See \`config.log' for more details." >&5
29904 $as_echo "$as_me: error: --with-tirpc was given, but test for tirpc failed
29905 See \`config.log' for more details." >&2;}
29906 { (exit 1); exit 1; }; }; }
29907 fi
29908 { $as_echo "$as_me:$LINENO: checking for library containing xdrmem_create" >&5
29909 $as_echo_n "checking for library containing xdrmem_create... " >&6; }
29910 if test "${ac_cv_search_xdrmem_create+set}" = set; then
29911 $as_echo_n "(cached) " >&6
29912 else
29913 ac_func_search_save_LIBS=$LIBS
29914 cat >conftest.$ac_ext <<_ACEOF
29915 /* confdefs.h. */
29916 _ACEOF
29917 cat confdefs.h >>conftest.$ac_ext
29918 cat >>conftest.$ac_ext <<_ACEOF
29919 /* end confdefs.h. */
29920
29921 /* Override any GCC internal prototype to avoid an error.
29922 Use char because int might match the return type of a GCC
29923 builtin and then its argument prototype would still apply. */
29924 #ifdef __cplusplus
29925 extern "C"
29926 #endif
29927 char xdrmem_create ();
29928 int
29929 main ()
29930 {
29931 return xdrmem_create ();
29932 ;
29933 return 0;
29934 }
29935 _ACEOF
29936 for ac_lib in '' tirpc; do
29937 if test -z "$ac_lib"; then
29938 ac_res="none required"
29939 else
29940 ac_res=-l$ac_lib
29941 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
29942 fi
29943 rm -f conftest.$ac_objext conftest$ac_exeext
29944 if { (ac_try="$ac_link"
29945 case "(($ac_try" in
29946 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29947 *) ac_try_echo=$ac_try;;
29948 esac
29949 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29950 $as_echo "$ac_try_echo") >&5
29951 (eval "$ac_link") 2>conftest.er1
29952 ac_status=$?
29953 grep -v '^ *+' conftest.er1 >conftest.err
29954 rm -f conftest.er1
29955 cat conftest.err >&5
29956 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29957 (exit $ac_status); } && {
29958 test -z "$ac_c_werror_flag" ||
29959 test ! -s conftest.err
29960 } && test -s conftest$ac_exeext && {
29961 test "$cross_compiling" = yes ||
29962 $as_test_x conftest$ac_exeext
29963 }; then
29964 ac_cv_search_xdrmem_create=$ac_res
29965 else
29966 $as_echo "$as_me: failed program was:" >&5
29967 sed 's/^/| /' conftest.$ac_ext >&5
29968
29969
29970 fi
29971
29972 rm -rf conftest.dSYM
29973 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29974 conftest$ac_exeext
29975 if test "${ac_cv_search_xdrmem_create+set}" = set; then
29976 break
29977 fi
29978 done
29979 if test "${ac_cv_search_xdrmem_create+set}" = set; then
29980 :
29981 else
29982 ac_cv_search_xdrmem_create=no
29983 fi
29984 rm conftest.$ac_ext
29985 LIBS=$ac_func_search_save_LIBS
29986 fi
29987 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_xdrmem_create" >&5
29988 $as_echo "$ac_cv_search_xdrmem_create" >&6; }
29989 ac_res=$ac_cv_search_xdrmem_create
29990 if test "$ac_res" != no; then
29991 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
29992
29993 else
29994
29995 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
29996 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
29997 { { $as_echo "$as_me:$LINENO: error: xdrmem_create() requires tirpc or libc
29998 See \`config.log' for more details." >&5
29999 $as_echo "$as_me: error: xdrmem_create() requires tirpc or libc
30000 See \`config.log' for more details." >&2;}
30001 { (exit 1); exit 1; }; }; }
30002 fi
30003
30004
30005 fi
30006
30007 else
30008 { $as_echo "$as_me:$LINENO: checking for library containing xdrmem_create" >&5
30009 $as_echo_n "checking for library containing xdrmem_create... " >&6; }
30010 if test "${ac_cv_search_xdrmem_create+set}" = set; then
30011 $as_echo_n "(cached) " >&6
30012 else
30013 ac_func_search_save_LIBS=$LIBS
30014 cat >conftest.$ac_ext <<_ACEOF
30015 /* confdefs.h. */
30016 _ACEOF
30017 cat confdefs.h >>conftest.$ac_ext
30018 cat >>conftest.$ac_ext <<_ACEOF
30019 /* end confdefs.h. */
30020
30021 /* Override any GCC internal prototype to avoid an error.
30022 Use char because int might match the return type of a GCC
30023 builtin and then its argument prototype would still apply. */
30024 #ifdef __cplusplus
30025 extern "C"
30026 #endif
30027 char xdrmem_create ();
30028 int
30029 main ()
30030 {
30031 return xdrmem_create ();
30032 ;
30033 return 0;
30034 }
30035 _ACEOF
30036 for ac_lib in '' tirpc; do
30037 if test -z "$ac_lib"; then
30038 ac_res="none required"
30039 else
30040 ac_res=-l$ac_lib
30041 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
30042 fi
30043 rm -f conftest.$ac_objext conftest$ac_exeext
30044 if { (ac_try="$ac_link"
30045 case "(($ac_try" in
30046 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30047 *) ac_try_echo=$ac_try;;
30048 esac
30049 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30050 $as_echo "$ac_try_echo") >&5
30051 (eval "$ac_link") 2>conftest.er1
30052 ac_status=$?
30053 grep -v '^ *+' conftest.er1 >conftest.err
30054 rm -f conftest.er1
30055 cat conftest.err >&5
30056 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30057 (exit $ac_status); } && {
30058 test -z "$ac_c_werror_flag" ||
30059 test ! -s conftest.err
30060 } && test -s conftest$ac_exeext && {
30061 test "$cross_compiling" = yes ||
30062 $as_test_x conftest$ac_exeext
30063 }; then
30064 ac_cv_search_xdrmem_create=$ac_res
30065 else
30066 $as_echo "$as_me: failed program was:" >&5
30067 sed 's/^/| /' conftest.$ac_ext >&5
30068
30069
30070 fi
30071
30072 rm -rf conftest.dSYM
30073 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30074 conftest$ac_exeext
30075 if test "${ac_cv_search_xdrmem_create+set}" = set; then
30076 break
30077 fi
30078 done
30079 if test "${ac_cv_search_xdrmem_create+set}" = set; then
30080 :
30081 else
30082 ac_cv_search_xdrmem_create=no
30083 fi
30084 rm conftest.$ac_ext
30085 LIBS=$ac_func_search_save_LIBS
30086 fi
30087 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_xdrmem_create" >&5
30088 $as_echo "$ac_cv_search_xdrmem_create" >&6; }
30089 ac_res=$ac_cv_search_xdrmem_create
30090 if test "$ac_res" != no; then
30091 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
30092
30093 else
30094
30095 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
30096 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
30097 { { $as_echo "$as_me:$LINENO: error: xdrmem_create() requires libc
30098 See \`config.log' for more details." >&5
30099 $as_echo "$as_me: error: xdrmem_create() requires libc
30100 See \`config.log' for more details." >&2;}
30101 { (exit 1); exit 1; }; }; }
30102 fi
30103
30104
30105 fi
30106
30107
30108
30109 LIBBLKID=
30110
30111 if test "${ac_cv_header_blkid_blkid_h+set}" = set; then
30112 { $as_echo "$as_me:$LINENO: checking for blkid/blkid.h" >&5
30113 $as_echo_n "checking for blkid/blkid.h... " >&6; }
30114 if test "${ac_cv_header_blkid_blkid_h+set}" = set; then
30115 $as_echo_n "(cached) " >&6
30116 fi
30117 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_blkid_blkid_h" >&5
30118 $as_echo "$ac_cv_header_blkid_blkid_h" >&6; }
30119 else
30120 # Is the header compilable?
30121 { $as_echo "$as_me:$LINENO: checking blkid/blkid.h usability" >&5
30122 $as_echo_n "checking blkid/blkid.h usability... " >&6; }
30123 cat >conftest.$ac_ext <<_ACEOF
30124 /* confdefs.h. */
30125 _ACEOF
30126 cat confdefs.h >>conftest.$ac_ext
30127 cat >>conftest.$ac_ext <<_ACEOF
30128 /* end confdefs.h. */
30129 $ac_includes_default
30130 #include <blkid/blkid.h>
30131 _ACEOF
30132 rm -f conftest.$ac_objext
30133 if { (ac_try="$ac_compile"
30134 case "(($ac_try" in
30135 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30136 *) ac_try_echo=$ac_try;;
30137 esac
30138 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30139 $as_echo "$ac_try_echo") >&5
30140 (eval "$ac_compile") 2>conftest.er1
30141 ac_status=$?
30142 grep -v '^ *+' conftest.er1 >conftest.err
30143 rm -f conftest.er1
30144 cat conftest.err >&5
30145 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30146 (exit $ac_status); } && {
30147 test -z "$ac_c_werror_flag" ||
30148 test ! -s conftest.err
30149 } && test -s conftest.$ac_objext; then
30150 ac_header_compiler=yes
30151 else
30152 $as_echo "$as_me: failed program was:" >&5
30153 sed 's/^/| /' conftest.$ac_ext >&5
30154
30155 ac_header_compiler=no
30156 fi
30157
30158 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30159 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30160 $as_echo "$ac_header_compiler" >&6; }
30161
30162 # Is the header present?
30163 { $as_echo "$as_me:$LINENO: checking blkid/blkid.h presence" >&5
30164 $as_echo_n "checking blkid/blkid.h presence... " >&6; }
30165 cat >conftest.$ac_ext <<_ACEOF
30166 /* confdefs.h. */
30167 _ACEOF
30168 cat confdefs.h >>conftest.$ac_ext
30169 cat >>conftest.$ac_ext <<_ACEOF
30170 /* end confdefs.h. */
30171 #include <blkid/blkid.h>
30172 _ACEOF
30173 if { (ac_try="$ac_cpp conftest.$ac_ext"
30174 case "(($ac_try" in
30175 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30176 *) ac_try_echo=$ac_try;;
30177 esac
30178 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30179 $as_echo "$ac_try_echo") >&5
30180 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30181 ac_status=$?
30182 grep -v '^ *+' conftest.er1 >conftest.err
30183 rm -f conftest.er1
30184 cat conftest.err >&5
30185 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30186 (exit $ac_status); } >/dev/null && {
30187 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
30188 test ! -s conftest.err
30189 }; then
30190 ac_header_preproc=yes
30191 else
30192 $as_echo "$as_me: failed program was:" >&5
30193 sed 's/^/| /' conftest.$ac_ext >&5
30194
30195 ac_header_preproc=no
30196 fi
30197
30198 rm -f conftest.err conftest.$ac_ext
30199 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30200 $as_echo "$ac_header_preproc" >&6; }
30201
30202 # So? What about this header?
30203 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30204 yes:no: )
30205 { $as_echo "$as_me:$LINENO: WARNING: blkid/blkid.h: accepted by the compiler, rejected by the preprocessor!" >&5
30206 $as_echo "$as_me: WARNING: blkid/blkid.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
30207 { $as_echo "$as_me:$LINENO: WARNING: blkid/blkid.h: proceeding with the compiler's result" >&5
30208 $as_echo "$as_me: WARNING: blkid/blkid.h: proceeding with the compiler's result" >&2;}
30209 ac_header_preproc=yes
30210 ;;
30211 no:yes:* )
30212 { $as_echo "$as_me:$LINENO: WARNING: blkid/blkid.h: present but cannot be compiled" >&5
30213 $as_echo "$as_me: WARNING: blkid/blkid.h: present but cannot be compiled" >&2;}
30214 { $as_echo "$as_me:$LINENO: WARNING: blkid/blkid.h: check for missing prerequisite headers?" >&5
30215 $as_echo "$as_me: WARNING: blkid/blkid.h: check for missing prerequisite headers?" >&2;}
30216 { $as_echo "$as_me:$LINENO: WARNING: blkid/blkid.h: see the Autoconf documentation" >&5
30217 $as_echo "$as_me: WARNING: blkid/blkid.h: see the Autoconf documentation" >&2;}
30218 { $as_echo "$as_me:$LINENO: WARNING: blkid/blkid.h: section \"Present But Cannot Be Compiled\"" >&5
30219 $as_echo "$as_me: WARNING: blkid/blkid.h: section \"Present But Cannot Be Compiled\"" >&2;}
30220 { $as_echo "$as_me:$LINENO: WARNING: blkid/blkid.h: proceeding with the preprocessor's result" >&5
30221 $as_echo "$as_me: WARNING: blkid/blkid.h: proceeding with the preprocessor's result" >&2;}
30222 { $as_echo "$as_me:$LINENO: WARNING: blkid/blkid.h: in the future, the compiler will take precedence" >&5
30223 $as_echo "$as_me: WARNING: blkid/blkid.h: in the future, the compiler will take precedence" >&2;}
30224
30225 ;;
30226 esac
30227 { $as_echo "$as_me:$LINENO: checking for blkid/blkid.h" >&5
30228 $as_echo_n "checking for blkid/blkid.h... " >&6; }
30229 if test "${ac_cv_header_blkid_blkid_h+set}" = set; then
30230 $as_echo_n "(cached) " >&6
30231 else
30232 ac_cv_header_blkid_blkid_h=$ac_header_preproc
30233 fi
30234 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_blkid_blkid_h" >&5
30235 $as_echo "$ac_cv_header_blkid_blkid_h" >&6; }
30236
30237 fi
30238 if test "x$ac_cv_header_blkid_blkid_h" = x""yes; then
30239 :
30240 else
30241 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
30242 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
30243 { { $as_echo "$as_me:$LINENO: error:
30244 *** blkid.h missing, libblkid-devel package required
30245 See \`config.log' for more details." >&5
30246 $as_echo "$as_me: error:
30247 *** blkid.h missing, libblkid-devel package required
30248 See \`config.log' for more details." >&2;}
30249 { (exit 1); exit 1; }; }; }
30250 fi
30251
30252
30253
30254 LIBBLKID="-lblkid"
30255
30256
30257 cat >>confdefs.h <<\_ACEOF
30258 #define HAVE_LIBBLKID 1
30259 _ACEOF
30260
30261
30262
30263 LIBUDEV=
30264
30265 if test "${ac_cv_header_libudev_h+set}" = set; then
30266 { $as_echo "$as_me:$LINENO: checking for libudev.h" >&5
30267 $as_echo_n "checking for libudev.h... " >&6; }
30268 if test "${ac_cv_header_libudev_h+set}" = set; then
30269 $as_echo_n "(cached) " >&6
30270 fi
30271 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_libudev_h" >&5
30272 $as_echo "$ac_cv_header_libudev_h" >&6; }
30273 else
30274 # Is the header compilable?
30275 { $as_echo "$as_me:$LINENO: checking libudev.h usability" >&5
30276 $as_echo_n "checking libudev.h usability... " >&6; }
30277 cat >conftest.$ac_ext <<_ACEOF
30278 /* confdefs.h. */
30279 _ACEOF
30280 cat confdefs.h >>conftest.$ac_ext
30281 cat >>conftest.$ac_ext <<_ACEOF
30282 /* end confdefs.h. */
30283 $ac_includes_default
30284 #include <libudev.h>
30285 _ACEOF
30286 rm -f conftest.$ac_objext
30287 if { (ac_try="$ac_compile"
30288 case "(($ac_try" in
30289 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30290 *) ac_try_echo=$ac_try;;
30291 esac
30292 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30293 $as_echo "$ac_try_echo") >&5
30294 (eval "$ac_compile") 2>conftest.er1
30295 ac_status=$?
30296 grep -v '^ *+' conftest.er1 >conftest.err
30297 rm -f conftest.er1
30298 cat conftest.err >&5
30299 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30300 (exit $ac_status); } && {
30301 test -z "$ac_c_werror_flag" ||
30302 test ! -s conftest.err
30303 } && test -s conftest.$ac_objext; then
30304 ac_header_compiler=yes
30305 else
30306 $as_echo "$as_me: failed program was:" >&5
30307 sed 's/^/| /' conftest.$ac_ext >&5
30308
30309 ac_header_compiler=no
30310 fi
30311
30312 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30313 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30314 $as_echo "$ac_header_compiler" >&6; }
30315
30316 # Is the header present?
30317 { $as_echo "$as_me:$LINENO: checking libudev.h presence" >&5
30318 $as_echo_n "checking libudev.h presence... " >&6; }
30319 cat >conftest.$ac_ext <<_ACEOF
30320 /* confdefs.h. */
30321 _ACEOF
30322 cat confdefs.h >>conftest.$ac_ext
30323 cat >>conftest.$ac_ext <<_ACEOF
30324 /* end confdefs.h. */
30325 #include <libudev.h>
30326 _ACEOF
30327 if { (ac_try="$ac_cpp conftest.$ac_ext"
30328 case "(($ac_try" in
30329 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30330 *) ac_try_echo=$ac_try;;
30331 esac
30332 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30333 $as_echo "$ac_try_echo") >&5
30334 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30335 ac_status=$?
30336 grep -v '^ *+' conftest.er1 >conftest.err
30337 rm -f conftest.er1
30338 cat conftest.err >&5
30339 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30340 (exit $ac_status); } >/dev/null && {
30341 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
30342 test ! -s conftest.err
30343 }; then
30344 ac_header_preproc=yes
30345 else
30346 $as_echo "$as_me: failed program was:" >&5
30347 sed 's/^/| /' conftest.$ac_ext >&5
30348
30349 ac_header_preproc=no
30350 fi
30351
30352 rm -f conftest.err conftest.$ac_ext
30353 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30354 $as_echo "$ac_header_preproc" >&6; }
30355
30356 # So? What about this header?
30357 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30358 yes:no: )
30359 { $as_echo "$as_me:$LINENO: WARNING: libudev.h: accepted by the compiler, rejected by the preprocessor!" >&5
30360 $as_echo "$as_me: WARNING: libudev.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
30361 { $as_echo "$as_me:$LINENO: WARNING: libudev.h: proceeding with the compiler's result" >&5
30362 $as_echo "$as_me: WARNING: libudev.h: proceeding with the compiler's result" >&2;}
30363 ac_header_preproc=yes
30364 ;;
30365 no:yes:* )
30366 { $as_echo "$as_me:$LINENO: WARNING: libudev.h: present but cannot be compiled" >&5
30367 $as_echo "$as_me: WARNING: libudev.h: present but cannot be compiled" >&2;}
30368 { $as_echo "$as_me:$LINENO: WARNING: libudev.h: check for missing prerequisite headers?" >&5
30369 $as_echo "$as_me: WARNING: libudev.h: check for missing prerequisite headers?" >&2;}
30370 { $as_echo "$as_me:$LINENO: WARNING: libudev.h: see the Autoconf documentation" >&5
30371 $as_echo "$as_me: WARNING: libudev.h: see the Autoconf documentation" >&2;}
30372 { $as_echo "$as_me:$LINENO: WARNING: libudev.h: section \"Present But Cannot Be Compiled\"" >&5
30373 $as_echo "$as_me: WARNING: libudev.h: section \"Present But Cannot Be Compiled\"" >&2;}
30374 { $as_echo "$as_me:$LINENO: WARNING: libudev.h: proceeding with the preprocessor's result" >&5
30375 $as_echo "$as_me: WARNING: libudev.h: proceeding with the preprocessor's result" >&2;}
30376 { $as_echo "$as_me:$LINENO: WARNING: libudev.h: in the future, the compiler will take precedence" >&5
30377 $as_echo "$as_me: WARNING: libudev.h: in the future, the compiler will take precedence" >&2;}
30378
30379 ;;
30380 esac
30381 { $as_echo "$as_me:$LINENO: checking for libudev.h" >&5
30382 $as_echo_n "checking for libudev.h... " >&6; }
30383 if test "${ac_cv_header_libudev_h+set}" = set; then
30384 $as_echo_n "(cached) " >&6
30385 else
30386 ac_cv_header_libudev_h=$ac_header_preproc
30387 fi
30388 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_libudev_h" >&5
30389 $as_echo "$ac_cv_header_libudev_h" >&6; }
30390
30391 fi
30392 if test "x$ac_cv_header_libudev_h" = x""yes; then
30393
30394 user_libudev=yes
30395 LIBUDEV="-ludev"
30396
30397
30398 cat >>confdefs.h <<\_ACEOF
30399 #define HAVE_LIBUDEV 1
30400 _ACEOF
30401
30402
30403 else
30404
30405 user_libudev=no
30406
30407 fi
30408
30409
30410
30411 { $as_echo "$as_me:$LINENO: checking for library containing udev_device_get_is_initialized" >&5
30412 $as_echo_n "checking for library containing udev_device_get_is_initialized... " >&6; }
30413 if test "${ac_cv_search_udev_device_get_is_initialized+set}" = set; then
30414 $as_echo_n "(cached) " >&6
30415 else
30416 ac_func_search_save_LIBS=$LIBS
30417 cat >conftest.$ac_ext <<_ACEOF
30418 /* confdefs.h. */
30419 _ACEOF
30420 cat confdefs.h >>conftest.$ac_ext
30421 cat >>conftest.$ac_ext <<_ACEOF
30422 /* end confdefs.h. */
30423
30424 /* Override any GCC internal prototype to avoid an error.
30425 Use char because int might match the return type of a GCC
30426 builtin and then its argument prototype would still apply. */
30427 #ifdef __cplusplus
30428 extern "C"
30429 #endif
30430 char udev_device_get_is_initialized ();
30431 int
30432 main ()
30433 {
30434 return udev_device_get_is_initialized ();
30435 ;
30436 return 0;
30437 }
30438 _ACEOF
30439 for ac_lib in '' udev; do
30440 if test -z "$ac_lib"; then
30441 ac_res="none required"
30442 else
30443 ac_res=-l$ac_lib
30444 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
30445 fi
30446 rm -f conftest.$ac_objext conftest$ac_exeext
30447 if { (ac_try="$ac_link"
30448 case "(($ac_try" in
30449 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30450 *) ac_try_echo=$ac_try;;
30451 esac
30452 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30453 $as_echo "$ac_try_echo") >&5
30454 (eval "$ac_link") 2>conftest.er1
30455 ac_status=$?
30456 grep -v '^ *+' conftest.er1 >conftest.err
30457 rm -f conftest.er1
30458 cat conftest.err >&5
30459 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30460 (exit $ac_status); } && {
30461 test -z "$ac_c_werror_flag" ||
30462 test ! -s conftest.err
30463 } && test -s conftest$ac_exeext && {
30464 test "$cross_compiling" = yes ||
30465 $as_test_x conftest$ac_exeext
30466 }; then
30467 ac_cv_search_udev_device_get_is_initialized=$ac_res
30468 else
30469 $as_echo "$as_me: failed program was:" >&5
30470 sed 's/^/| /' conftest.$ac_ext >&5
30471
30472
30473 fi
30474
30475 rm -rf conftest.dSYM
30476 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30477 conftest$ac_exeext
30478 if test "${ac_cv_search_udev_device_get_is_initialized+set}" = set; then
30479 break
30480 fi
30481 done
30482 if test "${ac_cv_search_udev_device_get_is_initialized+set}" = set; then
30483 :
30484 else
30485 ac_cv_search_udev_device_get_is_initialized=no
30486 fi
30487 rm conftest.$ac_ext
30488 LIBS=$ac_func_search_save_LIBS
30489 fi
30490 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_udev_device_get_is_initialized" >&5
30491 $as_echo "$ac_cv_search_udev_device_get_is_initialized" >&6; }
30492 ac_res=$ac_cv_search_udev_device_get_is_initialized
30493 if test "$ac_res" != no; then
30494 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
30495
30496
30497 cat >>confdefs.h <<\_ACEOF
30498 #define HAVE_LIBUDEV_UDEV_DEVICE_GET_IS_INITIALIZED 1
30499 _ACEOF
30500
30501 fi
30502
30503
30504
30505
30506 { $as_echo "$as_me:$LINENO: checking for -Wframe-larger-than=<size> support" >&5
30507 $as_echo_n "checking for -Wframe-larger-than=<size> support... " >&6; }
30508
30509 saved_flags="$CFLAGS"
30510 CFLAGS="$CFLAGS -Wframe-larger-than=1024"
30511
30512 cat >conftest.$ac_ext <<_ACEOF
30513 /* confdefs.h. */
30514 _ACEOF
30515 cat confdefs.h >>conftest.$ac_ext
30516 cat >>conftest.$ac_ext <<_ACEOF
30517 /* end confdefs.h. */
30518
30519 int
30520 main ()
30521 {
30522
30523 ;
30524 return 0;
30525 }
30526 _ACEOF
30527 rm -f conftest.$ac_objext
30528 if { (ac_try="$ac_compile"
30529 case "(($ac_try" in
30530 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30531 *) ac_try_echo=$ac_try;;
30532 esac
30533 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30534 $as_echo "$ac_try_echo") >&5
30535 (eval "$ac_compile") 2>conftest.er1
30536 ac_status=$?
30537 grep -v '^ *+' conftest.er1 >conftest.err
30538 rm -f conftest.er1
30539 cat conftest.err >&5
30540 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30541 (exit $ac_status); } && {
30542 test -z "$ac_c_werror_flag" ||
30543 test ! -s conftest.err
30544 } && test -s conftest.$ac_objext; then
30545
30546 FRAME_LARGER_THAN=-Wframe-larger-than=1024
30547 { $as_echo "$as_me:$LINENO: result: yes" >&5
30548 $as_echo "yes" >&6; }
30549
30550 else
30551 $as_echo "$as_me: failed program was:" >&5
30552 sed 's/^/| /' conftest.$ac_ext >&5
30553
30554
30555 FRAME_LARGER_THAN=
30556 { $as_echo "$as_me:$LINENO: result: no" >&5
30557 $as_echo "no" >&6; }
30558
30559 fi
30560
30561 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30562
30563 CFLAGS="$saved_flags"
30564
30565
30566
30567 LIBAIO=
30568
30569 if test "${ac_cv_header_libaio_h+set}" = set; then
30570 { $as_echo "$as_me:$LINENO: checking for libaio.h" >&5
30571 $as_echo_n "checking for libaio.h... " >&6; }
30572 if test "${ac_cv_header_libaio_h+set}" = set; then
30573 $as_echo_n "(cached) " >&6
30574 fi
30575 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_libaio_h" >&5
30576 $as_echo "$ac_cv_header_libaio_h" >&6; }
30577 else
30578 # Is the header compilable?
30579 { $as_echo "$as_me:$LINENO: checking libaio.h usability" >&5
30580 $as_echo_n "checking libaio.h usability... " >&6; }
30581 cat >conftest.$ac_ext <<_ACEOF
30582 /* confdefs.h. */
30583 _ACEOF
30584 cat confdefs.h >>conftest.$ac_ext
30585 cat >>conftest.$ac_ext <<_ACEOF
30586 /* end confdefs.h. */
30587 $ac_includes_default
30588 #include <libaio.h>
30589 _ACEOF
30590 rm -f conftest.$ac_objext
30591 if { (ac_try="$ac_compile"
30592 case "(($ac_try" in
30593 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30594 *) ac_try_echo=$ac_try;;
30595 esac
30596 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30597 $as_echo "$ac_try_echo") >&5
30598 (eval "$ac_compile") 2>conftest.er1
30599 ac_status=$?
30600 grep -v '^ *+' conftest.er1 >conftest.err
30601 rm -f conftest.er1
30602 cat conftest.err >&5
30603 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30604 (exit $ac_status); } && {
30605 test -z "$ac_c_werror_flag" ||
30606 test ! -s conftest.err
30607 } && test -s conftest.$ac_objext; then
30608 ac_header_compiler=yes
30609 else
30610 $as_echo "$as_me: failed program was:" >&5
30611 sed 's/^/| /' conftest.$ac_ext >&5
30612
30613 ac_header_compiler=no
30614 fi
30615
30616 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30617 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30618 $as_echo "$ac_header_compiler" >&6; }
30619
30620 # Is the header present?
30621 { $as_echo "$as_me:$LINENO: checking libaio.h presence" >&5
30622 $as_echo_n "checking libaio.h presence... " >&6; }
30623 cat >conftest.$ac_ext <<_ACEOF
30624 /* confdefs.h. */
30625 _ACEOF
30626 cat confdefs.h >>conftest.$ac_ext
30627 cat >>conftest.$ac_ext <<_ACEOF
30628 /* end confdefs.h. */
30629 #include <libaio.h>
30630 _ACEOF
30631 if { (ac_try="$ac_cpp conftest.$ac_ext"
30632 case "(($ac_try" in
30633 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30634 *) ac_try_echo=$ac_try;;
30635 esac
30636 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30637 $as_echo "$ac_try_echo") >&5
30638 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30639 ac_status=$?
30640 grep -v '^ *+' conftest.er1 >conftest.err
30641 rm -f conftest.er1
30642 cat conftest.err >&5
30643 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30644 (exit $ac_status); } >/dev/null && {
30645 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
30646 test ! -s conftest.err
30647 }; then
30648 ac_header_preproc=yes
30649 else
30650 $as_echo "$as_me: failed program was:" >&5
30651 sed 's/^/| /' conftest.$ac_ext >&5
30652
30653 ac_header_preproc=no
30654 fi
30655
30656 rm -f conftest.err conftest.$ac_ext
30657 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30658 $as_echo "$ac_header_preproc" >&6; }
30659
30660 # So? What about this header?
30661 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30662 yes:no: )
30663 { $as_echo "$as_me:$LINENO: WARNING: libaio.h: accepted by the compiler, rejected by the preprocessor!" >&5
30664 $as_echo "$as_me: WARNING: libaio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
30665 { $as_echo "$as_me:$LINENO: WARNING: libaio.h: proceeding with the compiler's result" >&5
30666 $as_echo "$as_me: WARNING: libaio.h: proceeding with the compiler's result" >&2;}
30667 ac_header_preproc=yes
30668 ;;
30669 no:yes:* )
30670 { $as_echo "$as_me:$LINENO: WARNING: libaio.h: present but cannot be compiled" >&5
30671 $as_echo "$as_me: WARNING: libaio.h: present but cannot be compiled" >&2;}
30672 { $as_echo "$as_me:$LINENO: WARNING: libaio.h: check for missing prerequisite headers?" >&5
30673 $as_echo "$as_me: WARNING: libaio.h: check for missing prerequisite headers?" >&2;}
30674 { $as_echo "$as_me:$LINENO: WARNING: libaio.h: see the Autoconf documentation" >&5
30675 $as_echo "$as_me: WARNING: libaio.h: see the Autoconf documentation" >&2;}
30676 { $as_echo "$as_me:$LINENO: WARNING: libaio.h: section \"Present But Cannot Be Compiled\"" >&5
30677 $as_echo "$as_me: WARNING: libaio.h: section \"Present But Cannot Be Compiled\"" >&2;}
30678 { $as_echo "$as_me:$LINENO: WARNING: libaio.h: proceeding with the preprocessor's result" >&5
30679 $as_echo "$as_me: WARNING: libaio.h: proceeding with the preprocessor's result" >&2;}
30680 { $as_echo "$as_me:$LINENO: WARNING: libaio.h: in the future, the compiler will take precedence" >&5
30681 $as_echo "$as_me: WARNING: libaio.h: in the future, the compiler will take precedence" >&2;}
30682
30683 ;;
30684 esac
30685 { $as_echo "$as_me:$LINENO: checking for libaio.h" >&5
30686 $as_echo_n "checking for libaio.h... " >&6; }
30687 if test "${ac_cv_header_libaio_h+set}" = set; then
30688 $as_echo_n "(cached) " >&6
30689 else
30690 ac_cv_header_libaio_h=$ac_header_preproc
30691 fi
30692 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_libaio_h" >&5
30693 $as_echo "$ac_cv_header_libaio_h" >&6; }
30694
30695 fi
30696 if test "x$ac_cv_header_libaio_h" = x""yes; then
30697
30698 user_libaio=yes
30699 LIBAIO="-laio"
30700
30701
30702 cat >>confdefs.h <<\_ACEOF
30703 #define HAVE_LIBAIO 1
30704 _ACEOF
30705
30706
30707 else
30708
30709 user_libaio=no
30710
30711 fi
30712
30713
30714
30715
30716 if test "x$runstatedir" = x; then
30717 runstatedir='${localstatedir}/run'
30718
30719 fi
30720
30721
30722 { $as_echo "$as_me:$LINENO: checking makedev() is declared in sys/sysmacros.h" >&5
30723 $as_echo_n "checking makedev() is declared in sys/sysmacros.h... " >&6; }
30724 cat >conftest.$ac_ext <<_ACEOF
30725 /* confdefs.h. */
30726 _ACEOF
30727 cat confdefs.h >>conftest.$ac_ext
30728 cat >>conftest.$ac_ext <<_ACEOF
30729 /* end confdefs.h. */
30730
30731 #include <sys/sysmacros.h>
30732
30733 int
30734 main ()
30735 {
30736
30737 int k;
30738 k = makedev(0,0);
30739
30740 ;
30741 return 0;
30742 }
30743 _ACEOF
30744 rm -f conftest.$ac_objext
30745 if { (ac_try="$ac_compile"
30746 case "(($ac_try" in
30747 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30748 *) ac_try_echo=$ac_try;;
30749 esac
30750 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30751 $as_echo "$ac_try_echo") >&5
30752 (eval "$ac_compile") 2>conftest.er1
30753 ac_status=$?
30754 grep -v '^ *+' conftest.er1 >conftest.err
30755 rm -f conftest.er1
30756 cat conftest.err >&5
30757 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30758 (exit $ac_status); } && {
30759 test -z "$ac_c_werror_flag" ||
30760 test ! -s conftest.err
30761 } && test -s conftest.$ac_objext; then
30762
30763 { $as_echo "$as_me:$LINENO: result: yes" >&5
30764 $as_echo "yes" >&6; }
30765
30766 cat >>confdefs.h <<\_ACEOF
30767 #define HAVE_MAKEDEV_IN_SYSMACROS 1
30768 _ACEOF
30769
30770
30771 else
30772 $as_echo "$as_me: failed program was:" >&5
30773 sed 's/^/| /' conftest.$ac_ext >&5
30774
30775
30776 { $as_echo "$as_me:$LINENO: result: no" >&5
30777 $as_echo "no" >&6; }
30778
30779 fi
30780
30781 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30782
30783
30784 { $as_echo "$as_me:$LINENO: checking makedev() is declared in sys/mkdev.h" >&5
30785 $as_echo_n "checking makedev() is declared in sys/mkdev.h... " >&6; }
30786 cat >conftest.$ac_ext <<_ACEOF
30787 /* confdefs.h. */
30788 _ACEOF
30789 cat confdefs.h >>conftest.$ac_ext
30790 cat >>conftest.$ac_ext <<_ACEOF
30791 /* end confdefs.h. */
30792
30793 #include <sys/mkdev.h>
30794
30795 int
30796 main ()
30797 {
30798
30799 int k;
30800 k = makedev(0,0);
30801
30802 ;
30803 return 0;
30804 }
30805 _ACEOF
30806 rm -f conftest.$ac_objext
30807 if { (ac_try="$ac_compile"
30808 case "(($ac_try" in
30809 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30810 *) ac_try_echo=$ac_try;;
30811 esac
30812 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30813 $as_echo "$ac_try_echo") >&5
30814 (eval "$ac_compile") 2>conftest.er1
30815 ac_status=$?
30816 grep -v '^ *+' conftest.er1 >conftest.err
30817 rm -f conftest.er1
30818 cat conftest.err >&5
30819 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30820 (exit $ac_status); } && {
30821 test -z "$ac_c_werror_flag" ||
30822 test ! -s conftest.err
30823 } && test -s conftest.$ac_objext; then
30824
30825 { $as_echo "$as_me:$LINENO: result: yes" >&5
30826 $as_echo "yes" >&6; }
30827
30828 cat >>confdefs.h <<\_ACEOF
30829 #define HAVE_MAKEDEV_IN_MKDEV 1
30830 _ACEOF
30831
30832
30833 else
30834 $as_echo "$as_me: failed program was:" >&5
30835 sed 's/^/| /' conftest.$ac_ext >&5
30836
30837
30838 { $as_echo "$as_me:$LINENO: result: no" >&5
30839 $as_echo "no" >&6; }
30840
30841 fi
30842
30843 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30844
30845
30846 { $as_echo "$as_me:$LINENO: checking for -Wno-format-truncation support" >&5
30847 $as_echo_n "checking for -Wno-format-truncation support... " >&6; }
30848
30849 saved_flags="$CFLAGS"
30850 CFLAGS="$CFLAGS -Wno-format-truncation"
30851
30852 cat >conftest.$ac_ext <<_ACEOF
30853 /* confdefs.h. */
30854 _ACEOF
30855 cat confdefs.h >>conftest.$ac_ext
30856 cat >>conftest.$ac_ext <<_ACEOF
30857 /* end confdefs.h. */
30858
30859 int
30860 main ()
30861 {
30862
30863 ;
30864 return 0;
30865 }
30866 _ACEOF
30867 rm -f conftest.$ac_objext
30868 if { (ac_try="$ac_compile"
30869 case "(($ac_try" in
30870 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30871 *) ac_try_echo=$ac_try;;
30872 esac
30873 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30874 $as_echo "$ac_try_echo") >&5
30875 (eval "$ac_compile") 2>conftest.er1
30876 ac_status=$?
30877 grep -v '^ *+' conftest.er1 >conftest.err
30878 rm -f conftest.er1
30879 cat conftest.err >&5
30880 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30881 (exit $ac_status); } && {
30882 test -z "$ac_c_werror_flag" ||
30883 test ! -s conftest.err
30884 } && test -s conftest.$ac_objext; then
30885
30886 NO_FORMAT_TRUNCATION=-Wno-format-truncation
30887 { $as_echo "$as_me:$LINENO: result: yes" >&5
30888 $as_echo "yes" >&6; }
30889
30890 else
30891 $as_echo "$as_me: failed program was:" >&5
30892 sed 's/^/| /' conftest.$ac_ext >&5
30893
30894
30895 NO_FORMAT_TRUNCATION=
30896 { $as_echo "$as_me:$LINENO: result: no" >&5
30897 $as_echo "no" >&6; }
30898
30899 fi
30900
30901 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30902
30903 CFLAGS="$saved_flags"
30904
30905
30906
30907
30908 ZONENAME="echo global"
30909
30910
30911
30912
30913
30914
30915 for ac_func in mlockall
30916 do
30917 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
30918 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
30919 $as_echo_n "checking for $ac_func... " >&6; }
30920 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30921 $as_echo_n "(cached) " >&6
30922 else
30923 cat >conftest.$ac_ext <<_ACEOF
30924 /* confdefs.h. */
30925 _ACEOF
30926 cat confdefs.h >>conftest.$ac_ext
30927 cat >>conftest.$ac_ext <<_ACEOF
30928 /* end confdefs.h. */
30929 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30930 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30931 #define $ac_func innocuous_$ac_func
30932
30933 /* System header to define __stub macros and hopefully few prototypes,
30934 which can conflict with char $ac_func (); below.
30935 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30936 <limits.h> exists even on freestanding compilers. */
30937
30938 #ifdef __STDC__
30939 # include <limits.h>
30940 #else
30941 # include <assert.h>
30942 #endif
30943
30944 #undef $ac_func
30945
30946 /* Override any GCC internal prototype to avoid an error.
30947 Use char because int might match the return type of a GCC
30948 builtin and then its argument prototype would still apply. */
30949 #ifdef __cplusplus
30950 extern "C"
30951 #endif
30952 char $ac_func ();
30953 /* The GNU C library defines this for functions which it implements
30954 to always fail with ENOSYS. Some functions are actually named
30955 something starting with __ and the normal name is an alias. */
30956 #if defined __stub_$ac_func || defined __stub___$ac_func
30957 choke me
30958 #endif
30959
30960 int
30961 main ()
30962 {
30963 return $ac_func ();
30964 ;
30965 return 0;
30966 }
30967 _ACEOF
30968 rm -f conftest.$ac_objext conftest$ac_exeext
30969 if { (ac_try="$ac_link"
30970 case "(($ac_try" in
30971 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30972 *) ac_try_echo=$ac_try;;
30973 esac
30974 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30975 $as_echo "$ac_try_echo") >&5
30976 (eval "$ac_link") 2>conftest.er1
30977 ac_status=$?
30978 grep -v '^ *+' conftest.er1 >conftest.err
30979 rm -f conftest.er1
30980 cat conftest.err >&5
30981 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30982 (exit $ac_status); } && {
30983 test -z "$ac_c_werror_flag" ||
30984 test ! -s conftest.err
30985 } && test -s conftest$ac_exeext && {
30986 test "$cross_compiling" = yes ||
30987 $as_test_x conftest$ac_exeext
30988 }; then
30989 eval "$as_ac_var=yes"
30990 else
30991 $as_echo "$as_me: failed program was:" >&5
30992 sed 's/^/| /' conftest.$ac_ext >&5
30993
30994 eval "$as_ac_var=no"
30995 fi
30996
30997 rm -rf conftest.dSYM
30998 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30999 conftest$ac_exeext conftest.$ac_ext
31000 fi
31001 ac_res=`eval 'as_val=${'$as_ac_var'}
31002 $as_echo "$as_val"'`
31003 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
31004 $as_echo "$ac_res" >&6; }
31005 as_val=`eval 'as_val=${'$as_ac_var'}
31006 $as_echo "$as_val"'`
31007 if test "x$as_val" = x""yes; then
31008 cat >>confdefs.h <<_ACEOF
31009 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
31010 _ACEOF
31011
31012 fi
31013 done
31014
31015 ;;
31016 all)
31017
31018
31019 # Check whether --with-mounthelperdir was given.
31020 if test "${with_mounthelperdir+set}" = set; then
31021 withval=$with_mounthelperdir; mounthelperdir=$withval
31022 else
31023 mounthelperdir=/sbin
31024 fi
31025
31026
31027
31028
31029
31030 { $as_echo "$as_me:$LINENO: checking for udev directories" >&5
31031 $as_echo_n "checking for udev directories... " >&6; }
31032
31033 # Check whether --with-udevdir was given.
31034 if test "${with_udevdir+set}" = set; then
31035 withval=$with_udevdir; udevdir=$withval
31036 else
31037 udevdir=check
31038 fi
31039
31040
31041 if test "x$udevdir" = xcheck; then
31042
31043 path1=/lib/udev
31044 path2=/usr/lib/udev
31045 default=$path2
31046
31047 if test -d "$path1"; then
31048 udevdir="$path1"
31049 else
31050
31051 if test -d "$path2"; then
31052 udevdir="$path2"
31053 else
31054 udevdir="$default"
31055 fi
31056
31057
31058 fi
31059
31060
31061 fi
31062
31063
31064
31065 # Check whether --with-udevruledir was given.
31066 if test "${with_udevruledir+set}" = set; then
31067 withval=$with_udevruledir; udevruledir=$withval
31068 else
31069 udevruledir="${udevdir}/rules.d"
31070 fi
31071
31072
31073
31074
31075 { $as_echo "$as_me:$LINENO: result: $udevdir;$udevruledir" >&5
31076 $as_echo "$udevdir;$udevruledir" >&6; }
31077
31078
31079 # Check whether --enable-systemd was given.
31080 if test "${enable_systemd+set}" = set; then
31081 enableval=$enable_systemd; enable_systemd=$enableval
31082 else
31083 enable_systemd=check
31084 fi
31085
31086
31087
31088 # Check whether --with-systemdunitdir was given.
31089 if test "${with_systemdunitdir+set}" = set; then
31090 withval=$with_systemdunitdir; systemdunitdir=$withval
31091 else
31092 systemdunitdir=/usr/lib/systemd/system
31093 fi
31094
31095
31096
31097 # Check whether --with-systemdpresetdir was given.
31098 if test "${with_systemdpresetdir+set}" = set; then
31099 withval=$with_systemdpresetdir; systemdpresetdir=$withval
31100 else
31101 systemdpresetdir=/usr/lib/systemd/system-preset
31102 fi
31103
31104
31105
31106 # Check whether --with-systemdmodulesloaddir was given.
31107 if test "${with_systemdmodulesloaddir+set}" = set; then
31108 withval=$with_systemdmodulesloaddir; systemdmoduleloaddir=$withval
31109 else
31110 systemdmodulesloaddir=/usr/lib/modules-load.d
31111 fi
31112
31113
31114 if test "x$enable_systemd" = xcheck; then
31115
31116 if systemctl --version >/dev/null 2>&1; then
31117 enable_systemd=yes
31118 else
31119 enable_systemd=no
31120 fi
31121
31122
31123 fi
31124
31125
31126 { $as_echo "$as_me:$LINENO: checking for systemd support" >&5
31127 $as_echo_n "checking for systemd support... " >&6; }
31128 { $as_echo "$as_me:$LINENO: result: $enable_systemd" >&5
31129 $as_echo "$enable_systemd" >&6; }
31130
31131 if test "x$enable_systemd" = xyes; then
31132
31133 ZFS_INIT_SYSTEMD=systemd
31134 ZFS_MODULE_LOAD=modules-load.d
31135 DEFINE_SYSTEMD='--with systemd --define "_unitdir $(systemdunitdir)" --define "_presetdir $(systemdpresetdir)"'
31136 modulesloaddir=$systemdmodulesloaddir
31137
31138 else
31139
31140 DEFINE_SYSTEMD='--without systemd'
31141
31142 fi
31143
31144
31145
31146
31147
31148
31149
31150
31151
31152
31153 # Check whether --enable-sysvinit was given.
31154 if test "${enable_sysvinit+set}" = set; then
31155 enableval=$enable_sysvinit;
31156 else
31157 enable_sysvinit=yes
31158 fi
31159
31160
31161 if test "x$enable_sysvinit" = xyes; then
31162 ZFS_INIT_SYSV=init.d
31163 fi
31164
31165
31166
31167
31168
31169 { $as_echo "$as_me:$LINENO: checking for dracut directory" >&5
31170 $as_echo_n "checking for dracut directory... " >&6; }
31171
31172 # Check whether --with-dracutdir was given.
31173 if test "${with_dracutdir+set}" = set; then
31174 withval=$with_dracutdir; dracutdir=$withval
31175 else
31176 dracutdir=check
31177 fi
31178
31179
31180 if test "x$dracutdir" = xcheck; then
31181
31182 path1=/usr/share/dracut
31183 path2=/usr/lib/dracut
31184 default=$path2
31185
31186 if test -d "$path1"; then
31187 dracutdir="$path1"
31188 else
31189
31190 if test -d "$path2"; then
31191 dracutdir="$path2"
31192 else
31193 dracutdir="$default"
31194 fi
31195
31196
31197 fi
31198
31199
31200 fi
31201
31202
31203
31204 { $as_echo "$as_me:$LINENO: result: $dracutdir" >&5
31205 $as_echo "$dracutdir" >&6; }
31206
31207
31208 ZLIB=
31209
31210 if test "${ac_cv_header_zlib_h+set}" = set; then
31211 { $as_echo "$as_me:$LINENO: checking for zlib.h" >&5
31212 $as_echo_n "checking for zlib.h... " >&6; }
31213 if test "${ac_cv_header_zlib_h+set}" = set; then
31214 $as_echo_n "(cached) " >&6
31215 fi
31216 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
31217 $as_echo "$ac_cv_header_zlib_h" >&6; }
31218 else
31219 # Is the header compilable?
31220 { $as_echo "$as_me:$LINENO: checking zlib.h usability" >&5
31221 $as_echo_n "checking zlib.h usability... " >&6; }
31222 cat >conftest.$ac_ext <<_ACEOF
31223 /* confdefs.h. */
31224 _ACEOF
31225 cat confdefs.h >>conftest.$ac_ext
31226 cat >>conftest.$ac_ext <<_ACEOF
31227 /* end confdefs.h. */
31228 $ac_includes_default
31229 #include <zlib.h>
31230 _ACEOF
31231 rm -f conftest.$ac_objext
31232 if { (ac_try="$ac_compile"
31233 case "(($ac_try" in
31234 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31235 *) ac_try_echo=$ac_try;;
31236 esac
31237 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31238 $as_echo "$ac_try_echo") >&5
31239 (eval "$ac_compile") 2>conftest.er1
31240 ac_status=$?
31241 grep -v '^ *+' conftest.er1 >conftest.err
31242 rm -f conftest.er1
31243 cat conftest.err >&5
31244 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31245 (exit $ac_status); } && {
31246 test -z "$ac_c_werror_flag" ||
31247 test ! -s conftest.err
31248 } && test -s conftest.$ac_objext; then
31249 ac_header_compiler=yes
31250 else
31251 $as_echo "$as_me: failed program was:" >&5
31252 sed 's/^/| /' conftest.$ac_ext >&5
31253
31254 ac_header_compiler=no
31255 fi
31256
31257 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31258 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31259 $as_echo "$ac_header_compiler" >&6; }
31260
31261 # Is the header present?
31262 { $as_echo "$as_me:$LINENO: checking zlib.h presence" >&5
31263 $as_echo_n "checking zlib.h presence... " >&6; }
31264 cat >conftest.$ac_ext <<_ACEOF
31265 /* confdefs.h. */
31266 _ACEOF
31267 cat confdefs.h >>conftest.$ac_ext
31268 cat >>conftest.$ac_ext <<_ACEOF
31269 /* end confdefs.h. */
31270 #include <zlib.h>
31271 _ACEOF
31272 if { (ac_try="$ac_cpp conftest.$ac_ext"
31273 case "(($ac_try" in
31274 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31275 *) ac_try_echo=$ac_try;;
31276 esac
31277 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31278 $as_echo "$ac_try_echo") >&5
31279 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
31280 ac_status=$?
31281 grep -v '^ *+' conftest.er1 >conftest.err
31282 rm -f conftest.er1
31283 cat conftest.err >&5
31284 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31285 (exit $ac_status); } >/dev/null && {
31286 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
31287 test ! -s conftest.err
31288 }; then
31289 ac_header_preproc=yes
31290 else
31291 $as_echo "$as_me: failed program was:" >&5
31292 sed 's/^/| /' conftest.$ac_ext >&5
31293
31294 ac_header_preproc=no
31295 fi
31296
31297 rm -f conftest.err conftest.$ac_ext
31298 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31299 $as_echo "$ac_header_preproc" >&6; }
31300
31301 # So? What about this header?
31302 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31303 yes:no: )
31304 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
31305 $as_echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
31306 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result" >&5
31307 $as_echo "$as_me: WARNING: zlib.h: proceeding with the compiler's result" >&2;}
31308 ac_header_preproc=yes
31309 ;;
31310 no:yes:* )
31311 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
31312 $as_echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
31313 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5
31314 $as_echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;}
31315 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5
31316 $as_echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;}
31317 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&5
31318 $as_echo "$as_me: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
31319 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
31320 $as_echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;}
31321 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5
31322 $as_echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;}
31323
31324 ;;
31325 esac
31326 { $as_echo "$as_me:$LINENO: checking for zlib.h" >&5
31327 $as_echo_n "checking for zlib.h... " >&6; }
31328 if test "${ac_cv_header_zlib_h+set}" = set; then
31329 $as_echo_n "(cached) " >&6
31330 else
31331 ac_cv_header_zlib_h=$ac_header_preproc
31332 fi
31333 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
31334 $as_echo "$ac_cv_header_zlib_h" >&6; }
31335
31336 fi
31337 if test "x$ac_cv_header_zlib_h" = x""yes; then
31338 :
31339 else
31340 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
31341 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
31342 { { $as_echo "$as_me:$LINENO: error:
31343 *** zlib.h missing, zlib-devel package required
31344 See \`config.log' for more details." >&5
31345 $as_echo "$as_me: error:
31346 *** zlib.h missing, zlib-devel package required
31347 See \`config.log' for more details." >&2;}
31348 { (exit 1); exit 1; }; }; }
31349 fi
31350
31351
31352
31353 { $as_echo "$as_me:$LINENO: checking for library containing compress2" >&5
31354 $as_echo_n "checking for library containing compress2... " >&6; }
31355 if test "${ac_cv_search_compress2+set}" = set; then
31356 $as_echo_n "(cached) " >&6
31357 else
31358 ac_func_search_save_LIBS=$LIBS
31359 cat >conftest.$ac_ext <<_ACEOF
31360 /* confdefs.h. */
31361 _ACEOF
31362 cat confdefs.h >>conftest.$ac_ext
31363 cat >>conftest.$ac_ext <<_ACEOF
31364 /* end confdefs.h. */
31365
31366 /* Override any GCC internal prototype to avoid an error.
31367 Use char because int might match the return type of a GCC
31368 builtin and then its argument prototype would still apply. */
31369 #ifdef __cplusplus
31370 extern "C"
31371 #endif
31372 char compress2 ();
31373 int
31374 main ()
31375 {
31376 return compress2 ();
31377 ;
31378 return 0;
31379 }
31380 _ACEOF
31381 for ac_lib in '' z; do
31382 if test -z "$ac_lib"; then
31383 ac_res="none required"
31384 else
31385 ac_res=-l$ac_lib
31386 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
31387 fi
31388 rm -f conftest.$ac_objext conftest$ac_exeext
31389 if { (ac_try="$ac_link"
31390 case "(($ac_try" in
31391 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31392 *) ac_try_echo=$ac_try;;
31393 esac
31394 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31395 $as_echo "$ac_try_echo") >&5
31396 (eval "$ac_link") 2>conftest.er1
31397 ac_status=$?
31398 grep -v '^ *+' conftest.er1 >conftest.err
31399 rm -f conftest.er1
31400 cat conftest.err >&5
31401 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31402 (exit $ac_status); } && {
31403 test -z "$ac_c_werror_flag" ||
31404 test ! -s conftest.err
31405 } && test -s conftest$ac_exeext && {
31406 test "$cross_compiling" = yes ||
31407 $as_test_x conftest$ac_exeext
31408 }; then
31409 ac_cv_search_compress2=$ac_res
31410 else
31411 $as_echo "$as_me: failed program was:" >&5
31412 sed 's/^/| /' conftest.$ac_ext >&5
31413
31414
31415 fi
31416
31417 rm -rf conftest.dSYM
31418 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31419 conftest$ac_exeext
31420 if test "${ac_cv_search_compress2+set}" = set; then
31421 break
31422 fi
31423 done
31424 if test "${ac_cv_search_compress2+set}" = set; then
31425 :
31426 else
31427 ac_cv_search_compress2=no
31428 fi
31429 rm conftest.$ac_ext
31430 LIBS=$ac_func_search_save_LIBS
31431 fi
31432 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_compress2" >&5
31433 $as_echo "$ac_cv_search_compress2" >&6; }
31434 ac_res=$ac_cv_search_compress2
31435 if test "$ac_res" != no; then
31436 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
31437
31438 else
31439 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
31440 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
31441 { { $as_echo "$as_me:$LINENO: error:
31442 *** compress2() missing, zlib-devel package required
31443 See \`config.log' for more details." >&5
31444 $as_echo "$as_me: error:
31445 *** compress2() missing, zlib-devel package required
31446 See \`config.log' for more details." >&2;}
31447 { (exit 1); exit 1; }; }; }
31448 fi
31449
31450
31451 { $as_echo "$as_me:$LINENO: checking for library containing uncompress" >&5
31452 $as_echo_n "checking for library containing uncompress... " >&6; }
31453 if test "${ac_cv_search_uncompress+set}" = set; then
31454 $as_echo_n "(cached) " >&6
31455 else
31456 ac_func_search_save_LIBS=$LIBS
31457 cat >conftest.$ac_ext <<_ACEOF
31458 /* confdefs.h. */
31459 _ACEOF
31460 cat confdefs.h >>conftest.$ac_ext
31461 cat >>conftest.$ac_ext <<_ACEOF
31462 /* end confdefs.h. */
31463
31464 /* Override any GCC internal prototype to avoid an error.
31465 Use char because int might match the return type of a GCC
31466 builtin and then its argument prototype would still apply. */
31467 #ifdef __cplusplus
31468 extern "C"
31469 #endif
31470 char uncompress ();
31471 int
31472 main ()
31473 {
31474 return uncompress ();
31475 ;
31476 return 0;
31477 }
31478 _ACEOF
31479 for ac_lib in '' z; do
31480 if test -z "$ac_lib"; then
31481 ac_res="none required"
31482 else
31483 ac_res=-l$ac_lib
31484 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
31485 fi
31486 rm -f conftest.$ac_objext conftest$ac_exeext
31487 if { (ac_try="$ac_link"
31488 case "(($ac_try" in
31489 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31490 *) ac_try_echo=$ac_try;;
31491 esac
31492 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31493 $as_echo "$ac_try_echo") >&5
31494 (eval "$ac_link") 2>conftest.er1
31495 ac_status=$?
31496 grep -v '^ *+' conftest.er1 >conftest.err
31497 rm -f conftest.er1
31498 cat conftest.err >&5
31499 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31500 (exit $ac_status); } && {
31501 test -z "$ac_c_werror_flag" ||
31502 test ! -s conftest.err
31503 } && test -s conftest$ac_exeext && {
31504 test "$cross_compiling" = yes ||
31505 $as_test_x conftest$ac_exeext
31506 }; then
31507 ac_cv_search_uncompress=$ac_res
31508 else
31509 $as_echo "$as_me: failed program was:" >&5
31510 sed 's/^/| /' conftest.$ac_ext >&5
31511
31512
31513 fi
31514
31515 rm -rf conftest.dSYM
31516 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31517 conftest$ac_exeext
31518 if test "${ac_cv_search_uncompress+set}" = set; then
31519 break
31520 fi
31521 done
31522 if test "${ac_cv_search_uncompress+set}" = set; then
31523 :
31524 else
31525 ac_cv_search_uncompress=no
31526 fi
31527 rm conftest.$ac_ext
31528 LIBS=$ac_func_search_save_LIBS
31529 fi
31530 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_uncompress" >&5
31531 $as_echo "$ac_cv_search_uncompress" >&6; }
31532 ac_res=$ac_cv_search_uncompress
31533 if test "$ac_res" != no; then
31534 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
31535
31536 else
31537 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
31538 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
31539 { { $as_echo "$as_me:$LINENO: error:
31540 *** uncompress() missing, zlib-devel package required
31541 See \`config.log' for more details." >&5
31542 $as_echo "$as_me: error:
31543 *** uncompress() missing, zlib-devel package required
31544 See \`config.log' for more details." >&2;}
31545 { (exit 1); exit 1; }; }; }
31546 fi
31547
31548
31549 { $as_echo "$as_me:$LINENO: checking for library containing crc32" >&5
31550 $as_echo_n "checking for library containing crc32... " >&6; }
31551 if test "${ac_cv_search_crc32+set}" = set; then
31552 $as_echo_n "(cached) " >&6
31553 else
31554 ac_func_search_save_LIBS=$LIBS
31555 cat >conftest.$ac_ext <<_ACEOF
31556 /* confdefs.h. */
31557 _ACEOF
31558 cat confdefs.h >>conftest.$ac_ext
31559 cat >>conftest.$ac_ext <<_ACEOF
31560 /* end confdefs.h. */
31561
31562 /* Override any GCC internal prototype to avoid an error.
31563 Use char because int might match the return type of a GCC
31564 builtin and then its argument prototype would still apply. */
31565 #ifdef __cplusplus
31566 extern "C"
31567 #endif
31568 char crc32 ();
31569 int
31570 main ()
31571 {
31572 return crc32 ();
31573 ;
31574 return 0;
31575 }
31576 _ACEOF
31577 for ac_lib in '' z; do
31578 if test -z "$ac_lib"; then
31579 ac_res="none required"
31580 else
31581 ac_res=-l$ac_lib
31582 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
31583 fi
31584 rm -f conftest.$ac_objext conftest$ac_exeext
31585 if { (ac_try="$ac_link"
31586 case "(($ac_try" in
31587 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31588 *) ac_try_echo=$ac_try;;
31589 esac
31590 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31591 $as_echo "$ac_try_echo") >&5
31592 (eval "$ac_link") 2>conftest.er1
31593 ac_status=$?
31594 grep -v '^ *+' conftest.er1 >conftest.err
31595 rm -f conftest.er1
31596 cat conftest.err >&5
31597 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31598 (exit $ac_status); } && {
31599 test -z "$ac_c_werror_flag" ||
31600 test ! -s conftest.err
31601 } && test -s conftest$ac_exeext && {
31602 test "$cross_compiling" = yes ||
31603 $as_test_x conftest$ac_exeext
31604 }; then
31605 ac_cv_search_crc32=$ac_res
31606 else
31607 $as_echo "$as_me: failed program was:" >&5
31608 sed 's/^/| /' conftest.$ac_ext >&5
31609
31610
31611 fi
31612
31613 rm -rf conftest.dSYM
31614 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31615 conftest$ac_exeext
31616 if test "${ac_cv_search_crc32+set}" = set; then
31617 break
31618 fi
31619 done
31620 if test "${ac_cv_search_crc32+set}" = set; then
31621 :
31622 else
31623 ac_cv_search_crc32=no
31624 fi
31625 rm conftest.$ac_ext
31626 LIBS=$ac_func_search_save_LIBS
31627 fi
31628 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_crc32" >&5
31629 $as_echo "$ac_cv_search_crc32" >&6; }
31630 ac_res=$ac_cv_search_crc32
31631 if test "$ac_res" != no; then
31632 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
31633
31634 else
31635 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
31636 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
31637 { { $as_echo "$as_me:$LINENO: error:
31638 *** crc32() missing, zlib-devel package required
31639 See \`config.log' for more details." >&5
31640 $as_echo "$as_me: error:
31641 *** crc32() missing, zlib-devel package required
31642 See \`config.log' for more details." >&2;}
31643 { (exit 1); exit 1; }; }; }
31644 fi
31645
31646
31647 ZLIB="-lz"
31648
31649
31650 cat >>confdefs.h <<\_ACEOF
31651 #define HAVE_ZLIB 1
31652 _ACEOF
31653
31654
31655
31656 LIBUUID=
31657
31658 if test "${ac_cv_header_uuid_uuid_h+set}" = set; then
31659 { $as_echo "$as_me:$LINENO: checking for uuid/uuid.h" >&5
31660 $as_echo_n "checking for uuid/uuid.h... " >&6; }
31661 if test "${ac_cv_header_uuid_uuid_h+set}" = set; then
31662 $as_echo_n "(cached) " >&6
31663 fi
31664 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_uuid_uuid_h" >&5
31665 $as_echo "$ac_cv_header_uuid_uuid_h" >&6; }
31666 else
31667 # Is the header compilable?
31668 { $as_echo "$as_me:$LINENO: checking uuid/uuid.h usability" >&5
31669 $as_echo_n "checking uuid/uuid.h usability... " >&6; }
31670 cat >conftest.$ac_ext <<_ACEOF
31671 /* confdefs.h. */
31672 _ACEOF
31673 cat confdefs.h >>conftest.$ac_ext
31674 cat >>conftest.$ac_ext <<_ACEOF
31675 /* end confdefs.h. */
31676 $ac_includes_default
31677 #include <uuid/uuid.h>
31678 _ACEOF
31679 rm -f conftest.$ac_objext
31680 if { (ac_try="$ac_compile"
31681 case "(($ac_try" in
31682 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31683 *) ac_try_echo=$ac_try;;
31684 esac
31685 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31686 $as_echo "$ac_try_echo") >&5
31687 (eval "$ac_compile") 2>conftest.er1
31688 ac_status=$?
31689 grep -v '^ *+' conftest.er1 >conftest.err
31690 rm -f conftest.er1
31691 cat conftest.err >&5
31692 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31693 (exit $ac_status); } && {
31694 test -z "$ac_c_werror_flag" ||
31695 test ! -s conftest.err
31696 } && test -s conftest.$ac_objext; then
31697 ac_header_compiler=yes
31698 else
31699 $as_echo "$as_me: failed program was:" >&5
31700 sed 's/^/| /' conftest.$ac_ext >&5
31701
31702 ac_header_compiler=no
31703 fi
31704
31705 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31706 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31707 $as_echo "$ac_header_compiler" >&6; }
31708
31709 # Is the header present?
31710 { $as_echo "$as_me:$LINENO: checking uuid/uuid.h presence" >&5
31711 $as_echo_n "checking uuid/uuid.h presence... " >&6; }
31712 cat >conftest.$ac_ext <<_ACEOF
31713 /* confdefs.h. */
31714 _ACEOF
31715 cat confdefs.h >>conftest.$ac_ext
31716 cat >>conftest.$ac_ext <<_ACEOF
31717 /* end confdefs.h. */
31718 #include <uuid/uuid.h>
31719 _ACEOF
31720 if { (ac_try="$ac_cpp conftest.$ac_ext"
31721 case "(($ac_try" in
31722 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31723 *) ac_try_echo=$ac_try;;
31724 esac
31725 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31726 $as_echo "$ac_try_echo") >&5
31727 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
31728 ac_status=$?
31729 grep -v '^ *+' conftest.er1 >conftest.err
31730 rm -f conftest.er1
31731 cat conftest.err >&5
31732 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31733 (exit $ac_status); } >/dev/null && {
31734 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
31735 test ! -s conftest.err
31736 }; then
31737 ac_header_preproc=yes
31738 else
31739 $as_echo "$as_me: failed program was:" >&5
31740 sed 's/^/| /' conftest.$ac_ext >&5
31741
31742 ac_header_preproc=no
31743 fi
31744
31745 rm -f conftest.err conftest.$ac_ext
31746 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31747 $as_echo "$ac_header_preproc" >&6; }
31748
31749 # So? What about this header?
31750 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31751 yes:no: )
31752 { $as_echo "$as_me:$LINENO: WARNING: uuid/uuid.h: accepted by the compiler, rejected by the preprocessor!" >&5
31753 $as_echo "$as_me: WARNING: uuid/uuid.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
31754 { $as_echo "$as_me:$LINENO: WARNING: uuid/uuid.h: proceeding with the compiler's result" >&5
31755 $as_echo "$as_me: WARNING: uuid/uuid.h: proceeding with the compiler's result" >&2;}
31756 ac_header_preproc=yes
31757 ;;
31758 no:yes:* )
31759 { $as_echo "$as_me:$LINENO: WARNING: uuid/uuid.h: present but cannot be compiled" >&5
31760 $as_echo "$as_me: WARNING: uuid/uuid.h: present but cannot be compiled" >&2;}
31761 { $as_echo "$as_me:$LINENO: WARNING: uuid/uuid.h: check for missing prerequisite headers?" >&5
31762 $as_echo "$as_me: WARNING: uuid/uuid.h: check for missing prerequisite headers?" >&2;}
31763 { $as_echo "$as_me:$LINENO: WARNING: uuid/uuid.h: see the Autoconf documentation" >&5
31764 $as_echo "$as_me: WARNING: uuid/uuid.h: see the Autoconf documentation" >&2;}
31765 { $as_echo "$as_me:$LINENO: WARNING: uuid/uuid.h: section \"Present But Cannot Be Compiled\"" >&5
31766 $as_echo "$as_me: WARNING: uuid/uuid.h: section \"Present But Cannot Be Compiled\"" >&2;}
31767 { $as_echo "$as_me:$LINENO: WARNING: uuid/uuid.h: proceeding with the preprocessor's result" >&5
31768 $as_echo "$as_me: WARNING: uuid/uuid.h: proceeding with the preprocessor's result" >&2;}
31769 { $as_echo "$as_me:$LINENO: WARNING: uuid/uuid.h: in the future, the compiler will take precedence" >&5
31770 $as_echo "$as_me: WARNING: uuid/uuid.h: in the future, the compiler will take precedence" >&2;}
31771
31772 ;;
31773 esac
31774 { $as_echo "$as_me:$LINENO: checking for uuid/uuid.h" >&5
31775 $as_echo_n "checking for uuid/uuid.h... " >&6; }
31776 if test "${ac_cv_header_uuid_uuid_h+set}" = set; then
31777 $as_echo_n "(cached) " >&6
31778 else
31779 ac_cv_header_uuid_uuid_h=$ac_header_preproc
31780 fi
31781 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_uuid_uuid_h" >&5
31782 $as_echo "$ac_cv_header_uuid_uuid_h" >&6; }
31783
31784 fi
31785 if test "x$ac_cv_header_uuid_uuid_h" = x""yes; then
31786 :
31787 else
31788 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
31789 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
31790 { { $as_echo "$as_me:$LINENO: error:
31791 *** uuid/uuid.h missing, libuuid-devel package required
31792 See \`config.log' for more details." >&5
31793 $as_echo "$as_me: error:
31794 *** uuid/uuid.h missing, libuuid-devel package required
31795 See \`config.log' for more details." >&2;}
31796 { (exit 1); exit 1; }; }; }
31797 fi
31798
31799
31800
31801 { $as_echo "$as_me:$LINENO: checking for library containing uuid_generate" >&5
31802 $as_echo_n "checking for library containing uuid_generate... " >&6; }
31803 if test "${ac_cv_search_uuid_generate+set}" = set; then
31804 $as_echo_n "(cached) " >&6
31805 else
31806 ac_func_search_save_LIBS=$LIBS
31807 cat >conftest.$ac_ext <<_ACEOF
31808 /* confdefs.h. */
31809 _ACEOF
31810 cat confdefs.h >>conftest.$ac_ext
31811 cat >>conftest.$ac_ext <<_ACEOF
31812 /* end confdefs.h. */
31813
31814 /* Override any GCC internal prototype to avoid an error.
31815 Use char because int might match the return type of a GCC
31816 builtin and then its argument prototype would still apply. */
31817 #ifdef __cplusplus
31818 extern "C"
31819 #endif
31820 char uuid_generate ();
31821 int
31822 main ()
31823 {
31824 return uuid_generate ();
31825 ;
31826 return 0;
31827 }
31828 _ACEOF
31829 for ac_lib in '' uuid; do
31830 if test -z "$ac_lib"; then
31831 ac_res="none required"
31832 else
31833 ac_res=-l$ac_lib
31834 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
31835 fi
31836 rm -f conftest.$ac_objext conftest$ac_exeext
31837 if { (ac_try="$ac_link"
31838 case "(($ac_try" in
31839 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31840 *) ac_try_echo=$ac_try;;
31841 esac
31842 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31843 $as_echo "$ac_try_echo") >&5
31844 (eval "$ac_link") 2>conftest.er1
31845 ac_status=$?
31846 grep -v '^ *+' conftest.er1 >conftest.err
31847 rm -f conftest.er1
31848 cat conftest.err >&5
31849 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31850 (exit $ac_status); } && {
31851 test -z "$ac_c_werror_flag" ||
31852 test ! -s conftest.err
31853 } && test -s conftest$ac_exeext && {
31854 test "$cross_compiling" = yes ||
31855 $as_test_x conftest$ac_exeext
31856 }; then
31857 ac_cv_search_uuid_generate=$ac_res
31858 else
31859 $as_echo "$as_me: failed program was:" >&5
31860 sed 's/^/| /' conftest.$ac_ext >&5
31861
31862
31863 fi
31864
31865 rm -rf conftest.dSYM
31866 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31867 conftest$ac_exeext
31868 if test "${ac_cv_search_uuid_generate+set}" = set; then
31869 break
31870 fi
31871 done
31872 if test "${ac_cv_search_uuid_generate+set}" = set; then
31873 :
31874 else
31875 ac_cv_search_uuid_generate=no
31876 fi
31877 rm conftest.$ac_ext
31878 LIBS=$ac_func_search_save_LIBS
31879 fi
31880 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_uuid_generate" >&5
31881 $as_echo "$ac_cv_search_uuid_generate" >&6; }
31882 ac_res=$ac_cv_search_uuid_generate
31883 if test "$ac_res" != no; then
31884 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
31885
31886 else
31887 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
31888 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
31889 { { $as_echo "$as_me:$LINENO: error:
31890 *** uuid_generate() missing, libuuid-devel package required
31891 See \`config.log' for more details." >&5
31892 $as_echo "$as_me: error:
31893 *** uuid_generate() missing, libuuid-devel package required
31894 See \`config.log' for more details." >&2;}
31895 { (exit 1); exit 1; }; }; }
31896 fi
31897
31898
31899 { $as_echo "$as_me:$LINENO: checking for library containing uuid_is_null" >&5
31900 $as_echo_n "checking for library containing uuid_is_null... " >&6; }
31901 if test "${ac_cv_search_uuid_is_null+set}" = set; then
31902 $as_echo_n "(cached) " >&6
31903 else
31904 ac_func_search_save_LIBS=$LIBS
31905 cat >conftest.$ac_ext <<_ACEOF
31906 /* confdefs.h. */
31907 _ACEOF
31908 cat confdefs.h >>conftest.$ac_ext
31909 cat >>conftest.$ac_ext <<_ACEOF
31910 /* end confdefs.h. */
31911
31912 /* Override any GCC internal prototype to avoid an error.
31913 Use char because int might match the return type of a GCC
31914 builtin and then its argument prototype would still apply. */
31915 #ifdef __cplusplus
31916 extern "C"
31917 #endif
31918 char uuid_is_null ();
31919 int
31920 main ()
31921 {
31922 return uuid_is_null ();
31923 ;
31924 return 0;
31925 }
31926 _ACEOF
31927 for ac_lib in '' uuid; do
31928 if test -z "$ac_lib"; then
31929 ac_res="none required"
31930 else
31931 ac_res=-l$ac_lib
31932 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
31933 fi
31934 rm -f conftest.$ac_objext conftest$ac_exeext
31935 if { (ac_try="$ac_link"
31936 case "(($ac_try" in
31937 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31938 *) ac_try_echo=$ac_try;;
31939 esac
31940 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31941 $as_echo "$ac_try_echo") >&5
31942 (eval "$ac_link") 2>conftest.er1
31943 ac_status=$?
31944 grep -v '^ *+' conftest.er1 >conftest.err
31945 rm -f conftest.er1
31946 cat conftest.err >&5
31947 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31948 (exit $ac_status); } && {
31949 test -z "$ac_c_werror_flag" ||
31950 test ! -s conftest.err
31951 } && test -s conftest$ac_exeext && {
31952 test "$cross_compiling" = yes ||
31953 $as_test_x conftest$ac_exeext
31954 }; then
31955 ac_cv_search_uuid_is_null=$ac_res
31956 else
31957 $as_echo "$as_me: failed program was:" >&5
31958 sed 's/^/| /' conftest.$ac_ext >&5
31959
31960
31961 fi
31962
31963 rm -rf conftest.dSYM
31964 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31965 conftest$ac_exeext
31966 if test "${ac_cv_search_uuid_is_null+set}" = set; then
31967 break
31968 fi
31969 done
31970 if test "${ac_cv_search_uuid_is_null+set}" = set; then
31971 :
31972 else
31973 ac_cv_search_uuid_is_null=no
31974 fi
31975 rm conftest.$ac_ext
31976 LIBS=$ac_func_search_save_LIBS
31977 fi
31978 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_uuid_is_null" >&5
31979 $as_echo "$ac_cv_search_uuid_is_null" >&6; }
31980 ac_res=$ac_cv_search_uuid_is_null
31981 if test "$ac_res" != no; then
31982 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
31983
31984 else
31985 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
31986 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
31987 { { $as_echo "$as_me:$LINENO: error:
31988 *** uuid_is_null() missing, libuuid-devel package required
31989 See \`config.log' for more details." >&5
31990 $as_echo "$as_me: error:
31991 *** uuid_is_null() missing, libuuid-devel package required
31992 See \`config.log' for more details." >&2;}
31993 { (exit 1); exit 1; }; }; }
31994 fi
31995
31996
31997 LIBUUID="-luuid"
31998
31999
32000 cat >>confdefs.h <<\_ACEOF
32001 #define HAVE_LIBUUID 1
32002 _ACEOF
32003
32004
32005
32006
32007 # Check whether --with-tirpc was given.
32008 if test "${with_tirpc+set}" = set; then
32009 withval=$with_tirpc;
32010 else
32011 with_tirpc=check
32012 fi
32013
32014
32015 LIBTIRPC=
32016 LIBTIRPC_CFLAGS=
32017
32018 if test "x$with_tirpc" != xno; then
32019 { $as_echo "$as_me:$LINENO: checking for xdrmem_create in -ltirpc" >&5
32020 $as_echo_n "checking for xdrmem_create in -ltirpc... " >&6; }
32021 if test "${ac_cv_lib_tirpc_xdrmem_create+set}" = set; then
32022 $as_echo_n "(cached) " >&6
32023 else
32024 ac_check_lib_save_LIBS=$LIBS
32025 LIBS="-ltirpc $LIBS"
32026 cat >conftest.$ac_ext <<_ACEOF
32027 /* confdefs.h. */
32028 _ACEOF
32029 cat confdefs.h >>conftest.$ac_ext
32030 cat >>conftest.$ac_ext <<_ACEOF
32031 /* end confdefs.h. */
32032
32033 /* Override any GCC internal prototype to avoid an error.
32034 Use char because int might match the return type of a GCC
32035 builtin and then its argument prototype would still apply. */
32036 #ifdef __cplusplus
32037 extern "C"
32038 #endif
32039 char xdrmem_create ();
32040 int
32041 main ()
32042 {
32043 return xdrmem_create ();
32044 ;
32045 return 0;
32046 }
32047 _ACEOF
32048 rm -f conftest.$ac_objext conftest$ac_exeext
32049 if { (ac_try="$ac_link"
32050 case "(($ac_try" in
32051 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32052 *) ac_try_echo=$ac_try;;
32053 esac
32054 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32055 $as_echo "$ac_try_echo") >&5
32056 (eval "$ac_link") 2>conftest.er1
32057 ac_status=$?
32058 grep -v '^ *+' conftest.er1 >conftest.err
32059 rm -f conftest.er1
32060 cat conftest.err >&5
32061 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32062 (exit $ac_status); } && {
32063 test -z "$ac_c_werror_flag" ||
32064 test ! -s conftest.err
32065 } && test -s conftest$ac_exeext && {
32066 test "$cross_compiling" = yes ||
32067 $as_test_x conftest$ac_exeext
32068 }; then
32069 ac_cv_lib_tirpc_xdrmem_create=yes
32070 else
32071 $as_echo "$as_me: failed program was:" >&5
32072 sed 's/^/| /' conftest.$ac_ext >&5
32073
32074 ac_cv_lib_tirpc_xdrmem_create=no
32075 fi
32076
32077 rm -rf conftest.dSYM
32078 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32079 conftest$ac_exeext conftest.$ac_ext
32080 LIBS=$ac_check_lib_save_LIBS
32081 fi
32082 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_tirpc_xdrmem_create" >&5
32083 $as_echo "$ac_cv_lib_tirpc_xdrmem_create" >&6; }
32084 if test "x$ac_cv_lib_tirpc_xdrmem_create" = x""yes; then
32085 LIBTIRPC=-ltirpc
32086
32087 LIBTIRPC_CFLAGS=-I/usr/include/tirpc
32088
32089
32090 cat >>confdefs.h <<\_ACEOF
32091 #define HAVE_LIBTIRPC 1
32092 _ACEOF
32093
32094
32095 else
32096 if test "x$with_tirpc" != xcheck; then
32097 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
32098 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
32099 { { $as_echo "$as_me:$LINENO: error: --with-tirpc was given, but test for tirpc failed
32100 See \`config.log' for more details." >&5
32101 $as_echo "$as_me: error: --with-tirpc was given, but test for tirpc failed
32102 See \`config.log' for more details." >&2;}
32103 { (exit 1); exit 1; }; }; }
32104 fi
32105 { $as_echo "$as_me:$LINENO: checking for library containing xdrmem_create" >&5
32106 $as_echo_n "checking for library containing xdrmem_create... " >&6; }
32107 if test "${ac_cv_search_xdrmem_create+set}" = set; then
32108 $as_echo_n "(cached) " >&6
32109 else
32110 ac_func_search_save_LIBS=$LIBS
32111 cat >conftest.$ac_ext <<_ACEOF
32112 /* confdefs.h. */
32113 _ACEOF
32114 cat confdefs.h >>conftest.$ac_ext
32115 cat >>conftest.$ac_ext <<_ACEOF
32116 /* end confdefs.h. */
32117
32118 /* Override any GCC internal prototype to avoid an error.
32119 Use char because int might match the return type of a GCC
32120 builtin and then its argument prototype would still apply. */
32121 #ifdef __cplusplus
32122 extern "C"
32123 #endif
32124 char xdrmem_create ();
32125 int
32126 main ()
32127 {
32128 return xdrmem_create ();
32129 ;
32130 return 0;
32131 }
32132 _ACEOF
32133 for ac_lib in '' tirpc; do
32134 if test -z "$ac_lib"; then
32135 ac_res="none required"
32136 else
32137 ac_res=-l$ac_lib
32138 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
32139 fi
32140 rm -f conftest.$ac_objext conftest$ac_exeext
32141 if { (ac_try="$ac_link"
32142 case "(($ac_try" in
32143 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32144 *) ac_try_echo=$ac_try;;
32145 esac
32146 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32147 $as_echo "$ac_try_echo") >&5
32148 (eval "$ac_link") 2>conftest.er1
32149 ac_status=$?
32150 grep -v '^ *+' conftest.er1 >conftest.err
32151 rm -f conftest.er1
32152 cat conftest.err >&5
32153 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32154 (exit $ac_status); } && {
32155 test -z "$ac_c_werror_flag" ||
32156 test ! -s conftest.err
32157 } && test -s conftest$ac_exeext && {
32158 test "$cross_compiling" = yes ||
32159 $as_test_x conftest$ac_exeext
32160 }; then
32161 ac_cv_search_xdrmem_create=$ac_res
32162 else
32163 $as_echo "$as_me: failed program was:" >&5
32164 sed 's/^/| /' conftest.$ac_ext >&5
32165
32166
32167 fi
32168
32169 rm -rf conftest.dSYM
32170 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32171 conftest$ac_exeext
32172 if test "${ac_cv_search_xdrmem_create+set}" = set; then
32173 break
32174 fi
32175 done
32176 if test "${ac_cv_search_xdrmem_create+set}" = set; then
32177 :
32178 else
32179 ac_cv_search_xdrmem_create=no
32180 fi
32181 rm conftest.$ac_ext
32182 LIBS=$ac_func_search_save_LIBS
32183 fi
32184 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_xdrmem_create" >&5
32185 $as_echo "$ac_cv_search_xdrmem_create" >&6; }
32186 ac_res=$ac_cv_search_xdrmem_create
32187 if test "$ac_res" != no; then
32188 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
32189
32190 else
32191
32192 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
32193 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
32194 { { $as_echo "$as_me:$LINENO: error: xdrmem_create() requires tirpc or libc
32195 See \`config.log' for more details." >&5
32196 $as_echo "$as_me: error: xdrmem_create() requires tirpc or libc
32197 See \`config.log' for more details." >&2;}
32198 { (exit 1); exit 1; }; }; }
32199 fi
32200
32201
32202 fi
32203
32204 else
32205 { $as_echo "$as_me:$LINENO: checking for library containing xdrmem_create" >&5
32206 $as_echo_n "checking for library containing xdrmem_create... " >&6; }
32207 if test "${ac_cv_search_xdrmem_create+set}" = set; then
32208 $as_echo_n "(cached) " >&6
32209 else
32210 ac_func_search_save_LIBS=$LIBS
32211 cat >conftest.$ac_ext <<_ACEOF
32212 /* confdefs.h. */
32213 _ACEOF
32214 cat confdefs.h >>conftest.$ac_ext
32215 cat >>conftest.$ac_ext <<_ACEOF
32216 /* end confdefs.h. */
32217
32218 /* Override any GCC internal prototype to avoid an error.
32219 Use char because int might match the return type of a GCC
32220 builtin and then its argument prototype would still apply. */
32221 #ifdef __cplusplus
32222 extern "C"
32223 #endif
32224 char xdrmem_create ();
32225 int
32226 main ()
32227 {
32228 return xdrmem_create ();
32229 ;
32230 return 0;
32231 }
32232 _ACEOF
32233 for ac_lib in '' tirpc; do
32234 if test -z "$ac_lib"; then
32235 ac_res="none required"
32236 else
32237 ac_res=-l$ac_lib
32238 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
32239 fi
32240 rm -f conftest.$ac_objext conftest$ac_exeext
32241 if { (ac_try="$ac_link"
32242 case "(($ac_try" in
32243 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32244 *) ac_try_echo=$ac_try;;
32245 esac
32246 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32247 $as_echo "$ac_try_echo") >&5
32248 (eval "$ac_link") 2>conftest.er1
32249 ac_status=$?
32250 grep -v '^ *+' conftest.er1 >conftest.err
32251 rm -f conftest.er1
32252 cat conftest.err >&5
32253 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32254 (exit $ac_status); } && {
32255 test -z "$ac_c_werror_flag" ||
32256 test ! -s conftest.err
32257 } && test -s conftest$ac_exeext && {
32258 test "$cross_compiling" = yes ||
32259 $as_test_x conftest$ac_exeext
32260 }; then
32261 ac_cv_search_xdrmem_create=$ac_res
32262 else
32263 $as_echo "$as_me: failed program was:" >&5
32264 sed 's/^/| /' conftest.$ac_ext >&5
32265
32266
32267 fi
32268
32269 rm -rf conftest.dSYM
32270 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32271 conftest$ac_exeext
32272 if test "${ac_cv_search_xdrmem_create+set}" = set; then
32273 break
32274 fi
32275 done
32276 if test "${ac_cv_search_xdrmem_create+set}" = set; then
32277 :
32278 else
32279 ac_cv_search_xdrmem_create=no
32280 fi
32281 rm conftest.$ac_ext
32282 LIBS=$ac_func_search_save_LIBS
32283 fi
32284 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_xdrmem_create" >&5
32285 $as_echo "$ac_cv_search_xdrmem_create" >&6; }
32286 ac_res=$ac_cv_search_xdrmem_create
32287 if test "$ac_res" != no; then
32288 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
32289
32290 else
32291
32292 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
32293 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
32294 { { $as_echo "$as_me:$LINENO: error: xdrmem_create() requires libc
32295 See \`config.log' for more details." >&5
32296 $as_echo "$as_me: error: xdrmem_create() requires libc
32297 See \`config.log' for more details." >&2;}
32298 { (exit 1); exit 1; }; }; }
32299 fi
32300
32301
32302 fi
32303
32304
32305
32306 LIBBLKID=
32307
32308 if test "${ac_cv_header_blkid_blkid_h+set}" = set; then
32309 { $as_echo "$as_me:$LINENO: checking for blkid/blkid.h" >&5
32310 $as_echo_n "checking for blkid/blkid.h... " >&6; }
32311 if test "${ac_cv_header_blkid_blkid_h+set}" = set; then
32312 $as_echo_n "(cached) " >&6
32313 fi
32314 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_blkid_blkid_h" >&5
32315 $as_echo "$ac_cv_header_blkid_blkid_h" >&6; }
32316 else
32317 # Is the header compilable?
32318 { $as_echo "$as_me:$LINENO: checking blkid/blkid.h usability" >&5
32319 $as_echo_n "checking blkid/blkid.h usability... " >&6; }
32320 cat >conftest.$ac_ext <<_ACEOF
32321 /* confdefs.h. */
32322 _ACEOF
32323 cat confdefs.h >>conftest.$ac_ext
32324 cat >>conftest.$ac_ext <<_ACEOF
32325 /* end confdefs.h. */
32326 $ac_includes_default
32327 #include <blkid/blkid.h>
32328 _ACEOF
32329 rm -f conftest.$ac_objext
32330 if { (ac_try="$ac_compile"
32331 case "(($ac_try" in
32332 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32333 *) ac_try_echo=$ac_try;;
32334 esac
32335 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32336 $as_echo "$ac_try_echo") >&5
32337 (eval "$ac_compile") 2>conftest.er1
32338 ac_status=$?
32339 grep -v '^ *+' conftest.er1 >conftest.err
32340 rm -f conftest.er1
32341 cat conftest.err >&5
32342 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32343 (exit $ac_status); } && {
32344 test -z "$ac_c_werror_flag" ||
32345 test ! -s conftest.err
32346 } && test -s conftest.$ac_objext; then
32347 ac_header_compiler=yes
32348 else
32349 $as_echo "$as_me: failed program was:" >&5
32350 sed 's/^/| /' conftest.$ac_ext >&5
32351
32352 ac_header_compiler=no
32353 fi
32354
32355 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32356 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
32357 $as_echo "$ac_header_compiler" >&6; }
32358
32359 # Is the header present?
32360 { $as_echo "$as_me:$LINENO: checking blkid/blkid.h presence" >&5
32361 $as_echo_n "checking blkid/blkid.h presence... " >&6; }
32362 cat >conftest.$ac_ext <<_ACEOF
32363 /* confdefs.h. */
32364 _ACEOF
32365 cat confdefs.h >>conftest.$ac_ext
32366 cat >>conftest.$ac_ext <<_ACEOF
32367 /* end confdefs.h. */
32368 #include <blkid/blkid.h>
32369 _ACEOF
32370 if { (ac_try="$ac_cpp conftest.$ac_ext"
32371 case "(($ac_try" in
32372 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32373 *) ac_try_echo=$ac_try;;
32374 esac
32375 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32376 $as_echo "$ac_try_echo") >&5
32377 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
32378 ac_status=$?
32379 grep -v '^ *+' conftest.er1 >conftest.err
32380 rm -f conftest.er1
32381 cat conftest.err >&5
32382 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32383 (exit $ac_status); } >/dev/null && {
32384 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
32385 test ! -s conftest.err
32386 }; then
32387 ac_header_preproc=yes
32388 else
32389 $as_echo "$as_me: failed program was:" >&5
32390 sed 's/^/| /' conftest.$ac_ext >&5
32391
32392 ac_header_preproc=no
32393 fi
32394
32395 rm -f conftest.err conftest.$ac_ext
32396 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
32397 $as_echo "$ac_header_preproc" >&6; }
32398
32399 # So? What about this header?
32400 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
32401 yes:no: )
32402 { $as_echo "$as_me:$LINENO: WARNING: blkid/blkid.h: accepted by the compiler, rejected by the preprocessor!" >&5
32403 $as_echo "$as_me: WARNING: blkid/blkid.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
32404 { $as_echo "$as_me:$LINENO: WARNING: blkid/blkid.h: proceeding with the compiler's result" >&5
32405 $as_echo "$as_me: WARNING: blkid/blkid.h: proceeding with the compiler's result" >&2;}
32406 ac_header_preproc=yes
32407 ;;
32408 no:yes:* )
32409 { $as_echo "$as_me:$LINENO: WARNING: blkid/blkid.h: present but cannot be compiled" >&5
32410 $as_echo "$as_me: WARNING: blkid/blkid.h: present but cannot be compiled" >&2;}
32411 { $as_echo "$as_me:$LINENO: WARNING: blkid/blkid.h: check for missing prerequisite headers?" >&5
32412 $as_echo "$as_me: WARNING: blkid/blkid.h: check for missing prerequisite headers?" >&2;}
32413 { $as_echo "$as_me:$LINENO: WARNING: blkid/blkid.h: see the Autoconf documentation" >&5
32414 $as_echo "$as_me: WARNING: blkid/blkid.h: see the Autoconf documentation" >&2;}
32415 { $as_echo "$as_me:$LINENO: WARNING: blkid/blkid.h: section \"Present But Cannot Be Compiled\"" >&5
32416 $as_echo "$as_me: WARNING: blkid/blkid.h: section \"Present But Cannot Be Compiled\"" >&2;}
32417 { $as_echo "$as_me:$LINENO: WARNING: blkid/blkid.h: proceeding with the preprocessor's result" >&5
32418 $as_echo "$as_me: WARNING: blkid/blkid.h: proceeding with the preprocessor's result" >&2;}
32419 { $as_echo "$as_me:$LINENO: WARNING: blkid/blkid.h: in the future, the compiler will take precedence" >&5
32420 $as_echo "$as_me: WARNING: blkid/blkid.h: in the future, the compiler will take precedence" >&2;}
32421
32422 ;;
32423 esac
32424 { $as_echo "$as_me:$LINENO: checking for blkid/blkid.h" >&5
32425 $as_echo_n "checking for blkid/blkid.h... " >&6; }
32426 if test "${ac_cv_header_blkid_blkid_h+set}" = set; then
32427 $as_echo_n "(cached) " >&6
32428 else
32429 ac_cv_header_blkid_blkid_h=$ac_header_preproc
32430 fi
32431 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_blkid_blkid_h" >&5
32432 $as_echo "$ac_cv_header_blkid_blkid_h" >&6; }
32433
32434 fi
32435 if test "x$ac_cv_header_blkid_blkid_h" = x""yes; then
32436 :
32437 else
32438 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
32439 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
32440 { { $as_echo "$as_me:$LINENO: error:
32441 *** blkid.h missing, libblkid-devel package required
32442 See \`config.log' for more details." >&5
32443 $as_echo "$as_me: error:
32444 *** blkid.h missing, libblkid-devel package required
32445 See \`config.log' for more details." >&2;}
32446 { (exit 1); exit 1; }; }; }
32447 fi
32448
32449
32450
32451 LIBBLKID="-lblkid"
32452
32453
32454 cat >>confdefs.h <<\_ACEOF
32455 #define HAVE_LIBBLKID 1
32456 _ACEOF
32457
32458
32459
32460 LIBUDEV=
32461
32462 if test "${ac_cv_header_libudev_h+set}" = set; then
32463 { $as_echo "$as_me:$LINENO: checking for libudev.h" >&5
32464 $as_echo_n "checking for libudev.h... " >&6; }
32465 if test "${ac_cv_header_libudev_h+set}" = set; then
32466 $as_echo_n "(cached) " >&6
32467 fi
32468 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_libudev_h" >&5
32469 $as_echo "$ac_cv_header_libudev_h" >&6; }
32470 else
32471 # Is the header compilable?
32472 { $as_echo "$as_me:$LINENO: checking libudev.h usability" >&5
32473 $as_echo_n "checking libudev.h usability... " >&6; }
32474 cat >conftest.$ac_ext <<_ACEOF
32475 /* confdefs.h. */
32476 _ACEOF
32477 cat confdefs.h >>conftest.$ac_ext
32478 cat >>conftest.$ac_ext <<_ACEOF
32479 /* end confdefs.h. */
32480 $ac_includes_default
32481 #include <libudev.h>
32482 _ACEOF
32483 rm -f conftest.$ac_objext
32484 if { (ac_try="$ac_compile"
32485 case "(($ac_try" in
32486 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32487 *) ac_try_echo=$ac_try;;
32488 esac
32489 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32490 $as_echo "$ac_try_echo") >&5
32491 (eval "$ac_compile") 2>conftest.er1
32492 ac_status=$?
32493 grep -v '^ *+' conftest.er1 >conftest.err
32494 rm -f conftest.er1
32495 cat conftest.err >&5
32496 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32497 (exit $ac_status); } && {
32498 test -z "$ac_c_werror_flag" ||
32499 test ! -s conftest.err
32500 } && test -s conftest.$ac_objext; then
32501 ac_header_compiler=yes
32502 else
32503 $as_echo "$as_me: failed program was:" >&5
32504 sed 's/^/| /' conftest.$ac_ext >&5
32505
32506 ac_header_compiler=no
32507 fi
32508
32509 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32510 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
32511 $as_echo "$ac_header_compiler" >&6; }
32512
32513 # Is the header present?
32514 { $as_echo "$as_me:$LINENO: checking libudev.h presence" >&5
32515 $as_echo_n "checking libudev.h presence... " >&6; }
32516 cat >conftest.$ac_ext <<_ACEOF
32517 /* confdefs.h. */
32518 _ACEOF
32519 cat confdefs.h >>conftest.$ac_ext
32520 cat >>conftest.$ac_ext <<_ACEOF
32521 /* end confdefs.h. */
32522 #include <libudev.h>
32523 _ACEOF
32524 if { (ac_try="$ac_cpp conftest.$ac_ext"
32525 case "(($ac_try" in
32526 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32527 *) ac_try_echo=$ac_try;;
32528 esac
32529 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32530 $as_echo "$ac_try_echo") >&5
32531 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
32532 ac_status=$?
32533 grep -v '^ *+' conftest.er1 >conftest.err
32534 rm -f conftest.er1
32535 cat conftest.err >&5
32536 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32537 (exit $ac_status); } >/dev/null && {
32538 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
32539 test ! -s conftest.err
32540 }; then
32541 ac_header_preproc=yes
32542 else
32543 $as_echo "$as_me: failed program was:" >&5
32544 sed 's/^/| /' conftest.$ac_ext >&5
32545
32546 ac_header_preproc=no
32547 fi
32548
32549 rm -f conftest.err conftest.$ac_ext
32550 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
32551 $as_echo "$ac_header_preproc" >&6; }
32552
32553 # So? What about this header?
32554 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
32555 yes:no: )
32556 { $as_echo "$as_me:$LINENO: WARNING: libudev.h: accepted by the compiler, rejected by the preprocessor!" >&5
32557 $as_echo "$as_me: WARNING: libudev.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
32558 { $as_echo "$as_me:$LINENO: WARNING: libudev.h: proceeding with the compiler's result" >&5
32559 $as_echo "$as_me: WARNING: libudev.h: proceeding with the compiler's result" >&2;}
32560 ac_header_preproc=yes
32561 ;;
32562 no:yes:* )
32563 { $as_echo "$as_me:$LINENO: WARNING: libudev.h: present but cannot be compiled" >&5
32564 $as_echo "$as_me: WARNING: libudev.h: present but cannot be compiled" >&2;}
32565 { $as_echo "$as_me:$LINENO: WARNING: libudev.h: check for missing prerequisite headers?" >&5
32566 $as_echo "$as_me: WARNING: libudev.h: check for missing prerequisite headers?" >&2;}
32567 { $as_echo "$as_me:$LINENO: WARNING: libudev.h: see the Autoconf documentation" >&5
32568 $as_echo "$as_me: WARNING: libudev.h: see the Autoconf documentation" >&2;}
32569 { $as_echo "$as_me:$LINENO: WARNING: libudev.h: section \"Present But Cannot Be Compiled\"" >&5
32570 $as_echo "$as_me: WARNING: libudev.h: section \"Present But Cannot Be Compiled\"" >&2;}
32571 { $as_echo "$as_me:$LINENO: WARNING: libudev.h: proceeding with the preprocessor's result" >&5
32572 $as_echo "$as_me: WARNING: libudev.h: proceeding with the preprocessor's result" >&2;}
32573 { $as_echo "$as_me:$LINENO: WARNING: libudev.h: in the future, the compiler will take precedence" >&5
32574 $as_echo "$as_me: WARNING: libudev.h: in the future, the compiler will take precedence" >&2;}
32575
32576 ;;
32577 esac
32578 { $as_echo "$as_me:$LINENO: checking for libudev.h" >&5
32579 $as_echo_n "checking for libudev.h... " >&6; }
32580 if test "${ac_cv_header_libudev_h+set}" = set; then
32581 $as_echo_n "(cached) " >&6
32582 else
32583 ac_cv_header_libudev_h=$ac_header_preproc
32584 fi
32585 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_libudev_h" >&5
32586 $as_echo "$ac_cv_header_libudev_h" >&6; }
32587
32588 fi
32589 if test "x$ac_cv_header_libudev_h" = x""yes; then
32590
32591 user_libudev=yes
32592 LIBUDEV="-ludev"
32593
32594
32595 cat >>confdefs.h <<\_ACEOF
32596 #define HAVE_LIBUDEV 1
32597 _ACEOF
32598
32599
32600 else
32601
32602 user_libudev=no
32603
32604 fi
32605
32606
32607
32608 { $as_echo "$as_me:$LINENO: checking for library containing udev_device_get_is_initialized" >&5
32609 $as_echo_n "checking for library containing udev_device_get_is_initialized... " >&6; }
32610 if test "${ac_cv_search_udev_device_get_is_initialized+set}" = set; then
32611 $as_echo_n "(cached) " >&6
32612 else
32613 ac_func_search_save_LIBS=$LIBS
32614 cat >conftest.$ac_ext <<_ACEOF
32615 /* confdefs.h. */
32616 _ACEOF
32617 cat confdefs.h >>conftest.$ac_ext
32618 cat >>conftest.$ac_ext <<_ACEOF
32619 /* end confdefs.h. */
32620
32621 /* Override any GCC internal prototype to avoid an error.
32622 Use char because int might match the return type of a GCC
32623 builtin and then its argument prototype would still apply. */
32624 #ifdef __cplusplus
32625 extern "C"
32626 #endif
32627 char udev_device_get_is_initialized ();
32628 int
32629 main ()
32630 {
32631 return udev_device_get_is_initialized ();
32632 ;
32633 return 0;
32634 }
32635 _ACEOF
32636 for ac_lib in '' udev; do
32637 if test -z "$ac_lib"; then
32638 ac_res="none required"
32639 else
32640 ac_res=-l$ac_lib
32641 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
32642 fi
32643 rm -f conftest.$ac_objext conftest$ac_exeext
32644 if { (ac_try="$ac_link"
32645 case "(($ac_try" in
32646 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32647 *) ac_try_echo=$ac_try;;
32648 esac
32649 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32650 $as_echo "$ac_try_echo") >&5
32651 (eval "$ac_link") 2>conftest.er1
32652 ac_status=$?
32653 grep -v '^ *+' conftest.er1 >conftest.err
32654 rm -f conftest.er1
32655 cat conftest.err >&5
32656 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32657 (exit $ac_status); } && {
32658 test -z "$ac_c_werror_flag" ||
32659 test ! -s conftest.err
32660 } && test -s conftest$ac_exeext && {
32661 test "$cross_compiling" = yes ||
32662 $as_test_x conftest$ac_exeext
32663 }; then
32664 ac_cv_search_udev_device_get_is_initialized=$ac_res
32665 else
32666 $as_echo "$as_me: failed program was:" >&5
32667 sed 's/^/| /' conftest.$ac_ext >&5
32668
32669
32670 fi
32671
32672 rm -rf conftest.dSYM
32673 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32674 conftest$ac_exeext
32675 if test "${ac_cv_search_udev_device_get_is_initialized+set}" = set; then
32676 break
32677 fi
32678 done
32679 if test "${ac_cv_search_udev_device_get_is_initialized+set}" = set; then
32680 :
32681 else
32682 ac_cv_search_udev_device_get_is_initialized=no
32683 fi
32684 rm conftest.$ac_ext
32685 LIBS=$ac_func_search_save_LIBS
32686 fi
32687 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_udev_device_get_is_initialized" >&5
32688 $as_echo "$ac_cv_search_udev_device_get_is_initialized" >&6; }
32689 ac_res=$ac_cv_search_udev_device_get_is_initialized
32690 if test "$ac_res" != no; then
32691 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
32692
32693
32694 cat >>confdefs.h <<\_ACEOF
32695 #define HAVE_LIBUDEV_UDEV_DEVICE_GET_IS_INITIALIZED 1
32696 _ACEOF
32697
32698 fi
32699
32700
32701
32702
32703 { $as_echo "$as_me:$LINENO: checking for -Wframe-larger-than=<size> support" >&5
32704 $as_echo_n "checking for -Wframe-larger-than=<size> support... " >&6; }
32705
32706 saved_flags="$CFLAGS"
32707 CFLAGS="$CFLAGS -Wframe-larger-than=1024"
32708
32709 cat >conftest.$ac_ext <<_ACEOF
32710 /* confdefs.h. */
32711 _ACEOF
32712 cat confdefs.h >>conftest.$ac_ext
32713 cat >>conftest.$ac_ext <<_ACEOF
32714 /* end confdefs.h. */
32715
32716 int
32717 main ()
32718 {
32719
32720 ;
32721 return 0;
32722 }
32723 _ACEOF
32724 rm -f conftest.$ac_objext
32725 if { (ac_try="$ac_compile"
32726 case "(($ac_try" in
32727 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32728 *) ac_try_echo=$ac_try;;
32729 esac
32730 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32731 $as_echo "$ac_try_echo") >&5
32732 (eval "$ac_compile") 2>conftest.er1
32733 ac_status=$?
32734 grep -v '^ *+' conftest.er1 >conftest.err
32735 rm -f conftest.er1
32736 cat conftest.err >&5
32737 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32738 (exit $ac_status); } && {
32739 test -z "$ac_c_werror_flag" ||
32740 test ! -s conftest.err
32741 } && test -s conftest.$ac_objext; then
32742
32743 FRAME_LARGER_THAN=-Wframe-larger-than=1024
32744 { $as_echo "$as_me:$LINENO: result: yes" >&5
32745 $as_echo "yes" >&6; }
32746
32747 else
32748 $as_echo "$as_me: failed program was:" >&5
32749 sed 's/^/| /' conftest.$ac_ext >&5
32750
32751
32752 FRAME_LARGER_THAN=
32753 { $as_echo "$as_me:$LINENO: result: no" >&5
32754 $as_echo "no" >&6; }
32755
32756 fi
32757
32758 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32759
32760 CFLAGS="$saved_flags"
32761
32762
32763
32764 LIBAIO=
32765
32766 if test "${ac_cv_header_libaio_h+set}" = set; then
32767 { $as_echo "$as_me:$LINENO: checking for libaio.h" >&5
32768 $as_echo_n "checking for libaio.h... " >&6; }
32769 if test "${ac_cv_header_libaio_h+set}" = set; then
32770 $as_echo_n "(cached) " >&6
32771 fi
32772 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_libaio_h" >&5
32773 $as_echo "$ac_cv_header_libaio_h" >&6; }
32774 else
32775 # Is the header compilable?
32776 { $as_echo "$as_me:$LINENO: checking libaio.h usability" >&5
32777 $as_echo_n "checking libaio.h usability... " >&6; }
32778 cat >conftest.$ac_ext <<_ACEOF
32779 /* confdefs.h. */
32780 _ACEOF
32781 cat confdefs.h >>conftest.$ac_ext
32782 cat >>conftest.$ac_ext <<_ACEOF
32783 /* end confdefs.h. */
32784 $ac_includes_default
32785 #include <libaio.h>
32786 _ACEOF
32787 rm -f conftest.$ac_objext
32788 if { (ac_try="$ac_compile"
32789 case "(($ac_try" in
32790 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32791 *) ac_try_echo=$ac_try;;
32792 esac
32793 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32794 $as_echo "$ac_try_echo") >&5
32795 (eval "$ac_compile") 2>conftest.er1
32796 ac_status=$?
32797 grep -v '^ *+' conftest.er1 >conftest.err
32798 rm -f conftest.er1
32799 cat conftest.err >&5
32800 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32801 (exit $ac_status); } && {
32802 test -z "$ac_c_werror_flag" ||
32803 test ! -s conftest.err
32804 } && test -s conftest.$ac_objext; then
32805 ac_header_compiler=yes
32806 else
32807 $as_echo "$as_me: failed program was:" >&5
32808 sed 's/^/| /' conftest.$ac_ext >&5
32809
32810 ac_header_compiler=no
32811 fi
32812
32813 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32814 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
32815 $as_echo "$ac_header_compiler" >&6; }
32816
32817 # Is the header present?
32818 { $as_echo "$as_me:$LINENO: checking libaio.h presence" >&5
32819 $as_echo_n "checking libaio.h presence... " >&6; }
32820 cat >conftest.$ac_ext <<_ACEOF
32821 /* confdefs.h. */
32822 _ACEOF
32823 cat confdefs.h >>conftest.$ac_ext
32824 cat >>conftest.$ac_ext <<_ACEOF
32825 /* end confdefs.h. */
32826 #include <libaio.h>
32827 _ACEOF
32828 if { (ac_try="$ac_cpp conftest.$ac_ext"
32829 case "(($ac_try" in
32830 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32831 *) ac_try_echo=$ac_try;;
32832 esac
32833 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32834 $as_echo "$ac_try_echo") >&5
32835 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
32836 ac_status=$?
32837 grep -v '^ *+' conftest.er1 >conftest.err
32838 rm -f conftest.er1
32839 cat conftest.err >&5
32840 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32841 (exit $ac_status); } >/dev/null && {
32842 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
32843 test ! -s conftest.err
32844 }; then
32845 ac_header_preproc=yes
32846 else
32847 $as_echo "$as_me: failed program was:" >&5
32848 sed 's/^/| /' conftest.$ac_ext >&5
32849
32850 ac_header_preproc=no
32851 fi
32852
32853 rm -f conftest.err conftest.$ac_ext
32854 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
32855 $as_echo "$ac_header_preproc" >&6; }
32856
32857 # So? What about this header?
32858 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
32859 yes:no: )
32860 { $as_echo "$as_me:$LINENO: WARNING: libaio.h: accepted by the compiler, rejected by the preprocessor!" >&5
32861 $as_echo "$as_me: WARNING: libaio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
32862 { $as_echo "$as_me:$LINENO: WARNING: libaio.h: proceeding with the compiler's result" >&5
32863 $as_echo "$as_me: WARNING: libaio.h: proceeding with the compiler's result" >&2;}
32864 ac_header_preproc=yes
32865 ;;
32866 no:yes:* )
32867 { $as_echo "$as_me:$LINENO: WARNING: libaio.h: present but cannot be compiled" >&5
32868 $as_echo "$as_me: WARNING: libaio.h: present but cannot be compiled" >&2;}
32869 { $as_echo "$as_me:$LINENO: WARNING: libaio.h: check for missing prerequisite headers?" >&5
32870 $as_echo "$as_me: WARNING: libaio.h: check for missing prerequisite headers?" >&2;}
32871 { $as_echo "$as_me:$LINENO: WARNING: libaio.h: see the Autoconf documentation" >&5
32872 $as_echo "$as_me: WARNING: libaio.h: see the Autoconf documentation" >&2;}
32873 { $as_echo "$as_me:$LINENO: WARNING: libaio.h: section \"Present But Cannot Be Compiled\"" >&5
32874 $as_echo "$as_me: WARNING: libaio.h: section \"Present But Cannot Be Compiled\"" >&2;}
32875 { $as_echo "$as_me:$LINENO: WARNING: libaio.h: proceeding with the preprocessor's result" >&5
32876 $as_echo "$as_me: WARNING: libaio.h: proceeding with the preprocessor's result" >&2;}
32877 { $as_echo "$as_me:$LINENO: WARNING: libaio.h: in the future, the compiler will take precedence" >&5
32878 $as_echo "$as_me: WARNING: libaio.h: in the future, the compiler will take precedence" >&2;}
32879
32880 ;;
32881 esac
32882 { $as_echo "$as_me:$LINENO: checking for libaio.h" >&5
32883 $as_echo_n "checking for libaio.h... " >&6; }
32884 if test "${ac_cv_header_libaio_h+set}" = set; then
32885 $as_echo_n "(cached) " >&6
32886 else
32887 ac_cv_header_libaio_h=$ac_header_preproc
32888 fi
32889 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_libaio_h" >&5
32890 $as_echo "$ac_cv_header_libaio_h" >&6; }
32891
32892 fi
32893 if test "x$ac_cv_header_libaio_h" = x""yes; then
32894
32895 user_libaio=yes
32896 LIBAIO="-laio"
32897
32898
32899 cat >>confdefs.h <<\_ACEOF
32900 #define HAVE_LIBAIO 1
32901 _ACEOF
32902
32903
32904 else
32905
32906 user_libaio=no
32907
32908 fi
32909
32910
32911
32912
32913 if test "x$runstatedir" = x; then
32914 runstatedir='${localstatedir}/run'
32915
32916 fi
32917
32918
32919 { $as_echo "$as_me:$LINENO: checking makedev() is declared in sys/sysmacros.h" >&5
32920 $as_echo_n "checking makedev() is declared in sys/sysmacros.h... " >&6; }
32921 cat >conftest.$ac_ext <<_ACEOF
32922 /* confdefs.h. */
32923 _ACEOF
32924 cat confdefs.h >>conftest.$ac_ext
32925 cat >>conftest.$ac_ext <<_ACEOF
32926 /* end confdefs.h. */
32927
32928 #include <sys/sysmacros.h>
32929
32930 int
32931 main ()
32932 {
32933
32934 int k;
32935 k = makedev(0,0);
32936
32937 ;
32938 return 0;
32939 }
32940 _ACEOF
32941 rm -f conftest.$ac_objext
32942 if { (ac_try="$ac_compile"
32943 case "(($ac_try" in
32944 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32945 *) ac_try_echo=$ac_try;;
32946 esac
32947 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32948 $as_echo "$ac_try_echo") >&5
32949 (eval "$ac_compile") 2>conftest.er1
32950 ac_status=$?
32951 grep -v '^ *+' conftest.er1 >conftest.err
32952 rm -f conftest.er1
32953 cat conftest.err >&5
32954 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32955 (exit $ac_status); } && {
32956 test -z "$ac_c_werror_flag" ||
32957 test ! -s conftest.err
32958 } && test -s conftest.$ac_objext; then
32959
32960 { $as_echo "$as_me:$LINENO: result: yes" >&5
32961 $as_echo "yes" >&6; }
32962
32963 cat >>confdefs.h <<\_ACEOF
32964 #define HAVE_MAKEDEV_IN_SYSMACROS 1
32965 _ACEOF
32966
32967
32968 else
32969 $as_echo "$as_me: failed program was:" >&5
32970 sed 's/^/| /' conftest.$ac_ext >&5
32971
32972
32973 { $as_echo "$as_me:$LINENO: result: no" >&5
32974 $as_echo "no" >&6; }
32975
32976 fi
32977
32978 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32979
32980
32981 { $as_echo "$as_me:$LINENO: checking makedev() is declared in sys/mkdev.h" >&5
32982 $as_echo_n "checking makedev() is declared in sys/mkdev.h... " >&6; }
32983 cat >conftest.$ac_ext <<_ACEOF
32984 /* confdefs.h. */
32985 _ACEOF
32986 cat confdefs.h >>conftest.$ac_ext
32987 cat >>conftest.$ac_ext <<_ACEOF
32988 /* end confdefs.h. */
32989
32990 #include <sys/mkdev.h>
32991
32992 int
32993 main ()
32994 {
32995
32996 int k;
32997 k = makedev(0,0);
32998
32999 ;
33000 return 0;
33001 }
33002 _ACEOF
33003 rm -f conftest.$ac_objext
33004 if { (ac_try="$ac_compile"
33005 case "(($ac_try" in
33006 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33007 *) ac_try_echo=$ac_try;;
33008 esac
33009 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
33010 $as_echo "$ac_try_echo") >&5
33011 (eval "$ac_compile") 2>conftest.er1
33012 ac_status=$?
33013 grep -v '^ *+' conftest.er1 >conftest.err
33014 rm -f conftest.er1
33015 cat conftest.err >&5
33016 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33017 (exit $ac_status); } && {
33018 test -z "$ac_c_werror_flag" ||
33019 test ! -s conftest.err
33020 } && test -s conftest.$ac_objext; then
33021
33022 { $as_echo "$as_me:$LINENO: result: yes" >&5
33023 $as_echo "yes" >&6; }
33024
33025 cat >>confdefs.h <<\_ACEOF
33026 #define HAVE_MAKEDEV_IN_MKDEV 1
33027 _ACEOF
33028
33029
33030 else
33031 $as_echo "$as_me: failed program was:" >&5
33032 sed 's/^/| /' conftest.$ac_ext >&5
33033
33034
33035 { $as_echo "$as_me:$LINENO: result: no" >&5
33036 $as_echo "no" >&6; }
33037
33038 fi
33039
33040 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33041
33042
33043 { $as_echo "$as_me:$LINENO: checking for -Wno-format-truncation support" >&5
33044 $as_echo_n "checking for -Wno-format-truncation support... " >&6; }
33045
33046 saved_flags="$CFLAGS"
33047 CFLAGS="$CFLAGS -Wno-format-truncation"
33048
33049 cat >conftest.$ac_ext <<_ACEOF
33050 /* confdefs.h. */
33051 _ACEOF
33052 cat confdefs.h >>conftest.$ac_ext
33053 cat >>conftest.$ac_ext <<_ACEOF
33054 /* end confdefs.h. */
33055
33056 int
33057 main ()
33058 {
33059
33060 ;
33061 return 0;
33062 }
33063 _ACEOF
33064 rm -f conftest.$ac_objext
33065 if { (ac_try="$ac_compile"
33066 case "(($ac_try" in
33067 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33068 *) ac_try_echo=$ac_try;;
33069 esac
33070 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
33071 $as_echo "$ac_try_echo") >&5
33072 (eval "$ac_compile") 2>conftest.er1
33073 ac_status=$?
33074 grep -v '^ *+' conftest.er1 >conftest.err
33075 rm -f conftest.er1
33076 cat conftest.err >&5
33077 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33078 (exit $ac_status); } && {
33079 test -z "$ac_c_werror_flag" ||
33080 test ! -s conftest.err
33081 } && test -s conftest.$ac_objext; then
33082
33083 NO_FORMAT_TRUNCATION=-Wno-format-truncation
33084 { $as_echo "$as_me:$LINENO: result: yes" >&5
33085 $as_echo "yes" >&6; }
33086
33087 else
33088 $as_echo "$as_me: failed program was:" >&5
33089 sed 's/^/| /' conftest.$ac_ext >&5
33090
33091
33092 NO_FORMAT_TRUNCATION=
33093 { $as_echo "$as_me:$LINENO: result: no" >&5
33094 $as_echo "no" >&6; }
33095
33096 fi
33097
33098 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33099
33100 CFLAGS="$saved_flags"
33101
33102
33103
33104
33105 ZONENAME="echo global"
33106
33107
33108
33109
33110
33111
33112 for ac_func in mlockall
33113 do
33114 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
33115 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
33116 $as_echo_n "checking for $ac_func... " >&6; }
33117 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
33118 $as_echo_n "(cached) " >&6
33119 else
33120 cat >conftest.$ac_ext <<_ACEOF
33121 /* confdefs.h. */
33122 _ACEOF
33123 cat confdefs.h >>conftest.$ac_ext
33124 cat >>conftest.$ac_ext <<_ACEOF
33125 /* end confdefs.h. */
33126 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33127 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33128 #define $ac_func innocuous_$ac_func
33129
33130 /* System header to define __stub macros and hopefully few prototypes,
33131 which can conflict with char $ac_func (); below.
33132 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33133 <limits.h> exists even on freestanding compilers. */
33134
33135 #ifdef __STDC__
33136 # include <limits.h>
33137 #else
33138 # include <assert.h>
33139 #endif
33140
33141 #undef $ac_func
33142
33143 /* Override any GCC internal prototype to avoid an error.
33144 Use char because int might match the return type of a GCC
33145 builtin and then its argument prototype would still apply. */
33146 #ifdef __cplusplus
33147 extern "C"
33148 #endif
33149 char $ac_func ();
33150 /* The GNU C library defines this for functions which it implements
33151 to always fail with ENOSYS. Some functions are actually named
33152 something starting with __ and the normal name is an alias. */
33153 #if defined __stub_$ac_func || defined __stub___$ac_func
33154 choke me
33155 #endif
33156
33157 int
33158 main ()
33159 {
33160 return $ac_func ();
33161 ;
33162 return 0;
33163 }
33164 _ACEOF
33165 rm -f conftest.$ac_objext conftest$ac_exeext
33166 if { (ac_try="$ac_link"
33167 case "(($ac_try" in
33168 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33169 *) ac_try_echo=$ac_try;;
33170 esac
33171 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
33172 $as_echo "$ac_try_echo") >&5
33173 (eval "$ac_link") 2>conftest.er1
33174 ac_status=$?
33175 grep -v '^ *+' conftest.er1 >conftest.err
33176 rm -f conftest.er1
33177 cat conftest.err >&5
33178 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33179 (exit $ac_status); } && {
33180 test -z "$ac_c_werror_flag" ||
33181 test ! -s conftest.err
33182 } && test -s conftest$ac_exeext && {
33183 test "$cross_compiling" = yes ||
33184 $as_test_x conftest$ac_exeext
33185 }; then
33186 eval "$as_ac_var=yes"
33187 else
33188 $as_echo "$as_me: failed program was:" >&5
33189 sed 's/^/| /' conftest.$ac_ext >&5
33190
33191 eval "$as_ac_var=no"
33192 fi
33193
33194 rm -rf conftest.dSYM
33195 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33196 conftest$ac_exeext conftest.$ac_ext
33197 fi
33198 ac_res=`eval 'as_val=${'$as_ac_var'}
33199 $as_echo "$as_val"'`
33200 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
33201 $as_echo "$ac_res" >&6; }
33202 as_val=`eval 'as_val=${'$as_ac_var'}
33203 $as_echo "$as_val"'`
33204 if test "x$as_val" = x""yes; then
33205 cat >>confdefs.h <<_ACEOF
33206 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
33207 _ACEOF
33208
33209 fi
33210 done
33211
33212
33213
33214
33215
33216 # Check whether --with-linux was given.
33217 if test "${with_linux+set}" = set; then
33218 withval=$with_linux; kernelsrc="$withval"
33219 fi
33220
33221
33222
33223 # Check whether --with-linux-obj was given.
33224 if test "${with_linux_obj+set}" = set; then
33225 withval=$with_linux_obj; kernelbuild="$withval"
33226 fi
33227
33228
33229 { $as_echo "$as_me:$LINENO: checking kernel source directory" >&5
33230 $as_echo_n "checking kernel source directory... " >&6; }
33231 if test -z "$kernelsrc"; then
33232
33233 if test -e "/lib/modules/$(uname -r)/source"; then
33234
33235 headersdir="/lib/modules/$(uname -r)/source"
33236 sourcelink=$(readlink -f "$headersdir")
33237
33238 elif test -e "/lib/modules/$(uname -r)/build"; then
33239
33240 headersdir="/lib/modules/$(uname -r)/build"
33241 sourcelink=$(readlink -f "$headersdir")
33242
33243 else
33244
33245 sourcelink=$(ls -1d /usr/src/kernels/* \
33246 /usr/src/linux-* \
33247 2>/dev/null | grep -v obj | tail -1)
33248
33249 fi
33250
33251
33252 if test -n "$sourcelink" && test -e ${sourcelink}; then
33253
33254 kernelsrc=`readlink -f ${sourcelink}`
33255
33256 else
33257
33258 kernelsrc="Not found"
33259
33260 fi
33261
33262
33263 else
33264
33265 if test "$kernelsrc" = "NONE"; then
33266
33267 kernsrcver=NONE
33268
33269 fi
33270
33271 withlinux=yes
33272
33273 fi
33274
33275
33276 { $as_echo "$as_me:$LINENO: result: $kernelsrc" >&5
33277 $as_echo "$kernelsrc" >&6; }
33278 if test ! -d "$kernelsrc"; then
33279
33280 { { $as_echo "$as_me:$LINENO: error:
33281 *** Please make sure the kernel devel package for your distribution
33282 *** is installed and then try again. If that fails, you can specify the
33283 *** location of the kernel source with the '--with-linux=PATH' option." >&5
33284 $as_echo "$as_me: error:
33285 *** Please make sure the kernel devel package for your distribution
33286 *** is installed and then try again. If that fails, you can specify the
33287 *** location of the kernel source with the '--with-linux=PATH' option." >&2;}
33288 { (exit 1); exit 1; }; }
33289
33290 fi
33291
33292
33293 { $as_echo "$as_me:$LINENO: checking kernel build directory" >&5
33294 $as_echo_n "checking kernel build directory... " >&6; }
33295 if test -z "$kernelbuild"; then
33296
33297 if test x$withlinux != xyes -a -e "/lib/modules/$(uname -r)/build"; then
33298
33299 kernelbuild=`readlink -f /lib/modules/$(uname -r)/build`
33300
33301 elif test -d ${kernelsrc}-obj/${target_cpu}/${target_cpu}; then
33302
33303 kernelbuild=${kernelsrc}-obj/${target_cpu}/${target_cpu}
33304
33305 elif test -d ${kernelsrc}-obj/${target_cpu}/default; then
33306
33307 kernelbuild=${kernelsrc}-obj/${target_cpu}/default
33308
33309 elif test -d `dirname ${kernelsrc}`/build-${target_cpu}; then
33310
33311 kernelbuild=`dirname ${kernelsrc}`/build-${target_cpu}
33312
33313 else
33314
33315 kernelbuild=${kernelsrc}
33316
33317 fi
33318
33319
33320 fi
33321
33322 { $as_echo "$as_me:$LINENO: result: $kernelbuild" >&5
33323 $as_echo "$kernelbuild" >&6; }
33324
33325 { $as_echo "$as_me:$LINENO: checking kernel source version" >&5
33326 $as_echo_n "checking kernel source version... " >&6; }
33327 utsrelease1=$kernelbuild/include/linux/version.h
33328 utsrelease2=$kernelbuild/include/linux/utsrelease.h
33329 utsrelease3=$kernelbuild/include/generated/utsrelease.h
33330 if test -r $utsrelease1 && fgrep -q UTS_RELEASE $utsrelease1; then
33331
33332 utsrelease=linux/version.h
33333
33334 elif test -r $utsrelease2 && fgrep -q UTS_RELEASE $utsrelease2; then
33335
33336 utsrelease=linux/utsrelease.h
33337
33338 elif test -r $utsrelease3 && fgrep -q UTS_RELEASE $utsrelease3; then
33339
33340 utsrelease=generated/utsrelease.h
33341
33342 fi
33343
33344
33345 if test "$utsrelease"; then
33346
33347 kernsrcver=`(echo "#include <$utsrelease>";
33348 echo "kernsrcver=UTS_RELEASE") |
33349 cpp -I $kernelbuild/include |
33350 grep "^kernsrcver=" | cut -d \" -f 2`
33351
33352 if test -z "$kernsrcver"; then
33353
33354 { $as_echo "$as_me:$LINENO: result: Not found" >&5
33355 $as_echo "Not found" >&6; }
33356 { { $as_echo "$as_me:$LINENO: error: *** Cannot determine kernel version." >&5
33357 $as_echo "$as_me: error: *** Cannot determine kernel version." >&2;}
33358 { (exit 1); exit 1; }; }
33359
33360 fi
33361
33362
33363 else
33364
33365 { $as_echo "$as_me:$LINENO: result: Not found" >&5
33366 $as_echo "Not found" >&6; }
33367 if test "x$enable_linux_builtin" != xyes; then
33368 { { $as_echo "$as_me:$LINENO: error: *** Cannot find UTS_RELEASE definition." >&5
33369 $as_echo "$as_me: error: *** Cannot find UTS_RELEASE definition." >&2;}
33370 { (exit 1); exit 1; }; }
33371 else
33372 { { $as_echo "$as_me:$LINENO: error:
33373 *** Cannot find UTS_RELEASE definition.
33374 *** Please run 'make prepare' inside the kernel source tree." >&5
33375 $as_echo "$as_me: error:
33376 *** Cannot find UTS_RELEASE definition.
33377 *** Please run 'make prepare' inside the kernel source tree." >&2;}
33378 { (exit 1); exit 1; }; }
33379 fi
33380
33381 fi
33382
33383
33384 { $as_echo "$as_me:$LINENO: result: $kernsrcver" >&5
33385 $as_echo "$kernsrcver" >&6; }
33386
33387 LINUX=${kernelsrc}
33388 LINUX_OBJ=${kernelbuild}
33389 LINUX_VERSION=${kernsrcver}
33390
33391
33392
33393
33394
33395
33396 modpost=$LINUX/scripts/Makefile.modpost
33397 { $as_echo "$as_me:$LINENO: checking kernel file name for module symbols" >&5
33398 $as_echo_n "checking kernel file name for module symbols... " >&6; }
33399 if test "x$enable_linux_builtin" != xyes -a -f "$modpost"; then
33400
33401 if grep -q Modules.symvers $modpost; then
33402
33403 LINUX_SYMBOLS=Modules.symvers
33404
33405 else
33406
33407 LINUX_SYMBOLS=Module.symvers
33408
33409 fi
33410
33411
33412 if test ! -f "$LINUX_OBJ/$LINUX_SYMBOLS"; then
33413
33414 { { $as_echo "$as_me:$LINENO: error:
33415 *** Please make sure the kernel devel package for your distribution
33416 *** is installed. If you are building with a custom kernel, make sure the
33417 *** kernel is configured, built, and the '--with-linux=PATH' configure
33418 *** option refers to the location of the kernel source." >&5
33419 $as_echo "$as_me: error:
33420 *** Please make sure the kernel devel package for your distribution
33421 *** is installed. If you are building with a custom kernel, make sure the
33422 *** kernel is configured, built, and the '--with-linux=PATH' configure
33423 *** option refers to the location of the kernel source." >&2;}
33424 { (exit 1); exit 1; }; }
33425
33426 fi
33427
33428
33429 else
33430
33431 LINUX_SYMBOLS=NONE
33432
33433 fi
33434
33435 { $as_echo "$as_me:$LINENO: result: $LINUX_SYMBOLS" >&5
33436 $as_echo "$LINUX_SYMBOLS" >&6; }
33437
33438
33439
33440
33441
33442 # Check whether --with-spl was given.
33443 if test "${with_spl+set}" = set; then
33444 withval=$with_spl; if test "$withval" = "yes"; then
33445 { { $as_echo "$as_me:$LINENO: error: --with-spl=PATH requires a PATH" >&5
33446 $as_echo "$as_me: error: --with-spl=PATH requires a PATH" >&2;}
33447 { (exit 1); exit 1; }; }
33448 else
33449 splsrc="$withval"
33450 fi
33451
33452 fi
33453
33454
33455
33456 # Check whether --with-spl-obj was given.
33457 if test "${with_spl_obj+set}" = set; then
33458 withval=$with_spl_obj; splbuild="$withval"
33459 fi
33460
33461
33462
33463 # Check whether --with-spl-timeout was given.
33464 if test "${with_spl_timeout+set}" = set; then
33465 withval=$with_spl_timeout; timeout="$withval"
33466 else
33467 timeout=0
33468 fi
33469
33470
33471 splsrc0="/var/lib/dkms/spl/${VERSION}/build"
33472 splsrc1="/usr/local/src/spl-${VERSION}/${LINUX_VERSION}"
33473 splsrc2="/usr/local/src/spl-${VERSION}"
33474 splsrc3="/usr/src/spl-${VERSION}/${LINUX_VERSION}"
33475 splsrc4="/usr/src/spl-${VERSION}"
33476 splsrc5="../spl/"
33477 splsrc6="$LINUX"
33478
33479 { $as_echo "$as_me:$LINENO: checking spl source directory" >&5
33480 $as_echo_n "checking spl source directory... " >&6; }
33481 if test -z "${splsrc}"; then
33482
33483 all_spl_sources="
33484 ${splsrc0}
33485 ${splsrc1}
33486 ${splsrc2}
33487 ${splsrc3}
33488 ${splsrc4}
33489 ${splsrc5}
33490 ${splsrc6}",
33491 if test -e "${splsrc0}/spl.release.in"; then
33492
33493 splsrc=${splsrc0}
33494
33495 elif test -e "${splsrc1}/spl.release.in"; then
33496
33497 splsrc=${splsrc1}
33498
33499 elif test -e "${splsrc2}/spl.release.in"; then
33500
33501 splsrc=${splsrc2}
33502
33503 elif test -e "${splsrc3}/spl.release.in"; then
33504
33505 splsrc=$(readlink -f "${splsrc3}")
33506
33507 elif test -e "${splsrc4}/spl.release.in" ; then
33508
33509 splsrc=${splsrc4}
33510
33511 elif test -e "${splsrc5}/spl.release.in"; then
33512
33513 splsrc=$(readlink -f "${splsrc5}")
33514
33515 elif test -e "${splsrc6}/spl.release.in" ; then
33516
33517 splsrc=${splsrc6}
33518
33519 else
33520
33521 splsrc="Not found"
33522
33523 fi
33524
33525
33526 else
33527
33528 all_spl_sources="$withval",
33529 if test "$splsrc" = "NONE"; then
33530
33531 splbuild=NONE
33532 splsrcver=NONE
33533
33534 fi
33535
33536
33537 fi
33538
33539
33540 { $as_echo "$as_me:$LINENO: result: $splsrc" >&5
33541 $as_echo "$splsrc" >&6; }
33542 if test ! -e "$splsrc/spl.release.in"; then
33543
33544 { { $as_echo "$as_me:$LINENO: error:
33545 *** Please make sure the kmod spl devel package for your distribution
33546 *** is installed then try again. If that fails you can specify the
33547 *** location of the spl source with the '--with-spl=PATH' option.
33548 *** The spl version must match the version of ZFS you are building,
33549 *** ${VERSION}. Failed to find spl.release.in in the following:
33550 $all_spl_sources" >&5
33551 $as_echo "$as_me: error:
33552 *** Please make sure the kmod spl devel package for your distribution
33553 *** is installed then try again. If that fails you can specify the
33554 *** location of the spl source with the '--with-spl=PATH' option.
33555 *** The spl version must match the version of ZFS you are building,
33556 *** ${VERSION}. Failed to find spl.release.in in the following:
33557 $all_spl_sources" >&2;}
33558 { (exit 1); exit 1; }; }
33559
33560 fi
33561
33562
33563 { $as_echo "$as_me:$LINENO: checking spl build directory" >&5
33564 $as_echo_n "checking spl build directory... " >&6; }
33565
33566 all_spl_config_locs="${splsrc}/${LINUX_VERSION}
33567 ${splsrc}"
33568
33569 while true; do
33570 if test -z "$splbuild"; then
33571
33572 if test -e "${splsrc}/${LINUX_VERSION}/spl_config.h" ; then
33573
33574 splbuild="${splsrc}/${LINUX_VERSION}"
33575
33576 elif test -e "${splsrc}/spl_config.h" ; then
33577
33578 splbuild="${splsrc}"
33579
33580 elif find -L "${splsrc}" -name spl_config.h 2> /dev/null | grep -wq spl_config.h ; then
33581
33582 splbuild=$(find -L "${splsrc}" -name spl_config.h | sed 's,/spl_config.h,,')
33583
33584 else
33585
33586 splbuild="Not found"
33587
33588 fi
33589
33590
33591 fi
33592
33593 if test -e "$splbuild/spl_config.h" -o $timeout -le 0; then
33594
33595 break;
33596
33597 else
33598
33599 sleep 1
33600 timeout=$((timeout-1))
33601
33602 fi
33603
33604 done
33605
33606 { $as_echo "$as_me:$LINENO: result: $splbuild" >&5
33607 $as_echo "$splbuild" >&6; }
33608 if ! test -e "$splbuild/spl_config.h"; then
33609
33610 { { $as_echo "$as_me:$LINENO: error:
33611 *** Please make sure the kmod spl devel <kernel> package for your
33612 *** distribution is installed then try again. If that fails you
33613 *** can specify the location of the spl objects with the
33614 *** '--with-spl-obj=PATH' option. Failed to find spl_config.h in
33615 *** any of the following:
33616 $all_spl_config_locs" >&5
33617 $as_echo "$as_me: error:
33618 *** Please make sure the kmod spl devel <kernel> package for your
33619 *** distribution is installed then try again. If that fails you
33620 *** can specify the location of the spl objects with the
33621 *** '--with-spl-obj=PATH' option. Failed to find spl_config.h in
33622 *** any of the following:
33623 $all_spl_config_locs" >&2;}
33624 { (exit 1); exit 1; }; }
33625
33626 fi
33627
33628
33629 { $as_echo "$as_me:$LINENO: checking spl source version" >&5
33630 $as_echo_n "checking spl source version... " >&6; }
33631 if test -r $splbuild/spl_config.h &&
33632 fgrep -q SPL_META_VERSION $splbuild/spl_config.h; then
33633
33634
33635 splsrcver=`(echo "#include <spl_config.h>";
33636 echo "splsrcver=SPL_META_VERSION-SPL_META_RELEASE") |
33637 cpp -I $splbuild |
33638 grep "^splsrcver=" | tr -d \" | cut -d= -f2`
33639
33640 fi
33641
33642
33643 if test -z "$splsrcver"; then
33644
33645 { $as_echo "$as_me:$LINENO: result: Not found" >&5
33646 $as_echo "Not found" >&6; }
33647 { { $as_echo "$as_me:$LINENO: error:
33648 *** Cannot determine the version of the spl source.
33649 *** Please prepare the spl source before running this script" >&5
33650 $as_echo "$as_me: error:
33651 *** Cannot determine the version of the spl source.
33652 *** Please prepare the spl source before running this script" >&2;}
33653 { (exit 1); exit 1; }; }
33654
33655 fi
33656
33657
33658 { $as_echo "$as_me:$LINENO: result: $splsrcver" >&5
33659 $as_echo "$splsrcver" >&6; }
33660
33661 SPL=${splsrc}
33662 SPL_OBJ=${splbuild}
33663 SPL_VERSION=${splsrcver}
33664
33665
33666
33667
33668
33669 { $as_echo "$as_me:$LINENO: checking spl file name for module symbols" >&5
33670 $as_echo_n "checking spl file name for module symbols... " >&6; }
33671 SPL_SYMBOLS=NONE
33672
33673 while true; do
33674 if test -r $SPL_OBJ/Module.symvers; then
33675
33676 SPL_SYMBOLS=Module.symvers
33677
33678 elif test -r $SPL_OBJ/Modules.symvers; then
33679
33680 SPL_SYMBOLS=Modules.symvers
33681
33682 elif test -r $SPL_OBJ/module/Module.symvers; then
33683
33684 SPL_SYMBOLS=Module.symvers
33685
33686 elif test -r $SPL_OBJ/module/Modules.symvers; then
33687
33688 SPL_SYMBOLS=Modules.symvers
33689
33690 fi
33691
33692
33693 if test $SPL_SYMBOLS != NONE -o $timeout -le 0; then
33694
33695 break;
33696
33697 else
33698
33699 sleep 1
33700 timeout=$((timeout-1))
33701
33702 fi
33703
33704 done
33705
33706 if test "$SPL_SYMBOLS" = NONE; then
33707
33708 SPL_SYMBOLS=$LINUX_SYMBOLS
33709
33710 fi
33711
33712
33713 { $as_echo "$as_me:$LINENO: result: $SPL_SYMBOLS" >&5
33714 $as_echo "$SPL_SYMBOLS" >&6; }
33715
33716
33717
33718
33719 # Check whether --with-qat was given.
33720 if test "${with_qat+set}" = set; then
33721 withval=$with_qat; if test "$withval" = "yes"; then
33722 { { $as_echo "$as_me:$LINENO: error: --with-qat=PATH requires a PATH" >&5
33723 $as_echo "$as_me: error: --with-qat=PATH requires a PATH" >&2;}
33724 { (exit 1); exit 1; }; }
33725 else
33726 qatsrc="$withval"
33727 fi
33728
33729 fi
33730
33731
33732
33733 # Check whether --with-qat-obj was given.
33734 if test "${with_qat_obj+set}" = set; then
33735 withval=$with_qat_obj; qatbuild="$withval"
33736 fi
33737
33738
33739 if test ! -z "${qatsrc}"; then
33740
33741 { $as_echo "$as_me:$LINENO: checking qat source directory" >&5
33742 $as_echo_n "checking qat source directory... " >&6; }
33743 { $as_echo "$as_me:$LINENO: result: $qatsrc" >&5
33744 $as_echo "$qatsrc" >&6; }
33745 QAT_SRC="${qatsrc}/quickassist"
33746 if test ! -e "$QAT_SRC/include/cpa.h"; then
33747
33748 { { $as_echo "$as_me:$LINENO: error:
33749 *** Please make sure the qat driver package is installed
33750 *** and specify the location of the qat source with the
33751 *** '--with-qat=PATH' option then try again. Failed to
33752 *** find cpa.h in:
33753 ${QAT_SRC}/include" >&5
33754 $as_echo "$as_me: error:
33755 *** Please make sure the qat driver package is installed
33756 *** and specify the location of the qat source with the
33757 *** '--with-qat=PATH' option then try again. Failed to
33758 *** find cpa.h in:
33759 ${QAT_SRC}/include" >&2;}
33760 { (exit 1); exit 1; }; }
33761
33762 fi
33763
33764
33765 fi
33766
33767
33768 if test ! -z "${qatsrc}"; then
33769
33770 { $as_echo "$as_me:$LINENO: checking qat build directory" >&5
33771 $as_echo_n "checking qat build directory... " >&6; }
33772 if test -z "$qatbuild"; then
33773
33774 qatbuild="${qatsrc}/build"
33775
33776 fi
33777
33778
33779 { $as_echo "$as_me:$LINENO: result: $qatbuild" >&5
33780 $as_echo "$qatbuild" >&6; }
33781 QAT_OBJ=${qatbuild}
33782 if ! test -e "$QAT_OBJ/icp_qa_al.ko" && ! test -e "$QAT_OBJ/qat_api.ko"; then
33783
33784 { { $as_echo "$as_me:$LINENO: error:
33785 *** Please make sure the qat driver is installed then try again.
33786 *** Failed to find icp_qa_al.ko or qat_api.ko in:
33787 $QAT_OBJ" >&5
33788 $as_echo "$as_me: error:
33789 *** Please make sure the qat driver is installed then try again.
33790 *** Failed to find icp_qa_al.ko or qat_api.ko in:
33791 $QAT_OBJ" >&2;}
33792 { (exit 1); exit 1; }; }
33793
33794 fi
33795
33796
33797
33798
33799
33800
33801 cat >>confdefs.h <<\_ACEOF
33802 #define HAVE_QAT 1
33803 _ACEOF
33804
33805
33806 fi
33807
33808
33809 if test ! -z "${qatsrc}"; then
33810
33811 { $as_echo "$as_me:$LINENO: checking qat file for module symbols" >&5
33812 $as_echo_n "checking qat file for module symbols... " >&6; }
33813 QAT_SYMBOLS=$QAT_SRC/lookaside/access_layer/src/Module.symvers
33814
33815 if test -r $QAT_SYMBOLS; then
33816
33817 { $as_echo "$as_me:$LINENO: result: $QAT_SYMBOLS" >&5
33818 $as_echo "$QAT_SYMBOLS" >&6; }
33819
33820
33821 else
33822
33823 { { $as_echo "$as_me:$LINENO: error:
33824 *** Please make sure the qat driver is installed then try again.
33825 *** Failed to find Module.symvers in:
33826 $QAT_SYMBOLS" >&5
33827 $as_echo "$as_me: error:
33828 *** Please make sure the qat driver is installed then try again.
33829 *** Failed to find Module.symvers in:
33830 $QAT_SYMBOLS" >&2;}
33831 { (exit 1); exit 1; }; }
33832
33833 fi
33834
33835
33836 fi
33837
33838
33839
33840 { $as_echo "$as_me:$LINENO: checking whether modules can be built" >&5
33841 $as_echo_n "checking whether modules can be built... " >&6; }
33842
33843
33844 cat confdefs.h - <<_ACEOF >conftest.c
33845 /* confdefs.h. */
33846 _ACEOF
33847 cat confdefs.h >>conftest.$ac_ext
33848 cat >>conftest.$ac_ext <<_ACEOF
33849 /* end confdefs.h. */
33850
33851
33852 int
33853 main (void)
33854 {
33855
33856 ;
33857 return 0;
33858 }
33859
33860 _ACEOF
33861
33862
33863
33864 cat - <<_ACEOF >conftest.h
33865
33866 _ACEOF
33867
33868
33869 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
33870 echo "obj-m := conftest.o" >build/Makefile
33871 modpost_flag=''
33872 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
33873 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
33874 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33875 (eval $ac_try) 2>&5
33876 ac_status=$?
33877 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33878 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
33879 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33880 (eval $ac_try) 2>&5
33881 ac_status=$?
33882 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33883 (exit $ac_status); }; }; then
33884
33885 { $as_echo "$as_me:$LINENO: result: yes" >&5
33886 $as_echo "yes" >&6; }
33887
33888 else
33889 $as_echo "$as_me: failed program was:" >&5
33890 sed 's/^/| /' conftest.$ac_ext >&5
33891
33892 { $as_echo "$as_me:$LINENO: result: no" >&5
33893 $as_echo "no" >&6; }
33894 if test "x$enable_linux_builtin" != xyes; then
33895 { { $as_echo "$as_me:$LINENO: error: *** Unable to build an empty module." >&5
33896 $as_echo "$as_me: error: *** Unable to build an empty module." >&2;}
33897 { (exit 1); exit 1; }; }
33898 else
33899 { { $as_echo "$as_me:$LINENO: error:
33900 *** Unable to build an empty module.
33901 *** Please run 'make scripts' inside the kernel source tree." >&5
33902 $as_echo "$as_me: error:
33903 *** Unable to build an empty module.
33904 *** Please run 'make scripts' inside the kernel source tree." >&2;}
33905 { (exit 1); exit 1; }; }
33906 fi
33907
33908
33909
33910 fi
33911
33912 rm -Rf build
33913
33914
33915
33916
33917 { $as_echo "$as_me:$LINENO: checking for compile-time stack validation (objtool)" >&5
33918 $as_echo_n "checking for compile-time stack validation (objtool)... " >&6; }
33919
33920
33921 cat confdefs.h - <<_ACEOF >conftest.c
33922 /* confdefs.h. */
33923 _ACEOF
33924 cat confdefs.h >>conftest.$ac_ext
33925 cat >>conftest.$ac_ext <<_ACEOF
33926 /* end confdefs.h. */
33927
33928
33929 #undef __ASSEMBLY__
33930 #include <asm/frame.h>
33931
33932 int
33933 main (void)
33934 {
33935
33936 #if !defined(FRAME_BEGIN)
33937 CTASSERT(1);
33938 #endif
33939
33940 ;
33941 return 0;
33942 }
33943
33944 _ACEOF
33945
33946
33947
33948 cat - <<_ACEOF >conftest.h
33949
33950 _ACEOF
33951
33952
33953 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
33954 echo "obj-m := conftest.o" >build/Makefile
33955 modpost_flag=''
33956 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
33957 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
33958 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33959 (eval $ac_try) 2>&5
33960 ac_status=$?
33961 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33962 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
33963 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33964 (eval $ac_try) 2>&5
33965 ac_status=$?
33966 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33967 (exit $ac_status); }; }; then
33968
33969 { $as_echo "$as_me:$LINENO: result: yes" >&5
33970 $as_echo "yes" >&6; }
33971
33972 cat >>confdefs.h <<\_ACEOF
33973 #define HAVE_KERNEL_OBJTOOL 1
33974 _ACEOF
33975
33976
33977 else
33978 $as_echo "$as_me: failed program was:" >&5
33979 sed 's/^/| /' conftest.$ac_ext >&5
33980
33981 { $as_echo "$as_me:$LINENO: result: no" >&5
33982 $as_echo "no" >&6; }
33983
33984
33985
33986 fi
33987
33988 rm -Rf build
33989
33990
33991
33992
33993 if test "x$cross_compiling" != xyes; then
33994
33995 if test "$cross_compiling" = yes; then
33996 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
33997 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
33998 { { $as_echo "$as_me:$LINENO: error: cannot run test program while cross compiling
33999 See \`config.log' for more details." >&5
34000 $as_echo "$as_me: error: cannot run test program while cross compiling
34001 See \`config.log' for more details." >&2;}
34002 { (exit 1); exit 1; }; }; }
34003 else
34004 cat >conftest.$ac_ext <<_ACEOF
34005
34006 /* confdefs.h. */
34007 _ACEOF
34008 cat confdefs.h >>conftest.$ac_ext
34009 cat >>conftest.$ac_ext <<_ACEOF
34010 /* end confdefs.h. */
34011
34012 #include "$LINUX/include/linux/license.h"
34013
34014 int
34015 main ()
34016 {
34017
34018 return !license_is_gpl_compatible("$ZFS_META_LICENSE");
34019
34020 ;
34021 return 0;
34022 }
34023
34024 _ACEOF
34025 rm -f conftest$ac_exeext
34026 if { (ac_try="$ac_link"
34027 case "(($ac_try" in
34028 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34029 *) ac_try_echo=$ac_try;;
34030 esac
34031 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
34032 $as_echo "$ac_try_echo") >&5
34033 (eval "$ac_link") 2>&5
34034 ac_status=$?
34035 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34036 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
34037 { (case "(($ac_try" in
34038 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34039 *) ac_try_echo=$ac_try;;
34040 esac
34041 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
34042 $as_echo "$ac_try_echo") >&5
34043 (eval "$ac_try") 2>&5
34044 ac_status=$?
34045 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34046 (exit $ac_status); }; }; then
34047
34048
34049 cat >>confdefs.h <<\_ACEOF
34050 #define ZFS_IS_GPL_COMPATIBLE 1
34051 _ACEOF
34052
34053
34054 else
34055 $as_echo "$as_me: program exited with status $ac_status" >&5
34056 $as_echo "$as_me: failed program was:" >&5
34057 sed 's/^/| /' conftest.$ac_ext >&5
34058
34059 ( exit $ac_status )
34060
34061
34062 fi
34063 rm -rf conftest.dSYM
34064 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
34065 fi
34066
34067
34068
34069 fi
34070
34071
34072
34073 { $as_echo "$as_me:$LINENO: checking whether kernel was built with 16K or larger stacks" >&5
34074 $as_echo_n "checking whether kernel was built with 16K or larger stacks... " >&6; }
34075
34076
34077 cat confdefs.h - <<_ACEOF >conftest.c
34078 /* confdefs.h. */
34079 _ACEOF
34080 cat confdefs.h >>conftest.$ac_ext
34081 cat >>conftest.$ac_ext <<_ACEOF
34082 /* end confdefs.h. */
34083
34084
34085 #include <linux/module.h>
34086
34087 int
34088 main (void)
34089 {
34090
34091 #if (THREAD_SIZE < 16384)
34092 #error "THREAD_SIZE is less than 16K"
34093 #endif
34094
34095 ;
34096 return 0;
34097 }
34098
34099 _ACEOF
34100
34101
34102
34103 cat - <<_ACEOF >conftest.h
34104
34105 _ACEOF
34106
34107
34108 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
34109 echo "obj-m := conftest.o" >build/Makefile
34110 modpost_flag=''
34111 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
34112 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
34113 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34114 (eval $ac_try) 2>&5
34115 ac_status=$?
34116 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34117 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
34118 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34119 (eval $ac_try) 2>&5
34120 ac_status=$?
34121 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34122 (exit $ac_status); }; }; then
34123
34124 { $as_echo "$as_me:$LINENO: result: yes" >&5
34125 $as_echo "yes" >&6; }
34126
34127 cat >>confdefs.h <<\_ACEOF
34128 #define HAVE_LARGE_STACKS 1
34129 _ACEOF
34130
34131
34132 else
34133 $as_echo "$as_me: failed program was:" >&5
34134 sed 's/^/| /' conftest.$ac_ext >&5
34135
34136 { $as_echo "$as_me:$LINENO: result: no" >&5
34137 $as_echo "no" >&6; }
34138
34139
34140
34141 fi
34142
34143 rm -Rf build
34144
34145
34146
34147
34148
34149 { $as_echo "$as_me:$LINENO: checking whether kernel was built with CONFIG_DEBUG_LOCK_ALLOC" >&5
34150 $as_echo_n "checking whether kernel was built with CONFIG_DEBUG_LOCK_ALLOC... " >&6; }
34151
34152
34153 cat confdefs.h - <<_ACEOF >conftest.c
34154 /* confdefs.h. */
34155 _ACEOF
34156 cat confdefs.h >>conftest.$ac_ext
34157 cat >>conftest.$ac_ext <<_ACEOF
34158 /* end confdefs.h. */
34159
34160
34161 #include <linux/module.h>
34162
34163 int
34164 main (void)
34165 {
34166
34167 #ifndef CONFIG_DEBUG_LOCK_ALLOC
34168 #error CONFIG_DEBUG_LOCK_ALLOC not #defined
34169 #endif
34170
34171 ;
34172 return 0;
34173 }
34174
34175 _ACEOF
34176
34177
34178
34179 cat - <<_ACEOF >conftest.h
34180
34181 _ACEOF
34182
34183
34184 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
34185 echo "obj-m := conftest.o" >build/Makefile
34186 modpost_flag=''
34187 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
34188 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
34189 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34190 (eval $ac_try) 2>&5
34191 ac_status=$?
34192 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34193 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
34194 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34195 (eval $ac_try) 2>&5
34196 ac_status=$?
34197 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34198 (exit $ac_status); }; }; then
34199
34200 { $as_echo "$as_me:$LINENO: result: yes" >&5
34201 $as_echo "yes" >&6; }
34202
34203 { $as_echo "$as_me:$LINENO: checking whether mutex_lock() is GPL-only" >&5
34204 $as_echo_n "checking whether mutex_lock() is GPL-only... " >&6; }
34205 tmp_flags="$EXTRA_KCFLAGS"
34206
34207
34208 cat confdefs.h - <<_ACEOF >conftest.c
34209 /* confdefs.h. */
34210 _ACEOF
34211 cat confdefs.h >>conftest.$ac_ext
34212 cat >>conftest.$ac_ext <<_ACEOF
34213 /* end confdefs.h. */
34214
34215
34216 #include <linux/module.h>
34217 #include <linux/mutex.h>
34218
34219 MODULE_LICENSE("$ZFS_META_LICENSE");
34220
34221 int
34222 main (void)
34223 {
34224
34225 struct mutex lock;
34226
34227 mutex_init(&lock);
34228 mutex_lock(&lock);
34229 mutex_unlock(&lock);
34230
34231 ;
34232 return 0;
34233 }
34234
34235 _ACEOF
34236
34237
34238
34239 cat - <<_ACEOF >conftest.h
34240
34241 _ACEOF
34242
34243
34244 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
34245 echo "obj-m := conftest.o" >build/Makefile
34246 modpost_flag=''
34247 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
34248 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
34249 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34250 (eval $ac_try) 2>&5
34251 ac_status=$?
34252 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34253 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
34254 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34255 (eval $ac_try) 2>&5
34256 ac_status=$?
34257 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34258 (exit $ac_status); }; }; then
34259
34260 { $as_echo "$as_me:$LINENO: result: no" >&5
34261 $as_echo "no" >&6; }
34262
34263 else
34264 $as_echo "$as_me: failed program was:" >&5
34265 sed 's/^/| /' conftest.$ac_ext >&5
34266
34267 { $as_echo "$as_me:$LINENO: result: yes" >&5
34268 $as_echo "yes" >&6; }
34269 { { $as_echo "$as_me:$LINENO: error:
34270 *** Kernel built with CONFIG_DEBUG_LOCK_ALLOC which is incompatible
34271 *** with the CDDL license and will prevent the module linking stage
34272 *** from succeeding. You must rebuild your kernel without this
34273 *** option enabled." >&5
34274 $as_echo "$as_me: error:
34275 *** Kernel built with CONFIG_DEBUG_LOCK_ALLOC which is incompatible
34276 *** with the CDDL license and will prevent the module linking stage
34277 *** from succeeding. You must rebuild your kernel without this
34278 *** option enabled." >&2;}
34279 { (exit 1); exit 1; }; }
34280
34281
34282
34283 fi
34284
34285 rm -Rf build
34286
34287
34288 EXTRA_KCFLAGS="$tmp_flags"
34289
34290
34291 else
34292 $as_echo "$as_me: failed program was:" >&5
34293 sed 's/^/| /' conftest.$ac_ext >&5
34294
34295 { $as_echo "$as_me:$LINENO: result: no" >&5
34296 $as_echo "no" >&6; }
34297
34298
34299
34300
34301 fi
34302
34303 rm -Rf build
34304
34305
34306
34307
34308
34309
34310 tmp_flags="$EXTRA_KCFLAGS"
34311 EXTRA_KCFLAGS="-I\$(src)"
34312
34313 { $as_echo "$as_me:$LINENO: checking whether DECLARE_EVENT_CLASS() is available" >&5
34314 $as_echo_n "checking whether DECLARE_EVENT_CLASS() is available... " >&6; }
34315
34316
34317 cat confdefs.h - <<_ACEOF >conftest.c
34318 /* confdefs.h. */
34319 _ACEOF
34320 cat confdefs.h >>conftest.$ac_ext
34321 cat >>conftest.$ac_ext <<_ACEOF
34322 /* end confdefs.h. */
34323
34324
34325 #include <linux/module.h>
34326 MODULE_LICENSE(ZFS_META_LICENSE);
34327
34328 #define CREATE_TRACE_POINTS
34329 #include "conftest.h"
34330
34331 int
34332 main (void)
34333 {
34334
34335 trace_zfs_autoconf_event_one(1UL);
34336 trace_zfs_autoconf_event_two(2UL);
34337
34338 ;
34339 return 0;
34340 }
34341
34342 _ACEOF
34343
34344
34345
34346 cat - <<_ACEOF >conftest.h
34347
34348 #if !defined(_CONFTEST_H) || defined(TRACE_HEADER_MULTI_READ)
34349 #define _CONFTEST_H
34350
34351 #undef TRACE_SYSTEM
34352 #define TRACE_SYSTEM zfs
34353 #include <linux/tracepoint.h>
34354
34355 DECLARE_EVENT_CLASS(zfs_autoconf_event_class,
34356 TP_PROTO(unsigned long i),
34357 TP_ARGS(i),
34358 TP_STRUCT__entry(
34359 __field(unsigned long, i)
34360 ),
34361 TP_fast_assign(
34362 __entry->i = i;
34363 ),
34364 TP_printk("i = %lu", __entry->i)
34365 );
34366
34367 #define DEFINE_AUTOCONF_EVENT(name) \
34368 DEFINE_EVENT(zfs_autoconf_event_class, name, \
34369 TP_PROTO(unsigned long i), \
34370 TP_ARGS(i))
34371 DEFINE_AUTOCONF_EVENT(zfs_autoconf_event_one);
34372 DEFINE_AUTOCONF_EVENT(zfs_autoconf_event_two);
34373
34374 #endif /* _CONFTEST_H */
34375
34376 #undef TRACE_INCLUDE_PATH
34377 #define TRACE_INCLUDE_PATH .
34378 #define TRACE_INCLUDE_FILE conftest
34379 #include <trace/define_trace.h>
34380
34381 _ACEOF
34382
34383
34384 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
34385 echo "obj-m := conftest.o" >build/Makefile
34386 modpost_flag=''
34387 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
34388 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
34389 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34390 (eval $ac_try) 2>&5
34391 ac_status=$?
34392 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34393 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
34394 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34395 (eval $ac_try) 2>&5
34396 ac_status=$?
34397 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34398 (exit $ac_status); }; }; then
34399
34400 { $as_echo "$as_me:$LINENO: result: yes" >&5
34401 $as_echo "yes" >&6; }
34402
34403 cat >>confdefs.h <<\_ACEOF
34404 #define HAVE_DECLARE_EVENT_CLASS 1
34405 _ACEOF
34406
34407
34408 else
34409 $as_echo "$as_me: failed program was:" >&5
34410 sed 's/^/| /' conftest.$ac_ext >&5
34411
34412 { $as_echo "$as_me:$LINENO: result: no" >&5
34413 $as_echo "no" >&6; }
34414
34415
34416
34417 fi
34418
34419 rm -Rf build
34420
34421
34422 EXTRA_KCFLAGS="$tmp_flags"
34423
34424
34425 { $as_echo "$as_me:$LINENO: checking whether current->bio_tail exists" >&5
34426 $as_echo_n "checking whether current->bio_tail exists... " >&6; }
34427
34428
34429 cat confdefs.h - <<_ACEOF >conftest.c
34430 /* confdefs.h. */
34431 _ACEOF
34432 cat confdefs.h >>conftest.$ac_ext
34433 cat >>conftest.$ac_ext <<_ACEOF
34434 /* end confdefs.h. */
34435
34436
34437 #include <linux/sched.h>
34438
34439 int
34440 main (void)
34441 {
34442
34443 current->bio_tail = (struct bio **) NULL;
34444
34445 ;
34446 return 0;
34447 }
34448
34449 _ACEOF
34450
34451
34452
34453 cat - <<_ACEOF >conftest.h
34454
34455 _ACEOF
34456
34457
34458 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
34459 echo "obj-m := conftest.o" >build/Makefile
34460 modpost_flag=''
34461 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
34462 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
34463 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34464 (eval $ac_try) 2>&5
34465 ac_status=$?
34466 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34467 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
34468 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34469 (eval $ac_try) 2>&5
34470 ac_status=$?
34471 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34472 (exit $ac_status); }; }; then
34473
34474 { $as_echo "$as_me:$LINENO: result: yes" >&5
34475 $as_echo "yes" >&6; }
34476
34477 cat >>confdefs.h <<\_ACEOF
34478 #define HAVE_CURRENT_BIO_TAIL 1
34479 _ACEOF
34480
34481
34482 else
34483 $as_echo "$as_me: failed program was:" >&5
34484 sed 's/^/| /' conftest.$ac_ext >&5
34485
34486 { $as_echo "$as_me:$LINENO: result: no" >&5
34487 $as_echo "no" >&6; }
34488 { $as_echo "$as_me:$LINENO: checking whether current->bio_list exists" >&5
34489 $as_echo_n "checking whether current->bio_list exists... " >&6; }
34490
34491
34492 cat confdefs.h - <<_ACEOF >conftest.c
34493 /* confdefs.h. */
34494 _ACEOF
34495 cat confdefs.h >>conftest.$ac_ext
34496 cat >>conftest.$ac_ext <<_ACEOF
34497 /* end confdefs.h. */
34498
34499
34500 #include <linux/sched.h>
34501
34502 int
34503 main (void)
34504 {
34505
34506 current->bio_list = (struct bio_list *) NULL;
34507
34508 ;
34509 return 0;
34510 }
34511
34512 _ACEOF
34513
34514
34515
34516 cat - <<_ACEOF >conftest.h
34517
34518 _ACEOF
34519
34520
34521 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
34522 echo "obj-m := conftest.o" >build/Makefile
34523 modpost_flag=''
34524 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
34525 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
34526 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34527 (eval $ac_try) 2>&5
34528 ac_status=$?
34529 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34530 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
34531 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34532 (eval $ac_try) 2>&5
34533 ac_status=$?
34534 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34535 (exit $ac_status); }; }; then
34536
34537 { $as_echo "$as_me:$LINENO: result: yes" >&5
34538 $as_echo "yes" >&6; }
34539
34540 cat >>confdefs.h <<\_ACEOF
34541 #define HAVE_CURRENT_BIO_LIST 1
34542 _ACEOF
34543
34544
34545 else
34546 $as_echo "$as_me: failed program was:" >&5
34547 sed 's/^/| /' conftest.$ac_ext >&5
34548
34549 { { $as_echo "$as_me:$LINENO: error: no - Please file a bug report at
34550 https://github.com/zfsonlinux/zfs/issues/new" >&5
34551 $as_echo "$as_me: error: no - Please file a bug report at
34552 https://github.com/zfsonlinux/zfs/issues/new" >&2;}
34553 { (exit 1); exit 1; }; }
34554
34555
34556
34557 fi
34558
34559 rm -Rf build
34560
34561
34562
34563
34564
34565 fi
34566
34567 rm -Rf build
34568
34569
34570
34571
34572 { $as_echo "$as_me:$LINENO: checking whether super_block->s_user_ns exists" >&5
34573 $as_echo_n "checking whether super_block->s_user_ns exists... " >&6; }
34574
34575
34576 cat confdefs.h - <<_ACEOF >conftest.c
34577 /* confdefs.h. */
34578 _ACEOF
34579 cat confdefs.h >>conftest.$ac_ext
34580 cat >>conftest.$ac_ext <<_ACEOF
34581 /* end confdefs.h. */
34582
34583
34584 #include <linux/fs.h>
34585 #include <linux/user_namespace.h>
34586
34587 int
34588 main (void)
34589 {
34590
34591 struct super_block super;
34592 super.s_user_ns = (struct user_namespace *)NULL;
34593
34594 ;
34595 return 0;
34596 }
34597
34598 _ACEOF
34599
34600
34601
34602 cat - <<_ACEOF >conftest.h
34603
34604 _ACEOF
34605
34606
34607 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
34608 echo "obj-m := conftest.o" >build/Makefile
34609 modpost_flag=''
34610 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
34611 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
34612 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34613 (eval $ac_try) 2>&5
34614 ac_status=$?
34615 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34616 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
34617 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34618 (eval $ac_try) 2>&5
34619 ac_status=$?
34620 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34621 (exit $ac_status); }; }; then
34622
34623 { $as_echo "$as_me:$LINENO: result: yes" >&5
34624 $as_echo "yes" >&6; }
34625
34626 cat >>confdefs.h <<\_ACEOF
34627 #define HAVE_SUPER_USER_NS 1
34628 _ACEOF
34629
34630
34631 else
34632 $as_echo "$as_me: failed program was:" >&5
34633 sed 's/^/| /' conftest.$ac_ext >&5
34634
34635 { $as_echo "$as_me:$LINENO: result: no" >&5
34636 $as_echo "no" >&6; }
34637
34638
34639
34640 fi
34641
34642 rm -Rf build
34643
34644
34645
34646
34647 { $as_echo "$as_me:$LINENO: checking whether submit_bio() wants 1 arg" >&5
34648 $as_echo_n "checking whether submit_bio() wants 1 arg... " >&6; }
34649
34650
34651 cat confdefs.h - <<_ACEOF >conftest.c
34652 /* confdefs.h. */
34653 _ACEOF
34654 cat confdefs.h >>conftest.$ac_ext
34655 cat >>conftest.$ac_ext <<_ACEOF
34656 /* end confdefs.h. */
34657
34658
34659 #include <linux/bio.h>
34660
34661 int
34662 main (void)
34663 {
34664
34665 blk_qc_t blk_qc;
34666 struct bio *bio = NULL;
34667 blk_qc = submit_bio(bio);
34668
34669 ;
34670 return 0;
34671 }
34672
34673 _ACEOF
34674
34675
34676
34677 cat - <<_ACEOF >conftest.h
34678
34679 _ACEOF
34680
34681
34682 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
34683 echo "obj-m := conftest.o" >build/Makefile
34684 modpost_flag=''
34685 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
34686 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
34687 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34688 (eval $ac_try) 2>&5
34689 ac_status=$?
34690 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34691 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
34692 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34693 (eval $ac_try) 2>&5
34694 ac_status=$?
34695 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34696 (exit $ac_status); }; }; then
34697
34698 { $as_echo "$as_me:$LINENO: result: yes" >&5
34699 $as_echo "yes" >&6; }
34700
34701 cat >>confdefs.h <<\_ACEOF
34702 #define HAVE_1ARG_SUBMIT_BIO 1
34703 _ACEOF
34704
34705
34706 else
34707 $as_echo "$as_me: failed program was:" >&5
34708 sed 's/^/| /' conftest.$ac_ext >&5
34709
34710 { $as_echo "$as_me:$LINENO: result: no" >&5
34711 $as_echo "no" >&6; }
34712
34713
34714
34715 fi
34716
34717 rm -Rf build
34718
34719
34720
34721
34722 { $as_echo "$as_me:$LINENO: checking block device operation prototypes" >&5
34723 $as_echo_n "checking block device operation prototypes... " >&6; }
34724 tmp_flags="$EXTRA_KCFLAGS"
34725 EXTRA_KCFLAGS="${NO_UNUSED_BUT_SET_VARIABLE}"
34726
34727
34728 cat confdefs.h - <<_ACEOF >conftest.c
34729 /* confdefs.h. */
34730 _ACEOF
34731 cat confdefs.h >>conftest.$ac_ext
34732 cat >>conftest.$ac_ext <<_ACEOF
34733 /* end confdefs.h. */
34734
34735
34736 #include <linux/blkdev.h>
34737
34738 int blk_open(struct block_device *bdev, fmode_t mode)
34739 { return 0; }
34740 int blk_ioctl(struct block_device *bdev, fmode_t mode,
34741 unsigned x, unsigned long y) { return 0; }
34742 int blk_compat_ioctl(struct block_device * bdev, fmode_t mode,
34743 unsigned x, unsigned long y) { return 0; }
34744
34745 static const struct block_device_operations
34746 bops __attribute__ ((unused)) = {
34747 .open = blk_open,
34748 .release = NULL,
34749 .ioctl = blk_ioctl,
34750 .compat_ioctl = blk_compat_ioctl,
34751 };
34752
34753 int
34754 main (void)
34755 {
34756
34757
34758 ;
34759 return 0;
34760 }
34761
34762 _ACEOF
34763
34764
34765
34766 cat - <<_ACEOF >conftest.h
34767
34768 _ACEOF
34769
34770
34771 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
34772 echo "obj-m := conftest.o" >build/Makefile
34773 modpost_flag=''
34774 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
34775 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
34776 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34777 (eval $ac_try) 2>&5
34778 ac_status=$?
34779 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34780 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
34781 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34782 (eval $ac_try) 2>&5
34783 ac_status=$?
34784 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34785 (exit $ac_status); }; }; then
34786
34787 { $as_echo "$as_me:$LINENO: result: struct block_device" >&5
34788 $as_echo "struct block_device" >&6; }
34789
34790 cat >>confdefs.h <<\_ACEOF
34791 #define HAVE_BDEV_BLOCK_DEVICE_OPERATIONS 1
34792 _ACEOF
34793
34794
34795 else
34796 $as_echo "$as_me: failed program was:" >&5
34797 sed 's/^/| /' conftest.$ac_ext >&5
34798
34799 { $as_echo "$as_me:$LINENO: result: struct inode" >&5
34800 $as_echo "struct inode" >&6; }
34801
34802
34803
34804 fi
34805
34806 rm -Rf build
34807
34808
34809 EXTRA_KCFLAGS="$tmp_flags"
34810
34811
34812 { $as_echo "$as_me:$LINENO: checking whether block_device_operations.release is void" >&5
34813 $as_echo_n "checking whether block_device_operations.release is void... " >&6; }
34814 tmp_flags="$EXTRA_KCFLAGS"
34815 EXTRA_KCFLAGS="${NO_UNUSED_BUT_SET_VARIABLE}"
34816
34817
34818 cat confdefs.h - <<_ACEOF >conftest.c
34819 /* confdefs.h. */
34820 _ACEOF
34821 cat confdefs.h >>conftest.$ac_ext
34822 cat >>conftest.$ac_ext <<_ACEOF
34823 /* end confdefs.h. */
34824
34825
34826 #include <linux/blkdev.h>
34827
34828 void blk_release(struct gendisk *g, fmode_t mode) { return; }
34829
34830 static const struct block_device_operations
34831 bops __attribute__ ((unused)) = {
34832 .open = NULL,
34833 .release = blk_release,
34834 .ioctl = NULL,
34835 .compat_ioctl = NULL,
34836 };
34837
34838 int
34839 main (void)
34840 {
34841
34842
34843 ;
34844 return 0;
34845 }
34846
34847 _ACEOF
34848
34849
34850
34851 cat - <<_ACEOF >conftest.h
34852
34853 _ACEOF
34854
34855
34856 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
34857 echo "obj-m := conftest.o" >build/Makefile
34858 modpost_flag=''
34859 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
34860 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
34861 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34862 (eval $ac_try) 2>&5
34863 ac_status=$?
34864 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34865 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
34866 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34867 (eval $ac_try) 2>&5
34868 ac_status=$?
34869 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34870 (exit $ac_status); }; }; then
34871
34872 { $as_echo "$as_me:$LINENO: result: void" >&5
34873 $as_echo "void" >&6; }
34874
34875 cat >>confdefs.h <<\_ACEOF
34876 #define HAVE_BLOCK_DEVICE_OPERATIONS_RELEASE_VOID 1
34877 _ACEOF
34878
34879
34880 else
34881 $as_echo "$as_me: failed program was:" >&5
34882 sed 's/^/| /' conftest.$ac_ext >&5
34883
34884 { $as_echo "$as_me:$LINENO: result: int" >&5
34885 $as_echo "int" >&6; }
34886
34887
34888
34889 fi
34890
34891 rm -Rf build
34892
34893
34894 EXTRA_KCFLAGS="$tmp_flags"
34895
34896 { $as_echo "$as_me:$LINENO: checking whether kernel defines fmode_t" >&5
34897 $as_echo_n "checking whether kernel defines fmode_t... " >&6; }
34898
34899
34900 cat confdefs.h - <<_ACEOF >conftest.c
34901 /* confdefs.h. */
34902 _ACEOF
34903 cat confdefs.h >>conftest.$ac_ext
34904 cat >>conftest.$ac_ext <<_ACEOF
34905 /* end confdefs.h. */
34906
34907
34908 #include <linux/types.h>
34909
34910 int
34911 main (void)
34912 {
34913
34914 fmode_t *ptr __attribute__ ((unused));
34915
34916 ;
34917 return 0;
34918 }
34919
34920 _ACEOF
34921
34922
34923
34924 cat - <<_ACEOF >conftest.h
34925
34926 _ACEOF
34927
34928
34929 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
34930 echo "obj-m := conftest.o" >build/Makefile
34931 modpost_flag=''
34932 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
34933 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
34934 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34935 (eval $ac_try) 2>&5
34936 ac_status=$?
34937 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34938 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
34939 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34940 (eval $ac_try) 2>&5
34941 ac_status=$?
34942 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34943 (exit $ac_status); }; }; then
34944
34945 { $as_echo "$as_me:$LINENO: result: yes" >&5
34946 $as_echo "yes" >&6; }
34947
34948 cat >>confdefs.h <<\_ACEOF
34949 #define HAVE_FMODE_T 1
34950 _ACEOF
34951
34952
34953 else
34954 $as_echo "$as_me: failed program was:" >&5
34955 sed 's/^/| /' conftest.$ac_ext >&5
34956
34957 { $as_echo "$as_me:$LINENO: result: no" >&5
34958 $as_echo "no" >&6; }
34959
34960
34961
34962 fi
34963
34964 rm -Rf build
34965
34966
34967
34968
34969 { $as_echo "$as_me:$LINENO: checking whether blkdev_get() wants 3 args" >&5
34970 $as_echo_n "checking whether blkdev_get() wants 3 args... " >&6; }
34971
34972
34973 cat confdefs.h - <<_ACEOF >conftest.c
34974 /* confdefs.h. */
34975 _ACEOF
34976 cat confdefs.h >>conftest.$ac_ext
34977 cat >>conftest.$ac_ext <<_ACEOF
34978 /* end confdefs.h. */
34979
34980
34981 #include <linux/fs.h>
34982
34983 int
34984 main (void)
34985 {
34986
34987 struct block_device *bdev = NULL;
34988 (void) blkdev_get(bdev, 0, NULL);
34989
34990 ;
34991 return 0;
34992 }
34993
34994 _ACEOF
34995
34996
34997
34998 cat - <<_ACEOF >conftest.h
34999
35000 _ACEOF
35001
35002
35003 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
35004 echo "obj-m := conftest.o" >build/Makefile
35005 modpost_flag=''
35006 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
35007 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
35008 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35009 (eval $ac_try) 2>&5
35010 ac_status=$?
35011 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35012 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
35013 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35014 (eval $ac_try) 2>&5
35015 ac_status=$?
35016 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35017 (exit $ac_status); }; }; then
35018
35019 { $as_echo "$as_me:$LINENO: result: yes" >&5
35020 $as_echo "yes" >&6; }
35021
35022 cat >>confdefs.h <<\_ACEOF
35023 #define HAVE_3ARG_BLKDEV_GET 1
35024 _ACEOF
35025
35026
35027 else
35028 $as_echo "$as_me: failed program was:" >&5
35029 sed 's/^/| /' conftest.$ac_ext >&5
35030
35031 { $as_echo "$as_me:$LINENO: result: no" >&5
35032 $as_echo "no" >&6; }
35033
35034
35035
35036 fi
35037
35038 rm -Rf build
35039
35040
35041
35042 { $as_echo "$as_me:$LINENO: checking whether blkdev_get_by_path() is available" >&5
35043 $as_echo_n "checking whether blkdev_get_by_path() is available... " >&6; }
35044
35045
35046
35047 cat confdefs.h - <<_ACEOF >conftest.c
35048 /* confdefs.h. */
35049 _ACEOF
35050 cat confdefs.h >>conftest.$ac_ext
35051 cat >>conftest.$ac_ext <<_ACEOF
35052 /* end confdefs.h. */
35053
35054
35055 #include <linux/fs.h>
35056
35057 int
35058 main (void)
35059 {
35060
35061 blkdev_get_by_path(NULL, 0, NULL);
35062
35063 ;
35064 return 0;
35065 }
35066
35067 _ACEOF
35068
35069
35070
35071 cat - <<_ACEOF >conftest.h
35072
35073 _ACEOF
35074
35075
35076 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
35077 echo "obj-m := conftest.o" >build/Makefile
35078 modpost_flag=''
35079 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
35080 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
35081 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35082 (eval $ac_try) 2>&5
35083 ac_status=$?
35084 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35085 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
35086 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35087 (eval $ac_try) 2>&5
35088 ac_status=$?
35089 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35090 (exit $ac_status); }; }; then
35091 rc=0
35092 else
35093 $as_echo "$as_me: failed program was:" >&5
35094 sed 's/^/| /' conftest.$ac_ext >&5
35095 rc=1
35096
35097
35098 fi
35099
35100 rm -Rf build
35101
35102
35103 if test $rc -ne 0; then :
35104
35105 { $as_echo "$as_me:$LINENO: result: no" >&5
35106 $as_echo "no" >&6; }
35107
35108 else
35109 if test "x$enable_linux_builtin" != xyes; then
35110
35111 grep -q -E '[[:space:]]blkdev_get_by_path[[:space:]]' \
35112 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
35113 rc=$?
35114 if test $rc -ne 0; then
35115 export=0
35116 for file in fs/block_dev.c; do
35117 grep -q -E "EXPORT_SYMBOL.*(blkdev_get_by_path)" \
35118 "$LINUX/$file" 2>/dev/null
35119 rc=$?
35120 if test $rc -eq 0; then
35121 export=1
35122 break;
35123 fi
35124 done
35125 if test $export -eq 0; then :
35126 rc=1
35127 else :
35128 rc=0
35129 fi
35130 else :
35131 rc=0
35132 fi
35133
35134 fi
35135 if test $rc -ne 0; then :
35136
35137 { $as_echo "$as_me:$LINENO: result: no" >&5
35138 $as_echo "no" >&6; }
35139
35140 else :
35141
35142 { $as_echo "$as_me:$LINENO: result: yes" >&5
35143 $as_echo "yes" >&6; }
35144
35145 cat >>confdefs.h <<\_ACEOF
35146 #define HAVE_BLKDEV_GET_BY_PATH 1
35147 _ACEOF
35148
35149
35150 fi
35151 fi
35152
35153
35154 { $as_echo "$as_me:$LINENO: checking whether open_bdev_exclusive() is available" >&5
35155 $as_echo_n "checking whether open_bdev_exclusive() is available... " >&6; }
35156
35157
35158
35159 cat confdefs.h - <<_ACEOF >conftest.c
35160 /* confdefs.h. */
35161 _ACEOF
35162 cat confdefs.h >>conftest.$ac_ext
35163 cat >>conftest.$ac_ext <<_ACEOF
35164 /* end confdefs.h. */
35165
35166
35167 #include <linux/fs.h>
35168
35169 int
35170 main (void)
35171 {
35172
35173 open_bdev_exclusive(NULL, 0, NULL);
35174
35175 ;
35176 return 0;
35177 }
35178
35179 _ACEOF
35180
35181
35182
35183 cat - <<_ACEOF >conftest.h
35184
35185 _ACEOF
35186
35187
35188 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
35189 echo "obj-m := conftest.o" >build/Makefile
35190 modpost_flag=''
35191 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
35192 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
35193 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35194 (eval $ac_try) 2>&5
35195 ac_status=$?
35196 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35197 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
35198 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35199 (eval $ac_try) 2>&5
35200 ac_status=$?
35201 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35202 (exit $ac_status); }; }; then
35203 rc=0
35204 else
35205 $as_echo "$as_me: failed program was:" >&5
35206 sed 's/^/| /' conftest.$ac_ext >&5
35207 rc=1
35208
35209
35210 fi
35211
35212 rm -Rf build
35213
35214
35215 if test $rc -ne 0; then :
35216
35217 { $as_echo "$as_me:$LINENO: result: no" >&5
35218 $as_echo "no" >&6; }
35219
35220 else
35221 if test "x$enable_linux_builtin" != xyes; then
35222
35223 grep -q -E '[[:space:]]open_bdev_exclusive[[:space:]]' \
35224 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
35225 rc=$?
35226 if test $rc -ne 0; then
35227 export=0
35228 for file in fs/block_dev.c; do
35229 grep -q -E "EXPORT_SYMBOL.*(open_bdev_exclusive)" \
35230 "$LINUX/$file" 2>/dev/null
35231 rc=$?
35232 if test $rc -eq 0; then
35233 export=1
35234 break;
35235 fi
35236 done
35237 if test $export -eq 0; then :
35238 rc=1
35239 else :
35240 rc=0
35241 fi
35242 else :
35243 rc=0
35244 fi
35245
35246 fi
35247 if test $rc -ne 0; then :
35248
35249 { $as_echo "$as_me:$LINENO: result: no" >&5
35250 $as_echo "no" >&6; }
35251
35252 else :
35253
35254 { $as_echo "$as_me:$LINENO: result: yes" >&5
35255 $as_echo "yes" >&6; }
35256
35257 cat >>confdefs.h <<\_ACEOF
35258 #define HAVE_OPEN_BDEV_EXCLUSIVE 1
35259 _ACEOF
35260
35261
35262 fi
35263 fi
35264
35265
35266 { $as_echo "$as_me:$LINENO: checking whether lookup_bdev() wants 1 arg" >&5
35267 $as_echo_n "checking whether lookup_bdev() wants 1 arg... " >&6; }
35268
35269
35270
35271 cat confdefs.h - <<_ACEOF >conftest.c
35272 /* confdefs.h. */
35273 _ACEOF
35274 cat confdefs.h >>conftest.$ac_ext
35275 cat >>conftest.$ac_ext <<_ACEOF
35276 /* end confdefs.h. */
35277
35278
35279 #include <linux/fs.h>
35280
35281 int
35282 main (void)
35283 {
35284
35285 lookup_bdev(NULL);
35286
35287 ;
35288 return 0;
35289 }
35290
35291 _ACEOF
35292
35293
35294
35295 cat - <<_ACEOF >conftest.h
35296
35297 _ACEOF
35298
35299
35300 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
35301 echo "obj-m := conftest.o" >build/Makefile
35302 modpost_flag=''
35303 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
35304 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
35305 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35306 (eval $ac_try) 2>&5
35307 ac_status=$?
35308 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35309 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
35310 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35311 (eval $ac_try) 2>&5
35312 ac_status=$?
35313 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35314 (exit $ac_status); }; }; then
35315 rc=0
35316 else
35317 $as_echo "$as_me: failed program was:" >&5
35318 sed 's/^/| /' conftest.$ac_ext >&5
35319 rc=1
35320
35321
35322 fi
35323
35324 rm -Rf build
35325
35326
35327 if test $rc -ne 0; then :
35328
35329 { $as_echo "$as_me:$LINENO: result: no" >&5
35330 $as_echo "no" >&6; }
35331 { $as_echo "$as_me:$LINENO: checking whether lookup_bdev() wants 2 args" >&5
35332 $as_echo_n "checking whether lookup_bdev() wants 2 args... " >&6; }
35333
35334
35335
35336 cat confdefs.h - <<_ACEOF >conftest.c
35337 /* confdefs.h. */
35338 _ACEOF
35339 cat confdefs.h >>conftest.$ac_ext
35340 cat >>conftest.$ac_ext <<_ACEOF
35341 /* end confdefs.h. */
35342
35343
35344 #include <linux/fs.h>
35345
35346 int
35347 main (void)
35348 {
35349
35350 lookup_bdev(NULL, FMODE_READ);
35351
35352 ;
35353 return 0;
35354 }
35355
35356 _ACEOF
35357
35358
35359
35360 cat - <<_ACEOF >conftest.h
35361
35362 _ACEOF
35363
35364
35365 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
35366 echo "obj-m := conftest.o" >build/Makefile
35367 modpost_flag=''
35368 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
35369 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
35370 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35371 (eval $ac_try) 2>&5
35372 ac_status=$?
35373 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35374 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
35375 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35376 (eval $ac_try) 2>&5
35377 ac_status=$?
35378 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35379 (exit $ac_status); }; }; then
35380 rc=0
35381 else
35382 $as_echo "$as_me: failed program was:" >&5
35383 sed 's/^/| /' conftest.$ac_ext >&5
35384 rc=1
35385
35386
35387 fi
35388
35389 rm -Rf build
35390
35391
35392 if test $rc -ne 0; then :
35393
35394 { $as_echo "$as_me:$LINENO: result: no" >&5
35395 $as_echo "no" >&6; }
35396
35397 else
35398 if test "x$enable_linux_builtin" != xyes; then
35399
35400 grep -q -E '[[:space:]]lookup_bdev[[:space:]]' \
35401 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
35402 rc=$?
35403 if test $rc -ne 0; then
35404 export=0
35405 for file in fs/block_dev.c; do
35406 grep -q -E "EXPORT_SYMBOL.*(lookup_bdev)" \
35407 "$LINUX/$file" 2>/dev/null
35408 rc=$?
35409 if test $rc -eq 0; then
35410 export=1
35411 break;
35412 fi
35413 done
35414 if test $export -eq 0; then :
35415 rc=1
35416 else :
35417 rc=0
35418 fi
35419 else :
35420 rc=0
35421 fi
35422
35423 fi
35424 if test $rc -ne 0; then :
35425
35426 { $as_echo "$as_me:$LINENO: result: no" >&5
35427 $as_echo "no" >&6; }
35428
35429 else :
35430
35431 { $as_echo "$as_me:$LINENO: result: yes" >&5
35432 $as_echo "yes" >&6; }
35433
35434 cat >>confdefs.h <<\_ACEOF
35435 #define HAVE_2ARGS_LOOKUP_BDEV 1
35436 _ACEOF
35437
35438
35439 fi
35440 fi
35441
35442
35443 else
35444 if test "x$enable_linux_builtin" != xyes; then
35445
35446 grep -q -E '[[:space:]]lookup_bdev[[:space:]]' \
35447 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
35448 rc=$?
35449 if test $rc -ne 0; then
35450 export=0
35451 for file in fs/block_dev.c; do
35452 grep -q -E "EXPORT_SYMBOL.*(lookup_bdev)" \
35453 "$LINUX/$file" 2>/dev/null
35454 rc=$?
35455 if test $rc -eq 0; then
35456 export=1
35457 break;
35458 fi
35459 done
35460 if test $export -eq 0; then :
35461 rc=1
35462 else :
35463 rc=0
35464 fi
35465 else :
35466 rc=0
35467 fi
35468
35469 fi
35470 if test $rc -ne 0; then :
35471
35472 { $as_echo "$as_me:$LINENO: result: no" >&5
35473 $as_echo "no" >&6; }
35474 { $as_echo "$as_me:$LINENO: checking whether lookup_bdev() wants 2 args" >&5
35475 $as_echo_n "checking whether lookup_bdev() wants 2 args... " >&6; }
35476
35477
35478
35479 cat confdefs.h - <<_ACEOF >conftest.c
35480 /* confdefs.h. */
35481 _ACEOF
35482 cat confdefs.h >>conftest.$ac_ext
35483 cat >>conftest.$ac_ext <<_ACEOF
35484 /* end confdefs.h. */
35485
35486
35487 #include <linux/fs.h>
35488
35489 int
35490 main (void)
35491 {
35492
35493 lookup_bdev(NULL, FMODE_READ);
35494
35495 ;
35496 return 0;
35497 }
35498
35499 _ACEOF
35500
35501
35502
35503 cat - <<_ACEOF >conftest.h
35504
35505 _ACEOF
35506
35507
35508 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
35509 echo "obj-m := conftest.o" >build/Makefile
35510 modpost_flag=''
35511 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
35512 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
35513 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35514 (eval $ac_try) 2>&5
35515 ac_status=$?
35516 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35517 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
35518 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35519 (eval $ac_try) 2>&5
35520 ac_status=$?
35521 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35522 (exit $ac_status); }; }; then
35523 rc=0
35524 else
35525 $as_echo "$as_me: failed program was:" >&5
35526 sed 's/^/| /' conftest.$ac_ext >&5
35527 rc=1
35528
35529
35530 fi
35531
35532 rm -Rf build
35533
35534
35535 if test $rc -ne 0; then :
35536
35537 { $as_echo "$as_me:$LINENO: result: no" >&5
35538 $as_echo "no" >&6; }
35539
35540 else
35541 if test "x$enable_linux_builtin" != xyes; then
35542
35543 grep -q -E '[[:space:]]lookup_bdev[[:space:]]' \
35544 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
35545 rc=$?
35546 if test $rc -ne 0; then
35547 export=0
35548 for file in fs/block_dev.c; do
35549 grep -q -E "EXPORT_SYMBOL.*(lookup_bdev)" \
35550 "$LINUX/$file" 2>/dev/null
35551 rc=$?
35552 if test $rc -eq 0; then
35553 export=1
35554 break;
35555 fi
35556 done
35557 if test $export -eq 0; then :
35558 rc=1
35559 else :
35560 rc=0
35561 fi
35562 else :
35563 rc=0
35564 fi
35565
35566 fi
35567 if test $rc -ne 0; then :
35568
35569 { $as_echo "$as_me:$LINENO: result: no" >&5
35570 $as_echo "no" >&6; }
35571
35572 else :
35573
35574 { $as_echo "$as_me:$LINENO: result: yes" >&5
35575 $as_echo "yes" >&6; }
35576
35577 cat >>confdefs.h <<\_ACEOF
35578 #define HAVE_2ARGS_LOOKUP_BDEV 1
35579 _ACEOF
35580
35581
35582 fi
35583 fi
35584
35585
35586 else :
35587
35588 { $as_echo "$as_me:$LINENO: result: yes" >&5
35589 $as_echo "yes" >&6; }
35590
35591 cat >>confdefs.h <<\_ACEOF
35592 #define HAVE_1ARG_LOOKUP_BDEV 1
35593 _ACEOF
35594
35595
35596 fi
35597 fi
35598
35599
35600
35601 { $as_echo "$as_me:$LINENO: checking whether invalidate_bdev() wants 1 arg" >&5
35602 $as_echo_n "checking whether invalidate_bdev() wants 1 arg... " >&6; }
35603
35604
35605 cat confdefs.h - <<_ACEOF >conftest.c
35606 /* confdefs.h. */
35607 _ACEOF
35608 cat confdefs.h >>conftest.$ac_ext
35609 cat >>conftest.$ac_ext <<_ACEOF
35610 /* end confdefs.h. */
35611
35612
35613 #include <linux/buffer_head.h>
35614
35615 int
35616 main (void)
35617 {
35618
35619 struct block_device *bdev = NULL;
35620 invalidate_bdev(bdev);
35621
35622 ;
35623 return 0;
35624 }
35625
35626 _ACEOF
35627
35628
35629
35630 cat - <<_ACEOF >conftest.h
35631
35632 _ACEOF
35633
35634
35635 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
35636 echo "obj-m := conftest.o" >build/Makefile
35637 modpost_flag=''
35638 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
35639 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
35640 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35641 (eval $ac_try) 2>&5
35642 ac_status=$?
35643 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35644 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
35645 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35646 (eval $ac_try) 2>&5
35647 ac_status=$?
35648 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35649 (exit $ac_status); }; }; then
35650
35651 { $as_echo "$as_me:$LINENO: result: yes" >&5
35652 $as_echo "yes" >&6; }
35653
35654 cat >>confdefs.h <<\_ACEOF
35655 #define HAVE_1ARG_INVALIDATE_BDEV 1
35656 _ACEOF
35657
35658
35659 else
35660 $as_echo "$as_me: failed program was:" >&5
35661 sed 's/^/| /' conftest.$ac_ext >&5
35662
35663 { $as_echo "$as_me:$LINENO: result: no" >&5
35664 $as_echo "no" >&6; }
35665
35666
35667
35668 fi
35669
35670 rm -Rf build
35671
35672
35673
35674
35675 { $as_echo "$as_me:$LINENO: checking whether bdev_logical_block_size() is available" >&5
35676 $as_echo_n "checking whether bdev_logical_block_size() is available... " >&6; }
35677 tmp_flags="$EXTRA_KCFLAGS"
35678 EXTRA_KCFLAGS="${NO_UNUSED_BUT_SET_VARIABLE}"
35679
35680
35681 cat confdefs.h - <<_ACEOF >conftest.c
35682 /* confdefs.h. */
35683 _ACEOF
35684 cat confdefs.h >>conftest.$ac_ext
35685 cat >>conftest.$ac_ext <<_ACEOF
35686 /* end confdefs.h. */
35687
35688
35689 #include <linux/blkdev.h>
35690
35691 int
35692 main (void)
35693 {
35694
35695 struct block_device *bdev = NULL;
35696 bdev_logical_block_size(bdev);
35697
35698 ;
35699 return 0;
35700 }
35701
35702 _ACEOF
35703
35704
35705
35706 cat - <<_ACEOF >conftest.h
35707
35708 _ACEOF
35709
35710
35711 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
35712 echo "obj-m := conftest.o" >build/Makefile
35713 modpost_flag=''
35714 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
35715 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
35716 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35717 (eval $ac_try) 2>&5
35718 ac_status=$?
35719 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35720 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
35721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35722 (eval $ac_try) 2>&5
35723 ac_status=$?
35724 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35725 (exit $ac_status); }; }; then
35726
35727 { $as_echo "$as_me:$LINENO: result: yes" >&5
35728 $as_echo "yes" >&6; }
35729
35730 cat >>confdefs.h <<\_ACEOF
35731 #define HAVE_BDEV_LOGICAL_BLOCK_SIZE 1
35732 _ACEOF
35733
35734
35735 else
35736 $as_echo "$as_me: failed program was:" >&5
35737 sed 's/^/| /' conftest.$ac_ext >&5
35738
35739 { $as_echo "$as_me:$LINENO: result: no" >&5
35740 $as_echo "no" >&6; }
35741
35742
35743
35744 fi
35745
35746 rm -Rf build
35747
35748
35749 EXTRA_KCFLAGS="$tmp_flags"
35750
35751
35752 { $as_echo "$as_me:$LINENO: checking whether bdev_physical_block_size() is available" >&5
35753 $as_echo_n "checking whether bdev_physical_block_size() is available... " >&6; }
35754 tmp_flags="$EXTRA_KCFLAGS"
35755 EXTRA_KCFLAGS="${NO_UNUSED_BUT_SET_VARIABLE}"
35756
35757
35758 cat confdefs.h - <<_ACEOF >conftest.c
35759 /* confdefs.h. */
35760 _ACEOF
35761 cat confdefs.h >>conftest.$ac_ext
35762 cat >>conftest.$ac_ext <<_ACEOF
35763 /* end confdefs.h. */
35764
35765
35766 #include <linux/blkdev.h>
35767
35768 int
35769 main (void)
35770 {
35771
35772 struct block_device *bdev = NULL;
35773 bdev_physical_block_size(bdev);
35774
35775 ;
35776 return 0;
35777 }
35778
35779 _ACEOF
35780
35781
35782
35783 cat - <<_ACEOF >conftest.h
35784
35785 _ACEOF
35786
35787
35788 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
35789 echo "obj-m := conftest.o" >build/Makefile
35790 modpost_flag=''
35791 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
35792 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
35793 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35794 (eval $ac_try) 2>&5
35795 ac_status=$?
35796 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35797 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
35798 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35799 (eval $ac_try) 2>&5
35800 ac_status=$?
35801 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35802 (exit $ac_status); }; }; then
35803
35804 { $as_echo "$as_me:$LINENO: result: yes" >&5
35805 $as_echo "yes" >&6; }
35806
35807 cat >>confdefs.h <<\_ACEOF
35808 #define HAVE_BDEV_PHYSICAL_BLOCK_SIZE 1
35809 _ACEOF
35810
35811
35812 else
35813 $as_echo "$as_me: failed program was:" >&5
35814 sed 's/^/| /' conftest.$ac_ext >&5
35815
35816 { $as_echo "$as_me:$LINENO: result: no" >&5
35817 $as_echo "no" >&6; }
35818
35819
35820
35821 fi
35822
35823 rm -Rf build
35824
35825
35826 EXTRA_KCFLAGS="$tmp_flags"
35827
35828
35829 { $as_echo "$as_me:$LINENO: checking whether bio has bi_iter" >&5
35830 $as_echo_n "checking whether bio has bi_iter... " >&6; }
35831
35832
35833 cat confdefs.h - <<_ACEOF >conftest.c
35834 /* confdefs.h. */
35835 _ACEOF
35836 cat confdefs.h >>conftest.$ac_ext
35837 cat >>conftest.$ac_ext <<_ACEOF
35838 /* end confdefs.h. */
35839
35840
35841 #include <linux/bio.h>
35842
35843 int
35844 main (void)
35845 {
35846
35847 struct bio bio;
35848 bio.bi_iter.bi_sector = 0;
35849
35850 ;
35851 return 0;
35852 }
35853
35854 _ACEOF
35855
35856
35857
35858 cat - <<_ACEOF >conftest.h
35859
35860 _ACEOF
35861
35862
35863 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
35864 echo "obj-m := conftest.o" >build/Makefile
35865 modpost_flag=''
35866 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
35867 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
35868 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35869 (eval $ac_try) 2>&5
35870 ac_status=$?
35871 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35872 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
35873 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35874 (eval $ac_try) 2>&5
35875 ac_status=$?
35876 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35877 (exit $ac_status); }; }; then
35878
35879 { $as_echo "$as_me:$LINENO: result: yes" >&5
35880 $as_echo "yes" >&6; }
35881
35882 cat >>confdefs.h <<\_ACEOF
35883 #define HAVE_BIO_BVEC_ITER 1
35884 _ACEOF
35885
35886
35887 else
35888 $as_echo "$as_me: failed program was:" >&5
35889 sed 's/^/| /' conftest.$ac_ext >&5
35890
35891 { $as_echo "$as_me:$LINENO: result: no" >&5
35892 $as_echo "no" >&6; }
35893
35894
35895
35896 fi
35897
35898 rm -Rf build
35899
35900
35901
35902
35903 { $as_echo "$as_me:$LINENO: checking whether BIO_RW_FAILFAST_* are defined" >&5
35904 $as_echo_n "checking whether BIO_RW_FAILFAST_* are defined... " >&6; }
35905
35906
35907 cat confdefs.h - <<_ACEOF >conftest.c
35908 /* confdefs.h. */
35909 _ACEOF
35910 cat confdefs.h >>conftest.$ac_ext
35911 cat >>conftest.$ac_ext <<_ACEOF
35912 /* end confdefs.h. */
35913
35914
35915 #include <linux/bio.h>
35916
35917 int
35918 main (void)
35919 {
35920
35921 int flags __attribute__ ((unused));
35922 flags = ((1 << BIO_RW_FAILFAST_DEV) |
35923 (1 << BIO_RW_FAILFAST_TRANSPORT) |
35924 (1 << BIO_RW_FAILFAST_DRIVER));
35925
35926 ;
35927 return 0;
35928 }
35929
35930 _ACEOF
35931
35932
35933
35934 cat - <<_ACEOF >conftest.h
35935
35936 _ACEOF
35937
35938
35939 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
35940 echo "obj-m := conftest.o" >build/Makefile
35941 modpost_flag=''
35942 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
35943 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
35944 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35945 (eval $ac_try) 2>&5
35946 ac_status=$?
35947 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35948 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
35949 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35950 (eval $ac_try) 2>&5
35951 ac_status=$?
35952 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35953 (exit $ac_status); }; }; then
35954
35955 { $as_echo "$as_me:$LINENO: result: yes" >&5
35956 $as_echo "yes" >&6; }
35957
35958 cat >>confdefs.h <<\_ACEOF
35959 #define HAVE_BIO_RW_FAILFAST_DTD 1
35960 _ACEOF
35961
35962
35963 else
35964 $as_echo "$as_me: failed program was:" >&5
35965 sed 's/^/| /' conftest.$ac_ext >&5
35966
35967 { $as_echo "$as_me:$LINENO: result: no" >&5
35968 $as_echo "no" >&6; }
35969
35970
35971
35972 fi
35973
35974 rm -Rf build
35975
35976
35977
35978
35979 { $as_echo "$as_me:$LINENO: checking whether bio_set_dev() exists" >&5
35980 $as_echo_n "checking whether bio_set_dev() exists... " >&6; }
35981
35982
35983 cat confdefs.h - <<_ACEOF >conftest.c
35984 /* confdefs.h. */
35985 _ACEOF
35986 cat confdefs.h >>conftest.$ac_ext
35987 cat >>conftest.$ac_ext <<_ACEOF
35988 /* end confdefs.h. */
35989
35990
35991 #include <linux/bio.h>
35992 #include <linux/fs.h>
35993
35994 int
35995 main (void)
35996 {
35997
35998 struct block_device *bdev = NULL;
35999 struct bio *bio = NULL;
36000 bio_set_dev(bio, bdev);
36001
36002 ;
36003 return 0;
36004 }
36005
36006 _ACEOF
36007
36008
36009
36010 cat - <<_ACEOF >conftest.h
36011
36012 _ACEOF
36013
36014
36015 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
36016 echo "obj-m := conftest.o" >build/Makefile
36017 modpost_flag=''
36018 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
36019 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
36020 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36021 (eval $ac_try) 2>&5
36022 ac_status=$?
36023 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36024 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
36025 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36026 (eval $ac_try) 2>&5
36027 ac_status=$?
36028 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36029 (exit $ac_status); }; }; then
36030
36031 { $as_echo "$as_me:$LINENO: result: yes" >&5
36032 $as_echo "yes" >&6; }
36033
36034 cat >>confdefs.h <<\_ACEOF
36035 #define HAVE_BIO_SET_DEV 1
36036 _ACEOF
36037
36038
36039 else
36040 $as_echo "$as_me: failed program was:" >&5
36041 sed 's/^/| /' conftest.$ac_ext >&5
36042
36043 { $as_echo "$as_me:$LINENO: result: no" >&5
36044 $as_echo "no" >&6; }
36045
36046
36047
36048 fi
36049
36050 rm -Rf build
36051
36052
36053
36054
36055 { $as_echo "$as_me:$LINENO: checking whether REQ_FAILFAST_MASK is defined" >&5
36056 $as_echo_n "checking whether REQ_FAILFAST_MASK is defined... " >&6; }
36057
36058
36059 cat confdefs.h - <<_ACEOF >conftest.c
36060 /* confdefs.h. */
36061 _ACEOF
36062 cat confdefs.h >>conftest.$ac_ext
36063 cat >>conftest.$ac_ext <<_ACEOF
36064 /* end confdefs.h. */
36065
36066
36067 #include <linux/bio.h>
36068
36069 int
36070 main (void)
36071 {
36072
36073 int flags __attribute__ ((unused));
36074 flags = REQ_FAILFAST_MASK;
36075
36076 ;
36077 return 0;
36078 }
36079
36080 _ACEOF
36081
36082
36083
36084 cat - <<_ACEOF >conftest.h
36085
36086 _ACEOF
36087
36088
36089 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
36090 echo "obj-m := conftest.o" >build/Makefile
36091 modpost_flag=''
36092 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
36093 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
36094 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36095 (eval $ac_try) 2>&5
36096 ac_status=$?
36097 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36098 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
36099 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36100 (eval $ac_try) 2>&5
36101 ac_status=$?
36102 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36103 (exit $ac_status); }; }; then
36104
36105 { $as_echo "$as_me:$LINENO: result: yes" >&5
36106 $as_echo "yes" >&6; }
36107
36108 cat >>confdefs.h <<\_ACEOF
36109 #define HAVE_REQ_FAILFAST_MASK 1
36110 _ACEOF
36111
36112
36113 else
36114 $as_echo "$as_me: failed program was:" >&5
36115 sed 's/^/| /' conftest.$ac_ext >&5
36116
36117 { $as_echo "$as_me:$LINENO: result: no" >&5
36118 $as_echo "no" >&6; }
36119
36120
36121
36122 fi
36123
36124 rm -Rf build
36125
36126
36127
36128
36129 { $as_echo "$as_me:$LINENO: checking whether REQ_OP_DISCARD is defined" >&5
36130 $as_echo_n "checking whether REQ_OP_DISCARD is defined... " >&6; }
36131
36132
36133 cat confdefs.h - <<_ACEOF >conftest.c
36134 /* confdefs.h. */
36135 _ACEOF
36136 cat confdefs.h >>conftest.$ac_ext
36137 cat >>conftest.$ac_ext <<_ACEOF
36138 /* end confdefs.h. */
36139
36140
36141 #include <linux/blk_types.h>
36142
36143 int
36144 main (void)
36145 {
36146
36147 int op __attribute__ ((unused)) = REQ_OP_DISCARD;
36148
36149 ;
36150 return 0;
36151 }
36152
36153 _ACEOF
36154
36155
36156
36157 cat - <<_ACEOF >conftest.h
36158
36159 _ACEOF
36160
36161
36162 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
36163 echo "obj-m := conftest.o" >build/Makefile
36164 modpost_flag=''
36165 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
36166 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
36167 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36168 (eval $ac_try) 2>&5
36169 ac_status=$?
36170 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36171 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
36172 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36173 (eval $ac_try) 2>&5
36174 ac_status=$?
36175 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36176 (exit $ac_status); }; }; then
36177
36178 { $as_echo "$as_me:$LINENO: result: yes" >&5
36179 $as_echo "yes" >&6; }
36180
36181 cat >>confdefs.h <<\_ACEOF
36182 #define HAVE_REQ_OP_DISCARD 1
36183 _ACEOF
36184
36185
36186 else
36187 $as_echo "$as_me: failed program was:" >&5
36188 sed 's/^/| /' conftest.$ac_ext >&5
36189
36190 { $as_echo "$as_me:$LINENO: result: no" >&5
36191 $as_echo "no" >&6; }
36192
36193
36194
36195 fi
36196
36197 rm -Rf build
36198
36199
36200
36201
36202 { $as_echo "$as_me:$LINENO: checking whether REQ_OP_SECURE_ERASE is defined" >&5
36203 $as_echo_n "checking whether REQ_OP_SECURE_ERASE is defined... " >&6; }
36204
36205
36206 cat confdefs.h - <<_ACEOF >conftest.c
36207 /* confdefs.h. */
36208 _ACEOF
36209 cat confdefs.h >>conftest.$ac_ext
36210 cat >>conftest.$ac_ext <<_ACEOF
36211 /* end confdefs.h. */
36212
36213
36214 #include <linux/blk_types.h>
36215
36216 int
36217 main (void)
36218 {
36219
36220 int op __attribute__ ((unused)) = REQ_OP_SECURE_ERASE;
36221
36222 ;
36223 return 0;
36224 }
36225
36226 _ACEOF
36227
36228
36229
36230 cat - <<_ACEOF >conftest.h
36231
36232 _ACEOF
36233
36234
36235 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
36236 echo "obj-m := conftest.o" >build/Makefile
36237 modpost_flag=''
36238 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
36239 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
36240 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36241 (eval $ac_try) 2>&5
36242 ac_status=$?
36243 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36244 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
36245 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36246 (eval $ac_try) 2>&5
36247 ac_status=$?
36248 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36249 (exit $ac_status); }; }; then
36250
36251 { $as_echo "$as_me:$LINENO: result: yes" >&5
36252 $as_echo "yes" >&6; }
36253
36254 cat >>confdefs.h <<\_ACEOF
36255 #define HAVE_REQ_OP_SECURE_ERASE 1
36256 _ACEOF
36257
36258
36259 else
36260 $as_echo "$as_me: failed program was:" >&5
36261 sed 's/^/| /' conftest.$ac_ext >&5
36262
36263 { $as_echo "$as_me:$LINENO: result: no" >&5
36264 $as_echo "no" >&6; }
36265
36266
36267
36268 fi
36269
36270 rm -Rf build
36271
36272
36273
36274
36275 { $as_echo "$as_me:$LINENO: checking whether REQ_OP_FLUSH is defined" >&5
36276 $as_echo_n "checking whether REQ_OP_FLUSH is defined... " >&6; }
36277
36278
36279 cat confdefs.h - <<_ACEOF >conftest.c
36280 /* confdefs.h. */
36281 _ACEOF
36282 cat confdefs.h >>conftest.$ac_ext
36283 cat >>conftest.$ac_ext <<_ACEOF
36284 /* end confdefs.h. */
36285
36286
36287 #include <linux/blk_types.h>
36288
36289 int
36290 main (void)
36291 {
36292
36293 int op __attribute__ ((unused)) = REQ_OP_FLUSH;
36294
36295 ;
36296 return 0;
36297 }
36298
36299 _ACEOF
36300
36301
36302
36303 cat - <<_ACEOF >conftest.h
36304
36305 _ACEOF
36306
36307
36308 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
36309 echo "obj-m := conftest.o" >build/Makefile
36310 modpost_flag=''
36311 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
36312 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
36313 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36314 (eval $ac_try) 2>&5
36315 ac_status=$?
36316 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36317 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
36318 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36319 (eval $ac_try) 2>&5
36320 ac_status=$?
36321 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36322 (exit $ac_status); }; }; then
36323
36324 { $as_echo "$as_me:$LINENO: result: yes" >&5
36325 $as_echo "yes" >&6; }
36326
36327 cat >>confdefs.h <<\_ACEOF
36328 #define HAVE_REQ_OP_FLUSH 1
36329 _ACEOF
36330
36331
36332 else
36333 $as_echo "$as_me: failed program was:" >&5
36334 sed 's/^/| /' conftest.$ac_ext >&5
36335
36336 { $as_echo "$as_me:$LINENO: result: no" >&5
36337 $as_echo "no" >&6; }
36338
36339
36340
36341 fi
36342
36343 rm -Rf build
36344
36345
36346
36347
36348 { $as_echo "$as_me:$LINENO: checking whether bio->bi_opf is defined" >&5
36349 $as_echo_n "checking whether bio->bi_opf is defined... " >&6; }
36350
36351
36352 cat confdefs.h - <<_ACEOF >conftest.c
36353 /* confdefs.h. */
36354 _ACEOF
36355 cat confdefs.h >>conftest.$ac_ext
36356 cat >>conftest.$ac_ext <<_ACEOF
36357 /* end confdefs.h. */
36358
36359
36360 #include <linux/bio.h>
36361
36362 int
36363 main (void)
36364 {
36365
36366 struct bio bio __attribute__ ((unused));
36367 bio.bi_opf = 0;
36368
36369 ;
36370 return 0;
36371 }
36372
36373 _ACEOF
36374
36375
36376
36377 cat - <<_ACEOF >conftest.h
36378
36379 _ACEOF
36380
36381
36382 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
36383 echo "obj-m := conftest.o" >build/Makefile
36384 modpost_flag=''
36385 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
36386 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
36387 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36388 (eval $ac_try) 2>&5
36389 ac_status=$?
36390 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36391 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
36392 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36393 (eval $ac_try) 2>&5
36394 ac_status=$?
36395 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36396 (exit $ac_status); }; }; then
36397
36398 { $as_echo "$as_me:$LINENO: result: yes" >&5
36399 $as_echo "yes" >&6; }
36400
36401 cat >>confdefs.h <<\_ACEOF
36402 #define HAVE_BIO_BI_OPF 1
36403 _ACEOF
36404
36405
36406 else
36407 $as_echo "$as_me: failed program was:" >&5
36408 sed 's/^/| /' conftest.$ac_ext >&5
36409
36410 { $as_echo "$as_me:$LINENO: result: no" >&5
36411 $as_echo "no" >&6; }
36412
36413
36414
36415 fi
36416
36417 rm -Rf build
36418
36419
36420
36421
36422 { $as_echo "$as_me:$LINENO: checking whether bio_end_io_t wants 1 arg" >&5
36423 $as_echo_n "checking whether bio_end_io_t wants 1 arg... " >&6; }
36424
36425
36426 cat confdefs.h - <<_ACEOF >conftest.c
36427 /* confdefs.h. */
36428 _ACEOF
36429 cat confdefs.h >>conftest.$ac_ext
36430 cat >>conftest.$ac_ext <<_ACEOF
36431 /* end confdefs.h. */
36432
36433
36434 #include <linux/bio.h>
36435
36436 void wanted_end_io(struct bio *bio) { return; }
36437
36438 bio_end_io_t *end_io __attribute__ ((unused)) = wanted_end_io;
36439
36440 int
36441 main (void)
36442 {
36443
36444
36445 ;
36446 return 0;
36447 }
36448
36449 _ACEOF
36450
36451
36452
36453 cat - <<_ACEOF >conftest.h
36454
36455 _ACEOF
36456
36457
36458 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
36459 echo "obj-m := conftest.o" >build/Makefile
36460 modpost_flag=''
36461 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
36462 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
36463 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36464 (eval $ac_try) 2>&5
36465 ac_status=$?
36466 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36467 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
36468 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36469 (eval $ac_try) 2>&5
36470 ac_status=$?
36471 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36472 (exit $ac_status); }; }; then
36473
36474 { $as_echo "$as_me:$LINENO: result: yes" >&5
36475 $as_echo "yes" >&6; }
36476
36477 cat >>confdefs.h <<\_ACEOF
36478 #define HAVE_1ARG_BIO_END_IO_T 1
36479 _ACEOF
36480
36481
36482 else
36483 $as_echo "$as_me: failed program was:" >&5
36484 sed 's/^/| /' conftest.$ac_ext >&5
36485
36486 { $as_echo "$as_me:$LINENO: result: no" >&5
36487 $as_echo "no" >&6; }
36488
36489
36490
36491 fi
36492
36493 rm -Rf build
36494
36495
36496
36497
36498 { $as_echo "$as_me:$LINENO: checking whether bio->bi_status exists" >&5
36499 $as_echo_n "checking whether bio->bi_status exists... " >&6; }
36500
36501
36502 cat confdefs.h - <<_ACEOF >conftest.c
36503 /* confdefs.h. */
36504 _ACEOF
36505 cat confdefs.h >>conftest.$ac_ext
36506 cat >>conftest.$ac_ext <<_ACEOF
36507 /* end confdefs.h. */
36508
36509
36510 #include <linux/bio.h>
36511
36512 int
36513 main (void)
36514 {
36515
36516 struct bio bio __attribute__ ((unused));
36517 blk_status_t status __attribute__ ((unused)) = BLK_STS_OK;
36518
36519 bio.bi_status = status;
36520
36521 ;
36522 return 0;
36523 }
36524
36525 _ACEOF
36526
36527
36528
36529 cat - <<_ACEOF >conftest.h
36530
36531 _ACEOF
36532
36533
36534 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
36535 echo "obj-m := conftest.o" >build/Makefile
36536 modpost_flag=''
36537 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
36538 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
36539 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36540 (eval $ac_try) 2>&5
36541 ac_status=$?
36542 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36543 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
36544 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36545 (eval $ac_try) 2>&5
36546 ac_status=$?
36547 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36548 (exit $ac_status); }; }; then
36549
36550 { $as_echo "$as_me:$LINENO: result: yes" >&5
36551 $as_echo "yes" >&6; }
36552
36553 cat >>confdefs.h <<\_ACEOF
36554 #define HAVE_BIO_BI_STATUS 1
36555 _ACEOF
36556
36557
36558 else
36559 $as_echo "$as_me: failed program was:" >&5
36560 sed 's/^/| /' conftest.$ac_ext >&5
36561
36562 { $as_echo "$as_me:$LINENO: result: no" >&5
36563 $as_echo "no" >&6; }
36564
36565
36566
36567 fi
36568
36569 rm -Rf build
36570
36571
36572
36573
36574 { $as_echo "$as_me:$LINENO: checking whether BIO_RW_BARRIER is defined" >&5
36575 $as_echo_n "checking whether BIO_RW_BARRIER is defined... " >&6; }
36576
36577
36578 cat confdefs.h - <<_ACEOF >conftest.c
36579 /* confdefs.h. */
36580 _ACEOF
36581 cat confdefs.h >>conftest.$ac_ext
36582 cat >>conftest.$ac_ext <<_ACEOF
36583 /* end confdefs.h. */
36584
36585
36586 #include <linux/bio.h>
36587
36588 int
36589 main (void)
36590 {
36591
36592 int flags __attribute__ ((unused));
36593 flags = BIO_RW_BARRIER;
36594
36595 ;
36596 return 0;
36597 }
36598
36599 _ACEOF
36600
36601
36602
36603 cat - <<_ACEOF >conftest.h
36604
36605 _ACEOF
36606
36607
36608 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
36609 echo "obj-m := conftest.o" >build/Makefile
36610 modpost_flag=''
36611 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
36612 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
36613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36614 (eval $ac_try) 2>&5
36615 ac_status=$?
36616 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36617 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
36618 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36619 (eval $ac_try) 2>&5
36620 ac_status=$?
36621 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36622 (exit $ac_status); }; }; then
36623
36624 { $as_echo "$as_me:$LINENO: result: yes" >&5
36625 $as_echo "yes" >&6; }
36626
36627 cat >>confdefs.h <<\_ACEOF
36628 #define HAVE_BIO_RW_BARRIER 1
36629 _ACEOF
36630
36631
36632 else
36633 $as_echo "$as_me: failed program was:" >&5
36634 sed 's/^/| /' conftest.$ac_ext >&5
36635
36636 { $as_echo "$as_me:$LINENO: result: no" >&5
36637 $as_echo "no" >&6; }
36638
36639
36640
36641 fi
36642
36643 rm -Rf build
36644
36645
36646
36647
36648 { $as_echo "$as_me:$LINENO: checking whether BIO_RW_DISCARD is defined" >&5
36649 $as_echo_n "checking whether BIO_RW_DISCARD is defined... " >&6; }
36650
36651
36652 cat confdefs.h - <<_ACEOF >conftest.c
36653 /* confdefs.h. */
36654 _ACEOF
36655 cat confdefs.h >>conftest.$ac_ext
36656 cat >>conftest.$ac_ext <<_ACEOF
36657 /* end confdefs.h. */
36658
36659
36660 #include <linux/bio.h>
36661
36662 int
36663 main (void)
36664 {
36665
36666 int flags __attribute__ ((unused));
36667 flags = BIO_RW_DISCARD;
36668
36669 ;
36670 return 0;
36671 }
36672
36673 _ACEOF
36674
36675
36676
36677 cat - <<_ACEOF >conftest.h
36678
36679 _ACEOF
36680
36681
36682 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
36683 echo "obj-m := conftest.o" >build/Makefile
36684 modpost_flag=''
36685 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
36686 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
36687 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36688 (eval $ac_try) 2>&5
36689 ac_status=$?
36690 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36691 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
36692 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36693 (eval $ac_try) 2>&5
36694 ac_status=$?
36695 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36696 (exit $ac_status); }; }; then
36697
36698 { $as_echo "$as_me:$LINENO: result: yes" >&5
36699 $as_echo "yes" >&6; }
36700
36701 cat >>confdefs.h <<\_ACEOF
36702 #define HAVE_BIO_RW_DISCARD 1
36703 _ACEOF
36704
36705
36706 else
36707 $as_echo "$as_me: failed program was:" >&5
36708 sed 's/^/| /' conftest.$ac_ext >&5
36709
36710 { $as_echo "$as_me:$LINENO: result: no" >&5
36711 $as_echo "no" >&6; }
36712
36713
36714
36715 fi
36716
36717 rm -Rf build
36718
36719
36720
36721
36722 { $as_echo "$as_me:$LINENO: checking whether blk_queue bdi is dynamic" >&5
36723 $as_echo_n "checking whether blk_queue bdi is dynamic... " >&6; }
36724
36725
36726 cat confdefs.h - <<_ACEOF >conftest.c
36727 /* confdefs.h. */
36728 _ACEOF
36729 cat confdefs.h >>conftest.$ac_ext
36730 cat >>conftest.$ac_ext <<_ACEOF
36731 /* end confdefs.h. */
36732
36733
36734 #include <linux/blkdev.h>
36735
36736 int
36737 main (void)
36738 {
36739
36740 struct request_queue q;
36741 struct backing_dev_info bdi;
36742 q.backing_dev_info = &bdi;
36743
36744 ;
36745 return 0;
36746 }
36747
36748 _ACEOF
36749
36750
36751
36752 cat - <<_ACEOF >conftest.h
36753
36754 _ACEOF
36755
36756
36757 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
36758 echo "obj-m := conftest.o" >build/Makefile
36759 modpost_flag=''
36760 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
36761 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
36762 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36763 (eval $ac_try) 2>&5
36764 ac_status=$?
36765 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36766 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
36767 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36768 (eval $ac_try) 2>&5
36769 ac_status=$?
36770 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36771 (exit $ac_status); }; }; then
36772
36773 { $as_echo "$as_me:$LINENO: result: yes" >&5
36774 $as_echo "yes" >&6; }
36775
36776 cat >>confdefs.h <<\_ACEOF
36777 #define HAVE_BLK_QUEUE_BDI_DYNAMIC 1
36778 _ACEOF
36779
36780
36781 else
36782 $as_echo "$as_me: failed program was:" >&5
36783 sed 's/^/| /' conftest.$ac_ext >&5
36784
36785 { $as_echo "$as_me:$LINENO: result: no" >&5
36786 $as_echo "no" >&6; }
36787
36788
36789
36790 fi
36791
36792 rm -Rf build
36793
36794
36795
36796
36797 { $as_echo "$as_me:$LINENO: checking whether blk_queue_flag_clear() exists" >&5
36798 $as_echo_n "checking whether blk_queue_flag_clear() exists... " >&6; }
36799
36800
36801 cat confdefs.h - <<_ACEOF >conftest.c
36802 /* confdefs.h. */
36803 _ACEOF
36804 cat confdefs.h >>conftest.$ac_ext
36805 cat >>conftest.$ac_ext <<_ACEOF
36806 /* end confdefs.h. */
36807
36808
36809 #include <linux/kernel.h>
36810 #include <linux/blkdev.h>
36811
36812 int
36813 main (void)
36814 {
36815
36816 struct request_queue *q = NULL;
36817 blk_queue_flag_clear(0, q);
36818
36819 ;
36820 return 0;
36821 }
36822
36823 _ACEOF
36824
36825
36826
36827 cat - <<_ACEOF >conftest.h
36828
36829 _ACEOF
36830
36831
36832 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
36833 echo "obj-m := conftest.o" >build/Makefile
36834 modpost_flag=''
36835 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
36836 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
36837 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36838 (eval $ac_try) 2>&5
36839 ac_status=$?
36840 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36841 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
36842 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36843 (eval $ac_try) 2>&5
36844 ac_status=$?
36845 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36846 (exit $ac_status); }; }; then
36847
36848
36849 { $as_echo "$as_me:$LINENO: result: yes" >&5
36850 $as_echo "yes" >&6; }
36851
36852 cat >>confdefs.h <<\_ACEOF
36853 #define HAVE_BLK_QUEUE_FLAG_CLEAR 1
36854 _ACEOF
36855
36856
36857 else
36858 $as_echo "$as_me: failed program was:" >&5
36859 sed 's/^/| /' conftest.$ac_ext >&5
36860
36861 { $as_echo "$as_me:$LINENO: result: no" >&5
36862 $as_echo "no" >&6; }
36863
36864
36865
36866 fi
36867
36868 rm -Rf build
36869
36870
36871
36872
36873 { $as_echo "$as_me:$LINENO: checking whether blk_queue_flag_set() exists" >&5
36874 $as_echo_n "checking whether blk_queue_flag_set() exists... " >&6; }
36875
36876
36877 cat confdefs.h - <<_ACEOF >conftest.c
36878 /* confdefs.h. */
36879 _ACEOF
36880 cat confdefs.h >>conftest.$ac_ext
36881 cat >>conftest.$ac_ext <<_ACEOF
36882 /* end confdefs.h. */
36883
36884
36885 #include <linux/kernel.h>
36886 #include <linux/blkdev.h>
36887
36888 int
36889 main (void)
36890 {
36891
36892 struct request_queue *q = NULL;
36893 blk_queue_flag_set(0, q);
36894
36895 ;
36896 return 0;
36897 }
36898
36899 _ACEOF
36900
36901
36902
36903 cat - <<_ACEOF >conftest.h
36904
36905 _ACEOF
36906
36907
36908 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
36909 echo "obj-m := conftest.o" >build/Makefile
36910 modpost_flag=''
36911 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
36912 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
36913 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36914 (eval $ac_try) 2>&5
36915 ac_status=$?
36916 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36917 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
36918 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36919 (eval $ac_try) 2>&5
36920 ac_status=$?
36921 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36922 (exit $ac_status); }; }; then
36923
36924 { $as_echo "$as_me:$LINENO: result: yes" >&5
36925 $as_echo "yes" >&6; }
36926
36927 cat >>confdefs.h <<\_ACEOF
36928 #define HAVE_BLK_QUEUE_FLAG_SET 1
36929 _ACEOF
36930
36931
36932 else
36933 $as_echo "$as_me: failed program was:" >&5
36934 sed 's/^/| /' conftest.$ac_ext >&5
36935
36936 { $as_echo "$as_me:$LINENO: result: no" >&5
36937 $as_echo "no" >&6; }
36938
36939
36940
36941 fi
36942
36943 rm -Rf build
36944
36945
36946
36947
36948 { $as_echo "$as_me:$LINENO: checking whether blk_queue_flush() is available" >&5
36949 $as_echo_n "checking whether blk_queue_flush() is available... " >&6; }
36950 tmp_flags="$EXTRA_KCFLAGS"
36951 EXTRA_KCFLAGS="${NO_UNUSED_BUT_SET_VARIABLE}"
36952
36953
36954 cat confdefs.h - <<_ACEOF >conftest.c
36955 /* confdefs.h. */
36956 _ACEOF
36957 cat confdefs.h >>conftest.$ac_ext
36958 cat >>conftest.$ac_ext <<_ACEOF
36959 /* end confdefs.h. */
36960
36961
36962 #include <linux/blkdev.h>
36963
36964 int
36965 main (void)
36966 {
36967
36968 struct request_queue *q = NULL;
36969 (void) blk_queue_flush(q, REQ_FLUSH);
36970
36971 ;
36972 return 0;
36973 }
36974
36975 _ACEOF
36976
36977
36978
36979 cat - <<_ACEOF >conftest.h
36980
36981 _ACEOF
36982
36983
36984 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
36985 echo "obj-m := conftest.o" >build/Makefile
36986 modpost_flag=''
36987 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
36988 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
36989 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36990 (eval $ac_try) 2>&5
36991 ac_status=$?
36992 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36993 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
36994 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36995 (eval $ac_try) 2>&5
36996 ac_status=$?
36997 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36998 (exit $ac_status); }; }; then
36999
37000 { $as_echo "$as_me:$LINENO: result: yes" >&5
37001 $as_echo "yes" >&6; }
37002
37003 cat >>confdefs.h <<\_ACEOF
37004 #define HAVE_BLK_QUEUE_FLUSH 1
37005 _ACEOF
37006
37007
37008 { $as_echo "$as_me:$LINENO: checking whether blk_queue_flush() is GPL-only" >&5
37009 $as_echo_n "checking whether blk_queue_flush() is GPL-only... " >&6; }
37010
37011
37012 cat confdefs.h - <<_ACEOF >conftest.c
37013 /* confdefs.h. */
37014 _ACEOF
37015 cat confdefs.h >>conftest.$ac_ext
37016 cat >>conftest.$ac_ext <<_ACEOF
37017 /* end confdefs.h. */
37018
37019
37020 #include <linux/module.h>
37021 #include <linux/blkdev.h>
37022
37023 MODULE_LICENSE("$ZFS_META_LICENSE");
37024
37025 int
37026 main (void)
37027 {
37028
37029 struct request_queue *q = NULL;
37030 (void) blk_queue_flush(q, REQ_FLUSH);
37031
37032 ;
37033 return 0;
37034 }
37035
37036 _ACEOF
37037
37038
37039
37040 cat - <<_ACEOF >conftest.h
37041
37042 _ACEOF
37043
37044
37045 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
37046 echo "obj-m := conftest.o" >build/Makefile
37047 modpost_flag=''
37048 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
37049 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
37050 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37051 (eval $ac_try) 2>&5
37052 ac_status=$?
37053 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37054 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
37055 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37056 (eval $ac_try) 2>&5
37057 ac_status=$?
37058 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37059 (exit $ac_status); }; }; then
37060
37061 { $as_echo "$as_me:$LINENO: result: no" >&5
37062 $as_echo "no" >&6; }
37063
37064 else
37065 $as_echo "$as_me: failed program was:" >&5
37066 sed 's/^/| /' conftest.$ac_ext >&5
37067
37068 { $as_echo "$as_me:$LINENO: result: yes" >&5
37069 $as_echo "yes" >&6; }
37070
37071 cat >>confdefs.h <<\_ACEOF
37072 #define HAVE_BLK_QUEUE_FLUSH_GPL_ONLY 1
37073 _ACEOF
37074
37075
37076
37077
37078 fi
37079
37080 rm -Rf build
37081
37082
37083
37084 else
37085 $as_echo "$as_me: failed program was:" >&5
37086 sed 's/^/| /' conftest.$ac_ext >&5
37087
37088 { $as_echo "$as_me:$LINENO: result: no" >&5
37089 $as_echo "no" >&6; }
37090
37091
37092
37093 fi
37094
37095 rm -Rf build
37096
37097
37098
37099 { $as_echo "$as_me:$LINENO: checking whether blk_queue_write_cache() exists" >&5
37100 $as_echo_n "checking whether blk_queue_write_cache() exists... " >&6; }
37101
37102
37103 cat confdefs.h - <<_ACEOF >conftest.c
37104 /* confdefs.h. */
37105 _ACEOF
37106 cat confdefs.h >>conftest.$ac_ext
37107 cat >>conftest.$ac_ext <<_ACEOF
37108 /* end confdefs.h. */
37109
37110
37111 #include <linux/kernel.h>
37112 #include <linux/blkdev.h>
37113
37114
37115 int
37116 main (void)
37117 {
37118
37119 struct request_queue *q = NULL;
37120 blk_queue_write_cache(q, true, true);
37121
37122 ;
37123 return 0;
37124 }
37125
37126 _ACEOF
37127
37128
37129
37130 cat - <<_ACEOF >conftest.h
37131
37132 _ACEOF
37133
37134
37135 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
37136 echo "obj-m := conftest.o" >build/Makefile
37137 modpost_flag=''
37138 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
37139 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
37140 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37141 (eval $ac_try) 2>&5
37142 ac_status=$?
37143 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37144 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
37145 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37146 (eval $ac_try) 2>&5
37147 ac_status=$?
37148 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37149 (exit $ac_status); }; }; then
37150
37151 { $as_echo "$as_me:$LINENO: result: yes" >&5
37152 $as_echo "yes" >&6; }
37153
37154 cat >>confdefs.h <<\_ACEOF
37155 #define HAVE_BLK_QUEUE_WRITE_CACHE 1
37156 _ACEOF
37157
37158
37159 { $as_echo "$as_me:$LINENO: checking whether blk_queue_write_cache() is GPL-only" >&5
37160 $as_echo_n "checking whether blk_queue_write_cache() is GPL-only... " >&6; }
37161
37162
37163 cat confdefs.h - <<_ACEOF >conftest.c
37164 /* confdefs.h. */
37165 _ACEOF
37166 cat confdefs.h >>conftest.$ac_ext
37167 cat >>conftest.$ac_ext <<_ACEOF
37168 /* end confdefs.h. */
37169
37170
37171 #include <linux/kernel.h>
37172 #include <linux/module.h>
37173 #include <linux/blkdev.h>
37174
37175 MODULE_LICENSE("$ZFS_META_LICENSE");
37176
37177 int
37178 main (void)
37179 {
37180
37181 struct request_queue *q = NULL;
37182 blk_queue_write_cache(q, true, true);
37183
37184 ;
37185 return 0;
37186 }
37187
37188 _ACEOF
37189
37190
37191
37192 cat - <<_ACEOF >conftest.h
37193
37194 _ACEOF
37195
37196
37197 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
37198 echo "obj-m := conftest.o" >build/Makefile
37199 modpost_flag=''
37200 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
37201 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
37202 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37203 (eval $ac_try) 2>&5
37204 ac_status=$?
37205 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37206 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
37207 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37208 (eval $ac_try) 2>&5
37209 ac_status=$?
37210 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37211 (exit $ac_status); }; }; then
37212
37213 { $as_echo "$as_me:$LINENO: result: no" >&5
37214 $as_echo "no" >&6; }
37215
37216 else
37217 $as_echo "$as_me: failed program was:" >&5
37218 sed 's/^/| /' conftest.$ac_ext >&5
37219
37220 { $as_echo "$as_me:$LINENO: result: yes" >&5
37221 $as_echo "yes" >&6; }
37222
37223 cat >>confdefs.h <<\_ACEOF
37224 #define HAVE_BLK_QUEUE_WRITE_CACHE_GPL_ONLY 1
37225 _ACEOF
37226
37227
37228
37229
37230 fi
37231
37232 rm -Rf build
37233
37234
37235
37236 else
37237 $as_echo "$as_me: failed program was:" >&5
37238 sed 's/^/| /' conftest.$ac_ext >&5
37239
37240 { $as_echo "$as_me:$LINENO: result: no" >&5
37241 $as_echo "no" >&6; }
37242
37243
37244
37245 fi
37246
37247 rm -Rf build
37248
37249
37250
37251 EXTRA_KCFLAGS="$tmp_flags"
37252
37253
37254 { $as_echo "$as_me:$LINENO: checking whether blk_queue_max_hw_sectors() is available" >&5
37255 $as_echo_n "checking whether blk_queue_max_hw_sectors() is available... " >&6; }
37256 tmp_flags="$EXTRA_KCFLAGS"
37257 EXTRA_KCFLAGS="${NO_UNUSED_BUT_SET_VARIABLE}"
37258
37259
37260 cat confdefs.h - <<_ACEOF >conftest.c
37261 /* confdefs.h. */
37262 _ACEOF
37263 cat confdefs.h >>conftest.$ac_ext
37264 cat >>conftest.$ac_ext <<_ACEOF
37265 /* end confdefs.h. */
37266
37267
37268 #include <linux/blkdev.h>
37269
37270 int
37271 main (void)
37272 {
37273
37274 struct request_queue *q = NULL;
37275 (void) blk_queue_max_hw_sectors(q, BLK_SAFE_MAX_SECTORS);
37276
37277 ;
37278 return 0;
37279 }
37280
37281 _ACEOF
37282
37283
37284
37285 cat - <<_ACEOF >conftest.h
37286
37287 _ACEOF
37288
37289
37290 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
37291 echo "obj-m := conftest.o" >build/Makefile
37292 modpost_flag=''
37293 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
37294 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
37295 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37296 (eval $ac_try) 2>&5
37297 ac_status=$?
37298 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37299 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
37300 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37301 (eval $ac_try) 2>&5
37302 ac_status=$?
37303 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37304 (exit $ac_status); }; }; then
37305
37306 { $as_echo "$as_me:$LINENO: result: yes" >&5
37307 $as_echo "yes" >&6; }
37308
37309 cat >>confdefs.h <<\_ACEOF
37310 #define HAVE_BLK_QUEUE_MAX_HW_SECTORS 1
37311 _ACEOF
37312
37313
37314 else
37315 $as_echo "$as_me: failed program was:" >&5
37316 sed 's/^/| /' conftest.$ac_ext >&5
37317
37318 { $as_echo "$as_me:$LINENO: result: no" >&5
37319 $as_echo "no" >&6; }
37320
37321
37322
37323 fi
37324
37325 rm -Rf build
37326
37327
37328 EXTRA_KCFLAGS="$tmp_flags"
37329
37330
37331 { $as_echo "$as_me:$LINENO: checking whether blk_queue_max_segments() is available" >&5
37332 $as_echo_n "checking whether blk_queue_max_segments() is available... " >&6; }
37333 tmp_flags="$EXTRA_KCFLAGS"
37334 EXTRA_KCFLAGS="${NO_UNUSED_BUT_SET_VARIABLE}"
37335
37336
37337 cat confdefs.h - <<_ACEOF >conftest.c
37338 /* confdefs.h. */
37339 _ACEOF
37340 cat confdefs.h >>conftest.$ac_ext
37341 cat >>conftest.$ac_ext <<_ACEOF
37342 /* end confdefs.h. */
37343
37344
37345 #include <linux/blkdev.h>
37346
37347 int
37348 main (void)
37349 {
37350
37351 struct request_queue *q = NULL;
37352 (void) blk_queue_max_segments(q, BLK_MAX_SEGMENTS);
37353
37354 ;
37355 return 0;
37356 }
37357
37358 _ACEOF
37359
37360
37361
37362 cat - <<_ACEOF >conftest.h
37363
37364 _ACEOF
37365
37366
37367 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
37368 echo "obj-m := conftest.o" >build/Makefile
37369 modpost_flag=''
37370 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
37371 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
37372 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37373 (eval $ac_try) 2>&5
37374 ac_status=$?
37375 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37376 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
37377 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37378 (eval $ac_try) 2>&5
37379 ac_status=$?
37380 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37381 (exit $ac_status); }; }; then
37382
37383 { $as_echo "$as_me:$LINENO: result: yes" >&5
37384 $as_echo "yes" >&6; }
37385
37386 cat >>confdefs.h <<\_ACEOF
37387 #define HAVE_BLK_QUEUE_MAX_SEGMENTS 1
37388 _ACEOF
37389
37390
37391 else
37392 $as_echo "$as_me: failed program was:" >&5
37393 sed 's/^/| /' conftest.$ac_ext >&5
37394
37395 { $as_echo "$as_me:$LINENO: result: no" >&5
37396 $as_echo "no" >&6; }
37397
37398
37399
37400 fi
37401
37402 rm -Rf build
37403
37404
37405 EXTRA_KCFLAGS="$tmp_flags"
37406
37407
37408 { $as_echo "$as_me:$LINENO: checking whether the BIO_RW_UNPLUG enum is available" >&5
37409 $as_echo_n "checking whether the BIO_RW_UNPLUG enum is available... " >&6; }
37410 tmp_flags="$EXTRA_KCFLAGS"
37411 EXTRA_KCFLAGS="${NO_UNUSED_BUT_SET_VARIABLE}"
37412
37413
37414 cat confdefs.h - <<_ACEOF >conftest.c
37415 /* confdefs.h. */
37416 _ACEOF
37417 cat confdefs.h >>conftest.$ac_ext
37418 cat >>conftest.$ac_ext <<_ACEOF
37419 /* end confdefs.h. */
37420
37421
37422 #include <linux/blkdev.h>
37423
37424 int
37425 main (void)
37426 {
37427
37428 extern enum bio_rw_flags rw;
37429
37430 rw = BIO_RW_UNPLUG;
37431
37432 ;
37433 return 0;
37434 }
37435
37436 _ACEOF
37437
37438
37439
37440 cat - <<_ACEOF >conftest.h
37441
37442 _ACEOF
37443
37444
37445 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
37446 echo "obj-m := conftest.o" >build/Makefile
37447 modpost_flag=''
37448 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
37449 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
37450 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37451 (eval $ac_try) 2>&5
37452 ac_status=$?
37453 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37454 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
37455 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37456 (eval $ac_try) 2>&5
37457 ac_status=$?
37458 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37459 (exit $ac_status); }; }; then
37460
37461 { $as_echo "$as_me:$LINENO: result: yes" >&5
37462 $as_echo "yes" >&6; }
37463
37464 cat >>confdefs.h <<\_ACEOF
37465 #define HAVE_BLK_QUEUE_HAVE_BIO_RW_UNPLUG 1
37466 _ACEOF
37467
37468
37469 else
37470 $as_echo "$as_me: failed program was:" >&5
37471 sed 's/^/| /' conftest.$ac_ext >&5
37472
37473 { $as_echo "$as_me:$LINENO: result: no" >&5
37474 $as_echo "no" >&6; }
37475
37476
37477
37478 fi
37479
37480 rm -Rf build
37481
37482
37483 EXTRA_KCFLAGS="$tmp_flags"
37484
37485
37486 { $as_echo "$as_me:$LINENO: checking whether struct blk_plug is available" >&5
37487 $as_echo_n "checking whether struct blk_plug is available... " >&6; }
37488 tmp_flags="$EXTRA_KCFLAGS"
37489 EXTRA_KCFLAGS="${NO_UNUSED_BUT_SET_VARIABLE}"
37490
37491
37492 cat confdefs.h - <<_ACEOF >conftest.c
37493 /* confdefs.h. */
37494 _ACEOF
37495 cat confdefs.h >>conftest.$ac_ext
37496 cat >>conftest.$ac_ext <<_ACEOF
37497 /* end confdefs.h. */
37498
37499
37500 #include <linux/blkdev.h>
37501
37502 int
37503 main (void)
37504 {
37505
37506 struct blk_plug plug;
37507
37508 blk_start_plug(&plug);
37509 blk_finish_plug(&plug);
37510
37511 ;
37512 return 0;
37513 }
37514
37515 _ACEOF
37516
37517
37518
37519 cat - <<_ACEOF >conftest.h
37520
37521 _ACEOF
37522
37523
37524 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
37525 echo "obj-m := conftest.o" >build/Makefile
37526 modpost_flag=''
37527 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
37528 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
37529 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37530 (eval $ac_try) 2>&5
37531 ac_status=$?
37532 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37533 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
37534 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37535 (eval $ac_try) 2>&5
37536 ac_status=$?
37537 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37538 (exit $ac_status); }; }; then
37539
37540 { $as_echo "$as_me:$LINENO: result: yes" >&5
37541 $as_echo "yes" >&6; }
37542
37543 cat >>confdefs.h <<\_ACEOF
37544 #define HAVE_BLK_QUEUE_HAVE_BLK_PLUG 1
37545 _ACEOF
37546
37547
37548 else
37549 $as_echo "$as_me: failed program was:" >&5
37550 sed 's/^/| /' conftest.$ac_ext >&5
37551
37552 { $as_echo "$as_me:$LINENO: result: no" >&5
37553 $as_echo "no" >&6; }
37554
37555
37556
37557 fi
37558
37559 rm -Rf build
37560
37561
37562 EXTRA_KCFLAGS="$tmp_flags"
37563
37564 { $as_echo "$as_me:$LINENO: checking whether get_disk_and_module() is available" >&5
37565 $as_echo_n "checking whether get_disk_and_module() is available... " >&6; }
37566
37567
37568
37569 cat confdefs.h - <<_ACEOF >conftest.c
37570 /* confdefs.h. */
37571 _ACEOF
37572 cat confdefs.h >>conftest.$ac_ext
37573 cat >>conftest.$ac_ext <<_ACEOF
37574 /* end confdefs.h. */
37575
37576
37577 #include <linux/genhd.h>
37578
37579 int
37580 main (void)
37581 {
37582
37583 struct gendisk *disk = NULL;
37584 (void) get_disk_and_module(disk);
37585
37586 ;
37587 return 0;
37588 }
37589
37590 _ACEOF
37591
37592
37593
37594 cat - <<_ACEOF >conftest.h
37595
37596 _ACEOF
37597
37598
37599 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
37600 echo "obj-m := conftest.o" >build/Makefile
37601 modpost_flag=''
37602 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
37603 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
37604 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37605 (eval $ac_try) 2>&5
37606 ac_status=$?
37607 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37608 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
37609 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37610 (eval $ac_try) 2>&5
37611 ac_status=$?
37612 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37613 (exit $ac_status); }; }; then
37614 rc=0
37615 else
37616 $as_echo "$as_me: failed program was:" >&5
37617 sed 's/^/| /' conftest.$ac_ext >&5
37618 rc=1
37619
37620
37621 fi
37622
37623 rm -Rf build
37624
37625
37626 if test $rc -ne 0; then :
37627
37628 { $as_echo "$as_me:$LINENO: result: no" >&5
37629 $as_echo "no" >&6; }
37630
37631 else
37632 if test "x$enable_linux_builtin" != xyes; then
37633
37634 grep -q -E '[[:space:]]get_disk_and_module[[:space:]]' \
37635 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
37636 rc=$?
37637 if test $rc -ne 0; then
37638 export=0
37639 for file in block/genhd.c; do
37640 grep -q -E "EXPORT_SYMBOL.*(get_disk_and_module)" \
37641 "$LINUX/$file" 2>/dev/null
37642 rc=$?
37643 if test $rc -eq 0; then
37644 export=1
37645 break;
37646 fi
37647 done
37648 if test $export -eq 0; then :
37649 rc=1
37650 else :
37651 rc=0
37652 fi
37653 else :
37654 rc=0
37655 fi
37656
37657 fi
37658 if test $rc -ne 0; then :
37659
37660 { $as_echo "$as_me:$LINENO: result: no" >&5
37661 $as_echo "no" >&6; }
37662
37663 else :
37664
37665 { $as_echo "$as_me:$LINENO: result: yes" >&5
37666 $as_echo "yes" >&6; }
37667
37668 cat >>confdefs.h <<\_ACEOF
37669 #define HAVE_GET_DISK_AND_MODULE 1
37670 _ACEOF
37671
37672
37673 fi
37674 fi
37675
37676
37677
37678 { $as_echo "$as_me:$LINENO: checking whether get_disk_ro() is available" >&5
37679 $as_echo_n "checking whether get_disk_ro() is available... " >&6; }
37680 tmp_flags="$EXTRA_KCFLAGS"
37681 EXTRA_KCFLAGS="${NO_UNUSED_BUT_SET_VARIABLE}"
37682
37683
37684 cat confdefs.h - <<_ACEOF >conftest.c
37685 /* confdefs.h. */
37686 _ACEOF
37687 cat confdefs.h >>conftest.$ac_ext
37688 cat >>conftest.$ac_ext <<_ACEOF
37689 /* end confdefs.h. */
37690
37691
37692 #include <linux/blkdev.h>
37693
37694 int
37695 main (void)
37696 {
37697
37698 struct gendisk *disk = NULL;
37699 (void) get_disk_ro(disk);
37700
37701 ;
37702 return 0;
37703 }
37704
37705 _ACEOF
37706
37707
37708
37709 cat - <<_ACEOF >conftest.h
37710
37711 _ACEOF
37712
37713
37714 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
37715 echo "obj-m := conftest.o" >build/Makefile
37716 modpost_flag=''
37717 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
37718 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
37719 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37720 (eval $ac_try) 2>&5
37721 ac_status=$?
37722 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37723 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
37724 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37725 (eval $ac_try) 2>&5
37726 ac_status=$?
37727 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37728 (exit $ac_status); }; }; then
37729
37730 { $as_echo "$as_me:$LINENO: result: yes" >&5
37731 $as_echo "yes" >&6; }
37732
37733 cat >>confdefs.h <<\_ACEOF
37734 #define HAVE_GET_DISK_RO 1
37735 _ACEOF
37736
37737
37738 else
37739 $as_echo "$as_me: failed program was:" >&5
37740 sed 's/^/| /' conftest.$ac_ext >&5
37741
37742 { $as_echo "$as_me:$LINENO: result: no" >&5
37743 $as_echo "no" >&6; }
37744
37745
37746
37747 fi
37748
37749 rm -Rf build
37750
37751
37752 EXTRA_KCFLAGS="$tmp_flags"
37753
37754 { $as_echo "$as_me:$LINENO: checking whether get_gendisk() is available" >&5
37755 $as_echo_n "checking whether get_gendisk() is available... " >&6; }
37756
37757
37758
37759 cat confdefs.h - <<_ACEOF >conftest.c
37760 /* confdefs.h. */
37761 _ACEOF
37762 cat confdefs.h >>conftest.$ac_ext
37763 cat >>conftest.$ac_ext <<_ACEOF
37764 /* end confdefs.h. */
37765
37766
37767 #include <linux/genhd.h>
37768
37769 int
37770 main (void)
37771 {
37772
37773 get_gendisk(0, NULL);
37774
37775 ;
37776 return 0;
37777 }
37778
37779 _ACEOF
37780
37781
37782
37783 cat - <<_ACEOF >conftest.h
37784
37785 _ACEOF
37786
37787
37788 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
37789 echo "obj-m := conftest.o" >build/Makefile
37790 modpost_flag=''
37791 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
37792 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
37793 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37794 (eval $ac_try) 2>&5
37795 ac_status=$?
37796 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37797 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
37798 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37799 (eval $ac_try) 2>&5
37800 ac_status=$?
37801 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37802 (exit $ac_status); }; }; then
37803 rc=0
37804 else
37805 $as_echo "$as_me: failed program was:" >&5
37806 sed 's/^/| /' conftest.$ac_ext >&5
37807 rc=1
37808
37809
37810 fi
37811
37812 rm -Rf build
37813
37814
37815 if test $rc -ne 0; then :
37816
37817 { $as_echo "$as_me:$LINENO: result: no" >&5
37818 $as_echo "no" >&6; }
37819
37820 else
37821 if test "x$enable_linux_builtin" != xyes; then
37822
37823 grep -q -E '[[:space:]]get_gendisk[[:space:]]' \
37824 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
37825 rc=$?
37826 if test $rc -ne 0; then
37827 export=0
37828 for file in block/genhd.c; do
37829 grep -q -E "EXPORT_SYMBOL.*(get_gendisk)" \
37830 "$LINUX/$file" 2>/dev/null
37831 rc=$?
37832 if test $rc -eq 0; then
37833 export=1
37834 break;
37835 fi
37836 done
37837 if test $export -eq 0; then :
37838 rc=1
37839 else :
37840 rc=0
37841 fi
37842 else :
37843 rc=0
37844 fi
37845
37846 fi
37847 if test $rc -ne 0; then :
37848
37849 { $as_echo "$as_me:$LINENO: result: no" >&5
37850 $as_echo "no" >&6; }
37851
37852 else :
37853
37854 { $as_echo "$as_me:$LINENO: result: yes" >&5
37855 $as_echo "yes" >&6; }
37856
37857 cat >>confdefs.h <<\_ACEOF
37858 #define HAVE_GET_GENDISK 1
37859 _ACEOF
37860
37861
37862 fi
37863 fi
37864
37865
37866
37867 { $as_echo "$as_me:$LINENO: checking whether bio_set_op_attrs is available" >&5
37868 $as_echo_n "checking whether bio_set_op_attrs is available... " >&6; }
37869
37870
37871 cat confdefs.h - <<_ACEOF >conftest.c
37872 /* confdefs.h. */
37873 _ACEOF
37874 cat confdefs.h >>conftest.$ac_ext
37875 cat >>conftest.$ac_ext <<_ACEOF
37876 /* end confdefs.h. */
37877
37878
37879 #include <linux/bio.h>
37880
37881 int
37882 main (void)
37883 {
37884
37885 struct bio *bio __attribute__ ((unused)) = NULL;
37886
37887 bio_set_op_attrs(bio, 0, 0);
37888
37889 ;
37890 return 0;
37891 }
37892
37893 _ACEOF
37894
37895
37896
37897 cat - <<_ACEOF >conftest.h
37898
37899 _ACEOF
37900
37901
37902 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
37903 echo "obj-m := conftest.o" >build/Makefile
37904 modpost_flag=''
37905 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
37906 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
37907 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37908 (eval $ac_try) 2>&5
37909 ac_status=$?
37910 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37911 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
37912 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37913 (eval $ac_try) 2>&5
37914 ac_status=$?
37915 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37916 (exit $ac_status); }; }; then
37917
37918 { $as_echo "$as_me:$LINENO: result: yes" >&5
37919 $as_echo "yes" >&6; }
37920
37921 cat >>confdefs.h <<\_ACEOF
37922 #define HAVE_BIO_SET_OP_ATTRS 1
37923 _ACEOF
37924
37925
37926 else
37927 $as_echo "$as_me: failed program was:" >&5
37928 sed 's/^/| /' conftest.$ac_ext >&5
37929
37930 { $as_echo "$as_me:$LINENO: result: no" >&5
37931 $as_echo "no" >&6; }
37932
37933
37934
37935 fi
37936
37937 rm -Rf build
37938
37939
37940
37941
37942 { $as_echo "$as_me:$LINENO: checking whether generic_readlink is global" >&5
37943 $as_echo_n "checking whether generic_readlink is global... " >&6; }
37944
37945
37946 cat confdefs.h - <<_ACEOF >conftest.c
37947 /* confdefs.h. */
37948 _ACEOF
37949 cat confdefs.h >>conftest.$ac_ext
37950 cat >>conftest.$ac_ext <<_ACEOF
37951 /* end confdefs.h. */
37952
37953
37954 #include <linux/fs.h>
37955
37956 int
37957 main (void)
37958 {
37959
37960 int i __attribute__ ((unused));
37961
37962 i = generic_readlink(NULL, NULL, 0);
37963
37964 ;
37965 return 0;
37966 }
37967
37968 _ACEOF
37969
37970
37971
37972 cat - <<_ACEOF >conftest.h
37973
37974 _ACEOF
37975
37976
37977 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
37978 echo "obj-m := conftest.o" >build/Makefile
37979 modpost_flag=''
37980 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
37981 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
37982 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37983 (eval $ac_try) 2>&5
37984 ac_status=$?
37985 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37986 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
37987 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37988 (eval $ac_try) 2>&5
37989 ac_status=$?
37990 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37991 (exit $ac_status); }; }; then
37992
37993 { $as_echo "$as_me:$LINENO: result: yes" >&5
37994 $as_echo "yes" >&6; }
37995
37996 cat >>confdefs.h <<\_ACEOF
37997 #define HAVE_GENERIC_READLINK 1
37998 _ACEOF
37999
38000
38001 else
38002 $as_echo "$as_me: failed program was:" >&5
38003 sed 's/^/| /' conftest.$ac_ext >&5
38004
38005 { $as_echo "$as_me:$LINENO: result: no" >&5
38006 $as_echo "no" >&6; }
38007
38008
38009
38010 fi
38011
38012 rm -Rf build
38013
38014
38015
38016
38017 { $as_echo "$as_me:$LINENO: checking whether ql->discard_granularity is available" >&5
38018 $as_echo_n "checking whether ql->discard_granularity is available... " >&6; }
38019
38020
38021 cat confdefs.h - <<_ACEOF >conftest.c
38022 /* confdefs.h. */
38023 _ACEOF
38024 cat confdefs.h >>conftest.$ac_ext
38025 cat >>conftest.$ac_ext <<_ACEOF
38026 /* end confdefs.h. */
38027
38028
38029 #include <linux/blkdev.h>
38030
38031 int
38032 main (void)
38033 {
38034
38035 struct queue_limits ql __attribute__ ((unused));
38036
38037 ql.discard_granularity = 0;
38038
38039 ;
38040 return 0;
38041 }
38042
38043 _ACEOF
38044
38045
38046
38047 cat - <<_ACEOF >conftest.h
38048
38049 _ACEOF
38050
38051
38052 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
38053 echo "obj-m := conftest.o" >build/Makefile
38054 modpost_flag=''
38055 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
38056 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
38057 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38058 (eval $ac_try) 2>&5
38059 ac_status=$?
38060 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38061 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
38062 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38063 (eval $ac_try) 2>&5
38064 ac_status=$?
38065 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38066 (exit $ac_status); }; }; then
38067
38068 { $as_echo "$as_me:$LINENO: result: yes" >&5
38069 $as_echo "yes" >&6; }
38070
38071 cat >>confdefs.h <<\_ACEOF
38072 #define HAVE_DISCARD_GRANULARITY 1
38073 _ACEOF
38074
38075
38076 else
38077 $as_echo "$as_me: failed program was:" >&5
38078 sed 's/^/| /' conftest.$ac_ext >&5
38079
38080 { $as_echo "$as_me:$LINENO: result: no" >&5
38081 $as_echo "no" >&6; }
38082
38083
38084
38085 fi
38086
38087 rm -Rf build
38088
38089
38090
38091
38092 { $as_echo "$as_me:$LINENO: checking whether super_block uses const struct xattr_handler" >&5
38093 $as_echo_n "checking whether super_block uses const struct xattr_handler... " >&6; }
38094
38095
38096 cat confdefs.h - <<_ACEOF >conftest.c
38097 /* confdefs.h. */
38098 _ACEOF
38099 cat confdefs.h >>conftest.$ac_ext
38100 cat >>conftest.$ac_ext <<_ACEOF
38101 /* end confdefs.h. */
38102
38103
38104 #include <linux/fs.h>
38105 #include <linux/xattr.h>
38106
38107 const struct xattr_handler xattr_test_handler = {
38108 .prefix = "test",
38109 .get = NULL,
38110 .set = NULL,
38111 };
38112
38113 const struct xattr_handler *xattr_handlers[] = {
38114 &xattr_test_handler,
38115 };
38116
38117 const struct super_block sb __attribute__ ((unused)) = {
38118 .s_xattr = xattr_handlers,
38119 };
38120
38121 int
38122 main (void)
38123 {
38124
38125
38126 ;
38127 return 0;
38128 }
38129
38130 _ACEOF
38131
38132
38133
38134 cat - <<_ACEOF >conftest.h
38135
38136 _ACEOF
38137
38138
38139 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
38140 echo "obj-m := conftest.o" >build/Makefile
38141 modpost_flag=''
38142 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
38143 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
38144 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38145 (eval $ac_try) 2>&5
38146 ac_status=$?
38147 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38148 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
38149 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38150 (eval $ac_try) 2>&5
38151 ac_status=$?
38152 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38153 (exit $ac_status); }; }; then
38154
38155 { $as_echo "$as_me:$LINENO: result: yes" >&5
38156 $as_echo "yes" >&6; }
38157
38158 cat >>confdefs.h <<\_ACEOF
38159 #define HAVE_CONST_XATTR_HANDLER 1
38160 _ACEOF
38161
38162
38163 else
38164 $as_echo "$as_me: failed program was:" >&5
38165 sed 's/^/| /' conftest.$ac_ext >&5
38166
38167 { $as_echo "$as_me:$LINENO: result: no" >&5
38168 $as_echo "no" >&6; }
38169
38170
38171
38172 fi
38173
38174 rm -Rf build
38175
38176
38177
38178
38179 { $as_echo "$as_me:$LINENO: checking whether xattr_handler has name" >&5
38180 $as_echo_n "checking whether xattr_handler has name... " >&6; }
38181
38182
38183 cat confdefs.h - <<_ACEOF >conftest.c
38184 /* confdefs.h. */
38185 _ACEOF
38186 cat confdefs.h >>conftest.$ac_ext
38187 cat >>conftest.$ac_ext <<_ACEOF
38188 /* end confdefs.h. */
38189
38190
38191 #include <linux/xattr.h>
38192
38193 static const struct xattr_handler
38194 xops __attribute__ ((unused)) = {
38195 .name = XATTR_NAME_POSIX_ACL_ACCESS,
38196 };
38197
38198 int
38199 main (void)
38200 {
38201
38202
38203 ;
38204 return 0;
38205 }
38206
38207 _ACEOF
38208
38209
38210
38211 cat - <<_ACEOF >conftest.h
38212
38213 _ACEOF
38214
38215
38216 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
38217 echo "obj-m := conftest.o" >build/Makefile
38218 modpost_flag=''
38219 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
38220 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
38221 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38222 (eval $ac_try) 2>&5
38223 ac_status=$?
38224 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38225 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
38226 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38227 (eval $ac_try) 2>&5
38228 ac_status=$?
38229 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38230 (exit $ac_status); }; }; then
38231
38232 { $as_echo "$as_me:$LINENO: result: yes" >&5
38233 $as_echo "yes" >&6; }
38234
38235 cat >>confdefs.h <<\_ACEOF
38236 #define HAVE_XATTR_HANDLER_NAME 1
38237 _ACEOF
38238
38239
38240 else
38241 $as_echo "$as_me: failed program was:" >&5
38242 sed 's/^/| /' conftest.$ac_ext >&5
38243
38244 { $as_echo "$as_me:$LINENO: result: no" >&5
38245 $as_echo "no" >&6; }
38246
38247
38248
38249 fi
38250
38251 rm -Rf build
38252
38253
38254
38255
38256 { $as_echo "$as_me:$LINENO: checking whether xattr_handler->get() wants both dentry and inode" >&5
38257 $as_echo_n "checking whether xattr_handler->get() wants both dentry and inode... " >&6; }
38258
38259
38260 cat confdefs.h - <<_ACEOF >conftest.c
38261 /* confdefs.h. */
38262 _ACEOF
38263 cat confdefs.h >>conftest.$ac_ext
38264 cat >>conftest.$ac_ext <<_ACEOF
38265 /* end confdefs.h. */
38266
38267
38268 #include <linux/xattr.h>
38269
38270 int get(const struct xattr_handler *handler,
38271 struct dentry *dentry, struct inode *inode,
38272 const char *name, void *buffer, size_t size) { return 0; }
38273 static const struct xattr_handler
38274 xops __attribute__ ((unused)) = {
38275 .get = get,
38276 };
38277
38278 int
38279 main (void)
38280 {
38281
38282
38283 ;
38284 return 0;
38285 }
38286
38287 _ACEOF
38288
38289
38290
38291 cat - <<_ACEOF >conftest.h
38292
38293 _ACEOF
38294
38295
38296 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
38297 echo "obj-m := conftest.o" >build/Makefile
38298 modpost_flag=''
38299 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
38300 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
38301 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38302 (eval $ac_try) 2>&5
38303 ac_status=$?
38304 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38305 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
38306 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38307 (eval $ac_try) 2>&5
38308 ac_status=$?
38309 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38310 (exit $ac_status); }; }; then
38311
38312 { $as_echo "$as_me:$LINENO: result: yes" >&5
38313 $as_echo "yes" >&6; }
38314
38315 cat >>confdefs.h <<\_ACEOF
38316 #define HAVE_XATTR_GET_DENTRY_INODE 1
38317 _ACEOF
38318
38319
38320 else
38321 $as_echo "$as_me: failed program was:" >&5
38322 sed 's/^/| /' conftest.$ac_ext >&5
38323
38324 { $as_echo "$as_me:$LINENO: result: no" >&5
38325 $as_echo "no" >&6; }
38326 { $as_echo "$as_me:$LINENO: checking whether xattr_handler->get() wants xattr_handler" >&5
38327 $as_echo_n "checking whether xattr_handler->get() wants xattr_handler... " >&6; }
38328
38329
38330 cat confdefs.h - <<_ACEOF >conftest.c
38331 /* confdefs.h. */
38332 _ACEOF
38333 cat confdefs.h >>conftest.$ac_ext
38334 cat >>conftest.$ac_ext <<_ACEOF
38335 /* end confdefs.h. */
38336
38337
38338 #include <linux/xattr.h>
38339
38340 int get(const struct xattr_handler *handler,
38341 struct dentry *dentry, const char *name,
38342 void *buffer, size_t size) { return 0; }
38343 static const struct xattr_handler
38344 xops __attribute__ ((unused)) = {
38345 .get = get,
38346 };
38347
38348 int
38349 main (void)
38350 {
38351
38352
38353 ;
38354 return 0;
38355 }
38356
38357 _ACEOF
38358
38359
38360
38361 cat - <<_ACEOF >conftest.h
38362
38363 _ACEOF
38364
38365
38366 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
38367 echo "obj-m := conftest.o" >build/Makefile
38368 modpost_flag=''
38369 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
38370 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
38371 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38372 (eval $ac_try) 2>&5
38373 ac_status=$?
38374 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38375 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
38376 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38377 (eval $ac_try) 2>&5
38378 ac_status=$?
38379 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38380 (exit $ac_status); }; }; then
38381
38382 { $as_echo "$as_me:$LINENO: result: yes" >&5
38383 $as_echo "yes" >&6; }
38384
38385 cat >>confdefs.h <<\_ACEOF
38386 #define HAVE_XATTR_GET_HANDLER 1
38387 _ACEOF
38388
38389
38390 else
38391 $as_echo "$as_me: failed program was:" >&5
38392 sed 's/^/| /' conftest.$ac_ext >&5
38393
38394 { $as_echo "$as_me:$LINENO: result: no" >&5
38395 $as_echo "no" >&6; }
38396 { $as_echo "$as_me:$LINENO: checking whether xattr_handler->get() wants dentry" >&5
38397 $as_echo_n "checking whether xattr_handler->get() wants dentry... " >&6; }
38398
38399
38400 cat confdefs.h - <<_ACEOF >conftest.c
38401 /* confdefs.h. */
38402 _ACEOF
38403 cat confdefs.h >>conftest.$ac_ext
38404 cat >>conftest.$ac_ext <<_ACEOF
38405 /* end confdefs.h. */
38406
38407
38408 #include <linux/xattr.h>
38409
38410 int get(struct dentry *dentry, const char *name,
38411 void *buffer, size_t size, int handler_flags)
38412 { return 0; }
38413 static const struct xattr_handler
38414 xops __attribute__ ((unused)) = {
38415 .get = get,
38416 };
38417
38418 int
38419 main (void)
38420 {
38421
38422
38423 ;
38424 return 0;
38425 }
38426
38427 _ACEOF
38428
38429
38430
38431 cat - <<_ACEOF >conftest.h
38432
38433 _ACEOF
38434
38435
38436 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
38437 echo "obj-m := conftest.o" >build/Makefile
38438 modpost_flag=''
38439 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
38440 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
38441 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38442 (eval $ac_try) 2>&5
38443 ac_status=$?
38444 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38445 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
38446 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38447 (eval $ac_try) 2>&5
38448 ac_status=$?
38449 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38450 (exit $ac_status); }; }; then
38451
38452 { $as_echo "$as_me:$LINENO: result: yes" >&5
38453 $as_echo "yes" >&6; }
38454
38455 cat >>confdefs.h <<\_ACEOF
38456 #define HAVE_XATTR_GET_DENTRY 1
38457 _ACEOF
38458
38459
38460 else
38461 $as_echo "$as_me: failed program was:" >&5
38462 sed 's/^/| /' conftest.$ac_ext >&5
38463
38464 { $as_echo "$as_me:$LINENO: result: no" >&5
38465 $as_echo "no" >&6; }
38466 { $as_echo "$as_me:$LINENO: checking whether xattr_handler->get() wants inode" >&5
38467 $as_echo_n "checking whether xattr_handler->get() wants inode... " >&6; }
38468
38469
38470 cat confdefs.h - <<_ACEOF >conftest.c
38471 /* confdefs.h. */
38472 _ACEOF
38473 cat confdefs.h >>conftest.$ac_ext
38474 cat >>conftest.$ac_ext <<_ACEOF
38475 /* end confdefs.h. */
38476
38477
38478 #include <linux/xattr.h>
38479
38480 int get(struct inode *ip, const char *name,
38481 void *buffer, size_t size) { return 0; }
38482 static const struct xattr_handler
38483 xops __attribute__ ((unused)) = {
38484 .get = get,
38485 };
38486
38487 int
38488 main (void)
38489 {
38490
38491
38492 ;
38493 return 0;
38494 }
38495
38496 _ACEOF
38497
38498
38499
38500 cat - <<_ACEOF >conftest.h
38501
38502 _ACEOF
38503
38504
38505 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
38506 echo "obj-m := conftest.o" >build/Makefile
38507 modpost_flag=''
38508 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
38509 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
38510 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38511 (eval $ac_try) 2>&5
38512 ac_status=$?
38513 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38514 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
38515 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38516 (eval $ac_try) 2>&5
38517 ac_status=$?
38518 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38519 (exit $ac_status); }; }; then
38520
38521 { $as_echo "$as_me:$LINENO: result: yes" >&5
38522 $as_echo "yes" >&6; }
38523
38524 cat >>confdefs.h <<\_ACEOF
38525 #define HAVE_XATTR_GET_INODE 1
38526 _ACEOF
38527
38528
38529 else
38530 $as_echo "$as_me: failed program was:" >&5
38531 sed 's/^/| /' conftest.$ac_ext >&5
38532
38533 { { $as_echo "$as_me:$LINENO: error: no; please file a bug report" >&5
38534 $as_echo "$as_me: error: no; please file a bug report" >&2;}
38535 { (exit 1); exit 1; }; }
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
38555 fi
38556
38557 rm -Rf build
38558
38559
38560
38561
38562
38563 fi
38564
38565 rm -Rf build
38566
38567
38568
38569
38570 { $as_echo "$as_me:$LINENO: checking whether xattr_handler->set() wants both dentry and inode" >&5
38571 $as_echo_n "checking whether xattr_handler->set() wants both dentry and inode... " >&6; }
38572
38573
38574 cat confdefs.h - <<_ACEOF >conftest.c
38575 /* confdefs.h. */
38576 _ACEOF
38577 cat confdefs.h >>conftest.$ac_ext
38578 cat >>conftest.$ac_ext <<_ACEOF
38579 /* end confdefs.h. */
38580
38581
38582 #include <linux/xattr.h>
38583
38584 int set(const struct xattr_handler *handler,
38585 struct dentry *dentry, struct inode *inode,
38586 const char *name, const void *buffer,
38587 size_t size, int flags)
38588 { return 0; }
38589 static const struct xattr_handler
38590 xops __attribute__ ((unused)) = {
38591 .set = set,
38592 };
38593
38594 int
38595 main (void)
38596 {
38597
38598
38599 ;
38600 return 0;
38601 }
38602
38603 _ACEOF
38604
38605
38606
38607 cat - <<_ACEOF >conftest.h
38608
38609 _ACEOF
38610
38611
38612 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
38613 echo "obj-m := conftest.o" >build/Makefile
38614 modpost_flag=''
38615 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
38616 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
38617 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38618 (eval $ac_try) 2>&5
38619 ac_status=$?
38620 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38621 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
38622 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38623 (eval $ac_try) 2>&5
38624 ac_status=$?
38625 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38626 (exit $ac_status); }; }; then
38627
38628 { $as_echo "$as_me:$LINENO: result: yes" >&5
38629 $as_echo "yes" >&6; }
38630
38631 cat >>confdefs.h <<\_ACEOF
38632 #define HAVE_XATTR_SET_DENTRY_INODE 1
38633 _ACEOF
38634
38635
38636 else
38637 $as_echo "$as_me: failed program was:" >&5
38638 sed 's/^/| /' conftest.$ac_ext >&5
38639
38640 { $as_echo "$as_me:$LINENO: result: no" >&5
38641 $as_echo "no" >&6; }
38642 { $as_echo "$as_me:$LINENO: checking whether xattr_handler->set() wants xattr_handler" >&5
38643 $as_echo_n "checking whether xattr_handler->set() wants xattr_handler... " >&6; }
38644
38645
38646 cat confdefs.h - <<_ACEOF >conftest.c
38647 /* confdefs.h. */
38648 _ACEOF
38649 cat confdefs.h >>conftest.$ac_ext
38650 cat >>conftest.$ac_ext <<_ACEOF
38651 /* end confdefs.h. */
38652
38653
38654 #include <linux/xattr.h>
38655
38656 int set(const struct xattr_handler *handler,
38657 struct dentry *dentry, const char *name,
38658 const void *buffer, size_t size, int flags)
38659 { return 0; }
38660 static const struct xattr_handler
38661 xops __attribute__ ((unused)) = {
38662 .set = set,
38663 };
38664
38665 int
38666 main (void)
38667 {
38668
38669
38670 ;
38671 return 0;
38672 }
38673
38674 _ACEOF
38675
38676
38677
38678 cat - <<_ACEOF >conftest.h
38679
38680 _ACEOF
38681
38682
38683 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
38684 echo "obj-m := conftest.o" >build/Makefile
38685 modpost_flag=''
38686 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
38687 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
38688 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38689 (eval $ac_try) 2>&5
38690 ac_status=$?
38691 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38692 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
38693 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38694 (eval $ac_try) 2>&5
38695 ac_status=$?
38696 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38697 (exit $ac_status); }; }; then
38698
38699 { $as_echo "$as_me:$LINENO: result: yes" >&5
38700 $as_echo "yes" >&6; }
38701
38702 cat >>confdefs.h <<\_ACEOF
38703 #define HAVE_XATTR_SET_HANDLER 1
38704 _ACEOF
38705
38706
38707 else
38708 $as_echo "$as_me: failed program was:" >&5
38709 sed 's/^/| /' conftest.$ac_ext >&5
38710
38711 { $as_echo "$as_me:$LINENO: result: no" >&5
38712 $as_echo "no" >&6; }
38713 { $as_echo "$as_me:$LINENO: checking whether xattr_handler->set() wants dentry" >&5
38714 $as_echo_n "checking whether xattr_handler->set() wants dentry... " >&6; }
38715
38716
38717 cat confdefs.h - <<_ACEOF >conftest.c
38718 /* confdefs.h. */
38719 _ACEOF
38720 cat confdefs.h >>conftest.$ac_ext
38721 cat >>conftest.$ac_ext <<_ACEOF
38722 /* end confdefs.h. */
38723
38724
38725 #include <linux/xattr.h>
38726
38727 int set(struct dentry *dentry, const char *name,
38728 const void *buffer, size_t size, int flags,
38729 int handler_flags) { return 0; }
38730 static const struct xattr_handler
38731 xops __attribute__ ((unused)) = {
38732 .set = set,
38733 };
38734
38735 int
38736 main (void)
38737 {
38738
38739
38740 ;
38741 return 0;
38742 }
38743
38744 _ACEOF
38745
38746
38747
38748 cat - <<_ACEOF >conftest.h
38749
38750 _ACEOF
38751
38752
38753 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
38754 echo "obj-m := conftest.o" >build/Makefile
38755 modpost_flag=''
38756 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
38757 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
38758 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38759 (eval $ac_try) 2>&5
38760 ac_status=$?
38761 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38762 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
38763 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38764 (eval $ac_try) 2>&5
38765 ac_status=$?
38766 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38767 (exit $ac_status); }; }; then
38768
38769 { $as_echo "$as_me:$LINENO: result: yes" >&5
38770 $as_echo "yes" >&6; }
38771
38772 cat >>confdefs.h <<\_ACEOF
38773 #define HAVE_XATTR_SET_DENTRY 1
38774 _ACEOF
38775
38776
38777 else
38778 $as_echo "$as_me: failed program was:" >&5
38779 sed 's/^/| /' conftest.$ac_ext >&5
38780
38781 { $as_echo "$as_me:$LINENO: result: no" >&5
38782 $as_echo "no" >&6; }
38783 { $as_echo "$as_me:$LINENO: checking whether xattr_handler->set() wants inode" >&5
38784 $as_echo_n "checking whether xattr_handler->set() wants inode... " >&6; }
38785
38786
38787 cat confdefs.h - <<_ACEOF >conftest.c
38788 /* confdefs.h. */
38789 _ACEOF
38790 cat confdefs.h >>conftest.$ac_ext
38791 cat >>conftest.$ac_ext <<_ACEOF
38792 /* end confdefs.h. */
38793
38794
38795 #include <linux/xattr.h>
38796
38797 int set(struct inode *ip, const char *name,
38798 const void *buffer, size_t size, int flags)
38799 { return 0; }
38800 static const struct xattr_handler
38801 xops __attribute__ ((unused)) = {
38802 .set = set,
38803 };
38804
38805 int
38806 main (void)
38807 {
38808
38809
38810 ;
38811 return 0;
38812 }
38813
38814 _ACEOF
38815
38816
38817
38818 cat - <<_ACEOF >conftest.h
38819
38820 _ACEOF
38821
38822
38823 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
38824 echo "obj-m := conftest.o" >build/Makefile
38825 modpost_flag=''
38826 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
38827 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
38828 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38829 (eval $ac_try) 2>&5
38830 ac_status=$?
38831 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38832 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
38833 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38834 (eval $ac_try) 2>&5
38835 ac_status=$?
38836 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38837 (exit $ac_status); }; }; then
38838
38839 { $as_echo "$as_me:$LINENO: result: yes" >&5
38840 $as_echo "yes" >&6; }
38841
38842 cat >>confdefs.h <<\_ACEOF
38843 #define HAVE_XATTR_SET_INODE 1
38844 _ACEOF
38845
38846
38847 else
38848 $as_echo "$as_me: failed program was:" >&5
38849 sed 's/^/| /' conftest.$ac_ext >&5
38850
38851 { { $as_echo "$as_me:$LINENO: error: no; please file a bug report" >&5
38852 $as_echo "$as_me: error: no; please file a bug report" >&2;}
38853 { (exit 1); exit 1; }; }
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
38873 fi
38874
38875 rm -Rf build
38876
38877
38878
38879
38880
38881 fi
38882
38883 rm -Rf build
38884
38885
38886
38887
38888 { $as_echo "$as_me:$LINENO: checking whether xattr_handler->list() wants simple" >&5
38889 $as_echo_n "checking whether xattr_handler->list() wants simple... " >&6; }
38890
38891
38892 cat confdefs.h - <<_ACEOF >conftest.c
38893 /* confdefs.h. */
38894 _ACEOF
38895 cat confdefs.h >>conftest.$ac_ext
38896 cat >>conftest.$ac_ext <<_ACEOF
38897 /* end confdefs.h. */
38898
38899
38900 #include <linux/xattr.h>
38901
38902 bool list(struct dentry *dentry) { return 0; }
38903 static const struct xattr_handler
38904 xops __attribute__ ((unused)) = {
38905 .list = list,
38906 };
38907
38908 int
38909 main (void)
38910 {
38911
38912
38913 ;
38914 return 0;
38915 }
38916
38917 _ACEOF
38918
38919
38920
38921 cat - <<_ACEOF >conftest.h
38922
38923 _ACEOF
38924
38925
38926 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
38927 echo "obj-m := conftest.o" >build/Makefile
38928 modpost_flag=''
38929 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
38930 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
38931 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38932 (eval $ac_try) 2>&5
38933 ac_status=$?
38934 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38935 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
38936 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38937 (eval $ac_try) 2>&5
38938 ac_status=$?
38939 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38940 (exit $ac_status); }; }; then
38941
38942 { $as_echo "$as_me:$LINENO: result: yes" >&5
38943 $as_echo "yes" >&6; }
38944
38945 cat >>confdefs.h <<\_ACEOF
38946 #define HAVE_XATTR_LIST_SIMPLE 1
38947 _ACEOF
38948
38949
38950 else
38951 $as_echo "$as_me: failed program was:" >&5
38952 sed 's/^/| /' conftest.$ac_ext >&5
38953
38954 { $as_echo "$as_me:$LINENO: result: no" >&5
38955 $as_echo "no" >&6; }
38956 { $as_echo "$as_me:$LINENO: checking whether xattr_handler->list() wants xattr_handler" >&5
38957 $as_echo_n "checking whether xattr_handler->list() wants xattr_handler... " >&6; }
38958
38959
38960 cat confdefs.h - <<_ACEOF >conftest.c
38961 /* confdefs.h. */
38962 _ACEOF
38963 cat confdefs.h >>conftest.$ac_ext
38964 cat >>conftest.$ac_ext <<_ACEOF
38965 /* end confdefs.h. */
38966
38967
38968 #include <linux/xattr.h>
38969
38970 size_t list(const struct xattr_handler *handler,
38971 struct dentry *dentry, char *list, size_t list_size,
38972 const char *name, size_t name_len) { return 0; }
38973 static const struct xattr_handler
38974 xops __attribute__ ((unused)) = {
38975 .list = list,
38976 };
38977
38978 int
38979 main (void)
38980 {
38981
38982
38983 ;
38984 return 0;
38985 }
38986
38987 _ACEOF
38988
38989
38990
38991 cat - <<_ACEOF >conftest.h
38992
38993 _ACEOF
38994
38995
38996 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
38997 echo "obj-m := conftest.o" >build/Makefile
38998 modpost_flag=''
38999 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
39000 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
39001 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39002 (eval $ac_try) 2>&5
39003 ac_status=$?
39004 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39005 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
39006 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39007 (eval $ac_try) 2>&5
39008 ac_status=$?
39009 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39010 (exit $ac_status); }; }; then
39011
39012 { $as_echo "$as_me:$LINENO: result: yes" >&5
39013 $as_echo "yes" >&6; }
39014
39015 cat >>confdefs.h <<\_ACEOF
39016 #define HAVE_XATTR_LIST_HANDLER 1
39017 _ACEOF
39018
39019
39020 else
39021 $as_echo "$as_me: failed program was:" >&5
39022 sed 's/^/| /' conftest.$ac_ext >&5
39023
39024 { $as_echo "$as_me:$LINENO: result: no" >&5
39025 $as_echo "no" >&6; }
39026 { $as_echo "$as_me:$LINENO: checking whether xattr_handler->list() wants dentry" >&5
39027 $as_echo_n "checking whether xattr_handler->list() wants dentry... " >&6; }
39028
39029
39030 cat confdefs.h - <<_ACEOF >conftest.c
39031 /* confdefs.h. */
39032 _ACEOF
39033 cat confdefs.h >>conftest.$ac_ext
39034 cat >>conftest.$ac_ext <<_ACEOF
39035 /* end confdefs.h. */
39036
39037
39038 #include <linux/xattr.h>
39039
39040 size_t list(struct dentry *dentry,
39041 char *list, size_t list_size,
39042 const char *name, size_t name_len,
39043 int handler_flags) { return 0; }
39044 static const struct xattr_handler
39045 xops __attribute__ ((unused)) = {
39046 .list = list,
39047 };
39048
39049 int
39050 main (void)
39051 {
39052
39053
39054 ;
39055 return 0;
39056 }
39057
39058 _ACEOF
39059
39060
39061
39062 cat - <<_ACEOF >conftest.h
39063
39064 _ACEOF
39065
39066
39067 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
39068 echo "obj-m := conftest.o" >build/Makefile
39069 modpost_flag=''
39070 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
39071 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
39072 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39073 (eval $ac_try) 2>&5
39074 ac_status=$?
39075 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39076 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
39077 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39078 (eval $ac_try) 2>&5
39079 ac_status=$?
39080 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39081 (exit $ac_status); }; }; then
39082
39083 { $as_echo "$as_me:$LINENO: result: yes" >&5
39084 $as_echo "yes" >&6; }
39085
39086 cat >>confdefs.h <<\_ACEOF
39087 #define HAVE_XATTR_LIST_DENTRY 1
39088 _ACEOF
39089
39090
39091 else
39092 $as_echo "$as_me: failed program was:" >&5
39093 sed 's/^/| /' conftest.$ac_ext >&5
39094
39095 { $as_echo "$as_me:$LINENO: result: no" >&5
39096 $as_echo "no" >&6; }
39097 { $as_echo "$as_me:$LINENO: checking whether xattr_handler->list() wants inode" >&5
39098 $as_echo_n "checking whether xattr_handler->list() wants inode... " >&6; }
39099
39100
39101 cat confdefs.h - <<_ACEOF >conftest.c
39102 /* confdefs.h. */
39103 _ACEOF
39104 cat confdefs.h >>conftest.$ac_ext
39105 cat >>conftest.$ac_ext <<_ACEOF
39106 /* end confdefs.h. */
39107
39108
39109 #include <linux/xattr.h>
39110
39111 size_t list(struct inode *ip, char *lst,
39112 size_t list_size, const char *name,
39113 size_t name_len) { return 0; }
39114 static const struct xattr_handler
39115 xops __attribute__ ((unused)) = {
39116 .list = list,
39117 };
39118
39119 int
39120 main (void)
39121 {
39122
39123
39124 ;
39125 return 0;
39126 }
39127
39128 _ACEOF
39129
39130
39131
39132 cat - <<_ACEOF >conftest.h
39133
39134 _ACEOF
39135
39136
39137 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
39138 echo "obj-m := conftest.o" >build/Makefile
39139 modpost_flag=''
39140 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
39141 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
39142 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39143 (eval $ac_try) 2>&5
39144 ac_status=$?
39145 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39146 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
39147 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39148 (eval $ac_try) 2>&5
39149 ac_status=$?
39150 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39151 (exit $ac_status); }; }; then
39152
39153 { $as_echo "$as_me:$LINENO: result: yes" >&5
39154 $as_echo "yes" >&6; }
39155
39156 cat >>confdefs.h <<\_ACEOF
39157 #define HAVE_XATTR_LIST_INODE 1
39158 _ACEOF
39159
39160
39161 else
39162 $as_echo "$as_me: failed program was:" >&5
39163 sed 's/^/| /' conftest.$ac_ext >&5
39164
39165 { { $as_echo "$as_me:$LINENO: error: no; please file a bug report" >&5
39166 $as_echo "$as_me: error: no; please file a bug report" >&2;}
39167 { (exit 1); exit 1; }; }
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
39187 fi
39188
39189 rm -Rf build
39190
39191
39192
39193
39194
39195 fi
39196
39197 rm -Rf build
39198
39199
39200
39201
39202 { $as_echo "$as_me:$LINENO: checking whether inode_owner_or_capable() exists" >&5
39203 $as_echo_n "checking whether inode_owner_or_capable() exists... " >&6; }
39204
39205
39206 cat confdefs.h - <<_ACEOF >conftest.c
39207 /* confdefs.h. */
39208 _ACEOF
39209 cat confdefs.h >>conftest.$ac_ext
39210 cat >>conftest.$ac_ext <<_ACEOF
39211 /* end confdefs.h. */
39212
39213
39214 #include <linux/fs.h>
39215
39216 int
39217 main (void)
39218 {
39219
39220 struct inode *ip = NULL;
39221 (void) inode_owner_or_capable(ip);
39222
39223 ;
39224 return 0;
39225 }
39226
39227 _ACEOF
39228
39229
39230
39231 cat - <<_ACEOF >conftest.h
39232
39233 _ACEOF
39234
39235
39236 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
39237 echo "obj-m := conftest.o" >build/Makefile
39238 modpost_flag=''
39239 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
39240 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
39241 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39242 (eval $ac_try) 2>&5
39243 ac_status=$?
39244 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39245 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
39246 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39247 (eval $ac_try) 2>&5
39248 ac_status=$?
39249 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39250 (exit $ac_status); }; }; then
39251
39252 { $as_echo "$as_me:$LINENO: result: yes" >&5
39253 $as_echo "yes" >&6; }
39254
39255 cat >>confdefs.h <<\_ACEOF
39256 #define HAVE_INODE_OWNER_OR_CAPABLE 1
39257 _ACEOF
39258
39259
39260 else
39261 $as_echo "$as_me: failed program was:" >&5
39262 sed 's/^/| /' conftest.$ac_ext >&5
39263
39264 { $as_echo "$as_me:$LINENO: result: no" >&5
39265 $as_echo "no" >&6; }
39266 { $as_echo "$as_me:$LINENO: checking whether is_owner_or_cap() exists" >&5
39267 $as_echo_n "checking whether is_owner_or_cap() exists... " >&6; }
39268
39269
39270 cat confdefs.h - <<_ACEOF >conftest.c
39271 /* confdefs.h. */
39272 _ACEOF
39273 cat confdefs.h >>conftest.$ac_ext
39274 cat >>conftest.$ac_ext <<_ACEOF
39275 /* end confdefs.h. */
39276
39277
39278 #include <linux/fs.h>
39279 #include <linux/sched.h>
39280
39281 int
39282 main (void)
39283 {
39284
39285 struct inode *ip = NULL;
39286 (void) is_owner_or_cap(ip);
39287
39288 ;
39289 return 0;
39290 }
39291
39292 _ACEOF
39293
39294
39295
39296 cat - <<_ACEOF >conftest.h
39297
39298 _ACEOF
39299
39300
39301 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
39302 echo "obj-m := conftest.o" >build/Makefile
39303 modpost_flag=''
39304 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
39305 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
39306 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39307 (eval $ac_try) 2>&5
39308 ac_status=$?
39309 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39310 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
39311 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39312 (eval $ac_try) 2>&5
39313 ac_status=$?
39314 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39315 (exit $ac_status); }; }; then
39316
39317 { $as_echo "$as_me:$LINENO: result: yes" >&5
39318 $as_echo "yes" >&6; }
39319
39320 cat >>confdefs.h <<\_ACEOF
39321 #define HAVE_IS_OWNER_OR_CAP 1
39322 _ACEOF
39323
39324
39325 else
39326 $as_echo "$as_me: failed program was:" >&5
39327 sed 's/^/| /' conftest.$ac_ext >&5
39328
39329 { { $as_echo "$as_me:$LINENO: error: no - Please file a bug report at
39330 https://github.com/zfsonlinux/zfs/issues/new" >&5
39331 $as_echo "$as_me: error: no - Please file a bug report at
39332 https://github.com/zfsonlinux/zfs/issues/new" >&2;}
39333 { (exit 1); exit 1; }; }
39334
39335
39336
39337 fi
39338
39339 rm -Rf build
39340
39341
39342
39343
39344
39345 fi
39346
39347 rm -Rf build
39348
39349
39350
39351
39352 { $as_echo "$as_me:$LINENO: checking whether posix_acl_from_xattr() needs user_ns" >&5
39353 $as_echo_n "checking whether posix_acl_from_xattr() needs user_ns... " >&6; }
39354
39355
39356 cat confdefs.h - <<_ACEOF >conftest.c
39357 /* confdefs.h. */
39358 _ACEOF
39359 cat confdefs.h >>conftest.$ac_ext
39360 cat >>conftest.$ac_ext <<_ACEOF
39361 /* end confdefs.h. */
39362
39363
39364 #include <linux/cred.h>
39365 #include <linux/fs.h>
39366 #include <linux/posix_acl_xattr.h>
39367
39368 int
39369 main (void)
39370 {
39371
39372 posix_acl_from_xattr(&init_user_ns, NULL, 0);
39373
39374 ;
39375 return 0;
39376 }
39377
39378 _ACEOF
39379
39380
39381
39382 cat - <<_ACEOF >conftest.h
39383
39384 _ACEOF
39385
39386
39387 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
39388 echo "obj-m := conftest.o" >build/Makefile
39389 modpost_flag=''
39390 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
39391 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
39392 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39393 (eval $ac_try) 2>&5
39394 ac_status=$?
39395 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39396 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
39397 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39398 (eval $ac_try) 2>&5
39399 ac_status=$?
39400 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39401 (exit $ac_status); }; }; then
39402
39403 { $as_echo "$as_me:$LINENO: result: yes" >&5
39404 $as_echo "yes" >&6; }
39405
39406 cat >>confdefs.h <<\_ACEOF
39407 #define HAVE_POSIX_ACL_FROM_XATTR_USERNS 1
39408 _ACEOF
39409
39410
39411 else
39412 $as_echo "$as_me: failed program was:" >&5
39413 sed 's/^/| /' conftest.$ac_ext >&5
39414
39415 { $as_echo "$as_me:$LINENO: result: no" >&5
39416 $as_echo "no" >&6; }
39417
39418
39419
39420 fi
39421
39422 rm -Rf build
39423
39424
39425
39426
39427 { $as_echo "$as_me:$LINENO: checking whether posix_acl_release() is available" >&5
39428 $as_echo_n "checking whether posix_acl_release() is available... " >&6; }
39429
39430
39431 cat confdefs.h - <<_ACEOF >conftest.c
39432 /* confdefs.h. */
39433 _ACEOF
39434 cat confdefs.h >>conftest.$ac_ext
39435 cat >>conftest.$ac_ext <<_ACEOF
39436 /* end confdefs.h. */
39437
39438
39439 #include <linux/cred.h>
39440 #include <linux/fs.h>
39441 #include <linux/posix_acl.h>
39442
39443 int
39444 main (void)
39445 {
39446
39447 struct posix_acl* tmp = posix_acl_alloc(1, 0);
39448 posix_acl_release(tmp);
39449
39450 ;
39451 return 0;
39452 }
39453
39454 _ACEOF
39455
39456
39457
39458 cat - <<_ACEOF >conftest.h
39459
39460 _ACEOF
39461
39462
39463 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
39464 echo "obj-m := conftest.o" >build/Makefile
39465 modpost_flag=''
39466 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
39467 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
39468 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39469 (eval $ac_try) 2>&5
39470 ac_status=$?
39471 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39472 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
39473 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39474 (eval $ac_try) 2>&5
39475 ac_status=$?
39476 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39477 (exit $ac_status); }; }; then
39478
39479 { $as_echo "$as_me:$LINENO: result: yes" >&5
39480 $as_echo "yes" >&6; }
39481
39482 cat >>confdefs.h <<\_ACEOF
39483 #define HAVE_POSIX_ACL_RELEASE 1
39484 _ACEOF
39485
39486
39487 { $as_echo "$as_me:$LINENO: checking whether posix_acl_release() is GPL-only" >&5
39488 $as_echo_n "checking whether posix_acl_release() is GPL-only... " >&6; }
39489
39490
39491 cat confdefs.h - <<_ACEOF >conftest.c
39492 /* confdefs.h. */
39493 _ACEOF
39494 cat confdefs.h >>conftest.$ac_ext
39495 cat >>conftest.$ac_ext <<_ACEOF
39496 /* end confdefs.h. */
39497
39498
39499 #include <linux/module.h>
39500 #include <linux/cred.h>
39501 #include <linux/fs.h>
39502 #include <linux/posix_acl.h>
39503
39504 MODULE_LICENSE("$ZFS_META_LICENSE");
39505
39506 int
39507 main (void)
39508 {
39509
39510 struct posix_acl* tmp = posix_acl_alloc(1, 0);
39511 posix_acl_release(tmp);
39512
39513 ;
39514 return 0;
39515 }
39516
39517 _ACEOF
39518
39519
39520
39521 cat - <<_ACEOF >conftest.h
39522
39523 _ACEOF
39524
39525
39526 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
39527 echo "obj-m := conftest.o" >build/Makefile
39528 modpost_flag=''
39529 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
39530 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
39531 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39532 (eval $ac_try) 2>&5
39533 ac_status=$?
39534 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39535 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
39536 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39537 (eval $ac_try) 2>&5
39538 ac_status=$?
39539 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39540 (exit $ac_status); }; }; then
39541
39542 { $as_echo "$as_me:$LINENO: result: no" >&5
39543 $as_echo "no" >&6; }
39544
39545 else
39546 $as_echo "$as_me: failed program was:" >&5
39547 sed 's/^/| /' conftest.$ac_ext >&5
39548
39549 { $as_echo "$as_me:$LINENO: result: yes" >&5
39550 $as_echo "yes" >&6; }
39551
39552 cat >>confdefs.h <<\_ACEOF
39553 #define HAVE_POSIX_ACL_RELEASE_GPL_ONLY 1
39554 _ACEOF
39555
39556
39557
39558
39559 fi
39560
39561 rm -Rf build
39562
39563
39564
39565 else
39566 $as_echo "$as_me: failed program was:" >&5
39567 sed 's/^/| /' conftest.$ac_ext >&5
39568
39569 { $as_echo "$as_me:$LINENO: result: no" >&5
39570 $as_echo "no" >&6; }
39571
39572
39573
39574 fi
39575
39576 rm -Rf build
39577
39578
39579
39580
39581 { $as_echo "$as_me:$LINENO: checking whether set_cached_acl() is usable" >&5
39582 $as_echo_n "checking whether set_cached_acl() is usable... " >&6; }
39583
39584
39585 cat confdefs.h - <<_ACEOF >conftest.c
39586 /* confdefs.h. */
39587 _ACEOF
39588 cat confdefs.h >>conftest.$ac_ext
39589 cat >>conftest.$ac_ext <<_ACEOF
39590 /* end confdefs.h. */
39591
39592
39593 #include <linux/module.h>
39594 #include <linux/cred.h>
39595 #include <linux/fs.h>
39596 #include <linux/posix_acl.h>
39597
39598 MODULE_LICENSE("$ZFS_META_LICENSE");
39599
39600 int
39601 main (void)
39602 {
39603
39604 struct inode *ip = NULL;
39605 struct posix_acl *acl = posix_acl_alloc(1, 0);
39606 set_cached_acl(ip, ACL_TYPE_ACCESS, acl);
39607 forget_cached_acl(ip, ACL_TYPE_ACCESS);
39608
39609 ;
39610 return 0;
39611 }
39612
39613 _ACEOF
39614
39615
39616
39617 cat - <<_ACEOF >conftest.h
39618
39619 _ACEOF
39620
39621
39622 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
39623 echo "obj-m := conftest.o" >build/Makefile
39624 modpost_flag=''
39625 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
39626 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
39627 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39628 (eval $ac_try) 2>&5
39629 ac_status=$?
39630 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39631 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
39632 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39633 (eval $ac_try) 2>&5
39634 ac_status=$?
39635 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39636 (exit $ac_status); }; }; then
39637
39638 { $as_echo "$as_me:$LINENO: result: yes" >&5
39639 $as_echo "yes" >&6; }
39640
39641 cat >>confdefs.h <<\_ACEOF
39642 #define HAVE_SET_CACHED_ACL_USABLE 1
39643 _ACEOF
39644
39645
39646 else
39647 $as_echo "$as_me: failed program was:" >&5
39648 sed 's/^/| /' conftest.$ac_ext >&5
39649
39650 { $as_echo "$as_me:$LINENO: result: no" >&5
39651 $as_echo "no" >&6; }
39652
39653
39654
39655 fi
39656
39657 rm -Rf build
39658
39659
39660
39661
39662 { $as_echo "$as_me:$LINENO: checking whether posix_acl_chmod exists" >&5
39663 $as_echo_n "checking whether posix_acl_chmod exists... " >&6; }
39664
39665
39666 cat confdefs.h - <<_ACEOF >conftest.c
39667 /* confdefs.h. */
39668 _ACEOF
39669 cat confdefs.h >>conftest.$ac_ext
39670 cat >>conftest.$ac_ext <<_ACEOF
39671 /* end confdefs.h. */
39672
39673
39674 #include <linux/fs.h>
39675 #include <linux/posix_acl.h>
39676
39677 int
39678 main (void)
39679 {
39680
39681 posix_acl_chmod(NULL, 0, 0)
39682
39683 ;
39684 return 0;
39685 }
39686
39687 _ACEOF
39688
39689
39690
39691 cat - <<_ACEOF >conftest.h
39692
39693 _ACEOF
39694
39695
39696 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
39697 echo "obj-m := conftest.o" >build/Makefile
39698 modpost_flag=''
39699 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
39700 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
39701 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39702 (eval $ac_try) 2>&5
39703 ac_status=$?
39704 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39705 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
39706 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39707 (eval $ac_try) 2>&5
39708 ac_status=$?
39709 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39710 (exit $ac_status); }; }; then
39711
39712 { $as_echo "$as_me:$LINENO: result: yes" >&5
39713 $as_echo "yes" >&6; }
39714
39715 cat >>confdefs.h <<\_ACEOF
39716 #define HAVE_POSIX_ACL_CHMOD 1
39717 _ACEOF
39718
39719
39720 else
39721 $as_echo "$as_me: failed program was:" >&5
39722 sed 's/^/| /' conftest.$ac_ext >&5
39723
39724 { $as_echo "$as_me:$LINENO: result: no" >&5
39725 $as_echo "no" >&6; }
39726
39727
39728
39729 fi
39730
39731 rm -Rf build
39732
39733
39734
39735 { $as_echo "$as_me:$LINENO: checking whether __posix_acl_chmod exists" >&5
39736 $as_echo_n "checking whether __posix_acl_chmod exists... " >&6; }
39737
39738
39739 cat confdefs.h - <<_ACEOF >conftest.c
39740 /* confdefs.h. */
39741 _ACEOF
39742 cat confdefs.h >>conftest.$ac_ext
39743 cat >>conftest.$ac_ext <<_ACEOF
39744 /* end confdefs.h. */
39745
39746
39747 #include <linux/fs.h>
39748 #include <linux/posix_acl.h>
39749
39750 int
39751 main (void)
39752 {
39753
39754 __posix_acl_chmod(NULL, 0, 0)
39755
39756 ;
39757 return 0;
39758 }
39759
39760 _ACEOF
39761
39762
39763
39764 cat - <<_ACEOF >conftest.h
39765
39766 _ACEOF
39767
39768
39769 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
39770 echo "obj-m := conftest.o" >build/Makefile
39771 modpost_flag=''
39772 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
39773 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
39774 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39775 (eval $ac_try) 2>&5
39776 ac_status=$?
39777 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39778 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
39779 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39780 (eval $ac_try) 2>&5
39781 ac_status=$?
39782 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39783 (exit $ac_status); }; }; then
39784
39785 { $as_echo "$as_me:$LINENO: result: yes" >&5
39786 $as_echo "yes" >&6; }
39787
39788 cat >>confdefs.h <<\_ACEOF
39789 #define HAVE___POSIX_ACL_CHMOD 1
39790 _ACEOF
39791
39792
39793 else
39794 $as_echo "$as_me: failed program was:" >&5
39795 sed 's/^/| /' conftest.$ac_ext >&5
39796
39797 { $as_echo "$as_me:$LINENO: result: no" >&5
39798 $as_echo "no" >&6; }
39799
39800
39801
39802 fi
39803
39804 rm -Rf build
39805
39806
39807
39808
39809 { $as_echo "$as_me:$LINENO: checking whether posix_acl_equiv_mode() wants umode_t" >&5
39810 $as_echo_n "checking whether posix_acl_equiv_mode() wants umode_t... " >&6; }
39811
39812
39813 cat confdefs.h - <<_ACEOF >conftest.c
39814 /* confdefs.h. */
39815 _ACEOF
39816 cat confdefs.h >>conftest.$ac_ext
39817 cat >>conftest.$ac_ext <<_ACEOF
39818 /* end confdefs.h. */
39819
39820
39821 #include <linux/fs.h>
39822 #include <linux/posix_acl.h>
39823
39824 int
39825 main (void)
39826 {
39827
39828 umode_t tmp;
39829 posix_acl_equiv_mode(NULL,&tmp);
39830
39831 ;
39832 return 0;
39833 }
39834
39835 _ACEOF
39836
39837
39838
39839 cat - <<_ACEOF >conftest.h
39840
39841 _ACEOF
39842
39843
39844 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
39845 echo "obj-m := conftest.o" >build/Makefile
39846 modpost_flag=''
39847 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
39848 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
39849 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39850 (eval $ac_try) 2>&5
39851 ac_status=$?
39852 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39853 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
39854 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39855 (eval $ac_try) 2>&5
39856 ac_status=$?
39857 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39858 (exit $ac_status); }; }; then
39859
39860 { $as_echo "$as_me:$LINENO: result: yes" >&5
39861 $as_echo "yes" >&6; }
39862
39863 cat >>confdefs.h <<\_ACEOF
39864 #define HAVE_POSIX_ACL_EQUIV_MODE_UMODE_T 1
39865 _ACEOF
39866
39867
39868 else
39869 $as_echo "$as_me: failed program was:" >&5
39870 sed 's/^/| /' conftest.$ac_ext >&5
39871
39872 { $as_echo "$as_me:$LINENO: result: no" >&5
39873 $as_echo "no" >&6; }
39874
39875
39876
39877 fi
39878
39879 rm -Rf build
39880
39881
39882
39883
39884 { $as_echo "$as_me:$LINENO: checking whether posix_acl_valid() wants user namespace" >&5
39885 $as_echo_n "checking whether posix_acl_valid() wants user namespace... " >&6; }
39886
39887
39888 cat confdefs.h - <<_ACEOF >conftest.c
39889 /* confdefs.h. */
39890 _ACEOF
39891 cat confdefs.h >>conftest.$ac_ext
39892 cat >>conftest.$ac_ext <<_ACEOF
39893 /* end confdefs.h. */
39894
39895
39896 #include <linux/fs.h>
39897 #include <linux/posix_acl.h>
39898
39899 int
39900 main (void)
39901 {
39902
39903 struct user_namespace *user_ns = NULL;
39904 const struct posix_acl *acl = NULL;
39905 int error;
39906
39907 error = posix_acl_valid(user_ns, acl);
39908
39909 ;
39910 return 0;
39911 }
39912
39913 _ACEOF
39914
39915
39916
39917 cat - <<_ACEOF >conftest.h
39918
39919 _ACEOF
39920
39921
39922 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
39923 echo "obj-m := conftest.o" >build/Makefile
39924 modpost_flag=''
39925 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
39926 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
39927 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39928 (eval $ac_try) 2>&5
39929 ac_status=$?
39930 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39931 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
39932 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39933 (eval $ac_try) 2>&5
39934 ac_status=$?
39935 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39936 (exit $ac_status); }; }; then
39937
39938 { $as_echo "$as_me:$LINENO: result: yes" >&5
39939 $as_echo "yes" >&6; }
39940
39941 cat >>confdefs.h <<\_ACEOF
39942 #define HAVE_POSIX_ACL_VALID_WITH_NS 1
39943 _ACEOF
39944
39945
39946 else
39947 $as_echo "$as_me: failed program was:" >&5
39948 sed 's/^/| /' conftest.$ac_ext >&5
39949
39950 { $as_echo "$as_me:$LINENO: result: no" >&5
39951 $as_echo "no" >&6; }
39952
39953
39954
39955 fi
39956
39957 rm -Rf build
39958
39959
39960
39961
39962 { $as_echo "$as_me:$LINENO: checking whether iops->permission() exists" >&5
39963 $as_echo_n "checking whether iops->permission() exists... " >&6; }
39964
39965
39966 cat confdefs.h - <<_ACEOF >conftest.c
39967 /* confdefs.h. */
39968 _ACEOF
39969 cat confdefs.h >>conftest.$ac_ext
39970 cat >>conftest.$ac_ext <<_ACEOF
39971 /* end confdefs.h. */
39972
39973
39974 #include <linux/fs.h>
39975
39976 int permission_fn(struct inode *inode, int mask) { return 0; }
39977
39978 static const struct inode_operations
39979 iops __attribute__ ((unused)) = {
39980 .permission = permission_fn,
39981 };
39982
39983 int
39984 main (void)
39985 {
39986
39987
39988 ;
39989 return 0;
39990 }
39991
39992 _ACEOF
39993
39994
39995
39996 cat - <<_ACEOF >conftest.h
39997
39998 _ACEOF
39999
40000
40001 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
40002 echo "obj-m := conftest.o" >build/Makefile
40003 modpost_flag=''
40004 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
40005 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
40006 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40007 (eval $ac_try) 2>&5
40008 ac_status=$?
40009 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
40010 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
40011 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40012 (eval $ac_try) 2>&5
40013 ac_status=$?
40014 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
40015 (exit $ac_status); }; }; then
40016
40017 { $as_echo "$as_me:$LINENO: result: yes" >&5
40018 $as_echo "yes" >&6; }
40019
40020 cat >>confdefs.h <<\_ACEOF
40021 #define HAVE_PERMISSION 1
40022 _ACEOF
40023
40024
40025 else
40026 $as_echo "$as_me: failed program was:" >&5
40027 sed 's/^/| /' conftest.$ac_ext >&5
40028
40029 { $as_echo "$as_me:$LINENO: result: no" >&5
40030 $as_echo "no" >&6; }
40031
40032
40033
40034 fi
40035
40036 rm -Rf build
40037
40038
40039
40040
40041 { $as_echo "$as_me:$LINENO: checking whether iops->permission() wants nameidata" >&5
40042 $as_echo_n "checking whether iops->permission() wants nameidata... " >&6; }
40043
40044
40045 cat confdefs.h - <<_ACEOF >conftest.c
40046 /* confdefs.h. */
40047 _ACEOF
40048 cat confdefs.h >>conftest.$ac_ext
40049 cat >>conftest.$ac_ext <<_ACEOF
40050 /* end confdefs.h. */
40051
40052
40053 #include <linux/fs.h>
40054 #include <linux/sched.h>
40055
40056 int permission_fn(struct inode *inode, int mask,
40057 struct nameidata *nd) { return 0; }
40058
40059 static const struct inode_operations
40060 iops __attribute__ ((unused)) = {
40061 .permission = permission_fn,
40062 };
40063
40064 int
40065 main (void)
40066 {
40067
40068
40069 ;
40070 return 0;
40071 }
40072
40073 _ACEOF
40074
40075
40076
40077 cat - <<_ACEOF >conftest.h
40078
40079 _ACEOF
40080
40081
40082 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
40083 echo "obj-m := conftest.o" >build/Makefile
40084 modpost_flag=''
40085 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
40086 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
40087 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40088 (eval $ac_try) 2>&5
40089 ac_status=$?
40090 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
40091 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
40092 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40093 (eval $ac_try) 2>&5
40094 ac_status=$?
40095 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
40096 (exit $ac_status); }; }; then
40097
40098 { $as_echo "$as_me:$LINENO: result: yes" >&5
40099 $as_echo "yes" >&6; }
40100
40101 cat >>confdefs.h <<\_ACEOF
40102 #define HAVE_PERMISSION 1
40103 _ACEOF
40104
40105
40106 cat >>confdefs.h <<\_ACEOF
40107 #define HAVE_PERMISSION_WITH_NAMEIDATA 1
40108 _ACEOF
40109
40110
40111 else
40112 $as_echo "$as_me: failed program was:" >&5
40113 sed 's/^/| /' conftest.$ac_ext >&5
40114
40115 { $as_echo "$as_me:$LINENO: result: no" >&5
40116 $as_echo "no" >&6; }
40117
40118
40119
40120 fi
40121
40122 rm -Rf build
40123
40124
40125
40126
40127 { $as_echo "$as_me:$LINENO: checking whether iops->check_acl() exists" >&5
40128 $as_echo_n "checking whether iops->check_acl() exists... " >&6; }
40129
40130
40131 cat confdefs.h - <<_ACEOF >conftest.c
40132 /* confdefs.h. */
40133 _ACEOF
40134 cat confdefs.h >>conftest.$ac_ext
40135 cat >>conftest.$ac_ext <<_ACEOF
40136 /* end confdefs.h. */
40137
40138
40139 #include <linux/fs.h>
40140
40141 int check_acl_fn(struct inode *inode, int mask) { return 0; }
40142
40143 static const struct inode_operations
40144 iops __attribute__ ((unused)) = {
40145 .check_acl = check_acl_fn,
40146 };
40147
40148 int
40149 main (void)
40150 {
40151
40152
40153 ;
40154 return 0;
40155 }
40156
40157 _ACEOF
40158
40159
40160
40161 cat - <<_ACEOF >conftest.h
40162
40163 _ACEOF
40164
40165
40166 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
40167 echo "obj-m := conftest.o" >build/Makefile
40168 modpost_flag=''
40169 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
40170 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
40171 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40172 (eval $ac_try) 2>&5
40173 ac_status=$?
40174 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
40175 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
40176 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40177 (eval $ac_try) 2>&5
40178 ac_status=$?
40179 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
40180 (exit $ac_status); }; }; then
40181
40182 { $as_echo "$as_me:$LINENO: result: yes" >&5
40183 $as_echo "yes" >&6; }
40184
40185 cat >>confdefs.h <<\_ACEOF
40186 #define HAVE_CHECK_ACL 1
40187 _ACEOF
40188
40189
40190 else
40191 $as_echo "$as_me: failed program was:" >&5
40192 sed 's/^/| /' conftest.$ac_ext >&5
40193
40194 { $as_echo "$as_me:$LINENO: result: no" >&5
40195 $as_echo "no" >&6; }
40196
40197
40198
40199 fi
40200
40201 rm -Rf build
40202
40203
40204
40205
40206 { $as_echo "$as_me:$LINENO: checking whether iops->check_acl() wants flags" >&5
40207 $as_echo_n "checking whether iops->check_acl() wants flags... " >&6; }
40208
40209
40210 cat confdefs.h - <<_ACEOF >conftest.c
40211 /* confdefs.h. */
40212 _ACEOF
40213 cat confdefs.h >>conftest.$ac_ext
40214 cat >>conftest.$ac_ext <<_ACEOF
40215 /* end confdefs.h. */
40216
40217
40218 #include <linux/fs.h>
40219
40220 int check_acl_fn(struct inode *inode, int mask,
40221 unsigned int flags) { return 0; }
40222
40223 static const struct inode_operations
40224 iops __attribute__ ((unused)) = {
40225 .check_acl = check_acl_fn,
40226 };
40227
40228 int
40229 main (void)
40230 {
40231
40232
40233 ;
40234 return 0;
40235 }
40236
40237 _ACEOF
40238
40239
40240
40241 cat - <<_ACEOF >conftest.h
40242
40243 _ACEOF
40244
40245
40246 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
40247 echo "obj-m := conftest.o" >build/Makefile
40248 modpost_flag=''
40249 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
40250 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
40251 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40252 (eval $ac_try) 2>&5
40253 ac_status=$?
40254 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
40255 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
40256 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40257 (eval $ac_try) 2>&5
40258 ac_status=$?
40259 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
40260 (exit $ac_status); }; }; then
40261
40262 { $as_echo "$as_me:$LINENO: result: yes" >&5
40263 $as_echo "yes" >&6; }
40264
40265 cat >>confdefs.h <<\_ACEOF
40266 #define HAVE_CHECK_ACL 1
40267 _ACEOF
40268
40269
40270 cat >>confdefs.h <<\_ACEOF
40271 #define HAVE_CHECK_ACL_WITH_FLAGS 1
40272 _ACEOF
40273
40274
40275 else
40276 $as_echo "$as_me: failed program was:" >&5
40277 sed 's/^/| /' conftest.$ac_ext >&5
40278
40279 { $as_echo "$as_me:$LINENO: result: no" >&5
40280 $as_echo "no" >&6; }
40281
40282
40283
40284 fi
40285
40286 rm -Rf build
40287
40288
40289
40290
40291 { $as_echo "$as_me:$LINENO: checking whether iops->get_acl() exists" >&5
40292 $as_echo_n "checking whether iops->get_acl() exists... " >&6; }
40293
40294
40295 cat confdefs.h - <<_ACEOF >conftest.c
40296 /* confdefs.h. */
40297 _ACEOF
40298 cat confdefs.h >>conftest.$ac_ext
40299 cat >>conftest.$ac_ext <<_ACEOF
40300 /* end confdefs.h. */
40301
40302
40303 #include <linux/fs.h>
40304
40305 struct posix_acl *get_acl_fn(struct inode *inode, int type)
40306 { return NULL; }
40307
40308 static const struct inode_operations
40309 iops __attribute__ ((unused)) = {
40310 .get_acl = get_acl_fn,
40311 };
40312
40313 int
40314 main (void)
40315 {
40316
40317
40318 ;
40319 return 0;
40320 }
40321
40322 _ACEOF
40323
40324
40325
40326 cat - <<_ACEOF >conftest.h
40327
40328 _ACEOF
40329
40330
40331 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
40332 echo "obj-m := conftest.o" >build/Makefile
40333 modpost_flag=''
40334 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
40335 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
40336 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40337 (eval $ac_try) 2>&5
40338 ac_status=$?
40339 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
40340 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
40341 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40342 (eval $ac_try) 2>&5
40343 ac_status=$?
40344 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
40345 (exit $ac_status); }; }; then
40346
40347 { $as_echo "$as_me:$LINENO: result: yes" >&5
40348 $as_echo "yes" >&6; }
40349
40350 cat >>confdefs.h <<\_ACEOF
40351 #define HAVE_GET_ACL 1
40352 _ACEOF
40353
40354
40355 else
40356 $as_echo "$as_me: failed program was:" >&5
40357 sed 's/^/| /' conftest.$ac_ext >&5
40358
40359 { $as_echo "$as_me:$LINENO: result: no" >&5
40360 $as_echo "no" >&6; }
40361
40362
40363
40364 fi
40365
40366 rm -Rf build
40367
40368
40369
40370
40371 { $as_echo "$as_me:$LINENO: checking whether iops->set_acl() exists" >&5
40372 $as_echo_n "checking whether iops->set_acl() exists... " >&6; }
40373
40374
40375 cat confdefs.h - <<_ACEOF >conftest.c
40376 /* confdefs.h. */
40377 _ACEOF
40378 cat confdefs.h >>conftest.$ac_ext
40379 cat >>conftest.$ac_ext <<_ACEOF
40380 /* end confdefs.h. */
40381
40382
40383 #include <linux/fs.h>
40384
40385 int set_acl_fn(struct inode *inode, struct posix_acl *acl, int type)
40386 { return 0; }
40387
40388 static const struct inode_operations
40389 iops __attribute__ ((unused)) = {
40390 .set_acl = set_acl_fn,
40391 };
40392
40393 int
40394 main (void)
40395 {
40396
40397
40398 ;
40399 return 0;
40400 }
40401
40402 _ACEOF
40403
40404
40405
40406 cat - <<_ACEOF >conftest.h
40407
40408 _ACEOF
40409
40410
40411 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
40412 echo "obj-m := conftest.o" >build/Makefile
40413 modpost_flag=''
40414 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
40415 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
40416 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40417 (eval $ac_try) 2>&5
40418 ac_status=$?
40419 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
40420 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
40421 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40422 (eval $ac_try) 2>&5
40423 ac_status=$?
40424 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
40425 (exit $ac_status); }; }; then
40426
40427 { $as_echo "$as_me:$LINENO: result: yes" >&5
40428 $as_echo "yes" >&6; }
40429
40430 cat >>confdefs.h <<\_ACEOF
40431 #define HAVE_SET_ACL 1
40432 _ACEOF
40433
40434
40435 else
40436 $as_echo "$as_me: failed program was:" >&5
40437 sed 's/^/| /' conftest.$ac_ext >&5
40438
40439 { $as_echo "$as_me:$LINENO: result: no" >&5
40440 $as_echo "no" >&6; }
40441
40442
40443
40444 fi
40445
40446 rm -Rf build
40447
40448
40449
40450
40451
40452 { $as_echo "$as_me:$LINENO: checking whether iops->getattr() takes a path" >&5
40453 $as_echo_n "checking whether iops->getattr() takes a path... " >&6; }
40454
40455
40456 cat confdefs.h - <<_ACEOF >conftest.c
40457 /* confdefs.h. */
40458 _ACEOF
40459 cat confdefs.h >>conftest.$ac_ext
40460 cat >>conftest.$ac_ext <<_ACEOF
40461 /* end confdefs.h. */
40462
40463
40464 #include <linux/fs.h>
40465
40466 int test_getattr(
40467 const struct path *p, struct kstat *k,
40468 u32 request_mask, unsigned int query_flags)
40469 { return 0; }
40470
40471 static const struct inode_operations
40472 iops __attribute__ ((unused)) = {
40473 .getattr = test_getattr,
40474 };
40475
40476 int
40477 main (void)
40478 {
40479
40480
40481 ;
40482 return 0;
40483 }
40484
40485 _ACEOF
40486
40487
40488
40489 cat - <<_ACEOF >conftest.h
40490
40491 _ACEOF
40492
40493
40494 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
40495 echo "obj-m := conftest.o" >build/Makefile
40496 modpost_flag=''
40497 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
40498 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
40499 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40500 (eval $ac_try) 2>&5
40501 ac_status=$?
40502 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
40503 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
40504 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40505 (eval $ac_try) 2>&5
40506 ac_status=$?
40507 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
40508 (exit $ac_status); }; }; then
40509
40510 { $as_echo "$as_me:$LINENO: result: yes" >&5
40511 $as_echo "yes" >&6; }
40512
40513 cat >>confdefs.h <<\_ACEOF
40514 #define HAVE_PATH_IOPS_GETATTR 1
40515 _ACEOF
40516
40517
40518 else
40519 $as_echo "$as_me: failed program was:" >&5
40520 sed 's/^/| /' conftest.$ac_ext >&5
40521
40522 { $as_echo "$as_me:$LINENO: result: no" >&5
40523 $as_echo "no" >&6; }
40524
40525
40526
40527 fi
40528
40529 rm -Rf build
40530
40531
40532
40533
40534 { $as_echo "$as_me:$LINENO: checking whether iops->getattr() takes a vfsmount" >&5
40535 $as_echo_n "checking whether iops->getattr() takes a vfsmount... " >&6; }
40536
40537
40538 cat confdefs.h - <<_ACEOF >conftest.c
40539 /* confdefs.h. */
40540 _ACEOF
40541 cat confdefs.h >>conftest.$ac_ext
40542 cat >>conftest.$ac_ext <<_ACEOF
40543 /* end confdefs.h. */
40544
40545
40546 #include <linux/fs.h>
40547
40548 int test_getattr(
40549 struct vfsmount *mnt, struct dentry *d,
40550 struct kstat *k)
40551 { return 0; }
40552
40553 static const struct inode_operations
40554 iops __attribute__ ((unused)) = {
40555 .getattr = test_getattr,
40556 };
40557
40558 int
40559 main (void)
40560 {
40561
40562
40563 ;
40564 return 0;
40565 }
40566
40567 _ACEOF
40568
40569
40570
40571 cat - <<_ACEOF >conftest.h
40572
40573 _ACEOF
40574
40575
40576 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
40577 echo "obj-m := conftest.o" >build/Makefile
40578 modpost_flag=''
40579 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
40580 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
40581 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40582 (eval $ac_try) 2>&5
40583 ac_status=$?
40584 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
40585 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
40586 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40587 (eval $ac_try) 2>&5
40588 ac_status=$?
40589 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
40590 (exit $ac_status); }; }; then
40591
40592 { $as_echo "$as_me:$LINENO: result: yes" >&5
40593 $as_echo "yes" >&6; }
40594
40595 cat >>confdefs.h <<\_ACEOF
40596 #define HAVE_VFSMOUNT_IOPS_GETATTR 1
40597 _ACEOF
40598
40599
40600 else
40601 $as_echo "$as_me: failed program was:" >&5
40602 sed 's/^/| /' conftest.$ac_ext >&5
40603
40604 { $as_echo "$as_me:$LINENO: result: no" >&5
40605 $as_echo "no" >&6; }
40606
40607
40608
40609 fi
40610
40611 rm -Rf build
40612
40613
40614
40615
40616
40617 { $as_echo "$as_me:$LINENO: checking whether inode_set_flags() exists" >&5
40618 $as_echo_n "checking whether inode_set_flags() exists... " >&6; }
40619
40620
40621 cat confdefs.h - <<_ACEOF >conftest.c
40622 /* confdefs.h. */
40623 _ACEOF
40624 cat confdefs.h >>conftest.$ac_ext
40625 cat >>conftest.$ac_ext <<_ACEOF
40626 /* end confdefs.h. */
40627
40628
40629 #include <linux/fs.h>
40630
40631 int
40632 main (void)
40633 {
40634
40635 struct inode inode;
40636 inode_set_flags(&inode, S_IMMUTABLE, S_IMMUTABLE);
40637
40638 ;
40639 return 0;
40640 }
40641
40642 _ACEOF
40643
40644
40645
40646 cat - <<_ACEOF >conftest.h
40647
40648 _ACEOF
40649
40650
40651 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
40652 echo "obj-m := conftest.o" >build/Makefile
40653 modpost_flag=''
40654 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
40655 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
40656 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40657 (eval $ac_try) 2>&5
40658 ac_status=$?
40659 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
40660 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
40661 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40662 (eval $ac_try) 2>&5
40663 ac_status=$?
40664 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
40665 (exit $ac_status); }; }; then
40666
40667 { $as_echo "$as_me:$LINENO: result: yes" >&5
40668 $as_echo "yes" >&6; }
40669
40670 cat >>confdefs.h <<\_ACEOF
40671 #define HAVE_INODE_SET_FLAGS 1
40672 _ACEOF
40673
40674
40675 else
40676 $as_echo "$as_me: failed program was:" >&5
40677 sed 's/^/| /' conftest.$ac_ext >&5
40678
40679 { $as_echo "$as_me:$LINENO: result: no" >&5
40680 $as_echo "no" >&6; }
40681
40682
40683
40684 fi
40685
40686 rm -Rf build
40687
40688
40689
40690
40691 { $as_echo "$as_me:$LINENO: checking whether inode_set_iversion() exists" >&5
40692 $as_echo_n "checking whether inode_set_iversion() exists... " >&6; }
40693
40694
40695 cat confdefs.h - <<_ACEOF >conftest.c
40696 /* confdefs.h. */
40697 _ACEOF
40698 cat confdefs.h >>conftest.$ac_ext
40699 cat >>conftest.$ac_ext <<_ACEOF
40700 /* end confdefs.h. */
40701
40702
40703 #include <linux/iversion.h>
40704
40705 int
40706 main (void)
40707 {
40708
40709 struct inode inode;
40710 inode_set_iversion(&inode, 1);
40711
40712 ;
40713 return 0;
40714 }
40715
40716 _ACEOF
40717
40718
40719
40720 cat - <<_ACEOF >conftest.h
40721
40722 _ACEOF
40723
40724
40725 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
40726 echo "obj-m := conftest.o" >build/Makefile
40727 modpost_flag=''
40728 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
40729 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
40730 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40731 (eval $ac_try) 2>&5
40732 ac_status=$?
40733 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
40734 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
40735 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40736 (eval $ac_try) 2>&5
40737 ac_status=$?
40738 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
40739 (exit $ac_status); }; }; then
40740
40741 { $as_echo "$as_me:$LINENO: result: yes" >&5
40742 $as_echo "yes" >&6; }
40743
40744 cat >>confdefs.h <<\_ACEOF
40745 #define HAVE_INODE_SET_IVERSION 1
40746 _ACEOF
40747
40748
40749 else
40750 $as_echo "$as_me: failed program was:" >&5
40751 sed 's/^/| /' conftest.$ac_ext >&5
40752
40753 { $as_echo "$as_me:$LINENO: result: no" >&5
40754 $as_echo "no" >&6; }
40755
40756
40757
40758 fi
40759
40760 rm -Rf build
40761
40762
40763
40764
40765 { $as_echo "$as_me:$LINENO: checking whether uncached_acl_sentinel() exists" >&5
40766 $as_echo_n "checking whether uncached_acl_sentinel() exists... " >&6; }
40767
40768
40769 cat confdefs.h - <<_ACEOF >conftest.c
40770 /* confdefs.h. */
40771 _ACEOF
40772 cat confdefs.h >>conftest.$ac_ext
40773 cat >>conftest.$ac_ext <<_ACEOF
40774 /* end confdefs.h. */
40775
40776
40777 #include <linux/fs.h>
40778
40779 int
40780 main (void)
40781 {
40782
40783 void *sentinel __attribute__ ((unused)) = uncached_acl_sentinel(NULL);
40784
40785 ;
40786 return 0;
40787 }
40788
40789 _ACEOF
40790
40791
40792
40793 cat - <<_ACEOF >conftest.h
40794
40795 _ACEOF
40796
40797
40798 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
40799 echo "obj-m := conftest.o" >build/Makefile
40800 modpost_flag=''
40801 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
40802 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
40803 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40804 (eval $ac_try) 2>&5
40805 ac_status=$?
40806 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
40807 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
40808 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40809 (eval $ac_try) 2>&5
40810 ac_status=$?
40811 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
40812 (exit $ac_status); }; }; then
40813
40814 { $as_echo "$as_me:$LINENO: result: yes" >&5
40815 $as_echo "yes" >&6; }
40816
40817 cat >>confdefs.h <<\_ACEOF
40818 #define HAVE_KERNEL_GET_ACL_HANDLE_CACHE 1
40819 _ACEOF
40820
40821
40822 else
40823 $as_echo "$as_me: failed program was:" >&5
40824 sed 's/^/| /' conftest.$ac_ext >&5
40825
40826 { $as_echo "$as_me:$LINENO: result: no" >&5
40827 $as_echo "no" >&6; }
40828
40829
40830
40831 fi
40832
40833 rm -Rf build
40834
40835
40836
40837
40838 { $as_echo "$as_me:$LINENO: checking whether sops->show_options() wants dentry" >&5
40839 $as_echo_n "checking whether sops->show_options() wants dentry... " >&6; }
40840
40841
40842
40843 cat confdefs.h - <<_ACEOF >conftest.c
40844 /* confdefs.h. */
40845 _ACEOF
40846 cat confdefs.h >>conftest.$ac_ext
40847 cat >>conftest.$ac_ext <<_ACEOF
40848 /* end confdefs.h. */
40849
40850
40851 #include <linux/fs.h>
40852
40853 int show_options (struct seq_file * x, struct dentry * y) { return 0; };
40854 static struct super_operations sops __attribute__ ((unused)) = {
40855 .show_options = show_options,
40856 };
40857
40858 int
40859 main (void)
40860 {
40861
40862
40863 ;
40864 return 0;
40865 }
40866
40867 _ACEOF
40868
40869
40870
40871 cat - <<_ACEOF >conftest.h
40872
40873 _ACEOF
40874
40875
40876 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
40877 echo "obj-m := conftest.o" >build/Makefile
40878 modpost_flag=''
40879 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
40880 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
40881 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40882 (eval $ac_try) 2>&5
40883 ac_status=$?
40884 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
40885 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
40886 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40887 (eval $ac_try) 2>&5
40888 ac_status=$?
40889 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
40890 (exit $ac_status); }; }; then
40891
40892 { $as_echo "$as_me:$LINENO: result: yes" >&5
40893 $as_echo "yes" >&6; }
40894
40895 cat >>confdefs.h <<\_ACEOF
40896 #define HAVE_SHOW_OPTIONS_WITH_DENTRY 1
40897 _ACEOF
40898
40899
40900 else
40901 $as_echo "$as_me: failed program was:" >&5
40902 sed 's/^/| /' conftest.$ac_ext >&5
40903
40904 { $as_echo "$as_me:$LINENO: result: no" >&5
40905 $as_echo "no" >&6; }
40906
40907
40908
40909 fi
40910
40911 rm -Rf build
40912
40913
40914
40915
40916 { $as_echo "$as_me:$LINENO: checking whether file_inode() is available" >&5
40917 $as_echo_n "checking whether file_inode() is available... " >&6; }
40918
40919
40920 cat confdefs.h - <<_ACEOF >conftest.c
40921 /* confdefs.h. */
40922 _ACEOF
40923 cat confdefs.h >>conftest.$ac_ext
40924 cat >>conftest.$ac_ext <<_ACEOF
40925 /* end confdefs.h. */
40926
40927
40928 #include <linux/fs.h>
40929
40930 int
40931 main (void)
40932 {
40933
40934 struct file *f = NULL;
40935 file_inode(f);
40936
40937 ;
40938 return 0;
40939 }
40940
40941 _ACEOF
40942
40943
40944
40945 cat - <<_ACEOF >conftest.h
40946
40947 _ACEOF
40948
40949
40950 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
40951 echo "obj-m := conftest.o" >build/Makefile
40952 modpost_flag=''
40953 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
40954 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
40955 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40956 (eval $ac_try) 2>&5
40957 ac_status=$?
40958 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
40959 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
40960 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40961 (eval $ac_try) 2>&5
40962 ac_status=$?
40963 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
40964 (exit $ac_status); }; }; then
40965
40966 { $as_echo "$as_me:$LINENO: result: yes" >&5
40967 $as_echo "yes" >&6; }
40968
40969 cat >>confdefs.h <<\_ACEOF
40970 #define HAVE_FILE_INODE 1
40971 _ACEOF
40972
40973
40974 else
40975 $as_echo "$as_me: failed program was:" >&5
40976 sed 's/^/| /' conftest.$ac_ext >&5
40977
40978 { $as_echo "$as_me:$LINENO: result: no" >&5
40979 $as_echo "no" >&6; }
40980
40981
40982
40983 fi
40984
40985 rm -Rf build
40986
40987
40988
40989
40990 { $as_echo "$as_me:$LINENO: checking whether file_dentry() is available" >&5
40991 $as_echo_n "checking whether file_dentry() is available... " >&6; }
40992
40993
40994 cat confdefs.h - <<_ACEOF >conftest.c
40995 /* confdefs.h. */
40996 _ACEOF
40997 cat confdefs.h >>conftest.$ac_ext
40998 cat >>conftest.$ac_ext <<_ACEOF
40999 /* end confdefs.h. */
41000
41001
41002 #include <linux/fs.h>
41003
41004 int
41005 main (void)
41006 {
41007
41008 struct file *f = NULL;
41009 file_dentry(f);
41010
41011 ;
41012 return 0;
41013 }
41014
41015 _ACEOF
41016
41017
41018
41019 cat - <<_ACEOF >conftest.h
41020
41021 _ACEOF
41022
41023
41024 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
41025 echo "obj-m := conftest.o" >build/Makefile
41026 modpost_flag=''
41027 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
41028 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
41029 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41030 (eval $ac_try) 2>&5
41031 ac_status=$?
41032 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
41033 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
41034 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41035 (eval $ac_try) 2>&5
41036 ac_status=$?
41037 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
41038 (exit $ac_status); }; }; then
41039
41040 { $as_echo "$as_me:$LINENO: result: yes" >&5
41041 $as_echo "yes" >&6; }
41042
41043 cat >>confdefs.h <<\_ACEOF
41044 #define HAVE_FILE_DENTRY 1
41045 _ACEOF
41046
41047
41048 else
41049 $as_echo "$as_me: failed program was:" >&5
41050 sed 's/^/| /' conftest.$ac_ext >&5
41051
41052 { $as_echo "$as_me:$LINENO: result: no" >&5
41053 $as_echo "no" >&6; }
41054
41055
41056
41057 fi
41058
41059 rm -Rf build
41060
41061
41062
41063
41064 { $as_echo "$as_me:$LINENO: checking whether fops->fsync() wants" >&5
41065 $as_echo_n "checking whether fops->fsync() wants... " >&6; }
41066
41067
41068
41069 cat confdefs.h - <<_ACEOF >conftest.c
41070 /* confdefs.h. */
41071 _ACEOF
41072 cat confdefs.h >>conftest.$ac_ext
41073 cat >>conftest.$ac_ext <<_ACEOF
41074 /* end confdefs.h. */
41075
41076
41077 #include <linux/fs.h>
41078
41079 int test_fsync(struct file *f, struct dentry *dentry, int x)
41080 { return 0; }
41081
41082 static const struct file_operations
41083 fops __attribute__ ((unused)) = {
41084 .fsync = test_fsync,
41085 };
41086
41087 int
41088 main (void)
41089 {
41090
41091
41092 ;
41093 return 0;
41094 }
41095
41096 _ACEOF
41097
41098
41099
41100 cat - <<_ACEOF >conftest.h
41101
41102 _ACEOF
41103
41104
41105 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
41106 echo "obj-m := conftest.o" >build/Makefile
41107 modpost_flag=''
41108 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
41109 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
41110 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41111 (eval $ac_try) 2>&5
41112 ac_status=$?
41113 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
41114 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
41115 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41116 (eval $ac_try) 2>&5
41117 ac_status=$?
41118 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
41119 (exit $ac_status); }; }; then
41120
41121 { $as_echo "$as_me:$LINENO: result: dentry" >&5
41122 $as_echo "dentry" >&6; }
41123
41124 cat >>confdefs.h <<\_ACEOF
41125 #define HAVE_FSYNC_WITH_DENTRY 1
41126 _ACEOF
41127
41128
41129 else
41130 $as_echo "$as_me: failed program was:" >&5
41131 sed 's/^/| /' conftest.$ac_ext >&5
41132
41133
41134
41135
41136 fi
41137
41138 rm -Rf build
41139
41140
41141
41142
41143
41144
41145 cat confdefs.h - <<_ACEOF >conftest.c
41146 /* confdefs.h. */
41147 _ACEOF
41148 cat confdefs.h >>conftest.$ac_ext
41149 cat >>conftest.$ac_ext <<_ACEOF
41150 /* end confdefs.h. */
41151
41152
41153 #include <linux/fs.h>
41154
41155 int test_fsync(struct file *f, int x) { return 0; }
41156
41157 static const struct file_operations
41158 fops __attribute__ ((unused)) = {
41159 .fsync = test_fsync,
41160 };
41161
41162 int
41163 main (void)
41164 {
41165
41166
41167 ;
41168 return 0;
41169 }
41170
41171 _ACEOF
41172
41173
41174
41175 cat - <<_ACEOF >conftest.h
41176
41177 _ACEOF
41178
41179
41180 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
41181 echo "obj-m := conftest.o" >build/Makefile
41182 modpost_flag=''
41183 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
41184 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
41185 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41186 (eval $ac_try) 2>&5
41187 ac_status=$?
41188 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
41189 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
41190 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41191 (eval $ac_try) 2>&5
41192 ac_status=$?
41193 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
41194 (exit $ac_status); }; }; then
41195
41196 { $as_echo "$as_me:$LINENO: result: no dentry" >&5
41197 $as_echo "no dentry" >&6; }
41198
41199 cat >>confdefs.h <<\_ACEOF
41200 #define HAVE_FSYNC_WITHOUT_DENTRY 1
41201 _ACEOF
41202
41203
41204 else
41205 $as_echo "$as_me: failed program was:" >&5
41206 sed 's/^/| /' conftest.$ac_ext >&5
41207
41208
41209
41210
41211 fi
41212
41213 rm -Rf build
41214
41215
41216
41217
41218
41219
41220 cat confdefs.h - <<_ACEOF >conftest.c
41221 /* confdefs.h. */
41222 _ACEOF
41223 cat confdefs.h >>conftest.$ac_ext
41224 cat >>conftest.$ac_ext <<_ACEOF
41225 /* end confdefs.h. */
41226
41227
41228 #include <linux/fs.h>
41229
41230 int test_fsync(struct file *f, loff_t a, loff_t b, int c)
41231 { return 0; }
41232
41233 static const struct file_operations
41234 fops __attribute__ ((unused)) = {
41235 .fsync = test_fsync,
41236 };
41237
41238 int
41239 main (void)
41240 {
41241
41242
41243 ;
41244 return 0;
41245 }
41246
41247 _ACEOF
41248
41249
41250
41251 cat - <<_ACEOF >conftest.h
41252
41253 _ACEOF
41254
41255
41256 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
41257 echo "obj-m := conftest.o" >build/Makefile
41258 modpost_flag=''
41259 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
41260 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
41261 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41262 (eval $ac_try) 2>&5
41263 ac_status=$?
41264 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
41265 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
41266 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41267 (eval $ac_try) 2>&5
41268 ac_status=$?
41269 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
41270 (exit $ac_status); }; }; then
41271
41272 { $as_echo "$as_me:$LINENO: result: range" >&5
41273 $as_echo "range" >&6; }
41274
41275 cat >>confdefs.h <<\_ACEOF
41276 #define HAVE_FSYNC_RANGE 1
41277 _ACEOF
41278
41279
41280 else
41281 $as_echo "$as_me: failed program was:" >&5
41282 sed 's/^/| /' conftest.$ac_ext >&5
41283
41284
41285
41286
41287 fi
41288
41289 rm -Rf build
41290
41291
41292
41293
41294
41295 { $as_echo "$as_me:$LINENO: checking whether sops->evict_inode() exists" >&5
41296 $as_echo_n "checking whether sops->evict_inode() exists... " >&6; }
41297
41298
41299 cat confdefs.h - <<_ACEOF >conftest.c
41300 /* confdefs.h. */
41301 _ACEOF
41302 cat confdefs.h >>conftest.$ac_ext
41303 cat >>conftest.$ac_ext <<_ACEOF
41304 /* end confdefs.h. */
41305
41306
41307 #include <linux/fs.h>
41308 void evict_inode (struct inode * t) { return; }
41309 static struct super_operations sops __attribute__ ((unused)) = {
41310 .evict_inode = evict_inode,
41311 };
41312
41313 int
41314 main (void)
41315 {
41316
41317
41318 ;
41319 return 0;
41320 }
41321
41322 _ACEOF
41323
41324
41325
41326 cat - <<_ACEOF >conftest.h
41327
41328 _ACEOF
41329
41330
41331 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
41332 echo "obj-m := conftest.o" >build/Makefile
41333 modpost_flag=''
41334 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
41335 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
41336 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41337 (eval $ac_try) 2>&5
41338 ac_status=$?
41339 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
41340 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
41341 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41342 (eval $ac_try) 2>&5
41343 ac_status=$?
41344 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
41345 (exit $ac_status); }; }; then
41346
41347 { $as_echo "$as_me:$LINENO: result: yes" >&5
41348 $as_echo "yes" >&6; }
41349
41350 cat >>confdefs.h <<\_ACEOF
41351 #define HAVE_EVICT_INODE 1
41352 _ACEOF
41353
41354
41355 else
41356 $as_echo "$as_me: failed program was:" >&5
41357 sed 's/^/| /' conftest.$ac_ext >&5
41358
41359 { $as_echo "$as_me:$LINENO: result: no" >&5
41360 $as_echo "no" >&6; }
41361
41362
41363
41364 fi
41365
41366 rm -Rf build
41367
41368
41369
41370
41371 { $as_echo "$as_me:$LINENO: checking whether sops->dirty_inode() wants flags" >&5
41372 $as_echo_n "checking whether sops->dirty_inode() wants flags... " >&6; }
41373
41374
41375 cat confdefs.h - <<_ACEOF >conftest.c
41376 /* confdefs.h. */
41377 _ACEOF
41378 cat confdefs.h >>conftest.$ac_ext
41379 cat >>conftest.$ac_ext <<_ACEOF
41380 /* end confdefs.h. */
41381
41382
41383 #include <linux/fs.h>
41384
41385 void dirty_inode(struct inode *a, int b) { return; }
41386
41387 static const struct super_operations
41388 sops __attribute__ ((unused)) = {
41389 .dirty_inode = dirty_inode,
41390 };
41391
41392 int
41393 main (void)
41394 {
41395
41396
41397 ;
41398 return 0;
41399 }
41400
41401 _ACEOF
41402
41403
41404
41405 cat - <<_ACEOF >conftest.h
41406
41407 _ACEOF
41408
41409
41410 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
41411 echo "obj-m := conftest.o" >build/Makefile
41412 modpost_flag=''
41413 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
41414 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
41415 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41416 (eval $ac_try) 2>&5
41417 ac_status=$?
41418 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
41419 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
41420 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41421 (eval $ac_try) 2>&5
41422 ac_status=$?
41423 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
41424 (exit $ac_status); }; }; then
41425
41426 { $as_echo "$as_me:$LINENO: result: yes" >&5
41427 $as_echo "yes" >&6; }
41428
41429 cat >>confdefs.h <<\_ACEOF
41430 #define HAVE_DIRTY_INODE_WITH_FLAGS 1
41431 _ACEOF
41432
41433
41434 else
41435 $as_echo "$as_me: failed program was:" >&5
41436 sed 's/^/| /' conftest.$ac_ext >&5
41437
41438 { $as_echo "$as_me:$LINENO: result: no" >&5
41439 $as_echo "no" >&6; }
41440
41441
41442
41443 fi
41444
41445 rm -Rf build
41446
41447
41448
41449
41450 { $as_echo "$as_me:$LINENO: checking whether sops->nr_cached_objects() exists" >&5
41451 $as_echo_n "checking whether sops->nr_cached_objects() exists... " >&6; }
41452
41453
41454 cat confdefs.h - <<_ACEOF >conftest.c
41455 /* confdefs.h. */
41456 _ACEOF
41457 cat confdefs.h >>conftest.$ac_ext
41458 cat >>conftest.$ac_ext <<_ACEOF
41459 /* end confdefs.h. */
41460
41461
41462 #include <linux/fs.h>
41463
41464 int nr_cached_objects(struct super_block *sb) { return 0; }
41465
41466 static const struct super_operations
41467 sops __attribute__ ((unused)) = {
41468 .nr_cached_objects = nr_cached_objects,
41469 };
41470
41471 int
41472 main (void)
41473 {
41474
41475
41476 ;
41477 return 0;
41478 }
41479
41480 _ACEOF
41481
41482
41483
41484 cat - <<_ACEOF >conftest.h
41485
41486 _ACEOF
41487
41488
41489 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
41490 echo "obj-m := conftest.o" >build/Makefile
41491 modpost_flag=''
41492 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
41493 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
41494 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41495 (eval $ac_try) 2>&5
41496 ac_status=$?
41497 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
41498 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
41499 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41500 (eval $ac_try) 2>&5
41501 ac_status=$?
41502 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
41503 (exit $ac_status); }; }; then
41504
41505 { $as_echo "$as_me:$LINENO: result: yes" >&5
41506 $as_echo "yes" >&6; }
41507
41508 cat >>confdefs.h <<\_ACEOF
41509 #define HAVE_NR_CACHED_OBJECTS 1
41510 _ACEOF
41511
41512
41513 else
41514 $as_echo "$as_me: failed program was:" >&5
41515 sed 's/^/| /' conftest.$ac_ext >&5
41516
41517 { $as_echo "$as_me:$LINENO: result: no" >&5
41518 $as_echo "no" >&6; }
41519
41520
41521
41522 fi
41523
41524 rm -Rf build
41525
41526
41527
41528
41529 { $as_echo "$as_me:$LINENO: checking whether sops->free_cached_objects() exists" >&5
41530 $as_echo_n "checking whether sops->free_cached_objects() exists... " >&6; }
41531
41532
41533 cat confdefs.h - <<_ACEOF >conftest.c
41534 /* confdefs.h. */
41535 _ACEOF
41536 cat confdefs.h >>conftest.$ac_ext
41537 cat >>conftest.$ac_ext <<_ACEOF
41538 /* end confdefs.h. */
41539
41540
41541 #include <linux/fs.h>
41542
41543 void free_cached_objects(struct super_block *sb, int x)
41544 { return; }
41545
41546 static const struct super_operations
41547 sops __attribute__ ((unused)) = {
41548 .free_cached_objects = free_cached_objects,
41549 };
41550
41551 int
41552 main (void)
41553 {
41554
41555
41556 ;
41557 return 0;
41558 }
41559
41560 _ACEOF
41561
41562
41563
41564 cat - <<_ACEOF >conftest.h
41565
41566 _ACEOF
41567
41568
41569 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
41570 echo "obj-m := conftest.o" >build/Makefile
41571 modpost_flag=''
41572 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
41573 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
41574 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41575 (eval $ac_try) 2>&5
41576 ac_status=$?
41577 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
41578 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
41579 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41580 (eval $ac_try) 2>&5
41581 ac_status=$?
41582 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
41583 (exit $ac_status); }; }; then
41584
41585 { $as_echo "$as_me:$LINENO: result: yes" >&5
41586 $as_echo "yes" >&6; }
41587
41588 cat >>confdefs.h <<\_ACEOF
41589 #define HAVE_FREE_CACHED_OBJECTS 1
41590 _ACEOF
41591
41592
41593 else
41594 $as_echo "$as_me: failed program was:" >&5
41595 sed 's/^/| /' conftest.$ac_ext >&5
41596
41597 { $as_echo "$as_me:$LINENO: result: no" >&5
41598 $as_echo "no" >&6; }
41599
41600
41601
41602 fi
41603
41604 rm -Rf build
41605
41606
41607
41608
41609
41610 { $as_echo "$as_me:$LINENO: checking whether fops->fallocate() exists" >&5
41611 $as_echo_n "checking whether fops->fallocate() exists... " >&6; }
41612
41613
41614 cat confdefs.h - <<_ACEOF >conftest.c
41615 /* confdefs.h. */
41616 _ACEOF
41617 cat confdefs.h >>conftest.$ac_ext
41618 cat >>conftest.$ac_ext <<_ACEOF
41619 /* end confdefs.h. */
41620
41621
41622 #include <linux/fs.h>
41623
41624 long test_fallocate(struct file *file, int mode,
41625 loff_t offset, loff_t len) { return 0; }
41626
41627 static const struct file_operations
41628 fops __attribute__ ((unused)) = {
41629 .fallocate = test_fallocate,
41630 };
41631
41632 int
41633 main (void)
41634 {
41635
41636
41637 ;
41638 return 0;
41639 }
41640
41641 _ACEOF
41642
41643
41644
41645 cat - <<_ACEOF >conftest.h
41646
41647 _ACEOF
41648
41649
41650 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
41651 echo "obj-m := conftest.o" >build/Makefile
41652 modpost_flag=''
41653 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
41654 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
41655 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41656 (eval $ac_try) 2>&5
41657 ac_status=$?
41658 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
41659 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
41660 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41661 (eval $ac_try) 2>&5
41662 ac_status=$?
41663 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
41664 (exit $ac_status); }; }; then
41665
41666 { $as_echo "$as_me:$LINENO: result: yes" >&5
41667 $as_echo "yes" >&6; }
41668
41669 cat >>confdefs.h <<\_ACEOF
41670 #define HAVE_FILE_FALLOCATE 1
41671 _ACEOF
41672
41673
41674 else
41675 $as_echo "$as_me: failed program was:" >&5
41676 sed 's/^/| /' conftest.$ac_ext >&5
41677
41678 { $as_echo "$as_me:$LINENO: result: no" >&5
41679 $as_echo "no" >&6; }
41680
41681
41682
41683 fi
41684
41685 rm -Rf build
41686
41687
41688
41689
41690 { $as_echo "$as_me:$LINENO: checking whether iops->fallocate() exists" >&5
41691 $as_echo_n "checking whether iops->fallocate() exists... " >&6; }
41692
41693
41694 cat confdefs.h - <<_ACEOF >conftest.c
41695 /* confdefs.h. */
41696 _ACEOF
41697 cat confdefs.h >>conftest.$ac_ext
41698 cat >>conftest.$ac_ext <<_ACEOF
41699 /* end confdefs.h. */
41700
41701
41702 #include <linux/fs.h>
41703
41704 long test_fallocate(struct inode *inode, int mode,
41705 loff_t offset, loff_t len) { return 0; }
41706
41707 static const struct inode_operations
41708 fops __attribute__ ((unused)) = {
41709 .fallocate = test_fallocate,
41710 };
41711
41712 int
41713 main (void)
41714 {
41715
41716
41717 ;
41718 return 0;
41719 }
41720
41721 _ACEOF
41722
41723
41724
41725 cat - <<_ACEOF >conftest.h
41726
41727 _ACEOF
41728
41729
41730 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
41731 echo "obj-m := conftest.o" >build/Makefile
41732 modpost_flag=''
41733 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
41734 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
41735 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41736 (eval $ac_try) 2>&5
41737 ac_status=$?
41738 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
41739 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
41740 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41741 (eval $ac_try) 2>&5
41742 ac_status=$?
41743 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
41744 (exit $ac_status); }; }; then
41745
41746 { $as_echo "$as_me:$LINENO: result: yes" >&5
41747 $as_echo "yes" >&6; }
41748
41749 cat >>confdefs.h <<\_ACEOF
41750 #define HAVE_INODE_FALLOCATE 1
41751 _ACEOF
41752
41753
41754 else
41755 $as_echo "$as_me: failed program was:" >&5
41756 sed 's/^/| /' conftest.$ac_ext >&5
41757
41758 { $as_echo "$as_me:$LINENO: result: no" >&5
41759 $as_echo "no" >&6; }
41760
41761
41762
41763 fi
41764
41765 rm -Rf build
41766
41767
41768
41769
41770
41771 { $as_echo "$as_me:$LINENO: checking whether fops->aio_fsync() exists" >&5
41772 $as_echo_n "checking whether fops->aio_fsync() exists... " >&6; }
41773
41774
41775 cat confdefs.h - <<_ACEOF >conftest.c
41776 /* confdefs.h. */
41777 _ACEOF
41778 cat confdefs.h >>conftest.$ac_ext
41779 cat >>conftest.$ac_ext <<_ACEOF
41780 /* end confdefs.h. */
41781
41782
41783 #include <linux/fs.h>
41784
41785 static const struct file_operations
41786 fops __attribute__ ((unused)) = {
41787 .aio_fsync = NULL,
41788 };
41789
41790 int
41791 main (void)
41792 {
41793
41794
41795 ;
41796 return 0;
41797 }
41798
41799 _ACEOF
41800
41801
41802
41803 cat - <<_ACEOF >conftest.h
41804
41805 _ACEOF
41806
41807
41808 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
41809 echo "obj-m := conftest.o" >build/Makefile
41810 modpost_flag=''
41811 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
41812 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
41813 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41814 (eval $ac_try) 2>&5
41815 ac_status=$?
41816 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
41817 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
41818 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41819 (eval $ac_try) 2>&5
41820 ac_status=$?
41821 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
41822 (exit $ac_status); }; }; then
41823
41824 { $as_echo "$as_me:$LINENO: result: yes" >&5
41825 $as_echo "yes" >&6; }
41826
41827 cat >>confdefs.h <<\_ACEOF
41828 #define HAVE_FILE_AIO_FSYNC 1
41829 _ACEOF
41830
41831
41832 else
41833 $as_echo "$as_me: failed program was:" >&5
41834 sed 's/^/| /' conftest.$ac_ext >&5
41835
41836 { $as_echo "$as_me:$LINENO: result: no" >&5
41837 $as_echo "no" >&6; }
41838
41839
41840
41841 fi
41842
41843 rm -Rf build
41844
41845
41846
41847
41848 { $as_echo "$as_me:$LINENO: checking whether iops->create()/mkdir()/mknod() take umode_t" >&5
41849 $as_echo_n "checking whether iops->create()/mkdir()/mknod() take umode_t... " >&6; }
41850
41851
41852 cat confdefs.h - <<_ACEOF >conftest.c
41853 /* confdefs.h. */
41854 _ACEOF
41855 cat confdefs.h >>conftest.$ac_ext
41856 cat >>conftest.$ac_ext <<_ACEOF
41857 /* end confdefs.h. */
41858
41859
41860 #include <linux/fs.h>
41861
41862 int mkdir(struct inode *inode, struct dentry *dentry,
41863 umode_t umode) { return 0; }
41864
41865 static const struct inode_operations
41866 iops __attribute__ ((unused)) = {
41867 .mkdir = mkdir,
41868 };
41869
41870 int
41871 main (void)
41872 {
41873
41874
41875 ;
41876 return 0;
41877 }
41878
41879 _ACEOF
41880
41881
41882
41883 cat - <<_ACEOF >conftest.h
41884
41885 _ACEOF
41886
41887
41888 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
41889 echo "obj-m := conftest.o" >build/Makefile
41890 modpost_flag=''
41891 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
41892 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
41893 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41894 (eval $ac_try) 2>&5
41895 ac_status=$?
41896 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
41897 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
41898 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41899 (eval $ac_try) 2>&5
41900 ac_status=$?
41901 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
41902 (exit $ac_status); }; }; then
41903
41904 { $as_echo "$as_me:$LINENO: result: yes" >&5
41905 $as_echo "yes" >&6; }
41906
41907 cat >>confdefs.h <<\_ACEOF
41908 #define HAVE_MKDIR_UMODE_T 1
41909 _ACEOF
41910
41911
41912 else
41913 $as_echo "$as_me: failed program was:" >&5
41914 sed 's/^/| /' conftest.$ac_ext >&5
41915
41916 { $as_echo "$as_me:$LINENO: result: no" >&5
41917 $as_echo "no" >&6; }
41918
41919
41920
41921 fi
41922
41923 rm -Rf build
41924
41925
41926
41927
41928 { $as_echo "$as_me:$LINENO: checking whether iops->lookup() passes nameidata" >&5
41929 $as_echo_n "checking whether iops->lookup() passes nameidata... " >&6; }
41930
41931
41932 cat confdefs.h - <<_ACEOF >conftest.c
41933 /* confdefs.h. */
41934 _ACEOF
41935 cat confdefs.h >>conftest.$ac_ext
41936 cat >>conftest.$ac_ext <<_ACEOF
41937 /* end confdefs.h. */
41938
41939
41940 #include <linux/fs.h>
41941 #include <linux/sched.h>
41942
41943 struct dentry *inode_lookup(struct inode *inode,
41944 struct dentry *dentry, struct nameidata *nidata)
41945 { return NULL; }
41946
41947 static const struct inode_operations iops
41948 __attribute__ ((unused)) = {
41949 .lookup = inode_lookup,
41950 };
41951
41952 int
41953 main (void)
41954 {
41955
41956
41957 ;
41958 return 0;
41959 }
41960
41961 _ACEOF
41962
41963
41964
41965 cat - <<_ACEOF >conftest.h
41966
41967 _ACEOF
41968
41969
41970 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
41971 echo "obj-m := conftest.o" >build/Makefile
41972 modpost_flag=''
41973 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
41974 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
41975 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41976 (eval $ac_try) 2>&5
41977 ac_status=$?
41978 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
41979 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
41980 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41981 (eval $ac_try) 2>&5
41982 ac_status=$?
41983 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
41984 (exit $ac_status); }; }; then
41985
41986 { $as_echo "$as_me:$LINENO: result: yes" >&5
41987 $as_echo "yes" >&6; }
41988
41989 cat >>confdefs.h <<\_ACEOF
41990 #define HAVE_LOOKUP_NAMEIDATA 1
41991 _ACEOF
41992
41993
41994 else
41995 $as_echo "$as_me: failed program was:" >&5
41996 sed 's/^/| /' conftest.$ac_ext >&5
41997
41998 { $as_echo "$as_me:$LINENO: result: no" >&5
41999 $as_echo "no" >&6; }
42000
42001
42002
42003 fi
42004
42005 rm -Rf build
42006
42007
42008
42009
42010 { $as_echo "$as_me:$LINENO: checking whether iops->create() passes nameidata" >&5
42011 $as_echo_n "checking whether iops->create() passes nameidata... " >&6; }
42012
42013
42014 cat confdefs.h - <<_ACEOF >conftest.c
42015 /* confdefs.h. */
42016 _ACEOF
42017 cat confdefs.h >>conftest.$ac_ext
42018 cat >>conftest.$ac_ext <<_ACEOF
42019 /* end confdefs.h. */
42020
42021
42022 #include <linux/fs.h>
42023 #include <linux/sched.h>
42024
42025 #ifdef HAVE_MKDIR_UMODE_T
42026 int inode_create(struct inode *inode ,struct dentry *dentry,
42027 umode_t umode, struct nameidata *nidata) { return 0; }
42028 #else
42029 int inode_create(struct inode *inode,struct dentry *dentry,
42030 int umode, struct nameidata * nidata) { return 0; }
42031 #endif
42032
42033 static const struct inode_operations
42034 iops __attribute__ ((unused)) = {
42035 .create = inode_create,
42036 };
42037
42038 int
42039 main (void)
42040 {
42041
42042
42043 ;
42044 return 0;
42045 }
42046
42047 _ACEOF
42048
42049
42050
42051 cat - <<_ACEOF >conftest.h
42052
42053 _ACEOF
42054
42055
42056 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
42057 echo "obj-m := conftest.o" >build/Makefile
42058 modpost_flag=''
42059 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
42060 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
42061 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42062 (eval $ac_try) 2>&5
42063 ac_status=$?
42064 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
42065 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
42066 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42067 (eval $ac_try) 2>&5
42068 ac_status=$?
42069 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
42070 (exit $ac_status); }; }; then
42071
42072 { $as_echo "$as_me:$LINENO: result: yes" >&5
42073 $as_echo "yes" >&6; }
42074
42075 cat >>confdefs.h <<\_ACEOF
42076 #define HAVE_CREATE_NAMEIDATA 1
42077 _ACEOF
42078
42079
42080 else
42081 $as_echo "$as_me: failed program was:" >&5
42082 sed 's/^/| /' conftest.$ac_ext >&5
42083
42084 { $as_echo "$as_me:$LINENO: result: no" >&5
42085 $as_echo "no" >&6; }
42086
42087
42088
42089 fi
42090
42091 rm -Rf build
42092
42093
42094
42095
42096 { $as_echo "$as_me:$LINENO: checking whether iops->get_link() passes delayed" >&5
42097 $as_echo_n "checking whether iops->get_link() passes delayed... " >&6; }
42098
42099
42100 cat confdefs.h - <<_ACEOF >conftest.c
42101 /* confdefs.h. */
42102 _ACEOF
42103 cat confdefs.h >>conftest.$ac_ext
42104 cat >>conftest.$ac_ext <<_ACEOF
42105 /* end confdefs.h. */
42106
42107
42108 #include <linux/fs.h>
42109 const char *get_link(struct dentry *de, struct inode *ip,
42110 struct delayed_call *done) { return "symlink"; }
42111 static struct inode_operations
42112 iops __attribute__ ((unused)) = {
42113 .get_link = get_link,
42114 };
42115
42116 int
42117 main (void)
42118 {
42119
42120
42121 ;
42122 return 0;
42123 }
42124
42125 _ACEOF
42126
42127
42128
42129 cat - <<_ACEOF >conftest.h
42130
42131 _ACEOF
42132
42133
42134 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
42135 echo "obj-m := conftest.o" >build/Makefile
42136 modpost_flag=''
42137 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
42138 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
42139 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42140 (eval $ac_try) 2>&5
42141 ac_status=$?
42142 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
42143 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
42144 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42145 (eval $ac_try) 2>&5
42146 ac_status=$?
42147 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
42148 (exit $ac_status); }; }; then
42149
42150 { $as_echo "$as_me:$LINENO: result: yes" >&5
42151 $as_echo "yes" >&6; }
42152
42153 cat >>confdefs.h <<\_ACEOF
42154 #define HAVE_GET_LINK_DELAYED 1
42155 _ACEOF
42156
42157
42158 else
42159 $as_echo "$as_me: failed program was:" >&5
42160 sed 's/^/| /' conftest.$ac_ext >&5
42161
42162 { $as_echo "$as_me:$LINENO: result: no" >&5
42163 $as_echo "no" >&6; }
42164 { $as_echo "$as_me:$LINENO: checking whether iops->get_link() passes cookie" >&5
42165 $as_echo_n "checking whether iops->get_link() passes cookie... " >&6; }
42166
42167
42168 cat confdefs.h - <<_ACEOF >conftest.c
42169 /* confdefs.h. */
42170 _ACEOF
42171 cat confdefs.h >>conftest.$ac_ext
42172 cat >>conftest.$ac_ext <<_ACEOF
42173 /* end confdefs.h. */
42174
42175
42176 #include <linux/fs.h>
42177 const char *get_link(struct dentry *de, struct
42178 inode *ip, void **cookie) { return "symlink"; }
42179 static struct inode_operations
42180 iops __attribute__ ((unused)) = {
42181 .get_link = get_link,
42182 };
42183
42184 int
42185 main (void)
42186 {
42187
42188
42189 ;
42190 return 0;
42191 }
42192
42193 _ACEOF
42194
42195
42196
42197 cat - <<_ACEOF >conftest.h
42198
42199 _ACEOF
42200
42201
42202 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
42203 echo "obj-m := conftest.o" >build/Makefile
42204 modpost_flag=''
42205 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
42206 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
42207 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42208 (eval $ac_try) 2>&5
42209 ac_status=$?
42210 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
42211 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
42212 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42213 (eval $ac_try) 2>&5
42214 ac_status=$?
42215 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
42216 (exit $ac_status); }; }; then
42217
42218 { $as_echo "$as_me:$LINENO: result: yes" >&5
42219 $as_echo "yes" >&6; }
42220
42221 cat >>confdefs.h <<\_ACEOF
42222 #define HAVE_GET_LINK_COOKIE 1
42223 _ACEOF
42224
42225
42226 else
42227 $as_echo "$as_me: failed program was:" >&5
42228 sed 's/^/| /' conftest.$ac_ext >&5
42229
42230 { $as_echo "$as_me:$LINENO: result: no" >&5
42231 $as_echo "no" >&6; }
42232
42233 { $as_echo "$as_me:$LINENO: checking whether iops->follow_link() passes cookie" >&5
42234 $as_echo_n "checking whether iops->follow_link() passes cookie... " >&6; }
42235
42236
42237 cat confdefs.h - <<_ACEOF >conftest.c
42238 /* confdefs.h. */
42239 _ACEOF
42240 cat confdefs.h >>conftest.$ac_ext
42241 cat >>conftest.$ac_ext <<_ACEOF
42242 /* end confdefs.h. */
42243
42244
42245 #include <linux/fs.h>
42246 const char *follow_link(struct dentry *de,
42247 void **cookie) { return "symlink"; }
42248 static struct inode_operations
42249 iops __attribute__ ((unused)) = {
42250 .follow_link = follow_link,
42251 };
42252
42253 int
42254 main (void)
42255 {
42256
42257
42258 ;
42259 return 0;
42260 }
42261
42262 _ACEOF
42263
42264
42265
42266 cat - <<_ACEOF >conftest.h
42267
42268 _ACEOF
42269
42270
42271 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
42272 echo "obj-m := conftest.o" >build/Makefile
42273 modpost_flag=''
42274 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
42275 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
42276 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42277 (eval $ac_try) 2>&5
42278 ac_status=$?
42279 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
42280 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
42281 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42282 (eval $ac_try) 2>&5
42283 ac_status=$?
42284 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
42285 (exit $ac_status); }; }; then
42286
42287 { $as_echo "$as_me:$LINENO: result: yes" >&5
42288 $as_echo "yes" >&6; }
42289
42290 cat >>confdefs.h <<\_ACEOF
42291 #define HAVE_FOLLOW_LINK_COOKIE 1
42292 _ACEOF
42293
42294
42295 else
42296 $as_echo "$as_me: failed program was:" >&5
42297 sed 's/^/| /' conftest.$ac_ext >&5
42298
42299 { $as_echo "$as_me:$LINENO: result: no" >&5
42300 $as_echo "no" >&6; }
42301 { $as_echo "$as_me:$LINENO: checking whether iops->follow_link() passes nameidata" >&5
42302 $as_echo_n "checking whether iops->follow_link() passes nameidata... " >&6; }
42303
42304
42305 cat confdefs.h - <<_ACEOF >conftest.c
42306 /* confdefs.h. */
42307 _ACEOF
42308 cat confdefs.h >>conftest.$ac_ext
42309 cat >>conftest.$ac_ext <<_ACEOF
42310 /* end confdefs.h. */
42311
42312
42313 #include <linux/fs.h>
42314 void *follow_link(struct dentry *de, struct
42315 nameidata *nd) { return (void *)NULL; }
42316 static struct inode_operations
42317 iops __attribute__ ((unused)) = {
42318 .follow_link = follow_link,
42319 };
42320
42321 int
42322 main (void)
42323 {
42324
42325
42326 ;
42327 return 0;
42328 }
42329
42330 _ACEOF
42331
42332
42333
42334 cat - <<_ACEOF >conftest.h
42335
42336 _ACEOF
42337
42338
42339 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
42340 echo "obj-m := conftest.o" >build/Makefile
42341 modpost_flag=''
42342 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
42343 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
42344 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42345 (eval $ac_try) 2>&5
42346 ac_status=$?
42347 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
42348 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
42349 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42350 (eval $ac_try) 2>&5
42351 ac_status=$?
42352 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
42353 (exit $ac_status); }; }; then
42354
42355 { $as_echo "$as_me:$LINENO: result: yes" >&5
42356 $as_echo "yes" >&6; }
42357
42358 cat >>confdefs.h <<\_ACEOF
42359 #define HAVE_FOLLOW_LINK_NAMEIDATA 1
42360 _ACEOF
42361
42362
42363 else
42364 $as_echo "$as_me: failed program was:" >&5
42365 sed 's/^/| /' conftest.$ac_ext >&5
42366
42367 { { $as_echo "$as_me:$LINENO: error: no; please file a bug report" >&5
42368 $as_echo "$as_me: error: no; please file a bug report" >&2;}
42369 { (exit 1); exit 1; }; }
42370
42371
42372
42373 fi
42374
42375 rm -Rf build
42376
42377
42378
42379
42380
42381 fi
42382
42383 rm -Rf build
42384
42385
42386
42387
42388
42389
42390 fi
42391
42392 rm -Rf build
42393
42394
42395
42396
42397
42398 fi
42399
42400 rm -Rf build
42401
42402
42403
42404
42405
42406
42407 cat confdefs.h - <<_ACEOF >conftest.c
42408 /* confdefs.h. */
42409 _ACEOF
42410 cat confdefs.h >>conftest.$ac_ext
42411 cat >>conftest.$ac_ext <<_ACEOF
42412 /* end confdefs.h. */
42413
42414
42415 #if !defined(HAVE_GET_LINK_DELAYED)
42416 #error "Expecting get_link() delayed done"
42417 #endif
42418
42419 int
42420 main (void)
42421 {
42422
42423
42424 ;
42425 return 0;
42426 }
42427
42428 _ACEOF
42429
42430
42431
42432 cat - <<_ACEOF >conftest.h
42433
42434 _ACEOF
42435
42436
42437 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
42438 echo "obj-m := conftest.o" >build/Makefile
42439 modpost_flag=''
42440 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
42441 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
42442 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42443 (eval $ac_try) 2>&5
42444 ac_status=$?
42445 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
42446 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
42447 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42448 (eval $ac_try) 2>&5
42449 ac_status=$?
42450 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
42451 (exit $ac_status); }; }; then
42452
42453
42454 cat >>confdefs.h <<\_ACEOF
42455 #define HAVE_PUT_LINK_DELAYED 1
42456 _ACEOF
42457
42458
42459 else
42460 $as_echo "$as_me: failed program was:" >&5
42461 sed 's/^/| /' conftest.$ac_ext >&5
42462
42463 { $as_echo "$as_me:$LINENO: checking whether iops->put_link() passes cookie" >&5
42464 $as_echo_n "checking whether iops->put_link() passes cookie... " >&6; }
42465
42466
42467 cat confdefs.h - <<_ACEOF >conftest.c
42468 /* confdefs.h. */
42469 _ACEOF
42470 cat confdefs.h >>conftest.$ac_ext
42471 cat >>conftest.$ac_ext <<_ACEOF
42472 /* end confdefs.h. */
42473
42474
42475 #include <linux/fs.h>
42476 void put_link(struct inode *ip, void *cookie)
42477 { return; }
42478 static struct inode_operations
42479 iops __attribute__ ((unused)) = {
42480 .put_link = put_link,
42481 };
42482
42483 int
42484 main (void)
42485 {
42486
42487
42488 ;
42489 return 0;
42490 }
42491
42492 _ACEOF
42493
42494
42495
42496 cat - <<_ACEOF >conftest.h
42497
42498 _ACEOF
42499
42500
42501 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
42502 echo "obj-m := conftest.o" >build/Makefile
42503 modpost_flag=''
42504 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
42505 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
42506 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42507 (eval $ac_try) 2>&5
42508 ac_status=$?
42509 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
42510 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
42511 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42512 (eval $ac_try) 2>&5
42513 ac_status=$?
42514 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
42515 (exit $ac_status); }; }; then
42516
42517 { $as_echo "$as_me:$LINENO: result: yes" >&5
42518 $as_echo "yes" >&6; }
42519
42520 cat >>confdefs.h <<\_ACEOF
42521 #define HAVE_PUT_LINK_COOKIE 1
42522 _ACEOF
42523
42524
42525 else
42526 $as_echo "$as_me: failed program was:" >&5
42527 sed 's/^/| /' conftest.$ac_ext >&5
42528
42529 { $as_echo "$as_me:$LINENO: result: no" >&5
42530 $as_echo "no" >&6; }
42531 { $as_echo "$as_me:$LINENO: checking whether iops->put_link() passes nameidata" >&5
42532 $as_echo_n "checking whether iops->put_link() passes nameidata... " >&6; }
42533
42534
42535 cat confdefs.h - <<_ACEOF >conftest.c
42536 /* confdefs.h. */
42537 _ACEOF
42538 cat confdefs.h >>conftest.$ac_ext
42539 cat >>conftest.$ac_ext <<_ACEOF
42540 /* end confdefs.h. */
42541
42542
42543 #include <linux/fs.h>
42544 void put_link(struct dentry *de, struct
42545 nameidata *nd, void *ptr) { return; }
42546 static struct inode_operations
42547 iops __attribute__ ((unused)) = {
42548 .put_link = put_link,
42549 };
42550
42551 int
42552 main (void)
42553 {
42554
42555
42556 ;
42557 return 0;
42558 }
42559
42560 _ACEOF
42561
42562
42563
42564 cat - <<_ACEOF >conftest.h
42565
42566 _ACEOF
42567
42568
42569 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
42570 echo "obj-m := conftest.o" >build/Makefile
42571 modpost_flag=''
42572 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
42573 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
42574 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42575 (eval $ac_try) 2>&5
42576 ac_status=$?
42577 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
42578 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
42579 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42580 (eval $ac_try) 2>&5
42581 ac_status=$?
42582 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
42583 (exit $ac_status); }; }; then
42584
42585 { $as_echo "$as_me:$LINENO: result: yes" >&5
42586 $as_echo "yes" >&6; }
42587
42588 cat >>confdefs.h <<\_ACEOF
42589 #define HAVE_PUT_LINK_NAMEIDATA 1
42590 _ACEOF
42591
42592
42593 else
42594 $as_echo "$as_me: failed program was:" >&5
42595 sed 's/^/| /' conftest.$ac_ext >&5
42596
42597 { { $as_echo "$as_me:$LINENO: error: no; please file a bug report" >&5
42598 $as_echo "$as_me: error: no; please file a bug report" >&2;}
42599 { (exit 1); exit 1; }; }
42600
42601
42602
42603 fi
42604
42605 rm -Rf build
42606
42607
42608
42609
42610
42611 fi
42612
42613 rm -Rf build
42614
42615
42616
42617
42618
42619 fi
42620
42621 rm -Rf build
42622
42623
42624
42625
42626 { $as_echo "$as_me:$LINENO: checking whether i_op->tmpfile() exists" >&5
42627 $as_echo_n "checking whether i_op->tmpfile() exists... " >&6; }
42628
42629
42630 cat confdefs.h - <<_ACEOF >conftest.c
42631 /* confdefs.h. */
42632 _ACEOF
42633 cat confdefs.h >>conftest.$ac_ext
42634 cat >>conftest.$ac_ext <<_ACEOF
42635 /* end confdefs.h. */
42636
42637
42638 #include <linux/fs.h>
42639 int tmpfile(struct inode *inode, struct dentry *dentry,
42640 umode_t mode) { return 0; }
42641 static struct inode_operations
42642 iops __attribute__ ((unused)) = {
42643 .tmpfile = tmpfile,
42644 };
42645
42646 int
42647 main (void)
42648 {
42649
42650
42651 ;
42652 return 0;
42653 }
42654
42655 _ACEOF
42656
42657
42658
42659 cat - <<_ACEOF >conftest.h
42660
42661 _ACEOF
42662
42663
42664 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
42665 echo "obj-m := conftest.o" >build/Makefile
42666 modpost_flag=''
42667 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
42668 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
42669 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42670 (eval $ac_try) 2>&5
42671 ac_status=$?
42672 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
42673 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
42674 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42675 (eval $ac_try) 2>&5
42676 ac_status=$?
42677 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
42678 (exit $ac_status); }; }; then
42679
42680 { $as_echo "$as_me:$LINENO: result: yes" >&5
42681 $as_echo "yes" >&6; }
42682
42683 cat >>confdefs.h <<\_ACEOF
42684 #define HAVE_TMPFILE 1
42685 _ACEOF
42686
42687
42688 else
42689 $as_echo "$as_me: failed program was:" >&5
42690 sed 's/^/| /' conftest.$ac_ext >&5
42691
42692 { $as_echo "$as_me:$LINENO: result: no" >&5
42693 $as_echo "no" >&6; }
42694
42695
42696
42697 fi
42698
42699 rm -Rf build
42700
42701
42702
42703
42704 { $as_echo "$as_me:$LINENO: checking whether iops->truncate_range() exists" >&5
42705 $as_echo_n "checking whether iops->truncate_range() exists... " >&6; }
42706
42707
42708 cat confdefs.h - <<_ACEOF >conftest.c
42709 /* confdefs.h. */
42710 _ACEOF
42711 cat confdefs.h >>conftest.$ac_ext
42712 cat >>conftest.$ac_ext <<_ACEOF
42713 /* end confdefs.h. */
42714
42715
42716 #include <linux/fs.h>
42717 void truncate_range(struct inode *inode, loff_t start,
42718 loff_t end) { return; }
42719 static struct inode_operations iops __attribute__ ((unused)) = {
42720 .truncate_range = truncate_range,
42721 };
42722
42723 int
42724 main (void)
42725 {
42726
42727
42728 ;
42729 return 0;
42730 }
42731
42732 _ACEOF
42733
42734
42735
42736 cat - <<_ACEOF >conftest.h
42737
42738 _ACEOF
42739
42740
42741 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
42742 echo "obj-m := conftest.o" >build/Makefile
42743 modpost_flag=''
42744 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
42745 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
42746 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42747 (eval $ac_try) 2>&5
42748 ac_status=$?
42749 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
42750 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
42751 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42752 (eval $ac_try) 2>&5
42753 ac_status=$?
42754 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
42755 (exit $ac_status); }; }; then
42756
42757 { $as_echo "$as_me:$LINENO: result: yes" >&5
42758 $as_echo "yes" >&6; }
42759
42760 cat >>confdefs.h <<\_ACEOF
42761 #define HAVE_INODE_TRUNCATE_RANGE 1
42762 _ACEOF
42763
42764
42765 else
42766 $as_echo "$as_me: failed program was:" >&5
42767 sed 's/^/| /' conftest.$ac_ext >&5
42768
42769 { $as_echo "$as_me:$LINENO: result: no" >&5
42770 $as_echo "no" >&6; }
42771
42772
42773
42774 fi
42775
42776 rm -Rf build
42777
42778
42779
42780
42781 { $as_echo "$as_me:$LINENO: checking whether dops->d_automount() exists" >&5
42782 $as_echo_n "checking whether dops->d_automount() exists... " >&6; }
42783
42784
42785 cat confdefs.h - <<_ACEOF >conftest.c
42786 /* confdefs.h. */
42787 _ACEOF
42788 cat confdefs.h >>conftest.$ac_ext
42789 cat >>conftest.$ac_ext <<_ACEOF
42790 /* end confdefs.h. */
42791
42792
42793 #include <linux/dcache.h>
42794 struct vfsmount *d_automount(struct path *p) { return NULL; }
42795 struct dentry_operations dops __attribute__ ((unused)) = {
42796 .d_automount = d_automount,
42797 };
42798
42799 int
42800 main (void)
42801 {
42802
42803
42804 ;
42805 return 0;
42806 }
42807
42808 _ACEOF
42809
42810
42811
42812 cat - <<_ACEOF >conftest.h
42813
42814 _ACEOF
42815
42816
42817 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
42818 echo "obj-m := conftest.o" >build/Makefile
42819 modpost_flag=''
42820 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
42821 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
42822 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42823 (eval $ac_try) 2>&5
42824 ac_status=$?
42825 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
42826 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
42827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42828 (eval $ac_try) 2>&5
42829 ac_status=$?
42830 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
42831 (exit $ac_status); }; }; then
42832
42833 { $as_echo "$as_me:$LINENO: result: yes" >&5
42834 $as_echo "yes" >&6; }
42835
42836 cat >>confdefs.h <<\_ACEOF
42837 #define HAVE_AUTOMOUNT 1
42838 _ACEOF
42839
42840
42841 else
42842 $as_echo "$as_me: failed program was:" >&5
42843 sed 's/^/| /' conftest.$ac_ext >&5
42844
42845 { $as_echo "$as_me:$LINENO: result: no" >&5
42846 $as_echo "no" >&6; }
42847
42848
42849
42850 fi
42851
42852 rm -Rf build
42853
42854
42855
42856
42857 { $as_echo "$as_me:$LINENO: checking whether eops->encode_fh() wants inode" >&5
42858 $as_echo_n "checking whether eops->encode_fh() wants inode... " >&6; }
42859
42860
42861 cat confdefs.h - <<_ACEOF >conftest.c
42862 /* confdefs.h. */
42863 _ACEOF
42864 cat confdefs.h >>conftest.$ac_ext
42865 cat >>conftest.$ac_ext <<_ACEOF
42866 /* end confdefs.h. */
42867
42868
42869 #include <linux/exportfs.h>
42870 int encode_fh(struct inode *inode, __u32 *fh, int *max_len,
42871 struct inode *parent) { return 0; }
42872 static struct export_operations eops __attribute__ ((unused))={
42873 .encode_fh = encode_fh,
42874 };
42875
42876 int
42877 main (void)
42878 {
42879
42880
42881 ;
42882 return 0;
42883 }
42884
42885 _ACEOF
42886
42887
42888
42889 cat - <<_ACEOF >conftest.h
42890
42891 _ACEOF
42892
42893
42894 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
42895 echo "obj-m := conftest.o" >build/Makefile
42896 modpost_flag=''
42897 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
42898 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
42899 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42900 (eval $ac_try) 2>&5
42901 ac_status=$?
42902 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
42903 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
42904 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42905 (eval $ac_try) 2>&5
42906 ac_status=$?
42907 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
42908 (exit $ac_status); }; }; then
42909
42910 { $as_echo "$as_me:$LINENO: result: yes" >&5
42911 $as_echo "yes" >&6; }
42912
42913 cat >>confdefs.h <<\_ACEOF
42914 #define HAVE_ENCODE_FH_WITH_INODE 1
42915 _ACEOF
42916
42917
42918 else
42919 $as_echo "$as_me: failed program was:" >&5
42920 sed 's/^/| /' conftest.$ac_ext >&5
42921
42922 { $as_echo "$as_me:$LINENO: result: no" >&5
42923 $as_echo "no" >&6; }
42924
42925
42926
42927 fi
42928
42929 rm -Rf build
42930
42931
42932
42933
42934 { $as_echo "$as_me:$LINENO: checking whether eops->commit_metadata() exists" >&5
42935 $as_echo_n "checking whether eops->commit_metadata() exists... " >&6; }
42936
42937
42938 cat confdefs.h - <<_ACEOF >conftest.c
42939 /* confdefs.h. */
42940 _ACEOF
42941 cat confdefs.h >>conftest.$ac_ext
42942 cat >>conftest.$ac_ext <<_ACEOF
42943 /* end confdefs.h. */
42944
42945
42946 #include <linux/exportfs.h>
42947 int commit_metadata(struct inode *inode) { return 0; }
42948 static struct export_operations eops __attribute__ ((unused))={
42949 .commit_metadata = commit_metadata,
42950 };
42951
42952 int
42953 main (void)
42954 {
42955
42956
42957 ;
42958 return 0;
42959 }
42960
42961 _ACEOF
42962
42963
42964
42965 cat - <<_ACEOF >conftest.h
42966
42967 _ACEOF
42968
42969
42970 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
42971 echo "obj-m := conftest.o" >build/Makefile
42972 modpost_flag=''
42973 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
42974 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
42975 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42976 (eval $ac_try) 2>&5
42977 ac_status=$?
42978 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
42979 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
42980 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42981 (eval $ac_try) 2>&5
42982 ac_status=$?
42983 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
42984 (exit $ac_status); }; }; then
42985
42986 { $as_echo "$as_me:$LINENO: result: yes" >&5
42987 $as_echo "yes" >&6; }
42988
42989 cat >>confdefs.h <<\_ACEOF
42990 #define HAVE_COMMIT_METADATA 1
42991 _ACEOF
42992
42993
42994 else
42995 $as_echo "$as_me: failed program was:" >&5
42996 sed 's/^/| /' conftest.$ac_ext >&5
42997
42998 { $as_echo "$as_me:$LINENO: result: no" >&5
42999 $as_echo "no" >&6; }
43000
43001
43002
43003 fi
43004
43005 rm -Rf build
43006
43007
43008
43009 { $as_echo "$as_me:$LINENO: checking whether clear_inode() is available" >&5
43010 $as_echo_n "checking whether clear_inode() is available... " >&6; }
43011
43012
43013
43014 cat confdefs.h - <<_ACEOF >conftest.c
43015 /* confdefs.h. */
43016 _ACEOF
43017 cat confdefs.h >>conftest.$ac_ext
43018 cat >>conftest.$ac_ext <<_ACEOF
43019 /* end confdefs.h. */
43020
43021
43022 #include <linux/fs.h>
43023
43024 int
43025 main (void)
43026 {
43027
43028 clear_inode(NULL);
43029
43030 ;
43031 return 0;
43032 }
43033
43034 _ACEOF
43035
43036
43037
43038 cat - <<_ACEOF >conftest.h
43039
43040 _ACEOF
43041
43042
43043 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
43044 echo "obj-m := conftest.o" >build/Makefile
43045 modpost_flag=''
43046 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
43047 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
43048 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43049 (eval $ac_try) 2>&5
43050 ac_status=$?
43051 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
43052 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
43053 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43054 (eval $ac_try) 2>&5
43055 ac_status=$?
43056 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
43057 (exit $ac_status); }; }; then
43058 rc=0
43059 else
43060 $as_echo "$as_me: failed program was:" >&5
43061 sed 's/^/| /' conftest.$ac_ext >&5
43062 rc=1
43063
43064
43065 fi
43066
43067 rm -Rf build
43068
43069
43070 if test $rc -ne 0; then :
43071
43072 { $as_echo "$as_me:$LINENO: result: no" >&5
43073 $as_echo "no" >&6; }
43074
43075 else
43076 if test "x$enable_linux_builtin" != xyes; then
43077
43078 grep -q -E '[[:space:]]clear_inode[[:space:]]' \
43079 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
43080 rc=$?
43081 if test $rc -ne 0; then
43082 export=0
43083 for file in fs/inode.c; do
43084 grep -q -E "EXPORT_SYMBOL.*(clear_inode)" \
43085 "$LINUX/$file" 2>/dev/null
43086 rc=$?
43087 if test $rc -eq 0; then
43088 export=1
43089 break;
43090 fi
43091 done
43092 if test $export -eq 0; then :
43093 rc=1
43094 else :
43095 rc=0
43096 fi
43097 else :
43098 rc=0
43099 fi
43100
43101 fi
43102 if test $rc -ne 0; then :
43103
43104 { $as_echo "$as_me:$LINENO: result: no" >&5
43105 $as_echo "no" >&6; }
43106
43107 else :
43108
43109 { $as_echo "$as_me:$LINENO: result: yes" >&5
43110 $as_echo "yes" >&6; }
43111
43112 cat >>confdefs.h <<\_ACEOF
43113 #define HAVE_CLEAR_INODE 1
43114 _ACEOF
43115
43116
43117 fi
43118 fi
43119
43120
43121 { $as_echo "$as_me:$LINENO: checking whether setattr_prepare() is available" >&5
43122 $as_echo_n "checking whether setattr_prepare() is available... " >&6; }
43123
43124
43125
43126 cat confdefs.h - <<_ACEOF >conftest.c
43127 /* confdefs.h. */
43128 _ACEOF
43129 cat confdefs.h >>conftest.$ac_ext
43130 cat >>conftest.$ac_ext <<_ACEOF
43131 /* end confdefs.h. */
43132
43133
43134 #include <linux/fs.h>
43135
43136 int
43137 main (void)
43138 {
43139
43140 struct dentry *dentry = NULL;
43141 struct iattr *attr = NULL;
43142 int error;
43143
43144 error = setattr_prepare(dentry, attr);
43145
43146 ;
43147 return 0;
43148 }
43149
43150 _ACEOF
43151
43152
43153
43154 cat - <<_ACEOF >conftest.h
43155
43156 _ACEOF
43157
43158
43159 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
43160 echo "obj-m := conftest.o" >build/Makefile
43161 modpost_flag=''
43162 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
43163 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
43164 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43165 (eval $ac_try) 2>&5
43166 ac_status=$?
43167 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
43168 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
43169 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43170 (eval $ac_try) 2>&5
43171 ac_status=$?
43172 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
43173 (exit $ac_status); }; }; then
43174 rc=0
43175 else
43176 $as_echo "$as_me: failed program was:" >&5
43177 sed 's/^/| /' conftest.$ac_ext >&5
43178 rc=1
43179
43180
43181 fi
43182
43183 rm -Rf build
43184
43185
43186 if test $rc -ne 0; then :
43187
43188 { $as_echo "$as_me:$LINENO: result: no" >&5
43189 $as_echo "no" >&6; }
43190
43191 else
43192 if test "x$enable_linux_builtin" != xyes; then
43193
43194 grep -q -E '[[:space:]]setattr_prepare[[:space:]]' \
43195 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
43196 rc=$?
43197 if test $rc -ne 0; then
43198 export=0
43199 for file in fs/attr.c; do
43200 grep -q -E "EXPORT_SYMBOL.*(setattr_prepare)" \
43201 "$LINUX/$file" 2>/dev/null
43202 rc=$?
43203 if test $rc -eq 0; then
43204 export=1
43205 break;
43206 fi
43207 done
43208 if test $export -eq 0; then :
43209 rc=1
43210 else :
43211 rc=0
43212 fi
43213 else :
43214 rc=0
43215 fi
43216
43217 fi
43218 if test $rc -ne 0; then :
43219
43220 { $as_echo "$as_me:$LINENO: result: no" >&5
43221 $as_echo "no" >&6; }
43222
43223 else :
43224
43225 { $as_echo "$as_me:$LINENO: result: yes" >&5
43226 $as_echo "yes" >&6; }
43227
43228 cat >>confdefs.h <<\_ACEOF
43229 #define HAVE_SETATTR_PREPARE 1
43230 _ACEOF
43231
43232
43233 fi
43234 fi
43235
43236
43237 { $as_echo "$as_me:$LINENO: checking whether insert_inode_locked() is available" >&5
43238 $as_echo_n "checking whether insert_inode_locked() is available... " >&6; }
43239
43240
43241
43242 cat confdefs.h - <<_ACEOF >conftest.c
43243 /* confdefs.h. */
43244 _ACEOF
43245 cat confdefs.h >>conftest.$ac_ext
43246 cat >>conftest.$ac_ext <<_ACEOF
43247 /* end confdefs.h. */
43248
43249
43250 #include <linux/fs.h>
43251
43252 int
43253 main (void)
43254 {
43255
43256 insert_inode_locked(NULL);
43257
43258 ;
43259 return 0;
43260 }
43261
43262 _ACEOF
43263
43264
43265
43266 cat - <<_ACEOF >conftest.h
43267
43268 _ACEOF
43269
43270
43271 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
43272 echo "obj-m := conftest.o" >build/Makefile
43273 modpost_flag=''
43274 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
43275 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
43276 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43277 (eval $ac_try) 2>&5
43278 ac_status=$?
43279 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
43280 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
43281 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43282 (eval $ac_try) 2>&5
43283 ac_status=$?
43284 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
43285 (exit $ac_status); }; }; then
43286 rc=0
43287 else
43288 $as_echo "$as_me: failed program was:" >&5
43289 sed 's/^/| /' conftest.$ac_ext >&5
43290 rc=1
43291
43292
43293 fi
43294
43295 rm -Rf build
43296
43297
43298 if test $rc -ne 0; then :
43299
43300 { $as_echo "$as_me:$LINENO: result: no" >&5
43301 $as_echo "no" >&6; }
43302
43303 else
43304 if test "x$enable_linux_builtin" != xyes; then
43305
43306 grep -q -E '[[:space:]]insert_inode_locked[[:space:]]' \
43307 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
43308 rc=$?
43309 if test $rc -ne 0; then
43310 export=0
43311 for file in fs/inode.c; do
43312 grep -q -E "EXPORT_SYMBOL.*(insert_inode_locked)" \
43313 "$LINUX/$file" 2>/dev/null
43314 rc=$?
43315 if test $rc -eq 0; then
43316 export=1
43317 break;
43318 fi
43319 done
43320 if test $export -eq 0; then :
43321 rc=1
43322 else :
43323 rc=0
43324 fi
43325 else :
43326 rc=0
43327 fi
43328
43329 fi
43330 if test $rc -ne 0; then :
43331
43332 { $as_echo "$as_me:$LINENO: result: no" >&5
43333 $as_echo "no" >&6; }
43334
43335 else :
43336
43337 { $as_echo "$as_me:$LINENO: result: yes" >&5
43338 $as_echo "yes" >&6; }
43339
43340 cat >>confdefs.h <<\_ACEOF
43341 #define HAVE_INSERT_INODE_LOCKED 1
43342 _ACEOF
43343
43344
43345 fi
43346 fi
43347
43348
43349 { $as_echo "$as_me:$LINENO: checking whether d_make_root() is available" >&5
43350 $as_echo_n "checking whether d_make_root() is available... " >&6; }
43351
43352
43353
43354 cat confdefs.h - <<_ACEOF >conftest.c
43355 /* confdefs.h. */
43356 _ACEOF
43357 cat confdefs.h >>conftest.$ac_ext
43358 cat >>conftest.$ac_ext <<_ACEOF
43359 /* end confdefs.h. */
43360
43361
43362 #include <linux/dcache.h>
43363
43364 int
43365 main (void)
43366 {
43367
43368 d_make_root(NULL);
43369
43370 ;
43371 return 0;
43372 }
43373
43374 _ACEOF
43375
43376
43377
43378 cat - <<_ACEOF >conftest.h
43379
43380 _ACEOF
43381
43382
43383 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
43384 echo "obj-m := conftest.o" >build/Makefile
43385 modpost_flag=''
43386 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
43387 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
43388 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43389 (eval $ac_try) 2>&5
43390 ac_status=$?
43391 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
43392 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
43393 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43394 (eval $ac_try) 2>&5
43395 ac_status=$?
43396 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
43397 (exit $ac_status); }; }; then
43398 rc=0
43399 else
43400 $as_echo "$as_me: failed program was:" >&5
43401 sed 's/^/| /' conftest.$ac_ext >&5
43402 rc=1
43403
43404
43405 fi
43406
43407 rm -Rf build
43408
43409
43410 if test $rc -ne 0; then :
43411
43412 { $as_echo "$as_me:$LINENO: result: no" >&5
43413 $as_echo "no" >&6; }
43414
43415 else
43416 if test "x$enable_linux_builtin" != xyes; then
43417
43418 grep -q -E '[[:space:]]d_make_root[[:space:]]' \
43419 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
43420 rc=$?
43421 if test $rc -ne 0; then
43422 export=0
43423 for file in fs/dcache.c; do
43424 grep -q -E "EXPORT_SYMBOL.*(d_make_root)" \
43425 "$LINUX/$file" 2>/dev/null
43426 rc=$?
43427 if test $rc -eq 0; then
43428 export=1
43429 break;
43430 fi
43431 done
43432 if test $export -eq 0; then :
43433 rc=1
43434 else :
43435 rc=0
43436 fi
43437 else :
43438 rc=0
43439 fi
43440
43441 fi
43442 if test $rc -ne 0; then :
43443
43444 { $as_echo "$as_me:$LINENO: result: no" >&5
43445 $as_echo "no" >&6; }
43446
43447 else :
43448
43449 { $as_echo "$as_me:$LINENO: result: yes" >&5
43450 $as_echo "yes" >&6; }
43451
43452 cat >>confdefs.h <<\_ACEOF
43453 #define HAVE_D_MAKE_ROOT 1
43454 _ACEOF
43455
43456
43457 fi
43458 fi
43459
43460
43461 { $as_echo "$as_me:$LINENO: checking whether d_obtain_alias() is available" >&5
43462 $as_echo_n "checking whether d_obtain_alias() is available... " >&6; }
43463
43464
43465
43466 cat confdefs.h - <<_ACEOF >conftest.c
43467 /* confdefs.h. */
43468 _ACEOF
43469 cat confdefs.h >>conftest.$ac_ext
43470 cat >>conftest.$ac_ext <<_ACEOF
43471 /* end confdefs.h. */
43472
43473
43474 #include <linux/dcache.h>
43475
43476 int
43477 main (void)
43478 {
43479
43480 d_obtain_alias(NULL);
43481
43482 ;
43483 return 0;
43484 }
43485
43486 _ACEOF
43487
43488
43489
43490 cat - <<_ACEOF >conftest.h
43491
43492 _ACEOF
43493
43494
43495 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
43496 echo "obj-m := conftest.o" >build/Makefile
43497 modpost_flag=''
43498 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
43499 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
43500 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43501 (eval $ac_try) 2>&5
43502 ac_status=$?
43503 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
43504 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
43505 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43506 (eval $ac_try) 2>&5
43507 ac_status=$?
43508 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
43509 (exit $ac_status); }; }; then
43510 rc=0
43511 else
43512 $as_echo "$as_me: failed program was:" >&5
43513 sed 's/^/| /' conftest.$ac_ext >&5
43514 rc=1
43515
43516
43517 fi
43518
43519 rm -Rf build
43520
43521
43522 if test $rc -ne 0; then :
43523
43524 { $as_echo "$as_me:$LINENO: result: no" >&5
43525 $as_echo "no" >&6; }
43526
43527 else
43528 if test "x$enable_linux_builtin" != xyes; then
43529
43530 grep -q -E '[[:space:]]d_obtain_alias[[:space:]]' \
43531 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
43532 rc=$?
43533 if test $rc -ne 0; then
43534 export=0
43535 for file in fs/dcache.c; do
43536 grep -q -E "EXPORT_SYMBOL.*(d_obtain_alias)" \
43537 "$LINUX/$file" 2>/dev/null
43538 rc=$?
43539 if test $rc -eq 0; then
43540 export=1
43541 break;
43542 fi
43543 done
43544 if test $export -eq 0; then :
43545 rc=1
43546 else :
43547 rc=0
43548 fi
43549 else :
43550 rc=0
43551 fi
43552
43553 fi
43554 if test $rc -ne 0; then :
43555
43556 { $as_echo "$as_me:$LINENO: result: no" >&5
43557 $as_echo "no" >&6; }
43558
43559 else :
43560
43561 { $as_echo "$as_me:$LINENO: result: yes" >&5
43562 $as_echo "yes" >&6; }
43563
43564 cat >>confdefs.h <<\_ACEOF
43565 #define HAVE_D_OBTAIN_ALIAS 1
43566 _ACEOF
43567
43568
43569 fi
43570 fi
43571
43572
43573 { $as_echo "$as_me:$LINENO: checking whether d_prune_aliases() is available" >&5
43574 $as_echo_n "checking whether d_prune_aliases() is available... " >&6; }
43575
43576
43577
43578 cat confdefs.h - <<_ACEOF >conftest.c
43579 /* confdefs.h. */
43580 _ACEOF
43581 cat confdefs.h >>conftest.$ac_ext
43582 cat >>conftest.$ac_ext <<_ACEOF
43583 /* end confdefs.h. */
43584
43585
43586 #include <linux/dcache.h>
43587
43588 int
43589 main (void)
43590 {
43591
43592 struct inode *ip = NULL;
43593 d_prune_aliases(ip);
43594
43595 ;
43596 return 0;
43597 }
43598
43599 _ACEOF
43600
43601
43602
43603 cat - <<_ACEOF >conftest.h
43604
43605 _ACEOF
43606
43607
43608 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
43609 echo "obj-m := conftest.o" >build/Makefile
43610 modpost_flag=''
43611 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
43612 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
43613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43614 (eval $ac_try) 2>&5
43615 ac_status=$?
43616 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
43617 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
43618 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43619 (eval $ac_try) 2>&5
43620 ac_status=$?
43621 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
43622 (exit $ac_status); }; }; then
43623 rc=0
43624 else
43625 $as_echo "$as_me: failed program was:" >&5
43626 sed 's/^/| /' conftest.$ac_ext >&5
43627 rc=1
43628
43629
43630 fi
43631
43632 rm -Rf build
43633
43634
43635 if test $rc -ne 0; then :
43636
43637 { $as_echo "$as_me:$LINENO: result: no" >&5
43638 $as_echo "no" >&6; }
43639
43640 else
43641 if test "x$enable_linux_builtin" != xyes; then
43642
43643 grep -q -E '[[:space:]]d_prune_aliases[[:space:]]' \
43644 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
43645 rc=$?
43646 if test $rc -ne 0; then
43647 export=0
43648 for file in fs/dcache.c; do
43649 grep -q -E "EXPORT_SYMBOL.*(d_prune_aliases)" \
43650 "$LINUX/$file" 2>/dev/null
43651 rc=$?
43652 if test $rc -eq 0; then
43653 export=1
43654 break;
43655 fi
43656 done
43657 if test $export -eq 0; then :
43658 rc=1
43659 else :
43660 rc=0
43661 fi
43662 else :
43663 rc=0
43664 fi
43665
43666 fi
43667 if test $rc -ne 0; then :
43668
43669 { $as_echo "$as_me:$LINENO: result: no" >&5
43670 $as_echo "no" >&6; }
43671
43672 else :
43673
43674 { $as_echo "$as_me:$LINENO: result: yes" >&5
43675 $as_echo "yes" >&6; }
43676
43677 cat >>confdefs.h <<\_ACEOF
43678 #define HAVE_D_PRUNE_ALIASES 1
43679 _ACEOF
43680
43681
43682 fi
43683 fi
43684
43685
43686 { $as_echo "$as_me:$LINENO: checking whether d_set_d_op() is available" >&5
43687 $as_echo_n "checking whether d_set_d_op() is available... " >&6; }
43688
43689
43690
43691 cat confdefs.h - <<_ACEOF >conftest.c
43692 /* confdefs.h. */
43693 _ACEOF
43694 cat confdefs.h >>conftest.$ac_ext
43695 cat >>conftest.$ac_ext <<_ACEOF
43696 /* end confdefs.h. */
43697
43698
43699 #include <linux/dcache.h>
43700
43701 int
43702 main (void)
43703 {
43704
43705 d_set_d_op(NULL, NULL);
43706
43707 ;
43708 return 0;
43709 }
43710
43711 _ACEOF
43712
43713
43714
43715 cat - <<_ACEOF >conftest.h
43716
43717 _ACEOF
43718
43719
43720 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
43721 echo "obj-m := conftest.o" >build/Makefile
43722 modpost_flag=''
43723 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
43724 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
43725 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43726 (eval $ac_try) 2>&5
43727 ac_status=$?
43728 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
43729 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
43730 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43731 (eval $ac_try) 2>&5
43732 ac_status=$?
43733 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
43734 (exit $ac_status); }; }; then
43735 rc=0
43736 else
43737 $as_echo "$as_me: failed program was:" >&5
43738 sed 's/^/| /' conftest.$ac_ext >&5
43739 rc=1
43740
43741
43742 fi
43743
43744 rm -Rf build
43745
43746
43747 if test $rc -ne 0; then :
43748
43749 { $as_echo "$as_me:$LINENO: result: no" >&5
43750 $as_echo "no" >&6; }
43751
43752 else
43753 if test "x$enable_linux_builtin" != xyes; then
43754
43755 grep -q -E '[[:space:]]d_set_d_op[[:space:]]' \
43756 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
43757 rc=$?
43758 if test $rc -ne 0; then
43759 export=0
43760 for file in fs/dcache.c; do
43761 grep -q -E "EXPORT_SYMBOL.*(d_set_d_op)" \
43762 "$LINUX/$file" 2>/dev/null
43763 rc=$?
43764 if test $rc -eq 0; then
43765 export=1
43766 break;
43767 fi
43768 done
43769 if test $export -eq 0; then :
43770 rc=1
43771 else :
43772 rc=0
43773 fi
43774 else :
43775 rc=0
43776 fi
43777
43778 fi
43779 if test $rc -ne 0; then :
43780
43781 { $as_echo "$as_me:$LINENO: result: no" >&5
43782 $as_echo "no" >&6; }
43783
43784 else :
43785
43786 { $as_echo "$as_me:$LINENO: result: yes" >&5
43787 $as_echo "yes" >&6; }
43788
43789 cat >>confdefs.h <<\_ACEOF
43790 #define HAVE_D_SET_D_OP 1
43791 _ACEOF
43792
43793
43794 fi
43795 fi
43796
43797
43798
43799 { $as_echo "$as_me:$LINENO: checking whether dops->d_revalidate() takes struct nameidata" >&5
43800 $as_echo_n "checking whether dops->d_revalidate() takes struct nameidata... " >&6; }
43801
43802
43803 cat confdefs.h - <<_ACEOF >conftest.c
43804 /* confdefs.h. */
43805 _ACEOF
43806 cat confdefs.h >>conftest.$ac_ext
43807 cat >>conftest.$ac_ext <<_ACEOF
43808 /* end confdefs.h. */
43809
43810
43811 #include <linux/dcache.h>
43812 #include <linux/sched.h>
43813
43814 int revalidate (struct dentry *dentry,
43815 struct nameidata *nidata) { return 0; }
43816
43817 static const struct dentry_operations
43818 dops __attribute__ ((unused)) = {
43819 .d_revalidate = revalidate,
43820 };
43821
43822 int
43823 main (void)
43824 {
43825
43826
43827 ;
43828 return 0;
43829 }
43830
43831 _ACEOF
43832
43833
43834
43835 cat - <<_ACEOF >conftest.h
43836
43837 _ACEOF
43838
43839
43840 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
43841 echo "obj-m := conftest.o" >build/Makefile
43842 modpost_flag=''
43843 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
43844 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
43845 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43846 (eval $ac_try) 2>&5
43847 ac_status=$?
43848 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
43849 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
43850 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43851 (eval $ac_try) 2>&5
43852 ac_status=$?
43853 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
43854 (exit $ac_status); }; }; then
43855
43856 { $as_echo "$as_me:$LINENO: result: yes" >&5
43857 $as_echo "yes" >&6; }
43858
43859 cat >>confdefs.h <<\_ACEOF
43860 #define HAVE_D_REVALIDATE_NAMEIDATA 1
43861 _ACEOF
43862
43863
43864 else
43865 $as_echo "$as_me: failed program was:" >&5
43866 sed 's/^/| /' conftest.$ac_ext >&5
43867
43868 { $as_echo "$as_me:$LINENO: result: no" >&5
43869 $as_echo "no" >&6; }
43870
43871
43872
43873 fi
43874
43875 rm -Rf build
43876
43877
43878
43879
43880 { $as_echo "$as_me:$LINENO: checking whether dentry uses const struct dentry_operations" >&5
43881 $as_echo_n "checking whether dentry uses const struct dentry_operations... " >&6; }
43882
43883
43884 cat confdefs.h - <<_ACEOF >conftest.c
43885 /* confdefs.h. */
43886 _ACEOF
43887 cat confdefs.h >>conftest.$ac_ext
43888 cat >>conftest.$ac_ext <<_ACEOF
43889 /* end confdefs.h. */
43890
43891
43892 #include <linux/dcache.h>
43893
43894 const struct dentry_operations test_d_op = {
43895 .d_revalidate = NULL,
43896 };
43897
43898 int
43899 main (void)
43900 {
43901
43902 struct dentry d __attribute__ ((unused));
43903
43904 d.d_op = &test_d_op;
43905
43906 ;
43907 return 0;
43908 }
43909
43910 _ACEOF
43911
43912
43913
43914 cat - <<_ACEOF >conftest.h
43915
43916 _ACEOF
43917
43918
43919 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
43920 echo "obj-m := conftest.o" >build/Makefile
43921 modpost_flag=''
43922 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
43923 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
43924 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43925 (eval $ac_try) 2>&5
43926 ac_status=$?
43927 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
43928 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
43929 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43930 (eval $ac_try) 2>&5
43931 ac_status=$?
43932 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
43933 (exit $ac_status); }; }; then
43934
43935 { $as_echo "$as_me:$LINENO: result: yes" >&5
43936 $as_echo "yes" >&6; }
43937
43938 cat >>confdefs.h <<\_ACEOF
43939 #define HAVE_CONST_DENTRY_OPERATIONS 1
43940 _ACEOF
43941
43942
43943 else
43944 $as_echo "$as_me: failed program was:" >&5
43945 sed 's/^/| /' conftest.$ac_ext >&5
43946
43947 { $as_echo "$as_me:$LINENO: result: no" >&5
43948 $as_echo "no" >&6; }
43949
43950
43951
43952 fi
43953
43954 rm -Rf build
43955
43956
43957
43958 { $as_echo "$as_me:$LINENO: checking whether truncate_setsize() is available" >&5
43959 $as_echo_n "checking whether truncate_setsize() is available... " >&6; }
43960
43961
43962
43963 cat confdefs.h - <<_ACEOF >conftest.c
43964 /* confdefs.h. */
43965 _ACEOF
43966 cat confdefs.h >>conftest.$ac_ext
43967 cat >>conftest.$ac_ext <<_ACEOF
43968 /* end confdefs.h. */
43969
43970
43971 #include <linux/mm.h>
43972
43973 int
43974 main (void)
43975 {
43976
43977 truncate_setsize(NULL, 0);
43978
43979 ;
43980 return 0;
43981 }
43982
43983 _ACEOF
43984
43985
43986
43987 cat - <<_ACEOF >conftest.h
43988
43989 _ACEOF
43990
43991
43992 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
43993 echo "obj-m := conftest.o" >build/Makefile
43994 modpost_flag=''
43995 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
43996 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
43997 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43998 (eval $ac_try) 2>&5
43999 ac_status=$?
44000 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
44001 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
44002 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44003 (eval $ac_try) 2>&5
44004 ac_status=$?
44005 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
44006 (exit $ac_status); }; }; then
44007 rc=0
44008 else
44009 $as_echo "$as_me: failed program was:" >&5
44010 sed 's/^/| /' conftest.$ac_ext >&5
44011 rc=1
44012
44013
44014 fi
44015
44016 rm -Rf build
44017
44018
44019 if test $rc -ne 0; then :
44020
44021 { $as_echo "$as_me:$LINENO: result: no" >&5
44022 $as_echo "no" >&6; }
44023
44024 else
44025 if test "x$enable_linux_builtin" != xyes; then
44026
44027 grep -q -E '[[:space:]]truncate_setsize[[:space:]]' \
44028 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
44029 rc=$?
44030 if test $rc -ne 0; then
44031 export=0
44032 for file in mm/truncate.c; do
44033 grep -q -E "EXPORT_SYMBOL.*(truncate_setsize)" \
44034 "$LINUX/$file" 2>/dev/null
44035 rc=$?
44036 if test $rc -eq 0; then
44037 export=1
44038 break;
44039 fi
44040 done
44041 if test $export -eq 0; then :
44042 rc=1
44043 else :
44044 rc=0
44045 fi
44046 else :
44047 rc=0
44048 fi
44049
44050 fi
44051 if test $rc -ne 0; then :
44052
44053 { $as_echo "$as_me:$LINENO: result: no" >&5
44054 $as_echo "no" >&6; }
44055
44056 else :
44057
44058 { $as_echo "$as_me:$LINENO: result: yes" >&5
44059 $as_echo "yes" >&6; }
44060
44061 cat >>confdefs.h <<\_ACEOF
44062 #define HAVE_TRUNCATE_SETSIZE 1
44063 _ACEOF
44064
44065
44066 fi
44067 fi
44068
44069
44070
44071 { $as_echo "$as_me:$LINENO: checking whether security_inode_init_security wants 6 args" >&5
44072 $as_echo_n "checking whether security_inode_init_security wants 6 args... " >&6; }
44073
44074
44075 cat confdefs.h - <<_ACEOF >conftest.c
44076 /* confdefs.h. */
44077 _ACEOF
44078 cat confdefs.h >>conftest.$ac_ext
44079 cat >>conftest.$ac_ext <<_ACEOF
44080 /* end confdefs.h. */
44081
44082
44083 #include <linux/security.h>
44084
44085 int
44086 main (void)
44087 {
44088
44089 struct inode *ip __attribute__ ((unused)) = NULL;
44090 struct inode *dip __attribute__ ((unused)) = NULL;
44091 const struct qstr *str __attribute__ ((unused)) = NULL;
44092 char *name __attribute__ ((unused)) = NULL;
44093 void *value __attribute__ ((unused)) = NULL;
44094 size_t len __attribute__ ((unused)) = 0;
44095
44096 security_inode_init_security(ip, dip, str, &name, &value, &len);
44097
44098 ;
44099 return 0;
44100 }
44101
44102 _ACEOF
44103
44104
44105
44106 cat - <<_ACEOF >conftest.h
44107
44108 _ACEOF
44109
44110
44111 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
44112 echo "obj-m := conftest.o" >build/Makefile
44113 modpost_flag=''
44114 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
44115 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
44116 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44117 (eval $ac_try) 2>&5
44118 ac_status=$?
44119 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
44120 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
44121 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44122 (eval $ac_try) 2>&5
44123 ac_status=$?
44124 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
44125 (exit $ac_status); }; }; then
44126
44127 { $as_echo "$as_me:$LINENO: result: yes" >&5
44128 $as_echo "yes" >&6; }
44129
44130 cat >>confdefs.h <<\_ACEOF
44131 #define HAVE_6ARGS_SECURITY_INODE_INIT_SECURITY 1
44132 _ACEOF
44133
44134
44135 else
44136 $as_echo "$as_me: failed program was:" >&5
44137 sed 's/^/| /' conftest.$ac_ext >&5
44138
44139 { $as_echo "$as_me:$LINENO: result: no" >&5
44140 $as_echo "no" >&6; }
44141
44142
44143
44144 fi
44145
44146 rm -Rf build
44147
44148
44149
44150
44151 { $as_echo "$as_me:$LINENO: checking whether security_inode_init_security wants callback" >&5
44152 $as_echo_n "checking whether security_inode_init_security wants callback... " >&6; }
44153
44154
44155 cat confdefs.h - <<_ACEOF >conftest.c
44156 /* confdefs.h. */
44157 _ACEOF
44158 cat confdefs.h >>conftest.$ac_ext
44159 cat >>conftest.$ac_ext <<_ACEOF
44160 /* end confdefs.h. */
44161
44162
44163 #include <linux/security.h>
44164
44165 int
44166 main (void)
44167 {
44168
44169 struct inode *ip __attribute__ ((unused)) = NULL;
44170 struct inode *dip __attribute__ ((unused)) = NULL;
44171 const struct qstr *str __attribute__ ((unused)) = NULL;
44172 initxattrs func __attribute__ ((unused)) = NULL;
44173
44174 security_inode_init_security(ip, dip, str, func, NULL);
44175
44176 ;
44177 return 0;
44178 }
44179
44180 _ACEOF
44181
44182
44183
44184 cat - <<_ACEOF >conftest.h
44185
44186 _ACEOF
44187
44188
44189 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
44190 echo "obj-m := conftest.o" >build/Makefile
44191 modpost_flag=''
44192 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
44193 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
44194 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44195 (eval $ac_try) 2>&5
44196 ac_status=$?
44197 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
44198 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
44199 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44200 (eval $ac_try) 2>&5
44201 ac_status=$?
44202 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
44203 (exit $ac_status); }; }; then
44204
44205 { $as_echo "$as_me:$LINENO: result: yes" >&5
44206 $as_echo "yes" >&6; }
44207
44208 cat >>confdefs.h <<\_ACEOF
44209 #define HAVE_CALLBACK_SECURITY_INODE_INIT_SECURITY 1
44210 _ACEOF
44211
44212
44213 else
44214 $as_echo "$as_me: failed program was:" >&5
44215 sed 's/^/| /' conftest.$ac_ext >&5
44216
44217 { $as_echo "$as_me:$LINENO: result: no" >&5
44218 $as_echo "no" >&6; }
44219
44220
44221
44222 fi
44223
44224 rm -Rf build
44225
44226
44227
44228
44229 { $as_echo "$as_me:$LINENO: checking whether fst->mount() exists" >&5
44230 $as_echo_n "checking whether fst->mount() exists... " >&6; }
44231
44232
44233 cat confdefs.h - <<_ACEOF >conftest.c
44234 /* confdefs.h. */
44235 _ACEOF
44236 cat confdefs.h >>conftest.$ac_ext
44237 cat >>conftest.$ac_ext <<_ACEOF
44238 /* end confdefs.h. */
44239
44240
44241 #include <linux/fs.h>
44242
44243 static struct dentry *
44244 mount(struct file_system_type *fs_type, int flags,
44245 const char *osname, void *data) {
44246 struct dentry *d = NULL;
44247 return (d);
44248 }
44249
44250 static struct file_system_type fst __attribute__ ((unused)) = {
44251 .mount = mount,
44252 };
44253
44254 int
44255 main (void)
44256 {
44257
44258
44259 ;
44260 return 0;
44261 }
44262
44263 _ACEOF
44264
44265
44266
44267 cat - <<_ACEOF >conftest.h
44268
44269 _ACEOF
44270
44271
44272 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
44273 echo "obj-m := conftest.o" >build/Makefile
44274 modpost_flag=''
44275 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
44276 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
44277 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44278 (eval $ac_try) 2>&5
44279 ac_status=$?
44280 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
44281 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
44282 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44283 (eval $ac_try) 2>&5
44284 ac_status=$?
44285 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
44286 (exit $ac_status); }; }; then
44287
44288 { $as_echo "$as_me:$LINENO: result: yes" >&5
44289 $as_echo "yes" >&6; }
44290
44291 cat >>confdefs.h <<\_ACEOF
44292 #define HAVE_FST_MOUNT 1
44293 _ACEOF
44294
44295
44296 else
44297 $as_echo "$as_me: failed program was:" >&5
44298 sed 's/^/| /' conftest.$ac_ext >&5
44299
44300 { $as_echo "$as_me:$LINENO: result: no" >&5
44301 $as_echo "no" >&6; }
44302
44303
44304
44305 fi
44306
44307 rm -Rf build
44308
44309
44310
44311
44312 { $as_echo "$as_me:$LINENO: checking whether super_block has s_shrink" >&5
44313 $as_echo_n "checking whether super_block has s_shrink... " >&6; }
44314
44315
44316 cat confdefs.h - <<_ACEOF >conftest.c
44317 /* confdefs.h. */
44318 _ACEOF
44319 cat confdefs.h >>conftest.$ac_ext
44320 cat >>conftest.$ac_ext <<_ACEOF
44321 /* end confdefs.h. */
44322
44323
44324 #include <linux/fs.h>
44325
44326 int shrink(struct shrinker *s, struct shrink_control *sc)
44327 { return 0; }
44328
44329 static const struct super_block
44330 sb __attribute__ ((unused)) = {
44331 .s_shrink.shrink = shrink,
44332 .s_shrink.seeks = DEFAULT_SEEKS,
44333 .s_shrink.batch = 0,
44334 };
44335
44336 int
44337 main (void)
44338 {
44339
44340
44341 ;
44342 return 0;
44343 }
44344
44345 _ACEOF
44346
44347
44348
44349 cat - <<_ACEOF >conftest.h
44350
44351 _ACEOF
44352
44353
44354 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
44355 echo "obj-m := conftest.o" >build/Makefile
44356 modpost_flag=''
44357 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
44358 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
44359 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44360 (eval $ac_try) 2>&5
44361 ac_status=$?
44362 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
44363 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
44364 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44365 (eval $ac_try) 2>&5
44366 ac_status=$?
44367 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
44368 (exit $ac_status); }; }; then
44369
44370 { $as_echo "$as_me:$LINENO: result: yes" >&5
44371 $as_echo "yes" >&6; }
44372
44373 cat >>confdefs.h <<\_ACEOF
44374 #define HAVE_SHRINK 1
44375 _ACEOF
44376
44377
44378
44379 else
44380 $as_echo "$as_me: failed program was:" >&5
44381 sed 's/^/| /' conftest.$ac_ext >&5
44382
44383 { $as_echo "$as_me:$LINENO: result: no" >&5
44384 $as_echo "no" >&6; }
44385
44386
44387
44388 fi
44389
44390 rm -Rf build
44391
44392
44393
44394
44395 { $as_echo "$as_me:$LINENO: checking whether shrink_control has nid" >&5
44396 $as_echo_n "checking whether shrink_control has nid... " >&6; }
44397
44398
44399 cat confdefs.h - <<_ACEOF >conftest.c
44400 /* confdefs.h. */
44401 _ACEOF
44402 cat confdefs.h >>conftest.$ac_ext
44403 cat >>conftest.$ac_ext <<_ACEOF
44404 /* end confdefs.h. */
44405
44406
44407 #include <linux/fs.h>
44408
44409 int
44410 main (void)
44411 {
44412
44413 struct shrink_control sc __attribute__ ((unused));
44414 unsigned long scnidsize __attribute__ ((unused)) =
44415 sizeof(sc.nid);
44416
44417 ;
44418 return 0;
44419 }
44420
44421 _ACEOF
44422
44423
44424
44425 cat - <<_ACEOF >conftest.h
44426
44427 _ACEOF
44428
44429
44430 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
44431 echo "obj-m := conftest.o" >build/Makefile
44432 modpost_flag=''
44433 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
44434 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
44435 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44436 (eval $ac_try) 2>&5
44437 ac_status=$?
44438 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
44439 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
44440 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44441 (eval $ac_try) 2>&5
44442 ac_status=$?
44443 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
44444 (exit $ac_status); }; }; then
44445
44446 { $as_echo "$as_me:$LINENO: result: yes" >&5
44447 $as_echo "yes" >&6; }
44448
44449 cat >>confdefs.h <<\_ACEOF
44450 #define SHRINK_CONTROL_HAS_NID 1
44451 _ACEOF
44452
44453
44454 else
44455 $as_echo "$as_me: failed program was:" >&5
44456 sed 's/^/| /' conftest.$ac_ext >&5
44457
44458 { $as_echo "$as_me:$LINENO: result: no" >&5
44459 $as_echo "no" >&6; }
44460
44461
44462
44463 fi
44464
44465 rm -Rf build
44466
44467
44468
44469
44470 { $as_echo "$as_me:$LINENO: checking whether super_block has s_instances list_head" >&5
44471 $as_echo_n "checking whether super_block has s_instances list_head... " >&6; }
44472
44473
44474 cat confdefs.h - <<_ACEOF >conftest.c
44475 /* confdefs.h. */
44476 _ACEOF
44477 cat confdefs.h >>conftest.$ac_ext
44478 cat >>conftest.$ac_ext <<_ACEOF
44479 /* end confdefs.h. */
44480
44481
44482 #include <linux/fs.h>
44483
44484 int
44485 main (void)
44486 {
44487
44488 struct super_block sb __attribute__ ((unused));
44489
44490 INIT_LIST_HEAD(&sb.s_instances);
44491
44492 ;
44493 return 0;
44494 }
44495
44496 _ACEOF
44497
44498
44499
44500 cat - <<_ACEOF >conftest.h
44501
44502 _ACEOF
44503
44504
44505 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
44506 echo "obj-m := conftest.o" >build/Makefile
44507 modpost_flag=''
44508 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
44509 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
44510 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44511 (eval $ac_try) 2>&5
44512 ac_status=$?
44513 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
44514 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
44515 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44516 (eval $ac_try) 2>&5
44517 ac_status=$?
44518 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
44519 (exit $ac_status); }; }; then
44520
44521 { $as_echo "$as_me:$LINENO: result: yes" >&5
44522 $as_echo "yes" >&6; }
44523
44524 cat >>confdefs.h <<\_ACEOF
44525 #define HAVE_S_INSTANCES_LIST_HEAD 1
44526 _ACEOF
44527
44528
44529 else
44530 $as_echo "$as_me: failed program was:" >&5
44531 sed 's/^/| /' conftest.$ac_ext >&5
44532
44533 { $as_echo "$as_me:$LINENO: result: no" >&5
44534 $as_echo "no" >&6; }
44535
44536
44537
44538 fi
44539
44540 rm -Rf build
44541
44542
44543
44544 { $as_echo "$as_me:$LINENO: checking whether super_block has s_d_op" >&5
44545 $as_echo_n "checking whether super_block has s_d_op... " >&6; }
44546
44547
44548 cat confdefs.h - <<_ACEOF >conftest.c
44549 /* confdefs.h. */
44550 _ACEOF
44551 cat confdefs.h >>conftest.$ac_ext
44552 cat >>conftest.$ac_ext <<_ACEOF
44553 /* end confdefs.h. */
44554
44555
44556 #include <linux/fs.h>
44557
44558 int
44559 main (void)
44560 {
44561
44562 struct super_block sb __attribute__ ((unused));
44563 sb.s_d_op = NULL;
44564
44565 ;
44566 return 0;
44567 }
44568
44569 _ACEOF
44570
44571
44572
44573 cat - <<_ACEOF >conftest.h
44574
44575 _ACEOF
44576
44577
44578 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
44579 echo "obj-m := conftest.o" >build/Makefile
44580 modpost_flag=''
44581 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
44582 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
44583 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44584 (eval $ac_try) 2>&5
44585 ac_status=$?
44586 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
44587 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
44588 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44589 (eval $ac_try) 2>&5
44590 ac_status=$?
44591 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
44592 (exit $ac_status); }; }; then
44593
44594 { $as_echo "$as_me:$LINENO: result: yes" >&5
44595 $as_echo "yes" >&6; }
44596
44597 cat >>confdefs.h <<\_ACEOF
44598 #define HAVE_S_D_OP 1
44599 _ACEOF
44600
44601
44602 else
44603 $as_echo "$as_me: failed program was:" >&5
44604 sed 's/^/| /' conftest.$ac_ext >&5
44605
44606 { $as_echo "$as_me:$LINENO: result: no" >&5
44607 $as_echo "no" >&6; }
44608
44609
44610
44611 fi
44612
44613 rm -Rf build
44614
44615
44616
44617
44618 { $as_echo "$as_me:$LINENO: checking whether super_setup_bdi_name() exists" >&5
44619 $as_echo_n "checking whether super_setup_bdi_name() exists... " >&6; }
44620
44621
44622
44623 cat confdefs.h - <<_ACEOF >conftest.c
44624 /* confdefs.h. */
44625 _ACEOF
44626 cat confdefs.h >>conftest.$ac_ext
44627 cat >>conftest.$ac_ext <<_ACEOF
44628 /* end confdefs.h. */
44629
44630
44631 #include <linux/fs.h>
44632 struct super_block sb;
44633
44634 int
44635 main (void)
44636 {
44637
44638 char *name = "bdi";
44639 atomic_long_t zfs_bdi_seq;
44640 int error __attribute__((unused)) =
44641 super_setup_bdi_name(&sb, "%.28s-%ld", name, atomic_long_inc_return(&zfs_bdi_seq));
44642
44643 ;
44644 return 0;
44645 }
44646
44647 _ACEOF
44648
44649
44650
44651 cat - <<_ACEOF >conftest.h
44652
44653 _ACEOF
44654
44655
44656 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
44657 echo "obj-m := conftest.o" >build/Makefile
44658 modpost_flag=''
44659 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
44660 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
44661 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44662 (eval $ac_try) 2>&5
44663 ac_status=$?
44664 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
44665 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
44666 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44667 (eval $ac_try) 2>&5
44668 ac_status=$?
44669 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
44670 (exit $ac_status); }; }; then
44671 rc=0
44672 else
44673 $as_echo "$as_me: failed program was:" >&5
44674 sed 's/^/| /' conftest.$ac_ext >&5
44675 rc=1
44676
44677
44678 fi
44679
44680 rm -Rf build
44681
44682
44683 if test $rc -ne 0; then :
44684
44685 { $as_echo "$as_me:$LINENO: result: no" >&5
44686 $as_echo "no" >&6; }
44687 { $as_echo "$as_me:$LINENO: checking whether bdi_setup_and_register() wants 2 args" >&5
44688 $as_echo_n "checking whether bdi_setup_and_register() wants 2 args... " >&6; }
44689
44690
44691
44692 cat confdefs.h - <<_ACEOF >conftest.c
44693 /* confdefs.h. */
44694 _ACEOF
44695 cat confdefs.h >>conftest.$ac_ext
44696 cat >>conftest.$ac_ext <<_ACEOF
44697 /* end confdefs.h. */
44698
44699
44700 #include <linux/backing-dev.h>
44701 struct backing_dev_info bdi;
44702
44703 int
44704 main (void)
44705 {
44706
44707 char *name = "bdi";
44708 int error __attribute__((unused)) =
44709 bdi_setup_and_register(&bdi, name);
44710
44711 ;
44712 return 0;
44713 }
44714
44715 _ACEOF
44716
44717
44718
44719 cat - <<_ACEOF >conftest.h
44720
44721 _ACEOF
44722
44723
44724 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
44725 echo "obj-m := conftest.o" >build/Makefile
44726 modpost_flag=''
44727 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
44728 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
44729 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44730 (eval $ac_try) 2>&5
44731 ac_status=$?
44732 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
44733 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
44734 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44735 (eval $ac_try) 2>&5
44736 ac_status=$?
44737 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
44738 (exit $ac_status); }; }; then
44739 rc=0
44740 else
44741 $as_echo "$as_me: failed program was:" >&5
44742 sed 's/^/| /' conftest.$ac_ext >&5
44743 rc=1
44744
44745
44746 fi
44747
44748 rm -Rf build
44749
44750
44751 if test $rc -ne 0; then :
44752
44753 { $as_echo "$as_me:$LINENO: result: no" >&5
44754 $as_echo "no" >&6; }
44755 { $as_echo "$as_me:$LINENO: checking whether bdi_setup_and_register() wants 3 args" >&5
44756 $as_echo_n "checking whether bdi_setup_and_register() wants 3 args... " >&6; }
44757
44758
44759
44760 cat confdefs.h - <<_ACEOF >conftest.c
44761 /* confdefs.h. */
44762 _ACEOF
44763 cat confdefs.h >>conftest.$ac_ext
44764 cat >>conftest.$ac_ext <<_ACEOF
44765 /* end confdefs.h. */
44766
44767
44768 #include <linux/backing-dev.h>
44769 struct backing_dev_info bdi;
44770
44771 int
44772 main (void)
44773 {
44774
44775 char *name = "bdi";
44776 unsigned int cap = BDI_CAP_MAP_COPY;
44777 int error __attribute__((unused)) =
44778 bdi_setup_and_register(&bdi, name, cap);
44779
44780 ;
44781 return 0;
44782 }
44783
44784 _ACEOF
44785
44786
44787
44788 cat - <<_ACEOF >conftest.h
44789
44790 _ACEOF
44791
44792
44793 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
44794 echo "obj-m := conftest.o" >build/Makefile
44795 modpost_flag=''
44796 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
44797 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
44798 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44799 (eval $ac_try) 2>&5
44800 ac_status=$?
44801 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
44802 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
44803 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44804 (eval $ac_try) 2>&5
44805 ac_status=$?
44806 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
44807 (exit $ac_status); }; }; then
44808 rc=0
44809 else
44810 $as_echo "$as_me: failed program was:" >&5
44811 sed 's/^/| /' conftest.$ac_ext >&5
44812 rc=1
44813
44814
44815 fi
44816
44817 rm -Rf build
44818
44819
44820 if test $rc -ne 0; then :
44821
44822 { $as_echo "$as_me:$LINENO: result: no" >&5
44823 $as_echo "no" >&6; }
44824
44825 else
44826 if test "x$enable_linux_builtin" != xyes; then
44827
44828 grep -q -E '[[:space:]]bdi_setup_and_register[[:space:]]' \
44829 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
44830 rc=$?
44831 if test $rc -ne 0; then
44832 export=0
44833 for file in mm/backing-dev.c; do
44834 grep -q -E "EXPORT_SYMBOL.*(bdi_setup_and_register)" \
44835 "$LINUX/$file" 2>/dev/null
44836 rc=$?
44837 if test $rc -eq 0; then
44838 export=1
44839 break;
44840 fi
44841 done
44842 if test $export -eq 0; then :
44843 rc=1
44844 else :
44845 rc=0
44846 fi
44847 else :
44848 rc=0
44849 fi
44850
44851 fi
44852 if test $rc -ne 0; then :
44853
44854 { $as_echo "$as_me:$LINENO: result: no" >&5
44855 $as_echo "no" >&6; }
44856
44857 else :
44858
44859 { $as_echo "$as_me:$LINENO: result: yes" >&5
44860 $as_echo "yes" >&6; }
44861
44862 cat >>confdefs.h <<\_ACEOF
44863 #define HAVE_3ARGS_BDI_SETUP_AND_REGISTER 1
44864 _ACEOF
44865
44866
44867 fi
44868 fi
44869
44870
44871 else
44872 if test "x$enable_linux_builtin" != xyes; then
44873
44874 grep -q -E '[[:space:]]bdi_setup_and_register[[:space:]]' \
44875 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
44876 rc=$?
44877 if test $rc -ne 0; then
44878 export=0
44879 for file in mm/backing-dev.c; do
44880 grep -q -E "EXPORT_SYMBOL.*(bdi_setup_and_register)" \
44881 "$LINUX/$file" 2>/dev/null
44882 rc=$?
44883 if test $rc -eq 0; then
44884 export=1
44885 break;
44886 fi
44887 done
44888 if test $export -eq 0; then :
44889 rc=1
44890 else :
44891 rc=0
44892 fi
44893 else :
44894 rc=0
44895 fi
44896
44897 fi
44898 if test $rc -ne 0; then :
44899
44900 { $as_echo "$as_me:$LINENO: result: no" >&5
44901 $as_echo "no" >&6; }
44902 { $as_echo "$as_me:$LINENO: checking whether bdi_setup_and_register() wants 3 args" >&5
44903 $as_echo_n "checking whether bdi_setup_and_register() wants 3 args... " >&6; }
44904
44905
44906
44907 cat confdefs.h - <<_ACEOF >conftest.c
44908 /* confdefs.h. */
44909 _ACEOF
44910 cat confdefs.h >>conftest.$ac_ext
44911 cat >>conftest.$ac_ext <<_ACEOF
44912 /* end confdefs.h. */
44913
44914
44915 #include <linux/backing-dev.h>
44916 struct backing_dev_info bdi;
44917
44918 int
44919 main (void)
44920 {
44921
44922 char *name = "bdi";
44923 unsigned int cap = BDI_CAP_MAP_COPY;
44924 int error __attribute__((unused)) =
44925 bdi_setup_and_register(&bdi, name, cap);
44926
44927 ;
44928 return 0;
44929 }
44930
44931 _ACEOF
44932
44933
44934
44935 cat - <<_ACEOF >conftest.h
44936
44937 _ACEOF
44938
44939
44940 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
44941 echo "obj-m := conftest.o" >build/Makefile
44942 modpost_flag=''
44943 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
44944 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
44945 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44946 (eval $ac_try) 2>&5
44947 ac_status=$?
44948 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
44949 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
44950 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44951 (eval $ac_try) 2>&5
44952 ac_status=$?
44953 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
44954 (exit $ac_status); }; }; then
44955 rc=0
44956 else
44957 $as_echo "$as_me: failed program was:" >&5
44958 sed 's/^/| /' conftest.$ac_ext >&5
44959 rc=1
44960
44961
44962 fi
44963
44964 rm -Rf build
44965
44966
44967 if test $rc -ne 0; then :
44968
44969 { $as_echo "$as_me:$LINENO: result: no" >&5
44970 $as_echo "no" >&6; }
44971
44972 else
44973 if test "x$enable_linux_builtin" != xyes; then
44974
44975 grep -q -E '[[:space:]]bdi_setup_and_register[[:space:]]' \
44976 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
44977 rc=$?
44978 if test $rc -ne 0; then
44979 export=0
44980 for file in mm/backing-dev.c; do
44981 grep -q -E "EXPORT_SYMBOL.*(bdi_setup_and_register)" \
44982 "$LINUX/$file" 2>/dev/null
44983 rc=$?
44984 if test $rc -eq 0; then
44985 export=1
44986 break;
44987 fi
44988 done
44989 if test $export -eq 0; then :
44990 rc=1
44991 else :
44992 rc=0
44993 fi
44994 else :
44995 rc=0
44996 fi
44997
44998 fi
44999 if test $rc -ne 0; then :
45000
45001 { $as_echo "$as_me:$LINENO: result: no" >&5
45002 $as_echo "no" >&6; }
45003
45004 else :
45005
45006 { $as_echo "$as_me:$LINENO: result: yes" >&5
45007 $as_echo "yes" >&6; }
45008
45009 cat >>confdefs.h <<\_ACEOF
45010 #define HAVE_3ARGS_BDI_SETUP_AND_REGISTER 1
45011 _ACEOF
45012
45013
45014 fi
45015 fi
45016
45017
45018 else :
45019
45020 { $as_echo "$as_me:$LINENO: result: yes" >&5
45021 $as_echo "yes" >&6; }
45022
45023 cat >>confdefs.h <<\_ACEOF
45024 #define HAVE_2ARGS_BDI_SETUP_AND_REGISTER 1
45025 _ACEOF
45026
45027
45028 fi
45029 fi
45030
45031
45032 else
45033 if test "x$enable_linux_builtin" != xyes; then
45034
45035 grep -q -E '[[:space:]]super_setup_bdi_name[[:space:]]' \
45036 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
45037 rc=$?
45038 if test $rc -ne 0; then
45039 export=0
45040 for file in fs/super.c; do
45041 grep -q -E "EXPORT_SYMBOL.*(super_setup_bdi_name)" \
45042 "$LINUX/$file" 2>/dev/null
45043 rc=$?
45044 if test $rc -eq 0; then
45045 export=1
45046 break;
45047 fi
45048 done
45049 if test $export -eq 0; then :
45050 rc=1
45051 else :
45052 rc=0
45053 fi
45054 else :
45055 rc=0
45056 fi
45057
45058 fi
45059 if test $rc -ne 0; then :
45060
45061 { $as_echo "$as_me:$LINENO: result: no" >&5
45062 $as_echo "no" >&6; }
45063 { $as_echo "$as_me:$LINENO: checking whether bdi_setup_and_register() wants 2 args" >&5
45064 $as_echo_n "checking whether bdi_setup_and_register() wants 2 args... " >&6; }
45065
45066
45067
45068 cat confdefs.h - <<_ACEOF >conftest.c
45069 /* confdefs.h. */
45070 _ACEOF
45071 cat confdefs.h >>conftest.$ac_ext
45072 cat >>conftest.$ac_ext <<_ACEOF
45073 /* end confdefs.h. */
45074
45075
45076 #include <linux/backing-dev.h>
45077 struct backing_dev_info bdi;
45078
45079 int
45080 main (void)
45081 {
45082
45083 char *name = "bdi";
45084 int error __attribute__((unused)) =
45085 bdi_setup_and_register(&bdi, name);
45086
45087 ;
45088 return 0;
45089 }
45090
45091 _ACEOF
45092
45093
45094
45095 cat - <<_ACEOF >conftest.h
45096
45097 _ACEOF
45098
45099
45100 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
45101 echo "obj-m := conftest.o" >build/Makefile
45102 modpost_flag=''
45103 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
45104 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
45105 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45106 (eval $ac_try) 2>&5
45107 ac_status=$?
45108 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
45109 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
45110 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45111 (eval $ac_try) 2>&5
45112 ac_status=$?
45113 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
45114 (exit $ac_status); }; }; then
45115 rc=0
45116 else
45117 $as_echo "$as_me: failed program was:" >&5
45118 sed 's/^/| /' conftest.$ac_ext >&5
45119 rc=1
45120
45121
45122 fi
45123
45124 rm -Rf build
45125
45126
45127 if test $rc -ne 0; then :
45128
45129 { $as_echo "$as_me:$LINENO: result: no" >&5
45130 $as_echo "no" >&6; }
45131 { $as_echo "$as_me:$LINENO: checking whether bdi_setup_and_register() wants 3 args" >&5
45132 $as_echo_n "checking whether bdi_setup_and_register() wants 3 args... " >&6; }
45133
45134
45135
45136 cat confdefs.h - <<_ACEOF >conftest.c
45137 /* confdefs.h. */
45138 _ACEOF
45139 cat confdefs.h >>conftest.$ac_ext
45140 cat >>conftest.$ac_ext <<_ACEOF
45141 /* end confdefs.h. */
45142
45143
45144 #include <linux/backing-dev.h>
45145 struct backing_dev_info bdi;
45146
45147 int
45148 main (void)
45149 {
45150
45151 char *name = "bdi";
45152 unsigned int cap = BDI_CAP_MAP_COPY;
45153 int error __attribute__((unused)) =
45154 bdi_setup_and_register(&bdi, name, cap);
45155
45156 ;
45157 return 0;
45158 }
45159
45160 _ACEOF
45161
45162
45163
45164 cat - <<_ACEOF >conftest.h
45165
45166 _ACEOF
45167
45168
45169 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
45170 echo "obj-m := conftest.o" >build/Makefile
45171 modpost_flag=''
45172 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
45173 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
45174 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45175 (eval $ac_try) 2>&5
45176 ac_status=$?
45177 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
45178 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
45179 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45180 (eval $ac_try) 2>&5
45181 ac_status=$?
45182 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
45183 (exit $ac_status); }; }; then
45184 rc=0
45185 else
45186 $as_echo "$as_me: failed program was:" >&5
45187 sed 's/^/| /' conftest.$ac_ext >&5
45188 rc=1
45189
45190
45191 fi
45192
45193 rm -Rf build
45194
45195
45196 if test $rc -ne 0; then :
45197
45198 { $as_echo "$as_me:$LINENO: result: no" >&5
45199 $as_echo "no" >&6; }
45200
45201 else
45202 if test "x$enable_linux_builtin" != xyes; then
45203
45204 grep -q -E '[[:space:]]bdi_setup_and_register[[:space:]]' \
45205 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
45206 rc=$?
45207 if test $rc -ne 0; then
45208 export=0
45209 for file in mm/backing-dev.c; do
45210 grep -q -E "EXPORT_SYMBOL.*(bdi_setup_and_register)" \
45211 "$LINUX/$file" 2>/dev/null
45212 rc=$?
45213 if test $rc -eq 0; then
45214 export=1
45215 break;
45216 fi
45217 done
45218 if test $export -eq 0; then :
45219 rc=1
45220 else :
45221 rc=0
45222 fi
45223 else :
45224 rc=0
45225 fi
45226
45227 fi
45228 if test $rc -ne 0; then :
45229
45230 { $as_echo "$as_me:$LINENO: result: no" >&5
45231 $as_echo "no" >&6; }
45232
45233 else :
45234
45235 { $as_echo "$as_me:$LINENO: result: yes" >&5
45236 $as_echo "yes" >&6; }
45237
45238 cat >>confdefs.h <<\_ACEOF
45239 #define HAVE_3ARGS_BDI_SETUP_AND_REGISTER 1
45240 _ACEOF
45241
45242
45243 fi
45244 fi
45245
45246
45247 else
45248 if test "x$enable_linux_builtin" != xyes; then
45249
45250 grep -q -E '[[:space:]]bdi_setup_and_register[[:space:]]' \
45251 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
45252 rc=$?
45253 if test $rc -ne 0; then
45254 export=0
45255 for file in mm/backing-dev.c; do
45256 grep -q -E "EXPORT_SYMBOL.*(bdi_setup_and_register)" \
45257 "$LINUX/$file" 2>/dev/null
45258 rc=$?
45259 if test $rc -eq 0; then
45260 export=1
45261 break;
45262 fi
45263 done
45264 if test $export -eq 0; then :
45265 rc=1
45266 else :
45267 rc=0
45268 fi
45269 else :
45270 rc=0
45271 fi
45272
45273 fi
45274 if test $rc -ne 0; then :
45275
45276 { $as_echo "$as_me:$LINENO: result: no" >&5
45277 $as_echo "no" >&6; }
45278 { $as_echo "$as_me:$LINENO: checking whether bdi_setup_and_register() wants 3 args" >&5
45279 $as_echo_n "checking whether bdi_setup_and_register() wants 3 args... " >&6; }
45280
45281
45282
45283 cat confdefs.h - <<_ACEOF >conftest.c
45284 /* confdefs.h. */
45285 _ACEOF
45286 cat confdefs.h >>conftest.$ac_ext
45287 cat >>conftest.$ac_ext <<_ACEOF
45288 /* end confdefs.h. */
45289
45290
45291 #include <linux/backing-dev.h>
45292 struct backing_dev_info bdi;
45293
45294 int
45295 main (void)
45296 {
45297
45298 char *name = "bdi";
45299 unsigned int cap = BDI_CAP_MAP_COPY;
45300 int error __attribute__((unused)) =
45301 bdi_setup_and_register(&bdi, name, cap);
45302
45303 ;
45304 return 0;
45305 }
45306
45307 _ACEOF
45308
45309
45310
45311 cat - <<_ACEOF >conftest.h
45312
45313 _ACEOF
45314
45315
45316 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
45317 echo "obj-m := conftest.o" >build/Makefile
45318 modpost_flag=''
45319 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
45320 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
45321 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45322 (eval $ac_try) 2>&5
45323 ac_status=$?
45324 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
45325 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
45326 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45327 (eval $ac_try) 2>&5
45328 ac_status=$?
45329 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
45330 (exit $ac_status); }; }; then
45331 rc=0
45332 else
45333 $as_echo "$as_me: failed program was:" >&5
45334 sed 's/^/| /' conftest.$ac_ext >&5
45335 rc=1
45336
45337
45338 fi
45339
45340 rm -Rf build
45341
45342
45343 if test $rc -ne 0; then :
45344
45345 { $as_echo "$as_me:$LINENO: result: no" >&5
45346 $as_echo "no" >&6; }
45347
45348 else
45349 if test "x$enable_linux_builtin" != xyes; then
45350
45351 grep -q -E '[[:space:]]bdi_setup_and_register[[:space:]]' \
45352 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
45353 rc=$?
45354 if test $rc -ne 0; then
45355 export=0
45356 for file in mm/backing-dev.c; do
45357 grep -q -E "EXPORT_SYMBOL.*(bdi_setup_and_register)" \
45358 "$LINUX/$file" 2>/dev/null
45359 rc=$?
45360 if test $rc -eq 0; then
45361 export=1
45362 break;
45363 fi
45364 done
45365 if test $export -eq 0; then :
45366 rc=1
45367 else :
45368 rc=0
45369 fi
45370 else :
45371 rc=0
45372 fi
45373
45374 fi
45375 if test $rc -ne 0; then :
45376
45377 { $as_echo "$as_me:$LINENO: result: no" >&5
45378 $as_echo "no" >&6; }
45379
45380 else :
45381
45382 { $as_echo "$as_me:$LINENO: result: yes" >&5
45383 $as_echo "yes" >&6; }
45384
45385 cat >>confdefs.h <<\_ACEOF
45386 #define HAVE_3ARGS_BDI_SETUP_AND_REGISTER 1
45387 _ACEOF
45388
45389
45390 fi
45391 fi
45392
45393
45394 else :
45395
45396 { $as_echo "$as_me:$LINENO: result: yes" >&5
45397 $as_echo "yes" >&6; }
45398
45399 cat >>confdefs.h <<\_ACEOF
45400 #define HAVE_2ARGS_BDI_SETUP_AND_REGISTER 1
45401 _ACEOF
45402
45403
45404 fi
45405 fi
45406
45407
45408 else :
45409
45410 { $as_echo "$as_me:$LINENO: result: yes" >&5
45411 $as_echo "yes" >&6; }
45412
45413 cat >>confdefs.h <<\_ACEOF
45414 #define HAVE_SUPER_SETUP_BDI_NAME 1
45415 _ACEOF
45416
45417
45418 fi
45419 fi
45420
45421
45422
45423 { $as_echo "$as_me:$LINENO: checking whether set_nlink() is available" >&5
45424 $as_echo_n "checking whether set_nlink() is available... " >&6; }
45425
45426
45427 cat confdefs.h - <<_ACEOF >conftest.c
45428 /* confdefs.h. */
45429 _ACEOF
45430 cat confdefs.h >>conftest.$ac_ext
45431 cat >>conftest.$ac_ext <<_ACEOF
45432 /* end confdefs.h. */
45433
45434
45435 #include <linux/fs.h>
45436
45437 int
45438 main (void)
45439 {
45440
45441 struct inode node;
45442 unsigned int link = 0;
45443 (void) set_nlink(&node, link);
45444
45445 ;
45446 return 0;
45447 }
45448
45449 _ACEOF
45450
45451
45452
45453 cat - <<_ACEOF >conftest.h
45454
45455 _ACEOF
45456
45457
45458 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
45459 echo "obj-m := conftest.o" >build/Makefile
45460 modpost_flag=''
45461 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
45462 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
45463 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45464 (eval $ac_try) 2>&5
45465 ac_status=$?
45466 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
45467 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
45468 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45469 (eval $ac_try) 2>&5
45470 ac_status=$?
45471 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
45472 (exit $ac_status); }; }; then
45473
45474 { $as_echo "$as_me:$LINENO: result: yes" >&5
45475 $as_echo "yes" >&6; }
45476
45477 cat >>confdefs.h <<\_ACEOF
45478 #define HAVE_SET_NLINK 1
45479 _ACEOF
45480
45481
45482 else
45483 $as_echo "$as_me: failed program was:" >&5
45484 sed 's/^/| /' conftest.$ac_ext >&5
45485
45486 { $as_echo "$as_me:$LINENO: result: no" >&5
45487 $as_echo "no" >&6; }
45488
45489
45490
45491 fi
45492
45493 rm -Rf build
45494
45495
45496
45497
45498 { $as_echo "$as_me:$LINENO: checking whether elevator_change() is available" >&5
45499 $as_echo_n "checking whether elevator_change() is available... " >&6; }
45500 tmp_flags="$EXTRA_KCFLAGS"
45501 EXTRA_KCFLAGS="${NO_UNUSED_BUT_SET_VARIABLE}"
45502
45503
45504 cat confdefs.h - <<_ACEOF >conftest.c
45505 /* confdefs.h. */
45506 _ACEOF
45507 cat confdefs.h >>conftest.$ac_ext
45508 cat >>conftest.$ac_ext <<_ACEOF
45509 /* end confdefs.h. */
45510
45511
45512 #include <linux/blkdev.h>
45513 #include <linux/elevator.h>
45514
45515 int
45516 main (void)
45517 {
45518
45519 int ret;
45520 struct request_queue *q = NULL;
45521 char *elevator = NULL;
45522 ret = elevator_change(q, elevator);
45523
45524 ;
45525 return 0;
45526 }
45527
45528 _ACEOF
45529
45530
45531
45532 cat - <<_ACEOF >conftest.h
45533
45534 _ACEOF
45535
45536
45537 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
45538 echo "obj-m := conftest.o" >build/Makefile
45539 modpost_flag=''
45540 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
45541 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
45542 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45543 (eval $ac_try) 2>&5
45544 ac_status=$?
45545 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
45546 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
45547 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45548 (eval $ac_try) 2>&5
45549 ac_status=$?
45550 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
45551 (exit $ac_status); }; }; then
45552
45553 { $as_echo "$as_me:$LINENO: result: yes" >&5
45554 $as_echo "yes" >&6; }
45555
45556 cat >>confdefs.h <<\_ACEOF
45557 #define HAVE_ELEVATOR_CHANGE 1
45558 _ACEOF
45559
45560
45561 else
45562 $as_echo "$as_me: failed program was:" >&5
45563 sed 's/^/| /' conftest.$ac_ext >&5
45564
45565 { $as_echo "$as_me:$LINENO: result: no" >&5
45566 $as_echo "no" >&6; }
45567
45568
45569
45570 fi
45571
45572 rm -Rf build
45573
45574
45575 EXTRA_KCFLAGS="$tmp_flags"
45576
45577 { $as_echo "$as_me:$LINENO: checking whether sget() wants 5 args" >&5
45578 $as_echo_n "checking whether sget() wants 5 args... " >&6; }
45579
45580
45581 cat confdefs.h - <<_ACEOF >conftest.c
45582 /* confdefs.h. */
45583 _ACEOF
45584 cat confdefs.h >>conftest.$ac_ext
45585 cat >>conftest.$ac_ext <<_ACEOF
45586 /* end confdefs.h. */
45587
45588
45589 #include <linux/fs.h>
45590
45591 int
45592 main (void)
45593 {
45594
45595 struct file_system_type *type = NULL;
45596 int (*test)(struct super_block *,void *) = NULL;
45597 int (*set)(struct super_block *,void *) = NULL;
45598 int flags = 0;
45599 void *data = NULL;
45600 (void) sget(type, test, set, flags, data);
45601
45602 ;
45603 return 0;
45604 }
45605
45606 _ACEOF
45607
45608
45609
45610 cat - <<_ACEOF >conftest.h
45611
45612 _ACEOF
45613
45614
45615 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
45616 echo "obj-m := conftest.o" >build/Makefile
45617 modpost_flag=''
45618 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
45619 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
45620 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45621 (eval $ac_try) 2>&5
45622 ac_status=$?
45623 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
45624 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
45625 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45626 (eval $ac_try) 2>&5
45627 ac_status=$?
45628 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
45629 (exit $ac_status); }; }; then
45630
45631 { $as_echo "$as_me:$LINENO: result: yes" >&5
45632 $as_echo "yes" >&6; }
45633
45634 cat >>confdefs.h <<\_ACEOF
45635 #define HAVE_5ARG_SGET 1
45636 _ACEOF
45637
45638
45639 else
45640 $as_echo "$as_me: failed program was:" >&5
45641 sed 's/^/| /' conftest.$ac_ext >&5
45642
45643 { $as_echo "$as_me:$LINENO: result: no" >&5
45644 $as_echo "no" >&6; }
45645
45646
45647
45648 fi
45649
45650 rm -Rf build
45651
45652
45653
45654 { $as_echo "$as_me:$LINENO: checking whether lseek_execute() is available" >&5
45655 $as_echo_n "checking whether lseek_execute() is available... " >&6; }
45656
45657
45658
45659 cat confdefs.h - <<_ACEOF >conftest.c
45660 /* confdefs.h. */
45661 _ACEOF
45662 cat confdefs.h >>conftest.$ac_ext
45663 cat >>conftest.$ac_ext <<_ACEOF
45664 /* end confdefs.h. */
45665
45666
45667 #include <linux/fs.h>
45668
45669 int
45670 main (void)
45671 {
45672
45673 struct file *fp __attribute__ ((unused)) = NULL;
45674 struct inode *ip __attribute__ ((unused)) = NULL;
45675 loff_t offset __attribute__ ((unused)) = 0;
45676 loff_t maxsize __attribute__ ((unused)) = 0;
45677
45678 lseek_execute(fp, ip, offset, maxsize);
45679
45680 ;
45681 return 0;
45682 }
45683
45684 _ACEOF
45685
45686
45687
45688 cat - <<_ACEOF >conftest.h
45689
45690 _ACEOF
45691
45692
45693 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
45694 echo "obj-m := conftest.o" >build/Makefile
45695 modpost_flag=''
45696 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
45697 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
45698 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45699 (eval $ac_try) 2>&5
45700 ac_status=$?
45701 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
45702 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
45703 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45704 (eval $ac_try) 2>&5
45705 ac_status=$?
45706 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
45707 (exit $ac_status); }; }; then
45708 rc=0
45709 else
45710 $as_echo "$as_me: failed program was:" >&5
45711 sed 's/^/| /' conftest.$ac_ext >&5
45712 rc=1
45713
45714
45715 fi
45716
45717 rm -Rf build
45718
45719
45720 if test $rc -ne 0; then :
45721
45722 { $as_echo "$as_me:$LINENO: result: no" >&5
45723 $as_echo "no" >&6; }
45724
45725 else
45726 if test "x$enable_linux_builtin" != xyes; then
45727
45728 grep -q -E '[[:space:]]lseek_exclusive[[:space:]]' \
45729 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
45730 rc=$?
45731 if test $rc -ne 0; then
45732 export=0
45733 for file in fs/read_write.c; do
45734 grep -q -E "EXPORT_SYMBOL.*(lseek_exclusive)" \
45735 "$LINUX/$file" 2>/dev/null
45736 rc=$?
45737 if test $rc -eq 0; then
45738 export=1
45739 break;
45740 fi
45741 done
45742 if test $export -eq 0; then :
45743 rc=1
45744 else :
45745 rc=0
45746 fi
45747 else :
45748 rc=0
45749 fi
45750
45751 fi
45752 if test $rc -ne 0; then :
45753
45754 { $as_echo "$as_me:$LINENO: result: no" >&5
45755 $as_echo "no" >&6; }
45756
45757 else :
45758
45759 { $as_echo "$as_me:$LINENO: result: yes" >&5
45760 $as_echo "yes" >&6; }
45761
45762 cat >>confdefs.h <<\_ACEOF
45763 #define HAVE_LSEEK_EXECUTE 1
45764 _ACEOF
45765
45766
45767 fi
45768 fi
45769
45770
45771
45772 { $as_echo "$as_me:$LINENO: checking whether fops->iterate_shared() is available" >&5
45773 $as_echo_n "checking whether fops->iterate_shared() is available... " >&6; }
45774
45775
45776 cat confdefs.h - <<_ACEOF >conftest.c
45777 /* confdefs.h. */
45778 _ACEOF
45779 cat confdefs.h >>conftest.$ac_ext
45780 cat >>conftest.$ac_ext <<_ACEOF
45781 /* end confdefs.h. */
45782
45783
45784 #include <linux/fs.h>
45785 int iterate(struct file *filp, struct dir_context * context)
45786 { return 0; }
45787
45788 static const struct file_operations fops
45789 __attribute__ ((unused)) = {
45790 .iterate_shared = iterate,
45791 };
45792
45793 int
45794 main (void)
45795 {
45796
45797
45798 ;
45799 return 0;
45800 }
45801
45802 _ACEOF
45803
45804
45805
45806 cat - <<_ACEOF >conftest.h
45807
45808 _ACEOF
45809
45810
45811 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
45812 echo "obj-m := conftest.o" >build/Makefile
45813 modpost_flag=''
45814 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
45815 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
45816 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45817 (eval $ac_try) 2>&5
45818 ac_status=$?
45819 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
45820 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
45821 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45822 (eval $ac_try) 2>&5
45823 ac_status=$?
45824 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
45825 (exit $ac_status); }; }; then
45826
45827 { $as_echo "$as_me:$LINENO: result: yes" >&5
45828 $as_echo "yes" >&6; }
45829
45830 cat >>confdefs.h <<\_ACEOF
45831 #define HAVE_VFS_ITERATE_SHARED 1
45832 _ACEOF
45833
45834
45835 else
45836 $as_echo "$as_me: failed program was:" >&5
45837 sed 's/^/| /' conftest.$ac_ext >&5
45838
45839 { $as_echo "$as_me:$LINENO: result: no" >&5
45840 $as_echo "no" >&6; }
45841
45842 { $as_echo "$as_me:$LINENO: checking whether fops->iterate() is available" >&5
45843 $as_echo_n "checking whether fops->iterate() is available... " >&6; }
45844
45845
45846 cat confdefs.h - <<_ACEOF >conftest.c
45847 /* confdefs.h. */
45848 _ACEOF
45849 cat confdefs.h >>conftest.$ac_ext
45850 cat >>conftest.$ac_ext <<_ACEOF
45851 /* end confdefs.h. */
45852
45853
45854 #include <linux/fs.h>
45855 int iterate(struct file *filp,
45856 struct dir_context *context) { return 0; }
45857
45858 static const struct file_operations fops
45859 __attribute__ ((unused)) = {
45860 .iterate = iterate,
45861 };
45862
45863 #if defined(FMODE_KABI_ITERATE)
45864 #error "RHEL 7.5, FMODE_KABI_ITERATE interface"
45865 #endif
45866
45867 int
45868 main (void)
45869 {
45870
45871
45872 ;
45873 return 0;
45874 }
45875
45876 _ACEOF
45877
45878
45879
45880 cat - <<_ACEOF >conftest.h
45881
45882 _ACEOF
45883
45884
45885 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
45886 echo "obj-m := conftest.o" >build/Makefile
45887 modpost_flag=''
45888 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
45889 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
45890 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45891 (eval $ac_try) 2>&5
45892 ac_status=$?
45893 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
45894 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
45895 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45896 (eval $ac_try) 2>&5
45897 ac_status=$?
45898 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
45899 (exit $ac_status); }; }; then
45900
45901 { $as_echo "$as_me:$LINENO: result: yes" >&5
45902 $as_echo "yes" >&6; }
45903
45904 cat >>confdefs.h <<\_ACEOF
45905 #define HAVE_VFS_ITERATE 1
45906 _ACEOF
45907
45908
45909 else
45910 $as_echo "$as_me: failed program was:" >&5
45911 sed 's/^/| /' conftest.$ac_ext >&5
45912
45913 { $as_echo "$as_me:$LINENO: result: no" >&5
45914 $as_echo "no" >&6; }
45915
45916 { $as_echo "$as_me:$LINENO: checking whether fops->readdir() is available" >&5
45917 $as_echo_n "checking whether fops->readdir() is available... " >&6; }
45918
45919
45920 cat confdefs.h - <<_ACEOF >conftest.c
45921 /* confdefs.h. */
45922 _ACEOF
45923 cat confdefs.h >>conftest.$ac_ext
45924 cat >>conftest.$ac_ext <<_ACEOF
45925 /* end confdefs.h. */
45926
45927
45928 #include <linux/fs.h>
45929 int readdir(struct file *filp, void *entry,
45930 filldir_t func) { return 0; }
45931
45932 static const struct file_operations fops
45933 __attribute__ ((unused)) = {
45934 .readdir = readdir,
45935 };
45936
45937 int
45938 main (void)
45939 {
45940
45941
45942 ;
45943 return 0;
45944 }
45945
45946 _ACEOF
45947
45948
45949
45950 cat - <<_ACEOF >conftest.h
45951
45952 _ACEOF
45953
45954
45955 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
45956 echo "obj-m := conftest.o" >build/Makefile
45957 modpost_flag=''
45958 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
45959 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
45960 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45961 (eval $ac_try) 2>&5
45962 ac_status=$?
45963 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
45964 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
45965 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45966 (eval $ac_try) 2>&5
45967 ac_status=$?
45968 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
45969 (exit $ac_status); }; }; then
45970
45971 { $as_echo "$as_me:$LINENO: result: yes" >&5
45972 $as_echo "yes" >&6; }
45973
45974 cat >>confdefs.h <<\_ACEOF
45975 #define HAVE_VFS_READDIR 1
45976 _ACEOF
45977
45978
45979 else
45980 $as_echo "$as_me: failed program was:" >&5
45981 sed 's/^/| /' conftest.$ac_ext >&5
45982
45983 { { $as_echo "$as_me:$LINENO: error: no; file a bug report with ZoL" >&5
45984 $as_echo "$as_me: error: no; file a bug report with ZoL" >&2;}
45985 { (exit 1); exit 1; }; }
45986
45987
45988
45989 fi
45990
45991 rm -Rf build
45992
45993
45994
45995
45996
45997 fi
45998
45999 rm -Rf build
46000
46001
46002
46003
46004
46005 fi
46006
46007 rm -Rf build
46008
46009
46010
46011 { $as_echo "$as_me:$LINENO: checking whether fops->read/write_iter() are available" >&5
46012 $as_echo_n "checking whether fops->read/write_iter() are available... " >&6; }
46013
46014
46015 cat confdefs.h - <<_ACEOF >conftest.c
46016 /* confdefs.h. */
46017 _ACEOF
46018 cat confdefs.h >>conftest.$ac_ext
46019 cat >>conftest.$ac_ext <<_ACEOF
46020 /* end confdefs.h. */
46021
46022
46023 #include <linux/fs.h>
46024
46025 ssize_t test_read(struct kiocb *kiocb, struct iov_iter *to)
46026 { return 0; }
46027 ssize_t test_write(struct kiocb *kiocb, struct iov_iter *from)
46028 { return 0; }
46029
46030 static const struct file_operations
46031 fops __attribute__ ((unused)) = {
46032 .read_iter = test_read,
46033 .write_iter = test_write,
46034 };
46035
46036 int
46037 main (void)
46038 {
46039
46040
46041 ;
46042 return 0;
46043 }
46044
46045 _ACEOF
46046
46047
46048
46049 cat - <<_ACEOF >conftest.h
46050
46051 _ACEOF
46052
46053
46054 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
46055 echo "obj-m := conftest.o" >build/Makefile
46056 modpost_flag=''
46057 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
46058 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
46059 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46060 (eval $ac_try) 2>&5
46061 ac_status=$?
46062 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
46063 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
46064 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46065 (eval $ac_try) 2>&5
46066 ac_status=$?
46067 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
46068 (exit $ac_status); }; }; then
46069
46070 { $as_echo "$as_me:$LINENO: result: yes" >&5
46071 $as_echo "yes" >&6; }
46072
46073 cat >>confdefs.h <<\_ACEOF
46074 #define HAVE_VFS_RW_ITERATE 1
46075 _ACEOF
46076
46077
46078 { $as_echo "$as_me:$LINENO: checking whether new_sync_read/write() are available" >&5
46079 $as_echo_n "checking whether new_sync_read/write() are available... " >&6; }
46080
46081
46082 cat confdefs.h - <<_ACEOF >conftest.c
46083 /* confdefs.h. */
46084 _ACEOF
46085 cat confdefs.h >>conftest.$ac_ext
46086 cat >>conftest.$ac_ext <<_ACEOF
46087 /* end confdefs.h. */
46088
46089
46090 #include <linux/fs.h>
46091
46092 int
46093 main (void)
46094 {
46095
46096 ssize_t ret __attribute__ ((unused));
46097 struct file *filp = NULL;
46098 char __user *rbuf = NULL;
46099 const char __user *wbuf = NULL;
46100 size_t len = 0;
46101 loff_t ppos;
46102
46103 ret = new_sync_read(filp, rbuf, len, &ppos);
46104 ret = new_sync_write(filp, wbuf, len, &ppos);
46105
46106 ;
46107 return 0;
46108 }
46109
46110 _ACEOF
46111
46112
46113
46114 cat - <<_ACEOF >conftest.h
46115
46116 _ACEOF
46117
46118
46119 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
46120 echo "obj-m := conftest.o" >build/Makefile
46121 modpost_flag=''
46122 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
46123 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
46124 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46125 (eval $ac_try) 2>&5
46126 ac_status=$?
46127 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
46128 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
46129 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46130 (eval $ac_try) 2>&5
46131 ac_status=$?
46132 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
46133 (exit $ac_status); }; }; then
46134
46135 { $as_echo "$as_me:$LINENO: result: yes" >&5
46136 $as_echo "yes" >&6; }
46137
46138 cat >>confdefs.h <<\_ACEOF
46139 #define HAVE_NEW_SYNC_READ 1
46140 _ACEOF
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
46159 else
46160 $as_echo "$as_me: failed program was:" >&5
46161 sed 's/^/| /' conftest.$ac_ext >&5
46162
46163 { $as_echo "$as_me:$LINENO: result: no" >&5
46164 $as_echo "no" >&6; }
46165
46166
46167
46168 fi
46169
46170 rm -Rf build
46171
46172
46173
46174 { $as_echo "$as_me:$LINENO: checking whether generic_write_checks() takes kiocb" >&5
46175 $as_echo_n "checking whether generic_write_checks() takes kiocb... " >&6; }
46176
46177
46178 cat confdefs.h - <<_ACEOF >conftest.c
46179 /* confdefs.h. */
46180 _ACEOF
46181 cat confdefs.h >>conftest.$ac_ext
46182 cat >>conftest.$ac_ext <<_ACEOF
46183 /* end confdefs.h. */
46184
46185
46186 #include <linux/fs.h>
46187
46188
46189 int
46190 main (void)
46191 {
46192
46193 struct kiocb *iocb = NULL;
46194 struct iov_iter *iov = NULL;
46195 generic_write_checks(iocb, iov);
46196
46197 ;
46198 return 0;
46199 }
46200
46201 _ACEOF
46202
46203
46204
46205 cat - <<_ACEOF >conftest.h
46206
46207 _ACEOF
46208
46209
46210 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
46211 echo "obj-m := conftest.o" >build/Makefile
46212 modpost_flag=''
46213 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
46214 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
46215 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46216 (eval $ac_try) 2>&5
46217 ac_status=$?
46218 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
46219 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
46220 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46221 (eval $ac_try) 2>&5
46222 ac_status=$?
46223 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
46224 (exit $ac_status); }; }; then
46225
46226 { $as_echo "$as_me:$LINENO: result: yes" >&5
46227 $as_echo "yes" >&6; }
46228
46229 cat >>confdefs.h <<\_ACEOF
46230 #define HAVE_GENERIC_WRITE_CHECKS_KIOCB 1
46231 _ACEOF
46232
46233
46234 else
46235 $as_echo "$as_me: failed program was:" >&5
46236 sed 's/^/| /' conftest.$ac_ext >&5
46237
46238 { $as_echo "$as_me:$LINENO: result: no" >&5
46239 $as_echo "no" >&6; }
46240
46241
46242
46243 fi
46244
46245 rm -Rf build
46246
46247
46248
46249
46250 { $as_echo "$as_me:$LINENO: checking whether kmap_atomic wants 1 args" >&5
46251 $as_echo_n "checking whether kmap_atomic wants 1 args... " >&6; }
46252
46253
46254 cat confdefs.h - <<_ACEOF >conftest.c
46255 /* confdefs.h. */
46256 _ACEOF
46257 cat confdefs.h >>conftest.$ac_ext
46258 cat >>conftest.$ac_ext <<_ACEOF
46259 /* end confdefs.h. */
46260
46261
46262 #include <linux/pagemap.h>
46263
46264 int
46265 main (void)
46266 {
46267
46268 struct page page;
46269 kmap_atomic(&page);
46270
46271 ;
46272 return 0;
46273 }
46274
46275 _ACEOF
46276
46277
46278
46279 cat - <<_ACEOF >conftest.h
46280
46281 _ACEOF
46282
46283
46284 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
46285 echo "obj-m := conftest.o" >build/Makefile
46286 modpost_flag=''
46287 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
46288 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
46289 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46290 (eval $ac_try) 2>&5
46291 ac_status=$?
46292 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
46293 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
46294 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46295 (eval $ac_try) 2>&5
46296 ac_status=$?
46297 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
46298 (exit $ac_status); }; }; then
46299
46300 { $as_echo "$as_me:$LINENO: result: yes" >&5
46301 $as_echo "yes" >&6; }
46302
46303 cat >>confdefs.h <<\_ACEOF
46304 #define HAVE_1ARG_KMAP_ATOMIC 1
46305 _ACEOF
46306
46307
46308 else
46309 $as_echo "$as_me: failed program was:" >&5
46310 sed 's/^/| /' conftest.$ac_ext >&5
46311
46312 { $as_echo "$as_me:$LINENO: result: no" >&5
46313 $as_echo "no" >&6; }
46314
46315
46316
46317 fi
46318
46319 rm -Rf build
46320
46321
46322
46323
46324 { $as_echo "$as_me:$LINENO: checking whether follow_down_one() is available" >&5
46325 $as_echo_n "checking whether follow_down_one() is available... " >&6; }
46326
46327
46328 cat confdefs.h - <<_ACEOF >conftest.c
46329 /* confdefs.h. */
46330 _ACEOF
46331 cat confdefs.h >>conftest.$ac_ext
46332 cat >>conftest.$ac_ext <<_ACEOF
46333 /* end confdefs.h. */
46334
46335
46336 #include <linux/namei.h>
46337
46338 int
46339 main (void)
46340 {
46341
46342 struct path *p = NULL;
46343 follow_down_one(p);
46344
46345 ;
46346 return 0;
46347 }
46348
46349 _ACEOF
46350
46351
46352
46353 cat - <<_ACEOF >conftest.h
46354
46355 _ACEOF
46356
46357
46358 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
46359 echo "obj-m := conftest.o" >build/Makefile
46360 modpost_flag=''
46361 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
46362 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
46363 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46364 (eval $ac_try) 2>&5
46365 ac_status=$?
46366 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
46367 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
46368 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46369 (eval $ac_try) 2>&5
46370 ac_status=$?
46371 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
46372 (exit $ac_status); }; }; then
46373
46374 { $as_echo "$as_me:$LINENO: result: yes" >&5
46375 $as_echo "yes" >&6; }
46376
46377 cat >>confdefs.h <<\_ACEOF
46378 #define HAVE_FOLLOW_DOWN_ONE 1
46379 _ACEOF
46380
46381
46382 else
46383 $as_echo "$as_me: failed program was:" >&5
46384 sed 's/^/| /' conftest.$ac_ext >&5
46385
46386 { $as_echo "$as_me:$LINENO: result: no" >&5
46387 $as_echo "no" >&6; }
46388
46389
46390
46391 fi
46392
46393 rm -Rf build
46394
46395
46396
46397
46398 { $as_echo "$as_me:$LINENO: checking whether make_request_fn() returns int" >&5
46399 $as_echo_n "checking whether make_request_fn() returns int... " >&6; }
46400
46401
46402 cat confdefs.h - <<_ACEOF >conftest.c
46403 /* confdefs.h. */
46404 _ACEOF
46405 cat confdefs.h >>conftest.$ac_ext
46406 cat >>conftest.$ac_ext <<_ACEOF
46407 /* end confdefs.h. */
46408
46409
46410 #include <linux/blkdev.h>
46411
46412 int make_request(struct request_queue *q, struct bio *bio)
46413 {
46414 return (0);
46415 }
46416
46417 int
46418 main (void)
46419 {
46420
46421 blk_queue_make_request(NULL, &make_request);
46422
46423 ;
46424 return 0;
46425 }
46426
46427 _ACEOF
46428
46429
46430
46431 cat - <<_ACEOF >conftest.h
46432
46433 _ACEOF
46434
46435
46436 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
46437 echo "obj-m := conftest.o" >build/Makefile
46438 modpost_flag=''
46439 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
46440 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
46441 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46442 (eval $ac_try) 2>&5
46443 ac_status=$?
46444 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
46445 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
46446 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46447 (eval $ac_try) 2>&5
46448 ac_status=$?
46449 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
46450 (exit $ac_status); }; }; then
46451
46452 { $as_echo "$as_me:$LINENO: result: yes" >&5
46453 $as_echo "yes" >&6; }
46454
46455 cat >>confdefs.h <<\_ACEOF
46456 #define MAKE_REQUEST_FN_RET int
46457 _ACEOF
46458
46459
46460 cat >>confdefs.h <<\_ACEOF
46461 #define HAVE_MAKE_REQUEST_FN_RET_INT 1
46462 _ACEOF
46463
46464
46465 else
46466 $as_echo "$as_me: failed program was:" >&5
46467 sed 's/^/| /' conftest.$ac_ext >&5
46468
46469 { $as_echo "$as_me:$LINENO: result: no" >&5
46470 $as_echo "no" >&6; }
46471 { $as_echo "$as_me:$LINENO: checking whether make_request_fn() returns void" >&5
46472 $as_echo_n "checking whether make_request_fn() returns void... " >&6; }
46473
46474
46475 cat confdefs.h - <<_ACEOF >conftest.c
46476 /* confdefs.h. */
46477 _ACEOF
46478 cat confdefs.h >>conftest.$ac_ext
46479 cat >>conftest.$ac_ext <<_ACEOF
46480 /* end confdefs.h. */
46481
46482
46483 #include <linux/blkdev.h>
46484
46485 void make_request(struct request_queue *q, struct bio *bio)
46486 {
46487 return;
46488 }
46489
46490 int
46491 main (void)
46492 {
46493
46494 blk_queue_make_request(NULL, &make_request);
46495
46496 ;
46497 return 0;
46498 }
46499
46500 _ACEOF
46501
46502
46503
46504 cat - <<_ACEOF >conftest.h
46505
46506 _ACEOF
46507
46508
46509 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
46510 echo "obj-m := conftest.o" >build/Makefile
46511 modpost_flag=''
46512 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
46513 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
46514 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46515 (eval $ac_try) 2>&5
46516 ac_status=$?
46517 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
46518 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
46519 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46520 (eval $ac_try) 2>&5
46521 ac_status=$?
46522 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
46523 (exit $ac_status); }; }; then
46524
46525 { $as_echo "$as_me:$LINENO: result: yes" >&5
46526 $as_echo "yes" >&6; }
46527
46528 cat >>confdefs.h <<\_ACEOF
46529 #define MAKE_REQUEST_FN_RET void
46530 _ACEOF
46531
46532
46533 else
46534 $as_echo "$as_me: failed program was:" >&5
46535 sed 's/^/| /' conftest.$ac_ext >&5
46536
46537 { $as_echo "$as_me:$LINENO: result: no" >&5
46538 $as_echo "no" >&6; }
46539 { $as_echo "$as_me:$LINENO: checking whether make_request_fn() returns blk_qc_t" >&5
46540 $as_echo_n "checking whether make_request_fn() returns blk_qc_t... " >&6; }
46541
46542
46543 cat confdefs.h - <<_ACEOF >conftest.c
46544 /* confdefs.h. */
46545 _ACEOF
46546 cat confdefs.h >>conftest.$ac_ext
46547 cat >>conftest.$ac_ext <<_ACEOF
46548 /* end confdefs.h. */
46549
46550
46551 #include <linux/blkdev.h>
46552
46553 blk_qc_t make_request(struct request_queue *q, struct bio *bio)
46554 {
46555 return (BLK_QC_T_NONE);
46556 }
46557
46558 int
46559 main (void)
46560 {
46561
46562 blk_queue_make_request(NULL, &make_request);
46563
46564 ;
46565 return 0;
46566 }
46567
46568 _ACEOF
46569
46570
46571
46572 cat - <<_ACEOF >conftest.h
46573
46574 _ACEOF
46575
46576
46577 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
46578 echo "obj-m := conftest.o" >build/Makefile
46579 modpost_flag=''
46580 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
46581 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
46582 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46583 (eval $ac_try) 2>&5
46584 ac_status=$?
46585 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
46586 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
46587 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46588 (eval $ac_try) 2>&5
46589 ac_status=$?
46590 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
46591 (exit $ac_status); }; }; then
46592
46593 { $as_echo "$as_me:$LINENO: result: yes" >&5
46594 $as_echo "yes" >&6; }
46595
46596 cat >>confdefs.h <<\_ACEOF
46597 #define MAKE_REQUEST_FN_RET blk_qc_t
46598 _ACEOF
46599
46600
46601 cat >>confdefs.h <<\_ACEOF
46602 #define HAVE_MAKE_REQUEST_FN_RET_QC 1
46603 _ACEOF
46604
46605
46606 else
46607 $as_echo "$as_me: failed program was:" >&5
46608 sed 's/^/| /' conftest.$ac_ext >&5
46609
46610 { { $as_echo "$as_me:$LINENO: error: no - Please file a bug report at
46611 https://github.com/zfsonlinux/zfs/issues/new" >&5
46612 $as_echo "$as_me: error: no - Please file a bug report at
46613 https://github.com/zfsonlinux/zfs/issues/new" >&2;}
46614 { (exit 1); exit 1; }; }
46615
46616
46617
46618 fi
46619
46620 rm -Rf build
46621
46622
46623
46624
46625
46626 fi
46627
46628 rm -Rf build
46629
46630
46631
46632
46633
46634 fi
46635
46636 rm -Rf build
46637
46638
46639
46640
46641 { $as_echo "$as_me:$LINENO: checking whether 3 arg generic IO accounting symbols are available" >&5
46642 $as_echo_n "checking whether 3 arg generic IO accounting symbols are available... " >&6; }
46643
46644
46645
46646 cat confdefs.h - <<_ACEOF >conftest.c
46647 /* confdefs.h. */
46648 _ACEOF
46649 cat confdefs.h >>conftest.$ac_ext
46650 cat >>conftest.$ac_ext <<_ACEOF
46651 /* end confdefs.h. */
46652
46653
46654 #include <linux/bio.h>
46655
46656 void (*generic_start_io_acct_f)(int, unsigned long,
46657 struct hd_struct *) = &generic_start_io_acct;
46658 void (*generic_end_io_acct_f)(int, struct hd_struct *,
46659 unsigned long) = &generic_end_io_acct;
46660
46661 int
46662 main (void)
46663 {
46664
46665 generic_start_io_acct(0, 0, NULL);
46666 generic_end_io_acct(0, NULL, 0);
46667
46668 ;
46669 return 0;
46670 }
46671
46672 _ACEOF
46673
46674
46675
46676 cat - <<_ACEOF >conftest.h
46677
46678 _ACEOF
46679
46680
46681 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
46682 echo "obj-m := conftest.o" >build/Makefile
46683 modpost_flag=''
46684 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
46685 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
46686 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46687 (eval $ac_try) 2>&5
46688 ac_status=$?
46689 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
46690 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
46691 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46692 (eval $ac_try) 2>&5
46693 ac_status=$?
46694 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
46695 (exit $ac_status); }; }; then
46696 rc=0
46697 else
46698 $as_echo "$as_me: failed program was:" >&5
46699 sed 's/^/| /' conftest.$ac_ext >&5
46700 rc=1
46701
46702
46703 fi
46704
46705 rm -Rf build
46706
46707
46708 if test $rc -ne 0; then :
46709
46710 { $as_echo "$as_me:$LINENO: result: no" >&5
46711 $as_echo "no" >&6; }
46712
46713 else
46714 if test "x$enable_linux_builtin" != xyes; then
46715
46716 grep -q -E '[[:space:]]generic_start_io_acct[[:space:]]' \
46717 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
46718 rc=$?
46719 if test $rc -ne 0; then
46720 export=0
46721 for file in block/bio.c; do
46722 grep -q -E "EXPORT_SYMBOL.*(generic_start_io_acct)" \
46723 "$LINUX/$file" 2>/dev/null
46724 rc=$?
46725 if test $rc -eq 0; then
46726 export=1
46727 break;
46728 fi
46729 done
46730 if test $export -eq 0; then :
46731 rc=1
46732 else :
46733 rc=0
46734 fi
46735 else :
46736 rc=0
46737 fi
46738
46739 fi
46740 if test $rc -ne 0; then :
46741
46742 { $as_echo "$as_me:$LINENO: result: no" >&5
46743 $as_echo "no" >&6; }
46744
46745 else :
46746
46747 { $as_echo "$as_me:$LINENO: result: yes" >&5
46748 $as_echo "yes" >&6; }
46749
46750 cat >>confdefs.h <<\_ACEOF
46751 #define HAVE_GENERIC_IO_ACCT_3ARG 1
46752 _ACEOF
46753
46754
46755 fi
46756 fi
46757
46758
46759
46760 { $as_echo "$as_me:$LINENO: checking whether 4 arg generic IO accounting symbols are available" >&5
46761 $as_echo_n "checking whether 4 arg generic IO accounting symbols are available... " >&6; }
46762
46763
46764
46765 cat confdefs.h - <<_ACEOF >conftest.c
46766 /* confdefs.h. */
46767 _ACEOF
46768 cat confdefs.h >>conftest.$ac_ext
46769 cat >>conftest.$ac_ext <<_ACEOF
46770 /* end confdefs.h. */
46771
46772
46773 #include <linux/bio.h>
46774
46775 void (*generic_start_io_acct_f)(struct request_queue *, int,
46776 unsigned long, struct hd_struct *) = &generic_start_io_acct;
46777 void (*generic_end_io_acct_f)(struct request_queue *, int,
46778 struct hd_struct *, unsigned long) = &generic_end_io_acct;
46779
46780 int
46781 main (void)
46782 {
46783
46784 generic_start_io_acct(NULL, 0, 0, NULL);
46785 generic_end_io_acct(NULL, 0, NULL, 0);
46786
46787 ;
46788 return 0;
46789 }
46790
46791 _ACEOF
46792
46793
46794
46795 cat - <<_ACEOF >conftest.h
46796
46797 _ACEOF
46798
46799
46800 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
46801 echo "obj-m := conftest.o" >build/Makefile
46802 modpost_flag=''
46803 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
46804 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
46805 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46806 (eval $ac_try) 2>&5
46807 ac_status=$?
46808 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
46809 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
46810 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46811 (eval $ac_try) 2>&5
46812 ac_status=$?
46813 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
46814 (exit $ac_status); }; }; then
46815 rc=0
46816 else
46817 $as_echo "$as_me: failed program was:" >&5
46818 sed 's/^/| /' conftest.$ac_ext >&5
46819 rc=1
46820
46821
46822 fi
46823
46824 rm -Rf build
46825
46826
46827 if test $rc -ne 0; then :
46828
46829 { $as_echo "$as_me:$LINENO: result: no" >&5
46830 $as_echo "no" >&6; }
46831
46832 else
46833 if test "x$enable_linux_builtin" != xyes; then
46834
46835 grep -q -E '[[:space:]]generic_start_io_acct[[:space:]]' \
46836 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
46837 rc=$?
46838 if test $rc -ne 0; then
46839 export=0
46840 for file in block/bio.c; do
46841 grep -q -E "EXPORT_SYMBOL.*(generic_start_io_acct)" \
46842 "$LINUX/$file" 2>/dev/null
46843 rc=$?
46844 if test $rc -eq 0; then
46845 export=1
46846 break;
46847 fi
46848 done
46849 if test $export -eq 0; then :
46850 rc=1
46851 else :
46852 rc=0
46853 fi
46854 else :
46855 rc=0
46856 fi
46857
46858 fi
46859 if test $rc -ne 0; then :
46860
46861 { $as_echo "$as_me:$LINENO: result: no" >&5
46862 $as_echo "no" >&6; }
46863
46864 else :
46865
46866 { $as_echo "$as_me:$LINENO: result: yes" >&5
46867 $as_echo "yes" >&6; }
46868
46869 cat >>confdefs.h <<\_ACEOF
46870 #define HAVE_GENERIC_IO_ACCT_4ARG 1
46871 _ACEOF
46872
46873
46874 fi
46875 fi
46876
46877
46878
46879 { $as_echo "$as_me:$LINENO: checking whether asm/fpu/api.h exists" >&5
46880 $as_echo_n "checking whether asm/fpu/api.h exists... " >&6; }
46881
46882
46883 cat confdefs.h - <<_ACEOF >conftest.c
46884 /* confdefs.h. */
46885 _ACEOF
46886 cat confdefs.h >>conftest.$ac_ext
46887 cat >>conftest.$ac_ext <<_ACEOF
46888 /* end confdefs.h. */
46889
46890
46891 #include <linux/kernel.h>
46892 #include <asm/fpu/api.h>
46893
46894 int
46895 main (void)
46896 {
46897
46898 __kernel_fpu_begin();
46899
46900 ;
46901 return 0;
46902 }
46903
46904 _ACEOF
46905
46906
46907
46908 cat - <<_ACEOF >conftest.h
46909
46910 _ACEOF
46911
46912
46913 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
46914 echo "obj-m := conftest.o" >build/Makefile
46915 modpost_flag=''
46916 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
46917 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
46918 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46919 (eval $ac_try) 2>&5
46920 ac_status=$?
46921 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
46922 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
46923 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46924 (eval $ac_try) 2>&5
46925 ac_status=$?
46926 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
46927 (exit $ac_status); }; }; then
46928
46929 { $as_echo "$as_me:$LINENO: result: yes" >&5
46930 $as_echo "yes" >&6; }
46931
46932 cat >>confdefs.h <<\_ACEOF
46933 #define HAVE_FPU_API_H 1
46934 _ACEOF
46935
46936
46937 else
46938 $as_echo "$as_me: failed program was:" >&5
46939 sed 's/^/| /' conftest.$ac_ext >&5
46940
46941 { $as_echo "$as_me:$LINENO: result: no" >&5
46942 $as_echo "no" >&6; }
46943
46944
46945
46946 fi
46947
46948 rm -Rf build
46949
46950
46951
46952
46953 { $as_echo "$as_me:$LINENO: checking whether i_(uid|gid)_(read|write) exist" >&5
46954 $as_echo_n "checking whether i_(uid|gid)_(read|write) exist... " >&6; }
46955
46956
46957 cat confdefs.h - <<_ACEOF >conftest.c
46958 /* confdefs.h. */
46959 _ACEOF
46960 cat confdefs.h >>conftest.$ac_ext
46961 cat >>conftest.$ac_ext <<_ACEOF
46962 /* end confdefs.h. */
46963
46964
46965 #include <linux/fs.h>
46966
46967 int
46968 main (void)
46969 {
46970
46971 struct inode *ip = NULL;
46972 (void) i_uid_read(ip);
46973
46974 ;
46975 return 0;
46976 }
46977
46978 _ACEOF
46979
46980
46981
46982 cat - <<_ACEOF >conftest.h
46983
46984 _ACEOF
46985
46986
46987 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
46988 echo "obj-m := conftest.o" >build/Makefile
46989 modpost_flag=''
46990 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
46991 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
46992 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46993 (eval $ac_try) 2>&5
46994 ac_status=$?
46995 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
46996 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
46997 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46998 (eval $ac_try) 2>&5
46999 ac_status=$?
47000 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
47001 (exit $ac_status); }; }; then
47002
47003 { $as_echo "$as_me:$LINENO: result: yes" >&5
47004 $as_echo "yes" >&6; }
47005
47006 cat >>confdefs.h <<\_ACEOF
47007 #define HAVE_KUID_HELPERS 1
47008 _ACEOF
47009
47010
47011 else
47012 $as_echo "$as_me: failed program was:" >&5
47013 sed 's/^/| /' conftest.$ac_ext >&5
47014
47015 { $as_echo "$as_me:$LINENO: result: no" >&5
47016 $as_echo "no" >&6; }
47017
47018
47019
47020 fi
47021
47022 rm -Rf build
47023
47024
47025
47026
47027 { $as_echo "$as_me:$LINENO: checking whether module_param_call() is hardened" >&5
47028 $as_echo_n "checking whether module_param_call() is hardened... " >&6; }
47029
47030
47031 cat confdefs.h - <<_ACEOF >conftest.c
47032 /* confdefs.h. */
47033 _ACEOF
47034 cat confdefs.h >>conftest.$ac_ext
47035 cat >>conftest.$ac_ext <<_ACEOF
47036 /* end confdefs.h. */
47037
47038
47039 #include <linux/module.h>
47040 #include <linux/moduleparam.h>
47041
47042 int param_get(char *b, const struct kernel_param *kp)
47043 {
47044 return (0);
47045 }
47046
47047 int param_set(const char *b, const struct kernel_param *kp)
47048 {
47049 return (0);
47050 }
47051
47052 module_param_call(p, param_set, param_get, NULL, 0644);
47053
47054 int
47055 main (void)
47056 {
47057
47058
47059 ;
47060 return 0;
47061 }
47062
47063 _ACEOF
47064
47065
47066
47067 cat - <<_ACEOF >conftest.h
47068
47069 _ACEOF
47070
47071
47072 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
47073 echo "obj-m := conftest.o" >build/Makefile
47074 modpost_flag=''
47075 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
47076 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
47077 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47078 (eval $ac_try) 2>&5
47079 ac_status=$?
47080 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
47081 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
47082 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47083 (eval $ac_try) 2>&5
47084 ac_status=$?
47085 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
47086 (exit $ac_status); }; }; then
47087
47088 { $as_echo "$as_me:$LINENO: result: yes" >&5
47089 $as_echo "yes" >&6; }
47090
47091 cat >>confdefs.h <<\_ACEOF
47092 #define MODULE_PARAM_CALL_CONST 1
47093 _ACEOF
47094
47095
47096 else
47097 $as_echo "$as_me: failed program was:" >&5
47098 sed 's/^/| /' conftest.$ac_ext >&5
47099
47100 { $as_echo "$as_me:$LINENO: result: no" >&5
47101 $as_echo "no" >&6; }
47102
47103
47104
47105 fi
47106
47107 rm -Rf build
47108
47109
47110
47111
47112 { $as_echo "$as_me:$LINENO: checking whether iops->rename() wants flags" >&5
47113 $as_echo_n "checking whether iops->rename() wants flags... " >&6; }
47114
47115
47116 cat confdefs.h - <<_ACEOF >conftest.c
47117 /* confdefs.h. */
47118 _ACEOF
47119 cat confdefs.h >>conftest.$ac_ext
47120 cat >>conftest.$ac_ext <<_ACEOF
47121 /* end confdefs.h. */
47122
47123
47124 #include <linux/fs.h>
47125 int rename_fn(struct inode *sip, struct dentry *sdp,
47126 struct inode *tip, struct dentry *tdp,
47127 unsigned int flags) { return 0; }
47128
47129 static const struct inode_operations
47130 iops __attribute__ ((unused)) = {
47131 .rename = rename_fn,
47132 };
47133
47134 int
47135 main (void)
47136 {
47137
47138
47139 ;
47140 return 0;
47141 }
47142
47143 _ACEOF
47144
47145
47146
47147 cat - <<_ACEOF >conftest.h
47148
47149 _ACEOF
47150
47151
47152 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
47153 echo "obj-m := conftest.o" >build/Makefile
47154 modpost_flag=''
47155 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
47156 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
47157 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47158 (eval $ac_try) 2>&5
47159 ac_status=$?
47160 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
47161 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
47162 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47163 (eval $ac_try) 2>&5
47164 ac_status=$?
47165 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
47166 (exit $ac_status); }; }; then
47167
47168 { $as_echo "$as_me:$LINENO: result: yes" >&5
47169 $as_echo "yes" >&6; }
47170
47171 cat >>confdefs.h <<\_ACEOF
47172 #define HAVE_RENAME_WANTS_FLAGS 1
47173 _ACEOF
47174
47175
47176 else
47177 $as_echo "$as_me: failed program was:" >&5
47178 sed 's/^/| /' conftest.$ac_ext >&5
47179
47180 { $as_echo "$as_me:$LINENO: result: no" >&5
47181 $as_echo "no" >&6; }
47182
47183
47184
47185 fi
47186
47187 rm -Rf build
47188
47189
47190
47191
47192 { $as_echo "$as_me:$LINENO: checking whether generic_setxattr() exists" >&5
47193 $as_echo_n "checking whether generic_setxattr() exists... " >&6; }
47194
47195
47196 cat confdefs.h - <<_ACEOF >conftest.c
47197 /* confdefs.h. */
47198 _ACEOF
47199 cat confdefs.h >>conftest.$ac_ext
47200 cat >>conftest.$ac_ext <<_ACEOF
47201 /* end confdefs.h. */
47202
47203
47204 #include <linux/fs.h>
47205 #include <linux/xattr.h>
47206
47207 static const struct inode_operations
47208 iops __attribute__ ((unused)) = {
47209 .setxattr = generic_setxattr
47210 };
47211
47212 int
47213 main (void)
47214 {
47215
47216
47217 ;
47218 return 0;
47219 }
47220
47221 _ACEOF
47222
47223
47224
47225 cat - <<_ACEOF >conftest.h
47226
47227 _ACEOF
47228
47229
47230 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
47231 echo "obj-m := conftest.o" >build/Makefile
47232 modpost_flag=''
47233 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
47234 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
47235 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47236 (eval $ac_try) 2>&5
47237 ac_status=$?
47238 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
47239 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
47240 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47241 (eval $ac_try) 2>&5
47242 ac_status=$?
47243 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
47244 (exit $ac_status); }; }; then
47245
47246 { $as_echo "$as_me:$LINENO: result: yes" >&5
47247 $as_echo "yes" >&6; }
47248
47249 cat >>confdefs.h <<\_ACEOF
47250 #define HAVE_GENERIC_SETXATTR 1
47251 _ACEOF
47252
47253
47254 else
47255 $as_echo "$as_me: failed program was:" >&5
47256 sed 's/^/| /' conftest.$ac_ext >&5
47257
47258 { $as_echo "$as_me:$LINENO: result: no" >&5
47259 $as_echo "no" >&6; }
47260
47261
47262
47263 fi
47264
47265 rm -Rf build
47266
47267
47268
47269 { $as_echo "$as_me:$LINENO: checking whether current_time() exists" >&5
47270 $as_echo_n "checking whether current_time() exists... " >&6; }
47271
47272
47273
47274 cat confdefs.h - <<_ACEOF >conftest.c
47275 /* confdefs.h. */
47276 _ACEOF
47277 cat confdefs.h >>conftest.$ac_ext
47278 cat >>conftest.$ac_ext <<_ACEOF
47279 /* end confdefs.h. */
47280
47281
47282 #include <linux/fs.h>
47283
47284 int
47285 main (void)
47286 {
47287
47288 struct inode ip;
47289 struct timespec now __attribute__ ((unused));
47290
47291 now = current_time(&ip);
47292
47293 ;
47294 return 0;
47295 }
47296
47297 _ACEOF
47298
47299
47300
47301 cat - <<_ACEOF >conftest.h
47302
47303 _ACEOF
47304
47305
47306 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
47307 echo "obj-m := conftest.o" >build/Makefile
47308 modpost_flag=''
47309 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
47310 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
47311 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47312 (eval $ac_try) 2>&5
47313 ac_status=$?
47314 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
47315 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
47316 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47317 (eval $ac_try) 2>&5
47318 ac_status=$?
47319 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
47320 (exit $ac_status); }; }; then
47321 rc=0
47322 else
47323 $as_echo "$as_me: failed program was:" >&5
47324 sed 's/^/| /' conftest.$ac_ext >&5
47325 rc=1
47326
47327
47328 fi
47329
47330 rm -Rf build
47331
47332
47333 if test $rc -ne 0; then :
47334
47335 { $as_echo "$as_me:$LINENO: result: no" >&5
47336 $as_echo "no" >&6; }
47337
47338 else
47339 if test "x$enable_linux_builtin" != xyes; then
47340
47341 grep -q -E '[[:space:]]current_time[[:space:]]' \
47342 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
47343 rc=$?
47344 if test $rc -ne 0; then
47345 export=0
47346 for file in fs/inode.c; do
47347 grep -q -E "EXPORT_SYMBOL.*(current_time)" \
47348 "$LINUX/$file" 2>/dev/null
47349 rc=$?
47350 if test $rc -eq 0; then
47351 export=1
47352 break;
47353 fi
47354 done
47355 if test $export -eq 0; then :
47356 rc=1
47357 else :
47358 rc=0
47359 fi
47360 else :
47361 rc=0
47362 fi
47363
47364 fi
47365 if test $rc -ne 0; then :
47366
47367 { $as_echo "$as_me:$LINENO: result: no" >&5
47368 $as_echo "no" >&6; }
47369
47370 else :
47371
47372 { $as_echo "$as_me:$LINENO: result: yes" >&5
47373 $as_echo "yes" >&6; }
47374
47375 cat >>confdefs.h <<\_ACEOF
47376 #define HAVE_CURRENT_TIME 1
47377 _ACEOF
47378
47379
47380 fi
47381 fi
47382
47383
47384
47385
47386 { $as_echo "$as_me:$LINENO: checking whether global_node_page_state() exists" >&5
47387 $as_echo_n "checking whether global_node_page_state() exists... " >&6; }
47388
47389
47390 cat confdefs.h - <<_ACEOF >conftest.c
47391 /* confdefs.h. */
47392 _ACEOF
47393 cat confdefs.h >>conftest.$ac_ext
47394 cat >>conftest.$ac_ext <<_ACEOF
47395 /* end confdefs.h. */
47396
47397
47398 #include <linux/mm.h>
47399 #include <linux/vmstat.h>
47400
47401 int
47402 main (void)
47403 {
47404
47405 (void) global_node_page_state(0);
47406
47407 ;
47408 return 0;
47409 }
47410
47411 _ACEOF
47412
47413
47414
47415 cat - <<_ACEOF >conftest.h
47416
47417 _ACEOF
47418
47419
47420 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
47421 echo "obj-m := conftest.o" >build/Makefile
47422 modpost_flag=''
47423 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
47424 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
47425 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47426 (eval $ac_try) 2>&5
47427 ac_status=$?
47428 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
47429 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
47430 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47431 (eval $ac_try) 2>&5
47432 ac_status=$?
47433 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
47434 (exit $ac_status); }; }; then
47435
47436 { $as_echo "$as_me:$LINENO: result: yes" >&5
47437 $as_echo "yes" >&6; }
47438
47439 cat >>confdefs.h <<\_ACEOF
47440 #define ZFS_GLOBAL_NODE_PAGE_STATE 1
47441 _ACEOF
47442
47443
47444 else
47445 $as_echo "$as_me: failed program was:" >&5
47446 sed 's/^/| /' conftest.$ac_ext >&5
47447
47448 { $as_echo "$as_me:$LINENO: result: no" >&5
47449 $as_echo "no" >&6; }
47450
47451
47452
47453 fi
47454
47455 rm -Rf build
47456
47457
47458
47459
47460 { $as_echo "$as_me:$LINENO: checking whether global_zone_page_state() exists" >&5
47461 $as_echo_n "checking whether global_zone_page_state() exists... " >&6; }
47462
47463
47464 cat confdefs.h - <<_ACEOF >conftest.c
47465 /* confdefs.h. */
47466 _ACEOF
47467 cat confdefs.h >>conftest.$ac_ext
47468 cat >>conftest.$ac_ext <<_ACEOF
47469 /* end confdefs.h. */
47470
47471
47472 #include <linux/mm.h>
47473 #include <linux/vmstat.h>
47474
47475 int
47476 main (void)
47477 {
47478
47479 (void) global_zone_page_state(0);
47480
47481 ;
47482 return 0;
47483 }
47484
47485 _ACEOF
47486
47487
47488
47489 cat - <<_ACEOF >conftest.h
47490
47491 _ACEOF
47492
47493
47494 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
47495 echo "obj-m := conftest.o" >build/Makefile
47496 modpost_flag=''
47497 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
47498 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
47499 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47500 (eval $ac_try) 2>&5
47501 ac_status=$?
47502 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
47503 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
47504 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47505 (eval $ac_try) 2>&5
47506 ac_status=$?
47507 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
47508 (exit $ac_status); }; }; then
47509
47510 { $as_echo "$as_me:$LINENO: result: yes" >&5
47511 $as_echo "yes" >&6; }
47512
47513 cat >>confdefs.h <<\_ACEOF
47514 #define ZFS_GLOBAL_ZONE_PAGE_STATE 1
47515 _ACEOF
47516
47517
47518 else
47519 $as_echo "$as_me: failed program was:" >&5
47520 sed 's/^/| /' conftest.$ac_ext >&5
47521
47522 { $as_echo "$as_me:$LINENO: result: no" >&5
47523 $as_echo "no" >&6; }
47524
47525
47526
47527 fi
47528
47529 rm -Rf build
47530
47531
47532
47533
47534
47535 { $as_echo "$as_me:$LINENO: checking whether enum node_stat_item contains NR_FILE_PAGES" >&5
47536 $as_echo_n "checking whether enum node_stat_item contains NR_FILE_PAGES... " >&6; }
47537 if { ac_try='"${srcdir}/scripts/enum-extract.pl" "node_stat_item" "$LINUX/include/linux/mmzone.h" | egrep -qx NR_FILE_PAGES'
47538 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47539 (eval $ac_try) 2>&5
47540 ac_status=$?
47541 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
47542 (exit $ac_status); }; }; then
47543
47544 { $as_echo "$as_me:$LINENO: result: yes" >&5
47545 $as_echo "yes" >&6; }
47546
47547 cat >>confdefs.h <<\_ACEOF
47548 #define ZFS_ENUM_NODE_STAT_ITEM_NR_FILE_PAGES 1
47549 _ACEOF
47550
47551 ZFS_ENUM_NODE_STAT_ITEM_NR_FILE_PAGES=1
47552
47553 else
47554
47555 { $as_echo "$as_me:$LINENO: result: no" >&5
47556 $as_echo "no" >&6; }
47557
47558 fi
47559
47560
47561
47562 { $as_echo "$as_me:$LINENO: checking whether enum node_stat_item contains NR_INACTIVE_ANON" >&5
47563 $as_echo_n "checking whether enum node_stat_item contains NR_INACTIVE_ANON... " >&6; }
47564 if { ac_try='"${srcdir}/scripts/enum-extract.pl" "node_stat_item" "$LINUX/include/linux/mmzone.h" | egrep -qx NR_INACTIVE_ANON'
47565 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47566 (eval $ac_try) 2>&5
47567 ac_status=$?
47568 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
47569 (exit $ac_status); }; }; then
47570
47571 { $as_echo "$as_me:$LINENO: result: yes" >&5
47572 $as_echo "yes" >&6; }
47573
47574 cat >>confdefs.h <<\_ACEOF
47575 #define ZFS_ENUM_NODE_STAT_ITEM_NR_INACTIVE_ANON 1
47576 _ACEOF
47577
47578 ZFS_ENUM_NODE_STAT_ITEM_NR_INACTIVE_ANON=1
47579
47580 else
47581
47582 { $as_echo "$as_me:$LINENO: result: no" >&5
47583 $as_echo "no" >&6; }
47584
47585 fi
47586
47587
47588
47589 { $as_echo "$as_me:$LINENO: checking whether enum node_stat_item contains NR_INACTIVE_FILE" >&5
47590 $as_echo_n "checking whether enum node_stat_item contains NR_INACTIVE_FILE... " >&6; }
47591 if { ac_try='"${srcdir}/scripts/enum-extract.pl" "node_stat_item" "$LINUX/include/linux/mmzone.h" | egrep -qx NR_INACTIVE_FILE'
47592 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47593 (eval $ac_try) 2>&5
47594 ac_status=$?
47595 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
47596 (exit $ac_status); }; }; then
47597
47598 { $as_echo "$as_me:$LINENO: result: yes" >&5
47599 $as_echo "yes" >&6; }
47600
47601 cat >>confdefs.h <<\_ACEOF
47602 #define ZFS_ENUM_NODE_STAT_ITEM_NR_INACTIVE_FILE 1
47603 _ACEOF
47604
47605 ZFS_ENUM_NODE_STAT_ITEM_NR_INACTIVE_FILE=1
47606
47607 else
47608
47609 { $as_echo "$as_me:$LINENO: result: no" >&5
47610 $as_echo "no" >&6; }
47611
47612 fi
47613
47614
47615
47616 { $as_echo "$as_me:$LINENO: checking whether enum node_stat_item contains NR_SLAB_RECLAIMABLE" >&5
47617 $as_echo_n "checking whether enum node_stat_item contains NR_SLAB_RECLAIMABLE... " >&6; }
47618 if { ac_try='"${srcdir}/scripts/enum-extract.pl" "node_stat_item" "$LINUX/include/linux/mmzone.h" | egrep -qx NR_SLAB_RECLAIMABLE'
47619 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47620 (eval $ac_try) 2>&5
47621 ac_status=$?
47622 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
47623 (exit $ac_status); }; }; then
47624
47625 { $as_echo "$as_me:$LINENO: result: yes" >&5
47626 $as_echo "yes" >&6; }
47627
47628 cat >>confdefs.h <<\_ACEOF
47629 #define ZFS_ENUM_NODE_STAT_ITEM_NR_SLAB_RECLAIMABLE 1
47630 _ACEOF
47631
47632 ZFS_ENUM_NODE_STAT_ITEM_NR_SLAB_RECLAIMABLE=1
47633
47634 else
47635
47636 { $as_echo "$as_me:$LINENO: result: no" >&5
47637 $as_echo "no" >&6; }
47638
47639 fi
47640
47641
47642
47643
47644 { $as_echo "$as_me:$LINENO: checking whether enum zone_stat_item contains NR_FILE_PAGES" >&5
47645 $as_echo_n "checking whether enum zone_stat_item contains NR_FILE_PAGES... " >&6; }
47646 if { ac_try='"${srcdir}/scripts/enum-extract.pl" "zone_stat_item" "$LINUX/include/linux/mmzone.h" | egrep -qx NR_FILE_PAGES'
47647 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47648 (eval $ac_try) 2>&5
47649 ac_status=$?
47650 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
47651 (exit $ac_status); }; }; then
47652
47653 { $as_echo "$as_me:$LINENO: result: yes" >&5
47654 $as_echo "yes" >&6; }
47655
47656 cat >>confdefs.h <<\_ACEOF
47657 #define ZFS_ENUM_ZONE_STAT_ITEM_NR_FILE_PAGES 1
47658 _ACEOF
47659
47660 ZFS_ENUM_ZONE_STAT_ITEM_NR_FILE_PAGES=1
47661
47662 else
47663
47664 { $as_echo "$as_me:$LINENO: result: no" >&5
47665 $as_echo "no" >&6; }
47666
47667 fi
47668
47669
47670
47671 { $as_echo "$as_me:$LINENO: checking whether enum zone_stat_item contains NR_INACTIVE_ANON" >&5
47672 $as_echo_n "checking whether enum zone_stat_item contains NR_INACTIVE_ANON... " >&6; }
47673 if { ac_try='"${srcdir}/scripts/enum-extract.pl" "zone_stat_item" "$LINUX/include/linux/mmzone.h" | egrep -qx NR_INACTIVE_ANON'
47674 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47675 (eval $ac_try) 2>&5
47676 ac_status=$?
47677 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
47678 (exit $ac_status); }; }; then
47679
47680 { $as_echo "$as_me:$LINENO: result: yes" >&5
47681 $as_echo "yes" >&6; }
47682
47683 cat >>confdefs.h <<\_ACEOF
47684 #define ZFS_ENUM_ZONE_STAT_ITEM_NR_INACTIVE_ANON 1
47685 _ACEOF
47686
47687 ZFS_ENUM_ZONE_STAT_ITEM_NR_INACTIVE_ANON=1
47688
47689 else
47690
47691 { $as_echo "$as_me:$LINENO: result: no" >&5
47692 $as_echo "no" >&6; }
47693
47694 fi
47695
47696
47697
47698 { $as_echo "$as_me:$LINENO: checking whether enum zone_stat_item contains NR_INACTIVE_FILE" >&5
47699 $as_echo_n "checking whether enum zone_stat_item contains NR_INACTIVE_FILE... " >&6; }
47700 if { ac_try='"${srcdir}/scripts/enum-extract.pl" "zone_stat_item" "$LINUX/include/linux/mmzone.h" | egrep -qx NR_INACTIVE_FILE'
47701 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47702 (eval $ac_try) 2>&5
47703 ac_status=$?
47704 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
47705 (exit $ac_status); }; }; then
47706
47707 { $as_echo "$as_me:$LINENO: result: yes" >&5
47708 $as_echo "yes" >&6; }
47709
47710 cat >>confdefs.h <<\_ACEOF
47711 #define ZFS_ENUM_ZONE_STAT_ITEM_NR_INACTIVE_FILE 1
47712 _ACEOF
47713
47714 ZFS_ENUM_ZONE_STAT_ITEM_NR_INACTIVE_FILE=1
47715
47716 else
47717
47718 { $as_echo "$as_me:$LINENO: result: no" >&5
47719 $as_echo "no" >&6; }
47720
47721 fi
47722
47723
47724
47725 { $as_echo "$as_me:$LINENO: checking whether enum zone_stat_item contains NR_SLAB_RECLAIMABLE" >&5
47726 $as_echo_n "checking whether enum zone_stat_item contains NR_SLAB_RECLAIMABLE... " >&6; }
47727 if { ac_try='"${srcdir}/scripts/enum-extract.pl" "zone_stat_item" "$LINUX/include/linux/mmzone.h" | egrep -qx NR_SLAB_RECLAIMABLE'
47728 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47729 (eval $ac_try) 2>&5
47730 ac_status=$?
47731 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
47732 (exit $ac_status); }; }; then
47733
47734 { $as_echo "$as_me:$LINENO: result: yes" >&5
47735 $as_echo "yes" >&6; }
47736
47737 cat >>confdefs.h <<\_ACEOF
47738 #define ZFS_ENUM_ZONE_STAT_ITEM_NR_SLAB_RECLAIMABLE 1
47739 _ACEOF
47740
47741 ZFS_ENUM_ZONE_STAT_ITEM_NR_SLAB_RECLAIMABLE=1
47742
47743 else
47744
47745 { $as_echo "$as_me:$LINENO: result: no" >&5
47746 $as_echo "no" >&6; }
47747
47748 fi
47749
47750
47751
47752
47753 { $as_echo "$as_me:$LINENO: checking global_page_state enums are sane" >&5
47754 $as_echo_n "checking global_page_state enums are sane... " >&6; }
47755
47756
47757 enum_check_a="$ZFS_ENUM_NODE_STAT_ITEM_NR_FILE_PAGES"
47758 enum_check_b="$ZFS_ENUM_ZONE_STAT_ITEM_NR_FILE_PAGES"
47759 if test -n "$enum_check_a" -a -n "$enum_check_b"; then
47760
47761
47762 { $as_echo "$as_me:$LINENO: result: no" >&5
47763 $as_echo "no" >&6; }
47764 { $as_echo "$as_me:$LINENO: result: NR_FILE_PAGES in either node_stat_item or zone_stat_item: DUPLICATE" >&5
47765 $as_echo "NR_FILE_PAGES in either node_stat_item or zone_stat_item: DUPLICATE" >&6; }
47766 { $as_echo "$as_me:$LINENO: result: configure needs updating, see: config/kernel-global_page_state.m4" >&5
47767 $as_echo "configure needs updating, see: config/kernel-global_page_state.m4" >&6; }
47768 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
47769 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
47770 { { $as_echo "$as_me:$LINENO: error: SHUT 'ER DOWN CLANCY, SHE'S PUMPIN' MUD!
47771 See \`config.log' for more details." >&5
47772 $as_echo "$as_me: error: SHUT 'ER DOWN CLANCY, SHE'S PUMPIN' MUD!
47773 See \`config.log' for more details." >&2;}
47774 { (exit 1); exit 1; }; }; }
47775
47776
47777 fi
47778
47779 if test -z "$enum_check_a" -a -z "$enum_check_b"; then
47780
47781
47782 { $as_echo "$as_me:$LINENO: result: no" >&5
47783 $as_echo "no" >&6; }
47784 { $as_echo "$as_me:$LINENO: result: NR_FILE_PAGES in either node_stat_item or zone_stat_item: NOT FOUND" >&5
47785 $as_echo "NR_FILE_PAGES in either node_stat_item or zone_stat_item: NOT FOUND" >&6; }
47786 { $as_echo "$as_me:$LINENO: result: configure needs updating, see: config/kernel-global_page_state.m4" >&5
47787 $as_echo "configure needs updating, see: config/kernel-global_page_state.m4" >&6; }
47788 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
47789 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
47790 { { $as_echo "$as_me:$LINENO: error: SHUT 'ER DOWN CLANCY, SHE'S PUMPIN' MUD!
47791 See \`config.log' for more details." >&5
47792 $as_echo "$as_me: error: SHUT 'ER DOWN CLANCY, SHE'S PUMPIN' MUD!
47793 See \`config.log' for more details." >&2;}
47794 { (exit 1); exit 1; }; }; }
47795
47796
47797 fi
47798
47799
47800
47801 enum_check_a="$ZFS_ENUM_NODE_STAT_ITEM_NR_INACTIVE_ANON"
47802 enum_check_b="$ZFS_ENUM_ZONE_STAT_ITEM_NR_INACTIVE_ANON"
47803 if test -n "$enum_check_a" -a -n "$enum_check_b"; then
47804
47805
47806 { $as_echo "$as_me:$LINENO: result: no" >&5
47807 $as_echo "no" >&6; }
47808 { $as_echo "$as_me:$LINENO: result: NR_INACTIVE_ANON in either node_stat_item or zone_stat_item: DUPLICATE" >&5
47809 $as_echo "NR_INACTIVE_ANON in either node_stat_item or zone_stat_item: DUPLICATE" >&6; }
47810 { $as_echo "$as_me:$LINENO: result: configure needs updating, see: config/kernel-global_page_state.m4" >&5
47811 $as_echo "configure needs updating, see: config/kernel-global_page_state.m4" >&6; }
47812 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
47813 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
47814 { { $as_echo "$as_me:$LINENO: error: SHUT 'ER DOWN CLANCY, SHE'S PUMPIN' MUD!
47815 See \`config.log' for more details." >&5
47816 $as_echo "$as_me: error: SHUT 'ER DOWN CLANCY, SHE'S PUMPIN' MUD!
47817 See \`config.log' for more details." >&2;}
47818 { (exit 1); exit 1; }; }; }
47819
47820
47821 fi
47822
47823 if test -z "$enum_check_a" -a -z "$enum_check_b"; then
47824
47825
47826 { $as_echo "$as_me:$LINENO: result: no" >&5
47827 $as_echo "no" >&6; }
47828 { $as_echo "$as_me:$LINENO: result: NR_INACTIVE_ANON in either node_stat_item or zone_stat_item: NOT FOUND" >&5
47829 $as_echo "NR_INACTIVE_ANON in either node_stat_item or zone_stat_item: NOT FOUND" >&6; }
47830 { $as_echo "$as_me:$LINENO: result: configure needs updating, see: config/kernel-global_page_state.m4" >&5
47831 $as_echo "configure needs updating, see: config/kernel-global_page_state.m4" >&6; }
47832 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
47833 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
47834 { { $as_echo "$as_me:$LINENO: error: SHUT 'ER DOWN CLANCY, SHE'S PUMPIN' MUD!
47835 See \`config.log' for more details." >&5
47836 $as_echo "$as_me: error: SHUT 'ER DOWN CLANCY, SHE'S PUMPIN' MUD!
47837 See \`config.log' for more details." >&2;}
47838 { (exit 1); exit 1; }; }; }
47839
47840
47841 fi
47842
47843
47844
47845 enum_check_a="$ZFS_ENUM_NODE_STAT_ITEM_NR_INACTIVE_FILE"
47846 enum_check_b="$ZFS_ENUM_ZONE_STAT_ITEM_NR_INACTIVE_FILE"
47847 if test -n "$enum_check_a" -a -n "$enum_check_b"; then
47848
47849
47850 { $as_echo "$as_me:$LINENO: result: no" >&5
47851 $as_echo "no" >&6; }
47852 { $as_echo "$as_me:$LINENO: result: NR_INACTIVE_FILE in either node_stat_item or zone_stat_item: DUPLICATE" >&5
47853 $as_echo "NR_INACTIVE_FILE in either node_stat_item or zone_stat_item: DUPLICATE" >&6; }
47854 { $as_echo "$as_me:$LINENO: result: configure needs updating, see: config/kernel-global_page_state.m4" >&5
47855 $as_echo "configure needs updating, see: config/kernel-global_page_state.m4" >&6; }
47856 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
47857 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
47858 { { $as_echo "$as_me:$LINENO: error: SHUT 'ER DOWN CLANCY, SHE'S PUMPIN' MUD!
47859 See \`config.log' for more details." >&5
47860 $as_echo "$as_me: error: SHUT 'ER DOWN CLANCY, SHE'S PUMPIN' MUD!
47861 See \`config.log' for more details." >&2;}
47862 { (exit 1); exit 1; }; }; }
47863
47864
47865 fi
47866
47867 if test -z "$enum_check_a" -a -z "$enum_check_b"; then
47868
47869
47870 { $as_echo "$as_me:$LINENO: result: no" >&5
47871 $as_echo "no" >&6; }
47872 { $as_echo "$as_me:$LINENO: result: NR_INACTIVE_FILE in either node_stat_item or zone_stat_item: NOT FOUND" >&5
47873 $as_echo "NR_INACTIVE_FILE in either node_stat_item or zone_stat_item: NOT FOUND" >&6; }
47874 { $as_echo "$as_me:$LINENO: result: configure needs updating, see: config/kernel-global_page_state.m4" >&5
47875 $as_echo "configure needs updating, see: config/kernel-global_page_state.m4" >&6; }
47876 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
47877 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
47878 { { $as_echo "$as_me:$LINENO: error: SHUT 'ER DOWN CLANCY, SHE'S PUMPIN' MUD!
47879 See \`config.log' for more details." >&5
47880 $as_echo "$as_me: error: SHUT 'ER DOWN CLANCY, SHE'S PUMPIN' MUD!
47881 See \`config.log' for more details." >&2;}
47882 { (exit 1); exit 1; }; }; }
47883
47884
47885 fi
47886
47887
47888
47889 enum_check_a="$ZFS_ENUM_NODE_STAT_ITEM_NR_SLAB_RECLAIMABLE"
47890 enum_check_b="$ZFS_ENUM_ZONE_STAT_ITEM_NR_SLAB_RECLAIMABLE"
47891 if test -n "$enum_check_a" -a -n "$enum_check_b"; then
47892
47893
47894 { $as_echo "$as_me:$LINENO: result: no" >&5
47895 $as_echo "no" >&6; }
47896 { $as_echo "$as_me:$LINENO: result: NR_SLAB_RECLAIMABLE in either node_stat_item or zone_stat_item: DUPLICATE" >&5
47897 $as_echo "NR_SLAB_RECLAIMABLE in either node_stat_item or zone_stat_item: DUPLICATE" >&6; }
47898 { $as_echo "$as_me:$LINENO: result: configure needs updating, see: config/kernel-global_page_state.m4" >&5
47899 $as_echo "configure needs updating, see: config/kernel-global_page_state.m4" >&6; }
47900 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
47901 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
47902 { { $as_echo "$as_me:$LINENO: error: SHUT 'ER DOWN CLANCY, SHE'S PUMPIN' MUD!
47903 See \`config.log' for more details." >&5
47904 $as_echo "$as_me: error: SHUT 'ER DOWN CLANCY, SHE'S PUMPIN' MUD!
47905 See \`config.log' for more details." >&2;}
47906 { (exit 1); exit 1; }; }; }
47907
47908
47909 fi
47910
47911 if test -z "$enum_check_a" -a -z "$enum_check_b"; then
47912
47913
47914 { $as_echo "$as_me:$LINENO: result: no" >&5
47915 $as_echo "no" >&6; }
47916 { $as_echo "$as_me:$LINENO: result: NR_SLAB_RECLAIMABLE in either node_stat_item or zone_stat_item: NOT FOUND" >&5
47917 $as_echo "NR_SLAB_RECLAIMABLE in either node_stat_item or zone_stat_item: NOT FOUND" >&6; }
47918 { $as_echo "$as_me:$LINENO: result: configure needs updating, see: config/kernel-global_page_state.m4" >&5
47919 $as_echo "configure needs updating, see: config/kernel-global_page_state.m4" >&6; }
47920 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
47921 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
47922 { { $as_echo "$as_me:$LINENO: error: SHUT 'ER DOWN CLANCY, SHE'S PUMPIN' MUD!
47923 See \`config.log' for more details." >&5
47924 $as_echo "$as_me: error: SHUT 'ER DOWN CLANCY, SHE'S PUMPIN' MUD!
47925 See \`config.log' for more details." >&2;}
47926 { (exit 1); exit 1; }; }; }
47927
47928
47929 fi
47930
47931
47932
47933 { $as_echo "$as_me:$LINENO: result: yes" >&5
47934 $as_echo "yes" >&6; }
47935
47936
47937
47938 { $as_echo "$as_me:$LINENO: checking whether posix_acl has refcount_t" >&5
47939 $as_echo_n "checking whether posix_acl has refcount_t... " >&6; }
47940
47941
47942 cat confdefs.h - <<_ACEOF >conftest.c
47943 /* confdefs.h. */
47944 _ACEOF
47945 cat confdefs.h >>conftest.$ac_ext
47946 cat >>conftest.$ac_ext <<_ACEOF
47947 /* end confdefs.h. */
47948
47949
47950 #include <linux/backing-dev.h>
47951 #include <linux/refcount.h>
47952 #include <linux/posix_acl.h>
47953
47954 int
47955 main (void)
47956 {
47957
47958 struct posix_acl acl;
47959 refcount_t *r __attribute__ ((unused)) = &acl.a_refcount;
47960
47961 ;
47962 return 0;
47963 }
47964
47965 _ACEOF
47966
47967
47968
47969 cat - <<_ACEOF >conftest.h
47970
47971 _ACEOF
47972
47973
47974 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
47975 echo "obj-m := conftest.o" >build/Makefile
47976 modpost_flag=''
47977 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
47978 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
47979 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47980 (eval $ac_try) 2>&5
47981 ac_status=$?
47982 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
47983 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
47984 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47985 (eval $ac_try) 2>&5
47986 ac_status=$?
47987 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
47988 (exit $ac_status); }; }; then
47989
47990 { $as_echo "$as_me:$LINENO: result: yes" >&5
47991 $as_echo "yes" >&6; }
47992
47993 cat >>confdefs.h <<\_ACEOF
47994 #define HAVE_ACL_REFCOUNT 1
47995 _ACEOF
47996
47997
47998 else
47999 $as_echo "$as_me: failed program was:" >&5
48000 sed 's/^/| /' conftest.$ac_ext >&5
48001
48002 { $as_echo "$as_me:$LINENO: result: no" >&5
48003 $as_echo "no" >&6; }
48004
48005
48006
48007 fi
48008
48009 rm -Rf build
48010
48011
48012
48013
48014
48015 { $as_echo "$as_me:$LINENO: checking whether ns_capable exists" >&5
48016 $as_echo_n "checking whether ns_capable exists... " >&6; }
48017
48018
48019 cat confdefs.h - <<_ACEOF >conftest.c
48020 /* confdefs.h. */
48021 _ACEOF
48022 cat confdefs.h >>conftest.$ac_ext
48023 cat >>conftest.$ac_ext <<_ACEOF
48024 /* end confdefs.h. */
48025
48026
48027 #include <linux/capability.h>
48028
48029 int
48030 main (void)
48031 {
48032
48033 ns_capable((struct user_namespace *)NULL, CAP_SYS_ADMIN);
48034
48035 ;
48036 return 0;
48037 }
48038
48039 _ACEOF
48040
48041
48042
48043 cat - <<_ACEOF >conftest.h
48044
48045 _ACEOF
48046
48047
48048 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
48049 echo "obj-m := conftest.o" >build/Makefile
48050 modpost_flag=''
48051 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
48052 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
48053 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48054 (eval $ac_try) 2>&5
48055 ac_status=$?
48056 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
48057 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
48058 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48059 (eval $ac_try) 2>&5
48060 ac_status=$?
48061 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
48062 (exit $ac_status); }; }; then
48063
48064 { $as_echo "$as_me:$LINENO: result: yes" >&5
48065 $as_echo "yes" >&6; }
48066
48067 cat >>confdefs.h <<\_ACEOF
48068 #define HAVE_NS_CAPABLE 1
48069 _ACEOF
48070
48071
48072 else
48073 $as_echo "$as_me: failed program was:" >&5
48074 sed 's/^/| /' conftest.$ac_ext >&5
48075
48076 { $as_echo "$as_me:$LINENO: result: no" >&5
48077 $as_echo "no" >&6; }
48078
48079
48080
48081 fi
48082
48083 rm -Rf build
48084
48085
48086
48087
48088 { $as_echo "$as_me:$LINENO: checking whether cred_t->user_ns exists" >&5
48089 $as_echo_n "checking whether cred_t->user_ns exists... " >&6; }
48090
48091
48092 cat confdefs.h - <<_ACEOF >conftest.c
48093 /* confdefs.h. */
48094 _ACEOF
48095 cat confdefs.h >>conftest.$ac_ext
48096 cat >>conftest.$ac_ext <<_ACEOF
48097 /* end confdefs.h. */
48098
48099
48100 #include <linux/cred.h>
48101
48102 int
48103 main (void)
48104 {
48105
48106 struct cred cr;
48107 cr.user_ns = (struct user_namespace *)NULL;
48108
48109 ;
48110 return 0;
48111 }
48112
48113 _ACEOF
48114
48115
48116
48117 cat - <<_ACEOF >conftest.h
48118
48119 _ACEOF
48120
48121
48122 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
48123 echo "obj-m := conftest.o" >build/Makefile
48124 modpost_flag=''
48125 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
48126 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
48127 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48128 (eval $ac_try) 2>&5
48129 ac_status=$?
48130 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
48131 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
48132 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48133 (eval $ac_try) 2>&5
48134 ac_status=$?
48135 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
48136 (exit $ac_status); }; }; then
48137
48138 { $as_echo "$as_me:$LINENO: result: yes" >&5
48139 $as_echo "yes" >&6; }
48140
48141 cat >>confdefs.h <<\_ACEOF
48142 #define HAVE_CRED_USER_NS 1
48143 _ACEOF
48144
48145
48146 else
48147 $as_echo "$as_me: failed program was:" >&5
48148 sed 's/^/| /' conftest.$ac_ext >&5
48149
48150 { $as_echo "$as_me:$LINENO: result: no" >&5
48151 $as_echo "no" >&6; }
48152
48153
48154
48155 fi
48156
48157 rm -Rf build
48158
48159
48160
48161
48162 { $as_echo "$as_me:$LINENO: checking whether kuid_has_mapping/kgid_has_mapping exist" >&5
48163 $as_echo_n "checking whether kuid_has_mapping/kgid_has_mapping exist... " >&6; }
48164
48165
48166 cat confdefs.h - <<_ACEOF >conftest.c
48167 /* confdefs.h. */
48168 _ACEOF
48169 cat confdefs.h >>conftest.$ac_ext
48170 cat >>conftest.$ac_ext <<_ACEOF
48171 /* end confdefs.h. */
48172
48173
48174 #include <linux/uidgid.h>
48175
48176 int
48177 main (void)
48178 {
48179
48180 kuid_has_mapping((struct user_namespace *)NULL, KUIDT_INIT(0));
48181 kgid_has_mapping((struct user_namespace *)NULL, KGIDT_INIT(0));
48182
48183 ;
48184 return 0;
48185 }
48186
48187 _ACEOF
48188
48189
48190
48191 cat - <<_ACEOF >conftest.h
48192
48193 _ACEOF
48194
48195
48196 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
48197 echo "obj-m := conftest.o" >build/Makefile
48198 modpost_flag=''
48199 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
48200 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $FRAME_LARGER_THAN $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
48201 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48202 (eval $ac_try) 2>&5
48203 ac_status=$?
48204 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
48205 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
48206 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48207 (eval $ac_try) 2>&5
48208 ac_status=$?
48209 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
48210 (exit $ac_status); }; }; then
48211
48212 { $as_echo "$as_me:$LINENO: result: yes" >&5
48213 $as_echo "yes" >&6; }
48214
48215 cat >>confdefs.h <<\_ACEOF
48216 #define HAVE_KUID_HAS_MAPPING 1
48217 _ACEOF
48218
48219
48220 else
48221 $as_echo "$as_me: failed program was:" >&5
48222 sed 's/^/| /' conftest.$ac_ext >&5
48223
48224 { $as_echo "$as_me:$LINENO: result: no" >&5
48225 $as_echo "no" >&6; }
48226
48227
48228
48229 fi
48230
48231 rm -Rf build
48232
48233
48234
48235
48236
48237 if test "$LINUX_OBJ" != "$LINUX"; then
48238
48239 KERNELMAKE_PARAMS="$KERNELMAKE_PARAMS O=$LINUX_OBJ"
48240
48241 fi
48242
48243
48244
48245
48246 KERNELCPPFLAGS="$KERNELCPPFLAGS -std=gnu99"
48247 KERNELCPPFLAGS="$KERNELCPPFLAGS -Wno-declaration-after-statement"
48248 KERNELCPPFLAGS="$KERNELCPPFLAGS $NO_UNUSED_BUT_SET_VARIABLE"
48249 KERNELCPPFLAGS="$KERNELCPPFLAGS $NO_BOOL_COMPARE"
48250 KERNELCPPFLAGS="$KERNELCPPFLAGS -DHAVE_SPL -D_KERNEL"
48251 KERNELCPPFLAGS="$KERNELCPPFLAGS -DTEXT_DOMAIN=\\\"zfs-linux-kernel\\\""
48252
48253
48254 ;;
48255 srpm) ;;
48256 *)
48257 { $as_echo "$as_me:$LINENO: result: Error!" >&5
48258 $as_echo "Error!" >&6; }
48259 { { $as_echo "$as_me:$LINENO: error: Bad value \"$ZFS_CONFIG\" for --with-config,
48260 user kernel|user|all|srpm" >&5
48261 $as_echo "$as_me: error: Bad value \"$ZFS_CONFIG\" for --with-config,
48262 user kernel|user|all|srpm" >&2;}
48263 { (exit 1); exit 1; }; } ;;
48264 esac
48265
48266 if test "$ZFS_CONFIG" = user -o "$ZFS_CONFIG" = all; then
48267 CONFIG_USER_TRUE=
48268 CONFIG_USER_FALSE='#'
48269 else
48270 CONFIG_USER_TRUE='#'
48271 CONFIG_USER_FALSE=
48272 fi
48273
48274 if test "$ZFS_CONFIG" = kernel -o "$ZFS_CONFIG" = all &&
48275 test "x$enable_linux_builtin" != xyes ; then
48276 CONFIG_KERNEL_TRUE=
48277 CONFIG_KERNEL_FALSE='#'
48278 else
48279 CONFIG_KERNEL_TRUE='#'
48280 CONFIG_KERNEL_FALSE=
48281 fi
48282
48283 if test "$ZFS_CONFIG" = kernel -o "$ZFS_CONFIG" = all &&
48284 test "x$qatsrc" != x ; then
48285 CONFIG_QAT_TRUE=
48286 CONFIG_QAT_FALSE='#'
48287 else
48288 CONFIG_QAT_TRUE='#'
48289 CONFIG_QAT_FALSE=
48290 fi
48291
48292 if test "x$user_libudev" = xyes ; then
48293 WANT_DEVNAME2DEVID_TRUE=
48294 WANT_DEVNAME2DEVID_FALSE='#'
48295 else
48296 WANT_DEVNAME2DEVID_TRUE='#'
48297 WANT_DEVNAME2DEVID_FALSE=
48298 fi
48299
48300 if test "x$user_libaio" = xyes ; then
48301 WANT_MMAP_LIBAIO_TRUE=
48302 WANT_MMAP_LIBAIO_FALSE='#'
48303 else
48304 WANT_MMAP_LIBAIO_TRUE='#'
48305 WANT_MMAP_LIBAIO_FALSE=
48306 fi
48307
48308
48309
48310 { $as_echo "$as_me:$LINENO: checking whether assertion support will be enabled" >&5
48311 $as_echo_n "checking whether assertion support will be enabled... " >&6; }
48312 # Check whether --enable-debug was given.
48313 if test "${enable_debug+set}" = set; then
48314 enableval=$enable_debug;
48315 else
48316 enable_debug=no
48317 fi
48318
48319
48320 case "x$enable_debug" in
48321 "xyes")
48322 KERNELCPPFLAGS="${KERNELCPPFLAGS} -DDEBUG -Werror"
48323 HOSTCFLAGS="${HOSTCFLAGS} -DDEBUG -Werror"
48324 DEBUG_CFLAGS="-DDEBUG -Werror"
48325 DEBUG_ZFS="_with_debug"
48326
48327 cat >>confdefs.h <<\_ACEOF
48328 #define ZFS_DEBUG 1
48329 _ACEOF
48330
48331 ;;
48332 "xno")
48333 KERNELCPPFLAGS="${KERNELCPPFLAGS} -DNDEBUG "
48334 HOSTCFLAGS="${HOSTCFLAGS} -DNDEBUG "
48335 DEBUG_CFLAGS="-DNDEBUG"
48336 DEBUG_STACKFLAGS=""
48337 DEBUG_ZFS="_without_debug"
48338 ;;
48339 *) { { $as_echo "$as_me:$LINENO: error: Unknown option $enable_debug" >&5
48340 $as_echo "$as_me: error: Unknown option $enable_debug" >&2;}
48341 { (exit 1); exit 1; }; } ;;
48342 esac
48343
48344
48345
48346
48347 { $as_echo "$as_me:$LINENO: result: $enable_debug" >&5
48348 $as_echo "$enable_debug" >&6; }
48349
48350
48351 { $as_echo "$as_me:$LINENO: checking whether debuginfo support will be forced" >&5
48352 $as_echo_n "checking whether debuginfo support will be forced... " >&6; }
48353 # Check whether --enable-debuginfo was given.
48354 if test "${enable_debuginfo+set}" = set; then
48355 enableval=$enable_debuginfo;
48356 else
48357 enable_debuginfo=no
48358 fi
48359
48360
48361 case "x$enable_debuginfo" in
48362 "xyes")
48363 KERNELMAKE_PARAMS="$KERNELMAKE_PARAMS CONFIG_DEBUG_INFO=y"
48364 KERNELCPPFLAGS="${KERNELCPPFLAGS} -fno-inline"
48365
48366
48367 DEBUG_CFLAGS="${DEBUG_CFLAGS} -g -fno-inline"
48368 ;;
48369 "xkernel")
48370 KERNELMAKE_PARAMS="$KERNELMAKE_PARAMS CONFIG_DEBUG_INFO=y"
48371 KERNELCPPFLAGS="${KERNELCPPFLAGS} -fno-inline"
48372 ;;
48373 "xuser")
48374 DEBUG_CFLAGS="${DEBUG_CFLAGS} -g -fno-inline"
48375 ;;
48376 "xno") : ;;
48377 *) { { $as_echo "$as_me:$LINENO: error: Unknown option $enable_debug" >&5
48378 $as_echo "$as_me: error: Unknown option $enable_debug" >&2;}
48379 { (exit 1); exit 1; }; } ;;
48380 esac
48381
48382
48383
48384 { $as_echo "$as_me:$LINENO: result: $enable_debuginfo" >&5
48385 $as_echo "$enable_debuginfo" >&6; }
48386
48387
48388 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/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/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"
48389
48390
48391
48392 cat >confcache <<\_ACEOF
48393 # This file is a shell script that caches the results of configure
48394 # tests run on this system so they can be shared between configure
48395 # scripts and configure runs, see configure's option --config-cache.
48396 # It is not useful on other systems. If it contains results you don't
48397 # want to keep, you may remove or edit it.
48398 #
48399 # config.status only pays attention to the cache file if you give it
48400 # the --recheck option to rerun configure.
48401 #
48402 # `ac_cv_env_foo' variables (set or unset) will be overridden when
48403 # loading this file, other *unset* `ac_cv_foo' will be assigned the
48404 # following values.
48405
48406 _ACEOF
48407
48408 # The following way of writing the cache mishandles newlines in values,
48409 # but we know of no workaround that is simple, portable, and efficient.
48410 # So, we kill variables containing newlines.
48411 # Ultrix sh set writes to stderr and can't be redirected directly,
48412 # and sets the high bit in the cache file unless we assign to the vars.
48413 (
48414 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
48415 eval ac_val=\$$ac_var
48416 case $ac_val in #(
48417 *${as_nl}*)
48418 case $ac_var in #(
48419 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
48420 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
48421 esac
48422 case $ac_var in #(
48423 _ | IFS | as_nl) ;; #(
48424 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
48425 *) $as_unset $ac_var ;;
48426 esac ;;
48427 esac
48428 done
48429
48430 (set) 2>&1 |
48431 case $as_nl`(ac_space=' '; set) 2>&1` in #(
48432 *${as_nl}ac_space=\ *)
48433 # `set' does not quote correctly, so add quotes (double-quote
48434 # substitution turns \\\\ into \\, and sed turns \\ into \).
48435 sed -n \
48436 "s/'/'\\\\''/g;
48437 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
48438 ;; #(
48439 *)
48440 # `set' quotes correctly as required by POSIX, so do not add quotes.
48441 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
48442 ;;
48443 esac |
48444 sort
48445 ) |
48446 sed '
48447 /^ac_cv_env_/b end
48448 t clear
48449 :clear
48450 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
48451 t end
48452 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
48453 :end' >>confcache
48454 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
48455 if test -w "$cache_file"; then
48456 test "x$cache_file" != "x/dev/null" &&
48457 { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
48458 $as_echo "$as_me: updating cache $cache_file" >&6;}
48459 cat confcache >$cache_file
48460 else
48461 { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
48462 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
48463 fi
48464 fi
48465 rm -f confcache
48466
48467 test "x$prefix" = xNONE && prefix=$ac_default_prefix
48468 # Let make expand exec_prefix.
48469 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
48470
48471 DEFS=-DHAVE_CONFIG_H
48472
48473 ac_libobjs=
48474 ac_ltlibobjs=
48475 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
48476 # 1. Remove the extension, and $U if already installed.
48477 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
48478 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
48479 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
48480 # will be set to the directory where LIBOBJS objects are built.
48481 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
48482 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
48483 done
48484 LIBOBJS=$ac_libobjs
48485
48486 LTLIBOBJS=$ac_ltlibobjs
48487
48488
48489 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
48490 { { $as_echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
48491 Usually this means the macro was only invoked conditionally." >&5
48492 $as_echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
48493 Usually this means the macro was only invoked conditionally." >&2;}
48494 { (exit 1); exit 1; }; }
48495 fi
48496 if test -n "$EXEEXT"; then
48497 am__EXEEXT_TRUE=
48498 am__EXEEXT_FALSE='#'
48499 else
48500 am__EXEEXT_TRUE='#'
48501 am__EXEEXT_FALSE=
48502 fi
48503
48504 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
48505 { { $as_echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
48506 Usually this means the macro was only invoked conditionally." >&5
48507 $as_echo "$as_me: error: conditional \"AMDEP\" was never defined.
48508 Usually this means the macro was only invoked conditionally." >&2;}
48509 { (exit 1); exit 1; }; }
48510 fi
48511 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
48512 { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
48513 Usually this means the macro was only invoked conditionally." >&5
48514 $as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
48515 Usually this means the macro was only invoked conditionally." >&2;}
48516 { (exit 1); exit 1; }; }
48517 fi
48518 if test -z "${am__fastdepCCAS_TRUE}" && test -z "${am__fastdepCCAS_FALSE}"; then
48519 { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCCAS\" was never defined.
48520 Usually this means the macro was only invoked conditionally." >&5
48521 $as_echo "$as_me: error: conditional \"am__fastdepCCAS\" was never defined.
48522 Usually this means the macro was only invoked conditionally." >&2;}
48523 { (exit 1); exit 1; }; }
48524 fi
48525 if test -z "${CODE_COVERAGE_ENABLED_TRUE}" && test -z "${CODE_COVERAGE_ENABLED_FALSE}"; then
48526 { { $as_echo "$as_me:$LINENO: error: conditional \"CODE_COVERAGE_ENABLED\" was never defined.
48527 Usually this means the macro was only invoked conditionally." >&5
48528 $as_echo "$as_me: error: conditional \"CODE_COVERAGE_ENABLED\" was never defined.
48529 Usually this means the macro was only invoked conditionally." >&2;}
48530 { (exit 1); exit 1; }; }
48531 fi
48532 if test -z "${TARGET_ASM_X86_64_TRUE}" && test -z "${TARGET_ASM_X86_64_FALSE}"; then
48533 { { $as_echo "$as_me:$LINENO: error: conditional \"TARGET_ASM_X86_64\" was never defined.
48534 Usually this means the macro was only invoked conditionally." >&5
48535 $as_echo "$as_me: error: conditional \"TARGET_ASM_X86_64\" was never defined.
48536 Usually this means the macro was only invoked conditionally." >&2;}
48537 { (exit 1); exit 1; }; }
48538 fi
48539 if test -z "${TARGET_ASM_I386_TRUE}" && test -z "${TARGET_ASM_I386_FALSE}"; then
48540 { { $as_echo "$as_me:$LINENO: error: conditional \"TARGET_ASM_I386\" was never defined.
48541 Usually this means the macro was only invoked conditionally." >&5
48542 $as_echo "$as_me: error: conditional \"TARGET_ASM_I386\" was never defined.
48543 Usually this means the macro was only invoked conditionally." >&2;}
48544 { (exit 1); exit 1; }; }
48545 fi
48546 if test -z "${TARGET_ASM_GENERIC_TRUE}" && test -z "${TARGET_ASM_GENERIC_FALSE}"; then
48547 { { $as_echo "$as_me:$LINENO: error: conditional \"TARGET_ASM_GENERIC\" was never defined.
48548 Usually this means the macro was only invoked conditionally." >&5
48549 $as_echo "$as_me: error: conditional \"TARGET_ASM_GENERIC\" was never defined.
48550 Usually this means the macro was only invoked conditionally." >&2;}
48551 { (exit 1); exit 1; }; }
48552 fi
48553 if test -z "${CONFIG_USER_TRUE}" && test -z "${CONFIG_USER_FALSE}"; then
48554 { { $as_echo "$as_me:$LINENO: error: conditional \"CONFIG_USER\" was never defined.
48555 Usually this means the macro was only invoked conditionally." >&5
48556 $as_echo "$as_me: error: conditional \"CONFIG_USER\" was never defined.
48557 Usually this means the macro was only invoked conditionally." >&2;}
48558 { (exit 1); exit 1; }; }
48559 fi
48560 if test -z "${CONFIG_KERNEL_TRUE}" && test -z "${CONFIG_KERNEL_FALSE}"; then
48561 { { $as_echo "$as_me:$LINENO: error: conditional \"CONFIG_KERNEL\" was never defined.
48562 Usually this means the macro was only invoked conditionally." >&5
48563 $as_echo "$as_me: error: conditional \"CONFIG_KERNEL\" was never defined.
48564 Usually this means the macro was only invoked conditionally." >&2;}
48565 { (exit 1); exit 1; }; }
48566 fi
48567 if test -z "${CONFIG_QAT_TRUE}" && test -z "${CONFIG_QAT_FALSE}"; then
48568 { { $as_echo "$as_me:$LINENO: error: conditional \"CONFIG_QAT\" was never defined.
48569 Usually this means the macro was only invoked conditionally." >&5
48570 $as_echo "$as_me: error: conditional \"CONFIG_QAT\" was never defined.
48571 Usually this means the macro was only invoked conditionally." >&2;}
48572 { (exit 1); exit 1; }; }
48573 fi
48574 if test -z "${WANT_DEVNAME2DEVID_TRUE}" && test -z "${WANT_DEVNAME2DEVID_FALSE}"; then
48575 { { $as_echo "$as_me:$LINENO: error: conditional \"WANT_DEVNAME2DEVID\" was never defined.
48576 Usually this means the macro was only invoked conditionally." >&5
48577 $as_echo "$as_me: error: conditional \"WANT_DEVNAME2DEVID\" was never defined.
48578 Usually this means the macro was only invoked conditionally." >&2;}
48579 { (exit 1); exit 1; }; }
48580 fi
48581 if test -z "${WANT_MMAP_LIBAIO_TRUE}" && test -z "${WANT_MMAP_LIBAIO_FALSE}"; then
48582 { { $as_echo "$as_me:$LINENO: error: conditional \"WANT_MMAP_LIBAIO\" was never defined.
48583 Usually this means the macro was only invoked conditionally." >&5
48584 $as_echo "$as_me: error: conditional \"WANT_MMAP_LIBAIO\" was never defined.
48585 Usually this means the macro was only invoked conditionally." >&2;}
48586 { (exit 1); exit 1; }; }
48587 fi
48588
48589 : ${CONFIG_STATUS=./config.status}
48590 ac_write_fail=0
48591 ac_clean_files_save=$ac_clean_files
48592 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
48593 { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
48594 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
48595 cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
48596 #! $SHELL
48597 # Generated by $as_me.
48598 # Run this file to recreate the current configuration.
48599 # Compiler output produced by configure, useful for debugging
48600 # configure, is in config.log if it exists.
48601
48602 debug=false
48603 ac_cs_recheck=false
48604 ac_cs_silent=false
48605 SHELL=\${CONFIG_SHELL-$SHELL}
48606 _ACEOF
48607
48608 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
48609 ## --------------------- ##
48610 ## M4sh Initialization. ##
48611 ## --------------------- ##
48612
48613 # Be more Bourne compatible
48614 DUALCASE=1; export DUALCASE # for MKS sh
48615 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
48616 emulate sh
48617 NULLCMD=:
48618 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
48619 # is contrary to our usage. Disable this feature.
48620 alias -g '${1+"$@"}'='"$@"'
48621 setopt NO_GLOB_SUBST
48622 else
48623 case `(set -o) 2>/dev/null` in
48624 *posix*) set -o posix ;;
48625 esac
48626
48627 fi
48628
48629
48630
48631
48632 # PATH needs CR
48633 # Avoid depending upon Character Ranges.
48634 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
48635 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
48636 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
48637 as_cr_digits='0123456789'
48638 as_cr_alnum=$as_cr_Letters$as_cr_digits
48639
48640 as_nl='
48641 '
48642 export as_nl
48643 # Printing a long string crashes Solaris 7 /usr/bin/printf.
48644 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
48645 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
48646 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
48647 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48648 as_echo='printf %s\n'
48649 as_echo_n='printf %s'
48650 else
48651 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
48652 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
48653 as_echo_n='/usr/ucb/echo -n'
48654 else
48655 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
48656 as_echo_n_body='eval
48657 arg=$1;
48658 case $arg in
48659 *"$as_nl"*)
48660 expr "X$arg" : "X\\(.*\\)$as_nl";
48661 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
48662 esac;
48663 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
48664 '
48665 export as_echo_n_body
48666 as_echo_n='sh -c $as_echo_n_body as_echo'
48667 fi
48668 export as_echo_body
48669 as_echo='sh -c $as_echo_body as_echo'
48670 fi
48671
48672 # The user is always right.
48673 if test "${PATH_SEPARATOR+set}" != set; then
48674 PATH_SEPARATOR=:
48675 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
48676 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
48677 PATH_SEPARATOR=';'
48678 }
48679 fi
48680
48681 # Support unset when possible.
48682 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
48683 as_unset=unset
48684 else
48685 as_unset=false
48686 fi
48687
48688
48689 # IFS
48690 # We need space, tab and new line, in precisely that order. Quoting is
48691 # there to prevent editors from complaining about space-tab.
48692 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
48693 # splitting by setting IFS to empty value.)
48694 IFS=" "" $as_nl"
48695
48696 # Find who we are. Look in the path if we contain no directory separator.
48697 case $0 in
48698 *[\\/]* ) as_myself=$0 ;;
48699 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
48700 for as_dir in $PATH
48701 do
48702 IFS=$as_save_IFS
48703 test -z "$as_dir" && as_dir=.
48704 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
48705 done
48706 IFS=$as_save_IFS
48707
48708 ;;
48709 esac
48710 # We did not find ourselves, most probably we were run as `sh COMMAND'
48711 # in which case we are not to be found in the path.
48712 if test "x$as_myself" = x; then
48713 as_myself=$0
48714 fi
48715 if test ! -f "$as_myself"; then
48716 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
48717 { (exit 1); exit 1; }
48718 fi
48719
48720 # Work around bugs in pre-3.0 UWIN ksh.
48721 for as_var in ENV MAIL MAILPATH
48722 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
48723 done
48724 PS1='$ '
48725 PS2='> '
48726 PS4='+ '
48727
48728 # NLS nuisances.
48729 LC_ALL=C
48730 export LC_ALL
48731 LANGUAGE=C
48732 export LANGUAGE
48733
48734 # Required to use basename.
48735 if expr a : '\(a\)' >/dev/null 2>&1 &&
48736 test "X`expr 00001 : '.*\(...\)'`" = X001; then
48737 as_expr=expr
48738 else
48739 as_expr=false
48740 fi
48741
48742 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
48743 as_basename=basename
48744 else
48745 as_basename=false
48746 fi
48747
48748
48749 # Name of the executable.
48750 as_me=`$as_basename -- "$0" ||
48751 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
48752 X"$0" : 'X\(//\)$' \| \
48753 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
48754 $as_echo X/"$0" |
48755 sed '/^.*\/\([^/][^/]*\)\/*$/{
48756 s//\1/
48757 q
48758 }
48759 /^X\/\(\/\/\)$/{
48760 s//\1/
48761 q
48762 }
48763 /^X\/\(\/\).*/{
48764 s//\1/
48765 q
48766 }
48767 s/.*/./; q'`
48768
48769 # CDPATH.
48770 $as_unset CDPATH
48771
48772
48773
48774 as_lineno_1=$LINENO
48775 as_lineno_2=$LINENO
48776 test "x$as_lineno_1" != "x$as_lineno_2" &&
48777 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
48778
48779 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
48780 # uniformly replaced by the line number. The first 'sed' inserts a
48781 # line-number line after each line using $LINENO; the second 'sed'
48782 # does the real work. The second script uses 'N' to pair each
48783 # line-number line with the line containing $LINENO, and appends
48784 # trailing '-' during substitution so that $LINENO is not a special
48785 # case at line end.
48786 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
48787 # scripts with optimization help from Paolo Bonzini. Blame Lee
48788 # E. McMahon (1931-1989) for sed's syntax. :-)
48789 sed -n '
48790 p
48791 /[$]LINENO/=
48792 ' <$as_myself |
48793 sed '
48794 s/[$]LINENO.*/&-/
48795 t lineno
48796 b
48797 :lineno
48798 N
48799 :loop
48800 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
48801 t loop
48802 s/-\n.*//
48803 ' >$as_me.lineno &&
48804 chmod +x "$as_me.lineno" ||
48805 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
48806 { (exit 1); exit 1; }; }
48807
48808 # Don't try to exec as it changes $[0], causing all sort of problems
48809 # (the dirname of $[0] is not the place where we might find the
48810 # original and so on. Autoconf is especially sensitive to this).
48811 . "./$as_me.lineno"
48812 # Exit status is that of the last command.
48813 exit
48814 }
48815
48816
48817 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
48818 as_dirname=dirname
48819 else
48820 as_dirname=false
48821 fi
48822
48823 ECHO_C= ECHO_N= ECHO_T=
48824 case `echo -n x` in
48825 -n*)
48826 case `echo 'x\c'` in
48827 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
48828 *) ECHO_C='\c';;
48829 esac;;
48830 *)
48831 ECHO_N='-n';;
48832 esac
48833 if expr a : '\(a\)' >/dev/null 2>&1 &&
48834 test "X`expr 00001 : '.*\(...\)'`" = X001; then
48835 as_expr=expr
48836 else
48837 as_expr=false
48838 fi
48839
48840 rm -f conf$$ conf$$.exe conf$$.file
48841 if test -d conf$$.dir; then
48842 rm -f conf$$.dir/conf$$.file
48843 else
48844 rm -f conf$$.dir
48845 mkdir conf$$.dir 2>/dev/null
48846 fi
48847 if (echo >conf$$.file) 2>/dev/null; then
48848 if ln -s conf$$.file conf$$ 2>/dev/null; then
48849 as_ln_s='ln -s'
48850 # ... but there are two gotchas:
48851 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
48852 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
48853 # In both cases, we have to default to `cp -p'.
48854 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
48855 as_ln_s='cp -p'
48856 elif ln conf$$.file conf$$ 2>/dev/null; then
48857 as_ln_s=ln
48858 else
48859 as_ln_s='cp -p'
48860 fi
48861 else
48862 as_ln_s='cp -p'
48863 fi
48864 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
48865 rmdir conf$$.dir 2>/dev/null
48866
48867 if mkdir -p . 2>/dev/null; then
48868 as_mkdir_p=:
48869 else
48870 test -d ./-p && rmdir ./-p
48871 as_mkdir_p=false
48872 fi
48873
48874 if test -x / >/dev/null 2>&1; then
48875 as_test_x='test -x'
48876 else
48877 if ls -dL / >/dev/null 2>&1; then
48878 as_ls_L_option=L
48879 else
48880 as_ls_L_option=
48881 fi
48882 as_test_x='
48883 eval sh -c '\''
48884 if test -d "$1"; then
48885 test -d "$1/.";
48886 else
48887 case $1 in
48888 -*)set "./$1";;
48889 esac;
48890 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
48891 ???[sx]*):;;*)false;;esac;fi
48892 '\'' sh
48893 '
48894 fi
48895 as_executable_p=$as_test_x
48896
48897 # Sed expression to map a string onto a valid CPP name.
48898 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
48899
48900 # Sed expression to map a string onto a valid variable name.
48901 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
48902
48903
48904 exec 6>&1
48905
48906 # Save the log message, to keep $[0] and so on meaningful, and to
48907 # report actual input values of CONFIG_FILES etc. instead of their
48908 # values after options handling.
48909 ac_log="
48910 This file was extended by zfs $as_me 0.7.9, which was
48911 generated by GNU Autoconf 2.63. Invocation command line was
48912
48913 CONFIG_FILES = $CONFIG_FILES
48914 CONFIG_HEADERS = $CONFIG_HEADERS
48915 CONFIG_LINKS = $CONFIG_LINKS
48916 CONFIG_COMMANDS = $CONFIG_COMMANDS
48917 $ $0 $@
48918
48919 on `(hostname || uname -n) 2>/dev/null | sed 1q`
48920 "
48921
48922 _ACEOF
48923
48924 case $ac_config_files in *"
48925 "*) set x $ac_config_files; shift; ac_config_files=$*;;
48926 esac
48927
48928 case $ac_config_headers in *"
48929 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
48930 esac
48931
48932
48933 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
48934 # Files that config.status was made for.
48935 config_files="$ac_config_files"
48936 config_headers="$ac_config_headers"
48937 config_commands="$ac_config_commands"
48938
48939 _ACEOF
48940
48941 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
48942 ac_cs_usage="\
48943 \`$as_me' instantiates files from templates according to the
48944 current configuration.
48945
48946 Usage: $0 [OPTION]... [FILE]...
48947
48948 -h, --help print this help, then exit
48949 -V, --version print version number and configuration settings, then exit
48950 -q, --quiet, --silent
48951 do not print progress messages
48952 -d, --debug don't remove temporary files
48953 --recheck update $as_me by reconfiguring in the same conditions
48954 --file=FILE[:TEMPLATE]
48955 instantiate the configuration file FILE
48956 --header=FILE[:TEMPLATE]
48957 instantiate the configuration header FILE
48958
48959 Configuration files:
48960 $config_files
48961
48962 Configuration headers:
48963 $config_headers
48964
48965 Configuration commands:
48966 $config_commands
48967
48968 Report bugs to <bug-autoconf@gnu.org>."
48969
48970 _ACEOF
48971 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
48972 ac_cs_version="\\
48973 zfs config.status 0.7.9
48974 configured by $0, generated by GNU Autoconf 2.63,
48975 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
48976
48977 Copyright (C) 2008 Free Software Foundation, Inc.
48978 This config.status script is free software; the Free Software Foundation
48979 gives unlimited permission to copy, distribute and modify it."
48980
48981 ac_pwd='$ac_pwd'
48982 srcdir='$srcdir'
48983 INSTALL='$INSTALL'
48984 MKDIR_P='$MKDIR_P'
48985 AWK='$AWK'
48986 test -n "\$AWK" || AWK=awk
48987 _ACEOF
48988
48989 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
48990 # The default lists apply if the user does not specify any file.
48991 ac_need_defaults=:
48992 while test $# != 0
48993 do
48994 case $1 in
48995 --*=*)
48996 ac_option=`expr "X$1" : 'X\([^=]*\)='`
48997 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
48998 ac_shift=:
48999 ;;
49000 *)
49001 ac_option=$1
49002 ac_optarg=$2
49003 ac_shift=shift
49004 ;;
49005 esac
49006
49007 case $ac_option in
49008 # Handling of the options.
49009 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
49010 ac_cs_recheck=: ;;
49011 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
49012 $as_echo "$ac_cs_version"; exit ;;
49013 --debug | --debu | --deb | --de | --d | -d )
49014 debug=: ;;
49015 --file | --fil | --fi | --f )
49016 $ac_shift
49017 case $ac_optarg in
49018 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
49019 esac
49020 CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
49021 ac_need_defaults=false;;
49022 --header | --heade | --head | --hea )
49023 $ac_shift
49024 case $ac_optarg in
49025 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
49026 esac
49027 CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
49028 ac_need_defaults=false;;
49029 --he | --h)
49030 # Conflict between --help and --header
49031 { $as_echo "$as_me: error: ambiguous option: $1
49032 Try \`$0 --help' for more information." >&2
49033 { (exit 1); exit 1; }; };;
49034 --help | --hel | -h )
49035 $as_echo "$ac_cs_usage"; exit ;;
49036 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
49037 | -silent | --silent | --silen | --sile | --sil | --si | --s)
49038 ac_cs_silent=: ;;
49039
49040 # This is an error.
49041 -*) { $as_echo "$as_me: error: unrecognized option: $1
49042 Try \`$0 --help' for more information." >&2
49043 { (exit 1); exit 1; }; } ;;
49044
49045 *) ac_config_targets="$ac_config_targets $1"
49046 ac_need_defaults=false ;;
49047
49048 esac
49049 shift
49050 done
49051
49052 ac_configure_extra_args=
49053
49054 if $ac_cs_silent; then
49055 exec 6>/dev/null
49056 ac_configure_extra_args="$ac_configure_extra_args --silent"
49057 fi
49058
49059 _ACEOF
49060 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
49061 if \$ac_cs_recheck; then
49062 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
49063 shift
49064 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
49065 CONFIG_SHELL='$SHELL'
49066 export CONFIG_SHELL
49067 exec "\$@"
49068 fi
49069
49070 _ACEOF
49071 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
49072 exec 5>>config.log
49073 {
49074 echo
49075 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
49076 ## Running $as_me. ##
49077 _ASBOX
49078 $as_echo "$ac_log"
49079 } >&5
49080
49081 _ACEOF
49082 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
49083 #
49084 # INIT-COMMANDS
49085 #
49086 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
49087
49088
49089 # The HP-UX ksh and POSIX shell print the target directory to stdout
49090 # if CDPATH is set.
49091 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
49092
49093 sed_quote_subst='$sed_quote_subst'
49094 double_quote_subst='$double_quote_subst'
49095 delay_variable_subst='$delay_variable_subst'
49096 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
49097 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
49098 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
49099 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
49100 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
49101 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
49102 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
49103 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
49104 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
49105 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
49106 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
49107 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
49108 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
49109 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
49110 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
49111 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
49112 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
49113 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
49114 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
49115 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
49116 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
49117 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
49118 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
49119 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
49120 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
49121 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
49122 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
49123 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
49124 OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
49125 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
49126 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
49127 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
49128 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
49129 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
49130 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
49131 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
49132 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
49133 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
49134 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
49135 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
49136 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
49137 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
49138 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
49139 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
49140 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"`'
49141 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"`'
49142 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
49143 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
49144 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
49145 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
49146 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
49147 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
49148 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
49149 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
49150 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
49151 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
49152 DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
49153 NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
49154 LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
49155 OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
49156 OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
49157 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
49158 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
49159 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
49160 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
49161 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
49162 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
49163 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
49164 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
49165 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
49166 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
49167 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
49168 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
49169 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
49170 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
49171 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
49172 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
49173 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
49174 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
49175 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
49176 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
49177 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
49178 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
49179 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
49180 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
49181 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
49182 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
49183 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
49184 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
49185 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
49186 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
49187 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
49188 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
49189 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
49190 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
49191 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
49192 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
49193 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
49194 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
49195 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
49196 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
49197 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
49198 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
49199 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
49200 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
49201 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
49202 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
49203 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
49204 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
49205 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
49206 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
49207 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
49208 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
49209 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
49210 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
49211 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
49212 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
49213 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
49214
49215 LTCC='$LTCC'
49216 LTCFLAGS='$LTCFLAGS'
49217 compiler='$compiler_DEFAULT'
49218
49219 # Quote evaled strings.
49220 for var in SED \
49221 GREP \
49222 EGREP \
49223 FGREP \
49224 LD \
49225 NM \
49226 LN_S \
49227 lt_SP2NL \
49228 lt_NL2SP \
49229 reload_flag \
49230 OBJDUMP \
49231 deplibs_check_method \
49232 file_magic_cmd \
49233 AR \
49234 AR_FLAGS \
49235 STRIP \
49236 RANLIB \
49237 CC \
49238 CFLAGS \
49239 compiler \
49240 lt_cv_sys_global_symbol_pipe \
49241 lt_cv_sys_global_symbol_to_cdecl \
49242 lt_cv_sys_global_symbol_to_c_name_address \
49243 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
49244 SHELL \
49245 ECHO \
49246 lt_prog_compiler_no_builtin_flag \
49247 lt_prog_compiler_wl \
49248 lt_prog_compiler_pic \
49249 lt_prog_compiler_static \
49250 lt_cv_prog_compiler_c_o \
49251 need_locks \
49252 DSYMUTIL \
49253 NMEDIT \
49254 LIPO \
49255 OTOOL \
49256 OTOOL64 \
49257 shrext_cmds \
49258 export_dynamic_flag_spec \
49259 whole_archive_flag_spec \
49260 compiler_needs_object \
49261 with_gnu_ld \
49262 allow_undefined_flag \
49263 no_undefined_flag \
49264 hardcode_libdir_flag_spec \
49265 hardcode_libdir_flag_spec_ld \
49266 hardcode_libdir_separator \
49267 fix_srcfile_path \
49268 exclude_expsyms \
49269 include_expsyms \
49270 file_list_spec \
49271 variables_saved_for_relink \
49272 libname_spec \
49273 library_names_spec \
49274 soname_spec \
49275 finish_eval \
49276 old_striplib \
49277 striplib; do
49278 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
49279 *[\\\\\\\`\\"\\\$]*)
49280 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
49281 ;;
49282 *)
49283 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
49284 ;;
49285 esac
49286 done
49287
49288 # Double-quote double-evaled strings.
49289 for var in reload_cmds \
49290 old_postinstall_cmds \
49291 old_postuninstall_cmds \
49292 old_archive_cmds \
49293 extract_expsyms_cmds \
49294 old_archive_from_new_cmds \
49295 old_archive_from_expsyms_cmds \
49296 archive_cmds \
49297 archive_expsym_cmds \
49298 module_cmds \
49299 module_expsym_cmds \
49300 export_symbols_cmds \
49301 prelink_cmds \
49302 postinstall_cmds \
49303 postuninstall_cmds \
49304 finish_cmds \
49305 sys_lib_search_path_spec \
49306 sys_lib_dlsearch_path_spec; do
49307 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
49308 *[\\\\\\\`\\"\\\$]*)
49309 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
49310 ;;
49311 *)
49312 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
49313 ;;
49314 esac
49315 done
49316
49317 # Fix-up fallback echo if it was mangled by the above quoting rules.
49318 case \$lt_ECHO in
49319 *'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
49320 ;;
49321 esac
49322
49323 ac_aux_dir='$ac_aux_dir'
49324 xsi_shell='$xsi_shell'
49325 lt_shell_append='$lt_shell_append'
49326
49327 # See if we are running on zsh, and set the options which allow our
49328 # commands through without removal of \ escapes INIT.
49329 if test -n "\${ZSH_VERSION+set}" ; then
49330 setopt NO_GLOB_SUBST
49331 fi
49332
49333
49334 PACKAGE='$PACKAGE'
49335 VERSION='$VERSION'
49336 TIMESTAMP='$TIMESTAMP'
49337 RM='$RM'
49338 ofile='$ofile'
49339
49340
49341
49342
49343 _ACEOF
49344
49345 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
49346
49347 # Handling of arguments.
49348 for ac_config_target in $ac_config_targets
49349 do
49350 case $ac_config_target in
49351 "zfs_config.h") CONFIG_HEADERS="$CONFIG_HEADERS zfs_config.h" ;;
49352 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
49353 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
49354 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
49355 "udev/Makefile") CONFIG_FILES="$CONFIG_FILES udev/Makefile" ;;
49356 "udev/rules.d/Makefile") CONFIG_FILES="$CONFIG_FILES udev/rules.d/Makefile" ;;
49357 "etc/Makefile") CONFIG_FILES="$CONFIG_FILES etc/Makefile" ;;
49358 "etc/init.d/Makefile") CONFIG_FILES="$CONFIG_FILES etc/init.d/Makefile" ;;
49359 "etc/zfs/Makefile") CONFIG_FILES="$CONFIG_FILES etc/zfs/Makefile" ;;
49360 "etc/systemd/Makefile") CONFIG_FILES="$CONFIG_FILES etc/systemd/Makefile" ;;
49361 "etc/systemd/system/Makefile") CONFIG_FILES="$CONFIG_FILES etc/systemd/system/Makefile" ;;
49362 "etc/sudoers.d/Makefile") CONFIG_FILES="$CONFIG_FILES etc/sudoers.d/Makefile" ;;
49363 "etc/modules-load.d/Makefile") CONFIG_FILES="$CONFIG_FILES etc/modules-load.d/Makefile" ;;
49364 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
49365 "man/man1/Makefile") CONFIG_FILES="$CONFIG_FILES man/man1/Makefile" ;;
49366 "man/man5/Makefile") CONFIG_FILES="$CONFIG_FILES man/man5/Makefile" ;;
49367 "man/man8/Makefile") CONFIG_FILES="$CONFIG_FILES man/man8/Makefile" ;;
49368 "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
49369 "lib/libspl/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libspl/Makefile" ;;
49370 "lib/libspl/asm-generic/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libspl/asm-generic/Makefile" ;;
49371 "lib/libspl/asm-i386/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libspl/asm-i386/Makefile" ;;
49372 "lib/libspl/asm-x86_64/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libspl/asm-x86_64/Makefile" ;;
49373 "lib/libspl/include/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libspl/include/Makefile" ;;
49374 "lib/libspl/include/ia32/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libspl/include/ia32/Makefile" ;;
49375 "lib/libspl/include/ia32/sys/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libspl/include/ia32/sys/Makefile" ;;
49376 "lib/libspl/include/rpc/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libspl/include/rpc/Makefile" ;;
49377 "lib/libspl/include/sys/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libspl/include/sys/Makefile" ;;
49378 "lib/libspl/include/sys/dktp/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libspl/include/sys/dktp/Makefile" ;;
49379 "lib/libspl/include/util/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libspl/include/util/Makefile" ;;
49380 "lib/libavl/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libavl/Makefile" ;;
49381 "lib/libefi/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libefi/Makefile" ;;
49382 "lib/libicp/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libicp/Makefile" ;;
49383 "lib/libnvpair/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libnvpair/Makefile" ;;
49384 "lib/libunicode/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libunicode/Makefile" ;;
49385 "lib/libuutil/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libuutil/Makefile" ;;
49386 "lib/libzpool/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libzpool/Makefile" ;;
49387 "lib/libzfs/libzfs.pc") CONFIG_FILES="$CONFIG_FILES lib/libzfs/libzfs.pc" ;;
49388 "lib/libzfs/libzfs_core.pc") CONFIG_FILES="$CONFIG_FILES lib/libzfs/libzfs_core.pc" ;;
49389 "lib/libzfs/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libzfs/Makefile" ;;
49390 "lib/libzfs_core/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libzfs_core/Makefile" ;;
49391 "lib/libshare/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libshare/Makefile" ;;
49392 "cmd/Makefile") CONFIG_FILES="$CONFIG_FILES cmd/Makefile" ;;
49393 "cmd/zdb/Makefile") CONFIG_FILES="$CONFIG_FILES cmd/zdb/Makefile" ;;
49394 "cmd/zhack/Makefile") CONFIG_FILES="$CONFIG_FILES cmd/zhack/Makefile" ;;
49395 "cmd/zfs/Makefile") CONFIG_FILES="$CONFIG_FILES cmd/zfs/Makefile" ;;
49396 "cmd/zinject/Makefile") CONFIG_FILES="$CONFIG_FILES cmd/zinject/Makefile" ;;
49397 "cmd/zpool/Makefile") CONFIG_FILES="$CONFIG_FILES cmd/zpool/Makefile" ;;
49398 "cmd/zstreamdump/Makefile") CONFIG_FILES="$CONFIG_FILES cmd/zstreamdump/Makefile" ;;
49399 "cmd/ztest/Makefile") CONFIG_FILES="$CONFIG_FILES cmd/ztest/Makefile" ;;
49400 "cmd/zpios/Makefile") CONFIG_FILES="$CONFIG_FILES cmd/zpios/Makefile" ;;
49401 "cmd/mount_zfs/Makefile") CONFIG_FILES="$CONFIG_FILES cmd/mount_zfs/Makefile" ;;
49402 "cmd/fsck_zfs/Makefile") CONFIG_FILES="$CONFIG_FILES cmd/fsck_zfs/Makefile" ;;
49403 "cmd/zvol_id/Makefile") CONFIG_FILES="$CONFIG_FILES cmd/zvol_id/Makefile" ;;
49404 "cmd/vdev_id/Makefile") CONFIG_FILES="$CONFIG_FILES cmd/vdev_id/Makefile" ;;
49405 "cmd/arcstat/Makefile") CONFIG_FILES="$CONFIG_FILES cmd/arcstat/Makefile" ;;
49406 "cmd/dbufstat/Makefile") CONFIG_FILES="$CONFIG_FILES cmd/dbufstat/Makefile" ;;
49407 "cmd/arc_summary/Makefile") CONFIG_FILES="$CONFIG_FILES cmd/arc_summary/Makefile" ;;
49408 "cmd/zed/Makefile") CONFIG_FILES="$CONFIG_FILES cmd/zed/Makefile" ;;
49409 "cmd/raidz_test/Makefile") CONFIG_FILES="$CONFIG_FILES cmd/raidz_test/Makefile" ;;
49410 "cmd/zgenhostid/Makefile") CONFIG_FILES="$CONFIG_FILES cmd/zgenhostid/Makefile" ;;
49411 "contrib/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/Makefile" ;;
49412 "contrib/bash_completion.d/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/bash_completion.d/Makefile" ;;
49413 "contrib/dracut/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/dracut/Makefile" ;;
49414 "contrib/dracut/02zfsexpandknowledge/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/dracut/02zfsexpandknowledge/Makefile" ;;
49415 "contrib/dracut/90zfs/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/dracut/90zfs/Makefile" ;;
49416 "contrib/initramfs/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/initramfs/Makefile" ;;
49417 "module/Makefile") CONFIG_FILES="$CONFIG_FILES module/Makefile" ;;
49418 "module/avl/Makefile") CONFIG_FILES="$CONFIG_FILES module/avl/Makefile" ;;
49419 "module/nvpair/Makefile") CONFIG_FILES="$CONFIG_FILES module/nvpair/Makefile" ;;
49420 "module/unicode/Makefile") CONFIG_FILES="$CONFIG_FILES module/unicode/Makefile" ;;
49421 "module/zcommon/Makefile") CONFIG_FILES="$CONFIG_FILES module/zcommon/Makefile" ;;
49422 "module/zfs/Makefile") CONFIG_FILES="$CONFIG_FILES module/zfs/Makefile" ;;
49423 "module/zpios/Makefile") CONFIG_FILES="$CONFIG_FILES module/zpios/Makefile" ;;
49424 "module/icp/Makefile") CONFIG_FILES="$CONFIG_FILES module/icp/Makefile" ;;
49425 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
49426 "include/linux/Makefile") CONFIG_FILES="$CONFIG_FILES include/linux/Makefile" ;;
49427 "include/sys/Makefile") CONFIG_FILES="$CONFIG_FILES include/sys/Makefile" ;;
49428 "include/sys/fs/Makefile") CONFIG_FILES="$CONFIG_FILES include/sys/fs/Makefile" ;;
49429 "include/sys/fm/Makefile") CONFIG_FILES="$CONFIG_FILES include/sys/fm/Makefile" ;;
49430 "include/sys/fm/fs/Makefile") CONFIG_FILES="$CONFIG_FILES include/sys/fm/fs/Makefile" ;;
49431 "include/sys/crypto/Makefile") CONFIG_FILES="$CONFIG_FILES include/sys/crypto/Makefile" ;;
49432 "include/sys/sysevent/Makefile") CONFIG_FILES="$CONFIG_FILES include/sys/sysevent/Makefile" ;;
49433 "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
49434 "scripts/zpios-profile/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/zpios-profile/Makefile" ;;
49435 "scripts/zpios-test/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/zpios-test/Makefile" ;;
49436 "scripts/zpool-config/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/zpool-config/Makefile" ;;
49437 "scripts/common.sh") CONFIG_FILES="$CONFIG_FILES scripts/common.sh" ;;
49438 "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
49439 "tests/test-runner/Makefile") CONFIG_FILES="$CONFIG_FILES tests/test-runner/Makefile" ;;
49440 "tests/test-runner/cmd/Makefile") CONFIG_FILES="$CONFIG_FILES tests/test-runner/cmd/Makefile" ;;
49441 "tests/test-runner/include/Makefile") CONFIG_FILES="$CONFIG_FILES tests/test-runner/include/Makefile" ;;
49442 "tests/test-runner/man/Makefile") CONFIG_FILES="$CONFIG_FILES tests/test-runner/man/Makefile" ;;
49443 "tests/runfiles/Makefile") CONFIG_FILES="$CONFIG_FILES tests/runfiles/Makefile" ;;
49444 "tests/zfs-tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/Makefile" ;;
49445 "tests/zfs-tests/callbacks/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/callbacks/Makefile" ;;
49446 "tests/zfs-tests/cmd/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/cmd/Makefile" ;;
49447 "tests/zfs-tests/cmd/chg_usr_exec/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/cmd/chg_usr_exec/Makefile" ;;
49448 "tests/zfs-tests/cmd/user_ns_exec/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/cmd/user_ns_exec/Makefile" ;;
49449 "tests/zfs-tests/cmd/devname2devid/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/cmd/devname2devid/Makefile" ;;
49450 "tests/zfs-tests/cmd/dir_rd_update/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/cmd/dir_rd_update/Makefile" ;;
49451 "tests/zfs-tests/cmd/file_check/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/cmd/file_check/Makefile" ;;
49452 "tests/zfs-tests/cmd/file_trunc/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/cmd/file_trunc/Makefile" ;;
49453 "tests/zfs-tests/cmd/file_write/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/cmd/file_write/Makefile" ;;
49454 "tests/zfs-tests/cmd/largest_file/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/cmd/largest_file/Makefile" ;;
49455 "tests/zfs-tests/cmd/mkbusy/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/cmd/mkbusy/Makefile" ;;
49456 "tests/zfs-tests/cmd/mkfile/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/cmd/mkfile/Makefile" ;;
49457 "tests/zfs-tests/cmd/mkfiles/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/cmd/mkfiles/Makefile" ;;
49458 "tests/zfs-tests/cmd/mktree/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/cmd/mktree/Makefile" ;;
49459 "tests/zfs-tests/cmd/mmap_exec/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/cmd/mmap_exec/Makefile" ;;
49460 "tests/zfs-tests/cmd/mmap_libaio/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/cmd/mmap_libaio/Makefile" ;;
49461 "tests/zfs-tests/cmd/mmapwrite/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/cmd/mmapwrite/Makefile" ;;
49462 "tests/zfs-tests/cmd/randfree_file/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/cmd/randfree_file/Makefile" ;;
49463 "tests/zfs-tests/cmd/readmmap/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/cmd/readmmap/Makefile" ;;
49464 "tests/zfs-tests/cmd/rename_dir/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/cmd/rename_dir/Makefile" ;;
49465 "tests/zfs-tests/cmd/rm_lnkcnt_zero_file/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/cmd/rm_lnkcnt_zero_file/Makefile" ;;
49466 "tests/zfs-tests/cmd/threadsappend/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/cmd/threadsappend/Makefile" ;;
49467 "tests/zfs-tests/cmd/xattrtest/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/cmd/xattrtest/Makefile" ;;
49468 "tests/zfs-tests/include/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/include/Makefile" ;;
49469 "tests/zfs-tests/include/default.cfg") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/include/default.cfg" ;;
49470 "tests/zfs-tests/tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/Makefile" ;;
49471 "tests/zfs-tests/tests/functional/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/Makefile" ;;
49472 "tests/zfs-tests/tests/functional/acl/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/acl/Makefile" ;;
49473 "tests/zfs-tests/tests/functional/acl/posix/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/acl/posix/Makefile" ;;
49474 "tests/zfs-tests/tests/functional/atime/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/atime/Makefile" ;;
49475 "tests/zfs-tests/tests/functional/bootfs/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/bootfs/Makefile" ;;
49476 "tests/zfs-tests/tests/functional/cache/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/cache/Makefile" ;;
49477 "tests/zfs-tests/tests/functional/cachefile/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/cachefile/Makefile" ;;
49478 "tests/zfs-tests/tests/functional/casenorm/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/casenorm/Makefile" ;;
49479 "tests/zfs-tests/tests/functional/checksum/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/checksum/Makefile" ;;
49480 "tests/zfs-tests/tests/functional/chattr/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/chattr/Makefile" ;;
49481 "tests/zfs-tests/tests/functional/clean_mirror/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/clean_mirror/Makefile" ;;
49482 "tests/zfs-tests/tests/functional/cli_root/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/cli_root/Makefile" ;;
49483 "tests/zfs-tests/tests/functional/cli_root/zdb/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/cli_root/zdb/Makefile" ;;
49484 "tests/zfs-tests/tests/functional/cli_root/zfs_clone/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/cli_root/zfs_clone/Makefile" ;;
49485 "tests/zfs-tests/tests/functional/cli_root/zfs_copies/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/cli_root/zfs_copies/Makefile" ;;
49486 "tests/zfs-tests/tests/functional/cli_root/zfs_create/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/cli_root/zfs_create/Makefile" ;;
49487 "tests/zfs-tests/tests/functional/cli_root/zfs_destroy/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/cli_root/zfs_destroy/Makefile" ;;
49488 "tests/zfs-tests/tests/functional/cli_root/zfs_get/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/cli_root/zfs_get/Makefile" ;;
49489 "tests/zfs-tests/tests/functional/cli_root/zfs_inherit/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/cli_root/zfs_inherit/Makefile" ;;
49490 "tests/zfs-tests/tests/functional/cli_root/zfs/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/cli_root/zfs/Makefile" ;;
49491 "tests/zfs-tests/tests/functional/cli_root/zfs_mount/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/cli_root/zfs_mount/Makefile" ;;
49492 "tests/zfs-tests/tests/functional/cli_root/zfs_promote/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/cli_root/zfs_promote/Makefile" ;;
49493 "tests/zfs-tests/tests/functional/cli_root/zfs_property/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/cli_root/zfs_property/Makefile" ;;
49494 "tests/zfs-tests/tests/functional/cli_root/zfs_receive/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/cli_root/zfs_receive/Makefile" ;;
49495 "tests/zfs-tests/tests/functional/cli_root/zfs_rename/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/cli_root/zfs_rename/Makefile" ;;
49496 "tests/zfs-tests/tests/functional/cli_root/zfs_reservation/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/cli_root/zfs_reservation/Makefile" ;;
49497 "tests/zfs-tests/tests/functional/cli_root/zfs_rollback/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/cli_root/zfs_rollback/Makefile" ;;
49498 "tests/zfs-tests/tests/functional/cli_root/zfs_send/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/cli_root/zfs_send/Makefile" ;;
49499 "tests/zfs-tests/tests/functional/cli_root/zfs_set/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/cli_root/zfs_set/Makefile" ;;
49500 "tests/zfs-tests/tests/functional/cli_root/zfs_share/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/cli_root/zfs_share/Makefile" ;;
49501 "tests/zfs-tests/tests/functional/cli_root/zfs_snapshot/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/cli_root/zfs_snapshot/Makefile" ;;
49502 "tests/zfs-tests/tests/functional/cli_root/zfs_unmount/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/cli_root/zfs_unmount/Makefile" ;;
49503 "tests/zfs-tests/tests/functional/cli_root/zfs_unshare/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/cli_root/zfs_unshare/Makefile" ;;
49504 "tests/zfs-tests/tests/functional/cli_root/zfs_upgrade/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/cli_root/zfs_upgrade/Makefile" ;;
49505 "tests/zfs-tests/tests/functional/cli_root/zpool_add/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/cli_root/zpool_add/Makefile" ;;
49506 "tests/zfs-tests/tests/functional/cli_root/zpool_attach/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/cli_root/zpool_attach/Makefile" ;;
49507 "tests/zfs-tests/tests/functional/cli_root/zpool_clear/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/cli_root/zpool_clear/Makefile" ;;
49508 "tests/zfs-tests/tests/functional/cli_root/zpool_create/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/cli_root/zpool_create/Makefile" ;;
49509 "tests/zfs-tests/tests/functional/cli_root/zpool_destroy/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/cli_root/zpool_destroy/Makefile" ;;
49510 "tests/zfs-tests/tests/functional/cli_root/zpool_detach/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/cli_root/zpool_detach/Makefile" ;;
49511 "tests/zfs-tests/tests/functional/cli_root/zpool_expand/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/cli_root/zpool_expand/Makefile" ;;
49512 "tests/zfs-tests/tests/functional/cli_root/zpool_export/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/cli_root/zpool_export/Makefile" ;;
49513 "tests/zfs-tests/tests/functional/cli_root/zpool_get/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/cli_root/zpool_get/Makefile" ;;
49514 "tests/zfs-tests/tests/functional/cli_root/zpool_history/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/cli_root/zpool_history/Makefile" ;;
49515 "tests/zfs-tests/tests/functional/cli_root/zpool_import/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/cli_root/zpool_import/Makefile" ;;
49516 "tests/zfs-tests/tests/functional/cli_root/zpool_labelclear/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/cli_root/zpool_labelclear/Makefile" ;;
49517 "tests/zfs-tests/tests/functional/cli_root/zpool/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/cli_root/zpool/Makefile" ;;
49518 "tests/zfs-tests/tests/functional/cli_root/zpool_offline/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/cli_root/zpool_offline/Makefile" ;;
49519 "tests/zfs-tests/tests/functional/cli_root/zpool_online/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/cli_root/zpool_online/Makefile" ;;
49520 "tests/zfs-tests/tests/functional/cli_root/zpool_remove/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/cli_root/zpool_remove/Makefile" ;;
49521 "tests/zfs-tests/tests/functional/cli_root/zpool_replace/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/cli_root/zpool_replace/Makefile" ;;
49522 "tests/zfs-tests/tests/functional/cli_root/zpool_scrub/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/cli_root/zpool_scrub/Makefile" ;;
49523 "tests/zfs-tests/tests/functional/cli_root/zpool_set/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/cli_root/zpool_set/Makefile" ;;
49524 "tests/zfs-tests/tests/functional/cli_root/zpool_status/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/cli_root/zpool_status/Makefile" ;;
49525 "tests/zfs-tests/tests/functional/cli_root/zpool_sync/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/cli_root/zpool_sync/Makefile" ;;
49526 "tests/zfs-tests/tests/functional/cli_root/zpool_upgrade/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/cli_root/zpool_upgrade/Makefile" ;;
49527 "tests/zfs-tests/tests/functional/cli_user/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/cli_user/Makefile" ;;
49528 "tests/zfs-tests/tests/functional/cli_user/misc/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/cli_user/misc/Makefile" ;;
49529 "tests/zfs-tests/tests/functional/cli_user/zfs_list/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/cli_user/zfs_list/Makefile" ;;
49530 "tests/zfs-tests/tests/functional/cli_user/zpool_iostat/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/cli_user/zpool_iostat/Makefile" ;;
49531 "tests/zfs-tests/tests/functional/cli_user/zpool_list/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/cli_user/zpool_list/Makefile" ;;
49532 "tests/zfs-tests/tests/functional/compression/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/compression/Makefile" ;;
49533 "tests/zfs-tests/tests/functional/ctime/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/ctime/Makefile" ;;
49534 "tests/zfs-tests/tests/functional/delegate/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/delegate/Makefile" ;;
49535 "tests/zfs-tests/tests/functional/devices/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/devices/Makefile" ;;
49536 "tests/zfs-tests/tests/functional/events/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/events/Makefile" ;;
49537 "tests/zfs-tests/tests/functional/exec/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/exec/Makefile" ;;
49538 "tests/zfs-tests/tests/functional/fault/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/fault/Makefile" ;;
49539 "tests/zfs-tests/tests/functional/features/async_destroy/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/features/async_destroy/Makefile" ;;
49540 "tests/zfs-tests/tests/functional/features/large_dnode/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/features/large_dnode/Makefile" ;;
49541 "tests/zfs-tests/tests/functional/features/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/features/Makefile" ;;
49542 "tests/zfs-tests/tests/functional/grow_pool/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/grow_pool/Makefile" ;;
49543 "tests/zfs-tests/tests/functional/grow_replicas/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/grow_replicas/Makefile" ;;
49544 "tests/zfs-tests/tests/functional/history/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/history/Makefile" ;;
49545 "tests/zfs-tests/tests/functional/inheritance/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/inheritance/Makefile" ;;
49546 "tests/zfs-tests/tests/functional/inuse/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/inuse/Makefile" ;;
49547 "tests/zfs-tests/tests/functional/large_files/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/large_files/Makefile" ;;
49548 "tests/zfs-tests/tests/functional/largest_pool/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/largest_pool/Makefile" ;;
49549 "tests/zfs-tests/tests/functional/link_count/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/link_count/Makefile" ;;
49550 "tests/zfs-tests/tests/functional/libzfs/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/libzfs/Makefile" ;;
49551 "tests/zfs-tests/tests/functional/migration/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/migration/Makefile" ;;
49552 "tests/zfs-tests/tests/functional/mmap/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/mmap/Makefile" ;;
49553 "tests/zfs-tests/tests/functional/mmp/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/mmp/Makefile" ;;
49554 "tests/zfs-tests/tests/functional/mount/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/mount/Makefile" ;;
49555 "tests/zfs-tests/tests/functional/mv_files/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/mv_files/Makefile" ;;
49556 "tests/zfs-tests/tests/functional/nestedfs/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/nestedfs/Makefile" ;;
49557 "tests/zfs-tests/tests/functional/no_space/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/no_space/Makefile" ;;
49558 "tests/zfs-tests/tests/functional/nopwrite/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/nopwrite/Makefile" ;;
49559 "tests/zfs-tests/tests/functional/online_offline/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/online_offline/Makefile" ;;
49560 "tests/zfs-tests/tests/functional/pool_names/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/pool_names/Makefile" ;;
49561 "tests/zfs-tests/tests/functional/poolversion/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/poolversion/Makefile" ;;
49562 "tests/zfs-tests/tests/functional/privilege/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/privilege/Makefile" ;;
49563 "tests/zfs-tests/tests/functional/quota/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/quota/Makefile" ;;
49564 "tests/zfs-tests/tests/functional/raidz/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/raidz/Makefile" ;;
49565 "tests/zfs-tests/tests/functional/redundancy/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/redundancy/Makefile" ;;
49566 "tests/zfs-tests/tests/functional/refquota/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/refquota/Makefile" ;;
49567 "tests/zfs-tests/tests/functional/refreserv/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/refreserv/Makefile" ;;
49568 "tests/zfs-tests/tests/functional/rename_dirs/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/rename_dirs/Makefile" ;;
49569 "tests/zfs-tests/tests/functional/replacement/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/replacement/Makefile" ;;
49570 "tests/zfs-tests/tests/functional/reservation/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/reservation/Makefile" ;;
49571 "tests/zfs-tests/tests/functional/rootpool/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/rootpool/Makefile" ;;
49572 "tests/zfs-tests/tests/functional/rsend/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/rsend/Makefile" ;;
49573 "tests/zfs-tests/tests/functional/scrub_mirror/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/scrub_mirror/Makefile" ;;
49574 "tests/zfs-tests/tests/functional/slog/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/slog/Makefile" ;;
49575 "tests/zfs-tests/tests/functional/snapshot/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/snapshot/Makefile" ;;
49576 "tests/zfs-tests/tests/functional/snapused/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/snapused/Makefile" ;;
49577 "tests/zfs-tests/tests/functional/sparse/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/sparse/Makefile" ;;
49578 "tests/zfs-tests/tests/functional/threadsappend/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/threadsappend/Makefile" ;;
49579 "tests/zfs-tests/tests/functional/tmpfile/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/tmpfile/Makefile" ;;
49580 "tests/zfs-tests/tests/functional/truncate/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/truncate/Makefile" ;;
49581 "tests/zfs-tests/tests/functional/user_namespace/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/user_namespace/Makefile" ;;
49582 "tests/zfs-tests/tests/functional/userquota/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/userquota/Makefile" ;;
49583 "tests/zfs-tests/tests/functional/upgrade/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/upgrade/Makefile" ;;
49584 "tests/zfs-tests/tests/functional/vdev_zaps/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/vdev_zaps/Makefile" ;;
49585 "tests/zfs-tests/tests/functional/write_dirs/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/write_dirs/Makefile" ;;
49586 "tests/zfs-tests/tests/functional/xattr/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/xattr/Makefile" ;;
49587 "tests/zfs-tests/tests/functional/zvol/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/zvol/Makefile" ;;
49588 "tests/zfs-tests/tests/functional/zvol/zvol_cli/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/zvol/zvol_cli/Makefile" ;;
49589 "tests/zfs-tests/tests/functional/zvol/zvol_ENOSPC/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/zvol/zvol_ENOSPC/Makefile" ;;
49590 "tests/zfs-tests/tests/functional/zvol/zvol_misc/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/zvol/zvol_misc/Makefile" ;;
49591 "tests/zfs-tests/tests/functional/zvol/zvol_swap/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/zvol/zvol_swap/Makefile" ;;
49592 "tests/zfs-tests/tests/perf/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/perf/Makefile" ;;
49593 "tests/zfs-tests/tests/perf/fio/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/perf/fio/Makefile" ;;
49594 "tests/zfs-tests/tests/perf/regression/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/perf/regression/Makefile" ;;
49595 "tests/zfs-tests/tests/perf/scripts/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/perf/scripts/Makefile" ;;
49596 "tests/zfs-tests/tests/stress/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/stress/Makefile" ;;
49597 "rpm/Makefile") CONFIG_FILES="$CONFIG_FILES rpm/Makefile" ;;
49598 "rpm/redhat/Makefile") CONFIG_FILES="$CONFIG_FILES rpm/redhat/Makefile" ;;
49599 "rpm/redhat/zfs.spec") CONFIG_FILES="$CONFIG_FILES rpm/redhat/zfs.spec" ;;
49600 "rpm/redhat/zfs-kmod.spec") CONFIG_FILES="$CONFIG_FILES rpm/redhat/zfs-kmod.spec" ;;
49601 "rpm/redhat/zfs-dkms.spec") CONFIG_FILES="$CONFIG_FILES rpm/redhat/zfs-dkms.spec" ;;
49602 "rpm/generic/Makefile") CONFIG_FILES="$CONFIG_FILES rpm/generic/Makefile" ;;
49603 "rpm/generic/zfs.spec") CONFIG_FILES="$CONFIG_FILES rpm/generic/zfs.spec" ;;
49604 "rpm/generic/zfs-kmod.spec") CONFIG_FILES="$CONFIG_FILES rpm/generic/zfs-kmod.spec" ;;
49605 "rpm/generic/zfs-dkms.spec") CONFIG_FILES="$CONFIG_FILES rpm/generic/zfs-dkms.spec" ;;
49606 "zfs-script-config.sh") CONFIG_FILES="$CONFIG_FILES zfs-script-config.sh" ;;
49607 "zfs.release") CONFIG_FILES="$CONFIG_FILES zfs.release" ;;
49608
49609 *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
49610 $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
49611 { (exit 1); exit 1; }; };;
49612 esac
49613 done
49614
49615
49616 # If the user did not use the arguments to specify the items to instantiate,
49617 # then the envvar interface is used. Set only those that are not.
49618 # We use the long form for the default assignment because of an extremely
49619 # bizarre bug on SunOS 4.1.3.
49620 if $ac_need_defaults; then
49621 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
49622 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
49623 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
49624 fi
49625
49626 # Have a temporary directory for convenience. Make it in the build tree
49627 # simply because there is no reason against having it here, and in addition,
49628 # creating and moving files from /tmp can sometimes cause problems.
49629 # Hook for its removal unless debugging.
49630 # Note that there is a small window in which the directory will not be cleaned:
49631 # after its creation but before its name has been assigned to `$tmp'.
49632 $debug ||
49633 {
49634 tmp=
49635 trap 'exit_status=$?
49636 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
49637 ' 0
49638 trap '{ (exit 1); exit 1; }' 1 2 13 15
49639 }
49640 # Create a (secure) tmp directory for tmp files.
49641
49642 {
49643 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
49644 test -n "$tmp" && test -d "$tmp"
49645 } ||
49646 {
49647 tmp=./conf$$-$RANDOM
49648 (umask 077 && mkdir "$tmp")
49649 } ||
49650 {
49651 $as_echo "$as_me: cannot create a temporary directory in ." >&2
49652 { (exit 1); exit 1; }
49653 }
49654
49655 # Set up the scripts for CONFIG_FILES section.
49656 # No need to generate them if there are no CONFIG_FILES.
49657 # This happens for instance with `./config.status config.h'.
49658 if test -n "$CONFIG_FILES"; then
49659
49660
49661 ac_cr=' '
49662 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
49663 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
49664 ac_cs_awk_cr='\\r'
49665 else
49666 ac_cs_awk_cr=$ac_cr
49667 fi
49668
49669 echo 'BEGIN {' >"$tmp/subs1.awk" &&
49670 _ACEOF
49671
49672
49673 {
49674 echo "cat >conf$$subs.awk <<_ACEOF" &&
49675 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
49676 echo "_ACEOF"
49677 } >conf$$subs.sh ||
49678 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
49679 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
49680 { (exit 1); exit 1; }; }
49681 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
49682 ac_delim='%!_!# '
49683 for ac_last_try in false false false false false :; do
49684 . ./conf$$subs.sh ||
49685 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
49686 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
49687 { (exit 1); exit 1; }; }
49688
49689 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
49690 if test $ac_delim_n = $ac_delim_num; then
49691 break
49692 elif $ac_last_try; then
49693 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
49694 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
49695 { (exit 1); exit 1; }; }
49696 else
49697 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
49698 fi
49699 done
49700 rm -f conf$$subs.sh
49701
49702 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
49703 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
49704 _ACEOF
49705 sed -n '
49706 h
49707 s/^/S["/; s/!.*/"]=/
49708 p
49709 g
49710 s/^[^!]*!//
49711 :repl
49712 t repl
49713 s/'"$ac_delim"'$//
49714 t delim
49715 :nl
49716 h
49717 s/\(.\{148\}\).*/\1/
49718 t more1
49719 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
49720 p
49721 n
49722 b repl
49723 :more1
49724 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
49725 p
49726 g
49727 s/.\{148\}//
49728 t nl
49729 :delim
49730 h
49731 s/\(.\{148\}\).*/\1/
49732 t more2
49733 s/["\\]/\\&/g; s/^/"/; s/$/"/
49734 p
49735 b
49736 :more2
49737 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
49738 p
49739 g
49740 s/.\{148\}//
49741 t delim
49742 ' <conf$$subs.awk | sed '
49743 /^[^""]/{
49744 N
49745 s/\n//
49746 }
49747 ' >>$CONFIG_STATUS || ac_write_fail=1
49748 rm -f conf$$subs.awk
49749 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
49750 _ACAWK
49751 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
49752 for (key in S) S_is_set[key] = 1
49753 FS = "\a"
49754
49755 }
49756 {
49757 line = $ 0
49758 nfields = split(line, field, "@")
49759 substed = 0
49760 len = length(field[1])
49761 for (i = 2; i < nfields; i++) {
49762 key = field[i]
49763 keylen = length(key)
49764 if (S_is_set[key]) {
49765 value = S[key]
49766 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
49767 len += length(value) + length(field[++i])
49768 substed = 1
49769 } else
49770 len += 1 + keylen
49771 }
49772
49773 print line
49774 }
49775
49776 _ACAWK
49777 _ACEOF
49778 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
49779 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
49780 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
49781 else
49782 cat
49783 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
49784 || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
49785 $as_echo "$as_me: error: could not setup config files machinery" >&2;}
49786 { (exit 1); exit 1; }; }
49787 _ACEOF
49788
49789 # VPATH may cause trouble with some makes, so we remove $(srcdir),
49790 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
49791 # trailing colons and then remove the whole line if VPATH becomes empty
49792 # (actually we leave an empty line to preserve line numbers).
49793 if test "x$srcdir" = x.; then
49794 ac_vpsub='/^[ ]*VPATH[ ]*=/{
49795 s/:*\$(srcdir):*/:/
49796 s/:*\${srcdir}:*/:/
49797 s/:*@srcdir@:*/:/
49798 s/^\([^=]*=[ ]*\):*/\1/
49799 s/:*$//
49800 s/^[^=]*=[ ]*$//
49801 }'
49802 fi
49803
49804 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
49805 fi # test -n "$CONFIG_FILES"
49806
49807 # Set up the scripts for CONFIG_HEADERS section.
49808 # No need to generate them if there are no CONFIG_HEADERS.
49809 # This happens for instance with `./config.status Makefile'.
49810 if test -n "$CONFIG_HEADERS"; then
49811 cat >"$tmp/defines.awk" <<\_ACAWK ||
49812 BEGIN {
49813 _ACEOF
49814
49815 # Transform confdefs.h into an awk script `defines.awk', embedded as
49816 # here-document in config.status, that substitutes the proper values into
49817 # config.h.in to produce config.h.
49818
49819 # Create a delimiter string that does not exist in confdefs.h, to ease
49820 # handling of long lines.
49821 ac_delim='%!_!# '
49822 for ac_last_try in false false :; do
49823 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
49824 if test -z "$ac_t"; then
49825 break
49826 elif $ac_last_try; then
49827 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
49828 $as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
49829 { (exit 1); exit 1; }; }
49830 else
49831 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
49832 fi
49833 done
49834
49835 # For the awk script, D is an array of macro values keyed by name,
49836 # likewise P contains macro parameters if any. Preserve backslash
49837 # newline sequences.
49838
49839 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
49840 sed -n '
49841 s/.\{148\}/&'"$ac_delim"'/g
49842 t rset
49843 :rset
49844 s/^[ ]*#[ ]*define[ ][ ]*/ /
49845 t def
49846 d
49847 :def
49848 s/\\$//
49849 t bsnl
49850 s/["\\]/\\&/g
49851 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
49852 D["\1"]=" \3"/p
49853 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
49854 d
49855 :bsnl
49856 s/["\\]/\\&/g
49857 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
49858 D["\1"]=" \3\\\\\\n"\\/p
49859 t cont
49860 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
49861 t cont
49862 d
49863 :cont
49864 n
49865 s/.\{148\}/&'"$ac_delim"'/g
49866 t clear
49867 :clear
49868 s/\\$//
49869 t bsnlc
49870 s/["\\]/\\&/g; s/^/"/; s/$/"/p
49871 d
49872 :bsnlc
49873 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
49874 b cont
49875 ' <confdefs.h | sed '
49876 s/'"$ac_delim"'/"\\\
49877 "/g' >>$CONFIG_STATUS || ac_write_fail=1
49878
49879 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
49880 for (key in D) D_is_set[key] = 1
49881 FS = "\a"
49882 }
49883 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
49884 line = \$ 0
49885 split(line, arg, " ")
49886 if (arg[1] == "#") {
49887 defundef = arg[2]
49888 mac1 = arg[3]
49889 } else {
49890 defundef = substr(arg[1], 2)
49891 mac1 = arg[2]
49892 }
49893 split(mac1, mac2, "(") #)
49894 macro = mac2[1]
49895 prefix = substr(line, 1, index(line, defundef) - 1)
49896 if (D_is_set[macro]) {
49897 # Preserve the white space surrounding the "#".
49898 print prefix "define", macro P[macro] D[macro]
49899 next
49900 } else {
49901 # Replace #undef with comments. This is necessary, for example,
49902 # in the case of _POSIX_SOURCE, which is predefined and required
49903 # on some systems where configure will not decide to define it.
49904 if (defundef == "undef") {
49905 print "/*", prefix defundef, macro, "*/"
49906 next
49907 }
49908 }
49909 }
49910 { print }
49911 _ACAWK
49912 _ACEOF
49913 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
49914 { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
49915 $as_echo "$as_me: error: could not setup config headers machinery" >&2;}
49916 { (exit 1); exit 1; }; }
49917 fi # test -n "$CONFIG_HEADERS"
49918
49919
49920 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
49921 shift
49922 for ac_tag
49923 do
49924 case $ac_tag in
49925 :[FHLC]) ac_mode=$ac_tag; continue;;
49926 esac
49927 case $ac_mode$ac_tag in
49928 :[FHL]*:*);;
49929 :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
49930 $as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
49931 { (exit 1); exit 1; }; };;
49932 :[FH]-) ac_tag=-:-;;
49933 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
49934 esac
49935 ac_save_IFS=$IFS
49936 IFS=:
49937 set x $ac_tag
49938 IFS=$ac_save_IFS
49939 shift
49940 ac_file=$1
49941 shift
49942
49943 case $ac_mode in
49944 :L) ac_source=$1;;
49945 :[FH])
49946 ac_file_inputs=
49947 for ac_f
49948 do
49949 case $ac_f in
49950 -) ac_f="$tmp/stdin";;
49951 *) # Look for the file first in the build tree, then in the source tree
49952 # (if the path is not absolute). The absolute path cannot be DOS-style,
49953 # because $ac_f cannot contain `:'.
49954 test -f "$ac_f" ||
49955 case $ac_f in
49956 [\\/$]*) false;;
49957 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
49958 esac ||
49959 { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
49960 $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
49961 { (exit 1); exit 1; }; };;
49962 esac
49963 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
49964 ac_file_inputs="$ac_file_inputs '$ac_f'"
49965 done
49966
49967 # Let's still pretend it is `configure' which instantiates (i.e., don't
49968 # use $as_me), people would be surprised to read:
49969 # /* config.h. Generated by config.status. */
49970 configure_input='Generated from '`
49971 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
49972 `' by configure.'
49973 if test x"$ac_file" != x-; then
49974 configure_input="$ac_file. $configure_input"
49975 { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
49976 $as_echo "$as_me: creating $ac_file" >&6;}
49977 fi
49978 # Neutralize special characters interpreted by sed in replacement strings.
49979 case $configure_input in #(
49980 *\&* | *\|* | *\\* )
49981 ac_sed_conf_input=`$as_echo "$configure_input" |
49982 sed 's/[\\\\&|]/\\\\&/g'`;; #(
49983 *) ac_sed_conf_input=$configure_input;;
49984 esac
49985
49986 case $ac_tag in
49987 *:-:* | *:-) cat >"$tmp/stdin" \
49988 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
49989 $as_echo "$as_me: error: could not create $ac_file" >&2;}
49990 { (exit 1); exit 1; }; } ;;
49991 esac
49992 ;;
49993 esac
49994
49995 ac_dir=`$as_dirname -- "$ac_file" ||
49996 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
49997 X"$ac_file" : 'X\(//\)[^/]' \| \
49998 X"$ac_file" : 'X\(//\)$' \| \
49999 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
50000 $as_echo X"$ac_file" |
50001 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
50002 s//\1/
50003 q
50004 }
50005 /^X\(\/\/\)[^/].*/{
50006 s//\1/
50007 q
50008 }
50009 /^X\(\/\/\)$/{
50010 s//\1/
50011 q
50012 }
50013 /^X\(\/\).*/{
50014 s//\1/
50015 q
50016 }
50017 s/.*/./; q'`
50018 { as_dir="$ac_dir"
50019 case $as_dir in #(
50020 -*) as_dir=./$as_dir;;
50021 esac
50022 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
50023 as_dirs=
50024 while :; do
50025 case $as_dir in #(
50026 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
50027 *) as_qdir=$as_dir;;
50028 esac
50029 as_dirs="'$as_qdir' $as_dirs"
50030 as_dir=`$as_dirname -- "$as_dir" ||
50031 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
50032 X"$as_dir" : 'X\(//\)[^/]' \| \
50033 X"$as_dir" : 'X\(//\)$' \| \
50034 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
50035 $as_echo X"$as_dir" |
50036 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
50037 s//\1/
50038 q
50039 }
50040 /^X\(\/\/\)[^/].*/{
50041 s//\1/
50042 q
50043 }
50044 /^X\(\/\/\)$/{
50045 s//\1/
50046 q
50047 }
50048 /^X\(\/\).*/{
50049 s//\1/
50050 q
50051 }
50052 s/.*/./; q'`
50053 test -d "$as_dir" && break
50054 done
50055 test -z "$as_dirs" || eval "mkdir $as_dirs"
50056 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
50057 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
50058 { (exit 1); exit 1; }; }; }
50059 ac_builddir=.
50060
50061 case "$ac_dir" in
50062 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
50063 *)
50064 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
50065 # A ".." for each directory in $ac_dir_suffix.
50066 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
50067 case $ac_top_builddir_sub in
50068 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
50069 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
50070 esac ;;
50071 esac
50072 ac_abs_top_builddir=$ac_pwd
50073 ac_abs_builddir=$ac_pwd$ac_dir_suffix
50074 # for backward compatibility:
50075 ac_top_builddir=$ac_top_build_prefix
50076
50077 case $srcdir in
50078 .) # We are building in place.
50079 ac_srcdir=.
50080 ac_top_srcdir=$ac_top_builddir_sub
50081 ac_abs_top_srcdir=$ac_pwd ;;
50082 [\\/]* | ?:[\\/]* ) # Absolute name.
50083 ac_srcdir=$srcdir$ac_dir_suffix;
50084 ac_top_srcdir=$srcdir
50085 ac_abs_top_srcdir=$srcdir ;;
50086 *) # Relative name.
50087 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
50088 ac_top_srcdir=$ac_top_build_prefix$srcdir
50089 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
50090 esac
50091 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
50092
50093
50094 case $ac_mode in
50095 :F)
50096 #
50097 # CONFIG_FILE
50098 #
50099
50100 case $INSTALL in
50101 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
50102 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
50103 esac
50104 ac_MKDIR_P=$MKDIR_P
50105 case $MKDIR_P in
50106 [\\/$]* | ?:[\\/]* ) ;;
50107 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
50108 esac
50109 _ACEOF
50110
50111 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
50112 # If the template does not know about datarootdir, expand it.
50113 # FIXME: This hack should be removed a few years after 2.60.
50114 ac_datarootdir_hack=; ac_datarootdir_seen=
50115
50116 ac_sed_dataroot='
50117 /datarootdir/ {
50118 p
50119 q
50120 }
50121 /@datadir@/p
50122 /@docdir@/p
50123 /@infodir@/p
50124 /@localedir@/p
50125 /@mandir@/p
50126 '
50127 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
50128 *datarootdir*) ac_datarootdir_seen=yes;;
50129 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
50130 { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
50131 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
50132 _ACEOF
50133 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
50134 ac_datarootdir_hack='
50135 s&@datadir@&$datadir&g
50136 s&@docdir@&$docdir&g
50137 s&@infodir@&$infodir&g
50138 s&@localedir@&$localedir&g
50139 s&@mandir@&$mandir&g
50140 s&\\\${datarootdir}&$datarootdir&g' ;;
50141 esac
50142 _ACEOF
50143
50144 # Neutralize VPATH when `$srcdir' = `.'.
50145 # Shell code in configure.ac might set extrasub.
50146 # FIXME: do we really want to maintain this feature?
50147 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
50148 ac_sed_extra="$ac_vpsub
50149 $extrasub
50150 _ACEOF
50151 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
50152 :t
50153 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
50154 s|@configure_input@|$ac_sed_conf_input|;t t
50155 s&@top_builddir@&$ac_top_builddir_sub&;t t
50156 s&@top_build_prefix@&$ac_top_build_prefix&;t t
50157 s&@srcdir@&$ac_srcdir&;t t
50158 s&@abs_srcdir@&$ac_abs_srcdir&;t t
50159 s&@top_srcdir@&$ac_top_srcdir&;t t
50160 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
50161 s&@builddir@&$ac_builddir&;t t
50162 s&@abs_builddir@&$ac_abs_builddir&;t t
50163 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
50164 s&@INSTALL@&$ac_INSTALL&;t t
50165 s&@MKDIR_P@&$ac_MKDIR_P&;t t
50166 $ac_datarootdir_hack
50167 "
50168 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
50169 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
50170 $as_echo "$as_me: error: could not create $ac_file" >&2;}
50171 { (exit 1); exit 1; }; }
50172
50173 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
50174 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
50175 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
50176 { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
50177 which seems to be undefined. Please make sure it is defined." >&5
50178 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
50179 which seems to be undefined. Please make sure it is defined." >&2;}
50180
50181 rm -f "$tmp/stdin"
50182 case $ac_file in
50183 -) cat "$tmp/out" && rm -f "$tmp/out";;
50184 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
50185 esac \
50186 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
50187 $as_echo "$as_me: error: could not create $ac_file" >&2;}
50188 { (exit 1); exit 1; }; }
50189 ;;
50190 :H)
50191 #
50192 # CONFIG_HEADER
50193 #
50194 if test x"$ac_file" != x-; then
50195 {
50196 $as_echo "/* $configure_input */" \
50197 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
50198 } >"$tmp/config.h" \
50199 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
50200 $as_echo "$as_me: error: could not create $ac_file" >&2;}
50201 { (exit 1); exit 1; }; }
50202 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
50203 { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
50204 $as_echo "$as_me: $ac_file is unchanged" >&6;}
50205 else
50206 rm -f "$ac_file"
50207 mv "$tmp/config.h" "$ac_file" \
50208 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
50209 $as_echo "$as_me: error: could not create $ac_file" >&2;}
50210 { (exit 1); exit 1; }; }
50211 fi
50212 else
50213 $as_echo "/* $configure_input */" \
50214 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
50215 || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
50216 $as_echo "$as_me: error: could not create -" >&2;}
50217 { (exit 1); exit 1; }; }
50218 fi
50219 # Compute "$ac_file"'s index in $config_headers.
50220 _am_arg="$ac_file"
50221 _am_stamp_count=1
50222 for _am_header in $config_headers :; do
50223 case $_am_header in
50224 $_am_arg | $_am_arg:* )
50225 break ;;
50226 * )
50227 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
50228 esac
50229 done
50230 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
50231 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
50232 X"$_am_arg" : 'X\(//\)[^/]' \| \
50233 X"$_am_arg" : 'X\(//\)$' \| \
50234 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
50235 $as_echo X"$_am_arg" |
50236 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
50237 s//\1/
50238 q
50239 }
50240 /^X\(\/\/\)[^/].*/{
50241 s//\1/
50242 q
50243 }
50244 /^X\(\/\/\)$/{
50245 s//\1/
50246 q
50247 }
50248 /^X\(\/\).*/{
50249 s//\1/
50250 q
50251 }
50252 s/.*/./; q'`/stamp-h$_am_stamp_count
50253 ;;
50254
50255 :C) { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
50256 $as_echo "$as_me: executing $ac_file commands" >&6;}
50257 ;;
50258 esac
50259
50260
50261 case $ac_file$ac_mode in
50262 "zfs_config.h":H)
50263 (mv zfs_config.h zfs_config.h.tmp &&
50264 awk -f ${ac_srcdir}/config/config.awk zfs_config.h.tmp >zfs_config.h &&
50265 rm zfs_config.h.tmp) || exit 1 ;;
50266 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
50267 # Autoconf 2.62 quotes --file arguments for eval, but not when files
50268 # are listed without --file. Let's play safe and only enable the eval
50269 # if we detect the quoting.
50270 case $CONFIG_FILES in
50271 *\'*) eval set x "$CONFIG_FILES" ;;
50272 *) set x $CONFIG_FILES ;;
50273 esac
50274 shift
50275 for mf
50276 do
50277 # Strip MF so we end up with the name of the file.
50278 mf=`echo "$mf" | sed -e 's/:.*$//'`
50279 # Check whether this is an Automake generated Makefile or not.
50280 # We used to match only the files named `Makefile.in', but
50281 # some people rename them; so instead we look at the file content.
50282 # Grep'ing the first line is not enough: some people post-process
50283 # each Makefile.in and add a new line on top of each file to say so.
50284 # Grep'ing the whole file is not good either: AIX grep has a line
50285 # limit of 2048, but all sed's we know have understand at least 4000.
50286 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
50287 dirpart=`$as_dirname -- "$mf" ||
50288 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
50289 X"$mf" : 'X\(//\)[^/]' \| \
50290 X"$mf" : 'X\(//\)$' \| \
50291 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
50292 $as_echo X"$mf" |
50293 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
50294 s//\1/
50295 q
50296 }
50297 /^X\(\/\/\)[^/].*/{
50298 s//\1/
50299 q
50300 }
50301 /^X\(\/\/\)$/{
50302 s//\1/
50303 q
50304 }
50305 /^X\(\/\).*/{
50306 s//\1/
50307 q
50308 }
50309 s/.*/./; q'`
50310 else
50311 continue
50312 fi
50313 # Extract the definition of DEPDIR, am__include, and am__quote
50314 # from the Makefile without running `make'.
50315 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
50316 test -z "$DEPDIR" && continue
50317 am__include=`sed -n 's/^am__include = //p' < "$mf"`
50318 test -z "am__include" && continue
50319 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
50320 # When using ansi2knr, U may be empty or an underscore; expand it
50321 U=`sed -n 's/^U = //p' < "$mf"`
50322 # Find all dependency output files, they are included files with
50323 # $(DEPDIR) in their names. We invoke sed twice because it is the
50324 # simplest approach to changing $(DEPDIR) to its actual value in the
50325 # expansion.
50326 for file in `sed -n "
50327 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
50328 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
50329 # Make sure the directory exists.
50330 test -f "$dirpart/$file" && continue
50331 fdir=`$as_dirname -- "$file" ||
50332 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
50333 X"$file" : 'X\(//\)[^/]' \| \
50334 X"$file" : 'X\(//\)$' \| \
50335 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
50336 $as_echo X"$file" |
50337 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
50338 s//\1/
50339 q
50340 }
50341 /^X\(\/\/\)[^/].*/{
50342 s//\1/
50343 q
50344 }
50345 /^X\(\/\/\)$/{
50346 s//\1/
50347 q
50348 }
50349 /^X\(\/\).*/{
50350 s//\1/
50351 q
50352 }
50353 s/.*/./; q'`
50354 { as_dir=$dirpart/$fdir
50355 case $as_dir in #(
50356 -*) as_dir=./$as_dir;;
50357 esac
50358 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
50359 as_dirs=
50360 while :; do
50361 case $as_dir in #(
50362 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
50363 *) as_qdir=$as_dir;;
50364 esac
50365 as_dirs="'$as_qdir' $as_dirs"
50366 as_dir=`$as_dirname -- "$as_dir" ||
50367 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
50368 X"$as_dir" : 'X\(//\)[^/]' \| \
50369 X"$as_dir" : 'X\(//\)$' \| \
50370 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
50371 $as_echo X"$as_dir" |
50372 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
50373 s//\1/
50374 q
50375 }
50376 /^X\(\/\/\)[^/].*/{
50377 s//\1/
50378 q
50379 }
50380 /^X\(\/\/\)$/{
50381 s//\1/
50382 q
50383 }
50384 /^X\(\/\).*/{
50385 s//\1/
50386 q
50387 }
50388 s/.*/./; q'`
50389 test -d "$as_dir" && break
50390 done
50391 test -z "$as_dirs" || eval "mkdir $as_dirs"
50392 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
50393 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
50394 { (exit 1); exit 1; }; }; }
50395 # echo "creating $dirpart/$file"
50396 echo '# dummy' > "$dirpart/$file"
50397 done
50398 done
50399 }
50400 ;;
50401 "libtool":C)
50402
50403 # See if we are running on zsh, and set the options which allow our
50404 # commands through without removal of \ escapes.
50405 if test -n "${ZSH_VERSION+set}" ; then
50406 setopt NO_GLOB_SUBST
50407 fi
50408
50409 cfgfile="${ofile}T"
50410 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
50411 $RM "$cfgfile"
50412
50413 cat <<_LT_EOF >> "$cfgfile"
50414 #! $SHELL
50415
50416 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
50417 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
50418 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
50419 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
50420 #
50421 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
50422 # 2006, 2007, 2008 Free Software Foundation, Inc.
50423 # Written by Gordon Matzigkeit, 1996
50424 #
50425 # This file is part of GNU Libtool.
50426 #
50427 # GNU Libtool is free software; you can redistribute it and/or
50428 # modify it under the terms of the GNU General Public License as
50429 # published by the Free Software Foundation; either version 2 of
50430 # the License, or (at your option) any later version.
50431 #
50432 # As a special exception to the GNU General Public License,
50433 # if you distribute this file as part of a program or library that
50434 # is built using GNU Libtool, you may include this file under the
50435 # same distribution terms that you use for the rest of that program.
50436 #
50437 # GNU Libtool is distributed in the hope that it will be useful,
50438 # but WITHOUT ANY WARRANTY; without even the implied warranty of
50439 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
50440 # GNU General Public License for more details.
50441 #
50442 # You should have received a copy of the GNU General Public License
50443 # along with GNU Libtool; see the file COPYING. If not, a copy
50444 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
50445 # obtained by writing to the Free Software Foundation, Inc.,
50446 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
50447
50448
50449 # The names of the tagged configurations supported by this script.
50450 available_tags=""
50451
50452 # ### BEGIN LIBTOOL CONFIG
50453
50454 # Which release of libtool.m4 was used?
50455 macro_version=$macro_version
50456 macro_revision=$macro_revision
50457
50458 # Whether or not to build shared libraries.
50459 build_libtool_libs=$enable_shared
50460
50461 # Whether or not to build static libraries.
50462 build_old_libs=$enable_static
50463
50464 # What type of objects to build.
50465 pic_mode=$pic_mode
50466
50467 # Whether or not to optimize for fast installation.
50468 fast_install=$enable_fast_install
50469
50470 # The host system.
50471 host_alias=$host_alias
50472 host=$host
50473 host_os=$host_os
50474
50475 # The build system.
50476 build_alias=$build_alias
50477 build=$build
50478 build_os=$build_os
50479
50480 # A sed program that does not truncate output.
50481 SED=$lt_SED
50482
50483 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
50484 Xsed="\$SED -e 1s/^X//"
50485
50486 # A grep program that handles long lines.
50487 GREP=$lt_GREP
50488
50489 # An ERE matcher.
50490 EGREP=$lt_EGREP
50491
50492 # A literal string matcher.
50493 FGREP=$lt_FGREP
50494
50495 # A BSD- or MS-compatible name lister.
50496 NM=$lt_NM
50497
50498 # Whether we need soft or hard links.
50499 LN_S=$lt_LN_S
50500
50501 # What is the maximum length of a command?
50502 max_cmd_len=$max_cmd_len
50503
50504 # Object file suffix (normally "o").
50505 objext=$ac_objext
50506
50507 # Executable file suffix (normally "").
50508 exeext=$exeext
50509
50510 # whether the shell understands "unset".
50511 lt_unset=$lt_unset
50512
50513 # turn spaces into newlines.
50514 SP2NL=$lt_lt_SP2NL
50515
50516 # turn newlines into spaces.
50517 NL2SP=$lt_lt_NL2SP
50518
50519 # How to create reloadable object files.
50520 reload_flag=$lt_reload_flag
50521 reload_cmds=$lt_reload_cmds
50522
50523 # An object symbol dumper.
50524 OBJDUMP=$lt_OBJDUMP
50525
50526 # Method to check whether dependent libraries are shared objects.
50527 deplibs_check_method=$lt_deplibs_check_method
50528
50529 # Command to use when deplibs_check_method == "file_magic".
50530 file_magic_cmd=$lt_file_magic_cmd
50531
50532 # The archiver.
50533 AR=$lt_AR
50534 AR_FLAGS=$lt_AR_FLAGS
50535
50536 # A symbol stripping program.
50537 STRIP=$lt_STRIP
50538
50539 # Commands used to install an old-style archive.
50540 RANLIB=$lt_RANLIB
50541 old_postinstall_cmds=$lt_old_postinstall_cmds
50542 old_postuninstall_cmds=$lt_old_postuninstall_cmds
50543
50544 # A C compiler.
50545 LTCC=$lt_CC
50546
50547 # LTCC compiler flags.
50548 LTCFLAGS=$lt_CFLAGS
50549
50550 # Take the output of nm and produce a listing of raw symbols and C names.
50551 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
50552
50553 # Transform the output of nm in a proper C declaration.
50554 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
50555
50556 # Transform the output of nm in a C name address pair.
50557 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
50558
50559 # Transform the output of nm in a C name address pair when lib prefix is needed.
50560 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
50561
50562 # The name of the directory that contains temporary libtool files.
50563 objdir=$objdir
50564
50565 # Shell to use when invoking shell scripts.
50566 SHELL=$lt_SHELL
50567
50568 # An echo program that does not interpret backslashes.
50569 ECHO=$lt_ECHO
50570
50571 # Used to examine libraries when file_magic_cmd begins with "file".
50572 MAGIC_CMD=$MAGIC_CMD
50573
50574 # Must we lock files when doing compilation?
50575 need_locks=$lt_need_locks
50576
50577 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
50578 DSYMUTIL=$lt_DSYMUTIL
50579
50580 # Tool to change global to local symbols on Mac OS X.
50581 NMEDIT=$lt_NMEDIT
50582
50583 # Tool to manipulate fat objects and archives on Mac OS X.
50584 LIPO=$lt_LIPO
50585
50586 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
50587 OTOOL=$lt_OTOOL
50588
50589 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
50590 OTOOL64=$lt_OTOOL64
50591
50592 # Old archive suffix (normally "a").
50593 libext=$libext
50594
50595 # Shared library suffix (normally ".so").
50596 shrext_cmds=$lt_shrext_cmds
50597
50598 # The commands to extract the exported symbol list from a shared archive.
50599 extract_expsyms_cmds=$lt_extract_expsyms_cmds
50600
50601 # Variables whose values should be saved in libtool wrapper scripts and
50602 # restored at link time.
50603 variables_saved_for_relink=$lt_variables_saved_for_relink
50604
50605 # Do we need the "lib" prefix for modules?
50606 need_lib_prefix=$need_lib_prefix
50607
50608 # Do we need a version for libraries?
50609 need_version=$need_version
50610
50611 # Library versioning type.
50612 version_type=$version_type
50613
50614 # Shared library runtime path variable.
50615 runpath_var=$runpath_var
50616
50617 # Shared library path variable.
50618 shlibpath_var=$shlibpath_var
50619
50620 # Is shlibpath searched before the hard-coded library search path?
50621 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
50622
50623 # Format of library name prefix.
50624 libname_spec=$lt_libname_spec
50625
50626 # List of archive names. First name is the real one, the rest are links.
50627 # The last name is the one that the linker finds with -lNAME
50628 library_names_spec=$lt_library_names_spec
50629
50630 # The coded name of the library, if different from the real name.
50631 soname_spec=$lt_soname_spec
50632
50633 # Command to use after installation of a shared archive.
50634 postinstall_cmds=$lt_postinstall_cmds
50635
50636 # Command to use after uninstallation of a shared archive.
50637 postuninstall_cmds=$lt_postuninstall_cmds
50638
50639 # Commands used to finish a libtool library installation in a directory.
50640 finish_cmds=$lt_finish_cmds
50641
50642 # As "finish_cmds", except a single script fragment to be evaled but
50643 # not shown.
50644 finish_eval=$lt_finish_eval
50645
50646 # Whether we should hardcode library paths into libraries.
50647 hardcode_into_libs=$hardcode_into_libs
50648
50649 # Compile-time system search path for libraries.
50650 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
50651
50652 # Run-time system search path for libraries.
50653 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
50654
50655 # Whether dlopen is supported.
50656 dlopen_support=$enable_dlopen
50657
50658 # Whether dlopen of programs is supported.
50659 dlopen_self=$enable_dlopen_self
50660
50661 # Whether dlopen of statically linked programs is supported.
50662 dlopen_self_static=$enable_dlopen_self_static
50663
50664 # Commands to strip libraries.
50665 old_striplib=$lt_old_striplib
50666 striplib=$lt_striplib
50667
50668
50669 # The linker used to build libraries.
50670 LD=$lt_LD
50671
50672 # Commands used to build an old-style archive.
50673 old_archive_cmds=$lt_old_archive_cmds
50674
50675 # A language specific compiler.
50676 CC=$lt_compiler
50677
50678 # Is the compiler the GNU compiler?
50679 with_gcc=$GCC
50680
50681 # Compiler flag to turn off builtin functions.
50682 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
50683
50684 # How to pass a linker flag through the compiler.
50685 wl=$lt_lt_prog_compiler_wl
50686
50687 # Additional compiler flags for building library objects.
50688 pic_flag=$lt_lt_prog_compiler_pic
50689
50690 # Compiler flag to prevent dynamic linking.
50691 link_static_flag=$lt_lt_prog_compiler_static
50692
50693 # Does compiler simultaneously support -c and -o options?
50694 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
50695
50696 # Whether or not to add -lc for building shared libraries.
50697 build_libtool_need_lc=$archive_cmds_need_lc
50698
50699 # Whether or not to disallow shared libs when runtime libs are static.
50700 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
50701
50702 # Compiler flag to allow reflexive dlopens.
50703 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
50704
50705 # Compiler flag to generate shared objects directly from archives.
50706 whole_archive_flag_spec=$lt_whole_archive_flag_spec
50707
50708 # Whether the compiler copes with passing no objects directly.
50709 compiler_needs_object=$lt_compiler_needs_object
50710
50711 # Create an old-style archive from a shared archive.
50712 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
50713
50714 # Create a temporary old-style archive to link instead of a shared archive.
50715 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
50716
50717 # Commands used to build a shared archive.
50718 archive_cmds=$lt_archive_cmds
50719 archive_expsym_cmds=$lt_archive_expsym_cmds
50720
50721 # Commands used to build a loadable module if different from building
50722 # a shared archive.
50723 module_cmds=$lt_module_cmds
50724 module_expsym_cmds=$lt_module_expsym_cmds
50725
50726 # Whether we are building with GNU ld or not.
50727 with_gnu_ld=$lt_with_gnu_ld
50728
50729 # Flag that allows shared libraries with undefined symbols to be built.
50730 allow_undefined_flag=$lt_allow_undefined_flag
50731
50732 # Flag that enforces no undefined symbols.
50733 no_undefined_flag=$lt_no_undefined_flag
50734
50735 # Flag to hardcode \$libdir into a binary during linking.
50736 # This must work even if \$libdir does not exist
50737 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
50738
50739 # If ld is used when linking, flag to hardcode \$libdir into a binary
50740 # during linking. This must work even if \$libdir does not exist.
50741 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
50742
50743 # Whether we need a single "-rpath" flag with a separated argument.
50744 hardcode_libdir_separator=$lt_hardcode_libdir_separator
50745
50746 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
50747 # DIR into the resulting binary.
50748 hardcode_direct=$hardcode_direct
50749
50750 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
50751 # DIR into the resulting binary and the resulting library dependency is
50752 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
50753 # library is relocated.
50754 hardcode_direct_absolute=$hardcode_direct_absolute
50755
50756 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
50757 # into the resulting binary.
50758 hardcode_minus_L=$hardcode_minus_L
50759
50760 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
50761 # into the resulting binary.
50762 hardcode_shlibpath_var=$hardcode_shlibpath_var
50763
50764 # Set to "yes" if building a shared library automatically hardcodes DIR
50765 # into the library and all subsequent libraries and executables linked
50766 # against it.
50767 hardcode_automatic=$hardcode_automatic
50768
50769 # Set to yes if linker adds runtime paths of dependent libraries
50770 # to runtime path list.
50771 inherit_rpath=$inherit_rpath
50772
50773 # Whether libtool must link a program against all its dependency libraries.
50774 link_all_deplibs=$link_all_deplibs
50775
50776 # Fix the shell variable \$srcfile for the compiler.
50777 fix_srcfile_path=$lt_fix_srcfile_path
50778
50779 # Set to "yes" if exported symbols are required.
50780 always_export_symbols=$always_export_symbols
50781
50782 # The commands to list exported symbols.
50783 export_symbols_cmds=$lt_export_symbols_cmds
50784
50785 # Symbols that should not be listed in the preloaded symbols.
50786 exclude_expsyms=$lt_exclude_expsyms
50787
50788 # Symbols that must always be exported.
50789 include_expsyms=$lt_include_expsyms
50790
50791 # Commands necessary for linking programs (against libraries) with templates.
50792 prelink_cmds=$lt_prelink_cmds
50793
50794 # Specify filename containing input files.
50795 file_list_spec=$lt_file_list_spec
50796
50797 # How to hardcode a shared library path into an executable.
50798 hardcode_action=$hardcode_action
50799
50800 # ### END LIBTOOL CONFIG
50801
50802 _LT_EOF
50803
50804 case $host_os in
50805 aix3*)
50806 cat <<\_LT_EOF >> "$cfgfile"
50807 # AIX sometimes has problems with the GCC collect2 program. For some
50808 # reason, if we set the COLLECT_NAMES environment variable, the problems
50809 # vanish in a puff of smoke.
50810 if test "X${COLLECT_NAMES+set}" != Xset; then
50811 COLLECT_NAMES=
50812 export COLLECT_NAMES
50813 fi
50814 _LT_EOF
50815 ;;
50816 esac
50817
50818
50819 ltmain="$ac_aux_dir/ltmain.sh"
50820
50821
50822 # We use sed instead of cat because bash on DJGPP gets confused if
50823 # if finds mixed CR/LF and LF-only lines. Since sed operates in
50824 # text mode, it properly converts lines to CR/LF. This bash problem
50825 # is reportedly fixed, but why not run on old versions too?
50826 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
50827 || (rm -f "$cfgfile"; exit 1)
50828
50829 case $xsi_shell in
50830 yes)
50831 cat << \_LT_EOF >> "$cfgfile"
50832
50833 # func_dirname file append nondir_replacement
50834 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
50835 # otherwise set result to NONDIR_REPLACEMENT.
50836 func_dirname ()
50837 {
50838 case ${1} in
50839 */*) func_dirname_result="${1%/*}${2}" ;;
50840 * ) func_dirname_result="${3}" ;;
50841 esac
50842 }
50843
50844 # func_basename file
50845 func_basename ()
50846 {
50847 func_basename_result="${1##*/}"
50848 }
50849
50850 # func_dirname_and_basename file append nondir_replacement
50851 # perform func_basename and func_dirname in a single function
50852 # call:
50853 # dirname: Compute the dirname of FILE. If nonempty,
50854 # add APPEND to the result, otherwise set result
50855 # to NONDIR_REPLACEMENT.
50856 # value returned in "$func_dirname_result"
50857 # basename: Compute filename of FILE.
50858 # value retuned in "$func_basename_result"
50859 # Implementation must be kept synchronized with func_dirname
50860 # and func_basename. For efficiency, we do not delegate to
50861 # those functions but instead duplicate the functionality here.
50862 func_dirname_and_basename ()
50863 {
50864 case ${1} in
50865 */*) func_dirname_result="${1%/*}${2}" ;;
50866 * ) func_dirname_result="${3}" ;;
50867 esac
50868 func_basename_result="${1##*/}"
50869 }
50870
50871 # func_stripname prefix suffix name
50872 # strip PREFIX and SUFFIX off of NAME.
50873 # PREFIX and SUFFIX must not contain globbing or regex special
50874 # characters, hashes, percent signs, but SUFFIX may contain a leading
50875 # dot (in which case that matches only a dot).
50876 func_stripname ()
50877 {
50878 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
50879 # positional parameters, so assign one to ordinary parameter first.
50880 func_stripname_result=${3}
50881 func_stripname_result=${func_stripname_result#"${1}"}
50882 func_stripname_result=${func_stripname_result%"${2}"}
50883 }
50884
50885 # func_opt_split
50886 func_opt_split ()
50887 {
50888 func_opt_split_opt=${1%%=*}
50889 func_opt_split_arg=${1#*=}
50890 }
50891
50892 # func_lo2o object
50893 func_lo2o ()
50894 {
50895 case ${1} in
50896 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
50897 *) func_lo2o_result=${1} ;;
50898 esac
50899 }
50900
50901 # func_xform libobj-or-source
50902 func_xform ()
50903 {
50904 func_xform_result=${1%.*}.lo
50905 }
50906
50907 # func_arith arithmetic-term...
50908 func_arith ()
50909 {
50910 func_arith_result=$(( $* ))
50911 }
50912
50913 # func_len string
50914 # STRING may not start with a hyphen.
50915 func_len ()
50916 {
50917 func_len_result=${#1}
50918 }
50919
50920 _LT_EOF
50921 ;;
50922 *) # Bourne compatible functions.
50923 cat << \_LT_EOF >> "$cfgfile"
50924
50925 # func_dirname file append nondir_replacement
50926 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
50927 # otherwise set result to NONDIR_REPLACEMENT.
50928 func_dirname ()
50929 {
50930 # Extract subdirectory from the argument.
50931 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
50932 if test "X$func_dirname_result" = "X${1}"; then
50933 func_dirname_result="${3}"
50934 else
50935 func_dirname_result="$func_dirname_result${2}"
50936 fi
50937 }
50938
50939 # func_basename file
50940 func_basename ()
50941 {
50942 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
50943 }
50944
50945
50946 # func_stripname prefix suffix name
50947 # strip PREFIX and SUFFIX off of NAME.
50948 # PREFIX and SUFFIX must not contain globbing or regex special
50949 # characters, hashes, percent signs, but SUFFIX may contain a leading
50950 # dot (in which case that matches only a dot).
50951 # func_strip_suffix prefix name
50952 func_stripname ()
50953 {
50954 case ${2} in
50955 .*) func_stripname_result=`$ECHO "X${3}" \
50956 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
50957 *) func_stripname_result=`$ECHO "X${3}" \
50958 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
50959 esac
50960 }
50961
50962 # sed scripts:
50963 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
50964 my_sed_long_arg='1s/^-[^=]*=//'
50965
50966 # func_opt_split
50967 func_opt_split ()
50968 {
50969 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
50970 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
50971 }
50972
50973 # func_lo2o object
50974 func_lo2o ()
50975 {
50976 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
50977 }
50978
50979 # func_xform libobj-or-source
50980 func_xform ()
50981 {
50982 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
50983 }
50984
50985 # func_arith arithmetic-term...
50986 func_arith ()
50987 {
50988 func_arith_result=`expr "$@"`
50989 }
50990
50991 # func_len string
50992 # STRING may not start with a hyphen.
50993 func_len ()
50994 {
50995 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
50996 }
50997
50998 _LT_EOF
50999 esac
51000
51001 case $lt_shell_append in
51002 yes)
51003 cat << \_LT_EOF >> "$cfgfile"
51004
51005 # func_append var value
51006 # Append VALUE to the end of shell variable VAR.
51007 func_append ()
51008 {
51009 eval "$1+=\$2"
51010 }
51011 _LT_EOF
51012 ;;
51013 *)
51014 cat << \_LT_EOF >> "$cfgfile"
51015
51016 # func_append var value
51017 # Append VALUE to the end of shell variable VAR.
51018 func_append ()
51019 {
51020 eval "$1=\$$1\$2"
51021 }
51022
51023 _LT_EOF
51024 ;;
51025 esac
51026
51027
51028 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
51029 || (rm -f "$cfgfile"; exit 1)
51030
51031 mv -f "$cfgfile" "$ofile" ||
51032 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
51033 chmod +x "$ofile"
51034
51035 ;;
51036
51037 esac
51038 done # for ac_tag
51039
51040
51041 { (exit 0); exit 0; }
51042 _ACEOF
51043 chmod +x $CONFIG_STATUS
51044 ac_clean_files=$ac_clean_files_save
51045
51046 test $ac_write_fail = 0 ||
51047 { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
51048 $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
51049 { (exit 1); exit 1; }; }
51050
51051
51052 # configure is writing to config.log, and then calls config.status.
51053 # config.status does its own redirection, appending to config.log.
51054 # Unfortunately, on DOS this fails, as config.log is still kept open
51055 # by configure, so config.status won't be able to write to it; its
51056 # output is simply discarded. So we exec the FD to /dev/null,
51057 # effectively closing config.log, so it can be properly (re)opened and
51058 # appended to by config.status. When coming back to configure, we
51059 # need to make the FD available again.
51060 if test "$no_create" != yes; then
51061 ac_cs_success=:
51062 ac_config_status_args=
51063 test "$silent" = yes &&
51064 ac_config_status_args="$ac_config_status_args --quiet"
51065 exec 5>/dev/null
51066 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
51067 exec 5>>config.log
51068 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
51069 # would make configure fail if this is the last instruction.
51070 $ac_cs_success || { (exit 1); exit 1; }
51071 fi
51072 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
51073 { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
51074 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
51075 fi
51076