]> git.proxmox.com Git - mirror_zfs-debian.git/blame - configure
Add dpkg-dev to Depends of zfs-dkms (Closes: #900714)
[mirror_zfs-debian.git] / configure
CommitLineData
ea04106b
AX
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
42f7b73b 3# Generated by GNU Autoconf 2.63 for zfs 0.7.9.
ea04106b 4#
cae5b340
AX
5# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6# 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
ea04106b
AX
7# This configure script is free software; the Free Software Foundation
8# gives unlimited permission to copy, distribute and modify it.
cae5b340
AX
9## --------------------- ##
10## M4sh Initialization. ##
11## --------------------- ##
ea04106b
AX
12
13# Be more Bourne compatible
14DUALCASE=1; export DUALCASE # for MKS sh
cae5b340 15if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
ea04106b
AX
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
22else
cae5b340
AX
23 case `(set -o) 2>/dev/null` in
24 *posix*) set -o posix ;;
ea04106b 25esac
cae5b340 26
ea04106b
AX
27fi
28
29
cae5b340
AX
30
31
32# PATH needs CR
33# Avoid depending upon Character Ranges.
34as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37as_cr_digits='0123456789'
38as_cr_alnum=$as_cr_Letters$as_cr_digits
39
ea04106b
AX
40as_nl='
41'
42export as_nl
43# Printing a long string crashes Solaris 7 /usr/bin/printf.
44as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
45as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
46as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
cae5b340 47if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
ea04106b
AX
48 as_echo='printf %s\n'
49 as_echo_n='printf %s'
50else
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;
cae5b340 58 case $arg in
ea04106b
AX
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'
70fi
71
72# The user is always right.
73if 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 }
79fi
80
cae5b340
AX
81# Support unset when possible.
82if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
83 as_unset=unset
84else
85 as_unset=false
86fi
87
ea04106b
AX
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.)
94IFS=" "" $as_nl"
95
96# Find who we are. Look in the path if we contain no directory separator.
cae5b340 97case $0 in
ea04106b
AX
98 *[\\/]* ) as_myself=$0 ;;
99 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
100for as_dir in $PATH
101do
102 IFS=$as_save_IFS
103 test -z "$as_dir" && as_dir=.
cae5b340
AX
104 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
105done
ea04106b
AX
106IFS=$as_save_IFS
107
108 ;;
109esac
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.
112if test "x$as_myself" = x; then
113 as_myself=$0
114fi
115if test ! -f "$as_myself"; then
116 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
cae5b340 117 { (exit 1); exit 1; }
ea04106b
AX
118fi
119
cae5b340
AX
120# Work around bugs in pre-3.0 UWIN ksh.
121for as_var in ENV MAIL MAILPATH
122do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
ea04106b
AX
123done
124PS1='$ '
125PS2='> '
126PS4='+ '
127
128# NLS nuisances.
129LC_ALL=C
130export LC_ALL
131LANGUAGE=C
132export LANGUAGE
133
cae5b340
AX
134# Required to use basename.
135if expr a : '\(a\)' >/dev/null 2>&1 &&
136 test "X`expr 00001 : '.*\(...\)'`" = X001; then
137 as_expr=expr
138else
139 as_expr=false
140fi
141
142if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
143 as_basename=basename
144else
145 as_basename=false
146fi
147
148
149# Name of the executable.
150as_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
ea04106b 169# CDPATH.
cae5b340
AX
170$as_unset CDPATH
171
ea04106b
AX
172
173if test "x$CONFIG_SHELL" = x; then
cae5b340
AX
174 if (eval ":") 2>/dev/null; then
175 as_have_required=yes
ea04106b 176else
cae5b340 177 as_have_required=no
ea04106b 178fi
cae5b340
AX
179
180 if test $as_have_required = yes && (eval ":
181(as_func_return () {
182 (exit \$1)
183}
184as_func_success () {
185 as_func_return 0
186}
187as_func_failure () {
188 as_func_return 1
189}
190as_func_ret_success () {
191 return 0
192}
193as_func_ret_failure () {
194 return 1
195}
ea04106b
AX
196
197exitcode=0
cae5b340
AX
198if as_func_success; then
199 :
ea04106b 200else
cae5b340
AX
201 exitcode=1
202 echo as_func_success failed.
203fi
204
205if as_func_failure; then
206 exitcode=1
207 echo as_func_failure succeeded.
ea04106b 208fi
ea04106b 209
cae5b340
AX
210if as_func_ret_success; then
211 :
ea04106b 212else
cae5b340
AX
213 exitcode=1
214 echo as_func_ret_success failed.
215fi
216
217if as_func_ret_failure; then
218 exitcode=1
219 echo as_func_ret_failure succeeded.
220fi
221
222if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
223 :
224else
225 exitcode=1
226 echo positional parameters were not saved.
227fi
228
229test \$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 :
238else
239 as_candidate_shells=
240 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
ea04106b
AX
241for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
242do
243 IFS=$as_save_IFS
244 test -z "$as_dir" && as_dir=.
cae5b340 245 case $as_dir in
ea04106b
AX
246 /*)
247 for as_base in sh bash ksh sh5; do
cae5b340 248 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
ea04106b
AX
249 done;;
250 esac
ea04106b 251done
ea04106b
AX
252IFS=$as_save_IFS
253
254
cae5b340
AX
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
259if 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
266else
267 case `(set -o) 2>/dev/null` in
268 *posix*) set -o posix ;;
68d83c55 269esac
cae5b340 270
ea04106b 271fi
cae5b340
AX
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
280if 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
287else
288 case `(set -o) 2>/dev/null` in
289 *posix*) set -o posix ;;
290esac
291
ea04106b 292fi
ea04106b 293
ea04106b 294
cae5b340
AX
295:
296(as_func_return () {
297 (exit $1)
298}
299as_func_success () {
300 as_func_return 0
301}
302as_func_failure () {
303 as_func_return 1
304}
305as_func_ret_success () {
306 return 0
307}
308as_func_ret_failure () {
309 return 1
310}
ea04106b 311
cae5b340
AX
312exitcode=0
313if as_func_success; then
314 :
315else
316 exitcode=1
317 echo as_func_success failed.
318fi
ea04106b 319
cae5b340
AX
320if as_func_failure; then
321 exitcode=1
322 echo as_func_failure succeeded.
323fi
ea04106b 324
cae5b340
AX
325if as_func_ret_success; then
326 :
ea04106b 327else
cae5b340
AX
328 exitcode=1
329 echo as_func_ret_success failed.
330fi
331
332if as_func_ret_failure; then
333 exitcode=1
334 echo as_func_ret_failure succeeded.
335fi
336
337if ( set x; as_func_ret_success y && test x = "$1" ); then
338 :
ea04106b 339else
cae5b340
AX
340 exitcode=1
341 echo positional parameters were not saved.
342fi
ea04106b 343
cae5b340 344test $exitcode = 0) || { (exit 1); exit 1; }
ea04106b 345
cae5b340
AX
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; }
ea04106b 351
cae5b340
AX
352_ASEOF
353}; then
354 break
355fi
356
357fi
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+"$@"}
367fi
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; }
376fi
377
378
379fi
380
381fi
382
383
384
385(eval "as_func_return () {
386 (exit \$1)
387}
388as_func_success () {
389 as_func_return 0
390}
391as_func_failure () {
392 as_func_return 1
393}
394as_func_ret_success () {
395 return 0
396}
397as_func_ret_failure () {
398 return 1
399}
400
401exitcode=0
402if as_func_success; then
403 :
ea04106b 404else
cae5b340
AX
405 exitcode=1
406 echo as_func_success failed.
ea04106b
AX
407fi
408
cae5b340
AX
409if as_func_failure; then
410 exitcode=1
411 echo as_func_failure succeeded.
412fi
413
414if as_func_ret_success; then
415 :
ea04106b 416else
cae5b340
AX
417 exitcode=1
418 echo as_func_ret_success failed.
ea04106b
AX
419fi
420
cae5b340
AX
421if as_func_ret_failure; then
422 exitcode=1
423 echo as_func_ret_failure succeeded.
424fi
425
426if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
427 :
ea04106b 428else
cae5b340
AX
429 exitcode=1
430 echo positional parameters were not saved.
ea04106b
AX
431fi
432
cae5b340
AX
433test \$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
ea04106b 441
ea04106b 442
cae5b340
AX
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" || {
ea04106b 447
cae5b340
AX
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. :-)
ea04106b
AX
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" ||
cae5b340
AX
474 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
475 { (exit 1); exit 1; }; }
ea04106b
AX
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
cae5b340
AX
485
486if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
487 as_dirname=dirname
488else
489 as_dirname=false
490fi
491
ea04106b 492ECHO_C= ECHO_N= ECHO_T=
cae5b340 493case `echo -n x` in
ea04106b 494-n*)
cae5b340 495 case `echo 'x\c'` in
ea04106b 496 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
cae5b340 497 *) ECHO_C='\c';;
ea04106b
AX
498 esac;;
499*)
500 ECHO_N='-n';;
501esac
cae5b340
AX
502if expr a : '\(a\)' >/dev/null 2>&1 &&
503 test "X`expr 00001 : '.*\(...\)'`" = X001; then
504 as_expr=expr
505else
506 as_expr=false
507fi
ea04106b
AX
508
509rm -f conf$$ conf$$.exe conf$$.file
510if test -d conf$$.dir; then
511 rm -f conf$$.dir/conf$$.file
512else
513 rm -f conf$$.dir
514 mkdir conf$$.dir 2>/dev/null
515fi
516if (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.
cae5b340 522 # In both cases, we have to default to `cp -p'.
ea04106b 523 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
cae5b340 524 as_ln_s='cp -p'
ea04106b
AX
525 elif ln conf$$.file conf$$ 2>/dev/null; then
526 as_ln_s=ln
527 else
cae5b340 528 as_ln_s='cp -p'
ea04106b
AX
529 fi
530else
cae5b340 531 as_ln_s='cp -p'
ea04106b
AX
532fi
533rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
534rmdir conf$$.dir 2>/dev/null
535
536if mkdir -p . 2>/dev/null; then
cae5b340 537 as_mkdir_p=:
ea04106b
AX
538else
539 test -d ./-p && rmdir ./-p
540 as_mkdir_p=false
541fi
542
cae5b340
AX
543if test -x / >/dev/null 2>&1; then
544 as_test_x='test -x'
545else
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 '
563fi
564as_executable_p=$as_test_x
ea04106b
AX
565
566# Sed expression to map a string onto a valid CPP name.
567as_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.
570as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
571
cae5b340
AX
572
573
574
575# Check that we are running under the correct shell.
ea04106b
AX
576SHELL=${CONFIG_SHELL-/bin/sh}
577
cae5b340
AX
578case X$lt_ECHO in
579X*--fallback-echo)
580 # Remove one level of quotation (which was required for Make).
581 ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
582 ;;
583esac
ea04106b 584
cae5b340
AX
585ECHO=${lt_ECHO-echo}
586if test "X$1" = X--no-reexec; then
587 # Discard the --no-reexec flag, and continue.
588 shift
589elif test "X$1" = X--fallback-echo; then
590 # Avoid inline document here, it may be left over
591 :
592elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
593 # Yippee, $ECHO works!
594 :
595else
596 # Restart under the correct shell.
597 exec $SHELL "$0" --no-reexec ${1+"$@"}
598fi
599
600if 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
607fi
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
613if 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
711fi
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.
715lt_ECHO=$ECHO
716if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
717 lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
718fi
719
720
721
722
723exec 7<&0 </dev/null 6>&1
ea04106b
AX
724
725# Name of the host.
cae5b340 726# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
ea04106b
AX
727# so uname gets run too.
728ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
729
730#
731# Initializations.
732#
733ac_default_prefix=/usr/local
734ac_clean_files=
735ac_config_libobj_dir=.
736LIBOBJS=
737cross_compiling=no
738subdirs=
739MFLAGS=
740MAKEFLAGS=
cae5b340 741SHELL=${CONFIG_SHELL-/bin/sh}
ea04106b
AX
742
743# Identity of this package.
744PACKAGE_NAME='zfs'
745PACKAGE_TARNAME='zfs'
42f7b73b
AX
746PACKAGE_VERSION='0.7.9'
747PACKAGE_STRING='zfs 0.7.9'
ea04106b 748PACKAGE_BUGREPORT=''
ea04106b
AX
749
750# Factoring default headers for most tests.
751ac_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
786ac_subst_vars='am__EXEEXT_FALSE
787am__EXEEXT_TRUE
788LTLIBOBJS
789LIBOBJS
42f7b73b 790DEBUG_CFLAGS
ea04106b
AX
791DEBUG_ZFS
792DEBUG_STACKFLAGS
42f7b73b
AX
793WANT_MMAP_LIBAIO_FALSE
794WANT_MMAP_LIBAIO_TRUE
cae5b340
AX
795WANT_DEVNAME2DEVID_FALSE
796WANT_DEVNAME2DEVID_TRUE
42f7b73b
AX
797CONFIG_QAT_FALSE
798CONFIG_QAT_TRUE
ea04106b
AX
799CONFIG_KERNEL_FALSE
800CONFIG_KERNEL_TRUE
801CONFIG_USER_FALSE
802CONFIG_USER_TRUE
cae5b340
AX
803RM
804ZONENAME
805NO_FORMAT_TRUNCATION
22929307 806runstatedir
42f7b73b 807LIBAIO
ea04106b 808FRAME_LARGER_THAN
cae5b340 809LIBUDEV
ea04106b 810LIBBLKID
cae5b340
AX
811LIBTIRPC_CFLAGS
812LIBTIRPC
ea04106b
AX
813LIBUUID
814ZLIB
815dracutdir
816ZFS_INIT_SYSV
817modulesloaddir
818systemdpresetdir
819systemdunitdir
42f7b73b 820DEFINE_SYSTEMD
ea04106b
AX
821ZFS_MODULE_LOAD
822ZFS_INIT_SYSTEMD
823udevruledir
824udevdir
825mounthelperdir
826KERNELCPPFLAGS
827KERNELMAKE_PARAMS
cae5b340
AX
828QAT_SYMBOLS
829QAT_OBJ
830QAT_SRC
ea04106b
AX
831SPL_SYMBOLS
832SPL_VERSION
833SPL_OBJ
834SPL
835LINUX_SYMBOLS
836LINUX_VERSION
837LINUX_OBJ
838LINUX
cae5b340
AX
839TARGET_ASM_GENERIC_FALSE
840TARGET_ASM_GENERIC_TRUE
841TARGET_ASM_I386_FALSE
842TARGET_ASM_I386_TRUE
843TARGET_ASM_X86_64_FALSE
844TARGET_ASM_X86_64_TRUE
845TARGET_ASM_DIR
e10b0808 846NO_BOOL_COMPARE
ea04106b
AX
847NO_UNUSED_BUT_SET_VARIABLE
848ZFS_CONFIG
ea04106b
AX
849ALIEN_VERSION
850ALIEN
851HAVE_ALIEN
852DPKGBUILD_VERSION
853DPKGBUILD
854HAVE_DPKGBUILD
855DPKG_VERSION
856DPKG
857HAVE_DPKG
858SRPM_DEFINE_COMMON
859SRPM_DEFINE_DKMS
860SRPM_DEFINE_KMOD
861SRPM_DEFINE_UTIL
862RPM_DEFINE_COMMON
863RPM_DEFINE_DKMS
864RPM_DEFINE_KMOD
865RPM_DEFINE_UTIL
866RPM_SPEC_DIR
867RPMBUILD_VERSION
868RPMBUILD
869HAVE_RPMBUILD
870RPM_VERSION
871RPM
872HAVE_RPM
42f7b73b 873MULTIARCH_LIBDIR
e10b0808
AX
874DEFINE_INITRAMFS
875DEFAULT_INITCONF_DIR
ea04106b
AX
876DEFAULT_INIT_SCRIPT
877DEFAULT_INIT_DIR
878DEFAULT_PACKAGE
879VENDOR
42f7b73b
AX
880CODE_COVERAGE_RULES
881CODE_COVERAGE_LDFLAGS
882CODE_COVERAGE_LIBS
883CODE_COVERAGE_CXXFLAGS
884CODE_COVERAGE_CFLAGS
885CODE_COVERAGE_CPPFLAGS
886GENHTML
887LCOV
888GCOV
889CODE_COVERAGE_ENABLED
890CODE_COVERAGE_ENABLED_FALSE
891CODE_COVERAGE_ENABLED_TRUE
ea04106b
AX
892am__fastdepCCAS_FALSE
893am__fastdepCCAS_TRUE
894CCASDEPMODE
895CCASFLAGS
896CCAS
897CPP
898OTOOL64
899OTOOL
900LIPO
901NMEDIT
902DSYMUTIL
cae5b340 903lt_ECHO
ea04106b 904RANLIB
ea04106b 905AR
ea04106b
AX
906OBJDUMP
907LN_S
908NM
909ac_ct_DUMPBIN
910DUMPBIN
911LD
912FGREP
913EGREP
914GREP
915SED
916LIBTOOL
917am__fastdepCC_FALSE
918am__fastdepCC_TRUE
919CCDEPMODE
ea04106b
AX
920AMDEPBACKSLASH
921AMDEP_FALSE
922AMDEP_TRUE
923am__quote
924am__include
925DEPDIR
926OBJEXT
927EXEEXT
928ac_ct_CC
929CPPFLAGS
930LDFLAGS
931CFLAGS
932CC
933am__untar
934am__tar
935AMTAR
936am__leading_dot
937SET_MAKE
938mkdir_p
939MKDIR_P
940INSTALL_STRIP_PROGRAM
941STRIP
942install_sh
943MAKEINFO
944AUTOHEADER
945AUTOMAKE
946AUTOCONF
947ACLOCAL
948VERSION
949PACKAGE
950CYGPATH_W
951am__isrc
952INSTALL_DATA
953INSTALL_SCRIPT
954INSTALL_PROGRAM
955AM_BACKSLASH
956AM_DEFAULT_VERBOSITY
ea04106b
AX
957MAINT
958MAINTAINER_MODE_FALSE
959MAINTAINER_MODE_TRUE
960target_os
961target_vendor
962target_cpu
963target
964host_os
965host_vendor
966host_cpu
967host
968build_os
969build_vendor
970build_cpu
971build
972ZFS_META_LT_AGE
973ZFS_META_LT_REVISION
974ZFS_META_LT_CURRENT
975ZFS_META_AUTHOR
976ZFS_META_DATA
977ZFS_META_ALIAS
978ZFS_META_LICENSE
979RELEASE
980ZFS_META_RELEASE
981ZFS_META_VERSION
982ZFS_META_NAME
983AWK
984target_alias
985host_alias
986build_alias
987LIBS
988ECHO_T
989ECHO_N
990ECHO_C
991DEFS
992mandir
993localedir
994libdir
995psdir
996pdfdir
997dvidir
998htmldir
999infodir
1000docdir
1001oldincludedir
1002includedir
1003localstatedir
1004sharedstatedir
1005sysconfdir
1006datadir
1007datarootdir
1008libexecdir
1009sbindir
1010bindir
1011program_transform_name
1012prefix
1013exec_prefix
ea04106b
AX
1014PACKAGE_BUGREPORT
1015PACKAGE_STRING
1016PACKAGE_VERSION
1017PACKAGE_TARNAME
1018PACKAGE_NAME
1019PATH_SEPARATOR
1020SHELL'
1021ac_subst_files=''
1022ac_user_opts='
1023enable_option_checking
1024enable_maintainer_mode
1025enable_silent_rules
1026enable_dependency_tracking
1027enable_shared
1028enable_static
1029with_pic
1030enable_fast_install
1031with_gnu_ld
ea04106b 1032enable_libtool_lock
42f7b73b
AX
1033with_gcov
1034enable_code_coverage
ea04106b
AX
1035with_spec
1036with_config
1037enable_linux_builtin
1038with_linux
1039with_linux_obj
1040with_spl
1041with_spl_obj
1042with_spl_timeout
cae5b340
AX
1043with_qat
1044with_qat_obj
ea04106b
AX
1045with_mounthelperdir
1046with_udevdir
1047with_udevruledir
1048enable_systemd
1049with_systemdunitdir
1050with_systemdpresetdir
1051with_systemdmodulesloaddir
1052enable_sysvinit
1053with_dracutdir
cae5b340 1054with_tirpc
ea04106b 1055enable_debug
42f7b73b 1056enable_debuginfo
ea04106b
AX
1057'
1058 ac_precious_vars='build_alias
1059host_alias
1060target_alias
1061CC
1062CFLAGS
1063LDFLAGS
1064LIBS
1065CPPFLAGS
1066CPP
1067CCAS
1068CCASFLAGS'
1069
1070
1071# Initialize some variables set by options.
1072ac_init_help=
1073ac_init_version=false
1074ac_unrecognized_opts=
1075ac_unrecognized_sep=
1076# The variables have the same names as the options, with
1077# dashes changed to underlines.
1078cache_file=/dev/null
1079exec_prefix=NONE
1080no_create=
1081no_recursion=
1082prefix=NONE
1083program_prefix=NONE
1084program_suffix=NONE
1085program_transform_name=s,x,x,
1086silent=
1087site=
1088srcdir=
1089verbose=
1090x_includes=NONE
1091x_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.)
1099bindir='${exec_prefix}/bin'
1100sbindir='${exec_prefix}/sbin'
1101libexecdir='${exec_prefix}/libexec'
1102datarootdir='${prefix}/share'
1103datadir='${datarootdir}'
1104sysconfdir='${prefix}/etc'
1105sharedstatedir='${prefix}/com'
1106localstatedir='${prefix}/var'
1107includedir='${prefix}/include'
1108oldincludedir='/usr/include'
1109docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1110infodir='${datarootdir}/info'
1111htmldir='${docdir}'
1112dvidir='${docdir}'
1113pdfdir='${docdir}'
1114psdir='${docdir}'
1115libdir='${exec_prefix}/lib'
1116localedir='${datarootdir}/locale'
1117mandir='${datarootdir}/man'
1118
1119ac_prev=
1120ac_dashdash=
1121for ac_option
1122do
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
cae5b340
AX
1131 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1132 *) ac_optarg=yes ;;
ea04106b
AX
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 &&
cae5b340
AX
1177 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1178 { (exit 1); exit 1; }; }
ea04106b
AX
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 &&
cae5b340
AX
1204 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1205 { (exit 1); exit 1; }; }
ea04106b
AX
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 &&
cae5b340
AX
1409 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1410 { (exit 1); exit 1; }; }
ea04106b
AX
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 &&
cae5b340
AX
1426 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1427 { (exit 1); exit 1; }; }
ea04106b
AX
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
cae5b340
AX
1457 -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1458Try \`$0 --help' for more information." >&2
1459 { (exit 1); exit 1; }; }
ea04106b
AX
1460 ;;
1461
1462 *=*)
1463 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1464 # Reject names that are not valid shell variable names.
cae5b340
AX
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; }; }
ea04106b
AX
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
cae5b340 1476 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
ea04106b
AX
1477 ;;
1478
1479 esac
1480done
1481
1482if test -n "$ac_prev"; then
1483 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
cae5b340
AX
1484 { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1485 { (exit 1); exit 1; }; }
ea04106b
AX
1486fi
1487
1488if test -n "$ac_unrecognized_opts"; then
1489 case $enable_option_checking in
1490 no) ;;
cae5b340
AX
1491 fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
1492 { (exit 1); exit 1; }; } ;;
ea04106b
AX
1493 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1494 esac
1495fi
1496
1497# Check all directory arguments for consistency.
1498for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1499 datadir sysconfdir sharedstatedir localstatedir includedir \
1500 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
22929307 1501 libdir localedir mandir
ea04106b
AX
1502do
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
cae5b340
AX
1515 { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1516 { (exit 1); exit 1; }; }
ea04106b
AX
1517done
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.
1522build=$build_alias
1523host=$host_alias
1524target=$target_alias
1525
1526# FIXME: To remove some day.
1527if test "x$host_alias" != x; then
1528 if test "x$build_alias" = x; then
1529 cross_compiling=maybe
cae5b340
AX
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
ea04106b
AX
1532 elif test "x$build_alias" != "x$host_alias"; then
1533 cross_compiling=yes
1534 fi
1535fi
1536
1537ac_tool_prefix=
1538test -n "$host_alias" && ac_tool_prefix=$host_alias-
1539
1540test "$silent" = yes && exec 6>/dev/null
1541
1542
1543ac_pwd=`pwd` && test -n "$ac_pwd" &&
1544ac_ls_di=`ls -di .` &&
1545ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
cae5b340
AX
1546 { $as_echo "$as_me: error: working directory cannot be determined" >&2
1547 { (exit 1); exit 1; }; }
ea04106b 1548test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
cae5b340
AX
1549 { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1550 { (exit 1); exit 1; }; }
ea04106b
AX
1551
1552
1553# Find the source files, if location was not specified.
1554if 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
1584else
1585 ac_srcdir_defaulted=no
1586fi
1587if test ! -r "$srcdir/$ac_unique_file"; then
1588 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
cae5b340
AX
1589 { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1590 { (exit 1); exit 1; }; }
ea04106b
AX
1591fi
1592ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1593ac_abs_confdir=`(
cae5b340
AX
1594 cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1595 { (exit 1); exit 1; }; }
ea04106b
AX
1596 pwd)`
1597# When building in place, set srcdir=.
1598if test "$ac_abs_confdir" = "$ac_pwd"; then
1599 srcdir=.
1600fi
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.
1604case $srcdir in
1605*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1606esac
1607for 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}
1612done
1613
1614#
1615# Report the --help message.
1616#
1617if 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
42f7b73b 1621\`configure' configures zfs 0.7.9 to adapt to many kinds of systems.
ea04106b
AX
1622
1623Usage: $0 [OPTION]... [VAR=VALUE]...
1624
1625To assign environment variables (e.g., CC, CFLAGS...), specify them as
1626VAR=VALUE. See below for descriptions of some of the useful variables.
1627
1628Defaults for the options are specified in brackets.
1629
1630Configuration:
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
cae5b340 1635 -q, --quiet, --silent do not print \`checking...' messages
ea04106b
AX
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
1641Installation 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
1647By default, \`make install' will install all the files in
1648\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1649an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1650for instance \`--prefix=\$HOME'.
1651
1652For better control, use the options below.
1653
1654Fine 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
1678Program 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
1683System 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
1688fi
1689
1690if test -n "$ac_init_help"; then
1691 case $ac_init_help in
42f7b73b 1692 short | recursive ) echo "Configuration of zfs 0.7.9:";;
ea04106b
AX
1693 esac
1694 cat <<\_ACEOF
1695
1696Optional 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]
cae5b340
AX
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
ea04106b
AX
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)
42f7b73b 1711 --enable-code-coverage Whether to enable code coverage support
ea04106b
AX
1712 --enable-linux-builtin Configure for builtin in-tree kernel modules
1713 [default=no]
cae5b340
AX
1714 --enable-systemd install systemd unit/preset files
1715 [default:], [yes]
1716 --enable-sysvinit install SysV init scripts default:, yes
42f7b73b
AX
1717 --enable-debug Enable assertion support [default=no]
1718 --enable-debuginfo Force generation of debuginfo [default=no]
ea04106b
AX
1719
1720Optional Packages:
1721 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1722 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
cae5b340 1723 --with-pic try to use only PIC/non-PIC objects [default=use
ea04106b
AX
1724 both]
1725 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
42f7b73b 1726 --with-gcov=GCOV use given GCOV for coverage (GCOV=gcov).
ea04106b
AX
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]
cae5b340
AX
1734 --with-qat=PATH Path to qat source
1735 --with-qat-obj=PATH Path to qat build objects
ea04106b 1736 --with-mounthelperdir=DIR
cae5b340 1737 install mount.zfs in dir [/sbin]
ea04106b 1738 --with-udevdir=DIR install udev helpers [default=check]
cae5b340 1739 --with-udevruledir=DIR install udev rules [UDEVDIR/rules.d]
ea04106b
AX
1740 --with-systemdunitdir=DIR
1741 install systemd unit files in dir
cae5b340 1742 [/usr/lib/systemd/system]
ea04106b
AX
1743 --with-systemdpresetdir=DIR
1744 install systemd preset files in dir
cae5b340 1745 [/usr/lib/systemd/system-preset]
ea04106b
AX
1746 --with-systemdmodulesloaddir=DIR
1747 install systemd module load files into dir
cae5b340 1748 [/usr/lib/modules-load.d]
ea04106b 1749 --with-dracutdir=DIR install dracut helpers [default=check]
cae5b340 1750 --with-tirpc use tirpc for xdr encoding [default=check]
ea04106b
AX
1751
1752Some 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>
cae5b340 1758 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
ea04106b
AX
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
1764Use these variables to override the choices made by `configure' or to help
1765it to find libraries and programs with nonstandard names/locations.
1766
ea04106b
AX
1767_ACEOF
1768ac_status=$?
1769fi
1770
1771if 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
1779case "$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 ;;
1789esac
1790ac_abs_top_builddir=$ac_pwd
1791ac_abs_builddir=$ac_pwd$ac_dir_suffix
1792# for backward compatibility:
1793ac_top_builddir=$ac_top_build_prefix
1794
1795case $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 ;;
1808esac
1809ac_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
1824fi
1825
1826test -n "$ac_init_help" && exit $ac_status
1827if $ac_init_version; then
1828 cat <<\_ACEOF
42f7b73b 1829zfs configure 0.7.9
cae5b340 1830generated by GNU Autoconf 2.63
ea04106b 1831
cae5b340
AX
1832Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
18332002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
ea04106b
AX
1834This configure script is free software; the Free Software Foundation
1835gives unlimited permission to copy, distribute and modify it.
1836_ACEOF
1837 exit
1838fi
ea04106b
AX
1839cat >config.log <<_ACEOF
1840This file contains any messages produced by compilers while
1841running configure, to aid debugging if configure makes a mistake.
1842
42f7b73b 1843It was created by zfs $as_me 0.7.9, which was
cae5b340 1844generated by GNU Autoconf 2.63. Invocation command line was
ea04106b
AX
1845
1846 $ $0 $@
1847
1848_ACEOF
1849exec 5>>config.log
1850{
1851cat <<_ASUNAME
1852## --------- ##
1853## Platform. ##
1854## --------- ##
1855
1856hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1857uname -m = `(uname -m) 2>/dev/null || echo unknown`
1858uname -r = `(uname -r) 2>/dev/null || echo unknown`
1859uname -s = `(uname -s) 2>/dev/null || echo unknown`
1860uname -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
1875as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1876for as_dir in $PATH
1877do
1878 IFS=$as_save_IFS
1879 test -z "$as_dir" && as_dir=.
cae5b340
AX
1880 $as_echo "PATH: $as_dir"
1881done
ea04106b
AX
1882IFS=$as_save_IFS
1883
1884} >&5
1885
1886cat >&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.
1901ac_configure_args=
1902ac_configure_args0=
1903ac_configure_args1=
1904ac_must_keep_next=false
1905for ac_pass in 1 2
1906do
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
cae5b340 1918 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
ea04106b 1919 2)
cae5b340 1920 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
ea04106b
AX
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
cae5b340 1936 ac_configure_args="$ac_configure_args '$ac_arg'"
ea04106b
AX
1937 ;;
1938 esac
1939 done
1940done
cae5b340
AX
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; }
ea04106b
AX
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.
1949trap 'exit_status=$?
1950 # Save into config.log some information that might help in debugging.
1951 {
1952 echo
1953
cae5b340
AX
1954 cat <<\_ASBOX
1955## ---------------- ##
ea04106b 1956## Cache variables. ##
cae5b340
AX
1957## ---------------- ##
1958_ASBOX
ea04106b
AX
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 #(
cae5b340 1967 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
ea04106b
AX
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= ;; #(
cae5b340 1973 *) $as_unset $ac_var ;;
ea04106b
AX
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
cae5b340
AX
1992 cat <<\_ASBOX
1993## ----------------- ##
ea04106b 1994## Output variables. ##
cae5b340
AX
1995## ----------------- ##
1996_ASBOX
ea04106b
AX
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
cae5b340
AX
2009 cat <<\_ASBOX
2010## ------------------- ##
ea04106b 2011## File substitutions. ##
cae5b340
AX
2012## ------------------- ##
2013_ASBOX
ea04106b
AX
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
cae5b340
AX
2027 cat <<\_ASBOX
2028## ----------- ##
ea04106b 2029## confdefs.h. ##
cae5b340
AX
2030## ----------- ##
2031_ASBOX
ea04106b
AX
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
2044for ac_signal in 1 2 13 15; do
cae5b340 2045 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
ea04106b
AX
2046done
2047ac_signal=0
2048
2049# confdefs.h avoids OS command line length limits that DEFS can exceed.
2050rm -f -r conftest* confdefs.h
2051
ea04106b
AX
2052# Predefined preprocessor variables.
2053
2054cat >>confdefs.h <<_ACEOF
2055#define PACKAGE_NAME "$PACKAGE_NAME"
2056_ACEOF
2057
cae5b340 2058
ea04106b
AX
2059cat >>confdefs.h <<_ACEOF
2060#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2061_ACEOF
2062
cae5b340 2063
ea04106b
AX
2064cat >>confdefs.h <<_ACEOF
2065#define PACKAGE_VERSION "$PACKAGE_VERSION"
2066_ACEOF
2067
cae5b340 2068
ea04106b
AX
2069cat >>confdefs.h <<_ACEOF
2070#define PACKAGE_STRING "$PACKAGE_STRING"
2071_ACEOF
2072
ea04106b
AX
2073
2074cat >>confdefs.h <<_ACEOF
cae5b340 2075#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
ea04106b
AX
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.
2081ac_site_file1=NONE
2082ac_site_file2=NONE
2083if test -n "$CONFIG_SITE"; then
cae5b340 2084 ac_site_file1=$CONFIG_SITE
ea04106b
AX
2085elif test "x$prefix" != xNONE; then
2086 ac_site_file1=$prefix/share/config.site
2087 ac_site_file2=$prefix/etc/config.site
2088else
2089 ac_site_file1=$ac_default_prefix/share/config.site
2090 ac_site_file2=$ac_default_prefix/etc/config.site
2091fi
2092for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2093do
2094 test "x$ac_site_file" = xNONE && continue
cae5b340
AX
2095 if test -r "$ac_site_file"; then
2096 { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
ea04106b
AX
2097$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2098 sed 's/^/| /' "$ac_site_file" >&5
cae5b340 2099 . "$ac_site_file"
ea04106b
AX
2100 fi
2101done
2102
2103if test -r "$cache_file"; then
cae5b340
AX
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
ea04106b
AX
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
2114else
cae5b340 2115 { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
ea04106b
AX
2116$as_echo "$as_me: creating cache $cache_file" >&6;}
2117 >$cache_file
2118fi
2119
2120# Check that the precious variables saved in the cache have kept the same
2121# value.
2122ac_cache_corrupted=false
2123for 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,)
cae5b340 2130 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
ea04106b
AX
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)
cae5b340 2134 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
ea04106b
AX
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
cae5b340 2144 { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
ea04106b
AX
2145$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2146 ac_cache_corrupted=:
2147 else
cae5b340 2148 { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
ea04106b
AX
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
cae5b340 2152 { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
ea04106b 2153$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
cae5b340 2154 { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
ea04106b
AX
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.
cae5b340 2166 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
ea04106b
AX
2167 esac
2168 fi
2169done
2170if $ac_cache_corrupted; then
cae5b340 2171 { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
ea04106b 2172$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cae5b340 2173 { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
ea04106b 2174$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
cae5b340
AX
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; }; }
ea04106b 2178fi
cae5b340
AX
2179
2180
2181
2182
2183
2184
2185
2186
2187
2188
2189
2190
2191
2192
2193
2194
2195
2196
2197
2198
2199
2200
2201
2202
ea04106b
AX
2203
2204ac_ext=c
2205ac_cpp='$CPP $CPPFLAGS'
2206ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2207ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2208ac_compiler_gnu=$ac_cv_c_compiler_gnu
2209
2210
2211ac_ext=c
2212ac_cpp='$CPP $CPPFLAGS'
2213ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2214ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2215ac_compiler_gnu=$ac_cv_c_compiler_gnu
2216
2217
2218
2219
2220
cae5b340 2221
ea04106b
AX
2222 for ac_prog in gawk mawk nawk awk
2223do
2224 # Extract the first word of "$ac_prog", so it can be a program name with args.
2225set dummy $ac_prog; ac_word=$2
cae5b340 2226{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
ea04106b 2227$as_echo_n "checking for $ac_word... " >&6; }
cae5b340 2228if test "${ac_cv_prog_AWK+set}" = set; then
ea04106b
AX
2229 $as_echo_n "(cached) " >&6
2230else
2231 if test -n "$AWK"; then
2232 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2233else
2234as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2235for as_dir in $PATH
2236do
2237 IFS=$as_save_IFS
2238 test -z "$as_dir" && as_dir=.
cae5b340
AX
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
ea04106b 2241 ac_cv_prog_AWK="$ac_prog"
cae5b340 2242 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
ea04106b
AX
2243 break 2
2244 fi
2245done
cae5b340 2246done
ea04106b
AX
2247IFS=$as_save_IFS
2248
2249fi
2250fi
2251AWK=$ac_cv_prog_AWK
2252if test -n "$AWK"; then
cae5b340 2253 { $as_echo "$as_me:$LINENO: result: $AWK" >&5
ea04106b
AX
2254$as_echo "$AWK" >&6; }
2255else
cae5b340 2256 { $as_echo "$as_me:$LINENO: result: no" >&5
ea04106b
AX
2257$as_echo "no" >&6; }
2258fi
2259
2260
2261 test -n "$AWK" && break
2262done
2263
cae5b340 2264 { $as_echo "$as_me:$LINENO: checking metadata" >&5
ea04106b
AX
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
2275cat >>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
2285cat >>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"
cae5b340
AX
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
ea04106b
AX
2308 fi
2309 fi
2310
2311 if test -n "$ZFS_META_RELEASE"; then
2312
2313cat >>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
2326cat >>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
2338cat >>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
2348cat >>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
2358cat >>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
2376cat >>confdefs.h <<_ACEOF
2377#define ZFS_META_LT_CURRENT "$ZFS_META_LT_CURRENT"
2378_ACEOF
2379
2380
2381cat >>confdefs.h <<_ACEOF
2382#define ZFS_META_LT_REVISION "$ZFS_META_LT_REVISION"
2383_ACEOF
2384
2385
2386cat >>confdefs.h <<_ACEOF
2387#define ZFS_META_LT_AGE "$ZFS_META_LT_AGE"
2388_ACEOF
2389
2390
2391
2392
2393 fi
2394 fi
2395
cae5b340 2396 { $as_echo "$as_me:$LINENO: result: $_zfs_ac_meta_type" >&5
ea04106b
AX
2397$as_echo "$_zfs_ac_meta_type" >&6; }
2398
2399
2400ac_aux_dir=
2401for 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
2415done
2416if test -z "$ac_aux_dir"; then
cae5b340
AX
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; }; }
ea04106b
AX
2420fi
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.
2426ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2427ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2428ac_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 ||
cae5b340
AX
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; }; }
ea04106b 2437
cae5b340 2438{ $as_echo "$as_me:$LINENO: checking build system type" >&5
ea04106b 2439$as_echo_n "checking build system type... " >&6; }
cae5b340 2440if test "${ac_cv_build+set}" = set; then
ea04106b
AX
2441 $as_echo_n "(cached) " >&6
2442else
2443 ac_build_alias=$build_alias
2444test "x$ac_build_alias" = x &&
2445 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2446test "x$ac_build_alias" = x &&
cae5b340
AX
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; }; }
ea04106b 2450ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
cae5b340
AX
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; }; }
ea04106b
AX
2454
2455fi
cae5b340 2456{ $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
ea04106b
AX
2457$as_echo "$ac_cv_build" >&6; }
2458case $ac_cv_build in
2459*-*-*) ;;
cae5b340
AX
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; }; };;
ea04106b
AX
2463esac
2464build=$ac_cv_build
2465ac_save_IFS=$IFS; IFS='-'
2466set x $ac_cv_build
2467shift
2468build_cpu=$1
2469build_vendor=$2
2470shift; shift
2471# Remember, the first character of IFS is used to create $*,
2472# except with old shells:
2473build_os=$*
2474IFS=$ac_save_IFS
2475case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2476
2477
cae5b340 2478{ $as_echo "$as_me:$LINENO: checking host system type" >&5
ea04106b 2479$as_echo_n "checking host system type... " >&6; }
cae5b340 2480if test "${ac_cv_host+set}" = set; then
ea04106b
AX
2481 $as_echo_n "(cached) " >&6
2482else
2483 if test "x$host_alias" = x; then
2484 ac_cv_host=$ac_cv_build
2485else
2486 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
cae5b340
AX
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; }; }
ea04106b
AX
2490fi
2491
2492fi
cae5b340 2493{ $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
ea04106b
AX
2494$as_echo "$ac_cv_host" >&6; }
2495case $ac_cv_host in
2496*-*-*) ;;
cae5b340
AX
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; }; };;
ea04106b
AX
2500esac
2501host=$ac_cv_host
2502ac_save_IFS=$IFS; IFS='-'
2503set x $ac_cv_host
2504shift
2505host_cpu=$1
2506host_vendor=$2
2507shift; shift
2508# Remember, the first character of IFS is used to create $*,
2509# except with old shells:
2510host_os=$*
2511IFS=$ac_save_IFS
2512case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2513
2514
cae5b340 2515{ $as_echo "$as_me:$LINENO: checking target system type" >&5
ea04106b 2516$as_echo_n "checking target system type... " >&6; }
cae5b340 2517if test "${ac_cv_target+set}" = set; then
ea04106b
AX
2518 $as_echo_n "(cached) " >&6
2519else
2520 if test "x$target_alias" = x; then
2521 ac_cv_target=$ac_cv_host
2522else
2523 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
cae5b340
AX
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; }; }
ea04106b
AX
2527fi
2528
2529fi
cae5b340 2530{ $as_echo "$as_me:$LINENO: result: $ac_cv_target" >&5
ea04106b
AX
2531$as_echo "$ac_cv_target" >&6; }
2532case $ac_cv_target in
2533*-*-*) ;;
cae5b340
AX
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; }; };;
ea04106b
AX
2537esac
2538target=$ac_cv_target
2539ac_save_IFS=$IFS; IFS='-'
2540set x $ac_cv_target
2541shift
2542target_cpu=$1
2543target_vendor=$2
2544shift; shift
2545# Remember, the first character of IFS is used to create $*,
2546# except with old shells:
2547target_os=$*
2548IFS=$ac_save_IFS
2549case $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.
2554test -n "$target_alias" &&
2555 test "$program_prefix$program_suffix$program_transform_name" = \
2556 NONENONEs,x,x, &&
2557 program_prefix=${target_alias}-
2558
cae5b340 2559{ $as_echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
ea04106b
AX
2560$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2561 # Check whether --enable-maintainer-mode was given.
cae5b340 2562if test "${enable_maintainer_mode+set}" = set; then
ea04106b
AX
2563 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2564else
2565 USE_MAINTAINER_MODE=no
2566fi
2567
cae5b340 2568 { $as_echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
ea04106b
AX
2569$as_echo "$USE_MAINTAINER_MODE" >&6; }
2570 if test $USE_MAINTAINER_MODE = yes; then
2571 MAINTAINER_MODE_TRUE=
2572 MAINTAINER_MODE_FALSE='#'
2573else
2574 MAINTAINER_MODE_TRUE='#'
2575 MAINTAINER_MODE_FALSE=
2576fi
2577
2578 MAINT=$MAINTAINER_MODE_TRUE
2579
2580
2581# Check whether --enable-silent-rules was given.
cae5b340 2582if test "${enable_silent_rules+set}" = set; then
ea04106b
AX
2583 enableval=$enable_silent_rules;
2584fi
2585
cae5b340
AX
2586case $enable_silent_rules in
2587yes) AM_DEFAULT_VERBOSITY=0;;
2588no) AM_DEFAULT_VERBOSITY=1;;
2589*) AM_DEFAULT_VERBOSITY=0;;
ea04106b 2590esac
ea04106b
AX
2591AM_BACKSLASH='\'
2592
cae5b340 2593am__api_version='1.11'
ea04106b
AX
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.
cae5b340 2609{ $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
ea04106b
AX
2610$as_echo_n "checking for a BSD-compatible install... " >&6; }
2611if test -z "$INSTALL"; then
cae5b340 2612if test "${ac_cv_path_install+set}" = set; then
ea04106b
AX
2613 $as_echo_n "(cached) " >&6
2614else
2615 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2616for as_dir in $PATH
2617do
2618 IFS=$as_save_IFS
2619 test -z "$as_dir" && as_dir=.
cae5b340
AX
2620 # Account for people who put trailing slashes in PATH elements.
2621case $as_dir/ in
2622 ./ | .// | /cC/* | \
ea04106b 2623 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
cae5b340 2624 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
ea04106b
AX
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
cae5b340 2632 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
ea04106b
AX
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 ;;
2659esac
2660
cae5b340 2661done
ea04106b
AX
2662IFS=$as_save_IFS
2663
2664rm -rf conftest.one conftest.two conftest.dir
2665
2666fi
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
2676fi
cae5b340 2677{ $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
ea04106b
AX
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.
2682test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2683
2684test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2685
2686test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2687
cae5b340 2688{ $as_echo "$as_me:$LINENO: checking whether build environment is sane" >&5
ea04106b 2689$as_echo_n "checking whether build environment is sane... " >&6; }
cae5b340
AX
2690# Just in case
2691sleep 1
2692echo timestamp > conftest.file
ea04106b
AX
2693# Reject unsafe characters in $srcdir or the absolute working directory
2694# name. Accept space and tab only in the latter.
2695am_lf='
2696'
2697case `pwd` in
2698 *[\\\"\#\$\&\'\`$am_lf]*)
cae5b340
AX
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; }; };;
ea04106b
AX
2702esac
2703case $srcdir in
2704 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
cae5b340
AX
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; }; };;
ea04106b
AX
2708esac
2709
cae5b340 2710# Do `set' in a subshell so we don't clobber the current shell's
ea04106b
AX
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).
2715if (
cae5b340
AX
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
2730alias in your environment" >&5
2731$as_echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2732alias in your environment" >&2;}
2733 { (exit 1); exit 1; }; }
2734 fi
2735
ea04106b
AX
2736 test "$2" = conftest.file
2737 )
2738then
2739 # Ok.
2740 :
2741else
cae5b340
AX
2742 { { $as_echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2743Check your system clock" >&5
2744$as_echo "$as_me: error: newly created file is older than distributed files!
2745Check your system clock" >&2;}
2746 { (exit 1); exit 1; }; }
ea04106b 2747fi
cae5b340 2748{ $as_echo "$as_me:$LINENO: result: yes" >&5
ea04106b
AX
2749$as_echo "yes" >&6; }
2750test "$program_prefix" != NONE &&
2751 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2752# Use a double $ so make ignores it.
2753test "$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.
2757ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2758program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2759
cae5b340
AX
2760# expand $ac_aux_dir to an absolute path
2761am_aux_dir=`cd $ac_aux_dir && pwd`
ea04106b
AX
2762
2763if 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
2770fi
2771# Use eval to expand $SHELL
cae5b340
AX
2772if eval "$MISSING --run true"; then
2773 am_missing_run="$MISSING --run "
ea04106b
AX
2774else
2775 am_missing_run=
cae5b340
AX
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;}
ea04106b
AX
2778fi
2779
cae5b340 2780if test x"${install_sh}" != xset; then
ea04106b
AX
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
2787fi
2788
cae5b340
AX
2789# Installed binaries are usually stripped using `strip' when the user
2790# run `make install-strip'. However `strip' might not be the right
ea04106b 2791# tool to use in cross-compilation environments, therefore Automake
cae5b340 2792# will honor the `STRIP' environment variable to overrule this program.
ea04106b
AX
2793if 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.
2796set dummy ${ac_tool_prefix}strip; ac_word=$2
cae5b340 2797{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
ea04106b 2798$as_echo_n "checking for $ac_word... " >&6; }
cae5b340 2799if test "${ac_cv_prog_STRIP+set}" = set; then
ea04106b
AX
2800 $as_echo_n "(cached) " >&6
2801else
2802 if test -n "$STRIP"; then
2803 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2804else
2805as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2806for as_dir in $PATH
2807do
2808 IFS=$as_save_IFS
2809 test -z "$as_dir" && as_dir=.
cae5b340
AX
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
ea04106b 2812 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
cae5b340 2813 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
ea04106b
AX
2814 break 2
2815 fi
2816done
cae5b340 2817done
ea04106b
AX
2818IFS=$as_save_IFS
2819
2820fi
2821fi
2822STRIP=$ac_cv_prog_STRIP
2823if test -n "$STRIP"; then
cae5b340 2824 { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
ea04106b
AX
2825$as_echo "$STRIP" >&6; }
2826else
cae5b340 2827 { $as_echo "$as_me:$LINENO: result: no" >&5
ea04106b
AX
2828$as_echo "no" >&6; }
2829fi
2830
2831
2832fi
2833if 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.
2836set dummy strip; ac_word=$2
cae5b340 2837{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
ea04106b 2838$as_echo_n "checking for $ac_word... " >&6; }
cae5b340 2839if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
ea04106b
AX
2840 $as_echo_n "(cached) " >&6
2841else
2842 if test -n "$ac_ct_STRIP"; then
2843 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2844else
2845as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2846for as_dir in $PATH
2847do
2848 IFS=$as_save_IFS
2849 test -z "$as_dir" && as_dir=.
cae5b340
AX
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
ea04106b 2852 ac_cv_prog_ac_ct_STRIP="strip"
cae5b340 2853 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
ea04106b
AX
2854 break 2
2855 fi
2856done
cae5b340 2857done
ea04106b
AX
2858IFS=$as_save_IFS
2859
2860fi
2861fi
2862ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2863if test -n "$ac_ct_STRIP"; then
cae5b340 2864 { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
ea04106b
AX
2865$as_echo "$ac_ct_STRIP" >&6; }
2866else
cae5b340 2867 { $as_echo "$as_me:$LINENO: result: no" >&5
ea04106b
AX
2868$as_echo "no" >&6; }
2869fi
2870
2871 if test "x$ac_ct_STRIP" = x; then
2872 STRIP=":"
2873 else
2874 case $cross_compiling:$ac_tool_warned in
2875yes:)
cae5b340 2876{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
ea04106b
AX
2877$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2878ac_tool_warned=yes ;;
2879esac
2880 STRIP=$ac_ct_STRIP
2881 fi
2882else
2883 STRIP="$ac_cv_prog_STRIP"
2884fi
2885
2886fi
2887INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2888
cae5b340 2889{ $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
ea04106b
AX
2890$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2891if test -z "$MKDIR_P"; then
cae5b340 2892 if test "${ac_cv_path_mkdir+set}" = set; then
ea04106b
AX
2893 $as_echo_n "(cached) " >&6
2894else
2895 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2896for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2897do
2898 IFS=$as_save_IFS
2899 test -z "$as_dir" && as_dir=.
cae5b340 2900 for ac_prog in mkdir gmkdir; do
ea04106b 2901 for ac_exec_ext in '' $ac_executable_extensions; do
cae5b340 2902 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
ea04106b
AX
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
cae5b340 2912done
ea04106b
AX
2913IFS=$as_save_IFS
2914
2915fi
2916
ea04106b
AX
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.
cae5b340 2924 test -d ./--version && rmdir ./--version
ea04106b
AX
2925 MKDIR_P="$ac_install_sh -d"
2926 fi
2927fi
cae5b340 2928{ $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5
ea04106b
AX
2929$as_echo "$MKDIR_P" >&6; }
2930
cae5b340
AX
2931mkdir_p="$MKDIR_P"
2932case $mkdir_p in
2933 [\\/$]* | ?:[\\/]*) ;;
2934 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2935esac
2936
2937{ $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
ea04106b
AX
2938$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2939set x ${MAKE-make}
2940ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
cae5b340 2941if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
ea04106b
AX
2942 $as_echo_n "(cached) " >&6
2943else
2944 cat >conftest.make <<\_ACEOF
2945SHELL = /bin/sh
2946all:
2947 @echo '@@@%%%=$(MAKE)=@@@%%%'
2948_ACEOF
cae5b340 2949# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
ea04106b
AX
2950case `${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;;
2955esac
2956rm -f conftest.make
2957fi
2958if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
cae5b340 2959 { $as_echo "$as_me:$LINENO: result: yes" >&5
ea04106b
AX
2960$as_echo "yes" >&6; }
2961 SET_MAKE=
2962else
cae5b340 2963 { $as_echo "$as_me:$LINENO: result: no" >&5
ea04106b
AX
2964$as_echo "no" >&6; }
2965 SET_MAKE="MAKE=${MAKE-make}"
2966fi
2967
2968rm -rf .tst 2>/dev/null
2969mkdir .tst 2>/dev/null
2970if test -d .tst; then
2971 am__leading_dot=.
2972else
2973 am__leading_dot=_
2974fi
2975rmdir .tst 2>/dev/null
2976
2977if 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
cae5b340
AX
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; }; }
ea04106b
AX
2986 fi
2987fi
2988
2989# test whether we have cygpath
2990if 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
2996fi
2997
2998
2999# Define the identity of the package.
3000 PACKAGE='zfs'
42f7b73b 3001 VERSION='0.7.9'
ea04106b
AX
3002
3003
3004cat >>confdefs.h <<_ACEOF
3005#define PACKAGE "$PACKAGE"
3006_ACEOF
3007
3008
3009cat >>confdefs.h <<_ACEOF
3010#define VERSION "$VERSION"
3011_ACEOF
3012
3013# Some tools Automake needs.
3014
3015ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3016
3017
3018AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3019
3020
3021AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3022
3023
3024AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3025
3026
3027MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3028
cae5b340
AX
3029# We need awk for the "check" target. The system "awk" is bad on
3030# some platforms.
3031# Always define AMTAR for backward compatibility.
ea04106b 3032
cae5b340 3033AMTAR=${AMTAR-"${am_missing_run}tar"}
68d83c55 3034
cae5b340 3035am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
68d83c55 3036
ea04106b
AX
3037
3038
3039
3040
cae5b340 3041ac_config_headers="$ac_config_headers zfs_config.h"
ea04106b 3042
68d83c55 3043
cae5b340
AX
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; }
3060if test -z "$INSTALL"; then
3061if test "${ac_cv_path_install+set}" = set; then
3062 $as_echo_n "(cached) " >&6
3063else
3064 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3065for as_dir in $PATH
3066do
3067 IFS=$as_save_IFS
3068 test -z "$as_dir" && as_dir=.
3069 # Account for people who put trailing slashes in PATH elements.
3070case $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 ;;
3108esac
68d83c55 3109
cae5b340
AX
3110done
3111IFS=$as_save_IFS
68d83c55 3112
cae5b340 3113rm -rf conftest.one conftest.two conftest.dir
68d83c55 3114
cae5b340
AX
3115fi
3116 if test "${ac_cv_path_install+set}" = set; then
3117 INSTALL=$ac_cv_path_install
68d83c55 3118 else
cae5b340
AX
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
68d83c55
AX
3124 fi
3125fi
cae5b340
AX
3126{ $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
3127$as_echo "$INSTALL" >&6; }
68d83c55 3128
cae5b340
AX
3129# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3130# It thinks the first close brace ends the variable substitution.
3131test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
ea04106b 3132
cae5b340 3133test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
ea04106b 3134
cae5b340 3135test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
ea04106b
AX
3136
3137ac_ext=c
3138ac_cpp='$CPP $CPPFLAGS'
3139ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3140ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3141ac_compiler_gnu=$ac_cv_c_compiler_gnu
3142if 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.
3144set dummy ${ac_tool_prefix}gcc; ac_word=$2
cae5b340 3145{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
ea04106b 3146$as_echo_n "checking for $ac_word... " >&6; }
cae5b340 3147if test "${ac_cv_prog_CC+set}" = set; then
ea04106b
AX
3148 $as_echo_n "(cached) " >&6
3149else
3150 if test -n "$CC"; then
3151 ac_cv_prog_CC="$CC" # Let the user override the test.
3152else
3153as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3154for as_dir in $PATH
3155do
3156 IFS=$as_save_IFS
3157 test -z "$as_dir" && as_dir=.
cae5b340
AX
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
ea04106b 3160 ac_cv_prog_CC="${ac_tool_prefix}gcc"
cae5b340 3161 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
ea04106b
AX
3162 break 2
3163 fi
3164done
cae5b340 3165done
ea04106b
AX
3166IFS=$as_save_IFS
3167
3168fi
3169fi
3170CC=$ac_cv_prog_CC
3171if test -n "$CC"; then
cae5b340 3172 { $as_echo "$as_me:$LINENO: result: $CC" >&5
ea04106b
AX
3173$as_echo "$CC" >&6; }
3174else
cae5b340 3175 { $as_echo "$as_me:$LINENO: result: no" >&5
ea04106b
AX
3176$as_echo "no" >&6; }
3177fi
3178
3179
3180fi
3181if 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.
3184set dummy gcc; ac_word=$2
cae5b340 3185{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
ea04106b 3186$as_echo_n "checking for $ac_word... " >&6; }
cae5b340 3187if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
ea04106b
AX
3188 $as_echo_n "(cached) " >&6
3189else
3190 if test -n "$ac_ct_CC"; then
3191 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3192else
3193as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3194for as_dir in $PATH
3195do
3196 IFS=$as_save_IFS
3197 test -z "$as_dir" && as_dir=.
cae5b340
AX
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
ea04106b 3200 ac_cv_prog_ac_ct_CC="gcc"
cae5b340 3201 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
ea04106b
AX
3202 break 2
3203 fi
3204done
cae5b340 3205done
ea04106b
AX
3206IFS=$as_save_IFS
3207
3208fi
3209fi
3210ac_ct_CC=$ac_cv_prog_ac_ct_CC
3211if test -n "$ac_ct_CC"; then
cae5b340 3212 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
ea04106b
AX
3213$as_echo "$ac_ct_CC" >&6; }
3214else
cae5b340 3215 { $as_echo "$as_me:$LINENO: result: no" >&5
ea04106b
AX
3216$as_echo "no" >&6; }
3217fi
3218
3219 if test "x$ac_ct_CC" = x; then
3220 CC=""
3221 else
3222 case $cross_compiling:$ac_tool_warned in
3223yes:)
cae5b340 3224{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
ea04106b
AX
3225$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3226ac_tool_warned=yes ;;
3227esac
3228 CC=$ac_ct_CC
3229 fi
3230else
3231 CC="$ac_cv_prog_CC"
3232fi
3233
3234if 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.
3237set dummy ${ac_tool_prefix}cc; ac_word=$2
cae5b340 3238{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
ea04106b 3239$as_echo_n "checking for $ac_word... " >&6; }
cae5b340 3240if test "${ac_cv_prog_CC+set}" = set; then
ea04106b
AX
3241 $as_echo_n "(cached) " >&6
3242else
3243 if test -n "$CC"; then
3244 ac_cv_prog_CC="$CC" # Let the user override the test.
3245else
3246as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3247for as_dir in $PATH
3248do
3249 IFS=$as_save_IFS
3250 test -z "$as_dir" && as_dir=.
cae5b340
AX
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
ea04106b 3253 ac_cv_prog_CC="${ac_tool_prefix}cc"
cae5b340 3254 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
ea04106b
AX
3255 break 2
3256 fi
3257done
cae5b340 3258done
ea04106b
AX
3259IFS=$as_save_IFS
3260
3261fi
3262fi
3263CC=$ac_cv_prog_CC
3264if test -n "$CC"; then
cae5b340 3265 { $as_echo "$as_me:$LINENO: result: $CC" >&5
ea04106b
AX
3266$as_echo "$CC" >&6; }
3267else
cae5b340 3268 { $as_echo "$as_me:$LINENO: result: no" >&5
ea04106b
AX
3269$as_echo "no" >&6; }
3270fi
3271
3272
3273 fi
3274fi
3275if test -z "$CC"; then
3276 # Extract the first word of "cc", so it can be a program name with args.
3277set dummy cc; ac_word=$2
cae5b340 3278{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
ea04106b 3279$as_echo_n "checking for $ac_word... " >&6; }
cae5b340 3280if test "${ac_cv_prog_CC+set}" = set; then
ea04106b
AX
3281 $as_echo_n "(cached) " >&6
3282else
3283 if test -n "$CC"; then
3284 ac_cv_prog_CC="$CC" # Let the user override the test.
3285else
3286 ac_prog_rejected=no
3287as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3288for as_dir in $PATH
3289do
3290 IFS=$as_save_IFS
3291 test -z "$as_dir" && as_dir=.
cae5b340
AX
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
ea04106b
AX
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"
cae5b340 3299 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
ea04106b
AX
3300 break 2
3301 fi
3302done
cae5b340 3303done
ea04106b
AX
3304IFS=$as_save_IFS
3305
3306if 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
3317fi
3318fi
3319fi
3320CC=$ac_cv_prog_CC
3321if test -n "$CC"; then
cae5b340 3322 { $as_echo "$as_me:$LINENO: result: $CC" >&5
ea04106b
AX
3323$as_echo "$CC" >&6; }
3324else
cae5b340 3325 { $as_echo "$as_me:$LINENO: result: no" >&5
ea04106b
AX
3326$as_echo "no" >&6; }
3327fi
3328
3329
3330fi
3331if 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.
3336set dummy $ac_tool_prefix$ac_prog; ac_word=$2
cae5b340 3337{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
ea04106b 3338$as_echo_n "checking for $ac_word... " >&6; }
cae5b340 3339if test "${ac_cv_prog_CC+set}" = set; then
ea04106b
AX
3340 $as_echo_n "(cached) " >&6
3341else
3342 if test -n "$CC"; then
3343 ac_cv_prog_CC="$CC" # Let the user override the test.
3344else
3345as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3346for as_dir in $PATH
3347do
3348 IFS=$as_save_IFS
3349 test -z "$as_dir" && as_dir=.
cae5b340
AX
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
ea04106b 3352 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
cae5b340 3353 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
ea04106b
AX
3354 break 2
3355 fi
3356done
cae5b340 3357done
ea04106b
AX
3358IFS=$as_save_IFS
3359
3360fi
3361fi
3362CC=$ac_cv_prog_CC
3363if test -n "$CC"; then
cae5b340 3364 { $as_echo "$as_me:$LINENO: result: $CC" >&5
ea04106b
AX
3365$as_echo "$CC" >&6; }
3366else
cae5b340 3367 { $as_echo "$as_me:$LINENO: result: no" >&5
ea04106b
AX
3368$as_echo "no" >&6; }
3369fi
3370
3371
3372 test -n "$CC" && break
3373 done
3374fi
3375if test -z "$CC"; then
3376 ac_ct_CC=$CC
3377 for ac_prog in cl.exe
3378do
3379 # Extract the first word of "$ac_prog", so it can be a program name with args.
3380set dummy $ac_prog; ac_word=$2
cae5b340 3381{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
ea04106b 3382$as_echo_n "checking for $ac_word... " >&6; }
cae5b340 3383if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
ea04106b
AX
3384 $as_echo_n "(cached) " >&6
3385else
3386 if test -n "$ac_ct_CC"; then
3387 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3388else
3389as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3390for as_dir in $PATH
3391do
3392 IFS=$as_save_IFS
3393 test -z "$as_dir" && as_dir=.
cae5b340
AX
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
ea04106b 3396 ac_cv_prog_ac_ct_CC="$ac_prog"
cae5b340 3397 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
ea04106b
AX
3398 break 2
3399 fi
3400done
cae5b340 3401done
ea04106b
AX
3402IFS=$as_save_IFS
3403
3404fi
3405fi
3406ac_ct_CC=$ac_cv_prog_ac_ct_CC
3407if test -n "$ac_ct_CC"; then
cae5b340 3408 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
ea04106b
AX
3409$as_echo "$ac_ct_CC" >&6; }
3410else
cae5b340 3411 { $as_echo "$as_me:$LINENO: result: no" >&5
ea04106b
AX
3412$as_echo "no" >&6; }
3413fi
3414
3415
3416 test -n "$ac_ct_CC" && break
3417done
3418
3419 if test "x$ac_ct_CC" = x; then
3420 CC=""
3421 else
3422 case $cross_compiling:$ac_tool_warned in
3423yes:)
cae5b340 3424{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
ea04106b
AX
3425$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3426ac_tool_warned=yes ;;
3427esac
3428 CC=$ac_ct_CC
3429 fi
3430fi
3431
3432fi
3433
3434
cae5b340 3435test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
ea04106b 3436$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cae5b340
AX
3437{ { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3438See \`config.log' for more details." >&5
3439$as_echo "$as_me: error: no acceptable C compiler found in \$PATH
3440See \`config.log' for more details." >&2;}
3441 { (exit 1); exit 1; }; }; }
ea04106b
AX
3442
3443# Provide some information about the compiler.
cae5b340 3444$as_echo "$as_me:$LINENO: checking for C compiler version" >&5
ea04106b
AX
3445set X $ac_compile
3446ac_compiler=$2
cae5b340 3447{ (ac_try="$ac_compiler --version >&5"
ea04106b
AX
3448case "(($ac_try" in
3449 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3450 *) ac_try_echo=$ac_try;;
3451esac
cae5b340
AX
3452eval 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"
3459case "(($ac_try" in
3460 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3461 *) ac_try_echo=$ac_try;;
3462esac
3463eval 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"
3470case "(($ac_try" in
3471 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3472 *) ac_try_echo=$ac_try;;
3473esac
3474eval 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); }
ea04106b 3480
cae5b340
AX
3481cat >conftest.$ac_ext <<_ACEOF
3482/* confdefs.h. */
3483_ACEOF
3484cat confdefs.h >>conftest.$ac_ext
3485cat >>conftest.$ac_ext <<_ACEOF
ea04106b
AX
3486/* end confdefs.h. */
3487
3488int
3489main ()
3490{
3491
3492 ;
3493 return 0;
3494}
3495_ACEOF
3496ac_clean_files_save=$ac_clean_files
3497ac_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.
cae5b340
AX
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; }
ea04106b
AX
3503ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3504
3505# The possible output files:
3506ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3507
3508ac_rmfiles=
3509for ac_file in $ac_files
3510do
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
3515done
3516rm -f $ac_rmfiles
3517
cae5b340 3518if { (ac_try="$ac_link_default"
ea04106b
AX
3519case "(($ac_try" in
3520 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3521 *) ac_try_echo=$ac_try;;
3522esac
cae5b340
AX
3523eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3524$as_echo "$ac_try_echo") >&5
ea04106b
AX
3525 (eval "$ac_link_default") 2>&5
3526 ac_status=$?
cae5b340
AX
3527 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3528 (exit $ac_status); }; then
ea04106b
AX
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.
3534for ac_file in $ac_files ''
3535do
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 *.* )
cae5b340 3545 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
ea04106b
AX
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
3558done
3559test "$ac_cv_exeext" = no && ac_cv_exeext=
3560
3561else
3562 ac_file=''
3563fi
cae5b340
AX
3564
3565{ $as_echo "$as_me:$LINENO: result: $ac_file" >&5
3566$as_echo "$ac_file" >&6; }
3567if test -z "$ac_file"; then
3568 $as_echo "$as_me: failed program was:" >&5
ea04106b
AX
3569sed 's/^/| /' conftest.$ac_ext >&5
3570
cae5b340 3571{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
ea04106b 3572$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cae5b340
AX
3573{ { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
3574See \`config.log' for more details." >&5
3575$as_echo "$as_me: error: C compiler cannot create executables
3576See \`config.log' for more details." >&2;}
3577 { (exit 77); exit 77; }; }; }
ea04106b 3578fi
cae5b340 3579
ea04106b
AX
3580ac_exeext=$ac_cv_exeext
3581
cae5b340
AX
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.
3588if 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;;
3593esac
3594eval 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.
3608If you meant to cross compile, use \`--host'.
3609See \`config.log' for more details." >&5
3610$as_echo "$as_me: error: cannot run C compiled programs.
3611If you meant to cross compile, use \`--host'.
3612See \`config.log' for more details." >&2;}
3613 { (exit 1); exit 1; }; }; }
3614 fi
3615 fi
3616fi
3617{ $as_echo "$as_me:$LINENO: result: yes" >&5
3618$as_echo "yes" >&6; }
3619
ea04106b
AX
3620rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3621ac_clean_files=$ac_clean_files_save
cae5b340
AX
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
ea04106b 3630$as_echo_n "checking for suffix of executables... " >&6; }
cae5b340 3631if { (ac_try="$ac_link"
ea04106b
AX
3632case "(($ac_try" in
3633 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3634 *) ac_try_echo=$ac_try;;
3635esac
cae5b340
AX
3636eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3637$as_echo "$ac_try_echo") >&5
ea04106b
AX
3638 (eval "$ac_link") 2>&5
3639 ac_status=$?
cae5b340
AX
3640 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3641 (exit $ac_status); }; then
ea04106b
AX
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'.
3646for 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
3654done
3655else
cae5b340 3656 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
ea04106b 3657$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cae5b340
AX
3658{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3659See \`config.log' for more details." >&5
3660$as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3661See \`config.log' for more details." >&2;}
3662 { (exit 1); exit 1; }; }; }
ea04106b 3663fi
cae5b340
AX
3664
3665rm -f conftest$ac_cv_exeext
3666{ $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
ea04106b
AX
3667$as_echo "$ac_cv_exeext" >&6; }
3668
3669rm -f conftest.$ac_ext
3670EXEEXT=$ac_cv_exeext
3671ac_exeext=$EXEEXT
cae5b340 3672{ $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
ea04106b 3673$as_echo_n "checking for suffix of object files... " >&6; }
cae5b340 3674if test "${ac_cv_objext+set}" = set; then
ea04106b
AX
3675 $as_echo_n "(cached) " >&6
3676else
cae5b340
AX
3677 cat >conftest.$ac_ext <<_ACEOF
3678/* confdefs.h. */
3679_ACEOF
3680cat confdefs.h >>conftest.$ac_ext
3681cat >>conftest.$ac_ext <<_ACEOF
ea04106b
AX
3682/* end confdefs.h. */
3683
3684int
3685main ()
3686{
3687
3688 ;
3689 return 0;
3690}
3691_ACEOF
3692rm -f conftest.o conftest.obj
cae5b340 3693if { (ac_try="$ac_compile"
ea04106b
AX
3694case "(($ac_try" in
3695 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3696 *) ac_try_echo=$ac_try;;
3697esac
cae5b340
AX
3698eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3699$as_echo "$ac_try_echo") >&5
ea04106b
AX
3700 (eval "$ac_compile") 2>&5
3701 ac_status=$?
cae5b340
AX
3702 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3703 (exit $ac_status); }; then
ea04106b
AX
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
3711done
3712else
3713 $as_echo "$as_me: failed program was:" >&5
3714sed 's/^/| /' conftest.$ac_ext >&5
3715
cae5b340 3716{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
ea04106b 3717$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cae5b340
AX
3718{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3719See \`config.log' for more details." >&5
3720$as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
3721See \`config.log' for more details." >&2;}
3722 { (exit 1); exit 1; }; }; }
ea04106b 3723fi
cae5b340 3724
ea04106b
AX
3725rm -f conftest.$ac_cv_objext conftest.$ac_ext
3726fi
cae5b340 3727{ $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
ea04106b
AX
3728$as_echo "$ac_cv_objext" >&6; }
3729OBJEXT=$ac_cv_objext
3730ac_objext=$OBJEXT
cae5b340 3731{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
ea04106b 3732$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
cae5b340 3733if test "${ac_cv_c_compiler_gnu+set}" = set; then
ea04106b
AX
3734 $as_echo_n "(cached) " >&6
3735else
cae5b340
AX
3736 cat >conftest.$ac_ext <<_ACEOF
3737/* confdefs.h. */
3738_ACEOF
3739cat confdefs.h >>conftest.$ac_ext
3740cat >>conftest.$ac_ext <<_ACEOF
ea04106b
AX
3741/* end confdefs.h. */
3742
3743int
3744main ()
3745{
3746#ifndef __GNUC__
3747 choke me
3748#endif
3749
3750 ;
3751 return 0;
3752}
3753_ACEOF
cae5b340
AX
3754rm -f conftest.$ac_objext
3755if { (ac_try="$ac_compile"
3756case "(($ac_try" in
3757 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3758 *) ac_try_echo=$ac_try;;
3759esac
3760eval 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
ea04106b
AX
3772 ac_compiler_gnu=yes
3773else
cae5b340
AX
3774 $as_echo "$as_me: failed program was:" >&5
3775sed 's/^/| /' conftest.$ac_ext >&5
3776
3777 ac_compiler_gnu=no
ea04106b 3778fi
cae5b340 3779
ea04106b
AX
3780rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3781ac_cv_c_compiler_gnu=$ac_compiler_gnu
3782
3783fi
cae5b340 3784{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
ea04106b
AX
3785$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3786if test $ac_compiler_gnu = yes; then
3787 GCC=yes
3788else
3789 GCC=
3790fi
3791ac_test_CFLAGS=${CFLAGS+set}
3792ac_save_CFLAGS=$CFLAGS
cae5b340 3793{ $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
ea04106b 3794$as_echo_n "checking whether $CC accepts -g... " >&6; }
cae5b340 3795if test "${ac_cv_prog_cc_g+set}" = set; then
ea04106b
AX
3796 $as_echo_n "(cached) " >&6
3797else
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"
cae5b340
AX
3802 cat >conftest.$ac_ext <<_ACEOF
3803/* confdefs.h. */
3804_ACEOF
3805cat confdefs.h >>conftest.$ac_ext
3806cat >>conftest.$ac_ext <<_ACEOF
ea04106b
AX
3807/* end confdefs.h. */
3808
3809int
3810main ()
3811{
3812
3813 ;
3814 return 0;
3815}
3816_ACEOF
cae5b340
AX
3817rm -f conftest.$ac_objext
3818if { (ac_try="$ac_compile"
3819case "(($ac_try" in
3820 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3821 *) ac_try_echo=$ac_try;;
3822esac
3823eval 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
ea04106b
AX
3835 ac_cv_prog_cc_g=yes
3836else
cae5b340
AX
3837 $as_echo "$as_me: failed program was:" >&5
3838sed 's/^/| /' conftest.$ac_ext >&5
3839
3840 CFLAGS=""
3841 cat >conftest.$ac_ext <<_ACEOF
3842/* confdefs.h. */
3843_ACEOF
3844cat confdefs.h >>conftest.$ac_ext
3845cat >>conftest.$ac_ext <<_ACEOF
ea04106b
AX
3846/* end confdefs.h. */
3847
3848int
3849main ()
3850{
3851
3852 ;
3853 return 0;
3854}
3855_ACEOF
cae5b340
AX
3856rm -f conftest.$ac_objext
3857if { (ac_try="$ac_compile"
3858case "(($ac_try" in
3859 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3860 *) ac_try_echo=$ac_try;;
3861esac
3862eval 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 :
ea04106b 3875else
cae5b340
AX
3876 $as_echo "$as_me: failed program was:" >&5
3877sed 's/^/| /' conftest.$ac_ext >&5
3878
3879 ac_c_werror_flag=$ac_save_c_werror_flag
ea04106b 3880 CFLAGS="-g"
cae5b340
AX
3881 cat >conftest.$ac_ext <<_ACEOF
3882/* confdefs.h. */
3883_ACEOF
3884cat confdefs.h >>conftest.$ac_ext
3885cat >>conftest.$ac_ext <<_ACEOF
ea04106b
AX
3886/* end confdefs.h. */
3887
3888int
3889main ()
3890{
3891
3892 ;
3893 return 0;
3894}
3895_ACEOF
cae5b340
AX
3896rm -f conftest.$ac_objext
3897if { (ac_try="$ac_compile"
3898case "(($ac_try" in
3899 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3900 *) ac_try_echo=$ac_try;;
3901esac
3902eval 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
ea04106b 3914 ac_cv_prog_cc_g=yes
cae5b340
AX
3915else
3916 $as_echo "$as_me: failed program was:" >&5
3917sed 's/^/| /' conftest.$ac_ext >&5
3918
3919
ea04106b 3920fi
cae5b340 3921
ea04106b
AX
3922rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3923fi
cae5b340 3924
ea04106b
AX
3925rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3926fi
cae5b340 3927
ea04106b
AX
3928rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3929 ac_c_werror_flag=$ac_save_c_werror_flag
3930fi
cae5b340 3931{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
ea04106b
AX
3932$as_echo "$ac_cv_prog_cc_g" >&6; }
3933if test "$ac_test_CFLAGS" = set; then
3934 CFLAGS=$ac_save_CFLAGS
3935elif 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
3941else
3942 if test "$GCC" = yes; then
3943 CFLAGS="-O2"
3944 else
3945 CFLAGS=
3946 fi
3947fi
cae5b340 3948{ $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
ea04106b 3949$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
cae5b340 3950if test "${ac_cv_prog_cc_c89+set}" = set; then
ea04106b
AX
3951 $as_echo_n "(cached) " >&6
3952else
3953 ac_cv_prog_cc_c89=no
3954ac_save_CC=$CC
cae5b340
AX
3955cat >conftest.$ac_ext <<_ACEOF
3956/* confdefs.h. */
3957_ACEOF
3958cat confdefs.h >>conftest.$ac_ext
3959cat >>conftest.$ac_ext <<_ACEOF
ea04106b
AX
3960/* end confdefs.h. */
3961#include <stdarg.h>
3962#include <stdio.h>
cae5b340
AX
3963#include <sys/types.h>
3964#include <sys/stat.h>
ea04106b
AX
3965/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3966struct buf { int x; };
3967FILE * (*rcsopen) (struct buf *, struct stat *, int);
3968static char *e (p, i)
3969 char **p;
3970 int i;
3971{
3972 return p[i];
3973}
3974static 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. */
3991int 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'
3996int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3997
3998int test (int i, double x);
3999struct s1 {int (*f) (int a);};
4000struct s2 {int (*f) (double a);};
4001int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4002int argc;
4003char **argv;
4004int
4005main ()
4006{
4007return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4008 ;
4009 return 0;
4010}
4011_ACEOF
4012for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4013 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4014do
4015 CC="$ac_save_CC $ac_arg"
cae5b340
AX
4016 rm -f conftest.$ac_objext
4017if { (ac_try="$ac_compile"
4018case "(($ac_try" in
4019 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4020 *) ac_try_echo=$ac_try;;
4021esac
4022eval 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
ea04106b 4034 ac_cv_prog_cc_c89=$ac_arg
cae5b340
AX
4035else
4036 $as_echo "$as_me: failed program was:" >&5
4037sed 's/^/| /' conftest.$ac_ext >&5
4038
4039
ea04106b 4040fi
cae5b340 4041
ea04106b
AX
4042rm -f core conftest.err conftest.$ac_objext
4043 test "x$ac_cv_prog_cc_c89" != "xno" && break
4044done
4045rm -f conftest.$ac_ext
4046CC=$ac_save_CC
4047
4048fi
4049# AC_CACHE_VAL
4050case "x$ac_cv_prog_cc_c89" in
4051 x)
cae5b340 4052 { $as_echo "$as_me:$LINENO: result: none needed" >&5
ea04106b
AX
4053$as_echo "none needed" >&6; } ;;
4054 xno)
cae5b340 4055 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
ea04106b
AX
4056$as_echo "unsupported" >&6; } ;;
4057 *)
4058 CC="$CC $ac_cv_prog_cc_c89"
cae5b340 4059 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
ea04106b
AX
4060$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4061esac
68d83c55 4062
68d83c55 4063
68d83c55
AX
4064ac_ext=c
4065ac_cpp='$CPP $CPPFLAGS'
4066ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4067ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4068ac_compiler_gnu=$ac_cv_c_compiler_gnu
ea04106b
AX
4069DEPDIR="${am__leading_dot}deps"
4070
4071ac_config_commands="$ac_config_commands depfiles"
4072
4073
4074am_make=${MAKE-make}
4075cat > confinc << 'END'
4076am__doit:
4077 @echo this is the am__doit target
4078.PHONY: am__doit
4079END
4080# If we don't find an include directive, just comment out the code.
cae5b340 4081{ $as_echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
ea04106b
AX
4082$as_echo_n "checking for style of include used by $am_make... " >&6; }
4083am__include="#"
4084am__quote=
4085_am_result=none
4086# First try GNU make style include.
4087echo "include confinc" > confmf
cae5b340 4088# Ignore all kinds of additional output from `make'.
ea04106b
AX
4089case `$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 ;;
4095esac
4096# Now try BSD make style include.
4097if 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
4106fi
4107
4108
cae5b340 4109{ $as_echo "$as_me:$LINENO: result: $_am_result" >&5
ea04106b
AX
4110$as_echo "$_am_result" >&6; }
4111rm -f confinc confmf
4112
4113# Check whether --enable-dependency-tracking was given.
cae5b340 4114if test "${enable_dependency_tracking+set}" = set; then
ea04106b
AX
4115 enableval=$enable_dependency_tracking;
4116fi
4117
4118if test "x$enable_dependency_tracking" != xno; then
4119 am_depcomp="$ac_aux_dir/depcomp"
4120 AMDEPBACKSLASH='\'
ea04106b
AX
4121fi
4122 if test "x$enable_dependency_tracking" != xno; then
4123 AMDEP_TRUE=
4124 AMDEP_FALSE='#'
4125else
4126 AMDEP_TRUE='#'
4127 AMDEP_FALSE=
4128fi
4129
4130
4131
4132depcc="$CC" am_compiler_list=
4133
cae5b340 4134{ $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
ea04106b 4135$as_echo_n "checking dependency style of $depcc... " >&6; }
cae5b340 4136if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
ea04106b
AX
4137 $as_echo_n "(cached) " >&6
4138else
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
cae5b340
AX
4143 # making a dummy file named `D' -- because `-MD' means `put the output
4144 # in D'.
ea04106b
AX
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
cae5b340
AX
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
ea04106b
AX
4181 done
4182 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4183
cae5b340 4184 # We check with `-c' and `-o' for the sake of the "dashmstdout"
ea04106b 4185 # mode. It turns out that the SunPro C++ compiler does not properly
cae5b340
AX
4186 # handle `-M -o', and we need to detect this. Also, some Intel
4187 # versions had trouble with output in subdirs
ea04106b
AX
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)
cae5b340
AX
4196 # after this tag, mechanisms are not by side-effect, so they'll
4197 # only be used when explicitly requested
ea04106b
AX
4198 if test "x$enable_dependency_tracking" = xyes; then
4199 continue
4200 else
4201 break
4202 fi
4203 ;;
cae5b340
AX
4204 msvisualcpp | msvcmsys)
4205 # This compiler won't grok `-c -o', but also, the minuso test has
ea04106b
AX
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
4239else
4240 am_cv_CC_dependencies_compiler_type=none
4241fi
4242
4243fi
cae5b340 4244{ $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
ea04106b
AX
4245$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4246CCDEPMODE=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='#'
4253else
4254 am__fastdepCC_TRUE='#'
4255 am__fastdepCC_FALSE=
4256fi
4257
4258
4259case `pwd` in
4260 *\ * | *\ *)
cae5b340 4261 { $as_echo "$as_me:$LINENO: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
ea04106b
AX
4262$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4263esac
4264
4265
4266
cae5b340
AX
4267macro_version='2.2.6b'
4268macro_revision='1.3017'
ea04106b
AX
4269
4270
4271
4272
4273
4274
4275
4276
4277
4278
4279
4280
4281
cae5b340 4282ltmain="$ac_aux_dir/ltmain.sh"
ea04106b 4283
cae5b340 4284{ $as_echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
ea04106b 4285$as_echo_n "checking for a sed that does not truncate output... " >&6; }
cae5b340 4286if test "${ac_cv_path_SED+set}" = set; then
ea04106b
AX
4287 $as_echo_n "(cached) " >&6
4288else
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
cae5b340 4294 $as_unset ac_script || ac_script=
ea04106b
AX
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
4299for as_dir in $PATH
4300do
4301 IFS=$as_save_IFS
4302 test -z "$as_dir" && as_dir=.
cae5b340 4303 for ac_prog in sed gsed; do
ea04106b
AX
4304 for ac_exec_ext in '' $ac_executable_extensions; do
4305 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
cae5b340 4306 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
ea04106b
AX
4307# Check for GNU ac_path_SED and select it if it is found.
4308 # Check for GNU $ac_path_SED
4309case `"$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
cae5b340 4323 ac_count=`expr $ac_count + 1`
ea04106b
AX
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;;
4333esac
4334
4335 $ac_path_SED_found && break 3
4336 done
4337 done
cae5b340 4338done
ea04106b
AX
4339IFS=$as_save_IFS
4340 if test -z "$ac_cv_path_SED"; then
cae5b340
AX
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; }; }
ea04106b
AX
4344 fi
4345else
4346 ac_cv_path_SED=$SED
4347fi
4348
4349fi
cae5b340 4350{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5
ea04106b
AX
4351$as_echo "$ac_cv_path_SED" >&6; }
4352 SED="$ac_cv_path_SED"
4353 rm -f conftest.sed
4354
4355test -z "$SED" && SED=sed
4356Xsed="$SED -e 1s/^X//"
4357
4358
4359
4360
4361
4362
4363
4364
4365
4366
4367
cae5b340 4368{ $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
ea04106b 4369$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
cae5b340 4370if test "${ac_cv_path_GREP+set}" = set; then
ea04106b
AX
4371 $as_echo_n "(cached) " >&6
4372else
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
4377for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4378do
4379 IFS=$as_save_IFS
4380 test -z "$as_dir" && as_dir=.
cae5b340 4381 for ac_prog in grep ggrep; do
ea04106b
AX
4382 for ac_exec_ext in '' $ac_executable_extensions; do
4383 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
cae5b340 4384 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
ea04106b
AX
4385# Check for GNU ac_path_GREP and select it if it is found.
4386 # Check for GNU $ac_path_GREP
4387case `"$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
cae5b340 4401 ac_count=`expr $ac_count + 1`
ea04106b
AX
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;;
4411esac
4412
4413 $ac_path_GREP_found && break 3
4414 done
4415 done
cae5b340 4416done
ea04106b
AX
4417IFS=$as_save_IFS
4418 if test -z "$ac_cv_path_GREP"; then
cae5b340
AX
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; }; }
ea04106b
AX
4422 fi
4423else
4424 ac_cv_path_GREP=$GREP
4425fi
4426
4427fi
cae5b340 4428{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
ea04106b
AX
4429$as_echo "$ac_cv_path_GREP" >&6; }
4430 GREP="$ac_cv_path_GREP"
4431
4432
cae5b340 4433{ $as_echo "$as_me:$LINENO: checking for egrep" >&5
ea04106b 4434$as_echo_n "checking for egrep... " >&6; }
cae5b340 4435if test "${ac_cv_path_EGREP+set}" = set; then
ea04106b
AX
4436 $as_echo_n "(cached) " >&6
4437else
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
4445for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4446do
4447 IFS=$as_save_IFS
4448 test -z "$as_dir" && as_dir=.
cae5b340 4449 for ac_prog in egrep; do
ea04106b
AX
4450 for ac_exec_ext in '' $ac_executable_extensions; do
4451 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
cae5b340 4452 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
ea04106b
AX
4453# Check for GNU ac_path_EGREP and select it if it is found.
4454 # Check for GNU $ac_path_EGREP
4455case `"$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
cae5b340 4469 ac_count=`expr $ac_count + 1`
ea04106b
AX
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;;
4479esac
4480
4481 $ac_path_EGREP_found && break 3
4482 done
4483 done
cae5b340 4484done
ea04106b
AX
4485IFS=$as_save_IFS
4486 if test -z "$ac_cv_path_EGREP"; then
cae5b340
AX
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; }; }
ea04106b
AX
4490 fi
4491else
4492 ac_cv_path_EGREP=$EGREP
4493fi
4494
4495 fi
4496fi
cae5b340 4497{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
ea04106b
AX
4498$as_echo "$ac_cv_path_EGREP" >&6; }
4499 EGREP="$ac_cv_path_EGREP"
4500
4501
cae5b340 4502{ $as_echo "$as_me:$LINENO: checking for fgrep" >&5
ea04106b 4503$as_echo_n "checking for fgrep... " >&6; }
cae5b340 4504if test "${ac_cv_path_FGREP+set}" = set; then
ea04106b
AX
4505 $as_echo_n "(cached) " >&6
4506else
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
4514for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4515do
4516 IFS=$as_save_IFS
4517 test -z "$as_dir" && as_dir=.
cae5b340 4518 for ac_prog in fgrep; do
ea04106b
AX
4519 for ac_exec_ext in '' $ac_executable_extensions; do
4520 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
cae5b340 4521 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
ea04106b
AX
4522# Check for GNU ac_path_FGREP and select it if it is found.
4523 # Check for GNU $ac_path_FGREP
4524case `"$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
cae5b340 4538 ac_count=`expr $ac_count + 1`
ea04106b
AX
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;;
4548esac
4549
4550 $ac_path_FGREP_found && break 3
4551 done
4552 done
cae5b340 4553done
ea04106b
AX
4554IFS=$as_save_IFS
4555 if test -z "$ac_cv_path_FGREP"; then
cae5b340
AX
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; }; }
ea04106b
AX
4559 fi
4560else
4561 ac_cv_path_FGREP=$FGREP
4562fi
4563
4564 fi
4565fi
cae5b340 4566{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_FGREP" >&5
ea04106b
AX
4567$as_echo "$ac_cv_path_FGREP" >&6; }
4568 FGREP="$ac_cv_path_FGREP"
4569
4570
4571test -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.
cae5b340
AX
4592if test "${with_gnu_ld+set}" = set; then
4593 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
ea04106b
AX
4594else
4595 with_gnu_ld=no
4596fi
4597
4598ac_prog=ld
cae5b340 4599if test "$GCC" = yes; then
ea04106b 4600 # Check if gcc -print-prog-name=ld gives a path.
cae5b340 4601 { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5
ea04106b
AX
4602$as_echo_n "checking for ld used by $CC... " >&6; }
4603 case $host in
4604 *-*-mingw*)
cae5b340 4605 # gcc leaves a trailing carriage return which upsets mingw
ea04106b
AX
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
cae5b340 4619 test -z "$LD" && LD="$ac_prog"
ea04106b
AX
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
cae5b340
AX
4630elif test "$with_gnu_ld" = yes; then
4631 { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
ea04106b
AX
4632$as_echo_n "checking for GNU ld... " >&6; }
4633else
cae5b340 4634 { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
ea04106b
AX
4635$as_echo_n "checking for non-GNU ld... " >&6; }
4636fi
cae5b340 4637if test "${lt_cv_path_LD+set}" = set; then
ea04106b
AX
4638 $as_echo_n "(cached) " >&6
4639else
4640 if test -z "$LD"; then
cae5b340 4641 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
ea04106b 4642 for ac_dir in $PATH; do
cae5b340 4643 IFS="$lt_save_ifs"
ea04106b
AX
4644 test -z "$ac_dir" && ac_dir=.
4645 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
cae5b340 4646 lt_cv_path_LD="$ac_dir/$ac_prog"
ea04106b
AX
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'*)
cae5b340 4652 test "$with_gnu_ld" != no && break
ea04106b
AX
4653 ;;
4654 *)
cae5b340 4655 test "$with_gnu_ld" != yes && break
ea04106b
AX
4656 ;;
4657 esac
4658 fi
4659 done
cae5b340 4660 IFS="$lt_save_ifs"
ea04106b 4661else
cae5b340 4662 lt_cv_path_LD="$LD" # Let the user override the test with a path.
ea04106b
AX
4663fi
4664fi
4665
cae5b340 4666LD="$lt_cv_path_LD"
ea04106b 4667if test -n "$LD"; then
cae5b340 4668 { $as_echo "$as_me:$LINENO: result: $LD" >&5
ea04106b
AX
4669$as_echo "$LD" >&6; }
4670else
cae5b340 4671 { $as_echo "$as_me:$LINENO: result: no" >&5
ea04106b
AX
4672$as_echo "no" >&6; }
4673fi
cae5b340
AX
4674test -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
ea04106b 4678$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
cae5b340 4679if test "${lt_cv_prog_gnu_ld+set}" = set; then
ea04106b
AX
4680 $as_echo_n "(cached) " >&6
4681else
4682 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4683case `$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 ;;
4690esac
4691fi
cae5b340 4692{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
ea04106b
AX
4693$as_echo "$lt_cv_prog_gnu_ld" >&6; }
4694with_gnu_ld=$lt_cv_prog_gnu_ld
4695
4696
4697
4698
4699
4700
4701
4702
4703
cae5b340 4704{ $as_echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
ea04106b 4705$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
cae5b340 4706if test "${lt_cv_path_NM+set}" = set; then
ea04106b
AX
4707 $as_echo_n "(cached) " >&6
4708else
4709 if test -n "$NM"; then
4710 # Let the user override the test.
cae5b340 4711 lt_cv_path_NM="$NM"
ea04106b 4712else
cae5b340 4713 lt_nm_to_check="${ac_tool_prefix}nm"
ea04106b
AX
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
cae5b340 4718 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
ea04106b 4719 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
cae5b340 4720 IFS="$lt_save_ifs"
ea04106b 4721 test -z "$ac_dir" && ac_dir=.
cae5b340
AX
4722 tmp_nm="$ac_dir/$lt_tmp_nm"
4723 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
ea04106b 4724 # Check to see if the nm accepts a BSD-compat flag.
cae5b340 4725 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
ea04106b
AX
4726 # nm: unknown option "B" ignored
4727 # Tru64's nm complains that /dev/null is an invalid object file
cae5b340
AX
4728 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4729 */dev/null* | *'Invalid file or object type'*)
ea04106b 4730 lt_cv_path_NM="$tmp_nm -B"
cae5b340 4731 break
ea04106b
AX
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"
cae5b340 4737 break
ea04106b
AX
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
cae5b340 4748 IFS="$lt_save_ifs"
ea04106b
AX
4749 done
4750 : ${lt_cv_path_NM=no}
4751fi
4752fi
cae5b340 4753{ $as_echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
ea04106b 4754$as_echo "$lt_cv_path_NM" >&6; }
cae5b340
AX
4755if test "$lt_cv_path_NM" != "no"; then
4756 NM="$lt_cv_path_NM"
ea04106b
AX
4757else
4758 # Didn't find any BSD compatible name lister, look for dumpbin.
cae5b340
AX
4759 if test -n "$ac_tool_prefix"; then
4760 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
ea04106b
AX
4761 do
4762 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4763set dummy $ac_tool_prefix$ac_prog; ac_word=$2
cae5b340 4764{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
ea04106b 4765$as_echo_n "checking for $ac_word... " >&6; }
cae5b340 4766if test "${ac_cv_prog_DUMPBIN+set}" = set; then
ea04106b
AX
4767 $as_echo_n "(cached) " >&6
4768else
4769 if test -n "$DUMPBIN"; then
4770 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4771else
4772as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4773for as_dir in $PATH
4774do
4775 IFS=$as_save_IFS
4776 test -z "$as_dir" && as_dir=.
cae5b340
AX
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
ea04106b 4779 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
cae5b340 4780 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
ea04106b
AX
4781 break 2
4782 fi
4783done
cae5b340 4784done
ea04106b
AX
4785IFS=$as_save_IFS
4786
4787fi
4788fi
4789DUMPBIN=$ac_cv_prog_DUMPBIN
4790if test -n "$DUMPBIN"; then
cae5b340 4791 { $as_echo "$as_me:$LINENO: result: $DUMPBIN" >&5
ea04106b
AX
4792$as_echo "$DUMPBIN" >&6; }
4793else
cae5b340 4794 { $as_echo "$as_me:$LINENO: result: no" >&5
ea04106b
AX
4795$as_echo "no" >&6; }
4796fi
4797
4798
4799 test -n "$DUMPBIN" && break
4800 done
4801fi
4802if test -z "$DUMPBIN"; then
4803 ac_ct_DUMPBIN=$DUMPBIN
cae5b340 4804 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
ea04106b
AX
4805do
4806 # Extract the first word of "$ac_prog", so it can be a program name with args.
4807set dummy $ac_prog; ac_word=$2
cae5b340 4808{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
ea04106b 4809$as_echo_n "checking for $ac_word... " >&6; }
cae5b340 4810if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
ea04106b
AX
4811 $as_echo_n "(cached) " >&6
4812else
4813 if test -n "$ac_ct_DUMPBIN"; then
4814 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4815else
4816as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4817for as_dir in $PATH
4818do
4819 IFS=$as_save_IFS
4820 test -z "$as_dir" && as_dir=.
cae5b340
AX
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
ea04106b 4823 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
cae5b340 4824 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
ea04106b
AX
4825 break 2
4826 fi
4827done
cae5b340 4828done
ea04106b
AX
4829IFS=$as_save_IFS
4830
4831fi
4832fi
4833ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4834if test -n "$ac_ct_DUMPBIN"; then
cae5b340 4835 { $as_echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
ea04106b
AX
4836$as_echo "$ac_ct_DUMPBIN" >&6; }
4837else
cae5b340 4838 { $as_echo "$as_me:$LINENO: result: no" >&5
ea04106b
AX
4839$as_echo "no" >&6; }
4840fi
4841
4842
4843 test -n "$ac_ct_DUMPBIN" && break
4844done
4845
4846 if test "x$ac_ct_DUMPBIN" = x; then
4847 DUMPBIN=":"
4848 else
4849 case $cross_compiling:$ac_tool_warned in
4850yes:)
cae5b340 4851{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
ea04106b
AX
4852$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4853ac_tool_warned=yes ;;
4854esac
4855 DUMPBIN=$ac_ct_DUMPBIN
4856 fi
4857fi
4858
ea04106b 4859
cae5b340
AX
4860 if test "$DUMPBIN" != ":"; then
4861 NM="$DUMPBIN"
ea04106b
AX
4862 fi
4863fi
4864test -z "$NM" && NM=nm
4865
4866
4867
4868
4869
4870
cae5b340 4871{ $as_echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
ea04106b 4872$as_echo_n "checking the name lister ($NM) interface... " >&6; }
cae5b340 4873if test "${lt_cv_nm_interface+set}" = set; then
ea04106b
AX
4874 $as_echo_n "(cached) " >&6
4875else
4876 lt_cv_nm_interface="BSD nm"
4877 echo "int some_variable = 0;" > conftest.$ac_ext
42f7b73b 4878 (eval echo "\"\$as_me:4878: $ac_compile\"" >&5)
ea04106b
AX
4879 (eval "$ac_compile" 2>conftest.err)
4880 cat conftest.err >&5
42f7b73b 4881 (eval echo "\"\$as_me:4881: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
ea04106b
AX
4882 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4883 cat conftest.err >&5
42f7b73b 4884 (eval echo "\"\$as_me:4884: output\"" >&5)
ea04106b
AX
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*
4890fi
cae5b340 4891{ $as_echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
ea04106b
AX
4892$as_echo "$lt_cv_nm_interface" >&6; }
4893
cae5b340 4894{ $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
ea04106b
AX
4895$as_echo_n "checking whether ln -s works... " >&6; }
4896LN_S=$as_ln_s
4897if test "$LN_S" = "ln -s"; then
cae5b340 4898 { $as_echo "$as_me:$LINENO: result: yes" >&5
ea04106b
AX
4899$as_echo "yes" >&6; }
4900else
cae5b340 4901 { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
ea04106b
AX
4902$as_echo "no, using $LN_S" >&6; }
4903fi
4904
4905# find the maximum length of command line arguments
cae5b340 4906{ $as_echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
ea04106b 4907$as_echo_n "checking the maximum length of command line arguments... " >&6; }
cae5b340 4908if test "${lt_cv_sys_max_cmd_len+set}" = set; then
ea04106b
AX
4909 $as_echo_n "(cached) " >&6
4910else
4911 i=0
cae5b340 4912 teststring="ABCD"
ea04106b
AX
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
ea04106b
AX
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
cae5b340 4947 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
ea04106b
AX
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
ea04106b
AX
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`
cae5b340 4992 if test -n "$lt_cv_sys_max_cmd_len"; then
ea04106b
AX
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.
cae5b340 4998 for i in 1 2 3 4 5 6 7 8 ; do
ea04106b
AX
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.
cae5b340
AX
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
ea04106b
AX
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
5023fi
5024
cae5b340
AX
5025if test -n $lt_cv_sys_max_cmd_len ; then
5026 { $as_echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
ea04106b
AX
5027$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5028else
cae5b340 5029 { $as_echo "$as_me:$LINENO: result: none" >&5
ea04106b
AX
5030$as_echo "none" >&6; }
5031fi
5032max_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
cae5b340
AX
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
5046xsi_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; }
5059lt_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
ea04106b
AX
5067if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5068 lt_unset=unset
5069else
5070 lt_unset=false
5071fi
5072
5073
5074
5075
5076
5077# test EBCDIC or ASCII
5078case `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 ;;
5088esac
5089
5090
5091
5092
5093
5094
5095
5096
5097
cae5b340 5098{ $as_echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
ea04106b 5099$as_echo_n "checking for $LD option to reload object files... " >&6; }
cae5b340 5100if test "${lt_cv_ld_reload_flag+set}" = set; then
ea04106b
AX
5101 $as_echo_n "(cached) " >&6
5102else
5103 lt_cv_ld_reload_flag='-r'
5104fi
cae5b340 5105{ $as_echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
ea04106b
AX
5106$as_echo "$lt_cv_ld_reload_flag" >&6; }
5107reload_flag=$lt_cv_ld_reload_flag
5108case $reload_flag in
5109"" | " "*) ;;
5110*) reload_flag=" $reload_flag" ;;
5111esac
5112reload_cmds='$LD$reload_flag -o $output$reload_objs'
5113case $host_os in
ea04106b 5114 darwin*)
cae5b340
AX
5115 if test "$GCC" = yes; then
5116 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
ea04106b
AX
5117 else
5118 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5119 fi
5120 ;;
5121esac
5122
5123
5124
5125
5126
5127
5128
5129
5130
5131if 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.
5133set dummy ${ac_tool_prefix}objdump; ac_word=$2
cae5b340 5134{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
ea04106b 5135$as_echo_n "checking for $ac_word... " >&6; }
cae5b340 5136if test "${ac_cv_prog_OBJDUMP+set}" = set; then
ea04106b
AX
5137 $as_echo_n "(cached) " >&6
5138else
5139 if test -n "$OBJDUMP"; then
5140 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5141else
5142as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5143for as_dir in $PATH
5144do
5145 IFS=$as_save_IFS
5146 test -z "$as_dir" && as_dir=.
cae5b340
AX
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
ea04106b 5149 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
cae5b340 5150 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
ea04106b
AX
5151 break 2
5152 fi
5153done
cae5b340 5154done
ea04106b
AX
5155IFS=$as_save_IFS
5156
5157fi
5158fi
5159OBJDUMP=$ac_cv_prog_OBJDUMP
5160if test -n "$OBJDUMP"; then
cae5b340 5161 { $as_echo "$as_me:$LINENO: result: $OBJDUMP" >&5
ea04106b
AX
5162$as_echo "$OBJDUMP" >&6; }
5163else
cae5b340 5164 { $as_echo "$as_me:$LINENO: result: no" >&5
ea04106b
AX
5165$as_echo "no" >&6; }
5166fi
5167
5168
5169fi
5170if 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.
5173set dummy objdump; ac_word=$2
cae5b340 5174{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
ea04106b 5175$as_echo_n "checking for $ac_word... " >&6; }
cae5b340 5176if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
ea04106b
AX
5177 $as_echo_n "(cached) " >&6
5178else
5179 if test -n "$ac_ct_OBJDUMP"; then
5180 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5181else
5182as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5183for as_dir in $PATH
5184do
5185 IFS=$as_save_IFS
5186 test -z "$as_dir" && as_dir=.
cae5b340
AX
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
ea04106b 5189 ac_cv_prog_ac_ct_OBJDUMP="objdump"
cae5b340 5190 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
ea04106b
AX
5191 break 2
5192 fi
5193done
cae5b340 5194done
ea04106b
AX
5195IFS=$as_save_IFS
5196
5197fi
5198fi
5199ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5200if test -n "$ac_ct_OBJDUMP"; then
cae5b340 5201 { $as_echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
ea04106b
AX
5202$as_echo "$ac_ct_OBJDUMP" >&6; }
5203else
cae5b340 5204 { $as_echo "$as_me:$LINENO: result: no" >&5
ea04106b
AX
5205$as_echo "no" >&6; }
5206fi
5207
5208 if test "x$ac_ct_OBJDUMP" = x; then
5209 OBJDUMP="false"
5210 else
5211 case $cross_compiling:$ac_tool_warned in
5212yes:)
cae5b340 5213{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
ea04106b
AX
5214$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5215ac_tool_warned=yes ;;
5216esac
5217 OBJDUMP=$ac_ct_OBJDUMP
5218 fi
5219else
5220 OBJDUMP="$ac_cv_prog_OBJDUMP"
5221fi
5222
5223test -z "$OBJDUMP" && OBJDUMP=objdump
5224
5225
5226
5227
5228
5229
5230
5231
5232
cae5b340 5233{ $as_echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
ea04106b 5234$as_echo_n "checking how to recognize dependent libraries... " >&6; }
cae5b340 5235if test "${lt_cv_deplibs_check_method+set}" = set; then
ea04106b
AX
5236 $as_echo_n "(cached) " >&6
5237else
5238 lt_cv_file_magic_cmd='$MAGIC_CMD'
5239lt_cv_file_magic_test_file=
5240lt_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.
cae5b340 5244# `unknown' -- same as none, but documents that we really don't know.
ea04106b
AX
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
cae5b340
AX
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.
ea04106b
AX
5251
5252case $host_os in
5253aix[4-9]*)
5254 lt_cv_deplibs_check_method=pass_all
5255 ;;
5256
5257beos*)
5258 lt_cv_deplibs_check_method=pass_all
5259 ;;
5260
5261bsdi[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
5267cygwin*)
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
5273mingw* | 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.
68d83c55 5277 if ( file / ) >/dev/null 2>&1; then
ea04106b
AX
5278 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5279 lt_cv_file_magic_cmd='func_win32_libid'
5280 else
cae5b340 5281 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
ea04106b
AX
5282 lt_cv_file_magic_cmd='$OBJDUMP -f'
5283 fi
5284 ;;
5285
cae5b340 5286cegcc)
ea04106b
AX
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
5292darwin* | rhapsody*)
5293 lt_cv_deplibs_check_method=pass_all
5294 ;;
5295
5296freebsd* | 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
cae5b340 5312gnu*)
ea04106b
AX
5313 lt_cv_deplibs_check_method=pass_all
5314 ;;
5315
5316hpux10.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*)
cae5b340 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]'
ea04106b
AX
5325 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5326 ;;
5327 *)
cae5b340 5328 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
ea04106b
AX
5329 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5330 ;;
5331 esac
5332 ;;
5333
5334interix[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
5339irix5* | 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
cae5b340
AX
5349# This must be Linux ELF.
5350linux* | k*bsd*-gnu)
ea04106b
AX
5351 lt_cv_deplibs_check_method=pass_all
5352 ;;
5353
22929307 5354netbsd*)
ea04106b
AX
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
5362newos6*)
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
cae5b340
AX
5372openbsd*)
5373 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
ea04106b
AX
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
5380osf3* | osf4* | osf5*)
5381 lt_cv_deplibs_check_method=pass_all
5382 ;;
5383
5384rdos*)
5385 lt_cv_deplibs_check_method=pass_all
5386 ;;
5387
5388solaris*)
5389 lt_cv_deplibs_check_method=pass_all
5390 ;;
5391
5392sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5393 lt_cv_deplibs_check_method=pass_all
5394 ;;
5395
5396sysv4 | 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
5423tpf*)
5424 lt_cv_deplibs_check_method=pass_all
5425 ;;
5426esac
5427
5428fi
cae5b340 5429{ $as_echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
ea04106b 5430$as_echo "$lt_cv_deplibs_check_method" >&6; }
ea04106b
AX
5431file_magic_cmd=$lt_cv_file_magic_cmd
5432deplibs_check_method=$lt_cv_deplibs_check_method
5433test -z "$deplibs_check_method" && deplibs_check_method=unknown
5434
5435
5436
5437
5438
5439
5440
5441
5442
5443
ea04106b
AX
5444
5445
5446if test -n "$ac_tool_prefix"; then
cae5b340
AX
5447 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5448set dummy ${ac_tool_prefix}ar; ac_word=$2
5449{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
ea04106b 5450$as_echo_n "checking for $ac_word... " >&6; }
cae5b340 5451if test "${ac_cv_prog_AR+set}" = set; then
ea04106b
AX
5452 $as_echo_n "(cached) " >&6
5453else
5454 if test -n "$AR"; then
5455 ac_cv_prog_AR="$AR" # Let the user override the test.
5456else
5457as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5458for as_dir in $PATH
5459do
5460 IFS=$as_save_IFS
5461 test -z "$as_dir" && as_dir=.
cae5b340
AX
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
ea04106b
AX
5466 break 2
5467 fi
5468done
cae5b340 5469done
ea04106b
AX
5470IFS=$as_save_IFS
5471
5472fi
5473fi
5474AR=$ac_cv_prog_AR
5475if test -n "$AR"; then
cae5b340 5476 { $as_echo "$as_me:$LINENO: result: $AR" >&5
ea04106b
AX
5477$as_echo "$AR" >&6; }
5478else
cae5b340 5479 { $as_echo "$as_me:$LINENO: result: no" >&5
ea04106b
AX
5480$as_echo "no" >&6; }
5481fi
5482
5483
ea04106b 5484fi
cae5b340 5485if test -z "$ac_cv_prog_AR"; then
ea04106b 5486 ac_ct_AR=$AR
cae5b340
AX
5487 # Extract the first word of "ar", so it can be a program name with args.
5488set dummy ar; ac_word=$2
5489{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
ea04106b 5490$as_echo_n "checking for $ac_word... " >&6; }
cae5b340 5491if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
ea04106b
AX
5492 $as_echo_n "(cached) " >&6
5493else
5494 if test -n "$ac_ct_AR"; then
5495 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5496else
5497as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5498for as_dir in $PATH
5499do
5500 IFS=$as_save_IFS
5501 test -z "$as_dir" && as_dir=.
cae5b340
AX
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
ea04106b
AX
5506 break 2
5507 fi
5508done
cae5b340 5509done
ea04106b
AX
5510IFS=$as_save_IFS
5511
5512fi
5513fi
5514ac_ct_AR=$ac_cv_prog_ac_ct_AR
5515if test -n "$ac_ct_AR"; then
cae5b340 5516 { $as_echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
ea04106b
AX
5517$as_echo "$ac_ct_AR" >&6; }
5518else
cae5b340 5519 { $as_echo "$as_me:$LINENO: result: no" >&5
ea04106b
AX
5520$as_echo "no" >&6; }
5521fi
5522
ea04106b
AX
5523 if test "x$ac_ct_AR" = x; then
5524 AR="false"
5525 else
5526 case $cross_compiling:$ac_tool_warned in
5527yes:)
cae5b340 5528{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
ea04106b
AX
5529$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5530ac_tool_warned=yes ;;
5531esac
5532 AR=$ac_ct_AR
5533 fi
ea04106b 5534else
cae5b340
AX
5535 AR="$ac_cv_prog_AR"
5536fi
ea04106b 5537
cae5b340
AX
5538test -z "$AR" && AR=ar
5539test -z "$AR_FLAGS" && AR_FLAGS=cru
ea04106b 5540
ea04106b 5541
ea04106b 5542
ea04106b 5543
ea04106b
AX
5544
5545
5546
5547
5548
5549
5550
5551if 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.
5553set dummy ${ac_tool_prefix}strip; ac_word=$2
cae5b340 5554{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
ea04106b 5555$as_echo_n "checking for $ac_word... " >&6; }
cae5b340 5556if test "${ac_cv_prog_STRIP+set}" = set; then
ea04106b
AX
5557 $as_echo_n "(cached) " >&6
5558else
5559 if test -n "$STRIP"; then
5560 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5561else
5562as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5563for as_dir in $PATH
5564do
5565 IFS=$as_save_IFS
5566 test -z "$as_dir" && as_dir=.
cae5b340
AX
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
ea04106b 5569 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
cae5b340 5570 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
ea04106b
AX
5571 break 2
5572 fi
5573done
cae5b340 5574done
ea04106b
AX
5575IFS=$as_save_IFS
5576
5577fi
5578fi
5579STRIP=$ac_cv_prog_STRIP
5580if test -n "$STRIP"; then
cae5b340 5581 { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
ea04106b
AX
5582$as_echo "$STRIP" >&6; }
5583else
cae5b340 5584 { $as_echo "$as_me:$LINENO: result: no" >&5
ea04106b
AX
5585$as_echo "no" >&6; }
5586fi
5587
5588
5589fi
5590if 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.
5593set dummy strip; ac_word=$2
cae5b340 5594{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
ea04106b 5595$as_echo_n "checking for $ac_word... " >&6; }
cae5b340 5596if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
ea04106b
AX
5597 $as_echo_n "(cached) " >&6
5598else
5599 if test -n "$ac_ct_STRIP"; then
5600 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5601else
5602as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5603for as_dir in $PATH
5604do
5605 IFS=$as_save_IFS
5606 test -z "$as_dir" && as_dir=.
cae5b340
AX
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
ea04106b 5609 ac_cv_prog_ac_ct_STRIP="strip"
cae5b340 5610 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
ea04106b
AX
5611 break 2
5612 fi
5613done
cae5b340 5614done
ea04106b
AX
5615IFS=$as_save_IFS
5616
5617fi
5618fi
5619ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5620if test -n "$ac_ct_STRIP"; then
cae5b340 5621 { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
ea04106b
AX
5622$as_echo "$ac_ct_STRIP" >&6; }
5623else
cae5b340 5624 { $as_echo "$as_me:$LINENO: result: no" >&5
ea04106b
AX
5625$as_echo "no" >&6; }
5626fi
5627
5628 if test "x$ac_ct_STRIP" = x; then
5629 STRIP=":"
5630 else
5631 case $cross_compiling:$ac_tool_warned in
5632yes:)
cae5b340 5633{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
ea04106b
AX
5634$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5635ac_tool_warned=yes ;;
5636esac
5637 STRIP=$ac_ct_STRIP
5638 fi
5639else
5640 STRIP="$ac_cv_prog_STRIP"
5641fi
5642
5643test -z "$STRIP" && STRIP=:
5644
5645
5646
5647
5648
5649
5650if 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.
5652set dummy ${ac_tool_prefix}ranlib; ac_word=$2
cae5b340 5653{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
ea04106b 5654$as_echo_n "checking for $ac_word... " >&6; }
cae5b340 5655if test "${ac_cv_prog_RANLIB+set}" = set; then
ea04106b
AX
5656 $as_echo_n "(cached) " >&6
5657else
5658 if test -n "$RANLIB"; then
5659 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5660else
5661as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5662for as_dir in $PATH
5663do
5664 IFS=$as_save_IFS
5665 test -z "$as_dir" && as_dir=.
cae5b340
AX
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
ea04106b 5668 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
cae5b340 5669 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
ea04106b
AX
5670 break 2
5671 fi
5672done
cae5b340 5673done
ea04106b
AX
5674IFS=$as_save_IFS
5675
5676fi
5677fi
5678RANLIB=$ac_cv_prog_RANLIB
5679if test -n "$RANLIB"; then
cae5b340 5680 { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
ea04106b
AX
5681$as_echo "$RANLIB" >&6; }
5682else
cae5b340 5683 { $as_echo "$as_me:$LINENO: result: no" >&5
ea04106b
AX
5684$as_echo "no" >&6; }
5685fi
5686
5687
5688fi
5689if 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.
5692set dummy ranlib; ac_word=$2
cae5b340 5693{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
ea04106b 5694$as_echo_n "checking for $ac_word... " >&6; }
cae5b340 5695if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
ea04106b
AX
5696 $as_echo_n "(cached) " >&6
5697else
5698 if test -n "$ac_ct_RANLIB"; then
5699 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5700else
5701as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5702for as_dir in $PATH
5703do
5704 IFS=$as_save_IFS
5705 test -z "$as_dir" && as_dir=.
cae5b340
AX
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
ea04106b 5708 ac_cv_prog_ac_ct_RANLIB="ranlib"
cae5b340 5709 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
ea04106b
AX
5710 break 2
5711 fi
5712done
cae5b340 5713done
ea04106b
AX
5714IFS=$as_save_IFS
5715
5716fi
5717fi
5718ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5719if test -n "$ac_ct_RANLIB"; then
cae5b340 5720 { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
ea04106b
AX
5721$as_echo "$ac_ct_RANLIB" >&6; }
5722else
cae5b340 5723 { $as_echo "$as_me:$LINENO: result: no" >&5
ea04106b
AX
5724$as_echo "no" >&6; }
5725fi
5726
5727 if test "x$ac_ct_RANLIB" = x; then
5728 RANLIB=":"
5729 else
5730 case $cross_compiling:$ac_tool_warned in
5731yes:)
cae5b340 5732{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
ea04106b
AX
5733$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5734ac_tool_warned=yes ;;
5735esac
5736 RANLIB=$ac_ct_RANLIB
5737 fi
5738else
5739 RANLIB="$ac_cv_prog_RANLIB"
5740fi
5741
5742test -z "$RANLIB" && RANLIB=:
5743
5744
5745
5746
5747
5748
5749# Determine commands to create old-style static archives.
5750old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5751old_postinstall_cmds='chmod 644 $oldlib'
5752old_postuninstall_cmds=
5753
5754if test -n "$RANLIB"; then
5755 case $host_os in
cae5b340
AX
5756 openbsd*)
5757 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
ea04106b
AX
5758 ;;
5759 *)
cae5b340 5760 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
ea04106b
AX
5761 ;;
5762 esac
cae5b340 5763 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
ea04106b
AX
5764fi
5765
ea04106b
AX
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.
5800LTCC=${LTCC-"$CC"}
5801
5802# If no C compiler flags were specified, use CFLAGS.
5803LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5804
5805# Allow CC to be a program name with arguments.
5806compiler=$CC
5807
5808
5809# Check for command to grab the raw symbol name followed by C symbol from nm.
cae5b340 5810{ $as_echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
ea04106b 5811$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
cae5b340 5812if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
ea04106b
AX
5813 $as_echo_n "(cached) " >&6
5814else
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.
5820symcode='[BCDEGRST]'
5821
5822# Regexp to match symbols that can be accessed directly from C.
5823sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5824
5825# Define system-specific variables.
5826case $host_os in
5827aix*)
5828 symcode='[BCDT]'
5829 ;;
5830cygwin* | mingw* | pw32* | cegcc*)
5831 symcode='[ABCDGISTW]'
5832 ;;
5833hpux*)
cae5b340 5834 if test "$host_cpu" = ia64; then
ea04106b
AX
5835 symcode='[ABCDEGRST]'
5836 fi
5837 ;;
5838irix* | nonstopux*)
5839 symcode='[BCDEGRST]'
5840 ;;
5841osf*)
5842 symcode='[BCDEGQRST]'
5843 ;;
5844solaris*)
5845 symcode='[BDRT]'
5846 ;;
5847sco3.2v5*)
5848 symcode='[DT]'
5849 ;;
5850sysv4.2uw2*)
5851 symcode='[DT]'
5852 ;;
5853sysv5* | sco5v6* | unixware* | OpenUNIX*)
5854 symcode='[ABDT]'
5855 ;;
5856sysv4)
5857 symcode='[DFNSTU]'
5858 ;;
5859esac
5860
5861# If we're using GNU nm, then use its standard symbol codes.
5862case `$NM -V 2>&1` in
5863*GNU* | *'with BFD'*)
5864 symcode='[ABCDGIRSTW]' ;;
5865esac
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.
cae5b340 5870lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
ea04106b
AX
5871
5872# Transform an extracted symbol line into symbol name and symbol address
cae5b340
AX
5873lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
5874lt_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'"
ea04106b
AX
5875
5876# Handle CRLF in mingw tool chain
5877opt_cr=
5878case $build_os in
5879mingw*)
5880 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5881 ;;
5882esac
5883
5884# Try without a prefix underscore, then with it.
5885for 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
cae5b340
AX
5892 # Fake it for dumpbin and say T for any non-static function
5893 # and D for any global variable.
ea04106b
AX
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};"\
ea04106b
AX
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};"\
cae5b340
AX
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))}"\
ea04106b
AX
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
ea04106b
AX
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
5917extern "C" {
5918#endif
5919char nm_test_var;
5920void nm_test_func(void);
5921void nm_test_func(void){}
5922#ifdef __cplusplus
5923}
5924#endif
5925int main(){nm_test_var='a';nm_test_func();return(0);}
5926_LT_EOF
5927
cae5b340 5928 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ea04106b
AX
5929 (eval $ac_compile) 2>&5
5930 ac_status=$?
cae5b340
AX
5931 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5932 (exit $ac_status); }; then
ea04106b
AX
5933 # Now try to grab the symbols.
5934 nlist=conftest.nm
cae5b340
AX
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
ea04106b 5937 ac_status=$?
cae5b340
AX
5938 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5939 (exit $ac_status); } && test -s "$nlist"; then
ea04106b
AX
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
ea04106b
AX
5951#ifdef __cplusplus
5952extern "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. */
cae5b340 5962const struct {
ea04106b
AX
5963 const char *name;
5964 void *address;
5965}
5966lt__PROGRAM__LTX_preloaded_symbols[] =
5967{
5968 { "@PROGRAM@", (void *) 0 },
5969_LT_EOF
cae5b340 5970 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
ea04106b
AX
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
5977static 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
cae5b340
AX
5988 lt_save_LIBS="$LIBS"
5989 lt_save_CFLAGS="$CFLAGS"
5990 LIBS="conftstm.$ac_objext"
ea04106b 5991 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
cae5b340 5992 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ea04106b
AX
5993 (eval $ac_link) 2>&5
5994 ac_status=$?
cae5b340
AX
5995 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5996 (exit $ac_status); } && test -s conftest${ac_exeext}; then
ea04106b
AX
5997 pipe_works=yes
5998 fi
cae5b340
AX
5999 LIBS="$lt_save_LIBS"
6000 CFLAGS="$lt_save_CFLAGS"
ea04106b
AX
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.
cae5b340 6017 if test "$pipe_works" = yes; then
ea04106b
AX
6018 break
6019 else
6020 lt_cv_sys_global_symbol_pipe=
6021 fi
6022done
6023
6024fi
6025
6026if test -z "$lt_cv_sys_global_symbol_pipe"; then
6027 lt_cv_sys_global_symbol_to_cdecl=
6028fi
6029if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
cae5b340 6030 { $as_echo "$as_me:$LINENO: result: failed" >&5
ea04106b
AX
6031$as_echo "failed" >&6; }
6032else
cae5b340 6033 { $as_echo "$as_me:$LINENO: result: ok" >&5
ea04106b
AX
6034$as_echo "ok" >&6; }
6035fi
6036
ea04106b
AX
6037
6038
6039
6040
6041
68d83c55
AX
6042
6043
6044
6045
6046
6047
6048
6049
6050
6051
ea04106b
AX
6052
6053
6054
6055
6056
6057
68d83c55 6058
ea04106b 6059# Check whether --enable-libtool-lock was given.
cae5b340 6060if test "${enable_libtool_lock+set}" = set; then
ea04106b
AX
6061 enableval=$enable_libtool_lock;
6062fi
6063
cae5b340 6064test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
ea04106b
AX
6065
6066# Some flags need to be propagated to the compiler or linker for good
6067# libtool support.
6068case $host in
6069ia64-*-hpux*)
cae5b340 6070 # Find out which ABI we are using.
ea04106b 6071 echo 'int i;' > conftest.$ac_ext
cae5b340 6072 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ea04106b
AX
6073 (eval $ac_compile) 2>&5
6074 ac_status=$?
cae5b340
AX
6075 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6076 (exit $ac_status); }; then
ea04106b
AX
6077 case `/usr/bin/file conftest.$ac_objext` in
6078 *ELF-32*)
cae5b340 6079 HPUX_IA64_MODE="32"
ea04106b
AX
6080 ;;
6081 *ELF-64*)
cae5b340 6082 HPUX_IA64_MODE="64"
ea04106b
AX
6083 ;;
6084 esac
6085 fi
6086 rm -rf conftest*
6087 ;;
6088*-*-irix6*)
cae5b340 6089 # Find out which ABI we are using.
42f7b73b 6090 echo '#line 6090 "configure"' > conftest.$ac_ext
cae5b340 6091 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ea04106b
AX
6092 (eval $ac_compile) 2>&5
6093 ac_status=$?
cae5b340
AX
6094 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6095 (exit $ac_status); }; then
6096 if test "$lt_cv_prog_gnu_ld" = yes; then
ea04106b
AX
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
cae5b340 6125x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
ea04106b 6126s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
cae5b340 6127 # Find out which ABI we are using.
ea04106b 6128 echo 'int i;' > conftest.$ac_ext
cae5b340 6129 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ea04106b
AX
6130 (eval $ac_compile) 2>&5
6131 ac_status=$?
cae5b340
AX
6132 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6133 (exit $ac_status); }; then
ea04106b
AX
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*)
cae5b340 6141 LD="${LD-ld} -m elf_i386"
68d83c55 6142 ;;
cae5b340 6143 ppc64-*linux*|powerpc64-*linux*)
ea04106b
AX
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 ;;
cae5b340 6162 ppc*-*linux*|powerpc*-*linux*)
ea04106b
AX
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.
cae5b340 6180 SAVE_CFLAGS="$CFLAGS"
ea04106b 6181 CFLAGS="$CFLAGS -belf"
cae5b340 6182 { $as_echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
ea04106b 6183$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
cae5b340 6184if test "${lt_cv_cc_needs_belf+set}" = set; then
ea04106b
AX
6185 $as_echo_n "(cached) " >&6
6186else
6187 ac_ext=c
6188ac_cpp='$CPP $CPPFLAGS'
6189ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6190ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6191ac_compiler_gnu=$ac_cv_c_compiler_gnu
6192
cae5b340
AX
6193 cat >conftest.$ac_ext <<_ACEOF
6194/* confdefs.h. */
6195_ACEOF
6196cat confdefs.h >>conftest.$ac_ext
6197cat >>conftest.$ac_ext <<_ACEOF
ea04106b
AX
6198/* end confdefs.h. */
6199
6200int
6201main ()
6202{
6203
6204 ;
6205 return 0;
6206}
6207_ACEOF
cae5b340
AX
6208rm -f conftest.$ac_objext conftest$ac_exeext
6209if { (ac_try="$ac_link"
6210case "(($ac_try" in
6211 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6212 *) ac_try_echo=$ac_try;;
6213esac
6214eval 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
ea04106b
AX
6229 lt_cv_cc_needs_belf=yes
6230else
cae5b340
AX
6231 $as_echo "$as_me: failed program was:" >&5
6232sed 's/^/| /' conftest.$ac_ext >&5
6233
6234 lt_cv_cc_needs_belf=no
ea04106b 6235fi
cae5b340
AX
6236
6237rm -rf conftest.dSYM
6238rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6239 conftest$ac_exeext conftest.$ac_ext
ea04106b
AX
6240 ac_ext=c
6241ac_cpp='$CPP $CPPFLAGS'
6242ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6243ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6244ac_compiler_gnu=$ac_cv_c_compiler_gnu
6245
6246fi
cae5b340 6247{ $as_echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
ea04106b 6248$as_echo "$lt_cv_cc_needs_belf" >&6; }
cae5b340 6249 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
ea04106b 6250 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
cae5b340 6251 CFLAGS="$SAVE_CFLAGS"
ea04106b
AX
6252 fi
6253 ;;
cae5b340
AX
6254sparc*-*solaris*)
6255 # Find out which ABI we are using.
ea04106b 6256 echo 'int i;' > conftest.$ac_ext
cae5b340 6257 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ea04106b
AX
6258 (eval $ac_compile) 2>&5
6259 ac_status=$?
cae5b340
AX
6260 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6261 (exit $ac_status); }; then
ea04106b
AX
6262 case `/usr/bin/file conftest.o` in
6263 *64-bit*)
6264 case $lt_cv_prog_gnu_ld in
cae5b340 6265 yes*) LD="${LD-ld} -m elf64_sparc" ;;
ea04106b
AX
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 ;;
6277esac
6278
cae5b340 6279need_locks="$enable_libtool_lock"
ea04106b
AX
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.
6286set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
cae5b340 6287{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
ea04106b 6288$as_echo_n "checking for $ac_word... " >&6; }
cae5b340 6289if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
ea04106b
AX
6290 $as_echo_n "(cached) " >&6
6291else
6292 if test -n "$DSYMUTIL"; then
6293 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6294else
6295as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6296for as_dir in $PATH
6297do
6298 IFS=$as_save_IFS
6299 test -z "$as_dir" && as_dir=.
cae5b340
AX
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
ea04106b 6302 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
cae5b340 6303 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
ea04106b
AX
6304 break 2
6305 fi
6306done
cae5b340 6307done
ea04106b
AX
6308IFS=$as_save_IFS
6309
6310fi
6311fi
6312DSYMUTIL=$ac_cv_prog_DSYMUTIL
6313if test -n "$DSYMUTIL"; then
cae5b340 6314 { $as_echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
ea04106b
AX
6315$as_echo "$DSYMUTIL" >&6; }
6316else
cae5b340 6317 { $as_echo "$as_me:$LINENO: result: no" >&5
ea04106b
AX
6318$as_echo "no" >&6; }
6319fi
6320
6321
6322fi
6323if 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.
6326set dummy dsymutil; ac_word=$2
cae5b340 6327{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
ea04106b 6328$as_echo_n "checking for $ac_word... " >&6; }
cae5b340 6329if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
ea04106b
AX
6330 $as_echo_n "(cached) " >&6
6331else
6332 if test -n "$ac_ct_DSYMUTIL"; then
6333 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6334else
6335as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6336for as_dir in $PATH
6337do
6338 IFS=$as_save_IFS
6339 test -z "$as_dir" && as_dir=.
cae5b340
AX
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
ea04106b 6342 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
cae5b340 6343 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
ea04106b
AX
6344 break 2
6345 fi
6346done
cae5b340 6347done
ea04106b
AX
6348IFS=$as_save_IFS
6349
6350fi
6351fi
6352ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6353if test -n "$ac_ct_DSYMUTIL"; then
cae5b340 6354 { $as_echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
ea04106b
AX
6355$as_echo "$ac_ct_DSYMUTIL" >&6; }
6356else
cae5b340 6357 { $as_echo "$as_me:$LINENO: result: no" >&5
ea04106b
AX
6358$as_echo "no" >&6; }
6359fi
6360
6361 if test "x$ac_ct_DSYMUTIL" = x; then
6362 DSYMUTIL=":"
6363 else
6364 case $cross_compiling:$ac_tool_warned in
6365yes:)
cae5b340 6366{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
ea04106b
AX
6367$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6368ac_tool_warned=yes ;;
6369esac
6370 DSYMUTIL=$ac_ct_DSYMUTIL
6371 fi
6372else
6373 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6374fi
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.
6378set dummy ${ac_tool_prefix}nmedit; ac_word=$2
cae5b340 6379{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
ea04106b 6380$as_echo_n "checking for $ac_word... " >&6; }
cae5b340 6381if test "${ac_cv_prog_NMEDIT+set}" = set; then
ea04106b
AX
6382 $as_echo_n "(cached) " >&6
6383else
6384 if test -n "$NMEDIT"; then
6385 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6386else
6387as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6388for as_dir in $PATH
6389do
6390 IFS=$as_save_IFS
6391 test -z "$as_dir" && as_dir=.
cae5b340
AX
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
ea04106b 6394 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
cae5b340 6395 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
ea04106b
AX
6396 break 2
6397 fi
6398done
cae5b340 6399done
ea04106b
AX
6400IFS=$as_save_IFS
6401
6402fi
6403fi
6404NMEDIT=$ac_cv_prog_NMEDIT
6405if test -n "$NMEDIT"; then
cae5b340 6406 { $as_echo "$as_me:$LINENO: result: $NMEDIT" >&5
ea04106b
AX
6407$as_echo "$NMEDIT" >&6; }
6408else
cae5b340 6409 { $as_echo "$as_me:$LINENO: result: no" >&5
ea04106b
AX
6410$as_echo "no" >&6; }
6411fi
6412
6413
6414fi
6415if 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.
6418set dummy nmedit; ac_word=$2
cae5b340 6419{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
ea04106b 6420$as_echo_n "checking for $ac_word... " >&6; }
cae5b340 6421if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
ea04106b
AX
6422 $as_echo_n "(cached) " >&6
6423else
6424 if test -n "$ac_ct_NMEDIT"; then
6425 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6426else
6427as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6428for as_dir in $PATH
6429do
6430 IFS=$as_save_IFS
6431 test -z "$as_dir" && as_dir=.
cae5b340
AX
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
ea04106b 6434 ac_cv_prog_ac_ct_NMEDIT="nmedit"
cae5b340 6435 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
ea04106b
AX
6436 break 2
6437 fi
6438done
cae5b340 6439done
ea04106b
AX
6440IFS=$as_save_IFS
6441
6442fi
6443fi
6444ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6445if test -n "$ac_ct_NMEDIT"; then
cae5b340 6446 { $as_echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
ea04106b
AX
6447$as_echo "$ac_ct_NMEDIT" >&6; }
6448else
cae5b340 6449 { $as_echo "$as_me:$LINENO: result: no" >&5
ea04106b
AX
6450$as_echo "no" >&6; }
6451fi
6452
6453 if test "x$ac_ct_NMEDIT" = x; then
6454 NMEDIT=":"
6455 else
6456 case $cross_compiling:$ac_tool_warned in
6457yes:)
cae5b340 6458{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
ea04106b
AX
6459$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6460ac_tool_warned=yes ;;
6461esac
6462 NMEDIT=$ac_ct_NMEDIT
6463 fi
6464else
6465 NMEDIT="$ac_cv_prog_NMEDIT"
6466fi
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.
6470set dummy ${ac_tool_prefix}lipo; ac_word=$2
cae5b340 6471{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
ea04106b 6472$as_echo_n "checking for $ac_word... " >&6; }
cae5b340 6473if test "${ac_cv_prog_LIPO+set}" = set; then
ea04106b
AX
6474 $as_echo_n "(cached) " >&6
6475else
6476 if test -n "$LIPO"; then
6477 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6478else
6479as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6480for as_dir in $PATH
6481do
6482 IFS=$as_save_IFS
6483 test -z "$as_dir" && as_dir=.
cae5b340
AX
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
ea04106b 6486 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
cae5b340 6487 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
ea04106b
AX
6488 break 2
6489 fi
6490done
cae5b340 6491done
ea04106b
AX
6492IFS=$as_save_IFS
6493
6494fi
6495fi
6496LIPO=$ac_cv_prog_LIPO
6497if test -n "$LIPO"; then
cae5b340 6498 { $as_echo "$as_me:$LINENO: result: $LIPO" >&5
ea04106b
AX
6499$as_echo "$LIPO" >&6; }
6500else
cae5b340 6501 { $as_echo "$as_me:$LINENO: result: no" >&5
ea04106b
AX
6502$as_echo "no" >&6; }
6503fi
6504
6505
6506fi
6507if 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.
6510set dummy lipo; ac_word=$2
cae5b340 6511{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
ea04106b 6512$as_echo_n "checking for $ac_word... " >&6; }
cae5b340 6513if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then
ea04106b
AX
6514 $as_echo_n "(cached) " >&6
6515else
6516 if test -n "$ac_ct_LIPO"; then
6517 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6518else
6519as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6520for as_dir in $PATH
6521do
6522 IFS=$as_save_IFS
6523 test -z "$as_dir" && as_dir=.
cae5b340
AX
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
ea04106b 6526 ac_cv_prog_ac_ct_LIPO="lipo"
cae5b340 6527 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
ea04106b
AX
6528 break 2
6529 fi
6530done
cae5b340 6531done
ea04106b
AX
6532IFS=$as_save_IFS
6533
6534fi
6535fi
6536ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6537if test -n "$ac_ct_LIPO"; then
cae5b340 6538 { $as_echo "$as_me:$LINENO: result: $ac_ct_LIPO" >&5
ea04106b
AX
6539$as_echo "$ac_ct_LIPO" >&6; }
6540else
cae5b340 6541 { $as_echo "$as_me:$LINENO: result: no" >&5
ea04106b
AX
6542$as_echo "no" >&6; }
6543fi
6544
6545 if test "x$ac_ct_LIPO" = x; then
6546 LIPO=":"
6547 else
6548 case $cross_compiling:$ac_tool_warned in
6549yes:)
cae5b340 6550{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
ea04106b
AX
6551$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6552ac_tool_warned=yes ;;
6553esac
6554 LIPO=$ac_ct_LIPO
6555 fi
6556else
6557 LIPO="$ac_cv_prog_LIPO"
6558fi
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.
6562set dummy ${ac_tool_prefix}otool; ac_word=$2
cae5b340 6563{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
ea04106b 6564$as_echo_n "checking for $ac_word... " >&6; }
cae5b340 6565if test "${ac_cv_prog_OTOOL+set}" = set; then
ea04106b
AX
6566 $as_echo_n "(cached) " >&6
6567else
6568 if test -n "$OTOOL"; then
6569 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6570else
6571as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6572for as_dir in $PATH
6573do
6574 IFS=$as_save_IFS
6575 test -z "$as_dir" && as_dir=.
cae5b340
AX
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
ea04106b 6578 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
cae5b340 6579 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
ea04106b
AX
6580 break 2
6581 fi
6582done
cae5b340 6583done
ea04106b
AX
6584IFS=$as_save_IFS
6585
6586fi
6587fi
6588OTOOL=$ac_cv_prog_OTOOL
6589if test -n "$OTOOL"; then
cae5b340 6590 { $as_echo "$as_me:$LINENO: result: $OTOOL" >&5
ea04106b
AX
6591$as_echo "$OTOOL" >&6; }
6592else
cae5b340 6593 { $as_echo "$as_me:$LINENO: result: no" >&5
ea04106b
AX
6594$as_echo "no" >&6; }
6595fi
6596
6597
6598fi
6599if 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.
6602set dummy otool; ac_word=$2
cae5b340 6603{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
ea04106b 6604$as_echo_n "checking for $ac_word... " >&6; }
cae5b340 6605if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then
ea04106b
AX
6606 $as_echo_n "(cached) " >&6
6607else
6608 if test -n "$ac_ct_OTOOL"; then
6609 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6610else
6611as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6612for as_dir in $PATH
6613do
6614 IFS=$as_save_IFS
6615 test -z "$as_dir" && as_dir=.
cae5b340
AX
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
ea04106b 6618 ac_cv_prog_ac_ct_OTOOL="otool"
cae5b340 6619 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
ea04106b
AX
6620 break 2
6621 fi
6622done
cae5b340 6623done
ea04106b
AX
6624IFS=$as_save_IFS
6625
6626fi
6627fi
6628ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6629if test -n "$ac_ct_OTOOL"; then
cae5b340 6630 { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL" >&5
ea04106b
AX
6631$as_echo "$ac_ct_OTOOL" >&6; }
6632else
cae5b340 6633 { $as_echo "$as_me:$LINENO: result: no" >&5
ea04106b
AX
6634$as_echo "no" >&6; }
6635fi
6636
6637 if test "x$ac_ct_OTOOL" = x; then
6638 OTOOL=":"
6639 else
6640 case $cross_compiling:$ac_tool_warned in
6641yes:)
cae5b340 6642{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
ea04106b
AX
6643$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6644ac_tool_warned=yes ;;
6645esac
6646 OTOOL=$ac_ct_OTOOL
6647 fi
6648else
6649 OTOOL="$ac_cv_prog_OTOOL"
6650fi
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.
6654set dummy ${ac_tool_prefix}otool64; ac_word=$2
cae5b340 6655{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
ea04106b 6656$as_echo_n "checking for $ac_word... " >&6; }
cae5b340 6657if test "${ac_cv_prog_OTOOL64+set}" = set; then
ea04106b
AX
6658 $as_echo_n "(cached) " >&6
6659else
6660 if test -n "$OTOOL64"; then
6661 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6662else
6663as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6664for as_dir in $PATH
6665do
6666 IFS=$as_save_IFS
6667 test -z "$as_dir" && as_dir=.
cae5b340
AX
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
ea04106b 6670 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
cae5b340 6671 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
ea04106b
AX
6672 break 2
6673 fi
6674done
cae5b340 6675done
ea04106b
AX
6676IFS=$as_save_IFS
6677
6678fi
6679fi
6680OTOOL64=$ac_cv_prog_OTOOL64
6681if test -n "$OTOOL64"; then
cae5b340 6682 { $as_echo "$as_me:$LINENO: result: $OTOOL64" >&5
ea04106b
AX
6683$as_echo "$OTOOL64" >&6; }
6684else
cae5b340 6685 { $as_echo "$as_me:$LINENO: result: no" >&5
ea04106b
AX
6686$as_echo "no" >&6; }
6687fi
6688
6689
6690fi
6691if 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.
6694set dummy otool64; ac_word=$2
cae5b340 6695{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
ea04106b 6696$as_echo_n "checking for $ac_word... " >&6; }
cae5b340 6697if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then
ea04106b
AX
6698 $as_echo_n "(cached) " >&6
6699else
6700 if test -n "$ac_ct_OTOOL64"; then
6701 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6702else
6703as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6704for as_dir in $PATH
6705do
6706 IFS=$as_save_IFS
6707 test -z "$as_dir" && as_dir=.
cae5b340
AX
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
ea04106b 6710 ac_cv_prog_ac_ct_OTOOL64="otool64"
cae5b340 6711 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
ea04106b
AX
6712 break 2
6713 fi
6714done
cae5b340 6715done
ea04106b
AX
6716IFS=$as_save_IFS
6717
6718fi
6719fi
6720ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6721if test -n "$ac_ct_OTOOL64"; then
cae5b340 6722 { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL64" >&5
ea04106b
AX
6723$as_echo "$ac_ct_OTOOL64" >&6; }
6724else
cae5b340 6725 { $as_echo "$as_me:$LINENO: result: no" >&5
ea04106b
AX
6726$as_echo "no" >&6; }
6727fi
6728
6729 if test "x$ac_ct_OTOOL64" = x; then
6730 OTOOL64=":"
6731 else
6732 case $cross_compiling:$ac_tool_warned in
6733yes:)
cae5b340 6734{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
ea04106b
AX
6735$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6736ac_tool_warned=yes ;;
6737esac
6738 OTOOL64=$ac_ct_OTOOL64
6739 fi
6740else
6741 OTOOL64="$ac_cv_prog_OTOOL64"
6742fi
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
cae5b340 6770 { $as_echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
ea04106b 6771$as_echo_n "checking for -single_module linker flag... " >&6; }
cae5b340 6772if test "${lt_cv_apple_cc_single_mod+set}" = set; then
ea04106b
AX
6773 $as_echo_n "(cached) " >&6
6774else
6775 lt_cv_apple_cc_single_mod=no
cae5b340 6776 if test -z "${LT_MULTI_MODULE}"; then
ea04106b
AX
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=$?
cae5b340 6788 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
ea04106b
AX
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
6796fi
cae5b340 6797{ $as_echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
ea04106b 6798$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
cae5b340 6799 { $as_echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
ea04106b 6800$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
cae5b340 6801if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
ea04106b
AX
6802 $as_echo_n "(cached) " >&6
6803else
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"
cae5b340
AX
6808 cat >conftest.$ac_ext <<_ACEOF
6809/* confdefs.h. */
6810_ACEOF
6811cat confdefs.h >>conftest.$ac_ext
6812cat >>conftest.$ac_ext <<_ACEOF
ea04106b
AX
6813/* end confdefs.h. */
6814
6815int
6816main ()
6817{
6818
6819 ;
6820 return 0;
6821}
6822_ACEOF
cae5b340
AX
6823rm -f conftest.$ac_objext conftest$ac_exeext
6824if { (ac_try="$ac_link"
6825case "(($ac_try" in
6826 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6827 *) ac_try_echo=$ac_try;;
6828esac
6829eval 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
ea04106b
AX
6844 lt_cv_ld_exported_symbols_list=yes
6845else
cae5b340
AX
6846 $as_echo "$as_me: failed program was:" >&5
6847sed 's/^/| /' conftest.$ac_ext >&5
ea04106b 6848
cae5b340 6849 lt_cv_ld_exported_symbols_list=no
ea04106b 6850fi
ea04106b 6851
cae5b340
AX
6852rm -rf conftest.dSYM
6853rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6854 conftest$ac_exeext conftest.$ac_ext
6855 LDFLAGS="$save_LDFLAGS"
ea04106b
AX
6856
6857fi
cae5b340
AX
6858{ $as_echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
6859$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
ea04106b
AX
6860 case $host_os in
6861 rhapsody* | darwin1.[012])
cae5b340 6862 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
ea04106b 6863 darwin1.*)
cae5b340 6864 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
ea04106b
AX
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]*)
cae5b340
AX
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' ;;
ea04106b 6874 10.*)
cae5b340 6875 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
ea04106b
AX
6876 esac
6877 ;;
6878 esac
cae5b340 6879 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
ea04106b
AX
6880 _lt_dar_single_mod='$single_module'
6881 fi
cae5b340
AX
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'
ea04106b 6884 else
cae5b340 6885 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
ea04106b 6886 fi
cae5b340 6887 if test "$DSYMUTIL" != ":"; then
ea04106b
AX
6888 _lt_dsymutil='~$DSYMUTIL $lib || :'
6889 else
6890 _lt_dsymutil=
6891 fi
6892 ;;
6893 esac
6894
6895ac_ext=c
6896ac_cpp='$CPP $CPPFLAGS'
6897ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6898ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6899ac_compiler_gnu=$ac_cv_c_compiler_gnu
cae5b340 6900{ $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
ea04106b
AX
6901$as_echo_n "checking how to run the C preprocessor... " >&6; }
6902# On Suns, sometimes $CPP names a directory.
6903if test -n "$CPP" && test -d "$CPP"; then
6904 CPP=
6905fi
6906if test -z "$CPP"; then
cae5b340 6907 if test "${ac_cv_prog_CPP+set}" = set; then
ea04106b
AX
6908 $as_echo_n "(cached) " >&6
6909else
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
6914for ac_c_preproc_warn_flag in '' yes
6915do
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.
cae5b340
AX
6922 cat >conftest.$ac_ext <<_ACEOF
6923/* confdefs.h. */
6924_ACEOF
6925cat confdefs.h >>conftest.$ac_ext
6926cat >>conftest.$ac_ext <<_ACEOF
ea04106b
AX
6927/* end confdefs.h. */
6928#ifdef __STDC__
6929# include <limits.h>
6930#else
6931# include <assert.h>
6932#endif
6933 Syntax error
6934_ACEOF
cae5b340
AX
6935if { (ac_try="$ac_cpp conftest.$ac_ext"
6936case "(($ac_try" in
6937 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6938 *) ac_try_echo=$ac_try;;
6939esac
6940eval 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 :
ea04106b 6953else
cae5b340
AX
6954 $as_echo "$as_me: failed program was:" >&5
6955sed 's/^/| /' conftest.$ac_ext >&5
6956
ea04106b
AX
6957 # Broken: fails on valid input.
6958continue
6959fi
cae5b340
AX
6960
6961rm -f conftest.err conftest.$ac_ext
ea04106b
AX
6962
6963 # OK, works on sane cases. Now check whether nonexistent headers
6964 # can be detected and how.
cae5b340
AX
6965 cat >conftest.$ac_ext <<_ACEOF
6966/* confdefs.h. */
6967_ACEOF
6968cat confdefs.h >>conftest.$ac_ext
6969cat >>conftest.$ac_ext <<_ACEOF
ea04106b
AX
6970/* end confdefs.h. */
6971#include <ac_nonexistent.h>
6972_ACEOF
cae5b340
AX
6973if { (ac_try="$ac_cpp conftest.$ac_ext"
6974case "(($ac_try" in
6975 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6976 *) ac_try_echo=$ac_try;;
6977esac
6978eval 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
ea04106b
AX
6990 # Broken: success on invalid input.
6991continue
6992else
cae5b340
AX
6993 $as_echo "$as_me: failed program was:" >&5
6994sed 's/^/| /' conftest.$ac_ext >&5
6995
ea04106b
AX
6996 # Passes both tests.
6997ac_preproc_ok=:
6998break
6999fi
cae5b340
AX
7000
7001rm -f conftest.err conftest.$ac_ext
ea04106b
AX
7002
7003done
7004# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cae5b340
AX
7005rm -f conftest.err conftest.$ac_ext
7006if $ac_preproc_ok; then
ea04106b
AX
7007 break
7008fi
7009
7010 done
7011 ac_cv_prog_CPP=$CPP
7012
7013fi
7014 CPP=$ac_cv_prog_CPP
7015else
7016 ac_cv_prog_CPP=$CPP
7017fi
cae5b340 7018{ $as_echo "$as_me:$LINENO: result: $CPP" >&5
ea04106b
AX
7019$as_echo "$CPP" >&6; }
7020ac_preproc_ok=false
7021for ac_c_preproc_warn_flag in '' yes
7022do
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.
cae5b340
AX
7029 cat >conftest.$ac_ext <<_ACEOF
7030/* confdefs.h. */
7031_ACEOF
7032cat confdefs.h >>conftest.$ac_ext
7033cat >>conftest.$ac_ext <<_ACEOF
ea04106b
AX
7034/* end confdefs.h. */
7035#ifdef __STDC__
7036# include <limits.h>
7037#else
7038# include <assert.h>
7039#endif
7040 Syntax error
7041_ACEOF
cae5b340
AX
7042if { (ac_try="$ac_cpp conftest.$ac_ext"
7043case "(($ac_try" in
7044 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7045 *) ac_try_echo=$ac_try;;
7046esac
7047eval 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 :
ea04106b 7060else
cae5b340
AX
7061 $as_echo "$as_me: failed program was:" >&5
7062sed 's/^/| /' conftest.$ac_ext >&5
7063
ea04106b
AX
7064 # Broken: fails on valid input.
7065continue
7066fi
cae5b340
AX
7067
7068rm -f conftest.err conftest.$ac_ext
ea04106b
AX
7069
7070 # OK, works on sane cases. Now check whether nonexistent headers
7071 # can be detected and how.
cae5b340
AX
7072 cat >conftest.$ac_ext <<_ACEOF
7073/* confdefs.h. */
7074_ACEOF
7075cat confdefs.h >>conftest.$ac_ext
7076cat >>conftest.$ac_ext <<_ACEOF
ea04106b
AX
7077/* end confdefs.h. */
7078#include <ac_nonexistent.h>
7079_ACEOF
cae5b340
AX
7080if { (ac_try="$ac_cpp conftest.$ac_ext"
7081case "(($ac_try" in
7082 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7083 *) ac_try_echo=$ac_try;;
7084esac
7085eval 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
ea04106b
AX
7097 # Broken: success on invalid input.
7098continue
7099else
cae5b340
AX
7100 $as_echo "$as_me: failed program was:" >&5
7101sed 's/^/| /' conftest.$ac_ext >&5
7102
ea04106b
AX
7103 # Passes both tests.
7104ac_preproc_ok=:
7105break
7106fi
cae5b340
AX
7107
7108rm -f conftest.err conftest.$ac_ext
ea04106b
AX
7109
7110done
7111# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cae5b340
AX
7112rm -f conftest.err conftest.$ac_ext
7113if $ac_preproc_ok; then
7114 :
ea04106b 7115else
cae5b340 7116 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
ea04106b 7117$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cae5b340
AX
7118{ { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
7119See \`config.log' for more details." >&5
7120$as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
7121See \`config.log' for more details." >&2;}
7122 { (exit 1); exit 1; }; }; }
ea04106b
AX
7123fi
7124
7125ac_ext=c
7126ac_cpp='$CPP $CPPFLAGS'
7127ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7128ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7129ac_compiler_gnu=$ac_cv_c_compiler_gnu
7130
7131
cae5b340 7132{ $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
ea04106b 7133$as_echo_n "checking for ANSI C header files... " >&6; }
cae5b340 7134if test "${ac_cv_header_stdc+set}" = set; then
ea04106b
AX
7135 $as_echo_n "(cached) " >&6
7136else
cae5b340
AX
7137 cat >conftest.$ac_ext <<_ACEOF
7138/* confdefs.h. */
7139_ACEOF
7140cat confdefs.h >>conftest.$ac_ext
7141cat >>conftest.$ac_ext <<_ACEOF
ea04106b
AX
7142/* end confdefs.h. */
7143#include <stdlib.h>
7144#include <stdarg.h>
7145#include <string.h>
7146#include <float.h>
7147
7148int
7149main ()
7150{
7151
7152 ;
7153 return 0;
7154}
7155_ACEOF
cae5b340
AX
7156rm -f conftest.$ac_objext
7157if { (ac_try="$ac_compile"
7158case "(($ac_try" in
7159 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7160 *) ac_try_echo=$ac_try;;
7161esac
7162eval 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
ea04106b
AX
7174 ac_cv_header_stdc=yes
7175else
cae5b340
AX
7176 $as_echo "$as_me: failed program was:" >&5
7177sed 's/^/| /' conftest.$ac_ext >&5
7178
7179 ac_cv_header_stdc=no
ea04106b 7180fi
cae5b340 7181
ea04106b
AX
7182rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7183
7184if test $ac_cv_header_stdc = yes; then
7185 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
cae5b340
AX
7186 cat >conftest.$ac_ext <<_ACEOF
7187/* confdefs.h. */
7188_ACEOF
7189cat confdefs.h >>conftest.$ac_ext
7190cat >>conftest.$ac_ext <<_ACEOF
ea04106b
AX
7191/* end confdefs.h. */
7192#include <string.h>
7193
7194_ACEOF
7195if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cae5b340
AX
7196 $EGREP "memchr" >/dev/null 2>&1; then
7197 :
ea04106b
AX
7198else
7199 ac_cv_header_stdc=no
7200fi
7201rm -f conftest*
7202
7203fi
7204
7205if test $ac_cv_header_stdc = yes; then
7206 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
cae5b340
AX
7207 cat >conftest.$ac_ext <<_ACEOF
7208/* confdefs.h. */
7209_ACEOF
7210cat confdefs.h >>conftest.$ac_ext
7211cat >>conftest.$ac_ext <<_ACEOF
ea04106b
AX
7212/* end confdefs.h. */
7213#include <stdlib.h>
7214
7215_ACEOF
7216if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cae5b340
AX
7217 $EGREP "free" >/dev/null 2>&1; then
7218 :
ea04106b
AX
7219else
7220 ac_cv_header_stdc=no
7221fi
7222rm -f conftest*
7223
7224fi
7225
7226if test $ac_cv_header_stdc = yes; then
7227 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
cae5b340 7228 if test "$cross_compiling" = yes; then
ea04106b
AX
7229 :
7230else
cae5b340
AX
7231 cat >conftest.$ac_ext <<_ACEOF
7232/* confdefs.h. */
7233_ACEOF
7234cat confdefs.h >>conftest.$ac_ext
7235cat >>conftest.$ac_ext <<_ACEOF
ea04106b
AX
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)))
7251int
7252main ()
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
cae5b340
AX
7262rm -f conftest$ac_exeext
7263if { (ac_try="$ac_link"
7264case "(($ac_try" in
7265 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7266 *) ac_try_echo=$ac_try;;
7267esac
7268eval 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;;
7277esac
7278eval 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 :
ea04106b 7285else
cae5b340
AX
7286 $as_echo "$as_me: program exited with status $ac_status" >&5
7287$as_echo "$as_me: failed program was:" >&5
7288sed 's/^/| /' conftest.$ac_ext >&5
7289
7290( exit $ac_status )
7291ac_cv_header_stdc=no
ea04106b 7292fi
cae5b340
AX
7293rm -rf conftest.dSYM
7294rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ea04106b
AX
7295fi
7296
cae5b340 7297
ea04106b
AX
7298fi
7299fi
cae5b340 7300{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
ea04106b
AX
7301$as_echo "$ac_cv_header_stdc" >&6; }
7302if test $ac_cv_header_stdc = yes; then
7303
cae5b340
AX
7304cat >>confdefs.h <<\_ACEOF
7305#define STDC_HEADERS 1
7306_ACEOF
ea04106b
AX
7307
7308fi
7309
7310# On IRIX 5.3, sys/types and inttypes.h are conflicting.
cae5b340
AX
7311
7312
7313
7314
7315
7316
7317
7318
7319
ea04106b
AX
7320for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7321 inttypes.h stdint.h unistd.h
cae5b340
AX
7322do
7323as_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; }
7326if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7327 $as_echo_n "(cached) " >&6
7328else
7329 cat >conftest.$ac_ext <<_ACEOF
7330/* confdefs.h. */
7331_ACEOF
7332cat confdefs.h >>conftest.$ac_ext
7333cat >>conftest.$ac_ext <<_ACEOF
7334/* end confdefs.h. */
7335$ac_includes_default
7336
7337#include <$ac_header>
7338_ACEOF
7339rm -f conftest.$ac_objext
7340if { (ac_try="$ac_compile"
7341case "(($ac_try" in
7342 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7343 *) ac_try_echo=$ac_try;;
7344esac
7345eval 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"
7358else
7359 $as_echo "$as_me: failed program was:" >&5
7360sed 's/^/| /' conftest.$ac_ext >&5
7361
7362 eval "$as_ac_Header=no"
7363fi
7364
7365rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7366fi
7367ac_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; }
7371as_val=`eval 'as_val=${'$as_ac_Header'}
7372 $as_echo "$as_val"'`
7373 if test "x$as_val" = x""yes; then
ea04106b
AX
7374 cat >>confdefs.h <<_ACEOF
7375#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7376_ACEOF
7377
7378fi
7379
7380done
7381
7382
cae5b340 7383
ea04106b 7384for ac_header in dlfcn.h
cae5b340
AX
7385do
7386as_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; }
7389if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7390 $as_echo_n "(cached) " >&6
7391else
7392 cat >conftest.$ac_ext <<_ACEOF
7393/* confdefs.h. */
7394_ACEOF
7395cat confdefs.h >>conftest.$ac_ext
7396cat >>conftest.$ac_ext <<_ACEOF
7397/* end confdefs.h. */
7398$ac_includes_default
7399
7400#include <$ac_header>
ea04106b 7401_ACEOF
cae5b340
AX
7402rm -f conftest.$ac_objext
7403if { (ac_try="$ac_compile"
7404case "(($ac_try" in
7405 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7406 *) ac_try_echo=$ac_try;;
7407esac
7408eval 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"
7421else
7422 $as_echo "$as_me: failed program was:" >&5
7423sed 's/^/| /' conftest.$ac_ext >&5
ea04106b 7424
cae5b340 7425 eval "$as_ac_Header=no"
ea04106b
AX
7426fi
7427
cae5b340
AX
7428rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7429fi
7430ac_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; }
7434as_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
ea04106b 7440
cae5b340 7441fi
ea04106b 7442
cae5b340 7443done
ea04106b
AX
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.
cae5b340 7458if test "${enable_shared+set}" = set; then
ea04106b
AX
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.
cae5b340 7466 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
ea04106b 7467 for pkg in $enableval; do
cae5b340 7468 IFS="$lt_save_ifs"
ea04106b
AX
7469 if test "X$pkg" = "X$p"; then
7470 enable_shared=yes
7471 fi
7472 done
cae5b340 7473 IFS="$lt_save_ifs"
ea04106b
AX
7474 ;;
7475 esac
7476else
7477 enable_shared=yes
7478fi
7479
7480
7481
7482
7483
7484
7485
7486
7487
7488 # Check whether --enable-static was given.
cae5b340 7489if test "${enable_static+set}" = set; then
ea04106b
AX
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.
cae5b340 7497 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
ea04106b 7498 for pkg in $enableval; do
cae5b340 7499 IFS="$lt_save_ifs"
ea04106b
AX
7500 if test "X$pkg" = "X$p"; then
7501 enable_static=yes
7502 fi
7503 done
cae5b340 7504 IFS="$lt_save_ifs"
ea04106b
AX
7505 ;;
7506 esac
7507else
7508 enable_static=yes
7509fi
7510
7511
7512
7513
7514
7515
7516
7517
7518
7519
7520# Check whether --with-pic was given.
cae5b340
AX
7521if test "${with_pic+set}" = set; then
7522 withval=$with_pic; pic_mode="$withval"
ea04106b
AX
7523else
7524 pic_mode=default
7525fi
7526
7527
cae5b340
AX
7528test -z "$pic_mode" && pic_mode=default
7529
ea04106b
AX
7530
7531
7532
7533
7534
7535
7536 # Check whether --enable-fast-install was given.
cae5b340 7537if test "${enable_fast_install+set}" = set; then
ea04106b
AX
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.
cae5b340 7545 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
ea04106b 7546 for pkg in $enableval; do
cae5b340 7547 IFS="$lt_save_ifs"
ea04106b
AX
7548 if test "X$pkg" = "X$p"; then
7549 enable_fast_install=yes
7550 fi
7551 done
cae5b340 7552 IFS="$lt_save_ifs"
ea04106b
AX
7553 ;;
7554 esac
7555else
7556 enable_fast_install=yes
7557fi
7558
7559
7560
7561
7562
7563
7564
7565
7566
7567
7568
7569# This can be used to rebuild libtool when needed
cae5b340 7570LIBTOOL_DEPS="$ltmain"
ea04106b
AX
7571
7572# Always use our own libtool.
7573LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7574
7575
7576
7577
7578
7579
7580
7581
7582
7583
7584
7585
7586
7587
7588
7589
7590
7591
7592
ea04106b
AX
7593
7594
7595
7596
7597
7598
7599test -z "$LN_S" && LN_S="ln -s"
7600
7601
7602
7603
7604
7605
7606
7607
7608
7609
7610
7611
7612
7613
cae5b340 7614if test -n "${ZSH_VERSION+set}" ; then
ea04106b
AX
7615 setopt NO_GLOB_SUBST
7616fi
7617
cae5b340 7618{ $as_echo "$as_me:$LINENO: checking for objdir" >&5
ea04106b 7619$as_echo_n "checking for objdir... " >&6; }
cae5b340 7620if test "${lt_cv_objdir+set}" = set; then
ea04106b
AX
7621 $as_echo_n "(cached) " >&6
7622else
7623 rm -f .libs 2>/dev/null
7624mkdir .libs 2>/dev/null
7625if test -d .libs; then
7626 lt_cv_objdir=.libs
7627else
7628 # MS-DOS does not allow filenames that begin with a dot.
7629 lt_cv_objdir=_libs
7630fi
7631rmdir .libs 2>/dev/null
7632fi
cae5b340 7633{ $as_echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
ea04106b
AX
7634$as_echo "$lt_cv_objdir" >&6; }
7635objdir=$lt_cv_objdir
7636
7637
7638
7639
7640
7641cat >>confdefs.h <<_ACEOF
7642#define LT_OBJDIR "$lt_cv_objdir/"
7643_ACEOF
7644
7645
7646
7647
cae5b340
AX
7648
7649
7650
7651
7652
7653
7654
7655
7656
7657
7658
7659
7660
ea04106b
AX
7661case $host_os in
7662aix3*)
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.
cae5b340 7666 if test "X${COLLECT_NAMES+set}" != Xset; then
ea04106b
AX
7667 COLLECT_NAMES=
7668 export COLLECT_NAMES
7669 fi
7670 ;;
7671esac
7672
cae5b340
AX
7673# Sed substitution that helps us do robust quoting. It backslashifies
7674# metacharacters that are still active within double-quoted strings.
7675sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
7676
7677# Same as above, but do not quote variable references.
7678double_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.
7682delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7683
7684# Sed substitution to delay expansion of an escaped single quote.
7685delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
7686
7687# Sed substitution to avoid accidental globbing in evaled expressions
7688no_glob_subst='s/\*/\\\*/g'
7689
ea04106b
AX
7690# Global variables:
7691ofile=libtool
7692can_build_shared=yes
7693
cae5b340 7694# All known linkers require a `.a' archive for static linking (except MSVC,
ea04106b
AX
7695# which needs '.lib').
7696libext=a
7697
cae5b340 7698with_gnu_ld="$lt_cv_prog_gnu_ld"
ea04106b 7699
cae5b340
AX
7700old_CC="$CC"
7701old_CFLAGS="$CFLAGS"
ea04106b
AX
7702
7703# Set sane defaults for various variables
7704test -z "$CC" && CC=cc
7705test -z "$LTCC" && LTCC=$CC
7706test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7707test -z "$LD" && LD=ld
7708test -z "$ac_objext" && ac_objext=o
7709
cae5b340
AX
7710for 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
7717done
7718cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
ea04106b
AX
7719
7720
7721# Only perform the check for file, if the check method requires it
7722test -z "$MAGIC_CMD" && MAGIC_CMD=file
7723case $deplibs_check_method in
7724file_magic*)
7725 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
cae5b340 7726 { $as_echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
ea04106b 7727$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
cae5b340 7728if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
ea04106b
AX
7729 $as_echo_n "(cached) " >&6
7730else
7731 case $MAGIC_CMD in
7732[\\/*] | ?:[\\/]*)
cae5b340 7733 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
ea04106b
AX
7734 ;;
7735*)
cae5b340
AX
7736 lt_save_MAGIC_CMD="$MAGIC_CMD"
7737 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
ea04106b
AX
7738 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7739 for ac_dir in $ac_dummy; do
cae5b340 7740 IFS="$lt_save_ifs"
ea04106b 7741 test -z "$ac_dir" && ac_dir=.
cae5b340
AX
7742 if test -f $ac_dir/${ac_tool_prefix}file; then
7743 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
ea04106b
AX
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 \(.*\)"`
cae5b340 7748 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
ea04106b
AX
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
cae5b340
AX
7771 IFS="$lt_save_ifs"
7772 MAGIC_CMD="$lt_save_MAGIC_CMD"
ea04106b
AX
7773 ;;
7774esac
7775fi
7776
cae5b340 7777MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
ea04106b 7778if test -n "$MAGIC_CMD"; then
cae5b340 7779 { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
ea04106b
AX
7780$as_echo "$MAGIC_CMD" >&6; }
7781else
cae5b340 7782 { $as_echo "$as_me:$LINENO: result: no" >&5
ea04106b
AX
7783$as_echo "no" >&6; }
7784fi
7785
7786
7787
7788
7789
7790if test -z "$lt_cv_path_MAGIC_CMD"; then
7791 if test -n "$ac_tool_prefix"; then
cae5b340 7792 { $as_echo "$as_me:$LINENO: checking for file" >&5
ea04106b 7793$as_echo_n "checking for file... " >&6; }
cae5b340 7794if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
ea04106b
AX
7795 $as_echo_n "(cached) " >&6
7796else
7797 case $MAGIC_CMD in
7798[\\/*] | ?:[\\/]*)
cae5b340 7799 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
ea04106b
AX
7800 ;;
7801*)
cae5b340
AX
7802 lt_save_MAGIC_CMD="$MAGIC_CMD"
7803 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
ea04106b
AX
7804 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7805 for ac_dir in $ac_dummy; do
cae5b340 7806 IFS="$lt_save_ifs"
ea04106b 7807 test -z "$ac_dir" && ac_dir=.
cae5b340
AX
7808 if test -f $ac_dir/file; then
7809 lt_cv_path_MAGIC_CMD="$ac_dir/file"
ea04106b
AX
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 \(.*\)"`
cae5b340 7814 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
ea04106b
AX
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
cae5b340
AX
7837 IFS="$lt_save_ifs"
7838 MAGIC_CMD="$lt_save_MAGIC_CMD"
ea04106b
AX
7839 ;;
7840esac
7841fi
7842
cae5b340 7843MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
ea04106b 7844if test -n "$MAGIC_CMD"; then
cae5b340 7845 { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
ea04106b
AX
7846$as_echo "$MAGIC_CMD" >&6; }
7847else
cae5b340 7848 { $as_echo "$as_me:$LINENO: result: no" >&5
ea04106b
AX
7849$as_echo "no" >&6; }
7850fi
7851
7852
7853 else
7854 MAGIC_CMD=:
7855 fi
7856fi
7857
7858 fi
7859 ;;
7860esac
7861
7862# Use C for the default configuration in the libtool script
7863
cae5b340 7864lt_save_CC="$CC"
ea04106b
AX
7865ac_ext=c
7866ac_cpp='$CPP $CPPFLAGS'
7867ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7868ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7869ac_compiler_gnu=$ac_cv_c_compiler_gnu
7870
7871
7872# Source file extension for C test sources.
7873ac_ext=c
7874
7875# Object file extension for compiled C test sources.
7876objext=o
7877objext=$objext
7878
7879# Code to be used in simple compile tests
7880lt_simple_compile_test_code="int some_variable = 0;"
7881
7882# Code to be used in simple link tests
7883lt_simple_link_test_code='int main(){return(0);}'
7884
7885
7886
7887
7888
7889
7890
7891# If no C compiler was specified, use CC.
7892LTCC=${LTCC-"$CC"}
7893
7894# If no C compiler flags were specified, use CFLAGS.
7895LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7896
7897# Allow CC to be a program name with arguments.
7898compiler=$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.
7902compiler_DEFAULT=$CC
7903
7904# save warnings/boilerplate of simple test code
7905ac_outfile=conftest.$ac_objext
7906echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7907eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7908_lt_compiler_boilerplate=`cat conftest.err`
7909$RM conftest*
7910
7911ac_outfile=conftest.$ac_objext
7912echo "$lt_simple_link_test_code" >conftest.$ac_ext
7913eval "$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...
7922if test -n "$compiler"; then
7923
7924lt_prog_compiler_no_builtin_flag=
7925
cae5b340
AX
7926if test "$GCC" = yes; then
7927 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
ea04106b 7928
cae5b340 7929 { $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
ea04106b 7930$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
cae5b340 7931if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
ea04106b
AX
7932 $as_echo_n "(cached) " >&6
7933else
7934 lt_cv_prog_compiler_rtti_exceptions=no
7935 ac_outfile=conftest.$ac_objext
7936 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
cae5b340 7937 lt_compiler_flag="-fno-rtti -fno-exceptions"
ea04106b
AX
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:'`
42f7b73b 7947 (eval echo "\"\$as_me:7947: $lt_compile\"" >&5)
ea04106b
AX
7948 (eval "$lt_compile" 2>conftest.err)
7949 ac_status=$?
7950 cat conftest.err >&5
42f7b73b 7951 echo "$as_me:7951: \$? = $ac_status" >&5
ea04106b
AX
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.
cae5b340 7955 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
ea04106b
AX
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
7963fi
cae5b340 7964{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
ea04106b
AX
7965$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7966
cae5b340 7967if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
ea04106b
AX
7968 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7969else
7970 :
7971fi
7972
7973fi
7974
7975
7976
7977
7978
7979
7980 lt_prog_compiler_wl=
7981lt_prog_compiler_pic=
7982lt_prog_compiler_static=
7983
cae5b340
AX
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; }
ea04106b 7986
cae5b340 7987 if test "$GCC" = yes; then
ea04106b
AX
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.
cae5b340 7994 if test "$host_cpu" = ia64; then
ea04106b
AX
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
cae5b340
AX
8008 # adding the `-m68020' flag to GCC prevents building anything better,
8009 # like `-m68040'.
ea04106b
AX
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
ea04106b
AX
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
ea04106b
AX
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,'
cae5b340 8080 if test "$host_cpu" = ia64; then
ea04106b
AX
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?
cae5b340 8107 lt_prog_compiler_static='${wl}-a ${wl}archive'
ea04106b
AX
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
cae5b340 8116 linux* | k*bsd*-gnu)
ea04106b 8117 case $cc_basename in
cae5b340 8118 # old Intel for x86_64 which still supported -KPIC.
ea04106b
AX
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 ;;
cae5b340 8137 pgcc* | pgf77* | pgf90* | pgf95*)
ea04106b
AX
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 ;;
cae5b340
AX
8149 xl*)
8150 # IBM XL C 8.0/Fortran 10.1 on PPC
ea04106b
AX
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
ea04106b
AX
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 ;;
cae5b340
AX
8163 *Sun\ F*)
8164 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8165 lt_prog_compiler_pic='-KPIC'
ea04106b 8166 lt_prog_compiler_static='-Bstatic'
cae5b340 8167 lt_prog_compiler_wl=''
ea04106b
AX
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
cae5b340 8199 f77* | f90* | f95*)
ea04106b
AX
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*)
cae5b340 8219 if test -d /usr/nec ;then
ea04106b
AX
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
8247case $host_os in
cae5b340 8248 # For platforms which do not support PIC, -DPIC is meaningless:
ea04106b
AX
8249 *djgpp*)
8250 lt_prog_compiler_pic=
8251 ;;
8252 *)
8253 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8254 ;;
8255esac
cae5b340
AX
8256{ $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
8257$as_echo "$lt_prog_compiler_pic" >&6; }
8258
8259
8260
8261
ea04106b 8262
ea04106b
AX
8263
8264#
8265# Check to make sure the PIC flag actually works.
8266#
8267if test -n "$lt_prog_compiler_pic"; then
cae5b340 8268 { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
ea04106b 8269$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
cae5b340 8270if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
ea04106b
AX
8271 $as_echo_n "(cached) " >&6
8272else
8273 lt_cv_prog_compiler_pic_works=no
8274 ac_outfile=conftest.$ac_objext
8275 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
cae5b340 8276 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
ea04106b
AX
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:'`
42f7b73b 8286 (eval echo "\"\$as_me:8286: $lt_compile\"" >&5)
ea04106b
AX
8287 (eval "$lt_compile" 2>conftest.err)
8288 ac_status=$?
8289 cat conftest.err >&5
42f7b73b 8290 echo "$as_me:8290: \$? = $ac_status" >&5
ea04106b
AX
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.
cae5b340 8294 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
ea04106b
AX
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
8302fi
cae5b340 8303{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
ea04106b
AX
8304$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8305
cae5b340 8306if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
ea04106b
AX
8307 case $lt_prog_compiler_pic in
8308 "" | " "*) ;;
8309 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8310 esac
8311else
8312 lt_prog_compiler_pic=
8313 lt_prog_compiler_can_build_shared=no
8314fi
8315
8316fi
8317
8318
8319
8320
8321
8322
ea04106b
AX
8323#
8324# Check to make sure the static flag actually works.
8325#
8326wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
cae5b340 8327{ $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
ea04106b 8328$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
cae5b340 8329if test "${lt_cv_prog_compiler_static_works+set}" = set; then
ea04106b
AX
8330 $as_echo_n "(cached) " >&6
8331else
8332 lt_cv_prog_compiler_static_works=no
cae5b340 8333 save_LDFLAGS="$LDFLAGS"
ea04106b
AX
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
cae5b340 8342 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
ea04106b
AX
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*
cae5b340 8352 LDFLAGS="$save_LDFLAGS"
ea04106b
AX
8353
8354fi
cae5b340 8355{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
ea04106b
AX
8356$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8357
cae5b340 8358if test x"$lt_cv_prog_compiler_static_works" = xyes; then
ea04106b
AX
8359 :
8360else
8361 lt_prog_compiler_static=
8362fi
8363
8364
8365
8366
8367
8368
8369
cae5b340 8370 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
ea04106b 8371$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
cae5b340 8372if test "${lt_cv_prog_compiler_c_o+set}" = set; then
ea04106b
AX
8373 $as_echo_n "(cached) " >&6
8374else
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:'`
42f7b73b 8391 (eval echo "\"\$as_me:8391: $lt_compile\"" >&5)
ea04106b
AX
8392 (eval "$lt_compile" 2>out/conftest.err)
8393 ac_status=$?
8394 cat out/conftest.err >&5
42f7b73b 8395 echo "$as_me:8395: \$? = $ac_status" >&5
ea04106b
AX
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
cae5b340 8400 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
ea04106b
AX
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
8416fi
cae5b340 8417{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
ea04106b
AX
8418$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8419
8420
8421
8422
8423
8424
cae5b340 8425 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
ea04106b 8426$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
cae5b340 8427if test "${lt_cv_prog_compiler_c_o+set}" = set; then
ea04106b
AX
8428 $as_echo_n "(cached) " >&6
8429else
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:'`
42f7b73b 8446 (eval echo "\"\$as_me:8446: $lt_compile\"" >&5)
ea04106b
AX
8447 (eval "$lt_compile" 2>out/conftest.err)
8448 ac_status=$?
8449 cat out/conftest.err >&5
42f7b73b 8450 echo "$as_me:8450: \$? = $ac_status" >&5
ea04106b
AX
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
cae5b340 8455 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
ea04106b
AX
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
8471fi
cae5b340 8472{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
ea04106b
AX
8473$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8474
8475
8476
8477
cae5b340
AX
8478hard_links="nottested"
8479if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
ea04106b 8480 # do not overwrite the value of need_locks provided by the user
cae5b340 8481 { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
ea04106b
AX
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
cae5b340 8489 { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
ea04106b 8490$as_echo "$hard_links" >&6; }
cae5b340
AX
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;}
ea04106b
AX
8494 need_locks=warn
8495 fi
8496else
8497 need_locks=no
8498fi
8499
8500
8501
8502
8503
8504
cae5b340 8505 { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
ea04106b
AX
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=
cae5b340 8521 hardcode_libdir_flag_spec_ld=
ea04106b
AX
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
cae5b340
AX
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'.
ea04106b
AX
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++.
cae5b340 8554 if test "$GCC" != yes; then
ea04106b
AX
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 ;;
cae5b340 8562 openbsd*)
ea04106b
AX
8563 with_gnu_ld=no
8564 ;;
ea04106b
AX
8565 esac
8566
8567 ld_shlibs=yes
cae5b340 8568 if test "$with_gnu_ld" = yes; then
ea04106b 8569 # If archive_cmds runs LD, not CC, wlarc should be empty
cae5b340 8570 wlarc='${wl}'
ea04106b
AX
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
cae5b340
AX
8576 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8577 export_dynamic_flag_spec='${wl}--export-dynamic'
ea04106b
AX
8578 # ancient GNU ld didn't support --whole-archive et. al.
8579 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
cae5b340 8580 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
ea04106b
AX
8581 else
8582 whole_archive_flag_spec=
8583 fi
8584 supports_anon_versioning=no
cae5b340 8585 case `$LD -v 2>&1` in
ea04106b
AX
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
cae5b340 8597 if test "$host_cpu" != ia64; then
ea04106b
AX
8598 ld_shlibs=no
8599 cat <<_LT_EOF 1>&2
8600
cae5b340 8601*** Warning: the GNU linker, at least up to release 2.9.1, is reported
ea04106b
AX
8602*** to be unable to reliably create shared libraries on AIX.
8603*** Therefore, libtool is disabling shared libraries support. If you
cae5b340
AX
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.
ea04106b
AX
8606
8607_LT_EOF
8608 fi
8609 ;;
8610
8611 amigaos*)
8612 case $host_cpu in
8613 powerpc)
8614 # see comment about AmigaOS4 .so support
cae5b340 8615 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
ea04106b
AX
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
cae5b340 8631 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
ea04106b
AX
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'
ea04106b
AX
8641 allow_undefined_flag=unsupported
8642 always_export_symbols=no
8643 enable_shared_with_static_runtimes=yes
cae5b340 8644 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
ea04106b
AX
8645
8646 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
cae5b340
AX
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'
ea04106b
AX
8657 else
8658 ld_shlibs=no
8659 fi
8660 ;;
8661
ea04106b
AX
8662 interix[3-9]*)
8663 hardcode_direct=no
8664 hardcode_shlibpath_var=no
cae5b340
AX
8665 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8666 export_dynamic_flag_spec='${wl}-E'
ea04106b
AX
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.
cae5b340
AX
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'
ea04106b
AX
8675 ;;
8676
cae5b340 8677 gnu* | linux* | tpf* | k*bsd*-gnu)
ea04106b 8678 tmp_diet=no
cae5b340 8679 if test "$host_os" = linux-dietlibc; then
ea04106b
AX
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 \
cae5b340 8685 && test "$tmp_diet" = no
ea04106b 8686 then
cae5b340 8687 tmp_addflag=
ea04106b
AX
8688 tmp_sharedflag='-shared'
8689 case $cc_basename,$host_cpu in
8690 pgcc*) # Portland Group C compiler
cae5b340 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'
ea04106b
AX
8692 tmp_addflag=' $pic_flag'
8693 ;;
cae5b340
AX
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'
ea04106b
AX
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' ;;
cae5b340 8706 xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
ea04106b
AX
8707 tmp_sharedflag='-qmkshrobj'
8708 tmp_addflag= ;;
ea04106b
AX
8709 esac
8710 case `$CC -V 2>&1 | sed 5q` in
8711 *Sun\ C*) # Sun C 5.9
cae5b340 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'
ea04106b
AX
8713 compiler_needs_object=yes
8714 tmp_sharedflag='-G' ;;
8715 *Sun\ F*) # Sun Fortran 8.3
8716 tmp_sharedflag='-G' ;;
8717 esac
cae5b340 8718 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
ea04106b 8719
cae5b340 8720 if test "x$supports_anon_versioning" = xyes; then
ea04106b 8721 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
cae5b340
AX
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'
ea04106b
AX
8725 fi
8726
8727 case $cc_basename in
cae5b340 8728 xlf*)
ea04106b
AX
8729 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8730 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
cae5b340
AX
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
ea04106b 8735 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
cae5b340
AX
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'
ea04106b
AX
8739 fi
8740 ;;
8741 esac
8742 else
8743 ld_shlibs=no
8744 fi
8745 ;;
8746
22929307 8747 netbsd*)
ea04106b
AX
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
cae5b340
AX
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'
ea04106b
AX
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
cae5b340
AX
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'
ea04106b
AX
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
cae5b340 8784*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
ea04106b
AX
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
cae5b340
AX
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'
ea04106b
AX
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
cae5b340
AX
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'
ea04106b
AX
8820 else
8821 ld_shlibs=no
8822 fi
8823 ;;
8824 esac
8825
cae5b340 8826 if test "$ld_shlibs" = no; then
ea04106b
AX
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
cae5b340 8842 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
ea04106b
AX
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]*)
cae5b340 8850 if test "$host_cpu" = ia64; then
ea04106b
AX
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'
cae5b340 8855 no_entry_flag=""
ea04106b
AX
8856 else
8857 # If we're using GNU nm, then we don't want the "-C" option.
cae5b340 8858 # -C means demangle to AIX nm, but means don't demangle with GNU nm
ea04106b 8859 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
cae5b340 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'
ea04106b 8861 else
cae5b340 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'
ea04106b
AX
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
cae5b340 8868 # need to do runtime linking.
ea04106b
AX
8869 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8870 for ld_flag in $LDFLAGS; do
cae5b340 8871 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
ea04106b
AX
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
cae5b340 8894 file_list_spec='${wl}-f,'
ea04106b 8895
cae5b340 8896 if test "$GCC" = yes; then
ea04106b
AX
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+
cae5b340 8900 collect2name=`${CC} -print-prog-name=collect2`
ea04106b
AX
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'
cae5b340
AX
8919 if test "$aix_use_runtimelinking" = yes; then
8920 shared_flag="$shared_flag "'${wl}-G'
ea04106b 8921 fi
ea04106b
AX
8922 else
8923 # not using gcc
cae5b340 8924 if test "$host_cpu" = ia64; then
ea04106b
AX
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
cae5b340
AX
8929 if test "$aix_use_runtimelinking" = yes; then
8930 shared_flag='${wl}-G'
ea04106b 8931 else
cae5b340 8932 shared_flag='${wl}-bM:SRE'
ea04106b
AX
8933 fi
8934 fi
8935 fi
8936
cae5b340 8937 export_dynamic_flag_spec='${wl}-bexpall'
ea04106b
AX
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
cae5b340 8941 if test "$aix_use_runtimelinking" = yes; then
ea04106b
AX
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.
cae5b340
AX
8947 cat >conftest.$ac_ext <<_ACEOF
8948/* confdefs.h. */
8949_ACEOF
8950cat confdefs.h >>conftest.$ac_ext
8951cat >>conftest.$ac_ext <<_ACEOF
ea04106b
AX
8952/* end confdefs.h. */
8953
8954int
8955main ()
8956{
8957
8958 ;
8959 return 0;
8960}
8961_ACEOF
cae5b340
AX
8962rm -f conftest.$ac_objext conftest$ac_exeext
8963if { (ac_try="$ac_link"
8964case "(($ac_try" in
8965 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8966 *) ac_try_echo=$ac_try;;
8967esac
8968eval 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
8984lt_aix_libpath_sed='
8985 /Import File Strings/,/^$/ {
8986 /^0/ {
8987 s/^0 *\(.*\)$/\1/
8988 p
8989 }
8990 }'
8991aix_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.
8993if test -z "$aix_libpath"; then
8994 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
ea04106b 8995fi
cae5b340
AX
8996else
8997 $as_echo "$as_me: failed program was:" >&5
8998sed 's/^/| /' conftest.$ac_ext >&5
ea04106b 8999
ea04106b 9000
ea04106b
AX
9001fi
9002
cae5b340
AX
9003rm -rf conftest.dSYM
9004rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9005 conftest$ac_exeext conftest.$ac_ext
9006if 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"
ea04106b 9010 else
cae5b340
AX
9011 if test "$host_cpu" = ia64; then
9012 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
ea04106b 9013 allow_undefined_flag="-z nodefs"
cae5b340 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"
ea04106b
AX
9015 else
9016 # Determine the default libpath from the value encoded in an
9017 # empty executable.
cae5b340
AX
9018 cat >conftest.$ac_ext <<_ACEOF
9019/* confdefs.h. */
9020_ACEOF
9021cat confdefs.h >>conftest.$ac_ext
9022cat >>conftest.$ac_ext <<_ACEOF
ea04106b
AX
9023/* end confdefs.h. */
9024
9025int
9026main ()
9027{
9028
9029 ;
9030 return 0;
9031}
9032_ACEOF
cae5b340
AX
9033rm -f conftest.$ac_objext conftest$ac_exeext
9034if { (ac_try="$ac_link"
9035case "(($ac_try" in
9036 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9037 *) ac_try_echo=$ac_try;;
9038esac
9039eval 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
9055lt_aix_libpath_sed='
9056 /Import File Strings/,/^$/ {
9057 /^0/ {
9058 s/^0 *\(.*\)$/\1/
9059 p
9060 }
9061 }'
9062aix_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.
9064if test -z "$aix_libpath"; then
9065 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
ea04106b 9066fi
cae5b340
AX
9067else
9068 $as_echo "$as_me: failed program was:" >&5
9069sed 's/^/| /' conftest.$ac_ext >&5
ea04106b 9070
ea04106b 9071
ea04106b
AX
9072fi
9073
cae5b340
AX
9074rm -rf conftest.dSYM
9075rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9076 conftest$ac_exeext conftest.$ac_ext
9077if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9078
9079 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
ea04106b
AX
9080 # Warning - without using the other run time loading flags,
9081 # -berok will link without error, but may produce a broken library.
cae5b340
AX
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'
ea04106b 9086 archive_cmds_need_lc=yes
cae5b340
AX
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'
ea04106b
AX
9089 fi
9090 fi
9091 ;;
9092
9093 amigaos*)
9094 case $host_cpu in
9095 powerpc)
9096 # see comment about AmigaOS4 .so support
cae5b340 9097 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
ea04106b
AX
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.
cae5b340
AX
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
ea04106b
AX
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
cae5b340 9140 whole_archive_flag_spec=''
ea04106b 9141 link_all_deplibs=yes
cae5b340 9142 allow_undefined_flag="$_lt_dar_allow_undefined"
ea04106b 9143 case $cc_basename in
cae5b340 9144 ifort*) _lt_dar_can_shared=yes ;;
ea04106b
AX
9145 *) _lt_dar_can_shared=$GCC ;;
9146 esac
cae5b340
AX
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}"
ea04106b
AX
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
cae5b340
AX
9166 freebsd1*)
9167 ld_shlibs=no
9168 ;;
9169
ea04106b
AX
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.
cae5b340 9182 freebsd2*)
ea04106b
AX
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*)
cae5b340 9191 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
ea04106b
AX
9192 hardcode_libdir_flag_spec='-R$libdir'
9193 hardcode_direct=yes
9194 hardcode_shlibpath_var=no
9195 ;;
9196
9197 hpux9*)
cae5b340
AX
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'
ea04106b 9200 else
cae5b340 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'
ea04106b 9202 fi
cae5b340 9203 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
ea04106b
AX
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
cae5b340 9210 export_dynamic_flag_spec='${wl}-E'
ea04106b
AX
9211 ;;
9212
9213 hpux10*)
cae5b340
AX
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'
ea04106b
AX
9216 else
9217 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9218 fi
cae5b340
AX
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'
ea04106b
AX
9222 hardcode_libdir_separator=:
9223 hardcode_direct=yes
9224 hardcode_direct_absolute=yes
cae5b340 9225 export_dynamic_flag_spec='${wl}-E'
ea04106b
AX
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*)
cae5b340 9233 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
ea04106b
AX
9234 case $host_cpu in
9235 hppa*64*)
cae5b340 9236 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
ea04106b
AX
9237 ;;
9238 ia64*)
cae5b340 9239 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
ea04106b
AX
9240 ;;
9241 *)
cae5b340 9242 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
ea04106b
AX
9243 ;;
9244 esac
9245 else
9246 case $host_cpu in
9247 hppa*64*)
cae5b340 9248 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
ea04106b
AX
9249 ;;
9250 ia64*)
cae5b340 9251 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
ea04106b
AX
9252 ;;
9253 *)
cae5b340 9254 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
ea04106b
AX
9255 ;;
9256 esac
9257 fi
cae5b340
AX
9258 if test "$with_gnu_ld" = no; then
9259 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
ea04106b
AX
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
cae5b340 9270 export_dynamic_flag_spec='${wl}-E'
ea04106b
AX
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*)
cae5b340
AX
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'
ea04106b
AX
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.
cae5b340
AX
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
9289int foo(void) {}
ea04106b 9290_ACEOF
cae5b340
AX
9291rm -f conftest.$ac_objext conftest$ac_exeext
9292if { (ac_try="$ac_link"
9293case "(($ac_try" in
9294 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9295 *) ac_try_echo=$ac_try;;
9296esac
9297eval 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
ea04106b 9314else
cae5b340
AX
9315 $as_echo "$as_me: failed program was:" >&5
9316sed 's/^/| /' conftest.$ac_ext >&5
9317
9318
ea04106b 9319fi
cae5b340
AX
9320
9321rm -rf conftest.dSYM
9322rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9323 conftest$ac_exeext conftest.$ac_ext
9324 LDFLAGS="$save_LDFLAGS"
ea04106b 9325 else
cae5b340
AX
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'
ea04106b
AX
9328 fi
9329 archive_cmds_need_lc='no'
cae5b340 9330 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
ea04106b
AX
9331 hardcode_libdir_separator=:
9332 inherit_rpath=yes
9333 link_all_deplibs=yes
9334 ;;
9335
22929307 9336 netbsd*)
ea04106b
AX
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
cae5b340 9350 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
ea04106b
AX
9351 hardcode_libdir_separator=:
9352 hardcode_shlibpath_var=no
9353 ;;
9354
9355 *nto* | *qnx*)
9356 ;;
9357
cae5b340 9358 openbsd*)
ea04106b
AX
9359 if test -f /usr/libexec/ld.so; then
9360 hardcode_direct=yes
9361 hardcode_shlibpath_var=no
9362 hardcode_direct_absolute=yes
cae5b340 9363 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
ea04106b 9364 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
cae5b340
AX
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'
ea04106b 9368 else
cae5b340
AX
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
ea04106b
AX
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
cae5b340
AX
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'
ea04106b
AX
9391 ;;
9392
9393 osf3*)
cae5b340
AX
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'
ea04106b
AX
9397 else
9398 allow_undefined_flag=' -expect_unresolved \*'
cae5b340 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'
ea04106b
AX
9400 fi
9401 archive_cmds_need_lc='no'
cae5b340 9402 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
ea04106b
AX
9403 hardcode_libdir_separator=:
9404 ;;
9405
9406 osf4* | osf5*) # as osf3* with the addition of -msym flag
cae5b340
AX
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'
ea04106b
AX
9411 else
9412 allow_undefined_flag=' -expect_unresolved \*'
cae5b340 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'
ea04106b 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~
cae5b340 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'
ea04106b
AX
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'
cae5b340
AX
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'
ea04106b 9429 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
cae5b340 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'
ea04106b
AX
9431 else
9432 case `$CC -V 2>&1` in
9433 *"Compilers 5.0"*)
9434 wlarc=''
cae5b340 9435 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
ea04106b 9436 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
cae5b340 9437 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
ea04106b
AX
9438 ;;
9439 *)
cae5b340
AX
9440 wlarc='${wl}'
9441 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
ea04106b 9442 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
cae5b340 9443 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
ea04106b
AX
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,
cae5b340 9453 # but understands `-z linker_flag'. GCC discards it without `$wl',
ea04106b
AX
9454 # but is careful enough not to reorder.
9455 # Supported since Solaris 2.6 (maybe 2.5.1?)
cae5b340
AX
9456 if test "$GCC" = yes; then
9457 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
ea04106b
AX
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*)
cae5b340 9467 if test "x$host_vendor" = xsequent; then
ea04106b
AX
9468 # Use $CC to link under sequent, because it throws in some extra .o
9469 # files that make .init and .fini sections work.
cae5b340 9470 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
ea04106b
AX
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]*)
cae5b340 9519 no_undefined_flag='${wl}-z,text'
ea04106b
AX
9520 archive_cmds_need_lc=no
9521 hardcode_shlibpath_var=no
9522 runpath_var='LD_RUN_PATH'
9523
cae5b340
AX
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'
ea04106b 9527 else
cae5b340
AX
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'
ea04106b
AX
9530 fi
9531 ;;
9532
9533 sysv5* | sco3.2v5* | sco5v6*)
cae5b340 9534 # Note: We can NOT use -z defs as we might desire, because we do not
ea04106b
AX
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.
cae5b340
AX
9540 no_undefined_flag='${wl}-z,text'
9541 allow_undefined_flag='${wl}-z,nodefs'
ea04106b
AX
9542 archive_cmds_need_lc=no
9543 hardcode_shlibpath_var=no
cae5b340 9544 hardcode_libdir_flag_spec='${wl}-R,$libdir'
ea04106b
AX
9545 hardcode_libdir_separator=':'
9546 link_all_deplibs=yes
cae5b340 9547 export_dynamic_flag_spec='${wl}-Bexport'
ea04106b
AX
9548 runpath_var='LD_RUN_PATH'
9549
cae5b340
AX
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'
ea04106b 9553 else
cae5b340
AX
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'
ea04106b
AX
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
cae5b340 9570 if test x$host_vendor = xsni; then
ea04106b
AX
9571 case $host in
9572 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
cae5b340 9573 export_dynamic_flag_spec='${wl}-Blargedynsym'
ea04106b
AX
9574 ;;
9575 esac
9576 fi
9577 fi
9578
cae5b340 9579{ $as_echo "$as_me:$LINENO: result: $ld_shlibs" >&5
ea04106b 9580$as_echo "$ld_shlibs" >&6; }
cae5b340 9581test "$ld_shlibs" = no && can_build_shared=no
ea04106b
AX
9582
9583with_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#
9602case "x$archive_cmds_need_lc" in
9603x|xyes)
9604 # Assume -lc should be added
9605 archive_cmds_need_lc=yes
9606
cae5b340 9607 if test "$enable_shared" = yes && test "$GCC" = yes; then
ea04106b
AX
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.
cae5b340 9616 { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
ea04106b 9617$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
cae5b340
AX
9618 $RM conftest*
9619 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
ea04106b 9620
cae5b340 9621 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ea04106b
AX
9622 (eval $ac_compile) 2>&5
9623 ac_status=$?
cae5b340
AX
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
ea04106b
AX
9640 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9641 ac_status=$?
cae5b340
AX
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; }
ea04106b
AX
9656 ;;
9657 esac
9658 fi
9659 ;;
9660esac
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
cae5b340
AX
9813
9814
9815
9816
9817
9818 { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
ea04106b
AX
9819$as_echo_n "checking dynamic linker characteristics... " >&6; }
9820
cae5b340 9821if test "$GCC" = yes; then
ea04106b 9822 case $host_os in
cae5b340
AX
9823 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9824 *) lt_awk_arg="/^libraries:/" ;;
ea04106b 9825 esac
cae5b340
AX
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
ea04106b
AX
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.
cae5b340
AX
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
ea04106b 9836 # Ok, now we have the path, separated by spaces, we can step through it
cae5b340 9837 # and add multilib dir if necessary.
ea04106b 9838 lt_tmp_lt_search_path_spec=
cae5b340 9839 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
ea04106b 9840 for lt_sys_path in $lt_search_path_spec; do
cae5b340
AX
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
ea04106b
AX
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
cae5b340
AX
9848 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
9849BEGIN {RS=" "; FS="/|\n";} {
9850 lt_foo="";
9851 lt_count=0;
ea04106b
AX
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) {
cae5b340 9858 lt_foo="/" $lt_i lt_foo;
ea04106b
AX
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}'`
cae5b340 9868 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
ea04106b
AX
9869else
9870 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9871fi
9872library_names_spec=
9873libname_spec='lib$name'
9874soname_spec=
cae5b340 9875shrext_cmds=".so"
ea04106b
AX
9876postinstall_cmds=
9877postuninstall_cmds=
9878finish_cmds=
9879finish_eval=
9880shlibpath_var=
9881shlibpath_overrides_runpath=unknown
9882version_type=none
9883dynamic_linker="$host_os ld.so"
9884sys_lib_dlsearch_path_spec="/lib /usr/lib"
9885need_lib_prefix=unknown
9886hardcode_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
9890need_version=unknown
9891
9892case $host_os in
9893aix3*)
cae5b340
AX
9894 version_type=linux
9895 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
ea04106b
AX
9896 shlibpath_var=LIBPATH
9897
9898 # AIX 3 has no versioning support, so we append a major version to the name.
cae5b340 9899 soname_spec='${libname}${release}${shared_ext}$major'
ea04106b
AX
9900 ;;
9901
9902aix[4-9]*)
cae5b340 9903 version_type=linux
ea04106b
AX
9904 need_lib_prefix=no
9905 need_version=no
9906 hardcode_into_libs=yes
cae5b340 9907 if test "$host_cpu" = ia64; then
ea04106b 9908 # AIX 5 supports IA64
cae5b340 9909 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
ea04106b
AX
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
cae5b340
AX
9914 # the line `#! .'. This would cause the generated library to
9915 # depend on `.', always an invalid library. This was fixed in
ea04106b
AX
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 '
cae5b340 9921 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
ea04106b
AX
9922 :
9923 else
9924 can_build_shared=no
9925 fi
9926 ;;
9927 esac
cae5b340 9928 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
ea04106b
AX
9929 # soname into executable. Probably we can add versioning support to
9930 # collect2, so additional links can be useful in future.
cae5b340 9931 if test "$aix_use_runtimelinking" = yes; then
ea04106b
AX
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.
cae5b340
AX
9935 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9936 else
ea04106b
AX
9937 # We preserve .a as extension for shared libraries through AIX4.2
9938 # and later when we are not doing run time linking.
cae5b340
AX
9939 library_names_spec='${libname}${release}.a $libname.a'
9940 soname_spec='${libname}${release}${shared_ext}$major'
9941 fi
ea04106b
AX
9942 shlibpath_var=LIBPATH
9943 fi
9944 ;;
9945
9946amigaos*)
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.
cae5b340 9951 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
ea04106b
AX
9952 ;;
9953 m68k)
9954 library_names_spec='$libname.ixlibrary $libname.a'
9955 # Create ${libname}_ixlibrary.a entries in /sys/libs.
cae5b340 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'
ea04106b
AX
9957 ;;
9958 esac
9959 ;;
9960
9961beos*)
cae5b340 9962 library_names_spec='${libname}${shared_ext}'
ea04106b
AX
9963 dynamic_linker="$host_os ld.so"
9964 shlibpath_var=LIBRARY_PATH
9965 ;;
9966
9967bsdi[45]*)
cae5b340 9968 version_type=linux
ea04106b 9969 need_version=no
cae5b340
AX
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'
ea04106b
AX
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
9981cygwin* | mingw* | pw32* | cegcc*)
9982 version_type=windows
cae5b340 9983 shrext_cmds=".dll"
ea04106b
AX
9984 need_version=no
9985 need_lib_prefix=no
9986
cae5b340
AX
9987 case $GCC,$host_os in
9988 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
ea04106b
AX
9989 library_names_spec='$libname.dll.a'
9990 # DLL is installed to $(libdir)/../bin by postinstall_cmds
cae5b340
AX
9991 postinstall_cmds='base_file=`basename \${file}`~
9992 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
ea04106b
AX
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'
cae5b340
AX
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"
ea04106b
AX
10010 ;;
10011 mingw* | cegcc*)
10012 # MinGW DLLs use traditional 'lib' prefix
cae5b340
AX
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"`
ea04106b 10015 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
cae5b340
AX
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.
ea04106b
AX
10022 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10023 else
cae5b340 10024 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
ea04106b 10025 fi
cae5b340
AX
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}'
ea04106b
AX
10030 ;;
10031 esac
ea04106b
AX
10032 ;;
10033
10034 *)
cae5b340 10035 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
ea04106b
AX
10036 ;;
10037 esac
cae5b340 10038 dynamic_linker='Win32 ld.exe'
ea04106b
AX
10039 # FIXME: first we should search . and the directory the executable is in
10040 shlibpath_var=PATH
10041 ;;
10042
10043darwin* | rhapsody*)
10044 dynamic_linker="$host_os dyld"
10045 version_type=darwin
10046 need_lib_prefix=no
10047 need_version=no
cae5b340
AX
10048 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10049 soname_spec='${libname}${release}${major}$shared_ext'
ea04106b
AX
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
10058dgux*)
cae5b340 10059 version_type=linux
ea04106b
AX
10060 need_lib_prefix=no
10061 need_version=no
cae5b340
AX
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'
ea04106b
AX
10064 shlibpath_var=LD_LIBRARY_PATH
10065 ;;
10066
cae5b340
AX
10067freebsd1*)
10068 dynamic_linker=no
10069 ;;
10070
ea04106b
AX
10071freebsd* | 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
cae5b340 10078 freebsd[123]*) objformat=aout ;;
ea04106b
AX
10079 *) objformat=elf ;;
10080 esac
10081 fi
10082 version_type=freebsd-$objformat
10083 case $version_type in
10084 freebsd-elf*)
cae5b340 10085 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
ea04106b
AX
10086 need_version=no
10087 need_lib_prefix=no
10088 ;;
10089 freebsd-*)
cae5b340 10090 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
ea04106b
AX
10091 need_version=yes
10092 ;;
10093 esac
10094 shlibpath_var=LD_LIBRARY_PATH
10095 case $host_os in
cae5b340 10096 freebsd2*)
ea04106b
AX
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
cae5b340
AX
10115gnu*)
10116 version_type=linux
ea04106b
AX
10117 need_lib_prefix=no
10118 need_version=no
cae5b340
AX
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
ea04106b
AX
10122 hardcode_into_libs=yes
10123 ;;
10124
10125hpux9* | 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.
cae5b340
AX
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
ea04106b
AX
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
cae5b340 10145 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
ea04106b
AX
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.
cae5b340
AX
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'
ea04106b
AX
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
cae5b340
AX
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'
ea04106b
AX
10165 ;;
10166 esac
cae5b340 10167 # HP-UX runs *really* slowly unless shared libraries are mode 555.
ea04106b 10168 postinstall_cmds='chmod 555 $lib'
ea04106b
AX
10169 ;;
10170
10171interix[3-9]*)
cae5b340 10172 version_type=linux
ea04106b
AX
10173 need_lib_prefix=no
10174 need_version=no
cae5b340
AX
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'
ea04106b
AX
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
10183irix5* | irix6* | nonstopux*)
10184 case $host_os in
10185 nonstopux*) version_type=nonstopux ;;
10186 *)
cae5b340
AX
10187 if test "$lt_cv_prog_gnu_ld" = yes; then
10188 version_type=linux
ea04106b
AX
10189 else
10190 version_type=irix
10191 fi ;;
10192 esac
10193 need_lib_prefix=no
10194 need_version=no
cae5b340
AX
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}'
ea04106b
AX
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
cae5b340
AX
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}"
ea04106b
AX
10217 hardcode_into_libs=yes
10218 ;;
10219
10220# No shared lib support for Linux oldld, aout, or coff.
10221linux*oldld* | linux*aout* | linux*coff*)
10222 dynamic_linker=no
10223 ;;
10224
cae5b340
AX
10225# This must be Linux ELF.
10226linux* | k*bsd*-gnu)
10227 version_type=linux
68d83c55
AX
10228 need_lib_prefix=no
10229 need_version=no
cae5b340
AX
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'
ea04106b
AX
10232 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10233 shlibpath_var=LD_LIBRARY_PATH
10234 shlibpath_overrides_runpath=no
ea04106b 10235 # Some binutils ld are patched to set DT_RUNPATH
cae5b340
AX
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
10243cat confdefs.h >>conftest.$ac_ext
10244cat >>conftest.$ac_ext <<_ACEOF
ea04106b
AX
10245/* end confdefs.h. */
10246
10247int
10248main ()
10249{
10250
10251 ;
10252 return 0;
10253}
10254_ACEOF
cae5b340
AX
10255rm -f conftest.$ac_objext conftest$ac_exeext
10256if { (ac_try="$ac_link"
10257case "(($ac_try" in
10258 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10259 *) ac_try_echo=$ac_try;;
10260esac
10261eval 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
ea04106b 10278fi
cae5b340
AX
10279
10280else
10281 $as_echo "$as_me: failed program was:" >&5
10282sed 's/^/| /' conftest.$ac_ext >&5
10283
ea04106b
AX
10284
10285fi
10286
cae5b340
AX
10287rm -rf conftest.dSYM
10288rm -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
ea04106b
AX
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
22929307
AX
10298 # Add ABI-specific directories to the system library path.
10299 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
10300
cae5b340 10301 # Append ld.so.conf contents to the search path
ea04106b 10302 if test -f /etc/ld.so.conf; then
cae5b340 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' ' '`
22929307 10304 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
ea04106b
AX
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
ea04106b
AX
10316netbsd*)
10317 version_type=sunos
10318 need_lib_prefix=no
10319 need_version=no
10320 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
cae5b340 10321 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
ea04106b
AX
10322 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10323 dynamic_linker='NetBSD (a.out) ld.so'
10324 else
cae5b340
AX
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'
ea04106b
AX
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
10334newsos6)
cae5b340
AX
10335 version_type=linux
10336 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
ea04106b
AX
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
cae5b340
AX
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'
ea04106b
AX
10347 shlibpath_var=LD_LIBRARY_PATH
10348 shlibpath_overrides_runpath=no
10349 hardcode_into_libs=yes
10350 dynamic_linker='ldqnx.so'
10351 ;;
10352
cae5b340 10353openbsd*)
ea04106b 10354 version_type=sunos
cae5b340 10355 sys_lib_dlsearch_path_spec="/usr/lib"
ea04106b 10356 need_lib_prefix=no
cae5b340
AX
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'
68d83c55
AX
10363 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10364 shlibpath_var=LD_LIBRARY_PATH
cae5b340
AX
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
ea04106b
AX
10377 ;;
10378
10379os2*)
10380 libname_spec='$name'
cae5b340 10381 shrext_cmds=".dll"
ea04106b 10382 need_lib_prefix=no
cae5b340 10383 library_names_spec='$libname${shared_ext} $libname.a'
ea04106b 10384 dynamic_linker='OS/2 ld.exe'
cae5b340 10385 shlibpath_var=LIBPATH
ea04106b
AX
10386 ;;
10387
10388osf3* | osf4* | osf5*)
10389 version_type=osf
10390 need_lib_prefix=no
10391 need_version=no
cae5b340
AX
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}'
ea04106b
AX
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"
cae5b340 10396 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
ea04106b
AX
10397 ;;
10398
10399rdos*)
10400 dynamic_linker=no
10401 ;;
10402
10403solaris*)
cae5b340 10404 version_type=linux
ea04106b
AX
10405 need_lib_prefix=no
10406 need_version=no
cae5b340
AX
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'
ea04106b
AX
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
10416sunos4*)
10417 version_type=sunos
cae5b340 10418 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
ea04106b
AX
10419 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10420 shlibpath_var=LD_LIBRARY_PATH
10421 shlibpath_overrides_runpath=yes
cae5b340 10422 if test "$with_gnu_ld" = yes; then
ea04106b
AX
10423 need_lib_prefix=no
10424 fi
10425 need_version=yes
10426 ;;
10427
10428sysv4 | sysv4.3*)
cae5b340
AX
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'
ea04106b
AX
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
10451sysv4*MP*)
cae5b340
AX
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'
ea04106b
AX
10456 shlibpath_var=LD_LIBRARY_PATH
10457 fi
10458 ;;
10459
10460sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
cae5b340 10461 version_type=freebsd-elf
ea04106b
AX
10462 need_lib_prefix=no
10463 need_version=no
cae5b340
AX
10464 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10465 soname_spec='${libname}${release}${shared_ext}$major'
ea04106b
AX
10466 shlibpath_var=LD_LIBRARY_PATH
10467 shlibpath_overrides_runpath=yes
10468 hardcode_into_libs=yes
cae5b340 10469 if test "$with_gnu_ld" = yes; then
ea04106b
AX
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
10482tpf*)
10483 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
cae5b340 10484 version_type=linux
ea04106b
AX
10485 need_lib_prefix=no
10486 need_version=no
cae5b340 10487 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
ea04106b
AX
10488 shlibpath_var=LD_LIBRARY_PATH
10489 shlibpath_overrides_runpath=no
10490 hardcode_into_libs=yes
10491 ;;
10492
10493uts4*)
cae5b340
AX
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'
ea04106b
AX
10497 shlibpath_var=LD_LIBRARY_PATH
10498 ;;
10499
10500*)
10501 dynamic_linker=no
10502 ;;
10503esac
cae5b340 10504{ $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
ea04106b 10505$as_echo "$dynamic_linker" >&6; }
cae5b340 10506test "$dynamic_linker" = no && can_build_shared=no
ea04106b
AX
10507
10508variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
cae5b340 10509if test "$GCC" = yes; then
ea04106b
AX
10510 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10511fi
10512
cae5b340
AX
10513if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10514 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
ea04106b 10515fi
cae5b340
AX
10516if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10517 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
ea04106b
AX
10518fi
10519
68d83c55 10520
68d83c55
AX
10521
10522
10523
10524
10525
10526
ea04106b
AX
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
cae5b340 10606 { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
ea04106b
AX
10607$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10608hardcode_action=
10609if test -n "$hardcode_libdir_flag_spec" ||
10610 test -n "$runpath_var" ||
cae5b340 10611 test "X$hardcode_automatic" = "Xyes" ; then
ea04106b
AX
10612
10613 # We can hardcode non-existent directories.
cae5b340 10614 if test "$hardcode_direct" != no &&
ea04106b
AX
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
cae5b340
AX
10618 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10619 test "$hardcode_minus_L" != no; then
ea04106b
AX
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
10626else
10627 # We cannot hardcode anything, or else we can only hardcode existing
10628 # directories.
10629 hardcode_action=unsupported
10630fi
cae5b340 10631{ $as_echo "$as_me:$LINENO: result: $hardcode_action" >&5
ea04106b
AX
10632$as_echo "$hardcode_action" >&6; }
10633
cae5b340
AX
10634if test "$hardcode_action" = relink ||
10635 test "$inherit_rpath" = yes; then
ea04106b
AX
10636 # Fast installation is not supported
10637 enable_fast_install=no
cae5b340
AX
10638elif test "$shlibpath_overrides_runpath" = yes ||
10639 test "$enable_shared" = no; then
ea04106b
AX
10640 # Fast installation is not necessary
10641 enable_fast_install=needless
10642fi
10643
10644
10645
10646
10647
10648
cae5b340 10649 if test "x$enable_dlopen" != xyes; then
ea04106b
AX
10650 enable_dlopen=unknown
10651 enable_dlopen_self=unknown
10652 enable_dlopen_self_static=unknown
10653else
10654 lt_cv_dlopen=no
10655 lt_cv_dlopen_libs=
10656
10657 case $host_os in
10658 beos*)
cae5b340 10659 lt_cv_dlopen="load_add_on"
ea04106b
AX
10660 lt_cv_dlopen_libs=
10661 lt_cv_dlopen_self=yes
10662 ;;
10663
10664 mingw* | pw32* | cegcc*)
cae5b340 10665 lt_cv_dlopen="LoadLibrary"
ea04106b
AX
10666 lt_cv_dlopen_libs=
10667 ;;
10668
10669 cygwin*)
cae5b340 10670 lt_cv_dlopen="dlopen"
ea04106b
AX
10671 lt_cv_dlopen_libs=
10672 ;;
10673
10674 darwin*)
cae5b340
AX
10675 # if libdl is installed we need to link against it
10676 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
ea04106b 10677$as_echo_n "checking for dlopen in -ldl... " >&6; }
cae5b340 10678if test "${ac_cv_lib_dl_dlopen+set}" = set; then
ea04106b
AX
10679 $as_echo_n "(cached) " >&6
10680else
10681 ac_check_lib_save_LIBS=$LIBS
10682LIBS="-ldl $LIBS"
cae5b340
AX
10683cat >conftest.$ac_ext <<_ACEOF
10684/* confdefs.h. */
10685_ACEOF
10686cat confdefs.h >>conftest.$ac_ext
10687cat >>conftest.$ac_ext <<_ACEOF
ea04106b
AX
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
10694extern "C"
10695#endif
10696char dlopen ();
10697int
10698main ()
10699{
10700return dlopen ();
10701 ;
10702 return 0;
10703}
10704_ACEOF
cae5b340
AX
10705rm -f conftest.$ac_objext conftest$ac_exeext
10706if { (ac_try="$ac_link"
10707case "(($ac_try" in
10708 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10709 *) ac_try_echo=$ac_try;;
10710esac
10711eval 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
ea04106b
AX
10726 ac_cv_lib_dl_dlopen=yes
10727else
cae5b340
AX
10728 $as_echo "$as_me: failed program was:" >&5
10729sed 's/^/| /' conftest.$ac_ext >&5
10730
10731 ac_cv_lib_dl_dlopen=no
ea04106b 10732fi
cae5b340
AX
10733
10734rm -rf conftest.dSYM
10735rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10736 conftest$ac_exeext conftest.$ac_ext
ea04106b
AX
10737LIBS=$ac_check_lib_save_LIBS
10738fi
cae5b340 10739{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
ea04106b 10740$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
cae5b340
AX
10741if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
10742 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
ea04106b
AX
10743else
10744
cae5b340 10745 lt_cv_dlopen="dyld"
ea04106b
AX
10746 lt_cv_dlopen_libs=
10747 lt_cv_dlopen_self=yes
10748
10749fi
10750
10751 ;;
10752
10753 *)
cae5b340
AX
10754 { $as_echo "$as_me:$LINENO: checking for shl_load" >&5
10755$as_echo_n "checking for shl_load... " >&6; }
10756if test "${ac_cv_func_shl_load+set}" = set; then
10757 $as_echo_n "(cached) " >&6
10758else
10759 cat >conftest.$ac_ext <<_ACEOF
10760/* confdefs.h. */
10761_ACEOF
10762cat confdefs.h >>conftest.$ac_ext
10763cat >>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
10786extern "C"
10787#endif
10788char 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
10793choke me
10794#endif
10795
10796int
10797main ()
10798{
10799return shl_load ();
10800 ;
10801 return 0;
10802}
10803_ACEOF
10804rm -f conftest.$ac_objext conftest$ac_exeext
10805if { (ac_try="$ac_link"
10806case "(($ac_try" in
10807 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10808 *) ac_try_echo=$ac_try;;
10809esac
10810eval 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
10826else
10827 $as_echo "$as_me: failed program was:" >&5
10828sed 's/^/| /' conftest.$ac_ext >&5
10829
10830 ac_cv_func_shl_load=no
10831fi
10832
10833rm -rf conftest.dSYM
10834rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10835 conftest$ac_exeext conftest.$ac_ext
10836fi
10837{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10838$as_echo "$ac_cv_func_shl_load" >&6; }
10839if test "x$ac_cv_func_shl_load" = x""yes; then
10840 lt_cv_dlopen="shl_load"
ea04106b 10841else
cae5b340 10842 { $as_echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
ea04106b 10843$as_echo_n "checking for shl_load in -ldld... " >&6; }
cae5b340 10844if test "${ac_cv_lib_dld_shl_load+set}" = set; then
ea04106b
AX
10845 $as_echo_n "(cached) " >&6
10846else
10847 ac_check_lib_save_LIBS=$LIBS
10848LIBS="-ldld $LIBS"
cae5b340
AX
10849cat >conftest.$ac_ext <<_ACEOF
10850/* confdefs.h. */
10851_ACEOF
10852cat confdefs.h >>conftest.$ac_ext
10853cat >>conftest.$ac_ext <<_ACEOF
ea04106b
AX
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
10860extern "C"
10861#endif
10862char shl_load ();
10863int
10864main ()
10865{
10866return shl_load ();
10867 ;
10868 return 0;
10869}
10870_ACEOF
cae5b340
AX
10871rm -f conftest.$ac_objext conftest$ac_exeext
10872if { (ac_try="$ac_link"
10873case "(($ac_try" in
10874 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10875 *) ac_try_echo=$ac_try;;
10876esac
10877eval 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
ea04106b
AX
10892 ac_cv_lib_dld_shl_load=yes
10893else
cae5b340
AX
10894 $as_echo "$as_me: failed program was:" >&5
10895sed 's/^/| /' conftest.$ac_ext >&5
10896
10897 ac_cv_lib_dld_shl_load=no
ea04106b 10898fi
cae5b340
AX
10899
10900rm -rf conftest.dSYM
10901rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10902 conftest$ac_exeext conftest.$ac_ext
ea04106b
AX
10903LIBS=$ac_check_lib_save_LIBS
10904fi
cae5b340 10905{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
ea04106b 10906$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
cae5b340
AX
10907if test "x$ac_cv_lib_dld_shl_load" = x""yes; then
10908 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10909else
10910 { $as_echo "$as_me:$LINENO: checking for dlopen" >&5
10911$as_echo_n "checking for dlopen... " >&6; }
10912if test "${ac_cv_func_dlopen+set}" = set; then
10913 $as_echo_n "(cached) " >&6
10914else
10915 cat >conftest.$ac_ext <<_ACEOF
10916/* confdefs.h. */
10917_ACEOF
10918cat confdefs.h >>conftest.$ac_ext
10919cat >>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
10942extern "C"
10943#endif
10944char 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
10949choke me
10950#endif
10951
10952int
10953main ()
10954{
10955return dlopen ();
10956 ;
10957 return 0;
10958}
10959_ACEOF
10960rm -f conftest.$ac_objext conftest$ac_exeext
10961if { (ac_try="$ac_link"
10962case "(($ac_try" in
10963 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10964 *) ac_try_echo=$ac_try;;
10965esac
10966eval 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
ea04106b 10982else
cae5b340
AX
10983 $as_echo "$as_me: failed program was:" >&5
10984sed 's/^/| /' conftest.$ac_ext >&5
10985
10986 ac_cv_func_dlopen=no
10987fi
10988
10989rm -rf conftest.dSYM
10990rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10991 conftest$ac_exeext conftest.$ac_ext
10992fi
10993{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10994$as_echo "$ac_cv_func_dlopen" >&6; }
10995if test "x$ac_cv_func_dlopen" = x""yes; then
10996 lt_cv_dlopen="dlopen"
ea04106b 10997else
cae5b340 10998 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
ea04106b 10999$as_echo_n "checking for dlopen in -ldl... " >&6; }
cae5b340 11000if test "${ac_cv_lib_dl_dlopen+set}" = set; then
ea04106b
AX
11001 $as_echo_n "(cached) " >&6
11002else
11003 ac_check_lib_save_LIBS=$LIBS
11004LIBS="-ldl $LIBS"
cae5b340
AX
11005cat >conftest.$ac_ext <<_ACEOF
11006/* confdefs.h. */
11007_ACEOF
11008cat confdefs.h >>conftest.$ac_ext
11009cat >>conftest.$ac_ext <<_ACEOF
ea04106b
AX
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
11016extern "C"
11017#endif
11018char dlopen ();
11019int
11020main ()
11021{
11022return dlopen ();
11023 ;
11024 return 0;
11025}
11026_ACEOF
cae5b340
AX
11027rm -f conftest.$ac_objext conftest$ac_exeext
11028if { (ac_try="$ac_link"
11029case "(($ac_try" in
11030 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11031 *) ac_try_echo=$ac_try;;
11032esac
11033eval 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
ea04106b
AX
11048 ac_cv_lib_dl_dlopen=yes
11049else
cae5b340
AX
11050 $as_echo "$as_me: failed program was:" >&5
11051sed 's/^/| /' conftest.$ac_ext >&5
11052
11053 ac_cv_lib_dl_dlopen=no
ea04106b 11054fi
cae5b340
AX
11055
11056rm -rf conftest.dSYM
11057rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11058 conftest$ac_exeext conftest.$ac_ext
ea04106b
AX
11059LIBS=$ac_check_lib_save_LIBS
11060fi
cae5b340 11061{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
ea04106b 11062$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
cae5b340
AX
11063if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
11064 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
ea04106b 11065else
cae5b340 11066 { $as_echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
ea04106b 11067$as_echo_n "checking for dlopen in -lsvld... " >&6; }
cae5b340 11068if test "${ac_cv_lib_svld_dlopen+set}" = set; then
ea04106b
AX
11069 $as_echo_n "(cached) " >&6
11070else
11071 ac_check_lib_save_LIBS=$LIBS
11072LIBS="-lsvld $LIBS"
cae5b340
AX
11073cat >conftest.$ac_ext <<_ACEOF
11074/* confdefs.h. */
11075_ACEOF
11076cat confdefs.h >>conftest.$ac_ext
11077cat >>conftest.$ac_ext <<_ACEOF
ea04106b
AX
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
11084extern "C"
11085#endif
11086char dlopen ();
11087int
11088main ()
11089{
11090return dlopen ();
11091 ;
11092 return 0;
11093}
11094_ACEOF
cae5b340
AX
11095rm -f conftest.$ac_objext conftest$ac_exeext
11096if { (ac_try="$ac_link"
11097case "(($ac_try" in
11098 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11099 *) ac_try_echo=$ac_try;;
11100esac
11101eval 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
ea04106b
AX
11116 ac_cv_lib_svld_dlopen=yes
11117else
cae5b340
AX
11118 $as_echo "$as_me: failed program was:" >&5
11119sed 's/^/| /' conftest.$ac_ext >&5
11120
11121 ac_cv_lib_svld_dlopen=no
ea04106b 11122fi
cae5b340
AX
11123
11124rm -rf conftest.dSYM
11125rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11126 conftest$ac_exeext conftest.$ac_ext
ea04106b
AX
11127LIBS=$ac_check_lib_save_LIBS
11128fi
cae5b340 11129{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
ea04106b 11130$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
cae5b340
AX
11131if test "x$ac_cv_lib_svld_dlopen" = x""yes; then
11132 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
ea04106b 11133else
cae5b340 11134 { $as_echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
ea04106b 11135$as_echo_n "checking for dld_link in -ldld... " >&6; }
cae5b340 11136if test "${ac_cv_lib_dld_dld_link+set}" = set; then
ea04106b
AX
11137 $as_echo_n "(cached) " >&6
11138else
11139 ac_check_lib_save_LIBS=$LIBS
11140LIBS="-ldld $LIBS"
cae5b340
AX
11141cat >conftest.$ac_ext <<_ACEOF
11142/* confdefs.h. */
11143_ACEOF
11144cat confdefs.h >>conftest.$ac_ext
11145cat >>conftest.$ac_ext <<_ACEOF
ea04106b
AX
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
11152extern "C"
11153#endif
11154char dld_link ();
11155int
11156main ()
11157{
11158return dld_link ();
11159 ;
11160 return 0;
11161}
11162_ACEOF
cae5b340
AX
11163rm -f conftest.$ac_objext conftest$ac_exeext
11164if { (ac_try="$ac_link"
11165case "(($ac_try" in
11166 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11167 *) ac_try_echo=$ac_try;;
11168esac
11169eval 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
ea04106b
AX
11184 ac_cv_lib_dld_dld_link=yes
11185else
cae5b340
AX
11186 $as_echo "$as_me: failed program was:" >&5
11187sed 's/^/| /' conftest.$ac_ext >&5
11188
11189 ac_cv_lib_dld_dld_link=no
ea04106b 11190fi
cae5b340
AX
11191
11192rm -rf conftest.dSYM
11193rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11194 conftest$ac_exeext conftest.$ac_ext
ea04106b
AX
11195LIBS=$ac_check_lib_save_LIBS
11196fi
cae5b340 11197{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
ea04106b 11198$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
cae5b340
AX
11199if test "x$ac_cv_lib_dld_dld_link" = x""yes; then
11200 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
ea04106b
AX
11201fi
11202
11203
11204fi
11205
11206
11207fi
11208
11209
11210fi
11211
11212
11213fi
11214
11215
11216fi
11217
11218 ;;
11219 esac
11220
cae5b340 11221 if test "x$lt_cv_dlopen" != xno; then
68d83c55 11222 enable_dlopen=yes
cae5b340
AX
11223 else
11224 enable_dlopen=no
ea04106b
AX
11225 fi
11226
11227 case $lt_cv_dlopen in
11228 dlopen)
cae5b340
AX
11229 save_CPPFLAGS="$CPPFLAGS"
11230 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
ea04106b 11231
cae5b340 11232 save_LDFLAGS="$LDFLAGS"
ea04106b
AX
11233 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11234
cae5b340 11235 save_LIBS="$LIBS"
ea04106b
AX
11236 LIBS="$lt_cv_dlopen_libs $LIBS"
11237
cae5b340 11238 { $as_echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
ea04106b 11239$as_echo_n "checking whether a program can dlopen itself... " >&6; }
cae5b340 11240if test "${lt_cv_dlopen_self+set}" = set; then
ea04106b
AX
11241 $as_echo_n "(cached) " >&6
11242else
cae5b340 11243 if test "$cross_compiling" = yes; then :
ea04106b
AX
11244 lt_cv_dlopen_self=cross
11245else
11246 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11247 lt_status=$lt_dlunknown
11248 cat > conftest.$ac_ext <<_LT_EOF
42f7b73b 11249#line 11249 "configure"
ea04106b
AX
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
cae5b340 11290void fnord() { int i=42;}
ea04106b
AX
11291int 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;
cae5b340 11299 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
ea04106b
AX
11300 /* dlclose (self); */
11301 }
11302 else
11303 puts (dlerror ());
11304
11305 return status;
11306}
11307_LT_EOF
cae5b340 11308 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ea04106b
AX
11309 (eval $ac_link) 2>&5
11310 ac_status=$?
cae5b340
AX
11311 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11312 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
ea04106b
AX
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
11324fi
11325rm -fr conftest*
11326
11327
11328fi
cae5b340 11329{ $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
ea04106b
AX
11330$as_echo "$lt_cv_dlopen_self" >&6; }
11331
cae5b340 11332 if test "x$lt_cv_dlopen_self" = xyes; then
ea04106b 11333 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
cae5b340 11334 { $as_echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
ea04106b 11335$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
cae5b340 11336if test "${lt_cv_dlopen_self_static+set}" = set; then
ea04106b
AX
11337 $as_echo_n "(cached) " >&6
11338else
cae5b340 11339 if test "$cross_compiling" = yes; then :
ea04106b
AX
11340 lt_cv_dlopen_self_static=cross
11341else
11342 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11343 lt_status=$lt_dlunknown
11344 cat > conftest.$ac_ext <<_LT_EOF
42f7b73b 11345#line 11345 "configure"
ea04106b
AX
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
cae5b340 11386void fnord() { int i=42;}
ea04106b
AX
11387int 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;
cae5b340 11395 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
ea04106b
AX
11396 /* dlclose (self); */
11397 }
11398 else
11399 puts (dlerror ());
11400
11401 return status;
11402}
11403_LT_EOF
cae5b340 11404 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ea04106b
AX
11405 (eval $ac_link) 2>&5
11406 ac_status=$?
cae5b340
AX
11407 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11408 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
ea04106b
AX
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
11420fi
11421rm -fr conftest*
11422
11423
11424fi
cae5b340 11425{ $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
ea04106b
AX
11426$as_echo "$lt_cv_dlopen_self_static" >&6; }
11427 fi
11428
cae5b340
AX
11429 CPPFLAGS="$save_CPPFLAGS"
11430 LDFLAGS="$save_LDFLAGS"
11431 LIBS="$save_LIBS"
ea04106b
AX
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
11444fi
11445
11446
11447
11448
11449
11450
11451
11452
11453
11454
11455
11456
11457
11458
11459
11460
11461
11462striplib=
11463old_striplib=
cae5b340 11464{ $as_echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
ea04106b
AX
11465$as_echo_n "checking whether stripping libraries is possible... " >&6; }
11466if 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"
cae5b340 11469 { $as_echo "$as_me:$LINENO: result: yes" >&5
ea04106b
AX
11470$as_echo "yes" >&6; }
11471else
11472# FIXME - insert some real tests, host_os isn't really good enough
11473 case $host_os in
11474 darwin*)
cae5b340 11475 if test -n "$STRIP" ; then
ea04106b
AX
11476 striplib="$STRIP -x"
11477 old_striplib="$STRIP -S"
cae5b340 11478 { $as_echo "$as_me:$LINENO: result: yes" >&5
ea04106b
AX
11479$as_echo "yes" >&6; }
11480 else
cae5b340 11481 { $as_echo "$as_me:$LINENO: result: no" >&5
ea04106b
AX
11482$as_echo "no" >&6; }
11483 fi
11484 ;;
11485 *)
cae5b340 11486 { $as_echo "$as_me:$LINENO: result: no" >&5
ea04106b
AX
11487$as_echo "no" >&6; }
11488 ;;
11489 esac
11490fi
11491
11492
11493
11494
11495
11496
11497
11498
11499
11500
11501
11502
cae5b340
AX
11503 # Report which library types will actually be built
11504 { $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
ea04106b 11505$as_echo_n "checking if libtool supports shared libraries... " >&6; }
cae5b340 11506 { $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5
ea04106b
AX
11507$as_echo "$can_build_shared" >&6; }
11508
cae5b340 11509 { $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
ea04106b 11510$as_echo_n "checking whether to build shared libraries... " >&6; }
cae5b340 11511 test "$can_build_shared" = "no" && enable_shared=no
ea04106b
AX
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*)
cae5b340 11517 test "$enable_shared" = yes && enable_static=no
ea04106b
AX
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]*)
cae5b340
AX
11525 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11526 test "$enable_shared" = yes && enable_static=no
ea04106b
AX
11527 fi
11528 ;;
11529 esac
cae5b340 11530 { $as_echo "$as_me:$LINENO: result: $enable_shared" >&5
ea04106b
AX
11531$as_echo "$enable_shared" >&6; }
11532
cae5b340 11533 { $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5
ea04106b
AX
11534$as_echo_n "checking whether to build static libraries... " >&6; }
11535 # Make sure either enable_shared or enable_static is yes.
cae5b340
AX
11536 test "$enable_shared" = yes || enable_static=yes
11537 { $as_echo "$as_me:$LINENO: result: $enable_static" >&5
ea04106b
AX
11538$as_echo "$enable_static" >&6; }
11539
11540
11541
11542
11543fi
11544ac_ext=c
11545ac_cpp='$CPP $CPPFLAGS'
11546ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11547ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11548ac_compiler_gnu=$ac_cv_c_compiler_gnu
11549
cae5b340 11550CC="$lt_save_CC"
ea04106b
AX
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
11574test "${CCAS+set}" = set || CCAS=$CC
11575test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
11576
11577
11578
11579depcc="$CCAS" am_compiler_list=
11580
cae5b340 11581{ $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
ea04106b 11582$as_echo_n "checking dependency style of $depcc... " >&6; }
cae5b340 11583if test "${am_cv_CCAS_dependencies_compiler_type+set}" = set; then
ea04106b
AX
11584 $as_echo_n "(cached) " >&6
11585else
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
cae5b340
AX
11590 # making a dummy file named `D' -- because `-MD' means `put the output
11591 # in D'.
ea04106b
AX
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
cae5b340
AX
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
ea04106b
AX
11626 done
11627 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
11628
cae5b340 11629 # We check with `-c' and `-o' for the sake of the "dashmstdout"
ea04106b 11630 # mode. It turns out that the SunPro C++ compiler does not properly
cae5b340
AX
11631 # handle `-M -o', and we need to detect this. Also, some Intel
11632 # versions had trouble with output in subdirs
ea04106b
AX
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)
cae5b340
AX
11641 # after this tag, mechanisms are not by side-effect, so they'll
11642 # only be used when explicitly requested
ea04106b
AX
11643 if test "x$enable_dependency_tracking" = xyes; then
11644 continue
11645 else
11646 break
11647 fi
11648 ;;
cae5b340
AX
11649 msvisualcpp | msvcmsys)
11650 # This compiler won't grok `-c -o', but also, the minuso test has
ea04106b
AX
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
11684else
11685 am_cv_CCAS_dependencies_compiler_type=none
11686fi
11687
11688fi
cae5b340 11689{ $as_echo "$as_me:$LINENO: result: $am_cv_CCAS_dependencies_compiler_type" >&5
ea04106b
AX
11690$as_echo "$am_cv_CCAS_dependencies_compiler_type" >&6; }
11691CCASDEPMODE=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='#'
11698else
11699 am__fastdepCCAS_TRUE='#'
11700 am__fastdepCCAS_FALSE=
11701fi
11702
11703
cae5b340
AX
11704if 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; }
11707else
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; }
11710fi
11711set dummy $CC; ac_cc=`$as_echo "$2" |
11712 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
11713if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then
11714 $as_echo_n "(cached) " >&6
11715else
11716 cat >conftest.$ac_ext <<_ACEOF
11717/* confdefs.h. */
11718_ACEOF
11719cat confdefs.h >>conftest.$ac_ext
11720cat >>conftest.$ac_ext <<_ACEOF
11721/* end confdefs.h. */
11722
11723int
11724main ()
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.
11734ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
11735rm -f conftest2.*
11736if { (case "(($ac_try" in
11737 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11738 *) ac_try_echo=$ac_try;;
11739esac
11740eval 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;;
11749esac
11750eval 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); };
11756then
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;;
11764esac
11765eval 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;;
11776esac
11777eval 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;;
11786esac
11787eval 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
11802else
11803 eval ac_cv_prog_cc_${ac_cc}_c_o=no
11804fi
11805rm -f core conftest*
11806
11807fi
11808if 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; }
11811else
11812 { $as_echo "$as_me:$LINENO: result: no" >&5
11813$as_echo "no" >&6; }
11814
11815cat >>confdefs.h <<\_ACEOF
11816#define NO_MINUS_C_MINUS_O 1
11817_ACEOF
11818
11819fi
11820
11821# FIXME: we rely on the cache variable name because
11822# there is no other way.
11823set dummy $CC
11824am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
11825eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
11826if 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"
11833fi
11834
11835
ea04106b
AX
11836
11837
42f7b73b
AX
11838
11839 # allow to override gcov location
11840
11841# Check whether --with-gcov was given.
11842if test "${with_gcov+set}" = set; then
11843 withval=$with_gcov; _AX_CODE_COVERAGE_GCOV_PROG_WITH=$with_gcov
11844else
11845 _AX_CODE_COVERAGE_GCOV_PROG_WITH=gcov
11846fi
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.
11852if test "${enable_code_coverage+set}" = set; then
11853 enableval=$enable_code_coverage;
11854else
11855 enable_code_coverage=no
11856fi
11857
11858
11859 if test x$enable_code_coverage = xyes; then
11860 CODE_COVERAGE_ENABLED_TRUE=
11861 CODE_COVERAGE_ENABLED_FALSE='#'
11862else
11863 CODE_COVERAGE_ENABLED_TRUE='#'
11864 CODE_COVERAGE_ENABLED_FALSE=
11865fi
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.
11877set 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; }
11880if test "${ac_cv_prog_GCOV+set}" = set; then
11881 $as_echo_n "(cached) " >&6
11882else
11883 if test -n "$GCOV"; then
11884 ac_cv_prog_GCOV="$GCOV" # Let the user override the test.
11885else
11886as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11887for as_dir in $PATH
11888do
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
11897done
11898done
11899IFS=$as_save_IFS
11900
11901fi
11902fi
11903GCOV=$ac_cv_prog_GCOV
11904if test -n "$GCOV"; then
11905 { $as_echo "$as_me:$LINENO: result: $GCOV" >&5
11906$as_echo "$GCOV" >&6; }
11907else
11908 { $as_echo "$as_me:$LINENO: result: no" >&5
11909$as_echo "no" >&6; }
11910fi
11911
11912
11913fi
11914if 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.
11917set 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; }
11920if test "${ac_cv_prog_ac_ct_GCOV+set}" = set; then
11921 $as_echo_n "(cached) " >&6
11922else
11923 if test -n "$ac_ct_GCOV"; then
11924 ac_cv_prog_ac_ct_GCOV="$ac_ct_GCOV" # Let the user override the test.
11925else
11926as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11927for as_dir in $PATH
11928do
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
11937done
11938done
11939IFS=$as_save_IFS
11940
11941fi
11942fi
11943ac_ct_GCOV=$ac_cv_prog_ac_ct_GCOV
11944if test -n "$ac_ct_GCOV"; then
11945 { $as_echo "$as_me:$LINENO: result: $ac_ct_GCOV" >&5
11946$as_echo "$ac_ct_GCOV" >&6; }
11947else
11948 { $as_echo "$as_me:$LINENO: result: no" >&5
11949$as_echo "no" >&6; }
11950fi
11951
11952 if test "x$ac_ct_GCOV" = x; then
11953 GCOV=":"
11954 else
11955 case $cross_compiling:$ac_tool_warned in
11956yes:)
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;}
11959ac_tool_warned=yes ;;
11960esac
11961 GCOV=$ac_ct_GCOV
11962 fi
11963else
11964 GCOV="$ac_cv_prog_GCOV"
11965fi
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; }; }
11971fi
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
11981fi
11982
11983
11984 # Extract the first word of "lcov", so it can be a program name with args.
11985set 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; }
11988if test "${ac_cv_prog_LCOV+set}" = set; then
11989 $as_echo_n "(cached) " >&6
11990else
11991 if test -n "$LCOV"; then
11992 ac_cv_prog_LCOV="$LCOV" # Let the user override the test.
11993else
11994as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11995for as_dir in $PATH
11996do
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
12005done
12006done
12007IFS=$as_save_IFS
12008
12009fi
12010fi
12011LCOV=$ac_cv_prog_LCOV
12012if test -n "$LCOV"; then
12013 { $as_echo "$as_me:$LINENO: result: $LCOV" >&5
12014$as_echo "$LCOV" >&6; }
12015else
12016 { $as_echo "$as_me:$LINENO: result: no" >&5
12017$as_echo "no" >&6; }
12018fi
12019
12020
12021 # Extract the first word of "genhtml", so it can be a program name with args.
12022set 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; }
12025if test "${ac_cv_prog_GENHTML+set}" = set; then
12026 $as_echo_n "(cached) " >&6
12027else
12028 if test -n "$GENHTML"; then
12029 ac_cv_prog_GENHTML="$GENHTML" # Let the user override the test.
12030else
12031as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12032for as_dir in $PATH
12033do
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
12042done
12043done
12044IFS=$as_save_IFS
12045
12046fi
12047fi
12048GENHTML=$ac_cv_prog_GENHTML
12049if test -n "$GENHTML"; then
12050 { $as_echo "$as_me:$LINENO: result: $GENHTML" >&5
12051$as_echo "$GENHTML" >&6; }
12052else
12053 { $as_echo "$as_me:$LINENO: result: no" >&5
12054$as_echo "no" >&6; }
12055fi
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
12065fi
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
12074fi
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='
12101clean: code-coverage-clean
12102distclean: code-coverage-clean
12103code-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
12109else
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
12117fi
12118
12119
12120CODE_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
12160CODE_COVERAGE_DIRECTORY ?= $(top_builddir)
12161CODE_COVERAGE_OUTPUT_FILE ?= $(PACKAGE_NAME)-$(PACKAGE_VERSION)-coverage.info
12162CODE_COVERAGE_OUTPUT_DIRECTORY ?= $(PACKAGE_NAME)-$(PACKAGE_VERSION)-coverage
12163CODE_COVERAGE_BRANCH_COVERAGE ?=
12164CODE_COVERAGE_LCOV_SHOPTS_DEFAULT ?= $(if $(CODE_COVERAGE_BRANCH_COVERAGE),\
12165--rc lcov_branch_coverage=$(CODE_COVERAGE_BRANCH_COVERAGE))
12166CODE_COVERAGE_LCOV_SHOPTS ?= $(CODE_COVERAGE_LCOV_SHOPTS_DEFAULT)
12167CODE_COVERAGE_LCOV_OPTIONS_GCOVPATH ?= --gcov-tool "$(GCOV)"
12168CODE_COVERAGE_LCOV_OPTIONS_DEFAULT ?= $(CODE_COVERAGE_LCOV_OPTIONS_GCOVPATH)
12169CODE_COVERAGE_LCOV_OPTIONS ?= $(CODE_COVERAGE_LCOV_OPTIONS_DEFAULT)
12170CODE_COVERAGE_LCOV_RMOPTS_DEFAULT ?=
12171CODE_COVERAGE_LCOV_RMOPTS ?= $(CODE_COVERAGE_LCOV_RMOPTS_DEFAULT)
12172CODE_COVERAGE_GENHTML_OPTIONS_DEFAULT ?=\
12173$(if $(CODE_COVERAGE_BRANCH_COVERAGE),\
12174--rc genhtml_branch_coverage=$(CODE_COVERAGE_BRANCH_COVERAGE))
12175CODE_COVERAGE_GENHTML_OPTIONS ?= $(CODE_COVERAGE_GENHTML_OPTIONS_DEFAULT)
12176CODE_COVERAGE_IGNORE_PATTERN ?=
12177
12178GITIGNOREFILES ?=
12179GITIGNOREFILES += $(CODE_COVERAGE_OUTPUT_FILE) $(CODE_COVERAGE_OUTPUT_DIRECTORY)
12180
12181code_coverage_v_lcov_cap = $(code_coverage_v_lcov_cap_$(V))
12182code_coverage_v_lcov_cap_ = $(code_coverage_v_lcov_cap_$(AM_DEFAULT_VERBOSITY))
12183code_coverage_v_lcov_cap_0 = @echo " LCOV --capture"\
12184 $(CODE_COVERAGE_OUTPUT_FILE);
12185code_coverage_v_lcov_ign = $(code_coverage_v_lcov_ign_$(V))
12186code_coverage_v_lcov_ign_ = $(code_coverage_v_lcov_ign_$(AM_DEFAULT_VERBOSITY))
12187code_coverage_v_lcov_ign_0 = @echo " LCOV --remove /tmp/*"\
12188 $(CODE_COVERAGE_IGNORE_PATTERN);
12189code_coverage_v_genhtml = $(code_coverage_v_genhtml_$(V))
12190code_coverage_v_genhtml_ = $(code_coverage_v_genhtml_$(AM_DEFAULT_VERBOSITY))
12191code_coverage_v_genhtml_0 = @echo " GEN " $(CODE_COVERAGE_OUTPUT_DIRECTORY);
12192code_coverage_quiet = $(code_coverage_quiet_$(V))
12193code_coverage_quiet_ = $(code_coverage_quiet_$(AM_DEFAULT_VERBOSITY))
12194code_coverage_quiet_0 = --quiet
12195
12196# sanitizes the test-name: replaces with underscores: dashes and dots
12197code_coverage_sanitize = $(subst -,_,$(subst .,_,$(1)))
12198
12199# Use recursive makes in order to ignore errors during check
12200check-code-coverage:'"$CODE_COVERAGE_RULES_CHECK"'
12201
12202# Capture code coverage data
12203code-coverage-capture: code-coverage-capture-hook'"$CODE_COVERAGE_RULES_CAPTURE"'
12204
12205# Hook rule executed before code-coverage-capture, overridable by the user
12206code-coverage-capture-hook:
12207
12208'"$CODE_COVERAGE_RULES_CLEAN"'
12209
12210A''M_DISTCHECK_CONFIGURE_FLAGS ?=
12211A''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
cae5b340 12221 { $as_echo "$as_me:$LINENO: checking zfs author" >&5
ea04106b 12222$as_echo_n "checking zfs author... " >&6; }
cae5b340 12223 { $as_echo "$as_me:$LINENO: result: $ZFS_META_AUTHOR" >&5
ea04106b
AX
12224$as_echo "$ZFS_META_AUTHOR" >&6; }
12225
cae5b340 12226 { $as_echo "$as_me:$LINENO: checking zfs license" >&5
ea04106b 12227$as_echo_n "checking zfs license... " >&6; }
cae5b340 12228 { $as_echo "$as_me:$LINENO: result: $ZFS_META_LICENSE" >&5
ea04106b
AX
12229$as_echo "$ZFS_META_LICENSE" >&6; }
12230
12231
12232
cae5b340 12233 { $as_echo "$as_me:$LINENO: checking linux distribution" >&5
ea04106b
AX
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 ;
cae5b340
AX
12255 elif test -f /etc/alpine-release ; then
12256 VENDOR=alpine ;
ea04106b
AX
12257 else
12258 VENDOR= ;
12259 fi
cae5b340 12260 { $as_echo "$as_me:$LINENO: result: $VENDOR" >&5
ea04106b
AX
12261$as_echo "$VENDOR" >&6; }
12262
12263
cae5b340 12264 { $as_echo "$as_me:$LINENO: checking default package type" >&5
ea04106b
AX
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 ;;
cae5b340 12271 alpine) DEFAULT_PACKAGE=tgz ;;
ea04106b
AX
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
cae5b340 12280 { $as_echo "$as_me:$LINENO: result: $DEFAULT_PACKAGE" >&5
ea04106b
AX
12281$as_echo "$DEFAULT_PACKAGE" >&6; }
12282
12283
12284 DEFAULT_INIT_DIR=$sysconfdir/init.d
cae5b340 12285 { $as_echo "$as_me:$LINENO: checking default init directory" >&5
ea04106b 12286$as_echo_n "checking default init directory... " >&6; }
cae5b340 12287 { $as_echo "$as_me:$LINENO: result: $DEFAULT_INIT_DIR" >&5
ea04106b
AX
12288$as_echo "$DEFAULT_INIT_DIR" >&6; }
12289
12290
cae5b340 12291 { $as_echo "$as_me:$LINENO: checking default init script type" >&5
ea04106b
AX
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 ;;
cae5b340
AX
12297 gentoo) DEFAULT_INIT_SCRIPT=openrc ;;
12298 alpine) DEFAULT_INIT_SCRIPT=openrc ;;
ea04106b
AX
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
cae5b340 12307 { $as_echo "$as_me:$LINENO: result: $DEFAULT_INIT_SCRIPT" >&5
ea04106b
AX
12308$as_echo "$DEFAULT_INIT_SCRIPT" >&6; }
12309
12310
cae5b340 12311 { $as_echo "$as_me:$LINENO: checking default init config direectory" >&5
e10b0808
AX
12312$as_echo_n "checking default init config direectory... " >&6; }
12313 case "$VENDOR" in
cae5b340 12314 alpine) DEFAULT_INITCONF_DIR=/etc/conf.d ;;
e10b0808
AX
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
cae5b340 12324 { $as_echo "$as_me:$LINENO: result: $DEFAULT_INITCONF_DIR" >&5
e10b0808
AX
12325$as_echo "$DEFAULT_INITCONF_DIR" >&6; }
12326
12327
cae5b340 12328 { $as_echo "$as_me:$LINENO: checking whether initramfs-tools is available" >&5
e10b0808
AX
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"'
cae5b340 12332 { $as_echo "$as_me:$LINENO: result: yes" >&5
e10b0808
AX
12333$as_echo "yes" >&6; }
12334 else
12335 DEFINE_INITRAMFS=''
cae5b340 12336 { $as_echo "$as_me:$LINENO: result: no" >&5
e10b0808
AX
12337$as_echo "no" >&6; }
12338 fi
12339
12340
ea04106b
AX
12341
12342 RPM=rpm
12343 RPMBUILD=rpmbuild
12344
cae5b340 12345 { $as_echo "$as_me:$LINENO: checking whether $RPM is available" >&5
ea04106b 12346$as_echo_n "checking whether $RPM is available... " >&6; }
cae5b340 12347 if tmp=$($RPM --version 2>/dev/null); then
ea04106b
AX
12348
12349 RPM_VERSION=$(echo $tmp | $AWK '/RPM/ { print $3 }')
12350 HAVE_RPM=yes
cae5b340 12351 { $as_echo "$as_me:$LINENO: result: $HAVE_RPM ($RPM_VERSION)" >&5
ea04106b
AX
12352$as_echo "$HAVE_RPM ($RPM_VERSION)" >&6; }
12353
12354else
12355
12356 HAVE_RPM=no
cae5b340 12357 { $as_echo "$as_me:$LINENO: result: $HAVE_RPM" >&5
ea04106b
AX
12358$as_echo "$HAVE_RPM" >&6; }
12359
12360fi
12361
cae5b340
AX
12362
12363 { $as_echo "$as_me:$LINENO: checking whether $RPMBUILD is available" >&5
ea04106b 12364$as_echo_n "checking whether $RPMBUILD is available... " >&6; }
cae5b340 12365 if tmp=$($RPMBUILD --version 2>/dev/null); then
ea04106b
AX
12366
12367 RPMBUILD_VERSION=$(echo $tmp | $AWK '/RPM/ { print $3 }')
12368 HAVE_RPMBUILD=yes
cae5b340 12369 { $as_echo "$as_me:$LINENO: result: $HAVE_RPMBUILD ($RPMBUILD_VERSION)" >&5
ea04106b
AX
12370$as_echo "$HAVE_RPMBUILD ($RPMBUILD_VERSION)" >&6; }
12371
12372else
12373
12374 HAVE_RPMBUILD=no
cae5b340 12375 { $as_echo "$as_me:$LINENO: result: $HAVE_RPMBUILD" >&5
ea04106b
AX
12376$as_echo "$HAVE_RPMBUILD" >&6; }
12377
12378fi
12379
cae5b340
AX
12380
12381 RPM_DEFINE_COMMON='--define "$(DEBUG_ZFS) 1"'
42f7b73b
AX
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
12390fi
12391
12392 if test -n "$udevdir" ; then
12393
12394 RPM_DEFINE_UTIL+=' --define "_udevdir $(udevdir)"'
12395
12396fi
12397
12398 if test -n "$udevruledir" ; then
12399
12400 RPM_DEFINE_UTIL+=' --define "_udevdir $(udevruledir)"'
12401
12402fi
12403
12404 RPM_DEFINE_UTIL+=' $(DEFINE_INITRAMFS)'
12405 RPM_DEFINE_UTIL+=' $(DEFINE_SYSTEMD)'
12406
ea04106b 12407 RPM_DEFINE_KMOD='--define "kernels $(LINUX_VERSION)" --define "require_spldir $(SPL)" --define "require_splobj $(SPL_OBJ)" --define "ksrc $(LINUX)" --define "kobj $(LINUX_OBJ)"'
42f7b73b
AX
12408 RPM_DEFINE_KMOD+=' --define "_wrong_version_format_terminate_build 0"'
12409
ea04106b
AX
12410 RPM_DEFINE_DKMS=
12411
42f7b73b
AX
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
12418fi
12419
12420
ea04106b
AX
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.
cae5b340 12429if test "${with_spec+set}" = set; then
ea04106b
AX
12430 withval=$with_spec; RPM_SPEC_DIR="rpm/$withval"
12431fi
12432
12433
cae5b340 12434 { $as_echo "$as_me:$LINENO: checking whether spec files are available" >&5
ea04106b 12435$as_echo_n "checking whether spec files are available... " >&6; }
cae5b340 12436 { $as_echo "$as_me:$LINENO: result: yes ($RPM_SPEC_DIR/*.spec.in)" >&5
ea04106b
AX
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
cae5b340 12461 { $as_echo "$as_me:$LINENO: checking whether $DPKG is available" >&5
ea04106b 12462$as_echo_n "checking whether $DPKG is available... " >&6; }
cae5b340 12463 if tmp=$($DPKG --version 2>/dev/null); then
ea04106b
AX
12464
12465 DPKG_VERSION=$(echo $tmp | $AWK '/Debian/ { print $7 }')
12466 HAVE_DPKG=yes
cae5b340 12467 { $as_echo "$as_me:$LINENO: result: $HAVE_DPKG ($DPKG_VERSION)" >&5
ea04106b
AX
12468$as_echo "$HAVE_DPKG ($DPKG_VERSION)" >&6; }
12469
12470else
12471
12472 HAVE_DPKG=no
cae5b340 12473 { $as_echo "$as_me:$LINENO: result: $HAVE_DPKG" >&5
ea04106b
AX
12474$as_echo "$HAVE_DPKG" >&6; }
12475
12476fi
12477
cae5b340
AX
12478
12479 { $as_echo "$as_me:$LINENO: checking whether $DPKGBUILD is available" >&5
ea04106b 12480$as_echo_n "checking whether $DPKGBUILD is available... " >&6; }
cae5b340 12481 if tmp=$($DPKGBUILD --version 2>/dev/null); then
ea04106b
AX
12482
12483 DPKGBUILD_VERSION=$(echo $tmp | \
12484 $AWK '/Debian/ { print $4 }' | cut -f-4 -d'.')
12485 HAVE_DPKGBUILD=yes
cae5b340 12486 { $as_echo "$as_me:$LINENO: result: $HAVE_DPKGBUILD ($DPKGBUILD_VERSION)" >&5
ea04106b
AX
12487$as_echo "$HAVE_DPKGBUILD ($DPKGBUILD_VERSION)" >&6; }
12488
12489else
12490
12491 HAVE_DPKGBUILD=no
cae5b340 12492 { $as_echo "$as_me:$LINENO: result: $HAVE_DPKGBUILD" >&5
ea04106b
AX
12493$as_echo "$HAVE_DPKGBUILD" >&6; }
12494
12495fi
12496
12497
12498
12499
12500
12501
12502
12503
12504
12505
cae5b340 12506
ea04106b
AX
12507 ALIEN=alien
12508
cae5b340 12509 { $as_echo "$as_me:$LINENO: checking whether $ALIEN is available" >&5
ea04106b 12510$as_echo_n "checking whether $ALIEN is available... " >&6; }
cae5b340 12511 if tmp=$($ALIEN --version 2>/dev/null); then
ea04106b
AX
12512
12513 ALIEN_VERSION=$(echo $tmp | $AWK '{ print $3 }')
12514 HAVE_ALIEN=yes
cae5b340 12515 { $as_echo "$as_me:$LINENO: result: $HAVE_ALIEN ($ALIEN_VERSION)" >&5
ea04106b
AX
12516$as_echo "$HAVE_ALIEN ($ALIEN_VERSION)" >&6; }
12517
12518else
12519
12520 HAVE_ALIEN=no
cae5b340 12521 { $as_echo "$as_me:$LINENO: result: $HAVE_ALIEN" >&5
ea04106b
AX
12522$as_echo "$HAVE_ALIEN" >&6; }
12523
12524fi
12525
12526
12527
12528
12529
12530
12531
ea04106b
AX
12532
12533 ZFS_CONFIG=all
12534
12535# Check whether --with-config was given.
cae5b340 12536if test "${with_config+set}" = set; then
ea04106b
AX
12537 withval=$with_config; ZFS_CONFIG="$withval"
12538fi
12539
12540 # Check whether --enable-linux-builtin was given.
cae5b340 12541if test "${enable_linux_builtin+set}" = set; then
ea04106b
AX
12542 enableval=$enable_linux_builtin;
12543else
12544 enable_linux_builtin=no
12545fi
12546
12547
cae5b340 12548 { $as_echo "$as_me:$LINENO: checking zfs config" >&5
ea04106b 12549$as_echo_n "checking zfs config... " >&6; }
cae5b340 12550 { $as_echo "$as_me:$LINENO: result: $ZFS_CONFIG" >&5
ea04106b
AX
12551$as_echo "$ZFS_CONFIG" >&6; };
12552
12553
12554
12555
cae5b340 12556 { $as_echo "$as_me:$LINENO: checking for -Wno-unused-but-set-variable support" >&5
ea04106b
AX
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
cae5b340
AX
12562 cat >conftest.$ac_ext <<_ACEOF
12563/* confdefs.h. */
12564_ACEOF
12565cat confdefs.h >>conftest.$ac_ext
12566cat >>conftest.$ac_ext <<_ACEOF
ea04106b
AX
12567/* end confdefs.h. */
12568
12569int
12570main ()
12571{
12572
12573 ;
12574 return 0;
12575}
12576_ACEOF
cae5b340
AX
12577rm -f conftest.$ac_objext
12578if { (ac_try="$ac_compile"
12579case "(($ac_try" in
12580 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12581 *) ac_try_echo=$ac_try;;
12582esac
12583eval 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
ea04106b
AX
12595
12596 NO_UNUSED_BUT_SET_VARIABLE=-Wno-unused-but-set-variable
cae5b340 12597 { $as_echo "$as_me:$LINENO: result: yes" >&5
ea04106b
AX
12598$as_echo "yes" >&6; }
12599
12600else
cae5b340
AX
12601 $as_echo "$as_me: failed program was:" >&5
12602sed 's/^/| /' conftest.$ac_ext >&5
12603
ea04106b
AX
12604
12605 NO_UNUSED_BUT_SET_VARIABLE=
cae5b340 12606 { $as_echo "$as_me:$LINENO: result: no" >&5
ea04106b
AX
12607$as_echo "no" >&6; }
12608
12609fi
cae5b340 12610
ea04106b
AX
12611rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12612
12613 CFLAGS="$saved_flags"
12614
12615
12616
cae5b340 12617 { $as_echo "$as_me:$LINENO: checking for -Wno-bool-compare support" >&5
e10b0808
AX
12618$as_echo_n "checking for -Wno-bool-compare support... " >&6; }
12619
12620 saved_flags="$CFLAGS"
12621 CFLAGS="$CFLAGS -Wbool-compare"
12622
cae5b340
AX
12623 cat >conftest.$ac_ext <<_ACEOF
12624/* confdefs.h. */
12625_ACEOF
12626cat confdefs.h >>conftest.$ac_ext
12627cat >>conftest.$ac_ext <<_ACEOF
e10b0808
AX
12628/* end confdefs.h. */
12629
12630int
12631main ()
12632{
12633
12634 ;
12635 return 0;
12636}
12637_ACEOF
cae5b340
AX
12638rm -f conftest.$ac_objext
12639if { (ac_try="$ac_compile"
12640case "(($ac_try" in
12641 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12642 *) ac_try_echo=$ac_try;;
12643esac
12644eval 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
e10b0808
AX
12656
12657 NO_BOOL_COMPARE=-Wno-bool-compare
cae5b340 12658 { $as_echo "$as_me:$LINENO: result: yes" >&5
e10b0808
AX
12659$as_echo "yes" >&6; }
12660
12661else
cae5b340
AX
12662 $as_echo "$as_me: failed program was:" >&5
12663sed 's/^/| /' conftest.$ac_ext >&5
12664
e10b0808
AX
12665
12666 NO_BOOL_COMPARE=
cae5b340 12667 { $as_echo "$as_me:$LINENO: result: no" >&5
e10b0808
AX
12668$as_echo "no" >&6; }
12669
12670fi
cae5b340 12671
e10b0808
AX
12672rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12673
12674 CFLAGS="$saved_flags"
12675
12676
12677
cae5b340
AX
12678 case "$host_cpu" in
12679 x86_64 | x86 | i686)
ea04106b 12680
cae5b340
AX
12681 { $as_echo "$as_me:$LINENO: checking whether host toolchain supports SSE" >&5
12682$as_echo_n "checking whether host toolchain supports SSE... " >&6; }
ea04106b 12683
cae5b340
AX
12684 cat >conftest.$ac_ext <<_ACEOF
12685/* confdefs.h. */
12686_ACEOF
12687cat confdefs.h >>conftest.$ac_ext
12688cat >>conftest.$ac_ext <<_ACEOF
12689/* end confdefs.h. */
ea04106b 12690
cae5b340
AX
12691 void main()
12692 {
12693 __asm__ __volatile__("xorps %xmm0, %xmm1");
12694 }
ea04106b 12695
cae5b340
AX
12696_ACEOF
12697rm -f conftest.$ac_objext conftest$ac_exeext
12698if { (ac_try="$ac_link"
12699case "(($ac_try" in
12700 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12701 *) ac_try_echo=$ac_try;;
12702esac
12703eval 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
ea04106b 12718
ea04106b 12719
cae5b340
AX
12720cat >>confdefs.h <<\_ACEOF
12721#define HAVE_SSE 1
12722_ACEOF
ea04106b 12723
cae5b340
AX
12724 { $as_echo "$as_me:$LINENO: result: yes" >&5
12725$as_echo "yes" >&6; }
ea04106b
AX
12726
12727else
cae5b340
AX
12728 $as_echo "$as_me: failed program was:" >&5
12729sed 's/^/| /' conftest.$ac_ext >&5
ea04106b 12730
cae5b340
AX
12731
12732 { $as_echo "$as_me:$LINENO: result: no" >&5
12733$as_echo "no" >&6; }
ea04106b
AX
12734
12735fi
12736
cae5b340
AX
12737rm -rf conftest.dSYM
12738rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12739 conftest$ac_exeext conftest.$ac_ext
ea04106b 12740
ea04106b 12741
cae5b340
AX
12742 { $as_echo "$as_me:$LINENO: checking whether host toolchain supports SSE2" >&5
12743$as_echo_n "checking whether host toolchain supports SSE2... " >&6; }
ea04106b 12744
cae5b340
AX
12745 cat >conftest.$ac_ext <<_ACEOF
12746/* confdefs.h. */
12747_ACEOF
12748cat confdefs.h >>conftest.$ac_ext
12749cat >>conftest.$ac_ext <<_ACEOF
12750/* end confdefs.h. */
ea04106b 12751
cae5b340
AX
12752 void main()
12753 {
12754 __asm__ __volatile__("pxor %xmm0, %xmm1");
12755 }
ea04106b 12756
cae5b340
AX
12757_ACEOF
12758rm -f conftest.$ac_objext conftest$ac_exeext
12759if { (ac_try="$ac_link"
12760case "(($ac_try" in
12761 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12762 *) ac_try_echo=$ac_try;;
12763esac
12764eval 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
ea04106b 12779
ea04106b 12780
cae5b340
AX
12781cat >>confdefs.h <<\_ACEOF
12782#define HAVE_SSE2 1
12783_ACEOF
ea04106b 12784
cae5b340
AX
12785 { $as_echo "$as_me:$LINENO: result: yes" >&5
12786$as_echo "yes" >&6; }
ea04106b 12787
cae5b340
AX
12788else
12789 $as_echo "$as_me: failed program was:" >&5
12790sed 's/^/| /' conftest.$ac_ext >&5
ea04106b 12791
ea04106b 12792
cae5b340
AX
12793 { $as_echo "$as_me:$LINENO: result: no" >&5
12794$as_echo "no" >&6; }
ea04106b
AX
12795
12796fi
12797
cae5b340
AX
12798rm -rf conftest.dSYM
12799rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12800 conftest$ac_exeext conftest.$ac_ext
ea04106b 12801
ea04106b 12802
cae5b340
AX
12803 { $as_echo "$as_me:$LINENO: checking whether host toolchain supports SSE3" >&5
12804$as_echo_n "checking whether host toolchain supports SSE3... " >&6; }
ea04106b 12805
cae5b340
AX
12806 cat >conftest.$ac_ext <<_ACEOF
12807/* confdefs.h. */
12808_ACEOF
12809cat confdefs.h >>conftest.$ac_ext
12810cat >>conftest.$ac_ext <<_ACEOF
12811/* end confdefs.h. */
ea04106b 12812
cae5b340
AX
12813 void main()
12814 {
12815 char v[16];
12816 __asm__ __volatile__("lddqu %0,%%xmm0" :: "m"(v[0]));
12817 }
ea04106b 12818
cae5b340
AX
12819_ACEOF
12820rm -f conftest.$ac_objext conftest$ac_exeext
12821if { (ac_try="$ac_link"
12822case "(($ac_try" in
12823 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12824 *) ac_try_echo=$ac_try;;
12825esac
12826eval 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
ea04106b 12841
ea04106b 12842
cae5b340
AX
12843cat >>confdefs.h <<\_ACEOF
12844#define HAVE_SSE3 1
12845_ACEOF
ea04106b 12846
cae5b340
AX
12847 { $as_echo "$as_me:$LINENO: result: yes" >&5
12848$as_echo "yes" >&6; }
ea04106b
AX
12849
12850else
cae5b340
AX
12851 $as_echo "$as_me: failed program was:" >&5
12852sed 's/^/| /' conftest.$ac_ext >&5
ea04106b 12853
ea04106b 12854
cae5b340
AX
12855 { $as_echo "$as_me:$LINENO: result: no" >&5
12856$as_echo "no" >&6; }
ea04106b
AX
12857
12858fi
ea04106b 12859
cae5b340
AX
12860rm -rf conftest.dSYM
12861rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12862 conftest$ac_exeext conftest.$ac_ext
ea04106b 12863
ea04106b 12864
cae5b340
AX
12865 { $as_echo "$as_me:$LINENO: checking whether host toolchain supports SSSE3" >&5
12866$as_echo_n "checking whether host toolchain supports SSSE3... " >&6; }
ea04106b 12867
cae5b340
AX
12868 cat >conftest.$ac_ext <<_ACEOF
12869/* confdefs.h. */
12870_ACEOF
12871cat confdefs.h >>conftest.$ac_ext
12872cat >>conftest.$ac_ext <<_ACEOF
12873/* end confdefs.h. */
ea04106b 12874
cae5b340
AX
12875 void main()
12876 {
12877 __asm__ __volatile__("pshufb %xmm0,%xmm1");
12878 }
ea04106b 12879
cae5b340
AX
12880_ACEOF
12881rm -f conftest.$ac_objext conftest$ac_exeext
12882if { (ac_try="$ac_link"
12883case "(($ac_try" in
12884 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12885 *) ac_try_echo=$ac_try;;
12886esac
12887eval 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
ea04106b 12902
ea04106b 12903
cae5b340
AX
12904cat >>confdefs.h <<\_ACEOF
12905#define HAVE_SSSE3 1
12906_ACEOF
ea04106b 12907
cae5b340
AX
12908 { $as_echo "$as_me:$LINENO: result: yes" >&5
12909$as_echo "yes" >&6; }
ea04106b
AX
12910
12911else
cae5b340
AX
12912 $as_echo "$as_me: failed program was:" >&5
12913sed 's/^/| /' conftest.$ac_ext >&5
ea04106b 12914
ea04106b 12915
cae5b340
AX
12916 { $as_echo "$as_me:$LINENO: result: no" >&5
12917$as_echo "no" >&6; }
ea04106b 12918
cae5b340 12919fi
ea04106b 12920
cae5b340
AX
12921rm -rf conftest.dSYM
12922rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12923 conftest$ac_exeext conftest.$ac_ext
ea04106b
AX
12924
12925
cae5b340
AX
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; }
ea04106b 12928
cae5b340
AX
12929 cat >conftest.$ac_ext <<_ACEOF
12930/* confdefs.h. */
12931_ACEOF
12932cat confdefs.h >>conftest.$ac_ext
12933cat >>conftest.$ac_ext <<_ACEOF
12934/* end confdefs.h. */
ea04106b 12935
cae5b340
AX
12936 void main()
12937 {
12938 __asm__ __volatile__("pmaxsb %xmm0,%xmm1");
12939 }
ea04106b 12940
cae5b340
AX
12941_ACEOF
12942rm -f conftest.$ac_objext conftest$ac_exeext
12943if { (ac_try="$ac_link"
12944case "(($ac_try" in
12945 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12946 *) ac_try_echo=$ac_try;;
12947esac
12948eval 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
ea04106b 12963
ea04106b 12964
cae5b340
AX
12965cat >>confdefs.h <<\_ACEOF
12966#define HAVE_SSE4_1 1
12967_ACEOF
ea04106b 12968
cae5b340
AX
12969 { $as_echo "$as_me:$LINENO: result: yes" >&5
12970$as_echo "yes" >&6; }
ea04106b
AX
12971
12972else
cae5b340
AX
12973 $as_echo "$as_me: failed program was:" >&5
12974sed 's/^/| /' conftest.$ac_ext >&5
ea04106b 12975
ea04106b 12976
cae5b340
AX
12977 { $as_echo "$as_me:$LINENO: result: no" >&5
12978$as_echo "no" >&6; }
ea04106b 12979
cae5b340 12980fi
ea04106b 12981
cae5b340
AX
12982rm -rf conftest.dSYM
12983rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12984 conftest$ac_exeext conftest.$ac_ext
ea04106b 12985
ea04106b 12986
cae5b340
AX
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; }
ea04106b 12989
cae5b340
AX
12990 cat >conftest.$ac_ext <<_ACEOF
12991/* confdefs.h. */
12992_ACEOF
12993cat confdefs.h >>conftest.$ac_ext
12994cat >>conftest.$ac_ext <<_ACEOF
12995/* end confdefs.h. */
ea04106b 12996
cae5b340
AX
12997 void main()
12998 {
12999 __asm__ __volatile__("pcmpgtq %xmm0, %xmm1");
13000 }
ea04106b 13001
cae5b340
AX
13002_ACEOF
13003rm -f conftest.$ac_objext conftest$ac_exeext
13004if { (ac_try="$ac_link"
13005case "(($ac_try" in
13006 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13007 *) ac_try_echo=$ac_try;;
13008esac
13009eval 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
ea04106b
AX
13024
13025
cae5b340
AX
13026cat >>confdefs.h <<\_ACEOF
13027#define HAVE_SSE4_2 1
13028_ACEOF
ea04106b 13029
cae5b340
AX
13030 { $as_echo "$as_me:$LINENO: result: yes" >&5
13031$as_echo "yes" >&6; }
ea04106b 13032
cae5b340
AX
13033else
13034 $as_echo "$as_me: failed program was:" >&5
13035sed 's/^/| /' conftest.$ac_ext >&5
ea04106b
AX
13036
13037
cae5b340
AX
13038 { $as_echo "$as_me:$LINENO: result: no" >&5
13039$as_echo "no" >&6; }
ea04106b 13040
ea04106b
AX
13041fi
13042
cae5b340
AX
13043rm -rf conftest.dSYM
13044rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13045 conftest$ac_exeext conftest.$ac_ext
ea04106b
AX
13046
13047
cae5b340
AX
13048 { $as_echo "$as_me:$LINENO: checking whether host toolchain supports AVX" >&5
13049$as_echo_n "checking whether host toolchain supports AVX... " >&6; }
ea04106b 13050
cae5b340
AX
13051 cat >conftest.$ac_ext <<_ACEOF
13052/* confdefs.h. */
13053_ACEOF
13054cat confdefs.h >>conftest.$ac_ext
13055cat >>conftest.$ac_ext <<_ACEOF
13056/* end confdefs.h. */
ea04106b 13057
cae5b340
AX
13058 void main()
13059 {
13060 char v[32];
13061 __asm__ __volatile__("vmovdqa %0,%%ymm0" :: "m"(v[0]));
13062 }
ea04106b 13063
cae5b340
AX
13064_ACEOF
13065rm -f conftest.$ac_objext conftest$ac_exeext
13066if { (ac_try="$ac_link"
13067case "(($ac_try" in
13068 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13069 *) ac_try_echo=$ac_try;;
13070esac
13071eval 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
ea04106b 13086
cae5b340
AX
13087 { $as_echo "$as_me:$LINENO: result: yes" >&5
13088$as_echo "yes" >&6; }
ea04106b 13089
cae5b340
AX
13090cat >>confdefs.h <<\_ACEOF
13091#define HAVE_AVX 1
13092_ACEOF
ea04106b 13093
ea04106b 13094
cae5b340
AX
13095else
13096 $as_echo "$as_me: failed program was:" >&5
13097sed 's/^/| /' conftest.$ac_ext >&5
ea04106b 13098
ea04106b 13099
cae5b340
AX
13100 { $as_echo "$as_me:$LINENO: result: no" >&5
13101$as_echo "no" >&6; }
ea04106b 13102
cae5b340 13103fi
ea04106b 13104
cae5b340
AX
13105rm -rf conftest.dSYM
13106rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13107 conftest$ac_exeext conftest.$ac_ext
ea04106b 13108
ea04106b 13109
cae5b340
AX
13110 { $as_echo "$as_me:$LINENO: checking whether host toolchain supports AVX2" >&5
13111$as_echo_n "checking whether host toolchain supports AVX2... " >&6; }
ea04106b 13112
cae5b340
AX
13113 cat >conftest.$ac_ext <<_ACEOF
13114/* confdefs.h. */
13115_ACEOF
13116cat confdefs.h >>conftest.$ac_ext
13117cat >>conftest.$ac_ext <<_ACEOF
13118/* end confdefs.h. */
ea04106b 13119
ea04106b 13120
cae5b340
AX
13121 void main()
13122 {
13123 __asm__ __volatile__("vpshufb %ymm0,%ymm1,%ymm2");
13124 }
ea04106b 13125
cae5b340
AX
13126_ACEOF
13127rm -f conftest.$ac_objext conftest$ac_exeext
13128if { (ac_try="$ac_link"
13129case "(($ac_try" in
13130 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13131 *) ac_try_echo=$ac_try;;
13132esac
13133eval 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
ea04106b 13148
cae5b340
AX
13149 { $as_echo "$as_me:$LINENO: result: yes" >&5
13150$as_echo "yes" >&6; }
ea04106b 13151
cae5b340
AX
13152cat >>confdefs.h <<\_ACEOF
13153#define HAVE_AVX2 1
13154_ACEOF
ea04106b 13155
ea04106b
AX
13156
13157else
cae5b340
AX
13158 $as_echo "$as_me: failed program was:" >&5
13159sed 's/^/| /' conftest.$ac_ext >&5
ea04106b 13160
ea04106b 13161
cae5b340
AX
13162 { $as_echo "$as_me:$LINENO: result: no" >&5
13163$as_echo "no" >&6; }
ea04106b
AX
13164
13165fi
13166
cae5b340
AX
13167rm -rf conftest.dSYM
13168rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13169 conftest$ac_exeext conftest.$ac_ext
ea04106b 13170
ea04106b 13171
cae5b340
AX
13172 { $as_echo "$as_me:$LINENO: checking whether host toolchain supports AVX512F" >&5
13173$as_echo_n "checking whether host toolchain supports AVX512F... " >&6; }
ea04106b 13174
cae5b340
AX
13175 cat >conftest.$ac_ext <<_ACEOF
13176/* confdefs.h. */
13177_ACEOF
13178cat confdefs.h >>conftest.$ac_ext
13179cat >>conftest.$ac_ext <<_ACEOF
13180/* end confdefs.h. */
ea04106b 13181
ea04106b 13182
cae5b340
AX
13183 void main()
13184 {
13185 __asm__ __volatile__("vpandd %zmm0,%zmm1,%zmm2");
13186 }
ea04106b 13187
cae5b340
AX
13188_ACEOF
13189rm -f conftest.$ac_objext conftest$ac_exeext
13190if { (ac_try="$ac_link"
13191case "(($ac_try" in
13192 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13193 *) ac_try_echo=$ac_try;;
13194esac
13195eval 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
ea04106b 13210
cae5b340
AX
13211 { $as_echo "$as_me:$LINENO: result: yes" >&5
13212$as_echo "yes" >&6; }
ea04106b 13213
cae5b340
AX
13214cat >>confdefs.h <<\_ACEOF
13215#define HAVE_AVX512F 1
13216_ACEOF
e10b0808 13217
e10b0808 13218
ea04106b 13219else
cae5b340
AX
13220 $as_echo "$as_me: failed program was:" >&5
13221sed 's/^/| /' conftest.$ac_ext >&5
ea04106b 13222
ea04106b 13223
cae5b340
AX
13224 { $as_echo "$as_me:$LINENO: result: no" >&5
13225$as_echo "no" >&6; }
ea04106b
AX
13226
13227fi
ea04106b 13228
cae5b340
AX
13229rm -rf conftest.dSYM
13230rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13231 conftest$ac_exeext conftest.$ac_ext
ea04106b 13232
ea04106b 13233
cae5b340
AX
13234 { $as_echo "$as_me:$LINENO: checking whether host toolchain supports AVX512CD" >&5
13235$as_echo_n "checking whether host toolchain supports AVX512CD... " >&6; }
ea04106b 13236
cae5b340
AX
13237 cat >conftest.$ac_ext <<_ACEOF
13238/* confdefs.h. */
13239_ACEOF
13240cat confdefs.h >>conftest.$ac_ext
13241cat >>conftest.$ac_ext <<_ACEOF
13242/* end confdefs.h. */
ea04106b 13243
ea04106b 13244
cae5b340
AX
13245 void main()
13246 {
13247 __asm__ __volatile__("vplzcntd %zmm0,%zmm1");
13248 }
ea04106b 13249
cae5b340
AX
13250_ACEOF
13251rm -f conftest.$ac_objext conftest$ac_exeext
13252if { (ac_try="$ac_link"
13253case "(($ac_try" in
13254 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13255 *) ac_try_echo=$ac_try;;
13256esac
13257eval 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
ea04106b 13272
cae5b340
AX
13273 { $as_echo "$as_me:$LINENO: result: yes" >&5
13274$as_echo "yes" >&6; }
ea04106b 13275
cae5b340
AX
13276cat >>confdefs.h <<\_ACEOF
13277#define HAVE_AVX512CD 1
13278_ACEOF
ea04106b 13279
ea04106b 13280
cae5b340
AX
13281else
13282 $as_echo "$as_me: failed program was:" >&5
13283sed 's/^/| /' conftest.$ac_ext >&5
ea04106b 13284
ea04106b 13285
cae5b340
AX
13286 { $as_echo "$as_me:$LINENO: result: no" >&5
13287$as_echo "no" >&6; }
ea04106b
AX
13288
13289fi
13290
cae5b340
AX
13291rm -rf conftest.dSYM
13292rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13293 conftest$ac_exeext conftest.$ac_ext
ea04106b
AX
13294
13295
cae5b340
AX
13296 { $as_echo "$as_me:$LINENO: checking whether host toolchain supports AVX512DQ" >&5
13297$as_echo_n "checking whether host toolchain supports AVX512DQ... " >&6; }
ea04106b 13298
cae5b340
AX
13299 cat >conftest.$ac_ext <<_ACEOF
13300/* confdefs.h. */
13301_ACEOF
13302cat confdefs.h >>conftest.$ac_ext
13303cat >>conftest.$ac_ext <<_ACEOF
13304/* end confdefs.h. */
ea04106b 13305
ea04106b 13306
cae5b340
AX
13307 void main()
13308 {
13309 __asm__ __volatile__("vandpd %zmm0,%zmm1,%zmm2");
13310 }
ea04106b 13311
cae5b340
AX
13312_ACEOF
13313rm -f conftest.$ac_objext conftest$ac_exeext
13314if { (ac_try="$ac_link"
13315case "(($ac_try" in
13316 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13317 *) ac_try_echo=$ac_try;;
13318esac
13319eval 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
ea04106b 13334
cae5b340
AX
13335 { $as_echo "$as_me:$LINENO: result: yes" >&5
13336$as_echo "yes" >&6; }
ea04106b 13337
cae5b340
AX
13338cat >>confdefs.h <<\_ACEOF
13339#define HAVE_AVX512DQ 1
13340_ACEOF
ea04106b 13341
ea04106b 13342
cae5b340
AX
13343else
13344 $as_echo "$as_me: failed program was:" >&5
13345sed 's/^/| /' conftest.$ac_ext >&5
ea04106b 13346
ea04106b 13347
cae5b340
AX
13348 { $as_echo "$as_me:$LINENO: result: no" >&5
13349$as_echo "no" >&6; }
ea04106b
AX
13350
13351fi
13352
cae5b340
AX
13353rm -rf conftest.dSYM
13354rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13355 conftest$ac_exeext conftest.$ac_ext
ea04106b 13356
ea04106b 13357
cae5b340
AX
13358 { $as_echo "$as_me:$LINENO: checking whether host toolchain supports AVX512BW" >&5
13359$as_echo_n "checking whether host toolchain supports AVX512BW... " >&6; }
ea04106b 13360
cae5b340
AX
13361 cat >conftest.$ac_ext <<_ACEOF
13362/* confdefs.h. */
13363_ACEOF
13364cat confdefs.h >>conftest.$ac_ext
13365cat >>conftest.$ac_ext <<_ACEOF
13366/* end confdefs.h. */
ea04106b 13367
ea04106b 13368
cae5b340
AX
13369 void main()
13370 {
13371 __asm__ __volatile__("vpshufb %zmm0,%zmm1,%zmm2");
13372 }
ea04106b 13373
cae5b340
AX
13374_ACEOF
13375rm -f conftest.$ac_objext conftest$ac_exeext
13376if { (ac_try="$ac_link"
13377case "(($ac_try" in
13378 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13379 *) ac_try_echo=$ac_try;;
13380esac
13381eval 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
ea04106b 13396
cae5b340
AX
13397 { $as_echo "$as_me:$LINENO: result: yes" >&5
13398$as_echo "yes" >&6; }
ea04106b 13399
cae5b340
AX
13400cat >>confdefs.h <<\_ACEOF
13401#define HAVE_AVX512BW 1
13402_ACEOF
ea04106b
AX
13403
13404
cae5b340
AX
13405else
13406 $as_echo "$as_me: failed program was:" >&5
13407sed 's/^/| /' conftest.$ac_ext >&5
ea04106b 13408
ea04106b 13409
cae5b340
AX
13410 { $as_echo "$as_me:$LINENO: result: no" >&5
13411$as_echo "no" >&6; }
ea04106b 13412
cae5b340 13413fi
ea04106b 13414
cae5b340
AX
13415rm -rf conftest.dSYM
13416rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13417 conftest$ac_exeext conftest.$ac_ext
ea04106b 13418
ea04106b 13419
cae5b340
AX
13420 { $as_echo "$as_me:$LINENO: checking whether host toolchain supports AVX512IFMA" >&5
13421$as_echo_n "checking whether host toolchain supports AVX512IFMA... " >&6; }
ea04106b 13422
cae5b340
AX
13423 cat >conftest.$ac_ext <<_ACEOF
13424/* confdefs.h. */
ea04106b 13425_ACEOF
cae5b340
AX
13426cat confdefs.h >>conftest.$ac_ext
13427cat >>conftest.$ac_ext <<_ACEOF
13428/* end confdefs.h. */
ea04106b
AX
13429
13430
cae5b340
AX
13431 void main()
13432 {
13433 __asm__ __volatile__("vpmadd52luq %zmm0,%zmm1,%zmm2");
13434 }
ea04106b
AX
13435
13436_ACEOF
cae5b340
AX
13437rm -f conftest.$ac_objext conftest$ac_exeext
13438if { (ac_try="$ac_link"
13439case "(($ac_try" in
13440 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13441 *) ac_try_echo=$ac_try;;
13442esac
13443eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13444$as_echo "$ac_try_echo") >&5
13445 (eval "$ac_link") 2>conftest.er1
ea04106b 13446 ac_status=$?
cae5b340
AX
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
ea04106b 13458
cae5b340 13459 { $as_echo "$as_me:$LINENO: result: yes" >&5
ea04106b
AX
13460$as_echo "yes" >&6; }
13461
cae5b340
AX
13462cat >>confdefs.h <<\_ACEOF
13463#define HAVE_AVX512IFMA 1
13464_ACEOF
13465
13466
ea04106b
AX
13467else
13468 $as_echo "$as_me: failed program was:" >&5
13469sed 's/^/| /' conftest.$ac_ext >&5
13470
ea04106b 13471
cae5b340
AX
13472 { $as_echo "$as_me:$LINENO: result: no" >&5
13473$as_echo "no" >&6; }
ea04106b
AX
13474
13475fi
ea04106b 13476
cae5b340
AX
13477rm -rf conftest.dSYM
13478rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13479 conftest$ac_exeext conftest.$ac_ext
ea04106b
AX
13480
13481
cae5b340
AX
13482 { $as_echo "$as_me:$LINENO: checking whether host toolchain supports AVX512VBMI" >&5
13483$as_echo_n "checking whether host toolchain supports AVX512VBMI... " >&6; }
94a40997 13484
cae5b340
AX
13485 cat >conftest.$ac_ext <<_ACEOF
13486/* confdefs.h. */
13487_ACEOF
13488cat confdefs.h >>conftest.$ac_ext
13489cat >>conftest.$ac_ext <<_ACEOF
ea04106b
AX
13490/* end confdefs.h. */
13491
13492
cae5b340
AX
13493 void main()
13494 {
13495 __asm__ __volatile__("vpermb %zmm0,%zmm1,%zmm2");
13496 }
ea04106b 13497
cae5b340
AX
13498_ACEOF
13499rm -f conftest.$ac_objext conftest$ac_exeext
13500if { (ac_try="$ac_link"
13501case "(($ac_try" in
13502 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13503 *) ac_try_echo=$ac_try;;
13504esac
13505eval 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
ea04106b 13520
cae5b340
AX
13521 { $as_echo "$as_me:$LINENO: result: yes" >&5
13522$as_echo "yes" >&6; }
ea04106b 13523
cae5b340
AX
13524cat >>confdefs.h <<\_ACEOF
13525#define HAVE_AVX512VBMI 1
ea04106b 13526_ACEOF
ea04106b
AX
13527
13528
cae5b340
AX
13529else
13530 $as_echo "$as_me: failed program was:" >&5
13531sed 's/^/| /' conftest.$ac_ext >&5
ea04106b 13532
ea04106b 13533
cae5b340
AX
13534 { $as_echo "$as_me:$LINENO: result: no" >&5
13535$as_echo "no" >&6; }
ea04106b 13536
94a40997
AX
13537fi
13538
cae5b340
AX
13539rm -rf conftest.dSYM
13540rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13541 conftest$ac_exeext conftest.$ac_ext
ea04106b 13542
68d83c55 13543
cae5b340
AX
13544 { $as_echo "$as_me:$LINENO: checking whether host toolchain supports AVX512PF" >&5
13545$as_echo_n "checking whether host toolchain supports AVX512PF... " >&6; }
68d83c55 13546
cae5b340
AX
13547 cat >conftest.$ac_ext <<_ACEOF
13548/* confdefs.h. */
68d83c55 13549_ACEOF
cae5b340
AX
13550cat confdefs.h >>conftest.$ac_ext
13551cat >>conftest.$ac_ext <<_ACEOF
13552/* end confdefs.h. */
68d83c55
AX
13553
13554
cae5b340
AX
13555 void main()
13556 {
13557 __asm__ __volatile__("vgatherpf0dps (%rsi,%zmm0,4){%k1}");
13558 }
68d83c55
AX
13559
13560_ACEOF
cae5b340
AX
13561rm -f conftest.$ac_objext conftest$ac_exeext
13562if { (ac_try="$ac_link"
13563case "(($ac_try" in
13564 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13565 *) ac_try_echo=$ac_try;;
13566esac
13567eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13568$as_echo "$ac_try_echo") >&5
13569 (eval "$ac_link") 2>conftest.er1
68d83c55 13570 ac_status=$?
cae5b340
AX
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
68d83c55 13582
cae5b340 13583 { $as_echo "$as_me:$LINENO: result: yes" >&5
68d83c55
AX
13584$as_echo "yes" >&6; }
13585
cae5b340
AX
13586cat >>confdefs.h <<\_ACEOF
13587#define HAVE_AVX512PF 1
13588_ACEOF
68d83c55
AX
13589
13590
13591else
13592 $as_echo "$as_me: failed program was:" >&5
13593sed 's/^/| /' conftest.$ac_ext >&5
13594
68d83c55 13595
cae5b340
AX
13596 { $as_echo "$as_me:$LINENO: result: no" >&5
13597$as_echo "no" >&6; }
68d83c55
AX
13598
13599fi
ea04106b 13600
cae5b340
AX
13601rm -rf conftest.dSYM
13602rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13603 conftest$ac_exeext conftest.$ac_ext
68d83c55
AX
13604
13605
cae5b340
AX
13606 { $as_echo "$as_me:$LINENO: checking whether host toolchain supports AVX512ER" >&5
13607$as_echo_n "checking whether host toolchain supports AVX512ER... " >&6; }
68d83c55 13608
cae5b340
AX
13609 cat >conftest.$ac_ext <<_ACEOF
13610/* confdefs.h. */
13611_ACEOF
13612cat confdefs.h >>conftest.$ac_ext
13613cat >>conftest.$ac_ext <<_ACEOF
13614/* end confdefs.h. */
68d83c55 13615
ea04106b 13616
cae5b340
AX
13617 void main()
13618 {
13619 __asm__ __volatile__("vexp2pd %zmm0,%zmm1");
13620 }
ea04106b 13621
cae5b340
AX
13622_ACEOF
13623rm -f conftest.$ac_objext conftest$ac_exeext
13624if { (ac_try="$ac_link"
13625case "(($ac_try" in
13626 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13627 *) ac_try_echo=$ac_try;;
13628esac
13629eval 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
ea04106b 13644
cae5b340
AX
13645 { $as_echo "$as_me:$LINENO: result: yes" >&5
13646$as_echo "yes" >&6; }
ea04106b 13647
cae5b340
AX
13648cat >>confdefs.h <<\_ACEOF
13649#define HAVE_AVX512ER 1
13650_ACEOF
ea04106b 13651
ea04106b 13652
cae5b340
AX
13653else
13654 $as_echo "$as_me: failed program was:" >&5
13655sed 's/^/| /' conftest.$ac_ext >&5
ea04106b 13656
ea04106b 13657
cae5b340
AX
13658 { $as_echo "$as_me:$LINENO: result: no" >&5
13659$as_echo "no" >&6; }
ea04106b 13660
cae5b340 13661fi
ea04106b 13662
cae5b340
AX
13663rm -rf conftest.dSYM
13664rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13665 conftest$ac_exeext conftest.$ac_ext
ea04106b 13666
ea04106b 13667
cae5b340
AX
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. */
ea04106b 13673_ACEOF
cae5b340
AX
13674cat confdefs.h >>conftest.$ac_ext
13675cat >>conftest.$ac_ext <<_ACEOF
13676/* end confdefs.h. */
ea04106b
AX
13677
13678
cae5b340
AX
13679 void main()
13680 {
13681 __asm__ __volatile__("vpabsq %zmm0,%zmm1");
13682 }
13683
13684_ACEOF
13685rm -f conftest.$ac_objext conftest$ac_exeext
13686if { (ac_try="$ac_link"
13687case "(($ac_try" in
13688 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13689 *) ac_try_echo=$ac_try;;
13690esac
13691eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13692$as_echo "$ac_try_echo") >&5
13693 (eval "$ac_link") 2>conftest.er1
ea04106b 13694 ac_status=$?
cae5b340
AX
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
ea04106b 13706
cae5b340 13707 { $as_echo "$as_me:$LINENO: result: yes" >&5
ea04106b
AX
13708$as_echo "yes" >&6; }
13709
cae5b340
AX
13710cat >>confdefs.h <<\_ACEOF
13711#define HAVE_AVX512VL 1
13712_ACEOF
ea04106b
AX
13713
13714
cae5b340
AX
13715else
13716 $as_echo "$as_me: failed program was:" >&5
13717sed 's/^/| /' conftest.$ac_ext >&5
ea04106b
AX
13718
13719
cae5b340
AX
13720 { $as_echo "$as_me:$LINENO: result: no" >&5
13721$as_echo "no" >&6; }
ea04106b 13722
cae5b340 13723fi
ea04106b 13724
cae5b340
AX
13725rm -rf conftest.dSYM
13726rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13727 conftest$ac_exeext conftest.$ac_ext
ea04106b 13728
cae5b340
AX
13729 ;;
13730 esac
ea04106b 13731
ea04106b 13732
cae5b340
AX
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
ea04106b 13745
ea04106b 13746
cae5b340
AX
13747 if test $TARGET_ASM_DIR = asm-x86_64; then
13748 TARGET_ASM_X86_64_TRUE=
13749 TARGET_ASM_X86_64_FALSE='#'
13750else
13751 TARGET_ASM_X86_64_TRUE='#'
13752 TARGET_ASM_X86_64_FALSE=
13753fi
ea04106b 13754
cae5b340
AX
13755 if test $TARGET_ASM_DIR = asm-i386; then
13756 TARGET_ASM_I386_TRUE=
13757 TARGET_ASM_I386_FALSE='#'
13758else
13759 TARGET_ASM_I386_TRUE='#'
13760 TARGET_ASM_I386_FALSE=
13761fi
ea04106b 13762
cae5b340
AX
13763 if test $TARGET_ASM_DIR = asm-generic; then
13764 TARGET_ASM_GENERIC_TRUE=
13765 TARGET_ASM_GENERIC_FALSE='#'
13766else
13767 TARGET_ASM_GENERIC_TRUE='#'
13768 TARGET_ASM_GENERIC_FALSE=
13769fi
ea04106b 13770
cae5b340
AX
13771 { $as_echo "$as_me:$LINENO: result: $TARGET_ASM_DIR" >&5
13772$as_echo "$TARGET_ASM_DIR" >&6; }
ea04106b
AX
13773
13774
ea04106b 13775
cae5b340
AX
13776 case "$ZFS_CONFIG" in
13777 kernel)
ea04106b 13778
ea04106b 13779
cae5b340
AX
13780# Check whether --with-linux was given.
13781if test "${with_linux+set}" = set; then
13782 withval=$with_linux; kernelsrc="$withval"
13783fi
ea04106b
AX
13784
13785
13786
cae5b340
AX
13787# Check whether --with-linux-obj was given.
13788if test "${with_linux_obj+set}" = set; then
13789 withval=$with_linux_obj; kernelbuild="$withval"
ea04106b 13790fi
ea04106b
AX
13791
13792
cae5b340
AX
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
ea04106b 13796
cae5b340 13797 if test -e "/lib/modules/$(uname -r)/source"; then
ea04106b 13798
cae5b340
AX
13799 headersdir="/lib/modules/$(uname -r)/source"
13800 sourcelink=$(readlink -f "$headersdir")
ea04106b 13801
cae5b340 13802elif test -e "/lib/modules/$(uname -r)/build"; then
ea04106b 13803
cae5b340
AX
13804 headersdir="/lib/modules/$(uname -r)/build"
13805 sourcelink=$(readlink -f "$headersdir")
ea04106b 13806
cae5b340 13807else
ea04106b 13808
cae5b340
AX
13809 sourcelink=$(ls -1d /usr/src/kernels/* \
13810 /usr/src/linux-* \
13811 2>/dev/null | grep -v obj | tail -1)
ea04106b
AX
13812
13813fi
ea04106b
AX
13814
13815
cae5b340 13816 if test -n "$sourcelink" && test -e ${sourcelink}; then
ea04106b 13817
cae5b340 13818 kernelsrc=`readlink -f ${sourcelink}`
ea04106b 13819
cae5b340 13820else
ea04106b 13821
cae5b340 13822 kernelsrc="Not found"
ea04106b 13823
cae5b340 13824fi
ea04106b 13825
ea04106b 13826
cae5b340 13827else
ea04106b 13828
cae5b340 13829 if test "$kernelsrc" = "NONE"; then
ea04106b 13830
cae5b340 13831 kernsrcver=NONE
ea04106b 13832
cae5b340 13833fi
ea04106b 13834
cae5b340 13835 withlinux=yes
ea04106b 13836
cae5b340 13837fi
ea04106b 13838
ea04106b 13839
cae5b340
AX
13840 { $as_echo "$as_me:$LINENO: result: $kernelsrc" >&5
13841$as_echo "$kernelsrc" >&6; }
13842 if test ! -d "$kernelsrc"; then
ea04106b 13843
cae5b340
AX
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; }; }
ea04106b 13853
cae5b340 13854fi
ea04106b
AX
13855
13856
cae5b340
AX
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
ea04106b 13860
cae5b340 13861 if test x$withlinux != xyes -a -e "/lib/modules/$(uname -r)/build"; then
ea04106b 13862
cae5b340 13863 kernelbuild=`readlink -f /lib/modules/$(uname -r)/build`
ea04106b 13864
cae5b340 13865elif test -d ${kernelsrc}-obj/${target_cpu}/${target_cpu}; then
ea04106b 13866
cae5b340 13867 kernelbuild=${kernelsrc}-obj/${target_cpu}/${target_cpu}
ea04106b 13868
cae5b340 13869elif test -d ${kernelsrc}-obj/${target_cpu}/default; then
ea04106b 13870
cae5b340 13871 kernelbuild=${kernelsrc}-obj/${target_cpu}/default
ea04106b 13872
cae5b340 13873elif test -d `dirname ${kernelsrc}`/build-${target_cpu}; then
ea04106b 13874
cae5b340 13875 kernelbuild=`dirname ${kernelsrc}`/build-${target_cpu}
ea04106b 13876
cae5b340 13877else
ea04106b 13878
cae5b340 13879 kernelbuild=${kernelsrc}
ea04106b 13880
cae5b340 13881fi
ea04106b
AX
13882
13883
cae5b340 13884fi
ea04106b 13885
cae5b340
AX
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
ea04106b 13895
cae5b340 13896 utsrelease=linux/version.h
ea04106b 13897
cae5b340 13898elif test -r $utsrelease2 && fgrep -q UTS_RELEASE $utsrelease2; then
ea04106b 13899
cae5b340 13900 utsrelease=linux/utsrelease.h
ea04106b 13901
cae5b340 13902elif test -r $utsrelease3 && fgrep -q UTS_RELEASE $utsrelease3; then
ea04106b 13903
cae5b340 13904 utsrelease=generated/utsrelease.h
ea04106b 13905
cae5b340 13906fi
ea04106b 13907
e10b0808 13908
cae5b340 13909 if test "$utsrelease"; then
e10b0808 13910
cae5b340
AX
13911 kernsrcver=`(echo "#include <$utsrelease>";
13912 echo "kernsrcver=UTS_RELEASE") |
13913 cpp -I $kernelbuild/include |
13914 grep "^kernsrcver=" | cut -d \" -f 2`
e10b0808 13915
cae5b340 13916 if test -z "$kernsrcver"; then
e10b0808 13917
cae5b340
AX
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; }; }
e10b0808 13923
cae5b340 13924fi
e10b0808 13925
e10b0808 13926
cae5b340 13927else
e10b0808 13928
cae5b340
AX
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
e10b0808 13944
cae5b340 13945fi
e10b0808
AX
13946
13947
cae5b340
AX
13948 { $as_echo "$as_me:$LINENO: result: $kernsrcver" >&5
13949$as_echo "$kernsrcver" >&6; }
e10b0808 13950
cae5b340
AX
13951 LINUX=${kernelsrc}
13952 LINUX_OBJ=${kernelbuild}
13953 LINUX_VERSION=${kernsrcver}
e10b0808
AX
13954
13955
e10b0808 13956
e10b0808 13957
e10b0808
AX
13958
13959
cae5b340
AX
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
e10b0808 13964
cae5b340 13965 if grep -q Modules.symvers $modpost; then
e10b0808 13966
cae5b340 13967 LINUX_SYMBOLS=Modules.symvers
e10b0808 13968
cae5b340 13969else
e10b0808 13970
cae5b340 13971 LINUX_SYMBOLS=Module.symvers
e10b0808 13972
cae5b340 13973fi
e10b0808 13974
e10b0808 13975
cae5b340 13976 if test ! -f "$LINUX_OBJ/$LINUX_SYMBOLS"; then
e10b0808 13977
cae5b340
AX
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; }; }
e10b0808 13989
cae5b340 13990fi
e10b0808
AX
13991
13992
cae5b340 13993else
e10b0808 13994
cae5b340 13995 LINUX_SYMBOLS=NONE
e10b0808 13996
cae5b340 13997fi
e10b0808 13998
cae5b340
AX
13999 { $as_echo "$as_me:$LINENO: result: $LINUX_SYMBOLS" >&5
14000$as_echo "$LINUX_SYMBOLS" >&6; }
e10b0808 14001
e10b0808 14002
e10b0808 14003
e10b0808
AX
14004
14005
cae5b340
AX
14006# Check whether --with-spl was given.
14007if 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; }; }
e10b0808 14012else
cae5b340
AX
14013 splsrc="$withval"
14014fi
e10b0808 14015
cae5b340 14016fi
e10b0808
AX
14017
14018
14019
cae5b340
AX
14020# Check whether --with-spl-obj was given.
14021if test "${with_spl_obj+set}" = set; then
14022 withval=$with_spl_obj; splbuild="$withval"
e10b0808 14023fi
e10b0808
AX
14024
14025
14026
cae5b340
AX
14027# Check whether --with-spl-timeout was given.
14028if test "${with_spl_timeout+set}" = set; then
14029 withval=$with_spl_timeout; timeout="$withval"
14030else
14031 timeout=0
87dac73d 14032fi
87dac73d
AX
14033
14034
cae5b340
AX
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"
87dac73d 14042
cae5b340
AX
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
87dac73d 14056
cae5b340 14057 splsrc=${splsrc0}
87dac73d 14058
cae5b340 14059elif test -e "${splsrc1}/spl.release.in"; then
87dac73d 14060
cae5b340 14061 splsrc=${splsrc1}
87dac73d 14062
cae5b340 14063elif test -e "${splsrc2}/spl.release.in"; then
87dac73d 14064
cae5b340 14065 splsrc=${splsrc2}
87dac73d 14066
cae5b340 14067elif test -e "${splsrc3}/spl.release.in"; then
87dac73d 14068
cae5b340 14069 splsrc=$(readlink -f "${splsrc3}")
87dac73d 14070
cae5b340 14071elif test -e "${splsrc4}/spl.release.in" ; then
87dac73d 14072
cae5b340 14073 splsrc=${splsrc4}
87dac73d 14074
cae5b340 14075elif test -e "${splsrc5}/spl.release.in"; then
87dac73d 14076
cae5b340 14077 splsrc=$(readlink -f "${splsrc5}")
87dac73d 14078
cae5b340 14079elif test -e "${splsrc6}/spl.release.in" ; then
87dac73d 14080
cae5b340 14081 splsrc=${splsrc6}
87dac73d 14082
cae5b340 14083else
87dac73d 14084
cae5b340 14085 splsrc="Not found"
87dac73d 14086
cae5b340 14087fi
87dac73d
AX
14088
14089
14090else
87dac73d 14091
cae5b340
AX
14092 all_spl_sources="$withval",
14093 if test "$splsrc" = "NONE"; then
87dac73d 14094
cae5b340
AX
14095 splbuild=NONE
14096 splsrcver=NONE
87dac73d 14097
e10b0808 14098fi
e10b0808
AX
14099
14100
cae5b340 14101fi
e10b0808
AX
14102
14103
cae5b340
AX
14104 { $as_echo "$as_me:$LINENO: result: $splsrc" >&5
14105$as_echo "$splsrc" >&6; }
14106 if test ! -e "$splsrc/spl.release.in"; then
ea04106b 14107
cae5b340
AX
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; }; }
ea04106b 14123
cae5b340 14124fi
ea04106b
AX
14125
14126
cae5b340
AX
14127 { $as_echo "$as_me:$LINENO: checking spl build directory" >&5
14128$as_echo_n "checking spl build directory... " >&6; }
ea04106b 14129
cae5b340
AX
14130 all_spl_config_locs="${splsrc}/${LINUX_VERSION}
14131 ${splsrc}"
ea04106b 14132
cae5b340
AX
14133 while true; do
14134 if test -z "$splbuild"; then
ea04106b 14135
cae5b340 14136 if test -e "${splsrc}/${LINUX_VERSION}/spl_config.h" ; then
ea04106b 14137
cae5b340 14138 splbuild="${splsrc}/${LINUX_VERSION}"
ea04106b 14139
cae5b340 14140elif test -e "${splsrc}/spl_config.h" ; then
ea04106b 14141
cae5b340 14142 splbuild="${splsrc}"
ea04106b 14143
cae5b340 14144elif find -L "${splsrc}" -name spl_config.h 2> /dev/null | grep -wq spl_config.h ; then
ea04106b 14145
cae5b340 14146 splbuild=$(find -L "${splsrc}" -name spl_config.h | sed 's,/spl_config.h,,')
ea04106b 14147
cae5b340 14148else
ea04106b 14149
cae5b340 14150 splbuild="Not found"
ea04106b 14151
cae5b340 14152fi
ea04106b 14153
ea04106b 14154
cae5b340 14155fi
ea04106b 14156
cae5b340 14157 if test -e "$splbuild/spl_config.h" -o $timeout -le 0; then
ea04106b 14158
cae5b340 14159 break;
ea04106b
AX
14160
14161else
ea04106b 14162
cae5b340
AX
14163 sleep 1
14164 timeout=$((timeout-1))
ea04106b
AX
14165
14166fi
ea04106b 14167
cae5b340 14168 done
ea04106b 14169
cae5b340
AX
14170 { $as_echo "$as_me:$LINENO: result: $splbuild" >&5
14171$as_echo "$splbuild" >&6; }
14172 if ! test -e "$splbuild/spl_config.h"; then
ea04106b 14173
cae5b340
AX
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; }; }
ea04106b 14189
cae5b340 14190fi
ea04106b
AX
14191
14192
cae5b340
AX
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
ea04106b
AX
14197
14198
cae5b340
AX
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`
ea04106b 14203
cae5b340
AX
14204fi
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
14219fi
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
14242elif test -r $SPL_OBJ/Modules.symvers; then
14243
14244 SPL_SYMBOLS=Modules.symvers
14245
14246elif test -r $SPL_OBJ/module/Module.symvers; then
14247
14248 SPL_SYMBOLS=Module.symvers
14249
14250elif test -r $SPL_OBJ/module/Modules.symvers; then
14251
14252 SPL_SYMBOLS=Modules.symvers
14253
14254fi
14255
14256
14257 if test $SPL_SYMBOLS != NONE -o $timeout -le 0; then
14258
14259 break;
14260
14261else
14262
14263 sleep 1
14264 timeout=$((timeout-1))
14265
14266fi
14267
14268 done
14269
14270 if test "$SPL_SYMBOLS" = NONE; then
14271
14272 SPL_SYMBOLS=$LINUX_SYMBOLS
14273
14274fi
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.
14284if 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; }; }
14289else
14290 qatsrc="$withval"
14291fi
14292
14293fi
14294
14295
14296
14297# Check whether --with-qat-obj was given.
14298if test "${with_qat_obj+set}" = set; then
14299 withval=$with_qat_obj; qatbuild="$withval"
14300fi
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
14326fi
14327
14328
14329fi
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
14340fi
14341
14342
14343 { $as_echo "$as_me:$LINENO: result: $qatbuild" >&5
14344$as_echo "$qatbuild" >&6; }
14345 QAT_OBJ=${qatbuild}
41d74433 14346 if ! test -e "$QAT_OBJ/icp_qa_al.ko" && ! test -e "$QAT_OBJ/qat_api.ko"; then
cae5b340
AX
14347
14348 { { $as_echo "$as_me:$LINENO: error:
14349 *** Please make sure the qat driver is installed then try again.
41d74433 14350 *** Failed to find icp_qa_al.ko or qat_api.ko in:
cae5b340
AX
14351 $QAT_OBJ" >&5
14352$as_echo "$as_me: error:
14353 *** Please make sure the qat driver is installed then try again.
41d74433 14354 *** Failed to find icp_qa_al.ko or qat_api.ko in:
cae5b340
AX
14355 $QAT_OBJ" >&2;}
14356 { (exit 1); exit 1; }; }
14357
14358fi
14359
14360
14361
14362
14363
14364
14365cat >>confdefs.h <<\_ACEOF
14366#define HAVE_QAT 1
14367_ACEOF
14368
14369
14370fi
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
14385else
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
14397fi
14398
14399
14400fi
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
14408cat confdefs.h - <<_ACEOF >conftest.c
14409/* confdefs.h. */
14410_ACEOF
14411cat confdefs.h >>conftest.$ac_ext
14412cat >>conftest.$ac_ext <<_ACEOF
14413/* end confdefs.h. */
ea04106b 14414
ea04106b
AX
14415
14416int
14417main (void)
14418{
14419
ea04106b
AX
14420 ;
14421 return 0;
14422}
14423
14424_ACEOF
14425
14426
14427
14428cat - <<_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
42f7b73b 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'
cae5b340 14438 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
14439 (eval $ac_try) 2>&5
14440 ac_status=$?
cae5b340
AX
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
ea04106b
AX
14444 (eval $ac_try) 2>&5
14445 ac_status=$?
cae5b340
AX
14446 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14447 (exit $ac_status); }; }; then
ea04106b 14448
cae5b340
AX
14449 { $as_echo "$as_me:$LINENO: result: yes" >&5
14450$as_echo "yes" >&6; }
ea04106b
AX
14451
14452else
14453 $as_echo "$as_me: failed program was:" >&5
14454sed 's/^/| /' conftest.$ac_ext >&5
14455
cae5b340
AX
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
ea04106b
AX
14471
14472
14473
14474fi
cae5b340 14475
ea04106b
AX
14476 rm -Rf build
14477
14478
ea04106b 14479
cae5b340
AX
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; }
ea04106b
AX
14483
14484
14485cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
14486/* confdefs.h. */
14487_ACEOF
14488cat confdefs.h >>conftest.$ac_ext
14489cat >>conftest.$ac_ext <<_ACEOF
14490/* end confdefs.h. */
ea04106b
AX
14491
14492
cae5b340
AX
14493 #undef __ASSEMBLY__
14494 #include <asm/frame.h>
ea04106b
AX
14495
14496int
14497main (void)
14498{
14499
cae5b340
AX
14500 #if !defined(FRAME_BEGIN)
14501 CTASSERT(1);
14502 #endif
ea04106b
AX
14503
14504 ;
14505 return 0;
14506}
14507
14508_ACEOF
14509
14510
14511
14512cat - <<_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
42f7b73b 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'
cae5b340 14522 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
14523 (eval $ac_try) 2>&5
14524 ac_status=$?
cae5b340
AX
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
ea04106b
AX
14528 (eval $ac_try) 2>&5
14529 ac_status=$?
cae5b340
AX
14530 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14531 (exit $ac_status); }; }; then
ea04106b 14532
cae5b340 14533 { $as_echo "$as_me:$LINENO: result: yes" >&5
ea04106b
AX
14534$as_echo "yes" >&6; }
14535
cae5b340
AX
14536cat >>confdefs.h <<\_ACEOF
14537#define HAVE_KERNEL_OBJTOOL 1
14538_ACEOF
ea04106b
AX
14539
14540
14541else
14542 $as_echo "$as_me: failed program was:" >&5
14543sed 's/^/| /' conftest.$ac_ext >&5
14544
cae5b340 14545 { $as_echo "$as_me:$LINENO: result: no" >&5
ea04106b
AX
14546$as_echo "no" >&6; }
14547
14548
14549
14550fi
cae5b340 14551
ea04106b
AX
14552 rm -Rf build
14553
14554
14555
14556
cae5b340
AX
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
14563See \`config.log' for more details." >&5
14564$as_echo "$as_me: error: cannot run test program while cross compiling
14565See \`config.log' for more details." >&2;}
14566 { (exit 1); exit 1; }; }; }
14567else
14568 cat >conftest.$ac_ext <<_ACEOF
14569
14570 /* confdefs.h. */
14571_ACEOF
14572cat confdefs.h >>conftest.$ac_ext
14573cat >>conftest.$ac_ext <<_ACEOF
14574/* end confdefs.h. */
14575
14576 #include "$LINUX/include/linux/license.h"
14577
14578int
14579main ()
14580{
14581
14582 return !license_is_gpl_compatible("$ZFS_META_LICENSE");
14583
14584 ;
14585 return 0;
14586}
14587
14588_ACEOF
14589rm -f conftest$ac_exeext
14590if { (ac_try="$ac_link"
14591case "(($ac_try" in
14592 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14593 *) ac_try_echo=$ac_try;;
14594esac
14595eval 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;;
14604esac
14605eval 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
14613cat >>confdefs.h <<\_ACEOF
14614#define ZFS_IS_GPL_COMPATIBLE 1
14615_ACEOF
14616
14617
14618else
14619 $as_echo "$as_me: program exited with status $ac_status" >&5
14620$as_echo "$as_me: failed program was:" >&5
14621sed 's/^/| /' conftest.$ac_ext >&5
14622
14623( exit $ac_status )
14624
14625
14626fi
14627rm -rf conftest.dSYM
14628rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14629fi
14630
14631
14632
14633fi
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; }
ea04106b
AX
14639
14640
14641cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
14642/* confdefs.h. */
14643_ACEOF
14644cat confdefs.h >>conftest.$ac_ext
14645cat >>conftest.$ac_ext <<_ACEOF
14646/* end confdefs.h. */
ea04106b
AX
14647
14648
cae5b340 14649 #include <linux/module.h>
ea04106b
AX
14650
14651int
14652main (void)
14653{
14654
cae5b340
AX
14655 #if (THREAD_SIZE < 16384)
14656 #error "THREAD_SIZE is less than 16K"
14657 #endif
ea04106b
AX
14658
14659 ;
14660 return 0;
14661}
14662
14663_ACEOF
14664
14665
14666
14667cat - <<_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
42f7b73b 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'
cae5b340 14677 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
14678 (eval $ac_try) 2>&5
14679 ac_status=$?
cae5b340
AX
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
ea04106b
AX
14683 (eval $ac_try) 2>&5
14684 ac_status=$?
cae5b340
AX
14685 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14686 (exit $ac_status); }; }; then
ea04106b 14687
cae5b340 14688 { $as_echo "$as_me:$LINENO: result: yes" >&5
ea04106b
AX
14689$as_echo "yes" >&6; }
14690
cae5b340
AX
14691cat >>confdefs.h <<\_ACEOF
14692#define HAVE_LARGE_STACKS 1
14693_ACEOF
ea04106b
AX
14694
14695
14696else
14697 $as_echo "$as_me: failed program was:" >&5
14698sed 's/^/| /' conftest.$ac_ext >&5
14699
cae5b340 14700 { $as_echo "$as_me:$LINENO: result: no" >&5
ea04106b
AX
14701$as_echo "no" >&6; }
14702
14703
14704
14705fi
cae5b340 14706
ea04106b
AX
14707 rm -Rf build
14708
14709
14710
14711
cae5b340
AX
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; }
ea04106b
AX
14715
14716
14717cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
14718/* confdefs.h. */
14719_ACEOF
14720cat confdefs.h >>conftest.$ac_ext
14721cat >>conftest.$ac_ext <<_ACEOF
14722/* end confdefs.h. */
ea04106b
AX
14723
14724
cae5b340 14725 #include <linux/module.h>
ea04106b
AX
14726
14727int
14728main (void)
14729{
14730
cae5b340
AX
14731 #ifndef CONFIG_DEBUG_LOCK_ALLOC
14732 #error CONFIG_DEBUG_LOCK_ALLOC not #defined
14733 #endif
ea04106b
AX
14734
14735 ;
14736 return 0;
14737}
14738
14739_ACEOF
14740
14741
14742
14743cat - <<_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
42f7b73b 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'
cae5b340 14753 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
14754 (eval $ac_try) 2>&5
14755 ac_status=$?
cae5b340
AX
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
ea04106b
AX
14759 (eval $ac_try) 2>&5
14760 ac_status=$?
cae5b340
AX
14761 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14762 (exit $ac_status); }; }; then
ea04106b 14763
cae5b340 14764 { $as_echo "$as_me:$LINENO: result: yes" >&5
ea04106b
AX
14765$as_echo "yes" >&6; }
14766
cae5b340
AX
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"
ea04106b
AX
14770
14771
14772cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
14773/* confdefs.h. */
14774_ACEOF
14775cat confdefs.h >>conftest.$ac_ext
14776cat >>conftest.$ac_ext <<_ACEOF
14777/* end confdefs.h. */
ea04106b
AX
14778
14779
cae5b340
AX
14780 #include <linux/module.h>
14781 #include <linux/mutex.h>
14782
14783 MODULE_LICENSE("$ZFS_META_LICENSE");
ea04106b
AX
14784
14785int
14786main (void)
14787{
14788
cae5b340
AX
14789 struct mutex lock;
14790
14791 mutex_init(&lock);
14792 mutex_lock(&lock);
14793 mutex_unlock(&lock);
ea04106b
AX
14794
14795 ;
14796 return 0;
14797}
14798
14799_ACEOF
14800
14801
14802
14803cat - <<_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
42f7b73b 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'
cae5b340 14813 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
14814 (eval $ac_try) 2>&5
14815 ac_status=$?
cae5b340
AX
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
ea04106b
AX
14819 (eval $ac_try) 2>&5
14820 ac_status=$?
cae5b340
AX
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
ea04106b
AX
14827else
14828 $as_echo "$as_me: failed program was:" >&5
14829sed 's/^/| /' conftest.$ac_ext >&5
cae5b340
AX
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
ea04106b
AX
14845
14846
14847fi
cae5b340 14848
ea04106b
AX
14849 rm -Rf build
14850
14851
cae5b340 14852 EXTRA_KCFLAGS="$tmp_flags"
ea04106b 14853
cae5b340
AX
14854
14855else
14856 $as_echo "$as_me: failed program was:" >&5
14857sed 's/^/| /' conftest.$ac_ext >&5
14858
14859 { $as_echo "$as_me:$LINENO: result: no" >&5
ea04106b
AX
14860$as_echo "no" >&6; }
14861
ea04106b 14862
ea04106b 14863
ea04106b 14864
cae5b340 14865fi
ea04106b 14866
cae5b340 14867 rm -Rf build
ea04106b 14868
ea04106b 14869
ea04106b
AX
14870
14871
ea04106b
AX
14872
14873
cae5b340
AX
14874 tmp_flags="$EXTRA_KCFLAGS"
14875 EXTRA_KCFLAGS="-I\$(src)"
ea04106b 14876
cae5b340
AX
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; }
ea04106b
AX
14879
14880
14881cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
14882/* confdefs.h. */
14883_ACEOF
14884cat confdefs.h >>conftest.$ac_ext
14885cat >>conftest.$ac_ext <<_ACEOF
14886/* end confdefs.h. */
ea04106b
AX
14887
14888
cae5b340
AX
14889 #include <linux/module.h>
14890 MODULE_LICENSE(ZFS_META_LICENSE);
14891
14892 #define CREATE_TRACE_POINTS
14893 #include "conftest.h"
ea04106b
AX
14894
14895int
14896main (void)
14897{
14898
cae5b340
AX
14899 trace_zfs_autoconf_event_one(1UL);
14900 trace_zfs_autoconf_event_two(2UL);
ea04106b
AX
14901
14902 ;
14903 return 0;
14904}
14905
14906_ACEOF
14907
14908
14909
14910cat - <<_ACEOF >conftest.h
14911
cae5b340
AX
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
ea04106b
AX
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
42f7b73b 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'
cae5b340 14953 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
14954 (eval $ac_try) 2>&5
14955 ac_status=$?
cae5b340
AX
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
ea04106b
AX
14959 (eval $ac_try) 2>&5
14960 ac_status=$?
cae5b340
AX
14961 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14962 (exit $ac_status); }; }; then
ea04106b 14963
cae5b340
AX
14964 { $as_echo "$as_me:$LINENO: result: yes" >&5
14965$as_echo "yes" >&6; }
ea04106b 14966
cae5b340
AX
14967cat >>confdefs.h <<\_ACEOF
14968#define HAVE_DECLARE_EVENT_CLASS 1
14969_ACEOF
ea04106b 14970
ea04106b 14971
cae5b340
AX
14972else
14973 $as_echo "$as_me: failed program was:" >&5
14974sed 's/^/| /' conftest.$ac_ext >&5
ea04106b 14975
cae5b340 14976 { $as_echo "$as_me:$LINENO: result: no" >&5
ea04106b
AX
14977$as_echo "no" >&6; }
14978
ea04106b 14979
ea04106b 14980
cae5b340 14981fi
ea04106b 14982
cae5b340 14983 rm -Rf build
ea04106b 14984
ea04106b 14985
cae5b340 14986 EXTRA_KCFLAGS="$tmp_flags"
ea04106b 14987
ea04106b 14988
cae5b340
AX
14989 { $as_echo "$as_me:$LINENO: checking whether current->bio_tail exists" >&5
14990$as_echo_n "checking whether current->bio_tail exists... " >&6; }
ea04106b
AX
14991
14992
14993cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
14994/* confdefs.h. */
14995_ACEOF
14996cat confdefs.h >>conftest.$ac_ext
14997cat >>conftest.$ac_ext <<_ACEOF
14998/* end confdefs.h. */
ea04106b
AX
14999
15000
cae5b340 15001 #include <linux/sched.h>
ea04106b
AX
15002
15003int
15004main (void)
15005{
15006
cae5b340 15007 current->bio_tail = (struct bio **) NULL;
ea04106b
AX
15008
15009 ;
15010 return 0;
15011}
15012
15013_ACEOF
15014
15015
15016
15017cat - <<_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
42f7b73b 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'
cae5b340 15027 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
15028 (eval $ac_try) 2>&5
15029 ac_status=$?
cae5b340
AX
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
ea04106b
AX
15033 (eval $ac_try) 2>&5
15034 ac_status=$?
cae5b340
AX
15035 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15036 (exit $ac_status); }; }; then
ea04106b 15037
cae5b340
AX
15038 { $as_echo "$as_me:$LINENO: result: yes" >&5
15039$as_echo "yes" >&6; }
ea04106b 15040
cae5b340
AX
15041cat >>confdefs.h <<\_ACEOF
15042#define HAVE_CURRENT_BIO_TAIL 1
15043_ACEOF
ea04106b
AX
15044
15045
cae5b340
AX
15046else
15047 $as_echo "$as_me: failed program was:" >&5
15048sed 's/^/| /' conftest.$ac_ext >&5
ea04106b 15049
cae5b340 15050 { $as_echo "$as_me:$LINENO: result: no" >&5
ea04106b 15051$as_echo "no" >&6; }
cae5b340
AX
15052 { $as_echo "$as_me:$LINENO: checking whether current->bio_list exists" >&5
15053$as_echo_n "checking whether current->bio_list exists... " >&6; }
ea04106b
AX
15054
15055
15056cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
15057/* confdefs.h. */
15058_ACEOF
15059cat confdefs.h >>conftest.$ac_ext
15060cat >>conftest.$ac_ext <<_ACEOF
15061/* end confdefs.h. */
ea04106b
AX
15062
15063
cae5b340 15064 #include <linux/sched.h>
ea04106b
AX
15065
15066int
15067main (void)
15068{
15069
cae5b340 15070 current->bio_list = (struct bio_list *) NULL;
ea04106b
AX
15071
15072 ;
15073 return 0;
15074}
15075
15076_ACEOF
15077
15078
15079
15080cat - <<_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
42f7b73b 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'
cae5b340 15090 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
15091 (eval $ac_try) 2>&5
15092 ac_status=$?
cae5b340
AX
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
ea04106b
AX
15096 (eval $ac_try) 2>&5
15097 ac_status=$?
cae5b340
AX
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
15104cat >>confdefs.h <<\_ACEOF
15105#define HAVE_CURRENT_BIO_LIST 1
15106_ACEOF
15107
15108
68d83c55
AX
15109else
15110 $as_echo "$as_me: failed program was:" >&5
15111sed 's/^/| /' conftest.$ac_ext >&5
cae5b340
AX
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
ea04106b 15119
ea04106b 15120
68d83c55 15121fi
cae5b340 15122
68d83c55 15123 rm -Rf build
ea04106b
AX
15124
15125
ea04106b 15126
ea04106b
AX
15127
15128
cae5b340 15129fi
ea04106b 15130
cae5b340 15131 rm -Rf build
68d83c55 15132
68d83c55 15133
ea04106b
AX
15134
15135
cae5b340
AX
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; }
ea04106b
AX
15138
15139
cae5b340
AX
15140cat confdefs.h - <<_ACEOF >conftest.c
15141/* confdefs.h. */
15142_ACEOF
15143cat confdefs.h >>conftest.$ac_ext
15144cat >>conftest.$ac_ext <<_ACEOF
15145/* end confdefs.h. */
68d83c55
AX
15146
15147
cae5b340
AX
15148 #include <linux/fs.h>
15149 #include <linux/user_namespace.h>
ea04106b
AX
15150
15151int
15152main (void)
15153{
15154
cae5b340
AX
15155 struct super_block super;
15156 super.s_user_ns = (struct user_namespace *)NULL;
ea04106b
AX
15157
15158 ;
15159 return 0;
15160}
15161
15162_ACEOF
15163
15164
15165
15166cat - <<_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
42f7b73b 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'
cae5b340 15176 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
15177 (eval $ac_try) 2>&5
15178 ac_status=$?
cae5b340
AX
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
ea04106b
AX
15182 (eval $ac_try) 2>&5
15183 ac_status=$?
cae5b340
AX
15184 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15185 (exit $ac_status); }; }; then
ea04106b 15186
cae5b340 15187 { $as_echo "$as_me:$LINENO: result: yes" >&5
68d83c55 15188$as_echo "yes" >&6; }
ea04106b 15189
cae5b340
AX
15190cat >>confdefs.h <<\_ACEOF
15191#define HAVE_SUPER_USER_NS 1
15192_ACEOF
ea04106b 15193
ea04106b 15194
cae5b340
AX
15195else
15196 $as_echo "$as_me: failed program was:" >&5
15197sed 's/^/| /' conftest.$ac_ext >&5
ea04106b 15198
cae5b340
AX
15199 { $as_echo "$as_me:$LINENO: result: no" >&5
15200$as_echo "no" >&6; }
ea04106b 15201
ea04106b 15202
ea04106b 15203
cae5b340 15204fi
ea04106b 15205
cae5b340 15206 rm -Rf build
ea04106b 15207
ea04106b
AX
15208
15209
15210
cae5b340
AX
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; }
ea04106b
AX
15213
15214
15215cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
15216/* confdefs.h. */
15217_ACEOF
15218cat confdefs.h >>conftest.$ac_ext
15219cat >>conftest.$ac_ext <<_ACEOF
15220/* end confdefs.h. */
ea04106b
AX
15221
15222
cae5b340 15223 #include <linux/bio.h>
ea04106b
AX
15224
15225int
15226main (void)
15227{
15228
cae5b340
AX
15229 blk_qc_t blk_qc;
15230 struct bio *bio = NULL;
15231 blk_qc = submit_bio(bio);
ea04106b
AX
15232
15233 ;
15234 return 0;
15235}
15236
15237_ACEOF
15238
15239
15240
15241cat - <<_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
42f7b73b 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'
cae5b340 15251 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
15252 (eval $ac_try) 2>&5
15253 ac_status=$?
cae5b340
AX
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
ea04106b
AX
15257 (eval $ac_try) 2>&5
15258 ac_status=$?
cae5b340
AX
15259 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15260 (exit $ac_status); }; }; then
ea04106b 15261
cae5b340 15262 { $as_echo "$as_me:$LINENO: result: yes" >&5
ea04106b
AX
15263$as_echo "yes" >&6; }
15264
cae5b340
AX
15265cat >>confdefs.h <<\_ACEOF
15266#define HAVE_1ARG_SUBMIT_BIO 1
15267_ACEOF
ea04106b
AX
15268
15269
15270else
15271 $as_echo "$as_me: failed program was:" >&5
15272sed 's/^/| /' conftest.$ac_ext >&5
15273
cae5b340 15274 { $as_echo "$as_me:$LINENO: result: no" >&5
ea04106b
AX
15275$as_echo "no" >&6; }
15276
15277
15278
15279fi
cae5b340 15280
ea04106b
AX
15281 rm -Rf build
15282
15283
15284
15285
cae5b340
AX
15286 { $as_echo "$as_me:$LINENO: checking block device operation prototypes" >&5
15287$as_echo_n "checking block device operation prototypes... " >&6; }
68d83c55
AX
15288 tmp_flags="$EXTRA_KCFLAGS"
15289 EXTRA_KCFLAGS="${NO_UNUSED_BUT_SET_VARIABLE}"
ea04106b
AX
15290
15291
15292cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
15293/* confdefs.h. */
15294_ACEOF
15295cat confdefs.h >>conftest.$ac_ext
15296cat >>conftest.$ac_ext <<_ACEOF
15297/* end confdefs.h. */
ea04106b
AX
15298
15299
68d83c55 15300 #include <linux/blkdev.h>
ea04106b 15301
cae5b340
AX
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
ea04106b
AX
15317int
15318main (void)
15319{
15320
ea04106b
AX
15321
15322 ;
15323 return 0;
15324}
15325
15326_ACEOF
15327
15328
15329
15330cat - <<_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
42f7b73b 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'
cae5b340 15340 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
15341 (eval $ac_try) 2>&5
15342 ac_status=$?
cae5b340
AX
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
ea04106b
AX
15346 (eval $ac_try) 2>&5
15347 ac_status=$?
cae5b340
AX
15348 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15349 (exit $ac_status); }; }; then
ea04106b 15350
cae5b340
AX
15351 { $as_echo "$as_me:$LINENO: result: struct block_device" >&5
15352$as_echo "struct block_device" >&6; }
ea04106b 15353
cae5b340
AX
15354cat >>confdefs.h <<\_ACEOF
15355#define HAVE_BDEV_BLOCK_DEVICE_OPERATIONS 1
15356_ACEOF
ea04106b
AX
15357
15358
15359else
15360 $as_echo "$as_me: failed program was:" >&5
15361sed 's/^/| /' conftest.$ac_ext >&5
15362
cae5b340
AX
15363 { $as_echo "$as_me:$LINENO: result: struct inode" >&5
15364$as_echo "struct inode" >&6; }
ea04106b
AX
15365
15366
15367
15368fi
cae5b340 15369
ea04106b
AX
15370 rm -Rf build
15371
15372
68d83c55 15373 EXTRA_KCFLAGS="$tmp_flags"
ea04106b
AX
15374
15375
cae5b340
AX
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; }
68d83c55
AX
15378 tmp_flags="$EXTRA_KCFLAGS"
15379 EXTRA_KCFLAGS="${NO_UNUSED_BUT_SET_VARIABLE}"
ea04106b
AX
15380
15381
15382cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
15383/* confdefs.h. */
15384_ACEOF
15385cat confdefs.h >>conftest.$ac_ext
15386cat >>conftest.$ac_ext <<_ACEOF
15387/* end confdefs.h. */
ea04106b
AX
15388
15389
68d83c55 15390 #include <linux/blkdev.h>
e10b0808 15391
cae5b340
AX
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
ea04106b
AX
15402int
15403main (void)
15404{
15405
ea04106b
AX
15406
15407 ;
15408 return 0;
15409}
15410
15411_ACEOF
15412
15413
15414
15415cat - <<_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
42f7b73b 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'
cae5b340 15425 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
15426 (eval $ac_try) 2>&5
15427 ac_status=$?
cae5b340
AX
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
ea04106b
AX
15431 (eval $ac_try) 2>&5
15432 ac_status=$?
cae5b340
AX
15433 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15434 (exit $ac_status); }; }; then
ea04106b 15435
cae5b340
AX
15436 { $as_echo "$as_me:$LINENO: result: void" >&5
15437$as_echo "void" >&6; }
ea04106b 15438
cae5b340
AX
15439cat >>confdefs.h <<\_ACEOF
15440#define HAVE_BLOCK_DEVICE_OPERATIONS_RELEASE_VOID 1
15441_ACEOF
ea04106b
AX
15442
15443
15444else
15445 $as_echo "$as_me: failed program was:" >&5
15446sed 's/^/| /' conftest.$ac_ext >&5
15447
cae5b340
AX
15448 { $as_echo "$as_me:$LINENO: result: int" >&5
15449$as_echo "int" >&6; }
ea04106b
AX
15450
15451
15452
15453fi
cae5b340 15454
ea04106b
AX
15455 rm -Rf build
15456
15457
68d83c55 15458 EXTRA_KCFLAGS="$tmp_flags"
ea04106b 15459
cae5b340
AX
15460 { $as_echo "$as_me:$LINENO: checking whether kernel defines fmode_t" >&5
15461$as_echo_n "checking whether kernel defines fmode_t... " >&6; }
ea04106b
AX
15462
15463
15464cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
15465/* confdefs.h. */
15466_ACEOF
15467cat confdefs.h >>conftest.$ac_ext
15468cat >>conftest.$ac_ext <<_ACEOF
15469/* end confdefs.h. */
ea04106b
AX
15470
15471
cae5b340 15472 #include <linux/types.h>
ea04106b 15473
ea04106b
AX
15474int
15475main (void)
15476{
15477
cae5b340 15478 fmode_t *ptr __attribute__ ((unused));
ea04106b
AX
15479
15480 ;
15481 return 0;
15482}
15483
15484_ACEOF
15485
15486
15487
15488cat - <<_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
42f7b73b 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'
cae5b340 15498 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
15499 (eval $ac_try) 2>&5
15500 ac_status=$?
cae5b340
AX
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
ea04106b
AX
15504 (eval $ac_try) 2>&5
15505 ac_status=$?
cae5b340
AX
15506 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15507 (exit $ac_status); }; }; then
ea04106b 15508
cae5b340 15509 { $as_echo "$as_me:$LINENO: result: yes" >&5
ea04106b
AX
15510$as_echo "yes" >&6; }
15511
cae5b340
AX
15512cat >>confdefs.h <<\_ACEOF
15513#define HAVE_FMODE_T 1
15514_ACEOF
ea04106b
AX
15515
15516
15517else
15518 $as_echo "$as_me: failed program was:" >&5
15519sed 's/^/| /' conftest.$ac_ext >&5
15520
cae5b340 15521 { $as_echo "$as_me:$LINENO: result: no" >&5
ea04106b
AX
15522$as_echo "no" >&6; }
15523
15524
15525
15526fi
cae5b340 15527
ea04106b
AX
15528 rm -Rf build
15529
15530
15531
15532
cae5b340
AX
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; }
ea04106b
AX
15535
15536
15537cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
15538/* confdefs.h. */
15539_ACEOF
15540cat confdefs.h >>conftest.$ac_ext
15541cat >>conftest.$ac_ext <<_ACEOF
15542/* end confdefs.h. */
ea04106b
AX
15543
15544
cae5b340 15545 #include <linux/fs.h>
ea04106b
AX
15546
15547int
15548main (void)
15549{
15550
cae5b340
AX
15551 struct block_device *bdev = NULL;
15552 (void) blkdev_get(bdev, 0, NULL);
ea04106b
AX
15553
15554 ;
15555 return 0;
15556}
15557
15558_ACEOF
15559
15560
15561
15562cat - <<_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
42f7b73b 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'
cae5b340 15572 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
15573 (eval $ac_try) 2>&5
15574 ac_status=$?
cae5b340
AX
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
ea04106b
AX
15578 (eval $ac_try) 2>&5
15579 ac_status=$?
cae5b340
AX
15580 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15581 (exit $ac_status); }; }; then
ea04106b 15582
cae5b340 15583 { $as_echo "$as_me:$LINENO: result: yes" >&5
ea04106b
AX
15584$as_echo "yes" >&6; }
15585
cae5b340
AX
15586cat >>confdefs.h <<\_ACEOF
15587#define HAVE_3ARG_BLKDEV_GET 1
15588_ACEOF
ea04106b
AX
15589
15590
15591else
15592 $as_echo "$as_me: failed program was:" >&5
15593sed 's/^/| /' conftest.$ac_ext >&5
15594
cae5b340 15595 { $as_echo "$as_me:$LINENO: result: no" >&5
ea04106b
AX
15596$as_echo "no" >&6; }
15597
15598
15599
15600fi
cae5b340 15601
ea04106b
AX
15602 rm -Rf build
15603
15604
15605
cae5b340
AX
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; }
ea04106b 15608
ea04106b
AX
15609
15610
15611cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
15612/* confdefs.h. */
15613_ACEOF
15614cat confdefs.h >>conftest.$ac_ext
15615cat >>conftest.$ac_ext <<_ACEOF
15616/* end confdefs.h. */
ea04106b
AX
15617
15618
cae5b340 15619 #include <linux/fs.h>
ea04106b
AX
15620
15621int
15622main (void)
15623{
15624
cae5b340 15625 blkdev_get_by_path(NULL, 0, NULL);
ea04106b
AX
15626
15627 ;
15628 return 0;
15629}
15630
15631_ACEOF
15632
15633
15634
15635cat - <<_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
42f7b73b 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'
cae5b340 15645 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
15646 (eval $ac_try) 2>&5
15647 ac_status=$?
cae5b340
AX
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
ea04106b
AX
15651 (eval $ac_try) 2>&5
15652 ac_status=$?
cae5b340
AX
15653 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15654 (exit $ac_status); }; }; then
15655 rc=0
15656else
15657 $as_echo "$as_me: failed program was:" >&5
15658sed 's/^/| /' conftest.$ac_ext >&5
15659 rc=1
ea04106b 15660
ea04106b 15661
cae5b340 15662fi
ea04106b 15663
cae5b340 15664 rm -Rf build
ea04106b 15665
ea04106b 15666
cae5b340
AX
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
ea04106b
AX
15702$as_echo "no" >&6; }
15703
cae5b340 15704 else :
ea04106b 15705
cae5b340
AX
15706 { $as_echo "$as_me:$LINENO: result: yes" >&5
15707$as_echo "yes" >&6; }
ea04106b 15708
cae5b340
AX
15709cat >>confdefs.h <<\_ACEOF
15710#define HAVE_BLKDEV_GET_BY_PATH 1
15711_ACEOF
ea04106b
AX
15712
15713
cae5b340
AX
15714 fi
15715 fi
15716
ea04106b 15717
cae5b340
AX
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; }
ea04106b 15720
ea04106b
AX
15721
15722
15723cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
15724/* confdefs.h. */
15725_ACEOF
15726cat confdefs.h >>conftest.$ac_ext
15727cat >>conftest.$ac_ext <<_ACEOF
15728/* end confdefs.h. */
ea04106b
AX
15729
15730
cae5b340 15731 #include <linux/fs.h>
ea04106b 15732
ea04106b
AX
15733int
15734main (void)
15735{
15736
cae5b340 15737 open_bdev_exclusive(NULL, 0, NULL);
ea04106b
AX
15738
15739 ;
15740 return 0;
15741}
15742
15743_ACEOF
15744
15745
15746
15747cat - <<_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
42f7b73b 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'
cae5b340 15757 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
15758 (eval $ac_try) 2>&5
15759 ac_status=$?
cae5b340
AX
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
ea04106b
AX
15763 (eval $ac_try) 2>&5
15764 ac_status=$?
cae5b340
AX
15765 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15766 (exit $ac_status); }; }; then
15767 rc=0
15768else
15769 $as_echo "$as_me: failed program was:" >&5
15770sed 's/^/| /' conftest.$ac_ext >&5
15771 rc=1
ea04106b 15772
e10b0808 15773
cae5b340
AX
15774fi
15775
15776 rm -Rf build
e10b0808 15777
ea04106b 15778
cae5b340
AX
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 :
ea04106b 15812
cae5b340 15813 { $as_echo "$as_me:$LINENO: result: no" >&5
e10b0808 15814$as_echo "no" >&6; }
ea04106b 15815
cae5b340 15816 else :
ea04106b 15817
cae5b340
AX
15818 { $as_echo "$as_me:$LINENO: result: yes" >&5
15819$as_echo "yes" >&6; }
ea04106b 15820
cae5b340
AX
15821cat >>confdefs.h <<\_ACEOF
15822#define HAVE_OPEN_BDEV_EXCLUSIVE 1
15823_ACEOF
ea04106b
AX
15824
15825
cae5b340
AX
15826 fi
15827 fi
15828
ea04106b 15829
cae5b340
AX
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; }
ea04106b 15832
ea04106b
AX
15833
15834
15835cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
15836/* confdefs.h. */
15837_ACEOF
15838cat confdefs.h >>conftest.$ac_ext
15839cat >>conftest.$ac_ext <<_ACEOF
15840/* end confdefs.h. */
ea04106b
AX
15841
15842
cae5b340 15843 #include <linux/fs.h>
ea04106b
AX
15844
15845int
15846main (void)
15847{
15848
cae5b340 15849 lookup_bdev(NULL);
ea04106b
AX
15850
15851 ;
15852 return 0;
15853}
15854
15855_ACEOF
15856
15857
15858
15859cat - <<_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
42f7b73b 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'
cae5b340 15869 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
15870 (eval $ac_try) 2>&5
15871 ac_status=$?
cae5b340
AX
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
ea04106b
AX
15875 (eval $ac_try) 2>&5
15876 ac_status=$?
cae5b340
AX
15877 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15878 (exit $ac_status); }; }; then
15879 rc=0
ea04106b
AX
15880else
15881 $as_echo "$as_me: failed program was:" >&5
15882sed 's/^/| /' conftest.$ac_ext >&5
cae5b340 15883 rc=1
ea04106b
AX
15884
15885
15886fi
cae5b340 15887
ea04106b
AX
15888 rm -Rf build
15889
15890
cae5b340 15891 if test $rc -ne 0; then :
ea04106b 15892
cae5b340
AX
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; }
ea04106b
AX
15897
15898
ea04106b 15899
e10b0808 15900cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
15901/* confdefs.h. */
15902_ACEOF
15903cat confdefs.h >>conftest.$ac_ext
15904cat >>conftest.$ac_ext <<_ACEOF
15905/* end confdefs.h. */
ea04106b 15906
ea04106b 15907
cae5b340 15908 #include <linux/fs.h>
ea04106b
AX
15909
15910int
15911main (void)
15912{
15913
cae5b340 15914 lookup_bdev(NULL, FMODE_READ);
87dac73d
AX
15915
15916 ;
15917 return 0;
15918}
15919
15920_ACEOF
15921
15922
15923
15924cat - <<_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
42f7b73b 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'
cae5b340 15934 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
87dac73d
AX
15935 (eval $ac_try) 2>&5
15936 ac_status=$?
cae5b340
AX
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
87dac73d
AX
15940 (eval $ac_try) 2>&5
15941 ac_status=$?
cae5b340
AX
15942 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15943 (exit $ac_status); }; }; then
15944 rc=0
15945else
15946 $as_echo "$as_me: failed program was:" >&5
15947sed 's/^/| /' conftest.$ac_ext >&5
15948 rc=1
87dac73d 15949
87dac73d 15950
cae5b340 15951fi
87dac73d 15952
cae5b340 15953 rm -Rf build
87dac73d 15954
87dac73d 15955
cae5b340
AX
15956 if test $rc -ne 0; then :
15957
15958 { $as_echo "$as_me:$LINENO: result: no" >&5
87dac73d
AX
15959$as_echo "no" >&6; }
15960
cae5b340
AX
15961 else
15962 if test "x$enable_linux_builtin" != xyes; then
87dac73d 15963
cae5b340
AX
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
87dac73d 15986
cae5b340
AX
15987 fi
15988 if test $rc -ne 0; then :
87dac73d 15989
cae5b340
AX
15990 { $as_echo "$as_me:$LINENO: result: no" >&5
15991$as_echo "no" >&6; }
87dac73d 15992
cae5b340 15993 else :
87dac73d 15994
cae5b340
AX
15995 { $as_echo "$as_me:$LINENO: result: yes" >&5
15996$as_echo "yes" >&6; }
15997
15998cat >>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; }
87dac73d 16040
87dac73d
AX
16041
16042
16043cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
16044/* confdefs.h. */
16045_ACEOF
16046cat confdefs.h >>conftest.$ac_ext
16047cat >>conftest.$ac_ext <<_ACEOF
16048/* end confdefs.h. */
87dac73d
AX
16049
16050
cae5b340 16051 #include <linux/fs.h>
87dac73d
AX
16052
16053int
16054main (void)
16055{
16056
cae5b340 16057 lookup_bdev(NULL, FMODE_READ);
87dac73d
AX
16058
16059 ;
16060 return 0;
16061}
16062
16063_ACEOF
16064
16065
16066
16067cat - <<_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
42f7b73b 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'
cae5b340 16077 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
87dac73d
AX
16078 (eval $ac_try) 2>&5
16079 ac_status=$?
cae5b340
AX
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
87dac73d
AX
16083 (eval $ac_try) 2>&5
16084 ac_status=$?
cae5b340
AX
16085 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16086 (exit $ac_status); }; }; then
16087 rc=0
16088else
16089 $as_echo "$as_me: failed program was:" >&5
16090sed 's/^/| /' conftest.$ac_ext >&5
16091 rc=1
87dac73d 16092
87dac73d 16093
cae5b340 16094fi
87dac73d 16095
cae5b340 16096 rm -Rf build
87dac73d 16097
68d83c55 16098
cae5b340
AX
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
68d83c55
AX
16134$as_echo "no" >&6; }
16135
cae5b340 16136 else :
68d83c55 16137
cae5b340
AX
16138 { $as_echo "$as_me:$LINENO: result: yes" >&5
16139$as_echo "yes" >&6; }
68d83c55 16140
cae5b340
AX
16141cat >>confdefs.h <<\_ACEOF
16142#define HAVE_2ARGS_LOOKUP_BDEV 1
16143_ACEOF
16144
16145
16146 fi
16147 fi
68d83c55
AX
16148
16149
cae5b340 16150 else :
68d83c55 16151
cae5b340
AX
16152 { $as_echo "$as_me:$LINENO: result: yes" >&5
16153$as_echo "yes" >&6; }
68d83c55 16154
cae5b340
AX
16155cat >>confdefs.h <<\_ACEOF
16156#define HAVE_1ARG_LOOKUP_BDEV 1
16157_ACEOF
87dac73d
AX
16158
16159
cae5b340
AX
16160 fi
16161 fi
87dac73d
AX
16162
16163
87dac73d 16164
cae5b340
AX
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; }
68d83c55 16167
cae5b340
AX
16168
16169cat confdefs.h - <<_ACEOF >conftest.c
16170/* confdefs.h. */
16171_ACEOF
16172cat confdefs.h >>conftest.$ac_ext
16173cat >>conftest.$ac_ext <<_ACEOF
16174/* end confdefs.h. */
16175
16176
16177 #include <linux/buffer_head.h>
87dac73d
AX
16178
16179int
16180main (void)
16181{
16182
cae5b340
AX
16183 struct block_device *bdev = NULL;
16184 invalidate_bdev(bdev);
87dac73d
AX
16185
16186 ;
16187 return 0;
16188}
16189
16190_ACEOF
16191
16192
16193
16194cat - <<_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
42f7b73b 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'
cae5b340 16204 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
87dac73d
AX
16205 (eval $ac_try) 2>&5
16206 ac_status=$?
cae5b340
AX
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
87dac73d
AX
16210 (eval $ac_try) 2>&5
16211 ac_status=$?
cae5b340
AX
16212 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16213 (exit $ac_status); }; }; then
87dac73d 16214
cae5b340 16215 { $as_echo "$as_me:$LINENO: result: yes" >&5
87dac73d
AX
16216$as_echo "yes" >&6; }
16217
cae5b340
AX
16218cat >>confdefs.h <<\_ACEOF
16219#define HAVE_1ARG_INVALIDATE_BDEV 1
16220_ACEOF
87dac73d
AX
16221
16222
16223else
16224 $as_echo "$as_me: failed program was:" >&5
16225sed 's/^/| /' conftest.$ac_ext >&5
16226
cae5b340 16227 { $as_echo "$as_me:$LINENO: result: no" >&5
87dac73d
AX
16228$as_echo "no" >&6; }
16229
16230
16231
16232fi
cae5b340 16233
87dac73d
AX
16234 rm -Rf build
16235
16236
16237
87dac73d 16238
cae5b340
AX
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}"
87dac73d 16243
87dac73d 16244
68d83c55 16245cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
16246/* confdefs.h. */
16247_ACEOF
16248cat confdefs.h >>conftest.$ac_ext
16249cat >>conftest.$ac_ext <<_ACEOF
16250/* end confdefs.h. */
87dac73d 16251
87dac73d 16252
cae5b340 16253 #include <linux/blkdev.h>
87dac73d
AX
16254
16255int
16256main (void)
16257{
16258
cae5b340
AX
16259 struct block_device *bdev = NULL;
16260 bdev_logical_block_size(bdev);
87dac73d
AX
16261
16262 ;
16263 return 0;
16264}
16265
16266_ACEOF
16267
16268
16269
16270cat - <<_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
42f7b73b 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'
cae5b340 16280 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
87dac73d
AX
16281 (eval $ac_try) 2>&5
16282 ac_status=$?
cae5b340
AX
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
87dac73d
AX
16286 (eval $ac_try) 2>&5
16287 ac_status=$?
cae5b340
AX
16288 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16289 (exit $ac_status); }; }; then
87dac73d 16290
cae5b340 16291 { $as_echo "$as_me:$LINENO: result: yes" >&5
87dac73d
AX
16292$as_echo "yes" >&6; }
16293
cae5b340
AX
16294cat >>confdefs.h <<\_ACEOF
16295#define HAVE_BDEV_LOGICAL_BLOCK_SIZE 1
16296_ACEOF
87dac73d
AX
16297
16298
68d83c55
AX
16299else
16300 $as_echo "$as_me: failed program was:" >&5
16301sed 's/^/| /' conftest.$ac_ext >&5
87dac73d 16302
cae5b340 16303 { $as_echo "$as_me:$LINENO: result: no" >&5
68d83c55 16304$as_echo "no" >&6; }
87dac73d 16305
87dac73d
AX
16306
16307
68d83c55 16308fi
cae5b340 16309
68d83c55 16310 rm -Rf build
87dac73d 16311
68d83c55 16312
cae5b340 16313 EXTRA_KCFLAGS="$tmp_flags"
68d83c55
AX
16314
16315
cae5b340
AX
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}"
68d83c55
AX
16320
16321
16322cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
16323/* confdefs.h. */
16324_ACEOF
16325cat confdefs.h >>conftest.$ac_ext
16326cat >>conftest.$ac_ext <<_ACEOF
16327/* end confdefs.h. */
68d83c55
AX
16328
16329
cae5b340 16330 #include <linux/blkdev.h>
87dac73d
AX
16331
16332int
16333main (void)
16334{
16335
cae5b340
AX
16336 struct block_device *bdev = NULL;
16337 bdev_physical_block_size(bdev);
87dac73d
AX
16338
16339 ;
16340 return 0;
16341}
16342
16343_ACEOF
16344
16345
16346
16347cat - <<_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
42f7b73b 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'
cae5b340 16357 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
87dac73d
AX
16358 (eval $ac_try) 2>&5
16359 ac_status=$?
cae5b340
AX
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
87dac73d
AX
16363 (eval $ac_try) 2>&5
16364 ac_status=$?
cae5b340
AX
16365 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16366 (exit $ac_status); }; }; then
87dac73d 16367
cae5b340 16368 { $as_echo "$as_me:$LINENO: result: yes" >&5
87dac73d
AX
16369$as_echo "yes" >&6; }
16370
cae5b340
AX
16371cat >>confdefs.h <<\_ACEOF
16372#define HAVE_BDEV_PHYSICAL_BLOCK_SIZE 1
16373_ACEOF
87dac73d
AX
16374
16375
16376else
16377 $as_echo "$as_me: failed program was:" >&5
16378sed 's/^/| /' conftest.$ac_ext >&5
16379
cae5b340 16380 { $as_echo "$as_me:$LINENO: result: no" >&5
87dac73d
AX
16381$as_echo "no" >&6; }
16382
16383
16384
16385fi
cae5b340 16386
87dac73d
AX
16387 rm -Rf build
16388
16389
cae5b340 16390 EXTRA_KCFLAGS="$tmp_flags"
87dac73d 16391
87dac73d 16392
cae5b340
AX
16393 { $as_echo "$as_me:$LINENO: checking whether bio has bi_iter" >&5
16394$as_echo_n "checking whether bio has bi_iter... " >&6; }
87dac73d
AX
16395
16396
16397cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
16398/* confdefs.h. */
16399_ACEOF
16400cat confdefs.h >>conftest.$ac_ext
16401cat >>conftest.$ac_ext <<_ACEOF
16402/* end confdefs.h. */
87dac73d
AX
16403
16404
cae5b340 16405 #include <linux/bio.h>
87dac73d
AX
16406
16407int
16408main (void)
16409{
16410
cae5b340
AX
16411 struct bio bio;
16412 bio.bi_iter.bi_sector = 0;
87dac73d
AX
16413
16414 ;
16415 return 0;
16416}
16417
16418_ACEOF
16419
16420
16421
16422cat - <<_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
42f7b73b 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'
cae5b340 16432 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
87dac73d
AX
16433 (eval $ac_try) 2>&5
16434 ac_status=$?
cae5b340
AX
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
87dac73d
AX
16438 (eval $ac_try) 2>&5
16439 ac_status=$?
cae5b340
AX
16440 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16441 (exit $ac_status); }; }; then
87dac73d 16442
cae5b340 16443 { $as_echo "$as_me:$LINENO: result: yes" >&5
87dac73d
AX
16444$as_echo "yes" >&6; }
16445
cae5b340
AX
16446cat >>confdefs.h <<\_ACEOF
16447#define HAVE_BIO_BVEC_ITER 1
16448_ACEOF
68d83c55
AX
16449
16450
cae5b340
AX
16451else
16452 $as_echo "$as_me: failed program was:" >&5
16453sed 's/^/| /' conftest.$ac_ext >&5
68d83c55 16454
cae5b340
AX
16455 { $as_echo "$as_me:$LINENO: result: no" >&5
16456$as_echo "no" >&6; }
68d83c55 16457
68d83c55
AX
16458
16459
cae5b340 16460fi
68d83c55 16461
cae5b340
AX
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
16471cat confdefs.h - <<_ACEOF >conftest.c
16472/* confdefs.h. */
16473_ACEOF
16474cat confdefs.h >>conftest.$ac_ext
16475cat >>conftest.$ac_ext <<_ACEOF
16476/* end confdefs.h. */
16477
16478
16479 #include <linux/bio.h>
68d83c55
AX
16480
16481int
16482main (void)
16483{
16484
cae5b340
AX
16485 int flags __attribute__ ((unused));
16486 flags = ((1 << BIO_RW_FAILFAST_DEV) |
16487 (1 << BIO_RW_FAILFAST_TRANSPORT) |
16488 (1 << BIO_RW_FAILFAST_DRIVER));
68d83c55
AX
16489
16490 ;
16491 return 0;
16492}
16493
16494_ACEOF
16495
16496
16497
16498cat - <<_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
42f7b73b 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'
cae5b340 16508 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
68d83c55
AX
16509 (eval $ac_try) 2>&5
16510 ac_status=$?
cae5b340
AX
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
68d83c55
AX
16514 (eval $ac_try) 2>&5
16515 ac_status=$?
cae5b340
AX
16516 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16517 (exit $ac_status); }; }; then
68d83c55 16518
cae5b340 16519 { $as_echo "$as_me:$LINENO: result: yes" >&5
68d83c55
AX
16520$as_echo "yes" >&6; }
16521
cae5b340
AX
16522cat >>confdefs.h <<\_ACEOF
16523#define HAVE_BIO_RW_FAILFAST_DTD 1
16524_ACEOF
87dac73d
AX
16525
16526
16527else
16528 $as_echo "$as_me: failed program was:" >&5
16529sed 's/^/| /' conftest.$ac_ext >&5
16530
cae5b340 16531 { $as_echo "$as_me:$LINENO: result: no" >&5
87dac73d
AX
16532$as_echo "no" >&6; }
16533
16534
16535
16536fi
cae5b340 16537
87dac73d
AX
16538 rm -Rf build
16539
16540
87dac73d 16541
87dac73d 16542
cae5b340
AX
16543 { $as_echo "$as_me:$LINENO: checking whether bio_set_dev() exists" >&5
16544$as_echo_n "checking whether bio_set_dev() exists... " >&6; }
87dac73d 16545
87dac73d 16546
cae5b340
AX
16547cat confdefs.h - <<_ACEOF >conftest.c
16548/* confdefs.h. */
16549_ACEOF
16550cat confdefs.h >>conftest.$ac_ext
16551cat >>conftest.$ac_ext <<_ACEOF
16552/* end confdefs.h. */
87dac73d 16553
87dac73d 16554
cae5b340
AX
16555 #include <linux/bio.h>
16556 #include <linux/fs.h>
68d83c55 16557
87dac73d
AX
16558int
16559main (void)
16560{
16561
cae5b340
AX
16562 struct block_device *bdev = NULL;
16563 struct bio *bio = NULL;
16564 bio_set_dev(bio, bdev);
87dac73d
AX
16565
16566 ;
16567 return 0;
16568}
16569
16570_ACEOF
16571
16572
16573
16574cat - <<_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
42f7b73b 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'
cae5b340 16584 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
87dac73d
AX
16585 (eval $ac_try) 2>&5
16586 ac_status=$?
cae5b340
AX
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
87dac73d
AX
16590 (eval $ac_try) 2>&5
16591 ac_status=$?
cae5b340
AX
16592 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16593 (exit $ac_status); }; }; then
87dac73d 16594
cae5b340 16595 { $as_echo "$as_me:$LINENO: result: yes" >&5
87dac73d
AX
16596$as_echo "yes" >&6; }
16597
cae5b340
AX
16598cat >>confdefs.h <<\_ACEOF
16599#define HAVE_BIO_SET_DEV 1
16600_ACEOF
87dac73d
AX
16601
16602
cae5b340
AX
16603else
16604 $as_echo "$as_me: failed program was:" >&5
16605sed 's/^/| /' conftest.$ac_ext >&5
87dac73d 16606
cae5b340
AX
16607 { $as_echo "$as_me:$LINENO: result: no" >&5
16608$as_echo "no" >&6; }
87dac73d 16609
87dac73d
AX
16610
16611
cae5b340 16612fi
68d83c55 16613
cae5b340
AX
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
16623cat confdefs.h - <<_ACEOF >conftest.c
16624/* confdefs.h. */
16625_ACEOF
16626cat confdefs.h >>conftest.$ac_ext
16627cat >>conftest.$ac_ext <<_ACEOF
16628/* end confdefs.h. */
16629
16630
16631 #include <linux/bio.h>
87dac73d
AX
16632
16633int
16634main (void)
16635{
16636
cae5b340
AX
16637 int flags __attribute__ ((unused));
16638 flags = REQ_FAILFAST_MASK;
87dac73d
AX
16639
16640 ;
16641 return 0;
16642}
16643
16644_ACEOF
16645
16646
16647
16648cat - <<_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
42f7b73b 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'
cae5b340 16658 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
87dac73d
AX
16659 (eval $ac_try) 2>&5
16660 ac_status=$?
cae5b340
AX
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
87dac73d
AX
16664 (eval $ac_try) 2>&5
16665 ac_status=$?
cae5b340
AX
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
16672cat >>confdefs.h <<\_ACEOF
16673#define HAVE_REQ_FAILFAST_MASK 1
16674_ACEOF
87dac73d 16675
68d83c55
AX
16676
16677else
16678 $as_echo "$as_me: failed program was:" >&5
16679sed 's/^/| /' conftest.$ac_ext >&5
16680
cae5b340
AX
16681 { $as_echo "$as_me:$LINENO: result: no" >&5
16682$as_echo "no" >&6; }
68d83c55
AX
16683
16684
16685
16686fi
cae5b340 16687
68d83c55
AX
16688 rm -Rf build
16689
87dac73d
AX
16690
16691
cae5b340
AX
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
16697cat confdefs.h - <<_ACEOF >conftest.c
16698/* confdefs.h. */
16699_ACEOF
16700cat confdefs.h >>conftest.$ac_ext
16701cat >>conftest.$ac_ext <<_ACEOF
16702/* end confdefs.h. */
16703
16704
16705 #include <linux/blk_types.h>
16706
16707int
16708main (void)
16709{
16710
16711 int op __attribute__ ((unused)) = REQ_OP_DISCARD;
16712
16713 ;
16714 return 0;
16715}
16716
16717_ACEOF
16718
16719
16720
16721cat - <<_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
42f7b73b 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'
cae5b340
AX
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
16745cat >>confdefs.h <<\_ACEOF
16746#define HAVE_REQ_OP_DISCARD 1
16747_ACEOF
16748
16749
87dac73d
AX
16750else
16751 $as_echo "$as_me: failed program was:" >&5
16752sed 's/^/| /' conftest.$ac_ext >&5
16753
cae5b340 16754 { $as_echo "$as_me:$LINENO: result: no" >&5
87dac73d
AX
16755$as_echo "no" >&6; }
16756
16757
16758
16759fi
87dac73d 16760
cae5b340 16761 rm -Rf build
87dac73d 16762
68d83c55 16763
87dac73d 16764
87dac73d 16765
cae5b340
AX
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; }
87dac73d
AX
16768
16769
16770cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
16771/* confdefs.h. */
16772_ACEOF
16773cat confdefs.h >>conftest.$ac_ext
16774cat >>conftest.$ac_ext <<_ACEOF
16775/* end confdefs.h. */
87dac73d
AX
16776
16777
cae5b340 16778 #include <linux/blk_types.h>
87dac73d
AX
16779
16780int
16781main (void)
16782{
16783
cae5b340 16784 int op __attribute__ ((unused)) = REQ_OP_SECURE_ERASE;
ea04106b
AX
16785
16786 ;
16787 return 0;
16788}
16789
16790_ACEOF
16791
16792
16793
16794cat - <<_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
42f7b73b 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'
cae5b340 16804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
16805 (eval $ac_try) 2>&5
16806 ac_status=$?
cae5b340
AX
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
ea04106b
AX
16810 (eval $ac_try) 2>&5
16811 ac_status=$?
cae5b340
AX
16812 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16813 (exit $ac_status); }; }; then
e10b0808 16814
cae5b340 16815 { $as_echo "$as_me:$LINENO: result: yes" >&5
68d83c55 16816$as_echo "yes" >&6; }
ea04106b 16817
cae5b340
AX
16818cat >>confdefs.h <<\_ACEOF
16819#define HAVE_REQ_OP_SECURE_ERASE 1
16820_ACEOF
ea04106b 16821
ea04106b 16822
68d83c55
AX
16823else
16824 $as_echo "$as_me: failed program was:" >&5
16825sed 's/^/| /' conftest.$ac_ext >&5
ea04106b 16826
cae5b340 16827 { $as_echo "$as_me:$LINENO: result: no" >&5
e10b0808 16828$as_echo "no" >&6; }
ea04106b
AX
16829
16830
ea04106b 16831
68d83c55 16832fi
cae5b340 16833
68d83c55 16834 rm -Rf build
ea04106b 16835
ea04106b
AX
16836
16837
e10b0808 16838
cae5b340
AX
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; }
ea04106b
AX
16841
16842
16843cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
16844/* confdefs.h. */
16845_ACEOF
16846cat confdefs.h >>conftest.$ac_ext
16847cat >>conftest.$ac_ext <<_ACEOF
16848/* end confdefs.h. */
ea04106b
AX
16849
16850
cae5b340 16851 #include <linux/blk_types.h>
ea04106b
AX
16852
16853int
16854main (void)
16855{
16856
cae5b340 16857 int op __attribute__ ((unused)) = REQ_OP_FLUSH;
ea04106b
AX
16858
16859 ;
16860 return 0;
16861}
16862
16863_ACEOF
16864
16865
16866
16867cat - <<_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
42f7b73b 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'
cae5b340 16877 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
16878 (eval $ac_try) 2>&5
16879 ac_status=$?
cae5b340
AX
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
ea04106b
AX
16883 (eval $ac_try) 2>&5
16884 ac_status=$?
cae5b340
AX
16885 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16886 (exit $ac_status); }; }; then
ea04106b 16887
cae5b340 16888 { $as_echo "$as_me:$LINENO: result: yes" >&5
ea04106b
AX
16889$as_echo "yes" >&6; }
16890
cae5b340
AX
16891cat >>confdefs.h <<\_ACEOF
16892#define HAVE_REQ_OP_FLUSH 1
16893_ACEOF
ea04106b
AX
16894
16895
16896else
16897 $as_echo "$as_me: failed program was:" >&5
16898sed 's/^/| /' conftest.$ac_ext >&5
16899
cae5b340 16900 { $as_echo "$as_me:$LINENO: result: no" >&5
ea04106b
AX
16901$as_echo "no" >&6; }
16902
16903
16904
16905fi
cae5b340 16906
ea04106b
AX
16907 rm -Rf build
16908
16909
ea04106b 16910
4d815aed 16911
cae5b340
AX
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; }
ea04106b
AX
16914
16915
16916cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
16917/* confdefs.h. */
16918_ACEOF
16919cat confdefs.h >>conftest.$ac_ext
16920cat >>conftest.$ac_ext <<_ACEOF
16921/* end confdefs.h. */
ea04106b
AX
16922
16923
cae5b340 16924 #include <linux/bio.h>
ea04106b
AX
16925
16926int
16927main (void)
16928{
16929
cae5b340
AX
16930 struct bio bio __attribute__ ((unused));
16931 bio.bi_opf = 0;
ea04106b
AX
16932
16933 ;
16934 return 0;
16935}
16936
16937_ACEOF
16938
16939
16940
16941cat - <<_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
42f7b73b 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'
cae5b340 16951 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
16952 (eval $ac_try) 2>&5
16953 ac_status=$?
cae5b340
AX
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
ea04106b
AX
16957 (eval $ac_try) 2>&5
16958 ac_status=$?
cae5b340
AX
16959 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16960 (exit $ac_status); }; }; then
ea04106b 16961
cae5b340 16962 { $as_echo "$as_me:$LINENO: result: yes" >&5
ea04106b
AX
16963$as_echo "yes" >&6; }
16964
cae5b340
AX
16965cat >>confdefs.h <<\_ACEOF
16966#define HAVE_BIO_BI_OPF 1
16967_ACEOF
ea04106b
AX
16968
16969
16970else
16971 $as_echo "$as_me: failed program was:" >&5
16972sed 's/^/| /' conftest.$ac_ext >&5
16973
cae5b340 16974 { $as_echo "$as_me:$LINENO: result: no" >&5
ea04106b
AX
16975$as_echo "no" >&6; }
16976
16977
16978
5eacc075 16979fi
cae5b340 16980
5eacc075
AX
16981 rm -Rf build
16982
16983
16984
16985
cae5b340
AX
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; }
5eacc075
AX
16988
16989
16990cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
16991/* confdefs.h. */
16992_ACEOF
16993cat confdefs.h >>conftest.$ac_ext
16994cat >>conftest.$ac_ext <<_ACEOF
16995/* end confdefs.h. */
5eacc075
AX
16996
16997
cae5b340
AX
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;
5eacc075
AX
17003
17004int
17005main (void)
17006{
17007
17008
17009 ;
17010 return 0;
17011}
17012
17013_ACEOF
17014
17015
17016
17017cat - <<_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
42f7b73b 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'
cae5b340 17027 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5eacc075
AX
17028 (eval $ac_try) 2>&5
17029 ac_status=$?
cae5b340
AX
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
5eacc075
AX
17033 (eval $ac_try) 2>&5
17034 ac_status=$?
cae5b340
AX
17035 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17036 (exit $ac_status); }; }; then
5eacc075 17037
cae5b340 17038 { $as_echo "$as_me:$LINENO: result: yes" >&5
5eacc075
AX
17039$as_echo "yes" >&6; }
17040
cae5b340
AX
17041cat >>confdefs.h <<\_ACEOF
17042#define HAVE_1ARG_BIO_END_IO_T 1
17043_ACEOF
5eacc075
AX
17044
17045
17046else
17047 $as_echo "$as_me: failed program was:" >&5
17048sed 's/^/| /' conftest.$ac_ext >&5
17049
cae5b340 17050 { $as_echo "$as_me:$LINENO: result: no" >&5
5eacc075
AX
17051$as_echo "no" >&6; }
17052
17053
17054
ea04106b 17055fi
cae5b340 17056
ea04106b
AX
17057 rm -Rf build
17058
17059
ea04106b
AX
17060
17061
cae5b340
AX
17062 { $as_echo "$as_me:$LINENO: checking whether bio->bi_status exists" >&5
17063$as_echo_n "checking whether bio->bi_status exists... " >&6; }
ea04106b
AX
17064
17065
17066cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
17067/* confdefs.h. */
17068_ACEOF
17069cat confdefs.h >>conftest.$ac_ext
17070cat >>conftest.$ac_ext <<_ACEOF
17071/* end confdefs.h. */
ea04106b
AX
17072
17073
cae5b340 17074 #include <linux/bio.h>
ea04106b
AX
17075
17076int
17077main (void)
17078{
17079
cae5b340
AX
17080 struct bio bio __attribute__ ((unused));
17081 blk_status_t status __attribute__ ((unused)) = BLK_STS_OK;
17082
17083 bio.bi_status = status;
ea04106b
AX
17084
17085 ;
17086 return 0;
17087}
17088
17089_ACEOF
17090
17091
17092
17093cat - <<_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
42f7b73b 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'
cae5b340 17103 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
17104 (eval $ac_try) 2>&5
17105 ac_status=$?
cae5b340
AX
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
ea04106b
AX
17109 (eval $ac_try) 2>&5
17110 ac_status=$?
cae5b340
AX
17111 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17112 (exit $ac_status); }; }; then
ea04106b 17113
cae5b340 17114 { $as_echo "$as_me:$LINENO: result: yes" >&5
ea04106b
AX
17115$as_echo "yes" >&6; }
17116
cae5b340
AX
17117cat >>confdefs.h <<\_ACEOF
17118#define HAVE_BIO_BI_STATUS 1
17119_ACEOF
ea04106b
AX
17120
17121
17122else
17123 $as_echo "$as_me: failed program was:" >&5
17124sed 's/^/| /' conftest.$ac_ext >&5
17125
cae5b340 17126 { $as_echo "$as_me:$LINENO: result: no" >&5
68d83c55 17127$as_echo "no" >&6; }
94a40997
AX
17128
17129
94a40997 17130
68d83c55 17131fi
cae5b340 17132
68d83c55
AX
17133 rm -Rf build
17134
17135
68d83c55 17136
94a40997 17137
cae5b340
AX
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; }
94a40997 17140
68d83c55
AX
17141
17142cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
17143/* confdefs.h. */
17144_ACEOF
17145cat confdefs.h >>conftest.$ac_ext
17146cat >>conftest.$ac_ext <<_ACEOF
17147/* end confdefs.h. */
68d83c55
AX
17148
17149
cae5b340 17150 #include <linux/bio.h>
94a40997
AX
17151
17152int
17153main (void)
17154{
17155
cae5b340
AX
17156 int flags __attribute__ ((unused));
17157 flags = BIO_RW_BARRIER;
94a40997
AX
17158
17159 ;
17160 return 0;
17161}
17162
17163_ACEOF
17164
17165
17166
17167cat - <<_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
42f7b73b 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'
cae5b340 17177 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
94a40997
AX
17178 (eval $ac_try) 2>&5
17179 ac_status=$?
cae5b340
AX
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
94a40997
AX
17183 (eval $ac_try) 2>&5
17184 ac_status=$?
cae5b340
AX
17185 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17186 (exit $ac_status); }; }; then
87dac73d 17187
cae5b340
AX
17188 { $as_echo "$as_me:$LINENO: result: yes" >&5
17189$as_echo "yes" >&6; }
87dac73d 17190
cae5b340
AX
17191cat >>confdefs.h <<\_ACEOF
17192#define HAVE_BIO_RW_BARRIER 1
17193_ACEOF
87dac73d 17194
87dac73d 17195
cae5b340
AX
17196else
17197 $as_echo "$as_me: failed program was:" >&5
17198sed 's/^/| /' conftest.$ac_ext >&5
87dac73d 17199
cae5b340 17200 { $as_echo "$as_me:$LINENO: result: no" >&5
68d83c55
AX
17201$as_echo "no" >&6; }
17202
68d83c55 17203
68d83c55 17204
cae5b340 17205fi
68d83c55 17206
cae5b340 17207 rm -Rf build
68d83c55 17208
87dac73d 17209
68d83c55
AX
17210
17211
cae5b340
AX
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; }
68d83c55
AX
17214
17215
17216cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
17217/* confdefs.h. */
17218_ACEOF
17219cat confdefs.h >>conftest.$ac_ext
17220cat >>conftest.$ac_ext <<_ACEOF
17221/* end confdefs.h. */
68d83c55
AX
17222
17223
cae5b340 17224 #include <linux/bio.h>
87dac73d
AX
17225
17226int
17227main (void)
17228{
17229
cae5b340
AX
17230 int flags __attribute__ ((unused));
17231 flags = BIO_RW_DISCARD;
87dac73d
AX
17232
17233 ;
17234 return 0;
17235}
17236
17237_ACEOF
17238
17239
17240
17241cat - <<_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
42f7b73b 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'
cae5b340 17251 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
87dac73d
AX
17252 (eval $ac_try) 2>&5
17253 ac_status=$?
cae5b340
AX
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
87dac73d
AX
17257 (eval $ac_try) 2>&5
17258 ac_status=$?
cae5b340
AX
17259 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17260 (exit $ac_status); }; }; then
87dac73d 17261
cae5b340 17262 { $as_echo "$as_me:$LINENO: result: yes" >&5
87dac73d
AX
17263$as_echo "yes" >&6; }
17264
cae5b340
AX
17265cat >>confdefs.h <<\_ACEOF
17266#define HAVE_BIO_RW_DISCARD 1
17267_ACEOF
87dac73d
AX
17268
17269
17270else
17271 $as_echo "$as_me: failed program was:" >&5
17272sed 's/^/| /' conftest.$ac_ext >&5
17273
cae5b340 17274 { $as_echo "$as_me:$LINENO: result: no" >&5
87dac73d 17275$as_echo "no" >&6; }
87dac73d
AX
17276
17277
68d83c55
AX
17278
17279fi
cae5b340 17280
68d83c55 17281 rm -Rf build
87dac73d
AX
17282
17283
87dac73d 17284
68d83c55 17285
cae5b340
AX
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; }
68d83c55
AX
17288
17289
17290cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
17291/* confdefs.h. */
17292_ACEOF
17293cat confdefs.h >>conftest.$ac_ext
17294cat >>conftest.$ac_ext <<_ACEOF
17295/* end confdefs.h. */
68d83c55
AX
17296
17297
cae5b340 17298 #include <linux/blkdev.h>
87dac73d
AX
17299
17300int
17301main (void)
17302{
17303
cae5b340
AX
17304 struct request_queue q;
17305 struct backing_dev_info bdi;
17306 q.backing_dev_info = &bdi;
87dac73d
AX
17307
17308 ;
17309 return 0;
17310}
17311
17312_ACEOF
17313
17314
17315
17316cat - <<_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
42f7b73b 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'
cae5b340 17326 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
87dac73d
AX
17327 (eval $ac_try) 2>&5
17328 ac_status=$?
cae5b340
AX
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
87dac73d
AX
17332 (eval $ac_try) 2>&5
17333 ac_status=$?
cae5b340
AX
17334 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17335 (exit $ac_status); }; }; then
87dac73d 17336
cae5b340 17337 { $as_echo "$as_me:$LINENO: result: yes" >&5
94a40997
AX
17338$as_echo "yes" >&6; }
17339
cae5b340
AX
17340cat >>confdefs.h <<\_ACEOF
17341#define HAVE_BLK_QUEUE_BDI_DYNAMIC 1
17342_ACEOF
94a40997
AX
17343
17344
17345else
17346 $as_echo "$as_me: failed program was:" >&5
17347sed 's/^/| /' conftest.$ac_ext >&5
17348
cae5b340 17349 { $as_echo "$as_me:$LINENO: result: no" >&5
68d83c55 17350$as_echo "no" >&6; }
87dac73d
AX
17351
17352
17353
17354fi
cae5b340 17355
87dac73d
AX
17356 rm -Rf build
17357
17358
17359
17360
42f7b73b
AX
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; }
4d815aed
AX
17363
17364
17365cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
17366/* confdefs.h. */
17367_ACEOF
17368cat confdefs.h >>conftest.$ac_ext
17369cat >>conftest.$ac_ext <<_ACEOF
17370/* end confdefs.h. */
4d815aed
AX
17371
17372
42f7b73b 17373 #include <linux/kernel.h>
68d83c55 17374 #include <linux/blkdev.h>
4d815aed
AX
17375
17376int
17377main (void)
17378{
17379
cae5b340 17380 struct request_queue *q = NULL;
42f7b73b 17381 blk_queue_flag_clear(0, q);
4d815aed
AX
17382
17383 ;
17384 return 0;
17385}
17386
17387_ACEOF
17388
17389
17390
17391cat - <<_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
42f7b73b 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'
cae5b340 17401 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4d815aed
AX
17402 (eval $ac_try) 2>&5
17403 ac_status=$?
cae5b340
AX
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
4d815aed
AX
17407 (eval $ac_try) 2>&5
17408 ac_status=$?
cae5b340
AX
17409 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17410 (exit $ac_status); }; }; then
4d815aed 17411
42f7b73b 17412
cae5b340 17413 { $as_echo "$as_me:$LINENO: result: yes" >&5
4d815aed
AX
17414$as_echo "yes" >&6; }
17415
cae5b340 17416cat >>confdefs.h <<\_ACEOF
42f7b73b 17417#define HAVE_BLK_QUEUE_FLAG_CLEAR 1
cae5b340 17418_ACEOF
ea04106b 17419
ea04106b 17420
42f7b73b
AX
17421else
17422 $as_echo "$as_me: failed program was:" >&5
17423sed 's/^/| /' conftest.$ac_ext >&5
17424
17425 { $as_echo "$as_me:$LINENO: result: no" >&5
17426$as_echo "no" >&6; }
17427
17428
17429
17430fi
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; }
ea04106b 17439
ea04106b 17440
68d83c55 17441cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
17442/* confdefs.h. */
17443_ACEOF
17444cat confdefs.h >>conftest.$ac_ext
17445cat >>conftest.$ac_ext <<_ACEOF
17446/* end confdefs.h. */
94a40997
AX
17447
17448
42f7b73b
AX
17449 #include <linux/kernel.h>
17450 #include <linux/blkdev.h>
94a40997
AX
17451
17452int
17453main (void)
17454{
17455
42f7b73b
AX
17456 struct request_queue *q = NULL;
17457 blk_queue_flag_set(0, q);
94a40997
AX
17458
17459 ;
17460 return 0;
17461}
17462
17463_ACEOF
17464
17465
17466
17467cat - <<_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
42f7b73b 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'
cae5b340 17477 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
94a40997
AX
17478 (eval $ac_try) 2>&5
17479 ac_status=$?
cae5b340
AX
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
94a40997
AX
17483 (eval $ac_try) 2>&5
17484 ac_status=$?
cae5b340
AX
17485 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17486 (exit $ac_status); }; }; then
17487
42f7b73b 17488 { $as_echo "$as_me:$LINENO: result: yes" >&5
94a40997
AX
17489$as_echo "yes" >&6; }
17490
cae5b340 17491cat >>confdefs.h <<\_ACEOF
42f7b73b 17492#define HAVE_BLK_QUEUE_FLAG_SET 1
cae5b340
AX
17493_ACEOF
17494
17495
94a40997
AX
17496else
17497 $as_echo "$as_me: failed program was:" >&5
17498sed 's/^/| /' conftest.$ac_ext >&5
17499
cae5b340 17500 { $as_echo "$as_me:$LINENO: result: no" >&5
94a40997 17501$as_echo "no" >&6; }
68d83c55
AX
17502
17503
17504
17505fi
68d83c55 17506
cae5b340 17507 rm -Rf build
68d83c55
AX
17508
17509
17510
42f7b73b
AX
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}"
4d815aed
AX
17516
17517
17518cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
17519/* confdefs.h. */
17520_ACEOF
17521cat confdefs.h >>conftest.$ac_ext
17522cat >>conftest.$ac_ext <<_ACEOF
17523/* end confdefs.h. */
4d815aed
AX
17524
17525
cae5b340 17526 #include <linux/blkdev.h>
4d815aed 17527
4d815aed
AX
17528int
17529main (void)
17530{
17531
cae5b340 17532 struct request_queue *q = NULL;
42f7b73b 17533 (void) blk_queue_flush(q, REQ_FLUSH);
4d815aed
AX
17534
17535 ;
17536 return 0;
17537}
17538
17539_ACEOF
17540
17541
17542
17543cat - <<_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
42f7b73b
AX
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
17567cat >>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
17576cat confdefs.h - <<_ACEOF >conftest.c
17577/* confdefs.h. */
17578_ACEOF
17579cat confdefs.h >>conftest.$ac_ext
17580cat >>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
17589int
17590main (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
17604cat - <<_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
17628else
17629 $as_echo "$as_me: failed program was:" >&5
17630sed 's/^/| /' conftest.$ac_ext >&5
17631
17632 { $as_echo "$as_me:$LINENO: result: yes" >&5
17633$as_echo "yes" >&6; }
17634
17635cat >>confdefs.h <<\_ACEOF
17636#define HAVE_BLK_QUEUE_FLUSH_GPL_ONLY 1
17637_ACEOF
17638
17639
17640
17641
17642fi
17643
17644 rm -Rf build
17645
17646
17647
17648else
17649 $as_echo "$as_me: failed program was:" >&5
17650sed 's/^/| /' conftest.$ac_ext >&5
17651
17652 { $as_echo "$as_me:$LINENO: result: no" >&5
17653$as_echo "no" >&6; }
17654
17655
17656
17657fi
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
17667cat confdefs.h - <<_ACEOF >conftest.c
17668/* confdefs.h. */
17669_ACEOF
17670cat confdefs.h >>conftest.$ac_ext
17671cat >>conftest.$ac_ext <<_ACEOF
17672/* end confdefs.h. */
17673
17674
17675 #include <linux/kernel.h>
17676 #include <linux/blkdev.h>
17677
17678
17679int
17680main (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
17694cat - <<_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'
cae5b340 17704 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4d815aed
AX
17705 (eval $ac_try) 2>&5
17706 ac_status=$?
cae5b340
AX
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
4d815aed
AX
17710 (eval $ac_try) 2>&5
17711 ac_status=$?
cae5b340
AX
17712 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17713 (exit $ac_status); }; }; then
4d815aed 17714
cae5b340 17715 { $as_echo "$as_me:$LINENO: result: yes" >&5
4d815aed
AX
17716$as_echo "yes" >&6; }
17717
cae5b340
AX
17718cat >>confdefs.h <<\_ACEOF
17719#define HAVE_BLK_QUEUE_WRITE_CACHE 1
17720_ACEOF
4d815aed
AX
17721
17722
cae5b340
AX
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; }
ea04106b
AX
17725
17726
17727cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
17728/* confdefs.h. */
17729_ACEOF
17730cat confdefs.h >>conftest.$ac_ext
17731cat >>conftest.$ac_ext <<_ACEOF
17732/* end confdefs.h. */
ea04106b
AX
17733
17734
cae5b340
AX
17735 #include <linux/kernel.h>
17736 #include <linux/module.h>
17737 #include <linux/blkdev.h>
e10b0808 17738
cae5b340 17739 MODULE_LICENSE("$ZFS_META_LICENSE");
ea04106b
AX
17740
17741int
17742main (void)
17743{
17744
cae5b340
AX
17745 struct request_queue *q = NULL;
17746 blk_queue_write_cache(q, true, true);
ea04106b
AX
17747
17748 ;
17749 return 0;
17750}
17751
17752_ACEOF
17753
17754
17755
17756cat - <<_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
42f7b73b 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'
cae5b340 17766 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
17767 (eval $ac_try) 2>&5
17768 ac_status=$?
cae5b340
AX
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
ea04106b
AX
17772 (eval $ac_try) 2>&5
17773 ac_status=$?
cae5b340
AX
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
17780else
17781 $as_echo "$as_me: failed program was:" >&5
17782sed 's/^/| /' conftest.$ac_ext >&5
ea04106b 17783
cae5b340 17784 { $as_echo "$as_me:$LINENO: result: yes" >&5
ea04106b
AX
17785$as_echo "yes" >&6; }
17786
cae5b340
AX
17787cat >>confdefs.h <<\_ACEOF
17788#define HAVE_BLK_QUEUE_WRITE_CACHE_GPL_ONLY 1
17789_ACEOF
17790
17791
17792
17793
17794fi
17795
17796 rm -Rf build
17797
ea04106b
AX
17798
17799
17800else
17801 $as_echo "$as_me: failed program was:" >&5
17802sed 's/^/| /' conftest.$ac_ext >&5
17803
cae5b340
AX
17804 { $as_echo "$as_me:$LINENO: result: no" >&5
17805$as_echo "no" >&6; }
94a40997
AX
17806
17807
94a40997 17808
cae5b340 17809fi
94a40997 17810
cae5b340
AX
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
17824cat confdefs.h - <<_ACEOF >conftest.c
17825/* confdefs.h. */
17826_ACEOF
17827cat confdefs.h >>conftest.$ac_ext
17828cat >>conftest.$ac_ext <<_ACEOF
17829/* end confdefs.h. */
94a40997 17830
cae5b340
AX
17831
17832 #include <linux/blkdev.h>
94a40997
AX
17833
17834int
17835main (void)
17836{
17837
cae5b340
AX
17838 struct request_queue *q = NULL;
17839 (void) blk_queue_max_hw_sectors(q, BLK_SAFE_MAX_SECTORS);
94a40997
AX
17840
17841 ;
17842 return 0;
17843}
17844
17845_ACEOF
17846
17847
17848
17849cat - <<_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
42f7b73b 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'
cae5b340 17859 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
94a40997
AX
17860 (eval $ac_try) 2>&5
17861 ac_status=$?
cae5b340
AX
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
94a40997
AX
17865 (eval $ac_try) 2>&5
17866 ac_status=$?
cae5b340
AX
17867 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17868 (exit $ac_status); }; }; then
94a40997 17869
cae5b340 17870 { $as_echo "$as_me:$LINENO: result: yes" >&5
94a40997
AX
17871$as_echo "yes" >&6; }
17872
cae5b340
AX
17873cat >>confdefs.h <<\_ACEOF
17874#define HAVE_BLK_QUEUE_MAX_HW_SECTORS 1
17875_ACEOF
94a40997
AX
17876
17877
17878else
17879 $as_echo "$as_me: failed program was:" >&5
17880sed 's/^/| /' conftest.$ac_ext >&5
17881
cae5b340 17882 { $as_echo "$as_me:$LINENO: result: no" >&5
4d815aed 17883$as_echo "no" >&6; }
4d815aed
AX
17884
17885
4d815aed 17886
cae5b340 17887fi
4d815aed 17888
cae5b340 17889 rm -Rf build
4d815aed 17890
cae5b340
AX
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
17901cat confdefs.h - <<_ACEOF >conftest.c
17902/* confdefs.h. */
17903_ACEOF
17904cat confdefs.h >>conftest.$ac_ext
17905cat >>conftest.$ac_ext <<_ACEOF
17906/* end confdefs.h. */
17907
17908
17909 #include <linux/blkdev.h>
4d815aed
AX
17910
17911int
17912main (void)
17913{
17914
cae5b340
AX
17915 struct request_queue *q = NULL;
17916 (void) blk_queue_max_segments(q, BLK_MAX_SEGMENTS);
4d815aed
AX
17917
17918 ;
17919 return 0;
17920}
17921
17922_ACEOF
17923
17924
17925
17926cat - <<_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
42f7b73b 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'
cae5b340 17936 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4d815aed
AX
17937 (eval $ac_try) 2>&5
17938 ac_status=$?
cae5b340
AX
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
4d815aed
AX
17942 (eval $ac_try) 2>&5
17943 ac_status=$?
cae5b340
AX
17944 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17945 (exit $ac_status); }; }; then
4d815aed 17946
cae5b340 17947 { $as_echo "$as_me:$LINENO: result: yes" >&5
4d815aed
AX
17948$as_echo "yes" >&6; }
17949
cae5b340
AX
17950cat >>confdefs.h <<\_ACEOF
17951#define HAVE_BLK_QUEUE_MAX_SEGMENTS 1
17952_ACEOF
4d815aed
AX
17953
17954
17955else
17956 $as_echo "$as_me: failed program was:" >&5
17957sed 's/^/| /' conftest.$ac_ext >&5
17958
cae5b340 17959 { $as_echo "$as_me:$LINENO: result: no" >&5
94a40997 17960$as_echo "no" >&6; }
4d815aed
AX
17961
17962
4d815aed 17963
cae5b340 17964fi
4d815aed 17965
cae5b340 17966 rm -Rf build
4d815aed 17967
cae5b340
AX
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
17978cat confdefs.h - <<_ACEOF >conftest.c
17979/* confdefs.h. */
17980_ACEOF
17981cat confdefs.h >>conftest.$ac_ext
17982cat >>conftest.$ac_ext <<_ACEOF
17983/* end confdefs.h. */
17984
17985
17986 #include <linux/blkdev.h>
4d815aed
AX
17987
17988int
17989main (void)
17990{
17991
cae5b340
AX
17992 extern enum bio_rw_flags rw;
17993
17994 rw = BIO_RW_UNPLUG;
4d815aed
AX
17995
17996 ;
17997 return 0;
17998}
17999
18000_ACEOF
18001
18002
18003
18004cat - <<_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
42f7b73b 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'
cae5b340 18014 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4d815aed
AX
18015 (eval $ac_try) 2>&5
18016 ac_status=$?
cae5b340
AX
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
4d815aed
AX
18020 (eval $ac_try) 2>&5
18021 ac_status=$?
cae5b340
AX
18022 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18023 (exit $ac_status); }; }; then
4d815aed 18024
cae5b340 18025 { $as_echo "$as_me:$LINENO: result: yes" >&5
4d815aed
AX
18026$as_echo "yes" >&6; }
18027
cae5b340
AX
18028cat >>confdefs.h <<\_ACEOF
18029#define HAVE_BLK_QUEUE_HAVE_BIO_RW_UNPLUG 1
18030_ACEOF
4d815aed
AX
18031
18032
18033else
18034 $as_echo "$as_me: failed program was:" >&5
18035sed 's/^/| /' conftest.$ac_ext >&5
18036
cae5b340
AX
18037 { $as_echo "$as_me:$LINENO: result: no" >&5
18038$as_echo "no" >&6; }
94a40997
AX
18039
18040
18041
18042fi
ea04106b 18043
ea04106b
AX
18044 rm -Rf build
18045
18046
cae5b340 18047 EXTRA_KCFLAGS="$tmp_flags"
ea04106b
AX
18048
18049
cae5b340
AX
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}"
ea04106b
AX
18054
18055
18056cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
18057/* confdefs.h. */
18058_ACEOF
18059cat confdefs.h >>conftest.$ac_ext
18060cat >>conftest.$ac_ext <<_ACEOF
18061/* end confdefs.h. */
ea04106b
AX
18062
18063
cae5b340 18064 #include <linux/blkdev.h>
ea04106b
AX
18065
18066int
18067main (void)
18068{
18069
cae5b340
AX
18070 struct blk_plug plug;
18071
18072 blk_start_plug(&plug);
18073 blk_finish_plug(&plug);
ea04106b
AX
18074
18075 ;
18076 return 0;
18077}
18078
18079_ACEOF
18080
18081
18082
18083cat - <<_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
42f7b73b 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'
cae5b340 18093 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
18094 (eval $ac_try) 2>&5
18095 ac_status=$?
cae5b340
AX
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
ea04106b
AX
18099 (eval $ac_try) 2>&5
18100 ac_status=$?
cae5b340
AX
18101 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18102 (exit $ac_status); }; }; then
ea04106b 18103
cae5b340 18104 { $as_echo "$as_me:$LINENO: result: yes" >&5
ea04106b
AX
18105$as_echo "yes" >&6; }
18106
cae5b340
AX
18107cat >>confdefs.h <<\_ACEOF
18108#define HAVE_BLK_QUEUE_HAVE_BLK_PLUG 1
18109_ACEOF
ea04106b
AX
18110
18111
18112else
18113 $as_echo "$as_me: failed program was:" >&5
18114sed 's/^/| /' conftest.$ac_ext >&5
18115
cae5b340
AX
18116 { $as_echo "$as_me:$LINENO: result: no" >&5
18117$as_echo "no" >&6; }
ea04106b
AX
18118
18119
ea04106b 18120
cae5b340 18121fi
ea04106b 18122
cae5b340 18123 rm -Rf build
68d83c55 18124
cae5b340
AX
18125
18126 EXTRA_KCFLAGS="$tmp_flags"
18127
42f7b73b
AX
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
18133cat confdefs.h - <<_ACEOF >conftest.c
18134/* confdefs.h. */
18135_ACEOF
18136cat confdefs.h >>conftest.$ac_ext
18137cat >>conftest.$ac_ext <<_ACEOF
18138/* end confdefs.h. */
18139
18140
18141 #include <linux/genhd.h>
18142
18143int
18144main (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
18158cat - <<_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
18179else
18180 $as_echo "$as_me: failed program was:" >&5
18181sed 's/^/| /' conftest.$ac_ext >&5
18182 rc=1
18183
18184
18185fi
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
18232cat >>confdefs.h <<\_ACEOF
18233#define HAVE_GET_DISK_AND_MODULE 1
18234_ACEOF
18235
18236
18237 fi
18238 fi
18239
18240
cae5b340
AX
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
18248cat confdefs.h - <<_ACEOF >conftest.c
18249/* confdefs.h. */
18250_ACEOF
18251cat confdefs.h >>conftest.$ac_ext
18252cat >>conftest.$ac_ext <<_ACEOF
18253/* end confdefs.h. */
18254
18255
18256 #include <linux/blkdev.h>
ea04106b
AX
18257
18258int
18259main (void)
18260{
18261
cae5b340
AX
18262 struct gendisk *disk = NULL;
18263 (void) get_disk_ro(disk);
ea04106b
AX
18264
18265 ;
18266 return 0;
18267}
18268
18269_ACEOF
18270
18271
18272
18273cat - <<_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
42f7b73b 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'
cae5b340 18283 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
18284 (eval $ac_try) 2>&5
18285 ac_status=$?
cae5b340
AX
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
ea04106b
AX
18289 (eval $ac_try) 2>&5
18290 ac_status=$?
cae5b340
AX
18291 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18292 (exit $ac_status); }; }; then
ea04106b 18293
cae5b340 18294 { $as_echo "$as_me:$LINENO: result: yes" >&5
ea04106b
AX
18295$as_echo "yes" >&6; }
18296
cae5b340
AX
18297cat >>confdefs.h <<\_ACEOF
18298#define HAVE_GET_DISK_RO 1
18299_ACEOF
ea04106b
AX
18300
18301
18302else
18303 $as_echo "$as_me: failed program was:" >&5
18304sed 's/^/| /' conftest.$ac_ext >&5
18305
cae5b340 18306 { $as_echo "$as_me:$LINENO: result: no" >&5
68d83c55 18307$as_echo "no" >&6; }
ea04106b
AX
18308
18309
ea04106b 18310
cae5b340 18311fi
ea04106b 18312
cae5b340 18313 rm -Rf build
68d83c55 18314
cae5b340
AX
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
18323cat confdefs.h - <<_ACEOF >conftest.c
18324/* confdefs.h. */
18325_ACEOF
18326cat confdefs.h >>conftest.$ac_ext
18327cat >>conftest.$ac_ext <<_ACEOF
18328/* end confdefs.h. */
18329
18330
18331 #include <linux/genhd.h>
ea04106b
AX
18332
18333int
18334main (void)
18335{
18336
cae5b340 18337 get_gendisk(0, NULL);
ea04106b
AX
18338
18339 ;
18340 return 0;
18341}
18342
18343_ACEOF
18344
18345
18346
18347cat - <<_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
42f7b73b 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'
cae5b340 18357 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
18358 (eval $ac_try) 2>&5
18359 ac_status=$?
cae5b340
AX
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
ea04106b
AX
18363 (eval $ac_try) 2>&5
18364 ac_status=$?
cae5b340
AX
18365 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18366 (exit $ac_status); }; }; then
18367 rc=0
18368else
18369 $as_echo "$as_me: failed program was:" >&5
18370sed 's/^/| /' conftest.$ac_ext >&5
18371 rc=1
ea04106b 18372
ea04106b 18373
cae5b340
AX
18374fi
18375
18376 rm -Rf build
ea04106b
AX
18377
18378
cae5b340 18379 if test $rc -ne 0; then :
ea04106b 18380
cae5b340 18381 { $as_echo "$as_me:$LINENO: result: no" >&5
ea04106b 18382$as_echo "no" >&6; }
ea04106b 18383
cae5b340
AX
18384 else
18385 if test "x$enable_linux_builtin" != xyes; then
ea04106b 18386
cae5b340
AX
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
ea04106b 18409
cae5b340
AX
18410 fi
18411 if test $rc -ne 0; then :
ea04106b 18412
cae5b340
AX
18413 { $as_echo "$as_me:$LINENO: result: no" >&5
18414$as_echo "no" >&6; }
68d83c55 18415
cae5b340
AX
18416 else :
18417
18418 { $as_echo "$as_me:$LINENO: result: yes" >&5
18419$as_echo "yes" >&6; }
18420
18421cat >>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
18435cat confdefs.h - <<_ACEOF >conftest.c
18436/* confdefs.h. */
18437_ACEOF
18438cat confdefs.h >>conftest.$ac_ext
18439cat >>conftest.$ac_ext <<_ACEOF
18440/* end confdefs.h. */
18441
18442
18443 #include <linux/bio.h>
ea04106b
AX
18444
18445int
18446main (void)
18447{
18448
cae5b340
AX
18449 struct bio *bio __attribute__ ((unused)) = NULL;
18450
18451 bio_set_op_attrs(bio, 0, 0);
ea04106b
AX
18452
18453 ;
18454 return 0;
18455}
18456
18457_ACEOF
18458
18459
18460
18461cat - <<_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
42f7b73b 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'
cae5b340 18471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
18472 (eval $ac_try) 2>&5
18473 ac_status=$?
cae5b340
AX
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
ea04106b
AX
18477 (eval $ac_try) 2>&5
18478 ac_status=$?
cae5b340
AX
18479 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18480 (exit $ac_status); }; }; then
ea04106b 18481
cae5b340 18482 { $as_echo "$as_me:$LINENO: result: yes" >&5
ea04106b
AX
18483$as_echo "yes" >&6; }
18484
cae5b340
AX
18485cat >>confdefs.h <<\_ACEOF
18486#define HAVE_BIO_SET_OP_ATTRS 1
18487_ACEOF
ea04106b
AX
18488
18489
18490else
18491 $as_echo "$as_me: failed program was:" >&5
18492sed 's/^/| /' conftest.$ac_ext >&5
18493
cae5b340
AX
18494 { $as_echo "$as_me:$LINENO: result: no" >&5
18495$as_echo "no" >&6; }
68d83c55
AX
18496
18497
18498
18499fi
68d83c55 18500
68d83c55
AX
18501 rm -Rf build
18502
18503
18504
18505
cae5b340
AX
18506 { $as_echo "$as_me:$LINENO: checking whether generic_readlink is global" >&5
18507$as_echo_n "checking whether generic_readlink is global... " >&6; }
ea04106b
AX
18508
18509
18510cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
18511/* confdefs.h. */
18512_ACEOF
18513cat confdefs.h >>conftest.$ac_ext
18514cat >>conftest.$ac_ext <<_ACEOF
18515/* end confdefs.h. */
ea04106b
AX
18516
18517
cae5b340 18518 #include <linux/fs.h>
ea04106b
AX
18519
18520int
18521main (void)
18522{
18523
cae5b340
AX
18524 int i __attribute__ ((unused));
18525
18526 i = generic_readlink(NULL, NULL, 0);
ea04106b
AX
18527
18528 ;
18529 return 0;
18530}
18531
18532_ACEOF
18533
18534
18535
18536cat - <<_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
42f7b73b 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'
cae5b340 18546 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
18547 (eval $ac_try) 2>&5
18548 ac_status=$?
cae5b340
AX
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
ea04106b
AX
18552 (eval $ac_try) 2>&5
18553 ac_status=$?
cae5b340
AX
18554 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18555 (exit $ac_status); }; }; then
ea04106b 18556
cae5b340 18557 { $as_echo "$as_me:$LINENO: result: yes" >&5
ea04106b
AX
18558$as_echo "yes" >&6; }
18559
cae5b340
AX
18560cat >>confdefs.h <<\_ACEOF
18561#define HAVE_GENERIC_READLINK 1
18562_ACEOF
ea04106b 18563
ea04106b 18564
68d83c55
AX
18565else
18566 $as_echo "$as_me: failed program was:" >&5
18567sed 's/^/| /' conftest.$ac_ext >&5
ea04106b 18568
cae5b340 18569 { $as_echo "$as_me:$LINENO: result: no" >&5
68d83c55 18570$as_echo "no" >&6; }
ea04106b
AX
18571
18572
ea04106b 18573
cae5b340 18574fi
ea04106b 18575
cae5b340 18576 rm -Rf build
68d83c55 18577
cae5b340
AX
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
18585cat confdefs.h - <<_ACEOF >conftest.c
18586/* confdefs.h. */
18587_ACEOF
18588cat confdefs.h >>conftest.$ac_ext
18589cat >>conftest.$ac_ext <<_ACEOF
18590/* end confdefs.h. */
18591
18592
18593 #include <linux/blkdev.h>
ea04106b
AX
18594
18595int
18596main (void)
18597{
18598
cae5b340
AX
18599 struct queue_limits ql __attribute__ ((unused));
18600
18601 ql.discard_granularity = 0;
ea04106b
AX
18602
18603 ;
18604 return 0;
18605}
18606
18607_ACEOF
18608
18609
18610
18611cat - <<_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
42f7b73b 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'
cae5b340 18621 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
18622 (eval $ac_try) 2>&5
18623 ac_status=$?
cae5b340
AX
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
ea04106b
AX
18627 (eval $ac_try) 2>&5
18628 ac_status=$?
cae5b340
AX
18629 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18630 (exit $ac_status); }; }; then
ea04106b 18631
cae5b340 18632 { $as_echo "$as_me:$LINENO: result: yes" >&5
ea04106b
AX
18633$as_echo "yes" >&6; }
18634
cae5b340
AX
18635cat >>confdefs.h <<\_ACEOF
18636#define HAVE_DISCARD_GRANULARITY 1
18637_ACEOF
ea04106b
AX
18638
18639
18640else
18641 $as_echo "$as_me: failed program was:" >&5
18642sed 's/^/| /' conftest.$ac_ext >&5
18643
cae5b340 18644 { $as_echo "$as_me:$LINENO: result: no" >&5
ea04106b 18645$as_echo "no" >&6; }
cae5b340
AX
18646
18647
18648
18649fi
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; }
ea04106b
AX
18658
18659
18660cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
18661/* confdefs.h. */
18662_ACEOF
18663cat confdefs.h >>conftest.$ac_ext
18664cat >>conftest.$ac_ext <<_ACEOF
18665/* end confdefs.h. */
ea04106b
AX
18666
18667
cae5b340
AX
18668 #include <linux/fs.h>
18669 #include <linux/xattr.h>
68d83c55 18670
cae5b340
AX
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 };
ea04106b
AX
18684
18685int
18686main (void)
18687{
18688
ea04106b
AX
18689
18690 ;
18691 return 0;
18692}
18693
18694_ACEOF
18695
18696
18697
18698cat - <<_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
42f7b73b 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'
cae5b340 18708 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
18709 (eval $ac_try) 2>&5
18710 ac_status=$?
cae5b340
AX
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
ea04106b
AX
18714 (eval $ac_try) 2>&5
18715 ac_status=$?
cae5b340
AX
18716 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18717 (exit $ac_status); }; }; then
ea04106b 18718
cae5b340 18719 { $as_echo "$as_me:$LINENO: result: yes" >&5
ea04106b
AX
18720$as_echo "yes" >&6; }
18721
cae5b340
AX
18722cat >>confdefs.h <<\_ACEOF
18723#define HAVE_CONST_XATTR_HANDLER 1
18724_ACEOF
ea04106b
AX
18725
18726
18727else
18728 $as_echo "$as_me: failed program was:" >&5
18729sed 's/^/| /' conftest.$ac_ext >&5
18730
cae5b340 18731 { $as_echo "$as_me:$LINENO: result: no" >&5
ea04106b 18732$as_echo "no" >&6; }
cae5b340
AX
18733
18734
18735
18736fi
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; }
ea04106b
AX
18745
18746
18747cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
18748/* confdefs.h. */
18749_ACEOF
18750cat confdefs.h >>conftest.$ac_ext
18751cat >>conftest.$ac_ext <<_ACEOF
18752/* end confdefs.h. */
ea04106b
AX
18753
18754
cae5b340 18755 #include <linux/xattr.h>
68d83c55 18756
cae5b340
AX
18757 static const struct xattr_handler
18758 xops __attribute__ ((unused)) = {
18759 .name = XATTR_NAME_POSIX_ACL_ACCESS,
18760 };
ea04106b
AX
18761
18762int
18763main (void)
18764{
18765
ea04106b
AX
18766
18767 ;
18768 return 0;
18769}
18770
18771_ACEOF
18772
18773
18774
18775cat - <<_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
42f7b73b 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'
cae5b340 18785 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
18786 (eval $ac_try) 2>&5
18787 ac_status=$?
cae5b340
AX
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
ea04106b
AX
18791 (eval $ac_try) 2>&5
18792 ac_status=$?
cae5b340
AX
18793 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18794 (exit $ac_status); }; }; then
ea04106b 18795
cae5b340 18796 { $as_echo "$as_me:$LINENO: result: yes" >&5
ea04106b
AX
18797$as_echo "yes" >&6; }
18798
cae5b340
AX
18799cat >>confdefs.h <<\_ACEOF
18800#define HAVE_XATTR_HANDLER_NAME 1
18801_ACEOF
ea04106b
AX
18802
18803
18804else
18805 $as_echo "$as_me: failed program was:" >&5
18806sed 's/^/| /' conftest.$ac_ext >&5
18807
cae5b340
AX
18808 { $as_echo "$as_me:$LINENO: result: no" >&5
18809$as_echo "no" >&6; }
68d83c55
AX
18810
18811
18812
18813fi
68d83c55 18814
68d83c55
AX
18815 rm -Rf build
18816
18817
18818
18819
cae5b340
AX
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; }
ea04106b
AX
18822
18823
18824cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
18825/* confdefs.h. */
18826_ACEOF
18827cat confdefs.h >>conftest.$ac_ext
18828cat >>conftest.$ac_ext <<_ACEOF
18829/* end confdefs.h. */
ea04106b
AX
18830
18831
cae5b340
AX
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 };
ea04106b
AX
18841
18842int
18843main (void)
18844{
18845
ea04106b
AX
18846
18847 ;
18848 return 0;
18849}
18850
18851_ACEOF
18852
18853
18854
18855cat - <<_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
42f7b73b 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'
cae5b340 18865 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
18866 (eval $ac_try) 2>&5
18867 ac_status=$?
cae5b340
AX
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
ea04106b
AX
18871 (eval $ac_try) 2>&5
18872 ac_status=$?
cae5b340
AX
18873 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18874 (exit $ac_status); }; }; then
ea04106b 18875
cae5b340 18876 { $as_echo "$as_me:$LINENO: result: yes" >&5
e10b0808 18877$as_echo "yes" >&6; }
ea04106b 18878
cae5b340
AX
18879cat >>confdefs.h <<\_ACEOF
18880#define HAVE_XATTR_GET_DENTRY_INODE 1
18881_ACEOF
ea04106b
AX
18882
18883
e10b0808
AX
18884else
18885 $as_echo "$as_me: failed program was:" >&5
18886sed 's/^/| /' conftest.$ac_ext >&5
ea04106b 18887
cae5b340 18888 { $as_echo "$as_me:$LINENO: result: no" >&5
ea04106b 18889$as_echo "no" >&6; }
cae5b340
AX
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; }
ea04106b
AX
18892
18893
e10b0808 18894cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
18895/* confdefs.h. */
18896_ACEOF
18897cat confdefs.h >>conftest.$ac_ext
18898cat >>conftest.$ac_ext <<_ACEOF
18899/* end confdefs.h. */
ea04106b
AX
18900
18901
cae5b340
AX
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 };
ea04106b
AX
18911
18912int
18913main (void)
18914{
18915
ea04106b
AX
18916
18917 ;
18918 return 0;
18919}
18920
18921_ACEOF
18922
18923
18924
18925cat - <<_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
42f7b73b 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'
cae5b340 18935 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
18936 (eval $ac_try) 2>&5
18937 ac_status=$?
cae5b340
AX
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
ea04106b
AX
18941 (eval $ac_try) 2>&5
18942 ac_status=$?
cae5b340
AX
18943 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18944 (exit $ac_status); }; }; then
ea04106b 18945
cae5b340 18946 { $as_echo "$as_me:$LINENO: result: yes" >&5
ea04106b
AX
18947$as_echo "yes" >&6; }
18948
cae5b340
AX
18949cat >>confdefs.h <<\_ACEOF
18950#define HAVE_XATTR_GET_HANDLER 1
18951_ACEOF
ea04106b
AX
18952
18953
18954else
18955 $as_echo "$as_me: failed program was:" >&5
18956sed 's/^/| /' conftest.$ac_ext >&5
18957
cae5b340
AX
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; }
68d83c55
AX
18962
18963
18964cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
18965/* confdefs.h. */
18966_ACEOF
18967cat confdefs.h >>conftest.$ac_ext
18968cat >>conftest.$ac_ext <<_ACEOF
18969/* end confdefs.h. */
e10b0808 18970
68d83c55 18971
cae5b340
AX
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 };
ea04106b
AX
18981
18982int
18983main (void)
18984{
18985
ea04106b
AX
18986
18987 ;
18988 return 0;
18989}
18990
18991_ACEOF
18992
18993
18994
18995cat - <<_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
42f7b73b 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'
cae5b340 19005 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
19006 (eval $ac_try) 2>&5
19007 ac_status=$?
cae5b340
AX
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
ea04106b
AX
19011 (eval $ac_try) 2>&5
19012 ac_status=$?
cae5b340
AX
19013 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19014 (exit $ac_status); }; }; then
ea04106b 19015
cae5b340 19016 { $as_echo "$as_me:$LINENO: result: yes" >&5
ea04106b
AX
19017$as_echo "yes" >&6; }
19018
cae5b340
AX
19019cat >>confdefs.h <<\_ACEOF
19020#define HAVE_XATTR_GET_DENTRY 1
19021_ACEOF
ea04106b
AX
19022
19023
19024else
19025 $as_echo "$as_me: failed program was:" >&5
19026sed 's/^/| /' conftest.$ac_ext >&5
19027
cae5b340 19028 { $as_echo "$as_me:$LINENO: result: no" >&5
ea04106b 19029$as_echo "no" >&6; }
cae5b340
AX
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; }
ea04106b
AX
19032
19033
19034cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
19035/* confdefs.h. */
19036_ACEOF
19037cat confdefs.h >>conftest.$ac_ext
19038cat >>conftest.$ac_ext <<_ACEOF
19039/* end confdefs.h. */
ea04106b
AX
19040
19041
cae5b340
AX
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 };
ea04106b
AX
19050
19051int
19052main (void)
19053{
19054
ea04106b
AX
19055
19056 ;
19057 return 0;
19058}
19059
19060_ACEOF
19061
19062
19063
19064cat - <<_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
42f7b73b 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'
cae5b340 19074 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
19075 (eval $ac_try) 2>&5
19076 ac_status=$?
cae5b340
AX
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
ea04106b
AX
19080 (eval $ac_try) 2>&5
19081 ac_status=$?
cae5b340
AX
19082 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19083 (exit $ac_status); }; }; then
ea04106b 19084
cae5b340 19085 { $as_echo "$as_me:$LINENO: result: yes" >&5
ea04106b
AX
19086$as_echo "yes" >&6; }
19087
cae5b340
AX
19088cat >>confdefs.h <<\_ACEOF
19089#define HAVE_XATTR_GET_INODE 1
19090_ACEOF
ea04106b
AX
19091
19092
19093else
19094 $as_echo "$as_me: failed program was:" >&5
19095sed 's/^/| /' conftest.$ac_ext >&5
19096
cae5b340
AX
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; }; }
ea04106b
AX
19100
19101
19102
19103fi
ea04106b 19104
cae5b340 19105 rm -Rf build
ea04106b 19106
ea04106b 19107
ea04106b 19108
ea04106b
AX
19109
19110
cae5b340 19111fi
ea04106b 19112
cae5b340 19113 rm -Rf build
ea04106b 19114
ea04106b
AX
19115
19116
ea04106b 19117
68d83c55 19118
cae5b340 19119fi
68d83c55 19120
cae5b340 19121 rm -Rf build
ea04106b 19122
e10b0808
AX
19123
19124
68d83c55
AX
19125
19126
19127fi
cae5b340 19128
68d83c55
AX
19129 rm -Rf build
19130
19131
19132
19133
cae5b340
AX
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; }
68d83c55
AX
19136
19137
19138cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
19139/* confdefs.h. */
19140_ACEOF
19141cat confdefs.h >>conftest.$ac_ext
19142cat >>conftest.$ac_ext <<_ACEOF
19143/* end confdefs.h. */
68d83c55
AX
19144
19145
cae5b340 19146 #include <linux/xattr.h>
68d83c55 19147
cae5b340
AX
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 };
68d83c55
AX
19157
19158int
19159main (void)
19160{
19161
68d83c55
AX
19162
19163 ;
19164 return 0;
19165}
19166
19167_ACEOF
19168
19169
19170
19171cat - <<_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
42f7b73b 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'
cae5b340 19181 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
68d83c55
AX
19182 (eval $ac_try) 2>&5
19183 ac_status=$?
cae5b340
AX
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
68d83c55
AX
19187 (eval $ac_try) 2>&5
19188 ac_status=$?
cae5b340
AX
19189 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19190 (exit $ac_status); }; }; then
68d83c55 19191
cae5b340 19192 { $as_echo "$as_me:$LINENO: result: yes" >&5
68d83c55
AX
19193$as_echo "yes" >&6; }
19194
cae5b340
AX
19195cat >>confdefs.h <<\_ACEOF
19196#define HAVE_XATTR_SET_DENTRY_INODE 1
19197_ACEOF
ea04106b
AX
19198
19199
19200else
19201 $as_echo "$as_me: failed program was:" >&5
19202sed 's/^/| /' conftest.$ac_ext >&5
19203
cae5b340 19204 { $as_echo "$as_me:$LINENO: result: no" >&5
ea04106b 19205$as_echo "no" >&6; }
cae5b340
AX
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; }
ea04106b
AX
19208
19209
19210cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
19211/* confdefs.h. */
19212_ACEOF
19213cat confdefs.h >>conftest.$ac_ext
19214cat >>conftest.$ac_ext <<_ACEOF
19215/* end confdefs.h. */
ea04106b
AX
19216
19217
cae5b340
AX
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 };
ea04106b
AX
19228
19229int
19230main (void)
19231{
19232
19233
19234 ;
19235 return 0;
19236}
19237
19238_ACEOF
19239
19240
19241
19242cat - <<_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
42f7b73b 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'
cae5b340 19252 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
19253 (eval $ac_try) 2>&5
19254 ac_status=$?
cae5b340
AX
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
ea04106b
AX
19258 (eval $ac_try) 2>&5
19259 ac_status=$?
cae5b340
AX
19260 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19261 (exit $ac_status); }; }; then
ea04106b 19262
cae5b340 19263 { $as_echo "$as_me:$LINENO: result: yes" >&5
ea04106b
AX
19264$as_echo "yes" >&6; }
19265
cae5b340
AX
19266cat >>confdefs.h <<\_ACEOF
19267#define HAVE_XATTR_SET_HANDLER 1
19268_ACEOF
ea04106b
AX
19269
19270
19271else
19272 $as_echo "$as_me: failed program was:" >&5
19273sed 's/^/| /' conftest.$ac_ext >&5
19274
cae5b340 19275 { $as_echo "$as_me:$LINENO: result: no" >&5
ea04106b 19276$as_echo "no" >&6; }
cae5b340
AX
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; }
ea04106b
AX
19279
19280
19281cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
19282/* confdefs.h. */
19283_ACEOF
19284cat confdefs.h >>conftest.$ac_ext
19285cat >>conftest.$ac_ext <<_ACEOF
19286/* end confdefs.h. */
ea04106b
AX
19287
19288
cae5b340
AX
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 };
ea04106b
AX
19298
19299int
19300main (void)
19301{
19302
19303
19304 ;
19305 return 0;
19306}
19307
19308_ACEOF
19309
19310
19311
19312cat - <<_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
42f7b73b 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'
cae5b340 19322 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
19323 (eval $ac_try) 2>&5
19324 ac_status=$?
cae5b340
AX
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
ea04106b
AX
19328 (eval $ac_try) 2>&5
19329 ac_status=$?
cae5b340
AX
19330 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19331 (exit $ac_status); }; }; then
ea04106b 19332
cae5b340 19333 { $as_echo "$as_me:$LINENO: result: yes" >&5
ea04106b
AX
19334$as_echo "yes" >&6; }
19335
cae5b340
AX
19336cat >>confdefs.h <<\_ACEOF
19337#define HAVE_XATTR_SET_DENTRY 1
19338_ACEOF
ea04106b
AX
19339
19340
19341else
19342 $as_echo "$as_me: failed program was:" >&5
19343sed 's/^/| /' conftest.$ac_ext >&5
19344
cae5b340 19345 { $as_echo "$as_me:$LINENO: result: no" >&5
ea04106b 19346$as_echo "no" >&6; }
cae5b340
AX
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; }
ea04106b
AX
19349
19350
19351cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
19352/* confdefs.h. */
19353_ACEOF
19354cat confdefs.h >>conftest.$ac_ext
19355cat >>conftest.$ac_ext <<_ACEOF
19356/* end confdefs.h. */
ea04106b
AX
19357
19358
cae5b340
AX
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 };
ea04106b
AX
19368
19369int
19370main (void)
19371{
19372
19373
19374 ;
19375 return 0;
19376}
19377
19378_ACEOF
19379
19380
19381
19382cat - <<_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
42f7b73b 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'
cae5b340 19392 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
19393 (eval $ac_try) 2>&5
19394 ac_status=$?
cae5b340
AX
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
ea04106b
AX
19398 (eval $ac_try) 2>&5
19399 ac_status=$?
cae5b340
AX
19400 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19401 (exit $ac_status); }; }; then
ea04106b 19402
cae5b340 19403 { $as_echo "$as_me:$LINENO: result: yes" >&5
ea04106b
AX
19404$as_echo "yes" >&6; }
19405
cae5b340
AX
19406cat >>confdefs.h <<\_ACEOF
19407#define HAVE_XATTR_SET_INODE 1
19408_ACEOF
ea04106b
AX
19409
19410
19411else
19412 $as_echo "$as_me: failed program was:" >&5
19413sed 's/^/| /' conftest.$ac_ext >&5
19414
cae5b340
AX
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; }; }
ea04106b
AX
19418
19419
19420
19421fi
cae5b340 19422
ea04106b
AX
19423 rm -Rf build
19424
19425
19426
19427
cae5b340
AX
19428
19429fi
19430
19431 rm -Rf build
19432
19433
19434
19435
19436
19437fi
19438
19439 rm -Rf build
19440
19441
19442
19443
19444
19445fi
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; }
ea04106b
AX
19454
19455
19456cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
19457/* confdefs.h. */
19458_ACEOF
19459cat confdefs.h >>conftest.$ac_ext
19460cat >>conftest.$ac_ext <<_ACEOF
19461/* end confdefs.h. */
ea04106b
AX
19462
19463
cae5b340
AX
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 };
ea04106b
AX
19471
19472int
19473main (void)
19474{
19475
19476
19477 ;
19478 return 0;
19479}
19480
19481_ACEOF
19482
19483
19484
19485cat - <<_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
42f7b73b 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'
cae5b340 19495 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
19496 (eval $ac_try) 2>&5
19497 ac_status=$?
cae5b340
AX
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
ea04106b
AX
19501 (eval $ac_try) 2>&5
19502 ac_status=$?
cae5b340
AX
19503 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19504 (exit $ac_status); }; }; then
ea04106b 19505
cae5b340 19506 { $as_echo "$as_me:$LINENO: result: yes" >&5
ea04106b
AX
19507$as_echo "yes" >&6; }
19508
cae5b340
AX
19509cat >>confdefs.h <<\_ACEOF
19510#define HAVE_XATTR_LIST_SIMPLE 1
19511_ACEOF
ea04106b
AX
19512
19513
19514else
19515 $as_echo "$as_me: failed program was:" >&5
19516sed 's/^/| /' conftest.$ac_ext >&5
19517
cae5b340 19518 { $as_echo "$as_me:$LINENO: result: no" >&5
ea04106b 19519$as_echo "no" >&6; }
cae5b340
AX
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; }
ea04106b
AX
19522
19523
19524cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
19525/* confdefs.h. */
19526_ACEOF
19527cat confdefs.h >>conftest.$ac_ext
19528cat >>conftest.$ac_ext <<_ACEOF
19529/* end confdefs.h. */
ea04106b
AX
19530
19531
cae5b340 19532 #include <linux/xattr.h>
e10b0808 19533
cae5b340
AX
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 };
e10b0808 19541
ea04106b
AX
19542int
19543main (void)
19544{
19545
ea04106b
AX
19546
19547 ;
19548 return 0;
19549}
19550
19551_ACEOF
19552
19553
19554
19555cat - <<_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
42f7b73b 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'
cae5b340 19565 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
19566 (eval $ac_try) 2>&5
19567 ac_status=$?
cae5b340
AX
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
ea04106b
AX
19571 (eval $ac_try) 2>&5
19572 ac_status=$?
cae5b340
AX
19573 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19574 (exit $ac_status); }; }; then
ea04106b 19575
cae5b340 19576 { $as_echo "$as_me:$LINENO: result: yes" >&5
68d83c55 19577$as_echo "yes" >&6; }
ea04106b 19578
cae5b340
AX
19579cat >>confdefs.h <<\_ACEOF
19580#define HAVE_XATTR_LIST_HANDLER 1
19581_ACEOF
ea04106b
AX
19582
19583
19584else
19585 $as_echo "$as_me: failed program was:" >&5
19586sed 's/^/| /' conftest.$ac_ext >&5
19587
cae5b340 19588 { $as_echo "$as_me:$LINENO: result: no" >&5
68d83c55 19589$as_echo "no" >&6; }
cae5b340
AX
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; }
ea04106b
AX
19592
19593
19594cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
19595/* confdefs.h. */
19596_ACEOF
19597cat confdefs.h >>conftest.$ac_ext
19598cat >>conftest.$ac_ext <<_ACEOF
19599/* end confdefs.h. */
ea04106b
AX
19600
19601
cae5b340 19602 #include <linux/xattr.h>
e10b0808 19603
cae5b340
AX
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 };
ea04106b
AX
19612
19613int
19614main (void)
19615{
19616
ea04106b
AX
19617
19618 ;
19619 return 0;
19620}
19621
19622_ACEOF
19623
19624
19625
19626cat - <<_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
42f7b73b 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'
cae5b340 19636 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
19637 (eval $ac_try) 2>&5
19638 ac_status=$?
cae5b340
AX
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
ea04106b
AX
19642 (eval $ac_try) 2>&5
19643 ac_status=$?
cae5b340
AX
19644 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19645 (exit $ac_status); }; }; then
ea04106b 19646
cae5b340 19647 { $as_echo "$as_me:$LINENO: result: yes" >&5
68d83c55
AX
19648$as_echo "yes" >&6; }
19649
cae5b340
AX
19650cat >>confdefs.h <<\_ACEOF
19651#define HAVE_XATTR_LIST_DENTRY 1
19652_ACEOF
ea04106b
AX
19653
19654
19655else
19656 $as_echo "$as_me: failed program was:" >&5
19657sed 's/^/| /' conftest.$ac_ext >&5
19658
cae5b340 19659 { $as_echo "$as_me:$LINENO: result: no" >&5
68d83c55 19660$as_echo "no" >&6; }
cae5b340
AX
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; }
ea04106b
AX
19663
19664
19665cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
19666/* confdefs.h. */
19667_ACEOF
19668cat confdefs.h >>conftest.$ac_ext
19669cat >>conftest.$ac_ext <<_ACEOF
19670/* end confdefs.h. */
ea04106b
AX
19671
19672
cae5b340 19673 #include <linux/xattr.h>
e10b0808 19674
cae5b340
AX
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 };
ea04106b
AX
19682
19683int
19684main (void)
19685{
19686
ea04106b
AX
19687
19688 ;
19689 return 0;
19690}
19691
19692_ACEOF
19693
19694
19695
19696cat - <<_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
42f7b73b 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'
cae5b340 19706 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
19707 (eval $ac_try) 2>&5
19708 ac_status=$?
cae5b340
AX
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
ea04106b
AX
19712 (eval $ac_try) 2>&5
19713 ac_status=$?
cae5b340
AX
19714 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19715 (exit $ac_status); }; }; then
ea04106b 19716
cae5b340 19717 { $as_echo "$as_me:$LINENO: result: yes" >&5
68d83c55 19718$as_echo "yes" >&6; }
ea04106b 19719
cae5b340
AX
19720cat >>confdefs.h <<\_ACEOF
19721#define HAVE_XATTR_LIST_INODE 1
19722_ACEOF
ea04106b
AX
19723
19724
19725else
19726 $as_echo "$as_me: failed program was:" >&5
19727sed 's/^/| /' conftest.$ac_ext >&5
19728
cae5b340
AX
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; }; }
ea04106b
AX
19732
19733
19734
19735fi
cae5b340 19736
ea04106b
AX
19737 rm -Rf build
19738
19739
19740
19741
ea04106b 19742
cae5b340 19743fi
ea04106b 19744
cae5b340 19745 rm -Rf build
ea04106b
AX
19746
19747
68d83c55 19748
68d83c55 19749
ea04106b 19750
cae5b340 19751fi
ea04106b 19752
cae5b340
AX
19753 rm -Rf build
19754
19755
19756
19757
19758
19759fi
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
19770cat confdefs.h - <<_ACEOF >conftest.c
19771/* confdefs.h. */
19772_ACEOF
19773cat confdefs.h >>conftest.$ac_ext
19774cat >>conftest.$ac_ext <<_ACEOF
19775/* end confdefs.h. */
19776
19777
19778 #include <linux/fs.h>
19779
19780int
19781main (void)
19782{
19783
19784 struct inode *ip = NULL;
19785 (void) inode_owner_or_capable(ip);
ea04106b
AX
19786
19787 ;
19788 return 0;
19789}
19790
19791_ACEOF
19792
19793
19794
19795cat - <<_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
42f7b73b 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'
cae5b340 19805 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
19806 (eval $ac_try) 2>&5
19807 ac_status=$?
cae5b340
AX
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
ea04106b
AX
19811 (eval $ac_try) 2>&5
19812 ac_status=$?
cae5b340
AX
19813 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19814 (exit $ac_status); }; }; then
ea04106b 19815
cae5b340 19816 { $as_echo "$as_me:$LINENO: result: yes" >&5
ea04106b
AX
19817$as_echo "yes" >&6; }
19818
cae5b340
AX
19819cat >>confdefs.h <<\_ACEOF
19820#define HAVE_INODE_OWNER_OR_CAPABLE 1
19821_ACEOF
ea04106b
AX
19822
19823
19824else
19825 $as_echo "$as_me: failed program was:" >&5
19826sed 's/^/| /' conftest.$ac_ext >&5
19827
cae5b340 19828 { $as_echo "$as_me:$LINENO: result: no" >&5
ea04106b 19829$as_echo "no" >&6; }
cae5b340
AX
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; }
ea04106b
AX
19832
19833
19834cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
19835/* confdefs.h. */
19836_ACEOF
19837cat confdefs.h >>conftest.$ac_ext
19838cat >>conftest.$ac_ext <<_ACEOF
19839/* end confdefs.h. */
ea04106b
AX
19840
19841
cae5b340
AX
19842 #include <linux/fs.h>
19843 #include <linux/sched.h>
ea04106b
AX
19844
19845int
19846main (void)
19847{
19848
cae5b340
AX
19849 struct inode *ip = NULL;
19850 (void) is_owner_or_cap(ip);
ea04106b
AX
19851
19852 ;
19853 return 0;
19854}
19855
19856_ACEOF
19857
19858
19859
19860cat - <<_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
42f7b73b 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'
cae5b340 19870 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
19871 (eval $ac_try) 2>&5
19872 ac_status=$?
cae5b340
AX
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
ea04106b
AX
19876 (eval $ac_try) 2>&5
19877 ac_status=$?
cae5b340
AX
19878 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19879 (exit $ac_status); }; }; then
ea04106b 19880
cae5b340 19881 { $as_echo "$as_me:$LINENO: result: yes" >&5
e10b0808
AX
19882$as_echo "yes" >&6; }
19883
cae5b340
AX
19884cat >>confdefs.h <<\_ACEOF
19885#define HAVE_IS_OWNER_OR_CAP 1
19886_ACEOF
e10b0808 19887
ea04106b
AX
19888
19889else
19890 $as_echo "$as_me: failed program was:" >&5
19891sed 's/^/| /' conftest.$ac_ext >&5
19892
cae5b340
AX
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; }; }
ea04106b
AX
19898
19899
19900
19901fi
cae5b340 19902
ea04106b
AX
19903 rm -Rf build
19904
19905
19906
19907
ea04106b 19908
cae5b340 19909fi
ea04106b 19910
cae5b340 19911 rm -Rf build
ea04106b
AX
19912
19913
e10b0808 19914
e10b0808 19915
cae5b340
AX
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
19920cat confdefs.h - <<_ACEOF >conftest.c
19921/* confdefs.h. */
19922_ACEOF
19923cat confdefs.h >>conftest.$ac_ext
19924cat >>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>
ea04106b
AX
19931
19932int
19933main (void)
19934{
19935
cae5b340 19936 posix_acl_from_xattr(&init_user_ns, NULL, 0);
ea04106b
AX
19937
19938 ;
19939 return 0;
19940}
19941
19942_ACEOF
19943
19944
19945
19946cat - <<_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
42f7b73b 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'
cae5b340 19956 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
19957 (eval $ac_try) 2>&5
19958 ac_status=$?
cae5b340
AX
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
ea04106b
AX
19962 (eval $ac_try) 2>&5
19963 ac_status=$?
cae5b340
AX
19964 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19965 (exit $ac_status); }; }; then
ea04106b 19966
cae5b340 19967 { $as_echo "$as_me:$LINENO: result: yes" >&5
ea04106b
AX
19968$as_echo "yes" >&6; }
19969
cae5b340
AX
19970cat >>confdefs.h <<\_ACEOF
19971#define HAVE_POSIX_ACL_FROM_XATTR_USERNS 1
19972_ACEOF
ea04106b
AX
19973
19974
19975else
19976 $as_echo "$as_me: failed program was:" >&5
19977sed 's/^/| /' conftest.$ac_ext >&5
19978
cae5b340 19979 { $as_echo "$as_me:$LINENO: result: no" >&5
ea04106b
AX
19980$as_echo "no" >&6; }
19981
19982
19983
19984fi
ea04106b 19985
cae5b340 19986 rm -Rf build
ea04106b
AX
19987
19988
e10b0808 19989
22929307 19990
cae5b340
AX
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; }
ea04106b
AX
19993
19994
19995cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
19996/* confdefs.h. */
19997_ACEOF
19998cat confdefs.h >>conftest.$ac_ext
19999cat >>conftest.$ac_ext <<_ACEOF
20000/* end confdefs.h. */
ea04106b
AX
20001
20002
cae5b340 20003 #include <linux/cred.h>
ea04106b 20004 #include <linux/fs.h>
cae5b340 20005 #include <linux/posix_acl.h>
e10b0808 20006
cae5b340
AX
20007int
20008main (void)
20009{
22929307 20010
cae5b340
AX
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
20022cat - <<_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
42f7b73b 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'
cae5b340
AX
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
20046cat >>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
20055cat confdefs.h - <<_ACEOF >conftest.c
20056/* confdefs.h. */
20057_ACEOF
20058cat confdefs.h >>conftest.$ac_ext
20059cat >>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");
22929307 20069
ea04106b
AX
20070int
20071main (void)
20072{
20073
cae5b340
AX
20074 struct posix_acl* tmp = posix_acl_alloc(1, 0);
20075 posix_acl_release(tmp);
ea04106b
AX
20076
20077 ;
20078 return 0;
20079}
20080
20081_ACEOF
20082
20083
20084
20085cat - <<_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
42f7b73b 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'
cae5b340 20095 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
20096 (eval $ac_try) 2>&5
20097 ac_status=$?
cae5b340
AX
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
ea04106b
AX
20101 (eval $ac_try) 2>&5
20102 ac_status=$?
cae5b340
AX
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
20109else
20110 $as_echo "$as_me: failed program was:" >&5
20111sed 's/^/| /' conftest.$ac_ext >&5
ea04106b 20112
cae5b340 20113 { $as_echo "$as_me:$LINENO: result: yes" >&5
ea04106b
AX
20114$as_echo "yes" >&6; }
20115
cae5b340
AX
20116cat >>confdefs.h <<\_ACEOF
20117#define HAVE_POSIX_ACL_RELEASE_GPL_ONLY 1
20118_ACEOF
20119
20120
20121
20122
20123fi
20124
20125 rm -Rf build
20126
ea04106b
AX
20127
20128
20129else
20130 $as_echo "$as_me: failed program was:" >&5
20131sed 's/^/| /' conftest.$ac_ext >&5
20132
cae5b340 20133 { $as_echo "$as_me:$LINENO: result: no" >&5
ea04106b
AX
20134$as_echo "no" >&6; }
20135
20136
20137
20138fi
cae5b340 20139
ea04106b
AX
20140 rm -Rf build
20141
20142
20143
20144
cae5b340
AX
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; }
ea04106b
AX
20147
20148
20149cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
20150/* confdefs.h. */
20151_ACEOF
20152cat confdefs.h >>conftest.$ac_ext
20153cat >>conftest.$ac_ext <<_ACEOF
20154/* end confdefs.h. */
ea04106b
AX
20155
20156
cae5b340
AX
20157 #include <linux/module.h>
20158 #include <linux/cred.h>
ea04106b 20159 #include <linux/fs.h>
cae5b340 20160 #include <linux/posix_acl.h>
ea04106b 20161
cae5b340 20162 MODULE_LICENSE("$ZFS_META_LICENSE");
e10b0808 20163
ea04106b
AX
20164int
20165main (void)
20166{
20167
cae5b340
AX
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);
ea04106b
AX
20172
20173 ;
20174 return 0;
20175}
20176
20177_ACEOF
20178
20179
20180
20181cat - <<_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
42f7b73b 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'
cae5b340 20191 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
20192 (eval $ac_try) 2>&5
20193 ac_status=$?
cae5b340
AX
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
ea04106b
AX
20197 (eval $ac_try) 2>&5
20198 ac_status=$?
cae5b340
AX
20199 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20200 (exit $ac_status); }; }; then
ea04106b 20201
cae5b340 20202 { $as_echo "$as_me:$LINENO: result: yes" >&5
ea04106b
AX
20203$as_echo "yes" >&6; }
20204
cae5b340
AX
20205cat >>confdefs.h <<\_ACEOF
20206#define HAVE_SET_CACHED_ACL_USABLE 1
20207_ACEOF
ea04106b
AX
20208
20209
20210else
20211 $as_echo "$as_me: failed program was:" >&5
20212sed 's/^/| /' conftest.$ac_ext >&5
20213
cae5b340 20214 { $as_echo "$as_me:$LINENO: result: no" >&5
ea04106b
AX
20215$as_echo "no" >&6; }
20216
20217
20218
20219fi
ea04106b 20220
cae5b340 20221 rm -Rf build
ea04106b
AX
20222
20223
20224
22929307 20225
cae5b340
AX
20226 { $as_echo "$as_me:$LINENO: checking whether posix_acl_chmod exists" >&5
20227$as_echo_n "checking whether posix_acl_chmod exists... " >&6; }
ea04106b
AX
20228
20229
20230cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
20231/* confdefs.h. */
20232_ACEOF
20233cat confdefs.h >>conftest.$ac_ext
20234cat >>conftest.$ac_ext <<_ACEOF
20235/* end confdefs.h. */
ea04106b
AX
20236
20237
20238 #include <linux/fs.h>
cae5b340 20239 #include <linux/posix_acl.h>
e10b0808 20240
ea04106b
AX
20241int
20242main (void)
20243{
20244
cae5b340 20245 posix_acl_chmod(NULL, 0, 0)
ea04106b
AX
20246
20247 ;
20248 return 0;
20249}
20250
20251_ACEOF
20252
20253
20254
20255cat - <<_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
42f7b73b 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'
cae5b340 20265 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
20266 (eval $ac_try) 2>&5
20267 ac_status=$?
cae5b340
AX
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
ea04106b
AX
20271 (eval $ac_try) 2>&5
20272 ac_status=$?
cae5b340
AX
20273 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20274 (exit $ac_status); }; }; then
ea04106b 20275
cae5b340 20276 { $as_echo "$as_me:$LINENO: result: yes" >&5
ea04106b
AX
20277$as_echo "yes" >&6; }
20278
cae5b340
AX
20279cat >>confdefs.h <<\_ACEOF
20280#define HAVE_POSIX_ACL_CHMOD 1
20281_ACEOF
ea04106b
AX
20282
20283
20284else
20285 $as_echo "$as_me: failed program was:" >&5
20286sed 's/^/| /' conftest.$ac_ext >&5
20287
cae5b340 20288 { $as_echo "$as_me:$LINENO: result: no" >&5
ea04106b
AX
20289$as_echo "no" >&6; }
20290
20291
20292
20293fi
ea04106b 20294
cae5b340 20295 rm -Rf build
ea04106b
AX
20296
20297
ea04106b 20298
cae5b340
AX
20299 { $as_echo "$as_me:$LINENO: checking whether __posix_acl_chmod exists" >&5
20300$as_echo_n "checking whether __posix_acl_chmod exists... " >&6; }
ea04106b
AX
20301
20302
20303cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
20304/* confdefs.h. */
20305_ACEOF
20306cat confdefs.h >>conftest.$ac_ext
20307cat >>conftest.$ac_ext <<_ACEOF
20308/* end confdefs.h. */
ea04106b
AX
20309
20310
20311 #include <linux/fs.h>
cae5b340 20312 #include <linux/posix_acl.h>
ea04106b
AX
20313
20314int
20315main (void)
20316{
20317
cae5b340 20318 __posix_acl_chmod(NULL, 0, 0)
ea04106b
AX
20319
20320 ;
20321 return 0;
20322}
20323
20324_ACEOF
20325
20326
20327
20328cat - <<_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
42f7b73b 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'
cae5b340 20338 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
20339 (eval $ac_try) 2>&5
20340 ac_status=$?
cae5b340
AX
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
ea04106b
AX
20344 (eval $ac_try) 2>&5
20345 ac_status=$?
cae5b340
AX
20346 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20347 (exit $ac_status); }; }; then
ea04106b 20348
cae5b340 20349 { $as_echo "$as_me:$LINENO: result: yes" >&5
ea04106b
AX
20350$as_echo "yes" >&6; }
20351
cae5b340
AX
20352cat >>confdefs.h <<\_ACEOF
20353#define HAVE___POSIX_ACL_CHMOD 1
20354_ACEOF
ea04106b
AX
20355
20356
20357else
20358 $as_echo "$as_me: failed program was:" >&5
20359sed 's/^/| /' conftest.$ac_ext >&5
20360
cae5b340 20361 { $as_echo "$as_me:$LINENO: result: no" >&5
ea04106b 20362$as_echo "no" >&6; }
68d83c55
AX
20363
20364
20365
20366fi
cae5b340 20367
68d83c55
AX
20368 rm -Rf build
20369
20370
20371
20372
cae5b340
AX
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; }
ea04106b
AX
20375
20376
20377cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
20378/* confdefs.h. */
20379_ACEOF
20380cat confdefs.h >>conftest.$ac_ext
20381cat >>conftest.$ac_ext <<_ACEOF
20382/* end confdefs.h. */
ea04106b
AX
20383
20384
4d815aed 20385 #include <linux/fs.h>
cae5b340 20386 #include <linux/posix_acl.h>
68d83c55 20387
ea04106b
AX
20388int
20389main (void)
20390{
20391
cae5b340
AX
20392 umode_t tmp;
20393 posix_acl_equiv_mode(NULL,&tmp);
ea04106b
AX
20394
20395 ;
20396 return 0;
20397}
20398
20399_ACEOF
20400
20401
20402
20403cat - <<_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
42f7b73b 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'
cae5b340 20413 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
20414 (eval $ac_try) 2>&5
20415 ac_status=$?
cae5b340
AX
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
ea04106b
AX
20419 (eval $ac_try) 2>&5
20420 ac_status=$?
cae5b340
AX
20421 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20422 (exit $ac_status); }; }; then
ea04106b 20423
cae5b340 20424 { $as_echo "$as_me:$LINENO: result: yes" >&5
ea04106b
AX
20425$as_echo "yes" >&6; }
20426
cae5b340
AX
20427cat >>confdefs.h <<\_ACEOF
20428#define HAVE_POSIX_ACL_EQUIV_MODE_UMODE_T 1
20429_ACEOF
ea04106b
AX
20430
20431
20432else
20433 $as_echo "$as_me: failed program was:" >&5
20434sed 's/^/| /' conftest.$ac_ext >&5
20435
cae5b340 20436 { $as_echo "$as_me:$LINENO: result: no" >&5
68d83c55 20437$as_echo "no" >&6; }
4d815aed
AX
20438
20439
20440
20441fi
4d815aed 20442
cae5b340 20443 rm -Rf build
4d815aed
AX
20444
20445
20446
22929307 20447
cae5b340
AX
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; }
4d815aed 20450
4d815aed 20451
68d83c55 20452cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
20453/* confdefs.h. */
20454_ACEOF
20455cat confdefs.h >>conftest.$ac_ext
20456cat >>conftest.$ac_ext <<_ACEOF
20457/* end confdefs.h. */
4d815aed
AX
20458
20459
68d83c55 20460 #include <linux/fs.h>
cae5b340 20461 #include <linux/posix_acl.h>
68d83c55
AX
20462
20463int
20464main (void)
20465{
20466
cae5b340
AX
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);
68d83c55
AX
20472
20473 ;
20474 return 0;
20475}
20476
20477_ACEOF
20478
20479
20480
20481cat - <<_ACEOF >conftest.h
20482
20483_ACEOF
4d815aed 20484
4d815aed 20485
68d83c55
AX
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
42f7b73b 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'
cae5b340 20491 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
68d83c55
AX
20492 (eval $ac_try) 2>&5
20493 ac_status=$?
cae5b340
AX
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
68d83c55
AX
20497 (eval $ac_try) 2>&5
20498 ac_status=$?
cae5b340
AX
20499 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20500 (exit $ac_status); }; }; then
68d83c55 20501
cae5b340
AX
20502 { $as_echo "$as_me:$LINENO: result: yes" >&5
20503$as_echo "yes" >&6; }
68d83c55 20504
cae5b340
AX
20505cat >>confdefs.h <<\_ACEOF
20506#define HAVE_POSIX_ACL_VALID_WITH_NS 1
20507_ACEOF
4d815aed 20508
ea04106b 20509
68d83c55
AX
20510else
20511 $as_echo "$as_me: failed program was:" >&5
20512sed 's/^/| /' conftest.$ac_ext >&5
20513
cae5b340
AX
20514 { $as_echo "$as_me:$LINENO: result: no" >&5
20515$as_echo "no" >&6; }
68d83c55 20516
ea04106b
AX
20517
20518
20519fi
cae5b340 20520
ea04106b
AX
20521 rm -Rf build
20522
20523
20524
20525
cae5b340
AX
20526 { $as_echo "$as_me:$LINENO: checking whether iops->permission() exists" >&5
20527$as_echo_n "checking whether iops->permission() exists... " >&6; }
ea04106b
AX
20528
20529
20530cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
20531/* confdefs.h. */
20532_ACEOF
20533cat confdefs.h >>conftest.$ac_ext
20534cat >>conftest.$ac_ext <<_ACEOF
20535/* end confdefs.h. */
ea04106b
AX
20536
20537
68d83c55
AX
20538 #include <linux/fs.h>
20539
cae5b340 20540 int permission_fn(struct inode *inode, int mask) { return 0; }
68d83c55 20541
cae5b340
AX
20542 static const struct inode_operations
20543 iops __attribute__ ((unused)) = {
20544 .permission = permission_fn,
68d83c55 20545 };
ea04106b
AX
20546
20547int
20548main (void)
20549{
20550
ea04106b
AX
20551
20552 ;
20553 return 0;
20554}
20555
20556_ACEOF
20557
20558
20559
20560cat - <<_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
42f7b73b 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'
cae5b340 20570 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
20571 (eval $ac_try) 2>&5
20572 ac_status=$?
cae5b340
AX
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
ea04106b
AX
20576 (eval $ac_try) 2>&5
20577 ac_status=$?
cae5b340
AX
20578 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20579 (exit $ac_status); }; }; then
ea04106b 20580
cae5b340
AX
20581 { $as_echo "$as_me:$LINENO: result: yes" >&5
20582$as_echo "yes" >&6; }
ea04106b 20583
cae5b340
AX
20584cat >>confdefs.h <<\_ACEOF
20585#define HAVE_PERMISSION 1
20586_ACEOF
ea04106b
AX
20587
20588
20589else
20590 $as_echo "$as_me: failed program was:" >&5
20591sed 's/^/| /' conftest.$ac_ext >&5
20592
cae5b340
AX
20593 { $as_echo "$as_me:$LINENO: result: no" >&5
20594$as_echo "no" >&6; }
68d83c55
AX
20595
20596
20597
20598fi
cae5b340 20599
68d83c55
AX
20600 rm -Rf build
20601
20602
20603
20604
cae5b340
AX
20605 { $as_echo "$as_me:$LINENO: checking whether iops->permission() wants nameidata" >&5
20606$as_echo_n "checking whether iops->permission() wants nameidata... " >&6; }
68d83c55 20607
ea04106b
AX
20608
20609cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
20610/* confdefs.h. */
20611_ACEOF
20612cat confdefs.h >>conftest.$ac_ext
20613cat >>conftest.$ac_ext <<_ACEOF
20614/* end confdefs.h. */
ea04106b
AX
20615
20616
68d83c55 20617 #include <linux/fs.h>
42f7b73b 20618 #include <linux/sched.h>
68d83c55 20619
cae5b340
AX
20620 int permission_fn(struct inode *inode, int mask,
20621 struct nameidata *nd) { return 0; }
68d83c55 20622
cae5b340
AX
20623 static const struct inode_operations
20624 iops __attribute__ ((unused)) = {
20625 .permission = permission_fn,
22929307
AX
20626 };
20627
20628int
20629main (void)
20630{
20631
20632
20633 ;
20634 return 0;
20635}
20636
20637_ACEOF
20638
20639
20640
20641cat - <<_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
42f7b73b 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'
cae5b340 20651 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22929307
AX
20652 (eval $ac_try) 2>&5
20653 ac_status=$?
cae5b340
AX
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
22929307
AX
20657 (eval $ac_try) 2>&5
20658 ac_status=$?
cae5b340
AX
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
20665cat >>confdefs.h <<\_ACEOF
20666#define HAVE_PERMISSION 1
20667_ACEOF
22929307 20668
22929307 20669
cae5b340
AX
20670cat >>confdefs.h <<\_ACEOF
20671#define HAVE_PERMISSION_WITH_NAMEIDATA 1
20672_ACEOF
22929307
AX
20673
20674
20675else
20676 $as_echo "$as_me: failed program was:" >&5
20677sed 's/^/| /' conftest.$ac_ext >&5
20678
cae5b340
AX
20679 { $as_echo "$as_me:$LINENO: result: no" >&5
20680$as_echo "no" >&6; }
22929307
AX
20681
20682
20683
20684fi
22929307 20685
cae5b340 20686 rm -Rf build
22929307
AX
20687
20688
20689
20690
cae5b340
AX
20691 { $as_echo "$as_me:$LINENO: checking whether iops->check_acl() exists" >&5
20692$as_echo_n "checking whether iops->check_acl() exists... " >&6; }
22929307
AX
20693
20694
20695cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
20696/* confdefs.h. */
20697_ACEOF
20698cat confdefs.h >>conftest.$ac_ext
20699cat >>conftest.$ac_ext <<_ACEOF
20700/* end confdefs.h. */
22929307
AX
20701
20702
20703 #include <linux/fs.h>
cae5b340
AX
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,
68d83c55 20710 };
ea04106b
AX
20711
20712int
20713main (void)
20714{
20715
20716
20717 ;
20718 return 0;
20719}
20720
20721_ACEOF
20722
20723
20724
20725cat - <<_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
42f7b73b 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'
cae5b340 20735 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
20736 (eval $ac_try) 2>&5
20737 ac_status=$?
cae5b340
AX
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
ea04106b
AX
20741 (eval $ac_try) 2>&5
20742 ac_status=$?
cae5b340
AX
20743 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20744 (exit $ac_status); }; }; then
ea04106b 20745
cae5b340 20746 { $as_echo "$as_me:$LINENO: result: yes" >&5
e10b0808 20747$as_echo "yes" >&6; }
ea04106b 20748
cae5b340
AX
20749cat >>confdefs.h <<\_ACEOF
20750#define HAVE_CHECK_ACL 1
20751_ACEOF
ea04106b
AX
20752
20753
20754else
20755 $as_echo "$as_me: failed program was:" >&5
20756sed 's/^/| /' conftest.$ac_ext >&5
20757
cae5b340 20758 { $as_echo "$as_me:$LINENO: result: no" >&5
e10b0808 20759$as_echo "no" >&6; }
68d83c55
AX
20760
20761
20762
20763fi
cae5b340 20764
68d83c55
AX
20765 rm -Rf build
20766
20767
20768
20769
cae5b340
AX
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; }
ea04106b
AX
20772
20773
20774cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
20775/* confdefs.h. */
20776_ACEOF
20777cat confdefs.h >>conftest.$ac_ext
20778cat >>conftest.$ac_ext <<_ACEOF
20779/* end confdefs.h. */
ea04106b
AX
20780
20781
68d83c55
AX
20782 #include <linux/fs.h>
20783
cae5b340
AX
20784 int check_acl_fn(struct inode *inode, int mask,
20785 unsigned int flags) { return 0; }
68d83c55 20786
cae5b340
AX
20787 static const struct inode_operations
20788 iops __attribute__ ((unused)) = {
20789 .check_acl = check_acl_fn,
68d83c55 20790 };
ea04106b 20791
ea04106b
AX
20792int
20793main (void)
20794{
20795
20796
20797 ;
20798 return 0;
20799}
20800
20801_ACEOF
20802
20803
20804
20805cat - <<_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
42f7b73b 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'
cae5b340 20815 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
20816 (eval $ac_try) 2>&5
20817 ac_status=$?
cae5b340
AX
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
ea04106b
AX
20821 (eval $ac_try) 2>&5
20822 ac_status=$?
cae5b340
AX
20823 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20824 (exit $ac_status); }; }; then
4d815aed 20825
cae5b340 20826 { $as_echo "$as_me:$LINENO: result: yes" >&5
4d815aed
AX
20827$as_echo "yes" >&6; }
20828
cae5b340
AX
20829cat >>confdefs.h <<\_ACEOF
20830#define HAVE_CHECK_ACL 1
20831_ACEOF
20832
20833
20834cat >>confdefs.h <<\_ACEOF
20835#define HAVE_CHECK_ACL_WITH_FLAGS 1
20836_ACEOF
4d815aed
AX
20837
20838
e10b0808
AX
20839else
20840 $as_echo "$as_me: failed program was:" >&5
20841sed 's/^/| /' conftest.$ac_ext >&5
4d815aed 20842
cae5b340 20843 { $as_echo "$as_me:$LINENO: result: no" >&5
68d83c55 20844$as_echo "no" >&6; }
e10b0808 20845
e10b0808 20846
ea04106b 20847
4d815aed 20848fi
cae5b340 20849
4d815aed 20850 rm -Rf build
ea04106b
AX
20851
20852
20853
ea04106b 20854
cae5b340
AX
20855 { $as_echo "$as_me:$LINENO: checking whether iops->get_acl() exists" >&5
20856$as_echo_n "checking whether iops->get_acl() exists... " >&6; }
ea04106b
AX
20857
20858
e10b0808 20859cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
20860/* confdefs.h. */
20861_ACEOF
20862cat confdefs.h >>conftest.$ac_ext
20863cat >>conftest.$ac_ext <<_ACEOF
20864/* end confdefs.h. */
ea04106b 20865
ea04106b 20866
e10b0808 20867 #include <linux/fs.h>
68d83c55 20868
cae5b340
AX
20869 struct posix_acl *get_acl_fn(struct inode *inode, int type)
20870 { return NULL; }
22929307 20871
cae5b340
AX
20872 static const struct inode_operations
20873 iops __attribute__ ((unused)) = {
20874 .get_acl = get_acl_fn,
4d815aed 20875 };
ea04106b
AX
20876
20877int
20878main (void)
20879{
20880
20881
20882 ;
20883 return 0;
20884}
20885
20886_ACEOF
20887
20888
20889
20890cat - <<_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
42f7b73b 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'
cae5b340 20900 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
20901 (eval $ac_try) 2>&5
20902 ac_status=$?
cae5b340
AX
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
ea04106b
AX
20906 (eval $ac_try) 2>&5
20907 ac_status=$?
cae5b340
AX
20908 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20909 (exit $ac_status); }; }; then
4d815aed 20910
cae5b340 20911 { $as_echo "$as_me:$LINENO: result: yes" >&5
4d815aed
AX
20912$as_echo "yes" >&6; }
20913
cae5b340
AX
20914cat >>confdefs.h <<\_ACEOF
20915#define HAVE_GET_ACL 1
20916_ACEOF
4d815aed
AX
20917
20918
e10b0808
AX
20919else
20920 $as_echo "$as_me: failed program was:" >&5
20921sed 's/^/| /' conftest.$ac_ext >&5
4d815aed 20922
cae5b340 20923 { $as_echo "$as_me:$LINENO: result: no" >&5
4d815aed
AX
20924$as_echo "no" >&6; }
20925
ea04106b 20926
ea04106b 20927
e10b0808 20928fi
cae5b340 20929
e10b0808 20930 rm -Rf build
ea04106b
AX
20931
20932
e10b0808 20933
e10b0808 20934
cae5b340
AX
20935 { $as_echo "$as_me:$LINENO: checking whether iops->set_acl() exists" >&5
20936$as_echo_n "checking whether iops->set_acl() exists... " >&6; }
e10b0808 20937
ea04106b 20938
4d815aed 20939cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
20940/* confdefs.h. */
20941_ACEOF
20942cat confdefs.h >>conftest.$ac_ext
20943cat >>conftest.$ac_ext <<_ACEOF
20944/* end confdefs.h. */
ea04106b
AX
20945
20946
68d83c55
AX
20947 #include <linux/fs.h>
20948
cae5b340
AX
20949 int set_acl_fn(struct inode *inode, struct posix_acl *acl, int type)
20950 { return 0; }
68d83c55 20951
cae5b340
AX
20952 static const struct inode_operations
20953 iops __attribute__ ((unused)) = {
20954 .set_acl = set_acl_fn,
4d815aed
AX
20955 };
20956
20957int
20958main (void)
20959{
20960
20961
20962 ;
20963 return 0;
20964}
20965
20966_ACEOF
20967
20968
20969
20970cat - <<_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
42f7b73b 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'
cae5b340 20980 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4d815aed
AX
20981 (eval $ac_try) 2>&5
20982 ac_status=$?
cae5b340
AX
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
4d815aed
AX
20986 (eval $ac_try) 2>&5
20987 ac_status=$?
cae5b340
AX
20988 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20989 (exit $ac_status); }; }; then
ea04106b 20990
cae5b340 20991 { $as_echo "$as_me:$LINENO: result: yes" >&5
e10b0808 20992$as_echo "yes" >&6; }
ea04106b 20993
cae5b340
AX
20994cat >>confdefs.h <<\_ACEOF
20995#define HAVE_SET_ACL 1
20996_ACEOF
ea04106b
AX
20997
20998
4d815aed
AX
20999else
21000 $as_echo "$as_me: failed program was:" >&5
21001sed 's/^/| /' conftest.$ac_ext >&5
ea04106b 21002
cae5b340 21003 { $as_echo "$as_me:$LINENO: result: no" >&5
4d815aed 21004$as_echo "no" >&6; }
ea04106b 21005
e10b0808 21006
ea04106b 21007
4d815aed 21008fi
cae5b340 21009
4d815aed
AX
21010 rm -Rf build
21011
21012
21013
21014
22929307 21015
cae5b340
AX
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; }
4d815aed 21018
ea04106b
AX
21019
21020cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
21021/* confdefs.h. */
21022_ACEOF
21023cat confdefs.h >>conftest.$ac_ext
21024cat >>conftest.$ac_ext <<_ACEOF
21025/* end confdefs.h. */
ea04106b
AX
21026
21027
68d83c55
AX
21028 #include <linux/fs.h>
21029
cae5b340
AX
21030 int test_getattr(
21031 const struct path *p, struct kstat *k,
21032 u32 request_mask, unsigned int query_flags)
21033 { return 0; }
68d83c55 21034
cae5b340
AX
21035 static const struct inode_operations
21036 iops __attribute__ ((unused)) = {
21037 .getattr = test_getattr,
4d815aed 21038 };
ea04106b
AX
21039
21040int
21041main (void)
21042{
21043
21044
21045 ;
21046 return 0;
21047}
21048
21049_ACEOF
21050
21051
21052
21053cat - <<_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
42f7b73b 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'
cae5b340 21063 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
21064 (eval $ac_try) 2>&5
21065 ac_status=$?
cae5b340
AX
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
ea04106b
AX
21069 (eval $ac_try) 2>&5
21070 ac_status=$?
cae5b340
AX
21071 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21072 (exit $ac_status); }; }; then
4d815aed 21073
cae5b340 21074 { $as_echo "$as_me:$LINENO: result: yes" >&5
4d815aed
AX
21075$as_echo "yes" >&6; }
21076
cae5b340
AX
21077cat >>confdefs.h <<\_ACEOF
21078#define HAVE_PATH_IOPS_GETATTR 1
21079_ACEOF
4d815aed
AX
21080
21081
ea04106b
AX
21082else
21083 $as_echo "$as_me: failed program was:" >&5
21084sed 's/^/| /' conftest.$ac_ext >&5
4d815aed 21085
cae5b340 21086 { $as_echo "$as_me:$LINENO: result: no" >&5
4d815aed
AX
21087$as_echo "no" >&6; }
21088
ea04106b
AX
21089
21090
21091fi
cae5b340 21092
ea04106b
AX
21093 rm -Rf build
21094
21095
21096
21097
cae5b340
AX
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; }
ea04106b
AX
21100
21101
4d815aed 21102cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
21103/* confdefs.h. */
21104_ACEOF
21105cat confdefs.h >>conftest.$ac_ext
21106cat >>conftest.$ac_ext <<_ACEOF
21107/* end confdefs.h. */
ea04106b
AX
21108
21109
68d83c55
AX
21110 #include <linux/fs.h>
21111
cae5b340
AX
21112 int test_getattr(
21113 struct vfsmount *mnt, struct dentry *d,
21114 struct kstat *k)
21115 { return 0; }
68d83c55
AX
21116
21117 static const struct inode_operations
cae5b340
AX
21118 iops __attribute__ ((unused)) = {
21119 .getattr = test_getattr,
4d815aed
AX
21120 };
21121
21122int
21123main (void)
21124{
21125
21126
21127 ;
21128 return 0;
21129}
21130
21131_ACEOF
21132
21133
21134
21135cat - <<_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
42f7b73b 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'
cae5b340 21145 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4d815aed
AX
21146 (eval $ac_try) 2>&5
21147 ac_status=$?
cae5b340
AX
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
4d815aed
AX
21151 (eval $ac_try) 2>&5
21152 ac_status=$?
cae5b340
AX
21153 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21154 (exit $ac_status); }; }; then
ea04106b 21155
cae5b340 21156 { $as_echo "$as_me:$LINENO: result: yes" >&5
ea04106b
AX
21157$as_echo "yes" >&6; }
21158
cae5b340
AX
21159cat >>confdefs.h <<\_ACEOF
21160#define HAVE_VFSMOUNT_IOPS_GETATTR 1
21161_ACEOF
ea04106b 21162
ea04106b 21163
4d815aed
AX
21164else
21165 $as_echo "$as_me: failed program was:" >&5
21166sed 's/^/| /' conftest.$ac_ext >&5
21167
cae5b340 21168 { $as_echo "$as_me:$LINENO: result: no" >&5
4d815aed 21169$as_echo "no" >&6; }
ea04106b
AX
21170
21171
4d815aed
AX
21172
21173fi
cae5b340 21174
4d815aed
AX
21175 rm -Rf build
21176
21177
21178
ea04106b 21179
22929307 21180
cae5b340
AX
21181 { $as_echo "$as_me:$LINENO: checking whether inode_set_flags() exists" >&5
21182$as_echo_n "checking whether inode_set_flags() exists... " >&6; }
ea04106b
AX
21183
21184
21185cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
21186/* confdefs.h. */
21187_ACEOF
21188cat confdefs.h >>conftest.$ac_ext
21189cat >>conftest.$ac_ext <<_ACEOF
21190/* end confdefs.h. */
ea04106b
AX
21191
21192
4d815aed 21193 #include <linux/fs.h>
22929307 21194
ea04106b
AX
21195int
21196main (void)
21197{
21198
cae5b340
AX
21199 struct inode inode;
21200 inode_set_flags(&inode, S_IMMUTABLE, S_IMMUTABLE);
ea04106b
AX
21201
21202 ;
21203 return 0;
21204}
21205
21206_ACEOF
21207
21208
21209
21210cat - <<_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
42f7b73b 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'
cae5b340 21220 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
21221 (eval $ac_try) 2>&5
21222 ac_status=$?
cae5b340
AX
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
ea04106b
AX
21226 (eval $ac_try) 2>&5
21227 ac_status=$?
cae5b340
AX
21228 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21229 (exit $ac_status); }; }; then
ea04106b 21230
cae5b340 21231 { $as_echo "$as_me:$LINENO: result: yes" >&5
e10b0808 21232$as_echo "yes" >&6; }
ea04106b 21233
cae5b340
AX
21234cat >>confdefs.h <<\_ACEOF
21235#define HAVE_INODE_SET_FLAGS 1
21236_ACEOF
ea04106b
AX
21237
21238
68d83c55
AX
21239else
21240 $as_echo "$as_me: failed program was:" >&5
21241sed 's/^/| /' conftest.$ac_ext >&5
ea04106b 21242
cae5b340 21243 { $as_echo "$as_me:$LINENO: result: no" >&5
68d83c55 21244$as_echo "no" >&6; }
22929307
AX
21245
21246
21247
21248fi
cae5b340 21249
22929307
AX
21250 rm -Rf build
21251
21252
21253
21254
42f7b73b
AX
21255 { $as_echo "$as_me:$LINENO: checking whether inode_set_iversion() exists" >&5
21256$as_echo_n "checking whether inode_set_iversion() exists... " >&6; }
ea04106b 21257
ea04106b 21258
e10b0808 21259cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
21260/* confdefs.h. */
21261_ACEOF
21262cat confdefs.h >>conftest.$ac_ext
21263cat >>conftest.$ac_ext <<_ACEOF
21264/* end confdefs.h. */
ea04106b 21265
e10b0808 21266
42f7b73b 21267 #include <linux/iversion.h>
22929307 21268
ea04106b
AX
21269int
21270main (void)
21271{
21272
42f7b73b
AX
21273 struct inode inode;
21274 inode_set_iversion(&inode, 1);
ea04106b
AX
21275
21276 ;
21277 return 0;
21278}
21279
21280_ACEOF
21281
21282
21283
21284cat - <<_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
42f7b73b 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'
cae5b340 21294 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
21295 (eval $ac_try) 2>&5
21296 ac_status=$?
cae5b340
AX
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
ea04106b
AX
21300 (eval $ac_try) 2>&5
21301 ac_status=$?
cae5b340
AX
21302 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21303 (exit $ac_status); }; }; then
ea04106b 21304
cae5b340 21305 { $as_echo "$as_me:$LINENO: result: yes" >&5
e10b0808 21306$as_echo "yes" >&6; }
ea04106b 21307
cae5b340 21308cat >>confdefs.h <<\_ACEOF
42f7b73b 21309#define HAVE_INODE_SET_IVERSION 1
cae5b340 21310_ACEOF
ea04106b
AX
21311
21312
68d83c55
AX
21313else
21314 $as_echo "$as_me: failed program was:" >&5
21315sed 's/^/| /' conftest.$ac_ext >&5
ea04106b 21316
cae5b340 21317 { $as_echo "$as_me:$LINENO: result: no" >&5
68d83c55 21318$as_echo "no" >&6; }
ea04106b 21319
22929307
AX
21320
21321
21322fi
cae5b340 21323
22929307
AX
21324 rm -Rf build
21325
21326
21327
21328
42f7b73b
AX
21329 { $as_echo "$as_me:$LINENO: checking whether uncached_acl_sentinel() exists" >&5
21330$as_echo_n "checking whether uncached_acl_sentinel() exists... " >&6; }
ea04106b
AX
21331
21332
e10b0808 21333cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
21334/* confdefs.h. */
21335_ACEOF
21336cat confdefs.h >>conftest.$ac_ext
21337cat >>conftest.$ac_ext <<_ACEOF
21338/* end confdefs.h. */
ea04106b 21339
ea04106b 21340
68d83c55 21341 #include <linux/fs.h>
22929307 21342
ea04106b
AX
21343int
21344main (void)
21345{
21346
42f7b73b 21347 void *sentinel __attribute__ ((unused)) = uncached_acl_sentinel(NULL);
ea04106b
AX
21348
21349 ;
21350 return 0;
21351}
21352
21353_ACEOF
21354
21355
21356
21357cat - <<_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
42f7b73b 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'
cae5b340 21367 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
21368 (eval $ac_try) 2>&5
21369 ac_status=$?
cae5b340
AX
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
ea04106b
AX
21373 (eval $ac_try) 2>&5
21374 ac_status=$?
cae5b340
AX
21375 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21376 (exit $ac_status); }; }; then
e10b0808 21377
cae5b340 21378 { $as_echo "$as_me:$LINENO: result: yes" >&5
e10b0808
AX
21379$as_echo "yes" >&6; }
21380
cae5b340 21381cat >>confdefs.h <<\_ACEOF
42f7b73b 21382#define HAVE_KERNEL_GET_ACL_HANDLE_CACHE 1
cae5b340 21383_ACEOF
e10b0808
AX
21384
21385
68d83c55
AX
21386else
21387 $as_echo "$as_me: failed program was:" >&5
21388sed 's/^/| /' conftest.$ac_ext >&5
e10b0808 21389
cae5b340 21390 { $as_echo "$as_me:$LINENO: result: no" >&5
68d83c55 21391$as_echo "no" >&6; }
22929307
AX
21392
21393
21394
21395fi
cae5b340 21396
22929307
AX
21397 rm -Rf build
21398
21399
21400
21401
42f7b73b
AX
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
e10b0808
AX
21405
21406
21407cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
21408/* confdefs.h. */
21409_ACEOF
21410cat confdefs.h >>conftest.$ac_ext
21411cat >>conftest.$ac_ext <<_ACEOF
21412/* end confdefs.h. */
e10b0808
AX
21413
21414
68d83c55 21415 #include <linux/fs.h>
22929307 21416
42f7b73b
AX
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
ea04106b
AX
21422int
21423main (void)
21424{
21425
21426
21427 ;
21428 return 0;
21429}
21430
21431_ACEOF
21432
21433
21434
21435cat - <<_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
42f7b73b 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'
cae5b340 21445 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
21446 (eval $ac_try) 2>&5
21447 ac_status=$?
cae5b340
AX
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
ea04106b
AX
21451 (eval $ac_try) 2>&5
21452 ac_status=$?
cae5b340
AX
21453 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21454 (exit $ac_status); }; }; then
68d83c55 21455
cae5b340 21456 { $as_echo "$as_me:$LINENO: result: yes" >&5
68d83c55
AX
21457$as_echo "yes" >&6; }
21458
cae5b340 21459cat >>confdefs.h <<\_ACEOF
42f7b73b 21460#define HAVE_SHOW_OPTIONS_WITH_DENTRY 1
cae5b340 21461_ACEOF
68d83c55
AX
21462
21463
ea04106b
AX
21464else
21465 $as_echo "$as_me: failed program was:" >&5
21466sed 's/^/| /' conftest.$ac_ext >&5
68d83c55 21467
cae5b340 21468 { $as_echo "$as_me:$LINENO: result: no" >&5
22929307 21469$as_echo "no" >&6; }
68d83c55
AX
21470
21471
21472
21473fi
cae5b340 21474
68d83c55 21475 rm -Rf build
ea04106b
AX
21476
21477
21478
21479
42f7b73b
AX
21480 { $as_echo "$as_me:$LINENO: checking whether file_inode() is available" >&5
21481$as_echo_n "checking whether file_inode() is available... " >&6; }
ea04106b
AX
21482
21483
21484cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
21485/* confdefs.h. */
21486_ACEOF
21487cat confdefs.h >>conftest.$ac_ext
21488cat >>conftest.$ac_ext <<_ACEOF
21489/* end confdefs.h. */
ea04106b
AX
21490
21491
22929307 21492 #include <linux/fs.h>
ea04106b 21493
ea04106b
AX
21494int
21495main (void)
21496{
21497
cae5b340 21498 struct file *f = NULL;
42f7b73b 21499 file_inode(f);
ea04106b
AX
21500
21501 ;
21502 return 0;
21503}
21504
21505_ACEOF
21506
21507
21508
21509cat - <<_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
42f7b73b 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'
cae5b340 21519 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
21520 (eval $ac_try) 2>&5
21521 ac_status=$?
cae5b340
AX
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
ea04106b
AX
21525 (eval $ac_try) 2>&5
21526 ac_status=$?
cae5b340
AX
21527 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21528 (exit $ac_status); }; }; then
68d83c55 21529
cae5b340 21530 { $as_echo "$as_me:$LINENO: result: yes" >&5
22929307 21531$as_echo "yes" >&6; }
68d83c55 21532
cae5b340 21533cat >>confdefs.h <<\_ACEOF
42f7b73b 21534#define HAVE_FILE_INODE 1
cae5b340 21535_ACEOF
68d83c55
AX
21536
21537
e10b0808
AX
21538else
21539 $as_echo "$as_me: failed program was:" >&5
21540sed 's/^/| /' conftest.$ac_ext >&5
ea04106b 21541
cae5b340 21542 { $as_echo "$as_me:$LINENO: result: no" >&5
22929307 21543$as_echo "no" >&6; }
cae5b340
AX
21544
21545
21546
21547fi
21548
21549 rm -Rf build
21550
21551
21552
21553
42f7b73b
AX
21554 { $as_echo "$as_me:$LINENO: checking whether file_dentry() is available" >&5
21555$as_echo_n "checking whether file_dentry() is available... " >&6; }
ea04106b 21556
ea04106b 21557
68d83c55 21558cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
21559/* confdefs.h. */
21560_ACEOF
21561cat confdefs.h >>conftest.$ac_ext
21562cat >>conftest.$ac_ext <<_ACEOF
21563/* end confdefs.h. */
ea04106b 21564
ea04106b 21565
cae5b340
AX
21566 #include <linux/fs.h>
21567
68d83c55
AX
21568int
21569main (void)
21570{
e10b0808 21571
42f7b73b
AX
21572 struct file *f = NULL;
21573 file_dentry(f);
e10b0808 21574
68d83c55
AX
21575 ;
21576 return 0;
21577}
ea04106b 21578
68d83c55 21579_ACEOF
ea04106b 21580
ea04106b
AX
21581
21582
68d83c55 21583cat - <<_ACEOF >conftest.h
ea04106b 21584
68d83c55 21585_ACEOF
ea04106b 21586
ea04106b 21587
68d83c55
AX
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
42f7b73b 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'
cae5b340 21593 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
68d83c55
AX
21594 (eval $ac_try) 2>&5
21595 ac_status=$?
cae5b340
AX
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
68d83c55
AX
21599 (eval $ac_try) 2>&5
21600 ac_status=$?
cae5b340
AX
21601 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21602 (exit $ac_status); }; }; then
ea04106b 21603
42f7b73b
AX
21604 { $as_echo "$as_me:$LINENO: result: yes" >&5
21605$as_echo "yes" >&6; }
68d83c55 21606
cae5b340 21607cat >>confdefs.h <<\_ACEOF
42f7b73b 21608#define HAVE_FILE_DENTRY 1
cae5b340 21609_ACEOF
68d83c55
AX
21610
21611
21612else
21613 $as_echo "$as_me: failed program was:" >&5
21614sed 's/^/| /' conftest.$ac_ext >&5
ea04106b 21615
42f7b73b
AX
21616 { $as_echo "$as_me:$LINENO: result: no" >&5
21617$as_echo "no" >&6; }
22929307 21618
cae5b340
AX
21619
21620
21621fi
21622
21623 rm -Rf build
21624
21625
21626
21627
42f7b73b
AX
21628 { $as_echo "$as_me:$LINENO: checking whether fops->fsync() wants" >&5
21629$as_echo_n "checking whether fops->fsync() wants... " >&6; }
21630
ea04106b 21631
ea04106b 21632
e10b0808 21633cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
21634/* confdefs.h. */
21635_ACEOF
21636cat confdefs.h >>conftest.$ac_ext
21637cat >>conftest.$ac_ext <<_ACEOF
21638/* end confdefs.h. */
ea04106b 21639
e10b0808 21640
22929307 21641 #include <linux/fs.h>
cae5b340 21642
42f7b73b
AX
21643 int test_fsync(struct file *f, struct dentry *dentry, int x)
21644 { return 0; }
cae5b340
AX
21645
21646 static const struct file_operations
21647 fops __attribute__ ((unused)) = {
21648 .fsync = test_fsync,
22929307 21649 };
ea04106b
AX
21650
21651int
21652main (void)
21653{
21654
21655
21656 ;
21657 return 0;
21658}
21659
21660_ACEOF
21661
21662
21663
21664cat - <<_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
42f7b73b 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'
cae5b340 21674 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
21675 (eval $ac_try) 2>&5
21676 ac_status=$?
cae5b340
AX
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
ea04106b
AX
21680 (eval $ac_try) 2>&5
21681 ac_status=$?
cae5b340
AX
21682 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21683 (exit $ac_status); }; }; then
68d83c55 21684
42f7b73b
AX
21685 { $as_echo "$as_me:$LINENO: result: dentry" >&5
21686$as_echo "dentry" >&6; }
68d83c55 21687
cae5b340 21688cat >>confdefs.h <<\_ACEOF
42f7b73b 21689#define HAVE_FSYNC_WITH_DENTRY 1
cae5b340 21690_ACEOF
68d83c55
AX
21691
21692
e10b0808
AX
21693else
21694 $as_echo "$as_me: failed program was:" >&5
21695sed 's/^/| /' conftest.$ac_ext >&5
68d83c55 21696
cae5b340
AX
21697
21698
21699
21700fi
21701
21702 rm -Rf build
21703
21704
21705
21706
ea04106b
AX
21707
21708
21709cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
21710/* confdefs.h. */
21711_ACEOF
21712cat confdefs.h >>conftest.$ac_ext
21713cat >>conftest.$ac_ext <<_ACEOF
21714/* end confdefs.h. */
ea04106b
AX
21715
21716
68d83c55 21717 #include <linux/fs.h>
cae5b340 21718
42f7b73b 21719 int test_fsync(struct file *f, int x) { return 0; }
cae5b340
AX
21720
21721 static const struct file_operations
21722 fops __attribute__ ((unused)) = {
21723 .fsync = test_fsync,
21724 };
ea04106b
AX
21725
21726int
21727main (void)
21728{
21729
21730
21731 ;
21732 return 0;
21733}
21734
21735_ACEOF
21736
21737
21738
21739cat - <<_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
42f7b73b 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'
cae5b340
AX
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
42f7b73b
AX
21760 { $as_echo "$as_me:$LINENO: result: no dentry" >&5
21761$as_echo "no dentry" >&6; }
cae5b340
AX
21762
21763cat >>confdefs.h <<\_ACEOF
42f7b73b 21764#define HAVE_FSYNC_WITHOUT_DENTRY 1
cae5b340 21765_ACEOF
22929307
AX
21766
21767
cae5b340
AX
21768else
21769 $as_echo "$as_me: failed program was:" >&5
21770sed 's/^/| /' conftest.$ac_ext >&5
21771
ea04106b
AX
21772
21773
21774
21775fi
cae5b340 21776
ea04106b
AX
21777 rm -Rf build
21778
21779
21780
21781
ea04106b
AX
21782
21783
21784cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
21785/* confdefs.h. */
21786_ACEOF
21787cat confdefs.h >>conftest.$ac_ext
21788cat >>conftest.$ac_ext <<_ACEOF
21789/* end confdefs.h. */
ea04106b
AX
21790
21791
cae5b340
AX
21792 #include <linux/fs.h>
21793
42f7b73b
AX
21794 int test_fsync(struct file *f, loff_t a, loff_t b, int c)
21795 { return 0; }
cae5b340 21796
42f7b73b
AX
21797 static const struct file_operations
21798 fops __attribute__ ((unused)) = {
21799 .fsync = test_fsync,
cae5b340 21800 };
ea04106b
AX
21801
21802int
21803main (void)
21804{
21805
e10b0808
AX
21806
21807 ;
ea04106b
AX
21808 return 0;
21809}
21810
21811_ACEOF
21812
21813
21814
21815cat - <<_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
42f7b73b 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'
cae5b340 21825 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
21826 (eval $ac_try) 2>&5
21827 ac_status=$?
cae5b340
AX
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
ea04106b
AX
21831 (eval $ac_try) 2>&5
21832 ac_status=$?
cae5b340
AX
21833 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21834 (exit $ac_status); }; }; then
ea04106b 21835
42f7b73b
AX
21836 { $as_echo "$as_me:$LINENO: result: range" >&5
21837$as_echo "range" >&6; }
ea04106b 21838
cae5b340 21839cat >>confdefs.h <<\_ACEOF
42f7b73b 21840#define HAVE_FSYNC_RANGE 1
cae5b340 21841_ACEOF
ea04106b
AX
21842
21843
21844else
21845 $as_echo "$as_me: failed program was:" >&5
21846sed 's/^/| /' conftest.$ac_ext >&5
21847
cae5b340
AX
21848
21849
21850
21851fi
21852
21853 rm -Rf build
21854
21855
21856
21857
22929307 21858
42f7b73b
AX
21859 { $as_echo "$as_me:$LINENO: checking whether sops->evict_inode() exists" >&5
21860$as_echo_n "checking whether sops->evict_inode() exists... " >&6; }
22929307
AX
21861
21862
21863cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
21864/* confdefs.h. */
21865_ACEOF
21866cat confdefs.h >>conftest.$ac_ext
21867cat >>conftest.$ac_ext <<_ACEOF
21868/* end confdefs.h. */
22929307
AX
21869
21870
cae5b340 21871 #include <linux/fs.h>
42f7b73b
AX
21872 void evict_inode (struct inode * t) { return; }
21873 static struct super_operations sops __attribute__ ((unused)) = {
21874 .evict_inode = evict_inode,
cae5b340 21875 };
22929307
AX
21876
21877int
21878main (void)
21879{
21880
21881
21882 ;
21883 return 0;
21884}
21885
21886_ACEOF
21887
21888
21889
21890cat - <<_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
42f7b73b 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'
cae5b340 21900 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22929307
AX
21901 (eval $ac_try) 2>&5
21902 ac_status=$?
cae5b340
AX
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
22929307
AX
21906 (eval $ac_try) 2>&5
21907 ac_status=$?
cae5b340
AX
21908 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21909 (exit $ac_status); }; }; then
22929307 21910
cae5b340 21911 { $as_echo "$as_me:$LINENO: result: yes" >&5
22929307
AX
21912$as_echo "yes" >&6; }
21913
cae5b340 21914cat >>confdefs.h <<\_ACEOF
42f7b73b 21915#define HAVE_EVICT_INODE 1
cae5b340 21916_ACEOF
22929307
AX
21917
21918
21919else
21920 $as_echo "$as_me: failed program was:" >&5
21921sed 's/^/| /' conftest.$ac_ext >&5
21922
cae5b340
AX
21923 { $as_echo "$as_me:$LINENO: result: no" >&5
21924$as_echo "no" >&6; }
22929307
AX
21925
21926
21927
21928fi
22929307 21929
22929307
AX
21930 rm -Rf build
21931
21932
21933
21934
42f7b73b
AX
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; }
22929307
AX
21937
21938
21939cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
21940/* confdefs.h. */
21941_ACEOF
21942cat confdefs.h >>conftest.$ac_ext
21943cat >>conftest.$ac_ext <<_ACEOF
21944/* end confdefs.h. */
22929307
AX
21945
21946
21947 #include <linux/fs.h>
cae5b340 21948
42f7b73b 21949 void dirty_inode(struct inode *a, int b) { return; }
cae5b340 21950
42f7b73b
AX
21951 static const struct super_operations
21952 sops __attribute__ ((unused)) = {
21953 .dirty_inode = dirty_inode,
22929307
AX
21954 };
21955
21956int
21957main (void)
21958{
21959
21960
21961 ;
21962 return 0;
21963}
21964
21965_ACEOF
21966
21967
21968
21969cat - <<_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
42f7b73b 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'
cae5b340 21979 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22929307
AX
21980 (eval $ac_try) 2>&5
21981 ac_status=$?
cae5b340
AX
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
22929307
AX
21985 (eval $ac_try) 2>&5
21986 ac_status=$?
cae5b340
AX
21987 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21988 (exit $ac_status); }; }; then
22929307 21989
cae5b340 21990 { $as_echo "$as_me:$LINENO: result: yes" >&5
22929307
AX
21991$as_echo "yes" >&6; }
21992
cae5b340 21993cat >>confdefs.h <<\_ACEOF
42f7b73b 21994#define HAVE_DIRTY_INODE_WITH_FLAGS 1
cae5b340 21995_ACEOF
22929307
AX
21996
21997
21998else
21999 $as_echo "$as_me: failed program was:" >&5
22000sed 's/^/| /' conftest.$ac_ext >&5
22001
cae5b340 22002 { $as_echo "$as_me:$LINENO: result: no" >&5
22929307
AX
22003$as_echo "no" >&6; }
22004
22005
22006
22007fi
cae5b340 22008
22929307
AX
22009 rm -Rf build
22010
22011
22012
22013
42f7b73b
AX
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; }
22929307
AX
22016
22017
22018cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
22019/* confdefs.h. */
22020_ACEOF
22021cat confdefs.h >>conftest.$ac_ext
22022cat >>conftest.$ac_ext <<_ACEOF
22023/* end confdefs.h. */
22929307
AX
22024
22025
cae5b340
AX
22026 #include <linux/fs.h>
22027
42f7b73b 22028 int nr_cached_objects(struct super_block *sb) { return 0; }
cae5b340 22029
42f7b73b
AX
22030 static const struct super_operations
22031 sops __attribute__ ((unused)) = {
22032 .nr_cached_objects = nr_cached_objects,
22929307
AX
22033 };
22034
22035int
22036main (void)
22037{
22038
22039
22040 ;
22041 return 0;
22042}
22043
22044_ACEOF
22045
22046
22047
22048cat - <<_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
42f7b73b 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'
cae5b340 22058 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22929307
AX
22059 (eval $ac_try) 2>&5
22060 ac_status=$?
cae5b340
AX
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
22929307
AX
22064 (eval $ac_try) 2>&5
22065 ac_status=$?
cae5b340
AX
22066 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22067 (exit $ac_status); }; }; then
22929307 22068
cae5b340 22069 { $as_echo "$as_me:$LINENO: result: yes" >&5
22929307
AX
22070$as_echo "yes" >&6; }
22071
cae5b340 22072cat >>confdefs.h <<\_ACEOF
42f7b73b 22073#define HAVE_NR_CACHED_OBJECTS 1
cae5b340 22074_ACEOF
22929307
AX
22075
22076
22077else
22078 $as_echo "$as_me: failed program was:" >&5
22079sed 's/^/| /' conftest.$ac_ext >&5
22080
cae5b340 22081 { $as_echo "$as_me:$LINENO: result: no" >&5
22929307
AX
22082$as_echo "no" >&6; }
22083
22084
22085
22086fi
cae5b340 22087
22929307
AX
22088 rm -Rf build
22089
22090
22091
22092
42f7b73b
AX
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; }
22929307
AX
22095
22096
22097cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
22098/* confdefs.h. */
22099_ACEOF
22100cat confdefs.h >>conftest.$ac_ext
22101cat >>conftest.$ac_ext <<_ACEOF
22102/* end confdefs.h. */
22929307
AX
22103
22104
cae5b340
AX
22105 #include <linux/fs.h>
22106
42f7b73b
AX
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,
22929307 22113 };
ea04106b
AX
22114
22115int
22116main (void)
22117{
22118
22119
22120 ;
22121 return 0;
22122}
22123
22124_ACEOF
22125
22126
22127
22128cat - <<_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
42f7b73b 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'
cae5b340 22138 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
22139 (eval $ac_try) 2>&5
22140 ac_status=$?
cae5b340
AX
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
ea04106b
AX
22144 (eval $ac_try) 2>&5
22145 ac_status=$?
cae5b340
AX
22146 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22147 (exit $ac_status); }; }; then
68d83c55 22148
cae5b340 22149 { $as_echo "$as_me:$LINENO: result: yes" >&5
68d83c55
AX
22150$as_echo "yes" >&6; }
22151
cae5b340 22152cat >>confdefs.h <<\_ACEOF
42f7b73b 22153#define HAVE_FREE_CACHED_OBJECTS 1
cae5b340 22154_ACEOF
68d83c55
AX
22155
22156
22157else
22158 $as_echo "$as_me: failed program was:" >&5
22159sed 's/^/| /' conftest.$ac_ext >&5
22160
cae5b340 22161 { $as_echo "$as_me:$LINENO: result: no" >&5
68d83c55
AX
22162$as_echo "no" >&6; }
22163
22164
22165
22166fi
cae5b340 22167
68d83c55
AX
22168 rm -Rf build
22169
22170
22171
22172
42f7b73b
AX
22173
22174 { $as_echo "$as_me:$LINENO: checking whether fops->fallocate() exists" >&5
22175$as_echo_n "checking whether fops->fallocate() exists... " >&6; }
68d83c55
AX
22176
22177
22178cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
22179/* confdefs.h. */
22180_ACEOF
22181cat confdefs.h >>conftest.$ac_ext
22182cat >>conftest.$ac_ext <<_ACEOF
22183/* end confdefs.h. */
68d83c55
AX
22184
22185
cae5b340
AX
22186 #include <linux/fs.h>
22187
42f7b73b
AX
22188 long test_fallocate(struct file *file, int mode,
22189 loff_t offset, loff_t len) { return 0; }
cae5b340 22190
42f7b73b
AX
22191 static const struct file_operations
22192 fops __attribute__ ((unused)) = {
22193 .fallocate = test_fallocate,
68d83c55
AX
22194 };
22195
22196int
22197main (void)
22198{
22199
22200
22201 ;
22202 return 0;
22203}
22204
22205_ACEOF
22206
22207
22208
22209cat - <<_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
42f7b73b 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'
cae5b340 22219 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
68d83c55
AX
22220 (eval $ac_try) 2>&5
22221 ac_status=$?
cae5b340
AX
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
68d83c55
AX
22225 (eval $ac_try) 2>&5
22226 ac_status=$?
cae5b340
AX
22227 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22228 (exit $ac_status); }; }; then
68d83c55 22229
cae5b340 22230 { $as_echo "$as_me:$LINENO: result: yes" >&5
68d83c55
AX
22231$as_echo "yes" >&6; }
22232
cae5b340 22233cat >>confdefs.h <<\_ACEOF
42f7b73b 22234#define HAVE_FILE_FALLOCATE 1
cae5b340 22235_ACEOF
68d83c55
AX
22236
22237
22238else
22239 $as_echo "$as_me: failed program was:" >&5
22240sed 's/^/| /' conftest.$ac_ext >&5
22241
cae5b340 22242 { $as_echo "$as_me:$LINENO: result: no" >&5
68d83c55
AX
22243$as_echo "no" >&6; }
22244
22245
22246
22247fi
cae5b340 22248
68d83c55
AX
22249 rm -Rf build
22250
22251
22252
68d83c55 22253
42f7b73b
AX
22254 { $as_echo "$as_me:$LINENO: checking whether iops->fallocate() exists" >&5
22255$as_echo_n "checking whether iops->fallocate() exists... " >&6; }
68d83c55
AX
22256
22257
22258cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
22259/* confdefs.h. */
22260_ACEOF
22261cat confdefs.h >>conftest.$ac_ext
22262cat >>conftest.$ac_ext <<_ACEOF
22263/* end confdefs.h. */
68d83c55
AX
22264
22265
22266 #include <linux/fs.h>
22267
42f7b73b
AX
22268 long test_fallocate(struct inode *inode, int mode,
22269 loff_t offset, loff_t len) { return 0; }
cae5b340 22270
42f7b73b
AX
22271 static const struct inode_operations
22272 fops __attribute__ ((unused)) = {
22273 .fallocate = test_fallocate,
cae5b340
AX
22274 };
22275
68d83c55
AX
22276int
22277main (void)
22278{
22279
68d83c55
AX
22280
22281 ;
22282 return 0;
22283}
22284
22285_ACEOF
22286
22287
22288
22289cat - <<_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
42f7b73b 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'
cae5b340 22299 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
68d83c55
AX
22300 (eval $ac_try) 2>&5
22301 ac_status=$?
cae5b340
AX
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
68d83c55
AX
22305 (eval $ac_try) 2>&5
22306 ac_status=$?
cae5b340
AX
22307 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22308 (exit $ac_status); }; }; then
ea04106b 22309
cae5b340
AX
22310 { $as_echo "$as_me:$LINENO: result: yes" >&5
22311$as_echo "yes" >&6; }
ea04106b 22312
cae5b340 22313cat >>confdefs.h <<\_ACEOF
42f7b73b 22314#define HAVE_INODE_FALLOCATE 1
cae5b340 22315_ACEOF
e10b0808 22316
e10b0808 22317
cae5b340
AX
22318else
22319 $as_echo "$as_me: failed program was:" >&5
22320sed 's/^/| /' conftest.$ac_ext >&5
ea04106b 22321
cae5b340 22322 { $as_echo "$as_me:$LINENO: result: no" >&5
e10b0808 22323$as_echo "no" >&6; }
ea04106b 22324
ea04106b
AX
22325
22326
cae5b340 22327fi
ea04106b 22328
cae5b340 22329 rm -Rf build
ea04106b 22330
e10b0808
AX
22331
22332
22333
42f7b73b
AX
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; }
ea04106b
AX
22337
22338
22339cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
22340/* confdefs.h. */
22341_ACEOF
22342cat confdefs.h >>conftest.$ac_ext
22343cat >>conftest.$ac_ext <<_ACEOF
22344/* end confdefs.h. */
ea04106b
AX
22345
22346
68d83c55 22347 #include <linux/fs.h>
ea04106b 22348
42f7b73b
AX
22349 static const struct file_operations
22350 fops __attribute__ ((unused)) = {
22351 .aio_fsync = NULL,
cae5b340
AX
22352 };
22353
ea04106b
AX
22354int
22355main (void)
22356{
22357
22358
22359 ;
22360 return 0;
22361}
22362
22363_ACEOF
22364
22365
22366
22367cat - <<_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
42f7b73b 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'
cae5b340 22377 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
22378 (eval $ac_try) 2>&5
22379 ac_status=$?
cae5b340
AX
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
ea04106b
AX
22383 (eval $ac_try) 2>&5
22384 ac_status=$?
cae5b340
AX
22385 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22386 (exit $ac_status); }; }; then
ea04106b 22387
cae5b340
AX
22388 { $as_echo "$as_me:$LINENO: result: yes" >&5
22389$as_echo "yes" >&6; }
4d815aed 22390
cae5b340 22391cat >>confdefs.h <<\_ACEOF
42f7b73b 22392#define HAVE_FILE_AIO_FSYNC 1
cae5b340 22393_ACEOF
4d815aed 22394
4d815aed 22395
cae5b340
AX
22396else
22397 $as_echo "$as_me: failed program was:" >&5
22398sed 's/^/| /' conftest.$ac_ext >&5
ea04106b 22399
cae5b340 22400 { $as_echo "$as_me:$LINENO: result: no" >&5
ea04106b
AX
22401$as_echo "no" >&6; }
22402
22403
22404
cae5b340 22405fi
ea04106b 22406
cae5b340 22407 rm -Rf build
ea04106b 22408
4d815aed 22409
ea04106b 22410
ea04106b 22411
42f7b73b
AX
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; }
ea04106b
AX
22414
22415
22416cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
22417/* confdefs.h. */
22418_ACEOF
22419cat confdefs.h >>conftest.$ac_ext
22420cat >>conftest.$ac_ext <<_ACEOF
22421/* end confdefs.h. */
ea04106b
AX
22422
22423
68d83c55 22424 #include <linux/fs.h>
42f7b73b
AX
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,
cae5b340 22432 };
ea04106b
AX
22433
22434int
22435main (void)
22436{
22437
4d815aed
AX
22438
22439 ;
ea04106b
AX
22440 return 0;
22441}
22442
22443_ACEOF
22444
22445
22446
22447cat - <<_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
42f7b73b 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'
cae5b340 22457 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
22458 (eval $ac_try) 2>&5
22459 ac_status=$?
cae5b340
AX
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
ea04106b
AX
22463 (eval $ac_try) 2>&5
22464 ac_status=$?
cae5b340
AX
22465 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22466 (exit $ac_status); }; }; then
ea04106b 22467
cae5b340 22468 { $as_echo "$as_me:$LINENO: result: yes" >&5
68d83c55 22469$as_echo "yes" >&6; }
ea04106b 22470
cae5b340 22471cat >>confdefs.h <<\_ACEOF
42f7b73b 22472#define HAVE_MKDIR_UMODE_T 1
cae5b340 22473_ACEOF
68d83c55 22474
ea04106b 22475
cae5b340
AX
22476else
22477 $as_echo "$as_me: failed program was:" >&5
22478sed 's/^/| /' conftest.$ac_ext >&5
ea04106b 22479
42f7b73b 22480 { $as_echo "$as_me:$LINENO: result: no" >&5
cae5b340 22481$as_echo "no" >&6; }
ea04106b 22482
ea04106b
AX
22483
22484
42f7b73b 22485fi
ea04106b 22486
42f7b73b 22487 rm -Rf build
ea04106b 22488
68d83c55 22489
ea04106b 22490
4d815aed 22491
42f7b73b
AX
22492 { $as_echo "$as_me:$LINENO: checking whether iops->lookup() passes nameidata" >&5
22493$as_echo_n "checking whether iops->lookup() passes nameidata... " >&6; }
ea04106b
AX
22494
22495
22496cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
22497/* confdefs.h. */
22498_ACEOF
22499cat confdefs.h >>conftest.$ac_ext
22500cat >>conftest.$ac_ext <<_ACEOF
22501/* end confdefs.h. */
ea04106b
AX
22502
22503
cae5b340 22504 #include <linux/fs.h>
42f7b73b 22505 #include <linux/sched.h>
ea04106b 22506
42f7b73b
AX
22507 struct dentry *inode_lookup(struct inode *inode,
22508 struct dentry *dentry, struct nameidata *nidata)
22509 { return NULL; }
ea04106b 22510
42f7b73b
AX
22511 static const struct inode_operations iops
22512 __attribute__ ((unused)) = {
22513 .lookup = inode_lookup,
22514 };
ea04106b
AX
22515
22516int
22517main (void)
22518{
22519
ea04106b
AX
22520
22521 ;
22522 return 0;
22523}
22524
22525_ACEOF
22526
22527
22528
22529cat - <<_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
42f7b73b 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'
cae5b340 22539 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
22540 (eval $ac_try) 2>&5
22541 ac_status=$?
cae5b340
AX
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
ea04106b
AX
22545 (eval $ac_try) 2>&5
22546 ac_status=$?
cae5b340
AX
22547 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22548 (exit $ac_status); }; }; then
22549
42f7b73b 22550 { $as_echo "$as_me:$LINENO: result: yes" >&5
cae5b340
AX
22551$as_echo "yes" >&6; }
22552
22553cat >>confdefs.h <<\_ACEOF
42f7b73b 22554#define HAVE_LOOKUP_NAMEIDATA 1
cae5b340
AX
22555_ACEOF
22556
22557
68d83c55
AX
22558else
22559 $as_echo "$as_me: failed program was:" >&5
22560sed 's/^/| /' conftest.$ac_ext >&5
cae5b340 22561
42f7b73b
AX
22562 { $as_echo "$as_me:$LINENO: result: no" >&5
22563$as_echo "no" >&6; }
cae5b340
AX
22564
22565
22566
22567fi
22568
22569 rm -Rf build
22570
ea04106b 22571
ea04106b 22572
68d83c55 22573
42f7b73b
AX
22574 { $as_echo "$as_me:$LINENO: checking whether iops->create() passes nameidata" >&5
22575$as_echo_n "checking whether iops->create() passes nameidata... " >&6; }
ea04106b
AX
22576
22577
22578cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
22579/* confdefs.h. */
22580_ACEOF
22581cat confdefs.h >>conftest.$ac_ext
22582cat >>conftest.$ac_ext <<_ACEOF
22583/* end confdefs.h. */
ea04106b
AX
22584
22585
42f7b73b
AX
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; }
cae5b340 22595 #endif
ea04106b 22596
42f7b73b
AX
22597 static const struct inode_operations
22598 iops __attribute__ ((unused)) = {
22599 .create = inode_create,
22600 };
22601
ea04106b
AX
22602int
22603main (void)
22604{
22605
ea04106b
AX
22606
22607 ;
22608 return 0;
22609}
22610
22611_ACEOF
22612
22613
22614
22615cat - <<_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
42f7b73b 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'
cae5b340 22625 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
22626 (eval $ac_try) 2>&5
22627 ac_status=$?
cae5b340
AX
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
ea04106b
AX
22631 (eval $ac_try) 2>&5
22632 ac_status=$?
cae5b340
AX
22633 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22634 (exit $ac_status); }; }; then
ea04106b 22635
42f7b73b
AX
22636 { $as_echo "$as_me:$LINENO: result: yes" >&5
22637$as_echo "yes" >&6; }
e10b0808 22638
cae5b340 22639cat >>confdefs.h <<\_ACEOF
42f7b73b 22640#define HAVE_CREATE_NAMEIDATA 1
cae5b340 22641_ACEOF
e10b0808 22642
e10b0808 22643
cae5b340
AX
22644else
22645 $as_echo "$as_me: failed program was:" >&5
22646sed 's/^/| /' conftest.$ac_ext >&5
ea04106b 22647
42f7b73b
AX
22648 { $as_echo "$as_me:$LINENO: result: no" >&5
22649$as_echo "no" >&6; }
22650
22651
22652
22653fi
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; }
ea04106b
AX
22662
22663
22664cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
22665/* confdefs.h. */
22666_ACEOF
22667cat confdefs.h >>conftest.$ac_ext
22668cat >>conftest.$ac_ext <<_ACEOF
22669/* end confdefs.h. */
ea04106b
AX
22670
22671
42f7b73b
AX
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 };
ea04106b
AX
22679
22680int
22681main (void)
22682{
22683
ea04106b
AX
22684
22685 ;
22686 return 0;
22687}
22688
22689_ACEOF
22690
22691
22692
22693cat - <<_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
42f7b73b 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'
cae5b340 22703 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
22704 (eval $ac_try) 2>&5
22705 ac_status=$?
cae5b340
AX
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
ea04106b
AX
22709 (eval $ac_try) 2>&5
22710 ac_status=$?
cae5b340
AX
22711 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22712 (exit $ac_status); }; }; then
4d815aed 22713
42f7b73b 22714 { $as_echo "$as_me:$LINENO: result: yes" >&5
4d815aed
AX
22715$as_echo "yes" >&6; }
22716
cae5b340 22717cat >>confdefs.h <<\_ACEOF
42f7b73b 22718#define HAVE_GET_LINK_DELAYED 1
cae5b340 22719_ACEOF
4d815aed
AX
22720
22721
ea04106b
AX
22722else
22723 $as_echo "$as_me: failed program was:" >&5
22724sed 's/^/| /' conftest.$ac_ext >&5
4d815aed 22725
42f7b73b 22726 { $as_echo "$as_me:$LINENO: result: no" >&5
4d815aed 22727$as_echo "no" >&6; }
42f7b73b
AX
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; }
e10b0808
AX
22730
22731
22732cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
22733/* confdefs.h. */
22734_ACEOF
22735cat confdefs.h >>conftest.$ac_ext
22736cat >>conftest.$ac_ext <<_ACEOF
22737/* end confdefs.h. */
e10b0808
AX
22738
22739
42f7b73b
AX
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 };
ea04106b
AX
22747
22748int
22749main (void)
22750{
22751
22752
22753 ;
22754 return 0;
22755}
22756
22757_ACEOF
22758
22759
22760
22761cat - <<_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
42f7b73b 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'
cae5b340 22771 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
22772 (eval $ac_try) 2>&5
22773 ac_status=$?
cae5b340
AX
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
ea04106b
AX
22777 (eval $ac_try) 2>&5
22778 ac_status=$?
cae5b340
AX
22779 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22780 (exit $ac_status); }; }; then
ea04106b 22781
42f7b73b 22782 { $as_echo "$as_me:$LINENO: result: yes" >&5
ea04106b
AX
22783$as_echo "yes" >&6; }
22784
cae5b340 22785cat >>confdefs.h <<\_ACEOF
42f7b73b 22786#define HAVE_GET_LINK_COOKIE 1
cae5b340 22787_ACEOF
ea04106b
AX
22788
22789
22790else
22791 $as_echo "$as_me: failed program was:" >&5
22792sed 's/^/| /' conftest.$ac_ext >&5
22793
42f7b73b
AX
22794 { $as_echo "$as_me:$LINENO: result: no" >&5
22795$as_echo "no" >&6; }
4d815aed 22796
42f7b73b
AX
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; }
ea04106b
AX
22799
22800
22801cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
22802/* confdefs.h. */
22803_ACEOF
22804cat confdefs.h >>conftest.$ac_ext
22805cat >>conftest.$ac_ext <<_ACEOF
22806/* end confdefs.h. */
ea04106b
AX
22807
22808
68d83c55 22809 #include <linux/fs.h>
42f7b73b
AX
22810 const char *follow_link(struct dentry *de,
22811 void **cookie) { return "symlink"; }
cae5b340
AX
22812 static struct inode_operations
22813 iops __attribute__ ((unused)) = {
42f7b73b 22814 .follow_link = follow_link,
cae5b340 22815 };
ea04106b
AX
22816
22817int
22818main (void)
22819{
22820
ea04106b
AX
22821
22822 ;
22823 return 0;
22824}
22825
22826_ACEOF
22827
22828
22829
22830cat - <<_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
42f7b73b 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'
cae5b340 22840 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
22841 (eval $ac_try) 2>&5
22842 ac_status=$?
cae5b340
AX
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
ea04106b
AX
22846 (eval $ac_try) 2>&5
22847 ac_status=$?
cae5b340
AX
22848 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22849 (exit $ac_status); }; }; then
ea04106b 22850
cae5b340
AX
22851 { $as_echo "$as_me:$LINENO: result: yes" >&5
22852$as_echo "yes" >&6; }
ea04106b 22853
cae5b340 22854cat >>confdefs.h <<\_ACEOF
42f7b73b 22855#define HAVE_FOLLOW_LINK_COOKIE 1
cae5b340 22856_ACEOF
ea04106b 22857
4d815aed 22858
cae5b340
AX
22859else
22860 $as_echo "$as_me: failed program was:" >&5
22861sed 's/^/| /' conftest.$ac_ext >&5
4d815aed 22862
42f7b73b 22863 { $as_echo "$as_me:$LINENO: result: no" >&5
e10b0808 22864$as_echo "no" >&6; }
42f7b73b
AX
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; }
ea04106b
AX
22867
22868
22869cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
22870/* confdefs.h. */
22871_ACEOF
22872cat confdefs.h >>conftest.$ac_ext
22873cat >>conftest.$ac_ext <<_ACEOF
22874/* end confdefs.h. */
ea04106b
AX
22875
22876
cae5b340 22877 #include <linux/fs.h>
42f7b73b
AX
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 };
ea04106b
AX
22884
22885int
22886main (void)
22887{
22888
ea04106b
AX
22889
22890 ;
22891 return 0;
22892}
22893
22894_ACEOF
22895
22896
22897
22898cat - <<_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
42f7b73b 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'
cae5b340 22908 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
22909 (eval $ac_try) 2>&5
22910 ac_status=$?
cae5b340
AX
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
ea04106b
AX
22914 (eval $ac_try) 2>&5
22915 ac_status=$?
cae5b340
AX
22916 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22917 (exit $ac_status); }; }; then
22918
42f7b73b 22919 { $as_echo "$as_me:$LINENO: result: yes" >&5
cae5b340
AX
22920$as_echo "yes" >&6; }
22921
22922cat >>confdefs.h <<\_ACEOF
42f7b73b 22923#define HAVE_FOLLOW_LINK_NAMEIDATA 1
cae5b340
AX
22924_ACEOF
22925
22926
ea04106b
AX
22927else
22928 $as_echo "$as_me: failed program was:" >&5
22929sed 's/^/| /' conftest.$ac_ext >&5
cae5b340 22930
42f7b73b
AX
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
22937fi
22938
22939 rm -Rf build
22940
22941
22942
22943
22944
22945fi
22946
22947 rm -Rf build
22948
22949
22950
22951
22952
22953
22954fi
22955
22956 rm -Rf build
22957
22958
cae5b340 22959
ea04106b
AX
22960
22961
22962fi
cae5b340 22963
ea04106b
AX
22964 rm -Rf build
22965
22966
ea04106b 22967
ea04106b 22968
ea04106b 22969
ea04106b 22970
cae5b340
AX
22971cat confdefs.h - <<_ACEOF >conftest.c
22972/* confdefs.h. */
22973_ACEOF
22974cat confdefs.h >>conftest.$ac_ext
22975cat >>conftest.$ac_ext <<_ACEOF
22976/* end confdefs.h. */
ea04106b 22977
ea04106b 22978
42f7b73b
AX
22979 #if !defined(HAVE_GET_LINK_DELAYED)
22980 #error "Expecting get_link() delayed done"
22981 #endif
cae5b340
AX
22982
22983int
22984main (void)
22985{
22986
22987
22988 ;
22989 return 0;
22990}
22991
22992_ACEOF
22993
22994
22995
22996cat - <<_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
42f7b73b 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'
cae5b340
AX
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
ea04106b 23016
ea04106b 23017
cae5b340 23018cat >>confdefs.h <<\_ACEOF
42f7b73b 23019#define HAVE_PUT_LINK_DELAYED 1
cae5b340 23020_ACEOF
ea04106b 23021
ea04106b 23022
cae5b340
AX
23023else
23024 $as_echo "$as_me: failed program was:" >&5
23025sed 's/^/| /' conftest.$ac_ext >&5
ea04106b 23026
42f7b73b
AX
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; }
4d815aed
AX
23029
23030
23031cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
23032/* confdefs.h. */
23033_ACEOF
23034cat confdefs.h >>conftest.$ac_ext
23035cat >>conftest.$ac_ext <<_ACEOF
23036/* end confdefs.h. */
4d815aed
AX
23037
23038
42f7b73b
AX
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 };
ea04106b
AX
23046
23047int
23048main (void)
23049{
23050
ea04106b
AX
23051
23052 ;
23053 return 0;
23054}
23055
23056_ACEOF
23057
23058
23059
23060cat - <<_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
42f7b73b
AX
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
23084cat >>confdefs.h <<\_ACEOF
23085#define HAVE_PUT_LINK_COOKIE 1
23086_ACEOF
23087
23088
23089else
23090 $as_echo "$as_me: failed program was:" >&5
23091sed '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
23099cat confdefs.h - <<_ACEOF >conftest.c
23100/* confdefs.h. */
23101_ACEOF
23102cat confdefs.h >>conftest.$ac_ext
23103cat >>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
23115int
23116main (void)
23117{
23118
23119
23120 ;
23121 return 0;
23122}
23123
23124_ACEOF
23125
23126
23127
23128cat - <<_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
23152cat >>confdefs.h <<\_ACEOF
23153#define HAVE_PUT_LINK_NAMEIDATA 1
23154_ACEOF
23155
23156
23157else
23158 $as_echo "$as_me: failed program was:" >&5
23159sed '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
23167fi
23168
23169 rm -Rf build
23170
23171
23172
23173
23174
23175fi
23176
23177 rm -Rf build
23178
23179
23180
23181
23182
23183fi
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
23194cat confdefs.h - <<_ACEOF >conftest.c
23195/* confdefs.h. */
23196_ACEOF
23197cat confdefs.h >>conftest.$ac_ext
23198cat >>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
23210int
23211main (void)
23212{
23213
23214
23215 ;
23216 return 0;
23217}
23218
23219_ACEOF
23220
23221
23222
23223cat - <<_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
23247cat >>confdefs.h <<\_ACEOF
23248#define HAVE_TMPFILE 1
23249_ACEOF
23250
23251
23252else
23253 $as_echo "$as_me: failed program was:" >&5
23254sed 's/^/| /' conftest.$ac_ext >&5
23255
23256 { $as_echo "$as_me:$LINENO: result: no" >&5
23257$as_echo "no" >&6; }
23258
23259
23260
23261fi
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
23272cat confdefs.h - <<_ACEOF >conftest.c
23273/* confdefs.h. */
23274_ACEOF
23275cat confdefs.h >>conftest.$ac_ext
23276cat >>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
23287int
23288main (void)
23289{
23290
23291
23292 ;
23293 return 0;
23294}
23295
23296_ACEOF
23297
23298
23299
23300cat - <<_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
23324cat >>confdefs.h <<\_ACEOF
23325#define HAVE_INODE_TRUNCATE_RANGE 1
23326_ACEOF
23327
23328
23329else
23330 $as_echo "$as_me: failed program was:" >&5
23331sed 's/^/| /' conftest.$ac_ext >&5
23332
23333 { $as_echo "$as_me:$LINENO: result: no" >&5
23334$as_echo "no" >&6; }
23335
23336
23337
23338fi
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
23349cat confdefs.h - <<_ACEOF >conftest.c
23350/* confdefs.h. */
23351_ACEOF
23352cat confdefs.h >>conftest.$ac_ext
23353cat >>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
23363int
23364main (void)
23365{
23366
23367
23368 ;
23369 return 0;
23370}
23371
23372_ACEOF
23373
23374
23375
23376cat - <<_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
23400cat >>confdefs.h <<\_ACEOF
23401#define HAVE_AUTOMOUNT 1
23402_ACEOF
23403
23404
23405else
23406 $as_echo "$as_me: failed program was:" >&5
23407sed 's/^/| /' conftest.$ac_ext >&5
23408
23409 { $as_echo "$as_me:$LINENO: result: no" >&5
23410$as_echo "no" >&6; }
23411
23412
23413
23414fi
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
23425cat confdefs.h - <<_ACEOF >conftest.c
23426/* confdefs.h. */
23427_ACEOF
23428cat confdefs.h >>conftest.$ac_ext
23429cat >>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
23440int
23441main (void)
23442{
23443
23444
23445 ;
23446 return 0;
23447}
23448
23449_ACEOF
23450
23451
23452
23453cat - <<_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'
cae5b340 23463 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
23464 (eval $ac_try) 2>&5
23465 ac_status=$?
cae5b340
AX
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
ea04106b
AX
23469 (eval $ac_try) 2>&5
23470 ac_status=$?
cae5b340
AX
23471 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23472 (exit $ac_status); }; }; then
ea04106b 23473
cae5b340 23474 { $as_echo "$as_me:$LINENO: result: yes" >&5
ea04106b
AX
23475$as_echo "yes" >&6; }
23476
cae5b340
AX
23477cat >>confdefs.h <<\_ACEOF
23478#define HAVE_ENCODE_FH_WITH_INODE 1
23479_ACEOF
ea04106b
AX
23480
23481
23482else
23483 $as_echo "$as_me: failed program was:" >&5
23484sed 's/^/| /' conftest.$ac_ext >&5
23485
cae5b340 23486 { $as_echo "$as_me:$LINENO: result: no" >&5
ea04106b
AX
23487$as_echo "no" >&6; }
23488
ea04106b
AX
23489
23490
4d815aed 23491fi
cae5b340 23492
4d815aed 23493 rm -Rf build
ea04106b
AX
23494
23495
e10b0808 23496
4d815aed 23497
cae5b340
AX
23498 { $as_echo "$as_me:$LINENO: checking whether eops->commit_metadata() exists" >&5
23499$as_echo_n "checking whether eops->commit_metadata() exists... " >&6; }
4d815aed
AX
23500
23501
23502cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
23503/* confdefs.h. */
23504_ACEOF
23505cat confdefs.h >>conftest.$ac_ext
23506cat >>conftest.$ac_ext <<_ACEOF
23507/* end confdefs.h. */
4d815aed
AX
23508
23509
cae5b340
AX
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 };
ea04106b
AX
23515
23516int
23517main (void)
23518{
23519
ea04106b
AX
23520
23521 ;
23522 return 0;
23523}
23524
23525_ACEOF
23526
23527
23528
23529cat - <<_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
42f7b73b 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'
cae5b340 23539 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
23540 (eval $ac_try) 2>&5
23541 ac_status=$?
cae5b340
AX
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
ea04106b
AX
23545 (eval $ac_try) 2>&5
23546 ac_status=$?
cae5b340
AX
23547 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23548 (exit $ac_status); }; }; then
ea04106b 23549
cae5b340 23550 { $as_echo "$as_me:$LINENO: result: yes" >&5
e10b0808 23551$as_echo "yes" >&6; }
ea04106b 23552
cae5b340
AX
23553cat >>confdefs.h <<\_ACEOF
23554#define HAVE_COMMIT_METADATA 1
23555_ACEOF
ea04106b 23556
ea04106b 23557
e10b0808
AX
23558else
23559 $as_echo "$as_me: failed program was:" >&5
23560sed 's/^/| /' conftest.$ac_ext >&5
ea04106b 23561
cae5b340 23562 { $as_echo "$as_me:$LINENO: result: no" >&5
ea04106b
AX
23563$as_echo "no" >&6; }
23564
ea04106b 23565
ea04106b 23566
e10b0808 23567fi
cae5b340 23568
e10b0808 23569 rm -Rf build
ea04106b 23570
ea04106b
AX
23571
23572
cae5b340
AX
23573 { $as_echo "$as_me:$LINENO: checking whether clear_inode() is available" >&5
23574$as_echo_n "checking whether clear_inode() is available... " >&6; }
ea04106b 23575
ea04106b
AX
23576
23577
23578cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
23579/* confdefs.h. */
23580_ACEOF
23581cat confdefs.h >>conftest.$ac_ext
23582cat >>conftest.$ac_ext <<_ACEOF
23583/* end confdefs.h. */
ea04106b
AX
23584
23585
4d815aed 23586 #include <linux/fs.h>
ea04106b
AX
23587
23588int
23589main (void)
23590{
23591
cae5b340 23592 clear_inode(NULL);
ea04106b
AX
23593
23594 ;
23595 return 0;
23596}
23597
23598_ACEOF
23599
23600
23601
23602cat - <<_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
42f7b73b 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'
cae5b340 23612 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
23613 (eval $ac_try) 2>&5
23614 ac_status=$?
cae5b340
AX
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
ea04106b
AX
23618 (eval $ac_try) 2>&5
23619 ac_status=$?
cae5b340
AX
23620 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23621 (exit $ac_status); }; }; then
4d815aed
AX
23622 rc=0
23623else
23624 $as_echo "$as_me: failed program was:" >&5
23625sed 's/^/| /' conftest.$ac_ext >&5
23626 rc=1
ea04106b 23627
ea04106b 23628
4d815aed 23629fi
cae5b340 23630
4d815aed 23631 rm -Rf build
ea04106b
AX
23632
23633
4d815aed
AX
23634 if test $rc -ne 0; then :
23635
cae5b340 23636 { $as_echo "$as_me:$LINENO: result: no" >&5
4d815aed
AX
23637$as_echo "no" >&6; }
23638
23639 else
23640 if test "x$enable_linux_builtin" != xyes; then
23641
cae5b340 23642 grep -q -E '[[:space:]]clear_inode[[:space:]]' \
4d815aed
AX
23643 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
23644 rc=$?
23645 if test $rc -ne 0; then
23646 export=0
cae5b340
AX
23647 for file in fs/inode.c; do
23648 grep -q -E "EXPORT_SYMBOL.*(clear_inode)" \
4d815aed
AX
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 :
ea04106b 23667
cae5b340 23668 { $as_echo "$as_me:$LINENO: result: no" >&5
ea04106b
AX
23669$as_echo "no" >&6; }
23670
4d815aed 23671 else :
ea04106b 23672
cae5b340 23673 { $as_echo "$as_me:$LINENO: result: yes" >&5
4d815aed 23674$as_echo "yes" >&6; }
ea04106b 23675
cae5b340
AX
23676cat >>confdefs.h <<\_ACEOF
23677#define HAVE_CLEAR_INODE 1
23678_ACEOF
ea04106b
AX
23679
23680
4d815aed
AX
23681 fi
23682 fi
23683
ea04106b 23684
cae5b340
AX
23685 { $as_echo "$as_me:$LINENO: checking whether setattr_prepare() is available" >&5
23686$as_echo_n "checking whether setattr_prepare() is available... " >&6; }
ea04106b 23687
ea04106b
AX
23688
23689
23690cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
23691/* confdefs.h. */
23692_ACEOF
23693cat confdefs.h >>conftest.$ac_ext
23694cat >>conftest.$ac_ext <<_ACEOF
23695/* end confdefs.h. */
ea04106b
AX
23696
23697
4d815aed 23698 #include <linux/fs.h>
68d83c55 23699
ea04106b
AX
23700int
23701main (void)
23702{
23703
cae5b340
AX
23704 struct dentry *dentry = NULL;
23705 struct iattr *attr = NULL;
23706 int error;
23707
23708 error = setattr_prepare(dentry, attr);
ea04106b
AX
23709
23710 ;
23711 return 0;
23712}
23713
23714_ACEOF
23715
23716
23717
23718cat - <<_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
42f7b73b 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'
cae5b340 23728 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
23729 (eval $ac_try) 2>&5
23730 ac_status=$?
cae5b340
AX
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
ea04106b
AX
23734 (eval $ac_try) 2>&5
23735 ac_status=$?
cae5b340
AX
23736 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23737 (exit $ac_status); }; }; then
23738 rc=0
23739else
23740 $as_echo "$as_me: failed program was:" >&5
23741sed 's/^/| /' conftest.$ac_ext >&5
23742 rc=1
ea04106b 23743
87dac73d 23744
cae5b340
AX
23745fi
23746
23747 rm -Rf build
68d83c55 23748
87dac73d 23749
cae5b340 23750 if test $rc -ne 0; then :
87dac73d 23751
cae5b340
AX
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 :
87dac73d 23783
cae5b340 23784 { $as_echo "$as_me:$LINENO: result: no" >&5
87dac73d
AX
23785$as_echo "no" >&6; }
23786
cae5b340 23787 else :
87dac73d 23788
cae5b340
AX
23789 { $as_echo "$as_me:$LINENO: result: yes" >&5
23790$as_echo "yes" >&6; }
87dac73d 23791
cae5b340
AX
23792cat >>confdefs.h <<\_ACEOF
23793#define HAVE_SETATTR_PREPARE 1
23794_ACEOF
87dac73d
AX
23795
23796
cae5b340
AX
23797 fi
23798 fi
87dac73d 23799
87dac73d 23800
cae5b340
AX
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
87dac73d
AX
23804
23805
23806cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
23807/* confdefs.h. */
23808_ACEOF
23809cat confdefs.h >>conftest.$ac_ext
23810cat >>conftest.$ac_ext <<_ACEOF
23811/* end confdefs.h. */
87dac73d
AX
23812
23813
68d83c55 23814 #include <linux/fs.h>
87dac73d
AX
23815
23816int
23817main (void)
23818{
23819
cae5b340 23820 insert_inode_locked(NULL);
87dac73d
AX
23821
23822 ;
23823 return 0;
23824}
23825
23826_ACEOF
23827
23828
23829
23830cat - <<_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
42f7b73b 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'
cae5b340 23840 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
87dac73d
AX
23841 (eval $ac_try) 2>&5
23842 ac_status=$?
cae5b340
AX
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
87dac73d
AX
23846 (eval $ac_try) 2>&5
23847 ac_status=$?
cae5b340
AX
23848 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23849 (exit $ac_status); }; }; then
23850 rc=0
23851else
23852 $as_echo "$as_me: failed program was:" >&5
23853sed 's/^/| /' conftest.$ac_ext >&5
23854 rc=1
87dac73d 23855
ea04106b 23856
cae5b340
AX
23857fi
23858
23859 rm -Rf build
ea04106b
AX
23860
23861
cae5b340 23862 if test $rc -ne 0; then :
ea04106b 23863
cae5b340 23864 { $as_echo "$as_me:$LINENO: result: no" >&5
68d83c55 23865$as_echo "no" >&6; }
4d815aed 23866
cae5b340
AX
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 :
4d815aed 23895
cae5b340
AX
23896 { $as_echo "$as_me:$LINENO: result: no" >&5
23897$as_echo "no" >&6; }
4d815aed 23898
cae5b340 23899 else :
4d815aed 23900
cae5b340
AX
23901 { $as_echo "$as_me:$LINENO: result: yes" >&5
23902$as_echo "yes" >&6; }
4d815aed 23903
cae5b340
AX
23904cat >>confdefs.h <<\_ACEOF
23905#define HAVE_INSERT_INODE_LOCKED 1
23906_ACEOF
4d815aed
AX
23907
23908
cae5b340
AX
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
ea04106b
AX
23916
23917
23918cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
23919/* confdefs.h. */
23920_ACEOF
23921cat confdefs.h >>conftest.$ac_ext
23922cat >>conftest.$ac_ext <<_ACEOF
23923/* end confdefs.h. */
ea04106b
AX
23924
23925
cae5b340 23926 #include <linux/dcache.h>
e10b0808 23927
ea04106b
AX
23928int
23929main (void)
23930{
23931
cae5b340 23932 d_make_root(NULL);
ea04106b
AX
23933
23934 ;
23935 return 0;
23936}
23937
23938_ACEOF
23939
23940
23941
23942cat - <<_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
42f7b73b 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'
cae5b340 23952 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
23953 (eval $ac_try) 2>&5
23954 ac_status=$?
cae5b340
AX
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
ea04106b
AX
23958 (eval $ac_try) 2>&5
23959 ac_status=$?
cae5b340
AX
23960 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23961 (exit $ac_status); }; }; then
23962 rc=0
23963else
23964 $as_echo "$as_me: failed program was:" >&5
23965sed 's/^/| /' conftest.$ac_ext >&5
23966 rc=1
ea04106b 23967
ea04106b 23968
cae5b340 23969fi
ea04106b 23970
cae5b340 23971 rm -Rf build
ea04106b 23972
ea04106b 23973
cae5b340
AX
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
94a40997 24009$as_echo "no" >&6; }
94a40997 24010
cae5b340
AX
24011 else :
24012
24013 { $as_echo "$as_me:$LINENO: result: yes" >&5
24014$as_echo "yes" >&6; }
94a40997 24015
cae5b340
AX
24016cat >>confdefs.h <<\_ACEOF
24017#define HAVE_D_MAKE_ROOT 1
24018_ACEOF
94a40997
AX
24019
24020
cae5b340
AX
24021 fi
24022 fi
94a40997 24023
4d815aed 24024
cae5b340
AX
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
4d815aed
AX
24028
24029
24030cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
24031/* confdefs.h. */
24032_ACEOF
24033cat confdefs.h >>conftest.$ac_ext
24034cat >>conftest.$ac_ext <<_ACEOF
24035/* end confdefs.h. */
4d815aed
AX
24036
24037
cae5b340 24038 #include <linux/dcache.h>
94a40997
AX
24039
24040int
24041main (void)
24042{
24043
cae5b340 24044 d_obtain_alias(NULL);
94a40997
AX
24045
24046 ;
24047 return 0;
24048}
24049
24050_ACEOF
24051
24052
24053
24054cat - <<_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
42f7b73b 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'
cae5b340 24064 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
94a40997
AX
24065 (eval $ac_try) 2>&5
24066 ac_status=$?
cae5b340
AX
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
94a40997
AX
24070 (eval $ac_try) 2>&5
24071 ac_status=$?
cae5b340
AX
24072 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24073 (exit $ac_status); }; }; then
24074 rc=0
24075else
24076 $as_echo "$as_me: failed program was:" >&5
24077sed 's/^/| /' conftest.$ac_ext >&5
24078 rc=1
94a40997 24079
94a40997 24080
cae5b340
AX
24081fi
24082
24083 rm -Rf build
94a40997
AX
24084
24085
cae5b340
AX
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 :
94a40997 24119
cae5b340 24120 { $as_echo "$as_me:$LINENO: result: no" >&5
4d815aed 24121$as_echo "no" >&6; }
ea04106b 24122
cae5b340 24123 else :
ea04106b 24124
cae5b340
AX
24125 { $as_echo "$as_me:$LINENO: result: yes" >&5
24126$as_echo "yes" >&6; }
ea04106b 24127
cae5b340
AX
24128cat >>confdefs.h <<\_ACEOF
24129#define HAVE_D_OBTAIN_ALIAS 1
24130_ACEOF
ea04106b
AX
24131
24132
cae5b340
AX
24133 fi
24134 fi
ea04106b 24135
ea04106b 24136
cae5b340
AX
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; }
68d83c55 24139
ea04106b
AX
24140
24141
24142cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
24143/* confdefs.h. */
24144_ACEOF
24145cat confdefs.h >>conftest.$ac_ext
24146cat >>conftest.$ac_ext <<_ACEOF
24147/* end confdefs.h. */
ea04106b
AX
24148
24149
cae5b340 24150 #include <linux/dcache.h>
ea04106b
AX
24151
24152int
24153main (void)
24154{
24155
cae5b340
AX
24156 struct inode *ip = NULL;
24157 d_prune_aliases(ip);
ea04106b
AX
24158
24159 ;
24160 return 0;
24161}
24162
24163_ACEOF
24164
24165
24166
24167cat - <<_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
42f7b73b 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'
cae5b340 24177 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
24178 (eval $ac_try) 2>&5
24179 ac_status=$?
cae5b340
AX
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
ea04106b
AX
24183 (eval $ac_try) 2>&5
24184 ac_status=$?
cae5b340
AX
24185 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24186 (exit $ac_status); }; }; then
68d83c55 24187 rc=0
4d815aed
AX
24188else
24189 $as_echo "$as_me: failed program was:" >&5
24190sed 's/^/| /' conftest.$ac_ext >&5
68d83c55 24191 rc=1
ea04106b 24192
ea04106b 24193
4d815aed 24194fi
cae5b340 24195
4d815aed 24196 rm -Rf build
ea04106b 24197
ea04106b 24198
68d83c55 24199 if test $rc -ne 0; then :
ea04106b 24200
cae5b340 24201 { $as_echo "$as_me:$LINENO: result: no" >&5
68d83c55 24202$as_echo "no" >&6; }
ea04106b 24203
cae5b340
AX
24204 else
24205 if test "x$enable_linux_builtin" != xyes; then
ea04106b 24206
cae5b340 24207 grep -q -E '[[:space:]]d_prune_aliases[[:space:]]' \
68d83c55
AX
24208 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
24209 rc=$?
24210 if test $rc -ne 0; then
24211 export=0
cae5b340
AX
24212 for file in fs/dcache.c; do
24213 grep -q -E "EXPORT_SYMBOL.*(d_prune_aliases)" \
68d83c55
AX
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
cae5b340 24233 { $as_echo "$as_me:$LINENO: result: no" >&5
4d815aed 24234$as_echo "no" >&6; }
ea04106b 24235
68d83c55 24236 else :
ea04106b 24237
cae5b340 24238 { $as_echo "$as_me:$LINENO: result: yes" >&5
68d83c55 24239$as_echo "yes" >&6; }
ea04106b 24240
cae5b340
AX
24241cat >>confdefs.h <<\_ACEOF
24242#define HAVE_D_PRUNE_ALIASES 1
24243_ACEOF
ea04106b 24244
68d83c55 24245
68d83c55 24246 fi
68d83c55
AX
24247 fi
24248
68d83c55 24249
cae5b340
AX
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; }
68d83c55
AX
24252
24253
24254
24255cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
24256/* confdefs.h. */
24257_ACEOF
24258cat confdefs.h >>conftest.$ac_ext
24259cat >>conftest.$ac_ext <<_ACEOF
24260/* end confdefs.h. */
68d83c55
AX
24261
24262
cae5b340 24263 #include <linux/dcache.h>
68d83c55
AX
24264
24265int
24266main (void)
24267{
24268
cae5b340 24269 d_set_d_op(NULL, NULL);
ea04106b 24270
4d815aed
AX
24271 ;
24272 return 0;
24273}
ea04106b 24274
4d815aed 24275_ACEOF
ea04106b 24276
ea04106b 24277
ea04106b 24278
4d815aed 24279cat - <<_ACEOF >conftest.h
ea04106b 24280
4d815aed 24281_ACEOF
ea04106b
AX
24282
24283
4d815aed
AX
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
42f7b73b 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'
cae5b340 24289 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4d815aed
AX
24290 (eval $ac_try) 2>&5
24291 ac_status=$?
cae5b340
AX
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
4d815aed
AX
24295 (eval $ac_try) 2>&5
24296 ac_status=$?
cae5b340
AX
24297 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24298 (exit $ac_status); }; }; then
68d83c55
AX
24299 rc=0
24300else
24301 $as_echo "$as_me: failed program was:" >&5
24302sed 's/^/| /' conftest.$ac_ext >&5
24303 rc=1
24304
24305
24306fi
cae5b340 24307
68d83c55
AX
24308 rm -Rf build
24309
24310
24311 if test $rc -ne 0; then :
24312
cae5b340 24313 { $as_echo "$as_me:$LINENO: result: no" >&5
68d83c55
AX
24314$as_echo "no" >&6; }
24315
24316 else
24317 if test "x$enable_linux_builtin" != xyes; then
24318
cae5b340 24319 grep -q -E '[[:space:]]d_set_d_op[[:space:]]' \
68d83c55
AX
24320 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
24321 rc=$?
24322 if test $rc -ne 0; then
24323 export=0
cae5b340
AX
24324 for file in fs/dcache.c; do
24325 grep -q -E "EXPORT_SYMBOL.*(d_set_d_op)" \
68d83c55
AX
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
cae5b340 24345 { $as_echo "$as_me:$LINENO: result: no" >&5
68d83c55
AX
24346$as_echo "no" >&6; }
24347
24348 else :
4d815aed 24349
cae5b340 24350 { $as_echo "$as_me:$LINENO: result: yes" >&5
68d83c55
AX
24351$as_echo "yes" >&6; }
24352
cae5b340
AX
24353cat >>confdefs.h <<\_ACEOF
24354#define HAVE_D_SET_D_OP 1
24355_ACEOF
68d83c55
AX
24356
24357
24358 fi
24359 fi
24360
24361
22929307 24362
cae5b340
AX
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; }
22929307 24365
68d83c55 24366
cae5b340
AX
24367cat confdefs.h - <<_ACEOF >conftest.c
24368/* confdefs.h. */
24369_ACEOF
24370cat confdefs.h >>conftest.$ac_ext
24371cat >>conftest.$ac_ext <<_ACEOF
24372/* end confdefs.h. */
68d83c55
AX
24373
24374
cae5b340 24375 #include <linux/dcache.h>
42f7b73b 24376 #include <linux/sched.h>
68d83c55 24377
cae5b340
AX
24378 int revalidate (struct dentry *dentry,
24379 struct nameidata *nidata) { return 0; }
68d83c55 24380
cae5b340
AX
24381 static const struct dentry_operations
24382 dops __attribute__ ((unused)) = {
24383 .d_revalidate = revalidate,
24384 };
68d83c55
AX
24385
24386int
24387main (void)
24388{
24389
68d83c55
AX
24390
24391 ;
24392 return 0;
24393}
24394
24395_ACEOF
24396
24397
24398
24399cat - <<_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
42f7b73b 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'
cae5b340 24409 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
68d83c55
AX
24410 (eval $ac_try) 2>&5
24411 ac_status=$?
cae5b340
AX
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
68d83c55
AX
24415 (eval $ac_try) 2>&5
24416 ac_status=$?
cae5b340
AX
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
24423cat >>confdefs.h <<\_ACEOF
24424#define HAVE_D_REVALIDATE_NAMEIDATA 1
24425_ACEOF
24426
24427
e10b0808 24428else
4d815aed
AX
24429 $as_echo "$as_me: failed program was:" >&5
24430sed 's/^/| /' conftest.$ac_ext >&5
cae5b340
AX
24431
24432 { $as_echo "$as_me:$LINENO: result: no" >&5
24433$as_echo "no" >&6; }
24434
ea04106b
AX
24435
24436
68d83c55 24437fi
cae5b340 24438
68d83c55 24439 rm -Rf build
ea04106b 24440
ea04106b 24441
68d83c55
AX
24442
24443
cae5b340
AX
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; }
68d83c55
AX
24446
24447
24448cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
24449/* confdefs.h. */
24450_ACEOF
24451cat confdefs.h >>conftest.$ac_ext
24452cat >>conftest.$ac_ext <<_ACEOF
24453/* end confdefs.h. */
68d83c55
AX
24454
24455
cae5b340
AX
24456 #include <linux/dcache.h>
24457
24458 const struct dentry_operations test_d_op = {
24459 .d_revalidate = NULL,
24460 };
ea04106b 24461
4d815aed
AX
24462int
24463main (void)
24464{
ea04106b 24465
cae5b340
AX
24466 struct dentry d __attribute__ ((unused));
24467
24468 d.d_op = &test_d_op;
ea04106b 24469
4d815aed
AX
24470 ;
24471 return 0;
24472}
ea04106b 24473
4d815aed 24474_ACEOF
ea04106b
AX
24475
24476
ea04106b 24477
4d815aed 24478cat - <<_ACEOF >conftest.h
ea04106b 24479
4d815aed 24480_ACEOF
ea04106b 24481
ea04106b 24482
4d815aed
AX
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
42f7b73b 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'
cae5b340 24488 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4d815aed
AX
24489 (eval $ac_try) 2>&5
24490 ac_status=$?
cae5b340
AX
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
4d815aed
AX
24494 (eval $ac_try) 2>&5
24495 ac_status=$?
cae5b340
AX
24496 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24497 (exit $ac_status); }; }; then
68d83c55 24498
cae5b340
AX
24499 { $as_echo "$as_me:$LINENO: result: yes" >&5
24500$as_echo "yes" >&6; }
68d83c55 24501
cae5b340
AX
24502cat >>confdefs.h <<\_ACEOF
24503#define HAVE_CONST_DENTRY_OPERATIONS 1
24504_ACEOF
68d83c55 24505
68d83c55 24506
cae5b340
AX
24507else
24508 $as_echo "$as_me: failed program was:" >&5
24509sed 's/^/| /' conftest.$ac_ext >&5
68d83c55 24510
cae5b340 24511 { $as_echo "$as_me:$LINENO: result: no" >&5
22929307 24512$as_echo "no" >&6; }
68d83c55 24513
ea04106b
AX
24514
24515
cae5b340 24516fi
ea04106b 24517
cae5b340 24518 rm -Rf build
ea04106b
AX
24519
24520
ea04106b 24521
cae5b340
AX
24522 { $as_echo "$as_me:$LINENO: checking whether truncate_setsize() is available" >&5
24523$as_echo_n "checking whether truncate_setsize() is available... " >&6; }
ea04106b 24524
e10b0808 24525
ea04106b 24526
4d815aed 24527cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
24528/* confdefs.h. */
24529_ACEOF
24530cat confdefs.h >>conftest.$ac_ext
24531cat >>conftest.$ac_ext <<_ACEOF
24532/* end confdefs.h. */
ea04106b 24533
ea04106b 24534
cae5b340 24535 #include <linux/mm.h>
ea04106b 24536
e10b0808 24537int
4d815aed 24538main (void)
e10b0808 24539{
4d815aed 24540
cae5b340 24541 truncate_setsize(NULL, 0);
22929307
AX
24542
24543 ;
24544 return 0;
24545}
24546
24547_ACEOF
24548
24549
24550
24551cat - <<_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
42f7b73b 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'
cae5b340 24561 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22929307
AX
24562 (eval $ac_try) 2>&5
24563 ac_status=$?
cae5b340
AX
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
22929307
AX
24567 (eval $ac_try) 2>&5
24568 ac_status=$?
cae5b340
AX
24569 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24570 (exit $ac_status); }; }; then
22929307
AX
24571 rc=0
24572else
24573 $as_echo "$as_me: failed program was:" >&5
24574sed 's/^/| /' conftest.$ac_ext >&5
24575 rc=1
24576
24577
24578fi
cae5b340 24579
22929307
AX
24580 rm -Rf build
24581
24582
24583 if test $rc -ne 0; then :
24584
cae5b340 24585 { $as_echo "$as_me:$LINENO: result: no" >&5
22929307
AX
24586$as_echo "no" >&6; }
24587
24588 else
24589 if test "x$enable_linux_builtin" != xyes; then
24590
cae5b340 24591 grep -q -E '[[:space:]]truncate_setsize[[:space:]]' \
22929307
AX
24592 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
24593 rc=$?
24594 if test $rc -ne 0; then
24595 export=0
cae5b340
AX
24596 for file in mm/truncate.c; do
24597 grep -q -E "EXPORT_SYMBOL.*(truncate_setsize)" \
22929307
AX
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
cae5b340 24617 { $as_echo "$as_me:$LINENO: result: no" >&5
22929307
AX
24618$as_echo "no" >&6; }
24619
24620 else :
24621
cae5b340 24622 { $as_echo "$as_me:$LINENO: result: yes" >&5
22929307
AX
24623$as_echo "yes" >&6; }
24624
cae5b340
AX
24625cat >>confdefs.h <<\_ACEOF
24626#define HAVE_TRUNCATE_SETSIZE 1
24627_ACEOF
22929307
AX
24628
24629
24630 fi
24631 fi
24632
24633
24634
cae5b340
AX
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; }
22929307
AX
24637
24638
24639cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
24640/* confdefs.h. */
24641_ACEOF
24642cat confdefs.h >>conftest.$ac_ext
24643cat >>conftest.$ac_ext <<_ACEOF
24644/* end confdefs.h. */
22929307
AX
24645
24646
cae5b340 24647 #include <linux/security.h>
22929307
AX
24648
24649int
24650main (void)
24651{
24652
cae5b340
AX
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);
22929307
AX
24661
24662 ;
24663 return 0;
24664}
24665
24666_ACEOF
24667
24668
24669
24670cat - <<_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
42f7b73b 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'
cae5b340 24680 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22929307
AX
24681 (eval $ac_try) 2>&5
24682 ac_status=$?
cae5b340
AX
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
22929307
AX
24686 (eval $ac_try) 2>&5
24687 ac_status=$?
cae5b340
AX
24688 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24689 (exit $ac_status); }; }; then
22929307 24690
cae5b340 24691 { $as_echo "$as_me:$LINENO: result: yes" >&5
22929307
AX
24692$as_echo "yes" >&6; }
24693
cae5b340
AX
24694cat >>confdefs.h <<\_ACEOF
24695#define HAVE_6ARGS_SECURITY_INODE_INIT_SECURITY 1
24696_ACEOF
22929307
AX
24697
24698
24699else
24700 $as_echo "$as_me: failed program was:" >&5
24701sed 's/^/| /' conftest.$ac_ext >&5
24702
cae5b340 24703 { $as_echo "$as_me:$LINENO: result: no" >&5
22929307
AX
24704$as_echo "no" >&6; }
24705
24706
24707
24708fi
cae5b340 24709
22929307
AX
24710 rm -Rf build
24711
24712
24713
24714
cae5b340
AX
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; }
22929307
AX
24717
24718
24719cat confdefs.h - <<_ACEOF >conftest.c
cae5b340 24720/* confdefs.h. */
22929307 24721_ACEOF
cae5b340
AX
24722cat confdefs.h >>conftest.$ac_ext
24723cat >>conftest.$ac_ext <<_ACEOF
24724/* end confdefs.h. */
22929307
AX
24725
24726
cae5b340 24727 #include <linux/security.h>
22929307
AX
24728
24729int
24730main (void)
24731{
24732
cae5b340
AX
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);
22929307
AX
24739
24740 ;
24741 return 0;
24742}
24743
24744_ACEOF
24745
24746
24747
24748cat - <<_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
42f7b73b 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'
cae5b340 24758 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22929307
AX
24759 (eval $ac_try) 2>&5
24760 ac_status=$?
cae5b340
AX
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
22929307
AX
24764 (eval $ac_try) 2>&5
24765 ac_status=$?
cae5b340
AX
24766 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24767 (exit $ac_status); }; }; then
22929307 24768
cae5b340 24769 { $as_echo "$as_me:$LINENO: result: yes" >&5
22929307
AX
24770$as_echo "yes" >&6; }
24771
cae5b340
AX
24772cat >>confdefs.h <<\_ACEOF
24773#define HAVE_CALLBACK_SECURITY_INODE_INIT_SECURITY 1
24774_ACEOF
22929307
AX
24775
24776
24777else
24778 $as_echo "$as_me: failed program was:" >&5
24779sed 's/^/| /' conftest.$ac_ext >&5
24780
cae5b340 24781 { $as_echo "$as_me:$LINENO: result: no" >&5
22929307
AX
24782$as_echo "no" >&6; }
24783
24784
24785
24786fi
cae5b340 24787
22929307
AX
24788 rm -Rf build
24789
24790
24791
22929307 24792
42f7b73b
AX
24793 { $as_echo "$as_me:$LINENO: checking whether fst->mount() exists" >&5
24794$as_echo_n "checking whether fst->mount() exists... " >&6; }
22929307
AX
24795
24796
24797cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
24798/* confdefs.h. */
24799_ACEOF
24800cat confdefs.h >>conftest.$ac_ext
24801cat >>conftest.$ac_ext <<_ACEOF
24802/* end confdefs.h. */
22929307
AX
24803
24804
42f7b73b
AX
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 };
22929307
AX
24817
24818int
24819main (void)
24820{
24821
4d815aed 24822
e10b0808
AX
24823 ;
24824 return 0;
24825}
ea04106b 24826
4d815aed 24827_ACEOF
ea04106b 24828
ea04106b
AX
24829
24830
4d815aed 24831cat - <<_ACEOF >conftest.h
ea04106b 24832
ea04106b
AX
24833_ACEOF
24834
24835
4d815aed
AX
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
42f7b73b 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'
cae5b340 24841 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4d815aed
AX
24842 (eval $ac_try) 2>&5
24843 ac_status=$?
cae5b340
AX
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
4d815aed
AX
24847 (eval $ac_try) 2>&5
24848 ac_status=$?
cae5b340
AX
24849 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24850 (exit $ac_status); }; }; then
42f7b73b
AX
24851
24852 { $as_echo "$as_me:$LINENO: result: yes" >&5
24853$as_echo "yes" >&6; }
24854
24855cat >>confdefs.h <<\_ACEOF
24856#define HAVE_FST_MOUNT 1
24857_ACEOF
24858
24859
e10b0808 24860else
4d815aed
AX
24861 $as_echo "$as_me: failed program was:" >&5
24862sed 's/^/| /' conftest.$ac_ext >&5
42f7b73b
AX
24863
24864 { $as_echo "$as_me:$LINENO: result: no" >&5
24865$as_echo "no" >&6; }
24866
4d815aed
AX
24867
24868
e10b0808 24869fi
cae5b340 24870
4d815aed 24871 rm -Rf build
ea04106b
AX
24872
24873
4d815aed 24874
4d815aed 24875
42f7b73b
AX
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; }
4d815aed 24878
4d815aed 24879
42f7b73b
AX
24880cat confdefs.h - <<_ACEOF >conftest.c
24881/* confdefs.h. */
24882_ACEOF
24883cat confdefs.h >>conftest.$ac_ext
24884cat >>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
24900int
24901main (void)
24902{
24903
24904
24905 ;
24906 return 0;
24907}
24908
24909_ACEOF
24910
24911
24912
24913cat - <<_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
24937cat >>confdefs.h <<\_ACEOF
24938#define HAVE_SHRINK 1
24939_ACEOF
24940
24941
24942
24943else
24944 $as_echo "$as_me: failed program was:" >&5
24945sed 's/^/| /' conftest.$ac_ext >&5
4d815aed 24946
cae5b340 24947 { $as_echo "$as_me:$LINENO: result: no" >&5
4d815aed
AX
24948$as_echo "no" >&6; }
24949
42f7b73b
AX
24950
24951
24952fi
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
24963cat confdefs.h - <<_ACEOF >conftest.c
24964/* confdefs.h. */
24965_ACEOF
24966cat confdefs.h >>conftest.$ac_ext
24967cat >>conftest.$ac_ext <<_ACEOF
24968/* end confdefs.h. */
24969
24970
24971 #include <linux/fs.h>
24972
24973int
24974main (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
24989cat - <<_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
4d815aed 25009
cae5b340 25010 { $as_echo "$as_me:$LINENO: result: yes" >&5
4d815aed
AX
25011$as_echo "yes" >&6; }
25012
cae5b340 25013cat >>confdefs.h <<\_ACEOF
42f7b73b 25014#define SHRINK_CONTROL_HAS_NID 1
cae5b340 25015_ACEOF
4d815aed
AX
25016
25017
42f7b73b
AX
25018else
25019 $as_echo "$as_me: failed program was:" >&5
25020sed 's/^/| /' conftest.$ac_ext >&5
25021
25022 { $as_echo "$as_me:$LINENO: result: no" >&5
25023$as_echo "no" >&6; }
25024
25025
25026
25027fi
25028
25029 rm -Rf build
4d815aed
AX
25030
25031
25032
42f7b73b
AX
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; }
4d815aed 25036
ea04106b 25037
68d83c55 25038cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
25039/* confdefs.h. */
25040_ACEOF
25041cat confdefs.h >>conftest.$ac_ext
25042cat >>conftest.$ac_ext <<_ACEOF
25043/* end confdefs.h. */
4d815aed
AX
25044
25045
68d83c55 25046 #include <linux/fs.h>
cae5b340 25047
42f7b73b
AX
25048int
25049main (void)
25050{
4d815aed 25051
42f7b73b
AX
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
25064cat - <<_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
25088cat >>confdefs.h <<\_ACEOF
25089#define HAVE_S_INSTANCES_LIST_HEAD 1
25090_ACEOF
25091
25092
25093else
25094 $as_echo "$as_me: failed program was:" >&5
25095sed 's/^/| /' conftest.$ac_ext >&5
25096
25097 { $as_echo "$as_me:$LINENO: result: no" >&5
25098$as_echo "no" >&6; }
25099
25100
25101
25102fi
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
25112cat confdefs.h - <<_ACEOF >conftest.c
25113/* confdefs.h. */
25114_ACEOF
25115cat confdefs.h >>conftest.$ac_ext
25116cat >>conftest.$ac_ext <<_ACEOF
25117/* end confdefs.h. */
25118
25119
25120 #include <linux/fs.h>
4d815aed 25121
68d83c55
AX
25122int
25123main (void)
25124{
4d815aed 25125
42f7b73b
AX
25126 struct super_block sb __attribute__ ((unused));
25127 sb.s_d_op = NULL;
4d815aed 25128
68d83c55
AX
25129 ;
25130 return 0;
25131}
4d815aed 25132
68d83c55 25133_ACEOF
ea04106b 25134
ea04106b 25135
4d815aed 25136
68d83c55 25137cat - <<_ACEOF >conftest.h
4d815aed 25138
68d83c55 25139_ACEOF
4d815aed 25140
4d815aed 25141
68d83c55
AX
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
42f7b73b 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'
cae5b340 25147 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
68d83c55
AX
25148 (eval $ac_try) 2>&5
25149 ac_status=$?
cae5b340
AX
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
68d83c55
AX
25153 (eval $ac_try) 2>&5
25154 ac_status=$?
cae5b340
AX
25155 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25156 (exit $ac_status); }; }; then
ea04106b 25157
cae5b340 25158 { $as_echo "$as_me:$LINENO: result: yes" >&5
68d83c55 25159$as_echo "yes" >&6; }
ea04106b 25160
cae5b340 25161cat >>confdefs.h <<\_ACEOF
42f7b73b 25162#define HAVE_S_D_OP 1
cae5b340
AX
25163_ACEOF
25164
ea04106b 25165
4d815aed 25166else
68d83c55
AX
25167 $as_echo "$as_me: failed program was:" >&5
25168sed 's/^/| /' conftest.$ac_ext >&5
ea04106b 25169
cae5b340 25170 { $as_echo "$as_me:$LINENO: result: no" >&5
68d83c55 25171$as_echo "no" >&6; }
ea04106b
AX
25172
25173
25174
cae5b340 25175fi
ea04106b 25176
cae5b340 25177 rm -Rf build
ea04106b 25178
68d83c55 25179
ea04106b 25180
ea04106b 25181
42f7b73b
AX
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
4d815aed 25185
4d815aed 25186
68d83c55 25187cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
25188/* confdefs.h. */
25189_ACEOF
25190cat confdefs.h >>conftest.$ac_ext
25191cat >>conftest.$ac_ext <<_ACEOF
25192/* end confdefs.h. */
4d815aed 25193
4d815aed 25194
cae5b340 25195 #include <linux/fs.h>
42f7b73b 25196 struct super_block sb;
4d815aed 25197
68d83c55
AX
25198int
25199main (void)
25200{
4d815aed 25201
42f7b73b
AX
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));
4d815aed 25206
68d83c55
AX
25207 ;
25208 return 0;
25209}
4d815aed 25210
68d83c55 25211_ACEOF
4d815aed
AX
25212
25213
ea04106b 25214
68d83c55
AX
25215cat - <<_ACEOF >conftest.h
25216
25217_ACEOF
4d815aed 25218
4d815aed 25219
68d83c55
AX
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
42f7b73b 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'
cae5b340 25225 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
68d83c55
AX
25226 (eval $ac_try) 2>&5
25227 ac_status=$?
cae5b340
AX
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
68d83c55
AX
25231 (eval $ac_try) 2>&5
25232 ac_status=$?
cae5b340
AX
25233 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25234 (exit $ac_status); }; }; then
42f7b73b 25235 rc=0
4d815aed 25236else
68d83c55
AX
25237 $as_echo "$as_me: failed program was:" >&5
25238sed 's/^/| /' conftest.$ac_ext >&5
42f7b73b 25239 rc=1
4d815aed 25240
4d815aed 25241
4d815aed 25242fi
68d83c55 25243
68d83c55 25244 rm -Rf build
4d815aed
AX
25245
25246
42f7b73b 25247 if test $rc -ne 0; then :
4d815aed 25248
42f7b73b
AX
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; }
4d815aed 25253
4d815aed 25254
4d815aed 25255
68d83c55 25256cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
25257/* confdefs.h. */
25258_ACEOF
25259cat confdefs.h >>conftest.$ac_ext
25260cat >>conftest.$ac_ext <<_ACEOF
25261/* end confdefs.h. */
4d815aed 25262
4d815aed 25263
42f7b73b
AX
25264 #include <linux/backing-dev.h>
25265 struct backing_dev_info bdi;
4d815aed 25266
4d815aed 25267int
68d83c55 25268main (void)
4d815aed 25269{
68d83c55 25270
42f7b73b
AX
25271 char *name = "bdi";
25272 int error __attribute__((unused)) =
25273 bdi_setup_and_register(&bdi, name);
68d83c55 25274
4d815aed
AX
25275 ;
25276 return 0;
25277}
68d83c55 25278
4d815aed 25279_ACEOF
68d83c55
AX
25280
25281
25282
25283cat - <<_ACEOF >conftest.h
25284
4d815aed
AX
25285_ACEOF
25286
4d815aed 25287
68d83c55
AX
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
42f7b73b 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'
cae5b340 25293 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
68d83c55
AX
25294 (eval $ac_try) 2>&5
25295 ac_status=$?
cae5b340
AX
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
68d83c55
AX
25299 (eval $ac_try) 2>&5
25300 ac_status=$?
cae5b340
AX
25301 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25302 (exit $ac_status); }; }; then
42f7b73b 25303 rc=0
cae5b340
AX
25304else
25305 $as_echo "$as_me: failed program was:" >&5
25306sed 's/^/| /' conftest.$ac_ext >&5
42f7b73b 25307 rc=1
4d815aed 25308
cae5b340
AX
25309
25310fi
25311
25312 rm -Rf build
25313
25314
42f7b73b
AX
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; }
cae5b340 25321
22929307
AX
25322
25323
25324cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
25325/* confdefs.h. */
25326_ACEOF
25327cat confdefs.h >>conftest.$ac_ext
25328cat >>conftest.$ac_ext <<_ACEOF
25329/* end confdefs.h. */
22929307
AX
25330
25331
42f7b73b
AX
25332 #include <linux/backing-dev.h>
25333 struct backing_dev_info bdi;
22929307
AX
25334
25335int
25336main (void)
25337{
25338
42f7b73b
AX
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);
22929307
AX
25343
25344 ;
25345 return 0;
25346}
25347
25348_ACEOF
25349
25350
25351
25352cat - <<_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
42f7b73b 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'
cae5b340 25362 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22929307
AX
25363 (eval $ac_try) 2>&5
25364 ac_status=$?
cae5b340
AX
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
22929307
AX
25368 (eval $ac_try) 2>&5
25369 ac_status=$?
cae5b340
AX
25370 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25371 (exit $ac_status); }; }; then
42f7b73b
AX
25372 rc=0
25373else
25374 $as_echo "$as_me: failed program was:" >&5
25375sed 's/^/| /' conftest.$ac_ext >&5
25376 rc=1
22929307 25377
22929307 25378
42f7b73b 25379fi
22929307 25380
42f7b73b 25381 rm -Rf build
22929307 25382
22929307 25383
42f7b73b
AX
25384 if test $rc -ne 0; then :
25385
25386 { $as_echo "$as_me:$LINENO: result: no" >&5
22929307
AX
25387$as_echo "no" >&6; }
25388
42f7b73b
AX
25389 else
25390 if test "x$enable_linux_builtin" != xyes; then
22929307 25391
42f7b73b
AX
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
22929307 25414
42f7b73b
AX
25415 fi
25416 if test $rc -ne 0; then :
68d83c55 25417
42f7b73b
AX
25418 { $as_echo "$as_me:$LINENO: result: no" >&5
25419$as_echo "no" >&6; }
4d815aed 25420
42f7b73b 25421 else :
4d815aed 25422
42f7b73b
AX
25423 { $as_echo "$as_me:$LINENO: result: yes" >&5
25424$as_echo "yes" >&6; }
4d815aed 25425
42f7b73b
AX
25426cat >>confdefs.h <<\_ACEOF
25427#define HAVE_3ARGS_BDI_SETUP_AND_REGISTER 1
25428_ACEOF
4d815aed 25429
42f7b73b
AX
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; }
4d815aed 25468
68d83c55
AX
25469
25470
25471cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
25472/* confdefs.h. */
25473_ACEOF
25474cat confdefs.h >>conftest.$ac_ext
25475cat >>conftest.$ac_ext <<_ACEOF
25476/* end confdefs.h. */
68d83c55
AX
25477
25478
42f7b73b
AX
25479 #include <linux/backing-dev.h>
25480 struct backing_dev_info bdi;
68d83c55 25481
4d815aed 25482int
68d83c55 25483main (void)
4d815aed 25484{
68d83c55 25485
42f7b73b
AX
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);
68d83c55 25490
4d815aed
AX
25491 ;
25492 return 0;
25493}
68d83c55 25494
4d815aed 25495_ACEOF
68d83c55
AX
25496
25497
25498
25499cat - <<_ACEOF >conftest.h
25500
4d815aed
AX
25501_ACEOF
25502
68d83c55
AX
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
42f7b73b 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'
cae5b340 25509 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
68d83c55
AX
25510 (eval $ac_try) 2>&5
25511 ac_status=$?
cae5b340
AX
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
68d83c55
AX
25515 (eval $ac_try) 2>&5
25516 ac_status=$?
cae5b340
AX
25517 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25518 (exit $ac_status); }; }; then
25519 rc=0
4d815aed 25520else
68d83c55
AX
25521 $as_echo "$as_me: failed program was:" >&5
25522sed 's/^/| /' conftest.$ac_ext >&5
cae5b340 25523 rc=1
4d815aed
AX
25524
25525
68d83c55 25526fi
cae5b340 25527
68d83c55 25528 rm -Rf build
4d815aed
AX
25529
25530
cae5b340 25531 if test $rc -ne 0; then :
4d815aed 25532
42f7b73b
AX
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
25573cat >>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
25587cat >>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
cae5b340
AX
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; }
4d815aed 25629
4d815aed 25630
4d815aed 25631
68d83c55 25632cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
25633/* confdefs.h. */
25634_ACEOF
25635cat confdefs.h >>conftest.$ac_ext
25636cat >>conftest.$ac_ext <<_ACEOF
25637/* end confdefs.h. */
4d815aed
AX
25638
25639
cae5b340
AX
25640 #include <linux/backing-dev.h>
25641 struct backing_dev_info bdi;
4d815aed 25642
4d815aed 25643int
68d83c55 25644main (void)
4d815aed 25645{
68d83c55 25646
cae5b340
AX
25647 char *name = "bdi";
25648 int error __attribute__((unused)) =
25649 bdi_setup_and_register(&bdi, name);
68d83c55 25650
4d815aed
AX
25651 ;
25652 return 0;
25653}
68d83c55 25654
4d815aed 25655_ACEOF
68d83c55
AX
25656
25657
25658
25659cat - <<_ACEOF >conftest.h
25660
4d815aed
AX
25661_ACEOF
25662
68d83c55
AX
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
42f7b73b 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'
cae5b340 25669 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
68d83c55
AX
25670 (eval $ac_try) 2>&5
25671 ac_status=$?
cae5b340
AX
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
68d83c55
AX
25675 (eval $ac_try) 2>&5
25676 ac_status=$?
cae5b340
AX
25677 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25678 (exit $ac_status); }; }; then
25679 rc=0
4d815aed 25680else
68d83c55
AX
25681 $as_echo "$as_me: failed program was:" >&5
25682sed 's/^/| /' conftest.$ac_ext >&5
cae5b340 25683 rc=1
68d83c55
AX
25684
25685
4d815aed 25686fi
cae5b340 25687
68d83c55 25688 rm -Rf build
4d815aed
AX
25689
25690
cae5b340 25691 if test $rc -ne 0; then :
4d815aed 25692
cae5b340
AX
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; }
68d83c55 25697
68d83c55
AX
25698
25699
25700cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
25701/* confdefs.h. */
25702_ACEOF
25703cat confdefs.h >>conftest.$ac_ext
25704cat >>conftest.$ac_ext <<_ACEOF
25705/* end confdefs.h. */
68d83c55
AX
25706
25707
cae5b340
AX
25708 #include <linux/backing-dev.h>
25709 struct backing_dev_info bdi;
68d83c55 25710
4d815aed 25711int
68d83c55 25712main (void)
4d815aed 25713{
68d83c55 25714
cae5b340
AX
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);
68d83c55 25719
4d815aed
AX
25720 ;
25721 return 0;
25722}
68d83c55 25723
4d815aed
AX
25724_ACEOF
25725
4d815aed 25726
4d815aed 25727
68d83c55 25728cat - <<_ACEOF >conftest.h
4d815aed 25729
68d83c55 25730_ACEOF
4d815aed
AX
25731
25732
68d83c55
AX
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
42f7b73b 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'
cae5b340 25738 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
68d83c55
AX
25739 (eval $ac_try) 2>&5
25740 ac_status=$?
cae5b340
AX
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
68d83c55
AX
25744 (eval $ac_try) 2>&5
25745 ac_status=$?
cae5b340
AX
25746 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25747 (exit $ac_status); }; }; then
25748 rc=0
25749else
25750 $as_echo "$as_me: failed program was:" >&5
25751sed 's/^/| /' conftest.$ac_ext >&5
25752 rc=1
4d815aed
AX
25753
25754
cae5b340
AX
25755fi
25756
25757 rm -Rf build
4d815aed
AX
25758
25759
cae5b340 25760 if test $rc -ne 0; then :
68d83c55 25761
cae5b340 25762 { $as_echo "$as_me:$LINENO: result: no" >&5
68d83c55
AX
25763$as_echo "no" >&6; }
25764
cae5b340
AX
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
68d83c55 25790
cae5b340
AX
25791 fi
25792 if test $rc -ne 0; then :
68d83c55 25793
cae5b340
AX
25794 { $as_echo "$as_me:$LINENO: result: no" >&5
25795$as_echo "no" >&6; }
4d815aed 25796
cae5b340 25797 else :
4d815aed 25798
cae5b340
AX
25799 { $as_echo "$as_me:$LINENO: result: yes" >&5
25800$as_echo "yes" >&6; }
4d815aed 25801
cae5b340
AX
25802cat >>confdefs.h <<\_ACEOF
25803#define HAVE_3ARGS_BDI_SETUP_AND_REGISTER 1
25804_ACEOF
4d815aed
AX
25805
25806
cae5b340
AX
25807 fi
25808 fi
4d815aed
AX
25809
25810
cae5b340
AX
25811 else
25812 if test "x$enable_linux_builtin" != xyes; then
4d815aed 25813
cae5b340
AX
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
25847cat confdefs.h - <<_ACEOF >conftest.c
25848/* confdefs.h. */
25849_ACEOF
25850cat confdefs.h >>conftest.$ac_ext
25851cat >>conftest.$ac_ext <<_ACEOF
25852/* end confdefs.h. */
4d815aed 25853
cae5b340
AX
25854
25855 #include <linux/backing-dev.h>
25856 struct backing_dev_info bdi;
4d815aed 25857
4d815aed 25858int
68d83c55 25859main (void)
4d815aed 25860{
68d83c55 25861
cae5b340
AX
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);
68d83c55 25866
4d815aed
AX
25867 ;
25868 return 0;
25869}
68d83c55 25870
4d815aed 25871_ACEOF
68d83c55
AX
25872
25873
25874
25875cat - <<_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
42f7b73b 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'
cae5b340 25885 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
68d83c55
AX
25886 (eval $ac_try) 2>&5
25887 ac_status=$?
cae5b340
AX
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
68d83c55
AX
25891 (eval $ac_try) 2>&5
25892 ac_status=$?
cae5b340
AX
25893 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25894 (exit $ac_status); }; }; then
25895 rc=0
68d83c55
AX
25896else
25897 $as_echo "$as_me: failed program was:" >&5
25898sed 's/^/| /' conftest.$ac_ext >&5
cae5b340 25899 rc=1
68d83c55
AX
25900
25901
25902fi
cae5b340 25903
68d83c55
AX
25904 rm -Rf build
25905
25906
cae5b340
AX
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
25949cat >>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
25963cat >>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
25977cat >>confdefs.h <<\_ACEOF
25978#define HAVE_SUPER_SETUP_BDI_NAME 1
25979_ACEOF
25980
25981
25982 fi
25983 fi
68d83c55
AX
25984
25985
cae5b340
AX
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; }
68d83c55
AX
25989
25990
25991cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
25992/* confdefs.h. */
25993_ACEOF
25994cat confdefs.h >>conftest.$ac_ext
25995cat >>conftest.$ac_ext <<_ACEOF
25996/* end confdefs.h. */
68d83c55
AX
25997
25998
25999 #include <linux/fs.h>
68d83c55 26000
cae5b340
AX
26001int
26002main (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
26017cat - <<_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
42f7b73b 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'
cae5b340
AX
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
26041cat >>confdefs.h <<\_ACEOF
26042#define HAVE_SET_NLINK 1
26043_ACEOF
26044
26045
26046else
26047 $as_echo "$as_me: failed program was:" >&5
26048sed 's/^/| /' conftest.$ac_ext >&5
26049
26050 { $as_echo "$as_me:$LINENO: result: no" >&5
26051$as_echo "no" >&6; }
26052
26053
26054
26055fi
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
26068cat confdefs.h - <<_ACEOF >conftest.c
26069/* confdefs.h. */
26070_ACEOF
26071cat confdefs.h >>conftest.$ac_ext
26072cat >>conftest.$ac_ext <<_ACEOF
26073/* end confdefs.h. */
26074
26075
26076 #include <linux/blkdev.h>
26077 #include <linux/elevator.h>
68d83c55
AX
26078
26079int
26080main (void)
26081{
26082
cae5b340
AX
26083 int ret;
26084 struct request_queue *q = NULL;
26085 char *elevator = NULL;
26086 ret = elevator_change(q, elevator);
68d83c55
AX
26087
26088 ;
26089 return 0;
26090}
26091
26092_ACEOF
26093
26094
26095
26096cat - <<_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
42f7b73b 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'
cae5b340 26106 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
68d83c55
AX
26107 (eval $ac_try) 2>&5
26108 ac_status=$?
cae5b340
AX
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
68d83c55
AX
26112 (eval $ac_try) 2>&5
26113 ac_status=$?
cae5b340
AX
26114 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26115 (exit $ac_status); }; }; then
68d83c55 26116
cae5b340 26117 { $as_echo "$as_me:$LINENO: result: yes" >&5
68d83c55
AX
26118$as_echo "yes" >&6; }
26119
cae5b340
AX
26120cat >>confdefs.h <<\_ACEOF
26121#define HAVE_ELEVATOR_CHANGE 1
26122_ACEOF
68d83c55
AX
26123
26124
26125else
26126 $as_echo "$as_me: failed program was:" >&5
26127sed 's/^/| /' conftest.$ac_ext >&5
26128
cae5b340 26129 { $as_echo "$as_me:$LINENO: result: no" >&5
68d83c55
AX
26130$as_echo "no" >&6; }
26131
26132
26133
26134fi
cae5b340 26135
68d83c55
AX
26136 rm -Rf build
26137
26138
cae5b340
AX
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
26145cat confdefs.h - <<_ACEOF >conftest.c
26146/* confdefs.h. */
26147_ACEOF
26148cat confdefs.h >>conftest.$ac_ext
26149cat >>conftest.$ac_ext <<_ACEOF
26150/* end confdefs.h. */
26151
26152
26153 #include <linux/fs.h>
26154
26155int
26156main (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
26174cat - <<_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
42f7b73b 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'
cae5b340
AX
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
26198cat >>confdefs.h <<\_ACEOF
26199#define HAVE_5ARG_SGET 1
26200_ACEOF
68d83c55 26201
cae5b340
AX
26202
26203else
26204 $as_echo "$as_me: failed program was:" >&5
26205sed 's/^/| /' conftest.$ac_ext >&5
26206
26207 { $as_echo "$as_me:$LINENO: result: no" >&5
26208$as_echo "no" >&6; }
26209
26210
26211
26212fi
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; }
22929307
AX
26220
26221
26222
26223cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
26224/* confdefs.h. */
26225_ACEOF
26226cat confdefs.h >>conftest.$ac_ext
26227cat >>conftest.$ac_ext <<_ACEOF
26228/* end confdefs.h. */
22929307
AX
26229
26230
26231 #include <linux/fs.h>
26232
26233int
26234main (void)
26235{
26236
cae5b340
AX
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;
22929307 26241
cae5b340 26242 lseek_execute(fp, ip, offset, maxsize);
22929307
AX
26243
26244 ;
26245 return 0;
26246}
26247
26248_ACEOF
26249
26250
26251
26252cat - <<_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
42f7b73b 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'
cae5b340 26262 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22929307
AX
26263 (eval $ac_try) 2>&5
26264 ac_status=$?
cae5b340
AX
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
22929307
AX
26268 (eval $ac_try) 2>&5
26269 ac_status=$?
cae5b340
AX
26270 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26271 (exit $ac_status); }; }; then
22929307
AX
26272 rc=0
26273else
26274 $as_echo "$as_me: failed program was:" >&5
26275sed 's/^/| /' conftest.$ac_ext >&5
26276 rc=1
26277
26278
26279fi
cae5b340 26280
22929307
AX
26281 rm -Rf build
26282
26283
26284 if test $rc -ne 0; then :
26285
cae5b340 26286 { $as_echo "$as_me:$LINENO: result: no" >&5
22929307
AX
26287$as_echo "no" >&6; }
26288
26289 else
26290 if test "x$enable_linux_builtin" != xyes; then
26291
cae5b340 26292 grep -q -E '[[:space:]]lseek_exclusive[[:space:]]' \
22929307
AX
26293 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
26294 rc=$?
26295 if test $rc -ne 0; then
26296 export=0
cae5b340
AX
26297 for file in fs/read_write.c; do
26298 grep -q -E "EXPORT_SYMBOL.*(lseek_exclusive)" \
22929307
AX
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
cae5b340 26318 { $as_echo "$as_me:$LINENO: result: no" >&5
22929307
AX
26319$as_echo "no" >&6; }
26320
26321 else :
26322
cae5b340 26323 { $as_echo "$as_me:$LINENO: result: yes" >&5
22929307
AX
26324$as_echo "yes" >&6; }
26325
cae5b340
AX
26326cat >>confdefs.h <<\_ACEOF
26327#define HAVE_LSEEK_EXECUTE 1
26328_ACEOF
22929307
AX
26329
26330
26331 fi
26332 fi
26333
26334
68d83c55 26335
cae5b340
AX
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; }
68d83c55 26338
68d83c55 26339
cae5b340
AX
26340cat confdefs.h - <<_ACEOF >conftest.c
26341/* confdefs.h. */
26342_ACEOF
26343cat confdefs.h >>conftest.$ac_ext
26344cat >>conftest.$ac_ext <<_ACEOF
26345/* end confdefs.h. */
68d83c55
AX
26346
26347
cae5b340
AX
26348 #include <linux/fs.h>
26349 int iterate(struct file *filp, struct dir_context * context)
26350 { return 0; }
68d83c55 26351
cae5b340
AX
26352 static const struct file_operations fops
26353 __attribute__ ((unused)) = {
26354 .iterate_shared = iterate,
26355 };
68d83c55 26356
cae5b340
AX
26357int
26358main (void)
26359{
68d83c55 26360
68d83c55 26361
cae5b340
AX
26362 ;
26363 return 0;
26364}
68d83c55 26365
cae5b340 26366_ACEOF
68d83c55
AX
26367
26368
26369
cae5b340 26370cat - <<_ACEOF >conftest.h
68d83c55 26371
cae5b340
AX
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
42f7b73b 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'
cae5b340
AX
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
26394cat >>confdefs.h <<\_ACEOF
26395#define HAVE_VFS_ITERATE_SHARED 1
26396_ACEOF
68d83c55 26397
68d83c55 26398
68d83c55 26399else
cae5b340
AX
26400 $as_echo "$as_me: failed program was:" >&5
26401sed 's/^/| /' conftest.$ac_ext >&5
68d83c55 26402
cae5b340
AX
26403 { $as_echo "$as_me:$LINENO: result: no" >&5
26404$as_echo "no" >&6; }
68d83c55 26405
42f7b73b 26406 { $as_echo "$as_me:$LINENO: checking whether fops->iterate() is available" >&5
cae5b340
AX
26407$as_echo_n "checking whether fops->iterate() is available... " >&6; }
26408
26409
26410cat confdefs.h - <<_ACEOF >conftest.c
26411/* confdefs.h. */
26412_ACEOF
26413cat confdefs.h >>conftest.$ac_ext
26414cat >>conftest.$ac_ext <<_ACEOF
26415/* end confdefs.h. */
26416
26417
26418 #include <linux/fs.h>
42f7b73b
AX
26419 int iterate(struct file *filp,
26420 struct dir_context *context) { return 0; }
cae5b340
AX
26421
26422 static const struct file_operations fops
26423 __attribute__ ((unused)) = {
26424 .iterate = iterate,
26425 };
26426
42f7b73b
AX
26427 #if defined(FMODE_KABI_ITERATE)
26428 #error "RHEL 7.5, FMODE_KABI_ITERATE interface"
26429 #endif
26430
cae5b340
AX
26431int
26432main (void)
26433{
26434
26435
26436 ;
26437 return 0;
26438}
26439
26440_ACEOF
26441
26442
26443
26444cat - <<_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
42f7b73b 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'
cae5b340
AX
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
26468cat >>confdefs.h <<\_ACEOF
26469#define HAVE_VFS_ITERATE 1
26470_ACEOF
68d83c55 26471
68d83c55 26472
68d83c55 26473else
cae5b340
AX
26474 $as_echo "$as_me: failed program was:" >&5
26475sed '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
26484cat confdefs.h - <<_ACEOF >conftest.c
26485/* confdefs.h. */
26486_ACEOF
26487cat confdefs.h >>conftest.$ac_ext
26488cat >>conftest.$ac_ext <<_ACEOF
26489/* end confdefs.h. */
26490
26491
26492 #include <linux/fs.h>
42f7b73b
AX
26493 int readdir(struct file *filp, void *entry,
26494 filldir_t func) { return 0; }
cae5b340
AX
26495
26496 static const struct file_operations fops
26497 __attribute__ ((unused)) = {
26498 .readdir = readdir,
26499 };
26500
26501int
26502main (void)
26503{
26504
26505
26506 ;
26507 return 0;
26508}
26509
26510_ACEOF
26511
26512
26513
26514cat - <<_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
42f7b73b 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'
cae5b340
AX
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
26538cat >>confdefs.h <<\_ACEOF
26539#define HAVE_VFS_READDIR 1
26540_ACEOF
26541
68d83c55 26542
68d83c55 26543else
cae5b340
AX
26544 $as_echo "$as_me: failed program was:" >&5
26545sed 's/^/| /' conftest.$ac_ext >&5
26546
42f7b73b
AX
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;}
cae5b340
AX
26549 { (exit 1); exit 1; }; }
26550
68d83c55 26551
68d83c55
AX
26552
26553fi
26554
cae5b340
AX
26555 rm -Rf build
26556
26557
26558
26559
68d83c55 26560
68d83c55
AX
26561fi
26562
cae5b340 26563 rm -Rf build
68d83c55
AX
26564
26565
26566
68d83c55
AX
26567
26568
68d83c55
AX
26569fi
26570
cae5b340
AX
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
26579cat confdefs.h - <<_ACEOF >conftest.c
26580/* confdefs.h. */
26581_ACEOF
26582cat confdefs.h >>conftest.$ac_ext
26583cat >>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
26600int
26601main (void)
26602{
26603
26604
26605 ;
26606 return 0;
26607}
26608
26609_ACEOF
26610
26611
26612
26613cat - <<_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
42f7b73b 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'
cae5b340
AX
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
26637cat >>confdefs.h <<\_ACEOF
26638#define HAVE_VFS_RW_ITERATE 1
26639_ACEOF
26640
26641
047218e2
AX
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; }
cae5b340
AX
26644
26645
26646cat confdefs.h - <<_ACEOF >conftest.c
26647/* confdefs.h. */
26648_ACEOF
26649cat confdefs.h >>conftest.$ac_ext
26650cat >>conftest.$ac_ext <<_ACEOF
26651/* end confdefs.h. */
26652
26653
26654 #include <linux/fs.h>
26655
26656int
26657main (void)
26658{
26659
047218e2
AX
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);
cae5b340
AX
26669
26670 ;
26671 return 0;
26672}
26673
26674_ACEOF
26675
26676
26677
26678cat - <<_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
42f7b73b 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'
cae5b340
AX
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
26702cat >>confdefs.h <<\_ACEOF
26703#define HAVE_NEW_SYNC_READ 1
26704_ACEOF
68d83c55
AX
26705
26706
cae5b340
AX
26707else
26708 $as_echo "$as_me: failed program was:" >&5
26709sed 's/^/| /' conftest.$ac_ext >&5
26710
26711 { $as_echo "$as_me:$LINENO: result: no" >&5
26712$as_echo "no" >&6; }
26713
26714
26715
26716fi
26717
26718 rm -Rf build
26719
26720
26721
26722
26723else
26724 $as_echo "$as_me: failed program was:" >&5
26725sed 's/^/| /' conftest.$ac_ext >&5
26726
26727 { $as_echo "$as_me:$LINENO: result: no" >&5
26728$as_echo "no" >&6; }
26729
26730
26731
26732fi
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
26742cat confdefs.h - <<_ACEOF >conftest.c
26743/* confdefs.h. */
26744_ACEOF
26745cat confdefs.h >>conftest.$ac_ext
26746cat >>conftest.$ac_ext <<_ACEOF
26747/* end confdefs.h. */
26748
26749
26750 #include <linux/fs.h>
26751
26752
26753int
26754main (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
26769cat - <<_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
42f7b73b 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'
cae5b340
AX
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
26793cat >>confdefs.h <<\_ACEOF
26794#define HAVE_GENERIC_WRITE_CHECKS_KIOCB 1
26795_ACEOF
26796
26797
26798else
26799 $as_echo "$as_me: failed program was:" >&5
26800sed 's/^/| /' conftest.$ac_ext >&5
26801
26802 { $as_echo "$as_me:$LINENO: result: no" >&5
26803$as_echo "no" >&6; }
26804
26805
26806
26807fi
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
26818cat confdefs.h - <<_ACEOF >conftest.c
26819/* confdefs.h. */
26820_ACEOF
26821cat confdefs.h >>conftest.$ac_ext
26822cat >>conftest.$ac_ext <<_ACEOF
26823/* end confdefs.h. */
26824
26825
26826 #include <linux/pagemap.h>
26827
26828int
26829main (void)
26830{
26831
26832 struct page page;
26833 kmap_atomic(&page);
26834
26835 ;
26836 return 0;
26837}
26838
26839_ACEOF
26840
26841
26842
26843cat - <<_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
42f7b73b 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'
cae5b340
AX
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
26867cat >>confdefs.h <<\_ACEOF
26868#define HAVE_1ARG_KMAP_ATOMIC 1
26869_ACEOF
26870
26871
26872else
26873 $as_echo "$as_me: failed program was:" >&5
26874sed 's/^/| /' conftest.$ac_ext >&5
26875
26876 { $as_echo "$as_me:$LINENO: result: no" >&5
26877$as_echo "no" >&6; }
26878
26879
26880
26881fi
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
26892cat confdefs.h - <<_ACEOF >conftest.c
26893/* confdefs.h. */
26894_ACEOF
26895cat confdefs.h >>conftest.$ac_ext
26896cat >>conftest.$ac_ext <<_ACEOF
26897/* end confdefs.h. */
26898
26899
26900 #include <linux/namei.h>
26901
26902int
26903main (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
26917cat - <<_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
42f7b73b 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'
cae5b340
AX
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
26941cat >>confdefs.h <<\_ACEOF
26942#define HAVE_FOLLOW_DOWN_ONE 1
26943_ACEOF
26944
26945
26946else
26947 $as_echo "$as_me: failed program was:" >&5
26948sed 's/^/| /' conftest.$ac_ext >&5
26949
26950 { $as_echo "$as_me:$LINENO: result: no" >&5
26951$as_echo "no" >&6; }
26952
26953
26954
26955fi
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
26966cat confdefs.h - <<_ACEOF >conftest.c
26967/* confdefs.h. */
26968_ACEOF
26969cat confdefs.h >>conftest.$ac_ext
26970cat >>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
26981int
26982main (void)
26983{
26984
26985 blk_queue_make_request(NULL, &make_request);
26986
26987 ;
26988 return 0;
26989}
26990
26991_ACEOF
26992
26993
26994
26995cat - <<_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
42f7b73b 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'
cae5b340
AX
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
27019cat >>confdefs.h <<\_ACEOF
27020#define MAKE_REQUEST_FN_RET int
27021_ACEOF
27022
27023
27024cat >>confdefs.h <<\_ACEOF
27025#define HAVE_MAKE_REQUEST_FN_RET_INT 1
27026_ACEOF
27027
27028
27029else
27030 $as_echo "$as_me: failed program was:" >&5
27031sed '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
27039cat confdefs.h - <<_ACEOF >conftest.c
27040/* confdefs.h. */
27041_ACEOF
27042cat confdefs.h >>conftest.$ac_ext
27043cat >>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
27054int
27055main (void)
27056{
27057
27058 blk_queue_make_request(NULL, &make_request);
27059
27060 ;
27061 return 0;
27062}
27063
27064_ACEOF
27065
27066
27067
27068cat - <<_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
42f7b73b 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'
cae5b340
AX
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
27092cat >>confdefs.h <<\_ACEOF
27093#define MAKE_REQUEST_FN_RET void
27094_ACEOF
27095
27096
27097else
27098 $as_echo "$as_me: failed program was:" >&5
27099sed '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
27107cat confdefs.h - <<_ACEOF >conftest.c
27108/* confdefs.h. */
27109_ACEOF
27110cat confdefs.h >>conftest.$ac_ext
27111cat >>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
27122int
27123main (void)
27124{
27125
27126 blk_queue_make_request(NULL, &make_request);
27127
27128 ;
27129 return 0;
27130}
27131
27132_ACEOF
27133
27134
27135
27136cat - <<_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
42f7b73b 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'
cae5b340
AX
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
27160cat >>confdefs.h <<\_ACEOF
27161#define MAKE_REQUEST_FN_RET blk_qc_t
27162_ACEOF
27163
27164
27165cat >>confdefs.h <<\_ACEOF
27166#define HAVE_MAKE_REQUEST_FN_RET_QC 1
27167_ACEOF
27168
27169
27170else
27171 $as_echo "$as_me: failed program was:" >&5
27172sed '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
27182fi
27183
27184 rm -Rf build
27185
27186
27187
27188
27189
27190fi
27191
27192 rm -Rf build
27193
27194
27195
27196
27197
27198fi
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
27210cat confdefs.h - <<_ACEOF >conftest.c
27211/* confdefs.h. */
27212_ACEOF
27213cat confdefs.h >>conftest.$ac_ext
27214cat >>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
27225int
27226main (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
27240cat - <<_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
42f7b73b 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'
cae5b340
AX
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
27261else
27262 $as_echo "$as_me: failed program was:" >&5
27263sed 's/^/| /' conftest.$ac_ext >&5
27264 rc=1
27265
27266
27267fi
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
27314cat >>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
27329cat confdefs.h - <<_ACEOF >conftest.c
27330/* confdefs.h. */
27331_ACEOF
27332cat confdefs.h >>conftest.$ac_ext
27333cat >>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
27344int
27345main (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
27359cat - <<_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
42f7b73b 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'
cae5b340
AX
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
27380else
27381 $as_echo "$as_me: failed program was:" >&5
27382sed 's/^/| /' conftest.$ac_ext >&5
27383 rc=1
27384
27385
27386fi
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
27433cat >>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
27447cat confdefs.h - <<_ACEOF >conftest.c
27448/* confdefs.h. */
27449_ACEOF
27450cat confdefs.h >>conftest.$ac_ext
27451cat >>conftest.$ac_ext <<_ACEOF
27452/* end confdefs.h. */
27453
27454
27455 #include <linux/kernel.h>
27456 #include <asm/fpu/api.h>
27457
27458int
27459main (void)
27460{
27461
27462 __kernel_fpu_begin();
27463
27464 ;
27465 return 0;
27466}
27467
27468_ACEOF
27469
27470
27471
27472cat - <<_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
42f7b73b 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'
cae5b340
AX
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
27496cat >>confdefs.h <<\_ACEOF
27497#define HAVE_FPU_API_H 1
27498_ACEOF
27499
27500
27501else
27502 $as_echo "$as_me: failed program was:" >&5
27503sed 's/^/| /' conftest.$ac_ext >&5
27504
27505 { $as_echo "$as_me:$LINENO: result: no" >&5
27506$as_echo "no" >&6; }
27507
27508
27509
27510fi
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
27521cat confdefs.h - <<_ACEOF >conftest.c
27522/* confdefs.h. */
27523_ACEOF
27524cat confdefs.h >>conftest.$ac_ext
27525cat >>conftest.$ac_ext <<_ACEOF
27526/* end confdefs.h. */
27527
27528
27529 #include <linux/fs.h>
27530
27531int
27532main (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
27546cat - <<_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
42f7b73b 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'
cae5b340
AX
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
27570cat >>confdefs.h <<\_ACEOF
27571#define HAVE_KUID_HELPERS 1
27572_ACEOF
27573
27574
27575else
27576 $as_echo "$as_me: failed program was:" >&5
27577sed 's/^/| /' conftest.$ac_ext >&5
27578
27579 { $as_echo "$as_me:$LINENO: result: no" >&5
27580$as_echo "no" >&6; }
27581
27582
27583
27584fi
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
27595cat confdefs.h - <<_ACEOF >conftest.c
27596/* confdefs.h. */
27597_ACEOF
27598cat confdefs.h >>conftest.$ac_ext
27599cat >>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
27618int
27619main (void)
27620{
27621
27622
27623 ;
27624 return 0;
27625}
27626
27627_ACEOF
27628
27629
27630
27631cat - <<_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
42f7b73b 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'
cae5b340
AX
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
27655cat >>confdefs.h <<\_ACEOF
27656#define MODULE_PARAM_CALL_CONST 1
27657_ACEOF
27658
27659
27660else
27661 $as_echo "$as_me: failed program was:" >&5
27662sed 's/^/| /' conftest.$ac_ext >&5
27663
27664 { $as_echo "$as_me:$LINENO: result: no" >&5
27665$as_echo "no" >&6; }
27666
27667
27668
27669fi
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
27680cat confdefs.h - <<_ACEOF >conftest.c
27681/* confdefs.h. */
27682_ACEOF
27683cat confdefs.h >>conftest.$ac_ext
27684cat >>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
27698int
27699main (void)
27700{
27701
27702
27703 ;
27704 return 0;
27705}
27706
27707_ACEOF
27708
27709
27710
27711cat - <<_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
42f7b73b 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'
cae5b340
AX
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
27735cat >>confdefs.h <<\_ACEOF
27736#define HAVE_RENAME_WANTS_FLAGS 1
27737_ACEOF
27738
27739
27740else
27741 $as_echo "$as_me: failed program was:" >&5
27742sed 's/^/| /' conftest.$ac_ext >&5
27743
27744 { $as_echo "$as_me:$LINENO: result: no" >&5
27745$as_echo "no" >&6; }
27746
27747
27748
27749fi
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
27760cat confdefs.h - <<_ACEOF >conftest.c
27761/* confdefs.h. */
27762_ACEOF
27763cat confdefs.h >>conftest.$ac_ext
27764cat >>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
27776int
27777main (void)
27778{
27779
27780
27781 ;
27782 return 0;
27783}
27784
27785_ACEOF
27786
27787
27788
27789cat - <<_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
42f7b73b 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'
cae5b340
AX
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
27813cat >>confdefs.h <<\_ACEOF
27814#define HAVE_GENERIC_SETXATTR 1
27815_ACEOF
27816
27817
27818else
27819 $as_echo "$as_me: failed program was:" >&5
27820sed 's/^/| /' conftest.$ac_ext >&5
27821
27822 { $as_echo "$as_me:$LINENO: result: no" >&5
27823$as_echo "no" >&6; }
27824
27825
27826
27827fi
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
27838cat confdefs.h - <<_ACEOF >conftest.c
27839/* confdefs.h. */
27840_ACEOF
27841cat confdefs.h >>conftest.$ac_ext
27842cat >>conftest.$ac_ext <<_ACEOF
27843/* end confdefs.h. */
27844
27845
27846 #include <linux/fs.h>
27847
27848int
27849main (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
27865cat - <<_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
42f7b73b 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'
cae5b340
AX
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
27886else
27887 $as_echo "$as_me: failed program was:" >&5
27888sed 's/^/| /' conftest.$ac_ext >&5
27889 rc=1
27890
27891
27892fi
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
27939cat >>confdefs.h <<\_ACEOF
27940#define HAVE_CURRENT_TIME 1
27941_ACEOF
27942
27943
27944 fi
27945 fi
27946
27947
27948
42f7b73b
AX
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; }
cae5b340
AX
27952
27953
27954cat confdefs.h - <<_ACEOF >conftest.c
27955/* confdefs.h. */
27956_ACEOF
27957cat confdefs.h >>conftest.$ac_ext
27958cat >>conftest.$ac_ext <<_ACEOF
27959/* end confdefs.h. */
27960
27961
27962 #include <linux/mm.h>
27963 #include <linux/vmstat.h>
27964
27965int
27966main (void)
27967{
27968
42f7b73b 27969 (void) global_node_page_state(0);
cae5b340
AX
27970
27971 ;
27972 return 0;
27973}
27974
27975_ACEOF
27976
27977
27978
27979cat - <<_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
42f7b73b 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'
cae5b340
AX
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
28003cat >>confdefs.h <<\_ACEOF
28004#define ZFS_GLOBAL_NODE_PAGE_STATE 1
28005_ACEOF
28006
28007
28008else
28009 $as_echo "$as_me: failed program was:" >&5
28010sed 's/^/| /' conftest.$ac_ext >&5
28011
28012 { $as_echo "$as_me:$LINENO: result: no" >&5
28013$as_echo "no" >&6; }
28014
28015
28016
28017fi
28018
28019 rm -Rf build
28020
28021
28022
28023
42f7b73b
AX
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; }
cae5b340 28026
cae5b340 28027
42f7b73b
AX
28028cat confdefs.h - <<_ACEOF >conftest.c
28029/* confdefs.h. */
28030_ACEOF
28031cat confdefs.h >>conftest.$ac_ext
28032cat >>conftest.$ac_ext <<_ACEOF
28033/* end confdefs.h. */
cae5b340
AX
28034
28035
42f7b73b
AX
28036 #include <linux/mm.h>
28037 #include <linux/vmstat.h>
cae5b340 28038
42f7b73b
AX
28039int
28040main (void)
28041{
cae5b340 28042
42f7b73b 28043 (void) global_zone_page_state(0);
cae5b340 28044
42f7b73b
AX
28045 ;
28046 return 0;
28047}
cae5b340 28048
42f7b73b 28049_ACEOF
cae5b340
AX
28050
28051
42f7b73b
AX
28052
28053cat - <<_ACEOF >conftest.h
28054
28055_ACEOF
cae5b340
AX
28056
28057
42f7b73b
AX
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
cae5b340 28073
42f7b73b
AX
28074 { $as_echo "$as_me:$LINENO: result: yes" >&5
28075$as_echo "yes" >&6; }
cae5b340 28076
42f7b73b
AX
28077cat >>confdefs.h <<\_ACEOF
28078#define ZFS_GLOBAL_ZONE_PAGE_STATE 1
28079_ACEOF
cae5b340 28080
cae5b340 28081
cae5b340 28082else
42f7b73b
AX
28083 $as_echo "$as_me: failed program was:" >&5
28084sed 's/^/| /' conftest.$ac_ext >&5
28085
28086 { $as_echo "$as_me:$LINENO: result: no" >&5
28087$as_echo "no" >&6; }
28088
28089
28090
cae5b340
AX
28091fi
28092
42f7b73b 28093 rm -Rf build
cae5b340 28094
cae5b340 28095
cae5b340 28096
cae5b340 28097
42f7b73b
AX
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
28111cat >>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
cae5b340 28117else
cae5b340 28118
42f7b73b
AX
28119 { $as_echo "$as_me:$LINENO: result: no" >&5
28120$as_echo "no" >&6; }
cae5b340
AX
28121
28122fi
28123
28124
cae5b340 28125
42f7b73b
AX
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
28138cat >>confdefs.h <<\_ACEOF
28139#define ZFS_ENUM_NODE_STAT_ITEM_NR_INACTIVE_ANON 1
28140_ACEOF
cae5b340 28141
42f7b73b 28142 ZFS_ENUM_NODE_STAT_ITEM_NR_INACTIVE_ANON=1
cae5b340 28143
cae5b340 28144else
42f7b73b
AX
28145
28146 { $as_echo "$as_me:$LINENO: result: no" >&5
28147$as_echo "no" >&6; }
28148
cae5b340
AX
28149fi
28150
28151
28152
42f7b73b
AX
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; }
cae5b340 28164
42f7b73b
AX
28165cat >>confdefs.h <<\_ACEOF
28166#define ZFS_ENUM_NODE_STAT_ITEM_NR_INACTIVE_FILE 1
28167_ACEOF
cae5b340 28168
42f7b73b 28169 ZFS_ENUM_NODE_STAT_ITEM_NR_INACTIVE_FILE=1
cae5b340 28170
cae5b340 28171else
42f7b73b
AX
28172
28173 { $as_echo "$as_me:$LINENO: result: no" >&5
28174$as_echo "no" >&6; }
28175
cae5b340
AX
28176fi
28177
28178
28179
42f7b73b
AX
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
cae5b340 28188
42f7b73b
AX
28189 { $as_echo "$as_me:$LINENO: result: yes" >&5
28190$as_echo "yes" >&6; }
cae5b340 28191
42f7b73b
AX
28192cat >>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
cae5b340 28197
cae5b340 28198else
42f7b73b
AX
28199
28200 { $as_echo "$as_me:$LINENO: result: no" >&5
28201$as_echo "no" >&6; }
28202
cae5b340
AX
28203fi
28204
28205
28206
cae5b340 28207
42f7b73b
AX
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
cae5b340 28216
42f7b73b
AX
28217 { $as_echo "$as_me:$LINENO: result: yes" >&5
28218$as_echo "yes" >&6; }
cae5b340 28219
42f7b73b
AX
28220cat >>confdefs.h <<\_ACEOF
28221#define ZFS_ENUM_ZONE_STAT_ITEM_NR_FILE_PAGES 1
28222_ACEOF
cae5b340 28223
42f7b73b 28224 ZFS_ENUM_ZONE_STAT_ITEM_NR_FILE_PAGES=1
cae5b340 28225
42f7b73b 28226else
cae5b340 28227
42f7b73b
AX
28228 { $as_echo "$as_me:$LINENO: result: no" >&5
28229$as_echo "no" >&6; }
cae5b340 28230
42f7b73b 28231fi
cae5b340
AX
28232
28233
28234
42f7b73b
AX
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
cae5b340 28243
42f7b73b
AX
28244 { $as_echo "$as_me:$LINENO: result: yes" >&5
28245$as_echo "yes" >&6; }
cae5b340 28246
42f7b73b
AX
28247cat >>confdefs.h <<\_ACEOF
28248#define ZFS_ENUM_ZONE_STAT_ITEM_NR_INACTIVE_ANON 1
28249_ACEOF
cae5b340 28250
42f7b73b 28251 ZFS_ENUM_ZONE_STAT_ITEM_NR_INACTIVE_ANON=1
cae5b340 28252
cae5b340 28253else
cae5b340 28254
42f7b73b
AX
28255 { $as_echo "$as_me:$LINENO: result: no" >&5
28256$as_echo "no" >&6; }
cae5b340 28257
cae5b340
AX
28258fi
28259
28260
28261
42f7b73b
AX
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; }
cae5b340 28273
42f7b73b
AX
28274cat >>confdefs.h <<\_ACEOF
28275#define ZFS_ENUM_ZONE_STAT_ITEM_NR_INACTIVE_FILE 1
28276_ACEOF
cae5b340 28277
42f7b73b 28278 ZFS_ENUM_ZONE_STAT_ITEM_NR_INACTIVE_FILE=1
cae5b340 28279
cae5b340 28280else
42f7b73b
AX
28281
28282 { $as_echo "$as_me:$LINENO: result: no" >&5
28283$as_echo "no" >&6; }
28284
cae5b340
AX
28285fi
28286
28287
cae5b340 28288
42f7b73b
AX
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
cae5b340 28297
42f7b73b
AX
28298 { $as_echo "$as_me:$LINENO: result: yes" >&5
28299$as_echo "yes" >&6; }
28300
28301cat >>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
cae5b340 28306
cae5b340 28307else
42f7b73b
AX
28308
28309 { $as_echo "$as_me:$LINENO: result: no" >&5
28310$as_echo "no" >&6; }
28311
cae5b340
AX
28312fi
28313
28314
42f7b73b
AX
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!
28335See \`config.log' for more details." >&5
28336$as_echo "$as_me: error: SHUT 'ER DOWN CLANCY, SHE'S PUMPIN' MUD!
28337See \`config.log' for more details." >&2;}
28338 { (exit 1); exit 1; }; }; }
28339
28340
cae5b340
AX
28341fi
28342
42f7b73b
AX
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!
28355See \`config.log' for more details." >&5
28356$as_echo "$as_me: error: SHUT 'ER DOWN CLANCY, SHE'S PUMPIN' MUD!
28357See \`config.log' for more details." >&2;}
28358 { (exit 1); exit 1; }; }; }
28359
cae5b340
AX
28360
28361fi
28362
28363
28364
42f7b73b
AX
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
cae5b340
AX
28368
28369
42f7b73b
AX
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!
28379See \`config.log' for more details." >&5
28380$as_echo "$as_me: error: SHUT 'ER DOWN CLANCY, SHE'S PUMPIN' MUD!
28381See \`config.log' for more details." >&2;}
28382 { (exit 1); exit 1; }; }; }
28383
cae5b340 28384
cae5b340 28385fi
cae5b340 28386
42f7b73b
AX
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!
28399See \`config.log' for more details." >&5
28400$as_echo "$as_me: error: SHUT 'ER DOWN CLANCY, SHE'S PUMPIN' MUD!
28401See \`config.log' for more details." >&2;}
28402 { (exit 1); exit 1; }; }; }
28403
28404
cae5b340
AX
28405fi
28406
cae5b340 28407
cae5b340 28408
42f7b73b
AX
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!
28423See \`config.log' for more details." >&5
28424$as_echo "$as_me: error: SHUT 'ER DOWN CLANCY, SHE'S PUMPIN' MUD!
28425See \`config.log' for more details." >&2;}
28426 { (exit 1); exit 1; }; }; }
28427
28428
cae5b340
AX
28429fi
28430
42f7b73b
AX
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!
28443See \`config.log' for more details." >&5
28444$as_echo "$as_me: error: SHUT 'ER DOWN CLANCY, SHE'S PUMPIN' MUD!
28445See \`config.log' for more details." >&2;}
28446 { (exit 1); exit 1; }; }; }
cae5b340 28447
cae5b340 28448
cae5b340 28449fi
42f7b73b
AX
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!
28467See \`config.log' for more details." >&5
28468$as_echo "$as_me: error: SHUT 'ER DOWN CLANCY, SHE'S PUMPIN' MUD!
28469See \`config.log' for more details." >&2;}
28470 { (exit 1); exit 1; }; }; }
28471
cae5b340
AX
28472
28473fi
42f7b73b
AX
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
cae5b340 28485$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
42f7b73b 28486{ { $as_echo "$as_me:$LINENO: error: SHUT 'ER DOWN CLANCY, SHE'S PUMPIN' MUD!
cae5b340 28487See \`config.log' for more details." >&5
42f7b73b 28488$as_echo "$as_me: error: SHUT 'ER DOWN CLANCY, SHE'S PUMPIN' MUD!
cae5b340
AX
28489See \`config.log' for more details." >&2;}
28490 { (exit 1); exit 1; }; }; }
42f7b73b
AX
28491
28492
cae5b340
AX
28493fi
28494
28495
28496
42f7b73b
AX
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
28506cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
28507/* confdefs.h. */
28508_ACEOF
28509cat confdefs.h >>conftest.$ac_ext
28510cat >>conftest.$ac_ext <<_ACEOF
28511/* end confdefs.h. */
28512
42f7b73b
AX
28513
28514 #include <linux/backing-dev.h>
28515 #include <linux/refcount.h>
28516 #include <linux/posix_acl.h>
28517
cae5b340 28518int
42f7b73b 28519main (void)
cae5b340 28520{
42f7b73b
AX
28521
28522 struct posix_acl acl;
28523 refcount_t *r __attribute__ ((unused)) = &acl.a_refcount;
28524
cae5b340
AX
28525 ;
28526 return 0;
28527}
42f7b73b 28528
cae5b340 28529_ACEOF
cae5b340
AX
28530
28531
cae5b340 28532
42f7b73b 28533cat - <<_ACEOF >conftest.h
cae5b340 28534
cae5b340 28535_ACEOF
cae5b340 28536
42f7b73b
AX
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
cae5b340 28545 ac_status=$?
cae5b340 28546 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
42f7b73b
AX
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
28557cat >>confdefs.h <<\_ACEOF
28558#define HAVE_ACL_REFCOUNT 1
28559_ACEOF
28560
28561
cae5b340
AX
28562else
28563 $as_echo "$as_me: failed program was:" >&5
28564sed 's/^/| /' conftest.$ac_ext >&5
28565
42f7b73b
AX
28566 { $as_echo "$as_me:$LINENO: result: no" >&5
28567$as_echo "no" >&6; }
cae5b340 28568
cae5b340 28569
cae5b340 28570
cae5b340
AX
28571fi
28572
42f7b73b 28573 rm -Rf build
cae5b340 28574
42f7b73b
AX
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
28583cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
28584/* confdefs.h. */
28585_ACEOF
28586cat confdefs.h >>conftest.$ac_ext
28587cat >>conftest.$ac_ext <<_ACEOF
28588/* end confdefs.h. */
28589
42f7b73b
AX
28590
28591 #include <linux/capability.h>
28592
cae5b340 28593int
42f7b73b 28594main (void)
cae5b340 28595{
42f7b73b
AX
28596
28597 ns_capable((struct user_namespace *)NULL, CAP_SYS_ADMIN);
28598
cae5b340
AX
28599 ;
28600 return 0;
28601}
42f7b73b 28602
cae5b340 28603_ACEOF
42f7b73b
AX
28604
28605
28606
28607cat - <<_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
cae5b340 28619 ac_status=$?
cae5b340 28620 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
42f7b73b
AX
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
28631cat >>confdefs.h <<\_ACEOF
28632#define HAVE_NS_CAPABLE 1
28633_ACEOF
28634
28635
cae5b340
AX
28636else
28637 $as_echo "$as_me: failed program was:" >&5
28638sed 's/^/| /' conftest.$ac_ext >&5
28639
42f7b73b
AX
28640 { $as_echo "$as_me:$LINENO: result: no" >&5
28641$as_echo "no" >&6; }
cae5b340 28642
cae5b340 28643
cae5b340 28644
cae5b340
AX
28645fi
28646
42f7b73b 28647 rm -Rf build
cae5b340
AX
28648
28649
cae5b340
AX
28650
28651
42f7b73b
AX
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; }
cae5b340 28654
cae5b340 28655
42f7b73b 28656cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
28657/* confdefs.h. */
28658_ACEOF
28659cat confdefs.h >>conftest.$ac_ext
28660cat >>conftest.$ac_ext <<_ACEOF
28661/* end confdefs.h. */
cae5b340 28662
cae5b340 28663
42f7b73b
AX
28664 #include <linux/cred.h>
28665
28666int
28667main (void)
28668{
28669
28670 struct cred cr;
28671 cr.user_ns = (struct user_namespace *)NULL;
28672
28673 ;
28674 return 0;
28675}
cae5b340 28676
cae5b340 28677_ACEOF
42f7b73b
AX
28678
28679
28680
28681cat - <<_ACEOF >conftest.h
28682
cae5b340 28683_ACEOF
42f7b73b
AX
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
cae5b340 28693 ac_status=$?
cae5b340 28694 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
42f7b73b
AX
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
28705cat >>confdefs.h <<\_ACEOF
28706#define HAVE_CRED_USER_NS 1
28707_ACEOF
28708
28709
cae5b340
AX
28710else
28711 $as_echo "$as_me: failed program was:" >&5
28712sed 's/^/| /' conftest.$ac_ext >&5
28713
42f7b73b
AX
28714 { $as_echo "$as_me:$LINENO: result: no" >&5
28715$as_echo "no" >&6; }
cae5b340 28716
cae5b340 28717
cae5b340 28718
cae5b340 28719fi
cae5b340 28720
42f7b73b 28721 rm -Rf build
cae5b340
AX
28722
28723
28724
42f7b73b
AX
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
28730cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
28731/* confdefs.h. */
28732_ACEOF
28733cat confdefs.h >>conftest.$ac_ext
28734cat >>conftest.$ac_ext <<_ACEOF
28735/* end confdefs.h. */
28736
42f7b73b
AX
28737
28738 #include <linux/uidgid.h>
28739
cae5b340 28740int
42f7b73b 28741main (void)
cae5b340 28742{
42f7b73b
AX
28743
28744 kuid_has_mapping((struct user_namespace *)NULL, KUIDT_INIT(0));
28745 kgid_has_mapping((struct user_namespace *)NULL, KGIDT_INIT(0));
28746
cae5b340
AX
28747 ;
28748 return 0;
28749}
42f7b73b 28750
cae5b340 28751_ACEOF
42f7b73b
AX
28752
28753
28754
28755cat - <<_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
cae5b340 28767 ac_status=$?
cae5b340 28768 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
42f7b73b
AX
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
28779cat >>confdefs.h <<\_ACEOF
28780#define HAVE_KUID_HAS_MAPPING 1
28781_ACEOF
28782
28783
cae5b340
AX
28784else
28785 $as_echo "$as_me: failed program was:" >&5
28786sed 's/^/| /' conftest.$ac_ext >&5
28787
42f7b73b
AX
28788 { $as_echo "$as_me:$LINENO: result: no" >&5
28789$as_echo "no" >&6; }
28790
28791
cae5b340
AX
28792
28793fi
28794
42f7b73b
AX
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
cae5b340 28805fi
42f7b73b
AX
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.
28823if test "${with_mounthelperdir+set}" = set; then
28824 withval=$with_mounthelperdir; mounthelperdir=$withval
cae5b340 28825else
42f7b73b 28826 mounthelperdir=/sbin
cae5b340 28827fi
42f7b73b
AX
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.
28837if test "${with_udevdir+set}" = set; then
28838 withval=$with_udevdir; udevdir=$withval
28839else
28840 udevdir=check
cae5b340 28841fi
cae5b340 28842
42f7b73b
AX
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"
28852else
28853
28854 if test -d "$path2"; then
28855 udevdir="$path2"
28856else
28857 udevdir="$default"
28858fi
28859
28860
28861fi
28862
28863
28864fi
28865
28866
28867
28868# Check whether --with-udevruledir was given.
28869if test "${with_udevruledir+set}" = set; then
28870 withval=$with_udevruledir; udevruledir=$withval
28871else
28872 udevruledir="${udevdir}/rules.d"
28873fi
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.
28883if test "${enable_systemd+set}" = set; then
28884 enableval=$enable_systemd; enable_systemd=$enableval
28885else
28886 enable_systemd=check
28887fi
28888
28889
28890
28891# Check whether --with-systemdunitdir was given.
28892if test "${with_systemdunitdir+set}" = set; then
28893 withval=$with_systemdunitdir; systemdunitdir=$withval
28894else
28895 systemdunitdir=/usr/lib/systemd/system
28896fi
28897
28898
28899
28900# Check whether --with-systemdpresetdir was given.
28901if test "${with_systemdpresetdir+set}" = set; then
28902 withval=$with_systemdpresetdir; systemdpresetdir=$withval
28903else
28904 systemdpresetdir=/usr/lib/systemd/system-preset
28905fi
28906
28907
28908
28909# Check whether --with-systemdmodulesloaddir was given.
28910if test "${with_systemdmodulesloaddir+set}" = set; then
28911 withval=$with_systemdmodulesloaddir; systemdmoduleloaddir=$withval
28912else
28913 systemdmodulesloaddir=/usr/lib/modules-load.d
28914fi
28915
28916
28917 if test "x$enable_systemd" = xcheck; then
28918
28919 if systemctl --version >/dev/null 2>&1; then
28920 enable_systemd=yes
28921else
28922 enable_systemd=no
28923fi
28924
28925
28926fi
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
28941else
28942
28943 DEFINE_SYSTEMD='--without systemd'
28944
28945fi
28946
28947
28948
28949
28950
28951
28952
28953
28954
28955
28956 # Check whether --enable-sysvinit was given.
28957if test "${enable_sysvinit+set}" = set; then
28958 enableval=$enable_sysvinit;
28959else
28960 enable_sysvinit=yes
28961fi
28962
28963
28964 if test "x$enable_sysvinit" = xyes; then
28965 ZFS_INIT_SYSV=init.d
28966fi
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.
28976if test "${with_dracutdir+set}" = set; then
28977 withval=$with_dracutdir; dracutdir=$withval
28978else
28979 dracutdir=check
28980fi
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"
28991else
28992
28993 if test -d "$path2"; then
28994 dracutdir="$path2"
28995else
28996 dracutdir="$default"
28997fi
28998
28999
29000fi
29001
29002
29003fi
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; }
29016if test "${ac_cv_header_zlib_h+set}" = set; then
29017 $as_echo_n "(cached) " >&6
29018fi
29019{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
29020$as_echo "$ac_cv_header_zlib_h" >&6; }
29021else
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; }
29025cat >conftest.$ac_ext <<_ACEOF
29026/* confdefs.h. */
29027_ACEOF
29028cat confdefs.h >>conftest.$ac_ext
29029cat >>conftest.$ac_ext <<_ACEOF
29030/* end confdefs.h. */
29031$ac_includes_default
29032#include <zlib.h>
29033_ACEOF
29034rm -f conftest.$ac_objext
29035if { (ac_try="$ac_compile"
29036case "(($ac_try" in
29037 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29038 *) ac_try_echo=$ac_try;;
29039esac
29040eval 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
29053else
29054 $as_echo "$as_me: failed program was:" >&5
29055sed 's/^/| /' conftest.$ac_ext >&5
29056
29057 ac_header_compiler=no
29058fi
29059
29060rm -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; }
29067cat >conftest.$ac_ext <<_ACEOF
29068/* confdefs.h. */
29069_ACEOF
29070cat confdefs.h >>conftest.$ac_ext
29071cat >>conftest.$ac_ext <<_ACEOF
29072/* end confdefs.h. */
29073#include <zlib.h>
29074_ACEOF
29075if { (ac_try="$ac_cpp conftest.$ac_ext"
29076case "(($ac_try" in
29077 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29078 *) ac_try_echo=$ac_try;;
29079esac
29080eval 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
29093else
29094 $as_echo "$as_me: failed program was:" >&5
29095sed 's/^/| /' conftest.$ac_ext >&5
29096
29097 ac_header_preproc=no
29098fi
29099
29100rm -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?
29105case $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 ;;
29128esac
29129{ $as_echo "$as_me:$LINENO: checking for zlib.h" >&5
29130$as_echo_n "checking for zlib.h... " >&6; }
29131if test "${ac_cv_header_zlib_h+set}" = set; then
29132 $as_echo_n "(cached) " >&6
29133else
29134 ac_cv_header_zlib_h=$ac_header_preproc
29135fi
29136{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
29137$as_echo "$ac_cv_header_zlib_h" >&6; }
29138
29139fi
29140if test "x$ac_cv_header_zlib_h" = x""yes; then
29141 :
cae5b340
AX
29142else
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:
42f7b73b 29146 *** zlib.h missing, zlib-devel package required
cae5b340
AX
29147See \`config.log' for more details." >&5
29148$as_echo "$as_me: error:
42f7b73b 29149 *** zlib.h missing, zlib-devel package required
cae5b340
AX
29150See \`config.log' for more details." >&2;}
29151 { (exit 1); exit 1; }; }; }
29152fi
29153
29154
42f7b73b
AX
29155
29156 { $as_echo "$as_me:$LINENO: checking for library containing compress2" >&5
29157$as_echo_n "checking for library containing compress2... " >&6; }
29158if test "${ac_cv_search_compress2+set}" = set; then
cae5b340
AX
29159 $as_echo_n "(cached) " >&6
29160else
29161 ac_func_search_save_LIBS=$LIBS
29162cat >conftest.$ac_ext <<_ACEOF
29163/* confdefs.h. */
29164_ACEOF
29165cat confdefs.h >>conftest.$ac_ext
29166cat >>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
29173extern "C"
29174#endif
42f7b73b 29175char compress2 ();
cae5b340
AX
29176int
29177main ()
29178{
42f7b73b 29179return compress2 ();
cae5b340
AX
29180 ;
29181 return 0;
29182}
29183_ACEOF
42f7b73b 29184for ac_lib in '' z; do
cae5b340
AX
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
29192if { (ac_try="$ac_link"
29193case "(($ac_try" in
29194 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29195 *) ac_try_echo=$ac_try;;
29196esac
29197eval 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
42f7b73b 29212 ac_cv_search_compress2=$ac_res
cae5b340
AX
29213else
29214 $as_echo "$as_me: failed program was:" >&5
29215sed 's/^/| /' conftest.$ac_ext >&5
29216
29217
29218fi
29219
29220rm -rf conftest.dSYM
29221rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29222 conftest$ac_exeext
42f7b73b 29223 if test "${ac_cv_search_compress2+set}" = set; then
cae5b340
AX
29224 break
29225fi
29226done
42f7b73b 29227if test "${ac_cv_search_compress2+set}" = set; then
cae5b340
AX
29228 :
29229else
42f7b73b 29230 ac_cv_search_compress2=no
cae5b340
AX
29231fi
29232rm conftest.$ac_ext
29233LIBS=$ac_func_search_save_LIBS
29234fi
42f7b73b
AX
29235{ $as_echo "$as_me:$LINENO: result: $ac_cv_search_compress2" >&5
29236$as_echo "$ac_cv_search_compress2" >&6; }
29237ac_res=$ac_cv_search_compress2
cae5b340
AX
29238if test "$ac_res" != no; then
29239 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
29240
29241else
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:
42f7b73b 29245 *** compress2() missing, zlib-devel package required
cae5b340
AX
29246See \`config.log' for more details." >&5
29247$as_echo "$as_me: error:
42f7b73b 29248 *** compress2() missing, zlib-devel package required
cae5b340
AX
29249See \`config.log' for more details." >&2;}
29250 { (exit 1); exit 1; }; }; }
29251fi
29252
29253
42f7b73b
AX
29254 { $as_echo "$as_me:$LINENO: checking for library containing uncompress" >&5
29255$as_echo_n "checking for library containing uncompress... " >&6; }
29256if test "${ac_cv_search_uncompress+set}" = set; then
cae5b340
AX
29257 $as_echo_n "(cached) " >&6
29258else
42f7b73b 29259 ac_func_search_save_LIBS=$LIBS
cae5b340
AX
29260cat >conftest.$ac_ext <<_ACEOF
29261/* confdefs.h. */
29262_ACEOF
29263cat confdefs.h >>conftest.$ac_ext
29264cat >>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
29271extern "C"
29272#endif
42f7b73b 29273char uncompress ();
cae5b340
AX
29274int
29275main ()
29276{
42f7b73b 29277return uncompress ();
cae5b340
AX
29278 ;
29279 return 0;
29280}
29281_ACEOF
42f7b73b
AX
29282for 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
cae5b340
AX
29290if { (ac_try="$ac_link"
29291case "(($ac_try" in
29292 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29293 *) ac_try_echo=$ac_try;;
29294esac
29295eval 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
42f7b73b 29310 ac_cv_search_uncompress=$ac_res
cae5b340
AX
29311else
29312 $as_echo "$as_me: failed program was:" >&5
29313sed 's/^/| /' conftest.$ac_ext >&5
29314
42f7b73b 29315
cae5b340
AX
29316fi
29317
29318rm -rf conftest.dSYM
29319rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42f7b73b
AX
29320 conftest$ac_exeext
29321 if test "${ac_cv_search_uncompress+set}" = set; then
29322 break
cae5b340 29323fi
42f7b73b
AX
29324done
29325if test "${ac_cv_search_uncompress+set}" = set; then
29326 :
29327else
29328 ac_cv_search_uncompress=no
29329fi
29330rm conftest.$ac_ext
29331LIBS=$ac_func_search_save_LIBS
29332fi
29333{ $as_echo "$as_me:$LINENO: result: $ac_cv_search_uncompress" >&5
29334$as_echo "$ac_cv_search_uncompress" >&6; }
29335ac_res=$ac_cv_search_uncompress
29336if test "$ac_res" != no; then
29337 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
cae5b340
AX
29338
29339else
42f7b73b 29340 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
cae5b340 29341$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
42f7b73b
AX
29342{ { $as_echo "$as_me:$LINENO: error:
29343 *** uncompress() missing, zlib-devel package required
cae5b340 29344See \`config.log' for more details." >&5
42f7b73b
AX
29345$as_echo "$as_me: error:
29346 *** uncompress() missing, zlib-devel package required
cae5b340
AX
29347See \`config.log' for more details." >&2;}
29348 { (exit 1); exit 1; }; }; }
42f7b73b
AX
29349fi
29350
29351
29352 { $as_echo "$as_me:$LINENO: checking for library containing crc32" >&5
29353$as_echo_n "checking for library containing crc32... " >&6; }
29354if test "${ac_cv_search_crc32+set}" = set; then
cae5b340
AX
29355 $as_echo_n "(cached) " >&6
29356else
29357 ac_func_search_save_LIBS=$LIBS
29358cat >conftest.$ac_ext <<_ACEOF
29359/* confdefs.h. */
29360_ACEOF
29361cat confdefs.h >>conftest.$ac_ext
29362cat >>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
29369extern "C"
29370#endif
42f7b73b 29371char crc32 ();
cae5b340
AX
29372int
29373main ()
29374{
42f7b73b 29375return crc32 ();
cae5b340
AX
29376 ;
29377 return 0;
29378}
29379_ACEOF
42f7b73b 29380for ac_lib in '' z; do
cae5b340
AX
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
29388if { (ac_try="$ac_link"
29389case "(($ac_try" in
29390 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29391 *) ac_try_echo=$ac_try;;
29392esac
29393eval 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
42f7b73b 29408 ac_cv_search_crc32=$ac_res
cae5b340
AX
29409else
29410 $as_echo "$as_me: failed program was:" >&5
29411sed 's/^/| /' conftest.$ac_ext >&5
29412
29413
29414fi
29415
29416rm -rf conftest.dSYM
29417rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29418 conftest$ac_exeext
42f7b73b 29419 if test "${ac_cv_search_crc32+set}" = set; then
cae5b340
AX
29420 break
29421fi
29422done
42f7b73b 29423if test "${ac_cv_search_crc32+set}" = set; then
cae5b340
AX
29424 :
29425else
42f7b73b 29426 ac_cv_search_crc32=no
cae5b340
AX
29427fi
29428rm conftest.$ac_ext
29429LIBS=$ac_func_search_save_LIBS
29430fi
42f7b73b
AX
29431{ $as_echo "$as_me:$LINENO: result: $ac_cv_search_crc32" >&5
29432$as_echo "$ac_cv_search_crc32" >&6; }
29433ac_res=$ac_cv_search_crc32
cae5b340
AX
29434if test "$ac_res" != no; then
29435 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
29436
29437else
42f7b73b 29438 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
cae5b340 29439$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
42f7b73b
AX
29440{ { $as_echo "$as_me:$LINENO: error:
29441 *** crc32() missing, zlib-devel package required
cae5b340 29442See \`config.log' for more details." >&5
42f7b73b
AX
29443$as_echo "$as_me: error:
29444 *** crc32() missing, zlib-devel package required
cae5b340
AX
29445See \`config.log' for more details." >&2;}
29446 { (exit 1); exit 1; }; }; }
29447fi
29448
29449
42f7b73b 29450 ZLIB="-lz"
cae5b340 29451
cae5b340 29452
42f7b73b
AX
29453cat >>confdefs.h <<\_ACEOF
29454#define HAVE_ZLIB 1
cae5b340 29455_ACEOF
cae5b340
AX
29456
29457
29458
42f7b73b 29459 LIBUUID=
cae5b340 29460
42f7b73b
AX
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; }
29464if test "${ac_cv_header_uuid_uuid_h+set}" = set; then
cae5b340
AX
29465 $as_echo_n "(cached) " >&6
29466fi
42f7b73b
AX
29467{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_uuid_uuid_h" >&5
29468$as_echo "$ac_cv_header_uuid_uuid_h" >&6; }
cae5b340
AX
29469else
29470 # Is the header compilable?
42f7b73b
AX
29471{ $as_echo "$as_me:$LINENO: checking uuid/uuid.h usability" >&5
29472$as_echo_n "checking uuid/uuid.h usability... " >&6; }
cae5b340
AX
29473cat >conftest.$ac_ext <<_ACEOF
29474/* confdefs.h. */
29475_ACEOF
29476cat confdefs.h >>conftest.$ac_ext
29477cat >>conftest.$ac_ext <<_ACEOF
29478/* end confdefs.h. */
29479$ac_includes_default
42f7b73b 29480#include <uuid/uuid.h>
cae5b340
AX
29481_ACEOF
29482rm -f conftest.$ac_objext
29483if { (ac_try="$ac_compile"
29484case "(($ac_try" in
29485 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29486 *) ac_try_echo=$ac_try;;
29487esac
29488eval 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
29501else
29502 $as_echo "$as_me: failed program was:" >&5
29503sed 's/^/| /' conftest.$ac_ext >&5
29504
29505 ac_header_compiler=no
29506fi
29507
29508rm -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?
42f7b73b
AX
29513{ $as_echo "$as_me:$LINENO: checking uuid/uuid.h presence" >&5
29514$as_echo_n "checking uuid/uuid.h presence... " >&6; }
cae5b340
AX
29515cat >conftest.$ac_ext <<_ACEOF
29516/* confdefs.h. */
29517_ACEOF
29518cat confdefs.h >>conftest.$ac_ext
29519cat >>conftest.$ac_ext <<_ACEOF
29520/* end confdefs.h. */
42f7b73b 29521#include <uuid/uuid.h>
cae5b340
AX
29522_ACEOF
29523if { (ac_try="$ac_cpp conftest.$ac_ext"
29524case "(($ac_try" in
29525 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29526 *) ac_try_echo=$ac_try;;
29527esac
29528eval 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
29541else
29542 $as_echo "$as_me: failed program was:" >&5
29543sed 's/^/| /' conftest.$ac_ext >&5
29544
29545 ac_header_preproc=no
29546fi
29547
29548rm -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?
29553case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29554 yes:no: )
42f7b73b
AX
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;}
cae5b340
AX
29559 ac_header_preproc=yes
29560 ;;
29561 no:yes:* )
42f7b73b
AX
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;}
cae5b340
AX
29574
29575 ;;
29576esac
42f7b73b
AX
29577{ $as_echo "$as_me:$LINENO: checking for uuid/uuid.h" >&5
29578$as_echo_n "checking for uuid/uuid.h... " >&6; }
29579if test "${ac_cv_header_uuid_uuid_h+set}" = set; then
cae5b340
AX
29580 $as_echo_n "(cached) " >&6
29581else
42f7b73b 29582 ac_cv_header_uuid_uuid_h=$ac_header_preproc
cae5b340 29583fi
42f7b73b
AX
29584{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_uuid_uuid_h" >&5
29585$as_echo "$ac_cv_header_uuid_uuid_h" >&6; }
cae5b340
AX
29586
29587fi
42f7b73b 29588if test "x$ac_cv_header_uuid_uuid_h" = x""yes; then
cae5b340
AX
29589 :
29590else
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:
42f7b73b 29594 *** uuid/uuid.h missing, libuuid-devel package required
cae5b340
AX
29595See \`config.log' for more details." >&5
29596$as_echo "$as_me: error:
42f7b73b 29597 *** uuid/uuid.h missing, libuuid-devel package required
cae5b340
AX
29598See \`config.log' for more details." >&2;}
29599 { (exit 1); exit 1; }; }; }
29600fi
29601
29602
29603
42f7b73b
AX
29604 { $as_echo "$as_me:$LINENO: checking for library containing uuid_generate" >&5
29605$as_echo_n "checking for library containing uuid_generate... " >&6; }
29606if test "${ac_cv_search_uuid_generate+set}" = set; then
cae5b340 29607 $as_echo_n "(cached) " >&6
cae5b340 29608else
42f7b73b 29609 ac_func_search_save_LIBS=$LIBS
cae5b340
AX
29610cat >conftest.$ac_ext <<_ACEOF
29611/* confdefs.h. */
29612_ACEOF
29613cat confdefs.h >>conftest.$ac_ext
29614cat >>conftest.$ac_ext <<_ACEOF
29615/* end confdefs.h. */
42f7b73b
AX
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
29621extern "C"
29622#endif
29623char uuid_generate ();
29624int
29625main ()
29626{
29627return uuid_generate ();
29628 ;
29629 return 0;
29630}
cae5b340 29631_ACEOF
42f7b73b
AX
29632for 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
29640if { (ac_try="$ac_link"
cae5b340
AX
29641case "(($ac_try" in
29642 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29643 *) ac_try_echo=$ac_try;;
29644esac
29645eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29646$as_echo "$ac_try_echo") >&5
42f7b73b 29647 (eval "$ac_link") 2>conftest.er1
cae5b340
AX
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
42f7b73b
AX
29656 } && test -s conftest$ac_exeext && {
29657 test "$cross_compiling" = yes ||
29658 $as_test_x conftest$ac_exeext
cae5b340 29659 }; then
42f7b73b 29660 ac_cv_search_uuid_generate=$ac_res
cae5b340
AX
29661else
29662 $as_echo "$as_me: failed program was:" >&5
29663sed 's/^/| /' conftest.$ac_ext >&5
29664
cae5b340 29665
cae5b340 29666fi
cae5b340 29667
42f7b73b
AX
29668rm -rf conftest.dSYM
29669rm -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
cae5b340 29673fi
42f7b73b
AX
29674done
29675if test "${ac_cv_search_uuid_generate+set}" = set; then
cae5b340 29676 :
42f7b73b
AX
29677else
29678 ac_cv_search_uuid_generate=no
29679fi
29680rm conftest.$ac_ext
29681LIBS=$ac_func_search_save_LIBS
29682fi
29683{ $as_echo "$as_me:$LINENO: result: $ac_cv_search_uuid_generate" >&5
29684$as_echo "$ac_cv_search_uuid_generate" >&6; }
29685ac_res=$ac_cv_search_uuid_generate
29686if test "$ac_res" != no; then
29687 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
29688
cae5b340
AX
29689else
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:
42f7b73b 29693 *** uuid_generate() missing, libuuid-devel package required
cae5b340
AX
29694See \`config.log' for more details." >&5
29695$as_echo "$as_me: error:
42f7b73b 29696 *** uuid_generate() missing, libuuid-devel package required
cae5b340
AX
29697See \`config.log' for more details." >&2;}
29698 { (exit 1); exit 1; }; }; }
29699fi
29700
29701
42f7b73b
AX
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; }
29704if test "${ac_cv_search_uuid_is_null+set}" = set; then
cae5b340 29705 $as_echo_n "(cached) " >&6
cae5b340 29706else
42f7b73b 29707 ac_func_search_save_LIBS=$LIBS
cae5b340
AX
29708cat >conftest.$ac_ext <<_ACEOF
29709/* confdefs.h. */
29710_ACEOF
29711cat confdefs.h >>conftest.$ac_ext
29712cat >>conftest.$ac_ext <<_ACEOF
29713/* end confdefs.h. */
42f7b73b
AX
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
29719extern "C"
29720#endif
29721char uuid_is_null ();
29722int
29723main ()
29724{
29725return uuid_is_null ();
29726 ;
29727 return 0;
29728}
cae5b340 29729_ACEOF
42f7b73b
AX
29730for 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
29738if { (ac_try="$ac_link"
cae5b340
AX
29739case "(($ac_try" in
29740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29741 *) ac_try_echo=$ac_try;;
29742esac
29743eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29744$as_echo "$ac_try_echo") >&5
42f7b73b 29745 (eval "$ac_link") 2>conftest.er1
cae5b340
AX
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
42f7b73b
AX
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
cae5b340
AX
29759else
29760 $as_echo "$as_me: failed program was:" >&5
29761sed 's/^/| /' conftest.$ac_ext >&5
29762
cae5b340 29763
42f7b73b 29764fi
cae5b340 29765
42f7b73b
AX
29766rm -rf conftest.dSYM
29767rm -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
29771fi
29772done
29773if test "${ac_cv_search_uuid_is_null+set}" = set; then
29774 :
cae5b340 29775else
42f7b73b 29776 ac_cv_search_uuid_is_null=no
cae5b340 29777fi
42f7b73b
AX
29778rm conftest.$ac_ext
29779LIBS=$ac_func_search_save_LIBS
29780fi
29781{ $as_echo "$as_me:$LINENO: result: $ac_cv_search_uuid_is_null" >&5
29782$as_echo "$ac_cv_search_uuid_is_null" >&6; }
29783ac_res=$ac_cv_search_uuid_is_null
29784if test "$ac_res" != no; then
29785 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
cae5b340 29786
cae5b340 29787else
42f7b73b
AX
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
29792See \`config.log' for more details." >&5
29793$as_echo "$as_me: error:
29794 *** uuid_is_null() missing, libuuid-devel package required
29795See \`config.log' for more details." >&2;}
29796 { (exit 1); exit 1; }; }; }
cae5b340 29797fi
cae5b340 29798
cae5b340 29799
42f7b73b 29800 LIBUUID="-luuid"
cae5b340
AX
29801
29802
29803cat >>confdefs.h <<\_ACEOF
42f7b73b 29804#define HAVE_LIBUUID 1
cae5b340
AX
29805_ACEOF
29806
29807
cae5b340 29808
cae5b340 29809
42f7b73b
AX
29810# Check whether --with-tirpc was given.
29811if test "${with_tirpc+set}" = set; then
29812 withval=$with_tirpc;
29813else
29814 with_tirpc=check
cae5b340
AX
29815fi
29816
29817
42f7b73b
AX
29818 LIBTIRPC=
29819 LIBTIRPC_CFLAGS=
cae5b340 29820
42f7b73b
AX
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; }
29824if test "${ac_cv_lib_tirpc_xdrmem_create+set}" = set; then
cae5b340
AX
29825 $as_echo_n "(cached) " >&6
29826else
42f7b73b
AX
29827 ac_check_lib_save_LIBS=$LIBS
29828LIBS="-ltirpc $LIBS"
cae5b340
AX
29829cat >conftest.$ac_ext <<_ACEOF
29830/* confdefs.h. */
29831_ACEOF
29832cat confdefs.h >>conftest.$ac_ext
29833cat >>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
29840extern "C"
29841#endif
42f7b73b 29842char xdrmem_create ();
cae5b340
AX
29843int
29844main ()
29845{
42f7b73b 29846return xdrmem_create ();
cae5b340
AX
29847 ;
29848 return 0;
29849}
29850_ACEOF
42f7b73b 29851rm -f conftest.$ac_objext conftest$ac_exeext
cae5b340
AX
29852if { (ac_try="$ac_link"
29853case "(($ac_try" in
29854 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29855 *) ac_try_echo=$ac_try;;
29856esac
29857eval 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
42f7b73b 29872 ac_cv_lib_tirpc_xdrmem_create=yes
cae5b340
AX
29873else
29874 $as_echo "$as_me: failed program was:" >&5
29875sed 's/^/| /' conftest.$ac_ext >&5
29876
42f7b73b 29877 ac_cv_lib_tirpc_xdrmem_create=no
cae5b340
AX
29878fi
29879
29880rm -rf conftest.dSYM
29881rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42f7b73b
AX
29882 conftest$ac_exeext conftest.$ac_ext
29883LIBS=$ac_check_lib_save_LIBS
cae5b340 29884fi
42f7b73b
AX
29885{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_tirpc_xdrmem_create" >&5
29886$as_echo "$ac_cv_lib_tirpc_xdrmem_create" >&6; }
29887if test "x$ac_cv_lib_tirpc_xdrmem_create" = x""yes; then
29888 LIBTIRPC=-ltirpc
29889
29890 LIBTIRPC_CFLAGS=-I/usr/include/tirpc
cae5b340
AX
29891
29892
29893cat >>confdefs.h <<\_ACEOF
42f7b73b 29894#define HAVE_LIBTIRPC 1
cae5b340
AX
29895_ACEOF
29896
cae5b340 29897
42f7b73b
AX
29898else
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
29903See \`config.log' for more details." >&5
29904$as_echo "$as_me: error: --with-tirpc was given, but test for tirpc failed
29905See \`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; }
29910if test "${ac_cv_search_xdrmem_create+set}" = set; then
29911 $as_echo_n "(cached) " >&6
29912else
29913 ac_func_search_save_LIBS=$LIBS
29914cat >conftest.$ac_ext <<_ACEOF
cae5b340
AX
29915/* confdefs.h. */
29916_ACEOF
29917cat confdefs.h >>conftest.$ac_ext
29918cat >>conftest.$ac_ext <<_ACEOF
29919/* end confdefs.h. */
29920
42f7b73b
AX
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
29925extern "C"
29926#endif
29927char xdrmem_create ();
cae5b340
AX
29928int
29929main ()
29930{
42f7b73b 29931return xdrmem_create ();
cae5b340
AX
29932 ;
29933 return 0;
29934}
29935_ACEOF
42f7b73b
AX
29936for 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
29944if { (ac_try="$ac_link"
cae5b340
AX
29945case "(($ac_try" in
29946 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29947 *) ac_try_echo=$ac_try;;
29948esac
29949eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29950$as_echo "$ac_try_echo") >&5
42f7b73b 29951 (eval "$ac_link") 2>conftest.er1
cae5b340
AX
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
42f7b73b
AX
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
cae5b340
AX
29965else
29966 $as_echo "$as_me: failed program was:" >&5
29967sed 's/^/| /' conftest.$ac_ext >&5
29968
29969
cae5b340
AX
29970fi
29971
42f7b73b
AX
29972rm -rf conftest.dSYM
29973rm -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
29977fi
29978done
29979if test "${ac_cv_search_xdrmem_create+set}" = set; then
29980 :
29981else
29982 ac_cv_search_xdrmem_create=no
29983fi
29984rm conftest.$ac_ext
29985LIBS=$ac_func_search_save_LIBS
29986fi
29987{ $as_echo "$as_me:$LINENO: result: $ac_cv_search_xdrmem_create" >&5
29988$as_echo "$ac_cv_search_xdrmem_create" >&6; }
29989ac_res=$ac_cv_search_xdrmem_create
29990if test "$ac_res" != no; then
29991 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
cae5b340 29992
42f7b73b 29993else
cae5b340 29994
42f7b73b
AX
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
29998See \`config.log' for more details." >&5
29999$as_echo "$as_me: error: xdrmem_create() requires tirpc or libc
30000See \`config.log' for more details." >&2;}
30001 { (exit 1); exit 1; }; }; }
30002fi
cae5b340 30003
cae5b340 30004
42f7b73b 30005fi
cae5b340 30006
42f7b73b
AX
30007else
30008 { $as_echo "$as_me:$LINENO: checking for library containing xdrmem_create" >&5
30009$as_echo_n "checking for library containing xdrmem_create... " >&6; }
30010if test "${ac_cv_search_xdrmem_create+set}" = set; then
30011 $as_echo_n "(cached) " >&6
30012else
30013 ac_func_search_save_LIBS=$LIBS
30014cat >conftest.$ac_ext <<_ACEOF
cae5b340
AX
30015/* confdefs.h. */
30016_ACEOF
30017cat confdefs.h >>conftest.$ac_ext
30018cat >>conftest.$ac_ext <<_ACEOF
30019/* end confdefs.h. */
30020
42f7b73b
AX
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
30025extern "C"
30026#endif
30027char xdrmem_create ();
cae5b340
AX
30028int
30029main ()
30030{
42f7b73b 30031return xdrmem_create ();
cae5b340
AX
30032 ;
30033 return 0;
30034}
30035_ACEOF
42f7b73b
AX
30036for 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
30044if { (ac_try="$ac_link"
cae5b340
AX
30045case "(($ac_try" in
30046 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30047 *) ac_try_echo=$ac_try;;
30048esac
30049eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30050$as_echo "$ac_try_echo") >&5
42f7b73b 30051 (eval "$ac_link") 2>conftest.er1
cae5b340
AX
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
42f7b73b
AX
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
30065else
30066 $as_echo "$as_me: failed program was:" >&5
30067sed 's/^/| /' conftest.$ac_ext >&5
cae5b340 30068
cae5b340 30069
42f7b73b 30070fi
cae5b340 30071
42f7b73b
AX
30072rm -rf conftest.dSYM
30073rm -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
30077fi
30078done
30079if test "${ac_cv_search_xdrmem_create+set}" = set; then
30080 :
30081else
30082 ac_cv_search_xdrmem_create=no
30083fi
30084rm conftest.$ac_ext
30085LIBS=$ac_func_search_save_LIBS
30086fi
30087{ $as_echo "$as_me:$LINENO: result: $ac_cv_search_xdrmem_create" >&5
30088$as_echo "$ac_cv_search_xdrmem_create" >&6; }
30089ac_res=$ac_cv_search_xdrmem_create
30090if test "$ac_res" != no; then
30091 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
cae5b340
AX
30092
30093else
cae5b340 30094
42f7b73b
AX
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
30098See \`config.log' for more details." >&5
30099$as_echo "$as_me: error: xdrmem_create() requires libc
30100See \`config.log' for more details." >&2;}
30101 { (exit 1); exit 1; }; }; }
30102fi
cae5b340 30103
cae5b340
AX
30104
30105fi
30106
cae5b340
AX
30107
30108
42f7b73b
AX
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; }
30114if test "${ac_cv_header_blkid_blkid_h+set}" = set; then
30115 $as_echo_n "(cached) " >&6
30116fi
30117{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_blkid_blkid_h" >&5
30118$as_echo "$ac_cv_header_blkid_blkid_h" >&6; }
30119else
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; }
30123cat >conftest.$ac_ext <<_ACEOF
cae5b340
AX
30124/* confdefs.h. */
30125_ACEOF
30126cat confdefs.h >>conftest.$ac_ext
30127cat >>conftest.$ac_ext <<_ACEOF
30128/* end confdefs.h. */
42f7b73b
AX
30129$ac_includes_default
30130#include <blkid/blkid.h>
cae5b340
AX
30131_ACEOF
30132rm -f conftest.$ac_objext
30133if { (ac_try="$ac_compile"
30134case "(($ac_try" in
30135 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30136 *) ac_try_echo=$ac_try;;
30137esac
30138eval 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
42f7b73b
AX
30150 ac_header_compiler=yes
30151else
30152 $as_echo "$as_me: failed program was:" >&5
30153sed 's/^/| /' conftest.$ac_ext >&5
cae5b340 30154
42f7b73b
AX
30155 ac_header_compiler=no
30156fi
cae5b340 30157
42f7b73b
AX
30158rm -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; }
cae5b340 30161
42f7b73b
AX
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; }
30165cat >conftest.$ac_ext <<_ACEOF
30166/* confdefs.h. */
30167_ACEOF
30168cat confdefs.h >>conftest.$ac_ext
30169cat >>conftest.$ac_ext <<_ACEOF
30170/* end confdefs.h. */
30171#include <blkid/blkid.h>
30172_ACEOF
30173if { (ac_try="$ac_cpp conftest.$ac_ext"
30174case "(($ac_try" in
30175 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30176 *) ac_try_echo=$ac_try;;
30177esac
30178eval 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
cae5b340
AX
30191else
30192 $as_echo "$as_me: failed program was:" >&5
30193sed 's/^/| /' conftest.$ac_ext >&5
30194
42f7b73b
AX
30195 ac_header_preproc=no
30196fi
cae5b340 30197
42f7b73b
AX
30198rm -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?
30203case $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 ;;
30226esac
30227{ $as_echo "$as_me:$LINENO: checking for blkid/blkid.h" >&5
30228$as_echo_n "checking for blkid/blkid.h... " >&6; }
30229if test "${ac_cv_header_blkid_blkid_h+set}" = set; then
30230 $as_echo_n "(cached) " >&6
30231else
30232 ac_cv_header_blkid_blkid_h=$ac_header_preproc
30233fi
30234{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_blkid_blkid_h" >&5
30235$as_echo "$ac_cv_header_blkid_blkid_h" >&6; }
cae5b340 30236
42f7b73b
AX
30237fi
30238if test "x$ac_cv_header_blkid_blkid_h" = x""yes; then
30239 :
30240else
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
30245See \`config.log' for more details." >&5
30246$as_echo "$as_me: error:
30247 *** blkid.h missing, libblkid-devel package required
30248See \`config.log' for more details." >&2;}
30249 { (exit 1); exit 1; }; }; }
cae5b340
AX
30250fi
30251
cae5b340
AX
30252
30253
42f7b73b 30254 LIBBLKID="-lblkid"
cae5b340 30255
cae5b340 30256
42f7b73b
AX
30257cat >>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; }
30268if test "${ac_cv_header_libudev_h+set}" = set; then
30269 $as_echo_n "(cached) " >&6
30270fi
30271{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_libudev_h" >&5
30272$as_echo "$ac_cv_header_libudev_h" >&6; }
30273else
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; }
30277cat >conftest.$ac_ext <<_ACEOF
cae5b340
AX
30278/* confdefs.h. */
30279_ACEOF
30280cat confdefs.h >>conftest.$ac_ext
30281cat >>conftest.$ac_ext <<_ACEOF
30282/* end confdefs.h. */
42f7b73b
AX
30283$ac_includes_default
30284#include <libudev.h>
cae5b340
AX
30285_ACEOF
30286rm -f conftest.$ac_objext
30287if { (ac_try="$ac_compile"
30288case "(($ac_try" in
30289 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30290 *) ac_try_echo=$ac_try;;
30291esac
30292eval 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
42f7b73b
AX
30304 ac_header_compiler=yes
30305else
30306 $as_echo "$as_me: failed program was:" >&5
30307sed 's/^/| /' conftest.$ac_ext >&5
cae5b340 30308
42f7b73b
AX
30309 ac_header_compiler=no
30310fi
30311
30312rm -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; }
cae5b340 30315
42f7b73b
AX
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; }
30319cat >conftest.$ac_ext <<_ACEOF
30320/* confdefs.h. */
30321_ACEOF
30322cat confdefs.h >>conftest.$ac_ext
30323cat >>conftest.$ac_ext <<_ACEOF
30324/* end confdefs.h. */
30325#include <libudev.h>
30326_ACEOF
30327if { (ac_try="$ac_cpp conftest.$ac_ext"
30328case "(($ac_try" in
30329 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30330 *) ac_try_echo=$ac_try;;
30331esac
30332eval 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
cae5b340
AX
30345else
30346 $as_echo "$as_me: failed program was:" >&5
30347sed 's/^/| /' conftest.$ac_ext >&5
30348
42f7b73b
AX
30349 ac_header_preproc=no
30350fi
cae5b340 30351
42f7b73b
AX
30352rm -f conftest.err conftest.$ac_ext
30353{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30354$as_echo "$ac_header_preproc" >&6; }
cae5b340 30355
42f7b73b
AX
30356# So? What about this header?
30357case $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;}
cae5b340 30378
42f7b73b
AX
30379 ;;
30380esac
30381{ $as_echo "$as_me:$LINENO: checking for libudev.h" >&5
30382$as_echo_n "checking for libudev.h... " >&6; }
30383if test "${ac_cv_header_libudev_h+set}" = set; then
30384 $as_echo_n "(cached) " >&6
30385else
30386 ac_cv_header_libudev_h=$ac_header_preproc
30387fi
30388{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_libudev_h" >&5
30389$as_echo "$ac_cv_header_libudev_h" >&6; }
cae5b340 30390
42f7b73b
AX
30391fi
30392if test "x$ac_cv_header_libudev_h" = x""yes; then
cae5b340 30393
42f7b73b
AX
30394 user_libudev=yes
30395 LIBUDEV="-ludev"
cae5b340
AX
30396
30397
42f7b73b
AX
30398cat >>confdefs.h <<\_ACEOF
30399#define HAVE_LIBUDEV 1
30400_ACEOF
cae5b340 30401
cae5b340 30402
42f7b73b 30403else
cae5b340 30404
42f7b73b 30405 user_libudev=no
cae5b340 30406
42f7b73b 30407fi
cae5b340
AX
30408
30409
30410
42f7b73b
AX
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; }
30413if test "${ac_cv_search_udev_device_get_is_initialized+set}" = set; then
cae5b340
AX
30414 $as_echo_n "(cached) " >&6
30415else
42f7b73b
AX
30416 ac_func_search_save_LIBS=$LIBS
30417cat >conftest.$ac_ext <<_ACEOF
cae5b340
AX
30418/* confdefs.h. */
30419_ACEOF
30420cat confdefs.h >>conftest.$ac_ext
30421cat >>conftest.$ac_ext <<_ACEOF
30422/* end confdefs.h. */
cae5b340
AX
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
30428extern "C"
30429#endif
42f7b73b 30430char udev_device_get_is_initialized ();
cae5b340
AX
30431int
30432main ()
30433{
42f7b73b 30434return udev_device_get_is_initialized ();
cae5b340
AX
30435 ;
30436 return 0;
30437}
30438_ACEOF
42f7b73b
AX
30439for 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
30447if { (ac_try="$ac_link"
30448case "(($ac_try" in
30449 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30450 *) ac_try_echo=$ac_try;;
30451esac
30452eval 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
30468else
30469 $as_echo "$as_me: failed program was:" >&5
30470sed 's/^/| /' conftest.$ac_ext >&5
30471
30472
30473fi
30474
30475rm -rf conftest.dSYM
30476rm -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
30480fi
30481done
30482if test "${ac_cv_search_udev_device_get_is_initialized+set}" = set; then
30483 :
30484else
30485 ac_cv_search_udev_device_get_is_initialized=no
30486fi
30487rm conftest.$ac_ext
30488LIBS=$ac_func_search_save_LIBS
30489fi
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; }
30492ac_res=$ac_cv_search_udev_device_get_is_initialized
30493if test "$ac_res" != no; then
30494 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
30495
30496
30497cat >>confdefs.h <<\_ACEOF
30498#define HAVE_LIBUDEV_UDEV_DEVICE_GET_IS_INITIALIZED 1
30499_ACEOF
30500
30501fi
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
30515cat confdefs.h >>conftest.$ac_ext
30516cat >>conftest.$ac_ext <<_ACEOF
30517/* end confdefs.h. */
30518
30519int
30520main ()
30521{
30522
30523 ;
30524 return 0;
30525}
30526_ACEOF
30527rm -f conftest.$ac_objext
30528if { (ac_try="$ac_compile"
30529case "(($ac_try" in
30530 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30531 *) ac_try_echo=$ac_try;;
30532esac
30533eval 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
30550else
30551 $as_echo "$as_me: failed program was:" >&5
30552sed '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
30559fi
30560
30561rm -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; }
30572if test "${ac_cv_header_libaio_h+set}" = set; then
30573 $as_echo_n "(cached) " >&6
30574fi
30575{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_libaio_h" >&5
30576$as_echo "$ac_cv_header_libaio_h" >&6; }
30577else
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; }
30581cat >conftest.$ac_ext <<_ACEOF
30582/* confdefs.h. */
30583_ACEOF
30584cat confdefs.h >>conftest.$ac_ext
30585cat >>conftest.$ac_ext <<_ACEOF
30586/* end confdefs.h. */
30587$ac_includes_default
30588#include <libaio.h>
30589_ACEOF
30590rm -f conftest.$ac_objext
30591if { (ac_try="$ac_compile"
30592case "(($ac_try" in
30593 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30594 *) ac_try_echo=$ac_try;;
30595esac
30596eval 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
30609else
30610 $as_echo "$as_me: failed program was:" >&5
30611sed 's/^/| /' conftest.$ac_ext >&5
30612
30613 ac_header_compiler=no
30614fi
30615
30616rm -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; }
30623cat >conftest.$ac_ext <<_ACEOF
30624/* confdefs.h. */
30625_ACEOF
30626cat confdefs.h >>conftest.$ac_ext
30627cat >>conftest.$ac_ext <<_ACEOF
30628/* end confdefs.h. */
30629#include <libaio.h>
30630_ACEOF
30631if { (ac_try="$ac_cpp conftest.$ac_ext"
30632case "(($ac_try" in
30633 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30634 *) ac_try_echo=$ac_try;;
30635esac
30636eval 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
30649else
30650 $as_echo "$as_me: failed program was:" >&5
30651sed 's/^/| /' conftest.$ac_ext >&5
30652
30653 ac_header_preproc=no
30654fi
30655
30656rm -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?
30661case $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 ;;
30684esac
30685{ $as_echo "$as_me:$LINENO: checking for libaio.h" >&5
30686$as_echo_n "checking for libaio.h... " >&6; }
30687if test "${ac_cv_header_libaio_h+set}" = set; then
30688 $as_echo_n "(cached) " >&6
30689else
30690 ac_cv_header_libaio_h=$ac_header_preproc
30691fi
30692{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_libaio_h" >&5
30693$as_echo "$ac_cv_header_libaio_h" >&6; }
30694
30695fi
30696if test "x$ac_cv_header_libaio_h" = x""yes; then
30697
30698 user_libaio=yes
30699 LIBAIO="-laio"
30700
30701
30702cat >>confdefs.h <<\_ACEOF
30703#define HAVE_LIBAIO 1
30704_ACEOF
30705
30706
30707else
30708
30709 user_libaio=no
30710
30711fi
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
30727cat confdefs.h >>conftest.$ac_ext
30728cat >>conftest.$ac_ext <<_ACEOF
30729/* end confdefs.h. */
30730
30731 #include <sys/sysmacros.h>
30732
30733int
30734main ()
30735{
30736
30737 int k;
30738 k = makedev(0,0);
30739
30740 ;
30741 return 0;
30742}
30743_ACEOF
30744rm -f conftest.$ac_objext
30745if { (ac_try="$ac_compile"
30746case "(($ac_try" in
30747 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30748 *) ac_try_echo=$ac_try;;
30749esac
30750eval 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
30766cat >>confdefs.h <<\_ACEOF
30767#define HAVE_MAKEDEV_IN_SYSMACROS 1
30768_ACEOF
30769
30770
30771else
30772 $as_echo "$as_me: failed program was:" >&5
30773sed 's/^/| /' conftest.$ac_ext >&5
30774
30775
30776 { $as_echo "$as_me:$LINENO: result: no" >&5
30777$as_echo "no" >&6; }
30778
30779fi
30780
30781rm -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
30789cat confdefs.h >>conftest.$ac_ext
30790cat >>conftest.$ac_ext <<_ACEOF
30791/* end confdefs.h. */
30792
30793 #include <sys/mkdev.h>
30794
30795int
30796main ()
30797{
30798
30799 int k;
30800 k = makedev(0,0);
30801
30802 ;
30803 return 0;
30804}
30805_ACEOF
30806rm -f conftest.$ac_objext
30807if { (ac_try="$ac_compile"
30808case "(($ac_try" in
30809 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30810 *) ac_try_echo=$ac_try;;
30811esac
30812eval 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
30828cat >>confdefs.h <<\_ACEOF
30829#define HAVE_MAKEDEV_IN_MKDEV 1
30830_ACEOF
30831
30832
30833else
30834 $as_echo "$as_me: failed program was:" >&5
30835sed 's/^/| /' conftest.$ac_ext >&5
30836
30837
30838 { $as_echo "$as_me:$LINENO: result: no" >&5
30839$as_echo "no" >&6; }
30840
30841fi
30842
30843rm -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
30855cat confdefs.h >>conftest.$ac_ext
30856cat >>conftest.$ac_ext <<_ACEOF
30857/* end confdefs.h. */
30858
30859int
30860main ()
30861{
30862
30863 ;
30864 return 0;
30865}
30866_ACEOF
30867rm -f conftest.$ac_objext
30868if { (ac_try="$ac_compile"
30869case "(($ac_try" in
30870 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30871 *) ac_try_echo=$ac_try;;
30872esac
30873eval 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
30890else
30891 $as_echo "$as_me: failed program was:" >&5
30892sed '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
30899fi
30900
30901rm -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
30915for ac_func in mlockall
30916do
30917as_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; }
30920if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30921 $as_echo_n "(cached) " >&6
30922else
30923 cat >conftest.$ac_ext <<_ACEOF
30924/* confdefs.h. */
30925_ACEOF
30926cat confdefs.h >>conftest.$ac_ext
30927cat >>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
30950extern "C"
30951#endif
30952char $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
30957choke me
30958#endif
30959
30960int
30961main ()
30962{
30963return $ac_func ();
30964 ;
30965 return 0;
30966}
30967_ACEOF
30968rm -f conftest.$ac_objext conftest$ac_exeext
30969if { (ac_try="$ac_link"
30970case "(($ac_try" in
cae5b340
AX
30971 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30972 *) ac_try_echo=$ac_try;;
30973esac
30974eval 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"
30990else
30991 $as_echo "$as_me: failed program was:" >&5
30992sed 's/^/| /' conftest.$ac_ext >&5
30993
30994 eval "$as_ac_var=no"
30995fi
30996
30997rm -rf conftest.dSYM
30998rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30999 conftest$ac_exeext conftest.$ac_ext
31000fi
31001ac_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; }
31005as_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
31012fi
31013done
31014
31015 ;;
31016 all)
31017
31018
31019# Check whether --with-mounthelperdir was given.
31020if test "${with_mounthelperdir+set}" = set; then
31021 withval=$with_mounthelperdir; mounthelperdir=$withval
31022else
31023 mounthelperdir=/sbin
31024fi
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.
31034if test "${with_udevdir+set}" = set; then
31035 withval=$with_udevdir; udevdir=$withval
31036else
31037 udevdir=check
31038fi
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"
31049else
31050
31051 if test -d "$path2"; then
31052 udevdir="$path2"
31053else
31054 udevdir="$default"
31055fi
31056
31057
31058fi
31059
31060
31061fi
31062
31063
31064
31065# Check whether --with-udevruledir was given.
31066if test "${with_udevruledir+set}" = set; then
31067 withval=$with_udevruledir; udevruledir=$withval
31068else
31069 udevruledir="${udevdir}/rules.d"
31070fi
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.
31080if test "${enable_systemd+set}" = set; then
42f7b73b 31081 enableval=$enable_systemd; enable_systemd=$enableval
cae5b340 31082else
42f7b73b 31083 enable_systemd=check
cae5b340
AX
31084fi
31085
31086
31087
31088# Check whether --with-systemdunitdir was given.
31089if test "${with_systemdunitdir+set}" = set; then
31090 withval=$with_systemdunitdir; systemdunitdir=$withval
68d83c55
AX
31091else
31092 systemdunitdir=/usr/lib/systemd/system
31093fi
31094
31095
31096
cae5b340
AX
31097# Check whether --with-systemdpresetdir was given.
31098if test "${with_systemdpresetdir+set}" = set; then
31099 withval=$with_systemdpresetdir; systemdpresetdir=$withval
31100else
31101 systemdpresetdir=/usr/lib/systemd/system-preset
31102fi
31103
31104
31105
31106# Check whether --with-systemdmodulesloaddir was given.
31107if test "${with_systemdmodulesloaddir+set}" = set; then
31108 withval=$with_systemdmodulesloaddir; systemdmoduleloaddir=$withval
31109else
31110 systemdmodulesloaddir=/usr/lib/modules-load.d
31111fi
31112
31113
42f7b73b
AX
31114 if test "x$enable_systemd" = xcheck; then
31115
31116 if systemctl --version >/dev/null 2>&1; then
31117 enable_systemd=yes
31118else
31119 enable_systemd=no
31120fi
31121
31122
31123fi
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; }
cae5b340
AX
31130
31131 if test "x$enable_systemd" = xyes; then
31132
31133 ZFS_INIT_SYSTEMD=systemd
31134 ZFS_MODULE_LOAD=modules-load.d
42f7b73b 31135 DEFINE_SYSTEMD='--with systemd --define "_unitdir $(systemdunitdir)" --define "_presetdir $(systemdpresetdir)"'
cae5b340
AX
31136 modulesloaddir=$systemdmodulesloaddir
31137
42f7b73b
AX
31138else
31139
31140 DEFINE_SYSTEMD='--without systemd'
31141
cae5b340
AX
31142fi
31143
31144
31145
31146
31147
31148
31149
31150
31151
42f7b73b 31152
cae5b340
AX
31153 # Check whether --enable-sysvinit was given.
31154if test "${enable_sysvinit+set}" = set; then
31155 enableval=$enable_sysvinit;
31156else
31157 enable_sysvinit=yes
31158fi
31159
31160
31161 if test "x$enable_sysvinit" = xyes; then
31162 ZFS_INIT_SYSV=init.d
31163fi
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.
31173if test "${with_dracutdir+set}" = set; then
31174 withval=$with_dracutdir; dracutdir=$withval
31175else
31176 dracutdir=check
31177fi
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"
31188else
31189
31190 if test -d "$path2"; then
31191 dracutdir="$path2"
31192else
31193 dracutdir="$default"
31194fi
31195
31196
31197fi
31198
31199
31200fi
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; }
31213if test "${ac_cv_header_zlib_h+set}" = set; then
31214 $as_echo_n "(cached) " >&6
31215fi
31216{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
31217$as_echo "$ac_cv_header_zlib_h" >&6; }
31218else
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; }
31222cat >conftest.$ac_ext <<_ACEOF
31223/* confdefs.h. */
31224_ACEOF
31225cat confdefs.h >>conftest.$ac_ext
31226cat >>conftest.$ac_ext <<_ACEOF
31227/* end confdefs.h. */
31228$ac_includes_default
31229#include <zlib.h>
31230_ACEOF
31231rm -f conftest.$ac_objext
31232if { (ac_try="$ac_compile"
31233case "(($ac_try" in
31234 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31235 *) ac_try_echo=$ac_try;;
31236esac
31237eval 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
31250else
31251 $as_echo "$as_me: failed program was:" >&5
31252sed 's/^/| /' conftest.$ac_ext >&5
31253
31254 ac_header_compiler=no
31255fi
31256
31257rm -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; }
31264cat >conftest.$ac_ext <<_ACEOF
31265/* confdefs.h. */
31266_ACEOF
31267cat confdefs.h >>conftest.$ac_ext
31268cat >>conftest.$ac_ext <<_ACEOF
31269/* end confdefs.h. */
31270#include <zlib.h>
31271_ACEOF
31272if { (ac_try="$ac_cpp conftest.$ac_ext"
31273case "(($ac_try" in
31274 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31275 *) ac_try_echo=$ac_try;;
31276esac
31277eval 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
31290else
31291 $as_echo "$as_me: failed program was:" >&5
31292sed 's/^/| /' conftest.$ac_ext >&5
31293
31294 ac_header_preproc=no
31295fi
31296
31297rm -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?
31302case $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 ;;
31325esac
31326{ $as_echo "$as_me:$LINENO: checking for zlib.h" >&5
31327$as_echo_n "checking for zlib.h... " >&6; }
31328if test "${ac_cv_header_zlib_h+set}" = set; then
31329 $as_echo_n "(cached) " >&6
31330else
31331 ac_cv_header_zlib_h=$ac_header_preproc
31332fi
31333{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
31334$as_echo "$ac_cv_header_zlib_h" >&6; }
31335
31336fi
31337if test "x$ac_cv_header_zlib_h" = x""yes; then
31338 :
31339else
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
31344See \`config.log' for more details." >&5
31345$as_echo "$as_me: error:
31346 *** zlib.h missing, zlib-devel package required
31347See \`config.log' for more details." >&2;}
31348 { (exit 1); exit 1; }; }; }
31349fi
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; }
31355if test "${ac_cv_search_compress2+set}" = set; then
31356 $as_echo_n "(cached) " >&6
31357else
31358 ac_func_search_save_LIBS=$LIBS
31359cat >conftest.$ac_ext <<_ACEOF
31360/* confdefs.h. */
31361_ACEOF
31362cat confdefs.h >>conftest.$ac_ext
31363cat >>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
31370extern "C"
31371#endif
31372char compress2 ();
31373int
31374main ()
31375{
31376return compress2 ();
31377 ;
31378 return 0;
31379}
31380_ACEOF
31381for 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
31389if { (ac_try="$ac_link"
31390case "(($ac_try" in
31391 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31392 *) ac_try_echo=$ac_try;;
31393esac
31394eval 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
31410else
31411 $as_echo "$as_me: failed program was:" >&5
31412sed 's/^/| /' conftest.$ac_ext >&5
31413
31414
31415fi
31416
31417rm -rf conftest.dSYM
31418rm -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
31422fi
31423done
31424if test "${ac_cv_search_compress2+set}" = set; then
31425 :
31426else
31427 ac_cv_search_compress2=no
31428fi
31429rm conftest.$ac_ext
31430LIBS=$ac_func_search_save_LIBS
31431fi
31432{ $as_echo "$as_me:$LINENO: result: $ac_cv_search_compress2" >&5
31433$as_echo "$ac_cv_search_compress2" >&6; }
31434ac_res=$ac_cv_search_compress2
31435if test "$ac_res" != no; then
31436 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
31437
31438else
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
31443See \`config.log' for more details." >&5
31444$as_echo "$as_me: error:
31445 *** compress2() missing, zlib-devel package required
31446See \`config.log' for more details." >&2;}
31447 { (exit 1); exit 1; }; }; }
31448fi
31449
31450
31451 { $as_echo "$as_me:$LINENO: checking for library containing uncompress" >&5
31452$as_echo_n "checking for library containing uncompress... " >&6; }
31453if test "${ac_cv_search_uncompress+set}" = set; then
31454 $as_echo_n "(cached) " >&6
31455else
31456 ac_func_search_save_LIBS=$LIBS
31457cat >conftest.$ac_ext <<_ACEOF
31458/* confdefs.h. */
31459_ACEOF
31460cat confdefs.h >>conftest.$ac_ext
31461cat >>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
31468extern "C"
31469#endif
31470char uncompress ();
31471int
31472main ()
31473{
31474return uncompress ();
31475 ;
31476 return 0;
31477}
31478_ACEOF
31479for 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
31487if { (ac_try="$ac_link"
31488case "(($ac_try" in
31489 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31490 *) ac_try_echo=$ac_try;;
31491esac
31492eval 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
31508else
31509 $as_echo "$as_me: failed program was:" >&5
31510sed 's/^/| /' conftest.$ac_ext >&5
31511
31512
31513fi
31514
31515rm -rf conftest.dSYM
31516rm -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
31520fi
31521done
31522if test "${ac_cv_search_uncompress+set}" = set; then
31523 :
31524else
31525 ac_cv_search_uncompress=no
31526fi
31527rm conftest.$ac_ext
31528LIBS=$ac_func_search_save_LIBS
31529fi
31530{ $as_echo "$as_me:$LINENO: result: $ac_cv_search_uncompress" >&5
31531$as_echo "$ac_cv_search_uncompress" >&6; }
31532ac_res=$ac_cv_search_uncompress
31533if test "$ac_res" != no; then
31534 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
31535
31536else
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
31541See \`config.log' for more details." >&5
31542$as_echo "$as_me: error:
31543 *** uncompress() missing, zlib-devel package required
31544See \`config.log' for more details." >&2;}
31545 { (exit 1); exit 1; }; }; }
31546fi
31547
31548
31549 { $as_echo "$as_me:$LINENO: checking for library containing crc32" >&5
31550$as_echo_n "checking for library containing crc32... " >&6; }
31551if test "${ac_cv_search_crc32+set}" = set; then
31552 $as_echo_n "(cached) " >&6
31553else
31554 ac_func_search_save_LIBS=$LIBS
31555cat >conftest.$ac_ext <<_ACEOF
31556/* confdefs.h. */
31557_ACEOF
31558cat confdefs.h >>conftest.$ac_ext
31559cat >>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
31566extern "C"
31567#endif
31568char crc32 ();
31569int
31570main ()
31571{
31572return crc32 ();
31573 ;
31574 return 0;
31575}
31576_ACEOF
31577for 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
31585if { (ac_try="$ac_link"
31586case "(($ac_try" in
31587 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31588 *) ac_try_echo=$ac_try;;
31589esac
31590eval 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
31606else
31607 $as_echo "$as_me: failed program was:" >&5
31608sed 's/^/| /' conftest.$ac_ext >&5
31609
31610
31611fi
31612
31613rm -rf conftest.dSYM
31614rm -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
31618fi
31619done
31620if test "${ac_cv_search_crc32+set}" = set; then
31621 :
31622else
31623 ac_cv_search_crc32=no
31624fi
31625rm conftest.$ac_ext
31626LIBS=$ac_func_search_save_LIBS
31627fi
31628{ $as_echo "$as_me:$LINENO: result: $ac_cv_search_crc32" >&5
31629$as_echo "$ac_cv_search_crc32" >&6; }
31630ac_res=$ac_cv_search_crc32
31631if test "$ac_res" != no; then
31632 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
31633
31634else
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
31639See \`config.log' for more details." >&5
31640$as_echo "$as_me: error:
31641 *** crc32() missing, zlib-devel package required
31642See \`config.log' for more details." >&2;}
31643 { (exit 1); exit 1; }; }; }
31644fi
31645
31646
31647 ZLIB="-lz"
31648
31649
31650cat >>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; }
31661if test "${ac_cv_header_uuid_uuid_h+set}" = set; then
31662 $as_echo_n "(cached) " >&6
31663fi
31664{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_uuid_uuid_h" >&5
31665$as_echo "$ac_cv_header_uuid_uuid_h" >&6; }
31666else
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; }
31670cat >conftest.$ac_ext <<_ACEOF
31671/* confdefs.h. */
31672_ACEOF
31673cat confdefs.h >>conftest.$ac_ext
31674cat >>conftest.$ac_ext <<_ACEOF
31675/* end confdefs.h. */
31676$ac_includes_default
31677#include <uuid/uuid.h>
31678_ACEOF
31679rm -f conftest.$ac_objext
31680if { (ac_try="$ac_compile"
31681case "(($ac_try" in
31682 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31683 *) ac_try_echo=$ac_try;;
31684esac
31685eval 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
31698else
31699 $as_echo "$as_me: failed program was:" >&5
31700sed 's/^/| /' conftest.$ac_ext >&5
31701
31702 ac_header_compiler=no
31703fi
31704
31705rm -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; }
31712cat >conftest.$ac_ext <<_ACEOF
31713/* confdefs.h. */
31714_ACEOF
31715cat confdefs.h >>conftest.$ac_ext
31716cat >>conftest.$ac_ext <<_ACEOF
31717/* end confdefs.h. */
31718#include <uuid/uuid.h>
31719_ACEOF
31720if { (ac_try="$ac_cpp conftest.$ac_ext"
31721case "(($ac_try" in
31722 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31723 *) ac_try_echo=$ac_try;;
31724esac
31725eval 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
31738else
31739 $as_echo "$as_me: failed program was:" >&5
31740sed 's/^/| /' conftest.$ac_ext >&5
31741
31742 ac_header_preproc=no
31743fi
31744
31745rm -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?
31750case $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 ;;
31773esac
31774{ $as_echo "$as_me:$LINENO: checking for uuid/uuid.h" >&5
31775$as_echo_n "checking for uuid/uuid.h... " >&6; }
31776if test "${ac_cv_header_uuid_uuid_h+set}" = set; then
31777 $as_echo_n "(cached) " >&6
31778else
31779 ac_cv_header_uuid_uuid_h=$ac_header_preproc
31780fi
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
31784fi
31785if test "x$ac_cv_header_uuid_uuid_h" = x""yes; then
31786 :
31787else
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
31792See \`config.log' for more details." >&5
31793$as_echo "$as_me: error:
31794 *** uuid/uuid.h missing, libuuid-devel package required
31795See \`config.log' for more details." >&2;}
31796 { (exit 1); exit 1; }; }; }
31797fi
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; }
31803if test "${ac_cv_search_uuid_generate+set}" = set; then
31804 $as_echo_n "(cached) " >&6
31805else
31806 ac_func_search_save_LIBS=$LIBS
31807cat >conftest.$ac_ext <<_ACEOF
31808/* confdefs.h. */
31809_ACEOF
31810cat confdefs.h >>conftest.$ac_ext
31811cat >>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
31818extern "C"
31819#endif
31820char uuid_generate ();
31821int
31822main ()
31823{
31824return uuid_generate ();
31825 ;
31826 return 0;
31827}
31828_ACEOF
31829for 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
31837if { (ac_try="$ac_link"
31838case "(($ac_try" in
31839 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31840 *) ac_try_echo=$ac_try;;
31841esac
31842eval 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
31858else
31859 $as_echo "$as_me: failed program was:" >&5
31860sed 's/^/| /' conftest.$ac_ext >&5
31861
31862
31863fi
31864
31865rm -rf conftest.dSYM
31866rm -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
31870fi
31871done
31872if test "${ac_cv_search_uuid_generate+set}" = set; then
31873 :
31874else
31875 ac_cv_search_uuid_generate=no
31876fi
31877rm conftest.$ac_ext
31878LIBS=$ac_func_search_save_LIBS
31879fi
31880{ $as_echo "$as_me:$LINENO: result: $ac_cv_search_uuid_generate" >&5
31881$as_echo "$ac_cv_search_uuid_generate" >&6; }
31882ac_res=$ac_cv_search_uuid_generate
31883if test "$ac_res" != no; then
31884 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
31885
31886else
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
31891See \`config.log' for more details." >&5
31892$as_echo "$as_me: error:
31893 *** uuid_generate() missing, libuuid-devel package required
31894See \`config.log' for more details." >&2;}
31895 { (exit 1); exit 1; }; }; }
31896fi
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; }
31901if test "${ac_cv_search_uuid_is_null+set}" = set; then
31902 $as_echo_n "(cached) " >&6
31903else
31904 ac_func_search_save_LIBS=$LIBS
31905cat >conftest.$ac_ext <<_ACEOF
31906/* confdefs.h. */
31907_ACEOF
31908cat confdefs.h >>conftest.$ac_ext
31909cat >>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
31916extern "C"
31917#endif
31918char uuid_is_null ();
31919int
31920main ()
31921{
31922return uuid_is_null ();
31923 ;
31924 return 0;
31925}
31926_ACEOF
31927for 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
31935if { (ac_try="$ac_link"
31936case "(($ac_try" in
31937 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31938 *) ac_try_echo=$ac_try;;
31939esac
31940eval 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
31956else
31957 $as_echo "$as_me: failed program was:" >&5
31958sed 's/^/| /' conftest.$ac_ext >&5
31959
31960
31961fi
31962
31963rm -rf conftest.dSYM
31964rm -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
31968fi
31969done
31970if test "${ac_cv_search_uuid_is_null+set}" = set; then
31971 :
31972else
31973 ac_cv_search_uuid_is_null=no
31974fi
31975rm conftest.$ac_ext
31976LIBS=$ac_func_search_save_LIBS
31977fi
31978{ $as_echo "$as_me:$LINENO: result: $ac_cv_search_uuid_is_null" >&5
31979$as_echo "$ac_cv_search_uuid_is_null" >&6; }
31980ac_res=$ac_cv_search_uuid_is_null
31981if test "$ac_res" != no; then
31982 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
31983
31984else
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
31989See \`config.log' for more details." >&5
31990$as_echo "$as_me: error:
31991 *** uuid_is_null() missing, libuuid-devel package required
31992See \`config.log' for more details." >&2;}
31993 { (exit 1); exit 1; }; }; }
31994fi
31995
31996
31997 LIBUUID="-luuid"
31998
31999
32000cat >>confdefs.h <<\_ACEOF
32001#define HAVE_LIBUUID 1
32002_ACEOF
32003
32004
32005
32006
32007# Check whether --with-tirpc was given.
32008if test "${with_tirpc+set}" = set; then
32009 withval=$with_tirpc;
32010else
32011 with_tirpc=check
32012fi
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; }
32021if test "${ac_cv_lib_tirpc_xdrmem_create+set}" = set; then
32022 $as_echo_n "(cached) " >&6
32023else
32024 ac_check_lib_save_LIBS=$LIBS
32025LIBS="-ltirpc $LIBS"
32026cat >conftest.$ac_ext <<_ACEOF
32027/* confdefs.h. */
32028_ACEOF
32029cat confdefs.h >>conftest.$ac_ext
32030cat >>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
32037extern "C"
32038#endif
32039char xdrmem_create ();
32040int
32041main ()
32042{
32043return xdrmem_create ();
32044 ;
32045 return 0;
32046}
32047_ACEOF
32048rm -f conftest.$ac_objext conftest$ac_exeext
32049if { (ac_try="$ac_link"
32050case "(($ac_try" in
32051 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32052 *) ac_try_echo=$ac_try;;
32053esac
32054eval 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
32070else
32071 $as_echo "$as_me: failed program was:" >&5
32072sed 's/^/| /' conftest.$ac_ext >&5
32073
32074 ac_cv_lib_tirpc_xdrmem_create=no
32075fi
32076
32077rm -rf conftest.dSYM
32078rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32079 conftest$ac_exeext conftest.$ac_ext
32080LIBS=$ac_check_lib_save_LIBS
32081fi
32082{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_tirpc_xdrmem_create" >&5
32083$as_echo "$ac_cv_lib_tirpc_xdrmem_create" >&6; }
32084if test "x$ac_cv_lib_tirpc_xdrmem_create" = x""yes; then
32085 LIBTIRPC=-ltirpc
32086
32087 LIBTIRPC_CFLAGS=-I/usr/include/tirpc
32088
32089
32090cat >>confdefs.h <<\_ACEOF
32091#define HAVE_LIBTIRPC 1
32092_ACEOF
32093
32094
32095else
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
32100See \`config.log' for more details." >&5
32101$as_echo "$as_me: error: --with-tirpc was given, but test for tirpc failed
32102See \`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; }
32107if test "${ac_cv_search_xdrmem_create+set}" = set; then
32108 $as_echo_n "(cached) " >&6
32109else
32110 ac_func_search_save_LIBS=$LIBS
32111cat >conftest.$ac_ext <<_ACEOF
32112/* confdefs.h. */
32113_ACEOF
32114cat confdefs.h >>conftest.$ac_ext
32115cat >>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
32122extern "C"
32123#endif
32124char xdrmem_create ();
32125int
32126main ()
32127{
32128return xdrmem_create ();
32129 ;
32130 return 0;
32131}
32132_ACEOF
32133for 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
32141if { (ac_try="$ac_link"
32142case "(($ac_try" in
32143 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32144 *) ac_try_echo=$ac_try;;
32145esac
32146eval 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
32162else
32163 $as_echo "$as_me: failed program was:" >&5
32164sed 's/^/| /' conftest.$ac_ext >&5
32165
32166
32167fi
32168
32169rm -rf conftest.dSYM
32170rm -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
32174fi
32175done
32176if test "${ac_cv_search_xdrmem_create+set}" = set; then
32177 :
32178else
32179 ac_cv_search_xdrmem_create=no
32180fi
32181rm conftest.$ac_ext
32182LIBS=$ac_func_search_save_LIBS
32183fi
32184{ $as_echo "$as_me:$LINENO: result: $ac_cv_search_xdrmem_create" >&5
32185$as_echo "$ac_cv_search_xdrmem_create" >&6; }
32186ac_res=$ac_cv_search_xdrmem_create
32187if test "$ac_res" != no; then
32188 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
32189
32190else
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
32195See \`config.log' for more details." >&5
32196$as_echo "$as_me: error: xdrmem_create() requires tirpc or libc
32197See \`config.log' for more details." >&2;}
32198 { (exit 1); exit 1; }; }; }
32199fi
32200
32201
32202fi
32203
32204else
32205 { $as_echo "$as_me:$LINENO: checking for library containing xdrmem_create" >&5
32206$as_echo_n "checking for library containing xdrmem_create... " >&6; }
32207if test "${ac_cv_search_xdrmem_create+set}" = set; then
32208 $as_echo_n "(cached) " >&6
32209else
32210 ac_func_search_save_LIBS=$LIBS
32211cat >conftest.$ac_ext <<_ACEOF
32212/* confdefs.h. */
32213_ACEOF
32214cat confdefs.h >>conftest.$ac_ext
32215cat >>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
32222extern "C"
32223#endif
32224char xdrmem_create ();
32225int
32226main ()
32227{
32228return xdrmem_create ();
32229 ;
32230 return 0;
32231}
32232_ACEOF
32233for 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
32241if { (ac_try="$ac_link"
32242case "(($ac_try" in
32243 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32244 *) ac_try_echo=$ac_try;;
32245esac
32246eval 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
32262else
32263 $as_echo "$as_me: failed program was:" >&5
32264sed 's/^/| /' conftest.$ac_ext >&5
32265
32266
32267fi
32268
32269rm -rf conftest.dSYM
32270rm -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
32274fi
32275done
32276if test "${ac_cv_search_xdrmem_create+set}" = set; then
32277 :
32278else
32279 ac_cv_search_xdrmem_create=no
32280fi
32281rm conftest.$ac_ext
32282LIBS=$ac_func_search_save_LIBS
32283fi
32284{ $as_echo "$as_me:$LINENO: result: $ac_cv_search_xdrmem_create" >&5
32285$as_echo "$ac_cv_search_xdrmem_create" >&6; }
32286ac_res=$ac_cv_search_xdrmem_create
32287if test "$ac_res" != no; then
32288 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
32289
32290else
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
32295See \`config.log' for more details." >&5
32296$as_echo "$as_me: error: xdrmem_create() requires libc
32297See \`config.log' for more details." >&2;}
32298 { (exit 1); exit 1; }; }; }
32299fi
32300
32301
32302fi
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; }
32311if test "${ac_cv_header_blkid_blkid_h+set}" = set; then
32312 $as_echo_n "(cached) " >&6
32313fi
32314{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_blkid_blkid_h" >&5
32315$as_echo "$ac_cv_header_blkid_blkid_h" >&6; }
32316else
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; }
32320cat >conftest.$ac_ext <<_ACEOF
32321/* confdefs.h. */
32322_ACEOF
32323cat confdefs.h >>conftest.$ac_ext
32324cat >>conftest.$ac_ext <<_ACEOF
32325/* end confdefs.h. */
32326$ac_includes_default
32327#include <blkid/blkid.h>
32328_ACEOF
32329rm -f conftest.$ac_objext
32330if { (ac_try="$ac_compile"
32331case "(($ac_try" in
32332 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32333 *) ac_try_echo=$ac_try;;
32334esac
32335eval 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
32348else
32349 $as_echo "$as_me: failed program was:" >&5
32350sed 's/^/| /' conftest.$ac_ext >&5
32351
32352 ac_header_compiler=no
32353fi
32354
32355rm -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; }
32362cat >conftest.$ac_ext <<_ACEOF
32363/* confdefs.h. */
32364_ACEOF
32365cat confdefs.h >>conftest.$ac_ext
32366cat >>conftest.$ac_ext <<_ACEOF
32367/* end confdefs.h. */
32368#include <blkid/blkid.h>
32369_ACEOF
32370if { (ac_try="$ac_cpp conftest.$ac_ext"
32371case "(($ac_try" in
32372 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32373 *) ac_try_echo=$ac_try;;
32374esac
32375eval 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
32388else
32389 $as_echo "$as_me: failed program was:" >&5
32390sed 's/^/| /' conftest.$ac_ext >&5
32391
32392 ac_header_preproc=no
32393fi
32394
32395rm -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?
32400case $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 ;;
32423esac
32424{ $as_echo "$as_me:$LINENO: checking for blkid/blkid.h" >&5
32425$as_echo_n "checking for blkid/blkid.h... " >&6; }
32426if test "${ac_cv_header_blkid_blkid_h+set}" = set; then
32427 $as_echo_n "(cached) " >&6
32428else
32429 ac_cv_header_blkid_blkid_h=$ac_header_preproc
32430fi
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
32434fi
32435if test "x$ac_cv_header_blkid_blkid_h" = x""yes; then
32436 :
32437else
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:
42f7b73b 32441 *** blkid.h missing, libblkid-devel package required
cae5b340
AX
32442See \`config.log' for more details." >&5
32443$as_echo "$as_me: error:
42f7b73b 32444 *** blkid.h missing, libblkid-devel package required
cae5b340
AX
32445See \`config.log' for more details." >&2;}
32446 { (exit 1); exit 1; }; }; }
32447fi
32448
32449
32450
32451 LIBBLKID="-lblkid"
32452
32453
32454cat >>confdefs.h <<\_ACEOF
32455#define HAVE_LIBBLKID 1
32456_ACEOF
32457
32458
32459
42f7b73b
AX
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; }
32465if test "${ac_cv_header_libudev_h+set}" = set; then
32466 $as_echo_n "(cached) " >&6
32467fi
32468{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_libudev_h" >&5
32469$as_echo "$ac_cv_header_libudev_h" >&6; }
32470else
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; }
32474cat >conftest.$ac_ext <<_ACEOF
32475/* confdefs.h. */
32476_ACEOF
32477cat confdefs.h >>conftest.$ac_ext
32478cat >>conftest.$ac_ext <<_ACEOF
32479/* end confdefs.h. */
32480$ac_includes_default
32481#include <libudev.h>
32482_ACEOF
32483rm -f conftest.$ac_objext
32484if { (ac_try="$ac_compile"
32485case "(($ac_try" in
32486 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32487 *) ac_try_echo=$ac_try;;
32488esac
32489eval 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
32502else
32503 $as_echo "$as_me: failed program was:" >&5
32504sed 's/^/| /' conftest.$ac_ext >&5
32505
32506 ac_header_compiler=no
32507fi
32508
32509rm -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; }
32516cat >conftest.$ac_ext <<_ACEOF
32517/* confdefs.h. */
32518_ACEOF
32519cat confdefs.h >>conftest.$ac_ext
32520cat >>conftest.$ac_ext <<_ACEOF
32521/* end confdefs.h. */
32522#include <libudev.h>
32523_ACEOF
32524if { (ac_try="$ac_cpp conftest.$ac_ext"
32525case "(($ac_try" in
32526 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32527 *) ac_try_echo=$ac_try;;
32528esac
32529eval 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
32542else
32543 $as_echo "$as_me: failed program was:" >&5
32544sed 's/^/| /' conftest.$ac_ext >&5
32545
32546 ac_header_preproc=no
32547fi
32548
32549rm -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?
32554case $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 ;;
32577esac
32578{ $as_echo "$as_me:$LINENO: checking for libudev.h" >&5
32579$as_echo_n "checking for libudev.h... " >&6; }
32580if test "${ac_cv_header_libudev_h+set}" = set; then
32581 $as_echo_n "(cached) " >&6
32582else
32583 ac_cv_header_libudev_h=$ac_header_preproc
32584fi
32585{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_libudev_h" >&5
32586$as_echo "$ac_cv_header_libudev_h" >&6; }
32587
32588fi
32589if test "x$ac_cv_header_libudev_h" = x""yes; then
32590
32591 user_libudev=yes
32592 LIBUDEV="-ludev"
32593
32594
32595cat >>confdefs.h <<\_ACEOF
32596#define HAVE_LIBUDEV 1
32597_ACEOF
32598
32599
32600else
32601
32602 user_libudev=no
32603
32604fi
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; }
32610if test "${ac_cv_search_udev_device_get_is_initialized+set}" = set; then
32611 $as_echo_n "(cached) " >&6
32612else
32613 ac_func_search_save_LIBS=$LIBS
32614cat >conftest.$ac_ext <<_ACEOF
32615/* confdefs.h. */
32616_ACEOF
32617cat confdefs.h >>conftest.$ac_ext
32618cat >>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
32625extern "C"
32626#endif
32627char udev_device_get_is_initialized ();
32628int
32629main ()
32630{
32631return udev_device_get_is_initialized ();
32632 ;
32633 return 0;
32634}
32635_ACEOF
32636for 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
32644if { (ac_try="$ac_link"
32645case "(($ac_try" in
32646 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32647 *) ac_try_echo=$ac_try;;
32648esac
32649eval 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
32665else
32666 $as_echo "$as_me: failed program was:" >&5
32667sed 's/^/| /' conftest.$ac_ext >&5
32668
32669
32670fi
32671
32672rm -rf conftest.dSYM
32673rm -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
32677fi
32678done
32679if test "${ac_cv_search_udev_device_get_is_initialized+set}" = set; then
32680 :
32681else
32682 ac_cv_search_udev_device_get_is_initialized=no
32683fi
32684rm conftest.$ac_ext
32685LIBS=$ac_func_search_save_LIBS
32686fi
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; }
32689ac_res=$ac_cv_search_udev_device_get_is_initialized
32690if test "$ac_res" != no; then
32691 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
32692
32693
32694cat >>confdefs.h <<\_ACEOF
32695#define HAVE_LIBUDEV_UDEV_DEVICE_GET_IS_INITIALIZED 1
32696_ACEOF
32697
32698fi
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
32712cat confdefs.h >>conftest.$ac_ext
32713cat >>conftest.$ac_ext <<_ACEOF
32714/* end confdefs.h. */
32715
32716int
32717main ()
32718{
cae5b340 32719
42f7b73b
AX
32720 ;
32721 return 0;
32722}
32723_ACEOF
32724rm -f conftest.$ac_objext
32725if { (ac_try="$ac_compile"
32726case "(($ac_try" in
32727 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32728 *) ac_try_echo=$ac_try;;
32729esac
32730eval 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
32747else
32748 $as_echo "$as_me: failed program was:" >&5
32749sed '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
32756fi
32757
32758rm -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; }
32769if test "${ac_cv_header_libaio_h+set}" = set; then
cae5b340
AX
32770 $as_echo_n "(cached) " >&6
32771fi
42f7b73b
AX
32772{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_libaio_h" >&5
32773$as_echo "$ac_cv_header_libaio_h" >&6; }
cae5b340
AX
32774else
32775 # Is the header compilable?
42f7b73b
AX
32776{ $as_echo "$as_me:$LINENO: checking libaio.h usability" >&5
32777$as_echo_n "checking libaio.h usability... " >&6; }
cae5b340
AX
32778cat >conftest.$ac_ext <<_ACEOF
32779/* confdefs.h. */
32780_ACEOF
32781cat confdefs.h >>conftest.$ac_ext
32782cat >>conftest.$ac_ext <<_ACEOF
32783/* end confdefs.h. */
32784$ac_includes_default
42f7b73b 32785#include <libaio.h>
cae5b340
AX
32786_ACEOF
32787rm -f conftest.$ac_objext
32788if { (ac_try="$ac_compile"
32789case "(($ac_try" in
32790 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32791 *) ac_try_echo=$ac_try;;
32792esac
32793eval 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
32806else
32807 $as_echo "$as_me: failed program was:" >&5
32808sed 's/^/| /' conftest.$ac_ext >&5
32809
32810 ac_header_compiler=no
32811fi
32812
32813rm -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?
42f7b73b
AX
32818{ $as_echo "$as_me:$LINENO: checking libaio.h presence" >&5
32819$as_echo_n "checking libaio.h presence... " >&6; }
cae5b340
AX
32820cat >conftest.$ac_ext <<_ACEOF
32821/* confdefs.h. */
32822_ACEOF
32823cat confdefs.h >>conftest.$ac_ext
32824cat >>conftest.$ac_ext <<_ACEOF
32825/* end confdefs.h. */
42f7b73b 32826#include <libaio.h>
cae5b340
AX
32827_ACEOF
32828if { (ac_try="$ac_cpp conftest.$ac_ext"
32829case "(($ac_try" in
32830 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32831 *) ac_try_echo=$ac_try;;
32832esac
32833eval 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
68d83c55 32846else
cae5b340
AX
32847 $as_echo "$as_me: failed program was:" >&5
32848sed 's/^/| /' conftest.$ac_ext >&5
32849
32850 ac_header_preproc=no
68d83c55
AX
32851fi
32852
cae5b340
AX
32853rm -f conftest.err conftest.$ac_ext
32854{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
32855$as_echo "$ac_header_preproc" >&6; }
68d83c55 32856
cae5b340
AX
32857# So? What about this header?
32858case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
32859 yes:no: )
42f7b73b
AX
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;}
cae5b340
AX
32864 ac_header_preproc=yes
32865 ;;
32866 no:yes:* )
42f7b73b
AX
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;}
68d83c55 32879
cae5b340
AX
32880 ;;
32881esac
42f7b73b
AX
32882{ $as_echo "$as_me:$LINENO: checking for libaio.h" >&5
32883$as_echo_n "checking for libaio.h... " >&6; }
32884if test "${ac_cv_header_libaio_h+set}" = set; then
32885 $as_echo_n "(cached) " >&6
32886else
32887 ac_cv_header_libaio_h=$ac_header_preproc
32888fi
32889{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_libaio_h" >&5
32890$as_echo "$ac_cv_header_libaio_h" >&6; }
32891
32892fi
32893if test "x$ac_cv_header_libaio_h" = x""yes; then
32894
32895 user_libaio=yes
32896 LIBAIO="-laio"
32897
32898
32899cat >>confdefs.h <<\_ACEOF
32900#define HAVE_LIBAIO 1
32901_ACEOF
32902
32903
32904else
32905
32906 user_libaio=no
32907
32908fi
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
32924cat confdefs.h >>conftest.$ac_ext
32925cat >>conftest.$ac_ext <<_ACEOF
32926/* end confdefs.h. */
32927
32928 #include <sys/sysmacros.h>
32929
32930int
32931main ()
32932{
32933
32934 int k;
32935 k = makedev(0,0);
32936
32937 ;
32938 return 0;
32939}
32940_ACEOF
32941rm -f conftest.$ac_objext
32942if { (ac_try="$ac_compile"
32943case "(($ac_try" in
32944 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32945 *) ac_try_echo=$ac_try;;
32946esac
32947eval 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
32963cat >>confdefs.h <<\_ACEOF
32964#define HAVE_MAKEDEV_IN_SYSMACROS 1
32965_ACEOF
32966
32967
32968else
32969 $as_echo "$as_me: failed program was:" >&5
32970sed 's/^/| /' conftest.$ac_ext >&5
32971
32972
32973 { $as_echo "$as_me:$LINENO: result: no" >&5
32974$as_echo "no" >&6; }
32975
32976fi
32977
32978rm -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
32986cat confdefs.h >>conftest.$ac_ext
32987cat >>conftest.$ac_ext <<_ACEOF
32988/* end confdefs.h. */
32989
32990 #include <sys/mkdev.h>
32991
32992int
32993main ()
32994{
32995
32996 int k;
32997 k = makedev(0,0);
32998
32999 ;
33000 return 0;
33001}
33002_ACEOF
33003rm -f conftest.$ac_objext
33004if { (ac_try="$ac_compile"
33005case "(($ac_try" in
33006 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33007 *) ac_try_echo=$ac_try;;
33008esac
33009eval 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
33025cat >>confdefs.h <<\_ACEOF
33026#define HAVE_MAKEDEV_IN_MKDEV 1
33027_ACEOF
33028
33029
33030else
33031 $as_echo "$as_me: failed program was:" >&5
33032sed 's/^/| /' conftest.$ac_ext >&5
33033
33034
33035 { $as_echo "$as_me:$LINENO: result: no" >&5
33036$as_echo "no" >&6; }
33037
33038fi
33039
33040rm -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
33052cat confdefs.h >>conftest.$ac_ext
33053cat >>conftest.$ac_ext <<_ACEOF
33054/* end confdefs.h. */
33055
33056int
33057main ()
33058{
33059
33060 ;
33061 return 0;
33062}
33063_ACEOF
33064rm -f conftest.$ac_objext
33065if { (ac_try="$ac_compile"
33066case "(($ac_try" in
33067 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33068 *) ac_try_echo=$ac_try;;
33069esac
33070eval 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
33087else
33088 $as_echo "$as_me: failed program was:" >&5
33089sed '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
33096fi
33097
33098rm -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
33112for ac_func in mlockall
33113do
33114as_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; }
33117if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
cae5b340 33118 $as_echo_n "(cached) " >&6
68d83c55 33119else
42f7b73b
AX
33120 cat >conftest.$ac_ext <<_ACEOF
33121/* confdefs.h. */
33122_ACEOF
33123cat confdefs.h >>conftest.$ac_ext
33124cat >>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
33147extern "C"
33148#endif
33149char $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
33154choke me
33155#endif
33156
33157int
33158main ()
33159{
33160return $ac_func ();
33161 ;
33162 return 0;
33163}
33164_ACEOF
33165rm -f conftest.$ac_objext conftest$ac_exeext
33166if { (ac_try="$ac_link"
33167case "(($ac_try" in
33168 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33169 *) ac_try_echo=$ac_try;;
33170esac
33171eval 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"
33187else
33188 $as_echo "$as_me: failed program was:" >&5
33189sed 's/^/| /' conftest.$ac_ext >&5
33190
33191 eval "$as_ac_var=no"
33192fi
33193
33194rm -rf conftest.dSYM
33195rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33196 conftest$ac_exeext conftest.$ac_ext
33197fi
33198ac_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; }
33202as_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
33209fi
33210done
33211
33212
33213
33214
33215
33216# Check whether --with-linux was given.
33217if test "${with_linux+set}" = set; then
33218 withval=$with_linux; kernelsrc="$withval"
33219fi
33220
33221
33222
33223# Check whether --with-linux-obj was given.
33224if test "${with_linux_obj+set}" = set; then
33225 withval=$with_linux_obj; kernelbuild="$withval"
33226fi
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
33238elif test -e "/lib/modules/$(uname -r)/build"; then
33239
33240 headersdir="/lib/modules/$(uname -r)/build"
33241 sourcelink=$(readlink -f "$headersdir")
33242
33243else
33244
33245 sourcelink=$(ls -1d /usr/src/kernels/* \
33246 /usr/src/linux-* \
33247 2>/dev/null | grep -v obj | tail -1)
33248
33249fi
33250
33251
33252 if test -n "$sourcelink" && test -e ${sourcelink}; then
33253
33254 kernelsrc=`readlink -f ${sourcelink}`
33255
33256else
33257
33258 kernelsrc="Not found"
33259
33260fi
33261
33262
33263else
33264
33265 if test "$kernelsrc" = "NONE"; then
33266
33267 kernsrcver=NONE
33268
33269fi
33270
33271 withlinux=yes
33272
33273fi
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
33290fi
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
33301elif test -d ${kernelsrc}-obj/${target_cpu}/${target_cpu}; then
33302
33303 kernelbuild=${kernelsrc}-obj/${target_cpu}/${target_cpu}
33304
33305elif test -d ${kernelsrc}-obj/${target_cpu}/default; then
33306
33307 kernelbuild=${kernelsrc}-obj/${target_cpu}/default
33308
33309elif test -d `dirname ${kernelsrc}`/build-${target_cpu}; then
33310
33311 kernelbuild=`dirname ${kernelsrc}`/build-${target_cpu}
33312
33313else
33314
33315 kernelbuild=${kernelsrc}
33316
33317fi
33318
33319
33320fi
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
33334elif test -r $utsrelease2 && fgrep -q UTS_RELEASE $utsrelease2; then
33335
33336 utsrelease=linux/utsrelease.h
33337
33338elif test -r $utsrelease3 && fgrep -q UTS_RELEASE $utsrelease3; then
33339
33340 utsrelease=generated/utsrelease.h
33341
33342fi
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
33360fi
33361
33362
33363else
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
33381fi
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
33405else
33406
33407 LINUX_SYMBOLS=Module.symvers
33408
33409fi
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
33426fi
33427
33428
33429else
33430
33431 LINUX_SYMBOLS=NONE
33432
33433fi
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.
33443if 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; }; }
33448else
33449 splsrc="$withval"
33450fi
33451
33452fi
33453
33454
33455
33456# Check whether --with-spl-obj was given.
33457if test "${with_spl_obj+set}" = set; then
33458 withval=$with_spl_obj; splbuild="$withval"
33459fi
33460
33461
33462
33463# Check whether --with-spl-timeout was given.
33464if test "${with_spl_timeout+set}" = set; then
33465 withval=$with_spl_timeout; timeout="$withval"
33466else
33467 timeout=0
33468fi
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
33495elif test -e "${splsrc1}/spl.release.in"; then
33496
33497 splsrc=${splsrc1}
33498
33499elif test -e "${splsrc2}/spl.release.in"; then
33500
33501 splsrc=${splsrc2}
33502
33503elif test -e "${splsrc3}/spl.release.in"; then
33504
33505 splsrc=$(readlink -f "${splsrc3}")
33506
33507elif test -e "${splsrc4}/spl.release.in" ; then
33508
33509 splsrc=${splsrc4}
33510
33511elif test -e "${splsrc5}/spl.release.in"; then
33512
33513 splsrc=$(readlink -f "${splsrc5}")
33514
33515elif test -e "${splsrc6}/spl.release.in" ; then
33516
33517 splsrc=${splsrc6}
33518
33519else
33520
33521 splsrc="Not found"
33522
33523fi
33524
33525
33526else
33527
33528 all_spl_sources="$withval",
33529 if test "$splsrc" = "NONE"; then
33530
33531 splbuild=NONE
33532 splsrcver=NONE
33533
33534fi
33535
33536
33537fi
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
33560fi
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
33576elif test -e "${splsrc}/spl_config.h" ; then
33577
33578 splbuild="${splsrc}"
33579
33580elif 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
33584else
33585
33586 splbuild="Not found"
33587
68d83c55 33588fi
42f7b73b 33589
68d83c55 33590
cae5b340 33591fi
42f7b73b
AX
33592
33593 if test -e "$splbuild/spl_config.h" -o $timeout -le 0; then
33594
33595 break;
33596
cae5b340 33597else
42f7b73b
AX
33598
33599 sleep 1
33600 timeout=$((timeout-1))
33601
68d83c55
AX
33602fi
33603
42f7b73b 33604 done
68d83c55 33605
42f7b73b
AX
33606 { $as_echo "$as_me:$LINENO: result: $splbuild" >&5
33607$as_echo "$splbuild" >&6; }
33608 if ! test -e "$splbuild/spl_config.h"; then
68d83c55 33609
42f7b73b
AX
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; }; }
68d83c55 33625
42f7b73b 33626fi
68d83c55
AX
33627
33628
42f7b73b
AX
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
68d83c55
AX
33633
33634
42f7b73b
AX
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`
68d83c55 33639
68d83c55
AX
33640fi
33641
33642
42f7b73b 33643 if test -z "$splsrcver"; then
68d83c55 33644
42f7b73b
AX
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; }; }
68d83c55 33654
cae5b340 33655fi
68d83c55 33656
68d83c55 33657
42f7b73b
AX
33658 { $as_echo "$as_me:$LINENO: result: $splsrcver" >&5
33659$as_echo "$splsrcver" >&6; }
68d83c55 33660
42f7b73b
AX
33661 SPL=${splsrc}
33662 SPL_OBJ=${splbuild}
33663 SPL_VERSION=${splsrcver}
68d83c55 33664
68d83c55 33665
68d83c55
AX
33666
33667
68d83c55 33668
42f7b73b
AX
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
68d83c55 33672
42f7b73b
AX
33673 while true; do
33674 if test -r $SPL_OBJ/Module.symvers; then
68d83c55 33675
42f7b73b
AX
33676 SPL_SYMBOLS=Module.symvers
33677
33678elif test -r $SPL_OBJ/Modules.symvers; then
33679
33680 SPL_SYMBOLS=Modules.symvers
33681
33682elif test -r $SPL_OBJ/module/Module.symvers; then
33683
33684 SPL_SYMBOLS=Module.symvers
33685
33686elif test -r $SPL_OBJ/module/Modules.symvers; then
33687
33688 SPL_SYMBOLS=Modules.symvers
68d83c55 33689
68d83c55
AX
33690fi
33691
33692
42f7b73b 33693 if test $SPL_SYMBOLS != NONE -o $timeout -le 0; then
68d83c55 33694
42f7b73b 33695 break;
68d83c55 33696
68d83c55 33697else
68d83c55 33698
42f7b73b
AX
33699 sleep 1
33700 timeout=$((timeout-1))
68d83c55 33701
68d83c55
AX
33702fi
33703
42f7b73b
AX
33704 done
33705
33706 if test "$SPL_SYMBOLS" = NONE; then
33707
33708 SPL_SYMBOLS=$LINUX_SYMBOLS
33709
cae5b340 33710fi
42f7b73b
AX
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.
33720if 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; }; }
68d83c55 33725else
42f7b73b 33726 qatsrc="$withval"
68d83c55 33727fi
42f7b73b 33728
68d83c55 33729fi
68d83c55 33730
68d83c55 33731
cae5b340 33732
42f7b73b
AX
33733# Check whether --with-qat-obj was given.
33734if test "${with_qat_obj+set}" = set; then
33735 withval=$with_qat_obj; qatbuild="$withval"
68d83c55
AX
33736fi
33737
33738
42f7b73b 33739 if test ! -z "${qatsrc}"; then
cae5b340 33740
42f7b73b
AX
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
cae5b340 33747
42f7b73b
AX
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; }; }
cae5b340 33761
42f7b73b 33762fi
68d83c55 33763
cae5b340 33764
42f7b73b 33765fi
68d83c55 33766
68d83c55 33767
42f7b73b 33768 if test ! -z "${qatsrc}"; then
68d83c55 33769
42f7b73b
AX
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
68d83c55 33773
42f7b73b 33774 qatbuild="${qatsrc}/build"
68d83c55 33775
cae5b340 33776fi
68d83c55
AX
33777
33778
42f7b73b
AX
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; }; }
68d83c55 33793
42f7b73b 33794fi
68d83c55 33795
68d83c55 33796
68d83c55
AX
33797
33798
33799
42f7b73b
AX
33800
33801cat >>confdefs.h <<\_ACEOF
33802#define HAVE_QAT 1
cae5b340 33803_ACEOF
68d83c55 33804
cae5b340 33805
42f7b73b 33806fi
cae5b340 33807
cae5b340 33808
42f7b73b 33809 if test ! -z "${qatsrc}"; then
cae5b340 33810
42f7b73b
AX
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
cae5b340 33814
42f7b73b
AX
33815 if test -r $QAT_SYMBOLS; then
33816
33817 { $as_echo "$as_me:$LINENO: result: $QAT_SYMBOLS" >&5
33818$as_echo "$QAT_SYMBOLS" >&6; }
68d83c55 33819
68d83c55
AX
33820
33821else
cae5b340 33822
42f7b73b
AX
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
33833fi
cae5b340 33834
cae5b340 33835
68d83c55
AX
33836fi
33837
33838
cae5b340 33839
42f7b73b
AX
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
33844cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
33845/* confdefs.h. */
33846_ACEOF
33847cat confdefs.h >>conftest.$ac_ext
33848cat >>conftest.$ac_ext <<_ACEOF
68d83c55
AX
33849/* end confdefs.h. */
33850
cae5b340 33851
68d83c55 33852int
42f7b73b 33853main (void)
68d83c55 33854{
cae5b340 33855
68d83c55
AX
33856 ;
33857 return 0;
33858}
42f7b73b 33859
68d83c55 33860_ACEOF
42f7b73b
AX
33861
33862
33863
33864cat - <<_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
cae5b340 33876 ac_status=$?
cae5b340 33877 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
42f7b73b
AX
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
68d83c55 33884
cae5b340
AX
33885 { $as_echo "$as_me:$LINENO: result: yes" >&5
33886$as_echo "yes" >&6; }
68d83c55 33887
68d83c55 33888else
cae5b340
AX
33889 $as_echo "$as_me: failed program was:" >&5
33890sed 's/^/| /' conftest.$ac_ext >&5
68d83c55 33891
cae5b340
AX
33892 { $as_echo "$as_me:$LINENO: result: no" >&5
33893$as_echo "no" >&6; }
42f7b73b
AX
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
68d83c55 33909
cae5b340 33910fi
68d83c55 33911
42f7b73b 33912 rm -Rf build
68d83c55 33913
68d83c55 33914
68d83c55 33915
68d83c55 33916
42f7b73b
AX
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
33921cat confdefs.h - <<_ACEOF >conftest.c
cae5b340 33922/* confdefs.h. */
68d83c55 33923_ACEOF
cae5b340
AX
33924cat confdefs.h >>conftest.$ac_ext
33925cat >>conftest.$ac_ext <<_ACEOF
68d83c55
AX
33926/* end confdefs.h. */
33927
42f7b73b
AX
33928
33929 #undef __ASSEMBLY__
33930 #include <asm/frame.h>
33931
68d83c55 33932int
42f7b73b 33933main (void)
68d83c55
AX
33934{
33935
42f7b73b
AX
33936 #if !defined(FRAME_BEGIN)
33937 CTASSERT(1);
33938 #endif
33939
68d83c55
AX
33940 ;
33941 return 0;
33942}
42f7b73b 33943
68d83c55 33944_ACEOF
42f7b73b
AX
33945
33946
33947
33948cat - <<_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
cae5b340 33960 ac_status=$?
cae5b340 33961 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
42f7b73b
AX
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
68d83c55 33968
cae5b340 33969 { $as_echo "$as_me:$LINENO: result: yes" >&5
68d83c55 33970$as_echo "yes" >&6; }
68d83c55 33971
42f7b73b
AX
33972cat >>confdefs.h <<\_ACEOF
33973#define HAVE_KERNEL_OBJTOOL 1
33974_ACEOF
33975
33976
68d83c55 33977else
cae5b340
AX
33978 $as_echo "$as_me: failed program was:" >&5
33979sed 's/^/| /' conftest.$ac_ext >&5
33980
cae5b340 33981 { $as_echo "$as_me:$LINENO: result: no" >&5
68d83c55 33982$as_echo "no" >&6; }
68d83c55 33983
68d83c55
AX
33984
33985
42f7b73b 33986fi
68d83c55 33987
42f7b73b 33988 rm -Rf build
68d83c55 33989
68d83c55
AX
33990
33991
68d83c55 33992
42f7b73b 33993 if test "x$cross_compiling" != xyes; then
68d83c55 33994
42f7b73b
AX
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
33999See \`config.log' for more details." >&5
34000$as_echo "$as_me: error: cannot run test program while cross compiling
34001See \`config.log' for more details." >&2;}
34002 { (exit 1); exit 1; }; }; }
cae5b340
AX
34003else
34004 cat >conftest.$ac_ext <<_ACEOF
42f7b73b
AX
34005
34006 /* confdefs.h. */
cae5b340
AX
34007_ACEOF
34008cat confdefs.h >>conftest.$ac_ext
34009cat >>conftest.$ac_ext <<_ACEOF
68d83c55 34010/* end confdefs.h. */
cae5b340 34011
42f7b73b 34012 #include "$LINUX/include/linux/license.h"
68d83c55
AX
34013
34014int
34015main ()
34016{
42f7b73b
AX
34017
34018 return !license_is_gpl_compatible("$ZFS_META_LICENSE");
34019
68d83c55
AX
34020 ;
34021 return 0;
34022}
42f7b73b 34023
68d83c55 34024_ACEOF
42f7b73b 34025rm -f conftest$ac_exeext
cae5b340
AX
34026if { (ac_try="$ac_link"
34027case "(($ac_try" in
34028 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34029 *) ac_try_echo=$ac_try;;
34030esac
34031eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
34032$as_echo "$ac_try_echo") >&5
42f7b73b 34033 (eval "$ac_link") 2>&5
cae5b340 34034 ac_status=$?
cae5b340 34035 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
42f7b73b
AX
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;;
34040esac
34041eval 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
68d83c55 34047
68d83c55 34048
42f7b73b
AX
34049cat >>confdefs.h <<\_ACEOF
34050#define ZFS_IS_GPL_COMPATIBLE 1
68d83c55
AX
34051_ACEOF
34052
cae5b340 34053
42f7b73b
AX
34054else
34055 $as_echo "$as_me: program exited with status $ac_status" >&5
34056$as_echo "$as_me: failed program was:" >&5
34057sed 's/^/| /' conftest.$ac_ext >&5
cae5b340 34058
42f7b73b 34059( exit $ac_status )
68d83c55
AX
34060
34061
42f7b73b
AX
34062fi
34063rm -rf conftest.dSYM
34064rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
68d83c55
AX
34065fi
34066
34067
34068
68d83c55
AX
34069fi
34070
34071
68d83c55 34072
42f7b73b
AX
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; }
68d83c55 34075
68d83c55 34076
42f7b73b
AX
34077cat confdefs.h - <<_ACEOF >conftest.c
34078/* confdefs.h. */
34079_ACEOF
34080cat confdefs.h >>conftest.$ac_ext
34081cat >>conftest.$ac_ext <<_ACEOF
34082/* end confdefs.h. */
68d83c55 34083
68d83c55 34084
42f7b73b 34085 #include <linux/module.h>
68d83c55 34086
42f7b73b
AX
34087int
34088main (void)
34089{
68d83c55 34090
42f7b73b
AX
34091 #if (THREAD_SIZE < 16384)
34092 #error "THREAD_SIZE is less than 16K"
34093 #endif
cae5b340 34094
42f7b73b
AX
34095 ;
34096 return 0;
34097}
68d83c55 34098
42f7b73b 34099_ACEOF
68d83c55 34100
68d83c55 34101
68d83c55 34102
42f7b73b 34103cat - <<_ACEOF >conftest.h
68d83c55 34104
42f7b73b 34105_ACEOF
cae5b340 34106
68d83c55 34107
42f7b73b
AX
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
68d83c55 34123
42f7b73b
AX
34124 { $as_echo "$as_me:$LINENO: result: yes" >&5
34125$as_echo "yes" >&6; }
68d83c55 34126
42f7b73b
AX
34127cat >>confdefs.h <<\_ACEOF
34128#define HAVE_LARGE_STACKS 1
34129_ACEOF
68d83c55 34130
cae5b340 34131
42f7b73b
AX
34132else
34133 $as_echo "$as_me: failed program was:" >&5
34134sed 's/^/| /' conftest.$ac_ext >&5
68d83c55 34135
42f7b73b
AX
34136 { $as_echo "$as_me:$LINENO: result: no" >&5
34137$as_echo "no" >&6; }
cae5b340 34138
68d83c55 34139
68d83c55
AX
34140
34141fi
34142
42f7b73b 34143 rm -Rf build
cae5b340 34144
68d83c55 34145
68d83c55 34146
68d83c55 34147
68d83c55 34148
42f7b73b
AX
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; }
68d83c55 34151
68d83c55 34152
42f7b73b
AX
34153cat confdefs.h - <<_ACEOF >conftest.c
34154/* confdefs.h. */
34155_ACEOF
34156cat confdefs.h >>conftest.$ac_ext
34157cat >>conftest.$ac_ext <<_ACEOF
34158/* end confdefs.h. */
68d83c55 34159
cae5b340 34160
42f7b73b 34161 #include <linux/module.h>
cae5b340 34162
42f7b73b
AX
34163int
34164main (void)
34165{
68d83c55 34166
42f7b73b
AX
34167 #ifndef CONFIG_DEBUG_LOCK_ALLOC
34168 #error CONFIG_DEBUG_LOCK_ALLOC not #defined
34169 #endif
68d83c55 34170
42f7b73b
AX
34171 ;
34172 return 0;
34173}
68d83c55 34174
42f7b73b 34175_ACEOF
68d83c55 34176
68d83c55 34177
68d83c55 34178
42f7b73b 34179cat - <<_ACEOF >conftest.h
68d83c55 34180
42f7b73b 34181_ACEOF
68d83c55 34182
cae5b340 34183
42f7b73b
AX
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
68d83c55 34199
42f7b73b
AX
34200 { $as_echo "$as_me:$LINENO: result: yes" >&5
34201$as_echo "yes" >&6; }
68d83c55 34202
42f7b73b
AX
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"
68d83c55 34206
68d83c55 34207
42f7b73b
AX
34208cat confdefs.h - <<_ACEOF >conftest.c
34209/* confdefs.h. */
34210_ACEOF
34211cat confdefs.h >>conftest.$ac_ext
34212cat >>conftest.$ac_ext <<_ACEOF
34213/* end confdefs.h. */
68d83c55 34214
cae5b340 34215
42f7b73b
AX
34216 #include <linux/module.h>
34217 #include <linux/mutex.h>
68d83c55 34218
42f7b73b 34219 MODULE_LICENSE("$ZFS_META_LICENSE");
68d83c55 34220
42f7b73b
AX
34221int
34222main (void)
34223{
68d83c55 34224
42f7b73b 34225 struct mutex lock;
cae5b340 34226
42f7b73b
AX
34227 mutex_init(&lock);
34228 mutex_lock(&lock);
34229 mutex_unlock(&lock);
68d83c55 34230
42f7b73b
AX
34231 ;
34232 return 0;
34233}
68d83c55 34234
42f7b73b 34235_ACEOF
68d83c55
AX
34236
34237
34238
42f7b73b 34239cat - <<_ACEOF >conftest.h
68d83c55 34240
42f7b73b 34241_ACEOF
68d83c55 34242
68d83c55 34243
42f7b73b
AX
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
68d83c55 34259
42f7b73b
AX
34260 { $as_echo "$as_me:$LINENO: result: no" >&5
34261$as_echo "no" >&6; }
68d83c55
AX
34262
34263else
42f7b73b
AX
34264 $as_echo "$as_me: failed program was:" >&5
34265sed 's/^/| /' conftest.$ac_ext >&5
68d83c55 34266
42f7b73b
AX
34267 { $as_echo "$as_me:$LINENO: result: yes" >&5
34268$as_echo "yes" >&6; }
cae5b340 34269 { { $as_echo "$as_me:$LINENO: error:
42f7b73b
AX
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
cae5b340 34274$as_echo "$as_me: error:
42f7b73b
AX
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;}
cae5b340 34279 { (exit 1); exit 1; }; }
68d83c55 34280
68d83c55 34281
68d83c55
AX
34282
34283fi
cae5b340 34284
42f7b73b 34285 rm -Rf build
68d83c55
AX
34286
34287
42f7b73b 34288 EXTRA_KCFLAGS="$tmp_flags"
cae5b340 34289
68d83c55 34290
42f7b73b
AX
34291else
34292 $as_echo "$as_me: failed program was:" >&5
34293sed 's/^/| /' conftest.$ac_ext >&5
68d83c55 34294
42f7b73b
AX
34295 { $as_echo "$as_me:$LINENO: result: no" >&5
34296$as_echo "no" >&6; }
68d83c55 34297
68d83c55
AX
34298
34299
34300
68d83c55
AX
34301fi
34302
42f7b73b 34303 rm -Rf build
68d83c55 34304
68d83c55 34305
cae5b340 34306
68d83c55 34307
68d83c55 34308
68d83c55 34309
42f7b73b
AX
34310 tmp_flags="$EXTRA_KCFLAGS"
34311 EXTRA_KCFLAGS="-I\$(src)"
68d83c55 34312
42f7b73b
AX
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; }
68d83c55 34315
68d83c55 34316
42f7b73b
AX
34317cat confdefs.h - <<_ACEOF >conftest.c
34318/* confdefs.h. */
34319_ACEOF
34320cat confdefs.h >>conftest.$ac_ext
34321cat >>conftest.$ac_ext <<_ACEOF
34322/* end confdefs.h. */
68d83c55 34323
68d83c55 34324
42f7b73b
AX
34325 #include <linux/module.h>
34326 MODULE_LICENSE(ZFS_META_LICENSE);
68d83c55 34327
42f7b73b
AX
34328 #define CREATE_TRACE_POINTS
34329 #include "conftest.h"
68d83c55 34330
42f7b73b
AX
34331int
34332main (void)
34333{
68d83c55 34334
42f7b73b
AX
34335 trace_zfs_autoconf_event_one(1UL);
34336 trace_zfs_autoconf_event_two(2UL);
68d83c55 34337
42f7b73b
AX
34338 ;
34339 return 0;
34340}
68d83c55 34341
42f7b73b 34342_ACEOF
68d83c55 34343
68d83c55 34344
68d83c55 34345
42f7b73b 34346cat - <<_ACEOF >conftest.h
68d83c55 34347
42f7b73b
AX
34348 #if !defined(_CONFTEST_H) || defined(TRACE_HEADER_MULTI_READ)
34349 #define _CONFTEST_H
cae5b340 34350
42f7b73b
AX
34351 #undef TRACE_SYSTEM
34352 #define TRACE_SYSTEM zfs
34353 #include <linux/tracepoint.h>
68d83c55 34354
42f7b73b
AX
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 );
68d83c55 34366
42f7b73b
AX
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);
68d83c55 34373
42f7b73b 34374 #endif /* _CONFTEST_H */
68d83c55 34375
42f7b73b
AX
34376 #undef TRACE_INCLUDE_PATH
34377 #define TRACE_INCLUDE_PATH .
34378 #define TRACE_INCLUDE_FILE conftest
34379 #include <trace/define_trace.h>
cae5b340 34380
42f7b73b 34381_ACEOF
68d83c55 34382
cae5b340 34383
42f7b73b
AX
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
68d83c55 34399
42f7b73b
AX
34400 { $as_echo "$as_me:$LINENO: result: yes" >&5
34401$as_echo "yes" >&6; }
68d83c55 34402
42f7b73b
AX
34403cat >>confdefs.h <<\_ACEOF
34404#define HAVE_DECLARE_EVENT_CLASS 1
34405_ACEOF
68d83c55 34406
cae5b340 34407
42f7b73b
AX
34408else
34409 $as_echo "$as_me: failed program was:" >&5
34410sed 's/^/| /' conftest.$ac_ext >&5
cae5b340 34411
42f7b73b
AX
34412 { $as_echo "$as_me:$LINENO: result: no" >&5
34413$as_echo "no" >&6; }
cae5b340 34414
68d83c55 34415
68d83c55 34416
42f7b73b 34417fi
68d83c55 34418
42f7b73b 34419 rm -Rf build
68d83c55 34420
68d83c55 34421
42f7b73b 34422 EXTRA_KCFLAGS="$tmp_flags"
68d83c55 34423
68d83c55 34424
42f7b73b
AX
34425 { $as_echo "$as_me:$LINENO: checking whether current->bio_tail exists" >&5
34426$as_echo_n "checking whether current->bio_tail exists... " >&6; }
68d83c55 34427
68d83c55 34428
42f7b73b
AX
34429cat confdefs.h - <<_ACEOF >conftest.c
34430/* confdefs.h. */
34431_ACEOF
34432cat confdefs.h >>conftest.$ac_ext
34433cat >>conftest.$ac_ext <<_ACEOF
34434/* end confdefs.h. */
68d83c55 34435
cae5b340 34436
42f7b73b 34437 #include <linux/sched.h>
cae5b340 34438
42f7b73b
AX
34439int
34440main (void)
34441{
68d83c55 34442
42f7b73b 34443 current->bio_tail = (struct bio **) NULL;
68d83c55 34444
42f7b73b
AX
34445 ;
34446 return 0;
34447}
68d83c55 34448
42f7b73b 34449_ACEOF
68d83c55 34450
cae5b340 34451
68d83c55 34452
42f7b73b 34453cat - <<_ACEOF >conftest.h
68d83c55 34454
42f7b73b 34455_ACEOF
68d83c55 34456
68d83c55 34457
42f7b73b
AX
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
cae5b340 34473
42f7b73b
AX
34474 { $as_echo "$as_me:$LINENO: result: yes" >&5
34475$as_echo "yes" >&6; }
68d83c55 34476
42f7b73b
AX
34477cat >>confdefs.h <<\_ACEOF
34478#define HAVE_CURRENT_BIO_TAIL 1
34479_ACEOF
68d83c55 34480
68d83c55 34481
42f7b73b
AX
34482else
34483 $as_echo "$as_me: failed program was:" >&5
34484sed 's/^/| /' conftest.$ac_ext >&5
68d83c55 34485
42f7b73b
AX
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; }
68d83c55 34490
cae5b340 34491
42f7b73b
AX
34492cat confdefs.h - <<_ACEOF >conftest.c
34493/* confdefs.h. */
34494_ACEOF
34495cat confdefs.h >>conftest.$ac_ext
34496cat >>conftest.$ac_ext <<_ACEOF
34497/* end confdefs.h. */
68d83c55 34498
68d83c55 34499
42f7b73b 34500 #include <linux/sched.h>
cae5b340 34501
42f7b73b
AX
34502int
34503main (void)
34504{
68d83c55 34505
42f7b73b 34506 current->bio_list = (struct bio_list *) NULL;
68d83c55 34507
42f7b73b
AX
34508 ;
34509 return 0;
34510}
68d83c55 34511
42f7b73b 34512_ACEOF
68d83c55
AX
34513
34514
34515
42f7b73b 34516cat - <<_ACEOF >conftest.h
68d83c55 34517
42f7b73b 34518_ACEOF
68d83c55 34519
68d83c55 34520
42f7b73b
AX
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
68d83c55 34536
42f7b73b
AX
34537 { $as_echo "$as_me:$LINENO: result: yes" >&5
34538$as_echo "yes" >&6; }
68d83c55 34539
42f7b73b
AX
34540cat >>confdefs.h <<\_ACEOF
34541#define HAVE_CURRENT_BIO_LIST 1
34542_ACEOF
68d83c55 34543
68d83c55 34544
42f7b73b
AX
34545else
34546 $as_echo "$as_me: failed program was:" >&5
34547sed '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
68d83c55 34555
68d83c55
AX
34556
34557fi
34558
42f7b73b 34559 rm -Rf build
cae5b340 34560
68d83c55 34561
68d83c55 34562
68d83c55 34563
68d83c55
AX
34564
34565fi
cae5b340 34566
42f7b73b 34567 rm -Rf build
68d83c55 34568
68d83c55 34569
68d83c55 34570
68d83c55 34571
42f7b73b
AX
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; }
cae5b340 34574
68d83c55 34575
42f7b73b
AX
34576cat confdefs.h - <<_ACEOF >conftest.c
34577/* confdefs.h. */
34578_ACEOF
34579cat confdefs.h >>conftest.$ac_ext
34580cat >>conftest.$ac_ext <<_ACEOF
34581/* end confdefs.h. */
68d83c55
AX
34582
34583
42f7b73b
AX
34584 #include <linux/fs.h>
34585 #include <linux/user_namespace.h>
cae5b340 34586
42f7b73b
AX
34587int
34588main (void)
34589{
cae5b340 34590
42f7b73b
AX
34591 struct super_block super;
34592 super.s_user_ns = (struct user_namespace *)NULL;
cae5b340 34593
42f7b73b
AX
34594 ;
34595 return 0;
34596}
cae5b340 34597
42f7b73b 34598_ACEOF
cae5b340 34599
cae5b340
AX
34600
34601
42f7b73b 34602cat - <<_ACEOF >conftest.h
cae5b340 34603
42f7b73b 34604_ACEOF
cae5b340 34605
cae5b340 34606
42f7b73b
AX
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
cae5b340 34622
42f7b73b
AX
34623 { $as_echo "$as_me:$LINENO: result: yes" >&5
34624$as_echo "yes" >&6; }
cae5b340 34625
42f7b73b
AX
34626cat >>confdefs.h <<\_ACEOF
34627#define HAVE_SUPER_USER_NS 1
34628_ACEOF
cae5b340
AX
34629
34630
42f7b73b
AX
34631else
34632 $as_echo "$as_me: failed program was:" >&5
34633sed 's/^/| /' conftest.$ac_ext >&5
34634
34635 { $as_echo "$as_me:$LINENO: result: no" >&5
34636$as_echo "no" >&6; }
cae5b340 34637
cae5b340 34638
cae5b340
AX
34639
34640fi
34641
42f7b73b 34642 rm -Rf build
cae5b340 34643
cae5b340 34644
cae5b340 34645
42f7b73b
AX
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
34651cat confdefs.h - <<_ACEOF >conftest.c
34652/* confdefs.h. */
34653_ACEOF
34654cat confdefs.h >>conftest.$ac_ext
34655cat >>conftest.$ac_ext <<_ACEOF
34656/* end confdefs.h. */
cae5b340
AX
34657
34658
42f7b73b 34659 #include <linux/bio.h>
cae5b340 34660
42f7b73b
AX
34661int
34662main (void)
34663{
cae5b340 34664
42f7b73b
AX
34665 blk_qc_t blk_qc;
34666 struct bio *bio = NULL;
34667 blk_qc = submit_bio(bio);
cae5b340 34668
42f7b73b
AX
34669 ;
34670 return 0;
34671}
cae5b340 34672
cae5b340
AX
34673_ACEOF
34674
34675
cae5b340 34676
42f7b73b 34677cat - <<_ACEOF >conftest.h
cae5b340 34678
42f7b73b 34679_ACEOF
cae5b340 34680
cae5b340 34681
42f7b73b
AX
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
cae5b340 34697
42f7b73b
AX
34698 { $as_echo "$as_me:$LINENO: result: yes" >&5
34699$as_echo "yes" >&6; }
34700
34701cat >>confdefs.h <<\_ACEOF
34702#define HAVE_1ARG_SUBMIT_BIO 1
34703_ACEOF
cae5b340
AX
34704
34705
34706else
42f7b73b
AX
34707 $as_echo "$as_me: failed program was:" >&5
34708sed 's/^/| /' conftest.$ac_ext >&5
cae5b340 34709
42f7b73b
AX
34710 { $as_echo "$as_me:$LINENO: result: no" >&5
34711$as_echo "no" >&6; }
cae5b340 34712
cae5b340
AX
34713
34714
34715fi
34716
42f7b73b
AX
34717 rm -Rf build
34718
cae5b340
AX
34719
34720
42f7b73b
AX
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}"
68d83c55
AX
34726
34727
34728cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
34729/* confdefs.h. */
34730_ACEOF
34731cat confdefs.h >>conftest.$ac_ext
34732cat >>conftest.$ac_ext <<_ACEOF
34733/* end confdefs.h. */
68d83c55
AX
34734
34735
42f7b73b
AX
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
68d83c55
AX
34753int
34754main (void)
34755{
34756
42f7b73b 34757
68d83c55
AX
34758 ;
34759 return 0;
34760}
34761
34762_ACEOF
34763
34764
34765
34766cat - <<_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
42f7b73b 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'
cae5b340 34776 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
68d83c55
AX
34777 (eval $ac_try) 2>&5
34778 ac_status=$?
cae5b340
AX
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
68d83c55
AX
34782 (eval $ac_try) 2>&5
34783 ac_status=$?
cae5b340
AX
34784 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34785 (exit $ac_status); }; }; then
68d83c55 34786
42f7b73b
AX
34787 { $as_echo "$as_me:$LINENO: result: struct block_device" >&5
34788$as_echo "struct block_device" >&6; }
34789
34790cat >>confdefs.h <<\_ACEOF
34791#define HAVE_BDEV_BLOCK_DEVICE_OPERATIONS 1
34792_ACEOF
34793
68d83c55
AX
34794
34795else
34796 $as_echo "$as_me: failed program was:" >&5
34797sed 's/^/| /' conftest.$ac_ext >&5
34798
42f7b73b
AX
34799 { $as_echo "$as_me:$LINENO: result: struct inode" >&5
34800$as_echo "struct inode" >&6; }
68d83c55
AX
34801
34802
34803
4d815aed 34804fi
cae5b340 34805
68d83c55 34806 rm -Rf build
4d815aed 34807
4d815aed 34808
42f7b73b 34809 EXTRA_KCFLAGS="$tmp_flags"
4d815aed 34810
4d815aed 34811
42f7b73b
AX
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}"
cae5b340
AX
34816
34817
34818cat confdefs.h - <<_ACEOF >conftest.c
34819/* confdefs.h. */
34820_ACEOF
34821cat confdefs.h >>conftest.$ac_ext
34822cat >>conftest.$ac_ext <<_ACEOF
34823/* end confdefs.h. */
68d83c55 34824
cae5b340 34825
42f7b73b
AX
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 };
cae5b340
AX
34837
34838int
34839main (void)
34840{
34841
cae5b340
AX
34842
34843 ;
34844 return 0;
34845}
34846
34847_ACEOF
34848
34849
34850
34851cat - <<_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
42f7b73b 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'
cae5b340
AX
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
42f7b73b
AX
34872 { $as_echo "$as_me:$LINENO: result: void" >&5
34873$as_echo "void" >&6; }
cae5b340
AX
34874
34875cat >>confdefs.h <<\_ACEOF
42f7b73b 34876#define HAVE_BLOCK_DEVICE_OPERATIONS_RELEASE_VOID 1
cae5b340
AX
34877_ACEOF
34878
34879
34880else
34881 $as_echo "$as_me: failed program was:" >&5
34882sed 's/^/| /' conftest.$ac_ext >&5
34883
42f7b73b
AX
34884 { $as_echo "$as_me:$LINENO: result: int" >&5
34885$as_echo "int" >&6; }
cae5b340
AX
34886
34887
34888
34889fi
34890
34891 rm -Rf build
34892
34893
42f7b73b 34894 EXTRA_KCFLAGS="$tmp_flags"
cae5b340 34895
42f7b73b
AX
34896 { $as_echo "$as_me:$LINENO: checking whether kernel defines fmode_t" >&5
34897$as_echo_n "checking whether kernel defines fmode_t... " >&6; }
cae5b340 34898
4d815aed 34899
42f7b73b
AX
34900cat confdefs.h - <<_ACEOF >conftest.c
34901/* confdefs.h. */
cae5b340
AX
34902_ACEOF
34903cat confdefs.h >>conftest.$ac_ext
34904cat >>conftest.$ac_ext <<_ACEOF
34905/* end confdefs.h. */
68d83c55 34906
42f7b73b
AX
34907
34908 #include <linux/types.h>
4d815aed
AX
34909
34910int
42f7b73b 34911main (void)
4d815aed
AX
34912{
34913
42f7b73b 34914 fmode_t *ptr __attribute__ ((unused));
4d815aed
AX
34915
34916 ;
34917 return 0;
34918}
68d83c55 34919
4d815aed 34920_ACEOF
42f7b73b
AX
34921
34922
34923
34924cat - <<_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
cae5b340
AX
34936 ac_status=$?
34937 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
42f7b73b
AX
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
cae5b340
AX
34941 ac_status=$?
34942 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34943 (exit $ac_status); }; }; then
34944
42f7b73b
AX
34945 { $as_echo "$as_me:$LINENO: result: yes" >&5
34946$as_echo "yes" >&6; }
cae5b340
AX
34947
34948cat >>confdefs.h <<\_ACEOF
42f7b73b 34949#define HAVE_FMODE_T 1
cae5b340 34950_ACEOF
4d815aed 34951
4d815aed 34952
cae5b340 34953else
42f7b73b 34954 $as_echo "$as_me: failed program was:" >&5
cae5b340
AX
34955sed 's/^/| /' conftest.$ac_ext >&5
34956
42f7b73b
AX
34957 { $as_echo "$as_me:$LINENO: result: no" >&5
34958$as_echo "no" >&6; }
4d815aed 34959
4d815aed 34960
4d815aed 34961
42f7b73b 34962fi
4d815aed 34963
42f7b73b 34964 rm -Rf build
cae5b340 34965
4d815aed
AX
34966
34967
cae5b340 34968
42f7b73b
AX
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; }
4d815aed
AX
34971
34972
68d83c55 34973cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
34974/* confdefs.h. */
34975_ACEOF
34976cat confdefs.h >>conftest.$ac_ext
34977cat >>conftest.$ac_ext <<_ACEOF
34978/* end confdefs.h. */
4d815aed 34979
4d815aed 34980
42f7b73b 34981 #include <linux/fs.h>
4d815aed
AX
34982
34983int
68d83c55 34984main (void)
4d815aed
AX
34985{
34986
42f7b73b
AX
34987 struct block_device *bdev = NULL;
34988 (void) blkdev_get(bdev, 0, NULL);
68d83c55 34989
4d815aed
AX
34990 ;
34991 return 0;
34992}
68d83c55 34993
4d815aed 34994_ACEOF
4d815aed 34995
4d815aed 34996
4d815aed 34997
68d83c55 34998cat - <<_ACEOF >conftest.h
4d815aed 34999
68d83c55 35000_ACEOF
4d815aed 35001
4d815aed 35002
68d83c55
AX
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
42f7b73b 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'
cae5b340 35008 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
68d83c55
AX
35009 (eval $ac_try) 2>&5
35010 ac_status=$?
cae5b340
AX
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
68d83c55
AX
35014 (eval $ac_try) 2>&5
35015 ac_status=$?
cae5b340
AX
35016 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35017 (exit $ac_status); }; }; then
4d815aed 35018
cae5b340 35019 { $as_echo "$as_me:$LINENO: result: yes" >&5
68d83c55 35020$as_echo "yes" >&6; }
4d815aed 35021
cae5b340 35022cat >>confdefs.h <<\_ACEOF
42f7b73b 35023#define HAVE_3ARG_BLKDEV_GET 1
cae5b340 35024_ACEOF
4d815aed 35025
4d815aed 35026
68d83c55
AX
35027else
35028 $as_echo "$as_me: failed program was:" >&5
35029sed 's/^/| /' conftest.$ac_ext >&5
4d815aed 35030
cae5b340 35031 { $as_echo "$as_me:$LINENO: result: no" >&5
68d83c55 35032$as_echo "no" >&6; }
4d815aed 35033
4d815aed
AX
35034
35035
4d815aed 35036fi
cae5b340 35037
68d83c55 35038 rm -Rf build
4d815aed
AX
35039
35040
35041
42f7b73b
AX
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; }
4d815aed
AX
35044
35045
4d815aed 35046
68d83c55 35047cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
35048/* confdefs.h. */
35049_ACEOF
35050cat confdefs.h >>conftest.$ac_ext
35051cat >>conftest.$ac_ext <<_ACEOF
35052/* end confdefs.h. */
4d815aed 35053
4d815aed 35054
42f7b73b 35055 #include <linux/fs.h>
4d815aed 35056
68d83c55
AX
35057int
35058main (void)
35059{
4d815aed 35060
42f7b73b 35061 blkdev_get_by_path(NULL, 0, NULL);
4d815aed 35062
68d83c55
AX
35063 ;
35064 return 0;
35065}
4d815aed 35066
68d83c55 35067_ACEOF
4d815aed 35068
4d815aed 35069
4d815aed 35070
68d83c55 35071cat - <<_ACEOF >conftest.h
4d815aed 35072
68d83c55 35073_ACEOF
4d815aed 35074
4d815aed 35075
68d83c55
AX
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
42f7b73b 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'
cae5b340 35081 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
68d83c55
AX
35082 (eval $ac_try) 2>&5
35083 ac_status=$?
cae5b340
AX
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
68d83c55
AX
35087 (eval $ac_try) 2>&5
35088 ac_status=$?
cae5b340
AX
35089 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35090 (exit $ac_status); }; }; then
42f7b73b
AX
35091 rc=0
35092else
35093 $as_echo "$as_me: failed program was:" >&5
35094sed 's/^/| /' conftest.$ac_ext >&5
35095 rc=1
35096
35097
35098fi
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 :
4d815aed 35141
cae5b340 35142 { $as_echo "$as_me:$LINENO: result: yes" >&5
68d83c55 35143$as_echo "yes" >&6; }
4d815aed 35144
42f7b73b
AX
35145cat >>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
4d815aed 35157
4d815aed 35158
68d83c55 35159cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
35160/* confdefs.h. */
35161_ACEOF
35162cat confdefs.h >>conftest.$ac_ext
35163cat >>conftest.$ac_ext <<_ACEOF
35164/* end confdefs.h. */
4d815aed 35165
4d815aed 35166
42f7b73b 35167 #include <linux/fs.h>
4d815aed 35168
68d83c55
AX
35169int
35170main (void)
35171{
4d815aed 35172
42f7b73b 35173 open_bdev_exclusive(NULL, 0, NULL);
4d815aed 35174
68d83c55
AX
35175 ;
35176 return 0;
35177}
4d815aed 35178
68d83c55 35179_ACEOF
4d815aed 35180
4d815aed 35181
4d815aed 35182
68d83c55
AX
35183cat - <<_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
42f7b73b 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'
cae5b340 35193 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
68d83c55
AX
35194 (eval $ac_try) 2>&5
35195 ac_status=$?
cae5b340
AX
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
68d83c55
AX
35199 (eval $ac_try) 2>&5
35200 ac_status=$?
cae5b340
AX
35201 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35202 (exit $ac_status); }; }; then
42f7b73b 35203 rc=0
4d815aed 35204else
68d83c55
AX
35205 $as_echo "$as_me: failed program was:" >&5
35206sed 's/^/| /' conftest.$ac_ext >&5
42f7b73b 35207 rc=1
4d815aed 35208
4d815aed
AX
35209
35210fi
cae5b340 35211
68d83c55 35212 rm -Rf build
4d815aed 35213
4d815aed 35214
42f7b73b 35215 if test $rc -ne 0; then :
4d815aed 35216
cae5b340 35217 { $as_echo "$as_me:$LINENO: result: no" >&5
68d83c55 35218$as_echo "no" >&6; }
4d815aed 35219
42f7b73b
AX
35220 else
35221 if test "x$enable_linux_builtin" != xyes; then
4d815aed 35222
42f7b73b
AX
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
4d815aed 35245
42f7b73b
AX
35246 fi
35247 if test $rc -ne 0; then :
4d815aed 35248
42f7b73b
AX
35249 { $as_echo "$as_me:$LINENO: result: no" >&5
35250$as_echo "no" >&6; }
cae5b340 35251
42f7b73b 35252 else :
4d815aed 35253
42f7b73b
AX
35254 { $as_echo "$as_me:$LINENO: result: yes" >&5
35255$as_echo "yes" >&6; }
4d815aed 35256
42f7b73b
AX
35257cat >>confdefs.h <<\_ACEOF
35258#define HAVE_OPEN_BDEV_EXCLUSIVE 1
35259_ACEOF
4d815aed 35260
4d815aed 35261
42f7b73b
AX
35262 fi
35263 fi
4d815aed 35264
4d815aed 35265
42f7b73b
AX
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; }
4d815aed 35268
4d815aed 35269
4d815aed 35270
68d83c55 35271cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
35272/* confdefs.h. */
35273_ACEOF
35274cat confdefs.h >>conftest.$ac_ext
35275cat >>conftest.$ac_ext <<_ACEOF
35276/* end confdefs.h. */
4d815aed
AX
35277
35278
42f7b73b 35279 #include <linux/fs.h>
4d815aed 35280
68d83c55
AX
35281int
35282main (void)
35283{
4d815aed 35284
42f7b73b 35285 lookup_bdev(NULL);
4d815aed 35286
68d83c55
AX
35287 ;
35288 return 0;
35289}
4d815aed 35290
68d83c55 35291_ACEOF
4d815aed 35292
4d815aed 35293
4d815aed 35294
68d83c55 35295cat - <<_ACEOF >conftest.h
4d815aed 35296
42f7b73b 35297_ACEOF
4d815aed 35298
4d815aed 35299
42f7b73b
AX
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
35316else
35317 $as_echo "$as_me: failed program was:" >&5
35318sed 's/^/| /' conftest.$ac_ext >&5
35319 rc=1
4d815aed 35320
4d815aed 35321
42f7b73b 35322fi
4d815aed 35323
42f7b73b
AX
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
35336cat confdefs.h - <<_ACEOF >conftest.c
35337/* confdefs.h. */
35338_ACEOF
35339cat confdefs.h >>conftest.$ac_ext
35340cat >>conftest.$ac_ext <<_ACEOF
35341/* end confdefs.h. */
35342
35343
35344 #include <linux/fs.h>
35345
35346int
35347main (void)
35348{
35349
35350 lookup_bdev(NULL, FMODE_READ);
35351
35352 ;
35353 return 0;
35354}
35355
35356_ACEOF
35357
35358
35359
35360cat - <<_ACEOF >conftest.h
4d815aed 35361
68d83c55 35362_ACEOF
4d815aed
AX
35363
35364
68d83c55
AX
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
42f7b73b 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'
cae5b340 35370 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
68d83c55
AX
35371 (eval $ac_try) 2>&5
35372 ac_status=$?
cae5b340
AX
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
68d83c55
AX
35376 (eval $ac_try) 2>&5
35377 ac_status=$?
cae5b340
AX
35378 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35379 (exit $ac_status); }; }; then
42f7b73b
AX
35380 rc=0
35381else
35382 $as_echo "$as_me: failed program was:" >&5
35383sed 's/^/| /' conftest.$ac_ext >&5
35384 rc=1
4d815aed
AX
35385
35386
42f7b73b 35387fi
4d815aed 35388
42f7b73b 35389 rm -Rf build
4d815aed
AX
35390
35391
42f7b73b
AX
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
68d83c55 35427$as_echo "no" >&6; }
4d815aed 35428
42f7b73b 35429 else :
4d815aed 35430
42f7b73b
AX
35431 { $as_echo "$as_me:$LINENO: result: yes" >&5
35432$as_echo "yes" >&6; }
4d815aed 35433
42f7b73b
AX
35434cat >>confdefs.h <<\_ACEOF
35435#define HAVE_2ARGS_LOOKUP_BDEV 1
35436_ACEOF
cae5b340 35437
4d815aed 35438
42f7b73b
AX
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
4d815aed 35468
42f7b73b
AX
35469 fi
35470 if test $rc -ne 0; then :
4d815aed 35471
42f7b73b
AX
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; }
4d815aed 35476
4d815aed 35477
4d815aed 35478
68d83c55 35479cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
35480/* confdefs.h. */
35481_ACEOF
35482cat confdefs.h >>conftest.$ac_ext
35483cat >>conftest.$ac_ext <<_ACEOF
35484/* end confdefs.h. */
4d815aed 35485
4d815aed 35486
42f7b73b 35487 #include <linux/fs.h>
4d815aed 35488
68d83c55
AX
35489int
35490main (void)
35491{
4d815aed 35492
42f7b73b 35493 lookup_bdev(NULL, FMODE_READ);
4d815aed 35494
68d83c55
AX
35495 ;
35496 return 0;
35497}
4d815aed 35498
68d83c55 35499_ACEOF
4d815aed 35500
4d815aed 35501
4d815aed 35502
68d83c55 35503cat - <<_ACEOF >conftest.h
4d815aed 35504
68d83c55 35505_ACEOF
4d815aed 35506
4d815aed 35507
68d83c55
AX
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
42f7b73b 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'
cae5b340 35513 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
68d83c55
AX
35514 (eval $ac_try) 2>&5
35515 ac_status=$?
cae5b340
AX
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
68d83c55
AX
35519 (eval $ac_try) 2>&5
35520 ac_status=$?
cae5b340
AX
35521 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35522 (exit $ac_status); }; }; then
42f7b73b 35523 rc=0
4d815aed 35524else
68d83c55
AX
35525 $as_echo "$as_me: failed program was:" >&5
35526sed 's/^/| /' conftest.$ac_ext >&5
42f7b73b 35527 rc=1
4d815aed 35528
4d815aed 35529
42f7b73b 35530fi
4d815aed 35531
42f7b73b 35532 rm -Rf build
4d815aed 35533
4d815aed 35534
42f7b73b 35535 if test $rc -ne 0; then :
4d815aed 35536
42f7b73b
AX
35537 { $as_echo "$as_me:$LINENO: result: no" >&5
35538$as_echo "no" >&6; }
4d815aed 35539
42f7b73b
AX
35540 else
35541 if test "x$enable_linux_builtin" != xyes; then
4d815aed 35542
42f7b73b
AX
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
4d815aed 35565
42f7b73b
AX
35566 fi
35567 if test $rc -ne 0; then :
4d815aed 35568
42f7b73b
AX
35569 { $as_echo "$as_me:$LINENO: result: no" >&5
35570$as_echo "no" >&6; }
4d815aed 35571
42f7b73b 35572 else :
4d815aed 35573
cae5b340 35574 { $as_echo "$as_me:$LINENO: result: yes" >&5
68d83c55 35575$as_echo "yes" >&6; }
4d815aed 35576
cae5b340 35577cat >>confdefs.h <<\_ACEOF
42f7b73b 35578#define HAVE_2ARGS_LOOKUP_BDEV 1
cae5b340 35579_ACEOF
4d815aed 35580
4d815aed 35581
42f7b73b
AX
35582 fi
35583 fi
4d815aed 35584
4d815aed 35585
42f7b73b 35586 else :
4d815aed 35587
42f7b73b
AX
35588 { $as_echo "$as_me:$LINENO: result: yes" >&5
35589$as_echo "yes" >&6; }
4d815aed 35590
42f7b73b
AX
35591cat >>confdefs.h <<\_ACEOF
35592#define HAVE_1ARG_LOOKUP_BDEV 1
35593_ACEOF
cae5b340 35594
ea04106b 35595
42f7b73b
AX
35596 fi
35597 fi
4d815aed 35598
ea04106b
AX
35599
35600
42f7b73b
AX
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; }
ea04106b 35603
ea04106b 35604
68d83c55 35605cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
35606/* confdefs.h. */
35607_ACEOF
35608cat confdefs.h >>conftest.$ac_ext
35609cat >>conftest.$ac_ext <<_ACEOF
35610/* end confdefs.h. */
ea04106b 35611
ea04106b 35612
42f7b73b 35613 #include <linux/buffer_head.h>
ea04106b 35614
68d83c55
AX
35615int
35616main (void)
35617{
ea04106b 35618
42f7b73b
AX
35619 struct block_device *bdev = NULL;
35620 invalidate_bdev(bdev);
ea04106b 35621
68d83c55
AX
35622 ;
35623 return 0;
35624}
ea04106b 35625
68d83c55 35626_ACEOF
ea04106b 35627
ea04106b 35628
4d815aed 35629
68d83c55 35630cat - <<_ACEOF >conftest.h
ea04106b 35631
68d83c55 35632_ACEOF
ea04106b
AX
35633
35634
68d83c55
AX
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
42f7b73b 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'
cae5b340 35640 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
68d83c55
AX
35641 (eval $ac_try) 2>&5
35642 ac_status=$?
cae5b340
AX
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
68d83c55
AX
35646 (eval $ac_try) 2>&5
35647 ac_status=$?
cae5b340
AX
35648 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35649 (exit $ac_status); }; }; then
ea04106b 35650
cae5b340 35651 { $as_echo "$as_me:$LINENO: result: yes" >&5
68d83c55 35652$as_echo "yes" >&6; }
ea04106b 35653
cae5b340 35654cat >>confdefs.h <<\_ACEOF
42f7b73b 35655#define HAVE_1ARG_INVALIDATE_BDEV 1
cae5b340 35656_ACEOF
4d815aed 35657
ea04106b 35658
e10b0808 35659else
68d83c55
AX
35660 $as_echo "$as_me: failed program was:" >&5
35661sed 's/^/| /' conftest.$ac_ext >&5
ea04106b 35662
cae5b340 35663 { $as_echo "$as_me:$LINENO: result: no" >&5
68d83c55 35664$as_echo "no" >&6; }
4d815aed 35665
4d815aed 35666
4d815aed
AX
35667
35668fi
cae5b340 35669
68d83c55 35670 rm -Rf build
4d815aed 35671
4d815aed
AX
35672
35673
35674
42f7b73b
AX
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}"
4d815aed
AX
35679
35680
35681cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
35682/* confdefs.h. */
35683_ACEOF
35684cat confdefs.h >>conftest.$ac_ext
35685cat >>conftest.$ac_ext <<_ACEOF
35686/* end confdefs.h. */
4d815aed
AX
35687
35688
42f7b73b 35689 #include <linux/blkdev.h>
68d83c55 35690
e10b0808 35691int
4d815aed 35692main (void)
e10b0808 35693{
4d815aed 35694
42f7b73b
AX
35695 struct block_device *bdev = NULL;
35696 bdev_logical_block_size(bdev);
68d83c55 35697
e10b0808
AX
35698 ;
35699 return 0;
35700}
4d815aed 35701
e10b0808 35702_ACEOF
4d815aed
AX
35703
35704
35705
35706cat - <<_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
42f7b73b 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'
cae5b340 35716 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4d815aed
AX
35717 (eval $ac_try) 2>&5
35718 ac_status=$?
cae5b340
AX
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
4d815aed
AX
35722 (eval $ac_try) 2>&5
35723 ac_status=$?
cae5b340
AX
35724 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35725 (exit $ac_status); }; }; then
4d815aed 35726
cae5b340
AX
35727 { $as_echo "$as_me:$LINENO: result: yes" >&5
35728$as_echo "yes" >&6; }
68d83c55 35729
cae5b340 35730cat >>confdefs.h <<\_ACEOF
42f7b73b 35731#define HAVE_BDEV_LOGICAL_BLOCK_SIZE 1
cae5b340 35732_ACEOF
68d83c55 35733
4d815aed 35734
e10b0808 35735else
4d815aed
AX
35736 $as_echo "$as_me: failed program was:" >&5
35737sed 's/^/| /' conftest.$ac_ext >&5
35738
cae5b340
AX
35739 { $as_echo "$as_me:$LINENO: result: no" >&5
35740$as_echo "no" >&6; }
4d815aed
AX
35741
35742
35743
e10b0808 35744fi
cae5b340 35745
4d815aed 35746 rm -Rf build
ea04106b
AX
35747
35748
42f7b73b 35749 EXTRA_KCFLAGS="$tmp_flags"
ea04106b
AX
35750
35751
42f7b73b
AX
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; }
68d83c55
AX
35754 tmp_flags="$EXTRA_KCFLAGS"
35755 EXTRA_KCFLAGS="${NO_UNUSED_BUT_SET_VARIABLE}"
4d815aed 35756
68d83c55
AX
35757
35758cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
35759/* confdefs.h. */
35760_ACEOF
35761cat confdefs.h >>conftest.$ac_ext
35762cat >>conftest.$ac_ext <<_ACEOF
35763/* end confdefs.h. */
ea04106b 35764
4d815aed 35765
68d83c55
AX
35766 #include <linux/blkdev.h>
35767
e10b0808 35768int
68d83c55 35769main (void)
e10b0808 35770{
ea04106b 35771
42f7b73b
AX
35772 struct block_device *bdev = NULL;
35773 bdev_physical_block_size(bdev);
ea04106b
AX
35774
35775 ;
35776 return 0;
35777}
4d815aed 35778
ea04106b
AX
35779_ACEOF
35780
ea04106b
AX
35781
35782
68d83c55
AX
35783cat - <<_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
42f7b73b 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'
cae5b340 35793 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
68d83c55
AX
35794 (eval $ac_try) 2>&5
35795 ac_status=$?
cae5b340
AX
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
68d83c55
AX
35799 (eval $ac_try) 2>&5
35800 ac_status=$?
cae5b340
AX
35801 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35802 (exit $ac_status); }; }; then
68d83c55 35803
42f7b73b
AX
35804 { $as_echo "$as_me:$LINENO: result: yes" >&5
35805$as_echo "yes" >&6; }
68d83c55 35806
cae5b340 35807cat >>confdefs.h <<\_ACEOF
42f7b73b 35808#define HAVE_BDEV_PHYSICAL_BLOCK_SIZE 1
cae5b340 35809_ACEOF
68d83c55
AX
35810
35811
35812else
35813 $as_echo "$as_me: failed program was:" >&5
35814sed 's/^/| /' conftest.$ac_ext >&5
35815
42f7b73b
AX
35816 { $as_echo "$as_me:$LINENO: result: no" >&5
35817$as_echo "no" >&6; }
ea04106b 35818
ea04106b 35819
ea04106b 35820
ea04106b 35821fi
cae5b340 35822
68d83c55 35823 rm -Rf build
ea04106b
AX
35824
35825
68d83c55 35826 EXTRA_KCFLAGS="$tmp_flags"
ea04106b 35827
cae5b340 35828
42f7b73b
AX
35829 { $as_echo "$as_me:$LINENO: checking whether bio has bi_iter" >&5
35830$as_echo_n "checking whether bio has bi_iter... " >&6; }
ea04106b
AX
35831
35832
4d815aed 35833cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
35834/* confdefs.h. */
35835_ACEOF
35836cat confdefs.h >>conftest.$ac_ext
35837cat >>conftest.$ac_ext <<_ACEOF
35838/* end confdefs.h. */
ea04106b 35839
ea04106b 35840
42f7b73b 35841 #include <linux/bio.h>
ea04106b
AX
35842
35843int
4d815aed 35844main (void)
ea04106b
AX
35845{
35846
42f7b73b
AX
35847 struct bio bio;
35848 bio.bi_iter.bi_sector = 0;
4d815aed 35849
ea04106b
AX
35850 ;
35851 return 0;
35852}
ea04106b 35853
4d815aed 35854_ACEOF
ea04106b 35855
ea04106b
AX
35856
35857
4d815aed 35858cat - <<_ACEOF >conftest.h
ea04106b 35859
4d815aed 35860_ACEOF
ea04106b 35861
ea04106b 35862
4d815aed
AX
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
42f7b73b 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'
cae5b340 35868 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4d815aed
AX
35869 (eval $ac_try) 2>&5
35870 ac_status=$?
cae5b340
AX
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
4d815aed
AX
35874 (eval $ac_try) 2>&5
35875 ac_status=$?
cae5b340
AX
35876 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35877 (exit $ac_status); }; }; then
ea04106b 35878
42f7b73b
AX
35879 { $as_echo "$as_me:$LINENO: result: yes" >&5
35880$as_echo "yes" >&6; }
ea04106b 35881
cae5b340 35882cat >>confdefs.h <<\_ACEOF
42f7b73b 35883#define HAVE_BIO_BVEC_ITER 1
cae5b340 35884_ACEOF
ea04106b 35885
ea04106b 35886
68d83c55
AX
35887else
35888 $as_echo "$as_me: failed program was:" >&5
35889sed 's/^/| /' conftest.$ac_ext >&5
ea04106b 35890
42f7b73b
AX
35891 { $as_echo "$as_me:$LINENO: result: no" >&5
35892$as_echo "no" >&6; }
ea04106b
AX
35893
35894
68d83c55
AX
35895
35896fi
68d83c55 35897
cae5b340 35898 rm -Rf build
68d83c55
AX
35899
35900
35901
42f7b73b
AX
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; }
68d83c55
AX
35905
35906
35907cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
35908/* confdefs.h. */
35909_ACEOF
35910cat confdefs.h >>conftest.$ac_ext
35911cat >>conftest.$ac_ext <<_ACEOF
35912/* end confdefs.h. */
68d83c55
AX
35913
35914
42f7b73b 35915 #include <linux/bio.h>
ea04106b 35916
4d815aed
AX
35917int
35918main (void)
35919{
ea04106b 35920
42f7b73b
AX
35921 int flags __attribute__ ((unused));
35922 flags = ((1 << BIO_RW_FAILFAST_DEV) |
35923 (1 << BIO_RW_FAILFAST_TRANSPORT) |
35924 (1 << BIO_RW_FAILFAST_DRIVER));
ea04106b 35925
4d815aed
AX
35926 ;
35927 return 0;
35928}
ea04106b 35929
4d815aed 35930_ACEOF
ea04106b
AX
35931
35932
35933
4d815aed 35934cat - <<_ACEOF >conftest.h
ea04106b 35935
4d815aed 35936_ACEOF
ea04106b
AX
35937
35938
4d815aed
AX
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
42f7b73b 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'
cae5b340 35944 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4d815aed
AX
35945 (eval $ac_try) 2>&5
35946 ac_status=$?
cae5b340
AX
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
4d815aed
AX
35950 (eval $ac_try) 2>&5
35951 ac_status=$?
cae5b340
AX
35952 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35953 (exit $ac_status); }; }; then
ea04106b 35954
cae5b340 35955 { $as_echo "$as_me:$LINENO: result: yes" >&5
4d815aed 35956$as_echo "yes" >&6; }
ea04106b 35957
cae5b340 35958cat >>confdefs.h <<\_ACEOF
42f7b73b 35959#define HAVE_BIO_RW_FAILFAST_DTD 1
cae5b340 35960_ACEOF
ea04106b 35961
ea04106b 35962
4d815aed
AX
35963else
35964 $as_echo "$as_me: failed program was:" >&5
35965sed 's/^/| /' conftest.$ac_ext >&5
35966
cae5b340 35967 { $as_echo "$as_me:$LINENO: result: no" >&5
4d815aed 35968$as_echo "no" >&6; }
ea04106b
AX
35969
35970
ea04106b 35971
e10b0808 35972fi
cae5b340 35973
4d815aed 35974 rm -Rf build
ea04106b 35975
ea04106b 35976
ea04106b 35977
ea04106b 35978
42f7b73b
AX
35979 { $as_echo "$as_me:$LINENO: checking whether bio_set_dev() exists" >&5
35980$as_echo_n "checking whether bio_set_dev() exists... " >&6; }
ea04106b
AX
35981
35982
4d815aed 35983cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
35984/* confdefs.h. */
35985_ACEOF
35986cat confdefs.h >>conftest.$ac_ext
35987cat >>conftest.$ac_ext <<_ACEOF
35988/* end confdefs.h. */
ea04106b
AX
35989
35990
42f7b73b 35991 #include <linux/bio.h>
68d83c55 35992 #include <linux/fs.h>
ea04106b 35993
4d815aed
AX
35994int
35995main (void)
35996{
ea04106b 35997
68d83c55 35998 struct block_device *bdev = NULL;
42f7b73b
AX
35999 struct bio *bio = NULL;
36000 bio_set_dev(bio, bdev);
ea04106b 36001
4d815aed
AX
36002 ;
36003 return 0;
36004}
ea04106b 36005
4d815aed 36006_ACEOF
ea04106b 36007
ea04106b 36008
ea04106b 36009
4d815aed 36010cat - <<_ACEOF >conftest.h
ea04106b 36011
4d815aed 36012_ACEOF
ea04106b 36013
ea04106b 36014
4d815aed
AX
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
42f7b73b 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'
cae5b340 36020 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4d815aed
AX
36021 (eval $ac_try) 2>&5
36022 ac_status=$?
cae5b340
AX
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
4d815aed
AX
36026 (eval $ac_try) 2>&5
36027 ac_status=$?
cae5b340
AX
36028 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36029 (exit $ac_status); }; }; then
ea04106b 36030
cae5b340 36031 { $as_echo "$as_me:$LINENO: result: yes" >&5
4d815aed 36032$as_echo "yes" >&6; }
ea04106b 36033
cae5b340 36034cat >>confdefs.h <<\_ACEOF
42f7b73b 36035#define HAVE_BIO_SET_DEV 1
cae5b340 36036_ACEOF
ea04106b 36037
ea04106b 36038
4d815aed
AX
36039else
36040 $as_echo "$as_me: failed program was:" >&5
36041sed 's/^/| /' conftest.$ac_ext >&5
ea04106b 36042
cae5b340 36043 { $as_echo "$as_me:$LINENO: result: no" >&5
4d815aed 36044$as_echo "no" >&6; }
ea04106b
AX
36045
36046
ea04106b 36047
4d815aed 36048fi
cae5b340 36049
4d815aed 36050 rm -Rf build
ea04106b
AX
36051
36052
ea04106b
AX
36053
36054
42f7b73b
AX
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; }
ea04106b 36057
ea04106b 36058
4d815aed 36059cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
36060/* confdefs.h. */
36061_ACEOF
36062cat confdefs.h >>conftest.$ac_ext
36063cat >>conftest.$ac_ext <<_ACEOF
36064/* end confdefs.h. */
ea04106b 36065
ea04106b 36066
42f7b73b 36067 #include <linux/bio.h>
ea04106b 36068
4d815aed
AX
36069int
36070main (void)
36071{
ea04106b 36072
42f7b73b
AX
36073 int flags __attribute__ ((unused));
36074 flags = REQ_FAILFAST_MASK;
ea04106b 36075
4d815aed
AX
36076 ;
36077 return 0;
36078}
ea04106b 36079
4d815aed 36080_ACEOF
ea04106b
AX
36081
36082
ea04106b 36083
4d815aed 36084cat - <<_ACEOF >conftest.h
ea04106b 36085
4d815aed 36086_ACEOF
ea04106b 36087
ea04106b 36088
4d815aed
AX
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
42f7b73b 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'
cae5b340 36094 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4d815aed
AX
36095 (eval $ac_try) 2>&5
36096 ac_status=$?
cae5b340
AX
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
4d815aed
AX
36100 (eval $ac_try) 2>&5
36101 ac_status=$?
cae5b340
AX
36102 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36103 (exit $ac_status); }; }; then
ea04106b 36104
42f7b73b
AX
36105 { $as_echo "$as_me:$LINENO: result: yes" >&5
36106$as_echo "yes" >&6; }
ea04106b 36107
42f7b73b
AX
36108cat >>confdefs.h <<\_ACEOF
36109#define HAVE_REQ_FAILFAST_MASK 1
36110_ACEOF
68d83c55 36111
68d83c55 36112
42f7b73b
AX
36113else
36114 $as_echo "$as_me: failed program was:" >&5
36115sed 's/^/| /' conftest.$ac_ext >&5
68d83c55 36116
cae5b340 36117 { $as_echo "$as_me:$LINENO: result: no" >&5
68d83c55
AX
36118$as_echo "no" >&6; }
36119
68d83c55 36120
68d83c55 36121
42f7b73b 36122fi
68d83c55 36123
42f7b73b 36124 rm -Rf build
68d83c55 36125
68d83c55
AX
36126
36127
68d83c55 36128
42f7b73b
AX
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; }
ea04106b 36131
ea04106b 36132
4d815aed 36133cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
36134/* confdefs.h. */
36135_ACEOF
36136cat confdefs.h >>conftest.$ac_ext
36137cat >>conftest.$ac_ext <<_ACEOF
36138/* end confdefs.h. */
ea04106b 36139
ea04106b 36140
42f7b73b 36141 #include <linux/blk_types.h>
ea04106b 36142
4d815aed
AX
36143int
36144main (void)
36145{
ea04106b 36146
42f7b73b 36147 int op __attribute__ ((unused)) = REQ_OP_DISCARD;
ea04106b 36148
4d815aed
AX
36149 ;
36150 return 0;
36151}
ea04106b 36152
4d815aed 36153_ACEOF
ea04106b
AX
36154
36155
ea04106b 36156
4d815aed 36157cat - <<_ACEOF >conftest.h
ea04106b 36158
4d815aed 36159_ACEOF
ea04106b 36160
ea04106b 36161
4d815aed
AX
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
42f7b73b 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'
cae5b340 36167 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4d815aed
AX
36168 (eval $ac_try) 2>&5
36169 ac_status=$?
cae5b340
AX
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
4d815aed
AX
36173 (eval $ac_try) 2>&5
36174 ac_status=$?
cae5b340
AX
36175 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36176 (exit $ac_status); }; }; then
ea04106b 36177
42f7b73b
AX
36178 { $as_echo "$as_me:$LINENO: result: yes" >&5
36179$as_echo "yes" >&6; }
ea04106b 36180
42f7b73b
AX
36181cat >>confdefs.h <<\_ACEOF
36182#define HAVE_REQ_OP_DISCARD 1
36183_ACEOF
ea04106b 36184
ea04106b 36185
42f7b73b
AX
36186else
36187 $as_echo "$as_me: failed program was:" >&5
36188sed 's/^/| /' conftest.$ac_ext >&5
ea04106b 36189
cae5b340 36190 { $as_echo "$as_me:$LINENO: result: no" >&5
68d83c55 36191$as_echo "no" >&6; }
ea04106b
AX
36192
36193
ea04106b 36194
42f7b73b 36195fi
ea04106b 36196
42f7b73b 36197 rm -Rf build
87dac73d
AX
36198
36199
36200
36201
42f7b73b
AX
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; }
87dac73d
AX
36204
36205
36206cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
36207/* confdefs.h. */
36208_ACEOF
36209cat confdefs.h >>conftest.$ac_ext
36210cat >>conftest.$ac_ext <<_ACEOF
36211/* end confdefs.h. */
87dac73d
AX
36212
36213
42f7b73b 36214 #include <linux/blk_types.h>
87dac73d
AX
36215
36216int
36217main (void)
36218{
36219
42f7b73b 36220 int op __attribute__ ((unused)) = REQ_OP_SECURE_ERASE;
87dac73d
AX
36221
36222 ;
36223 return 0;
36224}
36225
36226_ACEOF
36227
36228
36229
36230cat - <<_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
42f7b73b 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'
cae5b340 36240 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
87dac73d
AX
36241 (eval $ac_try) 2>&5
36242 ac_status=$?
cae5b340
AX
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
87dac73d
AX
36246 (eval $ac_try) 2>&5
36247 ac_status=$?
cae5b340
AX
36248 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36249 (exit $ac_status); }; }; then
42f7b73b
AX
36250
36251 { $as_echo "$as_me:$LINENO: result: yes" >&5
36252$as_echo "yes" >&6; }
36253
36254cat >>confdefs.h <<\_ACEOF
36255#define HAVE_REQ_OP_SECURE_ERASE 1
36256_ACEOF
36257
36258
87dac73d
AX
36259else
36260 $as_echo "$as_me: failed program was:" >&5
36261sed 's/^/| /' conftest.$ac_ext >&5
42f7b73b
AX
36262
36263 { $as_echo "$as_me:$LINENO: result: no" >&5
36264$as_echo "no" >&6; }
36265
87dac73d
AX
36266
36267
e10b0808 36268fi
cae5b340 36269
4d815aed 36270 rm -Rf build
ea04106b 36271
ea04106b
AX
36272
36273
ea04106b 36274
42f7b73b
AX
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; }
ea04106b 36277
ea04106b 36278
4d815aed 36279cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
36280/* confdefs.h. */
36281_ACEOF
36282cat confdefs.h >>conftest.$ac_ext
36283cat >>conftest.$ac_ext <<_ACEOF
36284/* end confdefs.h. */
ea04106b 36285
ea04106b 36286
42f7b73b 36287 #include <linux/blk_types.h>
ea04106b 36288
4d815aed
AX
36289int
36290main (void)
36291{
ea04106b 36292
42f7b73b 36293 int op __attribute__ ((unused)) = REQ_OP_FLUSH;
ea04106b 36294
4d815aed
AX
36295 ;
36296 return 0;
36297}
ea04106b 36298
4d815aed 36299_ACEOF
ea04106b 36300
ea04106b
AX
36301
36302
4d815aed 36303cat - <<_ACEOF >conftest.h
ea04106b 36304
4d815aed 36305_ACEOF
ea04106b
AX
36306
36307
4d815aed
AX
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
42f7b73b 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'
cae5b340 36313 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4d815aed
AX
36314 (eval $ac_try) 2>&5
36315 ac_status=$?
cae5b340
AX
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
4d815aed
AX
36319 (eval $ac_try) 2>&5
36320 ac_status=$?
cae5b340
AX
36321 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36322 (exit $ac_status); }; }; then
ea04106b 36323
42f7b73b
AX
36324 { $as_echo "$as_me:$LINENO: result: yes" >&5
36325$as_echo "yes" >&6; }
ea04106b 36326
42f7b73b
AX
36327cat >>confdefs.h <<\_ACEOF
36328#define HAVE_REQ_OP_FLUSH 1
36329_ACEOF
ea04106b 36330
ea04106b 36331
42f7b73b
AX
36332else
36333 $as_echo "$as_me: failed program was:" >&5
36334sed 's/^/| /' conftest.$ac_ext >&5
ea04106b 36335
42f7b73b 36336 { $as_echo "$as_me:$LINENO: result: no" >&5
68d83c55 36337$as_echo "no" >&6; }
ea04106b 36338
ea04106b 36339
ea04106b 36340
42f7b73b 36341fi
ea04106b 36342
42f7b73b 36343 rm -Rf build
ea04106b 36344
ea04106b 36345
68d83c55 36346
68d83c55 36347
42f7b73b
AX
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; }
68d83c55
AX
36350
36351
36352cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
36353/* confdefs.h. */
36354_ACEOF
36355cat confdefs.h >>conftest.$ac_ext
36356cat >>conftest.$ac_ext <<_ACEOF
36357/* end confdefs.h. */
68d83c55
AX
36358
36359
42f7b73b 36360 #include <linux/bio.h>
ea04106b 36361
4d815aed
AX
36362int
36363main (void)
36364{
ea04106b 36365
42f7b73b
AX
36366 struct bio bio __attribute__ ((unused));
36367 bio.bi_opf = 0;
ea04106b 36368
4d815aed
AX
36369 ;
36370 return 0;
36371}
ea04106b 36372
4d815aed 36373_ACEOF
ea04106b 36374
e10b0808 36375
e10b0808 36376
4d815aed 36377cat - <<_ACEOF >conftest.h
e10b0808 36378
4d815aed 36379_ACEOF
e10b0808 36380
e10b0808 36381
4d815aed
AX
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
42f7b73b 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'
cae5b340 36387 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4d815aed
AX
36388 (eval $ac_try) 2>&5
36389 ac_status=$?
cae5b340
AX
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
4d815aed
AX
36393 (eval $ac_try) 2>&5
36394 ac_status=$?
cae5b340
AX
36395 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36396 (exit $ac_status); }; }; then
42f7b73b
AX
36397
36398 { $as_echo "$as_me:$LINENO: result: yes" >&5
36399$as_echo "yes" >&6; }
36400
36401cat >>confdefs.h <<\_ACEOF
36402#define HAVE_BIO_BI_OPF 1
36403_ACEOF
36404
36405
68d83c55
AX
36406else
36407 $as_echo "$as_me: failed program was:" >&5
36408sed 's/^/| /' conftest.$ac_ext >&5
42f7b73b
AX
36409
36410 { $as_echo "$as_me:$LINENO: result: no" >&5
36411$as_echo "no" >&6; }
36412
e10b0808 36413
e10b0808 36414
68d83c55 36415fi
cae5b340 36416
68d83c55 36417 rm -Rf build
ea04106b 36418
ea04106b 36419
ea04106b 36420
ea04106b 36421
42f7b73b
AX
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; }
ea04106b
AX
36424
36425
42f7b73b
AX
36426cat confdefs.h - <<_ACEOF >conftest.c
36427/* confdefs.h. */
36428_ACEOF
36429cat confdefs.h >>conftest.$ac_ext
36430cat >>conftest.$ac_ext <<_ACEOF
36431/* end confdefs.h. */
ea04106b
AX
36432
36433
42f7b73b 36434 #include <linux/bio.h>
ea04106b 36435
42f7b73b
AX
36436 void wanted_end_io(struct bio *bio) { return; }
36437
36438 bio_end_io_t *end_io __attribute__ ((unused)) = wanted_end_io;
36439
36440int
36441main (void)
36442{
36443
36444
36445 ;
36446 return 0;
36447}
68d83c55 36448
cae5b340 36449_ACEOF
68d83c55
AX
36450
36451
68d83c55 36452
42f7b73b
AX
36453cat - <<_ACEOF >conftest.h
36454
36455_ACEOF
68d83c55 36456
42f7b73b
AX
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
68d83c55 36473
cae5b340 36474 { $as_echo "$as_me:$LINENO: result: yes" >&5
68d83c55
AX
36475$as_echo "yes" >&6; }
36476
cae5b340 36477cat >>confdefs.h <<\_ACEOF
42f7b73b 36478#define HAVE_1ARG_BIO_END_IO_T 1
cae5b340 36479_ACEOF
68d83c55
AX
36480
36481
42f7b73b
AX
36482else
36483 $as_echo "$as_me: failed program was:" >&5
36484sed 's/^/| /' conftest.$ac_ext >&5
36485
36486 { $as_echo "$as_me:$LINENO: result: no" >&5
36487$as_echo "no" >&6; }
68d83c55
AX
36488
36489
36490
42f7b73b
AX
36491fi
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; }
ea04106b
AX
36500
36501
36502cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
36503/* confdefs.h. */
36504_ACEOF
36505cat confdefs.h >>conftest.$ac_ext
36506cat >>conftest.$ac_ext <<_ACEOF
36507/* end confdefs.h. */
ea04106b
AX
36508
36509
42f7b73b 36510 #include <linux/bio.h>
4d815aed 36511
ea04106b
AX
36512int
36513main (void)
36514{
36515
42f7b73b
AX
36516 struct bio bio __attribute__ ((unused));
36517 blk_status_t status __attribute__ ((unused)) = BLK_STS_OK;
36518
36519 bio.bi_status = status;
4d815aed 36520
ea04106b
AX
36521 ;
36522 return 0;
36523}
36524
36525_ACEOF
36526
36527
36528
36529cat - <<_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
42f7b73b 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'
cae5b340
AX
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
36553cat >>confdefs.h <<\_ACEOF
42f7b73b 36554#define HAVE_BIO_BI_STATUS 1
cae5b340
AX
36555_ACEOF
36556
36557
36558else
36559 $as_echo "$as_me: failed program was:" >&5
36560sed 's/^/| /' conftest.$ac_ext >&5
36561
36562 { $as_echo "$as_me:$LINENO: result: no" >&5
36563$as_echo "no" >&6; }
36564
36565
36566
36567fi
36568
36569 rm -Rf build
36570
36571
36572
36573
42f7b73b
AX
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; }
cae5b340
AX
36576
36577
36578cat confdefs.h - <<_ACEOF >conftest.c
36579/* confdefs.h. */
36580_ACEOF
36581cat confdefs.h >>conftest.$ac_ext
36582cat >>conftest.$ac_ext <<_ACEOF
36583/* end confdefs.h. */
36584
36585
42f7b73b 36586 #include <linux/bio.h>
cae5b340
AX
36587
36588int
36589main (void)
36590{
36591
42f7b73b
AX
36592 int flags __attribute__ ((unused));
36593 flags = BIO_RW_BARRIER;
cae5b340
AX
36594
36595 ;
36596 return 0;
36597}
36598
36599_ACEOF
36600
36601
36602
36603cat - <<_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
42f7b73b 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'
cae5b340
AX
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
36627cat >>confdefs.h <<\_ACEOF
42f7b73b 36628#define HAVE_BIO_RW_BARRIER 1
cae5b340
AX
36629_ACEOF
36630
36631
36632else
36633 $as_echo "$as_me: failed program was:" >&5
36634sed 's/^/| /' conftest.$ac_ext >&5
36635
36636 { $as_echo "$as_me:$LINENO: result: no" >&5
36637$as_echo "no" >&6; }
36638
36639
36640
36641fi
36642
36643 rm -Rf build
36644
36645
cae5b340
AX
36646
36647
42f7b73b
AX
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; }
cae5b340
AX
36650
36651
36652cat confdefs.h - <<_ACEOF >conftest.c
36653/* confdefs.h. */
36654_ACEOF
36655cat confdefs.h >>conftest.$ac_ext
36656cat >>conftest.$ac_ext <<_ACEOF
36657/* end confdefs.h. */
36658
36659
42f7b73b 36660 #include <linux/bio.h>
cae5b340
AX
36661
36662int
36663main (void)
36664{
36665
42f7b73b
AX
36666 int flags __attribute__ ((unused));
36667 flags = BIO_RW_DISCARD;
cae5b340
AX
36668
36669 ;
36670 return 0;
36671}
36672
36673_ACEOF
36674
36675
36676
36677cat - <<_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
42f7b73b 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'
cae5b340
AX
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
36701cat >>confdefs.h <<\_ACEOF
42f7b73b 36702#define HAVE_BIO_RW_DISCARD 1
cae5b340
AX
36703_ACEOF
36704
36705
36706else
36707 $as_echo "$as_me: failed program was:" >&5
36708sed 's/^/| /' conftest.$ac_ext >&5
36709
36710 { $as_echo "$as_me:$LINENO: result: no" >&5
36711$as_echo "no" >&6; }
36712
36713
36714
36715fi
36716
36717 rm -Rf build
36718
36719
cae5b340
AX
36720
36721
42f7b73b
AX
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; }
cae5b340
AX
36724
36725
36726cat confdefs.h - <<_ACEOF >conftest.c
36727/* confdefs.h. */
36728_ACEOF
36729cat confdefs.h >>conftest.$ac_ext
36730cat >>conftest.$ac_ext <<_ACEOF
36731/* end confdefs.h. */
36732
36733
42f7b73b 36734 #include <linux/blkdev.h>
cae5b340
AX
36735
36736int
36737main (void)
36738{
36739
42f7b73b
AX
36740 struct request_queue q;
36741 struct backing_dev_info bdi;
36742 q.backing_dev_info = &bdi;
cae5b340
AX
36743
36744 ;
36745 return 0;
36746}
36747
36748_ACEOF
36749
36750
36751
36752cat - <<_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
42f7b73b 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'
cae5b340
AX
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
36776cat >>confdefs.h <<\_ACEOF
42f7b73b 36777#define HAVE_BLK_QUEUE_BDI_DYNAMIC 1
cae5b340
AX
36778_ACEOF
36779
36780
36781else
36782 $as_echo "$as_me: failed program was:" >&5
36783sed 's/^/| /' conftest.$ac_ext >&5
36784
36785 { $as_echo "$as_me:$LINENO: result: no" >&5
36786$as_echo "no" >&6; }
36787
36788
36789
36790fi
36791
36792 rm -Rf build
36793
36794
36795
36796
42f7b73b
AX
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; }
cae5b340
AX
36799
36800
36801cat confdefs.h - <<_ACEOF >conftest.c
36802/* confdefs.h. */
36803_ACEOF
36804cat confdefs.h >>conftest.$ac_ext
36805cat >>conftest.$ac_ext <<_ACEOF
36806/* end confdefs.h. */
36807
36808
42f7b73b
AX
36809 #include <linux/kernel.h>
36810 #include <linux/blkdev.h>
cae5b340
AX
36811
36812int
36813main (void)
36814{
36815
42f7b73b
AX
36816 struct request_queue *q = NULL;
36817 blk_queue_flag_clear(0, q);
cae5b340
AX
36818
36819 ;
36820 return 0;
36821}
36822
36823_ACEOF
36824
36825
36826
36827cat - <<_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
42f7b73b 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'
cae5b340 36837 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
36838 (eval $ac_try) 2>&5
36839 ac_status=$?
cae5b340
AX
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
ea04106b
AX
36843 (eval $ac_try) 2>&5
36844 ac_status=$?
cae5b340
AX
36845 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36846 (exit $ac_status); }; }; then
ea04106b 36847
42f7b73b 36848
cae5b340 36849 { $as_echo "$as_me:$LINENO: result: yes" >&5
ea04106b
AX
36850$as_echo "yes" >&6; }
36851
cae5b340 36852cat >>confdefs.h <<\_ACEOF
42f7b73b 36853#define HAVE_BLK_QUEUE_FLAG_CLEAR 1
e10b0808 36854_ACEOF
e10b0808
AX
36855
36856
4d815aed
AX
36857else
36858 $as_echo "$as_me: failed program was:" >&5
36859sed 's/^/| /' conftest.$ac_ext >&5
36860
cae5b340 36861 { $as_echo "$as_me:$LINENO: result: no" >&5
4d815aed 36862$as_echo "no" >&6; }
e10b0808 36863
e10b0808
AX
36864
36865
94a40997 36866fi
cae5b340 36867
4d815aed 36868 rm -Rf build
94a40997 36869
e10b0808
AX
36870
36871
4d815aed 36872
42f7b73b
AX
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; }
ea04106b
AX
36875
36876
36877cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
36878/* confdefs.h. */
36879_ACEOF
36880cat confdefs.h >>conftest.$ac_ext
36881cat >>conftest.$ac_ext <<_ACEOF
36882/* end confdefs.h. */
ea04106b
AX
36883
36884
42f7b73b
AX
36885 #include <linux/kernel.h>
36886 #include <linux/blkdev.h>
ea04106b
AX
36887
36888int
36889main (void)
36890{
36891
42f7b73b
AX
36892 struct request_queue *q = NULL;
36893 blk_queue_flag_set(0, q);
ea04106b
AX
36894
36895 ;
36896 return 0;
36897}
36898
36899_ACEOF
36900
36901
36902
36903cat - <<_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
42f7b73b 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'
cae5b340 36913 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
36914 (eval $ac_try) 2>&5
36915 ac_status=$?
cae5b340
AX
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
ea04106b
AX
36919 (eval $ac_try) 2>&5
36920 ac_status=$?
cae5b340
AX
36921 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36922 (exit $ac_status); }; }; then
ea04106b 36923
cae5b340 36924 { $as_echo "$as_me:$LINENO: result: yes" >&5
ea04106b
AX
36925$as_echo "yes" >&6; }
36926
cae5b340 36927cat >>confdefs.h <<\_ACEOF
42f7b73b 36928#define HAVE_BLK_QUEUE_FLAG_SET 1
cae5b340 36929_ACEOF
ea04106b
AX
36930
36931
4d815aed
AX
36932else
36933 $as_echo "$as_me: failed program was:" >&5
36934sed 's/^/| /' conftest.$ac_ext >&5
36935
cae5b340 36936 { $as_echo "$as_me:$LINENO: result: no" >&5
4d815aed 36937$as_echo "no" >&6; }
ea04106b
AX
36938
36939
e10b0808 36940
4d815aed 36941fi
cae5b340 36942
4d815aed
AX
36943 rm -Rf build
36944
36945
36946
4d815aed 36947
42f7b73b
AX
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}"
4d815aed
AX
36952
36953
36954cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
36955/* confdefs.h. */
36956_ACEOF
36957cat confdefs.h >>conftest.$ac_ext
36958cat >>conftest.$ac_ext <<_ACEOF
36959/* end confdefs.h. */
4d815aed
AX
36960
36961
42f7b73b 36962 #include <linux/blkdev.h>
ea04106b
AX
36963
36964int
36965main (void)
36966{
36967
42f7b73b
AX
36968 struct request_queue *q = NULL;
36969 (void) blk_queue_flush(q, REQ_FLUSH);
ea04106b
AX
36970
36971 ;
36972 return 0;
36973}
36974
36975_ACEOF
36976
36977
36978
36979cat - <<_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
42f7b73b 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'
cae5b340 36989 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
36990 (eval $ac_try) 2>&5
36991 ac_status=$?
cae5b340
AX
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
ea04106b
AX
36995 (eval $ac_try) 2>&5
36996 ac_status=$?
cae5b340
AX
36997 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36998 (exit $ac_status); }; }; then
e10b0808 36999
cae5b340 37000 { $as_echo "$as_me:$LINENO: result: yes" >&5
68d83c55 37001$as_echo "yes" >&6; }
ea04106b 37002
cae5b340 37003cat >>confdefs.h <<\_ACEOF
42f7b73b
AX
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
37012cat confdefs.h - <<_ACEOF >conftest.c
37013/* confdefs.h. */
cae5b340 37014_ACEOF
42f7b73b
AX
37015cat confdefs.h >>conftest.$ac_ext
37016cat >>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
37025int
37026main (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
37040cat - <<_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
37064else
37065 $as_echo "$as_me: failed program was:" >&5
37066sed 's/^/| /' conftest.$ac_ext >&5
37067
37068 { $as_echo "$as_me:$LINENO: result: yes" >&5
37069$as_echo "yes" >&6; }
37070
37071cat >>confdefs.h <<\_ACEOF
37072#define HAVE_BLK_QUEUE_FLUSH_GPL_ONLY 1
37073_ACEOF
37074
37075
37076
37077
37078fi
37079
37080 rm -Rf build
37081
4d815aed 37082
ea04106b 37083
68d83c55
AX
37084else
37085 $as_echo "$as_me: failed program was:" >&5
37086sed 's/^/| /' conftest.$ac_ext >&5
ea04106b 37087
cae5b340 37088 { $as_echo "$as_me:$LINENO: result: no" >&5
ea04106b
AX
37089$as_echo "no" >&6; }
37090
ea04106b 37091
ea04106b 37092
68d83c55 37093fi
cae5b340 37094
68d83c55 37095 rm -Rf build
ea04106b 37096
e10b0808
AX
37097
37098
42f7b73b
AX
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; }
ea04106b
AX
37101
37102
37103cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
37104/* confdefs.h. */
37105_ACEOF
37106cat confdefs.h >>conftest.$ac_ext
37107cat >>conftest.$ac_ext <<_ACEOF
37108/* end confdefs.h. */
ea04106b
AX
37109
37110
42f7b73b
AX
37111 #include <linux/kernel.h>
37112 #include <linux/blkdev.h>
37113
ea04106b
AX
37114
37115int
37116main (void)
37117{
37118
42f7b73b
AX
37119 struct request_queue *q = NULL;
37120 blk_queue_write_cache(q, true, true);
ea04106b
AX
37121
37122 ;
37123 return 0;
37124}
37125
37126_ACEOF
37127
37128
37129
37130cat - <<_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
42f7b73b 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'
cae5b340 37140 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
37141 (eval $ac_try) 2>&5
37142 ac_status=$?
cae5b340
AX
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
ea04106b
AX
37146 (eval $ac_try) 2>&5
37147 ac_status=$?
cae5b340
AX
37148 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37149 (exit $ac_status); }; }; then
ea04106b 37150
cae5b340 37151 { $as_echo "$as_me:$LINENO: result: yes" >&5
68d83c55 37152$as_echo "yes" >&6; }
ea04106b 37153
cae5b340 37154cat >>confdefs.h <<\_ACEOF
42f7b73b 37155#define HAVE_BLK_QUEUE_WRITE_CACHE 1
cae5b340 37156_ACEOF
4d815aed 37157
4d815aed 37158
42f7b73b
AX
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; }
ea04106b
AX
37161
37162
37163cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
37164/* confdefs.h. */
37165_ACEOF
37166cat confdefs.h >>conftest.$ac_ext
37167cat >>conftest.$ac_ext <<_ACEOF
37168/* end confdefs.h. */
ea04106b
AX
37169
37170
42f7b73b
AX
37171 #include <linux/kernel.h>
37172 #include <linux/module.h>
37173 #include <linux/blkdev.h>
37174
37175 MODULE_LICENSE("$ZFS_META_LICENSE");
ea04106b
AX
37176
37177int
37178main (void)
37179{
37180
42f7b73b
AX
37181 struct request_queue *q = NULL;
37182 blk_queue_write_cache(q, true, true);
ea04106b
AX
37183
37184 ;
37185 return 0;
37186}
37187
37188_ACEOF
37189
37190
37191
37192cat - <<_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
42f7b73b 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'
cae5b340 37202 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
37203 (eval $ac_try) 2>&5
37204 ac_status=$?
cae5b340
AX
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
ea04106b
AX
37208 (eval $ac_try) 2>&5
37209 ac_status=$?
cae5b340
AX
37210 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37211 (exit $ac_status); }; }; then
ea04106b 37212
42f7b73b
AX
37213 { $as_echo "$as_me:$LINENO: result: no" >&5
37214$as_echo "no" >&6; }
37215
37216else
37217 $as_echo "$as_me: failed program was:" >&5
37218sed 's/^/| /' conftest.$ac_ext >&5
37219
37220 { $as_echo "$as_me:$LINENO: result: yes" >&5
68d83c55 37221$as_echo "yes" >&6; }
4d815aed 37222
cae5b340 37223cat >>confdefs.h <<\_ACEOF
42f7b73b 37224#define HAVE_BLK_QUEUE_WRITE_CACHE_GPL_ONLY 1
cae5b340 37225_ACEOF
4d815aed 37226
4d815aed 37227
42f7b73b
AX
37228
37229
37230fi
37231
37232 rm -Rf build
37233
37234
37235
68d83c55
AX
37236else
37237 $as_echo "$as_me: failed program was:" >&5
37238sed 's/^/| /' conftest.$ac_ext >&5
4d815aed 37239
cae5b340 37240 { $as_echo "$as_me:$LINENO: result: no" >&5
4d815aed
AX
37241$as_echo "no" >&6; }
37242
4d815aed 37243
4d815aed 37244
68d83c55 37245fi
cae5b340 37246
68d83c55 37247 rm -Rf build
4d815aed 37248
4d815aed
AX
37249
37250
42f7b73b 37251 EXTRA_KCFLAGS="$tmp_flags"
4d815aed 37252
42f7b73b
AX
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}"
ea04106b
AX
37258
37259
37260cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
37261/* confdefs.h. */
37262_ACEOF
37263cat confdefs.h >>conftest.$ac_ext
37264cat >>conftest.$ac_ext <<_ACEOF
37265/* end confdefs.h. */
ea04106b
AX
37266
37267
42f7b73b 37268 #include <linux/blkdev.h>
ea04106b
AX
37269
37270int
37271main (void)
37272{
37273
42f7b73b
AX
37274 struct request_queue *q = NULL;
37275 (void) blk_queue_max_hw_sectors(q, BLK_SAFE_MAX_SECTORS);
ea04106b
AX
37276
37277 ;
37278 return 0;
37279}
37280
37281_ACEOF
37282
37283
37284
37285cat - <<_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
42f7b73b 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'
cae5b340 37295 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
37296 (eval $ac_try) 2>&5
37297 ac_status=$?
cae5b340
AX
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
ea04106b
AX
37301 (eval $ac_try) 2>&5
37302 ac_status=$?
cae5b340
AX
37303 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37304 (exit $ac_status); }; }; then
ea04106b 37305
cae5b340 37306 { $as_echo "$as_me:$LINENO: result: yes" >&5
ea04106b
AX
37307$as_echo "yes" >&6; }
37308
cae5b340 37309cat >>confdefs.h <<\_ACEOF
42f7b73b 37310#define HAVE_BLK_QUEUE_MAX_HW_SECTORS 1
cae5b340 37311_ACEOF
ea04106b
AX
37312
37313
37314else
37315 $as_echo "$as_me: failed program was:" >&5
37316sed 's/^/| /' conftest.$ac_ext >&5
37317
cae5b340 37318 { $as_echo "$as_me:$LINENO: result: no" >&5
4d815aed 37319$as_echo "no" >&6; }
ea04106b
AX
37320
37321
e10b0808
AX
37322
37323fi
cae5b340 37324
e10b0808
AX
37325 rm -Rf build
37326
37327
42f7b73b 37328 EXTRA_KCFLAGS="$tmp_flags"
e10b0808
AX
37329
37330
42f7b73b
AX
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}"
ea04106b
AX
37335
37336
37337cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
37338/* confdefs.h. */
37339_ACEOF
37340cat confdefs.h >>conftest.$ac_ext
37341cat >>conftest.$ac_ext <<_ACEOF
37342/* end confdefs.h. */
ea04106b
AX
37343
37344
42f7b73b 37345 #include <linux/blkdev.h>
e10b0808 37346
ea04106b
AX
37347int
37348main (void)
37349{
37350
42f7b73b
AX
37351 struct request_queue *q = NULL;
37352 (void) blk_queue_max_segments(q, BLK_MAX_SEGMENTS);
ea04106b
AX
37353
37354 ;
37355 return 0;
37356}
37357
37358_ACEOF
37359
37360
37361
37362cat - <<_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
42f7b73b 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'
cae5b340 37372 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
37373 (eval $ac_try) 2>&5
37374 ac_status=$?
cae5b340
AX
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
ea04106b
AX
37378 (eval $ac_try) 2>&5
37379 ac_status=$?
cae5b340
AX
37380 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37381 (exit $ac_status); }; }; then
ea04106b 37382
cae5b340 37383 { $as_echo "$as_me:$LINENO: result: yes" >&5
4d815aed 37384$as_echo "yes" >&6; }
ea04106b 37385
cae5b340 37386cat >>confdefs.h <<\_ACEOF
42f7b73b 37387#define HAVE_BLK_QUEUE_MAX_SEGMENTS 1
cae5b340 37388_ACEOF
ea04106b
AX
37389
37390
37391else
37392 $as_echo "$as_me: failed program was:" >&5
37393sed 's/^/| /' conftest.$ac_ext >&5
37394
cae5b340 37395 { $as_echo "$as_me:$LINENO: result: no" >&5
4d815aed 37396$as_echo "no" >&6; }
ea04106b
AX
37397
37398
37399
37400fi
cae5b340 37401
ea04106b
AX
37402 rm -Rf build
37403
37404
42f7b73b 37405 EXTRA_KCFLAGS="$tmp_flags"
ea04106b
AX
37406
37407
42f7b73b
AX
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}"
ea04106b
AX
37412
37413
37414cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
37415/* confdefs.h. */
37416_ACEOF
37417cat confdefs.h >>conftest.$ac_ext
37418cat >>conftest.$ac_ext <<_ACEOF
37419/* end confdefs.h. */
ea04106b
AX
37420
37421
42f7b73b 37422 #include <linux/blkdev.h>
ea04106b 37423
ea04106b
AX
37424int
37425main (void)
37426{
37427
42f7b73b
AX
37428 extern enum bio_rw_flags rw;
37429
37430 rw = BIO_RW_UNPLUG;
ea04106b
AX
37431
37432 ;
37433 return 0;
37434}
37435
37436_ACEOF
37437
37438
37439
37440cat - <<_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
42f7b73b 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'
cae5b340 37450 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
37451 (eval $ac_try) 2>&5
37452 ac_status=$?
cae5b340
AX
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
ea04106b
AX
37456 (eval $ac_try) 2>&5
37457 ac_status=$?
cae5b340
AX
37458 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37459 (exit $ac_status); }; }; then
ea04106b 37460
cae5b340 37461 { $as_echo "$as_me:$LINENO: result: yes" >&5
4d815aed 37462$as_echo "yes" >&6; }
ea04106b 37463
cae5b340 37464cat >>confdefs.h <<\_ACEOF
42f7b73b 37465#define HAVE_BLK_QUEUE_HAVE_BIO_RW_UNPLUG 1
cae5b340 37466_ACEOF
87dac73d
AX
37467
37468
37469else
37470 $as_echo "$as_me: failed program was:" >&5
37471sed 's/^/| /' conftest.$ac_ext >&5
37472
cae5b340 37473 { $as_echo "$as_me:$LINENO: result: no" >&5
87dac73d
AX
37474$as_echo "no" >&6; }
37475
37476
37477
37478fi
cae5b340 37479
87dac73d
AX
37480 rm -Rf build
37481
37482
42f7b73b 37483 EXTRA_KCFLAGS="$tmp_flags"
87dac73d
AX
37484
37485
42f7b73b
AX
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}"
87dac73d
AX
37490
37491
37492cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
37493/* confdefs.h. */
37494_ACEOF
37495cat confdefs.h >>conftest.$ac_ext
37496cat >>conftest.$ac_ext <<_ACEOF
37497/* end confdefs.h. */
87dac73d
AX
37498
37499
42f7b73b 37500 #include <linux/blkdev.h>
87dac73d
AX
37501
37502int
37503main (void)
37504{
37505
42f7b73b 37506 struct blk_plug plug;
cae5b340 37507
42f7b73b
AX
37508 blk_start_plug(&plug);
37509 blk_finish_plug(&plug);
87dac73d
AX
37510
37511 ;
37512 return 0;
37513}
37514
37515_ACEOF
37516
37517
37518
37519cat - <<_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
42f7b73b 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'
cae5b340 37529 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
87dac73d
AX
37530 (eval $ac_try) 2>&5
37531 ac_status=$?
cae5b340
AX
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
87dac73d
AX
37535 (eval $ac_try) 2>&5
37536 ac_status=$?
cae5b340
AX
37537 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37538 (exit $ac_status); }; }; then
87dac73d 37539
cae5b340 37540 { $as_echo "$as_me:$LINENO: result: yes" >&5
87dac73d
AX
37541$as_echo "yes" >&6; }
37542
cae5b340 37543cat >>confdefs.h <<\_ACEOF
42f7b73b 37544#define HAVE_BLK_QUEUE_HAVE_BLK_PLUG 1
cae5b340 37545_ACEOF
87dac73d
AX
37546
37547
37548else
37549 $as_echo "$as_me: failed program was:" >&5
37550sed 's/^/| /' conftest.$ac_ext >&5
37551
cae5b340 37552 { $as_echo "$as_me:$LINENO: result: no" >&5
87dac73d
AX
37553$as_echo "no" >&6; }
37554
37555
37556
37557fi
cae5b340 37558
87dac73d
AX
37559 rm -Rf build
37560
37561
42f7b73b 37562 EXTRA_KCFLAGS="$tmp_flags"
87dac73d 37563
42f7b73b
AX
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; }
87dac73d 37566
87dac73d
AX
37567
37568
37569cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
37570/* confdefs.h. */
37571_ACEOF
37572cat confdefs.h >>conftest.$ac_ext
37573cat >>conftest.$ac_ext <<_ACEOF
37574/* end confdefs.h. */
87dac73d
AX
37575
37576
42f7b73b 37577 #include <linux/genhd.h>
87dac73d
AX
37578
37579int
37580main (void)
37581{
37582
42f7b73b
AX
37583 struct gendisk *disk = NULL;
37584 (void) get_disk_and_module(disk);
87dac73d
AX
37585
37586 ;
37587 return 0;
37588}
37589
37590_ACEOF
37591
37592
37593
37594cat - <<_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
42f7b73b 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'
cae5b340 37604 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
87dac73d
AX
37605 (eval $ac_try) 2>&5
37606 ac_status=$?
cae5b340
AX
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
87dac73d
AX
37610 (eval $ac_try) 2>&5
37611 ac_status=$?
cae5b340
AX
37612 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37613 (exit $ac_status); }; }; then
42f7b73b
AX
37614 rc=0
37615else
37616 $as_echo "$as_me: failed program was:" >&5
37617sed 's/^/| /' conftest.$ac_ext >&5
37618 rc=1
87dac73d 37619
87dac73d 37620
42f7b73b 37621fi
ea04106b 37622
42f7b73b 37623 rm -Rf build
ea04106b 37624
42f7b73b
AX
37625
37626 if test $rc -ne 0; then :
ea04106b 37627
cae5b340 37628 { $as_echo "$as_me:$LINENO: result: no" >&5
4d815aed 37629$as_echo "no" >&6; }
ea04106b 37630
42f7b73b
AX
37631 else
37632 if test "x$enable_linux_builtin" != xyes; then
ea04106b 37633
42f7b73b
AX
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
ea04106b 37656
42f7b73b
AX
37657 fi
37658 if test $rc -ne 0; then :
cae5b340 37659
42f7b73b
AX
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
37668cat >>confdefs.h <<\_ACEOF
37669#define HAVE_GET_DISK_AND_MODULE 1
37670_ACEOF
ea04106b
AX
37671
37672
42f7b73b
AX
37673 fi
37674 fi
ea04106b 37675
4d815aed 37676
42f7b73b
AX
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}"
ea04106b
AX
37682
37683
37684cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
37685/* confdefs.h. */
37686_ACEOF
37687cat confdefs.h >>conftest.$ac_ext
37688cat >>conftest.$ac_ext <<_ACEOF
37689/* end confdefs.h. */
ea04106b
AX
37690
37691
42f7b73b 37692 #include <linux/blkdev.h>
ea04106b
AX
37693
37694int
37695main (void)
37696{
37697
42f7b73b
AX
37698 struct gendisk *disk = NULL;
37699 (void) get_disk_ro(disk);
ea04106b
AX
37700
37701 ;
37702 return 0;
37703}
37704
37705_ACEOF
37706
37707
37708
37709cat - <<_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
42f7b73b 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'
cae5b340 37719 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
37720 (eval $ac_try) 2>&5
37721 ac_status=$?
cae5b340
AX
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
ea04106b
AX
37725 (eval $ac_try) 2>&5
37726 ac_status=$?
cae5b340
AX
37727 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37728 (exit $ac_status); }; }; then
ea04106b 37729
cae5b340 37730 { $as_echo "$as_me:$LINENO: result: yes" >&5
ea04106b
AX
37731$as_echo "yes" >&6; }
37732
cae5b340 37733cat >>confdefs.h <<\_ACEOF
42f7b73b 37734#define HAVE_GET_DISK_RO 1
cae5b340 37735_ACEOF
ea04106b
AX
37736
37737
37738else
37739 $as_echo "$as_me: failed program was:" >&5
37740sed 's/^/| /' conftest.$ac_ext >&5
37741
cae5b340 37742 { $as_echo "$as_me:$LINENO: result: no" >&5
ea04106b
AX
37743$as_echo "no" >&6; }
37744
37745
37746
37747fi
cae5b340 37748
ea04106b
AX
37749 rm -Rf build
37750
37751
42f7b73b 37752 EXTRA_KCFLAGS="$tmp_flags"
ea04106b 37753
42f7b73b
AX
37754 { $as_echo "$as_me:$LINENO: checking whether get_gendisk() is available" >&5
37755$as_echo_n "checking whether get_gendisk() is available... " >&6; }
ea04106b 37756
ea04106b
AX
37757
37758
37759cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
37760/* confdefs.h. */
37761_ACEOF
37762cat confdefs.h >>conftest.$ac_ext
37763cat >>conftest.$ac_ext <<_ACEOF
37764/* end confdefs.h. */
ea04106b
AX
37765
37766
42f7b73b 37767 #include <linux/genhd.h>
ea04106b
AX
37768
37769int
37770main (void)
37771{
37772
42f7b73b 37773 get_gendisk(0, NULL);
ea04106b
AX
37774
37775 ;
37776 return 0;
37777}
37778
37779_ACEOF
37780
37781
37782
37783cat - <<_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
42f7b73b 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'
cae5b340 37793 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
37794 (eval $ac_try) 2>&5
37795 ac_status=$?
cae5b340
AX
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
ea04106b
AX
37799 (eval $ac_try) 2>&5
37800 ac_status=$?
cae5b340
AX
37801 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37802 (exit $ac_status); }; }; then
42f7b73b
AX
37803 rc=0
37804else
37805 $as_echo "$as_me: failed program was:" >&5
37806sed 's/^/| /' conftest.$ac_ext >&5
37807 rc=1
ea04106b 37808
ea04106b 37809
42f7b73b 37810fi
ea04106b 37811
42f7b73b 37812 rm -Rf build
ea04106b 37813
42f7b73b
AX
37814
37815 if test $rc -ne 0; then :
ea04106b 37816
cae5b340 37817 { $as_echo "$as_me:$LINENO: result: no" >&5
ea04106b
AX
37818$as_echo "no" >&6; }
37819
42f7b73b
AX
37820 else
37821 if test "x$enable_linux_builtin" != xyes; then
ea04106b 37822
42f7b73b
AX
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
ea04106b 37845
42f7b73b
AX
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
37857cat >>confdefs.h <<\_ACEOF
37858#define HAVE_GET_GENDISK 1
37859_ACEOF
cae5b340 37860
ea04106b 37861
42f7b73b
AX
37862 fi
37863 fi
ea04106b
AX
37864
37865
37866
42f7b73b
AX
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; }
87dac73d
AX
37869
37870
37871cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
37872/* confdefs.h. */
37873_ACEOF
37874cat confdefs.h >>conftest.$ac_ext
37875cat >>conftest.$ac_ext <<_ACEOF
37876/* end confdefs.h. */
87dac73d
AX
37877
37878
42f7b73b 37879 #include <linux/bio.h>
87dac73d
AX
37880
37881int
37882main (void)
37883{
37884
42f7b73b
AX
37885 struct bio *bio __attribute__ ((unused)) = NULL;
37886
37887 bio_set_op_attrs(bio, 0, 0);
87dac73d
AX
37888
37889 ;
37890 return 0;
37891}
37892
37893_ACEOF
37894
37895
37896
37897cat - <<_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
42f7b73b 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'
cae5b340 37907 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
87dac73d
AX
37908 (eval $ac_try) 2>&5
37909 ac_status=$?
cae5b340
AX
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
87dac73d
AX
37913 (eval $ac_try) 2>&5
37914 ac_status=$?
cae5b340
AX
37915 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37916 (exit $ac_status); }; }; then
87dac73d 37917
cae5b340 37918 { $as_echo "$as_me:$LINENO: result: yes" >&5
87dac73d
AX
37919$as_echo "yes" >&6; }
37920
cae5b340 37921cat >>confdefs.h <<\_ACEOF
42f7b73b 37922#define HAVE_BIO_SET_OP_ATTRS 1
cae5b340 37923_ACEOF
68d83c55
AX
37924
37925
42f7b73b
AX
37926else
37927 $as_echo "$as_me: failed program was:" >&5
37928sed 's/^/| /' conftest.$ac_ext >&5
37929
37930 { $as_echo "$as_me:$LINENO: result: no" >&5
37931$as_echo "no" >&6; }
37932
37933
37934
37935fi
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; }
68d83c55
AX
37944
37945
37946cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
37947/* confdefs.h. */
37948_ACEOF
37949cat confdefs.h >>conftest.$ac_ext
37950cat >>conftest.$ac_ext <<_ACEOF
37951/* end confdefs.h. */
68d83c55
AX
37952
37953
42f7b73b 37954 #include <linux/fs.h>
68d83c55
AX
37955
37956int
37957main (void)
37958{
37959
42f7b73b
AX
37960 int i __attribute__ ((unused));
37961
37962 i = generic_readlink(NULL, NULL, 0);
68d83c55
AX
37963
37964 ;
37965 return 0;
37966}
37967
37968_ACEOF
37969
37970
37971
37972cat - <<_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
42f7b73b 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'
cae5b340 37982 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
68d83c55
AX
37983 (eval $ac_try) 2>&5
37984 ac_status=$?
cae5b340
AX
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
68d83c55
AX
37988 (eval $ac_try) 2>&5
37989 ac_status=$?
cae5b340
AX
37990 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37991 (exit $ac_status); }; }; then
68d83c55 37992
42f7b73b 37993 { $as_echo "$as_me:$LINENO: result: yes" >&5
68d83c55
AX
37994$as_echo "yes" >&6; }
37995
cae5b340 37996cat >>confdefs.h <<\_ACEOF
42f7b73b 37997#define HAVE_GENERIC_READLINK 1
cae5b340 37998_ACEOF
68d83c55
AX
37999
38000
87dac73d
AX
38001else
38002 $as_echo "$as_me: failed program was:" >&5
38003sed 's/^/| /' conftest.$ac_ext >&5
38004
cae5b340 38005 { $as_echo "$as_me:$LINENO: result: no" >&5
87dac73d
AX
38006$as_echo "no" >&6; }
38007
38008
38009
38010fi
cae5b340 38011
87dac73d
AX
38012 rm -Rf build
38013
38014
38015
42f7b73b
AX
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; }
87dac73d
AX
38019
38020
38021cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
38022/* confdefs.h. */
38023_ACEOF
38024cat confdefs.h >>conftest.$ac_ext
38025cat >>conftest.$ac_ext <<_ACEOF
38026/* end confdefs.h. */
87dac73d
AX
38027
38028
68d83c55
AX
38029 #include <linux/blkdev.h>
38030
87dac73d
AX
38031int
38032main (void)
38033{
38034
42f7b73b
AX
38035 struct queue_limits ql __attribute__ ((unused));
38036
38037 ql.discard_granularity = 0;
87dac73d
AX
38038
38039 ;
38040 return 0;
38041}
38042
38043_ACEOF
38044
38045
38046
38047cat - <<_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
42f7b73b 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'
cae5b340 38057 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
87dac73d
AX
38058 (eval $ac_try) 2>&5
38059 ac_status=$?
cae5b340
AX
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
87dac73d
AX
38063 (eval $ac_try) 2>&5
38064 ac_status=$?
cae5b340
AX
38065 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38066 (exit $ac_status); }; }; then
87dac73d 38067
cae5b340 38068 { $as_echo "$as_me:$LINENO: result: yes" >&5
87dac73d
AX
38069$as_echo "yes" >&6; }
38070
cae5b340 38071cat >>confdefs.h <<\_ACEOF
42f7b73b 38072#define HAVE_DISCARD_GRANULARITY 1
cae5b340 38073_ACEOF
68d83c55
AX
38074
38075
42f7b73b
AX
38076else
38077 $as_echo "$as_me: failed program was:" >&5
38078sed 's/^/| /' conftest.$ac_ext >&5
38079
38080 { $as_echo "$as_me:$LINENO: result: no" >&5
38081$as_echo "no" >&6; }
38082
38083
38084
38085fi
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; }
68d83c55
AX
38094
38095
38096cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
38097/* confdefs.h. */
38098_ACEOF
38099cat confdefs.h >>conftest.$ac_ext
38100cat >>conftest.$ac_ext <<_ACEOF
38101/* end confdefs.h. */
68d83c55
AX
38102
38103
42f7b73b
AX
38104 #include <linux/fs.h>
38105 #include <linux/xattr.h>
68d83c55 38106
42f7b73b
AX
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 };
68d83c55
AX
38120
38121int
38122main (void)
38123{
38124
68d83c55
AX
38125
38126 ;
38127 return 0;
38128}
38129
38130_ACEOF
38131
38132
38133
38134cat - <<_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
42f7b73b 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'
cae5b340 38144 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
68d83c55
AX
38145 (eval $ac_try) 2>&5
38146 ac_status=$?
cae5b340
AX
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
68d83c55
AX
38150 (eval $ac_try) 2>&5
38151 ac_status=$?
cae5b340
AX
38152 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38153 (exit $ac_status); }; }; then
68d83c55 38154
42f7b73b 38155 { $as_echo "$as_me:$LINENO: result: yes" >&5
68d83c55
AX
38156$as_echo "yes" >&6; }
38157
cae5b340 38158cat >>confdefs.h <<\_ACEOF
42f7b73b 38159#define HAVE_CONST_XATTR_HANDLER 1
cae5b340 38160_ACEOF
68d83c55
AX
38161
38162
87dac73d
AX
38163else
38164 $as_echo "$as_me: failed program was:" >&5
38165sed 's/^/| /' conftest.$ac_ext >&5
38166
cae5b340 38167 { $as_echo "$as_me:$LINENO: result: no" >&5
87dac73d
AX
38168$as_echo "no" >&6; }
38169
38170
38171
38172fi
cae5b340 38173
87dac73d
AX
38174 rm -Rf build
38175
38176
38177
68d83c55 38178
42f7b73b
AX
38179 { $as_echo "$as_me:$LINENO: checking whether xattr_handler has name" >&5
38180$as_echo_n "checking whether xattr_handler has name... " >&6; }
ea04106b
AX
38181
38182
38183cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
38184/* confdefs.h. */
38185_ACEOF
38186cat confdefs.h >>conftest.$ac_ext
38187cat >>conftest.$ac_ext <<_ACEOF
38188/* end confdefs.h. */
ea04106b
AX
38189
38190
42f7b73b
AX
38191 #include <linux/xattr.h>
38192
38193 static const struct xattr_handler
38194 xops __attribute__ ((unused)) = {
38195 .name = XATTR_NAME_POSIX_ACL_ACCESS,
38196 };
ea04106b
AX
38197
38198int
38199main (void)
38200{
38201
ea04106b
AX
38202
38203 ;
38204 return 0;
38205}
38206
38207_ACEOF
38208
38209
38210
38211cat - <<_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
42f7b73b 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'
cae5b340 38221 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
38222 (eval $ac_try) 2>&5
38223 ac_status=$?
cae5b340
AX
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
ea04106b
AX
38227 (eval $ac_try) 2>&5
38228 ac_status=$?
cae5b340
AX
38229 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38230 (exit $ac_status); }; }; then
ea04106b 38231
cae5b340 38232 { $as_echo "$as_me:$LINENO: result: yes" >&5
ea04106b
AX
38233$as_echo "yes" >&6; }
38234
cae5b340 38235cat >>confdefs.h <<\_ACEOF
42f7b73b 38236#define HAVE_XATTR_HANDLER_NAME 1
cae5b340 38237_ACEOF
ea04106b
AX
38238
38239
38240else
38241 $as_echo "$as_me: failed program was:" >&5
38242sed 's/^/| /' conftest.$ac_ext >&5
38243
cae5b340 38244 { $as_echo "$as_me:$LINENO: result: no" >&5
ea04106b
AX
38245$as_echo "no" >&6; }
38246
38247
38248
38249fi
cae5b340 38250
ea04106b
AX
38251 rm -Rf build
38252
38253
38254
38255
42f7b73b
AX
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; }
ea04106b
AX
38258
38259
38260cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
38261/* confdefs.h. */
38262_ACEOF
38263cat confdefs.h >>conftest.$ac_ext
38264cat >>conftest.$ac_ext <<_ACEOF
38265/* end confdefs.h. */
ea04106b
AX
38266
38267
42f7b73b
AX
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 };
ea04106b
AX
38277
38278int
38279main (void)
38280{
38281
ea04106b
AX
38282
38283 ;
38284 return 0;
38285}
38286
38287_ACEOF
38288
38289
38290
38291cat - <<_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
42f7b73b 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'
cae5b340 38301 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
38302 (eval $ac_try) 2>&5
38303 ac_status=$?
cae5b340
AX
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
ea04106b
AX
38307 (eval $ac_try) 2>&5
38308 ac_status=$?
cae5b340
AX
38309 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38310 (exit $ac_status); }; }; then
ea04106b 38311
cae5b340 38312 { $as_echo "$as_me:$LINENO: result: yes" >&5
4d815aed 38313$as_echo "yes" >&6; }
ea04106b 38314
cae5b340 38315cat >>confdefs.h <<\_ACEOF
42f7b73b 38316#define HAVE_XATTR_GET_DENTRY_INODE 1
cae5b340 38317_ACEOF
e10b0808 38318
ea04106b 38319
4d815aed
AX
38320else
38321 $as_echo "$as_me: failed program was:" >&5
38322sed 's/^/| /' conftest.$ac_ext >&5
ea04106b 38323
42f7b73b 38324 { $as_echo "$as_me:$LINENO: result: no" >&5
e10b0808 38325$as_echo "no" >&6; }
42f7b73b
AX
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; }
e10b0808
AX
38328
38329
38330cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
38331/* confdefs.h. */
38332_ACEOF
38333cat confdefs.h >>conftest.$ac_ext
38334cat >>conftest.$ac_ext <<_ACEOF
38335/* end confdefs.h. */
e10b0808
AX
38336
38337
42f7b73b
AX
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 };
ea04106b
AX
38347
38348int
38349main (void)
38350{
38351
ea04106b
AX
38352
38353 ;
38354 return 0;
38355}
38356
38357_ACEOF
38358
38359
38360
38361cat - <<_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
42f7b73b 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'
cae5b340 38371 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
38372 (eval $ac_try) 2>&5
38373 ac_status=$?
cae5b340
AX
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
ea04106b
AX
38377 (eval $ac_try) 2>&5
38378 ac_status=$?
cae5b340
AX
38379 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38380 (exit $ac_status); }; }; then
e10b0808 38381
42f7b73b 38382 { $as_echo "$as_me:$LINENO: result: yes" >&5
4d815aed 38383$as_echo "yes" >&6; }
e10b0808 38384
cae5b340 38385cat >>confdefs.h <<\_ACEOF
42f7b73b 38386#define HAVE_XATTR_GET_HANDLER 1
cae5b340 38387_ACEOF
ea04106b 38388
ea04106b 38389
4d815aed
AX
38390else
38391 $as_echo "$as_me: failed program was:" >&5
38392sed 's/^/| /' conftest.$ac_ext >&5
ea04106b 38393
42f7b73b 38394 { $as_echo "$as_me:$LINENO: result: no" >&5
e10b0808 38395$as_echo "no" >&6; }
42f7b73b
AX
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; }
ea04106b
AX
38398
38399
38400cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
38401/* confdefs.h. */
38402_ACEOF
38403cat confdefs.h >>conftest.$ac_ext
38404cat >>conftest.$ac_ext <<_ACEOF
38405/* end confdefs.h. */
ea04106b
AX
38406
38407
42f7b73b
AX
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 };
ea04106b
AX
38417
38418int
38419main (void)
38420{
38421
ea04106b
AX
38422
38423 ;
38424 return 0;
38425}
38426
38427_ACEOF
38428
38429
38430
38431cat - <<_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
42f7b73b 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'
cae5b340 38441 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
38442 (eval $ac_try) 2>&5
38443 ac_status=$?
cae5b340
AX
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
ea04106b
AX
38447 (eval $ac_try) 2>&5
38448 ac_status=$?
cae5b340
AX
38449 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38450 (exit $ac_status); }; }; then
ea04106b 38451
42f7b73b 38452 { $as_echo "$as_me:$LINENO: result: yes" >&5
4d815aed 38453$as_echo "yes" >&6; }
ea04106b 38454
cae5b340 38455cat >>confdefs.h <<\_ACEOF
42f7b73b 38456#define HAVE_XATTR_GET_DENTRY 1
cae5b340 38457_ACEOF
e10b0808 38458
e10b0808 38459
4d815aed
AX
38460else
38461 $as_echo "$as_me: failed program was:" >&5
38462sed 's/^/| /' conftest.$ac_ext >&5
ea04106b 38463
42f7b73b 38464 { $as_echo "$as_me:$LINENO: result: no" >&5
ea04106b 38465$as_echo "no" >&6; }
42f7b73b
AX
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; }
ea04106b
AX
38468
38469
38470cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
38471/* confdefs.h. */
38472_ACEOF
38473cat confdefs.h >>conftest.$ac_ext
38474cat >>conftest.$ac_ext <<_ACEOF
38475/* end confdefs.h. */
ea04106b
AX
38476
38477
42f7b73b
AX
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 };
ea04106b
AX
38486
38487int
38488main (void)
38489{
38490
ea04106b
AX
38491
38492 ;
38493 return 0;
38494}
38495
38496_ACEOF
38497
38498
38499
38500cat - <<_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
42f7b73b 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'
cae5b340 38510 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
38511 (eval $ac_try) 2>&5
38512 ac_status=$?
cae5b340
AX
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
ea04106b
AX
38516 (eval $ac_try) 2>&5
38517 ac_status=$?
cae5b340
AX
38518 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38519 (exit $ac_status); }; }; then
ea04106b 38520
42f7b73b 38521 { $as_echo "$as_me:$LINENO: result: yes" >&5
e10b0808
AX
38522$as_echo "yes" >&6; }
38523
cae5b340 38524cat >>confdefs.h <<\_ACEOF
42f7b73b 38525#define HAVE_XATTR_GET_INODE 1
cae5b340 38526_ACEOF
e10b0808 38527
ea04106b 38528
68d83c55
AX
38529else
38530 $as_echo "$as_me: failed program was:" >&5
38531sed 's/^/| /' conftest.$ac_ext >&5
87dac73d 38532
42f7b73b
AX
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; }; }
87dac73d 38536
87dac73d
AX
38537
38538
68d83c55 38539fi
cae5b340 38540
68d83c55 38541 rm -Rf build
87dac73d 38542
68d83c55 38543
68d83c55 38544
68d83c55
AX
38545
38546
42f7b73b
AX
38547fi
38548
38549 rm -Rf build
38550
38551
38552
38553
38554
38555fi
38556
38557 rm -Rf build
38558
38559
38560
38561
38562
38563fi
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
68d83c55
AX
38573
38574cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
38575/* confdefs.h. */
38576_ACEOF
38577cat confdefs.h >>conftest.$ac_ext
38578cat >>conftest.$ac_ext <<_ACEOF
38579/* end confdefs.h. */
68d83c55
AX
38580
38581
42f7b73b
AX
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 };
87dac73d
AX
38593
38594int
38595main (void)
38596{
38597
87dac73d
AX
38598
38599 ;
38600 return 0;
38601}
38602
38603_ACEOF
38604
38605
38606
38607cat - <<_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
42f7b73b 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'
cae5b340 38617 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
87dac73d
AX
38618 (eval $ac_try) 2>&5
38619 ac_status=$?
cae5b340
AX
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
87dac73d
AX
38623 (eval $ac_try) 2>&5
38624 ac_status=$?
cae5b340
AX
38625 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38626 (exit $ac_status); }; }; then
ea04106b 38627
cae5b340 38628 { $as_echo "$as_me:$LINENO: result: yes" >&5
68d83c55 38629$as_echo "yes" >&6; }
ea04106b 38630
cae5b340 38631cat >>confdefs.h <<\_ACEOF
42f7b73b 38632#define HAVE_XATTR_SET_DENTRY_INODE 1
cae5b340 38633_ACEOF
ea04106b
AX
38634
38635
42f7b73b
AX
38636else
38637 $as_echo "$as_me: failed program was:" >&5
38638sed 's/^/| /' conftest.$ac_ext >&5
ea04106b 38639
42f7b73b
AX
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; }
ea04106b
AX
38644
38645
68d83c55 38646cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
38647/* confdefs.h. */
38648_ACEOF
38649cat confdefs.h >>conftest.$ac_ext
38650cat >>conftest.$ac_ext <<_ACEOF
38651/* end confdefs.h. */
ea04106b 38652
4d815aed 38653
42f7b73b
AX
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 };
68d83c55 38664
ea04106b
AX
38665int
38666main (void)
38667{
38668
87dac73d
AX
38669
38670 ;
38671 return 0;
38672}
38673
38674_ACEOF
38675
38676
38677
38678cat - <<_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
42f7b73b 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'
cae5b340 38688 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
87dac73d
AX
38689 (eval $ac_try) 2>&5
38690 ac_status=$?
cae5b340
AX
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
87dac73d
AX
38694 (eval $ac_try) 2>&5
38695 ac_status=$?
cae5b340
AX
38696 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38697 (exit $ac_status); }; }; then
87dac73d 38698
42f7b73b 38699 { $as_echo "$as_me:$LINENO: result: yes" >&5
87dac73d
AX
38700$as_echo "yes" >&6; }
38701
cae5b340 38702cat >>confdefs.h <<\_ACEOF
42f7b73b 38703#define HAVE_XATTR_SET_HANDLER 1
cae5b340 38704_ACEOF
87dac73d
AX
38705
38706
68d83c55
AX
38707else
38708 $as_echo "$as_me: failed program was:" >&5
38709sed 's/^/| /' conftest.$ac_ext >&5
87dac73d 38710
42f7b73b 38711 { $as_echo "$as_me:$LINENO: result: no" >&5
68d83c55 38712$as_echo "no" >&6; }
42f7b73b
AX
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; }
68d83c55
AX
38715
38716
38717cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
38718/* confdefs.h. */
38719_ACEOF
38720cat confdefs.h >>conftest.$ac_ext
38721cat >>conftest.$ac_ext <<_ACEOF
38722/* end confdefs.h. */
68d83c55
AX
38723
38724
42f7b73b
AX
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 };
87dac73d
AX
38734
38735int
38736main (void)
38737{
38738
ea04106b
AX
38739
38740 ;
38741 return 0;
38742}
38743
38744_ACEOF
38745
38746
38747
38748cat - <<_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
42f7b73b 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'
cae5b340 38758 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
38759 (eval $ac_try) 2>&5
38760 ac_status=$?
cae5b340
AX
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
ea04106b
AX
38764 (eval $ac_try) 2>&5
38765 ac_status=$?
cae5b340
AX
38766 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38767 (exit $ac_status); }; }; then
ea04106b 38768
42f7b73b 38769 { $as_echo "$as_me:$LINENO: result: yes" >&5
4d815aed
AX
38770$as_echo "yes" >&6; }
38771
cae5b340 38772cat >>confdefs.h <<\_ACEOF
42f7b73b 38773#define HAVE_XATTR_SET_DENTRY 1
cae5b340 38774_ACEOF
ea04106b 38775
87dac73d
AX
38776
38777else
38778 $as_echo "$as_me: failed program was:" >&5
38779sed 's/^/| /' conftest.$ac_ext >&5
38780
42f7b73b 38781 { $as_echo "$as_me:$LINENO: result: no" >&5
87dac73d 38782$as_echo "no" >&6; }
42f7b73b
AX
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; }
ea04106b
AX
38785
38786
38787cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
38788/* confdefs.h. */
38789_ACEOF
38790cat confdefs.h >>conftest.$ac_ext
38791cat >>conftest.$ac_ext <<_ACEOF
38792/* end confdefs.h. */
ea04106b
AX
38793
38794
42f7b73b
AX
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 };
ea04106b
AX
38804
38805int
38806main (void)
38807{
38808
ea04106b
AX
38809
38810 ;
38811 return 0;
38812}
38813
38814_ACEOF
38815
38816
38817
38818cat - <<_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
42f7b73b 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'
cae5b340 38828 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
38829 (eval $ac_try) 2>&5
38830 ac_status=$?
cae5b340
AX
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
ea04106b
AX
38834 (eval $ac_try) 2>&5
38835 ac_status=$?
cae5b340
AX
38836 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38837 (exit $ac_status); }; }; then
ea04106b 38838
42f7b73b 38839 { $as_echo "$as_me:$LINENO: result: yes" >&5
ea04106b
AX
38840$as_echo "yes" >&6; }
38841
cae5b340 38842cat >>confdefs.h <<\_ACEOF
42f7b73b 38843#define HAVE_XATTR_SET_INODE 1
cae5b340 38844_ACEOF
ea04106b
AX
38845
38846
38847else
38848 $as_echo "$as_me: failed program was:" >&5
38849sed 's/^/| /' conftest.$ac_ext >&5
38850
42f7b73b
AX
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
38857fi
38858
38859 rm -Rf build
38860
38861
38862
38863
38864
38865fi
38866
38867 rm -Rf build
38868
38869
38870
38871
38872
38873fi
38874
38875 rm -Rf build
38876
38877
ea04106b
AX
38878
38879
38880
38881fi
cae5b340 38882
ea04106b
AX
38883 rm -Rf build
38884
38885
ea04106b
AX
38886
38887
42f7b73b
AX
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; }
ea04106b
AX
38890
38891
38892cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
38893/* confdefs.h. */
38894_ACEOF
38895cat confdefs.h >>conftest.$ac_ext
38896cat >>conftest.$ac_ext <<_ACEOF
38897/* end confdefs.h. */
ea04106b
AX
38898
38899
68d83c55
AX
38900 #include <linux/xattr.h>
38901
42f7b73b
AX
38902 bool list(struct dentry *dentry) { return 0; }
38903 static const struct xattr_handler
38904 xops __attribute__ ((unused)) = {
38905 .list = list,
68d83c55 38906 };
ea04106b
AX
38907
38908int
38909main (void)
38910{
38911
ea04106b
AX
38912
38913 ;
38914 return 0;
38915}
38916
38917_ACEOF
38918
38919
38920
38921cat - <<_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
42f7b73b 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'
cae5b340 38931 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
38932 (eval $ac_try) 2>&5
38933 ac_status=$?
cae5b340
AX
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
ea04106b
AX
38937 (eval $ac_try) 2>&5
38938 ac_status=$?
cae5b340
AX
38939 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38940 (exit $ac_status); }; }; then
ea04106b 38941
cae5b340 38942 { $as_echo "$as_me:$LINENO: result: yes" >&5
ea04106b
AX
38943$as_echo "yes" >&6; }
38944
cae5b340 38945cat >>confdefs.h <<\_ACEOF
42f7b73b 38946#define HAVE_XATTR_LIST_SIMPLE 1
cae5b340 38947_ACEOF
ea04106b
AX
38948
38949
38950else
38951 $as_echo "$as_me: failed program was:" >&5
38952sed 's/^/| /' conftest.$ac_ext >&5
38953
42f7b73b 38954 { $as_echo "$as_me:$LINENO: result: no" >&5
ea04106b 38955$as_echo "no" >&6; }
42f7b73b
AX
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; }
ea04106b
AX
38958
38959
38960cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
38961/* confdefs.h. */
38962_ACEOF
38963cat confdefs.h >>conftest.$ac_ext
38964cat >>conftest.$ac_ext <<_ACEOF
38965/* end confdefs.h. */
ea04106b
AX
38966
38967
42f7b73b 38968 #include <linux/xattr.h>
68d83c55 38969
42f7b73b
AX
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 };
ea04106b
AX
38977
38978int
38979main (void)
38980{
38981
ea04106b
AX
38982
38983 ;
38984 return 0;
38985}
38986
38987_ACEOF
38988
38989
38990
38991cat - <<_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
42f7b73b 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'
cae5b340 39001 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
39002 (eval $ac_try) 2>&5
39003 ac_status=$?
cae5b340
AX
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
ea04106b
AX
39007 (eval $ac_try) 2>&5
39008 ac_status=$?
cae5b340
AX
39009 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39010 (exit $ac_status); }; }; then
ea04106b 39011
42f7b73b 39012 { $as_echo "$as_me:$LINENO: result: yes" >&5
ea04106b
AX
39013$as_echo "yes" >&6; }
39014
cae5b340 39015cat >>confdefs.h <<\_ACEOF
42f7b73b 39016#define HAVE_XATTR_LIST_HANDLER 1
cae5b340 39017_ACEOF
ea04106b
AX
39018
39019
39020else
39021 $as_echo "$as_me: failed program was:" >&5
39022sed 's/^/| /' conftest.$ac_ext >&5
39023
42f7b73b 39024 { $as_echo "$as_me:$LINENO: result: no" >&5
ea04106b 39025$as_echo "no" >&6; }
42f7b73b
AX
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; }
ea04106b
AX
39028
39029
39030cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
39031/* confdefs.h. */
39032_ACEOF
39033cat confdefs.h >>conftest.$ac_ext
39034cat >>conftest.$ac_ext <<_ACEOF
39035/* end confdefs.h. */
ea04106b
AX
39036
39037
42f7b73b 39038 #include <linux/xattr.h>
68d83c55 39039
42f7b73b
AX
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 };
ea04106b
AX
39048
39049int
39050main (void)
39051{
39052
ea04106b
AX
39053
39054 ;
39055 return 0;
39056}
39057
39058_ACEOF
39059
39060
39061
39062cat - <<_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
42f7b73b 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'
cae5b340 39072 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
39073 (eval $ac_try) 2>&5
39074 ac_status=$?
cae5b340
AX
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
ea04106b
AX
39078 (eval $ac_try) 2>&5
39079 ac_status=$?
cae5b340
AX
39080 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39081 (exit $ac_status); }; }; then
ea04106b 39082
42f7b73b 39083 { $as_echo "$as_me:$LINENO: result: yes" >&5
4d815aed 39084$as_echo "yes" >&6; }
ea04106b 39085
cae5b340 39086cat >>confdefs.h <<\_ACEOF
42f7b73b 39087#define HAVE_XATTR_LIST_DENTRY 1
cae5b340 39088_ACEOF
ea04106b
AX
39089
39090
68d83c55
AX
39091else
39092 $as_echo "$as_me: failed program was:" >&5
39093sed 's/^/| /' conftest.$ac_ext >&5
ea04106b 39094
42f7b73b 39095 { $as_echo "$as_me:$LINENO: result: no" >&5
cae5b340 39096$as_echo "no" >&6; }
42f7b73b
AX
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; }
ea04106b 39099
e10b0808 39100
4d815aed 39101cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
39102/* confdefs.h. */
39103_ACEOF
39104cat confdefs.h >>conftest.$ac_ext
39105cat >>conftest.$ac_ext <<_ACEOF
39106/* end confdefs.h. */
e10b0808 39107
4d815aed 39108
42f7b73b 39109 #include <linux/xattr.h>
68d83c55 39110
42f7b73b
AX
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 };
ea04106b
AX
39118
39119int
39120main (void)
39121{
39122
ea04106b
AX
39123
39124 ;
39125 return 0;
39126}
39127
39128_ACEOF
39129
39130
39131
39132cat - <<_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
42f7b73b 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'
cae5b340 39142 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
39143 (eval $ac_try) 2>&5
39144 ac_status=$?
cae5b340
AX
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
ea04106b
AX
39148 (eval $ac_try) 2>&5
39149 ac_status=$?
cae5b340
AX
39150 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39151 (exit $ac_status); }; }; then
ea04106b 39152
42f7b73b 39153 { $as_echo "$as_me:$LINENO: result: yes" >&5
ea04106b
AX
39154$as_echo "yes" >&6; }
39155
cae5b340 39156cat >>confdefs.h <<\_ACEOF
42f7b73b 39157#define HAVE_XATTR_LIST_INODE 1
cae5b340 39158_ACEOF
ea04106b
AX
39159
39160
39161else
39162 $as_echo "$as_me: failed program was:" >&5
39163sed 's/^/| /' conftest.$ac_ext >&5
39164
42f7b73b
AX
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
39171fi
39172
39173 rm -Rf build
39174
39175
39176
39177
39178
39179fi
39180
39181 rm -Rf build
39182
39183
39184
39185
39186
39187fi
39188
39189 rm -Rf build
39190
39191
39192
39193
39194
39195fi
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; }
ea04106b
AX
39204
39205
39206cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
39207/* confdefs.h. */
39208_ACEOF
39209cat confdefs.h >>conftest.$ac_ext
39210cat >>conftest.$ac_ext <<_ACEOF
39211/* end confdefs.h. */
ea04106b
AX
39212
39213
42f7b73b 39214 #include <linux/fs.h>
ea04106b
AX
39215
39216int
39217main (void)
39218{
39219
42f7b73b
AX
39220 struct inode *ip = NULL;
39221 (void) inode_owner_or_capable(ip);
ea04106b
AX
39222
39223 ;
39224 return 0;
39225}
39226
39227_ACEOF
39228
39229
39230
39231cat - <<_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
42f7b73b 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'
cae5b340 39241 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
39242 (eval $ac_try) 2>&5
39243 ac_status=$?
cae5b340
AX
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
ea04106b
AX
39247 (eval $ac_try) 2>&5
39248 ac_status=$?
cae5b340
AX
39249 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39250 (exit $ac_status); }; }; then
ea04106b 39251
42f7b73b 39252 { $as_echo "$as_me:$LINENO: result: yes" >&5
ea04106b
AX
39253$as_echo "yes" >&6; }
39254
cae5b340 39255cat >>confdefs.h <<\_ACEOF
42f7b73b 39256#define HAVE_INODE_OWNER_OR_CAPABLE 1
cae5b340 39257_ACEOF
ea04106b
AX
39258
39259
39260else
39261 $as_echo "$as_me: failed program was:" >&5
39262sed 's/^/| /' conftest.$ac_ext >&5
39263
42f7b73b 39264 { $as_echo "$as_me:$LINENO: result: no" >&5
ea04106b 39265$as_echo "no" >&6; }
42f7b73b
AX
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; }
5eacc075
AX
39268
39269
39270cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
39271/* confdefs.h. */
39272_ACEOF
39273cat confdefs.h >>conftest.$ac_ext
39274cat >>conftest.$ac_ext <<_ACEOF
39275/* end confdefs.h. */
5eacc075
AX
39276
39277
42f7b73b
AX
39278 #include <linux/fs.h>
39279 #include <linux/sched.h>
5eacc075
AX
39280
39281int
39282main (void)
39283{
39284
42f7b73b
AX
39285 struct inode *ip = NULL;
39286 (void) is_owner_or_cap(ip);
5eacc075
AX
39287
39288 ;
39289 return 0;
39290}
39291
39292_ACEOF
39293
39294
39295
39296cat - <<_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
42f7b73b 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'
cae5b340 39306 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5eacc075
AX
39307 (eval $ac_try) 2>&5
39308 ac_status=$?
cae5b340
AX
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
5eacc075
AX
39312 (eval $ac_try) 2>&5
39313 ac_status=$?
cae5b340
AX
39314 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39315 (exit $ac_status); }; }; then
5eacc075 39316
42f7b73b 39317 { $as_echo "$as_me:$LINENO: result: yes" >&5
5eacc075
AX
39318$as_echo "yes" >&6; }
39319
cae5b340 39320cat >>confdefs.h <<\_ACEOF
42f7b73b 39321#define HAVE_IS_OWNER_OR_CAP 1
cae5b340 39322_ACEOF
5eacc075
AX
39323
39324
39325else
39326 $as_echo "$as_me: failed program was:" >&5
39327sed 's/^/| /' conftest.$ac_ext >&5
39328
42f7b73b
AX
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;}
cae5b340 39333 { (exit 1); exit 1; }; }
5eacc075
AX
39334
39335
39336
ea04106b 39337fi
cae5b340 39338
ea04106b
AX
39339 rm -Rf build
39340
39341
ea04106b
AX
39342
39343
68d83c55
AX
39344
39345fi
cae5b340 39346
68d83c55
AX
39347 rm -Rf build
39348
39349
39350
39351
42f7b73b
AX
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
39356cat confdefs.h - <<_ACEOF >conftest.c
39357/* confdefs.h. */
39358_ACEOF
39359cat confdefs.h >>conftest.$ac_ext
39360cat >>conftest.$ac_ext <<_ACEOF
39361/* end confdefs.h. */
39362
68d83c55 39363
42f7b73b
AX
39364 #include <linux/cred.h>
39365 #include <linux/fs.h>
39366 #include <linux/posix_acl_xattr.h>
cae5b340 39367
42f7b73b
AX
39368int
39369main (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
39382cat - <<_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
39406cat >>confdefs.h <<\_ACEOF
39407#define HAVE_POSIX_ACL_FROM_XATTR_USERNS 1
39408_ACEOF
68d83c55
AX
39409
39410
42f7b73b
AX
39411else
39412 $as_echo "$as_me: failed program was:" >&5
39413sed 's/^/| /' conftest.$ac_ext >&5
39414
39415 { $as_echo "$as_me:$LINENO: result: no" >&5
39416$as_echo "no" >&6; }
68d83c55
AX
39417
39418
39419
39420fi
cae5b340 39421
68d83c55
AX
39422 rm -Rf build
39423
39424
39425
39426
42f7b73b
AX
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; }
ea04106b
AX
39429
39430
39431cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
39432/* confdefs.h. */
39433_ACEOF
39434cat confdefs.h >>conftest.$ac_ext
39435cat >>conftest.$ac_ext <<_ACEOF
39436/* end confdefs.h. */
ea04106b
AX
39437
39438
42f7b73b
AX
39439 #include <linux/cred.h>
39440 #include <linux/fs.h>
39441 #include <linux/posix_acl.h>
ea04106b
AX
39442
39443int
39444main (void)
39445{
39446
42f7b73b
AX
39447 struct posix_acl* tmp = posix_acl_alloc(1, 0);
39448 posix_acl_release(tmp);
ea04106b
AX
39449
39450 ;
39451 return 0;
39452}
39453
39454_ACEOF
39455
39456
39457
39458cat - <<_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
42f7b73b 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'
cae5b340 39468 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
39469 (eval $ac_try) 2>&5
39470 ac_status=$?
cae5b340
AX
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
ea04106b
AX
39474 (eval $ac_try) 2>&5
39475 ac_status=$?
cae5b340
AX
39476 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39477 (exit $ac_status); }; }; then
ea04106b 39478
cae5b340 39479 { $as_echo "$as_me:$LINENO: result: yes" >&5
ea04106b
AX
39480$as_echo "yes" >&6; }
39481
cae5b340 39482cat >>confdefs.h <<\_ACEOF
42f7b73b 39483#define HAVE_POSIX_ACL_RELEASE 1
cae5b340 39484_ACEOF
ea04106b
AX
39485
39486
42f7b73b
AX
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; }
ea04106b
AX
39489
39490
39491cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
39492/* confdefs.h. */
39493_ACEOF
39494cat confdefs.h >>conftest.$ac_ext
39495cat >>conftest.$ac_ext <<_ACEOF
39496/* end confdefs.h. */
ea04106b
AX
39497
39498
42f7b73b
AX
39499 #include <linux/module.h>
39500 #include <linux/cred.h>
39501 #include <linux/fs.h>
39502 #include <linux/posix_acl.h>
4d815aed 39503
42f7b73b 39504 MODULE_LICENSE("$ZFS_META_LICENSE");
ea04106b
AX
39505
39506int
39507main (void)
39508{
39509
42f7b73b
AX
39510 struct posix_acl* tmp = posix_acl_alloc(1, 0);
39511 posix_acl_release(tmp);
ea04106b
AX
39512
39513 ;
39514 return 0;
39515}
39516
39517_ACEOF
39518
39519
39520
39521cat - <<_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
42f7b73b 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'
cae5b340 39531 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
39532 (eval $ac_try) 2>&5
39533 ac_status=$?
cae5b340
AX
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
ea04106b
AX
39537 (eval $ac_try) 2>&5
39538 ac_status=$?
cae5b340
AX
39539 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39540 (exit $ac_status); }; }; then
ea04106b 39541
42f7b73b
AX
39542 { $as_echo "$as_me:$LINENO: result: no" >&5
39543$as_echo "no" >&6; }
39544
39545else
39546 $as_echo "$as_me: failed program was:" >&5
39547sed 's/^/| /' conftest.$ac_ext >&5
39548
cae5b340 39549 { $as_echo "$as_me:$LINENO: result: yes" >&5
ea04106b
AX
39550$as_echo "yes" >&6; }
39551
cae5b340 39552cat >>confdefs.h <<\_ACEOF
42f7b73b 39553#define HAVE_POSIX_ACL_RELEASE_GPL_ONLY 1
cae5b340 39554_ACEOF
ea04106b
AX
39555
39556
42f7b73b
AX
39557
39558
39559fi
39560
39561 rm -Rf build
39562
39563
39564
ea04106b
AX
39565else
39566 $as_echo "$as_me: failed program was:" >&5
39567sed 's/^/| /' conftest.$ac_ext >&5
39568
42f7b73b 39569 { $as_echo "$as_me:$LINENO: result: no" >&5
ea04106b 39570$as_echo "no" >&6; }
42f7b73b
AX
39571
39572
39573
39574fi
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; }
ea04106b
AX
39583
39584
39585cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
39586/* confdefs.h. */
39587_ACEOF
39588cat confdefs.h >>conftest.$ac_ext
39589cat >>conftest.$ac_ext <<_ACEOF
39590/* end confdefs.h. */
ea04106b
AX
39591
39592
42f7b73b
AX
39593 #include <linux/module.h>
39594 #include <linux/cred.h>
39595 #include <linux/fs.h>
39596 #include <linux/posix_acl.h>
ea04106b 39597
42f7b73b 39598 MODULE_LICENSE("$ZFS_META_LICENSE");
ea04106b
AX
39599
39600int
39601main (void)
39602{
39603
42f7b73b
AX
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);
ea04106b
AX
39608
39609 ;
39610 return 0;
39611}
39612
39613_ACEOF
39614
39615
39616
39617cat - <<_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
42f7b73b 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'
cae5b340 39627 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
39628 (eval $ac_try) 2>&5
39629 ac_status=$?
cae5b340
AX
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
ea04106b
AX
39633 (eval $ac_try) 2>&5
39634 ac_status=$?
cae5b340
AX
39635 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39636 (exit $ac_status); }; }; then
ea04106b 39637
42f7b73b 39638 { $as_echo "$as_me:$LINENO: result: yes" >&5
4d815aed
AX
39639$as_echo "yes" >&6; }
39640
cae5b340 39641cat >>confdefs.h <<\_ACEOF
42f7b73b 39642#define HAVE_SET_CACHED_ACL_USABLE 1
cae5b340 39643_ACEOF
87dac73d
AX
39644
39645
39646else
39647 $as_echo "$as_me: failed program was:" >&5
39648sed 's/^/| /' conftest.$ac_ext >&5
39649
42f7b73b 39650 { $as_echo "$as_me:$LINENO: result: no" >&5
87dac73d 39651$as_echo "no" >&6; }
42f7b73b
AX
39652
39653
39654
39655fi
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; }
87dac73d
AX
39664
39665
39666cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
39667/* confdefs.h. */
39668_ACEOF
39669cat confdefs.h >>conftest.$ac_ext
39670cat >>conftest.$ac_ext <<_ACEOF
39671/* end confdefs.h. */
87dac73d
AX
39672
39673
42f7b73b
AX
39674 #include <linux/fs.h>
39675 #include <linux/posix_acl.h>
87dac73d
AX
39676
39677int
39678main (void)
39679{
39680
42f7b73b 39681 posix_acl_chmod(NULL, 0, 0)
87dac73d
AX
39682
39683 ;
39684 return 0;
39685}
39686
39687_ACEOF
39688
39689
39690
39691cat - <<_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
42f7b73b 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'
cae5b340 39701 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
87dac73d
AX
39702 (eval $ac_try) 2>&5
39703 ac_status=$?
cae5b340
AX
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
87dac73d
AX
39707 (eval $ac_try) 2>&5
39708 ac_status=$?
cae5b340
AX
39709 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39710 (exit $ac_status); }; }; then
87dac73d 39711
42f7b73b 39712 { $as_echo "$as_me:$LINENO: result: yes" >&5
87dac73d
AX
39713$as_echo "yes" >&6; }
39714
cae5b340 39715cat >>confdefs.h <<\_ACEOF
42f7b73b 39716#define HAVE_POSIX_ACL_CHMOD 1
cae5b340 39717_ACEOF
4d815aed 39718
ea04106b
AX
39719
39720else
39721 $as_echo "$as_me: failed program was:" >&5
39722sed 's/^/| /' conftest.$ac_ext >&5
39723
42f7b73b
AX
39724 { $as_echo "$as_me:$LINENO: result: no" >&5
39725$as_echo "no" >&6; }
4d815aed
AX
39726
39727
39728
39729fi
cae5b340 39730
4d815aed
AX
39731 rm -Rf build
39732
39733
39734
42f7b73b
AX
39735 { $as_echo "$as_me:$LINENO: checking whether __posix_acl_chmod exists" >&5
39736$as_echo_n "checking whether __posix_acl_chmod exists... " >&6; }
4d815aed
AX
39737
39738
42f7b73b
AX
39739cat confdefs.h - <<_ACEOF >conftest.c
39740/* confdefs.h. */
39741_ACEOF
39742cat confdefs.h >>conftest.$ac_ext
39743cat >>conftest.$ac_ext <<_ACEOF
39744/* end confdefs.h. */
cae5b340 39745
ea04106b 39746
42f7b73b
AX
39747 #include <linux/fs.h>
39748 #include <linux/posix_acl.h>
39749
39750int
39751main (void)
39752{
39753
39754 __posix_acl_chmod(NULL, 0, 0)
ea04106b 39755
42f7b73b
AX
39756 ;
39757 return 0;
39758}
ea04106b 39759
42f7b73b 39760_ACEOF
ea04106b
AX
39761
39762
cae5b340 39763
42f7b73b
AX
39764cat - <<_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
39788cat >>confdefs.h <<\_ACEOF
39789#define HAVE___POSIX_ACL_CHMOD 1
39790_ACEOF
39791
ea04106b 39792
42f7b73b
AX
39793else
39794 $as_echo "$as_me: failed program was:" >&5
39795sed 's/^/| /' conftest.$ac_ext >&5
ea04106b 39796
42f7b73b
AX
39797 { $as_echo "$as_me:$LINENO: result: no" >&5
39798$as_echo "no" >&6; }
ea04106b
AX
39799
39800
87dac73d
AX
39801
39802fi
cae5b340 39803
87dac73d
AX
39804 rm -Rf build
39805
39806
39807
39808
42f7b73b
AX
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; }
ea04106b
AX
39811
39812
39813cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
39814/* confdefs.h. */
39815_ACEOF
39816cat confdefs.h >>conftest.$ac_ext
39817cat >>conftest.$ac_ext <<_ACEOF
39818/* end confdefs.h. */
ea04106b
AX
39819
39820
42f7b73b
AX
39821 #include <linux/fs.h>
39822 #include <linux/posix_acl.h>
ea04106b
AX
39823
39824int
39825main (void)
39826{
39827
42f7b73b
AX
39828 umode_t tmp;
39829 posix_acl_equiv_mode(NULL,&tmp);
ea04106b
AX
39830
39831 ;
39832 return 0;
39833}
39834
39835_ACEOF
39836
39837
39838
39839cat - <<_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
42f7b73b 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'
cae5b340 39849 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
39850 (eval $ac_try) 2>&5
39851 ac_status=$?
cae5b340
AX
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
ea04106b
AX
39855 (eval $ac_try) 2>&5
39856 ac_status=$?
cae5b340
AX
39857 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39858 (exit $ac_status); }; }; then
ea04106b 39859
cae5b340 39860 { $as_echo "$as_me:$LINENO: result: yes" >&5
ea04106b
AX
39861$as_echo "yes" >&6; }
39862
cae5b340 39863cat >>confdefs.h <<\_ACEOF
42f7b73b 39864#define HAVE_POSIX_ACL_EQUIV_MODE_UMODE_T 1
cae5b340 39865_ACEOF
ea04106b
AX
39866
39867
39868else
39869 $as_echo "$as_me: failed program was:" >&5
39870sed 's/^/| /' conftest.$ac_ext >&5
39871
42f7b73b 39872 { $as_echo "$as_me:$LINENO: result: no" >&5
68d83c55 39873$as_echo "no" >&6; }
42f7b73b
AX
39874
39875
39876
39877fi
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; }
ea04106b
AX
39886
39887
39888cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
39889/* confdefs.h. */
39890_ACEOF
39891cat confdefs.h >>conftest.$ac_ext
39892cat >>conftest.$ac_ext <<_ACEOF
39893/* end confdefs.h. */
ea04106b
AX
39894
39895
42f7b73b
AX
39896 #include <linux/fs.h>
39897 #include <linux/posix_acl.h>
ea04106b
AX
39898
39899int
39900main (void)
39901{
39902
42f7b73b
AX
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);
ea04106b
AX
39908
39909 ;
39910 return 0;
39911}
39912
39913_ACEOF
39914
39915
39916
39917cat - <<_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
42f7b73b 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'
cae5b340 39927 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
39928 (eval $ac_try) 2>&5
39929 ac_status=$?
cae5b340
AX
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
ea04106b
AX
39933 (eval $ac_try) 2>&5
39934 ac_status=$?
cae5b340
AX
39935 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39936 (exit $ac_status); }; }; then
ea04106b 39937
42f7b73b 39938 { $as_echo "$as_me:$LINENO: result: yes" >&5
ea04106b
AX
39939$as_echo "yes" >&6; }
39940
cae5b340 39941cat >>confdefs.h <<\_ACEOF
42f7b73b 39942#define HAVE_POSIX_ACL_VALID_WITH_NS 1
cae5b340 39943_ACEOF
ea04106b
AX
39944
39945
39946else
39947 $as_echo "$as_me: failed program was:" >&5
39948sed 's/^/| /' conftest.$ac_ext >&5
39949
42f7b73b 39950 { $as_echo "$as_me:$LINENO: result: no" >&5
ea04106b 39951$as_echo "no" >&6; }
42f7b73b
AX
39952
39953
39954
39955fi
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; }
ea04106b
AX
39964
39965
39966cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
39967/* confdefs.h. */
39968_ACEOF
39969cat confdefs.h >>conftest.$ac_ext
39970cat >>conftest.$ac_ext <<_ACEOF
39971/* end confdefs.h. */
ea04106b
AX
39972
39973
42f7b73b 39974 #include <linux/fs.h>
4d815aed 39975
42f7b73b
AX
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 };
ea04106b
AX
39982
39983int
39984main (void)
39985{
39986
ea04106b
AX
39987
39988 ;
39989 return 0;
39990}
39991
39992_ACEOF
39993
39994
39995
39996cat - <<_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
42f7b73b 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'
cae5b340 40006 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
40007 (eval $ac_try) 2>&5
40008 ac_status=$?
cae5b340
AX
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
ea04106b
AX
40012 (eval $ac_try) 2>&5
40013 ac_status=$?
cae5b340
AX
40014 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
40015 (exit $ac_status); }; }; then
ea04106b 40016
42f7b73b 40017 { $as_echo "$as_me:$LINENO: result: yes" >&5
ea04106b
AX
40018$as_echo "yes" >&6; }
40019
cae5b340 40020cat >>confdefs.h <<\_ACEOF
42f7b73b 40021#define HAVE_PERMISSION 1
cae5b340 40022_ACEOF
87dac73d
AX
40023
40024
40025else
40026 $as_echo "$as_me: failed program was:" >&5
40027sed 's/^/| /' conftest.$ac_ext >&5
40028
42f7b73b 40029 { $as_echo "$as_me:$LINENO: result: no" >&5
87dac73d 40030$as_echo "no" >&6; }
42f7b73b
AX
40031
40032
40033
40034fi
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; }
87dac73d
AX
40043
40044
40045cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
40046/* confdefs.h. */
40047_ACEOF
40048cat confdefs.h >>conftest.$ac_ext
40049cat >>conftest.$ac_ext <<_ACEOF
40050/* end confdefs.h. */
87dac73d
AX
40051
40052
42f7b73b
AX
40053 #include <linux/fs.h>
40054 #include <linux/sched.h>
87dac73d 40055
42f7b73b
AX
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 };
87dac73d
AX
40063
40064int
40065main (void)
40066{
40067
40068
40069 ;
40070 return 0;
40071}
40072
40073_ACEOF
40074
40075
40076
40077cat - <<_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
42f7b73b 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'
cae5b340 40087 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
87dac73d
AX
40088 (eval $ac_try) 2>&5
40089 ac_status=$?
cae5b340
AX
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
87dac73d
AX
40093 (eval $ac_try) 2>&5
40094 ac_status=$?
cae5b340
AX
40095 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
40096 (exit $ac_status); }; }; then
87dac73d 40097
42f7b73b 40098 { $as_echo "$as_me:$LINENO: result: yes" >&5
87dac73d
AX
40099$as_echo "yes" >&6; }
40100
cae5b340 40101cat >>confdefs.h <<\_ACEOF
42f7b73b
AX
40102#define HAVE_PERMISSION 1
40103_ACEOF
40104
40105
40106cat >>confdefs.h <<\_ACEOF
40107#define HAVE_PERMISSION_WITH_NAMEIDATA 1
cae5b340 40108_ACEOF
ea04106b
AX
40109
40110
40111else
40112 $as_echo "$as_me: failed program was:" >&5
40113sed 's/^/| /' conftest.$ac_ext >&5
40114
42f7b73b
AX
40115 { $as_echo "$as_me:$LINENO: result: no" >&5
40116$as_echo "no" >&6; }
ea04106b 40117
4d815aed
AX
40118
40119
40120fi
cae5b340 40121
4d815aed
AX
40122 rm -Rf build
40123
40124
40125
40126
42f7b73b
AX
40127 { $as_echo "$as_me:$LINENO: checking whether iops->check_acl() exists" >&5
40128$as_echo_n "checking whether iops->check_acl() exists... " >&6; }
4d815aed
AX
40129
40130
ea04106b 40131cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
40132/* confdefs.h. */
40133_ACEOF
40134cat confdefs.h >>conftest.$ac_ext
40135cat >>conftest.$ac_ext <<_ACEOF
40136/* end confdefs.h. */
ea04106b
AX
40137
40138
68d83c55 40139 #include <linux/fs.h>
ea04106b 40140
42f7b73b
AX
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
ea04106b
AX
40148int
40149main (void)
40150{
40151
ea04106b
AX
40152
40153 ;
40154 return 0;
40155}
40156
40157_ACEOF
40158
40159
40160
40161cat - <<_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
42f7b73b 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'
cae5b340 40171 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
40172 (eval $ac_try) 2>&5
40173 ac_status=$?
cae5b340
AX
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
ea04106b
AX
40177 (eval $ac_try) 2>&5
40178 ac_status=$?
cae5b340
AX
40179 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
40180 (exit $ac_status); }; }; then
ea04106b 40181
cae5b340 40182 { $as_echo "$as_me:$LINENO: result: yes" >&5
ea04106b
AX
40183$as_echo "yes" >&6; }
40184
cae5b340 40185cat >>confdefs.h <<\_ACEOF
42f7b73b 40186#define HAVE_CHECK_ACL 1
cae5b340 40187_ACEOF
ea04106b
AX
40188
40189
4d815aed
AX
40190else
40191 $as_echo "$as_me: failed program was:" >&5
40192sed 's/^/| /' conftest.$ac_ext >&5
ea04106b 40193
cae5b340 40194 { $as_echo "$as_me:$LINENO: result: no" >&5
4d815aed 40195$as_echo "no" >&6; }
42f7b73b
AX
40196
40197
40198
40199fi
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; }
ea04106b
AX
40208
40209
40210cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
40211/* confdefs.h. */
40212_ACEOF
40213cat confdefs.h >>conftest.$ac_ext
40214cat >>conftest.$ac_ext <<_ACEOF
40215/* end confdefs.h. */
ea04106b
AX
40216
40217
42f7b73b
AX
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 };
ea04106b
AX
40227
40228int
40229main (void)
40230{
40231
ea04106b
AX
40232
40233 ;
40234 return 0;
40235}
40236
40237_ACEOF
40238
40239
40240
40241cat - <<_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
42f7b73b 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'
cae5b340 40251 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
40252 (eval $ac_try) 2>&5
40253 ac_status=$?
cae5b340
AX
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
ea04106b
AX
40257 (eval $ac_try) 2>&5
40258 ac_status=$?
cae5b340
AX
40259 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
40260 (exit $ac_status); }; }; then
ea04106b 40261
42f7b73b 40262 { $as_echo "$as_me:$LINENO: result: yes" >&5
ea04106b
AX
40263$as_echo "yes" >&6; }
40264
cae5b340 40265cat >>confdefs.h <<\_ACEOF
42f7b73b
AX
40266#define HAVE_CHECK_ACL 1
40267_ACEOF
40268
40269
40270cat >>confdefs.h <<\_ACEOF
40271#define HAVE_CHECK_ACL_WITH_FLAGS 1
cae5b340 40272_ACEOF
ea04106b
AX
40273
40274
40275else
40276 $as_echo "$as_me: failed program was:" >&5
40277sed 's/^/| /' conftest.$ac_ext >&5
40278
42f7b73b
AX
40279 { $as_echo "$as_me:$LINENO: result: no" >&5
40280$as_echo "no" >&6; }
68d83c55
AX
40281
40282
40283
40284fi
cae5b340 40285
68d83c55
AX
40286 rm -Rf build
40287
40288
40289
40290
42f7b73b
AX
40291 { $as_echo "$as_me:$LINENO: checking whether iops->get_acl() exists" >&5
40292$as_echo_n "checking whether iops->get_acl() exists... " >&6; }
68d83c55
AX
40293
40294
40295cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
40296/* confdefs.h. */
40297_ACEOF
40298cat confdefs.h >>conftest.$ac_ext
40299cat >>conftest.$ac_ext <<_ACEOF
40300/* end confdefs.h. */
68d83c55
AX
40301
40302
68d83c55 40303 #include <linux/fs.h>
42f7b73b
AX
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 };
ea04106b
AX
40312
40313int
40314main (void)
40315{
40316
ea04106b
AX
40317
40318 ;
40319 return 0;
40320}
40321
40322_ACEOF
40323
40324
40325
40326cat - <<_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
42f7b73b 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'
cae5b340 40336 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
40337 (eval $ac_try) 2>&5
40338 ac_status=$?
cae5b340
AX
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
ea04106b
AX
40342 (eval $ac_try) 2>&5
40343 ac_status=$?
cae5b340
AX
40344 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
40345 (exit $ac_status); }; }; then
ea04106b 40346
cae5b340 40347 { $as_echo "$as_me:$LINENO: result: yes" >&5
ea04106b
AX
40348$as_echo "yes" >&6; }
40349
cae5b340 40350cat >>confdefs.h <<\_ACEOF
42f7b73b 40351#define HAVE_GET_ACL 1
cae5b340 40352_ACEOF
ea04106b
AX
40353
40354
40355else
40356 $as_echo "$as_me: failed program was:" >&5
40357sed 's/^/| /' conftest.$ac_ext >&5
40358
cae5b340 40359 { $as_echo "$as_me:$LINENO: result: no" >&5
ea04106b 40360$as_echo "no" >&6; }
ea04106b
AX
40361
40362
ea04106b 40363
68d83c55 40364fi
cae5b340 40365
68d83c55 40366 rm -Rf build
ea04106b 40367
e10b0808 40368
68d83c55
AX
40369
40370
42f7b73b
AX
40371 { $as_echo "$as_me:$LINENO: checking whether iops->set_acl() exists" >&5
40372$as_echo_n "checking whether iops->set_acl() exists... " >&6; }
68d83c55
AX
40373
40374
40375cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
40376/* confdefs.h. */
40377_ACEOF
40378cat confdefs.h >>conftest.$ac_ext
40379cat >>conftest.$ac_ext <<_ACEOF
40380/* end confdefs.h. */
68d83c55
AX
40381
40382
68d83c55 40383 #include <linux/fs.h>
42f7b73b
AX
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 };
ea04106b
AX
40392
40393int
40394main (void)
40395{
40396
ea04106b
AX
40397
40398 ;
40399 return 0;
40400}
40401
40402_ACEOF
40403
40404
40405
40406cat - <<_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
42f7b73b 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'
cae5b340 40416 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
40417 (eval $ac_try) 2>&5
40418 ac_status=$?
cae5b340
AX
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
ea04106b
AX
40422 (eval $ac_try) 2>&5
40423 ac_status=$?
cae5b340
AX
40424 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
40425 (exit $ac_status); }; }; then
ea04106b 40426
cae5b340 40427 { $as_echo "$as_me:$LINENO: result: yes" >&5
ea04106b
AX
40428$as_echo "yes" >&6; }
40429
cae5b340 40430cat >>confdefs.h <<\_ACEOF
42f7b73b 40431#define HAVE_SET_ACL 1
cae5b340 40432_ACEOF
4d815aed
AX
40433
40434
42f7b73b
AX
40435else
40436 $as_echo "$as_me: failed program was:" >&5
40437sed 's/^/| /' conftest.$ac_ext >&5
40438
40439 { $as_echo "$as_me:$LINENO: result: no" >&5
40440$as_echo "no" >&6; }
40441
40442
40443
40444fi
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; }
4d815aed
AX
40454
40455
40456cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
40457/* confdefs.h. */
40458_ACEOF
40459cat confdefs.h >>conftest.$ac_ext
40460cat >>conftest.$ac_ext <<_ACEOF
40461/* end confdefs.h. */
4d815aed
AX
40462
40463
42f7b73b 40464 #include <linux/fs.h>
68d83c55 40465
42f7b73b
AX
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 };
94a40997
AX
40475
40476int
40477main (void)
40478{
40479
40480
40481 ;
40482 return 0;
40483}
40484
40485_ACEOF
40486
40487
40488
40489cat - <<_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
42f7b73b 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'
cae5b340 40499 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
94a40997
AX
40500 (eval $ac_try) 2>&5
40501 ac_status=$?
cae5b340
AX
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
94a40997
AX
40505 (eval $ac_try) 2>&5
40506 ac_status=$?
cae5b340
AX
40507 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
40508 (exit $ac_status); }; }; then
94a40997 40509
42f7b73b 40510 { $as_echo "$as_me:$LINENO: result: yes" >&5
68d83c55 40511$as_echo "yes" >&6; }
4d815aed 40512
cae5b340 40513cat >>confdefs.h <<\_ACEOF
42f7b73b 40514#define HAVE_PATH_IOPS_GETATTR 1
cae5b340 40515_ACEOF
4d815aed
AX
40516
40517
cae5b340
AX
40518else
40519 $as_echo "$as_me: failed program was:" >&5
40520sed 's/^/| /' conftest.$ac_ext >&5
40521
40522 { $as_echo "$as_me:$LINENO: result: no" >&5
40523$as_echo "no" >&6; }
40524
40525
40526
40527fi
40528
40529 rm -Rf build
40530
4d815aed 40531
cae5b340
AX
40532
40533
42f7b73b
AX
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; }
4d815aed
AX
40536
40537
40538cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
40539/* confdefs.h. */
40540_ACEOF
40541cat confdefs.h >>conftest.$ac_ext
40542cat >>conftest.$ac_ext <<_ACEOF
40543/* end confdefs.h. */
4d815aed
AX
40544
40545
4d815aed 40546 #include <linux/fs.h>
68d83c55 40547
42f7b73b
AX
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 };
94a40997
AX
40557
40558int
40559main (void)
40560{
40561
40562
40563 ;
40564 return 0;
40565}
40566
40567_ACEOF
40568
40569
40570
40571cat - <<_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
42f7b73b 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'
cae5b340 40581 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
94a40997
AX
40582 (eval $ac_try) 2>&5
40583 ac_status=$?
cae5b340
AX
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
94a40997
AX
40587 (eval $ac_try) 2>&5
40588 ac_status=$?
cae5b340
AX
40589 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
40590 (exit $ac_status); }; }; then
94a40997 40591
cae5b340 40592 { $as_echo "$as_me:$LINENO: result: yes" >&5
94a40997
AX
40593$as_echo "yes" >&6; }
40594
cae5b340 40595cat >>confdefs.h <<\_ACEOF
42f7b73b 40596#define HAVE_VFSMOUNT_IOPS_GETATTR 1
cae5b340 40597_ACEOF
94a40997
AX
40598
40599
40600else
40601 $as_echo "$as_me: failed program was:" >&5
40602sed 's/^/| /' conftest.$ac_ext >&5
40603
cae5b340 40604 { $as_echo "$as_me:$LINENO: result: no" >&5
94a40997
AX
40605$as_echo "no" >&6; }
40606
40607
40608
40609fi
cae5b340 40610
94a40997
AX
40611 rm -Rf build
40612
40613
ea04106b
AX
40614
40615
42f7b73b
AX
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; }
ea04106b
AX
40619
40620
40621cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
40622/* confdefs.h. */
40623_ACEOF
40624cat confdefs.h >>conftest.$ac_ext
40625cat >>conftest.$ac_ext <<_ACEOF
40626/* end confdefs.h. */
ea04106b
AX
40627
40628
4d815aed 40629 #include <linux/fs.h>
ea04106b
AX
40630
40631int
40632main (void)
40633{
40634
42f7b73b
AX
40635 struct inode inode;
40636 inode_set_flags(&inode, S_IMMUTABLE, S_IMMUTABLE);
ea04106b
AX
40637
40638 ;
40639 return 0;
40640}
40641
40642_ACEOF
40643
40644
40645
40646cat - <<_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
42f7b73b 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'
cae5b340 40656 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
40657 (eval $ac_try) 2>&5
40658 ac_status=$?
cae5b340
AX
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
ea04106b
AX
40662 (eval $ac_try) 2>&5
40663 ac_status=$?
cae5b340
AX
40664 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
40665 (exit $ac_status); }; }; then
ea04106b 40666
cae5b340 40667 { $as_echo "$as_me:$LINENO: result: yes" >&5
ea04106b
AX
40668$as_echo "yes" >&6; }
40669
cae5b340 40670cat >>confdefs.h <<\_ACEOF
42f7b73b 40671#define HAVE_INODE_SET_FLAGS 1
cae5b340 40672_ACEOF
ea04106b
AX
40673
40674
40675else
40676 $as_echo "$as_me: failed program was:" >&5
40677sed 's/^/| /' conftest.$ac_ext >&5
40678
cae5b340 40679 { $as_echo "$as_me:$LINENO: result: no" >&5
ea04106b 40680$as_echo "no" >&6; }
4d815aed
AX
40681
40682
40683
40684fi
cae5b340 40685
4d815aed
AX
40686 rm -Rf build
40687
40688
40689
42f7b73b
AX
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; }
ea04106b
AX
40693
40694
40695cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
40696/* confdefs.h. */
40697_ACEOF
40698cat confdefs.h >>conftest.$ac_ext
40699cat >>conftest.$ac_ext <<_ACEOF
40700/* end confdefs.h. */
ea04106b
AX
40701
40702
42f7b73b 40703 #include <linux/iversion.h>
ea04106b
AX
40704
40705int
40706main (void)
40707{
40708
42f7b73b
AX
40709 struct inode inode;
40710 inode_set_iversion(&inode, 1);
ea04106b
AX
40711
40712 ;
40713 return 0;
40714}
40715
40716_ACEOF
40717
40718
40719
40720cat - <<_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
42f7b73b 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'
cae5b340 40730 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
40731 (eval $ac_try) 2>&5
40732 ac_status=$?
cae5b340
AX
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
ea04106b
AX
40736 (eval $ac_try) 2>&5
40737 ac_status=$?
cae5b340
AX
40738 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
40739 (exit $ac_status); }; }; then
ea04106b 40740
cae5b340 40741 { $as_echo "$as_me:$LINENO: result: yes" >&5
ea04106b
AX
40742$as_echo "yes" >&6; }
40743
cae5b340 40744cat >>confdefs.h <<\_ACEOF
42f7b73b 40745#define HAVE_INODE_SET_IVERSION 1
cae5b340 40746_ACEOF
ea04106b
AX
40747
40748
40749else
40750 $as_echo "$as_me: failed program was:" >&5
40751sed 's/^/| /' conftest.$ac_ext >&5
40752
cae5b340 40753 { $as_echo "$as_me:$LINENO: result: no" >&5
ea04106b 40754$as_echo "no" >&6; }
4d815aed
AX
40755
40756
40757
40758fi
cae5b340 40759
4d815aed
AX
40760 rm -Rf build
40761
40762
40763
68d83c55 40764
42f7b73b
AX
40765 { $as_echo "$as_me:$LINENO: checking whether uncached_acl_sentinel() exists" >&5
40766$as_echo_n "checking whether uncached_acl_sentinel() exists... " >&6; }
ea04106b
AX
40767
40768
40769cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
40770/* confdefs.h. */
40771_ACEOF
40772cat confdefs.h >>conftest.$ac_ext
40773cat >>conftest.$ac_ext <<_ACEOF
40774/* end confdefs.h. */
ea04106b
AX
40775
40776
4d815aed 40777 #include <linux/fs.h>
ea04106b
AX
40778
40779int
40780main (void)
40781{
40782
42f7b73b 40783 void *sentinel __attribute__ ((unused)) = uncached_acl_sentinel(NULL);
ea04106b
AX
40784
40785 ;
40786 return 0;
40787}
40788
40789_ACEOF
40790
40791
40792
40793cat - <<_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
42f7b73b 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'
cae5b340 40803 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
40804 (eval $ac_try) 2>&5
40805 ac_status=$?
cae5b340
AX
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
ea04106b
AX
40809 (eval $ac_try) 2>&5
40810 ac_status=$?
cae5b340
AX
40811 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
40812 (exit $ac_status); }; }; then
ea04106b 40813
cae5b340 40814 { $as_echo "$as_me:$LINENO: result: yes" >&5
ea04106b
AX
40815$as_echo "yes" >&6; }
40816
cae5b340 40817cat >>confdefs.h <<\_ACEOF
42f7b73b 40818#define HAVE_KERNEL_GET_ACL_HANDLE_CACHE 1
cae5b340 40819_ACEOF
ea04106b
AX
40820
40821
40822else
40823 $as_echo "$as_me: failed program was:" >&5
40824sed 's/^/| /' conftest.$ac_ext >&5
40825
cae5b340 40826 { $as_echo "$as_me:$LINENO: result: no" >&5
4d815aed 40827$as_echo "no" >&6; }
ea04106b
AX
40828
40829
ea04106b 40830
e10b0808 40831fi
cae5b340 40832
e10b0808 40833 rm -Rf build
ea04106b 40834
ea04106b
AX
40835
40836
ea04106b 40837
42f7b73b
AX
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
e10b0808
AX
40841
40842
40843cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
40844/* confdefs.h. */
40845_ACEOF
40846cat confdefs.h >>conftest.$ac_ext
40847cat >>conftest.$ac_ext <<_ACEOF
40848/* end confdefs.h. */
e10b0808
AX
40849
40850
e10b0808 40851 #include <linux/fs.h>
42f7b73b
AX
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 };
ea04106b
AX
40857
40858int
40859main (void)
40860{
40861
40862
40863 ;
40864 return 0;
40865}
40866
40867_ACEOF
40868
40869
40870
40871cat - <<_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
42f7b73b 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'
cae5b340 40881 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
40882 (eval $ac_try) 2>&5
40883 ac_status=$?
cae5b340
AX
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
ea04106b
AX
40887 (eval $ac_try) 2>&5
40888 ac_status=$?
cae5b340
AX
40889 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
40890 (exit $ac_status); }; }; then
ea04106b 40891
cae5b340 40892 { $as_echo "$as_me:$LINENO: result: yes" >&5
ea04106b
AX
40893$as_echo "yes" >&6; }
40894
cae5b340 40895cat >>confdefs.h <<\_ACEOF
42f7b73b 40896#define HAVE_SHOW_OPTIONS_WITH_DENTRY 1
cae5b340 40897_ACEOF
ea04106b
AX
40898
40899
40900else
40901 $as_echo "$as_me: failed program was:" >&5
40902sed 's/^/| /' conftest.$ac_ext >&5
40903
cae5b340 40904 { $as_echo "$as_me:$LINENO: result: no" >&5
ea04106b
AX
40905$as_echo "no" >&6; }
40906
40907
40908
40909fi
cae5b340 40910
ea04106b
AX
40911 rm -Rf build
40912
40913
40914
40915
42f7b73b
AX
40916 { $as_echo "$as_me:$LINENO: checking whether file_inode() is available" >&5
40917$as_echo_n "checking whether file_inode() is available... " >&6; }
ea04106b
AX
40918
40919
40920cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
40921/* confdefs.h. */
40922_ACEOF
40923cat confdefs.h >>conftest.$ac_ext
40924cat >>conftest.$ac_ext <<_ACEOF
40925/* end confdefs.h. */
ea04106b
AX
40926
40927
e10b0808 40928 #include <linux/fs.h>
68d83c55 40929
ea04106b
AX
40930int
40931main (void)
40932{
40933
42f7b73b
AX
40934 struct file *f = NULL;
40935 file_inode(f);
ea04106b
AX
40936
40937 ;
40938 return 0;
40939}
40940
40941_ACEOF
40942
40943
40944
40945cat - <<_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
42f7b73b 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'
cae5b340 40955 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
40956 (eval $ac_try) 2>&5
40957 ac_status=$?
cae5b340
AX
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
ea04106b
AX
40961 (eval $ac_try) 2>&5
40962 ac_status=$?
cae5b340
AX
40963 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
40964 (exit $ac_status); }; }; then
ea04106b 40965
cae5b340 40966 { $as_echo "$as_me:$LINENO: result: yes" >&5
ea04106b
AX
40967$as_echo "yes" >&6; }
40968
cae5b340 40969cat >>confdefs.h <<\_ACEOF
42f7b73b 40970#define HAVE_FILE_INODE 1
cae5b340 40971_ACEOF
ea04106b
AX
40972
40973
40974else
40975 $as_echo "$as_me: failed program was:" >&5
40976sed 's/^/| /' conftest.$ac_ext >&5
40977
cae5b340 40978 { $as_echo "$as_me:$LINENO: result: no" >&5
ea04106b
AX
40979$as_echo "no" >&6; }
40980
40981
40982
40983fi
cae5b340 40984
ea04106b
AX
40985 rm -Rf build
40986
40987
40988
4d815aed 40989
42f7b73b
AX
40990 { $as_echo "$as_me:$LINENO: checking whether file_dentry() is available" >&5
40991$as_echo_n "checking whether file_dentry() is available... " >&6; }
ea04106b
AX
40992
40993
40994cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
40995/* confdefs.h. */
40996_ACEOF
40997cat confdefs.h >>conftest.$ac_ext
40998cat >>conftest.$ac_ext <<_ACEOF
40999/* end confdefs.h. */
ea04106b
AX
41000
41001
41002 #include <linux/fs.h>
e10b0808 41003
ea04106b
AX
41004int
41005main (void)
41006{
41007
42f7b73b
AX
41008 struct file *f = NULL;
41009 file_dentry(f);
ea04106b
AX
41010
41011 ;
41012 return 0;
41013}
41014
41015_ACEOF
41016
41017
41018
41019cat - <<_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
42f7b73b 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'
cae5b340 41029 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
41030 (eval $ac_try) 2>&5
41031 ac_status=$?
cae5b340
AX
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
ea04106b
AX
41035 (eval $ac_try) 2>&5
41036 ac_status=$?
cae5b340
AX
41037 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
41038 (exit $ac_status); }; }; then
ea04106b 41039
cae5b340 41040 { $as_echo "$as_me:$LINENO: result: yes" >&5
4d815aed
AX
41041$as_echo "yes" >&6; }
41042
cae5b340 41043cat >>confdefs.h <<\_ACEOF
42f7b73b 41044#define HAVE_FILE_DENTRY 1
cae5b340 41045_ACEOF
68d83c55
AX
41046
41047
e10b0808
AX
41048else
41049 $as_echo "$as_me: failed program was:" >&5
41050sed 's/^/| /' conftest.$ac_ext >&5
41051
cae5b340 41052 { $as_echo "$as_me:$LINENO: result: no" >&5
4d815aed 41053$as_echo "no" >&6; }
ea04106b 41054
ea04106b 41055
e10b0808
AX
41056
41057fi
cae5b340 41058
e10b0808
AX
41059 rm -Rf build
41060
41061
41062
41063
42f7b73b
AX
41064 { $as_echo "$as_me:$LINENO: checking whether fops->fsync() wants" >&5
41065$as_echo_n "checking whether fops->fsync() wants... " >&6; }
41066
ea04106b
AX
41067
41068
41069cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
41070/* confdefs.h. */
41071_ACEOF
41072cat confdefs.h >>conftest.$ac_ext
41073cat >>conftest.$ac_ext <<_ACEOF
41074/* end confdefs.h. */
ea04106b
AX
41075
41076
e10b0808 41077 #include <linux/fs.h>
4d815aed 41078
42f7b73b
AX
41079 int test_fsync(struct file *f, struct dentry *dentry, int x)
41080 { return 0; }
4d815aed 41081
42f7b73b
AX
41082 static const struct file_operations
41083 fops __attribute__ ((unused)) = {
41084 .fsync = test_fsync,
4d815aed 41085 };
ea04106b
AX
41086
41087int
41088main (void)
41089{
41090
ea04106b
AX
41091
41092 ;
41093 return 0;
41094}
41095
41096_ACEOF
41097
41098
41099
41100cat - <<_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
42f7b73b 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'
cae5b340 41110 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
41111 (eval $ac_try) 2>&5
41112 ac_status=$?
cae5b340
AX
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
ea04106b
AX
41116 (eval $ac_try) 2>&5
41117 ac_status=$?
cae5b340
AX
41118 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
41119 (exit $ac_status); }; }; then
ea04106b 41120
42f7b73b
AX
41121 { $as_echo "$as_me:$LINENO: result: dentry" >&5
41122$as_echo "dentry" >&6; }
ea04106b 41123
cae5b340 41124cat >>confdefs.h <<\_ACEOF
42f7b73b 41125#define HAVE_FSYNC_WITH_DENTRY 1
cae5b340 41126_ACEOF
ea04106b
AX
41127
41128
41129else
41130 $as_echo "$as_me: failed program was:" >&5
41131sed 's/^/| /' conftest.$ac_ext >&5
41132
ea04106b
AX
41133
41134
41135
41136fi
cae5b340 41137
ea04106b
AX
41138 rm -Rf build
41139
41140
41141
4d815aed 41142
ea04106b
AX
41143
41144
41145cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
41146/* confdefs.h. */
41147_ACEOF
41148cat confdefs.h >>conftest.$ac_ext
41149cat >>conftest.$ac_ext <<_ACEOF
41150/* end confdefs.h. */
ea04106b
AX
41151
41152
ea04106b 41153 #include <linux/fs.h>
4d815aed 41154
42f7b73b 41155 int test_fsync(struct file *f, int x) { return 0; }
4d815aed 41156
42f7b73b
AX
41157 static const struct file_operations
41158 fops __attribute__ ((unused)) = {
41159 .fsync = test_fsync,
4d815aed 41160 };
ea04106b
AX
41161
41162int
41163main (void)
41164{
41165
ea04106b
AX
41166
41167 ;
41168 return 0;
41169}
41170
41171_ACEOF
41172
41173
41174
41175cat - <<_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
42f7b73b 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'
cae5b340 41185 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
41186 (eval $ac_try) 2>&5
41187 ac_status=$?
cae5b340
AX
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
ea04106b
AX
41191 (eval $ac_try) 2>&5
41192 ac_status=$?
cae5b340
AX
41193 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
41194 (exit $ac_status); }; }; then
ea04106b 41195
42f7b73b
AX
41196 { $as_echo "$as_me:$LINENO: result: no dentry" >&5
41197$as_echo "no dentry" >&6; }
ea04106b 41198
cae5b340 41199cat >>confdefs.h <<\_ACEOF
42f7b73b 41200#define HAVE_FSYNC_WITHOUT_DENTRY 1
cae5b340 41201_ACEOF
68d83c55
AX
41202
41203
ea04106b
AX
41204else
41205 $as_echo "$as_me: failed program was:" >&5
41206sed 's/^/| /' conftest.$ac_ext >&5
41207
ea04106b
AX
41208
41209
41210
41211fi
cae5b340 41212
ea04106b
AX
41213 rm -Rf build
41214
41215
41216
41217
ea04106b
AX
41218
41219
41220cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
41221/* confdefs.h. */
41222_ACEOF
41223cat confdefs.h >>conftest.$ac_ext
41224cat >>conftest.$ac_ext <<_ACEOF
41225/* end confdefs.h. */
ea04106b
AX
41226
41227
ea04106b 41228 #include <linux/fs.h>
ea04106b 41229
42f7b73b
AX
41230 int test_fsync(struct file *f, loff_t a, loff_t b, int c)
41231 { return 0; }
4d815aed 41232
42f7b73b
AX
41233 static const struct file_operations
41234 fops __attribute__ ((unused)) = {
41235 .fsync = test_fsync,
4d815aed
AX
41236 };
41237
ea04106b
AX
41238int
41239main (void)
41240{
41241
ea04106b
AX
41242
41243 ;
41244 return 0;
41245}
41246
41247_ACEOF
41248
41249
41250
41251cat - <<_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
42f7b73b 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'
cae5b340 41261 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
41262 (eval $ac_try) 2>&5
41263 ac_status=$?
cae5b340
AX
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
ea04106b
AX
41267 (eval $ac_try) 2>&5
41268 ac_status=$?
cae5b340
AX
41269 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
41270 (exit $ac_status); }; }; then
ea04106b 41271
42f7b73b
AX
41272 { $as_echo "$as_me:$LINENO: result: range" >&5
41273$as_echo "range" >&6; }
ea04106b 41274
cae5b340 41275cat >>confdefs.h <<\_ACEOF
42f7b73b 41276#define HAVE_FSYNC_RANGE 1
cae5b340 41277_ACEOF
ea04106b
AX
41278
41279
41280else
41281 $as_echo "$as_me: failed program was:" >&5
41282sed 's/^/| /' conftest.$ac_ext >&5
41283
ea04106b
AX
41284
41285
41286
41287fi
cae5b340 41288
ea04106b
AX
41289 rm -Rf build
41290
41291
41292
e10b0808 41293
42f7b73b
AX
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; }
ea04106b
AX
41297
41298
41299cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
41300/* confdefs.h. */
41301_ACEOF
41302cat confdefs.h >>conftest.$ac_ext
41303cat >>conftest.$ac_ext <<_ACEOF
41304/* end confdefs.h. */
ea04106b
AX
41305
41306
ea04106b 41307 #include <linux/fs.h>
42f7b73b
AX
41308 void evict_inode (struct inode * t) { return; }
41309 static struct super_operations sops __attribute__ ((unused)) = {
41310 .evict_inode = evict_inode,
4d815aed 41311 };
ea04106b 41312
ea04106b
AX
41313int
41314main (void)
41315{
41316
ea04106b
AX
41317
41318 ;
41319 return 0;
41320}
41321
41322_ACEOF
41323
41324
41325
41326cat - <<_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
42f7b73b 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'
cae5b340 41336 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
41337 (eval $ac_try) 2>&5
41338 ac_status=$?
cae5b340
AX
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
ea04106b
AX
41342 (eval $ac_try) 2>&5
41343 ac_status=$?
cae5b340
AX
41344 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
41345 (exit $ac_status); }; }; then
ea04106b 41346
cae5b340 41347 { $as_echo "$as_me:$LINENO: result: yes" >&5
e10b0808
AX
41348$as_echo "yes" >&6; }
41349
cae5b340 41350cat >>confdefs.h <<\_ACEOF
42f7b73b 41351#define HAVE_EVICT_INODE 1
cae5b340 41352_ACEOF
e10b0808 41353
ea04106b
AX
41354
41355else
41356 $as_echo "$as_me: failed program was:" >&5
41357sed 's/^/| /' conftest.$ac_ext >&5
41358
cae5b340 41359 { $as_echo "$as_me:$LINENO: result: no" >&5
e10b0808 41360$as_echo "no" >&6; }
ea04106b
AX
41361
41362
41363
41364fi
cae5b340 41365
ea04106b
AX
41366 rm -Rf build
41367
41368
41369
41370
42f7b73b
AX
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; }
ea04106b
AX
41373
41374
41375cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
41376/* confdefs.h. */
41377_ACEOF
41378cat confdefs.h >>conftest.$ac_ext
41379cat >>conftest.$ac_ext <<_ACEOF
41380/* end confdefs.h. */
ea04106b
AX
41381
41382
41383 #include <linux/fs.h>
e10b0808 41384
42f7b73b 41385 void dirty_inode(struct inode *a, int b) { return; }
22929307 41386
42f7b73b
AX
41387 static const struct super_operations
41388 sops __attribute__ ((unused)) = {
41389 .dirty_inode = dirty_inode,
22929307
AX
41390 };
41391
ea04106b
AX
41392int
41393main (void)
41394{
41395
ea04106b
AX
41396
41397 ;
41398 return 0;
41399}
41400
41401_ACEOF
41402
41403
41404
41405cat - <<_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
42f7b73b 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'
cae5b340 41415 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
41416 (eval $ac_try) 2>&5
41417 ac_status=$?
cae5b340
AX
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
ea04106b
AX
41421 (eval $ac_try) 2>&5
41422 ac_status=$?
cae5b340
AX
41423 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
41424 (exit $ac_status); }; }; then
ea04106b 41425
cae5b340 41426 { $as_echo "$as_me:$LINENO: result: yes" >&5
ea04106b
AX
41427$as_echo "yes" >&6; }
41428
cae5b340 41429cat >>confdefs.h <<\_ACEOF
42f7b73b 41430#define HAVE_DIRTY_INODE_WITH_FLAGS 1
cae5b340 41431_ACEOF
ea04106b
AX
41432
41433
41434else
41435 $as_echo "$as_me: failed program was:" >&5
41436sed 's/^/| /' conftest.$ac_ext >&5
41437
cae5b340 41438 { $as_echo "$as_me:$LINENO: result: no" >&5
ea04106b
AX
41439$as_echo "no" >&6; }
41440
41441
41442
41443fi
cae5b340 41444
ea04106b
AX
41445 rm -Rf build
41446
41447
41448
e10b0808 41449
42f7b73b
AX
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; }
ea04106b
AX
41452
41453
41454cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
41455/* confdefs.h. */
41456_ACEOF
41457cat confdefs.h >>conftest.$ac_ext
41458cat >>conftest.$ac_ext <<_ACEOF
41459/* end confdefs.h. */
ea04106b
AX
41460
41461
41462 #include <linux/fs.h>
e10b0808 41463
42f7b73b 41464 int nr_cached_objects(struct super_block *sb) { return 0; }
22929307 41465
42f7b73b
AX
41466 static const struct super_operations
41467 sops __attribute__ ((unused)) = {
41468 .nr_cached_objects = nr_cached_objects,
e10b0808 41469 };
ea04106b
AX
41470
41471int
41472main (void)
41473{
41474
ea04106b
AX
41475
41476 ;
41477 return 0;
41478}
41479
41480_ACEOF
41481
41482
41483
41484cat - <<_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
42f7b73b 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'
cae5b340 41494 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
41495 (eval $ac_try) 2>&5
41496 ac_status=$?
cae5b340
AX
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
ea04106b
AX
41500 (eval $ac_try) 2>&5
41501 ac_status=$?
cae5b340
AX
41502 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
41503 (exit $ac_status); }; }; then
ea04106b 41504
cae5b340 41505 { $as_echo "$as_me:$LINENO: result: yes" >&5
e10b0808
AX
41506$as_echo "yes" >&6; }
41507
cae5b340 41508cat >>confdefs.h <<\_ACEOF
42f7b73b 41509#define HAVE_NR_CACHED_OBJECTS 1
cae5b340 41510_ACEOF
ea04106b
AX
41511
41512
41513else
41514 $as_echo "$as_me: failed program was:" >&5
41515sed 's/^/| /' conftest.$ac_ext >&5
41516
cae5b340 41517 { $as_echo "$as_me:$LINENO: result: no" >&5
ea04106b
AX
41518$as_echo "no" >&6; }
41519
41520
41521
41522fi
cae5b340 41523
ea04106b
AX
41524 rm -Rf build
41525
41526
41527
41528
42f7b73b
AX
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; }
cae5b340
AX
41531
41532
41533cat confdefs.h - <<_ACEOF >conftest.c
41534/* confdefs.h. */
41535_ACEOF
41536cat confdefs.h >>conftest.$ac_ext
41537cat >>conftest.$ac_ext <<_ACEOF
41538/* end confdefs.h. */
41539
41540
41541 #include <linux/fs.h>
41542
42f7b73b
AX
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
cae5b340
AX
41551int
41552main (void)
41553{
41554
cae5b340
AX
41555
41556 ;
41557 return 0;
41558}
41559
41560_ACEOF
41561
41562
41563
41564cat - <<_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
42f7b73b 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'
cae5b340
AX
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
41588cat >>confdefs.h <<\_ACEOF
42f7b73b 41589#define HAVE_FREE_CACHED_OBJECTS 1
cae5b340
AX
41590_ACEOF
41591
41592
41593else
41594 $as_echo "$as_me: failed program was:" >&5
41595sed 's/^/| /' conftest.$ac_ext >&5
41596
41597 { $as_echo "$as_me:$LINENO: result: no" >&5
41598$as_echo "no" >&6; }
41599
41600
41601
41602fi
41603
41604 rm -Rf build
41605
41606
41607
41608
42f7b73b
AX
41609
41610 { $as_echo "$as_me:$LINENO: checking whether fops->fallocate() exists" >&5
41611$as_echo_n "checking whether fops->fallocate() exists... " >&6; }
ea04106b
AX
41612
41613
41614cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
41615/* confdefs.h. */
41616_ACEOF
41617cat confdefs.h >>conftest.$ac_ext
41618cat >>conftest.$ac_ext <<_ACEOF
41619/* end confdefs.h. */
ea04106b
AX
41620
41621
41622 #include <linux/fs.h>
41623
42f7b73b
AX
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
ea04106b
AX
41632int
41633main (void)
41634{
41635
ea04106b
AX
41636
41637 ;
41638 return 0;
41639}
41640
41641_ACEOF
41642
41643
41644
41645cat - <<_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
42f7b73b 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'
cae5b340 41655 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
41656 (eval $ac_try) 2>&5
41657 ac_status=$?
cae5b340
AX
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
ea04106b
AX
41661 (eval $ac_try) 2>&5
41662 ac_status=$?
cae5b340
AX
41663 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
41664 (exit $ac_status); }; }; then
ea04106b 41665
cae5b340 41666 { $as_echo "$as_me:$LINENO: result: yes" >&5
ea04106b
AX
41667$as_echo "yes" >&6; }
41668
cae5b340 41669cat >>confdefs.h <<\_ACEOF
42f7b73b 41670#define HAVE_FILE_FALLOCATE 1
cae5b340 41671_ACEOF
ea04106b
AX
41672
41673
41674else
41675 $as_echo "$as_me: failed program was:" >&5
41676sed 's/^/| /' conftest.$ac_ext >&5
41677
cae5b340 41678 { $as_echo "$as_me:$LINENO: result: no" >&5
ea04106b
AX
41679$as_echo "no" >&6; }
41680
41681
41682
41683fi
cae5b340 41684
ea04106b
AX
41685 rm -Rf build
41686
41687
41688
41689
42f7b73b
AX
41690 { $as_echo "$as_me:$LINENO: checking whether iops->fallocate() exists" >&5
41691$as_echo_n "checking whether iops->fallocate() exists... " >&6; }
ea04106b
AX
41692
41693
41694cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
41695/* confdefs.h. */
41696_ACEOF
41697cat confdefs.h >>conftest.$ac_ext
41698cat >>conftest.$ac_ext <<_ACEOF
41699/* end confdefs.h. */
ea04106b
AX
41700
41701
41702 #include <linux/fs.h>
e10b0808 41703
42f7b73b
AX
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,
e10b0808 41710 };
ea04106b
AX
41711
41712int
41713main (void)
41714{
41715
ea04106b
AX
41716
41717 ;
41718 return 0;
41719}
41720
41721_ACEOF
41722
41723
41724
41725cat - <<_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
42f7b73b 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'
cae5b340 41735 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
41736 (eval $ac_try) 2>&5
41737 ac_status=$?
cae5b340
AX
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
ea04106b
AX
41741 (eval $ac_try) 2>&5
41742 ac_status=$?
cae5b340
AX
41743 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
41744 (exit $ac_status); }; }; then
ea04106b 41745
cae5b340 41746 { $as_echo "$as_me:$LINENO: result: yes" >&5
22929307 41747$as_echo "yes" >&6; }
e10b0808 41748
cae5b340 41749cat >>confdefs.h <<\_ACEOF
42f7b73b 41750#define HAVE_INODE_FALLOCATE 1
cae5b340 41751_ACEOF
ea04106b
AX
41752
41753
41754else
41755 $as_echo "$as_me: failed program was:" >&5
41756sed 's/^/| /' conftest.$ac_ext >&5
41757
cae5b340 41758 { $as_echo "$as_me:$LINENO: result: no" >&5
22929307 41759$as_echo "no" >&6; }
ea04106b
AX
41760
41761
41762
41763fi
cae5b340 41764
ea04106b
AX
41765 rm -Rf build
41766
41767
41768
41769
42f7b73b
AX
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; }
ea04106b
AX
41773
41774
41775cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
41776/* confdefs.h. */
41777_ACEOF
41778cat confdefs.h >>conftest.$ac_ext
41779cat >>conftest.$ac_ext <<_ACEOF
41780/* end confdefs.h. */
ea04106b
AX
41781
41782
41783 #include <linux/fs.h>
41784
42f7b73b
AX
41785 static const struct file_operations
41786 fops __attribute__ ((unused)) = {
41787 .aio_fsync = NULL,
41788 };
41789
ea04106b
AX
41790int
41791main (void)
41792{
41793
41794
41795 ;
41796 return 0;
41797}
41798
41799_ACEOF
41800
41801
41802
41803cat - <<_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
42f7b73b 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'
cae5b340
AX
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
41827cat >>confdefs.h <<\_ACEOF
42f7b73b 41828#define HAVE_FILE_AIO_FSYNC 1
cae5b340
AX
41829_ACEOF
41830
41831
41832else
41833 $as_echo "$as_me: failed program was:" >&5
41834sed 's/^/| /' conftest.$ac_ext >&5
41835
41836 { $as_echo "$as_me:$LINENO: result: no" >&5
41837$as_echo "no" >&6; }
41838
41839
41840
41841fi
41842
41843 rm -Rf build
41844
41845
41846
41847
42f7b73b
AX
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; }
cae5b340
AX
41850
41851
41852cat confdefs.h - <<_ACEOF >conftest.c
41853/* confdefs.h. */
41854_ACEOF
41855cat confdefs.h >>conftest.$ac_ext
41856cat >>conftest.$ac_ext <<_ACEOF
41857/* end confdefs.h. */
41858
41859
41860 #include <linux/fs.h>
41861
42f7b73b
AX
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
cae5b340
AX
41870int
41871main (void)
41872{
41873
cae5b340
AX
41874
41875 ;
41876 return 0;
41877}
41878
41879_ACEOF
41880
41881
41882
41883cat - <<_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
42f7b73b 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'
cae5b340 41893 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
41894 (eval $ac_try) 2>&5
41895 ac_status=$?
cae5b340
AX
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
ea04106b
AX
41899 (eval $ac_try) 2>&5
41900 ac_status=$?
cae5b340
AX
41901 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
41902 (exit $ac_status); }; }; then
ea04106b 41903
cae5b340 41904 { $as_echo "$as_me:$LINENO: result: yes" >&5
22929307 41905$as_echo "yes" >&6; }
ea04106b 41906
cae5b340 41907cat >>confdefs.h <<\_ACEOF
42f7b73b 41908#define HAVE_MKDIR_UMODE_T 1
cae5b340 41909_ACEOF
ea04106b
AX
41910
41911
41912else
41913 $as_echo "$as_me: failed program was:" >&5
41914sed 's/^/| /' conftest.$ac_ext >&5
41915
cae5b340 41916 { $as_echo "$as_me:$LINENO: result: no" >&5
22929307 41917$as_echo "no" >&6; }
ea04106b
AX
41918
41919
41920
41921fi
cae5b340 41922
ea04106b
AX
41923 rm -Rf build
41924
41925
41926
41927
42f7b73b
AX
41928 { $as_echo "$as_me:$LINENO: checking whether iops->lookup() passes nameidata" >&5
41929$as_echo_n "checking whether iops->lookup() passes nameidata... " >&6; }
ea04106b
AX
41930
41931
41932cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
41933/* confdefs.h. */
41934_ACEOF
41935cat confdefs.h >>conftest.$ac_ext
41936cat >>conftest.$ac_ext <<_ACEOF
41937/* end confdefs.h. */
ea04106b
AX
41938
41939
41940 #include <linux/fs.h>
42f7b73b 41941 #include <linux/sched.h>
ea04106b 41942
42f7b73b
AX
41943 struct dentry *inode_lookup(struct inode *inode,
41944 struct dentry *dentry, struct nameidata *nidata)
41945 { return NULL; }
4d815aed 41946
42f7b73b
AX
41947 static const struct inode_operations iops
41948 __attribute__ ((unused)) = {
41949 .lookup = inode_lookup,
4d815aed
AX
41950 };
41951
ea04106b
AX
41952int
41953main (void)
41954{
41955
41956
41957 ;
41958 return 0;
41959}
41960
41961_ACEOF
41962
41963
41964
41965cat - <<_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
42f7b73b 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'
cae5b340 41975 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
41976 (eval $ac_try) 2>&5
41977 ac_status=$?
cae5b340
AX
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
ea04106b
AX
41981 (eval $ac_try) 2>&5
41982 ac_status=$?
cae5b340
AX
41983 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
41984 (exit $ac_status); }; }; then
ea04106b 41985
42f7b73b
AX
41986 { $as_echo "$as_me:$LINENO: result: yes" >&5
41987$as_echo "yes" >&6; }
ea04106b 41988
cae5b340 41989cat >>confdefs.h <<\_ACEOF
42f7b73b 41990#define HAVE_LOOKUP_NAMEIDATA 1
cae5b340 41991_ACEOF
ea04106b
AX
41992
41993
41994else
41995 $as_echo "$as_me: failed program was:" >&5
41996sed 's/^/| /' conftest.$ac_ext >&5
41997
42f7b73b
AX
41998 { $as_echo "$as_me:$LINENO: result: no" >&5
41999$as_echo "no" >&6; }
ea04106b
AX
42000
42001
42002
42003fi
cae5b340 42004
ea04106b
AX
42005 rm -Rf build
42006
42007
42008
42009
42f7b73b
AX
42010 { $as_echo "$as_me:$LINENO: checking whether iops->create() passes nameidata" >&5
42011$as_echo_n "checking whether iops->create() passes nameidata... " >&6; }
ea04106b
AX
42012
42013
42014cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
42015/* confdefs.h. */
42016_ACEOF
42017cat confdefs.h >>conftest.$ac_ext
42018cat >>conftest.$ac_ext <<_ACEOF
42019/* end confdefs.h. */
ea04106b
AX
42020
42021
42022 #include <linux/fs.h>
42f7b73b 42023 #include <linux/sched.h>
ea04106b 42024
42f7b73b
AX
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
4d815aed 42032
42f7b73b
AX
42033 static const struct inode_operations
42034 iops __attribute__ ((unused)) = {
42035 .create = inode_create,
4d815aed
AX
42036 };
42037
ea04106b
AX
42038int
42039main (void)
42040{
42041
42042
42043 ;
42044 return 0;
42045}
42046
42047_ACEOF
42048
42049
42050
42051cat - <<_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
42f7b73b 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'
cae5b340 42061 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
42062 (eval $ac_try) 2>&5
42063 ac_status=$?
cae5b340
AX
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
ea04106b
AX
42067 (eval $ac_try) 2>&5
42068 ac_status=$?
cae5b340
AX
42069 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
42070 (exit $ac_status); }; }; then
ea04106b 42071
42f7b73b
AX
42072 { $as_echo "$as_me:$LINENO: result: yes" >&5
42073$as_echo "yes" >&6; }
ea04106b 42074
cae5b340 42075cat >>confdefs.h <<\_ACEOF
42f7b73b 42076#define HAVE_CREATE_NAMEIDATA 1
cae5b340 42077_ACEOF
ea04106b
AX
42078
42079
42080else
42081 $as_echo "$as_me: failed program was:" >&5
42082sed 's/^/| /' conftest.$ac_ext >&5
42083
42f7b73b
AX
42084 { $as_echo "$as_me:$LINENO: result: no" >&5
42085$as_echo "no" >&6; }
ea04106b
AX
42086
42087
42088
42089fi
cae5b340 42090
ea04106b
AX
42091 rm -Rf build
42092
42093
42094
42095
42f7b73b
AX
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; }
ea04106b
AX
42098
42099
42100cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
42101/* confdefs.h. */
42102_ACEOF
42103cat confdefs.h >>conftest.$ac_ext
42104cat >>conftest.$ac_ext <<_ACEOF
42105/* end confdefs.h. */
ea04106b
AX
42106
42107
42108 #include <linux/fs.h>
42f7b73b
AX
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,
ea04106b
AX
42114 };
42115
42116int
42117main (void)
42118{
42119
42120
42121 ;
42122 return 0;
42123}
42124
42125_ACEOF
42126
42127
42128
42129cat - <<_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
42f7b73b 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'
cae5b340 42139 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
42140 (eval $ac_try) 2>&5
42141 ac_status=$?
cae5b340
AX
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
ea04106b
AX
42145 (eval $ac_try) 2>&5
42146 ac_status=$?
cae5b340
AX
42147 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
42148 (exit $ac_status); }; }; then
ea04106b 42149
42f7b73b
AX
42150 { $as_echo "$as_me:$LINENO: result: yes" >&5
42151$as_echo "yes" >&6; }
ea04106b 42152
cae5b340 42153cat >>confdefs.h <<\_ACEOF
42f7b73b 42154#define HAVE_GET_LINK_DELAYED 1
cae5b340 42155_ACEOF
ea04106b
AX
42156
42157
42158else
42159 $as_echo "$as_me: failed program was:" >&5
42160sed 's/^/| /' conftest.$ac_ext >&5
42161
42f7b73b
AX
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; }
ea04106b
AX
42166
42167
42168cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
42169/* confdefs.h. */
42170_ACEOF
42171cat confdefs.h >>conftest.$ac_ext
42172cat >>conftest.$ac_ext <<_ACEOF
42173/* end confdefs.h. */
ea04106b
AX
42174
42175
42f7b73b
AX
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 };
e10b0808 42183
ea04106b
AX
42184int
42185main (void)
42186{
42187
ea04106b
AX
42188
42189 ;
42190 return 0;
42191}
42192
42193_ACEOF
42194
42195
42196
42197cat - <<_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
42f7b73b 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'
cae5b340 42207 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
42208 (eval $ac_try) 2>&5
42209 ac_status=$?
cae5b340
AX
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
ea04106b
AX
42213 (eval $ac_try) 2>&5
42214 ac_status=$?
cae5b340
AX
42215 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
42216 (exit $ac_status); }; }; then
ea04106b 42217
42f7b73b 42218 { $as_echo "$as_me:$LINENO: result: yes" >&5
4d815aed 42219$as_echo "yes" >&6; }
ea04106b 42220
cae5b340 42221cat >>confdefs.h <<\_ACEOF
42f7b73b 42222#define HAVE_GET_LINK_COOKIE 1
cae5b340 42223_ACEOF
ea04106b
AX
42224
42225
42226else
42227 $as_echo "$as_me: failed program was:" >&5
42228sed 's/^/| /' conftest.$ac_ext >&5
42229
42f7b73b 42230 { $as_echo "$as_me:$LINENO: result: no" >&5
4d815aed 42231$as_echo "no" >&6; }
ea04106b 42232
42f7b73b
AX
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; }
4d815aed 42235
ea04106b
AX
42236
42237cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
42238/* confdefs.h. */
42239_ACEOF
42240cat confdefs.h >>conftest.$ac_ext
42241cat >>conftest.$ac_ext <<_ACEOF
42242/* end confdefs.h. */
ea04106b
AX
42243
42244
42245 #include <linux/fs.h>
42f7b73b
AX
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,
ea04106b
AX
42251 };
42252
42253int
42254main (void)
42255{
42256
42257
42258 ;
42259 return 0;
42260}
42261
42262_ACEOF
42263
42264
42265
42266cat - <<_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
42f7b73b 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'
cae5b340 42276 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
42277 (eval $ac_try) 2>&5
42278 ac_status=$?
cae5b340
AX
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
ea04106b
AX
42282 (eval $ac_try) 2>&5
42283 ac_status=$?
cae5b340
AX
42284 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
42285 (exit $ac_status); }; }; then
ea04106b 42286
cae5b340 42287 { $as_echo "$as_me:$LINENO: result: yes" >&5
4d815aed 42288$as_echo "yes" >&6; }
ea04106b 42289
cae5b340 42290cat >>confdefs.h <<\_ACEOF
42f7b73b 42291#define HAVE_FOLLOW_LINK_COOKIE 1
cae5b340 42292_ACEOF
ea04106b
AX
42293
42294
42295else
42296 $as_echo "$as_me: failed program was:" >&5
42297sed 's/^/| /' conftest.$ac_ext >&5
42298
42f7b73b 42299 { $as_echo "$as_me:$LINENO: result: no" >&5
4d815aed 42300$as_echo "no" >&6; }
42f7b73b
AX
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; }
ea04106b
AX
42303
42304
42305cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
42306/* confdefs.h. */
42307_ACEOF
42308cat confdefs.h >>conftest.$ac_ext
42309cat >>conftest.$ac_ext <<_ACEOF
42310/* end confdefs.h. */
ea04106b
AX
42311
42312
42313 #include <linux/fs.h>
42f7b73b
AX
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 };
ea04106b
AX
42320
42321int
42322main (void)
42323{
42324
ea04106b
AX
42325
42326 ;
42327 return 0;
42328}
42329
42330_ACEOF
42331
42332
42333
42334cat - <<_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
42f7b73b 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'
cae5b340 42344 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
42345 (eval $ac_try) 2>&5
42346 ac_status=$?
cae5b340
AX
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
ea04106b
AX
42350 (eval $ac_try) 2>&5
42351 ac_status=$?
cae5b340
AX
42352 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
42353 (exit $ac_status); }; }; then
ea04106b 42354
42f7b73b 42355 { $as_echo "$as_me:$LINENO: result: yes" >&5
ea04106b
AX
42356$as_echo "yes" >&6; }
42357
cae5b340 42358cat >>confdefs.h <<\_ACEOF
42f7b73b 42359#define HAVE_FOLLOW_LINK_NAMEIDATA 1
cae5b340 42360_ACEOF
ea04106b
AX
42361
42362
42363else
42364 $as_echo "$as_me: failed program was:" >&5
42365sed 's/^/| /' conftest.$ac_ext >&5
42366
42f7b73b
AX
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
42373fi
42374
42375 rm -Rf build
42376
42377
42378
42379
42380
42381fi
42382
42383 rm -Rf build
42384
42385
42386
42387
42388
42389
42390fi
42391
42392 rm -Rf build
42393
42394
ea04106b
AX
42395
42396
42397
42398fi
cae5b340 42399
ea04106b
AX
42400 rm -Rf build
42401
42402
42403
42404
68d83c55
AX
42405
42406
42407cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
42408/* confdefs.h. */
42409_ACEOF
42410cat confdefs.h >>conftest.$ac_ext
42411cat >>conftest.$ac_ext <<_ACEOF
42412/* end confdefs.h. */
68d83c55
AX
42413
42414
42f7b73b
AX
42415 #if !defined(HAVE_GET_LINK_DELAYED)
42416 #error "Expecting get_link() delayed done"
42417 #endif
68d83c55
AX
42418
42419int
42420main (void)
42421{
42422
42423
42424 ;
42425 return 0;
42426}
42427
42428_ACEOF
42429
42430
42431
42432cat - <<_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
42f7b73b 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'
cae5b340 42442 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
68d83c55
AX
42443 (eval $ac_try) 2>&5
42444 ac_status=$?
cae5b340
AX
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
68d83c55
AX
42448 (eval $ac_try) 2>&5
42449 ac_status=$?
cae5b340
AX
42450 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
42451 (exit $ac_status); }; }; then
68d83c55 42452
68d83c55 42453
cae5b340 42454cat >>confdefs.h <<\_ACEOF
42f7b73b 42455#define HAVE_PUT_LINK_DELAYED 1
cae5b340 42456_ACEOF
68d83c55
AX
42457
42458
42459else
42460 $as_echo "$as_me: failed program was:" >&5
42461sed 's/^/| /' conftest.$ac_ext >&5
42462
42f7b73b
AX
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; }
ea04106b
AX
42465
42466
42467cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
42468/* confdefs.h. */
42469_ACEOF
42470cat confdefs.h >>conftest.$ac_ext
42471cat >>conftest.$ac_ext <<_ACEOF
42472/* end confdefs.h. */
ea04106b
AX
42473
42474
42f7b73b
AX
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 };
ea04106b
AX
42482
42483int
42484main (void)
42485{
42486
42487
42488 ;
42489 return 0;
42490}
42491
42492_ACEOF
42493
42494
42495
42496cat - <<_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
42f7b73b 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'
cae5b340 42506 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
42507 (eval $ac_try) 2>&5
42508 ac_status=$?
cae5b340
AX
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
ea04106b
AX
42512 (eval $ac_try) 2>&5
42513 ac_status=$?
cae5b340
AX
42514 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
42515 (exit $ac_status); }; }; then
ea04106b 42516
42f7b73b 42517 { $as_echo "$as_me:$LINENO: result: yes" >&5
e10b0808 42518$as_echo "yes" >&6; }
ea04106b 42519
cae5b340 42520cat >>confdefs.h <<\_ACEOF
42f7b73b 42521#define HAVE_PUT_LINK_COOKIE 1
cae5b340 42522_ACEOF
ea04106b
AX
42523
42524
42525else
42526 $as_echo "$as_me: failed program was:" >&5
42527sed 's/^/| /' conftest.$ac_ext >&5
42528
42f7b73b 42529 { $as_echo "$as_me:$LINENO: result: no" >&5
e10b0808 42530$as_echo "no" >&6; }
42f7b73b
AX
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; }
ea04106b
AX
42533
42534
42535cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
42536/* confdefs.h. */
42537_ACEOF
42538cat confdefs.h >>conftest.$ac_ext
42539cat >>conftest.$ac_ext <<_ACEOF
42540/* end confdefs.h. */
ea04106b
AX
42541
42542
42f7b73b
AX
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 };
ea04106b
AX
42550
42551int
42552main (void)
42553{
42554
42555
42556 ;
42557 return 0;
42558}
42559
42560_ACEOF
42561
42562
42563
42564cat - <<_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
42f7b73b 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'
cae5b340 42574 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
42575 (eval $ac_try) 2>&5
42576 ac_status=$?
cae5b340
AX
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
ea04106b
AX
42580 (eval $ac_try) 2>&5
42581 ac_status=$?
cae5b340
AX
42582 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
42583 (exit $ac_status); }; }; then
ea04106b 42584
42f7b73b 42585 { $as_echo "$as_me:$LINENO: result: yes" >&5
e10b0808 42586$as_echo "yes" >&6; }
ea04106b 42587
cae5b340 42588cat >>confdefs.h <<\_ACEOF
42f7b73b 42589#define HAVE_PUT_LINK_NAMEIDATA 1
cae5b340 42590_ACEOF
ea04106b
AX
42591
42592
42593else
42594 $as_echo "$as_me: failed program was:" >&5
42595sed 's/^/| /' conftest.$ac_ext >&5
42596
42f7b73b
AX
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; }; }
ea04106b
AX
42600
42601
42602
42603fi
cae5b340 42604
ea04106b
AX
42605 rm -Rf build
42606
42607
42608
42609
22929307 42610
42f7b73b
AX
42611fi
42612
42613 rm -Rf build
42614
42615
42616
42617
42618
42619fi
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; }
ea04106b
AX
42628
42629
42630cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
42631/* confdefs.h. */
42632_ACEOF
42633cat confdefs.h >>conftest.$ac_ext
42634cat >>conftest.$ac_ext <<_ACEOF
42635/* end confdefs.h. */
ea04106b
AX
42636
42637
42638 #include <linux/fs.h>
42f7b73b
AX
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,
ea04106b
AX
42644 };
42645
42646int
42647main (void)
42648{
42649
42650
42651 ;
42652 return 0;
42653}
42654
42655_ACEOF
42656
42657
42658
42659cat - <<_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
42f7b73b 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'
cae5b340 42669 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
42670 (eval $ac_try) 2>&5
42671 ac_status=$?
cae5b340
AX
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
ea04106b
AX
42675 (eval $ac_try) 2>&5
42676 ac_status=$?
cae5b340
AX
42677 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
42678 (exit $ac_status); }; }; then
ea04106b 42679
cae5b340 42680 { $as_echo "$as_me:$LINENO: result: yes" >&5
e10b0808 42681$as_echo "yes" >&6; }
ea04106b 42682
cae5b340 42683cat >>confdefs.h <<\_ACEOF
42f7b73b 42684#define HAVE_TMPFILE 1
cae5b340 42685_ACEOF
ea04106b
AX
42686
42687
42688else
42689 $as_echo "$as_me: failed program was:" >&5
42690sed 's/^/| /' conftest.$ac_ext >&5
42691
cae5b340 42692 { $as_echo "$as_me:$LINENO: result: no" >&5
e10b0808 42693$as_echo "no" >&6; }
ea04106b
AX
42694
42695
42696
42697fi
cae5b340 42698
ea04106b
AX
42699 rm -Rf build
42700
42701
42702
42703
42f7b73b
AX
42704 { $as_echo "$as_me:$LINENO: checking whether iops->truncate_range() exists" >&5
42705$as_echo_n "checking whether iops->truncate_range() exists... " >&6; }
ea04106b
AX
42706
42707
42708cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
42709/* confdefs.h. */
42710_ACEOF
42711cat confdefs.h >>conftest.$ac_ext
42712cat >>conftest.$ac_ext <<_ACEOF
42713/* end confdefs.h. */
ea04106b
AX
42714
42715
42716 #include <linux/fs.h>
42f7b73b
AX
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,
ea04106b
AX
42721 };
42722
42723int
42724main (void)
42725{
42726
42727
42728 ;
42729 return 0;
42730}
42731
42732_ACEOF
42733
42734
42735
42736cat - <<_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
42f7b73b 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'
cae5b340 42746 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
42747 (eval $ac_try) 2>&5
42748 ac_status=$?
cae5b340
AX
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
ea04106b
AX
42752 (eval $ac_try) 2>&5
42753 ac_status=$?
cae5b340
AX
42754 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
42755 (exit $ac_status); }; }; then
ea04106b 42756
cae5b340 42757 { $as_echo "$as_me:$LINENO: result: yes" >&5
ea04106b
AX
42758$as_echo "yes" >&6; }
42759
cae5b340 42760cat >>confdefs.h <<\_ACEOF
42f7b73b 42761#define HAVE_INODE_TRUNCATE_RANGE 1
cae5b340 42762_ACEOF
ea04106b
AX
42763
42764
42765else
42766 $as_echo "$as_me: failed program was:" >&5
42767sed 's/^/| /' conftest.$ac_ext >&5
42768
cae5b340 42769 { $as_echo "$as_me:$LINENO: result: no" >&5
ea04106b 42770$as_echo "no" >&6; }
22929307
AX
42771
42772
42773
42774fi
cae5b340 42775
22929307
AX
42776 rm -Rf build
42777
42778
42779
42780
42f7b73b
AX
42781 { $as_echo "$as_me:$LINENO: checking whether dops->d_automount() exists" >&5
42782$as_echo_n "checking whether dops->d_automount() exists... " >&6; }
e10b0808 42783
ea04106b
AX
42784
42785cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
42786/* confdefs.h. */
42787_ACEOF
42788cat confdefs.h >>conftest.$ac_ext
42789cat >>conftest.$ac_ext <<_ACEOF
42790/* end confdefs.h. */
ea04106b
AX
42791
42792
42f7b73b
AX
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,
22929307 42797 };
ea04106b
AX
42798
42799int
42800main (void)
42801{
42802
42803
42804 ;
42805 return 0;
42806}
42807
42808_ACEOF
42809
42810
42811
42812cat - <<_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
42f7b73b 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'
cae5b340 42822 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
42823 (eval $ac_try) 2>&5
42824 ac_status=$?
cae5b340
AX
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
ea04106b
AX
42828 (eval $ac_try) 2>&5
42829 ac_status=$?
cae5b340
AX
42830 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
42831 (exit $ac_status); }; }; then
ea04106b 42832
cae5b340 42833 { $as_echo "$as_me:$LINENO: result: yes" >&5
ea04106b
AX
42834$as_echo "yes" >&6; }
42835
cae5b340 42836cat >>confdefs.h <<\_ACEOF
42f7b73b 42837#define HAVE_AUTOMOUNT 1
cae5b340 42838_ACEOF
ea04106b
AX
42839
42840
42841else
42842 $as_echo "$as_me: failed program was:" >&5
42843sed 's/^/| /' conftest.$ac_ext >&5
42844
cae5b340 42845 { $as_echo "$as_me:$LINENO: result: no" >&5
ea04106b
AX
42846$as_echo "no" >&6; }
42847
22929307
AX
42848
42849
42850fi
cae5b340 42851
22929307
AX
42852 rm -Rf build
42853
42854
42855
42856
42f7b73b
AX
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; }
ea04106b
AX
42859
42860
42861cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
42862/* confdefs.h. */
42863_ACEOF
42864cat confdefs.h >>conftest.$ac_ext
42865cat >>conftest.$ac_ext <<_ACEOF
42866/* end confdefs.h. */
ea04106b
AX
42867
42868
42f7b73b
AX
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,
ea04106b
AX
42874 };
42875
42876int
42877main (void)
42878{
42879
42880
42881 ;
42882 return 0;
42883}
42884
42885_ACEOF
42886
42887
42888
42889cat - <<_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
42f7b73b 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'
cae5b340 42899 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
42900 (eval $ac_try) 2>&5
42901 ac_status=$?
cae5b340
AX
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
ea04106b
AX
42905 (eval $ac_try) 2>&5
42906 ac_status=$?
cae5b340
AX
42907 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
42908 (exit $ac_status); }; }; then
ea04106b 42909
cae5b340 42910 { $as_echo "$as_me:$LINENO: result: yes" >&5
ea04106b
AX
42911$as_echo "yes" >&6; }
42912
cae5b340 42913cat >>confdefs.h <<\_ACEOF
42f7b73b 42914#define HAVE_ENCODE_FH_WITH_INODE 1
cae5b340 42915_ACEOF
ea04106b
AX
42916
42917
42918else
42919 $as_echo "$as_me: failed program was:" >&5
42920sed 's/^/| /' conftest.$ac_ext >&5
42921
cae5b340 42922 { $as_echo "$as_me:$LINENO: result: no" >&5
ea04106b 42923$as_echo "no" >&6; }
22929307
AX
42924
42925
42926
42927fi
cae5b340 42928
22929307
AX
42929 rm -Rf build
42930
42931
42932
42933
42f7b73b
AX
42934 { $as_echo "$as_me:$LINENO: checking whether eops->commit_metadata() exists" >&5
42935$as_echo_n "checking whether eops->commit_metadata() exists... " >&6; }
ea04106b
AX
42936
42937
42938cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
42939/* confdefs.h. */
42940_ACEOF
42941cat confdefs.h >>conftest.$ac_ext
42942cat >>conftest.$ac_ext <<_ACEOF
42943/* end confdefs.h. */
ea04106b
AX
42944
42945
42f7b73b
AX
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,
22929307 42950 };
ea04106b
AX
42951
42952int
42953main (void)
42954{
42955
42956
42957 ;
42958 return 0;
42959}
42960
42961_ACEOF
42962
42963
42964
42965cat - <<_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
42f7b73b 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'
cae5b340 42975 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
42976 (eval $ac_try) 2>&5
42977 ac_status=$?
cae5b340
AX
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
ea04106b
AX
42981 (eval $ac_try) 2>&5
42982 ac_status=$?
cae5b340
AX
42983 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
42984 (exit $ac_status); }; }; then
ea04106b 42985
cae5b340 42986 { $as_echo "$as_me:$LINENO: result: yes" >&5
ea04106b
AX
42987$as_echo "yes" >&6; }
42988
cae5b340 42989cat >>confdefs.h <<\_ACEOF
42f7b73b 42990#define HAVE_COMMIT_METADATA 1
cae5b340 42991_ACEOF
ea04106b
AX
42992
42993
42994else
42995 $as_echo "$as_me: failed program was:" >&5
42996sed 's/^/| /' conftest.$ac_ext >&5
42997
42f7b73b 42998 { $as_echo "$as_me:$LINENO: result: no" >&5
22929307 42999$as_echo "no" >&6; }
42f7b73b
AX
43000
43001
43002
43003fi
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
4d815aed
AX
43012
43013
43014cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
43015/* confdefs.h. */
43016_ACEOF
43017cat confdefs.h >>conftest.$ac_ext
43018cat >>conftest.$ac_ext <<_ACEOF
43019/* end confdefs.h. */
4d815aed
AX
43020
43021
42f7b73b 43022 #include <linux/fs.h>
ea04106b
AX
43023
43024int
43025main (void)
43026{
43027
42f7b73b 43028 clear_inode(NULL);
ea04106b
AX
43029
43030 ;
43031 return 0;
43032}
43033
43034_ACEOF
43035
43036
43037
43038cat - <<_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
42f7b73b 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'
cae5b340 43048 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
43049 (eval $ac_try) 2>&5
43050 ac_status=$?
cae5b340
AX
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
ea04106b
AX
43054 (eval $ac_try) 2>&5
43055 ac_status=$?
cae5b340
AX
43056 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
43057 (exit $ac_status); }; }; then
42f7b73b 43058 rc=0
ea04106b
AX
43059else
43060 $as_echo "$as_me: failed program was:" >&5
43061sed 's/^/| /' conftest.$ac_ext >&5
42f7b73b 43062 rc=1
ea04106b
AX
43063
43064
42f7b73b 43065fi
ea04106b 43066
42f7b73b 43067 rm -Rf build
ea04106b 43068
ea04106b 43069
42f7b73b 43070 if test $rc -ne 0; then :
ea04106b 43071
42f7b73b
AX
43072 { $as_echo "$as_me:$LINENO: result: no" >&5
43073$as_echo "no" >&6; }
ea04106b 43074
42f7b73b
AX
43075 else
43076 if test "x$enable_linux_builtin" != xyes; then
ea04106b 43077
42f7b73b
AX
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
ea04106b 43100
42f7b73b
AX
43101 fi
43102 if test $rc -ne 0; then :
ea04106b 43103
42f7b73b
AX
43104 { $as_echo "$as_me:$LINENO: result: no" >&5
43105$as_echo "no" >&6; }
ea04106b 43106
42f7b73b 43107 else :
ea04106b 43108
cae5b340 43109 { $as_echo "$as_me:$LINENO: result: yes" >&5
68d83c55
AX
43110$as_echo "yes" >&6; }
43111
cae5b340 43112cat >>confdefs.h <<\_ACEOF
42f7b73b 43113#define HAVE_CLEAR_INODE 1
cae5b340 43114_ACEOF
68d83c55
AX
43115
43116
42f7b73b
AX
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; }
68d83c55 43123
68d83c55
AX
43124
43125
43126cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
43127/* confdefs.h. */
43128_ACEOF
43129cat confdefs.h >>conftest.$ac_ext
43130cat >>conftest.$ac_ext <<_ACEOF
43131/* end confdefs.h. */
68d83c55
AX
43132
43133
22929307 43134 #include <linux/fs.h>
68d83c55
AX
43135
43136int
43137main (void)
43138{
43139
42f7b73b
AX
43140 struct dentry *dentry = NULL;
43141 struct iattr *attr = NULL;
43142 int error;
43143
43144 error = setattr_prepare(dentry, attr);
68d83c55
AX
43145
43146 ;
43147 return 0;
43148}
43149
43150_ACEOF
43151
43152
43153
43154cat - <<_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
42f7b73b 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'
cae5b340 43164 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
68d83c55
AX
43165 (eval $ac_try) 2>&5
43166 ac_status=$?
cae5b340
AX
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
68d83c55
AX
43170 (eval $ac_try) 2>&5
43171 ac_status=$?
cae5b340
AX
43172 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
43173 (exit $ac_status); }; }; then
42f7b73b 43174 rc=0
68d83c55
AX
43175else
43176 $as_echo "$as_me: failed program was:" >&5
43177sed 's/^/| /' conftest.$ac_ext >&5
42f7b73b 43178 rc=1
68d83c55
AX
43179
43180
22929307 43181fi
cae5b340 43182
22929307
AX
43183 rm -Rf build
43184
43185
42f7b73b 43186 if test $rc -ne 0; then :
22929307 43187
42f7b73b
AX
43188 { $as_echo "$as_me:$LINENO: result: no" >&5
43189$as_echo "no" >&6; }
22929307 43190
42f7b73b
AX
43191 else
43192 if test "x$enable_linux_builtin" != xyes; then
22929307 43193
42f7b73b
AX
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
22929307 43216
42f7b73b
AX
43217 fi
43218 if test $rc -ne 0; then :
68d83c55 43219
42f7b73b
AX
43220 { $as_echo "$as_me:$LINENO: result: no" >&5
43221$as_echo "no" >&6; }
68d83c55 43222
42f7b73b 43223 else :
68d83c55 43224
42f7b73b
AX
43225 { $as_echo "$as_me:$LINENO: result: yes" >&5
43226$as_echo "yes" >&6; }
68d83c55 43227
42f7b73b
AX
43228cat >>confdefs.h <<\_ACEOF
43229#define HAVE_SETATTR_PREPARE 1
43230_ACEOF
cae5b340 43231
68d83c55 43232
42f7b73b
AX
43233 fi
43234 fi
68d83c55
AX
43235
43236
42f7b73b
AX
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; }
68d83c55 43239
68d83c55
AX
43240
43241
43242cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
43243/* confdefs.h. */
43244_ACEOF
43245cat confdefs.h >>conftest.$ac_ext
43246cat >>conftest.$ac_ext <<_ACEOF
43247/* end confdefs.h. */
68d83c55
AX
43248
43249
42f7b73b 43250 #include <linux/fs.h>
68d83c55
AX
43251
43252int
43253main (void)
43254{
43255
42f7b73b 43256 insert_inode_locked(NULL);
68d83c55
AX
43257
43258 ;
43259 return 0;
43260}
43261
43262_ACEOF
43263
43264
43265
43266cat - <<_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
42f7b73b 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'
cae5b340 43276 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
68d83c55
AX
43277 (eval $ac_try) 2>&5
43278 ac_status=$?
cae5b340
AX
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
68d83c55
AX
43282 (eval $ac_try) 2>&5
43283 ac_status=$?
cae5b340
AX
43284 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
43285 (exit $ac_status); }; }; then
42f7b73b 43286 rc=0
4d815aed
AX
43287else
43288 $as_echo "$as_me: failed program was:" >&5
43289sed 's/^/| /' conftest.$ac_ext >&5
42f7b73b 43290 rc=1
ea04106b 43291
4d815aed 43292
42f7b73b 43293fi
4d815aed 43294
42f7b73b 43295 rm -Rf build
4d815aed 43296
22929307 43297
42f7b73b 43298 if test $rc -ne 0; then :
22929307 43299
42f7b73b
AX
43300 { $as_echo "$as_me:$LINENO: result: no" >&5
43301$as_echo "no" >&6; }
22929307 43302
42f7b73b
AX
43303 else
43304 if test "x$enable_linux_builtin" != xyes; then
22929307 43305
42f7b73b
AX
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
22929307 43328
42f7b73b
AX
43329 fi
43330 if test $rc -ne 0; then :
22929307 43331
42f7b73b
AX
43332 { $as_echo "$as_me:$LINENO: result: no" >&5
43333$as_echo "no" >&6; }
22929307 43334
42f7b73b 43335 else :
22929307 43336
42f7b73b 43337 { $as_echo "$as_me:$LINENO: result: yes" >&5
22929307
AX
43338$as_echo "yes" >&6; }
43339
cae5b340 43340cat >>confdefs.h <<\_ACEOF
42f7b73b 43341#define HAVE_INSERT_INODE_LOCKED 1
cae5b340 43342_ACEOF
22929307
AX
43343
43344
42f7b73b
AX
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; }
22929307 43351
ea04106b
AX
43352
43353
43354cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
43355/* confdefs.h. */
43356_ACEOF
43357cat confdefs.h >>conftest.$ac_ext
43358cat >>conftest.$ac_ext <<_ACEOF
43359/* end confdefs.h. */
ea04106b
AX
43360
43361
42f7b73b 43362 #include <linux/dcache.h>
ea04106b
AX
43363
43364int
43365main (void)
43366{
43367
42f7b73b 43368 d_make_root(NULL);
ea04106b
AX
43369
43370 ;
43371 return 0;
43372}
43373
43374_ACEOF
43375
43376
43377
43378cat - <<_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
42f7b73b 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'
cae5b340 43388 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
43389 (eval $ac_try) 2>&5
43390 ac_status=$?
cae5b340
AX
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
ea04106b
AX
43394 (eval $ac_try) 2>&5
43395 ac_status=$?
cae5b340
AX
43396 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
43397 (exit $ac_status); }; }; then
42f7b73b 43398 rc=0
ea04106b
AX
43399else
43400 $as_echo "$as_me: failed program was:" >&5
43401sed 's/^/| /' conftest.$ac_ext >&5
42f7b73b 43402 rc=1
ea04106b
AX
43403
43404
43405fi
cae5b340 43406
ea04106b
AX
43407 rm -Rf build
43408
43409
42f7b73b 43410 if test $rc -ne 0; then :
ea04106b 43411
42f7b73b
AX
43412 { $as_echo "$as_me:$LINENO: result: no" >&5
43413$as_echo "no" >&6; }
ea04106b 43414
42f7b73b
AX
43415 else
43416 if test "x$enable_linux_builtin" != xyes; then
22929307 43417
42f7b73b
AX
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
22929307 43440
42f7b73b
AX
43441 fi
43442 if test $rc -ne 0; then :
22929307 43443
42f7b73b
AX
43444 { $as_echo "$as_me:$LINENO: result: no" >&5
43445$as_echo "no" >&6; }
22929307 43446
42f7b73b 43447 else :
22929307 43448
42f7b73b
AX
43449 { $as_echo "$as_me:$LINENO: result: yes" >&5
43450$as_echo "yes" >&6; }
22929307 43451
42f7b73b
AX
43452cat >>confdefs.h <<\_ACEOF
43453#define HAVE_D_MAKE_ROOT 1
43454_ACEOF
cae5b340 43455
22929307 43456
42f7b73b
AX
43457 fi
43458 fi
22929307
AX
43459
43460
42f7b73b
AX
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; }
22929307 43463
ea04106b
AX
43464
43465
43466cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
43467/* confdefs.h. */
43468_ACEOF
43469cat confdefs.h >>conftest.$ac_ext
43470cat >>conftest.$ac_ext <<_ACEOF
43471/* end confdefs.h. */
ea04106b
AX
43472
43473
42f7b73b 43474 #include <linux/dcache.h>
ea04106b
AX
43475
43476int
43477main (void)
43478{
43479
42f7b73b 43480 d_obtain_alias(NULL);
ea04106b
AX
43481
43482 ;
43483 return 0;
43484}
43485
43486_ACEOF
43487
43488
43489
43490cat - <<_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
42f7b73b 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'
cae5b340 43500 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
43501 (eval $ac_try) 2>&5
43502 ac_status=$?
cae5b340
AX
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
ea04106b
AX
43506 (eval $ac_try) 2>&5
43507 ac_status=$?
cae5b340
AX
43508 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
43509 (exit $ac_status); }; }; then
42f7b73b
AX
43510 rc=0
43511else
43512 $as_echo "$as_me: failed program was:" >&5
43513sed 's/^/| /' conftest.$ac_ext >&5
43514 rc=1
ea04106b 43515
ea04106b 43516
42f7b73b 43517fi
ea04106b 43518
42f7b73b 43519 rm -Rf build
ea04106b 43520
42f7b73b
AX
43521
43522 if test $rc -ne 0; then :
ea04106b 43523
cae5b340 43524 { $as_echo "$as_me:$LINENO: result: no" >&5
ea04106b
AX
43525$as_echo "no" >&6; }
43526
42f7b73b
AX
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 :
ea04106b 43555
42f7b73b
AX
43556 { $as_echo "$as_me:$LINENO: result: no" >&5
43557$as_echo "no" >&6; }
ea04106b 43558
42f7b73b 43559 else :
cae5b340 43560
42f7b73b
AX
43561 { $as_echo "$as_me:$LINENO: result: yes" >&5
43562$as_echo "yes" >&6; }
ea04106b 43563
42f7b73b
AX
43564cat >>confdefs.h <<\_ACEOF
43565#define HAVE_D_OBTAIN_ALIAS 1
43566_ACEOF
ea04106b
AX
43567
43568
42f7b73b
AX
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; }
ea04106b 43575
ea04106b
AX
43576
43577
43578cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
43579/* confdefs.h. */
43580_ACEOF
43581cat confdefs.h >>conftest.$ac_ext
43582cat >>conftest.$ac_ext <<_ACEOF
43583/* end confdefs.h. */
ea04106b
AX
43584
43585
42f7b73b 43586 #include <linux/dcache.h>
ea04106b
AX
43587
43588int
43589main (void)
43590{
43591
42f7b73b
AX
43592 struct inode *ip = NULL;
43593 d_prune_aliases(ip);
ea04106b
AX
43594
43595 ;
43596 return 0;
43597}
43598
43599_ACEOF
43600
43601
43602
43603cat - <<_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
42f7b73b 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'
cae5b340 43613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
43614 (eval $ac_try) 2>&5
43615 ac_status=$?
cae5b340
AX
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
ea04106b
AX
43619 (eval $ac_try) 2>&5
43620 ac_status=$?
cae5b340
AX
43621 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
43622 (exit $ac_status); }; }; then
42f7b73b
AX
43623 rc=0
43624else
43625 $as_echo "$as_me: failed program was:" >&5
43626sed 's/^/| /' conftest.$ac_ext >&5
43627 rc=1
ea04106b 43628
ea04106b 43629
42f7b73b 43630fi
ea04106b 43631
42f7b73b 43632 rm -Rf build
ea04106b 43633
42f7b73b
AX
43634
43635 if test $rc -ne 0; then :
ea04106b 43636
cae5b340 43637 { $as_echo "$as_me:$LINENO: result: no" >&5
ea04106b
AX
43638$as_echo "no" >&6; }
43639
42f7b73b
AX
43640 else
43641 if test "x$enable_linux_builtin" != xyes; then
ea04106b 43642
42f7b73b
AX
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
ea04106b 43665
42f7b73b
AX
43666 fi
43667 if test $rc -ne 0; then :
cae5b340 43668
42f7b73b
AX
43669 { $as_echo "$as_me:$LINENO: result: no" >&5
43670$as_echo "no" >&6; }
43671
43672 else :
ea04106b 43673
42f7b73b
AX
43674 { $as_echo "$as_me:$LINENO: result: yes" >&5
43675$as_echo "yes" >&6; }
ea04106b 43676
42f7b73b
AX
43677cat >>confdefs.h <<\_ACEOF
43678#define HAVE_D_PRUNE_ALIASES 1
43679_ACEOF
ea04106b
AX
43680
43681
42f7b73b
AX
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
ea04106b
AX
43689
43690
43691cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
43692/* confdefs.h. */
43693_ACEOF
43694cat confdefs.h >>conftest.$ac_ext
43695cat >>conftest.$ac_ext <<_ACEOF
43696/* end confdefs.h. */
ea04106b
AX
43697
43698
cae5b340 43699 #include <linux/dcache.h>
ea04106b
AX
43700
43701int
43702main (void)
43703{
43704
42f7b73b 43705 d_set_d_op(NULL, NULL);
22929307
AX
43706
43707 ;
43708 return 0;
43709}
43710
43711_ACEOF
43712
43713
43714
43715cat - <<_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
42f7b73b 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'
cae5b340 43725 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22929307
AX
43726 (eval $ac_try) 2>&5
43727 ac_status=$?
cae5b340
AX
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
22929307
AX
43731 (eval $ac_try) 2>&5
43732 ac_status=$?
cae5b340
AX
43733 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
43734 (exit $ac_status); }; }; then
42f7b73b
AX
43735 rc=0
43736else
43737 $as_echo "$as_me: failed program was:" >&5
43738sed 's/^/| /' conftest.$ac_ext >&5
43739 rc=1
22929307 43740
22929307 43741
42f7b73b 43742fi
22929307 43743
42f7b73b 43744 rm -Rf build
22929307 43745
42f7b73b
AX
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 :
22929307 43780
cae5b340 43781 { $as_echo "$as_me:$LINENO: result: no" >&5
22929307
AX
43782$as_echo "no" >&6; }
43783
42f7b73b 43784 else :
22929307 43785
42f7b73b
AX
43786 { $as_echo "$as_me:$LINENO: result: yes" >&5
43787$as_echo "yes" >&6; }
22929307 43788
42f7b73b
AX
43789cat >>confdefs.h <<\_ACEOF
43790#define HAVE_D_SET_D_OP 1
43791_ACEOF
cae5b340 43792
22929307 43793
42f7b73b
AX
43794 fi
43795 fi
22929307
AX
43796
43797
43798
42f7b73b
AX
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; }
22929307
AX
43801
43802
43803cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
43804/* confdefs.h. */
43805_ACEOF
43806cat confdefs.h >>conftest.$ac_ext
43807cat >>conftest.$ac_ext <<_ACEOF
43808/* end confdefs.h. */
22929307
AX
43809
43810
42f7b73b
AX
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,
22929307
AX
43820 };
43821
43822int
43823main (void)
43824{
43825
43826
43827 ;
43828 return 0;
43829}
43830
43831_ACEOF
43832
43833
43834
43835cat - <<_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
42f7b73b 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'
cae5b340 43845 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22929307
AX
43846 (eval $ac_try) 2>&5
43847 ac_status=$?
cae5b340
AX
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
22929307
AX
43851 (eval $ac_try) 2>&5
43852 ac_status=$?
cae5b340
AX
43853 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
43854 (exit $ac_status); }; }; then
22929307 43855
cae5b340 43856 { $as_echo "$as_me:$LINENO: result: yes" >&5
22929307
AX
43857$as_echo "yes" >&6; }
43858
cae5b340 43859cat >>confdefs.h <<\_ACEOF
42f7b73b 43860#define HAVE_D_REVALIDATE_NAMEIDATA 1
cae5b340 43861_ACEOF
22929307
AX
43862
43863
43864else
43865 $as_echo "$as_me: failed program was:" >&5
43866sed 's/^/| /' conftest.$ac_ext >&5
43867
cae5b340 43868 { $as_echo "$as_me:$LINENO: result: no" >&5
22929307
AX
43869$as_echo "no" >&6; }
43870
43871
43872
43873fi
cae5b340 43874
22929307
AX
43875 rm -Rf build
43876
43877
43878
22929307 43879
42f7b73b
AX
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; }
22929307
AX
43882
43883
43884cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
43885/* confdefs.h. */
43886_ACEOF
43887cat confdefs.h >>conftest.$ac_ext
43888cat >>conftest.$ac_ext <<_ACEOF
43889/* end confdefs.h. */
22929307
AX
43890
43891
42f7b73b
AX
43892 #include <linux/dcache.h>
43893
43894 const struct dentry_operations test_d_op = {
43895 .d_revalidate = NULL,
cae5b340 43896 };
22929307
AX
43897
43898int
43899main (void)
43900{
43901
42f7b73b
AX
43902 struct dentry d __attribute__ ((unused));
43903
43904 d.d_op = &test_d_op;
ea04106b
AX
43905
43906 ;
43907 return 0;
43908}
43909
43910_ACEOF
43911
43912
43913
43914cat - <<_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
42f7b73b 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'
cae5b340 43924 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
43925 (eval $ac_try) 2>&5
43926 ac_status=$?
cae5b340
AX
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
ea04106b
AX
43930 (eval $ac_try) 2>&5
43931 ac_status=$?
cae5b340
AX
43932 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
43933 (exit $ac_status); }; }; then
ea04106b 43934
cae5b340
AX
43935 { $as_echo "$as_me:$LINENO: result: yes" >&5
43936$as_echo "yes" >&6; }
ea04106b 43937
cae5b340 43938cat >>confdefs.h <<\_ACEOF
42f7b73b 43939#define HAVE_CONST_DENTRY_OPERATIONS 1
cae5b340 43940_ACEOF
ea04106b
AX
43941
43942
cae5b340
AX
43943else
43944 $as_echo "$as_me: failed program was:" >&5
43945sed 's/^/| /' conftest.$ac_ext >&5
ea04106b 43946
cae5b340 43947 { $as_echo "$as_me:$LINENO: result: no" >&5
ea04106b
AX
43948$as_echo "no" >&6; }
43949
43950
ea04106b 43951
cae5b340 43952fi
68d83c55 43953
cae5b340 43954 rm -Rf build
68d83c55
AX
43955
43956
68d83c55 43957
42f7b73b
AX
43958 { $as_echo "$as_me:$LINENO: checking whether truncate_setsize() is available" >&5
43959$as_echo_n "checking whether truncate_setsize() is available... " >&6; }
ea04106b 43960
ea04106b
AX
43961
43962
43963cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
43964/* confdefs.h. */
43965_ACEOF
43966cat confdefs.h >>conftest.$ac_ext
43967cat >>conftest.$ac_ext <<_ACEOF
43968/* end confdefs.h. */
ea04106b
AX
43969
43970
42f7b73b 43971 #include <linux/mm.h>
ea04106b
AX
43972
43973int
43974main (void)
43975{
43976
42f7b73b 43977 truncate_setsize(NULL, 0);
ea04106b
AX
43978
43979 ;
43980 return 0;
43981}
43982
43983_ACEOF
43984
43985
43986
43987cat - <<_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
42f7b73b 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'
cae5b340 43997 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
43998 (eval $ac_try) 2>&5
43999 ac_status=$?
cae5b340
AX
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
ea04106b
AX
44003 (eval $ac_try) 2>&5
44004 ac_status=$?
cae5b340
AX
44005 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
44006 (exit $ac_status); }; }; then
e10b0808
AX
44007 rc=0
44008else
44009 $as_echo "$as_me: failed program was:" >&5
44010sed 's/^/| /' conftest.$ac_ext >&5
44011 rc=1
ea04106b 44012
ea04106b 44013
e10b0808 44014fi
cae5b340 44015
e10b0808 44016 rm -Rf build
ea04106b
AX
44017
44018
e10b0808
AX
44019 if test $rc -ne 0; then :
44020
cae5b340 44021 { $as_echo "$as_me:$LINENO: result: no" >&5
e10b0808
AX
44022$as_echo "no" >&6; }
44023
44024 else
44025 if test "x$enable_linux_builtin" != xyes; then
44026
42f7b73b 44027 grep -q -E '[[:space:]]truncate_setsize[[:space:]]' \
e10b0808
AX
44028 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
44029 rc=$?
44030 if test $rc -ne 0; then
44031 export=0
42f7b73b
AX
44032 for file in mm/truncate.c; do
44033 grep -q -E "EXPORT_SYMBOL.*(truncate_setsize)" \
e10b0808
AX
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 :
ea04106b 44052
cae5b340 44053 { $as_echo "$as_me:$LINENO: result: no" >&5
ea04106b
AX
44054$as_echo "no" >&6; }
44055
e10b0808
AX
44056 else :
44057
cae5b340 44058 { $as_echo "$as_me:$LINENO: result: yes" >&5
e10b0808 44059$as_echo "yes" >&6; }
ea04106b 44060
cae5b340 44061cat >>confdefs.h <<\_ACEOF
42f7b73b 44062#define HAVE_TRUNCATE_SETSIZE 1
cae5b340 44063_ACEOF
ea04106b 44064
ea04106b 44065
e10b0808
AX
44066 fi
44067 fi
ea04106b
AX
44068
44069
44070
42f7b73b
AX
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; }
ea04106b
AX
44073
44074
44075cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
44076/* confdefs.h. */
44077_ACEOF
44078cat confdefs.h >>conftest.$ac_ext
44079cat >>conftest.$ac_ext <<_ACEOF
44080/* end confdefs.h. */
ea04106b
AX
44081
44082
42f7b73b 44083 #include <linux/security.h>
ea04106b
AX
44084
44085int
44086main (void)
44087{
44088
42f7b73b
AX
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;
cae5b340 44095
42f7b73b 44096 security_inode_init_security(ip, dip, str, &name, &value, &len);
ea04106b
AX
44097
44098 ;
44099 return 0;
44100}
44101
44102_ACEOF
44103
44104
44105
44106cat - <<_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
42f7b73b 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'
cae5b340 44116 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
44117 (eval $ac_try) 2>&5
44118 ac_status=$?
cae5b340
AX
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
ea04106b
AX
44122 (eval $ac_try) 2>&5
44123 ac_status=$?
cae5b340
AX
44124 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
44125 (exit $ac_status); }; }; then
ea04106b 44126
42f7b73b
AX
44127 { $as_echo "$as_me:$LINENO: result: yes" >&5
44128$as_echo "yes" >&6; }
ea04106b 44129
42f7b73b
AX
44130cat >>confdefs.h <<\_ACEOF
44131#define HAVE_6ARGS_SECURITY_INODE_INIT_SECURITY 1
44132_ACEOF
e10b0808 44133
e10b0808 44134
42f7b73b
AX
44135else
44136 $as_echo "$as_me: failed program was:" >&5
44137sed 's/^/| /' conftest.$ac_ext >&5
ea04106b 44138
cae5b340 44139 { $as_echo "$as_me:$LINENO: result: no" >&5
ea04106b
AX
44140$as_echo "no" >&6; }
44141
e10b0808 44142
ea04106b 44143
42f7b73b 44144fi
ea04106b 44145
42f7b73b 44146 rm -Rf build
ea04106b
AX
44147
44148
44149
ea04106b 44150
42f7b73b
AX
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; }
ea04106b
AX
44153
44154
44155cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
44156/* confdefs.h. */
44157_ACEOF
44158cat confdefs.h >>conftest.$ac_ext
44159cat >>conftest.$ac_ext <<_ACEOF
44160/* end confdefs.h. */
ea04106b
AX
44161
44162
42f7b73b 44163 #include <linux/security.h>
ea04106b
AX
44164
44165int
44166main (void)
44167{
44168
42f7b73b
AX
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);
ea04106b
AX
44175
44176 ;
44177 return 0;
44178}
44179
44180_ACEOF
44181
44182
44183
44184cat - <<_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
42f7b73b 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'
cae5b340 44194 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
44195 (eval $ac_try) 2>&5
44196 ac_status=$?
cae5b340
AX
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
ea04106b
AX
44200 (eval $ac_try) 2>&5
44201 ac_status=$?
cae5b340
AX
44202 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
44203 (exit $ac_status); }; }; then
ea04106b 44204
42f7b73b
AX
44205 { $as_echo "$as_me:$LINENO: result: yes" >&5
44206$as_echo "yes" >&6; }
ea04106b 44207
42f7b73b
AX
44208cat >>confdefs.h <<\_ACEOF
44209#define HAVE_CALLBACK_SECURITY_INODE_INIT_SECURITY 1
44210_ACEOF
ea04106b 44211
ea04106b 44212
42f7b73b
AX
44213else
44214 $as_echo "$as_me: failed program was:" >&5
44215sed 's/^/| /' conftest.$ac_ext >&5
ea04106b 44216
cae5b340 44217 { $as_echo "$as_me:$LINENO: result: no" >&5
ea04106b
AX
44218$as_echo "no" >&6; }
44219
ea04106b 44220
ea04106b 44221
42f7b73b 44222fi
ea04106b 44223
42f7b73b 44224 rm -Rf build
ea04106b 44225
ea04106b
AX
44226
44227
ea04106b 44228
42f7b73b
AX
44229 { $as_echo "$as_me:$LINENO: checking whether fst->mount() exists" >&5
44230$as_echo_n "checking whether fst->mount() exists... " >&6; }
ea04106b
AX
44231
44232
44233cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
44234/* confdefs.h. */
44235_ACEOF
44236cat confdefs.h >>conftest.$ac_ext
44237cat >>conftest.$ac_ext <<_ACEOF
44238/* end confdefs.h. */
ea04106b
AX
44239
44240
42f7b73b
AX
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 };
ea04106b
AX
44253
44254int
44255main (void)
44256{
44257
ea04106b
AX
44258
44259 ;
44260 return 0;
44261}
44262
44263_ACEOF
44264
44265
44266
44267cat - <<_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
42f7b73b 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'
cae5b340 44277 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
44278 (eval $ac_try) 2>&5
44279 ac_status=$?
cae5b340
AX
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
ea04106b
AX
44283 (eval $ac_try) 2>&5
44284 ac_status=$?
cae5b340
AX
44285 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
44286 (exit $ac_status); }; }; then
ea04106b 44287
42f7b73b
AX
44288 { $as_echo "$as_me:$LINENO: result: yes" >&5
44289$as_echo "yes" >&6; }
ea04106b 44290
42f7b73b
AX
44291cat >>confdefs.h <<\_ACEOF
44292#define HAVE_FST_MOUNT 1
44293_ACEOF
ea04106b 44294
ea04106b 44295
42f7b73b
AX
44296else
44297 $as_echo "$as_me: failed program was:" >&5
44298sed 's/^/| /' conftest.$ac_ext >&5
ea04106b 44299
42f7b73b 44300 { $as_echo "$as_me:$LINENO: result: no" >&5
ea04106b
AX
44301$as_echo "no" >&6; }
44302
ea04106b 44303
ea04106b 44304
42f7b73b 44305fi
ea04106b 44306
42f7b73b 44307 rm -Rf build
ea04106b 44308
ea04106b
AX
44309
44310
ea04106b 44311
42f7b73b
AX
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; }
ea04106b
AX
44314
44315
44316cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
44317/* confdefs.h. */
44318_ACEOF
44319cat confdefs.h >>conftest.$ac_ext
44320cat >>conftest.$ac_ext <<_ACEOF
44321/* end confdefs.h. */
ea04106b
AX
44322
44323
42f7b73b
AX
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 };
ea04106b
AX
44335
44336int
44337main (void)
44338{
44339
ea04106b
AX
44340
44341 ;
44342 return 0;
44343}
44344
44345_ACEOF
44346
44347
44348
44349cat - <<_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
42f7b73b 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'
cae5b340 44359 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
44360 (eval $ac_try) 2>&5
44361 ac_status=$?
cae5b340
AX
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
ea04106b
AX
44365 (eval $ac_try) 2>&5
44366 ac_status=$?
cae5b340
AX
44367 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
44368 (exit $ac_status); }; }; then
ea04106b 44369
42f7b73b
AX
44370 { $as_echo "$as_me:$LINENO: result: yes" >&5
44371$as_echo "yes" >&6; }
ea04106b 44372
42f7b73b
AX
44373cat >>confdefs.h <<\_ACEOF
44374#define HAVE_SHRINK 1
44375_ACEOF
ea04106b 44376
ea04106b 44377
ea04106b 44378
42f7b73b
AX
44379else
44380 $as_echo "$as_me: failed program was:" >&5
44381sed 's/^/| /' conftest.$ac_ext >&5
ea04106b 44382
cae5b340 44383 { $as_echo "$as_me:$LINENO: result: no" >&5
ea04106b
AX
44384$as_echo "no" >&6; }
44385
ea04106b 44386
ea04106b 44387
42f7b73b 44388fi
ea04106b 44389
42f7b73b 44390 rm -Rf build
ea04106b 44391
ea04106b
AX
44392
44393
ea04106b 44394
42f7b73b
AX
44395 { $as_echo "$as_me:$LINENO: checking whether shrink_control has nid" >&5
44396$as_echo_n "checking whether shrink_control has nid... " >&6; }
ea04106b
AX
44397
44398
44399cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
44400/* confdefs.h. */
44401_ACEOF
44402cat confdefs.h >>conftest.$ac_ext
44403cat >>conftest.$ac_ext <<_ACEOF
44404/* end confdefs.h. */
ea04106b
AX
44405
44406
42f7b73b 44407 #include <linux/fs.h>
ea04106b
AX
44408
44409int
44410main (void)
44411{
44412
42f7b73b
AX
44413 struct shrink_control sc __attribute__ ((unused));
44414 unsigned long scnidsize __attribute__ ((unused)) =
44415 sizeof(sc.nid);
ea04106b
AX
44416
44417 ;
44418 return 0;
44419}
44420
44421_ACEOF
44422
44423
44424
44425cat - <<_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
42f7b73b 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'
cae5b340 44435 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
44436 (eval $ac_try) 2>&5
44437 ac_status=$?
cae5b340
AX
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
ea04106b
AX
44441 (eval $ac_try) 2>&5
44442 ac_status=$?
cae5b340
AX
44443 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
44444 (exit $ac_status); }; }; then
42f7b73b
AX
44445
44446 { $as_echo "$as_me:$LINENO: result: yes" >&5
44447$as_echo "yes" >&6; }
44448
44449cat >>confdefs.h <<\_ACEOF
44450#define SHRINK_CONTROL_HAS_NID 1
44451_ACEOF
44452
44453
ea04106b
AX
44454else
44455 $as_echo "$as_me: failed program was:" >&5
44456sed 's/^/| /' conftest.$ac_ext >&5
42f7b73b
AX
44457
44458 { $as_echo "$as_me:$LINENO: result: no" >&5
44459$as_echo "no" >&6; }
44460
ea04106b
AX
44461
44462
44463fi
cae5b340 44464
ea04106b
AX
44465 rm -Rf build
44466
44467
ea04106b 44468
ea04106b 44469
42f7b73b
AX
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; }
ea04106b 44472
ea04106b 44473
42f7b73b
AX
44474cat confdefs.h - <<_ACEOF >conftest.c
44475/* confdefs.h. */
44476_ACEOF
44477cat confdefs.h >>conftest.$ac_ext
44478cat >>conftest.$ac_ext <<_ACEOF
44479/* end confdefs.h. */
e10b0808 44480
e10b0808 44481
42f7b73b
AX
44482 #include <linux/fs.h>
44483
44484int
44485main (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
44500cat - <<_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
e10b0808 44520
cae5b340 44521 { $as_echo "$as_me:$LINENO: result: yes" >&5
e10b0808
AX
44522$as_echo "yes" >&6; }
44523
cae5b340 44524cat >>confdefs.h <<\_ACEOF
42f7b73b 44525#define HAVE_S_INSTANCES_LIST_HEAD 1
cae5b340 44526_ACEOF
e10b0808
AX
44527
44528
42f7b73b
AX
44529else
44530 $as_echo "$as_me: failed program was:" >&5
44531sed 's/^/| /' conftest.$ac_ext >&5
44532
44533 { $as_echo "$as_me:$LINENO: result: no" >&5
44534$as_echo "no" >&6; }
e10b0808
AX
44535
44536
42f7b73b
AX
44537
44538fi
44539
44540 rm -Rf build
e10b0808 44541
e10b0808
AX
44542
44543
42f7b73b
AX
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
e10b0808 44548cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
44549/* confdefs.h. */
44550_ACEOF
44551cat confdefs.h >>conftest.$ac_ext
44552cat >>conftest.$ac_ext <<_ACEOF
44553/* end confdefs.h. */
e10b0808
AX
44554
44555
42f7b73b 44556 #include <linux/fs.h>
e10b0808 44557
e10b0808
AX
44558int
44559main (void)
44560{
44561
42f7b73b
AX
44562 struct super_block sb __attribute__ ((unused));
44563 sb.s_d_op = NULL;
e10b0808
AX
44564
44565 ;
44566 return 0;
44567}
44568
44569_ACEOF
44570
44571
44572
44573cat - <<_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
42f7b73b 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'
cae5b340 44583 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
e10b0808
AX
44584 (eval $ac_try) 2>&5
44585 ac_status=$?
cae5b340
AX
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
e10b0808
AX
44589 (eval $ac_try) 2>&5
44590 ac_status=$?
cae5b340
AX
44591 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
44592 (exit $ac_status); }; }; then
e10b0808 44593
42f7b73b
AX
44594 { $as_echo "$as_me:$LINENO: result: yes" >&5
44595$as_echo "yes" >&6; }
e10b0808 44596
42f7b73b
AX
44597cat >>confdefs.h <<\_ACEOF
44598#define HAVE_S_D_OP 1
44599_ACEOF
e10b0808 44600
e10b0808 44601
42f7b73b
AX
44602else
44603 $as_echo "$as_me: failed program was:" >&5
44604sed 's/^/| /' conftest.$ac_ext >&5
cae5b340
AX
44605
44606 { $as_echo "$as_me:$LINENO: result: no" >&5
e10b0808
AX
44607$as_echo "no" >&6; }
44608
e10b0808
AX
44609
44610
42f7b73b 44611fi
cae5b340 44612
42f7b73b 44613 rm -Rf build
cae5b340
AX
44614
44615
e10b0808 44616
cae5b340 44617
42f7b73b
AX
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; }
cae5b340 44620
e10b0808
AX
44621
44622
44623cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
44624/* confdefs.h. */
44625_ACEOF
44626cat confdefs.h >>conftest.$ac_ext
44627cat >>conftest.$ac_ext <<_ACEOF
44628/* end confdefs.h. */
e10b0808
AX
44629
44630
42f7b73b
AX
44631 #include <linux/fs.h>
44632 struct super_block sb;
e10b0808
AX
44633
44634int
44635main (void)
44636{
44637
42f7b73b
AX
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));
e10b0808
AX
44642
44643 ;
44644 return 0;
44645}
44646
44647_ACEOF
44648
44649
44650
44651cat - <<_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
42f7b73b 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'
cae5b340 44661 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
e10b0808
AX
44662 (eval $ac_try) 2>&5
44663 ac_status=$?
cae5b340
AX
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
e10b0808
AX
44667 (eval $ac_try) 2>&5
44668 ac_status=$?
cae5b340
AX
44669 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
44670 (exit $ac_status); }; }; then
42f7b73b 44671 rc=0
e10b0808
AX
44672else
44673 $as_echo "$as_me: failed program was:" >&5
44674sed 's/^/| /' conftest.$ac_ext >&5
42f7b73b 44675 rc=1
ea04106b 44676
ea04106b 44677
e10b0808 44678fi
cae5b340 44679
e10b0808 44680 rm -Rf build
ea04106b 44681
ea04106b 44682
42f7b73b 44683 if test $rc -ne 0; then :
ea04106b 44684
42f7b73b
AX
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; }
ea04106b
AX
44689
44690
44691
44692cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
44693/* confdefs.h. */
44694_ACEOF
44695cat confdefs.h >>conftest.$ac_ext
44696cat >>conftest.$ac_ext <<_ACEOF
44697/* end confdefs.h. */
ea04106b
AX
44698
44699
42f7b73b
AX
44700 #include <linux/backing-dev.h>
44701 struct backing_dev_info bdi;
ea04106b
AX
44702
44703int
44704main (void)
44705{
44706
42f7b73b
AX
44707 char *name = "bdi";
44708 int error __attribute__((unused)) =
44709 bdi_setup_and_register(&bdi, name);
ea04106b
AX
44710
44711 ;
44712 return 0;
44713}
44714
44715_ACEOF
44716
44717
44718
44719cat - <<_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
42f7b73b 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'
cae5b340 44729 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
44730 (eval $ac_try) 2>&5
44731 ac_status=$?
cae5b340
AX
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
ea04106b
AX
44735 (eval $ac_try) 2>&5
44736 ac_status=$?
cae5b340
AX
44737 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
44738 (exit $ac_status); }; }; then
42f7b73b 44739 rc=0
cae5b340
AX
44740else
44741 $as_echo "$as_me: failed program was:" >&5
44742sed 's/^/| /' conftest.$ac_ext >&5
42f7b73b 44743 rc=1
ea04106b 44744
ea04106b 44745
cae5b340 44746fi
ea04106b 44747
cae5b340 44748 rm -Rf build
ea04106b 44749
ea04106b 44750
42f7b73b 44751 if test $rc -ne 0; then :
ea04106b 44752
42f7b73b
AX
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; }
ea04106b
AX
44757
44758
44759
44760cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
44761/* confdefs.h. */
44762_ACEOF
44763cat confdefs.h >>conftest.$ac_ext
44764cat >>conftest.$ac_ext <<_ACEOF
44765/* end confdefs.h. */
ea04106b
AX
44766
44767
42f7b73b
AX
44768 #include <linux/backing-dev.h>
44769 struct backing_dev_info bdi;
ea04106b
AX
44770
44771int
44772main (void)
44773{
44774
42f7b73b
AX
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);
ea04106b
AX
44779
44780 ;
44781 return 0;
44782}
44783
44784_ACEOF
44785
44786
44787
44788cat - <<_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
42f7b73b 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'
cae5b340 44798 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
44799 (eval $ac_try) 2>&5
44800 ac_status=$?
cae5b340
AX
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
ea04106b
AX
44804 (eval $ac_try) 2>&5
44805 ac_status=$?
cae5b340
AX
44806 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
44807 (exit $ac_status); }; }; then
ea04106b
AX
44808 rc=0
44809else
44810 $as_echo "$as_me: failed program was:" >&5
44811sed 's/^/| /' conftest.$ac_ext >&5
44812 rc=1
44813
44814
44815fi
cae5b340 44816
ea04106b
AX
44817 rm -Rf build
44818
44819
44820 if test $rc -ne 0; then :
44821
42f7b73b 44822 { $as_echo "$as_me:$LINENO: result: no" >&5
ea04106b
AX
44823$as_echo "no" >&6; }
44824
44825 else
44826 if test "x$enable_linux_builtin" != xyes; then
44827
42f7b73b 44828 grep -q -E '[[:space:]]bdi_setup_and_register[[:space:]]' \
ea04106b
AX
44829 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
44830 rc=$?
44831 if test $rc -ne 0; then
44832 export=0
42f7b73b
AX
44833 for file in mm/backing-dev.c; do
44834 grep -q -E "EXPORT_SYMBOL.*(bdi_setup_and_register)" \
ea04106b
AX
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
42f7b73b 44854 { $as_echo "$as_me:$LINENO: result: no" >&5
ea04106b
AX
44855$as_echo "no" >&6; }
44856
44857 else :
44858
42f7b73b 44859 { $as_echo "$as_me:$LINENO: result: yes" >&5
ea04106b
AX
44860$as_echo "yes" >&6; }
44861
cae5b340 44862cat >>confdefs.h <<\_ACEOF
42f7b73b 44863#define HAVE_3ARGS_BDI_SETUP_AND_REGISTER 1
cae5b340 44864_ACEOF
ea04106b
AX
44865
44866
44867 fi
44868 fi
44869
44870
42f7b73b
AX
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; }
ea04106b 44904
ea04106b
AX
44905
44906
44907cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
44908/* confdefs.h. */
44909_ACEOF
44910cat confdefs.h >>conftest.$ac_ext
44911cat >>conftest.$ac_ext <<_ACEOF
44912/* end confdefs.h. */
ea04106b
AX
44913
44914
42f7b73b
AX
44915 #include <linux/backing-dev.h>
44916 struct backing_dev_info bdi;
ea04106b
AX
44917
44918int
44919main (void)
44920{
44921
42f7b73b
AX
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);
ea04106b
AX
44926
44927 ;
44928 return 0;
44929}
44930
44931_ACEOF
44932
44933
44934
44935cat - <<_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
42f7b73b 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'
cae5b340 44945 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
44946 (eval $ac_try) 2>&5
44947 ac_status=$?
cae5b340
AX
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
ea04106b
AX
44951 (eval $ac_try) 2>&5
44952 ac_status=$?
cae5b340
AX
44953 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
44954 (exit $ac_status); }; }; then
42f7b73b
AX
44955 rc=0
44956else
44957 $as_echo "$as_me: failed program was:" >&5
44958sed 's/^/| /' conftest.$ac_ext >&5
44959 rc=1
ea04106b 44960
42f7b73b
AX
44961
44962fi
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
ea04106b
AX
45007$as_echo "yes" >&6; }
45008
cae5b340 45009cat >>confdefs.h <<\_ACEOF
42f7b73b 45010#define HAVE_3ARGS_BDI_SETUP_AND_REGISTER 1
cae5b340 45011_ACEOF
ea04106b
AX
45012
45013
42f7b73b
AX
45014 fi
45015 fi
ea04106b 45016
ea04106b 45017
42f7b73b 45018 else :
ea04106b 45019
42f7b73b
AX
45020 { $as_echo "$as_me:$LINENO: result: yes" >&5
45021$as_echo "yes" >&6; }
ea04106b 45022
42f7b73b
AX
45023cat >>confdefs.h <<\_ACEOF
45024#define HAVE_2ARGS_BDI_SETUP_AND_REGISTER 1
45025_ACEOF
45026
45027
45028 fi
45029 fi
cae5b340 45030
ea04106b 45031
42f7b73b
AX
45032 else
45033 if test "x$enable_linux_builtin" != xyes; then
ea04106b 45034
42f7b73b
AX
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
ea04106b 45057
42f7b73b
AX
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; }
ea04106b 45065
ea04106b
AX
45066
45067
45068cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
45069/* confdefs.h. */
45070_ACEOF
45071cat confdefs.h >>conftest.$ac_ext
45072cat >>conftest.$ac_ext <<_ACEOF
45073/* end confdefs.h. */
ea04106b
AX
45074
45075
42f7b73b
AX
45076 #include <linux/backing-dev.h>
45077 struct backing_dev_info bdi;
ea04106b
AX
45078
45079int
45080main (void)
45081{
45082
42f7b73b
AX
45083 char *name = "bdi";
45084 int error __attribute__((unused)) =
45085 bdi_setup_and_register(&bdi, name);
ea04106b
AX
45086
45087 ;
45088 return 0;
45089}
45090
45091_ACEOF
45092
45093
45094
45095cat - <<_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
42f7b73b 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'
cae5b340 45105 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
45106 (eval $ac_try) 2>&5
45107 ac_status=$?
cae5b340
AX
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
ea04106b
AX
45111 (eval $ac_try) 2>&5
45112 ac_status=$?
cae5b340
AX
45113 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
45114 (exit $ac_status); }; }; then
42f7b73b 45115 rc=0
ea04106b
AX
45116else
45117 $as_echo "$as_me: failed program was:" >&5
45118sed 's/^/| /' conftest.$ac_ext >&5
42f7b73b 45119 rc=1
ea04106b
AX
45120
45121
45122fi
cae5b340 45123
ea04106b
AX
45124 rm -Rf build
45125
45126
42f7b73b 45127 if test $rc -ne 0; then :
ea04106b 45128
42f7b73b
AX
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; }
ea04106b
AX
45133
45134
45135
45136cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
45137/* confdefs.h. */
45138_ACEOF
45139cat confdefs.h >>conftest.$ac_ext
45140cat >>conftest.$ac_ext <<_ACEOF
45141/* end confdefs.h. */
ea04106b
AX
45142
45143
42f7b73b
AX
45144 #include <linux/backing-dev.h>
45145 struct backing_dev_info bdi;
ea04106b
AX
45146
45147int
45148main (void)
45149{
45150
42f7b73b
AX
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);
ea04106b
AX
45155
45156 ;
45157 return 0;
45158}
45159
45160_ACEOF
45161
45162
45163
45164cat - <<_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
42f7b73b 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'
cae5b340 45174 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
45175 (eval $ac_try) 2>&5
45176 ac_status=$?
cae5b340
AX
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
ea04106b
AX
45180 (eval $ac_try) 2>&5
45181 ac_status=$?
cae5b340
AX
45182 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
45183 (exit $ac_status); }; }; then
ea04106b
AX
45184 rc=0
45185else
45186 $as_echo "$as_me: failed program was:" >&5
45187sed 's/^/| /' conftest.$ac_ext >&5
45188 rc=1
45189
45190
45191fi
cae5b340 45192
ea04106b
AX
45193 rm -Rf build
45194
45195
45196 if test $rc -ne 0; then :
45197
42f7b73b 45198 { $as_echo "$as_me:$LINENO: result: no" >&5
ea04106b
AX
45199$as_echo "no" >&6; }
45200
45201 else
45202 if test "x$enable_linux_builtin" != xyes; then
45203
42f7b73b 45204 grep -q -E '[[:space:]]bdi_setup_and_register[[:space:]]' \
ea04106b
AX
45205 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
45206 rc=$?
45207 if test $rc -ne 0; then
45208 export=0
42f7b73b
AX
45209 for file in mm/backing-dev.c; do
45210 grep -q -E "EXPORT_SYMBOL.*(bdi_setup_and_register)" \
ea04106b
AX
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
42f7b73b 45230 { $as_echo "$as_me:$LINENO: result: no" >&5
ea04106b
AX
45231$as_echo "no" >&6; }
45232
45233 else :
45234
42f7b73b 45235 { $as_echo "$as_me:$LINENO: result: yes" >&5
ea04106b
AX
45236$as_echo "yes" >&6; }
45237
cae5b340 45238cat >>confdefs.h <<\_ACEOF
42f7b73b 45239#define HAVE_3ARGS_BDI_SETUP_AND_REGISTER 1
cae5b340 45240_ACEOF
ea04106b
AX
45241
45242
45243 fi
45244 fi
45245
45246
42f7b73b
AX
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; }
ea04106b
AX
45280
45281
45282
45283cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
45284/* confdefs.h. */
45285_ACEOF
45286cat confdefs.h >>conftest.$ac_ext
45287cat >>conftest.$ac_ext <<_ACEOF
45288/* end confdefs.h. */
ea04106b
AX
45289
45290
42f7b73b
AX
45291 #include <linux/backing-dev.h>
45292 struct backing_dev_info bdi;
e10b0808
AX
45293
45294int
45295main (void)
45296{
45297
42f7b73b
AX
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);
e10b0808
AX
45302
45303 ;
45304 return 0;
45305}
45306
45307_ACEOF
45308
45309
45310
45311cat - <<_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
42f7b73b 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'
cae5b340 45321 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
e10b0808
AX
45322 (eval $ac_try) 2>&5
45323 ac_status=$?
cae5b340
AX
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
e10b0808
AX
45327 (eval $ac_try) 2>&5
45328 ac_status=$?
cae5b340
AX
45329 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
45330 (exit $ac_status); }; }; then
42f7b73b 45331 rc=0
e10b0808
AX
45332else
45333 $as_echo "$as_me: failed program was:" >&5
45334sed 's/^/| /' conftest.$ac_ext >&5
42f7b73b 45335 rc=1
e10b0808
AX
45336
45337
45338fi
cae5b340 45339
e10b0808
AX
45340 rm -Rf build
45341
45342
42f7b73b 45343 if test $rc -ne 0; then :
e10b0808 45344
42f7b73b
AX
45345 { $as_echo "$as_me:$LINENO: result: no" >&5
45346$as_echo "no" >&6; }
e10b0808 45347
42f7b73b
AX
45348 else
45349 if test "x$enable_linux_builtin" != xyes; then
e10b0808 45350
42f7b73b
AX
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
e10b0808 45373
42f7b73b
AX
45374 fi
45375 if test $rc -ne 0; then :
e10b0808 45376
42f7b73b
AX
45377 { $as_echo "$as_me:$LINENO: result: no" >&5
45378$as_echo "no" >&6; }
e10b0808 45379
42f7b73b 45380 else :
e10b0808 45381
42f7b73b 45382 { $as_echo "$as_me:$LINENO: result: yes" >&5
e10b0808
AX
45383$as_echo "yes" >&6; }
45384
cae5b340 45385cat >>confdefs.h <<\_ACEOF
42f7b73b 45386#define HAVE_3ARGS_BDI_SETUP_AND_REGISTER 1
cae5b340 45387_ACEOF
e10b0808
AX
45388
45389
42f7b73b
AX
45390 fi
45391 fi
ea04106b 45392
e10b0808 45393
42f7b73b 45394 else :
ea04106b 45395
42f7b73b
AX
45396 { $as_echo "$as_me:$LINENO: result: yes" >&5
45397$as_echo "yes" >&6; }
ea04106b 45398
42f7b73b
AX
45399cat >>confdefs.h <<\_ACEOF
45400#define HAVE_2ARGS_BDI_SETUP_AND_REGISTER 1
ea04106b
AX
45401_ACEOF
45402
45403
42f7b73b
AX
45404 fi
45405 fi
ea04106b
AX
45406
45407
42f7b73b 45408 else :
ea04106b 45409
cae5b340 45410 { $as_echo "$as_me:$LINENO: result: yes" >&5
e10b0808 45411$as_echo "yes" >&6; }
ea04106b 45412
cae5b340 45413cat >>confdefs.h <<\_ACEOF
42f7b73b 45414#define HAVE_SUPER_SETUP_BDI_NAME 1
cae5b340 45415_ACEOF
ea04106b 45416
ea04106b 45417
42f7b73b
AX
45418 fi
45419 fi
ea04106b
AX
45420
45421
45422
42f7b73b
AX
45423 { $as_echo "$as_me:$LINENO: checking whether set_nlink() is available" >&5
45424$as_echo_n "checking whether set_nlink() is available... " >&6; }
ea04106b
AX
45425
45426
45427cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
45428/* confdefs.h. */
45429_ACEOF
45430cat confdefs.h >>conftest.$ac_ext
45431cat >>conftest.$ac_ext <<_ACEOF
45432/* end confdefs.h. */
ea04106b
AX
45433
45434
e10b0808 45435 #include <linux/fs.h>
ea04106b
AX
45436
45437int
45438main (void)
45439{
45440
42f7b73b
AX
45441 struct inode node;
45442 unsigned int link = 0;
45443 (void) set_nlink(&node, link);
ea04106b
AX
45444
45445 ;
45446 return 0;
45447}
45448
45449_ACEOF
45450
45451
45452
45453cat - <<_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
42f7b73b 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'
cae5b340 45463 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
45464 (eval $ac_try) 2>&5
45465 ac_status=$?
cae5b340
AX
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
ea04106b
AX
45469 (eval $ac_try) 2>&5
45470 ac_status=$?
cae5b340
AX
45471 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
45472 (exit $ac_status); }; }; then
ea04106b 45473
cae5b340 45474 { $as_echo "$as_me:$LINENO: result: yes" >&5
ea04106b
AX
45475$as_echo "yes" >&6; }
45476
cae5b340 45477cat >>confdefs.h <<\_ACEOF
42f7b73b 45478#define HAVE_SET_NLINK 1
cae5b340 45479_ACEOF
ea04106b
AX
45480
45481
45482else
45483 $as_echo "$as_me: failed program was:" >&5
45484sed 's/^/| /' conftest.$ac_ext >&5
45485
cae5b340 45486 { $as_echo "$as_me:$LINENO: result: no" >&5
ea04106b
AX
45487$as_echo "no" >&6; }
45488
45489
45490
45491fi
cae5b340 45492
ea04106b
AX
45493 rm -Rf build
45494
45495
45496
45497
42f7b73b
AX
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}"
ea04106b
AX
45502
45503
45504cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
45505/* confdefs.h. */
45506_ACEOF
45507cat confdefs.h >>conftest.$ac_ext
45508cat >>conftest.$ac_ext <<_ACEOF
45509/* end confdefs.h. */
ea04106b
AX
45510
45511
42f7b73b
AX
45512 #include <linux/blkdev.h>
45513 #include <linux/elevator.h>
ea04106b
AX
45514
45515int
45516main (void)
45517{
45518
42f7b73b
AX
45519 int ret;
45520 struct request_queue *q = NULL;
45521 char *elevator = NULL;
45522 ret = elevator_change(q, elevator);
ea04106b
AX
45523
45524 ;
45525 return 0;
45526}
45527
45528_ACEOF
45529
45530
45531
45532cat - <<_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
42f7b73b 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'
cae5b340 45542 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
45543 (eval $ac_try) 2>&5
45544 ac_status=$?
cae5b340
AX
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
ea04106b
AX
45548 (eval $ac_try) 2>&5
45549 ac_status=$?
cae5b340
AX
45550 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
45551 (exit $ac_status); }; }; then
42f7b73b
AX
45552
45553 { $as_echo "$as_me:$LINENO: result: yes" >&5
45554$as_echo "yes" >&6; }
45555
45556cat >>confdefs.h <<\_ACEOF
45557#define HAVE_ELEVATOR_CHANGE 1
45558_ACEOF
45559
45560
ea04106b
AX
45561else
45562 $as_echo "$as_me: failed program was:" >&5
45563sed 's/^/| /' conftest.$ac_ext >&5
42f7b73b
AX
45564
45565 { $as_echo "$as_me:$LINENO: result: no" >&5
45566$as_echo "no" >&6; }
45567
ea04106b
AX
45568
45569
45570fi
cae5b340 45571
ea04106b
AX
45572 rm -Rf build
45573
45574
42f7b73b 45575 EXTRA_KCFLAGS="$tmp_flags"
ea04106b 45576
42f7b73b
AX
45577 { $as_echo "$as_me:$LINENO: checking whether sget() wants 5 args" >&5
45578$as_echo_n "checking whether sget() wants 5 args... " >&6; }
ea04106b
AX
45579
45580
45581cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
45582/* confdefs.h. */
45583_ACEOF
45584cat confdefs.h >>conftest.$ac_ext
45585cat >>conftest.$ac_ext <<_ACEOF
45586/* end confdefs.h. */
ea04106b
AX
45587
45588
42f7b73b 45589 #include <linux/fs.h>
ea04106b
AX
45590
45591int
45592main (void)
45593{
45594
42f7b73b
AX
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);
ea04106b
AX
45601
45602 ;
45603 return 0;
45604}
45605
45606_ACEOF
45607
45608
45609
45610cat - <<_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
42f7b73b 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'
cae5b340 45620 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
45621 (eval $ac_try) 2>&5
45622 ac_status=$?
cae5b340
AX
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
ea04106b
AX
45626 (eval $ac_try) 2>&5
45627 ac_status=$?
cae5b340
AX
45628 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
45629 (exit $ac_status); }; }; then
42f7b73b
AX
45630
45631 { $as_echo "$as_me:$LINENO: result: yes" >&5
45632$as_echo "yes" >&6; }
45633
45634cat >>confdefs.h <<\_ACEOF
45635#define HAVE_5ARG_SGET 1
45636_ACEOF
45637
45638
ea04106b
AX
45639else
45640 $as_echo "$as_me: failed program was:" >&5
45641sed 's/^/| /' conftest.$ac_ext >&5
42f7b73b
AX
45642
45643 { $as_echo "$as_me:$LINENO: result: no" >&5
45644$as_echo "no" >&6; }
45645
ea04106b
AX
45646
45647
45648fi
cae5b340 45649
ea04106b
AX
45650 rm -Rf build
45651
45652
ea04106b 45653
42f7b73b
AX
45654 { $as_echo "$as_me:$LINENO: checking whether lseek_execute() is available" >&5
45655$as_echo_n "checking whether lseek_execute() is available... " >&6; }
ea04106b
AX
45656
45657
ea04106b 45658
e10b0808 45659cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
45660/* confdefs.h. */
45661_ACEOF
45662cat confdefs.h >>conftest.$ac_ext
45663cat >>conftest.$ac_ext <<_ACEOF
45664/* end confdefs.h. */
ea04106b 45665
e10b0808 45666
42f7b73b 45667 #include <linux/fs.h>
ea04106b
AX
45668
45669int
45670main (void)
45671{
45672
42f7b73b
AX
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);
ea04106b
AX
45679
45680 ;
45681 return 0;
45682}
45683
45684_ACEOF
45685
45686
45687
45688cat - <<_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
42f7b73b 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'
cae5b340 45698 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
45699 (eval $ac_try) 2>&5
45700 ac_status=$?
cae5b340
AX
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
ea04106b
AX
45704 (eval $ac_try) 2>&5
45705 ac_status=$?
cae5b340
AX
45706 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
45707 (exit $ac_status); }; }; then
e10b0808 45708 rc=0
ea04106b
AX
45709else
45710 $as_echo "$as_me: failed program was:" >&5
45711sed 's/^/| /' conftest.$ac_ext >&5
e10b0808 45712 rc=1
ea04106b
AX
45713
45714
45715fi
cae5b340 45716
ea04106b
AX
45717 rm -Rf build
45718
45719
e10b0808 45720 if test $rc -ne 0; then :
ea04106b 45721
42f7b73b 45722 { $as_echo "$as_me:$LINENO: result: no" >&5
e10b0808 45723$as_echo "no" >&6; }
ea04106b 45724
e10b0808
AX
45725 else
45726 if test "x$enable_linux_builtin" != xyes; then
ea04106b 45727
42f7b73b 45728 grep -q -E '[[:space:]]lseek_exclusive[[:space:]]' \
e10b0808
AX
45729 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
45730 rc=$?
45731 if test $rc -ne 0; then
45732 export=0
42f7b73b
AX
45733 for file in fs/read_write.c; do
45734 grep -q -E "EXPORT_SYMBOL.*(lseek_exclusive)" \
e10b0808
AX
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
ea04106b 45750
e10b0808
AX
45751 fi
45752 if test $rc -ne 0; then :
ea04106b 45753
42f7b73b 45754 { $as_echo "$as_me:$LINENO: result: no" >&5
e10b0808 45755$as_echo "no" >&6; }
ea04106b 45756
e10b0808 45757 else :
ea04106b 45758
42f7b73b 45759 { $as_echo "$as_me:$LINENO: result: yes" >&5
ea04106b
AX
45760$as_echo "yes" >&6; }
45761
cae5b340 45762cat >>confdefs.h <<\_ACEOF
42f7b73b 45763#define HAVE_LSEEK_EXECUTE 1
cae5b340 45764_ACEOF
ea04106b
AX
45765
45766
e10b0808
AX
45767 fi
45768 fi
ea04106b 45769
ea04106b 45770
e10b0808 45771
42f7b73b
AX
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; }
ea04106b
AX
45774
45775
45776cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
45777/* confdefs.h. */
45778_ACEOF
45779cat confdefs.h >>conftest.$ac_ext
45780cat >>conftest.$ac_ext <<_ACEOF
45781/* end confdefs.h. */
ea04106b
AX
45782
45783
42f7b73b
AX
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 };
ea04106b
AX
45792
45793int
45794main (void)
45795{
45796
22929307
AX
45797
45798 ;
45799 return 0;
45800}
45801
45802_ACEOF
45803
45804
45805
45806cat - <<_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
42f7b73b 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'
cae5b340 45816 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22929307
AX
45817 (eval $ac_try) 2>&5
45818 ac_status=$?
cae5b340
AX
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
22929307
AX
45822 (eval $ac_try) 2>&5
45823 ac_status=$?
cae5b340
AX
45824 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
45825 (exit $ac_status); }; }; then
22929307 45826
42f7b73b 45827 { $as_echo "$as_me:$LINENO: result: yes" >&5
22929307
AX
45828$as_echo "yes" >&6; }
45829
cae5b340 45830cat >>confdefs.h <<\_ACEOF
42f7b73b 45831#define HAVE_VFS_ITERATE_SHARED 1
cae5b340 45832_ACEOF
22929307
AX
45833
45834
42f7b73b
AX
45835else
45836 $as_echo "$as_me: failed program was:" >&5
45837sed 's/^/| /' conftest.$ac_ext >&5
22929307 45838
cae5b340 45839 { $as_echo "$as_me:$LINENO: result: no" >&5
22929307 45840$as_echo "no" >&6; }
22929307 45841
42f7b73b
AX
45842 { $as_echo "$as_me:$LINENO: checking whether fops->iterate() is available" >&5
45843$as_echo_n "checking whether fops->iterate() is available... " >&6; }
22929307
AX
45844
45845
45846cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
45847/* confdefs.h. */
45848_ACEOF
45849cat confdefs.h >>conftest.$ac_ext
45850cat >>conftest.$ac_ext <<_ACEOF
45851/* end confdefs.h. */
22929307
AX
45852
45853
42f7b73b
AX
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
22929307
AX
45866
45867int
45868main (void)
45869{
45870
22929307
AX
45871
45872 ;
45873 return 0;
45874}
45875
45876_ACEOF
45877
45878
45879
45880cat - <<_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
42f7b73b 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'
cae5b340 45890 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22929307
AX
45891 (eval $ac_try) 2>&5
45892 ac_status=$?
cae5b340
AX
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
22929307
AX
45896 (eval $ac_try) 2>&5
45897 ac_status=$?
cae5b340
AX
45898 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
45899 (exit $ac_status); }; }; then
22929307 45900
42f7b73b
AX
45901 { $as_echo "$as_me:$LINENO: result: yes" >&5
45902$as_echo "yes" >&6; }
cae5b340 45903
42f7b73b
AX
45904cat >>confdefs.h <<\_ACEOF
45905#define HAVE_VFS_ITERATE 1
45906_ACEOF
22929307
AX
45907
45908
42f7b73b
AX
45909else
45910 $as_echo "$as_me: failed program was:" >&5
45911sed 's/^/| /' conftest.$ac_ext >&5
22929307 45912
cae5b340 45913 { $as_echo "$as_me:$LINENO: result: no" >&5
22929307 45914$as_echo "no" >&6; }
22929307 45915
42f7b73b
AX
45916 { $as_echo "$as_me:$LINENO: checking whether fops->readdir() is available" >&5
45917$as_echo_n "checking whether fops->readdir() is available... " >&6; }
22929307
AX
45918
45919
45920cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
45921/* confdefs.h. */
45922_ACEOF
45923cat confdefs.h >>conftest.$ac_ext
45924cat >>conftest.$ac_ext <<_ACEOF
45925/* end confdefs.h. */
22929307
AX
45926
45927
42f7b73b
AX
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 };
22929307
AX
45936
45937int
45938main (void)
45939{
45940
22929307
AX
45941
45942 ;
45943 return 0;
45944}
45945
45946_ACEOF
45947
45948
45949
45950cat - <<_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
42f7b73b 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'
cae5b340 45960 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22929307
AX
45961 (eval $ac_try) 2>&5
45962 ac_status=$?
cae5b340
AX
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
22929307
AX
45966 (eval $ac_try) 2>&5
45967 ac_status=$?
cae5b340
AX
45968 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
45969 (exit $ac_status); }; }; then
42f7b73b
AX
45970
45971 { $as_echo "$as_me:$LINENO: result: yes" >&5
45972$as_echo "yes" >&6; }
45973
45974cat >>confdefs.h <<\_ACEOF
45975#define HAVE_VFS_READDIR 1
45976_ACEOF
45977
45978
22929307
AX
45979else
45980 $as_echo "$as_me: failed program was:" >&5
45981sed 's/^/| /' conftest.$ac_ext >&5
22929307 45982
42f7b73b
AX
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; }; }
22929307 45986
22929307
AX
45987
45988
42f7b73b 45989fi
22929307 45990
42f7b73b 45991 rm -Rf build
22929307 45992
22929307 45993
22929307 45994
22929307 45995
22929307 45996
42f7b73b 45997fi
22929307 45998
42f7b73b 45999 rm -Rf build
22929307 46000
22929307
AX
46001
46002
22929307
AX
46003
46004
42f7b73b 46005fi
22929307 46006
42f7b73b 46007 rm -Rf build
22929307 46008
22929307 46009
22929307 46010
42f7b73b
AX
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; }
22929307
AX
46013
46014
46015cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
46016/* confdefs.h. */
46017_ACEOF
46018cat confdefs.h >>conftest.$ac_ext
46019cat >>conftest.$ac_ext <<_ACEOF
46020/* end confdefs.h. */
22929307
AX
46021
46022
42f7b73b
AX
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 };
22929307
AX
46035
46036int
46037main (void)
46038{
46039
22929307
AX
46040
46041 ;
46042 return 0;
46043}
46044
46045_ACEOF
46046
46047
46048
46049cat - <<_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
42f7b73b 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'
cae5b340 46059 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22929307
AX
46060 (eval $ac_try) 2>&5
46061 ac_status=$?
cae5b340
AX
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
22929307
AX
46065 (eval $ac_try) 2>&5
46066 ac_status=$?
cae5b340
AX
46067 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
46068 (exit $ac_status); }; }; then
22929307 46069
42f7b73b
AX
46070 { $as_echo "$as_me:$LINENO: result: yes" >&5
46071$as_echo "yes" >&6; }
22929307 46072
42f7b73b
AX
46073cat >>confdefs.h <<\_ACEOF
46074#define HAVE_VFS_RW_ITERATE 1
46075_ACEOF
cae5b340 46076
22929307 46077
42f7b73b
AX
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; }
22929307 46080
22929307 46081
42f7b73b
AX
46082cat confdefs.h - <<_ACEOF >conftest.c
46083/* confdefs.h. */
46084_ACEOF
46085cat confdefs.h >>conftest.$ac_ext
46086cat >>conftest.$ac_ext <<_ACEOF
46087/* end confdefs.h. */
22929307 46088
22929307 46089
42f7b73b 46090 #include <linux/fs.h>
22929307 46091
42f7b73b
AX
46092int
46093main (void)
46094{
22929307 46095
42f7b73b
AX
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;
22929307 46102
42f7b73b
AX
46103 ret = new_sync_read(filp, rbuf, len, &ppos);
46104 ret = new_sync_write(filp, wbuf, len, &ppos);
22929307 46105
42f7b73b
AX
46106 ;
46107 return 0;
46108}
46109
46110_ACEOF
46111
46112
46113
46114cat - <<_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
22929307
AX
46136$as_echo "yes" >&6; }
46137
cae5b340 46138cat >>confdefs.h <<\_ACEOF
42f7b73b 46139#define HAVE_NEW_SYNC_READ 1
cae5b340 46140_ACEOF
22929307
AX
46141
46142
42f7b73b
AX
46143else
46144 $as_echo "$as_me: failed program was:" >&5
46145sed 's/^/| /' conftest.$ac_ext >&5
22929307 46146
42f7b73b
AX
46147 { $as_echo "$as_me:$LINENO: result: no" >&5
46148$as_echo "no" >&6; }
22929307 46149
22929307 46150
22929307 46151
42f7b73b 46152fi
22929307 46153
42f7b73b 46154 rm -Rf build
22929307 46155
22929307
AX
46156
46157
22929307 46158
42f7b73b
AX
46159else
46160 $as_echo "$as_me: failed program was:" >&5
46161sed 's/^/| /' conftest.$ac_ext >&5
22929307 46162
42f7b73b
AX
46163 { $as_echo "$as_me:$LINENO: result: no" >&5
46164$as_echo "no" >&6; }
22929307
AX
46165
46166
22929307 46167
42f7b73b 46168fi
22929307 46169
42f7b73b 46170 rm -Rf build
22929307 46171
42f7b73b
AX
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; }
22929307
AX
46176
46177
46178cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
46179/* confdefs.h. */
46180_ACEOF
46181cat confdefs.h >>conftest.$ac_ext
46182cat >>conftest.$ac_ext <<_ACEOF
46183/* end confdefs.h. */
22929307
AX
46184
46185
46186 #include <linux/fs.h>
46187
42f7b73b 46188
22929307
AX
46189int
46190main (void)
46191{
46192
42f7b73b
AX
46193 struct kiocb *iocb = NULL;
46194 struct iov_iter *iov = NULL;
46195 generic_write_checks(iocb, iov);
ea04106b
AX
46196
46197 ;
46198 return 0;
46199}
46200
46201_ACEOF
46202
46203
46204
46205cat - <<_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
42f7b73b 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'
cae5b340 46215 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
46216 (eval $ac_try) 2>&5
46217 ac_status=$?
cae5b340
AX
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
ea04106b
AX
46221 (eval $ac_try) 2>&5
46222 ac_status=$?
cae5b340
AX
46223 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
46224 (exit $ac_status); }; }; then
ea04106b 46225
cae5b340 46226 { $as_echo "$as_me:$LINENO: result: yes" >&5
ea04106b
AX
46227$as_echo "yes" >&6; }
46228
cae5b340 46229cat >>confdefs.h <<\_ACEOF
42f7b73b 46230#define HAVE_GENERIC_WRITE_CHECKS_KIOCB 1
cae5b340 46231_ACEOF
ea04106b
AX
46232
46233
46234else
46235 $as_echo "$as_me: failed program was:" >&5
46236sed 's/^/| /' conftest.$ac_ext >&5
46237
cae5b340 46238 { $as_echo "$as_me:$LINENO: result: no" >&5
ea04106b
AX
46239$as_echo "no" >&6; }
46240
46241
46242
46243fi
cae5b340 46244
ea04106b
AX
46245 rm -Rf build
46246
46247
46248
e10b0808 46249
42f7b73b
AX
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; }
ea04106b
AX
46252
46253
46254cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
46255/* confdefs.h. */
46256_ACEOF
46257cat confdefs.h >>conftest.$ac_ext
46258cat >>conftest.$ac_ext <<_ACEOF
46259/* end confdefs.h. */
ea04106b
AX
46260
46261
42f7b73b 46262 #include <linux/pagemap.h>
ea04106b
AX
46263
46264int
46265main (void)
46266{
46267
42f7b73b
AX
46268 struct page page;
46269 kmap_atomic(&page);
ea04106b
AX
46270
46271 ;
46272 return 0;
46273}
46274
46275_ACEOF
46276
46277
46278
46279cat - <<_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
42f7b73b 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'
cae5b340 46289 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
46290 (eval $ac_try) 2>&5
46291 ac_status=$?
cae5b340
AX
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
ea04106b
AX
46295 (eval $ac_try) 2>&5
46296 ac_status=$?
cae5b340
AX
46297 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
46298 (exit $ac_status); }; }; then
ea04106b 46299
cae5b340 46300 { $as_echo "$as_me:$LINENO: result: yes" >&5
ea04106b
AX
46301$as_echo "yes" >&6; }
46302
cae5b340 46303cat >>confdefs.h <<\_ACEOF
42f7b73b 46304#define HAVE_1ARG_KMAP_ATOMIC 1
cae5b340 46305_ACEOF
ea04106b
AX
46306
46307
46308else
46309 $as_echo "$as_me: failed program was:" >&5
46310sed 's/^/| /' conftest.$ac_ext >&5
46311
cae5b340 46312 { $as_echo "$as_me:$LINENO: result: no" >&5
ea04106b
AX
46313$as_echo "no" >&6; }
46314
46315
46316
46317fi
cae5b340 46318
ea04106b
AX
46319 rm -Rf build
46320
46321
46322
42f7b73b
AX
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; }
ea04106b
AX
46326
46327
46328cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
46329/* confdefs.h. */
46330_ACEOF
46331cat confdefs.h >>conftest.$ac_ext
46332cat >>conftest.$ac_ext <<_ACEOF
46333/* end confdefs.h. */
ea04106b
AX
46334
46335
42f7b73b 46336 #include <linux/namei.h>
ea04106b
AX
46337
46338int
46339main (void)
46340{
46341
42f7b73b
AX
46342 struct path *p = NULL;
46343 follow_down_one(p);
ea04106b
AX
46344
46345 ;
46346 return 0;
46347}
46348
46349_ACEOF
46350
46351
46352
46353cat - <<_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
42f7b73b 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'
cae5b340 46363 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
46364 (eval $ac_try) 2>&5
46365 ac_status=$?
cae5b340
AX
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
ea04106b
AX
46369 (eval $ac_try) 2>&5
46370 ac_status=$?
cae5b340
AX
46371 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
46372 (exit $ac_status); }; }; then
e10b0808 46373
cae5b340 46374 { $as_echo "$as_me:$LINENO: result: yes" >&5
e10b0808
AX
46375$as_echo "yes" >&6; }
46376
cae5b340 46377cat >>confdefs.h <<\_ACEOF
42f7b73b 46378#define HAVE_FOLLOW_DOWN_ONE 1
cae5b340 46379_ACEOF
e10b0808
AX
46380
46381
ea04106b
AX
46382else
46383 $as_echo "$as_me: failed program was:" >&5
46384sed 's/^/| /' conftest.$ac_ext >&5
e10b0808 46385
cae5b340 46386 { $as_echo "$as_me:$LINENO: result: no" >&5
e10b0808
AX
46387$as_echo "no" >&6; }
46388
ea04106b
AX
46389
46390
46391fi
cae5b340 46392
ea04106b
AX
46393 rm -Rf build
46394
46395
ea04106b 46396
ea04106b 46397
42f7b73b
AX
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; }
ea04106b
AX
46400
46401
46402cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
46403/* confdefs.h. */
46404_ACEOF
46405cat confdefs.h >>conftest.$ac_ext
46406cat >>conftest.$ac_ext <<_ACEOF
46407/* end confdefs.h. */
ea04106b
AX
46408
46409
42f7b73b
AX
46410 #include <linux/blkdev.h>
46411
46412 int make_request(struct request_queue *q, struct bio *bio)
46413 {
46414 return (0);
46415 }
ea04106b
AX
46416
46417int
46418main (void)
46419{
46420
42f7b73b 46421 blk_queue_make_request(NULL, &make_request);
ea04106b
AX
46422
46423 ;
46424 return 0;
46425}
46426
46427_ACEOF
46428
46429
46430
46431cat - <<_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
42f7b73b 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'
cae5b340 46441 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
46442 (eval $ac_try) 2>&5
46443 ac_status=$?
cae5b340
AX
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
ea04106b
AX
46447 (eval $ac_try) 2>&5
46448 ac_status=$?
cae5b340
AX
46449 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
46450 (exit $ac_status); }; }; then
ea04106b 46451
cae5b340 46452 { $as_echo "$as_me:$LINENO: result: yes" >&5
ea04106b
AX
46453$as_echo "yes" >&6; }
46454
cae5b340 46455cat >>confdefs.h <<\_ACEOF
42f7b73b 46456#define MAKE_REQUEST_FN_RET int
cae5b340 46457_ACEOF
ea04106b 46458
ea04106b 46459
42f7b73b
AX
46460cat >>confdefs.h <<\_ACEOF
46461#define HAVE_MAKE_REQUEST_FN_RET_INT 1
46462_ACEOF
ea04106b 46463
ea04106b 46464
42f7b73b
AX
46465else
46466 $as_echo "$as_me: failed program was:" >&5
46467sed 's/^/| /' conftest.$ac_ext >&5
ea04106b 46468
42f7b73b
AX
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; }
ea04106b
AX
46473
46474
46475cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
46476/* confdefs.h. */
46477_ACEOF
46478cat confdefs.h >>conftest.$ac_ext
46479cat >>conftest.$ac_ext <<_ACEOF
46480/* end confdefs.h. */
ea04106b
AX
46481
46482
42f7b73b 46483 #include <linux/blkdev.h>
e10b0808 46484
42f7b73b
AX
46485 void make_request(struct request_queue *q, struct bio *bio)
46486 {
46487 return;
46488 }
ea04106b
AX
46489
46490int
46491main (void)
46492{
46493
42f7b73b 46494 blk_queue_make_request(NULL, &make_request);
ea04106b
AX
46495
46496 ;
46497 return 0;
46498}
46499
46500_ACEOF
46501
46502
46503
e10b0808 46504cat - <<_ACEOF >conftest.h
ea04106b 46505
e10b0808 46506_ACEOF
ea04106b
AX
46507
46508
e10b0808
AX
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
42f7b73b 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'
cae5b340 46514 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
e10b0808
AX
46515 (eval $ac_try) 2>&5
46516 ac_status=$?
cae5b340
AX
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
e10b0808
AX
46520 (eval $ac_try) 2>&5
46521 ac_status=$?
cae5b340
AX
46522 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
46523 (exit $ac_status); }; }; then
ea04106b 46524
42f7b73b 46525 { $as_echo "$as_me:$LINENO: result: yes" >&5
ea04106b
AX
46526$as_echo "yes" >&6; }
46527
cae5b340 46528cat >>confdefs.h <<\_ACEOF
42f7b73b 46529#define MAKE_REQUEST_FN_RET void
cae5b340 46530_ACEOF
22929307
AX
46531
46532
46533else
46534 $as_echo "$as_me: failed program was:" >&5
46535sed 's/^/| /' conftest.$ac_ext >&5
46536
42f7b73b 46537 { $as_echo "$as_me:$LINENO: result: no" >&5
22929307 46538$as_echo "no" >&6; }
42f7b73b
AX
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; }
22929307
AX
46541
46542
46543cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
46544/* confdefs.h. */
46545_ACEOF
46546cat confdefs.h >>conftest.$ac_ext
46547cat >>conftest.$ac_ext <<_ACEOF
46548/* end confdefs.h. */
22929307
AX
46549
46550
42f7b73b 46551 #include <linux/blkdev.h>
22929307 46552
42f7b73b
AX
46553 blk_qc_t make_request(struct request_queue *q, struct bio *bio)
46554 {
46555 return (BLK_QC_T_NONE);
46556 }
22929307
AX
46557
46558int
46559main (void)
46560{
46561
42f7b73b 46562 blk_queue_make_request(NULL, &make_request);
22929307
AX
46563
46564 ;
46565 return 0;
46566}
46567
46568_ACEOF
46569
46570
46571
46572cat - <<_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
42f7b73b 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'
cae5b340 46582 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22929307
AX
46583 (eval $ac_try) 2>&5
46584 ac_status=$?
cae5b340
AX
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
22929307
AX
46588 (eval $ac_try) 2>&5
46589 ac_status=$?
cae5b340
AX
46590 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
46591 (exit $ac_status); }; }; then
22929307 46592
42f7b73b 46593 { $as_echo "$as_me:$LINENO: result: yes" >&5
22929307
AX
46594$as_echo "yes" >&6; }
46595
cae5b340 46596cat >>confdefs.h <<\_ACEOF
42f7b73b
AX
46597#define MAKE_REQUEST_FN_RET blk_qc_t
46598_ACEOF
46599
46600
46601cat >>confdefs.h <<\_ACEOF
46602#define HAVE_MAKE_REQUEST_FN_RET_QC 1
cae5b340 46603_ACEOF
22929307
AX
46604
46605
46606else
46607 $as_echo "$as_me: failed program was:" >&5
46608sed 's/^/| /' conftest.$ac_ext >&5
46609
42f7b73b
AX
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
46618fi
46619
46620 rm -Rf build
46621
46622
46623
46624
46625
46626fi
46627
46628 rm -Rf build
46629
46630
46631
46632
46633
46634fi
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; }
22929307 46643
22929307
AX
46644
46645
46646cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
46647/* confdefs.h. */
46648_ACEOF
46649cat confdefs.h >>conftest.$ac_ext
46650cat >>conftest.$ac_ext <<_ACEOF
46651/* end confdefs.h. */
22929307
AX
46652
46653
42f7b73b 46654 #include <linux/bio.h>
22929307 46655
42f7b73b
AX
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;
22929307
AX
46660
46661int
46662main (void)
46663{
46664
42f7b73b
AX
46665 generic_start_io_acct(0, 0, NULL);
46666 generic_end_io_acct(0, NULL, 0);
22929307
AX
46667
46668 ;
46669 return 0;
46670}
46671
46672_ACEOF
46673
46674
46675
46676cat - <<_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
42f7b73b 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'
cae5b340 46686 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22929307
AX
46687 (eval $ac_try) 2>&5
46688 ac_status=$?
cae5b340
AX
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
22929307
AX
46692 (eval $ac_try) 2>&5
46693 ac_status=$?
cae5b340
AX
46694 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
46695 (exit $ac_status); }; }; then
42f7b73b 46696 rc=0
22929307
AX
46697else
46698 $as_echo "$as_me: failed program was:" >&5
46699sed 's/^/| /' conftest.$ac_ext >&5
42f7b73b 46700 rc=1
22929307
AX
46701
46702
46703fi
cae5b340 46704
22929307
AX
46705 rm -Rf build
46706
46707
42f7b73b 46708 if test $rc -ne 0; then :
22929307 46709
42f7b73b
AX
46710 { $as_echo "$as_me:$LINENO: result: no" >&5
46711$as_echo "no" >&6; }
22929307 46712
42f7b73b
AX
46713 else
46714 if test "x$enable_linux_builtin" != xyes; then
22929307 46715
42f7b73b
AX
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
cae5b340 46738
42f7b73b
AX
46739 fi
46740 if test $rc -ne 0; then :
22929307 46741
42f7b73b
AX
46742 { $as_echo "$as_me:$LINENO: result: no" >&5
46743$as_echo "no" >&6; }
22929307 46744
42f7b73b 46745 else :
22929307 46746
42f7b73b
AX
46747 { $as_echo "$as_me:$LINENO: result: yes" >&5
46748$as_echo "yes" >&6; }
22929307 46749
42f7b73b
AX
46750cat >>confdefs.h <<\_ACEOF
46751#define HAVE_GENERIC_IO_ACCT_3ARG 1
46752_ACEOF
22929307 46753
cae5b340 46754
42f7b73b
AX
46755 fi
46756 fi
22929307
AX
46757
46758
46759
42f7b73b
AX
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
22929307
AX
46763
46764
46765cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
46766/* confdefs.h. */
46767_ACEOF
46768cat confdefs.h >>conftest.$ac_ext
46769cat >>conftest.$ac_ext <<_ACEOF
46770/* end confdefs.h. */
22929307
AX
46771
46772
42f7b73b 46773 #include <linux/bio.h>
22929307 46774
42f7b73b
AX
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;
22929307
AX
46779
46780int
46781main (void)
46782{
46783
42f7b73b
AX
46784 generic_start_io_acct(NULL, 0, 0, NULL);
46785 generic_end_io_acct(NULL, 0, NULL, 0);
22929307
AX
46786
46787 ;
46788 return 0;
46789}
46790
46791_ACEOF
46792
46793
46794
46795cat - <<_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
42f7b73b 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'
cae5b340 46805 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22929307
AX
46806 (eval $ac_try) 2>&5
46807 ac_status=$?
cae5b340
AX
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
22929307
AX
46811 (eval $ac_try) 2>&5
46812 ac_status=$?
cae5b340
AX
46813 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
46814 (exit $ac_status); }; }; then
42f7b73b
AX
46815 rc=0
46816else
46817 $as_echo "$as_me: failed program was:" >&5
46818sed 's/^/| /' conftest.$ac_ext >&5
46819 rc=1
46820
46821
46822fi
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 :
22929307 46865
cae5b340 46866 { $as_echo "$as_me:$LINENO: result: yes" >&5
22929307
AX
46867$as_echo "yes" >&6; }
46868
cae5b340 46869cat >>confdefs.h <<\_ACEOF
42f7b73b 46870#define HAVE_GENERIC_IO_ACCT_4ARG 1
cae5b340 46871_ACEOF
ea04106b 46872
ea04106b 46873
42f7b73b
AX
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; }
ea04106b
AX
46881
46882
46883cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
46884/* confdefs.h. */
46885_ACEOF
46886cat confdefs.h >>conftest.$ac_ext
46887cat >>conftest.$ac_ext <<_ACEOF
46888/* end confdefs.h. */
ea04106b
AX
46889
46890
42f7b73b
AX
46891 #include <linux/kernel.h>
46892 #include <asm/fpu/api.h>
ea04106b
AX
46893
46894int
46895main (void)
46896{
46897
42f7b73b 46898 __kernel_fpu_begin();
ea04106b
AX
46899
46900 ;
46901 return 0;
46902}
46903
46904_ACEOF
46905
46906
46907
46908cat - <<_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
42f7b73b 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'
cae5b340 46918 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
46919 (eval $ac_try) 2>&5
46920 ac_status=$?
cae5b340
AX
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
ea04106b
AX
46924 (eval $ac_try) 2>&5
46925 ac_status=$?
cae5b340
AX
46926 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
46927 (exit $ac_status); }; }; then
ea04106b 46928
cae5b340 46929 { $as_echo "$as_me:$LINENO: result: yes" >&5
68d83c55
AX
46930$as_echo "yes" >&6; }
46931
cae5b340 46932cat >>confdefs.h <<\_ACEOF
42f7b73b 46933#define HAVE_FPU_API_H 1
cae5b340 46934_ACEOF
68d83c55
AX
46935
46936
46937else
46938 $as_echo "$as_me: failed program was:" >&5
46939sed 's/^/| /' conftest.$ac_ext >&5
46940
cae5b340 46941 { $as_echo "$as_me:$LINENO: result: no" >&5
68d83c55
AX
46942$as_echo "no" >&6; }
46943
68d83c55
AX
46944
46945
46946fi
cae5b340 46947
68d83c55
AX
46948 rm -Rf build
46949
46950
46951
46952
42f7b73b
AX
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
46957cat confdefs.h - <<_ACEOF >conftest.c
46958/* confdefs.h. */
46959_ACEOF
46960cat confdefs.h >>conftest.$ac_ext
46961cat >>conftest.$ac_ext <<_ACEOF
46962/* end confdefs.h. */
46963
46964
46965 #include <linux/fs.h>
46966
46967int
46968main (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
46982cat - <<_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
47006cat >>confdefs.h <<\_ACEOF
47007#define HAVE_KUID_HELPERS 1
47008_ACEOF
47009
47010
ea04106b
AX
47011else
47012 $as_echo "$as_me: failed program was:" >&5
47013sed 's/^/| /' conftest.$ac_ext >&5
47014
cae5b340 47015 { $as_echo "$as_me:$LINENO: result: no" >&5
68d83c55 47016$as_echo "no" >&6; }
87dac73d
AX
47017
47018
e10b0808
AX
47019
47020fi
cae5b340 47021
e10b0808
AX
47022 rm -Rf build
47023
47024
47025
42f7b73b
AX
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; }
ea04106b
AX
47029
47030
47031cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
47032/* confdefs.h. */
47033_ACEOF
47034cat confdefs.h >>conftest.$ac_ext
47035cat >>conftest.$ac_ext <<_ACEOF
47036/* end confdefs.h. */
ea04106b
AX
47037
47038
42f7b73b
AX
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 }
e10b0808 47051
42f7b73b 47052 module_param_call(p, param_set, param_get, NULL, 0644);
ea04106b
AX
47053
47054int
47055main (void)
47056{
47057
ea04106b
AX
47058
47059 ;
47060 return 0;
47061}
47062
47063_ACEOF
47064
47065
47066
47067cat - <<_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
42f7b73b 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'
cae5b340 47077 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
47078 (eval $ac_try) 2>&5
47079 ac_status=$?
cae5b340
AX
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
ea04106b
AX
47083 (eval $ac_try) 2>&5
47084 ac_status=$?
cae5b340
AX
47085 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
47086 (exit $ac_status); }; }; then
ea04106b 47087
cae5b340 47088 { $as_echo "$as_me:$LINENO: result: yes" >&5
ea04106b
AX
47089$as_echo "yes" >&6; }
47090
cae5b340 47091cat >>confdefs.h <<\_ACEOF
42f7b73b 47092#define MODULE_PARAM_CALL_CONST 1
cae5b340 47093_ACEOF
ea04106b
AX
47094
47095
47096else
47097 $as_echo "$as_me: failed program was:" >&5
47098sed 's/^/| /' conftest.$ac_ext >&5
47099
cae5b340 47100 { $as_echo "$as_me:$LINENO: result: no" >&5
ea04106b
AX
47101$as_echo "no" >&6; }
47102
47103
47104
47105fi
cae5b340 47106
ea04106b
AX
47107 rm -Rf build
47108
47109
ea04106b 47110
e10b0808 47111
42f7b73b
AX
47112 { $as_echo "$as_me:$LINENO: checking whether iops->rename() wants flags" >&5
47113$as_echo_n "checking whether iops->rename() wants flags... " >&6; }
ea04106b
AX
47114
47115
47116cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
47117/* confdefs.h. */
47118_ACEOF
47119cat confdefs.h >>conftest.$ac_ext
47120cat >>conftest.$ac_ext <<_ACEOF
47121/* end confdefs.h. */
ea04106b
AX
47122
47123
42f7b73b
AX
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 };
ea04106b
AX
47133
47134int
47135main (void)
47136{
47137
ea04106b
AX
47138
47139 ;
47140 return 0;
47141}
47142
47143_ACEOF
47144
47145
47146
47147cat - <<_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
42f7b73b 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'
cae5b340 47157 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
47158 (eval $ac_try) 2>&5
47159 ac_status=$?
cae5b340
AX
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
ea04106b
AX
47163 (eval $ac_try) 2>&5
47164 ac_status=$?
cae5b340
AX
47165 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
47166 (exit $ac_status); }; }; then
ea04106b 47167
cae5b340 47168 { $as_echo "$as_me:$LINENO: result: yes" >&5
ea04106b
AX
47169$as_echo "yes" >&6; }
47170
cae5b340 47171cat >>confdefs.h <<\_ACEOF
42f7b73b 47172#define HAVE_RENAME_WANTS_FLAGS 1
cae5b340 47173_ACEOF
ea04106b
AX
47174
47175
47176else
47177 $as_echo "$as_me: failed program was:" >&5
47178sed 's/^/| /' conftest.$ac_ext >&5
47179
cae5b340 47180 { $as_echo "$as_me:$LINENO: result: no" >&5
ea04106b
AX
47181$as_echo "no" >&6; }
47182
47183
47184
47185fi
cae5b340 47186
ea04106b
AX
47187 rm -Rf build
47188
47189
47190
ea04106b 47191
42f7b73b
AX
47192 { $as_echo "$as_me:$LINENO: checking whether generic_setxattr() exists" >&5
47193$as_echo_n "checking whether generic_setxattr() exists... " >&6; }
ea04106b
AX
47194
47195
47196cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
47197/* confdefs.h. */
47198_ACEOF
47199cat confdefs.h >>conftest.$ac_ext
47200cat >>conftest.$ac_ext <<_ACEOF
47201/* end confdefs.h. */
ea04106b
AX
47202
47203
42f7b73b
AX
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 };
ea04106b
AX
47211
47212int
47213main (void)
47214{
47215
ea04106b
AX
47216
47217 ;
47218 return 0;
47219}
47220
47221_ACEOF
47222
47223
47224
47225cat - <<_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
42f7b73b 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'
cae5b340 47235 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
47236 (eval $ac_try) 2>&5
47237 ac_status=$?
cae5b340
AX
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
ea04106b
AX
47241 (eval $ac_try) 2>&5
47242 ac_status=$?
cae5b340
AX
47243 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
47244 (exit $ac_status); }; }; then
ea04106b 47245
cae5b340 47246 { $as_echo "$as_me:$LINENO: result: yes" >&5
e10b0808 47247$as_echo "yes" >&6; }
ea04106b 47248
cae5b340 47249cat >>confdefs.h <<\_ACEOF
42f7b73b 47250#define HAVE_GENERIC_SETXATTR 1
cae5b340 47251_ACEOF
ea04106b 47252
ea04106b 47253
e10b0808
AX
47254else
47255 $as_echo "$as_me: failed program was:" >&5
47256sed 's/^/| /' conftest.$ac_ext >&5
ea04106b 47257
cae5b340 47258 { $as_echo "$as_me:$LINENO: result: no" >&5
ea04106b
AX
47259$as_echo "no" >&6; }
47260
ea04106b 47261
ea04106b 47262
e10b0808 47263fi
cae5b340 47264
e10b0808 47265 rm -Rf build
ea04106b 47266
ea04106b
AX
47267
47268
42f7b73b
AX
47269 { $as_echo "$as_me:$LINENO: checking whether current_time() exists" >&5
47270$as_echo_n "checking whether current_time() exists... " >&6; }
ea04106b 47271
ea04106b
AX
47272
47273
47274cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
47275/* confdefs.h. */
47276_ACEOF
47277cat confdefs.h >>conftest.$ac_ext
47278cat >>conftest.$ac_ext <<_ACEOF
47279/* end confdefs.h. */
ea04106b
AX
47280
47281
42f7b73b 47282 #include <linux/fs.h>
ea04106b
AX
47283
47284int
47285main (void)
47286{
47287
42f7b73b
AX
47288 struct inode ip;
47289 struct timespec now __attribute__ ((unused));
47290
47291 now = current_time(&ip);
ea04106b
AX
47292
47293 ;
47294 return 0;
47295}
47296
47297_ACEOF
47298
47299
47300
47301cat - <<_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
42f7b73b 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'
cae5b340 47311 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
47312 (eval $ac_try) 2>&5
47313 ac_status=$?
cae5b340
AX
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
ea04106b
AX
47317 (eval $ac_try) 2>&5
47318 ac_status=$?
cae5b340
AX
47319 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
47320 (exit $ac_status); }; }; then
42f7b73b
AX
47321 rc=0
47322else
47323 $as_echo "$as_me: failed program was:" >&5
47324sed 's/^/| /' conftest.$ac_ext >&5
47325 rc=1
47326
47327
47328fi
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 :
ea04106b 47371
cae5b340 47372 { $as_echo "$as_me:$LINENO: result: yes" >&5
ea04106b
AX
47373$as_echo "yes" >&6; }
47374
cae5b340 47375cat >>confdefs.h <<\_ACEOF
42f7b73b 47376#define HAVE_CURRENT_TIME 1
cae5b340 47377_ACEOF
e10b0808
AX
47378
47379
42f7b73b
AX
47380 fi
47381 fi
ea04106b
AX
47382
47383
ea04106b 47384
42f7b73b
AX
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; }
ea04106b
AX
47388
47389
47390cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
47391/* confdefs.h. */
47392_ACEOF
47393cat confdefs.h >>conftest.$ac_ext
47394cat >>conftest.$ac_ext <<_ACEOF
47395/* end confdefs.h. */
ea04106b
AX
47396
47397
42f7b73b
AX
47398 #include <linux/mm.h>
47399 #include <linux/vmstat.h>
ea04106b
AX
47400
47401int
47402main (void)
47403{
47404
42f7b73b 47405 (void) global_node_page_state(0);
ea04106b
AX
47406
47407 ;
47408 return 0;
47409}
47410
47411_ACEOF
47412
47413
47414
47415cat - <<_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
42f7b73b 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'
cae5b340 47425 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
47426 (eval $ac_try) 2>&5
47427 ac_status=$?
cae5b340
AX
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
ea04106b
AX
47431 (eval $ac_try) 2>&5
47432 ac_status=$?
cae5b340
AX
47433 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
47434 (exit $ac_status); }; }; then
ea04106b 47435
42f7b73b 47436 { $as_echo "$as_me:$LINENO: result: yes" >&5
ea04106b
AX
47437$as_echo "yes" >&6; }
47438
cae5b340 47439cat >>confdefs.h <<\_ACEOF
42f7b73b 47440#define ZFS_GLOBAL_NODE_PAGE_STATE 1
cae5b340 47441_ACEOF
ea04106b
AX
47442
47443
47444else
47445 $as_echo "$as_me: failed program was:" >&5
47446sed 's/^/| /' conftest.$ac_ext >&5
47447
42f7b73b 47448 { $as_echo "$as_me:$LINENO: result: no" >&5
94a40997 47449$as_echo "no" >&6; }
42f7b73b
AX
47450
47451
47452
47453fi
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; }
94a40997
AX
47462
47463
47464cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
47465/* confdefs.h. */
47466_ACEOF
47467cat confdefs.h >>conftest.$ac_ext
47468cat >>conftest.$ac_ext <<_ACEOF
47469/* end confdefs.h. */
94a40997
AX
47470
47471
42f7b73b
AX
47472 #include <linux/mm.h>
47473 #include <linux/vmstat.h>
94a40997
AX
47474
47475int
47476main (void)
47477{
47478
42f7b73b 47479 (void) global_zone_page_state(0);
94a40997
AX
47480
47481 ;
47482 return 0;
47483}
47484
47485_ACEOF
47486
47487
47488
47489cat - <<_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
42f7b73b 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'
cae5b340 47499 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
94a40997
AX
47500 (eval $ac_try) 2>&5
47501 ac_status=$?
cae5b340
AX
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
94a40997
AX
47505 (eval $ac_try) 2>&5
47506 ac_status=$?
cae5b340
AX
47507 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
47508 (exit $ac_status); }; }; then
94a40997 47509
42f7b73b 47510 { $as_echo "$as_me:$LINENO: result: yes" >&5
94a40997
AX
47511$as_echo "yes" >&6; }
47512
cae5b340 47513cat >>confdefs.h <<\_ACEOF
42f7b73b 47514#define ZFS_GLOBAL_ZONE_PAGE_STATE 1
cae5b340 47515_ACEOF
94a40997
AX
47516
47517
47518else
47519 $as_echo "$as_me: failed program was:" >&5
47520sed 's/^/| /' conftest.$ac_ext >&5
47521
42f7b73b
AX
47522 { $as_echo "$as_me:$LINENO: result: no" >&5
47523$as_echo "no" >&6; }
94a40997
AX
47524
47525
47526
47527fi
cae5b340 47528
94a40997
AX
47529 rm -Rf build
47530
47531
ea04106b
AX
47532
47533
47534
42f7b73b
AX
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
cae5b340 47543
42f7b73b
AX
47544 { $as_echo "$as_me:$LINENO: result: yes" >&5
47545$as_echo "yes" >&6; }
ea04106b 47546
42f7b73b
AX
47547cat >>confdefs.h <<\_ACEOF
47548#define ZFS_ENUM_NODE_STAT_ITEM_NR_FILE_PAGES 1
47549_ACEOF
ea04106b 47550
42f7b73b 47551 ZFS_ENUM_NODE_STAT_ITEM_NR_FILE_PAGES=1
ea04106b 47552
42f7b73b 47553else
ea04106b 47554
42f7b73b
AX
47555 { $as_echo "$as_me:$LINENO: result: no" >&5
47556$as_echo "no" >&6; }
ea04106b 47557
ea04106b 47558fi
cae5b340 47559
ea04106b
AX
47560
47561
42f7b73b
AX
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
ea04106b 47570
42f7b73b
AX
47571 { $as_echo "$as_me:$LINENO: result: yes" >&5
47572$as_echo "yes" >&6; }
ea04106b 47573
42f7b73b
AX
47574cat >>confdefs.h <<\_ACEOF
47575#define ZFS_ENUM_NODE_STAT_ITEM_NR_INACTIVE_ANON 1
47576_ACEOF
ea04106b 47577
42f7b73b 47578 ZFS_ENUM_NODE_STAT_ITEM_NR_INACTIVE_ANON=1
ea04106b 47579
42f7b73b 47580else
ea04106b 47581
42f7b73b
AX
47582 { $as_echo "$as_me:$LINENO: result: no" >&5
47583$as_echo "no" >&6; }
ea04106b 47584
42f7b73b 47585fi
e10b0808 47586
ea04106b 47587
ea04106b 47588
42f7b73b
AX
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
ea04106b 47597
42f7b73b
AX
47598 { $as_echo "$as_me:$LINENO: result: yes" >&5
47599$as_echo "yes" >&6; }
ea04106b 47600
42f7b73b
AX
47601cat >>confdefs.h <<\_ACEOF
47602#define ZFS_ENUM_NODE_STAT_ITEM_NR_INACTIVE_FILE 1
ea04106b
AX
47603_ACEOF
47604
42f7b73b 47605 ZFS_ENUM_NODE_STAT_ITEM_NR_INACTIVE_FILE=1
ea04106b 47606
42f7b73b 47607else
ea04106b 47608
42f7b73b
AX
47609 { $as_echo "$as_me:$LINENO: result: no" >&5
47610$as_echo "no" >&6; }
ea04106b 47611
42f7b73b 47612fi
ea04106b
AX
47613
47614
42f7b73b
AX
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'
cae5b340 47619 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ea04106b
AX
47620 (eval $ac_try) 2>&5
47621 ac_status=$?
cae5b340
AX
47622 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
47623 (exit $ac_status); }; }; then
ea04106b 47624
42f7b73b
AX
47625 { $as_echo "$as_me:$LINENO: result: yes" >&5
47626$as_echo "yes" >&6; }
cae5b340 47627
42f7b73b
AX
47628cat >>confdefs.h <<\_ACEOF
47629#define ZFS_ENUM_NODE_STAT_ITEM_NR_SLAB_RECLAIMABLE 1
47630_ACEOF
ea04106b 47631
42f7b73b 47632 ZFS_ENUM_NODE_STAT_ITEM_NR_SLAB_RECLAIMABLE=1
ea04106b 47633
42f7b73b 47634else
e10b0808 47635
cae5b340 47636 { $as_echo "$as_me:$LINENO: result: no" >&5
e10b0808
AX
47637$as_echo "no" >&6; }
47638
42f7b73b 47639fi
e10b0808 47640
e10b0808 47641
ea04106b 47642
ea04106b 47643
42f7b73b
AX
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
ea04106b 47652
cae5b340 47653 { $as_echo "$as_me:$LINENO: result: yes" >&5
e10b0808
AX
47654$as_echo "yes" >&6; }
47655
cae5b340 47656cat >>confdefs.h <<\_ACEOF
42f7b73b 47657#define ZFS_ENUM_ZONE_STAT_ITEM_NR_FILE_PAGES 1
cae5b340 47658_ACEOF
ea04106b 47659
42f7b73b 47660 ZFS_ENUM_ZONE_STAT_ITEM_NR_FILE_PAGES=1
ea04106b 47661
42f7b73b
AX
47662else
47663
47664 { $as_echo "$as_me:$LINENO: result: no" >&5
47665$as_echo "no" >&6; }
ea04106b 47666
42f7b73b 47667fi
ea04106b
AX
47668
47669
cae5b340 47670
42f7b73b
AX
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
68d83c55 47679
42f7b73b
AX
47680 { $as_echo "$as_me:$LINENO: result: yes" >&5
47681$as_echo "yes" >&6; }
68d83c55 47682
42f7b73b
AX
47683cat >>confdefs.h <<\_ACEOF
47684#define ZFS_ENUM_ZONE_STAT_ITEM_NR_INACTIVE_ANON 1
cae5b340 47685_ACEOF
68d83c55 47686
42f7b73b 47687 ZFS_ENUM_ZONE_STAT_ITEM_NR_INACTIVE_ANON=1
68d83c55 47688
42f7b73b 47689else
68d83c55 47690
42f7b73b
AX
47691 { $as_echo "$as_me:$LINENO: result: no" >&5
47692$as_echo "no" >&6; }
68d83c55 47693
42f7b73b 47694fi
68d83c55
AX
47695
47696
68d83c55 47697
42f7b73b
AX
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
47710cat >>confdefs.h <<\_ACEOF
47711#define ZFS_ENUM_ZONE_STAT_ITEM_NR_INACTIVE_FILE 1
68d83c55
AX
47712_ACEOF
47713
42f7b73b 47714 ZFS_ENUM_ZONE_STAT_ITEM_NR_INACTIVE_FILE=1
68d83c55 47715
42f7b73b 47716else
68d83c55 47717
42f7b73b
AX
47718 { $as_echo "$as_me:$LINENO: result: no" >&5
47719$as_echo "no" >&6; }
68d83c55 47720
42f7b73b 47721fi
68d83c55
AX
47722
47723
42f7b73b
AX
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'
cae5b340 47728 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
68d83c55
AX
47729 (eval $ac_try) 2>&5
47730 ac_status=$?
cae5b340
AX
47731 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
47732 (exit $ac_status); }; }; then
42f7b73b
AX
47733
47734 { $as_echo "$as_me:$LINENO: result: yes" >&5
47735$as_echo "yes" >&6; }
47736
47737cat >>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
cae5b340 47743else
68d83c55 47744
42f7b73b
AX
47745 { $as_echo "$as_me:$LINENO: result: no" >&5
47746$as_echo "no" >&6; }
68d83c55 47747
cae5b340
AX
47748fi
47749
68d83c55
AX
47750
47751
68d83c55 47752
42f7b73b
AX
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
68d83c55 47763$as_echo "no" >&6; }
42f7b73b
AX
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!
47771See \`config.log' for more details." >&5
47772$as_echo "$as_me: error: SHUT 'ER DOWN CLANCY, SHE'S PUMPIN' MUD!
47773See \`config.log' for more details." >&2;}
47774 { (exit 1); exit 1; }; }; }
68d83c55
AX
47775
47776
42f7b73b 47777fi
68d83c55 47778
42f7b73b 47779 if test -z "$enum_check_a" -a -z "$enum_check_b"; then
68d83c55 47780
42f7b73b
AX
47781
47782 { $as_echo "$as_me:$LINENO: result: no" >&5
cae5b340 47783$as_echo "no" >&6; }
42f7b73b
AX
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!
47791See \`config.log' for more details." >&5
47792$as_echo "$as_me: error: SHUT 'ER DOWN CLANCY, SHE'S PUMPIN' MUD!
47793See \`config.log' for more details." >&2;}
47794 { (exit 1); exit 1; }; }; }
68d83c55
AX
47795
47796
42f7b73b 47797fi
68d83c55 47798
68d83c55
AX
47799
47800
42f7b73b
AX
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
68d83c55
AX
47804
47805
42f7b73b
AX
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!
47815See \`config.log' for more details." >&5
47816$as_echo "$as_me: error: SHUT 'ER DOWN CLANCY, SHE'S PUMPIN' MUD!
47817See \`config.log' for more details." >&2;}
47818 { (exit 1); exit 1; }; }; }
68d83c55 47819
cae5b340 47820
42f7b73b 47821fi
cae5b340 47822
42f7b73b 47823 if test -z "$enum_check_a" -a -z "$enum_check_b"; then
cae5b340
AX
47824
47825
42f7b73b
AX
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!
47835See \`config.log' for more details." >&5
47836$as_echo "$as_me: error: SHUT 'ER DOWN CLANCY, SHE'S PUMPIN' MUD!
47837See \`config.log' for more details." >&2;}
47838 { (exit 1); exit 1; }; }; }
68d83c55 47839
68d83c55 47840
42f7b73b 47841fi
68d83c55 47842
68d83c55 47843
68d83c55 47844
42f7b73b
AX
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
68d83c55
AX
47848
47849
42f7b73b
AX
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!
47859See \`config.log' for more details." >&5
47860$as_echo "$as_me: error: SHUT 'ER DOWN CLANCY, SHE'S PUMPIN' MUD!
47861See \`config.log' for more details." >&2;}
47862 { (exit 1); exit 1; }; }; }
68d83c55 47863
68d83c55 47864
42f7b73b 47865fi
68d83c55 47866
42f7b73b 47867 if test -z "$enum_check_a" -a -z "$enum_check_b"; then
68d83c55 47868
68d83c55 47869
42f7b73b
AX
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!
47879See \`config.log' for more details." >&5
47880$as_echo "$as_me: error: SHUT 'ER DOWN CLANCY, SHE'S PUMPIN' MUD!
47881See \`config.log' for more details." >&2;}
47882 { (exit 1); exit 1; }; }; }
68d83c55
AX
47883
47884
42f7b73b 47885fi
68d83c55 47886
42f7b73b
AX
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
68d83c55 47895$as_echo "no" >&6; }
42f7b73b
AX
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!
47903See \`config.log' for more details." >&5
47904$as_echo "$as_me: error: SHUT 'ER DOWN CLANCY, SHE'S PUMPIN' MUD!
47905See \`config.log' for more details." >&2;}
47906 { (exit 1); exit 1; }; }; }
47907
47908
47909fi
47910
47911 if test -z "$enum_check_a" -a -z "$enum_check_b"; then
68d83c55
AX
47912
47913
42f7b73b
AX
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!
47923See \`config.log' for more details." >&5
47924$as_echo "$as_me: error: SHUT 'ER DOWN CLANCY, SHE'S PUMPIN' MUD!
47925See \`config.log' for more details." >&2;}
47926 { (exit 1); exit 1; }; }; }
47927
68d83c55
AX
47928
47929fi
cae5b340 47930
68d83c55
AX
47931
47932
42f7b73b
AX
47933 { $as_echo "$as_me:$LINENO: result: yes" >&5
47934$as_echo "yes" >&6; }
68d83c55 47935
22929307 47936
42f7b73b
AX
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; }
22929307
AX
47940
47941
47942cat confdefs.h - <<_ACEOF >conftest.c
cae5b340
AX
47943/* confdefs.h. */
47944_ACEOF
47945cat confdefs.h >>conftest.$ac_ext
47946cat >>conftest.$ac_ext <<_ACEOF
47947/* end confdefs.h. */
22929307
AX
47948
47949
42f7b73b
AX
47950 #include <linux/backing-dev.h>
47951 #include <linux/refcount.h>
47952 #include <linux/posix_acl.h>
22929307
AX
47953
47954int
47955main (void)
47956{
47957
42f7b73b
AX
47958 struct posix_acl acl;
47959 refcount_t *r __attribute__ ((unused)) = &acl.a_refcount;
22929307
AX
47960
47961 ;
47962 return 0;
47963}
47964
47965_ACEOF
47966
47967
47968
47969cat - <<_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
42f7b73b 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'
cae5b340 47979 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22929307
AX
47980 (eval $ac_try) 2>&5
47981 ac_status=$?
cae5b340
AX
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
22929307
AX
47985 (eval $ac_try) 2>&5
47986 ac_status=$?
cae5b340
AX
47987 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
47988 (exit $ac_status); }; }; then
22929307 47989
cae5b340 47990 { $as_echo "$as_me:$LINENO: result: yes" >&5
22929307
AX
47991$as_echo "yes" >&6; }
47992
cae5b340 47993cat >>confdefs.h <<\_ACEOF
42f7b73b 47994#define HAVE_ACL_REFCOUNT 1
cae5b340 47995_ACEOF
ea04106b 47996
ea04106b 47997
ea04106b 47998else
cae5b340
AX
47999 $as_echo "$as_me: failed program was:" >&5
48000sed 's/^/| /' conftest.$ac_ext >&5
ea04106b 48001
cae5b340
AX
48002 { $as_echo "$as_me:$LINENO: result: no" >&5
48003$as_echo "no" >&6; }
ea04106b 48004
ea04106b 48005
ea04106b
AX
48006
48007fi
48008
cae5b340 48009 rm -Rf build
ea04106b
AX
48010
48011
ea04106b 48012
ea04106b 48013
ea04106b 48014
42f7b73b
AX
48015 { $as_echo "$as_me:$LINENO: checking whether ns_capable exists" >&5
48016$as_echo_n "checking whether ns_capable exists... " >&6; }
ea04106b
AX
48017
48018
cae5b340
AX
48019cat confdefs.h - <<_ACEOF >conftest.c
48020/* confdefs.h. */
48021_ACEOF
48022cat confdefs.h >>conftest.$ac_ext
48023cat >>conftest.$ac_ext <<_ACEOF
ea04106b
AX
48024/* end confdefs.h. */
48025
cae5b340 48026
42f7b73b 48027 #include <linux/capability.h>
cae5b340 48028
ea04106b 48029int
cae5b340 48030main (void)
ea04106b 48031{
cae5b340 48032
42f7b73b 48033 ns_capable((struct user_namespace *)NULL, CAP_SYS_ADMIN);
cae5b340 48034
ea04106b
AX
48035 ;
48036 return 0;
48037}
cae5b340 48038
ea04106b 48039_ACEOF
cae5b340
AX
48040
48041
48042
48043cat - <<_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
42f7b73b 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'
cae5b340
AX
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
48067cat >>confdefs.h <<\_ACEOF
42f7b73b 48068#define HAVE_NS_CAPABLE 1
ea04106b
AX
48069_ACEOF
48070
ea04106b
AX
48071
48072else
cae5b340
AX
48073 $as_echo "$as_me: failed program was:" >&5
48074sed 's/^/| /' conftest.$ac_ext >&5
48075
48076 { $as_echo "$as_me:$LINENO: result: no" >&5
48077$as_echo "no" >&6; }
48078
48079
48080
ea04106b
AX
48081fi
48082
cae5b340 48083 rm -Rf build
ea04106b 48084
cae5b340
AX
48085
48086
48087
42f7b73b
AX
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; }
cae5b340
AX
48090
48091
48092cat confdefs.h - <<_ACEOF >conftest.c
48093/* confdefs.h. */
48094_ACEOF
48095cat confdefs.h >>conftest.$ac_ext
48096cat >>conftest.$ac_ext <<_ACEOF
ea04106b
AX
48097/* end confdefs.h. */
48098
cae5b340 48099
42f7b73b 48100 #include <linux/cred.h>
cae5b340 48101
ea04106b 48102int
cae5b340 48103main (void)
ea04106b 48104{
cae5b340 48105
42f7b73b
AX
48106 struct cred cr;
48107 cr.user_ns = (struct user_namespace *)NULL;
cae5b340 48108
ea04106b
AX
48109 ;
48110 return 0;
48111}
cae5b340 48112
ea04106b
AX
48113_ACEOF
48114
ea04106b 48115
ea04106b 48116
cae5b340 48117cat - <<_ACEOF >conftest.h
ea04106b 48118
cae5b340 48119_ACEOF
ea04106b
AX
48120
48121
cae5b340
AX
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
42f7b73b 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'
cae5b340
AX
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
ea04106b 48137
cae5b340
AX
48138 { $as_echo "$as_me:$LINENO: result: yes" >&5
48139$as_echo "yes" >&6; }
ea04106b 48140
cae5b340 48141cat >>confdefs.h <<\_ACEOF
42f7b73b 48142#define HAVE_CRED_USER_NS 1
cae5b340 48143_ACEOF
ea04106b
AX
48144
48145
ea04106b 48146else
cae5b340
AX
48147 $as_echo "$as_me: failed program was:" >&5
48148sed 's/^/| /' conftest.$ac_ext >&5
ea04106b 48149
cae5b340
AX
48150 { $as_echo "$as_me:$LINENO: result: no" >&5
48151$as_echo "no" >&6; }
ea04106b 48152
ea04106b 48153
ea04106b 48154
cae5b340 48155fi
ea04106b 48156
cae5b340 48157 rm -Rf build
ea04106b
AX
48158
48159
ea04106b 48160
ea04106b 48161
42f7b73b
AX
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; }
ea04106b 48164
cae5b340
AX
48165
48166cat confdefs.h - <<_ACEOF >conftest.c
48167/* confdefs.h. */
ea04106b 48168_ACEOF
cae5b340
AX
48169cat confdefs.h >>conftest.$ac_ext
48170cat >>conftest.$ac_ext <<_ACEOF
ea04106b
AX
48171/* end confdefs.h. */
48172
cae5b340 48173
42f7b73b 48174 #include <linux/uidgid.h>
ea04106b
AX
48175
48176int
cae5b340 48177main (void)
ea04106b
AX
48178{
48179
42f7b73b
AX
48180 kuid_has_mapping((struct user_namespace *)NULL, KUIDT_INIT(0));
48181 kgid_has_mapping((struct user_namespace *)NULL, KGIDT_INIT(0));
ea04106b
AX
48182
48183 ;
48184 return 0;
48185}
cae5b340 48186
ea04106b 48187_ACEOF
ea04106b 48188
ea04106b
AX
48189
48190
cae5b340
AX
48191cat - <<_ACEOF >conftest.h
48192
48193_ACEOF
ea04106b
AX
48194
48195
cae5b340
AX
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
42f7b73b 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'
cae5b340
AX
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
ea04106b 48211
cae5b340
AX
48212 { $as_echo "$as_me:$LINENO: result: yes" >&5
48213$as_echo "yes" >&6; }
ea04106b 48214
cae5b340 48215cat >>confdefs.h <<\_ACEOF
42f7b73b 48216#define HAVE_KUID_HAS_MAPPING 1
cae5b340
AX
48217_ACEOF
48218
48219
ea04106b 48220else
cae5b340
AX
48221 $as_echo "$as_me: failed program was:" >&5
48222sed 's/^/| /' conftest.$ac_ext >&5
ea04106b 48223
cae5b340 48224 { $as_echo "$as_me:$LINENO: result: no" >&5
ea04106b
AX
48225$as_echo "no" >&6; }
48226
cae5b340
AX
48227
48228
ea04106b 48229fi
ea04106b 48230
cae5b340 48231 rm -Rf build
ea04106b
AX
48232
48233
48234
ea04106b 48235
42f7b73b 48236
cae5b340 48237 if test "$LINUX_OBJ" != "$LINUX"; then
ea04106b 48238
cae5b340 48239 KERNELMAKE_PARAMS="$KERNELMAKE_PARAMS O=$LINUX_OBJ"
ea04106b
AX
48240
48241fi
ea04106b 48242
cae5b340
AX
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 ;;
ea04106b
AX
48255 srpm) ;;
48256 *)
cae5b340 48257 { $as_echo "$as_me:$LINENO: result: Error!" >&5
ea04106b 48258$as_echo "Error!" >&6; }
cae5b340
AX
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; }; } ;;
ea04106b
AX
48264 esac
48265
48266 if test "$ZFS_CONFIG" = user -o "$ZFS_CONFIG" = all; then
48267 CONFIG_USER_TRUE=
48268 CONFIG_USER_FALSE='#'
48269else
48270 CONFIG_USER_TRUE='#'
48271 CONFIG_USER_FALSE=
48272fi
48273
48274 if test "$ZFS_CONFIG" = kernel -o "$ZFS_CONFIG" = all &&
cae5b340 48275 test "x$enable_linux_builtin" != xyes ; then
ea04106b
AX
48276 CONFIG_KERNEL_TRUE=
48277 CONFIG_KERNEL_FALSE='#'
48278else
48279 CONFIG_KERNEL_TRUE='#'
48280 CONFIG_KERNEL_FALSE=
48281fi
48282
42f7b73b
AX
48283 if test "$ZFS_CONFIG" = kernel -o "$ZFS_CONFIG" = all &&
48284 test "x$qatsrc" != x ; then
48285 CONFIG_QAT_TRUE=
48286 CONFIG_QAT_FALSE='#'
48287else
48288 CONFIG_QAT_TRUE='#'
48289 CONFIG_QAT_FALSE=
48290fi
48291
cae5b340
AX
48292 if test "x$user_libudev" = xyes ; then
48293 WANT_DEVNAME2DEVID_TRUE=
48294 WANT_DEVNAME2DEVID_FALSE='#'
48295else
48296 WANT_DEVNAME2DEVID_TRUE='#'
48297 WANT_DEVNAME2DEVID_FALSE=
48298fi
48299
42f7b73b
AX
48300 if test "x$user_libaio" = xyes ; then
48301 WANT_MMAP_LIBAIO_TRUE=
48302 WANT_MMAP_LIBAIO_FALSE='#'
cae5b340 48303else
42f7b73b
AX
48304 WANT_MMAP_LIBAIO_TRUE='#'
48305 WANT_MMAP_LIBAIO_FALSE=
cae5b340
AX
48306fi
48307
ea04106b
AX
48308
48309
42f7b73b
AX
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; }
ea04106b 48312 # Check whether --enable-debug was given.
cae5b340 48313if test "${enable_debug+set}" = set; then
ea04106b
AX
48314 enableval=$enable_debug;
48315else
48316 enable_debug=no
48317fi
48318
48319
42f7b73b
AX
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"
ea04106b 48326
cae5b340
AX
48327cat >>confdefs.h <<\_ACEOF
48328#define ZFS_DEBUG 1
48329_ACEOF
ea04106b 48330
42f7b73b
AX
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; }; } ;;
48342esac
ea04106b 48343
ea04106b 48344
ea04106b 48345
42f7b73b
AX
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.
48354if test "${enable_debuginfo+set}" = set; then
48355 enableval=$enable_debuginfo;
48356else
48357 enable_debuginfo=no
ea04106b
AX
48358fi
48359
48360
42f7b73b
AX
48361 case "x$enable_debuginfo" in
48362 "xyes")
48363 KERNELMAKE_PARAMS="$KERNELMAKE_PARAMS CONFIG_DEBUG_INFO=y"
48364 KERNELCPPFLAGS="${KERNELCPPFLAGS} -fno-inline"
ea04106b
AX
48365
48366
42f7b73b
AX
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; }; } ;;
48380esac
ea04106b
AX
48381
48382
ea04106b 48383
42f7b73b
AX
48384 { $as_echo "$as_me:$LINENO: result: $enable_debuginfo" >&5
48385$as_echo "$enable_debuginfo" >&6; }
48386
48387
48388ac_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"
ea04106b 48389
ea04106b
AX
48390
48391
48392cat >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 #(
cae5b340 48419 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
ea04106b
AX
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= ;; #(
cae5b340 48425 *) $as_unset $ac_var ;;
ea04106b
AX
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=\ *)
cae5b340
AX
48433 # `set' does not quote correctly, so add quotes (double-quote
48434 # substitution turns \\\\ into \\, and sed turns \\ into \).
ea04106b
AX
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
48454if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
48455 if test -w "$cache_file"; then
cae5b340
AX
48456 test "x$cache_file" != "x/dev/null" &&
48457 { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
ea04106b 48458$as_echo "$as_me: updating cache $cache_file" >&6;}
cae5b340 48459 cat confcache >$cache_file
ea04106b 48460 else
cae5b340 48461 { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
ea04106b
AX
48462$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
48463 fi
48464fi
48465rm -f confcache
48466
48467test "x$prefix" = xNONE && prefix=$ac_default_prefix
48468# Let make expand exec_prefix.
48469test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
48470
48471DEFS=-DHAVE_CONFIG_H
48472
48473ac_libobjs=
48474ac_ltlibobjs=
ea04106b
AX
48475for 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.
cae5b340
AX
48481 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
48482 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
ea04106b
AX
48483done
48484LIBOBJS=$ac_libobjs
48485
48486LTLIBOBJS=$ac_ltlibobjs
48487
48488
48489if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
cae5b340
AX
48490 { { $as_echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
48491Usually this means the macro was only invoked conditionally." >&5
48492$as_echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
48493Usually this means the macro was only invoked conditionally." >&2;}
48494 { (exit 1); exit 1; }; }
48495fi
ea04106b
AX
48496 if test -n "$EXEEXT"; then
48497 am__EXEEXT_TRUE=
48498 am__EXEEXT_FALSE='#'
48499else
48500 am__EXEEXT_TRUE='#'
48501 am__EXEEXT_FALSE=
48502fi
48503
48504if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
cae5b340
AX
48505 { { $as_echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
48506Usually this means the macro was only invoked conditionally." >&5
48507$as_echo "$as_me: error: conditional \"AMDEP\" was never defined.
48508Usually this means the macro was only invoked conditionally." >&2;}
48509 { (exit 1); exit 1; }; }
ea04106b
AX
48510fi
48511if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
cae5b340
AX
48512 { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
48513Usually this means the macro was only invoked conditionally." >&5
48514$as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
48515Usually this means the macro was only invoked conditionally." >&2;}
48516 { (exit 1); exit 1; }; }
ea04106b
AX
48517fi
48518if test -z "${am__fastdepCCAS_TRUE}" && test -z "${am__fastdepCCAS_FALSE}"; then
cae5b340
AX
48519 { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCCAS\" was never defined.
48520Usually this means the macro was only invoked conditionally." >&5
48521$as_echo "$as_me: error: conditional \"am__fastdepCCAS\" was never defined.
48522Usually this means the macro was only invoked conditionally." >&2;}
48523 { (exit 1); exit 1; }; }
48524fi
42f7b73b
AX
48525if 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.
48527Usually this means the macro was only invoked conditionally." >&5
48528$as_echo "$as_me: error: conditional \"CODE_COVERAGE_ENABLED\" was never defined.
48529Usually this means the macro was only invoked conditionally." >&2;}
48530 { (exit 1); exit 1; }; }
48531fi
cae5b340
AX
48532if 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.
48534Usually this means the macro was only invoked conditionally." >&5
48535$as_echo "$as_me: error: conditional \"TARGET_ASM_X86_64\" was never defined.
48536Usually this means the macro was only invoked conditionally." >&2;}
48537 { (exit 1); exit 1; }; }
48538fi
48539if 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.
48541Usually this means the macro was only invoked conditionally." >&5
48542$as_echo "$as_me: error: conditional \"TARGET_ASM_I386\" was never defined.
48543Usually this means the macro was only invoked conditionally." >&2;}
48544 { (exit 1); exit 1; }; }
48545fi
48546if 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.
48548Usually this means the macro was only invoked conditionally." >&5
48549$as_echo "$as_me: error: conditional \"TARGET_ASM_GENERIC\" was never defined.
48550Usually this means the macro was only invoked conditionally." >&2;}
48551 { (exit 1); exit 1; }; }
ea04106b
AX
48552fi
48553if test -z "${CONFIG_USER_TRUE}" && test -z "${CONFIG_USER_FALSE}"; then
cae5b340
AX
48554 { { $as_echo "$as_me:$LINENO: error: conditional \"CONFIG_USER\" was never defined.
48555Usually this means the macro was only invoked conditionally." >&5
48556$as_echo "$as_me: error: conditional \"CONFIG_USER\" was never defined.
48557Usually this means the macro was only invoked conditionally." >&2;}
48558 { (exit 1); exit 1; }; }
ea04106b
AX
48559fi
48560if test -z "${CONFIG_KERNEL_TRUE}" && test -z "${CONFIG_KERNEL_FALSE}"; then
cae5b340
AX
48561 { { $as_echo "$as_me:$LINENO: error: conditional \"CONFIG_KERNEL\" was never defined.
48562Usually this means the macro was only invoked conditionally." >&5
48563$as_echo "$as_me: error: conditional \"CONFIG_KERNEL\" was never defined.
48564Usually this means the macro was only invoked conditionally." >&2;}
48565 { (exit 1); exit 1; }; }
48566fi
42f7b73b
AX
48567if test -z "${CONFIG_QAT_TRUE}" && test -z "${CONFIG_QAT_FALSE}"; then
48568 { { $as_echo "$as_me:$LINENO: error: conditional \"CONFIG_QAT\" was never defined.
48569Usually this means the macro was only invoked conditionally." >&5
48570$as_echo "$as_me: error: conditional \"CONFIG_QAT\" was never defined.
48571Usually this means the macro was only invoked conditionally." >&2;}
48572 { (exit 1); exit 1; }; }
48573fi
cae5b340
AX
48574if test -z "${WANT_DEVNAME2DEVID_TRUE}" && test -z "${WANT_DEVNAME2DEVID_FALSE}"; then
48575 { { $as_echo "$as_me:$LINENO: error: conditional \"WANT_DEVNAME2DEVID\" was never defined.
48576Usually this means the macro was only invoked conditionally." >&5
48577$as_echo "$as_me: error: conditional \"WANT_DEVNAME2DEVID\" was never defined.
48578Usually this means the macro was only invoked conditionally." >&2;}
48579 { (exit 1); exit 1; }; }
48580fi
42f7b73b
AX
48581if 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.
cae5b340 48583Usually this means the macro was only invoked conditionally." >&5
42f7b73b 48584$as_echo "$as_me: error: conditional \"WANT_MMAP_LIBAIO\" was never defined.
cae5b340
AX
48585Usually this means the macro was only invoked conditionally." >&2;}
48586 { (exit 1); exit 1; }; }
48587fi
48588
48589: ${CONFIG_STATUS=./config.status}
ea04106b
AX
48590ac_write_fail=0
48591ac_clean_files_save=$ac_clean_files
48592ac_clean_files="$ac_clean_files $CONFIG_STATUS"
cae5b340 48593{ $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
ea04106b 48594$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
cae5b340 48595cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
ea04106b
AX
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
48602debug=false
48603ac_cs_recheck=false
48604ac_cs_silent=false
ea04106b 48605SHELL=\${CONFIG_SHELL-$SHELL}
cae5b340
AX
48606_ACEOF
48607
48608cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
48609## --------------------- ##
48610## M4sh Initialization. ##
48611## --------------------- ##
ea04106b
AX
48612
48613# Be more Bourne compatible
48614DUALCASE=1; export DUALCASE # for MKS sh
cae5b340 48615if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
ea04106b
AX
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
48622else
cae5b340
AX
48623 case `(set -o) 2>/dev/null` in
48624 *posix*) set -o posix ;;
ea04106b 48625esac
cae5b340 48626
ea04106b
AX
48627fi
48628
48629
cae5b340
AX
48630
48631
48632# PATH needs CR
48633# Avoid depending upon Character Ranges.
48634as_cr_letters='abcdefghijklmnopqrstuvwxyz'
48635as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
48636as_cr_Letters=$as_cr_letters$as_cr_LETTERS
48637as_cr_digits='0123456789'
48638as_cr_alnum=$as_cr_Letters$as_cr_digits
48639
ea04106b
AX
48640as_nl='
48641'
48642export as_nl
48643# Printing a long string crashes Solaris 7 /usr/bin/printf.
48644as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
48645as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
48646as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
cae5b340 48647if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
ea04106b
AX
48648 as_echo='printf %s\n'
48649 as_echo_n='printf %s'
48650else
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;
cae5b340 48658 case $arg in
ea04106b
AX
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'
48670fi
48671
48672# The user is always right.
48673if 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 }
48679fi
48680
cae5b340
AX
48681# Support unset when possible.
48682if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
48683 as_unset=unset
48684else
48685 as_unset=false
48686fi
48687
ea04106b
AX
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.)
48694IFS=" "" $as_nl"
48695
48696# Find who we are. Look in the path if we contain no directory separator.
cae5b340 48697case $0 in
ea04106b
AX
48698 *[\\/]* ) as_myself=$0 ;;
48699 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
48700for as_dir in $PATH
48701do
48702 IFS=$as_save_IFS
48703 test -z "$as_dir" && as_dir=.
cae5b340
AX
48704 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
48705done
ea04106b
AX
48706IFS=$as_save_IFS
48707
48708 ;;
48709esac
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.
48712if test "x$as_myself" = x; then
48713 as_myself=$0
48714fi
48715if test ! -f "$as_myself"; then
48716 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
cae5b340 48717 { (exit 1); exit 1; }
ea04106b
AX
48718fi
48719
cae5b340
AX
48720# Work around bugs in pre-3.0 UWIN ksh.
48721for as_var in ENV MAIL MAILPATH
48722do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
ea04106b
AX
48723done
48724PS1='$ '
48725PS2='> '
48726PS4='+ '
48727
48728# NLS nuisances.
48729LC_ALL=C
48730export LC_ALL
48731LANGUAGE=C
48732export LANGUAGE
48733
cae5b340 48734# Required to use basename.
ea04106b
AX
48735if expr a : '\(a\)' >/dev/null 2>&1 &&
48736 test "X`expr 00001 : '.*\(...\)'`" = X001; then
48737 as_expr=expr
48738else
48739 as_expr=false
48740fi
48741
48742if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
48743 as_basename=basename
48744else
48745 as_basename=false
48746fi
48747
ea04106b 48748
cae5b340 48749# Name of the executable.
ea04106b
AX
48750as_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
cae5b340
AX
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
48817if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
48818 as_dirname=dirname
48819else
48820 as_dirname=false
48821fi
ea04106b
AX
48822
48823ECHO_C= ECHO_N= ECHO_T=
cae5b340 48824case `echo -n x` in
ea04106b 48825-n*)
cae5b340 48826 case `echo 'x\c'` in
ea04106b 48827 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
cae5b340 48828 *) ECHO_C='\c';;
ea04106b
AX
48829 esac;;
48830*)
48831 ECHO_N='-n';;
48832esac
cae5b340
AX
48833if expr a : '\(a\)' >/dev/null 2>&1 &&
48834 test "X`expr 00001 : '.*\(...\)'`" = X001; then
48835 as_expr=expr
48836else
48837 as_expr=false
48838fi
ea04106b
AX
48839
48840rm -f conf$$ conf$$.exe conf$$.file
48841if test -d conf$$.dir; then
48842 rm -f conf$$.dir/conf$$.file
48843else
48844 rm -f conf$$.dir
48845 mkdir conf$$.dir 2>/dev/null
48846fi
48847if (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.
cae5b340 48853 # In both cases, we have to default to `cp -p'.
ea04106b 48854 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
cae5b340 48855 as_ln_s='cp -p'
ea04106b
AX
48856 elif ln conf$$.file conf$$ 2>/dev/null; then
48857 as_ln_s=ln
48858 else
cae5b340 48859 as_ln_s='cp -p'
ea04106b
AX
48860 fi
48861else
cae5b340 48862 as_ln_s='cp -p'
ea04106b
AX
48863fi
48864rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
48865rmdir conf$$.dir 2>/dev/null
48866
ea04106b 48867if mkdir -p . 2>/dev/null; then
cae5b340 48868 as_mkdir_p=:
ea04106b
AX
48869else
48870 test -d ./-p && rmdir ./-p
48871 as_mkdir_p=false
48872fi
48873
cae5b340
AX
48874if test -x / >/dev/null 2>&1; then
48875 as_test_x='test -x'
48876else
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 '
48894fi
48895as_executable_p=$as_test_x
ea04106b
AX
48896
48897# Sed expression to map a string onto a valid CPP name.
48898as_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.
48901as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
48902
48903
48904exec 6>&1
ea04106b 48905
cae5b340 48906# Save the log message, to keep $[0] and so on meaningful, and to
ea04106b
AX
48907# report actual input values of CONFIG_FILES etc. instead of their
48908# values after options handling.
48909ac_log="
42f7b73b 48910This file was extended by zfs $as_me 0.7.9, which was
cae5b340 48911generated by GNU Autoconf 2.63. Invocation command line was
ea04106b
AX
48912
48913 CONFIG_FILES = $CONFIG_FILES
48914 CONFIG_HEADERS = $CONFIG_HEADERS
48915 CONFIG_LINKS = $CONFIG_LINKS
48916 CONFIG_COMMANDS = $CONFIG_COMMANDS
48917 $ $0 $@
48918
48919on `(hostname || uname -n) 2>/dev/null | sed 1q`
48920"
48921
48922_ACEOF
48923
48924case $ac_config_files in *"
48925"*) set x $ac_config_files; shift; ac_config_files=$*;;
48926esac
48927
48928case $ac_config_headers in *"
48929"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
48930esac
48931
48932
48933cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
48934# Files that config.status was made for.
48935config_files="$ac_config_files"
48936config_headers="$ac_config_headers"
48937config_commands="$ac_config_commands"
48938
48939_ACEOF
48940
48941cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
48942ac_cs_usage="\
cae5b340
AX
48943\`$as_me' instantiates files from templates according to the
48944current configuration.
ea04106b 48945
cae5b340 48946Usage: $0 [OPTION]... [FILE]...
ea04106b
AX
48947
48948 -h, --help print this help, then exit
48949 -V, --version print version number and configuration settings, then exit
ea04106b
AX
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
48959Configuration files:
48960$config_files
48961
48962Configuration headers:
48963$config_headers
48964
48965Configuration commands:
48966$config_commands
48967
cae5b340 48968Report bugs to <bug-autoconf@gnu.org>."
ea04106b
AX
48969
48970_ACEOF
48971cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
ea04106b 48972ac_cs_version="\\
42f7b73b 48973zfs config.status 0.7.9
cae5b340
AX
48974configured by $0, generated by GNU Autoconf 2.63,
48975 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
ea04106b 48976
cae5b340 48977Copyright (C) 2008 Free Software Foundation, Inc.
ea04106b
AX
48978This config.status script is free software; the Free Software Foundation
48979gives unlimited permission to copy, distribute and modify it."
48980
48981ac_pwd='$ac_pwd'
48982srcdir='$srcdir'
48983INSTALL='$INSTALL'
48984MKDIR_P='$MKDIR_P'
48985AWK='$AWK'
48986test -n "\$AWK" || AWK=awk
48987_ACEOF
48988
48989cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
48990# The default lists apply if the user does not specify any file.
48991ac_need_defaults=:
48992while test $# != 0
48993do
48994 case $1 in
cae5b340 48995 --*=*)
ea04106b
AX
48996 ac_option=`expr "X$1" : 'X\([^=]*\)='`
48997 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
48998 ac_shift=:
48999 ;;
ea04106b
AX
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 ;;
ea04106b
AX
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"` ;;
ea04106b 49019 esac
cae5b340 49020 CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
ea04106b
AX
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
cae5b340 49027 CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
ea04106b
AX
49028 ac_need_defaults=false;;
49029 --he | --h)
49030 # Conflict between --help and --header
cae5b340
AX
49031 { $as_echo "$as_me: error: ambiguous option: $1
49032Try \`$0 --help' for more information." >&2
49033 { (exit 1); exit 1; }; };;
ea04106b
AX
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.
cae5b340
AX
49041 -*) { $as_echo "$as_me: error: unrecognized option: $1
49042Try \`$0 --help' for more information." >&2
49043 { (exit 1); exit 1; }; } ;;
ea04106b 49044
cae5b340 49045 *) ac_config_targets="$ac_config_targets $1"
ea04106b
AX
49046 ac_need_defaults=false ;;
49047
49048 esac
49049 shift
49050done
49051
49052ac_configure_extra_args=
49053
49054if $ac_cs_silent; then
49055 exec 6>/dev/null
49056 ac_configure_extra_args="$ac_configure_extra_args --silent"
49057fi
49058
49059_ACEOF
49060cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
49061if \$ac_cs_recheck; then
cae5b340 49062 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
ea04106b
AX
49063 shift
49064 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
49065 CONFIG_SHELL='$SHELL'
49066 export CONFIG_SHELL
49067 exec "\$@"
49068fi
49069
49070_ACEOF
49071cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
49072exec 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
49082cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
49083#
49084# INIT-COMMANDS
49085#
49086AMDEP_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
49093sed_quote_subst='$sed_quote_subst'
49094double_quote_subst='$double_quote_subst'
49095delay_variable_subst='$delay_variable_subst'
cae5b340
AX
49096macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
49097macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
49098enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
49099enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
49100pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
49101enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
49102host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
49103host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
49104host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
49105build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
49106build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
49107build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
49108SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
49109Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
49110GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
49111EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
49112FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
49113LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
49114NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
49115LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
49116max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
49117ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
49118exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
49119lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
49120lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
49121lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
49122reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
49123reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
49124OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
49125deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
49126file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
49127AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
49128AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
49129STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
49130RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
49131old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
49132old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
49133old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
49134CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
49135CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
49136compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
49137GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
49138lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
49139lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
49140lt_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"`'
49141lt_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"`'
49142objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
49143SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
49144ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
49145MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
49146lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
49147lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
49148lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
49149lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
49150lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
49151need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
49152DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
49153NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
49154LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
49155OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
49156OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
49157libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
49158shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
49159extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
49160archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
49161enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
49162export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
49163whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
49164compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
49165old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
49166old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
49167archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
49168archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
49169module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
49170module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
49171with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
49172allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
49173no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
49174hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
49175hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
49176hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
49177hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
49178hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
49179hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
49180hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
49181hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
49182inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
49183link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
49184fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
49185always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
49186export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
49187exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
49188include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
49189prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
49190file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
49191variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
49192need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
49193need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
49194version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
49195runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
49196shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
49197shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
49198libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
49199library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
49200soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
49201postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
49202postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
49203finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
49204finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
49205hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
49206sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
49207sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
49208hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
49209enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
49210enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
49211enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
49212old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
49213striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
ea04106b
AX
49214
49215LTCC='$LTCC'
49216LTCFLAGS='$LTCFLAGS'
49217compiler='$compiler_DEFAULT'
49218
ea04106b 49219# Quote evaled strings.
cae5b340 49220for var in SED \
ea04106b
AX
49221GREP \
49222EGREP \
49223FGREP \
49224LD \
49225NM \
49226LN_S \
49227lt_SP2NL \
49228lt_NL2SP \
49229reload_flag \
49230OBJDUMP \
49231deplibs_check_method \
49232file_magic_cmd \
ea04106b
AX
49233AR \
49234AR_FLAGS \
ea04106b
AX
49235STRIP \
49236RANLIB \
49237CC \
49238CFLAGS \
49239compiler \
49240lt_cv_sys_global_symbol_pipe \
49241lt_cv_sys_global_symbol_to_cdecl \
49242lt_cv_sys_global_symbol_to_c_name_address \
49243lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
cae5b340
AX
49244SHELL \
49245ECHO \
ea04106b 49246lt_prog_compiler_no_builtin_flag \
ea04106b 49247lt_prog_compiler_wl \
cae5b340 49248lt_prog_compiler_pic \
ea04106b
AX
49249lt_prog_compiler_static \
49250lt_cv_prog_compiler_c_o \
49251need_locks \
ea04106b
AX
49252DSYMUTIL \
49253NMEDIT \
49254LIPO \
49255OTOOL \
49256OTOOL64 \
49257shrext_cmds \
49258export_dynamic_flag_spec \
49259whole_archive_flag_spec \
49260compiler_needs_object \
49261with_gnu_ld \
49262allow_undefined_flag \
49263no_undefined_flag \
49264hardcode_libdir_flag_spec \
cae5b340 49265hardcode_libdir_flag_spec_ld \
ea04106b 49266hardcode_libdir_separator \
cae5b340 49267fix_srcfile_path \
ea04106b
AX
49268exclude_expsyms \
49269include_expsyms \
49270file_list_spec \
49271variables_saved_for_relink \
49272libname_spec \
49273library_names_spec \
49274soname_spec \
ea04106b
AX
49275finish_eval \
49276old_striplib \
49277striplib; do
cae5b340 49278 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
ea04106b 49279 *[\\\\\\\`\\"\\\$]*)
cae5b340 49280 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
ea04106b
AX
49281 ;;
49282 *)
49283 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
49284 ;;
49285 esac
49286done
49287
49288# Double-quote double-evaled strings.
49289for var in reload_cmds \
49290old_postinstall_cmds \
49291old_postuninstall_cmds \
49292old_archive_cmds \
49293extract_expsyms_cmds \
49294old_archive_from_new_cmds \
49295old_archive_from_expsyms_cmds \
49296archive_cmds \
49297archive_expsym_cmds \
49298module_cmds \
49299module_expsym_cmds \
49300export_symbols_cmds \
49301prelink_cmds \
ea04106b
AX
49302postinstall_cmds \
49303postuninstall_cmds \
49304finish_cmds \
49305sys_lib_search_path_spec \
cae5b340
AX
49306sys_lib_dlsearch_path_spec; do
49307 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
ea04106b 49308 *[\\\\\\\`\\"\\\$]*)
cae5b340 49309 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
ea04106b
AX
49310 ;;
49311 *)
49312 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
49313 ;;
49314 esac
49315done
49316
cae5b340
AX
49317# Fix-up fallback echo if it was mangled by the above quoting rules.
49318case \$lt_ECHO in
49319*'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
49320 ;;
49321esac
49322
ea04106b 49323ac_aux_dir='$ac_aux_dir'
cae5b340
AX
49324xsi_shell='$xsi_shell'
49325lt_shell_append='$lt_shell_append'
ea04106b 49326
cae5b340 49327# See if we are running on zsh, and set the options which allow our
ea04106b 49328# commands through without removal of \ escapes INIT.
cae5b340 49329if test -n "\${ZSH_VERSION+set}" ; then
ea04106b
AX
49330 setopt NO_GLOB_SUBST
49331fi
49332
49333
49334 PACKAGE='$PACKAGE'
49335 VERSION='$VERSION'
cae5b340 49336 TIMESTAMP='$TIMESTAMP'
ea04106b
AX
49337 RM='$RM'
49338 ofile='$ofile'
49339
49340
49341
49342
49343_ACEOF
49344
49345cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
49346
49347# Handling of arguments.
49348for ac_config_target in $ac_config_targets
49349do
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" ;;
ea04106b
AX
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" ;;
cae5b340 49362 "etc/sudoers.d/Makefile") CONFIG_FILES="$CONFIG_FILES etc/sudoers.d/Makefile" ;;
ea04106b
AX
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" ;;
ea04106b
AX
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" ;;
cae5b340 49382 "lib/libicp/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libicp/Makefile" ;;
ea04106b
AX
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" ;;
cae5b340
AX
49409 "cmd/raidz_test/Makefile") CONFIG_FILES="$CONFIG_FILES cmd/raidz_test/Makefile" ;;
49410 "cmd/zgenhostid/Makefile") CONFIG_FILES="$CONFIG_FILES cmd/zgenhostid/Makefile" ;;
ea04106b
AX
49411 "contrib/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/Makefile" ;;
49412 "contrib/bash_completion.d/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/bash_completion.d/Makefile" ;;
e10b0808 49413 "contrib/dracut/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/dracut/Makefile" ;;
cae5b340 49414 "contrib/dracut/02zfsexpandknowledge/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/dracut/02zfsexpandknowledge/Makefile" ;;
e10b0808
AX
49415 "contrib/dracut/90zfs/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/dracut/90zfs/Makefile" ;;
49416 "contrib/initramfs/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/initramfs/Makefile" ;;
ea04106b
AX
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" ;;
cae5b340 49424 "module/icp/Makefile") CONFIG_FILES="$CONFIG_FILES module/icp/Makefile" ;;
ea04106b
AX
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" ;;
cae5b340
AX
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" ;;
ea04106b
AX
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" ;;
cae5b340
AX
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" ;;
42f7b73b 49448 "tests/zfs-tests/cmd/user_ns_exec/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/cmd/user_ns_exec/Makefile" ;;
cae5b340
AX
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" ;;
42f7b73b 49460 "tests/zfs-tests/cmd/mmap_libaio/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/cmd/mmap_libaio/Makefile" ;;
cae5b340
AX
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" ;;
42f7b73b 49581 "tests/zfs-tests/tests/functional/user_namespace/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zfs-tests/tests/functional/user_namespace/Makefile" ;;
cae5b340
AX
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" ;;
ea04106b
AX
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
cae5b340
AX
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; }; };;
ea04106b
AX
49612 esac
49613done
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.
49620if $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
49624fi
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{
cae5b340 49634 tmp=
ea04106b 49635 trap 'exit_status=$?
cae5b340 49636 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
ea04106b 49637' 0
cae5b340 49638 trap '{ (exit 1); exit 1; }' 1 2 13 15
ea04106b
AX
49639}
49640# Create a (secure) tmp directory for tmp files.
49641
49642{
49643 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
cae5b340 49644 test -n "$tmp" && test -d "$tmp"
ea04106b
AX
49645} ||
49646{
49647 tmp=./conf$$-$RANDOM
49648 (umask 077 && mkdir "$tmp")
cae5b340
AX
49649} ||
49650{
49651 $as_echo "$as_me: cannot create a temporary directory in ." >&2
49652 { (exit 1); exit 1; }
49653}
ea04106b
AX
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'.
49658if test -n "$CONFIG_FILES"; then
49659
49660
cae5b340 49661ac_cr='\r'
ea04106b
AX
49662ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
49663if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
49664 ac_cs_awk_cr='\\r'
49665else
49666 ac_cs_awk_cr=$ac_cr
49667fi
49668
cae5b340 49669echo 'BEGIN {' >"$tmp/subs1.awk" &&
ea04106b
AX
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 ||
cae5b340
AX
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; }; }
49681ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
ea04106b
AX
49682ac_delim='%!_!# '
49683for ac_last_try in false false false false false :; do
49684 . ./conf$$subs.sh ||
cae5b340
AX
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; }; }
ea04106b
AX
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
cae5b340
AX
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; }; }
ea04106b
AX
49696 else
49697 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
49698 fi
49699done
49700rm -f conf$$subs.sh
49701
49702cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
cae5b340 49703cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
ea04106b
AX
49704_ACEOF
49705sed -n '
49706h
49707s/^/S["/; s/!.*/"]=/
49708p
49709g
49710s/^[^!]*!//
49711:repl
49712t repl
49713s/'"$ac_delim"'$//
49714t delim
49715:nl
49716h
cae5b340 49717s/\(.\{148\}\).*/\1/
ea04106b
AX
49718t more1
49719s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
49720p
49721n
49722b repl
49723:more1
49724s/["\\]/\\&/g; s/^/"/; s/$/"\\/
49725p
49726g
49727s/.\{148\}//
49728t nl
49729:delim
49730h
cae5b340 49731s/\(.\{148\}\).*/\1/
ea04106b
AX
49732t more2
49733s/["\\]/\\&/g; s/^/"/; s/$/"/
49734p
49735b
49736:more2
49737s/["\\]/\\&/g; s/^/"/; s/$/"\\/
49738p
49739g
49740s/.\{148\}//
49741t delim
49742' <conf$$subs.awk | sed '
49743/^[^""]/{
49744 N
49745 s/\n//
49746}
49747' >>$CONFIG_STATUS || ac_write_fail=1
49748rm -f conf$$subs.awk
49749cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
49750_ACAWK
cae5b340 49751cat >>"\$tmp/subs1.awk" <<_ACAWK &&
ea04106b
AX
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
49778cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
49779if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
49780 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
49781else
49782 cat
cae5b340
AX
49783fi < "$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; }; }
ea04106b
AX
49787_ACEOF
49788
cae5b340
AX
49789# VPATH may cause trouble with some makes, so we remove $(srcdir),
49790# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
ea04106b
AX
49791# trailing colons and then remove the whole line if VPATH becomes empty
49792# (actually we leave an empty line to preserve line numbers).
49793if test "x$srcdir" = x.; then
cae5b340
AX
49794 ac_vpsub='/^[ ]*VPATH[ ]*=/{
49795s/:*\$(srcdir):*/:/
49796s/:*\${srcdir}:*/:/
49797s/:*@srcdir@:*/:/
49798s/^\([^=]*=[ ]*\):*/\1/
ea04106b 49799s/:*$//
ea04106b
AX
49800s/^[^=]*=[ ]*$//
49801}'
49802fi
49803
49804cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
49805fi # 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'.
49810if test -n "$CONFIG_HEADERS"; then
cae5b340 49811cat >"$tmp/defines.awk" <<\_ACAWK ||
ea04106b
AX
49812BEGIN {
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.
49821ac_delim='%!_!# '
49822for ac_last_try in false false :; do
cae5b340
AX
49823 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
49824 if test -z "$ac_t"; then
ea04106b
AX
49825 break
49826 elif $ac_last_try; then
cae5b340
AX
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; }; }
ea04106b
AX
49830 else
49831 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
49832 fi
49833done
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
49839ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
49840sed -n '
49841s/.\{148\}/&'"$ac_delim"'/g
49842t rset
49843:rset
49844s/^[ ]*#[ ]*define[ ][ ]*/ /
49845t def
49846d
49847:def
49848s/\\$//
49849t bsnl
49850s/["\\]/\\&/g
49851s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
49852D["\1"]=" \3"/p
49853s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
49854d
49855:bsnl
49856s/["\\]/\\&/g
49857s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
49858D["\1"]=" \3\\\\\\n"\\/p
49859t cont
49860s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
49861t cont
49862d
49863:cont
49864n
49865s/.\{148\}/&'"$ac_delim"'/g
49866t clear
49867:clear
49868s/\\$//
49869t bsnlc
49870s/["\\]/\\&/g; s/^/"/; s/$/"/p
49871d
49872:bsnlc
49873s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
49874b cont
49875' <confdefs.h | sed '
49876s/'"$ac_delim"'/"\\\
49877"/g' >>$CONFIG_STATUS || ac_write_fail=1
49878
49879cat >>$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
49913cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
cae5b340
AX
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; }; }
ea04106b
AX
49917fi # test -n "$CONFIG_HEADERS"
49918
49919
49920eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
49921shift
49922for ac_tag
49923do
49924 case $ac_tag in
49925 :[FHLC]) ac_mode=$ac_tag; continue;;
49926 esac
49927 case $ac_mode$ac_tag in
49928 :[FHL]*:*);;
cae5b340
AX
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; }; };;
ea04106b
AX
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
cae5b340 49950 -) ac_f="$tmp/stdin";;
ea04106b
AX
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 ||
cae5b340
AX
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; }; };;
ea04106b
AX
49962 esac
49963 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
cae5b340 49964 ac_file_inputs="$ac_file_inputs '$ac_f'"
ea04106b
AX
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"
cae5b340 49975 { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
ea04106b
AX
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
cae5b340
AX
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; }; } ;;
ea04106b
AX
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'`
cae5b340
AX
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; }; }; }
ea04106b
AX
50059 ac_builddir=.
50060
50061case "$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 ;;
50071esac
50072ac_abs_top_builddir=$ac_pwd
50073ac_abs_builddir=$ac_pwd$ac_dir_suffix
50074# for backward compatibility:
50075ac_top_builddir=$ac_top_build_prefix
50076
50077case $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 ;;
50090esac
50091ac_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
50111cat >>$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.
50114ac_datarootdir_hack=; ac_datarootdir_seen=
cae5b340 50115
ea04106b
AX
50116ac_sed_dataroot='
50117/datarootdir/ {
50118 p
50119 q
50120}
50121/@datadir@/p
50122/@docdir@/p
50123/@infodir@/p
50124/@localedir@/p
cae5b340
AX
50125/@mandir@/p
50126'
ea04106b
AX
50127case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
50128*datarootdir*) ac_datarootdir_seen=yes;;
50129*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
cae5b340 50130 { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
ea04106b
AX
50131$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
50132_ACEOF
50133cat >>$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
cae5b340 50140 s&\\\${datarootdir}&$datarootdir&g' ;;
ea04106b
AX
50141esac
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?
50147cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
50148ac_sed_extra="$ac_vpsub
50149$extrasub
50150_ACEOF
50151cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
50152:t
50153/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
50154s|@configure_input@|$ac_sed_conf_input|;t t
50155s&@top_builddir@&$ac_top_builddir_sub&;t t
50156s&@top_build_prefix@&$ac_top_build_prefix&;t t
50157s&@srcdir@&$ac_srcdir&;t t
50158s&@abs_srcdir@&$ac_abs_srcdir&;t t
50159s&@top_srcdir@&$ac_top_srcdir&;t t
50160s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
50161s&@builddir@&$ac_builddir&;t t
50162s&@abs_builddir@&$ac_abs_builddir&;t t
50163s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
50164s&@INSTALL@&$ac_INSTALL&;t t
50165s&@MKDIR_P@&$ac_MKDIR_P&;t t
50166$ac_datarootdir_hack
50167"
cae5b340
AX
50168eval 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; }; }
ea04106b
AX
50172
50173test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
cae5b340
AX
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'
50177which seems to be undefined. Please make sure it is defined." >&5
ea04106b 50178$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
cae5b340 50179which seems to be undefined. Please make sure it is defined." >&2;}
ea04106b 50180
cae5b340 50181 rm -f "$tmp/stdin"
ea04106b 50182 case $ac_file in
cae5b340
AX
50183 -) cat "$tmp/out" && rm -f "$tmp/out";;
50184 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
ea04106b 50185 esac \
cae5b340
AX
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; }; }
ea04106b
AX
50189 ;;
50190 :H)
50191 #
50192 # CONFIG_HEADER
50193 #
50194 if test x"$ac_file" != x-; then
50195 {
50196 $as_echo "/* $configure_input */" \
cae5b340
AX
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
ea04106b
AX
50204$as_echo "$as_me: $ac_file is unchanged" >&6;}
50205 else
50206 rm -f "$ac_file"
cae5b340
AX
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; }; }
ea04106b
AX
50211 fi
50212 else
50213 $as_echo "/* $configure_input */" \
cae5b340
AX
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; }; }
ea04106b
AX
50218 fi
50219# Compute "$ac_file"'s index in $config_headers.
50220_am_arg="$ac_file"
50221_am_stamp_count=1
50222for _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
50229done
50230echo "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
cae5b340 50255 :C) { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
ea04106b
AX
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"" || {
cae5b340 50267 # Autoconf 2.62 quotes --file arguments for eval, but not when files
ea04106b
AX
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.
cae5b340 50280 # We used to match only the files named `Makefile.in', but
ea04106b
AX
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
cae5b340 50314 # from the Makefile without running `make'.
ea04106b
AX
50315 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
50316 test -z "$DEPDIR" && continue
50317 am__include=`sed -n 's/^am__include = //p' < "$mf"`
cae5b340 50318 test -z "am__include" && continue
ea04106b 50319 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
cae5b340
AX
50320 # When using ansi2knr, U may be empty or an underscore; expand it
50321 U=`sed -n 's/^U = //p' < "$mf"`
ea04106b
AX
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" | \
cae5b340 50328 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
ea04106b
AX
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'`
cae5b340
AX
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; }; }; }
ea04106b
AX
50395 # echo "creating $dirpart/$file"
50396 echo '# dummy' > "$dirpart/$file"
50397 done
50398 done
50399}
50400 ;;
50401 "libtool":C)
50402
cae5b340 50403 # See if we are running on zsh, and set the options which allow our
ea04106b 50404 # commands through without removal of \ escapes.
cae5b340 50405 if test -n "${ZSH_VERSION+set}" ; then
ea04106b
AX
50406 setopt NO_GLOB_SUBST
50407 fi
50408
cae5b340 50409 cfgfile="${ofile}T"
ea04106b
AX
50410 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
50411 $RM "$cfgfile"
50412
50413 cat <<_LT_EOF >> "$cfgfile"
50414#! $SHELL
cae5b340
AX
50415
50416# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
50417# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
ea04106b
AX
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#
cae5b340
AX
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.
ea04106b 50426#
cae5b340
AX
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
ea04106b
AX
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
cae5b340
AX
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.
ea04106b
AX
50447
50448
50449# The names of the tagged configurations supported by this script.
cae5b340 50450available_tags=""
ea04106b
AX
50451
50452# ### BEGIN LIBTOOL CONFIG
50453
50454# Which release of libtool.m4 was used?
50455macro_version=$macro_version
50456macro_revision=$macro_revision
50457
50458# Whether or not to build shared libraries.
50459build_libtool_libs=$enable_shared
50460
50461# Whether or not to build static libraries.
50462build_old_libs=$enable_static
50463
50464# What type of objects to build.
50465pic_mode=$pic_mode
50466
50467# Whether or not to optimize for fast installation.
50468fast_install=$enable_fast_install
50469
ea04106b
AX
50470# The host system.
50471host_alias=$host_alias
50472host=$host
50473host_os=$host_os
50474
50475# The build system.
50476build_alias=$build_alias
50477build=$build
50478build_os=$build_os
50479
50480# A sed program that does not truncate output.
50481SED=$lt_SED
50482
50483# Sed that helps us avoid accidentally triggering echo(1) options like -n.
50484Xsed="\$SED -e 1s/^X//"
50485
50486# A grep program that handles long lines.
50487GREP=$lt_GREP
50488
50489# An ERE matcher.
50490EGREP=$lt_EGREP
50491
50492# A literal string matcher.
50493FGREP=$lt_FGREP
50494
50495# A BSD- or MS-compatible name lister.
50496NM=$lt_NM
50497
50498# Whether we need soft or hard links.
50499LN_S=$lt_LN_S
50500
50501# What is the maximum length of a command?
50502max_cmd_len=$max_cmd_len
50503
50504# Object file suffix (normally "o").
50505objext=$ac_objext
50506
50507# Executable file suffix (normally "").
50508exeext=$exeext
50509
50510# whether the shell understands "unset".
50511lt_unset=$lt_unset
50512
50513# turn spaces into newlines.
50514SP2NL=$lt_lt_SP2NL
50515
50516# turn newlines into spaces.
50517NL2SP=$lt_lt_NL2SP
50518
cae5b340
AX
50519# How to create reloadable object files.
50520reload_flag=$lt_reload_flag
50521reload_cmds=$lt_reload_cmds
ea04106b
AX
50522
50523# An object symbol dumper.
50524OBJDUMP=$lt_OBJDUMP
50525
50526# Method to check whether dependent libraries are shared objects.
50527deplibs_check_method=$lt_deplibs_check_method
50528
cae5b340 50529# Command to use when deplibs_check_method == "file_magic".
ea04106b
AX
50530file_magic_cmd=$lt_file_magic_cmd
50531
ea04106b
AX
50532# The archiver.
50533AR=$lt_AR
ea04106b
AX
50534AR_FLAGS=$lt_AR_FLAGS
50535
ea04106b
AX
50536# A symbol stripping program.
50537STRIP=$lt_STRIP
50538
50539# Commands used to install an old-style archive.
50540RANLIB=$lt_RANLIB
50541old_postinstall_cmds=$lt_old_postinstall_cmds
50542old_postuninstall_cmds=$lt_old_postuninstall_cmds
50543
ea04106b
AX
50544# A C compiler.
50545LTCC=$lt_CC
50546
50547# LTCC compiler flags.
50548LTCFLAGS=$lt_CFLAGS
50549
50550# Take the output of nm and produce a listing of raw symbols and C names.
50551global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
50552
50553# Transform the output of nm in a proper C declaration.
50554global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
50555
50556# Transform the output of nm in a C name address pair.
50557global_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.
50560global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
50561
ea04106b
AX
50562# The name of the directory that contains temporary libtool files.
50563objdir=$objdir
50564
cae5b340
AX
50565# Shell to use when invoking shell scripts.
50566SHELL=$lt_SHELL
50567
50568# An echo program that does not interpret backslashes.
50569ECHO=$lt_ECHO
50570
ea04106b
AX
50571# Used to examine libraries when file_magic_cmd begins with "file".
50572MAGIC_CMD=$MAGIC_CMD
50573
50574# Must we lock files when doing compilation?
50575need_locks=$lt_need_locks
50576
ea04106b
AX
50577# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
50578DSYMUTIL=$lt_DSYMUTIL
50579
50580# Tool to change global to local symbols on Mac OS X.
50581NMEDIT=$lt_NMEDIT
50582
50583# Tool to manipulate fat objects and archives on Mac OS X.
50584LIPO=$lt_LIPO
50585
50586# ldd/readelf like tool for Mach-O binaries on Mac OS X.
50587OTOOL=$lt_OTOOL
50588
50589# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
50590OTOOL64=$lt_OTOOL64
50591
50592# Old archive suffix (normally "a").
50593libext=$libext
50594
50595# Shared library suffix (normally ".so").
50596shrext_cmds=$lt_shrext_cmds
50597
50598# The commands to extract the exported symbol list from a shared archive.
50599extract_expsyms_cmds=$lt_extract_expsyms_cmds
50600
50601# Variables whose values should be saved in libtool wrapper scripts and
50602# restored at link time.
50603variables_saved_for_relink=$lt_variables_saved_for_relink
50604
50605# Do we need the "lib" prefix for modules?
50606need_lib_prefix=$need_lib_prefix
50607
50608# Do we need a version for libraries?
50609need_version=$need_version
50610
50611# Library versioning type.
50612version_type=$version_type
50613
50614# Shared library runtime path variable.
50615runpath_var=$runpath_var
50616
50617# Shared library path variable.
50618shlibpath_var=$shlibpath_var
50619
50620# Is shlibpath searched before the hard-coded library search path?
50621shlibpath_overrides_runpath=$shlibpath_overrides_runpath
50622
50623# Format of library name prefix.
50624libname_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
50628library_names_spec=$lt_library_names_spec
50629
50630# The coded name of the library, if different from the real name.
50631soname_spec=$lt_soname_spec
50632
ea04106b
AX
50633# Command to use after installation of a shared archive.
50634postinstall_cmds=$lt_postinstall_cmds
50635
50636# Command to use after uninstallation of a shared archive.
50637postuninstall_cmds=$lt_postuninstall_cmds
50638
50639# Commands used to finish a libtool library installation in a directory.
50640finish_cmds=$lt_finish_cmds
50641
50642# As "finish_cmds", except a single script fragment to be evaled but
50643# not shown.
50644finish_eval=$lt_finish_eval
50645
50646# Whether we should hardcode library paths into libraries.
50647hardcode_into_libs=$hardcode_into_libs
50648
50649# Compile-time system search path for libraries.
50650sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
50651
cae5b340
AX
50652# Run-time system search path for libraries.
50653sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
ea04106b
AX
50654
50655# Whether dlopen is supported.
50656dlopen_support=$enable_dlopen
50657
50658# Whether dlopen of programs is supported.
50659dlopen_self=$enable_dlopen_self
50660
50661# Whether dlopen of statically linked programs is supported.
50662dlopen_self_static=$enable_dlopen_self_static
50663
50664# Commands to strip libraries.
50665old_striplib=$lt_old_striplib
50666striplib=$lt_striplib
50667
50668
50669# The linker used to build libraries.
50670LD=$lt_LD
50671
ea04106b
AX
50672# Commands used to build an old-style archive.
50673old_archive_cmds=$lt_old_archive_cmds
50674
50675# A language specific compiler.
50676CC=$lt_compiler
50677
50678# Is the compiler the GNU compiler?
50679with_gcc=$GCC
50680
50681# Compiler flag to turn off builtin functions.
50682no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
50683
ea04106b
AX
50684# How to pass a linker flag through the compiler.
50685wl=$lt_lt_prog_compiler_wl
50686
cae5b340
AX
50687# Additional compiler flags for building library objects.
50688pic_flag=$lt_lt_prog_compiler_pic
50689
ea04106b
AX
50690# Compiler flag to prevent dynamic linking.
50691link_static_flag=$lt_lt_prog_compiler_static
50692
50693# Does compiler simultaneously support -c and -o options?
50694compiler_c_o=$lt_lt_cv_prog_compiler_c_o
50695
50696# Whether or not to add -lc for building shared libraries.
50697build_libtool_need_lc=$archive_cmds_need_lc
50698
50699# Whether or not to disallow shared libs when runtime libs are static.
50700allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
50701
50702# Compiler flag to allow reflexive dlopens.
50703export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
50704
50705# Compiler flag to generate shared objects directly from archives.
50706whole_archive_flag_spec=$lt_whole_archive_flag_spec
50707
50708# Whether the compiler copes with passing no objects directly.
50709compiler_needs_object=$lt_compiler_needs_object
50710
50711# Create an old-style archive from a shared archive.
50712old_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.
50715old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
50716
50717# Commands used to build a shared archive.
50718archive_cmds=$lt_archive_cmds
50719archive_expsym_cmds=$lt_archive_expsym_cmds
50720
50721# Commands used to build a loadable module if different from building
50722# a shared archive.
50723module_cmds=$lt_module_cmds
50724module_expsym_cmds=$lt_module_expsym_cmds
50725
50726# Whether we are building with GNU ld or not.
50727with_gnu_ld=$lt_with_gnu_ld
50728
50729# Flag that allows shared libraries with undefined symbols to be built.
50730allow_undefined_flag=$lt_allow_undefined_flag
50731
50732# Flag that enforces no undefined symbols.
50733no_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
50737hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
50738
cae5b340
AX
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.
50741hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
50742
ea04106b
AX
50743# Whether we need a single "-rpath" flag with a separated argument.
50744hardcode_libdir_separator=$lt_hardcode_libdir_separator
50745
cae5b340 50746# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
ea04106b
AX
50747# DIR into the resulting binary.
50748hardcode_direct=$hardcode_direct
50749
cae5b340 50750# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
ea04106b 50751# DIR into the resulting binary and the resulting library dependency is
cae5b340 50752# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
ea04106b
AX
50753# library is relocated.
50754hardcode_direct_absolute=$hardcode_direct_absolute
50755
50756# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
50757# into the resulting binary.
50758hardcode_minus_L=$hardcode_minus_L
50759
50760# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
50761# into the resulting binary.
50762hardcode_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.
50767hardcode_automatic=$hardcode_automatic
50768
50769# Set to yes if linker adds runtime paths of dependent libraries
50770# to runtime path list.
50771inherit_rpath=$inherit_rpath
50772
50773# Whether libtool must link a program against all its dependency libraries.
50774link_all_deplibs=$link_all_deplibs
50775
cae5b340
AX
50776# Fix the shell variable \$srcfile for the compiler.
50777fix_srcfile_path=$lt_fix_srcfile_path
50778
ea04106b
AX
50779# Set to "yes" if exported symbols are required.
50780always_export_symbols=$always_export_symbols
50781
50782# The commands to list exported symbols.
50783export_symbols_cmds=$lt_export_symbols_cmds
50784
50785# Symbols that should not be listed in the preloaded symbols.
50786exclude_expsyms=$lt_exclude_expsyms
50787
50788# Symbols that must always be exported.
50789include_expsyms=$lt_include_expsyms
50790
50791# Commands necessary for linking programs (against libraries) with templates.
50792prelink_cmds=$lt_prelink_cmds
50793
ea04106b
AX
50794# Specify filename containing input files.
50795file_list_spec=$lt_file_list_spec
50796
50797# How to hardcode a shared library path into an executable.
50798hardcode_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.
cae5b340 50810if test "X${COLLECT_NAMES+set}" != Xset; then
ea04106b
AX
50811 COLLECT_NAMES=
50812 export COLLECT_NAMES
50813fi
50814_LT_EOF
50815 ;;
50816 esac
50817
50818
cae5b340 50819ltmain="$ac_aux_dir/ltmain.sh"
ea04106b
AX
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?
cae5b340
AX
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.
50836func_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
50845func_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.
50862func_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).
50876func_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
50886func_opt_split ()
50887{
50888 func_opt_split_opt=${1%%=*}
50889 func_opt_split_arg=${1#*=}
50890}
50891
50892# func_lo2o object
50893func_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
50902func_xform ()
50903{
50904 func_xform_result=${1%.*}.lo
50905}
50906
50907# func_arith arithmetic-term...
50908func_arith ()
50909{
50910 func_arith_result=$(( $* ))
50911}
50912
50913# func_len string
50914# STRING may not start with a hyphen.
50915func_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.
50928func_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
50940func_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
50952func_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:
50963my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
50964my_sed_long_arg='1s/^-[^=]*=//'
50965
50966# func_opt_split
50967func_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
50974func_lo2o ()
50975{
50976 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
50977}
50978
50979# func_xform libobj-or-source
50980func_xform ()
50981{
50982 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
50983}
50984
50985# func_arith arithmetic-term...
50986func_arith ()
50987{
50988 func_arith_result=`expr "$@"`
50989}
50990
50991# func_len string
50992# STRING may not start with a hyphen.
50993func_len ()
50994{
50995 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
50996}
50997
50998_LT_EOF
50999esac
51000
51001case $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.
51007func_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.
51018func_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)
ea04106b 51030
cae5b340 51031 mv -f "$cfgfile" "$ofile" ||
ea04106b
AX
51032 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
51033 chmod +x "$ofile"
51034
51035 ;;
51036
51037 esac
51038done # for ac_tag
51039
51040
cae5b340 51041{ (exit 0); exit 0; }
ea04106b 51042_ACEOF
cae5b340 51043chmod +x $CONFIG_STATUS
ea04106b
AX
51044ac_clean_files=$ac_clean_files_save
51045
51046test $ac_write_fail = 0 ||
cae5b340
AX
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; }; }
ea04106b
AX
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.
51060if 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.
cae5b340 51070 $ac_cs_success || { (exit 1); exit 1; }
ea04106b
AX
51071fi
51072if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
cae5b340 51073 { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
ea04106b
AX
51074$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
51075fi
51076